gliv-1.9.7/0000755000076400007640000000000011470011717007736 5ustar gggliv-1.9.7/configure.ac0000644000076400007640000001063311465576131012241 0ustar gg# Process this file with autoconf to produce a configure script. AC_INIT([gliv], esyscmd([echo -n $(head -n 1 NEWS)]), [guichaz@gmail.com]) AC_CONFIG_SRCDIR([src/main.c]) AM_INIT_AUTOMAKE([foreign]) AM_CONFIG_HEADER([config.h]) AC_LANG([C]) AC_GNU_SOURCE # We check this before AC_PROG_CC fills blank CFLAGS with "-g -O2". if test "x$CFLAGS" = "x"; then DEFAULT_CFLAGS=yes else DEFAULT_CFLAGS=no fi # Checks for programs. AC_PROG_CC AC_PROG_RANLIB # Default CFLAGS. if test "x$GCC" = "xyes" && test "$DEFAULT_CFLAGS" = "yes"; then CFLAGS="-Wall -O2 -fomit-frame-pointer -ffast-math" fi CFLAGS="$CFLAGS -I${srcdir}/../lib" # Checks for LFS flags, we may not handle big files, but it doesn't hurt. AC_SYS_LARGEFILE AC_DEFUN([CHECK_MATH], [OLD_CFLAGS="$CFLAGS"] [CFLAGS="$CFLAGS -w"] [AC_SEARCH_LIBS([$1], [m mx], [AC_DEFINE(AS_TR_CPP([HAVE_$1]), 1, [Define to 1 if you have the `$1' function.])])] [CFLAGS="$OLD_CFLAGS"]) CHECK_MATH([atan2]) # Checks for hypot (SVID 3, BSD 4.3). # The replacement is #defined in the source. CHECK_MATH([hypot]) # Checks for math functions using floats. # Using floats instead of doubles makes gcc use SSE with -msse # The replacement are #defined in math_floats.h. CHECK_MATH([sqrtf]) CHECK_MATH([hypotf]) CHECK_MATH([atan2f]) CHECK_MATH([powf]) CHECK_MATH([ceilf]) CHECK_MATH([cosf]) CHECK_MATH([sinf]) CHECK_MATH([acosf]) CHECK_MATH([fmodf]) CHECK_MATH([fabsf]) CHECK_MATH([log10f]) # If we don't have ftello, we'll use ftell. AC_CHECK_FUNCS([ftello]) # If we don't have fseeko, we'll use fseek. AC_CHECK_FUNCS([fseeko]) # Checks for getdelim, this is a GNU extension. CFLAGS="$CFLAGS -D_GNU_SOURCE" AC_CHECK_FUNCS([getdelim], [ have_getdelim="yes" ], [ have_getdelim="no" ]) AM_CONDITIONAL([GETDELIM], [test "$have_getdelim" = "yes"]) # Checks for getopt_long, another GNU extension. AC_CHECK_FUNCS([getopt_long], [ have_getopt_long="yes" ], [ have_getopt_long="no" ]) AM_CONDITIONAL([GETOPT_LONG], [test "$have_getopt_long" = "yes"]) if test "$have_getdelim" = "no" || test "$have_getopt_long" = "no"; then AM_CONDITIONAL([NEED_REPLACEMENTS], [true]) else AM_CONDITIONAL([NEED_REPLACEMENTS], [false]) fi # Checks for flavours of varargs macros (borrowed from glib-2) # ISO C99 AC_MSG_CHECKING([for ISO C99 varargs macros]) AC_TRY_COMPILE([],[ int a(int p1, int p2, int p3); #define call_a(...) a(1,__VA_ARGS__) call_a(2,3); ], [have_iso_c_varargs=yes], [have_iso_c_varargs=no]) AC_MSG_RESULT([$have_iso_c_varargs]) if test $have_iso_c_varargs = yes; then iso_c_varargs=1 else iso_c_varargs=0 fi AC_DEFINE_UNQUOTED([HAVE_ISO_C_VARARGS], [$iso_c_varargs], [ISO C99 varargs macros in C]) if test $have_iso_c_varargs = no; then AC_MSG_WARN([No ISO C99 variadic macros]) fi # 32bit or 64bit ? AC_CHECK_SIZEOF([unsigned long]) # Checks for X. AC_PATH_XTRA CFLAGS="$X_CFLAGS $CFLAGS" LDFLAGS="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS $LDFLAGS" # Checks for GtkGLExt. PKG_CHECK_MODULES(GTKGLEXT, [gtkglext-1.0 >= 0.7.0]) CFLAGS="$GTKGLEXT_CFLAGS $CFLAGS" LDFLAGS="$GTKGLEXT_LIBS $LDFLAGS" GTKGL_VERSION="$($PKG_CONFIG --modversion gtkglext-1.0)" # Checks for OpenGL. AC_TRY_LINK([#include "GL/gl.h"], [glBegin(GL_QUADS);], [ogl="yes"], [ogl="no"]) if test "x$ogl" = "xno"; then AC_MSG_NOTICE([maybe libGL requires libpthread...]) OLD_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -lpthread" AC_TRY_LINK([#include "GL/gl.h"], [glBegin(GL_QUADS);], [], AC_MSG_ERROR([cannot use -lGL])) fi # Checks for gtk. AM_PATH_GTK_2_0([2.6.0], [ CFLAGS="$GTK_CFLAGS $CFLAGS" LDFLAGS="$GTK_LIBS $LDFLAGS" GTK_VERSION="$($PKG_CONFIG --modversion gtk+-2.0)" ], [exit 1], [gthread]) # I18n. ALL_LINGUAS=$(echo po/*.po | sed -e 's|\.po||g' -e 's|po/||g') AM_GNU_GETTEXT_VERSION AM_GNU_GETTEXT CFLAGS="$CFLAGS -I../${srcdir}/intl" LIBS="$LIBS $LIBINTL" AC_CONFIG_FILES([ intl/Makefile Makefile lib/Makefile po/Makefile.in tools/Makefile tools/glade/Makefile tools/glade/actions/Makefile tools/glade/image_nr/Makefile tools/glade/options/Makefile man/Makefile man/cs/Makefile man/de/Makefile man/en/Makefile man/fr/Makefile man/ru/Makefile src/Makefile gliv.spec ]) AC_OUTPUT echo echo "Using GTK+ $GTK_VERSION with GtkGLExt $GTKGL_VERSION" echo gliv-1.9.7/README0000644000076400007640000000475111465576131010637 0ustar ggo GLiv ~~~~~~ GLiv is an OpenGL image viewer, image loading is done via Gdk-pixbuf bundled with GTK+-2.6, rendering with OpenGL and the graphical user interface uses GTK+ with GtkGLExt. GLiv is very fast and smooth at rotating, panning and zooming if you have an OpenGL accelerated graphics board. o Requirements ~~~~~~~~~~~~~~ - OpenGL - GTK+ >= 2.6 - GtkGLExt >= 0.7.0 o Compilation ~~~~~~~~~~~~~ The usual $ ./configure with your prefix path, then $ make If you are using the Nvidia OpenGL drivers, be sure they are actually used: once GLiv is compiled, $ ldd src/gliv | grep 'libGL\.so' should show the path of the libGL.so from the Nvidia drivers. o Installation ~~~~~~~~~~~~~~ A 'make install' as root will install gliv in /usr/local or in your prefix path. o Controls ~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ESC, q : Quit f : Full-screen/window +/=/- : Zoom in/in/out n/p : Next/previous image Pause : Start/stop the slide show l : Reduce the image to the window M : Maximize the image to the window m : Make the image fit the window r : Reset position and size b : Toggle display of the menu bar i : Toggle display of the info bar s : Toggle display of the scrollbars a : Toggle display of the alpha checks h : Toggle display of the help box w : Toggle display of floating windows o : Display the open dialog g : Display the image selector t : Display the options dialog d : Hide the cursor u : Undo y : Redo c : Clear the history Delete : Delete the current file C-up : Rotate by +90 degrees C-down : Rotate by -90 degrees C-left : Rotate by +0.1 degree C-right: Rotate by -0.1 degree z : Horizontal flip e : Vertical flip The first mouse button and the arrow keys will move the image unless the Control key is pressed. In which case the image will be rotated around the window center. The mouse wheel zooms the image, and when you hold its button pressed at the same time it switches to the neighbouring image. You can also zoom by dragging the mouse vertically while holding Shift and the first button. Space and Backspace act like n and p. Draw a rectangle with the third button and gliv will zoom in it. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The help box contains the above text, maybe translated. Further informations can be found in the manual page. Guillaume Chazarain http://guichaz.free.fr/gliv gliv-1.9.7/tools/0000755000076400007640000000000011465576131011110 5ustar gggliv-1.9.7/tools/release.sh0000755000076400007640000000200111465576131013060 0ustar gg#!/bin/bash set -x set -e # Exit on error [ -x tools/release.sh ] PACKAGE=$(basename "$PWD") mkdir dist TEMPDIR="$(mktemp -d)" read VERSION < NEWS echo "$PACKAGE-$VERSION: $TEMPDIR" svn export "$(svn info|awk '/^URL/ { print $3 }')" "$TEMPDIR/$PACKAGE-$VERSION" DIR="$PWD" cd "$TEMPDIR" rm "$PACKAGE-$VERSION/tools/release.sh" touch "$PACKAGE-$VERSION"/{aclocal.m4,config.h.in,configure} find "$PACKAGE-$VERSION" -type f -name "Makefile.*" -exec touch {} \; (cd "$PACKAGE-$VERSION/src" && touch $(cat autogenerated)) tar czf "$DIR/dist/$PACKAGE-$VERSION.tar.gz" "$PACKAGE-$VERSION" tar cjf "$DIR/dist/$PACKAGE-$VERSION.tar.bz2" "$PACKAGE-$VERSION" sed 's#/usr/local#/usr#' < "$DIR/gliv.spec" > "$PACKAGE-$VERSION/gliv.spec" mkdir -p SOURCES SPECS BUILD SRPMS RPMS/i386 ln "$DIR/dist/$PACKAGE-$VERSION.tar.bz2" SOURCES/ unset LINGUAS CFLAGS rpmbuild -ba "$PACKAGE-$VERSION/gliv.spec" mv "SRPMS/$PACKAGE-$VERSION-1.src.rpm" "$DIR/dist" mv "RPMS/i386/$PACKAGE-"{,debuginfo-}"$VERSION-1.i386.rpm" "$DIR/dist" rm -fr "$TEMPDIR" gliv-1.9.7/tools/gliv.ggo0000644000076400007640000000234611465576131012554 0ustar gg# Autogenerated by gengetopt.awk purpose "Image Viewer using OpenGL" option "add-all" a "Add all files in the directory" string typestr="on|off" no argoptional option "recursive" R "Recursive directory traversal" string typestr="on|off" no argoptional option "sort" S "Show images in sorted order" string typestr="on|off" no argoptional option "shuffle" s "Show images in random order" string typestr="on|off" no argoptional option "force-load" F "Try to load every file" string typestr="on|off" no argoptional option "client" C "Connect to a running gliv, appending to the list" string typestr="on|off" no argoptional option "client-clear" c "Connect to a running gliv, replacing the list" string typestr="on|off" no argoptional option "build-menus" e "No images menu at startup" string typestr="on|off" no argoptional option "glivrc" g "Use this configuration file or none" string typestr="FILE" no argoptional option "slide-show" w "Start the slide show immediately" string typestr="on|off" no argoptional option "null" 0 "Read null-terminated filenames" string typestr="on|off" no argoptional option "collection" o "Output a collection" string typestr="FILE" no argoptional option "geometry" G "Initial window geometry" string typestr="GEOMETRY" no gliv-1.9.7/tools/collection.magic0000644000076400007640000000020411465576131014241 0ustar gg# GLiv collections 0 string GLiv\ \ GLiv collection data, >&1 string >\0 version %s, >>&1 string >\0 with %s files gliv-1.9.7/tools/gengetopt.awk0000644000076400007640000000113511465576131013610 0ustar ggBEGIN { print "# Autogenerated by gengetopt.awk" print "purpose \"Image Viewer using OpenGL\""; print; } /^STR / { match($0, /^.*"(.*)".*"(.*)".*"(.*)".*"(.*)"/, array); printf "option \"%s\" %s \"%s\" string typestr=\"%s\" no\n", $2, $3, array[1], array[2]; } /^OSTR / { match($0, /^.*"(.*)".*"(.*)".*"(.*)".*"(.*)"/, array); printf "option \"%s\" %s \"%s\" string typestr=\"%s\" no argoptional\n", $2, $3, array[1], array[2]; } /^FLAG / { match($0, /"(.*)"/, array); printf "option \"%s\" %s \"%s\" string typestr=\"on|off\" no argoptional\n", $2, $3, array[1]; } gliv-1.9.7/tools/gliv.options0000644000076400007640000000143111465576131013465 0ustar ggFLAG add-all a "Add all files in the directory" FLAG recursive R "Recursive directory traversal" FLAG sort S "Show images in sorted order" FLAG shuffle s "Show images in random order" FLAG force-load F "Try to load every file" FLAG client C "Connect to a running gliv, appending to the list" FLAG client-clear c "Connect to a running gliv, replacing the list" FLAG build-menus e "No images menu at startup" OSTR glivrc g "Use this configuration file or none" "FILE" "configuration file" "_files" FLAG slide-show w "Start the slide show immediately" FLAG null 0 "Read null-terminated filenames" OSTR collection o "Output a collection" "FILE" "collection" "_files" STR geometry G "Initial window geometry" "GEOMETRY" "geometry" "_x_geometry" gliv-1.9.7/tools/Makefile.am0000644000076400007640000000100311465576131013136 0ustar ggSUBDIRS = glade EXTRA_DIST = collection.magic formats.gperf gengetopt.awk gliv.ggo \ gliv.options gperf2zsh.sh help2c.awk help2man.awk \ zsh.awk _gliv opengl_wrapper.awk translate_man.sh \ $(wildcard $(top_srcdir)/tools/cursors/*.xbm) all-local: _gliv gliv.ggo gliv.ggo: gengetopt.awk gliv.options gawk -f gengetopt.awk < gliv.options > $@ _gliv: zsh.awk gliv.options gperf2zsh.sh formats.gperf (gawk -f zsh.awk < gliv.options; ./gperf2zsh.sh formats.gperf) > $@ gliv-1.9.7/tools/_gliv0000644000076400007640000000406611465576131012141 0ustar gg#compdef gliv # Autogenerated by zsh.awk _arguments \ '(--add-all -a)'{--add-all,-a}'=-[Add all files in the directory]:on|off:(on off)' \ '(--recursive -R)'{--recursive,-R}'=-[Recursive directory traversal]:on|off:(on off)' \ '(--sort -S)'{--sort,-S}'=-[Show images in sorted order]:on|off:(on off)' \ '(--shuffle -s)'{--shuffle,-s}'=-[Show images in random order]:on|off:(on off)' \ '(--force-load -F)'{--force-load,-F}'=-[Try to load every file]:on|off:(on off)' \ '(--client -C)'{--client,-C}'=-[Connect to a running gliv, appending to the list]:on|off:(on off)' \ '(--client-clear -c)'{--client-clear,-c}'=-[Connect to a running gliv, replacing the list]:on|off:(on off)' \ '(--build-menus -e)'{--build-menus,-e}'=-[No images menu at startup]:on|off:(on off)' \ '(--glivrc -g)'{--glivrc,-g}'=-[Use this configuration file or none]:configuration file:_files' \ '(--slide-show -w)'{--slide-show,-w}'=-[Start the slide show immediately]:on|off:(on off)' \ '(--null -0)'{--null,-0}'=-[Read null-terminated filenames]:on|off:(on off)' \ '(--collection -o)'{--collection,-o}'=-[Output a collection]:collection:_files' \ '(--geometry -G)'{--geometry,-G}'=-[Initial window geometry]:geometry:_x_geometry' \ '*:images:_files -/ -g \*.\(\#i\)\(ani\|bmp\|cur\|gif\|gliv\|ico\|jpe\|jpeg\|jpg\|pbm\|pgm\|pcx\|png\|pnm\|ppm\|ras\|svg\|svgz\|targa\|tga\|tif\|tiff\|wbmp\|wmf\|xbm\|xpm\|ani\.bz2\|bmp\.bz2\|cur\.bz2\|gif\.bz2\|gliv\.bz2\|ico\.bz2\|jpe\.bz2\|jpeg\.bz2\|jpg\.bz2\|pbm\.bz2\|pgm\.bz2\|pcx\.bz2\|png\.bz2\|pnm\.bz2\|ppm\.bz2\|ras\.bz2\|svg\.bz2\|svgz\.bz2\|targa\.bz2\|tga\.bz2\|tif\.bz2\|tiff\.bz2\|wbmp\.bz2\|wmf\.bz2\|xbm\.bz2\|xpm\.bz2\|ani\.gz\|bmp\.gz\|cur\.gz\|gif\.gz\|gliv\.gz\|ico\.gz\|jpe\.gz\|jpeg\.gz\|jpg\.gz\|pbm\.gz\|pgm\.gz\|pcx\.gz\|png\.gz\|pnm\.gz\|ppm\.gz\|ras\.gz\|svg\.gz\|svgz\.gz\|targa\.gz\|tga\.gz\|tif\.gz\|tiff\.gz\|wbmp\.gz\|wmf\.gz\|xbm\.gz\|xpm\.gz\|ani\.z\|bmp\.z\|cur\.z\|gif\.z\|gliv\.z\|ico\.z\|jpe\.z\|jpeg\.z\|jpg\.z\|pbm\.z\|pgm\.z\|pcx\.z\|png\.z\|pnm\.z\|ppm\.z\|ras\.z\|svg\.z\|svgz\.z\|targa\.z\|tga\.z\|tif\.z\|tiff\.z\|wbmp\.z\|wmf\.z\|xbm\.z\|xpm\.z\)' gliv-1.9.7/tools/help2c.awk0000644000076400007640000000273311465576131012776 0ustar ggBEGIN { print "/* Generated by help2c.awk */" print "#include \"gliv.h\"" print "#include \"help_text.h\"" print "#include \"messages.h\"" print "" print "/* Forward declaration. */" print "static gchar **get_sized_array(void);" print "" print "gchar **get_help_lines(void)" print "{" print " gchar **array, **ptr;" print "" print " ptr = array = get_sized_array();" print "" help_lines = 0 } $0 == "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" { if (started) { # The end. print " *--ptr = NULL;" print "" print " return array;" print "}" print "" print "static gchar **get_sized_array(void)" print "{" printf " return g_new(gchar *, %d);\n", help_lines print "}" exit } # The beginning. started = 1 getline } /.*: .*/ { # A keyboard accelerator line. if (started) { printf " *ptr++ = _(\"%s\");\n", $0 print " *ptr++ = \"\\n\";" print "" help_lines += 2 } } $0 == "" { if (started) { # End of keyboard accelerators. misc = 1 RS = "\n\n" print " *ptr++ = \"\\n\";" print "" help_lines++ getline } } { if (misc) { gsub(/(\n| )/, " ") printf " *ptr++ = _(\"%s\");\n", $0 print " *ptr++ = \"\\n\\n\";" help_lines += 2 print "" } } gliv-1.9.7/tools/translate_man.sh0000755000076400007640000000107311465576131014300 0ustar gg#!/bin/sh L=$1 if [ "$L" = . ]; then awk -f ../../tools/help2man.awk ../../README | sed 's/gliv/\\fIgliv\\fR/g' exit $? fi TEMP_DIR=/tmp/gliv-$$.$RANDOM DIR=$L/LC_MESSAGES/ mkdir -p "${TEMP_DIR}/${DIR}" && cp ../../po/${L}.gmo "${TEMP_DIR}/${DIR}/gliv.mo" export TEXTDOMAINDIR="$TEMP_DIR" LANGUAGE="$L" awk -f ../../tools/help2man.awk ../../README | while read LINE; do if [ "$LINE" = "" ] || [ "$LINE" = ".br" ]; then echo "$LINE" else gettext gliv "$LINE" | sed 's/gliv/\\fIgliv\\fR/g' echo fi done rm -fr "$TEMP_DIR" gliv-1.9.7/tools/zsh.awk0000644000076400007640000000113411465576131012417 0ustar ggBEGIN { print "#compdef gliv"; print "# Autogenerated by zsh.awk" print ""; print "_arguments \\"; } /^STR / { match($0, /^.*"(.*)".*"(.*)".*"(.*)".*"(.*)"/, array); printf "'(--%s -%s)'{--%s,-%s}'=-[%s]:%s:%s' \\\n", $2, $3, $2, $3, array[1], array[3], array[4]; } /^OSTR / { match($0, /^.*"(.*)".*"(.*)".*"(.*)".*"(.*)"/, array); printf "'(--%s -%s)'{--%s,-%s}'=-[%s]:%s:%s' \\\n", $2, $3, $2, $3, array[1], array[3], array[4]; } /^FLAG / { match($0, /"(.*)"/, array); printf "'(--%s -%s)'{--%s,-%s}'=-[%s]:on|off:(on off)' \\\n", $2, $3, $2, $3, array[1]; } gliv-1.9.7/tools/opengl_wrapper.awk0000644000076400007640000000153411465576131014643 0ustar ggfunction function_name(name) { match(name, /[^() ]+/, array); return array[0]; } BEGIN { print "/* Autogenerated by opengl_wrapper.awk */"; print ""; } /MESA|EXT|ARB|glBegin\(|glEnd\(/ { next; } /glGetError/ { /* Infinite recursion ... */ next; } /^GLAPI void GLAPIENTRY .+\( void \);/ { f = function_name($4); printf "#define %s() OPENGL_VOID_CALL_VOID(%s)\n", f, f; next; } /^GLAPI void GLAPIENTRY / { f = function_name($4); printf "#define %s(...) OPENGL_VOID_CALL(%s, __VA_ARGS__)\n", f, f; next; } /^GLAPI const [^ ]+ GLAPIENTRY / { f = function_name($5); printf "#define %s(...) OPENGL_CALL(const %s, %s, __VA_ARGS__)\n", f, $3, f; next; } /^GLAPI [^ ]+ GLAPIENTRY / { f = function_name($4); printf "#define %s(...) OPENGL_CALL(%s, %s, __VA_ARGS__)\n", f, $2, f; next; } gliv-1.9.7/tools/formats.gperf0000644000076400007640000000153511465576131013614 0ustar gg%{ #include "gliv.h" #include "formats.h" %} struct format { const gchar *name; const loader_t loader; }; %struct-type %ignore-case %language=ANSI-C %define lookup-function-name ext_to_loader %readonly-tables %includes %omit-struct-type %% ani, LOADER_PIXBUF bmp, LOADER_PIXBUF bz2, LOADER_DECOMP cur, LOADER_PIXBUF gif, LOADER_PIXBUF gliv, LOADER_DOT_GLIV gz, LOADER_DECOMP ico, LOADER_PIXBUF jpe, LOADER_PIXBUF jpeg, LOADER_PIXBUF jpg, LOADER_PIXBUF pbm, LOADER_PIXBUF pgm, LOADER_PIXBUF pcx, LOADER_PIXBUF png, LOADER_PIXBUF pnm, LOADER_PIXBUF ppm, LOADER_PIXBUF ras, LOADER_PIXBUF svg, LOADER_PIXBUF svgz, LOADER_PIXBUF targa, LOADER_PIXBUF tga, LOADER_PIXBUF tif, LOADER_PIXBUF tiff, LOADER_PIXBUF wbmp, LOADER_PIXBUF wmf, LOADER_PIXBUF xbm, LOADER_PIXBUF xpm, LOADER_PIXBUF z, LOADER_DECOMP gliv-1.9.7/tools/gliv-image.gob0000644000076400007640000000274011465576131013625 0ustar gg%{ #include "gliv.h" #include "opengl.h" #include "options.h" extern options_struct *options; static int nb_images = 0; %} %a{ #include "texture_map.h" %} class Gliv:Image from G:Object { public GList *node; public gint number; public gchar *ident; public gint width; public gint height; public gint nb_maps; public texture_map *maps; public gboolean has_alpha; public gboolean first_image; public gfloat initial_angle; public gboolean initial_h_flip; public GlivImage *new(void) { /* This is used to detect bugs */ nb_images++; if (nb_images > 4) g_printerr("There are more than 4 images: %d images\n", nb_images); else if (options->one_image && nb_images > 2) /* We can have two images : the displayed one and the just loaded */ g_printerr("There are more than 2 images: %d images\n", nb_images); return GET_NEW; } override (G:Object) void finalize(GObject * self) { gint level; texture_map *map; GlivImage *im = GLIV_IMAGE(self); for (level = 0; level < im->nb_maps; level++) { map = im->maps + level; glDeleteTextures(map->nb_tiles, map->tex_ids); g_free(map->tex_ids); glDeleteLists(map->list, map->nb_tiles); g_free(map->tiles); } g_free(im->maps); g_free(im->ident); PARENT_HANDLER(self); nb_images--; } } gliv-1.9.7/tools/Makefile.in0000644000076400007640000004370411465576131013165 0ustar gg# 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 = : build_triplet = @build@ host_triplet = @host@ subdir = tools 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 = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/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 ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 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" ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CFLAG_VISIBILITY = @CFLAG_VISIBILITY@ 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@ GENCAT = @GENCAT@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ GTKGLEXT_CFLAGS = @GTKGLEXT_CFLAGS@ GTKGLEXT_LIBS = @GTKGLEXT_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ HAVE_WPRINTF = @HAVE_WPRINTF@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_DEFAULT_VERBOSITY = @INTL_DEFAULT_VERBOSITY@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBMULTITHREAD = @LIBMULTITHREAD@ LIBOBJS = @LIBOBJS@ LIBPTH = @LIBPTH@ LIBPTH_PREFIX = @LIBPTH_PREFIX@ LIBS = @LIBS@ LIBTHREAD = @LIBTHREAD@ LTLIBC = @LTLIBC@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBMULTITHREAD = @LTLIBMULTITHREAD@ LTLIBOBJS = @LTLIBOBJS@ LTLIBPTH = @LTLIBPTH@ LTLIBTHREAD = @LTLIBTHREAD@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ 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@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WINDRES = @WINDRES@ WOE32 = @WOE32@ WOE32DLL = @WOE32DLL@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ 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 = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ 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@ 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 = glade EXTRA_DIST = collection.magic formats.gperf gengetopt.awk gliv.ggo \ gliv.options gperf2zsh.sh help2c.awk help2man.awk \ zsh.awk _gliv opengl_wrapper.awk translate_man.sh \ $(wildcard $(top_srcdir)/tools/cursors/*.xbm) all: all-recursive .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 tools/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign tools/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): # 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) $(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) $(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) $(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 @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 check-am: all-am check: check-recursive all-am: Makefile all-local 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 Makefile distclean-am: clean-am distclean-generic 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 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) ctags-recursive \ install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am all-local check check-am clean clean-generic ctags \ ctags-recursive distclean distclean-generic distclean-tags \ distdir 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 all-local: _gliv gliv.ggo gliv.ggo: gengetopt.awk gliv.options gawk -f gengetopt.awk < gliv.options > $@ _gliv: zsh.awk gliv.options gperf2zsh.sh formats.gperf (gawk -f zsh.awk < gliv.options; ./gperf2zsh.sh formats.gperf) > $@ # 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: gliv-1.9.7/tools/gperf2zsh.sh0000755000076400007640000000062711465576131013366 0ustar gg#!/bin/sh [ "$#" = "1" ] || exit 1 FORMATS_FILE=$1 DECOMP_EXTS=$(grep LOADER_DECOMP $FORMATS_FILE | cut -d, -f1) NORMAL_EXTS=$(grep -E 'LOADER_(PIXBUF|DOT_GLIV)' $FORMATS_FILE | cut -d, -f1) EXTS=$NORMAL_EXTS for d in $DECOMP_EXTS do for n in $NORMAL_EXTS do EXTS="$EXTS $n\.$d" done done echo -n "'*:images:_files -/ -g \*.\(\#i\)\(" echo -n $EXTS | sed 's# #\\|#g' echo -n "\)'" echo gliv-1.9.7/tools/glade/0000755000076400007640000000000011465576131012164 5ustar gggliv-1.9.7/tools/glade/Makefile.am0000644000076400007640000000004311465576131014215 0ustar ggSUBDIRS = actions image_nr options gliv-1.9.7/tools/glade/image_nr/0000755000076400007640000000000011465576131013745 5ustar gggliv-1.9.7/tools/glade/image_nr/gliv-image_nr.glade0000644000076400007640000001665011465576131017473 0ustar gg True Load the Nth image... GTK_WINDOW_TOPLEVEL GTK_WIN_POS_NONE True True True True False False GDK_WINDOW_TYPE_HINT_DIALOG GDK_GRAVITY_NORTH_WEST True True False 0 True GTK_BUTTONBOX_END True True True gtk-cancel True GTK_RELIEF_NORMAL True -6 True True True gtk-ok True GTK_RELIEF_NORMAL True -5 0 False True GTK_PACK_END True False 0 True False 0 True False 0 True Enter an image number: False False GTK_JUSTIFY_LEFT True False 0.5 0.5 0 0 10 True True True True 1 0 True GTK_UPDATE_IF_VALID False False 1 0 100 1 10 0 10 True True 0 False False True 0.5 0.5 0 0 10 True True 0 True True True True directory False False GTK_JUSTIFY_LEFT False True 0.5 0.5 0 0 5 False False True file False False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 5 False False 0 True True gliv-1.9.7/tools/glade/image_nr/main.c0000644000076400007640000000165311465576131015042 0ustar gg/* * Initial main.c file generated by Glade. Edit as required. * Glade will not overwrite this file. */ #ifdef HAVE_CONFIG_H # include #endif #include #include "glade_image_nr.h" #include "empty_support.h" int main (int argc, char *argv[]) { GtkWidget *image_nr_dialog; #ifdef ENABLE_NLS bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE); #endif gtk_set_locale (); gtk_init (&argc, &argv); add_pixmap_directory (PACKAGE_DATA_DIR "/" PACKAGE "/pixmaps"); /* * The following code was added by Glade to create one of each component * (except popup menus), just so that you see something after building * the project. Delete any components that you don't want shown initially. */ image_nr_dialog = create_image_nr_dialog (); gtk_widget_show (image_nr_dialog); gtk_main (); return 0; } gliv-1.9.7/tools/glade/image_nr/glade_image_nr.h0000644000076400007640000000014711465576131017035 0ustar gg/* * DO NOT EDIT THIS FILE - it is generated by Glade. */ GtkWidget* create_image_nr_dialog (void); gliv-1.9.7/tools/glade/image_nr/Makefile.am0000644000076400007640000000060111465576131015776 0ustar ggEXTRA_DIST = compil_test.sh empty_callbacks.c empty_callbacks.h \ glade_image_nr.c glade_image_nr.h gliv-image_nr.glade \ gliv-image_nr.gladep main.c make_glade_image_nr.sh glade_image_nr: glade_image_nr.c glade_image_nr.h main.c ./compil_test.sh glade_image_nr.c glade_image_nr.h main.c: gliv-image_nr.glade gliv-image_nr.gladep ./make_glade_image_nr.sh gliv-1.9.7/tools/glade/image_nr/gliv-image_nr.gladep0000644000076400007640000000157211465576131017650 0ustar gg GLiv image_nr gliv-image_nr . . FALSE FALSE FALSE FALSE glade_image_nr.c glade_image_nr.h image_nr_callbacks.c image_nr_callbacks.h empty_support.c empty_support.h gliv-1.9.7/tools/glade/image_nr/make_glade_image_nr.sh0000755000076400007640000000076311465576131020224 0ustar gg#!/bin/sh set -o xtrace if [ ! -f gliv-image_nr.glade ] || [ ! -d ../../../src/include ]; then echo "Wrong directory" exit 1 fi : Cleaning... rm -v *.[ch] : : Gladeing... glade-2 -w gliv-image_nr.glade : : Greping grep -vE '^#include "[^"]+"$' glade_image_nr.c > glade_image_nr.c.ttmmpp : : Emptying... mv -v glade_image_nr.c.ttmmpp glade_image_nr.c echo '/* Empty */' > empty_support.h : : Copying... cp -v glade_image_nr.c ../../../src cp -v glade_image_nr.h ../../../src/include gliv-1.9.7/tools/glade/image_nr/glade_image_nr.c0000644000076400007640000001110611465576131017025 0ustar gg/* * DO NOT EDIT THIS FILE - it is generated by Glade. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include #define GLADE_HOOKUP_OBJECT(component,widget,name) \ g_object_set_data_full (G_OBJECT (component), name, \ gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref) #define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \ g_object_set_data (G_OBJECT (component), name, widget) GtkWidget* create_image_nr_dialog (void) { GtkWidget *image_nr_dialog; GtkWidget *dialog_vbox1; GtkWidget *vbox1; GtkWidget *hbox1; GtkWidget *vbox2; GtkWidget *label2; GtkObject *spinbutton_adj; GtkWidget *spinbutton; GtkWidget *image; GtkWidget *dirname; GtkWidget *filename; GtkWidget *dialog_action_area1; GtkWidget *cancelbutton1; GtkWidget *okbutton1; image_nr_dialog = gtk_dialog_new (); gtk_window_set_title (GTK_WINDOW (image_nr_dialog), _("Load the Nth image...")); gtk_window_set_modal (GTK_WINDOW (image_nr_dialog), TRUE); gtk_window_set_destroy_with_parent (GTK_WINDOW (image_nr_dialog), TRUE); gtk_window_set_type_hint (GTK_WINDOW (image_nr_dialog), GDK_WINDOW_TYPE_HINT_DIALOG); dialog_vbox1 = GTK_DIALOG (image_nr_dialog)->vbox; gtk_widget_show (dialog_vbox1); vbox1 = gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox1); gtk_box_pack_start (GTK_BOX (dialog_vbox1), vbox1, TRUE, TRUE, 0); hbox1 = gtk_hbox_new (FALSE, 0); gtk_widget_show (hbox1); gtk_box_pack_start (GTK_BOX (vbox1), hbox1, TRUE, TRUE, 0); vbox2 = gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox2); gtk_box_pack_start (GTK_BOX (hbox1), vbox2, FALSE, FALSE, 0); label2 = gtk_label_new (_("Enter an image number:")); gtk_widget_show (label2); gtk_box_pack_start (GTK_BOX (vbox2), label2, TRUE, TRUE, 10); gtk_label_set_line_wrap (GTK_LABEL (label2), TRUE); spinbutton_adj = gtk_adjustment_new (1, 0, 100, 1, 10, 0); spinbutton = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton_adj), 1, 0); gtk_widget_show (spinbutton); gtk_box_pack_start (GTK_BOX (vbox2), spinbutton, TRUE, TRUE, 10); gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton), TRUE); gtk_spin_button_set_update_policy (GTK_SPIN_BUTTON (spinbutton), GTK_UPDATE_IF_VALID); image = create_pixmap (image_nr_dialog, NULL); gtk_widget_show (image); gtk_box_pack_start (GTK_BOX (hbox1), image, TRUE, TRUE, 10); dirname = gtk_label_new (_("directory")); gtk_widget_show (dirname); gtk_box_pack_start (GTK_BOX (vbox1), dirname, FALSE, FALSE, 5); GTK_WIDGET_SET_FLAGS (dirname, GTK_CAN_FOCUS); gtk_label_set_selectable (GTK_LABEL (dirname), TRUE); filename = gtk_label_new (_("file")); gtk_widget_show (filename); gtk_box_pack_start (GTK_BOX (vbox1), filename, FALSE, FALSE, 5); dialog_action_area1 = GTK_DIALOG (image_nr_dialog)->action_area; gtk_widget_show (dialog_action_area1); gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area1), GTK_BUTTONBOX_END); cancelbutton1 = gtk_button_new_from_stock ("gtk-cancel"); gtk_widget_show (cancelbutton1); gtk_dialog_add_action_widget (GTK_DIALOG (image_nr_dialog), cancelbutton1, GTK_RESPONSE_CANCEL); GTK_WIDGET_SET_FLAGS (cancelbutton1, GTK_CAN_DEFAULT); okbutton1 = gtk_button_new_from_stock ("gtk-ok"); gtk_widget_show (okbutton1); gtk_dialog_add_action_widget (GTK_DIALOG (image_nr_dialog), okbutton1, GTK_RESPONSE_OK); GTK_WIDGET_SET_FLAGS (okbutton1, GTK_CAN_DEFAULT); g_signal_connect ((gpointer) spinbutton, "value_changed", G_CALLBACK (on_image_nr_value_changed), NULL); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (image_nr_dialog, image_nr_dialog, "image_nr_dialog"); GLADE_HOOKUP_OBJECT_NO_REF (image_nr_dialog, dialog_vbox1, "dialog_vbox1"); GLADE_HOOKUP_OBJECT (image_nr_dialog, vbox1, "vbox1"); GLADE_HOOKUP_OBJECT (image_nr_dialog, hbox1, "hbox1"); GLADE_HOOKUP_OBJECT (image_nr_dialog, vbox2, "vbox2"); GLADE_HOOKUP_OBJECT (image_nr_dialog, label2, "label2"); GLADE_HOOKUP_OBJECT (image_nr_dialog, spinbutton, "spinbutton"); GLADE_HOOKUP_OBJECT (image_nr_dialog, image, "image"); GLADE_HOOKUP_OBJECT (image_nr_dialog, dirname, "dirname"); GLADE_HOOKUP_OBJECT (image_nr_dialog, filename, "filename"); GLADE_HOOKUP_OBJECT_NO_REF (image_nr_dialog, dialog_action_area1, "dialog_action_area1"); GLADE_HOOKUP_OBJECT (image_nr_dialog, cancelbutton1, "cancelbutton1"); GLADE_HOOKUP_OBJECT (image_nr_dialog, okbutton1, "okbutton1"); return image_nr_dialog; } gliv-1.9.7/tools/glade/image_nr/Makefile.in0000644000076400007640000002541511465576131016021 0ustar gg# 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 = : build_triplet = @build@ host_triplet = @host@ subdir = tools/glade/image_nr 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 = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CFLAG_VISIBILITY = @CFLAG_VISIBILITY@ 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@ GENCAT = @GENCAT@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ GTKGLEXT_CFLAGS = @GTKGLEXT_CFLAGS@ GTKGLEXT_LIBS = @GTKGLEXT_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ HAVE_WPRINTF = @HAVE_WPRINTF@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_DEFAULT_VERBOSITY = @INTL_DEFAULT_VERBOSITY@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBMULTITHREAD = @LIBMULTITHREAD@ LIBOBJS = @LIBOBJS@ LIBPTH = @LIBPTH@ LIBPTH_PREFIX = @LIBPTH_PREFIX@ LIBS = @LIBS@ LIBTHREAD = @LIBTHREAD@ LTLIBC = @LTLIBC@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBMULTITHREAD = @LTLIBMULTITHREAD@ LTLIBOBJS = @LTLIBOBJS@ LTLIBPTH = @LTLIBPTH@ LTLIBTHREAD = @LTLIBTHREAD@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ 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@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WINDRES = @WINDRES@ WOE32 = @WOE32@ WOE32DLL = @WOE32DLL@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ 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 = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ 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@ 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@ EXTRA_DIST = compil_test.sh empty_callbacks.c empty_callbacks.h \ glade_image_nr.c glade_image_nr.h gliv-image_nr.glade \ gliv-image_nr.gladep main.c make_glade_image_nr.sh 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 tools/glade/image_nr/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign tools/glade/image_nr/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): tags: TAGS TAGS: ctags: CTAGS CTAGS: 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 installdirs: 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-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-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: .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-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-generic pdf pdf-am ps ps-am uninstall uninstall-am glade_image_nr: glade_image_nr.c glade_image_nr.h main.c ./compil_test.sh glade_image_nr.c glade_image_nr.h main.c: gliv-image_nr.glade gliv-image_nr.gladep ./make_glade_image_nr.sh # 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: gliv-1.9.7/tools/glade/image_nr/image_nr_callbacks.c0000644000076400007640000000046611465576131017677 0ustar gg#ifdef HAVE_CONFIG_H # include #endif #include #include "image_nr_callbacks.h" #include "glade_image_nr.h" #include "empty_support.h" void on_image_nr_value_changed (GtkSpinButton *spinbutton, gpointer user_data) { } gliv-1.9.7/tools/glade/image_nr/image_nr_callbacks.h0000644000076400007640000000024611465576131017700 0ustar gg#include void on_image_nr_value_changed (GtkSpinButton *spinbutton, gpointer user_data); gliv-1.9.7/tools/glade/image_nr/compil_test.sh0000755000076400007640000000063511465576131016632 0ustar gg#!/bin/sh gcc -Wall -DPACKAGE_DATA_DIR=\".\" -DPACKAGE="" -D'_(str)=(str)' \ -D'add_pixmap_directory(dir)=do {} while (0)' \ -D'create_pixmap(a, b)=gtk_image_new()' \ $(pkg-config --cflags --libs gtk+-2.0) \ -include image_nr_callbacks.h \ glade_image_nr.c main.c image_nr_callbacks.c -o glade_image_nr gliv-1.9.7/tools/glade/image_nr/empty_support.h0000644000076400007640000000001411465576131017043 0ustar gg/* Empty */ gliv-1.9.7/tools/glade/actions/0000755000076400007640000000000011465576131013624 5ustar gggliv-1.9.7/tools/glade/actions/gliv-actions.gladep0000644000076400007640000000156411465576131017407 0ustar gg GLiv actions gliv-actions . . FALSE FALSE FALSE FALSE glade_actions.c glade_actions.h actions_callbacks.c actions_callbacks.h empty_support.c empty_support.h gliv-1.9.7/tools/glade/actions/main.c0000644000076400007640000000204411465576131014714 0ustar gg/* * Initial main.c file generated by Glade. Edit as required. * Glade will not overwrite this file. */ #ifdef HAVE_CONFIG_H # include #endif #include #include "glade_actions.h" #include "empty_support.h" int main (int argc, char *argv[]) { GtkWidget *actions_dialog; GtkWidget *edit_action_dialog; #ifdef ENABLE_NLS bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE); #endif gtk_set_locale (); gtk_init (&argc, &argv); add_pixmap_directory (PACKAGE_DATA_DIR "/" PACKAGE "/pixmaps"); /* * The following code was added by Glade to create one of each component * (except popup menus), just so that you see something after building * the project. Delete any components that you don't want shown initially. */ actions_dialog = create_actions_dialog (); gtk_widget_show (actions_dialog); edit_action_dialog = create_edit_action_dialog (); gtk_widget_show (edit_action_dialog); gtk_main (); return 0; } gliv-1.9.7/tools/glade/actions/actions_callbacks.c0000644000076400007640000000112211465576131017423 0ustar gg#ifdef HAVE_CONFIG_H # include #endif #include #include "actions_callbacks.h" #include "glade_actions.h" #include "empty_support.h" void on_add_button_clicked (GtkButton *button, gpointer user_data) { } void on_property_button_clicked (GtkButton *button, gpointer user_data) { } void on_delete_button_clicked (GtkButton *button, gpointer user_data) { } gliv-1.9.7/tools/glade/actions/gliv-actions.glade0000644000076400007640000003751411465576131017233 0ustar gg True Actions GTK_WINDOW_TOPLEVEL GTK_WIN_POS_MOUSE True True False True False False GDK_WINDOW_TYPE_HINT_DIALOG GDK_GRAVITY_NORTH_WEST True True False 0 True GTK_BUTTONBOX_END True True True gtk-cancel True GTK_RELIEF_NORMAL True -6 True True True gtk-ok True GTK_RELIEF_NORMAL True -5 0 False True GTK_PACK_END True False 0 10 True True GTK_POLICY_AUTOMATIC GTK_POLICY_AUTOMATIC GTK_SHADOW_NONE GTK_CORNER_TOP_LEFT 200 200 True True True True True True 0 True True True False 0 True True True True True gtk-add True GTK_RELIEF_NORMAL True 0 True False True False True gtk-properties True GTK_RELIEF_NORMAL True 0 True False True False True gtk-remove True GTK_RELIEF_NORMAL True 0 True False 0 False False 0 True True True Edit Action GTK_WINDOW_TOPLEVEL GTK_WIN_POS_MOUSE True True False True False False GDK_WINDOW_TYPE_HINT_DIALOG GDK_GRAVITY_NORTH_WEST True True False 0 True GTK_BUTTONBOX_END True True True gtk-cancel True GTK_RELIEF_NORMAL True -6 True True True gtk-ok True GTK_RELIEF_NORMAL True -5 0 False False GTK_PACK_END True False 0 True 2 2 False 0 0 True Name False False GTK_JUSTIFY_LEFT False False 0 0.5 0 0 name_entry 0 1 0 1 expand|shrink|fill expand|shrink|fill True Command False False GTK_JUSTIFY_LEFT False False 0 0.5 0 0 command_entry 0 1 1 2 expand|shrink|fill expand|shrink|fill True True True True 0 True * False 1 2 1 2 10 10 expand|shrink|fill expand|shrink|fill True True True True True 0 True * False 1 2 0 1 10 10 expand|shrink|fill expand|shrink|fill 0 True True True 0 False False True True GTK_POLICY_AUTOMATIC GTK_POLICY_AUTOMATIC GTK_SHADOW_NONE GTK_CORNER_TOP_LEFT 300 120 True True False False True GTK_JUSTIFY_LEFT GTK_WRAP_WORD True 0 0 0 0 0 0 In the command field, printf like substitutions can be used: %d Path to the current file directory %b Current file name %f Path to the current file %% A litteral % 0 True True 0 True True gliv-1.9.7/tools/glade/actions/make_glade_actions.sh0000755000076400007640000000075311465576131017761 0ustar gg#!/bin/sh set -o xtrace if [ ! -f gliv-actions.glade ] || [ ! -d ../../../src/include ]; then echo "Wrong directory" exit 1 fi : Cleaning... rm -v *.[ch] : : Gladeing... glade-2 -w gliv-actions.glade : : Greping grep -vE '^#include "[^"]+"$' glade_actions.c > glade_actions.c.ttmmpp : : Emptying... mv -v glade_actions.c.ttmmpp glade_actions.c echo '/* Empty */' > empty_support.h : : Copying... cp -v glade_actions.c ../../../src cp -v glade_actions.h ../../../src/include gliv-1.9.7/tools/glade/actions/glade_actions.h0000644000076400007640000000022311465576131016566 0ustar gg/* * DO NOT EDIT THIS FILE - it is generated by Glade. */ GtkWidget* create_actions_dialog (void); GtkWidget* create_edit_action_dialog (void); gliv-1.9.7/tools/glade/actions/Makefile.am0000644000076400007640000000056411465576131015665 0ustar ggEXTRA_DIST = compil_test.sh empty_callbacks.c empty_callbacks.h \ glade_actions.c glade_actions.h gliv-actions.glade \ gliv-actions.gladep main.c make_glade_actions.sh glade_actions: glade_actions.c glade_actions.h main.c ./compil_test.sh glade_actions.c glade_actions.h main.c: gliv-actions.glade gliv-actions.gladep ./make_glade_actions.sh gliv-1.9.7/tools/glade/actions/actions_callbacks.h0000644000076400007640000000067211465576131017441 0ustar gg#include void on_add_button_clicked (GtkButton *button, gpointer user_data); void on_property_button_clicked (GtkButton *button, gpointer user_data); void on_delete_button_clicked (GtkButton *button, gpointer user_data); gliv-1.9.7/tools/glade/actions/Makefile.in0000644000076400007640000002537511465576131015705 0ustar gg# 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 = : build_triplet = @build@ host_triplet = @host@ subdir = tools/glade/actions 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 = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CFLAG_VISIBILITY = @CFLAG_VISIBILITY@ 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@ GENCAT = @GENCAT@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ GTKGLEXT_CFLAGS = @GTKGLEXT_CFLAGS@ GTKGLEXT_LIBS = @GTKGLEXT_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ HAVE_WPRINTF = @HAVE_WPRINTF@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_DEFAULT_VERBOSITY = @INTL_DEFAULT_VERBOSITY@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBMULTITHREAD = @LIBMULTITHREAD@ LIBOBJS = @LIBOBJS@ LIBPTH = @LIBPTH@ LIBPTH_PREFIX = @LIBPTH_PREFIX@ LIBS = @LIBS@ LIBTHREAD = @LIBTHREAD@ LTLIBC = @LTLIBC@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBMULTITHREAD = @LTLIBMULTITHREAD@ LTLIBOBJS = @LTLIBOBJS@ LTLIBPTH = @LTLIBPTH@ LTLIBTHREAD = @LTLIBTHREAD@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ 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@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WINDRES = @WINDRES@ WOE32 = @WOE32@ WOE32DLL = @WOE32DLL@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ 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 = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ 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@ 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@ EXTRA_DIST = compil_test.sh empty_callbacks.c empty_callbacks.h \ glade_actions.c glade_actions.h gliv-actions.glade \ gliv-actions.gladep main.c make_glade_actions.sh 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 tools/glade/actions/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign tools/glade/actions/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): tags: TAGS TAGS: ctags: CTAGS CTAGS: 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 installdirs: 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-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-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: .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-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-generic pdf pdf-am ps ps-am uninstall uninstall-am glade_actions: glade_actions.c glade_actions.h main.c ./compil_test.sh glade_actions.c glade_actions.h main.c: gliv-actions.glade gliv-actions.gladep ./make_glade_actions.sh # 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: gliv-1.9.7/tools/glade/actions/glade_actions.c0000644000076400007640000002420011465576131016562 0ustar gg/* * DO NOT EDIT THIS FILE - it is generated by Glade. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include #define GLADE_HOOKUP_OBJECT(component,widget,name) \ g_object_set_data_full (G_OBJECT (component), name, \ gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref) #define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \ g_object_set_data (G_OBJECT (component), name, widget) GtkWidget* create_actions_dialog (void) { GtkWidget *actions_dialog; GtkWidget *dialog_vbox1; GtkWidget *hbox10; GtkWidget *scrolledwindow3; GtkWidget *treeview; GtkWidget *vbox12; GtkWidget *add_button; GtkWidget *property_button; GtkWidget *delete_button; GtkWidget *dialog_action_area1; GtkWidget *cancelbutton1; GtkWidget *okbutton1; actions_dialog = gtk_dialog_new (); gtk_window_set_title (GTK_WINDOW (actions_dialog), _("Actions")); gtk_window_set_position (GTK_WINDOW (actions_dialog), GTK_WIN_POS_MOUSE); gtk_window_set_modal (GTK_WINDOW (actions_dialog), TRUE); gtk_window_set_type_hint (GTK_WINDOW (actions_dialog), GDK_WINDOW_TYPE_HINT_DIALOG); dialog_vbox1 = GTK_DIALOG (actions_dialog)->vbox; gtk_widget_show (dialog_vbox1); hbox10 = gtk_hbox_new (FALSE, 0); gtk_widget_show (hbox10); gtk_box_pack_start (GTK_BOX (dialog_vbox1), hbox10, TRUE, TRUE, 0); scrolledwindow3 = gtk_scrolled_window_new (NULL, NULL); gtk_widget_show (scrolledwindow3); gtk_box_pack_start (GTK_BOX (hbox10), scrolledwindow3, TRUE, TRUE, 0); gtk_container_set_border_width (GTK_CONTAINER (scrolledwindow3), 10); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow3), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); treeview = gtk_tree_view_new (); gtk_widget_show (treeview); gtk_container_add (GTK_CONTAINER (scrolledwindow3), treeview); gtk_widget_set_size_request (treeview, 200, 200); gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (treeview), TRUE); gtk_tree_view_set_reorderable (GTK_TREE_VIEW (treeview), TRUE); vbox12 = gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox12); gtk_box_pack_start (GTK_BOX (hbox10), vbox12, FALSE, FALSE, 0); add_button = gtk_button_new_from_stock ("gtk-add"); gtk_widget_show (add_button); gtk_box_pack_start (GTK_BOX (vbox12), add_button, TRUE, FALSE, 0); GTK_WIDGET_SET_FLAGS (add_button, GTK_CAN_DEFAULT); property_button = gtk_button_new_from_stock ("gtk-properties"); gtk_widget_show (property_button); gtk_box_pack_start (GTK_BOX (vbox12), property_button, TRUE, FALSE, 0); gtk_widget_set_sensitive (property_button, FALSE); delete_button = gtk_button_new_from_stock ("gtk-remove"); gtk_widget_show (delete_button); gtk_box_pack_start (GTK_BOX (vbox12), delete_button, TRUE, FALSE, 0); gtk_widget_set_sensitive (delete_button, FALSE); dialog_action_area1 = GTK_DIALOG (actions_dialog)->action_area; gtk_widget_show (dialog_action_area1); gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area1), GTK_BUTTONBOX_END); cancelbutton1 = gtk_button_new_from_stock ("gtk-cancel"); gtk_widget_show (cancelbutton1); gtk_dialog_add_action_widget (GTK_DIALOG (actions_dialog), cancelbutton1, GTK_RESPONSE_CANCEL); GTK_WIDGET_SET_FLAGS (cancelbutton1, GTK_CAN_DEFAULT); okbutton1 = gtk_button_new_from_stock ("gtk-ok"); gtk_widget_show (okbutton1); gtk_dialog_add_action_widget (GTK_DIALOG (actions_dialog), okbutton1, GTK_RESPONSE_OK); GTK_WIDGET_SET_FLAGS (okbutton1, GTK_CAN_DEFAULT); g_signal_connect ((gpointer) add_button, "clicked", G_CALLBACK (on_add_button_clicked), NULL); g_signal_connect ((gpointer) property_button, "clicked", G_CALLBACK (on_property_button_clicked), NULL); g_signal_connect ((gpointer) delete_button, "clicked", G_CALLBACK (on_delete_button_clicked), NULL); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (actions_dialog, actions_dialog, "actions_dialog"); GLADE_HOOKUP_OBJECT_NO_REF (actions_dialog, dialog_vbox1, "dialog_vbox1"); GLADE_HOOKUP_OBJECT (actions_dialog, hbox10, "hbox10"); GLADE_HOOKUP_OBJECT (actions_dialog, scrolledwindow3, "scrolledwindow3"); GLADE_HOOKUP_OBJECT (actions_dialog, treeview, "treeview"); GLADE_HOOKUP_OBJECT (actions_dialog, vbox12, "vbox12"); GLADE_HOOKUP_OBJECT (actions_dialog, add_button, "add_button"); GLADE_HOOKUP_OBJECT (actions_dialog, property_button, "property_button"); GLADE_HOOKUP_OBJECT (actions_dialog, delete_button, "delete_button"); GLADE_HOOKUP_OBJECT_NO_REF (actions_dialog, dialog_action_area1, "dialog_action_area1"); GLADE_HOOKUP_OBJECT (actions_dialog, cancelbutton1, "cancelbutton1"); GLADE_HOOKUP_OBJECT (actions_dialog, okbutton1, "okbutton1"); gtk_widget_grab_focus (add_button); gtk_widget_grab_default (add_button); return actions_dialog; } GtkWidget* create_edit_action_dialog (void) { GtkWidget *edit_action_dialog; GtkWidget *dialog_vbox2; GtkWidget *vbox13; GtkWidget *table7; GtkWidget *label34; GtkWidget *label35; GtkWidget *command_entry; GtkWidget *name_entry; GtkWidget *hseparator1; GtkWidget *scrolledwindow4; GtkWidget *textview1; GtkWidget *dialog_action_area2; GtkWidget *cancelbutton2; GtkWidget *okbutton2; edit_action_dialog = gtk_dialog_new (); gtk_window_set_title (GTK_WINDOW (edit_action_dialog), _("Edit Action")); gtk_window_set_position (GTK_WINDOW (edit_action_dialog), GTK_WIN_POS_MOUSE); gtk_window_set_modal (GTK_WINDOW (edit_action_dialog), TRUE); gtk_window_set_type_hint (GTK_WINDOW (edit_action_dialog), GDK_WINDOW_TYPE_HINT_DIALOG); dialog_vbox2 = GTK_DIALOG (edit_action_dialog)->vbox; gtk_widget_show (dialog_vbox2); vbox13 = gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox13); gtk_box_pack_start (GTK_BOX (dialog_vbox2), vbox13, TRUE, TRUE, 0); table7 = gtk_table_new (2, 2, FALSE); gtk_widget_show (table7); gtk_box_pack_start (GTK_BOX (vbox13), table7, TRUE, TRUE, 0); label34 = gtk_label_new (_("Name")); gtk_widget_show (label34); gtk_table_attach (GTK_TABLE (table7), label34, 0, 1, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); gtk_misc_set_alignment (GTK_MISC (label34), 0, 0.5); label35 = gtk_label_new (_("Command")); gtk_widget_show (label35); gtk_table_attach (GTK_TABLE (table7), label35, 0, 1, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); gtk_misc_set_alignment (GTK_MISC (label35), 0, 0.5); command_entry = gtk_entry_new (); gtk_widget_show (command_entry); gtk_table_attach (GTK_TABLE (table7), command_entry, 1, 2, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 10, 10); name_entry = gtk_entry_new (); gtk_widget_show (name_entry); gtk_table_attach (GTK_TABLE (table7), name_entry, 1, 2, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 10, 10); hseparator1 = gtk_hseparator_new (); gtk_widget_show (hseparator1); gtk_box_pack_start (GTK_BOX (vbox13), hseparator1, FALSE, FALSE, 0); scrolledwindow4 = gtk_scrolled_window_new (NULL, NULL); gtk_widget_show (scrolledwindow4); gtk_box_pack_start (GTK_BOX (vbox13), scrolledwindow4, TRUE, TRUE, 0); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow4), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); textview1 = gtk_text_view_new (); gtk_widget_show (textview1); gtk_container_add (GTK_CONTAINER (scrolledwindow4), textview1); gtk_widget_set_size_request (textview1, 300, 120); gtk_text_view_set_editable (GTK_TEXT_VIEW (textview1), FALSE); gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (textview1), GTK_WRAP_WORD); gtk_text_buffer_set_text (gtk_text_view_get_buffer (GTK_TEXT_VIEW (textview1)), _("In the command field, printf like substitutions can be used:\n%d\t\tPath to the current file directory\n%b\t\tCurrent file name\n%f\t\tPath to the current file\n%%\t\tA litteral %\n"), -1); dialog_action_area2 = GTK_DIALOG (edit_action_dialog)->action_area; gtk_widget_show (dialog_action_area2); gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area2), GTK_BUTTONBOX_END); cancelbutton2 = gtk_button_new_from_stock ("gtk-cancel"); gtk_widget_show (cancelbutton2); gtk_dialog_add_action_widget (GTK_DIALOG (edit_action_dialog), cancelbutton2, GTK_RESPONSE_CANCEL); GTK_WIDGET_SET_FLAGS (cancelbutton2, GTK_CAN_DEFAULT); okbutton2 = gtk_button_new_from_stock ("gtk-ok"); gtk_widget_show (okbutton2); gtk_dialog_add_action_widget (GTK_DIALOG (edit_action_dialog), okbutton2, GTK_RESPONSE_OK); GTK_WIDGET_SET_FLAGS (okbutton2, GTK_CAN_DEFAULT); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (edit_action_dialog, edit_action_dialog, "edit_action_dialog"); GLADE_HOOKUP_OBJECT_NO_REF (edit_action_dialog, dialog_vbox2, "dialog_vbox2"); GLADE_HOOKUP_OBJECT (edit_action_dialog, vbox13, "vbox13"); GLADE_HOOKUP_OBJECT (edit_action_dialog, table7, "table7"); GLADE_HOOKUP_OBJECT (edit_action_dialog, label34, "label34"); GLADE_HOOKUP_OBJECT (edit_action_dialog, label35, "label35"); GLADE_HOOKUP_OBJECT (edit_action_dialog, command_entry, "command_entry"); GLADE_HOOKUP_OBJECT (edit_action_dialog, name_entry, "name_entry"); GLADE_HOOKUP_OBJECT (edit_action_dialog, hseparator1, "hseparator1"); GLADE_HOOKUP_OBJECT (edit_action_dialog, scrolledwindow4, "scrolledwindow4"); GLADE_HOOKUP_OBJECT (edit_action_dialog, textview1, "textview1"); GLADE_HOOKUP_OBJECT_NO_REF (edit_action_dialog, dialog_action_area2, "dialog_action_area2"); GLADE_HOOKUP_OBJECT (edit_action_dialog, cancelbutton2, "cancelbutton2"); GLADE_HOOKUP_OBJECT (edit_action_dialog, okbutton2, "okbutton2"); gtk_widget_grab_focus (name_entry); return edit_action_dialog; } gliv-1.9.7/tools/glade/actions/compil_test.sh0000755000076400007640000000052711465576131016511 0ustar gg#!/bin/sh gcc -Wall -DPACKAGE_DATA_DIR=\".\" -DPACKAGE="" -D'_(str)=(str)' \ -D'add_pixmap_directory(dir)=do {} while (0)' \ $(pkg-config --cflags --libs gtk+-2.0) \ -include actions_callbacks.h \ glade_actions.c main.c actions_callbacks.c -o glade_actions gliv-1.9.7/tools/glade/actions/empty_support.h0000644000076400007640000000001411465576131016722 0ustar gg/* Empty */ gliv-1.9.7/tools/glade/Makefile.in0000644000076400007640000004274111465576131014241 0ustar gg# 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 = : build_triplet = @build@ host_triplet = @host@ subdir = tools/glade 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 = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/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 ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 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" ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CFLAG_VISIBILITY = @CFLAG_VISIBILITY@ 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@ GENCAT = @GENCAT@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ GTKGLEXT_CFLAGS = @GTKGLEXT_CFLAGS@ GTKGLEXT_LIBS = @GTKGLEXT_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ HAVE_WPRINTF = @HAVE_WPRINTF@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_DEFAULT_VERBOSITY = @INTL_DEFAULT_VERBOSITY@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBMULTITHREAD = @LIBMULTITHREAD@ LIBOBJS = @LIBOBJS@ LIBPTH = @LIBPTH@ LIBPTH_PREFIX = @LIBPTH_PREFIX@ LIBS = @LIBS@ LIBTHREAD = @LIBTHREAD@ LTLIBC = @LTLIBC@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBMULTITHREAD = @LTLIBMULTITHREAD@ LTLIBOBJS = @LTLIBOBJS@ LTLIBPTH = @LTLIBPTH@ LTLIBTHREAD = @LTLIBTHREAD@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ 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@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WINDRES = @WINDRES@ WOE32 = @WOE32@ WOE32DLL = @WOE32DLL@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ 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 = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ 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@ 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 = actions image_nr options all: all-recursive .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 tools/glade/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign tools/glade/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): # 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) $(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) $(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) $(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 @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 check-am: all-am check: check-recursive all-am: Makefile 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 Makefile distclean-am: clean-am distclean-generic 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 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) ctags-recursive \ install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am clean clean-generic ctags \ ctags-recursive distclean distclean-generic distclean-tags \ distdir 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: gliv-1.9.7/tools/glade/options/0000755000076400007640000000000011465576131013657 5ustar gggliv-1.9.7/tools/glade/options/main.c0000644000076400007640000000164611465576131014756 0ustar gg/* * Initial main.c file generated by Glade. Edit as required. * Glade will not overwrite this file. */ #ifdef HAVE_CONFIG_H # include #endif #include #include "glade_options.h" #include "empty_support.h" int main (int argc, char *argv[]) { GtkWidget *options_dialog; #ifdef ENABLE_NLS bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE); #endif gtk_set_locale (); gtk_init (&argc, &argv); add_pixmap_directory (PACKAGE_DATA_DIR "/" PACKAGE "/pixmaps"); /* * The following code was added by Glade to create one of each component * (except popup menus), just so that you see something after building * the project. Delete any components that you don't want shown initially. */ options_dialog = create_options_dialog (); gtk_widget_show (options_dialog); gtk_main (); return 0; } gliv-1.9.7/tools/glade/options/gliv-options.gladep0000644000076400007640000000156011465576131017471 0ustar gg GLiv options gliv-options . . FALSE FALSE FALSE FALSE glade_options.c glade_options.h empty_callbacks.c empty_callbacks.h empty_support.c empty_support.h gliv-1.9.7/tools/glade/options/glade_options.c0000644000076400007640000011577311465576131016670 0ustar gg/* * DO NOT EDIT THIS FILE - it is generated by Glade. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include #include "glade_options.h" #define GLADE_HOOKUP_OBJECT(component,widget,name) \ g_object_set_data_full (G_OBJECT (component), name, \ gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref) #define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \ g_object_set_data (G_OBJECT (component), name, widget) GtkWidget* create_options_dialog (void) { GtkWidget *options_dialog; GtkWidget *dialog_vbox1; GtkWidget *expander1; GtkWidget *vbox9; GtkWidget *hbox9; GtkWidget *save_now; GtkWidget *alignment2; GtkWidget *hbox8; GtkWidget *image2; GtkWidget *label37; GtkWidget *save_quit; GtkWidget *read_config; GtkWidget *write_config; GtkWidget *label38; GtkWidget *notebook1; GtkWidget *vbox3; GtkWidget *table1; GtkWidget *scrollbars; GtkWidget *fullscreen; GtkWidget *menu_bar; GtkWidget *status_bar; GtkWidget *confirm_quit; GtkWidget *resize_win; GtkWidget *hbox2; GtkWidget *label8; GtkObject *delay_cursor_adj; GtkWidget *delay_cursor; GtkWidget *label9; GtkWidget *label1; GtkWidget *table2; GtkWidget *scale_down; GtkWidget *maximize; GtkWidget *mipmaps; GtkWidget *dithering; GtkWidget *one_image; GtkWidget *opengl_errors; GtkWidget *filtering; GtkWidget *label2; GtkWidget *vbox7; GtkWidget *hbox5; GtkWidget *images_menus_startup; GtkWidget *images_menus_mnemonics; GtkWidget *thumbnails; GtkWidget *table5; GtkWidget *label26; GtkWidget *label27; GtkWidget *label25; GtkObject *thumbnails_width_adj; GtkWidget *thumbnails_width; GtkObject *thumbnails_height_adj; GtkWidget *thumbnails_height; GtkWidget *label24; GtkWidget *label3; GtkWidget *vbox5; GtkWidget *hbox10; GtkWidget *zoom_pointer; GtkWidget *keep_transfo; GtkWidget *hbox11; GtkWidget *label42; GtkWidget *initlal_position; GtkWidget *table4; GtkObject *max_fps_adj; GtkWidget *max_fps; GtkObject *history_length_adj; GtkWidget *history_length; GtkWidget *label16; GtkWidget *label17; GtkWidget *label18; GtkWidget *label19; GtkWidget *label4; GtkWidget *vbox6; GtkWidget *hbox3; GtkWidget *start_slide_show; GtkWidget *slide_show_loop; GtkWidget *table7; GtkWidget *label28; GtkWidget *label20; GtkObject *slide_show_delay_adj; GtkWidget *slide_show_delay; GtkWidget *label21; GtkWidget *label29; GtkObject *notice_time_adj; GtkWidget *notice_time; GtkWidget *hseparator1; GtkWidget *transitions; GtkWidget *transition_box; GtkWidget *hbox13; GtkWidget *label46; GtkObject *trans_duration_adj; GtkWidget *trans_duration; GtkWidget *label47; GtkWidget *label48; GtkWidget *label5; GtkWidget *vbox10; GtkWidget *table8; GtkWidget *label41; GtkWidget *label40; GtkWidget *label39; GtkWidget *alpha1; GtkWidget *alpha2; GtkWidget *alpha_checks; GtkWidget *background; GtkWidget *label6; GtkWidget *dialog_action_area1; GtkWidget *cancelbutton1; GtkWidget *okbutton1; options_dialog = gtk_dialog_new (); gtk_window_set_title (GTK_WINDOW (options_dialog), _("Options")); gtk_window_set_position (GTK_WINDOW (options_dialog), GTK_WIN_POS_MOUSE); gtk_window_set_modal (GTK_WINDOW (options_dialog), TRUE); dialog_vbox1 = GTK_DIALOG (options_dialog)->vbox; gtk_widget_show (dialog_vbox1); expander1 = gtk_expander_new (NULL); gtk_widget_show (expander1); gtk_box_pack_end (GTK_BOX (dialog_vbox1), expander1, TRUE, TRUE, 0); gtk_expander_set_spacing (GTK_EXPANDER (expander1), 10); vbox9 = gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox9); gtk_container_add (GTK_CONTAINER (expander1), vbox9); hbox9 = gtk_hbox_new (FALSE, 0); gtk_widget_show (hbox9); gtk_box_pack_start (GTK_BOX (vbox9), hbox9, TRUE, TRUE, 0); save_now = gtk_button_new (); gtk_widget_show (save_now); gtk_box_pack_start (GTK_BOX (hbox9), save_now, TRUE, FALSE, 0); alignment2 = gtk_alignment_new (0.5, 0.5, 0, 0); gtk_widget_show (alignment2); gtk_container_add (GTK_CONTAINER (save_now), alignment2); hbox8 = gtk_hbox_new (FALSE, 2); gtk_widget_show (hbox8); gtk_container_add (GTK_CONTAINER (alignment2), hbox8); image2 = gtk_image_new_from_stock ("gtk-save", GTK_ICON_SIZE_BUTTON); gtk_widget_show (image2); gtk_box_pack_start (GTK_BOX (hbox8), image2, FALSE, FALSE, 0); label37 = gtk_label_new_with_mnemonic (_("Save options now")); gtk_widget_show (label37); gtk_box_pack_start (GTK_BOX (hbox8), label37, TRUE, TRUE, 0); save_quit = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Save options when quitting"))); add_check_button(save_quit, OPTION_SAVE_QUIT); gtk_widget_show (save_quit); gtk_box_pack_start (GTK_BOX (hbox9), save_quit, TRUE, TRUE, 0); read_config = gtk_label_new (""); gtk_widget_show (read_config); gtk_box_pack_start (GTK_BOX (vbox9), read_config, TRUE, TRUE, 0); gtk_misc_set_padding (GTK_MISC (read_config), 0, 5); write_config = gtk_label_new (""); gtk_widget_show (write_config); gtk_box_pack_start (GTK_BOX (vbox9), write_config, FALSE, FALSE, 0); gtk_misc_set_padding (GTK_MISC (write_config), 0, 5); label38 = gtk_label_new (_("Configuration file")); gtk_widget_show (label38); gtk_expander_set_label_widget (GTK_EXPANDER (expander1), label38); gtk_label_set_justify (GTK_LABEL (label38), GTK_JUSTIFY_CENTER); notebook1 = gtk_notebook_new (); gtk_widget_show (notebook1); gtk_box_pack_start (GTK_BOX (dialog_vbox1), notebook1, TRUE, TRUE, 0); gtk_notebook_set_scrollable (GTK_NOTEBOOK (notebook1), TRUE); gtk_notebook_popup_enable (GTK_NOTEBOOK (notebook1)); vbox3 = gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox3); gtk_container_add (GTK_CONTAINER (notebook1), vbox3); reset_mnemonics(); gtk_notebook_set_tab_label_packing (GTK_NOTEBOOK (notebook1), vbox3, TRUE, TRUE, GTK_PACK_START); table1 = gtk_table_new (3, 2, TRUE); gtk_widget_show (table1); gtk_box_pack_start (GTK_BOX (vbox3), table1, TRUE, TRUE, 0); scrollbars = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Scrollbars enabled"))); add_check_button(scrollbars, OPTION_SCROLLBARS); gtk_widget_show (scrollbars); gtk_table_attach (GTK_TABLE (table1), scrollbars, 0, 1, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); fullscreen = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Fullscreen mode"))); add_check_button(fullscreen, OPTION_FULLSCREEN); gtk_widget_show (fullscreen); gtk_table_attach (GTK_TABLE (table1), fullscreen, 0, 1, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); menu_bar = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Menu bar enabled"))); add_check_button(menu_bar, OPTION_MENU_BAR); gtk_widget_show (menu_bar); gtk_table_attach (GTK_TABLE (table1), menu_bar, 1, 2, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); status_bar = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Status bar enabled"))); add_check_button(status_bar, OPTION_STATUS_BAR); gtk_widget_show (status_bar); gtk_table_attach (GTK_TABLE (table1), status_bar, 1, 2, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); confirm_quit = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Confirm before quitting"))); add_check_button(confirm_quit, OPTION_CONFIRM_QUIT); gtk_widget_show (confirm_quit); gtk_table_attach (GTK_TABLE (table1), confirm_quit, 0, 1, 2, 3, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); resize_win = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Automatic window resizing"))); add_check_button(resize_win, OPTION_RESIZE_WIN); gtk_widget_show (resize_win); gtk_table_attach (GTK_TABLE (table1), resize_win, 1, 2, 2, 3, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); hbox2 = gtk_hbox_new (FALSE, 0); gtk_widget_show (hbox2); gtk_box_pack_start (GTK_BOX (vbox3), hbox2, TRUE, TRUE, 0); label8 = gtk_label_new (_("Delay before hiding the cursor\n0: feature disabled")); gtk_widget_show (label8); gtk_box_pack_start (GTK_BOX (hbox2), label8, TRUE, TRUE, 0); gtk_label_set_justify (GTK_LABEL (label8), GTK_JUSTIFY_RIGHT); delay_cursor_adj = gtk_adjustment_new (1, 0, 1000000000, 1, 10, 0); delay_cursor = gtk_spin_button_new (GTK_ADJUSTMENT (delay_cursor_adj), 1, 0); add_spin_button(delay_cursor, OPTION_DELAY_CURSOR); gtk_widget_show (delay_cursor); gtk_box_pack_start (GTK_BOX (hbox2), delay_cursor, TRUE, TRUE, 0); gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (delay_cursor), TRUE); gtk_spin_button_set_update_policy (GTK_SPIN_BUTTON (delay_cursor), GTK_UPDATE_IF_VALID); label9 = gtk_label_new (_("milliseconds")); gtk_widget_show (label9); gtk_box_pack_start (GTK_BOX (hbox2), label9, TRUE, TRUE, 0); gtk_label_set_justify (GTK_LABEL (label9), GTK_JUSTIFY_CENTER); label1 = gtk_label_new (_("Interface")); gtk_widget_show (label1); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 0), label1); table2 = gtk_table_new (4, 2, FALSE); gtk_widget_show (table2); gtk_container_add (GTK_CONTAINER (notebook1), table2); reset_mnemonics(); gtk_notebook_set_tab_label_packing (GTK_NOTEBOOK (notebook1), table2, TRUE, TRUE, GTK_PACK_START); scale_down = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Scale down large images"))); add_check_button(scale_down, OPTION_SCALE_DOWN); gtk_widget_show (scale_down); gtk_table_attach (GTK_TABLE (table2), scale_down, 0, 1, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); maximize = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Maximize small images"))); add_check_button(maximize, OPTION_MAXIMIZE); gtk_widget_show (maximize); gtk_table_attach (GTK_TABLE (table2), maximize, 1, 2, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); mipmaps = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Build mipmaps"))); add_check_button(mipmaps, OPTION_MIPMAPS); gtk_widget_show (mipmaps); gtk_table_attach (GTK_TABLE (table2), mipmaps, 1, 2, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); dithering = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Dithering"))); add_check_button(dithering, OPTION_DITHERING); gtk_widget_show (dithering); gtk_table_attach (GTK_TABLE (table2), dithering, 0, 1, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); one_image = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Keep only one image in memory"))); add_check_button(one_image, OPTION_ONE_IMAGE); gtk_widget_show (one_image); gtk_table_attach (GTK_TABLE (table2), one_image, 1, 2, 2, 3, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); opengl_errors = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Check for OpenGL errors"))); add_check_button(opengl_errors, OPTION_OPENGL_ERRORS); gtk_widget_show (opengl_errors); gtk_table_attach (GTK_TABLE (table2), opengl_errors, 0, 1, 2, 3, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); filtering = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Enable OpenGL filtering"))); add_check_button(filtering, OPTION_FILTERING); gtk_widget_show (filtering); gtk_table_attach (GTK_TABLE (table2), filtering, 1, 2, 3, 4, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); label2 = gtk_label_new (_("Images")); gtk_widget_show (label2); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 1), label2); vbox7 = gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox7); gtk_container_add (GTK_CONTAINER (notebook1), vbox7); reset_mnemonics(); hbox5 = gtk_hbox_new (FALSE, 0); gtk_widget_show (hbox5); gtk_box_pack_start (GTK_BOX (vbox7), hbox5, TRUE, TRUE, 0); images_menus_startup = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Build images menus at startup"))); add_check_button(images_menus_startup, OPTION_IMAGES_MENUS_STARTUP); gtk_widget_show (images_menus_startup); gtk_box_pack_start (GTK_BOX (hbox5), images_menus_startup, TRUE, TRUE, 0); images_menus_mnemonics = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Make mnemonics for images menus"))); add_check_button(images_menus_mnemonics, OPTION_IMAGES_MENUS_MNEMONICS); gtk_widget_show (images_menus_mnemonics); gtk_box_pack_start (GTK_BOX (hbox5), images_menus_mnemonics, TRUE, TRUE, 0); thumbnails = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Show thumbnails in images menus"))); add_check_button(thumbnails, OPTION_THUMBNAILS); gtk_widget_show (thumbnails); gtk_box_pack_start (GTK_BOX (vbox7), thumbnails, TRUE, TRUE, 0); table5 = gtk_table_new (2, 3, FALSE); gtk_widget_show (table5); gtk_box_pack_start (GTK_BOX (vbox7), table5, TRUE, TRUE, 0); label26 = gtk_label_new (_("pixels")); gtk_widget_show (label26); gtk_table_attach (GTK_TABLE (table5), label26, 2, 3, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); gtk_label_set_justify (GTK_LABEL (label26), GTK_JUSTIFY_CENTER); gtk_misc_set_alignment (GTK_MISC (label26), 0, 0.5); gtk_misc_set_padding (GTK_MISC (label26), 10, 0); label27 = gtk_label_new (_("pixels")); gtk_widget_show (label27); gtk_table_attach (GTK_TABLE (table5), label27, 2, 3, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); gtk_label_set_justify (GTK_LABEL (label27), GTK_JUSTIFY_CENTER); gtk_misc_set_alignment (GTK_MISC (label27), 0, 0.5); gtk_misc_set_padding (GTK_MISC (label27), 10, 0); label25 = gtk_label_new (_("Thumbnail height")); gtk_widget_show (label25); gtk_table_attach (GTK_TABLE (table5), label25, 0, 1, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); gtk_label_set_justify (GTK_LABEL (label25), GTK_JUSTIFY_RIGHT); gtk_misc_set_alignment (GTK_MISC (label25), 0, 0.5); gtk_misc_set_padding (GTK_MISC (label25), 10, 0); thumbnails_width_adj = gtk_adjustment_new (1, 1, 1000000000, 1, 10, 0); thumbnails_width = gtk_spin_button_new (GTK_ADJUSTMENT (thumbnails_width_adj), 1, 0); add_spin_button(thumbnails_width, OPTION_THUMBNAILS_WIDTH); gtk_widget_show (thumbnails_width); gtk_table_attach (GTK_TABLE (table5), thumbnails_width, 1, 2, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (thumbnails_width), TRUE); gtk_spin_button_set_update_policy (GTK_SPIN_BUTTON (thumbnails_width), GTK_UPDATE_IF_VALID); thumbnails_height_adj = gtk_adjustment_new (1, 1, 1000000000, 1, 10, 0); thumbnails_height = gtk_spin_button_new (GTK_ADJUSTMENT (thumbnails_height_adj), 1, 0); add_spin_button(thumbnails_height, OPTION_THUMBNAILS_HEIGHT); gtk_widget_show (thumbnails_height); gtk_table_attach (GTK_TABLE (table5), thumbnails_height, 1, 2, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (thumbnails_height), TRUE); gtk_spin_button_set_update_policy (GTK_SPIN_BUTTON (thumbnails_height), GTK_UPDATE_IF_VALID); label24 = gtk_label_new (_("Thumbnail width")); gtk_widget_show (label24); gtk_table_attach (GTK_TABLE (table5), label24, 0, 1, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); gtk_label_set_justify (GTK_LABEL (label24), GTK_JUSTIFY_RIGHT); gtk_misc_set_alignment (GTK_MISC (label24), 0, 0.5); gtk_misc_set_padding (GTK_MISC (label24), 10, 0); label3 = gtk_label_new (_("Images menus")); gtk_widget_show (label3); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 2), label3); vbox5 = gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox5); gtk_container_add (GTK_CONTAINER (notebook1), vbox5); reset_mnemonics(); gtk_notebook_set_tab_label_packing (GTK_NOTEBOOK (notebook1), vbox5, TRUE, TRUE, GTK_PACK_START); hbox10 = gtk_hbox_new (FALSE, 0); gtk_widget_show (hbox10); gtk_box_pack_start (GTK_BOX (vbox5), hbox10, TRUE, TRUE, 0); zoom_pointer = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Zoom centered on pointer"))); add_check_button(zoom_pointer, OPTION_ZOOM_POINTER); gtk_widget_show (zoom_pointer); gtk_box_pack_start (GTK_BOX (hbox10), zoom_pointer, TRUE, TRUE, 0); keep_transfo = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Keep transformations when switching images"))); add_check_button(keep_transfo, OPTION_KEEP_TRANSFO); gtk_widget_show (keep_transfo); gtk_box_pack_start (GTK_BOX (hbox10), keep_transfo, TRUE, TRUE, 0); hbox11 = gtk_hbox_new (FALSE, 10); gtk_widget_show (hbox11); gtk_box_pack_start (GTK_BOX (vbox5), hbox11, TRUE, FALSE, 0); label42 = gtk_label_new (_("Initial image position")); gtk_widget_show (label42); gtk_box_pack_start (GTK_BOX (hbox11), label42, FALSE, FALSE, 10); initlal_position = gtk_combo_box_new_text (); gtk_widget_show (initlal_position); gtk_box_pack_start (GTK_BOX (hbox11), initlal_position, TRUE, TRUE, 10); gtk_combo_box_append_text (GTK_COMBO_BOX (initlal_position), _("Center")); gtk_combo_box_append_text (GTK_COMBO_BOX (initlal_position), _("Top left")); gtk_combo_box_append_text (GTK_COMBO_BOX (initlal_position), _("Top right")); gtk_combo_box_append_text (GTK_COMBO_BOX (initlal_position), _("Bottom left")); gtk_combo_box_append_text (GTK_COMBO_BOX (initlal_position), _("Bottom right")); gtk_combo_box_append_text (GTK_COMBO_BOX (initlal_position), _("Same as previous")); gtk_combo_box_set_add_tearoffs (GTK_COMBO_BOX (initlal_position), TRUE); table4 = gtk_table_new (2, 3, FALSE); gtk_widget_show (table4); gtk_box_pack_start (GTK_BOX (vbox5), table4, TRUE, TRUE, 0); max_fps_adj = gtk_adjustment_new (1, -1, 1000000000, 1, 10, 0); max_fps = gtk_spin_button_new (GTK_ADJUSTMENT (max_fps_adj), 1, 0); add_spin_button(max_fps, OPTION_MAX_FPS); gtk_widget_show (max_fps); gtk_table_attach (GTK_TABLE (table4), max_fps, 1, 2, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (max_fps), TRUE); gtk_spin_button_set_update_policy (GTK_SPIN_BUTTON (max_fps), GTK_UPDATE_IF_VALID); history_length_adj = gtk_adjustment_new (1, -1, 1000000000, 1, 10, 0); history_length = gtk_spin_button_new (GTK_ADJUSTMENT (history_length_adj), 1, 0); add_spin_button(history_length, OPTION_HISTORY_LENGTH); gtk_widget_show (history_length); gtk_table_attach (GTK_TABLE (table4), history_length, 1, 2, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (history_length), TRUE); gtk_spin_button_set_update_policy (GTK_SPIN_BUTTON (history_length), GTK_UPDATE_IF_VALID); label16 = gtk_label_new (_("History length\n0: feature disabled\n-1: infinite")); gtk_widget_show (label16); gtk_table_attach (GTK_TABLE (table4), label16, 0, 1, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); gtk_label_set_justify (GTK_LABEL (label16), GTK_JUSTIFY_RIGHT); gtk_misc_set_padding (GTK_MISC (label16), 10, 0); label17 = gtk_label_new (_("Maximum framerate\n-1: infinite")); gtk_widget_show (label17); gtk_table_attach (GTK_TABLE (table4), label17, 0, 1, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); gtk_label_set_justify (GTK_LABEL (label17), GTK_JUSTIFY_RIGHT); gtk_misc_set_padding (GTK_MISC (label17), 10, 0); label18 = gtk_label_new (_("elements")); gtk_widget_show (label18); gtk_table_attach (GTK_TABLE (table4), label18, 2, 3, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); gtk_label_set_justify (GTK_LABEL (label18), GTK_JUSTIFY_CENTER); gtk_misc_set_padding (GTK_MISC (label18), 10, 0); label19 = gtk_label_new (_("fps")); gtk_widget_show (label19); gtk_table_attach (GTK_TABLE (table4), label19, 2, 3, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); gtk_label_set_justify (GTK_LABEL (label19), GTK_JUSTIFY_CENTER); gtk_misc_set_padding (GTK_MISC (label19), 10, 0); label4 = gtk_label_new (_("Transformations")); gtk_widget_show (label4); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 3), label4); vbox6 = gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox6); gtk_container_add (GTK_CONTAINER (notebook1), vbox6); reset_mnemonics(); gtk_notebook_set_tab_label_packing (GTK_NOTEBOOK (notebook1), vbox6, TRUE, TRUE, GTK_PACK_START); hbox3 = gtk_hbox_new (FALSE, 0); gtk_widget_show (hbox3); gtk_box_pack_start (GTK_BOX (vbox6), hbox3, TRUE, TRUE, 5); start_slide_show = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Start with the slide show"))); add_check_button(start_slide_show, OPTION_START_SLIDE_SHOW); gtk_widget_show (start_slide_show); gtk_box_pack_start (GTK_BOX (hbox3), start_slide_show, TRUE, TRUE, 0); slide_show_loop = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Make the slide show loop"))); add_check_button(slide_show_loop, OPTION_SLIDE_SHOW_LOOP); gtk_widget_show (slide_show_loop); gtk_box_pack_start (GTK_BOX (hbox3), slide_show_loop, TRUE, TRUE, 0); table7 = gtk_table_new (2, 3, FALSE); gtk_widget_show (table7); gtk_box_pack_start (GTK_BOX (vbox6), table7, TRUE, TRUE, 0); label28 = gtk_label_new (_("Last/First image notice time")); gtk_widget_show (label28); gtk_table_attach (GTK_TABLE (table7), label28, 0, 1, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 5); gtk_misc_set_padding (GTK_MISC (label28), 10, 0); label20 = gtk_label_new (_("Delay between images during the slide show")); gtk_widget_show (label20); gtk_table_attach (GTK_TABLE (table7), label20, 0, 1, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 5); gtk_misc_set_padding (GTK_MISC (label20), 10, 0); slide_show_delay_adj = gtk_adjustment_new (1, 0, 1000000000, 1, 10, 0); slide_show_delay = gtk_spin_button_new (GTK_ADJUSTMENT (slide_show_delay_adj), 1, 0); add_spin_button(slide_show_delay, OPTION_SLIDE_SHOW_DELAY); gtk_widget_show (slide_show_delay); gtk_table_attach (GTK_TABLE (table7), slide_show_delay, 1, 2, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 5); gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (slide_show_delay), TRUE); gtk_spin_button_set_update_policy (GTK_SPIN_BUTTON (slide_show_delay), GTK_UPDATE_IF_VALID); label21 = gtk_label_new (_("seconds")); gtk_widget_show (label21); gtk_table_attach (GTK_TABLE (table7), label21, 2, 3, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 5); gtk_misc_set_padding (GTK_MISC (label21), 10, 0); label29 = gtk_label_new (_("milliseconds")); gtk_widget_show (label29); gtk_table_attach (GTK_TABLE (table7), label29, 2, 3, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 5); gtk_misc_set_padding (GTK_MISC (label29), 10, 0); notice_time_adj = gtk_adjustment_new (1, 0, 1000000000, 1, 10, 0); notice_time = gtk_spin_button_new (GTK_ADJUSTMENT (notice_time_adj), 1, 0); add_spin_button(notice_time, OPTION_NOTICE_TIME); gtk_widget_show (notice_time); gtk_table_attach (GTK_TABLE (table7), notice_time, 1, 2, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 5); gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (notice_time), TRUE); gtk_spin_button_set_update_policy (GTK_SPIN_BUTTON (notice_time), GTK_UPDATE_IF_VALID); hseparator1 = gtk_hseparator_new (); gtk_widget_show (hseparator1); gtk_box_pack_start (GTK_BOX (vbox6), hseparator1, TRUE, TRUE, 0); transitions = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Enable transitions between images"))); add_check_button(transitions, OPTION_TRANSITIONS); gtk_widget_show (transitions); gtk_box_pack_start (GTK_BOX (vbox6), transitions, TRUE, TRUE, 5); transition_box = gtk_vbox_new (FALSE, 0); gtk_widget_show (transition_box); gtk_box_pack_start (GTK_BOX (vbox6), transition_box, TRUE, TRUE, 0); hbox13 = gtk_hbox_new (FALSE, 0); gtk_widget_show (hbox13); gtk_box_pack_start (GTK_BOX (transition_box), hbox13, TRUE, TRUE, 0); label46 = gtk_label_new (_("Transition duration")); gtk_widget_show (label46); gtk_box_pack_start (GTK_BOX (hbox13), label46, TRUE, TRUE, 0); gtk_misc_set_padding (GTK_MISC (label46), 10, 0); trans_duration_adj = gtk_adjustment_new (1, 0, 1000000000, 1, 10, 0); trans_duration = gtk_spin_button_new (GTK_ADJUSTMENT (trans_duration_adj), 1, 0); add_spin_button(trans_duration, OPTION_TRANS_DURATION); gtk_widget_show (trans_duration); gtk_box_pack_start (GTK_BOX (hbox13), trans_duration, TRUE, TRUE, 0); gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (trans_duration), TRUE); gtk_spin_button_set_update_policy (GTK_SPIN_BUTTON (trans_duration), GTK_UPDATE_IF_VALID); label47 = gtk_label_new (_("milliseconds")); gtk_widget_show (label47); gtk_box_pack_start (GTK_BOX (hbox13), label47, TRUE, TRUE, 0); gtk_misc_set_padding (GTK_MISC (label47), 10, 0); label48 = gtk_label_new (_("Transitions obey the maximum framerate parameter in the Transformations tab")); gtk_widget_show (label48); gtk_box_pack_start (GTK_BOX (transition_box), label48, TRUE, TRUE, 0); gtk_misc_set_padding (GTK_MISC (label48), 10, 0); label5 = gtk_label_new (_("Slide show")); gtk_widget_show (label5); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 4), label5); vbox10 = gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox10); gtk_container_add (GTK_CONTAINER (notebook1), vbox10); reset_mnemonics(); table8 = gtk_table_new (4, 2, FALSE); gtk_widget_show (table8); gtk_box_pack_start (GTK_BOX (vbox10), table8, TRUE, TRUE, 0); label41 = gtk_label_new (_("Alpha 2")); gtk_widget_show (label41); gtk_table_attach (GTK_TABLE (table8), label41, 0, 1, 2, 3, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); gtk_misc_set_alignment (GTK_MISC (label41), 0, 0.5); label40 = gtk_label_new (_("Alpha 1")); gtk_widget_show (label40); gtk_table_attach (GTK_TABLE (table8), label40, 0, 1, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); gtk_misc_set_alignment (GTK_MISC (label40), 0, 0.5); label39 = gtk_label_new (_("Background")); gtk_widget_show (label39); gtk_table_attach (GTK_TABLE (table8), label39, 0, 1, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); gtk_misc_set_alignment (GTK_MISC (label39), 0, 0.5); alpha1 = gtk_color_button_new (); add_color_button(alpha1, OPTION_ALPHA1); gtk_widget_show (alpha1); gtk_table_attach (GTK_TABLE (table8), alpha1, 1, 2, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK), 0, 0); alpha2 = gtk_color_button_new (); add_color_button(alpha2, OPTION_ALPHA2); gtk_widget_show (alpha2); gtk_table_attach (GTK_TABLE (table8), alpha2, 1, 2, 2, 3, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK), 0, 0); alpha_checks = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Alpha checks"))); add_check_button(alpha_checks, OPTION_ALPHA_CHECKS); gtk_widget_show (alpha_checks); gtk_table_attach (GTK_TABLE (table8), alpha_checks, 0, 1, 3, 4, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); background = gtk_color_button_new (); add_color_button(background, OPTION_BACKGROUND); gtk_widget_show (background); gtk_table_attach (GTK_TABLE (table8), background, 1, 2, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK), 0, 0); label6 = gtk_label_new (_("Background")); gtk_widget_show (label6); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 5), label6); dialog_action_area1 = GTK_DIALOG (options_dialog)->action_area; gtk_widget_show (dialog_action_area1); gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area1), GTK_BUTTONBOX_END); cancelbutton1 = gtk_button_new_from_stock ("gtk-cancel"); gtk_widget_show (cancelbutton1); gtk_dialog_add_action_widget (GTK_DIALOG (options_dialog), cancelbutton1, GTK_RESPONSE_CANCEL); GTK_WIDGET_SET_FLAGS (cancelbutton1, GTK_CAN_DEFAULT); okbutton1 = gtk_button_new_from_stock ("gtk-ok"); gtk_widget_show (okbutton1); gtk_dialog_add_action_widget (GTK_DIALOG (options_dialog), okbutton1, GTK_RESPONSE_OK); GTK_WIDGET_SET_FLAGS (okbutton1, GTK_CAN_DEFAULT); g_signal_connect ((gpointer) save_now, "clicked", G_CALLBACK (on_save_now_clicked), NULL); g_signal_connect ((gpointer) read_config, "realize", G_CALLBACK (on_read_config_realize), NULL); g_signal_connect ((gpointer) write_config, "realize", G_CALLBACK (on_write_config_realize), NULL); g_signal_connect ((gpointer) initlal_position, "realize", G_CALLBACK (on_initial_position_realize), NULL); g_signal_connect ((gpointer) initlal_position, "changed", G_CALLBACK (on_initial_position_changed), NULL); g_signal_connect_data ((gpointer) transitions, "toggled", G_CALLBACK (on_transitions_toggled), GTK_OBJECT (transition_box), NULL, G_CONNECT_AFTER | G_CONNECT_SWAPPED); g_signal_connect_after ((gpointer) transition_box, "realize", G_CALLBACK (on_transition_box_realize), NULL); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (options_dialog, options_dialog, "options_dialog"); GLADE_HOOKUP_OBJECT_NO_REF (options_dialog, dialog_vbox1, "dialog_vbox1"); GLADE_HOOKUP_OBJECT (options_dialog, expander1, "expander1"); GLADE_HOOKUP_OBJECT (options_dialog, vbox9, "vbox9"); GLADE_HOOKUP_OBJECT (options_dialog, hbox9, "hbox9"); GLADE_HOOKUP_OBJECT (options_dialog, save_now, "save_now"); GLADE_HOOKUP_OBJECT (options_dialog, alignment2, "alignment2"); GLADE_HOOKUP_OBJECT (options_dialog, hbox8, "hbox8"); GLADE_HOOKUP_OBJECT (options_dialog, image2, "image2"); GLADE_HOOKUP_OBJECT (options_dialog, label37, "label37"); GLADE_HOOKUP_OBJECT (options_dialog, save_quit, "save_quit"); GLADE_HOOKUP_OBJECT (options_dialog, read_config, "read_config"); GLADE_HOOKUP_OBJECT (options_dialog, write_config, "write_config"); GLADE_HOOKUP_OBJECT (options_dialog, label38, "label38"); GLADE_HOOKUP_OBJECT (options_dialog, notebook1, "notebook1"); GLADE_HOOKUP_OBJECT (options_dialog, vbox3, "vbox3"); GLADE_HOOKUP_OBJECT (options_dialog, table1, "table1"); GLADE_HOOKUP_OBJECT (options_dialog, scrollbars, "scrollbars"); GLADE_HOOKUP_OBJECT (options_dialog, fullscreen, "fullscreen"); GLADE_HOOKUP_OBJECT (options_dialog, menu_bar, "menu_bar"); GLADE_HOOKUP_OBJECT (options_dialog, status_bar, "status_bar"); GLADE_HOOKUP_OBJECT (options_dialog, confirm_quit, "confirm_quit"); GLADE_HOOKUP_OBJECT (options_dialog, resize_win, "resize_win"); GLADE_HOOKUP_OBJECT (options_dialog, hbox2, "hbox2"); GLADE_HOOKUP_OBJECT (options_dialog, label8, "label8"); GLADE_HOOKUP_OBJECT (options_dialog, delay_cursor, "delay_cursor"); GLADE_HOOKUP_OBJECT (options_dialog, label9, "label9"); GLADE_HOOKUP_OBJECT (options_dialog, label1, "label1"); GLADE_HOOKUP_OBJECT (options_dialog, table2, "table2"); GLADE_HOOKUP_OBJECT (options_dialog, scale_down, "scale_down"); GLADE_HOOKUP_OBJECT (options_dialog, maximize, "maximize"); GLADE_HOOKUP_OBJECT (options_dialog, mipmaps, "mipmaps"); GLADE_HOOKUP_OBJECT (options_dialog, dithering, "dithering"); GLADE_HOOKUP_OBJECT (options_dialog, one_image, "one_image"); GLADE_HOOKUP_OBJECT (options_dialog, opengl_errors, "opengl_errors"); GLADE_HOOKUP_OBJECT (options_dialog, filtering, "filtering"); GLADE_HOOKUP_OBJECT (options_dialog, label2, "label2"); GLADE_HOOKUP_OBJECT (options_dialog, vbox7, "vbox7"); GLADE_HOOKUP_OBJECT (options_dialog, hbox5, "hbox5"); GLADE_HOOKUP_OBJECT (options_dialog, images_menus_startup, "images_menus_startup"); GLADE_HOOKUP_OBJECT (options_dialog, images_menus_mnemonics, "images_menus_mnemonics"); GLADE_HOOKUP_OBJECT (options_dialog, thumbnails, "thumbnails"); GLADE_HOOKUP_OBJECT (options_dialog, table5, "table5"); GLADE_HOOKUP_OBJECT (options_dialog, label26, "label26"); GLADE_HOOKUP_OBJECT (options_dialog, label27, "label27"); GLADE_HOOKUP_OBJECT (options_dialog, label25, "label25"); GLADE_HOOKUP_OBJECT (options_dialog, thumbnails_width, "thumbnails_width"); GLADE_HOOKUP_OBJECT (options_dialog, thumbnails_height, "thumbnails_height"); GLADE_HOOKUP_OBJECT (options_dialog, label24, "label24"); GLADE_HOOKUP_OBJECT (options_dialog, label3, "label3"); GLADE_HOOKUP_OBJECT (options_dialog, vbox5, "vbox5"); GLADE_HOOKUP_OBJECT (options_dialog, hbox10, "hbox10"); GLADE_HOOKUP_OBJECT (options_dialog, zoom_pointer, "zoom_pointer"); GLADE_HOOKUP_OBJECT (options_dialog, keep_transfo, "keep_transfo"); GLADE_HOOKUP_OBJECT (options_dialog, hbox11, "hbox11"); GLADE_HOOKUP_OBJECT (options_dialog, label42, "label42"); GLADE_HOOKUP_OBJECT (options_dialog, initlal_position, "initlal_position"); GLADE_HOOKUP_OBJECT (options_dialog, table4, "table4"); GLADE_HOOKUP_OBJECT (options_dialog, max_fps, "max_fps"); GLADE_HOOKUP_OBJECT (options_dialog, history_length, "history_length"); GLADE_HOOKUP_OBJECT (options_dialog, label16, "label16"); GLADE_HOOKUP_OBJECT (options_dialog, label17, "label17"); GLADE_HOOKUP_OBJECT (options_dialog, label18, "label18"); GLADE_HOOKUP_OBJECT (options_dialog, label19, "label19"); GLADE_HOOKUP_OBJECT (options_dialog, label4, "label4"); GLADE_HOOKUP_OBJECT (options_dialog, vbox6, "vbox6"); GLADE_HOOKUP_OBJECT (options_dialog, hbox3, "hbox3"); GLADE_HOOKUP_OBJECT (options_dialog, start_slide_show, "start_slide_show"); GLADE_HOOKUP_OBJECT (options_dialog, slide_show_loop, "slide_show_loop"); GLADE_HOOKUP_OBJECT (options_dialog, table7, "table7"); GLADE_HOOKUP_OBJECT (options_dialog, label28, "label28"); GLADE_HOOKUP_OBJECT (options_dialog, label20, "label20"); GLADE_HOOKUP_OBJECT (options_dialog, slide_show_delay, "slide_show_delay"); GLADE_HOOKUP_OBJECT (options_dialog, label21, "label21"); GLADE_HOOKUP_OBJECT (options_dialog, label29, "label29"); GLADE_HOOKUP_OBJECT (options_dialog, notice_time, "notice_time"); GLADE_HOOKUP_OBJECT (options_dialog, hseparator1, "hseparator1"); GLADE_HOOKUP_OBJECT (options_dialog, transitions, "transitions"); GLADE_HOOKUP_OBJECT (options_dialog, transition_box, "transition_box"); GLADE_HOOKUP_OBJECT (options_dialog, hbox13, "hbox13"); GLADE_HOOKUP_OBJECT (options_dialog, label46, "label46"); GLADE_HOOKUP_OBJECT (options_dialog, trans_duration, "trans_duration"); GLADE_HOOKUP_OBJECT (options_dialog, label47, "label47"); GLADE_HOOKUP_OBJECT (options_dialog, label48, "label48"); GLADE_HOOKUP_OBJECT (options_dialog, label5, "label5"); GLADE_HOOKUP_OBJECT (options_dialog, vbox10, "vbox10"); GLADE_HOOKUP_OBJECT (options_dialog, table8, "table8"); GLADE_HOOKUP_OBJECT (options_dialog, label41, "label41"); GLADE_HOOKUP_OBJECT (options_dialog, label40, "label40"); GLADE_HOOKUP_OBJECT (options_dialog, label39, "label39"); GLADE_HOOKUP_OBJECT (options_dialog, alpha1, "alpha1"); GLADE_HOOKUP_OBJECT (options_dialog, alpha2, "alpha2"); GLADE_HOOKUP_OBJECT (options_dialog, alpha_checks, "alpha_checks"); GLADE_HOOKUP_OBJECT (options_dialog, background, "background"); GLADE_HOOKUP_OBJECT (options_dialog, label6, "label6"); GLADE_HOOKUP_OBJECT_NO_REF (options_dialog, dialog_action_area1, "dialog_action_area1"); GLADE_HOOKUP_OBJECT (options_dialog, cancelbutton1, "cancelbutton1"); GLADE_HOOKUP_OBJECT (options_dialog, okbutton1, "okbutton1"); gtk_widget_grab_focus (okbutton1); gtk_widget_grab_default (okbutton1); return options_dialog; } gliv-1.9.7/tools/glade/options/buttons.awk0000644000076400007640000000107711465576131016066 0ustar gg/\#include \"empty/ { next; } /gtk_check_button_new_with_mnemonic/ { sub(/_\(\"[^\"]+\"\)/, "add_mnemonic(&)"); print; printf " add_check_button(%s, OPTION_%s);\n", $1, toupper($1); next; } /gtk_spin_button_new/ { print; printf " add_spin_button(%s, OPTION_%s);\n", $1, toupper($1); next; } /gtk_color_button_new/ { print; printf " add_color_button(%s, OPTION_%s);\n", $1, toupper($1); next; } /gtk_container_add\ \(GTK_CONTAINER\ \(notebook1\),/ { print; printf " reset_mnemonics();\n" next; } { print; } gliv-1.9.7/tools/glade/options/Makefile.am0000644000076400007640000000061411465576131015714 0ustar ggEXTRA_DIST = buttons.awk compil_test.sh empty_callbacks.c empty_callbacks.h \ glade_options.c glade_options.h gliv-options.glade \ gliv-options.gladep main.c make_glade_options.sh glade_options: glade_options.c glade_options.h main.c ./compil_test.sh glade_options.c glade_options.h main.c: gliv-options.glade gliv-options.gladep ./make_glade_options.sh gliv-1.9.7/tools/glade/options/glade_options.h0000644000076400007640000000014611465576131016660 0ustar gg/* * DO NOT EDIT THIS FILE - it is generated by Glade. */ GtkWidget* create_options_dialog (void); gliv-1.9.7/tools/glade/options/gliv-options.glade0000644000076400007640000023342111465576131017314 0ustar gg True Options GTK_WINDOW_TOPLEVEL GTK_WIN_POS_MOUSE True True False True False False GDK_WINDOW_TYPE_HINT_NORMAL GDK_GRAVITY_NORTH_WEST True True True False 0 True GTK_BUTTONBOX_END True True True gtk-cancel True GTK_RELIEF_NORMAL True -6 True True True True True gtk-ok True GTK_RELIEF_NORMAL True -5 0 False False GTK_PACK_END True True False 10 True False 0 True False 0 True True GTK_RELIEF_NORMAL True True 0.5 0.5 0 0 0 0 0 0 True False 2 True gtk-save 4 0.5 0.5 0 0 0 False False True Save options now True False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 True True 0 True False True True Save options when quitting True GTK_RELIEF_NORMAL True False False True 0 True True 0 True True True False False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 5 PANGO_ELLIPSIZE_NONE -1 False 0 0 True True True False False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 5 PANGO_ELLIPSIZE_NONE -1 False 0 0 False False True Configuration file False False GTK_JUSTIFY_CENTER False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 label_item 0 True True GTK_PACK_END True True True True GTK_POS_TOP True True True False 0 True 3 2 True 0 0 True True Scrollbars enabled True GTK_RELIEF_NORMAL True False False True 0 1 1 2 expand|shrink|fill expand|shrink|fill True True Fullscreen mode True GTK_RELIEF_NORMAL True False False True 0 1 0 1 expand|shrink|fill expand|shrink|fill True True Menu bar enabled True GTK_RELIEF_NORMAL True False False True 1 2 0 1 expand|shrink|fill expand|shrink|fill True True Status bar enabled True GTK_RELIEF_NORMAL True False False True 1 2 1 2 expand|shrink|fill expand|shrink|fill True True Confirm before quitting True GTK_RELIEF_NORMAL True False False True 0 1 2 3 expand|shrink|fill expand|shrink|fill True True Automatic window resizing True GTK_RELIEF_NORMAL True False False True 1 2 2 3 expand|shrink|fill expand|shrink|fill 0 True True True False 0 True Delay before hiding the cursor 0: feature disabled False False GTK_JUSTIFY_RIGHT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 True True True True 1 0 True GTK_UPDATE_IF_VALID False False 1 0 1000000000 1 10 0 0 True True True milliseconds False False GTK_JUSTIFY_CENTER False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 True True 0 True True True True True Interface False False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 tab True 4 2 False 0 0 True True Scale down large images True GTK_RELIEF_NORMAL True False False True 0 1 0 1 expand|shrink|fill expand|shrink|fill True True Maximize small images True GTK_RELIEF_NORMAL True False False True 1 2 0 1 expand|shrink|fill expand|shrink|fill True True Build mipmaps True GTK_RELIEF_NORMAL True False False True 1 2 1 2 expand|shrink|fill expand|shrink|fill True True Dithering True GTK_RELIEF_NORMAL True False False True 0 1 1 2 expand|shrink|fill expand|shrink|fill True True Keep only one image in memory True GTK_RELIEF_NORMAL True False False True 1 2 2 3 expand|shrink|fill expand|shrink|fill True True Check for OpenGL errors True GTK_RELIEF_NORMAL True False False True 0 1 2 3 expand|shrink|fill expand|shrink|fill True True Enable OpenGL filtering True GTK_RELIEF_NORMAL True False False True 1 2 3 4 expand|shrink|fill expand|shrink|fill True True True Images False False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 tab True False 0 True False 0 True True Build images menus at startup True GTK_RELIEF_NORMAL True False False True 0 True True True True Make mnemonics for images menus True GTK_RELIEF_NORMAL True False False True 0 True True 0 True True True True Show thumbnails in images menus True GTK_RELIEF_NORMAL True False False True 0 True True True 2 3 False 0 0 True pixels False False GTK_JUSTIFY_CENTER False False 0 0.5 10 0 PANGO_ELLIPSIZE_NONE -1 False 0 2 3 0 1 expand|shrink expand|shrink|fill True pixels False False GTK_JUSTIFY_CENTER False False 0 0.5 10 0 PANGO_ELLIPSIZE_NONE -1 False 0 2 3 1 2 expand|shrink expand|shrink|fill True Thumbnail height False False GTK_JUSTIFY_RIGHT False False 0 0.5 10 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 1 1 2 expand|shrink expand|shrink|fill True True 1 0 True GTK_UPDATE_IF_VALID False False 1 1 1000000000 1 10 0 1 2 0 1 expand|shrink|fill expand|shrink|fill True True 1 0 True GTK_UPDATE_IF_VALID False False 1 1 1000000000 1 10 0 1 2 1 2 expand|shrink|fill expand|shrink|fill True Thumbnail width False False GTK_JUSTIFY_RIGHT False False 0 0.5 10 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 1 0 1 expand|shrink expand|shrink|fill 0 True True False True True Images menus False False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 tab True False 0 True False 0 True True Zoom centered on pointer True GTK_RELIEF_NORMAL True False False True 0 True True True True Keep transformations when switching images True GTK_RELIEF_NORMAL True False False True 0 True True 0 True True True False 10 True Initial image position False False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 10 False False True Center Top left Top right Bottom left Bottom right Same as previous True True 10 True True 0 True False True 2 3 False 0 0 True True 1 0 True GTK_UPDATE_IF_VALID False False 1 -1 1000000000 1 10 0 1 2 1 2 expand|shrink|fill expand|shrink|fill True True 1 0 True GTK_UPDATE_IF_VALID False False 1 -1 1000000000 1 10 0 1 2 0 1 expand|shrink|fill expand|shrink|fill True History length 0: feature disabled -1: infinite False False GTK_JUSTIFY_RIGHT False False 0.5 0.5 10 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 1 0 1 expand|shrink expand|shrink|fill True Maximum framerate -1: infinite False False GTK_JUSTIFY_RIGHT False False 0.5 0.5 10 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 1 1 2 expand|shrink expand|shrink|fill True elements False False GTK_JUSTIFY_CENTER False False 0.5 0.5 10 0 PANGO_ELLIPSIZE_NONE -1 False 0 2 3 0 1 expand|shrink expand|shrink|fill True fps False False GTK_JUSTIFY_CENTER False False 0.5 0.5 10 0 PANGO_ELLIPSIZE_NONE -1 False 0 2 3 1 2 expand|shrink expand|shrink|fill 0 True True True True True Transformations False False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 tab True False 0 True False 0 True True Start with the slide show True GTK_RELIEF_NORMAL True False False True 0 True True True True Make the slide show loop True GTK_RELIEF_NORMAL True False False True 0 True True 5 True True True 2 3 False 0 0 True Last/First image notice time False False GTK_JUSTIFY_LEFT False False 0.5 0.5 10 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 1 0 1 5 expand|shrink|fill expand|shrink|fill True Delay between images during the slide show False False GTK_JUSTIFY_LEFT False False 0.5 0.5 10 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 1 1 2 5 expand|shrink|fill expand|shrink|fill True True 1 0 True GTK_UPDATE_IF_VALID False False 1 0 1000000000 1 10 0 1 2 1 2 5 expand|shrink|fill expand|shrink|fill True seconds False False GTK_JUSTIFY_LEFT False False 0.5 0.5 10 0 PANGO_ELLIPSIZE_NONE -1 False 0 2 3 1 2 5 expand|shrink|fill expand|shrink|fill True milliseconds False False GTK_JUSTIFY_LEFT False False 0.5 0.5 10 0 PANGO_ELLIPSIZE_NONE -1 False 0 2 3 0 1 5 expand|shrink|fill expand|shrink|fill True True 1 0 True GTK_UPDATE_IF_VALID False False 1 0 1000000000 1 10 0 1 2 0 1 5 expand|shrink|fill expand|shrink|fill 0 True True True 0 True True True True Enable transitions between images True GTK_RELIEF_NORMAL True False False True 5 True True True False 0 True False 0 True Transition duration False False GTK_JUSTIFY_LEFT False False 0.5 0.5 10 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 True True True True 1 0 True GTK_UPDATE_IF_VALID False False 1 0 1000000000 1 10 0 0 True True True milliseconds False False GTK_JUSTIFY_LEFT False False 0.5 0.5 10 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 True True 0 True True True Transitions obey the maximum framerate parameter in the Transformations tab False False GTK_JUSTIFY_LEFT False False 0.5 0.5 10 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 True True 0 True True True True True Slide show False False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 tab True False 0 True 4 2 False 0 0 True Alpha 2 False False GTK_JUSTIFY_LEFT False False 0 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 1 2 3 expand|shrink|fill expand|shrink|fill True Alpha 1 False False GTK_JUSTIFY_LEFT False False 0 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 1 1 2 expand|shrink|fill expand|shrink|fill True Background False False GTK_JUSTIFY_LEFT False False 0 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 1 0 1 expand|shrink|fill expand|shrink|fill True True False True 1 2 1 2 expand|shrink expand|shrink True True False True 1 2 2 3 expand|shrink expand|shrink True True Alpha checks True GTK_RELIEF_NORMAL True False False True 0 1 3 4 expand|shrink|fill expand|shrink|fill True True False True 1 2 0 1 expand|shrink expand|shrink 0 True True False True True Background False False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 tab 0 True True gliv-1.9.7/tools/glade/options/Makefile.in0000644000076400007640000002542511465576131015734 0ustar gg# 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 = : build_triplet = @build@ host_triplet = @host@ subdir = tools/glade/options 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 = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CFLAG_VISIBILITY = @CFLAG_VISIBILITY@ 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@ GENCAT = @GENCAT@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ GTKGLEXT_CFLAGS = @GTKGLEXT_CFLAGS@ GTKGLEXT_LIBS = @GTKGLEXT_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ HAVE_WPRINTF = @HAVE_WPRINTF@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_DEFAULT_VERBOSITY = @INTL_DEFAULT_VERBOSITY@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBMULTITHREAD = @LIBMULTITHREAD@ LIBOBJS = @LIBOBJS@ LIBPTH = @LIBPTH@ LIBPTH_PREFIX = @LIBPTH_PREFIX@ LIBS = @LIBS@ LIBTHREAD = @LIBTHREAD@ LTLIBC = @LTLIBC@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBMULTITHREAD = @LTLIBMULTITHREAD@ LTLIBOBJS = @LTLIBOBJS@ LTLIBPTH = @LTLIBPTH@ LTLIBTHREAD = @LTLIBTHREAD@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ 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@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WINDRES = @WINDRES@ WOE32 = @WOE32@ WOE32DLL = @WOE32DLL@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ 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 = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ 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@ 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@ EXTRA_DIST = buttons.awk compil_test.sh empty_callbacks.c empty_callbacks.h \ glade_options.c glade_options.h gliv-options.glade \ gliv-options.gladep main.c make_glade_options.sh 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 tools/glade/options/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign tools/glade/options/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): tags: TAGS TAGS: ctags: CTAGS CTAGS: 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 installdirs: 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-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-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: .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-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-generic pdf pdf-am ps ps-am uninstall uninstall-am glade_options: glade_options.c glade_options.h main.c ./compil_test.sh glade_options.c glade_options.h main.c: gliv-options.glade gliv-options.gladep ./make_glade_options.sh # 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: gliv-1.9.7/tools/glade/options/compil_test.sh0000755000076400007640000000174011465576131016542 0ustar gg#!/bin/sh gcc -Wall -DPACKAGE_DATA_DIR=\".\" -DPACKAGE="" \ -DTEST_GLADE_OPTIONS \ -D'_(str)=(str)' \ -D'add_mnemonic(str)=(str)' \ -D'add_check_button(button, option)=do {} while (0)' \ -D'add_spin_button(button, option)=do {} while (0)' \ -D'add_color_selection(select, option)=do {} while (0)' \ -D'add_button(button, option)=do {} while (0)' \ -D'add_cancel_button(button)=do {} while (0)' \ -D'add_ok_button(button)=do {} while (0)' \ -D'add_pixmap_directory(dir)=do {} while (0)' \ -D'reset_mnemonics()=do {} while (0)' \ -D'on_save_now_clicked=gtk_false' \ $(pkg-config --cflags --libs gtk+-2.0) \ glade_options.c main.c \ -o glade_options gliv-1.9.7/tools/glade/options/make_glade_options.sh0000755000076400007640000000076011465576131020045 0ustar gg#!/bin/sh set -o xtrace if [ ! -f gliv-options.glade ] || [ ! -d ../../../src/include ]; then echo "Wrong directory" exit 1 fi : Cleaning... rm -v *.[ch] : : Gladeing... glade-2 -w gliv-options.glade : : AWKing... awk -f buttons.awk < glade_options.c > glade_options.c.ttmmpp : : Emptying... mv -v glade_options.c.ttmmpp glade_options.c rm -v empty_* echo '/* Empty */' > empty_support.h : : Copying... cp -v glade_options.c ../../../src cp -v glade_options.h ../../../src/include gliv-1.9.7/tools/glade/options/empty_support.h0000644000076400007640000000001411465576131016755 0ustar gg/* Empty */ gliv-1.9.7/tools/unused_headers.sh0000755000076400007640000000071211465576131014445 0ustar gg#!/bin/bash TMPFILE=$$.$RANDOM.c OBJECT=$(basename "$TMPFILE" .c).o for FILE in "$@"; do echo "$FILE: " for INCLUDE in $(gawk ' BEGIN { FS = "\"" } /^#include \"/ { print $2 }' < "$FILE"); do rm "$TMPFILE" "$OBJECT" &> /dev/null grep -vE "^#include \"$INCLUDE\"$" < "$FILE" > "$TMPFILE" COUNT=$( (make "$OBJECT" 2>&1 || echo "a\nb\nc") | wc -l) [ "$COUNT" -eq 2 ] && echo "$INCLUDE" done done rm "$TMPFILE" "$OBJECT" &> /dev/null gliv-1.9.7/tools/help2man.awk0000644000076400007640000000076611465576131013333 0ustar gg$0 == "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" { if (started) # The end. exit # The beginning. started = 1 getline } /.*: .*/ { # A keyboard accelerator line. if (started) { print print ".br" } } $0 == "" { if (started) { # End of keyboard accelerators. misc = 1 RS = "\n\n" getline print "" } } { if (misc) { gsub(/(\n| )/, " ") print print ".br\n" } } gliv-1.9.7/tools/cursors/0000755000076400007640000000000011465576131012610 5ustar gggliv-1.9.7/tools/cursors/cursor_zoom.xbm0000644000076400007640000000103611465576131015701 0ustar gg#define cursor_zoom_width 20 #define cursor_zoom_height 20 #define cursor_zoom_x_hot 9 #define cursor_zoom_y_hot 9 static unsigned char cursor_zoom_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x07, 0x00, 0x40, 0x08, 0x00, 0x20, 0x10, 0x00, 0x10, 0x20, 0x00, 0x10, 0x20, 0x00, 0x10, 0x20, 0x00, 0x10, 0x20, 0x00, 0x20, 0x10, 0x00, 0x40, 0x38, 0x00, 0x80, 0x77, 0x00, 0x00, 0xe0, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x80, 0x03, 0x00, 0x00, 0x07, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, }; gliv-1.9.7/tools/cursors/cursor_zoom_mask.xbm0000644000076400007640000000076511465576131016724 0ustar gg#define cursor_zoom_mask_width 20 #define cursor_zoom_mask_height 20 static unsigned char cursor_zoom_mask_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x07, 0x00, 0xc0, 0x0f, 0x00, 0xe0, 0x1f, 0x00, 0x70, 0x38, 0x00, 0x38, 0x70, 0x00, 0x38, 0x70, 0x00, 0x38, 0x70, 0x00, 0x38, 0x70, 0x00, 0x70, 0x38, 0x00, 0xe0, 0x7f, 0x00, 0xc0, 0xff, 0x00, 0x80, 0xf7, 0x01, 0x00, 0xe0, 0x03, 0x00, 0xc0, 0x07, 0x00, 0x80, 0x0f, 0x00, 0x00, 0x07, 0x00, 0x00, 0x02, }; gliv-1.9.7/tools/cursors/cursor_zoom_rotate.xbm0000644000076400007640000000110211465576131017251 0ustar gg#define cursor_zoom_rotate_width 20 #define cursor_zoom_rotate_height 20 #define cursor_zoom_rotate_x_hot 12 #define cursor_zoom_rotate_y_hot 11 static unsigned char cursor_zoom_rotate_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0xc0, 0xdf, 0x01, 0xc0, 0x0e, 0x03, 0x60, 0x13, 0x06, 0x50, 0x22, 0x04, 0x50, 0x24, 0x00, 0xd0, 0x2f, 0x00, 0x10, 0x20, 0x00, 0x20, 0x10, 0x00, 0x40, 0xf8, 0x07, 0x80, 0x77, 0x04, 0x40, 0xe0, 0x04, 0xc0, 0xc0, 0x05, 0x80, 0xc1, 0x07, 0x00, 0x77, 0x07, 0x00, 0x1c, 0x02, 0x00, 0x00, 0x00 }; gliv-1.9.7/tools/cursors/cursor_rotate_mask.xbm0000644000076400007640000000077311465576131017235 0ustar gg#define cursor_rotate_mask_width 20 #define cursor_rotate_mask_height 20 static unsigned char cursor_rotate_mask_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x60, 0xfc, 0x01, 0xe0, 0xfe, 0x03, 0xe0, 0xdf, 0x07, 0xe0, 0x07, 0x0f, 0xe0, 0x07, 0x0e, 0xe0, 0x0f, 0x04, 0xe0, 0x1f, 0x00, 0xe0, 0x1f, 0x00, 0x00, 0xf0, 0x0f, 0x00, 0xf0, 0x0f, 0x40, 0xe0, 0x0f, 0xe0, 0xc0, 0x0f, 0xe0, 0xc1, 0x0f, 0xc0, 0xf7, 0x0f, 0x80, 0xff, 0x0e, 0x00, 0x7f, 0x0c, 0x00, 0x1c, 0x00, }; gliv-1.9.7/tools/cursors/cursor_zoom_rotate_mask.xbm0000644000076400007640000000101111465576131020263 0ustar gg#define cursor_zoom_rotate_mask_width 20 #define cursor_zoom_rotate_mask_height 20 static unsigned char cursor_zoom_rotate_mask_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0xe0, 0xff, 0x01, 0xe0, 0xff, 0x03, 0xe0, 0xdf, 0x07, 0xf0, 0x3f, 0x0f, 0xf8, 0x77, 0x0e, 0xf8, 0x7f, 0x04, 0xf8, 0x7f, 0x00, 0xf8, 0x7f, 0x00, 0x70, 0xf8, 0x0f, 0xe0, 0xff, 0x0f, 0xc0, 0xff, 0x0f, 0xe0, 0xf7, 0x0f, 0xe0, 0xe1, 0x0f, 0xc0, 0xf7, 0x0f, 0x80, 0xff, 0x0f, 0x00, 0x7f, 0x0f, 0x00, 0x1c, 0x02 }; gliv-1.9.7/tools/cursors/cursor_rect_zoom.xbm0000644000076400007640000000106711465576131016722 0ustar gg#define cursor_rect_zoom_width 20 #define cursor_rect_zoom_height 20 #define cursor_rect_zoom_x_hot 9 #define cursor_rect_zoom_y_hot 9 static unsigned char cursor_rect_zoom_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x07, 0x00, 0x40, 0x08, 0x00, 0x20, 0x10, 0x00, 0x10, 0x20, 0x00, 0x10, 0x20, 0x00, 0x10, 0x20, 0x00, 0x10, 0x20, 0x00, 0x20, 0x10, 0x00, 0x40, 0x38, 0x00, 0x80, 0x77, 0x00, 0x00, 0xe0, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x80, 0x03, 0x00, 0x00, 0x07, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, }; gliv-1.9.7/tools/cursors/cursor_rect_zoom_mask.xbm0000644000076400007640000000100411465576131017724 0ustar gg#define cursor_rect_zoom_mask_width 20 #define cursor_rect_zoom_mask_height 20 static unsigned char cursor_rect_zoom_mask_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x07, 0x00, 0xc0, 0x0f, 0x00, 0xe0, 0x1f, 0x00, 0x70, 0x38, 0x00, 0x38, 0x70, 0x00, 0x38, 0x70, 0x00, 0x38, 0x70, 0x00, 0x38, 0x70, 0x00, 0x70, 0x38, 0x00, 0xe0, 0x7f, 0x00, 0xc0, 0xff, 0x00, 0x80, 0xf7, 0x01, 0x00, 0xe0, 0x03, 0x00, 0xc0, 0x07, 0x00, 0x80, 0x0f, 0x00, 0x00, 0x07, 0x00, 0x00, 0x02, }; gliv-1.9.7/tools/cursors/cursor_move_mask.xbm0000644000076400007640000000076511465576131016706 0ustar gg#define cursor_move_mask_width 20 #define cursor_move_mask_height 20 static unsigned char cursor_move_mask_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x1f, 0x00, 0x80, 0x3f, 0x00, 0x40, 0x5f, 0x00, 0xe0, 0xee, 0x00, 0xf0, 0xff, 0x01, 0xf8, 0xff, 0x03, 0xf0, 0xff, 0x01, 0xe0, 0xee, 0x00, 0x40, 0x5f, 0x00, 0x80, 0x3f, 0x00, 0x00, 0x1f, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; gliv-1.9.7/tools/cursors/cursor_rotate.xbm0000644000076400007640000000105211465576131016211 0ustar gg#define cursor_rotate_width 20 #define cursor_rotate_height 20 #define cursor_rotate_x_hot 12 #define cursor_rotate_y_hot 11 static unsigned char cursor_rotate_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x40, 0xdc, 0x01, 0xc0, 0x06, 0x03, 0x40, 0x03, 0x06, 0x40, 0x02, 0x04, 0x40, 0x04, 0x00, 0xc0, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x07, 0x00, 0x40, 0x04, 0x40, 0x80, 0x04, 0xc0, 0x80, 0x05, 0x80, 0xc1, 0x06, 0x00, 0x77, 0x04, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x00, }; gliv-1.9.7/tools/cursors/cursor_move.xbm0000644000076400007640000000104011465576131015656 0ustar gg#define cursor_move_width 20 #define cursor_move_height 20 #define cursor_move_x_hot 10 #define cursor_move_y_hot 10 static unsigned char cursor_move_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x1f, 0x00, 0x00, 0x04, 0x00, 0x40, 0x44, 0x00, 0x60, 0xc4, 0x00, 0xf0, 0xff, 0x01, 0x60, 0xc4, 0x00, 0x40, 0x44, 0x00, 0x00, 0x04, 0x00, 0x00, 0x1f, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; gliv-1.9.7/ABOUT-NLS0000644000076400007640000026713311465576131011213 0ustar gg1 Notes on the Free Translation Project *************************************** Free software is going international! The Free Translation Project is a way to get maintainers of free software, translators, and users all together, so that free software will gradually become able to speak many languages. A few packages already provide translations for their messages. If you found this `ABOUT-NLS' file inside a distribution, you may assume that the distributed package does use GNU `gettext' internally, itself available at your nearest GNU archive site. But you do _not_ need to install GNU `gettext' prior to configuring, installing or using this package with messages translated. Installers will find here some useful hints. These notes also explain how users should proceed for getting the programs to use the available translations. They tell how people wanting to contribute and work on translations can contact the appropriate team. 1.1 INSTALL Matters =================== Some packages are "localizable" when properly installed; the programs they contain can be made to speak your own native language. Most such packages use GNU `gettext'. Other packages have their own ways to internationalization, predating GNU `gettext'. By default, this package will be installed to allow translation of messages. It will automatically detect whether the system already provides the GNU `gettext' functions. Installers may use special options at configuration time for changing the default behaviour. The command: ./configure --disable-nls will _totally_ disable translation of messages. When you already have GNU `gettext' installed on your system and run configure without an option for your new package, `configure' will probably detect the previously built and installed `libintl' library and will decide to use it. If not, you may have to to use the `--with-libintl-prefix' option to tell `configure' where to look for it. Internationalized packages usually have many `po/LL.po' files, where LL gives an ISO 639 two-letter code identifying the language. Unless translations have been forbidden at `configure' time by using the `--disable-nls' switch, all available translations are installed together with the package. However, the environment variable `LINGUAS' may be set, prior to configuration, to limit the installed set. `LINGUAS' should then contain a space separated list of two-letter codes, stating which languages are allowed. 1.2 Using This Package ====================== As a user, if your language has been installed for this package, you only have to set the `LANG' environment variable to the appropriate `LL_CC' combination. If you happen to have the `LC_ALL' or some other `LC_xxx' environment variables set, you should unset them before setting `LANG', otherwise the setting of `LANG' will not have the desired effect. Here `LL' is an ISO 639 two-letter language code, and `CC' is an ISO 3166 two-letter country code. For example, let's suppose that you speak German and live in Germany. At the shell prompt, merely execute `setenv LANG de_DE' (in `csh'), `export LANG; LANG=de_DE' (in `sh') or `export LANG=de_DE' (in `bash'). This can be done from your `.login' or `.profile' file, once and for all. You might think that the country code specification is redundant. But in fact, some languages have dialects in different countries. For example, `de_AT' is used for Austria, and `pt_BR' for Brazil. The country code serves to distinguish the dialects. The locale naming convention of `LL_CC', with `LL' denoting the language and `CC' denoting the country, is the one use on systems based on GNU libc. On other systems, some variations of this scheme are used, such as `LL' or `LL_CC.ENCODING'. You can get the list of locales supported by your system for your language by running the command `locale -a | grep '^LL''. Not all programs have translations for all languages. By default, an English message is shown in place of a nonexistent translation. If you understand other languages, you can set up a priority list of languages. This is done through a different environment variable, called `LANGUAGE'. GNU `gettext' gives preference to `LANGUAGE' over `LANG' for the purpose of message handling, but you still need to have `LANG' set to the primary language; this is required by other parts of the system libraries. For example, some Swedish users who would rather read translations in German than English for when Swedish is not available, set `LANGUAGE' to `sv:de' while leaving `LANG' to `sv_SE'. Special advice for Norwegian users: The language code for Norwegian bokma*l changed from `no' to `nb' recently (in 2003). During the transition period, while some message catalogs for this language are installed under `nb' and some older ones under `no', it's recommended for Norwegian users to set `LANGUAGE' to `nb:no' so that both newer and older translations are used. In the `LANGUAGE' environment variable, but not in the `LANG' environment variable, `LL_CC' combinations can be abbreviated as `LL' to denote the language's main dialect. For example, `de' is equivalent to `de_DE' (German as spoken in Germany), and `pt' to `pt_PT' (Portuguese as spoken in Portugal) in this context. 1.3 Translating Teams ===================== For the Free Translation Project to be a success, we need interested people who like their own language and write it well, and who are also able to synergize with other translators speaking the same language. Each translation team has its own mailing list. The up-to-date list of teams can be found at the Free Translation Project's homepage, `http://translationproject.org/', in the "Teams" area. If you'd like to volunteer to _work_ at translating messages, you should become a member of the translating team for your own language. The subscribing address is _not_ the same as the list itself, it has `-request' appended. For example, speakers of Swedish can send a message to `sv-request@li.org', having this message body: subscribe Keep in mind that team members are expected to participate _actively_ in translations, or at solving translational difficulties, rather than merely lurking around. If your team does not exist yet and you want to start one, or if you are unsure about what to do or how to get started, please write to `coordinator@translationproject.org' to reach the coordinator for all translator teams. The English team is special. It works at improving and uniformizing the terminology in use. Proven linguistic skills are praised more than programming skills, here. 1.4 Available Packages ====================== Languages are not equally supported in all packages. The following matrix shows the current state of internationalization, as of June 2010. The matrix shows, in regard of each package, for which languages PO files have been submitted to translation coordination, with a translation percentage of at least 50%. Ready PO files af am an ar as ast az be be@latin bg bn_IN bs ca +--------------------------------------------------+ a2ps | [] [] | aegis | | ant-phone | | anubis | | aspell | [] [] | bash | | bfd | | bibshelf | [] | binutils | | bison | | bison-runtime | [] | bluez-pin | [] [] | bombono-dvd | | buzztard | | cflow | | clisp | | coreutils | [] [] | cpio | | cppi | | cpplib | [] | cryptsetup | | dfarc | | dialog | [] [] | dico | | diffutils | [] | dink | | doodle | | e2fsprogs | [] | enscript | [] | exif | | fetchmail | [] | findutils | [] | flex | [] | freedink | | gas | | gawk | [] [] | gcal | [] | gcc | | gettext-examples | [] [] [] [] | gettext-runtime | [] [] | gettext-tools | [] [] | gip | [] | gjay | | gliv | [] | glunarclock | [] [] | gnubiff | | gnucash | [] | gnuedu | | gnulib | | gnunet | | gnunet-gtk | | gnutls | | gold | | gpe-aerial | | gpe-beam | | gpe-bluetooth | | gpe-calendar | | gpe-clock | [] | gpe-conf | | gpe-contacts | | gpe-edit | | gpe-filemanager | | gpe-go | | gpe-login | | gpe-ownerinfo | [] | gpe-package | | gpe-sketchbook | | gpe-su | [] | gpe-taskmanager | [] | gpe-timesheet | [] | gpe-today | [] | gpe-todo | | gphoto2 | | gprof | [] | gpsdrive | | gramadoir | | grep | | grub | [] [] | gsasl | | gss | | gst-plugins-bad | [] | gst-plugins-base | [] | gst-plugins-good | [] | gst-plugins-ugly | [] | gstreamer | [] [] [] | gtick | | gtkam | [] | gtkorphan | [] | gtkspell | [] [] [] | gutenprint | | hello | [] | help2man | | hylafax | | idutils | | indent | [] [] | iso_15924 | | iso_3166 | [] [] [] [] [] [] [] | iso_3166_2 | | iso_4217 | | iso_639 | [] [] [] [] | iso_639_3 | | jwhois | | kbd | | keytouch | [] | keytouch-editor | | keytouch-keyboa... | [] | klavaro | [] | latrine | | ld | [] | leafpad | [] [] | libc | [] [] | libexif | () | libextractor | | libgnutls | | libgpewidget | | libgpg-error | | libgphoto2 | | libgphoto2_port | | libgsasl | | libiconv | [] | libidn | | lifelines | | liferea | [] [] | lilypond | | linkdr | [] | lordsawar | | lprng | | lynx | [] | m4 | | mailfromd | | mailutils | | make | | man-db | | man-db-manpages | | minicom | | mkisofs | | myserver | | nano | [] [] | opcodes | | parted | | pies | | popt | | psmisc | | pspp | [] | pwdutils | | radius | [] | recode | [] [] | rosegarden | | rpm | | rush | | sarg | | screem | | scrollkeeper | [] [] [] | sed | [] [] | sharutils | [] [] | shishi | | skencil | | solfege | | solfege-manual | | soundtracker | | sp | | sysstat | | tar | [] | texinfo | | tin | | unicode-han-tra... | | unicode-transla... | | util-linux-ng | [] | vice | | vmm | | vorbis-tools | | wastesedge | | wdiff | | wget | [] [] | wyslij-po | | xchat | [] [] [] [] | xdg-user-dirs | [] [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] | +--------------------------------------------------+ af am an ar as ast az be be@latin bg bn_IN bs ca 6 0 1 2 3 19 1 10 3 28 3 1 38 crh cs da de el en en_GB en_ZA eo es et eu fa +-------------------------------------------------+ a2ps | [] [] [] [] [] [] [] | aegis | [] [] [] | ant-phone | [] () | anubis | [] [] | aspell | [] [] [] [] [] | bash | [] [] [] | bfd | [] | bibshelf | [] [] [] | binutils | [] | bison | [] [] | bison-runtime | [] [] [] [] | bluez-pin | [] [] [] [] [] [] | bombono-dvd | [] | buzztard | [] [] [] | cflow | [] [] | clisp | [] [] [] [] | coreutils | [] [] [] [] | cpio | | cppi | | cpplib | [] [] [] | cryptsetup | [] | dfarc | [] [] [] | dialog | [] [] [] [] [] | dico | | diffutils | [] [] [] [] [] [] | dink | [] [] [] | doodle | [] | e2fsprogs | [] [] [] | enscript | [] [] [] | exif | () [] [] | fetchmail | [] [] () [] [] [] | findutils | [] [] [] | flex | [] [] | freedink | [] [] [] | gas | [] | gawk | [] [] [] | gcal | [] | gcc | [] [] | gettext-examples | [] [] [] [] | gettext-runtime | [] [] [] [] | gettext-tools | [] [] [] | gip | [] [] [] [] | gjay | [] | gliv | [] [] [] | glunarclock | [] [] | gnubiff | () | gnucash | [] () () () () | gnuedu | [] [] | gnulib | [] [] | gnunet | | gnunet-gtk | [] | gnutls | [] [] | gold | [] | gpe-aerial | [] [] [] [] | gpe-beam | [] [] [] [] | gpe-bluetooth | [] [] | gpe-calendar | [] | gpe-clock | [] [] [] [] | gpe-conf | [] [] [] | gpe-contacts | [] [] [] | gpe-edit | [] [] | gpe-filemanager | [] [] [] | gpe-go | [] [] [] [] | gpe-login | [] [] | gpe-ownerinfo | [] [] [] [] | gpe-package | [] [] [] | gpe-sketchbook | [] [] [] [] | gpe-su | [] [] [] [] | gpe-taskmanager | [] [] [] [] | gpe-timesheet | [] [] [] [] | gpe-today | [] [] [] [] | gpe-todo | [] [] [] | gphoto2 | [] [] () [] [] [] | gprof | [] [] [] | gpsdrive | [] [] [] | gramadoir | [] [] [] | grep | [] | grub | [] [] | gsasl | [] | gss | | gst-plugins-bad | [] [] [] [] [] | gst-plugins-base | [] [] [] [] [] | gst-plugins-good | [] [] [] [] [] [] | gst-plugins-ugly | [] [] [] [] [] [] | gstreamer | [] [] [] [] [] | gtick | [] () [] | gtkam | [] [] () [] [] | gtkorphan | [] [] [] [] | gtkspell | [] [] [] [] [] [] [] | gutenprint | [] [] [] | hello | [] [] [] [] | help2man | [] | hylafax | [] [] | idutils | [] [] | indent | [] [] [] [] [] [] [] | iso_15924 | [] () [] [] | iso_3166 | [] [] [] [] () [] [] [] () | iso_3166_2 | () | iso_4217 | [] [] [] () [] [] | iso_639 | [] [] [] [] () [] [] | iso_639_3 | [] | jwhois | [] | kbd | [] [] [] [] [] | keytouch | [] [] | keytouch-editor | [] [] | keytouch-keyboa... | [] | klavaro | [] [] [] [] | latrine | [] () | ld | [] [] | leafpad | [] [] [] [] [] [] | libc | [] [] [] [] | libexif | [] [] () | libextractor | | libgnutls | [] | libgpewidget | [] [] | libgpg-error | [] [] | libgphoto2 | [] () | libgphoto2_port | [] () [] | libgsasl | | libiconv | [] [] [] [] [] | libidn | [] [] [] | lifelines | [] () | liferea | [] [] [] [] [] | lilypond | [] [] [] | linkdr | [] [] [] | lordsawar | [] | lprng | | lynx | [] [] [] [] | m4 | [] [] [] [] | mailfromd | | mailutils | [] | make | [] [] [] | man-db | | man-db-manpages | | minicom | [] [] [] [] | mkisofs | | myserver | | nano | [] [] [] | opcodes | [] [] | parted | [] [] | pies | | popt | [] [] [] [] [] | psmisc | [] [] [] | pspp | [] | pwdutils | [] | radius | [] | recode | [] [] [] [] [] [] | rosegarden | () () () | rpm | [] [] [] | rush | | sarg | | screem | | scrollkeeper | [] [] [] [] [] | sed | [] [] [] [] [] [] | sharutils | [] [] [] [] | shishi | | skencil | [] () [] | solfege | [] [] [] | solfege-manual | [] [] | soundtracker | [] [] [] | sp | [] | sysstat | [] [] [] | tar | [] [] [] [] | texinfo | [] [] [] | tin | [] [] | unicode-han-tra... | | unicode-transla... | | util-linux-ng | [] [] [] [] | vice | () () | vmm | [] | vorbis-tools | [] [] | wastesedge | [] | wdiff | [] [] | wget | [] [] [] | wyslij-po | | xchat | [] [] [] [] [] | xdg-user-dirs | [] [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] [] [] [] [] | +-------------------------------------------------+ crh cs da de el en en_GB en_ZA eo es et eu fa 5 64 105 117 18 1 8 0 28 89 18 19 0 fi fr ga gl gu he hi hr hu hy id is it ja ka kn +----------------------------------------------------+ a2ps | [] [] [] [] | aegis | [] [] | ant-phone | [] [] | anubis | [] [] [] [] | aspell | [] [] [] [] | bash | [] [] [] [] | bfd | [] [] [] | bibshelf | [] [] [] [] [] | binutils | [] [] [] | bison | [] [] [] [] | bison-runtime | [] [] [] [] [] [] | bluez-pin | [] [] [] [] [] [] [] [] | bombono-dvd | [] | buzztard | [] | cflow | [] [] [] | clisp | [] | coreutils | [] [] [] [] [] | cpio | [] [] [] [] | cppi | [] [] | cpplib | [] [] [] | cryptsetup | [] [] [] | dfarc | [] [] [] | dialog | [] [] [] [] [] [] [] | dico | | diffutils | [] [] [] [] [] [] [] [] [] | dink | [] | doodle | [] [] | e2fsprogs | [] [] | enscript | [] [] [] [] | exif | [] [] [] [] [] [] | fetchmail | [] [] [] [] | findutils | [] [] [] [] [] [] | flex | [] [] [] | freedink | [] [] [] | gas | [] [] | gawk | [] [] [] [] () [] | gcal | [] | gcc | [] | gettext-examples | [] [] [] [] [] [] [] | gettext-runtime | [] [] [] [] [] [] | gettext-tools | [] [] [] [] | gip | [] [] [] [] [] [] | gjay | [] | gliv | [] () | glunarclock | [] [] [] [] | gnubiff | () [] () | gnucash | () () () () () [] | gnuedu | [] [] | gnulib | [] [] [] [] [] [] | gnunet | | gnunet-gtk | [] | gnutls | [] [] | gold | [] [] | gpe-aerial | [] [] [] | gpe-beam | [] [] [] [] | gpe-bluetooth | [] [] [] [] | gpe-calendar | [] [] | gpe-clock | [] [] [] [] [] | gpe-conf | [] [] [] [] | gpe-contacts | [] [] [] [] | gpe-edit | [] [] [] | gpe-filemanager | [] [] [] [] | gpe-go | [] [] [] [] [] | gpe-login | [] [] [] | gpe-ownerinfo | [] [] [] [] [] | gpe-package | [] [] [] | gpe-sketchbook | [] [] [] [] | gpe-su | [] [] [] [] [] [] | gpe-taskmanager | [] [] [] [] [] | gpe-timesheet | [] [] [] [] [] | gpe-today | [] [] [] [] [] [] [] | gpe-todo | [] [] [] | gphoto2 | [] [] [] [] [] [] | gprof | [] [] [] [] | gpsdrive | [] [] [] | gramadoir | [] [] [] | grep | [] [] | grub | [] [] [] [] | gsasl | [] [] [] [] [] | gss | [] [] [] [] [] | gst-plugins-bad | [] [] [] [] [] [] | gst-plugins-base | [] [] [] [] [] [] | gst-plugins-good | [] [] [] [] [] [] | gst-plugins-ugly | [] [] [] [] [] [] | gstreamer | [] [] [] [] [] | gtick | [] [] [] [] [] | gtkam | [] [] [] [] [] | gtkorphan | [] [] [] | gtkspell | [] [] [] [] [] [] [] [] [] | gutenprint | [] [] [] [] | hello | [] [] [] | help2man | [] [] | hylafax | [] | idutils | [] [] [] [] [] [] | indent | [] [] [] [] [] [] [] [] | iso_15924 | [] () [] [] | iso_3166 | [] () [] [] [] [] [] [] [] [] [] [] | iso_3166_2 | () [] [] [] | iso_4217 | [] () [] [] [] [] | iso_639 | [] () [] [] [] [] [] [] [] | iso_639_3 | () [] [] | jwhois | [] [] [] [] [] | kbd | [] [] | keytouch | [] [] [] [] [] [] | keytouch-editor | [] [] [] [] [] | keytouch-keyboa... | [] [] [] [] [] | klavaro | [] [] | latrine | [] [] [] | ld | [] [] [] [] | leafpad | [] [] [] [] [] [] [] () | libc | [] [] [] [] [] | libexif | [] | libextractor | | libgnutls | [] [] | libgpewidget | [] [] [] [] | libgpg-error | [] [] | libgphoto2 | [] [] [] | libgphoto2_port | [] [] [] | libgsasl | [] [] [] [] [] | libiconv | [] [] [] [] [] [] | libidn | [] [] [] [] | lifelines | () | liferea | [] [] [] [] | lilypond | [] [] | linkdr | [] [] [] [] [] | lordsawar | | lprng | [] | lynx | [] [] [] [] [] | m4 | [] [] [] [] [] [] | mailfromd | | mailutils | [] [] | make | [] [] [] [] [] [] [] [] [] | man-db | [] [] | man-db-manpages | [] | minicom | [] [] [] [] [] | mkisofs | [] [] [] [] | myserver | | nano | [] [] [] [] [] [] | opcodes | [] [] [] [] | parted | [] [] [] [] | pies | | popt | [] [] [] [] [] [] [] [] [] | psmisc | [] [] [] | pspp | | pwdutils | [] [] | radius | [] [] | recode | [] [] [] [] [] [] [] [] | rosegarden | () () () () () | rpm | [] [] | rush | | sarg | [] | screem | [] [] | scrollkeeper | [] [] [] [] | sed | [] [] [] [] [] [] [] [] | sharutils | [] [] [] [] [] [] [] | shishi | [] | skencil | [] | solfege | [] [] [] [] | solfege-manual | [] [] | soundtracker | [] [] | sp | [] () | sysstat | [] [] [] [] [] | tar | [] [] [] [] [] [] [] | texinfo | [] [] [] [] | tin | [] | unicode-han-tra... | | unicode-transla... | [] [] | util-linux-ng | [] [] [] [] [] [] | vice | () () () | vmm | [] | vorbis-tools | [] | wastesedge | () () | wdiff | [] | wget | [] [] [] [] [] [] [] [] | wyslij-po | [] [] [] | xchat | [] [] [] [] [] [] [] [] [] | xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] [] [] [] | +----------------------------------------------------+ fi fr ga gl gu he hi hr hu hy id is it ja ka kn 105 121 53 20 4 8 3 5 53 2 120 5 84 67 0 4 ko ku ky lg lt lv mk ml mn mr ms mt nb nds ne +-----------------------------------------------+ a2ps | [] | aegis | | ant-phone | | anubis | [] [] | aspell | [] | bash | | bfd | | bibshelf | [] [] | binutils | | bison | [] | bison-runtime | [] [] [] [] [] | bluez-pin | [] [] [] [] [] | bombono-dvd | | buzztard | | cflow | | clisp | | coreutils | [] | cpio | | cppi | | cpplib | | cryptsetup | | dfarc | [] | dialog | [] [] [] [] [] | dico | | diffutils | [] [] | dink | | doodle | | e2fsprogs | | enscript | | exif | [] | fetchmail | | findutils | | flex | | freedink | [] | gas | | gawk | | gcal | | gcc | | gettext-examples | [] [] [] [] | gettext-runtime | [] | gettext-tools | [] | gip | [] [] | gjay | | gliv | | glunarclock | [] | gnubiff | | gnucash | () () () () | gnuedu | | gnulib | | gnunet | | gnunet-gtk | | gnutls | [] | gold | | gpe-aerial | [] | gpe-beam | [] | gpe-bluetooth | [] [] | gpe-calendar | [] | gpe-clock | [] [] [] [] [] | gpe-conf | [] [] | gpe-contacts | [] [] | gpe-edit | [] | gpe-filemanager | [] [] | gpe-go | [] [] [] | gpe-login | [] | gpe-ownerinfo | [] [] | gpe-package | [] [] | gpe-sketchbook | [] [] | gpe-su | [] [] [] [] [] [] | gpe-taskmanager | [] [] [] [] [] [] | gpe-timesheet | [] [] | gpe-today | [] [] [] [] | gpe-todo | [] [] | gphoto2 | | gprof | [] | gpsdrive | | gramadoir | | grep | | grub | | gsasl | | gss | | gst-plugins-bad | [] [] [] [] | gst-plugins-base | [] [] | gst-plugins-good | [] [] | gst-plugins-ugly | [] [] [] [] [] | gstreamer | | gtick | | gtkam | [] | gtkorphan | [] [] | gtkspell | [] [] [] [] [] [] [] | gutenprint | | hello | [] [] [] | help2man | | hylafax | | idutils | | indent | | iso_15924 | [] [] | iso_3166 | [] [] () [] [] [] [] [] | iso_3166_2 | | iso_4217 | [] [] | iso_639 | [] [] | iso_639_3 | [] | jwhois | [] | kbd | | keytouch | [] | keytouch-editor | [] | keytouch-keyboa... | [] | klavaro | [] | latrine | [] | ld | | leafpad | [] [] [] | libc | [] | libexif | | libextractor | | libgnutls | [] | libgpewidget | [] [] | libgpg-error | | libgphoto2 | | libgphoto2_port | | libgsasl | | libiconv | | libidn | | lifelines | | liferea | | lilypond | | linkdr | | lordsawar | | lprng | | lynx | | m4 | | mailfromd | | mailutils | | make | [] | man-db | | man-db-manpages | | minicom | [] | mkisofs | | myserver | | nano | [] [] | opcodes | | parted | | pies | | popt | [] [] [] | psmisc | | pspp | | pwdutils | | radius | | recode | | rosegarden | | rpm | | rush | | sarg | | screem | | scrollkeeper | [] [] | sed | | sharutils | | shishi | | skencil | | solfege | [] | solfege-manual | | soundtracker | | sp | | sysstat | [] | tar | [] | texinfo | [] | tin | | unicode-han-tra... | | unicode-transla... | | util-linux-ng | | vice | | vmm | | vorbis-tools | | wastesedge | | wdiff | | wget | [] | wyslij-po | | xchat | [] [] [] | xdg-user-dirs | [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] [] | +-----------------------------------------------+ ko ku ky lg lt lv mk ml mn mr ms mt nb nds ne 20 5 10 1 13 48 4 2 2 4 24 10 20 3 1 nl nn or pa pl ps pt pt_BR ro ru rw sk sl sq sr +---------------------------------------------------+ a2ps | [] [] [] [] [] [] [] [] | aegis | [] [] [] | ant-phone | [] [] | anubis | [] [] [] | aspell | [] [] [] [] [] | bash | [] [] | bfd | [] | bibshelf | [] [] | binutils | [] [] | bison | [] [] [] | bison-runtime | [] [] [] [] [] [] [] | bluez-pin | [] [] [] [] [] [] [] [] | bombono-dvd | [] () | buzztard | [] [] | cflow | [] | clisp | [] [] | coreutils | [] [] [] [] [] [] | cpio | [] [] [] | cppi | [] | cpplib | [] | cryptsetup | [] | dfarc | [] | dialog | [] [] [] [] | dico | [] | diffutils | [] [] [] [] [] [] | dink | () | doodle | [] [] | e2fsprogs | [] [] | enscript | [] [] [] [] [] | exif | [] [] [] () [] | fetchmail | [] [] [] [] | findutils | [] [] [] [] [] | flex | [] [] [] [] [] | freedink | [] [] | gas | | gawk | [] [] [] [] | gcal | | gcc | [] | gettext-examples | [] [] [] [] [] [] [] [] | gettext-runtime | [] [] [] [] [] [] [] [] [] | gettext-tools | [] [] [] [] [] [] | gip | [] [] [] [] [] | gjay | | gliv | [] [] [] [] [] [] | glunarclock | [] [] [] [] [] | gnubiff | [] () | gnucash | [] () () () | gnuedu | [] | gnulib | [] [] [] [] | gnunet | | gnunet-gtk | | gnutls | [] [] | gold | | gpe-aerial | [] [] [] [] [] [] [] | gpe-beam | [] [] [] [] [] [] [] | gpe-bluetooth | [] [] | gpe-calendar | [] [] [] [] | gpe-clock | [] [] [] [] [] [] [] [] | gpe-conf | [] [] [] [] [] [] [] | gpe-contacts | [] [] [] [] [] | gpe-edit | [] [] [] | gpe-filemanager | [] [] [] | gpe-go | [] [] [] [] [] [] [] [] | gpe-login | [] [] | gpe-ownerinfo | [] [] [] [] [] [] [] [] | gpe-package | [] [] | gpe-sketchbook | [] [] [] [] [] [] [] | gpe-su | [] [] [] [] [] [] [] [] | gpe-taskmanager | [] [] [] [] [] [] [] [] | gpe-timesheet | [] [] [] [] [] [] [] [] | gpe-today | [] [] [] [] [] [] [] [] | gpe-todo | [] [] [] [] [] | gphoto2 | [] [] [] [] [] [] [] [] | gprof | [] [] [] | gpsdrive | [] [] | gramadoir | [] [] | grep | [] [] [] [] | grub | [] [] [] | gsasl | [] [] [] [] | gss | [] [] [] | gst-plugins-bad | [] [] [] [] [] [] | gst-plugins-base | [] [] [] [] [] | gst-plugins-good | [] [] [] [] [] | gst-plugins-ugly | [] [] [] [] [] [] | gstreamer | [] [] [] [] [] | gtick | [] [] [] | gtkam | [] [] [] [] [] [] | gtkorphan | [] | gtkspell | [] [] [] [] [] [] [] [] [] [] | gutenprint | [] [] | hello | [] [] [] [] | help2man | [] [] | hylafax | [] | idutils | [] [] [] [] [] | indent | [] [] [] [] [] [] [] | iso_15924 | [] [] [] [] | iso_3166 | [] [] [] [] [] () [] [] [] [] [] [] [] [] | iso_3166_2 | [] [] [] | iso_4217 | [] [] [] [] [] [] [] [] | iso_639 | [] [] [] [] [] [] [] [] [] | iso_639_3 | [] [] | jwhois | [] [] [] [] | kbd | [] [] [] | keytouch | [] [] [] | keytouch-editor | [] [] [] | keytouch-keyboa... | [] [] [] | klavaro | [] [] | latrine | [] [] | ld | | leafpad | [] [] [] [] [] [] [] [] [] | libc | [] [] [] [] | libexif | [] [] () [] | libextractor | | libgnutls | [] [] | libgpewidget | [] [] [] | libgpg-error | [] [] | libgphoto2 | [] [] | libgphoto2_port | [] [] [] [] [] | libgsasl | [] [] [] [] [] | libiconv | [] [] [] [] [] | libidn | [] [] | lifelines | [] [] | liferea | [] [] [] [] [] () () [] | lilypond | [] | linkdr | [] [] [] | lordsawar | | lprng | [] | lynx | [] [] [] | m4 | [] [] [] [] [] | mailfromd | [] | mailutils | [] | make | [] [] [] [] | man-db | [] [] [] | man-db-manpages | [] [] [] | minicom | [] [] [] [] | mkisofs | [] [] [] | myserver | | nano | [] [] [] [] | opcodes | [] [] | parted | [] [] [] [] | pies | [] | popt | [] [] [] [] | psmisc | [] [] [] | pspp | [] [] | pwdutils | [] | radius | [] [] [] | recode | [] [] [] [] [] [] [] [] | rosegarden | () () | rpm | [] [] [] | rush | [] [] | sarg | | screem | | scrollkeeper | [] [] [] [] [] [] [] [] | sed | [] [] [] [] [] [] [] [] [] | sharutils | [] [] [] [] | shishi | [] | skencil | [] [] | solfege | [] [] [] [] | solfege-manual | [] [] [] | soundtracker | [] | sp | | sysstat | [] [] [] [] | tar | [] [] [] [] | texinfo | [] [] [] [] | tin | [] | unicode-han-tra... | | unicode-transla... | | util-linux-ng | [] [] [] [] [] | vice | [] | vmm | [] | vorbis-tools | [] [] | wastesedge | [] | wdiff | [] [] | wget | [] [] [] [] [] [] [] | wyslij-po | [] [] [] | xchat | [] [] [] [] [] [] [] [] [] | xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] [] | +---------------------------------------------------+ nl nn or pa pl ps pt pt_BR ro ru rw sk sl sq sr 135 10 4 7 105 1 29 62 47 91 3 54 46 9 37 sv sw ta te tg th tr uk vi wa zh_CN zh_HK zh_TW +---------------------------------------------------+ a2ps | [] [] [] [] [] | 27 aegis | [] | 9 ant-phone | [] [] [] [] | 9 anubis | [] [] [] [] | 15 aspell | [] [] [] | 20 bash | [] [] [] | 12 bfd | [] | 6 bibshelf | [] [] [] | 16 binutils | [] [] | 8 bison | [] [] | 12 bison-runtime | [] [] [] [] [] [] | 29 bluez-pin | [] [] [] [] [] [] [] [] | 37 bombono-dvd | [] | 4 buzztard | [] | 7 cflow | [] [] [] | 9 clisp | | 10 coreutils | [] [] [] [] | 22 cpio | [] [] [] [] [] [] | 13 cppi | [] [] | 5 cpplib | [] [] [] [] [] [] | 14 cryptsetup | [] [] | 7 dfarc | [] | 9 dialog | [] [] [] [] [] [] [] | 30 dico | [] | 2 diffutils | [] [] [] [] [] [] | 30 dink | | 4 doodle | [] [] | 7 e2fsprogs | [] [] [] | 11 enscript | [] [] [] [] | 17 exif | [] [] [] | 16 fetchmail | [] [] [] | 17 findutils | [] [] [] [] [] | 20 flex | [] [] [] [] | 15 freedink | [] | 10 gas | [] | 4 gawk | [] [] [] [] | 18 gcal | [] [] | 5 gcc | [] [] [] | 7 gettext-examples | [] [] [] [] [] [] [] | 34 gettext-runtime | [] [] [] [] [] [] [] | 29 gettext-tools | [] [] [] [] [] [] | 22 gip | [] [] [] [] | 22 gjay | [] | 3 gliv | [] [] [] | 14 glunarclock | [] [] [] [] [] | 19 gnubiff | [] [] | 4 gnucash | () [] () [] () | 10 gnuedu | [] [] | 7 gnulib | [] [] [] [] | 16 gnunet | [] | 1 gnunet-gtk | [] [] [] | 5 gnutls | [] [] [] | 10 gold | [] | 4 gpe-aerial | [] [] [] | 18 gpe-beam | [] [] [] | 19 gpe-bluetooth | [] [] [] | 13 gpe-calendar | [] [] [] [] | 12 gpe-clock | [] [] [] [] [] | 28 gpe-conf | [] [] [] [] | 20 gpe-contacts | [] [] [] | 17 gpe-edit | [] [] [] | 12 gpe-filemanager | [] [] [] [] | 16 gpe-go | [] [] [] [] [] | 25 gpe-login | [] [] [] | 11 gpe-ownerinfo | [] [] [] [] [] | 25 gpe-package | [] [] [] | 13 gpe-sketchbook | [] [] [] | 20 gpe-su | [] [] [] [] [] | 30 gpe-taskmanager | [] [] [] [] [] | 29 gpe-timesheet | [] [] [] [] [] | 25 gpe-today | [] [] [] [] [] [] | 30 gpe-todo | [] [] [] [] | 17 gphoto2 | [] [] [] [] [] | 24 gprof | [] [] [] | 15 gpsdrive | [] [] [] | 11 gramadoir | [] [] [] | 11 grep | [] [] [] | 10 grub | [] [] [] | 14 gsasl | [] [] [] [] | 14 gss | [] [] [] | 11 gst-plugins-bad | [] [] [] [] | 26 gst-plugins-base | [] [] [] [] [] | 24 gst-plugins-good | [] [] [] [] | 24 gst-plugins-ugly | [] [] [] [] [] | 29 gstreamer | [] [] [] [] | 22 gtick | [] [] [] | 13 gtkam | [] [] [] | 20 gtkorphan | [] [] [] | 14 gtkspell | [] [] [] [] [] [] [] [] [] | 45 gutenprint | [] | 10 hello | [] [] [] [] [] [] | 21 help2man | [] [] | 7 hylafax | [] | 5 idutils | [] [] [] [] | 17 indent | [] [] [] [] [] [] | 30 iso_15924 | () [] () [] [] | 16 iso_3166 | [] [] () [] [] () [] [] [] () | 53 iso_3166_2 | () [] () [] | 9 iso_4217 | [] () [] [] () [] [] | 26 iso_639 | [] [] [] () [] () [] [] [] [] | 38 iso_639_3 | [] () | 8 jwhois | [] [] [] [] [] | 16 kbd | [] [] [] [] [] | 15 keytouch | [] [] [] | 16 keytouch-editor | [] [] [] | 14 keytouch-keyboa... | [] [] [] | 14 klavaro | [] | 11 latrine | [] [] [] | 10 ld | [] [] [] [] | 11 leafpad | [] [] [] [] [] [] | 33 libc | [] [] [] [] [] | 21 libexif | [] () | 7 libextractor | [] | 1 libgnutls | [] [] [] | 9 libgpewidget | [] [] [] | 14 libgpg-error | [] [] [] | 9 libgphoto2 | [] [] | 8 libgphoto2_port | [] [] [] [] | 14 libgsasl | [] [] [] | 13 libiconv | [] [] [] [] | 21 libidn | () [] [] | 11 lifelines | [] | 4 liferea | [] [] [] | 21 lilypond | [] | 7 linkdr | [] [] [] [] [] | 17 lordsawar | | 1 lprng | [] | 3 lynx | [] [] [] [] | 17 m4 | [] [] [] [] | 19 mailfromd | [] [] | 3 mailutils | [] | 5 make | [] [] [] [] | 21 man-db | [] [] [] | 8 man-db-manpages | | 4 minicom | [] [] | 16 mkisofs | [] [] | 9 myserver | | 0 nano | [] [] [] [] | 21 opcodes | [] [] [] | 11 parted | [] [] [] [] [] | 15 pies | [] [] | 3 popt | [] [] [] [] [] [] | 27 psmisc | [] [] | 11 pspp | | 4 pwdutils | [] [] | 6 radius | [] [] | 9 recode | [] [] [] [] | 28 rosegarden | () | 0 rpm | [] [] [] | 11 rush | [] [] | 4 sarg | | 1 screem | [] | 3 scrollkeeper | [] [] [] [] [] | 27 sed | [] [] [] [] [] | 30 sharutils | [] [] [] [] [] | 22 shishi | [] | 3 skencil | [] [] | 7 solfege | [] [] [] [] | 16 solfege-manual | [] | 8 soundtracker | [] [] [] | 9 sp | [] | 3 sysstat | [] [] | 15 tar | [] [] [] [] [] [] | 23 texinfo | [] [] [] [] [] | 17 tin | | 4 unicode-han-tra... | | 0 unicode-transla... | | 2 util-linux-ng | [] [] [] [] | 20 vice | () () | 1 vmm | [] | 4 vorbis-tools | [] | 6 wastesedge | | 2 wdiff | [] [] | 7 wget | [] [] [] [] [] | 26 wyslij-po | [] [] | 8 xchat | [] [] [] [] [] [] | 36 xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] | 63 xkeyboard-config | [] [] [] | 22 +---------------------------------------------------+ 85 teams sv sw ta te tg th tr uk vi wa zh_CN zh_HK zh_TW 178 domains 119 1 3 3 0 10 65 51 155 17 98 7 41 2618 Some counters in the preceding matrix are higher than the number of visible blocks let us expect. This is because a few extra PO files are used for implementing regional variants of languages, or language dialects. For a PO file in the matrix above to be effective, the package to which it applies should also have been internationalized and distributed as such by its maintainer. There might be an observable lag between the mere existence a PO file and its wide availability in a distribution. If June 2010 seems to be old, you may fetch a more recent copy of this `ABOUT-NLS' file on most GNU archive sites. The most up-to-date matrix with full percentage details can be found at `http://translationproject.org/extra/matrix.html'. 1.5 Using `gettext' in new packages =================================== If you are writing a freely available program and want to internationalize it you are welcome to use GNU `gettext' in your package. Of course you have to respect the GNU Library General Public License which covers the use of the GNU `gettext' library. This means in particular that even non-free programs can use `libintl' as a shared library, whereas only free software can use `libintl' as a static library or use modified versions of `libintl'. Once the sources are changed appropriately and the setup can handle the use of `gettext' the only thing missing are the translations. The Free Translation Project is also available for packages which are not developed inside the GNU project. Therefore the information given above applies also for every other Free Software Project. Contact `coordinator@translationproject.org' to make the `.pot' files available to the translation teams. gliv-1.9.7/.gitignore0000644000076400007640000000025611465576131011743 0ustar gg*.o *~ .deps /autom4te.cache/ /config.h /config.log /config.status /gliv.desktop /gliv.spec /po/Makefile.in /po/POTFILES /po/remove-potcdate.sed /src/gliv /stamp-h1 Makefile gliv-1.9.7/INSTALL0000644000076400007640000002243211465576131011004 0ustar ggInstallation Instructions ************************* Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free Software Foundation, Inc. This file is free documentation; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. Basic Installation ================== These are generic installation instructions. 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 only 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. If you're using `csh' on an old version of System V, you might need to type `sh ./configure' instead to prevent `csh' from trying to execute `configure' itself. Running `configure' takes awhile. 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. 4. Type `make install' to install the programs and any data files and documentation. 5. 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. 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=c89 CFLAGS=-O2 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 must use a version of `make' that supports the `VPATH' variable, such as 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 `..'. If you have to use a `make' that does not support the `VPATH' variable, you have 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. 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'. 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. 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'. Optional Features ================= 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. 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). Here is a another example: /bin/bash ./configure CONFIG_SHELL=/bin/bash Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent configuration-related scripts to be executed by `/bin/bash'. `configure' Invocation ====================== `configure' recognizes the following options to control how it operates. `--help' `-h' Print a summary of the options to `configure', and exit. `--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. `configure' also accepts some other, not widely useful, options. Run `configure --help' for more details. gliv-1.9.7/man/0000755000076400007640000000000011465576131010523 5ustar gggliv-1.9.7/man/cs/0000755000076400007640000000000011465576131011130 5ustar gggliv-1.9.7/man/cs/gliv.10000644000076400007640000001507111465576131012157 0ustar gg.\" This file is auto-generated from gliv.1.start .\" gliv.1.end and the translation of the README block .TH "gliv" "1" "1.9" "Guillaume Chazarain" "Prohlížeč obrázků" .SH "JMÉNO" gliv \- OpenGL prohlížeč obrázků .SH "POUŽITÍ" \fBgliv\fR [OPTIONS]... [FILES]... .SH "POPIS" \fIgliv\fR používá gdk\-pixbuf pro načítání obrázků a OpenGL pro jejich vykreslování. Umožňuje provádět některé pohyby, rotace, zvětšování a prezentaci obrázků. .SH "VOLBY" Volby jsou nejprve nastaveny na jejich implicitní hodnoty, "off" pro přepínače, potom jsou přečteny buď z ~/.glivrc nebo /etc/glivrc nebo z konfiguračního souboru specifikovaného na příkazové řádce a nakonec jsou čteny volby z příkazové řádky. .br Vynechání argumentu pro volbu, která jako parametr bere "on|off" (přepínač) je stejné, jako nastavení na "on", tedy \-\-foo je stejné jako \-\-foo=on pokud je foo on|off přepínačem. .TP \fB\-h, \-\-help\fR Vytisknout nápovědu a ukončit program. .TP \fB\-V, \-\-version\fR Vytisknout verzi a ukončit program. .TP \fB\-a, \-\-add\-all[=on|off]\fR Přidat všechny soubory adresáře. Pokud otevřete s touto volbou soubor na příkazové řádce nebo pomocí otevíracího dialogu, všechny ostatní soubory v adresáři jsou přidány také. .TP \fB\-R, \-\-recursive[=on|off]\fR Rekurzivní průchod adresáři. Pokud bude \fIgliv\fR načítat adresář, načte také všechny obrázky ze všech jeho podadresářů. .TP \fB\-S, \-\-sort[=on|off]\fR Zobrazit obrázky setříděné. Obrázky budou před zahájením prezentace setřízeny. .TP \fB\-s, \-\-shuffle[=on|off]\fR Zobrazit obrázky v náhodném pořadí. Seznam obrázků bude před zahájením prezentace zamíchán. .TP \fB\-F, \-\-force\-load[=on|off]\fR Pokusit se načíst každý soubor. Při načítání souboru je kód pro načtení obrázku vybrán dle přípony kvůli optimalizaci času načítání. Pokud je přípona neznámá, soubor je ignorován, s touto volbou se bude \fIgliv\fR vždy snažit načíst takový soubor. .TP \fB\-C, \-\-client[=on|off]\fR Připojit se k běžící instanci programu \fIgliv\fR a připojit obrázky do seznamu obrázků. S touto volbou \fIgliv\fR otevře soubory předané jako argumenty v okně serverové instance programu \fIgliv\fR. Je též možné použít volbu \-0. Použitý \fIgliv\fR server je poslední spuštěný \fIgliv\fR nebo server nastavený v menu Volby. .TP \fB\-c, \-\-client-clear[=on|off]\fR Připojit se k běžící instanci programu \fIgliv\fR a nahradit seznam obrázků. Tato volba je podobná jako volba \-\-client, ale seznam předaný klientem nahradí seznam na serveru namísto jeho rozšíření. .TP \fB\-e, \-\-build\-menus[=on|off]\fR Nevytvářet menu obrázků při startu programu. Vypnutí generování obrázkových menu při spouštění programu představuje značné zrychlení, zejména v případě mnoha souborů předaných na příkazovém řádku. .TP \fB\-g, \-\-glivrc[=FILE]\fR Použít tento konfigurační soubor, nebo žádný. Specifikujte, pokud chcete zamezit načítání rc souboru. Pokud použijete jako argument jméno souboru, bude tento soubor použit jako konfigurační soubor. .TP \fB\-w, \-\-slide\-show[=on|off]\fR Zahájit prezentaci obrázků okamžitě. Pokud použijete tuto volbu, nebudete muset startovat prezentaci ručně výběrem položky z menu. .TP \fB\-0, \-\-null[=on|off]\fR Číst názvy souborů oddělené znakem null. Tato volba může být použita s příkazy jako "find \-print0" nebo "tr '\en' '\e0'", pokud máte příliš dlouhý seznam názvů souborů, které chcete předat programu \fIgliv\fR. Narozdíl od xargs(1) toto umožňuje neomezený počet názvů souborů. .TP \fB\-o, \-\-collection[=FILE]\fR Vypsat kolekci. S touto volbou \fIgliv\fR vytvoří kolekci z načtených souborů a vypíše ji na standardní výstup nebo do specifikovaného souboru. .TP \fB\-G, \-\-geometry=GEOMETRY\fR Počáteční geometrie okna. Tato volba může být použita pro specifikaci polohy a rozměrů okna programu \fIgliv\fR. Volba očekává argument ve formátu XParseGeometry(3X11) jako například: 640x480+20\-30. .SH "KOLEKCE" Od verze 1.8 podporuje \fIgliv\fR souborový formát nazvaný jako "GLiv kolekce". Obsahuje seznam obrázků a související náhledy. Díky tomu je možné při načítání kolekce obrázků přebudovat obrázková menu mnohem rychleji, protože není nutné znovu vytvářet náhledy. .br \fIgliv\fR také podporuje transparentní dekompresi, takže kolekce mohou být zkomprimovány pomocí bzip2, gzip nebo compress(1) za podmínky, že máte nainstalován příslušný dekomprimační program. .SH "OVLÁDÁNÍ" ESC, q : Ukončit program .br f : Na celou obrazovku/v okně .br +/=/- : Přiblížit/Přiblížit/Oddálit .br n/p : Následující/předchozí obrázek .br Pause : Spustit/zastavit prezentaci .br l : Zmenšit obrázek do okna .br M : Maximalizovat obrázek do okna .br m : Přizpůsobit obrázek do okna .br r : Vyresetovat pozici a rozměr .br b : Přepnout zobrazení lišty menu .br i : Přepnout zobrazení informační lišty .br s : Přepnout zobrazení rolovacích pruhů .br a : Přepnout zobrazení rastru pro kontrolu alfa kanálu .br h : Přepnout zobrazení dialogu nápovědy .br w : Přepnout zobrazení plovoucích oken .br o : Zobrazit dialog otevření .br g : Zobrazit nástroj pro výběr obrázku .br t : Zobrazit dialog voleb .br d : Skrýt kurzor .br u : Zpět .br y : Znovu .br c : Vyčistit historii .br Delete : Odstranit aktuální soubor .br C-nahoru : Otočit o +90 stupňů .br C-dolů : Otočit o -90 stupňů .br C-vlevo : Otočit o +0.1 stupně .br C-vpravo: Otočit o -0.1 stupně .br z : Horizontální překlopení .br e : Vertikální překlopení .br První tlačítko myši a šipky posunou obrázek, pokud není současně stisknutá klávesa Control. V takovém případě bude obrázek otočen podle středu okna. .br Kolečko myši přibližuje obrázek, pokud současně držíte stisknuté tlačítko, přepíná na sousední obrázek. .br Přiblížení můžete provést také tažením myši vertikálně při současném držení klávesy Shift a prvního tlačítka myši. .br Mezerník a klávesa zpět se chovají jako n a p. .br Nakreslete obdélník pomocí třetího tlačítka myši a \fIgliv\fR provede přiblížení v této oblasti. .br .SH "SOUBORY" \fB~/.glivrc\fR \- Tento soubor určitě není povinný. .SH "AUTOR" Guillaume Chazarain .br See http://guichaz.free.fr/gliv gliv-1.9.7/man/cs/Makefile.am0000644000076400007640000000005311465576131013162 0ustar ggL=cs include $(srcdir)/../automake_man.am gliv-1.9.7/man/cs/Makefile.in0000644000076400007640000003443711465576131013210 0ustar gg# 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 = : build_triplet = @build@ host_triplet = @host@ DIST_COMMON = $(srcdir)/../automake_man.am $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in subdir = man/cs 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 = $(SHELL) $(top_srcdir)/mkinstalldirs 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' am__installdirs = "$(DESTDIR)$(man1dir)" NROFF = nroff MANS = $(man1_MANS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CFLAG_VISIBILITY = @CFLAG_VISIBILITY@ 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@ GENCAT = @GENCAT@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ GTKGLEXT_CFLAGS = @GTKGLEXT_CFLAGS@ GTKGLEXT_LIBS = @GTKGLEXT_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ HAVE_WPRINTF = @HAVE_WPRINTF@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_DEFAULT_VERBOSITY = @INTL_DEFAULT_VERBOSITY@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBMULTITHREAD = @LIBMULTITHREAD@ LIBOBJS = @LIBOBJS@ LIBPTH = @LIBPTH@ LIBPTH_PREFIX = @LIBPTH_PREFIX@ LIBS = @LIBS@ LIBTHREAD = @LIBTHREAD@ LTLIBC = @LTLIBC@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBMULTITHREAD = @LTLIBMULTITHREAD@ LTLIBOBJS = @LTLIBOBJS@ LTLIBPTH = @LTLIBPTH@ LTLIBTHREAD = @LTLIBTHREAD@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ 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@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WINDRES = @WINDRES@ WOE32 = @WOE32@ WOE32DLL = @WOE32DLL@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ 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 = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ 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@ 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@ L = cs man1_MANS = gliv.1 EXTRA_DIST = $(man1_MANS) gliv.1.end gliv.1.start man1dir = $(mandir)/$(L)/man1 all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(srcdir)/../automake_man.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 man/cs/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign man/cs/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): 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) all-local installdirs: for dir in "$(DESTDIR)$(man1dir)"; 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-man 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-man uninstall-man: uninstall-man1 .MAKE: install-am install-strip .PHONY: all all-am all-local 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-dvi install-dvi-am install-exec install-exec-am \ install-html install-html-am install-info install-info-am \ install-man install-man1 install-pdf install-pdf-am 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-man uninstall-man1 all-local: $(man1_MANS) $(srcdir)/gliv.1: $(srcdir)/gliv.1.start $(srcdir)/gliv.1.end $(top_srcdir)/README (echo '.\" This file is auto-generated from gliv.1.start'; \ echo '.\" gliv.1.end and the translation of the README block'; \ cat $(srcdir)/gliv.1.start; \ (cd $(srcdir) && $(top_srcdir)/tools/translate_man.sh $(L)); \ cat $(srcdir)/gliv.1.end) > $@ install-man1: $(man1_MANS) @$(NORMAL_INSTALL) test -z "$(man1dir)" || $(mkdir_p) "$(DESTDIR)$(man1dir)" @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ for i in $$l2; do \ case "$$i" in \ *.1*) list="$$list $$i" ;; \ esac; \ done; \ for i in $$list; do \ if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ else file=$$i; fi; \ ext=`echo $$i | sed -e 's/^.*\\.//'`; \ case "$$ext" in \ 1*) ;; \ *) ext='1' ;; \ esac; \ inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ inst=`echo $$inst | sed -e 's/^.*\///'`; \ inst=`echo $$inst | sed '$(transform)'`.$$ext; \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \ done uninstall-man1: @$(NORMAL_UNINSTALL) @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ for i in $$l2; do \ case "$$i" in \ *.1*) list="$$list $$i" ;; \ esac; \ done; \ for i in $$list; do \ ext=`echo $$i | sed -e 's/^.*\\.//'`; \ case "$$ext" in \ 1*) ;; \ *) ext='1' ;; \ esac; \ inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ inst=`echo $$inst | sed -e 's/^.*\///'`; \ inst=`echo $$inst | sed '$(transform)'`.$$ext; \ echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \ rm -f "$(DESTDIR)$(man1dir)/$$inst"; \ done # 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: gliv-1.9.7/man/cs/gliv.1.start0000644000076400007640000001103711465576131013311 0ustar gg.TH "gliv" "1" "1.9" "Guillaume Chazarain" "Prohlížeč obrázků" .SH "JMÉNO" gliv \- OpenGL prohlížeč obrázků .SH "POUŽITÍ" \fBgliv\fR [OPTIONS]... [FILES]... .SH "POPIS" \fIgliv\fR používá gdk\-pixbuf pro načítání obrázků a OpenGL pro jejich vykreslování. Umožňuje provádět některé pohyby, rotace, zvětšování a prezentaci obrázků. .SH "VOLBY" Volby jsou nejprve nastaveny na jejich implicitní hodnoty, "off" pro přepínače, potom jsou přečteny buď z ~/.glivrc nebo /etc/glivrc nebo z konfiguračního souboru specifikovaného na příkazové řádce a nakonec jsou čteny volby z příkazové řádky. .br Vynechání argumentu pro volbu, která jako parametr bere "on|off" (přepínač) je stejné, jako nastavení na "on", tedy \-\-foo je stejné jako \-\-foo=on pokud je foo on|off přepínačem. .TP \fB\-h, \-\-help\fR Vytisknout nápovědu a ukončit program. .TP \fB\-V, \-\-version\fR Vytisknout verzi a ukončit program. .TP \fB\-a, \-\-add\-all[=on|off]\fR Přidat všechny soubory adresáře. Pokud otevřete s touto volbou soubor na příkazové řádce nebo pomocí otevíracího dialogu, všechny ostatní soubory v adresáři jsou přidány také. .TP \fB\-R, \-\-recursive[=on|off]\fR Rekurzivní průchod adresáři. Pokud bude \fIgliv\fR načítat adresář, načte také všechny obrázky ze všech jeho podadresářů. .TP \fB\-S, \-\-sort[=on|off]\fR Zobrazit obrázky setříděné. Obrázky budou před zahájením prezentace setřízeny. .TP \fB\-s, \-\-shuffle[=on|off]\fR Zobrazit obrázky v náhodném pořadí. Seznam obrázků bude před zahájením prezentace zamíchán. .TP \fB\-F, \-\-force\-load[=on|off]\fR Pokusit se načíst každý soubor. Při načítání souboru je kód pro načtení obrázku vybrán dle přípony kvůli optimalizaci času načítání. Pokud je přípona neznámá, soubor je ignorován, s touto volbou se bude \fIgliv\fR vždy snažit načíst takový soubor. .TP \fB\-C, \-\-client[=on|off]\fR Připojit se k běžící instanci programu \fIgliv\fR a připojit obrázky do seznamu obrázků. S touto volbou \fIgliv\fR otevře soubory předané jako argumenty v okně serverové instance programu \fIgliv\fR. Je též možné použít volbu \-0. Použitý \fIgliv\fR server je poslední spuštěný \fIgliv\fR nebo server nastavený v menu Volby. .TP \fB\-c, \-\-client-clear[=on|off]\fR Připojit se k běžící instanci programu \fIgliv\fR a nahradit seznam obrázků. Tato volba je podobná jako volba \-\-client, ale seznam předaný klientem nahradí seznam na serveru namísto jeho rozšíření. .TP \fB\-e, \-\-build\-menus[=on|off]\fR Nevytvářet menu obrázků při startu programu. Vypnutí generování obrázkových menu při spouštění programu představuje značné zrychlení, zejména v případě mnoha souborů předaných na příkazovém řádku. .TP \fB\-g, \-\-glivrc[=FILE]\fR Použít tento konfigurační soubor, nebo žádný. Specifikujte, pokud chcete zamezit načítání rc souboru. Pokud použijete jako argument jméno souboru, bude tento soubor použit jako konfigurační soubor. .TP \fB\-w, \-\-slide\-show[=on|off]\fR Zahájit prezentaci obrázků okamžitě. Pokud použijete tuto volbu, nebudete muset startovat prezentaci ručně výběrem položky z menu. .TP \fB\-0, \-\-null[=on|off]\fR Číst názvy souborů oddělené znakem null. Tato volba může být použita s příkazy jako "find \-print0" nebo "tr '\en' '\e0'", pokud máte příliš dlouhý seznam názvů souborů, které chcete předat programu \fIgliv\fR. Narozdíl od xargs(1) toto umožňuje neomezený počet názvů souborů. .TP \fB\-o, \-\-collection[=FILE]\fR Vypsat kolekci. S touto volbou \fIgliv\fR vytvoří kolekci z načtených souborů a vypíše ji na standardní výstup nebo do specifikovaného souboru. .TP \fB\-G, \-\-geometry=GEOMETRY\fR Počáteční geometrie okna. Tato volba může být použita pro specifikaci polohy a rozměrů okna programu \fIgliv\fR. Volba očekává argument ve formátu XParseGeometry(3X11) jako například: 640x480+20\-30. .SH "KOLEKCE" Od verze 1.8 podporuje \fIgliv\fR souborový formát nazvaný jako "GLiv kolekce". Obsahuje seznam obrázků a související náhledy. Díky tomu je možné při načítání kolekce obrázků přebudovat obrázková menu mnohem rychleji, protože není nutné znovu vytvářet náhledy. .br \fIgliv\fR také podporuje transparentní dekompresi, takže kolekce mohou být zkomprimovány pomocí bzip2, gzip nebo compress(1) za podmínky, že máte nainstalován příslušný dekomprimační program. .SH "OVLÁDÁNÍ" gliv-1.9.7/man/cs/gliv.1.end0000644000076400007640000000023711465576131012722 0ustar gg.SH "SOUBORY" \fB~/.glivrc\fR \- Tento soubor určitě není povinný. .SH "AUTOR" Guillaume Chazarain .br See http://guichaz.free.fr/gliv gliv-1.9.7/man/automake_man.am0000644000076400007640000000367111465576131013512 0ustar ggman1_MANS = gliv.1 EXTRA_DIST = $(man1_MANS) gliv.1.end gliv.1.start man1dir = $(mandir)/$(L)/man1 all-local: $(man1_MANS) $(srcdir)/gliv.1: $(srcdir)/gliv.1.start $(srcdir)/gliv.1.end $(top_srcdir)/README (echo '.\" This file is auto-generated from gliv.1.start'; \ echo '.\" gliv.1.end and the translation of the README block'; \ cat $(srcdir)/gliv.1.start; \ (cd $(srcdir) && $(top_srcdir)/tools/translate_man.sh $(L)); \ cat $(srcdir)/gliv.1.end) > $@ install-man1: $(man1_MANS) @$(NORMAL_INSTALL) test -z "$(man1dir)" || $(mkdir_p) "$(DESTDIR)$(man1dir)" @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ for i in $$l2; do \ case "$$i" in \ *.1*) list="$$list $$i" ;; \ esac; \ done; \ for i in $$list; do \ if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ else file=$$i; fi; \ ext=`echo $$i | sed -e 's/^.*\\.//'`; \ case "$$ext" in \ 1*) ;; \ *) ext='1' ;; \ esac; \ inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ inst=`echo $$inst | sed -e 's/^.*\///'`; \ inst=`echo $$inst | sed '$(transform)'`.$$ext; \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \ done uninstall-man1: @$(NORMAL_UNINSTALL) @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ for i in $$l2; do \ case "$$i" in \ *.1*) list="$$list $$i" ;; \ esac; \ done; \ for i in $$list; do \ ext=`echo $$i | sed -e 's/^.*\\.//'`; \ case "$$ext" in \ 1*) ;; \ *) ext='1' ;; \ esac; \ inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ inst=`echo $$inst | sed -e 's/^.*\///'`; \ inst=`echo $$inst | sed '$(transform)'`.$$ext; \ echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \ rm -f "$(DESTDIR)$(man1dir)/$$inst"; \ done gliv-1.9.7/man/ru/0000755000076400007640000000000011465576131011151 5ustar gggliv-1.9.7/man/ru/gliv.10000644000076400007640000002224311465576131012177 0ustar gg.\" This file is auto-generated from gliv.1.start .\" gliv.1.end and the translation of the README block .TH "gliv" "1" "1.9" "Guillaume Chazarain" "Image viewer" .SH "" gliv \- Программа просмотра изображений с поддержкой OpenGL .SH "" \fBgliv\fR [OPTIONS]... [FILES]... .SH "" \fIgliv\fR использует gdk\-pixbuf для загрузки изображений и OpenGL для отображения их на экране. Во время просмотра можно прокручивать, вращать и увеличивать/уменьшать изображения, а так же осуществлять просмотр в режиме слайд\-шоу. .SH "" После запуска программы все параметры устанавливаются в значения по умолчанию (значение "off" для флагов), затем считывается ~/.glivrc или /etc/glivrc или файл конфигураций, указанный в командной строке, и, наконец, параметры командной строки. .br Для опций, которые могут принимать значения "on|off" аргумент можно опускать, то есть \-\-foo аналогична \-\-foo=on. .TP \fB\-h, \-\-help\fR Вывести справку и заверщить работу. .TP \fB\-V, \-\-version\fR Вывести версию программы и завершить работу. .TP \fB\-a, \-\-add\-all[=on|off]\fR Добавить все файлы в каталоге. Если указан этот флаг, то при указании одного файла в командной строке будут загружены все файлы в каталоге. .TP \fB\-R, \-\-recursive[=on|off]\fR Рекурсивно просматривать каталоги. Если Вы укажите каталог в командной строке, \fIgliv\fR будет просматривать все изображения из этого каталога и всех его подкаталогов. .TP \fB\-S, \-\-sort[=on|off]\fR Показывать изображения в отсортированном порядке. Перед началом слайд\-шоу список изображений будет отсортирован. .TP \fB\-s, \-\-shuffle[=on|off]\fR Показывать изображения в произвольном порядке. Перед началом слайд\-шоу список изображений перемешивается. .TP \fB\-F, \-\-force\-load[=on|off]\fR Пытаться загрузить все файлы. При загрузке изображений программа выбирает способ загрузки в соответствии с расширением файла для ускорения работы. Если расширение неизвестно, файл игнорируется. Данный параметр заставляет \fIgliv\fR всегда пытаться загрузить изображение. .TP \fB\-C, \-\-client[=on|off]\fR Соедениться с уже запущенным \fIgliv\fR\-сервером. С этой опцией \fIgliv\fR будет открывать файлы, переданные в аргументах \fIgliv\fR\-сервера. В этом режиме доступны только опции сортировки, перемешивания и рекурсивной загрузки каталогов. Кроме того возможно использование опции \-0. \fIgliv\fR\-сервер это последняя запущенная копия \fIgliv\fR или копия, в которой режим сервера выбран в меню Параметры. .TP \fB\-c, \-\-client-clear[=on|off]\fR Connect to a running \fIgliv\fR, replacing the list. This is like the \-\-client option except that the specified list on the client will replace the list on the server instead of being appended to. .TP \fB\-e, \-\-build\-menus[=on|off]\fR Не создавать меню изображений при загрузке программы. Отказ от создания меню ускоряет процесс запуска програмы, особенно если в командной строке указано много файлов. .TP \fB\-g, \-\-glivrc[=FILE]\fR Укажите этот параметр чтобы отказаться от загрузки файла настроек ~/.glivrc. Если в параметре указано имя файла, этот файл будет использоваться как конфигурационный. .TP \fB\-w, \-\-slide\-show[=on|off]\fR Начинать слайд\-шоу сразу после загрузки программы. С этим параметром Вам не надо запускать слайд\-шоу из меню вручную. .TP \fB\-0, \-\-null[=on|off]\fR Читать имена файлов, разделенные нулевым символом (null\-terminated filenames). Вы можете использовать эту опцию совместно с "find \-print0" или с "tr '\en' '\e0'" когда имеется очень длинный список имен файлов, который надо передать в \fIgliv\fR. В отличии от использования xargs(1) это позволяет передать неограниченное число имен файлов. .TP \fB\-o, \-\-collection[=FILE]\fR Записать коллекцию. При использовании этого параметра \fIgliv\fR создает коллекцию из загруженных файлов и записывает ее в поток стандартный вывода или в указанный файл. .TP \fB\-G, \-\-geometry=GEOMETRY\fR Initial window geometry. This option can be used to specify the position and dimension of the \fIgliv\fR window. It expects a geometry argument in the XParseGeometry(3X11) format like: 640x480+20\-30 for example. .SH "КОЛЛЕКЦИИ" ESC, q : Выход .br f : На весь экран/В окне .br +/=/- : Увеличить/исходный/уменьшить .br n/p : Следующее/предыдущее изображение .br Пауза : запустить/прервать слайдшоу .br l : Уменьшить изображение до размеров окна .br M : Увеличить изображение до размеров окна .br m : Изменить изображение до размеров окна .br r : Восстановить позицию и размер .br b : Показать/скрыть строку меню .br i : Показать/скрыть строку информации .br s : Показать/скрыть полосы прокрутки .br a : Показать/скрыть информацию об альфа-канале .br h : Показать/скрыть окно справки .br w : Скрыть/показать плавающие окна .br o : Показать диалог открытия файлов .br g : Показать загрузчик изображений .br t : Показать диалог настроек .br d : Скрыть курсор .br u : Отменить .br y : Повторить .br c : Очистить историю .br Delete : Удалить текущий файл .br C-up : Вращение на +90 градусов .br C-down : Вращение на -90 градусов .br C-left : Вращение на +0.1 градуса .br C-right : Вращение на -0.1 градуса .br z : Отразить по горизонтали .br e : Отразить по вертикали .br Первая кнопка мышки и клавиши-стрелки двигают изображение. При нажатой клавише Control они вращают изображение относительно центра. .br The mouse wheel zooms the image, and when you hold its button pressed at the same time it switches to the neighbouring image. .br Изменить размеры изображения можно двигая мышкой вертикально одновременно с нажатыми клавишей Shift и первой кнопкой мышки. .br Клавиши Space (пробел) и Backspace (возврат курсора) действуют аналогично клавишам n и p. .br Выделите прямоугольник третьей (правой) кнопкой мышки и Gliv увеличит отмеченную область. .br .SH "ФАЙЛ" \fB~/.glivrc\fR \- Файл, содержащий настройки \fIgliv\fR. Не является обязательным. .SH "АВТОР" Guillaume Chazarain .br Домашнаяя страница: http://guichaz.free.fr/gliv gliv-1.9.7/man/ru/Makefile.am0000644000076400007640000000005311465576131013203 0ustar ggL=ru include $(srcdir)/../automake_man.am gliv-1.9.7/man/ru/gliv_ru_KOI8-R.10000644000076400007640000001406611465576131013702 0ustar gg.\" This file is auto-generated from gliv.1.start .\" .\" gliv.1.end and the translation of the README block .\" .\" .TH "gliv" "1" "1.9" "Guillaume Chazarain" "Image viewer" .SH "" gliv \- OpenGL .SH "" \fBgliv\fR [OPTIONS]... [FILES]... .SH "" \fIgliv\fR gdk\-pixbuf OpenGL . , / , \-. .SH "" ( "off" ), ~/.glivrc /etc/glivrc , , , , . .br , "on|off" , \-\-foo \-\-foo=on. .TP \fB\-h, \-\-help\fR . .TP \fB\-V, \-\-version\fR . .TP \fB\-a, \-\-add\-all[=on|off]\fR . , . .TP \fB\-R, \-\-recursive[=on|off]\fR . , \fIgliv\fR . .TP \fB\-S, \-\-sort[=on|off]\fR . \- . .TP \fB\-s, \-\-shuffle[=on|off]\fR . \- . .TP \fB\-F, \-\-force\-load[=on|off]\fR . . , . \fIgliv\fR . .TP \fB\-C, \-\-client[=on|off]\fR \fIgliv\fR\-. \fIgliv\fR , \fIgliv\fR\-. , . \-0. \fIgliv\fR\- \fIgliv\fR , . .TP \fB\-e, \-\-build\-menus[=on|off]\fR . , . .TP \fB\-g, \-\-glivrc[=FILE]\fR ~/.glivrc. , . .TP \fB\-w, \-\-slide\-show[=on|off]\fR \- . \- . .TP \fB\-0, \-\-null[=on|off]\fR , (null\-terminated filenames). "find \-print0" "tr '\en' '\e0'" , \fIgliv\fR. xargs(1) . .TP \fB\-o, \-\-collection[=FILE]\fR . \fIgliv\fR . .SH "" 1.8, \fIgliv\fR , " GLiv". . . .br \fIgliv\fR "" . , bzip2, gzip compress(1) ( , ). .SH " " ESC, q : .br f : / .br +/=/\- : // .br n/p : / .br l : .br M : .br m : .br r : .br b : / .br i : / .br s : / .br a : / \- .br h : / .br o : .br t : .br d : .br u : .br y : .br c : .br x : .br C\-up : +90 .br C\-down : \-90 .br C\-left : +0.1 .br C\-right : \-0.1 .br z : .br e : .br \- . Control . .br ( ) , . .br Shift . .br Space () Backspace ( ) n p. .br () Gliv . .br .SH "" \fB~/.glivrc\fR \- , \fIgliv\fR. . .SH "" Guillaume Chazarain .br : http://guichaz.free.fr/gliv gliv-1.9.7/man/ru/Makefile.in0000644000076400007640000003443711465576131013231 0ustar gg# 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 = : build_triplet = @build@ host_triplet = @host@ DIST_COMMON = $(srcdir)/../automake_man.am $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in subdir = man/ru 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 = $(SHELL) $(top_srcdir)/mkinstalldirs 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' am__installdirs = "$(DESTDIR)$(man1dir)" NROFF = nroff MANS = $(man1_MANS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CFLAG_VISIBILITY = @CFLAG_VISIBILITY@ 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@ GENCAT = @GENCAT@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ GTKGLEXT_CFLAGS = @GTKGLEXT_CFLAGS@ GTKGLEXT_LIBS = @GTKGLEXT_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ HAVE_WPRINTF = @HAVE_WPRINTF@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_DEFAULT_VERBOSITY = @INTL_DEFAULT_VERBOSITY@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBMULTITHREAD = @LIBMULTITHREAD@ LIBOBJS = @LIBOBJS@ LIBPTH = @LIBPTH@ LIBPTH_PREFIX = @LIBPTH_PREFIX@ LIBS = @LIBS@ LIBTHREAD = @LIBTHREAD@ LTLIBC = @LTLIBC@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBMULTITHREAD = @LTLIBMULTITHREAD@ LTLIBOBJS = @LTLIBOBJS@ LTLIBPTH = @LTLIBPTH@ LTLIBTHREAD = @LTLIBTHREAD@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ 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@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WINDRES = @WINDRES@ WOE32 = @WOE32@ WOE32DLL = @WOE32DLL@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ 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 = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ 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@ 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@ L = ru man1_MANS = gliv.1 EXTRA_DIST = $(man1_MANS) gliv.1.end gliv.1.start man1dir = $(mandir)/$(L)/man1 all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(srcdir)/../automake_man.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 man/ru/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign man/ru/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): 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) all-local installdirs: for dir in "$(DESTDIR)$(man1dir)"; 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-man 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-man uninstall-man: uninstall-man1 .MAKE: install-am install-strip .PHONY: all all-am all-local 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-dvi install-dvi-am install-exec install-exec-am \ install-html install-html-am install-info install-info-am \ install-man install-man1 install-pdf install-pdf-am 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-man uninstall-man1 all-local: $(man1_MANS) $(srcdir)/gliv.1: $(srcdir)/gliv.1.start $(srcdir)/gliv.1.end $(top_srcdir)/README (echo '.\" This file is auto-generated from gliv.1.start'; \ echo '.\" gliv.1.end and the translation of the README block'; \ cat $(srcdir)/gliv.1.start; \ (cd $(srcdir) && $(top_srcdir)/tools/translate_man.sh $(L)); \ cat $(srcdir)/gliv.1.end) > $@ install-man1: $(man1_MANS) @$(NORMAL_INSTALL) test -z "$(man1dir)" || $(mkdir_p) "$(DESTDIR)$(man1dir)" @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ for i in $$l2; do \ case "$$i" in \ *.1*) list="$$list $$i" ;; \ esac; \ done; \ for i in $$list; do \ if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ else file=$$i; fi; \ ext=`echo $$i | sed -e 's/^.*\\.//'`; \ case "$$ext" in \ 1*) ;; \ *) ext='1' ;; \ esac; \ inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ inst=`echo $$inst | sed -e 's/^.*\///'`; \ inst=`echo $$inst | sed '$(transform)'`.$$ext; \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \ done uninstall-man1: @$(NORMAL_UNINSTALL) @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ for i in $$l2; do \ case "$$i" in \ *.1*) list="$$list $$i" ;; \ esac; \ done; \ for i in $$list; do \ ext=`echo $$i | sed -e 's/^.*\\.//'`; \ case "$$ext" in \ 1*) ;; \ *) ext='1' ;; \ esac; \ inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ inst=`echo $$inst | sed -e 's/^.*\///'`; \ inst=`echo $$inst | sed '$(transform)'`.$$ext; \ echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \ rm -f "$(DESTDIR)$(man1dir)/$$inst"; \ done # 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: gliv-1.9.7/man/ru/gliv.1.start0000644000076400007640000001412011465576131013326 0ustar gg.TH "gliv" "1" "1.9" "Guillaume Chazarain" "Image viewer" .SH "" gliv \- Программа просмотра изображений с поддержкой OpenGL .SH "" \fBgliv\fR [OPTIONS]... [FILES]... .SH "" \fIgliv\fR использует gdk\-pixbuf для загрузки изображений и OpenGL для отображения их на экране. Во время просмотра можно прокручивать, вращать и увеличивать/уменьшать изображения, а так же осуществлять просмотр в режиме слайд\-шоу. .SH "" После запуска программы все параметры устанавливаются в значения по умолчанию (значение "off" для флагов), затем считывается ~/.glivrc или /etc/glivrc или файл конфигураций, указанный в командной строке, и, наконец, параметры командной строки. .br Для опций, которые могут принимать значения "on|off" аргумент можно опускать, то есть \-\-foo аналогична \-\-foo=on. .TP \fB\-h, \-\-help\fR Вывести справку и заверщить работу. .TP \fB\-V, \-\-version\fR Вывести версию программы и завершить работу. .TP \fB\-a, \-\-add\-all[=on|off]\fR Добавить все файлы в каталоге. Если указан этот флаг, то при указании одного файла в командной строке будут загружены все файлы в каталоге. .TP \fB\-R, \-\-recursive[=on|off]\fR Рекурсивно просматривать каталоги. Если Вы укажите каталог в командной строке, \fIgliv\fR будет просматривать все изображения из этого каталога и всех его подкаталогов. .TP \fB\-S, \-\-sort[=on|off]\fR Показывать изображения в отсортированном порядке. Перед началом слайд\-шоу список изображений будет отсортирован. .TP \fB\-s, \-\-shuffle[=on|off]\fR Показывать изображения в произвольном порядке. Перед началом слайд\-шоу список изображений перемешивается. .TP \fB\-F, \-\-force\-load[=on|off]\fR Пытаться загрузить все файлы. При загрузке изображений программа выбирает способ загрузки в соответствии с расширением файла для ускорения работы. Если расширение неизвестно, файл игнорируется. Данный параметр заставляет \fIgliv\fR всегда пытаться загрузить изображение. .TP \fB\-C, \-\-client[=on|off]\fR Соедениться с уже запущенным \fIgliv\fR\-сервером. С этой опцией \fIgliv\fR будет открывать файлы, переданные в аргументах \fIgliv\fR\-сервера. В этом режиме доступны только опции сортировки, перемешивания и рекурсивной загрузки каталогов. Кроме того возможно использование опции \-0. \fIgliv\fR\-сервер это последняя запущенная копия \fIgliv\fR или копия, в которой режим сервера выбран в меню Параметры. .TP \fB\-c, \-\-client-clear[=on|off]\fR Connect to a running \fIgliv\fR, replacing the list. This is like the \-\-client option except that the specified list on the client will replace the list on the server instead of being appended to. .TP \fB\-e, \-\-build\-menus[=on|off]\fR Не создавать меню изображений при загрузке программы. Отказ от создания меню ускоряет процесс запуска програмы, особенно если в командной строке указано много файлов. .TP \fB\-g, \-\-glivrc[=FILE]\fR Укажите этот параметр чтобы отказаться от загрузки файла настроек ~/.glivrc. Если в параметре указано имя файла, этот файл будет использоваться как конфигурационный. .TP \fB\-w, \-\-slide\-show[=on|off]\fR Начинать слайд\-шоу сразу после загрузки программы. С этим параметром Вам не надо запускать слайд\-шоу из меню вручную. .TP \fB\-0, \-\-null[=on|off]\fR Читать имена файлов, разделенные нулевым символом (null\-terminated filenames). Вы можете использовать эту опцию совместно с "find \-print0" или с "tr '\en' '\e0'" когда имеется очень длинный список имен файлов, который надо передать в \fIgliv\fR. В отличии от использования xargs(1) это позволяет передать неограниченное число имен файлов. .TP \fB\-o, \-\-collection[=FILE]\fR Записать коллекцию. При использовании этого параметра \fIgliv\fR создает коллекцию из загруженных файлов и записывает ее в поток стандартный вывода или в указанный файл. .TP \fB\-G, \-\-geometry=GEOMETRY\fR Initial window geometry. This option can be used to specify the position and dimension of the \fIgliv\fR window. It expects a geometry argument in the XParseGeometry(3X11) format like: 640x480+20\-30 for example. .SH "КОЛЛЕКЦИИ" gliv-1.9.7/man/ru/gliv.1.end0000644000076400007640000000041711465576131012743 0ustar gg.SH "ФАЙЛ" \fB~/.glivrc\fR \- Файл, содержащий настройки \fIgliv\fR. Не является обязательным. .SH "АВТОР" Guillaume Chazarain .br Домашнаяя страница: http://guichaz.free.fr/gliv gliv-1.9.7/man/Makefile.am0000644000076400007640000000003111465576131012551 0ustar ggSUBDIRS = cs de en fr ru gliv-1.9.7/man/fr/0000755000076400007640000000000011465576131011132 5ustar gggliv-1.9.7/man/fr/gliv.10000644000076400007640000001476111465576131012166 0ustar gg.\" This file is auto-generated from gliv.1.start .\" gliv.1.end and the translation of the README block .TH "gliv" "1" "1.9" "Guillaume Chazarain" "Visionneur d'images" .SH "NOM" gliv \- Un visionneur d'images utilisant OpenGL .SH "SYNOPSIS" \fBgliv\fR [OPTIONS]... [FICHIERS]... .SH "DESCRIPTION" \fIgliv\fR utilise gdk\-pixbuf pour charger les images et OpenGL pour les afficher. Il permet de faire des déplacements, des rotations, zoomer et le diaporama. .SH "OPTIONS" Les options sont initialement positionnées à leur valeur par défaut, "off" pour les drapeaux, puis lues soit dans ~/.glivrc soit /etc/glivrc soit un fichier de configuration passé en option, et finalement lues à partir de la ligne de commande. .br Ne pas mettre l'argument pour une option attendant "on|off" est équivalent à le positionner à "on", donc \-\-truc est identique à \-\-truc=on si truc est un paramètre on|off (drapeau). .TP \fB\-h, \-\-help\fR Affiche l'aide et quitte. .TP \fB\-V, \-\-version\fR Affiche le numéro de version et quitte. .TP \fB\-a, \-\-add\-all[=on|off]\fR Ajouter tous les fichiers du répertoire. Avec cette option, lorsque vous ouvrez un fichier sur la ligne de commande ou avec la boîte de dialogue Ouvrir, tous les autres fichiers du dossier sont ajoutés aussi. .TP \fB\-R, \-\-recursive[=on|off]\fR Parcours récursif des dossiers. Si \fIgliv\fR essaie de charger un dossier, il chargera aussi chaque image contenue dans tous les sous\-dossiers. .TP \fB\-S, \-\-sort[=on|off]\fR Trier la liste des images. Les images seront triées avant le diaporama. .TP \fB\-s, \-\-shuffle[=on|off]\fR Mélanger la liste des images. Les images seront mélangées avant le diaporama. .TP \fB\-F, \-\-force\-load[=on|off]\fR Essayer de charger tous les fichiers. Pendant le chargement d'un fichier, le chargeur est choisi selon l'extension du nom de fichier de façon à accélérer les temps de chargement. Si l'extension est inconnue, le fichier est ignoré, avec cette option \fIgliv\fR essaiera toujours d'ouvrir le fichier. .TP \fB\-C, \-\-client[=on|off]\fR Se connecter à un \fIgliv\fR déjà ouvert, ajouter à la liste. Avec cette option, \fIgliv\fR ouvrira les fichiers passés en paramètre dans la fenêtre du serveur \fIgliv\fR. Cela marche aussi avec l'option \-0. Le serveur \fIgliv\fR est la dernière instance lancée ou celle qui a été choisie en utilisant le menu Options. .TP \fB\-c, \-\-client-clear[=on|off]\fR Se connecter à un \fIgliv\fR déjà ouvert, remplacer la liste. Cette option est semblable à \-\-client à part que la liste spécifiée au client remplace celle sur le serveur, au lieu d'être ajoutée. .TP \fB\-e, \-\-build\-menus[=on|off]\fR Désactiver la construction des menus d'images au démarrage. Désactiver les menus d'images au démarrage le rend plus rapide, surtout quand il y a beaucoup de fichiers sur la ligne de commande. .TP \fB\-g, \-\-glivrc[=FILE]\fR Utiliser ce fichier de configuration ou aucun. Utilisez cette option pour désactiver la lecture d'un fichier de configuration. Avec un fichier en argument il sera utilisé comme fichier de configuration. .TP \fB\-w, \-\-slide\-show[=on|off]\fR Démarrer avec le diaporama. De cette manière vous n'aurez pas à le démarrer manuellement avec le menu. .TP \fB\-0, \-\-null[=on|off]\fR Lire des noms de fichiers séparés par des zéros. Cette option peut être utilisée avec "find \-print0" ou avec "tr '\en' '\e0'" quand la liste des noms de fichiers est très longue. Contrairement à xargs(1) le nombre de fichiers autorisé est illimité. .TP \fB\-o, \-\-collection[=FILE]\fR Créer une collection. Avec cette option, \fIgliv\fR créera une collection à partir des fichiers chargés et l'enverra sur la sortie standard ou dans le fichier passé en paramètre. .TP \fB\-G, \-\-geometry=GEOMETRY\fR Géométrie par défaut de la fenêtre. Cette option permet de spécifier la position et les dimensions de la fenêtre de \fIgliv\fR. On attend une geometrie en argument au format de XParseGeometry(3X11) comme : 640x480+20\-30 par exemple. .SH "COLLECTIONS" Depuis la version 1.8, \fIgliv\fR utilise un format de fichier appelé "Collection GLiv". Il contient une liste d'images ainsi que leurs vignettes, de cette manière, quand vous chargez une collection la reconstruction des menus d'images est plus rapide car elle n'a pas à créer les vignettes. .br \fIgliv\fR permet aussi la décompression de manière transparente, les collections peuvent donc être compressées en bzip2, gzip ou compress(1) tant que vous avez le décompresseur approprié. .SH "CONTRÔLES" ESC, q : Quitter .br f : Plein écran/fenêtre .br +/=/- : Agrandir plus/plus/moins .br n/p : Image suivante/précédente .br Pause : Démarrer /Arrêter le diaporama .br l : Réduire l'image à la taille de la fenêtre .br M : Agrandir l'image à la taille de la fenêtre .br m : Remplissage de la fenêtre par l'image .br r : Réinitialiser la position et la taille de l'image .br b : Basculer l'affichage de la barre de menus .br i : Basculer l'affichage de la barre d'informations .br s : Basculer l'affichage des barres de défilement .br a : Basculer l'affichage du quadrillage alpha .br h : Basculer l'affichage de l'aide .br w : Basculer l'affichage des fenêtres flottantes .br o : Ouvrir des fichiers .br g : Afficher le sélecteur d'images .br t : Afficher les options .br d : Cacher le curseur .br u : Annuler .br y : Refaire .br c : Effacer l'historique .br Suppr : Supprimer le fichier courant .br C-haut : Rotation de +90 degrés .br C-bas : Rotation de -90 degrés .br C-gauche : Rotation de +0.1 degré .br C-droite : Rotation de -0.1 degré .br z : Miroir horizontal .br e : Miroir vertical .br Le premier bouton de la souris et les touches fléchées servent à déplacer l'image sauf si la touche Contrôle est enfoncée. Auquel cas l'image subira une rotation autour du centre de la fenêtre. .br La roulette zoom sur l'image, et passe à l'image précédente/suivante quand le bouton est appuyé. .br Vous pouvez également zoomer en faisant glisser la souris verticalement en maintenant enfoncés la touche Majuscule et le premier bouton. .br Les touches Espace et d'effacement agissent comme n et p. .br Dessinez un rectangle avec le bouton trois pour l'agrandir. .br .SH "FICHIER" \fB~/.glivrc\fR \- Ce fichier n'est absolument pas obligatoire .SH "AUTEUR" Guillaume Chazarain .br Consultez http://guichaz.free.fr/gliv gliv-1.9.7/man/fr/Makefile.am0000644000076400007640000000005311465576131013164 0ustar ggL=fr include $(srcdir)/../automake_man.am gliv-1.9.7/man/fr/Makefile.in0000644000076400007640000003443711465576131013212 0ustar gg# 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 = : build_triplet = @build@ host_triplet = @host@ DIST_COMMON = $(srcdir)/../automake_man.am $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in subdir = man/fr 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 = $(SHELL) $(top_srcdir)/mkinstalldirs 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' am__installdirs = "$(DESTDIR)$(man1dir)" NROFF = nroff MANS = $(man1_MANS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CFLAG_VISIBILITY = @CFLAG_VISIBILITY@ 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@ GENCAT = @GENCAT@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ GTKGLEXT_CFLAGS = @GTKGLEXT_CFLAGS@ GTKGLEXT_LIBS = @GTKGLEXT_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ HAVE_WPRINTF = @HAVE_WPRINTF@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_DEFAULT_VERBOSITY = @INTL_DEFAULT_VERBOSITY@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBMULTITHREAD = @LIBMULTITHREAD@ LIBOBJS = @LIBOBJS@ LIBPTH = @LIBPTH@ LIBPTH_PREFIX = @LIBPTH_PREFIX@ LIBS = @LIBS@ LIBTHREAD = @LIBTHREAD@ LTLIBC = @LTLIBC@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBMULTITHREAD = @LTLIBMULTITHREAD@ LTLIBOBJS = @LTLIBOBJS@ LTLIBPTH = @LTLIBPTH@ LTLIBTHREAD = @LTLIBTHREAD@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ 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@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WINDRES = @WINDRES@ WOE32 = @WOE32@ WOE32DLL = @WOE32DLL@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ 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 = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ 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@ 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@ L = fr man1_MANS = gliv.1 EXTRA_DIST = $(man1_MANS) gliv.1.end gliv.1.start man1dir = $(mandir)/$(L)/man1 all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(srcdir)/../automake_man.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 man/fr/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign man/fr/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): 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) all-local installdirs: for dir in "$(DESTDIR)$(man1dir)"; 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-man 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-man uninstall-man: uninstall-man1 .MAKE: install-am install-strip .PHONY: all all-am all-local 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-dvi install-dvi-am install-exec install-exec-am \ install-html install-html-am install-info install-info-am \ install-man install-man1 install-pdf install-pdf-am 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-man uninstall-man1 all-local: $(man1_MANS) $(srcdir)/gliv.1: $(srcdir)/gliv.1.start $(srcdir)/gliv.1.end $(top_srcdir)/README (echo '.\" This file is auto-generated from gliv.1.start'; \ echo '.\" gliv.1.end and the translation of the README block'; \ cat $(srcdir)/gliv.1.start; \ (cd $(srcdir) && $(top_srcdir)/tools/translate_man.sh $(L)); \ cat $(srcdir)/gliv.1.end) > $@ install-man1: $(man1_MANS) @$(NORMAL_INSTALL) test -z "$(man1dir)" || $(mkdir_p) "$(DESTDIR)$(man1dir)" @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ for i in $$l2; do \ case "$$i" in \ *.1*) list="$$list $$i" ;; \ esac; \ done; \ for i in $$list; do \ if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ else file=$$i; fi; \ ext=`echo $$i | sed -e 's/^.*\\.//'`; \ case "$$ext" in \ 1*) ;; \ *) ext='1' ;; \ esac; \ inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ inst=`echo $$inst | sed -e 's/^.*\///'`; \ inst=`echo $$inst | sed '$(transform)'`.$$ext; \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \ done uninstall-man1: @$(NORMAL_UNINSTALL) @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ for i in $$l2; do \ case "$$i" in \ *.1*) list="$$list $$i" ;; \ esac; \ done; \ for i in $$list; do \ ext=`echo $$i | sed -e 's/^.*\\.//'`; \ case "$$ext" in \ 1*) ;; \ *) ext='1' ;; \ esac; \ inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ inst=`echo $$inst | sed -e 's/^.*\///'`; \ inst=`echo $$inst | sed '$(transform)'`.$$ext; \ echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \ rm -f "$(DESTDIR)$(man1dir)/$$inst"; \ done # 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: gliv-1.9.7/man/fr/gliv.1.start0000644000076400007640000001063111465576131013312 0ustar gg.TH "gliv" "1" "1.9" "Guillaume Chazarain" "Visionneur d'images" .SH "NOM" gliv \- Un visionneur d'images utilisant OpenGL .SH "SYNOPSIS" \fBgliv\fR [OPTIONS]... [FICHIERS]... .SH "DESCRIPTION" \fIgliv\fR utilise gdk\-pixbuf pour charger les images et OpenGL pour les afficher. Il permet de faire des déplacements, des rotations, zoomer et le diaporama. .SH "OPTIONS" Les options sont initialement positionnées à leur valeur par défaut, "off" pour les drapeaux, puis lues soit dans ~/.glivrc soit /etc/glivrc soit un fichier de configuration passé en option, et finalement lues à partir de la ligne de commande. .br Ne pas mettre l'argument pour une option attendant "on|off" est équivalent à le positionner à "on", donc \-\-truc est identique à \-\-truc=on si truc est un paramètre on|off (drapeau). .TP \fB\-h, \-\-help\fR Affiche l'aide et quitte. .TP \fB\-V, \-\-version\fR Affiche le numéro de version et quitte. .TP \fB\-a, \-\-add\-all[=on|off]\fR Ajouter tous les fichiers du répertoire. Avec cette option, lorsque vous ouvrez un fichier sur la ligne de commande ou avec la boîte de dialogue Ouvrir, tous les autres fichiers du dossier sont ajoutés aussi. .TP \fB\-R, \-\-recursive[=on|off]\fR Parcours récursif des dossiers. Si \fIgliv\fR essaie de charger un dossier, il chargera aussi chaque image contenue dans tous les sous\-dossiers. .TP \fB\-S, \-\-sort[=on|off]\fR Trier la liste des images. Les images seront triées avant le diaporama. .TP \fB\-s, \-\-shuffle[=on|off]\fR Mélanger la liste des images. Les images seront mélangées avant le diaporama. .TP \fB\-F, \-\-force\-load[=on|off]\fR Essayer de charger tous les fichiers. Pendant le chargement d'un fichier, le chargeur est choisi selon l'extension du nom de fichier de façon à accélérer les temps de chargement. Si l'extension est inconnue, le fichier est ignoré, avec cette option \fIgliv\fR essaiera toujours d'ouvrir le fichier. .TP \fB\-C, \-\-client[=on|off]\fR Se connecter à un \fIgliv\fR déjà ouvert, ajouter à la liste. Avec cette option, \fIgliv\fR ouvrira les fichiers passés en paramètre dans la fenêtre du serveur \fIgliv\fR. Cela marche aussi avec l'option \-0. Le serveur \fIgliv\fR est la dernière instance lancée ou celle qui a été choisie en utilisant le menu Options. .TP \fB\-c, \-\-client-clear[=on|off]\fR Se connecter à un \fIgliv\fR déjà ouvert, remplacer la liste. Cette option est semblable à \-\-client à part que la liste spécifiée au client remplace celle sur le serveur, au lieu d'être ajoutée. .TP \fB\-e, \-\-build\-menus[=on|off]\fR Désactiver la construction des menus d'images au démarrage. Désactiver les menus d'images au démarrage le rend plus rapide, surtout quand il y a beaucoup de fichiers sur la ligne de commande. .TP \fB\-g, \-\-glivrc[=FILE]\fR Utiliser ce fichier de configuration ou aucun. Utilisez cette option pour désactiver la lecture d'un fichier de configuration. Avec un fichier en argument il sera utilisé comme fichier de configuration. .TP \fB\-w, \-\-slide\-show[=on|off]\fR Démarrer avec le diaporama. De cette manière vous n'aurez pas à le démarrer manuellement avec le menu. .TP \fB\-0, \-\-null[=on|off]\fR Lire des noms de fichiers séparés par des zéros. Cette option peut être utilisée avec "find \-print0" ou avec "tr '\en' '\e0'" quand la liste des noms de fichiers est très longue. Contrairement à xargs(1) le nombre de fichiers autorisé est illimité. .TP \fB\-o, \-\-collection[=FILE]\fR Créer une collection. Avec cette option, \fIgliv\fR créera une collection à partir des fichiers chargés et l'enverra sur la sortie standard ou dans le fichier passé en paramètre. .TP \fB\-G, \-\-geometry=GEOMETRY\fR Géométrie par défaut de la fenêtre. Cette option permet de spécifier la position et les dimensions de la fenêtre de \fIgliv\fR. On attend une geometrie en argument au format de XParseGeometry(3X11) comme : 640x480+20\-30 par exemple. .SH "COLLECTIONS" Depuis la version 1.8, \fIgliv\fR utilise un format de fichier appelé "Collection GLiv". Il contient une liste d'images ainsi que leurs vignettes, de cette manière, quand vous chargez une collection la reconstruction des menus d'images est plus rapide car elle n'a pas à créer les vignettes. .br \fIgliv\fR permet aussi la décompression de manière transparente, les collections peuvent donc être compressées en bzip2, gzip ou compress(1) tant que vous avez le décompresseur approprié. .SH "CONTRÔLES" gliv-1.9.7/man/fr/gliv.1.end0000644000076400007640000000025411465576131012723 0ustar gg.SH "FICHIER" \fB~/.glivrc\fR \- Ce fichier n'est absolument pas obligatoire .SH "AUTEUR" Guillaume Chazarain .br Consultez http://guichaz.free.fr/gliv gliv-1.9.7/man/de/0000755000076400007640000000000011465576131011113 5ustar gggliv-1.9.7/man/de/gliv.10000644000076400007640000001510111465576131012134 0ustar gg.\" This file is auto-generated from gliv.1.start .\" gliv.1.end and the translation of the README block .\" .TH "gliv" "1" "1.9" "Guillaume Chazarain" "Image viewer" .SH "NAME" gliv \- Ein OpenGL Image Viewer .SH "SYNOPSIS" \fBgliv\fR [OPTIONS]... [FILES]... .SH "BESCHREIBUNG" \fIgliv\fR verwendet gdk\-pixbuf um Images zu laden, und OpenGL zur Darstellung. Gliv ermöglicht es, Images zu bewegen, rotieren, zoomen, und durchführen von Slide Shows. .SH "OPTIONS" Die Optionen sind zuerst auf ihre Defaultwerte eingestellt, "off" für Flags, werden dann entweder von ~/.glivrc oder /etc/glivrc oder einem Konfigurationsfile das über die Kommandozeile spezifiert wird, gelesen, oder falls vorhanden, von der Kommandozeile gelesen. .br Weglassen des Arguments für eine Option, die ein "on|off" Wertebereich hat, ist gleichbedeutend mit "on", also \-\-foo ist gleichbedeutend mit \-\-foo=on (wenn foo die Werte on|off annehmen kann). .TP \fB\-h, \-\-help\fR Anzeigen des Hilfetextes und Ende. .TP \fB\-V, \-\-version\fR Anzeige der Version und Ende. .TP \fB\-a, \-\-add\-all[=on|off]\fR Hinzufügen aller Files im momentanen Directory. Mit dieser Option werden bei Öffnen eines Files (entweder von der Kommandozeile oder mit dem "open" Dialog) alle anderen Files im Directory hinzugefügt. .TP \fB\-R, \-\-recursive[=on|off]\fR Rekursiv alle Unterverzeichnisse miteinbeziehen. Wenn \fIgliv\fR alle Images eines Verzeichnisses lädt, werden rekursiv auch alle Images aller Unterverzeichnisse geladen. .TP \fB\-S, \-\-sort[=on|off]\fR Images sortiert anzeigen. Die Images werden vor der Slideshow sortiert. .TP \fB\-s, \-\-shuffle[=on|off]\fR Images in zufälliger Reihenfolge anzeigen. Die Slideshow wird in zufälliger Reihenfolge durchgeführt. .TP \fB\-F, \-\-force\-load[=on|off]\fR Versuchen jedes File zu laden. Beim Laden eines Files wird anhand der Filenamenserweiterung (Extension, z.B . .jpg) entschieden, was für ein Lader verwendet wird. Bei unbekannter Extension wird ein File ignoriert, durch Angabe dieser Option versucht \fIgliv\fR jedes File zu laden. .TP \fB\-C, \-\-client[=on|off]\fR Verbindung zu einem bereits laufenden \fIgliv\fR herstellen. Durch Verwendung dieser Option öffnet die \fIgliv\fR Instanz im Serverfenster zusätzlich die Files die als Argumente auf der Kommandozeile übergeben werden. It can also be used with the \-0 option. Der \fIgliv\fR Server ist entweder die zuletzt gestartete \fIgliv\fR Instanz, oder diejenige die im "Options" Menü ausgewählt wurde. .TP \fB\-c, \-\-client-clear[=on|off]\fR Connect to a running \fIgliv\fR, replacing the list. This is like the \-\-client option except that the specified list on the client will replace the list on the server instead of being appended to. .TP \fB\-e, \-\-build\-menus[=on|off]\fR Unterdrücke das "Images" Menü beim Start. Dies beschleunigt den Start von \fIgliv\fR, vor allem mit vielen Files als Argument auf der Kommandozeile. .TP \fB\-g, \-\-glivrc[=FILE]\fR Verwende das angegebene File als Konfigurationsfile (oder keines). Dies unterdrückt die Abarbeitung vorhandener Konfigurationsfiles (~/.glivrc und /etc/glivrc). .TP \fB\-w, \-\-slide\-show[=on|off]\fR Slideshow sofort starten. Durch Angabe dieser Option ist ein manueller Start der Slideshow im Menü nicht erforderlich. .TP \fB\-0, \-\-null[=on|off]\fR Lese null\-terminierte Filenamen. Die kann zusammen mit "find \-print0" oder mit "tr '\en' '\e0'" verwendet werden, wenn eine sehr lange Liste von Filenamen an \fIgliv\fR übergeben werden soll. Im Gegensatz zu xargs(1) ist so eine unendliche Anzahl von Filenamen möglich. .TP \fB\-o, \-\-collection[=FILE]\fR Output a collection. With this option, \fIgliv\fR creates a collection from the loaded files and outputs it to stdout or in the specified file. .TP \fB\-G, \-\-geometry=GEOMETRY\fR Initial window geometry. This option can be used to specify the position and dimension of the \fIgliv\fR window. It expects a geometry argument in the XParseGeometry(3X11) format like: 640x480+20\-30 for example. .SH "COLLECTIONS" Seit Version 1.8 unterstützt \fIgliv\fR ein Fileformat namens "GLiv collection". Es enthält eine Liste aller Images und der entsprechenden Thumbnails. Auf diesem Weg wird der Aufbau des "Images" Menüs beschleunigt, da die Thumbnails nicht mehr neu generiert werden müssen. .br Für diese Collections wird \fIgliv\fR auch transparente Decompression unterstützt, so daß die Collections mittels bzip2, gzip or compress(1) komprimiert werden können (vorausgesetzt der entsprechende Decompressor ist installiert). .SH "CONTROLS" ESC, q : Beenden .br f : Vollbild/Fenster .br +/=/- : Zoom in/in/out .br n/p : Nächstes/vorheriges Bild .br Pause : Start/stop the slide show .br l : Bild auf die Fenstergröße verkleinern .br M : Bild auf die Fenstergröße vergrößern .br m : Bild der Fenstergröße anpassen .br r : Position und Größe zurücksetzen .br b : Menüzeile anzeigen/verstecken .br i : Informationszeile anzeigen/verstecken .br s : Scrollbalken anzeigen/verstecken .br a : Alphakanalmuster anzeigen/verstecken .br h : Hilfefenster anzeigen/verstecken .br w : Toggle display of floating windows .br o : Dialog »Datei öffnen« anzeigen .br g : Display the image selector .br t : Dialog »Einstellungen« anzeigen .br d : Mauszeiger verstecken .br u : Rückgängig .br y : Wiederherstellen .br c : Verlauf löschen .br Delete : Delete the current file .br C-hoch : Um 90 Grad gegen den Uhrzeigersinn rotieren .br C-runter : Um 90 Grad im Uhrzeigersinn rotieren .br C-links : Um 0,1 Grad gegen den Uhrzeigersinn rotieren .br C-rechts : Um 0,1 Grad im Uhrzeigersinn rotieren .br z : Horizontal spiegeln .br e : Vertical spiegeln .br Die linke Maustaste und die Pfeiltasten verschieben das Bild auf dem Bildschirm, solange die Strg-Taste nicht gedrückt ist. Wenn sie Strg-Taste gedrückt ist, können Sie mit der linken Maustaste oder den Pfeiltasten das Bild drehen. .br The mouse wheel zooms the image, and when you hold its button pressed at the same time it switches to the neighbouring image. .br Sie können das Bild auch vergrößern und verkleinern, indem Sie die Maus vertikal bewegen und dabei die Umschalttaste gedrückt halten. .br Die Leertaste und Backspace machen das gleiche wie die Tasten n und p. .br Zeichnen Sie mit der rechten Maustaste ein Rechteck, und GLiv wird hineinzoomen. .br .SH "FILE" \fB~/.glivrc\fR \- Dieses File ist nicht zwingend erforderlich. .SH "AUTHOR" Guillaume Chazarain .br See http://guichaz.free.fr/gliv gliv-1.9.7/man/de/Makefile.am0000644000076400007640000000005311465576131013145 0ustar ggL=de include $(srcdir)/../automake_man.am gliv-1.9.7/man/de/Makefile.in0000644000076400007640000003443711465576131013173 0ustar gg# 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 = : build_triplet = @build@ host_triplet = @host@ DIST_COMMON = $(srcdir)/../automake_man.am $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in subdir = man/de 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 = $(SHELL) $(top_srcdir)/mkinstalldirs 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' am__installdirs = "$(DESTDIR)$(man1dir)" NROFF = nroff MANS = $(man1_MANS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CFLAG_VISIBILITY = @CFLAG_VISIBILITY@ 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@ GENCAT = @GENCAT@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ GTKGLEXT_CFLAGS = @GTKGLEXT_CFLAGS@ GTKGLEXT_LIBS = @GTKGLEXT_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ HAVE_WPRINTF = @HAVE_WPRINTF@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_DEFAULT_VERBOSITY = @INTL_DEFAULT_VERBOSITY@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBMULTITHREAD = @LIBMULTITHREAD@ LIBOBJS = @LIBOBJS@ LIBPTH = @LIBPTH@ LIBPTH_PREFIX = @LIBPTH_PREFIX@ LIBS = @LIBS@ LIBTHREAD = @LIBTHREAD@ LTLIBC = @LTLIBC@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBMULTITHREAD = @LTLIBMULTITHREAD@ LTLIBOBJS = @LTLIBOBJS@ LTLIBPTH = @LTLIBPTH@ LTLIBTHREAD = @LTLIBTHREAD@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ 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@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WINDRES = @WINDRES@ WOE32 = @WOE32@ WOE32DLL = @WOE32DLL@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ 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 = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ 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@ 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@ L = de man1_MANS = gliv.1 EXTRA_DIST = $(man1_MANS) gliv.1.end gliv.1.start man1dir = $(mandir)/$(L)/man1 all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(srcdir)/../automake_man.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 man/de/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign man/de/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): 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) all-local installdirs: for dir in "$(DESTDIR)$(man1dir)"; 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-man 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-man uninstall-man: uninstall-man1 .MAKE: install-am install-strip .PHONY: all all-am all-local 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-dvi install-dvi-am install-exec install-exec-am \ install-html install-html-am install-info install-info-am \ install-man install-man1 install-pdf install-pdf-am 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-man uninstall-man1 all-local: $(man1_MANS) $(srcdir)/gliv.1: $(srcdir)/gliv.1.start $(srcdir)/gliv.1.end $(top_srcdir)/README (echo '.\" This file is auto-generated from gliv.1.start'; \ echo '.\" gliv.1.end and the translation of the README block'; \ cat $(srcdir)/gliv.1.start; \ (cd $(srcdir) && $(top_srcdir)/tools/translate_man.sh $(L)); \ cat $(srcdir)/gliv.1.end) > $@ install-man1: $(man1_MANS) @$(NORMAL_INSTALL) test -z "$(man1dir)" || $(mkdir_p) "$(DESTDIR)$(man1dir)" @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ for i in $$l2; do \ case "$$i" in \ *.1*) list="$$list $$i" ;; \ esac; \ done; \ for i in $$list; do \ if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ else file=$$i; fi; \ ext=`echo $$i | sed -e 's/^.*\\.//'`; \ case "$$ext" in \ 1*) ;; \ *) ext='1' ;; \ esac; \ inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ inst=`echo $$inst | sed -e 's/^.*\///'`; \ inst=`echo $$inst | sed '$(transform)'`.$$ext; \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \ done uninstall-man1: @$(NORMAL_UNINSTALL) @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ for i in $$l2; do \ case "$$i" in \ *.1*) list="$$list $$i" ;; \ esac; \ done; \ for i in $$list; do \ ext=`echo $$i | sed -e 's/^.*\\.//'`; \ case "$$ext" in \ 1*) ;; \ *) ext='1' ;; \ esac; \ inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ inst=`echo $$inst | sed -e 's/^.*\///'`; \ inst=`echo $$inst | sed '$(transform)'`.$$ext; \ echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \ rm -f "$(DESTDIR)$(man1dir)/$$inst"; \ done # 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: gliv-1.9.7/man/de/gliv.1.start0000644000076400007640000001070211465576131013272 0ustar gg.\" .TH "gliv" "1" "1.9" "Guillaume Chazarain" "Image viewer" .SH "NAME" gliv \- Ein OpenGL Image Viewer .SH "SYNOPSIS" \fBgliv\fR [OPTIONS]... [FILES]... .SH "BESCHREIBUNG" \fIgliv\fR verwendet gdk\-pixbuf um Images zu laden, und OpenGL zur Darstellung. Gliv ermöglicht es, Images zu bewegen, rotieren, zoomen, und durchführen von Slide Shows. .SH "OPTIONS" Die Optionen sind zuerst auf ihre Defaultwerte eingestellt, "off" für Flags, werden dann entweder von ~/.glivrc oder /etc/glivrc oder einem Konfigurationsfile das über die Kommandozeile spezifiert wird, gelesen, oder falls vorhanden, von der Kommandozeile gelesen. .br Weglassen des Arguments für eine Option, die ein "on|off" Wertebereich hat, ist gleichbedeutend mit "on", also \-\-foo ist gleichbedeutend mit \-\-foo=on (wenn foo die Werte on|off annehmen kann). .TP \fB\-h, \-\-help\fR Anzeigen des Hilfetextes und Ende. .TP \fB\-V, \-\-version\fR Anzeige der Version und Ende. .TP \fB\-a, \-\-add\-all[=on|off]\fR Hinzufügen aller Files im momentanen Directory. Mit dieser Option werden bei Öffnen eines Files (entweder von der Kommandozeile oder mit dem "open" Dialog) alle anderen Files im Directory hinzugefügt. .TP \fB\-R, \-\-recursive[=on|off]\fR Rekursiv alle Unterverzeichnisse miteinbeziehen. Wenn \fIgliv\fR alle Images eines Verzeichnisses lädt, werden rekursiv auch alle Images aller Unterverzeichnisse geladen. .TP \fB\-S, \-\-sort[=on|off]\fR Images sortiert anzeigen. Die Images werden vor der Slideshow sortiert. .TP \fB\-s, \-\-shuffle[=on|off]\fR Images in zufälliger Reihenfolge anzeigen. Die Slideshow wird in zufälliger Reihenfolge durchgeführt. .TP \fB\-F, \-\-force\-load[=on|off]\fR Versuchen jedes File zu laden. Beim Laden eines Files wird anhand der Filenamenserweiterung (Extension, z.B . .jpg) entschieden, was für ein Lader verwendet wird. Bei unbekannter Extension wird ein File ignoriert, durch Angabe dieser Option versucht \fIgliv\fR jedes File zu laden. .TP \fB\-C, \-\-client[=on|off]\fR Verbindung zu einem bereits laufenden \fIgliv\fR herstellen. Durch Verwendung dieser Option öffnet die \fIgliv\fR Instanz im Serverfenster zusätzlich die Files die als Argumente auf der Kommandozeile übergeben werden. It can also be used with the \-0 option. Der \fIgliv\fR Server ist entweder die zuletzt gestartete \fIgliv\fR Instanz, oder diejenige die im "Options" Menü ausgewählt wurde. .TP \fB\-c, \-\-client-clear[=on|off]\fR Connect to a running \fIgliv\fR, replacing the list. This is like the \-\-client option except that the specified list on the client will replace the list on the server instead of being appended to. .TP \fB\-e, \-\-build\-menus[=on|off]\fR Unterdrücke das "Images" Menü beim Start. Dies beschleunigt den Start von \fIgliv\fR, vor allem mit vielen Files als Argument auf der Kommandozeile. .TP \fB\-g, \-\-glivrc[=FILE]\fR Verwende das angegebene File als Konfigurationsfile (oder keines). Dies unterdrückt die Abarbeitung vorhandener Konfigurationsfiles (~/.glivrc und /etc/glivrc). .TP \fB\-w, \-\-slide\-show[=on|off]\fR Slideshow sofort starten. Durch Angabe dieser Option ist ein manueller Start der Slideshow im Menü nicht erforderlich. .TP \fB\-0, \-\-null[=on|off]\fR Lese null\-terminierte Filenamen. Die kann zusammen mit "find \-print0" oder mit "tr '\en' '\e0'" verwendet werden, wenn eine sehr lange Liste von Filenamen an \fIgliv\fR übergeben werden soll. Im Gegensatz zu xargs(1) ist so eine unendliche Anzahl von Filenamen möglich. .TP \fB\-o, \-\-collection[=FILE]\fR Output a collection. With this option, \fIgliv\fR creates a collection from the loaded files and outputs it to stdout or in the specified file. .TP \fB\-G, \-\-geometry=GEOMETRY\fR Initial window geometry. This option can be used to specify the position and dimension of the \fIgliv\fR window. It expects a geometry argument in the XParseGeometry(3X11) format like: 640x480+20\-30 for example. .SH "COLLECTIONS" Seit Version 1.8 unterstützt \fIgliv\fR ein Fileformat namens "GLiv collection". Es enthält eine Liste aller Images und der entsprechenden Thumbnails. Auf diesem Weg wird der Aufbau des "Images" Menüs beschleunigt, da die Thumbnails nicht mehr neu generiert werden müssen. .br Für diese Collections wird \fIgliv\fR auch transparente Decompression unterstützt, so daß die Collections mittels bzip2, gzip or compress(1) komprimiert werden können (vorausgesetzt der entsprechende Decompressor ist installiert). .SH "CONTROLS" gliv-1.9.7/man/de/gliv.1.end0000644000076400007640000000025211465576131012702 0ustar gg.SH "FILE" \fB~/.glivrc\fR \- Dieses File ist nicht zwingend erforderlich. .SH "AUTHOR" Guillaume Chazarain .br See http://guichaz.free.fr/gliv gliv-1.9.7/man/en/0000755000076400007640000000000011465576131011125 5ustar gggliv-1.9.7/man/en/gliv.10000644000076400007640000001322311465576131012151 0ustar gg.\" This file is auto-generated from gliv.1.start .\" gliv.1.end and the translation of the README block .TH "gliv" "1" "1.9" "Guillaume Chazarain" "Image viewer" .SH "NAME" gliv \- An OpenGL Image Viewer .SH "SYNOPSIS" \fBgliv\fR [OPTIONS]... [FILES]... .SH "DESCRIPTION" \fIgliv\fR uses gdk\-pixbuf to load images and OpenGL to render them. It allows to do some moving, rotating, zooming and slide show. .SH "OPTIONS" The options are first set to their default values, "off" for flags, then read either from ~/.glivrc or /etc/glivrc or a configuration file specified on the command line, and finally read from the command line. .br Omitting the argument for an option that takes an "on|off" argument (flags) is like giving it "on", so \-\-foo is the same as \-\-foo=on if foo is an on|off flag. .TP \fB\-h, \-\-help\fR Print help and exit. .TP \fB\-V, \-\-version\fR Print version and exit. .TP \fB\-a, \-\-add\-all[=on|off]\fR Add all files in the directory. With this option, when you open a file on the command line or with the open dialog, all others files in the directory are added as well. .TP \fB\-R, \-\-recursive[=on|off]\fR Recursive directory traversal. If \fIgliv\fR tries to load a direcory, it will also load every image all its subdirectories. .TP \fB\-S, \-\-sort[=on|off]\fR Show images in sorted order. The images list will be sorted before the slide show. .TP \fB\-s, \-\-shuffle[=on|off]\fR Show images in random order. The images list will be shuffled before the slide show. .TP \fB\-F, \-\-force\-load[=on|off]\fR Try to load every file. When loading a file, the loader is chosen according to the filename extension in order to optimize the loading time. If the extension is unknown, the file is ignored, with this option \fIgliv\fR will always try to load the file. .TP \fB\-C, \-\-client[=on|off]\fR Connect to a running \fIgliv\fR, appending to the list. With this option, \fIgliv\fR will open the files passed in the arguments in the \fIgliv\fR server window. It can also be used with the \-0 option. The \fIgliv\fR server is the latest launched \fIgliv\fR or the one which has been chosen using the Options menu. .TP \fB\-c, \-\-client-clear[=on|off]\fR Connect to a running \fIgliv\fR, replacing the list. This is like the \-\-client option except that the specified list on the client will replace the list on the server instead of being appended to. .TP \fB\-e, \-\-build\-menus[=on|off]\fR No images menu at startup. Disabling the images menus creation at startup makes it faster, especially with many files on the command line. .TP \fB\-g, \-\-glivrc[=FILE]\fR Use this configuration file or none. Specify it to disable loading of the rc file. With a filename as argument it will use it as a configuration file. .TP \fB\-w, \-\-slide\-show[=on|off]\fR Start the slide show immediately. This way you will not have to start it manually from the menu. .TP \fB\-0, \-\-null[=on|off]\fR Read null\-terminated filenames. This can be used with "find \-print0" or with "tr '\en' '\e0'" when you have a very long list of filenames to pass to \fIgliv\fR. Unlike xargs(1) it allows an unlimited number of filenames. .TP \fB\-o, \-\-collection[=FILE]\fR Output a collection. With this option, \fIgliv\fR creates a collection from the loaded files and outputs it to stdout or in the specified file. .TP \fB\-G, \-\-geometry=GEOMETRY\fR Initial window geometry. This option can be used to specify the position and dimension of the \fIgliv\fR window. It expects a geometry argument in the XParseGeometry(3X11) format like: 640x480+20\-30 for example. .SH "COLLECTIONS" Starting with version 1.8, \fIgliv\fR supports a file format called "GLiv collection". It contains an images list and the associated thumbnails, this way, when you load a collection the images menus rebuilding is faster since it does not have to make thumbnails. .br \fIgliv\fR supports also transparent decompression, so the collections can be compressed in bzip2, gzip or compress(1) provided that you have the corresponding decompressor. .SH "CONTROLS" ESC, q : Quit .br f : Full-screen/window .br +/=/- : Zoom in/in/out .br n/p : Next/previous image .br Pause : Start/stop the slide show .br l : Reduce the image to the window .br M : Maximize the image to the window .br m : Make the image fit the window .br r : Reset position and size .br b : Toggle display of the menu bar .br i : Toggle display of the info bar .br s : Toggle display of the scrollbars .br a : Toggle display of the alpha checks .br h : Toggle display of the help box .br w : Toggle display of floating windows .br o : Display the open dialog .br g : Display the image selector .br t : Display the options dialog .br d : Hide the cursor .br u : Undo .br y : Redo .br c : Clear the history .br Delete : Delete the current file .br C-up : Rotate by +90 degrees .br C-down : Rotate by -90 degrees .br C-left : Rotate by +0.1 degree .br C-right: Rotate by -0.1 degree .br z : Horizontal flip .br e : Vertical flip .br The first mouse button and the arrow keys will move the image unless the Control key is pressed. In which case the image will be rotated around the window center. .br The mouse wheel zooms the image, and when you hold its button pressed at the same time it switches to the neighbouring image. .br You can also zoom by dragging the mouse vertically while holding Shift and the first button. .br Space and Backspace act like n and p. .br Draw a rectangle with the third button and \fIgliv\fR will zoom in it. .br .SH "FILE" \fB~/.glivrc\fR \- This file is absolutely not mandatory. .SH "AUTHOR" Guillaume Chazarain .br See http://guichaz.free.fr/gliv gliv-1.9.7/man/en/Makefile.am0000644000076400007640000000012111465576131013153 0ustar gg# Special case for English : no locale L=. include $(srcdir)/../automake_man.am gliv-1.9.7/man/en/Makefile.in0000644000076400007640000003450611465576131013202 0ustar gg# 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 = : build_triplet = @build@ host_triplet = @host@ DIST_COMMON = $(srcdir)/../automake_man.am $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in subdir = man/en 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 = $(SHELL) $(top_srcdir)/mkinstalldirs 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' am__installdirs = "$(DESTDIR)$(man1dir)" NROFF = nroff MANS = $(man1_MANS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CFLAG_VISIBILITY = @CFLAG_VISIBILITY@ 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@ GENCAT = @GENCAT@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ GTKGLEXT_CFLAGS = @GTKGLEXT_CFLAGS@ GTKGLEXT_LIBS = @GTKGLEXT_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ HAVE_WPRINTF = @HAVE_WPRINTF@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_DEFAULT_VERBOSITY = @INTL_DEFAULT_VERBOSITY@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBMULTITHREAD = @LIBMULTITHREAD@ LIBOBJS = @LIBOBJS@ LIBPTH = @LIBPTH@ LIBPTH_PREFIX = @LIBPTH_PREFIX@ LIBS = @LIBS@ LIBTHREAD = @LIBTHREAD@ LTLIBC = @LTLIBC@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBMULTITHREAD = @LTLIBMULTITHREAD@ LTLIBOBJS = @LTLIBOBJS@ LTLIBPTH = @LTLIBPTH@ LTLIBTHREAD = @LTLIBTHREAD@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ 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@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WINDRES = @WINDRES@ WOE32 = @WOE32@ WOE32DLL = @WOE32DLL@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ 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 = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ 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@ 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@ # Special case for English : no locale L = . man1_MANS = gliv.1 EXTRA_DIST = $(man1_MANS) gliv.1.end gliv.1.start man1dir = $(mandir)/$(L)/man1 all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(srcdir)/../automake_man.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 man/en/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign man/en/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): 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) all-local installdirs: for dir in "$(DESTDIR)$(man1dir)"; 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-man 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-man uninstall-man: uninstall-man1 .MAKE: install-am install-strip .PHONY: all all-am all-local 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-dvi install-dvi-am install-exec install-exec-am \ install-html install-html-am install-info install-info-am \ install-man install-man1 install-pdf install-pdf-am 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-man uninstall-man1 all-local: $(man1_MANS) $(srcdir)/gliv.1: $(srcdir)/gliv.1.start $(srcdir)/gliv.1.end $(top_srcdir)/README (echo '.\" This file is auto-generated from gliv.1.start'; \ echo '.\" gliv.1.end and the translation of the README block'; \ cat $(srcdir)/gliv.1.start; \ (cd $(srcdir) && $(top_srcdir)/tools/translate_man.sh $(L)); \ cat $(srcdir)/gliv.1.end) > $@ install-man1: $(man1_MANS) @$(NORMAL_INSTALL) test -z "$(man1dir)" || $(mkdir_p) "$(DESTDIR)$(man1dir)" @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ for i in $$l2; do \ case "$$i" in \ *.1*) list="$$list $$i" ;; \ esac; \ done; \ for i in $$list; do \ if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ else file=$$i; fi; \ ext=`echo $$i | sed -e 's/^.*\\.//'`; \ case "$$ext" in \ 1*) ;; \ *) ext='1' ;; \ esac; \ inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ inst=`echo $$inst | sed -e 's/^.*\///'`; \ inst=`echo $$inst | sed '$(transform)'`.$$ext; \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \ done uninstall-man1: @$(NORMAL_UNINSTALL) @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ for i in $$l2; do \ case "$$i" in \ *.1*) list="$$list $$i" ;; \ esac; \ done; \ for i in $$list; do \ ext=`echo $$i | sed -e 's/^.*\\.//'`; \ case "$$ext" in \ 1*) ;; \ *) ext='1' ;; \ esac; \ inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ inst=`echo $$inst | sed -e 's/^.*\///'`; \ inst=`echo $$inst | sed '$(transform)'`.$$ext; \ echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \ rm -f "$(DESTDIR)$(man1dir)/$$inst"; \ done # 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: gliv-1.9.7/man/en/gliv.1.start0000644000076400007640000000756711465576131013323 0ustar gg.TH "gliv" "1" "1.9" "Guillaume Chazarain" "Image viewer" .SH "NAME" gliv \- An OpenGL Image Viewer .SH "SYNOPSIS" \fBgliv\fR [OPTIONS]... [FILES]... .SH "DESCRIPTION" \fIgliv\fR uses gdk\-pixbuf to load images and OpenGL to render them. It allows to do some moving, rotating, zooming and slide show. .SH "OPTIONS" The options are first set to their default values, "off" for flags, then read either from ~/.glivrc or /etc/glivrc or a configuration file specified on the command line, and finally read from the command line. .br Omitting the argument for an option that takes an "on|off" argument (flags) is like giving it "on", so \-\-foo is the same as \-\-foo=on if foo is an on|off flag. .TP \fB\-h, \-\-help\fR Print help and exit. .TP \fB\-V, \-\-version\fR Print version and exit. .TP \fB\-a, \-\-add\-all[=on|off]\fR Add all files in the directory. With this option, when you open a file on the command line or with the open dialog, all others files in the directory are added as well. .TP \fB\-R, \-\-recursive[=on|off]\fR Recursive directory traversal. If \fIgliv\fR tries to load a direcory, it will also load every image all its subdirectories. .TP \fB\-S, \-\-sort[=on|off]\fR Show images in sorted order. The images list will be sorted before the slide show. .TP \fB\-s, \-\-shuffle[=on|off]\fR Show images in random order. The images list will be shuffled before the slide show. .TP \fB\-F, \-\-force\-load[=on|off]\fR Try to load every file. When loading a file, the loader is chosen according to the filename extension in order to optimize the loading time. If the extension is unknown, the file is ignored, with this option \fIgliv\fR will always try to load the file. .TP \fB\-C, \-\-client[=on|off]\fR Connect to a running \fIgliv\fR, appending to the list. With this option, \fIgliv\fR will open the files passed in the arguments in the \fIgliv\fR server window. It can also be used with the \-0 option. The \fIgliv\fR server is the latest launched \fIgliv\fR or the one which has been chosen using the Options menu. .TP \fB\-c, \-\-client-clear[=on|off]\fR Connect to a running \fIgliv\fR, replacing the list. This is like the \-\-client option except that the specified list on the client will replace the list on the server instead of being appended to. .TP \fB\-e, \-\-build\-menus[=on|off]\fR No images menu at startup. Disabling the images menus creation at startup makes it faster, especially with many files on the command line. .TP \fB\-g, \-\-glivrc[=FILE]\fR Use this configuration file or none. Specify it to disable loading of the rc file. With a filename as argument it will use it as a configuration file. .TP \fB\-w, \-\-slide\-show[=on|off]\fR Start the slide show immediately. This way you will not have to start it manually from the menu. .TP \fB\-0, \-\-null[=on|off]\fR Read null\-terminated filenames. This can be used with "find \-print0" or with "tr '\en' '\e0'" when you have a very long list of filenames to pass to \fIgliv\fR. Unlike xargs(1) it allows an unlimited number of filenames. .TP \fB\-o, \-\-collection[=FILE]\fR Output a collection. With this option, \fIgliv\fR creates a collection from the loaded files and outputs it to stdout or in the specified file. .TP \fB\-G, \-\-geometry=GEOMETRY\fR Initial window geometry. This option can be used to specify the position and dimension of the \fIgliv\fR window. It expects a geometry argument in the XParseGeometry(3X11) format like: 640x480+20\-30 for example. .SH "COLLECTIONS" Starting with version 1.8, \fIgliv\fR supports a file format called "GLiv collection". It contains an images list and the associated thumbnails, this way, when you load a collection the images menus rebuilding is faster since it does not have to make thumbnails. .br \fIgliv\fR supports also transparent decompression, so the collections can be compressed in bzip2, gzip or compress(1) provided that you have the corresponding decompressor. .SH "CONTROLS" gliv-1.9.7/man/en/gliv.1.end0000644000076400007640000000023611465576131012716 0ustar gg.SH "FILE" \fB~/.glivrc\fR \- This file is absolutely not mandatory. .SH "AUTHOR" Guillaume Chazarain .br See http://guichaz.free.fr/gliv gliv-1.9.7/man/Makefile.in0000644000076400007640000004267711465576131012610 0ustar gg# 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 = : build_triplet = @build@ host_triplet = @host@ subdir = man 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 = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/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 ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 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" ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CFLAG_VISIBILITY = @CFLAG_VISIBILITY@ 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@ GENCAT = @GENCAT@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ GTKGLEXT_CFLAGS = @GTKGLEXT_CFLAGS@ GTKGLEXT_LIBS = @GTKGLEXT_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ HAVE_WPRINTF = @HAVE_WPRINTF@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_DEFAULT_VERBOSITY = @INTL_DEFAULT_VERBOSITY@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBMULTITHREAD = @LIBMULTITHREAD@ LIBOBJS = @LIBOBJS@ LIBPTH = @LIBPTH@ LIBPTH_PREFIX = @LIBPTH_PREFIX@ LIBS = @LIBS@ LIBTHREAD = @LIBTHREAD@ LTLIBC = @LTLIBC@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBMULTITHREAD = @LTLIBMULTITHREAD@ LTLIBOBJS = @LTLIBOBJS@ LTLIBPTH = @LTLIBPTH@ LTLIBTHREAD = @LTLIBTHREAD@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ 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@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WINDRES = @WINDRES@ WOE32 = @WOE32@ WOE32DLL = @WOE32DLL@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ 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 = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ 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@ 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 = cs de en fr ru all: all-recursive .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 man/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign man/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): # 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) $(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) $(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) $(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 @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 check-am: all-am check: check-recursive all-am: Makefile 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 Makefile distclean-am: clean-am distclean-generic 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 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) ctags-recursive \ install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am clean clean-generic ctags \ ctags-recursive distclean distclean-generic distclean-tags \ distdir 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: gliv-1.9.7/depcomp0000755000076400007640000004426711465576131011342 0ustar gg#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2009-04-28.21; # UTC # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free # Software Foundation, Inc. # 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. # 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: gliv-1.9.7/install-sh0000755000076400007640000003253711465576131011766 0ustar gg#!/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: gliv-1.9.7/config.h.in0000644000076400007640000003471211465576131012002 0ustar gg/* config.h.in. Generated from configure.ac by autoheader. */ /* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP systems. This function is required for `alloca.c' support on those systems. */ #undef CRAY_STACKSEG_END /* Define to 1 if using `alloca.c'. */ #undef C_ALLOCA /* Define to 1 if translation of program messages to the user's native language is requested. */ #undef ENABLE_NLS /* Define to 1 if you have the `acosf' function. */ #undef HAVE_ACOSF /* Define to 1 if you have `alloca', as a function or macro. */ #undef HAVE_ALLOCA /* Define to 1 if you have and it should be used (not on Ultrix). */ #undef HAVE_ALLOCA_H /* Define to 1 if you have the `argz_count' function. */ #undef HAVE_ARGZ_COUNT /* Define to 1 if you have the header file. */ #undef HAVE_ARGZ_H /* Define to 1 if you have the `argz_next' function. */ #undef HAVE_ARGZ_NEXT /* Define to 1 if you have the `argz_stringify' function. */ #undef HAVE_ARGZ_STRINGIFY /* Define to 1 if you have the `asprintf' function. */ #undef HAVE_ASPRINTF /* Define to 1 if you have the `atan2' function. */ #undef HAVE_ATAN2 /* Define to 1 if you have the `atan2f' function. */ #undef HAVE_ATAN2F /* Define to 1 if the compiler understands __builtin_expect. */ #undef HAVE_BUILTIN_EXPECT /* Define to 1 if you have the `ceilf' function. */ #undef HAVE_CEILF /* Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework. */ #undef HAVE_CFLOCALECOPYCURRENT /* Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework. */ #undef HAVE_CFPREFERENCESCOPYAPPVALUE /* Define to 1 if you have the `cosf' function. */ #undef HAVE_COSF /* Define if the GNU dcgettext() function is already present or preinstalled. */ #undef HAVE_DCGETTEXT /* Define to 1 if you have the declaration of `feof_unlocked', and to 0 if you don't. */ #undef HAVE_DECL_FEOF_UNLOCKED /* Define to 1 if you have the declaration of `fgets_unlocked', and to 0 if you don't. */ #undef HAVE_DECL_FGETS_UNLOCKED /* Define to 1 if you have the declaration of `getc_unlocked', and to 0 if you don't. */ #undef HAVE_DECL_GETC_UNLOCKED /* Define to 1 if you have the declaration of `_snprintf', and to 0 if you don't. */ #undef HAVE_DECL__SNPRINTF /* Define to 1 if you have the declaration of `_snwprintf', and to 0 if you don't. */ #undef HAVE_DECL__SNWPRINTF /* Define to 1 if you have the `fabsf' function. */ #undef HAVE_FABSF /* Define to 1 if you have the `fmodf' function. */ #undef HAVE_FMODF /* Define to 1 if you have the `fseeko' function. */ #undef HAVE_FSEEKO /* Define to 1 if you have the `ftello' function. */ #undef HAVE_FTELLO /* Define to 1 if you have the `fwprintf' function. */ #undef HAVE_FWPRINTF /* Define to 1 if you have the `getcwd' function. */ #undef HAVE_GETCWD /* Define to 1 if you have the `getdelim' function. */ #undef HAVE_GETDELIM /* Define to 1 if you have the `getegid' function. */ #undef HAVE_GETEGID /* Define to 1 if you have the `geteuid' function. */ #undef HAVE_GETEUID /* Define to 1 if you have the `getgid' function. */ #undef HAVE_GETGID /* Define to 1 if you have the `getopt_long' function. */ #undef HAVE_GETOPT_LONG /* Define to 1 if you have the `getpagesize' function. */ #undef HAVE_GETPAGESIZE /* Define if the GNU gettext() function is already present or preinstalled. */ #undef HAVE_GETTEXT /* Define to 1 if you have the `getuid' function. */ #undef HAVE_GETUID /* Define to 1 if you have the `hypot' function. */ #undef HAVE_HYPOT /* Define to 1 if you have the `hypotf' function. */ #undef HAVE_HYPOTF /* Define if you have the iconv() function and it works. */ #undef HAVE_ICONV /* Define if you have the 'intmax_t' type in or . */ #undef HAVE_INTMAX_T /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define if exists, doesn't clash with , and declares uintmax_t. */ #undef HAVE_INTTYPES_H_WITH_UINTMAX /* ISO C99 varargs macros in C */ #undef HAVE_ISO_C_VARARGS /* Define if you have and nl_langinfo(CODESET). */ #undef HAVE_LANGINFO_CODESET /* Define if your file defines LC_MESSAGES. */ #undef HAVE_LC_MESSAGES /* Define to 1 if you have the header file. */ #undef HAVE_LIMITS_H /* Define to 1 if you have the `log10f' function. */ #undef HAVE_LOG10F /* Define to 1 if the system has the type `long long int'. */ #undef HAVE_LONG_LONG_INT /* Define to 1 if you have the `mbrtowc' function. */ #undef HAVE_MBRTOWC /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define to 1 if you have the `mempcpy' function. */ #undef HAVE_MEMPCPY /* Define to 1 if you have a working `mmap' system call. */ #undef HAVE_MMAP /* Define to 1 if you have the `munmap' function. */ #undef HAVE_MUNMAP /* Define to 1 if you have the `newlocale' function. */ #undef HAVE_NEWLOCALE /* Define if your printf() function supports format strings with positions. */ #undef HAVE_POSIX_PRINTF /* Define to 1 if you have the `powf' function. */ #undef HAVE_POWF /* Define if the defines PTHREAD_MUTEX_RECURSIVE. */ #undef HAVE_PTHREAD_MUTEX_RECURSIVE /* Define if the POSIX multithreading library has read/write locks. */ #undef HAVE_PTHREAD_RWLOCK /* Define to 1 if you have the `putenv' function. */ #undef HAVE_PUTENV /* Define to 1 if you have the `setenv' function. */ #undef HAVE_SETENV /* Define to 1 if you have the `setlocale' function. */ #undef HAVE_SETLOCALE /* Define to 1 if you have the `sinf' function. */ #undef HAVE_SINF /* Define to 1 if you have the `snprintf' function. */ #undef HAVE_SNPRINTF /* Define to 1 if you have the `sqrtf' function. */ #undef HAVE_SQRTF /* Define to 1 if you have the header file. */ #undef HAVE_STDDEF_H /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define if exists, doesn't clash with , and declares uintmax_t. */ #undef HAVE_STDINT_H_WITH_UINTMAX /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the `stpcpy' function. */ #undef HAVE_STPCPY /* Define to 1 if you have the `strcasecmp' function. */ #undef HAVE_STRCASECMP /* Define to 1 if you have the `strdup' function. */ #undef HAVE_STRDUP /* 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 `strnlen' function. */ #undef HAVE_STRNLEN /* Define to 1 if you have the `strtoul' function. */ #undef HAVE_STRTOUL /* Define to 1 if you have the header file. */ #undef HAVE_SYS_PARAM_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_TYPES_H /* Define to 1 if you have the `tsearch' function. */ #undef HAVE_TSEARCH /* Define if you have the 'uintmax_t' type in or . */ #undef HAVE_UINTMAX_T /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Define to 1 if the system has the type `unsigned long long int'. */ #undef HAVE_UNSIGNED_LONG_LONG_INT /* Define to 1 if you have the `uselocale' function. */ #undef HAVE_USELOCALE /* Define to 1 or 0, depending whether the compiler supports simple visibility declarations. */ #undef HAVE_VISIBILITY /* Define if you have the 'wchar_t' type. */ #undef HAVE_WCHAR_T /* Define to 1 if you have the `wcrtomb' function. */ #undef HAVE_WCRTOMB /* Define to 1 if you have the `wcslen' function. */ #undef HAVE_WCSLEN /* Define to 1 if you have the `wcsnlen' function. */ #undef HAVE_WCSNLEN /* Define if you have the 'wint_t' type. */ #undef HAVE_WINT_T /* Define to 1 if O_NOATIME works. */ #undef HAVE_WORKING_O_NOATIME /* Define to 1 if O_NOFOLLOW works. */ #undef HAVE_WORKING_O_NOFOLLOW /* Define to 1 if you have the `__fsetlocking' function. */ #undef HAVE___FSETLOCKING /* Define as const if the declaration of iconv() needs const. */ #undef ICONV_CONST /* Define if integer division by zero raises signal SIGFPE. */ #undef INTDIV0_RAISES_SIGFPE /* 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 if exists and defines unusable PRI* macros. */ #undef PRI_MACROS_BROKEN /* Define if the pthread_in_use() detection is hard. */ #undef PTHREAD_IN_USE_DETECTION_HARD /* The size of `unsigned long', as computed by sizeof. */ #undef SIZEOF_UNSIGNED_LONG /* Define as the maximum value of type 'size_t', if the system doesn't define it. */ #ifndef SIZE_MAX # undef SIZE_MAX #endif /* If using the C implementation of alloca, define if you know the direction of stack growth for your system; otherwise it will be automatically deduced at runtime. STACK_DIRECTION > 0 => grows toward higher addresses STACK_DIRECTION < 0 => grows toward lower addresses STACK_DIRECTION = 0 => direction of growth unknown */ #undef STACK_DIRECTION /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Define if the POSIX multithreading library can be used. */ #undef USE_POSIX_THREADS /* Define if references to the POSIX multithreading library should be made weak. */ #undef USE_POSIX_THREADS_WEAK /* Define if the GNU Pth multithreading library can be used. */ #undef USE_PTH_THREADS /* Define if references to the GNU Pth multithreading library should be made weak. */ #undef USE_PTH_THREADS_WEAK /* Define if the old Solaris multithreading library can be used. */ #undef USE_SOLARIS_THREADS /* Define if references to the old Solaris multithreading library should be made weak. */ #undef USE_SOLARIS_THREADS_WEAK /* Enable extensions on AIX 3, Interix. */ #ifndef _ALL_SOURCE # undef _ALL_SOURCE #endif /* Enable GNU extensions on systems that have them. */ #ifndef _GNU_SOURCE # undef _GNU_SOURCE #endif /* Enable threading extensions on Solaris. */ #ifndef _POSIX_PTHREAD_SEMANTICS # undef _POSIX_PTHREAD_SEMANTICS #endif /* Enable extensions on HP NonStop. */ #ifndef _TANDEM_SOURCE # undef _TANDEM_SOURCE #endif /* Enable general extensions on Solaris. */ #ifndef __EXTENSIONS__ # undef __EXTENSIONS__ #endif /* Define if the Win32 multithreading API can be used. */ #undef USE_WIN32_THREADS /* Version number of package */ #undef VERSION /* Define to 1 if the X Window System is missing or not being used. */ #undef X_DISPLAY_MISSING /* Number of bits in a file offset, on hosts where this is settable. */ #undef _FILE_OFFSET_BITS /* Define for large files, on AIX-style hosts. */ #undef _LARGE_FILES /* Define to 1 if on MINIX. */ #undef _MINIX /* Define to 2 if the system does not provide POSIX.1 features except with this defined. */ #undef _POSIX_1_SOURCE /* Define to 1 if you need to in order for `stat' and other things to work. */ #undef _POSIX_SOURCE /* 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 as the type of the result of subtracting two pointers, if the system doesn't define it. */ #undef ptrdiff_t /* Define to `unsigned int' if does not define. */ #undef size_t /* Define to unsigned long or unsigned long long if and don't define. */ #undef uintmax_t #define __libc_lock_t gl_lock_t #define __libc_lock_define gl_lock_define #define __libc_lock_define_initialized gl_lock_define_initialized #define __libc_lock_init gl_lock_init #define __libc_lock_lock gl_lock_lock #define __libc_lock_unlock gl_lock_unlock #define __libc_lock_recursive_t gl_recursive_lock_t #define __libc_lock_define_recursive gl_recursive_lock_define #define __libc_lock_define_initialized_recursive gl_recursive_lock_define_initialized #define __libc_lock_init_recursive gl_recursive_lock_init #define __libc_lock_lock_recursive gl_recursive_lock_lock #define __libc_lock_unlock_recursive gl_recursive_lock_unlock #define glthread_in_use libintl_thread_in_use #define glthread_lock_init_func libintl_lock_init_func #define glthread_lock_lock_func libintl_lock_lock_func #define glthread_lock_unlock_func libintl_lock_unlock_func #define glthread_lock_destroy_func libintl_lock_destroy_func #define glthread_rwlock_init_multithreaded libintl_rwlock_init_multithreaded #define glthread_rwlock_init_func libintl_rwlock_init_func #define glthread_rwlock_rdlock_multithreaded libintl_rwlock_rdlock_multithreaded #define glthread_rwlock_rdlock_func libintl_rwlock_rdlock_func #define glthread_rwlock_wrlock_multithreaded libintl_rwlock_wrlock_multithreaded #define glthread_rwlock_wrlock_func libintl_rwlock_wrlock_func #define glthread_rwlock_unlock_multithreaded libintl_rwlock_unlock_multithreaded #define glthread_rwlock_unlock_func libintl_rwlock_unlock_func #define glthread_rwlock_destroy_multithreaded libintl_rwlock_destroy_multithreaded #define glthread_rwlock_destroy_func libintl_rwlock_destroy_func #define glthread_recursive_lock_init_multithreaded libintl_recursive_lock_init_multithreaded #define glthread_recursive_lock_init_func libintl_recursive_lock_init_func #define glthread_recursive_lock_lock_multithreaded libintl_recursive_lock_lock_multithreaded #define glthread_recursive_lock_lock_func libintl_recursive_lock_lock_func #define glthread_recursive_lock_unlock_multithreaded libintl_recursive_lock_unlock_multithreaded #define glthread_recursive_lock_unlock_func libintl_recursive_lock_unlock_func #define glthread_recursive_lock_destroy_multithreaded libintl_recursive_lock_destroy_multithreaded #define glthread_recursive_lock_destroy_func libintl_recursive_lock_destroy_func #define glthread_once_func libintl_once_func #define glthread_once_singlethreaded libintl_once_singlethreaded #define glthread_once_multithreaded libintl_once_multithreaded gliv-1.9.7/config.guess0000755000076400007640000013105411465576131012274 0ustar gg#! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 # Free Software Foundation, Inc. timestamp='2009-06-10' # This file 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., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, 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. # Originally written by Per Bothner . # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. # # This script attempts to guess a canonical system name similar to # config.sub. If it succeeds, it prints the system name on stdout, and # exits with 0. Otherwise, it exits with 1. # # The plan is that this can be called by configure scripts if you # don't specify an explicit build system type. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi trap 'exit 1' 1 2 15 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > $dummy.c ; for c in cc gcc c89 c99 ; do if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found ; fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ /usr/sbin/$sysctl 2>/dev/null || echo unknown)` case "${UNAME_MACHINE_ARCH}" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently, or will in the future. case "${UNAME_MACHINE_ARCH}" in arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ELF__ then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "${UNAME_VERSION}" in Debian*) release='-gnu' ;; *) release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} exit ;; *:SolidBSD:*:*) echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} exit ;; macppc:MirBSD:*:*) echo powerpc-unknown-mirbsd${UNAME_RELEASE} exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE="alpha" ;; "EV4.5 (21064)") UNAME_MACHINE="alpha" ;; "LCA4 (21066/21068)") UNAME_MACHINE="alpha" ;; "EV5 (21164)") UNAME_MACHINE="alphaev5" ;; "EV5.6 (21164A)") UNAME_MACHINE="alphaev56" ;; "EV5.6 (21164PC)") UNAME_MACHINE="alphapca56" ;; "EV5.7 (21164PC)") UNAME_MACHINE="alphapca57" ;; "EV6 (21264)") UNAME_MACHINE="alphaev6" ;; "EV6.7 (21264A)") UNAME_MACHINE="alphaev67" ;; "EV6.8CB (21264C)") UNAME_MACHINE="alphaev68" ;; "EV6.8AL (21264B)") UNAME_MACHINE="alphaev68" ;; "EV6.8CX (21264D)") UNAME_MACHINE="alphaev68" ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE="alphaev69" ;; "EV7 (21364)") UNAME_MACHINE="alphaev7" ;; "EV7.9 (21364A)") UNAME_MACHINE="alphaev79" ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` exit ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix exit ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; arm:riscos:*:*|arm:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; s390x:SunOS:*:*) echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) eval $set_cc_for_build SUN_ARCH="i386" # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. # This test works for both compilers. if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then SUN_ARCH="x86_64" fi fi echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) echo m68k-sun-sunos${UNAME_RELEASE} ;; sun4) echo sparc-sun-sunos${UNAME_RELEASE} ;; esac exit ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`$dummy $dummyarg` && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] then if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ [ ${TARGET_BINARY_INTERFACE}x = x ] then echo m88k-dg-dgux${UNAME_RELEASE} else echo m88k-dg-dguxbcs${UNAME_RELEASE} fi else echo i586-dg-dgux${UNAME_RELEASE} fi exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` then echo "$SYSTEM_NAME" else echo rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi exit ;; *:AIX:*:[456]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} exit ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case "${sc_cpu_version}" in 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case "${sc_kernel_bits}" in 32) HP_ARCH="hppa2.0n" ;; 64) HP_ARCH="hppa2.0w" ;; '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 esac ;; esac fi if [ "${HP_ARCH}" = "" ]; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if [ ${HP_ARCH} = "hppa2.0w" ] then eval $set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | grep -q __LP64__ then HP_ARCH="hppa2.0w" else HP_ARCH="hppa64" fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit ;; *:FreeBSD:*:*) case ${UNAME_MACHINE} in pc98) echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; amd64) echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; *) echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; esac exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit ;; *:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; i*:windows32*:*) # uname -m includes "-pc" on this system. echo ${UNAME_MACHINE}-mingw32 exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; *:Interix*:[3456]*) case ${UNAME_MACHINE} in x86) echo i586-pc-interix${UNAME_RELEASE} exit ;; EM64T | authenticamd | genuineintel) echo x86_64-unknown-interix${UNAME_RELEASE} exit ;; IA64) echo ia64-unknown-interix${UNAME_RELEASE} exit ;; esac ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit ;; 8664:Windows_NT:*) echo x86_64-pc-mks exit ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? echo i586-pc-interix exit ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; *:GNU:*:*) # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; arm*:Linux:*:*) eval $set_cc_for_build if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then echo ${UNAME_MACHINE}-unknown-linux-gnu else echo ${UNAME_MACHINE}-unknown-linux-gnueabi fi exit ;; avr32*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; cris:Linux:*:*) echo cris-axis-linux-gnu exit ;; crisv32:Linux:*:*) echo crisv32-axis-linux-gnu exit ;; frv:Linux:*:*) echo frv-unknown-linux-gnu exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; mips:Linux:*:* | mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef ${UNAME_MACHINE} #undef ${UNAME_MACHINE}el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=${UNAME_MACHINE}el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=${UNAME_MACHINE} #else CPU= #endif #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^CPU/{ s: ::g p }'`" test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; or32:Linux:*:*) echo or32-unknown-linux-gnu exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-gnu exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-gnu exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep -q ld.so.1 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} exit ;; padre:Linux:*:*) echo sparc-unknown-linux-gnu exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) echo hppa1.1-unknown-linux-gnu ;; PA8*) echo hppa2.0-unknown-linux-gnu ;; *) echo hppa-unknown-linux-gnu ;; esac exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-gnu exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-gnu exit ;; x86_64:Linux:*:*) echo x86_64-unknown-linux-gnu exit ;; xtensa*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; i*86:Linux:*:*) # The BFD linker knows what the default object file format is, so # first see if it will tell us. cd to the root directory to prevent # problems with other programs or directories called `ld' in the path. # Set LC_ALL=C to ensure ld outputs messages in English. ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ | sed -ne '/supported targets:/!d s/[ ][ ]*/ /g s/.*supported targets: *// s/ .*// p'` case "$ld_supported_targets" in elf32-i386) TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" ;; esac # Determine whether the default compiler is a.out or elf eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include #ifdef __ELF__ # ifdef __GLIBC__ # if __GLIBC__ >= 2 LIBC=gnu # else LIBC=gnulibc1 # endif # else LIBC=gnulibc1 # endif #else #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) LIBC=gnu #else LIBC=gnuaout #endif #endif #ifdef __dietlibc__ LIBC=dietlibc #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^LIBC/{ s: ::g p }'`" test x"${LIBC}" != x && { echo "${UNAME_MACHINE}-pc-linux-${LIBC}" exit } test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 exit ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx exit ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit ;; i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi exit ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL else echo ${UNAME_MACHINE}-pc-sysv32 fi exit ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i586. # Note: whatever this is, it MUST be the same as what config.sub # prints for the "djgpp" host, or else GDB configury will decide that # this is a cross-build. echo i586-pc-msdosdjgpp exit ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit ;; paragon:*:*:*) echo i860-intel-osf1 exit ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi exit ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; NCR*:*:4.2:* | MPRAS*:*:4.2:*) OS_REL='.3' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo ${UNAME_MACHINE}-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit ;; BePC:Haiku:*:*) # Haiku running on Intel PC compatible. echo i586-pc-haiku exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit ;; SX-7:SUPER-UX:*:*) echo sx7-nec-superux${UNAME_RELEASE} exit ;; SX-8:SUPER-UX:*:*) echo sx8-nec-superux${UNAME_RELEASE} exit ;; SX-8R:SUPER-UX:*:*) echo sx8r-nec-superux${UNAME_RELEASE} exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown case $UNAME_PROCESSOR in unknown) UNAME_PROCESSOR=powerpc ;; esac echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NSE-?:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "$cputype" = "386"; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit ;; *:ITS:*:*) echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit ;; i*86:skyos:*:*) echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' exit ;; i*86:rdos:*:*) echo ${UNAME_MACHINE}-pc-rdos exit ;; i*86:AROS:*:*) echo ${UNAME_MACHINE}-pc-aros exit ;; esac #echo '(No uname command or uname output not recognized.)' 1>&2 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 eval $set_cc_for_build cat >$dummy.c < # include #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) printf ("arm-acorn-riscix\n"); exit (0); #endif #if defined (hp300) && !defined (hpux) printf ("m68k-hp-bsd\n"); exit (0); #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) # if !defined (ultrix) # include # if defined (BSD) # if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); # else # if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); # else printf ("vax-dec-bsd\n"); exit (0); # endif # endif # else printf ("vax-dec-bsd\n"); exit (0); # endif # else printf ("vax-dec-ultrix\n"); exit (0); # endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # Convex versions that predate uname can use getsysinfo(1) if [ -x /usr/convex/getsysinfo ] then case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd exit ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; c34*) echo c34-convex-bsd exit ;; c38*) echo c38-convex-bsd exit ;; c4*) echo c4-convex-bsd exit ;; esac fi cat >&2 < in order to provide the needed information to handle your system. config.guess timestamp = $timestamp 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` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = ${UNAME_MACHINE} UNAME_RELEASE = ${UNAME_RELEASE} UNAME_SYSTEM = ${UNAME_SYSTEM} UNAME_VERSION = ${UNAME_VERSION} EOF exit 1 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: gliv-1.9.7/Makefile.am0000644000076400007640000000372311465576131012011 0ustar ggSUBDIRS = $(lib) \ intl \ po \ tools \ man \ src if NEED_REPLACEMENTS lib = lib endif EXTRA_DIST = config.rpath noinst_DATA = gliv.desktop gliv.png gliv.svg CLEANFILES = gliv.desktop gliv.desktop: gliv.desktop.tmpl sed -e 's|@SHAREDIR@|$(datadir)|g' -e 's|@BINDIR@|$(bindir)|g' < $< > $@ install-data-hook: @echo @echo "+----------------------------------------------------------+" @echo "| |" @echo "| Note to Zsh users |" @echo "| |" @echo "| If you use Zsh's completion mechanism, you can install |" @echo '| tools/_gliv in $$ZSH_PREFIX/share/zsh/site-functions/ |' @echo "| to have Zsh's completion on GLiv's parameters. |" @echo "| |" @echo "+----------------------------------------------------------+" @echo @if desktop-file-install --help > /dev/null 2>&1; then \ echo "Installing the GLiv desktop file with desktop-file-install"; \ mkdir -p $(datadir)/{pixmaps,applications} || true; \ cp gliv.png $(datadir)/pixmaps/gliv.png || true; \ desktop-file-install --vendor=gnome --dir=$(datadir)/applications \ gliv.desktop || true; \ else \ echo "No desktop-file-install(1), skipping gliv.desktop"; \ fi uninstall-hook: rm $(datadir)/pixmaps/gliv.png || true rm $(datadir)/applications/gnome-gliv.desktop || true gliv-1.9.7/mkinstalldirs0000755000076400007640000000672211465576131012565 0ustar gg#! /bin/sh # mkinstalldirs --- make directory hierarchy scriptversion=2009-04-28.21; # UTC # Original author: Noah Friedman # Created: 1993-05-16 # Public domain. # # This file is maintained in Automake, please report # bugs to or send patches to # . nl=' ' IFS=" "" $nl" errstatus=0 dirmode= usage="\ Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ... Create each directory DIR (with mode MODE, if specified), including all leading file name components. Report bugs to ." # process command line arguments while test $# -gt 0 ; do case $1 in -h | --help | --h*) # -h for help echo "$usage" exit $? ;; -m) # -m PERM arg shift test $# -eq 0 && { echo "$usage" 1>&2; exit 1; } dirmode=$1 shift ;; --version) echo "$0 $scriptversion" exit $? ;; --) # stop option processing shift break ;; -*) # unknown option echo "$usage" 1>&2 exit 1 ;; *) # first non-opt arg break ;; esac done for file do if test -d "$file"; then shift else break fi done case $# in 0) exit 0 ;; esac # Solaris 8's mkdir -p isn't thread-safe. If you mkdir -p a/b and # mkdir -p a/c at the same time, both will detect that a is missing, # one will create a, then the other will try to create a and die with # a "File exists" error. This is a problem when calling mkinstalldirs # from a parallel make. We use --version in the probe to restrict # ourselves to GNU mkdir, which is thread-safe. case $dirmode in '') if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then echo "mkdir -p -- $*" exec mkdir -p -- "$@" else # On NextStep and OpenStep, the `mkdir' command does not # recognize any option. It will interpret all options as # directories to create, and then abort because `.' already # exists. test -d ./-p && rmdir ./-p test -d ./--version && rmdir ./--version fi ;; *) if mkdir -m "$dirmode" -p --version . >/dev/null 2>&1 && test ! -d ./--version; then echo "mkdir -m $dirmode -p -- $*" exec mkdir -m "$dirmode" -p -- "$@" else # Clean up after NextStep and OpenStep mkdir. for d in ./-m ./-p ./--version "./$dirmode"; do test -d $d && rmdir $d done fi ;; esac for file do case $file in /*) pathcomp=/ ;; *) pathcomp= ;; esac oIFS=$IFS IFS=/ set fnord $file shift IFS=$oIFS for d do test "x$d" = x && continue pathcomp=$pathcomp$d case $pathcomp in -*) pathcomp=./$pathcomp ;; esac if test ! -d "$pathcomp"; then echo "mkdir $pathcomp" mkdir "$pathcomp" || lasterr=$? if test ! -d "$pathcomp"; then errstatus=$lasterr else if test ! -z "$dirmode"; then echo "chmod $dirmode $pathcomp" lasterr= chmod "$dirmode" "$pathcomp" || lasterr=$? if test ! -z "$lasterr"; then errstatus=$lasterr fi fi fi fi pathcomp=$pathcomp/ done done exit $errstatus # 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: gliv-1.9.7/gliv.desktop.tmpl0000644000076400007640000000070311465576131013257 0ustar gg[Desktop Entry] Type=Application Version=1.0 Encoding=UTF-8 Name=GLiv Image Viewer Name[fr]=Visualisateur d'images GLiv GenericName=Image Viewer GenericName[fr]=Visualisateur d'images Icon=@SHAREDIR@/pixmaps/gliv.png TryExec=@BINDIR@/gliv Exec=@BINDIR@/gliv %F Terminal=false Categories=Application;Graphics;RasterGraphics;Viewer; MimeType=image/bmp;image/gif;image/jpeg;image/jpg;image/pjpeg;image/png;image/tiff;image/x-bmp;image/x-png;image/x-tga; gliv-1.9.7/lib/0000755000076400007640000000000011465576131010516 5ustar gggliv-1.9.7/lib/getdelim.c0000644000076400007640000000317411465576131012461 0ustar gg/* Taken from uClibc and adapted to GLiv */ /* Copyright (C) 2004 Manuel Novoa III * * GNU Library General Public License (LGPL) version 2 or later. * * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details. */ #include "stdio.h" #include "stdlib.h" #include "getdelim.h" /* Note: There is a defect in this function. (size_t vs long). */ /* glibc function -- * Return -1 if error or EOF prior to any chars read. * Return number of chars read (including possible delimiter but not * the terminating nul) otherwise. * * NOTE: If we need to allocate a buffer, we do so prior to attempting * a reading. So space may be allocated even if initially at EOF. */ #define GETDELIM_GROWBY 64 long getdelim(char ** lineptr, size_t * n, int delimiter, FILE * stream) { char *buf; long pos = -1; int c; if (lineptr && n && stream) { if (!(buf = *lineptr)) { /* If passed NULL for buffer, */ *n = 0; /* ignore value passed and treat size as 0. */ } /* Within the loop, pos is actually the current buffer index + 2, * because we want to make sure we have enough space to store * an additional char plus a nul terminator. */ pos = 1; do { if (pos >= *n) { if (!(buf = realloc(buf, *n + GETDELIM_GROWBY))) { pos = -1; break; } *n += GETDELIM_GROWBY; *lineptr = buf; } if ((c = fgetc(stream)) != EOF) { buf[++pos - 2] = c; if (c != delimiter) { continue; } } /* We're done, so correct pos back to being the current index. */ if ((pos -= 2) >= 0) { buf[++pos] = 0; } break; } while (1); } return pos; } gliv-1.9.7/lib/getopt.h0000644000076400007640000001445711465576131012204 0ustar gg/* Declarations for getopt. Copyright (C) 1989-1994, 1996-1999, 2001 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library 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 Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #ifndef _GETOPT_H #ifndef __need_getopt # define _GETOPT_H 1 #endif /* If __GNU_LIBRARY__ is not already defined, either we are being used standalone, or this is the first header included in the source file. If we are being used with glibc, we need to include , but that does not exist if we are standalone. So: if __GNU_LIBRARY__ is not defined, include , which will pull in for us if it's from glibc. (Why ctype.h? It's guaranteed to exist and it doesn't flood the namespace with stuff the way some other headers do.) */ #if !defined __GNU_LIBRARY__ # include #endif #ifdef __cplusplus extern "C" { #endif /* For communication from `getopt' to the caller. When `getopt' finds an option that takes an argument, the argument value is returned here. Also, when `ordering' is RETURN_IN_ORDER, each non-option ARGV-element is returned here. */ extern char *optarg; /* Index in ARGV of the next element to be scanned. This is used for communication to and from the caller and for communication between successive calls to `getopt'. On entry to `getopt', zero means this is the first call; initialize. When `getopt' returns -1, this is the index of the first of the non-option elements that the caller should itself scan. Otherwise, `optind' communicates from one call to the next how much of ARGV has been scanned so far. */ extern int optind; /* Callers store zero here to inhibit the error message `getopt' prints for unrecognized options. */ extern int opterr; /* Set to an option character which was unrecognized. */ extern int optopt; #ifndef __need_getopt /* Describe the long-named options requested by the application. The LONG_OPTIONS argument to getopt_long or getopt_long_only is a vector of `struct option' terminated by an element containing a name which is zero. The field `has_arg' is: no_argument (or 0) if the option does not take an argument, required_argument (or 1) if the option requires an argument, optional_argument (or 2) if the option takes an optional argument. If the field `flag' is not NULL, it points to a variable that is set to the value given in the field `val' when the option is found, but left unchanged if the option is not found. To have a long-named option do something other than set an `int' to a compiled-in constant, such as set a value from `optarg', set the option's `flag' field to zero and its `val' field to a nonzero value (the equivalent single-letter option character, if there is one). For long options that have a zero `flag' field, `getopt' returns the contents of the `val' field. */ struct option { # if (defined __STDC__ && __STDC__) || defined __cplusplus const char *name; # else char *name; # endif /* has_arg can't be an enum because some compilers complain about type mismatches in all the code that assumes it is an int. */ int has_arg; int *flag; int val; }; /* Names for the values of the `has_arg' field of `struct option'. */ # define no_argument 0 # define required_argument 1 # define optional_argument 2 #endif /* need getopt */ /* Get definitions and prototypes for functions to process the arguments in ARGV (ARGC of them, minus the program name) for options given in OPTS. Return the option character from OPTS just read. Return -1 when there are no more options. For unrecognized options, or options missing arguments, `optopt' is set to the option letter, and '?' is returned. The OPTS string is a list of characters which are recognized option letters, optionally followed by colons, specifying that that letter takes an argument, to be placed in `optarg'. If a letter in OPTS is followed by two colons, its argument is optional. This behavior is specific to the GNU `getopt'. The argument `--' causes premature termination of argument scanning, explicitly telling `getopt' that there are no more options. If OPTS begins with `--', then non-option arguments are treated as arguments to the option '\0'. This behavior is specific to the GNU `getopt'. */ #if (defined __STDC__ && __STDC__) || defined __cplusplus # ifdef __GNU_LIBRARY__ /* Many other libraries have conflicting prototypes for getopt, with differences in the consts, in stdlib.h. To avoid compilation errors, only prototype getopt for the GNU C library. */ extern int getopt (int __argc, char *const *__argv, const char *__shortopts); # else /* not __GNU_LIBRARY__ */ extern int getopt (); # endif /* __GNU_LIBRARY__ */ # ifndef __need_getopt extern int getopt_long (int __argc, char *const *__argv, const char *__shortopts, const struct option *__longopts, int *__longind); extern int getopt_long_only (int __argc, char *const *__argv, const char *__shortopts, const struct option *__longopts, int *__longind); /* Internal only. Users should not call this directly. */ extern int _getopt_internal (int __argc, char *const *__argv, const char *__shortopts, const struct option *__longopts, int *__longind, int __long_only); # endif #else /* not __STDC__ */ extern int getopt (); # ifndef __need_getopt extern int getopt_long (); extern int getopt_long_only (); extern int _getopt_internal (); # endif #endif /* __STDC__ */ #ifdef __cplusplus } #endif /* Make sure we later can get all the definitions and declarations. */ #undef __need_getopt #endif /* getopt.h */ gliv-1.9.7/lib/getdelim.h0000644000076400007640000000031611465576131012461 0ustar gg/* #included only if getdelim() is lacking. */ #include /* size_t */ #include /* FILE */ long getdelim(char **LINEPTR, size_t * N, int delim, FILE * STREAM); gliv-1.9.7/lib/Makefile.am0000644000076400007640000000106711465576131012556 0ustar ggEXTRA_DIST = $(getdelim_dist) \ $(getopt_long_dist) if NEED_REPLACEMENTS noinst_LIBRARIES = libreplacements.a libreplacements_a_SOURCES = $(getdelim_src) \ $(getopt_long_src) endif getdelim_files = $(srcdir)/getdelim.c $(srcdir)/getdelim.h if GETDELIM getdelim_dist = $(getdelim_files) else getdelim_src = $(getdelim_files) endif getopt_long_files = $(srcdir)/getopt.c $(srcdir)/getopt.h $(srcdir)/getopt1.c if GETOPT_LONG getopt_long_dist = $(getopt_long_files) else getopt_long_src = $(getopt_long_files) endif gliv-1.9.7/lib/getopt1.c0000644000076400007640000001065011465576131012247 0ustar gg/* getopt_long and getopt_long_only entry points for GNU getopt. Copyright (C) 1987,88,89,90,91,92,93,94,96,97,98 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library 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 Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #ifdef HAVE_CONFIG_H #include #endif #include "getopt.h" #if !defined __STDC__ || !__STDC__ /* This is a separate conditional since some stdc systems reject `defined (const)'. */ #ifndef const #define const #endif #endif #include /* Comment out all this code if we are using the GNU C Library, and are not actually compiling the library itself. This code is part of the GNU C Library, but also included in many other GNU distributions. Compiling and linking in this code is a waste when using the GNU C library (especially if it is a shared library). Rather than having every GNU program understand `configure --with-gnu-libc' and omit the object files, it is simpler to just do this in the source for each such file. */ #define GETOPT_INTERFACE_VERSION 2 #if !defined _LIBC && defined __GLIBC__ && __GLIBC__ >= 2 #include #if _GNU_GETOPT_INTERFACE_VERSION == GETOPT_INTERFACE_VERSION #define ELIDE_CODE #endif #endif #ifndef ELIDE_CODE /* This needs to come after some library #include to get __GNU_LIBRARY__ defined. */ #ifdef __GNU_LIBRARY__ #include #endif #ifndef NULL #define NULL 0 #endif int getopt_long (argc, argv, options, long_options, opt_index) int argc; char *const *argv; const char *options; const struct option *long_options; int *opt_index; { return _getopt_internal (argc, argv, options, long_options, opt_index, 0); } /* Like getopt_long, but '-' as well as '--' can indicate a long option. If an option that starts with '-' (not '--') doesn't match a long option, but does match a short option, it is parsed as a short option instead. */ int getopt_long_only (argc, argv, options, long_options, opt_index) int argc; char *const *argv; const char *options; const struct option *long_options; int *opt_index; { return _getopt_internal (argc, argv, options, long_options, opt_index, 1); } #endif /* Not ELIDE_CODE. */ #ifdef TEST #include int main (argc, argv) int argc; char **argv; { int c; int digit_optind = 0; while (1) { int this_option_optind = optind ? optind : 1; int option_index = 0; static struct option long_options[] = { {"add", 1, 0, 0}, {"append", 0, 0, 0}, {"delete", 1, 0, 0}, {"verbose", 0, 0, 0}, {"create", 0, 0, 0}, {"file", 1, 0, 0}, {0, 0, 0, 0} }; c = getopt_long (argc, argv, "abc:d:0123456789", long_options, &option_index); if (c == -1) break; switch (c) { case 0: printf ("option %s", long_options[option_index].name); if (optarg) printf (" with arg %s", optarg); printf ("\n"); break; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': if (digit_optind != 0 && digit_optind != this_option_optind) printf ("digits occur in two different argv-elements.\n"); digit_optind = this_option_optind; printf ("option %c\n", c); break; case 'a': printf ("option a\n"); break; case 'b': printf ("option b\n"); break; case 'c': printf ("option c with value `%s'\n", optarg); break; case 'd': printf ("option d with value `%s'\n", optarg); break; case '?': break; default: printf ("?? getopt returned character code 0%o ??\n", c); } } if (optind < argc) { printf ("non-option ARGV-elements: "); while (optind < argc) printf ("%s ", argv[optind++]); printf ("\n"); } exit (0); } #endif /* TEST */ gliv-1.9.7/lib/Makefile.in0000644000076400007640000005016711465576131012574 0ustar gg# 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 = : build_triplet = @build@ host_triplet = @host@ subdir = lib 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 = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LIBRARIES = $(noinst_LIBRARIES) AR = ar ARFLAGS = cru libreplacements_a_AR = $(AR) $(ARFLAGS) libreplacements_a_LIBADD = am__libreplacements_a_SOURCES_DIST = $(srcdir)/getdelim.c \ $(srcdir)/getdelim.h $(srcdir)/getopt.c $(srcdir)/getopt.h \ $(srcdir)/getopt1.c am__objects_1 = getdelim.$(OBJEXT) @GETDELIM_FALSE@am__objects_2 = $(am__objects_1) am__objects_3 = getopt.$(OBJEXT) getopt1.$(OBJEXT) @GETOPT_LONG_FALSE@am__objects_4 = $(am__objects_3) @NEED_REPLACEMENTS_TRUE@am_libreplacements_a_OBJECTS = \ @NEED_REPLACEMENTS_TRUE@ $(am__objects_2) $(am__objects_4) libreplacements_a_OBJECTS = $(am_libreplacements_a_OBJECTS) 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 = $(libreplacements_a_SOURCES) DIST_SOURCES = $(am__libreplacements_a_SOURCES_DIST) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CFLAG_VISIBILITY = @CFLAG_VISIBILITY@ 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@ GENCAT = @GENCAT@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ GTKGLEXT_CFLAGS = @GTKGLEXT_CFLAGS@ GTKGLEXT_LIBS = @GTKGLEXT_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ HAVE_WPRINTF = @HAVE_WPRINTF@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_DEFAULT_VERBOSITY = @INTL_DEFAULT_VERBOSITY@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBMULTITHREAD = @LIBMULTITHREAD@ LIBOBJS = @LIBOBJS@ LIBPTH = @LIBPTH@ LIBPTH_PREFIX = @LIBPTH_PREFIX@ LIBS = @LIBS@ LIBTHREAD = @LIBTHREAD@ LTLIBC = @LTLIBC@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBMULTITHREAD = @LTLIBMULTITHREAD@ LTLIBOBJS = @LTLIBOBJS@ LTLIBPTH = @LTLIBPTH@ LTLIBTHREAD = @LTLIBTHREAD@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ 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@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WINDRES = @WINDRES@ WOE32 = @WOE32@ WOE32DLL = @WOE32DLL@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ 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 = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ 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@ 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@ EXTRA_DIST = $(getdelim_dist) \ $(getopt_long_dist) @NEED_REPLACEMENTS_TRUE@noinst_LIBRARIES = libreplacements.a @NEED_REPLACEMENTS_TRUE@libreplacements_a_SOURCES = $(getdelim_src) \ @NEED_REPLACEMENTS_TRUE@ $(getopt_long_src) getdelim_files = $(srcdir)/getdelim.c $(srcdir)/getdelim.h @GETDELIM_TRUE@getdelim_dist = $(getdelim_files) @GETDELIM_FALSE@getdelim_src = $(getdelim_files) getopt_long_files = $(srcdir)/getopt.c $(srcdir)/getopt.h $(srcdir)/getopt1.c @GETOPT_LONG_TRUE@getopt_long_dist = $(getopt_long_files) @GETOPT_LONG_FALSE@getopt_long_src = $(getopt_long_files) 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 lib/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign lib/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): clean-noinstLIBRARIES: -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) libreplacements.a: $(libreplacements_a_OBJECTS) $(libreplacements_a_DEPENDENCIES) -rm -f libreplacements.a $(libreplacements_a_AR) libreplacements.a $(libreplacements_a_OBJECTS) $(libreplacements_a_LIBADD) $(RANLIB) libreplacements.a mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getdelim.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getopt.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getopt1.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) '$<'` getdelim.o: $(srcdir)/getdelim.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getdelim.o -MD -MP -MF $(DEPDIR)/getdelim.Tpo -c -o getdelim.o `test -f '$(srcdir)/getdelim.c' || echo '$(srcdir)/'`$(srcdir)/getdelim.c @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/getdelim.Tpo $(DEPDIR)/getdelim.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(srcdir)/getdelim.c' object='getdelim.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getdelim.o `test -f '$(srcdir)/getdelim.c' || echo '$(srcdir)/'`$(srcdir)/getdelim.c getdelim.obj: $(srcdir)/getdelim.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getdelim.obj -MD -MP -MF $(DEPDIR)/getdelim.Tpo -c -o getdelim.obj `if test -f '$(srcdir)/getdelim.c'; then $(CYGPATH_W) '$(srcdir)/getdelim.c'; else $(CYGPATH_W) '$(srcdir)/$(srcdir)/getdelim.c'; fi` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/getdelim.Tpo $(DEPDIR)/getdelim.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(srcdir)/getdelim.c' object='getdelim.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getdelim.obj `if test -f '$(srcdir)/getdelim.c'; then $(CYGPATH_W) '$(srcdir)/getdelim.c'; else $(CYGPATH_W) '$(srcdir)/$(srcdir)/getdelim.c'; fi` getopt.o: $(srcdir)/getopt.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.o -MD -MP -MF $(DEPDIR)/getopt.Tpo -c -o getopt.o `test -f '$(srcdir)/getopt.c' || echo '$(srcdir)/'`$(srcdir)/getopt.c @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(srcdir)/getopt.c' object='getopt.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.o `test -f '$(srcdir)/getopt.c' || echo '$(srcdir)/'`$(srcdir)/getopt.c getopt.obj: $(srcdir)/getopt.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.obj -MD -MP -MF $(DEPDIR)/getopt.Tpo -c -o getopt.obj `if test -f '$(srcdir)/getopt.c'; then $(CYGPATH_W) '$(srcdir)/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(srcdir)/getopt.c'; fi` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(srcdir)/getopt.c' object='getopt.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.obj `if test -f '$(srcdir)/getopt.c'; then $(CYGPATH_W) '$(srcdir)/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(srcdir)/getopt.c'; fi` getopt1.o: $(srcdir)/getopt1.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt1.o -MD -MP -MF $(DEPDIR)/getopt1.Tpo -c -o getopt1.o `test -f '$(srcdir)/getopt1.c' || echo '$(srcdir)/'`$(srcdir)/getopt1.c @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/getopt1.Tpo $(DEPDIR)/getopt1.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(srcdir)/getopt1.c' object='getopt1.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt1.o `test -f '$(srcdir)/getopt1.c' || echo '$(srcdir)/'`$(srcdir)/getopt1.c getopt1.obj: $(srcdir)/getopt1.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt1.obj -MD -MP -MF $(DEPDIR)/getopt1.Tpo -c -o getopt1.obj `if test -f '$(srcdir)/getopt1.c'; then $(CYGPATH_W) '$(srcdir)/getopt1.c'; else $(CYGPATH_W) '$(srcdir)/$(srcdir)/getopt1.c'; fi` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/getopt1.Tpo $(DEPDIR)/getopt1.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(srcdir)/getopt1.c' object='getopt1.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt1.obj `if test -f '$(srcdir)/getopt1.c'; then $(CYGPATH_W) '$(srcdir)/getopt1.c'; else $(CYGPATH_W) '$(srcdir)/$(srcdir)/getopt1.c'; fi` 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 $(LIBRARIES) installdirs: 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 clean-noinstLIBRARIES 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-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: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-noinstLIBRARIES ctags distclean distclean-compile \ distclean-generic distclean-tags distdir 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 maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic pdf pdf-am ps ps-am tags 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: gliv-1.9.7/lib/getopt.c0000644000076400007640000007270311465576131012175 0ustar gg/* Getopt for GNU. NOTE: getopt is now part of the C library, so if you don't know what "Keep this file name-space clean" means, talk to drepper@gnu.org before changing it! Copyright (C) 1987,88,89,90,91,92,93,94,95,96,98,99,2000,2001 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library 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 Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ /* This tells Alpha OSF/1 not to define a getopt prototype in . Ditto for AIX 3.2 and . */ #ifndef _NO_PROTO # define _NO_PROTO #endif #ifdef HAVE_CONFIG_H # include #endif #if !defined __STDC__ || !__STDC__ /* This is a separate conditional since some stdc systems reject `defined (const)'. */ # ifndef const # define const # endif #endif #include /* Comment out all this code if we are using the GNU C Library, and are not actually compiling the library itself. This code is part of the GNU C Library, but also included in many other GNU distributions. Compiling and linking in this code is a waste when using the GNU C library (especially if it is a shared library). Rather than having every GNU program understand `configure --with-gnu-libc' and omit the object files, it is simpler to just do this in the source for each such file. */ #define GETOPT_INTERFACE_VERSION 2 #if !defined _LIBC && defined __GLIBC__ && __GLIBC__ >= 2 # include # if _GNU_GETOPT_INTERFACE_VERSION == GETOPT_INTERFACE_VERSION # define ELIDE_CODE # endif #endif #ifndef ELIDE_CODE /* This needs to come after some library #include to get __GNU_LIBRARY__ defined. */ #ifdef __GNU_LIBRARY__ /* Don't include stdlib.h for non-GNU C libraries because some of them contain conflicting prototypes for getopt. */ # include # include #endif /* GNU C library. */ #ifdef VMS # include # if HAVE_STRING_H - 0 # include # endif #endif #ifndef _ /* This is for other GNU distributions with internationalized messages. */ # if defined HAVE_LIBINTL_H || defined _LIBC # include # ifndef _ # define _(msgid) gettext (msgid) # endif # else # define _(msgid) (msgid) # endif #endif /* This version of `getopt' appears to the caller like standard Unix `getopt' but it behaves differently for the user, since it allows the user to intersperse the options with the other arguments. As `getopt' works, it permutes the elements of ARGV so that, when it is done, all the options precede everything else. Thus all application programs are extended to handle flexible argument order. Setting the environment variable POSIXLY_CORRECT disables permutation. Then the behavior is completely standard. GNU application programs can use a third alternative mode in which they can distinguish the relative order of options and other arguments. */ #include "getopt.h" /* For communication from `getopt' to the caller. When `getopt' finds an option that takes an argument, the argument value is returned here. Also, when `ordering' is RETURN_IN_ORDER, each non-option ARGV-element is returned here. */ char *optarg; /* Index in ARGV of the next element to be scanned. This is used for communication to and from the caller and for communication between successive calls to `getopt'. On entry to `getopt', zero means this is the first call; initialize. When `getopt' returns -1, this is the index of the first of the non-option elements that the caller should itself scan. Otherwise, `optind' communicates from one call to the next how much of ARGV has been scanned so far. */ /* 1003.2 says this must be 1 before any call. */ int optind = 1; /* Formerly, initialization of getopt depended on optind==0, which causes problems with re-calling getopt as programs generally don't know that. */ int __getopt_initialized; /* The next char to be scanned in the option-element in which the last option character we returned was found. This allows us to pick up the scan where we left off. If this is zero, or a null string, it means resume the scan by advancing to the next ARGV-element. */ static char *nextchar; /* Callers store zero here to inhibit the error message for unrecognized options. */ int opterr = 1; /* Set to an option character which was unrecognized. This must be initialized on some systems to avoid linking in the system's own getopt implementation. */ int optopt = '?'; /* Describe how to deal with options that follow non-option ARGV-elements. If the caller did not specify anything, the default is REQUIRE_ORDER if the environment variable POSIXLY_CORRECT is defined, PERMUTE otherwise. REQUIRE_ORDER means don't recognize them as options; stop option processing when the first non-option is seen. This is what Unix does. This mode of operation is selected by either setting the environment variable POSIXLY_CORRECT, or using `+' as the first character of the list of option characters. PERMUTE is the default. We permute the contents of ARGV as we scan, so that eventually all the non-options are at the end. This allows options to be given in any order, even with programs that were not written to expect this. RETURN_IN_ORDER is an option available to programs that were written to expect options and other ARGV-elements in any order and that care about the ordering of the two. We describe each non-option ARGV-element as if it were the argument of an option with character code 1. Using `-' as the first character of the list of option characters selects this mode of operation. The special argument `--' forces an end of option-scanning regardless of the value of `ordering'. In the case of RETURN_IN_ORDER, only `--' can cause `getopt' to return -1 with `optind' != ARGC. */ static enum { REQUIRE_ORDER, PERMUTE, RETURN_IN_ORDER } ordering; /* Value of POSIXLY_CORRECT environment variable. */ static char *posixly_correct; #ifdef __GNU_LIBRARY__ /* We want to avoid inclusion of string.h with non-GNU libraries because there are many ways it can cause trouble. On some systems, it contains special magic macros that don't work in GCC. */ # include # define my_index strchr #else # if HAVE_STRING_H # include # else # include # endif /* Avoid depending on library functions or files whose names are inconsistent. */ #ifndef getenv extern char *getenv (); #endif static char * my_index (str, chr) const char *str; int chr; { while (*str) { if (*str == chr) return (char *) str; str++; } return 0; } /* If using GCC, we can safely declare strlen this way. If not using GCC, it is ok not to declare it. */ #ifdef __GNUC__ /* Note that Motorola Delta 68k R3V7 comes with GCC but not stddef.h. That was relevant to code that was here before. */ # if (!defined __STDC__ || !__STDC__) && !defined strlen /* gcc with -traditional declares the built-in strlen to return int, and has done so at least since version 2.4.5. -- rms. */ extern int strlen (const char *); # endif /* not __STDC__ */ #endif /* __GNUC__ */ #endif /* not __GNU_LIBRARY__ */ /* Handle permutation of arguments. */ /* Describe the part of ARGV that contains non-options that have been skipped. `first_nonopt' is the index in ARGV of the first of them; `last_nonopt' is the index after the last of them. */ static int first_nonopt; static int last_nonopt; #ifdef _LIBC /* Stored original parameters. XXX This is no good solution. We should rather copy the args so that we can compare them later. But we must not use malloc(3). */ extern int __libc_argc; extern char **__libc_argv; /* Bash 2.0 gives us an environment variable containing flags indicating ARGV elements that should not be considered arguments. */ # ifdef USE_NONOPTION_FLAGS /* Defined in getopt_init.c */ extern char *__getopt_nonoption_flags; static int nonoption_flags_max_len; static int nonoption_flags_len; # endif # ifdef USE_NONOPTION_FLAGS # define SWAP_FLAGS(ch1, ch2) \ if (nonoption_flags_len > 0) \ { \ char __tmp = __getopt_nonoption_flags[ch1]; \ __getopt_nonoption_flags[ch1] = __getopt_nonoption_flags[ch2]; \ __getopt_nonoption_flags[ch2] = __tmp; \ } # else # define SWAP_FLAGS(ch1, ch2) # endif #else /* !_LIBC */ # define SWAP_FLAGS(ch1, ch2) #endif /* _LIBC */ /* Exchange two adjacent subsequences of ARGV. One subsequence is elements [first_nonopt,last_nonopt) which contains all the non-options that have been skipped so far. The other is elements [last_nonopt,optind), which contains all the options processed since those non-options were skipped. `first_nonopt' and `last_nonopt' are relocated so that they describe the new indices of the non-options in ARGV after they are moved. */ #if defined __STDC__ && __STDC__ static void exchange (char **); #endif static void exchange (argv) char **argv; { int bottom = first_nonopt; int middle = last_nonopt; int top = optind; char *tem; /* Exchange the shorter segment with the far end of the longer segment. That puts the shorter segment into the right place. It leaves the longer segment in the right place overall, but it consists of two parts that need to be swapped next. */ #if defined _LIBC && defined USE_NONOPTION_FLAGS /* First make sure the handling of the `__getopt_nonoption_flags' string can work normally. Our top argument must be in the range of the string. */ if (nonoption_flags_len > 0 && top >= nonoption_flags_max_len) { /* We must extend the array. The user plays games with us and presents new arguments. */ char *new_str = malloc (top + 1); if (new_str == NULL) nonoption_flags_len = nonoption_flags_max_len = 0; else { memset (__mempcpy (new_str, __getopt_nonoption_flags, nonoption_flags_max_len), '\0', top + 1 - nonoption_flags_max_len); nonoption_flags_max_len = top + 1; __getopt_nonoption_flags = new_str; } } #endif while (top > middle && middle > bottom) { if (top - middle > middle - bottom) { /* Bottom segment is the short one. */ int len = middle - bottom; register int i; /* Swap it with the top part of the top segment. */ for (i = 0; i < len; i++) { tem = argv[bottom + i]; argv[bottom + i] = argv[top - (middle - bottom) + i]; argv[top - (middle - bottom) + i] = tem; SWAP_FLAGS (bottom + i, top - (middle - bottom) + i); } /* Exclude the moved bottom segment from further swapping. */ top -= len; } else { /* Top segment is the short one. */ int len = top - middle; register int i; /* Swap it with the bottom part of the bottom segment. */ for (i = 0; i < len; i++) { tem = argv[bottom + i]; argv[bottom + i] = argv[middle + i]; argv[middle + i] = tem; SWAP_FLAGS (bottom + i, middle + i); } /* Exclude the moved top segment from further swapping. */ bottom += len; } } /* Update records for the slots the non-options now occupy. */ first_nonopt += (optind - last_nonopt); last_nonopt = optind; } /* Initialize the internal data when the first call is made. */ #if defined __STDC__ && __STDC__ static const char *_getopt_initialize (int, char *const *, const char *); #endif static const char * _getopt_initialize (argc, argv, optstring) int argc; char *const *argv; const char *optstring; { /* Start processing options with ARGV-element 1 (since ARGV-element 0 is the program name); the sequence of previously skipped non-option ARGV-elements is empty. */ first_nonopt = last_nonopt = optind; nextchar = NULL; posixly_correct = getenv ("POSIXLY_CORRECT"); /* Determine how to handle the ordering of options and nonoptions. */ if (optstring[0] == '-') { ordering = RETURN_IN_ORDER; ++optstring; } else if (optstring[0] == '+') { ordering = REQUIRE_ORDER; ++optstring; } else if (posixly_correct != NULL) ordering = REQUIRE_ORDER; else ordering = PERMUTE; #if defined _LIBC && defined USE_NONOPTION_FLAGS if (posixly_correct == NULL && argc == __libc_argc && argv == __libc_argv) { if (nonoption_flags_max_len == 0) { if (__getopt_nonoption_flags == NULL || __getopt_nonoption_flags[0] == '\0') nonoption_flags_max_len = -1; else { const char *orig_str = __getopt_nonoption_flags; int len = nonoption_flags_max_len = strlen (orig_str); if (nonoption_flags_max_len < argc) nonoption_flags_max_len = argc; __getopt_nonoption_flags = (char *) malloc (nonoption_flags_max_len); if (__getopt_nonoption_flags == NULL) nonoption_flags_max_len = -1; else memset (__mempcpy (__getopt_nonoption_flags, orig_str, len), '\0', nonoption_flags_max_len - len); } } nonoption_flags_len = nonoption_flags_max_len; } else nonoption_flags_len = 0; #endif return optstring; } /* Scan elements of ARGV (whose length is ARGC) for option characters given in OPTSTRING. If an element of ARGV starts with '-', and is not exactly "-" or "--", then it is an option element. The characters of this element (aside from the initial '-') are option characters. If `getopt' is called repeatedly, it returns successively each of the option characters from each of the option elements. If `getopt' finds another option character, it returns that character, updating `optind' and `nextchar' so that the next call to `getopt' can resume the scan with the following option character or ARGV-element. If there are no more option characters, `getopt' returns -1. Then `optind' is the index in ARGV of the first ARGV-element that is not an option. (The ARGV-elements have been permuted so that those that are not options now come last.) OPTSTRING is a string containing the legitimate option characters. If an option character is seen that is not listed in OPTSTRING, return '?' after printing an error message. If you set `opterr' to zero, the error message is suppressed but we still return '?'. If a char in OPTSTRING is followed by a colon, that means it wants an arg, so the following text in the same ARGV-element, or the text of the following ARGV-element, is returned in `optarg'. Two colons mean an option that wants an optional arg; if there is text in the current ARGV-element, it is returned in `optarg', otherwise `optarg' is set to zero. If OPTSTRING starts with `-' or `+', it requests different methods of handling the non-option ARGV-elements. See the comments about RETURN_IN_ORDER and REQUIRE_ORDER, above. Long-named options begin with `--' instead of `-'. Their names may be abbreviated as long as the abbreviation is unique or is an exact match for some defined option. If they have an argument, it follows the option name in the same ARGV-element, separated from the option name by a `=', or else the in next ARGV-element. When `getopt' finds a long-named option, it returns 0 if that option's `flag' field is nonzero, the value of the option's `val' field if the `flag' field is zero. The elements of ARGV aren't really const, because we permute them. But we pretend they're const in the prototype to be compatible with other systems. LONGOPTS is a vector of `struct option' terminated by an element containing a name which is zero. LONGIND returns the index in LONGOPT of the long-named option found. It is only valid when a long-named option has been found by the most recent call. If LONG_ONLY is nonzero, '-' as well as '--' can introduce long-named options. */ int _getopt_internal (argc, argv, optstring, longopts, longind, long_only) int argc; char *const *argv; const char *optstring; const struct option *longopts; int *longind; int long_only; { int print_errors = opterr; if (optstring[0] == ':') print_errors = 0; if (argc < 1) return -1; optarg = NULL; if (optind == 0 || !__getopt_initialized) { if (optind == 0) optind = 1; /* Don't scan ARGV[0], the program name. */ optstring = _getopt_initialize (argc, argv, optstring); __getopt_initialized = 1; } /* Test whether ARGV[optind] points to a non-option argument. Either it does not have option syntax, or there is an environment flag from the shell indicating it is not an option. The later information is only used when the used in the GNU libc. */ #if defined _LIBC && defined USE_NONOPTION_FLAGS # define NONOPTION_P (argv[optind][0] != '-' || argv[optind][1] == '\0' \ || (optind < nonoption_flags_len \ && __getopt_nonoption_flags[optind] == '1')) #else # define NONOPTION_P (argv[optind][0] != '-' || argv[optind][1] == '\0') #endif if (nextchar == NULL || *nextchar == '\0') { /* Advance to the next ARGV-element. */ /* Give FIRST_NONOPT & LAST_NONOPT rational values if OPTIND has been moved back by the user (who may also have changed the arguments). */ if (last_nonopt > optind) last_nonopt = optind; if (first_nonopt > optind) first_nonopt = optind; if (ordering == PERMUTE) { /* If we have just processed some options following some non-options, exchange them so that the options come first. */ if (first_nonopt != last_nonopt && last_nonopt != optind) exchange ((char **) argv); else if (last_nonopt != optind) first_nonopt = optind; /* Skip any additional non-options and extend the range of non-options previously skipped. */ while (optind < argc && NONOPTION_P) optind++; last_nonopt = optind; } /* The special ARGV-element `--' means premature end of options. Skip it like a null option, then exchange with previous non-options as if it were an option, then skip everything else like a non-option. */ if (optind != argc && !strcmp (argv[optind], "--")) { optind++; if (first_nonopt != last_nonopt && last_nonopt != optind) exchange ((char **) argv); else if (first_nonopt == last_nonopt) first_nonopt = optind; last_nonopt = argc; optind = argc; } /* If we have done all the ARGV-elements, stop the scan and back over any non-options that we skipped and permuted. */ if (optind == argc) { /* Set the next-arg-index to point at the non-options that we previously skipped, so the caller will digest them. */ if (first_nonopt != last_nonopt) optind = first_nonopt; return -1; } /* If we have come to a non-option and did not permute it, either stop the scan or describe it to the caller and pass it by. */ if (NONOPTION_P) { if (ordering == REQUIRE_ORDER) return -1; optarg = argv[optind++]; return 1; } /* We have found another option-ARGV-element. Skip the initial punctuation. */ nextchar = (argv[optind] + 1 + (longopts != NULL && argv[optind][1] == '-')); } /* Decode the current option-ARGV-element. */ /* Check whether the ARGV-element is a long option. If long_only and the ARGV-element has the form "-f", where f is a valid short option, don't consider it an abbreviated form of a long option that starts with f. Otherwise there would be no way to give the -f short option. On the other hand, if there's a long option "fubar" and the ARGV-element is "-fu", do consider that an abbreviation of the long option, just like "--fu", and not "-f" with arg "u". This distinction seems to be the most useful approach. */ if (longopts != NULL && (argv[optind][1] == '-' || (long_only && (argv[optind][2] || !my_index (optstring, argv[optind][1]))))) { char *nameend; const struct option *p; const struct option *pfound = NULL; int exact = 0; int ambig = 0; int indfound = -1; int option_index; for (nameend = nextchar; *nameend && *nameend != '='; nameend++) /* Do nothing. */ ; /* Test all long options for either exact match or abbreviated matches. */ for (p = longopts, option_index = 0; p->name; p++, option_index++) if (!strncmp (p->name, nextchar, nameend - nextchar)) { if ((unsigned int) (nameend - nextchar) == (unsigned int) strlen (p->name)) { /* Exact match found. */ pfound = p; indfound = option_index; exact = 1; break; } else if (pfound == NULL) { /* First nonexact match found. */ pfound = p; indfound = option_index; } else if (long_only || pfound->has_arg != p->has_arg || pfound->flag != p->flag || pfound->val != p->val) /* Second or later nonexact match found. */ ambig = 1; } if (ambig && !exact) { if (print_errors) fprintf (stderr, _("%s: option `%s' is ambiguous\n"), argv[0], argv[optind]); nextchar += strlen (nextchar); optind++; optopt = 0; return '?'; } if (pfound != NULL) { option_index = indfound; optind++; if (*nameend) { /* Don't test has_arg with >, because some C compilers don't allow it to be used on enums. */ if (pfound->has_arg) optarg = nameend + 1; else { if (print_errors) { if (argv[optind - 1][1] == '-') /* --option */ fprintf (stderr, _("%s: option `--%s' doesn't allow an argument\n"), argv[0], pfound->name); else /* +option or -option */ fprintf (stderr, _("%s: option `%c%s' doesn't allow an argument\n"), argv[0], argv[optind - 1][0], pfound->name); } nextchar += strlen (nextchar); optopt = pfound->val; return '?'; } } else if (pfound->has_arg == 1) { if (optind < argc) optarg = argv[optind++]; else { if (print_errors) fprintf (stderr, _("%s: option `%s' requires an argument\n"), argv[0], argv[optind - 1]); nextchar += strlen (nextchar); optopt = pfound->val; return optstring[0] == ':' ? ':' : '?'; } } nextchar += strlen (nextchar); if (longind != NULL) *longind = option_index; if (pfound->flag) { *(pfound->flag) = pfound->val; return 0; } return pfound->val; } /* Can't find it as a long option. If this is not getopt_long_only, or the option starts with '--' or is not a valid short option, then it's an error. Otherwise interpret it as a short option. */ if (!long_only || argv[optind][1] == '-' || my_index (optstring, *nextchar) == NULL) { if (print_errors) { if (argv[optind][1] == '-') /* --option */ fprintf (stderr, _("%s: unrecognized option `--%s'\n"), argv[0], nextchar); else /* +option or -option */ fprintf (stderr, _("%s: unrecognized option `%c%s'\n"), argv[0], argv[optind][0], nextchar); } nextchar = (char *) ""; optind++; optopt = 0; return '?'; } } /* Look at and handle the next short option-character. */ { char c = *nextchar++; char *temp = my_index (optstring, c); /* Increment `optind' when we start to process its last character. */ if (*nextchar == '\0') ++optind; if (temp == NULL || c == ':') { if (print_errors) { if (posixly_correct) /* 1003.2 specifies the format of this message. */ fprintf (stderr, _("%s: illegal option -- %c\n"), argv[0], c); else fprintf (stderr, _("%s: invalid option -- %c\n"), argv[0], c); } optopt = c; return '?'; } /* Convenience. Treat POSIX -W foo same as long option --foo */ if (temp[0] == 'W' && temp[1] == ';') { char *nameend; const struct option *p; const struct option *pfound = NULL; int exact = 0; int ambig = 0; int indfound = 0; int option_index; /* This is an option that requires an argument. */ if (*nextchar != '\0') { optarg = nextchar; /* If we end this ARGV-element by taking the rest as an arg, we must advance to the next element now. */ optind++; } else if (optind == argc) { if (print_errors) { /* 1003.2 specifies the format of this message. */ fprintf (stderr, _("%s: option requires an argument -- %c\n"), argv[0], c); } optopt = c; if (optstring[0] == ':') c = ':'; else c = '?'; return c; } else /* We already incremented `optind' once; increment it again when taking next ARGV-elt as argument. */ optarg = argv[optind++]; /* optarg is now the argument, see if it's in the table of longopts. */ for (nextchar = nameend = optarg; *nameend && *nameend != '='; nameend++) /* Do nothing. */ ; /* Test all long options for either exact match or abbreviated matches. */ for (p = longopts, option_index = 0; p->name; p++, option_index++) if (!strncmp (p->name, nextchar, nameend - nextchar)) { if ((unsigned int) (nameend - nextchar) == strlen (p->name)) { /* Exact match found. */ pfound = p; indfound = option_index; exact = 1; break; } else if (pfound == NULL) { /* First nonexact match found. */ pfound = p; indfound = option_index; } else /* Second or later nonexact match found. */ ambig = 1; } if (ambig && !exact) { if (print_errors) fprintf (stderr, _("%s: option `-W %s' is ambiguous\n"), argv[0], argv[optind]); nextchar += strlen (nextchar); optind++; return '?'; } if (pfound != NULL) { option_index = indfound; if (*nameend) { /* Don't test has_arg with >, because some C compilers don't allow it to be used on enums. */ if (pfound->has_arg) optarg = nameend + 1; else { if (print_errors) fprintf (stderr, _("\ %s: option `-W %s' doesn't allow an argument\n"), argv[0], pfound->name); nextchar += strlen (nextchar); return '?'; } } else if (pfound->has_arg == 1) { if (optind < argc) optarg = argv[optind++]; else { if (print_errors) fprintf (stderr, _("%s: option `%s' requires an argument\n"), argv[0], argv[optind - 1]); nextchar += strlen (nextchar); return optstring[0] == ':' ? ':' : '?'; } } nextchar += strlen (nextchar); if (longind != NULL) *longind = option_index; if (pfound->flag) { *(pfound->flag) = pfound->val; return 0; } return pfound->val; } nextchar = NULL; return 'W'; /* Let the application handle it. */ } if (temp[1] == ':') { if (temp[2] == ':') { /* This is an option that accepts an argument optionally. */ if (*nextchar != '\0') { optarg = nextchar; optind++; } else optarg = NULL; nextchar = NULL; } else { /* This is an option that requires an argument. */ if (*nextchar != '\0') { optarg = nextchar; /* If we end this ARGV-element by taking the rest as an arg, we must advance to the next element now. */ optind++; } else if (optind == argc) { if (print_errors) { /* 1003.2 specifies the format of this message. */ fprintf (stderr, _("%s: option requires an argument -- %c\n"), argv[0], c); } optopt = c; if (optstring[0] == ':') c = ':'; else c = '?'; } else /* We already incremented `optind' once; increment it again when taking next ARGV-elt as argument. */ optarg = argv[optind++]; nextchar = NULL; } } return c; } } int getopt (argc, argv, optstring) int argc; char *const *argv; const char *optstring; { return _getopt_internal (argc, argv, optstring, (const struct option *) 0, (int *) 0, 0); } #endif /* Not ELIDE_CODE. */ #ifdef TEST /* Compile with -DTEST to make an executable for use in testing the above definition of `getopt'. */ int main (argc, argv) int argc; char **argv; { int c; int digit_optind = 0; while (1) { int this_option_optind = optind ? optind : 1; c = getopt (argc, argv, "abc:d:0123456789"); if (c == -1) break; switch (c) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': if (digit_optind != 0 && digit_optind != this_option_optind) printf ("digits occur in two different argv-elements.\n"); digit_optind = this_option_optind; printf ("option %c\n", c); break; case 'a': printf ("option a\n"); break; case 'b': printf ("option b\n"); break; case 'c': printf ("option c with value `%s'\n", optarg); break; case '?': break; default: printf ("?? getopt returned character code 0%o ??\n", c); } } if (optind < argc) { printf ("non-option ARGV-elements: "); while (optind < argc) printf ("%s ", argv[optind++]); printf ("\n"); } exit (0); } #endif /* TEST */ gliv-1.9.7/config.rpath0000755000076400007640000004401211465576131012261 0ustar gg#! /bin/sh # Output a system dependent set of variables, describing how to set the # run time search path of shared libraries in an executable. # # Copyright 1996-2010 Free Software Foundation, Inc. # Taken from GNU libtool, 2001 # Originally by Gordon Matzigkeit , 1996 # # 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. # # The first argument passed to this file is the canonical host specification, # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld # should be set by the caller. # # The set of defined variables is at the end of this script. # Known limitations: # - On IRIX 6.5 with CC="cc", the run time search patch must not be longer # than 256 bytes, otherwise the compiler driver will dump core. The only # known workaround is to choose shorter directory names for the build # directory and/or the installation directory. # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a shrext=.so host="$1" host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` # Code taken from libtool.m4's _LT_CC_BASENAME. for cc_temp in $CC""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'` # Code taken from libtool.m4's _LT_COMPILER_PIC. wl= if test "$GCC" = yes; then wl='-Wl,' else case "$host_os" in aix*) wl='-Wl,' ;; darwin*) case $cc_basename in xlc*) wl='-Wl,' ;; esac ;; mingw* | cygwin* | pw32* | os2* | cegcc*) ;; hpux9* | hpux10* | hpux11*) wl='-Wl,' ;; irix5* | irix6* | nonstopux*) wl='-Wl,' ;; newsos6) ;; linux* | k*bsd*-gnu) case $cc_basename in ecc*) wl='-Wl,' ;; icc* | ifort*) wl='-Wl,' ;; lf95*) wl='-Wl,' ;; pgcc | pgf77 | pgf90) wl='-Wl,' ;; ccc*) wl='-Wl,' ;; como) wl='-lopt=' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) wl='-Wl,' ;; esac ;; esac ;; osf3* | osf4* | osf5*) wl='-Wl,' ;; rdos*) ;; solaris*) wl='-Wl,' ;; sunos4*) wl='-Qoption ld ' ;; sysv4 | sysv4.2uw2* | sysv4.3*) wl='-Wl,' ;; sysv4*MP*) ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) wl='-Wl,' ;; unicos*) wl='-Wl,' ;; uts4*) ;; esac fi # Code taken from libtool.m4's _LT_LINKER_SHLIBS. hardcode_libdir_flag_spec= hardcode_libdir_separator= hardcode_direct=no hardcode_minus_L=no case "$host_os" in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs=yes if test "$with_gnu_ld" = yes; then # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. # Unlike libtool, we use -rpath here, not --rpath, since the documented # option of GNU ld is called -rpath, not --rpath. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' case "$host_os" in aix[3-9]*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs=no fi ;; amigaos*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we cannot use # them. ld_shlibs=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then : else ld_shlibs=no fi ;; interix[3-9]*) hardcode_direct=no hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; gnu* | linux* | k*bsd*-gnu) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; netbsd*) ;; solaris*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ld_shlibs=no elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' else ld_shlibs=no fi ;; esac ;; sunos4*) hardcode_direct=yes ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; esac if test "$ld_shlibs" = no; then hardcode_libdir_flag_spec= fi else case "$host_os" in aix3*) # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test "$GCC" = yes; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix[4-9]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac fi hardcode_direct=yes hardcode_libdir_separator=':' if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct=unsupported hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi ;; esac fi # Begin _LT_AC_SYS_LIBPATH_AIX. echo 'int main () { return 0; }' > conftest.c ${CC} ${LDFLAGS} conftest.c -o conftest aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` fi if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib" fi rm -f conftest.c conftest # End _LT_AC_SYS_LIBPATH_AIX. if test "$aix_use_runtimelinking" = yes; then hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' else hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" fi fi ;; amigaos*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes # see comment about different semantics on the GNU ld section ld_shlibs=no ;; bsdi[45]*) ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec=' ' libext=lib ;; darwin* | rhapsody*) hardcode_direct=no if test "$GCC" = yes ; then : else case $cc_basename in xlc*) ;; *) ld_shlibs=no ;; esac fi ;; dgux*) hardcode_libdir_flag_spec='-L$libdir' ;; freebsd1*) ld_shlibs=no ;; freebsd2.2*) hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes ;; freebsd2*) hardcode_direct=yes hardcode_minus_L=yes ;; freebsd* | dragonfly*) hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes ;; hpux9*) hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; hpux10*) if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes fi ;; hpux11*) if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: case $host_cpu in hppa*64*|ia64*) hardcode_direct=no ;; *) hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; netbsd*) hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes ;; newsos6) hardcode_direct=yes hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct=yes if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then hardcode_libdir_flag_spec='${wl}-rpath,$libdir' else case "$host_os" in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) hardcode_libdir_flag_spec='-R$libdir' ;; *) hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; esac fi else ld_shlibs=no fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; osf3*) hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) if test "$GCC" = yes; then hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else # Both cc and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi hardcode_libdir_separator=: ;; solaris*) hardcode_libdir_flag_spec='-R$libdir' ;; sunos4*) hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes ;; sysv4) case $host_vendor in sni) hardcode_direct=yes # is this really true??? ;; siemens) hardcode_direct=no ;; motorola) hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac ;; sysv4.3*) ;; sysv4*MP*) if test -d /usr/nec; then ld_shlibs=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) ;; sysv5* | sco3.2v5* | sco5v6*) hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator=':' ;; uts4*) hardcode_libdir_flag_spec='-L$libdir' ;; *) ld_shlibs=no ;; esac fi # Check dynamic linker characteristics # Code taken from libtool.m4's _LT_SYS_DYNAMIC_LINKER. # Unlike libtool.m4, here we don't care about _all_ names of the library, but # only about the one the linker finds when passed -lNAME. This is the last # element of library_names_spec in libtool.m4, or possibly two of them if the # linker has special search rules. library_names_spec= # the last element of library_names_spec in libtool.m4 libname_spec='lib$name' case "$host_os" in aix3*) library_names_spec='$libname.a' ;; aix[4-9]*) library_names_spec='$libname$shrext' ;; amigaos*) library_names_spec='$libname.a' ;; beos*) library_names_spec='$libname$shrext' ;; bsdi[45]*) library_names_spec='$libname$shrext' ;; cygwin* | mingw* | pw32* | cegcc*) shrext=.dll library_names_spec='$libname.dll.a $libname.lib' ;; darwin* | rhapsody*) shrext=.dylib library_names_spec='$libname$shrext' ;; dgux*) library_names_spec='$libname$shrext' ;; freebsd1*) ;; freebsd* | dragonfly*) case "$host_os" in freebsd[123]*) library_names_spec='$libname$shrext$versuffix' ;; *) library_names_spec='$libname$shrext' ;; esac ;; gnu*) library_names_spec='$libname$shrext' ;; hpux9* | hpux10* | hpux11*) case $host_cpu in ia64*) shrext=.so ;; hppa*64*) shrext=.sl ;; *) shrext=.sl ;; esac library_names_spec='$libname$shrext' ;; interix[3-9]*) library_names_spec='$libname$shrext' ;; irix5* | irix6* | nonstopux*) library_names_spec='$libname$shrext' case "$host_os" in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;; *) libsuff= shlibsuff= ;; esac ;; esac ;; linux*oldld* | linux*aout* | linux*coff*) ;; linux* | k*bsd*-gnu) library_names_spec='$libname$shrext' ;; knetbsd*-gnu) library_names_spec='$libname$shrext' ;; netbsd*) library_names_spec='$libname$shrext' ;; newsos6) library_names_spec='$libname$shrext' ;; nto-qnx*) library_names_spec='$libname$shrext' ;; openbsd*) library_names_spec='$libname$shrext$versuffix' ;; os2*) libname_spec='$name' shrext=.dll library_names_spec='$libname.a' ;; osf3* | osf4* | osf5*) library_names_spec='$libname$shrext' ;; rdos*) ;; solaris*) library_names_spec='$libname$shrext' ;; sunos4*) library_names_spec='$libname$shrext$versuffix' ;; sysv4 | sysv4.3*) library_names_spec='$libname$shrext' ;; sysv4*MP*) library_names_spec='$libname$shrext' ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) library_names_spec='$libname$shrext' ;; uts4*) library_names_spec='$libname$shrext' ;; esac sed_quote_subst='s/\(["`$\\]\)/\\\1/g' escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"` shlibext=`echo "$shrext" | sed -e 's,^\.,,'` escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' < gliv-1.9.7/THANKS0000644000076400007640000000256111465576131010667 0ustar ggStephen Anthony Jason Baietto Gerd Bitzer Rodolfo Borges Matteo Catanese Peter Chiocchetti Nathan Cournia Elros Cyriatan Jens Dagerbo Dominik Danieluk Jean Felder Alexandre Folle de Menezes Harri Haataja Vesa Halttunen Joe Hansen Eugen Hoanca Roland Illig Tom K Andrej Kacian Antal Karoly Jorma Karvonen Димитър Киров Jacek Kopecky Slava Kravchenko Peter Lemenkov Remco van de Meent Alexei V. Mezin Daniel Nylander Marcin Ryk Tuğba Sarıoğlu Ben Saylor Ryan Schmidt Benno Schulenberg Clytie Siddall Matthew Stewart-Smith Martin Vejmelka Gülnur Yenilmez gliv-1.9.7/config.sub0000755000076400007640000010242511465576131011737 0ustar gg#! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 # Free Software Foundation, Inc. timestamp='2009-06-11' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software # can handle that machine. It does not imply ALL GNU software can. # # This file 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., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, 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. # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS $0 [OPTION] ALIAS Canonicalize a configuration name. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" exit 1 ;; *local*) # First pass through any local machine types. echo $1 exit ;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ kopensolaris*-gnu* | \ storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ;; esac ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in -sun*os*) # Prevent following clause from handling this invalid input. ;; -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ -apple | -axis | -knuth | -cray) os= basic_machine=$1 ;; -bluegene*) os=-cnk ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 ;; -scout) ;; -wrs) os=-vxworks basic_machine=$1 ;; -chorusos*) os=-chorusos basic_machine=$1 ;; -chorusrdb) os=-chorusrdb basic_machine=$1 ;; -hiux*) os=-hiuxwe2 ;; -sco6) os=-sco5v6 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5v6*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -udk*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -lynx*) os=-lynxos ;; -ptx*) basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` ;; -windowsnt*) os=`echo $os | sed -e 's/windowsnt/winnt/'` ;; -psos*) os=-psos ;; -mint | -mint[0-9]*) basic_machine=m68k-atari os=-mint ;; esac # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. 1750a | 580 \ | a29k \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ | bfin \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx \ | fido | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | lm32 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ | maxq | mb | microblaze | mcore | mep | metag \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64octeon | mips64octeonel \ | mips64orion | mips64orionel \ | mips64r5900 | mips64r5900el \ | mips64vr | mips64vrel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | moxie \ | mt \ | msp430 \ | nios | nios2 \ | ns16k | ns32k \ | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | pyramid \ | score \ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | spu | strongarm \ | tahoe | thumb | tic4x | tic80 | tron \ | v850 | v850e \ | we32k \ | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ | z8k | z80) basic_machine=$basic_machine-unknown ;; m6811 | m68hc11 | m6812 | m68hc12) # Motorola 68HC11/12. basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; ms1) basic_machine=mt-unknown ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i*86 | x86_64) basic_machine=$basic_machine-pc ;; # Object if more than one company name word. *-*-*) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. 580-* \ | a29k-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* | avr32-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ | lm32-* \ | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64octeon-* | mips64octeonel-* \ | mips64orion-* | mips64orionel-* \ | mips64r5900-* | mips64r5900el-* \ | mips64vr-* | mips64vrel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nios-* | nios2-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | pyramid-* \ | romp-* | rs6000-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ | tahoe-* | thumb-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \ | tron-* \ | v850-* | v850e-* | vax-* \ | we32k-* \ | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ | xstormy16-* | xtensa*-* \ | ymp-* \ | z8k-* | z80-*) ;; # Recognize the basic CPU types without company name, with glob match. xtensa*) basic_machine=$basic_machine-unknown ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) basic_machine=i386-unknown os=-bsd ;; 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) basic_machine=m68000-att ;; 3b*) basic_machine=we32k-att ;; a29khif) basic_machine=a29k-amd os=-udi ;; abacus) basic_machine=abacus-unknown ;; adobe68k) basic_machine=m68010-adobe os=-scout ;; alliant | fx80) basic_machine=fx80-alliant ;; altos | altos3068) basic_machine=m68k-altos ;; am29k) basic_machine=a29k-none os=-bsd ;; amd64) basic_machine=x86_64-pc ;; amd64-*) basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) basic_machine=m68k-unknown ;; amigaos | amigados) basic_machine=m68k-unknown os=-amigaos ;; amigaunix | amix) basic_machine=m68k-unknown os=-sysv4 ;; apollo68) basic_machine=m68k-apollo os=-sysv ;; apollo68bsd) basic_machine=m68k-apollo os=-bsd ;; aros) basic_machine=i386-pc os=-aros ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; blackfin) basic_machine=bfin-unknown os=-linux ;; blackfin-*) basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; bluegene*) basic_machine=powerpc-ibm os=-cnk ;; c90) basic_machine=c90-cray os=-unicos ;; cegcc) basic_machine=arm-unknown os=-cegcc ;; convex-c1) basic_machine=c1-convex os=-bsd ;; convex-c2) basic_machine=c2-convex os=-bsd ;; convex-c32) basic_machine=c32-convex os=-bsd ;; convex-c34) basic_machine=c34-convex os=-bsd ;; convex-c38) basic_machine=c38-convex os=-bsd ;; cray | j90) basic_machine=j90-cray os=-unicos ;; craynv) basic_machine=craynv-cray os=-unicosmp ;; cr16) basic_machine=cr16-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; crisv32 | crisv32-* | etraxfs*) basic_machine=crisv32-axis ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; crx) basic_machine=crx-unknown os=-elf ;; da30 | da30-*) basic_machine=m68k-da30 ;; decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; decsystem10* | dec10*) basic_machine=pdp10-dec os=-tops10 ;; decsystem20* | dec20*) basic_machine=pdp10-dec os=-tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola ;; delta88) basic_machine=m88k-motorola os=-sysv3 ;; dicos) basic_machine=i686-pc os=-dicos ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2* | dpx2*-bull) basic_machine=m68k-bull os=-sysv3 ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson os=-ose ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; go32) basic_machine=i386-pc os=-go32 ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; h8300xray) basic_machine=h8300-hitachi os=-xray ;; h8500hms) basic_machine=h8500-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) basic_machine=hppa1.1-hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; hppa-next) os=-nextstep3 ;; hppaosf) basic_machine=hppa1.1-hp os=-osf ;; hppro) basic_machine=hppa1.1-hp os=-proelf ;; i370-ibm* | ibm*) basic_machine=i370-ibm ;; # I'm not sure what "Sysv32" means. Should this be sysv3.2? i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; i386-vsta | vsta) basic_machine=i386-unknown os=-vsta ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; m68knommu) basic_machine=m68k-unknown os=-linux ;; m68knommu-*) basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; m88k-omron*) basic_machine=m88k-omron ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; mingw32) basic_machine=i386-pc os=-mingw32 ;; mingw32ce) basic_machine=arm-unknown os=-mingw32ce ;; miniframe) basic_machine=m68000-convergent ;; *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) basic_machine=m68k-atari os=-mint ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ;; mvs) basic_machine=i370-ibm os=-mvs ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; netbsd386) basic_machine=i386-unknown os=-netbsd ;; netwinder) basic_machine=armv4l-rebel os=-linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; necv70) basic_machine=v70-nec os=-sysv ;; next | m*-next ) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; mon960) basic_machine=i960-intel os=-mon960 ;; nonstopux) basic_machine=mips-compaq os=-nonstopux ;; np1) basic_machine=np1-gould ;; nsr-tandem) basic_machine=nsr-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose ;; os68k) basic_machine=m68k-none os=-os68k ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; parisc) basic_machine=hppa-unknown os=-linux ;; parisc-*) basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pc98) basic_machine=i386-pc ;; pc98-*) basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; pentium4) basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium4-*) basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould ;; power) basic_machine=power-ibm ;; ppc) basic_machine=powerpc-unknown ;; ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle | ppc-le | powerpc-little) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little | ppc64-le | powerpc64-little) basic_machine=powerpc64le-unknown ;; ppc64le-* | powerpc64little-*) basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm ;; pw32) basic_machine=i586-unknown os=-pw32 ;; rdos) basic_machine=i386-pc os=-rdos ;; rom68k) basic_machine=m68k-rom68k os=-coff ;; rm[46]00) basic_machine=mips-siemens ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; s390 | s390-*) basic_machine=s390-ibm ;; s390x | s390x-*) basic_machine=s390x-ibm ;; sa29200) basic_machine=a29k-amd os=-udi ;; sb1) basic_machine=mipsisa64sb1-unknown ;; sb1el) basic_machine=mipsisa64sb1el-unknown ;; sde) basic_machine=mipsisa32-sde os=-elf ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sh5el) basic_machine=sh5le-unknown ;; sh64) basic_machine=sh64-unknown ;; sparclite-wrs | simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; sps7) basic_machine=m68k-bull os=-sysv2 ;; spur) basic_machine=spur-unknown ;; st2000) basic_machine=m68k-tandem ;; stratus) basic_machine=i860-stratus os=-sysv4 ;; sun2) basic_machine=m68000-sun ;; sun2os3) basic_machine=m68000-sun os=-sunos3 ;; sun2os4) basic_machine=m68000-sun os=-sunos4 ;; sun3os3) basic_machine=m68k-sun os=-sunos3 ;; sun3os4) basic_machine=m68k-sun os=-sunos4 ;; sun4os3) basic_machine=sparc-sun os=-sunos3 ;; sun4os4) basic_machine=sparc-sun os=-sunos4 ;; sun4sol2) basic_machine=sparc-sun os=-solaris2 ;; sun3 | sun3-*) basic_machine=m68k-sun ;; sun4) basic_machine=sparc-sun ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun ;; sv1) basic_machine=sv1-cray os=-unicos ;; symmetry) basic_machine=i386-sequent os=-dynix ;; t3e) basic_machine=alphaev5-cray os=-unicos ;; t90) basic_machine=t90-cray os=-unicos ;; tic54x | c54x*) basic_machine=tic54x-unknown os=-coff ;; tic55x | c55x*) basic_machine=tic55x-unknown os=-coff ;; tic6x | c6x*) basic_machine=tic6x-unknown os=-coff ;; tile*) basic_machine=tile-unknown os=-linux-gnu ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; toad1) basic_machine=pdp10-xkl os=-tops20 ;; tower | tower-32) basic_machine=m68k-ncr ;; tpf) basic_machine=s390x-ibm os=-tpf ;; udi29k) basic_machine=a29k-amd os=-udi ;; ultra3) basic_machine=a29k-nyu os=-sym1 ;; v810 | necv810) basic_machine=v810-nec os=-none ;; vaxv) basic_machine=vax-dec os=-sysv ;; vms) basic_machine=vax-dec os=-vms ;; vpp*|vx|vx-*) basic_machine=f301-fujitsu ;; vxworks960) basic_machine=i960-wrs os=-vxworks ;; vxworks68) basic_machine=m68k-wrs os=-vxworks ;; vxworks29k) basic_machine=a29k-wrs os=-vxworks ;; w65*) basic_machine=w65-wdc os=-none ;; w89k-*) basic_machine=hppa1.1-winbond os=-proelf ;; xbox) basic_machine=i686-pc os=-mingw32 ;; xps | xps100) basic_machine=xps100-honeywell ;; ymp) basic_machine=ymp-cray os=-unicos ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim ;; z80-*-coff) basic_machine=z80-unknown os=-sim ;; none) basic_machine=none-none os=-none ;; # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) basic_machine=hppa1.1-winbond ;; op50n) basic_machine=hppa1.1-oki ;; op60c) basic_machine=hppa1.1-oki ;; romp) basic_machine=romp-ibm ;; mmix) basic_machine=mmix-knuth ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp10) # there are many clones, so DEC is not a safe bet basic_machine=pdp10-unknown ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; mac | mpw | mac-mpw) basic_machine=m68k-apple ;; pmac | pmac-mpw) basic_machine=powerpc-apple ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -svr4*) os=-sysv4 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # First accept the basic system types. # The portable systems comes first. # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ | -kopensolaris* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* | -aros* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | -openbsd* | -solidbsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* | -cegcc* \ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -toppers* | -drops*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) case $basic_machine in x86-* | i*86-*) ;; *) os=-nto$os ;; esac ;; -nto-qnx*) ;; -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition ;; -os400*) os=-os400 ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -syllable*) os=-syllable ;; -386bsd) os=-bsd ;; -ctix* | -uts*) os=-sysv ;; -nova*) os=-rtmk-nova ;; -ns2 ) os=-nextstep2 ;; -nsk*) os=-nsk ;; # Preserve the version number of sinix5. -sinix5.*) os=`echo $os | sed -e 's|sinix|sysv|'` ;; -sinix*) os=-sysv4 ;; -tpf*) os=-tpf ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -ose*) os=-ose ;; -es1800*) os=-ose ;; -xenix) os=-xenix ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -aros*) os=-aros ;; -kaos*) os=-kaos ;; -zvmoe) os=-zvmoe ;; -dicos*) os=-dicos ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in score-*) os=-elf ;; spu-*) os=-elf ;; *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 # This also exists in the configure program, but was not the # default. # os=-sunos4 ;; m68*-cisco) os=-aout ;; mep-*) os=-elf ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-be) os=-beos ;; *-haiku) os=-haiku ;; *-ibm) os=-aix ;; *-knuth) os=-mmixware ;; *-wec) os=-proelf ;; *-winbond) os=-proelf ;; *-oki) os=-proelf ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) os=-coff ;; *-*bug) os=-coff ;; *-apple) os=-macos ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -cnk*|-aix*) vendor=ibm ;; -beos*) vendor=be ;; -hpux*) vendor=hp ;; -mpeix*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs* | -opened*) vendor=ibm ;; -os400*) vendor=ibm ;; -ptx*) vendor=sequent ;; -tpf*) vendor=ibm ;; -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; -aux*) vendor=apple ;; -hms*) vendor=hitachi ;; -mpw* | -macos*) vendor=apple ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) vendor=atari ;; -vos*) vendor=stratus ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os exit # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: gliv-1.9.7/missing0000755000076400007640000002623311465576131011355 0ustar gg#! /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: gliv-1.9.7/po/0000755000076400007640000000000011465576131010366 5ustar gggliv-1.9.7/po/gliv.pot0000644000076400007640000005013711465576131012061 0ustar gg# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Guillaume Chazarain # 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: guichaz@gmail.com\n" "POT-Creation-Date: 2010-04-19 00:52+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #: src/actions.c:121 msgid "Failed to create a new process" msgstr "" #: src/actions.c:126 #, possible-c-format msgid "The action '%s' terminated with a non-null return code: %d" msgstr "" #: src/actions.c:230 msgid "Open in Gimp" msgstr "" #: src/actions.c:333 #, possible-c-format msgid "The action name '%s' is already used" msgstr "" #: src/actions.c:463 src/glade_actions.c:165 src/tree_browser.c:211 msgid "Name" msgstr "" #: src/actions.c:464 src/glade_actions.c:172 msgid "Command" msgstr "" #: src/collection.c:152 msgid "Choose a file to save the collection" msgstr "" #: src/collection.c:159 #, possible-c-format msgid "Overwrite \"%s\" ?" msgstr "" #: src/collection.c:238 msgid "Elapsed time" msgstr "" #: src/collection.c:239 msgid "Remaining time" msgstr "" #: src/collection.c:240 msgid "Total time" msgstr "" #: src/collection.c:247 src/collection.c:637 #, possible-c-format msgid "Saving collection: %s" msgstr "" #: src/collection.c:250 src/collection.c:1044 #, possible-c-format msgid "Loading collection: %s" msgstr "" #: src/collection.c:366 msgid "Inserting files..." msgstr "" #: src/collection.c:615 msgid "No images to put in a collection\n" msgstr "" #: src/collection.c:622 msgid "GLiv won't write a collection to a terminal\n" msgstr "" #: src/collection.c:643 msgid "Standard output" msgstr "" #: src/collection.c:1064 #, possible-c-format msgid "%s is not a GLiv collection" msgstr "" #: src/collection.c:1077 msgid "Choose a collection to load" msgstr "" #: src/files_list.c:499 #, possible-c-format msgid "Do you really want to delete this file?\n" "%s\n" msgstr "" #: src/files_list.c:523 msgid "directory/file" msgstr "" #: src/gl_widget.c:130 #, possible-c-format msgid "Wrong URI format: %d (instead of 8)" msgstr "" #: src/gl_widget.c:135 #, possible-c-format msgid "Wrong URI length: %d" msgstr "" #: src/gl_widget.c:227 #, possible-c-format msgid "Fatal error: GL_MAX_TEXTURE_SIZE = %d\n" msgstr "" #: src/gl_widget.c:231 msgid "GL_MAX_TEXTURE_SIZE must be >= 64" msgstr "" #: src/gl_widget.c:257 msgid "glXMakeCurrent() failed" msgstr "" #: src/gl_widget.c:310 msgid "OpenGL not supported" msgstr "" #: src/gl_widget.c:321 msgid "Cannot find an appropriate visual, try glxinfo(1)" msgstr "" #: src/gl_widget.c:328 msgid "Cannot set the OpenGL capability" msgstr "" #: src/gl_widget.c:366 #, possible-c-format msgid "Unknown OpenGL error (%d)" msgstr "" #: src/gl_widget.c:370 #, possible-c-format msgid "OpenGL error in %s() at %s:%d:\n" "%s" msgstr "" #: src/glade_actions.c:43 msgid "Actions" msgstr "" #: src/glade_actions.c:149 msgid "Edit Action" msgstr "" #: src/glade_actions.c:206 msgid "In the command field, printf like substitutions can be used:\n" "%d\t\tPath to the current file directory\n" "%b\t\tCurrent file name\n" "%f\t\tPath to the current file\n" "%%\t\tA litteral %\n" msgstr "" #: src/glade_image_nr.c:45 src/menus.c:417 msgid "Load the Nth image..." msgstr "" #: src/glade_image_nr.c:65 msgid "Enter an image number:" msgstr "" #: src/glade_image_nr.c:81 msgid "directory" msgstr "" #: src/glade_image_nr.c:87 msgid "file" msgstr "" #: src/glade_options.c:138 src/menus.c:503 msgid "Options" msgstr "" #: src/glade_options.c:174 msgid "Save options now" msgstr "" #: src/glade_options.c:178 src/rcfile.c:116 msgid "Save options when quitting" msgstr "" #: src/glade_options.c:193 msgid "Configuration file" msgstr "" #: src/glade_options.c:215 msgid "Scrollbars enabled" msgstr "" #: src/glade_options.c:222 msgid "Fullscreen mode" msgstr "" #: src/glade_options.c:229 msgid "Menu bar enabled" msgstr "" #: src/glade_options.c:236 msgid "Status bar enabled" msgstr "" #: src/glade_options.c:243 src/rcfile.c:115 msgid "Confirm before quitting" msgstr "" #: src/glade_options.c:250 src/rcfile.c:114 msgid "Automatic window resizing" msgstr "" #: src/glade_options.c:261 msgid "Delay before hiding the cursor\n" "0: feature disabled" msgstr "" #: src/glade_options.c:274 src/glade_options.c:587 src/glade_options.c:634 msgid "milliseconds" msgstr "" #: src/glade_options.c:279 msgid "Interface" msgstr "" #: src/glade_options.c:290 src/rcfile.c:99 msgid "Scale down large images" msgstr "" #: src/glade_options.c:297 src/rcfile.c:98 msgid "Maximize small images" msgstr "" #: src/glade_options.c:304 src/rcfile.c:108 msgid "Build mipmaps" msgstr "" #: src/glade_options.c:311 src/rcfile.c:105 msgid "Dithering" msgstr "" #: src/glade_options.c:318 src/rcfile.c:111 msgid "Keep only one image in memory" msgstr "" #: src/glade_options.c:325 src/rcfile.c:120 msgid "Check for OpenGL errors" msgstr "" #: src/glade_options.c:332 src/rcfile.c:121 msgid "Enable OpenGL filtering" msgstr "" #: src/glade_options.c:339 src/images_menus.c:330 src/images_menus.c:479 #: src/menus.c:521 msgid "Images" msgstr "" #: src/glade_options.c:352 src/rcfile.c:107 msgid "Build images menus at startup" msgstr "" #: src/glade_options.c:357 src/rcfile.c:109 msgid "Make mnemonics for images menus" msgstr "" #: src/glade_options.c:362 src/rcfile.c:112 msgid "Show thumbnails in images menus" msgstr "" #: src/glade_options.c:371 src/glade_options.c:380 msgid "pixels" msgstr "" #: src/glade_options.c:389 src/rcfile.c:127 msgid "Thumbnail height" msgstr "" #: src/glade_options.c:418 src/rcfile.c:126 msgid "Thumbnail width" msgstr "" #: src/glade_options.c:427 msgid "Images menus" msgstr "" #: src/glade_options.c:442 src/rcfile.c:103 msgid "Zoom centered on pointer" msgstr "" #: src/glade_options.c:447 msgid "Keep transformations when switching images" msgstr "" #: src/glade_options.c:456 src/rcfile.c:130 msgid "Initial image position" msgstr "" #: src/glade_options.c:463 src/menus.c:460 msgid "Center" msgstr "" #: src/glade_options.c:464 src/menus.c:461 msgid "Top left" msgstr "" #: src/glade_options.c:465 src/menus.c:462 msgid "Top right" msgstr "" #: src/glade_options.c:466 src/menus.c:463 msgid "Bottom left" msgstr "" #: src/glade_options.c:467 src/menus.c:464 msgid "Bottom right" msgstr "" #: src/glade_options.c:468 msgid "Same as previous" msgstr "" #: src/glade_options.c:495 msgid "History length\n" "0: feature disabled\n" "-1: infinite" msgstr "" #: src/glade_options.c:503 msgid "Maximum framerate\n" "-1: infinite" msgstr "" #: src/glade_options.c:511 msgid "elements" msgstr "" #: src/glade_options.c:519 msgid "fps" msgstr "" #: src/glade_options.c:527 src/menus.c:447 msgid "Transformations" msgstr "" #: src/glade_options.c:542 src/rcfile.c:113 msgid "Start with the slide show" msgstr "" #: src/glade_options.c:547 src/rcfile.c:110 msgid "Make the slide show loop" msgstr "" #: src/glade_options.c:556 src/rcfile.c:128 msgid "Last/First image notice time" msgstr "" #: src/glade_options.c:563 msgid "Delay between images during the slide show" msgstr "" #: src/glade_options.c:580 msgid "seconds" msgstr "" #: src/glade_options.c:608 msgid "Enable transitions between images" msgstr "" #: src/glade_options.c:621 src/rcfile.c:129 msgid "Transition duration" msgstr "" #: src/glade_options.c:639 msgid "Transitions obey the maximum framerate parameter in the " "Transformations tab" msgstr "" #: src/glade_options.c:644 msgid "Slide show" msgstr "" #: src/glade_options.c:657 msgid "Alpha 2" msgstr "" #: src/glade_options.c:664 msgid "Alpha 1" msgstr "" #: src/glade_options.c:671 src/glade_options.c:706 msgid "Background" msgstr "" #: src/glade_options.c:692 msgid "Alpha checks" msgstr "" #: src/help.c:102 src/help.c:109 msgid "GLiv help" msgstr "" #: src/help.c:163 msgid "GLiv about box" msgstr "" #: src/help_text.c:15 msgid "ESC, q : Quit" msgstr "" #: src/help_text.c:18 msgid "f : Full-screen/window" msgstr "" #: src/help_text.c:21 msgid "+/=/- : Zoom in/in/out" msgstr "" #: src/help_text.c:24 msgid "n/p : Next/previous image" msgstr "" #: src/help_text.c:27 msgid "Pause : Start/stop the slide show" msgstr "" #: src/help_text.c:30 msgid "l : Reduce the image to the window" msgstr "" #: src/help_text.c:33 msgid "M : Maximize the image to the window" msgstr "" #: src/help_text.c:36 msgid "m : Make the image fit the window" msgstr "" #: src/help_text.c:39 msgid "r : Reset position and size" msgstr "" #: src/help_text.c:42 msgid "b : Toggle display of the menu bar" msgstr "" #: src/help_text.c:45 msgid "i : Toggle display of the info bar" msgstr "" #: src/help_text.c:48 msgid "s : Toggle display of the scrollbars" msgstr "" #: src/help_text.c:51 msgid "a : Toggle display of the alpha checks" msgstr "" #: src/help_text.c:54 msgid "h : Toggle display of the help box" msgstr "" #: src/help_text.c:57 msgid "w : Toggle display of floating windows" msgstr "" #: src/help_text.c:60 msgid "o : Display the open dialog" msgstr "" #: src/help_text.c:63 msgid "g : Display the image selector" msgstr "" #: src/help_text.c:66 msgid "t : Display the options dialog" msgstr "" #: src/help_text.c:69 msgid "d : Hide the cursor" msgstr "" #: src/help_text.c:72 msgid "u : Undo" msgstr "" #: src/help_text.c:75 msgid "y : Redo" msgstr "" #: src/help_text.c:78 msgid "c : Clear the history" msgstr "" #: src/help_text.c:81 msgid "Delete : Delete the current file" msgstr "" #: src/help_text.c:84 msgid "C-up : Rotate by +90 degrees" msgstr "" #: src/help_text.c:87 msgid "C-down : Rotate by -90 degrees" msgstr "" #: src/help_text.c:90 msgid "C-left : Rotate by +0.1 degree" msgstr "" #: src/help_text.c:93 msgid "C-right: Rotate by -0.1 degree" msgstr "" #: src/help_text.c:96 msgid "z : Horizontal flip" msgstr "" #: src/help_text.c:99 msgid "e : Vertical flip" msgstr "" #: src/help_text.c:104 msgid "The first mouse button and the arrow keys will move the image unless " "the Control key is pressed. In which case the image will be rotated " "around the window center." msgstr "" #: src/help_text.c:107 msgid "The mouse wheel zooms the image, and when you hold its button " "pressed at the same time it switches to the neighbouring image." msgstr "" #: src/help_text.c:110 msgid "You can also zoom by dragging the mouse vertically while holding " "Shift and the first button." msgstr "" #: src/help_text.c:113 msgid "Space and Backspace act like n and p." msgstr "" #: src/help_text.c:116 msgid "Draw a rectangle with the third button and gliv will zoom in it." msgstr "" #: src/images_menus.c:82 msgid "Rebuilding:" msgstr "" #: src/images_menus.c:209 src/images_menus.c:447 src/menus.c:517 msgid "Directories" msgstr "" #: src/images_menus.c:296 msgid "Current image directory..." msgstr "" #: src/images_menus.c:363 src/menus.c:337 msgid "Rebuild this menu" msgstr "" #: src/images_menus.c:370 src/menus.c:338 msgid "Open thumbnails browser..." msgstr "" #: src/include/about.h:6 msgid "GLiv version" msgstr "" #: src/include/about.h:8 msgid "Use 'gliv --help' to show command line options.\n" "A quick help is accessible by typing 'h' or using the menu." msgstr "" #: src/include/about.h:10 msgid "See http://guichaz.free.fr/gliv for updates." msgstr "" #: src/loading.c:81 #, possible-c-format msgid "%s not while loading an image\n" msgstr "" #: src/loading.c:83 #, possible-c-format msgid "%s while loading %s\n" msgstr "" #: src/loading.c:102 msgid "alpha channel" msgstr "" #: src/loading.c:158 #, possible-c-format msgid "%s: unknown decompressed extension\n" msgstr "" #: src/loading.c:165 #, possible-c-format msgid "%s: image cannot be compressed twice\n" msgstr "" #: src/loading.c:188 #, possible-c-format msgid "%s: unknown extension (none)\n" msgstr "" #: src/loading.c:197 #, possible-c-format msgid "%s: unknown extension\n" msgstr "" #: src/loading.c:291 src/next_image.c:280 #, possible-c-format msgid "Cannot load %s" msgstr "" #: src/main.c:65 #, possible-c-format msgid "Command line flags should be on or off, not %s\n" msgstr "" #: src/main.c:181 msgid "Cannot sort and shuffle at the same time\n" msgstr "" #: src/main.c:221 msgid "The --client and --client-clear command line options are mutually " "exclusive\n" msgstr "" #: src/main.c:253 src/main.c:256 msgid "Do not ask again" msgstr "" #: src/main.c:257 msgid "Options will be saved" msgstr "" #: src/main.c:279 msgid "Do you really want to quit GLiv?" msgstr "" #: src/main.c:337 src/next_image.c:542 msgid "No image found" msgstr "" #: src/menus.c:403 msgid "File" msgstr "" #: src/menus.c:404 msgid "Open..." msgstr "" #: src/menus.c:405 msgid "Open directory..." msgstr "" #: src/menus.c:407 msgid "Load collection..." msgstr "" #: src/menus.c:408 msgid "Save collection..." msgstr "" #: src/menus.c:410 msgid "Quit" msgstr "" #: src/menus.c:414 msgid "Commands" msgstr "" #: src/menus.c:415 msgid "Load previous image" msgstr "" #: src/menus.c:416 msgid "Load next image" msgstr "" #: src/menus.c:418 msgid "Load first image" msgstr "" #: src/menus.c:419 msgid "Load last image" msgstr "" #: src/menus.c:420 msgid "Load random image" msgstr "" #: src/menus.c:421 msgid "Reload the current image" msgstr "" #: src/menus.c:423 msgid "Sort images list" msgstr "" #: src/menus.c:424 msgid "Shuffle images list" msgstr "" #: src/menus.c:426 msgid "Rebuild images menus" msgstr "" #: src/menus.c:427 msgid "Stop rebuilding the images menu" msgstr "" #: src/menus.c:431 msgid "Toggle floating windows" msgstr "" #: src/menus.c:433 src/next_image.c:799 msgid "Start the slide show" msgstr "" #: src/menus.c:437 msgid "Remove the current file" msgstr "" #: src/menus.c:440 msgid "Edit actions..." msgstr "" #: src/menus.c:441 msgid "Action on the current image" msgstr "" #: src/menus.c:443 msgid "Action on every image" msgstr "" #: src/menus.c:448 msgid "Undo" msgstr "" #: src/menus.c:449 msgid "Redo" msgstr "" #: src/menus.c:450 msgid "Clear history" msgstr "" #: src/menus.c:452 msgid "Move" msgstr "" #: src/menus.c:453 msgid "Move left" msgstr "" #: src/menus.c:454 msgid "Move right" msgstr "" #: src/menus.c:455 msgid "Move up" msgstr "" #: src/menus.c:456 msgid "Move down" msgstr "" #: src/menus.c:459 msgid "Set position" msgstr "" #: src/menus.c:467 msgid "Rotation" msgstr "" #: src/menus.c:468 msgid "Rotate +90 deg" msgstr "" #: src/menus.c:470 msgid "Rotate -90 deg" msgstr "" #: src/menus.c:472 msgid "Rotate +0.1 deg" msgstr "" #: src/menus.c:474 msgid "Rotate -0.1 deg" msgstr "" #: src/menus.c:480 msgid "Horizontal flip" msgstr "" #: src/menus.c:482 msgid "Vertical flip" msgstr "" #: src/menus.c:486 msgid "Maximize small image" msgstr "" #: src/menus.c:487 msgid "Scale down large image" msgstr "" #: src/menus.c:489 msgid "Image fit window" msgstr "" #: src/menus.c:492 msgid "Zoom in" msgstr "" #: src/menus.c:493 msgid "Zoom out" msgstr "" #: src/menus.c:494 msgid "Fit width" msgstr "" #: src/menus.c:495 msgid "Fit height" msgstr "" #: src/menus.c:499 msgid "Reset" msgstr "" #: src/menus.c:504 msgid "Toggle Fullscreen mode" msgstr "" #: src/menus.c:505 msgid "Toggle Menu Bar" msgstr "" #: src/menus.c:506 msgid "Toggle Status Bar" msgstr "" #: src/menus.c:507 msgid "Toggle Scrollbars" msgstr "" #: src/menus.c:508 msgid "Toggle Alpha checks" msgstr "" #: src/menus.c:510 msgid "Hide the cursor" msgstr "" #: src/menus.c:511 msgid "Set this window as server" msgstr "" #: src/menus.c:513 msgid "Options..." msgstr "" #: src/menus.c:532 msgid "Help" msgstr "" #: src/menus.c:533 msgid "About..." msgstr "" #: src/menus.c:534 msgid "Controls..." msgstr "" #: src/next_image.c:143 msgid "First image" msgstr "" #: src/next_image.c:146 msgid "Last image" msgstr "" #: src/next_image.c:226 msgid "Loading errors" msgstr "" #: src/next_image.c:239 msgid "The following errors occurred while loading the next image:\n" msgstr "" #: src/next_image.c:828 msgid "Stop the slide show" msgstr "" #: src/open_dialog.c:101 msgid "GLiv: Select a folder to open" msgstr "" #: src/open_dialog.c:104 msgid "GLiv: Select files to open" msgstr "" #: src/open_dialog.c:129 src/rcfile.c:106 msgid "Try to load every file" msgstr "" #: src/open_dialog.c:130 src/rcfile.c:118 msgid "Recursive directory traversal" msgstr "" #: src/options.c:219 src/options.c:237 msgid "NONE" msgstr "" #: src/options.c:222 #, possible-c-format msgid "This configuration file has been read: %s" msgstr "" #: src/options.c:240 #, possible-c-format msgid "This configuration file will be written: %s" msgstr "" #: src/rcfile.c:97 msgid "Start in full screen mode" msgstr "" #: src/rcfile.c:100 msgid "Display the menu bar" msgstr "" #: src/rcfile.c:101 msgid "Display info about the image" msgstr "" #: src/rcfile.c:102 msgid "Display scrollbars" msgstr "" #: src/rcfile.c:104 msgid "Alpha checks in the background" msgstr "" #: src/rcfile.c:117 msgid "Enable transitions" msgstr "" #: src/rcfile.c:119 msgid "Keep transfo between images" msgstr "" #: src/rcfile.c:122 msgid "Maximum framerate" msgstr "" #: src/rcfile.c:123 msgid "Delay before hiding the cursor" msgstr "" #: src/rcfile.c:124 msgid "History length" msgstr "" #: src/rcfile.c:125 msgid "Delay between images" msgstr "" #: src/rcfile.c:131 msgid "background: red channel" msgstr "" #: src/rcfile.c:132 msgid "background: green channel" msgstr "" #: src/rcfile.c:133 msgid "background: blue channel" msgstr "" #: src/rcfile.c:134 msgid "alpha1 tile: red channel" msgstr "" #: src/rcfile.c:135 msgid "alpha1 tile: green channel" msgstr "" #: src/rcfile.c:136 msgid "alpha1 tile: blue channel" msgstr "" #: src/rcfile.c:137 msgid "alpha2 tile: red channel" msgstr "" #: src/rcfile.c:138 msgid "alpha2 tile: green channel" msgstr "" #: src/rcfile.c:139 msgid "alpha2 tile: blue channel" msgstr "" #: src/rcfile.c:238 #, possible-c-format msgid "Unknown option in configuration file: %s\n" msgstr "" #: src/rcfile.c:240 #, possible-c-format msgid "Parse error in configuration file: %s\n" msgstr "" #: src/rcfile.c:486 #, c-format msgid "# Configuration file for GLiv %s\n" "\n" msgstr "" #: src/rcfile.c:487 msgid "# Option names are case sensitive.\n" msgstr "" #: src/rcfile.c:488 msgid "# Option values are case insensitive.\n" "\n" msgstr "" #: src/thread.c:164 msgid "Cannot use a thread\n" msgstr "" #: src/transition.c:261 #, possible-c-format msgid "transition from `%s' to `%s'" msgstr "" #: src/tree_browser.c:80 msgid "Browser" msgstr "" #: src/tree_browser.c:201 msgid "Thumb" msgstr "" #: src/tree_browser.c:222 msgid "Thumbnails browser" msgstr "" #: src/windows.c:207 msgid "loading" msgstr "" #: src/windows.c:238 msgid "No image loaded" msgstr "" #: src/windows.c:239 msgid "width x height" msgstr "" #: src/windows.c:240 msgid "zoom% (angle)" msgstr "" #: src/windows.c:319 #, possible-c-format msgid "%.3f%% (%.3f deg%s)" msgstr "" #: src/windows.c:363 #, possible-c-format msgid "Ignoring initial geometry (%s) as fullscreen mode is requested\n" msgstr "" #: src/windows.c:375 #, possible-c-format msgid "Cannot parse geometry: %s\n" msgstr "" #: src/windows.c:409 msgid "GLiv in fullscreen" msgstr "" gliv-1.9.7/po/POTFILES.in0000644000076400007640000000405111465576131012143 0ustar ggsrc/actions.c src/callbacks.c src/cmdline.c src/collection.c src/cursors.c src/decompression.c src/dirty_gtk.c src/dithering.c src/files_list.c src/foreach_file.c src/formats.c src/gl_widget.c src/glade_actions.c src/glade_image_nr.c src/glade_options.c src/gliv-image.c src/help.c src/help_text.c src/history.c src/images_menus.c src/include/about.h src/include/actions.h src/include/all_cursors.h src/include/callbacks.h src/include/cmdline.h src/include/collection.h src/include/cursors.h src/include/decompression.h src/include/dirty_gtk.h src/include/dithering.h src/include/files_list.h src/include/foreach_file.h src/include/formats.h src/include/gettext.h src/include/gl_widget.h src/include/glade_actions.h src/include/glade_image_nr.h src/include/glade_options.h src/include/gliv-image.h src/include/gliv.h src/include/gliv_logo.h src/include/help.h src/include/help_text.h src/include/history.h src/include/images_menus.h src/include/ipc.h src/include/large_files.h src/include/loading.h src/include/main.h src/include/math_floats.h src/include/matrix.h src/include/menus.h src/include/messages.h src/include/mnemonics.h src/include/move_pointer.h src/include/next_image.h src/include/open_dialog.h src/include/opengl.h src/include/opengl_wrapper.h src/include/options.h src/include/params.h src/include/pathset.h src/include/rcfile.h src/include/rendering.h src/include/scrollbars.h src/include/str_utils.h src/include/strnatcmp.h src/include/texture_map.h src/include/textures.h src/include/thread.h src/include/thumbnails.h src/include/tiling.h src/include/timestamp.h src/include/transition.h src/include/tree.h src/include/tree_browser.h src/include/windows.h src/include/zoom_frame.h src/ipc.c src/loading.c src/main.c src/matrix.c src/menus.c src/mnemonics.c src/move_pointer.c src/next_image.c src/open_dialog.c src/options.c src/pathset.c src/rcfile.c src/rendering.c src/scrollbars.c src/str_utils.c src/strnatcmp.c src/textures.c src/thread.c src/thumbnails.c src/tiling.c src/timestamp.c src/transition.c src/tree.c src/tree_browser.c src/windows.c src/zoom_frame.c gliv-1.9.7/po/sv.gmo0000644000076400007640000004242711465576131011533 0ustar ggK"#'(<Xw%# #,B^fn v    3Rq1 )18P$l / 22Q*  ! 6@+Q }@   .!Acz& !  /,<i/ + &*B mx)2Rk       !- O a n  !     "!%!*!?! Q!]!{!!!!!!!!!" ""1"B"]"s"""," "" #)# =#H#%Y####### $:$$Z$$<"%)_%+%%%%%%&$&6&H&`& i& s&~&&&&k& 0'#>'b'\w''''+' *(8(R(m(((('(()/)G)b) {)))))))#))'*'=*'e**&* ** *+ +)/+Y+#a++ ++++ ++ ,^ ,!--$---.1.)F.p.......//!/(/7/%S/y/ / / //////0>(0g0$x0*00000!1=1L19U1 111 11152:2*T22 2222 22(2%3JE3333 333!4$4$94)^44 4 4$4444 58 5F5f555 5.5556 6666 66#7')7 Q7'^777777 7&7 8@8\8p88!888 88 8 89 99!9#39W9 h9u9999 999 : :?:G:Z: m:x::::: : : : : ;;;2;C;Z;y;;;;1;<< 2<S<d<m<+< <<<<< =(=6:= q==54>(j>.>>>>??/?>?N?_? v? ? ?????f?I@)X@@V@@ AA*A GAQAhAAAAA$ABB+B?BWBoB wBBBBBBBB$C$(C$MCrC.{C CC CC'C%'DMD"VDyDD*D DDDEY8o 1&GiH.OlS VW*'w,ka+Qsb2y93")n-D]\dh/%Pe A($v<[p0=}R{NL#jI:x~|Uq@C ;g5c`r4> !K t^uTm_EMBf7FZJ?X6z# Configuration file for GLiv %s # Option names are case sensitive. # Option values are case insensitive. %.3f%% (%.3f deg%s)%s is not a GLiv collection%s not while loading an image %s while loading %s %s: image cannot be compressed twice %s: unknown decompressed extension %s: unknown extension %s: unknown extension (none) +/=/- : Zoom in/in/outAbout...Action on every imageAction on the current imageActionsAlpha 1Alpha 2Alpha checksAlpha checks in the backgroundAutomatic window resizingBackgroundBottom leftBottom rightBrowserBuild images menus at startupBuild mipmapsC-down : Rotate by -90 degreesC-left : Rotate by +0.1 degreeC-right: Rotate by -0.1 degreeC-up : Rotate by +90 degreesCannot find an appropriate visual, try glxinfo(1)Cannot load %sCannot set the OpenGL capabilityCannot sort and shuffle at the same time Cannot use a thread CenterCheck for OpenGL errorsChoose a collection to loadChoose a file to save the collectionClear historyCommandCommand line flags should be on or off, not %s CommandsConfiguration fileConfirm before quittingControls...Current image directory...Delay before hiding the cursorDelay before hiding the cursor 0: feature disabledDelay between imagesDelay between images during the slide showDelete : Delete the current fileDirectoriesDisplay info about the imageDisplay scrollbarsDisplay the menu barDitheringDo not ask againDo you really want to delete this file? %s Do you really want to quit GLiv?Draw a rectangle with the third button and gliv will zoom in it.ESC, q : QuitEdit ActionEdit actions...Elapsed timeEnable OpenGL filteringEnable transitionsEnable transitions between imagesEnter an image number:Failed to create a new processFatal error: GL_MAX_TEXTURE_SIZE = %d FileFirst imageFullscreen modeGL_MAX_TEXTURE_SIZE must be >= 64GLiv about boxGLiv helpGLiv in fullscreenGLiv versionGLiv won't write a collection to a terminal GLiv: Select a folder to openGLiv: Select files to openHelpHide the cursorHistory lengthHistory length 0: feature disabled -1: infiniteHorizontal flipImage fit windowImagesImages menusIn the command field, printf like substitutions can be used: %d Path to the current file directory %b Current file name %f Path to the current file %% A litteral % Initial image positionInserting files...InterfaceKeep only one image in memoryKeep transfo between imagesKeep transformations when switching imagesLast imageLast/First image notice timeLoad collection...Load next imageLoad previous imageLoad the Nth image...Loading collection: %sLoading errorsM : Maximize the image to the windowMake mnemonics for images menusMake the slide show loopMaximize small imageMaximize small imagesMaximum framerateMaximum framerate -1: infiniteMenu bar enabledMoveMove downMove leftMove rightMove upNONENameNo image foundNo image loadedNo images to put in a collection Open directory...Open in GimpOpen thumbnails browser...Open...OpenGL error in %s() at %s:%d: %sOpenGL not supportedOptionsOptions will be savedOptions...Overwrite "%s" ?Pause : Start/stop the slide showQuitRebuild images menusRebuild this menuRebuilding:Recursive directory traversalRedoReload the current imageRemaining timeRemove the current fileResetRotate +0.1 degRotate +90 degRotate -0.1 degRotate -90 degRotationSame as previousSave collection...Save options nowSave options when quittingSaving collection: %sScale down large imageScale down large imagesScrollbars enabledSee http://guichaz.free.fr/gliv for updates.Set positionSet this window as serverShow thumbnails in images menusShuffle images listSlide showSort images listSpace and Backspace act like n and p.Standard outputStart in full screen modeStart the slide showStart with the slide showStatus bar enabledStop rebuilding the images menuStop the slide showThe action '%s' terminated with a non-null return code: %dThe action name '%s' is already usedThe first mouse button and the arrow keys will move the image unless the Control key is pressed. In which case the image will be rotated around the window center.The following errors occurred while loading the next image: This configuration file has been read: %sThis configuration file will be written: %sThumbnail heightThumbnail widthThumbnails browserToggle Alpha checksToggle Fullscreen modeToggle Menu BarToggle ScrollbarsToggle Status BarToggle floating windowsTop leftTop rightTotal timeTransformationsTry to load every fileUndoUnknown OpenGL error (%d)Use 'gliv --help' to show command line options. A quick help is accessible by typing 'h' or using the menu.Vertical flipWrong URI format: %d (instead of 8)Wrong URI length: %dYou can also zoom by dragging the mouse vertically while holding Shift and the first button.Zoom centered on pointerZoom inZoom outa : Toggle display of the alpha checksalpha channelalpha1 tile: blue channelalpha1 tile: green channelalpha1 tile: red channelalpha2 tile: blue channelalpha2 tile: green channelalpha2 tile: red channelb : Toggle display of the menu barbackground: blue channelbackground: green channelbackground: red channelc : Clear the historyd : Hide the cursordirectorydirectory/filee : Vertical flipelementsf : Full-screen/windowfilefpsg : Display the image selectorglXMakeCurrent() failedh : Toggle display of the help boxi : Toggle display of the info barl : Reduce the image to the windowloadingm : Make the image fit the windowmillisecondsn/p : Next/previous imageo : Display the open dialogpixelsr : Reset position and sizes : Toggle display of the scrollbarssecondst : Display the options dialogtransition from `%s' to `%s'u : Undow : Toggle display of floating windowswidth x heighty : Redoz : Horizontal flipzoom% (angle)Project-Id-Version: gliv 1.9.4 Report-Msgid-Bugs-To: guichaz@gmail.com POT-Creation-Date: 2010-04-19 00:52+0200 PO-Revision-Date: 2006-01-11 15:01+0100 Last-Translator: Daniel Nylander Language-Team: Swedish MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit # Konfigurationsfil fr GLiv %s # Flaggnamn r shift-knsliga. # Flaggvrden r ej skiftknsliga. %.3f%% (%.3f%s)%s r inte en GLiv-samling%s inte vid inlsning av bild %s vid inlsning %s %s: bild kan inte komprimeras tv gnger %s: oknd uppackad filndelse %s: oknd filndelse %s: oknd filndelse (ingen) +/=/- : Zooma in/in/utOm...tgrd fr varje bildtgrd fr nuvarande bildtgrderAlfa 1Alfa 2AlfakontrollerAlfakontroller i bakgrundenAutomatisk storleksndring av fnsterBakgrundNedre-vnsterNedre-hgerBlddrareBygg bildmenyer vid uppstartBygg MIP-kartaC-ned : Rotera -90C-vnst: Rotera +0,1C-hger: Rotera -0,1C-upp : Rotera +90Kan inte hitta en lmplig visningsenhet, frsk med glxinfo(1)Kan inte lsa %sKan inte stta OpenGL-funktionalitetKan inte sortera och blanda p samma gng Kan inte anvnda en trd CenterLeta efter OpenGL-felVlj en samling att lsa inVlj en fil att spara samlingen iRensa historikKommandoKommandoradsflaggor br vara "on" eller "off", inte "%s" KommandonKonfigurationsfilBekrfta fre avslutKontroller...Nuvarande bildkatalog...Frdrjning fre pekare gmsFrdrjning fre muspekaren gms 0: stng av funktionFrdrjning mellan bilderFrdrjning mellan bilder under bildspeletDelete : Ta bort nuvarande filKatalogerVisa information om bildenVisa rullisterVisa menylistenDitteringFrga inte igenVill du verkligen ta bort denna fil? %s Vill du verkligen avsluta GLiv?Rita en rektangel med den tredje knappen och gliv kommer att zooma in den.ESC, q : AvslutaRedigera tgrdRedigera tgrder...tgngen tidAktivera OpenGL-filtreringAktivera vergngarAktivera vergngar mellan bilderAnge ett bildnummer:Misslyckades att skapa en ny processAllvarligt fel: GL_MAX_TEXTURE_SIZE = %d ArkivFrsta bildenHelskrmslgeGL_MAX_TEXTURE_SIZE mste vara >= 64Om-rutan fr GLivHjlp fr GLivGLiv i helskrmGLiv versionGLiv kommer inte att skriva en samling till en terminal GLiv: Vlj en katalog att ppnaGLiv: Vlj filer att ppnaHjlpGm muspekarenHistoriklngdHistoriklngd 0: funktion avstngd -1: ondligVnd horisontelltBild anpassad efter fnsterBilderBildmenyerI kommandofltet kan printf-liknande ersttningar anvndas: %d Skvg till aktuell filkatalog %b Aktuellt filnamn %f Skvg till aktuell fil %% En litteral % Initial bildpositionLgger in filer...GrnssnittHll endast en bild i minneBehll transformering mellan bilderBehll transformeringar nr bilder bytsSista bildenTid fr upptckt av sista/frsta bildenLs in samling...Ls in nsta bildLs in fregende bildLs in N:te bild...Lser in samling: %sInlsningsfelM : Maximera bilden till fnstretSkapa minneshjlp fr bildmenyerGr att bildspelet upprepasMaximera sm bilderMaximera sm bilderMax bildhastighetMaximal bildhastighet -1: ondligMenylist aktiveradFlyttaFlytta nedFlytta vnsterFlytta hgerFlytta uppINGENNamnIngen bild hittadIngen bild inlstInga bilder att lgga in i samling ppna katalog...ppna i Gimpppna miniatyrbildsblddrare...ppna...OpenGL-fel i %s() p %s:%d: %sOpenGL stds ejInstllningarInstllningar kommer att sparasInstllningar...Skriv ver "%s" ?Paus : Starta/stoppa bildspeletAvslutaBygg om bildmenyerBygg om denna menyBygger om:Rekursiv kataloggenomskningGr omLs om nuvarande bildterstende tidTa bort nuvarande filterstllRotera +0,1Rotera +90Rotera -0,1Rotera -90RoteringSamma som fregendeSpara samling...Spara instllningar nuSpara instllningar vid avslutSparar samling: %sMinska ner stora bilderSkala ned stora bilderRullister aktiveradeSe http://guichaz.free.fr/gliv fr uppdateringar.Stll in positionStt detta fnster som serverVisa miniatyrbilder i bildmenyerBlanda bildlistaBildspelSortera bildlistaBlanksteg och baksteg fungerar som n och p.Standard utStarta i helskrmslgeStarta bildspeletStarta med bildspeletStatuslist aktiveradStoppa ombyggnad av bildmenyStoppa bildspelettgrden "%s" terminerades med en icke-noll felkod: %dtgrdsnamnet "%s" anvnds redanFrsta musknappen och piltangenterna kommer att flytta bilden om inte Control-tangenten r nedtryckt. I det fallet kommer bilden att roteras runt fnstrets mitt.Fljande fel intrffade vid inlsning av nsta bild: Denna konfigurationsfil har lsts in: %sDenna konfigurationsfil kommer att skrivas: %sHjd fr miniatyrbildBredd fr miniatyrbildMiniatyrbildsblddrareVxla AlfakontrollerVxla helskrmslgeVxla menylistVxla rullisterVxla statuslistVxla flytande fnstervre-vnstervre-hgerTotal tidTransformeringarFrsk att lsa in varje filngraOknt OpenGL-fel (%d)Anvnd "gliv --help" fr att se kommandoradsflaggor. Snabbhjlp ns via tangenten "h" eller via menyn.Vnd vertikaltFelaktigt URI-format: %d (istllet fr 8)Felaktig URI-lngd: %dDu kan ocks zooma genom att dra musen vertikalt, hlla nere Shift och frsta knappen.Zoom centrerad vid pekareZooma inZooma uta : Vxla visning av alfakontrollernaalfakanalRuta alpha1: bl kanalRuta alpha1: grn kanalRuta alpha1: rd kanalRuta alpha2: bl kanalRuta alpha2: grn kanalRuta alpha2: rd kanalb : Vxla visning av menylistenbakgrund: bl kanalbakgrund: grn kanalbakgrund: rd kanalc : Rensa historikd : Gm muspekarenkatalogkatalog/file : Vnd vertikaltelementf : Helskrm/fnsterfilbilder/sg : Visa bildvljarenglXMakeCurrent() misslyckadesh : Vxla visning av hjlprutani : Vxla visning av infolistenl : Minska bilden till fnstretlser inm : Gr att bilden anpassas till fnstretmillisekundern/p : Nsta/fregende bildo : Visa inlsningsdialogenpixlarr : terstll position och storleks : Vxla visning av rullisternasekundert : Visa instllningsdialogenvergng frn "%s" till "%s"u : ngraw : Vxla visning av flytande fnsterbredd hjdy : Gr omz : Vnd horisontelltzoom% (vinkel)gliv-1.9.7/po/nl.gmo0000644000076400007640000004623511465576131011515 0ustar gg[ x"y#'7%L#r&. 6Cb |   11P ) +$G lz/  2,_*t   +, X@y    !>U&t   !   ,,Yw/?6G N[ .8V*r  ) )8 b       ! ! ! !!,!4!9!>!M!!]!! !!!!!!!" "!"&2""Y"|""" """"""##-#<#L#[#d#u#######, $ 9$F$`$$ $$%$$$%%/%B%b%:v%$%%<y&)&+& ''-'@'T'k'{'''' ' '''K'E(\(a(){(k( )#)C)\X))))+) **3*N*g***'***+(+C+ \+f+u+++++#++'+','F,n,&v, ,, ,, ,)-:-#B-f- -+-- -- -u.$w/'////0-"0P01m0"000,0&1.1G1c1j1q1x1*1$1 1112-2<2 N2!o2!2 2;23&"3$I3-n3333313.4B48K4 44#444*45!5W5/v5)55'556)6=6(O6x6J666677;7*R7}77&7777885,8b8 s8}8 858 8&89$9891P99P99 ::::; ";/,;\;3v;;#;;;<<;< W<2b<'<<<<"=1>=p= == = ======4= >.>>> U>!_>>>> >>*>)? 2?!@P@g@y@@@@@9A =A JA&kAAAA&AA"B3B.KBzBBBHB" C,CCCC&DBDWDmDDDDDDDEE 'E3EBEgTEEEE+F~0FF)FF~G-G G G4G GH$H@HZHvHH.HHHI *I KIlI pI|I I#III'II1J.LJ3{J J+J J$J"K ;K4GK2|KK"KKK+L# Configuration file for GLiv %s # Option names are case sensitive. # Option values are case insensitive. %.3f%% (%.3f deg%s)%s is not a GLiv collection%s not while loading an image %s while loading %s %s: image cannot be compressed twice %s: unknown decompressed extension %s: unknown extension %s: unknown extension (none) +/=/- : Zoom in/in/outAbout...Action on every imageAction on the current imageActionsAlpha 1Alpha 2Alpha checksAlpha checks in the backgroundAutomatic window resizingBackgroundBottom leftBottom rightBrowserBuild images menus at startupBuild mipmapsC-down : Rotate by -90 degreesC-left : Rotate by +0.1 degreeC-right: Rotate by -0.1 degreeC-up : Rotate by +90 degreesCannot find an appropriate visual, try glxinfo(1)Cannot load %sCannot parse geometry: %s Cannot set the OpenGL capabilityCannot sort and shuffle at the same time Cannot use a thread CenterCheck for OpenGL errorsChoose a collection to loadChoose a file to save the collectionClear historyCommandCommand line flags should be on or off, not %s CommandsConfiguration fileConfirm before quittingControls...Current image directory...Delay before hiding the cursorDelay before hiding the cursor 0: feature disabledDelay between imagesDelay between images during the slide showDelete : Delete the current fileDirectoriesDisplay info about the imageDisplay scrollbarsDisplay the menu barDitheringDo not ask againDo you really want to delete this file? %s Do you really want to quit GLiv?Draw a rectangle with the third button and gliv will zoom in it.ESC, q : QuitEdit ActionEdit actions...Elapsed timeEnable OpenGL filteringEnable transitionsEnable transitions between imagesEnter an image number:Failed to create a new processFatal error: GL_MAX_TEXTURE_SIZE = %d FileFirst imageFit heightFit widthFullscreen modeGL_MAX_TEXTURE_SIZE must be >= 64GLiv about boxGLiv helpGLiv in fullscreenGLiv versionGLiv won't write a collection to a terminal GLiv: Select a folder to openGLiv: Select files to openHelpHide the cursorHistory lengthHistory length 0: feature disabled -1: infiniteHorizontal flipIgnoring initial geometry (%s) as fullscreen mode is requested Image fit windowImagesImages menusIn the command field, printf like substitutions can be used: %d Path to the current file directory %b Current file name %f Path to the current file %% A litteral % Initial image positionInserting files...InterfaceKeep only one image in memoryKeep transfo between imagesKeep transformations when switching imagesLast imageLast/First image notice timeLoad collection...Load next imageLoad previous imageLoad the Nth image...Loading collection: %sLoading errorsM : Maximize the image to the windowMake mnemonics for images menusMake the slide show loopMaximize small imageMaximize small imagesMaximum framerateMaximum framerate -1: infiniteMenu bar enabledMoveMove downMove leftMove rightMove upNONENameNo image foundNo image loadedNo images to put in a collection Open directory...Open in GimpOpen thumbnails browser...Open...OpenGL error in %s() at %s:%d: %sOpenGL not supportedOptionsOptions will be savedOptions...Overwrite "%s" ?Parse error in configuration file: %s Pause : Start/stop the slide showQuitRebuild images menusRebuild this menuRebuilding:Recursive directory traversalRedoReload the current imageRemaining timeRemove the current fileResetRotate +0.1 degRotate +90 degRotate -0.1 degRotate -90 degRotationSame as previousSave collection...Save options nowSave options when quittingSaving collection: %sScale down large imageScale down large imagesScrollbars enabledSee http://guichaz.free.fr/gliv for updates.Set positionSet this window as serverShow thumbnails in images menusShuffle images listSlide showSort images listSpace and Backspace act like n and p.Standard outputStart in full screen modeStart the slide showStart with the slide showStatus bar enabledStop rebuilding the images menuStop the slide showThe action '%s' terminated with a non-null return code: %dThe action name '%s' is already usedThe first mouse button and the arrow keys will move the image unless the Control key is pressed. In which case the image will be rotated around the window center.The following errors occurred while loading the next image: This configuration file has been read: %sThis configuration file will be written: %sThumbnail heightThumbnail widthThumbnails browserToggle Alpha checksToggle Fullscreen modeToggle Menu BarToggle ScrollbarsToggle Status BarToggle floating windowsTop leftTop rightTotal timeTransformationsTransition durationTransitions obey the maximum framerate parameter in the Transformations tabTry to load every fileUndoUnknown OpenGL error (%d)Unknown option in configuration file: %s Use 'gliv --help' to show command line options. A quick help is accessible by typing 'h' or using the menu.Vertical flipWrong URI format: %d (instead of 8)Wrong URI length: %dYou can also zoom by dragging the mouse vertically while holding Shift and the first button.Zoom centered on pointerZoom inZoom outa : Toggle display of the alpha checksalpha channelalpha1 tile: blue channelalpha1 tile: green channelalpha1 tile: red channelalpha2 tile: blue channelalpha2 tile: green channelalpha2 tile: red channelb : Toggle display of the menu barbackground: blue channelbackground: green channelbackground: red channelc : Clear the historyd : Hide the cursordirectorydirectory/filee : Vertical flipelementsf : Full-screen/windowfilefpsg : Display the image selectorglXMakeCurrent() failedh : Toggle display of the help boxi : Toggle display of the info barl : Reduce the image to the windowloadingm : Make the image fit the windowmillisecondsn/p : Next/previous imageo : Display the open dialogpixelsr : Reset position and sizes : Toggle display of the scrollbarssecondst : Display the options dialogtransition from `%s' to `%s'u : Undow : Toggle display of floating windowswidth x heighty : Redoz : Horizontal flipzoom% (angle)Project-Id-Version: gliv-1.9.6 Report-Msgid-Bugs-To: guichaz@gmail.com POT-Creation-Date: 2010-04-19 00:52+0200 PO-Revision-Date: 2007-10-26 22:14+0200 Last-Translator: Benno Schulenberg Language-Team: Dutch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Generator: KBabel 1.11.4 # Configuratiebestand voor GLiv %s # Optienamen zijn hoofdlettergevoelig. # Optiewaarden zijn niet hoofdlettergevoelig. %.1f%% (%.1f°%s)%s is geen GLiv-verzameling%s niet tijdens het laden van een afbeelding %s tijdens het laden van %s %s: afbeelding kan niet tweemaal worden ingepakt %s: onbekende uitgepakte extensie %s: onbekende extensie %s: onbekende extensie (geen) +/=/- : Vergroten / vergroten / verkleinenInfo...Actie op elke afbeeldingActie op huidige afbeeldingActiesAlfa-1Alfa-2Alfa-controlesAlfa-controles uitvoeren in de achtergrondVenstergrootte automatisch aanpassenAchtergrondLinker onderhoekRechter onderhoekBrowserBij opstarten afbeeldingenmenu's samenstellenMipmaps gebruikenCtrl-omlaag : -90 graden draaienCtrl-links : +0,1 graden draaienCtrl-rechts : -0,1 graden draaienCtrl-omhoog : +90 graden draaienKan geen geschikte visualisatie vinden -- probeer 'glxinfo'Kan %s niet ladenOnbegrijpelijke vensterafmetingen: %s Kan de OpenGL-functie niet instellenKan niet tegelijkertijd schudden en sorteren Kan geen threading gebruiken CentrumOp OpenGL-fouten controlerenKies de te laden verzamelingKies een bestand om de verzameling in op te slaanGeschiedenis wissenCommandoOpdrachtregelopties moeten of aan of uit staan, niet %s Commando'sConfiguratiebestandBij afsluiten om bevestiging vragenToetsenoverzicht...Huidige afbeeldingenmap...Vertraging alvorens aanwijzer te verbergenVertraging alvorens aanwijzer te verbergen (0 = geen)Vertraging tussen afbeeldingenToonduur van afbeelding tijdens diavoorstelling Delete : Het huidige bestand verwijderenMappenInformatie over de afbeelding weergevenSchuifbalken weergevenMenubalk weergevenDithering gebruikenNiet meer vragen.Wilt u dit bestand echt verwijderen? %s GLiv echt afsluiten?Als u een rechthoek trekt met de derde muisknop, vergroot GLiv dat gebied. ESC, q : AfsluitenActie bewerkenActies bewerken...Verstreken tijdOpenGL-filtering inschakelenOvergangen inschakelenOvergangen tussen afbeeldingen inschakelenGeef een afbeeldingsnummer:Kan geen nieuw proces startenFatale fout: GL_MAX_TEXTURE_SIZE = %d BestandEersteIn hoogte laten passenIn breedte laten passenVolledig schermGL_MAX_TEXTURE_SIZE moet groter of gelijk aan 64 zijnGLiv-infovensterGLiv-hulpGLiv in volledig schermGLiv versieGLiv schrijft een verzameling niet naar een terminal GLiv: Selecteer de te openen mapGLiv: Selecteer de te openen bestandenHulpAanwijzer verbergenLengte van geschiedenisLengte van geschiedenis (0 = geen, -1 = oneindig)Horizontaal spiegelenBeginformaat (%s) van venster wordt genegeerd omdat volledig scherm gevraagd is In venster laten passenAfbeeldingenAfbeeldingenmenuIn het commandoveld kunnen opmaaktekens zoals in printf() gebruikt worden: %d pad naar de huidige map %b naam van huidige bestand %f pad naar huidige bestand %% een letterlijk %-teken Beginpositie van afbeeldingInvoegen van bestanden...InterfaceSlechts één afbeelding in het geheugen houdenTransformaties vasthoudenTransformaties behouden bij wisselen van afbeeldingLaatsteMeldingsduur van "Eerste"/"Laatste"Verzameling inlezen...Volgende afbeelding ladenVorige afbeelding ladenDe N-de afbeelding laden...Inlezen van verzameling: %sLaadfouten M : Afbeelding vergroten naar venstergrootteSneltoetsen tonen in afbeeldingenmenu'sDiavoorstelling steeds herhalenKleinere afbeelding vergrotenKleinere afbeeldingen vergrotenMaximum aantal beelden per secondeMaximum aantal beelden per seconde (-1= oneindig)Menubalk tonenVerplaatsenOmlaagNaar linksNaar rechtsOmhoogGEENNaamGeen afbeelding gevondenGeen afbeelding geladenGeen afbeeldingen om in een verzameling te plaatsen Map openen...Openen met GimpMiniaturenoverzicht...Openen...OpenGL-fout in %s() bij %s:%d: %sOpenGL wordt niet ondersteundOptiesKeuzes worden opgeslagenOpties...'%s' overschrijven?Ontledingsfout in configuratiebestand: %s Pause : Diavoorstelling starten/stoppenAfsluitenAfbeeldingenmenu opnieuw opbouwenDit menu opnieuw opbouwenOpnieuw opbouwen:Mappen recursief doorlopenOpnieuwHuidige afbeelding herladenResterende tijdHuidige bestand verwijderenTerug naar normaal+0.1 graden+90 graden-0.1 graden-90 gradenRoterenZelfde als vorigeVerzameling opslaan...Opties nu opslaanOpties opslaan bij afsluitenOpslaan van verzameling: %sGrotere afbeelding verkleinenGrotere afbeeldingen verkleinenSchuifbalken tonenZie http://guichaz.free.fr/gliv/ voor de nieuwste versie.PositionerenDit venster als server instellenMiniaturen tonen in afbeeldingenmenu'sAfbeeldingenlijst schuddenDiavoorstellingAfbeeldingenlijst sorterenSpatie en Backspace werken als n en p.standaarduitvoerOpstarten in volledig scherm-modusDiavoorstelling startenBij opstarten met een diavoorstelling beginnenStatusbalk tonenStoppen met opnieuw opbouwenDiavoorstelling stoppenDe actie '%s' werd beëindigd met een afsluitwaarde ongelijk aan nul: %dDe actienaam '%s' is al in gebruikDe eerste muisknop en de pijltjestoetsen verplaatsen de afbeelding. Als de Control-toets vastgehouden wordt, wordt de afbeelding gedraaid.Tijdens laden van volgende afbeelding zijn deze fouten opgetreden: Gelezen configuratiebestand: %sConfiguratie wordt geschreven naar: %sHoogte van miniatuurBreedte van miniatuurMiniaturenoverzichtAlfa-controles aan/uitVolledig scherm aan/uitMenubalk aan/uitSchuifbalken aan/uitStatusbalk aan/uitDrijvende vensters aan/uitLinker bovenhoekRechter bovenhoekTotale tijdTransformatiesDuur van overgangOvergangen gehoorzamen het maximum aantal beelden per seconde zoals ingesteld op de Transformaties-tab.Elk bestand proberen te ladenOngedaan makenOnbekende OpenGL-fout (%d)Onbekende optie in configuratiebestand: %s Gebruik 'gliv --help' om de opdrachtregelopties te zien. Beknopte hulp verkrijgt u door 'h' te typen of het menu te gebruiken.Verticaal spiegelenOnjuist URI-formaat: %d (in plaats van 8)Onjuiste URI-lengte: %dU kunt ook vergroten en verkleinen door de muis te verschuiven terwijl u de Shift-toets en de eerste muisknop ingedrukt houdt.Vergroting uitvoeren gecentreerd op aanwijzerVergrotenVerkleinen a : Weergave van alfa-controles aan-/uitzettenalfa-kanaalalfa-1-tegel: blauwe kanaalalfa-1-tegel: groene kanaalalfa-1-tegel: rode kanaalalfa-2-tegel: blauwe kanaalalfa-2-tegel: groene kanaalalfa-2-tegel: rode kanaal b : Weergave van menubalk aan-/uitzettenachtergrond: blauwe kanaalachtergrond: groene kanaalachtergrond: rode kanaal c : De geschiedenis wissen d : De aanwijzer verbergenmapmap/bestand e : Verticaal spiegelenelementen f : Volledig scherm / vensterbestandHertz g : De afbeeldingkiezer weergevenglXMakeCurrent() is mislukt h : Weergave van hulpvenster aan-/uitzetten i : Weergave van infobalk aan-/uitzetten l : Afbeelding verkleinen naar venstergrootteladen van m : Afbeelding doen passen in venstermilliseconden n/p : Volgende/vorige afbeelding o : Openen-dialoog weergevenbeeldpunten r : Positie en grootte herstellen naar normaal s : Weergave van schuifbalken aan-/uitzettenseconden t : Opties-dialoog weergevenovergang van '%s' naar '%s' u : Ongedaan maken w : Drijvende vensters aan-/uitzettenbreedte x hoogte y : Opnieuw doen z : Horizontaal spiegelenvergrotings-% (draaiing)gliv-1.9.7/po/sv.po0000644000076400007640000006256311465576131011372 0ustar gg# Swedish translation of gliv. # Copyright (C) 2006 Guillaume Chazarain # This file is distributed under the same license as the gliv package. # Daniel Nylander , 2006. # msgid "" msgstr "" "Project-Id-Version: gliv 1.9.4\n" "Report-Msgid-Bugs-To: guichaz@gmail.com\n" "POT-Creation-Date: 2010-04-19 00:52+0200\n" "PO-Revision-Date: 2006-01-11 15:01+0100\n" "Last-Translator: Daniel Nylander \n" "Language-Team: Swedish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=iso-8859-1\n" "Content-Transfer-Encoding: 8bit\n" #: src/actions.c:121 msgid "Failed to create a new process" msgstr "Misslyckades att skapa en ny process" #: src/actions.c:126 #, c-format msgid "The action '%s' terminated with a non-null return code: %d" msgstr "tgrden \"%s\" terminerades med en icke-noll felkod: %d" #: src/actions.c:230 msgid "Open in Gimp" msgstr "ppna i Gimp" #: src/actions.c:333 #, c-format msgid "The action name '%s' is already used" msgstr "tgrdsnamnet \"%s\" anvnds redan" #: src/actions.c:463 src/glade_actions.c:165 src/tree_browser.c:211 msgid "Name" msgstr "Namn" #: src/actions.c:464 src/glade_actions.c:172 msgid "Command" msgstr "Kommando" #: src/collection.c:152 msgid "Choose a file to save the collection" msgstr "Vlj en fil att spara samlingen i" #: src/collection.c:159 #, c-format msgid "Overwrite \"%s\" ?" msgstr "Skriv ver \"%s\" ?" #: src/collection.c:238 msgid "Elapsed time" msgstr "tgngen tid" #: src/collection.c:239 msgid "Remaining time" msgstr "terstende tid" #: src/collection.c:240 msgid "Total time" msgstr "Total tid" #: src/collection.c:247 src/collection.c:637 #, c-format msgid "Saving collection: %s" msgstr "Sparar samling: %s" #: src/collection.c:250 src/collection.c:1044 #, c-format msgid "Loading collection: %s" msgstr "Lser in samling: %s" #: src/collection.c:366 msgid "Inserting files..." msgstr "Lgger in filer..." #: src/collection.c:615 msgid "No images to put in a collection\n" msgstr "Inga bilder att lgga in i samling\n" #: src/collection.c:622 msgid "GLiv won't write a collection to a terminal\n" msgstr "GLiv kommer inte att skriva en samling till en terminal\n" #: src/collection.c:643 msgid "Standard output" msgstr "Standard ut" #: src/collection.c:1064 #, c-format msgid "%s is not a GLiv collection" msgstr "%s r inte en GLiv-samling" #: src/collection.c:1077 msgid "Choose a collection to load" msgstr "Vlj en samling att lsa in" #: src/files_list.c:499 #, c-format msgid "" "Do you really want to delete this file?\n" "%s\n" msgstr "" "Vill du verkligen ta bort denna fil?\n" "%s\n" #: src/files_list.c:523 msgid "directory/file" msgstr "katalog/fil" #: src/gl_widget.c:130 #, c-format msgid "Wrong URI format: %d (instead of 8)" msgstr "Felaktigt URI-format: %d (istllet fr 8)" #: src/gl_widget.c:135 #, c-format msgid "Wrong URI length: %d" msgstr "Felaktig URI-lngd: %d" #: src/gl_widget.c:227 #, c-format msgid "Fatal error: GL_MAX_TEXTURE_SIZE = %d\n" msgstr "Allvarligt fel: GL_MAX_TEXTURE_SIZE = %d\n" #: src/gl_widget.c:231 msgid "GL_MAX_TEXTURE_SIZE must be >= 64" msgstr "GL_MAX_TEXTURE_SIZE mste vara >= 64" #: src/gl_widget.c:257 msgid "glXMakeCurrent() failed" msgstr "glXMakeCurrent() misslyckades" #: src/gl_widget.c:310 msgid "OpenGL not supported" msgstr "OpenGL stds ej" #: src/gl_widget.c:321 msgid "Cannot find an appropriate visual, try glxinfo(1)" msgstr "Kan inte hitta en lmplig visningsenhet, frsk med glxinfo(1)" #: src/gl_widget.c:328 msgid "Cannot set the OpenGL capability" msgstr "Kan inte stta OpenGL-funktionalitet" #: src/gl_widget.c:366 #, c-format msgid "Unknown OpenGL error (%d)" msgstr "Oknt OpenGL-fel (%d)" #: src/gl_widget.c:370 #, c-format msgid "" "OpenGL error in %s() at %s:%d:\n" "%s" msgstr "" "OpenGL-fel i %s() p %s:%d:\n" "%s" #: src/glade_actions.c:43 msgid "Actions" msgstr "tgrder" #: src/glade_actions.c:149 msgid "Edit Action" msgstr "Redigera tgrd" #: src/glade_actions.c:206 msgid "" "In the command field, printf like substitutions can be used:\n" "%d\t\tPath to the current file directory\n" "%b\t\tCurrent file name\n" "%f\t\tPath to the current file\n" "%%\t\tA litteral %\n" msgstr "" "I kommandofltet kan printf-liknande ersttningar anvndas:\n" "%d\t\tSkvg till aktuell filkatalog\n" "%b\t\tAktuellt filnamn\n" "%f\t\tSkvg till aktuell fil\n" "%%\t\tEn litteral %\n" #: src/glade_image_nr.c:45 src/menus.c:417 msgid "Load the Nth image..." msgstr "Ls in N:te bild..." #: src/glade_image_nr.c:65 msgid "Enter an image number:" msgstr "Ange ett bildnummer:" #: src/glade_image_nr.c:81 msgid "directory" msgstr "katalog" #: src/glade_image_nr.c:87 msgid "file" msgstr "fil" #: src/glade_options.c:138 src/menus.c:503 msgid "Options" msgstr "Instllningar" #: src/glade_options.c:174 msgid "Save options now" msgstr "Spara instllningar nu" #: src/glade_options.c:178 src/rcfile.c:116 msgid "Save options when quitting" msgstr "Spara instllningar vid avslut" #: src/glade_options.c:193 msgid "Configuration file" msgstr "Konfigurationsfil" #: src/glade_options.c:215 msgid "Scrollbars enabled" msgstr "Rullister aktiverade" #: src/glade_options.c:222 msgid "Fullscreen mode" msgstr "Helskrmslge" #: src/glade_options.c:229 msgid "Menu bar enabled" msgstr "Menylist aktiverad" #: src/glade_options.c:236 msgid "Status bar enabled" msgstr "Statuslist aktiverad" #: src/glade_options.c:243 src/rcfile.c:115 msgid "Confirm before quitting" msgstr "Bekrfta fre avslut" #: src/glade_options.c:250 src/rcfile.c:114 msgid "Automatic window resizing" msgstr "Automatisk storleksndring av fnster" #: src/glade_options.c:261 msgid "" "Delay before hiding the cursor\n" "0: feature disabled" msgstr "" "Frdrjning fre muspekaren gms\n" "0: stng av funktion" #: src/glade_options.c:274 src/glade_options.c:587 src/glade_options.c:634 msgid "milliseconds" msgstr "millisekunder" #: src/glade_options.c:279 msgid "Interface" msgstr "Grnssnitt" #: src/glade_options.c:290 src/rcfile.c:99 msgid "Scale down large images" msgstr "Skala ned stora bilder" #: src/glade_options.c:297 src/rcfile.c:98 msgid "Maximize small images" msgstr "Maximera sm bilder" #: src/glade_options.c:304 src/rcfile.c:108 msgid "Build mipmaps" msgstr "Bygg MIP-karta" #: src/glade_options.c:311 src/rcfile.c:105 msgid "Dithering" msgstr "Dittering" #: src/glade_options.c:318 src/rcfile.c:111 msgid "Keep only one image in memory" msgstr "Hll endast en bild i minne" #: src/glade_options.c:325 src/rcfile.c:120 msgid "Check for OpenGL errors" msgstr "Leta efter OpenGL-fel" #: src/glade_options.c:332 src/rcfile.c:121 msgid "Enable OpenGL filtering" msgstr "Aktivera OpenGL-filtrering" #: src/glade_options.c:339 src/images_menus.c:330 src/images_menus.c:479 #: src/menus.c:521 msgid "Images" msgstr "Bilder" #: src/glade_options.c:352 src/rcfile.c:107 msgid "Build images menus at startup" msgstr "Bygg bildmenyer vid uppstart" #: src/glade_options.c:357 src/rcfile.c:109 msgid "Make mnemonics for images menus" msgstr "Skapa minneshjlp fr bildmenyer" #: src/glade_options.c:362 src/rcfile.c:112 msgid "Show thumbnails in images menus" msgstr "Visa miniatyrbilder i bildmenyer" #: src/glade_options.c:371 src/glade_options.c:380 msgid "pixels" msgstr "pixlar" #: src/glade_options.c:389 src/rcfile.c:127 msgid "Thumbnail height" msgstr "Hjd fr miniatyrbild" #: src/glade_options.c:418 src/rcfile.c:126 msgid "Thumbnail width" msgstr "Bredd fr miniatyrbild" #: src/glade_options.c:427 msgid "Images menus" msgstr "Bildmenyer" #: src/glade_options.c:442 src/rcfile.c:103 msgid "Zoom centered on pointer" msgstr "Zoom centrerad vid pekare" #: src/glade_options.c:447 msgid "Keep transformations when switching images" msgstr "Behll transformeringar nr bilder byts" #: src/glade_options.c:456 src/rcfile.c:130 msgid "Initial image position" msgstr "Initial bildposition" #: src/glade_options.c:463 src/menus.c:460 msgid "Center" msgstr "Center" #: src/glade_options.c:464 src/menus.c:461 msgid "Top left" msgstr "vre-vnster" #: src/glade_options.c:465 src/menus.c:462 msgid "Top right" msgstr "vre-hger" #: src/glade_options.c:466 src/menus.c:463 msgid "Bottom left" msgstr "Nedre-vnster" #: src/glade_options.c:467 src/menus.c:464 msgid "Bottom right" msgstr "Nedre-hger" #: src/glade_options.c:468 msgid "Same as previous" msgstr "Samma som fregende" #: src/glade_options.c:495 msgid "" "History length\n" "0: feature disabled\n" "-1: infinite" msgstr "" "Historiklngd\n" "0: funktion avstngd\n" "-1: ondlig" #: src/glade_options.c:503 msgid "" "Maximum framerate\n" "-1: infinite" msgstr "" "Maximal bildhastighet\n" "-1: ondlig" #: src/glade_options.c:511 msgid "elements" msgstr "element" #: src/glade_options.c:519 msgid "fps" msgstr "bilder/s" #: src/glade_options.c:527 src/menus.c:447 msgid "Transformations" msgstr "Transformeringar" #: src/glade_options.c:542 src/rcfile.c:113 msgid "Start with the slide show" msgstr "Starta med bildspelet" #: src/glade_options.c:547 src/rcfile.c:110 msgid "Make the slide show loop" msgstr "Gr att bildspelet upprepas" #: src/glade_options.c:556 src/rcfile.c:128 msgid "Last/First image notice time" msgstr "Tid fr upptckt av sista/frsta bilden" #: src/glade_options.c:563 msgid "Delay between images during the slide show" msgstr "Frdrjning mellan bilder under bildspelet" #: src/glade_options.c:580 msgid "seconds" msgstr "sekunder" #: src/glade_options.c:608 msgid "Enable transitions between images" msgstr "Aktivera vergngar mellan bilder" #: src/glade_options.c:621 src/rcfile.c:129 #, fuzzy msgid "Transition duration" msgstr "Transformeringar" #: src/glade_options.c:639 msgid "" "Transitions obey the maximum framerate parameter in the Transformations tab" msgstr "" #: src/glade_options.c:644 msgid "Slide show" msgstr "Bildspel" #: src/glade_options.c:657 msgid "Alpha 2" msgstr "Alfa 2" #: src/glade_options.c:664 msgid "Alpha 1" msgstr "Alfa 1" #: src/glade_options.c:671 src/glade_options.c:706 msgid "Background" msgstr "Bakgrund" #: src/glade_options.c:692 msgid "Alpha checks" msgstr "Alfakontroller" #: src/help.c:102 src/help.c:109 msgid "GLiv help" msgstr "Hjlp fr GLiv" #: src/help.c:163 msgid "GLiv about box" msgstr "Om-rutan fr GLiv" #: src/help_text.c:15 msgid "ESC, q : Quit" msgstr "ESC, q : Avsluta" #: src/help_text.c:18 msgid "f : Full-screen/window" msgstr "f : Helskrm/fnster" #: src/help_text.c:21 msgid "+/=/- : Zoom in/in/out" msgstr "+/=/- : Zooma in/in/ut" #: src/help_text.c:24 msgid "n/p : Next/previous image" msgstr "n/p : Nsta/fregende bild" #: src/help_text.c:27 msgid "Pause : Start/stop the slide show" msgstr "Paus : Starta/stoppa bildspelet" #: src/help_text.c:30 msgid "l : Reduce the image to the window" msgstr "l : Minska bilden till fnstret" #: src/help_text.c:33 msgid "M : Maximize the image to the window" msgstr "M : Maximera bilden till fnstret" #: src/help_text.c:36 msgid "m : Make the image fit the window" msgstr "m : Gr att bilden anpassas till fnstret" #: src/help_text.c:39 msgid "r : Reset position and size" msgstr "r : terstll position och storlek" #: src/help_text.c:42 msgid "b : Toggle display of the menu bar" msgstr "b : Vxla visning av menylisten" #: src/help_text.c:45 msgid "i : Toggle display of the info bar" msgstr "i : Vxla visning av infolisten" #: src/help_text.c:48 msgid "s : Toggle display of the scrollbars" msgstr "s : Vxla visning av rullisterna" #: src/help_text.c:51 msgid "a : Toggle display of the alpha checks" msgstr "a : Vxla visning av alfakontrollerna" #: src/help_text.c:54 msgid "h : Toggle display of the help box" msgstr "h : Vxla visning av hjlprutan" #: src/help_text.c:57 msgid "w : Toggle display of floating windows" msgstr "w : Vxla visning av flytande fnster" #: src/help_text.c:60 msgid "o : Display the open dialog" msgstr "o : Visa inlsningsdialogen" #: src/help_text.c:63 msgid "g : Display the image selector" msgstr "g : Visa bildvljaren" #: src/help_text.c:66 msgid "t : Display the options dialog" msgstr "t : Visa instllningsdialogen" #: src/help_text.c:69 msgid "d : Hide the cursor" msgstr "d : Gm muspekaren" #: src/help_text.c:72 msgid "u : Undo" msgstr "u : ngra" #: src/help_text.c:75 msgid "y : Redo" msgstr "y : Gr om" #: src/help_text.c:78 msgid "c : Clear the history" msgstr "c : Rensa historik" #: src/help_text.c:81 msgid "Delete : Delete the current file" msgstr "Delete : Ta bort nuvarande fil" #: src/help_text.c:84 msgid "C-up : Rotate by +90 degrees" msgstr "C-upp : Rotera +90" #: src/help_text.c:87 msgid "C-down : Rotate by -90 degrees" msgstr "C-ned : Rotera -90" #: src/help_text.c:90 msgid "C-left : Rotate by +0.1 degree" msgstr "C-vnst: Rotera +0,1" #: src/help_text.c:93 msgid "C-right: Rotate by -0.1 degree" msgstr "C-hger: Rotera -0,1" #: src/help_text.c:96 msgid "z : Horizontal flip" msgstr "z : Vnd horisontellt" #: src/help_text.c:99 msgid "e : Vertical flip" msgstr "e : Vnd vertikalt" #: src/help_text.c:104 msgid "" "The first mouse button and the arrow keys will move the image unless the " "Control key is pressed. In which case the image will be rotated around the " "window center." msgstr "" "Frsta musknappen och piltangenterna kommer att flytta bilden om inte " "Control-tangenten r nedtryckt. I det fallet kommer bilden att roteras runt " "fnstrets mitt." #: src/help_text.c:107 msgid "" "The mouse wheel zooms the image, and when you hold its button pressed at the " "same time it switches to the neighbouring image." msgstr "" #: src/help_text.c:110 msgid "" "You can also zoom by dragging the mouse vertically while holding Shift and " "the first button." msgstr "" "Du kan ocks zooma genom att dra musen vertikalt, hlla nere Shift och " "frsta knappen." #: src/help_text.c:113 msgid "Space and Backspace act like n and p." msgstr "Blanksteg och baksteg fungerar som n och p." #: src/help_text.c:116 msgid "Draw a rectangle with the third button and gliv will zoom in it." msgstr "" "Rita en rektangel med den tredje knappen och gliv kommer att zooma in den." #: src/images_menus.c:82 msgid "Rebuilding:" msgstr "Bygger om:" #: src/images_menus.c:209 src/images_menus.c:447 src/menus.c:517 msgid "Directories" msgstr "Kataloger" #: src/images_menus.c:296 msgid "Current image directory..." msgstr "Nuvarande bildkatalog..." #: src/images_menus.c:363 src/menus.c:337 msgid "Rebuild this menu" msgstr "Bygg om denna meny" #: src/images_menus.c:370 src/menus.c:338 msgid "Open thumbnails browser..." msgstr "ppna miniatyrbildsblddrare..." #: src/include/about.h:6 msgid "GLiv version" msgstr "GLiv version" #: src/include/about.h:8 msgid "" "Use 'gliv --help' to show command line options.\n" "A quick help is accessible by typing 'h' or using the menu." msgstr "" "Anvnd \"gliv --help\" fr att se kommandoradsflaggor.\n" "Snabbhjlp ns via tangenten \"h\" eller via menyn." #: src/include/about.h:10 msgid "See http://guichaz.free.fr/gliv for updates." msgstr "Se http://guichaz.free.fr/gliv fr uppdateringar." #: src/loading.c:81 #, c-format msgid "%s not while loading an image\n" msgstr "%s inte vid inlsning av bild\n" #: src/loading.c:83 #, c-format msgid "%s while loading %s\n" msgstr "%s vid inlsning %s\n" #: src/loading.c:102 msgid "alpha channel" msgstr "alfakanal" #: src/loading.c:158 #, c-format msgid "%s: unknown decompressed extension\n" msgstr "%s: oknd uppackad filndelse\n" #: src/loading.c:165 #, c-format msgid "%s: image cannot be compressed twice\n" msgstr "%s: bild kan inte komprimeras tv gnger\n" #: src/loading.c:188 #, c-format msgid "%s: unknown extension (none)\n" msgstr "%s: oknd filndelse (ingen)\n" #: src/loading.c:197 #, c-format msgid "%s: unknown extension\n" msgstr "%s: oknd filndelse\n" #: src/loading.c:291 src/next_image.c:280 #, c-format msgid "Cannot load %s" msgstr "Kan inte lsa %s" #: src/main.c:65 #, c-format msgid "Command line flags should be on or off, not %s\n" msgstr "Kommandoradsflaggor br vara \"on\" eller \"off\", inte \"%s\"\n" #: src/main.c:181 msgid "Cannot sort and shuffle at the same time\n" msgstr "Kan inte sortera och blanda p samma gng\n" #: src/main.c:221 msgid "" "The --client and --client-clear command line options are mutually exclusive\n" msgstr "" #: src/main.c:253 src/main.c:256 msgid "Do not ask again" msgstr "Frga inte igen" #: src/main.c:257 msgid "Options will be saved" msgstr "Instllningar kommer att sparas" #: src/main.c:279 msgid "Do you really want to quit GLiv?" msgstr "Vill du verkligen avsluta GLiv?" #: src/main.c:337 src/next_image.c:542 msgid "No image found" msgstr "Ingen bild hittad" #: src/menus.c:403 msgid "File" msgstr "Arkiv" #: src/menus.c:404 msgid "Open..." msgstr "ppna..." #: src/menus.c:405 msgid "Open directory..." msgstr "ppna katalog..." #: src/menus.c:407 msgid "Load collection..." msgstr "Ls in samling..." #: src/menus.c:408 msgid "Save collection..." msgstr "Spara samling..." #: src/menus.c:410 msgid "Quit" msgstr "Avsluta" #: src/menus.c:414 msgid "Commands" msgstr "Kommandon" #: src/menus.c:415 msgid "Load previous image" msgstr "Ls in fregende bild" #: src/menus.c:416 msgid "Load next image" msgstr "Ls in nsta bild" #: src/menus.c:418 #, fuzzy msgid "Load first image" msgstr "Ls in nsta bild" #: src/menus.c:419 #, fuzzy msgid "Load last image" msgstr "Ls in nsta bild" #: src/menus.c:420 #, fuzzy msgid "Load random image" msgstr "Ls in nsta bild" #: src/menus.c:421 msgid "Reload the current image" msgstr "Ls om nuvarande bild" #: src/menus.c:423 msgid "Sort images list" msgstr "Sortera bildlista" #: src/menus.c:424 msgid "Shuffle images list" msgstr "Blanda bildlista" #: src/menus.c:426 msgid "Rebuild images menus" msgstr "Bygg om bildmenyer" #: src/menus.c:427 msgid "Stop rebuilding the images menu" msgstr "Stoppa ombyggnad av bildmeny" #: src/menus.c:431 msgid "Toggle floating windows" msgstr "Vxla flytande fnster" #: src/menus.c:433 src/next_image.c:799 msgid "Start the slide show" msgstr "Starta bildspelet" #: src/menus.c:437 msgid "Remove the current file" msgstr "Ta bort nuvarande fil" #: src/menus.c:440 msgid "Edit actions..." msgstr "Redigera tgrder..." #: src/menus.c:441 msgid "Action on the current image" msgstr "tgrd fr nuvarande bild" #: src/menus.c:443 msgid "Action on every image" msgstr "tgrd fr varje bild" #: src/menus.c:448 msgid "Undo" msgstr "ngra" #: src/menus.c:449 msgid "Redo" msgstr "Gr om" #: src/menus.c:450 msgid "Clear history" msgstr "Rensa historik" #: src/menus.c:452 msgid "Move" msgstr "Flytta" #: src/menus.c:453 msgid "Move left" msgstr "Flytta vnster" #: src/menus.c:454 msgid "Move right" msgstr "Flytta hger" #: src/menus.c:455 msgid "Move up" msgstr "Flytta upp" #: src/menus.c:456 msgid "Move down" msgstr "Flytta ned" #: src/menus.c:459 msgid "Set position" msgstr "Stll in position" #: src/menus.c:467 msgid "Rotation" msgstr "Rotering" #: src/menus.c:468 msgid "Rotate +90 deg" msgstr "Rotera +90" #: src/menus.c:470 msgid "Rotate -90 deg" msgstr "Rotera -90" #: src/menus.c:472 msgid "Rotate +0.1 deg" msgstr "Rotera +0,1" #: src/menus.c:474 msgid "Rotate -0.1 deg" msgstr "Rotera -0,1" #: src/menus.c:480 msgid "Horizontal flip" msgstr "Vnd horisontellt" #: src/menus.c:482 msgid "Vertical flip" msgstr "Vnd vertikalt" #: src/menus.c:486 msgid "Maximize small image" msgstr "Maximera sm bilder" #: src/menus.c:487 msgid "Scale down large image" msgstr "Minska ner stora bilder" #: src/menus.c:489 msgid "Image fit window" msgstr "Bild anpassad efter fnster" #: src/menus.c:492 msgid "Zoom in" msgstr "Zooma in" #: src/menus.c:493 msgid "Zoom out" msgstr "Zooma ut" #: src/menus.c:494 msgid "Fit width" msgstr "" #: src/menus.c:495 #, fuzzy msgid "Fit height" msgstr "bredd hjd" #: src/menus.c:499 msgid "Reset" msgstr "terstll" #: src/menus.c:504 msgid "Toggle Fullscreen mode" msgstr "Vxla helskrmslge" #: src/menus.c:505 msgid "Toggle Menu Bar" msgstr "Vxla menylist" #: src/menus.c:506 msgid "Toggle Status Bar" msgstr "Vxla statuslist" #: src/menus.c:507 msgid "Toggle Scrollbars" msgstr "Vxla rullister" #: src/menus.c:508 msgid "Toggle Alpha checks" msgstr "Vxla Alfakontroller" #: src/menus.c:510 msgid "Hide the cursor" msgstr "Gm muspekaren" #: src/menus.c:511 msgid "Set this window as server" msgstr "Stt detta fnster som server" #: src/menus.c:513 msgid "Options..." msgstr "Instllningar..." #: src/menus.c:532 msgid "Help" msgstr "Hjlp" #: src/menus.c:533 msgid "About..." msgstr "Om..." #: src/menus.c:534 msgid "Controls..." msgstr "Kontroller..." #: src/next_image.c:143 msgid "First image" msgstr "Frsta bilden" #: src/next_image.c:146 msgid "Last image" msgstr "Sista bilden" #: src/next_image.c:226 msgid "Loading errors" msgstr "Inlsningsfel" #: src/next_image.c:239 msgid "The following errors occurred while loading the next image:\n" msgstr "Fljande fel intrffade vid inlsning av nsta bild:\n" #: src/next_image.c:828 msgid "Stop the slide show" msgstr "Stoppa bildspelet" #: src/open_dialog.c:101 msgid "GLiv: Select a folder to open" msgstr "GLiv: Vlj en katalog att ppna" #: src/open_dialog.c:104 msgid "GLiv: Select files to open" msgstr "GLiv: Vlj filer att ppna" #: src/open_dialog.c:129 src/rcfile.c:106 msgid "Try to load every file" msgstr "Frsk att lsa in varje fil" # Bttre ord fr korsning.. vergng.. #: src/open_dialog.c:130 src/rcfile.c:118 msgid "Recursive directory traversal" msgstr "Rekursiv kataloggenomskning" #: src/options.c:219 src/options.c:237 msgid "NONE" msgstr "INGEN" #: src/options.c:222 #, c-format msgid "This configuration file has been read: %s" msgstr "Denna konfigurationsfil har lsts in: %s" #: src/options.c:240 #, c-format msgid "This configuration file will be written: %s" msgstr "Denna konfigurationsfil kommer att skrivas: %s" #: src/rcfile.c:97 msgid "Start in full screen mode" msgstr "Starta i helskrmslge" #: src/rcfile.c:100 msgid "Display the menu bar" msgstr "Visa menylisten" #: src/rcfile.c:101 msgid "Display info about the image" msgstr "Visa information om bilden" #: src/rcfile.c:102 msgid "Display scrollbars" msgstr "Visa rullister" #: src/rcfile.c:104 msgid "Alpha checks in the background" msgstr "Alfakontroller i bakgrunden" #: src/rcfile.c:117 msgid "Enable transitions" msgstr "Aktivera vergngar" #: src/rcfile.c:119 msgid "Keep transfo between images" msgstr "Behll transformering mellan bilder" #: src/rcfile.c:122 msgid "Maximum framerate" msgstr "Max bildhastighet" #: src/rcfile.c:123 msgid "Delay before hiding the cursor" msgstr "Frdrjning fre pekare gms" #: src/rcfile.c:124 msgid "History length" msgstr "Historiklngd" #: src/rcfile.c:125 msgid "Delay between images" msgstr "Frdrjning mellan bilder" #: src/rcfile.c:131 msgid "background: red channel" msgstr "bakgrund: rd kanal" #: src/rcfile.c:132 msgid "background: green channel" msgstr "bakgrund: grn kanal" #: src/rcfile.c:133 msgid "background: blue channel" msgstr "bakgrund: bl kanal" #: src/rcfile.c:134 msgid "alpha1 tile: red channel" msgstr "Ruta alpha1: rd kanal" #: src/rcfile.c:135 msgid "alpha1 tile: green channel" msgstr "Ruta alpha1: grn kanal" #: src/rcfile.c:136 msgid "alpha1 tile: blue channel" msgstr "Ruta alpha1: bl kanal" #: src/rcfile.c:137 msgid "alpha2 tile: red channel" msgstr "Ruta alpha2: rd kanal" #: src/rcfile.c:138 msgid "alpha2 tile: green channel" msgstr "Ruta alpha2: grn kanal" #: src/rcfile.c:139 msgid "alpha2 tile: blue channel" msgstr "Ruta alpha2: bl kanal" #: src/rcfile.c:238 #, c-format msgid "Unknown option in configuration file: %s\n" msgstr "" #: src/rcfile.c:240 #, fuzzy, c-format msgid "Parse error in configuration file: %s\n" msgstr "" "# Konfigurationsfil fr GLiv %s\n" "\n" #: src/rcfile.c:486 #, c-format msgid "" "# Configuration file for GLiv %s\n" "\n" msgstr "" "# Konfigurationsfil fr GLiv %s\n" "\n" #: src/rcfile.c:487 msgid "# Option names are case sensitive.\n" msgstr "# Flaggnamn r shift-knsliga.\n" #: src/rcfile.c:488 msgid "" "# Option values are case insensitive.\n" "\n" msgstr "" "# Flaggvrden r ej skiftknsliga.\n" "\n" #: src/thread.c:164 msgid "Cannot use a thread\n" msgstr "Kan inte anvnda en trd\n" #: src/transition.c:261 #, c-format msgid "transition from `%s' to `%s'" msgstr "vergng frn \"%s\" till \"%s\"" #: src/tree_browser.c:80 msgid "Browser" msgstr "Blddrare" #: src/tree_browser.c:201 msgid "Thumb" msgstr "" #: src/tree_browser.c:222 msgid "Thumbnails browser" msgstr "Miniatyrbildsblddrare" #: src/windows.c:207 msgid "loading" msgstr "lser in" #: src/windows.c:238 msgid "No image loaded" msgstr "Ingen bild inlst" #: src/windows.c:239 msgid "width x height" msgstr "bredd hjd" #: src/windows.c:240 msgid "zoom% (angle)" msgstr "zoom% (vinkel)" #: src/windows.c:319 #, c-format msgid "%.3f%% (%.3f deg%s)" msgstr "%.3f%% (%.3f%s)" #: src/windows.c:363 #, c-format msgid "Ignoring initial geometry (%s) as fullscreen mode is requested\n" msgstr "" #: src/windows.c:375 #, c-format msgid "Cannot parse geometry: %s\n" msgstr "" #: src/windows.c:409 msgid "GLiv in fullscreen" msgstr "GLiv i helskrm" #~ msgid "" #~ "Your mouse wheel (if supported) will zoom the image and switch it when " #~ "you press the button." #~ msgstr "" #~ "Ditt mushjul (om den stds) kommer att zooma i bilden och vxla den nr " #~ "du trycker p knappen." #~ msgid "Steps count in a transition" #~ msgstr "Antal steg i en vergng" #~ msgid "steps" #~ msgstr "steg" #~ msgid "Time to wait between each step" #~ msgstr "Tid att vnta mellan varje steg" gliv-1.9.7/po/pl.gmo0000644000076400007640000004720611465576131011516 0ustar gg4[L"#'(<Xw%# #,B^fn v    3Rq1 ) 7LSk$ / &2M2l*   )< Q[+l @   $1I!\~&   !3 BL _,l/&?6v D[ nx*   ) 9 I ] o   )   !#!9!K!j!{! ! ! !!!!!!!!! "","!4"V"k"s" ""&""""" # #'#E#J#c#r########## $'$=$T$l$,$ $$$$ %%%#%I%Y%s%%%%%L%:6&$q&&<9')v'+''''((+(;(M(_(w( ( (((K())!));)ke) )#)*\*u***+* ***+'+A+\+'u+++++, ,&,5,L,U,q,v,#z,,',','-.-&6- ]-j- -- -)--#.&. C.+Q.}. .. .:./109N000$0040*.1Y1!t111111 22*2 >2#J2n22 2 2 2(222 3 .3O3Ln33$3&37!4Y4s4%{4!4"44 4P5 U5_5s5 55%565 6)=6g66 666 66#7!(7WJ7777778&8=8=U8+888889#9:9 Q9\9 z9&9#9!999:0 : Q:H_:::::;; ;);+;7%<]</m<<<<<==4=J=b=-|=="==>>19>k>>>>>>>>>>*?2?E?!T? v?%??????2?)/@Y@b@{@@$@@@@@AA'A;ARAfAmAAAAAAABE/BuBB#BBBB0C7C#LCpCCC(CC>D;@D'|DDJEE'E'EEE F)$FNFmFFFF F FFF G]"GGGG+GpG `H&nHHtH/)I YIcI?lII-I+I,J-LJ+zJ,J,JKK,KBK_K~K KK KKKK%KL-!L6OL,LL1L L$L"!MDM$LM5qMMMMM5M,NENUNpN_gKDs,i)u'dcC9-$on xMJmak5(}lLZ/ b =e.\ Gr0H?EB!~*wUzT{p1%#&F" j;[vPVyhtI6X: Q743fN^SR|W<]AOq@2Y8`+># Configuration file for GLiv %s # Option names are case sensitive. # Option values are case insensitive. %.3f%% (%.3f deg%s)%s is not a GLiv collection%s not while loading an image %s while loading %s %s: image cannot be compressed twice %s: unknown decompressed extension %s: unknown extension %s: unknown extension (none) +/=/- : Zoom in/in/outAbout...Action on every imageAction on the current imageActionsAlpha 1Alpha 2Alpha checksAlpha checks in the backgroundAutomatic window resizingBackgroundBottom leftBottom rightBrowserBuild images menus at startupBuild mipmapsC-down : Rotate by -90 degreesC-left : Rotate by +0.1 degreeC-right: Rotate by -0.1 degreeC-up : Rotate by +90 degreesCannot find an appropriate visual, try glxinfo(1)Cannot load %sCannot parse geometry: %s Cannot set the OpenGL capabilityCannot sort and shuffle at the same time Cannot use a thread CenterCheck for OpenGL errorsChoose a collection to loadChoose a file to save the collectionClear historyCommandCommand line flags should be on or off, not %s CommandsConfiguration fileConfirm before quittingControls...Current image directory...Delay before hiding the cursorDelay before hiding the cursor 0: feature disabledDelay between imagesDelay between images during the slide showDelete : Delete the current fileDirectoriesDisplay info about the imageDisplay scrollbarsDisplay the menu barDitheringDo not ask againDo you really want to delete this file? %s Do you really want to quit GLiv?Draw a rectangle with the third button and gliv will zoom in it.ESC, q : QuitEdit ActionEdit actions...Elapsed timeEnable OpenGL filteringEnable transitionsEnable transitions between imagesEnter an image number:Failed to create a new processFatal error: GL_MAX_TEXTURE_SIZE = %d FileFirst imageFit heightFit widthFullscreen modeGL_MAX_TEXTURE_SIZE must be >= 64GLiv about boxGLiv helpGLiv in fullscreenGLiv versionGLiv won't write a collection to a terminal GLiv: Select a folder to openGLiv: Select files to openHelpHide the cursorHistory lengthHistory length 0: feature disabled -1: infiniteHorizontal flipIgnoring initial geometry (%s) as fullscreen mode is requested Image fit windowImagesImages menusIn the command field, printf like substitutions can be used: %d Path to the current file directory %b Current file name %f Path to the current file %% A litteral % Initial image positionInserting files...InterfaceKeep only one image in memoryKeep transfo between imagesKeep transformations when switching imagesLast imageLast/First image notice timeLoad collection...Load first imageLoad last imageLoad next imageLoad previous imageLoad random imageLoad the Nth image...Loading collection: %sLoading errorsM : Maximize the image to the windowMake mnemonics for images menusMake the slide show loopMaximize small imageMaximize small imagesMaximum framerateMaximum framerate -1: infiniteMenu bar enabledMoveMove downMove leftMove rightMove upNONENameNo image foundNo image loadedNo images to put in a collection Open directory...Open in GimpOpen thumbnails browser...Open...OpenGL error in %s() at %s:%d: %sOpenGL not supportedOptionsOptions will be savedOptions...Overwrite "%s" ?Parse error in configuration file: %s Pause : Start/stop the slide showQuitRebuild images menusRebuild this menuRebuilding:Recursive directory traversalRedoReload the current imageRemaining timeRemove the current fileResetRotate +0.1 degRotate +90 degRotate -0.1 degRotate -90 degRotationSame as previousSave collection...Save options nowSave options when quittingSaving collection: %sScale down large imageScale down large imagesScrollbars enabledSee http://guichaz.free.fr/gliv for updates.Set positionSet this window as serverShow thumbnails in images menusShuffle images listSlide showSort images listSpace and Backspace act like n and p.Standard outputStart in full screen modeStart the slide showStart with the slide showStatus bar enabledStop rebuilding the images menuStop the slide showThe --client and --client-clear command line options are mutually exclusive The action '%s' terminated with a non-null return code: %dThe action name '%s' is already usedThe first mouse button and the arrow keys will move the image unless the Control key is pressed. In which case the image will be rotated around the window center.The following errors occurred while loading the next image: This configuration file has been read: %sThis configuration file will be written: %sThumbnail heightThumbnail widthThumbnails browserToggle Alpha checksToggle Fullscreen modeToggle Menu BarToggle ScrollbarsToggle Status BarToggle floating windowsTop leftTop rightTotal timeTransformationsTransition durationTransitions obey the maximum framerate parameter in the Transformations tabTry to load every fileUndoUnknown OpenGL error (%d)Unknown option in configuration file: %s Use 'gliv --help' to show command line options. A quick help is accessible by typing 'h' or using the menu.Vertical flipWrong URI format: %d (instead of 8)Wrong URI length: %dYou can also zoom by dragging the mouse vertically while holding Shift and the first button.Zoom centered on pointerZoom inZoom outa : Toggle display of the alpha checksalpha channelalpha1 tile: blue channelalpha1 tile: green channelalpha1 tile: red channelalpha2 tile: blue channelalpha2 tile: green channelalpha2 tile: red channelb : Toggle display of the menu barbackground: blue channelbackground: green channelbackground: red channelc : Clear the historyd : Hide the cursordirectorydirectory/filee : Vertical flipelementsf : Full-screen/windowfilefpsg : Display the image selectorglXMakeCurrent() failedh : Toggle display of the help boxi : Toggle display of the info barl : Reduce the image to the windowloadingm : Make the image fit the windowmillisecondsn/p : Next/previous imageo : Display the open dialogpixelsr : Reset position and sizes : Toggle display of the scrollbarssecondst : Display the options dialogtransition from `%s' to `%s'u : Undow : Toggle display of floating windowswidth x heighty : Redoz : Horizontal flipzoom% (angle)Project-Id-Version: GLiv 1.9.7 Report-Msgid-Bugs-To: guichaz@gmail.com POT-Creation-Date: 2010-04-19 00:52+0200 PO-Revision-Date: 2007-08-23 12:45+0100 Last-Translator: Marcin Ryk Language-Team: Polish MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # Plik konfiguracyjny GLiv %s # Nazwy opcji są wrażliwe na wielkość liter. # Wartości opcji są niewrażliwe na wielkość liter. %.3f%% (%.3f st. %s)%s nie jest kolekcją GLiv%s nie w trakcie ładowania obrazka %s w trakcie ładowania %s %s: obrazek nie może być podwójnie skompresowany %s: nieznane rozkompresowane rozszerzenie %s: nieznane rozszerzenie %s: nieznane rozszerzenie (brak) +/=/- : Powiększanie/Powiększanie/ZmniejszanieO programie...Akcja na każdym obrazkuAkcja na aktualnym obrazkuDziałaniaPrzezroczystość 1Przezroczystość 2SzachownicaSzachownica przezroczystości w tleAutomatyczne skalowanie oknaTłoLewy dółPrawy dółPrzeglądarkaTwórz obrazki menu podczas uruchomieniaTwórz mipmapyC-dół : Obróć o -90 stopniC-lewo : Obróć o +1/10 stopniaC-prawo: Obróć o -1/10 stopniaC-góra : Obróć o +90 stopniNie można odnaleźć odpowiedniego trybu wyświetlania, spróbuj glxinfo(1)Nie można załadować %sNie można odoczytać geometrii: %s Nie można ustawić parametrów OpenGLNie można sortować i wymieszać w tym samym momencie Nie można użyć wątku ŚrodekSprawdzaj obecność błędów OpenGLWybierz kolekcję do załadowaniaWybierz plik do zapisania kolekcjiWyczyść historięPoleceniePrzełączniki linii poleceń powinny być włączone lub wyłączone, a nie %s PoleceniaPlik konfiguracyjnyPotwierdź przed zamknięciemSterowanie...Aktualny katalog z obrazkami...Opóźnienie ukrycia wskaźnika myszyOpóźnienie ukrycia wskaźnika myszy 0: bez ukrywaniaOpóźnienie pomiędzy obrazkamiOpóźnienie pomiędzy kolejnymi slajdamiDelete : Skasuj aktualny plikKatalogiWyświetlaj informacje o obrazkuWyświetlaj paski przewijaniaWyświetlaj pasek menuPrzesiewanieNie pytaj ponownieCzy na pewno usunąć ten plik? %s Na pewno chcesz zakończyć GLiv?Zaznacz prostokąt za pomocą pobocznego przycisku myszy, a GLiv powiększy ten obszar.ESC, q : WyjścieEdytuj działanieEdytuj akcje...Wykorzystany czasWłącz filtrowanie OpenGLWłącz przejściaWłącz przejścia pomiędzy obrazkamiWprowadź numer obrazkaPróba uruchomienia nowego procesu zakończona niepowodzeniemBłąd krytyczny: GL_MAX_TEXTURE_SIZE = %d PlikPierwszy obrazekDopasuj na wysokośćDopasuj na szerokośćTryb pełnoekranowyGL_MAX_TEXTURE_SIZE musi być >= 64Okno informacyjne GLivPomoc GLivGLiv w trybie pełnoekranowymWersja GLivGLiv nie zapisze kolekcji na terminal GLiv: Wybierz katalog do otworzeniaGLiv: Wybierz pliki do otworzeniaPomocUkryj wskaźnik myszyRozmiar historiiRozmiar historii 0: nieaktywne -1: nieskończoneOdbij poziomoIgnoruję pierwotną geometrię (%s) ze względu na tryb pełnoekranowy Dopasuj obrazek do oknaObrazkiMenu obrazkówW polu poleceń mogą zostać użyte podstawienia w stylu printf: %d Ścieżka do aktualnego pliku/katalogu %b Nazwa aktualnego pliku %f Ścieżka do aktualnego pliku %% Literał % Początkowa pozycja obrazkaDołączanie plików...InterfejsPrzechowuj w pamięci tylko jeden obrazekZachowaj przekształcenia między obrazkamiZachowaj przekształcenia przy przełączaniu obrazkówOstatni obrazekCzas powiadamiania o pierwszym/ostatnim obrazkuZaładuj kolekcję...Załaduj pierwszy obrazekZaładuj ostatni obrazekZaładuj następny obrazekZaładuj poprzedni obrazekZaładuj losowy obrazekZaładuj n-ty obrazekŁadowanie kolekcji: %sBłąd podczas ładowaniaM : Powiększ obrazek do rozmiarów oknaZapamiętuj obrazki menuOdtwarzaj pokaz slajdów w kółkoPowiększaj małe obrazkiPowiększaj małe obrazkiMaksymalna ilość klatek/sek.Maksymalna ilość klatek/s -1: nieskończonośćPasek menu włączonyPrzesuńPrzesuń w dółPrzesuń w lewoPrzesuń w prawoPrzesuń w góręNICNazwaNie znaleziono obrazkaNie załadowano obrazkaBrak obrazków do umieszczenia w kolekcji Otwórz katalog...Otwórz w GimpOtwórz przeglądarkę miniaturekOtwórz...Błąd OpenGL jest w %s() na %s:%d %sOpenGL nie jest obsługiwanyOpcjeOpcje zostaną zapisaneOpcje...Nadpisać '%s' ?Błąd interpretowania pliku konfiguracyjnego: %s Pause : Uruchom/zatrzymaj pokaz slajdówZakończPrzebuduj menu obrazkówPrzebuduj to menuPrzebudowuję:Rekursywne przeszukiwanie katalogówPonówPrzeładuj aktualny obrazekPozostały czasUsuń aktualny plikResetujObrót o +1/10 stopniaObrót o +90 stopniObrót o -1/10 stopniaObrót o -90 stopniObrótTak jak poprzednioZapisz kolekcję...Zapisz opcje terazZapisz opcje podczas zamykaniaZapisywanie kolekcji: %sPomniejszaj duże obrazkiZmniejszaj duże obrazkiPaski przewijania włączoneWejdź na http://guichaz.free.fr/gliv aby zdobyć najnowszą wersję.Ustaw pozycjęUstaw to okno jako serwerPokazuj miniaturki w obrazkach menuPomieszaj listę obrazkówPokaz slajdówPosortuj listę obrazkówSpacja i Backspace zachowuję się jak n oraz p.Standardowe wyjścieRozpocznij w trybie pełnoekranowymRozpocznij pokaz slajdówRozpocznij z pokazem slajdówPasek stanu włączonyZatrzymaj przebudowywanie menu obrazkówZatrzymaj pokaz slajdówOpcje --client oraz --client-clear wykluczają się wzajemnie Akcja '%s' zakończyła się z niezerowym kodem błędu: %dAkcja o nazwie '%s' jest już w użyciuGłówny przycisk myszy oraz strzałki będą przesuwać obrazek dopóki nie zostanie wciśnięty Control. Wtedy obrazek będzie obracany względem środka oknaNastępujące błędy wystąpiły podczas ładowania następnego obrazka: Plik konfiguracyjny %s został wczytanyPlik konfiguracyjny %s będzie zapisanyWysokość miniaturkiSzerokość miniaturkiPrzeglądarka miniaturPrzełącz szachownicę przezroczystościPrzełącz tryb pełnoekranowyPrzełącz pasek menuPrzełącz paski przewijaniaPrzełącz pasek stanuPrzełącz pływające oknaLewa góraLewa góraCałkowity czasPrzekształceniaCzas trwania przejściaPrzejścia przestrzegają maksymalnej ilości klatek/s zgodnie z ustawieniami przekształceńPróbuj załadować każdy plikCofnijNieznany błąd OpenGL (%d)Nieznana opcja w pliku konfiguracyjnym: %s Wpisz 'gliv --help' aby zobaczyć możliwe opcje. krótka pomoc jest dostępna po wciśnięciu h lub w tym menu.Odbij pionowoNiepoprawny format URI: %d (zamiast 8)Niepoprawna długość URI: %dMożna powiększać/zmniejszać podczas przesuwania myszy w poziomie podczas trzymania SHIFT i przycisku głównego.Powiększenie wyśrodkowane do wskaźnika myszyPowiększZmniejsza : Przełącz wyświetlanie szachownicy przezroczystościkanał przezroczystościelement przezroczystości 1: kanał niebieskielement przezroczystości 1: kanał zielonyelement przezroczystości 1: kanał czerwonyelement przezroczystości 2: kanał niebieskielement przezroczystości 2: kanał zielonyelement przezroczystości 2: kanał czerwonyb : Przełącz wyświetlanie paska menutło: kanał niebieskitło: kanał zielonytło: kanał czerwonyc : Wyczyść historięd : Ukryj wskaźnik myszykatalogkatalog/plike : Przerzuć pionowoelemen/ty/ówf : Pełen ekran/oknoplikfpsg : Wyświetl wybieranie obrazkaglXMakeCurrent() zawiodłoh : Przełącz wyświetlanie okna pomocyi : Przełącz wyświetlanie paska informacyjnegol : Zmniejsz obrazek do rozmiarów oknaładujęm : Dopasuj rozmiar obrazka do rozmiaru oknamilisekund(y)n/p : Następny/poprzedni obrazeko : Wyświetl okno otwieraniapikselir : Zresetuj pozycję i rozmiars : Przełącz wyświetlanie pasków przewijaniasekundt : Wyświetl okno opcjiprzejście z `%s' do `%s'u : Cofnijw : Przełącz wyświetlanie okien pływającychszerokość x wysokośćy : Ponówz : Przerzuć poziomopowiększenie% (kąt)gliv-1.9.7/po/Rules-quot0000644000076400007640000000340011465576131012366 0ustar gg# Special Makefile rules for English message catalogs with quotation marks. DISTFILES.common.extra1 = quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot .SUFFIXES: .insert-header .po-update-en en@quot.po-create: $(MAKE) en@quot.po-update en@boldquot.po-create: $(MAKE) en@boldquot.po-update en@quot.po-update: en@quot.po-update-en en@boldquot.po-update: en@boldquot.po-update-en .insert-header.po-update-en: @lang=`echo $@ | sed -e 's/\.po-update-en$$//'`; \ if test "$(PACKAGE)" = "gettext"; then PATH=`pwd`/../src:$$PATH; GETTEXTLIBDIR=`cd $(top_srcdir)/src && pwd`; export GETTEXTLIBDIR; fi; \ tmpdir=`pwd`; \ echo "$$lang:"; \ ll=`echo $$lang | sed -e 's/@.*//'`; \ LC_ALL=C; export LC_ALL; \ cd $(srcdir); \ if $(MSGINIT) -i $(DOMAIN).pot --no-translator -l $$lang -o - 2>/dev/null | sed -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | $(MSGFILTER) sed -f `echo $$lang | sed -e 's/.*@//'`.sed 2>/dev/null > $$tmpdir/$$lang.new.po; then \ if cmp $$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 "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ exit 1; \ fi; \ fi; \ else \ echo "creation of $$lang.po failed!" 1>&2; \ rm -f $$tmpdir/$$lang.new.po; \ fi en@quot.insert-header: insert-header.sin sed -e '/^#/d' -e 's/HEADER/en@quot.header/g' $(srcdir)/insert-header.sin > en@quot.insert-header en@boldquot.insert-header: insert-header.sin sed -e '/^#/d' -e 's/HEADER/en@boldquot.header/g' $(srcdir)/insert-header.sin > en@boldquot.insert-header mostlyclean: mostlyclean-quot mostlyclean-quot: rm -f *.insert-header gliv-1.9.7/po/de.gmo0000644000076400007640000004755211465576131011477 0ustar gg["#' (G%\#.6> FSr    "A1` )#;$W |/ 2<o*    !++< h@   !,Ne&   !  /,<i/?FW ^k+ >Hf*  " 9 )H r      !! ! '! 1!6X6/s6%6 6667 7&7-;7!i7P77778'8C8'Z88$8)88 899 "9-09^9 w99 90919):2:;:Q:3e::J::; ;,;;;<!<-;<-i<<<<<<<= #=1.='`=====)=>.>6>I>\>p>>>>>9>>?? 2?"=?`? ????'?%?%@-@F@ `@n@@@@.@ @*A)1A#[A"AAAAA$AB-BFB`B/wBB#B&BCC!CF7C~CCCCC%CD8D+OD{DAfE+E.EFF6F$JF(oFF FF!F G %G 1G# Configuration file for GLiv %s # Option names are case sensitive. # Option values are case insensitive. %.3f%% (%.3f deg%s)%s is not a GLiv collection%s not while loading an image %s while loading %s %s: image cannot be compressed twice %s: unknown decompressed extension %s: unknown extension %s: unknown extension (none) +/=/- : Zoom in/in/outAbout...Action on every imageAction on the current imageActionsAlpha 1Alpha 2Alpha checksAlpha checks in the backgroundAutomatic window resizingBackgroundBottom leftBottom rightBrowserBuild images menus at startupBuild mipmapsC-down : Rotate by -90 degreesC-left : Rotate by +0.1 degreeC-right: Rotate by -0.1 degreeC-up : Rotate by +90 degreesCannot find an appropriate visual, try glxinfo(1)Cannot load %sCannot parse geometry: %s Cannot set the OpenGL capabilityCannot sort and shuffle at the same time Cannot use a thread CenterCheck for OpenGL errorsChoose a collection to loadChoose a file to save the collectionClear historyCommandCommand line flags should be on or off, not %s CommandsConfiguration fileConfirm before quittingControls...Current image directory...Delay before hiding the cursorDelay before hiding the cursor 0: feature disabledDelay between imagesDelay between images during the slide showDelete : Delete the current fileDirectoriesDisplay info about the imageDisplay scrollbarsDisplay the menu barDitheringDo not ask againDo you really want to delete this file? %s Do you really want to quit GLiv?Draw a rectangle with the third button and gliv will zoom in it.ESC, q : QuitEdit ActionEdit actions...Elapsed timeEnable OpenGL filteringEnable transitionsEnable transitions between imagesEnter an image number:Failed to create a new processFatal error: GL_MAX_TEXTURE_SIZE = %d FileFirst imageFit heightFit widthFullscreen modeGL_MAX_TEXTURE_SIZE must be >= 64GLiv about boxGLiv helpGLiv in fullscreenGLiv versionGLiv won't write a collection to a terminal GLiv: Select a folder to openGLiv: Select files to openHelpHide the cursorHistory lengthHistory length 0: feature disabled -1: infiniteHorizontal flipIgnoring initial geometry (%s) as fullscreen mode is requested Image fit windowImagesImages menusIn the command field, printf like substitutions can be used: %d Path to the current file directory %b Current file name %f Path to the current file %% A litteral % Initial image positionInserting files...InterfaceKeep only one image in memoryKeep transfo between imagesKeep transformations when switching imagesLast imageLast/First image notice timeLoad collection...Load next imageLoad previous imageLoad the Nth image...Loading collection: %sLoading errorsM : Maximize the image to the windowMake mnemonics for images menusMake the slide show loopMaximize small imageMaximize small imagesMaximum framerateMaximum framerate -1: infiniteMenu bar enabledMoveMove downMove leftMove rightMove upNONENameNo image foundNo image loadedNo images to put in a collection Open directory...Open in GimpOpen thumbnails browser...Open...OpenGL error in %s() at %s:%d: %sOpenGL not supportedOptionsOptions will be savedOptions...Overwrite "%s" ?Parse error in configuration file: %s Pause : Start/stop the slide showQuitRebuild images menusRebuild this menuRebuilding:Recursive directory traversalRedoReload the current imageRemaining timeRemove the current fileResetRotate +0.1 degRotate +90 degRotate -0.1 degRotate -90 degRotationSame as previousSave collection...Save options nowSave options when quittingSaving collection: %sScale down large imageScale down large imagesScrollbars enabledSee http://guichaz.free.fr/gliv for updates.Set positionSet this window as serverShow thumbnails in images menusShuffle images listSlide showSort images listSpace and Backspace act like n and p.Standard outputStart in full screen modeStart the slide showStart with the slide showStatus bar enabledStop rebuilding the images menuStop the slide showThe action '%s' terminated with a non-null return code: %dThe action name '%s' is already usedThe first mouse button and the arrow keys will move the image unless the Control key is pressed. In which case the image will be rotated around the window center.The following errors occurred while loading the next image: This configuration file has been read: %sThis configuration file will be written: %sThumbnail heightThumbnail widthThumbnails browserToggle Alpha checksToggle Fullscreen modeToggle Menu BarToggle ScrollbarsToggle Status BarToggle floating windowsTop leftTop rightTotal timeTransformationsTransition durationTransitions obey the maximum framerate parameter in the Transformations tabTry to load every fileUndoUnknown OpenGL error (%d)Unknown option in configuration file: %s Use 'gliv --help' to show command line options. A quick help is accessible by typing 'h' or using the menu.Vertical flipWrong URI format: %d (instead of 8)Wrong URI length: %dYou can also zoom by dragging the mouse vertically while holding Shift and the first button.Your mouse wheel (if supported) will zoom the image and switch it when you press the button.Zoom centered on pointerZoom inZoom outa : Toggle display of the alpha checksalpha channelalpha1 tile: blue channelalpha1 tile: green channelalpha1 tile: red channelalpha2 tile: blue channelalpha2 tile: green channelalpha2 tile: red channelb : Toggle display of the menu barbackground: blue channelbackground: green channelbackground: red channelc : Clear the historyd : Hide the cursordirectorydirectory/filee : Vertical flipelementsf : Full-screen/windowfilefpsg : Display the image selectorglXMakeCurrent() failedh : Toggle display of the help boxi : Toggle display of the info barl : Reduce the image to the windowloadingm : Make the image fit the windowmillisecondsn/p : Next/previous imageo : Display the open dialogpixelsr : Reset position and sizes : Toggle display of the scrollbarssecondst : Display the options dialogtransition from `%s' to `%s'u : Undow : Toggle display of floating windowswidth x heighty : Redoz : Horizontal flipzoom% (angle)Project-Id-Version: gliv 1.9.6 Report-Msgid-Bugs-To: guichaz@yahoo.fr POT-Creation-Date: 2006-06-11 16:49+0200 PO-Revision-Date: 2010-06-20 19:59+0100 Last-Translator: Roland Illig Language-Team: German MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit # Konfigurationsdatei für GLiv %s # Bei Optionsnamen ist die Groß- und Kleinschreibung wichtig. # Bei Optionswerten ist die Groß- und Kleinschreibung wichtig. %.3f%% (%.3f Grad%s)»%s« ist keine GLiv-Sammlung%s, während gerade kein Bild geladen wird %s beim Laden von »%s« %s: Das Bild kann nicht zweimal komprimiert werden. %s: Unbekannte Komprimiererweiterung %s: Unbekannte Erweiterung %s: Unbekannte Erweiterung (keine) +/=/- : Zoom in/in/outProgramminformationen...Aktion auf jedem BildAktion auf dem aktuellen BildAktionenAlpha 1Alpha 2AlphakanalmusterAlphakanalmuster im HintergrundFenstergröße automatisch anpassenHintergrundUnten linksUnten rechtsBrowserBildermenüs beim Starten aufbauenMipmaps erzeugenC-runter : Um 90 Grad im Uhrzeigersinn rotierenC-links : Um 0,1 Grad gegen den Uhrzeigersinn rotierenC-rechts : Um 0,1 Grad im Uhrzeigersinn rotierenC-hoch : Um 90 Grad gegen den Uhrzeigersinn rotierenKann keinen geeigneten Anzeigemodus (Visual) finden. Mehr dazu steht in glxinfo(1).Kann »%s« nicht laden.Kann Ausmaße nicht parsen: %s Kann die OpenGL-Fähigkeit nicht setzenSortieren und Mischen geht nicht gleichzeitig. Kann keinen Thread benutzen MittePrüfe auf OpenGL-FehlerWählen Sie eine Sammlung, die geladen werden sollWählen Sie eine Datei, um die Sammlung zu speichernVerlauf löschenBefehlKommandozeilenoptionen sollten »on« oder »off« sein, nicht »%s«. BefehleKonfigurationsdateiBestätigen Sie vor dem BeendenTastensteuerung...Aktuelles Bildverzeichnis...Wartezeit, bevor der Mauszeiger versteckt wirdZeit, bevor der Mauszeiger verschwindet 0: Feature deaktiviertWartezeit zwischen BildernWartezeit zwischen Bildern während der DiashowLöschen: Die aktuelle Datei löschenVerzeichnisseBildinformationen anzeigenScrollbalken anzeigenMenüzeile anzeigenDitheringNicht nochmal fragenWollen Sie diese Datei wirklich löschen? %s Wollen Sie GLiv wirklich beenden?Zeichnen Sie mit der rechten Maustaste ein Rechteck, und GLiv wird hineinzoomen.ESC, q : BeendenAktion bearbeitenBearbeitungsaktionen...Vergangene ZeitOpenGL-Filterung aktivierenÜbergänge aktivierenÜbergänge zwischen Bildern aktivierenGeben Sie eine Bildnummer ein:Konnte keinen neuen Prozess erzeugenFataler Fehler: GL_MAX_TEXTURE_SIZE = %d DateiErstes BildHöhe einpassenBreite anpassenVollbildmodusGL_MAX_TEXTURE_SIZE muss größer als 64 seinInformationen über GLivGLiv-HilfeGLiv im VollbildmodusGLiv VersionGLiv schreibt keine Sammlungen auf ein Terminal GLiv: Wählen Sie ein Verzeichnis zum Öffnen ausGLiv: Wählen Sie Dateien zum Öffnen ausHilfe...Mauszeiger versteckenLänge des VerlaufsLänge des Verlaufs 0: ausgeschaltet -1: unbegrenztHorizontal spiegelnIgnoriere anfängliche Ausmaße (%s), da der Vollbildmodus verlangt wurde Bild auf Fenstergröße bringenBilderBildermenüsIn dem Befehlsfeld können Sie printf-artige Ersetzungen benutzen: %d Pfad zum aktuellen Verzeichnis %b Aktueller Dateiname %f Pfad zur aktuellen Datei %% Ein Prozentzeichen Anfängliche StartpositionFüge Dateien ein ...AussehenNur ein Bild im Speicher behaltenTransformationen zwischen Bildern beibehaltenTransformationen beim Bildwechsel beibehaltenNächstes BildLetzte/Erste BildnotizzeitSammlung laden...Nächstes Bild ladenVorheriges Bild ladenNtes Bild laden...Lade Sammlung: %sLadefehlerM : Bild auf die Fenstergröße vergrößernTastenkürzel für Bildermenüs anlegenDiashow endlos wiederholenKleines Bild maximierenKleine Bilder maximierenMaximale BildwiederholrateMaximale Bildwiederholrate -1: unbegrenztMenüzeile aktiviertBewegenNach unten bewegenNach links bewegenNach rechts bewegenNach oben bewegenKEINENameKein Bild gefundenKein Bild geladenKeine Bilder, die in eine Sammlung getan werden könnten Verzeichnis öffnen...In Gimp öffnenVorschaubildbrowser öffnen...Öffnen...OpenGL-Fehler in %s() an %s:%d: %sOpenGL wird nicht unterstütztEinstellungenOptionen werden gespeichertEinstellungen...Datei »%s« überschreiben?Parsefehler in Konfigurationsdatei: %s Pause : Beginnen/Beenden der DiashowBeendenBildermenü neu aufbauenDieses Menü neu aufbauenNeu erzeugen:Rekursiver VerzeichnisdurchlaufWiederherstellenAktuelles Bild neuladenVerbleibende ZeitDie aktuelle Datei von der Festplatte löschenZurücksetzenUm 0,1 Grad gegen den Uhrzeigersinn drehenUm 90 Grad gegen den Uhrzeigersinn drehenUm 0,1 Grad im Uhrzeigersinn drehenUm 90 Grad im Uhrzeigersinn drehenRotationWie der vorherigeSammlung speichern...Einstellungen jetzt speichernEinstellungen beim Beenden speichernSpeichere Sammlung: %sGroßes Bild verkleinernGroße Bilder verkleinernScrollbalken aktiviertSiehe http://guichaz.free.fr/gliv für Updates.Position festlegenDieses Fenster als Server festlegenVorschaubilder im Bildermenü anzeigenBilderliste mischenDiashowBilderliste sortierenDie Leertaste und Backspace machen das gleiche wie die Tasten n und p.StandardausgabeIn Vollbildmodus startenDiashow beginnenDiashow beginnenStatuszeile aktiviertAufhören, das Bildermenü aufzubauenDiashow anhaltenDie Aktion »%s« wurde mit dem Rückgabewert %d beendetDer Aktionsname »%s« wird bereits benutztDie linke Maustaste und die Pfeiltasten verschieben das Bild auf dem Bildschirm, solange die Strg-Taste nicht gedrückt ist. Wenn sie Strg-Taste gedrückt ist, können Sie mit der linken Maustaste oder den Pfeiltasten das Bild drehen.Die folgenden Fehler traten beim Laden des nächsten Bildes auf: Diese Konfigurationsdatei wurde geladen: %sDiese Konfigurationsdatei wird geschrieben: %sHöhe der VorschaubilderBreite der VorschaubilderVorschaubildbrowserAlphakanalmuster anzeigen/versteckenZwischen Fenster und Vollbild umschaltenMenüzeile anzeigen/versteckenScrollbalken anzeigen/versteckenStatuszeile anzeigen/versteckenFreischwebende Fenster umschaltenOben linksOben rechtsGesamtzeitTransformationenÜbergangsdauerTransformationen halten sich an die maximale Framerate, die im Transformationsreiter angegeben istVersuchen, jede Datei zu ladenRückgängigUnbekannter OpenGL-Fehler (%d)Unbekannte Option in der Konfiguration: %s Benutzen Sie »gliv --help«, um eine Übersicht über die Kommando- zeilenargumente zu bekommen. Eine kleine Hilfe bekommen Sie, indem Sie »h« drücken oder dieses Menü benutzen.Vertikal spiegelnFalsches URI-Format: %d (statt 8)Falsche URI-Länge: %dSie können das Bild auch vergrößern und verkleinern, indem Sie die Maus vertikal bewegen und dabei die Umschalttaste gedrückt halten.Falls Sie eine Maus mit Mausrad haben, können Sie damit das Bild vergrößern und verkleinern. Wenn Sie das Mausrad gedrückt halten und dann drehen, können Sie damit zwischen den Bildern wechseln.Zoom um den Mauszeiger herum zentrierenHereinzoomenHerauszoomena : Alphakanalmuster anzeigen/versteckenAlphakanalAlpha1-Bereich: BlauanteilAlpha1-Bereich: GrünanteilAlpha1-Bereich: RotanteilAlpha2-Bereich: BlauanteilAlpha2-Bereich: GrünanteilAlpha2-Bereich: Rotanteilb : Menüzeile anzeigen/versteckenHintergrund: BlauanteilHintergrund: GrünanteilHintergrund: Rotanteilc : Verlauf löschend : Mauszeiger versteckenVerzeichnisVerzeichnis/Dateie : Vertical spiegelnElementef : Vollbild/FensterDateifpsg : Bildauswähler anzeigenglXMakeCurrent() ist fehlgeschlagenh : Hilfefenster anzeigen/versteckeni : Informationszeile anzeigen/versteckenl : Bild auf die Fenstergröße verkleinernLadem : Bild der Fenstergröße anpassenMillisekundenn/p : Nächstes/vorheriges Bildo : Dialog »Datei öffnen« anzeigenPixelr : Position und Größe zurücksetzens : Scrollbalken anzeigen/versteckenSekundent : Dialog »Einstellungen« anzeigenÜbergang von »%s« nach »%s«u : Rückgängigw : Anzeige von freischwebenden Fenstern umschaltenBreite x Höhey : Wiederherstellenz : Horizontal spiegelnZoom% (Drehwinkel)gliv-1.9.7/po/ru.po0000644000076400007640000007773211465576131011374 0ustar ggmsgid "" msgstr "" "Project-Id-Version: GLiv 1.9\n" "Report-Msgid-Bugs-To: guichaz@gmail.com\n" "POT-Creation-Date: 2010-04-19 00:52+0200\n" "PO-Revision-Date: 2006-03-25 15:45+0300\n" "Last-Translator: Alexei V. Mezin \n" "Language-Team: Russian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-Language: Russian\n" "X-Poedit-Country: RUSSIAN FEDERATION\n" #: src/actions.c:121 msgid "Failed to create a new process" msgstr "Ошибка создания нового процесса" #: src/actions.c:126 #, c-format msgid "The action '%s' terminated with a non-null return code: %d" msgstr "Действие '%s' завершилось с ненулевым кодом возврата: %d" #: src/actions.c:230 msgid "Open in Gimp" msgstr "Открыть в Gimp" #: src/actions.c:333 #, c-format msgid "The action name '%s' is already used" msgstr "Действие с именем '%s' уже используется" #: src/actions.c:463 src/glade_actions.c:165 src/tree_browser.c:211 msgid "Name" msgstr "Имя" #: src/actions.c:464 src/glade_actions.c:172 msgid "Command" msgstr "Команда" #: src/collection.c:152 msgid "Choose a file to save the collection" msgstr "Выберите файл для сохранения коллекции" #: src/collection.c:159 #, c-format msgid "Overwrite \"%s\" ?" msgstr "Перезаписать \"%s\" ?" #: src/collection.c:238 msgid "Elapsed time" msgstr "Прошло времени" #: src/collection.c:239 msgid "Remaining time" msgstr "Осталось времени" #: src/collection.c:240 msgid "Total time" msgstr "Всего времени" #: src/collection.c:247 src/collection.c:637 #, c-format msgid "Saving collection: %s" msgstr "Сохраняется коллекция: %s" #: src/collection.c:250 src/collection.c:1044 #, c-format msgid "Loading collection: %s" msgstr "Загружается коллекция: %s" #: src/collection.c:366 msgid "Inserting files..." msgstr "Добавляются файлы" #: src/collection.c:615 msgid "No images to put in a collection\n" msgstr "Нет изображений для помещения в коллекцию\n" #: src/collection.c:622 msgid "GLiv won't write a collection to a terminal\n" msgstr "GLiv не будет писать коллекцию в терминал\n" #: src/collection.c:643 msgid "Standard output" msgstr "Стандартный вывод" #: src/collection.c:1064 #, c-format msgid "%s is not a GLiv collection" msgstr "%s не GLiv-коллекция" #: src/collection.c:1077 msgid "Choose a collection to load" msgstr "Выберите коллекцию для загрузки" #: src/files_list.c:499 #, c-format msgid "" "Do you really want to delete this file?\n" "%s\n" msgstr "" "Вы действительно хотите удалить этот файл? \n" "%s\n" #: src/files_list.c:523 msgid "directory/file" msgstr "Каталог/файл" #: src/gl_widget.c:130 #, c-format msgid "Wrong URI format: %d (instead of 8)" msgstr "Неверный URI формат: %d (вместо 8)" #: src/gl_widget.c:135 #, c-format msgid "Wrong URI length: %d" msgstr "Неверная длина URI: %d" #: src/gl_widget.c:227 #, c-format msgid "Fatal error: GL_MAX_TEXTURE_SIZE = %d\n" msgstr "Фатальная ошибка: GL_MAX_TEXTURE_SIZE = %d\n" #: src/gl_widget.c:231 msgid "GL_MAX_TEXTURE_SIZE must be >= 64" msgstr "GL_MAX_TEXTURE_SIZE должен быть >= 64" #: src/gl_widget.c:257 msgid "glXMakeCurrent() failed" msgstr "Ошибка в glXMakeCurrent()" #: src/gl_widget.c:310 msgid "OpenGL not supported" msgstr "OpenGL не поддерживается" #: src/gl_widget.c:321 msgid "Cannot find an appropriate visual, try glxinfo(1)" msgstr "Не могу найти подходящий рендер, проверьте glxinfo(1)" #: src/gl_widget.c:328 msgid "Cannot set the OpenGL capability" msgstr "Не могу использовать возможность OpenGL" #: src/gl_widget.c:366 #, c-format msgid "Unknown OpenGL error (%d)" msgstr "Неизвестная ошибка OpenGL (%d)" #: src/gl_widget.c:370 #, c-format msgid "" "OpenGL error in %s() at %s:%d:\n" "%s" msgstr "" "Ошибка OpenGL в %s() в %s:%d:\n" "%s" #: src/glade_actions.c:43 msgid "Actions" msgstr "Действия" #: src/glade_actions.c:149 msgid "Edit Action" msgstr "Редактировать действие" #: src/glade_actions.c:206 msgid "" "In the command field, printf like substitutions can be used:\n" "%d\t\tPath to the current file directory\n" "%b\t\tCurrent file name\n" "%f\t\tPath to the current file\n" "%%\t\tA litteral %\n" msgstr "" "В поле команды можно использовать printf-подобные подстановки:\n" "%d\t\tПуть до текущего каталога\n" "%b\t\tИмя файла\n" "%f\t\tПуть до текущего файла\n" "%%\t\tСимвол %\n" #: src/glade_image_nr.c:45 src/menus.c:417 msgid "Load the Nth image..." msgstr "Загрузить изображение номер N..." #: src/glade_image_nr.c:65 msgid "Enter an image number:" msgstr "Введите номер изображения:" #: src/glade_image_nr.c:81 msgid "directory" msgstr "каталог" #: src/glade_image_nr.c:87 msgid "file" msgstr "файл" #: src/glade_options.c:138 src/menus.c:503 msgid "Options" msgstr "Настройки" #: src/glade_options.c:174 msgid "Save options now" msgstr "Сохранить настройки" #: src/glade_options.c:178 src/rcfile.c:116 msgid "Save options when quitting" msgstr "Сохранить настройки при выходе" #: src/glade_options.c:193 msgid "Configuration file" msgstr "Файл настроек" #: src/glade_options.c:215 msgid "Scrollbars enabled" msgstr "Полосы прокрутки включены" #: src/glade_options.c:222 msgid "Fullscreen mode" msgstr "Полноэкранный режим" #: src/glade_options.c:229 msgid "Menu bar enabled" msgstr "Строка меню включена" #: src/glade_options.c:236 msgid "Status bar enabled" msgstr "Строка информации включена" #: src/glade_options.c:243 src/rcfile.c:115 msgid "Confirm before quitting" msgstr "Подтверждение перед выходом" #: src/glade_options.c:250 src/rcfile.c:114 msgid "Automatic window resizing" msgstr "Автоматически изменять размеры окна" #: src/glade_options.c:261 msgid "" "Delay before hiding the cursor\n" "0: feature disabled" msgstr "" "Задержка перед скрытием курсора\n" "0 : функция отключена" #: src/glade_options.c:274 src/glade_options.c:587 src/glade_options.c:634 msgid "milliseconds" msgstr "миллисекунды" #: src/glade_options.c:279 msgid "Interface" msgstr "Интерфейс" #: src/glade_options.c:290 src/rcfile.c:99 msgid "Scale down large images" msgstr "Уменьшить большие изображения" #: src/glade_options.c:297 src/rcfile.c:98 msgid "Maximize small images" msgstr "Увеличить маленькие изображения" #: src/glade_options.c:304 src/rcfile.c:108 msgid "Build mipmaps" msgstr "Создавать Mipmaps" #: src/glade_options.c:311 src/rcfile.c:105 msgid "Dithering" msgstr "Растрирование" #: src/glade_options.c:318 src/rcfile.c:111 msgid "Keep only one image in memory" msgstr "Хранить в памяти только одно изображение" #: src/glade_options.c:325 src/rcfile.c:120 msgid "Check for OpenGL errors" msgstr "Проверка ошибок OpenGL" #: src/glade_options.c:332 src/rcfile.c:121 msgid "Enable OpenGL filtering" msgstr "Включить OpenGL фильтрацию" #: src/glade_options.c:339 src/images_menus.c:330 src/images_menus.c:479 #: src/menus.c:521 msgid "Images" msgstr "Изображения" #: src/glade_options.c:352 src/rcfile.c:107 msgid "Build images menus at startup" msgstr "Создать меню изображений при запуске программы" #: src/glade_options.c:357 src/rcfile.c:109 msgid "Make mnemonics for images menus" msgstr "Создавать горячие клавиши для меню изображений" #: src/glade_options.c:362 src/rcfile.c:112 msgid "Show thumbnails in images menus" msgstr "Показывать миниатюры в меню изображений" #: src/glade_options.c:371 src/glade_options.c:380 msgid "pixels" msgstr "пиксели" #: src/glade_options.c:389 src/rcfile.c:127 msgid "Thumbnail height" msgstr "Высота миниатюры" #: src/glade_options.c:418 src/rcfile.c:126 msgid "Thumbnail width" msgstr "Ширина миниатюры" #: src/glade_options.c:427 msgid "Images menus" msgstr "Меню изображений" #: src/glade_options.c:442 src/rcfile.c:103 msgid "Zoom centered on pointer" msgstr "Изменить размер относительно точки, указанной курсором" #: src/glade_options.c:447 msgid "Keep transformations when switching images" msgstr "Продолжать перетекание при смене изображений" #: src/glade_options.c:456 src/rcfile.c:130 msgid "Initial image position" msgstr "Начальное положение изображения" #: src/glade_options.c:463 src/menus.c:460 msgid "Center" msgstr "По центру" #: src/glade_options.c:464 src/menus.c:461 msgid "Top left" msgstr "Сверху слева" #: src/glade_options.c:465 src/menus.c:462 msgid "Top right" msgstr "Сверху справа" #: src/glade_options.c:466 src/menus.c:463 msgid "Bottom left" msgstr "Снизу слева" #: src/glade_options.c:467 src/menus.c:464 msgid "Bottom right" msgstr "Снизу справа" #: src/glade_options.c:468 msgid "Same as previous" msgstr "Как предыдущее" #: src/glade_options.c:495 msgid "" "History length\n" "0: feature disabled\n" "-1: infinite" msgstr "" "Длина истории\n" "0 : функция отключена\n" "-1 : неограниченная длина" #: src/glade_options.c:503 msgid "" "Maximum framerate\n" "-1: infinite" msgstr "" "Максимальная частота кадров\n" "-1: неограниченная" #: src/glade_options.c:511 msgid "elements" msgstr "элементы" #: src/glade_options.c:519 msgid "fps" msgstr "fps" #: src/glade_options.c:527 src/menus.c:447 msgid "Transformations" msgstr "Преобразования" #: src/glade_options.c:542 src/rcfile.c:113 msgid "Start with the slide show" msgstr "Запустить слайд-шоу после запуска программы" #: src/glade_options.c:547 src/rcfile.c:110 msgid "Make the slide show loop" msgstr "Бесконечно повторять слайд-шоу" #: src/glade_options.c:556 src/rcfile.c:128 msgid "Last/First image notice time" msgstr "Время отображения сообщения \"первое/последнее изображение\"" #: src/glade_options.c:563 msgid "Delay between images during the slide show" msgstr "Задержка смены изображении в режиме слайд-шоу" #: src/glade_options.c:580 msgid "seconds" msgstr "секунды" #: src/glade_options.c:608 msgid "Enable transitions between images" msgstr "Включить перетекание изображений" #: src/glade_options.c:621 src/rcfile.c:129 msgid "Transition duration" msgstr "Длительность преобразования" #: src/glade_options.c:639 msgid "" "Transitions obey the maximum framerate parameter in the Transformations tab" msgstr "" "Перетекание зависит от максимальной частоты кадров, установленной на " "закладке \"Преобразования\"." #: src/glade_options.c:644 msgid "Slide show" msgstr "Слайд-шоу" #: src/glade_options.c:657 msgid "Alpha 2" msgstr "Цвет \"шашечек\" 2" #: src/glade_options.c:664 msgid "Alpha 1" msgstr "Цвет \"шашечек\" 1" #: src/glade_options.c:671 src/glade_options.c:706 msgid "Background" msgstr "Фон" #: src/glade_options.c:692 msgid "Alpha checks" msgstr "\"Шашечки\" прозрачности" #: src/help.c:102 src/help.c:109 msgid "GLiv help" msgstr "Справка GLiv" #: src/help.c:163 msgid "GLiv about box" msgstr "О программе GLiv" #: src/help_text.c:15 msgid "ESC, q : Quit" msgstr "ESC, q : Выход" #: src/help_text.c:18 msgid "f : Full-screen/window" msgstr "f : На весь экран/В окне" #: src/help_text.c:21 msgid "+/=/- : Zoom in/in/out" msgstr "+/=/- : Увеличить/исходный/уменьшить" #: src/help_text.c:24 msgid "n/p : Next/previous image" msgstr "n/p : Следующее/предыдущее изображение" #: src/help_text.c:27 msgid "Pause : Start/stop the slide show" msgstr "Пауза : запустить/прервать слайдшоу" #: src/help_text.c:30 msgid "l : Reduce the image to the window" msgstr "l : Уменьшить изображение до размеров окна" #: src/help_text.c:33 msgid "M : Maximize the image to the window" msgstr "M : Увеличить изображение до размеров окна" #: src/help_text.c:36 msgid "m : Make the image fit the window" msgstr "m : Изменить изображение до размеров окна" #: src/help_text.c:39 msgid "r : Reset position and size" msgstr "r : Восстановить позицию и размер" #: src/help_text.c:42 msgid "b : Toggle display of the menu bar" msgstr "b : Показать/скрыть строку меню" #: src/help_text.c:45 msgid "i : Toggle display of the info bar" msgstr "i : Показать/скрыть строку информации" #: src/help_text.c:48 msgid "s : Toggle display of the scrollbars" msgstr "s : Показать/скрыть полосы прокрутки" #: src/help_text.c:51 msgid "a : Toggle display of the alpha checks" msgstr "a : Показать/скрыть информацию об альфа-канале" #: src/help_text.c:54 msgid "h : Toggle display of the help box" msgstr "h : Показать/скрыть окно справки" #: src/help_text.c:57 msgid "w : Toggle display of floating windows" msgstr "w : Скрыть/показать плавающие окна" #: src/help_text.c:60 msgid "o : Display the open dialog" msgstr "o : Показать диалог открытия файлов" #: src/help_text.c:63 msgid "g : Display the image selector" msgstr "g : Показать загрузчик изображений" #: src/help_text.c:66 msgid "t : Display the options dialog" msgstr "t : Показать диалог настроек" #: src/help_text.c:69 msgid "d : Hide the cursor" msgstr "d : Скрыть курсор" #: src/help_text.c:72 msgid "u : Undo" msgstr "u : Отменить" #: src/help_text.c:75 msgid "y : Redo" msgstr "y : Повторить" #: src/help_text.c:78 msgid "c : Clear the history" msgstr "c : Очистить историю" #: src/help_text.c:81 msgid "Delete : Delete the current file" msgstr "Delete : Удалить текущий файл" #: src/help_text.c:84 msgid "C-up : Rotate by +90 degrees" msgstr "C-up : Вращение на +90 градусов" #: src/help_text.c:87 msgid "C-down : Rotate by -90 degrees" msgstr "C-down : Вращение на -90 градусов" #: src/help_text.c:90 msgid "C-left : Rotate by +0.1 degree" msgstr "C-left : Вращение на +0.1 градуса" #: src/help_text.c:93 msgid "C-right: Rotate by -0.1 degree" msgstr "C-right : Вращение на -0.1 градуса" #: src/help_text.c:96 msgid "z : Horizontal flip" msgstr "z : Отразить по горизонтали" #: src/help_text.c:99 msgid "e : Vertical flip" msgstr "e : Отразить по вертикали" #: src/help_text.c:104 msgid "" "The first mouse button and the arrow keys will move the image unless the " "Control key is pressed. In which case the image will be rotated around the " "window center." msgstr "" "Первая кнопка мышки и клавиши-стрелки двигают изображение. При нажатой " "клавише Control они вращают изображение относительно центра." #: src/help_text.c:107 msgid "" "The mouse wheel zooms the image, and when you hold its button pressed at the " "same time it switches to the neighbouring image." msgstr "" #: src/help_text.c:110 msgid "" "You can also zoom by dragging the mouse vertically while holding Shift and " "the first button." msgstr "" "Изменить размеры изображения можно двигая мышкой вертикально одновременно с " "нажатыми клавишей Shift и первой кнопкой мышки." #: src/help_text.c:113 msgid "Space and Backspace act like n and p." msgstr "" "Клавиши Space (пробел) и Backspace (возврат курсора) действуют аналогично " "клавишам n и p." #: src/help_text.c:116 msgid "Draw a rectangle with the third button and gliv will zoom in it." msgstr "" "Выделите прямоугольник третьей (правой) кнопкой мышки и Gliv увеличит " "отмеченную область." #: src/images_menus.c:82 msgid "Rebuilding:" msgstr "Перестройка меню:" #: src/images_menus.c:209 src/images_menus.c:447 src/menus.c:517 msgid "Directories" msgstr "Директории" #: src/images_menus.c:296 msgid "Current image directory..." msgstr "Текущий каталог с изображениями" #: src/images_menus.c:363 src/menus.c:337 msgid "Rebuild this menu" msgstr "Перечитать меню" #: src/images_menus.c:370 src/menus.c:338 msgid "Open thumbnails browser..." msgstr "Открыть браузер миниатюр" #: src/include/about.h:6 msgid "GLiv version" msgstr "Версия GLiv" #: src/include/about.h:8 msgid "" "Use 'gliv --help' to show command line options.\n" "A quick help is accessible by typing 'h' or using the menu." msgstr "" "Запустите 'gliv --help' чтобы посмотреть опции командной строки.\n" "Краткую справку можно получить нажав 'h' или через меню." #: src/include/about.h:10 msgid "See http://guichaz.free.fr/gliv for updates." msgstr "Смотрите новые версии на http://guichaz.free.fr/gliv " #: src/loading.c:81 #, c-format msgid "%s not while loading an image\n" msgstr "%s не во время загрузки изображения\n" #: src/loading.c:83 #, c-format msgid "%s while loading %s\n" msgstr "%s во время загрузки %s\n" #: src/loading.c:102 msgid "alpha channel" msgstr "альфа-канал" #: src/loading.c:158 #, c-format msgid "%s: unknown decompressed extension\n" msgstr "%s: неизвестное распакованное расширение\n" #: src/loading.c:165 #, c-format msgid "%s: image cannot be compressed twice\n" msgstr "%s: изображение не может быть упаковано дважды\n" #: src/loading.c:188 #, c-format msgid "%s: unknown extension (none)\n" msgstr "%s: неизвестное расширение (нет)\n" #: src/loading.c:197 #, c-format msgid "%s: unknown extension\n" msgstr "%s: неизвестное расширение\n" #: src/loading.c:291 src/next_image.c:280 #, c-format msgid "Cannot load %s" msgstr "Не могу загрузить %s" #: src/main.c:65 #, c-format msgid "Command line flags should be on or off, not %s\n" msgstr "Параметры коммандной строки должны быть 'on' или 'off', а не %s\n" #: src/main.c:181 msgid "Cannot sort and shuffle at the same time\n" msgstr "Невозможно отстортировать и перемешать одновременно\n" #: src/main.c:221 msgid "" "The --client and --client-clear command line options are mutually exclusive\n" msgstr "" #: src/main.c:253 src/main.c:256 msgid "Do not ask again" msgstr "Больше не спрашивать" #: src/main.c:257 msgid "Options will be saved" msgstr "Настройки будут сохранены" #: src/main.c:279 msgid "Do you really want to quit GLiv?" msgstr "Вы действительно хотите выйти из GLiv? " #: src/main.c:337 src/next_image.c:542 msgid "No image found" msgstr "Изображений не найдено" #: src/menus.c:403 msgid "File" msgstr "Файл" #: src/menus.c:404 msgid "Open..." msgstr "Открыть..." #: src/menus.c:405 msgid "Open directory..." msgstr "Открыть каталог..." #: src/menus.c:407 msgid "Load collection..." msgstr "Загрузить коллекцию..." #: src/menus.c:408 msgid "Save collection..." msgstr "Сохранить коллекцию" #: src/menus.c:410 msgid "Quit" msgstr "Выход" #: src/menus.c:414 msgid "Commands" msgstr "Команды" #: src/menus.c:415 msgid "Load previous image" msgstr "Загрузить предыдущее изображение" #: src/menus.c:416 msgid "Load next image" msgstr "Загрузить следующее изображение" #: src/menus.c:418 #, fuzzy msgid "Load first image" msgstr "Загрузить следующее изображение" #: src/menus.c:419 #, fuzzy msgid "Load last image" msgstr "Загрузить следующее изображение" #: src/menus.c:420 #, fuzzy msgid "Load random image" msgstr "Загрузить следующее изображение" #: src/menus.c:421 msgid "Reload the current image" msgstr "Перечитать текущий файл" #: src/menus.c:423 msgid "Sort images list" msgstr "Отсортировать список изображений" #: src/menus.c:424 msgid "Shuffle images list" msgstr "Перемешать список изображений" #: src/menus.c:426 msgid "Rebuild images menus" msgstr "Перечитать меню изображений" #: src/menus.c:427 msgid "Stop rebuilding the images menu" msgstr "Остановить перестройку меню изображений" #: src/menus.c:431 msgid "Toggle floating windows" msgstr "Показать/скрыть плавающие окна" #: src/menus.c:433 src/next_image.c:799 msgid "Start the slide show" msgstr "Запустить слайд-шоу" #: src/menus.c:437 msgid "Remove the current file" msgstr "Удалить данный файл" #: src/menus.c:440 msgid "Edit actions..." msgstr "Редактировать действия" #: src/menus.c:441 msgid "Action on the current image" msgstr "Действия над текущим файлом" #: src/menus.c:443 msgid "Action on every image" msgstr "Дейсвтия над всеми файлами" #: src/menus.c:448 msgid "Undo" msgstr "Отменить" #: src/menus.c:449 msgid "Redo" msgstr "Повторить" #: src/menus.c:450 msgid "Clear history" msgstr "Очистить историю" #: src/menus.c:452 msgid "Move" msgstr "Сдвиг" #: src/menus.c:453 msgid "Move left" msgstr "Сдвинуть влево" #: src/menus.c:454 msgid "Move right" msgstr "Сдвинуть вправо" #: src/menus.c:455 msgid "Move up" msgstr "Сдвинуть вверх" #: src/menus.c:456 msgid "Move down" msgstr "Сдвинуть вниз" #: src/menus.c:459 msgid "Set position" msgstr "Установить позицию" #: src/menus.c:467 msgid "Rotation" msgstr "Вращение" #: src/menus.c:468 msgid "Rotate +90 deg" msgstr "Повернуть на +90 градусов" #: src/menus.c:470 msgid "Rotate -90 deg" msgstr "Повернуть на -90 градусов" #: src/menus.c:472 msgid "Rotate +0.1 deg" msgstr "Повернуть на +0.1 градуса" #: src/menus.c:474 msgid "Rotate -0.1 deg" msgstr "Повернуть на -0.1 градуса" #: src/menus.c:480 msgid "Horizontal flip" msgstr "Горизонтальное отражение" #: src/menus.c:482 msgid "Vertical flip" msgstr "Вертикальное отражение" #: src/menus.c:486 msgid "Maximize small image" msgstr "Увеличить маленькие изображения" #: src/menus.c:487 msgid "Scale down large image" msgstr "Уменьшить большие изображения" #: src/menus.c:489 msgid "Image fit window" msgstr "Изображение в размер окна" #: src/menus.c:492 msgid "Zoom in" msgstr "Увеличить" #: src/menus.c:493 msgid "Zoom out" msgstr "Уменьшить" #: src/menus.c:494 msgid "Fit width" msgstr "Масштабировать по ширине" #: src/menus.c:495 msgid "Fit height" msgstr "Масштабировать по высоте" #: src/menus.c:499 msgid "Reset" msgstr "Сбросить" #: src/menus.c:504 msgid "Toggle Fullscreen mode" msgstr "На весь экран/в окне" #: src/menus.c:505 msgid "Toggle Menu Bar" msgstr "Показать/скрыть строку меню" #: src/menus.c:506 msgid "Toggle Status Bar" msgstr "Показать/скрыть строку информации" #: src/menus.c:507 msgid "Toggle Scrollbars" msgstr "Показать/скрыть полосы прокрутки" #: src/menus.c:508 msgid "Toggle Alpha checks" msgstr "Показать/скрыть информацию об альфа-канале" #: src/menus.c:510 msgid "Hide the cursor" msgstr "Скрыть курсор" #: src/menus.c:511 msgid "Set this window as server" msgstr "Перейти в режим сервера" #: src/menus.c:513 msgid "Options..." msgstr "Настройки..." #: src/menus.c:532 msgid "Help" msgstr "Справка" #: src/menus.c:533 msgid "About..." msgstr "О программе..." #: src/menus.c:534 msgid "Controls..." msgstr "Управление..." #: src/next_image.c:143 msgid "First image" msgstr "Первое изображение" #: src/next_image.c:146 msgid "Last image" msgstr "Последнее изображение" #: src/next_image.c:226 msgid "Loading errors" msgstr "Загрузка ошибок" #: src/next_image.c:239 msgid "The following errors occurred while loading the next image:\n" msgstr "При загрузке изображения произошли следующие ошибки:\n" #: src/next_image.c:828 msgid "Stop the slide show" msgstr "Остановить слайд-шоу" #: src/open_dialog.c:101 msgid "GLiv: Select a folder to open" msgstr "GLiv : выберите каталог для открытия" #: src/open_dialog.c:104 msgid "GLiv: Select files to open" msgstr "GLiv : выберите файлы для загрузки" #: src/open_dialog.c:129 src/rcfile.c:106 msgid "Try to load every file" msgstr "Пытаться загрузить все файлы" #: src/open_dialog.c:130 src/rcfile.c:118 msgid "Recursive directory traversal" msgstr "Рекурсивный просмотр каталогов" #: src/options.c:219 src/options.c:237 msgid "NONE" msgstr "Пусто" #: src/options.c:222 #, c-format msgid "This configuration file has been read: %s" msgstr "Был прочитан файл настроек %s" #: src/options.c:240 #, c-format msgid "This configuration file will be written: %s" msgstr "Будет записан файл настроек %s" #: src/rcfile.c:97 msgid "Start in full screen mode" msgstr "Запускать программу в полноэкранном режиме" #: src/rcfile.c:100 msgid "Display the menu bar" msgstr "Показать строку меню" #: src/rcfile.c:101 msgid "Display info about the image" msgstr "Показать информацию о изображении" #: src/rcfile.c:102 msgid "Display scrollbars" msgstr "Показать полосы прокрутки" #: src/rcfile.c:104 msgid "Alpha checks in the background" msgstr "\"Шашечки\" в фоне" #: src/rcfile.c:117 msgid "Enable transitions" msgstr "Разрешить перетекание" #: src/rcfile.c:119 msgid "Keep transfo between images" msgstr "Продолжать перетекание изображений" #: src/rcfile.c:122 msgid "Maximum framerate" msgstr "Максимальная частота кадров" #: src/rcfile.c:123 msgid "Delay before hiding the cursor" msgstr "Пауза перед скрытием курсора" #: src/rcfile.c:124 msgid "History length" msgstr "Длина истории" #: src/rcfile.c:125 msgid "Delay between images" msgstr "Задержка между изображениями" #: src/rcfile.c:131 msgid "background: red channel" msgstr "фон: красный канал" #: src/rcfile.c:132 msgid "background: green channel" msgstr "фон: зеоеный канал" #: src/rcfile.c:133 msgid "background: blue channel" msgstr "фон: синий канал" #: src/rcfile.c:134 msgid "alpha1 tile: red channel" msgstr "\"Шашечки 1\": красный канал" #: src/rcfile.c:135 msgid "alpha1 tile: green channel" msgstr "\"Шашечки 1\": зеленый канал" #: src/rcfile.c:136 msgid "alpha1 tile: blue channel" msgstr "\"Шашечки 1\": синий канал" #: src/rcfile.c:137 msgid "alpha2 tile: red channel" msgstr "\"Шашечки 2\": красный канал" #: src/rcfile.c:138 msgid "alpha2 tile: green channel" msgstr "\"Шашечки 2\": зеленый канал" #: src/rcfile.c:139 msgid "alpha2 tile: blue channel" msgstr "\"Шашечки 2\": синий канал" #: src/rcfile.c:238 #, c-format msgid "Unknown option in configuration file: %s\n" msgstr "" #: src/rcfile.c:240 #, fuzzy, c-format msgid "Parse error in configuration file: %s\n" msgstr "" "# Настройки GLiv %s\n" "\n" #: src/rcfile.c:486 #, c-format msgid "" "# Configuration file for GLiv %s\n" "\n" msgstr "" "# Настройки GLiv %s\n" "\n" #: src/rcfile.c:487 msgid "# Option names are case sensitive.\n" msgstr "# Имена параметров чувствительны к регистру.\n" #: src/rcfile.c:488 msgid "" "# Option values are case insensitive.\n" "\n" msgstr "" "# Значения параметров чувствительны к регистру.\n" "\n" #: src/thread.c:164 msgid "Cannot use a thread\n" msgstr "Не могу использовать поток\n" #: src/transition.c:261 #, c-format msgid "transition from `%s' to `%s'" msgstr "переход из `%s' в `%s'" #: src/tree_browser.c:80 msgid "Browser" msgstr "Браузер" #: src/tree_browser.c:201 msgid "Thumb" msgstr "" #: src/tree_browser.c:222 msgid "Thumbnails browser" msgstr "Браузер миниатюр" #: src/windows.c:207 msgid "loading" msgstr "загрузка" #: src/windows.c:238 msgid "No image loaded" msgstr "Изображения не загружены" #: src/windows.c:239 msgid "width x height" msgstr "ширина x высота" #: src/windows.c:240 msgid "zoom% (angle)" msgstr "увеличение% (угол)" #: src/windows.c:319 #, c-format msgid "%.3f%% (%.3f deg%s)" msgstr "%.3f%% (%.3f deg%s)" #: src/windows.c:363 #, c-format msgid "Ignoring initial geometry (%s) as fullscreen mode is requested\n" msgstr "" "Игнорирую начальную геометрию (%s) так как включен полноэкранный режим\n" #: src/windows.c:375 #, c-format msgid "Cannot parse geometry: %s\n" msgstr "Не могу распознать геометрию: %s\n" #: src/windows.c:409 msgid "GLiv in fullscreen" msgstr "GLiv в полноэкранном режиме" #~ msgid "" #~ "Your mouse wheel (if supported) will zoom the image and switch it when " #~ "you press the button." #~ msgstr "" #~ "Колесо прокрутки на мышке (если оно поддерживается) изменяет размеры " #~ "изображение, а одновременно с нажатой средней кнопкой меняет изображение." gliv-1.9.7/po/stamp-po0000644000076400007640000000001211465576131012042 0ustar ggtimestamp gliv-1.9.7/po/da.po0000644000076400007640000006404611465576131011324 0ustar gg# Danish messages for gliv. # Copyright (C) 2008 Guillaume Chazarain and Joe Hansen. # This file is distributed under the same license as the gliv package. # Joe Hansen , 2008. # # Konventioner # dithering -> dithering (en slags farvespredning) # pointer -> musemarkør # slide show -> billedfremvisning (måske diasfremvisning; ikke fundet nogen standard) # msgid "" msgstr "" "Project-Id-Version: gliv-1.9.6\n" "Report-Msgid-Bugs-To: guichaz@gmail.com\n" "POT-Creation-Date: 2010-04-19 00:52+0200\n" "PO-Revision-Date: 2008-11-21 00:00+0200\n" "Last-Translator: Joe Hansen \n" "Language-Team: Danish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: src/actions.c:121 msgid "Failed to create a new process" msgstr "Mislykkedes i at oprette en ny proces" #: src/actions.c:126 #, c-format msgid "The action '%s' terminated with a non-null return code: %d" msgstr "Handlingen '%s' blev afsluttet med en non-null returkode: %d" #: src/actions.c:230 msgid "Open in Gimp" msgstr "Åbn i Gimp" #: src/actions.c:333 #, c-format msgid "The action name '%s' is already used" msgstr "Handlingsnavnet »%s« er allerede anvendt" #: src/actions.c:463 src/glade_actions.c:165 src/tree_browser.c:211 msgid "Name" msgstr "Navn" #: src/actions.c:464 src/glade_actions.c:172 msgid "Command" msgstr "Kommando" #: src/collection.c:152 msgid "Choose a file to save the collection" msgstr "Vælg en fil for at gemme samlingen" #: src/collection.c:159 #, c-format msgid "Overwrite \"%s\" ?" msgstr "Overskriv »%s« ?" #: src/collection.c:238 msgid "Elapsed time" msgstr "Anvendt tid" #: src/collection.c:239 msgid "Remaining time" msgstr "Tilbageværende tid" #: src/collection.c:240 msgid "Total time" msgstr "Tid i alt" #: src/collection.c:247 src/collection.c:637 #, c-format msgid "Saving collection: %s" msgstr "Gemmer samling: %s" #: src/collection.c:250 src/collection.c:1044 #, c-format msgid "Loading collection: %s" msgstr "Henter samling: %s" #: src/collection.c:366 msgid "Inserting files..." msgstr "Indsætter filer..." #: src/collection.c:615 msgid "No images to put in a collection\n" msgstr "Ingen billeder at indsætte i en samling\n" #: src/collection.c:622 msgid "GLiv won't write a collection to a terminal\n" msgstr "GLiv vil ikke skrive en samling til en terminal\n" #: src/collection.c:643 msgid "Standard output" msgstr "Standarduddata" #: src/collection.c:1064 #, c-format msgid "%s is not a GLiv collection" msgstr "%s er ikke en GLiv-samling" #: src/collection.c:1077 msgid "Choose a collection to load" msgstr "Vælg en samling til indlæsning" #: src/files_list.c:499 #, c-format msgid "" "Do you really want to delete this file?\n" "%s\n" msgstr "" "Ønsker du virkelig at slette denne fil?\n" "%s\n" #: src/files_list.c:523 msgid "directory/file" msgstr "mappe/fil" #: src/gl_widget.c:130 #, c-format msgid "Wrong URI format: %d (instead of 8)" msgstr "Forkert URI-format: %d (i steden for 8)" #: src/gl_widget.c:135 #, c-format msgid "Wrong URI length: %d" msgstr "Forkert URI-længde: %d" #: src/gl_widget.c:227 #, c-format msgid "Fatal error: GL_MAX_TEXTURE_SIZE = %d\n" msgstr "Alvorlig fejl: GL_MAX_TEXTURE_SIZE = %d\n" #: src/gl_widget.c:231 msgid "GL_MAX_TEXTURE_SIZE must be >= 64" msgstr "GL_MAX_TEXTURE_SIZE skal være >= 64" #: src/gl_widget.c:257 msgid "glXMakeCurrent() failed" msgstr "glXMakeCurrent() mislykkedes" #: src/gl_widget.c:310 msgid "OpenGL not supported" msgstr "OpenGL ikke understøttet" #: src/gl_widget.c:321 msgid "Cannot find an appropriate visual, try glxinfo(1)" msgstr "Kan ikke finde en egnet visual, prøv med glxinfo(1)" #: src/gl_widget.c:328 msgid "Cannot set the OpenGL capability" msgstr "Kan ikke indstille muligheden for OpenGL" #: src/gl_widget.c:366 #, c-format msgid "Unknown OpenGL error (%d)" msgstr "Ukendt OpenGL-fejl (%d)" #: src/gl_widget.c:370 #, c-format msgid "" "OpenGL error in %s() at %s:%d:\n" "%s" msgstr "" "OpenGL-fejl i %s() ved %s:%d:\n" "%s" #: src/glade_actions.c:43 msgid "Actions" msgstr "Handlinger" #: src/glade_actions.c:149 msgid "Edit Action" msgstr "Rediger handling" # staves litteral ikke med et t #: src/glade_actions.c:206 msgid "" "In the command field, printf like substitutions can be used:\n" "%d\t\tPath to the current file directory\n" "%b\t\tCurrent file name\n" "%f\t\tPath to the current file\n" "%%\t\tA litteral %\n" msgstr "" "I kommandofeltet kan printf-lignende erstatninger anvendes:\n" "%d\t\tSti til den aktuelle filmappe\n" "%b\t\tAktuelt filnavn\n" "%f\t\tSti til den aktuelle fil\n" "%%\t\tEn ordret %\n" #: src/glade_image_nr.c:45 src/menus.c:417 msgid "Load the Nth image..." msgstr "Indlæs Nth-billedet..." #: src/glade_image_nr.c:65 msgid "Enter an image number:" msgstr "Indtast et billednummer:" #: src/glade_image_nr.c:81 msgid "directory" msgstr "mappe" #: src/glade_image_nr.c:87 msgid "file" msgstr "fil" #: src/glade_options.c:138 src/menus.c:503 msgid "Options" msgstr "Indstillinger" #: src/glade_options.c:174 msgid "Save options now" msgstr "Gem indstillinger nu" #: src/glade_options.c:178 src/rcfile.c:116 msgid "Save options when quitting" msgstr "Gem indstillinger ved afslutning" #: src/glade_options.c:193 msgid "Configuration file" msgstr "Opsætningsfil" #: src/glade_options.c:215 msgid "Scrollbars enabled" msgstr "Rullebjælker slået til" #: src/glade_options.c:222 msgid "Fullscreen mode" msgstr "Fuldskærmtilstand" #: src/glade_options.c:229 msgid "Menu bar enabled" msgstr "Menubjælke slået til" #: src/glade_options.c:236 msgid "Status bar enabled" msgstr "Statusbjælke slået til" #: src/glade_options.c:243 src/rcfile.c:115 msgid "Confirm before quitting" msgstr "Bekræft før afslutning" #: src/glade_options.c:250 src/rcfile.c:114 msgid "Automatic window resizing" msgstr "Automatisk vinduetilpasning" #: src/glade_options.c:261 msgid "" "Delay before hiding the cursor\n" "0: feature disabled" msgstr "" "Forsinkelse før markør skjules\n" "0: egenskab slået fra" #: src/glade_options.c:274 src/glade_options.c:587 src/glade_options.c:634 msgid "milliseconds" msgstr "millisekunder" #: src/glade_options.c:279 msgid "Interface" msgstr "Grænseflade" #: src/glade_options.c:290 src/rcfile.c:99 msgid "Scale down large images" msgstr "Formindsk store billeder" #: src/glade_options.c:297 src/rcfile.c:98 msgid "Maximize small images" msgstr "Forøg små billeder" #: src/glade_options.c:304 src/rcfile.c:108 msgid "Build mipmaps" msgstr "Byg mipmaps" #: src/glade_options.c:311 src/rcfile.c:105 msgid "Dithering" msgstr "Dithering" #: src/glade_options.c:318 src/rcfile.c:111 msgid "Keep only one image in memory" msgstr "Bevar kun et billed i hukommelsen" #: src/glade_options.c:325 src/rcfile.c:120 msgid "Check for OpenGL errors" msgstr "Tjek for OpenGL-fejl" #: src/glade_options.c:332 src/rcfile.c:121 msgid "Enable OpenGL filtering" msgstr "Slå OpenGL filtrering til" #: src/glade_options.c:339 src/images_menus.c:330 src/images_menus.c:479 #: src/menus.c:521 msgid "Images" msgstr "Billeder" #: src/glade_options.c:352 src/rcfile.c:107 msgid "Build images menus at startup" msgstr "Byg billedmenuer ved opstart" #: src/glade_options.c:357 src/rcfile.c:109 msgid "Make mnemonics for images menus" msgstr "Klargør mnemonics for billedmenuer" #: src/glade_options.c:362 src/rcfile.c:112 msgid "Show thumbnails in images menus" msgstr "Vis miniaturer i billedmenuer" #: src/glade_options.c:371 src/glade_options.c:380 msgid "pixels" msgstr "billedpunkter" #: src/glade_options.c:389 src/rcfile.c:127 msgid "Thumbnail height" msgstr "Miniaturehøjde" #: src/glade_options.c:418 src/rcfile.c:126 msgid "Thumbnail width" msgstr "Miniaturebredde" #: src/glade_options.c:427 msgid "Images menus" msgstr "Billedmenuer" #: src/glade_options.c:442 src/rcfile.c:103 msgid "Zoom centered on pointer" msgstr "Zoom centreret på musemarkør" #: src/glade_options.c:447 msgid "Keep transformations when switching images" msgstr "Behold ændringer når der skiftes billeder" #: src/glade_options.c:456 src/rcfile.c:130 msgid "Initial image position" msgstr "Oprindelig billedposition" #: src/glade_options.c:463 src/menus.c:460 msgid "Center" msgstr "Centrum" #: src/glade_options.c:464 src/menus.c:461 msgid "Top left" msgstr "Øverst venstre" #: src/glade_options.c:465 src/menus.c:462 msgid "Top right" msgstr "Øverst højre" #: src/glade_options.c:466 src/menus.c:463 msgid "Bottom left" msgstr "Nederst venstre" #: src/glade_options.c:467 src/menus.c:464 msgid "Bottom right" msgstr "Nederst højre" #: src/glade_options.c:468 msgid "Same as previous" msgstr "Som forrige" #: src/glade_options.c:495 msgid "" "History length\n" "0: feature disabled\n" "-1: infinite" msgstr "" "Historielængde\n" "0: egenskab slået til\n" "-1: uendelig" #: src/glade_options.c:503 msgid "" "Maximum framerate\n" "-1: infinite" msgstr "" "Maksimal enkeltbilledantal\n" "-1: uendelig" #: src/glade_options.c:511 msgid "elements" msgstr "elementer" #: src/glade_options.c:519 msgid "fps" msgstr "fps" #: src/glade_options.c:527 src/menus.c:447 msgid "Transformations" msgstr "Ændringer" #: src/glade_options.c:542 src/rcfile.c:113 msgid "Start with the slide show" msgstr "Begynd på billedfremvisning" #: src/glade_options.c:547 src/rcfile.c:110 msgid "Make the slide show loop" msgstr "Lad billedfremvisningen gå i sløjfe" #: src/glade_options.c:556 src/rcfile.c:128 msgid "Last/First image notice time" msgstr "Sidste/Første billed fremvisningstid" #: src/glade_options.c:563 msgid "Delay between images during the slide show" msgstr "Forsinkelse mellem billeder under billedfremvisningen" #: src/glade_options.c:580 msgid "seconds" msgstr "sekunder" #: src/glade_options.c:608 msgid "Enable transitions between images" msgstr "Slå overgange mellem billeder til" #: src/glade_options.c:621 src/rcfile.c:129 msgid "Transition duration" msgstr "Varighed af overgang" #: src/glade_options.c:639 msgid "" "Transitions obey the maximum framerate parameter in the Transformations tab" msgstr "" "Overgange overholder parametren for det maksimale antal billedantal " "iOvergangsfanebladet" #: src/glade_options.c:644 msgid "Slide show" msgstr "Billedfremvisning" #: src/glade_options.c:657 msgid "Alpha 2" msgstr "Alfa 2" #: src/glade_options.c:664 msgid "Alpha 1" msgstr "Alfa 1" #: src/glade_options.c:671 src/glade_options.c:706 msgid "Background" msgstr "Baggrund" #: src/glade_options.c:692 msgid "Alpha checks" msgstr "Alfatjek" #: src/help.c:102 src/help.c:109 msgid "GLiv help" msgstr "GLiv hjælp" #: src/help.c:163 msgid "GLiv about box" msgstr "Boks om GLiv" #: src/help_text.c:15 msgid "ESC, q : Quit" msgstr "ESC, q : Afslut" #: src/help_text.c:18 msgid "f : Full-screen/window" msgstr "f : Fuldskærm/vindue" #: src/help_text.c:21 msgid "+/=/- : Zoom in/in/out" msgstr "+/=/- : Zoom ind/ind/ud" #: src/help_text.c:24 msgid "n/p : Next/previous image" msgstr "n/p : Næste/forrige billede" #: src/help_text.c:27 msgid "Pause : Start/stop the slide show" msgstr "Pause : Start/stop diasfremvisningen" #: src/help_text.c:30 msgid "l : Reduce the image to the window" msgstr "l : Reducer billedet til vinduet" #: src/help_text.c:33 msgid "M : Maximize the image to the window" msgstr "M : Maksimer billedet til vinduet" #: src/help_text.c:36 msgid "m : Make the image fit the window" msgstr "m : Få billedet til at passe til vinduet" #: src/help_text.c:39 msgid "r : Reset position and size" msgstr "r : Nulstil placering og størrelse" #: src/help_text.c:42 msgid "b : Toggle display of the menu bar" msgstr "b : Slå display fra/til på menubjælken" #: src/help_text.c:45 msgid "i : Toggle display of the info bar" msgstr "i : Slå display fra/til på infobjælken" #: src/help_text.c:48 msgid "s : Toggle display of the scrollbars" msgstr "s : Slå display fra/til på rullebjælkerne" #: src/help_text.c:51 msgid "a : Toggle display of the alpha checks" msgstr "a : Slå display fra/til på alfatjek" #: src/help_text.c:54 msgid "h : Toggle display of the help box" msgstr "h : Slå display fra/til på hjælpeboksen" #: src/help_text.c:57 msgid "w : Toggle display of floating windows" msgstr "w : Slå display fra/til på flydende vinduer" #: src/help_text.c:60 msgid "o : Display the open dialog" msgstr "o : Viser åbn-vinduet" #: src/help_text.c:63 msgid "g : Display the image selector" msgstr "g : Viser billedevælgeren" #: src/help_text.c:66 msgid "t : Display the options dialog" msgstr "t : Viser indstillingsvinduet" #: src/help_text.c:69 msgid "d : Hide the cursor" msgstr "d : Skjul markøren" #: src/help_text.c:72 msgid "u : Undo" msgstr "u : Fortryd" #: src/help_text.c:75 msgid "y : Redo" msgstr "y : Omgør" #: src/help_text.c:78 msgid "c : Clear the history" msgstr "c : Ryd historikken" #: src/help_text.c:81 msgid "Delete : Delete the current file" msgstr "Slet : Slet den nuværende fil" #: src/help_text.c:84 msgid "C-up : Rotate by +90 degrees" msgstr "C-op : Roter med +90 grader" #: src/help_text.c:87 msgid "C-down : Rotate by -90 degrees" msgstr "C-ned : Roter med -90 grader" #: src/help_text.c:90 msgid "C-left : Rotate by +0.1 degree" msgstr "C-ven.: Roter med +0,1 grad" #: src/help_text.c:93 msgid "C-right: Rotate by -0.1 degree" msgstr "C-høj.: Roter med -0,1 grad" #: src/help_text.c:96 msgid "z : Horizontal flip" msgstr "z : På hovedet" #: src/help_text.c:99 msgid "e : Vertical flip" msgstr "e : Spejlvendt" #: src/help_text.c:104 msgid "" "The first mouse button and the arrow keys will move the image unless the " "Control key is pressed. In which case the image will be rotated around the " "window center." msgstr "" "Den første museknap og piletasterne vil flytte billedet med mindre at " "kontroltasten er trykket ned. I dette tilfælde vil billedet blive roteret " "rundt om vinduecenteret." #: src/help_text.c:107 msgid "" "The mouse wheel zooms the image, and when you hold its button pressed at the " "same time it switches to the neighbouring image." msgstr "" #: src/help_text.c:110 msgid "" "You can also zoom by dragging the mouse vertically while holding Shift and " "the first button." msgstr "" "Du kan også zoome ved at trække musen vertikalt mens du holder skift og den " "første museknap nede." #: src/help_text.c:113 msgid "Space and Backspace act like n and p." msgstr "Mellemrum og backspace fungerer som n og p." #: src/help_text.c:116 msgid "Draw a rectangle with the third button and gliv will zoom in it." msgstr "Tegn et rektangel med den tredje knap og gliv vil zoome den frem." #: src/images_menus.c:82 msgid "Rebuilding:" msgstr "Genopbygger:" #: src/images_menus.c:209 src/images_menus.c:447 src/menus.c:517 msgid "Directories" msgstr "Mapper" #: src/images_menus.c:296 msgid "Current image directory..." msgstr "Aktuelt billedemappe..." #: src/images_menus.c:363 src/menus.c:337 msgid "Rebuild this menu" msgstr "Genopbyg denne menu" #: src/images_menus.c:370 src/menus.c:338 msgid "Open thumbnails browser..." msgstr "Åbn miniaturebrowser..." #: src/include/about.h:6 msgid "GLiv version" msgstr "GLiv version" #: src/include/about.h:8 msgid "" "Use 'gliv --help' to show command line options.\n" "A quick help is accessible by typing 'h' or using the menu." msgstr "" "Anvend 'gliv --help' for at vise indstillinger for kommandolinjen.\n" "En hurtig hjælp er tilgængelig ved at taste »h« eller anvende menuen." #: src/include/about.h:10 msgid "See http://guichaz.free.fr/gliv for updates." msgstr "Se http://guichaz.free.fr/gliv for opdateringer." #: src/loading.c:81 #, c-format msgid "%s not while loading an image\n" msgstr "ikke %s under indlæsning af et billede\n" #: src/loading.c:83 #, c-format msgid "%s while loading %s\n" msgstr "%s under indlæsning af %s\n" #: src/loading.c:102 msgid "alpha channel" msgstr "alfakanal" #: src/loading.c:158 #, c-format msgid "%s: unknown decompressed extension\n" msgstr "%s: Ukendt pakket udvidelse\n" #: src/loading.c:165 #, c-format msgid "%s: image cannot be compressed twice\n" msgstr "%s: Billede kan ikke pakkes to gange\n" #: src/loading.c:188 #, c-format msgid "%s: unknown extension (none)\n" msgstr "%s: Ukendt udvidelse (ingen)\n" #: src/loading.c:197 #, c-format msgid "%s: unknown extension\n" msgstr "%s: Ukendt udvidelse\n" #: src/loading.c:291 src/next_image.c:280 #, c-format msgid "Cannot load %s" msgstr "Kan ikke indlæse %s" #: src/main.c:65 #, c-format msgid "Command line flags should be on or off, not %s\n" msgstr "Kommandolinjeflag bør være tændt eller slukket, ikke %s\n" #: src/main.c:181 msgid "Cannot sort and shuffle at the same time\n" msgstr "Kan ikke sortere og vælge tilfældigt på samme tid\n" #: src/main.c:221 msgid "" "The --client and --client-clear command line options are mutually exclusive\n" msgstr "" #: src/main.c:253 src/main.c:256 msgid "Do not ask again" msgstr "Spørg ikke igen" #: src/main.c:257 msgid "Options will be saved" msgstr "Indstillinger vil blive gemt" #: src/main.c:279 msgid "Do you really want to quit GLiv?" msgstr "Ønsker du at afslutte GLiv?" #: src/main.c:337 src/next_image.c:542 msgid "No image found" msgstr "Intet billede blev fundet" #: src/menus.c:403 msgid "File" msgstr "Fil" #: src/menus.c:404 msgid "Open..." msgstr "Åbn..." #: src/menus.c:405 msgid "Open directory..." msgstr "Åbn mappe..." #: src/menus.c:407 msgid "Load collection..." msgstr "Indlæs samling..." #: src/menus.c:408 msgid "Save collection..." msgstr "Gem samling..." #: src/menus.c:410 msgid "Quit" msgstr "Afslut" #: src/menus.c:414 msgid "Commands" msgstr "Kommandoer" #: src/menus.c:415 msgid "Load previous image" msgstr "Indlæs forrige billede" #: src/menus.c:416 msgid "Load next image" msgstr "Indlæs næste billede" #: src/menus.c:418 #, fuzzy msgid "Load first image" msgstr "Indlæs næste billede" #: src/menus.c:419 #, fuzzy msgid "Load last image" msgstr "Indlæs næste billede" #: src/menus.c:420 #, fuzzy msgid "Load random image" msgstr "Indlæs næste billede" #: src/menus.c:421 msgid "Reload the current image" msgstr "Genindlæs det nuværende billede" #: src/menus.c:423 msgid "Sort images list" msgstr "Sorter billedliste" #: src/menus.c:424 msgid "Shuffle images list" msgstr "Bland billedliste tilfældigt" #: src/menus.c:426 msgid "Rebuild images menus" msgstr "Genopbyg billedmenuer" #: src/menus.c:427 msgid "Stop rebuilding the images menu" msgstr "Stop genopbygning af billedmenuen" #: src/menus.c:431 msgid "Toggle floating windows" msgstr "Slå flydende vinduer til/fra" #: src/menus.c:433 src/next_image.c:799 msgid "Start the slide show" msgstr "Start billedfremvisningen" #: src/menus.c:437 msgid "Remove the current file" msgstr "Fjern den aktuelle fil" #: src/menus.c:440 msgid "Edit actions..." msgstr "Rediger handlinger..." #: src/menus.c:441 msgid "Action on the current image" msgstr "Handlinger på det aktuelle billede" #: src/menus.c:443 msgid "Action on every image" msgstr "Handlinger på alle billeder" #: src/menus.c:448 msgid "Undo" msgstr "Fortryd" #: src/menus.c:449 msgid "Redo" msgstr "Omgør" #: src/menus.c:450 msgid "Clear history" msgstr "Ryd historie" #: src/menus.c:452 msgid "Move" msgstr "Flyt" #: src/menus.c:453 msgid "Move left" msgstr "Flyt venstre" #: src/menus.c:454 msgid "Move right" msgstr "Flyt højre" #: src/menus.c:455 msgid "Move up" msgstr "Flyt op" #: src/menus.c:456 msgid "Move down" msgstr "Flyt ned" #: src/menus.c:459 msgid "Set position" msgstr "Indstil position" #: src/menus.c:467 msgid "Rotation" msgstr "Rotation" #: src/menus.c:468 msgid "Rotate +90 deg" msgstr "Roter +90 grader" #: src/menus.c:470 msgid "Rotate -90 deg" msgstr "Roter -90 grader" #: src/menus.c:472 msgid "Rotate +0.1 deg" msgstr "Roter +0,1 grad" #: src/menus.c:474 msgid "Rotate -0.1 deg" msgstr "Roter -0,1 grad" #: src/menus.c:480 msgid "Horizontal flip" msgstr "På hovedet" #: src/menus.c:482 msgid "Vertical flip" msgstr "Spejlvendt" #: src/menus.c:486 msgid "Maximize small image" msgstr "Maksimer lille billede" #: src/menus.c:487 msgid "Scale down large image" msgstr "Formindsk stort billede" #: src/menus.c:489 msgid "Image fit window" msgstr "Tilpas billede til vindue" #: src/menus.c:492 msgid "Zoom in" msgstr "Zoom ind" #: src/menus.c:493 msgid "Zoom out" msgstr "Zoom ud" #: src/menus.c:494 msgid "Fit width" msgstr "Tilpas bredde" #: src/menus.c:495 msgid "Fit height" msgstr "Tilpas højde" #: src/menus.c:499 msgid "Reset" msgstr "Nulstil" #: src/menus.c:504 msgid "Toggle Fullscreen mode" msgstr "Slå fuldskærmtilstand til/fra" #: src/menus.c:505 msgid "Toggle Menu Bar" msgstr "Slå menubar til/fra" #: src/menus.c:506 msgid "Toggle Status Bar" msgstr "Slå statusbar til/fra" #: src/menus.c:507 msgid "Toggle Scrollbars" msgstr "Slå rullebjælker til/fra" #: src/menus.c:508 msgid "Toggle Alpha checks" msgstr "Slå alfatjek til/fra" #: src/menus.c:510 msgid "Hide the cursor" msgstr "Skjul markør" #: src/menus.c:511 msgid "Set this window as server" msgstr "Indstil dette vindue som server" #: src/menus.c:513 msgid "Options..." msgstr "Indstillinger..." #: src/menus.c:532 msgid "Help" msgstr "Hjælp" #: src/menus.c:533 msgid "About..." msgstr "Om..." #: src/menus.c:534 msgid "Controls..." msgstr "Styringsopsætning..." #: src/next_image.c:143 msgid "First image" msgstr "Første billede" #: src/next_image.c:146 msgid "Last image" msgstr "Sidste billede" #: src/next_image.c:226 msgid "Loading errors" msgstr "Indlæser fejl" #: src/next_image.c:239 msgid "The following errors occurred while loading the next image:\n" msgstr "De følgende fejl opstod under indlæsning af det næste billede:\n" #: src/next_image.c:828 msgid "Stop the slide show" msgstr "Stop diasfremvisningen" #: src/open_dialog.c:101 msgid "GLiv: Select a folder to open" msgstr "GLiv: Vælg en mappe der skal åbnes" #: src/open_dialog.c:104 msgid "GLiv: Select files to open" msgstr "GLiv: Vælg filer der skal åbnes" #: src/open_dialog.c:129 src/rcfile.c:106 msgid "Try to load every file" msgstr "Forsøg at indlæse alle filer" #: src/open_dialog.c:130 src/rcfile.c:118 msgid "Recursive directory traversal" msgstr "Rekursiv mappegennemløb" #: src/options.c:219 src/options.c:237 msgid "NONE" msgstr "INGEN" #: src/options.c:222 #, c-format msgid "This configuration file has been read: %s" msgstr "Denne konfigurationsfil er blevet læst: %s" #: src/options.c:240 #, c-format msgid "This configuration file will be written: %s" msgstr "Denne konfigurationsfil vil blive skrevet: %s" #: src/rcfile.c:97 msgid "Start in full screen mode" msgstr "Start i fuldskærmtilstand" #: src/rcfile.c:100 msgid "Display the menu bar" msgstr "Vis menubaren" #: src/rcfile.c:101 msgid "Display info about the image" msgstr "Vis info om billedet" #: src/rcfile.c:102 msgid "Display scrollbars" msgstr "Vis rullebjælker" #: src/rcfile.c:104 msgid "Alpha checks in the background" msgstr "Alfatjek i baggrunden" #: src/rcfile.c:117 msgid "Enable transitions" msgstr "Slå overgange til" #: src/rcfile.c:119 msgid "Keep transfo between images" msgstr "Behold tranfo mellem billeder" #: src/rcfile.c:122 msgid "Maximum framerate" msgstr "Maksimal billedantal" #: src/rcfile.c:123 msgid "Delay before hiding the cursor" msgstr "Forsinkelse før musemarkør skjules" #: src/rcfile.c:124 msgid "History length" msgstr "Længde på historie" #: src/rcfile.c:125 msgid "Delay between images" msgstr "Forsinkelse mellem billeder" #: src/rcfile.c:131 msgid "background: red channel" msgstr "baggrund: Rød kanal" #: src/rcfile.c:132 msgid "background: green channel" msgstr "baggrund: Grøn kanal" #: src/rcfile.c:133 msgid "background: blue channel" msgstr "baggrund: Blå kanal" #: src/rcfile.c:134 msgid "alpha1 tile: red channel" msgstr "alfa1 flise: Rød kanal" #: src/rcfile.c:135 msgid "alpha1 tile: green channel" msgstr "alfa1 flise: Grøn kanal" #: src/rcfile.c:136 msgid "alpha1 tile: blue channel" msgstr "alfa1 flise: Blå kanal" #: src/rcfile.c:137 msgid "alpha2 tile: red channel" msgstr "alfa2 flise: Rød kanal" #: src/rcfile.c:138 msgid "alpha2 tile: green channel" msgstr "alpha2 flise: Grøn kanal" #: src/rcfile.c:139 msgid "alpha2 tile: blue channel" msgstr "alpha2 flise: Blå kanal" #: src/rcfile.c:238 #, c-format msgid "Unknown option in configuration file: %s\n" msgstr "Ukendt indstilling i konfigurationsfil: %s\n" #: src/rcfile.c:240 #, c-format msgid "Parse error in configuration file: %s\n" msgstr "Fortolkningsfejl i konfigurationsfil: %s\n" #: src/rcfile.c:486 #, c-format msgid "" "# Configuration file for GLiv %s\n" "\n" msgstr "" "# Konfigurationsfil for GLiv %s\n" "\n" #: src/rcfile.c:487 msgid "# Option names are case sensitive.\n" msgstr "# Indstillingsnavne tager højde for store/små bogstaver.\n" #: src/rcfile.c:488 msgid "" "# Option values are case insensitive.\n" "\n" msgstr "" "# Indstillingsværdier tager højde for store/små bogstaver.\n" "\n" #: src/thread.c:164 msgid "Cannot use a thread\n" msgstr "Kan ikke bruge en tråd\n" #: src/transition.c:261 #, c-format msgid "transition from `%s' to `%s'" msgstr "overgang fra `%s' til `%s'" #: src/tree_browser.c:80 msgid "Browser" msgstr "Browser" #: src/tree_browser.c:201 msgid "Thumb" msgstr "" #: src/tree_browser.c:222 msgid "Thumbnails browser" msgstr "Miniaturebrowser" #: src/windows.c:207 msgid "loading" msgstr "Indlæser" #: src/windows.c:238 msgid "No image loaded" msgstr "Intet billede indlæst" #: src/windows.c:239 msgid "width x height" msgstr "bredde x højde" #: src/windows.c:240 msgid "zoom% (angle)" msgstr "zoom% (vinkel)" #: src/windows.c:319 #, c-format msgid "%.3f%% (%.3f deg%s)" msgstr "%.3f%% (%.3f g%s)" #: src/windows.c:363 #, c-format msgid "Ignoring initial geometry (%s) as fullscreen mode is requested\n" msgstr "" "Ignorerer oprindelig skaleringsforhold (%s) da fuldskærmtilstand er slået " "til\n" #: src/windows.c:375 #, c-format msgid "Cannot parse geometry: %s\n" msgstr "Kan ikke fortolke skaleringsforhold: %s\n" #: src/windows.c:409 msgid "GLiv in fullscreen" msgstr "GLiv i fuldskærm" #~ msgid "" #~ "Your mouse wheel (if supported) will zoom the image and switch it when " #~ "you press the button." #~ msgstr "" #~ "Dit musehjul (hvis understøttet) vil zoome ind og ud og dreje det når du " #~ "trykker på knappen." gliv-1.9.7/po/pl.po0000644000076400007640000006527611465576131011361 0ustar gg# Translation of gliv.pot into Polish. # Copyright (C) 2007 Guillaume Chazarain # This file is distributed under the same license as the gliv package. # Marcin Ryk , 2007. # msgid "" msgstr "" "Project-Id-Version: GLiv 1.9.7\n" "Report-Msgid-Bugs-To: guichaz@gmail.com\n" "POT-Creation-Date: 2010-04-19 00:52+0200\n" "PO-Revision-Date: 2007-08-23 12:45+0100\n" "Last-Translator: Marcin Ryk \n" "Language-Team: Polish\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: src/actions.c:121 msgid "Failed to create a new process" msgstr "Próba uruchomienia nowego procesu zakończona niepowodzeniem" #: src/actions.c:126 #, c-format msgid "The action '%s' terminated with a non-null return code: %d" msgstr "Akcja '%s' zakończyła się z niezerowym kodem błędu: %d" #: src/actions.c:230 msgid "Open in Gimp" msgstr "Otwórz w Gimp" #: src/actions.c:333 #, c-format msgid "The action name '%s' is already used" msgstr "Akcja o nazwie '%s' jest już w użyciu" #: src/actions.c:463 src/glade_actions.c:165 src/tree_browser.c:211 msgid "Name" msgstr "Nazwa" #: src/actions.c:464 src/glade_actions.c:172 msgid "Command" msgstr "Polecenie" #: src/collection.c:152 msgid "Choose a file to save the collection" msgstr "Wybierz plik do zapisania kolekcji" #: src/collection.c:159 #, c-format msgid "Overwrite \"%s\" ?" msgstr "Nadpisać '%s' ?" #: src/collection.c:238 msgid "Elapsed time" msgstr "Wykorzystany czas" #: src/collection.c:239 msgid "Remaining time" msgstr "Pozostały czas" #: src/collection.c:240 msgid "Total time" msgstr "Całkowity czas" #: src/collection.c:247 src/collection.c:637 #, c-format msgid "Saving collection: %s" msgstr "Zapisywanie kolekcji: %s" #: src/collection.c:250 src/collection.c:1044 #, c-format msgid "Loading collection: %s" msgstr "Ładowanie kolekcji: %s" #: src/collection.c:366 msgid "Inserting files..." msgstr "Dołączanie plików..." #: src/collection.c:615 msgid "No images to put in a collection\n" msgstr "Brak obrazków do umieszczenia w kolekcji\n" #: src/collection.c:622 msgid "GLiv won't write a collection to a terminal\n" msgstr "GLiv nie zapisze kolekcji na terminal\n" #: src/collection.c:643 msgid "Standard output" msgstr "Standardowe wyjście" #: src/collection.c:1064 #, c-format msgid "%s is not a GLiv collection" msgstr "%s nie jest kolekcją GLiv" #: src/collection.c:1077 msgid "Choose a collection to load" msgstr "Wybierz kolekcję do załadowania" #: src/files_list.c:499 #, c-format msgid "" "Do you really want to delete this file?\n" "%s\n" msgstr "" "Czy na pewno usunąć ten plik?\n" "%s\n" #: src/files_list.c:523 msgid "directory/file" msgstr "katalog/plik" #: src/gl_widget.c:130 #, c-format msgid "Wrong URI format: %d (instead of 8)" msgstr "Niepoprawny format URI: %d (zamiast 8)" #: src/gl_widget.c:135 #, c-format msgid "Wrong URI length: %d" msgstr "Niepoprawna długość URI: %d" #: src/gl_widget.c:227 #, c-format msgid "Fatal error: GL_MAX_TEXTURE_SIZE = %d\n" msgstr "Błąd krytyczny: GL_MAX_TEXTURE_SIZE = %d\n" #: src/gl_widget.c:231 msgid "GL_MAX_TEXTURE_SIZE must be >= 64" msgstr "GL_MAX_TEXTURE_SIZE musi być >= 64" #: src/gl_widget.c:257 msgid "glXMakeCurrent() failed" msgstr "glXMakeCurrent() zawiodło" #: src/gl_widget.c:310 msgid "OpenGL not supported" msgstr "OpenGL nie jest obsługiwany" #: src/gl_widget.c:321 msgid "Cannot find an appropriate visual, try glxinfo(1)" msgstr "" "Nie można odnaleźć odpowiedniego trybu wyświetlania, spróbuj glxinfo(1)" #: src/gl_widget.c:328 msgid "Cannot set the OpenGL capability" msgstr "Nie można ustawić parametrów OpenGL" #: src/gl_widget.c:366 #, c-format msgid "Unknown OpenGL error (%d)" msgstr "Nieznany błąd OpenGL (%d)" #: src/gl_widget.c:370 #, c-format msgid "" "OpenGL error in %s() at %s:%d:\n" "%s" msgstr "" "Błąd OpenGL jest w %s() na %s:%d\n" "%s" #: src/glade_actions.c:43 msgid "Actions" msgstr "Działania" #: src/glade_actions.c:149 msgid "Edit Action" msgstr "Edytuj działanie" #: src/glade_actions.c:206 msgid "" "In the command field, printf like substitutions can be used:\n" "%d\t\tPath to the current file directory\n" "%b\t\tCurrent file name\n" "%f\t\tPath to the current file\n" "%%\t\tA litteral %\n" msgstr "" "W polu poleceń mogą zostać użyte podstawienia w stylu printf:\n" "%d\t\tŚcieżka do aktualnego pliku/katalogu\n" "%b\t\tNazwa aktualnego pliku\n" "%f\t\tŚcieżka do aktualnego pliku\n" "%%\t\tLiterał %\n" #: src/glade_image_nr.c:45 src/menus.c:417 msgid "Load the Nth image..." msgstr "Załaduj n-ty obrazek" #: src/glade_image_nr.c:65 msgid "Enter an image number:" msgstr "Wprowadź numer obrazka" #: src/glade_image_nr.c:81 msgid "directory" msgstr "katalog" #: src/glade_image_nr.c:87 msgid "file" msgstr "plik" #: src/glade_options.c:138 src/menus.c:503 msgid "Options" msgstr "Opcje" #: src/glade_options.c:174 msgid "Save options now" msgstr "Zapisz opcje teraz" #: src/glade_options.c:178 src/rcfile.c:116 msgid "Save options when quitting" msgstr "Zapisz opcje podczas zamykania" #: src/glade_options.c:193 msgid "Configuration file" msgstr "Plik konfiguracyjny" #: src/glade_options.c:215 msgid "Scrollbars enabled" msgstr "Paski przewijania włączone" #: src/glade_options.c:222 msgid "Fullscreen mode" msgstr "Tryb pełnoekranowy" #: src/glade_options.c:229 msgid "Menu bar enabled" msgstr "Pasek menu włączony" #: src/glade_options.c:236 msgid "Status bar enabled" msgstr "Pasek stanu włączony" #: src/glade_options.c:243 src/rcfile.c:115 msgid "Confirm before quitting" msgstr "Potwierdź przed zamknięciem" #: src/glade_options.c:250 src/rcfile.c:114 msgid "Automatic window resizing" msgstr "Automatyczne skalowanie okna" #: src/glade_options.c:261 msgid "" "Delay before hiding the cursor\n" "0: feature disabled" msgstr "" "Opóźnienie ukrycia wskaźnika myszy\n" "0: bez ukrywania" #: src/glade_options.c:274 src/glade_options.c:587 src/glade_options.c:634 msgid "milliseconds" msgstr "milisekund(y)" #: src/glade_options.c:279 msgid "Interface" msgstr "Interfejs" #: src/glade_options.c:290 src/rcfile.c:99 msgid "Scale down large images" msgstr "Zmniejszaj duże obrazki" #: src/glade_options.c:297 src/rcfile.c:98 msgid "Maximize small images" msgstr "Powiększaj małe obrazki" #: src/glade_options.c:304 src/rcfile.c:108 msgid "Build mipmaps" msgstr "Twórz mipmapy" #: src/glade_options.c:311 src/rcfile.c:105 msgid "Dithering" msgstr "Przesiewanie" #: src/glade_options.c:318 src/rcfile.c:111 msgid "Keep only one image in memory" msgstr "Przechowuj w pamięci tylko jeden obrazek" #: src/glade_options.c:325 src/rcfile.c:120 msgid "Check for OpenGL errors" msgstr "Sprawdzaj obecność błędów OpenGL" #: src/glade_options.c:332 src/rcfile.c:121 msgid "Enable OpenGL filtering" msgstr "Włącz filtrowanie OpenGL" #: src/glade_options.c:339 src/images_menus.c:330 src/images_menus.c:479 #: src/menus.c:521 msgid "Images" msgstr "Obrazki" #: src/glade_options.c:352 src/rcfile.c:107 msgid "Build images menus at startup" msgstr "Twórz obrazki menu podczas uruchomienia" #: src/glade_options.c:357 src/rcfile.c:109 msgid "Make mnemonics for images menus" msgstr "Zapamiętuj obrazki menu" #: src/glade_options.c:362 src/rcfile.c:112 msgid "Show thumbnails in images menus" msgstr "Pokazuj miniaturki w obrazkach menu" #: src/glade_options.c:371 src/glade_options.c:380 msgid "pixels" msgstr "pikseli" #: src/glade_options.c:389 src/rcfile.c:127 msgid "Thumbnail height" msgstr "Wysokość miniaturki" #: src/glade_options.c:418 src/rcfile.c:126 msgid "Thumbnail width" msgstr "Szerokość miniaturki" #: src/glade_options.c:427 msgid "Images menus" msgstr "Menu obrazków" #: src/glade_options.c:442 src/rcfile.c:103 msgid "Zoom centered on pointer" msgstr "Powiększenie wyśrodkowane do wskaźnika myszy" #: src/glade_options.c:447 msgid "Keep transformations when switching images" msgstr "Zachowaj przekształcenia przy przełączaniu obrazków" #: src/glade_options.c:456 src/rcfile.c:130 msgid "Initial image position" msgstr "Początkowa pozycja obrazka" #: src/glade_options.c:463 src/menus.c:460 msgid "Center" msgstr "Środek" #: src/glade_options.c:464 src/menus.c:461 msgid "Top left" msgstr "Lewa góra" #: src/glade_options.c:465 src/menus.c:462 msgid "Top right" msgstr "Lewa góra" #: src/glade_options.c:466 src/menus.c:463 msgid "Bottom left" msgstr "Lewy dół" #: src/glade_options.c:467 src/menus.c:464 msgid "Bottom right" msgstr "Prawy dół" #: src/glade_options.c:468 msgid "Same as previous" msgstr "Tak jak poprzednio" #: src/glade_options.c:495 msgid "" "History length\n" "0: feature disabled\n" "-1: infinite" msgstr "" "Rozmiar historii\n" "0: nieaktywne\n" "-1: nieskończone" #: src/glade_options.c:503 msgid "" "Maximum framerate\n" "-1: infinite" msgstr "" "Maksymalna ilość klatek/s\n" "-1: nieskończoność" #: src/glade_options.c:511 msgid "elements" msgstr "elemen/ty/ów" #: src/glade_options.c:519 msgid "fps" msgstr "fps" #: src/glade_options.c:527 src/menus.c:447 msgid "Transformations" msgstr "Przekształcenia" #: src/glade_options.c:542 src/rcfile.c:113 msgid "Start with the slide show" msgstr "Rozpocznij z pokazem slajdów" #: src/glade_options.c:547 src/rcfile.c:110 msgid "Make the slide show loop" msgstr "Odtwarzaj pokaz slajdów w kółko" #: src/glade_options.c:556 src/rcfile.c:128 msgid "Last/First image notice time" msgstr "Czas powiadamiania o pierwszym/ostatnim obrazku" #: src/glade_options.c:563 msgid "Delay between images during the slide show" msgstr "Opóźnienie pomiędzy kolejnymi slajdami" #: src/glade_options.c:580 msgid "seconds" msgstr "sekund" #: src/glade_options.c:608 msgid "Enable transitions between images" msgstr "Włącz przejścia pomiędzy obrazkami" #: src/glade_options.c:621 src/rcfile.c:129 msgid "Transition duration" msgstr "Czas trwania przejścia" #: src/glade_options.c:639 msgid "" "Transitions obey the maximum framerate parameter in the Transformations tab" msgstr "" "Przejścia przestrzegają maksymalnej ilości klatek/s zgodnie z ustawieniami " "przekształceń" #: src/glade_options.c:644 msgid "Slide show" msgstr "Pokaz slajdów" #: src/glade_options.c:657 msgid "Alpha 2" msgstr "Przezroczystość 2" #: src/glade_options.c:664 msgid "Alpha 1" msgstr "Przezroczystość 1" #: src/glade_options.c:671 src/glade_options.c:706 msgid "Background" msgstr "Tło" #: src/glade_options.c:692 msgid "Alpha checks" msgstr "Szachownica" #: src/help.c:102 src/help.c:109 msgid "GLiv help" msgstr "Pomoc GLiv" #: src/help.c:163 msgid "GLiv about box" msgstr "Okno informacyjne GLiv" #: src/help_text.c:15 msgid "ESC, q : Quit" msgstr "ESC, q : Wyjście" #: src/help_text.c:18 msgid "f : Full-screen/window" msgstr "f : Pełen ekran/okno" #: src/help_text.c:21 msgid "+/=/- : Zoom in/in/out" msgstr "+/=/- : Powiększanie/Powiększanie/Zmniejszanie" #: src/help_text.c:24 msgid "n/p : Next/previous image" msgstr "n/p : Następny/poprzedni obrazek" #: src/help_text.c:27 msgid "Pause : Start/stop the slide show" msgstr "Pause : Uruchom/zatrzymaj pokaz slajdów" #: src/help_text.c:30 msgid "l : Reduce the image to the window" msgstr "l : Zmniejsz obrazek do rozmiarów okna" #: src/help_text.c:33 msgid "M : Maximize the image to the window" msgstr "M : Powiększ obrazek do rozmiarów okna" #: src/help_text.c:36 msgid "m : Make the image fit the window" msgstr "m : Dopasuj rozmiar obrazka do rozmiaru okna" #: src/help_text.c:39 msgid "r : Reset position and size" msgstr "r : Zresetuj pozycję i rozmiar" #: src/help_text.c:42 msgid "b : Toggle display of the menu bar" msgstr "b : Przełącz wyświetlanie paska menu" #: src/help_text.c:45 msgid "i : Toggle display of the info bar" msgstr "i : Przełącz wyświetlanie paska informacyjnego" #: src/help_text.c:48 msgid "s : Toggle display of the scrollbars" msgstr "s : Przełącz wyświetlanie pasków przewijania" #: src/help_text.c:51 msgid "a : Toggle display of the alpha checks" msgstr "a : Przełącz wyświetlanie szachownicy przezroczystości" #: src/help_text.c:54 msgid "h : Toggle display of the help box" msgstr "h : Przełącz wyświetlanie okna pomocy" #: src/help_text.c:57 msgid "w : Toggle display of floating windows" msgstr "w : Przełącz wyświetlanie okien pływających" #: src/help_text.c:60 msgid "o : Display the open dialog" msgstr "o : Wyświetl okno otwierania" #: src/help_text.c:63 msgid "g : Display the image selector" msgstr "g : Wyświetl wybieranie obrazka" #: src/help_text.c:66 msgid "t : Display the options dialog" msgstr "t : Wyświetl okno opcji" #: src/help_text.c:69 msgid "d : Hide the cursor" msgstr "d : Ukryj wskaźnik myszy" #: src/help_text.c:72 msgid "u : Undo" msgstr "u : Cofnij" #: src/help_text.c:75 msgid "y : Redo" msgstr "y : Ponów" #: src/help_text.c:78 msgid "c : Clear the history" msgstr "c : Wyczyść historię" #: src/help_text.c:81 msgid "Delete : Delete the current file" msgstr "Delete : Skasuj aktualny plik" #: src/help_text.c:84 msgid "C-up : Rotate by +90 degrees" msgstr "C-góra : Obróć o +90 stopni" #: src/help_text.c:87 msgid "C-down : Rotate by -90 degrees" msgstr "C-dół : Obróć o -90 stopni" #: src/help_text.c:90 msgid "C-left : Rotate by +0.1 degree" msgstr "C-lewo : Obróć o +1/10 stopnia" #: src/help_text.c:93 msgid "C-right: Rotate by -0.1 degree" msgstr "C-prawo: Obróć o -1/10 stopnia" #: src/help_text.c:96 msgid "z : Horizontal flip" msgstr "z : Przerzuć poziomo" #: src/help_text.c:99 msgid "e : Vertical flip" msgstr "e : Przerzuć pionowo" #: src/help_text.c:104 msgid "" "The first mouse button and the arrow keys will move the image unless the " "Control key is pressed. In which case the image will be rotated around the " "window center." msgstr "" "Główny przycisk myszy oraz strzałki będą przesuwać obrazek dopóki nie " "zostanie wciśnięty Control. Wtedy obrazek będzie obracany względem środka " "okna" #: src/help_text.c:107 msgid "" "The mouse wheel zooms the image, and when you hold its button pressed at the " "same time it switches to the neighbouring image." msgstr "" #: src/help_text.c:110 msgid "" "You can also zoom by dragging the mouse vertically while holding Shift and " "the first button." msgstr "" "Można powiększać/zmniejszać podczas przesuwania myszy w poziomie podczas " "trzymania SHIFT i przycisku głównego." #: src/help_text.c:113 msgid "Space and Backspace act like n and p." msgstr "Spacja i Backspace zachowuję się jak n oraz p." #: src/help_text.c:116 msgid "Draw a rectangle with the third button and gliv will zoom in it." msgstr "" "Zaznacz prostokąt za pomocą pobocznego przycisku myszy, a GLiv powiększy ten " "obszar." #: src/images_menus.c:82 msgid "Rebuilding:" msgstr "Przebudowuję:" #: src/images_menus.c:209 src/images_menus.c:447 src/menus.c:517 msgid "Directories" msgstr "Katalogi" #: src/images_menus.c:296 msgid "Current image directory..." msgstr "Aktualny katalog z obrazkami..." #: src/images_menus.c:363 src/menus.c:337 msgid "Rebuild this menu" msgstr "Przebuduj to menu" #: src/images_menus.c:370 src/menus.c:338 msgid "Open thumbnails browser..." msgstr "Otwórz przeglądarkę miniaturek" #: src/include/about.h:6 msgid "GLiv version" msgstr "Wersja GLiv" #: src/include/about.h:8 msgid "" "Use 'gliv --help' to show command line options.\n" "A quick help is accessible by typing 'h' or using the menu." msgstr "" "Wpisz 'gliv --help' aby zobaczyć możliwe opcje.\n" "krótka pomoc jest dostępna po wciśnięciu h lub w tym menu." #: src/include/about.h:10 msgid "See http://guichaz.free.fr/gliv for updates." msgstr "Wejdź na http://guichaz.free.fr/gliv aby zdobyć najnowszą wersję." #: src/loading.c:81 #, c-format msgid "%s not while loading an image\n" msgstr "%s nie w trakcie ładowania obrazka\n" #: src/loading.c:83 #, c-format msgid "%s while loading %s\n" msgstr "%s w trakcie ładowania %s\n" #: src/loading.c:102 msgid "alpha channel" msgstr "kanał przezroczystości" #: src/loading.c:158 #, c-format msgid "%s: unknown decompressed extension\n" msgstr "%s: nieznane rozkompresowane rozszerzenie\n" #: src/loading.c:165 #, c-format msgid "%s: image cannot be compressed twice\n" msgstr "%s: obrazek nie może być podwójnie skompresowany\n" #: src/loading.c:188 #, c-format msgid "%s: unknown extension (none)\n" msgstr "%s: nieznane rozszerzenie (brak)\n" #: src/loading.c:197 #, c-format msgid "%s: unknown extension\n" msgstr "%s: nieznane rozszerzenie\n" #: src/loading.c:291 src/next_image.c:280 #, c-format msgid "Cannot load %s" msgstr "Nie można załadować %s" #: src/main.c:65 #, c-format msgid "Command line flags should be on or off, not %s\n" msgstr "" "Przełączniki linii poleceń powinny być włączone lub wyłączone, a nie %s\n" #: src/main.c:181 msgid "Cannot sort and shuffle at the same time\n" msgstr "Nie można sortować i wymieszać w tym samym momencie\n" #: src/main.c:221 msgid "" "The --client and --client-clear command line options are mutually exclusive\n" msgstr "Opcje --client oraz --client-clear wykluczają się wzajemnie\n" #: src/main.c:253 src/main.c:256 msgid "Do not ask again" msgstr "Nie pytaj ponownie" #: src/main.c:257 msgid "Options will be saved" msgstr "Opcje zostaną zapisane" #: src/main.c:279 msgid "Do you really want to quit GLiv?" msgstr "Na pewno chcesz zakończyć GLiv?" #: src/main.c:337 src/next_image.c:542 msgid "No image found" msgstr "Nie znaleziono obrazka" #: src/menus.c:403 msgid "File" msgstr "Plik" #: src/menus.c:404 msgid "Open..." msgstr "Otwórz..." #: src/menus.c:405 msgid "Open directory..." msgstr "Otwórz katalog..." #: src/menus.c:407 msgid "Load collection..." msgstr "Załaduj kolekcję..." #: src/menus.c:408 msgid "Save collection..." msgstr "Zapisz kolekcję..." #: src/menus.c:410 msgid "Quit" msgstr "Zakończ" #: src/menus.c:414 msgid "Commands" msgstr "Polecenia" #: src/menus.c:415 msgid "Load previous image" msgstr "Załaduj poprzedni obrazek" #: src/menus.c:416 msgid "Load next image" msgstr "Załaduj następny obrazek" #: src/menus.c:418 msgid "Load first image" msgstr "Załaduj pierwszy obrazek" #: src/menus.c:419 msgid "Load last image" msgstr "Załaduj ostatni obrazek" #: src/menus.c:420 msgid "Load random image" msgstr "Załaduj losowy obrazek" #: src/menus.c:421 msgid "Reload the current image" msgstr "Przeładuj aktualny obrazek" #: src/menus.c:423 msgid "Sort images list" msgstr "Posortuj listę obrazków" #: src/menus.c:424 msgid "Shuffle images list" msgstr "Pomieszaj listę obrazków" #: src/menus.c:426 msgid "Rebuild images menus" msgstr "Przebuduj menu obrazków" #: src/menus.c:427 msgid "Stop rebuilding the images menu" msgstr "Zatrzymaj przebudowywanie menu obrazków" #: src/menus.c:431 msgid "Toggle floating windows" msgstr "Przełącz pływające okna" #: src/menus.c:433 src/next_image.c:799 msgid "Start the slide show" msgstr "Rozpocznij pokaz slajdów" #: src/menus.c:437 msgid "Remove the current file" msgstr "Usuń aktualny plik" #: src/menus.c:440 msgid "Edit actions..." msgstr "Edytuj akcje..." #: src/menus.c:441 msgid "Action on the current image" msgstr "Akcja na aktualnym obrazku" #: src/menus.c:443 msgid "Action on every image" msgstr "Akcja na każdym obrazku" #: src/menus.c:448 msgid "Undo" msgstr "Cofnij" #: src/menus.c:449 msgid "Redo" msgstr "Ponów" #: src/menus.c:450 msgid "Clear history" msgstr "Wyczyść historię" #: src/menus.c:452 msgid "Move" msgstr "Przesuń" #: src/menus.c:453 msgid "Move left" msgstr "Przesuń w lewo" #: src/menus.c:454 msgid "Move right" msgstr "Przesuń w prawo" #: src/menus.c:455 msgid "Move up" msgstr "Przesuń w górę" #: src/menus.c:456 msgid "Move down" msgstr "Przesuń w dół" #: src/menus.c:459 msgid "Set position" msgstr "Ustaw pozycję" #: src/menus.c:467 msgid "Rotation" msgstr "Obrót" #: src/menus.c:468 msgid "Rotate +90 deg" msgstr "Obrót o +90 stopni" #: src/menus.c:470 msgid "Rotate -90 deg" msgstr "Obrót o -90 stopni" #: src/menus.c:472 msgid "Rotate +0.1 deg" msgstr "Obrót o +1/10 stopnia" #: src/menus.c:474 msgid "Rotate -0.1 deg" msgstr "Obrót o -1/10 stopnia" #: src/menus.c:480 msgid "Horizontal flip" msgstr "Odbij poziomo" #: src/menus.c:482 msgid "Vertical flip" msgstr "Odbij pionowo" #: src/menus.c:486 msgid "Maximize small image" msgstr "Powiększaj małe obrazki" #: src/menus.c:487 msgid "Scale down large image" msgstr "Pomniejszaj duże obrazki" #: src/menus.c:489 msgid "Image fit window" msgstr "Dopasuj obrazek do okna" #: src/menus.c:492 msgid "Zoom in" msgstr "Powiększ" #: src/menus.c:493 msgid "Zoom out" msgstr "Zmniejsz" #: src/menus.c:494 msgid "Fit width" msgstr "Dopasuj na szerokość" #: src/menus.c:495 msgid "Fit height" msgstr "Dopasuj na wysokość" #: src/menus.c:499 msgid "Reset" msgstr "Resetuj" #: src/menus.c:504 msgid "Toggle Fullscreen mode" msgstr "Przełącz tryb pełnoekranowy" #: src/menus.c:505 msgid "Toggle Menu Bar" msgstr "Przełącz pasek menu" #: src/menus.c:506 msgid "Toggle Status Bar" msgstr "Przełącz pasek stanu" #: src/menus.c:507 msgid "Toggle Scrollbars" msgstr "Przełącz paski przewijania" #: src/menus.c:508 msgid "Toggle Alpha checks" msgstr "Przełącz szachownicę przezroczystości" #: src/menus.c:510 msgid "Hide the cursor" msgstr "Ukryj wskaźnik myszy" #: src/menus.c:511 msgid "Set this window as server" msgstr "Ustaw to okno jako serwer" #: src/menus.c:513 msgid "Options..." msgstr "Opcje..." #: src/menus.c:532 msgid "Help" msgstr "Pomoc" #: src/menus.c:533 msgid "About..." msgstr "O programie..." #: src/menus.c:534 msgid "Controls..." msgstr "Sterowanie..." #: src/next_image.c:143 msgid "First image" msgstr "Pierwszy obrazek" #: src/next_image.c:146 msgid "Last image" msgstr "Ostatni obrazek" #: src/next_image.c:226 msgid "Loading errors" msgstr "Błąd podczas ładowania" #: src/next_image.c:239 msgid "The following errors occurred while loading the next image:\n" msgstr "Następujące błędy wystąpiły podczas ładowania następnego obrazka:\n" #: src/next_image.c:828 msgid "Stop the slide show" msgstr "Zatrzymaj pokaz slajdów" #: src/open_dialog.c:101 msgid "GLiv: Select a folder to open" msgstr "GLiv: Wybierz katalog do otworzenia" #: src/open_dialog.c:104 msgid "GLiv: Select files to open" msgstr "GLiv: Wybierz pliki do otworzenia" #: src/open_dialog.c:129 src/rcfile.c:106 msgid "Try to load every file" msgstr "Próbuj załadować każdy plik" #: src/open_dialog.c:130 src/rcfile.c:118 msgid "Recursive directory traversal" msgstr "Rekursywne przeszukiwanie katalogów" #: src/options.c:219 src/options.c:237 msgid "NONE" msgstr "NIC" #: src/options.c:222 #, c-format msgid "This configuration file has been read: %s" msgstr "Plik konfiguracyjny %s został wczytany" #: src/options.c:240 #, c-format msgid "This configuration file will be written: %s" msgstr "Plik konfiguracyjny %s będzie zapisany" #: src/rcfile.c:97 msgid "Start in full screen mode" msgstr "Rozpocznij w trybie pełnoekranowym" #: src/rcfile.c:100 msgid "Display the menu bar" msgstr "Wyświetlaj pasek menu" #: src/rcfile.c:101 msgid "Display info about the image" msgstr "Wyświetlaj informacje o obrazku" #: src/rcfile.c:102 msgid "Display scrollbars" msgstr "Wyświetlaj paski przewijania" #: src/rcfile.c:104 msgid "Alpha checks in the background" msgstr "Szachownica przezroczystości w tle" #: src/rcfile.c:117 msgid "Enable transitions" msgstr "Włącz przejścia" #: src/rcfile.c:119 msgid "Keep transfo between images" msgstr "Zachowaj przekształcenia między obrazkami" #: src/rcfile.c:122 msgid "Maximum framerate" msgstr "Maksymalna ilość klatek/sek." #: src/rcfile.c:123 msgid "Delay before hiding the cursor" msgstr "Opóźnienie ukrycia wskaźnika myszy" #: src/rcfile.c:124 msgid "History length" msgstr "Rozmiar historii" #: src/rcfile.c:125 msgid "Delay between images" msgstr "Opóźnienie pomiędzy obrazkami" #: src/rcfile.c:131 msgid "background: red channel" msgstr "tło: kanał czerwony" #: src/rcfile.c:132 msgid "background: green channel" msgstr "tło: kanał zielony" #: src/rcfile.c:133 msgid "background: blue channel" msgstr "tło: kanał niebieski" #: src/rcfile.c:134 msgid "alpha1 tile: red channel" msgstr "element przezroczystości 1: kanał czerwony" #: src/rcfile.c:135 msgid "alpha1 tile: green channel" msgstr "element przezroczystości 1: kanał zielony" #: src/rcfile.c:136 msgid "alpha1 tile: blue channel" msgstr "element przezroczystości 1: kanał niebieski" #: src/rcfile.c:137 msgid "alpha2 tile: red channel" msgstr "element przezroczystości 2: kanał czerwony" #: src/rcfile.c:138 msgid "alpha2 tile: green channel" msgstr "element przezroczystości 2: kanał zielony" #: src/rcfile.c:139 msgid "alpha2 tile: blue channel" msgstr "element przezroczystości 2: kanał niebieski" #: src/rcfile.c:238 #, c-format msgid "Unknown option in configuration file: %s\n" msgstr "Nieznana opcja w pliku konfiguracyjnym: %s\n" #: src/rcfile.c:240 #, c-format msgid "Parse error in configuration file: %s\n" msgstr "Błąd interpretowania pliku konfiguracyjnego: %s\n" #: src/rcfile.c:486 #, c-format msgid "" "# Configuration file for GLiv %s\n" "\n" msgstr "" "# Plik konfiguracyjny GLiv %s\n" "\n" #: src/rcfile.c:487 msgid "# Option names are case sensitive.\n" msgstr "# Nazwy opcji są wrażliwe na wielkość liter.\n" #: src/rcfile.c:488 msgid "" "# Option values are case insensitive.\n" "\n" msgstr "" "# Wartości opcji są niewrażliwe na wielkość liter.\n" "\n" #: src/thread.c:164 msgid "Cannot use a thread\n" msgstr "Nie można użyć wątku\n" #: src/transition.c:261 #, c-format msgid "transition from `%s' to `%s'" msgstr "przejście z `%s' do `%s'" #: src/tree_browser.c:80 msgid "Browser" msgstr "Przeglądarka" #: src/tree_browser.c:201 msgid "Thumb" msgstr "" #: src/tree_browser.c:222 msgid "Thumbnails browser" msgstr "Przeglądarka miniatur" #: src/windows.c:207 msgid "loading" msgstr "ładuję" #: src/windows.c:238 msgid "No image loaded" msgstr "Nie załadowano obrazka" #: src/windows.c:239 msgid "width x height" msgstr "szerokość x wysokość" #: src/windows.c:240 msgid "zoom% (angle)" msgstr "powiększenie% (kąt)" #: src/windows.c:319 #, c-format msgid "%.3f%% (%.3f deg%s)" msgstr "%.3f%% (%.3f st. %s)" #: src/windows.c:363 #, c-format msgid "Ignoring initial geometry (%s) as fullscreen mode is requested\n" msgstr "Ignoruję pierwotną geometrię (%s) ze względu na tryb pełnoekranowy\n" #: src/windows.c:375 #, c-format msgid "Cannot parse geometry: %s\n" msgstr "Nie można odoczytać geometrii: %s\n" #: src/windows.c:409 msgid "GLiv in fullscreen" msgstr "GLiv w trybie pełnoekranowym" #~ msgid "" #~ "Your mouse wheel (if supported) will zoom the image and switch it when " #~ "you press the button." #~ msgstr "" #~ "Kółko myszy (jeśli jest obsługiwane) będzie powiększało/zmniejszało " #~ "obrazek oraz przełączało go wciśniesz przycisk." gliv-1.9.7/po/da.gmo0000644000076400007640000004503311465576131011463 0ustar gg[ x"y#'7%L#r&. 6Cb |   11P ) +$G lz/  2,_*t   +, X@y    !>U&t   !   ,,Yw/?6G N[ .8V*r  ) )8 b       ! ! ! !!,!4!9!>!M!!]!! !!!!!!!" "!"&2""Y"|""" """"""##-#<#L#[#d#u#######, $ 9$F$`$$ $$%$$$%%/%B%b%:v%$%%<y&)&+& ''-'@'T'k'{'''' ' '''K'E(\(a(){(k( )#)C)\X))))+) **3*N*g***'***+(+C+ \+f+u+++++#++'+','F,n,&v, ,, ,, ,)-:-#B-f- -+-- -- -S.!U/;w/?//0( 0I0%e0000000#1 <1G1N1U1^1t111111 112"2?24]22(2(252/3H3P3 e3#3 33;3 344/4E4$]474454 5+525G5 Y5 g5q5,55A566/6 E6Q6l6"66%6(6 77 7 ,7:7$M7 r7 77 707$7!8"8 )8783L8 8P888 9 999 9!9 :+(:T:%c:::::::&;#,;%P;v;;;';;;; < <<%<+<0<J<)a< < <<< << ==,===)P=%z==== ===!= >4>K>S>c>t>>> >>> >>??3?0L?}??????+@;@J@e@@@!@@<@*+AVABB+DB-pBBBBBBCC5CLCjCzC C CCXC D+D3D+KDwD E'E7EdOEEEE*E FF1FJFbF{FF.FFFGG5GNG TG^G rG|GGGGG/G. H%;H aH.kH HHH H(H1IMI"VIyII2IIII J_gKDp,i)r'dcC9-$l uMJka5(z}LZ/ b =e.\ Go0H?EB!{*tUwTxm1%#~&F" j;[sPVv|hqI6X: Q743fN^SRyW<]AOn@2Y8`+># Configuration file for GLiv %s # Option names are case sensitive. # Option values are case insensitive. %.3f%% (%.3f deg%s)%s is not a GLiv collection%s not while loading an image %s while loading %s %s: image cannot be compressed twice %s: unknown decompressed extension %s: unknown extension %s: unknown extension (none) +/=/- : Zoom in/in/outAbout...Action on every imageAction on the current imageActionsAlpha 1Alpha 2Alpha checksAlpha checks in the backgroundAutomatic window resizingBackgroundBottom leftBottom rightBrowserBuild images menus at startupBuild mipmapsC-down : Rotate by -90 degreesC-left : Rotate by +0.1 degreeC-right: Rotate by -0.1 degreeC-up : Rotate by +90 degreesCannot find an appropriate visual, try glxinfo(1)Cannot load %sCannot parse geometry: %s Cannot set the OpenGL capabilityCannot sort and shuffle at the same time Cannot use a thread CenterCheck for OpenGL errorsChoose a collection to loadChoose a file to save the collectionClear historyCommandCommand line flags should be on or off, not %s CommandsConfiguration fileConfirm before quittingControls...Current image directory...Delay before hiding the cursorDelay before hiding the cursor 0: feature disabledDelay between imagesDelay between images during the slide showDelete : Delete the current fileDirectoriesDisplay info about the imageDisplay scrollbarsDisplay the menu barDitheringDo not ask againDo you really want to delete this file? %s Do you really want to quit GLiv?Draw a rectangle with the third button and gliv will zoom in it.ESC, q : QuitEdit ActionEdit actions...Elapsed timeEnable OpenGL filteringEnable transitionsEnable transitions between imagesEnter an image number:Failed to create a new processFatal error: GL_MAX_TEXTURE_SIZE = %d FileFirst imageFit heightFit widthFullscreen modeGL_MAX_TEXTURE_SIZE must be >= 64GLiv about boxGLiv helpGLiv in fullscreenGLiv versionGLiv won't write a collection to a terminal GLiv: Select a folder to openGLiv: Select files to openHelpHide the cursorHistory lengthHistory length 0: feature disabled -1: infiniteHorizontal flipIgnoring initial geometry (%s) as fullscreen mode is requested Image fit windowImagesImages menusIn the command field, printf like substitutions can be used: %d Path to the current file directory %b Current file name %f Path to the current file %% A litteral % Initial image positionInserting files...InterfaceKeep only one image in memoryKeep transfo between imagesKeep transformations when switching imagesLast imageLast/First image notice timeLoad collection...Load next imageLoad previous imageLoad the Nth image...Loading collection: %sLoading errorsM : Maximize the image to the windowMake mnemonics for images menusMake the slide show loopMaximize small imageMaximize small imagesMaximum framerateMaximum framerate -1: infiniteMenu bar enabledMoveMove downMove leftMove rightMove upNONENameNo image foundNo image loadedNo images to put in a collection Open directory...Open in GimpOpen thumbnails browser...Open...OpenGL error in %s() at %s:%d: %sOpenGL not supportedOptionsOptions will be savedOptions...Overwrite "%s" ?Parse error in configuration file: %s Pause : Start/stop the slide showQuitRebuild images menusRebuild this menuRebuilding:Recursive directory traversalRedoReload the current imageRemaining timeRemove the current fileResetRotate +0.1 degRotate +90 degRotate -0.1 degRotate -90 degRotationSame as previousSave collection...Save options nowSave options when quittingSaving collection: %sScale down large imageScale down large imagesScrollbars enabledSee http://guichaz.free.fr/gliv for updates.Set positionSet this window as serverShow thumbnails in images menusShuffle images listSlide showSort images listSpace and Backspace act like n and p.Standard outputStart in full screen modeStart the slide showStart with the slide showStatus bar enabledStop rebuilding the images menuStop the slide showThe action '%s' terminated with a non-null return code: %dThe action name '%s' is already usedThe first mouse button and the arrow keys will move the image unless the Control key is pressed. In which case the image will be rotated around the window center.The following errors occurred while loading the next image: This configuration file has been read: %sThis configuration file will be written: %sThumbnail heightThumbnail widthThumbnails browserToggle Alpha checksToggle Fullscreen modeToggle Menu BarToggle ScrollbarsToggle Status BarToggle floating windowsTop leftTop rightTotal timeTransformationsTransition durationTransitions obey the maximum framerate parameter in the Transformations tabTry to load every fileUndoUnknown OpenGL error (%d)Unknown option in configuration file: %s Use 'gliv --help' to show command line options. A quick help is accessible by typing 'h' or using the menu.Vertical flipWrong URI format: %d (instead of 8)Wrong URI length: %dYou can also zoom by dragging the mouse vertically while holding Shift and the first button.Zoom centered on pointerZoom inZoom outa : Toggle display of the alpha checksalpha channelalpha1 tile: blue channelalpha1 tile: green channelalpha1 tile: red channelalpha2 tile: blue channelalpha2 tile: green channelalpha2 tile: red channelb : Toggle display of the menu barbackground: blue channelbackground: green channelbackground: red channelc : Clear the historyd : Hide the cursordirectorydirectory/filee : Vertical flipelementsf : Full-screen/windowfilefpsg : Display the image selectorglXMakeCurrent() failedh : Toggle display of the help boxi : Toggle display of the info barl : Reduce the image to the windowloadingm : Make the image fit the windowmillisecondsn/p : Next/previous imageo : Display the open dialogpixelsr : Reset position and sizes : Toggle display of the scrollbarssecondst : Display the options dialogtransition from `%s' to `%s'u : Undow : Toggle display of floating windowswidth x heighty : Redoz : Horizontal flipzoom% (angle)Project-Id-Version: gliv-1.9.6 Report-Msgid-Bugs-To: guichaz@gmail.com POT-Creation-Date: 2010-04-19 00:52+0200 PO-Revision-Date: 2008-11-21 00:00+0200 Last-Translator: Joe Hansen Language-Team: Danish MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # Konfigurationsfil for GLiv %s # Indstillingsnavne tager højde for store/små bogstaver. # Indstillingsværdier tager højde for store/små bogstaver. %.3f%% (%.3f g%s)%s er ikke en GLiv-samlingikke %s under indlæsning af et billede %s under indlæsning af %s %s: Billede kan ikke pakkes to gange %s: Ukendt pakket udvidelse %s: Ukendt udvidelse %s: Ukendt udvidelse (ingen) +/=/- : Zoom ind/ind/udOm...Handlinger på alle billederHandlinger på det aktuelle billedeHandlingerAlfa 1Alfa 2AlfatjekAlfatjek i baggrundenAutomatisk vinduetilpasningBaggrundNederst venstreNederst højreBrowserByg billedmenuer ved opstartByg mipmapsC-ned : Roter med -90 graderC-ven.: Roter med +0,1 gradC-høj.: Roter med -0,1 gradC-op : Roter med +90 graderKan ikke finde en egnet visual, prøv med glxinfo(1)Kan ikke indlæse %sKan ikke fortolke skaleringsforhold: %s Kan ikke indstille muligheden for OpenGLKan ikke sortere og vælge tilfældigt på samme tid Kan ikke bruge en tråd CentrumTjek for OpenGL-fejlVælg en samling til indlæsningVælg en fil for at gemme samlingenRyd historieKommandoKommandolinjeflag bør være tændt eller slukket, ikke %s KommandoerOpsætningsfilBekræft før afslutningStyringsopsætning...Aktuelt billedemappe...Forsinkelse før musemarkør skjulesForsinkelse før markør skjules 0: egenskab slået fraForsinkelse mellem billederForsinkelse mellem billeder under billedfremvisningenSlet : Slet den nuværende filMapperVis info om billedetVis rullebjælkerVis menubarenDitheringSpørg ikke igenØnsker du virkelig at slette denne fil? %s Ønsker du at afslutte GLiv?Tegn et rektangel med den tredje knap og gliv vil zoome den frem.ESC, q : AfslutRediger handlingRediger handlinger...Anvendt tidSlå OpenGL filtrering tilSlå overgange tilSlå overgange mellem billeder tilIndtast et billednummer:Mislykkedes i at oprette en ny procesAlvorlig fejl: GL_MAX_TEXTURE_SIZE = %d FilFørste billedeTilpas højdeTilpas breddeFuldskærmtilstandGL_MAX_TEXTURE_SIZE skal være >= 64Boks om GLivGLiv hjælpGLiv i fuldskærmGLiv versionGLiv vil ikke skrive en samling til en terminal GLiv: Vælg en mappe der skal åbnesGLiv: Vælg filer der skal åbnesHjælpSkjul markørLængde på historieHistorielængde 0: egenskab slået til -1: uendeligPå hovedetIgnorerer oprindelig skaleringsforhold (%s) da fuldskærmtilstand er slået til Tilpas billede til vindueBillederBilledmenuerI kommandofeltet kan printf-lignende erstatninger anvendes: %d Sti til den aktuelle filmappe %b Aktuelt filnavn %f Sti til den aktuelle fil %% En ordret % Oprindelig billedpositionIndsætter filer...GrænsefladeBevar kun et billed i hukommelsenBehold tranfo mellem billederBehold ændringer når der skiftes billederSidste billedeSidste/Første billed fremvisningstidIndlæs samling...Indlæs næste billedeIndlæs forrige billedeIndlæs Nth-billedet...Henter samling: %sIndlæser fejlM : Maksimer billedet til vinduetKlargør mnemonics for billedmenuerLad billedfremvisningen gå i sløjfeMaksimer lille billedeForøg små billederMaksimal billedantalMaksimal enkeltbilledantal -1: uendeligMenubjælke slået tilFlytFlyt nedFlyt venstreFlyt højreFlyt opINGENNavnIntet billede blev fundetIntet billede indlæstIngen billeder at indsætte i en samling Åbn mappe...Åbn i GimpÅbn miniaturebrowser...Åbn...OpenGL-fejl i %s() ved %s:%d: %sOpenGL ikke understøttetIndstillingerIndstillinger vil blive gemtIndstillinger...Overskriv »%s« ?Fortolkningsfejl i konfigurationsfil: %s Pause : Start/stop diasfremvisningenAfslutGenopbyg billedmenuerGenopbyg denne menuGenopbygger:Rekursiv mappegennemløbOmgørGenindlæs det nuværende billedeTilbageværende tidFjern den aktuelle filNulstilRoter +0,1 gradRoter +90 graderRoter -0,1 gradRoter -90 graderRotationSom forrigeGem samling...Gem indstillinger nuGem indstillinger ved afslutningGemmer samling: %sFormindsk stort billedeFormindsk store billederRullebjælker slået tilSe http://guichaz.free.fr/gliv for opdateringer.Indstil positionIndstil dette vindue som serverVis miniaturer i billedmenuerBland billedliste tilfældigtBilledfremvisningSorter billedlisteMellemrum og backspace fungerer som n og p.StandarduddataStart i fuldskærmtilstandStart billedfremvisningenBegynd på billedfremvisningStatusbjælke slået tilStop genopbygning af billedmenuenStop diasfremvisningenHandlingen '%s' blev afsluttet med en non-null returkode: %dHandlingsnavnet »%s« er allerede anvendtDen første museknap og piletasterne vil flytte billedet med mindre at kontroltasten er trykket ned. I dette tilfælde vil billedet blive roteret rundt om vinduecenteret.De følgende fejl opstod under indlæsning af det næste billede: Denne konfigurationsfil er blevet læst: %sDenne konfigurationsfil vil blive skrevet: %sMiniaturehøjdeMiniaturebreddeMiniaturebrowserSlå alfatjek til/fraSlå fuldskærmtilstand til/fraSlå menubar til/fraSlå rullebjælker til/fraSlå statusbar til/fraSlå flydende vinduer til/fraØverst venstreØverst højreTid i altÆndringerVarighed af overgangOvergange overholder parametren for det maksimale antal billedantal iOvergangsfanebladetForsøg at indlæse alle filerFortrydUkendt OpenGL-fejl (%d)Ukendt indstilling i konfigurationsfil: %s Anvend 'gliv --help' for at vise indstillinger for kommandolinjen. En hurtig hjælp er tilgængelig ved at taste »h« eller anvende menuen.SpejlvendtForkert URI-format: %d (i steden for 8)Forkert URI-længde: %dDu kan også zoome ved at trække musen vertikalt mens du holder skift og den første museknap nede.Zoom centreret på musemarkørZoom indZoom uda : Slå display fra/til på alfatjekalfakanalalfa1 flise: Blå kanalalfa1 flise: Grøn kanalalfa1 flise: Rød kanalalpha2 flise: Blå kanalalpha2 flise: Grøn kanalalfa2 flise: Rød kanalb : Slå display fra/til på menubjælkenbaggrund: Blå kanalbaggrund: Grøn kanalbaggrund: Rød kanalc : Ryd historikkend : Skjul markørenmappemappe/file : Spejlvendtelementerf : Fuldskærm/vinduefilfpsg : Viser billedevælgerenglXMakeCurrent() mislykkedesh : Slå display fra/til på hjælpebokseni : Slå display fra/til på infobjælkenl : Reducer billedet til vinduetIndlæserm : Få billedet til at passe til vinduetmillisekundern/p : Næste/forrige billedeo : Viser åbn-vinduetbilledpunkterr : Nulstil placering og størrelses : Slå display fra/til på rullebjælkernesekundert : Viser indstillingsvinduetovergang fra `%s' til `%s'u : Fortrydw : Slå display fra/til på flydende vinduerbredde x højdey : Omgørz : På hovedetzoom% (vinkel)gliv-1.9.7/po/Makevars.template0000644000076400007640000000341611465576131013700 0ustar gg# 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 = Free Software Foundation, Inc. # 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 = # 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 = gliv-1.9.7/po/fr.po0000644000076400007640000006555211465576131011352 0ustar gg# Traduction française de GLiv. # Copyright (C) 2002-2006 Guillaume Chazarain # Guillaume Chazarain , 2002-2006. # msgid "" msgstr "" "Project-Id-Version: GLiv 1.9\n" "Report-Msgid-Bugs-To: guichaz@gmail.com\n" "POT-Creation-Date: 2010-04-19 00:52+0200\n" "PO-Revision-Date: 2007-07-09 00:45+0100\n" "Last-Translator: Guillaume Chazarain \n" "Language-Team: None\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "\n" #: src/actions.c:121 msgid "Failed to create a new process" msgstr "Impossible de créér un nouveau processus" #: src/actions.c:126 #, c-format msgid "The action '%s' terminated with a non-null return code: %d" msgstr "L'action '%s' a terminé avec un code de retour non nul : %d" #: src/actions.c:230 msgid "Open in Gimp" msgstr "Ouvrir avec Gimp" #: src/actions.c:333 #, c-format msgid "The action name '%s' is already used" msgstr "Le nom d'action '%s' est déjà utilisé" #: src/actions.c:463 src/glade_actions.c:165 src/tree_browser.c:211 msgid "Name" msgstr "Nom" #: src/actions.c:464 src/glade_actions.c:172 msgid "Command" msgstr "Commande" #: src/collection.c:152 msgid "Choose a file to save the collection" msgstr "Choisissez un fichier pour y enregistrer la collection" #: src/collection.c:159 #, c-format msgid "Overwrite \"%s\" ?" msgstr "Écraser \"%s\" ?" #: src/collection.c:238 msgid "Elapsed time" msgstr "Temps écoulé" #: src/collection.c:239 msgid "Remaining time" msgstr "Temps restant" #: src/collection.c:240 msgid "Total time" msgstr "Durée estimée" #: src/collection.c:247 src/collection.c:637 #, c-format msgid "Saving collection: %s" msgstr "Enregistrement de la collection : %s" #: src/collection.c:250 src/collection.c:1044 #, c-format msgid "Loading collection: %s" msgstr "Chargement de la collection : %s" #: src/collection.c:366 msgid "Inserting files..." msgstr "Insertion des fichiers..." #: src/collection.c:615 msgid "No images to put in a collection\n" msgstr "Pas d'image à mettre dans la collection\n" #: src/collection.c:622 msgid "GLiv won't write a collection to a terminal\n" msgstr "GLiv n'écrira pas une collection sur un terminal\n" #: src/collection.c:643 msgid "Standard output" msgstr "Sortie standard" #: src/collection.c:1064 #, c-format msgid "%s is not a GLiv collection" msgstr "%s n'est pas une collection pour GLiv" #: src/collection.c:1077 msgid "Choose a collection to load" msgstr "Choisissez une collection à charger" #: src/files_list.c:499 #, c-format msgid "" "Do you really want to delete this file?\n" "%s\n" msgstr "" "Voulez-vous vraiment supprimer ce fichier ?\n" "%s\n" #: src/files_list.c:523 msgid "directory/file" msgstr "dossier/fichier" #: src/gl_widget.c:130 #, c-format msgid "Wrong URI format: %d (instead of 8)" msgstr "Mauvais format d'URI : %d (au lieu de 8)" #: src/gl_widget.c:135 #, c-format msgid "Wrong URI length: %d" msgstr "Mauvaise longueur d'URI : %d" #: src/gl_widget.c:227 #, c-format msgid "Fatal error: GL_MAX_TEXTURE_SIZE = %d\n" msgstr "Erreur fatale : GL_MAX_TEXTURE_SIZE = %d\n" #: src/gl_widget.c:231 msgid "GL_MAX_TEXTURE_SIZE must be >= 64" msgstr "GL_MAX_TEXTURE_SIZE doit être >= 64" #: src/gl_widget.c:257 msgid "glXMakeCurrent() failed" msgstr "glXMakeCurrent() a échoué" #: src/gl_widget.c:310 msgid "OpenGL not supported" msgstr "OpenGL n'est pas supporté" #: src/gl_widget.c:321 msgid "Cannot find an appropriate visual, try glxinfo(1)" msgstr "Impossible de trouver un visuel approprié, essayez glxinfo(1)" #: src/gl_widget.c:328 msgid "Cannot set the OpenGL capability" msgstr "Impossible d'activer OpenGL" #: src/gl_widget.c:366 #, c-format msgid "Unknown OpenGL error (%d)" msgstr "Erreur OpenGL inconnue (%d)" #: src/gl_widget.c:370 #, c-format msgid "" "OpenGL error in %s() at %s:%d:\n" "%s" msgstr "" "Erreur OpenGL dans %s() à %s:%d:\n" "%s" #: src/glade_actions.c:43 msgid "Actions" msgstr "Actions" #: src/glade_actions.c:149 msgid "Edit Action" msgstr "Éditer les actions" #: src/glade_actions.c:206 msgid "" "In the command field, printf like substitutions can be used:\n" "%d\t\tPath to the current file directory\n" "%b\t\tCurrent file name\n" "%f\t\tPath to the current file\n" "%%\t\tA litteral %\n" msgstr "" "Vous pouvez utiliser des substitutions à la printf dans le champ de " "commande :\n" "%d\t\tChemin vers le dossier du fichier courant\n" "%b\t\tNom du fichier courant\n" "%f\t\tChemin vers le fichier courant\n" "%%\t\tUn % littéral\n" #: src/glade_image_nr.c:45 src/menus.c:417 msgid "Load the Nth image..." msgstr "Charger la Nième image..." #: src/glade_image_nr.c:65 msgid "Enter an image number:" msgstr "Entrez un numéro d'image :" #: src/glade_image_nr.c:81 msgid "directory" msgstr "dossier" #: src/glade_image_nr.c:87 msgid "file" msgstr "fichier" #: src/glade_options.c:138 src/menus.c:503 msgid "Options" msgstr "Options" #: src/glade_options.c:174 msgid "Save options now" msgstr "Enregistrer les options maintenant" #: src/glade_options.c:178 src/rcfile.c:116 msgid "Save options when quitting" msgstr "Enregistrer les options en quittant" #: src/glade_options.c:193 msgid "Configuration file" msgstr "Fichier de configuration" #: src/glade_options.c:215 msgid "Scrollbars enabled" msgstr "Barres de défilement activées" #: src/glade_options.c:222 msgid "Fullscreen mode" msgstr "Mode plein écran" #: src/glade_options.c:229 msgid "Menu bar enabled" msgstr "Barre de menus activée" #: src/glade_options.c:236 msgid "Status bar enabled" msgstr "Barre d'informations activée" #: src/glade_options.c:243 src/rcfile.c:115 msgid "Confirm before quitting" msgstr "Demander confirmation avant de quitter" #: src/glade_options.c:250 src/rcfile.c:114 msgid "Automatic window resizing" msgstr "Redimensionnement de la fenêtre" #: src/glade_options.c:261 msgid "" "Delay before hiding the cursor\n" "0: feature disabled" msgstr "" "Délai avant de cacher le curseur\n" "0 : fonctionnalitée désactivée" #: src/glade_options.c:274 src/glade_options.c:587 src/glade_options.c:634 msgid "milliseconds" msgstr "millisecondes" #: src/glade_options.c:279 msgid "Interface" msgstr "Interface" #: src/glade_options.c:290 src/rcfile.c:99 msgid "Scale down large images" msgstr "Réduire les grandes images" #: src/glade_options.c:297 src/rcfile.c:98 msgid "Maximize small images" msgstr "Agrandir les petites images" #: src/glade_options.c:304 src/rcfile.c:108 msgid "Build mipmaps" msgstr "Construire des mipmaps" #: src/glade_options.c:311 src/rcfile.c:105 msgid "Dithering" msgstr "Réduction chromatique (dithering)" #: src/glade_options.c:318 src/rcfile.c:111 msgid "Keep only one image in memory" msgstr "Ne garder qu'une seule image en mémoire" #: src/glade_options.c:325 src/rcfile.c:120 msgid "Check for OpenGL errors" msgstr "Vérifier les erreurs OpenGL" #: src/glade_options.c:332 src/rcfile.c:121 msgid "Enable OpenGL filtering" msgstr "Activer le filtrage OpenGL" #: src/glade_options.c:339 src/images_menus.c:330 src/images_menus.c:479 #: src/menus.c:521 msgid "Images" msgstr "Images" #: src/glade_options.c:352 src/rcfile.c:107 msgid "Build images menus at startup" msgstr "Construire les menus d'images au démarrage" #: src/glade_options.c:357 src/rcfile.c:109 msgid "Make mnemonics for images menus" msgstr "Ajouter des raccourcis aux menus d'images" #: src/glade_options.c:362 src/rcfile.c:112 msgid "Show thumbnails in images menus" msgstr "Afficher des vignettes dans les menus d'images" #: src/glade_options.c:371 src/glade_options.c:380 msgid "pixels" msgstr "pixels" #: src/glade_options.c:389 src/rcfile.c:127 msgid "Thumbnail height" msgstr "Hauteur des vignettes" #: src/glade_options.c:418 src/rcfile.c:126 msgid "Thumbnail width" msgstr "Largeur des vignettes" #: src/glade_options.c:427 msgid "Images menus" msgstr "Menus d'images" #: src/glade_options.c:442 src/rcfile.c:103 msgid "Zoom centered on pointer" msgstr "Zoom centré sur le pointeur" #: src/glade_options.c:447 msgid "Keep transformations when switching images" msgstr "Conserver les transformations en changeant d'image" #: src/glade_options.c:456 src/rcfile.c:130 msgid "Initial image position" msgstr "Position initiale de l'image" #: src/glade_options.c:463 src/menus.c:460 msgid "Center" msgstr "Centre" #: src/glade_options.c:464 src/menus.c:461 msgid "Top left" msgstr "En haut à gauche" #: src/glade_options.c:465 src/menus.c:462 msgid "Top right" msgstr "En haut à droite" #: src/glade_options.c:466 src/menus.c:463 msgid "Bottom left" msgstr "En bas à gauche" #: src/glade_options.c:467 src/menus.c:464 msgid "Bottom right" msgstr "En bas à droite" #: src/glade_options.c:468 msgid "Same as previous" msgstr "Comme la précédente" #: src/glade_options.c:495 msgid "" "History length\n" "0: feature disabled\n" "-1: infinite" msgstr "" "Longueur de l'historique\n" "0 : fonctionnalitée désactivée\n" "-1 : infinie" #: src/glade_options.c:503 msgid "" "Maximum framerate\n" "-1: infinite" msgstr "" "Nombre maximum d'images par seconde\n" "-1 : infini" #: src/glade_options.c:511 msgid "elements" msgstr "éléments" #: src/glade_options.c:519 msgid "fps" msgstr "ips" #: src/glade_options.c:527 src/menus.c:447 msgid "Transformations" msgstr "Transformations" #: src/glade_options.c:542 src/rcfile.c:113 msgid "Start with the slide show" msgstr "Démarrer avec le diaporama" #: src/glade_options.c:547 src/rcfile.c:110 msgid "Make the slide show loop" msgstr "Boucler le diaporama" #: src/glade_options.c:556 src/rcfile.c:128 msgid "Last/First image notice time" msgstr "Durée du message pour la première/dernière image" #: src/glade_options.c:563 msgid "Delay between images during the slide show" msgstr "Délai entre chaque image pendant le diaporama" #: src/glade_options.c:580 msgid "seconds" msgstr "secondes" #: src/glade_options.c:608 msgid "Enable transitions between images" msgstr "Activer les transitions entre les images" #: src/glade_options.c:621 src/rcfile.c:129 msgid "Transition duration" msgstr "Durée d'une transition" #: src/glade_options.c:639 msgid "" "Transitions obey the maximum framerate parameter in the Transformations tab" msgstr "" "Les transitions sont sujettes à la limitation du nombre d'images par seconde" #: src/glade_options.c:644 msgid "Slide show" msgstr "Diaporama" #: src/glade_options.c:657 msgid "Alpha 2" msgstr "Alpha 2" #: src/glade_options.c:664 msgid "Alpha 1" msgstr "Alpha 1" #: src/glade_options.c:671 src/glade_options.c:706 msgid "Background" msgstr "Arrière plan" #: src/glade_options.c:692 msgid "Alpha checks" msgstr "Quadrillage alpha" #: src/help.c:102 src/help.c:109 msgid "GLiv help" msgstr "Aide de GLiv" #: src/help.c:163 msgid "GLiv about box" msgstr "A propos de GLiv" #: src/help_text.c:15 msgid "ESC, q : Quit" msgstr "ESC, q : Quitter" #: src/help_text.c:18 msgid "f : Full-screen/window" msgstr "f : Plein écran/fenêtre" #: src/help_text.c:21 msgid "+/=/- : Zoom in/in/out" msgstr "+/=/- : Agrandir plus/plus/moins" #: src/help_text.c:24 msgid "n/p : Next/previous image" msgstr "n/p : Image suivante/précédente" #: src/help_text.c:27 msgid "Pause : Start/stop the slide show" msgstr "Pause : Démarrer /Arrêter le diaporama" #: src/help_text.c:30 msgid "l : Reduce the image to the window" msgstr "l : Réduire l'image à la taille de la fenêtre" #: src/help_text.c:33 msgid "M : Maximize the image to the window" msgstr "M : Agrandir l'image à la taille de la fenêtre" #: src/help_text.c:36 msgid "m : Make the image fit the window" msgstr "m : Remplissage de la fenêtre par l'image" #: src/help_text.c:39 msgid "r : Reset position and size" msgstr "r : Réinitialiser la position et la taille de l'image" #: src/help_text.c:42 msgid "b : Toggle display of the menu bar" msgstr "b : Basculer l'affichage de la barre de menus" #: src/help_text.c:45 msgid "i : Toggle display of the info bar" msgstr "i : Basculer l'affichage de la barre d'informations" #: src/help_text.c:48 msgid "s : Toggle display of the scrollbars" msgstr "s : Basculer l'affichage des barres de défilement" #: src/help_text.c:51 msgid "a : Toggle display of the alpha checks" msgstr "a : Basculer l'affichage du quadrillage alpha" #: src/help_text.c:54 msgid "h : Toggle display of the help box" msgstr "h : Basculer l'affichage de l'aide" #: src/help_text.c:57 msgid "w : Toggle display of floating windows" msgstr "w : Basculer l'affichage des fenêtres flottantes" #: src/help_text.c:60 msgid "o : Display the open dialog" msgstr "o : Ouvrir des fichiers" #: src/help_text.c:63 msgid "g : Display the image selector" msgstr "g : Afficher le sélecteur d'images" #: src/help_text.c:66 msgid "t : Display the options dialog" msgstr "t : Afficher les options" #: src/help_text.c:69 msgid "d : Hide the cursor" msgstr "d : Cacher le curseur" #: src/help_text.c:72 msgid "u : Undo" msgstr "u : Annuler" #: src/help_text.c:75 msgid "y : Redo" msgstr "y : Refaire" #: src/help_text.c:78 msgid "c : Clear the history" msgstr "c : Effacer l'historique" #: src/help_text.c:81 msgid "Delete : Delete the current file" msgstr "Suppr : Supprimer le fichier courant" #: src/help_text.c:84 msgid "C-up : Rotate by +90 degrees" msgstr "C-haut : Rotation de +90 degrés" #: src/help_text.c:87 msgid "C-down : Rotate by -90 degrees" msgstr "C-bas : Rotation de -90 degrés" #: src/help_text.c:90 msgid "C-left : Rotate by +0.1 degree" msgstr "C-gauche : Rotation de +0.1 degré" #: src/help_text.c:93 msgid "C-right: Rotate by -0.1 degree" msgstr "C-droite : Rotation de -0.1 degré" #: src/help_text.c:96 msgid "z : Horizontal flip" msgstr "z : Miroir horizontal" #: src/help_text.c:99 msgid "e : Vertical flip" msgstr "e : Miroir vertical" #: src/help_text.c:104 msgid "" "The first mouse button and the arrow keys will move the image unless the " "Control key is pressed. In which case the image will be rotated around the " "window center." msgstr "" "Le premier bouton de la souris et les touches fléchées servent à déplacer " "l'image sauf si la touche Contrôle est enfoncée. Auquel cas l'image subira " "une rotation autour du centre de la fenêtre." #: src/help_text.c:107 msgid "" "The mouse wheel zooms the image, and when you hold its button pressed at the " "same time it switches to the neighbouring image." msgstr "" "La roulette zoom sur l'image, et passe à l'image précédente/suivante quand " "le bouton est appuyé." #: src/help_text.c:110 msgid "" "You can also zoom by dragging the mouse vertically while holding Shift and " "the first button." msgstr "" "Vous pouvez également zoomer en faisant glisser la souris verticalement en " "maintenant enfoncés la touche Majuscule et le premier bouton." #: src/help_text.c:113 msgid "Space and Backspace act like n and p." msgstr "Les touches Espace et d'effacement agissent comme n et p." #: src/help_text.c:116 msgid "Draw a rectangle with the third button and gliv will zoom in it." msgstr "Dessinez un rectangle avec le bouton trois pour l'agrandir." #: src/images_menus.c:82 msgid "Rebuilding:" msgstr "Reconstruction :" #: src/images_menus.c:209 src/images_menus.c:447 src/menus.c:517 msgid "Directories" msgstr "Dossiers" #: src/images_menus.c:296 msgid "Current image directory..." msgstr "Dossier de l'image courante..." #: src/images_menus.c:363 src/menus.c:337 msgid "Rebuild this menu" msgstr "Reconstruire ce menu" #: src/images_menus.c:370 src/menus.c:338 msgid "Open thumbnails browser..." msgstr "Ouvrir le navigateur de vignettes..." #: src/include/about.h:6 msgid "GLiv version" msgstr "GLiv version" #: src/include/about.h:8 msgid "" "Use 'gliv --help' to show command line options.\n" "A quick help is accessible by typing 'h' or using the menu." msgstr "" "Utilisez 'gliv --help' pour avoir les options de ligne de commande.\n" "Une aide rapide est accessible en appuyant sur 'h' ou avec le menu." #: src/include/about.h:10 msgid "See http://guichaz.free.fr/gliv for updates." msgstr "Consultez http://guichaz.free.fr/gliv pour les mises à jour." #: src/loading.c:81 #, c-format msgid "%s not while loading an image\n" msgstr "%s en dehors d'un chargement d'image\n" #: src/loading.c:83 #, c-format msgid "%s while loading %s\n" msgstr "%s en chargeant %s\n" #: src/loading.c:102 msgid "alpha channel" msgstr "canal alpha" #: src/loading.c:158 #, c-format msgid "%s: unknown decompressed extension\n" msgstr "%s : extension décompressée inconnue\n" #: src/loading.c:165 #, c-format msgid "%s: image cannot be compressed twice\n" msgstr "%s : l'image ne peut pas être compressée deux fois\n" #: src/loading.c:188 #, c-format msgid "%s: unknown extension (none)\n" msgstr "%s : extension inconnue (aucune)\n" #: src/loading.c:197 #, c-format msgid "%s: unknown extension\n" msgstr "%s : extension inconnue\n" #: src/loading.c:291 src/next_image.c:280 #, c-format msgid "Cannot load %s" msgstr "Impossible de charger %s" #: src/main.c:65 #, c-format msgid "Command line flags should be on or off, not %s\n" msgstr "Les drapeaux sur la ligne de commande doivent être on ou off, pas %s\n" #: src/main.c:181 msgid "Cannot sort and shuffle at the same time\n" msgstr "Impossible de trier et mélanger à la fois\n" #: src/main.c:221 msgid "" "The --client and --client-clear command line options are mutually exclusive\n" msgstr "Les options --client et --client-clear sont mutuellement exclusives\n" #: src/main.c:253 src/main.c:256 msgid "Do not ask again" msgstr "Ne plus le redemander" #: src/main.c:257 msgid "Options will be saved" msgstr "Les options seront enregistrées" #: src/main.c:279 msgid "Do you really want to quit GLiv?" msgstr "Voulez-vous vraiment quitter GLiv ?" #: src/main.c:337 src/next_image.c:542 msgid "No image found" msgstr "Aucune image trouvée" #: src/menus.c:403 msgid "File" msgstr "Fichier" #: src/menus.c:404 msgid "Open..." msgstr "Ouvrir..." #: src/menus.c:405 msgid "Open directory..." msgstr "Ouvrir un dossier..." #: src/menus.c:407 msgid "Load collection..." msgstr "Charger la collection..." #: src/menus.c:408 msgid "Save collection..." msgstr "Enregistrer la collection..." #: src/menus.c:410 msgid "Quit" msgstr "Quitter" #: src/menus.c:414 msgid "Commands" msgstr "Commandes" #: src/menus.c:415 msgid "Load previous image" msgstr "Charger l'image précédente" #: src/menus.c:416 msgid "Load next image" msgstr "Charger l'image suivante" #: src/menus.c:418 msgid "Load first image" msgstr "Charger la première image" #: src/menus.c:419 msgid "Load last image" msgstr "Charger la dernière image" #: src/menus.c:420 msgid "Load random image" msgstr "Charger une image au hasard" #: src/menus.c:421 msgid "Reload the current image" msgstr "Recharger l'image courante" #: src/menus.c:423 msgid "Sort images list" msgstr "Trier la liste des images" #: src/menus.c:424 msgid "Shuffle images list" msgstr "Mélanger la liste des images" #: src/menus.c:426 msgid "Rebuild images menus" msgstr "Reconstruire les menus d'images" #: src/menus.c:427 msgid "Stop rebuilding the images menu" msgstr "Arrêter la reconstruction des menus d'images" #: src/menus.c:431 msgid "Toggle floating windows" msgstr "Basculer l'affichage des fenêtres flottantes" #: src/menus.c:433 src/next_image.c:799 msgid "Start the slide show" msgstr "Démarrer le diaporama" #: src/menus.c:437 msgid "Remove the current file" msgstr "Supprimer le fichier courant" #: src/menus.c:440 msgid "Edit actions..." msgstr "Éditer les actions..." #: src/menus.c:441 msgid "Action on the current image" msgstr "Action sur l'image courante" #: src/menus.c:443 msgid "Action on every image" msgstr "Action sur chaque image" #: src/menus.c:448 msgid "Undo" msgstr "Annuler" #: src/menus.c:449 msgid "Redo" msgstr "Refaire" #: src/menus.c:450 msgid "Clear history" msgstr "Effacer l'historique" #: src/menus.c:452 msgid "Move" msgstr "Déplacer" #: src/menus.c:453 msgid "Move left" msgstr "Déplacer à gauche" #: src/menus.c:454 msgid "Move right" msgstr "Déplacer à droite" #: src/menus.c:455 msgid "Move up" msgstr "Déplacer en haut" #: src/menus.c:456 msgid "Move down" msgstr "Déplacer en bas" #: src/menus.c:459 msgid "Set position" msgstr "Repositionner" #: src/menus.c:467 msgid "Rotation" msgstr "Rotation" #: src/menus.c:468 msgid "Rotate +90 deg" msgstr "Rotation de +90 degrés" #: src/menus.c:470 msgid "Rotate -90 deg" msgstr "Rotation de -90 degrés" #: src/menus.c:472 msgid "Rotate +0.1 deg" msgstr "Rotation de +0.1 degré" #: src/menus.c:474 msgid "Rotate -0.1 deg" msgstr "Rotation de -0.1 degré" #: src/menus.c:480 msgid "Horizontal flip" msgstr "Miroir horizontal" #: src/menus.c:482 msgid "Vertical flip" msgstr "Miroir vertical" #: src/menus.c:486 msgid "Maximize small image" msgstr "Agrandir la petite image" #: src/menus.c:487 msgid "Scale down large image" msgstr "Réduire la grande image" #: src/menus.c:489 msgid "Image fit window" msgstr "Remplissage de la fenêtre par l'image" #: src/menus.c:492 msgid "Zoom in" msgstr "Agrandir" #: src/menus.c:493 msgid "Zoom out" msgstr "Rétrécir" #: src/menus.c:494 msgid "Fit width" msgstr "Ajuster la largeur" #: src/menus.c:495 msgid "Fit height" msgstr "Ajuster la hauteur" #: src/menus.c:499 msgid "Reset" msgstr "Reset" #: src/menus.c:504 msgid "Toggle Fullscreen mode" msgstr "Basculer le mode plein écran" #: src/menus.c:505 msgid "Toggle Menu Bar" msgstr "Basculer l'affichage de la barre de menus" #: src/menus.c:506 msgid "Toggle Status Bar" msgstr "Basculer l'affichage de la barre d'informations" #: src/menus.c:507 msgid "Toggle Scrollbars" msgstr "Basculer l'affichage des barres de défilement" #: src/menus.c:508 msgid "Toggle Alpha checks" msgstr "Basculer l'affichage du quadrillage alpha" #: src/menus.c:510 msgid "Hide the cursor" msgstr "Cacher le curseur" #: src/menus.c:511 msgid "Set this window as server" msgstr "Rendre cette fenêtre serveur" #: src/menus.c:513 msgid "Options..." msgstr "Options..." #: src/menus.c:532 msgid "Help" msgstr "Aide" #: src/menus.c:533 msgid "About..." msgstr "A propos..." #: src/menus.c:534 msgid "Controls..." msgstr "Contrôles..." #: src/next_image.c:143 msgid "First image" msgstr "Première image" #: src/next_image.c:146 msgid "Last image" msgstr "Dernière image" #: src/next_image.c:226 msgid "Loading errors" msgstr "Erreurs de chargement" #: src/next_image.c:239 msgid "The following errors occurred while loading the next image:\n" msgstr "Les erreurs suivantes sont survenues en chargeant l'image suivante :\n" #: src/next_image.c:828 msgid "Stop the slide show" msgstr "Arrêter le diaporama" #: src/open_dialog.c:101 msgid "GLiv: Select a folder to open" msgstr "GLiv : Sélectionnez le dossier à ouvrir" #: src/open_dialog.c:104 msgid "GLiv: Select files to open" msgstr "GLiv : Sélectionnez les fichiers à ouvrir" #: src/open_dialog.c:129 src/rcfile.c:106 msgid "Try to load every file" msgstr "Essayer de charger tous les fichiers" #: src/open_dialog.c:130 src/rcfile.c:118 msgid "Recursive directory traversal" msgstr "Parcours récursif des dossiers" #: src/options.c:219 src/options.c:237 msgid "NONE" msgstr "AUCUN" #: src/options.c:222 #, c-format msgid "This configuration file has been read: %s" msgstr "Ce fichier de configuration a été lu : %s" #: src/options.c:240 #, c-format msgid "This configuration file will be written: %s" msgstr "Ce fichier de configuration sera écrit : %s" #: src/rcfile.c:97 msgid "Start in full screen mode" msgstr "Démarrer en mode plein écran" #: src/rcfile.c:100 msgid "Display the menu bar" msgstr "Afficher la barre de menus" #: src/rcfile.c:101 msgid "Display info about the image" msgstr "Afficher des informations à propos de l'image" #: src/rcfile.c:102 msgid "Display scrollbars" msgstr "Afficher les barres de défilement" #: src/rcfile.c:104 msgid "Alpha checks in the background" msgstr "Quadrillage alpha en arrière plan" #: src/rcfile.c:117 msgid "Enable transitions" msgstr "Activer les transitions" #: src/rcfile.c:119 msgid "Keep transfo between images" msgstr "Conserver les transformations entre les images" #: src/rcfile.c:122 msgid "Maximum framerate" msgstr "Nombre maximum d'images par seconde" #: src/rcfile.c:123 msgid "Delay before hiding the cursor" msgstr "Délai avant de cacher le curseur" #: src/rcfile.c:124 msgid "History length" msgstr "Longueur de l'historique" #: src/rcfile.c:125 msgid "Delay between images" msgstr "Délai entre chaque image" #: src/rcfile.c:131 msgid "background: red channel" msgstr "arrière plan : canal rouge" #: src/rcfile.c:132 msgid "background: green channel" msgstr "arrière plan : canal vert" #: src/rcfile.c:133 msgid "background: blue channel" msgstr "arrière plan : canal bleu" #: src/rcfile.c:134 msgid "alpha1 tile: red channel" msgstr "carreau alpha1 : canal rouge" #: src/rcfile.c:135 msgid "alpha1 tile: green channel" msgstr "carreau alpha1 : canal vert" #: src/rcfile.c:136 msgid "alpha1 tile: blue channel" msgstr "carreau alpha1 : canal bleu" #: src/rcfile.c:137 msgid "alpha2 tile: red channel" msgstr "carreau alpha2 : canal rouge" #: src/rcfile.c:138 msgid "alpha2 tile: green channel" msgstr "carreau alpha2 : canal vert" #: src/rcfile.c:139 msgid "alpha2 tile: blue channel" msgstr "carreau alpha2 : canal bleu" #: src/rcfile.c:238 #, c-format msgid "Unknown option in configuration file: %s\n" msgstr "Option inconnue dans le fichier de configuration : %s\n" #: src/rcfile.c:240 #, c-format msgid "Parse error in configuration file: %s\n" msgstr "Erreur dans le fichier de configuration :%s\n" #: src/rcfile.c:486 #, c-format msgid "" "# Configuration file for GLiv %s\n" "\n" msgstr "" "# Fichier de configuration pour GLiv %s\n" "\n" #: src/rcfile.c:487 msgid "# Option names are case sensitive.\n" msgstr "# Les noms d'options sont sensibles à la casse.\n" #: src/rcfile.c:488 msgid "" "# Option values are case insensitive.\n" "\n" msgstr "" "# Les valeurs pour les options sont insensibles à la casse.\n" "\n" #: src/thread.c:164 msgid "Cannot use a thread\n" msgstr "Impossible d'utiliser un thread\n" #: src/transition.c:261 #, c-format msgid "transition from `%s' to `%s'" msgstr "transition de `%s' vers `%s'" #: src/tree_browser.c:80 msgid "Browser" msgstr "Navigateur" #: src/tree_browser.c:201 msgid "Thumb" msgstr "Vignette" #: src/tree_browser.c:222 msgid "Thumbnails browser" msgstr "Navigateur de vignettes" #: src/windows.c:207 msgid "loading" msgstr "chargement" #: src/windows.c:238 msgid "No image loaded" msgstr "Aucune image chargée" #: src/windows.c:239 msgid "width x height" msgstr "largeur x hauteur" #: src/windows.c:240 msgid "zoom% (angle)" msgstr "zoom% (angle)" #: src/windows.c:319 #, c-format msgid "%.3f%% (%.3f deg%s)" msgstr "%.3f%% (%.3f deg%s)" #: src/windows.c:363 #, c-format msgid "Ignoring initial geometry (%s) as fullscreen mode is requested\n" msgstr "La géométrie initiale (%s) est ignorée à cause du mode plein écran\n" #: src/windows.c:375 #, c-format msgid "Cannot parse geometry: %s\n" msgstr "Mauvaise géométrie : %s\n" #: src/windows.c:409 msgid "GLiv in fullscreen" msgstr "GLiv en plein écran" gliv-1.9.7/po/boldquot.sed0000644000076400007640000000033111465576131012711 0ustar ggs/"\([^"]*\)"/“\1”/g s/`\([^`']*\)'/‘\1’/g s/ '\([^`']*\)' / ‘\1’ /g s/ '\([^`']*\)'$/ ‘\1’/g s/^'\([^`']*\)' /‘\1’ /g s/“”/""/g s/“/“/g s/”/”/g s/‘/‘/g s/’/’/g gliv-1.9.7/po/Makevars0000644000076400007640000000344611465576131012071 0ustar gg# 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_ --indent --debug # 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 = Guillaume Chazarain # 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 = guichaz@gmail.com # 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 = gliv-1.9.7/po/insert-header.sin0000644000076400007640000000124011465576131013630 0ustar gg# Sed script that inserts the file called HEADER before the header entry. # # At each occurrence of a line starting with "msgid ", we execute the following # commands. At the first occurrence, insert the file. At the following # occurrences, do nothing. The distinction between the first and the following # occurrences is achieved by looking at the hold space. /^msgid /{ x # Test if the hold space is empty. s/m/m/ ta # Yes it was empty. First occurrence. Read the file. r HEADER # Output the file's contents by reading the next line. But don't lose the # current line while doing this. g N bb :a # The hold space was nonempty. Following occurrences. Do nothing. x :b } gliv-1.9.7/po/de.po0000644000076400007640000006667211465576131011337 0ustar gg# German translation of GLiv. # Copyright (C) 2004 Guillaume Chazarain # This file is distributed under the same license as the GLiv package. # Roland Illig , 2004. # Roland Illig , 2010. # msgid "" msgstr "" "Project-Id-Version: gliv 1.9.6\n" "Report-Msgid-Bugs-To: guichaz@yahoo.fr\n" "POT-Creation-Date: 2006-06-11 16:49+0200\n" "PO-Revision-Date: 2010-06-20 19:59+0100\n" "Last-Translator: Roland Illig \n" "Language-Team: German \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" #: src/actions.c:121 msgid "Failed to create a new process" msgstr "Konnte keinen neuen Prozess erzeugen" #: src/actions.c:126 #, c-format msgid "The action '%s' terminated with a non-null return code: %d" msgstr "Die Aktion »%s« wurde mit dem Rückgabewert %d beendet" #: src/actions.c:230 msgid "Open in Gimp" msgstr "In Gimp öffnen" #: src/actions.c:338 #, c-format msgid "The action name '%s' is already used" msgstr "Der Aktionsname »%s« wird bereits benutzt" #: src/actions.c:469 src/glade_actions.c:165 msgid "Name" msgstr "Name" #: src/actions.c:470 src/glade_actions.c:172 msgid "Command" msgstr "Befehl" #: src/collection.c:152 msgid "Choose a file to save the collection" msgstr "Wählen Sie eine Datei, um die Sammlung zu speichern" #: src/collection.c:159 #, c-format msgid "Overwrite \"%s\" ?" msgstr "Datei »%s« überschreiben?" #: src/collection.c:238 msgid "Elapsed time" msgstr "Vergangene Zeit" #: src/collection.c:239 msgid "Remaining time" msgstr "Verbleibende Zeit" #: src/collection.c:240 msgid "Total time" msgstr "Gesamtzeit" #: src/collection.c:247 src/collection.c:637 #, c-format msgid "Saving collection: %s" msgstr "Speichere Sammlung: %s" #: src/collection.c:250 src/collection.c:1044 #, c-format msgid "Loading collection: %s" msgstr "Lade Sammlung: %s" #: src/collection.c:366 msgid "Inserting files..." msgstr "Füge Dateien ein ..." #: src/collection.c:615 msgid "No images to put in a collection\n" msgstr "Keine Bilder, die in eine Sammlung getan werden könnten\n" #: src/collection.c:622 msgid "GLiv won't write a collection to a terminal\n" msgstr "GLiv schreibt keine Sammlungen auf ein Terminal\n" #: src/collection.c:643 msgid "Standard output" msgstr "Standardausgabe" #: src/collection.c:1064 #, c-format msgid "%s is not a GLiv collection" msgstr "»%s« ist keine GLiv-Sammlung" #: src/collection.c:1077 msgid "Choose a collection to load" msgstr "Wählen Sie eine Sammlung, die geladen werden soll" #: src/files_list.c:500 #, c-format msgid "" "Do you really want to delete this file?\n" "%s\n" msgstr "" "Wollen Sie diese Datei wirklich löschen?\n" "%s\n" #: src/files_list.c:538 msgid "directory/file" msgstr "Verzeichnis/Datei" #: src/gl_widget.c:130 #, c-format msgid "Wrong URI format: %d (instead of 8)" msgstr "Falsches URI-Format: %d (statt 8)" #: src/gl_widget.c:135 #, c-format msgid "Wrong URI length: %d" msgstr "Falsche URI-Länge: %d" #: src/gl_widget.c:227 #, c-format msgid "Fatal error: GL_MAX_TEXTURE_SIZE = %d\n" msgstr "Fataler Fehler: GL_MAX_TEXTURE_SIZE = %d\n" #: src/gl_widget.c:231 msgid "GL_MAX_TEXTURE_SIZE must be >= 64" msgstr "GL_MAX_TEXTURE_SIZE muss größer als 64 sein" #: src/gl_widget.c:257 msgid "glXMakeCurrent() failed" msgstr "glXMakeCurrent() ist fehlgeschlagen" #: src/gl_widget.c:310 msgid "OpenGL not supported" msgstr "OpenGL wird nicht unterstützt" #: src/gl_widget.c:321 msgid "Cannot find an appropriate visual, try glxinfo(1)" msgstr "Kann keinen geeigneten Anzeigemodus (Visual) finden. Mehr dazu steht in glxinfo(1)." #: src/gl_widget.c:328 msgid "Cannot set the OpenGL capability" msgstr "Kann die OpenGL-Fähigkeit nicht setzen" #: src/gl_widget.c:366 #, c-format msgid "Unknown OpenGL error (%d)" msgstr "Unbekannter OpenGL-Fehler (%d)" #: src/gl_widget.c:370 #, c-format msgid "" "OpenGL error in %s() at %s:%d:\n" "%s" msgstr "" "OpenGL-Fehler in %s() an %s:%d:\n" "%s" #: src/glade_actions.c:43 msgid "Actions" msgstr "Aktionen" #: src/glade_actions.c:149 msgid "Edit Action" msgstr "Aktion bearbeiten" #: src/glade_actions.c:206 msgid "" "In the command field, printf like substitutions can be used:\n" "%d\t\tPath to the current file directory\n" "%b\t\tCurrent file name\n" "%f\t\tPath to the current file\n" "%%\t\tA litteral %\n" msgstr "" "In dem Befehlsfeld können Sie printf-artige Ersetzungen benutzen:\n" "%d\t\tPfad zum aktuellen Verzeichnis\n" "%b\t\tAktueller Dateiname\n" "%f\t\tPfad zur aktuellen Datei\n" "%%\t\tEin Prozentzeichen\n" #: src/glade_image_nr.c:45 src/menus.c:409 msgid "Load the Nth image..." msgstr "Ntes Bild laden..." #: src/glade_image_nr.c:65 msgid "Enter an image number:" msgstr "Geben Sie eine Bildnummer ein:" #: src/glade_image_nr.c:81 msgid "directory" msgstr "Verzeichnis" #: src/glade_image_nr.c:87 msgid "file" msgstr "Datei" #: src/glade_options.c:138 src/menus.c:492 msgid "Options" msgstr "Einstellungen" #: src/glade_options.c:174 msgid "Save options now" msgstr "Einstellungen jetzt speichern" #: src/glade_options.c:178 src/rcfile.c:116 msgid "Save options when quitting" msgstr "Einstellungen beim Beenden speichern" #: src/glade_options.c:193 msgid "Configuration file" msgstr "Konfigurationsdatei" #: src/glade_options.c:215 msgid "Scrollbars enabled" msgstr "Scrollbalken aktiviert" #: src/glade_options.c:222 msgid "Fullscreen mode" msgstr "Vollbildmodus" #: src/glade_options.c:229 msgid "Menu bar enabled" msgstr "Menüzeile aktiviert" #: src/glade_options.c:236 msgid "Status bar enabled" msgstr "Statuszeile aktiviert" #: src/glade_options.c:243 src/rcfile.c:115 msgid "Confirm before quitting" msgstr "Bestätigen Sie vor dem Beenden" #: src/glade_options.c:250 src/rcfile.c:114 msgid "Automatic window resizing" msgstr "Fenstergröße automatisch anpassen" #: src/glade_options.c:261 msgid "" "Delay before hiding the cursor\n" "0: feature disabled" msgstr "" "Zeit, bevor der Mauszeiger verschwindet\n" "0: Feature deaktiviert" #: src/glade_options.c:274 src/glade_options.c:587 src/glade_options.c:634 msgid "milliseconds" msgstr "Millisekunden" #: src/glade_options.c:279 msgid "Interface" msgstr "Aussehen" #: src/glade_options.c:290 src/rcfile.c:99 msgid "Scale down large images" msgstr "Große Bilder verkleinern" #: src/glade_options.c:297 src/rcfile.c:98 msgid "Maximize small images" msgstr "Kleine Bilder maximieren" # Was sind mipmaps? #: src/glade_options.c:304 src/rcfile.c:108 msgid "Build mipmaps" msgstr "Mipmaps erzeugen" #: src/glade_options.c:311 src/rcfile.c:105 msgid "Dithering" msgstr "Dithering" #: src/glade_options.c:318 src/rcfile.c:111 msgid "Keep only one image in memory" msgstr "Nur ein Bild im Speicher behalten" #: src/glade_options.c:325 src/rcfile.c:120 msgid "Check for OpenGL errors" msgstr "Prüfe auf OpenGL-Fehler" #: src/glade_options.c:332 src/rcfile.c:121 msgid "Enable OpenGL filtering" msgstr "OpenGL-Filterung aktivieren" #: src/glade_options.c:339 src/images_menus.c:330 src/images_menus.c:477 #: src/menus.c:510 msgid "Images" msgstr "Bilder" #: src/glade_options.c:352 src/rcfile.c:107 msgid "Build images menus at startup" msgstr "Bildermenüs beim Starten aufbauen" #: src/glade_options.c:357 src/rcfile.c:109 msgid "Make mnemonics for images menus" msgstr "Tastenkürzel für Bildermenüs anlegen" #: src/glade_options.c:362 src/rcfile.c:112 msgid "Show thumbnails in images menus" msgstr "Vorschaubilder im Bildermenü anzeigen" #: src/glade_options.c:371 src/glade_options.c:380 msgid "pixels" msgstr "Pixel" #: src/glade_options.c:389 src/rcfile.c:127 msgid "Thumbnail height" msgstr "Höhe der Vorschaubilder" #: src/glade_options.c:418 src/rcfile.c:126 msgid "Thumbnail width" msgstr "Breite der Vorschaubilder" #: src/glade_options.c:427 msgid "Images menus" msgstr "Bildermenüs" #: src/glade_options.c:442 src/rcfile.c:103 msgid "Zoom centered on pointer" msgstr "Zoom um den Mauszeiger herum zentrieren" #: src/glade_options.c:447 msgid "Keep transformations when switching images" msgstr "Transformationen beim Bildwechsel beibehalten" #: src/glade_options.c:456 src/rcfile.c:130 msgid "Initial image position" msgstr "Anfängliche Startposition" #: src/glade_options.c:463 src/menus.c:449 msgid "Center" msgstr "Mitte" #: src/glade_options.c:464 src/menus.c:450 msgid "Top left" msgstr "Oben links" #: src/glade_options.c:465 src/menus.c:451 msgid "Top right" msgstr "Oben rechts" # Was tut diese Taste? #: src/glade_options.c:466 src/menus.c:452 msgid "Bottom left" msgstr "Unten links" #: src/glade_options.c:467 src/menus.c:453 msgid "Bottom right" msgstr "Unten rechts" #: src/glade_options.c:468 msgid "Same as previous" msgstr "Wie der vorherige" #: src/glade_options.c:495 msgid "" "History length\n" "0: feature disabled\n" "-1: infinite" msgstr "" "Länge des Verlaufs\n" "0: ausgeschaltet\n" "-1: unbegrenzt" #: src/glade_options.c:503 msgid "" "Maximum framerate\n" "-1: infinite" msgstr "" "Maximale Bildwiederholrate\n" "-1: unbegrenzt" #: src/glade_options.c:511 msgid "elements" msgstr "Elemente" #: src/glade_options.c:519 msgid "fps" msgstr "fps" #: src/glade_options.c:527 src/menus.c:436 msgid "Transformations" msgstr "Transformationen" #: src/glade_options.c:542 src/rcfile.c:113 msgid "Start with the slide show" msgstr "Diashow beginnen" #: src/glade_options.c:547 src/rcfile.c:110 msgid "Make the slide show loop" msgstr "Diashow endlos wiederholen" #: src/glade_options.c:556 src/rcfile.c:128 msgid "Last/First image notice time" msgstr "Letzte/Erste Bildnotizzeit" #: src/glade_options.c:563 msgid "Delay between images during the slide show" msgstr "Wartezeit zwischen Bildern während der Diashow" #: src/glade_options.c:580 msgid "seconds" msgstr "Sekunden" #: src/glade_options.c:608 msgid "Enable transitions between images" msgstr "Übergänge zwischen Bildern aktivieren" #: src/glade_options.c:621 src/rcfile.c:129 msgid "Transition duration" msgstr "Übergangsdauer" #: src/glade_options.c:639 msgid "Transitions obey the maximum framerate parameter in the Transformations tab" msgstr "Transformationen halten sich an die maximale Framerate, die im Transformationsreiter angegeben ist" #: src/glade_options.c:644 msgid "Slide show" msgstr "Diashow" #: src/glade_options.c:657 msgid "Alpha 2" msgstr "Alpha 2" #: src/glade_options.c:664 msgid "Alpha 1" msgstr "Alpha 1" #: src/glade_options.c:671 src/glade_options.c:706 msgid "Background" msgstr "Hintergrund" #: src/glade_options.c:692 msgid "Alpha checks" msgstr "Alphakanalmuster" #: src/help.c:102 src/help.c:109 msgid "GLiv help" msgstr "GLiv-Hilfe" #: src/help.c:163 msgid "GLiv about box" msgstr "Informationen über GLiv" #: src/help_text.c:15 msgid "ESC, q : Quit" msgstr "ESC, q : Beenden" #: src/help_text.c:18 msgid "f : Full-screen/window" msgstr "f : Vollbild/Fenster" #: src/help_text.c:21 msgid "+/=/- : Zoom in/in/out" msgstr "+/=/- : Zoom in/in/out" #: src/help_text.c:24 msgid "n/p : Next/previous image" msgstr "n/p : Nächstes/vorheriges Bild" #: src/help_text.c:27 msgid "Pause : Start/stop the slide show" msgstr "Pause : Beginnen/Beenden der Diashow" #: src/help_text.c:30 msgid "l : Reduce the image to the window" msgstr "l : Bild auf die Fenstergröße verkleinern" #: src/help_text.c:33 msgid "M : Maximize the image to the window" msgstr "M : Bild auf die Fenstergröße vergrößern" #: src/help_text.c:36 msgid "m : Make the image fit the window" msgstr "m : Bild der Fenstergröße anpassen" #: src/help_text.c:39 msgid "r : Reset position and size" msgstr "r : Position und Größe zurücksetzen" #: src/help_text.c:42 msgid "b : Toggle display of the menu bar" msgstr "b : Menüzeile anzeigen/verstecken" #: src/help_text.c:45 msgid "i : Toggle display of the info bar" msgstr "i : Informationszeile anzeigen/verstecken" #: src/help_text.c:48 msgid "s : Toggle display of the scrollbars" msgstr "s : Scrollbalken anzeigen/verstecken" # ??? #: src/help_text.c:51 msgid "a : Toggle display of the alpha checks" msgstr "a : Alphakanalmuster anzeigen/verstecken" #: src/help_text.c:54 msgid "h : Toggle display of the help box" msgstr "h : Hilfefenster anzeigen/verstecken" #: src/help_text.c:57 msgid "w : Toggle display of floating windows" msgstr "w : Anzeige von freischwebenden Fenstern umschalten" #: src/help_text.c:60 msgid "o : Display the open dialog" msgstr "o : Dialog »Datei öffnen« anzeigen" #: src/help_text.c:63 msgid "g : Display the image selector" msgstr "g : Bildauswähler anzeigen" #: src/help_text.c:66 msgid "t : Display the options dialog" msgstr "t : Dialog »Einstellungen« anzeigen" #: src/help_text.c:69 msgid "d : Hide the cursor" msgstr "d : Mauszeiger verstecken" #: src/help_text.c:72 msgid "u : Undo" msgstr "u : Rückgängig" #: src/help_text.c:75 msgid "y : Redo" msgstr "y : Wiederherstellen" # history => ??? #: src/help_text.c:78 msgid "c : Clear the history" msgstr "c : Verlauf löschen" #: src/help_text.c:81 msgid "Delete : Delete the current file" msgstr "Löschen: Die aktuelle Datei löschen" #: src/help_text.c:84 msgid "C-up : Rotate by +90 degrees" msgstr "C-hoch : Um 90 Grad gegen den Uhrzeigersinn rotieren" #: src/help_text.c:87 msgid "C-down : Rotate by -90 degrees" msgstr "C-runter : Um 90 Grad im Uhrzeigersinn rotieren" #: src/help_text.c:90 msgid "C-left : Rotate by +0.1 degree" msgstr "C-links : Um 0,1 Grad gegen den Uhrzeigersinn rotieren" #: src/help_text.c:93 msgid "C-right: Rotate by -0.1 degree" msgstr "C-rechts : Um 0,1 Grad im Uhrzeigersinn rotieren" #: src/help_text.c:96 msgid "z : Horizontal flip" msgstr "z : Horizontal spiegeln" #: src/help_text.c:99 msgid "e : Vertical flip" msgstr "e : Vertical spiegeln" #: src/help_text.c:104 msgid "The first mouse button and the arrow keys will move the image unless the Control key is pressed. In which case the image will be rotated around the window center." msgstr "Die linke Maustaste und die Pfeiltasten verschieben das Bild auf dem Bildschirm, solange die Strg-Taste nicht gedrückt ist. Wenn sie Strg-Taste gedrückt ist, können Sie mit der linken Maustaste oder den Pfeiltasten das Bild drehen." #: src/help_text.c:107 msgid "Your mouse wheel (if supported) will zoom the image and switch it when you press the button." msgstr "Falls Sie eine Maus mit Mausrad haben, können Sie damit das Bild vergrößern und verkleinern. Wenn Sie das Mausrad gedrückt halten und dann drehen, können Sie damit zwischen den Bildern wechseln." #: src/help_text.c:110 msgid "You can also zoom by dragging the mouse vertically while holding Shift and the first button." msgstr "Sie können das Bild auch vergrößern und verkleinern, indem Sie die Maus vertikal bewegen und dabei die Umschalttaste gedrückt halten." #: src/help_text.c:113 msgid "Space and Backspace act like n and p." msgstr "Die Leertaste und Backspace machen das gleiche wie die Tasten n und p." #: src/help_text.c:116 msgid "Draw a rectangle with the third button and gliv will zoom in it." msgstr "Zeichnen Sie mit der rechten Maustaste ein Rechteck, und GLiv wird hineinzoomen." #: src/images_menus.c:82 msgid "Rebuilding:" msgstr "Neu erzeugen:" #: src/images_menus.c:209 src/images_menus.c:445 src/menus.c:506 msgid "Directories" msgstr "Verzeichnisse" #: src/images_menus.c:296 msgid "Current image directory..." msgstr "Aktuelles Bildverzeichnis..." #: src/images_menus.c:363 src/menus.c:329 msgid "Rebuild this menu" msgstr "Dieses Menü neu aufbauen" #: src/images_menus.c:370 src/menus.c:330 msgid "Open thumbnails browser..." msgstr "Vorschaubildbrowser öffnen..." #: src/include/about.h:6 msgid "GLiv version" msgstr "GLiv Version" #: src/include/about.h:8 msgid "" "Use 'gliv --help' to show command line options.\n" "A quick help is accessible by typing 'h' or using the menu." msgstr "" "Benutzen Sie »gliv --help«, um eine Übersicht über die Kommando-\n" "zeilenargumente zu bekommen. Eine kleine Hilfe bekommen Sie, indem\n" "Sie »h« drücken oder dieses Menü benutzen." #: src/include/about.h:10 msgid "See http://guichaz.free.fr/gliv for updates." msgstr "Siehe http://guichaz.free.fr/gliv für Updates." #: src/loading.c:81 #, c-format msgid "%s not while loading an image\n" msgstr "%s, während gerade kein Bild geladen wird\n" #: src/loading.c:83 #, c-format msgid "%s while loading %s\n" msgstr "%s beim Laden von »%s«\n" #: src/loading.c:102 msgid "alpha channel" msgstr "Alphakanal" #: src/loading.c:158 #, c-format msgid "%s: unknown decompressed extension\n" msgstr "%s: Unbekannte Komprimiererweiterung\n" #: src/loading.c:165 #, c-format msgid "%s: image cannot be compressed twice\n" msgstr "%s: Das Bild kann nicht zweimal komprimiert werden.\n" #: src/loading.c:188 #, c-format msgid "%s: unknown extension (none)\n" msgstr "%s: Unbekannte Erweiterung (keine)\n" #: src/loading.c:197 #, c-format msgid "%s: unknown extension\n" msgstr "%s: Unbekannte Erweiterung\n" #: src/loading.c:291 src/next_image.c:279 #, c-format msgid "Cannot load %s" msgstr "Kann »%s« nicht laden." #: src/main.c:65 #, c-format msgid "Command line flags should be on or off, not %s\n" msgstr "Kommandozeilenoptionen sollten »on« oder »off« sein, nicht »%s«.\n" #: src/main.c:180 msgid "Cannot sort and shuffle at the same time\n" msgstr "Sortieren und Mischen geht nicht gleichzeitig.\n" #: src/main.c:244 src/main.c:247 msgid "Do not ask again" msgstr "Nicht nochmal fragen" #: src/main.c:248 msgid "Options will be saved" msgstr "Optionen werden gespeichert" #: src/main.c:270 msgid "Do you really want to quit GLiv?" msgstr "Wollen Sie GLiv wirklich beenden?" #: src/main.c:328 src/next_image.c:508 msgid "No image found" msgstr "Kein Bild gefunden" #: src/menus.c:395 msgid "File" msgstr "Datei" #: src/menus.c:396 msgid "Open..." msgstr "Öffnen..." #: src/menus.c:397 msgid "Open directory..." msgstr "Verzeichnis öffnen..." #: src/menus.c:399 msgid "Load collection..." msgstr "Sammlung laden..." #: src/menus.c:400 msgid "Save collection..." msgstr "Sammlung speichern..." #: src/menus.c:402 msgid "Quit" msgstr "Beenden" #: src/menus.c:406 msgid "Commands" msgstr "Befehle" #: src/menus.c:407 msgid "Load previous image" msgstr "Vorheriges Bild laden" #: src/menus.c:408 msgid "Load next image" msgstr "Nächstes Bild laden" #: src/menus.c:410 msgid "Reload the current image" msgstr "Aktuelles Bild neuladen" #: src/menus.c:412 msgid "Sort images list" msgstr "Bilderliste sortieren" #: src/menus.c:413 msgid "Shuffle images list" msgstr "Bilderliste mischen" #: src/menus.c:415 msgid "Rebuild images menus" msgstr "Bildermenü neu aufbauen" #: src/menus.c:416 msgid "Stop rebuilding the images menu" msgstr "Aufhören, das Bildermenü aufzubauen" #: src/menus.c:420 msgid "Toggle floating windows" msgstr "Freischwebende Fenster umschalten" #: src/menus.c:422 src/next_image.c:761 msgid "Start the slide show" msgstr "Diashow beginnen" #: src/menus.c:426 msgid "Remove the current file" msgstr "Die aktuelle Datei von der Festplatte löschen" #: src/menus.c:429 msgid "Edit actions..." msgstr "Bearbeitungsaktionen..." #: src/menus.c:430 msgid "Action on the current image" msgstr "Aktion auf dem aktuellen Bild" #: src/menus.c:432 msgid "Action on every image" msgstr "Aktion auf jedem Bild" #: src/menus.c:437 msgid "Undo" msgstr "Rückgängig" #: src/menus.c:438 msgid "Redo" msgstr "Wiederherstellen" #: src/menus.c:439 msgid "Clear history" msgstr "Verlauf löschen" #: src/menus.c:441 msgid "Move" msgstr "Bewegen" #: src/menus.c:442 msgid "Move left" msgstr "Nach links bewegen" #: src/menus.c:443 msgid "Move right" msgstr "Nach rechts bewegen" #: src/menus.c:444 msgid "Move up" msgstr "Nach oben bewegen" #: src/menus.c:445 msgid "Move down" msgstr "Nach unten bewegen" #: src/menus.c:448 msgid "Set position" msgstr "Position festlegen" #: src/menus.c:456 msgid "Rotation" msgstr "Rotation" #: src/menus.c:457 msgid "Rotate +90 deg" msgstr "Um 90 Grad gegen den Uhrzeigersinn drehen" #: src/menus.c:459 msgid "Rotate -90 deg" msgstr "Um 90 Grad im Uhrzeigersinn drehen" #: src/menus.c:461 msgid "Rotate +0.1 deg" msgstr "Um 0,1 Grad gegen den Uhrzeigersinn drehen" #: src/menus.c:463 msgid "Rotate -0.1 deg" msgstr "Um 0,1 Grad im Uhrzeigersinn drehen" #: src/menus.c:469 msgid "Horizontal flip" msgstr "Horizontal spiegeln" #: src/menus.c:471 msgid "Vertical flip" msgstr "Vertikal spiegeln" #: src/menus.c:475 msgid "Maximize small image" msgstr "Kleines Bild maximieren" #: src/menus.c:476 msgid "Scale down large image" msgstr "Großes Bild verkleinern" #: src/menus.c:478 msgid "Image fit window" msgstr "Bild auf Fenstergröße bringen" #: src/menus.c:481 msgid "Zoom in" msgstr "Hereinzoomen" #: src/menus.c:482 msgid "Zoom out" msgstr "Herauszoomen" #: src/menus.c:483 msgid "Fit width" msgstr "Breite anpassen" #: src/menus.c:484 msgid "Fit height" msgstr "Höhe einpassen" #: src/menus.c:488 msgid "Reset" msgstr "Zurücksetzen" #: src/menus.c:493 msgid "Toggle Fullscreen mode" msgstr "Zwischen Fenster und Vollbild umschalten" #: src/menus.c:494 msgid "Toggle Menu Bar" msgstr "Menüzeile anzeigen/verstecken" #: src/menus.c:495 msgid "Toggle Status Bar" msgstr "Statuszeile anzeigen/verstecken" #: src/menus.c:496 msgid "Toggle Scrollbars" msgstr "Scrollbalken anzeigen/verstecken" #: src/menus.c:497 msgid "Toggle Alpha checks" msgstr "Alphakanalmuster anzeigen/verstecken" #: src/menus.c:499 msgid "Hide the cursor" msgstr "Mauszeiger verstecken" #: src/menus.c:500 msgid "Set this window as server" msgstr "Dieses Fenster als Server festlegen" #: src/menus.c:502 msgid "Options..." msgstr "Einstellungen..." #: src/menus.c:521 msgid "Help" msgstr "Hilfe..." #: src/menus.c:522 msgid "About..." msgstr "Programminformationen..." #: src/menus.c:523 msgid "Controls..." msgstr "Tastensteuerung..." #: src/next_image.c:142 msgid "First image" msgstr "Erstes Bild" #: src/next_image.c:145 msgid "Last image" msgstr "Nächstes Bild" #: src/next_image.c:225 msgid "Loading errors" msgstr "Ladefehler" #: src/next_image.c:238 msgid "The following errors occurred while loading the next image:\n" msgstr "Die folgenden Fehler traten beim Laden des nächsten Bildes auf:\n" #: src/next_image.c:790 msgid "Stop the slide show" msgstr "Diashow anhalten" #: src/open_dialog.c:101 msgid "GLiv: Select a folder to open" msgstr "GLiv: Wählen Sie ein Verzeichnis zum Öffnen aus" #: src/open_dialog.c:104 msgid "GLiv: Select files to open" msgstr "GLiv: Wählen Sie Dateien zum Öffnen aus" #: src/open_dialog.c:129 src/rcfile.c:106 msgid "Try to load every file" msgstr "Versuchen, jede Datei zu laden" #: src/open_dialog.c:130 src/rcfile.c:118 msgid "Recursive directory traversal" msgstr "Rekursiver Verzeichnisdurchlauf" #: src/options.c:219 src/options.c:237 msgid "NONE" msgstr "KEINE" #: src/options.c:222 #, c-format msgid "This configuration file has been read: %s" msgstr "Diese Konfigurationsdatei wurde geladen: %s" #: src/options.c:240 #, c-format msgid "This configuration file will be written: %s" msgstr "Diese Konfigurationsdatei wird geschrieben: %s" #: src/rcfile.c:97 msgid "Start in full screen mode" msgstr "In Vollbildmodus starten" #: src/rcfile.c:100 msgid "Display the menu bar" msgstr "Menüzeile anzeigen" #: src/rcfile.c:101 msgid "Display info about the image" msgstr "Bildinformationen anzeigen" #: src/rcfile.c:102 msgid "Display scrollbars" msgstr "Scrollbalken anzeigen" #: src/rcfile.c:104 msgid "Alpha checks in the background" msgstr "Alphakanalmuster im Hintergrund" #: src/rcfile.c:117 msgid "Enable transitions" msgstr "Übergänge aktivieren" #: src/rcfile.c:119 msgid "Keep transfo between images" msgstr "Transformationen zwischen Bildern beibehalten" #: src/rcfile.c:122 msgid "Maximum framerate" msgstr "Maximale Bildwiederholrate" #: src/rcfile.c:123 msgid "Delay before hiding the cursor" msgstr "Wartezeit, bevor der Mauszeiger versteckt wird" #: src/rcfile.c:124 msgid "History length" msgstr "Länge des Verlaufs" #: src/rcfile.c:125 msgid "Delay between images" msgstr "Wartezeit zwischen Bildern" #: src/rcfile.c:131 msgid "background: red channel" msgstr "Hintergrund: Rotanteil" #: src/rcfile.c:132 msgid "background: green channel" msgstr "Hintergrund: Grünanteil" #: src/rcfile.c:133 msgid "background: blue channel" msgstr "Hintergrund: Blauanteil" #: src/rcfile.c:134 msgid "alpha1 tile: red channel" msgstr "Alpha1-Bereich: Rotanteil" #: src/rcfile.c:135 msgid "alpha1 tile: green channel" msgstr "Alpha1-Bereich: Grünanteil" #: src/rcfile.c:136 msgid "alpha1 tile: blue channel" msgstr "Alpha1-Bereich: Blauanteil" #: src/rcfile.c:137 msgid "alpha2 tile: red channel" msgstr "Alpha2-Bereich: Rotanteil" #: src/rcfile.c:138 msgid "alpha2 tile: green channel" msgstr "Alpha2-Bereich: Grünanteil" #: src/rcfile.c:139 msgid "alpha2 tile: blue channel" msgstr "Alpha2-Bereich: Blauanteil" #: src/rcfile.c:238 #, c-format msgid "Unknown option in configuration file: %s\n" msgstr "Unbekannte Option in der Konfiguration: %s\n" #: src/rcfile.c:240 #, c-format msgid "Parse error in configuration file: %s\n" msgstr "Parsefehler in Konfigurationsdatei: %s\n" #: src/rcfile.c:486 #, c-format msgid "" "# Configuration file for GLiv %s\n" "\n" msgstr "" "# Konfigurationsdatei für GLiv %s\n" "\n" #: src/rcfile.c:487 msgid "# Option names are case sensitive.\n" msgstr "# Bei Optionsnamen ist die Groß- und Kleinschreibung wichtig.\n" #: src/rcfile.c:488 msgid "" "# Option values are case insensitive.\n" "\n" msgstr "" "# Bei Optionswerten ist die Groß- und Kleinschreibung wichtig.\n" "\n" #: src/thread.c:164 msgid "Cannot use a thread\n" msgstr "Kann keinen Thread benutzen\n" #: src/transition.c:261 #, c-format msgid "transition from `%s' to `%s'" msgstr "Übergang von »%s« nach »%s«" #: src/tree_browser.c:80 msgid "Browser" msgstr "Browser" #: src/tree_browser.c:222 msgid "Thumbnails browser" msgstr "Vorschaubildbrowser" #: src/windows.c:207 msgid "loading" msgstr "Lade" #: src/windows.c:238 msgid "No image loaded" msgstr "Kein Bild geladen" #: src/windows.c:239 msgid "width x height" msgstr "Breite x Höhe" #: src/windows.c:240 msgid "zoom% (angle)" msgstr "Zoom% (Drehwinkel)" #: src/windows.c:319 #, c-format msgid "%.3f%% (%.3f deg%s)" msgstr "%.3f%% (%.3f Grad%s)" #: src/windows.c:363 #, c-format msgid "Ignoring initial geometry (%s) as fullscreen mode is requested\n" msgstr "Ignoriere anfängliche Ausmaße (%s), da der Vollbildmodus verlangt wurde\n" #: src/windows.c:375 #, c-format msgid "Cannot parse geometry: %s\n" msgstr "Kann Ausmaße nicht parsen: %s\n" #: src/windows.c:409 msgid "GLiv in fullscreen" msgstr "GLiv im Vollbildmodus" #~ msgid "Loading GLiv collection" #~ msgstr "Lade GLiv-Sammlung" #~ msgid "" #~ "The following OpenGL errors have occured:\n" #~ "%s" #~ msgstr "" #~ "Die folgenden OpenGL-Fehler sind aufgetreten:\n" #~ "%s" #~ msgid "No automatic image centering" #~ msgstr "Bilder nicht automatisch zentrieren" #~ msgid "Click the window to hide it." #~ msgstr "Klicken Sie in das Fenster, um es zu schließen." #~ msgid "no alpha channel" #~ msgstr "Kein Alphakanal" #~ msgid "Rotate +45 deg" #~ msgstr "Um 45 Grad gegen den Uhrzeigersinn drehen" #~ msgid "Rotate -45 deg" #~ msgstr "Um 45 Grad im Uhrzeigersinn drehen" #~ msgid "Shuffle" #~ msgstr "Mischen" #~ msgid "All files in the directory" #~ msgstr "Alle Dateien in diesem Verzeichnis" #~ msgid "Scale down larges images" #~ msgstr "Große Bilder verkleinern" #~ msgid "" #~ "# Note: 'maximize = True' or 'scale-down = True' implies 'full-screen = True'.\n" #~ "\n" #~ msgstr "" #~ "# Beachten Sie: »maximize = True« oder »scale-down = True« hat\n" #~ "# »full-screen = True« zur Folge.\n" #~ "\n" gliv-1.9.7/po/fi.gmo0000644000076400007640000004577311465576131011510 0ustar gg[ x"y#'7%L#r&. 6Cb |   11P ) +$G lz/  2,_*t   +, X@y    !>U&t   !   ,,Yw/?6G N[ .8V*r  ) )8 b       ! ! ! !!,!4!9!>!M!!]!! !!!!!!!" "!"&2""Y"|""" """"""##-#<#L#[#d#u#######, $ 9$F$`$$ $$%$$$%%/%B%b%:v%$%%<y&)&+& ''-'@'T'k'{'''' ' '''K'E(\(a(){(k( )#)C)\X))))+) **3*N*g***'***+(+C+ \+f+u+++++#++'+','F,n,&v, ,, ,, ,)-:-#B-f- -+-- -- -.%/.///"070O0i0&0-00'01 91G1c1 11111$1111202F2d2222<23"63Y3.x33333-4.4A4CI4444 44"4D 5N5&e5!5 555556/$6)T6@~6666 67$7,?7l7%7'7777 7 8#8;8 K8W8 l8-x88!8888C9 R9Rs999 99:: ::$:. ;O;)^;;;;;; ;; <?<\<p<<'<<< <<= = "=.=3=F=$W=|====7== >> 5>C>%Z>!>>> >>*>*?1?O?e?~???????@@!/@Q@ l@@@;@ A A%.ATA lAwA?A AAABB+1B]BFrB%BB;C#C&CD.DBDTDmDDDDDDD DEEO(ExEEE*EE rF FFqF'>GfGlG,sG GGGGH"H?H(]HHHHHH I I) I JITInIwI{II(I&I J)J2J PJ ^J#J J*J,JK)K-8K fK+tKKK)KK_gKDp,i)r'dcC9-$l uMJka5(z}LZ/ b =e.\ Go0H?EB!{*tUwTxm1%#~&F" j;[sPVv|hqI6X: Q743fN^SRyW<]AOn@2Y8`+># Configuration file for GLiv %s # Option names are case sensitive. # Option values are case insensitive. %.3f%% (%.3f deg%s)%s is not a GLiv collection%s not while loading an image %s while loading %s %s: image cannot be compressed twice %s: unknown decompressed extension %s: unknown extension %s: unknown extension (none) +/=/- : Zoom in/in/outAbout...Action on every imageAction on the current imageActionsAlpha 1Alpha 2Alpha checksAlpha checks in the backgroundAutomatic window resizingBackgroundBottom leftBottom rightBrowserBuild images menus at startupBuild mipmapsC-down : Rotate by -90 degreesC-left : Rotate by +0.1 degreeC-right: Rotate by -0.1 degreeC-up : Rotate by +90 degreesCannot find an appropriate visual, try glxinfo(1)Cannot load %sCannot parse geometry: %s Cannot set the OpenGL capabilityCannot sort and shuffle at the same time Cannot use a thread CenterCheck for OpenGL errorsChoose a collection to loadChoose a file to save the collectionClear historyCommandCommand line flags should be on or off, not %s CommandsConfiguration fileConfirm before quittingControls...Current image directory...Delay before hiding the cursorDelay before hiding the cursor 0: feature disabledDelay between imagesDelay between images during the slide showDelete : Delete the current fileDirectoriesDisplay info about the imageDisplay scrollbarsDisplay the menu barDitheringDo not ask againDo you really want to delete this file? %s Do you really want to quit GLiv?Draw a rectangle with the third button and gliv will zoom in it.ESC, q : QuitEdit ActionEdit actions...Elapsed timeEnable OpenGL filteringEnable transitionsEnable transitions between imagesEnter an image number:Failed to create a new processFatal error: GL_MAX_TEXTURE_SIZE = %d FileFirst imageFit heightFit widthFullscreen modeGL_MAX_TEXTURE_SIZE must be >= 64GLiv about boxGLiv helpGLiv in fullscreenGLiv versionGLiv won't write a collection to a terminal GLiv: Select a folder to openGLiv: Select files to openHelpHide the cursorHistory lengthHistory length 0: feature disabled -1: infiniteHorizontal flipIgnoring initial geometry (%s) as fullscreen mode is requested Image fit windowImagesImages menusIn the command field, printf like substitutions can be used: %d Path to the current file directory %b Current file name %f Path to the current file %% A litteral % Initial image positionInserting files...InterfaceKeep only one image in memoryKeep transfo between imagesKeep transformations when switching imagesLast imageLast/First image notice timeLoad collection...Load next imageLoad previous imageLoad the Nth image...Loading collection: %sLoading errorsM : Maximize the image to the windowMake mnemonics for images menusMake the slide show loopMaximize small imageMaximize small imagesMaximum framerateMaximum framerate -1: infiniteMenu bar enabledMoveMove downMove leftMove rightMove upNONENameNo image foundNo image loadedNo images to put in a collection Open directory...Open in GimpOpen thumbnails browser...Open...OpenGL error in %s() at %s:%d: %sOpenGL not supportedOptionsOptions will be savedOptions...Overwrite "%s" ?Parse error in configuration file: %s Pause : Start/stop the slide showQuitRebuild images menusRebuild this menuRebuilding:Recursive directory traversalRedoReload the current imageRemaining timeRemove the current fileResetRotate +0.1 degRotate +90 degRotate -0.1 degRotate -90 degRotationSame as previousSave collection...Save options nowSave options when quittingSaving collection: %sScale down large imageScale down large imagesScrollbars enabledSee http://guichaz.free.fr/gliv for updates.Set positionSet this window as serverShow thumbnails in images menusShuffle images listSlide showSort images listSpace and Backspace act like n and p.Standard outputStart in full screen modeStart the slide showStart with the slide showStatus bar enabledStop rebuilding the images menuStop the slide showThe action '%s' terminated with a non-null return code: %dThe action name '%s' is already usedThe first mouse button and the arrow keys will move the image unless the Control key is pressed. In which case the image will be rotated around the window center.The following errors occurred while loading the next image: This configuration file has been read: %sThis configuration file will be written: %sThumbnail heightThumbnail widthThumbnails browserToggle Alpha checksToggle Fullscreen modeToggle Menu BarToggle ScrollbarsToggle Status BarToggle floating windowsTop leftTop rightTotal timeTransformationsTransition durationTransitions obey the maximum framerate parameter in the Transformations tabTry to load every fileUndoUnknown OpenGL error (%d)Unknown option in configuration file: %s Use 'gliv --help' to show command line options. A quick help is accessible by typing 'h' or using the menu.Vertical flipWrong URI format: %d (instead of 8)Wrong URI length: %dYou can also zoom by dragging the mouse vertically while holding Shift and the first button.Zoom centered on pointerZoom inZoom outa : Toggle display of the alpha checksalpha channelalpha1 tile: blue channelalpha1 tile: green channelalpha1 tile: red channelalpha2 tile: blue channelalpha2 tile: green channelalpha2 tile: red channelb : Toggle display of the menu barbackground: blue channelbackground: green channelbackground: red channelc : Clear the historyd : Hide the cursordirectorydirectory/filee : Vertical flipelementsf : Full-screen/windowfilefpsg : Display the image selectorglXMakeCurrent() failedh : Toggle display of the help boxi : Toggle display of the info barl : Reduce the image to the windowloadingm : Make the image fit the windowmillisecondsn/p : Next/previous imageo : Display the open dialogpixelsr : Reset position and sizes : Toggle display of the scrollbarssecondst : Display the options dialogtransition from `%s' to `%s'u : Undow : Toggle display of floating windowswidth x heighty : Redoz : Horizontal flipzoom% (angle)Project-Id-Version: gliv 1.9.6 Report-Msgid-Bugs-To: guichaz@gmail.com POT-Creation-Date: 2010-04-19 00:52+0200 PO-Revision-Date: 2009-10-26 23:49+0200 Last-Translator: Jorma Karvonen Language-Team: Finnish MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); # Asetustiedosto ohjelmalle GLiv %s # Valitsinnimet ovat kirjainkoosta riippuvia. # Valitsinarvot ovat kirjainkoosta riippuvia. %.3f%% (%.3f aste%s)%s ei ole GLiv-kokoelma%s ei kun kuvaa ladataan %s ladattaessa tiedostoa %s %s: kuvaa ei voi tiivistää kahdesti %s: tuntematon tiivistyksen purkauslaajennus %s: tuntematon laajennus %s: tuntematon laajennus (ei mitään) +/=/- : Rajaa/rajaa/avarraOhjelmasta...Toiminto jokaiselle kuvalleToiminto nykyiselle kuvalleToiminnotAlfa 1Alfa 2AlfatarkistuksetAlfa-tarkistukset taustallaIkkunakoon automaattinen muuntaminenTaustaVasen alakulmaOikea alakulmaSelainRakenna kuvat-valikot käynnistyksen yhteydessäRakennetaan mipmap-tiedostojaC-down : Kierrä -90 asteellaC-left : Kierrä +0.1 asteellaC-right: Kierrä -0.1 asteellaC-up : Kierrä +90 asteellaEi voida löytää sopivaa visuaalisuutta, yritä glxinfo(1)Ei voi ladata tiedostoa %sEi voi jäsentää geometriaa: %s Ei voida asettaa OpenGL-kykyäEi voi lajitella ja sekoittaa samanaikaisesti Ei voi käyttää säiettä KeskitäTarkista OpenGL-virheetValitse ladattava kokoelmaValitse tiedosto, johon kokoelma tallennetaanTyhjennä historiaKomentoKomentoriviliput pitäisi olla päällä tai pois päältä, ei %s KomennotAsetustiedostoVahvista ennen poistumistaOhjaimet...Nykyinen kuvahakemisto...Viive ennen kohdistimen piilotustaViive ennen kohdistimen piiloitusta 0: ominaisuus ei ole käytössäViive kuvien välilläKuvien välinen viive dia-esityksessäDelete : Poista nykyinen tiedostoHakemistotNäytä tietoja kuvastaNäytä vierityspalkitNäytä valikkopalkkiSekoitussävytysÄlä kysy uudelleenHaluatko todella poistaa tämän tiedoston? %s Haluatko todella poistua GLiv-ohjelmasta?Piirrä neliö kolmannella painikkeella ja gliv rajautuu siihen.ESC, q : PoistuMuokkaa toimintoaMuokkaa toimintoja...Kulunut aikaOta käyttöön OpenGL-suodatusOta käyttöön siirtymätOta käyttöön siirtymiset kuvien välilläKirjoita kuvan numero:Uuden prosessin luominen epäonnistuiVakava virhe: GL_MAX_TEXTURE_SIZE = %d TiedostoEnsimmäinen kuvaSovita korkeusSovita leveysKokoruututilaGL_MAX_TEXTURE_SIZE on oltava >= 64GLiv-ohjelmastaGLiv-opasteGLiv kokoruutukoossaGLiv-versioGLiv ei kirjoittaa kokoelmaa pääteikkunaan GLiv: Valitse avattava kansioGLiv: Valitse avattavat tiedostotOpastePiilota kohdistinHistoriapituusHistoriapituus 0: ominaisuus ei ole käytössä -1: päättymätönKäännä ympäri vaakasuunnassaEi välitetä alkuperäisestä geometriasta (%s) koska on pyydetty kokoruututilaa Kuvan sovitusikkunaKuvatKuvat-valikotKomentokentässä, printf-kaltaisia korvauksia käytetään: %d Polku nykyiseen tiedostohakemistoon %b Nykyinen tiedostonimi %f Polku nykyiseen tiedostoon %% Literaali % Alkuperäinen kuvan paikkaLisätään tiedostoja...RajapintaPidä vain yksi kuva muistissaSäilytä siirtymä kuvien välilläSäilytä muodonmuutokset kun vaihdetaan kuviaViimeinen kuvaViimeisen/Ensimmäisen kuvan havaintoaikaLataa kokoelma...Lataa seuraava kuvaLataa edellinen kuvaLataa N:s tiedosto...Ladataan kokoelmaa: %sLatausvirheetM : Maksimoi kuva ikkunaanTee muistikkaat kuvat-valikoilleTee dia-esityksesta silmukkaMaksimoi pieni kuvaMaksimoi pienet kuvatMaksimikehysnopeusMaksimi kehysnopeus -1: päättymätönValikkopalkki käytössäSiirräSiirrä alasSiirrä vasemmalleSiirrä oikealleSiirrä ylösEI MITÄÄNNimiKuvaa ei löytynytEi kuvaa ladattuEi kuvia lisättävänä kokoelmaan Avaa hakemisto...Avaa GIMP-ohjelmassaAvaa pienoiskuvaselain...Avaa...OpenGL-virhe funktiossa %s() tiedostorivillä %s:%d: %sOpenGL ei ole tuettuValitsimetValitsimet tallennetaanValitsimet...Korvataanko ”%s” ?Jäsenninvirhe asetustiedostossa: %s Pause: : Aloita/lopeta dia-esitysPoistuRakenna uudelleen kuvavalikotRakenna tämä valikko uudelleenRakennetaan uudelleen:Rekursiivinen siirtyminen päähakemistoonToistaLataa nykyinen kuva uudelleenJäljellä oleva aikaPoista nykyinen tiedostoPalauta alkuasetuksetKierrä +0,1 astettaKierrä +90 astettaKierrä -0,1 astettaKierrä -90 astettaKierräSama kuin edellinenTallenna kokoelma...Tallenna valitsimet nytTallenna valitsimet poistuttaessaTallennetaan kokoelmaa: %sSkaalaa kookas kuva pienemmäksiSkaalaa kuvat pienemmäksiVierintäpalkit käytössäHae päivityksiä osoitteesta http://guichaz.free.fr/gliv .Aseta paikkaAseta tämä ikkuna palvelimeksiNäytä pienoiskuvat kuvat-valikoissaSekoita kuvien luetteloDia-esitysLajittele kuvien luetteloVälilyöntinäppäin ja peruutusnäppäin toimivat kuin n ja pVakiotulosteAloita kokoruututilassaAloita dia-esitysAloita dia-esitysTilapalkki käytössäPysäytä kuvavalikon uudelleenrakentaminenPysäytä dia-esitysToiminto ”%s” päättyi paluukoodiin, joka ei ollut ”null”: %dToimintonimi ”%s” on jo käytettyEnsimmäinen hiiren painike ja nuolinäppäimet siirtävät kuvaa jos Control-painike ei ole painettu. Jos Control-painike on painettu, kuva pyörii ikkunan keskipisteen ympäri.Seuraavat virheet tapahtuivat seuraavaa kuvaa ladattaessa: Tämä asetustiedosto on luettu: %sTämä asetustiedosto kirjoitetaan: %sPienoiskuvan korkeusPienoiskuvan leveysPienoiskuvaselainVaihda alfa-tarkistuksetVaihda kokoruututilaVaihda valikkopalkkiVaihda vierintäpalkitVaihda tilapalkkiVaihda kelluvia ikkunoitaVasen yläkulmaOikea yläkulmaKokonaisaikaMuodonmuutoksetSiirtymän kestoSiirtymät tottelevat muodonmuutosten välilehden maksimikehysnopeusparametriäYritä ladata kaikki tiedostotPeruTuntematon OpenGL-virhe (%d)Tuntematon valitsin asetustiedostossa: %s Käytä ”gliv --help” näyttämään komentorivivalitsimet. Pikaopaste on saatavilla kirjoittamalla ”h” tai käyttämällä valikkoa.Käännä ympäri pystysuunnassaVäärä URI-muoto: %d (eikä 8)Väärä URI-pituus: %dVoit myös rajata vetämällä hiirellä samalla kun pidät vaihtopainikkeen ja ensimmäisen painikkeen alhaalla.Rajaa keskitettynä osoittimen kohdaltaRajaaAvarraa : Vaihda alfa-tarkistusten näyttöäalfa-kanavaalfa1-laatta: sininen kanavaalfa1-laatta: vihreä kanavaalfa1-laatta: punainen kanavaalpha2-laatta: sininen kanavaalfa2-laatta: vihreä kanavaalfa2-laatta: punainen kanavab : Vaihda valikkopalkin näyttöätausta: sininen kanavatausta: vihreä kanavatausta: punainen kanavac : Tyhjennä historiad : Piilota kohdistinhakemistohakemisto/tiedostoe : Käännä ympäri pystysuunnassaelementitf : Kokoruutu/ikkunatiedostofpsg : Näytä kuvanvalitsinglXMakeCurrent() epäonnistuih : Vaihda opasteikkunan näyttöäi : Vaihda tietopalkin näyttöäl : Pienennä kuva ikkunaanladataanm : Sovita kuva ikkunaanmillisekuntian/p : Seuraava/edellinen kuvao : Näytä avaa-valintaikkunapikseliär : Aseta sijainti ja koko alkutilaans : Vaihda vierintäpalkkien näyttöäsekuntiat : Näytä valitsimet-valintaikkunasiirto kohteesta ”%s” kohteeseen ”%s”u : Peruw : Vaihda kelluvan ikkunan näyttöäleveys x korkeusy : Toistaz : Käännä ympäri vaakasuunnassarajaus% (kulma)gliv-1.9.7/po/bg.gmo0000644000076400007640000005512511465576131011472 0ustar ggL3|H"I#l'3Qir    &Dc1)+@G_${ / &A2`*  0E+V @   !.Pg& !   ,)Vt/  */ Ze)?Xm    !< N[!c " #/MRkz  / E \ t ,   !%!7!G!a!v!!!!:!$"7"<")#+A#m#~#######$ $ $#$3$J$O$ki$ $#$%\%y%%%+% %'%&&8&P&k& &&&&&&&#&''''F''n''&' '' ' ()1([(#c(( (+(( (( )z")#*b*j$++5+B+)',1Q,<,,,7,=(-f- w- -!--G-..#8.S\.3.4.4/3N/[/-/c 0Cp00.00P1,i11{1#242?S2&242E2y5383U38>4 w4B4(464,%5QR5E55-{6,636 7.&7:U7'7E76758!>8`8Bw88-889M*9!x9R9 9*9X#:|:%;(';P;g;6;.<'< =P"=_s=R='&>`N>)>C>C?5a?*?*?L?>:@Uy@C@;A3OAPA6A B "B /B$KJcK&K]K@3LTtLM5IN6N$N$N9O:O"QO,tO&OOO#P,P@P3]P P0PP)Q8Q( R5RNR!HSjSSSSTSGT\TrTGT3T U U3!UUUfUUU<UDU(.V\WVNVW1WHWA_W5WBWFXaX1pX*X]XU+Y#YlY.ZAZ!U{G&lD+^fxV|Y>/ 4ZbiP7$o3z=q5mH u8_6n%\C0)w' J@9pI2] sgk#F:,S L.;}R?hAae K[~-"dcNBTOQ<MXW`(Et*jyrv1# Configuration file for GLiv %s # Option names are case sensitive. # Option values are case insensitive. %.3f%% (%.3f deg%s)%s is not a GLiv collection%s not while loading an image %s while loading %s %s: unknown extension %s: unknown extension (none) +/=/- : Zoom in/in/outAbout...Action on every imageAction on the current imageActionsAlpha 1Alpha 2Alpha checksAlpha checks in the backgroundAutomatic window resizingBackgroundBottom leftBottom rightBuild images menus at startupC-down : Rotate by -90 degreesC-left : Rotate by +0.1 degreeC-right: Rotate by -0.1 degreeC-up : Rotate by +90 degreesCannot find an appropriate visual, try glxinfo(1)Cannot load %sCannot sort and shuffle at the same time Cannot use a thread CenterCheck for OpenGL errorsChoose a collection to loadChoose a file to save the collectionClear historyCommandCommand line flags should be on or off, not %s CommandsConfiguration fileConfirm before quittingControls...Current image directory...Delay before hiding the cursorDelay before hiding the cursor 0: feature disabledDelay between imagesDelay between images during the slide showDelete : Delete the current fileDirectoriesDisplay info about the imageDisplay scrollbarsDisplay the menu barDo not ask againDo you really want to delete this file? %s Do you really want to quit GLiv?Draw a rectangle with the third button and gliv will zoom in it.ESC, q : QuitEdit ActionEdit actions...Elapsed timeEnable transitionsEnable transitions between imagesEnter an image number:Failed to create a new processFatal error: GL_MAX_TEXTURE_SIZE = %d FileFirst imageFullscreen modeGL_MAX_TEXTURE_SIZE must be >= 64GLiv about boxGLiv helpGLiv in fullscreenGLiv versionGLiv won't write a collection to a terminal GLiv: Select a folder to openGLiv: Select files to openHelpHide the cursorHistory lengthHistory length 0: feature disabled -1: infiniteHorizontal flipImage fit windowImagesImages menusIn the command field, printf like substitutions can be used: %d Path to the current file directory %b Current file name %f Path to the current file %% A litteral % Initial image positionInserting files...InterfaceKeep only one image in memoryKeep transfo between imagesKeep transformations when switching imagesLast imageLast/First image notice timeLoad collection...Load next imageLoad previous imageLoad the Nth image...Loading collection: %sLoading errorsM : Maximize the image to the windowMake mnemonics for images menusMake the slide show loopMaximize small imageMaximize small imagesMaximum framerateMaximum framerate -1: infiniteMenu bar enabledMoveMove downMove leftMove rightMove upNONENameNo image foundNo image loadedNo images to put in a collection Open directory...Open in GimpOpen...OpenGL error in %s() at %s:%d: %sOpenGL not supportedOptionsOptions will be savedOptions...Overwrite "%s" ?Pause : Start/stop the slide showQuitRebuild images menusRebuild this menuRebuilding:Recursive directory traversalRedoReload the current imageRemaining timeRemove the current fileResetRotate +0.1 degRotate +90 degRotate -0.1 degRotate -90 degRotationSame as previousSave collection...Save options nowSave options when quittingSaving collection: %sScale down large imageScale down large imagesScrollbars enabledSee http://guichaz.free.fr/gliv for updates.Set positionShow thumbnails in images menusShuffle images listSlide showSort images listSpace and Backspace act like n and p.Standard outputStart in full screen modeStart the slide showStart with the slide showStatus bar enabledStop rebuilding the images menuStop the slide showThe action '%s' terminated with a non-null return code: %dThe action name '%s' is already usedThe first mouse button and the arrow keys will move the image unless the Control key is pressed. In which case the image will be rotated around the window center.The following errors occurred while loading the next image: This configuration file has been read: %sThis configuration file will be written: %sThumbnail heightThumbnail widthToggle Alpha checksToggle Fullscreen modeToggle Menu BarToggle ScrollbarsToggle Status BarToggle floating windowsTop leftTop rightTotal timeTransformationsTry to load every fileUndoUnknown OpenGL error (%d)Use 'gliv --help' to show command line options. A quick help is accessible by typing 'h' or using the menu.Vertical flipWrong URI format: %d (instead of 8)Wrong URI length: %dYou can also zoom by dragging the mouse vertically while holding Shift and the first button.Zoom centered on pointerZoom inZoom outa : Toggle display of the alpha checksalpha channelb : Toggle display of the menu barbackground: blue channelbackground: green channelbackground: red channelc : Clear the historyd : Hide the cursordirectorydirectory/filee : Vertical flipelementsf : Full-screen/windowfilefpsg : Display the image selectorglXMakeCurrent() failedh : Toggle display of the help boxi : Toggle display of the info barl : Reduce the image to the windowloadingm : Make the image fit the windowmillisecondsn/p : Next/previous imageo : Display the open dialogr : Reset position and sizes : Toggle display of the scrollbarssecondst : Display the options dialogtransition from `%s' to `%s'u : Undow : Toggle display of floating windowswidth x heighty : Redoz : Horizontal flipzoom% (angle)Project-Id-Version: gliv 1.9.4 Report-Msgid-Bugs-To: guichaz@gmail.com POT-Creation-Date: 2010-04-19 00:52+0200 PO-Revision-Date: 2005-06-19 16:01+0300 Last-Translator: Dimitur Kirov Language-Team: Bulgarian MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8-bit Plural-Forms: nplurals=2; plural=n != 1; # Настройки на GLiv %s # Има значение главни/малки в имената на настройките. # Има значение главни/малки в стойностите на настройките. %.3f%% (%.3f градуса%s)%s не е разпознат като каталогНе %s при зареждането на изображение %s при зареждането на %s %s е с непознато разширение %s е с непознато разширение (няма) +/=/- : МащабиранеОтносно...Действие за всяко изображениеДействие за текущото изображениеДействияАлфа 1Алфа 2Прозрачни областиПрозрачен фонАвтоматично оразмеряване на прозорецаФонв долния ляв ъгълв долния десен ъгълСъставяне на меню изображения при стартиранеC-down : Завъртане на -90 градусаC-left : Завъртане на +0.1 градусаC-right: Завъртане на -0.1 градусаC-up : Завъртане на +90 градусаНе е намерен подходящ модул, обърнете се към glxinfo(1)%s не може да бъде зареденНе е възможно едновременно да се подрежда и разбърква Няма възможност да се използва нишкa центрираноПроверка за грешки на OpenGLПосочете каталогИзберете файл, в който да се запази каталогаИзчистване на историятаДействиеФлаговете на командния ред трябва да бъдат „on“ или „off“, а не „%s“ ДействияФайл с настройкиПотвърждаване изход от програматаКратко ръководство...Текуща папка с изображения...Забавяне преди да се скрие показалецаЗабавяне преди да се скрие показалеца 0: показалеца да не се скриваИзчакване между изображениятаЗабавяне показването на следващ при прожекцияDelete : Изтриване на текущия файлПапкиПоказване на данни за изображениетоПоказване на плъзгачиПоказване на лентата с менютаБез това предупреждениеНаистина ли желаете да изтриете този файл? %s Наистина ли желаете да излезете от GLiv?Начертайте правоъгълник с десния бутон на мишката и gliv ще мащабира очертаното.ESC, q : Изход от програматаРедактиране на действиеРедактиране на действията...Изминало времеАктивиране на преливанияПреливания между изображениятаНомер на изображение:Неуспех при създаването на нов процесФатална грешка: GL_MAX_TEXTURE_SIZE = %d ФайлПърво изображениеНа цял екранGL_MAX_TEXTURE_SIZE трабва да е по-голямо от 64Относно GLivКратко ръководство за GLivGLiv на цял екранGLiv версияКаталогът няма да бъде записан в терминал GLiv: Посочете папкаGLiv: Посочете файлове, които да бъдат отворениПомощСкриване на показалецаМаксимален брой записи в историята на променитеБрой промени в историята 0: да не се запазват промени -1: неограничен бройВертикално обръщанеВместване в прозорецаИзображенияМеню изображенияВ полето действия могат да бъдат използвани стандартни шаблони: %d Пълен път на текущата директория %b Име на текущия файл %f Пълен път на текущия файл %% Вместо символа % Положение на изображениеВмъкване на файлове...ИзгледСамо текущото изображение да бъде в паметтаСъщите преобразувания и при следващото изображенияСъщите трансформации в следващи изображенияПоследно изображениеСъобщението за първо/последно изображение е активноЗареждане на каталог...Зареждане на следващото изображениеЗареждане на предишното изображениеЗареждане на N-то изображениеЗареждане на каталог: %sГрешки при зарежданетоM : Вместване в прозореца, ако е по-малкоБързи клавиши за меню изображенияПовтаряне на прожекцията, когато стигне в краяВместване в прозореца, ако е по-малкоМащабиране на малки изображенияМаксимална честота на кадриМаксимална честота на кадри -1: неограниченаПоказване на лентата с менютаПреместванеНадолуНалявоНадясноНагоребезИмеНяма разпознато изображениеНяма заредено изображениеЛипсват изображения за каталога Отваряне на папка...Отваряне в GimpОтваряне...Грешка в OpenGL в %s() на %s:%d: %sЛипсва подръжка на OpenGLИзгледНастройките ще бъдат запазениНастройки...Да се презапише ли „%s“?Pause : Започване/Спиране на прожекцияСпиране на програматаСъставяне на меню изображенияСъставяне на това менюСъставяне:Рекурсивно преминаване през всички папки ПовтарянеПрезареждане на текущото изображениеОставащо времеИзтриване на текущия файлСтандартно състояниеЗавъртане на +0.1 градусаЗавъртане на +90 градусаЗавъртане на -0.1 градусаЗавъртане на -90 градусаЗавъртанеkато предходното изображениеЗапазване на каталог...Запазване на настройкитеЗапазване на настройките при изход от програматаЗапазване на каталог: %sВместване в прозореца, ако е по-голямоМащабиране на големи изображенияПоказване на плъзгачитеПосетете http://guichaz.free.fr/gliv за нови версии.ПозициониранеПоказване на прегледи в менюто с изображенияРазбъркване на списъка с изображенияПрожекцияПодреждане на списъка с изображения(„Шпация“, „Backspace“) действат също като (n,p)Стандартен изходСтартиране на програмата на цял екранНачало на прожекцияСтартиране в режим на прожекцияПоказване на лентата за състояниеСпиране съставянето на меню изображенияСпиране на прожекцияДействието „%s“ приключи с ненулев код на грешка: %dИмето на действие „%s“ вече е заетоЛевият бутон на мишката, както и стрелките от клавиатурата преместват изображението. Когато едновременно е натиснат и клавиша "Control" изображението се завърта около центъра на прозореца.При зареждане на следващото изображение възникнаха следните грешки: Настройките са заредени от: %sНастройките ще се запазят в: %sВисочина на прегледШирочина на прегледПоказване на прозрачни областиНа цял екранЛентата с менютатаПоказване на плъзгачитеЛента за състояниетоОтделяеми менютав горния ляв ъгълв горния десен ъгълОбщо времеТрансформиранеЗареждане на всички файловеОтмянаНеизвестна грешка в OpenGL (%d)Използвайте „gliv --help“ за списъка с флагове на командния ред С натискане на клавиша „h“ се зарежда кратко ръководство.Хоризонтално обръщанеНевалиден URI формат: %d (вместо 8)Грешна дължина на URI: %dМоже да мащабирате като задържите клавиша „shift“ и предвижвате мишката по вертикал при натиснат ляв бутон.Мащабиране спрямо позицията на показалецаМащаб увеличаванеМащаб намаляванеa : Скриване/показване на прозрачни областиалфа каналb : Скриване/показване на лентата с менютатафон: blue channelфон: green channelфон: red channelc : Изчистване на историята с промениd : Скриване на показалецапапкапапка/файле : Хоризонтално обръщанеелементиf : На цял екранфайлкадри в секундаg : Избиране на N-то изображениеНеуспех при изпълнението на glXMakeCurrent()h : Това ръководствоi : Скриване/показване на лентата за състояниетоl : Вместване в прозореца, ако е по-голямозарежданеm : Вместване в прозорецамилисекундиn/p : Следващо/предишно изображениеo : Отваряне на изображениеr : Първоначални размери и позицияs : Скриване/показване на плъзгачитесекундиt : Прозорец за настройкипреход от „%s“ към „%s“u : Отмяна (възтановяване на предходно състояние)w : Скриване/показване на отделяемите менюташирочина x височинаy : Повтаряне (връщане на състояние преди възстановяване)z : Вертикално обръщанемащаб% (angle)gliv-1.9.7/po/sk.po0000644000076400007640000006553711465576131011363 0ustar gg# Slovak translation of gliv. # Copyright (C) 2004 Free Software Foundation, Inc. # This file is distributed under the same license as the gliv package. # Andrej Kacian , 2004. msgid "" msgstr "" "Project-Id-Version: gliv 1.8\n" "Report-Msgid-Bugs-To: guichaz@gmail.com\n" "POT-Creation-Date: 2010-04-19 00:52+0200\n" "PO-Revision-Date: 2004-07-26 01:24+0200\n" "Last-Translator: Andrej Kacian \n" "Language-Team: Slovak \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: src/actions.c:121 msgid "Failed to create a new process" msgstr "" #: src/actions.c:126 #, c-format msgid "The action '%s' terminated with a non-null return code: %d" msgstr "" #: src/actions.c:230 msgid "Open in Gimp" msgstr "" #: src/actions.c:333 #, c-format msgid "The action name '%s' is already used" msgstr "" #: src/actions.c:463 src/glade_actions.c:165 src/tree_browser.c:211 msgid "Name" msgstr "" #: src/actions.c:464 src/glade_actions.c:172 #, fuzzy msgid "Command" msgstr "Príkazy" #: src/collection.c:152 msgid "Choose a file to save the collection" msgstr "Zvoľte súbor kam uložiť kolekciu" #: src/collection.c:159 #, c-format msgid "Overwrite \"%s\" ?" msgstr "" #: src/collection.c:238 msgid "Elapsed time" msgstr "Uplynulý čas" #: src/collection.c:239 msgid "Remaining time" msgstr "Zostávajúci čas" #: src/collection.c:240 msgid "Total time" msgstr "Celkový čas" #: src/collection.c:247 src/collection.c:637 #, c-format msgid "Saving collection: %s" msgstr "Ukladám kolekciu: %s" #: src/collection.c:250 src/collection.c:1044 #, fuzzy, c-format msgid "Loading collection: %s" msgstr "Ukladám kolekciu: %s" #: src/collection.c:366 msgid "Inserting files..." msgstr "Vkladám súbory..." #: src/collection.c:615 #, fuzzy msgid "No images to put in a collection\n" msgstr "%s nie je kolekcia GLiv" #: src/collection.c:622 msgid "GLiv won't write a collection to a terminal\n" msgstr "" #: src/collection.c:643 msgid "Standard output" msgstr "" #: src/collection.c:1064 #, c-format msgid "%s is not a GLiv collection" msgstr "%s nie je kolekcia GLiv" #: src/collection.c:1077 msgid "Choose a collection to load" msgstr "Zvoľte ktorú kolekciu nahrať" #: src/files_list.c:499 #, c-format msgid "" "Do you really want to delete this file?\n" "%s\n" msgstr "" "Naozaj chcete zmazať tento súbor?\n" "%s\n" #: src/files_list.c:523 #, fuzzy msgid "directory/file" msgstr "Priečinky" #: src/gl_widget.c:130 #, c-format msgid "Wrong URI format: %d (instead of 8)" msgstr "Nesprávny formát URI: %d (namiesto 8)" #: src/gl_widget.c:135 #, c-format msgid "Wrong URI length: %d" msgstr "Nesprávna dĺžka URI: %d" #: src/gl_widget.c:227 #, c-format msgid "Fatal error: GL_MAX_TEXTURE_SIZE = %d\n" msgstr "Fatálna chyba: GL_MAX_TEXTURE_SIZE = %d\n" #: src/gl_widget.c:231 msgid "GL_MAX_TEXTURE_SIZE must be >= 64" msgstr "GL_MAX_TEXTURE_SIZE musí byť viac ako 64" #: src/gl_widget.c:257 msgid "glXMakeCurrent() failed" msgstr "glXMakeCurrent()·zlyhalo" #: src/gl_widget.c:310 msgid "OpenGL not supported" msgstr "Chýba podpora OpenGL" #: src/gl_widget.c:321 msgid "Cannot find an appropriate visual, try glxinfo(1)" msgstr "Nemôžem nájsť vhodný visual, skúste glxinfo(1)" #: src/gl_widget.c:328 msgid "Cannot set the OpenGL capability" msgstr "Nemôžem začať pracovať s OpenGL" #: src/gl_widget.c:366 #, c-format msgid "Unknown OpenGL error (%d)" msgstr "Neznáma OpenGL chyba (%d)" #: src/gl_widget.c:370 #, c-format msgid "" "OpenGL error in %s() at %s:%d:\n" "%s" msgstr "" #: src/glade_actions.c:43 #, fuzzy msgid "Actions" msgstr "Nastavenia" #: src/glade_actions.c:149 msgid "Edit Action" msgstr "" #: src/glade_actions.c:206 msgid "" "In the command field, printf like substitutions can be used:\n" "%d\t\tPath to the current file directory\n" "%b\t\tCurrent file name\n" "%f\t\tPath to the current file\n" "%%\t\tA litteral %\n" msgstr "" #: src/glade_image_nr.c:45 src/menus.c:417 #, fuzzy msgid "Load the Nth image..." msgstr "Načítať ďalší obrázok" #: src/glade_image_nr.c:65 msgid "Enter an image number:" msgstr "" #: src/glade_image_nr.c:81 #, fuzzy msgid "directory" msgstr "Priečinky" #: src/glade_image_nr.c:87 #, fuzzy msgid "file" msgstr "Súbor" #: src/glade_options.c:138 src/menus.c:503 msgid "Options" msgstr "Nastavenia" #: src/glade_options.c:174 #, fuzzy msgid "Save options now" msgstr "Uložiť nastavenia v ~/.glivrc" #: src/glade_options.c:178 src/rcfile.c:116 #, fuzzy msgid "Save options when quitting" msgstr "Uložiť nastavenia v ~/.glivrc" #: src/glade_options.c:193 #, fuzzy msgid "Configuration file" msgstr "" "# Konfiguračný súbor GLiv %s\n" "\n" #: src/glade_options.c:215 msgid "Scrollbars enabled" msgstr "Posúvacie lišty zapnuté" #: src/glade_options.c:222 msgid "Fullscreen mode" msgstr "Celoobrazovkový režim" #: src/glade_options.c:229 msgid "Menu bar enabled" msgstr "Ponuková lišta zapnutá" #: src/glade_options.c:236 msgid "Status bar enabled" msgstr "Stavový riadok zapnutý" #: src/glade_options.c:243 src/rcfile.c:115 msgid "Confirm before quitting" msgstr "" #: src/glade_options.c:250 src/rcfile.c:114 msgid "Automatic window resizing" msgstr "Automatická zmena veľkosti okna" #: src/glade_options.c:261 msgid "" "Delay before hiding the cursor\n" "0: feature disabled" msgstr "" "Čas pred skrytím kurzora\n" "0: neskrývať" #: src/glade_options.c:274 src/glade_options.c:587 src/glade_options.c:634 msgid "milliseconds" msgstr "milisekúnd" #: src/glade_options.c:279 msgid "Interface" msgstr "Ovládanie" #: src/glade_options.c:290 src/rcfile.c:99 msgid "Scale down large images" msgstr "Zmenšiť veľké obrázky" #: src/glade_options.c:297 src/rcfile.c:98 msgid "Maximize small images" msgstr "Zväčšiť malé obrázky" #: src/glade_options.c:304 src/rcfile.c:108 msgid "Build mipmaps" msgstr "Vytvoriť mipmapy" #: src/glade_options.c:311 src/rcfile.c:105 msgid "Dithering" msgstr "Dithering" #: src/glade_options.c:318 src/rcfile.c:111 msgid "Keep only one image in memory" msgstr "Držať v pamäti len jeden obrázok" #: src/glade_options.c:325 src/rcfile.c:120 #, fuzzy msgid "Check for OpenGL errors" msgstr "Neznáma OpenGL chyba (%d)" #: src/glade_options.c:332 src/rcfile.c:121 msgid "Enable OpenGL filtering" msgstr "" #: src/glade_options.c:339 src/images_menus.c:330 src/images_menus.c:479 #: src/menus.c:521 msgid "Images" msgstr "Obrázky" #: src/glade_options.c:352 src/rcfile.c:107 msgid "Build images menus at startup" msgstr "Vytvoriť ponuku obrázkov pri štarte" #: src/glade_options.c:357 src/rcfile.c:109 msgid "Make mnemonics for images menus" msgstr "Používať klávesové skratky pre ponuku obrázkov" #: src/glade_options.c:362 src/rcfile.c:112 msgid "Show thumbnails in images menus" msgstr "Zobraziť náhľady v ponuke obrázkov" #: src/glade_options.c:371 src/glade_options.c:380 msgid "pixels" msgstr "pixelov" #: src/glade_options.c:389 src/rcfile.c:127 msgid "Thumbnail height" msgstr "Výška náhľadu" #: src/glade_options.c:418 src/rcfile.c:126 msgid "Thumbnail width" msgstr "Šírka náhľadu" #: src/glade_options.c:427 msgid "Images menus" msgstr "Ponuka obrázkov" #: src/glade_options.c:442 src/rcfile.c:103 msgid "Zoom centered on pointer" msgstr "Priblíženie centrované na kurzor" #: src/glade_options.c:447 #, fuzzy msgid "Keep transformations when switching images" msgstr "Doba zobrazenia jedného obrázku" #: src/glade_options.c:456 src/rcfile.c:130 msgid "Initial image position" msgstr "" #: src/glade_options.c:463 src/menus.c:460 msgid "Center" msgstr "" #: src/glade_options.c:464 src/menus.c:461 #, fuzzy msgid "Top left" msgstr "Posunúť doľava" #: src/glade_options.c:465 src/menus.c:462 #, fuzzy msgid "Top right" msgstr "Posunúť doprava" #: src/glade_options.c:466 src/menus.c:463 #, fuzzy msgid "Bottom left" msgstr "Posunúť doľava nahor" #: src/glade_options.c:467 src/menus.c:464 #, fuzzy msgid "Bottom right" msgstr "Posunúť doprava" #: src/glade_options.c:468 msgid "Same as previous" msgstr "" #: src/glade_options.c:495 msgid "" "History length\n" "0: feature disabled\n" "-1: infinite" msgstr "" "Dĺžka histórie\n" "0: nepoužívať\n" "-1: nekonečná" #: src/glade_options.c:503 msgid "" "Maximum framerate\n" "-1: infinite" msgstr "" "Maximálny počet snímkov za sekundu\n" "-1: nekonečný" #: src/glade_options.c:511 msgid "elements" msgstr "zložiek" #: src/glade_options.c:519 msgid "fps" msgstr "fps" #: src/glade_options.c:527 src/menus.c:447 msgid "Transformations" msgstr "Transformácie" #: src/glade_options.c:542 src/rcfile.c:113 msgid "Start with the slide show" msgstr "Začať s prezentáciou" #: src/glade_options.c:547 src/rcfile.c:110 msgid "Make the slide show loop" msgstr "Cykliť prezentáciu" #: src/glade_options.c:556 src/rcfile.c:128 msgid "Last/First image notice time" msgstr "" #: src/glade_options.c:563 msgid "Delay between images during the slide show" msgstr "Doba zobrazenia obrázkov počas prezentácie" #: src/glade_options.c:580 msgid "seconds" msgstr "sekúnd" #: src/glade_options.c:608 #, fuzzy msgid "Enable transitions between images" msgstr "Doba zobrazenia jedného obrázku" #: src/glade_options.c:621 src/rcfile.c:129 #, fuzzy msgid "Transition duration" msgstr "Transformácie" #: src/glade_options.c:639 msgid "" "Transitions obey the maximum framerate parameter in the Transformations tab" msgstr "" #: src/glade_options.c:644 msgid "Slide show" msgstr "Prezentácia" #: src/glade_options.c:657 msgid "Alpha 2" msgstr "Alfa 2" #: src/glade_options.c:664 msgid "Alpha 1" msgstr "Alfa 1" #: src/glade_options.c:671 src/glade_options.c:706 msgid "Background" msgstr "Pozadie" #: src/glade_options.c:692 msgid "Alpha checks" msgstr "Alfa overenie" #: src/help.c:102 src/help.c:109 msgid "GLiv help" msgstr "Nápoveda GLiv" #: src/help.c:163 msgid "GLiv about box" msgstr "O programe GLiv" #: src/help_text.c:15 msgid "ESC, q : Quit" msgstr "ESC, q : Ukončiť" #: src/help_text.c:18 msgid "f : Full-screen/window" msgstr "f : Celá obrazovka/okno" #: src/help_text.c:21 msgid "+/=/- : Zoom in/in/out" msgstr "+/=/- : Zväčšiť/zmenšiť" #: src/help_text.c:24 msgid "n/p : Next/previous image" msgstr "n/p : Ďalší/predošlý obrázok" #: src/help_text.c:27 #, fuzzy msgid "Pause : Start/stop the slide show" msgstr "Spustiť prezentáciu" #: src/help_text.c:30 msgid "l : Reduce the image to the window" msgstr "l······:·Zmenšiť obrázok do okna" #: src/help_text.c:33 msgid "M : Maximize the image to the window" msgstr "M : Zväčšiť obrázok do okna" #: src/help_text.c:36 msgid "m : Make the image fit the window" msgstr "m : Upraviť veľkosť obrázku podľa okna" #: src/help_text.c:39 msgid "r : Reset position and size" msgstr "r : Obnoviť pôvodnú pozíciu a veľkosť" #: src/help_text.c:42 msgid "b : Toggle display of the menu bar" msgstr "b : Zobraziť alebo skryť ponukovú lištu" #: src/help_text.c:45 msgid "i : Toggle display of the info bar" msgstr "i : Zobraziť alebo skryť lištu s údajmi" #: src/help_text.c:48 msgid "s : Toggle display of the scrollbars" msgstr "s : Zobraziť alebo skryť posúvacie lišty" #: src/help_text.c:51 msgid "a : Toggle display of the alpha checks" msgstr "a : Zobraziť alebo schovať alfa overenia" #: src/help_text.c:54 msgid "h : Toggle display of the help box" msgstr "h : Zobraziť alebo schovať nápovedu" #: src/help_text.c:57 #, fuzzy msgid "w : Toggle display of floating windows" msgstr "i : Zobraziť alebo skryť lištu s údajmi" #: src/help_text.c:60 msgid "o : Display the open dialog" msgstr "o : Zobraziť dialóg načítania" #: src/help_text.c:63 #, fuzzy msgid "g : Display the image selector" msgstr "o : Zobraziť dialóg načítania" #: src/help_text.c:66 msgid "t : Display the options dialog" msgstr "t : Zobraziť nastavenia" #: src/help_text.c:69 msgid "d : Hide the cursor" msgstr "d : Skryť kurzor" #: src/help_text.c:72 msgid "u : Undo" msgstr "u : Vrátiť späť" #: src/help_text.c:75 msgid "y : Redo" msgstr "y : Urobiť znovu" #: src/help_text.c:78 msgid "c : Clear the history" msgstr "c : Vyčistiť históriu" #: src/help_text.c:81 #, fuzzy msgid "Delete : Delete the current file" msgstr "x : Zmazať aktuálny súbor" #: src/help_text.c:84 msgid "C-up : Rotate by +90 degrees" msgstr "C-nahor : Otočiť o 90 stupňov doľava" #: src/help_text.c:87 msgid "C-down : Rotate by -90 degrees" msgstr "C-nadol : Otočiť o 90 stupňov doprava" #: src/help_text.c:90 msgid "C-left : Rotate by +0.1 degree" msgstr "C-doľava : Otočiť o desatinu stupňa doľava" #: src/help_text.c:93 msgid "C-right: Rotate by -0.1 degree" msgstr "C-doprava : Otočiť o desatinu stupňa doprava" #: src/help_text.c:96 msgid "z : Horizontal flip" msgstr "z : Preklopiť vodorovne" #: src/help_text.c:99 msgid "e : Vertical flip" msgstr "e : Preklopiť zvislo" #: src/help_text.c:104 msgid "" "The first mouse button and the arrow keys will move the image unless the " "Control key is pressed. In which case the image will be rotated around the " "window center." msgstr "" "Pomocou prvého tlačítka myši a kurzorových kláves pohybujete obrázkom, " "pokiaľ nie je stlačená klávesa Control. V tom prípade tak otáčate obrázkom " "okolo stredu okna." #: src/help_text.c:107 msgid "" "The mouse wheel zooms the image, and when you hold its button pressed at the " "same time it switches to the neighbouring image." msgstr "" #: src/help_text.c:110 msgid "" "You can also zoom by dragging the mouse vertically while holding Shift and " "the first button." msgstr "" "Taktiež môžete meniť veľkosť posúvaním myši vertikálne so zatlačenou " "klávesou Shift a prvým tlačítkom na myši." #: src/help_text.c:113 msgid "Space and Backspace act like n and p." msgstr "Medzera a Backspace fungujú ako n a p." #: src/help_text.c:116 msgid "Draw a rectangle with the third button and gliv will zoom in it." msgstr "" "Naznačte obdĺžnik pomocou tretieho tlačítka a gliv ho zväčší do celého okna." #: src/images_menus.c:82 msgid "Rebuilding:" msgstr "Znovu vytváram:" #: src/images_menus.c:209 src/images_menus.c:447 src/menus.c:517 msgid "Directories" msgstr "Priečinky" #: src/images_menus.c:296 msgid "Current image directory..." msgstr "" #: src/images_menus.c:363 src/menus.c:337 msgid "Rebuild this menu" msgstr "Znovu vytvoriť túto ponuku" #: src/images_menus.c:370 src/menus.c:338 #, fuzzy msgid "Open thumbnails browser..." msgstr "Šírka náhľadu" #: src/include/about.h:6 msgid "GLiv version" msgstr "Verzia GLiv" #: src/include/about.h:8 msgid "" "Use 'gliv --help' to show command line options.\n" "A quick help is accessible by typing 'h' or using the menu." msgstr "" "Zadajte 'gliv --help' pre možnosti príkazového riadku.\n" "Rýchla nápoveda je dostupná pomocou klávesy 'h', alebo v ponuke." #: src/include/about.h:10 #, fuzzy msgid "See http://guichaz.free.fr/gliv for updates." msgstr "Navštívte http://gliv.tuxfamily.org pre aktualizácie." #: src/loading.c:81 #, c-format msgid "%s not while loading an image\n" msgstr "%s nie počas načítavania obrázku\n" #: src/loading.c:83 #, c-format msgid "%s while loading %s\n" msgstr "%s počas načítavania %s\n" #: src/loading.c:102 msgid "alpha channel" msgstr "alfa kanál" #: src/loading.c:158 #, c-format msgid "%s: unknown decompressed extension\n" msgstr "%s: neznáma dekomprimovaná prípona\n" #: src/loading.c:165 #, c-format msgid "%s: image cannot be compressed twice\n" msgstr "%s: obrázok sa nedá komprimovať dvakrát\n" #: src/loading.c:188 #, c-format msgid "%s: unknown extension (none)\n" msgstr "%s: neznáma prípona (žiadna)\n" #: src/loading.c:197 #, c-format msgid "%s: unknown extension\n" msgstr "%s: neznáma prípona\n" #: src/loading.c:291 src/next_image.c:280 #, c-format msgid "Cannot load %s" msgstr "Nemôžem načítať %s" #: src/main.c:65 #, c-format msgid "Command line flags should be on or off, not %s\n" msgstr "Nastavenia príkazového riadku musia byť on alebo off, nie %s\n" #: src/main.c:181 msgid "Cannot sort and shuffle at the same time\n" msgstr "Nemôžem triediť a zamiešavať naraz\n" #: src/main.c:221 msgid "" "The --client and --client-clear command line options are mutually exclusive\n" msgstr "" #: src/main.c:253 src/main.c:256 msgid "Do not ask again" msgstr "" #: src/main.c:257 msgid "Options will be saved" msgstr "" #: src/main.c:279 msgid "Do you really want to quit GLiv?" msgstr "Naozaj chcete ukončiť GLiv?" #: src/main.c:337 src/next_image.c:542 msgid "No image found" msgstr "Nebol nájdený žiadny obrázok" #: src/menus.c:403 msgid "File" msgstr "Súbor" #: src/menus.c:404 msgid "Open..." msgstr "Otvoriť..." #: src/menus.c:405 #, fuzzy msgid "Open directory..." msgstr "Priečinky" #: src/menus.c:407 msgid "Load collection..." msgstr "Načítať kolekciu..." #: src/menus.c:408 msgid "Save collection..." msgstr "Uložiť kolekciu..." #: src/menus.c:410 msgid "Quit" msgstr "Ukončiť" #: src/menus.c:414 msgid "Commands" msgstr "Príkazy" #: src/menus.c:415 msgid "Load previous image" msgstr "Načítať predošlý obrázok" #: src/menus.c:416 msgid "Load next image" msgstr "Načítať ďalší obrázok" #: src/menus.c:418 #, fuzzy msgid "Load first image" msgstr "Načítať ďalší obrázok" #: src/menus.c:419 #, fuzzy msgid "Load last image" msgstr "Načítať ďalší obrázok" #: src/menus.c:420 #, fuzzy msgid "Load random image" msgstr "Načítať ďalší obrázok" #: src/menus.c:421 #, fuzzy msgid "Reload the current image" msgstr "Zmazať aktuálny súbor" #: src/menus.c:423 msgid "Sort images list" msgstr "Utriediť zoznam obrázkov" #: src/menus.c:424 msgid "Shuffle images list" msgstr "Zamiešať zoznam obrázkov" #: src/menus.c:426 msgid "Rebuild images menus" msgstr "Znovu vytvoriť ponuky obrázkov" #: src/menus.c:427 msgid "Stop rebuilding the images menu" msgstr "Prerušiť tvorbu ponuky obrázkov" #: src/menus.c:431 #, fuzzy msgid "Toggle floating windows" msgstr "Upraviť veľkosť podľa okna" #: src/menus.c:433 src/next_image.c:799 msgid "Start the slide show" msgstr "Spustiť prezentáciu" #: src/menus.c:437 msgid "Remove the current file" msgstr "Zmazať aktuálny súbor" #: src/menus.c:440 #, fuzzy msgid "Edit actions..." msgstr "Nastavenia..." #: src/menus.c:441 #, fuzzy msgid "Action on the current image" msgstr "Zmazať aktuálny súbor" #: src/menus.c:443 #, fuzzy msgid "Action on every image" msgstr "Pokúsiť sa načítať každý súbor" #: src/menus.c:448 msgid "Undo" msgstr "Vrátiť späť" #: src/menus.c:449 msgid "Redo" msgstr "Urobiť znovu" #: src/menus.c:450 msgid "Clear history" msgstr "Vyčistiť históriu" #: src/menus.c:452 #, fuzzy msgid "Move" msgstr "Posunúť nahor" #: src/menus.c:453 msgid "Move left" msgstr "Posunúť doľava" #: src/menus.c:454 msgid "Move right" msgstr "Posunúť doprava" #: src/menus.c:455 msgid "Move up" msgstr "Posunúť nahor" #: src/menus.c:456 msgid "Move down" msgstr "Posunúť nadol" #: src/menus.c:459 msgid "Set position" msgstr "" #: src/menus.c:467 msgid "Rotation" msgstr "" #: src/menus.c:468 msgid "Rotate +90 deg" msgstr "Otočiť o 90 stupňov doľava" #: src/menus.c:470 msgid "Rotate -90 deg" msgstr "Otočiť o 90 stupňov doprava" #: src/menus.c:472 msgid "Rotate +0.1 deg" msgstr "Otočiť o desatinu stupňa doľava" #: src/menus.c:474 msgid "Rotate -0.1 deg" msgstr "Otočiť o desatinu stupňa doprava" #: src/menus.c:480 msgid "Horizontal flip" msgstr "Preklopiť vodorovne" #: src/menus.c:482 msgid "Vertical flip" msgstr "Preklopiť zvislo" #: src/menus.c:486 msgid "Maximize small image" msgstr "Zväčšiť malý obrázok" #: src/menus.c:487 msgid "Scale down large image" msgstr "Zmenšiť veľký obrázok" #: src/menus.c:489 msgid "Image fit window" msgstr "Upraviť veľkosť podľa okna" #: src/menus.c:492 msgid "Zoom in" msgstr "Zväčšiť" #: src/menus.c:493 msgid "Zoom out" msgstr "Zmenšiť" #: src/menus.c:494 msgid "Fit width" msgstr "" #: src/menus.c:495 #, fuzzy msgid "Fit height" msgstr "šírka x výška" #: src/menus.c:499 msgid "Reset" msgstr "Pôvodné" #: src/menus.c:504 msgid "Toggle Fullscreen mode" msgstr "Prepnúť celoobrazovkový režim" #: src/menus.c:505 msgid "Toggle Menu Bar" msgstr "Zobraziť alebo skryť ponukovú lištu" #: src/menus.c:506 msgid "Toggle Status Bar" msgstr "Zobraziť alebo skryť stavový riadok" #: src/menus.c:507 msgid "Toggle Scrollbars" msgstr "Zobraziť alebo skryť posúvacie lišty" #: src/menus.c:508 msgid "Toggle Alpha checks" msgstr "Zobraziť alebo skryť alfa overenia" #: src/menus.c:510 msgid "Hide the cursor" msgstr "Skryť kurzor" #: src/menus.c:511 msgid "Set this window as server" msgstr "Nastaviť toto okno ako server" #: src/menus.c:513 msgid "Options..." msgstr "Nastavenia..." #: src/menus.c:532 msgid "Help" msgstr "Nápoveda" #: src/menus.c:533 msgid "About..." msgstr "O programe..." #: src/menus.c:534 msgid "Controls..." msgstr "Ovládanie..." #: src/next_image.c:143 msgid "First image" msgstr "" #: src/next_image.c:146 #, fuzzy msgid "Last image" msgstr "Načítať ďalší obrázok" #: src/next_image.c:226 #, fuzzy msgid "Loading errors" msgstr "Ukladám kolekciu: %s" #: src/next_image.c:239 msgid "The following errors occurred while loading the next image:\n" msgstr "" #: src/next_image.c:828 msgid "Stop the slide show" msgstr "Zastaviť prezentáciu" #: src/open_dialog.c:101 #, fuzzy msgid "GLiv: Select a folder to open" msgstr "GLiv: Zvoľte súbory, alebo použite masky" #: src/open_dialog.c:104 #, fuzzy msgid "GLiv: Select files to open" msgstr "GLiv: Zvoľte súbory, alebo použite masky" #: src/open_dialog.c:129 src/rcfile.c:106 msgid "Try to load every file" msgstr "Pokúsiť sa načítať každý súbor" #: src/open_dialog.c:130 src/rcfile.c:118 msgid "Recursive directory traversal" msgstr "" #: src/options.c:219 src/options.c:237 msgid "NONE" msgstr "" #: src/options.c:222 #, fuzzy, c-format msgid "This configuration file has been read: %s" msgstr "" "# Konfiguračný súbor GLiv %s\n" "\n" #: src/options.c:240 #, fuzzy, c-format msgid "This configuration file will be written: %s" msgstr "" "# Konfiguračný súbor GLiv %s\n" "\n" #: src/rcfile.c:97 msgid "Start in full screen mode" msgstr "Spustiť v celoobrazovkovom režime" #: src/rcfile.c:100 msgid "Display the menu bar" msgstr "Zobraziť ponukovú lištu" #: src/rcfile.c:101 #, fuzzy msgid "Display info about the image" msgstr "Zobraziť údaje o obrázku" #: src/rcfile.c:102 msgid "Display scrollbars" msgstr "Zobraziť posúvacie lišty" #: src/rcfile.c:104 msgid "Alpha checks in the background" msgstr "Alfa overenia v pozadí" #: src/rcfile.c:117 msgid "Enable transitions" msgstr "" #: src/rcfile.c:119 #, fuzzy msgid "Keep transfo between images" msgstr "Doba zobrazenia jedného obrázku" #: src/rcfile.c:122 msgid "Maximum framerate" msgstr "Maximálny počet snímkov za sekundu" #: src/rcfile.c:123 msgid "Delay before hiding the cursor" msgstr "Čas pred skrytím kurzora" #: src/rcfile.c:124 msgid "History length" msgstr "Dĺžka histórie" #: src/rcfile.c:125 msgid "Delay between images" msgstr "Doba zobrazenia jedného obrázku" #: src/rcfile.c:131 msgid "background: red channel" msgstr "pozadie: červený kanál" #: src/rcfile.c:132 msgid "background: green channel" msgstr "pozadie: zelený kanál" #: src/rcfile.c:133 msgid "background: blue channel" msgstr "pozadie: modrý kanál" #: src/rcfile.c:134 msgid "alpha1 tile: red channel" msgstr "alfa1 oblasť: červený kanál" #: src/rcfile.c:135 msgid "alpha1 tile: green channel" msgstr "alfa1 oblasť: zelený kanál" #: src/rcfile.c:136 msgid "alpha1 tile: blue channel" msgstr "alfa1 oblasť: modrý kanál" #: src/rcfile.c:137 msgid "alpha2 tile: red channel" msgstr "alfa2 oblasť: červený kanál" #: src/rcfile.c:138 msgid "alpha2 tile: green channel" msgstr "alfa2 oblasť: zelený kanál" #: src/rcfile.c:139 msgid "alpha2 tile: blue channel" msgstr "alfa2 oblasť: modrý kanál" #: src/rcfile.c:238 #, c-format msgid "Unknown option in configuration file: %s\n" msgstr "" #: src/rcfile.c:240 #, fuzzy, c-format msgid "Parse error in configuration file: %s\n" msgstr "" "# Konfiguračný súbor GLiv %s\n" "\n" #: src/rcfile.c:486 #, c-format msgid "" "# Configuration file for GLiv %s\n" "\n" msgstr "" "# Konfiguračný súbor GLiv %s\n" "\n" #: src/rcfile.c:487 msgid "# Option names are case sensitive.\n" msgstr "# Názvy nastavení sú citlivé na veľkosť písmen.\n" #: src/rcfile.c:488 msgid "" "# Option values are case insensitive.\n" "\n" msgstr "" "# Hodnoty nastavení nie sú citlivé na veľkosť písmen.\n" "\n" #: src/thread.c:164 #, fuzzy msgid "Cannot use a thread\n" msgstr "Nemôžem použiť vlákno" #: src/transition.c:261 #, c-format msgid "transition from `%s' to `%s'" msgstr "" #: src/tree_browser.c:80 msgid "Browser" msgstr "" #: src/tree_browser.c:201 msgid "Thumb" msgstr "" #: src/tree_browser.c:222 #, fuzzy msgid "Thumbnails browser" msgstr "Šírka náhľadu" #: src/windows.c:207 msgid "loading" msgstr "načítavam" #: src/windows.c:238 msgid "No image loaded" msgstr "Nie je načítaný žiadny obrázok" #: src/windows.c:239 msgid "width x height" msgstr "šírka x výška" #: src/windows.c:240 msgid "zoom% (angle)" msgstr "priblíženie% (uhol)" #: src/windows.c:319 #, c-format msgid "%.3f%% (%.3f deg%s)" msgstr "%.3f%%·(%.3f·deg%s)" #: src/windows.c:363 #, c-format msgid "Ignoring initial geometry (%s) as fullscreen mode is requested\n" msgstr "" #: src/windows.c:375 #, c-format msgid "Cannot parse geometry: %s\n" msgstr "" #: src/windows.c:409 msgid "GLiv in fullscreen" msgstr "GLiv na celej obrazovke" #~ msgid "" #~ "Your mouse wheel (if supported) will zoom the image and switch it when " #~ "you press the button." #~ msgstr "" #~ "Pomocou kolieska na myši meníte veľkosť obrázku, a keď ho stlačíte, " #~ "prepnete ho." #~ msgid "No automatic image centering" #~ msgstr "Necentrovať obrázok automaticky" #, fuzzy #~ msgid "You'll have to save the options" #~ msgstr "Zvoľte súbor kam uložiť kolekciu" #~ msgid "Scale down larges images" #~ msgstr "Zmenšiť veľké obrázky" #~ msgid "Loading GLiv collection" #~ msgstr "Nahrávam kolekciu GLiv" #, fuzzy #~ msgid "Add all files in the directory" #~ msgstr "Všetky súbory v priečinku" #, fuzzy #~ msgid "Images list" #~ msgstr "Utriediť zoznam obrázkov" #~ msgid "Shuffle" #~ msgstr "Zamiešať" #~ msgid "" #~ "The following OpenGL errors have occured:\n" #~ "%s" #~ msgstr "" #~ "Vyskytli sa nasledujúce OpenGL chyby:\n" #~ "%s" #~ msgid "Click the window to hide it." #~ msgstr "Kliknite na okno, ak chcete aby sa skrylo." #~ msgid "no alpha channel" #~ msgstr "žiadny alfa kanál" #~ msgid "" #~ "# Note: 'maximize = True' or 'scale-down = True' implies 'full-screen = " #~ "True'.\n" #~ "\n" #~ msgstr "" #~ "# Poznámka: 'maximize·=·True'·alebo·'scale-down·=·True'·implikuje·'full-" #~ "screen·=·True'.\n" #~ "\n" gliv-1.9.7/po/remove-potcdate.sin0000644000076400007640000000066011465576131014201 0ustar gg# Sed script that remove the POT-Creation-Date line in the header entry # from a POT file. # # The distinction between the first and the following occurrences of the # pattern is achieved by looking at the hold space. /^"POT-Creation-Date: .*"$/{ x # Test if the hold space is empty. s/P/P/ ta # Yes it was empty. First occurrence. Remove the line. g d bb :a # The hold space was nonempty. Following occurrences. Do nothing. x :b } gliv-1.9.7/po/sk.gmo0000644000076400007640000003241311465576131011512 0ustar gg "#' H\x%# +CLT \i  61U )$ "/0` iu2* & ;+E q@  &!*L [e x/  !+I\l) ? P Z dow  *0@O_n '2%Ci  '7NSkm # \ }+ /Id'} $;D`d'|''& #0 Mn u)#   0Q>! 7 = (!>!%V!|!,!&!! "$" C"Q"X" _"m"!""&""("/#/A#(q#4##$#( $5$$U$z$@$$ $$)%!,%-N% |%%% %'%%V&e&x&)&&&*&& '' 2' >' H'V'2h'''''' '$(-(D(a(%(4((( )%&)5L)))))) )#* %*1* G* R* `* j*** *** *#*!+#@+d+++++++&,E, a,n,',#,,,-"-?-V- ..$..!S.'u.(.&. ..& /1/A/~\//'/0~00#0 0 0/0 1%1B1`1111.1 2!292S2q222222+203*E3 p30|3 3%3&34041?4q4y444444y!2.WI0kH-;ULru<?o4&=|,%z_+5j`ntq}$\x K M']l[1@NX/PeaV#G9BRYi TE ^)*g~sFm3hA:OvJQp(bZcSd {f D6C8>7w"# Configuration file for GLiv %s # Option names are case sensitive. # Option values are case insensitive. %.3f%% (%.3f deg%s)%s is not a GLiv collection%s not while loading an image %s while loading %s %s: image cannot be compressed twice %s: unknown decompressed extension %s: unknown extension %s: unknown extension (none) +/=/- : Zoom in/in/outAbout...Alpha 1Alpha 2Alpha checksAlpha checks in the backgroundAutomatic window resizingBackgroundBuild images menus at startupBuild mipmapsC-down : Rotate by -90 degreesC-left : Rotate by +0.1 degreeC-right: Rotate by -0.1 degreeC-up : Rotate by +90 degreesCannot find an appropriate visual, try glxinfo(1)Cannot load %sCannot set the OpenGL capabilityCannot sort and shuffle at the same time Choose a collection to loadChoose a file to save the collectionClear historyCommand line flags should be on or off, not %s CommandsControls...Delay before hiding the cursorDelay before hiding the cursor 0: feature disabledDelay between imagesDelay between images during the slide showDirectoriesDisplay scrollbarsDisplay the menu barDitheringDo you really want to delete this file? %s Do you really want to quit GLiv?Draw a rectangle with the third button and gliv will zoom in it.ESC, q : QuitElapsed timeFatal error: GL_MAX_TEXTURE_SIZE = %d FileFullscreen modeGL_MAX_TEXTURE_SIZE must be >= 64GLiv about boxGLiv helpGLiv in fullscreenGLiv versionHelpHide the cursorHistory lengthHistory length 0: feature disabled -1: infiniteHorizontal flipImage fit windowImagesImages menusInserting files...InterfaceKeep only one image in memoryLoad collection...Load next imageLoad previous imageM : Maximize the image to the windowMake mnemonics for images menusMake the slide show loopMaximize small imageMaximize small imagesMaximum framerateMaximum framerate -1: infiniteMenu bar enabledMove downMove leftMove rightMove upNo image foundNo image loadedOpen...OpenGL not supportedOptionsOptions...QuitRebuild images menusRebuild this menuRebuilding:RedoRemaining timeRemove the current fileResetRotate +0.1 degRotate +90 degRotate -0.1 degRotate -90 degSave collection...Saving collection: %sScale down large imageScale down large imagesScrollbars enabledSet this window as serverShow thumbnails in images menusShuffle images listSlide showSort images listSpace and Backspace act like n and p.Start in full screen modeStart the slide showStart with the slide showStatus bar enabledStop rebuilding the images menuStop the slide showThe first mouse button and the arrow keys will move the image unless the Control key is pressed. In which case the image will be rotated around the window center.Thumbnail heightThumbnail widthToggle Alpha checksToggle Fullscreen modeToggle Menu BarToggle ScrollbarsToggle Status BarTotal timeTransformationsTry to load every fileUndoUnknown OpenGL error (%d)Use 'gliv --help' to show command line options. A quick help is accessible by typing 'h' or using the menu.Vertical flipWrong URI format: %d (instead of 8)Wrong URI length: %dYou can also zoom by dragging the mouse vertically while holding Shift and the first button.Zoom centered on pointerZoom inZoom outa : Toggle display of the alpha checksalpha channelalpha1 tile: blue channelalpha1 tile: green channelalpha1 tile: red channelalpha2 tile: blue channelalpha2 tile: green channelalpha2 tile: red channelb : Toggle display of the menu barbackground: blue channelbackground: green channelbackground: red channelc : Clear the historyd : Hide the cursore : Vertical flipelementsf : Full-screen/windowfpsglXMakeCurrent() failedh : Toggle display of the help boxi : Toggle display of the info barl : Reduce the image to the windowloadingm : Make the image fit the windowmillisecondsn/p : Next/previous imageo : Display the open dialogpixelsr : Reset position and sizes : Toggle display of the scrollbarssecondst : Display the options dialogu : Undowidth x heighty : Redoz : Horizontal flipzoom% (angle)Project-Id-Version: gliv 1.8 Report-Msgid-Bugs-To: guichaz@gmail.com POT-Creation-Date: 2010-04-19 00:52+0200 PO-Revision-Date: 2004-07-26 01:24+0200 Last-Translator: Andrej Kacian Language-Team: Slovak MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # Konfiguračný súbor GLiv %s # Názvy nastavení sú citlivé na veľkosť písmen. # Hodnoty nastavení nie sú citlivé na veľkosť písmen. %.3f%%·(%.3f·deg%s)%s nie je kolekcia GLiv%s nie počas načítavania obrázku %s počas načítavania %s %s: obrázok sa nedá komprimovať dvakrát %s: neznáma dekomprimovaná prípona %s: neznáma prípona %s: neznáma prípona (žiadna) +/=/- : Zväčšiť/zmenšiťO programe...Alfa 1Alfa 2Alfa overenieAlfa overenia v pozadíAutomatická zmena veľkosti oknaPozadieVytvoriť ponuku obrázkov pri štarteVytvoriť mipmapyC-nadol : Otočiť o 90 stupňov dopravaC-doľava : Otočiť o desatinu stupňa doľavaC-doprava : Otočiť o desatinu stupňa dopravaC-nahor : Otočiť o 90 stupňov doľavaNemôžem nájsť vhodný visual, skúste glxinfo(1)Nemôžem načítať %sNemôžem začať pracovať s OpenGLNemôžem triediť a zamiešavať naraz Zvoľte ktorú kolekciu nahraťZvoľte súbor kam uložiť kolekciuVyčistiť históriuNastavenia príkazového riadku musia byť on alebo off, nie %s PríkazyOvládanie...Čas pred skrytím kurzoraČas pred skrytím kurzora 0: neskrývaťDoba zobrazenia jedného obrázkuDoba zobrazenia obrázkov počas prezentáciePriečinkyZobraziť posúvacie lištyZobraziť ponukovú lištuDitheringNaozaj chcete zmazať tento súbor? %s Naozaj chcete ukončiť GLiv?Naznačte obdĺžnik pomocou tretieho tlačítka a gliv ho zväčší do celého okna.ESC, q : UkončiťUplynulý časFatálna chyba: GL_MAX_TEXTURE_SIZE = %d SúborCeloobrazovkový režimGL_MAX_TEXTURE_SIZE musí byť viac ako 64O programe GLivNápoveda GLivGLiv na celej obrazovkeVerzia GLivNápovedaSkryť kurzorDĺžka histórieDĺžka histórie 0: nepoužívať -1: nekonečnáPreklopiť vodorovneUpraviť veľkosť podľa oknaObrázkyPonuka obrázkovVkladám súbory...OvládanieDržať v pamäti len jeden obrázokNačítať kolekciu...Načítať ďalší obrázokNačítať predošlý obrázokM : Zväčšiť obrázok do oknaPoužívať klávesové skratky pre ponuku obrázkovCykliť prezentáciuZväčšiť malý obrázokZväčšiť malé obrázkyMaximálny počet snímkov za sekunduMaximálny počet snímkov za sekundu -1: nekonečnýPonuková lišta zapnutáPosunúť nadolPosunúť doľavaPosunúť dopravaPosunúť nahorNebol nájdený žiadny obrázokNie je načítaný žiadny obrázokOtvoriť...Chýba podpora OpenGLNastaveniaNastavenia...UkončiťZnovu vytvoriť ponuky obrázkovZnovu vytvoriť túto ponukuZnovu vytváram:Urobiť znovuZostávajúci časZmazať aktuálny súborPôvodnéOtočiť o desatinu stupňa doľavaOtočiť o 90 stupňov doľavaOtočiť o desatinu stupňa dopravaOtočiť o 90 stupňov dopravaUložiť kolekciu...Ukladám kolekciu: %sZmenšiť veľký obrázokZmenšiť veľké obrázkyPosúvacie lišty zapnutéNastaviť toto okno ako serverZobraziť náhľady v ponuke obrázkovZamiešať zoznam obrázkovPrezentáciaUtriediť zoznam obrázkovMedzera a Backspace fungujú ako n a p.Spustiť v celoobrazovkovom režimeSpustiť prezentáciuZačať s prezentáciouStavový riadok zapnutýPrerušiť tvorbu ponuky obrázkovZastaviť prezentáciuPomocou prvého tlačítka myši a kurzorových kláves pohybujete obrázkom, pokiaľ nie je stlačená klávesa Control. V tom prípade tak otáčate obrázkom okolo stredu okna.Výška náhľaduŠírka náhľaduZobraziť alebo skryť alfa overeniaPrepnúť celoobrazovkový režimZobraziť alebo skryť ponukovú lištuZobraziť alebo skryť posúvacie lištyZobraziť alebo skryť stavový riadokCelkový časTransformáciePokúsiť sa načítať každý súborVrátiť späťNeznáma OpenGL chyba (%d)Zadajte 'gliv --help' pre možnosti príkazového riadku. Rýchla nápoveda je dostupná pomocou klávesy 'h', alebo v ponuke.Preklopiť zvisloNesprávny formát URI: %d (namiesto 8)Nesprávna dĺžka URI: %dTaktiež môžete meniť veľkosť posúvaním myši vertikálne so zatlačenou klávesou Shift a prvým tlačítkom na myši.Priblíženie centrované na kurzorZväčšiťZmenšiťa : Zobraziť alebo schovať alfa overeniaalfa kanálalfa1 oblasť: modrý kanálalfa1 oblasť: zelený kanálalfa1 oblasť: červený kanálalfa2 oblasť: modrý kanálalfa2 oblasť: zelený kanálalfa2 oblasť: červený kanálb : Zobraziť alebo skryť ponukovú lištupozadie: modrý kanálpozadie: zelený kanálpozadie: červený kanálc : Vyčistiť históriud : Skryť kurzore : Preklopiť zvislozložiekf : Celá obrazovka/oknofpsglXMakeCurrent()·zlyhaloh : Zobraziť alebo schovať nápovedui : Zobraziť alebo skryť lištu s údajmil······:·Zmenšiť obrázok do oknanačítavamm : Upraviť veľkosť obrázku podľa oknamilisekúndn/p : Ďalší/predošlý obrázoko : Zobraziť dialóg načítaniapixelovr : Obnoviť pôvodnú pozíciu a veľkosťs : Zobraziť alebo skryť posúvacie lištysekúndt : Zobraziť nastaveniau : Vrátiť späťšírka x výškay : Urobiť znovuz : Preklopiť vodorovnepriblíženie% (uhol)gliv-1.9.7/po/en@quot.header0000644000076400007640000000226311465576131013156 0ustar gg# All this catalog "translates" are quotation characters. # The msgids must be ASCII and therefore cannot contain real quotation # characters, only substitutes like grave accent (0x60), apostrophe (0x27) # and double quote (0x22). These substitutes look strange; see # http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html # # This catalog translates grave accent (0x60) and apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019). # It also translates pairs of apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019) # and pairs of quotation mark (0x22) to # left double quotation mark (U+201C) and right double quotation mark (U+201D). # # When output to an UTF-8 terminal, the quotation characters appear perfectly. # When output to an ISO-8859-1 terminal, the single quotation marks are # transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to # grave/acute accent (by libiconv), and the double quotation marks are # transliterated to 0x22. # When output to an ASCII terminal, the single quotation marks are # transliterated to apostrophes, and the double quotation marks are # transliterated to 0x22. # gliv-1.9.7/po/vi.gmo0000644000076400007640000005003211465576131011510 0ustar gg[ x"y#'7%L#r&. 6Cb |   11P ) +$G lz/  2,_*t   +, X@y    !>U&t   !   ,,Yw/?6G N[ .8V*r  ) )8 b       ! ! ! !!,!4!9!>!M!!]!! !!!!!!!" "!"&2""Y"|""" """"""##-#<#L#[#d#u#######, $ 9$F$`$$ $$%$$$%%/%B%b%:v%$%%<y&)&+& ''-'@'T'k'{'''' ' '''K'E(\(a(){(k( )#)C)\X))))+) **3*N*g***'***+(+C+ \+f+u+++++#++'+','F,n,&v, ,, ,, ,)-:-#B-f- -+-- -- -.%/?/M0]0(p0'00&0(0(1)E1o111%1 1112"2/62f2l2224222313L3=g33*3&38 4 F4g4l4#46444H5K5R5h555!5;56.06$_6 6"666 66873K7Q7777 8!8@8&V8'}8818 8 99 929!O9q9999;9":&): P:\:k:F: :c:9;P;V;i;b<< <(<,<9< 9=&F=m===== =6=7> R>s>>>+>>? ??-? B? L?W?\?u?.???$??-@5@ N@#Z@~@@9@(@A)A#@AdA}A AAAA A B B !B -B 8B CBQB%eB BBBBBO C[C.lC6CC CCSDnD/DD DD*E@E_TE0EE<F3F0GMGcG|G GGGGH4HQHiHHHHhH*I FITI>qII lJ'xJJyJ&1K XK bK.lK KKKKKL>L'^LLLL LL MM&M ;M$FM kM uMMM&M%M7 N BN-NN |NN(N N.N&O-O/3O+cOO(O OOOP_gKDp,i)r'dcC9-$l uMJka5(z}LZ/ b =e.\ Go0H?EB!{*tUwTxm1%#~&F" j;[sPVv|hqI6X: Q743fN^SRyW<]AOn@2Y8`+># Configuration file for GLiv %s # Option names are case sensitive. # Option values are case insensitive. %.3f%% (%.3f deg%s)%s is not a GLiv collection%s not while loading an image %s while loading %s %s: image cannot be compressed twice %s: unknown decompressed extension %s: unknown extension %s: unknown extension (none) +/=/- : Zoom in/in/outAbout...Action on every imageAction on the current imageActionsAlpha 1Alpha 2Alpha checksAlpha checks in the backgroundAutomatic window resizingBackgroundBottom leftBottom rightBrowserBuild images menus at startupBuild mipmapsC-down : Rotate by -90 degreesC-left : Rotate by +0.1 degreeC-right: Rotate by -0.1 degreeC-up : Rotate by +90 degreesCannot find an appropriate visual, try glxinfo(1)Cannot load %sCannot parse geometry: %s Cannot set the OpenGL capabilityCannot sort and shuffle at the same time Cannot use a thread CenterCheck for OpenGL errorsChoose a collection to loadChoose a file to save the collectionClear historyCommandCommand line flags should be on or off, not %s CommandsConfiguration fileConfirm before quittingControls...Current image directory...Delay before hiding the cursorDelay before hiding the cursor 0: feature disabledDelay between imagesDelay between images during the slide showDelete : Delete the current fileDirectoriesDisplay info about the imageDisplay scrollbarsDisplay the menu barDitheringDo not ask againDo you really want to delete this file? %s Do you really want to quit GLiv?Draw a rectangle with the third button and gliv will zoom in it.ESC, q : QuitEdit ActionEdit actions...Elapsed timeEnable OpenGL filteringEnable transitionsEnable transitions between imagesEnter an image number:Failed to create a new processFatal error: GL_MAX_TEXTURE_SIZE = %d FileFirst imageFit heightFit widthFullscreen modeGL_MAX_TEXTURE_SIZE must be >= 64GLiv about boxGLiv helpGLiv in fullscreenGLiv versionGLiv won't write a collection to a terminal GLiv: Select a folder to openGLiv: Select files to openHelpHide the cursorHistory lengthHistory length 0: feature disabled -1: infiniteHorizontal flipIgnoring initial geometry (%s) as fullscreen mode is requested Image fit windowImagesImages menusIn the command field, printf like substitutions can be used: %d Path to the current file directory %b Current file name %f Path to the current file %% A litteral % Initial image positionInserting files...InterfaceKeep only one image in memoryKeep transfo between imagesKeep transformations when switching imagesLast imageLast/First image notice timeLoad collection...Load next imageLoad previous imageLoad the Nth image...Loading collection: %sLoading errorsM : Maximize the image to the windowMake mnemonics for images menusMake the slide show loopMaximize small imageMaximize small imagesMaximum framerateMaximum framerate -1: infiniteMenu bar enabledMoveMove downMove leftMove rightMove upNONENameNo image foundNo image loadedNo images to put in a collection Open directory...Open in GimpOpen thumbnails browser...Open...OpenGL error in %s() at %s:%d: %sOpenGL not supportedOptionsOptions will be savedOptions...Overwrite "%s" ?Parse error in configuration file: %s Pause : Start/stop the slide showQuitRebuild images menusRebuild this menuRebuilding:Recursive directory traversalRedoReload the current imageRemaining timeRemove the current fileResetRotate +0.1 degRotate +90 degRotate -0.1 degRotate -90 degRotationSame as previousSave collection...Save options nowSave options when quittingSaving collection: %sScale down large imageScale down large imagesScrollbars enabledSee http://guichaz.free.fr/gliv for updates.Set positionSet this window as serverShow thumbnails in images menusShuffle images listSlide showSort images listSpace and Backspace act like n and p.Standard outputStart in full screen modeStart the slide showStart with the slide showStatus bar enabledStop rebuilding the images menuStop the slide showThe action '%s' terminated with a non-null return code: %dThe action name '%s' is already usedThe first mouse button and the arrow keys will move the image unless the Control key is pressed. In which case the image will be rotated around the window center.The following errors occurred while loading the next image: This configuration file has been read: %sThis configuration file will be written: %sThumbnail heightThumbnail widthThumbnails browserToggle Alpha checksToggle Fullscreen modeToggle Menu BarToggle ScrollbarsToggle Status BarToggle floating windowsTop leftTop rightTotal timeTransformationsTransition durationTransitions obey the maximum framerate parameter in the Transformations tabTry to load every fileUndoUnknown OpenGL error (%d)Unknown option in configuration file: %s Use 'gliv --help' to show command line options. A quick help is accessible by typing 'h' or using the menu.Vertical flipWrong URI format: %d (instead of 8)Wrong URI length: %dYou can also zoom by dragging the mouse vertically while holding Shift and the first button.Zoom centered on pointerZoom inZoom outa : Toggle display of the alpha checksalpha channelalpha1 tile: blue channelalpha1 tile: green channelalpha1 tile: red channelalpha2 tile: blue channelalpha2 tile: green channelalpha2 tile: red channelb : Toggle display of the menu barbackground: blue channelbackground: green channelbackground: red channelc : Clear the historyd : Hide the cursordirectorydirectory/filee : Vertical flipelementsf : Full-screen/windowfilefpsg : Display the image selectorglXMakeCurrent() failedh : Toggle display of the help boxi : Toggle display of the info barl : Reduce the image to the windowloadingm : Make the image fit the windowmillisecondsn/p : Next/previous imageo : Display the open dialogpixelsr : Reset position and sizes : Toggle display of the scrollbarssecondst : Display the options dialogtransition from `%s' to `%s'u : Undow : Toggle display of floating windowswidth x heighty : Redoz : Horizontal flipzoom% (angle)Project-Id-Version: gliv 1.9.6 Report-Msgid-Bugs-To: guichaz@gmail.com POT-Creation-Date: 2010-04-19 00:52+0200 PO-Revision-Date: 2007-11-30 23:25+1030 Last-Translator: Clytie Siddall Language-Team: Vietnamese MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=1; plural=0; X-Generator: LocFactoryEditor 1.7b1 # Tập tin cấu hình cho GLiv %s # Các tên tùy chọn giờ phân biệt chữ hoa/thường # Các giá trị tùy chọn giờ không phân biệt chữ hoa/thường %.3f%% (%.3fº %s)%s không phải tập hợp kiểu GLiv%s không phải trong khi nạp ảnh %s trong khi nạp %s %s: không thể nén ảnh hai lần %s: phần mở rộng giải nén lạ %s: phần mở rộng lạ %s: phần mở rộng lạ (không có) +/=/- : Phóng to/to/Thu nhỏGiới thiệu...Hành động với mọi ảnhHành động với ảnh đang dùngHành độngAnfa 1Anfa 2Kiểm tra AnfaKiểm tra Anfa chạy trong nềnTự động sửa đổi kích cỡ cửa sổNềnBên trái, gốc dướiBên phải, gốc dướiBộ duyệt quaXây dựng cac trình đơn ảnh khi khởi chạyXây dựng mipmapC-xuống : Xoay theo -90ºC-trái : Xoay theo +0.1ºC-phải: Xoay theo -0.1ºC-lên : Xoay theo +90ºKhông tìm thấy ô xem thích hợp: hãy thử glxinfo(1)Không thể nạp %sKhông thể phân tích dạng hình: %s Không thể đặt khả năng OpenGLKhông thể sắp xếp và xáo trộn đồng thời Không thể sử dụng mạch TâmKiểm tra có lỗi OpenGLHãy chọn tập hợp cần nạpHãy chọn tập tin vào đó cần lưu tập hợpXóa sạch lịch sửLệnhCác cờ dòng lệnh nên đã bật hay bị tắt, không phải %s LệnhTập tin cấu hìnhXác nhận trước khi thoátĐiều khiển...Thư mục ảnh đang dùng...Hoãn trước khi ẩn con trỏĐợi trước khi ẩn con trỏ 0 tính năng bị tắtHoãn giữa hai ảnhHoãn giữa hai ảnh trong khi chiếu ảnhXoá Xóa tập tin đang dùngThư mụcHiển thị thông tin về ảnhHiển thị các thanh cuộnHiển thị thanh trình đơnRung độngĐừng hỏi lạiBạn thực sự muốn xóa tập tin này không? %s Bạn thực sự muốn thoát khỏi GLiv không?Vẽ hình chữ nhật bằng cái nút thứ ba thì GLiv thu phóng trong nó.ESC, q : ThoátSửa hành độngSửa hành động...Thời gian đã quaBật khả năng lọc OpenGLBật chuyển tiếpBật chuyển tiếp giữa hai ảnhHãy nhập vào số thứ tự ảnh:Lỗi tạo tiến trình mớiLỗi nghiệm trọng: GL_MAX_TEXTURE_SIZE = %d Tập tinẢnh đầuVừa chiều caoVừa bề rộngChế độ toàn màn hìnhGL_MAX_TEXTURE_SIZE phải ≥ 64Hộp giới thiệu GLivTrợ giúp GlivGLiv trên toàn màn hìnhPhiên bản GlivGLiv không thể ghi tập hợp vào thiết bị cuối GLiv: chọn thư mục cần mởGLiv: chọn các tập tin cần mởTrợ giúpẨn con trỏĐộ dài lịch sửĐộ dài lịch sử • 0 tính năng bị tắt • -1 vô hạnLật ngangĐang bỏ qua dạng hình đầu tiên (%s) vì chế độ toàn màn hình được yêu cầu Ảnh vừa cửa sổẢnhTrình đơn ảnhTrong trường lệnh, cũng có thể sử dụng ký tự đại diện kiểu printf: %d Đường dẫn đến thư mục đang dùng %b Tên của tập tin đang dùng %f Đường dẫn đến tập tin đang dùng %% Ký tự % thật Vị trí ảnh đầu tiênĐang chèn các tập tin...Giao diệnGiữ chỉ một ảnh trong bộ nhớGiữ sự chuyển tiếp giữa các ảnhGiữ các sự chuyển dạng khi chuyển đổi ảnhẢnh cuốiThời gian thấy ảnh đầu/cuốiNạp tập hợp...Nạp ảnh kếNạp ảnh lùiNạp ảnh thứ N...Đang nạp tập hợp: %sLỗi nạpM : Tăng kích cỡ ảnh để vừa cửa sổTạo cái giúp trí nhớ cho các trình đơn ảnhKhiến chiếu ảnh bị lặpPhóng to ảnh nhỏPhóng to ảnh nhỏTỷ lệ khung tối đaTỷ lệ khung tối đa • -1 vô hạnThanh trình đơn đã bậtChuyểnĐem xuốngChuyển bên tráiChuyển bên phảiĐem lênKHÔNG CÓTênKhông tìm thấy ảnhChưa nạp ảnhKhông có ảnh cần để vào tập hợp Mở thư mục...Mở bằng GIMPMở bộ duyệt qua ảnh mẫu...Mở...Gặp lỗi OpenGL trong %s() tại %s:%d: %sKhông hỗ trợ OpenGLTùy chọnCác tùy chọn sẽ được lưuTùy chọn...Ghi đè lên « %s » không?Gặp lỗi phân tích trong tập tin cấu hình : %s Tạm dừng Chạy/Dừng chiếu ảnhThoátXây dựng lại các trình đơn ảnhXây dụng lại trình đơn nàyĐang xây dụng lại:Theo đệ quy cây thư mụcLàm lạiNạp lại ảnh hiện tạiThời gian còn lạiGỡ bỏ tập tin đang dùngĐặt lạiXoay +0.1ºXoay +90ºXoay -0.1ºXoay -90ºĐộ xoayNhư trướcLưu tập hợp...Lưu các tùy chọn ngay bây giờLưu các tùy chọn khi thoátĐang lưu tập hợp: %sThu nhỏ ảnh lớnThu nhỏ ảnh lớnThanh cuộn đã bậtXem « http://guichaz.free.fr/gliv » để giành được bản cập nhật.Đặt vị tríĐặt cửa sổ này làm trình phục vụHiển thị ảnh mẫu trong các trình đơn ảnhXáo trộn danh sách ảnhChiếu ảnhSắp xếp danh sách ảnhPhím dài và phím xóa lùi tương ứng với phím tắt « n » và « p ».Thiết bị xuất chuẩnKhởi chạy vào chế độ toàn màn hìnhBắt đầu chiếu ảnhBắt đầu với ảnh chiếuThanh trạng thái đã bậtThôi xây dựng lại trình đơn ảnhThôi chiếu ảnhHành động « %s » đã chấm dứt với mã trả lại không phải vô giá trị: %dTên hành động « %s » đang được dùngCái nút đầu trên con chuột và các phím mũi tên sẽ di chuyển ảnh, nếu phím Ctrl được bấm. Trong trường hợp đó, ảnh sẽ được xoay theo trung tâm cửa sổ.Gặp những lỗi này trong khi nạp ảnh kế tiếp: Tập tin cấu hình này đã được đọc: %sTập tin cấu hình này sẽ được ghi: %sĐộ cao ảnh mẫuĐộ rộng ảnh mẫuBộ duyệt qua ảnh mẫuBật/tắt các kiểm tra AnfaHiện/ẩn toàn màn hìnhHiện/ẩn thanh trình đơnHiện/ẩn các thanh cuộnHiện/ẩn thanh trạng tháiHiện/ẩn cửa sổ nổiBên trái, gốc trênBên phải, gốc trênTổng thời gianChuyển dạngThời gian chuyển dạngViệc chuyển dạng tùy theo tham số tốc độ khung tối đa trên thẻ « Chuyển dạng »Thử nạp mọi tập tinHủy bướcLỗi OpenGL không rõ (%d)Gặp tùy chọn không rõ trong tập tin cấu hình : %s Hãy sư dụng lệnh trợ giúp « gliv --help » để xem các tùy chọn dòng lệnh. Trợ giúp nhanh cũng nằm trong trình đơn, hoặc xuất hiện khi bạn gõ « h ».Lật dọcSai định dạng URI: %d (thay cho 8)Sai độ dài URI: %dCũng có thể thu phóng bằng cách kéo chuột theo chiều dọc trong khi ấn giữ phím Shift và nút đầu.Thu phóng giữa lại theo con trỏPhóng toThu nhỏa : Hiện/ẩn các sự kiểm tra anfakênh anfalát đều alpha1: kênh xanhlát đều alpha1: kênh lụcxếp alpha1: kênh đỏlát đều alpha2: kênh xanhlát đều alpha2: kênh lụclát đều alpha2: kênh đỏb : Hiện/ẩn thanh trình đơnnền: kênh màu xanhnền: kênh màu lụcnền: kênh màu đỏc : Xóa sạch lịch sửd : Ẩn con trỏthư mụcthư mục/tập tine : Lật dọcyếu tốf : Toàn màn hình/cửa sổtập tinkhung/giâyg Hiện bộ chọn ảnhglXMakeCurrent() bị lỗih : Hiện/ẩn hộp trợ giúpi : Hiện/ẩn thanh thông tinl : Giảm kích cỡ ảnh để vừa cửa sổđang nạpm : Co dãn ảnh để vừa cửa sổmili giâyn/p : Ảnh kế/lùio : Hiển thị hộp thoại Mởđiểm ảnhr : Đặt lại vị trí và kích cỡs : Hiện/ẩn các thanh cuộngiâyt : Hiển thị hộp thoại Tùy chọnchuyển tiếp từ « %s » sang « %s »u : Hủy bướcw Hiện/ẩn các cửa sổ nổirộng × caoy : Làm lạiz : Lật ngang% thu phóng (góc)gliv-1.9.7/po/tr.gmo0000644000076400007640000003130711465576131011523 0ustar ggT " #,'Px%#)G_hp x  13e t)$ /> GS2r* + E@f  &!  /9 LY^n/}  0@)T~ $ . 8CKZjr  $7Md| %.H[{2F]m k N#\\ + HVp'3Me'''Ai&q   ) 5#= ao ~ 65V8" . .J y "     # !;!0C!t! ! !9!"&"2:"!m"(""T"# &#1#:Q##;##"#$4+$-`$P$$ $*$&%,%%?%e% {%%%%%%7% && 4&B&W&m&%v&&&&/&2'#M'!q'"''"''( %( 2(@(P(g((( ((((( (( )).)B)Z)r))")#)#)"*#**N*_*8}**** +**+U+q+J,j,,!,, ,,#- &-1-P--&- .d(... .5. ../*/I/b/}/2////0+0C0\0e00020300 1 :1(F1 o1$z1%11/161 32*=2h2}222 2C0wHS:V^`QfLW1*.{>eu}hyIpgv38TRO'Z)U\4"7(_N cG?+<J/k, &[E~BdMaxKqmi9 tl6;D|Psj52$!%zFA@-]# bo =Yr Xn# Configuration file for GLiv %s # Option names are case sensitive. # Option values are case insensitive. %s is not a GLiv collection%s not while loading an image %s while loading %s %s: image cannot be compressed twice %s: unknown decompressed extension %s: unknown extension %s: unknown extension (none) +/=/- : Zoom in/in/outAbout...Alpha 1Alpha 2Alpha checksAlpha checks in the backgroundAutomatic window resizingBackgroundBuild images menus at startupBuild mipmapsC-left : Rotate by +0.1 degreeC-right: Rotate by -0.1 degreeCannot find an appropriate visual, try glxinfo(1)Cannot load %sCannot set the OpenGL capabilityCannot sort and shuffle at the same time Choose a collection to loadChoose a file to save the collectionClear historyCommand line flags should be on or off, not %s CommandsControls...Delay before hiding the cursorDelay before hiding the cursor 0: feature disabledDelay between imagesDelay between images during the slide showDirectoriesDisplay scrollbarsDisplay the menu barDo you really want to delete this file? %s Do you really want to quit GLiv?Draw a rectangle with the third button and gliv will zoom in it.ESC, q : QuitElapsed timeFatal error: GL_MAX_TEXTURE_SIZE = %d FileFullscreen modeGL_MAX_TEXTURE_SIZE must be >= 64GLiv about boxGLiv helpGLiv in fullscreenGLiv versionHelpHide the cursorHistory lengthHistory length 0: feature disabled -1: infiniteHorizontal flipImage fit windowImagesImages menusInserting files...InterfaceKeep only one image in memoryLoad collection...Load next imageLoad previous imageM : Maximize the image to the windowMake mnemonics for images menusMake the slide show loopMaximize small imageMaximize small imagesMaximum framerateMaximum framerate -1: infiniteMenu bar enabledMove downMove leftMove rightMove upNo image foundNo image loadedOpen...OpenGL not supportedOptionsOptions...QuitRebuild images menusRebuild this menuRebuilding:RedoRemaining timeRemove the current fileResetRotate +0.1 degRotate -0.1 degSave collection...Saving collection: %sScale down large imageScale down large imagesScrollbars enabledSet this window as serverShuffle images listSlide showSort images listSpace and Backspace act like n and p.Start in full screen modeStart the slide showStart with the slide showStatus bar enabledStop rebuilding the images menuStop the slide showThe first mouse button and the arrow keys will move the image unless the Control key is pressed. In which case the image will be rotated around the window center.Toggle Alpha checksToggle Fullscreen modeToggle Menu BarToggle ScrollbarsToggle Status BarTotal timeTransformationsTry to load every fileUndoUnknown OpenGL error (%d)Use 'gliv --help' to show command line options. A quick help is accessible by typing 'h' or using the menu.Vertical flipWrong URI format: %d (instead of 8)Wrong URI length: %dYou can also zoom by dragging the mouse vertically while holding Shift and the first button.Zoom centered on pointerZoom inZoom outa : Toggle display of the alpha checksalpha channelalpha1 tile: blue channelalpha1 tile: green channelalpha1 tile: red channelalpha2 tile: blue channelalpha2 tile: green channelalpha2 tile: red channelb : Toggle display of the menu barbackground: blue channelbackground: green channelbackground: red channelc : Clear the historyd : Hide the cursore : Vertical flipelementsf : Full-screen/windowfpsglXMakeCurrent() failedh : Toggle display of the help boxi : Toggle display of the info barl : Reduce the image to the windowloadingm : Make the image fit the windowmillisecondsn/p : Next/previous imageo : Display the open dialogpixelsr : Reset position and sizes : Toggle display of the scrollbarssecondst : Display the options dialogu : Undowidth x heighty : Redoz : Horizontal flipzoom% (angle)Project-Id-Version: gliv 1.8 Report-Msgid-Bugs-To: guichaz@gmail.com POT-Creation-Date: 2010-04-19 00:52+0200 PO-Revision-Date: 2005-03-05 21:36+0200 Last-Translator: Gülnur Yenilmez Language-Team: Turkish MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Generator: KBabel 1.9.1 # GLiv için ayar dosyası %s # Seçenek isimleri küçük-büyük harfe duyarlı # Seçenek değerleri küçük-büyük harfe duyarsız %s bir GLiv derlemi değil%s görüntüyü yüklerken olmaz %2$s yüklenirken %1$s %s: görüntü ikinci kez sıkıştırılamaz %s: bilinmeyen sıkıştırılmamış uzantı %s: bilinmeyen uzantı %s: bilinmeyen uzantı (hiçbiri) +/=/- :Zum/içe /dışaHakkında...Alfa 1Alfa 2Alfa denetimleriAlfa denetimlerini arkaplanda yaparOtomatik pencere boyutlamasıArtalanGörüntü menüsünü başlangıçta oluştururmipmap oluştururC-left : +0.1 derece döndürürC-right: -0.1 derece döndürürUygun bir görsel öğe bulunamadı, glxinfo(1)'i deneyin%s yüklenemiyorOpenGL yetkinliği etkinleştirilemediAynı anda hem sıralayıp hem karıştırılamaz Yüklemek için bir derlem seçinDerlemi kaydetmek için bir dosya seçinGeçmişi silerKomut satırı bayrakları 'on' (etkin) ya da 'off' (etkisiz) olmalı, %s olmamalı KomutlarAyarlar...İmleci gizlemeden önce beklerİmleçi gizlemeden önce bekler 0: Özellik devre dışıGörüntüler arası beklerSlayt gösterisi sırasında görüntüler arasında beklerDizinlerKaydırma çubuklarını gösterirMenü çubuğunu gösterirBu dosyayı silmek istediğinizden emin misiniz? %s Gerçekten GLiv'den çıkmak istiyor musunuz?Üçüncü düğmeyle bir dikdörtgen çizin, gliv bunun içinde zumlayacaktır.ESC, q : ÇıkGeçen süreÖlümcül hata: GL_MAX_TEXTURE_SIZE = %d DosyaBütün ekran kipiGL_MAX_TEXTURE_SIZE >= 64 olmalıdırGLiv hakkında kutusuGLiv yardımGliv tam ekrandaGLiv sürümüYardımİmleci gizlerGeçmiş uzunluğuGeçmiş uzunluğu 0: özellik devre dışı -1: sonsuzYatay çevirirPencereye uygun görüntüGörüntülerGörüntü menüleriDosyalar ekleniyor...ArabirimBellekte yalnız bir görüntü tutarDerlemi yükle...Sonraki görüntüyü yüklerÖnceki görüntüyü yüklerM :Görüntüyü pencere kadar büyütürGörüntü menüsü için anımsatıcı oluştururSlayt gösterisini döngüsel yaparKüçük görüntüyü büyütürKüçük görüntüleri büyütürEn yüksek çerçeve hızıMaximum çerçeve hızı -1:sonsuzMenu çubuğu etkinleştirildiAşağı taşırSola taşırSağa taşırYukarı taşırGörüntü bulunamadıYüklenmiş görüntü yokAç...OpenGL desteklenmiyorSeçeneklerSeçenekler...ÇıkGörüntü menülerini yenilerBu menüyü yenilerYenileme:YinelerKalan süreŞimdiki dosyayı kaldırırİlk duruma getirir+0.1 derece döndürür-0.1 derece döndürürDerlemi kaydet...Derlem kaydediliyor: %sBüyük görüntüyü küçültürBüyük görüntüleri küçültürKaydırma çubuğu etkinleştirildiBu pencereyi sunucu olarak ayarlarGörüntü listesini karıştırırSlayt gösterisiGörüntü listesini sıralarBoşluk ve Gerial tuşları "n" ve "p" gibi çalışır.Tam ekran kipinde başlarSlayt gösterisini başlatırSlayt gösterisiyle başlarDurum çubuğu etkinleştirildiGörüntü menüsünü yenilemeyi durdururSlayt gösterisini durdururKontrol düğmesine basılmadıkça farenin ilk düğmesi ve yön tuşları görüntüyü hareket ettirir. Eğer kontrol düğmesine basılmışsa, aynı tuşlar, pencerenin ortası etrafında görüntüyü çevirir.Alfa Denetimlerini DeğiştirirTam ekran kipini değiştirirMenü Çubuğunu DeğiştirirKaydırma Çubuğunu DeğiştirirDurum Çubuğunu DeğiştirirToplam süreDönüşümlerHer dosyayı yüklemeye çalışırGeri alırBilinmeyen OpenGL hatası (%d)Komut satırı seçenekleri için 'gliv --help' i kullanın Hızlı yardıma 'h' ye basarak ya da menüyü kullanarak erişilebilinir.Dikey çevirirYanlış URI biçemi: %d (8'in yerine)Yanlış URI uzunluğu: %dZum, Shift tuşu ve ilk fare düğmesi basılı iken fareyi dikey hareket ettirerek de yapılabilir.Zum imleci ortalarZumlarGeri zumlara :Alfa denetimlerini göstermeyi değiştiriralfa kanalıalfa1 karosu: mavi kanalalfa1 karosu: yeşil kanalalfa1 karosu: kırmızı kanalalfa2 karosu: mavi kanalalfa2 karosu: yeşil kanalalfa2 karosu: kırmızı kanalb : Menü çubuğunu göstermeyi değiştirirartalan: mavi kanalartalan: yeşil kanalartalan: kırmızı kanalc :Geçmişi silerd :İmleci gizlere :Dikey çeviriröğelerf : Tam ekran/pencerefpsglXMakeCurrent() başarısızh : Yardım kutusunu göstermeyi değiştiriri : Bilgi çubuğunu göstermeyi değiştirirl :Görüntüyü pencere kadar küçültüryükleniyorm: Görüntüyü pencereye uydururmilisaniyen/p : Sonraki/ önceki görüntüo :Açma iletişimini gösterirpikselr :Konumu ve boyutu ilk durumuna getirirs :Kaydırma çubuğunu göstermeyi değiştirirsaniyelert :Seçenekler iletişimini gösteriru :Geri alırgenişlik x uzunluky :Yinelerz :Yatay çevirirzum% (açı)gliv-1.9.7/po/quot.sed0000644000076400007640000000023111465576131012047 0ustar ggs/"\([^"]*\)"/“\1”/g s/`\([^`']*\)'/‘\1’/g s/ '\([^`']*\)' / ‘\1’ /g s/ '\([^`']*\)'$/ ‘\1’/g s/^'\([^`']*\)' /‘\1’ /g s/“”/""/g gliv-1.9.7/po/ru.gmo0000644000076400007640000006054311465576131011530 0ustar ggQ0"1#T'x%#*Ne  4 ? KX` ~1:I d)$ $2/:js 2*, W x + @1 r  ! &,S X d oy!  ,/JO_/n?  ** U`}) : S h ~        !!!7! I!V!q!!y!!!! !!"! ""'" 9"E"c"h""""""""""##*#E#[#r##,# ###$ %$0$%A$g$w$$$$$$:%$B%g%< &)G&+q&&&&&&& ''0'H' Q' ['f'v'K''''k ( x(#((\()5)=)+F) r))))))*'*D*]*w*** *****++#!+E+']+'+'++&+ ,, .,O, V,)w,,#,, ,+,$- 3-A- Z-h-.R/Yc///@/'20TZ0K0009,1Af111131'282T2)p22C223303W?335343445R4Y4#4:5DA5c5256$/6;T6H666i7r77477;75$8aZ868T86H99?909&:,:&G:Sn:C:;;+;+;<,2<)_<><1<;<:6=q=#z=.=.=%=/">R>m>/>>I>> ?:L????l?/7@g@/@A0APA<KB!BBKBB CTLC)CmC(9D<bD>D9D-EFESdEWE9F<JF<F4FUF&OG vGGGGG GG*H..HN]H HH.HI(%I(NIwI0IIIAI 3J4>JsJ J:JJ,K-K$MKrK+K,K+K,L5LFL%bL%L9L-L8M8OM0MJM#N+(NJTN8NN>N)O!OPO$.PQSP2PKP&$QbKQEQQcR4FS6{SSSSOT$bT3T=T?T99UsUUUU5UV5VV/ W;W+ X69X#pXXfvYYYZZ^Z)tZ-Z-Z)Z-$[-R[>[[![![*!\$L\q\\3\\/\ ]]C] ^]@]J]S ^_^Qp^^I^F%_l_B{_H_`9` P`q`B```7 a BaTfO(qP_@Hh x^+7FwCy '[~$`1Ig=n-*0dlXY5 ru!D/eo&>Rm{Wv N4 z"]#B)a%VJ;p2,:Z3st<8cSkEMi.\bGA9|j}6U Q?KL# Configuration file for GLiv %s # Option names are case sensitive. # Option values are case insensitive. %.3f%% (%.3f deg%s)%s is not a GLiv collection%s not while loading an image %s while loading %s %s: image cannot be compressed twice %s: unknown decompressed extension %s: unknown extension %s: unknown extension (none) +/=/- : Zoom in/in/outAbout...Action on every imageAction on the current imageActionsAlpha 1Alpha 2Alpha checksAlpha checks in the backgroundAutomatic window resizingBackgroundBottom leftBottom rightBrowserBuild images menus at startupBuild mipmapsC-down : Rotate by -90 degreesC-left : Rotate by +0.1 degreeC-right: Rotate by -0.1 degreeC-up : Rotate by +90 degreesCannot find an appropriate visual, try glxinfo(1)Cannot load %sCannot parse geometry: %s Cannot set the OpenGL capabilityCannot sort and shuffle at the same time Cannot use a thread CenterCheck for OpenGL errorsChoose a collection to loadChoose a file to save the collectionClear historyCommandCommand line flags should be on or off, not %s CommandsConfiguration fileConfirm before quittingControls...Current image directory...Delay before hiding the cursorDelay before hiding the cursor 0: feature disabledDelay between imagesDelay between images during the slide showDelete : Delete the current fileDirectoriesDisplay info about the imageDisplay scrollbarsDisplay the menu barDitheringDo not ask againDo you really want to delete this file? %s Do you really want to quit GLiv?Draw a rectangle with the third button and gliv will zoom in it.ESC, q : QuitEdit ActionEdit actions...Elapsed timeEnable OpenGL filteringEnable transitionsEnable transitions between imagesEnter an image number:Failed to create a new processFatal error: GL_MAX_TEXTURE_SIZE = %d FileFirst imageFit heightFit widthFullscreen modeGL_MAX_TEXTURE_SIZE must be >= 64GLiv about boxGLiv helpGLiv in fullscreenGLiv versionGLiv won't write a collection to a terminal GLiv: Select a folder to openGLiv: Select files to openHelpHide the cursorHistory lengthHistory length 0: feature disabled -1: infiniteHorizontal flipIgnoring initial geometry (%s) as fullscreen mode is requested Image fit windowImagesImages menusIn the command field, printf like substitutions can be used: %d Path to the current file directory %b Current file name %f Path to the current file %% A litteral % Initial image positionInserting files...InterfaceKeep only one image in memoryKeep transfo between imagesKeep transformations when switching imagesLast imageLast/First image notice timeLoad collection...Load next imageLoad previous imageLoad the Nth image...Loading collection: %sLoading errorsM : Maximize the image to the windowMake mnemonics for images menusMake the slide show loopMaximize small imageMaximize small imagesMaximum framerateMaximum framerate -1: infiniteMenu bar enabledMoveMove downMove leftMove rightMove upNONENameNo image foundNo image loadedNo images to put in a collection Open directory...Open in GimpOpen thumbnails browser...Open...OpenGL error in %s() at %s:%d: %sOpenGL not supportedOptionsOptions will be savedOptions...Overwrite "%s" ?Pause : Start/stop the slide showQuitRebuild images menusRebuild this menuRebuilding:Recursive directory traversalRedoReload the current imageRemaining timeRemove the current fileResetRotate +0.1 degRotate +90 degRotate -0.1 degRotate -90 degRotationSame as previousSave collection...Save options nowSave options when quittingSaving collection: %sScale down large imageScale down large imagesScrollbars enabledSee http://guichaz.free.fr/gliv for updates.Set positionSet this window as serverShow thumbnails in images menusShuffle images listSlide showSort images listSpace and Backspace act like n and p.Standard outputStart in full screen modeStart the slide showStart with the slide showStatus bar enabledStop rebuilding the images menuStop the slide showThe action '%s' terminated with a non-null return code: %dThe action name '%s' is already usedThe first mouse button and the arrow keys will move the image unless the Control key is pressed. In which case the image will be rotated around the window center.The following errors occurred while loading the next image: This configuration file has been read: %sThis configuration file will be written: %sThumbnail heightThumbnail widthThumbnails browserToggle Alpha checksToggle Fullscreen modeToggle Menu BarToggle ScrollbarsToggle Status BarToggle floating windowsTop leftTop rightTotal timeTransformationsTransition durationTransitions obey the maximum framerate parameter in the Transformations tabTry to load every fileUndoUnknown OpenGL error (%d)Use 'gliv --help' to show command line options. A quick help is accessible by typing 'h' or using the menu.Vertical flipWrong URI format: %d (instead of 8)Wrong URI length: %dYou can also zoom by dragging the mouse vertically while holding Shift and the first button.Zoom centered on pointerZoom inZoom outa : Toggle display of the alpha checksalpha channelalpha1 tile: blue channelalpha1 tile: green channelalpha1 tile: red channelalpha2 tile: blue channelalpha2 tile: green channelalpha2 tile: red channelb : Toggle display of the menu barbackground: blue channelbackground: green channelbackground: red channelc : Clear the historyd : Hide the cursordirectorydirectory/filee : Vertical flipelementsf : Full-screen/windowfilefpsg : Display the image selectorglXMakeCurrent() failedh : Toggle display of the help boxi : Toggle display of the info barl : Reduce the image to the windowloadingm : Make the image fit the windowmillisecondsn/p : Next/previous imageo : Display the open dialogpixelsr : Reset position and sizes : Toggle display of the scrollbarssecondst : Display the options dialogtransition from `%s' to `%s'u : Undow : Toggle display of floating windowswidth x heighty : Redoz : Horizontal flipzoom% (angle)Project-Id-Version: GLiv 1.9 Report-Msgid-Bugs-To: guichaz@gmail.com POT-Creation-Date: 2010-04-19 00:52+0200 PO-Revision-Date: 2006-03-25 15:45+0300 Last-Translator: Alexei V. Mezin Language-Team: Russian MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Poedit-Language: Russian X-Poedit-Country: RUSSIAN FEDERATION # Настройки GLiv %s # Имена параметров чувствительны к регистру. # Значения параметров чувствительны к регистру. %.3f%% (%.3f deg%s)%s не GLiv-коллекция%s не во время загрузки изображения %s во время загрузки %s %s: изображение не может быть упаковано дважды %s: неизвестное распакованное расширение %s: неизвестное расширение %s: неизвестное расширение (нет) +/=/- : Увеличить/исходный/уменьшитьО программе...Дейсвтия над всеми файламиДействия над текущим файломДействияЦвет "шашечек" 1Цвет "шашечек" 2"Шашечки" прозрачности"Шашечки" в фонеАвтоматически изменять размеры окнаФонСнизу слеваСнизу справаБраузерСоздать меню изображений при запуске программыСоздавать MipmapsC-down : Вращение на -90 градусовC-left : Вращение на +0.1 градусаC-right : Вращение на -0.1 градусаC-up : Вращение на +90 градусовНе могу найти подходящий рендер, проверьте glxinfo(1)Не могу загрузить %sНе могу распознать геометрию: %s Не могу использовать возможность OpenGLНевозможно отстортировать и перемешать одновременно Не могу использовать поток По центруПроверка ошибок OpenGLВыберите коллекцию для загрузкиВыберите файл для сохранения коллекцииОчистить историюКомандаПараметры коммандной строки должны быть 'on' или 'off', а не %s КомандыФайл настроекПодтверждение перед выходомУправление...Текущий каталог с изображениямиПауза перед скрытием курсораЗадержка перед скрытием курсора 0 : функция отключенаЗадержка между изображениямиЗадержка смены изображении в режиме слайд-шоуDelete : Удалить текущий файлДиректорииПоказать информацию о изображенииПоказать полосы прокруткиПоказать строку менюРастрированиеБольше не спрашиватьВы действительно хотите удалить этот файл? %s Вы действительно хотите выйти из GLiv? Выделите прямоугольник третьей (правой) кнопкой мышки и Gliv увеличит отмеченную область.ESC, q : ВыходРедактировать действиеРедактировать действияПрошло времениВключить OpenGL фильтрациюРазрешить перетеканиеВключить перетекание изображенийВведите номер изображения:Ошибка создания нового процессаФатальная ошибка: GL_MAX_TEXTURE_SIZE = %d ФайлПервое изображениеМасштабировать по высотеМасштабировать по ширинеПолноэкранный режимGL_MAX_TEXTURE_SIZE должен быть >= 64О программе GLivСправка GLivGLiv в полноэкранном режимеВерсия GLivGLiv не будет писать коллекцию в терминал GLiv : выберите каталог для открытияGLiv : выберите файлы для загрузкиСправкаСкрыть курсорДлина историиДлина истории 0 : функция отключена -1 : неограниченная длинаГоризонтальное отражениеИгнорирую начальную геометрию (%s) так как включен полноэкранный режим Изображение в размер окнаИзображенияМеню изображенийВ поле команды можно использовать printf-подобные подстановки: %d Путь до текущего каталога %b Имя файла %f Путь до текущего файла %% Символ % Начальное положение изображенияДобавляются файлыИнтерфейсХранить в памяти только одно изображениеПродолжать перетекание изображенийПродолжать перетекание при смене изображенийПоследнее изображениеВремя отображения сообщения "первое/последнее изображение"Загрузить коллекцию...Загрузить следующее изображениеЗагрузить предыдущее изображениеЗагрузить изображение номер N...Загружается коллекция: %sЗагрузка ошибокM : Увеличить изображение до размеров окнаСоздавать горячие клавиши для меню изображенийБесконечно повторять слайд-шоуУвеличить маленькие изображенияУвеличить маленькие изображенияМаксимальная частота кадровМаксимальная частота кадров -1: неограниченнаяСтрока меню включенаСдвигСдвинуть внизСдвинуть влевоСдвинуть вправоСдвинуть вверхПустоИмяИзображений не найденоИзображения не загруженыНет изображений для помещения в коллекцию Открыть каталог...Открыть в GimpОткрыть браузер миниатюрОткрыть...Ошибка OpenGL в %s() в %s:%d: %sOpenGL не поддерживаетсяНастройкиНастройки будут сохраненыНастройки...Перезаписать "%s" ?Пауза : запустить/прервать слайдшоуВыходПеречитать меню изображенийПеречитать менюПерестройка меню:Рекурсивный просмотр каталоговПовторитьПеречитать текущий файлОсталось времениУдалить данный файлСброситьПовернуть на +0.1 градусаПовернуть на +90 градусовПовернуть на -0.1 градусаПовернуть на -90 градусовВращениеКак предыдущееСохранить коллекциюСохранить настройкиСохранить настройки при выходеСохраняется коллекция: %sУменьшить большие изображенияУменьшить большие изображенияПолосы прокрутки включеныСмотрите новые версии на http://guichaz.free.fr/gliv Установить позициюПерейти в режим сервераПоказывать миниатюры в меню изображенийПеремешать список изображенийСлайд-шоуОтсортировать список изображенийКлавиши Space (пробел) и Backspace (возврат курсора) действуют аналогично клавишам n и p.Стандартный выводЗапускать программу в полноэкранном режимеЗапустить слайд-шоуЗапустить слайд-шоу после запуска программыСтрока информации включенаОстановить перестройку меню изображенийОстановить слайд-шоуДействие '%s' завершилось с ненулевым кодом возврата: %dДействие с именем '%s' уже используетсяПервая кнопка мышки и клавиши-стрелки двигают изображение. При нажатой клавише Control они вращают изображение относительно центра.При загрузке изображения произошли следующие ошибки: Был прочитан файл настроек %sБудет записан файл настроек %sВысота миниатюрыШирина миниатюрыБраузер миниатюрПоказать/скрыть информацию об альфа-каналеНа весь экран/в окнеПоказать/скрыть строку менюПоказать/скрыть полосы прокруткиПоказать/скрыть строку информацииПоказать/скрыть плавающие окнаСверху слеваСверху справаВсего времениПреобразованияДлительность преобразованияПеретекание зависит от максимальной частоты кадров, установленной на закладке "Преобразования".Пытаться загрузить все файлыОтменитьНеизвестная ошибка OpenGL (%d)Запустите 'gliv --help' чтобы посмотреть опции командной строки. Краткую справку можно получить нажав 'h' или через меню.Вертикальное отражениеНеверный URI формат: %d (вместо 8)Неверная длина URI: %dИзменить размеры изображения можно двигая мышкой вертикально одновременно с нажатыми клавишей Shift и первой кнопкой мышки.Изменить размер относительно точки, указанной курсоромУвеличитьУменьшитьa : Показать/скрыть информацию об альфа-каналеальфа-канал"Шашечки 1": синий канал"Шашечки 1": зеленый канал"Шашечки 1": красный канал"Шашечки 2": синий канал"Шашечки 2": зеленый канал"Шашечки 2": красный каналb : Показать/скрыть строку менюфон: синий каналфон: зеоеный каналфон: красный каналc : Очистить историюd : Скрыть курсоркаталогКаталог/файлe : Отразить по вертикалиэлементыf : На весь экран/В окнефайлfpsg : Показать загрузчик изображенийОшибка в glXMakeCurrent()h : Показать/скрыть окно справкиi : Показать/скрыть строку информацииl : Уменьшить изображение до размеров окназагрузкаm : Изменить изображение до размеров окнамиллисекундыn/p : Следующее/предыдущее изображениеo : Показать диалог открытия файловпикселиr : Восстановить позицию и размерs : Показать/скрыть полосы прокруткисекундыt : Показать диалог настроекпереход из `%s' в `%s'u : Отменитьw : Скрыть/показать плавающие окнаширина x высотаy : Повторитьz : Отразить по горизонталиувеличение% (угол)gliv-1.9.7/po/pt_BR.gmo0000644000076400007640000003475111465576131012112 0ustar gg4L h"i#''%<#b  2=E cq1. I)j$ / (C2b*  +$ P@q  &  "!2T cm /?1B IV is)+@Vh    ).C Ua !8P cp %/I\|L<};ARbv )k< #\Lem+v  3 'L t       !!/!3!'K!'s!'!!&! !! "=" D")e""#"" "" "# #}*#+$4$; %E%[%#u%%2%(%&$#&(H&q&z&&&!&'&& &-'.'?'\'y'';'' (*%(.P(!((((?() $)1) D)8e)),) ))* *&*(<*e*E* ***%* +(+ 8+Y+"i+ + ++ ++++9+*,?:,z,,,, ,#,,--(6-&_------..*.>.Q.a.h...... .... //+/3/B/ Z/d/y////////020!B0%d0000&001)1B1']11?11;2v2 =3G3]3t33333 33 4/4842V4~4 5$5;5hV55 5 505 #6/6H6b6666*66717P7k77 7777+71 8%;8 a8%l8 88.88!8/9F9!O9q999999h =ClI-k' gbXt_d{Q0)F:r[}<L3%8 ;ifWsHS(j9>?# ^n`y@+|4OuxZM"ApeV\Dzw q5oTY7J&Bc6m NRG!*E2.P~v$],a1K/U# Configuration file for GLiv %s # Option names are case sensitive. # Option values are case insensitive. %.3f%% (%.3f deg%s)%s is not a GLiv collection%s not while loading an image %s while loading %s %s: image cannot be compressed twice %s: unknown decompressed extension %s: unknown extension %s: unknown extension (none) +/=/- : Zoom in/in/outAbout...Alpha 1Alpha 2Alpha checksAlpha checks in the backgroundAutomatic window resizingBackgroundBrowserBuild images menus at startupBuild mipmapsC-down : Rotate by -90 degreesC-left : Rotate by +0.1 degreeC-right: Rotate by -0.1 degreeC-up : Rotate by +90 degreesCannot find an appropriate visual, try glxinfo(1)Cannot load %sCannot parse geometry: %s Cannot set the OpenGL capabilityCannot sort and shuffle at the same time Choose a collection to loadChoose a file to save the collectionClear historyCommand line flags should be on or off, not %s CommandsControls...Current image directory...Delay before hiding the cursorDelay before hiding the cursor 0: feature disabledDelay between imagesDelay between images during the slide showDirectoriesDisplay scrollbarsDisplay the menu barDitheringDo not ask againDo you really want to delete this file? %s Do you really want to quit GLiv?Draw a rectangle with the third button and gliv will zoom in it.ESC, q : QuitElapsed timeEnable transitionsFatal error: GL_MAX_TEXTURE_SIZE = %d FileFirst imageFit widthFullscreen modeGL_MAX_TEXTURE_SIZE must be >= 64GLiv about boxGLiv helpGLiv in fullscreenGLiv versionHelpHide the cursorHistory lengthHistory length 0: feature disabled -1: infiniteHorizontal flipIgnoring initial geometry (%s) as fullscreen mode is requested Image fit windowImagesImages menusInserting files...InterfaceKeep only one image in memoryLoad collection...Load next imageLoad previous imageM : Maximize the image to the windowMake mnemonics for images menusMake the slide show loopMaximize small imageMaximize small imagesMaximum framerateMaximum framerate -1: infiniteMenu bar enabledMove downMove leftMove rightMove upNONENo image foundNo image loadedOpen...OpenGL not supportedOptionsOptions will be savedOptions...QuitRebuild images menusRebuild this menuRebuilding:Recursive directory traversalRedoRemaining timeRemove the current fileResetRotate +0.1 degRotate +90 degRotate -0.1 degRotate -90 degRotationSave collection...Saving collection: %sScale down large imageScale down large imagesScrollbars enabledSet positionSet this window as serverShow thumbnails in images menusShuffle images listSlide showSort images listSpace and Backspace act like n and p.Start in full screen modeStart the slide showStart with the slide showStatus bar enabledStop rebuilding the images menuStop the slide showThe --client and --client-clear command line options are mutually exclusive The first mouse button and the arrow keys will move the image unless the Control key is pressed. In which case the image will be rotated around the window center.The following errors occurred while loading the next image: The mouse wheel zooms the image, and when you hold its button pressed at the same time it switches to the neighbouring image.ThumbThumbnail heightThumbnail widthToggle Alpha checksToggle Fullscreen modeToggle Menu BarToggle ScrollbarsToggle Status BarTotal timeTransformationsTry to load every fileUndoUnknown OpenGL error (%d)Unknown option in configuration file: %s Use 'gliv --help' to show command line options. A quick help is accessible by typing 'h' or using the menu.Vertical flipWrong URI format: %d (instead of 8)Wrong URI length: %dYou can also zoom by dragging the mouse vertically while holding Shift and the first button.Zoom centered on pointerZoom inZoom outa : Toggle display of the alpha checksalpha channelalpha1 tile: blue channelalpha1 tile: green channelalpha1 tile: red channelalpha2 tile: blue channelalpha2 tile: green channelalpha2 tile: red channelb : Toggle display of the menu barbackground: blue channelbackground: green channelbackground: red channelc : Clear the historyd : Hide the cursore : Vertical flipelementsf : Full-screen/windowfpsglXMakeCurrent() failedh : Toggle display of the help boxi : Toggle display of the info barl : Reduce the image to the windowloadingm : Make the image fit the windowmillisecondsn/p : Next/previous imageo : Display the open dialogpixelsr : Reset position and sizes : Toggle display of the scrollbarssecondst : Display the options dialogtransition from `%s' to `%s'u : Undowidth x heighty : Redoz : Horizontal flipzoom% (angle)Project-Id-Version: gliv 1.8 Report-Msgid-Bugs-To: guichaz@gmail.com POT-Creation-Date: 2010-04-19 00:52+0200 PO-Revision-Date: 2004-02-12 23:30-0200 Last-Translator: Alexandre Folle de Menezes Language-Team: Brazilian Portuguese MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8-bit # Arquivos de configurao para o GLiv %s # Nomes de opo diferenciam maisculas/minsculas. # Valores de opo no diferenciam maisculas/minsculas. %.3f%% (%.3f graus%s)%s no uma coleo GLiv%s no enquanto carrega uma imagem %s ao carregar %s %s: uma imagem no pode ser comprimida duas vezes %s: extenso descomprimida desconhecida %s: extenso desconhecida %s: extenso desconhecida (nenhuma) +/=/- : Aumentar/aumentar/diminuir zoomSobre...Alpha 1Alpha 2Verificaes alphaVerificar alpha no plano de fundoRedimensionamento automtico de janelasPlano de fundoNavegadorConstri os menus de imagens na inicializaoConstri MipmapsC-down : Rotaciona -90 grausC-left : Rotaciona +0.1 grauC-right: Rotaciona -0.1 grauC-up : Rotaciona +90 grausImpossvel encontrar um visual apropriado, tente glxinfo(1)No pude carregar %sNo pude entender o tamanho: %s Impossvel definir uma "capability" OpenGLNo posso ordenar e embaralhar ao mesmo tempo Escolha uma coleo para carregarEscolha um arquivo para salvar a coleoLimpar histricoParmetros de linha de comando devem ser "on" ou "off", no %s ComandosControles...Diretrio atual...Pausa antes de esconder o cursorPausa antes de esconder o cursor 0: recurso desabilitadoPausa entre imagensPausa entre imagens durante o show de slidesDiretriosMostrar barras de rolagemMostrar a barra do menuDitheringNo perguntar de novoQuer realmente remover este arquivo? %s Quer realmente sair do GLiv?Desenhe um retngulo com o terceiro boto e o GLiv ir ampliar a reaESC, q : SairTempo decorridoHabilita transiesErro fatal: GL_MAX_TEXTURE_SIZE = %d ArquivoPrimeira imagemAjustar zoom largura da janelaModo tela cheiaGL_MAX_TEXTURE_SIZE deve ser >= 64Sobre o GLivAjuda GLivGLiv em tela cheiaGLiv versoAjudaEsconder o cursorTamanho do histricoTamanho do histrico 0: recurso desabilitado -1: infinitoFlip horizontalIgnorando tamanho inicial (%s) pois foi pedido modo tela-cheia Ajustar a imagem janelaImagensMenus de imagensInserindo arquivos...InterfaceManter apenas uma imagem na memriaCarregar coleo...Carregar prxima imagemCarregar imagem anteriorM : Maximiza a imagem para a janelaFazer mnemnicos para menus de imagensCiclar o show de slidesMaximizar imagem pequenaMaximiza imagens pequenasFramerate mximoFramerate mximo -1: infinitoBarra de menu habilitadaMover para baixoMover para esquerdaMover para direitaMover para cimaNENHUMNenhuma imagem encontradaNenhuma imagem carregadaAbrir...OpenGL no suportadoOpesOpes sero salvasOpes...SairRefazer menus de imagensRefaz este menuReconstruindo:Varre diretrioRefazerTempo restanteRemover o arquivo atualRestaurarRotacionar +0.1 grauRotacionar +90 grausRotacionar -0.1 grauRotacionar -90 grausRotaoSalvar coleo...Salvando coleo: %sDiminuir imagem grandeReduz imagens grandesBarras de rolagem habilitadasAjustar posioDefinir esta janela como servidorMostra miniaturas em menus de imagensEmbaralhar lista de imagensShow de slidesOrdenar lista de imagensEspao e Backspace agem como 'n' e 'p'Iniciar no modo tela cheiaIniciar o show de slidesComear o show de slidesBarra de status habilitadaParar reconstruo dos menus de imagensParar o show de slidesAs opes --client e --client-clear so mutualmente exclusivas O primeiro boto do mouse e as teclas do cursor movem a imagem a no ser que a tecla Control esteja pressionada. Neste caso a imagem ir girar em torno do ventro da janela.Os sequintes erros ocorreram ao carregar a prxima imagem: A roda do mouse d zoom na imagem, e ao manter o seu boto pressionado ao mesmo tempo ela troca para a imagem vizinha.MiniaturaAltura das miniaturasLargura das miniaturasAlternar verificao AlphaAlternar modo Tela-CheiaAlternar Barra de MenuAlternar Barras de RolagemAlternar Barra de StatusTempo totalTransformaesTenta carregar todos os arquivosDesfazerErro OpenGL desconhecido (%d)Opo desconhecida no arquivo de configuraao: %s Use 'gliv --help' para obter as opes de linha de comando. Uma ajuda resumida est disponvel digitando 'h' ou usando o menu.Flip verticalFormato URI errado: %d (em vez de 8)Comprimento URI errado: %dVoc pode fazer zoom tambm arrastando o mouse verticalmente enquanto pressiona Shift e o primeiro botoZoom centralizado no ponteiroMais zoomMenos zooma : Alterna exibio das verificaes alphacanal alphabloco alpha1: canal azulbloco alpha1: canal verdebloco alpha1: canal vermelhobloco alpha2: canal azulbloco alpha2: canal verdebloco alpha2: canal vermelhob : Alterna exibio da barra de menuplano de fundo: canal azulplano de fundo: canal verdeplano de fundo: canal vermelhoc : Limpa o histricod : Esconde o cursore : Flip verticalelementosf : Tela-cheia/janelafpsglXMakeCurrent() falhouh : Alterna exibio da caixa de ajudai : Alterna exibio da barra de informaesl : Reduz a imagem para a janelacarregandoM : Faz a imagem caber na janelamilisegundosn/p : Prxima/prvia imagemo : Mostra a caixa de abertura de arquivopixelsr : Reseta posio e tamanhos : Alterna exibio das barras de rolagemsegundost : Mostra a caixa de opestransio de `%s' para `%s'u : Desfazerlargura x alturay : Refazerz : Flip horizontalzoom% (ngulo)gliv-1.9.7/po/ro.po0000644000076400007640000006653211465576131011362 0ustar gg# Mesajele n limba romn pentru pachetul gliv. # Copyright (C) 2003 Free Software Foundation, Inc. # Acest fiier este distribuit sub aceeai licen ca pachetul gliv. # Eugen Hoanca , 2003. # msgid "" msgstr "" "Project-Id-Version: gliv 1.8\n" "Report-Msgid-Bugs-To: guichaz@gmail.com\n" "POT-Creation-Date: 2010-04-19 00:52+0200\n" "PO-Revision-Date: 2003-11-29 08:30+0200\n" "Last-Translator: Eugen Hoanca \n" "Language-Team: Romanian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" #: src/actions.c:121 msgid "Failed to create a new process" msgstr "" #: src/actions.c:126 #, c-format msgid "The action '%s' terminated with a non-null return code: %d" msgstr "" #: src/actions.c:230 msgid "Open in Gimp" msgstr "" #: src/actions.c:333 #, c-format msgid "The action name '%s' is already used" msgstr "" #: src/actions.c:463 src/glade_actions.c:165 src/tree_browser.c:211 msgid "Name" msgstr "" #: src/actions.c:464 src/glade_actions.c:172 #, fuzzy msgid "Command" msgstr "Comenzi" #: src/collection.c:152 msgid "Choose a file to save the collection" msgstr "Alegei un fiier n care s se salveze colecia" #: src/collection.c:159 #, c-format msgid "Overwrite \"%s\" ?" msgstr "" #: src/collection.c:238 msgid "Elapsed time" msgstr "Timp trecut" #: src/collection.c:239 msgid "Remaining time" msgstr "Timp rmas" #: src/collection.c:240 msgid "Total time" msgstr "Timp total" #: src/collection.c:247 src/collection.c:637 #, c-format msgid "Saving collection: %s" msgstr "Salvare colecie: %s" #: src/collection.c:250 src/collection.c:1044 #, fuzzy, c-format msgid "Loading collection: %s" msgstr "Salvare colecie: %s" #: src/collection.c:366 msgid "Inserting files..." msgstr "Se insereaz fiierele..." #: src/collection.c:615 #, fuzzy msgid "No images to put in a collection\n" msgstr "%s nu este o colecie GLiv" #: src/collection.c:622 msgid "GLiv won't write a collection to a terminal\n" msgstr "" #: src/collection.c:643 msgid "Standard output" msgstr "" #: src/collection.c:1064 #, c-format msgid "%s is not a GLiv collection" msgstr "%s nu este o colecie GLiv" #: src/collection.c:1077 msgid "Choose a collection to load" msgstr "Alegei o colecie de ncrcat" #: src/files_list.c:499 #, c-format msgid "" "Do you really want to delete this file?\n" "%s\n" msgstr "" "Sigur dorii s tergei acest fiier?\n" "%s\n" #: src/files_list.c:523 #, fuzzy msgid "directory/file" msgstr "Directoare" #: src/gl_widget.c:130 #, c-format msgid "Wrong URI format: %d (instead of 8)" msgstr "Format URI greit: %d (n loc de 8)" #: src/gl_widget.c:135 #, c-format msgid "Wrong URI length: %d" msgstr "Lungime greit de URI: %d" #: src/gl_widget.c:227 #, c-format msgid "Fatal error: GL_MAX_TEXTURE_SIZE = %d\n" msgstr "Eroare fatal: GL_MAX_TEXTURE_SIZE = %d\n" #: src/gl_widget.c:231 msgid "GL_MAX_TEXTURE_SIZE must be >= 64" msgstr "GL_MAX_TEXTURE_SIZE trebuie s fie >= 64" #: src/gl_widget.c:257 msgid "glXMakeCurrent() failed" msgstr "glXMakeCurrent() euat" #: src/gl_widget.c:310 msgid "OpenGL not supported" msgstr "OpenGL nesuportat" #: src/gl_widget.c:321 msgid "Cannot find an appropriate visual, try glxinfo(1)" msgstr "Nu se poate gsi mediu vizual potrivit, ncercai glxinfo(1)" #: src/gl_widget.c:328 msgid "Cannot set the OpenGL capability" msgstr "Nu se pot seta capacitile OpenGL." #: src/gl_widget.c:366 #, c-format msgid "Unknown OpenGL error (%d)" msgstr "Eroare necunoscut OpenGL (%d)" #: src/gl_widget.c:370 #, c-format msgid "" "OpenGL error in %s() at %s:%d:\n" "%s" msgstr "" #: src/glade_actions.c:43 #, fuzzy msgid "Actions" msgstr "Opiuni" #: src/glade_actions.c:149 msgid "Edit Action" msgstr "" #: src/glade_actions.c:206 msgid "" "In the command field, printf like substitutions can be used:\n" "%d\t\tPath to the current file directory\n" "%b\t\tCurrent file name\n" "%f\t\tPath to the current file\n" "%%\t\tA litteral %\n" msgstr "" #: src/glade_image_nr.c:45 src/menus.c:417 #, fuzzy msgid "Load the Nth image..." msgstr "ncarc imaginea urmtoare" #: src/glade_image_nr.c:65 msgid "Enter an image number:" msgstr "" #: src/glade_image_nr.c:81 #, fuzzy msgid "directory" msgstr "Directoare" #: src/glade_image_nr.c:87 #, fuzzy msgid "file" msgstr "Fiier" #: src/glade_options.c:138 src/menus.c:503 msgid "Options" msgstr "Opiuni" #: src/glade_options.c:174 #, fuzzy msgid "Save options now" msgstr "Salveaz opiunile n ~/.glivrc" #: src/glade_options.c:178 src/rcfile.c:116 #, fuzzy msgid "Save options when quitting" msgstr "Salveaz opiunile n ~/.glivrc" #: src/glade_options.c:193 #, fuzzy msgid "Configuration file" msgstr "" "# Fiier de configurare pentru GLiv %s\n" "\n" #: src/glade_options.c:215 msgid "Scrollbars enabled" msgstr "Barele de scroll activate" #: src/glade_options.c:222 msgid "Fullscreen mode" msgstr "Mod ecran mare (fullscreen)" #: src/glade_options.c:229 msgid "Menu bar enabled" msgstr "Bara de meniuri activat" #: src/glade_options.c:236 msgid "Status bar enabled" msgstr "Bara de stare activat" #: src/glade_options.c:243 src/rcfile.c:115 msgid "Confirm before quitting" msgstr "" #: src/glade_options.c:250 src/rcfile.c:114 msgid "Automatic window resizing" msgstr "Micorare/Mrire(resizing) automat al ferestrei" #: src/glade_options.c:261 msgid "" "Delay before hiding the cursor\n" "0: feature disabled" msgstr "" "ntrziere naintea ascunderii cursorului\n" "0: caracteristic dezactivat" #: src/glade_options.c:274 src/glade_options.c:587 src/glade_options.c:634 msgid "milliseconds" msgstr "milisecunde" #: src/glade_options.c:279 msgid "Interface" msgstr "Interfa" #: src/glade_options.c:290 src/rcfile.c:99 msgid "Scale down large images" msgstr "Micoreaz la scar imaginile mari" #: src/glade_options.c:297 src/rcfile.c:98 msgid "Maximize small images" msgstr "Maximizeaz imaginile mici" #: src/glade_options.c:304 src/rcfile.c:108 msgid "Build mipmaps" msgstr "Construiete Mipmaps" #: src/glade_options.c:311 src/rcfile.c:105 msgid "Dithering" msgstr "Dithering" #: src/glade_options.c:318 src/rcfile.c:111 msgid "Keep only one image in memory" msgstr "Pstreaz n memorie doar o singur imagine" #: src/glade_options.c:325 src/rcfile.c:120 #, fuzzy msgid "Check for OpenGL errors" msgstr "Eroare necunoscut OpenGL (%d)" #: src/glade_options.c:332 src/rcfile.c:121 msgid "Enable OpenGL filtering" msgstr "" #: src/glade_options.c:339 src/images_menus.c:330 src/images_menus.c:479 #: src/menus.c:521 msgid "Images" msgstr "Imagini" #: src/glade_options.c:352 src/rcfile.c:107 msgid "Build images menus at startup" msgstr "Construiete meniurile imaginilor la nceput" #: src/glade_options.c:357 src/rcfile.c:109 msgid "Make mnemonics for images menus" msgstr "Execut reineri(mnemonics) pentru meniurile imaginilor" #: src/glade_options.c:362 src/rcfile.c:112 msgid "Show thumbnails in images menus" msgstr "Afieaz thumbnail-uri n meniurile imaginilor" #: src/glade_options.c:371 src/glade_options.c:380 msgid "pixels" msgstr "pixeli" #: src/glade_options.c:389 src/rcfile.c:127 msgid "Thumbnail height" msgstr "nlime thumbnail" #: src/glade_options.c:418 src/rcfile.c:126 msgid "Thumbnail width" msgstr "Lime thumbnail" #: src/glade_options.c:427 msgid "Images menus" msgstr "Meniurile imaginilor" #: src/glade_options.c:442 src/rcfile.c:103 msgid "Zoom centered on pointer" msgstr "Zoom centrat pe pointer" #: src/glade_options.c:447 #, fuzzy msgid "Keep transformations when switching images" msgstr "ntrziere ntre imagini" #: src/glade_options.c:456 src/rcfile.c:130 msgid "Initial image position" msgstr "" #: src/glade_options.c:463 src/menus.c:460 msgid "Center" msgstr "" #: src/glade_options.c:464 src/menus.c:461 #, fuzzy msgid "Top left" msgstr "Mut la stnga" #: src/glade_options.c:465 src/menus.c:462 #, fuzzy msgid "Top right" msgstr "Mut la dreapta" #: src/glade_options.c:466 src/menus.c:463 #, fuzzy msgid "Bottom left" msgstr "Mut stnga sus" #: src/glade_options.c:467 src/menus.c:464 #, fuzzy msgid "Bottom right" msgstr "Mut la dreapta" #: src/glade_options.c:468 msgid "Same as previous" msgstr "" #: src/glade_options.c:495 msgid "" "History length\n" "0: feature disabled\n" "-1: infinite" msgstr "" "Lungime istoric\n" "0: caracteristic dezactivat\n" "-1: infinit" #: src/glade_options.c:503 msgid "" "Maximum framerate\n" "-1: infinite" msgstr "" "Rat de cadre maxim\n" "-1: infinit" #: src/glade_options.c:511 msgid "elements" msgstr "elemente" #: src/glade_options.c:519 msgid "fps" msgstr "fps" #: src/glade_options.c:527 src/menus.c:447 msgid "Transformations" msgstr "Transformri" #: src/glade_options.c:542 src/rcfile.c:113 msgid "Start with the slide show" msgstr "ncepe cu slide-show" #: src/glade_options.c:547 src/rcfile.c:110 msgid "Make the slide show loop" msgstr "F ca slide-show-ul s fie ciclic(loop)" #: src/glade_options.c:556 src/rcfile.c:128 msgid "Last/First image notice time" msgstr "" #: src/glade_options.c:563 msgid "Delay between images during the slide show" msgstr "ntrziere ntre imagini n timpul slide-show-ului" #: src/glade_options.c:580 msgid "seconds" msgstr "secunde" #: src/glade_options.c:608 #, fuzzy msgid "Enable transitions between images" msgstr "ntrziere ntre imagini" #: src/glade_options.c:621 src/rcfile.c:129 #, fuzzy msgid "Transition duration" msgstr "Transformri" #: src/glade_options.c:639 msgid "" "Transitions obey the maximum framerate parameter in the Transformations tab" msgstr "" #: src/glade_options.c:644 msgid "Slide show" msgstr "Slide show" #: src/glade_options.c:657 msgid "Alpha 2" msgstr "Alpha 2" #: src/glade_options.c:664 msgid "Alpha 1" msgstr "Alpha 1" #: src/glade_options.c:671 src/glade_options.c:706 msgid "Background" msgstr "Fundal" #: src/glade_options.c:692 msgid "Alpha checks" msgstr "Verificri Alpha" #: src/help.c:102 src/help.c:109 msgid "GLiv help" msgstr "GLiv ajutor" #: src/help.c:163 msgid "GLiv about box" msgstr "GLiv caseta despre" #: src/help_text.c:15 msgid "ESC, q : Quit" msgstr "ESC, q : Ieire" #: src/help_text.c:18 msgid "f : Full-screen/window" msgstr "f : Ecran mare(full-screen)/fereastr" #: src/help_text.c:21 msgid "+/=/- : Zoom in/in/out" msgstr "+/=/- : Mrire/mrire/micorare" #: src/help_text.c:24 msgid "n/p : Next/previous image" msgstr "n/p : Imaginea precedent/urmtoare" #: src/help_text.c:27 #, fuzzy msgid "Pause : Start/stop the slide show" msgstr "ncepe slide-show-ul" #: src/help_text.c:30 msgid "l : Reduce the image to the window" msgstr "l : Reduce imaginea la dimensiunea ferestrei" #: src/help_text.c:33 msgid "M : Maximize the image to the window" msgstr "M : Maximizeaz imaginea la dimensiunile ferestrei" #: src/help_text.c:36 msgid "m : Make the image fit the window" msgstr "m : Potrivete mrimea imaginii n fereastr" #: src/help_text.c:39 msgid "r : Reset position and size" msgstr "r : Reseteaz poziia i mrimea" #: src/help_text.c:42 msgid "b : Toggle display of the menu bar" msgstr "b : Modific(toggle) afiarea barei de meniuri" #: src/help_text.c:45 msgid "i : Toggle display of the info bar" msgstr "i : Modific afiarea barei de info" #: src/help_text.c:48 msgid "s : Toggle display of the scrollbars" msgstr "s : Modific afiarea barelor de scroll" #: src/help_text.c:51 msgid "a : Toggle display of the alpha checks" msgstr "a : Modific afiarea verificrilor de alpha" #: src/help_text.c:54 msgid "h : Toggle display of the help box" msgstr "h : Modific afiarea casetei de ajutor" #: src/help_text.c:57 #, fuzzy msgid "w : Toggle display of floating windows" msgstr "i : Modific afiarea barei de info" #: src/help_text.c:60 msgid "o : Display the open dialog" msgstr "o : Afieaz dialogul de deschidere" #: src/help_text.c:63 #, fuzzy msgid "g : Display the image selector" msgstr "o : Afieaz dialogul de deschidere" #: src/help_text.c:66 msgid "t : Display the options dialog" msgstr "t : Afieaz dialogul de opiuni" #: src/help_text.c:69 msgid "d : Hide the cursor" msgstr "d : Ascunde cursor" #: src/help_text.c:72 msgid "u : Undo" msgstr "u : Ref(Undo)" #: src/help_text.c:75 msgid "y : Redo" msgstr "y : Repet(Redo)" #: src/help_text.c:78 msgid "c : Clear the history" msgstr "c : terge istoricul" #: src/help_text.c:81 #, fuzzy msgid "Delete : Delete the current file" msgstr "x : terge fiierul curent" #: src/help_text.c:84 msgid "C-up : Rotate by +90 degrees" msgstr "C-sus : Rotire cu +90 de grade" #: src/help_text.c:87 msgid "C-down : Rotate by -90 degrees" msgstr "C-jos : Rotire cu -90 de grade" #: src/help_text.c:90 msgid "C-left : Rotate by +0.1 degree" msgstr "C-stnga : Rotire cu +0.1 grade" #: src/help_text.c:93 msgid "C-right: Rotate by -0.1 degree" msgstr "C-dreapta : Rotire cu -0.1 grade" #: src/help_text.c:96 msgid "z : Horizontal flip" msgstr "z : Rsturnare(flip) orizontal" #: src/help_text.c:99 msgid "e : Vertical flip" msgstr "e : Rsturnare(flip) vertical" #: src/help_text.c:104 msgid "" "The first mouse button and the arrow keys will move the image unless the " "Control key is pressed. In which case the image will be rotated around the " "window center." msgstr "" "Primul buton al mouse-ului i tastele-sgei vor muta imaginea cu excepia " "cazului n care tasta Control este apsat. n acest caz imaginea va fi " "rotit n jurul centrului ferestrei." #: src/help_text.c:107 msgid "" "The mouse wheel zooms the image, and when you hold its button pressed at the " "same time it switches to the neighbouring image." msgstr "" #: src/help_text.c:110 msgid "" "You can also zoom by dragging the mouse vertically while holding Shift and " "the first button." msgstr "" "Putei face de asemenea zoom micnd mouse-ul vertical n timpul apsrii " "Shift i primului buton." #: src/help_text.c:113 msgid "Space and Backspace act like n and p." msgstr "Spaiul i Backspace acioneaz ca n i p." #: src/help_text.c:116 msgid "Draw a rectangle with the third button and gliv will zoom in it." msgstr "Deseneaz un dreptunghi cu al treilea buton i glib l va mri." #: src/images_menus.c:82 msgid "Rebuilding:" msgstr "Reconstruire:" #: src/images_menus.c:209 src/images_menus.c:447 src/menus.c:517 msgid "Directories" msgstr "Directoare" #: src/images_menus.c:296 msgid "Current image directory..." msgstr "" #: src/images_menus.c:363 src/menus.c:337 msgid "Rebuild this menu" msgstr "Reconstruiete acest meniu" #: src/images_menus.c:370 src/menus.c:338 #, fuzzy msgid "Open thumbnails browser..." msgstr "Lime thumbnail" #: src/include/about.h:6 msgid "GLiv version" msgstr "GLiv versiunea" #: src/include/about.h:8 msgid "" "Use 'gliv --help' to show command line options.\n" "A quick help is accessible by typing 'h' or using the menu." msgstr "" "Folosii 'gliv --help' Pentru a avea opiunile liniei de comand.\n" "Un ajutor rapid este accesibil apsnd 'h' sau folosind meniul." #: src/include/about.h:10 #, fuzzy msgid "See http://guichaz.free.fr/gliv for updates." msgstr "Vedei http://gliv.tuxfamily.org pentru update-uri." #: src/loading.c:81 #, c-format msgid "%s not while loading an image\n" msgstr "%s nu n timpul ncrcrii unei imagini\n" #: src/loading.c:83 #, c-format msgid "%s while loading %s\n" msgstr "%s n timpul ncrcrii %s\n" #: src/loading.c:102 msgid "alpha channel" msgstr "canal alpha" #: src/loading.c:158 #, c-format msgid "%s: unknown decompressed extension\n" msgstr "%s: extensie de decomprimare necunoscut\n" #: src/loading.c:165 #, c-format msgid "%s: image cannot be compressed twice\n" msgstr "%s: imaginea nu poate fi compresat de dou ori\n" #: src/loading.c:188 #, c-format msgid "%s: unknown extension (none)\n" msgstr "%s: extensie necunoscut (nici una)\n" #: src/loading.c:197 #, c-format msgid "%s: unknown extension\n" msgstr "%s: extensie necunoscut\n" #: src/loading.c:291 src/next_image.c:280 #, c-format msgid "Cannot load %s" msgstr "Nu am putut ncrca %s" #: src/main.c:65 #, c-format msgid "Command line flags should be on or off, not %s\n" msgstr "" "Marcajele(flags) din linia de comand ar trebui sa fie on sau off, nu %s\n" #: src/main.c:181 msgid "Cannot sort and shuffle at the same time\n" msgstr "Nu se poate i sorta i amesteca n acelai timp\n" #: src/main.c:221 msgid "" "The --client and --client-clear command line options are mutually exclusive\n" msgstr "" #: src/main.c:253 src/main.c:256 msgid "Do not ask again" msgstr "" #: src/main.c:257 msgid "Options will be saved" msgstr "" #: src/main.c:279 msgid "Do you really want to quit GLiv?" msgstr "Sigur dorii s ieii din GLiv?" #: src/main.c:337 src/next_image.c:542 msgid "No image found" msgstr "Nu s-a gsit nici o imagine" #: src/menus.c:403 msgid "File" msgstr "Fiier" #: src/menus.c:404 msgid "Open..." msgstr "Deschide..." #: src/menus.c:405 #, fuzzy msgid "Open directory..." msgstr "Directoare" #: src/menus.c:407 msgid "Load collection..." msgstr "Se ncarc colecia..." #: src/menus.c:408 msgid "Save collection..." msgstr "Se salveaz colecia..." #: src/menus.c:410 msgid "Quit" msgstr "Ieire" #: src/menus.c:414 msgid "Commands" msgstr "Comenzi" #: src/menus.c:415 msgid "Load previous image" msgstr "ncarc imaginea precedent" #: src/menus.c:416 msgid "Load next image" msgstr "ncarc imaginea urmtoare" #: src/menus.c:418 #, fuzzy msgid "Load first image" msgstr "ncarc imaginea urmtoare" #: src/menus.c:419 #, fuzzy msgid "Load last image" msgstr "ncarc imaginea urmtoare" #: src/menus.c:420 #, fuzzy msgid "Load random image" msgstr "ncarc imaginea urmtoare" #: src/menus.c:421 #, fuzzy msgid "Reload the current image" msgstr "terge fiierul curent" #: src/menus.c:423 msgid "Sort images list" msgstr "Lista imaginilor sortate" #: src/menus.c:424 msgid "Shuffle images list" msgstr "Lista imaginilor amestecate(shuflle)" #: src/menus.c:426 msgid "Rebuild images menus" msgstr "Reconstruiete meniurile imaginilor" #: src/menus.c:427 msgid "Stop rebuilding the images menu" msgstr "Nu mai reconstrui meniurile imaginilor" #: src/menus.c:431 #, fuzzy msgid "Toggle floating windows" msgstr "Imaginea s intre perfect n fereastr" #: src/menus.c:433 src/next_image.c:799 msgid "Start the slide show" msgstr "ncepe slide-show-ul" #: src/menus.c:437 msgid "Remove the current file" msgstr "terge fiierul curent" #: src/menus.c:440 #, fuzzy msgid "Edit actions..." msgstr "Opiuni..." #: src/menus.c:441 #, fuzzy msgid "Action on the current image" msgstr "terge fiierul curent" #: src/menus.c:443 #, fuzzy msgid "Action on every image" msgstr "ncearc s ncarci fiecare fiier" #: src/menus.c:448 msgid "Undo" msgstr "Ref(undo)" #: src/menus.c:449 msgid "Redo" msgstr "Repet(redo)" #: src/menus.c:450 msgid "Clear history" msgstr "terge istoricul" #: src/menus.c:452 #, fuzzy msgid "Move" msgstr "Mut sus" #: src/menus.c:453 msgid "Move left" msgstr "Mut la stnga" #: src/menus.c:454 msgid "Move right" msgstr "Mut la dreapta" #: src/menus.c:455 msgid "Move up" msgstr "Mut sus" #: src/menus.c:456 msgid "Move down" msgstr "Mut jos" #: src/menus.c:459 msgid "Set position" msgstr "" #: src/menus.c:467 msgid "Rotation" msgstr "" #: src/menus.c:468 msgid "Rotate +90 deg" msgstr "Rotete +90 grade" #: src/menus.c:470 msgid "Rotate -90 deg" msgstr "Rotete -90 grade" #: src/menus.c:472 msgid "Rotate +0.1 deg" msgstr "Rotete +0.1 grade" #: src/menus.c:474 msgid "Rotate -0.1 deg" msgstr "Rotete -0.1 grade" #: src/menus.c:480 msgid "Horizontal flip" msgstr "Rsturnare(flip) orizontal" #: src/menus.c:482 msgid "Vertical flip" msgstr "Rsturnare(flip) vertical" #: src/menus.c:486 msgid "Maximize small image" msgstr "Maximizeaz imagine mic" #: src/menus.c:487 msgid "Scale down large image" msgstr "Micoreaz la scar(scale down) imagine mare" #: src/menus.c:489 msgid "Image fit window" msgstr "Imaginea s intre perfect n fereastr" #: src/menus.c:492 msgid "Zoom in" msgstr "Mrire" #: src/menus.c:493 msgid "Zoom out" msgstr "Micorare" #: src/menus.c:494 msgid "Fit width" msgstr "" #: src/menus.c:495 #, fuzzy msgid "Fit height" msgstr "lime x nlime" #: src/menus.c:499 msgid "Reset" msgstr "Resetare" #: src/menus.c:504 msgid "Toggle Fullscreen mode" msgstr "Modific(toggle) modul ecran mare(full screen)" #: src/menus.c:505 msgid "Toggle Menu Bar" msgstr "Modific(toggle) Bara de Meniuri" #: src/menus.c:506 msgid "Toggle Status Bar" msgstr "Modific(toggle) Bara de Stare" #: src/menus.c:507 msgid "Toggle Scrollbars" msgstr "Modific(toggle) Barele de Scroll" #: src/menus.c:508 msgid "Toggle Alpha checks" msgstr "Modific(toggle) verificrile Alpha" #: src/menus.c:510 msgid "Hide the cursor" msgstr "Ascunde cursorul" #: src/menus.c:511 msgid "Set this window as server" msgstr "Setare a aceste ferestre ca server" #: src/menus.c:513 msgid "Options..." msgstr "Opiuni..." #: src/menus.c:532 msgid "Help" msgstr "Ajutor" #: src/menus.c:533 msgid "About..." msgstr "Despre..." #: src/menus.c:534 msgid "Controls..." msgstr "Controale..." #: src/next_image.c:143 msgid "First image" msgstr "" #: src/next_image.c:146 #, fuzzy msgid "Last image" msgstr "ncarc imaginea urmtoare" #: src/next_image.c:226 #, fuzzy msgid "Loading errors" msgstr "Salvare colecie: %s" #: src/next_image.c:239 msgid "The following errors occurred while loading the next image:\n" msgstr "" #: src/next_image.c:828 msgid "Stop the slide show" msgstr "Oprete slide-show-ul" #: src/open_dialog.c:101 #, fuzzy msgid "GLiv: Select a folder to open" msgstr "GLiv: Selecteaz fiierele sau folosete globale(wildcards)" #: src/open_dialog.c:104 #, fuzzy msgid "GLiv: Select files to open" msgstr "GLiv: Selecteaz fiierele sau folosete globale(wildcards)" #: src/open_dialog.c:129 src/rcfile.c:106 msgid "Try to load every file" msgstr "ncearc s ncarci fiecare fiier" #: src/open_dialog.c:130 src/rcfile.c:118 msgid "Recursive directory traversal" msgstr "" #: src/options.c:219 src/options.c:237 msgid "NONE" msgstr "" #: src/options.c:222 #, fuzzy, c-format msgid "This configuration file has been read: %s" msgstr "" "# Fiier de configurare pentru GLiv %s\n" "\n" #: src/options.c:240 #, fuzzy, c-format msgid "This configuration file will be written: %s" msgstr "" "# Fiier de configurare pentru GLiv %s\n" "\n" #: src/rcfile.c:97 msgid "Start in full screen mode" msgstr "ncepe n mod ecran mare(full screen)" #: src/rcfile.c:100 msgid "Display the menu bar" msgstr "Afieaz bara de meniuri" #: src/rcfile.c:101 #, fuzzy msgid "Display info about the image" msgstr "Afieaz informaii despre imagine" #: src/rcfile.c:102 msgid "Display scrollbars" msgstr "Afieaz barele de scroll" #: src/rcfile.c:104 msgid "Alpha checks in the background" msgstr "Verificri Alpha n fundal" #: src/rcfile.c:117 msgid "Enable transitions" msgstr "" #: src/rcfile.c:119 #, fuzzy msgid "Keep transfo between images" msgstr "ntrziere ntre imagini" #: src/rcfile.c:122 msgid "Maximum framerate" msgstr "Rat cadre(framerate) maxim" #: src/rcfile.c:123 msgid "Delay before hiding the cursor" msgstr "ntrziere nainte de ascunderea cursorului" #: src/rcfile.c:124 msgid "History length" msgstr "Lungime istoric" #: src/rcfile.c:125 msgid "Delay between images" msgstr "ntrziere ntre imagini" #: src/rcfile.c:131 msgid "background: red channel" msgstr "fundal: canal rou" #: src/rcfile.c:132 msgid "background: green channel" msgstr "fundal: canal verde" #: src/rcfile.c:133 msgid "background: blue channel" msgstr "fundal: canal albastru" #: src/rcfile.c:134 msgid "alpha1 tile: red channel" msgstr "seciune(tile) alpha1: canal rou" #: src/rcfile.c:135 msgid "alpha1 tile: green channel" msgstr "seciune(tile) alpha1: canal verde" #: src/rcfile.c:136 msgid "alpha1 tile: blue channel" msgstr "seciune(tile) alpha1: canal albastru" #: src/rcfile.c:137 msgid "alpha2 tile: red channel" msgstr "seciune(tile) alpha2: canal rou" #: src/rcfile.c:138 msgid "alpha2 tile: green channel" msgstr "seciune(tile) alpha2: canal verde" #: src/rcfile.c:139 msgid "alpha2 tile: blue channel" msgstr "seciune(tile) alpha2: canal albastru" #: src/rcfile.c:238 #, c-format msgid "Unknown option in configuration file: %s\n" msgstr "" #: src/rcfile.c:240 #, fuzzy, c-format msgid "Parse error in configuration file: %s\n" msgstr "" "# Fiier de configurare pentru GLiv %s\n" "\n" #: src/rcfile.c:486 #, c-format msgid "" "# Configuration file for GLiv %s\n" "\n" msgstr "" "# Fiier de configurare pentru GLiv %s\n" "\n" #: src/rcfile.c:487 msgid "# Option names are case sensitive.\n" msgstr "# Numele opiunilor sunt caz senzitiv.\n" #: src/rcfile.c:488 msgid "" "# Option values are case insensitive.\n" "\n" msgstr "" "# Valorile opiunilor sunt caz insenzitiv.\n" "\n" #: src/thread.c:164 #, fuzzy msgid "Cannot use a thread\n" msgstr "Nu se poate folosi un fir(thread)" #: src/transition.c:261 #, c-format msgid "transition from `%s' to `%s'" msgstr "" #: src/tree_browser.c:80 msgid "Browser" msgstr "" #: src/tree_browser.c:201 msgid "Thumb" msgstr "" #: src/tree_browser.c:222 #, fuzzy msgid "Thumbnails browser" msgstr "Lime thumbnail" #: src/windows.c:207 msgid "loading" msgstr "ncrcare" #: src/windows.c:238 msgid "No image loaded" msgstr "Nici o imagine ncrcat" #: src/windows.c:239 msgid "width x height" msgstr "lime x nlime" #: src/windows.c:240 msgid "zoom% (angle)" msgstr "zoom% (unghi)" #: src/windows.c:319 #, c-format msgid "%.3f%% (%.3f deg%s)" msgstr "%.3f%% (%.3f grade%s)" #: src/windows.c:363 #, c-format msgid "Ignoring initial geometry (%s) as fullscreen mode is requested\n" msgstr "" #: src/windows.c:375 #, c-format msgid "Cannot parse geometry: %s\n" msgstr "" #: src/windows.c:409 msgid "GLiv in fullscreen" msgstr "GLiv n ecran mare(fullscreen)" #~ msgid "" #~ "Your mouse wheel (if supported) will zoom the image and switch it when " #~ "you press the button." #~ msgstr "" #~ "Rotia voastr de mouse (dac exist) va face zoom pe imagine i modifica" #~ "(switch) cnd vei apsa pe buton" #~ msgid "No automatic image centering" #~ msgstr "Nu se centreaz nici o imagine automat" #, fuzzy #~ msgid "You'll have to save the options" #~ msgstr "Alegei un fiier n care s se salveze colecia" #~ msgid "Scale down larges images" #~ msgstr "Micoreaz la scar imaginile mari" #~ msgid "Loading GLiv collection" #~ msgstr "Se ncarc colecia GLiv" #, fuzzy #~ msgid "Add all files in the directory" #~ msgstr "Toate fiierele din director" #, fuzzy #~ msgid "Images list" #~ msgstr "Lista imaginilor sortate" #~ msgid "Shuffle" #~ msgstr "Amestec(shuffle)" #~ msgid "no alpha channel" #~ msgstr "nici un canal alpha" #~ msgid "Click the window to hide it." #~ msgstr "Dai click pe fereastr pentru a o ascunde." #~ msgid "" #~ "The following OpenGL errors have occured:\n" #~ "%s" #~ msgstr "" #~ "S-au produs urmtoarele erori OpenGL:\n" #~ "%s" #~ msgid "" #~ "# Note: 'maximize = True' or 'scale-down = True' implies 'full-screen = " #~ "True'.\n" #~ "\n" #~ msgstr "" #~ "# Not: 'maximize = True' or 'scale-down = True' implic 'full-screen = " #~ "True'.\n" #~ "\n" #~ msgid "%s: ImageMagick not found\n" #~ msgstr "%s: ImageMagick nu a fost gsit\n" #~ msgid "Warning: the ImageMagick process is still running\n" #~ msgstr "Avertisment: procesul ImageMagick nc ruleaz\n" #~ msgid "This directory can be deleted if GLiv is not running" #~ msgstr "Acest director poate fi ters dac nu ruleaz GLiv" #~ msgid "Background and alpha checks color selection" #~ msgstr "Selecie de culoare fundal i verificri alpha" gliv-1.9.7/po/rw.gmo0000644000076400007640000000246611465576131011532 0ustar gg   &27< C M Wbjr zq , 9 FQfow        " +  About...BackgroundCommandsDirectoriesFileHelpImagesMove downMove leftMove rightMove upOpen...OptionsOptions...QuitRedoResetUndoZoom inZoom outpixelssecondsProject-Id-Version: gliv 1.8 Report-Msgid-Bugs-To: guichaz@gmail.com POT-Creation-Date: 2010-04-19 00:52+0200 PO-Revision-Date: 2005-04-04 10:55-0700 Last-Translator: Steven Michael Murphy Language-Team: Kinyarwanda MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Byerekeye...Imbuganyuma amabwirizaububiko bw'amadereseIdosiye GufashaIshushoKwimura HasiKwimura ibumosoKwimura IburyoKwimura HejuruGufungura...AmahitamoAmahitamo...KuvamoGusubiramoKugaruraIsubiranyumaIngano-imbereIngano-inyumapigiseliamasegondagliv-1.9.7/po/tr.po0000644000076400007640000006622311465576131011364 0ustar gg# translation of gliv-1.8.tr.po to Turkish # Copyright (C) 2005 Free Software Foundation # This file is distributed under the same license as the gliv package. # Tuğba Sarıoğlu , 2005. # Gülnur Yenilmez , 2005. # msgid "" msgstr "" "Project-Id-Version: gliv 1.8\n" "Report-Msgid-Bugs-To: guichaz@gmail.com\n" "POT-Creation-Date: 2010-04-19 00:52+0200\n" "PO-Revision-Date: 2005-03-05 21:36+0200\n" "Last-Translator: Gülnur Yenilmez \n" "Language-Team: Turkish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: KBabel 1.9.1\n" #: src/actions.c:121 msgid "Failed to create a new process" msgstr "" #: src/actions.c:126 #, c-format msgid "The action '%s' terminated with a non-null return code: %d" msgstr "" #: src/actions.c:230 msgid "Open in Gimp" msgstr "" #: src/actions.c:333 #, c-format msgid "The action name '%s' is already used" msgstr "" #: src/actions.c:463 src/glade_actions.c:165 src/tree_browser.c:211 msgid "Name" msgstr "" #: src/actions.c:464 src/glade_actions.c:172 #, fuzzy msgid "Command" msgstr "Komutlar" #: src/collection.c:152 msgid "Choose a file to save the collection" msgstr "Derlemi kaydetmek için bir dosya seçin" #: src/collection.c:159 #, c-format msgid "Overwrite \"%s\" ?" msgstr "" #: src/collection.c:238 msgid "Elapsed time" msgstr "Geçen süre" #: src/collection.c:239 msgid "Remaining time" msgstr "Kalan süre" #: src/collection.c:240 msgid "Total time" msgstr "Toplam süre" #: src/collection.c:247 src/collection.c:637 #, c-format msgid "Saving collection: %s" msgstr "Derlem kaydediliyor: %s" #: src/collection.c:250 src/collection.c:1044 #, fuzzy, c-format msgid "Loading collection: %s" msgstr "Derlem kaydediliyor: %s" #: src/collection.c:366 msgid "Inserting files..." msgstr "Dosyalar ekleniyor..." #: src/collection.c:615 #, fuzzy msgid "No images to put in a collection\n" msgstr "%s bir GLiv derlemi değil" #: src/collection.c:622 msgid "GLiv won't write a collection to a terminal\n" msgstr "" #: src/collection.c:643 msgid "Standard output" msgstr "" #: src/collection.c:1064 #, c-format msgid "%s is not a GLiv collection" msgstr "%s bir GLiv derlemi değil" #: src/collection.c:1077 msgid "Choose a collection to load" msgstr "Yüklemek için bir derlem seçin" #: src/files_list.c:499 #, c-format msgid "" "Do you really want to delete this file?\n" "%s\n" msgstr "" "Bu dosyayı silmek istediğinizden emin misiniz?\n" "%s\n" #: src/files_list.c:523 #, fuzzy msgid "directory/file" msgstr "Dizinler" #: src/gl_widget.c:130 #, c-format msgid "Wrong URI format: %d (instead of 8)" msgstr "Yanlış URI biçemi: %d (8'in yerine)" #: src/gl_widget.c:135 #, c-format msgid "Wrong URI length: %d" msgstr "Yanlış URI uzunluğu: %d" #: src/gl_widget.c:227 #, c-format msgid "Fatal error: GL_MAX_TEXTURE_SIZE = %d\n" msgstr "Ölümcül hata: GL_MAX_TEXTURE_SIZE = %d\n" #: src/gl_widget.c:231 msgid "GL_MAX_TEXTURE_SIZE must be >= 64" msgstr "GL_MAX_TEXTURE_SIZE >= 64 olmalıdır" #: src/gl_widget.c:257 msgid "glXMakeCurrent() failed" msgstr "glXMakeCurrent() başarısız" #: src/gl_widget.c:310 msgid "OpenGL not supported" msgstr "OpenGL desteklenmiyor" #: src/gl_widget.c:321 msgid "Cannot find an appropriate visual, try glxinfo(1)" msgstr "Uygun bir görsel öğe bulunamadı, glxinfo(1)'i deneyin" #: src/gl_widget.c:328 msgid "Cannot set the OpenGL capability" msgstr "OpenGL yetkinliği etkinleştirilemedi" #: src/gl_widget.c:366 #, c-format msgid "Unknown OpenGL error (%d)" msgstr "Bilinmeyen OpenGL hatası (%d)" #: src/gl_widget.c:370 #, c-format msgid "" "OpenGL error in %s() at %s:%d:\n" "%s" msgstr "" #: src/glade_actions.c:43 #, fuzzy msgid "Actions" msgstr "Seçenekler" #: src/glade_actions.c:149 msgid "Edit Action" msgstr "" #: src/glade_actions.c:206 msgid "" "In the command field, printf like substitutions can be used:\n" "%d\t\tPath to the current file directory\n" "%b\t\tCurrent file name\n" "%f\t\tPath to the current file\n" "%%\t\tA litteral %\n" msgstr "" #: src/glade_image_nr.c:45 src/menus.c:417 #, fuzzy msgid "Load the Nth image..." msgstr "Sonraki görüntüyü yükler" #: src/glade_image_nr.c:65 msgid "Enter an image number:" msgstr "" #: src/glade_image_nr.c:81 #, fuzzy msgid "directory" msgstr "Dizinler" #: src/glade_image_nr.c:87 #, fuzzy msgid "file" msgstr "Dosya" #: src/glade_options.c:138 src/menus.c:503 msgid "Options" msgstr "Seçenekler" #: src/glade_options.c:174 #, fuzzy msgid "Save options now" msgstr "Seçenekleri ~/.glivrc'ye kaydeder" #: src/glade_options.c:178 src/rcfile.c:116 #, fuzzy msgid "Save options when quitting" msgstr "Seçenekleri ~/.glivrc'ye kaydeder" #: src/glade_options.c:193 #, fuzzy msgid "Configuration file" msgstr "" "# GLiv için ayar dosyası %s\n" "\n" #: src/glade_options.c:215 msgid "Scrollbars enabled" msgstr "Kaydırma çubuğu etkinleştirildi" #: src/glade_options.c:222 msgid "Fullscreen mode" msgstr "Bütün ekran kipi" #: src/glade_options.c:229 msgid "Menu bar enabled" msgstr "Menu çubuğu etkinleştirildi" #: src/glade_options.c:236 msgid "Status bar enabled" msgstr "Durum çubuğu etkinleştirildi" #: src/glade_options.c:243 src/rcfile.c:115 msgid "Confirm before quitting" msgstr "" #: src/glade_options.c:250 src/rcfile.c:114 msgid "Automatic window resizing" msgstr "Otomatik pencere boyutlaması" #: src/glade_options.c:261 msgid "" "Delay before hiding the cursor\n" "0: feature disabled" msgstr "" "İmleçi gizlemeden önce bekler\n" "0: Özellik devre dışı" #: src/glade_options.c:274 src/glade_options.c:587 src/glade_options.c:634 msgid "milliseconds" msgstr "milisaniye" #: src/glade_options.c:279 msgid "Interface" msgstr "Arabirim" #: src/glade_options.c:290 src/rcfile.c:99 msgid "Scale down large images" msgstr "Büyük görüntüleri küçültür" #: src/glade_options.c:297 src/rcfile.c:98 msgid "Maximize small images" msgstr "Küçük görüntüleri büyütür" #: src/glade_options.c:304 src/rcfile.c:108 msgid "Build mipmaps" msgstr "mipmap oluşturur" #: src/glade_options.c:311 src/rcfile.c:105 #, fuzzy msgid "Dithering" msgstr "Titreklik" #: src/glade_options.c:318 src/rcfile.c:111 msgid "Keep only one image in memory" msgstr "Bellekte yalnız bir görüntü tutar" #: src/glade_options.c:325 src/rcfile.c:120 #, fuzzy msgid "Check for OpenGL errors" msgstr "Bilinmeyen OpenGL hatası (%d)" #: src/glade_options.c:332 src/rcfile.c:121 msgid "Enable OpenGL filtering" msgstr "" #: src/glade_options.c:339 src/images_menus.c:330 src/images_menus.c:479 #: src/menus.c:521 msgid "Images" msgstr "Görüntüler" #: src/glade_options.c:352 src/rcfile.c:107 msgid "Build images menus at startup" msgstr "Görüntü menüsünü başlangıçta oluşturur" #: src/glade_options.c:357 src/rcfile.c:109 msgid "Make mnemonics for images menus" msgstr "Görüntü menüsü için anımsatıcı oluşturur" #: src/glade_options.c:362 src/rcfile.c:112 #, fuzzy msgid "Show thumbnails in images menus" msgstr "Görüntü menülerinde parçacık göster" #: src/glade_options.c:371 src/glade_options.c:380 msgid "pixels" msgstr "piksel" #: src/glade_options.c:389 src/rcfile.c:127 #, fuzzy msgid "Thumbnail height" msgstr "parçacık yüksekliği" #: src/glade_options.c:418 src/rcfile.c:126 #, fuzzy msgid "Thumbnail width" msgstr "parçacık genişliği" #: src/glade_options.c:427 msgid "Images menus" msgstr "Görüntü menüleri" #: src/glade_options.c:442 src/rcfile.c:103 msgid "Zoom centered on pointer" msgstr "Zum imleci ortalar" #: src/glade_options.c:447 msgid "Keep transformations when switching images" msgstr "" #: src/glade_options.c:456 src/rcfile.c:130 msgid "Initial image position" msgstr "" #: src/glade_options.c:463 src/menus.c:460 msgid "Center" msgstr "" #: src/glade_options.c:464 src/menus.c:461 #, fuzzy msgid "Top left" msgstr "Sola taşır" #: src/glade_options.c:465 src/menus.c:462 #, fuzzy msgid "Top right" msgstr "Sağa taşır" #: src/glade_options.c:466 src/menus.c:463 #, fuzzy msgid "Bottom left" msgstr "Üst sola taşır" #: src/glade_options.c:467 src/menus.c:464 #, fuzzy msgid "Bottom right" msgstr "Sağa taşır" #: src/glade_options.c:468 msgid "Same as previous" msgstr "" #: src/glade_options.c:495 msgid "" "History length\n" "0: feature disabled\n" "-1: infinite" msgstr "" "Geçmiş uzunluğu\n" "0: özellik devre dışı\n" "-1: sonsuz" #: src/glade_options.c:503 msgid "" "Maximum framerate\n" "-1: infinite" msgstr "" "Maximum çerçeve hızı\n" "-1:sonsuz" #: src/glade_options.c:511 msgid "elements" msgstr "öğeler" #: src/glade_options.c:519 msgid "fps" msgstr "fps" #: src/glade_options.c:527 src/menus.c:447 msgid "Transformations" msgstr "Dönüşümler" #: src/glade_options.c:542 src/rcfile.c:113 msgid "Start with the slide show" msgstr "Slayt gösterisiyle başlar" #: src/glade_options.c:547 src/rcfile.c:110 msgid "Make the slide show loop" msgstr "Slayt gösterisini döngüsel yapar" #: src/glade_options.c:556 src/rcfile.c:128 msgid "Last/First image notice time" msgstr "" #: src/glade_options.c:563 msgid "Delay between images during the slide show" msgstr "Slayt gösterisi sırasında görüntüler arasında bekler" #: src/glade_options.c:580 msgid "seconds" msgstr "saniyeler" #: src/glade_options.c:608 #, fuzzy msgid "Enable transitions between images" msgstr "Görüntüler arası bekler" #: src/glade_options.c:621 src/rcfile.c:129 #, fuzzy msgid "Transition duration" msgstr "Dönüşümler" #: src/glade_options.c:639 msgid "" "Transitions obey the maximum framerate parameter in the Transformations tab" msgstr "" #: src/glade_options.c:644 msgid "Slide show" msgstr "Slayt gösterisi" #: src/glade_options.c:657 msgid "Alpha 2" msgstr "Alfa 2" #: src/glade_options.c:664 msgid "Alpha 1" msgstr "Alfa 1" #: src/glade_options.c:671 src/glade_options.c:706 msgid "Background" msgstr "Artalan" #: src/glade_options.c:692 msgid "Alpha checks" msgstr "Alfa denetimleri" #: src/help.c:102 src/help.c:109 msgid "GLiv help" msgstr "GLiv yardım" #: src/help.c:163 msgid "GLiv about box" msgstr "GLiv hakkında kutusu" #: src/help_text.c:15 msgid "ESC, q : Quit" msgstr "ESC, q : Çık" #: src/help_text.c:18 msgid "f : Full-screen/window" msgstr "f : Tam ekran/pencere" #: src/help_text.c:21 msgid "+/=/- : Zoom in/in/out" msgstr "+/=/- :Zum/içe /dışa" #: src/help_text.c:24 msgid "n/p : Next/previous image" msgstr "n/p : Sonraki/ önceki görüntü" #: src/help_text.c:27 #, fuzzy msgid "Pause : Start/stop the slide show" msgstr "Slayt gösterisini başlatır" #: src/help_text.c:30 msgid "l : Reduce the image to the window" msgstr "l :Görüntüyü pencere kadar küçültür" #: src/help_text.c:33 msgid "M : Maximize the image to the window" msgstr "M :Görüntüyü pencere kadar büyütür" #: src/help_text.c:36 msgid "m : Make the image fit the window" msgstr "m: Görüntüyü pencereye uydurur" #: src/help_text.c:39 msgid "r : Reset position and size" msgstr "r :Konumu ve boyutu ilk durumuna getirir" #: src/help_text.c:42 msgid "b : Toggle display of the menu bar" msgstr "b : Menü çubuğunu göstermeyi değiştirir" #: src/help_text.c:45 msgid "i : Toggle display of the info bar" msgstr "i : Bilgi çubuğunu göstermeyi değiştirir" #: src/help_text.c:48 msgid "s : Toggle display of the scrollbars" msgstr "s :Kaydırma çubuğunu göstermeyi değiştirir" #: src/help_text.c:51 msgid "a : Toggle display of the alpha checks" msgstr "a :Alfa denetimlerini göstermeyi değiştirir" #: src/help_text.c:54 msgid "h : Toggle display of the help box" msgstr "h : Yardım kutusunu göstermeyi değiştirir" #: src/help_text.c:57 #, fuzzy msgid "w : Toggle display of floating windows" msgstr "i : Bilgi çubuğunu göstermeyi değiştirir" #: src/help_text.c:60 msgid "o : Display the open dialog" msgstr "o :Açma iletişimini gösterir" #: src/help_text.c:63 #, fuzzy msgid "g : Display the image selector" msgstr "o :Açma iletişimini gösterir" #: src/help_text.c:66 msgid "t : Display the options dialog" msgstr "t :Seçenekler iletişimini gösterir" #: src/help_text.c:69 msgid "d : Hide the cursor" msgstr "d :İmleci gizler" #: src/help_text.c:72 msgid "u : Undo" msgstr "u :Geri alır" #: src/help_text.c:75 msgid "y : Redo" msgstr "y :Yineler" #: src/help_text.c:78 msgid "c : Clear the history" msgstr "c :Geçmişi siler" #: src/help_text.c:81 #, fuzzy msgid "Delete : Delete the current file" msgstr "x :Şimdiki dosyayı siler" #: src/help_text.c:84 #, fuzzy msgid "C-up : Rotate by +90 degrees" msgstr "C-up :+45 derece döndürür" #: src/help_text.c:87 #, fuzzy msgid "C-down : Rotate by -90 degrees" msgstr "C-down :-45 derece döndürür" #: src/help_text.c:90 msgid "C-left : Rotate by +0.1 degree" msgstr "C-left : +0.1 derece döndürür" #: src/help_text.c:93 msgid "C-right: Rotate by -0.1 degree" msgstr "C-right: -0.1 derece döndürür" #: src/help_text.c:96 msgid "z : Horizontal flip" msgstr "z :Yatay çevirir" #: src/help_text.c:99 msgid "e : Vertical flip" msgstr "e :Dikey çevirir" #: src/help_text.c:104 msgid "" "The first mouse button and the arrow keys will move the image unless the " "Control key is pressed. In which case the image will be rotated around the " "window center." msgstr "" "Kontrol düğmesine basılmadıkça farenin ilk düğmesi ve yön tuşları görüntüyü\n" "hareket ettirir. Eğer kontrol düğmesine basılmışsa, aynı tuşlar, pencerenin\n" "ortası etrafında görüntüyü çevirir." #: src/help_text.c:107 msgid "" "The mouse wheel zooms the image, and when you hold its button pressed at the " "same time it switches to the neighbouring image." msgstr "" #: src/help_text.c:110 msgid "" "You can also zoom by dragging the mouse vertically while holding Shift and " "the first button." msgstr "" "Zum, Shift tuşu ve ilk fare düğmesi basılı iken fareyi dikey hareket\n" "ettirerek de yapılabilir." #: src/help_text.c:113 msgid "Space and Backspace act like n and p." msgstr "Boşluk ve Gerial tuşları \"n\" ve \"p\" gibi çalışır." #: src/help_text.c:116 msgid "Draw a rectangle with the third button and gliv will zoom in it." msgstr "Üçüncü düğmeyle bir dikdörtgen çizin, gliv bunun içinde zumlayacaktır." #: src/images_menus.c:82 msgid "Rebuilding:" msgstr "Yenileme:" #: src/images_menus.c:209 src/images_menus.c:447 src/menus.c:517 msgid "Directories" msgstr "Dizinler" #: src/images_menus.c:296 msgid "Current image directory..." msgstr "" #: src/images_menus.c:363 src/menus.c:337 msgid "Rebuild this menu" msgstr "Bu menüyü yeniler" #: src/images_menus.c:370 src/menus.c:338 #, fuzzy msgid "Open thumbnails browser..." msgstr "parçacık genişliği" #: src/include/about.h:6 msgid "GLiv version" msgstr "GLiv sürümü" #: src/include/about.h:8 msgid "" "Use 'gliv --help' to show command line options.\n" "A quick help is accessible by typing 'h' or using the menu." msgstr "" "Komut satırı seçenekleri için 'gliv --help' i kullanın\n" "Hızlı yardıma 'h' ye basarak ya da menüyü kullanarak erişilebilinir." #: src/include/about.h:10 #, fuzzy msgid "See http://guichaz.free.fr/gliv for updates." msgstr "Güncelleştirme için http://gliv.tuxfamily.org'a bakınız." #: src/loading.c:81 #, c-format msgid "%s not while loading an image\n" msgstr "%s görüntüyü yüklerken olmaz\n" #: src/loading.c:83 #, c-format msgid "%s while loading %s\n" msgstr "%2$s yüklenirken %1$s\n" #: src/loading.c:102 msgid "alpha channel" msgstr "alfa kanalı" #: src/loading.c:158 #, c-format msgid "%s: unknown decompressed extension\n" msgstr "%s: bilinmeyen sıkıştırılmamış uzantı\n" #: src/loading.c:165 #, c-format msgid "%s: image cannot be compressed twice\n" msgstr "%s: görüntü ikinci kez sıkıştırılamaz\n" #: src/loading.c:188 #, c-format msgid "%s: unknown extension (none)\n" msgstr "%s: bilinmeyen uzantı (hiçbiri)\n" #: src/loading.c:197 #, c-format msgid "%s: unknown extension\n" msgstr "%s: bilinmeyen uzantı\n" #: src/loading.c:291 src/next_image.c:280 #, c-format msgid "Cannot load %s" msgstr "%s yüklenemiyor" #: src/main.c:65 #, c-format msgid "Command line flags should be on or off, not %s\n" msgstr "" "Komut satırı bayrakları 'on' (etkin) ya da 'off' (etkisiz) olmalı, %s " "olmamalı\n" #: src/main.c:181 msgid "Cannot sort and shuffle at the same time\n" msgstr "Aynı anda hem sıralayıp hem karıştırılamaz\n" #: src/main.c:221 msgid "" "The --client and --client-clear command line options are mutually exclusive\n" msgstr "" #: src/main.c:253 src/main.c:256 msgid "Do not ask again" msgstr "" #: src/main.c:257 msgid "Options will be saved" msgstr "" #: src/main.c:279 msgid "Do you really want to quit GLiv?" msgstr "Gerçekten GLiv'den çıkmak istiyor musunuz?" #: src/main.c:337 src/next_image.c:542 msgid "No image found" msgstr "Görüntü bulunamadı" #: src/menus.c:403 msgid "File" msgstr "Dosya" #: src/menus.c:404 msgid "Open..." msgstr "Aç..." #: src/menus.c:405 #, fuzzy msgid "Open directory..." msgstr "Dizinler" #: src/menus.c:407 msgid "Load collection..." msgstr "Derlemi yükle..." #: src/menus.c:408 msgid "Save collection..." msgstr "Derlemi kaydet..." #: src/menus.c:410 msgid "Quit" msgstr "Çık" #: src/menus.c:414 msgid "Commands" msgstr "Komutlar" #: src/menus.c:415 msgid "Load previous image" msgstr "Önceki görüntüyü yükler" #: src/menus.c:416 msgid "Load next image" msgstr "Sonraki görüntüyü yükler" #: src/menus.c:418 #, fuzzy msgid "Load first image" msgstr "Sonraki görüntüyü yükler" #: src/menus.c:419 #, fuzzy msgid "Load last image" msgstr "Sonraki görüntüyü yükler" #: src/menus.c:420 #, fuzzy msgid "Load random image" msgstr "Sonraki görüntüyü yükler" #: src/menus.c:421 #, fuzzy msgid "Reload the current image" msgstr "Şimdiki dosyayı kaldırır" #: src/menus.c:423 msgid "Sort images list" msgstr "Görüntü listesini sıralar" #: src/menus.c:424 msgid "Shuffle images list" msgstr "Görüntü listesini karıştırır" #: src/menus.c:426 msgid "Rebuild images menus" msgstr "Görüntü menülerini yeniler" #: src/menus.c:427 msgid "Stop rebuilding the images menu" msgstr "Görüntü menüsünü yenilemeyi durdurur" #: src/menus.c:431 #, fuzzy msgid "Toggle floating windows" msgstr "Pencereye uygun görüntü" #: src/menus.c:433 src/next_image.c:799 msgid "Start the slide show" msgstr "Slayt gösterisini başlatır" #: src/menus.c:437 msgid "Remove the current file" msgstr "Şimdiki dosyayı kaldırır" #: src/menus.c:440 #, fuzzy msgid "Edit actions..." msgstr "Seçenekler..." #: src/menus.c:441 #, fuzzy msgid "Action on the current image" msgstr "Şimdiki dosyayı kaldırır" #: src/menus.c:443 #, fuzzy msgid "Action on every image" msgstr "Her dosyayı yüklemeye çalışır" #: src/menus.c:448 msgid "Undo" msgstr "Geri alır" #: src/menus.c:449 msgid "Redo" msgstr "Yineler" #: src/menus.c:450 msgid "Clear history" msgstr "Geçmişi siler" #: src/menus.c:452 #, fuzzy msgid "Move" msgstr "Yukarı taşır" #: src/menus.c:453 msgid "Move left" msgstr "Sola taşır" #: src/menus.c:454 msgid "Move right" msgstr "Sağa taşır" #: src/menus.c:455 msgid "Move up" msgstr "Yukarı taşır" #: src/menus.c:456 msgid "Move down" msgstr "Aşağı taşır" #: src/menus.c:459 msgid "Set position" msgstr "" #: src/menus.c:467 msgid "Rotation" msgstr "" #: src/menus.c:468 #, fuzzy msgid "Rotate +90 deg" msgstr "+0.1 derece döndürür" #: src/menus.c:470 #, fuzzy msgid "Rotate -90 deg" msgstr "-0.1 derece döndürür" #: src/menus.c:472 msgid "Rotate +0.1 deg" msgstr "+0.1 derece döndürür" #: src/menus.c:474 msgid "Rotate -0.1 deg" msgstr "-0.1 derece döndürür" #: src/menus.c:480 msgid "Horizontal flip" msgstr "Yatay çevirir" #: src/menus.c:482 msgid "Vertical flip" msgstr "Dikey çevirir" #: src/menus.c:486 msgid "Maximize small image" msgstr "Küçük görüntüyü büyütür" #: src/menus.c:487 msgid "Scale down large image" msgstr "Büyük görüntüyü küçültür" #: src/menus.c:489 msgid "Image fit window" msgstr "Pencereye uygun görüntü" #: src/menus.c:492 msgid "Zoom in" msgstr "Zumlar" #: src/menus.c:493 msgid "Zoom out" msgstr "Geri zumlar" #: src/menus.c:494 msgid "Fit width" msgstr "" #: src/menus.c:495 #, fuzzy msgid "Fit height" msgstr "genişlik x uzunluk" #: src/menus.c:499 msgid "Reset" msgstr "İlk duruma getirir" #: src/menus.c:504 msgid "Toggle Fullscreen mode" msgstr "Tam ekran kipini değiştirir" #: src/menus.c:505 msgid "Toggle Menu Bar" msgstr "Menü Çubuğunu Değiştirir" #: src/menus.c:506 msgid "Toggle Status Bar" msgstr "Durum Çubuğunu Değiştirir" #: src/menus.c:507 msgid "Toggle Scrollbars" msgstr "Kaydırma Çubuğunu Değiştirir" #: src/menus.c:508 msgid "Toggle Alpha checks" msgstr "Alfa Denetimlerini Değiştirir" #: src/menus.c:510 msgid "Hide the cursor" msgstr "İmleci gizler" #: src/menus.c:511 msgid "Set this window as server" msgstr "Bu pencereyi sunucu olarak ayarlar" #: src/menus.c:513 msgid "Options..." msgstr "Seçenekler..." #: src/menus.c:532 msgid "Help" msgstr "Yardım" #: src/menus.c:533 msgid "About..." msgstr "Hakkında..." #: src/menus.c:534 msgid "Controls..." msgstr "Ayarlar..." #: src/next_image.c:143 msgid "First image" msgstr "" #: src/next_image.c:146 #, fuzzy msgid "Last image" msgstr "Sonraki görüntüyü yükler" #: src/next_image.c:226 msgid "Loading errors" msgstr "" #: src/next_image.c:239 msgid "The following errors occurred while loading the next image:\n" msgstr "" #: src/next_image.c:828 msgid "Stop the slide show" msgstr "Slayt gösterisini durdurur" #: src/open_dialog.c:101 #, fuzzy msgid "GLiv: Select a folder to open" msgstr "GLiv: Dosya seçin ya da genel bayrak kullanın" #: src/open_dialog.c:104 #, fuzzy msgid "GLiv: Select files to open" msgstr "GLiv: Dosya seçin ya da genel bayrak kullanın" #: src/open_dialog.c:129 src/rcfile.c:106 msgid "Try to load every file" msgstr "Her dosyayı yüklemeye çalışır" #: src/open_dialog.c:130 src/rcfile.c:118 msgid "Recursive directory traversal" msgstr "" #: src/options.c:219 src/options.c:237 msgid "NONE" msgstr "" #: src/options.c:222 #, fuzzy, c-format msgid "This configuration file has been read: %s" msgstr "" "# GLiv için ayar dosyası %s\n" "\n" #: src/options.c:240 #, fuzzy, c-format msgid "This configuration file will be written: %s" msgstr "" "# GLiv için ayar dosyası %s\n" "\n" #: src/rcfile.c:97 msgid "Start in full screen mode" msgstr "Tam ekran kipinde başlar" #: src/rcfile.c:100 msgid "Display the menu bar" msgstr "Menü çubuğunu gösterir" #: src/rcfile.c:101 #, fuzzy msgid "Display info about the image" msgstr "Görüntüyle ilgili bilgileri gösterir" #: src/rcfile.c:102 msgid "Display scrollbars" msgstr "Kaydırma çubuklarını gösterir" #: src/rcfile.c:104 msgid "Alpha checks in the background" msgstr "Alfa denetimlerini arkaplanda yapar" #: src/rcfile.c:117 msgid "Enable transitions" msgstr "" #: src/rcfile.c:119 #, fuzzy msgid "Keep transfo between images" msgstr "Görüntüler arası bekler" #: src/rcfile.c:122 msgid "Maximum framerate" msgstr "En yüksek çerçeve hızı" #: src/rcfile.c:123 msgid "Delay before hiding the cursor" msgstr "İmleci gizlemeden önce bekler" #: src/rcfile.c:124 msgid "History length" msgstr "Geçmiş uzunluğu" #: src/rcfile.c:125 msgid "Delay between images" msgstr "Görüntüler arası bekler" #: src/rcfile.c:131 msgid "background: red channel" msgstr "artalan: kırmızı kanal" #: src/rcfile.c:132 msgid "background: green channel" msgstr "artalan: yeşil kanal" #: src/rcfile.c:133 msgid "background: blue channel" msgstr "artalan: mavi kanal" #: src/rcfile.c:134 msgid "alpha1 tile: red channel" msgstr "alfa1 karosu: kırmızı kanal" #: src/rcfile.c:135 msgid "alpha1 tile: green channel" msgstr "alfa1 karosu: yeşil kanal" #: src/rcfile.c:136 msgid "alpha1 tile: blue channel" msgstr "alfa1 karosu: mavi kanal" #: src/rcfile.c:137 msgid "alpha2 tile: red channel" msgstr "alfa2 karosu: kırmızı kanal" #: src/rcfile.c:138 msgid "alpha2 tile: green channel" msgstr "alfa2 karosu: yeşil kanal" #: src/rcfile.c:139 msgid "alpha2 tile: blue channel" msgstr "alfa2 karosu: mavi kanal" #: src/rcfile.c:238 #, c-format msgid "Unknown option in configuration file: %s\n" msgstr "" #: src/rcfile.c:240 #, fuzzy, c-format msgid "Parse error in configuration file: %s\n" msgstr "" "# GLiv için ayar dosyası %s\n" "\n" #: src/rcfile.c:486 #, c-format msgid "" "# Configuration file for GLiv %s\n" "\n" msgstr "" "# GLiv için ayar dosyası %s\n" "\n" #: src/rcfile.c:487 msgid "# Option names are case sensitive.\n" msgstr "" "# Seçenek isimleri küçük-büyük harfe duyarlı\n" "\n" #: src/rcfile.c:488 msgid "" "# Option values are case insensitive.\n" "\n" msgstr "" "# Seçenek değerleri küçük-büyük harfe duyarsız\n" "\n" #: src/thread.c:164 #, fuzzy msgid "Cannot use a thread\n" msgstr "Evre kullanılamıyor" #: src/transition.c:261 #, c-format msgid "transition from `%s' to `%s'" msgstr "" #: src/tree_browser.c:80 msgid "Browser" msgstr "" #: src/tree_browser.c:201 msgid "Thumb" msgstr "" #: src/tree_browser.c:222 #, fuzzy msgid "Thumbnails browser" msgstr "parçacık genişliği" #: src/windows.c:207 msgid "loading" msgstr "yükleniyor" #: src/windows.c:238 msgid "No image loaded" msgstr "Yüklenmiş görüntü yok" #: src/windows.c:239 msgid "width x height" msgstr "genişlik x uzunluk" #: src/windows.c:240 msgid "zoom% (angle)" msgstr "zum% (açı)" #: src/windows.c:319 #, fuzzy, c-format msgid "%.3f%% (%.3f deg%s)" msgstr "%.3f%% (%.3f deg%s)" #: src/windows.c:363 #, c-format msgid "Ignoring initial geometry (%s) as fullscreen mode is requested\n" msgstr "" #: src/windows.c:375 #, c-format msgid "Cannot parse geometry: %s\n" msgstr "" #: src/windows.c:409 msgid "GLiv in fullscreen" msgstr "Gliv tam ekranda" #~ msgid "" #~ "Your mouse wheel (if supported) will zoom the image and switch it when " #~ "you press the button." #~ msgstr "" #~ "Fare tekeri (eğer destekleniyorsa) ile görüntüye yakınlaşabilir ve\n" #~ "fare düğmesine basarak değiştirebilirsiniz." #~ msgid "No automatic image centering" #~ msgstr "Otomatik görüntü ortalama yok" #, fuzzy #~ msgid "You'll have to save the options" #~ msgstr "Derlemi kaydetmek için bir dosya seçin" #~ msgid "Scale down larges images" #~ msgstr "Büyük görüntüleri küçültür" #~ msgid "Loading GLiv collection" #~ msgstr "GLiv derlemi yükleniyor" #~ msgid "" #~ "The following OpenGL errors have occured:\n" #~ "%s" #~ msgstr "" #~ "Aşağıdaki OpenGL hataları oluştu:\n" #~ "%s" #~ msgid "Click the window to hide it." #~ msgstr "Gizlemek için pencereyi tıklayın." #~ msgid "no alpha channel" #~ msgstr "alfa kanalı yok" #~ msgid "Rotate +45 deg" #~ msgstr "+45 derece döndürür" #~ msgid "Rotate -45 deg" #~ msgstr "-45 derece döndürür" #~ msgid "Shuffle" #~ msgstr "Karıştırır" #~ msgid "All files in the directory" #~ msgstr "Tüm dosyalar dizinde" #~ msgid "" #~ "# Note: 'maximize = True' or 'scale-down = True' implies 'full-screen = " #~ "True'.\n" #~ "\n" #~ msgstr "" #~ "# Not: 'maximize = True' (büyüt = Doğru) veya \n" #~ "'scale-down = True' (küçült = Doğru) değerleri \n" #~ "'full-screen = True' (tam-ekran = Doğru) değerini varsayar.\n" #~ "\n" gliv-1.9.7/po/vi.po0000644000076400007640000006641611465576131011361 0ustar gg# Vietnamese Translation for GLiv. # Copyright © 2007 Guillaume Chazarain # Clytie Siddall , 2005-2007. # msgid "" msgstr "" "Project-Id-Version: gliv 1.9.6\n" "Report-Msgid-Bugs-To: guichaz@gmail.com\n" "POT-Creation-Date: 2010-04-19 00:52+0200\n" "PO-Revision-Date: 2007-11-30 23:25+1030\n" "Last-Translator: Clytie Siddall \n" "Language-Team: Vietnamese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: LocFactoryEditor 1.7b1\n" #: src/actions.c:121 msgid "Failed to create a new process" msgstr "Lỗi tạo tiến trình mới" #: src/actions.c:126 #, c-format msgid "The action '%s' terminated with a non-null return code: %d" msgstr "Hành động « %s » đã chấm dứt với mã trả lại không phải vô giá trị: %d" #: src/actions.c:230 msgid "Open in Gimp" msgstr "Mở bằng GIMP" #: src/actions.c:333 #, c-format msgid "The action name '%s' is already used" msgstr "Tên hành động « %s » đang được dùng" #: src/actions.c:463 src/glade_actions.c:165 src/tree_browser.c:211 msgid "Name" msgstr "Tên" #: src/actions.c:464 src/glade_actions.c:172 msgid "Command" msgstr "Lệnh" #: src/collection.c:152 msgid "Choose a file to save the collection" msgstr "Hãy chọn tập tin vào đó cần lưu tập hợp" #: src/collection.c:159 #, c-format msgid "Overwrite \"%s\" ?" msgstr "Ghi đè lên « %s » không?" #: src/collection.c:238 msgid "Elapsed time" msgstr "Thời gian đã qua" #: src/collection.c:239 msgid "Remaining time" msgstr "Thời gian còn lại" #: src/collection.c:240 msgid "Total time" msgstr "Tổng thời gian" #: src/collection.c:247 src/collection.c:637 #, c-format msgid "Saving collection: %s" msgstr "Đang lưu tập hợp: %s" #: src/collection.c:250 src/collection.c:1044 #, c-format msgid "Loading collection: %s" msgstr "Đang nạp tập hợp: %s" #: src/collection.c:366 msgid "Inserting files..." msgstr "Đang chèn các tập tin..." #: src/collection.c:615 msgid "No images to put in a collection\n" msgstr "Không có ảnh cần để vào tập hợp\n" #: src/collection.c:622 msgid "GLiv won't write a collection to a terminal\n" msgstr "GLiv không thể ghi tập hợp vào thiết bị cuối\n" #: src/collection.c:643 msgid "Standard output" msgstr "Thiết bị xuất chuẩn" #: src/collection.c:1064 #, c-format msgid "%s is not a GLiv collection" msgstr "%s không phải tập hợp kiểu GLiv" #: src/collection.c:1077 msgid "Choose a collection to load" msgstr "Hãy chọn tập hợp cần nạp" #: src/files_list.c:499 #, c-format msgid "" "Do you really want to delete this file?\n" "%s\n" msgstr "" "Bạn thực sự muốn xóa tập tin này không?\n" "%s\n" #: src/files_list.c:523 msgid "directory/file" msgstr "thư mục/tập tin" #: src/gl_widget.c:130 #, c-format msgid "Wrong URI format: %d (instead of 8)" msgstr "Sai định dạng URI: %d (thay cho 8)" #: src/gl_widget.c:135 #, c-format msgid "Wrong URI length: %d" msgstr "Sai độ dài URI: %d" #: src/gl_widget.c:227 #, c-format msgid "Fatal error: GL_MAX_TEXTURE_SIZE = %d\n" msgstr "Lỗi nghiệm trọng: GL_MAX_TEXTURE_SIZE = %d\n" #: src/gl_widget.c:231 msgid "GL_MAX_TEXTURE_SIZE must be >= 64" msgstr "GL_MAX_TEXTURE_SIZE phải ≥ 64" #: src/gl_widget.c:257 msgid "glXMakeCurrent() failed" msgstr "glXMakeCurrent() bị lỗi" #: src/gl_widget.c:310 msgid "OpenGL not supported" msgstr "Không hỗ trợ OpenGL" #: src/gl_widget.c:321 msgid "Cannot find an appropriate visual, try glxinfo(1)" msgstr "Không tìm thấy ô xem thích hợp: hãy thử glxinfo(1)" #: src/gl_widget.c:328 msgid "Cannot set the OpenGL capability" msgstr "Không thể đặt khả năng OpenGL" #: src/gl_widget.c:366 #, c-format msgid "Unknown OpenGL error (%d)" msgstr "Lỗi OpenGL không rõ (%d)" #: src/gl_widget.c:370 #, c-format msgid "" "OpenGL error in %s() at %s:%d:\n" "%s" msgstr "" "Gặp lỗi OpenGL trong %s() tại %s:%d:\n" "%s" #: src/glade_actions.c:43 msgid "Actions" msgstr "Hành động" #: src/glade_actions.c:149 msgid "Edit Action" msgstr "Sửa hành động" #: src/glade_actions.c:206 msgid "" "In the command field, printf like substitutions can be used:\n" "%d\t\tPath to the current file directory\n" "%b\t\tCurrent file name\n" "%f\t\tPath to the current file\n" "%%\t\tA litteral %\n" msgstr "" "Trong trường lệnh, cũng có thể sử dụng ký tự đại diện kiểu printf:\n" "%d\t\tĐường dẫn đến thư mục đang dùng\n" "%b\t\tTên của tập tin đang dùng\n" "%f\t\tĐường dẫn đến tập tin đang dùng\n" "%%\t\tKý tự % thật\n" #: src/glade_image_nr.c:45 src/menus.c:417 msgid "Load the Nth image..." msgstr "Nạp ảnh thứ N..." #: src/glade_image_nr.c:65 msgid "Enter an image number:" msgstr "Hãy nhập vào số thứ tự ảnh:" #: src/glade_image_nr.c:81 msgid "directory" msgstr "thư mục" #: src/glade_image_nr.c:87 msgid "file" msgstr "tập tin" #: src/glade_options.c:138 src/menus.c:503 msgid "Options" msgstr "Tùy chọn" #: src/glade_options.c:174 msgid "Save options now" msgstr "Lưu các tùy chọn ngay bây giờ" #: src/glade_options.c:178 src/rcfile.c:116 msgid "Save options when quitting" msgstr "Lưu các tùy chọn khi thoát" #: src/glade_options.c:193 msgid "Configuration file" msgstr "Tập tin cấu hình" #: src/glade_options.c:215 msgid "Scrollbars enabled" msgstr "Thanh cuộn đã bật" #: src/glade_options.c:222 msgid "Fullscreen mode" msgstr "Chế độ toàn màn hình" #: src/glade_options.c:229 msgid "Menu bar enabled" msgstr "Thanh trình đơn đã bật" #: src/glade_options.c:236 msgid "Status bar enabled" msgstr "Thanh trạng thái đã bật" #: src/glade_options.c:243 src/rcfile.c:115 msgid "Confirm before quitting" msgstr "Xác nhận trước khi thoát" #: src/glade_options.c:250 src/rcfile.c:114 msgid "Automatic window resizing" msgstr "Tự động sửa đổi kích cỡ cửa sổ" #: src/glade_options.c:261 msgid "" "Delay before hiding the cursor\n" "0: feature disabled" msgstr "" "Đợi trước khi ẩn con trỏ\n" "0\ttính năng bị tắt" #: src/glade_options.c:274 src/glade_options.c:587 src/glade_options.c:634 msgid "milliseconds" msgstr "mili giây" #: src/glade_options.c:279 msgid "Interface" msgstr "Giao diện" #: src/glade_options.c:290 src/rcfile.c:99 msgid "Scale down large images" msgstr "Thu nhỏ ảnh lớn" #: src/glade_options.c:297 src/rcfile.c:98 msgid "Maximize small images" msgstr "Phóng to ảnh nhỏ" #: src/glade_options.c:304 src/rcfile.c:108 msgid "Build mipmaps" msgstr "Xây dựng mipmap" #: src/glade_options.c:311 src/rcfile.c:105 msgid "Dithering" msgstr "Rung động" #: src/glade_options.c:318 src/rcfile.c:111 msgid "Keep only one image in memory" msgstr "Giữ chỉ một ảnh trong bộ nhớ" #: src/glade_options.c:325 src/rcfile.c:120 msgid "Check for OpenGL errors" msgstr "Kiểm tra có lỗi OpenGL" #: src/glade_options.c:332 src/rcfile.c:121 msgid "Enable OpenGL filtering" msgstr "Bật khả năng lọc OpenGL" #: src/glade_options.c:339 src/images_menus.c:330 src/images_menus.c:479 #: src/menus.c:521 msgid "Images" msgstr "Ảnh" #: src/glade_options.c:352 src/rcfile.c:107 msgid "Build images menus at startup" msgstr "Xây dựng cac trình đơn ảnh khi khởi chạy" #: src/glade_options.c:357 src/rcfile.c:109 msgid "Make mnemonics for images menus" msgstr "Tạo cái giúp trí nhớ cho các trình đơn ảnh" #: src/glade_options.c:362 src/rcfile.c:112 msgid "Show thumbnails in images menus" msgstr "Hiển thị ảnh mẫu trong các trình đơn ảnh" #: src/glade_options.c:371 src/glade_options.c:380 msgid "pixels" msgstr "điểm ảnh" #: src/glade_options.c:389 src/rcfile.c:127 msgid "Thumbnail height" msgstr "Độ cao ảnh mẫu" #: src/glade_options.c:418 src/rcfile.c:126 msgid "Thumbnail width" msgstr "Độ rộng ảnh mẫu" #: src/glade_options.c:427 msgid "Images menus" msgstr "Trình đơn ảnh" #: src/glade_options.c:442 src/rcfile.c:103 msgid "Zoom centered on pointer" msgstr "Thu phóng giữa lại theo con trỏ" #: src/glade_options.c:447 msgid "Keep transformations when switching images" msgstr "Giữ các sự chuyển dạng khi chuyển đổi ảnh" #: src/glade_options.c:456 src/rcfile.c:130 msgid "Initial image position" msgstr "Vị trí ảnh đầu tiên" #: src/glade_options.c:463 src/menus.c:460 msgid "Center" msgstr "Tâm" #: src/glade_options.c:464 src/menus.c:461 msgid "Top left" msgstr "Bên trái, gốc trên" #: src/glade_options.c:465 src/menus.c:462 msgid "Top right" msgstr "Bên phải, gốc trên" #: src/glade_options.c:466 src/menus.c:463 msgid "Bottom left" msgstr "Bên trái, gốc dưới" #: src/glade_options.c:467 src/menus.c:464 msgid "Bottom right" msgstr "Bên phải, gốc dưới" #: src/glade_options.c:468 msgid "Same as previous" msgstr "Như trước" #: src/glade_options.c:495 msgid "" "History length\n" "0: feature disabled\n" "-1: infinite" msgstr "" "Độ dài lịch sử\n" " • 0\t\ttính năng bị tắt • -1\tvô hạn" #: src/glade_options.c:503 msgid "" "Maximum framerate\n" "-1: infinite" msgstr "" "Tỷ lệ khung tối đa\n" " • -1\tvô hạn" #: src/glade_options.c:511 msgid "elements" msgstr "yếu tố" #: src/glade_options.c:519 msgid "fps" msgstr "khung/giây" #: src/glade_options.c:527 src/menus.c:447 msgid "Transformations" msgstr "Chuyển dạng" #: src/glade_options.c:542 src/rcfile.c:113 msgid "Start with the slide show" msgstr "Bắt đầu với ảnh chiếu" #: src/glade_options.c:547 src/rcfile.c:110 msgid "Make the slide show loop" msgstr "Khiến chiếu ảnh bị lặp" #: src/glade_options.c:556 src/rcfile.c:128 msgid "Last/First image notice time" msgstr "Thời gian thấy ảnh đầu/cuối" #: src/glade_options.c:563 msgid "Delay between images during the slide show" msgstr "Hoãn giữa hai ảnh trong khi chiếu ảnh" #: src/glade_options.c:580 msgid "seconds" msgstr "giây" #: src/glade_options.c:608 msgid "Enable transitions between images" msgstr "Bật chuyển tiếp giữa hai ảnh" #: src/glade_options.c:621 src/rcfile.c:129 msgid "Transition duration" msgstr "Thời gian chuyển dạng" #: src/glade_options.c:639 msgid "" "Transitions obey the maximum framerate parameter in the Transformations tab" msgstr "" "Việc chuyển dạng tùy theo tham số tốc độ khung tối đa trên thẻ « Chuyển dạng »" #: src/glade_options.c:644 msgid "Slide show" msgstr "Chiếu ảnh" #: src/glade_options.c:657 msgid "Alpha 2" msgstr "Anfa 2" #: src/glade_options.c:664 msgid "Alpha 1" msgstr "Anfa 1" #: src/glade_options.c:671 src/glade_options.c:706 msgid "Background" msgstr "Nền" #: src/glade_options.c:692 msgid "Alpha checks" msgstr "Kiểm tra Anfa" #: src/help.c:102 src/help.c:109 msgid "GLiv help" msgstr "Trợ giúp Gliv" #: src/help.c:163 msgid "GLiv about box" msgstr "Hộp giới thiệu GLiv" #: src/help_text.c:15 msgid "ESC, q : Quit" msgstr "ESC, q : Thoát" #: src/help_text.c:18 msgid "f : Full-screen/window" msgstr "f : Toàn màn hình/cửa sổ" #: src/help_text.c:21 msgid "+/=/- : Zoom in/in/out" msgstr "+/=/- : Phóng to/to/Thu nhỏ" #: src/help_text.c:24 msgid "n/p : Next/previous image" msgstr "n/p : Ảnh kế/lùi" #: src/help_text.c:27 msgid "Pause : Start/stop the slide show" msgstr "Tạm dừng\tChạy/Dừng chiếu ảnh" #: src/help_text.c:30 msgid "l : Reduce the image to the window" msgstr "l : Giảm kích cỡ ảnh để vừa cửa sổ" #: src/help_text.c:33 msgid "M : Maximize the image to the window" msgstr "M : Tăng kích cỡ ảnh để vừa cửa sổ" #: src/help_text.c:36 msgid "m : Make the image fit the window" msgstr "m : Co dãn ảnh để vừa cửa sổ" #: src/help_text.c:39 msgid "r : Reset position and size" msgstr "r : Đặt lại vị trí và kích cỡ" #: src/help_text.c:42 msgid "b : Toggle display of the menu bar" msgstr "b : Hiện/ẩn thanh trình đơn" #: src/help_text.c:45 msgid "i : Toggle display of the info bar" msgstr "i : Hiện/ẩn thanh thông tin" #: src/help_text.c:48 msgid "s : Toggle display of the scrollbars" msgstr "s : Hiện/ẩn các thanh cuộn" #: src/help_text.c:51 msgid "a : Toggle display of the alpha checks" msgstr "a : Hiện/ẩn các sự kiểm tra anfa" #: src/help_text.c:54 msgid "h : Toggle display of the help box" msgstr "h : Hiện/ẩn hộp trợ giúp" #: src/help_text.c:57 msgid "w : Toggle display of floating windows" msgstr "w Hiện/ẩn các cửa sổ nổi" #: src/help_text.c:60 msgid "o : Display the open dialog" msgstr "o : Hiển thị hộp thoại Mở" #: src/help_text.c:63 msgid "g : Display the image selector" msgstr "g Hiện bộ chọn ảnh" #: src/help_text.c:66 msgid "t : Display the options dialog" msgstr "t : Hiển thị hộp thoại Tùy chọn" #: src/help_text.c:69 msgid "d : Hide the cursor" msgstr "d : Ẩn con trỏ" #: src/help_text.c:72 msgid "u : Undo" msgstr "u : Hủy bước" #: src/help_text.c:75 msgid "y : Redo" msgstr "y : Làm lại" #: src/help_text.c:78 msgid "c : Clear the history" msgstr "c : Xóa sạch lịch sử" #: src/help_text.c:81 msgid "Delete : Delete the current file" msgstr "Xoá Xóa tập tin đang dùng" #: src/help_text.c:84 msgid "C-up : Rotate by +90 degrees" msgstr "C-lên : Xoay theo +90º" #: src/help_text.c:87 msgid "C-down : Rotate by -90 degrees" msgstr "C-xuống : Xoay theo -90º" #: src/help_text.c:90 msgid "C-left : Rotate by +0.1 degree" msgstr "C-trái : Xoay theo +0.1º" #: src/help_text.c:93 msgid "C-right: Rotate by -0.1 degree" msgstr "C-phải: Xoay theo -0.1º" #: src/help_text.c:96 msgid "z : Horizontal flip" msgstr "z : Lật ngang" #: src/help_text.c:99 msgid "e : Vertical flip" msgstr "e : Lật dọc" #: src/help_text.c:104 msgid "" "The first mouse button and the arrow keys will move the image unless the " "Control key is pressed. In which case the image will be rotated around the " "window center." msgstr "" "Cái nút đầu trên con chuột và các phím mũi tên sẽ di chuyển ảnh, nếu phím " "Ctrl được bấm. Trong trường hợp đó, ảnh sẽ được xoay theo trung tâm cửa sổ." #: src/help_text.c:107 msgid "" "The mouse wheel zooms the image, and when you hold its button pressed at the " "same time it switches to the neighbouring image." msgstr "" #: src/help_text.c:110 msgid "" "You can also zoom by dragging the mouse vertically while holding Shift and " "the first button." msgstr "" "Cũng có thể thu phóng bằng cách kéo chuột theo chiều dọc trong khi ấn giữ " "phím Shift và nút đầu." #: src/help_text.c:113 msgid "Space and Backspace act like n and p." msgstr "Phím dài và phím xóa lùi tương ứng với phím tắt « n » và « p »." #: src/help_text.c:116 msgid "Draw a rectangle with the third button and gliv will zoom in it." msgstr "Vẽ hình chữ nhật bằng cái nút thứ ba thì GLiv thu phóng trong nó." #: src/images_menus.c:82 msgid "Rebuilding:" msgstr "Đang xây dụng lại:" #: src/images_menus.c:209 src/images_menus.c:447 src/menus.c:517 msgid "Directories" msgstr "Thư mục" #: src/images_menus.c:296 msgid "Current image directory..." msgstr "Thư mục ảnh đang dùng..." #: src/images_menus.c:363 src/menus.c:337 msgid "Rebuild this menu" msgstr "Xây dụng lại trình đơn này" #: src/images_menus.c:370 src/menus.c:338 msgid "Open thumbnails browser..." msgstr "Mở bộ duyệt qua ảnh mẫu..." #: src/include/about.h:6 msgid "GLiv version" msgstr "Phiên bản Gliv" #: src/include/about.h:8 msgid "" "Use 'gliv --help' to show command line options.\n" "A quick help is accessible by typing 'h' or using the menu." msgstr "" "Hãy sư dụng lệnh trợ giúp « gliv --help » để xem các tùy chọn dòng lệnh.\n" "Trợ giúp nhanh cũng nằm trong trình đơn, hoặc xuất hiện khi bạn gõ « h »." #: src/include/about.h:10 msgid "See http://guichaz.free.fr/gliv for updates." msgstr "Xem « http://guichaz.free.fr/gliv » để giành được bản cập nhật." #: src/loading.c:81 #, c-format msgid "%s not while loading an image\n" msgstr "%s không phải trong khi nạp ảnh\n" #: src/loading.c:83 #, c-format msgid "%s while loading %s\n" msgstr "%s trong khi nạp %s\n" #: src/loading.c:102 msgid "alpha channel" msgstr "kênh anfa" #: src/loading.c:158 #, c-format msgid "%s: unknown decompressed extension\n" msgstr "%s: phần mở rộng giải nén lạ\n" #: src/loading.c:165 #, c-format msgid "%s: image cannot be compressed twice\n" msgstr "%s: không thể nén ảnh hai lần\n" #: src/loading.c:188 #, c-format msgid "%s: unknown extension (none)\n" msgstr "%s: phần mở rộng lạ (không có)\n" #: src/loading.c:197 #, c-format msgid "%s: unknown extension\n" msgstr "%s: phần mở rộng lạ\n" #: src/loading.c:291 src/next_image.c:280 #, c-format msgid "Cannot load %s" msgstr "Không thể nạp %s" #: src/main.c:65 #, c-format msgid "Command line flags should be on or off, not %s\n" msgstr "Các cờ dòng lệnh nên đã bật hay bị tắt, không phải %s\n" #: src/main.c:181 msgid "Cannot sort and shuffle at the same time\n" msgstr "Không thể sắp xếp và xáo trộn đồng thời\n" #: src/main.c:221 msgid "" "The --client and --client-clear command line options are mutually exclusive\n" msgstr "" #: src/main.c:253 src/main.c:256 msgid "Do not ask again" msgstr "Đừng hỏi lại" #: src/main.c:257 msgid "Options will be saved" msgstr "Các tùy chọn sẽ được lưu" #: src/main.c:279 msgid "Do you really want to quit GLiv?" msgstr "Bạn thực sự muốn thoát khỏi GLiv không?" #: src/main.c:337 src/next_image.c:542 msgid "No image found" msgstr "Không tìm thấy ảnh" #: src/menus.c:403 msgid "File" msgstr "Tập tin" #: src/menus.c:404 msgid "Open..." msgstr "Mở..." #: src/menus.c:405 msgid "Open directory..." msgstr "Mở thư mục..." #: src/menus.c:407 msgid "Load collection..." msgstr "Nạp tập hợp..." #: src/menus.c:408 msgid "Save collection..." msgstr "Lưu tập hợp..." #: src/menus.c:410 msgid "Quit" msgstr "Thoát" #: src/menus.c:414 msgid "Commands" msgstr "Lệnh" #: src/menus.c:415 msgid "Load previous image" msgstr "Nạp ảnh lùi" #: src/menus.c:416 msgid "Load next image" msgstr "Nạp ảnh kế" #: src/menus.c:418 #, fuzzy msgid "Load first image" msgstr "Nạp ảnh kế" #: src/menus.c:419 #, fuzzy msgid "Load last image" msgstr "Nạp ảnh kế" #: src/menus.c:420 #, fuzzy msgid "Load random image" msgstr "Nạp ảnh kế" #: src/menus.c:421 msgid "Reload the current image" msgstr "Nạp lại ảnh hiện tại" #: src/menus.c:423 msgid "Sort images list" msgstr "Sắp xếp danh sách ảnh" #: src/menus.c:424 msgid "Shuffle images list" msgstr "Xáo trộn danh sách ảnh" #: src/menus.c:426 msgid "Rebuild images menus" msgstr "Xây dựng lại các trình đơn ảnh" #: src/menus.c:427 msgid "Stop rebuilding the images menu" msgstr "Thôi xây dựng lại trình đơn ảnh" #: src/menus.c:431 msgid "Toggle floating windows" msgstr "Hiện/ẩn cửa sổ nổi" #: src/menus.c:433 src/next_image.c:799 msgid "Start the slide show" msgstr "Bắt đầu chiếu ảnh" #: src/menus.c:437 msgid "Remove the current file" msgstr "Gỡ bỏ tập tin đang dùng" #: src/menus.c:440 msgid "Edit actions..." msgstr "Sửa hành động..." #: src/menus.c:441 msgid "Action on the current image" msgstr "Hành động với ảnh đang dùng" #: src/menus.c:443 msgid "Action on every image" msgstr "Hành động với mọi ảnh" #: src/menus.c:448 msgid "Undo" msgstr "Hủy bước" #: src/menus.c:449 msgid "Redo" msgstr "Làm lại" #: src/menus.c:450 msgid "Clear history" msgstr "Xóa sạch lịch sử" #: src/menus.c:452 msgid "Move" msgstr "Chuyển" #: src/menus.c:453 msgid "Move left" msgstr "Chuyển bên trái" #: src/menus.c:454 msgid "Move right" msgstr "Chuyển bên phải" #: src/menus.c:455 msgid "Move up" msgstr "Đem lên" #: src/menus.c:456 msgid "Move down" msgstr "Đem xuống" #: src/menus.c:459 msgid "Set position" msgstr "Đặt vị trí" #: src/menus.c:467 msgid "Rotation" msgstr "Độ xoay" #: src/menus.c:468 msgid "Rotate +90 deg" msgstr "Xoay +90º" #: src/menus.c:470 msgid "Rotate -90 deg" msgstr "Xoay -90º" #: src/menus.c:472 msgid "Rotate +0.1 deg" msgstr "Xoay +0.1º" #: src/menus.c:474 msgid "Rotate -0.1 deg" msgstr "Xoay -0.1º" #: src/menus.c:480 msgid "Horizontal flip" msgstr "Lật ngang" #: src/menus.c:482 msgid "Vertical flip" msgstr "Lật dọc" #: src/menus.c:486 msgid "Maximize small image" msgstr "Phóng to ảnh nhỏ" #: src/menus.c:487 msgid "Scale down large image" msgstr "Thu nhỏ ảnh lớn" #: src/menus.c:489 msgid "Image fit window" msgstr "Ảnh vừa cửa sổ" #: src/menus.c:492 msgid "Zoom in" msgstr "Phóng to" #: src/menus.c:493 msgid "Zoom out" msgstr "Thu nhỏ" #: src/menus.c:494 msgid "Fit width" msgstr "Vừa bề rộng" #: src/menus.c:495 msgid "Fit height" msgstr "Vừa chiều cao" #: src/menus.c:499 msgid "Reset" msgstr "Đặt lại" #: src/menus.c:504 msgid "Toggle Fullscreen mode" msgstr "Hiện/ẩn toàn màn hình" #: src/menus.c:505 msgid "Toggle Menu Bar" msgstr "Hiện/ẩn thanh trình đơn" #: src/menus.c:506 msgid "Toggle Status Bar" msgstr "Hiện/ẩn thanh trạng thái" #: src/menus.c:507 msgid "Toggle Scrollbars" msgstr "Hiện/ẩn các thanh cuộn" #: src/menus.c:508 msgid "Toggle Alpha checks" msgstr "Bật/tắt các kiểm tra Anfa" #: src/menus.c:510 msgid "Hide the cursor" msgstr "Ẩn con trỏ" #: src/menus.c:511 msgid "Set this window as server" msgstr "Đặt cửa sổ này làm trình phục vụ" #: src/menus.c:513 msgid "Options..." msgstr "Tùy chọn..." #: src/menus.c:532 msgid "Help" msgstr "Trợ giúp" #: src/menus.c:533 msgid "About..." msgstr "Giới thiệu..." #: src/menus.c:534 msgid "Controls..." msgstr "Điều khiển..." #: src/next_image.c:143 msgid "First image" msgstr "Ảnh đầu" #: src/next_image.c:146 msgid "Last image" msgstr "Ảnh cuối" #: src/next_image.c:226 msgid "Loading errors" msgstr "Lỗi nạp" #: src/next_image.c:239 msgid "The following errors occurred while loading the next image:\n" msgstr "Gặp những lỗi này trong khi nạp ảnh kế tiếp:\n" #: src/next_image.c:828 msgid "Stop the slide show" msgstr "Thôi chiếu ảnh" #: src/open_dialog.c:101 msgid "GLiv: Select a folder to open" msgstr "GLiv: chọn thư mục cần mở" #: src/open_dialog.c:104 msgid "GLiv: Select files to open" msgstr "GLiv: chọn các tập tin cần mở" #: src/open_dialog.c:129 src/rcfile.c:106 msgid "Try to load every file" msgstr "Thử nạp mọi tập tin" #: src/open_dialog.c:130 src/rcfile.c:118 msgid "Recursive directory traversal" msgstr "Theo đệ quy cây thư mục" #: src/options.c:219 src/options.c:237 msgid "NONE" msgstr "KHÔNG CÓ" #: src/options.c:222 #, c-format msgid "This configuration file has been read: %s" msgstr "Tập tin cấu hình này đã được đọc: %s" #: src/options.c:240 #, c-format msgid "This configuration file will be written: %s" msgstr "Tập tin cấu hình này sẽ được ghi: %s" #: src/rcfile.c:97 msgid "Start in full screen mode" msgstr "Khởi chạy vào chế độ toàn màn hình" #: src/rcfile.c:100 msgid "Display the menu bar" msgstr "Hiển thị thanh trình đơn" #: src/rcfile.c:101 msgid "Display info about the image" msgstr "Hiển thị thông tin về ảnh" #: src/rcfile.c:102 msgid "Display scrollbars" msgstr "Hiển thị các thanh cuộn" #: src/rcfile.c:104 msgid "Alpha checks in the background" msgstr "Kiểm tra Anfa chạy trong nền" #: src/rcfile.c:117 msgid "Enable transitions" msgstr "Bật chuyển tiếp" #: src/rcfile.c:119 msgid "Keep transfo between images" msgstr "Giữ sự chuyển tiếp giữa các ảnh" #: src/rcfile.c:122 msgid "Maximum framerate" msgstr "Tỷ lệ khung tối đa" #: src/rcfile.c:123 msgid "Delay before hiding the cursor" msgstr "Hoãn trước khi ẩn con trỏ" #: src/rcfile.c:124 msgid "History length" msgstr "Độ dài lịch sử" #: src/rcfile.c:125 msgid "Delay between images" msgstr "Hoãn giữa hai ảnh" #: src/rcfile.c:131 msgid "background: red channel" msgstr "nền: kênh màu đỏ" #: src/rcfile.c:132 msgid "background: green channel" msgstr "nền: kênh màu lục" #: src/rcfile.c:133 msgid "background: blue channel" msgstr "nền: kênh màu xanh" #: src/rcfile.c:134 msgid "alpha1 tile: red channel" msgstr "xếp alpha1: kênh đỏ" #: src/rcfile.c:135 msgid "alpha1 tile: green channel" msgstr "lát đều alpha1: kênh lục" #: src/rcfile.c:136 msgid "alpha1 tile: blue channel" msgstr "lát đều alpha1: kênh xanh" #: src/rcfile.c:137 msgid "alpha2 tile: red channel" msgstr "lát đều alpha2: kênh đỏ" #: src/rcfile.c:138 msgid "alpha2 tile: green channel" msgstr "lát đều alpha2: kênh lục" #: src/rcfile.c:139 msgid "alpha2 tile: blue channel" msgstr "lát đều alpha2: kênh xanh" #: src/rcfile.c:238 #, c-format msgid "Unknown option in configuration file: %s\n" msgstr "Gặp tùy chọn không rõ trong tập tin cấu hình : %s\n" #: src/rcfile.c:240 #, c-format msgid "Parse error in configuration file: %s\n" msgstr "Gặp lỗi phân tích trong tập tin cấu hình : %s\n" #: src/rcfile.c:486 #, c-format msgid "" "# Configuration file for GLiv %s\n" "\n" msgstr "" "# Tập tin cấu hình cho GLiv %s\n" "\n" #: src/rcfile.c:487 msgid "# Option names are case sensitive.\n" msgstr "# Các tên tùy chọn giờ phân biệt chữ hoa/thường\n" #: src/rcfile.c:488 msgid "" "# Option values are case insensitive.\n" "\n" msgstr "" "# Các giá trị tùy chọn giờ không phân biệt chữ hoa/thường\n" "\n" #: src/thread.c:164 msgid "Cannot use a thread\n" msgstr "Không thể sử dụng mạch\n" #: src/transition.c:261 #, c-format msgid "transition from `%s' to `%s'" msgstr "chuyển tiếp từ « %s » sang « %s »" #: src/tree_browser.c:80 msgid "Browser" msgstr "Bộ duyệt qua" #: src/tree_browser.c:201 msgid "Thumb" msgstr "" #: src/tree_browser.c:222 msgid "Thumbnails browser" msgstr "Bộ duyệt qua ảnh mẫu" #: src/windows.c:207 msgid "loading" msgstr "đang nạp" #: src/windows.c:238 msgid "No image loaded" msgstr "Chưa nạp ảnh" #: src/windows.c:239 msgid "width x height" msgstr "rộng × cao" #: src/windows.c:240 msgid "zoom% (angle)" msgstr "% thu phóng (góc)" #: src/windows.c:319 #, c-format msgid "%.3f%% (%.3f deg%s)" msgstr "%.3f%% (%.3fº %s)" #: src/windows.c:363 #, c-format msgid "Ignoring initial geometry (%s) as fullscreen mode is requested\n" msgstr "" "Đang bỏ qua dạng hình đầu tiên (%s) vì chế độ toàn màn hình được yêu cầu\n" #: src/windows.c:375 #, c-format msgid "Cannot parse geometry: %s\n" msgstr "Không thể phân tích dạng hình: %s\n" #: src/windows.c:409 msgid "GLiv in fullscreen" msgstr "GLiv trên toàn màn hình" #~ msgid "" #~ "Your mouse wheel (if supported) will zoom the image and switch it when " #~ "you press the button." #~ msgstr "" #~ "Bánh xe chuột (nếu được hỗ trợ) sẽ thu/phóng ảnh và chuyển đổi nó, khi " #~ "bạn bấm nút." gliv-1.9.7/po/rw.po0000644000076400007640000006367011465576131011372 0ustar gg# Kinyarwanda translations for gliv package. # Copyright (C) 2005 Guillaume Chazarain # This file is distributed under the same license as the gliv package. # Steve Murphy , 2005. # Steve performed initial rough translation from compendium built from translations provided by the following translators: # Philibert Ndandali , 2005. # Viateur MUGENZI , 2005. # Noëlla Mupole , 2005. # Carole Karema , 2005. # JEAN BAPTISTE NGENDAHAYO , 2005. # Augustin KIBERWA , 2005. # Donatien NSENGIYUMVA , 2005. # Antoine Bigirimana , 2005. # msgid "" msgstr "" "Project-Id-Version: gliv 1.8\n" "Report-Msgid-Bugs-To: guichaz@gmail.com\n" "POT-Creation-Date: 2010-04-19 00:52+0200\n" "PO-Revision-Date: 2005-04-04 10:55-0700\n" "Last-Translator: Steven Michael Murphy \n" "Language-Team: Kinyarwanda \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: src/actions.c:121 msgid "Failed to create a new process" msgstr "" #: src/actions.c:126 #, c-format msgid "The action '%s' terminated with a non-null return code: %d" msgstr "" #: src/actions.c:230 msgid "Open in Gimp" msgstr "" #: src/actions.c:333 #, c-format msgid "The action name '%s' is already used" msgstr "" #: src/actions.c:463 src/glade_actions.c:165 src/tree_browser.c:211 msgid "Name" msgstr "" #: src/actions.c:464 src/glade_actions.c:172 #, fuzzy msgid "Command" msgstr "amabwiriza" #: src/collection.c:152 #, fuzzy msgid "Choose a file to save the collection" msgstr "a IDOSIYE Kuri Kubika i" #: src/collection.c:159 #, c-format msgid "Overwrite \"%s\" ?" msgstr "" #: src/collection.c:238 #, fuzzy msgid "Elapsed time" msgstr "Igihe" # sfx2/source\bastyp\bastyp.src:STR_DOWNLOAD_REMAININGTIME.text #: src/collection.c:239 #, fuzzy msgid "Remaining time" msgstr "Igihe gisigaye" #: src/collection.c:240 #, fuzzy msgid "Total time" msgstr "Igihe" #: src/collection.c:247 src/collection.c:637 #, c-format msgid "Saving collection: %s" msgstr "" #: src/collection.c:250 src/collection.c:1044 #, fuzzy, c-format msgid "Loading collection: %s" msgstr "Kubika" #: src/collection.c:366 #, fuzzy msgid "Inserting files..." msgstr "Idosiye" #: src/collection.c:615 #, fuzzy msgid "No images to put in a collection\n" msgstr "%sni OYA a" #: src/collection.c:622 msgid "GLiv won't write a collection to a terminal\n" msgstr "" #: src/collection.c:643 msgid "Standard output" msgstr "" #: src/collection.c:1064 #, fuzzy, c-format msgid "%s is not a GLiv collection" msgstr "%sni OYA a" #: src/collection.c:1077 #, fuzzy msgid "Choose a collection to load" msgstr "a Kuri Ibirimo" #: src/files_list.c:499 #, fuzzy, c-format msgid "" "Do you really want to delete this file?\n" "%s\n" msgstr "Kuri Gusiba iyi IDOSIYE" #: src/files_list.c:523 #, fuzzy msgid "directory/file" msgstr "ububiko bw'amaderese" #: src/gl_widget.c:130 #, fuzzy, c-format msgid "Wrong URI format: %d (instead of 8)" msgstr "Imiterere Bya 8" #: src/gl_widget.c:135 #, fuzzy, c-format msgid "Wrong URI length: %d" msgstr "Uburebure" #: src/gl_widget.c:227 #, fuzzy, c-format msgid "Fatal error: GL_MAX_TEXTURE_SIZE = %d\n" msgstr "Ikosa" #: src/gl_widget.c:231 msgid "GL_MAX_TEXTURE_SIZE must be >= 64" msgstr "" #: src/gl_widget.c:257 #, fuzzy msgid "glXMakeCurrent() failed" msgstr "Byanze" #: src/gl_widget.c:310 #, fuzzy msgid "OpenGL not supported" msgstr "OYA" #: src/gl_widget.c:321 #, fuzzy msgid "Cannot find an appropriate visual, try glxinfo(1)" msgstr "Gushaka Kigaragara 1." #: src/gl_widget.c:328 #, fuzzy msgid "Cannot set the OpenGL capability" msgstr "Gushyiraho i" #: src/gl_widget.c:366 #, fuzzy, c-format msgid "Unknown OpenGL error (%d)" msgstr "Ikosa" #: src/gl_widget.c:370 #, c-format msgid "" "OpenGL error in %s() at %s:%d:\n" "%s" msgstr "" #: src/glade_actions.c:43 #, fuzzy msgid "Actions" msgstr "Amahitamo" #: src/glade_actions.c:149 msgid "Edit Action" msgstr "" #: src/glade_actions.c:206 msgid "" "In the command field, printf like substitutions can be used:\n" "%d\t\tPath to the current file directory\n" "%b\t\tCurrent file name\n" "%f\t\tPath to the current file\n" "%%\t\tA litteral %\n" msgstr "" #: src/glade_image_nr.c:45 src/menus.c:417 #, fuzzy msgid "Load the Nth image..." msgstr "Komeza>> Ishusho" #: src/glade_image_nr.c:65 msgid "Enter an image number:" msgstr "" #: src/glade_image_nr.c:81 #, fuzzy msgid "directory" msgstr "ububiko bw'amaderese" #: src/glade_image_nr.c:87 #, fuzzy msgid "file" msgstr "Idosiye " #: src/glade_options.c:138 src/menus.c:503 msgid "Options" msgstr "Amahitamo" #: src/glade_options.c:174 #, fuzzy msgid "Save options now" msgstr "Kubika Amahitamo in" #: src/glade_options.c:178 src/rcfile.c:116 #, fuzzy msgid "Save options when quitting" msgstr "Kubika Amahitamo in" #: src/glade_options.c:193 #, fuzzy msgid "Configuration file" msgstr "#IDOSIYE kugirango" #: src/glade_options.c:215 #, fuzzy msgid "Scrollbars enabled" msgstr "Bikora" #: src/glade_options.c:222 #, fuzzy msgid "Fullscreen mode" msgstr "Ubwoko" #: src/glade_options.c:229 #, fuzzy msgid "Menu bar enabled" msgstr "Bikora" #: src/glade_options.c:236 #, fuzzy msgid "Status bar enabled" msgstr "Bikora" #: src/glade_options.c:243 src/rcfile.c:115 msgid "Confirm before quitting" msgstr "" #: src/glade_options.c:250 src/rcfile.c:114 #, fuzzy msgid "Automatic window resizing" msgstr "Idirishya" #: src/glade_options.c:261 #, fuzzy msgid "" "Delay before hiding the cursor\n" "0: feature disabled" msgstr "Mbere i Yahagaritswe" #: src/glade_options.c:274 src/glade_options.c:587 src/glade_options.c:634 msgid "milliseconds" msgstr "" #: src/glade_options.c:279 msgid "Interface" msgstr "" #: src/glade_options.c:290 src/rcfile.c:99 #, fuzzy msgid "Scale down large images" msgstr "Hasi Binini Ishusho" #: src/glade_options.c:297 src/rcfile.c:98 #, fuzzy msgid "Maximize small images" msgstr "Gitoya Ishusho" #: src/glade_options.c:304 src/rcfile.c:108 msgid "Build mipmaps" msgstr "" #: src/glade_options.c:311 src/rcfile.c:105 msgid "Dithering" msgstr "" #: src/glade_options.c:318 src/rcfile.c:111 #, fuzzy msgid "Keep only one image in memory" msgstr "Ishusho in Ububiko" #: src/glade_options.c:325 src/rcfile.c:120 #, fuzzy msgid "Check for OpenGL errors" msgstr "Ikosa" #: src/glade_options.c:332 src/rcfile.c:121 msgid "Enable OpenGL filtering" msgstr "" #: src/glade_options.c:339 src/images_menus.c:330 src/images_menus.c:479 #: src/menus.c:521 msgid "Images" msgstr "Ishusho" #: src/glade_options.c:352 src/rcfile.c:107 #, fuzzy msgid "Build images menus at startup" msgstr "Ishusho Ibikubiyemo ku" #: src/glade_options.c:357 src/rcfile.c:109 #, fuzzy msgid "Make mnemonics for images menus" msgstr "kugirango Ishusho Ibikubiyemo" #: src/glade_options.c:362 src/rcfile.c:112 #, fuzzy msgid "Show thumbnails in images menus" msgstr "in Ishusho Ibikubiyemo" #: src/glade_options.c:371 src/glade_options.c:380 msgid "pixels" msgstr "pigiseli" #: src/glade_options.c:389 src/rcfile.c:127 #, fuzzy msgid "Thumbnail height" msgstr "Ubuhagarike" #: src/glade_options.c:418 src/rcfile.c:126 #, fuzzy msgid "Thumbnail width" msgstr "Ubugari" #: src/glade_options.c:427 #, fuzzy msgid "Images menus" msgstr "Ibikubiyemo" #: src/glade_options.c:442 src/rcfile.c:103 #, fuzzy msgid "Zoom centered on pointer" msgstr "Bishyizwe hagati ku Mweretsi" #: src/glade_options.c:447 msgid "Keep transformations when switching images" msgstr "" #: src/glade_options.c:456 src/rcfile.c:130 msgid "Initial image position" msgstr "" #: src/glade_options.c:463 src/menus.c:460 msgid "Center" msgstr "" #: src/glade_options.c:464 src/menus.c:461 #, fuzzy msgid "Top left" msgstr "Kwimura ibumoso" #: src/glade_options.c:465 src/menus.c:462 #, fuzzy msgid "Top right" msgstr "Kwimura Iburyo" #: src/glade_options.c:466 src/menus.c:463 #, fuzzy msgid "Bottom left" msgstr "Hejuru: Ibumoso:" #: src/glade_options.c:467 src/menus.c:464 #, fuzzy msgid "Bottom right" msgstr "Kwimura Iburyo" #: src/glade_options.c:468 msgid "Same as previous" msgstr "" #: src/glade_options.c:495 #, fuzzy msgid "" "History length\n" "0: feature disabled\n" "-1: infinite" msgstr "1. Bidashira" #: src/glade_options.c:503 #, fuzzy msgid "" "Maximum framerate\n" "-1: infinite" msgstr "1. Bidashira" # sw/source\ui\wizard\wizbmp.src:STR_Pag_DefsElem.text #: src/glade_options.c:511 #, fuzzy msgid "elements" msgstr "Ibintu" #: src/glade_options.c:519 msgid "fps" msgstr "" #: src/glade_options.c:527 src/menus.c:447 msgid "Transformations" msgstr "" #: src/glade_options.c:542 src/rcfile.c:113 #, fuzzy msgid "Start with the slide show" msgstr "Gutangira Na: i Igice Garagaza" #: src/glade_options.c:547 src/rcfile.c:110 #, fuzzy msgid "Make the slide show loop" msgstr "i Igice Garagaza" #: src/glade_options.c:556 src/rcfile.c:128 msgid "Last/First image notice time" msgstr "" #: src/glade_options.c:563 #, fuzzy msgid "Delay between images during the slide show" msgstr "hagati Ishusho i Igice Garagaza" #: src/glade_options.c:580 msgid "seconds" msgstr "amasegonda" #: src/glade_options.c:608 #, fuzzy msgid "Enable transitions between images" msgstr "hagati Ishusho" #: src/glade_options.c:621 src/rcfile.c:129 msgid "Transition duration" msgstr "" #: src/glade_options.c:639 msgid "" "Transitions obey the maximum framerate parameter in the Transformations tab" msgstr "" #: src/glade_options.c:644 #, fuzzy msgid "Slide show" msgstr "Kwerekana Igice" #: src/glade_options.c:657 #, fuzzy msgid "Alpha 2" msgstr "2." #: src/glade_options.c:664 #, fuzzy msgid "Alpha 1" msgstr "1." #: src/glade_options.c:671 src/glade_options.c:706 msgid "Background" msgstr "Imbuganyuma " #: src/glade_options.c:692 msgid "Alpha checks" msgstr "" #: src/help.c:102 src/help.c:109 #, fuzzy msgid "GLiv help" msgstr "Ifashayobora" #: src/help.c:163 #, fuzzy msgid "GLiv about box" msgstr "Ibyerekeye Agasanduku" #: src/help_text.c:15 #, fuzzy msgid "ESC, q : Quit" msgstr "Q" #: src/help_text.c:18 #, fuzzy msgid "f : Full-screen/window" msgstr "F Mugaragaza Idirishya" #: src/help_text.c:21 #, fuzzy msgid "+/=/- : Zoom in/in/out" msgstr "+/=/-:in in Inyuma" #: src/help_text.c:24 #, fuzzy msgid "n/p : Next/previous image" msgstr "N P Ibanjirije Ishusho" #: src/help_text.c:27 #, fuzzy msgid "Pause : Start/stop the slide show" msgstr "Gutangira i Igice Garagaza" #: src/help_text.c:30 #, fuzzy msgid "l : Reduce the image to the window" msgstr "L i Ishusho Kuri i Idirishya" #: src/help_text.c:33 #, fuzzy msgid "M : Maximize the image to the window" msgstr "i Ishusho Kuri i Idirishya" #: src/help_text.c:36 #, fuzzy msgid "m : Make the image fit the window" msgstr "M i Ishusho i Idirishya" #: src/help_text.c:39 #, fuzzy msgid "r : Reset position and size" msgstr "R Ibirindiro Na Ingano" #: src/help_text.c:42 #, fuzzy msgid "b : Toggle display of the menu bar" msgstr "B Kugaragaza Bya i Ibikubiyemo" #: src/help_text.c:45 #, fuzzy msgid "i : Toggle display of the info bar" msgstr "i Kugaragaza Bya i Ibisobanuro" #: src/help_text.c:48 #, fuzzy msgid "s : Toggle display of the scrollbars" msgstr "S Kugaragaza Bya i" #: src/help_text.c:51 #, fuzzy msgid "a : Toggle display of the alpha checks" msgstr "a Kugaragaza Bya i Alufa" #: src/help_text.c:54 #, fuzzy msgid "h : Toggle display of the help box" msgstr "h Kugaragaza Bya i Ifashayobora Agasanduku" #: src/help_text.c:57 #, fuzzy msgid "w : Toggle display of floating windows" msgstr "i Kugaragaza Bya i Ibisobanuro" #: src/help_text.c:60 #, fuzzy msgid "o : Display the open dialog" msgstr "o i Gufungura Ikiganiro" #: src/help_text.c:63 #, fuzzy msgid "g : Display the image selector" msgstr "o i Gufungura Ikiganiro" #: src/help_text.c:66 #, fuzzy msgid "t : Display the options dialog" msgstr "T i Amahitamo Ikiganiro" #: src/help_text.c:69 #, fuzzy msgid "d : Hide the cursor" msgstr "D i indanga" #: src/help_text.c:72 #, fuzzy msgid "u : Undo" msgstr "u" #: src/help_text.c:75 #, fuzzy msgid "y : Redo" msgstr "Y" #: src/help_text.c:78 #, fuzzy msgid "c : Clear the history" msgstr "C i Urutonde" #: src/help_text.c:81 #, fuzzy msgid "Delete : Delete the current file" msgstr "X i KIGEZWEHO IDOSIYE" #: src/help_text.c:84 #, fuzzy msgid "C-up : Rotate by +90 degrees" msgstr "C Hejuru ku Dogere" #: src/help_text.c:87 #, fuzzy msgid "C-down : Rotate by -90 degrees" msgstr "C Hasi ku Dogere" #: src/help_text.c:90 #, fuzzy msgid "C-left : Rotate by +0.1 degree" msgstr "C Ibumoso: ku 0 1. Dogere" #: src/help_text.c:93 #, fuzzy msgid "C-right: Rotate by -0.1 degree" msgstr "C Iburyo: ku 0 1. Dogere" #: src/help_text.c:96 #, fuzzy msgid "z : Horizontal flip" msgstr "Z Guhindukiza" #: src/help_text.c:99 #, fuzzy msgid "e : Vertical flip" msgstr "E Guhindukiza" #: src/help_text.c:104 #, fuzzy msgid "" "The first mouse button and the arrow keys will move the image unless the " "Control key is pressed. In which case the image will be rotated around the " "window center." msgstr "" "Itangira Imbeba Akabuto Na i Akambi Utubuto Kwimura i Ishusho i Urufunguzo " "ni i Ishusho i Idirishya hagati" #: src/help_text.c:107 msgid "" "The mouse wheel zooms the image, and when you hold its button pressed at the " "same time it switches to the neighbouring image." msgstr "" #: src/help_text.c:110 #, fuzzy msgid "" "You can also zoom by dragging the mouse vertically while holding Shift and " "the first button." msgstr "Ihindurangano ku i Imbeba Mu buryo buhagaze Na i Itangira Akabuto" #: src/help_text.c:113 #, fuzzy msgid "Space and Backspace act like n and p." msgstr "Na nka N Na P" #: src/help_text.c:116 #, fuzzy msgid "Draw a rectangle with the third button and gliv will zoom in it." msgstr "a Urukiramende Na: i Akabuto Na Ihindurangano in" #: src/images_menus.c:82 msgid "Rebuilding:" msgstr "" #: src/images_menus.c:209 src/images_menus.c:447 src/menus.c:517 msgid "Directories" msgstr "ububiko bw'amaderese" #: src/images_menus.c:296 msgid "Current image directory..." msgstr "" #: src/images_menus.c:363 src/menus.c:337 #, fuzzy msgid "Rebuild this menu" msgstr "iyi Ibikubiyemo" #: src/images_menus.c:370 src/menus.c:338 #, fuzzy msgid "Open thumbnails browser..." msgstr "Ubugari" #: src/include/about.h:6 #, fuzzy msgid "GLiv version" msgstr "Verisiyo" #: src/include/about.h:8 #, fuzzy msgid "" "Use 'gliv --help' to show command line options.\n" "A quick help is accessible by typing 'h' or using the menu." msgstr "" "Kuri Komandi: Umurongo Amahitamo A Ifashayobora ni ku Kwandika: Cyangwa " "ikoresha i Ibikubiyemo" #: src/include/about.h:10 #, fuzzy msgid "See http://guichaz.free.fr/gliv for updates." msgstr "HTTP org kugirango" #: src/loading.c:81 #, fuzzy, c-format msgid "%s not while loading an image\n" msgstr "%sOYA Itangira..." #: src/loading.c:83 #, fuzzy, c-format msgid "%s while loading %s\n" msgstr "%sItangira..." #: src/loading.c:102 #, fuzzy msgid "alpha channel" msgstr "Alufa" #: src/loading.c:158 #, fuzzy, c-format msgid "%s: unknown decompressed extension\n" msgstr "%s:Kitazwi" #: src/loading.c:165 #, fuzzy, c-format msgid "%s: image cannot be compressed twice\n" msgstr "%s:Ishusho Byegeranijwe" #: src/loading.c:188 #, fuzzy, c-format msgid "%s: unknown extension (none)\n" msgstr "%s:Kitazwi Umugereka Ntacyo" #: src/loading.c:197 #, fuzzy, c-format msgid "%s: unknown extension\n" msgstr "%s:Kitazwi" #: src/loading.c:291 src/next_image.c:280 #, fuzzy, c-format msgid "Cannot load %s" msgstr "Ibirimo" #: src/main.c:65 #, fuzzy, c-format msgid "Command line flags should be on or off, not %s\n" msgstr "Umurongo Amabendera ku Cyangwa Bidakora OYA" #: src/main.c:181 #, fuzzy msgid "Cannot sort and shuffle at the same time\n" msgstr "Ishungura Na ku i" #: src/main.c:221 msgid "" "The --client and --client-clear command line options are mutually exclusive\n" msgstr "" #: src/main.c:253 src/main.c:256 msgid "Do not ask again" msgstr "" #: src/main.c:257 msgid "Options will be saved" msgstr "" #: src/main.c:279 #, fuzzy msgid "Do you really want to quit GLiv?" msgstr "Kuri Kuvamo" #: src/main.c:337 src/next_image.c:542 #, fuzzy msgid "No image found" msgstr "Ishusho Byabonetse" #: src/menus.c:403 msgid "File" msgstr "Idosiye " #: src/menus.c:404 msgid "Open..." msgstr "Gufungura..." #: src/menus.c:405 msgid "Open directory..." msgstr "" #: src/menus.c:407 msgid "Load collection..." msgstr "" #: src/menus.c:408 #, fuzzy msgid "Save collection..." msgstr "Kubika" #: src/menus.c:410 msgid "Quit" msgstr "Kuvamo" #: src/menus.c:414 msgid "Commands" msgstr "amabwiriza" #: src/menus.c:415 #, fuzzy msgid "Load previous image" msgstr "Ibanjirije Ishusho" #: src/menus.c:416 #, fuzzy msgid "Load next image" msgstr "Komeza>> Ishusho" #: src/menus.c:418 #, fuzzy msgid "Load first image" msgstr "Komeza>> Ishusho" #: src/menus.c:419 #, fuzzy msgid "Load last image" msgstr "Komeza>> Ishusho" #: src/menus.c:420 #, fuzzy msgid "Load random image" msgstr "Komeza>> Ishusho" #: src/menus.c:421 #, fuzzy msgid "Reload the current image" msgstr "i KIGEZWEHO IDOSIYE" #: src/menus.c:423 #, fuzzy msgid "Sort images list" msgstr "Ishusho Urutonde" #: src/menus.c:424 #, fuzzy msgid "Shuffle images list" msgstr "Ishusho Urutonde" #: src/menus.c:426 #, fuzzy msgid "Rebuild images menus" msgstr "Ishusho Ibikubiyemo" #: src/menus.c:427 #, fuzzy msgid "Stop rebuilding the images menu" msgstr "i Ishusho Ibikubiyemo" #: src/menus.c:431 #, fuzzy msgid "Toggle floating windows" msgstr "Idirishya" #: src/menus.c:433 src/next_image.c:799 #, fuzzy msgid "Start the slide show" msgstr "Gutangira i Igice Garagaza" #: src/menus.c:437 #, fuzzy msgid "Remove the current file" msgstr "i KIGEZWEHO IDOSIYE" #: src/menus.c:440 #, fuzzy msgid "Edit actions..." msgstr "Amahitamo..." #: src/menus.c:441 #, fuzzy msgid "Action on the current image" msgstr "i KIGEZWEHO IDOSIYE" #: src/menus.c:443 #, fuzzy msgid "Action on every image" msgstr "Kuri Ibirimo buri IDOSIYE" #: src/menus.c:448 msgid "Undo" msgstr "Isubiranyuma" #: src/menus.c:449 msgid "Redo" msgstr "Gusubiramo" #: src/menus.c:450 #, fuzzy msgid "Clear history" msgstr "Siba urutonde" #: src/menus.c:452 #, fuzzy msgid "Move" msgstr "Kwimura Hejuru" #: src/menus.c:453 msgid "Move left" msgstr "Kwimura ibumoso" #: src/menus.c:454 msgid "Move right" msgstr "Kwimura Iburyo" #: src/menus.c:455 msgid "Move up" msgstr "Kwimura Hejuru" #: src/menus.c:456 msgid "Move down" msgstr "Kwimura Hasi" #: src/menus.c:459 msgid "Set position" msgstr "" #: src/menus.c:467 msgid "Rotation" msgstr "" #: src/menus.c:468 #, fuzzy msgid "Rotate +90 deg" msgstr "0 1." #: src/menus.c:470 #, fuzzy msgid "Rotate -90 deg" msgstr "0 1." #: src/menus.c:472 #, fuzzy msgid "Rotate +0.1 deg" msgstr "0 1." #: src/menus.c:474 #, fuzzy msgid "Rotate -0.1 deg" msgstr "0 1." #: src/menus.c:480 #, fuzzy msgid "Horizontal flip" msgstr "Guhindukiza" #: src/menus.c:482 #, fuzzy msgid "Vertical flip" msgstr "Guhindukiza" #: src/menus.c:486 #, fuzzy msgid "Maximize small image" msgstr "Gitoya Ishusho" #: src/menus.c:487 #, fuzzy msgid "Scale down large image" msgstr "Hasi Binini Ishusho" #: src/menus.c:489 #, fuzzy msgid "Image fit window" msgstr "Idirishya" #: src/menus.c:492 msgid "Zoom in" msgstr "Ingano-imbere" #: src/menus.c:493 msgid "Zoom out" msgstr "Ingano-inyuma" #: src/menus.c:494 msgid "Fit width" msgstr "" #: src/menus.c:495 #, fuzzy msgid "Fit height" msgstr "Ubugari X Ubuhagarike" #: src/menus.c:499 msgid "Reset" msgstr "Kugarura" #: src/menus.c:504 #, fuzzy msgid "Toggle Fullscreen mode" msgstr "Ubwoko" #: src/menus.c:505 msgid "Toggle Menu Bar" msgstr "" #: src/menus.c:506 msgid "Toggle Status Bar" msgstr "" #: src/menus.c:507 msgid "Toggle Scrollbars" msgstr "" #: src/menus.c:508 msgid "Toggle Alpha checks" msgstr "" #: src/menus.c:510 #, fuzzy msgid "Hide the cursor" msgstr "i indanga" #: src/menus.c:511 #, fuzzy msgid "Set this window as server" msgstr "iyi Idirishya Nka Seriveri" #: src/menus.c:513 msgid "Options..." msgstr "Amahitamo..." #: src/menus.c:532 msgid "Help" msgstr "Gufasha" #: src/menus.c:533 msgid "About..." msgstr "Byerekeye..." # #-#-#-#-# basctl.pot (PACKAGE VERSION) #-#-#-#-# # basctl/source\basicide\basidesh.src:RID_BASICIDE_OBJECTBAR.SID_CHOOSE_CONTROLS.text # #-#-#-#-# basctl.pot (PACKAGE VERSION) #-#-#-#-# # basctl/source\basicide\tbxctl.src:RID_TBXCONTROLS.RID_TOOLBOX.text # #-#-#-#-# basctl.pot (PACKAGE VERSION) #-#-#-#-# # basctl/source\basicide\tbxctl.src:RID_TBXCONTROLS.text #: src/menus.c:534 #, fuzzy msgid "Controls..." msgstr "Amagenzura" #: src/next_image.c:143 msgid "First image" msgstr "" #: src/next_image.c:146 #, fuzzy msgid "Last image" msgstr "Komeza>> Ishusho" #: src/next_image.c:226 msgid "Loading errors" msgstr "" #: src/next_image.c:239 msgid "The following errors occurred while loading the next image:\n" msgstr "" #: src/next_image.c:828 #, fuzzy msgid "Stop the slide show" msgstr "i Igice Garagaza" #: src/open_dialog.c:101 #, fuzzy msgid "GLiv: Select a folder to open" msgstr "Idosiye Cyangwa Gukoresha" #: src/open_dialog.c:104 #, fuzzy msgid "GLiv: Select files to open" msgstr "Idosiye Cyangwa Gukoresha" #: src/open_dialog.c:129 src/rcfile.c:106 #, fuzzy msgid "Try to load every file" msgstr "Kuri Ibirimo buri IDOSIYE" #: src/open_dialog.c:130 src/rcfile.c:118 msgid "Recursive directory traversal" msgstr "" #: src/options.c:219 src/options.c:237 msgid "NONE" msgstr "" #: src/options.c:222 #, fuzzy, c-format msgid "This configuration file has been read: %s" msgstr "#IDOSIYE kugirango" #: src/options.c:240 #, fuzzy, c-format msgid "This configuration file will be written: %s" msgstr "#IDOSIYE kugirango" #: src/rcfile.c:97 #, fuzzy msgid "Start in full screen mode" msgstr "Gutangira in Mugaragaza Ubwoko" #: src/rcfile.c:100 #, fuzzy msgid "Display the menu bar" msgstr "i Ibikubiyemo" #: src/rcfile.c:101 #, fuzzy msgid "Display info about the image" msgstr "Ibyerekeye i Ishusho" #: src/rcfile.c:102 msgid "Display scrollbars" msgstr "" #: src/rcfile.c:104 #, fuzzy msgid "Alpha checks in the background" msgstr "in i Mbuganyuma" #: src/rcfile.c:117 msgid "Enable transitions" msgstr "" #: src/rcfile.c:119 #, fuzzy msgid "Keep transfo between images" msgstr "hagati Ishusho" #: src/rcfile.c:122 msgid "Maximum framerate" msgstr "" #: src/rcfile.c:123 #, fuzzy msgid "Delay before hiding the cursor" msgstr "Mbere i indanga" #: src/rcfile.c:124 #, fuzzy msgid "History length" msgstr "Uburebure" #: src/rcfile.c:125 #, fuzzy msgid "Delay between images" msgstr "hagati Ishusho" #: src/rcfile.c:131 #, fuzzy msgid "background: red channel" msgstr "Mbuganyuma Umutuku" #: src/rcfile.c:132 #, fuzzy msgid "background: green channel" msgstr "Mbuganyuma Icyatsi" #: src/rcfile.c:133 #, fuzzy msgid "background: blue channel" msgstr "Mbuganyuma Ubururu" #: src/rcfile.c:134 #, fuzzy msgid "alpha1 tile: red channel" msgstr "Agakaro Umutuku" #: src/rcfile.c:135 #, fuzzy msgid "alpha1 tile: green channel" msgstr "Agakaro Icyatsi" #: src/rcfile.c:136 #, fuzzy msgid "alpha1 tile: blue channel" msgstr "Agakaro Ubururu" #: src/rcfile.c:137 #, fuzzy msgid "alpha2 tile: red channel" msgstr "Agakaro Umutuku" #: src/rcfile.c:138 #, fuzzy msgid "alpha2 tile: green channel" msgstr "Agakaro Icyatsi" #: src/rcfile.c:139 #, fuzzy msgid "alpha2 tile: blue channel" msgstr "Agakaro Ubururu" #: src/rcfile.c:238 #, c-format msgid "Unknown option in configuration file: %s\n" msgstr "" #: src/rcfile.c:240 #, fuzzy, c-format msgid "Parse error in configuration file: %s\n" msgstr "#IDOSIYE kugirango" #: src/rcfile.c:486 #, fuzzy, c-format msgid "" "# Configuration file for GLiv %s\n" "\n" msgstr "#IDOSIYE kugirango" #: src/rcfile.c:487 #, fuzzy msgid "# Option names are case sensitive.\n" msgstr "#Amazina" #: src/rcfile.c:488 #, fuzzy msgid "" "# Option values are case insensitive.\n" "\n" msgstr "#Uduciro" #: src/thread.c:164 #, fuzzy msgid "Cannot use a thread\n" msgstr "Gukoresha a Urudodo" #: src/transition.c:261 #, c-format msgid "transition from `%s' to `%s'" msgstr "" #: src/tree_browser.c:80 msgid "Browser" msgstr "" #: src/tree_browser.c:201 msgid "Thumb" msgstr "" #: src/tree_browser.c:222 #, fuzzy msgid "Thumbnails browser" msgstr "Ubugari" #: src/windows.c:207 #, fuzzy msgid "loading" msgstr "Ifungura" #: src/windows.c:238 #, fuzzy msgid "No image loaded" msgstr "Ishusho" #: src/windows.c:239 #, fuzzy msgid "width x height" msgstr "Ubugari X Ubuhagarike" #: src/windows.c:240 #, fuzzy msgid "zoom% (angle)" msgstr "Ihindurangano Imfuruka" #: src/windows.c:319 #, fuzzy, c-format msgid "%.3f%% (%.3f deg%s)" msgstr "" "%.Project- Id- Version: basctl\n" "POT- Creation- Date: 2003- 12- 07 17: 13+ 02\n" "PO- Revision- Date: 2004- 11- 04 10: 13- 0700\n" "Last- Translator: Language- Team:< en@ li. org> MIME- Version: 1. 0\n" "Content- Type: text/ plain; charset= UTF- 8\n" "Content- Transfer- Encoding: 8bit\n" "X- Generator: KBabel 1. 0\n" "." #: src/windows.c:363 #, c-format msgid "Ignoring initial geometry (%s) as fullscreen mode is requested\n" msgstr "" #: src/windows.c:375 #, c-format msgid "Cannot parse geometry: %s\n" msgstr "" #: src/windows.c:409 #, fuzzy msgid "GLiv in fullscreen" msgstr "in" #, fuzzy #~ msgid "" #~ "Your mouse wheel (if supported) will zoom the image and switch it when " #~ "you press the button." #~ msgstr "" #~ "Imbeba Ipine NIBA Ihindurangano i Ishusho Na Hindura Ryari: Kanda i " #~ "Akabuto" #, fuzzy #~ msgid "No automatic image centering" #~ msgstr "Byikoresha Ishusho" #, fuzzy #~ msgid "You'll have to save the options" #~ msgstr "a IDOSIYE Kuri Kubika i" #, fuzzy #~ msgid "" #~ "The following OpenGL errors have occured:\n" #~ "%s" #~ msgstr "Amakosa" #, fuzzy #~ msgid "Click the window to hide it." #~ msgstr "i Idirishya Kuri Gushisha" #, fuzzy #~ msgid "no alpha channel" #~ msgstr "Oya Alufa" #, fuzzy #~ msgid "All files in the directory" #~ msgstr "Idosiye in i bushyinguro" #, fuzzy #~ msgid "Scale down larges images" #~ msgstr "Hasi Ishusho" #, fuzzy #~ msgid "" #~ "# Note: 'maximize = True' or 'scale-down = True' implies 'full-screen = " #~ "True'.\n" #~ "\n" #~ msgstr "#Kugira kinini Cyangwa Gupima Hasi Mugaragaza" gliv-1.9.7/po/Makefile.in.in.patch0000644000076400007640000000133611465576131014141 0ustar gg--- /usr/share/gettext/po/Makefile.in.in +++ Makefile.in.in @@ -66,8 +66,8 @@ .po.gmo: @lang=`echo $* | sed -e 's,.*/,,'`; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o $${lang}.gmo $${lang}.po"; \ - cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo + echo "$${cdcmd}rm -f $${lang}.gmo && msgconv -t UTF-8 $${lang}.po | $(GMSGFMT) -c --statistics -o $${lang}.gmo -"; \ + cd $(srcdir) && rm -f $${lang}.gmo && msgconv -t UTF-8 $${lang}.po | $(GMSGFMT) -c --statistics -o t-$${lang}.gmo - && mv t-$${lang}.gmo $${lang}.gmo .sin.sed: sed -e '/^#/d' $< > t-$@ gliv-1.9.7/po/cs.gmo0000644000076400007640000004772611465576131011517 0ustar ggD]l"#'(Pd%#3KTj     .<[z1 )5_t{$ /#6 NZu2*  (4Qd y+ @ " 0< LYq!&   )!9[ jt ,/N?^ l *   - @ Q a q     )  !6!K!a!s!!! ! ! !!!!!!!!" ,"9"T"!\"~""" ""&"""##1# C#O#m#r##########$#$4$O$e$|$$,$ $$$% /%:%%K%q%%%%%%%L&:^&$&&<a'}')(+F(r(x(((((((( )#) ,) 6)A)Q)Ke))))))k* }*#**\*!+:+B++K+ w++++++,'!,I,b,|,,, ,,,,--"-#&-J-'b-'-'--&- .. 3.T. [.)|..#.. .+.)/ 8/F/ _/pm/%021671n11'1111(292#R2+v2 22"2222 363"F3i3 q3 |3 3#33 3 3 4#-4<Q4444$455!5':5$b555A5 556"6!16S6*s66-6$6 7737N7e7n7'}77g7*8 D8Q8a8p8888)8*9,939C9\9v9$99999,:%3:"Y: |: ::*::]:H;g; p;~;A<_< x<)<+</<=-=I=]=v= ====> >'3>:[> >>>>,?=? R?]?n???????8?,@C@"]@ @@@@@@@8@$2AWA`A~A AAA"AAB B&B;BPBeB zBBBBBBB&C:CDSCCC%CC DD2/DbD&vDDDD%DE9E8RE!EEETFxF*G(>GgGoGGGG!GGGH.H GHUH dH rHHcH$H I&I.BIqII$J4JKJ,J KK>K WKcKKKKKK)L=LTLlLLL LL"LL#L"M)M/' a"3s-P/L; 5k8}zuK{,<R :_E@#M6$?2Vm(B# Configuration file for GLiv %s # Option names are case sensitive. # Option values are case insensitive. %.3f%% (%.3f deg%s)%s is not a GLiv collection%s not while loading an image %s while loading %s %s: image cannot be compressed twice %s: unknown decompressed extension %s: unknown extension %s: unknown extension (none) +/=/- : Zoom in/in/outAbout...Action on every imageAction on the current imageActionsAlpha 1Alpha 2Alpha checksAlpha checks in the backgroundAutomatic window resizingBackgroundBottom leftBottom rightBrowserBuild images menus at startupBuild mipmapsC-down : Rotate by -90 degreesC-left : Rotate by +0.1 degreeC-right: Rotate by -0.1 degreeC-up : Rotate by +90 degreesCannot find an appropriate visual, try glxinfo(1)Cannot load %sCannot parse geometry: %s Cannot set the OpenGL capabilityCannot sort and shuffle at the same time Cannot use a thread CenterCheck for OpenGL errorsChoose a collection to loadChoose a file to save the collectionClear historyCommandCommand line flags should be on or off, not %s CommandsConfiguration fileConfirm before quittingControls...Current image directory...Delay before hiding the cursorDelay before hiding the cursor 0: feature disabledDelay between imagesDelay between images during the slide showDelete : Delete the current fileDirectoriesDisplay info about the imageDisplay scrollbarsDisplay the menu barDitheringDo not ask againDo you really want to delete this file? %s Do you really want to quit GLiv?Draw a rectangle with the third button and gliv will zoom in it.ESC, q : QuitEdit ActionEdit actions...Elapsed timeEnable OpenGL filteringEnable transitionsEnable transitions between imagesEnter an image number:Failed to create a new processFatal error: GL_MAX_TEXTURE_SIZE = %d FileFirst imageFit heightFit widthFullscreen modeGL_MAX_TEXTURE_SIZE must be >= 64GLiv about boxGLiv helpGLiv in fullscreenGLiv versionGLiv won't write a collection to a terminal GLiv: Select a folder to openGLiv: Select files to openHelpHide the cursorHistory lengthHistory length 0: feature disabled -1: infiniteHorizontal flipIgnoring initial geometry (%s) as fullscreen mode is requested Image fit windowImagesImages menusIn the command field, printf like substitutions can be used: %d Path to the current file directory %b Current file name %f Path to the current file %% A litteral % Initial image positionInserting files...InterfaceKeep only one image in memoryKeep transfo between imagesKeep transformations when switching imagesLast imageLast/First image notice timeLoad collection...Load first imageLoad last imageLoad next imageLoad previous imageLoad random imageLoad the Nth image...Loading collection: %sLoading errorsM : Maximize the image to the windowMake mnemonics for images menusMake the slide show loopMaximize small imageMaximize small imagesMaximum framerateMaximum framerate -1: infiniteMenu bar enabledMoveMove downMove leftMove rightMove upNONENameNo image foundNo image loadedNo images to put in a collection Open directory...Open in GimpOpen thumbnails browser...Open...OpenGL error in %s() at %s:%d: %sOpenGL not supportedOptionsOptions will be savedOptions...Overwrite "%s" ?Parse error in configuration file: %s Pause : Start/stop the slide showQuitRebuild images menusRebuild this menuRebuilding:Recursive directory traversalRedoReload the current imageRemaining timeRemove the current fileResetRotate +0.1 degRotate +90 degRotate -0.1 degRotate -90 degRotationSame as previousSave collection...Save options nowSave options when quittingSaving collection: %sScale down large imageScale down large imagesScrollbars enabledSee http://guichaz.free.fr/gliv for updates.Set positionSet this window as serverShow thumbnails in images menusShuffle images listSlide showSort images listSpace and Backspace act like n and p.Standard outputStart in full screen modeStart the slide showStart with the slide showStatus bar enabledStop rebuilding the images menuStop the slide showThe --client and --client-clear command line options are mutually exclusive The action '%s' terminated with a non-null return code: %dThe action name '%s' is already usedThe first mouse button and the arrow keys will move the image unless the Control key is pressed. In which case the image will be rotated around the window center.The following errors occurred while loading the next image: The mouse wheel zooms the image, and when you hold its button pressed at the same time it switches to the neighbouring image.This configuration file has been read: %sThis configuration file will be written: %sThumbThumbnail heightThumbnail widthThumbnails browserToggle Alpha checksToggle Fullscreen modeToggle Menu BarToggle ScrollbarsToggle Status BarToggle floating windowsTop leftTop rightTotal timeTransformationsTransition durationTransitions obey the maximum framerate parameter in the Transformations tabTry to load every fileUndoUnknown OpenGL error (%d)Unknown option in configuration file: %s Use 'gliv --help' to show command line options. A quick help is accessible by typing 'h' or using the menu.Vertical flipWrong URI format: %d (instead of 8)Wrong URI length: %dYou can also zoom by dragging the mouse vertically while holding Shift and the first button.Zoom centered on pointerZoom inZoom outa : Toggle display of the alpha checksalpha channelalpha1 tile: blue channelalpha1 tile: green channelalpha1 tile: red channelalpha2 tile: blue channelalpha2 tile: green channelalpha2 tile: red channelb : Toggle display of the menu barbackground: blue channelbackground: green channelbackground: red channelc : Clear the historyd : Hide the cursordirectorydirectory/filee : Vertical flipelementsf : Full-screen/windowfilefpsg : Display the image selectorglXMakeCurrent() failedh : Toggle display of the help boxi : Toggle display of the info barl : Reduce the image to the windowloadingm : Make the image fit the windowmillisecondsn/p : Next/previous imageo : Display the open dialogpixelsr : Reset position and sizes : Toggle display of the scrollbarssecondst : Display the options dialogtransition from `%s' to `%s'u : Undow : Toggle display of floating windowswidth x heighty : Redoz : Horizontal flipzoom% (angle)Project-Id-Version: gliv 1.9.6 Report-Msgid-Bugs-To: guichaz@gmail.com POT-Creation-Date: 2010-04-19 00:52+0200 PO-Revision-Date: 2010-04-17 11:30+0100 Last-Translator: Martin Vejmelka Language-Team: Czech MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # Konfigurační soubor pro GLiv %s # Jména voleb jsou citlivé na velikost písmen. # Hodnoty voleb nejsou citlivé na velikost písmen. %.3f%% (%.3f stupňů%s)%s není GLiv kolekce%s mimo průběh načítání obrázku %s při načítání %s %s: obrázek nemůže být komprimován dvakrát %s: neznámá dekomprimovaná přípona %s: neznámá přípona %s: neznámá přípona (žádná) +/=/- : Přiblížit/Přiblížit/OddálitO programu...Akce pro všechny obrázkyAkce pouze pro aktuální obrázekAkceAlfa 1Alfa 2Kontrola alfyZobrazení rastru na pozadí pro kontrolu alfa kanáluAutomatická změna velikosti oknaPozadíVlevo doleVpravo doleProhlížečSestavit menu obrázků při startuSestavit mipmapyC-dolů : Otočit o -90 stupňůC-vlevo : Otočit o +0.1 stupněC-vpravo: Otočit o -0.1 stupněC-nahoru : Otočit o +90 stupňůNelze najít vhodné parametry zobrazení, zkuste glxinfo(1)Nelze načíst %sNelze detekovat geometrii: %s Nelze nastavit OpenGL podporuNelze současně míchat a třídit Vlákno nelze použít StředKontrolovat chyby OpenGLVyberte kolekci, kterou chcete načístVyberte soubor pro uložení kolekceVyčistit historiiPříkazPřepínače programu by měly být buď on nebo off, nikoliv %s PříkazyKonfigurační souborPotvrzení před ukončenímOvládání...Aktuální adresář obrázků...Prodleva před skrytím kurzoruProdleva před skrytím kurzoru 0: vypnutoProdleva mezi obrázkyProdleva mezi obrázky v průběhu prezentaceDelete : Odstranit aktuální souborAdresářeZobrazovat informace o obrázkuZobrazovat rolovací pruhyZobrazovat lištu menuChvěníJiž se neptatOpravdu chcete smazat tento soubor? %s Opravu chcete ukončit GLiv?Nakreslete obdélník pomocí třetího tlačítka myši a gliv provede přiblížení v této oblasti.ESC, q : Ukončit programUpravit akciUpravit akce...Uplynulý časPovolit OpenGL filtrováníPovolit přechodyPovolit přechod mezi obrázkyVložte číslo obrázku:Vytvoření nového procesu se nezdařiloFatální chyba: GL_MAX_TEXTURE_SIZE = %d SouborPrvní obrázekPřizpůsobit na výškuPřizpůsobit na šířkuCeloobrazovkový režimGL_MAX_TEXTURE_SIZE musí být >= 64GLiv dialog o programuGLiv nápovědaGLiv na celou obrazovkuverze programu GLivGLiv nebude vypisovat kolekci do terminálu GLiv: Vybrat adresář pro otevřeníGLiv: Vybrat soubor pro otevřeníNápovědaSkrýt kurzorDélka historieDélka historie 0: vypnuto -1: nekonečnáPřeklopit horizontálněPočáteční geometrie je ignorována (%s), protože je požadován celoobrazovkový režim Přizpůsobit obrázek do oknaObrázkyMenu obrázkyV poli příkazu lze používat substituce typické pro příkaz printf: %d Cesta do aktuálního adresáře %b Jméno aktuálního souboru %f Cesta k aktuálnímu souboru %% Prostý znak % Počáteční pozice obrázkuVkládají se soubory...RozhraníUchovávat v paměti pouze jeden obrázekPři změně obrázku zachovat transformaciZachovat transformace při přepnutí obrázkůPoslední obrázekDoba uzpornění na poslední/první obrázekNačíst kolekci...Načíst první obrázekNačíst poslední obrázekNačíst následující obrázekNačíst předchozí obrázekNačíst náhodný obrázekNačíst Ntý obrázek...Načítání kolekce: %sChyby načítáníM : Maximalizovat obrázek do oknaVytvořit mnemonické klávesové zkratky v menu obrázkůSpouštět prezentaci ve smyčceMaximalizovat malý obrázekMaximalizovat malé obrázkyMaximální frekvence snímkůMaximální frekvence snímků -1: neomezenoLišta menu povolenaPřesunoutPřesunout dolůPřesunout vlevoPřesunout vpravoPřesunout nahoruŽÁDNÉJménoNebyl nalezen žádný obrázekNení načten žádný obrázekŽádne obrázky, které by mohly být dány do kolekce Otevřít adresář...Otevřít v programu GimpOtevřít prohlížeč miniatur...Otevřít...Chyba OpenGL v %s() v %s:%d %sOpenGL není podporovánoVolbyVolby budou uloženyVolby...Přepsat "%s"?Chyba při zpracovávání konfiguračního souboru: %s Pause : Spustit/zastavit prezentaciUkončitSestavit znovu menu obrázkůSestavit znovu toto menuSestavuje se:Rekurzivní průchod adresářiZnovuNačíst znovu aktuální obrázekZbývající časOdstranit aktuální souborResetovatOtočit +0.1 stupeňOtočit +90 stupňůOtočit -0.1 stupeňOtočit -90 stupňůOtočeníStejně jako předchozíUložit kolekci...Uložit volby nyníUložit volby při odchoduUkládám kolekci: %sPřizpůsobit velký obrázekZmenšit měřítko velkých obrázkůRolovací pruhy povolenyInformace o aktualizacích naleznete na http://guichaz.free.fr/gliv.Nastavit poziciNastavit toto okno jako serverZobrazovat miniatury v menu obrázkůZamíchat seznam obrázkůPrezentaceSetřídit seznam obrázkůMezerník a klávesa zpět se chovají jako n a p.Standardní výstupSpouštět v celoobrazovkovém režimuZahájit prezentaciZahájit prezentaciStavový řádek povolenZastavit sestavování menu obrázkůUkončit prezentaciVolby --client a --client-clear se vzájemně vylučují Akce '%s' skončila s nenulovým návratovým kódem: %dJméno akce '%s' je již použitoPrvní tlačítko myši a šipky posunou obrázek, pokud není současně stisknutá klávesa Control. V takovém případě bude obrázek otočen podle středu okna.Při načítání dalšího obrázku došlo k následující chybě: Kolečko myši přibližuje obrázek, pokud současně držíte stisknuté tlačítko, přepíná na sousední obrázek.Konfigurace byla přečtena ze souboru: %sKonfigurace bude zapsána do souboru: %sNáhledVýška miniaturyŠířka miniaturyProhlížeč miniaturPřepnout alfa kanályPřepnout celoobrazovkový režimPřepnout lištu menuPřepnout rolovací pruhyPřepnout stavový řádekPřepnout plovoucí oknaVlevo nahořeVpravo nahořeCelkový časTransformaceDoba trvání přechoduPřechody musí respektovat maximální frekvenci nastavenou jako parametr v záložce TransformaceSnažit se načíst všechny souboryZpětNeznámá chyba OpenGL (%d)Neznámá volba v konfiguračním souboru: %s Pro zobrazení voleb programu použijte 'gliv --help'. Rychlá nápověda je dostupná stisknutím klávesy 'h' nebo použitím menu.Překlopit vertikálněChybný formát URI: %d (namísto 8)Chybná délka URI: %dPřiblížení můžete provést také tažením myši vertikálně při současném držení klávesy Shift a prvního tlačítka myši.Střed zvětšení je na umístění kurzoruPřiblížitOddálita : Přepnout zobrazení rastru pro kontrolu alfa kanálualfa kanáloblast alfa1: modrý kanáloblast alfa1: zelený kanáloblast alfa1: červený kanáloblast alfa2: modrý kanáloblast alfa2: zelený kanáloblast alfa2: červený kanálb : Přepnout zobrazení lišty menupozadí: modrý kanálpozadí: zelený kanálpozadí: červený kanálc : Vyčistit historiid : Skrýt kurzoradresářadresář/soubore : Vertikální překlopeníprvkůf : Na celou obrazovku/v okněsouborsnímku za sekundug : Zobrazit nástroj pro výběr obrázkuglXMakeCurrent() selhaloh : Přepnout zobrazení dialogu nápovědyi : Přepnout zobrazení informační lištyl : Zmenšit obrázek do oknanačítáním : Přizpůsobit obrázek do oknamilisekundn/p : Následující/předchozí obrázeko : Zobrazit dialog otevřenípixelůr : Vyresetovat pozici a rozměrs : Přepnout zobrazení rolovacích pruhůsekundt : Zobrazit dialog volebpřechod od `%s' k `%s'u : Zpětw : Přepnout zobrazení plovoucích okenšířka x výškay : Znovuz : Horizontální překlopenípřiblížení% (úhel)gliv-1.9.7/po/ro.gmo0000644000076400007640000003241511465576131011517 0ustar gg "#' H\x%# +CLT \i  61U )$ "/0` iu2* & ;+E q@  &!*L [e x/  !+I\l) ? P Z dow  *0@O_n '2%Ci  '7NSkm # \ }+ /Id'} $;D`d'|''& #0 Mn u)#   0o>) ' ,!-!C!(^!!0!)!!$" =" ^"h"p"x""/"","##<# \# }#<####1$H$0g$$I$$ $+%G4%|%2% %%% &*& ;&?\&& &(&&&('-' @'L'k'z''':''&' (((=( W(+a((((7(7)'K)s)))!)))**'*0*L* e*q** **#** * * *++"+5+G+Z+l++,+"++",.&,$U, z,,*,%,,--&0-W-m-%.8.#I..m. .!.. . /"/ 9/D/c//#0$0b?000 010 0% 1"/1!R1%t1"1!1312*2>2Q2k2#22*222,2(#31L3 ~313 3&3(34%4,C4p4%x4444$4 4y!2.WI0kH-;ULru<?o4&=|,%z_+5j`ntq}$\x K M']l[1@NX/PeaV#G9BRYi TE ^)*g~sFm3hA:OvJQp(bZcSd {f D6C8>7w"# Configuration file for GLiv %s # Option names are case sensitive. # Option values are case insensitive. %.3f%% (%.3f deg%s)%s is not a GLiv collection%s not while loading an image %s while loading %s %s: image cannot be compressed twice %s: unknown decompressed extension %s: unknown extension %s: unknown extension (none) +/=/- : Zoom in/in/outAbout...Alpha 1Alpha 2Alpha checksAlpha checks in the backgroundAutomatic window resizingBackgroundBuild images menus at startupBuild mipmapsC-down : Rotate by -90 degreesC-left : Rotate by +0.1 degreeC-right: Rotate by -0.1 degreeC-up : Rotate by +90 degreesCannot find an appropriate visual, try glxinfo(1)Cannot load %sCannot set the OpenGL capabilityCannot sort and shuffle at the same time Choose a collection to loadChoose a file to save the collectionClear historyCommand line flags should be on or off, not %s CommandsControls...Delay before hiding the cursorDelay before hiding the cursor 0: feature disabledDelay between imagesDelay between images during the slide showDirectoriesDisplay scrollbarsDisplay the menu barDitheringDo you really want to delete this file? %s Do you really want to quit GLiv?Draw a rectangle with the third button and gliv will zoom in it.ESC, q : QuitElapsed timeFatal error: GL_MAX_TEXTURE_SIZE = %d FileFullscreen modeGL_MAX_TEXTURE_SIZE must be >= 64GLiv about boxGLiv helpGLiv in fullscreenGLiv versionHelpHide the cursorHistory lengthHistory length 0: feature disabled -1: infiniteHorizontal flipImage fit windowImagesImages menusInserting files...InterfaceKeep only one image in memoryLoad collection...Load next imageLoad previous imageM : Maximize the image to the windowMake mnemonics for images menusMake the slide show loopMaximize small imageMaximize small imagesMaximum framerateMaximum framerate -1: infiniteMenu bar enabledMove downMove leftMove rightMove upNo image foundNo image loadedOpen...OpenGL not supportedOptionsOptions...QuitRebuild images menusRebuild this menuRebuilding:RedoRemaining timeRemove the current fileResetRotate +0.1 degRotate +90 degRotate -0.1 degRotate -90 degSave collection...Saving collection: %sScale down large imageScale down large imagesScrollbars enabledSet this window as serverShow thumbnails in images menusShuffle images listSlide showSort images listSpace and Backspace act like n and p.Start in full screen modeStart the slide showStart with the slide showStatus bar enabledStop rebuilding the images menuStop the slide showThe first mouse button and the arrow keys will move the image unless the Control key is pressed. In which case the image will be rotated around the window center.Thumbnail heightThumbnail widthToggle Alpha checksToggle Fullscreen modeToggle Menu BarToggle ScrollbarsToggle Status BarTotal timeTransformationsTry to load every fileUndoUnknown OpenGL error (%d)Use 'gliv --help' to show command line options. A quick help is accessible by typing 'h' or using the menu.Vertical flipWrong URI format: %d (instead of 8)Wrong URI length: %dYou can also zoom by dragging the mouse vertically while holding Shift and the first button.Zoom centered on pointerZoom inZoom outa : Toggle display of the alpha checksalpha channelalpha1 tile: blue channelalpha1 tile: green channelalpha1 tile: red channelalpha2 tile: blue channelalpha2 tile: green channelalpha2 tile: red channelb : Toggle display of the menu barbackground: blue channelbackground: green channelbackground: red channelc : Clear the historyd : Hide the cursore : Vertical flipelementsf : Full-screen/windowfpsglXMakeCurrent() failedh : Toggle display of the help boxi : Toggle display of the info barl : Reduce the image to the windowloadingm : Make the image fit the windowmillisecondsn/p : Next/previous imageo : Display the open dialogpixelsr : Reset position and sizes : Toggle display of the scrollbarssecondst : Display the options dialogu : Undowidth x heighty : Redoz : Horizontal flipzoom% (angle)Project-Id-Version: gliv 1.8 Report-Msgid-Bugs-To: guichaz@gmail.com POT-Creation-Date: 2010-04-19 00:52+0200 PO-Revision-Date: 2003-11-29 08:30+0200 Last-Translator: Eugen Hoanca Language-Team: Romanian MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 8bit # Fiier de configurare pentru GLiv %s # Numele opiunilor sunt caz senzitiv. # Valorile opiunilor sunt caz insenzitiv. %.3f%% (%.3f grade%s)%s nu este o colecie GLiv%s nu n timpul ncrcrii unei imagini %s n timpul ncrcrii %s %s: imaginea nu poate fi compresat de dou ori %s: extensie de decomprimare necunoscut %s: extensie necunoscut %s: extensie necunoscut (nici una) +/=/- : Mrire/mrire/micorareDespre...Alpha 1Alpha 2Verificri AlphaVerificri Alpha n fundalMicorare/Mrire(resizing) automat al ferestreiFundalConstruiete meniurile imaginilor la nceputConstruiete MipmapsC-jos : Rotire cu -90 de gradeC-stnga : Rotire cu +0.1 gradeC-dreapta : Rotire cu -0.1 gradeC-sus : Rotire cu +90 de gradeNu se poate gsi mediu vizual potrivit, ncercai glxinfo(1)Nu am putut ncrca %sNu se pot seta capacitile OpenGL.Nu se poate i sorta i amesteca n acelai timp Alegei o colecie de ncrcatAlegei un fiier n care s se salveze coleciaterge istoriculMarcajele(flags) din linia de comand ar trebui sa fie on sau off, nu %s ComenziControale...ntrziere nainte de ascunderea cursoruluintrziere naintea ascunderii cursorului 0: caracteristic dezactivatntrziere ntre imaginintrziere ntre imagini n timpul slide-show-uluiDirectoareAfieaz barele de scrollAfieaz bara de meniuriDitheringSigur dorii s tergei acest fiier? %s Sigur dorii s ieii din GLiv?Deseneaz un dreptunghi cu al treilea buton i glib l va mri.ESC, q : IeireTimp trecutEroare fatal: GL_MAX_TEXTURE_SIZE = %d FiierMod ecran mare (fullscreen)GL_MAX_TEXTURE_SIZE trebuie s fie >= 64GLiv caseta despreGLiv ajutorGLiv n ecran mare(fullscreen)GLiv versiuneaAjutorAscunde cursorulLungime istoricLungime istoric 0: caracteristic dezactivat -1: infinitRsturnare(flip) orizontalImaginea s intre perfect n fereastrImaginiMeniurile imaginilorSe insereaz fiierele...InterfaPstreaz n memorie doar o singur imagineSe ncarc colecia...ncarc imaginea urmtoarencarc imaginea precedentM : Maximizeaz imaginea la dimensiunile ferestreiExecut reineri(mnemonics) pentru meniurile imaginilorF ca slide-show-ul s fie ciclic(loop)Maximizeaz imagine micMaximizeaz imaginile miciRat cadre(framerate) maximRat de cadre maxim -1: infinitBara de meniuri activatMut josMut la stngaMut la dreaptaMut susNu s-a gsit nici o imagineNici o imagine ncrcatDeschide...OpenGL nesuportatOpiuniOpiuni...IeireReconstruiete meniurile imaginilorReconstruiete acest meniuReconstruire:Repet(redo)Timp rmasterge fiierul curentResetareRotete +0.1 gradeRotete +90 gradeRotete -0.1 gradeRotete -90 gradeSe salveaz colecia...Salvare colecie: %sMicoreaz la scar(scale down) imagine mareMicoreaz la scar imaginile mariBarele de scroll activateSetare a aceste ferestre ca serverAfieaz thumbnail-uri n meniurile imaginilorLista imaginilor amestecate(shuflle)Slide showLista imaginilor sortateSpaiul i Backspace acioneaz ca n i p.ncepe n mod ecran mare(full screen)ncepe slide-show-ulncepe cu slide-showBara de stare activatNu mai reconstrui meniurile imaginilorOprete slide-show-ulPrimul buton al mouse-ului i tastele-sgei vor muta imaginea cu excepia cazului n care tasta Control este apsat. n acest caz imaginea va fi rotit n jurul centrului ferestrei.nlime thumbnailLime thumbnailModific(toggle) verificrile AlphaModific(toggle) modul ecran mare(full screen)Modific(toggle) Bara de MeniuriModific(toggle) Barele de ScrollModific(toggle) Bara de StareTimp totalTransformrincearc s ncarci fiecare fiierRef(undo)Eroare necunoscut OpenGL (%d)Folosii 'gliv --help' Pentru a avea opiunile liniei de comand. Un ajutor rapid este accesibil apsnd 'h' sau folosind meniul.Rsturnare(flip) verticalFormat URI greit: %d (n loc de 8)Lungime greit de URI: %dPutei face de asemenea zoom micnd mouse-ul vertical n timpul apsrii Shift i primului buton.Zoom centrat pe pointerMrireMicorarea : Modific afiarea verificrilor de alphacanal alphaseciune(tile) alpha1: canal albastruseciune(tile) alpha1: canal verdeseciune(tile) alpha1: canal rouseciune(tile) alpha2: canal albastruseciune(tile) alpha2: canal verdeseciune(tile) alpha2: canal roub : Modific(toggle) afiarea barei de meniurifundal: canal albastrufundal: canal verdefundal: canal rouc : terge istoriculd : Ascunde cursore : Rsturnare(flip) verticalelementef : Ecran mare(full-screen)/fereastrfpsglXMakeCurrent() euath : Modific afiarea casetei de ajutori : Modific afiarea barei de infol : Reduce imaginea la dimensiunea ferestreincrcarem : Potrivete mrimea imaginii n fereastrmilisecunden/p : Imaginea precedent/urmtoareo : Afieaz dialogul de deschiderepixelir : Reseteaz poziia i mrimeas : Modific afiarea barelor de scrollsecundet : Afieaz dialogul de opiuniu : Ref(Undo)lime x nlimey : Repet(Redo)z : Rsturnare(flip) orizontalzoom% (unghi)gliv-1.9.7/po/fr.gmo0000644000076400007640000005045111465576131011506 0ustar ggD]l"#'(Pd%#3KTj     .<[z1 )5_t{$ /#6 NZu2*  (4Qd y+ @ " 0< LYq!&   )!9[ jt ,/N?^ l *   - @ Q a q     )  !6!K!a!s!!! ! ! !!!!!!!!" ,"9"T"!\"~""" ""&"""##1# C#O#m#r##########$#$4$O$e$|$$,$ $$$% /%:%%K%q%%%%%%%L&:^&$&&<a'}')(+F(r(x(((((((( )#) ,) 6)A)Q)Ke))))))k* }*#**\*!+:+B++K+ w++++++,'!,I,b,|,,, ,,,,--"-#&-J-'b-'-'--&- .. 3.T. [.)|..#.. .+.)/ 8/F/ _/>m/)010>1G1%[1%1151'12!22#T2 x2222222"2 3 &343E3 V3+a33"3"3"3" 4>04o444,4 4 55$156V555F5 55&6 <6J6!i6C66.6'7@7.I7"x77"77/7#8;C8888888(8(9*D9)o999999$9: :,: A:2N:):+::::G;O;Ha;&;;;;<< <(<.!=2P==3====>/>L>h> >>7>)>?1?J?#f?/?? ???@@'@-@1@G@)]@@@$@ @$@AA $A EAPA,`A+AAAAAB'B/B JBXBuB{BBBBBBB"C#:C$^CCCC=C D$D.BDqD DD9DDDE3EOE-mEEDE<E(3F\FE%GdkG+G,G)H2HHH^H)vHH)H.H/I-GIuIIIIIMI$JDJLJ6hJJ'K(7K`K}KL%L .L49L nLzLLLLLM4$MYMtMMMMMMN N &NGNON*SN~N)N:N7N 7O1BO tO&OOO=O9 PGPPPpPP8PPPP Q9Zy& cN`4f*|7 l^C)oHA1.qOjFGU+=hd\]gr~i0wveQX%DtbSITYWJp [n!x>' a"3s-P/L; 5k8}zuK{,<R :_E@#M6$?2Vm(B# Configuration file for GLiv %s # Option names are case sensitive. # Option values are case insensitive. %.3f%% (%.3f deg%s)%s is not a GLiv collection%s not while loading an image %s while loading %s %s: image cannot be compressed twice %s: unknown decompressed extension %s: unknown extension %s: unknown extension (none) +/=/- : Zoom in/in/outAbout...Action on every imageAction on the current imageActionsAlpha 1Alpha 2Alpha checksAlpha checks in the backgroundAutomatic window resizingBackgroundBottom leftBottom rightBrowserBuild images menus at startupBuild mipmapsC-down : Rotate by -90 degreesC-left : Rotate by +0.1 degreeC-right: Rotate by -0.1 degreeC-up : Rotate by +90 degreesCannot find an appropriate visual, try glxinfo(1)Cannot load %sCannot parse geometry: %s Cannot set the OpenGL capabilityCannot sort and shuffle at the same time Cannot use a thread CenterCheck for OpenGL errorsChoose a collection to loadChoose a file to save the collectionClear historyCommandCommand line flags should be on or off, not %s CommandsConfiguration fileConfirm before quittingControls...Current image directory...Delay before hiding the cursorDelay before hiding the cursor 0: feature disabledDelay between imagesDelay between images during the slide showDelete : Delete the current fileDirectoriesDisplay info about the imageDisplay scrollbarsDisplay the menu barDitheringDo not ask againDo you really want to delete this file? %s Do you really want to quit GLiv?Draw a rectangle with the third button and gliv will zoom in it.ESC, q : QuitEdit ActionEdit actions...Elapsed timeEnable OpenGL filteringEnable transitionsEnable transitions between imagesEnter an image number:Failed to create a new processFatal error: GL_MAX_TEXTURE_SIZE = %d FileFirst imageFit heightFit widthFullscreen modeGL_MAX_TEXTURE_SIZE must be >= 64GLiv about boxGLiv helpGLiv in fullscreenGLiv versionGLiv won't write a collection to a terminal GLiv: Select a folder to openGLiv: Select files to openHelpHide the cursorHistory lengthHistory length 0: feature disabled -1: infiniteHorizontal flipIgnoring initial geometry (%s) as fullscreen mode is requested Image fit windowImagesImages menusIn the command field, printf like substitutions can be used: %d Path to the current file directory %b Current file name %f Path to the current file %% A litteral % Initial image positionInserting files...InterfaceKeep only one image in memoryKeep transfo between imagesKeep transformations when switching imagesLast imageLast/First image notice timeLoad collection...Load first imageLoad last imageLoad next imageLoad previous imageLoad random imageLoad the Nth image...Loading collection: %sLoading errorsM : Maximize the image to the windowMake mnemonics for images menusMake the slide show loopMaximize small imageMaximize small imagesMaximum framerateMaximum framerate -1: infiniteMenu bar enabledMoveMove downMove leftMove rightMove upNONENameNo image foundNo image loadedNo images to put in a collection Open directory...Open in GimpOpen thumbnails browser...Open...OpenGL error in %s() at %s:%d: %sOpenGL not supportedOptionsOptions will be savedOptions...Overwrite "%s" ?Parse error in configuration file: %s Pause : Start/stop the slide showQuitRebuild images menusRebuild this menuRebuilding:Recursive directory traversalRedoReload the current imageRemaining timeRemove the current fileResetRotate +0.1 degRotate +90 degRotate -0.1 degRotate -90 degRotationSame as previousSave collection...Save options nowSave options when quittingSaving collection: %sScale down large imageScale down large imagesScrollbars enabledSee http://guichaz.free.fr/gliv for updates.Set positionSet this window as serverShow thumbnails in images menusShuffle images listSlide showSort images listSpace and Backspace act like n and p.Standard outputStart in full screen modeStart the slide showStart with the slide showStatus bar enabledStop rebuilding the images menuStop the slide showThe --client and --client-clear command line options are mutually exclusive The action '%s' terminated with a non-null return code: %dThe action name '%s' is already usedThe first mouse button and the arrow keys will move the image unless the Control key is pressed. In which case the image will be rotated around the window center.The following errors occurred while loading the next image: The mouse wheel zooms the image, and when you hold its button pressed at the same time it switches to the neighbouring image.This configuration file has been read: %sThis configuration file will be written: %sThumbThumbnail heightThumbnail widthThumbnails browserToggle Alpha checksToggle Fullscreen modeToggle Menu BarToggle ScrollbarsToggle Status BarToggle floating windowsTop leftTop rightTotal timeTransformationsTransition durationTransitions obey the maximum framerate parameter in the Transformations tabTry to load every fileUndoUnknown OpenGL error (%d)Unknown option in configuration file: %s Use 'gliv --help' to show command line options. A quick help is accessible by typing 'h' or using the menu.Vertical flipWrong URI format: %d (instead of 8)Wrong URI length: %dYou can also zoom by dragging the mouse vertically while holding Shift and the first button.Zoom centered on pointerZoom inZoom outa : Toggle display of the alpha checksalpha channelalpha1 tile: blue channelalpha1 tile: green channelalpha1 tile: red channelalpha2 tile: blue channelalpha2 tile: green channelalpha2 tile: red channelb : Toggle display of the menu barbackground: blue channelbackground: green channelbackground: red channelc : Clear the historyd : Hide the cursordirectorydirectory/filee : Vertical flipelementsf : Full-screen/windowfilefpsg : Display the image selectorglXMakeCurrent() failedh : Toggle display of the help boxi : Toggle display of the info barl : Reduce the image to the windowloadingm : Make the image fit the windowmillisecondsn/p : Next/previous imageo : Display the open dialogpixelsr : Reset position and sizes : Toggle display of the scrollbarssecondst : Display the options dialogtransition from `%s' to `%s'u : Undow : Toggle display of floating windowswidth x heighty : Redoz : Horizontal flipzoom% (angle)Project-Id-Version: GLiv 1.9 Report-Msgid-Bugs-To: guichaz@gmail.com POT-Creation-Date: 2010-04-19 00:52+0200 PO-Revision-Date: 2007-07-09 00:45+0100 Last-Translator: Guillaume Chazarain Language-Team: None MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # Fichier de configuration pour GLiv %s # Les noms d'options sont sensibles à la casse. # Les valeurs pour les options sont insensibles à la casse. %.3f%% (%.3f deg%s)%s n'est pas une collection pour GLiv%s en dehors d'un chargement d'image %s en chargeant %s %s : l'image ne peut pas être compressée deux fois %s : extension décompressée inconnue %s : extension inconnue %s : extension inconnue (aucune) +/=/- : Agrandir plus/plus/moinsA propos...Action sur chaque imageAction sur l'image couranteActionsAlpha 1Alpha 2Quadrillage alphaQuadrillage alpha en arrière planRedimensionnement de la fenêtreArrière planEn bas à gaucheEn bas à droiteNavigateurConstruire les menus d'images au démarrageConstruire des mipmapsC-bas : Rotation de -90 degrésC-gauche : Rotation de +0.1 degréC-droite : Rotation de -0.1 degréC-haut : Rotation de +90 degrésImpossible de trouver un visuel approprié, essayez glxinfo(1)Impossible de charger %sMauvaise géométrie : %s Impossible d'activer OpenGLImpossible de trier et mélanger à la fois Impossible d'utiliser un thread CentreVérifier les erreurs OpenGLChoisissez une collection à chargerChoisissez un fichier pour y enregistrer la collectionEffacer l'historiqueCommandeLes drapeaux sur la ligne de commande doivent être on ou off, pas %s CommandesFichier de configurationDemander confirmation avant de quitterContrôles...Dossier de l'image courante...Délai avant de cacher le curseurDélai avant de cacher le curseur 0 : fonctionnalitée désactivéeDélai entre chaque imageDélai entre chaque image pendant le diaporamaSuppr : Supprimer le fichier courantDossiersAfficher des informations à propos de l'imageAfficher les barres de défilementAfficher la barre de menusRéduction chromatique (dithering)Ne plus le redemanderVoulez-vous vraiment supprimer ce fichier ? %s Voulez-vous vraiment quitter GLiv ?Dessinez un rectangle avec le bouton trois pour l'agrandir.ESC, q : QuitterÉditer les actionsÉditer les actions...Temps écouléActiver le filtrage OpenGLActiver les transitionsActiver les transitions entre les imagesEntrez un numéro d'image :Impossible de créér un nouveau processusErreur fatale : GL_MAX_TEXTURE_SIZE = %d FichierPremière imageAjuster la hauteurAjuster la largeurMode plein écranGL_MAX_TEXTURE_SIZE doit être >= 64A propos de GLivAide de GLivGLiv en plein écranGLiv versionGLiv n'écrira pas une collection sur un terminal GLiv : Sélectionnez le dossier à ouvrirGLiv : Sélectionnez les fichiers à ouvrirAideCacher le curseurLongueur de l'historiqueLongueur de l'historique 0 : fonctionnalitée désactivée -1 : infinieMiroir horizontalLa géométrie initiale (%s) est ignorée à cause du mode plein écran Remplissage de la fenêtre par l'imageImagesMenus d'imagesVous pouvez utiliser des substitutions à la printf dans le champ de commande : %d Chemin vers le dossier du fichier courant %b Nom du fichier courant %f Chemin vers le fichier courant %% Un % littéral Position initiale de l'imageInsertion des fichiers...InterfaceNe garder qu'une seule image en mémoireConserver les transformations entre les imagesConserver les transformations en changeant d'imageDernière imageDurée du message pour la première/dernière imageCharger la collection...Charger la première imageCharger la dernière imageCharger l'image suivanteCharger l'image précédenteCharger une image au hasardCharger la Nième image...Chargement de la collection : %sErreurs de chargementM : Agrandir l'image à la taille de la fenêtreAjouter des raccourcis aux menus d'imagesBoucler le diaporamaAgrandir la petite imageAgrandir les petites imagesNombre maximum d'images par secondeNombre maximum d'images par seconde -1 : infiniBarre de menus activéeDéplacerDéplacer en basDéplacer à gaucheDéplacer à droiteDéplacer en hautAUCUNNomAucune image trouvéeAucune image chargéePas d'image à mettre dans la collection Ouvrir un dossier...Ouvrir avec GimpOuvrir le navigateur de vignettes...Ouvrir...Erreur OpenGL dans %s() à %s:%d: %sOpenGL n'est pas supportéOptionsLes options seront enregistréesOptions...Écraser "%s" ?Erreur dans le fichier de configuration :%s Pause : Démarrer /Arrêter le diaporamaQuitterReconstruire les menus d'imagesReconstruire ce menuReconstruction :Parcours récursif des dossiersRefaireRecharger l'image couranteTemps restantSupprimer le fichier courantResetRotation de +0.1 degréRotation de +90 degrésRotation de -0.1 degréRotation de -90 degrésRotationComme la précédenteEnregistrer la collection...Enregistrer les options maintenantEnregistrer les options en quittantEnregistrement de la collection : %sRéduire la grande imageRéduire les grandes imagesBarres de défilement activéesConsultez http://guichaz.free.fr/gliv pour les mises à jour.RepositionnerRendre cette fenêtre serveurAfficher des vignettes dans les menus d'imagesMélanger la liste des imagesDiaporamaTrier la liste des imagesLes touches Espace et d'effacement agissent comme n et p.Sortie standardDémarrer en mode plein écranDémarrer le diaporamaDémarrer avec le diaporamaBarre d'informations activéeArrêter la reconstruction des menus d'imagesArrêter le diaporamaLes options --client et --client-clear sont mutuellement exclusives L'action '%s' a terminé avec un code de retour non nul : %dLe nom d'action '%s' est déjà utiliséLe premier bouton de la souris et les touches fléchées servent à déplacer l'image sauf si la touche Contrôle est enfoncée. Auquel cas l'image subira une rotation autour du centre de la fenêtre.Les erreurs suivantes sont survenues en chargeant l'image suivante : La roulette zoom sur l'image, et passe à l'image précédente/suivante quand le bouton est appuyé.Ce fichier de configuration a été lu : %sCe fichier de configuration sera écrit : %sVignetteHauteur des vignettesLargeur des vignettesNavigateur de vignettesBasculer l'affichage du quadrillage alphaBasculer le mode plein écranBasculer l'affichage de la barre de menusBasculer l'affichage des barres de défilementBasculer l'affichage de la barre d'informationsBasculer l'affichage des fenêtres flottantesEn haut à gaucheEn haut à droiteDurée estiméeTransformationsDurée d'une transitionLes transitions sont sujettes à la limitation du nombre d'images par secondeEssayer de charger tous les fichiersAnnulerErreur OpenGL inconnue (%d)Option inconnue dans le fichier de configuration : %s Utilisez 'gliv --help' pour avoir les options de ligne de commande. Une aide rapide est accessible en appuyant sur 'h' ou avec le menu.Miroir verticalMauvais format d'URI : %d (au lieu de 8)Mauvaise longueur d'URI : %dVous pouvez également zoomer en faisant glisser la souris verticalement en maintenant enfoncés la touche Majuscule et le premier bouton.Zoom centré sur le pointeurAgrandirRétrécira : Basculer l'affichage du quadrillage alphacanal alphacarreau alpha1 : canal bleucarreau alpha1 : canal vertcarreau alpha1 : canal rougecarreau alpha2 : canal bleucarreau alpha2 : canal vertcarreau alpha2 : canal rougeb : Basculer l'affichage de la barre de menusarrière plan : canal bleuarrière plan : canal vertarrière plan : canal rougec : Effacer l'historiqued : Cacher le curseurdossierdossier/fichiere : Miroir verticalélémentsf : Plein écran/fenêtrefichieripsg : Afficher le sélecteur d'imagesglXMakeCurrent() a échouéh : Basculer l'affichage de l'aidei : Basculer l'affichage de la barre d'informationsl : Réduire l'image à la taille de la fenêtrechargementm : Remplissage de la fenêtre par l'imagemillisecondesn/p : Image suivante/précédenteo : Ouvrir des fichierspixelsr : Réinitialiser la position et la taille de l'images : Basculer l'affichage des barres de défilementsecondest : Afficher les optionstransition de `%s' vers `%s'u : Annulerw : Basculer l'affichage des fenêtres flottanteslargeur x hauteury : Refairez : Miroir horizontalzoom% (angle)gliv-1.9.7/po/en@boldquot.header0000644000076400007640000000247111465576131014020 0ustar gg# All this catalog "translates" are quotation characters. # The msgids must be ASCII and therefore cannot contain real quotation # characters, only substitutes like grave accent (0x60), apostrophe (0x27) # and double quote (0x22). These substitutes look strange; see # http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html # # This catalog translates grave accent (0x60) and apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019). # It also translates pairs of apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019) # and pairs of quotation mark (0x22) to # left double quotation mark (U+201C) and right double quotation mark (U+201D). # # When output to an UTF-8 terminal, the quotation characters appear perfectly. # When output to an ISO-8859-1 terminal, the single quotation marks are # transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to # grave/acute accent (by libiconv), and the double quotation marks are # transliterated to 0x22. # When output to an ASCII terminal, the single quotation marks are # transliterated to apostrophes, and the double quotation marks are # transliterated to 0x22. # # This catalog furthermore displays the text between the quotation marks in # bold face, assuming the VT100/XTerm escape sequences. # gliv-1.9.7/po/Makefile.in.in0000644000076400007640000003744211465576131013052 0ustar gg# Makefile for PO directory in any package using GNU gettext. # Copyright (C) 1995-1997, 2000-2007, 2009-2010 by Ulrich Drepper # # This file can be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU General Public # License but which still want to provide support for the GNU gettext # functionality. # Please note that the actual code of GNU gettext is covered by the GNU # General Public License and is *not* in the public domain. # # Origin: gettext-0.18 GETTEXT_MACRO_VERSION = 0.18 PACKAGE = @PACKAGE@ VERSION = @VERSION@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ SHELL = /bin/sh @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ datarootdir = @datarootdir@ datadir = @datadir@ localedir = @localedir@ gettextsrcdir = $(datadir)/gettext/po INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ # We use $(mkdir_p). # In automake <= 1.9.x, $(mkdir_p) is defined either as "mkdir -p --" or as # "$(mkinstalldirs)" or as "$(install_sh) -d". For these automake versions, # @install_sh@ does not start with $(SHELL), so we add it. # In automake >= 1.10, @mkdir_p@ is derived from ${MKDIR_P}, which is defined # either as "/path/to/mkdir -p" or ".../install-sh -c -d". For these automake # versions, $(mkinstalldirs) and $(install_sh) are unused. mkinstalldirs = $(SHELL) @install_sh@ -d install_sh = $(SHELL) @install_sh@ MKDIR_P = @MKDIR_P@ mkdir_p = @mkdir_p@ GMSGFMT_ = @GMSGFMT@ GMSGFMT_no = @GMSGFMT@ GMSGFMT_yes = @GMSGFMT_015@ GMSGFMT = $(GMSGFMT_$(USE_MSGCTXT)) MSGFMT_ = @MSGFMT@ MSGFMT_no = @MSGFMT@ MSGFMT_yes = @MSGFMT_015@ MSGFMT = $(MSGFMT_$(USE_MSGCTXT)) XGETTEXT_ = @XGETTEXT@ XGETTEXT_no = @XGETTEXT@ XGETTEXT_yes = @XGETTEXT_015@ XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT)) MSGMERGE = msgmerge MSGMERGE_UPDATE = @MSGMERGE@ --update MSGINIT = msginit MSGCONV = msgconv MSGFILTER = msgfilter POFILES = @POFILES@ GMOFILES = @GMOFILES@ UPDATEPOFILES = @UPDATEPOFILES@ DUMMYPOFILES = @DUMMYPOFILES@ DISTFILES.common = Makefile.in.in remove-potcdate.sin \ $(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3) DISTFILES = $(DISTFILES.common) Makevars POTFILES.in \ $(POFILES) $(GMOFILES) \ $(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3) POTFILES = \ CATALOGS = @CATALOGS@ # Makevars gets inserted here. (Don't remove this line!) .SUFFIXES: .SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update .po.mo: @echo "$(MSGFMT) -c -o $@ $<"; \ $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@ .po.gmo: @lang=`echo $* | sed -e 's,.*/,,'`; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o $${lang}.gmo $${lang}.po"; \ cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo .sin.sed: sed -e '/^#/d' $< > t-$@ mv t-$@ $@ all: check-macro-version all-@USE_NLS@ all-yes: stamp-po all-no: # Ensure that the gettext macros and this Makefile.in.in are in sync. check-macro-version: @test "$(GETTEXT_MACRO_VERSION)" = "@GETTEXT_MACRO_VERSION@" \ || { echo "*** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version $(GETTEXT_MACRO_VERSION) but the autoconf macros are from gettext version @GETTEXT_MACRO_VERSION@" 1>&2; \ exit 1; \ } # $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no # internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because # we don't want to bother translators with empty POT files). We assume that # LINGUAS is empty in this case, i.e. $(POFILES) and $(GMOFILES) are empty. # In this case, stamp-po is a nop (i.e. a phony target). # stamp-po is a timestamp denoting the last time at which the CATALOGS have # been loosely updated. Its purpose is that when a developer or translator # checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS, # "make" will update the $(DOMAIN).pot and the $(CATALOGS), but subsequent # invocations of "make" will do nothing. This timestamp would not be necessary # if updating the $(CATALOGS) would always touch them; however, the rule for # $(POFILES) has been designed to not touch files that don't need to be # changed. stamp-po: $(srcdir)/$(DOMAIN).pot test ! -f $(srcdir)/$(DOMAIN).pot || \ test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES) @test ! -f $(srcdir)/$(DOMAIN).pot || { \ echo "touch stamp-po" && \ echo timestamp > stamp-poT && \ mv stamp-poT stamp-po; \ } # Note: Target 'all' must not depend on target '$(DOMAIN).pot-update', # otherwise packages like GCC can not be built if only parts of the source # have been downloaded. # This target rebuilds $(DOMAIN).pot; it is an expensive operation. # Note that $(DOMAIN).pot is not touched if it doesn't need to be changed. $(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed if LC_ALL=C grep 'GNU @PACKAGE@' $(top_srcdir)/* 2>/dev/null | grep -v 'libtool:' >/dev/null; then \ package_gnu='GNU '; \ else \ package_gnu=''; \ fi; \ if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \ msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \ else \ msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \ fi; \ case `$(XGETTEXT) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ '' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].* | 0.16 | 0.16.[0-1]*) \ $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \ --files-from=$(srcdir)/POTFILES.in \ --copyright-holder='$(COPYRIGHT_HOLDER)' \ --msgid-bugs-address="$$msgid_bugs_address" \ ;; \ *) \ $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \ --files-from=$(srcdir)/POTFILES.in \ --copyright-holder='$(COPYRIGHT_HOLDER)' \ --package-name="$${package_gnu}@PACKAGE@" \ --package-version='@VERSION@' \ --msgid-bugs-address="$$msgid_bugs_address" \ ;; \ esac test ! -f $(DOMAIN).po || { \ if test -f $(srcdir)/$(DOMAIN).pot; then \ sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \ sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \ if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \ rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \ else \ rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \ mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \ fi; \ else \ mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \ fi; \ } # This rule has no dependencies: we don't need to update $(DOMAIN).pot at # every "make" invocation, only create it when it is missing. # Only "make $(DOMAIN).pot-update" or "make dist" will force an update. $(srcdir)/$(DOMAIN).pot: $(MAKE) $(DOMAIN).pot-update # This target rebuilds a PO file if $(DOMAIN).pot has changed. # Note that a PO file is not touched if it doesn't need to be changed. $(POFILES): $(srcdir)/$(DOMAIN).pot @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ if test -f "$(srcdir)/$${lang}.po"; then \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \ cd $(srcdir) \ && { case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \ *) \ $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \ esac; \ }; \ else \ $(MAKE) $${lang}.po-create; \ fi install: install-exec install-data install-exec: install-data: install-data-@USE_NLS@ if test "$(PACKAGE)" = "gettext-tools"; then \ $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ for file in $(DISTFILES.common) Makevars.template; do \ $(INSTALL_DATA) $(srcdir)/$$file \ $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ for file in Makevars; do \ rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ else \ : ; \ fi install-data-no: all install-data-yes: all @catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ dir=$(localedir)/$$lang/LC_MESSAGES; \ $(mkdir_p) $(DESTDIR)$$dir; \ if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \ $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \ echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \ for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ if test -n "$$lc"; then \ if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ for file in *; do \ if test -f $$file; then \ ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ fi; \ done); \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ else \ if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ :; \ else \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ fi; \ fi; \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ ln -s ../LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \ ln $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \ cp -p $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ echo "installing $$realcat link as $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo"; \ fi; \ done; \ done install-strip: install installdirs: installdirs-exec installdirs-data installdirs-exec: installdirs-data: installdirs-data-@USE_NLS@ if test "$(PACKAGE)" = "gettext-tools"; then \ $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ else \ : ; \ fi installdirs-data-no: installdirs-data-yes: @catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ dir=$(localedir)/$$lang/LC_MESSAGES; \ $(mkdir_p) $(DESTDIR)$$dir; \ for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ if test -n "$$lc"; then \ if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ for file in *; do \ if test -f $$file; then \ ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ fi; \ done); \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ else \ if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ :; \ else \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ fi; \ fi; \ fi; \ done; \ done # Define this as empty until I found a useful application. installcheck: uninstall: uninstall-exec uninstall-data uninstall-exec: uninstall-data: uninstall-data-@USE_NLS@ if test "$(PACKAGE)" = "gettext-tools"; then \ for file in $(DISTFILES.common) Makevars.template; do \ rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ else \ : ; \ fi uninstall-data-no: uninstall-data-yes: catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ for lc in LC_MESSAGES $(EXTRA_LOCALE_CATEGORIES); do \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ done; \ done check: all info dvi ps pdf html tags TAGS ctags CTAGS ID: mostlyclean: rm -f remove-potcdate.sed rm -f stamp-poT rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po rm -fr *.o clean: mostlyclean distclean: clean rm -f Makefile Makefile.in POTFILES *.mo 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 stamp-po $(GMOFILES) distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) dist distdir: $(MAKE) update-po @$(MAKE) dist2 # This is a separate target because 'update-po' must be executed before. dist2: stamp-po $(DISTFILES) dists="$(DISTFILES)"; \ if test "$(PACKAGE)" = "gettext-tools"; then \ dists="$$dists Makevars.template"; \ fi; \ if test -f $(srcdir)/$(DOMAIN).pot; then \ dists="$$dists $(DOMAIN).pot stamp-po"; \ fi; \ if test -f $(srcdir)/ChangeLog; then \ dists="$$dists ChangeLog"; \ fi; \ for i in 0 1 2 3 4 5 6 7 8 9; do \ if test -f $(srcdir)/ChangeLog.$$i; then \ dists="$$dists ChangeLog.$$i"; \ fi; \ done; \ if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \ for file in $$dists; do \ if test -f $$file; then \ cp -p $$file $(distdir) || exit 1; \ else \ cp -p $(srcdir)/$$file $(distdir) || exit 1; \ fi; \ done update-po: Makefile $(MAKE) $(DOMAIN).pot-update test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES) $(MAKE) update-gmo # General rule for creating PO files. .nop.po-create: @lang=`echo $@ | sed -e 's/\.po-create$$//'`; \ echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \ exit 1 # General rule for updating PO files. .nop.po-update: @lang=`echo $@ | sed -e 's/\.po-update$$//'`; \ if test "$(PACKAGE)" = "gettext-tools"; then PATH=`pwd`/../src:$$PATH; fi; \ tmpdir=`pwd`; \ echo "$$lang:"; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ cd $(srcdir); \ if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ *) \ $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ esac; \ }; then \ if cmp $$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; \ exit 1; \ fi; \ fi; \ else \ echo "msgmerge for $$lang.po failed!" 1>&2; \ rm -f $$tmpdir/$$lang.new.po; \ fi $(DUMMYPOFILES): update-gmo: Makefile $(GMOFILES) @: # Recreate Makefile by invoking config.status. Explicitly invoke the shell, # because execution permission bits may not work on the current file system. # Use @SHELL@, which is the shell determined by autoconf for the use by its # scripts, not $(SHELL) which is hardwired to /bin/sh and may be deficient. Makefile: Makefile.in.in Makevars $(top_builddir)/config.status @POMAKEFILEDEPS@ cd $(top_builddir) \ && @SHELL@ ./config.status $(subdir)/$@.in po-directories force: # 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: gliv-1.9.7/po/bg.po0000644000076400007640000007727611465576131011341 0ustar gg# Bulgarian translation of GLiv. # Copyright (C) 2005 Dimitar Kirov. # This file is distributed under the same license as the GLiv package. # Dimitar Kirov , 2005. msgid "" msgstr "" "Project-Id-Version: gliv 1.9.4\n" "Report-Msgid-Bugs-To: guichaz@gmail.com\n" "POT-Creation-Date: 2010-04-19 00:52+0200\n" "PO-Revision-Date: 2005-06-19 16:01+0300\n" "Last-Translator: Dimitur Kirov \n" "Language-Team: Bulgarian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8-bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" #: src/actions.c:121 msgid "Failed to create a new process" msgstr "Неуспех при създаването на нов процес" #: src/actions.c:126 #, c-format msgid "The action '%s' terminated with a non-null return code: %d" msgstr "Действието „%s“ приключи с ненулев код на грешка: %d" #: src/actions.c:230 msgid "Open in Gimp" msgstr "Отваряне в Gimp" #: src/actions.c:333 #, c-format msgid "The action name '%s' is already used" msgstr "Името на действие „%s“ вече е заето" #: src/actions.c:463 src/glade_actions.c:165 src/tree_browser.c:211 msgid "Name" msgstr "Име" #: src/actions.c:464 src/glade_actions.c:172 msgid "Command" msgstr "Действие" #: src/collection.c:152 msgid "Choose a file to save the collection" msgstr "Изберете файл, в който да се запази каталога" #: src/collection.c:159 #, c-format msgid "Overwrite \"%s\" ?" msgstr "Да се презапише ли „%s“?" #: src/collection.c:238 msgid "Elapsed time" msgstr "Изминало време" #: src/collection.c:239 msgid "Remaining time" msgstr "Оставащо време" #: src/collection.c:240 msgid "Total time" msgstr "Общо време" #: src/collection.c:247 src/collection.c:637 #, c-format msgid "Saving collection: %s" msgstr "Запазване на каталог: %s" #: src/collection.c:250 src/collection.c:1044 #, c-format msgid "Loading collection: %s" msgstr "Зареждане на каталог: %s" #: src/collection.c:366 msgid "Inserting files..." msgstr "Вмъкване на файлове..." #: src/collection.c:615 msgid "No images to put in a collection\n" msgstr "Липсват изображения за каталога\n" #: src/collection.c:622 msgid "GLiv won't write a collection to a terminal\n" msgstr "Каталогът няма да бъде записан в терминал\n" #: src/collection.c:643 msgid "Standard output" msgstr "Стандартен изход" #: src/collection.c:1064 #, c-format msgid "%s is not a GLiv collection" msgstr "%s не е разпознат като каталог" #: src/collection.c:1077 msgid "Choose a collection to load" msgstr "Посочете каталог" #: src/files_list.c:499 #, c-format msgid "" "Do you really want to delete this file?\n" "%s\n" msgstr "" "Наистина ли желаете да изтриете този файл?\n" "%s\n" #: src/files_list.c:523 msgid "directory/file" msgstr "папка/файл" #: src/gl_widget.c:130 #, c-format msgid "Wrong URI format: %d (instead of 8)" msgstr "Невалиден URI формат: %d (вместо 8)" #: src/gl_widget.c:135 #, c-format msgid "Wrong URI length: %d" msgstr "Грешна дължина на URI: %d" #: src/gl_widget.c:227 #, c-format msgid "Fatal error: GL_MAX_TEXTURE_SIZE = %d\n" msgstr "Фатална грешка: GL_MAX_TEXTURE_SIZE = %d\n" #: src/gl_widget.c:231 msgid "GL_MAX_TEXTURE_SIZE must be >= 64" msgstr "GL_MAX_TEXTURE_SIZE трабва да е по-голямо от 64" #: src/gl_widget.c:257 msgid "glXMakeCurrent() failed" msgstr "Неуспех при изпълнението на glXMakeCurrent()" #: src/gl_widget.c:310 msgid "OpenGL not supported" msgstr "Липсва подръжка на OpenGL" #: src/gl_widget.c:321 msgid "Cannot find an appropriate visual, try glxinfo(1)" msgstr "Не е намерен подходящ модул, обърнете се към glxinfo(1)" #: src/gl_widget.c:328 msgid "Cannot set the OpenGL capability" msgstr "" #: src/gl_widget.c:366 #, c-format msgid "Unknown OpenGL error (%d)" msgstr "Неизвестна грешка в OpenGL (%d)" #: src/gl_widget.c:370 #, c-format msgid "" "OpenGL error in %s() at %s:%d:\n" "%s" msgstr "" "Грешка в OpenGL в %s() на %s:%d:\n" "%s" #: src/glade_actions.c:43 msgid "Actions" msgstr "Действия" #: src/glade_actions.c:149 msgid "Edit Action" msgstr "Редактиране на действие" #: src/glade_actions.c:206 msgid "" "In the command field, printf like substitutions can be used:\n" "%d\t\tPath to the current file directory\n" "%b\t\tCurrent file name\n" "%f\t\tPath to the current file\n" "%%\t\tA litteral %\n" msgstr "" "В полето действия могат да бъдат използвани \n" "стандартни шаблони: \n" "%d\t\tПълен път на текущата директория\n" "%b\t\tИме на текущия файл\n" "%f\t\tПълен път на текущия файл\n" "%%\t\tВместо символа %\n" #: src/glade_image_nr.c:45 src/menus.c:417 msgid "Load the Nth image..." msgstr "Зареждане на N-то изображение" #: src/glade_image_nr.c:65 msgid "Enter an image number:" msgstr "Номер на изображение:" #: src/glade_image_nr.c:81 msgid "directory" msgstr "папка" #: src/glade_image_nr.c:87 msgid "file" msgstr "файл" #: src/glade_options.c:138 src/menus.c:503 msgid "Options" msgstr "Изглед" #: src/glade_options.c:174 msgid "Save options now" msgstr "Запазване на настройките" #: src/glade_options.c:178 src/rcfile.c:116 msgid "Save options when quitting" msgstr "Запазване на настройките при изход от програмата" #: src/glade_options.c:193 msgid "Configuration file" msgstr "Файл с настройки" #: src/glade_options.c:215 msgid "Scrollbars enabled" msgstr "Показване на плъзгачите" #: src/glade_options.c:222 msgid "Fullscreen mode" msgstr "На цял екран" #: src/glade_options.c:229 msgid "Menu bar enabled" msgstr "Показване на лентата с менюта" #: src/glade_options.c:236 msgid "Status bar enabled" msgstr "Показване на лентата за състояние" #: src/glade_options.c:243 src/rcfile.c:115 msgid "Confirm before quitting" msgstr "Потвърждаване изход от програмата" #: src/glade_options.c:250 src/rcfile.c:114 msgid "Automatic window resizing" msgstr "Автоматично оразмеряване на прозореца" #: src/glade_options.c:261 msgid "" "Delay before hiding the cursor\n" "0: feature disabled" msgstr "" "Забавяне преди да се скрие показалеца\n" "0: показалеца да не се скрива" #: src/glade_options.c:274 src/glade_options.c:587 src/glade_options.c:634 msgid "milliseconds" msgstr "милисекунди" #: src/glade_options.c:279 msgid "Interface" msgstr "Изглед" #: src/glade_options.c:290 src/rcfile.c:99 msgid "Scale down large images" msgstr "Мащабиране на големи изображения" #: src/glade_options.c:297 src/rcfile.c:98 msgid "Maximize small images" msgstr "Мащабиране на малки изображения" #: src/glade_options.c:304 src/rcfile.c:108 msgid "Build mipmaps" msgstr "" #: src/glade_options.c:311 src/rcfile.c:105 msgid "Dithering" msgstr "" #: src/glade_options.c:318 src/rcfile.c:111 msgid "Keep only one image in memory" msgstr "Само текущото изображение да бъде в паметта" #: src/glade_options.c:325 src/rcfile.c:120 msgid "Check for OpenGL errors" msgstr "Проверка за грешки на OpenGL" #: src/glade_options.c:332 src/rcfile.c:121 msgid "Enable OpenGL filtering" msgstr "" #: src/glade_options.c:339 src/images_menus.c:330 src/images_menus.c:479 #: src/menus.c:521 msgid "Images" msgstr "Изображения" #: src/glade_options.c:352 src/rcfile.c:107 msgid "Build images menus at startup" msgstr "Съставяне на меню изображения при стартиране" #: src/glade_options.c:357 src/rcfile.c:109 msgid "Make mnemonics for images menus" msgstr "Бързи клавиши за меню изображения" #: src/glade_options.c:362 src/rcfile.c:112 msgid "Show thumbnails in images menus" msgstr "Показване на прегледи в менюто с изображения" #: src/glade_options.c:371 src/glade_options.c:380 msgid "pixels" msgstr "" #: src/glade_options.c:389 src/rcfile.c:127 msgid "Thumbnail height" msgstr "Височина на преглед" #: src/glade_options.c:418 src/rcfile.c:126 msgid "Thumbnail width" msgstr "Широчина на преглед" #: src/glade_options.c:427 msgid "Images menus" msgstr "Меню изображения" #: src/glade_options.c:442 src/rcfile.c:103 msgid "Zoom centered on pointer" msgstr "Мащабиране спрямо позицията на показалеца" #: src/glade_options.c:447 msgid "Keep transformations when switching images" msgstr "Същите трансформации в следващи изображения" #: src/glade_options.c:456 src/rcfile.c:130 msgid "Initial image position" msgstr "Положение на изображение" #: src/glade_options.c:463 src/menus.c:460 msgid "Center" msgstr "центрирано" #: src/glade_options.c:464 src/menus.c:461 msgid "Top left" msgstr "в горния ляв ъгъл" #: src/glade_options.c:465 src/menus.c:462 msgid "Top right" msgstr "в горния десен ъгъл" #: src/glade_options.c:466 src/menus.c:463 msgid "Bottom left" msgstr "в долния ляв ъгъл" #: src/glade_options.c:467 src/menus.c:464 msgid "Bottom right" msgstr "в долния десен ъгъл" #: src/glade_options.c:468 msgid "Same as previous" msgstr "kато предходното изображение" #: src/glade_options.c:495 msgid "" "History length\n" "0: feature disabled\n" "-1: infinite" msgstr "" "Брой промени в историята\n" " 0: да не се запазват промени\n" "-1: неограничен брой" #: src/glade_options.c:503 msgid "" "Maximum framerate\n" "-1: infinite" msgstr "" "Максимална честота на кадри\n" "-1: неограничена" #: src/glade_options.c:511 msgid "elements" msgstr "елементи" #: src/glade_options.c:519 msgid "fps" msgstr "кадри в секунда" #: src/glade_options.c:527 src/menus.c:447 msgid "Transformations" msgstr "Трансформиране" #: src/glade_options.c:542 src/rcfile.c:113 msgid "Start with the slide show" msgstr "Стартиране в режим на прожекция" #: src/glade_options.c:547 src/rcfile.c:110 msgid "Make the slide show loop" msgstr "Повтаряне на прожекцията, когато стигне в края" #: src/glade_options.c:556 src/rcfile.c:128 msgid "Last/First image notice time" msgstr "Съобщението за първо/последно изображение е активно" #: src/glade_options.c:563 msgid "Delay between images during the slide show" msgstr "Забавяне показването на следващ при прожекция" #: src/glade_options.c:580 msgid "seconds" msgstr "секунди" #: src/glade_options.c:608 msgid "Enable transitions between images" msgstr "Преливания между изображенията" #: src/glade_options.c:621 src/rcfile.c:129 #, fuzzy msgid "Transition duration" msgstr "Трансформиране" #: src/glade_options.c:639 msgid "" "Transitions obey the maximum framerate parameter in the Transformations tab" msgstr "" #: src/glade_options.c:644 msgid "Slide show" msgstr "Прожекция" #: src/glade_options.c:657 msgid "Alpha 2" msgstr "Алфа 2" #: src/glade_options.c:664 msgid "Alpha 1" msgstr "Алфа 1" #: src/glade_options.c:671 src/glade_options.c:706 msgid "Background" msgstr "Фон" #: src/glade_options.c:692 msgid "Alpha checks" msgstr "Прозрачни области" #: src/help.c:102 src/help.c:109 msgid "GLiv help" msgstr "Кратко ръководство за GLiv" #: src/help.c:163 msgid "GLiv about box" msgstr "Относно GLiv" #: src/help_text.c:15 msgid "ESC, q : Quit" msgstr "ESC, q : Изход от програмата" #: src/help_text.c:18 msgid "f : Full-screen/window" msgstr "f : На цял екран" #: src/help_text.c:21 msgid "+/=/- : Zoom in/in/out" msgstr "+/=/- : Мащабиране" #: src/help_text.c:24 msgid "n/p : Next/previous image" msgstr "n/p : Следващо/предишно изображение" #: src/help_text.c:27 msgid "Pause : Start/stop the slide show" msgstr "Pause : Започване/Спиране на прожекция" #: src/help_text.c:30 msgid "l : Reduce the image to the window" msgstr "l : Вместване в прозореца, ако е по-голямо" #: src/help_text.c:33 msgid "M : Maximize the image to the window" msgstr "M : Вместване в прозореца, ако е по-малко" #: src/help_text.c:36 msgid "m : Make the image fit the window" msgstr "m : Вместване в прозореца" #: src/help_text.c:39 msgid "r : Reset position and size" msgstr "r : Първоначални размери и позиция" #: src/help_text.c:42 msgid "b : Toggle display of the menu bar" msgstr "b : Скриване/показване на лентата с менютата" #: src/help_text.c:45 msgid "i : Toggle display of the info bar" msgstr "i : Скриване/показване на лентата за състоянието" #: src/help_text.c:48 msgid "s : Toggle display of the scrollbars" msgstr "s : Скриване/показване на плъзгачите" #: src/help_text.c:51 msgid "a : Toggle display of the alpha checks" msgstr "a : Скриване/показване на прозрачни области" #: src/help_text.c:54 msgid "h : Toggle display of the help box" msgstr "h : Това ръководство" #: src/help_text.c:57 msgid "w : Toggle display of floating windows" msgstr "w : Скриване/показване на отделяемите менюта" #: src/help_text.c:60 msgid "o : Display the open dialog" msgstr "o : Отваряне на изображение" #: src/help_text.c:63 msgid "g : Display the image selector" msgstr "g : Избиране на N-то изображение" #: src/help_text.c:66 msgid "t : Display the options dialog" msgstr "t : Прозорец за настройки" #: src/help_text.c:69 msgid "d : Hide the cursor" msgstr "d : Скриване на показалеца" #: src/help_text.c:72 msgid "u : Undo" msgstr "u : Отмяна (възтановяване на предходно състояние)" #: src/help_text.c:75 msgid "y : Redo" msgstr "y : Повтаряне (връщане на състояние преди възстановяване)" #: src/help_text.c:78 msgid "c : Clear the history" msgstr "c : Изчистване на историята с промени" #: src/help_text.c:81 msgid "Delete : Delete the current file" msgstr "Delete : Изтриване на текущия файл" #: src/help_text.c:84 msgid "C-up : Rotate by +90 degrees" msgstr "C-up : Завъртане на +90 градуса" #: src/help_text.c:87 msgid "C-down : Rotate by -90 degrees" msgstr "C-down : Завъртане на -90 градуса" #: src/help_text.c:90 msgid "C-left : Rotate by +0.1 degree" msgstr "C-left : Завъртане на +0.1 градуса" #: src/help_text.c:93 msgid "C-right: Rotate by -0.1 degree" msgstr "C-right: Завъртане на -0.1 градуса" #: src/help_text.c:96 msgid "z : Horizontal flip" msgstr "z : Вертикално обръщане" #: src/help_text.c:99 msgid "e : Vertical flip" msgstr "е : Хоризонтално обръщане" #: src/help_text.c:104 msgid "" "The first mouse button and the arrow keys will move the image unless the " "Control key is pressed. In which case the image will be rotated around the " "window center." msgstr "" "Левият бутон на мишката, както и стрелките от клавиатурата преместват " "изображението. Когато едновременно е натиснат и клавиша \"Control\" " "изображението се завърта около центъра на прозореца." #: src/help_text.c:107 msgid "" "The mouse wheel zooms the image, and when you hold its button pressed at the " "same time it switches to the neighbouring image." msgstr "" #: src/help_text.c:110 msgid "" "You can also zoom by dragging the mouse vertically while holding Shift and " "the first button." msgstr "" "Може да мащабирате като задържите клавиша „shift“ и предвижвате мишката по " "вертикал при натиснат ляв бутон." #: src/help_text.c:113 msgid "Space and Backspace act like n and p." msgstr "(„Шпация“, „Backspace“) действат също като (n,p)" #: src/help_text.c:116 msgid "Draw a rectangle with the third button and gliv will zoom in it." msgstr "" "Начертайте правоъгълник с десния бутон на мишката и gliv ще мащабира " "очертаното." #: src/images_menus.c:82 msgid "Rebuilding:" msgstr "Съставяне:" #: src/images_menus.c:209 src/images_menus.c:447 src/menus.c:517 msgid "Directories" msgstr "Папки" #: src/images_menus.c:296 msgid "Current image directory..." msgstr "Текуща папка с изображения..." #: src/images_menus.c:363 src/menus.c:337 msgid "Rebuild this menu" msgstr "Съставяне на това меню" #: src/images_menus.c:370 src/menus.c:338 msgid "Open thumbnails browser..." msgstr "" #: src/include/about.h:6 msgid "GLiv version" msgstr "GLiv версия" #: src/include/about.h:8 msgid "" "Use 'gliv --help' to show command line options.\n" "A quick help is accessible by typing 'h' or using the menu." msgstr "" "Използвайте „gliv --help“ за списъка с флагове на командния ред \n" "С натискане на клавиша „h“ се зарежда кратко ръководство." #: src/include/about.h:10 msgid "See http://guichaz.free.fr/gliv for updates." msgstr "Посетете http://guichaz.free.fr/gliv за нови версии." #: src/loading.c:81 #, c-format msgid "%s not while loading an image\n" msgstr "Не %s при зареждането на изображение\n" #: src/loading.c:83 #, c-format msgid "%s while loading %s\n" msgstr "%s при зареждането на %s\n" #: src/loading.c:102 msgid "alpha channel" msgstr "алфа канал" #: src/loading.c:158 #, c-format msgid "%s: unknown decompressed extension\n" msgstr "" #: src/loading.c:165 #, c-format msgid "%s: image cannot be compressed twice\n" msgstr "" #: src/loading.c:188 #, c-format msgid "%s: unknown extension (none)\n" msgstr "%s е с непознато разширение (няма)\n" #: src/loading.c:197 #, c-format msgid "%s: unknown extension\n" msgstr "%s е с непознато разширение\n" #: src/loading.c:291 src/next_image.c:280 #, c-format msgid "Cannot load %s" msgstr "%s не може да бъде зареден" #: src/main.c:65 #, c-format msgid "Command line flags should be on or off, not %s\n" msgstr "Флаговете на командния ред трябва да бъдат „on“ или „off“, а не „%s“\n" #: src/main.c:181 msgid "Cannot sort and shuffle at the same time\n" msgstr "Не е възможно едновременно да се подрежда и разбърква\n" #: src/main.c:221 msgid "" "The --client and --client-clear command line options are mutually exclusive\n" msgstr "" #: src/main.c:253 src/main.c:256 msgid "Do not ask again" msgstr "Без това предупреждение" #: src/main.c:257 msgid "Options will be saved" msgstr "Настройките ще бъдат запазени" #: src/main.c:279 msgid "Do you really want to quit GLiv?" msgstr "Наистина ли желаете да излезете от GLiv?" #: src/main.c:337 src/next_image.c:542 msgid "No image found" msgstr "Няма разпознато изображение" #: src/menus.c:403 msgid "File" msgstr "Файл" #: src/menus.c:404 msgid "Open..." msgstr "Отваряне..." #: src/menus.c:405 msgid "Open directory..." msgstr "Отваряне на папка..." #: src/menus.c:407 msgid "Load collection..." msgstr "Зареждане на каталог..." #: src/menus.c:408 msgid "Save collection..." msgstr "Запазване на каталог..." #: src/menus.c:410 msgid "Quit" msgstr "Спиране на програмата" #: src/menus.c:414 msgid "Commands" msgstr "Действия" #: src/menus.c:415 msgid "Load previous image" msgstr "Зареждане на предишното изображение" #: src/menus.c:416 msgid "Load next image" msgstr "Зареждане на следващото изображение" #: src/menus.c:418 #, fuzzy msgid "Load first image" msgstr "Зареждане на следващото изображение" #: src/menus.c:419 #, fuzzy msgid "Load last image" msgstr "Зареждане на следващото изображение" #: src/menus.c:420 #, fuzzy msgid "Load random image" msgstr "Зареждане на следващото изображение" #: src/menus.c:421 msgid "Reload the current image" msgstr "Презареждане на текущото изображение" #: src/menus.c:423 msgid "Sort images list" msgstr "Подреждане на списъка с изображения" #: src/menus.c:424 msgid "Shuffle images list" msgstr "Разбъркване на списъка с изображения" #: src/menus.c:426 msgid "Rebuild images menus" msgstr "Съставяне на меню изображения" #: src/menus.c:427 msgid "Stop rebuilding the images menu" msgstr "Спиране съставянето на меню изображения" #: src/menus.c:431 msgid "Toggle floating windows" msgstr "Отделяеми менюта" #: src/menus.c:433 src/next_image.c:799 msgid "Start the slide show" msgstr "Начало на прожекция" #: src/menus.c:437 msgid "Remove the current file" msgstr "Изтриване на текущия файл" #: src/menus.c:440 msgid "Edit actions..." msgstr "Редактиране на действията..." #: src/menus.c:441 msgid "Action on the current image" msgstr "Действие за текущото изображение" #: src/menus.c:443 msgid "Action on every image" msgstr "Действие за всяко изображение" #: src/menus.c:448 msgid "Undo" msgstr "Отмяна" #: src/menus.c:449 msgid "Redo" msgstr "Повтаряне" #: src/menus.c:450 msgid "Clear history" msgstr "Изчистване на историята" #: src/menus.c:452 msgid "Move" msgstr "Преместване" #: src/menus.c:453 msgid "Move left" msgstr "Наляво" #: src/menus.c:454 msgid "Move right" msgstr "Надясно" #: src/menus.c:455 msgid "Move up" msgstr "Нагоре" #: src/menus.c:456 msgid "Move down" msgstr "Надолу" #: src/menus.c:459 msgid "Set position" msgstr "Позициониране" #: src/menus.c:467 msgid "Rotation" msgstr "Завъртане" #: src/menus.c:468 msgid "Rotate +90 deg" msgstr "Завъртане на +90 градуса" #: src/menus.c:470 msgid "Rotate -90 deg" msgstr "Завъртане на -90 градуса" #: src/menus.c:472 msgid "Rotate +0.1 deg" msgstr "Завъртане на +0.1 градуса" #: src/menus.c:474 msgid "Rotate -0.1 deg" msgstr "Завъртане на -0.1 градуса" #: src/menus.c:480 msgid "Horizontal flip" msgstr "Вертикално обръщане" #: src/menus.c:482 msgid "Vertical flip" msgstr "Хоризонтално обръщане" #: src/menus.c:486 msgid "Maximize small image" msgstr "Вместване в прозореца, ако е по-малко" #: src/menus.c:487 msgid "Scale down large image" msgstr "Вместване в прозореца, ако е по-голямо" #: src/menus.c:489 msgid "Image fit window" msgstr "Вместване в прозореца" #: src/menus.c:492 msgid "Zoom in" msgstr "Мащаб увеличаване" #: src/menus.c:493 msgid "Zoom out" msgstr "Мащаб намаляване" #: src/menus.c:494 msgid "Fit width" msgstr "" #: src/menus.c:495 #, fuzzy msgid "Fit height" msgstr "широчина x височина" #: src/menus.c:499 msgid "Reset" msgstr "Стандартно състояние" #: src/menus.c:504 msgid "Toggle Fullscreen mode" msgstr "На цял екран" #: src/menus.c:505 msgid "Toggle Menu Bar" msgstr "Лентата с менютата" #: src/menus.c:506 msgid "Toggle Status Bar" msgstr "Лента за състоянието" #: src/menus.c:507 msgid "Toggle Scrollbars" msgstr "Показване на плъзгачите" #: src/menus.c:508 msgid "Toggle Alpha checks" msgstr "Показване на прозрачни области" #: src/menus.c:510 msgid "Hide the cursor" msgstr "Скриване на показалеца" #: src/menus.c:511 msgid "Set this window as server" msgstr "" #: src/menus.c:513 msgid "Options..." msgstr "Настройки..." #: src/menus.c:532 msgid "Help" msgstr "Помощ" #: src/menus.c:533 msgid "About..." msgstr "Относно..." #: src/menus.c:534 msgid "Controls..." msgstr "Кратко ръководство..." #: src/next_image.c:143 msgid "First image" msgstr "Първо изображение" #: src/next_image.c:146 msgid "Last image" msgstr "Последно изображение" #: src/next_image.c:226 msgid "Loading errors" msgstr "Грешки при зареждането" #: src/next_image.c:239 msgid "The following errors occurred while loading the next image:\n" msgstr "При зареждане на следващото изображение възникнаха следните грешки:\n" #: src/next_image.c:828 msgid "Stop the slide show" msgstr "Спиране на прожекция" #: src/open_dialog.c:101 msgid "GLiv: Select a folder to open" msgstr "GLiv: Посочете папка" #: src/open_dialog.c:104 msgid "GLiv: Select files to open" msgstr "GLiv: Посочете файлове, които да бъдат отворени" #: src/open_dialog.c:129 src/rcfile.c:106 msgid "Try to load every file" msgstr "Зареждане на всички файлове" #: src/open_dialog.c:130 src/rcfile.c:118 msgid "Recursive directory traversal" msgstr "Рекурсивно преминаване през всички папки " #: src/options.c:219 src/options.c:237 msgid "NONE" msgstr "без" #: src/options.c:222 #, c-format msgid "This configuration file has been read: %s" msgstr "Настройките са заредени от: %s" #: src/options.c:240 #, c-format msgid "This configuration file will be written: %s" msgstr "Настройките ще се запазят в: %s" #: src/rcfile.c:97 msgid "Start in full screen mode" msgstr "Стартиране на програмата на цял екран" #: src/rcfile.c:100 msgid "Display the menu bar" msgstr "Показване на лентата с менюта" #: src/rcfile.c:101 msgid "Display info about the image" msgstr "Показване на данни за изображението" #: src/rcfile.c:102 msgid "Display scrollbars" msgstr "Показване на плъзгачи" #: src/rcfile.c:104 msgid "Alpha checks in the background" msgstr "Прозрачен фон" #: src/rcfile.c:117 msgid "Enable transitions" msgstr "Активиране на преливания" #: src/rcfile.c:119 msgid "Keep transfo between images" msgstr "Същите преобразувания и при следващото изображения" #: src/rcfile.c:122 msgid "Maximum framerate" msgstr "Максимална честота на кадри" #: src/rcfile.c:123 msgid "Delay before hiding the cursor" msgstr "Забавяне преди да се скрие показалеца" #: src/rcfile.c:124 msgid "History length" msgstr "Максимален брой записи в историята на промените" #: src/rcfile.c:125 msgid "Delay between images" msgstr "Изчакване между изображенията" #: src/rcfile.c:131 msgid "background: red channel" msgstr "фон: red channel" #: src/rcfile.c:132 msgid "background: green channel" msgstr "фон: green channel" #: src/rcfile.c:133 msgid "background: blue channel" msgstr "фон: blue channel" #: src/rcfile.c:134 msgid "alpha1 tile: red channel" msgstr "" #: src/rcfile.c:135 msgid "alpha1 tile: green channel" msgstr "" #: src/rcfile.c:136 msgid "alpha1 tile: blue channel" msgstr "" #: src/rcfile.c:137 msgid "alpha2 tile: red channel" msgstr "" #: src/rcfile.c:138 msgid "alpha2 tile: green channel" msgstr "" #: src/rcfile.c:139 msgid "alpha2 tile: blue channel" msgstr "" #: src/rcfile.c:238 #, c-format msgid "Unknown option in configuration file: %s\n" msgstr "" #: src/rcfile.c:240 #, fuzzy, c-format msgid "Parse error in configuration file: %s\n" msgstr "" "# Настройки на GLiv %s\n" "\n" #: src/rcfile.c:486 #, c-format msgid "" "# Configuration file for GLiv %s\n" "\n" msgstr "" "# Настройки на GLiv %s\n" "\n" #: src/rcfile.c:487 msgid "# Option names are case sensitive.\n" msgstr "# Има значение главни/малки в имената на настройките. \n" #: src/rcfile.c:488 msgid "" "# Option values are case insensitive.\n" "\n" msgstr "" "# Има значение главни/малки в стойностите на настройките.\n" "\n" #: src/thread.c:164 msgid "Cannot use a thread\n" msgstr "Няма възможност да се използва нишкa\n" #: src/transition.c:261 #, c-format msgid "transition from `%s' to `%s'" msgstr "преход от „%s“ към „%s“" #: src/tree_browser.c:80 msgid "Browser" msgstr "" #: src/tree_browser.c:201 msgid "Thumb" msgstr "" #: src/tree_browser.c:222 msgid "Thumbnails browser" msgstr "" #: src/windows.c:207 msgid "loading" msgstr "зареждане" #: src/windows.c:238 msgid "No image loaded" msgstr "Няма заредено изображение" #: src/windows.c:239 msgid "width x height" msgstr "широчина x височина" #: src/windows.c:240 msgid "zoom% (angle)" msgstr "мащаб% (angle)" #: src/windows.c:319 #, c-format msgid "%.3f%% (%.3f deg%s)" msgstr "%.3f%% (%.3f градуса%s)" #: src/windows.c:363 #, c-format msgid "Ignoring initial geometry (%s) as fullscreen mode is requested\n" msgstr "" #: src/windows.c:375 #, c-format msgid "Cannot parse geometry: %s\n" msgstr "" #: src/windows.c:409 msgid "GLiv in fullscreen" msgstr "GLiv на цял екран" #~ msgid "" #~ "Your mouse wheel (if supported) will zoom the image and switch it when " #~ "you press the button." #~ msgstr "" #~ "Плъзгачът на мишката мащабира изображението. При натискане се зарежда " #~ "следващото изображение." #~ msgid "Steps count in a transition" #~ msgstr "Брой стъпки при преливане" #~ msgid "steps" #~ msgstr "стъпки" #~ msgid "Time to wait between each step" #~ msgstr "Изчакване между стъпките" gliv-1.9.7/po/nl.po0000644000076400007640000006506211465576131011350 0ustar gg# Translation of gliv-1.9.6 to Dutch. # Copyright (C) 2003, 2007 Free Software Foundation, Inc. # This file is distributed under the same license as the gliv package. # # Elros Cyriatan , 2003. # Benno Schulenberg , 2007. msgid "" msgstr "" "Project-Id-Version: gliv-1.9.6\n" "Report-Msgid-Bugs-To: guichaz@gmail.com\n" "POT-Creation-Date: 2010-04-19 00:52+0200\n" "PO-Revision-Date: 2007-10-26 22:14+0200\n" "Last-Translator: Benno Schulenberg \n" "Language-Team: Dutch \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: KBabel 1.11.4\n" #: src/actions.c:121 msgid "Failed to create a new process" msgstr "Kan geen nieuw proces starten" #: src/actions.c:126 #, c-format msgid "The action '%s' terminated with a non-null return code: %d" msgstr "" "De actie '%s' werd beëindigd met een afsluitwaarde ongelijk aan nul: %d" #: src/actions.c:230 msgid "Open in Gimp" msgstr "Openen met Gimp" #: src/actions.c:333 #, c-format msgid "The action name '%s' is already used" msgstr "De actienaam '%s' is al in gebruik" #: src/actions.c:463 src/glade_actions.c:165 src/tree_browser.c:211 msgid "Name" msgstr "Naam" #: src/actions.c:464 src/glade_actions.c:172 msgid "Command" msgstr "Commando" #: src/collection.c:152 msgid "Choose a file to save the collection" msgstr "Kies een bestand om de verzameling in op te slaan" #: src/collection.c:159 #, c-format msgid "Overwrite \"%s\" ?" msgstr "'%s' overschrijven?" #: src/collection.c:238 msgid "Elapsed time" msgstr "Verstreken tijd" #: src/collection.c:239 msgid "Remaining time" msgstr "Resterende tijd" #: src/collection.c:240 msgid "Total time" msgstr "Totale tijd" #: src/collection.c:247 src/collection.c:637 #, c-format msgid "Saving collection: %s" msgstr "Opslaan van verzameling: %s" #: src/collection.c:250 src/collection.c:1044 #, c-format msgid "Loading collection: %s" msgstr "Inlezen van verzameling: %s" #: src/collection.c:366 msgid "Inserting files..." msgstr "Invoegen van bestanden..." #: src/collection.c:615 msgid "No images to put in a collection\n" msgstr "Geen afbeeldingen om in een verzameling te plaatsen\n" #: src/collection.c:622 msgid "GLiv won't write a collection to a terminal\n" msgstr "GLiv schrijft een verzameling niet naar een terminal\n" #: src/collection.c:643 msgid "Standard output" msgstr "standaarduitvoer" #: src/collection.c:1064 #, c-format msgid "%s is not a GLiv collection" msgstr "%s is geen GLiv-verzameling" #: src/collection.c:1077 msgid "Choose a collection to load" msgstr "Kies de te laden verzameling" #: src/files_list.c:499 #, c-format msgid "" "Do you really want to delete this file?\n" "%s\n" msgstr "" "Wilt u dit bestand echt verwijderen?\n" "%s\n" #: src/files_list.c:523 msgid "directory/file" msgstr "map/bestand" #: src/gl_widget.c:130 #, c-format msgid "Wrong URI format: %d (instead of 8)" msgstr "Onjuist URI-formaat: %d (in plaats van 8)" #: src/gl_widget.c:135 #, c-format msgid "Wrong URI length: %d" msgstr "Onjuiste URI-lengte: %d" #: src/gl_widget.c:227 #, c-format msgid "Fatal error: GL_MAX_TEXTURE_SIZE = %d\n" msgstr "Fatale fout: GL_MAX_TEXTURE_SIZE = %d\n" #: src/gl_widget.c:231 msgid "GL_MAX_TEXTURE_SIZE must be >= 64" msgstr "GL_MAX_TEXTURE_SIZE moet groter of gelijk aan 64 zijn" #: src/gl_widget.c:257 msgid "glXMakeCurrent() failed" msgstr "glXMakeCurrent() is mislukt" #: src/gl_widget.c:310 msgid "OpenGL not supported" msgstr "OpenGL wordt niet ondersteund" #: src/gl_widget.c:321 msgid "Cannot find an appropriate visual, try glxinfo(1)" msgstr "Kan geen geschikte visualisatie vinden -- probeer 'glxinfo'" #: src/gl_widget.c:328 msgid "Cannot set the OpenGL capability" msgstr "Kan de OpenGL-functie niet instellen" #: src/gl_widget.c:366 #, c-format msgid "Unknown OpenGL error (%d)" msgstr "Onbekende OpenGL-fout (%d)" #: src/gl_widget.c:370 #, c-format msgid "" "OpenGL error in %s() at %s:%d:\n" "%s" msgstr "" "OpenGL-fout in %s() bij %s:%d:\n" "%s" #: src/glade_actions.c:43 msgid "Actions" msgstr "Acties" #: src/glade_actions.c:149 msgid "Edit Action" msgstr "Actie bewerken" #: src/glade_actions.c:206 msgid "" "In the command field, printf like substitutions can be used:\n" "%d\t\tPath to the current file directory\n" "%b\t\tCurrent file name\n" "%f\t\tPath to the current file\n" "%%\t\tA litteral %\n" msgstr "" "In het commandoveld kunnen opmaaktekens zoals in printf() gebruikt worden:\n" " %d pad naar de huidige map\n" " %b naam van huidige bestand\n" " %f pad naar huidige bestand\n" " %% een letterlijk %-teken\n" #: src/glade_image_nr.c:45 src/menus.c:417 msgid "Load the Nth image..." msgstr "De N-de afbeelding laden..." #: src/glade_image_nr.c:65 msgid "Enter an image number:" msgstr "Geef een afbeeldingsnummer:" #: src/glade_image_nr.c:81 msgid "directory" msgstr "map" #: src/glade_image_nr.c:87 msgid "file" msgstr "bestand" #: src/glade_options.c:138 src/menus.c:503 msgid "Options" msgstr "Opties" #: src/glade_options.c:174 msgid "Save options now" msgstr "Opties nu opslaan" #: src/glade_options.c:178 src/rcfile.c:116 msgid "Save options when quitting" msgstr "Opties opslaan bij afsluiten" #: src/glade_options.c:193 msgid "Configuration file" msgstr "Configuratiebestand" #: src/glade_options.c:215 msgid "Scrollbars enabled" msgstr "Schuifbalken tonen" #: src/glade_options.c:222 msgid "Fullscreen mode" msgstr "Volledig scherm" #: src/glade_options.c:229 msgid "Menu bar enabled" msgstr "Menubalk tonen" #: src/glade_options.c:236 msgid "Status bar enabled" msgstr "Statusbalk tonen" #: src/glade_options.c:243 src/rcfile.c:115 msgid "Confirm before quitting" msgstr "Bij afsluiten om bevestiging vragen" #: src/glade_options.c:250 src/rcfile.c:114 msgid "Automatic window resizing" msgstr "Venstergrootte automatisch aanpassen" #: src/glade_options.c:261 msgid "" "Delay before hiding the cursor\n" "0: feature disabled" msgstr "" "Vertraging alvorens aanwijzer te verbergen\n" "(0 = geen)" #: src/glade_options.c:274 src/glade_options.c:587 src/glade_options.c:634 msgid "milliseconds" msgstr "milliseconden" #: src/glade_options.c:279 msgid "Interface" msgstr "Interface" #: src/glade_options.c:290 src/rcfile.c:99 msgid "Scale down large images" msgstr "Grotere afbeeldingen verkleinen" #: src/glade_options.c:297 src/rcfile.c:98 msgid "Maximize small images" msgstr "Kleinere afbeeldingen vergroten" #: src/glade_options.c:304 src/rcfile.c:108 msgid "Build mipmaps" msgstr "Mipmaps gebruiken" #: src/glade_options.c:311 src/rcfile.c:105 msgid "Dithering" msgstr "Dithering gebruiken" #: src/glade_options.c:318 src/rcfile.c:111 msgid "Keep only one image in memory" msgstr "Slechts één afbeelding in het geheugen houden" #: src/glade_options.c:325 src/rcfile.c:120 msgid "Check for OpenGL errors" msgstr "Op OpenGL-fouten controleren" #: src/glade_options.c:332 src/rcfile.c:121 msgid "Enable OpenGL filtering" msgstr "OpenGL-filtering inschakelen" #: src/glade_options.c:339 src/images_menus.c:330 src/images_menus.c:479 #: src/menus.c:521 msgid "Images" msgstr "Afbeeldingen" #: src/glade_options.c:352 src/rcfile.c:107 msgid "Build images menus at startup" msgstr "Bij opstarten afbeeldingenmenu's samenstellen" #: src/glade_options.c:357 src/rcfile.c:109 msgid "Make mnemonics for images menus" msgstr "Sneltoetsen tonen in afbeeldingenmenu's" #: src/glade_options.c:362 src/rcfile.c:112 msgid "Show thumbnails in images menus" msgstr "Miniaturen tonen in afbeeldingenmenu's" #: src/glade_options.c:371 src/glade_options.c:380 msgid "pixels" msgstr "beeldpunten" #: src/glade_options.c:389 src/rcfile.c:127 msgid "Thumbnail height" msgstr "Hoogte van miniatuur" #: src/glade_options.c:418 src/rcfile.c:126 msgid "Thumbnail width" msgstr "Breedte van miniatuur" #: src/glade_options.c:427 msgid "Images menus" msgstr "Afbeeldingenmenu" #: src/glade_options.c:442 src/rcfile.c:103 msgid "Zoom centered on pointer" msgstr "Vergroting uitvoeren gecentreerd op aanwijzer" #: src/glade_options.c:447 msgid "Keep transformations when switching images" msgstr "Transformaties behouden bij wisselen van afbeelding" #: src/glade_options.c:456 src/rcfile.c:130 msgid "Initial image position" msgstr "Beginpositie van afbeelding" #: src/glade_options.c:463 src/menus.c:460 msgid "Center" msgstr "Centrum" #: src/glade_options.c:464 src/menus.c:461 msgid "Top left" msgstr "Linker bovenhoek" #: src/glade_options.c:465 src/menus.c:462 msgid "Top right" msgstr "Rechter bovenhoek" #: src/glade_options.c:466 src/menus.c:463 msgid "Bottom left" msgstr "Linker onderhoek" #: src/glade_options.c:467 src/menus.c:464 msgid "Bottom right" msgstr "Rechter onderhoek" #: src/glade_options.c:468 msgid "Same as previous" msgstr "Zelfde als vorige" #: src/glade_options.c:495 msgid "" "History length\n" "0: feature disabled\n" "-1: infinite" msgstr "" "Lengte van geschiedenis\n" "(0 = geen, -1 = oneindig)" #: src/glade_options.c:503 msgid "" "Maximum framerate\n" "-1: infinite" msgstr "" "Maximum aantal beelden per seconde\n" "(-1= oneindig)" #: src/glade_options.c:511 msgid "elements" msgstr "elementen" #: src/glade_options.c:519 msgid "fps" msgstr "Hertz" #: src/glade_options.c:527 src/menus.c:447 msgid "Transformations" msgstr "Transformaties" #: src/glade_options.c:542 src/rcfile.c:113 msgid "Start with the slide show" msgstr "Bij opstarten met een diavoorstelling beginnen" #: src/glade_options.c:547 src/rcfile.c:110 msgid "Make the slide show loop" msgstr "Diavoorstelling steeds herhalen" #: src/glade_options.c:556 src/rcfile.c:128 msgid "Last/First image notice time" msgstr "Meldingsduur van \"Eerste\"/\"Laatste\"" #: src/glade_options.c:563 msgid "Delay between images during the slide show" msgstr "Toonduur van afbeelding tijdens diavoorstelling" #: src/glade_options.c:580 msgid "seconds" msgstr "seconden" #: src/glade_options.c:608 msgid "Enable transitions between images" msgstr "Overgangen tussen afbeeldingen inschakelen" #: src/glade_options.c:621 src/rcfile.c:129 msgid "Transition duration" msgstr "Duur van overgang" #: src/glade_options.c:639 msgid "" "Transitions obey the maximum framerate parameter in the Transformations tab" msgstr "" "Overgangen gehoorzamen het maximum aantal beelden per seconde zoals " "ingesteld op de Transformaties-tab." #: src/glade_options.c:644 msgid "Slide show" msgstr "Diavoorstelling" #: src/glade_options.c:657 msgid "Alpha 2" msgstr "Alfa-2" #: src/glade_options.c:664 msgid "Alpha 1" msgstr "Alfa-1" #: src/glade_options.c:671 src/glade_options.c:706 msgid "Background" msgstr "Achtergrond" #: src/glade_options.c:692 msgid "Alpha checks" msgstr "Alfa-controles" #: src/help.c:102 src/help.c:109 msgid "GLiv help" msgstr "GLiv-hulp" #: src/help.c:163 msgid "GLiv about box" msgstr "GLiv-infovenster" #: src/help_text.c:15 msgid "ESC, q : Quit" msgstr " ESC, q : Afsluiten" #: src/help_text.c:18 msgid "f : Full-screen/window" msgstr " f : Volledig scherm / venster" #: src/help_text.c:21 msgid "+/=/- : Zoom in/in/out" msgstr " +/=/- : Vergroten / vergroten / verkleinen" #: src/help_text.c:24 msgid "n/p : Next/previous image" msgstr " n/p : Volgende/vorige afbeelding" #: src/help_text.c:27 msgid "Pause : Start/stop the slide show" msgstr " Pause : Diavoorstelling starten/stoppen" #: src/help_text.c:30 msgid "l : Reduce the image to the window" msgstr " l : Afbeelding verkleinen naar venstergrootte" #: src/help_text.c:33 msgid "M : Maximize the image to the window" msgstr " M : Afbeelding vergroten naar venstergrootte" #: src/help_text.c:36 msgid "m : Make the image fit the window" msgstr " m : Afbeelding doen passen in venster" #: src/help_text.c:39 msgid "r : Reset position and size" msgstr " r : Positie en grootte herstellen naar normaal" #: src/help_text.c:42 msgid "b : Toggle display of the menu bar" msgstr " b : Weergave van menubalk aan-/uitzetten" #: src/help_text.c:45 msgid "i : Toggle display of the info bar" msgstr " i : Weergave van infobalk aan-/uitzetten" #: src/help_text.c:48 msgid "s : Toggle display of the scrollbars" msgstr " s : Weergave van schuifbalken aan-/uitzetten" #: src/help_text.c:51 msgid "a : Toggle display of the alpha checks" msgstr " a : Weergave van alfa-controles aan-/uitzetten" #: src/help_text.c:54 msgid "h : Toggle display of the help box" msgstr " h : Weergave van hulpvenster aan-/uitzetten" #: src/help_text.c:57 msgid "w : Toggle display of floating windows" msgstr " w : Drijvende vensters aan-/uitzetten" #: src/help_text.c:60 msgid "o : Display the open dialog" msgstr " o : Openen-dialoog weergeven" #: src/help_text.c:63 msgid "g : Display the image selector" msgstr " g : De afbeeldingkiezer weergeven" #: src/help_text.c:66 msgid "t : Display the options dialog" msgstr " t : Opties-dialoog weergeven" #: src/help_text.c:69 msgid "d : Hide the cursor" msgstr " d : De aanwijzer verbergen" #: src/help_text.c:72 msgid "u : Undo" msgstr " u : Ongedaan maken" #: src/help_text.c:75 msgid "y : Redo" msgstr " y : Opnieuw doen" #: src/help_text.c:78 msgid "c : Clear the history" msgstr " c : De geschiedenis wissen" #: src/help_text.c:81 msgid "Delete : Delete the current file" msgstr " Delete : Het huidige bestand verwijderen" #: src/help_text.c:84 msgid "C-up : Rotate by +90 degrees" msgstr "Ctrl-omhoog : +90 graden draaien" #: src/help_text.c:87 msgid "C-down : Rotate by -90 degrees" msgstr "Ctrl-omlaag : -90 graden draaien" #: src/help_text.c:90 msgid "C-left : Rotate by +0.1 degree" msgstr "Ctrl-links : +0,1 graden draaien" #: src/help_text.c:93 msgid "C-right: Rotate by -0.1 degree" msgstr "Ctrl-rechts : -0,1 graden draaien" #: src/help_text.c:96 msgid "z : Horizontal flip" msgstr " z : Horizontaal spiegelen" #: src/help_text.c:99 msgid "e : Vertical flip" msgstr " e : Verticaal spiegelen" #: src/help_text.c:104 msgid "" "The first mouse button and the arrow keys will move the image unless the " "Control key is pressed. In which case the image will be rotated around the " "window center." msgstr "" "De eerste muisknop en de pijltjestoetsen verplaatsen de afbeelding. Als de " "Control-toets vastgehouden wordt, wordt de afbeelding gedraaid." #: src/help_text.c:107 msgid "" "The mouse wheel zooms the image, and when you hold its button pressed at the " "same time it switches to the neighbouring image." msgstr "" #: src/help_text.c:110 msgid "" "You can also zoom by dragging the mouse vertically while holding Shift and " "the first button." msgstr "" "U kunt ook vergroten en verkleinen door de muis te verschuiven terwijl u de " "Shift-toets en de eerste muisknop ingedrukt houdt." #: src/help_text.c:113 msgid "Space and Backspace act like n and p." msgstr "Spatie en Backspace werken als n en p." #: src/help_text.c:116 msgid "Draw a rectangle with the third button and gliv will zoom in it." msgstr "" "Als u een rechthoek trekt met de derde muisknop, vergroot GLiv dat gebied." #: src/images_menus.c:82 msgid "Rebuilding:" msgstr "Opnieuw opbouwen:" #: src/images_menus.c:209 src/images_menus.c:447 src/menus.c:517 msgid "Directories" msgstr "Mappen" #: src/images_menus.c:296 msgid "Current image directory..." msgstr "Huidige afbeeldingenmap..." #: src/images_menus.c:363 src/menus.c:337 msgid "Rebuild this menu" msgstr "Dit menu opnieuw opbouwen" #: src/images_menus.c:370 src/menus.c:338 msgid "Open thumbnails browser..." msgstr "Miniaturenoverzicht..." #: src/include/about.h:6 msgid "GLiv version" msgstr "GLiv versie" #: src/include/about.h:8 msgid "" "Use 'gliv --help' to show command line options.\n" "A quick help is accessible by typing 'h' or using the menu." msgstr "" "Gebruik 'gliv --help' om de opdrachtregelopties te zien.\n" "Beknopte hulp verkrijgt u door 'h' te typen of het menu te gebruiken." #: src/include/about.h:10 msgid "See http://guichaz.free.fr/gliv for updates." msgstr "Zie http://guichaz.free.fr/gliv/ voor de nieuwste versie." #: src/loading.c:81 #, c-format msgid "%s not while loading an image\n" msgstr "%s niet tijdens het laden van een afbeelding\n" #: src/loading.c:83 #, c-format msgid "%s while loading %s\n" msgstr "%s tijdens het laden van %s\n" #: src/loading.c:102 msgid "alpha channel" msgstr "alfa-kanaal" #: src/loading.c:158 #, c-format msgid "%s: unknown decompressed extension\n" msgstr "%s: onbekende uitgepakte extensie\n" #: src/loading.c:165 #, c-format msgid "%s: image cannot be compressed twice\n" msgstr "%s: afbeelding kan niet tweemaal worden ingepakt\n" #: src/loading.c:188 #, c-format msgid "%s: unknown extension (none)\n" msgstr "%s: onbekende extensie (geen)\n" #: src/loading.c:197 #, c-format msgid "%s: unknown extension\n" msgstr "%s: onbekende extensie\n" #: src/loading.c:291 src/next_image.c:280 #, c-format msgid "Cannot load %s" msgstr "Kan %s niet laden" #: src/main.c:65 #, c-format msgid "Command line flags should be on or off, not %s\n" msgstr "Opdrachtregelopties moeten of aan of uit staan, niet %s\n" #: src/main.c:181 msgid "Cannot sort and shuffle at the same time\n" msgstr "Kan niet tegelijkertijd schudden en sorteren\n" #: src/main.c:221 msgid "" "The --client and --client-clear command line options are mutually exclusive\n" msgstr "" #: src/main.c:253 src/main.c:256 msgid "Do not ask again" msgstr "Niet meer vragen." #: src/main.c:257 msgid "Options will be saved" msgstr "Keuzes worden opgeslagen" #: src/main.c:279 msgid "Do you really want to quit GLiv?" msgstr "GLiv echt afsluiten?" #: src/main.c:337 src/next_image.c:542 msgid "No image found" msgstr "Geen afbeelding gevonden" #: src/menus.c:403 msgid "File" msgstr "Bestand" #: src/menus.c:404 msgid "Open..." msgstr "Openen..." #: src/menus.c:405 msgid "Open directory..." msgstr "Map openen..." #: src/menus.c:407 msgid "Load collection..." msgstr "Verzameling inlezen..." #: src/menus.c:408 msgid "Save collection..." msgstr "Verzameling opslaan..." #: src/menus.c:410 msgid "Quit" msgstr "Afsluiten" #: src/menus.c:414 msgid "Commands" msgstr "Commando's" #: src/menus.c:415 msgid "Load previous image" msgstr "Vorige afbeelding laden" #: src/menus.c:416 msgid "Load next image" msgstr "Volgende afbeelding laden" #: src/menus.c:418 #, fuzzy msgid "Load first image" msgstr "Volgende afbeelding laden" #: src/menus.c:419 #, fuzzy msgid "Load last image" msgstr "Volgende afbeelding laden" #: src/menus.c:420 #, fuzzy msgid "Load random image" msgstr "Volgende afbeelding laden" #: src/menus.c:421 msgid "Reload the current image" msgstr "Huidige afbeelding herladen" #: src/menus.c:423 msgid "Sort images list" msgstr "Afbeeldingenlijst sorteren" #: src/menus.c:424 msgid "Shuffle images list" msgstr "Afbeeldingenlijst schudden" #: src/menus.c:426 msgid "Rebuild images menus" msgstr "Afbeeldingenmenu opnieuw opbouwen" #: src/menus.c:427 msgid "Stop rebuilding the images menu" msgstr "Stoppen met opnieuw opbouwen" #: src/menus.c:431 msgid "Toggle floating windows" msgstr "Drijvende vensters aan/uit" #: src/menus.c:433 src/next_image.c:799 msgid "Start the slide show" msgstr "Diavoorstelling starten" #: src/menus.c:437 msgid "Remove the current file" msgstr "Huidige bestand verwijderen" #: src/menus.c:440 msgid "Edit actions..." msgstr "Acties bewerken..." #: src/menus.c:441 msgid "Action on the current image" msgstr "Actie op huidige afbeelding" #: src/menus.c:443 msgid "Action on every image" msgstr "Actie op elke afbeelding" #: src/menus.c:448 msgid "Undo" msgstr "Ongedaan maken" #: src/menus.c:449 msgid "Redo" msgstr "Opnieuw" #: src/menus.c:450 msgid "Clear history" msgstr "Geschiedenis wissen" #: src/menus.c:452 msgid "Move" msgstr "Verplaatsen" #: src/menus.c:453 msgid "Move left" msgstr "Naar links" #: src/menus.c:454 msgid "Move right" msgstr "Naar rechts" #: src/menus.c:455 msgid "Move up" msgstr "Omhoog" #: src/menus.c:456 msgid "Move down" msgstr "Omlaag" #: src/menus.c:459 msgid "Set position" msgstr "Positioneren" #: src/menus.c:467 msgid "Rotation" msgstr "Roteren" #: src/menus.c:468 msgid "Rotate +90 deg" msgstr "+90 graden" #: src/menus.c:470 msgid "Rotate -90 deg" msgstr "-90 graden" #: src/menus.c:472 msgid "Rotate +0.1 deg" msgstr "+0.1 graden" #: src/menus.c:474 msgid "Rotate -0.1 deg" msgstr "-0.1 graden" #: src/menus.c:480 msgid "Horizontal flip" msgstr "Horizontaal spiegelen" #: src/menus.c:482 msgid "Vertical flip" msgstr "Verticaal spiegelen" #: src/menus.c:486 msgid "Maximize small image" msgstr "Kleinere afbeelding vergroten" #: src/menus.c:487 msgid "Scale down large image" msgstr "Grotere afbeelding verkleinen" #: src/menus.c:489 msgid "Image fit window" msgstr "In venster laten passen" #: src/menus.c:492 msgid "Zoom in" msgstr "Vergroten" #: src/menus.c:493 msgid "Zoom out" msgstr "Verkleinen" #: src/menus.c:494 msgid "Fit width" msgstr "In breedte laten passen" #: src/menus.c:495 msgid "Fit height" msgstr "In hoogte laten passen" #: src/menus.c:499 msgid "Reset" msgstr "Terug naar normaal" #: src/menus.c:504 msgid "Toggle Fullscreen mode" msgstr "Volledig scherm aan/uit" #: src/menus.c:505 msgid "Toggle Menu Bar" msgstr "Menubalk aan/uit" #: src/menus.c:506 msgid "Toggle Status Bar" msgstr "Statusbalk aan/uit" #: src/menus.c:507 msgid "Toggle Scrollbars" msgstr "Schuifbalken aan/uit" #: src/menus.c:508 msgid "Toggle Alpha checks" msgstr "Alfa-controles aan/uit" #: src/menus.c:510 msgid "Hide the cursor" msgstr "Aanwijzer verbergen" #: src/menus.c:511 msgid "Set this window as server" msgstr "Dit venster als server instellen" #: src/menus.c:513 msgid "Options..." msgstr "Opties..." #: src/menus.c:532 msgid "Help" msgstr "Hulp" #: src/menus.c:533 msgid "About..." msgstr "Info..." #: src/menus.c:534 msgid "Controls..." msgstr "Toetsenoverzicht..." #: src/next_image.c:143 msgid "First image" msgstr "Eerste" #: src/next_image.c:146 msgid "Last image" msgstr "Laatste" #: src/next_image.c:226 msgid "Loading errors" msgstr "Laadfouten" #: src/next_image.c:239 msgid "The following errors occurred while loading the next image:\n" msgstr "Tijdens laden van volgende afbeelding zijn deze fouten opgetreden:\n" #: src/next_image.c:828 msgid "Stop the slide show" msgstr "Diavoorstelling stoppen" #: src/open_dialog.c:101 msgid "GLiv: Select a folder to open" msgstr "GLiv: Selecteer de te openen map" #: src/open_dialog.c:104 msgid "GLiv: Select files to open" msgstr "GLiv: Selecteer de te openen bestanden" #: src/open_dialog.c:129 src/rcfile.c:106 msgid "Try to load every file" msgstr "Elk bestand proberen te laden" #: src/open_dialog.c:130 src/rcfile.c:118 msgid "Recursive directory traversal" msgstr "Mappen recursief doorlopen" #: src/options.c:219 src/options.c:237 msgid "NONE" msgstr "GEEN" #: src/options.c:222 #, c-format msgid "This configuration file has been read: %s" msgstr "Gelezen configuratiebestand: %s" #: src/options.c:240 #, c-format msgid "This configuration file will be written: %s" msgstr "Configuratie wordt geschreven naar: %s" #: src/rcfile.c:97 msgid "Start in full screen mode" msgstr "Opstarten in volledig scherm-modus" #: src/rcfile.c:100 msgid "Display the menu bar" msgstr "Menubalk weergeven" #: src/rcfile.c:101 msgid "Display info about the image" msgstr "Informatie over de afbeelding weergeven" #: src/rcfile.c:102 msgid "Display scrollbars" msgstr "Schuifbalken weergeven" #: src/rcfile.c:104 msgid "Alpha checks in the background" msgstr "Alfa-controles uitvoeren in de achtergrond" #: src/rcfile.c:117 msgid "Enable transitions" msgstr "Overgangen inschakelen" #: src/rcfile.c:119 msgid "Keep transfo between images" msgstr "Transformaties vasthouden" #: src/rcfile.c:122 msgid "Maximum framerate" msgstr "Maximum aantal beelden per seconde" #: src/rcfile.c:123 msgid "Delay before hiding the cursor" msgstr "Vertraging alvorens aanwijzer te verbergen" #: src/rcfile.c:124 msgid "History length" msgstr "Lengte van geschiedenis" #: src/rcfile.c:125 msgid "Delay between images" msgstr "Vertraging tussen afbeeldingen" #: src/rcfile.c:131 msgid "background: red channel" msgstr "achtergrond: rode kanaal" #: src/rcfile.c:132 msgid "background: green channel" msgstr "achtergrond: groene kanaal" #: src/rcfile.c:133 msgid "background: blue channel" msgstr "achtergrond: blauwe kanaal" #: src/rcfile.c:134 msgid "alpha1 tile: red channel" msgstr "alfa-1-tegel: rode kanaal" #: src/rcfile.c:135 msgid "alpha1 tile: green channel" msgstr "alfa-1-tegel: groene kanaal" #: src/rcfile.c:136 msgid "alpha1 tile: blue channel" msgstr "alfa-1-tegel: blauwe kanaal" #: src/rcfile.c:137 msgid "alpha2 tile: red channel" msgstr "alfa-2-tegel: rode kanaal" #: src/rcfile.c:138 msgid "alpha2 tile: green channel" msgstr "alfa-2-tegel: groene kanaal" #: src/rcfile.c:139 msgid "alpha2 tile: blue channel" msgstr "alfa-2-tegel: blauwe kanaal" #: src/rcfile.c:238 #, c-format msgid "Unknown option in configuration file: %s\n" msgstr "Onbekende optie in configuratiebestand: %s\n" #: src/rcfile.c:240 #, c-format msgid "Parse error in configuration file: %s\n" msgstr "Ontledingsfout in configuratiebestand: %s\n" #: src/rcfile.c:486 #, c-format msgid "" "# Configuration file for GLiv %s\n" "\n" msgstr "" "# Configuratiebestand voor GLiv %s\n" "\n" #: src/rcfile.c:487 msgid "# Option names are case sensitive.\n" msgstr "# Optienamen zijn hoofdlettergevoelig.\n" #: src/rcfile.c:488 msgid "" "# Option values are case insensitive.\n" "\n" msgstr "" "# Optiewaarden zijn niet hoofdlettergevoelig.\n" "\n" #: src/thread.c:164 msgid "Cannot use a thread\n" msgstr "Kan geen threading gebruiken\n" #: src/transition.c:261 #, c-format msgid "transition from `%s' to `%s'" msgstr "overgang van '%s' naar '%s'" #: src/tree_browser.c:80 msgid "Browser" msgstr "Browser" #: src/tree_browser.c:201 msgid "Thumb" msgstr "" #: src/tree_browser.c:222 msgid "Thumbnails browser" msgstr "Miniaturenoverzicht" #: src/windows.c:207 msgid "loading" msgstr "laden van" #: src/windows.c:238 msgid "No image loaded" msgstr "Geen afbeelding geladen" #: src/windows.c:239 msgid "width x height" msgstr "breedte x hoogte" #: src/windows.c:240 msgid "zoom% (angle)" msgstr "vergrotings-% (draaiing)" #: src/windows.c:319 #, c-format msgid "%.3f%% (%.3f deg%s)" msgstr "%.1f%% (%.1f°%s)" #: src/windows.c:363 #, c-format msgid "Ignoring initial geometry (%s) as fullscreen mode is requested\n" msgstr "" "Beginformaat (%s) van venster wordt genegeerd omdat volledig scherm gevraagd " "is\n" #: src/windows.c:375 #, c-format msgid "Cannot parse geometry: %s\n" msgstr "Onbegrijpelijke vensterafmetingen: %s\n" #: src/windows.c:409 msgid "GLiv in fullscreen" msgstr "GLiv in volledig scherm" #~ msgid "" #~ "Your mouse wheel (if supported) will zoom the image and switch it when " #~ "you press the button." #~ msgstr "" #~ "Met het muiswiel (indien ondersteund) kunt u de afbeelding vergroten en " #~ "verkleinen, en [omschakelen] als u erop drukt." gliv-1.9.7/po/fi.po0000644000076400007640000006607711465576131011344 0ustar gg# Finnish messages for gliv. # Copyright © 2009 Free Software Foundation, Inc. # Copyright © 2009 Guillaume Chazarain # This file is distributed under the same license as the gliv package. # Jorma Karvonen , 2009. # msgid "" msgstr "" "Project-Id-Version: gliv 1.9.6\n" "Report-Msgid-Bugs-To: guichaz@gmail.com\n" "POT-Creation-Date: 2010-04-19 00:52+0200\n" "PO-Revision-Date: 2009-10-26 23:49+0200\n" "Last-Translator: Jorma Karvonen \n" "Language-Team: Finnish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: src/actions.c:121 msgid "Failed to create a new process" msgstr "Uuden prosessin luominen epäonnistui" #: src/actions.c:126 #, c-format msgid "The action '%s' terminated with a non-null return code: %d" msgstr "Toiminto ”%s” päättyi paluukoodiin, joka ei ollut ”null”: %d" #: src/actions.c:230 msgid "Open in Gimp" msgstr "Avaa GIMP-ohjelmassa" #: src/actions.c:333 #, c-format msgid "The action name '%s' is already used" msgstr "Toimintonimi ”%s” on jo käytetty" #: src/actions.c:463 src/glade_actions.c:165 src/tree_browser.c:211 msgid "Name" msgstr "Nimi" #: src/actions.c:464 src/glade_actions.c:172 msgid "Command" msgstr "Komento" #: src/collection.c:152 msgid "Choose a file to save the collection" msgstr "Valitse tiedosto, johon kokoelma tallennetaan" #: src/collection.c:159 #, c-format msgid "Overwrite \"%s\" ?" msgstr "Korvataanko ”%s” ?" #: src/collection.c:238 msgid "Elapsed time" msgstr "Kulunut aika" #: src/collection.c:239 msgid "Remaining time" msgstr "Jäljellä oleva aika" #: src/collection.c:240 msgid "Total time" msgstr "Kokonaisaika" #: src/collection.c:247 src/collection.c:637 #, c-format msgid "Saving collection: %s" msgstr "Tallennetaan kokoelmaa: %s" #: src/collection.c:250 src/collection.c:1044 #, c-format msgid "Loading collection: %s" msgstr "Ladataan kokoelmaa: %s" #: src/collection.c:366 msgid "Inserting files..." msgstr "Lisätään tiedostoja..." #: src/collection.c:615 msgid "No images to put in a collection\n" msgstr "Ei kuvia lisättävänä kokoelmaan\n" #: src/collection.c:622 msgid "GLiv won't write a collection to a terminal\n" msgstr "GLiv ei kirjoittaa kokoelmaa pääteikkunaan\n" #: src/collection.c:643 msgid "Standard output" msgstr "Vakiotuloste" #: src/collection.c:1064 #, c-format msgid "%s is not a GLiv collection" msgstr "%s ei ole GLiv-kokoelma" #: src/collection.c:1077 msgid "Choose a collection to load" msgstr "Valitse ladattava kokoelma" #: src/files_list.c:499 #, c-format msgid "" "Do you really want to delete this file?\n" "%s\n" msgstr "" "Haluatko todella poistaa tämän tiedoston?\n" "%s\n" #: src/files_list.c:523 msgid "directory/file" msgstr "hakemisto/tiedosto" #: src/gl_widget.c:130 #, c-format msgid "Wrong URI format: %d (instead of 8)" msgstr "Väärä URI-muoto: %d (eikä 8)" #: src/gl_widget.c:135 #, c-format msgid "Wrong URI length: %d" msgstr "Väärä URI-pituus: %d" #: src/gl_widget.c:227 #, c-format msgid "Fatal error: GL_MAX_TEXTURE_SIZE = %d\n" msgstr "Vakava virhe: GL_MAX_TEXTURE_SIZE = %d\n" #: src/gl_widget.c:231 msgid "GL_MAX_TEXTURE_SIZE must be >= 64" msgstr "GL_MAX_TEXTURE_SIZE on oltava >= 64" #: src/gl_widget.c:257 msgid "glXMakeCurrent() failed" msgstr "glXMakeCurrent() epäonnistui" #: src/gl_widget.c:310 msgid "OpenGL not supported" msgstr "OpenGL ei ole tuettu" #: src/gl_widget.c:321 msgid "Cannot find an appropriate visual, try glxinfo(1)" msgstr "Ei voida löytää sopivaa visuaalisuutta, yritä glxinfo(1)" #: src/gl_widget.c:328 msgid "Cannot set the OpenGL capability" msgstr "Ei voida asettaa OpenGL-kykyä" #: src/gl_widget.c:366 #, c-format msgid "Unknown OpenGL error (%d)" msgstr "Tuntematon OpenGL-virhe (%d)" #: src/gl_widget.c:370 #, c-format msgid "" "OpenGL error in %s() at %s:%d:\n" "%s" msgstr "" "OpenGL-virhe funktiossa %s() tiedostorivillä %s:%d:\n" "%s" #: src/glade_actions.c:43 msgid "Actions" msgstr "Toiminnot" #: src/glade_actions.c:149 msgid "Edit Action" msgstr "Muokkaa toimintoa" #: src/glade_actions.c:206 msgid "" "In the command field, printf like substitutions can be used:\n" "%d\t\tPath to the current file directory\n" "%b\t\tCurrent file name\n" "%f\t\tPath to the current file\n" "%%\t\tA litteral %\n" msgstr "" "Komentokentässä, printf-kaltaisia korvauksia käytetään:\n" "%d\t\tPolku nykyiseen tiedostohakemistoon\n" "%b\t\tNykyinen tiedostonimi\n" "%f\t\tPolku nykyiseen tiedostoon\n" "%%\t\tLiteraali %\n" #: src/glade_image_nr.c:45 src/menus.c:417 msgid "Load the Nth image..." msgstr "Lataa N:s tiedosto..." #: src/glade_image_nr.c:65 msgid "Enter an image number:" msgstr "Kirjoita kuvan numero:" #: src/glade_image_nr.c:81 msgid "directory" msgstr "hakemisto" #: src/glade_image_nr.c:87 msgid "file" msgstr "tiedosto" #: src/glade_options.c:138 src/menus.c:503 msgid "Options" msgstr "Valitsimet" #: src/glade_options.c:174 msgid "Save options now" msgstr "Tallenna valitsimet nyt" #: src/glade_options.c:178 src/rcfile.c:116 msgid "Save options when quitting" msgstr "Tallenna valitsimet poistuttaessa" #: src/glade_options.c:193 msgid "Configuration file" msgstr "Asetustiedosto" #: src/glade_options.c:215 msgid "Scrollbars enabled" msgstr "Vierintäpalkit käytössä" #: src/glade_options.c:222 msgid "Fullscreen mode" msgstr "Kokoruututila" #: src/glade_options.c:229 msgid "Menu bar enabled" msgstr "Valikkopalkki käytössä" #: src/glade_options.c:236 msgid "Status bar enabled" msgstr "Tilapalkki käytössä" #: src/glade_options.c:243 src/rcfile.c:115 msgid "Confirm before quitting" msgstr "Vahvista ennen poistumista" #: src/glade_options.c:250 src/rcfile.c:114 msgid "Automatic window resizing" msgstr "Ikkunakoon automaattinen muuntaminen" #: src/glade_options.c:261 msgid "" "Delay before hiding the cursor\n" "0: feature disabled" msgstr "" "Viive ennen kohdistimen piiloitusta\n" "0: ominaisuus ei ole käytössä" #: src/glade_options.c:274 src/glade_options.c:587 src/glade_options.c:634 msgid "milliseconds" msgstr "millisekuntia" #: src/glade_options.c:279 msgid "Interface" msgstr "Rajapinta" #: src/glade_options.c:290 src/rcfile.c:99 msgid "Scale down large images" msgstr "Skaalaa kuvat pienemmäksi" #: src/glade_options.c:297 src/rcfile.c:98 msgid "Maximize small images" msgstr "Maksimoi pienet kuvat" # MIP maps eli mipmaps on yleensä alkuperäiskuvatiedostoa pienikokoisempi tai erottelukyvyltään karkeampia kuvatiedostokopioita, joita generoidaan näytönkäytön nopeuttamiseksi. #: src/glade_options.c:304 src/rcfile.c:108 msgid "Build mipmaps" msgstr "Rakennetaan mipmap-tiedostoja" #: src/glade_options.c:311 src/rcfile.c:105 msgid "Dithering" msgstr "Sekoitussävytys" #: src/glade_options.c:318 src/rcfile.c:111 msgid "Keep only one image in memory" msgstr "Pidä vain yksi kuva muistissa" #: src/glade_options.c:325 src/rcfile.c:120 msgid "Check for OpenGL errors" msgstr "Tarkista OpenGL-virheet" #: src/glade_options.c:332 src/rcfile.c:121 msgid "Enable OpenGL filtering" msgstr "Ota käyttöön OpenGL-suodatus" #: src/glade_options.c:339 src/images_menus.c:330 src/images_menus.c:479 #: src/menus.c:521 msgid "Images" msgstr "Kuvat" #: src/glade_options.c:352 src/rcfile.c:107 msgid "Build images menus at startup" msgstr "Rakenna kuvat-valikot käynnistyksen yhteydessä" #: src/glade_options.c:357 src/rcfile.c:109 msgid "Make mnemonics for images menus" msgstr "Tee muistikkaat kuvat-valikoille" #: src/glade_options.c:362 src/rcfile.c:112 msgid "Show thumbnails in images menus" msgstr "Näytä pienoiskuvat kuvat-valikoissa" #: src/glade_options.c:371 src/glade_options.c:380 msgid "pixels" msgstr "pikseliä" #: src/glade_options.c:389 src/rcfile.c:127 msgid "Thumbnail height" msgstr "Pienoiskuvan korkeus" #: src/glade_options.c:418 src/rcfile.c:126 msgid "Thumbnail width" msgstr "Pienoiskuvan leveys" #: src/glade_options.c:427 msgid "Images menus" msgstr "Kuvat-valikot" #: src/glade_options.c:442 src/rcfile.c:103 msgid "Zoom centered on pointer" msgstr "Rajaa keskitettynä osoittimen kohdalta" #: src/glade_options.c:447 msgid "Keep transformations when switching images" msgstr "Säilytä muodonmuutokset kun vaihdetaan kuvia" #: src/glade_options.c:456 src/rcfile.c:130 msgid "Initial image position" msgstr "Alkuperäinen kuvan paikka" #: src/glade_options.c:463 src/menus.c:460 msgid "Center" msgstr "Keskitä" #: src/glade_options.c:464 src/menus.c:461 msgid "Top left" msgstr "Vasen yläkulma" #: src/glade_options.c:465 src/menus.c:462 msgid "Top right" msgstr "Oikea yläkulma" #: src/glade_options.c:466 src/menus.c:463 msgid "Bottom left" msgstr "Vasen alakulma" #: src/glade_options.c:467 src/menus.c:464 msgid "Bottom right" msgstr "Oikea alakulma" #: src/glade_options.c:468 msgid "Same as previous" msgstr "Sama kuin edellinen" #: src/glade_options.c:495 msgid "" "History length\n" "0: feature disabled\n" "-1: infinite" msgstr "" "Historiapituus\n" "0: ominaisuus ei ole käytössä\n" "-1: päättymätön" #: src/glade_options.c:503 msgid "" "Maximum framerate\n" "-1: infinite" msgstr "" "Maksimi kehysnopeus\n" "-1: päättymätön" #: src/glade_options.c:511 msgid "elements" msgstr "elementit" #: src/glade_options.c:519 msgid "fps" msgstr "fps" #: src/glade_options.c:527 src/menus.c:447 msgid "Transformations" msgstr "Muodonmuutokset" #: src/glade_options.c:542 src/rcfile.c:113 msgid "Start with the slide show" msgstr "Aloita dia-esitys" #: src/glade_options.c:547 src/rcfile.c:110 msgid "Make the slide show loop" msgstr "Tee dia-esityksesta silmukka" #: src/glade_options.c:556 src/rcfile.c:128 msgid "Last/First image notice time" msgstr "Viimeisen/Ensimmäisen kuvan havaintoaika" #: src/glade_options.c:563 msgid "Delay between images during the slide show" msgstr "Kuvien välinen viive dia-esityksessä" #: src/glade_options.c:580 msgid "seconds" msgstr "sekuntia" #: src/glade_options.c:608 msgid "Enable transitions between images" msgstr "Ota käyttöön siirtymiset kuvien välillä" #: src/glade_options.c:621 src/rcfile.c:129 msgid "Transition duration" msgstr "Siirtymän kesto" #: src/glade_options.c:639 msgid "" "Transitions obey the maximum framerate parameter in the Transformations tab" msgstr "" "Siirtymät tottelevat muodonmuutosten välilehden maksimikehysnopeusparametriä" #: src/glade_options.c:644 msgid "Slide show" msgstr "Dia-esitys" #: src/glade_options.c:657 msgid "Alpha 2" msgstr "Alfa 2" #: src/glade_options.c:664 msgid "Alpha 1" msgstr "Alfa 1" #: src/glade_options.c:671 src/glade_options.c:706 msgid "Background" msgstr "Tausta" #: src/glade_options.c:692 msgid "Alpha checks" msgstr "Alfatarkistukset" #: src/help.c:102 src/help.c:109 msgid "GLiv help" msgstr "GLiv-opaste" #: src/help.c:163 msgid "GLiv about box" msgstr "GLiv-ohjelmasta" #: src/help_text.c:15 msgid "ESC, q : Quit" msgstr "ESC, q : Poistu" #: src/help_text.c:18 msgid "f : Full-screen/window" msgstr "f : Kokoruutu/ikkuna" #: src/help_text.c:21 msgid "+/=/- : Zoom in/in/out" msgstr "+/=/- : Rajaa/rajaa/avarra" #: src/help_text.c:24 msgid "n/p : Next/previous image" msgstr "n/p : Seuraava/edellinen kuva" #: src/help_text.c:27 msgid "Pause : Start/stop the slide show" msgstr "Pause: : Aloita/lopeta dia-esitys" #: src/help_text.c:30 msgid "l : Reduce the image to the window" msgstr "l : Pienennä kuva ikkunaan" #: src/help_text.c:33 msgid "M : Maximize the image to the window" msgstr "M : Maksimoi kuva ikkunaan" #: src/help_text.c:36 msgid "m : Make the image fit the window" msgstr "m : Sovita kuva ikkunaan" #: src/help_text.c:39 msgid "r : Reset position and size" msgstr "r : Aseta sijainti ja koko alkutilaan" #: src/help_text.c:42 msgid "b : Toggle display of the menu bar" msgstr "b : Vaihda valikkopalkin näyttöä" #: src/help_text.c:45 msgid "i : Toggle display of the info bar" msgstr "i : Vaihda tietopalkin näyttöä" #: src/help_text.c:48 msgid "s : Toggle display of the scrollbars" msgstr "s : Vaihda vierintäpalkkien näyttöä" #: src/help_text.c:51 msgid "a : Toggle display of the alpha checks" msgstr "a : Vaihda alfa-tarkistusten näyttöä" #: src/help_text.c:54 msgid "h : Toggle display of the help box" msgstr "h : Vaihda opasteikkunan näyttöä" #: src/help_text.c:57 msgid "w : Toggle display of floating windows" msgstr "w : Vaihda kelluvan ikkunan näyttöä" #: src/help_text.c:60 msgid "o : Display the open dialog" msgstr "o : Näytä avaa-valintaikkuna" #: src/help_text.c:63 msgid "g : Display the image selector" msgstr "g : Näytä kuvanvalitsin" #: src/help_text.c:66 msgid "t : Display the options dialog" msgstr "t : Näytä valitsimet-valintaikkuna" #: src/help_text.c:69 msgid "d : Hide the cursor" msgstr "d : Piilota kohdistin" #: src/help_text.c:72 msgid "u : Undo" msgstr "u : Peru" #: src/help_text.c:75 msgid "y : Redo" msgstr "y : Toista" #: src/help_text.c:78 msgid "c : Clear the history" msgstr "c : Tyhjennä historia" #: src/help_text.c:81 msgid "Delete : Delete the current file" msgstr "Delete : Poista nykyinen tiedosto" #: src/help_text.c:84 msgid "C-up : Rotate by +90 degrees" msgstr "C-up : Kierrä +90 asteella" #: src/help_text.c:87 msgid "C-down : Rotate by -90 degrees" msgstr "C-down : Kierrä -90 asteella" #: src/help_text.c:90 msgid "C-left : Rotate by +0.1 degree" msgstr "C-left : Kierrä +0.1 asteella" #: src/help_text.c:93 msgid "C-right: Rotate by -0.1 degree" msgstr "C-right: Kierrä -0.1 asteella" #: src/help_text.c:96 msgid "z : Horizontal flip" msgstr "z : Käännä ympäri vaakasuunnassa" #: src/help_text.c:99 msgid "e : Vertical flip" msgstr "e : Käännä ympäri pystysuunnassa" #: src/help_text.c:104 msgid "" "The first mouse button and the arrow keys will move the image unless the " "Control key is pressed. In which case the image will be rotated around the " "window center." msgstr "" "Ensimmäinen hiiren painike ja nuolinäppäimet siirtävät kuvaa jos Control-" "painike ei ole painettu. Jos Control-painike on painettu, kuva pyörii " "ikkunan keskipisteen ympäri." #: src/help_text.c:107 msgid "" "The mouse wheel zooms the image, and when you hold its button pressed at the " "same time it switches to the neighbouring image." msgstr "" #: src/help_text.c:110 msgid "" "You can also zoom by dragging the mouse vertically while holding Shift and " "the first button." msgstr "" "Voit myös rajata vetämällä hiirellä samalla kun pidät vaihtopainikkeen ja " "ensimmäisen painikkeen alhaalla." #: src/help_text.c:113 msgid "Space and Backspace act like n and p." msgstr "Välilyöntinäppäin ja peruutusnäppäin toimivat kuin n ja p" #: src/help_text.c:116 msgid "Draw a rectangle with the third button and gliv will zoom in it." msgstr "Piirrä neliö kolmannella painikkeella ja gliv rajautuu siihen." #: src/images_menus.c:82 msgid "Rebuilding:" msgstr "Rakennetaan uudelleen:" #: src/images_menus.c:209 src/images_menus.c:447 src/menus.c:517 msgid "Directories" msgstr "Hakemistot" #: src/images_menus.c:296 msgid "Current image directory..." msgstr "Nykyinen kuvahakemisto..." #: src/images_menus.c:363 src/menus.c:337 msgid "Rebuild this menu" msgstr "Rakenna tämä valikko uudelleen" #: src/images_menus.c:370 src/menus.c:338 msgid "Open thumbnails browser..." msgstr "Avaa pienoiskuvaselain..." #: src/include/about.h:6 msgid "GLiv version" msgstr "GLiv-versio" #: src/include/about.h:8 msgid "" "Use 'gliv --help' to show command line options.\n" "A quick help is accessible by typing 'h' or using the menu." msgstr "" "Käytä ”gliv --help” näyttämään komentorivivalitsimet.\n" "Pikaopaste on saatavilla kirjoittamalla ”h” tai käyttämällä valikkoa." #: src/include/about.h:10 msgid "See http://guichaz.free.fr/gliv for updates." msgstr "Hae päivityksiä osoitteesta http://guichaz.free.fr/gliv ." # Ensimmäinen %s-merkkijono sisältää sys_siglist-luettelosta signaalin numeron perusteella haetun merkkijonon. Esimerkiksi signaali SIGSEGV antaa merkkijonoksi "Segmentation fault" #: src/loading.c:81 #, c-format msgid "%s not while loading an image\n" msgstr "%s ei kun kuvaa ladataan\n" # Ensimmäinen %s-merkkijono sisältää sys_siglist-luettelosta signaalin numeron perusteella haetun merkkijonon. Esimerkiksi signaali SIGSEGV antaa merkkijonoksi "Segmentation fault" #: src/loading.c:83 #, c-format msgid "%s while loading %s\n" msgstr "%s ladattaessa tiedostoa %s\n" #: src/loading.c:102 msgid "alpha channel" msgstr "alfa-kanava" #: src/loading.c:158 #, c-format msgid "%s: unknown decompressed extension\n" msgstr "%s: tuntematon tiivistyksen purkauslaajennus\n" #: src/loading.c:165 #, c-format msgid "%s: image cannot be compressed twice\n" msgstr "%s: kuvaa ei voi tiivistää kahdesti\n" #: src/loading.c:188 #, c-format msgid "%s: unknown extension (none)\n" msgstr "%s: tuntematon laajennus (ei mitään)\n" #: src/loading.c:197 #, c-format msgid "%s: unknown extension\n" msgstr "%s: tuntematon laajennus\n" #: src/loading.c:291 src/next_image.c:280 #, c-format msgid "Cannot load %s" msgstr "Ei voi ladata tiedostoa %s" #: src/main.c:65 #, c-format msgid "Command line flags should be on or off, not %s\n" msgstr "Komentoriviliput pitäisi olla päällä tai pois päältä, ei %s\n" #: src/main.c:181 msgid "Cannot sort and shuffle at the same time\n" msgstr "Ei voi lajitella ja sekoittaa samanaikaisesti\n" #: src/main.c:221 msgid "" "The --client and --client-clear command line options are mutually exclusive\n" msgstr "" #: src/main.c:253 src/main.c:256 msgid "Do not ask again" msgstr "Älä kysy uudelleen" #: src/main.c:257 msgid "Options will be saved" msgstr "Valitsimet tallennetaan" #: src/main.c:279 msgid "Do you really want to quit GLiv?" msgstr "Haluatko todella poistua GLiv-ohjelmasta?" #: src/main.c:337 src/next_image.c:542 msgid "No image found" msgstr "Kuvaa ei löytynyt" #: src/menus.c:403 msgid "File" msgstr "Tiedosto" #: src/menus.c:404 msgid "Open..." msgstr "Avaa..." #: src/menus.c:405 msgid "Open directory..." msgstr "Avaa hakemisto..." #: src/menus.c:407 msgid "Load collection..." msgstr "Lataa kokoelma..." #: src/menus.c:408 msgid "Save collection..." msgstr "Tallenna kokoelma..." #: src/menus.c:410 msgid "Quit" msgstr "Poistu" #: src/menus.c:414 msgid "Commands" msgstr "Komennot" #: src/menus.c:415 msgid "Load previous image" msgstr "Lataa edellinen kuva" #: src/menus.c:416 msgid "Load next image" msgstr "Lataa seuraava kuva" #: src/menus.c:418 #, fuzzy msgid "Load first image" msgstr "Lataa seuraava kuva" #: src/menus.c:419 #, fuzzy msgid "Load last image" msgstr "Lataa seuraava kuva" #: src/menus.c:420 #, fuzzy msgid "Load random image" msgstr "Lataa seuraava kuva" #: src/menus.c:421 msgid "Reload the current image" msgstr "Lataa nykyinen kuva uudelleen" #: src/menus.c:423 msgid "Sort images list" msgstr "Lajittele kuvien luettelo" #: src/menus.c:424 msgid "Shuffle images list" msgstr "Sekoita kuvien luettelo" #: src/menus.c:426 msgid "Rebuild images menus" msgstr "Rakenna uudelleen kuvavalikot" #: src/menus.c:427 msgid "Stop rebuilding the images menu" msgstr "Pysäytä kuvavalikon uudelleenrakentaminen" #: src/menus.c:431 msgid "Toggle floating windows" msgstr "Vaihda kelluvia ikkunoita" #: src/menus.c:433 src/next_image.c:799 msgid "Start the slide show" msgstr "Aloita dia-esitys" #: src/menus.c:437 msgid "Remove the current file" msgstr "Poista nykyinen tiedosto" #: src/menus.c:440 msgid "Edit actions..." msgstr "Muokkaa toimintoja..." #: src/menus.c:441 msgid "Action on the current image" msgstr "Toiminto nykyiselle kuvalle" #: src/menus.c:443 msgid "Action on every image" msgstr "Toiminto jokaiselle kuvalle" #: src/menus.c:448 msgid "Undo" msgstr "Peru" #: src/menus.c:449 msgid "Redo" msgstr "Toista" #: src/menus.c:450 msgid "Clear history" msgstr "Tyhjennä historia" #: src/menus.c:452 msgid "Move" msgstr "Siirrä" #: src/menus.c:453 msgid "Move left" msgstr "Siirrä vasemmalle" #: src/menus.c:454 msgid "Move right" msgstr "Siirrä oikealle" #: src/menus.c:455 msgid "Move up" msgstr "Siirrä ylös" #: src/menus.c:456 msgid "Move down" msgstr "Siirrä alas" #: src/menus.c:459 msgid "Set position" msgstr "Aseta paikka" #: src/menus.c:467 msgid "Rotation" msgstr "Kierrä" #: src/menus.c:468 msgid "Rotate +90 deg" msgstr "Kierrä +90 astetta" #: src/menus.c:470 msgid "Rotate -90 deg" msgstr "Kierrä -90 astetta" #: src/menus.c:472 msgid "Rotate +0.1 deg" msgstr "Kierrä +0,1 astetta" #: src/menus.c:474 msgid "Rotate -0.1 deg" msgstr "Kierrä -0,1 astetta" #: src/menus.c:480 msgid "Horizontal flip" msgstr "Käännä ympäri vaakasuunnassa" #: src/menus.c:482 msgid "Vertical flip" msgstr "Käännä ympäri pystysuunnassa" #: src/menus.c:486 msgid "Maximize small image" msgstr "Maksimoi pieni kuva" #: src/menus.c:487 msgid "Scale down large image" msgstr "Skaalaa kookas kuva pienemmäksi" #: src/menus.c:489 msgid "Image fit window" msgstr "Kuvan sovitusikkuna" #: src/menus.c:492 msgid "Zoom in" msgstr "Rajaa" #: src/menus.c:493 msgid "Zoom out" msgstr "Avarra" #: src/menus.c:494 msgid "Fit width" msgstr "Sovita leveys" #: src/menus.c:495 msgid "Fit height" msgstr "Sovita korkeus" #: src/menus.c:499 msgid "Reset" msgstr "Palauta alkuasetukset" #: src/menus.c:504 msgid "Toggle Fullscreen mode" msgstr "Vaihda kokoruututila" #: src/menus.c:505 msgid "Toggle Menu Bar" msgstr "Vaihda valikkopalkki" #: src/menus.c:506 msgid "Toggle Status Bar" msgstr "Vaihda tilapalkki" #: src/menus.c:507 msgid "Toggle Scrollbars" msgstr "Vaihda vierintäpalkit" #: src/menus.c:508 msgid "Toggle Alpha checks" msgstr "Vaihda alfa-tarkistukset" #: src/menus.c:510 msgid "Hide the cursor" msgstr "Piilota kohdistin" #: src/menus.c:511 msgid "Set this window as server" msgstr "Aseta tämä ikkuna palvelimeksi" #: src/menus.c:513 msgid "Options..." msgstr "Valitsimet..." #: src/menus.c:532 msgid "Help" msgstr "Opaste" #: src/menus.c:533 msgid "About..." msgstr "Ohjelmasta..." #: src/menus.c:534 msgid "Controls..." msgstr "Ohjaimet..." #: src/next_image.c:143 msgid "First image" msgstr "Ensimmäinen kuva" #: src/next_image.c:146 msgid "Last image" msgstr "Viimeinen kuva" #: src/next_image.c:226 msgid "Loading errors" msgstr "Latausvirheet" #: src/next_image.c:239 msgid "The following errors occurred while loading the next image:\n" msgstr "Seuraavat virheet tapahtuivat seuraavaa kuvaa ladattaessa:\n" #: src/next_image.c:828 msgid "Stop the slide show" msgstr "Pysäytä dia-esitys" #: src/open_dialog.c:101 msgid "GLiv: Select a folder to open" msgstr "GLiv: Valitse avattava kansio" #: src/open_dialog.c:104 msgid "GLiv: Select files to open" msgstr "GLiv: Valitse avattavat tiedostot" #: src/open_dialog.c:129 src/rcfile.c:106 msgid "Try to load every file" msgstr "Yritä ladata kaikki tiedostot" # Aika onneton englanninkielinen teksti. Termi "directory traversal" on eräs hyökkäys, jolla krakkerit yrittävät murtautua järjestelmiin. Se tunnetaan myös dot dot slash-hyökkäyksenä. #: src/open_dialog.c:130 src/rcfile.c:118 msgid "Recursive directory traversal" msgstr "Rekursiivinen siirtyminen päähakemistoon" #: src/options.c:219 src/options.c:237 msgid "NONE" msgstr "EI MITÄÄN" #: src/options.c:222 #, c-format msgid "This configuration file has been read: %s" msgstr "Tämä asetustiedosto on luettu: %s" #: src/options.c:240 #, c-format msgid "This configuration file will be written: %s" msgstr "Tämä asetustiedosto kirjoitetaan: %s" #: src/rcfile.c:97 msgid "Start in full screen mode" msgstr "Aloita kokoruututilassa" #: src/rcfile.c:100 msgid "Display the menu bar" msgstr "Näytä valikkopalkki" #: src/rcfile.c:101 msgid "Display info about the image" msgstr "Näytä tietoja kuvasta" #: src/rcfile.c:102 msgid "Display scrollbars" msgstr "Näytä vierityspalkit" #: src/rcfile.c:104 msgid "Alpha checks in the background" msgstr "Alfa-tarkistukset taustalla" #: src/rcfile.c:117 msgid "Enable transitions" msgstr "Ota käyttöön siirtymät" #: src/rcfile.c:119 msgid "Keep transfo between images" msgstr "Säilytä siirtymä kuvien välillä" #: src/rcfile.c:122 msgid "Maximum framerate" msgstr "Maksimikehysnopeus" #: src/rcfile.c:123 msgid "Delay before hiding the cursor" msgstr "Viive ennen kohdistimen piilotusta" #: src/rcfile.c:124 msgid "History length" msgstr "Historiapituus" #: src/rcfile.c:125 msgid "Delay between images" msgstr "Viive kuvien välillä" #: src/rcfile.c:131 msgid "background: red channel" msgstr "tausta: punainen kanava" #: src/rcfile.c:132 msgid "background: green channel" msgstr "tausta: vihreä kanava" #: src/rcfile.c:133 msgid "background: blue channel" msgstr "tausta: sininen kanava" #: src/rcfile.c:134 msgid "alpha1 tile: red channel" msgstr "alfa1-laatta: punainen kanava" #: src/rcfile.c:135 msgid "alpha1 tile: green channel" msgstr "alfa1-laatta: vihreä kanava" #: src/rcfile.c:136 msgid "alpha1 tile: blue channel" msgstr "alfa1-laatta: sininen kanava" #: src/rcfile.c:137 msgid "alpha2 tile: red channel" msgstr "alfa2-laatta: punainen kanava" #: src/rcfile.c:138 msgid "alpha2 tile: green channel" msgstr "alfa2-laatta: vihreä kanava" #: src/rcfile.c:139 msgid "alpha2 tile: blue channel" msgstr "alpha2-laatta: sininen kanava" #: src/rcfile.c:238 #, c-format msgid "Unknown option in configuration file: %s\n" msgstr "Tuntematon valitsin asetustiedostossa: %s\n" #: src/rcfile.c:240 #, c-format msgid "Parse error in configuration file: %s\n" msgstr "Jäsenninvirhe asetustiedostossa: %s\n" #: src/rcfile.c:486 #, c-format msgid "" "# Configuration file for GLiv %s\n" "\n" msgstr "" "# Asetustiedosto ohjelmalle GLiv %s\n" "\n" #: src/rcfile.c:487 msgid "# Option names are case sensitive.\n" msgstr "# Valitsinnimet ovat kirjainkoosta riippuvia.\n" #: src/rcfile.c:488 msgid "" "# Option values are case insensitive.\n" "\n" msgstr "" "# Valitsinarvot ovat kirjainkoosta riippuvia.\n" "\n" #: src/thread.c:164 msgid "Cannot use a thread\n" msgstr "Ei voi käyttää säiettä\n" #: src/transition.c:261 #, c-format msgid "transition from `%s' to `%s'" msgstr "siirto kohteesta ”%s” kohteeseen ”%s”" #: src/tree_browser.c:80 msgid "Browser" msgstr "Selain" #: src/tree_browser.c:201 msgid "Thumb" msgstr "" #: src/tree_browser.c:222 msgid "Thumbnails browser" msgstr "Pienoiskuvaselain" #: src/windows.c:207 msgid "loading" msgstr "ladataan" #: src/windows.c:238 msgid "No image loaded" msgstr "Ei kuvaa ladattu" #: src/windows.c:239 msgid "width x height" msgstr "leveys x korkeus" #: src/windows.c:240 msgid "zoom% (angle)" msgstr "rajaus% (kulma)" #: src/windows.c:319 #, c-format msgid "%.3f%% (%.3f deg%s)" msgstr "%.3f%% (%.3f aste%s)" #: src/windows.c:363 #, c-format msgid "Ignoring initial geometry (%s) as fullscreen mode is requested\n" msgstr "" "Ei välitetä alkuperäisestä geometriasta (%s) koska on pyydetty " "kokoruututilaa\n" #: src/windows.c:375 #, c-format msgid "Cannot parse geometry: %s\n" msgstr "Ei voi jäsentää geometriaa: %s\n" #: src/windows.c:409 msgid "GLiv in fullscreen" msgstr "GLiv kokoruutukoossa" #~ msgid "" #~ "Your mouse wheel (if supported) will zoom the image and switch it when " #~ "you press the button." #~ msgstr "" #~ "Hiiresi vierintäpainike (jos tuettu) rajaa kuvan ja vaihtaa sen kun " #~ "painat painiketta." gliv-1.9.7/po/cs.po0000644000076400007640000006553511465576131011351 0ustar gg# Czech translation for GLiv. # Copyright (C) 2010 Free Software Foundation, Inc. # This file is distributed under the same license as the GLiv package. # Martin Vejmelka , 2010. msgid "" msgstr "" "Project-Id-Version: gliv 1.9.6\n" "Report-Msgid-Bugs-To: guichaz@gmail.com\n" "POT-Creation-Date: 2010-04-19 00:52+0200\n" "PO-Revision-Date: 2010-04-17 11:30+0100\n" "Last-Translator: Martin Vejmelka \n" "Language-Team: Czech \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: src/actions.c:121 msgid "Failed to create a new process" msgstr "Vytvoření nového procesu se nezdařilo" #: src/actions.c:126 #, c-format msgid "The action '%s' terminated with a non-null return code: %d" msgstr "Akce '%s' skončila s nenulovým návratovým kódem: %d" #: src/actions.c:230 msgid "Open in Gimp" msgstr "Otevřít v programu Gimp" #: src/actions.c:333 #, c-format msgid "The action name '%s' is already used" msgstr "Jméno akce '%s' je již použito" #: src/actions.c:463 src/glade_actions.c:165 src/tree_browser.c:211 msgid "Name" msgstr "Jméno" #: src/actions.c:464 src/glade_actions.c:172 msgid "Command" msgstr "Příkaz" #: src/collection.c:152 msgid "Choose a file to save the collection" msgstr "Vyberte soubor pro uložení kolekce" #: src/collection.c:159 #, c-format msgid "Overwrite \"%s\" ?" msgstr "Přepsat \"%s\"?" #: src/collection.c:238 msgid "Elapsed time" msgstr "Uplynulý čas" #: src/collection.c:239 msgid "Remaining time" msgstr "Zbývající čas" #: src/collection.c:240 msgid "Total time" msgstr "Celkový čas" #: src/collection.c:247 src/collection.c:637 #, c-format msgid "Saving collection: %s" msgstr "Ukládám kolekci: %s" #: src/collection.c:250 src/collection.c:1044 #, c-format msgid "Loading collection: %s" msgstr "Načítání kolekce: %s" #: src/collection.c:366 msgid "Inserting files..." msgstr "Vkládají se soubory..." #: src/collection.c:615 msgid "No images to put in a collection\n" msgstr "Žádne obrázky, které by mohly být dány do kolekce\n" #: src/collection.c:622 msgid "GLiv won't write a collection to a terminal\n" msgstr "GLiv nebude vypisovat kolekci do terminálu\n" #: src/collection.c:643 msgid "Standard output" msgstr "Standardní výstup" #: src/collection.c:1064 #, c-format msgid "%s is not a GLiv collection" msgstr "%s není GLiv kolekce" #: src/collection.c:1077 msgid "Choose a collection to load" msgstr "Vyberte kolekci, kterou chcete načíst" #: src/files_list.c:499 #, c-format msgid "" "Do you really want to delete this file?\n" "%s\n" msgstr "" "Opravdu chcete smazat tento soubor?\n" "%s\n" #: src/files_list.c:523 msgid "directory/file" msgstr "adresář/soubor" #: src/gl_widget.c:130 #, c-format msgid "Wrong URI format: %d (instead of 8)" msgstr "Chybný formát URI: %d (namísto 8)" #: src/gl_widget.c:135 #, c-format msgid "Wrong URI length: %d" msgstr "Chybná délka URI: %d" #: src/gl_widget.c:227 #, c-format msgid "Fatal error: GL_MAX_TEXTURE_SIZE = %d\n" msgstr "Fatální chyba: GL_MAX_TEXTURE_SIZE = %d\n" #: src/gl_widget.c:231 msgid "GL_MAX_TEXTURE_SIZE must be >= 64" msgstr "GL_MAX_TEXTURE_SIZE musí být >= 64" #: src/gl_widget.c:257 msgid "glXMakeCurrent() failed" msgstr "glXMakeCurrent() selhalo" #: src/gl_widget.c:310 msgid "OpenGL not supported" msgstr "OpenGL není podporováno" #: src/gl_widget.c:321 msgid "Cannot find an appropriate visual, try glxinfo(1)" msgstr "Nelze najít vhodné parametry zobrazení, zkuste glxinfo(1)" #: src/gl_widget.c:328 msgid "Cannot set the OpenGL capability" msgstr "Nelze nastavit OpenGL podporu" #: src/gl_widget.c:366 #, c-format msgid "Unknown OpenGL error (%d)" msgstr "Neznámá chyba OpenGL (%d)" #: src/gl_widget.c:370 #, c-format msgid "" "OpenGL error in %s() at %s:%d:\n" "%s" msgstr "" "Chyba OpenGL v %s() v %s:%d\n" "%s" #: src/glade_actions.c:43 msgid "Actions" msgstr "Akce" #: src/glade_actions.c:149 msgid "Edit Action" msgstr "Upravit akci" #: src/glade_actions.c:206 msgid "" "In the command field, printf like substitutions can be used:\n" "%d\t\tPath to the current file directory\n" "%b\t\tCurrent file name\n" "%f\t\tPath to the current file\n" "%%\t\tA litteral %\n" msgstr "" "V poli příkazu lze používat substituce typické pro příkaz printf:\n" "%d\t\tCesta do aktuálního adresáře\n" "%b\t\tJméno aktuálního souboru\n" "%f\t\tCesta k aktuálnímu souboru\n" "%%\t\tProstý znak %\n" #: src/glade_image_nr.c:45 src/menus.c:417 msgid "Load the Nth image..." msgstr "Načíst Ntý obrázek..." #: src/glade_image_nr.c:65 msgid "Enter an image number:" msgstr "Vložte číslo obrázku:" #: src/glade_image_nr.c:81 msgid "directory" msgstr "adresář" #: src/glade_image_nr.c:87 msgid "file" msgstr "soubor" #: src/glade_options.c:138 src/menus.c:503 msgid "Options" msgstr "Volby" #: src/glade_options.c:174 msgid "Save options now" msgstr "Uložit volby nyní" #: src/glade_options.c:178 src/rcfile.c:116 msgid "Save options when quitting" msgstr "Uložit volby při odchodu" #: src/glade_options.c:193 msgid "Configuration file" msgstr "Konfigurační soubor" #: src/glade_options.c:215 msgid "Scrollbars enabled" msgstr "Rolovací pruhy povoleny" #: src/glade_options.c:222 msgid "Fullscreen mode" msgstr "Celoobrazovkový režim" #: src/glade_options.c:229 msgid "Menu bar enabled" msgstr "Lišta menu povolena" #: src/glade_options.c:236 msgid "Status bar enabled" msgstr "Stavový řádek povolen" #: src/glade_options.c:243 src/rcfile.c:115 msgid "Confirm before quitting" msgstr "Potvrzení před ukončením" #: src/glade_options.c:250 src/rcfile.c:114 msgid "Automatic window resizing" msgstr "Automatická změna velikosti okna" #: src/glade_options.c:261 msgid "" "Delay before hiding the cursor\n" "0: feature disabled" msgstr "" "Prodleva před skrytím kurzoru\n" "0: vypnuto" #: src/glade_options.c:274 src/glade_options.c:587 src/glade_options.c:634 msgid "milliseconds" msgstr "milisekund" #: src/glade_options.c:279 msgid "Interface" msgstr "Rozhraní" #: src/glade_options.c:290 src/rcfile.c:99 msgid "Scale down large images" msgstr "Zmenšit měřítko velkých obrázků" #: src/glade_options.c:297 src/rcfile.c:98 msgid "Maximize small images" msgstr "Maximalizovat malé obrázky" #: src/glade_options.c:304 src/rcfile.c:108 msgid "Build mipmaps" msgstr "Sestavit mipmapy" #: src/glade_options.c:311 src/rcfile.c:105 msgid "Dithering" msgstr "Chvění" #: src/glade_options.c:318 src/rcfile.c:111 msgid "Keep only one image in memory" msgstr "Uchovávat v paměti pouze jeden obrázek" #: src/glade_options.c:325 src/rcfile.c:120 msgid "Check for OpenGL errors" msgstr "Kontrolovat chyby OpenGL" #: src/glade_options.c:332 src/rcfile.c:121 msgid "Enable OpenGL filtering" msgstr "Povolit OpenGL filtrování" #: src/glade_options.c:339 src/images_menus.c:330 src/images_menus.c:479 #: src/menus.c:521 msgid "Images" msgstr "Obrázky" #: src/glade_options.c:352 src/rcfile.c:107 msgid "Build images menus at startup" msgstr "Sestavit menu obrázků při startu" #: src/glade_options.c:357 src/rcfile.c:109 msgid "Make mnemonics for images menus" msgstr "Vytvořit mnemonické klávesové zkratky v menu obrázků" #: src/glade_options.c:362 src/rcfile.c:112 msgid "Show thumbnails in images menus" msgstr "Zobrazovat miniatury v menu obrázků" #: src/glade_options.c:371 src/glade_options.c:380 msgid "pixels" msgstr "pixelů" #: src/glade_options.c:389 src/rcfile.c:127 msgid "Thumbnail height" msgstr "Výška miniatury" #: src/glade_options.c:418 src/rcfile.c:126 msgid "Thumbnail width" msgstr "Šířka miniatury" #: src/glade_options.c:427 msgid "Images menus" msgstr "Menu obrázky" #: src/glade_options.c:442 src/rcfile.c:103 msgid "Zoom centered on pointer" msgstr "Střed zvětšení je na umístění kurzoru" #: src/glade_options.c:447 msgid "Keep transformations when switching images" msgstr "Zachovat transformace při přepnutí obrázků" #: src/glade_options.c:456 src/rcfile.c:130 msgid "Initial image position" msgstr "Počáteční pozice obrázku" #: src/glade_options.c:463 src/menus.c:460 msgid "Center" msgstr "Střed" #: src/glade_options.c:464 src/menus.c:461 msgid "Top left" msgstr "Vlevo nahoře" #: src/glade_options.c:465 src/menus.c:462 msgid "Top right" msgstr "Vpravo nahoře" #: src/glade_options.c:466 src/menus.c:463 msgid "Bottom left" msgstr "Vlevo dole" #: src/glade_options.c:467 src/menus.c:464 msgid "Bottom right" msgstr "Vpravo dole" #: src/glade_options.c:468 msgid "Same as previous" msgstr "Stejně jako předchozí" #: src/glade_options.c:495 msgid "" "History length\n" "0: feature disabled\n" "-1: infinite" msgstr "" "Délka historie\n" "0: vypnuto\n" "-1: nekonečná" #: src/glade_options.c:503 msgid "" "Maximum framerate\n" "-1: infinite" msgstr "" "Maximální frekvence snímků\n" "-1: neomezeno" #: src/glade_options.c:511 msgid "elements" msgstr "prvků" #: src/glade_options.c:519 msgid "fps" msgstr "snímku za sekundu" #: src/glade_options.c:527 src/menus.c:447 msgid "Transformations" msgstr "Transformace" #: src/glade_options.c:542 src/rcfile.c:113 msgid "Start with the slide show" msgstr "Zahájit prezentaci" #: src/glade_options.c:547 src/rcfile.c:110 msgid "Make the slide show loop" msgstr "Spouštět prezentaci ve smyčce" #: src/glade_options.c:556 src/rcfile.c:128 msgid "Last/First image notice time" msgstr "Doba uzpornění na poslední/první obrázek" #: src/glade_options.c:563 msgid "Delay between images during the slide show" msgstr "Prodleva mezi obrázky v průběhu prezentace" #: src/glade_options.c:580 msgid "seconds" msgstr "sekund" #: src/glade_options.c:608 msgid "Enable transitions between images" msgstr "Povolit přechod mezi obrázky" #: src/glade_options.c:621 src/rcfile.c:129 msgid "Transition duration" msgstr "Doba trvání přechodu" #: src/glade_options.c:639 msgid "" "Transitions obey the maximum framerate parameter in the Transformations tab" msgstr "" "Přechody musí respektovat maximální frekvenci nastavenou jako parametr v " "záložce Transformace" #: src/glade_options.c:644 msgid "Slide show" msgstr "Prezentace" #: src/glade_options.c:657 msgid "Alpha 2" msgstr "Alfa 2" #: src/glade_options.c:664 msgid "Alpha 1" msgstr "Alfa 1" #: src/glade_options.c:671 src/glade_options.c:706 msgid "Background" msgstr "Pozadí" #: src/glade_options.c:692 msgid "Alpha checks" msgstr "Kontrola alfy" #: src/help.c:102 src/help.c:109 msgid "GLiv help" msgstr "GLiv nápověda" #: src/help.c:163 msgid "GLiv about box" msgstr "GLiv dialog o programu" #: src/help_text.c:15 msgid "ESC, q : Quit" msgstr "ESC, q : Ukončit program" #: src/help_text.c:18 msgid "f : Full-screen/window" msgstr "f : Na celou obrazovku/v okně" #: src/help_text.c:21 msgid "+/=/- : Zoom in/in/out" msgstr "+/=/- : Přiblížit/Přiblížit/Oddálit" #: src/help_text.c:24 msgid "n/p : Next/previous image" msgstr "n/p : Následující/předchozí obrázek" #: src/help_text.c:27 msgid "Pause : Start/stop the slide show" msgstr "Pause : Spustit/zastavit prezentaci" #: src/help_text.c:30 msgid "l : Reduce the image to the window" msgstr "l : Zmenšit obrázek do okna" #: src/help_text.c:33 msgid "M : Maximize the image to the window" msgstr "M : Maximalizovat obrázek do okna" #: src/help_text.c:36 msgid "m : Make the image fit the window" msgstr "m : Přizpůsobit obrázek do okna" #: src/help_text.c:39 msgid "r : Reset position and size" msgstr "r : Vyresetovat pozici a rozměr" #: src/help_text.c:42 msgid "b : Toggle display of the menu bar" msgstr "b : Přepnout zobrazení lišty menu" #: src/help_text.c:45 msgid "i : Toggle display of the info bar" msgstr "i : Přepnout zobrazení informační lišty" #: src/help_text.c:48 msgid "s : Toggle display of the scrollbars" msgstr "s : Přepnout zobrazení rolovacích pruhů" #: src/help_text.c:51 msgid "a : Toggle display of the alpha checks" msgstr "a : Přepnout zobrazení rastru pro kontrolu alfa kanálu" #: src/help_text.c:54 msgid "h : Toggle display of the help box" msgstr "h : Přepnout zobrazení dialogu nápovědy" #: src/help_text.c:57 msgid "w : Toggle display of floating windows" msgstr "w : Přepnout zobrazení plovoucích oken" #: src/help_text.c:60 msgid "o : Display the open dialog" msgstr "o : Zobrazit dialog otevření" #: src/help_text.c:63 msgid "g : Display the image selector" msgstr "g : Zobrazit nástroj pro výběr obrázku" #: src/help_text.c:66 msgid "t : Display the options dialog" msgstr "t : Zobrazit dialog voleb" #: src/help_text.c:69 msgid "d : Hide the cursor" msgstr "d : Skrýt kurzor" #: src/help_text.c:72 msgid "u : Undo" msgstr "u : Zpět" #: src/help_text.c:75 msgid "y : Redo" msgstr "y : Znovu" #: src/help_text.c:78 msgid "c : Clear the history" msgstr "c : Vyčistit historii" #: src/help_text.c:81 msgid "Delete : Delete the current file" msgstr "Delete : Odstranit aktuální soubor" #: src/help_text.c:84 msgid "C-up : Rotate by +90 degrees" msgstr "C-nahoru : Otočit o +90 stupňů" #: src/help_text.c:87 msgid "C-down : Rotate by -90 degrees" msgstr "C-dolů : Otočit o -90 stupňů" #: src/help_text.c:90 msgid "C-left : Rotate by +0.1 degree" msgstr "C-vlevo : Otočit o +0.1 stupně" #: src/help_text.c:93 msgid "C-right: Rotate by -0.1 degree" msgstr "C-vpravo: Otočit o -0.1 stupně" #: src/help_text.c:96 msgid "z : Horizontal flip" msgstr "z : Horizontální překlopení" #: src/help_text.c:99 msgid "e : Vertical flip" msgstr "e : Vertikální překlopení" #: src/help_text.c:104 msgid "" "The first mouse button and the arrow keys will move the image unless the " "Control key is pressed. In which case the image will be rotated around the " "window center." msgstr "" "První tlačítko myši a šipky posunou obrázek, pokud není současně stisknutá " "klávesa Control. V takovém případě bude obrázek otočen podle středu okna." #: src/help_text.c:107 msgid "" "The mouse wheel zooms the image, and when you hold its button pressed at the " "same time it switches to the neighbouring image." msgstr "" "Kolečko myši přibližuje obrázek, pokud současně držíte stisknuté tlačítko, " "přepíná na sousední obrázek." #: src/help_text.c:110 msgid "" "You can also zoom by dragging the mouse vertically while holding Shift and " "the first button." msgstr "" "Přiblížení můžete provést také tažením myši vertikálně při současném držení " "klávesy Shift a prvního tlačítka myši." #: src/help_text.c:113 msgid "Space and Backspace act like n and p." msgstr "Mezerník a klávesa zpět se chovají jako n a p." #: src/help_text.c:116 msgid "Draw a rectangle with the third button and gliv will zoom in it." msgstr "" "Nakreslete obdélník pomocí třetího tlačítka myši a gliv provede přiblížení v " "této oblasti." #: src/images_menus.c:82 msgid "Rebuilding:" msgstr "Sestavuje se:" #: src/images_menus.c:209 src/images_menus.c:447 src/menus.c:517 msgid "Directories" msgstr "Adresáře" #: src/images_menus.c:296 msgid "Current image directory..." msgstr "Aktuální adresář obrázků..." #: src/images_menus.c:363 src/menus.c:337 msgid "Rebuild this menu" msgstr "Sestavit znovu toto menu" #: src/images_menus.c:370 src/menus.c:338 msgid "Open thumbnails browser..." msgstr "Otevřít prohlížeč miniatur..." #: src/include/about.h:6 msgid "GLiv version" msgstr "verze programu GLiv" #: src/include/about.h:8 msgid "" "Use 'gliv --help' to show command line options.\n" "A quick help is accessible by typing 'h' or using the menu." msgstr "" "Pro zobrazení voleb programu použijte 'gliv --help'.\n" "Rychlá nápověda je dostupná stisknutím klávesy 'h' nebo použitím menu." #: src/include/about.h:10 msgid "See http://guichaz.free.fr/gliv for updates." msgstr "Informace o aktualizacích naleznete na http://guichaz.free.fr/gliv." #: src/loading.c:81 #, c-format msgid "%s not while loading an image\n" msgstr "%s mimo průběh načítání obrázku\n" #: src/loading.c:83 #, c-format msgid "%s while loading %s\n" msgstr "%s při načítání %s\n" #: src/loading.c:102 msgid "alpha channel" msgstr "alfa kanál" #: src/loading.c:158 #, c-format msgid "%s: unknown decompressed extension\n" msgstr "%s: neznámá dekomprimovaná přípona\n" #: src/loading.c:165 #, c-format msgid "%s: image cannot be compressed twice\n" msgstr "%s: obrázek nemůže být komprimován dvakrát\n" #: src/loading.c:188 #, c-format msgid "%s: unknown extension (none)\n" msgstr "%s: neznámá přípona (žádná)\n" #: src/loading.c:197 #, c-format msgid "%s: unknown extension\n" msgstr "%s: neznámá přípona\n" #: src/loading.c:291 src/next_image.c:280 #, c-format msgid "Cannot load %s" msgstr "Nelze načíst %s" #: src/main.c:65 #, c-format msgid "Command line flags should be on or off, not %s\n" msgstr "Přepínače programu by měly být buď on nebo off, nikoliv %s\n" #: src/main.c:181 msgid "Cannot sort and shuffle at the same time\n" msgstr "Nelze současně míchat a třídit\n" #: src/main.c:221 msgid "" "The --client and --client-clear command line options are mutually exclusive\n" msgstr "Volby --client a --client-clear se vzájemně vylučují\n" #: src/main.c:253 src/main.c:256 msgid "Do not ask again" msgstr "Již se neptat" #: src/main.c:257 msgid "Options will be saved" msgstr "Volby budou uloženy" #: src/main.c:279 msgid "Do you really want to quit GLiv?" msgstr "Opravu chcete ukončit GLiv?" #: src/main.c:337 src/next_image.c:542 msgid "No image found" msgstr "Nebyl nalezen žádný obrázek" #: src/menus.c:403 msgid "File" msgstr "Soubor" #: src/menus.c:404 msgid "Open..." msgstr "Otevřít..." #: src/menus.c:405 msgid "Open directory..." msgstr "Otevřít adresář..." #: src/menus.c:407 msgid "Load collection..." msgstr "Načíst kolekci..." #: src/menus.c:408 msgid "Save collection..." msgstr "Uložit kolekci..." #: src/menus.c:410 msgid "Quit" msgstr "Ukončit" #: src/menus.c:414 msgid "Commands" msgstr "Příkazy" #: src/menus.c:415 msgid "Load previous image" msgstr "Načíst předchozí obrázek" #: src/menus.c:416 msgid "Load next image" msgstr "Načíst následující obrázek" #: src/menus.c:418 msgid "Load first image" msgstr "Načíst první obrázek" #: src/menus.c:419 msgid "Load last image" msgstr "Načíst poslední obrázek" #: src/menus.c:420 msgid "Load random image" msgstr "Načíst náhodný obrázek" #: src/menus.c:421 msgid "Reload the current image" msgstr "Načíst znovu aktuální obrázek" #: src/menus.c:423 msgid "Sort images list" msgstr "Setřídit seznam obrázků" #: src/menus.c:424 msgid "Shuffle images list" msgstr "Zamíchat seznam obrázků" #: src/menus.c:426 msgid "Rebuild images menus" msgstr "Sestavit znovu menu obrázků" #: src/menus.c:427 msgid "Stop rebuilding the images menu" msgstr "Zastavit sestavování menu obrázků" #: src/menus.c:431 msgid "Toggle floating windows" msgstr "Přepnout plovoucí okna" #: src/menus.c:433 src/next_image.c:799 msgid "Start the slide show" msgstr "Zahájit prezentaci" #: src/menus.c:437 msgid "Remove the current file" msgstr "Odstranit aktuální soubor" #: src/menus.c:440 msgid "Edit actions..." msgstr "Upravit akce..." #: src/menus.c:441 msgid "Action on the current image" msgstr "Akce pouze pro aktuální obrázek" #: src/menus.c:443 msgid "Action on every image" msgstr "Akce pro všechny obrázky" #: src/menus.c:448 msgid "Undo" msgstr "Zpět" #: src/menus.c:449 msgid "Redo" msgstr "Znovu" #: src/menus.c:450 msgid "Clear history" msgstr "Vyčistit historii" #: src/menus.c:452 msgid "Move" msgstr "Přesunout" #: src/menus.c:453 msgid "Move left" msgstr "Přesunout vlevo" #: src/menus.c:454 msgid "Move right" msgstr "Přesunout vpravo" #: src/menus.c:455 msgid "Move up" msgstr "Přesunout nahoru" #: src/menus.c:456 msgid "Move down" msgstr "Přesunout dolů" #: src/menus.c:459 msgid "Set position" msgstr "Nastavit pozici" #: src/menus.c:467 msgid "Rotation" msgstr "Otočení" #: src/menus.c:468 msgid "Rotate +90 deg" msgstr "Otočit +90 stupňů" #: src/menus.c:470 msgid "Rotate -90 deg" msgstr "Otočit -90 stupňů" #: src/menus.c:472 msgid "Rotate +0.1 deg" msgstr "Otočit +0.1 stupeň" #: src/menus.c:474 msgid "Rotate -0.1 deg" msgstr "Otočit -0.1 stupeň" #: src/menus.c:480 msgid "Horizontal flip" msgstr "Překlopit horizontálně" #: src/menus.c:482 msgid "Vertical flip" msgstr "Překlopit vertikálně" #: src/menus.c:486 msgid "Maximize small image" msgstr "Maximalizovat malý obrázek" #: src/menus.c:487 msgid "Scale down large image" msgstr "Přizpůsobit velký obrázek" #: src/menus.c:489 msgid "Image fit window" msgstr "Přizpůsobit obrázek do okna" #: src/menus.c:492 msgid "Zoom in" msgstr "Přiblížit" #: src/menus.c:493 msgid "Zoom out" msgstr "Oddálit" #: src/menus.c:494 msgid "Fit width" msgstr "Přizpůsobit na šířku" #: src/menus.c:495 msgid "Fit height" msgstr "Přizpůsobit na výšku" #: src/menus.c:499 msgid "Reset" msgstr "Resetovat" #: src/menus.c:504 msgid "Toggle Fullscreen mode" msgstr "Přepnout celoobrazovkový režim" #: src/menus.c:505 msgid "Toggle Menu Bar" msgstr "Přepnout lištu menu" #: src/menus.c:506 msgid "Toggle Status Bar" msgstr "Přepnout stavový řádek" #: src/menus.c:507 msgid "Toggle Scrollbars" msgstr "Přepnout rolovací pruhy" #: src/menus.c:508 msgid "Toggle Alpha checks" msgstr "Přepnout alfa kanály" #: src/menus.c:510 msgid "Hide the cursor" msgstr "Skrýt kurzor" #: src/menus.c:511 msgid "Set this window as server" msgstr "Nastavit toto okno jako server" #: src/menus.c:513 msgid "Options..." msgstr "Volby..." #: src/menus.c:532 msgid "Help" msgstr "Nápověda" #: src/menus.c:533 msgid "About..." msgstr "O programu..." #: src/menus.c:534 msgid "Controls..." msgstr "Ovládání..." #: src/next_image.c:143 msgid "First image" msgstr "První obrázek" #: src/next_image.c:146 msgid "Last image" msgstr "Poslední obrázek" #: src/next_image.c:226 msgid "Loading errors" msgstr "Chyby načítání" #: src/next_image.c:239 msgid "The following errors occurred while loading the next image:\n" msgstr "Při načítání dalšího obrázku došlo k následující chybě:\n" #: src/next_image.c:828 msgid "Stop the slide show" msgstr "Ukončit prezentaci" #: src/open_dialog.c:101 msgid "GLiv: Select a folder to open" msgstr "GLiv: Vybrat adresář pro otevření" #: src/open_dialog.c:104 msgid "GLiv: Select files to open" msgstr "GLiv: Vybrat soubor pro otevření" #: src/open_dialog.c:129 src/rcfile.c:106 msgid "Try to load every file" msgstr "Snažit se načíst všechny soubory" #: src/open_dialog.c:130 src/rcfile.c:118 msgid "Recursive directory traversal" msgstr "Rekurzivní průchod adresáři" #: src/options.c:219 src/options.c:237 msgid "NONE" msgstr "ŽÁDNÉ" #: src/options.c:222 #, c-format msgid "This configuration file has been read: %s" msgstr "Konfigurace byla přečtena ze souboru: %s" #: src/options.c:240 #, c-format msgid "This configuration file will be written: %s" msgstr "Konfigurace bude zapsána do souboru: %s" #: src/rcfile.c:97 msgid "Start in full screen mode" msgstr "Spouštět v celoobrazovkovém režimu" #: src/rcfile.c:100 msgid "Display the menu bar" msgstr "Zobrazovat lištu menu" #: src/rcfile.c:101 msgid "Display info about the image" msgstr "Zobrazovat informace o obrázku" #: src/rcfile.c:102 msgid "Display scrollbars" msgstr "Zobrazovat rolovací pruhy" #: src/rcfile.c:104 msgid "Alpha checks in the background" msgstr "Zobrazení rastru na pozadí pro kontrolu alfa kanálu" #: src/rcfile.c:117 msgid "Enable transitions" msgstr "Povolit přechody" #: src/rcfile.c:119 msgid "Keep transfo between images" msgstr "Při změně obrázku zachovat transformaci" #: src/rcfile.c:122 msgid "Maximum framerate" msgstr "Maximální frekvence snímků" #: src/rcfile.c:123 msgid "Delay before hiding the cursor" msgstr "Prodleva před skrytím kurzoru" #: src/rcfile.c:124 msgid "History length" msgstr "Délka historie" #: src/rcfile.c:125 msgid "Delay between images" msgstr "Prodleva mezi obrázky" #: src/rcfile.c:131 msgid "background: red channel" msgstr "pozadí: červený kanál" #: src/rcfile.c:132 msgid "background: green channel" msgstr "pozadí: zelený kanál" #: src/rcfile.c:133 msgid "background: blue channel" msgstr "pozadí: modrý kanál" #: src/rcfile.c:134 msgid "alpha1 tile: red channel" msgstr "oblast alfa1: červený kanál" #: src/rcfile.c:135 msgid "alpha1 tile: green channel" msgstr "oblast alfa1: zelený kanál" #: src/rcfile.c:136 msgid "alpha1 tile: blue channel" msgstr "oblast alfa1: modrý kanál" #: src/rcfile.c:137 msgid "alpha2 tile: red channel" msgstr "oblast alfa2: červený kanál" #: src/rcfile.c:138 msgid "alpha2 tile: green channel" msgstr "oblast alfa2: zelený kanál" #: src/rcfile.c:139 msgid "alpha2 tile: blue channel" msgstr "oblast alfa2: modrý kanál" #: src/rcfile.c:238 #, c-format msgid "Unknown option in configuration file: %s\n" msgstr "Neznámá volba v konfiguračním souboru: %s\n" #: src/rcfile.c:240 #, c-format msgid "Parse error in configuration file: %s\n" msgstr "Chyba při zpracovávání konfiguračního souboru: %s\n" #: src/rcfile.c:486 #, c-format msgid "" "# Configuration file for GLiv %s\n" "\n" msgstr "" "# Konfigurační soubor pro GLiv %s\n" "\n" #: src/rcfile.c:487 msgid "# Option names are case sensitive.\n" msgstr "# Jména voleb jsou citlivé na velikost písmen.\n" #: src/rcfile.c:488 msgid "" "# Option values are case insensitive.\n" "\n" msgstr "" "# Hodnoty voleb nejsou citlivé na velikost písmen.\n" "\n" #: src/thread.c:164 msgid "Cannot use a thread\n" msgstr "Vlákno nelze použít\n" #: src/transition.c:261 #, c-format msgid "transition from `%s' to `%s'" msgstr "přechod od `%s' k `%s'" #: src/tree_browser.c:80 msgid "Browser" msgstr "Prohlížeč" #: src/tree_browser.c:201 msgid "Thumb" msgstr "Náhled" #: src/tree_browser.c:222 msgid "Thumbnails browser" msgstr "Prohlížeč miniatur" #: src/windows.c:207 msgid "loading" msgstr "načítání" #: src/windows.c:238 msgid "No image loaded" msgstr "Není načten žádný obrázek" #: src/windows.c:239 msgid "width x height" msgstr "šířka x výška" #: src/windows.c:240 msgid "zoom% (angle)" msgstr "přiblížení% (úhel)" #: src/windows.c:319 #, c-format msgid "%.3f%% (%.3f deg%s)" msgstr "%.3f%% (%.3f stupňů%s)" #: src/windows.c:363 #, c-format msgid "Ignoring initial geometry (%s) as fullscreen mode is requested\n" msgstr "" "Počáteční geometrie je ignorována (%s), protože je požadován celoobrazovkový " "režim\n" #: src/windows.c:375 #, c-format msgid "Cannot parse geometry: %s\n" msgstr "Nelze detekovat geometrii: %s\n" #: src/windows.c:409 msgid "GLiv in fullscreen" msgstr "GLiv na celou obrazovku" #~ msgid "" #~ "Your mouse wheel (if supported) will zoom the image and switch it when " #~ "you press the button." #~ msgstr "" #~ "Kolečko myši (pokud je podporováno) přiblíží obrázek a přepne přiblížení " #~ "při stisknutí tlačítka." gliv-1.9.7/po/pt_BR.po0000644000076400007640000006760611465576131011753 0ustar gg# gliv: translation to Brazilian Portuguese (pt_BR) # Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc. # This file is distributed under the same license as the gliv package. # Alexandre Folle de Menezes , 2002, 2003, 2004. # msgid "" msgstr "" "Project-Id-Version: gliv 1.8\n" "Report-Msgid-Bugs-To: guichaz@gmail.com\n" "POT-Creation-Date: 2010-04-19 00:52+0200\n" "PO-Revision-Date: 2004-02-12 23:30-0200\n" "Last-Translator: Alexandre Folle de Menezes \n" "Language-Team: Brazilian Portuguese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8-bit\n" #: src/actions.c:121 msgid "Failed to create a new process" msgstr "Falha ao criar novo processo" #: src/actions.c:126 #, c-format msgid "The action '%s' terminated with a non-null return code: %d" msgstr "A ao '%s' retornou um cdigo no-nulo: %d" #: src/actions.c:230 msgid "Open in Gimp" msgstr "Abrir no Gimp" #: src/actions.c:333 #, c-format msgid "The action name '%s' is already used" msgstr "O nome de ao '%s' j est sendo usado" #: src/actions.c:463 src/glade_actions.c:165 src/tree_browser.c:211 msgid "Name" msgstr "Nome" #: src/actions.c:464 src/glade_actions.c:172 msgid "Command" msgstr "Comando" #: src/collection.c:152 msgid "Choose a file to save the collection" msgstr "Escolha um arquivo para salvar a coleo" #: src/collection.c:159 #, c-format msgid "Overwrite \"%s\" ?" msgstr "Sobrescrever \"%s\" ?" #: src/collection.c:238 msgid "Elapsed time" msgstr "Tempo decorrido" #: src/collection.c:239 msgid "Remaining time" msgstr "Tempo restante" #: src/collection.c:240 msgid "Total time" msgstr "Tempo total" #: src/collection.c:247 src/collection.c:637 #, c-format msgid "Saving collection: %s" msgstr "Salvando coleo: %s" #: src/collection.c:250 src/collection.c:1044 #, c-format msgid "Loading collection: %s" msgstr "Carregando coleo: %s" #: src/collection.c:366 msgid "Inserting files..." msgstr "Inserindo arquivos..." #: src/collection.c:615 msgid "No images to put in a collection\n" msgstr "Sem imagens para por numa coleo\n" #: src/collection.c:622 msgid "GLiv won't write a collection to a terminal\n" msgstr "GLiv no pode escrever a coleo num terminal\n" #: src/collection.c:643 msgid "Standard output" msgstr "Sada padro" #: src/collection.c:1064 #, c-format msgid "%s is not a GLiv collection" msgstr "%s no uma coleo GLiv" #: src/collection.c:1077 msgid "Choose a collection to load" msgstr "Escolha uma coleo para carregar" #: src/files_list.c:499 #, c-format msgid "" "Do you really want to delete this file?\n" "%s\n" msgstr "" "Quer realmente remover este arquivo?\n" "%s\n" #: src/files_list.c:523 msgid "directory/file" msgstr "diretrio/arquivo" #: src/gl_widget.c:130 #, c-format msgid "Wrong URI format: %d (instead of 8)" msgstr "Formato URI errado: %d (em vez de 8)" #: src/gl_widget.c:135 #, c-format msgid "Wrong URI length: %d" msgstr "Comprimento URI errado: %d" #: src/gl_widget.c:227 #, c-format msgid "Fatal error: GL_MAX_TEXTURE_SIZE = %d\n" msgstr "Erro fatal: GL_MAX_TEXTURE_SIZE = %d\n" #: src/gl_widget.c:231 msgid "GL_MAX_TEXTURE_SIZE must be >= 64" msgstr "GL_MAX_TEXTURE_SIZE deve ser >= 64" #: src/gl_widget.c:257 msgid "glXMakeCurrent() failed" msgstr "glXMakeCurrent() falhou" #: src/gl_widget.c:310 msgid "OpenGL not supported" msgstr "OpenGL no suportado" #: src/gl_widget.c:321 msgid "Cannot find an appropriate visual, try glxinfo(1)" msgstr "Impossvel encontrar um visual apropriado, tente glxinfo(1)" #: src/gl_widget.c:328 msgid "Cannot set the OpenGL capability" msgstr "Impossvel definir uma \"capability\" OpenGL" #: src/gl_widget.c:366 #, c-format msgid "Unknown OpenGL error (%d)" msgstr "Erro OpenGL desconhecido (%d)" #: src/gl_widget.c:370 #, c-format msgid "" "OpenGL error in %s() at %s:%d:\n" "%s" msgstr "" "Erro de OpenGL em %s() no %s:%d:\n" "%s" #: src/glade_actions.c:43 msgid "Actions" msgstr "Aes" #: src/glade_actions.c:149 msgid "Edit Action" msgstr "Editar Ao" #: src/glade_actions.c:206 msgid "" "In the command field, printf like substitutions can be used:\n" "%d\t\tPath to the current file directory\n" "%b\t\tCurrent file name\n" "%f\t\tPath to the current file\n" "%%\t\tA litteral %\n" msgstr "" "No campo de comando, pode-se usar substituies tipo printf:\n" "%d\t\tCaminho do diretrio do arquivo atual\n" "%b\t\tNome do arquivo atual\n" "%f\t\tCaminho do arquivo atual\n" "%%\t\tUm %% litteral\n" #: src/glade_image_nr.c:45 src/menus.c:417 msgid "Load the Nth image..." msgstr "Carregar n-sima imagem..." #: src/glade_image_nr.c:65 msgid "Enter an image number:" msgstr "Entre o nmero da imagem:" #: src/glade_image_nr.c:81 msgid "directory" msgstr "diretrio" #: src/glade_image_nr.c:87 msgid "file" msgstr "arquivo" #: src/glade_options.c:138 src/menus.c:503 msgid "Options" msgstr "Opes" #: src/glade_options.c:174 msgid "Save options now" msgstr "Salva as opes agora" #: src/glade_options.c:178 src/rcfile.c:116 msgid "Save options when quitting" msgstr "Salva as opes ao sair" #: src/glade_options.c:193 msgid "Configuration file" msgstr "Arquivo de configurao" #: src/glade_options.c:215 msgid "Scrollbars enabled" msgstr "Barras de rolagem habilitadas" #: src/glade_options.c:222 msgid "Fullscreen mode" msgstr "Modo tela cheia" #: src/glade_options.c:229 msgid "Menu bar enabled" msgstr "Barra de menu habilitada" #: src/glade_options.c:236 msgid "Status bar enabled" msgstr "Barra de status habilitada" #: src/glade_options.c:243 src/rcfile.c:115 msgid "Confirm before quitting" msgstr "Confirmar antes de sair" #: src/glade_options.c:250 src/rcfile.c:114 msgid "Automatic window resizing" msgstr "Redimensionamento automtico de janelas" #: src/glade_options.c:261 msgid "" "Delay before hiding the cursor\n" "0: feature disabled" msgstr "" "Pausa antes de esconder o cursor\n" "0: recurso desabilitado" #: src/glade_options.c:274 src/glade_options.c:587 src/glade_options.c:634 msgid "milliseconds" msgstr "milisegundos" #: src/glade_options.c:279 msgid "Interface" msgstr "Interface" #: src/glade_options.c:290 src/rcfile.c:99 msgid "Scale down large images" msgstr "Reduz imagens grandes" #: src/glade_options.c:297 src/rcfile.c:98 msgid "Maximize small images" msgstr "Maximiza imagens pequenas" #: src/glade_options.c:304 src/rcfile.c:108 msgid "Build mipmaps" msgstr "Constri Mipmaps" #: src/glade_options.c:311 src/rcfile.c:105 msgid "Dithering" msgstr "Dithering" #: src/glade_options.c:318 src/rcfile.c:111 msgid "Keep only one image in memory" msgstr "Manter apenas uma imagem na memria" #: src/glade_options.c:325 src/rcfile.c:120 msgid "Check for OpenGL errors" msgstr "Checar por erros do OpenGL" #: src/glade_options.c:332 src/rcfile.c:121 msgid "Enable OpenGL filtering" msgstr "Habilitar filtro OpenGL" #: src/glade_options.c:339 src/images_menus.c:330 src/images_menus.c:479 #: src/menus.c:521 msgid "Images" msgstr "Imagens" #: src/glade_options.c:352 src/rcfile.c:107 msgid "Build images menus at startup" msgstr "Constri os menus de imagens na inicializao" #: src/glade_options.c:357 src/rcfile.c:109 msgid "Make mnemonics for images menus" msgstr "Fazer mnemnicos para menus de imagens" #: src/glade_options.c:362 src/rcfile.c:112 msgid "Show thumbnails in images menus" msgstr "Mostra miniaturas em menus de imagens" #: src/glade_options.c:371 src/glade_options.c:380 msgid "pixels" msgstr "pixels" #: src/glade_options.c:389 src/rcfile.c:127 msgid "Thumbnail height" msgstr "Altura das miniaturas" #: src/glade_options.c:418 src/rcfile.c:126 msgid "Thumbnail width" msgstr "Largura das miniaturas" #: src/glade_options.c:427 msgid "Images menus" msgstr "Menus de imagens" #: src/glade_options.c:442 src/rcfile.c:103 msgid "Zoom centered on pointer" msgstr "Zoom centralizado no ponteiro" #: src/glade_options.c:447 msgid "Keep transformations when switching images" msgstr "Manter transformaes ao trocar imagens" #: src/glade_options.c:456 src/rcfile.c:130 msgid "Initial image position" msgstr "Posio inicial da imagem" #: src/glade_options.c:463 src/menus.c:460 msgid "Center" msgstr "Centro" #: src/glade_options.c:464 src/menus.c:461 msgid "Top left" msgstr "Em cima esquerda" #: src/glade_options.c:465 src/menus.c:462 msgid "Top right" msgstr "Em cima direita" #: src/glade_options.c:466 src/menus.c:463 msgid "Bottom left" msgstr "Em baixo esquerda" #: src/glade_options.c:467 src/menus.c:464 msgid "Bottom right" msgstr "Em baixo direita" #: src/glade_options.c:468 msgid "Same as previous" msgstr "Como a anterior" #: src/glade_options.c:495 msgid "" "History length\n" "0: feature disabled\n" "-1: infinite" msgstr "" "Tamanho do histrico\n" "0: recurso desabilitado\n" "-1: infinito" #: src/glade_options.c:503 msgid "" "Maximum framerate\n" "-1: infinite" msgstr "" "Framerate mximo\n" "-1: infinito" #: src/glade_options.c:511 msgid "elements" msgstr "elementos" #: src/glade_options.c:519 msgid "fps" msgstr "fps" #: src/glade_options.c:527 src/menus.c:447 msgid "Transformations" msgstr "Transformaes" #: src/glade_options.c:542 src/rcfile.c:113 msgid "Start with the slide show" msgstr "Comear o show de slides" #: src/glade_options.c:547 src/rcfile.c:110 msgid "Make the slide show loop" msgstr "Ciclar o show de slides" #: src/glade_options.c:556 src/rcfile.c:128 msgid "Last/First image notice time" msgstr "Tempo de indicao da primeira/ltima imagem" #: src/glade_options.c:563 msgid "Delay between images during the slide show" msgstr "Pausa entre imagens durante o show de slides" #: src/glade_options.c:580 msgid "seconds" msgstr "segundos" #: src/glade_options.c:608 msgid "Enable transitions between images" msgstr "Habilitar transies entre imagens" #: src/glade_options.c:621 src/rcfile.c:129 msgid "Transition duration" msgstr "Durao da transio" #: src/glade_options.c:639 msgid "" "Transitions obey the maximum framerate parameter in the Transformations tab" msgstr "" "Transies obedecem taxa de frames mxima na aba Transformaes" #: src/glade_options.c:644 msgid "Slide show" msgstr "Show de slides" #: src/glade_options.c:657 msgid "Alpha 2" msgstr "Alpha 2" #: src/glade_options.c:664 msgid "Alpha 1" msgstr "Alpha 1" #: src/glade_options.c:671 src/glade_options.c:706 msgid "Background" msgstr "Plano de fundo" #: src/glade_options.c:692 msgid "Alpha checks" msgstr "Verificaes alpha" #: src/help.c:102 src/help.c:109 msgid "GLiv help" msgstr "Ajuda GLiv" #: src/help.c:163 msgid "GLiv about box" msgstr "Sobre o GLiv" #: src/help_text.c:15 msgid "ESC, q : Quit" msgstr "ESC, q : Sair" #: src/help_text.c:18 msgid "f : Full-screen/window" msgstr "f : Tela-cheia/janela" #: src/help_text.c:21 msgid "+/=/- : Zoom in/in/out" msgstr "+/=/- : Aumentar/aumentar/diminuir zoom" #: src/help_text.c:24 msgid "n/p : Next/previous image" msgstr "n/p : Prxima/prvia imagem" #: src/help_text.c:27 msgid "Pause : Start/stop the slide show" msgstr "Pausa : Iniciar/parar o show de slides" #: src/help_text.c:30 msgid "l : Reduce the image to the window" msgstr "l : Reduz a imagem para a janela" #: src/help_text.c:33 msgid "M : Maximize the image to the window" msgstr "M : Maximiza a imagem para a janela" #: src/help_text.c:36 msgid "m : Make the image fit the window" msgstr "M : Faz a imagem caber na janela" #: src/help_text.c:39 msgid "r : Reset position and size" msgstr "r : Reseta posio e tamanho" #: src/help_text.c:42 msgid "b : Toggle display of the menu bar" msgstr "b : Alterna exibio da barra de menu" #: src/help_text.c:45 msgid "i : Toggle display of the info bar" msgstr "i : Alterna exibio da barra de informaes" #: src/help_text.c:48 msgid "s : Toggle display of the scrollbars" msgstr "s : Alterna exibio das barras de rolagem" #: src/help_text.c:51 msgid "a : Toggle display of the alpha checks" msgstr "a : Alterna exibio das verificaes alpha" #: src/help_text.c:54 msgid "h : Toggle display of the help box" msgstr "h : Alterna exibio da caixa de ajuda" #: src/help_text.c:57 msgid "w : Toggle display of floating windows" msgstr "w : Alterna exibio de janelas flutuantes" #: src/help_text.c:60 msgid "o : Display the open dialog" msgstr "o : Mostra a caixa de abertura de arquivo" #: src/help_text.c:63 msgid "g : Display the image selector" msgstr "g : Mostra a caixa de seleo de arquivo" #: src/help_text.c:66 msgid "t : Display the options dialog" msgstr "t : Mostra a caixa de opes" #: src/help_text.c:69 msgid "d : Hide the cursor" msgstr "d : Esconde o cursor" #: src/help_text.c:72 msgid "u : Undo" msgstr "u : Desfazer" #: src/help_text.c:75 msgid "y : Redo" msgstr "y : Refazer" #: src/help_text.c:78 msgid "c : Clear the history" msgstr "c : Limpa o histrico" #: src/help_text.c:81 msgid "Delete : Delete the current file" msgstr "Delete : Remove o arquivo atual" #: src/help_text.c:84 msgid "C-up : Rotate by +90 degrees" msgstr "C-up : Rotaciona +90 graus" #: src/help_text.c:87 msgid "C-down : Rotate by -90 degrees" msgstr "C-down : Rotaciona -90 graus" #: src/help_text.c:90 msgid "C-left : Rotate by +0.1 degree" msgstr "C-left : Rotaciona +0.1 grau" #: src/help_text.c:93 msgid "C-right: Rotate by -0.1 degree" msgstr "C-right: Rotaciona -0.1 grau" #: src/help_text.c:96 msgid "z : Horizontal flip" msgstr "z : Flip horizontal" #: src/help_text.c:99 msgid "e : Vertical flip" msgstr "e : Flip vertical" #: src/help_text.c:104 msgid "" "The first mouse button and the arrow keys will move the image unless the " "Control key is pressed. In which case the image will be rotated around the " "window center." msgstr "" "O primeiro boto do mouse e as teclas do cursor movem a imagem a no ser que " "a tecla Control esteja pressionada. Neste caso a imagem ir girar em torno " "do ventro da janela." #: src/help_text.c:107 msgid "" "The mouse wheel zooms the image, and when you hold its button pressed at the " "same time it switches to the neighbouring image." msgstr "" "A roda do mouse d zoom na imagem, e ao manter o seu boto pressionado ao " "mesmo tempo ela troca para a imagem vizinha." #: src/help_text.c:110 msgid "" "You can also zoom by dragging the mouse vertically while holding Shift and " "the first button." msgstr "" "Voc pode fazer zoom tambm arrastando o mouse verticalmente enquanto " "pressiona Shift e o primeiro boto" #: src/help_text.c:113 msgid "Space and Backspace act like n and p." msgstr "Espao e Backspace agem como 'n' e 'p'" #: src/help_text.c:116 msgid "Draw a rectangle with the third button and gliv will zoom in it." msgstr "Desenhe um retngulo com o terceiro boto e o GLiv ir ampliar a rea" #: src/images_menus.c:82 msgid "Rebuilding:" msgstr "Reconstruindo:" #: src/images_menus.c:209 src/images_menus.c:447 src/menus.c:517 msgid "Directories" msgstr "Diretrios" #: src/images_menus.c:296 msgid "Current image directory..." msgstr "Diretrio atual..." #: src/images_menus.c:363 src/menus.c:337 msgid "Rebuild this menu" msgstr "Refaz este menu" #: src/images_menus.c:370 src/menus.c:338 msgid "Open thumbnails browser..." msgstr "Abre o navegador de miniaturas..." #: src/include/about.h:6 msgid "GLiv version" msgstr "GLiv verso" #: src/include/about.h:8 msgid "" "Use 'gliv --help' to show command line options.\n" "A quick help is accessible by typing 'h' or using the menu." msgstr "" "Use 'gliv --help' para obter as opes de linha de comando.\n" "Uma ajuda resumida est disponvel digitando 'h' ou usando o menu." #: src/include/about.h:10 msgid "See http://guichaz.free.fr/gliv for updates." msgstr "Veja http://guichaz.free.fr/gliv para atualizaes." #: src/loading.c:81 #, c-format msgid "%s not while loading an image\n" msgstr "%s no enquanto carrega uma imagem\n" #: src/loading.c:83 #, c-format msgid "%s while loading %s\n" msgstr "%s ao carregar %s\n" #: src/loading.c:102 msgid "alpha channel" msgstr "canal alpha" #: src/loading.c:158 #, c-format msgid "%s: unknown decompressed extension\n" msgstr "%s: extenso descomprimida desconhecida\n" #: src/loading.c:165 #, c-format msgid "%s: image cannot be compressed twice\n" msgstr "%s: uma imagem no pode ser comprimida duas vezes\n" #: src/loading.c:188 #, c-format msgid "%s: unknown extension (none)\n" msgstr "%s: extenso desconhecida (nenhuma)\n" #: src/loading.c:197 #, c-format msgid "%s: unknown extension\n" msgstr "%s: extenso desconhecida\n" #: src/loading.c:291 src/next_image.c:280 #, c-format msgid "Cannot load %s" msgstr "No pude carregar %s" #: src/main.c:65 #, c-format msgid "Command line flags should be on or off, not %s\n" msgstr "Parmetros de linha de comando devem ser \"on\" ou \"off\", no %s\n" #: src/main.c:181 msgid "Cannot sort and shuffle at the same time\n" msgstr "No posso ordenar e embaralhar ao mesmo tempo\n" #: src/main.c:221 msgid "" "The --client and --client-clear command line options are mutually exclusive\n" msgstr "" "As opes --client e --client-clear so mutualmente exclusivas\n" #: src/main.c:253 src/main.c:256 msgid "Do not ask again" msgstr "No perguntar de novo" #: src/main.c:257 msgid "Options will be saved" msgstr "Opes sero salvas" #: src/main.c:279 msgid "Do you really want to quit GLiv?" msgstr "Quer realmente sair do GLiv?" #: src/main.c:337 src/next_image.c:542 msgid "No image found" msgstr "Nenhuma imagem encontrada" #: src/menus.c:403 msgid "File" msgstr "Arquivo" #: src/menus.c:404 msgid "Open..." msgstr "Abrir..." #: src/menus.c:405 msgid "Open directory..." msgstr "Abir diretrio..." #: src/menus.c:407 msgid "Load collection..." msgstr "Carregar coleo..." #: src/menus.c:408 msgid "Save collection..." msgstr "Salvar coleo..." #: src/menus.c:410 msgid "Quit" msgstr "Sair" #: src/menus.c:414 msgid "Commands" msgstr "Comandos" #: src/menus.c:415 msgid "Load previous image" msgstr "Carregar imagem anterior" #: src/menus.c:416 msgid "Load next image" msgstr "Carregar prxima imagem" #: src/menus.c:418 msgid "Load first image" msgstr "Carregar primeira imagem" #: src/menus.c:419 msgid "Load last image" msgstr "Carregar ltima imagem" #: src/menus.c:420 msgid "Load random image" msgstr "Carregar imagem aleatria" #: src/menus.c:421 msgid "Reload the current image" msgstr "Re-carregar imagem atual" #: src/menus.c:423 msgid "Sort images list" msgstr "Ordenar lista de imagens" #: src/menus.c:424 msgid "Shuffle images list" msgstr "Embaralhar lista de imagens" #: src/menus.c:426 msgid "Rebuild images menus" msgstr "Refazer menus de imagens" #: src/menus.c:427 msgid "Stop rebuilding the images menu" msgstr "Parar reconstruo dos menus de imagens" #: src/menus.c:431 msgid "Toggle floating windows" msgstr "Alternar janelas flutuantes" #: src/menus.c:433 src/next_image.c:799 msgid "Start the slide show" msgstr "Iniciar o show de slides" #: src/menus.c:437 msgid "Remove the current file" msgstr "Remover o arquivo atual" #: src/menus.c:440 msgid "Edit actions..." msgstr "Editar aes..." #: src/menus.c:441 msgid "Action on the current image" msgstr "Ao na imagem atual" #: src/menus.c:443 msgid "Action on every image" msgstr "Ao em todas as imagens" #: src/menus.c:448 msgid "Undo" msgstr "Desfazer" #: src/menus.c:449 msgid "Redo" msgstr "Refazer" #: src/menus.c:450 msgid "Clear history" msgstr "Limpar histrico" #: src/menus.c:452 msgid "Move" msgstr "Mover" #: src/menus.c:453 msgid "Move left" msgstr "Mover para esquerda" #: src/menus.c:454 msgid "Move right" msgstr "Mover para direita" #: src/menus.c:455 msgid "Move up" msgstr "Mover para cima" #: src/menus.c:456 msgid "Move down" msgstr "Mover para baixo" #: src/menus.c:459 msgid "Set position" msgstr "Ajustar posio" #: src/menus.c:467 msgid "Rotation" msgstr "Rotao" #: src/menus.c:468 msgid "Rotate +90 deg" msgstr "Rotacionar +90 graus" #: src/menus.c:470 msgid "Rotate -90 deg" msgstr "Rotacionar -90 graus" #: src/menus.c:472 msgid "Rotate +0.1 deg" msgstr "Rotacionar +0.1 grau" #: src/menus.c:474 msgid "Rotate -0.1 deg" msgstr "Rotacionar -0.1 grau" #: src/menus.c:480 msgid "Horizontal flip" msgstr "Flip horizontal" #: src/menus.c:482 msgid "Vertical flip" msgstr "Flip vertical" #: src/menus.c:486 msgid "Maximize small image" msgstr "Maximizar imagem pequena" #: src/menus.c:487 msgid "Scale down large image" msgstr "Diminuir imagem grande" #: src/menus.c:489 msgid "Image fit window" msgstr "Ajustar a imagem janela" #: src/menus.c:492 msgid "Zoom in" msgstr "Mais zoom" #: src/menus.c:493 msgid "Zoom out" msgstr "Menos zoom" #: src/menus.c:494 msgid "Fit width" msgstr "Ajustar largura" #: src/menus.c:495 msgid "Fit height" msgstr "Ajustar altura" #: src/menus.c:499 msgid "Reset" msgstr "Restaurar" #: src/menus.c:504 msgid "Toggle Fullscreen mode" msgstr "Alternar modo Tela-Cheia" #: src/menus.c:505 msgid "Toggle Menu Bar" msgstr "Alternar Barra de Menu" #: src/menus.c:506 msgid "Toggle Status Bar" msgstr "Alternar Barra de Status" #: src/menus.c:507 msgid "Toggle Scrollbars" msgstr "Alternar Barras de Rolagem" #: src/menus.c:508 msgid "Toggle Alpha checks" msgstr "Alternar verificao Alpha" #: src/menus.c:510 msgid "Hide the cursor" msgstr "Esconder o cursor" #: src/menus.c:511 msgid "Set this window as server" msgstr "Definir esta janela como servidor" #: src/menus.c:513 msgid "Options..." msgstr "Opes..." #: src/menus.c:532 msgid "Help" msgstr "Ajuda" #: src/menus.c:533 msgid "About..." msgstr "Sobre..." #: src/menus.c:534 msgid "Controls..." msgstr "Controles..." #: src/next_image.c:143 msgid "First image" msgstr "Primeira imagem" #: src/next_image.c:146 msgid "Last image" msgstr "ltima imagem" #: src/next_image.c:226 msgid "Loading errors" msgstr "Erros ao carregar" #: src/next_image.c:239 msgid "The following errors occurred while loading the next image:\n" msgstr "Os sequintes erros ocorreram ao carregar a prxima imagem:\n" #: src/next_image.c:828 msgid "Stop the slide show" msgstr "Parar o show de slides" #: src/open_dialog.c:101 msgid "GLiv: Select a folder to open" msgstr "GLiv: Selecione um diretrio para abrir" #: src/open_dialog.c:104 msgid "GLiv: Select files to open" msgstr "GLiv: Selecione arquivos para abrir" #: src/open_dialog.c:129 src/rcfile.c:106 msgid "Try to load every file" msgstr "Tenta carregar todos os arquivos" #: src/open_dialog.c:130 src/rcfile.c:118 msgid "Recursive directory traversal" msgstr "Varre diretrio" #: src/options.c:219 src/options.c:237 msgid "NONE" msgstr "NENHUM" #: src/options.c:222 #, c-format msgid "This configuration file has been read: %s" msgstr "Esse arquivo de configurao foi lido: %s" #: src/options.c:240 #, c-format msgid "This configuration file will be written: %s" msgstr "Esse arquivo de configurao ser gravado: %s" #: src/rcfile.c:97 msgid "Start in full screen mode" msgstr "Iniciar no modo tela cheia" #: src/rcfile.c:100 msgid "Display the menu bar" msgstr "Mostrar a barra do menu" #: src/rcfile.c:101 msgid "Display info about the image" msgstr "Mostrar informao sobre a imagem" #: src/rcfile.c:102 msgid "Display scrollbars" msgstr "Mostrar barras de rolagem" #: src/rcfile.c:104 msgid "Alpha checks in the background" msgstr "Verificar alpha no plano de fundo" #: src/rcfile.c:117 msgid "Enable transitions" msgstr "Habilita transies" #: src/rcfile.c:119 msgid "Keep transfo between images" msgstr "Manter transformao entre imagens" #: src/rcfile.c:122 msgid "Maximum framerate" msgstr "Framerate mximo" #: src/rcfile.c:123 msgid "Delay before hiding the cursor" msgstr "Pausa antes de esconder o cursor" #: src/rcfile.c:124 msgid "History length" msgstr "Tamanho do histrico" #: src/rcfile.c:125 msgid "Delay between images" msgstr "Pausa entre imagens" #: src/rcfile.c:131 msgid "background: red channel" msgstr "plano de fundo: canal vermelho" #: src/rcfile.c:132 msgid "background: green channel" msgstr "plano de fundo: canal verde" #: src/rcfile.c:133 msgid "background: blue channel" msgstr "plano de fundo: canal azul" #: src/rcfile.c:134 msgid "alpha1 tile: red channel" msgstr "bloco alpha1: canal vermelho" #: src/rcfile.c:135 msgid "alpha1 tile: green channel" msgstr "bloco alpha1: canal verde" #: src/rcfile.c:136 msgid "alpha1 tile: blue channel" msgstr "bloco alpha1: canal azul" #: src/rcfile.c:137 msgid "alpha2 tile: red channel" msgstr "bloco alpha2: canal vermelho" #: src/rcfile.c:138 msgid "alpha2 tile: green channel" msgstr "bloco alpha2: canal verde" #: src/rcfile.c:139 msgid "alpha2 tile: blue channel" msgstr "bloco alpha2: canal azul" #: src/rcfile.c:238 #, c-format msgid "Unknown option in configuration file: %s\n" msgstr "Opo desconhecida no arquivo de configuraao: %s\n" #: src/rcfile.c:240 #, c-format msgid "Parse error in configuration file: %s\n" msgstr "Erro de interpretao no arquivo de configurao: %s\n" #: src/rcfile.c:486 #, c-format msgid "" "# Configuration file for GLiv %s\n" "\n" msgstr "" "# Arquivos de configurao para o GLiv %s\n" "\n" #: src/rcfile.c:487 msgid "# Option names are case sensitive.\n" msgstr "# Nomes de opo diferenciam maisculas/minsculas.\n" #: src/rcfile.c:488 msgid "" "# Option values are case insensitive.\n" "\n" msgstr "" "# Valores de opo no diferenciam maisculas/minsculas.\n" "\n" #: src/thread.c:164 msgid "Cannot use a thread\n" msgstr "No pude usar uma \"thread\"\n" #: src/transition.c:261 #, c-format msgid "transition from `%s' to `%s'" msgstr "transio de `%s' para `%s'" #: src/tree_browser.c:80 msgid "Browser" msgstr "Navegador" #: src/tree_browser.c:201 msgid "Thumb" msgstr "Miniatura" #: src/tree_browser.c:222 msgid "Thumbnails browser" msgstr "Navegador de miniaturas" #: src/windows.c:207 msgid "loading" msgstr "carregando" #: src/windows.c:238 msgid "No image loaded" msgstr "Nenhuma imagem carregada" #: src/windows.c:239 msgid "width x height" msgstr "largura x altura" #: src/windows.c:240 msgid "zoom% (angle)" msgstr "zoom% (ngulo)" #: src/windows.c:319 #, c-format msgid "%.3f%% (%.3f deg%s)" msgstr "%.3f%% (%.3f graus%s)" #: src/windows.c:363 #, c-format msgid "Ignoring initial geometry (%s) as fullscreen mode is requested\n" msgstr "Ignorando tamanho inicial (%s) pois foi pedido modo tela-cheia\n" #: src/windows.c:375 #, c-format msgid "Cannot parse geometry: %s\n" msgstr "No pude entender o tamanho: %s\n" #: src/windows.c:409 msgid "GLiv in fullscreen" msgstr "GLiv em tela cheia" #~ msgid "" #~ "Your mouse wheel (if supported) will zoom the image and switch it when " #~ "you press the button." #~ msgstr "" #~ "A roda do mouse (se suportada) ir aumentar a imagem e troc-la ao ser " #~ "pressionada." #~ msgid "No automatic image centering" #~ msgstr "Sem centralizao automtica de imagem" #, fuzzy #~ msgid "You'll have to save the options" #~ msgstr "Escolha um arquivo para salvar a coleo" #~ msgid "Scale down larges images" #~ msgstr "Reduzir imagens grandes" #~ msgid "Loading GLiv collection" #~ msgstr "Carregando coleo GLiv" #, fuzzy #~ msgid "Add all files in the directory" #~ msgstr "Todos os arquivos no diretrio" #, fuzzy #~ msgid "Images list" #~ msgstr "Ordenar lista de imagens" #~ msgid "Shuffle" #~ msgstr "Embaralhar" #~ msgid "no alpha channel" #~ msgstr "nenhuma canal alpha" #~ msgid "" #~ "The following OpenGL errors have occured:\n" #~ "%s" #~ msgstr "" #~ "Os erros OpenGL seguintes ocorreram:\n" #~ "%s" #~ msgid "Click the window to hide it." #~ msgstr "Clique na janela para escond-la." #~ msgid "" #~ "# Note: 'maximize = True' or 'scale-down = True' implies 'full-screen = " #~ "True'.\n" #~ "\n" #~ msgstr "" #~ "# Nota: 'maximize = True' ou 'scale-down = True' implica em'full-screen = " #~ "True'.\n" #~ "\n" #~ msgid "OK" #~ msgstr "OK" #~ msgid "Cancel" #~ msgstr "Cancela" #~ msgid "%s: ImageMagick not found\n" #~ msgstr "%s: ImageMagick no encontrado\n" #~ msgid "Warning: the ImageMagick process is still running\n" #~ msgstr "Aviso: o processo do ImageMagick est rodando ainda\n" #~ msgid "This directory can be deleted if GLiv is not running" #~ msgstr "Este diretrio pode ser deletado se o GLiv no est rodando" #~ msgid "Background and alpha checks color selection" #~ msgstr "Plano de fundo e alpha verificam seleo de cores" gliv-1.9.7/compile0000755000076400007640000000717311465576131011336 0ustar gg#! /bin/sh # Wrapper for compilers which do not understand `-c -o'. scriptversion=2005-05-14.22 # Copyright (C) 1999, 2000, 2003, 2004, 2005 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, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 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. # 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 -e 's|^.*/||' -e '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 mv "$cofile" "$ofile" elif test -f "${cofile}bj"; then 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-end: "$" # End: gliv-1.9.7/gliv.spec.in0000644000076400007640000000206511465576131012175 0ustar gg%define ver @VERSION@ %define rel 1 %define prefix @prefix@ Summary: Graphics file browser utility. Name: gliv Version: %ver Release: %rel License: GPL Group: Applications/Multimedia Source: http://guichaz.free.fr/gliv/files/%{name}-%{ver}.tar.bz2 URL: http://guichaz.free.fr/gliv Vendor: Guillaume Chazarain Packager: Matteo Catanese BuildRoot: /var/tmp/%{name}-%{version}-root Requires: gtk2 >= 2.6.0 Requires: gtkglext >= 0.7.0 %description GLiv is an OpenGL image viewer, image loading is done via Gdk-pixbuf bundled with GTK+-2.6, rendering with OpenGL and the graphical user interface uses GTK+ with GtkGLExt. GLiv is very fast and smooth at rotating, panning and zooming if you have an OpenGL accelerated graphics board. %prep %setup -q %build %configure make %install rm -rf %makeinstall %clean rm -rf %files %defattr(-, root, root) %doc README COPYING NEWS THANKS %{prefix}/bin/%{name} %{_mandir}/man1/* %{_mandir}/*/man1/* %{_datadir}/locale/*/*/* %{_datadir}/pixmaps/* /usr/share/applications/* gliv-1.9.7/intl/0000755000076400007640000000000011465576131010716 5ustar gggliv-1.9.7/intl/wprintf-parse.h0000644000076400007640000000436211465576131013675 0ustar gg/* Parse printf format string. Copyright (C) 1999, 2002-2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _WPRINTF_PARSE_H #define _WPRINTF_PARSE_H #include "printf-args.h" /* Flags */ #define FLAG_GROUP 1 /* ' flag */ #define FLAG_LEFT 2 /* - flag */ #define FLAG_SHOWSIGN 4 /* + flag */ #define FLAG_SPACE 8 /* space flag */ #define FLAG_ALT 16 /* # flag */ #define FLAG_ZERO 32 /* arg_index value indicating that no argument is consumed. */ #define ARG_NONE (~(size_t)0) /* A parsed directive. */ typedef struct { const wchar_t* dir_start; const wchar_t* dir_end; int flags; const wchar_t* width_start; const wchar_t* width_end; size_t width_arg_index; const wchar_t* precision_start; const wchar_t* precision_end; size_t precision_arg_index; wchar_t conversion; /* d i o u x X f e E g G c s p n U % but not C S */ size_t arg_index; } wchar_t_directive; /* A parsed format string. */ typedef struct { size_t count; wchar_t_directive *dir; size_t max_width_length; size_t max_precision_length; } wchar_t_directives; /* Parses the format string. Fills in the number N of directives, and fills in directives[0], ..., directives[N-1], and sets directives[N].dir_start to the end of the format string. Also fills in the arg_type fields of the arguments and the needed count of arguments. */ #ifdef STATIC STATIC #else extern #endif int wprintf_parse (const wchar_t *format, wchar_t_directives *d, arguments *a); #endif /* _WPRINTF_PARSE_H */ gliv-1.9.7/intl/libintl.rc0000644000076400007640000000323511465576131012704 0ustar gg/* Resources for intl.dll */ #include VS_VERSION_INFO VERSIONINFO FILEVERSION PACKAGE_VERSION_MAJOR,PACKAGE_VERSION_MINOR,PACKAGE_VERSION_SUBMINOR,0 PRODUCTVERSION PACKAGE_VERSION_MAJOR,PACKAGE_VERSION_MINOR,PACKAGE_VERSION_SUBMINOR,0 FILEFLAGSMASK 0x3fL /* VS_FFI_FILEFLAGSMASK */ #ifdef _DEBUG FILEFLAGS 0x1L /* VS_FF_DEBUG */ #else FILEFLAGS 0x0L #endif FILEOS 0x10004L /* VOS_DOS_WINDOWS32 */ FILETYPE 0x2L /* VFT_DLL */ FILESUBTYPE 0x0L /* VFT2_UNKNOWN */ BEGIN BLOCK "StringFileInfo" BEGIN BLOCK "04090000" /* Lang = US English, Charset = ASCII */ BEGIN VALUE "Comments", "This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA\0" VALUE "CompanyName", "Free Software Foundation\0" VALUE "FileDescription", "LGPLed libintl for Windows NT/2000/XP/Vista/7 and Windows 95/98/ME\0" VALUE "FileVersion", PACKAGE_VERSION_STRING "\0" VALUE "InternalName", "intl.dll\0" VALUE "LegalCopyright", "Copyright (C) 1995-2010\0" VALUE "LegalTrademarks", "\0" VALUE "OriginalFilename", "intl.dll\0" VALUE "ProductName", "libintl: accessing NLS message catalogs\0" VALUE "ProductVersion", PACKAGE_VERSION_STRING "\0" END END BLOCK "VarFileInfo" BEGIN VALUE "Translation", 0x0409, 0 /* US English, ASCII */ END END gliv-1.9.7/intl/loadmsgcat.c0000644000076400007640000010255211465576131013205 0ustar gg/* Load needed message catalogs. Copyright (C) 1995-1999, 2000-2008 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Tell glibc's to provide a prototype for mempcpy(). This must come before because may include , and once has been included, it's too late. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #ifdef __GNUC__ # undef alloca # define alloca __builtin_alloca # define HAVE_ALLOCA 1 #else # ifdef _MSC_VER # include # define alloca _alloca # else # if defined HAVE_ALLOCA_H || defined _LIBC # include # else # ifdef _AIX #pragma alloca # else # ifndef alloca char *alloca (); # endif # endif # endif # endif #endif #include #include #if defined HAVE_UNISTD_H || defined _LIBC # include #endif #ifdef _LIBC # include # include #endif #if (defined HAVE_MMAP && defined HAVE_MUNMAP && !defined DISALLOW_MMAP) \ || (defined _LIBC && defined _POSIX_MAPPED_FILES) # include # undef HAVE_MMAP # define HAVE_MMAP 1 #else # undef HAVE_MMAP #endif #if defined HAVE_STDINT_H_WITH_UINTMAX || defined _LIBC # include #endif #if defined HAVE_INTTYPES_H || defined _LIBC # include #endif #include "gmo.h" #include "gettextP.h" #include "hash-string.h" #include "plural-exp.h" #ifdef _LIBC # include "../locale/localeinfo.h" # include #endif /* Handle multi-threaded applications. */ #ifdef _LIBC # include #else # include "lock.h" #endif /* Provide fallback values for macros that ought to be defined in . Note that our fallback values need not be literal strings, because we don't use them with preprocessor string concatenation. */ #if !defined PRId8 || PRI_MACROS_BROKEN # undef PRId8 # define PRId8 "d" #endif #if !defined PRIi8 || PRI_MACROS_BROKEN # undef PRIi8 # define PRIi8 "i" #endif #if !defined PRIo8 || PRI_MACROS_BROKEN # undef PRIo8 # define PRIo8 "o" #endif #if !defined PRIu8 || PRI_MACROS_BROKEN # undef PRIu8 # define PRIu8 "u" #endif #if !defined PRIx8 || PRI_MACROS_BROKEN # undef PRIx8 # define PRIx8 "x" #endif #if !defined PRIX8 || PRI_MACROS_BROKEN # undef PRIX8 # define PRIX8 "X" #endif #if !defined PRId16 || PRI_MACROS_BROKEN # undef PRId16 # define PRId16 "d" #endif #if !defined PRIi16 || PRI_MACROS_BROKEN # undef PRIi16 # define PRIi16 "i" #endif #if !defined PRIo16 || PRI_MACROS_BROKEN # undef PRIo16 # define PRIo16 "o" #endif #if !defined PRIu16 || PRI_MACROS_BROKEN # undef PRIu16 # define PRIu16 "u" #endif #if !defined PRIx16 || PRI_MACROS_BROKEN # undef PRIx16 # define PRIx16 "x" #endif #if !defined PRIX16 || PRI_MACROS_BROKEN # undef PRIX16 # define PRIX16 "X" #endif #if !defined PRId32 || PRI_MACROS_BROKEN # undef PRId32 # define PRId32 "d" #endif #if !defined PRIi32 || PRI_MACROS_BROKEN # undef PRIi32 # define PRIi32 "i" #endif #if !defined PRIo32 || PRI_MACROS_BROKEN # undef PRIo32 # define PRIo32 "o" #endif #if !defined PRIu32 || PRI_MACROS_BROKEN # undef PRIu32 # define PRIu32 "u" #endif #if !defined PRIx32 || PRI_MACROS_BROKEN # undef PRIx32 # define PRIx32 "x" #endif #if !defined PRIX32 || PRI_MACROS_BROKEN # undef PRIX32 # define PRIX32 "X" #endif #if !defined PRId64 || PRI_MACROS_BROKEN # undef PRId64 # define PRId64 (sizeof (long) == 8 ? "ld" : "lld") #endif #if !defined PRIi64 || PRI_MACROS_BROKEN # undef PRIi64 # define PRIi64 (sizeof (long) == 8 ? "li" : "lli") #endif #if !defined PRIo64 || PRI_MACROS_BROKEN # undef PRIo64 # define PRIo64 (sizeof (long) == 8 ? "lo" : "llo") #endif #if !defined PRIu64 || PRI_MACROS_BROKEN # undef PRIu64 # define PRIu64 (sizeof (long) == 8 ? "lu" : "llu") #endif #if !defined PRIx64 || PRI_MACROS_BROKEN # undef PRIx64 # define PRIx64 (sizeof (long) == 8 ? "lx" : "llx") #endif #if !defined PRIX64 || PRI_MACROS_BROKEN # undef PRIX64 # define PRIX64 (sizeof (long) == 8 ? "lX" : "llX") #endif #if !defined PRIdLEAST8 || PRI_MACROS_BROKEN # undef PRIdLEAST8 # define PRIdLEAST8 "d" #endif #if !defined PRIiLEAST8 || PRI_MACROS_BROKEN # undef PRIiLEAST8 # define PRIiLEAST8 "i" #endif #if !defined PRIoLEAST8 || PRI_MACROS_BROKEN # undef PRIoLEAST8 # define PRIoLEAST8 "o" #endif #if !defined PRIuLEAST8 || PRI_MACROS_BROKEN # undef PRIuLEAST8 # define PRIuLEAST8 "u" #endif #if !defined PRIxLEAST8 || PRI_MACROS_BROKEN # undef PRIxLEAST8 # define PRIxLEAST8 "x" #endif #if !defined PRIXLEAST8 || PRI_MACROS_BROKEN # undef PRIXLEAST8 # define PRIXLEAST8 "X" #endif #if !defined PRIdLEAST16 || PRI_MACROS_BROKEN # undef PRIdLEAST16 # define PRIdLEAST16 "d" #endif #if !defined PRIiLEAST16 || PRI_MACROS_BROKEN # undef PRIiLEAST16 # define PRIiLEAST16 "i" #endif #if !defined PRIoLEAST16 || PRI_MACROS_BROKEN # undef PRIoLEAST16 # define PRIoLEAST16 "o" #endif #if !defined PRIuLEAST16 || PRI_MACROS_BROKEN # undef PRIuLEAST16 # define PRIuLEAST16 "u" #endif #if !defined PRIxLEAST16 || PRI_MACROS_BROKEN # undef PRIxLEAST16 # define PRIxLEAST16 "x" #endif #if !defined PRIXLEAST16 || PRI_MACROS_BROKEN # undef PRIXLEAST16 # define PRIXLEAST16 "X" #endif #if !defined PRIdLEAST32 || PRI_MACROS_BROKEN # undef PRIdLEAST32 # define PRIdLEAST32 "d" #endif #if !defined PRIiLEAST32 || PRI_MACROS_BROKEN # undef PRIiLEAST32 # define PRIiLEAST32 "i" #endif #if !defined PRIoLEAST32 || PRI_MACROS_BROKEN # undef PRIoLEAST32 # define PRIoLEAST32 "o" #endif #if !defined PRIuLEAST32 || PRI_MACROS_BROKEN # undef PRIuLEAST32 # define PRIuLEAST32 "u" #endif #if !defined PRIxLEAST32 || PRI_MACROS_BROKEN # undef PRIxLEAST32 # define PRIxLEAST32 "x" #endif #if !defined PRIXLEAST32 || PRI_MACROS_BROKEN # undef PRIXLEAST32 # define PRIXLEAST32 "X" #endif #if !defined PRIdLEAST64 || PRI_MACROS_BROKEN # undef PRIdLEAST64 # define PRIdLEAST64 PRId64 #endif #if !defined PRIiLEAST64 || PRI_MACROS_BROKEN # undef PRIiLEAST64 # define PRIiLEAST64 PRIi64 #endif #if !defined PRIoLEAST64 || PRI_MACROS_BROKEN # undef PRIoLEAST64 # define PRIoLEAST64 PRIo64 #endif #if !defined PRIuLEAST64 || PRI_MACROS_BROKEN # undef PRIuLEAST64 # define PRIuLEAST64 PRIu64 #endif #if !defined PRIxLEAST64 || PRI_MACROS_BROKEN # undef PRIxLEAST64 # define PRIxLEAST64 PRIx64 #endif #if !defined PRIXLEAST64 || PRI_MACROS_BROKEN # undef PRIXLEAST64 # define PRIXLEAST64 PRIX64 #endif #if !defined PRIdFAST8 || PRI_MACROS_BROKEN # undef PRIdFAST8 # define PRIdFAST8 "d" #endif #if !defined PRIiFAST8 || PRI_MACROS_BROKEN # undef PRIiFAST8 # define PRIiFAST8 "i" #endif #if !defined PRIoFAST8 || PRI_MACROS_BROKEN # undef PRIoFAST8 # define PRIoFAST8 "o" #endif #if !defined PRIuFAST8 || PRI_MACROS_BROKEN # undef PRIuFAST8 # define PRIuFAST8 "u" #endif #if !defined PRIxFAST8 || PRI_MACROS_BROKEN # undef PRIxFAST8 # define PRIxFAST8 "x" #endif #if !defined PRIXFAST8 || PRI_MACROS_BROKEN # undef PRIXFAST8 # define PRIXFAST8 "X" #endif #if !defined PRIdFAST16 || PRI_MACROS_BROKEN # undef PRIdFAST16 # define PRIdFAST16 "d" #endif #if !defined PRIiFAST16 || PRI_MACROS_BROKEN # undef PRIiFAST16 # define PRIiFAST16 "i" #endif #if !defined PRIoFAST16 || PRI_MACROS_BROKEN # undef PRIoFAST16 # define PRIoFAST16 "o" #endif #if !defined PRIuFAST16 || PRI_MACROS_BROKEN # undef PRIuFAST16 # define PRIuFAST16 "u" #endif #if !defined PRIxFAST16 || PRI_MACROS_BROKEN # undef PRIxFAST16 # define PRIxFAST16 "x" #endif #if !defined PRIXFAST16 || PRI_MACROS_BROKEN # undef PRIXFAST16 # define PRIXFAST16 "X" #endif #if !defined PRIdFAST32 || PRI_MACROS_BROKEN # undef PRIdFAST32 # define PRIdFAST32 "d" #endif #if !defined PRIiFAST32 || PRI_MACROS_BROKEN # undef PRIiFAST32 # define PRIiFAST32 "i" #endif #if !defined PRIoFAST32 || PRI_MACROS_BROKEN # undef PRIoFAST32 # define PRIoFAST32 "o" #endif #if !defined PRIuFAST32 || PRI_MACROS_BROKEN # undef PRIuFAST32 # define PRIuFAST32 "u" #endif #if !defined PRIxFAST32 || PRI_MACROS_BROKEN # undef PRIxFAST32 # define PRIxFAST32 "x" #endif #if !defined PRIXFAST32 || PRI_MACROS_BROKEN # undef PRIXFAST32 # define PRIXFAST32 "X" #endif #if !defined PRIdFAST64 || PRI_MACROS_BROKEN # undef PRIdFAST64 # define PRIdFAST64 PRId64 #endif #if !defined PRIiFAST64 || PRI_MACROS_BROKEN # undef PRIiFAST64 # define PRIiFAST64 PRIi64 #endif #if !defined PRIoFAST64 || PRI_MACROS_BROKEN # undef PRIoFAST64 # define PRIoFAST64 PRIo64 #endif #if !defined PRIuFAST64 || PRI_MACROS_BROKEN # undef PRIuFAST64 # define PRIuFAST64 PRIu64 #endif #if !defined PRIxFAST64 || PRI_MACROS_BROKEN # undef PRIxFAST64 # define PRIxFAST64 PRIx64 #endif #if !defined PRIXFAST64 || PRI_MACROS_BROKEN # undef PRIXFAST64 # define PRIXFAST64 PRIX64 #endif #if !defined PRIdMAX || PRI_MACROS_BROKEN # undef PRIdMAX # define PRIdMAX (sizeof (uintmax_t) == sizeof (long) ? "ld" : "lld") #endif #if !defined PRIiMAX || PRI_MACROS_BROKEN # undef PRIiMAX # define PRIiMAX (sizeof (uintmax_t) == sizeof (long) ? "li" : "lli") #endif #if !defined PRIoMAX || PRI_MACROS_BROKEN # undef PRIoMAX # define PRIoMAX (sizeof (uintmax_t) == sizeof (long) ? "lo" : "llo") #endif #if !defined PRIuMAX || PRI_MACROS_BROKEN # undef PRIuMAX # define PRIuMAX (sizeof (uintmax_t) == sizeof (long) ? "lu" : "llu") #endif #if !defined PRIxMAX || PRI_MACROS_BROKEN # undef PRIxMAX # define PRIxMAX (sizeof (uintmax_t) == sizeof (long) ? "lx" : "llx") #endif #if !defined PRIXMAX || PRI_MACROS_BROKEN # undef PRIXMAX # define PRIXMAX (sizeof (uintmax_t) == sizeof (long) ? "lX" : "llX") #endif #if !defined PRIdPTR || PRI_MACROS_BROKEN # undef PRIdPTR # define PRIdPTR \ (sizeof (void *) == sizeof (long) ? "ld" : \ sizeof (void *) == sizeof (int) ? "d" : \ "lld") #endif #if !defined PRIiPTR || PRI_MACROS_BROKEN # undef PRIiPTR # define PRIiPTR \ (sizeof (void *) == sizeof (long) ? "li" : \ sizeof (void *) == sizeof (int) ? "i" : \ "lli") #endif #if !defined PRIoPTR || PRI_MACROS_BROKEN # undef PRIoPTR # define PRIoPTR \ (sizeof (void *) == sizeof (long) ? "lo" : \ sizeof (void *) == sizeof (int) ? "o" : \ "llo") #endif #if !defined PRIuPTR || PRI_MACROS_BROKEN # undef PRIuPTR # define PRIuPTR \ (sizeof (void *) == sizeof (long) ? "lu" : \ sizeof (void *) == sizeof (int) ? "u" : \ "llu") #endif #if !defined PRIxPTR || PRI_MACROS_BROKEN # undef PRIxPTR # define PRIxPTR \ (sizeof (void *) == sizeof (long) ? "lx" : \ sizeof (void *) == sizeof (int) ? "x" : \ "llx") #endif #if !defined PRIXPTR || PRI_MACROS_BROKEN # undef PRIXPTR # define PRIXPTR \ (sizeof (void *) == sizeof (long) ? "lX" : \ sizeof (void *) == sizeof (int) ? "X" : \ "llX") #endif /* @@ end of prolog @@ */ #ifdef _LIBC /* Rename the non ISO C functions. This is required by the standard because some ISO C functions will require linking with this object file and the name space must not be polluted. */ # define open(name, flags) open_not_cancel_2 (name, flags) # define close(fd) close_not_cancel_no_status (fd) # define read(fd, buf, n) read_not_cancel (fd, buf, n) # define mmap(addr, len, prot, flags, fd, offset) \ __mmap (addr, len, prot, flags, fd, offset) # define munmap(addr, len) __munmap (addr, len) #endif /* For those losing systems which don't have `alloca' we have to add some additional code emulating it. */ #ifdef HAVE_ALLOCA # define freea(p) /* nothing */ #else # define alloca(n) malloc (n) # define freea(p) free (p) #endif /* For systems that distinguish between text and binary I/O. O_BINARY is usually declared in . */ #if !defined O_BINARY && defined _O_BINARY /* For MSC-compatible compilers. */ # define O_BINARY _O_BINARY # define O_TEXT _O_TEXT #endif #ifdef __BEOS__ /* BeOS 5 has O_BINARY and O_TEXT, but they have no effect. */ # undef O_BINARY # undef O_TEXT #endif /* On reasonable systems, binary I/O is the default. */ #ifndef O_BINARY # define O_BINARY 0 #endif /* We need a sign, whether a new catalog was loaded, which can be associated with all translations. This is important if the translations are cached by one of GCC's features. */ int _nl_msg_cat_cntr; /* Expand a system dependent string segment. Return NULL if unsupported. */ static const char * get_sysdep_segment_value (const char *name) { /* Test for an ISO C 99 section 7.8.1 format string directive. Syntax: P R I { d | i | o | u | x | X } { { | LEAST | FAST } { 8 | 16 | 32 | 64 } | MAX | PTR } */ /* We don't use a table of 14 times 6 'const char *' strings here, because data relocations cost startup time. */ if (name[0] == 'P' && name[1] == 'R' && name[2] == 'I') { if (name[3] == 'd' || name[3] == 'i' || name[3] == 'o' || name[3] == 'u' || name[3] == 'x' || name[3] == 'X') { if (name[4] == '8' && name[5] == '\0') { if (name[3] == 'd') return PRId8; if (name[3] == 'i') return PRIi8; if (name[3] == 'o') return PRIo8; if (name[3] == 'u') return PRIu8; if (name[3] == 'x') return PRIx8; if (name[3] == 'X') return PRIX8; abort (); } if (name[4] == '1' && name[5] == '6' && name[6] == '\0') { if (name[3] == 'd') return PRId16; if (name[3] == 'i') return PRIi16; if (name[3] == 'o') return PRIo16; if (name[3] == 'u') return PRIu16; if (name[3] == 'x') return PRIx16; if (name[3] == 'X') return PRIX16; abort (); } if (name[4] == '3' && name[5] == '2' && name[6] == '\0') { if (name[3] == 'd') return PRId32; if (name[3] == 'i') return PRIi32; if (name[3] == 'o') return PRIo32; if (name[3] == 'u') return PRIu32; if (name[3] == 'x') return PRIx32; if (name[3] == 'X') return PRIX32; abort (); } if (name[4] == '6' && name[5] == '4' && name[6] == '\0') { if (name[3] == 'd') return PRId64; if (name[3] == 'i') return PRIi64; if (name[3] == 'o') return PRIo64; if (name[3] == 'u') return PRIu64; if (name[3] == 'x') return PRIx64; if (name[3] == 'X') return PRIX64; abort (); } if (name[4] == 'L' && name[5] == 'E' && name[6] == 'A' && name[7] == 'S' && name[8] == 'T') { if (name[9] == '8' && name[10] == '\0') { if (name[3] == 'd') return PRIdLEAST8; if (name[3] == 'i') return PRIiLEAST8; if (name[3] == 'o') return PRIoLEAST8; if (name[3] == 'u') return PRIuLEAST8; if (name[3] == 'x') return PRIxLEAST8; if (name[3] == 'X') return PRIXLEAST8; abort (); } if (name[9] == '1' && name[10] == '6' && name[11] == '\0') { if (name[3] == 'd') return PRIdLEAST16; if (name[3] == 'i') return PRIiLEAST16; if (name[3] == 'o') return PRIoLEAST16; if (name[3] == 'u') return PRIuLEAST16; if (name[3] == 'x') return PRIxLEAST16; if (name[3] == 'X') return PRIXLEAST16; abort (); } if (name[9] == '3' && name[10] == '2' && name[11] == '\0') { if (name[3] == 'd') return PRIdLEAST32; if (name[3] == 'i') return PRIiLEAST32; if (name[3] == 'o') return PRIoLEAST32; if (name[3] == 'u') return PRIuLEAST32; if (name[3] == 'x') return PRIxLEAST32; if (name[3] == 'X') return PRIXLEAST32; abort (); } if (name[9] == '6' && name[10] == '4' && name[11] == '\0') { if (name[3] == 'd') return PRIdLEAST64; if (name[3] == 'i') return PRIiLEAST64; if (name[3] == 'o') return PRIoLEAST64; if (name[3] == 'u') return PRIuLEAST64; if (name[3] == 'x') return PRIxLEAST64; if (name[3] == 'X') return PRIXLEAST64; abort (); } } if (name[4] == 'F' && name[5] == 'A' && name[6] == 'S' && name[7] == 'T') { if (name[8] == '8' && name[9] == '\0') { if (name[3] == 'd') return PRIdFAST8; if (name[3] == 'i') return PRIiFAST8; if (name[3] == 'o') return PRIoFAST8; if (name[3] == 'u') return PRIuFAST8; if (name[3] == 'x') return PRIxFAST8; if (name[3] == 'X') return PRIXFAST8; abort (); } if (name[8] == '1' && name[9] == '6' && name[10] == '\0') { if (name[3] == 'd') return PRIdFAST16; if (name[3] == 'i') return PRIiFAST16; if (name[3] == 'o') return PRIoFAST16; if (name[3] == 'u') return PRIuFAST16; if (name[3] == 'x') return PRIxFAST16; if (name[3] == 'X') return PRIXFAST16; abort (); } if (name[8] == '3' && name[9] == '2' && name[10] == '\0') { if (name[3] == 'd') return PRIdFAST32; if (name[3] == 'i') return PRIiFAST32; if (name[3] == 'o') return PRIoFAST32; if (name[3] == 'u') return PRIuFAST32; if (name[3] == 'x') return PRIxFAST32; if (name[3] == 'X') return PRIXFAST32; abort (); } if (name[8] == '6' && name[9] == '4' && name[10] == '\0') { if (name[3] == 'd') return PRIdFAST64; if (name[3] == 'i') return PRIiFAST64; if (name[3] == 'o') return PRIoFAST64; if (name[3] == 'u') return PRIuFAST64; if (name[3] == 'x') return PRIxFAST64; if (name[3] == 'X') return PRIXFAST64; abort (); } } if (name[4] == 'M' && name[5] == 'A' && name[6] == 'X' && name[7] == '\0') { if (name[3] == 'd') return PRIdMAX; if (name[3] == 'i') return PRIiMAX; if (name[3] == 'o') return PRIoMAX; if (name[3] == 'u') return PRIuMAX; if (name[3] == 'x') return PRIxMAX; if (name[3] == 'X') return PRIXMAX; abort (); } if (name[4] == 'P' && name[5] == 'T' && name[6] == 'R' && name[7] == '\0') { if (name[3] == 'd') return PRIdPTR; if (name[3] == 'i') return PRIiPTR; if (name[3] == 'o') return PRIoPTR; if (name[3] == 'u') return PRIuPTR; if (name[3] == 'x') return PRIxPTR; if (name[3] == 'X') return PRIXPTR; abort (); } } } /* Test for a glibc specific printf() format directive flag. */ if (name[0] == 'I' && name[1] == '\0') { #if defined _LIBC || __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) /* The 'I' flag, in numeric format directives, replaces ASCII digits with the 'outdigits' defined in the LC_CTYPE locale facet. This is used for Farsi (Persian) and maybe Arabic. */ return "I"; #else return ""; #endif } /* Other system dependent strings are not valid. */ return NULL; } /* Load the message catalogs specified by FILENAME. If it is no valid message catalog do nothing. */ void internal_function _nl_load_domain (struct loaded_l10nfile *domain_file, struct binding *domainbinding) { __libc_lock_define_initialized_recursive (static, lock) int fd = -1; size_t size; #ifdef _LIBC struct stat64 st; #else struct stat st; #endif struct mo_file_header *data = (struct mo_file_header *) -1; int use_mmap = 0; struct loaded_domain *domain; int revision; const char *nullentry; size_t nullentrylen; __libc_lock_lock_recursive (lock); if (domain_file->decided != 0) { /* There are two possibilities: + this is the same thread calling again during this initialization via _nl_find_msg. We have initialized everything this call needs. + this is another thread which tried to initialize this object. Not necessary anymore since if the lock is available this is finished. */ goto done; } domain_file->decided = -1; domain_file->data = NULL; /* Note that it would be useless to store domainbinding in domain_file because domainbinding might be == NULL now but != NULL later (after a call to bind_textdomain_codeset). */ /* If the record does not represent a valid locale the FILENAME might be NULL. This can happen when according to the given specification the locale file name is different for XPG and CEN syntax. */ if (domain_file->filename == NULL) goto out; /* Try to open the addressed file. */ fd = open (domain_file->filename, O_RDONLY | O_BINARY); if (fd == -1) goto out; /* We must know about the size of the file. */ if ( #ifdef _LIBC __builtin_expect (fstat64 (fd, &st) != 0, 0) #else __builtin_expect (fstat (fd, &st) != 0, 0) #endif || __builtin_expect ((size = (size_t) st.st_size) != st.st_size, 0) || __builtin_expect (size < sizeof (struct mo_file_header), 0)) /* Something went wrong. */ goto out; #ifdef HAVE_MMAP /* Now we are ready to load the file. If mmap() is available we try this first. If not available or it failed we try to load it. */ data = (struct mo_file_header *) mmap (NULL, size, PROT_READ, MAP_PRIVATE, fd, 0); if (__builtin_expect (data != (struct mo_file_header *) -1, 1)) { /* mmap() call was successful. */ close (fd); fd = -1; use_mmap = 1; } #endif /* If the data is not yet available (i.e. mmap'ed) we try to load it manually. */ if (data == (struct mo_file_header *) -1) { size_t to_read; char *read_ptr; data = (struct mo_file_header *) malloc (size); if (data == NULL) goto out; to_read = size; read_ptr = (char *) data; do { long int nb = (long int) read (fd, read_ptr, to_read); if (nb <= 0) { #ifdef EINTR if (nb == -1 && errno == EINTR) continue; #endif goto out; } read_ptr += nb; to_read -= nb; } while (to_read > 0); close (fd); fd = -1; } /* Using the magic number we can test whether it really is a message catalog file. */ if (__builtin_expect (data->magic != _MAGIC && data->magic != _MAGIC_SWAPPED, 0)) { /* The magic number is wrong: not a message catalog file. */ #ifdef HAVE_MMAP if (use_mmap) munmap ((caddr_t) data, size); else #endif free (data); goto out; } domain = (struct loaded_domain *) malloc (sizeof (struct loaded_domain)); if (domain == NULL) goto out; domain_file->data = domain; domain->data = (char *) data; domain->use_mmap = use_mmap; domain->mmap_size = size; domain->must_swap = data->magic != _MAGIC; domain->malloced = NULL; /* Fill in the information about the available tables. */ revision = W (domain->must_swap, data->revision); /* We support only the major revisions 0 and 1. */ switch (revision >> 16) { case 0: case 1: domain->nstrings = W (domain->must_swap, data->nstrings); domain->orig_tab = (const struct string_desc *) ((char *) data + W (domain->must_swap, data->orig_tab_offset)); domain->trans_tab = (const struct string_desc *) ((char *) data + W (domain->must_swap, data->trans_tab_offset)); domain->hash_size = W (domain->must_swap, data->hash_tab_size); domain->hash_tab = (domain->hash_size > 2 ? (const nls_uint32 *) ((char *) data + W (domain->must_swap, data->hash_tab_offset)) : NULL); domain->must_swap_hash_tab = domain->must_swap; /* Now dispatch on the minor revision. */ switch (revision & 0xffff) { case 0: domain->n_sysdep_strings = 0; domain->orig_sysdep_tab = NULL; domain->trans_sysdep_tab = NULL; break; case 1: default: { nls_uint32 n_sysdep_strings; if (domain->hash_tab == NULL) /* This is invalid. These minor revisions need a hash table. */ goto invalid; n_sysdep_strings = W (domain->must_swap, data->n_sysdep_strings); if (n_sysdep_strings > 0) { nls_uint32 n_sysdep_segments; const struct sysdep_segment *sysdep_segments; const char **sysdep_segment_values; const nls_uint32 *orig_sysdep_tab; const nls_uint32 *trans_sysdep_tab; nls_uint32 n_inmem_sysdep_strings; size_t memneed; char *mem; struct sysdep_string_desc *inmem_orig_sysdep_tab; struct sysdep_string_desc *inmem_trans_sysdep_tab; nls_uint32 *inmem_hash_tab; unsigned int i, j; /* Get the values of the system dependent segments. */ n_sysdep_segments = W (domain->must_swap, data->n_sysdep_segments); sysdep_segments = (const struct sysdep_segment *) ((char *) data + W (domain->must_swap, data->sysdep_segments_offset)); sysdep_segment_values = (const char **) alloca (n_sysdep_segments * sizeof (const char *)); for (i = 0; i < n_sysdep_segments; i++) { const char *name = (char *) data + W (domain->must_swap, sysdep_segments[i].offset); nls_uint32 namelen = W (domain->must_swap, sysdep_segments[i].length); if (!(namelen > 0 && name[namelen - 1] == '\0')) { freea (sysdep_segment_values); goto invalid; } sysdep_segment_values[i] = get_sysdep_segment_value (name); } orig_sysdep_tab = (const nls_uint32 *) ((char *) data + W (domain->must_swap, data->orig_sysdep_tab_offset)); trans_sysdep_tab = (const nls_uint32 *) ((char *) data + W (domain->must_swap, data->trans_sysdep_tab_offset)); /* Compute the amount of additional memory needed for the system dependent strings and the augmented hash table. At the same time, also drop string pairs which refer to an undefined system dependent segment. */ n_inmem_sysdep_strings = 0; memneed = domain->hash_size * sizeof (nls_uint32); for (i = 0; i < n_sysdep_strings; i++) { int valid = 1; size_t needs[2]; for (j = 0; j < 2; j++) { const struct sysdep_string *sysdep_string = (const struct sysdep_string *) ((char *) data + W (domain->must_swap, j == 0 ? orig_sysdep_tab[i] : trans_sysdep_tab[i])); size_t need = 0; const struct segment_pair *p = sysdep_string->segments; if (W (domain->must_swap, p->sysdepref) != SEGMENTS_END) for (p = sysdep_string->segments;; p++) { nls_uint32 sysdepref; need += W (domain->must_swap, p->segsize); sysdepref = W (domain->must_swap, p->sysdepref); if (sysdepref == SEGMENTS_END) break; if (sysdepref >= n_sysdep_segments) { /* Invalid. */ freea (sysdep_segment_values); goto invalid; } if (sysdep_segment_values[sysdepref] == NULL) { /* This particular string pair is invalid. */ valid = 0; break; } need += strlen (sysdep_segment_values[sysdepref]); } needs[j] = need; if (!valid) break; } if (valid) { n_inmem_sysdep_strings++; memneed += needs[0] + needs[1]; } } memneed += 2 * n_inmem_sysdep_strings * sizeof (struct sysdep_string_desc); if (n_inmem_sysdep_strings > 0) { unsigned int k; /* Allocate additional memory. */ mem = (char *) malloc (memneed); if (mem == NULL) goto invalid; domain->malloced = mem; inmem_orig_sysdep_tab = (struct sysdep_string_desc *) mem; mem += n_inmem_sysdep_strings * sizeof (struct sysdep_string_desc); inmem_trans_sysdep_tab = (struct sysdep_string_desc *) mem; mem += n_inmem_sysdep_strings * sizeof (struct sysdep_string_desc); inmem_hash_tab = (nls_uint32 *) mem; mem += domain->hash_size * sizeof (nls_uint32); /* Compute the system dependent strings. */ k = 0; for (i = 0; i < n_sysdep_strings; i++) { int valid = 1; for (j = 0; j < 2; j++) { const struct sysdep_string *sysdep_string = (const struct sysdep_string *) ((char *) data + W (domain->must_swap, j == 0 ? orig_sysdep_tab[i] : trans_sysdep_tab[i])); const struct segment_pair *p = sysdep_string->segments; if (W (domain->must_swap, p->sysdepref) != SEGMENTS_END) for (p = sysdep_string->segments;; p++) { nls_uint32 sysdepref; sysdepref = W (domain->must_swap, p->sysdepref); if (sysdepref == SEGMENTS_END) break; if (sysdep_segment_values[sysdepref] == NULL) { /* This particular string pair is invalid. */ valid = 0; break; } } if (!valid) break; } if (valid) { for (j = 0; j < 2; j++) { const struct sysdep_string *sysdep_string = (const struct sysdep_string *) ((char *) data + W (domain->must_swap, j == 0 ? orig_sysdep_tab[i] : trans_sysdep_tab[i])); const char *static_segments = (char *) data + W (domain->must_swap, sysdep_string->offset); const struct segment_pair *p = sysdep_string->segments; /* Concatenate the segments, and fill inmem_orig_sysdep_tab[k] (for j == 0) and inmem_trans_sysdep_tab[k] (for j == 1). */ struct sysdep_string_desc *inmem_tab_entry = (j == 0 ? inmem_orig_sysdep_tab : inmem_trans_sysdep_tab) + k; if (W (domain->must_swap, p->sysdepref) == SEGMENTS_END) { /* Only one static segment. */ inmem_tab_entry->length = W (domain->must_swap, p->segsize); inmem_tab_entry->pointer = static_segments; } else { inmem_tab_entry->pointer = mem; for (p = sysdep_string->segments;; p++) { nls_uint32 segsize = W (domain->must_swap, p->segsize); nls_uint32 sysdepref = W (domain->must_swap, p->sysdepref); size_t n; if (segsize > 0) { memcpy (mem, static_segments, segsize); mem += segsize; static_segments += segsize; } if (sysdepref == SEGMENTS_END) break; n = strlen (sysdep_segment_values[sysdepref]); memcpy (mem, sysdep_segment_values[sysdepref], n); mem += n; } inmem_tab_entry->length = mem - inmem_tab_entry->pointer; } } k++; } } if (k != n_inmem_sysdep_strings) abort (); /* Compute the augmented hash table. */ for (i = 0; i < domain->hash_size; i++) inmem_hash_tab[i] = W (domain->must_swap_hash_tab, domain->hash_tab[i]); for (i = 0; i < n_inmem_sysdep_strings; i++) { const char *msgid = inmem_orig_sysdep_tab[i].pointer; nls_uint32 hash_val = __hash_string (msgid); nls_uint32 idx = hash_val % domain->hash_size; nls_uint32 incr = 1 + (hash_val % (domain->hash_size - 2)); for (;;) { if (inmem_hash_tab[idx] == 0) { /* Hash table entry is empty. Use it. */ inmem_hash_tab[idx] = 1 + domain->nstrings + i; break; } if (idx >= domain->hash_size - incr) idx -= domain->hash_size - incr; else idx += incr; } } domain->n_sysdep_strings = n_inmem_sysdep_strings; domain->orig_sysdep_tab = inmem_orig_sysdep_tab; domain->trans_sysdep_tab = inmem_trans_sysdep_tab; domain->hash_tab = inmem_hash_tab; domain->must_swap_hash_tab = 0; } else { domain->n_sysdep_strings = 0; domain->orig_sysdep_tab = NULL; domain->trans_sysdep_tab = NULL; } freea (sysdep_segment_values); } else { domain->n_sysdep_strings = 0; domain->orig_sysdep_tab = NULL; domain->trans_sysdep_tab = NULL; } } break; } break; default: /* This is an invalid revision. */ invalid: /* This is an invalid .mo file. */ free (domain->malloced); #ifdef HAVE_MMAP if (use_mmap) munmap ((caddr_t) data, size); else #endif free (data); free (domain); domain_file->data = NULL; goto out; } /* No caches of converted translations so far. */ domain->conversions = NULL; domain->nconversions = 0; gl_rwlock_init (domain->conversions_lock); /* Get the header entry and look for a plural specification. */ #ifdef IN_LIBGLOCALE nullentry = _nl_find_msg (domain_file, domainbinding, NULL, "", &nullentrylen); #else nullentry = _nl_find_msg (domain_file, domainbinding, "", 0, &nullentrylen); #endif EXTRACT_PLURAL_EXPRESSION (nullentry, &domain->plural, &domain->nplurals); out: if (fd != -1) close (fd); domain_file->decided = 1; done: __libc_lock_unlock_recursive (lock); } #ifdef _LIBC void internal_function __libc_freeres_fn_section _nl_unload_domain (struct loaded_domain *domain) { size_t i; if (domain->plural != &__gettext_germanic_plural) __gettext_free_exp ((struct expression *) domain->plural); for (i = 0; i < domain->nconversions; i++) { struct converted_domain *convd = &domain->conversions[i]; free (convd->encoding); if (convd->conv_tab != NULL && convd->conv_tab != (char **) -1) free (convd->conv_tab); if (convd->conv != (__gconv_t) -1) __gconv_close (convd->conv); } free (domain->conversions); __libc_rwlock_fini (domain->conversions_lock); free (domain->malloced); # ifdef _POSIX_MAPPED_FILES if (domain->use_mmap) munmap ((caddr_t) domain->data, domain->mmap_size); else # endif /* _POSIX_MAPPED_FILES */ free ((void *) domain->data); free (domain); } #endif gliv-1.9.7/intl/localcharset.c0000644000076400007640000004316111465576131013533 0ustar gg/* Determine a canonical name for the current locale's character encoding. Copyright (C) 2000-2006, 2008-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Written by Bruno Haible . */ #include /* Specification. */ #include "localcharset.h" #include #include #include #include #include #if defined __APPLE__ && defined __MACH__ && HAVE_LANGINFO_CODESET # define DARWIN7 /* Darwin 7 or newer, i.e. MacOS X 10.3 or newer */ #endif #if defined _WIN32 || defined __WIN32__ # define WIN32_NATIVE #endif #if defined __EMX__ /* Assume EMX program runs on OS/2, even if compiled under DOS. */ # ifndef OS2 # define OS2 # endif #endif #if !defined WIN32_NATIVE # include # if HAVE_LANGINFO_CODESET # include # else # if 0 /* see comment below */ # include # endif # endif # ifdef __CYGWIN__ # define WIN32_LEAN_AND_MEAN # include # endif #elif defined WIN32_NATIVE # define WIN32_LEAN_AND_MEAN # include #endif #if defined OS2 # define INCL_DOS # include #endif #if ENABLE_RELOCATABLE # include "relocatable.h" #else # define relocate(pathname) (pathname) #endif /* Get LIBDIR. */ #ifndef LIBDIR # include "configmake.h" #endif /* Define O_NOFOLLOW to 0 on platforms where it does not exist. */ #ifndef O_NOFOLLOW # define O_NOFOLLOW 0 #endif #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ /* Win32, Cygwin, OS/2, DOS */ # define ISSLASH(C) ((C) == '/' || (C) == '\\') #endif #ifndef DIRECTORY_SEPARATOR # define DIRECTORY_SEPARATOR '/' #endif #ifndef ISSLASH # define ISSLASH(C) ((C) == DIRECTORY_SEPARATOR) #endif #if HAVE_DECL_GETC_UNLOCKED # undef getc # define getc getc_unlocked #endif /* The following static variable is declared 'volatile' to avoid a possible multithread problem in the function get_charset_aliases. If we are running in a threaded environment, and if two threads initialize 'charset_aliases' simultaneously, both will produce the same value, and everything will be ok if the two assignments to 'charset_aliases' are atomic. But I don't know what will happen if the two assignments mix. */ #if __STDC__ != 1 # define volatile /* empty */ #endif /* Pointer to the contents of the charset.alias file, if it has already been read, else NULL. Its format is: ALIAS_1 '\0' CANONICAL_1 '\0' ... ALIAS_n '\0' CANONICAL_n '\0' '\0' */ static const char * volatile charset_aliases; /* Return a pointer to the contents of the charset.alias file. */ static const char * get_charset_aliases (void) { const char *cp; cp = charset_aliases; if (cp == NULL) { #if !(defined DARWIN7 || defined VMS || defined WIN32_NATIVE || defined __CYGWIN__) const char *dir; const char *base = "charset.alias"; char *file_name; /* Make it possible to override the charset.alias location. This is necessary for running the testsuite before "make install". */ dir = getenv ("CHARSETALIASDIR"); if (dir == NULL || dir[0] == '\0') dir = relocate (LIBDIR); /* Concatenate dir and base into freshly allocated file_name. */ { size_t dir_len = strlen (dir); size_t base_len = strlen (base); int add_slash = (dir_len > 0 && !ISSLASH (dir[dir_len - 1])); file_name = (char *) malloc (dir_len + add_slash + base_len + 1); if (file_name != NULL) { memcpy (file_name, dir, dir_len); if (add_slash) file_name[dir_len] = DIRECTORY_SEPARATOR; memcpy (file_name + dir_len + add_slash, base, base_len + 1); } } if (file_name == NULL) /* Out of memory. Treat the file as empty. */ cp = ""; else { int fd; /* Open the file. Reject symbolic links on platforms that support O_NOFOLLOW. This is a security feature. Without it, an attacker could retrieve parts of the contents (namely, the tail of the first line that starts with "* ") of an arbitrary file by placing a symbolic link to that file under the name "charset.alias" in some writable directory and defining the environment variable CHARSETALIASDIR to point to that directory. */ fd = open (file_name, O_RDONLY | (HAVE_WORKING_O_NOFOLLOW ? O_NOFOLLOW : 0)); if (fd < 0) /* File not found. Treat it as empty. */ cp = ""; else { FILE *fp; fp = fdopen (fd, "r"); if (fp == NULL) { /* Out of memory. Treat the file as empty. */ close (fd); cp = ""; } else { /* Parse the file's contents. */ char *res_ptr = NULL; size_t res_size = 0; for (;;) { int c; char buf1[50+1]; char buf2[50+1]; size_t l1, l2; char *old_res_ptr; c = getc (fp); if (c == EOF) break; if (c == '\n' || c == ' ' || c == '\t') continue; if (c == '#') { /* Skip comment, to end of line. */ do c = getc (fp); while (!(c == EOF || c == '\n')); if (c == EOF) break; continue; } ungetc (c, fp); if (fscanf (fp, "%50s %50s", buf1, buf2) < 2) break; l1 = strlen (buf1); l2 = strlen (buf2); old_res_ptr = res_ptr; if (res_size == 0) { res_size = l1 + 1 + l2 + 1; res_ptr = (char *) malloc (res_size + 1); } else { res_size += l1 + 1 + l2 + 1; res_ptr = (char *) realloc (res_ptr, res_size + 1); } if (res_ptr == NULL) { /* Out of memory. */ res_size = 0; if (old_res_ptr != NULL) free (old_res_ptr); break; } strcpy (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1); strcpy (res_ptr + res_size - (l2 + 1), buf2); } fclose (fp); if (res_size == 0) cp = ""; else { *(res_ptr + res_size) = '\0'; cp = res_ptr; } } } free (file_name); } #else # if defined DARWIN7 /* To avoid the trouble of installing a file that is shared by many GNU packages -- many packaging systems have problems with this --, simply inline the aliases here. */ cp = "ISO8859-1" "\0" "ISO-8859-1" "\0" "ISO8859-2" "\0" "ISO-8859-2" "\0" "ISO8859-4" "\0" "ISO-8859-4" "\0" "ISO8859-5" "\0" "ISO-8859-5" "\0" "ISO8859-7" "\0" "ISO-8859-7" "\0" "ISO8859-9" "\0" "ISO-8859-9" "\0" "ISO8859-13" "\0" "ISO-8859-13" "\0" "ISO8859-15" "\0" "ISO-8859-15" "\0" "KOI8-R" "\0" "KOI8-R" "\0" "KOI8-U" "\0" "KOI8-U" "\0" "CP866" "\0" "CP866" "\0" "CP949" "\0" "CP949" "\0" "CP1131" "\0" "CP1131" "\0" "CP1251" "\0" "CP1251" "\0" "eucCN" "\0" "GB2312" "\0" "GB2312" "\0" "GB2312" "\0" "eucJP" "\0" "EUC-JP" "\0" "eucKR" "\0" "EUC-KR" "\0" "Big5" "\0" "BIG5" "\0" "Big5HKSCS" "\0" "BIG5-HKSCS" "\0" "GBK" "\0" "GBK" "\0" "GB18030" "\0" "GB18030" "\0" "SJIS" "\0" "SHIFT_JIS" "\0" "ARMSCII-8" "\0" "ARMSCII-8" "\0" "PT154" "\0" "PT154" "\0" /*"ISCII-DEV" "\0" "?" "\0"*/ "*" "\0" "UTF-8" "\0"; # endif # if defined VMS /* To avoid the troubles of an extra file charset.alias_vms in the sources of many GNU packages, simply inline the aliases here. */ /* The list of encodings is taken from the OpenVMS 7.3-1 documentation "Compaq C Run-Time Library Reference Manual for OpenVMS systems" section 10.7 "Handling Different Character Sets". */ cp = "ISO8859-1" "\0" "ISO-8859-1" "\0" "ISO8859-2" "\0" "ISO-8859-2" "\0" "ISO8859-5" "\0" "ISO-8859-5" "\0" "ISO8859-7" "\0" "ISO-8859-7" "\0" "ISO8859-8" "\0" "ISO-8859-8" "\0" "ISO8859-9" "\0" "ISO-8859-9" "\0" /* Japanese */ "eucJP" "\0" "EUC-JP" "\0" "SJIS" "\0" "SHIFT_JIS" "\0" "DECKANJI" "\0" "DEC-KANJI" "\0" "SDECKANJI" "\0" "EUC-JP" "\0" /* Chinese */ "eucTW" "\0" "EUC-TW" "\0" "DECHANYU" "\0" "DEC-HANYU" "\0" "DECHANZI" "\0" "GB2312" "\0" /* Korean */ "DECKOREAN" "\0" "EUC-KR" "\0"; # endif # if defined WIN32_NATIVE || defined __CYGWIN__ /* To avoid the troubles of installing a separate file in the same directory as the DLL and of retrieving the DLL's directory at runtime, simply inline the aliases here. */ cp = "CP936" "\0" "GBK" "\0" "CP1361" "\0" "JOHAB" "\0" "CP20127" "\0" "ASCII" "\0" "CP20866" "\0" "KOI8-R" "\0" "CP20936" "\0" "GB2312" "\0" "CP21866" "\0" "KOI8-RU" "\0" "CP28591" "\0" "ISO-8859-1" "\0" "CP28592" "\0" "ISO-8859-2" "\0" "CP28593" "\0" "ISO-8859-3" "\0" "CP28594" "\0" "ISO-8859-4" "\0" "CP28595" "\0" "ISO-8859-5" "\0" "CP28596" "\0" "ISO-8859-6" "\0" "CP28597" "\0" "ISO-8859-7" "\0" "CP28598" "\0" "ISO-8859-8" "\0" "CP28599" "\0" "ISO-8859-9" "\0" "CP28605" "\0" "ISO-8859-15" "\0" "CP38598" "\0" "ISO-8859-8" "\0" "CP51932" "\0" "EUC-JP" "\0" "CP51936" "\0" "GB2312" "\0" "CP51949" "\0" "EUC-KR" "\0" "CP51950" "\0" "EUC-TW" "\0" "CP54936" "\0" "GB18030" "\0" "CP65001" "\0" "UTF-8" "\0"; # endif #endif charset_aliases = cp; } return cp; } /* Determine the current locale's character encoding, and canonicalize it into one of the canonical names listed in config.charset. The result must not be freed; it is statically allocated. If the canonical name cannot be determined, the result is a non-canonical name. */ #ifdef STATIC STATIC #endif const char * locale_charset (void) { const char *codeset; const char *aliases; #if !(defined WIN32_NATIVE || defined OS2) # if HAVE_LANGINFO_CODESET /* Most systems support nl_langinfo (CODESET) nowadays. */ codeset = nl_langinfo (CODESET); # ifdef __CYGWIN__ /* Cygwin < 1.7 does not have locales. nl_langinfo (CODESET) always returns "US-ASCII". Return the suffix of the locale name from the environment variables (if present) or the codepage as a number. */ if (codeset != NULL && strcmp (codeset, "US-ASCII") == 0) { const char *locale; static char buf[2 + 10 + 1]; locale = getenv ("LC_ALL"); if (locale == NULL || locale[0] == '\0') { locale = getenv ("LC_CTYPE"); if (locale == NULL || locale[0] == '\0') locale = getenv ("LANG"); } if (locale != NULL && locale[0] != '\0') { /* If the locale name contains an encoding after the dot, return it. */ const char *dot = strchr (locale, '.'); if (dot != NULL) { const char *modifier; dot++; /* Look for the possible @... trailer and remove it, if any. */ modifier = strchr (dot, '@'); if (modifier == NULL) return dot; if (modifier - dot < sizeof (buf)) { memcpy (buf, dot, modifier - dot); buf [modifier - dot] = '\0'; return buf; } } } /* Woe32 has a function returning the locale's codepage as a number: GetACP(). This encoding is used by Cygwin, unless the user has set the environment variable CYGWIN=codepage:oem (which very few people do). Output directed to console windows needs to be converted (to GetOEMCP() if the console is using a raster font, or to GetConsoleOutputCP() if it is using a TrueType font). Cygwin does this conversion transparently (see winsup/cygwin/fhandler_console.cc), converting to GetConsoleOutputCP(). This leads to correct results, except when SetConsoleOutputCP has been called and a raster font is in use. */ sprintf (buf, "CP%u", GetACP ()); codeset = buf; } # endif # else /* On old systems which lack it, use setlocale or getenv. */ const char *locale = NULL; /* But most old systems don't have a complete set of locales. Some (like SunOS 4 or DJGPP) have only the C locale. Therefore we don't use setlocale here; it would return "C" when it doesn't support the locale name the user has set. */ # if 0 locale = setlocale (LC_CTYPE, NULL); # endif if (locale == NULL || locale[0] == '\0') { locale = getenv ("LC_ALL"); if (locale == NULL || locale[0] == '\0') { locale = getenv ("LC_CTYPE"); if (locale == NULL || locale[0] == '\0') locale = getenv ("LANG"); } } /* On some old systems, one used to set locale = "iso8859_1". On others, you set it to "language_COUNTRY.charset". In any case, we resolve it through the charset.alias file. */ codeset = locale; # endif #elif defined WIN32_NATIVE static char buf[2 + 10 + 1]; /* Woe32 has a function returning the locale's codepage as a number: GetACP(). When the output goes to a console window, it needs to be provided in GetOEMCP() encoding if the console is using a raster font, or in GetConsoleOutputCP() encoding if it is using a TrueType font. But in GUI programs and for output sent to files and pipes, GetACP() encoding is the best bet. */ sprintf (buf, "CP%u", GetACP ()); codeset = buf; #elif defined OS2 const char *locale; static char buf[2 + 10 + 1]; ULONG cp[3]; ULONG cplen; /* Allow user to override the codeset, as set in the operating system, with standard language environment variables. */ locale = getenv ("LC_ALL"); if (locale == NULL || locale[0] == '\0') { locale = getenv ("LC_CTYPE"); if (locale == NULL || locale[0] == '\0') locale = getenv ("LANG"); } if (locale != NULL && locale[0] != '\0') { /* If the locale name contains an encoding after the dot, return it. */ const char *dot = strchr (locale, '.'); if (dot != NULL) { const char *modifier; dot++; /* Look for the possible @... trailer and remove it, if any. */ modifier = strchr (dot, '@'); if (modifier == NULL) return dot; if (modifier - dot < sizeof (buf)) { memcpy (buf, dot, modifier - dot); buf [modifier - dot] = '\0'; return buf; } } /* Resolve through the charset.alias file. */ codeset = locale; } else { /* OS/2 has a function returning the locale's codepage as a number. */ if (DosQueryCp (sizeof (cp), cp, &cplen)) codeset = ""; else { sprintf (buf, "CP%u", cp[0]); codeset = buf; } } #endif if (codeset == NULL) /* The canonical name cannot be determined. */ codeset = ""; /* Resolve alias. */ for (aliases = get_charset_aliases (); *aliases != '\0'; aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1) if (strcmp (codeset, aliases) == 0 || (aliases[0] == '*' && aliases[1] == '\0')) { codeset = aliases + strlen (aliases) + 1; break; } /* Don't return an empty string. GNU libc and GNU libiconv interpret the empty string as denoting "the locale's character encoding", thus GNU libiconv would call this function a second time. */ if (codeset[0] == '\0') codeset = "ASCII"; return codeset; } gliv-1.9.7/intl/eval-plural.h0000644000076400007640000000534211465576131013317 0ustar gg/* Plural expression evaluation. Copyright (C) 2000-2003, 2007 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef STATIC #define STATIC static #endif /* Evaluate the plural expression and return an index value. */ STATIC unsigned long int internal_function plural_eval (const struct expression *pexp, unsigned long int n) { switch (pexp->nargs) { case 0: switch (pexp->operation) { case var: return n; case num: return pexp->val.num; default: break; } /* NOTREACHED */ break; case 1: { /* pexp->operation must be lnot. */ unsigned long int arg = plural_eval (pexp->val.args[0], n); return ! arg; } case 2: { unsigned long int leftarg = plural_eval (pexp->val.args[0], n); if (pexp->operation == lor) return leftarg || plural_eval (pexp->val.args[1], n); else if (pexp->operation == land) return leftarg && plural_eval (pexp->val.args[1], n); else { unsigned long int rightarg = plural_eval (pexp->val.args[1], n); switch (pexp->operation) { case mult: return leftarg * rightarg; case divide: #if !INTDIV0_RAISES_SIGFPE if (rightarg == 0) raise (SIGFPE); #endif return leftarg / rightarg; case module: #if !INTDIV0_RAISES_SIGFPE if (rightarg == 0) raise (SIGFPE); #endif return leftarg % rightarg; case plus: return leftarg + rightarg; case minus: return leftarg - rightarg; case less_than: return leftarg < rightarg; case greater_than: return leftarg > rightarg; case less_or_equal: return leftarg <= rightarg; case greater_or_equal: return leftarg >= rightarg; case equal: return leftarg == rightarg; case not_equal: return leftarg != rightarg; default: break; } } /* NOTREACHED */ break; } case 3: { /* pexp->operation must be qmop. */ unsigned long int boolarg = plural_eval (pexp->val.args[0], n); return plural_eval (pexp->val.args[boolarg ? 1 : 2], n); } } /* NOTREACHED */ return 0; } gliv-1.9.7/intl/hash-string.h0000644000076400007640000000256611465576131013327 0ustar gg/* Description of GNU message catalog format: string hashing function. Copyright (C) 1995, 1997-1998, 2000-2003, 2005 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* @@ end of prolog @@ */ /* We assume to have `unsigned long int' value with at least 32 bits. */ #define HASHWORDBITS 32 #ifndef _LIBC # ifdef IN_LIBINTL # define __hash_string libintl_hash_string # else # define __hash_string hash_string # endif #endif /* Defines the so called `hashpjw' function by P.J. Weinberger [see Aho/Sethi/Ullman, COMPILERS: Principles, Techniques and Tools, 1986, 1987 Bell Telephone Laboratories, Inc.] */ extern unsigned long int __hash_string (const char *str_param); gliv-1.9.7/intl/config.charset0000755000076400007640000005514611465576131013554 0ustar gg#! /bin/sh # Output a system dependent table of character encoding aliases. # # Copyright (C) 2000-2004, 2006-2010 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU Library 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 # Library General Public License for more details. # # You should have received a copy of the GNU Library General Public # License along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, # USA. # # The table consists of lines of the form # ALIAS CANONICAL # # ALIAS is the (system dependent) result of "nl_langinfo (CODESET)". # ALIAS is compared in a case sensitive way. # # CANONICAL is the GNU canonical name for this character encoding. # It must be an encoding supported by libiconv. Support by GNU libc is # also desirable. CANONICAL is case insensitive. Usually an upper case # MIME charset name is preferred. # The current list of GNU canonical charset names is as follows. # # name MIME? used by which systems # ASCII, ANSI_X3.4-1968 glibc solaris freebsd netbsd darwin cygwin # ISO-8859-1 Y glibc aix hpux irix osf solaris freebsd netbsd openbsd darwin cygwin # ISO-8859-2 Y glibc aix hpux irix osf solaris freebsd netbsd openbsd darwin cygwin # ISO-8859-3 Y glibc solaris cygwin # ISO-8859-4 Y osf solaris freebsd netbsd openbsd darwin # ISO-8859-5 Y glibc aix hpux irix osf solaris freebsd netbsd openbsd darwin cygwin # ISO-8859-6 Y glibc aix hpux solaris cygwin # ISO-8859-7 Y glibc aix hpux irix osf solaris netbsd openbsd darwin cygwin # ISO-8859-8 Y glibc aix hpux osf solaris cygwin # ISO-8859-9 Y glibc aix hpux irix osf solaris darwin cygwin # ISO-8859-13 glibc netbsd openbsd darwin cygwin # ISO-8859-14 glibc cygwin # ISO-8859-15 glibc aix osf solaris freebsd netbsd openbsd darwin cygwin # KOI8-R Y glibc solaris freebsd netbsd openbsd darwin # KOI8-U Y glibc freebsd netbsd openbsd darwin cygwin # KOI8-T glibc # CP437 dos # CP775 dos # CP850 aix osf dos # CP852 dos # CP855 dos # CP856 aix # CP857 dos # CP861 dos # CP862 dos # CP864 dos # CP865 dos # CP866 freebsd netbsd openbsd darwin dos # CP869 dos # CP874 woe32 dos # CP922 aix # CP932 aix cygwin woe32 dos # CP943 aix # CP949 osf darwin woe32 dos # CP950 woe32 dos # CP1046 aix # CP1124 aix # CP1125 dos # CP1129 aix # CP1131 darwin # CP1250 woe32 # CP1251 glibc solaris netbsd openbsd darwin cygwin woe32 # CP1252 aix woe32 # CP1253 woe32 # CP1254 woe32 # CP1255 glibc woe32 # CP1256 woe32 # CP1257 woe32 # GB2312 Y glibc aix hpux irix solaris freebsd netbsd darwin # EUC-JP Y glibc aix hpux irix osf solaris freebsd netbsd darwin # EUC-KR Y glibc aix hpux irix osf solaris freebsd netbsd darwin cygwin # EUC-TW glibc aix hpux irix osf solaris netbsd # BIG5 Y glibc aix hpux osf solaris freebsd netbsd darwin cygwin # BIG5-HKSCS glibc solaris darwin # GBK glibc aix osf solaris darwin cygwin woe32 dos # GB18030 glibc solaris netbsd darwin # SHIFT_JIS Y hpux osf solaris freebsd netbsd darwin # JOHAB glibc solaris woe32 # TIS-620 glibc aix hpux osf solaris cygwin # VISCII Y glibc # TCVN5712-1 glibc # ARMSCII-8 glibc darwin # GEORGIAN-PS glibc cygwin # PT154 glibc # HP-ROMAN8 hpux # HP-ARABIC8 hpux # HP-GREEK8 hpux # HP-HEBREW8 hpux # HP-TURKISH8 hpux # HP-KANA8 hpux # DEC-KANJI osf # DEC-HANYU osf # UTF-8 Y glibc aix hpux osf solaris netbsd darwin cygwin # # Note: Names which are not marked as being a MIME name should not be used in # Internet protocols for information interchange (mail, news, etc.). # # Note: ASCII and ANSI_X3.4-1968 are synonymous canonical names. Applications # must understand both names and treat them as equivalent. # # The first argument passed to this file is the canonical host specification, # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM host="$1" os=`echo "$host" | sed -e 's/^[^-]*-[^-]*-\(.*\)$/\1/'` echo "# This file contains a table of character encoding aliases," echo "# suitable for operating system '${os}'." echo "# It was automatically generated from config.charset." # List of references, updated during installation: echo "# Packages using this file: " case "$os" in linux-gnulibc1*) # Linux libc5 doesn't have nl_langinfo(CODESET); therefore # localcharset.c falls back to using the full locale name # from the environment variables. echo "C ASCII" echo "POSIX ASCII" for l in af af_ZA ca ca_ES da da_DK de de_AT de_BE de_CH de_DE de_LU \ en en_AU en_BW en_CA en_DK en_GB en_IE en_NZ en_US en_ZA \ en_ZW es es_AR es_BO es_CL es_CO es_DO es_EC es_ES es_GT \ es_HN es_MX es_PA es_PE es_PY es_SV es_US es_UY es_VE et \ et_EE eu eu_ES fi fi_FI fo fo_FO fr fr_BE fr_CA fr_CH fr_FR \ fr_LU ga ga_IE gl gl_ES id id_ID in in_ID is is_IS it it_CH \ it_IT kl kl_GL nl nl_BE nl_NL no no_NO pt pt_BR pt_PT sv \ sv_FI sv_SE; do echo "$l ISO-8859-1" echo "$l.iso-8859-1 ISO-8859-1" echo "$l.iso-8859-15 ISO-8859-15" echo "$l.iso-8859-15@euro ISO-8859-15" echo "$l@euro ISO-8859-15" echo "$l.cp-437 CP437" echo "$l.cp-850 CP850" echo "$l.cp-1252 CP1252" echo "$l.cp-1252@euro CP1252" #echo "$l.atari-st ATARI-ST" # not a commonly used encoding echo "$l.utf-8 UTF-8" echo "$l.utf-8@euro UTF-8" done for l in cs cs_CZ hr hr_HR hu hu_HU pl pl_PL ro ro_RO sk sk_SK sl \ sl_SI sr sr_CS sr_YU; do echo "$l ISO-8859-2" echo "$l.iso-8859-2 ISO-8859-2" echo "$l.cp-852 CP852" echo "$l.cp-1250 CP1250" echo "$l.utf-8 UTF-8" done for l in mk mk_MK ru ru_RU; do echo "$l ISO-8859-5" echo "$l.iso-8859-5 ISO-8859-5" echo "$l.koi8-r KOI8-R" echo "$l.cp-866 CP866" echo "$l.cp-1251 CP1251" echo "$l.utf-8 UTF-8" done for l in ar ar_SA; do echo "$l ISO-8859-6" echo "$l.iso-8859-6 ISO-8859-6" echo "$l.cp-864 CP864" #echo "$l.cp-868 CP868" # not a commonly used encoding echo "$l.cp-1256 CP1256" echo "$l.utf-8 UTF-8" done for l in el el_GR gr gr_GR; do echo "$l ISO-8859-7" echo "$l.iso-8859-7 ISO-8859-7" echo "$l.cp-869 CP869" echo "$l.cp-1253 CP1253" echo "$l.cp-1253@euro CP1253" echo "$l.utf-8 UTF-8" echo "$l.utf-8@euro UTF-8" done for l in he he_IL iw iw_IL; do echo "$l ISO-8859-8" echo "$l.iso-8859-8 ISO-8859-8" echo "$l.cp-862 CP862" echo "$l.cp-1255 CP1255" echo "$l.utf-8 UTF-8" done for l in tr tr_TR; do echo "$l ISO-8859-9" echo "$l.iso-8859-9 ISO-8859-9" echo "$l.cp-857 CP857" echo "$l.cp-1254 CP1254" echo "$l.utf-8 UTF-8" done for l in lt lt_LT lv lv_LV; do #echo "$l BALTIC" # not a commonly used encoding, wrong encoding name echo "$l ISO-8859-13" done for l in ru_UA uk uk_UA; do echo "$l KOI8-U" done for l in zh zh_CN; do #echo "$l GB_2312-80" # not a commonly used encoding, wrong encoding name echo "$l GB2312" done for l in ja ja_JP ja_JP.EUC; do echo "$l EUC-JP" done for l in ko ko_KR; do echo "$l EUC-KR" done for l in th th_TH; do echo "$l TIS-620" done for l in fa fa_IR; do #echo "$l ISIRI-3342" # a broken encoding echo "$l.utf-8 UTF-8" done ;; linux* | *-gnu*) # With glibc-2.1 or newer, we don't need any canonicalization, # because glibc has iconv and both glibc and libiconv support all # GNU canonical names directly. Therefore, the Makefile does not # need to install the alias file at all. # The following applies only to glibc-2.0.x and older libcs. echo "ISO_646.IRV:1983 ASCII" ;; aix*) echo "ISO8859-1 ISO-8859-1" echo "ISO8859-2 ISO-8859-2" echo "ISO8859-5 ISO-8859-5" echo "ISO8859-6 ISO-8859-6" echo "ISO8859-7 ISO-8859-7" echo "ISO8859-8 ISO-8859-8" echo "ISO8859-9 ISO-8859-9" echo "ISO8859-15 ISO-8859-15" echo "IBM-850 CP850" echo "IBM-856 CP856" echo "IBM-921 ISO-8859-13" echo "IBM-922 CP922" echo "IBM-932 CP932" echo "IBM-943 CP943" echo "IBM-1046 CP1046" echo "IBM-1124 CP1124" echo "IBM-1129 CP1129" echo "IBM-1252 CP1252" echo "IBM-eucCN GB2312" echo "IBM-eucJP EUC-JP" echo "IBM-eucKR EUC-KR" echo "IBM-eucTW EUC-TW" echo "big5 BIG5" echo "GBK GBK" echo "TIS-620 TIS-620" echo "UTF-8 UTF-8" ;; hpux*) echo "iso88591 ISO-8859-1" echo "iso88592 ISO-8859-2" echo "iso88595 ISO-8859-5" echo "iso88596 ISO-8859-6" echo "iso88597 ISO-8859-7" echo "iso88598 ISO-8859-8" echo "iso88599 ISO-8859-9" echo "iso885915 ISO-8859-15" echo "roman8 HP-ROMAN8" echo "arabic8 HP-ARABIC8" echo "greek8 HP-GREEK8" echo "hebrew8 HP-HEBREW8" echo "turkish8 HP-TURKISH8" echo "kana8 HP-KANA8" echo "tis620 TIS-620" echo "big5 BIG5" echo "eucJP EUC-JP" echo "eucKR EUC-KR" echo "eucTW EUC-TW" echo "hp15CN GB2312" #echo "ccdc ?" # what is this? echo "SJIS SHIFT_JIS" echo "utf8 UTF-8" ;; irix*) echo "ISO8859-1 ISO-8859-1" echo "ISO8859-2 ISO-8859-2" echo "ISO8859-5 ISO-8859-5" echo "ISO8859-7 ISO-8859-7" echo "ISO8859-9 ISO-8859-9" echo "eucCN GB2312" echo "eucJP EUC-JP" echo "eucKR EUC-KR" echo "eucTW EUC-TW" ;; osf*) echo "ISO8859-1 ISO-8859-1" echo "ISO8859-2 ISO-8859-2" echo "ISO8859-4 ISO-8859-4" echo "ISO8859-5 ISO-8859-5" echo "ISO8859-7 ISO-8859-7" echo "ISO8859-8 ISO-8859-8" echo "ISO8859-9 ISO-8859-9" echo "ISO8859-15 ISO-8859-15" echo "cp850 CP850" echo "big5 BIG5" echo "dechanyu DEC-HANYU" echo "dechanzi GB2312" echo "deckanji DEC-KANJI" echo "deckorean EUC-KR" echo "eucJP EUC-JP" echo "eucKR EUC-KR" echo "eucTW EUC-TW" echo "GBK GBK" echo "KSC5601 CP949" echo "sdeckanji EUC-JP" echo "SJIS SHIFT_JIS" echo "TACTIS TIS-620" echo "UTF-8 UTF-8" ;; solaris*) echo "646 ASCII" echo "ISO8859-1 ISO-8859-1" echo "ISO8859-2 ISO-8859-2" echo "ISO8859-3 ISO-8859-3" echo "ISO8859-4 ISO-8859-4" echo "ISO8859-5 ISO-8859-5" echo "ISO8859-6 ISO-8859-6" echo "ISO8859-7 ISO-8859-7" echo "ISO8859-8 ISO-8859-8" echo "ISO8859-9 ISO-8859-9" echo "ISO8859-15 ISO-8859-15" echo "koi8-r KOI8-R" echo "ansi-1251 CP1251" echo "BIG5 BIG5" echo "Big5-HKSCS BIG5-HKSCS" echo "gb2312 GB2312" echo "GBK GBK" echo "GB18030 GB18030" echo "cns11643 EUC-TW" echo "5601 EUC-KR" echo "ko_KR.johap92 JOHAB" echo "eucJP EUC-JP" echo "PCK SHIFT_JIS" echo "TIS620.2533 TIS-620" #echo "sun_eu_greek ?" # what is this? echo "UTF-8 UTF-8" ;; freebsd* | os2*) # FreeBSD 4.2 doesn't have nl_langinfo(CODESET); therefore # localcharset.c falls back to using the full locale name # from the environment variables. # Likewise for OS/2. OS/2 has XFree86 just like FreeBSD. Just # reuse FreeBSD's locale data for OS/2. echo "C ASCII" echo "US-ASCII ASCII" for l in la_LN lt_LN; do echo "$l.ASCII ASCII" done for l in da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES \ fi_FI fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT la_LN \ lt_LN nl_BE nl_NL no_NO pt_PT sv_SE; do echo "$l.ISO_8859-1 ISO-8859-1" echo "$l.DIS_8859-15 ISO-8859-15" done for l in cs_CZ hr_HR hu_HU la_LN lt_LN pl_PL sl_SI; do echo "$l.ISO_8859-2 ISO-8859-2" done for l in la_LN lt_LT; do echo "$l.ISO_8859-4 ISO-8859-4" done for l in ru_RU ru_SU; do echo "$l.KOI8-R KOI8-R" echo "$l.ISO_8859-5 ISO-8859-5" echo "$l.CP866 CP866" done echo "uk_UA.KOI8-U KOI8-U" echo "zh_TW.BIG5 BIG5" echo "zh_TW.Big5 BIG5" echo "zh_CN.EUC GB2312" echo "ja_JP.EUC EUC-JP" echo "ja_JP.SJIS SHIFT_JIS" echo "ja_JP.Shift_JIS SHIFT_JIS" echo "ko_KR.EUC EUC-KR" ;; netbsd*) echo "646 ASCII" echo "ISO8859-1 ISO-8859-1" echo "ISO8859-2 ISO-8859-2" echo "ISO8859-4 ISO-8859-4" echo "ISO8859-5 ISO-8859-5" echo "ISO8859-7 ISO-8859-7" echo "ISO8859-13 ISO-8859-13" echo "ISO8859-15 ISO-8859-15" echo "eucCN GB2312" echo "eucJP EUC-JP" echo "eucKR EUC-KR" echo "eucTW EUC-TW" echo "BIG5 BIG5" echo "SJIS SHIFT_JIS" ;; openbsd*) echo "646 ASCII" echo "ISO8859-1 ISO-8859-1" echo "ISO8859-2 ISO-8859-2" echo "ISO8859-4 ISO-8859-4" echo "ISO8859-5 ISO-8859-5" echo "ISO8859-7 ISO-8859-7" echo "ISO8859-13 ISO-8859-13" echo "ISO8859-15 ISO-8859-15" ;; darwin[56]*) # Darwin 6.8 doesn't have nl_langinfo(CODESET); therefore # localcharset.c falls back to using the full locale name # from the environment variables. echo "C ASCII" for l in en_AU en_CA en_GB en_US la_LN; do echo "$l.US-ASCII ASCII" done for l in da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES \ fi_FI fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT nl_BE \ nl_NL no_NO pt_PT sv_SE; do echo "$l ISO-8859-1" echo "$l.ISO8859-1 ISO-8859-1" echo "$l.ISO8859-15 ISO-8859-15" done for l in la_LN; do echo "$l.ISO8859-1 ISO-8859-1" echo "$l.ISO8859-15 ISO-8859-15" done for l in cs_CZ hr_HR hu_HU la_LN pl_PL sl_SI; do echo "$l.ISO8859-2 ISO-8859-2" done for l in la_LN lt_LT; do echo "$l.ISO8859-4 ISO-8859-4" done for l in ru_RU; do echo "$l.KOI8-R KOI8-R" echo "$l.ISO8859-5 ISO-8859-5" echo "$l.CP866 CP866" done for l in bg_BG; do echo "$l.CP1251 CP1251" done echo "uk_UA.KOI8-U KOI8-U" echo "zh_TW.BIG5 BIG5" echo "zh_TW.Big5 BIG5" echo "zh_CN.EUC GB2312" echo "ja_JP.EUC EUC-JP" echo "ja_JP.SJIS SHIFT_JIS" echo "ko_KR.EUC EUC-KR" ;; darwin*) # Darwin 7.5 has nl_langinfo(CODESET), but sometimes its value is # useless: # - It returns the empty string when LANG is set to a locale of the # form ll_CC, although ll_CC/LC_CTYPE is a symlink to an UTF-8 # LC_CTYPE file. # - The environment variables LANG, LC_CTYPE, LC_ALL are not set by # the system; nl_langinfo(CODESET) returns "US-ASCII" in this case. # - The documentation says: # "... all code that calls BSD system routines should ensure # that the const *char parameters of these routines are in UTF-8 # encoding. All BSD system functions expect their string # parameters to be in UTF-8 encoding and nothing else." # It also says # "An additional caveat is that string parameters for files, # paths, and other file-system entities must be in canonical # UTF-8. In a canonical UTF-8 Unicode string, all decomposable # characters are decomposed ..." # but this is not true: You can pass non-decomposed UTF-8 strings # to file system functions, and it is the OS which will convert # them to decomposed UTF-8 before accessing the file system. # - The Apple Terminal application displays UTF-8 by default. # - However, other applications are free to use different encodings: # - xterm uses ISO-8859-1 by default. # - TextEdit uses MacRoman by default. # We prefer UTF-8 over decomposed UTF-8-MAC because one should # minimize the use of decomposed Unicode. Unfortunately, through the # Darwin file system, decomposed UTF-8 strings are leaked into user # space nevertheless. # Then there are also the locales with encodings other than US-ASCII # and UTF-8. These locales can be occasionally useful to users (e.g. # when grepping through ISO-8859-1 encoded text files), when all their # file names are in US-ASCII. echo "ISO8859-1 ISO-8859-1" echo "ISO8859-2 ISO-8859-2" echo "ISO8859-4 ISO-8859-4" echo "ISO8859-5 ISO-8859-5" echo "ISO8859-7 ISO-8859-7" echo "ISO8859-9 ISO-8859-9" echo "ISO8859-13 ISO-8859-13" echo "ISO8859-15 ISO-8859-15" echo "KOI8-R KOI8-R" echo "KOI8-U KOI8-U" echo "CP866 CP866" echo "CP949 CP949" echo "CP1131 CP1131" echo "CP1251 CP1251" echo "eucCN GB2312" echo "GB2312 GB2312" echo "eucJP EUC-JP" echo "eucKR EUC-KR" echo "Big5 BIG5" echo "Big5HKSCS BIG5-HKSCS" echo "GBK GBK" echo "GB18030 GB18030" echo "SJIS SHIFT_JIS" echo "ARMSCII-8 ARMSCII-8" echo "PT154 PT154" #echo "ISCII-DEV ?" echo "* UTF-8" ;; beos* | haiku*) # BeOS and Haiku have a single locale, and it has UTF-8 encoding. echo "* UTF-8" ;; msdosdjgpp*) # DJGPP 2.03 doesn't have nl_langinfo(CODESET); therefore # localcharset.c falls back to using the full locale name # from the environment variables. echo "#" echo "# The encodings given here may not all be correct." echo "# If you find that the encoding given for your language and" echo "# country is not the one your DOS machine actually uses, just" echo "# correct it in this file, and send a mail to" echo "# Juan Manuel Guerrero " echo "# and Bruno Haible ." echo "#" echo "C ASCII" # ISO-8859-1 languages echo "ca CP850" echo "ca_ES CP850" echo "da CP865" # not CP850 ?? echo "da_DK CP865" # not CP850 ?? echo "de CP850" echo "de_AT CP850" echo "de_CH CP850" echo "de_DE CP850" echo "en CP850" echo "en_AU CP850" # not CP437 ?? echo "en_CA CP850" echo "en_GB CP850" echo "en_NZ CP437" echo "en_US CP437" echo "en_ZA CP850" # not CP437 ?? echo "es CP850" echo "es_AR CP850" echo "es_BO CP850" echo "es_CL CP850" echo "es_CO CP850" echo "es_CR CP850" echo "es_CU CP850" echo "es_DO CP850" echo "es_EC CP850" echo "es_ES CP850" echo "es_GT CP850" echo "es_HN CP850" echo "es_MX CP850" echo "es_NI CP850" echo "es_PA CP850" echo "es_PY CP850" echo "es_PE CP850" echo "es_SV CP850" echo "es_UY CP850" echo "es_VE CP850" echo "et CP850" echo "et_EE CP850" echo "eu CP850" echo "eu_ES CP850" echo "fi CP850" echo "fi_FI CP850" echo "fr CP850" echo "fr_BE CP850" echo "fr_CA CP850" echo "fr_CH CP850" echo "fr_FR CP850" echo "ga CP850" echo "ga_IE CP850" echo "gd CP850" echo "gd_GB CP850" echo "gl CP850" echo "gl_ES CP850" echo "id CP850" # not CP437 ?? echo "id_ID CP850" # not CP437 ?? echo "is CP861" # not CP850 ?? echo "is_IS CP861" # not CP850 ?? echo "it CP850" echo "it_CH CP850" echo "it_IT CP850" echo "lt CP775" echo "lt_LT CP775" echo "lv CP775" echo "lv_LV CP775" echo "nb CP865" # not CP850 ?? echo "nb_NO CP865" # not CP850 ?? echo "nl CP850" echo "nl_BE CP850" echo "nl_NL CP850" echo "nn CP865" # not CP850 ?? echo "nn_NO CP865" # not CP850 ?? echo "no CP865" # not CP850 ?? echo "no_NO CP865" # not CP850 ?? echo "pt CP850" echo "pt_BR CP850" echo "pt_PT CP850" echo "sv CP850" echo "sv_SE CP850" # ISO-8859-2 languages echo "cs CP852" echo "cs_CZ CP852" echo "hr CP852" echo "hr_HR CP852" echo "hu CP852" echo "hu_HU CP852" echo "pl CP852" echo "pl_PL CP852" echo "ro CP852" echo "ro_RO CP852" echo "sk CP852" echo "sk_SK CP852" echo "sl CP852" echo "sl_SI CP852" echo "sq CP852" echo "sq_AL CP852" echo "sr CP852" # CP852 or CP866 or CP855 ?? echo "sr_CS CP852" # CP852 or CP866 or CP855 ?? echo "sr_YU CP852" # CP852 or CP866 or CP855 ?? # ISO-8859-3 languages echo "mt CP850" echo "mt_MT CP850" # ISO-8859-5 languages echo "be CP866" echo "be_BE CP866" echo "bg CP866" # not CP855 ?? echo "bg_BG CP866" # not CP855 ?? echo "mk CP866" # not CP855 ?? echo "mk_MK CP866" # not CP855 ?? echo "ru CP866" echo "ru_RU CP866" echo "uk CP1125" echo "uk_UA CP1125" # ISO-8859-6 languages echo "ar CP864" echo "ar_AE CP864" echo "ar_DZ CP864" echo "ar_EG CP864" echo "ar_IQ CP864" echo "ar_IR CP864" echo "ar_JO CP864" echo "ar_KW CP864" echo "ar_MA CP864" echo "ar_OM CP864" echo "ar_QA CP864" echo "ar_SA CP864" echo "ar_SY CP864" # ISO-8859-7 languages echo "el CP869" echo "el_GR CP869" # ISO-8859-8 languages echo "he CP862" echo "he_IL CP862" # ISO-8859-9 languages echo "tr CP857" echo "tr_TR CP857" # Japanese echo "ja CP932" echo "ja_JP CP932" # Chinese echo "zh_CN GBK" echo "zh_TW CP950" # not CP938 ?? # Korean echo "kr CP949" # not CP934 ?? echo "kr_KR CP949" # not CP934 ?? # Thai echo "th CP874" echo "th_TH CP874" # Other echo "eo CP850" echo "eo_EO CP850" ;; esac gliv-1.9.7/intl/vasnwprintf.h0000644000076400007640000000330611465576131013452 0ustar gg/* vswprintf with automatic memory allocation. Copyright (C) 2002-2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _VASNWPRINTF_H #define _VASNWPRINTF_H /* Get va_list. */ #include /* Get wchar_t, size_t. */ #include #ifdef __cplusplus extern "C" { #endif /* Write formatted output to a string dynamically allocated with malloc(). You can pass a preallocated buffer for the result in RESULTBUF and its size in *LENGTHP; otherwise you pass RESULTBUF = NULL. If successful, return the address of the string (this may be = RESULTBUF if no dynamic memory allocation was necessary) and set *LENGTHP to the number of resulting bytes, excluding the trailing NUL. Upon error, set errno and return NULL. */ extern wchar_t * asnwprintf (wchar_t *resultbuf, size_t *lengthp, const wchar_t *format, ...); extern wchar_t * vasnwprintf (wchar_t *resultbuf, size_t *lengthp, const wchar_t *format, va_list args); #ifdef __cplusplus } #endif #endif /* _VASNWPRINTF_H */ gliv-1.9.7/intl/vasnprintf.c0000644000076400007640000066217611465576131013276 0ustar gg/* vsprintf with automatic memory allocation. Copyright (C) 1999, 2002-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* This file can be parametrized with the following macros: VASNPRINTF The name of the function being defined. FCHAR_T The element type of the format string. DCHAR_T The element type of the destination (result) string. FCHAR_T_ONLY_ASCII Set to 1 to enable verification that all characters in the format string are ASCII. MUST be set if FCHAR_T and DCHAR_T are not the same type. DIRECTIVE Structure denoting a format directive. Depends on FCHAR_T. DIRECTIVES Structure denoting the set of format directives of a format string. Depends on FCHAR_T. PRINTF_PARSE Function that parses a format string. Depends on FCHAR_T. DCHAR_CPY memcpy like function for DCHAR_T[] arrays. DCHAR_SET memset like function for DCHAR_T[] arrays. DCHAR_MBSNLEN mbsnlen like function for DCHAR_T[] arrays. SNPRINTF The system's snprintf (or similar) function. This may be either snprintf or swprintf. TCHAR_T The element type of the argument and result string of the said SNPRINTF function. This may be either char or wchar_t. The code exploits that sizeof (TCHAR_T) | sizeof (DCHAR_T) and alignof (TCHAR_T) <= alignof (DCHAR_T). DCHAR_IS_TCHAR Set to 1 if DCHAR_T and TCHAR_T are the same type. DCHAR_CONV_FROM_ENCODING A function to convert from char[] to DCHAR[]. DCHAR_IS_UINT8_T Set to 1 if DCHAR_T is uint8_t. DCHAR_IS_UINT16_T Set to 1 if DCHAR_T is uint16_t. DCHAR_IS_UINT32_T Set to 1 if DCHAR_T is uint32_t. */ /* Tell glibc's to provide a prototype for snprintf(). This must come before because may include , and once has been included, it's too late. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif #ifndef VASNPRINTF # include #endif #ifndef IN_LIBINTL # include #endif /* Specification. */ #ifndef VASNPRINTF # if WIDE_CHAR_VERSION # include "vasnwprintf.h" # else # include "vasnprintf.h" # endif #endif #include /* localeconv() */ #include /* snprintf(), sprintf() */ #include /* abort(), malloc(), realloc(), free() */ #include /* memcpy(), strlen() */ #include /* errno */ #include /* CHAR_BIT */ #include /* DBL_MAX_EXP, LDBL_MAX_EXP */ #if HAVE_NL_LANGINFO # include #endif #ifndef VASNPRINTF # if WIDE_CHAR_VERSION # include "wprintf-parse.h" # else # include "printf-parse.h" # endif #endif /* Checked size_t computations. */ #include "xsize.h" #if (NEED_PRINTF_DOUBLE || NEED_PRINTF_LONG_DOUBLE) && !defined IN_LIBINTL # include # include "float+.h" #endif #if (NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE) && !defined IN_LIBINTL # include # include "isnand-nolibm.h" #endif #if (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE) && !defined IN_LIBINTL # include # include "isnanl-nolibm.h" # include "fpucw.h" #endif #if (NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_DOUBLE) && !defined IN_LIBINTL # include # include "isnand-nolibm.h" # include "printf-frexp.h" #endif #if (NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_LONG_DOUBLE) && !defined IN_LIBINTL # include # include "isnanl-nolibm.h" # include "printf-frexpl.h" # include "fpucw.h" #endif /* Default parameters. */ #ifndef VASNPRINTF # if WIDE_CHAR_VERSION # define VASNPRINTF vasnwprintf # define FCHAR_T wchar_t # define DCHAR_T wchar_t # define TCHAR_T wchar_t # define DCHAR_IS_TCHAR 1 # define DIRECTIVE wchar_t_directive # define DIRECTIVES wchar_t_directives # define PRINTF_PARSE wprintf_parse # define DCHAR_CPY wmemcpy # define DCHAR_SET wmemset # else # define VASNPRINTF vasnprintf # define FCHAR_T char # define DCHAR_T char # define TCHAR_T char # define DCHAR_IS_TCHAR 1 # define DIRECTIVE char_directive # define DIRECTIVES char_directives # define PRINTF_PARSE printf_parse # define DCHAR_CPY memcpy # define DCHAR_SET memset # endif #endif #if WIDE_CHAR_VERSION /* TCHAR_T is wchar_t. */ # define USE_SNPRINTF 1 # if HAVE_DECL__SNWPRINTF /* On Windows, the function swprintf() has a different signature than on Unix; we use the function _snwprintf() or - on mingw - snwprintf() instead. The mingw function snwprintf() has fewer bugs than the MSVCRT function _snwprintf(), so prefer that. */ # if defined __MINGW32__ # define SNPRINTF snwprintf # else # define SNPRINTF _snwprintf # endif # else /* Unix. */ # define SNPRINTF swprintf # endif #else /* TCHAR_T is char. */ /* Use snprintf if it exists under the name 'snprintf' or '_snprintf'. But don't use it on BeOS, since BeOS snprintf produces no output if the size argument is >= 0x3000000. Also don't use it on Linux libc5, since there snprintf with size = 1 writes any output without bounds, like sprintf. */ # if (HAVE_DECL__SNPRINTF || HAVE_SNPRINTF) && !defined __BEOS__ && !(__GNU_LIBRARY__ == 1) # define USE_SNPRINTF 1 # else # define USE_SNPRINTF 0 # endif # if HAVE_DECL__SNPRINTF /* Windows. The mingw function snprintf() has fewer bugs than the MSVCRT function _snprintf(), so prefer that. */ # if defined __MINGW32__ # define SNPRINTF snprintf /* Here we need to call the native snprintf, not rpl_snprintf. */ # undef snprintf # else # define SNPRINTF _snprintf # endif # else /* Unix. */ # define SNPRINTF snprintf /* Here we need to call the native snprintf, not rpl_snprintf. */ # undef snprintf # endif #endif /* Here we need to call the native sprintf, not rpl_sprintf. */ #undef sprintf /* GCC >= 4.0 with -Wall emits unjustified "... may be used uninitialized" warnings in this file. Use -Dlint to suppress them. */ #ifdef lint # define IF_LINT(Code) Code #else # define IF_LINT(Code) /* empty */ #endif /* Avoid some warnings from "gcc -Wshadow". This file doesn't use the exp() and remainder() functions. */ #undef exp #define exp expo #undef remainder #define remainder rem #if (!USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99) && !WIDE_CHAR_VERSION # if (HAVE_STRNLEN && !defined _AIX) # define local_strnlen strnlen # else # ifndef local_strnlen_defined # define local_strnlen_defined 1 static size_t local_strnlen (const char *string, size_t maxlen) { const char *end = memchr (string, '\0', maxlen); return end ? (size_t) (end - string) : maxlen; } # endif # endif #endif #if (((!USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99) && WIDE_CHAR_VERSION) || ((!USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || (NEED_PRINTF_DIRECTIVE_LS && !defined IN_LIBINTL)) && !WIDE_CHAR_VERSION && DCHAR_IS_TCHAR)) && HAVE_WCHAR_T # if HAVE_WCSLEN # define local_wcslen wcslen # else /* Solaris 2.5.1 has wcslen() in a separate library libw.so. To avoid a dependency towards this library, here is a local substitute. Define this substitute only once, even if this file is included twice in the same compilation unit. */ # ifndef local_wcslen_defined # define local_wcslen_defined 1 static size_t local_wcslen (const wchar_t *s) { const wchar_t *ptr; for (ptr = s; *ptr != (wchar_t) 0; ptr++) ; return ptr - s; } # endif # endif #endif #if (!USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99) && HAVE_WCHAR_T && WIDE_CHAR_VERSION # if HAVE_WCSNLEN # define local_wcsnlen wcsnlen # else # ifndef local_wcsnlen_defined # define local_wcsnlen_defined 1 static size_t local_wcsnlen (const wchar_t *s, size_t maxlen) { const wchar_t *ptr; for (ptr = s; maxlen > 0 && *ptr != (wchar_t) 0; ptr++, maxlen--) ; return ptr - s; } # endif # endif #endif #if (NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE || NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE) && !defined IN_LIBINTL /* Determine the decimal-point character according to the current locale. */ # ifndef decimal_point_char_defined # define decimal_point_char_defined 1 static char decimal_point_char (void) { const char *point; /* Determine it in a multithread-safe way. We know nl_langinfo is multithread-safe on glibc systems and MacOS X systems, but is not required to be multithread-safe by POSIX. sprintf(), however, is multithread-safe. localeconv() is rarely multithread-safe. */ # if HAVE_NL_LANGINFO && (__GLIBC__ || (defined __APPLE__ && defined __MACH__)) point = nl_langinfo (RADIXCHAR); # elif 1 char pointbuf[5]; sprintf (pointbuf, "%#.0f", 1.0); point = &pointbuf[1]; # else point = localeconv () -> decimal_point; # endif /* The decimal point is always a single byte: either '.' or ','. */ return (point[0] != '\0' ? point[0] : '.'); } # endif #endif #if NEED_PRINTF_INFINITE_DOUBLE && !NEED_PRINTF_DOUBLE && !defined IN_LIBINTL /* Equivalent to !isfinite(x) || x == 0, but does not require libm. */ static int is_infinite_or_zero (double x) { return isnand (x) || x + x == x; } #endif #if NEED_PRINTF_INFINITE_LONG_DOUBLE && !NEED_PRINTF_LONG_DOUBLE && !defined IN_LIBINTL /* Equivalent to !isfinite(x) || x == 0, but does not require libm. */ static int is_infinite_or_zerol (long double x) { return isnanl (x) || x + x == x; } #endif #if (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_DOUBLE) && !defined IN_LIBINTL /* Converting 'long double' to decimal without rare rounding bugs requires real bignums. We use the naming conventions of GNU gmp, but vastly simpler (and slower) algorithms. */ typedef unsigned int mp_limb_t; # define GMP_LIMB_BITS 32 typedef int mp_limb_verify[2 * (sizeof (mp_limb_t) * CHAR_BIT == GMP_LIMB_BITS) - 1]; typedef unsigned long long mp_twolimb_t; # define GMP_TWOLIMB_BITS 64 typedef int mp_twolimb_verify[2 * (sizeof (mp_twolimb_t) * CHAR_BIT == GMP_TWOLIMB_BITS) - 1]; /* Representation of a bignum >= 0. */ typedef struct { size_t nlimbs; mp_limb_t *limbs; /* Bits in little-endian order, allocated with malloc(). */ } mpn_t; /* Compute the product of two bignums >= 0. Return the allocated memory in case of success, NULL in case of memory allocation failure. */ static void * multiply (mpn_t src1, mpn_t src2, mpn_t *dest) { const mp_limb_t *p1; const mp_limb_t *p2; size_t len1; size_t len2; if (src1.nlimbs <= src2.nlimbs) { len1 = src1.nlimbs; p1 = src1.limbs; len2 = src2.nlimbs; p2 = src2.limbs; } else { len1 = src2.nlimbs; p1 = src2.limbs; len2 = src1.nlimbs; p2 = src1.limbs; } /* Now 0 <= len1 <= len2. */ if (len1 == 0) { /* src1 or src2 is zero. */ dest->nlimbs = 0; dest->limbs = (mp_limb_t *) malloc (1); } else { /* Here 1 <= len1 <= len2. */ size_t dlen; mp_limb_t *dp; size_t k, i, j; dlen = len1 + len2; dp = (mp_limb_t *) malloc (dlen * sizeof (mp_limb_t)); if (dp == NULL) return NULL; for (k = len2; k > 0; ) dp[--k] = 0; for (i = 0; i < len1; i++) { mp_limb_t digit1 = p1[i]; mp_twolimb_t carry = 0; for (j = 0; j < len2; j++) { mp_limb_t digit2 = p2[j]; carry += (mp_twolimb_t) digit1 * (mp_twolimb_t) digit2; carry += dp[i + j]; dp[i + j] = (mp_limb_t) carry; carry = carry >> GMP_LIMB_BITS; } dp[i + len2] = (mp_limb_t) carry; } /* Normalise. */ while (dlen > 0 && dp[dlen - 1] == 0) dlen--; dest->nlimbs = dlen; dest->limbs = dp; } return dest->limbs; } /* Compute the quotient of a bignum a >= 0 and a bignum b > 0. a is written as a = q * b + r with 0 <= r < b. q is the quotient, r the remainder. Finally, round-to-even is performed: If r > b/2 or if r = b/2 and q is odd, q is incremented. Return the allocated memory in case of success, NULL in case of memory allocation failure. */ static void * divide (mpn_t a, mpn_t b, mpn_t *q) { /* Algorithm: First normalise a and b: a=[a[m-1],...,a[0]], b=[b[n-1],...,b[0]] with m>=0 and n>0 (in base beta = 2^GMP_LIMB_BITS). If m=n=1, perform a single-precision division: r:=0, j:=m, while j>0 do {Here (q[m-1]*beta^(m-1)+...+q[j]*beta^j) * b[0] + r*beta^j = = a[m-1]*beta^(m-1)+...+a[j]*beta^j und 0<=r=n>1, perform a multiple-precision division: We have a/b < beta^(m-n+1). s:=intDsize-1-(highest bit in b[n-1]), 0<=s=beta/2. For j=m-n,...,0: {Here 0 <= r < b*beta^(j+1).} Compute q* : q* := floor((r[j+n]*beta+r[j+n-1])/b[n-1]). In case of overflow (q* >= beta) set q* := beta-1. Compute c2 := ((r[j+n]*beta+r[j+n-1]) - q* * b[n-1])*beta + r[j+n-2] and c3 := b[n-2] * q*. {We have 0 <= c2 < 2*beta^2, even 0 <= c2 < beta^2 if no overflow occurred. Furthermore 0 <= c3 < beta^2. If there was overflow and r[j+n]*beta+r[j+n-1] - q* * b[n-1] >= beta, i.e. c2 >= beta^2, the next test can be skipped.} While c3 > c2, {Here 0 <= c2 < c3 < beta^2} Put q* := q* - 1, c2 := c2 + b[n-1]*beta, c3 := c3 - b[n-2]. If q* > 0: Put r := r - b * q* * beta^j. In detail: [r[n+j],...,r[j]] := [r[n+j],...,r[j]] - q* * [b[n-1],...,b[0]]. hence: u:=0, for i:=0 to n-1 do u := u + q* * b[i], r[j+i]:=r[j+i]-(u mod beta) (+ beta, if carry), u:=u div beta (+ 1, if carry in subtraction) r[n+j]:=r[n+j]-u. {Since always u = (q* * [b[i-1],...,b[0]] div beta^i) + 1 < q* + 1 <= beta, the carry u does not overflow.} If a negative carry occurs, put q* := q* - 1 and [r[n+j],...,r[j]] := [r[n+j],...,r[j]] + [0,b[n-1],...,b[0]]. Set q[j] := q*. Normalise [q[m-n],..,q[0]]; this yields the quotient q. Shift [r[n-1],...,r[0]] right by s bits and normalise; this yields the rest r. The room for q[j] can be allocated at the memory location of r[n+j]. Finally, round-to-even: Shift r left by 1 bit. If r > b or if r = b and q[0] is odd, q := q+1. */ const mp_limb_t *a_ptr = a.limbs; size_t a_len = a.nlimbs; const mp_limb_t *b_ptr = b.limbs; size_t b_len = b.nlimbs; mp_limb_t *roomptr; mp_limb_t *tmp_roomptr = NULL; mp_limb_t *q_ptr; size_t q_len; mp_limb_t *r_ptr; size_t r_len; /* Allocate room for a_len+2 digits. (Need a_len+1 digits for the real division and 1 more digit for the final rounding of q.) */ roomptr = (mp_limb_t *) malloc ((a_len + 2) * sizeof (mp_limb_t)); if (roomptr == NULL) return NULL; /* Normalise a. */ while (a_len > 0 && a_ptr[a_len - 1] == 0) a_len--; /* Normalise b. */ for (;;) { if (b_len == 0) /* Division by zero. */ abort (); if (b_ptr[b_len - 1] == 0) b_len--; else break; } /* Here m = a_len >= 0 and n = b_len > 0. */ if (a_len < b_len) { /* m beta^(m-2) <= a/b < beta^m */ r_ptr = roomptr; q_ptr = roomptr + 1; { mp_limb_t den = b_ptr[0]; mp_limb_t remainder = 0; const mp_limb_t *sourceptr = a_ptr + a_len; mp_limb_t *destptr = q_ptr + a_len; size_t count; for (count = a_len; count > 0; count--) { mp_twolimb_t num = ((mp_twolimb_t) remainder << GMP_LIMB_BITS) | *--sourceptr; *--destptr = num / den; remainder = num % den; } /* Normalise and store r. */ if (remainder > 0) { r_ptr[0] = remainder; r_len = 1; } else r_len = 0; /* Normalise q. */ q_len = a_len; if (q_ptr[q_len - 1] == 0) q_len--; } } else { /* n>1: multiple precision division. beta^(m-1) <= a < beta^m, beta^(n-1) <= b < beta^n ==> beta^(m-n-1) <= a/b < beta^(m-n+1). */ /* Determine s. */ size_t s; { mp_limb_t msd = b_ptr[b_len - 1]; /* = b[n-1], > 0 */ s = 31; if (msd >= 0x10000) { msd = msd >> 16; s -= 16; } if (msd >= 0x100) { msd = msd >> 8; s -= 8; } if (msd >= 0x10) { msd = msd >> 4; s -= 4; } if (msd >= 0x4) { msd = msd >> 2; s -= 2; } if (msd >= 0x2) { msd = msd >> 1; s -= 1; } } /* 0 <= s < GMP_LIMB_BITS. Copy b, shifting it left by s bits. */ if (s > 0) { tmp_roomptr = (mp_limb_t *) malloc (b_len * sizeof (mp_limb_t)); if (tmp_roomptr == NULL) { free (roomptr); return NULL; } { const mp_limb_t *sourceptr = b_ptr; mp_limb_t *destptr = tmp_roomptr; mp_twolimb_t accu = 0; size_t count; for (count = b_len; count > 0; count--) { accu += (mp_twolimb_t) *sourceptr++ << s; *destptr++ = (mp_limb_t) accu; accu = accu >> GMP_LIMB_BITS; } /* accu must be zero, since that was how s was determined. */ if (accu != 0) abort (); } b_ptr = tmp_roomptr; } /* Copy a, shifting it left by s bits, yields r. Memory layout: At the beginning: r = roomptr[0..a_len], at the end: r = roomptr[0..b_len-1], q = roomptr[b_len..a_len] */ r_ptr = roomptr; if (s == 0) { memcpy (r_ptr, a_ptr, a_len * sizeof (mp_limb_t)); r_ptr[a_len] = 0; } else { const mp_limb_t *sourceptr = a_ptr; mp_limb_t *destptr = r_ptr; mp_twolimb_t accu = 0; size_t count; for (count = a_len; count > 0; count--) { accu += (mp_twolimb_t) *sourceptr++ << s; *destptr++ = (mp_limb_t) accu; accu = accu >> GMP_LIMB_BITS; } *destptr++ = (mp_limb_t) accu; } q_ptr = roomptr + b_len; q_len = a_len - b_len + 1; /* q will have m-n+1 limbs */ { size_t j = a_len - b_len; /* m-n */ mp_limb_t b_msd = b_ptr[b_len - 1]; /* b[n-1] */ mp_limb_t b_2msd = b_ptr[b_len - 2]; /* b[n-2] */ mp_twolimb_t b_msdd = /* b[n-1]*beta+b[n-2] */ ((mp_twolimb_t) b_msd << GMP_LIMB_BITS) | b_2msd; /* Division loop, traversed m-n+1 times. j counts down, b is unchanged, beta/2 <= b[n-1] < beta. */ for (;;) { mp_limb_t q_star; mp_limb_t c1; if (r_ptr[j + b_len] < b_msd) /* r[j+n] < b[n-1] ? */ { /* Divide r[j+n]*beta+r[j+n-1] by b[n-1], no overflow. */ mp_twolimb_t num = ((mp_twolimb_t) r_ptr[j + b_len] << GMP_LIMB_BITS) | r_ptr[j + b_len - 1]; q_star = num / b_msd; c1 = num % b_msd; } else { /* Overflow, hence r[j+n]*beta+r[j+n-1] >= beta*b[n-1]. */ q_star = (mp_limb_t)~(mp_limb_t)0; /* q* = beta-1 */ /* Test whether r[j+n]*beta+r[j+n-1] - (beta-1)*b[n-1] >= beta <==> r[j+n]*beta+r[j+n-1] + b[n-1] >= beta*b[n-1]+beta <==> b[n-1] < floor((r[j+n]*beta+r[j+n-1]+b[n-1])/beta) {<= beta !}. If yes, jump directly to the subtraction loop. (Otherwise, r[j+n]*beta+r[j+n-1] - (beta-1)*b[n-1] < beta <==> floor((r[j+n]*beta+r[j+n-1]+b[n-1])/beta) = b[n-1] ) */ if (r_ptr[j + b_len] > b_msd || (c1 = r_ptr[j + b_len - 1] + b_msd) < b_msd) /* r[j+n] >= b[n-1]+1 or r[j+n] = b[n-1] and the addition r[j+n-1]+b[n-1] gives a carry. */ goto subtract; } /* q_star = q*, c1 = (r[j+n]*beta+r[j+n-1]) - q* * b[n-1] (>=0, 0, decrease it by b[n-1]*beta+b[n-2]. Because of b[n-1]*beta+b[n-2] >= beta^2/2 this can happen only twice. */ if (c3 > c2) { q_star = q_star - 1; /* q* := q* - 1 */ if (c3 - c2 > b_msdd) q_star = q_star - 1; /* q* := q* - 1 */ } } if (q_star > 0) subtract: { /* Subtract r := r - b * q* * beta^j. */ mp_limb_t cr; { const mp_limb_t *sourceptr = b_ptr; mp_limb_t *destptr = r_ptr + j; mp_twolimb_t carry = 0; size_t count; for (count = b_len; count > 0; count--) { /* Here 0 <= carry <= q*. */ carry = carry + (mp_twolimb_t) q_star * (mp_twolimb_t) *sourceptr++ + (mp_limb_t) ~(*destptr); /* Here 0 <= carry <= beta*q* + beta-1. */ *destptr++ = ~(mp_limb_t) carry; carry = carry >> GMP_LIMB_BITS; /* <= q* */ } cr = (mp_limb_t) carry; } /* Subtract cr from r_ptr[j + b_len], then forget about r_ptr[j + b_len]. */ if (cr > r_ptr[j + b_len]) { /* Subtraction gave a carry. */ q_star = q_star - 1; /* q* := q* - 1 */ /* Add b back. */ { const mp_limb_t *sourceptr = b_ptr; mp_limb_t *destptr = r_ptr + j; mp_limb_t carry = 0; size_t count; for (count = b_len; count > 0; count--) { mp_limb_t source1 = *sourceptr++; mp_limb_t source2 = *destptr; *destptr++ = source1 + source2 + carry; carry = (carry ? source1 >= (mp_limb_t) ~source2 : source1 > (mp_limb_t) ~source2); } } /* Forget about the carry and about r[j+n]. */ } } /* q* is determined. Store it as q[j]. */ q_ptr[j] = q_star; if (j == 0) break; j--; } } r_len = b_len; /* Normalise q. */ if (q_ptr[q_len - 1] == 0) q_len--; # if 0 /* Not needed here, since we need r only to compare it with b/2, and b is shifted left by s bits. */ /* Shift r right by s bits. */ if (s > 0) { mp_limb_t ptr = r_ptr + r_len; mp_twolimb_t accu = 0; size_t count; for (count = r_len; count > 0; count--) { accu = (mp_twolimb_t) (mp_limb_t) accu << GMP_LIMB_BITS; accu += (mp_twolimb_t) *--ptr << (GMP_LIMB_BITS - s); *ptr = (mp_limb_t) (accu >> GMP_LIMB_BITS); } } # endif /* Normalise r. */ while (r_len > 0 && r_ptr[r_len - 1] == 0) r_len--; } /* Compare r << 1 with b. */ if (r_len > b_len) goto increment_q; { size_t i; for (i = b_len;;) { mp_limb_t r_i = (i <= r_len && i > 0 ? r_ptr[i - 1] >> (GMP_LIMB_BITS - 1) : 0) | (i < r_len ? r_ptr[i] << 1 : 0); mp_limb_t b_i = (i < b_len ? b_ptr[i] : 0); if (r_i > b_i) goto increment_q; if (r_i < b_i) goto keep_q; if (i == 0) break; i--; } } if (q_len > 0 && ((q_ptr[0] & 1) != 0)) /* q is odd. */ increment_q: { size_t i; for (i = 0; i < q_len; i++) if (++(q_ptr[i]) != 0) goto keep_q; q_ptr[q_len++] = 1; } keep_q: if (tmp_roomptr != NULL) free (tmp_roomptr); q->limbs = q_ptr; q->nlimbs = q_len; return roomptr; } /* Convert a bignum a >= 0, multiplied with 10^extra_zeroes, to decimal representation. Destroys the contents of a. Return the allocated memory - containing the decimal digits in low-to-high order, terminated with a NUL character - in case of success, NULL in case of memory allocation failure. */ static char * convert_to_decimal (mpn_t a, size_t extra_zeroes) { mp_limb_t *a_ptr = a.limbs; size_t a_len = a.nlimbs; /* 0.03345 is slightly larger than log(2)/(9*log(10)). */ size_t c_len = 9 * ((size_t)(a_len * (GMP_LIMB_BITS * 0.03345f)) + 1); char *c_ptr = (char *) malloc (xsum (c_len, extra_zeroes)); if (c_ptr != NULL) { char *d_ptr = c_ptr; for (; extra_zeroes > 0; extra_zeroes--) *d_ptr++ = '0'; while (a_len > 0) { /* Divide a by 10^9, in-place. */ mp_limb_t remainder = 0; mp_limb_t *ptr = a_ptr + a_len; size_t count; for (count = a_len; count > 0; count--) { mp_twolimb_t num = ((mp_twolimb_t) remainder << GMP_LIMB_BITS) | *--ptr; *ptr = num / 1000000000; remainder = num % 1000000000; } /* Store the remainder as 9 decimal digits. */ for (count = 9; count > 0; count--) { *d_ptr++ = '0' + (remainder % 10); remainder = remainder / 10; } /* Normalize a. */ if (a_ptr[a_len - 1] == 0) a_len--; } /* Remove leading zeroes. */ while (d_ptr > c_ptr && d_ptr[-1] == '0') d_ptr--; /* But keep at least one zero. */ if (d_ptr == c_ptr) *d_ptr++ = '0'; /* Terminate the string. */ *d_ptr = '\0'; } return c_ptr; } # if NEED_PRINTF_LONG_DOUBLE /* Assuming x is finite and >= 0: write x as x = 2^e * m, where m is a bignum. Return the allocated memory in case of success, NULL in case of memory allocation failure. */ static void * decode_long_double (long double x, int *ep, mpn_t *mp) { mpn_t m; int exp; long double y; size_t i; /* Allocate memory for result. */ m.nlimbs = (LDBL_MANT_BIT + GMP_LIMB_BITS - 1) / GMP_LIMB_BITS; m.limbs = (mp_limb_t *) malloc (m.nlimbs * sizeof (mp_limb_t)); if (m.limbs == NULL) return NULL; /* Split into exponential part and mantissa. */ y = frexpl (x, &exp); if (!(y >= 0.0L && y < 1.0L)) abort (); /* x = 2^exp * y = 2^(exp - LDBL_MANT_BIT) * (y * LDBL_MANT_BIT), and the latter is an integer. */ /* Convert the mantissa (y * LDBL_MANT_BIT) to a sequence of limbs. I'm not sure whether it's safe to cast a 'long double' value between 2^31 and 2^32 to 'unsigned int', therefore play safe and cast only 'long double' values between 0 and 2^16 (to 'unsigned int' or 'int', doesn't matter). */ # if (LDBL_MANT_BIT % GMP_LIMB_BITS) != 0 # if (LDBL_MANT_BIT % GMP_LIMB_BITS) > GMP_LIMB_BITS / 2 { mp_limb_t hi, lo; y *= (mp_limb_t) 1 << (LDBL_MANT_BIT % (GMP_LIMB_BITS / 2)); hi = (int) y; y -= hi; if (!(y >= 0.0L && y < 1.0L)) abort (); y *= (mp_limb_t) 1 << (GMP_LIMB_BITS / 2); lo = (int) y; y -= lo; if (!(y >= 0.0L && y < 1.0L)) abort (); m.limbs[LDBL_MANT_BIT / GMP_LIMB_BITS] = (hi << (GMP_LIMB_BITS / 2)) | lo; } # else { mp_limb_t d; y *= (mp_limb_t) 1 << (LDBL_MANT_BIT % GMP_LIMB_BITS); d = (int) y; y -= d; if (!(y >= 0.0L && y < 1.0L)) abort (); m.limbs[LDBL_MANT_BIT / GMP_LIMB_BITS] = d; } # endif # endif for (i = LDBL_MANT_BIT / GMP_LIMB_BITS; i > 0; ) { mp_limb_t hi, lo; y *= (mp_limb_t) 1 << (GMP_LIMB_BITS / 2); hi = (int) y; y -= hi; if (!(y >= 0.0L && y < 1.0L)) abort (); y *= (mp_limb_t) 1 << (GMP_LIMB_BITS / 2); lo = (int) y; y -= lo; if (!(y >= 0.0L && y < 1.0L)) abort (); m.limbs[--i] = (hi << (GMP_LIMB_BITS / 2)) | lo; } #if 0 /* On FreeBSD 6.1/x86, 'long double' numbers sometimes have excess precision. */ if (!(y == 0.0L)) abort (); #endif /* Normalise. */ while (m.nlimbs > 0 && m.limbs[m.nlimbs - 1] == 0) m.nlimbs--; *mp = m; *ep = exp - LDBL_MANT_BIT; return m.limbs; } # endif # if NEED_PRINTF_DOUBLE /* Assuming x is finite and >= 0: write x as x = 2^e * m, where m is a bignum. Return the allocated memory in case of success, NULL in case of memory allocation failure. */ static void * decode_double (double x, int *ep, mpn_t *mp) { mpn_t m; int exp; double y; size_t i; /* Allocate memory for result. */ m.nlimbs = (DBL_MANT_BIT + GMP_LIMB_BITS - 1) / GMP_LIMB_BITS; m.limbs = (mp_limb_t *) malloc (m.nlimbs * sizeof (mp_limb_t)); if (m.limbs == NULL) return NULL; /* Split into exponential part and mantissa. */ y = frexp (x, &exp); if (!(y >= 0.0 && y < 1.0)) abort (); /* x = 2^exp * y = 2^(exp - DBL_MANT_BIT) * (y * DBL_MANT_BIT), and the latter is an integer. */ /* Convert the mantissa (y * DBL_MANT_BIT) to a sequence of limbs. I'm not sure whether it's safe to cast a 'double' value between 2^31 and 2^32 to 'unsigned int', therefore play safe and cast only 'double' values between 0 and 2^16 (to 'unsigned int' or 'int', doesn't matter). */ # if (DBL_MANT_BIT % GMP_LIMB_BITS) != 0 # if (DBL_MANT_BIT % GMP_LIMB_BITS) > GMP_LIMB_BITS / 2 { mp_limb_t hi, lo; y *= (mp_limb_t) 1 << (DBL_MANT_BIT % (GMP_LIMB_BITS / 2)); hi = (int) y; y -= hi; if (!(y >= 0.0 && y < 1.0)) abort (); y *= (mp_limb_t) 1 << (GMP_LIMB_BITS / 2); lo = (int) y; y -= lo; if (!(y >= 0.0 && y < 1.0)) abort (); m.limbs[DBL_MANT_BIT / GMP_LIMB_BITS] = (hi << (GMP_LIMB_BITS / 2)) | lo; } # else { mp_limb_t d; y *= (mp_limb_t) 1 << (DBL_MANT_BIT % GMP_LIMB_BITS); d = (int) y; y -= d; if (!(y >= 0.0 && y < 1.0)) abort (); m.limbs[DBL_MANT_BIT / GMP_LIMB_BITS] = d; } # endif # endif for (i = DBL_MANT_BIT / GMP_LIMB_BITS; i > 0; ) { mp_limb_t hi, lo; y *= (mp_limb_t) 1 << (GMP_LIMB_BITS / 2); hi = (int) y; y -= hi; if (!(y >= 0.0 && y < 1.0)) abort (); y *= (mp_limb_t) 1 << (GMP_LIMB_BITS / 2); lo = (int) y; y -= lo; if (!(y >= 0.0 && y < 1.0)) abort (); m.limbs[--i] = (hi << (GMP_LIMB_BITS / 2)) | lo; } if (!(y == 0.0)) abort (); /* Normalise. */ while (m.nlimbs > 0 && m.limbs[m.nlimbs - 1] == 0) m.nlimbs--; *mp = m; *ep = exp - DBL_MANT_BIT; return m.limbs; } # endif /* Assuming x = 2^e * m is finite and >= 0, and n is an integer: Returns the decimal representation of round (x * 10^n). Return the allocated memory - containing the decimal digits in low-to-high order, terminated with a NUL character - in case of success, NULL in case of memory allocation failure. */ static char * scale10_round_decimal_decoded (int e, mpn_t m, void *memory, int n) { int s; size_t extra_zeroes; unsigned int abs_n; unsigned int abs_s; mp_limb_t *pow5_ptr; size_t pow5_len; unsigned int s_limbs; unsigned int s_bits; mpn_t pow5; mpn_t z; void *z_memory; char *digits; if (memory == NULL) return NULL; /* x = 2^e * m, hence y = round (2^e * 10^n * m) = round (2^(e+n) * 5^n * m) = round (2^s * 5^n * m). */ s = e + n; extra_zeroes = 0; /* Factor out a common power of 10 if possible. */ if (s > 0 && n > 0) { extra_zeroes = (s < n ? s : n); s -= extra_zeroes; n -= extra_zeroes; } /* Here y = round (2^s * 5^n * m) * 10^extra_zeroes. Before converting to decimal, we need to compute z = round (2^s * 5^n * m). */ /* Compute 5^|n|, possibly shifted by |s| bits if n and s have the same sign. 2.322 is slightly larger than log(5)/log(2). */ abs_n = (n >= 0 ? n : -n); abs_s = (s >= 0 ? s : -s); pow5_ptr = (mp_limb_t *) malloc (((int)(abs_n * (2.322f / GMP_LIMB_BITS)) + 1 + abs_s / GMP_LIMB_BITS + 1) * sizeof (mp_limb_t)); if (pow5_ptr == NULL) { free (memory); return NULL; } /* Initialize with 1. */ pow5_ptr[0] = 1; pow5_len = 1; /* Multiply with 5^|n|. */ if (abs_n > 0) { static mp_limb_t const small_pow5[13 + 1] = { 1, 5, 25, 125, 625, 3125, 15625, 78125, 390625, 1953125, 9765625, 48828125, 244140625, 1220703125 }; unsigned int n13; for (n13 = 0; n13 <= abs_n; n13 += 13) { mp_limb_t digit1 = small_pow5[n13 + 13 <= abs_n ? 13 : abs_n - n13]; size_t j; mp_twolimb_t carry = 0; for (j = 0; j < pow5_len; j++) { mp_limb_t digit2 = pow5_ptr[j]; carry += (mp_twolimb_t) digit1 * (mp_twolimb_t) digit2; pow5_ptr[j] = (mp_limb_t) carry; carry = carry >> GMP_LIMB_BITS; } if (carry > 0) pow5_ptr[pow5_len++] = (mp_limb_t) carry; } } s_limbs = abs_s / GMP_LIMB_BITS; s_bits = abs_s % GMP_LIMB_BITS; if (n >= 0 ? s >= 0 : s <= 0) { /* Multiply with 2^|s|. */ if (s_bits > 0) { mp_limb_t *ptr = pow5_ptr; mp_twolimb_t accu = 0; size_t count; for (count = pow5_len; count > 0; count--) { accu += (mp_twolimb_t) *ptr << s_bits; *ptr++ = (mp_limb_t) accu; accu = accu >> GMP_LIMB_BITS; } if (accu > 0) { *ptr = (mp_limb_t) accu; pow5_len++; } } if (s_limbs > 0) { size_t count; for (count = pow5_len; count > 0;) { count--; pow5_ptr[s_limbs + count] = pow5_ptr[count]; } for (count = s_limbs; count > 0;) { count--; pow5_ptr[count] = 0; } pow5_len += s_limbs; } pow5.limbs = pow5_ptr; pow5.nlimbs = pow5_len; if (n >= 0) { /* Multiply m with pow5. No division needed. */ z_memory = multiply (m, pow5, &z); } else { /* Divide m by pow5 and round. */ z_memory = divide (m, pow5, &z); } } else { pow5.limbs = pow5_ptr; pow5.nlimbs = pow5_len; if (n >= 0) { /* n >= 0, s < 0. Multiply m with pow5, then divide by 2^|s|. */ mpn_t numerator; mpn_t denominator; void *tmp_memory; tmp_memory = multiply (m, pow5, &numerator); if (tmp_memory == NULL) { free (pow5_ptr); free (memory); return NULL; } /* Construct 2^|s|. */ { mp_limb_t *ptr = pow5_ptr + pow5_len; size_t i; for (i = 0; i < s_limbs; i++) ptr[i] = 0; ptr[s_limbs] = (mp_limb_t) 1 << s_bits; denominator.limbs = ptr; denominator.nlimbs = s_limbs + 1; } z_memory = divide (numerator, denominator, &z); free (tmp_memory); } else { /* n < 0, s > 0. Multiply m with 2^s, then divide by pow5. */ mpn_t numerator; mp_limb_t *num_ptr; num_ptr = (mp_limb_t *) malloc ((m.nlimbs + s_limbs + 1) * sizeof (mp_limb_t)); if (num_ptr == NULL) { free (pow5_ptr); free (memory); return NULL; } { mp_limb_t *destptr = num_ptr; { size_t i; for (i = 0; i < s_limbs; i++) *destptr++ = 0; } if (s_bits > 0) { const mp_limb_t *sourceptr = m.limbs; mp_twolimb_t accu = 0; size_t count; for (count = m.nlimbs; count > 0; count--) { accu += (mp_twolimb_t) *sourceptr++ << s_bits; *destptr++ = (mp_limb_t) accu; accu = accu >> GMP_LIMB_BITS; } if (accu > 0) *destptr++ = (mp_limb_t) accu; } else { const mp_limb_t *sourceptr = m.limbs; size_t count; for (count = m.nlimbs; count > 0; count--) *destptr++ = *sourceptr++; } numerator.limbs = num_ptr; numerator.nlimbs = destptr - num_ptr; } z_memory = divide (numerator, pow5, &z); free (num_ptr); } } free (pow5_ptr); free (memory); /* Here y = round (x * 10^n) = z * 10^extra_zeroes. */ if (z_memory == NULL) return NULL; digits = convert_to_decimal (z, extra_zeroes); free (z_memory); return digits; } # if NEED_PRINTF_LONG_DOUBLE /* Assuming x is finite and >= 0, and n is an integer: Returns the decimal representation of round (x * 10^n). Return the allocated memory - containing the decimal digits in low-to-high order, terminated with a NUL character - in case of success, NULL in case of memory allocation failure. */ static char * scale10_round_decimal_long_double (long double x, int n) { int e IF_LINT(= 0); mpn_t m; void *memory = decode_long_double (x, &e, &m); return scale10_round_decimal_decoded (e, m, memory, n); } # endif # if NEED_PRINTF_DOUBLE /* Assuming x is finite and >= 0, and n is an integer: Returns the decimal representation of round (x * 10^n). Return the allocated memory - containing the decimal digits in low-to-high order, terminated with a NUL character - in case of success, NULL in case of memory allocation failure. */ static char * scale10_round_decimal_double (double x, int n) { int e IF_LINT(= 0); mpn_t m; void *memory = decode_double (x, &e, &m); return scale10_round_decimal_decoded (e, m, memory, n); } # endif # if NEED_PRINTF_LONG_DOUBLE /* Assuming x is finite and > 0: Return an approximation for n with 10^n <= x < 10^(n+1). The approximation is usually the right n, but may be off by 1 sometimes. */ static int floorlog10l (long double x) { int exp; long double y; double z; double l; /* Split into exponential part and mantissa. */ y = frexpl (x, &exp); if (!(y >= 0.0L && y < 1.0L)) abort (); if (y == 0.0L) return INT_MIN; if (y < 0.5L) { while (y < (1.0L / (1 << (GMP_LIMB_BITS / 2)) / (1 << (GMP_LIMB_BITS / 2)))) { y *= 1.0L * (1 << (GMP_LIMB_BITS / 2)) * (1 << (GMP_LIMB_BITS / 2)); exp -= GMP_LIMB_BITS; } if (y < (1.0L / (1 << 16))) { y *= 1.0L * (1 << 16); exp -= 16; } if (y < (1.0L / (1 << 8))) { y *= 1.0L * (1 << 8); exp -= 8; } if (y < (1.0L / (1 << 4))) { y *= 1.0L * (1 << 4); exp -= 4; } if (y < (1.0L / (1 << 2))) { y *= 1.0L * (1 << 2); exp -= 2; } if (y < (1.0L / (1 << 1))) { y *= 1.0L * (1 << 1); exp -= 1; } } if (!(y >= 0.5L && y < 1.0L)) abort (); /* Compute an approximation for l = log2(x) = exp + log2(y). */ l = exp; z = y; if (z < 0.70710678118654752444) { z *= 1.4142135623730950488; l -= 0.5; } if (z < 0.8408964152537145431) { z *= 1.1892071150027210667; l -= 0.25; } if (z < 0.91700404320467123175) { z *= 1.0905077326652576592; l -= 0.125; } if (z < 0.9576032806985736469) { z *= 1.0442737824274138403; l -= 0.0625; } /* Now 0.95 <= z <= 1.01. */ z = 1 - z; /* log2(1-z) = 1/log(2) * (- z - z^2/2 - z^3/3 - z^4/4 - ...) Four terms are enough to get an approximation with error < 10^-7. */ l -= 1.4426950408889634074 * z * (1.0 + z * (0.5 + z * ((1.0 / 3) + z * 0.25))); /* Finally multiply with log(2)/log(10), yields an approximation for log10(x). */ l *= 0.30102999566398119523; /* Round down to the next integer. */ return (int) l + (l < 0 ? -1 : 0); } # endif # if NEED_PRINTF_DOUBLE /* Assuming x is finite and > 0: Return an approximation for n with 10^n <= x < 10^(n+1). The approximation is usually the right n, but may be off by 1 sometimes. */ static int floorlog10 (double x) { int exp; double y; double z; double l; /* Split into exponential part and mantissa. */ y = frexp (x, &exp); if (!(y >= 0.0 && y < 1.0)) abort (); if (y == 0.0) return INT_MIN; if (y < 0.5) { while (y < (1.0 / (1 << (GMP_LIMB_BITS / 2)) / (1 << (GMP_LIMB_BITS / 2)))) { y *= 1.0 * (1 << (GMP_LIMB_BITS / 2)) * (1 << (GMP_LIMB_BITS / 2)); exp -= GMP_LIMB_BITS; } if (y < (1.0 / (1 << 16))) { y *= 1.0 * (1 << 16); exp -= 16; } if (y < (1.0 / (1 << 8))) { y *= 1.0 * (1 << 8); exp -= 8; } if (y < (1.0 / (1 << 4))) { y *= 1.0 * (1 << 4); exp -= 4; } if (y < (1.0 / (1 << 2))) { y *= 1.0 * (1 << 2); exp -= 2; } if (y < (1.0 / (1 << 1))) { y *= 1.0 * (1 << 1); exp -= 1; } } if (!(y >= 0.5 && y < 1.0)) abort (); /* Compute an approximation for l = log2(x) = exp + log2(y). */ l = exp; z = y; if (z < 0.70710678118654752444) { z *= 1.4142135623730950488; l -= 0.5; } if (z < 0.8408964152537145431) { z *= 1.1892071150027210667; l -= 0.25; } if (z < 0.91700404320467123175) { z *= 1.0905077326652576592; l -= 0.125; } if (z < 0.9576032806985736469) { z *= 1.0442737824274138403; l -= 0.0625; } /* Now 0.95 <= z <= 1.01. */ z = 1 - z; /* log2(1-z) = 1/log(2) * (- z - z^2/2 - z^3/3 - z^4/4 - ...) Four terms are enough to get an approximation with error < 10^-7. */ l -= 1.4426950408889634074 * z * (1.0 + z * (0.5 + z * ((1.0 / 3) + z * 0.25))); /* Finally multiply with log(2)/log(10), yields an approximation for log10(x). */ l *= 0.30102999566398119523; /* Round down to the next integer. */ return (int) l + (l < 0 ? -1 : 0); } # endif /* Tests whether a string of digits consists of exactly PRECISION zeroes and a single '1' digit. */ static int is_borderline (const char *digits, size_t precision) { for (; precision > 0; precision--, digits++) if (*digits != '0') return 0; if (*digits != '1') return 0; digits++; return *digits == '\0'; } #endif #if !USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 /* Use a different function name, to make it possible that the 'wchar_t' parametrization and the 'char' parametrization get compiled in the same translation unit. */ # if WIDE_CHAR_VERSION # define MAX_ROOM_NEEDED wmax_room_needed # else # define MAX_ROOM_NEEDED max_room_needed # endif /* Returns the number of TCHAR_T units needed as temporary space for the result of sprintf or SNPRINTF of a single conversion directive. */ static inline size_t MAX_ROOM_NEEDED (const arguments *ap, size_t arg_index, FCHAR_T conversion, arg_type type, int flags, size_t width, int has_precision, size_t precision, int pad_ourselves) { size_t tmp_length; switch (conversion) { case 'd': case 'i': case 'u': # if HAVE_LONG_LONG_INT if (type == TYPE_LONGLONGINT || type == TYPE_ULONGLONGINT) tmp_length = (unsigned int) (sizeof (unsigned long long) * CHAR_BIT * 0.30103 /* binary -> decimal */ ) + 1; /* turn floor into ceil */ else # endif if (type == TYPE_LONGINT || type == TYPE_ULONGINT) tmp_length = (unsigned int) (sizeof (unsigned long) * CHAR_BIT * 0.30103 /* binary -> decimal */ ) + 1; /* turn floor into ceil */ else tmp_length = (unsigned int) (sizeof (unsigned int) * CHAR_BIT * 0.30103 /* binary -> decimal */ ) + 1; /* turn floor into ceil */ if (tmp_length < precision) tmp_length = precision; /* Multiply by 2, as an estimate for FLAG_GROUP. */ tmp_length = xsum (tmp_length, tmp_length); /* Add 1, to account for a leading sign. */ tmp_length = xsum (tmp_length, 1); break; case 'o': # if HAVE_LONG_LONG_INT if (type == TYPE_LONGLONGINT || type == TYPE_ULONGLONGINT) tmp_length = (unsigned int) (sizeof (unsigned long long) * CHAR_BIT * 0.333334 /* binary -> octal */ ) + 1; /* turn floor into ceil */ else # endif if (type == TYPE_LONGINT || type == TYPE_ULONGINT) tmp_length = (unsigned int) (sizeof (unsigned long) * CHAR_BIT * 0.333334 /* binary -> octal */ ) + 1; /* turn floor into ceil */ else tmp_length = (unsigned int) (sizeof (unsigned int) * CHAR_BIT * 0.333334 /* binary -> octal */ ) + 1; /* turn floor into ceil */ if (tmp_length < precision) tmp_length = precision; /* Add 1, to account for a leading sign. */ tmp_length = xsum (tmp_length, 1); break; case 'x': case 'X': # if HAVE_LONG_LONG_INT if (type == TYPE_LONGLONGINT || type == TYPE_ULONGLONGINT) tmp_length = (unsigned int) (sizeof (unsigned long long) * CHAR_BIT * 0.25 /* binary -> hexadecimal */ ) + 1; /* turn floor into ceil */ else # endif if (type == TYPE_LONGINT || type == TYPE_ULONGINT) tmp_length = (unsigned int) (sizeof (unsigned long) * CHAR_BIT * 0.25 /* binary -> hexadecimal */ ) + 1; /* turn floor into ceil */ else tmp_length = (unsigned int) (sizeof (unsigned int) * CHAR_BIT * 0.25 /* binary -> hexadecimal */ ) + 1; /* turn floor into ceil */ if (tmp_length < precision) tmp_length = precision; /* Add 2, to account for a leading sign or alternate form. */ tmp_length = xsum (tmp_length, 2); break; case 'f': case 'F': if (type == TYPE_LONGDOUBLE) tmp_length = (unsigned int) (LDBL_MAX_EXP * 0.30103 /* binary -> decimal */ * 2 /* estimate for FLAG_GROUP */ ) + 1 /* turn floor into ceil */ + 10; /* sign, decimal point etc. */ else tmp_length = (unsigned int) (DBL_MAX_EXP * 0.30103 /* binary -> decimal */ * 2 /* estimate for FLAG_GROUP */ ) + 1 /* turn floor into ceil */ + 10; /* sign, decimal point etc. */ tmp_length = xsum (tmp_length, precision); break; case 'e': case 'E': case 'g': case 'G': tmp_length = 12; /* sign, decimal point, exponent etc. */ tmp_length = xsum (tmp_length, precision); break; case 'a': case 'A': if (type == TYPE_LONGDOUBLE) tmp_length = (unsigned int) (LDBL_DIG * 0.831 /* decimal -> hexadecimal */ ) + 1; /* turn floor into ceil */ else tmp_length = (unsigned int) (DBL_DIG * 0.831 /* decimal -> hexadecimal */ ) + 1; /* turn floor into ceil */ if (tmp_length < precision) tmp_length = precision; /* Account for sign, decimal point etc. */ tmp_length = xsum (tmp_length, 12); break; case 'c': # if HAVE_WINT_T && !WIDE_CHAR_VERSION if (type == TYPE_WIDE_CHAR) tmp_length = MB_CUR_MAX; else # endif tmp_length = 1; break; case 's': # if HAVE_WCHAR_T if (type == TYPE_WIDE_STRING) { # if WIDE_CHAR_VERSION /* ISO C says about %ls in fwprintf: "If the precision is not specified or is greater than the size of the array, the array shall contain a null wide character." So if there is a precision, we must not use wcslen. */ const wchar_t *arg = ap->arg[arg_index].a.a_wide_string; if (has_precision) tmp_length = local_wcsnlen (arg, precision); else tmp_length = local_wcslen (arg); # else /* ISO C says about %ls in fprintf: "If a precision is specified, no more than that many bytes are written (including shift sequences, if any), and the array shall contain a null wide character if, to equal the multibyte character sequence length given by the precision, the function would need to access a wide character one past the end of the array." So if there is a precision, we must not use wcslen. */ /* This case has already been handled separately in VASNPRINTF. */ abort (); # endif } else # endif { # if WIDE_CHAR_VERSION /* ISO C says about %s in fwprintf: "If the precision is not specified or is greater than the size of the converted array, the converted array shall contain a null wide character." So if there is a precision, we must not use strlen. */ /* This case has already been handled separately in VASNPRINTF. */ abort (); # else /* ISO C says about %s in fprintf: "If the precision is not specified or greater than the size of the array, the array shall contain a null character." So if there is a precision, we must not use strlen. */ const char *arg = ap->arg[arg_index].a.a_string; if (has_precision) tmp_length = local_strnlen (arg, precision); else tmp_length = strlen (arg); # endif } break; case 'p': tmp_length = (unsigned int) (sizeof (void *) * CHAR_BIT * 0.25 /* binary -> hexadecimal */ ) + 1 /* turn floor into ceil */ + 2; /* account for leading 0x */ break; default: abort (); } if (!pad_ourselves) { # if ENABLE_UNISTDIO /* Padding considers the number of characters, therefore the number of elements after padding may be > max (tmp_length, width) but is certainly <= tmp_length + width. */ tmp_length = xsum (tmp_length, width); # else /* Padding considers the number of elements, says POSIX. */ if (tmp_length < width) tmp_length = width; # endif } tmp_length = xsum (tmp_length, 1); /* account for trailing NUL */ return tmp_length; } #endif DCHAR_T * VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp, const FCHAR_T *format, va_list args) { DIRECTIVES d; arguments a; if (PRINTF_PARSE (format, &d, &a) < 0) /* errno is already set. */ return NULL; #define CLEANUP() \ free (d.dir); \ if (a.arg) \ free (a.arg); if (PRINTF_FETCHARGS (args, &a) < 0) { CLEANUP (); errno = EINVAL; return NULL; } { size_t buf_neededlength; TCHAR_T *buf; TCHAR_T *buf_malloced; const FCHAR_T *cp; size_t i; DIRECTIVE *dp; /* Output string accumulator. */ DCHAR_T *result; size_t allocated; size_t length; /* Allocate a small buffer that will hold a directive passed to sprintf or snprintf. */ buf_neededlength = xsum4 (7, d.max_width_length, d.max_precision_length, 6); #if HAVE_ALLOCA if (buf_neededlength < 4000 / sizeof (TCHAR_T)) { buf = (TCHAR_T *) alloca (buf_neededlength * sizeof (TCHAR_T)); buf_malloced = NULL; } else #endif { size_t buf_memsize = xtimes (buf_neededlength, sizeof (TCHAR_T)); if (size_overflow_p (buf_memsize)) goto out_of_memory_1; buf = (TCHAR_T *) malloc (buf_memsize); if (buf == NULL) goto out_of_memory_1; buf_malloced = buf; } if (resultbuf != NULL) { result = resultbuf; allocated = *lengthp; } else { result = NULL; allocated = 0; } length = 0; /* Invariants: result is either == resultbuf or == NULL or malloc-allocated. If length > 0, then result != NULL. */ /* Ensures that allocated >= needed. Aborts through a jump to out_of_memory if needed is SIZE_MAX or otherwise too big. */ #define ENSURE_ALLOCATION(needed) \ if ((needed) > allocated) \ { \ size_t memory_size; \ DCHAR_T *memory; \ \ allocated = (allocated > 0 ? xtimes (allocated, 2) : 12); \ if ((needed) > allocated) \ allocated = (needed); \ memory_size = xtimes (allocated, sizeof (DCHAR_T)); \ if (size_overflow_p (memory_size)) \ goto out_of_memory; \ if (result == resultbuf || result == NULL) \ memory = (DCHAR_T *) malloc (memory_size); \ else \ memory = (DCHAR_T *) realloc (result, memory_size); \ if (memory == NULL) \ goto out_of_memory; \ if (result == resultbuf && length > 0) \ DCHAR_CPY (memory, result, length); \ result = memory; \ } for (cp = format, i = 0, dp = &d.dir[0]; ; cp = dp->dir_end, i++, dp++) { if (cp != dp->dir_start) { size_t n = dp->dir_start - cp; size_t augmented_length = xsum (length, n); ENSURE_ALLOCATION (augmented_length); /* This copies a piece of FCHAR_T[] into a DCHAR_T[]. Here we need that the format string contains only ASCII characters if FCHAR_T and DCHAR_T are not the same type. */ if (sizeof (FCHAR_T) == sizeof (DCHAR_T)) { DCHAR_CPY (result + length, (const DCHAR_T *) cp, n); length = augmented_length; } else { do result[length++] = (unsigned char) *cp++; while (--n > 0); } } if (i == d.count) break; /* Execute a single directive. */ if (dp->conversion == '%') { size_t augmented_length; if (!(dp->arg_index == ARG_NONE)) abort (); augmented_length = xsum (length, 1); ENSURE_ALLOCATION (augmented_length); result[length] = '%'; length = augmented_length; } else { if (!(dp->arg_index != ARG_NONE)) abort (); if (dp->conversion == 'n') { switch (a.arg[dp->arg_index].type) { case TYPE_COUNT_SCHAR_POINTER: *a.arg[dp->arg_index].a.a_count_schar_pointer = length; break; case TYPE_COUNT_SHORT_POINTER: *a.arg[dp->arg_index].a.a_count_short_pointer = length; break; case TYPE_COUNT_INT_POINTER: *a.arg[dp->arg_index].a.a_count_int_pointer = length; break; case TYPE_COUNT_LONGINT_POINTER: *a.arg[dp->arg_index].a.a_count_longint_pointer = length; break; #if HAVE_LONG_LONG_INT case TYPE_COUNT_LONGLONGINT_POINTER: *a.arg[dp->arg_index].a.a_count_longlongint_pointer = length; break; #endif default: abort (); } } #if ENABLE_UNISTDIO /* The unistdio extensions. */ else if (dp->conversion == 'U') { arg_type type = a.arg[dp->arg_index].type; int flags = dp->flags; int has_width; size_t width; int has_precision; size_t precision; has_width = 0; width = 0; if (dp->width_start != dp->width_end) { if (dp->width_arg_index != ARG_NONE) { int arg; if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) abort (); arg = a.arg[dp->width_arg_index].a.a_int; if (arg < 0) { /* "A negative field width is taken as a '-' flag followed by a positive field width." */ flags |= FLAG_LEFT; width = (unsigned int) (-arg); } else width = arg; } else { const FCHAR_T *digitp = dp->width_start; do width = xsum (xtimes (width, 10), *digitp++ - '0'); while (digitp != dp->width_end); } has_width = 1; } has_precision = 0; precision = 0; if (dp->precision_start != dp->precision_end) { if (dp->precision_arg_index != ARG_NONE) { int arg; if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) abort (); arg = a.arg[dp->precision_arg_index].a.a_int; /* "A negative precision is taken as if the precision were omitted." */ if (arg >= 0) { precision = arg; has_precision = 1; } } else { const FCHAR_T *digitp = dp->precision_start + 1; precision = 0; while (digitp != dp->precision_end) precision = xsum (xtimes (precision, 10), *digitp++ - '0'); has_precision = 1; } } switch (type) { case TYPE_U8_STRING: { const uint8_t *arg = a.arg[dp->arg_index].a.a_u8_string; const uint8_t *arg_end; size_t characters; if (has_precision) { /* Use only PRECISION characters, from the left. */ arg_end = arg; characters = 0; for (; precision > 0; precision--) { int count = u8_strmblen (arg_end); if (count == 0) break; if (count < 0) { if (!(result == resultbuf || result == NULL)) free (result); if (buf_malloced != NULL) free (buf_malloced); CLEANUP (); errno = EILSEQ; return NULL; } arg_end += count; characters++; } } else if (has_width) { /* Use the entire string, and count the number of characters. */ arg_end = arg; characters = 0; for (;;) { int count = u8_strmblen (arg_end); if (count == 0) break; if (count < 0) { if (!(result == resultbuf || result == NULL)) free (result); if (buf_malloced != NULL) free (buf_malloced); CLEANUP (); errno = EILSEQ; return NULL; } arg_end += count; characters++; } } else { /* Use the entire string. */ arg_end = arg + u8_strlen (arg); /* The number of characters doesn't matter. */ characters = 0; } if (has_width && width > characters && !(dp->flags & FLAG_LEFT)) { size_t n = width - characters; ENSURE_ALLOCATION (xsum (length, n)); DCHAR_SET (result + length, ' ', n); length += n; } # if DCHAR_IS_UINT8_T { size_t n = arg_end - arg; ENSURE_ALLOCATION (xsum (length, n)); DCHAR_CPY (result + length, arg, n); length += n; } # else { /* Convert. */ DCHAR_T *converted = result + length; size_t converted_len = allocated - length; # if DCHAR_IS_TCHAR /* Convert from UTF-8 to locale encoding. */ converted = u8_conv_to_encoding (locale_charset (), iconveh_question_mark, arg, arg_end - arg, NULL, converted, &converted_len); # else /* Convert from UTF-8 to UTF-16/UTF-32. */ converted = U8_TO_DCHAR (arg, arg_end - arg, converted, &converted_len); # endif if (converted == NULL) { int saved_errno = errno; if (!(result == resultbuf || result == NULL)) free (result); if (buf_malloced != NULL) free (buf_malloced); CLEANUP (); errno = saved_errno; return NULL; } if (converted != result + length) { ENSURE_ALLOCATION (xsum (length, converted_len)); DCHAR_CPY (result + length, converted, converted_len); free (converted); } length += converted_len; } # endif if (has_width && width > characters && (dp->flags & FLAG_LEFT)) { size_t n = width - characters; ENSURE_ALLOCATION (xsum (length, n)); DCHAR_SET (result + length, ' ', n); length += n; } } break; case TYPE_U16_STRING: { const uint16_t *arg = a.arg[dp->arg_index].a.a_u16_string; const uint16_t *arg_end; size_t characters; if (has_precision) { /* Use only PRECISION characters, from the left. */ arg_end = arg; characters = 0; for (; precision > 0; precision--) { int count = u16_strmblen (arg_end); if (count == 0) break; if (count < 0) { if (!(result == resultbuf || result == NULL)) free (result); if (buf_malloced != NULL) free (buf_malloced); CLEANUP (); errno = EILSEQ; return NULL; } arg_end += count; characters++; } } else if (has_width) { /* Use the entire string, and count the number of characters. */ arg_end = arg; characters = 0; for (;;) { int count = u16_strmblen (arg_end); if (count == 0) break; if (count < 0) { if (!(result == resultbuf || result == NULL)) free (result); if (buf_malloced != NULL) free (buf_malloced); CLEANUP (); errno = EILSEQ; return NULL; } arg_end += count; characters++; } } else { /* Use the entire string. */ arg_end = arg + u16_strlen (arg); /* The number of characters doesn't matter. */ characters = 0; } if (has_width && width > characters && !(dp->flags & FLAG_LEFT)) { size_t n = width - characters; ENSURE_ALLOCATION (xsum (length, n)); DCHAR_SET (result + length, ' ', n); length += n; } # if DCHAR_IS_UINT16_T { size_t n = arg_end - arg; ENSURE_ALLOCATION (xsum (length, n)); DCHAR_CPY (result + length, arg, n); length += n; } # else { /* Convert. */ DCHAR_T *converted = result + length; size_t converted_len = allocated - length; # if DCHAR_IS_TCHAR /* Convert from UTF-16 to locale encoding. */ converted = u16_conv_to_encoding (locale_charset (), iconveh_question_mark, arg, arg_end - arg, NULL, converted, &converted_len); # else /* Convert from UTF-16 to UTF-8/UTF-32. */ converted = U16_TO_DCHAR (arg, arg_end - arg, converted, &converted_len); # endif if (converted == NULL) { int saved_errno = errno; if (!(result == resultbuf || result == NULL)) free (result); if (buf_malloced != NULL) free (buf_malloced); CLEANUP (); errno = saved_errno; return NULL; } if (converted != result + length) { ENSURE_ALLOCATION (xsum (length, converted_len)); DCHAR_CPY (result + length, converted, converted_len); free (converted); } length += converted_len; } # endif if (has_width && width > characters && (dp->flags & FLAG_LEFT)) { size_t n = width - characters; ENSURE_ALLOCATION (xsum (length, n)); DCHAR_SET (result + length, ' ', n); length += n; } } break; case TYPE_U32_STRING: { const uint32_t *arg = a.arg[dp->arg_index].a.a_u32_string; const uint32_t *arg_end; size_t characters; if (has_precision) { /* Use only PRECISION characters, from the left. */ arg_end = arg; characters = 0; for (; precision > 0; precision--) { int count = u32_strmblen (arg_end); if (count == 0) break; if (count < 0) { if (!(result == resultbuf || result == NULL)) free (result); if (buf_malloced != NULL) free (buf_malloced); CLEANUP (); errno = EILSEQ; return NULL; } arg_end += count; characters++; } } else if (has_width) { /* Use the entire string, and count the number of characters. */ arg_end = arg; characters = 0; for (;;) { int count = u32_strmblen (arg_end); if (count == 0) break; if (count < 0) { if (!(result == resultbuf || result == NULL)) free (result); if (buf_malloced != NULL) free (buf_malloced); CLEANUP (); errno = EILSEQ; return NULL; } arg_end += count; characters++; } } else { /* Use the entire string. */ arg_end = arg + u32_strlen (arg); /* The number of characters doesn't matter. */ characters = 0; } if (has_width && width > characters && !(dp->flags & FLAG_LEFT)) { size_t n = width - characters; ENSURE_ALLOCATION (xsum (length, n)); DCHAR_SET (result + length, ' ', n); length += n; } # if DCHAR_IS_UINT32_T { size_t n = arg_end - arg; ENSURE_ALLOCATION (xsum (length, n)); DCHAR_CPY (result + length, arg, n); length += n; } # else { /* Convert. */ DCHAR_T *converted = result + length; size_t converted_len = allocated - length; # if DCHAR_IS_TCHAR /* Convert from UTF-32 to locale encoding. */ converted = u32_conv_to_encoding (locale_charset (), iconveh_question_mark, arg, arg_end - arg, NULL, converted, &converted_len); # else /* Convert from UTF-32 to UTF-8/UTF-16. */ converted = U32_TO_DCHAR (arg, arg_end - arg, converted, &converted_len); # endif if (converted == NULL) { int saved_errno = errno; if (!(result == resultbuf || result == NULL)) free (result); if (buf_malloced != NULL) free (buf_malloced); CLEANUP (); errno = saved_errno; return NULL; } if (converted != result + length) { ENSURE_ALLOCATION (xsum (length, converted_len)); DCHAR_CPY (result + length, converted, converted_len); free (converted); } length += converted_len; } # endif if (has_width && width > characters && (dp->flags & FLAG_LEFT)) { size_t n = width - characters; ENSURE_ALLOCATION (xsum (length, n)); DCHAR_SET (result + length, ' ', n); length += n; } } break; default: abort (); } } #endif #if (!USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || (NEED_PRINTF_DIRECTIVE_LS && !defined IN_LIBINTL)) && HAVE_WCHAR_T else if (dp->conversion == 's' # if WIDE_CHAR_VERSION && a.arg[dp->arg_index].type != TYPE_WIDE_STRING # else && a.arg[dp->arg_index].type == TYPE_WIDE_STRING # endif ) { /* The normal handling of the 's' directive below requires allocating a temporary buffer. The determination of its length (tmp_length), in the case when a precision is specified, below requires a conversion between a char[] string and a wchar_t[] wide string. It could be done, but we have no guarantee that the implementation of sprintf will use the exactly same algorithm. Without this guarantee, it is possible to have buffer overrun bugs. In order to avoid such bugs, we implement the entire processing of the 's' directive ourselves. */ int flags = dp->flags; int has_width; size_t width; int has_precision; size_t precision; has_width = 0; width = 0; if (dp->width_start != dp->width_end) { if (dp->width_arg_index != ARG_NONE) { int arg; if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) abort (); arg = a.arg[dp->width_arg_index].a.a_int; if (arg < 0) { /* "A negative field width is taken as a '-' flag followed by a positive field width." */ flags |= FLAG_LEFT; width = (unsigned int) (-arg); } else width = arg; } else { const FCHAR_T *digitp = dp->width_start; do width = xsum (xtimes (width, 10), *digitp++ - '0'); while (digitp != dp->width_end); } has_width = 1; } has_precision = 0; precision = 6; if (dp->precision_start != dp->precision_end) { if (dp->precision_arg_index != ARG_NONE) { int arg; if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) abort (); arg = a.arg[dp->precision_arg_index].a.a_int; /* "A negative precision is taken as if the precision were omitted." */ if (arg >= 0) { precision = arg; has_precision = 1; } } else { const FCHAR_T *digitp = dp->precision_start + 1; precision = 0; while (digitp != dp->precision_end) precision = xsum (xtimes (precision, 10), *digitp++ - '0'); has_precision = 1; } } # if WIDE_CHAR_VERSION /* %s in vasnwprintf. See the specification of fwprintf. */ { const char *arg = a.arg[dp->arg_index].a.a_string; const char *arg_end; size_t characters; if (has_precision) { /* Use only as many bytes as needed to produce PRECISION wide characters, from the left. */ # if HAVE_MBRTOWC mbstate_t state; memset (&state, '\0', sizeof (mbstate_t)); # endif arg_end = arg; characters = 0; for (; precision > 0; precision--) { int count; # if HAVE_MBRTOWC count = mbrlen (arg_end, MB_CUR_MAX, &state); # else count = mblen (arg_end, MB_CUR_MAX); # endif if (count == 0) /* Found the terminating NUL. */ break; if (count < 0) { /* Invalid or incomplete multibyte character. */ if (!(result == resultbuf || result == NULL)) free (result); if (buf_malloced != NULL) free (buf_malloced); CLEANUP (); errno = EILSEQ; return NULL; } arg_end += count; characters++; } } else if (has_width) { /* Use the entire string, and count the number of wide characters. */ # if HAVE_MBRTOWC mbstate_t state; memset (&state, '\0', sizeof (mbstate_t)); # endif arg_end = arg; characters = 0; for (;;) { int count; # if HAVE_MBRTOWC count = mbrlen (arg_end, MB_CUR_MAX, &state); # else count = mblen (arg_end, MB_CUR_MAX); # endif if (count == 0) /* Found the terminating NUL. */ break; if (count < 0) { /* Invalid or incomplete multibyte character. */ if (!(result == resultbuf || result == NULL)) free (result); if (buf_malloced != NULL) free (buf_malloced); CLEANUP (); errno = EILSEQ; return NULL; } arg_end += count; characters++; } } else { /* Use the entire string. */ arg_end = arg + strlen (arg); /* The number of characters doesn't matter. */ characters = 0; } if (has_width && width > characters && !(dp->flags & FLAG_LEFT)) { size_t n = width - characters; ENSURE_ALLOCATION (xsum (length, n)); DCHAR_SET (result + length, ' ', n); length += n; } if (has_precision || has_width) { /* We know the number of wide characters in advance. */ size_t remaining; # if HAVE_MBRTOWC mbstate_t state; memset (&state, '\0', sizeof (mbstate_t)); # endif ENSURE_ALLOCATION (xsum (length, characters)); for (remaining = characters; remaining > 0; remaining--) { wchar_t wc; int count; # if HAVE_MBRTOWC count = mbrtowc (&wc, arg, arg_end - arg, &state); # else count = mbtowc (&wc, arg, arg_end - arg); # endif if (count <= 0) /* mbrtowc not consistent with mbrlen, or mbtowc not consistent with mblen. */ abort (); result[length++] = wc; arg += count; } if (!(arg == arg_end)) abort (); } else { # if HAVE_MBRTOWC mbstate_t state; memset (&state, '\0', sizeof (mbstate_t)); # endif while (arg < arg_end) { wchar_t wc; int count; # if HAVE_MBRTOWC count = mbrtowc (&wc, arg, arg_end - arg, &state); # else count = mbtowc (&wc, arg, arg_end - arg); # endif if (count <= 0) /* mbrtowc not consistent with mbrlen, or mbtowc not consistent with mblen. */ abort (); ENSURE_ALLOCATION (xsum (length, 1)); result[length++] = wc; arg += count; } } if (has_width && width > characters && (dp->flags & FLAG_LEFT)) { size_t n = width - characters; ENSURE_ALLOCATION (xsum (length, n)); DCHAR_SET (result + length, ' ', n); length += n; } } # else /* %ls in vasnprintf. See the specification of fprintf. */ { const wchar_t *arg = a.arg[dp->arg_index].a.a_wide_string; const wchar_t *arg_end; size_t characters; # if !DCHAR_IS_TCHAR /* This code assumes that TCHAR_T is 'char'. */ typedef int TCHAR_T_verify[2 * (sizeof (TCHAR_T) == 1) - 1]; TCHAR_T *tmpsrc; DCHAR_T *tmpdst; size_t tmpdst_len; # endif size_t w; if (has_precision) { /* Use only as many wide characters as needed to produce at most PRECISION bytes, from the left. */ # if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t mbstate_t state; memset (&state, '\0', sizeof (mbstate_t)); # endif arg_end = arg; characters = 0; while (precision > 0) { char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ int count; if (*arg_end == 0) /* Found the terminating null wide character. */ break; # if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t count = wcrtomb (cbuf, *arg_end, &state); # else count = wctomb (cbuf, *arg_end); # endif if (count < 0) { /* Cannot convert. */ if (!(result == resultbuf || result == NULL)) free (result); if (buf_malloced != NULL) free (buf_malloced); CLEANUP (); errno = EILSEQ; return NULL; } if (precision < count) break; arg_end++; characters += count; precision -= count; } } # if DCHAR_IS_TCHAR else if (has_width) # else else # endif { /* Use the entire string, and count the number of bytes. */ # if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t mbstate_t state; memset (&state, '\0', sizeof (mbstate_t)); # endif arg_end = arg; characters = 0; for (;;) { char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ int count; if (*arg_end == 0) /* Found the terminating null wide character. */ break; # if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t count = wcrtomb (cbuf, *arg_end, &state); # else count = wctomb (cbuf, *arg_end); # endif if (count < 0) { /* Cannot convert. */ if (!(result == resultbuf || result == NULL)) free (result); if (buf_malloced != NULL) free (buf_malloced); CLEANUP (); errno = EILSEQ; return NULL; } arg_end++; characters += count; } } # if DCHAR_IS_TCHAR else { /* Use the entire string. */ arg_end = arg + local_wcslen (arg); /* The number of bytes doesn't matter. */ characters = 0; } # endif # if !DCHAR_IS_TCHAR /* Convert the string into a piece of temporary memory. */ tmpsrc = (TCHAR_T *) malloc (characters * sizeof (TCHAR_T)); if (tmpsrc == NULL) goto out_of_memory; { TCHAR_T *tmpptr = tmpsrc; size_t remaining; # if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t mbstate_t state; memset (&state, '\0', sizeof (mbstate_t)); # endif for (remaining = characters; remaining > 0; ) { char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ int count; if (*arg == 0) abort (); # if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t count = wcrtomb (cbuf, *arg, &state); # else count = wctomb (cbuf, *arg); # endif if (count <= 0) /* Inconsistency. */ abort (); memcpy (tmpptr, cbuf, count); tmpptr += count; arg++; remaining -= count; } if (!(arg == arg_end)) abort (); } /* Convert from TCHAR_T[] to DCHAR_T[]. */ tmpdst = DCHAR_CONV_FROM_ENCODING (locale_charset (), iconveh_question_mark, tmpsrc, characters, NULL, NULL, &tmpdst_len); if (tmpdst == NULL) { int saved_errno = errno; free (tmpsrc); if (!(result == resultbuf || result == NULL)) free (result); if (buf_malloced != NULL) free (buf_malloced); CLEANUP (); errno = saved_errno; return NULL; } free (tmpsrc); # endif if (has_width) { # if ENABLE_UNISTDIO /* Outside POSIX, it's preferrable to compare the width against the number of _characters_ of the converted value. */ w = DCHAR_MBSNLEN (result + length, characters); # else /* The width is compared against the number of _bytes_ of the converted value, says POSIX. */ w = characters; # endif } else /* w doesn't matter. */ w = 0; if (has_width && width > w && !(dp->flags & FLAG_LEFT)) { size_t n = width - w; ENSURE_ALLOCATION (xsum (length, n)); DCHAR_SET (result + length, ' ', n); length += n; } # if DCHAR_IS_TCHAR if (has_precision || has_width) { /* We know the number of bytes in advance. */ size_t remaining; # if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t mbstate_t state; memset (&state, '\0', sizeof (mbstate_t)); # endif ENSURE_ALLOCATION (xsum (length, characters)); for (remaining = characters; remaining > 0; ) { char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ int count; if (*arg == 0) abort (); # if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t count = wcrtomb (cbuf, *arg, &state); # else count = wctomb (cbuf, *arg); # endif if (count <= 0) /* Inconsistency. */ abort (); memcpy (result + length, cbuf, count); length += count; arg++; remaining -= count; } if (!(arg == arg_end)) abort (); } else { # if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t mbstate_t state; memset (&state, '\0', sizeof (mbstate_t)); # endif while (arg < arg_end) { char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ int count; if (*arg == 0) abort (); # if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t count = wcrtomb (cbuf, *arg, &state); # else count = wctomb (cbuf, *arg); # endif if (count <= 0) { /* Cannot convert. */ if (!(result == resultbuf || result == NULL)) free (result); if (buf_malloced != NULL) free (buf_malloced); CLEANUP (); errno = EILSEQ; return NULL; } ENSURE_ALLOCATION (xsum (length, count)); memcpy (result + length, cbuf, count); length += count; arg++; } } # else ENSURE_ALLOCATION (xsum (length, tmpdst_len)); DCHAR_CPY (result + length, tmpdst, tmpdst_len); free (tmpdst); length += tmpdst_len; # endif if (has_width && width > w && (dp->flags & FLAG_LEFT)) { size_t n = width - w; ENSURE_ALLOCATION (xsum (length, n)); DCHAR_SET (result + length, ' ', n); length += n; } } # endif } #endif #if (NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_DOUBLE) && !defined IN_LIBINTL else if ((dp->conversion == 'a' || dp->conversion == 'A') # if !(NEED_PRINTF_DIRECTIVE_A || (NEED_PRINTF_LONG_DOUBLE && NEED_PRINTF_DOUBLE)) && (0 # if NEED_PRINTF_DOUBLE || a.arg[dp->arg_index].type == TYPE_DOUBLE # endif # if NEED_PRINTF_LONG_DOUBLE || a.arg[dp->arg_index].type == TYPE_LONGDOUBLE # endif ) # endif ) { arg_type type = a.arg[dp->arg_index].type; int flags = dp->flags; int has_width; size_t width; int has_precision; size_t precision; size_t tmp_length; DCHAR_T tmpbuf[700]; DCHAR_T *tmp; DCHAR_T *pad_ptr; DCHAR_T *p; has_width = 0; width = 0; if (dp->width_start != dp->width_end) { if (dp->width_arg_index != ARG_NONE) { int arg; if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) abort (); arg = a.arg[dp->width_arg_index].a.a_int; if (arg < 0) { /* "A negative field width is taken as a '-' flag followed by a positive field width." */ flags |= FLAG_LEFT; width = (unsigned int) (-arg); } else width = arg; } else { const FCHAR_T *digitp = dp->width_start; do width = xsum (xtimes (width, 10), *digitp++ - '0'); while (digitp != dp->width_end); } has_width = 1; } has_precision = 0; precision = 0; if (dp->precision_start != dp->precision_end) { if (dp->precision_arg_index != ARG_NONE) { int arg; if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) abort (); arg = a.arg[dp->precision_arg_index].a.a_int; /* "A negative precision is taken as if the precision were omitted." */ if (arg >= 0) { precision = arg; has_precision = 1; } } else { const FCHAR_T *digitp = dp->precision_start + 1; precision = 0; while (digitp != dp->precision_end) precision = xsum (xtimes (precision, 10), *digitp++ - '0'); has_precision = 1; } } /* Allocate a temporary buffer of sufficient size. */ if (type == TYPE_LONGDOUBLE) tmp_length = (unsigned int) ((LDBL_DIG + 1) * 0.831 /* decimal -> hexadecimal */ ) + 1; /* turn floor into ceil */ else tmp_length = (unsigned int) ((DBL_DIG + 1) * 0.831 /* decimal -> hexadecimal */ ) + 1; /* turn floor into ceil */ if (tmp_length < precision) tmp_length = precision; /* Account for sign, decimal point etc. */ tmp_length = xsum (tmp_length, 12); if (tmp_length < width) tmp_length = width; tmp_length = xsum (tmp_length, 1); /* account for trailing NUL */ if (tmp_length <= sizeof (tmpbuf) / sizeof (DCHAR_T)) tmp = tmpbuf; else { size_t tmp_memsize = xtimes (tmp_length, sizeof (DCHAR_T)); if (size_overflow_p (tmp_memsize)) /* Overflow, would lead to out of memory. */ goto out_of_memory; tmp = (DCHAR_T *) malloc (tmp_memsize); if (tmp == NULL) /* Out of memory. */ goto out_of_memory; } pad_ptr = NULL; p = tmp; if (type == TYPE_LONGDOUBLE) { # if NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_LONG_DOUBLE long double arg = a.arg[dp->arg_index].a.a_longdouble; if (isnanl (arg)) { if (dp->conversion == 'A') { *p++ = 'N'; *p++ = 'A'; *p++ = 'N'; } else { *p++ = 'n'; *p++ = 'a'; *p++ = 'n'; } } else { int sign = 0; DECL_LONG_DOUBLE_ROUNDING BEGIN_LONG_DOUBLE_ROUNDING (); if (signbit (arg)) /* arg < 0.0L or negative zero */ { sign = -1; arg = -arg; } if (sign < 0) *p++ = '-'; else if (flags & FLAG_SHOWSIGN) *p++ = '+'; else if (flags & FLAG_SPACE) *p++ = ' '; if (arg > 0.0L && arg + arg == arg) { if (dp->conversion == 'A') { *p++ = 'I'; *p++ = 'N'; *p++ = 'F'; } else { *p++ = 'i'; *p++ = 'n'; *p++ = 'f'; } } else { int exponent; long double mantissa; if (arg > 0.0L) mantissa = printf_frexpl (arg, &exponent); else { exponent = 0; mantissa = 0.0L; } if (has_precision && precision < (unsigned int) ((LDBL_DIG + 1) * 0.831) + 1) { /* Round the mantissa. */ long double tail = mantissa; size_t q; for (q = precision; ; q--) { int digit = (int) tail; tail -= digit; if (q == 0) { if (digit & 1 ? tail >= 0.5L : tail > 0.5L) tail = 1 - tail; else tail = - tail; break; } tail *= 16.0L; } if (tail != 0.0L) for (q = precision; q > 0; q--) tail *= 0.0625L; mantissa += tail; } *p++ = '0'; *p++ = dp->conversion - 'A' + 'X'; pad_ptr = p; { int digit; digit = (int) mantissa; mantissa -= digit; *p++ = '0' + digit; if ((flags & FLAG_ALT) || mantissa > 0.0L || precision > 0) { *p++ = decimal_point_char (); /* This loop terminates because we assume that FLT_RADIX is a power of 2. */ while (mantissa > 0.0L) { mantissa *= 16.0L; digit = (int) mantissa; mantissa -= digit; *p++ = digit + (digit < 10 ? '0' : dp->conversion - 10); if (precision > 0) precision--; } while (precision > 0) { *p++ = '0'; precision--; } } } *p++ = dp->conversion - 'A' + 'P'; # if WIDE_CHAR_VERSION { static const wchar_t decimal_format[] = { '%', '+', 'd', '\0' }; SNPRINTF (p, 6 + 1, decimal_format, exponent); } while (*p != '\0') p++; # else if (sizeof (DCHAR_T) == 1) { sprintf ((char *) p, "%+d", exponent); while (*p != '\0') p++; } else { char expbuf[6 + 1]; const char *ep; sprintf (expbuf, "%+d", exponent); for (ep = expbuf; (*p = *ep) != '\0'; ep++) p++; } # endif } END_LONG_DOUBLE_ROUNDING (); } # else abort (); # endif } else { # if NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_DOUBLE double arg = a.arg[dp->arg_index].a.a_double; if (isnand (arg)) { if (dp->conversion == 'A') { *p++ = 'N'; *p++ = 'A'; *p++ = 'N'; } else { *p++ = 'n'; *p++ = 'a'; *p++ = 'n'; } } else { int sign = 0; if (signbit (arg)) /* arg < 0.0 or negative zero */ { sign = -1; arg = -arg; } if (sign < 0) *p++ = '-'; else if (flags & FLAG_SHOWSIGN) *p++ = '+'; else if (flags & FLAG_SPACE) *p++ = ' '; if (arg > 0.0 && arg + arg == arg) { if (dp->conversion == 'A') { *p++ = 'I'; *p++ = 'N'; *p++ = 'F'; } else { *p++ = 'i'; *p++ = 'n'; *p++ = 'f'; } } else { int exponent; double mantissa; if (arg > 0.0) mantissa = printf_frexp (arg, &exponent); else { exponent = 0; mantissa = 0.0; } if (has_precision && precision < (unsigned int) ((DBL_DIG + 1) * 0.831) + 1) { /* Round the mantissa. */ double tail = mantissa; size_t q; for (q = precision; ; q--) { int digit = (int) tail; tail -= digit; if (q == 0) { if (digit & 1 ? tail >= 0.5 : tail > 0.5) tail = 1 - tail; else tail = - tail; break; } tail *= 16.0; } if (tail != 0.0) for (q = precision; q > 0; q--) tail *= 0.0625; mantissa += tail; } *p++ = '0'; *p++ = dp->conversion - 'A' + 'X'; pad_ptr = p; { int digit; digit = (int) mantissa; mantissa -= digit; *p++ = '0' + digit; if ((flags & FLAG_ALT) || mantissa > 0.0 || precision > 0) { *p++ = decimal_point_char (); /* This loop terminates because we assume that FLT_RADIX is a power of 2. */ while (mantissa > 0.0) { mantissa *= 16.0; digit = (int) mantissa; mantissa -= digit; *p++ = digit + (digit < 10 ? '0' : dp->conversion - 10); if (precision > 0) precision--; } while (precision > 0) { *p++ = '0'; precision--; } } } *p++ = dp->conversion - 'A' + 'P'; # if WIDE_CHAR_VERSION { static const wchar_t decimal_format[] = { '%', '+', 'd', '\0' }; SNPRINTF (p, 6 + 1, decimal_format, exponent); } while (*p != '\0') p++; # else if (sizeof (DCHAR_T) == 1) { sprintf ((char *) p, "%+d", exponent); while (*p != '\0') p++; } else { char expbuf[6 + 1]; const char *ep; sprintf (expbuf, "%+d", exponent); for (ep = expbuf; (*p = *ep) != '\0'; ep++) p++; } # endif } } # else abort (); # endif } /* The generated string now extends from tmp to p, with the zero padding insertion point being at pad_ptr. */ if (has_width && p - tmp < width) { size_t pad = width - (p - tmp); DCHAR_T *end = p + pad; if (flags & FLAG_LEFT) { /* Pad with spaces on the right. */ for (; pad > 0; pad--) *p++ = ' '; } else if ((flags & FLAG_ZERO) && pad_ptr != NULL) { /* Pad with zeroes. */ DCHAR_T *q = end; while (p > pad_ptr) *--q = *--p; for (; pad > 0; pad--) *p++ = '0'; } else { /* Pad with spaces on the left. */ DCHAR_T *q = end; while (p > tmp) *--q = *--p; for (; pad > 0; pad--) *p++ = ' '; } p = end; } { size_t count = p - tmp; if (count >= tmp_length) /* tmp_length was incorrectly calculated - fix the code above! */ abort (); /* Make room for the result. */ if (count >= allocated - length) { size_t n = xsum (length, count); ENSURE_ALLOCATION (n); } /* Append the result. */ memcpy (result + length, tmp, count * sizeof (DCHAR_T)); if (tmp != tmpbuf) free (tmp); length += count; } } #endif #if (NEED_PRINTF_INFINITE_DOUBLE || NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE || NEED_PRINTF_LONG_DOUBLE) && !defined IN_LIBINTL else if ((dp->conversion == 'f' || dp->conversion == 'F' || dp->conversion == 'e' || dp->conversion == 'E' || dp->conversion == 'g' || dp->conversion == 'G' || dp->conversion == 'a' || dp->conversion == 'A') && (0 # if NEED_PRINTF_DOUBLE || a.arg[dp->arg_index].type == TYPE_DOUBLE # elif NEED_PRINTF_INFINITE_DOUBLE || (a.arg[dp->arg_index].type == TYPE_DOUBLE /* The systems (mingw) which produce wrong output for Inf, -Inf, and NaN also do so for -0.0. Therefore we treat this case here as well. */ && is_infinite_or_zero (a.arg[dp->arg_index].a.a_double)) # endif # if NEED_PRINTF_LONG_DOUBLE || a.arg[dp->arg_index].type == TYPE_LONGDOUBLE # elif NEED_PRINTF_INFINITE_LONG_DOUBLE || (a.arg[dp->arg_index].type == TYPE_LONGDOUBLE /* Some systems produce wrong output for Inf, -Inf, and NaN. Some systems in this category (IRIX 5.3) also do so for -0.0. Therefore we treat this case here as well. */ && is_infinite_or_zerol (a.arg[dp->arg_index].a.a_longdouble)) # endif )) { # if (NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE) && (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE) arg_type type = a.arg[dp->arg_index].type; # endif int flags = dp->flags; int has_width; size_t width; int has_precision; size_t precision; size_t tmp_length; DCHAR_T tmpbuf[700]; DCHAR_T *tmp; DCHAR_T *pad_ptr; DCHAR_T *p; has_width = 0; width = 0; if (dp->width_start != dp->width_end) { if (dp->width_arg_index != ARG_NONE) { int arg; if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) abort (); arg = a.arg[dp->width_arg_index].a.a_int; if (arg < 0) { /* "A negative field width is taken as a '-' flag followed by a positive field width." */ flags |= FLAG_LEFT; width = (unsigned int) (-arg); } else width = arg; } else { const FCHAR_T *digitp = dp->width_start; do width = xsum (xtimes (width, 10), *digitp++ - '0'); while (digitp != dp->width_end); } has_width = 1; } has_precision = 0; precision = 0; if (dp->precision_start != dp->precision_end) { if (dp->precision_arg_index != ARG_NONE) { int arg; if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) abort (); arg = a.arg[dp->precision_arg_index].a.a_int; /* "A negative precision is taken as if the precision were omitted." */ if (arg >= 0) { precision = arg; has_precision = 1; } } else { const FCHAR_T *digitp = dp->precision_start + 1; precision = 0; while (digitp != dp->precision_end) precision = xsum (xtimes (precision, 10), *digitp++ - '0'); has_precision = 1; } } /* POSIX specifies the default precision to be 6 for %f, %F, %e, %E, but not for %g, %G. Implementations appear to use the same default precision also for %g, %G. But for %a, %A, the default precision is 0. */ if (!has_precision) if (!(dp->conversion == 'a' || dp->conversion == 'A')) precision = 6; /* Allocate a temporary buffer of sufficient size. */ # if NEED_PRINTF_DOUBLE && NEED_PRINTF_LONG_DOUBLE tmp_length = (type == TYPE_LONGDOUBLE ? LDBL_DIG + 1 : DBL_DIG + 1); # elif NEED_PRINTF_INFINITE_DOUBLE && NEED_PRINTF_LONG_DOUBLE tmp_length = (type == TYPE_LONGDOUBLE ? LDBL_DIG + 1 : 0); # elif NEED_PRINTF_LONG_DOUBLE tmp_length = LDBL_DIG + 1; # elif NEED_PRINTF_DOUBLE tmp_length = DBL_DIG + 1; # else tmp_length = 0; # endif if (tmp_length < precision) tmp_length = precision; # if NEED_PRINTF_LONG_DOUBLE # if NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE if (type == TYPE_LONGDOUBLE) # endif if (dp->conversion == 'f' || dp->conversion == 'F') { long double arg = a.arg[dp->arg_index].a.a_longdouble; if (!(isnanl (arg) || arg + arg == arg)) { /* arg is finite and nonzero. */ int exponent = floorlog10l (arg < 0 ? -arg : arg); if (exponent >= 0 && tmp_length < exponent + precision) tmp_length = exponent + precision; } } # endif # if NEED_PRINTF_DOUBLE # if NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE if (type == TYPE_DOUBLE) # endif if (dp->conversion == 'f' || dp->conversion == 'F') { double arg = a.arg[dp->arg_index].a.a_double; if (!(isnand (arg) || arg + arg == arg)) { /* arg is finite and nonzero. */ int exponent = floorlog10 (arg < 0 ? -arg : arg); if (exponent >= 0 && tmp_length < exponent + precision) tmp_length = exponent + precision; } } # endif /* Account for sign, decimal point etc. */ tmp_length = xsum (tmp_length, 12); if (tmp_length < width) tmp_length = width; tmp_length = xsum (tmp_length, 1); /* account for trailing NUL */ if (tmp_length <= sizeof (tmpbuf) / sizeof (DCHAR_T)) tmp = tmpbuf; else { size_t tmp_memsize = xtimes (tmp_length, sizeof (DCHAR_T)); if (size_overflow_p (tmp_memsize)) /* Overflow, would lead to out of memory. */ goto out_of_memory; tmp = (DCHAR_T *) malloc (tmp_memsize); if (tmp == NULL) /* Out of memory. */ goto out_of_memory; } pad_ptr = NULL; p = tmp; # if NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE # if NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE if (type == TYPE_LONGDOUBLE) # endif { long double arg = a.arg[dp->arg_index].a.a_longdouble; if (isnanl (arg)) { if (dp->conversion >= 'A' && dp->conversion <= 'Z') { *p++ = 'N'; *p++ = 'A'; *p++ = 'N'; } else { *p++ = 'n'; *p++ = 'a'; *p++ = 'n'; } } else { int sign = 0; DECL_LONG_DOUBLE_ROUNDING BEGIN_LONG_DOUBLE_ROUNDING (); if (signbit (arg)) /* arg < 0.0L or negative zero */ { sign = -1; arg = -arg; } if (sign < 0) *p++ = '-'; else if (flags & FLAG_SHOWSIGN) *p++ = '+'; else if (flags & FLAG_SPACE) *p++ = ' '; if (arg > 0.0L && arg + arg == arg) { if (dp->conversion >= 'A' && dp->conversion <= 'Z') { *p++ = 'I'; *p++ = 'N'; *p++ = 'F'; } else { *p++ = 'i'; *p++ = 'n'; *p++ = 'f'; } } else { # if NEED_PRINTF_LONG_DOUBLE pad_ptr = p; if (dp->conversion == 'f' || dp->conversion == 'F') { char *digits; size_t ndigits; digits = scale10_round_decimal_long_double (arg, precision); if (digits == NULL) { END_LONG_DOUBLE_ROUNDING (); goto out_of_memory; } ndigits = strlen (digits); if (ndigits > precision) do { --ndigits; *p++ = digits[ndigits]; } while (ndigits > precision); else *p++ = '0'; /* Here ndigits <= precision. */ if ((flags & FLAG_ALT) || precision > 0) { *p++ = decimal_point_char (); for (; precision > ndigits; precision--) *p++ = '0'; while (ndigits > 0) { --ndigits; *p++ = digits[ndigits]; } } free (digits); } else if (dp->conversion == 'e' || dp->conversion == 'E') { int exponent; if (arg == 0.0L) { exponent = 0; *p++ = '0'; if ((flags & FLAG_ALT) || precision > 0) { *p++ = decimal_point_char (); for (; precision > 0; precision--) *p++ = '0'; } } else { /* arg > 0.0L. */ int adjusted; char *digits; size_t ndigits; exponent = floorlog10l (arg); adjusted = 0; for (;;) { digits = scale10_round_decimal_long_double (arg, (int)precision - exponent); if (digits == NULL) { END_LONG_DOUBLE_ROUNDING (); goto out_of_memory; } ndigits = strlen (digits); if (ndigits == precision + 1) break; if (ndigits < precision || ndigits > precision + 2) /* The exponent was not guessed precisely enough. */ abort (); if (adjusted) /* None of two values of exponent is the right one. Prevent an endless loop. */ abort (); free (digits); if (ndigits == precision) exponent -= 1; else exponent += 1; adjusted = 1; } /* Here ndigits = precision+1. */ if (is_borderline (digits, precision)) { /* Maybe the exponent guess was too high and a smaller exponent can be reached by turning a 10...0 into 9...9x. */ char *digits2 = scale10_round_decimal_long_double (arg, (int)precision - exponent + 1); if (digits2 == NULL) { free (digits); END_LONG_DOUBLE_ROUNDING (); goto out_of_memory; } if (strlen (digits2) == precision + 1) { free (digits); digits = digits2; exponent -= 1; } else free (digits2); } /* Here ndigits = precision+1. */ *p++ = digits[--ndigits]; if ((flags & FLAG_ALT) || precision > 0) { *p++ = decimal_point_char (); while (ndigits > 0) { --ndigits; *p++ = digits[ndigits]; } } free (digits); } *p++ = dp->conversion; /* 'e' or 'E' */ # if WIDE_CHAR_VERSION { static const wchar_t decimal_format[] = { '%', '+', '.', '2', 'd', '\0' }; SNPRINTF (p, 6 + 1, decimal_format, exponent); } while (*p != '\0') p++; # else if (sizeof (DCHAR_T) == 1) { sprintf ((char *) p, "%+.2d", exponent); while (*p != '\0') p++; } else { char expbuf[6 + 1]; const char *ep; sprintf (expbuf, "%+.2d", exponent); for (ep = expbuf; (*p = *ep) != '\0'; ep++) p++; } # endif } else if (dp->conversion == 'g' || dp->conversion == 'G') { if (precision == 0) precision = 1; /* precision >= 1. */ if (arg == 0.0L) /* The exponent is 0, >= -4, < precision. Use fixed-point notation. */ { size_t ndigits = precision; /* Number of trailing zeroes that have to be dropped. */ size_t nzeroes = (flags & FLAG_ALT ? 0 : precision - 1); --ndigits; *p++ = '0'; if ((flags & FLAG_ALT) || ndigits > nzeroes) { *p++ = decimal_point_char (); while (ndigits > nzeroes) { --ndigits; *p++ = '0'; } } } else { /* arg > 0.0L. */ int exponent; int adjusted; char *digits; size_t ndigits; size_t nzeroes; exponent = floorlog10l (arg); adjusted = 0; for (;;) { digits = scale10_round_decimal_long_double (arg, (int)(precision - 1) - exponent); if (digits == NULL) { END_LONG_DOUBLE_ROUNDING (); goto out_of_memory; } ndigits = strlen (digits); if (ndigits == precision) break; if (ndigits < precision - 1 || ndigits > precision + 1) /* The exponent was not guessed precisely enough. */ abort (); if (adjusted) /* None of two values of exponent is the right one. Prevent an endless loop. */ abort (); free (digits); if (ndigits < precision) exponent -= 1; else exponent += 1; adjusted = 1; } /* Here ndigits = precision. */ if (is_borderline (digits, precision - 1)) { /* Maybe the exponent guess was too high and a smaller exponent can be reached by turning a 10...0 into 9...9x. */ char *digits2 = scale10_round_decimal_long_double (arg, (int)(precision - 1) - exponent + 1); if (digits2 == NULL) { free (digits); END_LONG_DOUBLE_ROUNDING (); goto out_of_memory; } if (strlen (digits2) == precision) { free (digits); digits = digits2; exponent -= 1; } else free (digits2); } /* Here ndigits = precision. */ /* Determine the number of trailing zeroes that have to be dropped. */ nzeroes = 0; if ((flags & FLAG_ALT) == 0) while (nzeroes < ndigits && digits[nzeroes] == '0') nzeroes++; /* The exponent is now determined. */ if (exponent >= -4 && exponent < (long)precision) { /* Fixed-point notation: max(exponent,0)+1 digits, then the decimal point, then the remaining digits without trailing zeroes. */ if (exponent >= 0) { size_t count = exponent + 1; /* Note: count <= precision = ndigits. */ for (; count > 0; count--) *p++ = digits[--ndigits]; if ((flags & FLAG_ALT) || ndigits > nzeroes) { *p++ = decimal_point_char (); while (ndigits > nzeroes) { --ndigits; *p++ = digits[ndigits]; } } } else { size_t count = -exponent - 1; *p++ = '0'; *p++ = decimal_point_char (); for (; count > 0; count--) *p++ = '0'; while (ndigits > nzeroes) { --ndigits; *p++ = digits[ndigits]; } } } else { /* Exponential notation. */ *p++ = digits[--ndigits]; if ((flags & FLAG_ALT) || ndigits > nzeroes) { *p++ = decimal_point_char (); while (ndigits > nzeroes) { --ndigits; *p++ = digits[ndigits]; } } *p++ = dp->conversion - 'G' + 'E'; /* 'e' or 'E' */ # if WIDE_CHAR_VERSION { static const wchar_t decimal_format[] = { '%', '+', '.', '2', 'd', '\0' }; SNPRINTF (p, 6 + 1, decimal_format, exponent); } while (*p != '\0') p++; # else if (sizeof (DCHAR_T) == 1) { sprintf ((char *) p, "%+.2d", exponent); while (*p != '\0') p++; } else { char expbuf[6 + 1]; const char *ep; sprintf (expbuf, "%+.2d", exponent); for (ep = expbuf; (*p = *ep) != '\0'; ep++) p++; } # endif } free (digits); } } else abort (); # else /* arg is finite. */ if (!(arg == 0.0L)) abort (); pad_ptr = p; if (dp->conversion == 'f' || dp->conversion == 'F') { *p++ = '0'; if ((flags & FLAG_ALT) || precision > 0) { *p++ = decimal_point_char (); for (; precision > 0; precision--) *p++ = '0'; } } else if (dp->conversion == 'e' || dp->conversion == 'E') { *p++ = '0'; if ((flags & FLAG_ALT) || precision > 0) { *p++ = decimal_point_char (); for (; precision > 0; precision--) *p++ = '0'; } *p++ = dp->conversion; /* 'e' or 'E' */ *p++ = '+'; *p++ = '0'; *p++ = '0'; } else if (dp->conversion == 'g' || dp->conversion == 'G') { *p++ = '0'; if (flags & FLAG_ALT) { size_t ndigits = (precision > 0 ? precision - 1 : 0); *p++ = decimal_point_char (); for (; ndigits > 0; --ndigits) *p++ = '0'; } } else if (dp->conversion == 'a' || dp->conversion == 'A') { *p++ = '0'; *p++ = dp->conversion - 'A' + 'X'; pad_ptr = p; *p++ = '0'; if ((flags & FLAG_ALT) || precision > 0) { *p++ = decimal_point_char (); for (; precision > 0; precision--) *p++ = '0'; } *p++ = dp->conversion - 'A' + 'P'; *p++ = '+'; *p++ = '0'; } else abort (); # endif } END_LONG_DOUBLE_ROUNDING (); } } # if NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE else # endif # endif # if NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE { double arg = a.arg[dp->arg_index].a.a_double; if (isnand (arg)) { if (dp->conversion >= 'A' && dp->conversion <= 'Z') { *p++ = 'N'; *p++ = 'A'; *p++ = 'N'; } else { *p++ = 'n'; *p++ = 'a'; *p++ = 'n'; } } else { int sign = 0; if (signbit (arg)) /* arg < 0.0 or negative zero */ { sign = -1; arg = -arg; } if (sign < 0) *p++ = '-'; else if (flags & FLAG_SHOWSIGN) *p++ = '+'; else if (flags & FLAG_SPACE) *p++ = ' '; if (arg > 0.0 && arg + arg == arg) { if (dp->conversion >= 'A' && dp->conversion <= 'Z') { *p++ = 'I'; *p++ = 'N'; *p++ = 'F'; } else { *p++ = 'i'; *p++ = 'n'; *p++ = 'f'; } } else { # if NEED_PRINTF_DOUBLE pad_ptr = p; if (dp->conversion == 'f' || dp->conversion == 'F') { char *digits; size_t ndigits; digits = scale10_round_decimal_double (arg, precision); if (digits == NULL) goto out_of_memory; ndigits = strlen (digits); if (ndigits > precision) do { --ndigits; *p++ = digits[ndigits]; } while (ndigits > precision); else *p++ = '0'; /* Here ndigits <= precision. */ if ((flags & FLAG_ALT) || precision > 0) { *p++ = decimal_point_char (); for (; precision > ndigits; precision--) *p++ = '0'; while (ndigits > 0) { --ndigits; *p++ = digits[ndigits]; } } free (digits); } else if (dp->conversion == 'e' || dp->conversion == 'E') { int exponent; if (arg == 0.0) { exponent = 0; *p++ = '0'; if ((flags & FLAG_ALT) || precision > 0) { *p++ = decimal_point_char (); for (; precision > 0; precision--) *p++ = '0'; } } else { /* arg > 0.0. */ int adjusted; char *digits; size_t ndigits; exponent = floorlog10 (arg); adjusted = 0; for (;;) { digits = scale10_round_decimal_double (arg, (int)precision - exponent); if (digits == NULL) goto out_of_memory; ndigits = strlen (digits); if (ndigits == precision + 1) break; if (ndigits < precision || ndigits > precision + 2) /* The exponent was not guessed precisely enough. */ abort (); if (adjusted) /* None of two values of exponent is the right one. Prevent an endless loop. */ abort (); free (digits); if (ndigits == precision) exponent -= 1; else exponent += 1; adjusted = 1; } /* Here ndigits = precision+1. */ if (is_borderline (digits, precision)) { /* Maybe the exponent guess was too high and a smaller exponent can be reached by turning a 10...0 into 9...9x. */ char *digits2 = scale10_round_decimal_double (arg, (int)precision - exponent + 1); if (digits2 == NULL) { free (digits); goto out_of_memory; } if (strlen (digits2) == precision + 1) { free (digits); digits = digits2; exponent -= 1; } else free (digits2); } /* Here ndigits = precision+1. */ *p++ = digits[--ndigits]; if ((flags & FLAG_ALT) || precision > 0) { *p++ = decimal_point_char (); while (ndigits > 0) { --ndigits; *p++ = digits[ndigits]; } } free (digits); } *p++ = dp->conversion; /* 'e' or 'E' */ # if WIDE_CHAR_VERSION { static const wchar_t decimal_format[] = /* Produce the same number of exponent digits as the native printf implementation. */ # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ { '%', '+', '.', '3', 'd', '\0' }; # else { '%', '+', '.', '2', 'd', '\0' }; # endif SNPRINTF (p, 6 + 1, decimal_format, exponent); } while (*p != '\0') p++; # else { static const char decimal_format[] = /* Produce the same number of exponent digits as the native printf implementation. */ # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ "%+.3d"; # else "%+.2d"; # endif if (sizeof (DCHAR_T) == 1) { sprintf ((char *) p, decimal_format, exponent); while (*p != '\0') p++; } else { char expbuf[6 + 1]; const char *ep; sprintf (expbuf, decimal_format, exponent); for (ep = expbuf; (*p = *ep) != '\0'; ep++) p++; } } # endif } else if (dp->conversion == 'g' || dp->conversion == 'G') { if (precision == 0) precision = 1; /* precision >= 1. */ if (arg == 0.0) /* The exponent is 0, >= -4, < precision. Use fixed-point notation. */ { size_t ndigits = precision; /* Number of trailing zeroes that have to be dropped. */ size_t nzeroes = (flags & FLAG_ALT ? 0 : precision - 1); --ndigits; *p++ = '0'; if ((flags & FLAG_ALT) || ndigits > nzeroes) { *p++ = decimal_point_char (); while (ndigits > nzeroes) { --ndigits; *p++ = '0'; } } } else { /* arg > 0.0. */ int exponent; int adjusted; char *digits; size_t ndigits; size_t nzeroes; exponent = floorlog10 (arg); adjusted = 0; for (;;) { digits = scale10_round_decimal_double (arg, (int)(precision - 1) - exponent); if (digits == NULL) goto out_of_memory; ndigits = strlen (digits); if (ndigits == precision) break; if (ndigits < precision - 1 || ndigits > precision + 1) /* The exponent was not guessed precisely enough. */ abort (); if (adjusted) /* None of two values of exponent is the right one. Prevent an endless loop. */ abort (); free (digits); if (ndigits < precision) exponent -= 1; else exponent += 1; adjusted = 1; } /* Here ndigits = precision. */ if (is_borderline (digits, precision - 1)) { /* Maybe the exponent guess was too high and a smaller exponent can be reached by turning a 10...0 into 9...9x. */ char *digits2 = scale10_round_decimal_double (arg, (int)(precision - 1) - exponent + 1); if (digits2 == NULL) { free (digits); goto out_of_memory; } if (strlen (digits2) == precision) { free (digits); digits = digits2; exponent -= 1; } else free (digits2); } /* Here ndigits = precision. */ /* Determine the number of trailing zeroes that have to be dropped. */ nzeroes = 0; if ((flags & FLAG_ALT) == 0) while (nzeroes < ndigits && digits[nzeroes] == '0') nzeroes++; /* The exponent is now determined. */ if (exponent >= -4 && exponent < (long)precision) { /* Fixed-point notation: max(exponent,0)+1 digits, then the decimal point, then the remaining digits without trailing zeroes. */ if (exponent >= 0) { size_t count = exponent + 1; /* Note: count <= precision = ndigits. */ for (; count > 0; count--) *p++ = digits[--ndigits]; if ((flags & FLAG_ALT) || ndigits > nzeroes) { *p++ = decimal_point_char (); while (ndigits > nzeroes) { --ndigits; *p++ = digits[ndigits]; } } } else { size_t count = -exponent - 1; *p++ = '0'; *p++ = decimal_point_char (); for (; count > 0; count--) *p++ = '0'; while (ndigits > nzeroes) { --ndigits; *p++ = digits[ndigits]; } } } else { /* Exponential notation. */ *p++ = digits[--ndigits]; if ((flags & FLAG_ALT) || ndigits > nzeroes) { *p++ = decimal_point_char (); while (ndigits > nzeroes) { --ndigits; *p++ = digits[ndigits]; } } *p++ = dp->conversion - 'G' + 'E'; /* 'e' or 'E' */ # if WIDE_CHAR_VERSION { static const wchar_t decimal_format[] = /* Produce the same number of exponent digits as the native printf implementation. */ # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ { '%', '+', '.', '3', 'd', '\0' }; # else { '%', '+', '.', '2', 'd', '\0' }; # endif SNPRINTF (p, 6 + 1, decimal_format, exponent); } while (*p != '\0') p++; # else { static const char decimal_format[] = /* Produce the same number of exponent digits as the native printf implementation. */ # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ "%+.3d"; # else "%+.2d"; # endif if (sizeof (DCHAR_T) == 1) { sprintf ((char *) p, decimal_format, exponent); while (*p != '\0') p++; } else { char expbuf[6 + 1]; const char *ep; sprintf (expbuf, decimal_format, exponent); for (ep = expbuf; (*p = *ep) != '\0'; ep++) p++; } } # endif } free (digits); } } else abort (); # else /* arg is finite. */ if (!(arg == 0.0)) abort (); pad_ptr = p; if (dp->conversion == 'f' || dp->conversion == 'F') { *p++ = '0'; if ((flags & FLAG_ALT) || precision > 0) { *p++ = decimal_point_char (); for (; precision > 0; precision--) *p++ = '0'; } } else if (dp->conversion == 'e' || dp->conversion == 'E') { *p++ = '0'; if ((flags & FLAG_ALT) || precision > 0) { *p++ = decimal_point_char (); for (; precision > 0; precision--) *p++ = '0'; } *p++ = dp->conversion; /* 'e' or 'E' */ *p++ = '+'; /* Produce the same number of exponent digits as the native printf implementation. */ # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ *p++ = '0'; # endif *p++ = '0'; *p++ = '0'; } else if (dp->conversion == 'g' || dp->conversion == 'G') { *p++ = '0'; if (flags & FLAG_ALT) { size_t ndigits = (precision > 0 ? precision - 1 : 0); *p++ = decimal_point_char (); for (; ndigits > 0; --ndigits) *p++ = '0'; } } else abort (); # endif } } } # endif /* The generated string now extends from tmp to p, with the zero padding insertion point being at pad_ptr. */ if (has_width && p - tmp < width) { size_t pad = width - (p - tmp); DCHAR_T *end = p + pad; if (flags & FLAG_LEFT) { /* Pad with spaces on the right. */ for (; pad > 0; pad--) *p++ = ' '; } else if ((flags & FLAG_ZERO) && pad_ptr != NULL) { /* Pad with zeroes. */ DCHAR_T *q = end; while (p > pad_ptr) *--q = *--p; for (; pad > 0; pad--) *p++ = '0'; } else { /* Pad with spaces on the left. */ DCHAR_T *q = end; while (p > tmp) *--q = *--p; for (; pad > 0; pad--) *p++ = ' '; } p = end; } { size_t count = p - tmp; if (count >= tmp_length) /* tmp_length was incorrectly calculated - fix the code above! */ abort (); /* Make room for the result. */ if (count >= allocated - length) { size_t n = xsum (length, count); ENSURE_ALLOCATION (n); } /* Append the result. */ memcpy (result + length, tmp, count * sizeof (DCHAR_T)); if (tmp != tmpbuf) free (tmp); length += count; } } #endif else { arg_type type = a.arg[dp->arg_index].type; int flags = dp->flags; #if !USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_LEFTADJUST || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION int has_width; size_t width; #endif #if !USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || NEED_PRINTF_UNBOUNDED_PRECISION int has_precision; size_t precision; #endif #if NEED_PRINTF_UNBOUNDED_PRECISION int prec_ourselves; #else # define prec_ourselves 0 #endif #if NEED_PRINTF_FLAG_LEFTADJUST # define pad_ourselves 1 #elif !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION int pad_ourselves; #else # define pad_ourselves 0 #endif TCHAR_T *fbp; unsigned int prefix_count; int prefixes[2] IF_LINT (= { 0 }); #if !USE_SNPRINTF size_t tmp_length; TCHAR_T tmpbuf[700]; TCHAR_T *tmp; #endif #if !USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_LEFTADJUST || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION has_width = 0; width = 0; if (dp->width_start != dp->width_end) { if (dp->width_arg_index != ARG_NONE) { int arg; if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) abort (); arg = a.arg[dp->width_arg_index].a.a_int; if (arg < 0) { /* "A negative field width is taken as a '-' flag followed by a positive field width." */ flags |= FLAG_LEFT; width = (unsigned int) (-arg); } else width = arg; } else { const FCHAR_T *digitp = dp->width_start; do width = xsum (xtimes (width, 10), *digitp++ - '0'); while (digitp != dp->width_end); } has_width = 1; } #endif #if !USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || NEED_PRINTF_UNBOUNDED_PRECISION has_precision = 0; precision = 6; if (dp->precision_start != dp->precision_end) { if (dp->precision_arg_index != ARG_NONE) { int arg; if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) abort (); arg = a.arg[dp->precision_arg_index].a.a_int; /* "A negative precision is taken as if the precision were omitted." */ if (arg >= 0) { precision = arg; has_precision = 1; } } else { const FCHAR_T *digitp = dp->precision_start + 1; precision = 0; while (digitp != dp->precision_end) precision = xsum (xtimes (precision, 10), *digitp++ - '0'); has_precision = 1; } } #endif /* Decide whether to handle the precision ourselves. */ #if NEED_PRINTF_UNBOUNDED_PRECISION switch (dp->conversion) { case 'd': case 'i': case 'u': case 'o': case 'x': case 'X': case 'p': prec_ourselves = has_precision && (precision > 0); break; default: prec_ourselves = 0; break; } #endif /* Decide whether to perform the padding ourselves. */ #if !NEED_PRINTF_FLAG_LEFTADJUST && (!DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION) switch (dp->conversion) { # if !DCHAR_IS_TCHAR || ENABLE_UNISTDIO /* If we need conversion from TCHAR_T[] to DCHAR_T[], we need to perform the padding after this conversion. Functions with unistdio extensions perform the padding based on character count rather than element count. */ case 'c': case 's': # endif # if NEED_PRINTF_FLAG_ZERO case 'f': case 'F': case 'e': case 'E': case 'g': case 'G': case 'a': case 'A': # endif pad_ourselves = 1; break; default: pad_ourselves = prec_ourselves; break; } #endif #if !USE_SNPRINTF /* Allocate a temporary buffer of sufficient size for calling sprintf. */ tmp_length = MAX_ROOM_NEEDED (&a, dp->arg_index, dp->conversion, type, flags, width, has_precision, precision, pad_ourselves); if (tmp_length <= sizeof (tmpbuf) / sizeof (TCHAR_T)) tmp = tmpbuf; else { size_t tmp_memsize = xtimes (tmp_length, sizeof (TCHAR_T)); if (size_overflow_p (tmp_memsize)) /* Overflow, would lead to out of memory. */ goto out_of_memory; tmp = (TCHAR_T *) malloc (tmp_memsize); if (tmp == NULL) /* Out of memory. */ goto out_of_memory; } #endif /* Construct the format string for calling snprintf or sprintf. */ fbp = buf; *fbp++ = '%'; #if NEED_PRINTF_FLAG_GROUPING /* The underlying implementation doesn't support the ' flag. Produce no grouping characters in this case; this is acceptable because the grouping is locale dependent. */ #else if (flags & FLAG_GROUP) *fbp++ = '\''; #endif if (flags & FLAG_LEFT) *fbp++ = '-'; if (flags & FLAG_SHOWSIGN) *fbp++ = '+'; if (flags & FLAG_SPACE) *fbp++ = ' '; if (flags & FLAG_ALT) *fbp++ = '#'; if (!pad_ourselves) { if (flags & FLAG_ZERO) *fbp++ = '0'; if (dp->width_start != dp->width_end) { size_t n = dp->width_end - dp->width_start; /* The width specification is known to consist only of standard ASCII characters. */ if (sizeof (FCHAR_T) == sizeof (TCHAR_T)) { memcpy (fbp, dp->width_start, n * sizeof (TCHAR_T)); fbp += n; } else { const FCHAR_T *mp = dp->width_start; do *fbp++ = (unsigned char) *mp++; while (--n > 0); } } } if (!prec_ourselves) { if (dp->precision_start != dp->precision_end) { size_t n = dp->precision_end - dp->precision_start; /* The precision specification is known to consist only of standard ASCII characters. */ if (sizeof (FCHAR_T) == sizeof (TCHAR_T)) { memcpy (fbp, dp->precision_start, n * sizeof (TCHAR_T)); fbp += n; } else { const FCHAR_T *mp = dp->precision_start; do *fbp++ = (unsigned char) *mp++; while (--n > 0); } } } switch (type) { #if HAVE_LONG_LONG_INT case TYPE_LONGLONGINT: case TYPE_ULONGLONGINT: # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ *fbp++ = 'I'; *fbp++ = '6'; *fbp++ = '4'; break; # else *fbp++ = 'l'; /*FALLTHROUGH*/ # endif #endif case TYPE_LONGINT: case TYPE_ULONGINT: #if HAVE_WINT_T case TYPE_WIDE_CHAR: #endif #if HAVE_WCHAR_T case TYPE_WIDE_STRING: #endif *fbp++ = 'l'; break; case TYPE_LONGDOUBLE: *fbp++ = 'L'; break; default: break; } #if NEED_PRINTF_DIRECTIVE_F if (dp->conversion == 'F') *fbp = 'f'; else #endif *fbp = dp->conversion; #if USE_SNPRINTF # if !(__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3) || ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)) fbp[1] = '%'; fbp[2] = 'n'; fbp[3] = '\0'; # else /* On glibc2 systems from glibc >= 2.3 - probably also older ones - we know that snprintf's returns value conforms to ISO C 99: the gl_SNPRINTF_DIRECTIVE_N test passes. Therefore we can avoid using %n in this situation. On glibc2 systems from 2004-10-18 or newer, the use of %n in format strings in writable memory may crash the program (if compiled with _FORTIFY_SOURCE=2), so we should avoid it in this situation. */ /* On native Win32 systems (such as mingw), we can avoid using %n because: - Although the gl_SNPRINTF_TRUNCATION_C99 test fails, snprintf does not write more than the specified number of bytes. (snprintf (buf, 3, "%d %d", 4567, 89) writes '4', '5', '6' into buf, not '4', '5', '\0'.) - Although the gl_SNPRINTF_RETVAL_C99 test fails, snprintf allows us to recognize the case of an insufficient buffer size: it returns -1 in this case. On native Win32 systems (such as mingw) where the OS is Windows Vista, the use of %n in format strings by default crashes the program. See and So we should avoid %n in this situation. */ fbp[1] = '\0'; # endif #else fbp[1] = '\0'; #endif /* Construct the arguments for calling snprintf or sprintf. */ prefix_count = 0; if (!pad_ourselves && dp->width_arg_index != ARG_NONE) { if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) abort (); prefixes[prefix_count++] = a.arg[dp->width_arg_index].a.a_int; } if (!prec_ourselves && dp->precision_arg_index != ARG_NONE) { if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) abort (); prefixes[prefix_count++] = a.arg[dp->precision_arg_index].a.a_int; } #if USE_SNPRINTF /* The SNPRINTF result is appended after result[0..length]. The latter is an array of DCHAR_T; SNPRINTF appends an array of TCHAR_T to it. This is possible because sizeof (TCHAR_T) divides sizeof (DCHAR_T) and alignof (TCHAR_T) <= alignof (DCHAR_T). */ # define TCHARS_PER_DCHAR (sizeof (DCHAR_T) / sizeof (TCHAR_T)) /* Ensure that maxlen below will be >= 2. Needed on BeOS, where an snprintf() with maxlen==1 acts like sprintf(). */ ENSURE_ALLOCATION (xsum (length, (2 + TCHARS_PER_DCHAR - 1) / TCHARS_PER_DCHAR)); /* Prepare checking whether snprintf returns the count via %n. */ *(TCHAR_T *) (result + length) = '\0'; #endif for (;;) { int count = -1; #if USE_SNPRINTF int retcount = 0; size_t maxlen = allocated - length; /* SNPRINTF can fail if its second argument is > INT_MAX. */ if (maxlen > INT_MAX / TCHARS_PER_DCHAR) maxlen = INT_MAX / TCHARS_PER_DCHAR; maxlen = maxlen * TCHARS_PER_DCHAR; # define SNPRINTF_BUF(arg) \ switch (prefix_count) \ { \ case 0: \ retcount = SNPRINTF ((TCHAR_T *) (result + length), \ maxlen, buf, \ arg, &count); \ break; \ case 1: \ retcount = SNPRINTF ((TCHAR_T *) (result + length), \ maxlen, buf, \ prefixes[0], arg, &count); \ break; \ case 2: \ retcount = SNPRINTF ((TCHAR_T *) (result + length), \ maxlen, buf, \ prefixes[0], prefixes[1], arg, \ &count); \ break; \ default: \ abort (); \ } #else # define SNPRINTF_BUF(arg) \ switch (prefix_count) \ { \ case 0: \ count = sprintf (tmp, buf, arg); \ break; \ case 1: \ count = sprintf (tmp, buf, prefixes[0], arg); \ break; \ case 2: \ count = sprintf (tmp, buf, prefixes[0], prefixes[1],\ arg); \ break; \ default: \ abort (); \ } #endif errno = 0; switch (type) { case TYPE_SCHAR: { int arg = a.arg[dp->arg_index].a.a_schar; SNPRINTF_BUF (arg); } break; case TYPE_UCHAR: { unsigned int arg = a.arg[dp->arg_index].a.a_uchar; SNPRINTF_BUF (arg); } break; case TYPE_SHORT: { int arg = a.arg[dp->arg_index].a.a_short; SNPRINTF_BUF (arg); } break; case TYPE_USHORT: { unsigned int arg = a.arg[dp->arg_index].a.a_ushort; SNPRINTF_BUF (arg); } break; case TYPE_INT: { int arg = a.arg[dp->arg_index].a.a_int; SNPRINTF_BUF (arg); } break; case TYPE_UINT: { unsigned int arg = a.arg[dp->arg_index].a.a_uint; SNPRINTF_BUF (arg); } break; case TYPE_LONGINT: { long int arg = a.arg[dp->arg_index].a.a_longint; SNPRINTF_BUF (arg); } break; case TYPE_ULONGINT: { unsigned long int arg = a.arg[dp->arg_index].a.a_ulongint; SNPRINTF_BUF (arg); } break; #if HAVE_LONG_LONG_INT case TYPE_LONGLONGINT: { long long int arg = a.arg[dp->arg_index].a.a_longlongint; SNPRINTF_BUF (arg); } break; case TYPE_ULONGLONGINT: { unsigned long long int arg = a.arg[dp->arg_index].a.a_ulonglongint; SNPRINTF_BUF (arg); } break; #endif case TYPE_DOUBLE: { double arg = a.arg[dp->arg_index].a.a_double; SNPRINTF_BUF (arg); } break; case TYPE_LONGDOUBLE: { long double arg = a.arg[dp->arg_index].a.a_longdouble; SNPRINTF_BUF (arg); } break; case TYPE_CHAR: { int arg = a.arg[dp->arg_index].a.a_char; SNPRINTF_BUF (arg); } break; #if HAVE_WINT_T case TYPE_WIDE_CHAR: { wint_t arg = a.arg[dp->arg_index].a.a_wide_char; SNPRINTF_BUF (arg); } break; #endif case TYPE_STRING: { const char *arg = a.arg[dp->arg_index].a.a_string; SNPRINTF_BUF (arg); } break; #if HAVE_WCHAR_T case TYPE_WIDE_STRING: { const wchar_t *arg = a.arg[dp->arg_index].a.a_wide_string; SNPRINTF_BUF (arg); } break; #endif case TYPE_POINTER: { void *arg = a.arg[dp->arg_index].a.a_pointer; SNPRINTF_BUF (arg); } break; default: abort (); } #if USE_SNPRINTF /* Portability: Not all implementations of snprintf() are ISO C 99 compliant. Determine the number of bytes that snprintf() has produced or would have produced. */ if (count >= 0) { /* Verify that snprintf() has NUL-terminated its result. */ if (count < maxlen && ((TCHAR_T *) (result + length)) [count] != '\0') abort (); /* Portability hack. */ if (retcount > count) count = retcount; } else { /* snprintf() doesn't understand the '%n' directive. */ if (fbp[1] != '\0') { /* Don't use the '%n' directive; instead, look at the snprintf() return value. */ fbp[1] = '\0'; continue; } else { /* Look at the snprintf() return value. */ if (retcount < 0) { # if !HAVE_SNPRINTF_RETVAL_C99 /* HP-UX 10.20 snprintf() is doubly deficient: It doesn't understand the '%n' directive, *and* it returns -1 (rather than the length that would have been required) when the buffer is too small. But a failure at this point can also come from other reasons than a too small buffer, such as an invalid wide string argument to the %ls directive, or possibly an invalid floating-point argument. */ size_t tmp_length = MAX_ROOM_NEEDED (&a, dp->arg_index, dp->conversion, type, flags, width, has_precision, precision, pad_ourselves); if (maxlen < tmp_length) { /* Make more room. But try to do through this reallocation only once. */ size_t bigger_need = xsum (length, xsum (tmp_length, TCHARS_PER_DCHAR - 1) / TCHARS_PER_DCHAR); /* And always grow proportionally. (There may be several arguments, each needing a little more room than the previous one.) */ size_t bigger_need2 = xsum (xtimes (allocated, 2), 12); if (bigger_need < bigger_need2) bigger_need = bigger_need2; ENSURE_ALLOCATION (bigger_need); continue; } # endif } else count = retcount; } } #endif /* Attempt to handle failure. */ if (count < 0) { /* SNPRINTF or sprintf failed. Save and use the errno that it has set, if any. */ int saved_errno = errno; if (!(result == resultbuf || result == NULL)) free (result); if (buf_malloced != NULL) free (buf_malloced); CLEANUP (); errno = (saved_errno != 0 ? saved_errno : (dp->conversion == 'c' || dp->conversion == 's' ? EILSEQ : EINVAL)); return NULL; } #if USE_SNPRINTF /* Handle overflow of the allocated buffer. If such an overflow occurs, a C99 compliant snprintf() returns a count >= maxlen. However, a non-compliant snprintf() function returns only count = maxlen - 1. To cover both cases, test whether count >= maxlen - 1. */ if ((unsigned int) count + 1 >= maxlen) { /* If maxlen already has attained its allowed maximum, allocating more memory will not increase maxlen. Instead of looping, bail out. */ if (maxlen == INT_MAX / TCHARS_PER_DCHAR) goto overflow; else { /* Need at least (count + 1) * sizeof (TCHAR_T) bytes. (The +1 is for the trailing NUL.) But ask for (count + 2) * sizeof (TCHAR_T) bytes, so that in the next round, we likely get maxlen > (unsigned int) count + 1 and so we don't get here again. And allocate proportionally, to avoid looping eternally if snprintf() reports a too small count. */ size_t n = xmax (xsum (length, ((unsigned int) count + 2 + TCHARS_PER_DCHAR - 1) / TCHARS_PER_DCHAR), xtimes (allocated, 2)); ENSURE_ALLOCATION (n); continue; } } #endif #if NEED_PRINTF_UNBOUNDED_PRECISION if (prec_ourselves) { /* Handle the precision. */ TCHAR_T *prec_ptr = # if USE_SNPRINTF (TCHAR_T *) (result + length); # else tmp; # endif size_t prefix_count; size_t move; prefix_count = 0; /* Put the additional zeroes after the sign. */ if (count >= 1 && (*prec_ptr == '-' || *prec_ptr == '+' || *prec_ptr == ' ')) prefix_count = 1; /* Put the additional zeroes after the 0x prefix if (flags & FLAG_ALT) || (dp->conversion == 'p'). */ else if (count >= 2 && prec_ptr[0] == '0' && (prec_ptr[1] == 'x' || prec_ptr[1] == 'X')) prefix_count = 2; move = count - prefix_count; if (precision > move) { /* Insert zeroes. */ size_t insert = precision - move; TCHAR_T *prec_end; # if USE_SNPRINTF size_t n = xsum (length, (count + insert + TCHARS_PER_DCHAR - 1) / TCHARS_PER_DCHAR); length += (count + TCHARS_PER_DCHAR - 1) / TCHARS_PER_DCHAR; ENSURE_ALLOCATION (n); length -= (count + TCHARS_PER_DCHAR - 1) / TCHARS_PER_DCHAR; prec_ptr = (TCHAR_T *) (result + length); # endif prec_end = prec_ptr + count; prec_ptr += prefix_count; while (prec_end > prec_ptr) { prec_end--; prec_end[insert] = prec_end[0]; } prec_end += insert; do *--prec_end = '0'; while (prec_end > prec_ptr); count += insert; } } #endif #if !USE_SNPRINTF if (count >= tmp_length) /* tmp_length was incorrectly calculated - fix the code above! */ abort (); #endif #if !DCHAR_IS_TCHAR /* Convert from TCHAR_T[] to DCHAR_T[]. */ if (dp->conversion == 'c' || dp->conversion == 's') { /* type = TYPE_CHAR or TYPE_WIDE_CHAR or TYPE_STRING TYPE_WIDE_STRING. The result string is not certainly ASCII. */ const TCHAR_T *tmpsrc; DCHAR_T *tmpdst; size_t tmpdst_len; /* This code assumes that TCHAR_T is 'char'. */ typedef int TCHAR_T_verify [2 * (sizeof (TCHAR_T) == 1) - 1]; # if USE_SNPRINTF tmpsrc = (TCHAR_T *) (result + length); # else tmpsrc = tmp; # endif tmpdst = DCHAR_CONV_FROM_ENCODING (locale_charset (), iconveh_question_mark, tmpsrc, count, NULL, NULL, &tmpdst_len); if (tmpdst == NULL) { int saved_errno = errno; if (!(result == resultbuf || result == NULL)) free (result); if (buf_malloced != NULL) free (buf_malloced); CLEANUP (); errno = saved_errno; return NULL; } ENSURE_ALLOCATION (xsum (length, tmpdst_len)); DCHAR_CPY (result + length, tmpdst, tmpdst_len); free (tmpdst); count = tmpdst_len; } else { /* The result string is ASCII. Simple 1:1 conversion. */ # if USE_SNPRINTF /* If sizeof (DCHAR_T) == sizeof (TCHAR_T), it's a no-op conversion, in-place on the array starting at (result + length). */ if (sizeof (DCHAR_T) != sizeof (TCHAR_T)) # endif { const TCHAR_T *tmpsrc; DCHAR_T *tmpdst; size_t n; # if USE_SNPRINTF if (result == resultbuf) { tmpsrc = (TCHAR_T *) (result + length); /* ENSURE_ALLOCATION will not move tmpsrc (because it's part of resultbuf). */ ENSURE_ALLOCATION (xsum (length, count)); } else { /* ENSURE_ALLOCATION will move the array (because it uses realloc(). */ ENSURE_ALLOCATION (xsum (length, count)); tmpsrc = (TCHAR_T *) (result + length); } # else tmpsrc = tmp; ENSURE_ALLOCATION (xsum (length, count)); # endif tmpdst = result + length; /* Copy backwards, because of overlapping. */ tmpsrc += count; tmpdst += count; for (n = count; n > 0; n--) *--tmpdst = (unsigned char) *--tmpsrc; } } #endif #if DCHAR_IS_TCHAR && !USE_SNPRINTF /* Make room for the result. */ if (count > allocated - length) { /* Need at least count elements. But allocate proportionally. */ size_t n = xmax (xsum (length, count), xtimes (allocated, 2)); ENSURE_ALLOCATION (n); } #endif /* Here count <= allocated - length. */ /* Perform padding. */ #if !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_LEFTADJUST || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION if (pad_ourselves && has_width) { size_t w; # if ENABLE_UNISTDIO /* Outside POSIX, it's preferrable to compare the width against the number of _characters_ of the converted value. */ w = DCHAR_MBSNLEN (result + length, count); # else /* The width is compared against the number of _bytes_ of the converted value, says POSIX. */ w = count; # endif if (w < width) { size_t pad = width - w; /* Make room for the result. */ if (xsum (count, pad) > allocated - length) { /* Need at least count + pad elements. But allocate proportionally. */ size_t n = xmax (xsum3 (length, count, pad), xtimes (allocated, 2)); # if USE_SNPRINTF length += count; ENSURE_ALLOCATION (n); length -= count; # else ENSURE_ALLOCATION (n); # endif } /* Here count + pad <= allocated - length. */ { # if !DCHAR_IS_TCHAR || USE_SNPRINTF DCHAR_T * const rp = result + length; # else DCHAR_T * const rp = tmp; # endif DCHAR_T *p = rp + count; DCHAR_T *end = p + pad; DCHAR_T *pad_ptr; # if !DCHAR_IS_TCHAR || ENABLE_UNISTDIO if (dp->conversion == 'c' || dp->conversion == 's') /* No zero-padding for string directives. */ pad_ptr = NULL; else # endif { pad_ptr = (*rp == '-' ? rp + 1 : rp); /* No zero-padding of "inf" and "nan". */ if ((*pad_ptr >= 'A' && *pad_ptr <= 'Z') || (*pad_ptr >= 'a' && *pad_ptr <= 'z')) pad_ptr = NULL; } /* The generated string now extends from rp to p, with the zero padding insertion point being at pad_ptr. */ count = count + pad; /* = end - rp */ if (flags & FLAG_LEFT) { /* Pad with spaces on the right. */ for (; pad > 0; pad--) *p++ = ' '; } else if ((flags & FLAG_ZERO) && pad_ptr != NULL) { /* Pad with zeroes. */ DCHAR_T *q = end; while (p > pad_ptr) *--q = *--p; for (; pad > 0; pad--) *p++ = '0'; } else { /* Pad with spaces on the left. */ DCHAR_T *q = end; while (p > rp) *--q = *--p; for (; pad > 0; pad--) *p++ = ' '; } } } } #endif /* Here still count <= allocated - length. */ #if !DCHAR_IS_TCHAR || USE_SNPRINTF /* The snprintf() result did fit. */ #else /* Append the sprintf() result. */ memcpy (result + length, tmp, count * sizeof (DCHAR_T)); #endif #if !USE_SNPRINTF if (tmp != tmpbuf) free (tmp); #endif #if NEED_PRINTF_DIRECTIVE_F if (dp->conversion == 'F') { /* Convert the %f result to upper case for %F. */ DCHAR_T *rp = result + length; size_t rc; for (rc = count; rc > 0; rc--, rp++) if (*rp >= 'a' && *rp <= 'z') *rp = *rp - 'a' + 'A'; } #endif length += count; break; } #undef pad_ourselves #undef prec_ourselves } } } /* Add the final NUL. */ ENSURE_ALLOCATION (xsum (length, 1)); result[length] = '\0'; if (result != resultbuf && length + 1 < allocated) { /* Shrink the allocated memory if possible. */ DCHAR_T *memory; memory = (DCHAR_T *) realloc (result, (length + 1) * sizeof (DCHAR_T)); if (memory != NULL) result = memory; } if (buf_malloced != NULL) free (buf_malloced); CLEANUP (); *lengthp = length; /* Note that we can produce a big string of a length > INT_MAX. POSIX says that snprintf() fails with errno = EOVERFLOW in this case, but that's only because snprintf() returns an 'int'. This function does not have this limitation. */ return result; #if USE_SNPRINTF overflow: if (!(result == resultbuf || result == NULL)) free (result); if (buf_malloced != NULL) free (buf_malloced); CLEANUP (); errno = EOVERFLOW; return NULL; #endif out_of_memory: if (!(result == resultbuf || result == NULL)) free (result); if (buf_malloced != NULL) free (buf_malloced); out_of_memory_1: CLEANUP (); errno = ENOMEM; return NULL; } } #undef MAX_ROOM_NEEDED #undef TCHARS_PER_DCHAR #undef SNPRINTF #undef USE_SNPRINTF #undef DCHAR_SET #undef DCHAR_CPY #undef PRINTF_PARSE #undef DIRECTIVES #undef DIRECTIVE #undef DCHAR_IS_TCHAR #undef TCHAR_T #undef DCHAR_T #undef FCHAR_T #undef VASNPRINTF gliv-1.9.7/intl/plural.y0000644000076400007640000001657611465576131012426 0ustar gg%{ /* Expression parsing for plural form selection. Copyright (C) 2000-2001, 2003, 2005-2006 Free Software Foundation, Inc. Written by Ulrich Drepper , 2000. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* For bison < 2.0, the bison generated parser uses alloca. AIX 3 forces us to put this declaration at the beginning of the file. The declaration in bison's skeleton file comes too late. This must come before because may include arbitrary system headers. This can go away once the AM_INTL_SUBDIR macro requires bison >= 2.0. */ #if defined _AIX && !defined __GNUC__ #pragma alloca #endif #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include "plural-exp.h" /* The main function generated by the parser is called __gettextparse, but we want it to be called PLURAL_PARSE. */ #ifndef _LIBC # define __gettextparse PLURAL_PARSE #endif #define YYLEX_PARAM &((struct parse_args *) arg)->cp #define YYPARSE_PARAM arg %} %pure_parser %expect 7 %union { unsigned long int num; enum expression_operator op; struct expression *exp; } %{ /* Prototypes for local functions. */ static int yylex (YYSTYPE *lval, const char **pexp); static void yyerror (const char *str); /* Allocation of expressions. */ static struct expression * new_exp (int nargs, enum expression_operator op, struct expression * const *args) { int i; struct expression *newp; /* If any of the argument could not be malloc'ed, just return NULL. */ for (i = nargs - 1; i >= 0; i--) if (args[i] == NULL) goto fail; /* Allocate a new expression. */ newp = (struct expression *) malloc (sizeof (*newp)); if (newp != NULL) { newp->nargs = nargs; newp->operation = op; for (i = nargs - 1; i >= 0; i--) newp->val.args[i] = args[i]; return newp; } fail: for (i = nargs - 1; i >= 0; i--) FREE_EXPRESSION (args[i]); return NULL; } static inline struct expression * new_exp_0 (enum expression_operator op) { return new_exp (0, op, NULL); } static inline struct expression * new_exp_1 (enum expression_operator op, struct expression *right) { struct expression *args[1]; args[0] = right; return new_exp (1, op, args); } static struct expression * new_exp_2 (enum expression_operator op, struct expression *left, struct expression *right) { struct expression *args[2]; args[0] = left; args[1] = right; return new_exp (2, op, args); } static inline struct expression * new_exp_3 (enum expression_operator op, struct expression *bexp, struct expression *tbranch, struct expression *fbranch) { struct expression *args[3]; args[0] = bexp; args[1] = tbranch; args[2] = fbranch; return new_exp (3, op, args); } %} /* This declares that all operators have the same associativity and the precedence order as in C. See [Harbison, Steele: C, A Reference Manual]. There is no unary minus and no bitwise operators. Operators with the same syntactic behaviour have been merged into a single token, to save space in the array generated by bison. */ %right '?' /* ? */ %left '|' /* || */ %left '&' /* && */ %left EQUOP2 /* == != */ %left CMPOP2 /* < > <= >= */ %left ADDOP2 /* + - */ %left MULOP2 /* * / % */ %right '!' /* ! */ %token EQUOP2 CMPOP2 ADDOP2 MULOP2 %token NUMBER %type exp %% start: exp { if ($1 == NULL) YYABORT; ((struct parse_args *) arg)->res = $1; } ; exp: exp '?' exp ':' exp { $$ = new_exp_3 (qmop, $1, $3, $5); } | exp '|' exp { $$ = new_exp_2 (lor, $1, $3); } | exp '&' exp { $$ = new_exp_2 (land, $1, $3); } | exp EQUOP2 exp { $$ = new_exp_2 ($2, $1, $3); } | exp CMPOP2 exp { $$ = new_exp_2 ($2, $1, $3); } | exp ADDOP2 exp { $$ = new_exp_2 ($2, $1, $3); } | exp MULOP2 exp { $$ = new_exp_2 ($2, $1, $3); } | '!' exp { $$ = new_exp_1 (lnot, $2); } | 'n' { $$ = new_exp_0 (var); } | NUMBER { if (($$ = new_exp_0 (num)) != NULL) $$->val.num = $1; } | '(' exp ')' { $$ = $2; } ; %% void internal_function FREE_EXPRESSION (struct expression *exp) { if (exp == NULL) return; /* Handle the recursive case. */ switch (exp->nargs) { case 3: FREE_EXPRESSION (exp->val.args[2]); /* FALLTHROUGH */ case 2: FREE_EXPRESSION (exp->val.args[1]); /* FALLTHROUGH */ case 1: FREE_EXPRESSION (exp->val.args[0]); /* FALLTHROUGH */ default: break; } free (exp); } static int yylex (YYSTYPE *lval, const char **pexp) { const char *exp = *pexp; int result; while (1) { if (exp[0] == '\0') { *pexp = exp; return YYEOF; } if (exp[0] != ' ' && exp[0] != '\t') break; ++exp; } result = *exp++; switch (result) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': { unsigned long int n = result - '0'; while (exp[0] >= '0' && exp[0] <= '9') { n *= 10; n += exp[0] - '0'; ++exp; } lval->num = n; result = NUMBER; } break; case '=': if (exp[0] == '=') { ++exp; lval->op = equal; result = EQUOP2; } else result = YYERRCODE; break; case '!': if (exp[0] == '=') { ++exp; lval->op = not_equal; result = EQUOP2; } break; case '&': case '|': if (exp[0] == result) ++exp; else result = YYERRCODE; break; case '<': if (exp[0] == '=') { ++exp; lval->op = less_or_equal; } else lval->op = less_than; result = CMPOP2; break; case '>': if (exp[0] == '=') { ++exp; lval->op = greater_or_equal; } else lval->op = greater_than; result = CMPOP2; break; case '*': lval->op = mult; result = MULOP2; break; case '/': lval->op = divide; result = MULOP2; break; case '%': lval->op = module; result = MULOP2; break; case '+': lval->op = plus; result = ADDOP2; break; case '-': lval->op = minus; result = ADDOP2; break; case 'n': case '?': case ':': case '(': case ')': /* Nothing, just return the character. */ break; case ';': case '\n': case '\0': /* Be safe and let the user call this function again. */ --exp; result = YYEOF; break; default: result = YYERRCODE; #if YYDEBUG != 0 --exp; #endif break; } *pexp = exp; return result; } static void yyerror (const char *str) { /* Do nothing. We don't print error messages here. */ } gliv-1.9.7/intl/tsearch.h0000644000076400007640000000545611465576131012532 0ustar gg/* Binary tree data structure. Copyright (C) 2006 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _TSEARCH_H #define _TSEARCH_H #if HAVE_TSEARCH /* Get tseach(), tfind(), tdelete(), twalk() declarations. */ #include #else #ifdef __cplusplus extern "C" { #endif /* See , for details. */ typedef enum { preorder, postorder, endorder, leaf } VISIT; /* Searches an element in the tree *VROOTP that compares equal to KEY. If one is found, it is returned. Otherwise, a new element equal to KEY is inserted in the tree and is returned. */ extern void * tsearch (const void *key, void **vrootp, int (*compar) (const void *, const void *)); /* Searches an element in the tree *VROOTP that compares equal to KEY. If one is found, it is returned. Otherwise, NULL is returned. */ extern void * tfind (const void *key, void *const *vrootp, int (*compar) (const void *, const void *)); /* Searches an element in the tree *VROOTP that compares equal to KEY. If one is found, it is removed from the tree, and its parent node is returned. Otherwise, NULL is returned. */ extern void * tdelete (const void *key, void **vrootp, int (*compar) (const void *, const void *)); /* Perform a depth-first, left-to-right traversal of the tree VROOT. The ACTION function is called: - for non-leaf nodes: 3 times, before the left subtree traversal, after the left subtree traversal but before the right subtree traversal, and after the right subtree traversal, - for leaf nodes: once. The arguments passed to ACTION are: 1. the node; it can be casted to a 'const void * const *', i.e. into a pointer to the key, 2. an indicator which visit of the node this is, 3. the level of the node in the tree (0 for the root). */ extern void twalk (const void *vroot, void (*action) (const void *, VISIT, int)); #ifdef __cplusplus } #endif #endif #endif /* _TSEARCH_H */ gliv-1.9.7/intl/lock.c0000644000076400007640000006434611465576131012027 0ustar gg/* Locking in multithreaded situations. Copyright (C) 2005-2008 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Written by Bruno Haible , 2005. Based on GCC's gthr-posix.h, gthr-posix95.h, gthr-solaris.h, gthr-win32.h. */ #include #include "lock.h" /* ========================================================================= */ #if USE_POSIX_THREADS /* -------------------------- gl_lock_t datatype -------------------------- */ /* ------------------------- gl_rwlock_t datatype ------------------------- */ # if HAVE_PTHREAD_RWLOCK # if !defined PTHREAD_RWLOCK_INITIALIZER int glthread_rwlock_init_multithreaded (gl_rwlock_t *lock) { int err; err = pthread_rwlock_init (&lock->rwlock, NULL); if (err != 0) return err; lock->initialized = 1; return 0; } int glthread_rwlock_rdlock_multithreaded (gl_rwlock_t *lock) { if (!lock->initialized) { int err; err = pthread_mutex_lock (&lock->guard); if (err != 0) return err; if (!lock->initialized) { err = glthread_rwlock_init_multithreaded (lock); if (err != 0) { pthread_mutex_unlock (&lock->guard); return err; } } err = pthread_mutex_unlock (&lock->guard); if (err != 0) return err; } return pthread_rwlock_rdlock (&lock->rwlock); } int glthread_rwlock_wrlock_multithreaded (gl_rwlock_t *lock) { if (!lock->initialized) { int err; err = pthread_mutex_lock (&lock->guard); if (err != 0) return err; if (!lock->initialized) { err = glthread_rwlock_init_multithreaded (lock); if (err != 0) { pthread_mutex_unlock (&lock->guard); return err; } } err = pthread_mutex_unlock (&lock->guard); if (err != 0) return err; } return pthread_rwlock_wrlock (&lock->rwlock); } int glthread_rwlock_unlock_multithreaded (gl_rwlock_t *lock) { if (!lock->initialized) return EINVAL; return pthread_rwlock_unlock (&lock->rwlock); } int glthread_rwlock_destroy_multithreaded (gl_rwlock_t *lock) { int err; if (!lock->initialized) return EINVAL; err = pthread_rwlock_destroy (&lock->rwlock); if (err != 0) return err; lock->initialized = 0; return 0; } # endif # else int glthread_rwlock_init_multithreaded (gl_rwlock_t *lock) { int err; err = pthread_mutex_init (&lock->lock, NULL); if (err != 0) return err; err = pthread_cond_init (&lock->waiting_readers, NULL); if (err != 0) return err; err = pthread_cond_init (&lock->waiting_writers, NULL); if (err != 0) return err; lock->waiting_writers_count = 0; lock->runcount = 0; return 0; } int glthread_rwlock_rdlock_multithreaded (gl_rwlock_t *lock) { int err; err = pthread_mutex_lock (&lock->lock); if (err != 0) return err; /* Test whether only readers are currently running, and whether the runcount field will not overflow. */ /* POSIX says: "It is implementation-defined whether the calling thread acquires the lock when a writer does not hold the lock and there are writers blocked on the lock." Let's say, no: give the writers a higher priority. */ while (!(lock->runcount + 1 > 0 && lock->waiting_writers_count == 0)) { /* This thread has to wait for a while. Enqueue it among the waiting_readers. */ err = pthread_cond_wait (&lock->waiting_readers, &lock->lock); if (err != 0) { pthread_mutex_unlock (&lock->lock); return err; } } lock->runcount++; return pthread_mutex_unlock (&lock->lock); } int glthread_rwlock_wrlock_multithreaded (gl_rwlock_t *lock) { int err; err = pthread_mutex_lock (&lock->lock); if (err != 0) return err; /* Test whether no readers or writers are currently running. */ while (!(lock->runcount == 0)) { /* This thread has to wait for a while. Enqueue it among the waiting_writers. */ lock->waiting_writers_count++; err = pthread_cond_wait (&lock->waiting_writers, &lock->lock); if (err != 0) { lock->waiting_writers_count--; pthread_mutex_unlock (&lock->lock); return err; } lock->waiting_writers_count--; } lock->runcount--; /* runcount becomes -1 */ return pthread_mutex_unlock (&lock->lock); } int glthread_rwlock_unlock_multithreaded (gl_rwlock_t *lock) { int err; err = pthread_mutex_lock (&lock->lock); if (err != 0) return err; if (lock->runcount < 0) { /* Drop a writer lock. */ if (!(lock->runcount == -1)) { pthread_mutex_unlock (&lock->lock); return EINVAL; } lock->runcount = 0; } else { /* Drop a reader lock. */ if (!(lock->runcount > 0)) { pthread_mutex_unlock (&lock->lock); return EINVAL; } lock->runcount--; } if (lock->runcount == 0) { /* POSIX recommends that "write locks shall take precedence over read locks", to avoid "writer starvation". */ if (lock->waiting_writers_count > 0) { /* Wake up one of the waiting writers. */ err = pthread_cond_signal (&lock->waiting_writers); if (err != 0) { pthread_mutex_unlock (&lock->lock); return err; } } else { /* Wake up all waiting readers. */ err = pthread_cond_broadcast (&lock->waiting_readers); if (err != 0) { pthread_mutex_unlock (&lock->lock); return err; } } } return pthread_mutex_unlock (&lock->lock); } int glthread_rwlock_destroy_multithreaded (gl_rwlock_t *lock) { int err; err = pthread_mutex_destroy (&lock->lock); if (err != 0) return err; err = pthread_cond_destroy (&lock->waiting_readers); if (err != 0) return err; err = pthread_cond_destroy (&lock->waiting_writers); if (err != 0) return err; return 0; } # endif /* --------------------- gl_recursive_lock_t datatype --------------------- */ # if HAVE_PTHREAD_MUTEX_RECURSIVE # if defined PTHREAD_RECURSIVE_MUTEX_INITIALIZER || defined PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP int glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock) { pthread_mutexattr_t attributes; int err; err = pthread_mutexattr_init (&attributes); if (err != 0) return err; err = pthread_mutexattr_settype (&attributes, PTHREAD_MUTEX_RECURSIVE); if (err != 0) { pthread_mutexattr_destroy (&attributes); return err; } err = pthread_mutex_init (lock, &attributes); if (err != 0) { pthread_mutexattr_destroy (&attributes); return err; } err = pthread_mutexattr_destroy (&attributes); if (err != 0) return err; return 0; } # else int glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock) { pthread_mutexattr_t attributes; int err; err = pthread_mutexattr_init (&attributes); if (err != 0) return err; err = pthread_mutexattr_settype (&attributes, PTHREAD_MUTEX_RECURSIVE); if (err != 0) { pthread_mutexattr_destroy (&attributes); return err; } err = pthread_mutex_init (&lock->recmutex, &attributes); if (err != 0) { pthread_mutexattr_destroy (&attributes); return err; } err = pthread_mutexattr_destroy (&attributes); if (err != 0) return err; lock->initialized = 1; return 0; } int glthread_recursive_lock_lock_multithreaded (gl_recursive_lock_t *lock) { if (!lock->initialized) { int err; err = pthread_mutex_lock (&lock->guard); if (err != 0) return err; if (!lock->initialized) { err = glthread_recursive_lock_init_multithreaded (lock); if (err != 0) { pthread_mutex_unlock (&lock->guard); return err; } } err = pthread_mutex_unlock (&lock->guard); if (err != 0) return err; } return pthread_mutex_lock (&lock->recmutex); } int glthread_recursive_lock_unlock_multithreaded (gl_recursive_lock_t *lock) { if (!lock->initialized) return EINVAL; return pthread_mutex_unlock (&lock->recmutex); } int glthread_recursive_lock_destroy_multithreaded (gl_recursive_lock_t *lock) { int err; if (!lock->initialized) return EINVAL; err = pthread_mutex_destroy (&lock->recmutex); if (err != 0) return err; lock->initialized = 0; return 0; } # endif # else int glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock) { int err; err = pthread_mutex_init (&lock->mutex, NULL); if (err != 0) return err; lock->owner = (pthread_t) 0; lock->depth = 0; return 0; } int glthread_recursive_lock_lock_multithreaded (gl_recursive_lock_t *lock) { pthread_t self = pthread_self (); if (lock->owner != self) { int err; err = pthread_mutex_lock (&lock->mutex); if (err != 0) return err; lock->owner = self; } if (++(lock->depth) == 0) /* wraparound? */ { lock->depth--; return EAGAIN; } return 0; } int glthread_recursive_lock_unlock_multithreaded (gl_recursive_lock_t *lock) { if (lock->owner != pthread_self ()) return EPERM; if (lock->depth == 0) return EINVAL; if (--(lock->depth) == 0) { lock->owner = (pthread_t) 0; return pthread_mutex_unlock (&lock->mutex); } else return 0; } int glthread_recursive_lock_destroy_multithreaded (gl_recursive_lock_t *lock) { if (lock->owner != (pthread_t) 0) return EBUSY; return pthread_mutex_destroy (&lock->mutex); } # endif /* -------------------------- gl_once_t datatype -------------------------- */ static const pthread_once_t fresh_once = PTHREAD_ONCE_INIT; int glthread_once_singlethreaded (pthread_once_t *once_control) { /* We don't know whether pthread_once_t is an integer type, a floating-point type, a pointer type, or a structure type. */ char *firstbyte = (char *)once_control; if (*firstbyte == *(const char *)&fresh_once) { /* First time use of once_control. Invert the first byte. */ *firstbyte = ~ *(const char *)&fresh_once; return 1; } else return 0; } #endif /* ========================================================================= */ #if USE_PTH_THREADS /* Use the GNU Pth threads library. */ /* -------------------------- gl_lock_t datatype -------------------------- */ /* ------------------------- gl_rwlock_t datatype ------------------------- */ /* --------------------- gl_recursive_lock_t datatype --------------------- */ /* -------------------------- gl_once_t datatype -------------------------- */ static void glthread_once_call (void *arg) { void (**gl_once_temp_addr) (void) = (void (**) (void)) arg; void (*initfunction) (void) = *gl_once_temp_addr; initfunction (); } int glthread_once_multithreaded (pth_once_t *once_control, void (*initfunction) (void)) { void (*temp) (void) = initfunction; return (!pth_once (once_control, glthread_once_call, &temp) ? errno : 0); } int glthread_once_singlethreaded (pth_once_t *once_control) { /* We know that pth_once_t is an integer type. */ if (*once_control == PTH_ONCE_INIT) { /* First time use of once_control. Invert the marker. */ *once_control = ~ PTH_ONCE_INIT; return 1; } else return 0; } #endif /* ========================================================================= */ #if USE_SOLARIS_THREADS /* Use the old Solaris threads library. */ /* -------------------------- gl_lock_t datatype -------------------------- */ /* ------------------------- gl_rwlock_t datatype ------------------------- */ /* --------------------- gl_recursive_lock_t datatype --------------------- */ int glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock) { int err; err = mutex_init (&lock->mutex, USYNC_THREAD, NULL); if (err != 0) return err; lock->owner = (thread_t) 0; lock->depth = 0; return 0; } int glthread_recursive_lock_lock_multithreaded (gl_recursive_lock_t *lock) { thread_t self = thr_self (); if (lock->owner != self) { int err; err = mutex_lock (&lock->mutex); if (err != 0) return err; lock->owner = self; } if (++(lock->depth) == 0) /* wraparound? */ { lock->depth--; return EAGAIN; } return 0; } int glthread_recursive_lock_unlock_multithreaded (gl_recursive_lock_t *lock) { if (lock->owner != thr_self ()) return EPERM; if (lock->depth == 0) return EINVAL; if (--(lock->depth) == 0) { lock->owner = (thread_t) 0; return mutex_unlock (&lock->mutex); } else return 0; } int glthread_recursive_lock_destroy_multithreaded (gl_recursive_lock_t *lock) { if (lock->owner != (thread_t) 0) return EBUSY; return mutex_destroy (&lock->mutex); } /* -------------------------- gl_once_t datatype -------------------------- */ int glthread_once_multithreaded (gl_once_t *once_control, void (*initfunction) (void)) { if (!once_control->inited) { int err; /* Use the mutex to guarantee that if another thread is already calling the initfunction, this thread waits until it's finished. */ err = mutex_lock (&once_control->mutex); if (err != 0) return err; if (!once_control->inited) { once_control->inited = 1; initfunction (); } return mutex_unlock (&once_control->mutex); } else return 0; } int glthread_once_singlethreaded (gl_once_t *once_control) { /* We know that gl_once_t contains an integer type. */ if (!once_control->inited) { /* First time use of once_control. Invert the marker. */ once_control->inited = ~ 0; return 1; } else return 0; } #endif /* ========================================================================= */ #if USE_WIN32_THREADS /* -------------------------- gl_lock_t datatype -------------------------- */ void glthread_lock_init_func (gl_lock_t *lock) { InitializeCriticalSection (&lock->lock); lock->guard.done = 1; } int glthread_lock_lock_func (gl_lock_t *lock) { if (!lock->guard.done) { if (InterlockedIncrement (&lock->guard.started) == 0) /* This thread is the first one to need this lock. Initialize it. */ glthread_lock_init (lock); else /* Yield the CPU while waiting for another thread to finish initializing this lock. */ while (!lock->guard.done) Sleep (0); } EnterCriticalSection (&lock->lock); return 0; } int glthread_lock_unlock_func (gl_lock_t *lock) { if (!lock->guard.done) return EINVAL; LeaveCriticalSection (&lock->lock); return 0; } int glthread_lock_destroy_func (gl_lock_t *lock) { if (!lock->guard.done) return EINVAL; DeleteCriticalSection (&lock->lock); lock->guard.done = 0; return 0; } /* ------------------------- gl_rwlock_t datatype ------------------------- */ /* In this file, the waitqueues are implemented as circular arrays. */ #define gl_waitqueue_t gl_carray_waitqueue_t static inline void gl_waitqueue_init (gl_waitqueue_t *wq) { wq->array = NULL; wq->count = 0; wq->alloc = 0; wq->offset = 0; } /* Enqueues the current thread, represented by an event, in a wait queue. Returns INVALID_HANDLE_VALUE if an allocation failure occurs. */ static HANDLE gl_waitqueue_add (gl_waitqueue_t *wq) { HANDLE event; unsigned int index; if (wq->count == wq->alloc) { unsigned int new_alloc = 2 * wq->alloc + 1; HANDLE *new_array = (HANDLE *) realloc (wq->array, new_alloc * sizeof (HANDLE)); if (new_array == NULL) /* No more memory. */ return INVALID_HANDLE_VALUE; /* Now is a good opportunity to rotate the array so that its contents starts at offset 0. */ if (wq->offset > 0) { unsigned int old_count = wq->count; unsigned int old_alloc = wq->alloc; unsigned int old_offset = wq->offset; unsigned int i; if (old_offset + old_count > old_alloc) { unsigned int limit = old_offset + old_count - old_alloc; for (i = 0; i < limit; i++) new_array[old_alloc + i] = new_array[i]; } for (i = 0; i < old_count; i++) new_array[i] = new_array[old_offset + i]; wq->offset = 0; } wq->array = new_array; wq->alloc = new_alloc; } /* Whether the created event is a manual-reset one or an auto-reset one, does not matter, since we will wait on it only once. */ event = CreateEvent (NULL, TRUE, FALSE, NULL); if (event == INVALID_HANDLE_VALUE) /* No way to allocate an event. */ return INVALID_HANDLE_VALUE; index = wq->offset + wq->count; if (index >= wq->alloc) index -= wq->alloc; wq->array[index] = event; wq->count++; return event; } /* Notifies the first thread from a wait queue and dequeues it. */ static inline void gl_waitqueue_notify_first (gl_waitqueue_t *wq) { SetEvent (wq->array[wq->offset + 0]); wq->offset++; wq->count--; if (wq->count == 0 || wq->offset == wq->alloc) wq->offset = 0; } /* Notifies all threads from a wait queue and dequeues them all. */ static inline void gl_waitqueue_notify_all (gl_waitqueue_t *wq) { unsigned int i; for (i = 0; i < wq->count; i++) { unsigned int index = wq->offset + i; if (index >= wq->alloc) index -= wq->alloc; SetEvent (wq->array[index]); } wq->count = 0; wq->offset = 0; } void glthread_rwlock_init_func (gl_rwlock_t *lock) { InitializeCriticalSection (&lock->lock); gl_waitqueue_init (&lock->waiting_readers); gl_waitqueue_init (&lock->waiting_writers); lock->runcount = 0; lock->guard.done = 1; } int glthread_rwlock_rdlock_func (gl_rwlock_t *lock) { if (!lock->guard.done) { if (InterlockedIncrement (&lock->guard.started) == 0) /* This thread is the first one to need this lock. Initialize it. */ glthread_rwlock_init (lock); else /* Yield the CPU while waiting for another thread to finish initializing this lock. */ while (!lock->guard.done) Sleep (0); } EnterCriticalSection (&lock->lock); /* Test whether only readers are currently running, and whether the runcount field will not overflow. */ if (!(lock->runcount + 1 > 0)) { /* This thread has to wait for a while. Enqueue it among the waiting_readers. */ HANDLE event = gl_waitqueue_add (&lock->waiting_readers); if (event != INVALID_HANDLE_VALUE) { DWORD result; LeaveCriticalSection (&lock->lock); /* Wait until another thread signals this event. */ result = WaitForSingleObject (event, INFINITE); if (result == WAIT_FAILED || result == WAIT_TIMEOUT) abort (); CloseHandle (event); /* The thread which signalled the event already did the bookkeeping: removed us from the waiting_readers, incremented lock->runcount. */ if (!(lock->runcount > 0)) abort (); return 0; } else { /* Allocation failure. Weird. */ do { LeaveCriticalSection (&lock->lock); Sleep (1); EnterCriticalSection (&lock->lock); } while (!(lock->runcount + 1 > 0)); } } lock->runcount++; LeaveCriticalSection (&lock->lock); return 0; } int glthread_rwlock_wrlock_func (gl_rwlock_t *lock) { if (!lock->guard.done) { if (InterlockedIncrement (&lock->guard.started) == 0) /* This thread is the first one to need this lock. Initialize it. */ glthread_rwlock_init (lock); else /* Yield the CPU while waiting for another thread to finish initializing this lock. */ while (!lock->guard.done) Sleep (0); } EnterCriticalSection (&lock->lock); /* Test whether no readers or writers are currently running. */ if (!(lock->runcount == 0)) { /* This thread has to wait for a while. Enqueue it among the waiting_writers. */ HANDLE event = gl_waitqueue_add (&lock->waiting_writers); if (event != INVALID_HANDLE_VALUE) { DWORD result; LeaveCriticalSection (&lock->lock); /* Wait until another thread signals this event. */ result = WaitForSingleObject (event, INFINITE); if (result == WAIT_FAILED || result == WAIT_TIMEOUT) abort (); CloseHandle (event); /* The thread which signalled the event already did the bookkeeping: removed us from the waiting_writers, set lock->runcount = -1. */ if (!(lock->runcount == -1)) abort (); return 0; } else { /* Allocation failure. Weird. */ do { LeaveCriticalSection (&lock->lock); Sleep (1); EnterCriticalSection (&lock->lock); } while (!(lock->runcount == 0)); } } lock->runcount--; /* runcount becomes -1 */ LeaveCriticalSection (&lock->lock); return 0; } int glthread_rwlock_unlock_func (gl_rwlock_t *lock) { if (!lock->guard.done) return EINVAL; EnterCriticalSection (&lock->lock); if (lock->runcount < 0) { /* Drop a writer lock. */ if (!(lock->runcount == -1)) abort (); lock->runcount = 0; } else { /* Drop a reader lock. */ if (!(lock->runcount > 0)) { LeaveCriticalSection (&lock->lock); return EPERM; } lock->runcount--; } if (lock->runcount == 0) { /* POSIX recommends that "write locks shall take precedence over read locks", to avoid "writer starvation". */ if (lock->waiting_writers.count > 0) { /* Wake up one of the waiting writers. */ lock->runcount--; gl_waitqueue_notify_first (&lock->waiting_writers); } else { /* Wake up all waiting readers. */ lock->runcount += lock->waiting_readers.count; gl_waitqueue_notify_all (&lock->waiting_readers); } } LeaveCriticalSection (&lock->lock); return 0; } int glthread_rwlock_destroy_func (gl_rwlock_t *lock) { if (!lock->guard.done) return EINVAL; if (lock->runcount != 0) return EBUSY; DeleteCriticalSection (&lock->lock); if (lock->waiting_readers.array != NULL) free (lock->waiting_readers.array); if (lock->waiting_writers.array != NULL) free (lock->waiting_writers.array); lock->guard.done = 0; return 0; } /* --------------------- gl_recursive_lock_t datatype --------------------- */ void glthread_recursive_lock_init_func (gl_recursive_lock_t *lock) { lock->owner = 0; lock->depth = 0; InitializeCriticalSection (&lock->lock); lock->guard.done = 1; } int glthread_recursive_lock_lock_func (gl_recursive_lock_t *lock) { if (!lock->guard.done) { if (InterlockedIncrement (&lock->guard.started) == 0) /* This thread is the first one to need this lock. Initialize it. */ glthread_recursive_lock_init (lock); else /* Yield the CPU while waiting for another thread to finish initializing this lock. */ while (!lock->guard.done) Sleep (0); } { DWORD self = GetCurrentThreadId (); if (lock->owner != self) { EnterCriticalSection (&lock->lock); lock->owner = self; } if (++(lock->depth) == 0) /* wraparound? */ { lock->depth--; return EAGAIN; } } return 0; } int glthread_recursive_lock_unlock_func (gl_recursive_lock_t *lock) { if (lock->owner != GetCurrentThreadId ()) return EPERM; if (lock->depth == 0) return EINVAL; if (--(lock->depth) == 0) { lock->owner = 0; LeaveCriticalSection (&lock->lock); } return 0; } int glthread_recursive_lock_destroy_func (gl_recursive_lock_t *lock) { if (lock->owner != 0) return EBUSY; DeleteCriticalSection (&lock->lock); lock->guard.done = 0; return 0; } /* -------------------------- gl_once_t datatype -------------------------- */ void glthread_once_func (gl_once_t *once_control, void (*initfunction) (void)) { if (once_control->inited <= 0) { if (InterlockedIncrement (&once_control->started) == 0) { /* This thread is the first one to come to this once_control. */ InitializeCriticalSection (&once_control->lock); EnterCriticalSection (&once_control->lock); once_control->inited = 0; initfunction (); once_control->inited = 1; LeaveCriticalSection (&once_control->lock); } else { /* Undo last operation. */ InterlockedDecrement (&once_control->started); /* Some other thread has already started the initialization. Yield the CPU while waiting for the other thread to finish initializing and taking the lock. */ while (once_control->inited < 0) Sleep (0); if (once_control->inited <= 0) { /* Take the lock. This blocks until the other thread has finished calling the initfunction. */ EnterCriticalSection (&once_control->lock); LeaveCriticalSection (&once_control->lock); if (!(once_control->inited > 0)) abort (); } } } } #endif /* ========================================================================= */ gliv-1.9.7/intl/tsearch.c0000644000076400007640000005204111465576131012515 0ustar gg/* Copyright (C) 1995, 1996, 1997, 2000, 2006 Free Software Foundation, Inc. Contributed by Bernd Schmidt , 1997. NOTE: The canonical source of this file is maintained with the GNU C Library. Bugs can be reported to bug-glibc@gnu.org. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Tree search for red/black trees. The algorithm for adding nodes is taken from one of the many "Algorithms" books by Robert Sedgewick, although the implementation differs. The algorithm for deleting nodes can probably be found in a book named "Introduction to Algorithms" by Cormen/Leiserson/Rivest. At least that's the book that my professor took most algorithms from during the "Data Structures" course... Totally public domain. */ /* Red/black trees are binary trees in which the edges are colored either red or black. They have the following properties: 1. The number of black edges on every path from the root to a leaf is constant. 2. No two red edges are adjacent. Therefore there is an upper bound on the length of every path, it's O(log n) where n is the number of nodes in the tree. No path can be longer than 1+2*P where P is the length of the shortest path in the tree. Useful for the implementation: 3. If one of the children of a node is NULL, then the other one is red (if it exists). In the implementation, not the edges are colored, but the nodes. The color interpreted as the color of the edge leading to this node. The color is meaningless for the root node, but we color the root node black for convenience. All added nodes are red initially. Adding to a red/black tree is rather easy. The right place is searched with a usual binary tree search. Additionally, whenever a node N is reached that has two red successors, the successors are colored black and the node itself colored red. This moves red edges up the tree where they pose less of a problem once we get to really insert the new node. Changing N's color to red may violate rule 2, however, so rotations may become necessary to restore the invariants. Adding a new red leaf may violate the same rule, so afterwards an additional check is run and the tree possibly rotated. Deleting is hairy. There are mainly two nodes involved: the node to be deleted (n1), and another node that is to be unchained from the tree (n2). If n1 has a successor (the node with a smallest key that is larger than n1), then the successor becomes n2 and its contents are copied into n1, otherwise n1 becomes n2. Unchaining a node may violate rule 1: if n2 is black, one subtree is missing one black edge afterwards. The algorithm must try to move this error upwards towards the root, so that the subtree that does not have enough black edges becomes the whole tree. Once that happens, the error has disappeared. It may not be necessary to go all the way up, since it is possible that rotations and recoloring can fix the error before that. Although the deletion algorithm must walk upwards through the tree, we do not store parent pointers in the nodes. Instead, delete allocates a small array of parent pointers and fills it while descending the tree. Since we know that the length of a path is O(log n), where n is the number of nodes, this is likely to use less memory. */ /* Tree rotations look like this: A C / \ / \ B C A G / \ / \ --> / \ D E F G B F / \ D E In this case, A has been rotated left. This preserves the ordering of the binary tree. */ #include /* Specification. */ #ifdef IN_LIBINTL # include "tsearch.h" #else # include #endif #include typedef int (*__compar_fn_t) (const void *, const void *); typedef void (*__action_fn_t) (const void *, VISIT, int); #ifndef weak_alias # define __tsearch tsearch # define __tfind tfind # define __tdelete tdelete # define __twalk twalk #endif #ifndef internal_function /* Inside GNU libc we mark some function in a special way. In other environments simply ignore the marking. */ # define internal_function #endif typedef struct node_t { /* Callers expect this to be the first element in the structure - do not move! */ const void *key; struct node_t *left; struct node_t *right; unsigned int red:1; } *node; typedef const struct node_t *const_node; #undef DEBUGGING #ifdef DEBUGGING /* Routines to check tree invariants. */ #include #define CHECK_TREE(a) check_tree(a) static void check_tree_recurse (node p, int d_sofar, int d_total) { if (p == NULL) { assert (d_sofar == d_total); return; } check_tree_recurse (p->left, d_sofar + (p->left && !p->left->red), d_total); check_tree_recurse (p->right, d_sofar + (p->right && !p->right->red), d_total); if (p->left) assert (!(p->left->red && p->red)); if (p->right) assert (!(p->right->red && p->red)); } static void check_tree (node root) { int cnt = 0; node p; if (root == NULL) return; root->red = 0; for(p = root->left; p; p = p->left) cnt += !p->red; check_tree_recurse (root, 0, cnt); } #else #define CHECK_TREE(a) #endif /* Possibly "split" a node with two red successors, and/or fix up two red edges in a row. ROOTP is a pointer to the lowest node we visited, PARENTP and GPARENTP pointers to its parent/grandparent. P_R and GP_R contain the comparison values that determined which way was taken in the tree to reach ROOTP. MODE is 1 if we need not do the split, but must check for two red edges between GPARENTP and ROOTP. */ static void maybe_split_for_insert (node *rootp, node *parentp, node *gparentp, int p_r, int gp_r, int mode) { node root = *rootp; node *rp, *lp; rp = &(*rootp)->right; lp = &(*rootp)->left; /* See if we have to split this node (both successors red). */ if (mode == 1 || ((*rp) != NULL && (*lp) != NULL && (*rp)->red && (*lp)->red)) { /* This node becomes red, its successors black. */ root->red = 1; if (*rp) (*rp)->red = 0; if (*lp) (*lp)->red = 0; /* If the parent of this node is also red, we have to do rotations. */ if (parentp != NULL && (*parentp)->red) { node gp = *gparentp; node p = *parentp; /* There are two main cases: 1. The edge types (left or right) of the two red edges differ. 2. Both red edges are of the same type. There exist two symmetries of each case, so there is a total of 4 cases. */ if ((p_r > 0) != (gp_r > 0)) { /* Put the child at the top of the tree, with its parent and grandparent as successors. */ p->red = 1; gp->red = 1; root->red = 0; if (p_r < 0) { /* Child is left of parent. */ p->left = *rp; *rp = p; gp->right = *lp; *lp = gp; } else { /* Child is right of parent. */ p->right = *lp; *lp = p; gp->left = *rp; *rp = gp; } *gparentp = root; } else { *gparentp = *parentp; /* Parent becomes the top of the tree, grandparent and child are its successors. */ p->red = 0; gp->red = 1; if (p_r < 0) { /* Left edges. */ gp->left = p->right; p->right = gp; } else { /* Right edges. */ gp->right = p->left; p->left = gp; } } } } } /* Find or insert datum into search tree. KEY is the key to be located, ROOTP is the address of tree root, COMPAR the ordering function. */ void * __tsearch (const void *key, void **vrootp, __compar_fn_t compar) { node q; node *parentp = NULL, *gparentp = NULL; node *rootp = (node *) vrootp; node *nextp; int r = 0, p_r = 0, gp_r = 0; /* No they might not, Mr Compiler. */ if (rootp == NULL) return NULL; /* This saves some additional tests below. */ if (*rootp != NULL) (*rootp)->red = 0; CHECK_TREE (*rootp); nextp = rootp; while (*nextp != NULL) { node root = *rootp; r = (*compar) (key, root->key); if (r == 0) return root; maybe_split_for_insert (rootp, parentp, gparentp, p_r, gp_r, 0); /* If that did any rotations, parentp and gparentp are now garbage. That doesn't matter, because the values they contain are never used again in that case. */ nextp = r < 0 ? &root->left : &root->right; if (*nextp == NULL) break; gparentp = parentp; parentp = rootp; rootp = nextp; gp_r = p_r; p_r = r; } q = (struct node_t *) malloc (sizeof (struct node_t)); if (q != NULL) { *nextp = q; /* link new node to old */ q->key = key; /* initialize new node */ q->red = 1; q->left = q->right = NULL; if (nextp != rootp) /* There may be two red edges in a row now, which we must avoid by rotating the tree. */ maybe_split_for_insert (nextp, rootp, parentp, r, p_r, 1); } return q; } #ifdef weak_alias weak_alias (__tsearch, tsearch) #endif /* Find datum in search tree. KEY is the key to be located, ROOTP is the address of tree root, COMPAR the ordering function. */ void * __tfind (key, vrootp, compar) const void *key; void *const *vrootp; __compar_fn_t compar; { node *rootp = (node *) vrootp; if (rootp == NULL) return NULL; CHECK_TREE (*rootp); while (*rootp != NULL) { node root = *rootp; int r; r = (*compar) (key, root->key); if (r == 0) return root; rootp = r < 0 ? &root->left : &root->right; } return NULL; } #ifdef weak_alias weak_alias (__tfind, tfind) #endif /* Delete node with given key. KEY is the key to be deleted, ROOTP is the address of the root of tree, COMPAR the comparison function. */ void * __tdelete (const void *key, void **vrootp, __compar_fn_t compar) { node p, q, r, retval; int cmp; node *rootp = (node *) vrootp; node root, unchained; /* Stack of nodes so we remember the parents without recursion. It's _very_ unlikely that there are paths longer than 40 nodes. The tree would need to have around 250.000 nodes. */ int stacksize = 100; int sp = 0; node *nodestack[100]; if (rootp == NULL) return NULL; p = *rootp; if (p == NULL) return NULL; CHECK_TREE (p); while ((cmp = (*compar) (key, (*rootp)->key)) != 0) { if (sp == stacksize) abort (); nodestack[sp++] = rootp; p = *rootp; rootp = ((cmp < 0) ? &(*rootp)->left : &(*rootp)->right); if (*rootp == NULL) return NULL; } /* This is bogus if the node to be deleted is the root... this routine really should return an integer with 0 for success, -1 for failure and errno = ESRCH or something. */ retval = p; /* We don't unchain the node we want to delete. Instead, we overwrite it with its successor and unchain the successor. If there is no successor, we really unchain the node to be deleted. */ root = *rootp; r = root->right; q = root->left; if (q == NULL || r == NULL) unchained = root; else { node *parent = rootp, *up = &root->right; for (;;) { if (sp == stacksize) abort (); nodestack[sp++] = parent; parent = up; if ((*up)->left == NULL) break; up = &(*up)->left; } unchained = *up; } /* We know that either the left or right successor of UNCHAINED is NULL. R becomes the other one, it is chained into the parent of UNCHAINED. */ r = unchained->left; if (r == NULL) r = unchained->right; if (sp == 0) *rootp = r; else { q = *nodestack[sp-1]; if (unchained == q->right) q->right = r; else q->left = r; } if (unchained != root) root->key = unchained->key; if (!unchained->red) { /* Now we lost a black edge, which means that the number of black edges on every path is no longer constant. We must balance the tree. */ /* NODESTACK now contains all parents of R. R is likely to be NULL in the first iteration. */ /* NULL nodes are considered black throughout - this is necessary for correctness. */ while (sp > 0 && (r == NULL || !r->red)) { node *pp = nodestack[sp - 1]; p = *pp; /* Two symmetric cases. */ if (r == p->left) { /* Q is R's brother, P is R's parent. The subtree with root R has one black edge less than the subtree with root Q. */ q = p->right; if (q->red) { /* If Q is red, we know that P is black. We rotate P left so that Q becomes the top node in the tree, with P below it. P is colored red, Q is colored black. This action does not change the black edge count for any leaf in the tree, but we will be able to recognize one of the following situations, which all require that Q is black. */ q->red = 0; p->red = 1; /* Left rotate p. */ p->right = q->left; q->left = p; *pp = q; /* Make sure pp is right if the case below tries to use it. */ nodestack[sp++] = pp = &q->left; q = p->right; } /* We know that Q can't be NULL here. We also know that Q is black. */ if ((q->left == NULL || !q->left->red) && (q->right == NULL || !q->right->red)) { /* Q has two black successors. We can simply color Q red. The whole subtree with root P is now missing one black edge. Note that this action can temporarily make the tree invalid (if P is red). But we will exit the loop in that case and set P black, which both makes the tree valid and also makes the black edge count come out right. If P is black, we are at least one step closer to the root and we'll try again the next iteration. */ q->red = 1; r = p; } else { /* Q is black, one of Q's successors is red. We can repair the tree with one operation and will exit the loop afterwards. */ if (q->right == NULL || !q->right->red) { /* The left one is red. We perform the same action as in maybe_split_for_insert where two red edges are adjacent but point in different directions: Q's left successor (let's call it Q2) becomes the top of the subtree we are looking at, its parent (Q) and grandparent (P) become its successors. The former successors of Q2 are placed below P and Q. P becomes black, and Q2 gets the color that P had. This changes the black edge count only for node R and its successors. */ node q2 = q->left; q2->red = p->red; p->right = q2->left; q->left = q2->right; q2->right = q; q2->left = p; *pp = q2; p->red = 0; } else { /* It's the right one. Rotate P left. P becomes black, and Q gets the color that P had. Q's right successor also becomes black. This changes the black edge count only for node R and its successors. */ q->red = p->red; p->red = 0; q->right->red = 0; /* left rotate p */ p->right = q->left; q->left = p; *pp = q; } /* We're done. */ sp = 1; r = NULL; } } else { /* Comments: see above. */ q = p->left; if (q->red) { q->red = 0; p->red = 1; p->left = q->right; q->right = p; *pp = q; nodestack[sp++] = pp = &q->right; q = p->left; } if ((q->right == NULL || !q->right->red) && (q->left == NULL || !q->left->red)) { q->red = 1; r = p; } else { if (q->left == NULL || !q->left->red) { node q2 = q->right; q2->red = p->red; p->left = q2->right; q->right = q2->left; q2->left = q; q2->right = p; *pp = q2; p->red = 0; } else { q->red = p->red; p->red = 0; q->left->red = 0; p->left = q->right; q->right = p; *pp = q; } sp = 1; r = NULL; } } --sp; } if (r != NULL) r->red = 0; } free (unchained); return retval; } #ifdef weak_alias weak_alias (__tdelete, tdelete) #endif /* Walk the nodes of a tree. ROOT is the root of the tree to be walked, ACTION the function to be called at each node. LEVEL is the level of ROOT in the whole tree. */ static void internal_function trecurse (const void *vroot, __action_fn_t action, int level) { const_node root = (const_node) vroot; if (root->left == NULL && root->right == NULL) (*action) (root, leaf, level); else { (*action) (root, preorder, level); if (root->left != NULL) trecurse (root->left, action, level + 1); (*action) (root, postorder, level); if (root->right != NULL) trecurse (root->right, action, level + 1); (*action) (root, endorder, level); } } /* Walk the nodes of a tree. ROOT is the root of the tree to be walked, ACTION the function to be called at each node. */ void __twalk (const void *vroot, __action_fn_t action) { const_node root = (const_node) vroot; CHECK_TREE (root); if (root != NULL && action != NULL) trecurse (root, action, 0); } #ifdef weak_alias weak_alias (__twalk, twalk) #endif #ifdef _LIBC /* The standardized functions miss an important functionality: the tree cannot be removed easily. We provide a function to do this. */ static void internal_function tdestroy_recurse (node root, __free_fn_t freefct) { if (root->left != NULL) tdestroy_recurse (root->left, freefct); if (root->right != NULL) tdestroy_recurse (root->right, freefct); (*freefct) ((void *) root->key); /* Free the node itself. */ free (root); } void __tdestroy (void *vroot, __free_fn_t freefct) { node root = (node) vroot; CHECK_TREE (root); if (root != NULL) tdestroy_recurse (root, freefct); } weak_alias (__tdestroy, tdestroy) #endif /* _LIBC */ gliv-1.9.7/intl/threadlib.c0000644000076400007640000000370211465576131013022 0ustar gg/* Multithreading primitives. Copyright (C) 2005-2009 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Written by Bruno Haible , 2005. */ #include /* ========================================================================= */ #if USE_POSIX_THREADS /* Use the POSIX threads library. */ # include # include # if PTHREAD_IN_USE_DETECTION_HARD /* The function to be executed by a dummy thread. */ static void * dummy_thread_func (void *arg) { return arg; } int glthread_in_use (void) { static int tested; static int result; /* 1: linked with -lpthread, 0: only with libc */ if (!tested) { pthread_t thread; if (pthread_create (&thread, NULL, dummy_thread_func, NULL) != 0) /* Thread creation failed. */ result = 0; else { /* Thread creation works. */ void *retval; if (pthread_join (thread, &retval) != 0) abort (); result = 1; } tested = 1; } return result; } # endif #endif /* ========================================================================= */ /* This declaration is solely to ensure that after preprocessing this file is never empty. */ typedef int dummy; gliv-1.9.7/intl/finddomain.c0000644000076400007640000001367311465576131013204 0ustar gg/* Handle list of needed message catalogs Copyright (C) 1995-1999, 2000-2001, 2003-2007 Free Software Foundation, Inc. Written by Ulrich Drepper , 1995. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #if defined HAVE_UNISTD_H || defined _LIBC # include #endif #include "gettextP.h" #ifdef _LIBC # include #else # include "libgnuintl.h" #endif /* Handle multi-threaded applications. */ #ifdef _LIBC # include # define gl_rwlock_define_initialized __libc_rwlock_define_initialized # define gl_rwlock_rdlock __libc_rwlock_rdlock # define gl_rwlock_wrlock __libc_rwlock_wrlock # define gl_rwlock_unlock __libc_rwlock_unlock #else # include "lock.h" #endif /* @@ end of prolog @@ */ /* List of already loaded domains. */ static struct loaded_l10nfile *_nl_loaded_domains; /* Return a data structure describing the message catalog described by the DOMAINNAME and CATEGORY parameters with respect to the currently established bindings. */ struct loaded_l10nfile * internal_function _nl_find_domain (const char *dirname, char *locale, const char *domainname, struct binding *domainbinding) { struct loaded_l10nfile *retval; const char *language; const char *modifier; const char *territory; const char *codeset; const char *normalized_codeset; const char *alias_value; int mask; /* LOCALE can consist of up to four recognized parts for the XPG syntax: language[_territory][.codeset][@modifier] Beside the first part all of them are allowed to be missing. If the full specified locale is not found, the less specific one are looked for. The various parts will be stripped off according to the following order: (1) codeset (2) normalized codeset (3) territory (4) modifier */ /* We need to protect modifying the _NL_LOADED_DOMAINS data. */ gl_rwlock_define_initialized (static, lock); gl_rwlock_rdlock (lock); /* If we have already tested for this locale entry there has to be one data set in the list of loaded domains. */ retval = _nl_make_l10nflist (&_nl_loaded_domains, dirname, strlen (dirname) + 1, 0, locale, NULL, NULL, NULL, NULL, domainname, 0); gl_rwlock_unlock (lock); if (retval != NULL) { /* We know something about this locale. */ int cnt; if (retval->decided <= 0) _nl_load_domain (retval, domainbinding); if (retval->data != NULL) return retval; for (cnt = 0; retval->successor[cnt] != NULL; ++cnt) { if (retval->successor[cnt]->decided <= 0) _nl_load_domain (retval->successor[cnt], domainbinding); if (retval->successor[cnt]->data != NULL) break; } return retval; /* NOTREACHED */ } /* See whether the locale value is an alias. If yes its value *overwrites* the alias name. No test for the original value is done. */ alias_value = _nl_expand_alias (locale); if (alias_value != NULL) { #if defined _LIBC || defined HAVE_STRDUP locale = strdup (alias_value); if (locale == NULL) return NULL; #else size_t len = strlen (alias_value) + 1; locale = (char *) malloc (len); if (locale == NULL) return NULL; memcpy (locale, alias_value, len); #endif } /* Now we determine the single parts of the locale name. First look for the language. Termination symbols are `_', '.', and `@'. */ mask = _nl_explode_name (locale, &language, &modifier, &territory, &codeset, &normalized_codeset); if (mask == -1) /* This means we are out of core. */ return NULL; /* We need to protect modifying the _NL_LOADED_DOMAINS data. */ gl_rwlock_wrlock (lock); /* Create all possible locale entries which might be interested in generalization. */ retval = _nl_make_l10nflist (&_nl_loaded_domains, dirname, strlen (dirname) + 1, mask, language, territory, codeset, normalized_codeset, modifier, domainname, 1); gl_rwlock_unlock (lock); if (retval == NULL) /* This means we are out of core. */ goto out; if (retval->decided <= 0) _nl_load_domain (retval, domainbinding); if (retval->data == NULL) { int cnt; for (cnt = 0; retval->successor[cnt] != NULL; ++cnt) { if (retval->successor[cnt]->decided <= 0) _nl_load_domain (retval->successor[cnt], domainbinding); if (retval->successor[cnt]->data != NULL) break; } } /* The room for an alias was dynamically allocated. Free it now. */ if (alias_value != NULL) free (locale); out: /* The space for normalized_codeset is dynamically allocated. Free it. */ if (mask & XPG_NORM_CODESET) free ((void *) normalized_codeset); return retval; } #ifdef _LIBC /* This is called from iconv/gconv_db.c's free_mem, as locales must be freed before freeing gconv steps arrays. */ void __libc_freeres_fn_section _nl_finddomain_subfreeres () { struct loaded_l10nfile *runp = _nl_loaded_domains; while (runp != NULL) { struct loaded_l10nfile *here = runp; if (runp->data != NULL) _nl_unload_domain ((struct loaded_domain *) runp->data); runp = runp->next; free ((char *) here->filename); free (here); } } #endif gliv-1.9.7/intl/dcigettext.c0000644000076400007640000013402211465576131013230 0ustar gg/* Implementation of the internal dcigettext function. Copyright (C) 1995-1999, 2000-2009 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Tell glibc's to provide a prototype for mempcpy(). This must come before because may include , and once has been included, it's too late. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif #ifdef HAVE_CONFIG_H # include #endif #include #ifdef __GNUC__ # define alloca __builtin_alloca # define HAVE_ALLOCA 1 #else # ifdef _MSC_VER # include # define alloca _alloca # else # if defined HAVE_ALLOCA_H || defined _LIBC # include # else # ifdef _AIX #pragma alloca # else # ifndef alloca char *alloca (); # endif # endif # endif # endif #endif #include #ifndef errno extern int errno; #endif #ifndef __set_errno # define __set_errno(val) errno = (val) #endif #include #include #include #if defined HAVE_UNISTD_H || defined _LIBC # include #endif #include #ifdef _LIBC /* Guess whether integer division by zero raises signal SIGFPE. Set to 1 only if you know for sure. In case of doubt, set to 0. */ # if defined __alpha__ || defined __arm__ || defined __i386__ \ || defined __m68k__ || defined __s390__ # define INTDIV0_RAISES_SIGFPE 1 # else # define INTDIV0_RAISES_SIGFPE 0 # endif #endif #if !INTDIV0_RAISES_SIGFPE # include #endif #if defined HAVE_SYS_PARAM_H || defined _LIBC # include #endif #if !defined _LIBC # include "localcharset.h" #endif #include "gettextP.h" #include "plural-exp.h" #ifdef _LIBC # include #else # ifdef IN_LIBGLOCALE # include # endif # include "libgnuintl.h" #endif #include "hash-string.h" /* Handle multi-threaded applications. */ #ifdef _LIBC # include # define gl_rwlock_define_initialized __libc_rwlock_define_initialized # define gl_rwlock_rdlock __libc_rwlock_rdlock # define gl_rwlock_wrlock __libc_rwlock_wrlock # define gl_rwlock_unlock __libc_rwlock_unlock #else # include "lock.h" #endif /* Alignment of types. */ #if defined __GNUC__ && __GNUC__ >= 2 # define alignof(TYPE) __alignof__ (TYPE) #else # define alignof(TYPE) \ ((int) &((struct { char dummy1; TYPE dummy2; } *) 0)->dummy2) #endif /* Some compilers, like SunOS4 cc, don't have offsetof in . */ #ifndef offsetof # define offsetof(type,ident) ((size_t)&(((type*)0)->ident)) #endif /* @@ end of prolog @@ */ #ifdef _LIBC /* Rename the non ANSI C functions. This is required by the standard because some ANSI C functions will require linking with this object file and the name space must not be polluted. */ # define getcwd __getcwd # ifndef stpcpy # define stpcpy __stpcpy # endif # define tfind __tfind #else # if !defined HAVE_GETCWD char *getwd (); # define getcwd(buf, max) getwd (buf) # else # if VMS # define getcwd(buf, max) (getcwd) (buf, max, 0) # else char *getcwd (); # endif # endif # ifndef HAVE_STPCPY static char *stpcpy (char *dest, const char *src); # endif # ifndef HAVE_MEMPCPY static void *mempcpy (void *dest, const void *src, size_t n); # endif #endif /* Use a replacement if the system does not provide the `tsearch' function family. */ #if HAVE_TSEARCH || defined _LIBC # include #else # define tsearch libintl_tsearch # define tfind libintl_tfind # define tdelete libintl_tdelete # define twalk libintl_twalk # include "tsearch.h" #endif #ifdef _LIBC # define tsearch __tsearch #endif /* Amount to increase buffer size by in each try. */ #define PATH_INCR 32 /* The following is from pathmax.h. */ /* Non-POSIX BSD systems might have gcc's limits.h, which doesn't define PATH_MAX but might cause redefinition warnings when sys/param.h is later included (as on MORE/BSD 4.3). */ #if defined _POSIX_VERSION || (defined HAVE_LIMITS_H && !defined __GNUC__) # include #endif #ifndef _POSIX_PATH_MAX # define _POSIX_PATH_MAX 255 #endif #if !defined PATH_MAX && defined _PC_PATH_MAX # define PATH_MAX (pathconf ("/", _PC_PATH_MAX) < 1 ? 1024 : pathconf ("/", _PC_PATH_MAX)) #endif /* Don't include sys/param.h if it already has been. */ #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN # include #endif #if !defined PATH_MAX && defined MAXPATHLEN # define PATH_MAX MAXPATHLEN #endif #ifndef PATH_MAX # define PATH_MAX _POSIX_PATH_MAX #endif /* Pathname support. ISSLASH(C) tests whether C is a directory separator character. IS_ABSOLUTE_PATH(P) tests whether P is an absolute path. If it is not, it may be concatenated to a directory pathname. IS_PATH_WITH_DIR(P) tests whether P contains a directory specification. */ #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ /* Win32, Cygwin, OS/2, DOS */ # define ISSLASH(C) ((C) == '/' || (C) == '\\') # define HAS_DEVICE(P) \ ((((P)[0] >= 'A' && (P)[0] <= 'Z') || ((P)[0] >= 'a' && (P)[0] <= 'z')) \ && (P)[1] == ':') # define IS_ABSOLUTE_PATH(P) (ISSLASH ((P)[0]) || HAS_DEVICE (P)) # define IS_PATH_WITH_DIR(P) \ (strchr (P, '/') != NULL || strchr (P, '\\') != NULL || HAS_DEVICE (P)) #else /* Unix */ # define ISSLASH(C) ((C) == '/') # define IS_ABSOLUTE_PATH(P) ISSLASH ((P)[0]) # define IS_PATH_WITH_DIR(P) (strchr (P, '/') != NULL) #endif /* Whether to support different locales in different threads. */ #if defined _LIBC || HAVE_USELOCALE || defined IN_LIBGLOCALE # define HAVE_PER_THREAD_LOCALE #endif /* This is the type used for the search tree where known translations are stored. */ struct known_translation_t { /* Domain in which to search. */ const char *domainname; /* The category. */ int category; #ifdef HAVE_PER_THREAD_LOCALE /* Name of the relevant locale category, or "" for the global locale. */ const char *localename; #endif #ifdef IN_LIBGLOCALE /* The character encoding. */ const char *encoding; #endif /* State of the catalog counter at the point the string was found. */ int counter; /* Catalog where the string was found. */ struct loaded_l10nfile *domain; /* And finally the translation. */ const char *translation; size_t translation_length; /* Pointer to the string in question. */ union { char appended[ZERO]; /* used if domain != NULL */ const char *ptr; /* used if domain == NULL */ } msgid; }; gl_rwlock_define_initialized (static, tree_lock) /* Root of the search tree with known translations. */ static void *root; /* Function to compare two entries in the table of known translations. */ static int transcmp (const void *p1, const void *p2) { const struct known_translation_t *s1; const struct known_translation_t *s2; int result; s1 = (const struct known_translation_t *) p1; s2 = (const struct known_translation_t *) p2; result = strcmp (s1->domain != NULL ? s1->msgid.appended : s1->msgid.ptr, s2->domain != NULL ? s2->msgid.appended : s2->msgid.ptr); if (result == 0) { result = strcmp (s1->domainname, s2->domainname); if (result == 0) { #ifdef HAVE_PER_THREAD_LOCALE result = strcmp (s1->localename, s2->localename); if (result == 0) #endif { #ifdef IN_LIBGLOCALE result = strcmp (s1->encoding, s2->encoding); if (result == 0) #endif /* We compare the category last (though this is the cheapest operation) since it is hopefully always the same (namely LC_MESSAGES). */ result = s1->category - s2->category; } } } return result; } /* Name of the default domain used for gettext(3) prior any call to textdomain(3). The default value for this is "messages". */ const char _nl_default_default_domain[] attribute_hidden = "messages"; #ifndef IN_LIBGLOCALE /* Value used as the default domain for gettext(3). */ const char *_nl_current_default_domain attribute_hidden = _nl_default_default_domain; #endif /* Contains the default location of the message catalogs. */ #if defined __EMX__ extern const char _nl_default_dirname[]; #else # ifdef _LIBC extern const char _nl_default_dirname[]; libc_hidden_proto (_nl_default_dirname) # endif const char _nl_default_dirname[] = LOCALEDIR; # ifdef _LIBC libc_hidden_data_def (_nl_default_dirname) # endif #endif #ifndef IN_LIBGLOCALE /* List with bindings of specific domains created by bindtextdomain() calls. */ struct binding *_nl_domain_bindings; #endif /* Prototypes for local functions. */ static char *plural_lookup (struct loaded_l10nfile *domain, unsigned long int n, const char *translation, size_t translation_len) internal_function; #ifdef IN_LIBGLOCALE static const char *guess_category_value (int category, const char *categoryname, const char *localename) internal_function; #else static const char *guess_category_value (int category, const char *categoryname) internal_function; #endif #ifdef _LIBC # include "../locale/localeinfo.h" # define category_to_name(category) \ _nl_category_names.str + _nl_category_name_idxs[category] #else static const char *category_to_name (int category) internal_function; #endif #if (defined _LIBC || HAVE_ICONV) && !defined IN_LIBGLOCALE static const char *get_output_charset (struct binding *domainbinding) internal_function; #endif /* For those loosing systems which don't have `alloca' we have to add some additional code emulating it. */ #ifdef HAVE_ALLOCA /* Nothing has to be done. */ # define freea(p) /* nothing */ # define ADD_BLOCK(list, address) /* nothing */ # define FREE_BLOCKS(list) /* nothing */ #else struct block_list { void *address; struct block_list *next; }; # define ADD_BLOCK(list, addr) \ do { \ struct block_list *newp = (struct block_list *) malloc (sizeof (*newp)); \ /* If we cannot get a free block we cannot add the new element to \ the list. */ \ if (newp != NULL) { \ newp->address = (addr); \ newp->next = (list); \ (list) = newp; \ } \ } while (0) # define FREE_BLOCKS(list) \ do { \ while (list != NULL) { \ struct block_list *old = list; \ list = list->next; \ free (old->address); \ free (old); \ } \ } while (0) # undef alloca # define alloca(size) (malloc (size)) # define freea(p) free (p) #endif /* have alloca */ #ifdef _LIBC /* List of blocks allocated for translations. */ typedef struct transmem_list { struct transmem_list *next; char data[ZERO]; } transmem_block_t; static struct transmem_list *transmem_list; #else typedef unsigned char transmem_block_t; #endif /* Names for the libintl functions are a problem. They must not clash with existing names and they should follow ANSI C. But this source code is also used in GNU C Library where the names have a __ prefix. So we have to make a difference here. */ #ifdef _LIBC # define DCIGETTEXT __dcigettext #else # define DCIGETTEXT libintl_dcigettext #endif /* Lock variable to protect the global data in the gettext implementation. */ gl_rwlock_define_initialized (, _nl_state_lock attribute_hidden) /* Checking whether the binaries runs SUID must be done and glibc provides easier methods therefore we make a difference here. */ #ifdef _LIBC # define ENABLE_SECURE __libc_enable_secure # define DETERMINE_SECURE #else # ifndef HAVE_GETUID # define getuid() 0 # endif # ifndef HAVE_GETGID # define getgid() 0 # endif # ifndef HAVE_GETEUID # define geteuid() getuid() # endif # ifndef HAVE_GETEGID # define getegid() getgid() # endif static int enable_secure; # define ENABLE_SECURE (enable_secure == 1) # define DETERMINE_SECURE \ if (enable_secure == 0) \ { \ if (getuid () != geteuid () || getgid () != getegid ()) \ enable_secure = 1; \ else \ enable_secure = -1; \ } #endif /* Get the function to evaluate the plural expression. */ #include "eval-plural.h" /* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY locale and, if PLURAL is nonzero, search over string depending on the plural form determined by N. */ #ifdef IN_LIBGLOCALE char * gl_dcigettext (const char *domainname, const char *msgid1, const char *msgid2, int plural, unsigned long int n, int category, const char *localename, const char *encoding) #else char * DCIGETTEXT (const char *domainname, const char *msgid1, const char *msgid2, int plural, unsigned long int n, int category) #endif { #ifndef HAVE_ALLOCA struct block_list *block_list = NULL; #endif struct loaded_l10nfile *domain; struct binding *binding; const char *categoryname; const char *categoryvalue; const char *dirname; char *xdomainname; char *single_locale; char *retval; size_t retlen; int saved_errno; struct known_translation_t search; struct known_translation_t **foundp = NULL; #if defined HAVE_PER_THREAD_LOCALE && !defined IN_LIBGLOCALE const char *localename; #endif size_t domainname_len; /* If no real MSGID is given return NULL. */ if (msgid1 == NULL) return NULL; #ifdef _LIBC if (category < 0 || category >= __LC_LAST || category == LC_ALL) /* Bogus. */ return (plural == 0 ? (char *) msgid1 /* Use the Germanic plural rule. */ : n == 1 ? (char *) msgid1 : (char *) msgid2); #endif /* Preserve the `errno' value. */ saved_errno = errno; #ifdef _LIBC __libc_rwlock_define (extern, __libc_setlocale_lock attribute_hidden) __libc_rwlock_rdlock (__libc_setlocale_lock); #endif gl_rwlock_rdlock (_nl_state_lock); /* If DOMAINNAME is NULL, we are interested in the default domain. If CATEGORY is not LC_MESSAGES this might not make much sense but the definition left this undefined. */ if (domainname == NULL) domainname = _nl_current_default_domain; /* OS/2 specific: backward compatibility with older libintl versions */ #ifdef LC_MESSAGES_COMPAT if (category == LC_MESSAGES_COMPAT) category = LC_MESSAGES; #endif /* Try to find the translation among those which we found at some time. */ search.domain = NULL; search.msgid.ptr = msgid1; search.domainname = domainname; search.category = category; #ifdef HAVE_PER_THREAD_LOCALE # ifndef IN_LIBGLOCALE # ifdef _LIBC localename = _strdupa (_current_locale_name (category)); # else categoryname = category_to_name (category); # define CATEGORYNAME_INITIALIZED localename = _nl_locale_name_thread_unsafe (category, categoryname); if (localename == NULL) localename = ""; # endif # endif search.localename = localename; # ifdef IN_LIBGLOCALE search.encoding = encoding; # endif /* Since tfind/tsearch manage a balanced tree, concurrent tfind and tsearch calls can be fatal. */ gl_rwlock_rdlock (tree_lock); foundp = (struct known_translation_t **) tfind (&search, &root, transcmp); gl_rwlock_unlock (tree_lock); if (foundp != NULL && (*foundp)->counter == _nl_msg_cat_cntr) { /* Now deal with plural. */ if (plural) retval = plural_lookup ((*foundp)->domain, n, (*foundp)->translation, (*foundp)->translation_length); else retval = (char *) (*foundp)->translation; gl_rwlock_unlock (_nl_state_lock); # ifdef _LIBC __libc_rwlock_unlock (__libc_setlocale_lock); # endif __set_errno (saved_errno); return retval; } #endif /* See whether this is a SUID binary or not. */ DETERMINE_SECURE; /* First find matching binding. */ #ifdef IN_LIBGLOCALE /* We can use a trivial binding, since _nl_find_msg will ignore it anyway, and _nl_load_domain and _nl_find_domain just pass it through. */ binding = NULL; dirname = bindtextdomain (domainname, NULL); #else for (binding = _nl_domain_bindings; binding != NULL; binding = binding->next) { int compare = strcmp (domainname, binding->domainname); if (compare == 0) /* We found it! */ break; if (compare < 0) { /* It is not in the list. */ binding = NULL; break; } } if (binding == NULL) dirname = _nl_default_dirname; else { dirname = binding->dirname; #endif if (!IS_ABSOLUTE_PATH (dirname)) { /* We have a relative path. Make it absolute now. */ size_t dirname_len = strlen (dirname) + 1; size_t path_max; char *resolved_dirname; char *ret; path_max = (unsigned int) PATH_MAX; path_max += 2; /* The getcwd docs say to do this. */ for (;;) { resolved_dirname = (char *) alloca (path_max + dirname_len); ADD_BLOCK (block_list, tmp_dirname); __set_errno (0); ret = getcwd (resolved_dirname, path_max); if (ret != NULL || errno != ERANGE) break; path_max += path_max / 2; path_max += PATH_INCR; } if (ret == NULL) /* We cannot get the current working directory. Don't signal an error but simply return the default string. */ goto return_untranslated; stpcpy (stpcpy (strchr (resolved_dirname, '\0'), "/"), dirname); dirname = resolved_dirname; } #ifndef IN_LIBGLOCALE } #endif /* Now determine the symbolic name of CATEGORY and its value. */ #ifndef CATEGORYNAME_INITIALIZED categoryname = category_to_name (category); #endif #ifdef IN_LIBGLOCALE categoryvalue = guess_category_value (category, categoryname, localename); #else categoryvalue = guess_category_value (category, categoryname); #endif domainname_len = strlen (domainname); xdomainname = (char *) alloca (strlen (categoryname) + domainname_len + 5); ADD_BLOCK (block_list, xdomainname); stpcpy ((char *) mempcpy (stpcpy (stpcpy (xdomainname, categoryname), "/"), domainname, domainname_len), ".mo"); /* Creating working area. */ single_locale = (char *) alloca (strlen (categoryvalue) + 1); ADD_BLOCK (block_list, single_locale); /* Search for the given string. This is a loop because we perhaps got an ordered list of languages to consider for the translation. */ while (1) { /* Make CATEGORYVALUE point to the next element of the list. */ while (categoryvalue[0] != '\0' && categoryvalue[0] == ':') ++categoryvalue; if (categoryvalue[0] == '\0') { /* The whole contents of CATEGORYVALUE has been searched but no valid entry has been found. We solve this situation by implicitly appending a "C" entry, i.e. no translation will take place. */ single_locale[0] = 'C'; single_locale[1] = '\0'; } else { char *cp = single_locale; while (categoryvalue[0] != '\0' && categoryvalue[0] != ':') *cp++ = *categoryvalue++; *cp = '\0'; /* When this is a SUID binary we must not allow accessing files outside the dedicated directories. */ if (ENABLE_SECURE && IS_PATH_WITH_DIR (single_locale)) /* Ingore this entry. */ continue; } /* If the current locale value is C (or POSIX) we don't load a domain. Return the MSGID. */ if (strcmp (single_locale, "C") == 0 || strcmp (single_locale, "POSIX") == 0) break; /* Find structure describing the message catalog matching the DOMAINNAME and CATEGORY. */ domain = _nl_find_domain (dirname, single_locale, xdomainname, binding); if (domain != NULL) { #if defined IN_LIBGLOCALE retval = _nl_find_msg (domain, binding, encoding, msgid1, &retlen); #else retval = _nl_find_msg (domain, binding, msgid1, 1, &retlen); #endif if (retval == NULL) { int cnt; for (cnt = 0; domain->successor[cnt] != NULL; ++cnt) { #if defined IN_LIBGLOCALE retval = _nl_find_msg (domain->successor[cnt], binding, encoding, msgid1, &retlen); #else retval = _nl_find_msg (domain->successor[cnt], binding, msgid1, 1, &retlen); #endif if (retval != NULL) { domain = domain->successor[cnt]; break; } } } /* Returning -1 means that some resource problem exists (likely memory) and that the strings could not be converted. Return the original strings. */ if (__builtin_expect (retval == (char *) -1, 0)) break; if (retval != NULL) { /* Found the translation of MSGID1 in domain DOMAIN: starting at RETVAL, RETLEN bytes. */ FREE_BLOCKS (block_list); if (foundp == NULL) { /* Create a new entry and add it to the search tree. */ size_t msgid_len; size_t size; struct known_translation_t *newp; msgid_len = strlen (msgid1) + 1; size = offsetof (struct known_translation_t, msgid) + msgid_len + domainname_len + 1; #ifdef HAVE_PER_THREAD_LOCALE size += strlen (localename) + 1; #endif newp = (struct known_translation_t *) malloc (size); if (newp != NULL) { char *new_domainname; #ifdef HAVE_PER_THREAD_LOCALE char *new_localename; #endif new_domainname = (char *) mempcpy (newp->msgid.appended, msgid1, msgid_len); memcpy (new_domainname, domainname, domainname_len + 1); #ifdef HAVE_PER_THREAD_LOCALE new_localename = new_domainname + domainname_len + 1; strcpy (new_localename, localename); #endif newp->domainname = new_domainname; newp->category = category; #ifdef HAVE_PER_THREAD_LOCALE newp->localename = new_localename; #endif #ifdef IN_LIBGLOCALE newp->encoding = encoding; #endif newp->counter = _nl_msg_cat_cntr; newp->domain = domain; newp->translation = retval; newp->translation_length = retlen; gl_rwlock_wrlock (tree_lock); /* Insert the entry in the search tree. */ foundp = (struct known_translation_t **) tsearch (newp, &root, transcmp); gl_rwlock_unlock (tree_lock); if (foundp == NULL || __builtin_expect (*foundp != newp, 0)) /* The insert failed. */ free (newp); } } else { /* We can update the existing entry. */ (*foundp)->counter = _nl_msg_cat_cntr; (*foundp)->domain = domain; (*foundp)->translation = retval; (*foundp)->translation_length = retlen; } __set_errno (saved_errno); /* Now deal with plural. */ if (plural) retval = plural_lookup (domain, n, retval, retlen); gl_rwlock_unlock (_nl_state_lock); #ifdef _LIBC __libc_rwlock_unlock (__libc_setlocale_lock); #endif return retval; } } } return_untranslated: /* Return the untranslated MSGID. */ FREE_BLOCKS (block_list); gl_rwlock_unlock (_nl_state_lock); #ifdef _LIBC __libc_rwlock_unlock (__libc_setlocale_lock); #endif #ifndef _LIBC if (!ENABLE_SECURE) { extern void _nl_log_untranslated (const char *logfilename, const char *domainname, const char *msgid1, const char *msgid2, int plural); const char *logfilename = getenv ("GETTEXT_LOG_UNTRANSLATED"); if (logfilename != NULL && logfilename[0] != '\0') _nl_log_untranslated (logfilename, domainname, msgid1, msgid2, plural); } #endif __set_errno (saved_errno); return (plural == 0 ? (char *) msgid1 /* Use the Germanic plural rule. */ : n == 1 ? (char *) msgid1 : (char *) msgid2); } /* Look up the translation of msgid within DOMAIN_FILE and DOMAINBINDING. Return it if found. Return NULL if not found or in case of a conversion failure (problem in the particular message catalog). Return (char *) -1 in case of a memory allocation failure during conversion (only if ENCODING != NULL resp. CONVERT == true). */ char * internal_function #ifdef IN_LIBGLOCALE _nl_find_msg (struct loaded_l10nfile *domain_file, struct binding *domainbinding, const char *encoding, const char *msgid, size_t *lengthp) #else _nl_find_msg (struct loaded_l10nfile *domain_file, struct binding *domainbinding, const char *msgid, int convert, size_t *lengthp) #endif { struct loaded_domain *domain; nls_uint32 nstrings; size_t act; char *result; size_t resultlen; if (domain_file->decided <= 0) _nl_load_domain (domain_file, domainbinding); if (domain_file->data == NULL) return NULL; domain = (struct loaded_domain *) domain_file->data; nstrings = domain->nstrings; /* Locate the MSGID and its translation. */ if (domain->hash_tab != NULL) { /* Use the hashing table. */ nls_uint32 len = strlen (msgid); nls_uint32 hash_val = __hash_string (msgid); nls_uint32 idx = hash_val % domain->hash_size; nls_uint32 incr = 1 + (hash_val % (domain->hash_size - 2)); while (1) { nls_uint32 nstr = W (domain->must_swap_hash_tab, domain->hash_tab[idx]); if (nstr == 0) /* Hash table entry is empty. */ return NULL; nstr--; /* Compare msgid with the original string at index nstr. We compare the lengths with >=, not ==, because plural entries are represented by strings with an embedded NUL. */ if (nstr < nstrings ? W (domain->must_swap, domain->orig_tab[nstr].length) >= len && (strcmp (msgid, domain->data + W (domain->must_swap, domain->orig_tab[nstr].offset)) == 0) : domain->orig_sysdep_tab[nstr - nstrings].length > len && (strcmp (msgid, domain->orig_sysdep_tab[nstr - nstrings].pointer) == 0)) { act = nstr; goto found; } if (idx >= domain->hash_size - incr) idx -= domain->hash_size - incr; else idx += incr; } /* NOTREACHED */ } else { /* Try the default method: binary search in the sorted array of messages. */ size_t top, bottom; bottom = 0; top = nstrings; while (bottom < top) { int cmp_val; act = (bottom + top) / 2; cmp_val = strcmp (msgid, (domain->data + W (domain->must_swap, domain->orig_tab[act].offset))); if (cmp_val < 0) top = act; else if (cmp_val > 0) bottom = act + 1; else goto found; } /* No translation was found. */ return NULL; } found: /* The translation was found at index ACT. If we have to convert the string to use a different character set, this is the time. */ if (act < nstrings) { result = (char *) (domain->data + W (domain->must_swap, domain->trans_tab[act].offset)); resultlen = W (domain->must_swap, domain->trans_tab[act].length) + 1; } else { result = (char *) domain->trans_sysdep_tab[act - nstrings].pointer; resultlen = domain->trans_sysdep_tab[act - nstrings].length; } #if defined _LIBC || HAVE_ICONV # ifdef IN_LIBGLOCALE if (encoding != NULL) # else if (convert) # endif { /* We are supposed to do a conversion. */ # ifndef IN_LIBGLOCALE const char *encoding = get_output_charset (domainbinding); # endif size_t nconversions; struct converted_domain *convd; size_t i; /* Protect against reallocation of the table. */ gl_rwlock_rdlock (domain->conversions_lock); /* Search whether a table with converted translations for this encoding has already been allocated. */ nconversions = domain->nconversions; convd = NULL; for (i = nconversions; i > 0; ) { i--; if (strcmp (domain->conversions[i].encoding, encoding) == 0) { convd = &domain->conversions[i]; break; } } gl_rwlock_unlock (domain->conversions_lock); if (convd == NULL) { /* We have to allocate a new conversions table. */ gl_rwlock_wrlock (domain->conversions_lock); nconversions = domain->nconversions; /* Maybe in the meantime somebody added the translation. Recheck. */ for (i = nconversions; i > 0; ) { i--; if (strcmp (domain->conversions[i].encoding, encoding) == 0) { convd = &domain->conversions[i]; goto found_convd; } } { /* Allocate a table for the converted translations for this encoding. */ struct converted_domain *new_conversions = (struct converted_domain *) (domain->conversions != NULL ? realloc (domain->conversions, (nconversions + 1) * sizeof (struct converted_domain)) : malloc ((nconversions + 1) * sizeof (struct converted_domain))); if (__builtin_expect (new_conversions == NULL, 0)) { /* Nothing we can do, no more memory. We cannot use the translation because it might be encoded incorrectly. */ unlock_fail: gl_rwlock_unlock (domain->conversions_lock); return (char *) -1; } domain->conversions = new_conversions; /* Copy the 'encoding' string to permanent storage. */ encoding = strdup (encoding); if (__builtin_expect (encoding == NULL, 0)) /* Nothing we can do, no more memory. We cannot use the translation because it might be encoded incorrectly. */ goto unlock_fail; convd = &new_conversions[nconversions]; convd->encoding = encoding; /* Find out about the character set the file is encoded with. This can be found (in textual form) in the entry "". If this entry does not exist or if this does not contain the 'charset=' information, we will assume the charset matches the one the current locale and we don't have to perform any conversion. */ # ifdef _LIBC convd->conv = (__gconv_t) -1; # else # if HAVE_ICONV convd->conv = (iconv_t) -1; # endif # endif { char *nullentry; size_t nullentrylen; /* Get the header entry. This is a recursion, but it doesn't reallocate domain->conversions because we pass encoding = NULL or convert = 0, respectively. */ nullentry = # ifdef IN_LIBGLOCALE _nl_find_msg (domain_file, domainbinding, NULL, "", &nullentrylen); # else _nl_find_msg (domain_file, domainbinding, "", 0, &nullentrylen); # endif if (nullentry != NULL) { const char *charsetstr; charsetstr = strstr (nullentry, "charset="); if (charsetstr != NULL) { size_t len; char *charset; const char *outcharset; charsetstr += strlen ("charset="); len = strcspn (charsetstr, " \t\n"); charset = (char *) alloca (len + 1); # if defined _LIBC || HAVE_MEMPCPY *((char *) mempcpy (charset, charsetstr, len)) = '\0'; # else memcpy (charset, charsetstr, len); charset[len] = '\0'; # endif outcharset = encoding; # ifdef _LIBC /* We always want to use transliteration. */ outcharset = norm_add_slashes (outcharset, "TRANSLIT"); charset = norm_add_slashes (charset, ""); int r = __gconv_open (outcharset, charset, &convd->conv, GCONV_AVOID_NOCONV); if (__builtin_expect (r != __GCONV_OK, 0)) { /* If the output encoding is the same there is nothing to do. Otherwise do not use the translation at all. */ if (__builtin_expect (r != __GCONV_NULCONV, 1)) { gl_rwlock_unlock (domain->conversions_lock); free ((char *) encoding); return NULL; } convd->conv = (__gconv_t) -1; } # else # if HAVE_ICONV /* When using GNU libc >= 2.2 or GNU libiconv >= 1.5, we want to use transliteration. */ # if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || __GLIBC__ > 2 \ || _LIBICONV_VERSION >= 0x0105 if (strchr (outcharset, '/') == NULL) { char *tmp; len = strlen (outcharset); tmp = (char *) alloca (len + 10 + 1); memcpy (tmp, outcharset, len); memcpy (tmp + len, "//TRANSLIT", 10 + 1); outcharset = tmp; convd->conv = iconv_open (outcharset, charset); freea (outcharset); } else # endif convd->conv = iconv_open (outcharset, charset); # endif # endif freea (charset); } } } convd->conv_tab = NULL; /* Here domain->conversions is still == new_conversions. */ domain->nconversions++; } found_convd: gl_rwlock_unlock (domain->conversions_lock); } if ( # ifdef _LIBC convd->conv != (__gconv_t) -1 # else # if HAVE_ICONV convd->conv != (iconv_t) -1 # endif # endif ) { /* We are supposed to do a conversion. First allocate an appropriate table with the same structure as the table of translations in the file, where we can put the pointers to the converted strings in. There is a slight complication with plural entries. They are represented by consecutive NUL terminated strings. We handle this case by converting RESULTLEN bytes, including NULs. */ /* This lock primarily protects the memory management variables freemem, freemem_size. It also protects write accesses to convd->conv_tab. It's not worth using a separate lock (such as domain->conversions_lock) for this purpose, because when modifying convd->conv_tab, we also need to lock freemem, freemem_size for most of the time. */ __libc_lock_define_initialized (static, lock) if (__builtin_expect (convd->conv_tab == NULL, 0)) { __libc_lock_lock (lock); if (convd->conv_tab == NULL) { convd->conv_tab = (char **) calloc (nstrings + domain->n_sysdep_strings, sizeof (char *)); if (convd->conv_tab != NULL) goto not_translated_yet; /* Mark that we didn't succeed allocating a table. */ convd->conv_tab = (char **) -1; } __libc_lock_unlock (lock); } if (__builtin_expect (convd->conv_tab == (char **) -1, 0)) /* Nothing we can do, no more memory. We cannot use the translation because it might be encoded incorrectly. */ return (char *) -1; if (convd->conv_tab[act] == NULL) { /* We haven't used this string so far, so it is not translated yet. Do this now. */ /* We use a bit more efficient memory handling. We allocate always larger blocks which get used over time. This is faster than many small allocations. */ # define INITIAL_BLOCK_SIZE 4080 static unsigned char *freemem; static size_t freemem_size; const unsigned char *inbuf; unsigned char *outbuf; int malloc_count; # ifndef _LIBC transmem_block_t *transmem_list; # endif __libc_lock_lock (lock); not_translated_yet: inbuf = (const unsigned char *) result; outbuf = freemem + sizeof (size_t); # ifndef _LIBC transmem_list = NULL; # endif malloc_count = 0; while (1) { transmem_block_t *newmem; # ifdef _LIBC size_t non_reversible; int res; if (freemem_size < sizeof (size_t)) goto resize_freemem; res = __gconv (convd->conv, &inbuf, inbuf + resultlen, &outbuf, outbuf + freemem_size - sizeof (size_t), &non_reversible); if (res == __GCONV_OK || res == __GCONV_EMPTY_INPUT) break; if (res != __GCONV_FULL_OUTPUT) { /* We should not use the translation at all, it is incorrectly encoded. */ __libc_lock_unlock (lock); return NULL; } inbuf = (const unsigned char *) result; # else # if HAVE_ICONV const char *inptr = (const char *) inbuf; size_t inleft = resultlen; char *outptr = (char *) outbuf; size_t outleft; if (freemem_size < sizeof (size_t)) goto resize_freemem; outleft = freemem_size - sizeof (size_t); if (iconv (convd->conv, (ICONV_CONST char **) &inptr, &inleft, &outptr, &outleft) != (size_t) (-1)) { outbuf = (unsigned char *) outptr; break; } if (errno != E2BIG) { __libc_lock_unlock (lock); return NULL; } # endif # endif resize_freemem: /* We must allocate a new buffer or resize the old one. */ if (malloc_count > 0) { ++malloc_count; freemem_size = malloc_count * INITIAL_BLOCK_SIZE; newmem = (transmem_block_t *) realloc (transmem_list, freemem_size); # ifdef _LIBC if (newmem != NULL) transmem_list = transmem_list->next; else { struct transmem_list *old = transmem_list; transmem_list = transmem_list->next; free (old); } # endif } else { malloc_count = 1; freemem_size = INITIAL_BLOCK_SIZE; newmem = (transmem_block_t *) malloc (freemem_size); } if (__builtin_expect (newmem == NULL, 0)) { freemem = NULL; freemem_size = 0; __libc_lock_unlock (lock); return (char *) -1; } # ifdef _LIBC /* Add the block to the list of blocks we have to free at some point. */ newmem->next = transmem_list; transmem_list = newmem; freemem = (unsigned char *) newmem->data; freemem_size -= offsetof (struct transmem_list, data); # else transmem_list = newmem; freemem = newmem; # endif outbuf = freemem + sizeof (size_t); } /* We have now in our buffer a converted string. Put this into the table of conversions. */ *(size_t *) freemem = outbuf - freemem - sizeof (size_t); convd->conv_tab[act] = (char *) freemem; /* Shrink freemem, but keep it aligned. */ freemem_size -= outbuf - freemem; freemem = outbuf; freemem += freemem_size & (alignof (size_t) - 1); freemem_size = freemem_size & ~ (alignof (size_t) - 1); __libc_lock_unlock (lock); } /* Now convd->conv_tab[act] contains the translation of all the plural variants. */ result = convd->conv_tab[act] + sizeof (size_t); resultlen = *(size_t *) convd->conv_tab[act]; } } /* The result string is converted. */ #endif /* _LIBC || HAVE_ICONV */ *lengthp = resultlen; return result; } /* Look up a plural variant. */ static char * internal_function plural_lookup (struct loaded_l10nfile *domain, unsigned long int n, const char *translation, size_t translation_len) { struct loaded_domain *domaindata = (struct loaded_domain *) domain->data; unsigned long int index; const char *p; index = plural_eval (domaindata->plural, n); if (index >= domaindata->nplurals) /* This should never happen. It means the plural expression and the given maximum value do not match. */ index = 0; /* Skip INDEX strings at TRANSLATION. */ p = translation; while (index-- > 0) { #ifdef _LIBC p = __rawmemchr (p, '\0'); #else p = strchr (p, '\0'); #endif /* And skip over the NUL byte. */ p++; if (p >= translation + translation_len) /* This should never happen. It means the plural expression evaluated to a value larger than the number of variants available for MSGID1. */ return (char *) translation; } return (char *) p; } #ifndef _LIBC /* Return string representation of locale CATEGORY. */ static const char * internal_function category_to_name (int category) { const char *retval; switch (category) { #ifdef LC_COLLATE case LC_COLLATE: retval = "LC_COLLATE"; break; #endif #ifdef LC_CTYPE case LC_CTYPE: retval = "LC_CTYPE"; break; #endif #ifdef LC_MONETARY case LC_MONETARY: retval = "LC_MONETARY"; break; #endif #ifdef LC_NUMERIC case LC_NUMERIC: retval = "LC_NUMERIC"; break; #endif #ifdef LC_TIME case LC_TIME: retval = "LC_TIME"; break; #endif #ifdef LC_MESSAGES case LC_MESSAGES: retval = "LC_MESSAGES"; break; #endif #ifdef LC_RESPONSE case LC_RESPONSE: retval = "LC_RESPONSE"; break; #endif #ifdef LC_ALL case LC_ALL: /* This might not make sense but is perhaps better than any other value. */ retval = "LC_ALL"; break; #endif default: /* If you have a better idea for a default value let me know. */ retval = "LC_XXX"; } return retval; } #endif /* Guess value of current locale from value of the environment variables or system-dependent defaults. */ static const char * internal_function #ifdef IN_LIBGLOCALE guess_category_value (int category, const char *categoryname, const char *locale) #else guess_category_value (int category, const char *categoryname) #endif { const char *language; #ifndef IN_LIBGLOCALE const char *locale; # ifndef _LIBC const char *language_default; int locale_defaulted; # endif #endif /* We use the settings in the following order: 1. The value of the environment variable 'LANGUAGE'. This is a GNU extension. Its value can be a colon-separated list of locale names. 2. The value of the environment variable 'LC_ALL', 'LC_xxx', or 'LANG'. More precisely, the first among these that is set to a non-empty value. This is how POSIX specifies it. The value is a single locale name. 3. A system-dependent preference list of languages. Its value can be a colon-separated list of locale names. 4. A system-dependent default locale name. This way: - System-dependent settings can be overridden by environment variables. - If the system provides both a list of languages and a default locale, the former is used. */ #ifndef IN_LIBGLOCALE /* Fetch the locale name, through the POSIX method of looking to `LC_ALL', `LC_xxx', and `LANG'. On some systems this can be done by the `setlocale' function itself. */ # ifdef _LIBC locale = __current_locale_name (category); # else locale_defaulted = 0; # if HAVE_USELOCALE locale = _nl_locale_name_thread_unsafe (category, categoryname); if (locale == NULL) # endif { locale = _nl_locale_name_posix (category, categoryname); if (locale == NULL) { locale = _nl_locale_name_default (); locale_defaulted = 1; } } # endif #endif /* Ignore LANGUAGE and its system-dependent analogon if the locale is set to "C" because 1. "C" locale usually uses the ASCII encoding, and most international messages use non-ASCII characters. These characters get displayed as question marks (if using glibc's iconv()) or as invalid 8-bit characters (because other iconv()s refuse to convert most non-ASCII characters to ASCII). In any case, the output is ugly. 2. The precise output of some programs in the "C" locale is specified by POSIX and should not depend on environment variables like "LANGUAGE" or system-dependent information. We allow such programs to use gettext(). */ if (strcmp (locale, "C") == 0) return locale; /* The highest priority value is the value of the 'LANGUAGE' environment variable. */ language = getenv ("LANGUAGE"); if (language != NULL && language[0] != '\0') return language; #if !defined IN_LIBGLOCALE && !defined _LIBC /* The next priority value is the locale name, if not defaulted. */ if (locale_defaulted) { /* The next priority value is the default language preferences list. */ language_default = _nl_language_preferences_default (); if (language_default != NULL) return language_default; } /* The least priority value is the locale name, if defaulted. */ #endif return locale; } #if (defined _LIBC || HAVE_ICONV) && !defined IN_LIBGLOCALE /* Returns the output charset. */ static const char * internal_function get_output_charset (struct binding *domainbinding) { /* The output charset should normally be determined by the locale. But sometimes the locale is not used or not correctly set up, so we provide a possibility for the user to override this: the OUTPUT_CHARSET environment variable. Moreover, the value specified through bind_textdomain_codeset overrides both. */ if (domainbinding != NULL && domainbinding->codeset != NULL) return domainbinding->codeset; else { /* For speed reasons, we look at the value of OUTPUT_CHARSET only once. This is a user variable that is not supposed to change during a program run. */ static char *output_charset_cache; static int output_charset_cached; if (!output_charset_cached) { const char *value = getenv ("OUTPUT_CHARSET"); if (value != NULL && value[0] != '\0') { size_t len = strlen (value) + 1; char *value_copy = (char *) malloc (len); if (value_copy != NULL) memcpy (value_copy, value, len); output_charset_cache = value_copy; } output_charset_cached = 1; } if (output_charset_cache != NULL) return output_charset_cache; else { # ifdef _LIBC return _NL_CURRENT (LC_CTYPE, CODESET); # else # if HAVE_ICONV return locale_charset (); # endif # endif } } } #endif /* @@ begin of epilog @@ */ /* We don't want libintl.a to depend on any other library. So we avoid the non-standard function stpcpy. In GNU C Library this function is available, though. Also allow the symbol HAVE_STPCPY to be defined. */ #if !_LIBC && !HAVE_STPCPY static char * stpcpy (char *dest, const char *src) { while ((*dest++ = *src++) != '\0') /* Do nothing. */ ; return dest - 1; } #endif #if !_LIBC && !HAVE_MEMPCPY static void * mempcpy (void *dest, const void *src, size_t n) { return (void *) ((char *) memcpy (dest, src, n) + n); } #endif #if !_LIBC && !HAVE_TSEARCH # include "tsearch.c" #endif #ifdef _LIBC /* If we want to free all resources we have to do some work at program's end. */ libc_freeres_fn (free_mem) { void *old; while (_nl_domain_bindings != NULL) { struct binding *oldp = _nl_domain_bindings; _nl_domain_bindings = _nl_domain_bindings->next; if (oldp->dirname != _nl_default_dirname) /* Yes, this is a pointer comparison. */ free (oldp->dirname); free (oldp->codeset); free (oldp); } if (_nl_current_default_domain != _nl_default_default_domain) /* Yes, again a pointer comparison. */ free ((char *) _nl_current_default_domain); /* Remove the search tree with the known translations. */ __tdestroy (root, free); root = NULL; while (transmem_list != NULL) { old = transmem_list; transmem_list = transmem_list->next; free (old); } } #endif gliv-1.9.7/intl/localealias.c0000644000076400007640000002454611465576131013346 0ustar gg/* Handle aliases for locale names. Copyright (C) 1995-1999, 2000-2001, 2003, 2005-2006 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Tell glibc's to provide a prototype for mempcpy(). This must come before because may include , and once has been included, it's too late. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif #ifdef HAVE_CONFIG_H # include #endif #include #include #if defined _LIBC || defined HAVE___FSETLOCKING # include #endif #include #ifdef __GNUC__ # undef alloca # define alloca __builtin_alloca # define HAVE_ALLOCA 1 #else # ifdef _MSC_VER # include # define alloca _alloca # else # if defined HAVE_ALLOCA_H || defined _LIBC # include # else # ifdef _AIX #pragma alloca # else # ifndef alloca char *alloca (); # endif # endif # endif # endif #endif #include #include #include "gettextP.h" #if ENABLE_RELOCATABLE # include "relocatable.h" #else # define relocate(pathname) (pathname) #endif /* @@ end of prolog @@ */ #ifdef _LIBC /* Rename the non ANSI C functions. This is required by the standard because some ANSI C functions will require linking with this object file and the name space must not be polluted. */ # define strcasecmp __strcasecmp # ifndef mempcpy # define mempcpy __mempcpy # endif # define HAVE_MEMPCPY 1 # define HAVE___FSETLOCKING 1 #endif /* Handle multi-threaded applications. */ #ifdef _LIBC # include #else # include "lock.h" #endif #ifndef internal_function # define internal_function #endif /* Some optimizations for glibc. */ #ifdef _LIBC # define FEOF(fp) feof_unlocked (fp) # define FGETS(buf, n, fp) fgets_unlocked (buf, n, fp) #else # define FEOF(fp) feof (fp) # define FGETS(buf, n, fp) fgets (buf, n, fp) #endif /* For those losing systems which don't have `alloca' we have to add some additional code emulating it. */ #ifdef HAVE_ALLOCA # define freea(p) /* nothing */ #else # define alloca(n) malloc (n) # define freea(p) free (p) #endif #if defined _LIBC_REENTRANT || HAVE_DECL_FGETS_UNLOCKED # undef fgets # define fgets(buf, len, s) fgets_unlocked (buf, len, s) #endif #if defined _LIBC_REENTRANT || HAVE_DECL_FEOF_UNLOCKED # undef feof # define feof(s) feof_unlocked (s) #endif __libc_lock_define_initialized (static, lock) struct alias_map { const char *alias; const char *value; }; #ifndef _LIBC # define libc_freeres_ptr(decl) decl #endif libc_freeres_ptr (static char *string_space); static size_t string_space_act; static size_t string_space_max; libc_freeres_ptr (static struct alias_map *map); static size_t nmap; static size_t maxmap; /* Prototypes for local functions. */ static size_t read_alias_file (const char *fname, int fname_len) internal_function; static int extend_alias_table (void); static int alias_compare (const struct alias_map *map1, const struct alias_map *map2); const char * _nl_expand_alias (const char *name) { static const char *locale_alias_path; struct alias_map *retval; const char *result = NULL; size_t added; __libc_lock_lock (lock); if (locale_alias_path == NULL) locale_alias_path = LOCALE_ALIAS_PATH; do { struct alias_map item; item.alias = name; if (nmap > 0) retval = (struct alias_map *) bsearch (&item, map, nmap, sizeof (struct alias_map), (int (*) (const void *, const void *) ) alias_compare); else retval = NULL; /* We really found an alias. Return the value. */ if (retval != NULL) { result = retval->value; break; } /* Perhaps we can find another alias file. */ added = 0; while (added == 0 && locale_alias_path[0] != '\0') { const char *start; while (locale_alias_path[0] == PATH_SEPARATOR) ++locale_alias_path; start = locale_alias_path; while (locale_alias_path[0] != '\0' && locale_alias_path[0] != PATH_SEPARATOR) ++locale_alias_path; if (start < locale_alias_path) added = read_alias_file (start, locale_alias_path - start); } } while (added != 0); __libc_lock_unlock (lock); return result; } static size_t internal_function read_alias_file (const char *fname, int fname_len) { FILE *fp; char *full_fname; size_t added; static const char aliasfile[] = "/locale.alias"; full_fname = (char *) alloca (fname_len + sizeof aliasfile); #ifdef HAVE_MEMPCPY mempcpy (mempcpy (full_fname, fname, fname_len), aliasfile, sizeof aliasfile); #else memcpy (full_fname, fname, fname_len); memcpy (&full_fname[fname_len], aliasfile, sizeof aliasfile); #endif #ifdef _LIBC /* Note the file is opened with cancellation in the I/O functions disabled. */ fp = fopen (relocate (full_fname), "rc"); #else fp = fopen (relocate (full_fname), "r"); #endif freea (full_fname); if (fp == NULL) return 0; #ifdef HAVE___FSETLOCKING /* No threads present. */ __fsetlocking (fp, FSETLOCKING_BYCALLER); #endif added = 0; while (!FEOF (fp)) { /* It is a reasonable approach to use a fix buffer here because a) we are only interested in the first two fields b) these fields must be usable as file names and so must not be that long We avoid a multi-kilobyte buffer here since this would use up stack space which we might not have if the program ran out of memory. */ char buf[400]; char *alias; char *value; char *cp; int complete_line; if (FGETS (buf, sizeof buf, fp) == NULL) /* EOF reached. */ break; /* Determine whether the line is complete. */ complete_line = strchr (buf, '\n') != NULL; cp = buf; /* Ignore leading white space. */ while (isspace ((unsigned char) cp[0])) ++cp; /* A leading '#' signals a comment line. */ if (cp[0] != '\0' && cp[0] != '#') { alias = cp++; while (cp[0] != '\0' && !isspace ((unsigned char) cp[0])) ++cp; /* Terminate alias name. */ if (cp[0] != '\0') *cp++ = '\0'; /* Now look for the beginning of the value. */ while (isspace ((unsigned char) cp[0])) ++cp; if (cp[0] != '\0') { value = cp++; while (cp[0] != '\0' && !isspace ((unsigned char) cp[0])) ++cp; /* Terminate value. */ if (cp[0] == '\n') { /* This has to be done to make the following test for the end of line possible. We are looking for the terminating '\n' which do not overwrite here. */ *cp++ = '\0'; *cp = '\n'; } else if (cp[0] != '\0') *cp++ = '\0'; #ifdef IN_LIBGLOCALE /* glibc's locale.alias contains entries for ja_JP and ko_KR that make it impossible to use a Japanese or Korean UTF-8 locale under the name "ja_JP" or "ko_KR". Ignore these entries. */ if (strchr (alias, '_') == NULL) #endif { size_t alias_len; size_t value_len; if (nmap >= maxmap) if (__builtin_expect (extend_alias_table (), 0)) goto out; alias_len = strlen (alias) + 1; value_len = strlen (value) + 1; if (string_space_act + alias_len + value_len > string_space_max) { /* Increase size of memory pool. */ size_t new_size = (string_space_max + (alias_len + value_len > 1024 ? alias_len + value_len : 1024)); char *new_pool = (char *) realloc (string_space, new_size); if (new_pool == NULL) goto out; if (__builtin_expect (string_space != new_pool, 0)) { size_t i; for (i = 0; i < nmap; i++) { map[i].alias += new_pool - string_space; map[i].value += new_pool - string_space; } } string_space = new_pool; string_space_max = new_size; } map[nmap].alias = (const char *) memcpy (&string_space[string_space_act], alias, alias_len); string_space_act += alias_len; map[nmap].value = (const char *) memcpy (&string_space[string_space_act], value, value_len); string_space_act += value_len; ++nmap; ++added; } } } /* Possibly not the whole line fits into the buffer. Ignore the rest of the line. */ if (! complete_line) do if (FGETS (buf, sizeof buf, fp) == NULL) /* Make sure the inner loop will be left. The outer loop will exit at the `feof' test. */ break; while (strchr (buf, '\n') == NULL); } out: /* Should we test for ferror()? I think we have to silently ignore errors. --drepper */ fclose (fp); if (added > 0) qsort (map, nmap, sizeof (struct alias_map), (int (*) (const void *, const void *)) alias_compare); return added; } static int extend_alias_table () { size_t new_size; struct alias_map *new_map; new_size = maxmap == 0 ? 100 : 2 * maxmap; new_map = (struct alias_map *) realloc (map, (new_size * sizeof (struct alias_map))); if (new_map == NULL) /* Simply don't extend: we don't have any more core. */ return -1; map = new_map; maxmap = new_size; return 0; } static int alias_compare (const struct alias_map *map1, const struct alias_map *map2) { #if defined _LIBC || defined HAVE_STRCASECMP return strcasecmp (map1->alias, map2->alias); #else const unsigned char *p1 = (const unsigned char *) map1->alias; const unsigned char *p2 = (const unsigned char *) map2->alias; unsigned char c1, c2; if (p1 == p2) return 0; do { /* I know this seems to be odd but the tolower() function in some systems libc cannot handle nonalpha characters. */ c1 = isupper (*p1) ? tolower (*p1) : *p1; c2 = isupper (*p2) ? tolower (*p2) : *p2; if (c1 == '\0') break; ++p1; ++p2; } while (c1 == c2); return c1 - c2; #endif } gliv-1.9.7/intl/ChangeLog0000644000076400007640000000011111465576131012461 0ustar gg2010-06-04 GNU * Version 0.18.1 released. gliv-1.9.7/intl/printf-args.c0000644000076400007640000001474711465576131013333 0ustar gg/* Decomposed printf argument list. Copyright (C) 1999, 2002-2003, 2005-2007 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* This file can be parametrized with the following macros: ENABLE_UNISTDIO Set to 1 to enable the unistdio extensions. PRINTF_FETCHARGS Name of the function to be defined. STATIC Set to 'static' to declare the function static. */ #ifndef PRINTF_FETCHARGS # include #endif /* Specification. */ #ifndef PRINTF_FETCHARGS # include "printf-args.h" #endif #ifdef STATIC STATIC #endif int PRINTF_FETCHARGS (va_list args, arguments *a) { size_t i; argument *ap; for (i = 0, ap = &a->arg[0]; i < a->count; i++, ap++) switch (ap->type) { case TYPE_SCHAR: ap->a.a_schar = va_arg (args, /*signed char*/ int); break; case TYPE_UCHAR: ap->a.a_uchar = va_arg (args, /*unsigned char*/ int); break; case TYPE_SHORT: ap->a.a_short = va_arg (args, /*short*/ int); break; case TYPE_USHORT: ap->a.a_ushort = va_arg (args, /*unsigned short*/ int); break; case TYPE_INT: ap->a.a_int = va_arg (args, int); break; case TYPE_UINT: ap->a.a_uint = va_arg (args, unsigned int); break; case TYPE_LONGINT: ap->a.a_longint = va_arg (args, long int); break; case TYPE_ULONGINT: ap->a.a_ulongint = va_arg (args, unsigned long int); break; #if HAVE_LONG_LONG_INT case TYPE_LONGLONGINT: ap->a.a_longlongint = va_arg (args, long long int); break; case TYPE_ULONGLONGINT: ap->a.a_ulonglongint = va_arg (args, unsigned long long int); break; #endif case TYPE_DOUBLE: ap->a.a_double = va_arg (args, double); break; case TYPE_LONGDOUBLE: ap->a.a_longdouble = va_arg (args, long double); break; case TYPE_CHAR: ap->a.a_char = va_arg (args, int); break; #if HAVE_WINT_T case TYPE_WIDE_CHAR: /* Although ISO C 99 7.24.1.(2) says that wint_t is "unchanged by default argument promotions", this is not the case in mingw32, where wint_t is 'unsigned short'. */ ap->a.a_wide_char = (sizeof (wint_t) < sizeof (int) ? va_arg (args, int) : va_arg (args, wint_t)); break; #endif case TYPE_STRING: ap->a.a_string = va_arg (args, const char *); /* A null pointer is an invalid argument for "%s", but in practice it occurs quite frequently in printf statements that produce debug output. Use a fallback in this case. */ if (ap->a.a_string == NULL) ap->a.a_string = "(NULL)"; break; #if HAVE_WCHAR_T case TYPE_WIDE_STRING: ap->a.a_wide_string = va_arg (args, const wchar_t *); /* A null pointer is an invalid argument for "%ls", but in practice it occurs quite frequently in printf statements that produce debug output. Use a fallback in this case. */ if (ap->a.a_wide_string == NULL) { static const wchar_t wide_null_string[] = { (wchar_t)'(', (wchar_t)'N', (wchar_t)'U', (wchar_t)'L', (wchar_t)'L', (wchar_t)')', (wchar_t)0 }; ap->a.a_wide_string = wide_null_string; } break; #endif case TYPE_POINTER: ap->a.a_pointer = va_arg (args, void *); break; case TYPE_COUNT_SCHAR_POINTER: ap->a.a_count_schar_pointer = va_arg (args, signed char *); break; case TYPE_COUNT_SHORT_POINTER: ap->a.a_count_short_pointer = va_arg (args, short *); break; case TYPE_COUNT_INT_POINTER: ap->a.a_count_int_pointer = va_arg (args, int *); break; case TYPE_COUNT_LONGINT_POINTER: ap->a.a_count_longint_pointer = va_arg (args, long int *); break; #if HAVE_LONG_LONG_INT case TYPE_COUNT_LONGLONGINT_POINTER: ap->a.a_count_longlongint_pointer = va_arg (args, long long int *); break; #endif #if ENABLE_UNISTDIO /* The unistdio extensions. */ case TYPE_U8_STRING: ap->a.a_u8_string = va_arg (args, const uint8_t *); /* A null pointer is an invalid argument for "%U", but in practice it occurs quite frequently in printf statements that produce debug output. Use a fallback in this case. */ if (ap->a.a_u8_string == NULL) { static const uint8_t u8_null_string[] = { '(', 'N', 'U', 'L', 'L', ')', 0 }; ap->a.a_u8_string = u8_null_string; } break; case TYPE_U16_STRING: ap->a.a_u16_string = va_arg (args, const uint16_t *); /* A null pointer is an invalid argument for "%lU", but in practice it occurs quite frequently in printf statements that produce debug output. Use a fallback in this case. */ if (ap->a.a_u16_string == NULL) { static const uint16_t u16_null_string[] = { '(', 'N', 'U', 'L', 'L', ')', 0 }; ap->a.a_u16_string = u16_null_string; } break; case TYPE_U32_STRING: ap->a.a_u32_string = va_arg (args, const uint32_t *); /* A null pointer is an invalid argument for "%llU", but in practice it occurs quite frequently in printf statements that produce debug output. Use a fallback in this case. */ if (ap->a.a_u32_string == NULL) { static const uint32_t u32_null_string[] = { '(', 'N', 'U', 'L', 'L', ')', 0 }; ap->a.a_u32_string = u32_null_string; } break; #endif default: /* Unknown type. */ return -1; } return 0; } gliv-1.9.7/intl/dgettext.c0000644000076400007640000000337111465576131012716 0ustar gg/* Implementation of the dgettext(3) function. Copyright (C) 1995-1997, 2000-2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include "gettextP.h" #include #ifdef _LIBC # include #else # include "libgnuintl.h" #endif /* @@ end of prolog @@ */ /* Names for the libintl functions are a problem. They must not clash with existing names and they should follow ANSI C. But this source code is also used in GNU C Library where the names have a __ prefix. So we have to make a difference here. */ #ifdef _LIBC # define DGETTEXT __dgettext # define DCGETTEXT INTUSE(__dcgettext) #else # define DGETTEXT libintl_dgettext # define DCGETTEXT libintl_dcgettext #endif /* Look up MSGID in the DOMAINNAME message catalog of the current LC_MESSAGES locale. */ char * DGETTEXT (const char *domainname, const char *msgid) { return DCGETTEXT (domainname, msgid, LC_MESSAGES); } #ifdef _LIBC /* Alias for function name in GNU C Library. */ weak_alias (__dgettext, dgettext); #endif gliv-1.9.7/intl/locale.alias0000644000076400007640000000510611465576131013172 0ustar gg# Locale name alias data base. # Copyright (C) 1996-2001,2003,2007 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU Library 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 # Library General Public License for more details. # # You should have received a copy of the GNU Library General Public # License along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, # USA. # The format of this file is the same as for the corresponding file of # the X Window System, which normally can be found in # /usr/lib/X11/locale/locale.alias # A single line contains two fields: an alias and a substitution value. # All entries are case independent. # Note: This file is obsolete and is kept around for the time being for # backward compatibility. Nobody should rely on the names defined here. # Locales should always be specified by their full name. # Packages using this file: bokmal nb_NO.ISO-8859-1 bokml nb_NO.ISO-8859-1 catalan ca_ES.ISO-8859-1 croatian hr_HR.ISO-8859-2 czech cs_CZ.ISO-8859-2 danish da_DK.ISO-8859-1 dansk da_DK.ISO-8859-1 deutsch de_DE.ISO-8859-1 dutch nl_NL.ISO-8859-1 eesti et_EE.ISO-8859-1 estonian et_EE.ISO-8859-1 finnish fi_FI.ISO-8859-1 franais fr_FR.ISO-8859-1 french fr_FR.ISO-8859-1 galego gl_ES.ISO-8859-1 galician gl_ES.ISO-8859-1 german de_DE.ISO-8859-1 greek el_GR.ISO-8859-7 hebrew he_IL.ISO-8859-8 hrvatski hr_HR.ISO-8859-2 hungarian hu_HU.ISO-8859-2 icelandic is_IS.ISO-8859-1 italian it_IT.ISO-8859-1 japanese ja_JP.eucJP japanese.euc ja_JP.eucJP ja_JP ja_JP.eucJP ja_JP.ujis ja_JP.eucJP japanese.sjis ja_JP.SJIS korean ko_KR.eucKR korean.euc ko_KR.eucKR ko_KR ko_KR.eucKR lithuanian lt_LT.ISO-8859-13 no_NO nb_NO.ISO-8859-1 no_NO.ISO-8859-1 nb_NO.ISO-8859-1 norwegian nb_NO.ISO-8859-1 nynorsk nn_NO.ISO-8859-1 polish pl_PL.ISO-8859-2 portuguese pt_PT.ISO-8859-1 romanian ro_RO.ISO-8859-2 russian ru_RU.ISO-8859-5 slovak sk_SK.ISO-8859-2 slovene sl_SI.ISO-8859-2 slovenian sl_SI.ISO-8859-2 spanish es_ES.ISO-8859-1 swedish sv_SE.ISO-8859-1 thai th_TH.TIS-620 turkish tr_TR.ISO-8859-9 gliv-1.9.7/intl/VERSION0000644000076400007640000000005011465576131011761 0ustar ggGNU gettext library from gettext-0.18.1 gliv-1.9.7/intl/dcgettext.c0000644000076400007640000000342111465576131013055 0ustar gg/* Implementation of the dcgettext(3) function. Copyright (C) 1995-1999, 2000-2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include "gettextP.h" #ifdef _LIBC # include #else # include "libgnuintl.h" #endif /* @@ end of prolog @@ */ /* Names for the libintl functions are a problem. They must not clash with existing names and they should follow ANSI C. But this source code is also used in GNU C Library where the names have a __ prefix. So we have to make a difference here. */ #ifdef _LIBC # define DCGETTEXT __dcgettext # define DCIGETTEXT __dcigettext #else # define DCGETTEXT libintl_dcgettext # define DCIGETTEXT libintl_dcigettext #endif /* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY locale. */ char * DCGETTEXT (const char *domainname, const char *msgid, int category) { return DCIGETTEXT (domainname, msgid, NULL, 0, 0, category); } #ifdef _LIBC /* Alias for function name in GNU C Library. */ INTDEF(__dcgettext) weak_alias (__dcgettext, dcgettext); #endif gliv-1.9.7/intl/export.h0000644000076400007640000000023511465576131012410 0ustar gg #if @HAVE_VISIBILITY@ && BUILDING_LIBINTL #define LIBINTL_DLL_EXPORTED __attribute__((__visibility__("default"))) #else #define LIBINTL_DLL_EXPORTED #endif gliv-1.9.7/intl/gmo.h0000644000076400007640000001151211465576131011651 0ustar gg/* Description of GNU message catalog format: general file layout. Copyright (C) 1995, 1997, 2000-2002, 2004, 2006 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _GETTEXT_H #define _GETTEXT_H 1 #include /* @@ end of prolog @@ */ /* The magic number of the GNU message catalog format. */ #define _MAGIC 0x950412de #define _MAGIC_SWAPPED 0xde120495 /* Revision number of the currently used .mo (binary) file format. */ #define MO_REVISION_NUMBER 0 #define MO_REVISION_NUMBER_WITH_SYSDEP_I 1 /* The following contortions are an attempt to use the C preprocessor to determine an unsigned integral type that is 32 bits wide. An alternative approach is to use autoconf's AC_CHECK_SIZEOF macro, but as of version autoconf-2.13, the AC_CHECK_SIZEOF macro doesn't work when cross-compiling. */ #if __STDC__ # define UINT_MAX_32_BITS 4294967295U #else # define UINT_MAX_32_BITS 0xFFFFFFFF #endif /* If UINT_MAX isn't defined, assume it's a 32-bit type. This should be valid for all systems GNU cares about because that doesn't include 16-bit systems, and only modern systems (that certainly have ) have 64+-bit integral types. */ #ifndef UINT_MAX # define UINT_MAX UINT_MAX_32_BITS #endif #if UINT_MAX == UINT_MAX_32_BITS typedef unsigned nls_uint32; #else # if USHRT_MAX == UINT_MAX_32_BITS typedef unsigned short nls_uint32; # else # if ULONG_MAX == UINT_MAX_32_BITS typedef unsigned long nls_uint32; # else /* The following line is intended to throw an error. Using #error is not portable enough. */ "Cannot determine unsigned 32-bit data type." # endif # endif #endif /* Header for binary .mo file format. */ struct mo_file_header { /* The magic number. */ nls_uint32 magic; /* The revision number of the file format. */ nls_uint32 revision; /* The following are only used in .mo files with major revision 0 or 1. */ /* The number of strings pairs. */ nls_uint32 nstrings; /* Offset of table with start offsets of original strings. */ nls_uint32 orig_tab_offset; /* Offset of table with start offsets of translated strings. */ nls_uint32 trans_tab_offset; /* Size of hash table. */ nls_uint32 hash_tab_size; /* Offset of first hash table entry. */ nls_uint32 hash_tab_offset; /* The following are only used in .mo files with minor revision >= 1. */ /* The number of system dependent segments. */ nls_uint32 n_sysdep_segments; /* Offset of table describing system dependent segments. */ nls_uint32 sysdep_segments_offset; /* The number of system dependent strings pairs. */ nls_uint32 n_sysdep_strings; /* Offset of table with start offsets of original sysdep strings. */ nls_uint32 orig_sysdep_tab_offset; /* Offset of table with start offsets of translated sysdep strings. */ nls_uint32 trans_sysdep_tab_offset; }; /* Descriptor for static string contained in the binary .mo file. */ struct string_desc { /* Length of addressed string, not including the trailing NUL. */ nls_uint32 length; /* Offset of string in file. */ nls_uint32 offset; }; /* The following are only used in .mo files with minor revision >= 1. */ /* Descriptor for system dependent string segment. */ struct sysdep_segment { /* Length of addressed string, including the trailing NUL. */ nls_uint32 length; /* Offset of string in file. */ nls_uint32 offset; }; /* Pair of a static and a system dependent segment, in struct sysdep_string. */ struct segment_pair { /* Size of static segment. */ nls_uint32 segsize; /* Reference to system dependent string segment, or ~0 at the end. */ nls_uint32 sysdepref; }; /* Descriptor for system dependent string. */ struct sysdep_string { /* Offset of static string segments in file. */ nls_uint32 offset; /* Alternating sequence of static and system dependent segments. The last segment is a static segment, including the trailing NUL. */ struct segment_pair segments[1]; }; /* Marker for the end of the segments[] array. This has the value 0xFFFFFFFF, regardless whether 'int' is 16 bit, 32 bit, or 64 bit. */ #define SEGMENTS_END ((nls_uint32) ~0) /* @@ begin of epilog @@ */ #endif /* gettext.h */ gliv-1.9.7/intl/l10nflist.c0000644000076400007640000002557511465576131012714 0ustar gg/* Copyright (C) 1995-1999, 2000-2007 Free Software Foundation, Inc. Contributed by Ulrich Drepper , 1995. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Tell glibc's to provide a prototype for stpcpy(). This must come before because may include , and once has been included, it's too late. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif #ifdef HAVE_CONFIG_H # include #endif #include #if defined _LIBC || defined HAVE_ARGZ_H # include #endif #include #include #include #include "loadinfo.h" /* On some strange systems still no definition of NULL is found. Sigh! */ #ifndef NULL # if defined __STDC__ && __STDC__ # define NULL ((void *) 0) # else # define NULL 0 # endif #endif /* @@ end of prolog @@ */ #ifdef _LIBC /* Rename the non ANSI C functions. This is required by the standard because some ANSI C functions will require linking with this object file and the name space must not be polluted. */ # ifndef stpcpy # define stpcpy(dest, src) __stpcpy(dest, src) # endif #else # ifndef HAVE_STPCPY static char *stpcpy (char *dest, const char *src); # endif #endif /* Pathname support. ISSLASH(C) tests whether C is a directory separator character. IS_ABSOLUTE_PATH(P) tests whether P is an absolute path. If it is not, it may be concatenated to a directory pathname. */ #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ /* Win32, Cygwin, OS/2, DOS */ # define ISSLASH(C) ((C) == '/' || (C) == '\\') # define HAS_DEVICE(P) \ ((((P)[0] >= 'A' && (P)[0] <= 'Z') || ((P)[0] >= 'a' && (P)[0] <= 'z')) \ && (P)[1] == ':') # define IS_ABSOLUTE_PATH(P) (ISSLASH ((P)[0]) || HAS_DEVICE (P)) #else /* Unix */ # define ISSLASH(C) ((C) == '/') # define IS_ABSOLUTE_PATH(P) ISSLASH ((P)[0]) #endif /* Define function which are usually not available. */ #ifdef _LIBC # define __argz_count(argz, len) INTUSE(__argz_count) (argz, len) #elif defined HAVE_ARGZ_COUNT # undef __argz_count # define __argz_count argz_count #else /* Returns the number of strings in ARGZ. */ static size_t argz_count__ (const char *argz, size_t len) { size_t count = 0; while (len > 0) { size_t part_len = strlen (argz); argz += part_len + 1; len -= part_len + 1; count++; } return count; } # undef __argz_count # define __argz_count(argz, len) argz_count__ (argz, len) #endif /* !_LIBC && !HAVE_ARGZ_COUNT */ #ifdef _LIBC # define __argz_stringify(argz, len, sep) \ INTUSE(__argz_stringify) (argz, len, sep) #elif defined HAVE_ARGZ_STRINGIFY # undef __argz_stringify # define __argz_stringify argz_stringify #else /* Make '\0' separated arg vector ARGZ printable by converting all the '\0's except the last into the character SEP. */ static void argz_stringify__ (char *argz, size_t len, int sep) { while (len > 0) { size_t part_len = strlen (argz); argz += part_len; len -= part_len + 1; if (len > 0) *argz++ = sep; } } # undef __argz_stringify # define __argz_stringify(argz, len, sep) argz_stringify__ (argz, len, sep) #endif /* !_LIBC && !HAVE_ARGZ_STRINGIFY */ #ifdef _LIBC #elif defined HAVE_ARGZ_NEXT # undef __argz_next # define __argz_next argz_next #else static char * argz_next__ (char *argz, size_t argz_len, const char *entry) { if (entry) { if (entry < argz + argz_len) entry = strchr (entry, '\0') + 1; return entry >= argz + argz_len ? NULL : (char *) entry; } else if (argz_len > 0) return argz; else return 0; } # undef __argz_next # define __argz_next(argz, len, entry) argz_next__ (argz, len, entry) #endif /* !_LIBC && !HAVE_ARGZ_NEXT */ /* Return number of bits set in X. */ static inline int pop (int x) { /* We assume that no more than 16 bits are used. */ x = ((x & ~0x5555) >> 1) + (x & 0x5555); x = ((x & ~0x3333) >> 2) + (x & 0x3333); x = ((x >> 4) + x) & 0x0f0f; x = ((x >> 8) + x) & 0xff; return x; } struct loaded_l10nfile * _nl_make_l10nflist (struct loaded_l10nfile **l10nfile_list, const char *dirlist, size_t dirlist_len, int mask, const char *language, const char *territory, const char *codeset, const char *normalized_codeset, const char *modifier, const char *filename, int do_allocate) { char *abs_filename; struct loaded_l10nfile **lastp; struct loaded_l10nfile *retval; char *cp; size_t dirlist_count; size_t entries; int cnt; /* If LANGUAGE contains an absolute directory specification, we ignore DIRLIST. */ if (IS_ABSOLUTE_PATH (language)) dirlist_len = 0; /* Allocate room for the full file name. */ abs_filename = (char *) malloc (dirlist_len + strlen (language) + ((mask & XPG_TERRITORY) != 0 ? strlen (territory) + 1 : 0) + ((mask & XPG_CODESET) != 0 ? strlen (codeset) + 1 : 0) + ((mask & XPG_NORM_CODESET) != 0 ? strlen (normalized_codeset) + 1 : 0) + ((mask & XPG_MODIFIER) != 0 ? strlen (modifier) + 1 : 0) + 1 + strlen (filename) + 1); if (abs_filename == NULL) return NULL; /* Construct file name. */ cp = abs_filename; if (dirlist_len > 0) { memcpy (cp, dirlist, dirlist_len); __argz_stringify (cp, dirlist_len, PATH_SEPARATOR); cp += dirlist_len; cp[-1] = '/'; } cp = stpcpy (cp, language); if ((mask & XPG_TERRITORY) != 0) { *cp++ = '_'; cp = stpcpy (cp, territory); } if ((mask & XPG_CODESET) != 0) { *cp++ = '.'; cp = stpcpy (cp, codeset); } if ((mask & XPG_NORM_CODESET) != 0) { *cp++ = '.'; cp = stpcpy (cp, normalized_codeset); } if ((mask & XPG_MODIFIER) != 0) { *cp++ = '@'; cp = stpcpy (cp, modifier); } *cp++ = '/'; stpcpy (cp, filename); /* Look in list of already loaded domains whether it is already available. */ lastp = l10nfile_list; for (retval = *l10nfile_list; retval != NULL; retval = retval->next) if (retval->filename != NULL) { int compare = strcmp (retval->filename, abs_filename); if (compare == 0) /* We found it! */ break; if (compare < 0) { /* It's not in the list. */ retval = NULL; break; } lastp = &retval->next; } if (retval != NULL || do_allocate == 0) { free (abs_filename); return retval; } dirlist_count = (dirlist_len > 0 ? __argz_count (dirlist, dirlist_len) : 1); /* Allocate a new loaded_l10nfile. */ retval = (struct loaded_l10nfile *) malloc (sizeof (*retval) + (((dirlist_count << pop (mask)) + (dirlist_count > 1 ? 1 : 0)) * sizeof (struct loaded_l10nfile *))); if (retval == NULL) { free (abs_filename); return NULL; } retval->filename = abs_filename; /* We set retval->data to NULL here; it is filled in later. Setting retval->decided to 1 here means that retval does not correspond to a real file (dirlist_count > 1) or is not worth looking up (if an unnormalized codeset was specified). */ retval->decided = (dirlist_count > 1 || ((mask & XPG_CODESET) != 0 && (mask & XPG_NORM_CODESET) != 0)); retval->data = NULL; retval->next = *lastp; *lastp = retval; entries = 0; /* Recurse to fill the inheritance list of RETVAL. If the DIRLIST is a real list (i.e. DIRLIST_COUNT > 1), the RETVAL entry does not correspond to a real file; retval->filename contains colons. In this case we loop across all elements of DIRLIST and across all bit patterns dominated by MASK. If the DIRLIST is a single directory or entirely redundant (i.e. DIRLIST_COUNT == 1), we loop across all bit patterns dominated by MASK, excluding MASK itself. In either case, we loop down from MASK to 0. This has the effect that the extra bits in the locale name are dropped in this order: first the modifier, then the territory, then the codeset, then the normalized_codeset. */ for (cnt = dirlist_count > 1 ? mask : mask - 1; cnt >= 0; --cnt) if ((cnt & ~mask) == 0 && !((cnt & XPG_CODESET) != 0 && (cnt & XPG_NORM_CODESET) != 0)) { if (dirlist_count > 1) { /* Iterate over all elements of the DIRLIST. */ char *dir = NULL; while ((dir = __argz_next ((char *) dirlist, dirlist_len, dir)) != NULL) retval->successor[entries++] = _nl_make_l10nflist (l10nfile_list, dir, strlen (dir) + 1, cnt, language, territory, codeset, normalized_codeset, modifier, filename, 1); } else retval->successor[entries++] = _nl_make_l10nflist (l10nfile_list, dirlist, dirlist_len, cnt, language, territory, codeset, normalized_codeset, modifier, filename, 1); } retval->successor[entries] = NULL; return retval; } /* Normalize codeset name. There is no standard for the codeset names. Normalization allows the user to use any of the common names. The return value is dynamically allocated and has to be freed by the caller. */ const char * _nl_normalize_codeset (const char *codeset, size_t name_len) { size_t len = 0; int only_digit = 1; char *retval; char *wp; size_t cnt; for (cnt = 0; cnt < name_len; ++cnt) if (isalnum ((unsigned char) codeset[cnt])) { ++len; if (isalpha ((unsigned char) codeset[cnt])) only_digit = 0; } retval = (char *) malloc ((only_digit ? 3 : 0) + len + 1); if (retval != NULL) { if (only_digit) wp = stpcpy (retval, "iso"); else wp = retval; for (cnt = 0; cnt < name_len; ++cnt) if (isalpha ((unsigned char) codeset[cnt])) *wp++ = tolower ((unsigned char) codeset[cnt]); else if (isdigit ((unsigned char) codeset[cnt])) *wp++ = codeset[cnt]; *wp = '\0'; } return (const char *) retval; } /* @@ begin of epilog @@ */ /* We don't want libintl.a to depend on any other library. So we avoid the non-standard function stpcpy. In GNU C Library this function is available, though. Also allow the symbol HAVE_STPCPY to be defined. */ #if !_LIBC && !HAVE_STPCPY static char * stpcpy (char *dest, const char *src) { while ((*dest++ = *src++) != '\0') /* Do nothing. */ ; return dest - 1; } #endif gliv-1.9.7/intl/langprefs.c0000644000076400007640000003073711465576131013055 0ustar gg/* Determine the user's language preferences. Copyright (C) 2004-2007 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Written by Bruno Haible . Win32 code originally by Michele Cicciotti . */ #ifdef HAVE_CONFIG_H # include #endif #include #if HAVE_CFPREFERENCESCOPYAPPVALUE # include # include # include # include # include extern void _nl_locale_name_canonicalize (char *name); #endif #if defined _WIN32 || defined __WIN32__ # define WIN32_NATIVE #endif #ifdef WIN32_NATIVE # define WIN32_LEAN_AND_MEAN # include # ifndef MUI_LANGUAGE_NAME # define MUI_LANGUAGE_NAME 8 # endif # ifndef STATUS_BUFFER_OVERFLOW # define STATUS_BUFFER_OVERFLOW 0x80000005 # endif extern void _nl_locale_name_canonicalize (char *name); extern const char *_nl_locale_name_from_win32_LANGID (LANGID langid); extern const char *_nl_locale_name_from_win32_LCID (LCID lcid); /* Get the preferences list through the MUI APIs. This works on Windows Vista and newer. */ static const char * _nl_language_preferences_win32_mui (HMODULE kernel32) { /* DWORD GetUserPreferredUILanguages (ULONG dwFlags, PULONG pulNumLanguages, PWSTR pwszLanguagesBuffer, PULONG pcchLanguagesBuffer); */ typedef DWORD (WINAPI *GetUserPreferredUILanguages_func) (ULONG, PULONG, PWSTR, PULONG); GetUserPreferredUILanguages_func p_GetUserPreferredUILanguages; p_GetUserPreferredUILanguages = (GetUserPreferredUILanguages_func) GetProcAddress (kernel32, "GetUserPreferredUILanguages"); if (p_GetUserPreferredUILanguages != NULL) { ULONG num_languages; ULONG bufsize; DWORD ret; bufsize = 0; ret = p_GetUserPreferredUILanguages (MUI_LANGUAGE_NAME, &num_languages, NULL, &bufsize); if (ret == 0 && GetLastError () == STATUS_BUFFER_OVERFLOW && bufsize > 0) { WCHAR *buffer = (WCHAR *) malloc (bufsize * sizeof (WCHAR)); if (buffer != NULL) { ret = p_GetUserPreferredUILanguages (MUI_LANGUAGE_NAME, &num_languages, buffer, &bufsize); if (ret) { /* Convert the list from NUL-delimited WCHAR[] Win32 locale names to colon-delimited char[] Unix locale names. We assume that all these locale names are in ASCII, nonempty and contain no colons. */ char *languages = (char *) malloc (bufsize + num_languages * 10 + 1); if (languages != NULL) { const WCHAR *p = buffer; char *q = languages; ULONG i; for (i = 0; i < num_languages; i++) { char *q1; char *q2; q1 = q; if (i > 0) *q++ = ':'; q2 = q; for (; *p != (WCHAR)'\0'; p++) { if ((unsigned char) *p != *p || *p == ':') { /* A non-ASCII character or a colon inside the Win32 locale name! Punt. */ q = q1; break; } *q++ = (unsigned char) *p; } if (q == q1) /* An unexpected Win32 locale name occurred. */ break; *q = '\0'; _nl_locale_name_canonicalize (q2); q = q2 + strlen (q2); p++; } *q = '\0'; if (q > languages) { free (buffer); return languages; } free (languages); } } free (buffer); } } } return NULL; } /* Get a preference. This works on Windows ME and newer. */ static const char * _nl_language_preferences_win32_ME (HMODULE kernel32) { /* LANGID GetUserDefaultUILanguage (void); */ typedef LANGID (WINAPI *GetUserDefaultUILanguage_func) (void); GetUserDefaultUILanguage_func p_GetUserDefaultUILanguage; p_GetUserDefaultUILanguage = (GetUserDefaultUILanguage_func) GetProcAddress (kernel32, "GetUserDefaultUILanguage"); if (p_GetUserDefaultUILanguage != NULL) return _nl_locale_name_from_win32_LANGID (p_GetUserDefaultUILanguage ()); return NULL; } /* Get a preference. This works on Windows 95 and newer. */ static const char * _nl_language_preferences_win32_95 () { HKEY desktop_resource_locale_key; if (RegOpenKeyExA (HKEY_CURRENT_USER, "Control Panel\\Desktop\\ResourceLocale", 0, KEY_QUERY_VALUE, &desktop_resource_locale_key) == NO_ERROR) { DWORD type; char data[8 + 1]; DWORD data_size = sizeof (data); DWORD ret; ret = RegQueryValueExA (desktop_resource_locale_key, NULL, NULL, &type, data, &data_size); RegCloseKey (desktop_resource_locale_key); if (ret == NO_ERROR) { /* We expect a string, at most 8 bytes long, that parses as a hexadecimal number. */ if (type == REG_SZ && data_size <= sizeof (data) && (data_size < sizeof (data) || data[sizeof (data) - 1] == '\0')) { LCID lcid; char *endp; /* Ensure it's NUL terminated. */ if (data_size < sizeof (data)) data[data_size] = '\0'; /* Parse it as a hexadecimal number. */ lcid = strtoul (data, &endp, 16); if (endp > data && *endp == '\0') return _nl_locale_name_from_win32_LCID (lcid); } } } return NULL; } /* Get the system's preference. This can be used as a fallback. */ static BOOL CALLBACK ret_first_language (HMODULE h, LPCSTR type, LPCSTR name, WORD lang, LONG_PTR param) { *(const char **)param = _nl_locale_name_from_win32_LANGID (lang); return FALSE; } static const char * _nl_language_preferences_win32_system (HMODULE kernel32) { const char *languages = NULL; /* Ignore the warning on mingw here. mingw has a wrong definition of the last parameter type of ENUMRESLANGPROC. */ EnumResourceLanguages (kernel32, RT_VERSION, MAKEINTRESOURCE (1), ret_first_language, (LONG_PTR)&languages); return languages; } #endif /* Determine the user's language preferences, as a colon separated list of locale names in XPG syntax language[_territory][.codeset][@modifier] The result must not be freed; it is statically allocated. The LANGUAGE environment variable does not need to be considered; it is already taken into account by the caller. */ const char * _nl_language_preferences_default (void) { #if HAVE_CFPREFERENCESCOPYAPPVALUE /* MacOS X 10.2 or newer */ { /* Cache the preferences list, since CoreFoundation calls are expensive. */ static const char *cached_languages; static int cache_initialized; if (!cache_initialized) { CFTypeRef preferences = CFPreferencesCopyAppValue (CFSTR ("AppleLanguages"), kCFPreferencesCurrentApplication); if (preferences != NULL && CFGetTypeID (preferences) == CFArrayGetTypeID ()) { CFArrayRef prefArray = (CFArrayRef)preferences; int n = CFArrayGetCount (prefArray); char buf[256]; size_t size = 0; int i; for (i = 0; i < n; i++) { CFTypeRef element = CFArrayGetValueAtIndex (prefArray, i); if (element != NULL && CFGetTypeID (element) == CFStringGetTypeID () && CFStringGetCString ((CFStringRef)element, buf, sizeof (buf), kCFStringEncodingASCII)) { _nl_locale_name_canonicalize (buf); size += strlen (buf) + 1; /* Most GNU programs use msgids in English and don't ship an en.mo message catalog. Therefore when we see "en" in the preferences list, arrange for gettext() to return the msgid, and ignore all further elements of the preferences list. */ if (strcmp (buf, "en") == 0) break; } else break; } if (size > 0) { char *languages = (char *) malloc (size); if (languages != NULL) { char *p = languages; for (i = 0; i < n; i++) { CFTypeRef element = CFArrayGetValueAtIndex (prefArray, i); if (element != NULL && CFGetTypeID (element) == CFStringGetTypeID () && CFStringGetCString ((CFStringRef)element, buf, sizeof (buf), kCFStringEncodingASCII)) { _nl_locale_name_canonicalize (buf); strcpy (p, buf); p += strlen (buf); *p++ = ':'; if (strcmp (buf, "en") == 0) break; } else break; } *--p = '\0'; cached_languages = languages; } } } cache_initialized = 1; } if (cached_languages != NULL) return cached_languages; } #endif #ifdef WIN32_NATIVE { /* Cache the preferences list, since computing it is expensive. */ static const char *cached_languages; static int cache_initialized; /* Activate the new code only when the GETTEXT_MUI environment variable is set, for the time being, since the new code is not well tested. */ if (!cache_initialized && getenv ("GETTEXT_MUI") != NULL) { const char *languages = NULL; HMODULE kernel32 = GetModuleHandle ("kernel32"); if (kernel32 != NULL) languages = _nl_language_preferences_win32_mui (kernel32); if (languages == NULL && kernel32 != NULL) languages = _nl_language_preferences_win32_ME (kernel32); if (languages == NULL) languages = _nl_language_preferences_win32_95 (); if (languages == NULL && kernel32 != NULL) languages = _nl_language_preferences_win32_system (kernel32); cached_languages = languages; cache_initialized = 1; } if (cached_languages != NULL) return cached_languages; } #endif return NULL; } gliv-1.9.7/intl/localename.c0000644000076400007640000025072011465576131013170 0ustar gg/* Determine name of the currently selected locale. Copyright (C) 1995-1999, 2000-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Written by Ulrich Drepper , 1995. */ /* Win32 code written by Tor Lillqvist . */ /* MacOS X code written by Bruno Haible . */ #include /* Specification. */ #ifdef IN_LIBINTL # include "gettextP.h" #else # include "localename.h" #endif #include #include #include #include #include #if HAVE_USELOCALE /* MacOS X 10.5 defines the locale_t type in . */ # if defined __APPLE__ && defined __MACH__ # include # endif # include # if !defined IN_LIBINTL # include "glthread/lock.h" # endif #endif #if HAVE_CFLOCALECOPYCURRENT || HAVE_CFPREFERENCESCOPYAPPVALUE # include # if HAVE_CFLOCALECOPYCURRENT # include # elif HAVE_CFPREFERENCESCOPYAPPVALUE # include # endif #endif #if defined _WIN32 || defined __WIN32__ # define WIN32_NATIVE #endif #if defined WIN32_NATIVE || defined __CYGWIN__ /* WIN32 or Cygwin */ # define WIN32_LEAN_AND_MEAN # include /* List of language codes, sorted by value: 0x01 LANG_ARABIC 0x02 LANG_BULGARIAN 0x03 LANG_CATALAN 0x04 LANG_CHINESE 0x05 LANG_CZECH 0x06 LANG_DANISH 0x07 LANG_GERMAN 0x08 LANG_GREEK 0x09 LANG_ENGLISH 0x0a LANG_SPANISH 0x0b LANG_FINNISH 0x0c LANG_FRENCH 0x0d LANG_HEBREW 0x0e LANG_HUNGARIAN 0x0f LANG_ICELANDIC 0x10 LANG_ITALIAN 0x11 LANG_JAPANESE 0x12 LANG_KOREAN 0x13 LANG_DUTCH 0x14 LANG_NORWEGIAN 0x15 LANG_POLISH 0x16 LANG_PORTUGUESE 0x17 LANG_ROMANSH 0x18 LANG_ROMANIAN 0x19 LANG_RUSSIAN 0x1a LANG_CROATIAN == LANG_SERBIAN 0x1b LANG_SLOVAK 0x1c LANG_ALBANIAN 0x1d LANG_SWEDISH 0x1e LANG_THAI 0x1f LANG_TURKISH 0x20 LANG_URDU 0x21 LANG_INDONESIAN 0x22 LANG_UKRAINIAN 0x23 LANG_BELARUSIAN 0x24 LANG_SLOVENIAN 0x25 LANG_ESTONIAN 0x26 LANG_LATVIAN 0x27 LANG_LITHUANIAN 0x28 LANG_TAJIK 0x29 LANG_FARSI 0x2a LANG_VIETNAMESE 0x2b LANG_ARMENIAN 0x2c LANG_AZERI 0x2d LANG_BASQUE 0x2e LANG_SORBIAN 0x2f LANG_MACEDONIAN 0x30 LANG_SUTU 0x31 LANG_TSONGA 0x32 LANG_TSWANA 0x33 LANG_VENDA 0x34 LANG_XHOSA 0x35 LANG_ZULU 0x36 LANG_AFRIKAANS 0x37 LANG_GEORGIAN 0x38 LANG_FAEROESE 0x39 LANG_HINDI 0x3a LANG_MALTESE 0x3b LANG_SAMI 0x3c LANG_GAELIC 0x3d LANG_YIDDISH 0x3e LANG_MALAY 0x3f LANG_KAZAK 0x40 LANG_KYRGYZ 0x41 LANG_SWAHILI 0x42 LANG_TURKMEN 0x43 LANG_UZBEK 0x44 LANG_TATAR 0x45 LANG_BENGALI 0x46 LANG_PUNJABI 0x47 LANG_GUJARATI 0x48 LANG_ORIYA 0x49 LANG_TAMIL 0x4a LANG_TELUGU 0x4b LANG_KANNADA 0x4c LANG_MALAYALAM 0x4d LANG_ASSAMESE 0x4e LANG_MARATHI 0x4f LANG_SANSKRIT 0x50 LANG_MONGOLIAN 0x51 LANG_TIBETAN 0x52 LANG_WELSH 0x53 LANG_CAMBODIAN 0x54 LANG_LAO 0x55 LANG_BURMESE 0x56 LANG_GALICIAN 0x57 LANG_KONKANI 0x58 LANG_MANIPURI 0x59 LANG_SINDHI 0x5a LANG_SYRIAC 0x5b LANG_SINHALESE 0x5c LANG_CHEROKEE 0x5d LANG_INUKTITUT 0x5e LANG_AMHARIC 0x5f LANG_TAMAZIGHT 0x60 LANG_KASHMIRI 0x61 LANG_NEPALI 0x62 LANG_FRISIAN 0x63 LANG_PASHTO 0x64 LANG_TAGALOG 0x65 LANG_DIVEHI 0x66 LANG_EDO 0x67 LANG_FULFULDE 0x68 LANG_HAUSA 0x69 LANG_IBIBIO 0x6a LANG_YORUBA 0x6d LANG_BASHKIR 0x6e LANG_LUXEMBOURGISH 0x6f LANG_GREENLANDIC 0x70 LANG_IGBO 0x71 LANG_KANURI 0x72 LANG_OROMO 0x73 LANG_TIGRINYA 0x74 LANG_GUARANI 0x75 LANG_HAWAIIAN 0x76 LANG_LATIN 0x77 LANG_SOMALI 0x78 LANG_YI 0x79 LANG_PAPIAMENTU 0x7a LANG_MAPUDUNGUN 0x7c LANG_MOHAWK 0x7e LANG_BRETON 0x82 LANG_OCCITAN 0x83 LANG_CORSICAN 0x84 LANG_ALSATIAN 0x85 LANG_YAKUT 0x86 LANG_KICHE 0x87 LANG_KINYARWANDA 0x88 LANG_WOLOF 0x8c LANG_DARI 0x91 LANG_SCOTTISH_GAELIC */ /* Mingw headers don't have latest language and sublanguage codes. */ # ifndef LANG_AFRIKAANS # define LANG_AFRIKAANS 0x36 # endif # ifndef LANG_ALBANIAN # define LANG_ALBANIAN 0x1c # endif # ifndef LANG_ALSATIAN # define LANG_ALSATIAN 0x84 # endif # ifndef LANG_AMHARIC # define LANG_AMHARIC 0x5e # endif # ifndef LANG_ARABIC # define LANG_ARABIC 0x01 # endif # ifndef LANG_ARMENIAN # define LANG_ARMENIAN 0x2b # endif # ifndef LANG_ASSAMESE # define LANG_ASSAMESE 0x4d # endif # ifndef LANG_AZERI # define LANG_AZERI 0x2c # endif # ifndef LANG_BASHKIR # define LANG_BASHKIR 0x6d # endif # ifndef LANG_BASQUE # define LANG_BASQUE 0x2d # endif # ifndef LANG_BELARUSIAN # define LANG_BELARUSIAN 0x23 # endif # ifndef LANG_BENGALI # define LANG_BENGALI 0x45 # endif # ifndef LANG_BRETON # define LANG_BRETON 0x7e # endif # ifndef LANG_BURMESE # define LANG_BURMESE 0x55 # endif # ifndef LANG_CAMBODIAN # define LANG_CAMBODIAN 0x53 # endif # ifndef LANG_CATALAN # define LANG_CATALAN 0x03 # endif # ifndef LANG_CHEROKEE # define LANG_CHEROKEE 0x5c # endif # ifndef LANG_CORSICAN # define LANG_CORSICAN 0x83 # endif # ifndef LANG_DARI # define LANG_DARI 0x8c # endif # ifndef LANG_DIVEHI # define LANG_DIVEHI 0x65 # endif # ifndef LANG_EDO # define LANG_EDO 0x66 # endif # ifndef LANG_ESTONIAN # define LANG_ESTONIAN 0x25 # endif # ifndef LANG_FAEROESE # define LANG_FAEROESE 0x38 # endif # ifndef LANG_FARSI # define LANG_FARSI 0x29 # endif # ifndef LANG_FRISIAN # define LANG_FRISIAN 0x62 # endif # ifndef LANG_FULFULDE # define LANG_FULFULDE 0x67 # endif # ifndef LANG_GAELIC # define LANG_GAELIC 0x3c # endif # ifndef LANG_GALICIAN # define LANG_GALICIAN 0x56 # endif # ifndef LANG_GEORGIAN # define LANG_GEORGIAN 0x37 # endif # ifndef LANG_GREENLANDIC # define LANG_GREENLANDIC 0x6f # endif # ifndef LANG_GUARANI # define LANG_GUARANI 0x74 # endif # ifndef LANG_GUJARATI # define LANG_GUJARATI 0x47 # endif # ifndef LANG_HAUSA # define LANG_HAUSA 0x68 # endif # ifndef LANG_HAWAIIAN # define LANG_HAWAIIAN 0x75 # endif # ifndef LANG_HEBREW # define LANG_HEBREW 0x0d # endif # ifndef LANG_HINDI # define LANG_HINDI 0x39 # endif # ifndef LANG_IBIBIO # define LANG_IBIBIO 0x69 # endif # ifndef LANG_IGBO # define LANG_IGBO 0x70 # endif # ifndef LANG_INDONESIAN # define LANG_INDONESIAN 0x21 # endif # ifndef LANG_INUKTITUT # define LANG_INUKTITUT 0x5d # endif # ifndef LANG_KANNADA # define LANG_KANNADA 0x4b # endif # ifndef LANG_KANURI # define LANG_KANURI 0x71 # endif # ifndef LANG_KASHMIRI # define LANG_KASHMIRI 0x60 # endif # ifndef LANG_KAZAK # define LANG_KAZAK 0x3f # endif # ifndef LANG_KICHE # define LANG_KICHE 0x86 # endif # ifndef LANG_KINYARWANDA # define LANG_KINYARWANDA 0x87 # endif # ifndef LANG_KONKANI # define LANG_KONKANI 0x57 # endif # ifndef LANG_KYRGYZ # define LANG_KYRGYZ 0x40 # endif # ifndef LANG_LAO # define LANG_LAO 0x54 # endif # ifndef LANG_LATIN # define LANG_LATIN 0x76 # endif # ifndef LANG_LATVIAN # define LANG_LATVIAN 0x26 # endif # ifndef LANG_LITHUANIAN # define LANG_LITHUANIAN 0x27 # endif # ifndef LANG_LUXEMBOURGISH # define LANG_LUXEMBOURGISH 0x6e # endif # ifndef LANG_MACEDONIAN # define LANG_MACEDONIAN 0x2f # endif # ifndef LANG_MALAY # define LANG_MALAY 0x3e # endif # ifndef LANG_MALAYALAM # define LANG_MALAYALAM 0x4c # endif # ifndef LANG_MALTESE # define LANG_MALTESE 0x3a # endif # ifndef LANG_MANIPURI # define LANG_MANIPURI 0x58 # endif # ifndef LANG_MAORI # define LANG_MAORI 0x81 # endif # ifndef LANG_MAPUDUNGUN # define LANG_MAPUDUNGUN 0x7a # endif # ifndef LANG_MARATHI # define LANG_MARATHI 0x4e # endif # ifndef LANG_MOHAWK # define LANG_MOHAWK 0x7c # endif # ifndef LANG_MONGOLIAN # define LANG_MONGOLIAN 0x50 # endif # ifndef LANG_NEPALI # define LANG_NEPALI 0x61 # endif # ifndef LANG_OCCITAN # define LANG_OCCITAN 0x82 # endif # ifndef LANG_ORIYA # define LANG_ORIYA 0x48 # endif # ifndef LANG_OROMO # define LANG_OROMO 0x72 # endif # ifndef LANG_PAPIAMENTU # define LANG_PAPIAMENTU 0x79 # endif # ifndef LANG_PASHTO # define LANG_PASHTO 0x63 # endif # ifndef LANG_PUNJABI # define LANG_PUNJABI 0x46 # endif # ifndef LANG_QUECHUA # define LANG_QUECHUA 0x6b # endif # ifndef LANG_ROMANSH # define LANG_ROMANSH 0x17 # endif # ifndef LANG_SAMI # define LANG_SAMI 0x3b # endif # ifndef LANG_SANSKRIT # define LANG_SANSKRIT 0x4f # endif # ifndef LANG_SCOTTISH_GAELIC # define LANG_SCOTTISH_GAELIC 0x91 # endif # ifndef LANG_SERBIAN # define LANG_SERBIAN 0x1a # endif # ifndef LANG_SINDHI # define LANG_SINDHI 0x59 # endif # ifndef LANG_SINHALESE # define LANG_SINHALESE 0x5b # endif # ifndef LANG_SLOVAK # define LANG_SLOVAK 0x1b # endif # ifndef LANG_SOMALI # define LANG_SOMALI 0x77 # endif # ifndef LANG_SORBIAN # define LANG_SORBIAN 0x2e # endif # ifndef LANG_SOTHO # define LANG_SOTHO 0x6c # endif # ifndef LANG_SUTU # define LANG_SUTU 0x30 # endif # ifndef LANG_SWAHILI # define LANG_SWAHILI 0x41 # endif # ifndef LANG_SYRIAC # define LANG_SYRIAC 0x5a # endif # ifndef LANG_TAGALOG # define LANG_TAGALOG 0x64 # endif # ifndef LANG_TAJIK # define LANG_TAJIK 0x28 # endif # ifndef LANG_TAMAZIGHT # define LANG_TAMAZIGHT 0x5f # endif # ifndef LANG_TAMIL # define LANG_TAMIL 0x49 # endif # ifndef LANG_TATAR # define LANG_TATAR 0x44 # endif # ifndef LANG_TELUGU # define LANG_TELUGU 0x4a # endif # ifndef LANG_THAI # define LANG_THAI 0x1e # endif # ifndef LANG_TIBETAN # define LANG_TIBETAN 0x51 # endif # ifndef LANG_TIGRINYA # define LANG_TIGRINYA 0x73 # endif # ifndef LANG_TSONGA # define LANG_TSONGA 0x31 # endif # ifndef LANG_TSWANA # define LANG_TSWANA 0x32 # endif # ifndef LANG_TURKMEN # define LANG_TURKMEN 0x42 # endif # ifndef LANG_UIGHUR # define LANG_UIGHUR 0x80 # endif # ifndef LANG_UKRAINIAN # define LANG_UKRAINIAN 0x22 # endif # ifndef LANG_URDU # define LANG_URDU 0x20 # endif # ifndef LANG_UZBEK # define LANG_UZBEK 0x43 # endif # ifndef LANG_VENDA # define LANG_VENDA 0x33 # endif # ifndef LANG_VIETNAMESE # define LANG_VIETNAMESE 0x2a # endif # ifndef LANG_WELSH # define LANG_WELSH 0x52 # endif # ifndef LANG_WOLOF # define LANG_WOLOF 0x88 # endif # ifndef LANG_XHOSA # define LANG_XHOSA 0x34 # endif # ifndef LANG_YAKUT # define LANG_YAKUT 0x85 # endif # ifndef LANG_YI # define LANG_YI 0x78 # endif # ifndef LANG_YIDDISH # define LANG_YIDDISH 0x3d # endif # ifndef LANG_YORUBA # define LANG_YORUBA 0x6a # endif # ifndef LANG_ZULU # define LANG_ZULU 0x35 # endif # ifndef SUBLANG_AFRIKAANS_SOUTH_AFRICA # define SUBLANG_AFRIKAANS_SOUTH_AFRICA 0x01 # endif # ifndef SUBLANG_ALBANIAN_ALBANIA # define SUBLANG_ALBANIAN_ALBANIA 0x01 # endif # ifndef SUBLANG_ALSATIAN_FRANCE # define SUBLANG_ALSATIAN_FRANCE 0x01 # endif # ifndef SUBLANG_AMHARIC_ETHIOPIA # define SUBLANG_AMHARIC_ETHIOPIA 0x01 # endif # ifndef SUBLANG_ARABIC_SAUDI_ARABIA # define SUBLANG_ARABIC_SAUDI_ARABIA 0x01 # endif # ifndef SUBLANG_ARABIC_IRAQ # define SUBLANG_ARABIC_IRAQ 0x02 # endif # ifndef SUBLANG_ARABIC_EGYPT # define SUBLANG_ARABIC_EGYPT 0x03 # endif # ifndef SUBLANG_ARABIC_LIBYA # define SUBLANG_ARABIC_LIBYA 0x04 # endif # ifndef SUBLANG_ARABIC_ALGERIA # define SUBLANG_ARABIC_ALGERIA 0x05 # endif # ifndef SUBLANG_ARABIC_MOROCCO # define SUBLANG_ARABIC_MOROCCO 0x06 # endif # ifndef SUBLANG_ARABIC_TUNISIA # define SUBLANG_ARABIC_TUNISIA 0x07 # endif # ifndef SUBLANG_ARABIC_OMAN # define SUBLANG_ARABIC_OMAN 0x08 # endif # ifndef SUBLANG_ARABIC_YEMEN # define SUBLANG_ARABIC_YEMEN 0x09 # endif # ifndef SUBLANG_ARABIC_SYRIA # define SUBLANG_ARABIC_SYRIA 0x0a # endif # ifndef SUBLANG_ARABIC_JORDAN # define SUBLANG_ARABIC_JORDAN 0x0b # endif # ifndef SUBLANG_ARABIC_LEBANON # define SUBLANG_ARABIC_LEBANON 0x0c # endif # ifndef SUBLANG_ARABIC_KUWAIT # define SUBLANG_ARABIC_KUWAIT 0x0d # endif # ifndef SUBLANG_ARABIC_UAE # define SUBLANG_ARABIC_UAE 0x0e # endif # ifndef SUBLANG_ARABIC_BAHRAIN # define SUBLANG_ARABIC_BAHRAIN 0x0f # endif # ifndef SUBLANG_ARABIC_QATAR # define SUBLANG_ARABIC_QATAR 0x10 # endif # ifndef SUBLANG_ARMENIAN_ARMENIA # define SUBLANG_ARMENIAN_ARMENIA 0x01 # endif # ifndef SUBLANG_ASSAMESE_INDIA # define SUBLANG_ASSAMESE_INDIA 0x01 # endif # ifndef SUBLANG_AZERI_LATIN # define SUBLANG_AZERI_LATIN 0x01 # endif # ifndef SUBLANG_AZERI_CYRILLIC # define SUBLANG_AZERI_CYRILLIC 0x02 # endif # ifndef SUBLANG_BASHKIR_RUSSIA # define SUBLANG_BASHKIR_RUSSIA 0x01 # endif # ifndef SUBLANG_BASQUE_BASQUE # define SUBLANG_BASQUE_BASQUE 0x01 # endif # ifndef SUBLANG_BELARUSIAN_BELARUS # define SUBLANG_BELARUSIAN_BELARUS 0x01 # endif # ifndef SUBLANG_BENGALI_INDIA # define SUBLANG_BENGALI_INDIA 0x01 # endif # ifndef SUBLANG_BENGALI_BANGLADESH # define SUBLANG_BENGALI_BANGLADESH 0x02 # endif # ifndef SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN # define SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN 0x05 # endif # ifndef SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC # define SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC 0x08 # endif # ifndef SUBLANG_BRETON_FRANCE # define SUBLANG_BRETON_FRANCE 0x01 # endif # ifndef SUBLANG_BULGARIAN_BULGARIA # define SUBLANG_BULGARIAN_BULGARIA 0x01 # endif # ifndef SUBLANG_CAMBODIAN_CAMBODIA # define SUBLANG_CAMBODIAN_CAMBODIA 0x01 # endif # ifndef SUBLANG_CATALAN_SPAIN # define SUBLANG_CATALAN_SPAIN 0x01 # endif # ifndef SUBLANG_CORSICAN_FRANCE # define SUBLANG_CORSICAN_FRANCE 0x01 # endif # ifndef SUBLANG_CROATIAN_CROATIA # define SUBLANG_CROATIAN_CROATIA 0x01 # endif # ifndef SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN # define SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN 0x04 # endif # ifndef SUBLANG_CHINESE_MACAU # define SUBLANG_CHINESE_MACAU 0x05 # endif # ifndef SUBLANG_CZECH_CZECH_REPUBLIC # define SUBLANG_CZECH_CZECH_REPUBLIC 0x01 # endif # ifndef SUBLANG_DANISH_DENMARK # define SUBLANG_DANISH_DENMARK 0x01 # endif # ifndef SUBLANG_DARI_AFGHANISTAN # define SUBLANG_DARI_AFGHANISTAN 0x01 # endif # ifndef SUBLANG_DIVEHI_MALDIVES # define SUBLANG_DIVEHI_MALDIVES 0x01 # endif # ifndef SUBLANG_DUTCH_SURINAM # define SUBLANG_DUTCH_SURINAM 0x03 # endif # ifndef SUBLANG_ENGLISH_SOUTH_AFRICA # define SUBLANG_ENGLISH_SOUTH_AFRICA 0x07 # endif # ifndef SUBLANG_ENGLISH_JAMAICA # define SUBLANG_ENGLISH_JAMAICA 0x08 # endif # ifndef SUBLANG_ENGLISH_CARIBBEAN # define SUBLANG_ENGLISH_CARIBBEAN 0x09 # endif # ifndef SUBLANG_ENGLISH_BELIZE # define SUBLANG_ENGLISH_BELIZE 0x0a # endif # ifndef SUBLANG_ENGLISH_TRINIDAD # define SUBLANG_ENGLISH_TRINIDAD 0x0b # endif # ifndef SUBLANG_ENGLISH_ZIMBABWE # define SUBLANG_ENGLISH_ZIMBABWE 0x0c # endif # ifndef SUBLANG_ENGLISH_PHILIPPINES # define SUBLANG_ENGLISH_PHILIPPINES 0x0d # endif # ifndef SUBLANG_ENGLISH_INDONESIA # define SUBLANG_ENGLISH_INDONESIA 0x0e # endif # ifndef SUBLANG_ENGLISH_HONGKONG # define SUBLANG_ENGLISH_HONGKONG 0x0f # endif # ifndef SUBLANG_ENGLISH_INDIA # define SUBLANG_ENGLISH_INDIA 0x10 # endif # ifndef SUBLANG_ENGLISH_MALAYSIA # define SUBLANG_ENGLISH_MALAYSIA 0x11 # endif # ifndef SUBLANG_ENGLISH_SINGAPORE # define SUBLANG_ENGLISH_SINGAPORE 0x12 # endif # ifndef SUBLANG_ESTONIAN_ESTONIA # define SUBLANG_ESTONIAN_ESTONIA 0x01 # endif # ifndef SUBLANG_FAEROESE_FAROE_ISLANDS # define SUBLANG_FAEROESE_FAROE_ISLANDS 0x01 # endif # ifndef SUBLANG_FARSI_IRAN # define SUBLANG_FARSI_IRAN 0x01 # endif # ifndef SUBLANG_FINNISH_FINLAND # define SUBLANG_FINNISH_FINLAND 0x01 # endif # ifndef SUBLANG_FRENCH_LUXEMBOURG # define SUBLANG_FRENCH_LUXEMBOURG 0x05 # endif # ifndef SUBLANG_FRENCH_MONACO # define SUBLANG_FRENCH_MONACO 0x06 # endif # ifndef SUBLANG_FRENCH_WESTINDIES # define SUBLANG_FRENCH_WESTINDIES 0x07 # endif # ifndef SUBLANG_FRENCH_REUNION # define SUBLANG_FRENCH_REUNION 0x08 # endif # ifndef SUBLANG_FRENCH_CONGO # define SUBLANG_FRENCH_CONGO 0x09 # endif # ifndef SUBLANG_FRENCH_SENEGAL # define SUBLANG_FRENCH_SENEGAL 0x0a # endif # ifndef SUBLANG_FRENCH_CAMEROON # define SUBLANG_FRENCH_CAMEROON 0x0b # endif # ifndef SUBLANG_FRENCH_COTEDIVOIRE # define SUBLANG_FRENCH_COTEDIVOIRE 0x0c # endif # ifndef SUBLANG_FRENCH_MALI # define SUBLANG_FRENCH_MALI 0x0d # endif # ifndef SUBLANG_FRENCH_MOROCCO # define SUBLANG_FRENCH_MOROCCO 0x0e # endif # ifndef SUBLANG_FRENCH_HAITI # define SUBLANG_FRENCH_HAITI 0x0f # endif # ifndef SUBLANG_FRISIAN_NETHERLANDS # define SUBLANG_FRISIAN_NETHERLANDS 0x01 # endif # ifndef SUBLANG_GALICIAN_SPAIN # define SUBLANG_GALICIAN_SPAIN 0x01 # endif # ifndef SUBLANG_GEORGIAN_GEORGIA # define SUBLANG_GEORGIAN_GEORGIA 0x01 # endif # ifndef SUBLANG_GERMAN_LUXEMBOURG # define SUBLANG_GERMAN_LUXEMBOURG 0x04 # endif # ifndef SUBLANG_GERMAN_LIECHTENSTEIN # define SUBLANG_GERMAN_LIECHTENSTEIN 0x05 # endif # ifndef SUBLANG_GREEK_GREECE # define SUBLANG_GREEK_GREECE 0x01 # endif # ifndef SUBLANG_GREENLANDIC_GREENLAND # define SUBLANG_GREENLANDIC_GREENLAND 0x01 # endif # ifndef SUBLANG_GUJARATI_INDIA # define SUBLANG_GUJARATI_INDIA 0x01 # endif # ifndef SUBLANG_HAUSA_NIGERIA_LATIN # define SUBLANG_HAUSA_NIGERIA_LATIN 0x01 # endif # ifndef SUBLANG_HEBREW_ISRAEL # define SUBLANG_HEBREW_ISRAEL 0x01 # endif # ifndef SUBLANG_HINDI_INDIA # define SUBLANG_HINDI_INDIA 0x01 # endif # ifndef SUBLANG_HUNGARIAN_HUNGARY # define SUBLANG_HUNGARIAN_HUNGARY 0x01 # endif # ifndef SUBLANG_ICELANDIC_ICELAND # define SUBLANG_ICELANDIC_ICELAND 0x01 # endif # ifndef SUBLANG_IGBO_NIGERIA # define SUBLANG_IGBO_NIGERIA 0x01 # endif # ifndef SUBLANG_INDONESIAN_INDONESIA # define SUBLANG_INDONESIAN_INDONESIA 0x01 # endif # ifndef SUBLANG_INUKTITUT_CANADA # define SUBLANG_INUKTITUT_CANADA 0x01 # endif # undef SUBLANG_INUKTITUT_CANADA_LATIN # define SUBLANG_INUKTITUT_CANADA_LATIN 0x02 # undef SUBLANG_IRISH_IRELAND # define SUBLANG_IRISH_IRELAND 0x02 # ifndef SUBLANG_JAPANESE_JAPAN # define SUBLANG_JAPANESE_JAPAN 0x01 # endif # ifndef SUBLANG_KANNADA_INDIA # define SUBLANG_KANNADA_INDIA 0x01 # endif # ifndef SUBLANG_KASHMIRI_INDIA # define SUBLANG_KASHMIRI_INDIA 0x02 # endif # ifndef SUBLANG_KAZAK_KAZAKHSTAN # define SUBLANG_KAZAK_KAZAKHSTAN 0x01 # endif # ifndef SUBLANG_KICHE_GUATEMALA # define SUBLANG_KICHE_GUATEMALA 0x01 # endif # ifndef SUBLANG_KINYARWANDA_RWANDA # define SUBLANG_KINYARWANDA_RWANDA 0x01 # endif # ifndef SUBLANG_KONKANI_INDIA # define SUBLANG_KONKANI_INDIA 0x01 # endif # ifndef SUBLANG_KYRGYZ_KYRGYZSTAN # define SUBLANG_KYRGYZ_KYRGYZSTAN 0x01 # endif # ifndef SUBLANG_LAO_LAOS # define SUBLANG_LAO_LAOS 0x01 # endif # ifndef SUBLANG_LATVIAN_LATVIA # define SUBLANG_LATVIAN_LATVIA 0x01 # endif # ifndef SUBLANG_LITHUANIAN_LITHUANIA # define SUBLANG_LITHUANIAN_LITHUANIA 0x01 # endif # undef SUBLANG_LOWER_SORBIAN_GERMANY # define SUBLANG_LOWER_SORBIAN_GERMANY 0x02 # ifndef SUBLANG_LUXEMBOURGISH_LUXEMBOURG # define SUBLANG_LUXEMBOURGISH_LUXEMBOURG 0x01 # endif # ifndef SUBLANG_MACEDONIAN_MACEDONIA # define SUBLANG_MACEDONIAN_MACEDONIA 0x01 # endif # ifndef SUBLANG_MALAY_MALAYSIA # define SUBLANG_MALAY_MALAYSIA 0x01 # endif # ifndef SUBLANG_MALAY_BRUNEI_DARUSSALAM # define SUBLANG_MALAY_BRUNEI_DARUSSALAM 0x02 # endif # ifndef SUBLANG_MALAYALAM_INDIA # define SUBLANG_MALAYALAM_INDIA 0x01 # endif # ifndef SUBLANG_MALTESE_MALTA # define SUBLANG_MALTESE_MALTA 0x01 # endif # ifndef SUBLANG_MAORI_NEW_ZEALAND # define SUBLANG_MAORI_NEW_ZEALAND 0x01 # endif # ifndef SUBLANG_MAPUDUNGUN_CHILE # define SUBLANG_MAPUDUNGUN_CHILE 0x01 # endif # ifndef SUBLANG_MARATHI_INDIA # define SUBLANG_MARATHI_INDIA 0x01 # endif # ifndef SUBLANG_MOHAWK_CANADA # define SUBLANG_MOHAWK_CANADA 0x01 # endif # ifndef SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA # define SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA 0x01 # endif # ifndef SUBLANG_MONGOLIAN_PRC # define SUBLANG_MONGOLIAN_PRC 0x02 # endif # ifndef SUBLANG_NEPALI_NEPAL # define SUBLANG_NEPALI_NEPAL 0x01 # endif # ifndef SUBLANG_NEPALI_INDIA # define SUBLANG_NEPALI_INDIA 0x02 # endif # ifndef SUBLANG_OCCITAN_FRANCE # define SUBLANG_OCCITAN_FRANCE 0x01 # endif # ifndef SUBLANG_ORIYA_INDIA # define SUBLANG_ORIYA_INDIA 0x01 # endif # ifndef SUBLANG_PASHTO_AFGHANISTAN # define SUBLANG_PASHTO_AFGHANISTAN 0x01 # endif # ifndef SUBLANG_POLISH_POLAND # define SUBLANG_POLISH_POLAND 0x01 # endif # ifndef SUBLANG_PUNJABI_INDIA # define SUBLANG_PUNJABI_INDIA 0x01 # endif # ifndef SUBLANG_PUNJABI_PAKISTAN # define SUBLANG_PUNJABI_PAKISTAN 0x02 # endif # ifndef SUBLANG_QUECHUA_BOLIVIA # define SUBLANG_QUECHUA_BOLIVIA 0x01 # endif # ifndef SUBLANG_QUECHUA_ECUADOR # define SUBLANG_QUECHUA_ECUADOR 0x02 # endif # ifndef SUBLANG_QUECHUA_PERU # define SUBLANG_QUECHUA_PERU 0x03 # endif # ifndef SUBLANG_ROMANIAN_ROMANIA # define SUBLANG_ROMANIAN_ROMANIA 0x01 # endif # ifndef SUBLANG_ROMANIAN_MOLDOVA # define SUBLANG_ROMANIAN_MOLDOVA 0x02 # endif # ifndef SUBLANG_ROMANSH_SWITZERLAND # define SUBLANG_ROMANSH_SWITZERLAND 0x01 # endif # ifndef SUBLANG_RUSSIAN_RUSSIA # define SUBLANG_RUSSIAN_RUSSIA 0x01 # endif # ifndef SUBLANG_RUSSIAN_MOLDAVIA # define SUBLANG_RUSSIAN_MOLDAVIA 0x02 # endif # ifndef SUBLANG_SAMI_NORTHERN_NORWAY # define SUBLANG_SAMI_NORTHERN_NORWAY 0x01 # endif # ifndef SUBLANG_SAMI_NORTHERN_SWEDEN # define SUBLANG_SAMI_NORTHERN_SWEDEN 0x02 # endif # ifndef SUBLANG_SAMI_NORTHERN_FINLAND # define SUBLANG_SAMI_NORTHERN_FINLAND 0x03 # endif # ifndef SUBLANG_SAMI_LULE_NORWAY # define SUBLANG_SAMI_LULE_NORWAY 0x04 # endif # ifndef SUBLANG_SAMI_LULE_SWEDEN # define SUBLANG_SAMI_LULE_SWEDEN 0x05 # endif # ifndef SUBLANG_SAMI_SOUTHERN_NORWAY # define SUBLANG_SAMI_SOUTHERN_NORWAY 0x06 # endif # ifndef SUBLANG_SAMI_SOUTHERN_SWEDEN # define SUBLANG_SAMI_SOUTHERN_SWEDEN 0x07 # endif # undef SUBLANG_SAMI_SKOLT_FINLAND # define SUBLANG_SAMI_SKOLT_FINLAND 0x08 # undef SUBLANG_SAMI_INARI_FINLAND # define SUBLANG_SAMI_INARI_FINLAND 0x09 # ifndef SUBLANG_SANSKRIT_INDIA # define SUBLANG_SANSKRIT_INDIA 0x01 # endif # ifndef SUBLANG_SERBIAN_LATIN # define SUBLANG_SERBIAN_LATIN 0x02 # endif # ifndef SUBLANG_SERBIAN_CYRILLIC # define SUBLANG_SERBIAN_CYRILLIC 0x03 # endif # ifndef SUBLANG_SINDHI_INDIA # define SUBLANG_SINDHI_INDIA 0x01 # endif # undef SUBLANG_SINDHI_PAKISTAN # define SUBLANG_SINDHI_PAKISTAN 0x02 # ifndef SUBLANG_SINDHI_AFGHANISTAN # define SUBLANG_SINDHI_AFGHANISTAN 0x02 # endif # ifndef SUBLANG_SINHALESE_SRI_LANKA # define SUBLANG_SINHALESE_SRI_LANKA 0x01 # endif # ifndef SUBLANG_SLOVAK_SLOVAKIA # define SUBLANG_SLOVAK_SLOVAKIA 0x01 # endif # ifndef SUBLANG_SLOVENIAN_SLOVENIA # define SUBLANG_SLOVENIAN_SLOVENIA 0x01 # endif # ifndef SUBLANG_SOTHO_SOUTH_AFRICA # define SUBLANG_SOTHO_SOUTH_AFRICA 0x01 # endif # ifndef SUBLANG_SPANISH_GUATEMALA # define SUBLANG_SPANISH_GUATEMALA 0x04 # endif # ifndef SUBLANG_SPANISH_COSTA_RICA # define SUBLANG_SPANISH_COSTA_RICA 0x05 # endif # ifndef SUBLANG_SPANISH_PANAMA # define SUBLANG_SPANISH_PANAMA 0x06 # endif # ifndef SUBLANG_SPANISH_DOMINICAN_REPUBLIC # define SUBLANG_SPANISH_DOMINICAN_REPUBLIC 0x07 # endif # ifndef SUBLANG_SPANISH_VENEZUELA # define SUBLANG_SPANISH_VENEZUELA 0x08 # endif # ifndef SUBLANG_SPANISH_COLOMBIA # define SUBLANG_SPANISH_COLOMBIA 0x09 # endif # ifndef SUBLANG_SPANISH_PERU # define SUBLANG_SPANISH_PERU 0x0a # endif # ifndef SUBLANG_SPANISH_ARGENTINA # define SUBLANG_SPANISH_ARGENTINA 0x0b # endif # ifndef SUBLANG_SPANISH_ECUADOR # define SUBLANG_SPANISH_ECUADOR 0x0c # endif # ifndef SUBLANG_SPANISH_CHILE # define SUBLANG_SPANISH_CHILE 0x0d # endif # ifndef SUBLANG_SPANISH_URUGUAY # define SUBLANG_SPANISH_URUGUAY 0x0e # endif # ifndef SUBLANG_SPANISH_PARAGUAY # define SUBLANG_SPANISH_PARAGUAY 0x0f # endif # ifndef SUBLANG_SPANISH_BOLIVIA # define SUBLANG_SPANISH_BOLIVIA 0x10 # endif # ifndef SUBLANG_SPANISH_EL_SALVADOR # define SUBLANG_SPANISH_EL_SALVADOR 0x11 # endif # ifndef SUBLANG_SPANISH_HONDURAS # define SUBLANG_SPANISH_HONDURAS 0x12 # endif # ifndef SUBLANG_SPANISH_NICARAGUA # define SUBLANG_SPANISH_NICARAGUA 0x13 # endif # ifndef SUBLANG_SPANISH_PUERTO_RICO # define SUBLANG_SPANISH_PUERTO_RICO 0x14 # endif # ifndef SUBLANG_SPANISH_US # define SUBLANG_SPANISH_US 0x15 # endif # ifndef SUBLANG_SWAHILI_KENYA # define SUBLANG_SWAHILI_KENYA 0x01 # endif # ifndef SUBLANG_SWEDISH_SWEDEN # define SUBLANG_SWEDISH_SWEDEN 0x01 # endif # ifndef SUBLANG_SWEDISH_FINLAND # define SUBLANG_SWEDISH_FINLAND 0x02 # endif # ifndef SUBLANG_SYRIAC_SYRIA # define SUBLANG_SYRIAC_SYRIA 0x01 # endif # ifndef SUBLANG_TAGALOG_PHILIPPINES # define SUBLANG_TAGALOG_PHILIPPINES 0x01 # endif # ifndef SUBLANG_TAJIK_TAJIKISTAN # define SUBLANG_TAJIK_TAJIKISTAN 0x01 # endif # ifndef SUBLANG_TAMAZIGHT_ARABIC # define SUBLANG_TAMAZIGHT_ARABIC 0x01 # endif # ifndef SUBLANG_TAMAZIGHT_ALGERIA_LATIN # define SUBLANG_TAMAZIGHT_ALGERIA_LATIN 0x02 # endif # ifndef SUBLANG_TAMIL_INDIA # define SUBLANG_TAMIL_INDIA 0x01 # endif # ifndef SUBLANG_TATAR_RUSSIA # define SUBLANG_TATAR_RUSSIA 0x01 # endif # ifndef SUBLANG_TELUGU_INDIA # define SUBLANG_TELUGU_INDIA 0x01 # endif # ifndef SUBLANG_THAI_THAILAND # define SUBLANG_THAI_THAILAND 0x01 # endif # ifndef SUBLANG_TIBETAN_PRC # define SUBLANG_TIBETAN_PRC 0x01 # endif # undef SUBLANG_TIBETAN_BHUTAN # define SUBLANG_TIBETAN_BHUTAN 0x02 # ifndef SUBLANG_TIGRINYA_ETHIOPIA # define SUBLANG_TIGRINYA_ETHIOPIA 0x01 # endif # ifndef SUBLANG_TIGRINYA_ERITREA # define SUBLANG_TIGRINYA_ERITREA 0x02 # endif # ifndef SUBLANG_TSWANA_SOUTH_AFRICA # define SUBLANG_TSWANA_SOUTH_AFRICA 0x01 # endif # ifndef SUBLANG_TURKISH_TURKEY # define SUBLANG_TURKISH_TURKEY 0x01 # endif # ifndef SUBLANG_TURKMEN_TURKMENISTAN # define SUBLANG_TURKMEN_TURKMENISTAN 0x01 # endif # ifndef SUBLANG_UIGHUR_PRC # define SUBLANG_UIGHUR_PRC 0x01 # endif # ifndef SUBLANG_UKRAINIAN_UKRAINE # define SUBLANG_UKRAINIAN_UKRAINE 0x01 # endif # ifndef SUBLANG_UPPER_SORBIAN_GERMANY # define SUBLANG_UPPER_SORBIAN_GERMANY 0x01 # endif # ifndef SUBLANG_URDU_PAKISTAN # define SUBLANG_URDU_PAKISTAN 0x01 # endif # ifndef SUBLANG_URDU_INDIA # define SUBLANG_URDU_INDIA 0x02 # endif # ifndef SUBLANG_UZBEK_LATIN # define SUBLANG_UZBEK_LATIN 0x01 # endif # ifndef SUBLANG_UZBEK_CYRILLIC # define SUBLANG_UZBEK_CYRILLIC 0x02 # endif # ifndef SUBLANG_VIETNAMESE_VIETNAM # define SUBLANG_VIETNAMESE_VIETNAM 0x01 # endif # ifndef SUBLANG_WELSH_UNITED_KINGDOM # define SUBLANG_WELSH_UNITED_KINGDOM 0x01 # endif # ifndef SUBLANG_WOLOF_SENEGAL # define SUBLANG_WOLOF_SENEGAL 0x01 # endif # ifndef SUBLANG_XHOSA_SOUTH_AFRICA # define SUBLANG_XHOSA_SOUTH_AFRICA 0x01 # endif # ifndef SUBLANG_YAKUT_RUSSIA # define SUBLANG_YAKUT_RUSSIA 0x01 # endif # ifndef SUBLANG_YI_PRC # define SUBLANG_YI_PRC 0x01 # endif # ifndef SUBLANG_YORUBA_NIGERIA # define SUBLANG_YORUBA_NIGERIA 0x01 # endif # ifndef SUBLANG_ZULU_SOUTH_AFRICA # define SUBLANG_ZULU_SOUTH_AFRICA 0x01 # endif /* GetLocaleInfoA operations. */ # ifndef LOCALE_SNAME # define LOCALE_SNAME 0x5c # endif #endif #if HAVE_CFLOCALECOPYCURRENT || HAVE_CFPREFERENCESCOPYAPPVALUE /* MacOS X 10.2 or newer */ /* Canonicalize a MacOS X locale name to a Unix locale name. NAME is a sufficiently large buffer. On input, it contains the MacOS X locale name. On output, it contains the Unix locale name. */ # if !defined IN_LIBINTL static # endif void gl_locale_name_canonicalize (char *name) { /* This conversion is based on a posting by Deborah GoldSmith on 2005-03-08, http://lists.apple.com/archives/carbon-dev/2005/Mar/msg00293.html */ /* Convert legacy (NeXTstep inherited) English names to Unix (ISO 639 and ISO 3166) names. Prior to MacOS X 10.3, there is no API for doing this. Therefore we do it ourselves, using a table based on the results of the MacOS X 10.3.8 function CFLocaleCreateCanonicalLocaleIdentifierFromString(). */ typedef struct { const char legacy[21+1]; const char unixy[5+1]; } legacy_entry; static const legacy_entry legacy_table[] = { { "Afrikaans", "af" }, { "Albanian", "sq" }, { "Amharic", "am" }, { "Arabic", "ar" }, { "Armenian", "hy" }, { "Assamese", "as" }, { "Aymara", "ay" }, { "Azerbaijani", "az" }, { "Basque", "eu" }, { "Belarusian", "be" }, { "Belorussian", "be" }, { "Bengali", "bn" }, { "Brazilian Portugese", "pt_BR" }, { "Brazilian Portuguese", "pt_BR" }, { "Breton", "br" }, { "Bulgarian", "bg" }, { "Burmese", "my" }, { "Byelorussian", "be" }, { "Catalan", "ca" }, { "Chewa", "ny" }, { "Chichewa", "ny" }, { "Chinese", "zh" }, { "Chinese, Simplified", "zh_CN" }, { "Chinese, Traditional", "zh_TW" }, { "Chinese, Tradtional", "zh_TW" }, { "Croatian", "hr" }, { "Czech", "cs" }, { "Danish", "da" }, { "Dutch", "nl" }, { "Dzongkha", "dz" }, { "English", "en" }, { "Esperanto", "eo" }, { "Estonian", "et" }, { "Faroese", "fo" }, { "Farsi", "fa" }, { "Finnish", "fi" }, { "Flemish", "nl_BE" }, { "French", "fr" }, { "Galician", "gl" }, { "Gallegan", "gl" }, { "Georgian", "ka" }, { "German", "de" }, { "Greek", "el" }, { "Greenlandic", "kl" }, { "Guarani", "gn" }, { "Gujarati", "gu" }, { "Hawaiian", "haw" }, /* Yes, "haw", not "cpe". */ { "Hebrew", "he" }, { "Hindi", "hi" }, { "Hungarian", "hu" }, { "Icelandic", "is" }, { "Indonesian", "id" }, { "Inuktitut", "iu" }, { "Irish", "ga" }, { "Italian", "it" }, { "Japanese", "ja" }, { "Javanese", "jv" }, { "Kalaallisut", "kl" }, { "Kannada", "kn" }, { "Kashmiri", "ks" }, { "Kazakh", "kk" }, { "Khmer", "km" }, { "Kinyarwanda", "rw" }, { "Kirghiz", "ky" }, { "Korean", "ko" }, { "Kurdish", "ku" }, { "Latin", "la" }, { "Latvian", "lv" }, { "Lithuanian", "lt" }, { "Macedonian", "mk" }, { "Malagasy", "mg" }, { "Malay", "ms" }, { "Malayalam", "ml" }, { "Maltese", "mt" }, { "Manx", "gv" }, { "Marathi", "mr" }, { "Moldavian", "mo" }, { "Mongolian", "mn" }, { "Nepali", "ne" }, { "Norwegian", "nb" }, /* Yes, "nb", not the obsolete "no". */ { "Nyanja", "ny" }, { "Nynorsk", "nn" }, { "Oriya", "or" }, { "Oromo", "om" }, { "Panjabi", "pa" }, { "Pashto", "ps" }, { "Persian", "fa" }, { "Polish", "pl" }, { "Portuguese", "pt" }, { "Portuguese, Brazilian", "pt_BR" }, { "Punjabi", "pa" }, { "Pushto", "ps" }, { "Quechua", "qu" }, { "Romanian", "ro" }, { "Ruanda", "rw" }, { "Rundi", "rn" }, { "Russian", "ru" }, { "Sami", "se_NO" }, /* Not just "se". */ { "Sanskrit", "sa" }, { "Scottish", "gd" }, { "Serbian", "sr" }, { "Simplified Chinese", "zh_CN" }, { "Sindhi", "sd" }, { "Sinhalese", "si" }, { "Slovak", "sk" }, { "Slovenian", "sl" }, { "Somali", "so" }, { "Spanish", "es" }, { "Sundanese", "su" }, { "Swahili", "sw" }, { "Swedish", "sv" }, { "Tagalog", "tl" }, { "Tajik", "tg" }, { "Tajiki", "tg" }, { "Tamil", "ta" }, { "Tatar", "tt" }, { "Telugu", "te" }, { "Thai", "th" }, { "Tibetan", "bo" }, { "Tigrinya", "ti" }, { "Tongan", "to" }, { "Traditional Chinese", "zh_TW" }, { "Turkish", "tr" }, { "Turkmen", "tk" }, { "Uighur", "ug" }, { "Ukrainian", "uk" }, { "Urdu", "ur" }, { "Uzbek", "uz" }, { "Vietnamese", "vi" }, { "Welsh", "cy" }, { "Yiddish", "yi" } }; /* Convert new-style locale names with language tags (ISO 639 and ISO 15924) to Unix (ISO 639 and ISO 3166) names. */ typedef struct { const char langtag[7+1]; const char unixy[12+1]; } langtag_entry; static const langtag_entry langtag_table[] = { /* MacOS X has "az-Arab", "az-Cyrl", "az-Latn". The default script for az on Unix is Latin. */ { "az-Latn", "az" }, /* MacOS X has "ga-dots". Does not yet exist on Unix. */ { "ga-dots", "ga" }, /* MacOS X has "kk-Cyrl". Does not yet exist on Unix. */ /* MacOS X has "mn-Cyrl", "mn-Mong". The default script for mn on Unix is Cyrillic. */ { "mn-Cyrl", "mn" }, /* MacOS X has "ms-Arab", "ms-Latn". The default script for ms on Unix is Latin. */ { "ms-Latn", "ms" }, /* MacOS X has "tg-Cyrl". The default script for tg on Unix is Cyrillic. */ { "tg-Cyrl", "tg" }, /* MacOS X has "tk-Cyrl". Does not yet exist on Unix. */ /* MacOS X has "tt-Cyrl". The default script for tt on Unix is Cyrillic. */ { "tt-Cyrl", "tt" }, /* MacOS X has "zh-Hans", "zh-Hant". Country codes are used to distinguish these on Unix. */ { "zh-Hans", "zh_CN" }, { "zh-Hant", "zh_TW" } }; /* Convert script names (ISO 15924) to Unix conventions. See http://www.unicode.org/iso15924/iso15924-codes.html */ typedef struct { const char script[4+1]; const char unixy[9+1]; } script_entry; static const script_entry script_table[] = { { "Arab", "arabic" }, { "Cyrl", "cyrillic" }, { "Mong", "mongolian" } }; /* Step 1: Convert using legacy_table. */ if (name[0] >= 'A' && name[0] <= 'Z') { unsigned int i1, i2; i1 = 0; i2 = sizeof (legacy_table) / sizeof (legacy_entry); while (i2 - i1 > 1) { /* At this point we know that if name occurs in legacy_table, its index must be >= i1 and < i2. */ unsigned int i = (i1 + i2) >> 1; const legacy_entry *p = &legacy_table[i]; if (strcmp (name, p->legacy) < 0) i2 = i; else i1 = i; } if (strcmp (name, legacy_table[i1].legacy) == 0) { strcpy (name, legacy_table[i1].unixy); return; } } /* Step 2: Convert using langtag_table and script_table. */ if (strlen (name) == 7 && name[2] == '-') { unsigned int i1, i2; i1 = 0; i2 = sizeof (langtag_table) / sizeof (langtag_entry); while (i2 - i1 > 1) { /* At this point we know that if name occurs in langtag_table, its index must be >= i1 and < i2. */ unsigned int i = (i1 + i2) >> 1; const langtag_entry *p = &langtag_table[i]; if (strcmp (name, p->langtag) < 0) i2 = i; else i1 = i; } if (strcmp (name, langtag_table[i1].langtag) == 0) { strcpy (name, langtag_table[i1].unixy); return; } i1 = 0; i2 = sizeof (script_table) / sizeof (script_entry); while (i2 - i1 > 1) { /* At this point we know that if (name + 3) occurs in script_table, its index must be >= i1 and < i2. */ unsigned int i = (i1 + i2) >> 1; const script_entry *p = &script_table[i]; if (strcmp (name + 3, p->script) < 0) i2 = i; else i1 = i; } if (strcmp (name + 3, script_table[i1].script) == 0) { name[2] = '@'; strcpy (name + 3, script_table[i1].unixy); return; } } /* Step 3: Convert new-style dash to Unix underscore. */ { char *p; for (p = name; *p != '\0'; p++) if (*p == '-') *p = '_'; } } #endif #if defined WIN32_NATIVE || defined __CYGWIN__ /* WIN32 or Cygwin */ /* Canonicalize a Win32 native locale name to a Unix locale name. NAME is a sufficiently large buffer. On input, it contains the Win32 locale name. On output, it contains the Unix locale name. */ # if !defined IN_LIBINTL static # endif void gl_locale_name_canonicalize (char *name) { /* FIXME: This is probably incomplete: it does not handle "zh-Hans" and "zh-Hant". */ char *p; for (p = name; *p != '\0'; p++) if (*p == '-') { *p = '_'; p++; for (; *p != '\0'; p++) { if (*p >= 'a' && *p <= 'z') *p += 'A' - 'a'; if (*p == '-') { *p = '\0'; return; } } return; } } # if !defined IN_LIBINTL static # endif const char * gl_locale_name_from_win32_LANGID (LANGID langid) { /* Activate the new code only when the GETTEXT_MUI environment variable is set, for the time being, since the new code is not well tested. */ if (getenv ("GETTEXT_MUI") != NULL) { static char namebuf[256]; /* Query the system's notion of locale name. On Windows95/98/ME, GetLocaleInfoA returns some incorrect results. But we don't need to support systems that are so old. */ if (GetLocaleInfoA (MAKELCID (langid, SORT_DEFAULT), LOCALE_SNAME, namebuf, sizeof (namebuf) - 1)) { /* Convert it to a Unix locale name. */ gl_locale_name_canonicalize (namebuf); return namebuf; } } /* Internet Explorer has an LCID to RFC3066 name mapping stored in HKEY_CLASSES_ROOT\Mime\Database\Rfc1766. But we better don't use that since IE's i18n subsystem is known to be inconsistent with the Win32 base (e.g. they have different character conversion facilities that produce different results). */ /* Use our own table. */ { int primary, sub; /* Split into language and territory part. */ primary = PRIMARYLANGID (langid); sub = SUBLANGID (langid); /* Dispatch on language. See also http://www.unicode.org/unicode/onlinedat/languages.html . For details about languages, see http://www.ethnologue.com/ . */ switch (primary) { case LANG_AFRIKAANS: switch (sub) { case SUBLANG_AFRIKAANS_SOUTH_AFRICA: return "af_ZA"; } return "af"; case LANG_ALBANIAN: switch (sub) { case SUBLANG_ALBANIAN_ALBANIA: return "sq_AL"; } return "sq"; case LANG_ALSATIAN: switch (sub) { case SUBLANG_ALSATIAN_FRANCE: return "gsw_FR"; } return "gsw"; case LANG_AMHARIC: switch (sub) { case SUBLANG_AMHARIC_ETHIOPIA: return "am_ET"; } return "am"; case LANG_ARABIC: switch (sub) { case SUBLANG_ARABIC_SAUDI_ARABIA: return "ar_SA"; case SUBLANG_ARABIC_IRAQ: return "ar_IQ"; case SUBLANG_ARABIC_EGYPT: return "ar_EG"; case SUBLANG_ARABIC_LIBYA: return "ar_LY"; case SUBLANG_ARABIC_ALGERIA: return "ar_DZ"; case SUBLANG_ARABIC_MOROCCO: return "ar_MA"; case SUBLANG_ARABIC_TUNISIA: return "ar_TN"; case SUBLANG_ARABIC_OMAN: return "ar_OM"; case SUBLANG_ARABIC_YEMEN: return "ar_YE"; case SUBLANG_ARABIC_SYRIA: return "ar_SY"; case SUBLANG_ARABIC_JORDAN: return "ar_JO"; case SUBLANG_ARABIC_LEBANON: return "ar_LB"; case SUBLANG_ARABIC_KUWAIT: return "ar_KW"; case SUBLANG_ARABIC_UAE: return "ar_AE"; case SUBLANG_ARABIC_BAHRAIN: return "ar_BH"; case SUBLANG_ARABIC_QATAR: return "ar_QA"; } return "ar"; case LANG_ARMENIAN: switch (sub) { case SUBLANG_ARMENIAN_ARMENIA: return "hy_AM"; } return "hy"; case LANG_ASSAMESE: switch (sub) { case SUBLANG_ASSAMESE_INDIA: return "as_IN"; } return "as"; case LANG_AZERI: switch (sub) { /* FIXME: Adjust this when Azerbaijani locales appear on Unix. */ case 0x1e: return "az@latin"; case SUBLANG_AZERI_LATIN: return "az_AZ@latin"; case 0x1d: return "az@cyrillic"; case SUBLANG_AZERI_CYRILLIC: return "az_AZ@cyrillic"; } return "az"; case LANG_BASHKIR: switch (sub) { case SUBLANG_BASHKIR_RUSSIA: return "ba_RU"; } return "ba"; case LANG_BASQUE: switch (sub) { case SUBLANG_BASQUE_BASQUE: return "eu_ES"; } return "eu"; /* Ambiguous: could be "eu_ES" or "eu_FR". */ case LANG_BELARUSIAN: switch (sub) { case SUBLANG_BELARUSIAN_BELARUS: return "be_BY"; } return "be"; case LANG_BENGALI: switch (sub) { case SUBLANG_BENGALI_INDIA: return "bn_IN"; case SUBLANG_BENGALI_BANGLADESH: return "bn_BD"; } return "bn"; case LANG_BRETON: switch (sub) { case SUBLANG_BRETON_FRANCE: return "br_FR"; } return "br"; case LANG_BULGARIAN: switch (sub) { case SUBLANG_BULGARIAN_BULGARIA: return "bg_BG"; } return "bg"; case LANG_BURMESE: switch (sub) { case SUBLANG_DEFAULT: return "my_MM"; } return "my"; case LANG_CAMBODIAN: switch (sub) { case SUBLANG_CAMBODIAN_CAMBODIA: return "km_KH"; } return "km"; case LANG_CATALAN: switch (sub) { case SUBLANG_CATALAN_SPAIN: return "ca_ES"; } return "ca"; case LANG_CHEROKEE: switch (sub) { case SUBLANG_DEFAULT: return "chr_US"; } return "chr"; case LANG_CHINESE: switch (sub) { case SUBLANG_CHINESE_TRADITIONAL: case 0x1f: return "zh_TW"; case SUBLANG_CHINESE_SIMPLIFIED: case 0x00: return "zh_CN"; case SUBLANG_CHINESE_HONGKONG: return "zh_HK"; /* traditional */ case SUBLANG_CHINESE_SINGAPORE: return "zh_SG"; /* simplified */ case SUBLANG_CHINESE_MACAU: return "zh_MO"; /* traditional */ } return "zh"; case LANG_CORSICAN: switch (sub) { case SUBLANG_CORSICAN_FRANCE: return "co_FR"; } return "co"; case LANG_CROATIAN: /* LANG_CROATIAN == LANG_SERBIAN == LANG_BOSNIAN * What used to be called Serbo-Croatian * should really now be two separate * languages because of political reasons. * (Says tml, who knows nothing about Serbian * or Croatian.) * (I can feel those flames coming already.) */ switch (sub) { /* Croatian */ case 0x00: return "hr"; case SUBLANG_CROATIAN_CROATIA: return "hr_HR"; case SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN: return "hr_BA"; /* Serbian */ case 0x1f: return "sr"; case 0x1c: return "sr"; /* latin */ case SUBLANG_SERBIAN_LATIN: return "sr_CS"; /* latin */ case 0x09: return "sr_RS"; /* latin */ case 0x0b: return "sr_ME"; /* latin */ case 0x06: return "sr_BA"; /* latin */ case 0x1b: return "sr@cyrillic"; case SUBLANG_SERBIAN_CYRILLIC: return "sr_CS@cyrillic"; case 0x0a: return "sr_RS@cyrillic"; case 0x0c: return "sr_ME@cyrillic"; case 0x07: return "sr_BA@cyrillic"; /* Bosnian */ case 0x1e: return "bs"; case 0x1a: return "bs"; /* latin */ case SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN: return "bs_BA"; /* latin */ case 0x19: return "bs@cyrillic"; case SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC: return "bs_BA@cyrillic"; } return "hr"; case LANG_CZECH: switch (sub) { case SUBLANG_CZECH_CZECH_REPUBLIC: return "cs_CZ"; } return "cs"; case LANG_DANISH: switch (sub) { case SUBLANG_DANISH_DENMARK: return "da_DK"; } return "da"; case LANG_DARI: /* FIXME: Adjust this when such locales appear on Unix. */ switch (sub) { case SUBLANG_DARI_AFGHANISTAN: return "prs_AF"; } return "prs"; case LANG_DIVEHI: switch (sub) { case SUBLANG_DIVEHI_MALDIVES: return "dv_MV"; } return "dv"; case LANG_DUTCH: switch (sub) { case SUBLANG_DUTCH: return "nl_NL"; case SUBLANG_DUTCH_BELGIAN: /* FLEMISH, VLAAMS */ return "nl_BE"; case SUBLANG_DUTCH_SURINAM: return "nl_SR"; } return "nl"; case LANG_EDO: switch (sub) { case SUBLANG_DEFAULT: return "bin_NG"; } return "bin"; case LANG_ENGLISH: switch (sub) { /* SUBLANG_ENGLISH_US == SUBLANG_DEFAULT. Heh. I thought * English was the language spoken in England. * Oh well. */ case SUBLANG_ENGLISH_US: return "en_US"; case SUBLANG_ENGLISH_UK: return "en_GB"; case SUBLANG_ENGLISH_AUS: return "en_AU"; case SUBLANG_ENGLISH_CAN: return "en_CA"; case SUBLANG_ENGLISH_NZ: return "en_NZ"; case SUBLANG_ENGLISH_EIRE: return "en_IE"; case SUBLANG_ENGLISH_SOUTH_AFRICA: return "en_ZA"; case SUBLANG_ENGLISH_JAMAICA: return "en_JM"; case SUBLANG_ENGLISH_CARIBBEAN: return "en_GD"; /* Grenada? */ case SUBLANG_ENGLISH_BELIZE: return "en_BZ"; case SUBLANG_ENGLISH_TRINIDAD: return "en_TT"; case SUBLANG_ENGLISH_ZIMBABWE: return "en_ZW"; case SUBLANG_ENGLISH_PHILIPPINES: return "en_PH"; case SUBLANG_ENGLISH_INDONESIA: return "en_ID"; case SUBLANG_ENGLISH_HONGKONG: return "en_HK"; case SUBLANG_ENGLISH_INDIA: return "en_IN"; case SUBLANG_ENGLISH_MALAYSIA: return "en_MY"; case SUBLANG_ENGLISH_SINGAPORE: return "en_SG"; } return "en"; case LANG_ESTONIAN: switch (sub) { case SUBLANG_ESTONIAN_ESTONIA: return "et_EE"; } return "et"; case LANG_FAEROESE: switch (sub) { case SUBLANG_FAEROESE_FAROE_ISLANDS: return "fo_FO"; } return "fo"; case LANG_FARSI: switch (sub) { case SUBLANG_FARSI_IRAN: return "fa_IR"; } return "fa"; case LANG_FINNISH: switch (sub) { case SUBLANG_FINNISH_FINLAND: return "fi_FI"; } return "fi"; case LANG_FRENCH: switch (sub) { case SUBLANG_FRENCH: return "fr_FR"; case SUBLANG_FRENCH_BELGIAN: /* WALLOON */ return "fr_BE"; case SUBLANG_FRENCH_CANADIAN: return "fr_CA"; case SUBLANG_FRENCH_SWISS: return "fr_CH"; case SUBLANG_FRENCH_LUXEMBOURG: return "fr_LU"; case SUBLANG_FRENCH_MONACO: return "fr_MC"; case SUBLANG_FRENCH_WESTINDIES: return "fr"; /* Caribbean? */ case SUBLANG_FRENCH_REUNION: return "fr_RE"; case SUBLANG_FRENCH_CONGO: return "fr_CG"; case SUBLANG_FRENCH_SENEGAL: return "fr_SN"; case SUBLANG_FRENCH_CAMEROON: return "fr_CM"; case SUBLANG_FRENCH_COTEDIVOIRE: return "fr_CI"; case SUBLANG_FRENCH_MALI: return "fr_ML"; case SUBLANG_FRENCH_MOROCCO: return "fr_MA"; case SUBLANG_FRENCH_HAITI: return "fr_HT"; } return "fr"; case LANG_FRISIAN: switch (sub) { case SUBLANG_FRISIAN_NETHERLANDS: return "fy_NL"; } return "fy"; case LANG_FULFULDE: /* Spoken in Nigeria, Guinea, Senegal, Mali, Niger, Cameroon, Benin. */ switch (sub) { case SUBLANG_DEFAULT: return "ff_NG"; } return "ff"; case LANG_GAELIC: switch (sub) { case 0x01: /* SCOTTISH */ /* old, superseded by LANG_SCOTTISH_GAELIC */ return "gd_GB"; case SUBLANG_IRISH_IRELAND: return "ga_IE"; } return "ga"; case LANG_GALICIAN: switch (sub) { case SUBLANG_GALICIAN_SPAIN: return "gl_ES"; } return "gl"; case LANG_GEORGIAN: switch (sub) { case SUBLANG_GEORGIAN_GEORGIA: return "ka_GE"; } return "ka"; case LANG_GERMAN: switch (sub) { case SUBLANG_GERMAN: return "de_DE"; case SUBLANG_GERMAN_SWISS: return "de_CH"; case SUBLANG_GERMAN_AUSTRIAN: return "de_AT"; case SUBLANG_GERMAN_LUXEMBOURG: return "de_LU"; case SUBLANG_GERMAN_LIECHTENSTEIN: return "de_LI"; } return "de"; case LANG_GREEK: switch (sub) { case SUBLANG_GREEK_GREECE: return "el_GR"; } return "el"; case LANG_GREENLANDIC: switch (sub) { case SUBLANG_GREENLANDIC_GREENLAND: return "kl_GL"; } return "kl"; case LANG_GUARANI: switch (sub) { case SUBLANG_DEFAULT: return "gn_PY"; } return "gn"; case LANG_GUJARATI: switch (sub) { case SUBLANG_GUJARATI_INDIA: return "gu_IN"; } return "gu"; case LANG_HAUSA: switch (sub) { case 0x1f: return "ha"; case SUBLANG_HAUSA_NIGERIA_LATIN: return "ha_NG"; } return "ha"; case LANG_HAWAIIAN: /* FIXME: Do they mean Hawaiian ("haw_US", 1000 speakers) or Hawaii Creole English ("cpe_US", 600000 speakers)? */ switch (sub) { case SUBLANG_DEFAULT: return "cpe_US"; } return "cpe"; case LANG_HEBREW: switch (sub) { case SUBLANG_HEBREW_ISRAEL: return "he_IL"; } return "he"; case LANG_HINDI: switch (sub) { case SUBLANG_HINDI_INDIA: return "hi_IN"; } return "hi"; case LANG_HUNGARIAN: switch (sub) { case SUBLANG_HUNGARIAN_HUNGARY: return "hu_HU"; } return "hu"; case LANG_IBIBIO: switch (sub) { case SUBLANG_DEFAULT: return "nic_NG"; } return "nic"; case LANG_ICELANDIC: switch (sub) { case SUBLANG_ICELANDIC_ICELAND: return "is_IS"; } return "is"; case LANG_IGBO: switch (sub) { case SUBLANG_IGBO_NIGERIA: return "ig_NG"; } return "ig"; case LANG_INDONESIAN: switch (sub) { case SUBLANG_INDONESIAN_INDONESIA: return "id_ID"; } return "id"; case LANG_INUKTITUT: switch (sub) { case 0x1e: return "iu"; /* syllabic */ case SUBLANG_INUKTITUT_CANADA: return "iu_CA"; /* syllabic */ case 0x1f: return "iu@latin"; case SUBLANG_INUKTITUT_CANADA_LATIN: return "iu_CA@latin"; } return "iu"; case LANG_ITALIAN: switch (sub) { case SUBLANG_ITALIAN: return "it_IT"; case SUBLANG_ITALIAN_SWISS: return "it_CH"; } return "it"; case LANG_JAPANESE: switch (sub) { case SUBLANG_JAPANESE_JAPAN: return "ja_JP"; } return "ja"; case LANG_KANNADA: switch (sub) { case SUBLANG_KANNADA_INDIA: return "kn_IN"; } return "kn"; case LANG_KANURI: switch (sub) { case SUBLANG_DEFAULT: return "kr_NG"; } return "kr"; case LANG_KASHMIRI: switch (sub) { case SUBLANG_DEFAULT: return "ks_PK"; case SUBLANG_KASHMIRI_INDIA: return "ks_IN"; } return "ks"; case LANG_KAZAK: switch (sub) { case SUBLANG_KAZAK_KAZAKHSTAN: return "kk_KZ"; } return "kk"; case LANG_KICHE: /* FIXME: Adjust this when such locales appear on Unix. */ switch (sub) { case SUBLANG_KICHE_GUATEMALA: return "qut_GT"; } return "qut"; case LANG_KINYARWANDA: switch (sub) { case SUBLANG_KINYARWANDA_RWANDA: return "rw_RW"; } return "rw"; case LANG_KONKANI: /* FIXME: Adjust this when such locales appear on Unix. */ switch (sub) { case SUBLANG_KONKANI_INDIA: return "kok_IN"; } return "kok"; case LANG_KOREAN: switch (sub) { case SUBLANG_DEFAULT: return "ko_KR"; } return "ko"; case LANG_KYRGYZ: switch (sub) { case SUBLANG_KYRGYZ_KYRGYZSTAN: return "ky_KG"; } return "ky"; case LANG_LAO: switch (sub) { case SUBLANG_LAO_LAOS: return "lo_LA"; } return "lo"; case LANG_LATIN: switch (sub) { case SUBLANG_DEFAULT: return "la_VA"; } return "la"; case LANG_LATVIAN: switch (sub) { case SUBLANG_LATVIAN_LATVIA: return "lv_LV"; } return "lv"; case LANG_LITHUANIAN: switch (sub) { case SUBLANG_LITHUANIAN_LITHUANIA: return "lt_LT"; } return "lt"; case LANG_LUXEMBOURGISH: switch (sub) { case SUBLANG_LUXEMBOURGISH_LUXEMBOURG: return "lb_LU"; } return "lb"; case LANG_MACEDONIAN: switch (sub) { case SUBLANG_MACEDONIAN_MACEDONIA: return "mk_MK"; } return "mk"; case LANG_MALAY: switch (sub) { case SUBLANG_MALAY_MALAYSIA: return "ms_MY"; case SUBLANG_MALAY_BRUNEI_DARUSSALAM: return "ms_BN"; } return "ms"; case LANG_MALAYALAM: switch (sub) { case SUBLANG_MALAYALAM_INDIA: return "ml_IN"; } return "ml"; case LANG_MALTESE: switch (sub) { case SUBLANG_MALTESE_MALTA: return "mt_MT"; } return "mt"; case LANG_MANIPURI: /* FIXME: Adjust this when such locales appear on Unix. */ switch (sub) { case SUBLANG_DEFAULT: return "mni_IN"; } return "mni"; case LANG_MAORI: switch (sub) { case SUBLANG_MAORI_NEW_ZEALAND: return "mi_NZ"; } return "mi"; case LANG_MAPUDUNGUN: switch (sub) { case SUBLANG_MAPUDUNGUN_CHILE: return "arn_CL"; } return "arn"; case LANG_MARATHI: switch (sub) { case SUBLANG_MARATHI_INDIA: return "mr_IN"; } return "mr"; case LANG_MOHAWK: switch (sub) { case SUBLANG_MOHAWK_CANADA: return "moh_CA"; } return "moh"; case LANG_MONGOLIAN: switch (sub) { case SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA: case 0x1e: return "mn_MN"; case SUBLANG_MONGOLIAN_PRC: case 0x1f: return "mn_CN"; } return "mn"; /* Ambiguous: could be "mn_CN" or "mn_MN". */ case LANG_NEPALI: switch (sub) { case SUBLANG_NEPALI_NEPAL: return "ne_NP"; case SUBLANG_NEPALI_INDIA: return "ne_IN"; } return "ne"; case LANG_NORWEGIAN: switch (sub) { case 0x1f: return "nb"; case SUBLANG_NORWEGIAN_BOKMAL: return "nb_NO"; case 0x1e: return "nn"; case SUBLANG_NORWEGIAN_NYNORSK: return "nn_NO"; } return "no"; case LANG_OCCITAN: switch (sub) { case SUBLANG_OCCITAN_FRANCE: return "oc_FR"; } return "oc"; case LANG_ORIYA: switch (sub) { case SUBLANG_ORIYA_INDIA: return "or_IN"; } return "or"; case LANG_OROMO: switch (sub) { case SUBLANG_DEFAULT: return "om_ET"; } return "om"; case LANG_PAPIAMENTU: switch (sub) { case SUBLANG_DEFAULT: return "pap_AN"; } return "pap"; case LANG_PASHTO: switch (sub) { case SUBLANG_PASHTO_AFGHANISTAN: return "ps_AF"; } return "ps"; /* Ambiguous: could be "ps_PK" or "ps_AF". */ case LANG_POLISH: switch (sub) { case SUBLANG_POLISH_POLAND: return "pl_PL"; } return "pl"; case LANG_PORTUGUESE: switch (sub) { /* Hmm. SUBLANG_PORTUGUESE_BRAZILIAN == SUBLANG_DEFAULT. Same phenomenon as SUBLANG_ENGLISH_US == SUBLANG_DEFAULT. */ case SUBLANG_PORTUGUESE_BRAZILIAN: return "pt_BR"; case SUBLANG_PORTUGUESE: return "pt_PT"; } return "pt"; case LANG_PUNJABI: switch (sub) { case SUBLANG_PUNJABI_INDIA: return "pa_IN"; /* Gurmukhi script */ case SUBLANG_PUNJABI_PAKISTAN: return "pa_PK"; /* Arabic script */ } return "pa"; case LANG_QUECHUA: /* Note: Microsoft uses the non-ISO language code "quz". */ switch (sub) { case SUBLANG_QUECHUA_BOLIVIA: return "qu_BO"; case SUBLANG_QUECHUA_ECUADOR: return "qu_EC"; case SUBLANG_QUECHUA_PERU: return "qu_PE"; } return "qu"; case LANG_ROMANIAN: switch (sub) { case SUBLANG_ROMANIAN_ROMANIA: return "ro_RO"; case SUBLANG_ROMANIAN_MOLDOVA: return "ro_MD"; } return "ro"; case LANG_ROMANSH: switch (sub) { case SUBLANG_ROMANSH_SWITZERLAND: return "rm_CH"; } return "rm"; case LANG_RUSSIAN: switch (sub) { case SUBLANG_RUSSIAN_RUSSIA: return "ru_RU"; case SUBLANG_RUSSIAN_MOLDAVIA: return "ru_MD"; } return "ru"; /* Ambiguous: could be "ru_RU" or "ru_UA" or "ru_MD". */ case LANG_SAMI: switch (sub) { /* Northern Sami */ case 0x00: return "se"; case SUBLANG_SAMI_NORTHERN_NORWAY: return "se_NO"; case SUBLANG_SAMI_NORTHERN_SWEDEN: return "se_SE"; case SUBLANG_SAMI_NORTHERN_FINLAND: return "se_FI"; /* Lule Sami */ case 0x1f: return "smj"; case SUBLANG_SAMI_LULE_NORWAY: return "smj_NO"; case SUBLANG_SAMI_LULE_SWEDEN: return "smj_SE"; /* Southern Sami */ case 0x1e: return "sma"; case SUBLANG_SAMI_SOUTHERN_NORWAY: return "sma_NO"; case SUBLANG_SAMI_SOUTHERN_SWEDEN: return "sma_SE"; /* Skolt Sami */ case 0x1d: return "sms"; case SUBLANG_SAMI_SKOLT_FINLAND: return "sms_FI"; /* Inari Sami */ case 0x1c: return "smn"; case SUBLANG_SAMI_INARI_FINLAND: return "smn_FI"; } return "se"; /* or "smi"? */ case LANG_SANSKRIT: switch (sub) { case SUBLANG_SANSKRIT_INDIA: return "sa_IN"; } return "sa"; case LANG_SCOTTISH_GAELIC: switch (sub) { case SUBLANG_DEFAULT: return "gd_GB"; } return "gd"; case LANG_SINDHI: switch (sub) { case SUBLANG_SINDHI_INDIA: return "sd_IN"; case SUBLANG_SINDHI_PAKISTAN: return "sd_PK"; /*case SUBLANG_SINDHI_AFGHANISTAN: return "sd_AF";*/ } return "sd"; case LANG_SINHALESE: switch (sub) { case SUBLANG_SINHALESE_SRI_LANKA: return "si_LK"; } return "si"; case LANG_SLOVAK: switch (sub) { case SUBLANG_SLOVAK_SLOVAKIA: return "sk_SK"; } return "sk"; case LANG_SLOVENIAN: switch (sub) { case SUBLANG_SLOVENIAN_SLOVENIA: return "sl_SI"; } return "sl"; case LANG_SOMALI: switch (sub) { case SUBLANG_DEFAULT: return "so_SO"; } return "so"; case LANG_SORBIAN: /* FIXME: Adjust this when such locales appear on Unix. */ switch (sub) { /* Upper Sorbian */ case 0x00: return "hsb"; case SUBLANG_UPPER_SORBIAN_GERMANY: return "hsb_DE"; /* Lower Sorbian */ case 0x1f: return "dsb"; case SUBLANG_LOWER_SORBIAN_GERMANY: return "dsb_DE"; } return "wen"; case LANG_SOTHO: /* calls it "Sepedi"; according to it's the same as Northern Sotho. */ switch (sub) { case SUBLANG_SOTHO_SOUTH_AFRICA: return "nso_ZA"; } return "nso"; case LANG_SPANISH: switch (sub) { case SUBLANG_SPANISH: return "es_ES"; case SUBLANG_SPANISH_MEXICAN: return "es_MX"; case SUBLANG_SPANISH_MODERN: return "es_ES@modern"; /* not seen on Unix */ case SUBLANG_SPANISH_GUATEMALA: return "es_GT"; case SUBLANG_SPANISH_COSTA_RICA: return "es_CR"; case SUBLANG_SPANISH_PANAMA: return "es_PA"; case SUBLANG_SPANISH_DOMINICAN_REPUBLIC: return "es_DO"; case SUBLANG_SPANISH_VENEZUELA: return "es_VE"; case SUBLANG_SPANISH_COLOMBIA: return "es_CO"; case SUBLANG_SPANISH_PERU: return "es_PE"; case SUBLANG_SPANISH_ARGENTINA: return "es_AR"; case SUBLANG_SPANISH_ECUADOR: return "es_EC"; case SUBLANG_SPANISH_CHILE: return "es_CL"; case SUBLANG_SPANISH_URUGUAY: return "es_UY"; case SUBLANG_SPANISH_PARAGUAY: return "es_PY"; case SUBLANG_SPANISH_BOLIVIA: return "es_BO"; case SUBLANG_SPANISH_EL_SALVADOR: return "es_SV"; case SUBLANG_SPANISH_HONDURAS: return "es_HN"; case SUBLANG_SPANISH_NICARAGUA: return "es_NI"; case SUBLANG_SPANISH_PUERTO_RICO: return "es_PR"; case SUBLANG_SPANISH_US: return "es_US"; } return "es"; case LANG_SUTU: switch (sub) { case SUBLANG_DEFAULT: return "bnt_TZ"; /* or "st_LS" or "nso_ZA"? */ } return "bnt"; case LANG_SWAHILI: switch (sub) { case SUBLANG_SWAHILI_KENYA: return "sw_KE"; } return "sw"; case LANG_SWEDISH: switch (sub) { case SUBLANG_SWEDISH_SWEDEN: return "sv_SE"; case SUBLANG_SWEDISH_FINLAND: return "sv_FI"; } return "sv"; case LANG_SYRIAC: switch (sub) { case SUBLANG_SYRIAC_SYRIA: return "syr_SY"; /* An extinct language. */ } return "syr"; case LANG_TAGALOG: switch (sub) { case SUBLANG_TAGALOG_PHILIPPINES: return "tl_PH"; /* or "fil_PH"? */ } return "tl"; /* or "fil"? */ case LANG_TAJIK: switch (sub) { case 0x1f: return "tg"; case SUBLANG_TAJIK_TAJIKISTAN: return "tg_TJ"; } return "tg"; case LANG_TAMAZIGHT: /* Note: Microsoft uses the non-ISO language code "tmz". */ switch (sub) { /* FIXME: Adjust this when Tamazight locales appear on Unix. */ case SUBLANG_TAMAZIGHT_ARABIC: return "ber_MA@arabic"; case 0x1f: return "ber@latin"; case SUBLANG_TAMAZIGHT_ALGERIA_LATIN: return "ber_DZ@latin"; } return "ber"; case LANG_TAMIL: switch (sub) { case SUBLANG_TAMIL_INDIA: return "ta_IN"; } return "ta"; /* Ambiguous: could be "ta_IN" or "ta_LK" or "ta_SG". */ case LANG_TATAR: switch (sub) { case SUBLANG_TATAR_RUSSIA: return "tt_RU"; } return "tt"; case LANG_TELUGU: switch (sub) { case SUBLANG_TELUGU_INDIA: return "te_IN"; } return "te"; case LANG_THAI: switch (sub) { case SUBLANG_THAI_THAILAND: return "th_TH"; } return "th"; case LANG_TIBETAN: switch (sub) { case SUBLANG_TIBETAN_PRC: /* Most Tibetans would not like "bo_CN". But Tibet does not yet have a country code of its own. */ return "bo"; case SUBLANG_TIBETAN_BHUTAN: return "bo_BT"; } return "bo"; case LANG_TIGRINYA: switch (sub) { case SUBLANG_TIGRINYA_ETHIOPIA: return "ti_ET"; case SUBLANG_TIGRINYA_ERITREA: return "ti_ER"; } return "ti"; case LANG_TSONGA: switch (sub) { case SUBLANG_DEFAULT: return "ts_ZA"; } return "ts"; case LANG_TSWANA: /* Spoken in South Africa, Botswana. */ switch (sub) { case SUBLANG_TSWANA_SOUTH_AFRICA: return "tn_ZA"; } return "tn"; case LANG_TURKISH: switch (sub) { case SUBLANG_TURKISH_TURKEY: return "tr_TR"; } return "tr"; case LANG_TURKMEN: switch (sub) { case SUBLANG_TURKMEN_TURKMENISTAN: return "tk_TM"; } return "tk"; case LANG_UIGHUR: switch (sub) { case SUBLANG_UIGHUR_PRC: return "ug_CN"; } return "ug"; case LANG_UKRAINIAN: switch (sub) { case SUBLANG_UKRAINIAN_UKRAINE: return "uk_UA"; } return "uk"; case LANG_URDU: switch (sub) { case SUBLANG_URDU_PAKISTAN: return "ur_PK"; case SUBLANG_URDU_INDIA: return "ur_IN"; } return "ur"; case LANG_UZBEK: switch (sub) { case 0x1f: return "uz"; case SUBLANG_UZBEK_LATIN: return "uz_UZ"; case 0x1e: return "uz@cyrillic"; case SUBLANG_UZBEK_CYRILLIC: return "uz_UZ@cyrillic"; } return "uz"; case LANG_VENDA: switch (sub) { case SUBLANG_DEFAULT: return "ve_ZA"; } return "ve"; case LANG_VIETNAMESE: switch (sub) { case SUBLANG_VIETNAMESE_VIETNAM: return "vi_VN"; } return "vi"; case LANG_WELSH: switch (sub) { case SUBLANG_WELSH_UNITED_KINGDOM: return "cy_GB"; } return "cy"; case LANG_WOLOF: switch (sub) { case SUBLANG_WOLOF_SENEGAL: return "wo_SN"; } return "wo"; case LANG_XHOSA: switch (sub) { case SUBLANG_XHOSA_SOUTH_AFRICA: return "xh_ZA"; } return "xh"; case LANG_YAKUT: switch (sub) { case SUBLANG_YAKUT_RUSSIA: return "sah_RU"; } return "sah"; case LANG_YI: switch (sub) { case SUBLANG_YI_PRC: return "ii_CN"; } return "ii"; case LANG_YIDDISH: switch (sub) { case SUBLANG_DEFAULT: return "yi_IL"; } return "yi"; case LANG_YORUBA: switch (sub) { case SUBLANG_YORUBA_NIGERIA: return "yo_NG"; } return "yo"; case LANG_ZULU: switch (sub) { case SUBLANG_ZULU_SOUTH_AFRICA: return "zu_ZA"; } return "zu"; default: return "C"; } } } # if !defined IN_LIBINTL static # endif const char * gl_locale_name_from_win32_LCID (LCID lcid) { LANGID langid; /* Strip off the sorting rules, keep only the language part. */ langid = LANGIDFROMLCID (lcid); return gl_locale_name_from_win32_LANGID (langid); } #endif #if HAVE_USELOCALE /* glibc or MacOS X */ /* Simple hash set of strings. We don't want to drag in lots of hash table code here. */ # define SIZE_BITS (sizeof (size_t) * CHAR_BIT) /* A hash function for NUL-terminated char* strings using the method described by Bruno Haible. See http://www.haible.de/bruno/hashfunc.html. */ static size_t string_hash (const void *x) { const char *s = (const char *) x; size_t h = 0; for (; *s; s++) h = *s + ((h << 9) | (h >> (SIZE_BITS - 9))); return h; } /* A hash table of fixed size. Multiple threads can access it read-only simultaneously, but only one thread can insert into it at the same time. */ /* A node in a hash bucket collision list. */ struct hash_node { struct hash_node * volatile next; char contents[100]; /* has variable size */ }; # define HASH_TABLE_SIZE 257 static struct hash_node * volatile struniq_hash_table[HASH_TABLE_SIZE] /* = { NULL, ..., NULL } */; /* This lock protects the struniq_hash_table against multiple simultaneous insertions. */ gl_lock_define_initialized(static, struniq_lock) /* Store a copy of the given string in a string pool with indefinite extent. Return a pointer to this copy. */ static const char * struniq (const char *string) { size_t hashcode = string_hash (string); size_t slot = hashcode % HASH_TABLE_SIZE; size_t size; struct hash_node *new_node; struct hash_node *p; for (p = struniq_hash_table[slot]; p != NULL; p = p->next) if (strcmp (p->contents, string) == 0) return p->contents; size = strlen (string) + 1; new_node = (struct hash_node *) malloc (offsetof (struct hash_node, contents[0]) + size); if (new_node == NULL) /* Out of memory. Return a statically allocated string. */ return "C"; memcpy (new_node->contents, string, size); /* Lock while inserting new_node. */ gl_lock_lock (struniq_lock); /* Check whether another thread already added the string while we were waiting on the lock. */ for (p = struniq_hash_table[slot]; p != NULL; p = p->next) if (strcmp (p->contents, string) == 0) { free (new_node); new_node = p; goto done; } /* Really insert new_node into the hash table. Fill new_node entirely first, because other threads may be iterating over the linked list. */ new_node->next = struniq_hash_table[slot]; struniq_hash_table[slot] = new_node; done: /* Unlock after new_node is inserted. */ gl_lock_unlock (struniq_lock); return new_node->contents; } #endif #if defined IN_LIBINTL || HAVE_USELOCALE /* Like gl_locale_name_thread, except that the result is not in storage of indefinite extent. */ # if !defined IN_LIBINTL static # endif const char * gl_locale_name_thread_unsafe (int category, const char *categoryname) { # if HAVE_USELOCALE { locale_t thread_locale = uselocale (NULL); if (thread_locale != LC_GLOBAL_LOCALE) { # if __GLIBC__ >= 2 /* Work around an incorrect definition of the _NL_LOCALE_NAME macro in glibc < 2.12. See . */ const char *name = nl_langinfo (_NL_ITEM ((category), _NL_ITEM_INDEX (-1))); if (name[0] == '\0') /* Fallback code for glibc < 2.4, which did not implement nl_langinfo (_NL_LOCALE_NAME (category)). */ name = thread_locale->__names[category]; return name; # endif # if defined __APPLE__ && defined __MACH__ /* MacOS X */ /* The locale name is found deep in an undocumented data structure. Since it's stored in a buffer of size 32 and newlocale() rejects locale names of length > 31, we can assume that it is NUL terminated in this buffer. But we need to make a copy of the locale name, of indefinite extent. */ struct _xlocale_part1_v0 /* used in MacOS X 10.5 */ { int32_t __refcount; void (*__free_extra)(void *); __darwin_mbstate_t __mbs[10]; int64_t __magic; }; struct _xlocale_part1_v1 /* used in MacOS X >= 10.6.0 */ { int32_t __refcount; void (*__free_extra)(void *); __darwin_mbstate_t __mbs[10]; /*pthread_lock_t*/ int __lock; int64_t __magic; }; struct _xlocale_part2 { int64_t __magic; unsigned char __collate_load_error; unsigned char __collate_substitute_nontrivial; unsigned char _messages_using_locale; unsigned char _monetary_using_locale; unsigned char _numeric_using_locale; unsigned char _time_using_locale; unsigned char __mlocale_changed; unsigned char __nlocale_changed; unsigned char __numeric_fp_cvt; struct __xlocale_st_collate *__lc_collate; struct __xlocale_st_runelocale *__lc_ctype; struct __xlocale_st_messages *__lc_messages; struct __xlocale_st_monetary *__lc_monetary; struct __xlocale_st_numeric *__lc_numeric; struct _xlocale *__lc_numeric_loc; struct __xlocale_st_time *__lc_time; /* more */ }; struct __xlocale_st_collate { int32_t __refcount; void (*__free_extra)(void *); char __encoding[32]; /* more */ }; struct __xlocale_st_runelocale { int32_t __refcount; void (*__free_extra)(void *); char __ctype_encoding[32]; /* more */ }; struct __xlocale_st_messages { int32_t __refcount; void (*__free_extra)(void *); char *_messages_locale_buf; /* more */ }; struct __xlocale_st_monetary { int32_t __refcount; void (*__free_extra)(void *); char *_monetary_locale_buf; /* more */ }; struct __xlocale_st_numeric { int32_t __refcount; void (*__free_extra)(void *); char *_numeric_locale_buf; /* more */ }; struct __xlocale_st_time { int32_t __refcount; void (*__free_extra)(void *); char *_time_locale_buf; /* more */ }; struct _xlocale_part2 *tlp; if (((struct _xlocale_part1_v0 *) thread_locale)->__magic == 0x786C6F63616C6530LL) /* MacOS X 10.5 */ tlp = (struct _xlocale_part2 *) &((struct _xlocale_part1_v0 *) thread_locale)->__magic; else if (((struct _xlocale_part1_v1 *) thread_locale)->__magic == 0x786C6F63616C6530LL) /* MacOS X >= 10.6.0 */ tlp = (struct _xlocale_part2 *) &((struct _xlocale_part1_v1 *) thread_locale)->__magic; else /* Unsupported version of MacOS X: The internals of 'struct _xlocale' have changed again. */ return ""; switch (category) { case LC_CTYPE: return tlp->__lc_ctype->__ctype_encoding; case LC_NUMERIC: return tlp->_numeric_using_locale ? tlp->__lc_numeric->_numeric_locale_buf : "C"; case LC_TIME: return tlp->_time_using_locale ? tlp->__lc_time->_time_locale_buf : "C"; case LC_COLLATE: return !tlp->__collate_load_error ? tlp->__lc_collate->__encoding : "C"; case LC_MONETARY: return tlp->_monetary_using_locale ? tlp->__lc_monetary->_monetary_locale_buf : "C"; case LC_MESSAGES: return tlp->_messages_using_locale ? tlp->__lc_messages->_messages_locale_buf : "C"; default: /* We shouldn't get here. */ return ""; } # endif } } # endif return NULL; } #endif const char * gl_locale_name_thread (int category, const char *categoryname) { #if HAVE_USELOCALE const char *name = gl_locale_name_thread_unsafe (category, categoryname); if (name != NULL) return struniq (name); #endif return NULL; } /* XPG3 defines the result of 'setlocale (category, NULL)' as: "Directs 'setlocale()' to query 'category' and return the current setting of 'local'." However it does not specify the exact format. Neither do SUSV2 and ISO C 99. So we can use this feature only on selected systems (e.g. those using GNU C Library). */ #if defined _LIBC || (defined __GLIBC__ && __GLIBC__ >= 2) # define HAVE_LOCALE_NULL #endif const char * gl_locale_name_posix (int category, const char *categoryname) { /* Use the POSIX methods of looking to 'LC_ALL', 'LC_xxx', and 'LANG'. On some systems this can be done by the 'setlocale' function itself. */ #if defined HAVE_SETLOCALE && defined HAVE_LC_MESSAGES && defined HAVE_LOCALE_NULL return setlocale (category, NULL); #else /* On other systems we ignore what setlocale reports and instead look at the environment variables directly. This is necessary 1. on systems which have a facility for customizing the default locale (MacOS X, native Windows, Cygwin) and where the system's setlocale() function ignores this default locale (MacOS X, Cygwin), in two cases: a. when the user missed to use the setlocale() override from libintl (for example by not including ), b. when setlocale supports only the "C" locale, such as on Cygwin 1.5.x. In this case even the override from libintl cannot help. 2. on all systems where setlocale supports only the "C" locale. */ /* Strictly speaking, it is a POSIX violation to look at the environment variables regardless whether setlocale has been called or not. POSIX says: "For C-language programs, the POSIX locale shall be the default locale when the setlocale() function is not called." But we assume that all programs that use internationalized APIs call setlocale (LC_ALL, ""). */ return gl_locale_name_environ (category, categoryname); #endif } const char * gl_locale_name_environ (int category, const char *categoryname) { const char *retval; /* Setting of LC_ALL overrides all other. */ retval = getenv ("LC_ALL"); if (retval != NULL && retval[0] != '\0') return retval; /* Next comes the name of the desired category. */ retval = getenv (categoryname); if (retval != NULL && retval[0] != '\0') return retval; /* Last possibility is the LANG environment variable. */ retval = getenv ("LANG"); if (retval != NULL && retval[0] != '\0') { #if HAVE_CFLOCALECOPYCURRENT || HAVE_CFPREFERENCESCOPYAPPVALUE /* MacOS X 10.2 or newer. Ignore invalid LANG value set by the Terminal application. */ if (strcmp (retval, "UTF-8") != 0) #endif #if defined __CYGWIN__ /* Cygwin. Ignore dummy LANG value set by ~/.profile. */ if (strcmp (retval, "C.UTF-8") != 0) #endif return retval; } return NULL; } const char * gl_locale_name_default (void) { /* POSIX:2001 says: "All implementations shall define a locale as the default locale, to be invoked when no environment variables are set, or set to the empty string. This default locale can be the POSIX locale or any other implementation-defined locale. Some implementations may provide facilities for local installation administrators to set the default locale, customizing it for each location. POSIX:2001 does not require such a facility. The systems with such a facility are MacOS X and Windows: They provide a GUI that allows the user to choose a locale. - On MacOS X, by default, none of LC_* or LANG are set. Starting with MacOS X 10.4 or 10.5, LANG is set for processes launched by the 'Terminal' application (but sometimes to an incorrect value "UTF-8"). When no environment variable is set, setlocale (LC_ALL, "") uses the "C" locale. - On native Windows, by default, none of LC_* or LANG are set. When no environment variable is set, setlocale (LC_ALL, "") uses the locale chosen by the user. - On Cygwin 1.5.x, by default, none of LC_* or LANG are set. When no environment variable is set, setlocale (LC_ALL, "") uses the "C" locale. - On Cygwin 1.7, by default, LANG is set to "C.UTF-8" when the default ~/.profile is executed. When no environment variable is set, setlocale (LC_ALL, "") uses the "C.UTF-8" locale, which operates in the same way as the "C" locale. */ #if !(HAVE_CFLOCALECOPYCURRENT || HAVE_CFPREFERENCESCOPYAPPVALUE || defined WIN32_NATIVE || defined __CYGWIN__) /* The system does not have a way of setting the locale, other than the POSIX specified environment variables. We use C as default locale. */ return "C"; #else /* Return an XPG style locale name language[_territory][@modifier]. Don't even bother determining the codeset; it's not useful in this context, because message catalogs are not specific to a single codeset. */ # if HAVE_CFLOCALECOPYCURRENT || HAVE_CFPREFERENCESCOPYAPPVALUE /* MacOS X 10.2 or newer */ { /* Cache the locale name, since CoreFoundation calls are expensive. */ static const char *cached_localename; if (cached_localename == NULL) { char namebuf[256]; # if HAVE_CFLOCALECOPYCURRENT /* MacOS X 10.3 or newer */ CFLocaleRef locale = CFLocaleCopyCurrent (); CFStringRef name = CFLocaleGetIdentifier (locale); if (CFStringGetCString (name, namebuf, sizeof (namebuf), kCFStringEncodingASCII)) { gl_locale_name_canonicalize (namebuf); cached_localename = strdup (namebuf); } CFRelease (locale); # elif HAVE_CFPREFERENCESCOPYAPPVALUE /* MacOS X 10.2 or newer */ CFTypeRef value = CFPreferencesCopyAppValue (CFSTR ("AppleLocale"), kCFPreferencesCurrentApplication); if (value != NULL && CFGetTypeID (value) == CFStringGetTypeID () && CFStringGetCString ((CFStringRef)value, namebuf, sizeof (namebuf), kCFStringEncodingASCII)) { gl_locale_name_canonicalize (namebuf); cached_localename = strdup (namebuf); } # endif if (cached_localename == NULL) cached_localename = "C"; } return cached_localename; } # endif # if defined WIN32_NATIVE || defined __CYGWIN__ /* WIN32 or Cygwin */ { LCID lcid; /* Use native Win32 API locale ID. */ lcid = GetThreadLocale (); return gl_locale_name_from_win32_LCID (lcid); } # endif #endif } /* Determine the current locale's name, and canonicalize it into XPG syntax language[_territory][.codeset][@modifier] The codeset part in the result is not reliable; the locale_charset() should be used for codeset information instead. The result must not be freed; it is statically allocated. */ const char * gl_locale_name (int category, const char *categoryname) { const char *retval; retval = gl_locale_name_thread (category, categoryname); if (retval != NULL) return retval; retval = gl_locale_name_posix (category, categoryname); if (retval != NULL) return retval; return gl_locale_name_default (); } gliv-1.9.7/intl/osdep.c0000644000076400007640000000174111465576131012177 0ustar gg/* OS dependent parts of libintl. Copyright (C) 2001-2002, 2006 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #if defined __CYGWIN__ # include "intl-exports.c" #elif defined __EMX__ # include "os2compat.c" #else /* Avoid AIX compiler warning. */ typedef int dummy; #endif gliv-1.9.7/intl/os2compat.h0000644000076400007640000000302311465576131012774 0ustar gg/* OS/2 compatibility defines. This file is intended to be included from config.h Copyright (C) 2001-2002 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* When included from os2compat.h we need all the original definitions */ #ifndef OS2_AWARE #undef LIBDIR #define LIBDIR _nlos2_libdir extern char *_nlos2_libdir; #undef LOCALEDIR #define LOCALEDIR _nlos2_localedir extern char *_nlos2_localedir; #undef LOCALE_ALIAS_PATH #define LOCALE_ALIAS_PATH _nlos2_localealiaspath extern char *_nlos2_localealiaspath; #endif #undef HAVE_STRCASECMP #define HAVE_STRCASECMP 1 #define strcasecmp stricmp #define strncasecmp strnicmp /* We have our own getenv() which works even if library is compiled as DLL */ #define getenv _nl_getenv /* Older versions of gettext used -1 as the value of LC_MESSAGES */ #define LC_MESSAGES_COMPAT (-1) gliv-1.9.7/intl/hash-string.c0000644000076400007640000000315111465576131013311 0ustar gg/* Implements a string hashing function. Copyright (C) 1995, 1997, 1998, 2000, 2003 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library 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 Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif /* Specification. */ #include "hash-string.h" /* Defines the so called `hashpjw' function by P.J. Weinberger [see Aho/Sethi/Ullman, COMPILERS: Principles, Techniques and Tools, 1986, 1987 Bell Telephone Laboratories, Inc.] */ unsigned long int __hash_string (const char *str_param) { unsigned long int hval, g; const char *str = str_param; /* Compute the hash value for the given string. */ hval = 0; while (*str != '\0') { hval <<= 4; hval += (unsigned char) *str++; g = hval & ((unsigned long int) 0xf << (HASHWORDBITS - 4)); if (g != 0) { hval ^= g >> (HASHWORDBITS - 8); hval ^= g; } } return hval; } gliv-1.9.7/intl/localcharset.h0000644000076400007640000000256311465576131013541 0ustar gg/* Determine a canonical name for the current locale's character encoding. Copyright (C) 2000-2003 Free Software Foundation, Inc. This file is part of the GNU CHARSET Library. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _LOCALCHARSET_H #define _LOCALCHARSET_H #ifdef __cplusplus extern "C" { #endif /* Determine the current locale's character encoding, and canonicalize it into one of the canonical names listed in config.charset. The result must not be freed; it is statically allocated. If the canonical name cannot be determined, the result is a non-canonical name. */ extern const char * locale_charset (void); #ifdef __cplusplus } #endif #endif /* _LOCALCHARSET_H */ gliv-1.9.7/intl/printf-parse.h0000644000076400007640000000431211465576131013501 0ustar gg/* Parse printf format string. Copyright (C) 1999, 2002-2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _PRINTF_PARSE_H #define _PRINTF_PARSE_H #include "printf-args.h" /* Flags */ #define FLAG_GROUP 1 /* ' flag */ #define FLAG_LEFT 2 /* - flag */ #define FLAG_SHOWSIGN 4 /* + flag */ #define FLAG_SPACE 8 /* space flag */ #define FLAG_ALT 16 /* # flag */ #define FLAG_ZERO 32 /* arg_index value indicating that no argument is consumed. */ #define ARG_NONE (~(size_t)0) /* A parsed directive. */ typedef struct { const char* dir_start; const char* dir_end; int flags; const char* width_start; const char* width_end; size_t width_arg_index; const char* precision_start; const char* precision_end; size_t precision_arg_index; char conversion; /* d i o u x X f e E g G c s p n U % but not C S */ size_t arg_index; } char_directive; /* A parsed format string. */ typedef struct { size_t count; char_directive *dir; size_t max_width_length; size_t max_precision_length; } char_directives; /* Parses the format string. Fills in the number N of directives, and fills in directives[0], ..., directives[N-1], and sets directives[N].dir_start to the end of the format string. Also fills in the arg_type fields of the arguments and the needed count of arguments. */ #ifdef STATIC STATIC #else extern #endif int printf_parse (const char *format, char_directives *d, arguments *a); #endif /* _PRINTF_PARSE_H */ gliv-1.9.7/intl/bindtextdom.c0000644000076400007640000002134211465576131013405 0ustar gg/* Implementation of the bindtextdomain(3) function Copyright (C) 1995-1998, 2000-2003, 2005-2006, 2008 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include "gettextP.h" #ifdef _LIBC # include #else # include "libgnuintl.h" #endif /* Handle multi-threaded applications. */ #ifdef _LIBC # include # define gl_rwlock_define __libc_rwlock_define # define gl_rwlock_wrlock __libc_rwlock_wrlock # define gl_rwlock_unlock __libc_rwlock_unlock #else # include "lock.h" #endif /* Some compilers, like SunOS4 cc, don't have offsetof in . */ #ifndef offsetof # define offsetof(type,ident) ((size_t)&(((type*)0)->ident)) #endif /* @@ end of prolog @@ */ /* Lock variable to protect the global data in the gettext implementation. */ gl_rwlock_define (extern, _nl_state_lock attribute_hidden) /* Names for the libintl functions are a problem. They must not clash with existing names and they should follow ANSI C. But this source code is also used in GNU C Library where the names have a __ prefix. So we have to make a difference here. */ #ifdef _LIBC # define BINDTEXTDOMAIN __bindtextdomain # define BIND_TEXTDOMAIN_CODESET __bind_textdomain_codeset # ifndef strdup # define strdup(str) __strdup (str) # endif #else # define BINDTEXTDOMAIN libintl_bindtextdomain # define BIND_TEXTDOMAIN_CODESET libintl_bind_textdomain_codeset #endif /* Specifies the directory name *DIRNAMEP and the output codeset *CODESETP to be used for the DOMAINNAME message catalog. If *DIRNAMEP or *CODESETP is NULL, the corresponding attribute is not modified, only the current value is returned. If DIRNAMEP or CODESETP is NULL, the corresponding attribute is neither modified nor returned. */ static void set_binding_values (const char *domainname, const char **dirnamep, const char **codesetp) { struct binding *binding; int modified; /* Some sanity checks. */ if (domainname == NULL || domainname[0] == '\0') { if (dirnamep) *dirnamep = NULL; if (codesetp) *codesetp = NULL; return; } gl_rwlock_wrlock (_nl_state_lock); modified = 0; for (binding = _nl_domain_bindings; binding != NULL; binding = binding->next) { int compare = strcmp (domainname, binding->domainname); if (compare == 0) /* We found it! */ break; if (compare < 0) { /* It is not in the list. */ binding = NULL; break; } } if (binding != NULL) { if (dirnamep) { const char *dirname = *dirnamep; if (dirname == NULL) /* The current binding has be to returned. */ *dirnamep = binding->dirname; else { /* The domain is already bound. If the new value and the old one are equal we simply do nothing. Otherwise replace the old binding. */ char *result = binding->dirname; if (strcmp (dirname, result) != 0) { if (strcmp (dirname, _nl_default_dirname) == 0) result = (char *) _nl_default_dirname; else { #if defined _LIBC || defined HAVE_STRDUP result = strdup (dirname); #else size_t len = strlen (dirname) + 1; result = (char *) malloc (len); if (__builtin_expect (result != NULL, 1)) memcpy (result, dirname, len); #endif } if (__builtin_expect (result != NULL, 1)) { if (binding->dirname != _nl_default_dirname) free (binding->dirname); binding->dirname = result; modified = 1; } } *dirnamep = result; } } if (codesetp) { const char *codeset = *codesetp; if (codeset == NULL) /* The current binding has be to returned. */ *codesetp = binding->codeset; else { /* The domain is already bound. If the new value and the old one are equal we simply do nothing. Otherwise replace the old binding. */ char *result = binding->codeset; if (result == NULL || strcmp (codeset, result) != 0) { #if defined _LIBC || defined HAVE_STRDUP result = strdup (codeset); #else size_t len = strlen (codeset) + 1; result = (char *) malloc (len); if (__builtin_expect (result != NULL, 1)) memcpy (result, codeset, len); #endif if (__builtin_expect (result != NULL, 1)) { free (binding->codeset); binding->codeset = result; modified = 1; } } *codesetp = result; } } } else if ((dirnamep == NULL || *dirnamep == NULL) && (codesetp == NULL || *codesetp == NULL)) { /* Simply return the default values. */ if (dirnamep) *dirnamep = _nl_default_dirname; if (codesetp) *codesetp = NULL; } else { /* We have to create a new binding. */ size_t len = strlen (domainname) + 1; struct binding *new_binding = (struct binding *) malloc (offsetof (struct binding, domainname) + len); if (__builtin_expect (new_binding == NULL, 0)) goto failed; memcpy (new_binding->domainname, domainname, len); if (dirnamep) { const char *dirname = *dirnamep; if (dirname == NULL) /* The default value. */ dirname = _nl_default_dirname; else { if (strcmp (dirname, _nl_default_dirname) == 0) dirname = _nl_default_dirname; else { char *result; #if defined _LIBC || defined HAVE_STRDUP result = strdup (dirname); if (__builtin_expect (result == NULL, 0)) goto failed_dirname; #else size_t len = strlen (dirname) + 1; result = (char *) malloc (len); if (__builtin_expect (result == NULL, 0)) goto failed_dirname; memcpy (result, dirname, len); #endif dirname = result; } } *dirnamep = dirname; new_binding->dirname = (char *) dirname; } else /* The default value. */ new_binding->dirname = (char *) _nl_default_dirname; if (codesetp) { const char *codeset = *codesetp; if (codeset != NULL) { char *result; #if defined _LIBC || defined HAVE_STRDUP result = strdup (codeset); if (__builtin_expect (result == NULL, 0)) goto failed_codeset; #else size_t len = strlen (codeset) + 1; result = (char *) malloc (len); if (__builtin_expect (result == NULL, 0)) goto failed_codeset; memcpy (result, codeset, len); #endif codeset = result; } *codesetp = codeset; new_binding->codeset = (char *) codeset; } else new_binding->codeset = NULL; /* Now enqueue it. */ if (_nl_domain_bindings == NULL || strcmp (domainname, _nl_domain_bindings->domainname) < 0) { new_binding->next = _nl_domain_bindings; _nl_domain_bindings = new_binding; } else { binding = _nl_domain_bindings; while (binding->next != NULL && strcmp (domainname, binding->next->domainname) > 0) binding = binding->next; new_binding->next = binding->next; binding->next = new_binding; } modified = 1; /* Here we deal with memory allocation failures. */ if (0) { failed_codeset: if (new_binding->dirname != _nl_default_dirname) free (new_binding->dirname); failed_dirname: free (new_binding); failed: if (dirnamep) *dirnamep = NULL; if (codesetp) *codesetp = NULL; } } /* If we modified any binding, we flush the caches. */ if (modified) ++_nl_msg_cat_cntr; gl_rwlock_unlock (_nl_state_lock); } /* Specify that the DOMAINNAME message catalog will be found in DIRNAME rather than in the system locale data base. */ char * BINDTEXTDOMAIN (const char *domainname, const char *dirname) { set_binding_values (domainname, &dirname, NULL); return (char *) dirname; } /* Specify the character encoding in which the messages from the DOMAINNAME message catalog will be returned. */ char * BIND_TEXTDOMAIN_CODESET (const char *domainname, const char *codeset) { set_binding_values (domainname, NULL, &codeset); return (char *) codeset; } #ifdef _LIBC /* Aliases for function names in GNU C Library. */ weak_alias (__bindtextdomain, bindtextdomain); weak_alias (__bind_textdomain_codeset, bind_textdomain_codeset); #endif gliv-1.9.7/intl/printf.c0000644000076400007640000002337411465576131012375 0ustar gg/* Formatted output to strings, using POSIX/XSI format strings with positions. Copyright (C) 2003, 2006-2007, 2009 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #ifdef __GNUC__ # define alloca __builtin_alloca # define HAVE_ALLOCA 1 #else # ifdef _MSC_VER # include # define alloca _alloca # else # if defined HAVE_ALLOCA_H || defined _LIBC # include # else # ifdef _AIX #pragma alloca # else # ifndef alloca char *alloca (); # endif # endif # endif # endif #endif #include #if !HAVE_POSIX_PRINTF #include #include #include #include /* Some systems, like OSF/1 4.0 and Woe32, don't have EOVERFLOW. */ #ifndef EOVERFLOW # define EOVERFLOW E2BIG #endif /* When building a DLL, we must export some functions. Note that because the functions are only defined for binary backward compatibility, we don't need to use __declspec(dllimport) in any case. */ #if HAVE_VISIBILITY && BUILDING_DLL # define DLL_EXPORTED __attribute__((__visibility__("default"))) #elif defined _MSC_VER && BUILDING_DLL # define DLL_EXPORTED __declspec(dllexport) #else # define DLL_EXPORTED #endif #define STATIC static /* This needs to be consistent with libgnuintl.h.in. */ #if defined __NetBSD__ || defined __BEOS__ || defined __CYGWIN__ || defined __MINGW32__ /* Don't break __attribute__((format(printf,M,N))). This redefinition is only possible because the libc in NetBSD, Cygwin, mingw does not have a function __printf__. */ # define libintl_printf __printf__ #endif /* Define auxiliary functions declared in "printf-args.h". */ #include "printf-args.c" /* Define auxiliary functions declared in "printf-parse.h". */ #include "printf-parse.c" /* Define functions declared in "vasnprintf.h". */ #define vasnprintf libintl_vasnprintf #include "vasnprintf.c" #if 0 /* not needed */ #define asnprintf libintl_asnprintf #include "asnprintf.c" #endif DLL_EXPORTED int libintl_vfprintf (FILE *stream, const char *format, va_list args) { if (strchr (format, '$') == NULL) return vfprintf (stream, format, args); else { size_t length; char *result = libintl_vasnprintf (NULL, &length, format, args); int retval = -1; if (result != NULL) { size_t written = fwrite (result, 1, length, stream); free (result); if (written == length) { if (length > INT_MAX) errno = EOVERFLOW; else retval = length; } } return retval; } } DLL_EXPORTED int libintl_fprintf (FILE *stream, const char *format, ...) { va_list args; int retval; va_start (args, format); retval = libintl_vfprintf (stream, format, args); va_end (args); return retval; } DLL_EXPORTED int libintl_vprintf (const char *format, va_list args) { return libintl_vfprintf (stdout, format, args); } DLL_EXPORTED int libintl_printf (const char *format, ...) { va_list args; int retval; va_start (args, format); retval = libintl_vprintf (format, args); va_end (args); return retval; } DLL_EXPORTED int libintl_vsprintf (char *resultbuf, const char *format, va_list args) { if (strchr (format, '$') == NULL) return vsprintf (resultbuf, format, args); else { size_t length = (size_t) ~0 / (4 * sizeof (char)); char *result = libintl_vasnprintf (resultbuf, &length, format, args); if (result != resultbuf) { free (result); return -1; } if (length > INT_MAX) { errno = EOVERFLOW; return -1; } else return length; } } DLL_EXPORTED int libintl_sprintf (char *resultbuf, const char *format, ...) { va_list args; int retval; va_start (args, format); retval = libintl_vsprintf (resultbuf, format, args); va_end (args); return retval; } #if HAVE_SNPRINTF # if HAVE_DECL__SNPRINTF /* Windows. */ # define system_vsnprintf _vsnprintf # else /* Unix. */ # define system_vsnprintf vsnprintf # endif DLL_EXPORTED int libintl_vsnprintf (char *resultbuf, size_t length, const char *format, va_list args) { if (strchr (format, '$') == NULL) return system_vsnprintf (resultbuf, length, format, args); else { size_t maxlength = length; char *result = libintl_vasnprintf (resultbuf, &length, format, args); if (result != resultbuf) { if (maxlength > 0) { size_t pruned_length = (length < maxlength ? length : maxlength - 1); memcpy (resultbuf, result, pruned_length); resultbuf[pruned_length] = '\0'; } free (result); } if (length > INT_MAX) { errno = EOVERFLOW; return -1; } else return length; } } DLL_EXPORTED int libintl_snprintf (char *resultbuf, size_t length, const char *format, ...) { va_list args; int retval; va_start (args, format); retval = libintl_vsnprintf (resultbuf, length, format, args); va_end (args); return retval; } #endif #if HAVE_ASPRINTF DLL_EXPORTED int libintl_vasprintf (char **resultp, const char *format, va_list args) { size_t length; char *result = libintl_vasnprintf (NULL, &length, format, args); if (result == NULL) return -1; if (length > INT_MAX) { free (result); errno = EOVERFLOW; return -1; } *resultp = result; return length; } DLL_EXPORTED int libintl_asprintf (char **resultp, const char *format, ...) { va_list args; int retval; va_start (args, format); retval = libintl_vasprintf (resultp, format, args); va_end (args); return retval; } #endif #if HAVE_FWPRINTF #include #define WIDE_CHAR_VERSION 1 #include "wprintf-parse.h" /* Define auxiliary functions declared in "wprintf-parse.h". */ #define CHAR_T wchar_t #define DIRECTIVE wchar_t_directive #define DIRECTIVES wchar_t_directives #define PRINTF_PARSE wprintf_parse #include "printf-parse.c" /* Define functions declared in "vasnprintf.h". */ #define vasnwprintf libintl_vasnwprintf #include "vasnprintf.c" #if 0 /* not needed */ #define asnwprintf libintl_asnwprintf #include "asnprintf.c" #endif # if HAVE_DECL__SNWPRINTF /* Windows. */ # define system_vswprintf _vsnwprintf # else /* Unix. */ # define system_vswprintf vswprintf # endif DLL_EXPORTED int libintl_vfwprintf (FILE *stream, const wchar_t *format, va_list args) { if (wcschr (format, '$') == NULL) return vfwprintf (stream, format, args); else { size_t length; wchar_t *result = libintl_vasnwprintf (NULL, &length, format, args); int retval = -1; if (result != NULL) { size_t i; for (i = 0; i < length; i++) if (fputwc (result[i], stream) == WEOF) break; free (result); if (i == length) { if (length > INT_MAX) errno = EOVERFLOW; else retval = length; } } return retval; } } DLL_EXPORTED int libintl_fwprintf (FILE *stream, const wchar_t *format, ...) { va_list args; int retval; va_start (args, format); retval = libintl_vfwprintf (stream, format, args); va_end (args); return retval; } DLL_EXPORTED int libintl_vwprintf (const wchar_t *format, va_list args) { return libintl_vfwprintf (stdout, format, args); } DLL_EXPORTED int libintl_wprintf (const wchar_t *format, ...) { va_list args; int retval; va_start (args, format); retval = libintl_vwprintf (format, args); va_end (args); return retval; } DLL_EXPORTED int libintl_vswprintf (wchar_t *resultbuf, size_t length, const wchar_t *format, va_list args) { if (wcschr (format, '$') == NULL) return system_vswprintf (resultbuf, length, format, args); else { size_t maxlength = length; wchar_t *result = libintl_vasnwprintf (resultbuf, &length, format, args); if (result != resultbuf) { if (maxlength > 0) { size_t pruned_length = (length < maxlength ? length : maxlength - 1); memcpy (resultbuf, result, pruned_length * sizeof (wchar_t)); resultbuf[pruned_length] = 0; } free (result); /* Unlike vsnprintf, which has to return the number of character that would have been produced if the resultbuf had been sufficiently large, the vswprintf function has to return a negative value if the resultbuf was not sufficiently large. */ if (length >= maxlength) return -1; } if (length > INT_MAX) { errno = EOVERFLOW; return -1; } else return length; } } DLL_EXPORTED int libintl_swprintf (wchar_t *resultbuf, size_t length, const wchar_t *format, ...) { va_list args; int retval; va_start (args, format); retval = libintl_vswprintf (resultbuf, length, format, args); va_end (args); return retval; } #endif #endif gliv-1.9.7/intl/xsize.h0000644000076400007640000000673411465576131012243 0ustar gg/* xsize.h -- Checked size_t computations. Copyright (C) 2003, 2008 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _XSIZE_H #define _XSIZE_H /* Get size_t. */ #include /* Get SIZE_MAX. */ #include #if HAVE_STDINT_H # include #endif /* The size of memory objects is often computed through expressions of type size_t. Example: void* p = malloc (header_size + n * element_size). These computations can lead to overflow. When this happens, malloc() returns a piece of memory that is way too small, and the program then crashes while attempting to fill the memory. To avoid this, the functions and macros in this file check for overflow. The convention is that SIZE_MAX represents overflow. malloc (SIZE_MAX) is not guaranteed to fail -- think of a malloc implementation that uses mmap --, it's recommended to use size_overflow_p() or size_in_bounds_p() before invoking malloc(). The example thus becomes: size_t size = xsum (header_size, xtimes (n, element_size)); void *p = (size_in_bounds_p (size) ? malloc (size) : NULL); */ /* Convert an arbitrary value >= 0 to type size_t. */ #define xcast_size_t(N) \ ((N) <= SIZE_MAX ? (size_t) (N) : SIZE_MAX) /* Sum of two sizes, with overflow check. */ static inline size_t #if __GNUC__ >= 3 __attribute__ ((__pure__)) #endif xsum (size_t size1, size_t size2) { size_t sum = size1 + size2; return (sum >= size1 ? sum : SIZE_MAX); } /* Sum of three sizes, with overflow check. */ static inline size_t #if __GNUC__ >= 3 __attribute__ ((__pure__)) #endif xsum3 (size_t size1, size_t size2, size_t size3) { return xsum (xsum (size1, size2), size3); } /* Sum of four sizes, with overflow check. */ static inline size_t #if __GNUC__ >= 3 __attribute__ ((__pure__)) #endif xsum4 (size_t size1, size_t size2, size_t size3, size_t size4) { return xsum (xsum (xsum (size1, size2), size3), size4); } /* Maximum of two sizes, with overflow check. */ static inline size_t #if __GNUC__ >= 3 __attribute__ ((__pure__)) #endif xmax (size_t size1, size_t size2) { /* No explicit check is needed here, because for any n: max (SIZE_MAX, n) == SIZE_MAX and max (n, SIZE_MAX) == SIZE_MAX. */ return (size1 >= size2 ? size1 : size2); } /* Multiplication of a count with an element size, with overflow check. The count must be >= 0 and the element size must be > 0. This is a macro, not an inline function, so that it works correctly even when N is of a wider type and N > SIZE_MAX. */ #define xtimes(N, ELSIZE) \ ((N) <= SIZE_MAX / (ELSIZE) ? (size_t) (N) * (ELSIZE) : SIZE_MAX) /* Check for overflow. */ #define size_overflow_p(SIZE) \ ((SIZE) == SIZE_MAX) /* Check against overflow. */ #define size_in_bounds_p(SIZE) \ ((SIZE) != SIZE_MAX) #endif /* _XSIZE_H */ gliv-1.9.7/intl/ref-del.sin0000644000076400007640000000203011465576131012742 0ustar gg# Remove this package from a list of references stored in a text file. # # Copyright (C) 2000 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU Library 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 # Library General Public License for more details. # # You should have received a copy of the GNU Library General Public # License along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, # USA. # # Written by Bruno Haible . # /^# Packages using this file: / { s/# Packages using this file:// s/ @PACKAGE@ / / s/^/# Packages using this file:/ } gliv-1.9.7/intl/version.c0000644000076400007640000000173111465576131012551 0ustar gg/* libintl library version. Copyright (C) 2005 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include "libgnuintl.h" /* Version number: (major<<16) + (minor<<8) + subminor */ int libintl_version = LIBINTL_VERSION; gliv-1.9.7/intl/printf-parse.c0000644000076400007640000005214011465576131013476 0ustar gg/* Formatted output to strings. Copyright (C) 1999-2000, 2002-2003, 2006-2008 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* This file can be parametrized with the following macros: CHAR_T The element type of the format string. CHAR_T_ONLY_ASCII Set to 1 to enable verification that all characters in the format string are ASCII. DIRECTIVE Structure denoting a format directive. Depends on CHAR_T. DIRECTIVES Structure denoting the set of format directives of a format string. Depends on CHAR_T. PRINTF_PARSE Function that parses a format string. Depends on CHAR_T. STATIC Set to 'static' to declare the function static. ENABLE_UNISTDIO Set to 1 to enable the unistdio extensions. */ #ifndef PRINTF_PARSE # include #endif /* Specification. */ #ifndef PRINTF_PARSE # include "printf-parse.h" #endif /* Default parameters. */ #ifndef PRINTF_PARSE # define PRINTF_PARSE printf_parse # define CHAR_T char # define DIRECTIVE char_directive # define DIRECTIVES char_directives #endif /* Get size_t, NULL. */ #include /* Get intmax_t. */ #if defined IN_LIBINTL || defined IN_LIBASPRINTF # if HAVE_STDINT_H_WITH_UINTMAX # include # endif # if HAVE_INTTYPES_H_WITH_UINTMAX # include # endif #else # include #endif /* malloc(), realloc(), free(). */ #include /* errno. */ #include /* Checked size_t computations. */ #include "xsize.h" #if CHAR_T_ONLY_ASCII /* c_isascii(). */ # include "c-ctype.h" #endif #ifdef STATIC STATIC #endif int PRINTF_PARSE (const CHAR_T *format, DIRECTIVES *d, arguments *a) { const CHAR_T *cp = format; /* pointer into format */ size_t arg_posn = 0; /* number of regular arguments consumed */ size_t d_allocated; /* allocated elements of d->dir */ size_t a_allocated; /* allocated elements of a->arg */ size_t max_width_length = 0; size_t max_precision_length = 0; d->count = 0; d_allocated = 1; d->dir = (DIRECTIVE *) malloc (d_allocated * sizeof (DIRECTIVE)); if (d->dir == NULL) /* Out of memory. */ goto out_of_memory_1; a->count = 0; a_allocated = 0; a->arg = NULL; #define REGISTER_ARG(_index_,_type_) \ { \ size_t n = (_index_); \ if (n >= a_allocated) \ { \ size_t memory_size; \ argument *memory; \ \ a_allocated = xtimes (a_allocated, 2); \ if (a_allocated <= n) \ a_allocated = xsum (n, 1); \ memory_size = xtimes (a_allocated, sizeof (argument)); \ if (size_overflow_p (memory_size)) \ /* Overflow, would lead to out of memory. */ \ goto out_of_memory; \ memory = (argument *) (a->arg \ ? realloc (a->arg, memory_size) \ : malloc (memory_size)); \ if (memory == NULL) \ /* Out of memory. */ \ goto out_of_memory; \ a->arg = memory; \ } \ while (a->count <= n) \ a->arg[a->count++].type = TYPE_NONE; \ if (a->arg[n].type == TYPE_NONE) \ a->arg[n].type = (_type_); \ else if (a->arg[n].type != (_type_)) \ /* Ambiguous type for positional argument. */ \ goto error; \ } while (*cp != '\0') { CHAR_T c = *cp++; if (c == '%') { size_t arg_index = ARG_NONE; DIRECTIVE *dp = &d->dir[d->count]; /* pointer to next directive */ /* Initialize the next directive. */ dp->dir_start = cp - 1; dp->flags = 0; dp->width_start = NULL; dp->width_end = NULL; dp->width_arg_index = ARG_NONE; dp->precision_start = NULL; dp->precision_end = NULL; dp->precision_arg_index = ARG_NONE; dp->arg_index = ARG_NONE; /* Test for positional argument. */ if (*cp >= '0' && *cp <= '9') { const CHAR_T *np; for (np = cp; *np >= '0' && *np <= '9'; np++) ; if (*np == '$') { size_t n = 0; for (np = cp; *np >= '0' && *np <= '9'; np++) n = xsum (xtimes (n, 10), *np - '0'); if (n == 0) /* Positional argument 0. */ goto error; if (size_overflow_p (n)) /* n too large, would lead to out of memory later. */ goto error; arg_index = n - 1; cp = np + 1; } } /* Read the flags. */ for (;;) { if (*cp == '\'') { dp->flags |= FLAG_GROUP; cp++; } else if (*cp == '-') { dp->flags |= FLAG_LEFT; cp++; } else if (*cp == '+') { dp->flags |= FLAG_SHOWSIGN; cp++; } else if (*cp == ' ') { dp->flags |= FLAG_SPACE; cp++; } else if (*cp == '#') { dp->flags |= FLAG_ALT; cp++; } else if (*cp == '0') { dp->flags |= FLAG_ZERO; cp++; } else break; } /* Parse the field width. */ if (*cp == '*') { dp->width_start = cp; cp++; dp->width_end = cp; if (max_width_length < 1) max_width_length = 1; /* Test for positional argument. */ if (*cp >= '0' && *cp <= '9') { const CHAR_T *np; for (np = cp; *np >= '0' && *np <= '9'; np++) ; if (*np == '$') { size_t n = 0; for (np = cp; *np >= '0' && *np <= '9'; np++) n = xsum (xtimes (n, 10), *np - '0'); if (n == 0) /* Positional argument 0. */ goto error; if (size_overflow_p (n)) /* n too large, would lead to out of memory later. */ goto error; dp->width_arg_index = n - 1; cp = np + 1; } } if (dp->width_arg_index == ARG_NONE) { dp->width_arg_index = arg_posn++; if (dp->width_arg_index == ARG_NONE) /* arg_posn wrapped around. */ goto error; } REGISTER_ARG (dp->width_arg_index, TYPE_INT); } else if (*cp >= '0' && *cp <= '9') { size_t width_length; dp->width_start = cp; for (; *cp >= '0' && *cp <= '9'; cp++) ; dp->width_end = cp; width_length = dp->width_end - dp->width_start; if (max_width_length < width_length) max_width_length = width_length; } /* Parse the precision. */ if (*cp == '.') { cp++; if (*cp == '*') { dp->precision_start = cp - 1; cp++; dp->precision_end = cp; if (max_precision_length < 2) max_precision_length = 2; /* Test for positional argument. */ if (*cp >= '0' && *cp <= '9') { const CHAR_T *np; for (np = cp; *np >= '0' && *np <= '9'; np++) ; if (*np == '$') { size_t n = 0; for (np = cp; *np >= '0' && *np <= '9'; np++) n = xsum (xtimes (n, 10), *np - '0'); if (n == 0) /* Positional argument 0. */ goto error; if (size_overflow_p (n)) /* n too large, would lead to out of memory later. */ goto error; dp->precision_arg_index = n - 1; cp = np + 1; } } if (dp->precision_arg_index == ARG_NONE) { dp->precision_arg_index = arg_posn++; if (dp->precision_arg_index == ARG_NONE) /* arg_posn wrapped around. */ goto error; } REGISTER_ARG (dp->precision_arg_index, TYPE_INT); } else { size_t precision_length; dp->precision_start = cp - 1; for (; *cp >= '0' && *cp <= '9'; cp++) ; dp->precision_end = cp; precision_length = dp->precision_end - dp->precision_start; if (max_precision_length < precision_length) max_precision_length = precision_length; } } { arg_type type; /* Parse argument type/size specifiers. */ { int flags = 0; for (;;) { if (*cp == 'h') { flags |= (1 << (flags & 1)); cp++; } else if (*cp == 'L') { flags |= 4; cp++; } else if (*cp == 'l') { flags += 8; cp++; } else if (*cp == 'j') { if (sizeof (intmax_t) > sizeof (long)) { /* intmax_t = long long */ flags += 16; } else if (sizeof (intmax_t) > sizeof (int)) { /* intmax_t = long */ flags += 8; } cp++; } else if (*cp == 'z' || *cp == 'Z') { /* 'z' is standardized in ISO C 99, but glibc uses 'Z' because the warning facility in gcc-2.95.2 understands only 'Z' (see gcc-2.95.2/gcc/c-common.c:1784). */ if (sizeof (size_t) > sizeof (long)) { /* size_t = long long */ flags += 16; } else if (sizeof (size_t) > sizeof (int)) { /* size_t = long */ flags += 8; } cp++; } else if (*cp == 't') { if (sizeof (ptrdiff_t) > sizeof (long)) { /* ptrdiff_t = long long */ flags += 16; } else if (sizeof (ptrdiff_t) > sizeof (int)) { /* ptrdiff_t = long */ flags += 8; } cp++; } #if defined __APPLE__ && defined __MACH__ /* On MacOS X 10.3, PRIdMAX is defined as "qd". We cannot change it to "lld" because PRIdMAX must also be understood by the system's printf routines. */ else if (*cp == 'q') { if (64 / 8 > sizeof (long)) { /* int64_t = long long */ flags += 16; } else { /* int64_t = long */ flags += 8; } cp++; } #endif #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ /* On native Win32, PRIdMAX is defined as "I64d". We cannot change it to "lld" because PRIdMAX must also be understood by the system's printf routines. */ else if (*cp == 'I' && cp[1] == '6' && cp[2] == '4') { if (64 / 8 > sizeof (long)) { /* __int64 = long long */ flags += 16; } else { /* __int64 = long */ flags += 8; } cp += 3; } #endif else break; } /* Read the conversion character. */ c = *cp++; switch (c) { case 'd': case 'i': #if HAVE_LONG_LONG_INT /* If 'long long' exists and is larger than 'long': */ if (flags >= 16 || (flags & 4)) type = TYPE_LONGLONGINT; else #endif /* If 'long long' exists and is the same as 'long', we parse "lld" into TYPE_LONGINT. */ if (flags >= 8) type = TYPE_LONGINT; else if (flags & 2) type = TYPE_SCHAR; else if (flags & 1) type = TYPE_SHORT; else type = TYPE_INT; break; case 'o': case 'u': case 'x': case 'X': #if HAVE_LONG_LONG_INT /* If 'long long' exists and is larger than 'long': */ if (flags >= 16 || (flags & 4)) type = TYPE_ULONGLONGINT; else #endif /* If 'unsigned long long' exists and is the same as 'unsigned long', we parse "llu" into TYPE_ULONGINT. */ if (flags >= 8) type = TYPE_ULONGINT; else if (flags & 2) type = TYPE_UCHAR; else if (flags & 1) type = TYPE_USHORT; else type = TYPE_UINT; break; case 'f': case 'F': case 'e': case 'E': case 'g': case 'G': case 'a': case 'A': if (flags >= 16 || (flags & 4)) type = TYPE_LONGDOUBLE; else type = TYPE_DOUBLE; break; case 'c': if (flags >= 8) #if HAVE_WINT_T type = TYPE_WIDE_CHAR; #else goto error; #endif else type = TYPE_CHAR; break; #if HAVE_WINT_T case 'C': type = TYPE_WIDE_CHAR; c = 'c'; break; #endif case 's': if (flags >= 8) #if HAVE_WCHAR_T type = TYPE_WIDE_STRING; #else goto error; #endif else type = TYPE_STRING; break; #if HAVE_WCHAR_T case 'S': type = TYPE_WIDE_STRING; c = 's'; break; #endif case 'p': type = TYPE_POINTER; break; case 'n': #if HAVE_LONG_LONG_INT /* If 'long long' exists and is larger than 'long': */ if (flags >= 16 || (flags & 4)) type = TYPE_COUNT_LONGLONGINT_POINTER; else #endif /* If 'long long' exists and is the same as 'long', we parse "lln" into TYPE_COUNT_LONGINT_POINTER. */ if (flags >= 8) type = TYPE_COUNT_LONGINT_POINTER; else if (flags & 2) type = TYPE_COUNT_SCHAR_POINTER; else if (flags & 1) type = TYPE_COUNT_SHORT_POINTER; else type = TYPE_COUNT_INT_POINTER; break; #if ENABLE_UNISTDIO /* The unistdio extensions. */ case 'U': if (flags >= 16) type = TYPE_U32_STRING; else if (flags >= 8) type = TYPE_U16_STRING; else type = TYPE_U8_STRING; break; #endif case '%': type = TYPE_NONE; break; default: /* Unknown conversion character. */ goto error; } } if (type != TYPE_NONE) { dp->arg_index = arg_index; if (dp->arg_index == ARG_NONE) { dp->arg_index = arg_posn++; if (dp->arg_index == ARG_NONE) /* arg_posn wrapped around. */ goto error; } REGISTER_ARG (dp->arg_index, type); } dp->conversion = c; dp->dir_end = cp; } d->count++; if (d->count >= d_allocated) { size_t memory_size; DIRECTIVE *memory; d_allocated = xtimes (d_allocated, 2); memory_size = xtimes (d_allocated, sizeof (DIRECTIVE)); if (size_overflow_p (memory_size)) /* Overflow, would lead to out of memory. */ goto out_of_memory; memory = (DIRECTIVE *) realloc (d->dir, memory_size); if (memory == NULL) /* Out of memory. */ goto out_of_memory; d->dir = memory; } } #if CHAR_T_ONLY_ASCII else if (!c_isascii (c)) { /* Non-ASCII character. Not supported. */ goto error; } #endif } d->dir[d->count].dir_start = cp; d->max_width_length = max_width_length; d->max_precision_length = max_precision_length; return 0; error: if (a->arg) free (a->arg); if (d->dir) free (d->dir); errno = EINVAL; return -1; out_of_memory: if (a->arg) free (a->arg); if (d->dir) free (d->dir); out_of_memory_1: errno = ENOMEM; return -1; } #undef PRINTF_PARSE #undef DIRECTIVES #undef DIRECTIVE #undef CHAR_T_ONLY_ASCII #undef CHAR_T gliv-1.9.7/intl/lock.h0000644000076400007640000010667711465576131012040 0ustar gg/* Locking in multithreaded situations. Copyright (C) 2005-2008 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Written by Bruno Haible , 2005. Based on GCC's gthr-posix.h, gthr-posix95.h, gthr-solaris.h, gthr-win32.h. */ /* This file contains locking primitives for use with a given thread library. It does not contain primitives for creating threads or for other synchronization primitives. Normal (non-recursive) locks: Type: gl_lock_t Declaration: gl_lock_define(extern, name) Initializer: gl_lock_define_initialized(, name) Initialization: gl_lock_init (name); Taking the lock: gl_lock_lock (name); Releasing the lock: gl_lock_unlock (name); De-initialization: gl_lock_destroy (name); Equivalent functions with control of error handling: Initialization: err = glthread_lock_init (&name); Taking the lock: err = glthread_lock_lock (&name); Releasing the lock: err = glthread_lock_unlock (&name); De-initialization: err = glthread_lock_destroy (&name); Read-Write (non-recursive) locks: Type: gl_rwlock_t Declaration: gl_rwlock_define(extern, name) Initializer: gl_rwlock_define_initialized(, name) Initialization: gl_rwlock_init (name); Taking the lock: gl_rwlock_rdlock (name); gl_rwlock_wrlock (name); Releasing the lock: gl_rwlock_unlock (name); De-initialization: gl_rwlock_destroy (name); Equivalent functions with control of error handling: Initialization: err = glthread_rwlock_init (&name); Taking the lock: err = glthread_rwlock_rdlock (&name); err = glthread_rwlock_wrlock (&name); Releasing the lock: err = glthread_rwlock_unlock (&name); De-initialization: err = glthread_rwlock_destroy (&name); Recursive locks: Type: gl_recursive_lock_t Declaration: gl_recursive_lock_define(extern, name) Initializer: gl_recursive_lock_define_initialized(, name) Initialization: gl_recursive_lock_init (name); Taking the lock: gl_recursive_lock_lock (name); Releasing the lock: gl_recursive_lock_unlock (name); De-initialization: gl_recursive_lock_destroy (name); Equivalent functions with control of error handling: Initialization: err = glthread_recursive_lock_init (&name); Taking the lock: err = glthread_recursive_lock_lock (&name); Releasing the lock: err = glthread_recursive_lock_unlock (&name); De-initialization: err = glthread_recursive_lock_destroy (&name); Once-only execution: Type: gl_once_t Initializer: gl_once_define(extern, name) Execution: gl_once (name, initfunction); Equivalent functions with control of error handling: Execution: err = glthread_once (&name, initfunction); */ #ifndef _LOCK_H #define _LOCK_H #include #include /* ========================================================================= */ #if USE_POSIX_THREADS /* Use the POSIX threads library. */ # include # ifdef __cplusplus extern "C" { # endif # if PTHREAD_IN_USE_DETECTION_HARD /* The pthread_in_use() detection needs to be done at runtime. */ # define pthread_in_use() \ glthread_in_use () extern int glthread_in_use (void); # endif # if USE_POSIX_THREADS_WEAK /* Use weak references to the POSIX threads library. */ /* Weak references avoid dragging in external libraries if the other parts of the program don't use them. Here we use them, because we don't want every program that uses libintl to depend on libpthread. This assumes that libpthread would not be loaded after libintl; i.e. if libintl is loaded first, by an executable that does not depend on libpthread, and then a module is dynamically loaded that depends on libpthread, libintl will not be multithread-safe. */ /* The way to test at runtime whether libpthread is present is to test whether a function pointer's value, such as &pthread_mutex_init, is non-NULL. However, some versions of GCC have a bug through which, in PIC mode, &foo != NULL always evaluates to true if there is a direct call to foo(...) in the same function. To avoid this, we test the address of a function in libpthread that we don't use. */ # pragma weak pthread_mutex_init # pragma weak pthread_mutex_lock # pragma weak pthread_mutex_unlock # pragma weak pthread_mutex_destroy # pragma weak pthread_rwlock_init # pragma weak pthread_rwlock_rdlock # pragma weak pthread_rwlock_wrlock # pragma weak pthread_rwlock_unlock # pragma weak pthread_rwlock_destroy # pragma weak pthread_once # pragma weak pthread_cond_init # pragma weak pthread_cond_wait # pragma weak pthread_cond_signal # pragma weak pthread_cond_broadcast # pragma weak pthread_cond_destroy # pragma weak pthread_mutexattr_init # pragma weak pthread_mutexattr_settype # pragma weak pthread_mutexattr_destroy # ifndef pthread_self # pragma weak pthread_self # endif # if !PTHREAD_IN_USE_DETECTION_HARD # pragma weak pthread_cancel # define pthread_in_use() (pthread_cancel != NULL) # endif # else # if !PTHREAD_IN_USE_DETECTION_HARD # define pthread_in_use() 1 # endif # endif /* -------------------------- gl_lock_t datatype -------------------------- */ typedef pthread_mutex_t gl_lock_t; # define gl_lock_define(STORAGECLASS, NAME) \ STORAGECLASS pthread_mutex_t NAME; # define gl_lock_define_initialized(STORAGECLASS, NAME) \ STORAGECLASS pthread_mutex_t NAME = gl_lock_initializer; # define gl_lock_initializer \ PTHREAD_MUTEX_INITIALIZER # define glthread_lock_init(LOCK) \ (pthread_in_use () ? pthread_mutex_init (LOCK, NULL) : 0) # define glthread_lock_lock(LOCK) \ (pthread_in_use () ? pthread_mutex_lock (LOCK) : 0) # define glthread_lock_unlock(LOCK) \ (pthread_in_use () ? pthread_mutex_unlock (LOCK) : 0) # define glthread_lock_destroy(LOCK) \ (pthread_in_use () ? pthread_mutex_destroy (LOCK) : 0) /* ------------------------- gl_rwlock_t datatype ------------------------- */ # if HAVE_PTHREAD_RWLOCK # ifdef PTHREAD_RWLOCK_INITIALIZER typedef pthread_rwlock_t gl_rwlock_t; # define gl_rwlock_define(STORAGECLASS, NAME) \ STORAGECLASS pthread_rwlock_t NAME; # define gl_rwlock_define_initialized(STORAGECLASS, NAME) \ STORAGECLASS pthread_rwlock_t NAME = gl_rwlock_initializer; # define gl_rwlock_initializer \ PTHREAD_RWLOCK_INITIALIZER # define glthread_rwlock_init(LOCK) \ (pthread_in_use () ? pthread_rwlock_init (LOCK, NULL) : 0) # define glthread_rwlock_rdlock(LOCK) \ (pthread_in_use () ? pthread_rwlock_rdlock (LOCK) : 0) # define glthread_rwlock_wrlock(LOCK) \ (pthread_in_use () ? pthread_rwlock_wrlock (LOCK) : 0) # define glthread_rwlock_unlock(LOCK) \ (pthread_in_use () ? pthread_rwlock_unlock (LOCK) : 0) # define glthread_rwlock_destroy(LOCK) \ (pthread_in_use () ? pthread_rwlock_destroy (LOCK) : 0) # else typedef struct { int initialized; pthread_mutex_t guard; /* protects the initialization */ pthread_rwlock_t rwlock; /* read-write lock */ } gl_rwlock_t; # define gl_rwlock_define(STORAGECLASS, NAME) \ STORAGECLASS gl_rwlock_t NAME; # define gl_rwlock_define_initialized(STORAGECLASS, NAME) \ STORAGECLASS gl_rwlock_t NAME = gl_rwlock_initializer; # define gl_rwlock_initializer \ { 0, PTHREAD_MUTEX_INITIALIZER } # define glthread_rwlock_init(LOCK) \ (pthread_in_use () ? glthread_rwlock_init_multithreaded (LOCK) : 0) # define glthread_rwlock_rdlock(LOCK) \ (pthread_in_use () ? glthread_rwlock_rdlock_multithreaded (LOCK) : 0) # define glthread_rwlock_wrlock(LOCK) \ (pthread_in_use () ? glthread_rwlock_wrlock_multithreaded (LOCK) : 0) # define glthread_rwlock_unlock(LOCK) \ (pthread_in_use () ? glthread_rwlock_unlock_multithreaded (LOCK) : 0) # define glthread_rwlock_destroy(LOCK) \ (pthread_in_use () ? glthread_rwlock_destroy_multithreaded (LOCK) : 0) extern int glthread_rwlock_init_multithreaded (gl_rwlock_t *lock); extern int glthread_rwlock_rdlock_multithreaded (gl_rwlock_t *lock); extern int glthread_rwlock_wrlock_multithreaded (gl_rwlock_t *lock); extern int glthread_rwlock_unlock_multithreaded (gl_rwlock_t *lock); extern int glthread_rwlock_destroy_multithreaded (gl_rwlock_t *lock); # endif # else typedef struct { pthread_mutex_t lock; /* protects the remaining fields */ pthread_cond_t waiting_readers; /* waiting readers */ pthread_cond_t waiting_writers; /* waiting writers */ unsigned int waiting_writers_count; /* number of waiting writers */ int runcount; /* number of readers running, or -1 when a writer runs */ } gl_rwlock_t; # define gl_rwlock_define(STORAGECLASS, NAME) \ STORAGECLASS gl_rwlock_t NAME; # define gl_rwlock_define_initialized(STORAGECLASS, NAME) \ STORAGECLASS gl_rwlock_t NAME = gl_rwlock_initializer; # define gl_rwlock_initializer \ { PTHREAD_MUTEX_INITIALIZER, PTHREAD_COND_INITIALIZER, PTHREAD_COND_INITIALIZER, 0, 0 } # define glthread_rwlock_init(LOCK) \ (pthread_in_use () ? glthread_rwlock_init_multithreaded (LOCK) : 0) # define glthread_rwlock_rdlock(LOCK) \ (pthread_in_use () ? glthread_rwlock_rdlock_multithreaded (LOCK) : 0) # define glthread_rwlock_wrlock(LOCK) \ (pthread_in_use () ? glthread_rwlock_wrlock_multithreaded (LOCK) : 0) # define glthread_rwlock_unlock(LOCK) \ (pthread_in_use () ? glthread_rwlock_unlock_multithreaded (LOCK) : 0) # define glthread_rwlock_destroy(LOCK) \ (pthread_in_use () ? glthread_rwlock_destroy_multithreaded (LOCK) : 0) extern int glthread_rwlock_init_multithreaded (gl_rwlock_t *lock); extern int glthread_rwlock_rdlock_multithreaded (gl_rwlock_t *lock); extern int glthread_rwlock_wrlock_multithreaded (gl_rwlock_t *lock); extern int glthread_rwlock_unlock_multithreaded (gl_rwlock_t *lock); extern int glthread_rwlock_destroy_multithreaded (gl_rwlock_t *lock); # endif /* --------------------- gl_recursive_lock_t datatype --------------------- */ # if HAVE_PTHREAD_MUTEX_RECURSIVE # if defined PTHREAD_RECURSIVE_MUTEX_INITIALIZER || defined PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP typedef pthread_mutex_t gl_recursive_lock_t; # define gl_recursive_lock_define(STORAGECLASS, NAME) \ STORAGECLASS pthread_mutex_t NAME; # define gl_recursive_lock_define_initialized(STORAGECLASS, NAME) \ STORAGECLASS pthread_mutex_t NAME = gl_recursive_lock_initializer; # ifdef PTHREAD_RECURSIVE_MUTEX_INITIALIZER # define gl_recursive_lock_initializer \ PTHREAD_RECURSIVE_MUTEX_INITIALIZER # else # define gl_recursive_lock_initializer \ PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP # endif # define glthread_recursive_lock_init(LOCK) \ (pthread_in_use () ? glthread_recursive_lock_init_multithreaded (LOCK) : 0) # define glthread_recursive_lock_lock(LOCK) \ (pthread_in_use () ? pthread_mutex_lock (LOCK) : 0) # define glthread_recursive_lock_unlock(LOCK) \ (pthread_in_use () ? pthread_mutex_unlock (LOCK) : 0) # define glthread_recursive_lock_destroy(LOCK) \ (pthread_in_use () ? pthread_mutex_destroy (LOCK) : 0) extern int glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock); # else typedef struct { pthread_mutex_t recmutex; /* recursive mutex */ pthread_mutex_t guard; /* protects the initialization */ int initialized; } gl_recursive_lock_t; # define gl_recursive_lock_define(STORAGECLASS, NAME) \ STORAGECLASS gl_recursive_lock_t NAME; # define gl_recursive_lock_define_initialized(STORAGECLASS, NAME) \ STORAGECLASS gl_recursive_lock_t NAME = gl_recursive_lock_initializer; # define gl_recursive_lock_initializer \ { PTHREAD_MUTEX_INITIALIZER, PTHREAD_MUTEX_INITIALIZER, 0 } # define glthread_recursive_lock_init(LOCK) \ (pthread_in_use () ? glthread_recursive_lock_init_multithreaded (LOCK) : 0) # define glthread_recursive_lock_lock(LOCK) \ (pthread_in_use () ? glthread_recursive_lock_lock_multithreaded (LOCK) : 0) # define glthread_recursive_lock_unlock(LOCK) \ (pthread_in_use () ? glthread_recursive_lock_unlock_multithreaded (LOCK) : 0) # define glthread_recursive_lock_destroy(LOCK) \ (pthread_in_use () ? glthread_recursive_lock_destroy_multithreaded (LOCK) : 0) extern int glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock); extern int glthread_recursive_lock_lock_multithreaded (gl_recursive_lock_t *lock); extern int glthread_recursive_lock_unlock_multithreaded (gl_recursive_lock_t *lock); extern int glthread_recursive_lock_destroy_multithreaded (gl_recursive_lock_t *lock); # endif # else /* Old versions of POSIX threads on Solaris did not have recursive locks. We have to implement them ourselves. */ typedef struct { pthread_mutex_t mutex; pthread_t owner; unsigned long depth; } gl_recursive_lock_t; # define gl_recursive_lock_define(STORAGECLASS, NAME) \ STORAGECLASS gl_recursive_lock_t NAME; # define gl_recursive_lock_define_initialized(STORAGECLASS, NAME) \ STORAGECLASS gl_recursive_lock_t NAME = gl_recursive_lock_initializer; # define gl_recursive_lock_initializer \ { PTHREAD_MUTEX_INITIALIZER, (pthread_t) 0, 0 } # define glthread_recursive_lock_init(LOCK) \ (pthread_in_use () ? glthread_recursive_lock_init_multithreaded (LOCK) : 0) # define glthread_recursive_lock_lock(LOCK) \ (pthread_in_use () ? glthread_recursive_lock_lock_multithreaded (LOCK) : 0) # define glthread_recursive_lock_unlock(LOCK) \ (pthread_in_use () ? glthread_recursive_lock_unlock_multithreaded (LOCK) : 0) # define glthread_recursive_lock_destroy(LOCK) \ (pthread_in_use () ? glthread_recursive_lock_destroy_multithreaded (LOCK) : 0) extern int glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock); extern int glthread_recursive_lock_lock_multithreaded (gl_recursive_lock_t *lock); extern int glthread_recursive_lock_unlock_multithreaded (gl_recursive_lock_t *lock); extern int glthread_recursive_lock_destroy_multithreaded (gl_recursive_lock_t *lock); # endif /* -------------------------- gl_once_t datatype -------------------------- */ typedef pthread_once_t gl_once_t; # define gl_once_define(STORAGECLASS, NAME) \ STORAGECLASS pthread_once_t NAME = PTHREAD_ONCE_INIT; # define glthread_once(ONCE_CONTROL, INITFUNCTION) \ (pthread_in_use () \ ? pthread_once (ONCE_CONTROL, INITFUNCTION) \ : (glthread_once_singlethreaded (ONCE_CONTROL) ? (INITFUNCTION (), 0) : 0)) extern int glthread_once_singlethreaded (pthread_once_t *once_control); # ifdef __cplusplus } # endif #endif /* ========================================================================= */ #if USE_PTH_THREADS /* Use the GNU Pth threads library. */ # include # ifdef __cplusplus extern "C" { # endif # if USE_PTH_THREADS_WEAK /* Use weak references to the GNU Pth threads library. */ # pragma weak pth_mutex_init # pragma weak pth_mutex_acquire # pragma weak pth_mutex_release # pragma weak pth_rwlock_init # pragma weak pth_rwlock_acquire # pragma weak pth_rwlock_release # pragma weak pth_once # pragma weak pth_cancel # define pth_in_use() (pth_cancel != NULL) # else # define pth_in_use() 1 # endif /* -------------------------- gl_lock_t datatype -------------------------- */ typedef pth_mutex_t gl_lock_t; # define gl_lock_define(STORAGECLASS, NAME) \ STORAGECLASS pth_mutex_t NAME; # define gl_lock_define_initialized(STORAGECLASS, NAME) \ STORAGECLASS pth_mutex_t NAME = gl_lock_initializer; # define gl_lock_initializer \ PTH_MUTEX_INIT # define glthread_lock_init(LOCK) \ (pth_in_use () && !pth_mutex_init (LOCK) ? errno : 0) # define glthread_lock_lock(LOCK) \ (pth_in_use () && !pth_mutex_acquire (LOCK, 0, NULL) ? errno : 0) # define glthread_lock_unlock(LOCK) \ (pth_in_use () && !pth_mutex_release (LOCK) ? errno : 0) # define glthread_lock_destroy(LOCK) \ ((void)(LOCK), 0) /* ------------------------- gl_rwlock_t datatype ------------------------- */ typedef pth_rwlock_t gl_rwlock_t; # define gl_rwlock_define(STORAGECLASS, NAME) \ STORAGECLASS pth_rwlock_t NAME; # define gl_rwlock_define_initialized(STORAGECLASS, NAME) \ STORAGECLASS pth_rwlock_t NAME = gl_rwlock_initializer; # define gl_rwlock_initializer \ PTH_RWLOCK_INIT # define glthread_rwlock_init(LOCK) \ (pth_in_use () && !pth_rwlock_init (LOCK) ? errno : 0) # define glthread_rwlock_rdlock(LOCK) \ (pth_in_use () && !pth_rwlock_acquire (LOCK, PTH_RWLOCK_RD, 0, NULL) ? errno : 0) # define glthread_rwlock_wrlock(LOCK) \ (pth_in_use () && !pth_rwlock_acquire (LOCK, PTH_RWLOCK_RW, 0, NULL) ? errno : 0) # define glthread_rwlock_unlock(LOCK) \ (pth_in_use () && !pth_rwlock_release (LOCK) ? errno : 0) # define glthread_rwlock_destroy(LOCK) \ ((void)(LOCK), 0) /* --------------------- gl_recursive_lock_t datatype --------------------- */ /* In Pth, mutexes are recursive by default. */ typedef pth_mutex_t gl_recursive_lock_t; # define gl_recursive_lock_define(STORAGECLASS, NAME) \ STORAGECLASS pth_mutex_t NAME; # define gl_recursive_lock_define_initialized(STORAGECLASS, NAME) \ STORAGECLASS pth_mutex_t NAME = gl_recursive_lock_initializer; # define gl_recursive_lock_initializer \ PTH_MUTEX_INIT # define glthread_recursive_lock_init(LOCK) \ (pth_in_use () && !pth_mutex_init (LOCK) ? errno : 0) # define glthread_recursive_lock_lock(LOCK) \ (pth_in_use () && !pth_mutex_acquire (LOCK, 0, NULL) ? errno : 0) # define glthread_recursive_lock_unlock(LOCK) \ (pth_in_use () && !pth_mutex_release (LOCK) ? errno : 0) # define glthread_recursive_lock_destroy(LOCK) \ ((void)(LOCK), 0) /* -------------------------- gl_once_t datatype -------------------------- */ typedef pth_once_t gl_once_t; # define gl_once_define(STORAGECLASS, NAME) \ STORAGECLASS pth_once_t NAME = PTH_ONCE_INIT; # define glthread_once(ONCE_CONTROL, INITFUNCTION) \ (pth_in_use () \ ? glthread_once_multithreaded (ONCE_CONTROL, INITFUNCTION) \ : (glthread_once_singlethreaded (ONCE_CONTROL) ? (INITFUNCTION (), 0) : 0)) extern int glthread_once_multithreaded (pth_once_t *once_control, void (*initfunction) (void)); extern int glthread_once_singlethreaded (pth_once_t *once_control); # ifdef __cplusplus } # endif #endif /* ========================================================================= */ #if USE_SOLARIS_THREADS /* Use the old Solaris threads library. */ # include # include # ifdef __cplusplus extern "C" { # endif # if USE_SOLARIS_THREADS_WEAK /* Use weak references to the old Solaris threads library. */ # pragma weak mutex_init # pragma weak mutex_lock # pragma weak mutex_unlock # pragma weak mutex_destroy # pragma weak rwlock_init # pragma weak rw_rdlock # pragma weak rw_wrlock # pragma weak rw_unlock # pragma weak rwlock_destroy # pragma weak thr_self # pragma weak thr_suspend # define thread_in_use() (thr_suspend != NULL) # else # define thread_in_use() 1 # endif /* -------------------------- gl_lock_t datatype -------------------------- */ typedef mutex_t gl_lock_t; # define gl_lock_define(STORAGECLASS, NAME) \ STORAGECLASS mutex_t NAME; # define gl_lock_define_initialized(STORAGECLASS, NAME) \ STORAGECLASS mutex_t NAME = gl_lock_initializer; # define gl_lock_initializer \ DEFAULTMUTEX # define glthread_lock_init(LOCK) \ (thread_in_use () ? mutex_init (LOCK, USYNC_THREAD, NULL) : 0) # define glthread_lock_lock(LOCK) \ (thread_in_use () ? mutex_lock (LOCK) : 0) # define glthread_lock_unlock(LOCK) \ (thread_in_use () ? mutex_unlock (LOCK) : 0) # define glthread_lock_destroy(LOCK) \ (thread_in_use () ? mutex_destroy (LOCK) : 0) /* ------------------------- gl_rwlock_t datatype ------------------------- */ typedef rwlock_t gl_rwlock_t; # define gl_rwlock_define(STORAGECLASS, NAME) \ STORAGECLASS rwlock_t NAME; # define gl_rwlock_define_initialized(STORAGECLASS, NAME) \ STORAGECLASS rwlock_t NAME = gl_rwlock_initializer; # define gl_rwlock_initializer \ DEFAULTRWLOCK # define glthread_rwlock_init(LOCK) \ (thread_in_use () ? rwlock_init (LOCK, USYNC_THREAD, NULL) : 0) # define glthread_rwlock_rdlock(LOCK) \ (thread_in_use () ? rw_rdlock (LOCK) : 0) # define glthread_rwlock_wrlock(LOCK) \ (thread_in_use () ? rw_wrlock (LOCK) : 0) # define glthread_rwlock_unlock(LOCK) \ (thread_in_use () ? rw_unlock (LOCK) : 0) # define glthread_rwlock_destroy(LOCK) \ (thread_in_use () ? rwlock_destroy (LOCK) : 0) /* --------------------- gl_recursive_lock_t datatype --------------------- */ /* Old Solaris threads did not have recursive locks. We have to implement them ourselves. */ typedef struct { mutex_t mutex; thread_t owner; unsigned long depth; } gl_recursive_lock_t; # define gl_recursive_lock_define(STORAGECLASS, NAME) \ STORAGECLASS gl_recursive_lock_t NAME; # define gl_recursive_lock_define_initialized(STORAGECLASS, NAME) \ STORAGECLASS gl_recursive_lock_t NAME = gl_recursive_lock_initializer; # define gl_recursive_lock_initializer \ { DEFAULTMUTEX, (thread_t) 0, 0 } # define glthread_recursive_lock_init(LOCK) \ (thread_in_use () ? glthread_recursive_lock_init_multithreaded (LOCK) : 0) # define glthread_recursive_lock_lock(LOCK) \ (thread_in_use () ? glthread_recursive_lock_lock_multithreaded (LOCK) : 0) # define glthread_recursive_lock_unlock(LOCK) \ (thread_in_use () ? glthread_recursive_lock_unlock_multithreaded (LOCK) : 0) # define glthread_recursive_lock_destroy(LOCK) \ (thread_in_use () ? glthread_recursive_lock_destroy_multithreaded (LOCK) : 0) extern int glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock); extern int glthread_recursive_lock_lock_multithreaded (gl_recursive_lock_t *lock); extern int glthread_recursive_lock_unlock_multithreaded (gl_recursive_lock_t *lock); extern int glthread_recursive_lock_destroy_multithreaded (gl_recursive_lock_t *lock); /* -------------------------- gl_once_t datatype -------------------------- */ typedef struct { volatile int inited; mutex_t mutex; } gl_once_t; # define gl_once_define(STORAGECLASS, NAME) \ STORAGECLASS gl_once_t NAME = { 0, DEFAULTMUTEX }; # define glthread_once(ONCE_CONTROL, INITFUNCTION) \ (thread_in_use () \ ? glthread_once_multithreaded (ONCE_CONTROL, INITFUNCTION) \ : (glthread_once_singlethreaded (ONCE_CONTROL) ? (INITFUNCTION (), 0) : 0)) extern int glthread_once_multithreaded (gl_once_t *once_control, void (*initfunction) (void)); extern int glthread_once_singlethreaded (gl_once_t *once_control); # ifdef __cplusplus } # endif #endif /* ========================================================================= */ #if USE_WIN32_THREADS # include # ifdef __cplusplus extern "C" { # endif /* We can use CRITICAL_SECTION directly, rather than the Win32 Event, Mutex, Semaphore types, because - we need only to synchronize inside a single process (address space), not inter-process locking, - we don't need to support trylock operations. (TryEnterCriticalSection does not work on Windows 95/98/ME. Packages that need trylock usually define their own mutex type.) */ /* There is no way to statically initialize a CRITICAL_SECTION. It needs to be done lazily, once only. For this we need spinlocks. */ typedef struct { volatile int done; volatile long started; } gl_spinlock_t; /* -------------------------- gl_lock_t datatype -------------------------- */ typedef struct { gl_spinlock_t guard; /* protects the initialization */ CRITICAL_SECTION lock; } gl_lock_t; # define gl_lock_define(STORAGECLASS, NAME) \ STORAGECLASS gl_lock_t NAME; # define gl_lock_define_initialized(STORAGECLASS, NAME) \ STORAGECLASS gl_lock_t NAME = gl_lock_initializer; # define gl_lock_initializer \ { { 0, -1 } } # define glthread_lock_init(LOCK) \ (glthread_lock_init_func (LOCK), 0) # define glthread_lock_lock(LOCK) \ glthread_lock_lock_func (LOCK) # define glthread_lock_unlock(LOCK) \ glthread_lock_unlock_func (LOCK) # define glthread_lock_destroy(LOCK) \ glthread_lock_destroy_func (LOCK) extern void glthread_lock_init_func (gl_lock_t *lock); extern int glthread_lock_lock_func (gl_lock_t *lock); extern int glthread_lock_unlock_func (gl_lock_t *lock); extern int glthread_lock_destroy_func (gl_lock_t *lock); /* ------------------------- gl_rwlock_t datatype ------------------------- */ /* It is impossible to implement read-write locks using plain locks, without introducing an extra thread dedicated to managing read-write locks. Therefore here we need to use the low-level Event type. */ typedef struct { HANDLE *array; /* array of waiting threads, each represented by an event */ unsigned int count; /* number of waiting threads */ unsigned int alloc; /* length of allocated array */ unsigned int offset; /* index of first waiting thread in array */ } gl_carray_waitqueue_t; typedef struct { gl_spinlock_t guard; /* protects the initialization */ CRITICAL_SECTION lock; /* protects the remaining fields */ gl_carray_waitqueue_t waiting_readers; /* waiting readers */ gl_carray_waitqueue_t waiting_writers; /* waiting writers */ int runcount; /* number of readers running, or -1 when a writer runs */ } gl_rwlock_t; # define gl_rwlock_define(STORAGECLASS, NAME) \ STORAGECLASS gl_rwlock_t NAME; # define gl_rwlock_define_initialized(STORAGECLASS, NAME) \ STORAGECLASS gl_rwlock_t NAME = gl_rwlock_initializer; # define gl_rwlock_initializer \ { { 0, -1 } } # define glthread_rwlock_init(LOCK) \ (glthread_rwlock_init_func (LOCK), 0) # define glthread_rwlock_rdlock(LOCK) \ glthread_rwlock_rdlock_func (LOCK) # define glthread_rwlock_wrlock(LOCK) \ glthread_rwlock_wrlock_func (LOCK) # define glthread_rwlock_unlock(LOCK) \ glthread_rwlock_unlock_func (LOCK) # define glthread_rwlock_destroy(LOCK) \ glthread_rwlock_destroy_func (LOCK) extern void glthread_rwlock_init_func (gl_rwlock_t *lock); extern int glthread_rwlock_rdlock_func (gl_rwlock_t *lock); extern int glthread_rwlock_wrlock_func (gl_rwlock_t *lock); extern int glthread_rwlock_unlock_func (gl_rwlock_t *lock); extern int glthread_rwlock_destroy_func (gl_rwlock_t *lock); /* --------------------- gl_recursive_lock_t datatype --------------------- */ /* The Win32 documentation says that CRITICAL_SECTION already implements a recursive lock. But we need not rely on it: It's easy to implement a recursive lock without this assumption. */ typedef struct { gl_spinlock_t guard; /* protects the initialization */ DWORD owner; unsigned long depth; CRITICAL_SECTION lock; } gl_recursive_lock_t; # define gl_recursive_lock_define(STORAGECLASS, NAME) \ STORAGECLASS gl_recursive_lock_t NAME; # define gl_recursive_lock_define_initialized(STORAGECLASS, NAME) \ STORAGECLASS gl_recursive_lock_t NAME = gl_recursive_lock_initializer; # define gl_recursive_lock_initializer \ { { 0, -1 }, 0, 0 } # define glthread_recursive_lock_init(LOCK) \ (glthread_recursive_lock_init_func (LOCK), 0) # define glthread_recursive_lock_lock(LOCK) \ glthread_recursive_lock_lock_func (LOCK) # define glthread_recursive_lock_unlock(LOCK) \ glthread_recursive_lock_unlock_func (LOCK) # define glthread_recursive_lock_destroy(LOCK) \ glthread_recursive_lock_destroy_func (LOCK) extern void glthread_recursive_lock_init_func (gl_recursive_lock_t *lock); extern int glthread_recursive_lock_lock_func (gl_recursive_lock_t *lock); extern int glthread_recursive_lock_unlock_func (gl_recursive_lock_t *lock); extern int glthread_recursive_lock_destroy_func (gl_recursive_lock_t *lock); /* -------------------------- gl_once_t datatype -------------------------- */ typedef struct { volatile int inited; volatile long started; CRITICAL_SECTION lock; } gl_once_t; # define gl_once_define(STORAGECLASS, NAME) \ STORAGECLASS gl_once_t NAME = { -1, -1 }; # define glthread_once(ONCE_CONTROL, INITFUNCTION) \ (glthread_once_func (ONCE_CONTROL, INITFUNCTION), 0) extern void glthread_once_func (gl_once_t *once_control, void (*initfunction) (void)); # ifdef __cplusplus } # endif #endif /* ========================================================================= */ #if !(USE_POSIX_THREADS || USE_PTH_THREADS || USE_SOLARIS_THREADS || USE_WIN32_THREADS) /* Provide dummy implementation if threads are not supported. */ /* -------------------------- gl_lock_t datatype -------------------------- */ typedef int gl_lock_t; # define gl_lock_define(STORAGECLASS, NAME) # define gl_lock_define_initialized(STORAGECLASS, NAME) # define glthread_lock_init(NAME) 0 # define glthread_lock_lock(NAME) 0 # define glthread_lock_unlock(NAME) 0 # define glthread_lock_destroy(NAME) 0 /* ------------------------- gl_rwlock_t datatype ------------------------- */ typedef int gl_rwlock_t; # define gl_rwlock_define(STORAGECLASS, NAME) # define gl_rwlock_define_initialized(STORAGECLASS, NAME) # define glthread_rwlock_init(NAME) 0 # define glthread_rwlock_rdlock(NAME) 0 # define glthread_rwlock_wrlock(NAME) 0 # define glthread_rwlock_unlock(NAME) 0 # define glthread_rwlock_destroy(NAME) 0 /* --------------------- gl_recursive_lock_t datatype --------------------- */ typedef int gl_recursive_lock_t; # define gl_recursive_lock_define(STORAGECLASS, NAME) # define gl_recursive_lock_define_initialized(STORAGECLASS, NAME) # define glthread_recursive_lock_init(NAME) 0 # define glthread_recursive_lock_lock(NAME) 0 # define glthread_recursive_lock_unlock(NAME) 0 # define glthread_recursive_lock_destroy(NAME) 0 /* -------------------------- gl_once_t datatype -------------------------- */ typedef int gl_once_t; # define gl_once_define(STORAGECLASS, NAME) \ STORAGECLASS gl_once_t NAME = 0; # define glthread_once(ONCE_CONTROL, INITFUNCTION) \ (*(ONCE_CONTROL) == 0 ? (*(ONCE_CONTROL) = ~ 0, INITFUNCTION (), 0) : 0) #endif /* ========================================================================= */ /* Macros with built-in error handling. */ /* -------------------------- gl_lock_t datatype -------------------------- */ #define gl_lock_init(NAME) \ do \ { \ if (glthread_lock_init (&NAME)) \ abort (); \ } \ while (0) #define gl_lock_lock(NAME) \ do \ { \ if (glthread_lock_lock (&NAME)) \ abort (); \ } \ while (0) #define gl_lock_unlock(NAME) \ do \ { \ if (glthread_lock_unlock (&NAME)) \ abort (); \ } \ while (0) #define gl_lock_destroy(NAME) \ do \ { \ if (glthread_lock_destroy (&NAME)) \ abort (); \ } \ while (0) /* ------------------------- gl_rwlock_t datatype ------------------------- */ #define gl_rwlock_init(NAME) \ do \ { \ if (glthread_rwlock_init (&NAME)) \ abort (); \ } \ while (0) #define gl_rwlock_rdlock(NAME) \ do \ { \ if (glthread_rwlock_rdlock (&NAME)) \ abort (); \ } \ while (0) #define gl_rwlock_wrlock(NAME) \ do \ { \ if (glthread_rwlock_wrlock (&NAME)) \ abort (); \ } \ while (0) #define gl_rwlock_unlock(NAME) \ do \ { \ if (glthread_rwlock_unlock (&NAME)) \ abort (); \ } \ while (0) #define gl_rwlock_destroy(NAME) \ do \ { \ if (glthread_rwlock_destroy (&NAME)) \ abort (); \ } \ while (0) /* --------------------- gl_recursive_lock_t datatype --------------------- */ #define gl_recursive_lock_init(NAME) \ do \ { \ if (glthread_recursive_lock_init (&NAME)) \ abort (); \ } \ while (0) #define gl_recursive_lock_lock(NAME) \ do \ { \ if (glthread_recursive_lock_lock (&NAME)) \ abort (); \ } \ while (0) #define gl_recursive_lock_unlock(NAME) \ do \ { \ if (glthread_recursive_lock_unlock (&NAME)) \ abort (); \ } \ while (0) #define gl_recursive_lock_destroy(NAME) \ do \ { \ if (glthread_recursive_lock_destroy (&NAME)) \ abort (); \ } \ while (0) /* -------------------------- gl_once_t datatype -------------------------- */ #define gl_once(NAME, INITFUNCTION) \ do \ { \ if (glthread_once (&NAME, INITFUNCTION)) \ abort (); \ } \ while (0) /* ========================================================================= */ #endif /* _LOCK_H */ gliv-1.9.7/intl/gettextP.h0000644000076400007640000002364611465576131012706 0ustar gg/* Header describing internals of libintl library. Copyright (C) 1995-1999, 2000-2007, 2009-2010 Free Software Foundation, Inc. Written by Ulrich Drepper , 1995. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _GETTEXTP_H #define _GETTEXTP_H #include /* Get size_t. */ #ifdef _LIBC # include "../iconv/gconv_int.h" #else # if HAVE_ICONV # include # endif #endif /* Handle multi-threaded applications. */ #ifdef _LIBC # include # define gl_rwlock_define __libc_rwlock_define #else # include "lock.h" #endif #ifdef _LIBC extern char *__gettext (const char *__msgid); extern char *__dgettext (const char *__domainname, const char *__msgid); extern char *__dcgettext (const char *__domainname, const char *__msgid, int __category); extern char *__ngettext (const char *__msgid1, const char *__msgid2, unsigned long int __n); extern char *__dngettext (const char *__domainname, const char *__msgid1, const char *__msgid2, unsigned long int n); extern char *__dcngettext (const char *__domainname, const char *__msgid1, const char *__msgid2, unsigned long int __n, int __category); extern char *__dcigettext (const char *__domainname, const char *__msgid1, const char *__msgid2, int __plural, unsigned long int __n, int __category); extern char *__textdomain (const char *__domainname); extern char *__bindtextdomain (const char *__domainname, const char *__dirname); extern char *__bind_textdomain_codeset (const char *__domainname, const char *__codeset); extern void _nl_finddomain_subfreeres (void) attribute_hidden; extern void _nl_unload_domain (struct loaded_domain *__domain) internal_function attribute_hidden; #else /* Declare the exported libintl_* functions, in a way that allows us to call them under their real name. */ # undef _INTL_REDIRECT_INLINE # undef _INTL_REDIRECT_MACROS # define _INTL_REDIRECT_MACROS # include "libgnuintl.h" # ifdef IN_LIBGLOCALE extern char *gl_dcigettext (const char *__domainname, const char *__msgid1, const char *__msgid2, int __plural, unsigned long int __n, int __category, const char *__localename, const char *__encoding); # else extern char *libintl_dcigettext (const char *__domainname, const char *__msgid1, const char *__msgid2, int __plural, unsigned long int __n, int __category); # endif #endif #include "loadinfo.h" #include "gmo.h" /* Get nls_uint32. */ /* @@ end of prolog @@ */ #ifndef internal_function # define internal_function #endif #ifndef attribute_hidden # define attribute_hidden #endif /* Tell the compiler when a conditional or integer expression is almost always true or almost always false. */ #ifndef HAVE_BUILTIN_EXPECT # define __builtin_expect(expr, val) (expr) #endif #ifndef W # define W(flag, data) ((flag) ? SWAP (data) : (data)) #endif #ifdef _LIBC # include # define SWAP(i) bswap_32 (i) #else static inline nls_uint32 # ifdef __cplusplus SWAP (nls_uint32 i) # else SWAP (i) nls_uint32 i; # endif { return (i << 24) | ((i & 0xff00) << 8) | ((i >> 8) & 0xff00) | (i >> 24); } #endif /* In-memory representation of system dependent string. */ struct sysdep_string_desc { /* Length of addressed string, including the trailing NUL. */ size_t length; /* Pointer to addressed string. */ const char *pointer; }; /* Cache of translated strings after charset conversion. Note: The strings are converted to the target encoding only on an as-needed basis. */ struct converted_domain { /* The target encoding name. */ const char *encoding; /* The descriptor for conversion from the message catalog's encoding to this target encoding. */ #ifdef _LIBC __gconv_t conv; #else # if HAVE_ICONV iconv_t conv; # endif #endif /* The table of translated strings after charset conversion. */ char **conv_tab; }; /* The representation of an opened message catalog. */ struct loaded_domain { /* Pointer to memory containing the .mo file. */ const char *data; /* 1 if the memory is mmap()ed, 0 if the memory is malloc()ed. */ int use_mmap; /* Size of mmap()ed memory. */ size_t mmap_size; /* 1 if the .mo file uses a different endianness than this machine. */ int must_swap; /* Pointer to additional malloc()ed memory. */ void *malloced; /* Number of static strings pairs. */ nls_uint32 nstrings; /* Pointer to descriptors of original strings in the file. */ const struct string_desc *orig_tab; /* Pointer to descriptors of translated strings in the file. */ const struct string_desc *trans_tab; /* Number of system dependent strings pairs. */ nls_uint32 n_sysdep_strings; /* Pointer to descriptors of original sysdep strings. */ const struct sysdep_string_desc *orig_sysdep_tab; /* Pointer to descriptors of translated sysdep strings. */ const struct sysdep_string_desc *trans_sysdep_tab; /* Size of hash table. */ nls_uint32 hash_size; /* Pointer to hash table. */ const nls_uint32 *hash_tab; /* 1 if the hash table uses a different endianness than this machine. */ int must_swap_hash_tab; /* Cache of charset conversions of the translated strings. */ struct converted_domain *conversions; size_t nconversions; gl_rwlock_define (, conversions_lock) const struct expression *plural; unsigned long int nplurals; }; /* We want to allocate a string at the end of the struct. But ISO C doesn't allow zero sized arrays. */ #ifdef __GNUC__ # define ZERO 0 #else # define ZERO 1 #endif /* A set of settings bound to a message domain. Used to store settings from bindtextdomain() and bind_textdomain_codeset(). */ struct binding { struct binding *next; char *dirname; char *codeset; char domainname[ZERO]; }; /* A counter which is incremented each time some previous translations become invalid. This variable is part of the external ABI of the GNU libintl. */ #ifdef IN_LIBGLOCALE # include extern LIBGLOCALE_DLL_EXPORTED int _nl_msg_cat_cntr; #else extern LIBINTL_DLL_EXPORTED int _nl_msg_cat_cntr; #endif #ifndef _LIBC extern const char *_nl_language_preferences_default (void); # define gl_locale_name_canonicalize _nl_locale_name_canonicalize extern void _nl_locale_name_canonicalize (char *name); # define gl_locale_name_from_win32_LANGID _nl_locale_name_from_win32_LANGID /* extern const char *_nl_locale_name_from_win32_LANGID (LANGID langid); */ # define gl_locale_name_from_win32_LCID _nl_locale_name_from_win32_LCID /* extern const char *_nl_locale_name_from_win32_LCID (LCID lcid); */ # define gl_locale_name_thread_unsafe _nl_locale_name_thread_unsafe extern const char *_nl_locale_name_thread_unsafe (int category, const char *categoryname); # define gl_locale_name_thread _nl_locale_name_thread /* extern const char *_nl_locale_name_thread (int category, const char *categoryname); */ # define gl_locale_name_posix _nl_locale_name_posix extern const char *_nl_locale_name_posix (int category, const char *categoryname); # define gl_locale_name_environ _nl_locale_name_environ extern const char *_nl_locale_name_environ (int category, const char *categoryname); # define gl_locale_name_default _nl_locale_name_default extern const char *_nl_locale_name_default (void); # define gl_locale_name _nl_locale_name /* extern const char *_nl_locale_name (int category, const char *categoryname); */ #endif struct loaded_l10nfile *_nl_find_domain (const char *__dirname, char *__locale, const char *__domainname, struct binding *__domainbinding) internal_function; void _nl_load_domain (struct loaded_l10nfile *__domain, struct binding *__domainbinding) internal_function; #ifdef IN_LIBGLOCALE char *_nl_find_msg (struct loaded_l10nfile *domain_file, struct binding *domainbinding, const char *encoding, const char *msgid, size_t *lengthp) internal_function; #else char *_nl_find_msg (struct loaded_l10nfile *domain_file, struct binding *domainbinding, const char *msgid, int convert, size_t *lengthp) internal_function; #endif /* The internal variables in the standalone libintl.a must have different names than the internal variables in GNU libc, otherwise programs using libintl.a cannot be linked statically. */ #if !defined _LIBC # define _nl_default_dirname libintl_nl_default_dirname # define _nl_domain_bindings libintl_nl_domain_bindings #endif /* Contains the default location of the message catalogs. */ extern const char _nl_default_dirname[]; #ifdef _LIBC libc_hidden_proto (_nl_default_dirname) #endif /* List with bindings of specific domains. */ extern struct binding *_nl_domain_bindings; /* The internal variables in the standalone libintl.a must have different names than the internal variables in GNU libc, otherwise programs using libintl.a cannot be linked statically. */ #if !defined _LIBC # define _nl_default_default_domain libintl_nl_default_default_domain # define _nl_current_default_domain libintl_nl_current_default_domain #endif /* Name of the default text domain. */ extern const char _nl_default_default_domain[] attribute_hidden; /* Default text domain in which entries for gettext(3) are to be found. */ extern const char *_nl_current_default_domain attribute_hidden; /* @@ begin of epilog @@ */ #endif /* gettextP.h */ gliv-1.9.7/intl/vasnprintf.h0000644000076400007640000000544311465576131013267 0ustar gg/* vsprintf with automatic memory allocation. Copyright (C) 2002-2004 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _VASNPRINTF_H #define _VASNPRINTF_H /* Get va_list. */ #include /* Get size_t. */ #include #ifndef __attribute__ /* This feature is available in gcc versions 2.5 and later. */ # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__ # define __attribute__(Spec) /* empty */ # endif /* The __-protected variants of `format' and `printf' attributes are accepted by gcc versions 2.6.4 (effectively 2.7) and later. */ # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) # define __format__ format # define __printf__ printf # endif #endif #ifdef __cplusplus extern "C" { #endif /* Write formatted output to a string dynamically allocated with malloc(). You can pass a preallocated buffer for the result in RESULTBUF and its size in *LENGTHP; otherwise you pass RESULTBUF = NULL. If successful, return the address of the string (this may be = RESULTBUF if no dynamic memory allocation was necessary) and set *LENGTHP to the number of resulting bytes, excluding the trailing NUL. Upon error, set errno and return NULL. When dynamic memory allocation occurs, the preallocated buffer is left alone (with possibly modified contents). This makes it possible to use a statically allocated or stack-allocated buffer, like this: char buf[100]; size_t len = sizeof (buf); char *output = vasnprintf (buf, &len, format, args); if (output == NULL) ... error handling ...; else { ... use the output string ...; if (output != buf) free (output); } */ extern char * asnprintf (char *resultbuf, size_t *lengthp, const char *format, ...) __attribute__ ((__format__ (__printf__, 3, 4))); extern char * vasnprintf (char *resultbuf, size_t *lengthp, const char *format, va_list args) __attribute__ ((__format__ (__printf__, 3, 0))); #ifdef __cplusplus } #endif #endif /* _VASNPRINTF_H */ gliv-1.9.7/intl/textdomain.c0000644000076400007640000000746611465576131013253 0ustar gg/* Implementation of the textdomain(3) function. Copyright (C) 1995-1998, 2000-2003, 2005-2006 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include "gettextP.h" #ifdef _LIBC # include #else # include "libgnuintl.h" #endif /* Handle multi-threaded applications. */ #ifdef _LIBC # include # define gl_rwlock_define __libc_rwlock_define # define gl_rwlock_wrlock __libc_rwlock_wrlock # define gl_rwlock_unlock __libc_rwlock_unlock #else # include "lock.h" #endif /* @@ end of prolog @@ */ /* Names for the libintl functions are a problem. They must not clash with existing names and they should follow ANSI C. But this source code is also used in GNU C Library where the names have a __ prefix. So we have to make a difference here. */ #ifdef _LIBC # define TEXTDOMAIN __textdomain # ifndef strdup # define strdup(str) __strdup (str) # endif #else # define TEXTDOMAIN libintl_textdomain #endif /* Lock variable to protect the global data in the gettext implementation. */ gl_rwlock_define (extern, _nl_state_lock attribute_hidden) /* Set the current default message catalog to DOMAINNAME. If DOMAINNAME is null, return the current default. If DOMAINNAME is "", reset to the default of "messages". */ char * TEXTDOMAIN (const char *domainname) { char *new_domain; char *old_domain; /* A NULL pointer requests the current setting. */ if (domainname == NULL) return (char *) _nl_current_default_domain; gl_rwlock_wrlock (_nl_state_lock); old_domain = (char *) _nl_current_default_domain; /* If domain name is the null string set to default domain "messages". */ if (domainname[0] == '\0' || strcmp (domainname, _nl_default_default_domain) == 0) { _nl_current_default_domain = _nl_default_default_domain; new_domain = (char *) _nl_current_default_domain; } else if (strcmp (domainname, old_domain) == 0) /* This can happen and people will use it to signal that some environment variable changed. */ new_domain = old_domain; else { /* If the following malloc fails `_nl_current_default_domain' will be NULL. This value will be returned and so signals we are out of core. */ #if defined _LIBC || defined HAVE_STRDUP new_domain = strdup (domainname); #else size_t len = strlen (domainname) + 1; new_domain = (char *) malloc (len); if (new_domain != NULL) memcpy (new_domain, domainname, len); #endif if (new_domain != NULL) _nl_current_default_domain = new_domain; } /* We use this possibility to signal a change of the loaded catalogs since this is most likely the case and there is no other easy we to do it. Do it only when the call was successful. */ if (new_domain != NULL) { ++_nl_msg_cat_cntr; if (old_domain != new_domain && old_domain != _nl_default_default_domain) free (old_domain); } gl_rwlock_unlock (_nl_state_lock); return new_domain; } #ifdef _LIBC /* Alias for function name in GNU C Library. */ weak_alias (__textdomain, textdomain); #endif gliv-1.9.7/intl/ref-add.sin0000644000076400007640000000210511465576131012731 0ustar gg# Add this package to a list of references stored in a text file. # # Copyright (C) 2000 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU Library 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 # Library General Public License for more details. # # You should have received a copy of the GNU Library General Public # License along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, # USA. # # Written by Bruno Haible . # /^# Packages using this file: / { s/# Packages using this file:// ta :a s/ @PACKAGE@ / @PACKAGE@ / tb s/ $/ @PACKAGE@ / :b s/^/# Packages using this file:/ } gliv-1.9.7/intl/plural.c0000644000076400007640000014212011465576131012361 0ustar gg/* A Bison parser, made by GNU Bison 2.3a. */ /* Skeleton implementation for Bison's Yacc-like parsers in C Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* As a special exception, you may create a larger work that contains part or all of the Bison parser skeleton and distribute that work under terms of your choice, so long as that work isn't itself a parser generator using the skeleton or a modified version thereof as a parser skeleton. Alternatively, if you modify or redistribute the parser skeleton itself, you may (at your option) remove this special exception, which will cause the skeleton and the resulting Bison output files to be licensed under the GNU General Public License without this special exception. This special exception was added by the Free Software Foundation in version 2.2 of Bison. */ /* C LALR(1) parser skeleton written by Richard Stallman, by simplifying the original so-called "semantic" parser. */ /* All symbols defined below should begin with yy or YY, to avoid infringing on user name space. This should be done even for local variables, as they might otherwise be expanded by user macros. There are some unavoidable exceptions within include files to define necessary library symbols; they are noted "INFRINGES ON USER NAME SPACE" below. */ /* Identify Bison output. */ #define YYBISON 1 /* Bison version. */ #define YYBISON_VERSION "2.3a" /* Skeleton name. */ #define YYSKELETON_NAME "yacc.c" /* Pure parsers. */ #define YYPURE 1 /* Using locations. */ #define YYLSP_NEEDED 0 /* Substitute the variable and function names. */ #define yyparse __gettextparse #define yylex __gettextlex #define yyerror __gettexterror #define yylval __gettextlval #define yychar __gettextchar #define yydebug __gettextdebug #define yynerrs __gettextnerrs /* Copy the first part of user declarations. */ /* Line 164 of yacc.c. */ #line 1 "plural.y" /* Expression parsing for plural form selection. Copyright (C) 2000-2001, 2003, 2005-2006 Free Software Foundation, Inc. Written by Ulrich Drepper , 2000. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* For bison < 2.0, the bison generated parser uses alloca. AIX 3 forces us to put this declaration at the beginning of the file. The declaration in bison's skeleton file comes too late. This must come before because may include arbitrary system headers. This can go away once the AM_INTL_SUBDIR macro requires bison >= 2.0. */ #if defined _AIX && !defined __GNUC__ #pragma alloca #endif #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include "plural-exp.h" /* The main function generated by the parser is called __gettextparse, but we want it to be called PLURAL_PARSE. */ #ifndef _LIBC # define __gettextparse PLURAL_PARSE #endif #define YYLEX_PARAM &((struct parse_args *) arg)->cp #define YYPARSE_PARAM arg /* Enabling traces. */ #ifndef YYDEBUG # define YYDEBUG 0 #endif /* Enabling verbose error messages. */ #ifdef YYERROR_VERBOSE # undef YYERROR_VERBOSE # define YYERROR_VERBOSE 1 #else # define YYERROR_VERBOSE 0 #endif /* Enabling the token table. */ #ifndef YYTOKEN_TABLE # define YYTOKEN_TABLE 0 #endif /* Tokens. */ #ifndef YYTOKENTYPE # define YYTOKENTYPE /* Put the tokens into the symbol table, so that GDB and other debuggers know about them. */ enum yytokentype { EQUOP2 = 258, CMPOP2 = 259, ADDOP2 = 260, MULOP2 = 261, NUMBER = 262 }; #endif /* Tokens. */ #define EQUOP2 258 #define CMPOP2 259 #define ADDOP2 260 #define MULOP2 261 #define NUMBER 262 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED typedef union YYSTYPE {/* Line 191 of yacc.c. */ #line 51 "plural.y" unsigned long int num; enum expression_operator op; struct expression *exp; } /* Line 191 of yacc.c. */ #line 175 "plural.c" YYSTYPE; # define YYSTYPE_IS_TRIVIAL 1 # define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1 #endif /* Copy the second part of user declarations. */ /* Line 221 of yacc.c. */ #line 57 "plural.y" /* Prototypes for local functions. */ static int yylex (YYSTYPE *lval, const char **pexp); static void yyerror (const char *str); /* Allocation of expressions. */ static struct expression * new_exp (int nargs, enum expression_operator op, struct expression * const *args) { int i; struct expression *newp; /* If any of the argument could not be malloc'ed, just return NULL. */ for (i = nargs - 1; i >= 0; i--) if (args[i] == NULL) goto fail; /* Allocate a new expression. */ newp = (struct expression *) malloc (sizeof (*newp)); if (newp != NULL) { newp->nargs = nargs; newp->operation = op; for (i = nargs - 1; i >= 0; i--) newp->val.args[i] = args[i]; return newp; } fail: for (i = nargs - 1; i >= 0; i--) FREE_EXPRESSION (args[i]); return NULL; } static inline struct expression * new_exp_0 (enum expression_operator op) { return new_exp (0, op, NULL); } static inline struct expression * new_exp_1 (enum expression_operator op, struct expression *right) { struct expression *args[1]; args[0] = right; return new_exp (1, op, args); } static struct expression * new_exp_2 (enum expression_operator op, struct expression *left, struct expression *right) { struct expression *args[2]; args[0] = left; args[1] = right; return new_exp (2, op, args); } static inline struct expression * new_exp_3 (enum expression_operator op, struct expression *bexp, struct expression *tbranch, struct expression *fbranch) { struct expression *args[3]; args[0] = bexp; args[1] = tbranch; args[2] = fbranch; return new_exp (3, op, args); } /* Line 221 of yacc.c. */ #line 265 "plural.c" #ifdef short # undef short #endif #ifdef YYTYPE_UINT8 typedef YYTYPE_UINT8 yytype_uint8; #else typedef unsigned char yytype_uint8; #endif #ifdef YYTYPE_INT8 typedef YYTYPE_INT8 yytype_int8; #elif (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) typedef signed char yytype_int8; #else typedef short int yytype_int8; #endif #ifdef YYTYPE_UINT16 typedef YYTYPE_UINT16 yytype_uint16; #else typedef unsigned short int yytype_uint16; #endif #ifdef YYTYPE_INT16 typedef YYTYPE_INT16 yytype_int16; #else typedef short int yytype_int16; #endif #ifndef YYSIZE_T # ifdef __SIZE_TYPE__ # define YYSIZE_T __SIZE_TYPE__ # elif defined size_t # define YYSIZE_T size_t # elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) # include /* INFRINGES ON USER NAME SPACE */ # define YYSIZE_T size_t # else # define YYSIZE_T unsigned int # endif #endif #define YYSIZE_MAXIMUM ((YYSIZE_T) -1) #ifndef YY_ # if YYENABLE_NLS # if ENABLE_NLS # include /* INFRINGES ON USER NAME SPACE */ # define YY_(msgid) dgettext ("bison-runtime", msgid) # endif # endif # ifndef YY_ # define YY_(msgid) msgid # endif #endif /* Suppress unused-variable warnings by "using" E. */ #if ! defined lint || defined __GNUC__ # define YYUSE(e) ((void) (e)) #else # define YYUSE(e) /* empty */ #endif /* Identity function, used to suppress warnings about constant conditions. */ #ifndef lint # define YYID(n) (n) #else #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static int YYID (int yyi) #else static int YYID (yyi) int yyi; #endif { return yyi; } #endif #if ! defined yyoverflow || YYERROR_VERBOSE /* The parser invokes alloca or malloc; define the necessary symbols. */ # ifdef YYSTACK_USE_ALLOCA # if YYSTACK_USE_ALLOCA # ifdef __GNUC__ # define YYSTACK_ALLOC __builtin_alloca # elif defined __BUILTIN_VA_ARG_INCR # include /* INFRINGES ON USER NAME SPACE */ # elif defined _AIX # define YYSTACK_ALLOC __alloca # elif defined _MSC_VER # include /* INFRINGES ON USER NAME SPACE */ # define alloca _alloca # else # define YYSTACK_ALLOC alloca # if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) # include /* INFRINGES ON USER NAME SPACE */ # ifndef _STDLIB_H # define _STDLIB_H 1 # endif # endif # endif # endif # endif # ifdef YYSTACK_ALLOC /* Pacify GCC's `empty if-body' warning. */ # define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0)) # ifndef YYSTACK_ALLOC_MAXIMUM /* The OS might guarantee only one guard page at the bottom of the stack, and a page size can be as small as 4096 bytes. So we cannot safely invoke alloca (N) if N exceeds 4096. Use a slightly smaller number to allow for a few compiler-allocated temporary stack slots. */ # define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */ # endif # else # define YYSTACK_ALLOC YYMALLOC # define YYSTACK_FREE YYFREE # ifndef YYSTACK_ALLOC_MAXIMUM # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM # endif # if (defined __cplusplus && ! defined _STDLIB_H \ && ! ((defined YYMALLOC || defined malloc) \ && (defined YYFREE || defined free))) # include /* INFRINGES ON USER NAME SPACE */ # ifndef _STDLIB_H # define _STDLIB_H 1 # endif # endif # ifndef YYMALLOC # define YYMALLOC malloc # if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ # endif # endif # ifndef YYFREE # define YYFREE free # if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) void free (void *); /* INFRINGES ON USER NAME SPACE */ # endif # endif # endif #endif /* ! defined yyoverflow || YYERROR_VERBOSE */ #if (! defined yyoverflow \ && (! defined __cplusplus \ || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) /* A type that is properly aligned for any stack member. */ union yyalloc { yytype_int16 yyss; YYSTYPE yyvs; }; /* The size of the maximum gap between one aligned stack and the next. */ # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) /* The size of an array large to enough to hold all stacks, each with N elements. */ # define YYSTACK_BYTES(N) \ ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \ + YYSTACK_GAP_MAXIMUM) /* Copy COUNT objects from FROM to TO. The source and destination do not overlap. */ # ifndef YYCOPY # if defined __GNUC__ && 1 < __GNUC__ # define YYCOPY(To, From, Count) \ __builtin_memcpy (To, From, (Count) * sizeof (*(From))) # else # define YYCOPY(To, From, Count) \ do \ { \ YYSIZE_T yyi; \ for (yyi = 0; yyi < (Count); yyi++) \ (To)[yyi] = (From)[yyi]; \ } \ while (YYID (0)) # endif # endif /* Relocate STACK from its old location to the new one. The local variables YYSIZE and YYSTACKSIZE give the old and new number of elements in the stack, and YYPTR gives the new location of the stack. Advance YYPTR to a properly aligned location for the next stack. */ # define YYSTACK_RELOCATE(Stack) \ do \ { \ YYSIZE_T yynewbytes; \ YYCOPY (&yyptr->Stack, Stack, yysize); \ Stack = &yyptr->Stack; \ yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ yyptr += yynewbytes / sizeof (*yyptr); \ } \ while (YYID (0)) #endif /* YYFINAL -- State number of the termination state. */ #define YYFINAL 9 /* YYLAST -- Last index in YYTABLE. */ #define YYLAST 54 /* YYNTOKENS -- Number of terminals. */ #define YYNTOKENS 16 /* YYNNTS -- Number of nonterminals. */ #define YYNNTS 3 /* YYNRULES -- Number of rules. */ #define YYNRULES 13 /* YYNRULES -- Number of states. */ #define YYNSTATES 27 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ #define YYUNDEFTOK 2 #define YYMAXUTOK 262 #define YYTRANSLATE(YYX) \ ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */ static const yytype_uint8 yytranslate[] = { 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 10, 2, 2, 2, 2, 5, 2, 14, 15, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 12, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 13, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 6, 7, 8, 9, 11 }; #if YYDEBUG /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in YYRHS. */ static const yytype_uint8 yyprhs[] = { 0, 0, 3, 5, 11, 15, 19, 23, 27, 31, 35, 38, 40, 42 }; /* YYRHS -- A `-1'-separated list of the rules' RHS. */ static const yytype_int8 yyrhs[] = { 17, 0, -1, 18, -1, 18, 3, 18, 12, 18, -1, 18, 4, 18, -1, 18, 5, 18, -1, 18, 6, 18, -1, 18, 7, 18, -1, 18, 8, 18, -1, 18, 9, 18, -1, 10, 18, -1, 13, -1, 11, -1, 14, 18, 15, -1 }; /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ static const yytype_uint8 yyrline[] = { 0, 154, 154, 162, 166, 170, 174, 178, 182, 186, 190, 194, 198, 203 }; #endif #if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. First, the terminals, then, starting at YYNTOKENS, nonterminals. */ static const char *const yytname[] = { "$end", "error", "$undefined", "'?'", "'|'", "'&'", "EQUOP2", "CMPOP2", "ADDOP2", "MULOP2", "'!'", "NUMBER", "':'", "'n'", "'('", "')'", "$accept", "start", "exp", 0 }; #endif # ifdef YYPRINT /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to token YYLEX-NUM. */ static const yytype_uint16 yytoknum[] = { 0, 256, 257, 63, 124, 38, 258, 259, 260, 261, 33, 262, 58, 110, 40, 41 }; # endif /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ static const yytype_uint8 yyr1[] = { 0, 16, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18 }; /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ static const yytype_uint8 yyr2[] = { 0, 2, 1, 5, 3, 3, 3, 3, 3, 3, 2, 1, 1, 3 }; /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state STATE-NUM when YYTABLE doesn't specify something else to do. Zero means the default is an error. */ static const yytype_uint8 yydefact[] = { 0, 0, 12, 11, 0, 0, 2, 10, 0, 1, 0, 0, 0, 0, 0, 0, 0, 13, 0, 4, 5, 6, 7, 8, 9, 0, 3 }; /* YYDEFGOTO[NTERM-NUM]. */ static const yytype_int8 yydefgoto[] = { -1, 5, 6 }; /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing STATE-NUM. */ #define YYPACT_NINF -10 static const yytype_int8 yypact[] = { -9, -9, -10, -10, -9, 8, 36, -10, 13, -10, -9, -9, -9, -9, -9, -9, -9, -10, 26, 41, 45, 18, -2, 14, -10, -9, 36 }; /* YYPGOTO[NTERM-NUM]. */ static const yytype_int8 yypgoto[] = { -10, -10, -1 }; /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If positive, shift that token. If negative, reduce the rule which number is the opposite. If zero, do what YYDEFACT says. If YYTABLE_NINF, syntax error. */ #define YYTABLE_NINF -1 static const yytype_uint8 yytable[] = { 7, 1, 2, 8, 3, 4, 15, 16, 9, 18, 19, 20, 21, 22, 23, 24, 10, 11, 12, 13, 14, 15, 16, 16, 26, 14, 15, 16, 17, 10, 11, 12, 13, 14, 15, 16, 0, 0, 25, 10, 11, 12, 13, 14, 15, 16, 12, 13, 14, 15, 16, 13, 14, 15, 16 }; static const yytype_int8 yycheck[] = { 1, 10, 11, 4, 13, 14, 8, 9, 0, 10, 11, 12, 13, 14, 15, 16, 3, 4, 5, 6, 7, 8, 9, 9, 25, 7, 8, 9, 15, 3, 4, 5, 6, 7, 8, 9, -1, -1, 12, 3, 4, 5, 6, 7, 8, 9, 5, 6, 7, 8, 9, 6, 7, 8, 9 }; /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing symbol of state STATE-NUM. */ static const yytype_uint8 yystos[] = { 0, 10, 11, 13, 14, 17, 18, 18, 18, 0, 3, 4, 5, 6, 7, 8, 9, 15, 18, 18, 18, 18, 18, 18, 18, 12, 18 }; #define yyerrok (yyerrstatus = 0) #define yyclearin (yychar = YYEMPTY) #define YYEMPTY (-2) #define YYEOF 0 #define YYACCEPT goto yyacceptlab #define YYABORT goto yyabortlab #define YYERROR goto yyerrorlab /* Like YYERROR except do call yyerror. This remains here temporarily to ease the transition to the new meaning of YYERROR, for GCC. Once GCC version 2 has supplanted version 1, this can go. */ #define YYFAIL goto yyerrlab #define YYRECOVERING() (!!yyerrstatus) #define YYBACKUP(Token, Value) \ do \ if (yychar == YYEMPTY && yylen == 1) \ { \ yychar = (Token); \ yylval = (Value); \ yytoken = YYTRANSLATE (yychar); \ YYPOPSTACK (1); \ goto yybackup; \ } \ else \ { \ yyerror (YY_("syntax error: cannot back up")); \ YYERROR; \ } \ while (YYID (0)) #define YYTERROR 1 #define YYERRCODE 256 /* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N]. If N is 0, then set CURRENT to the empty location which ends the previous symbol: RHS[0] (always defined). */ #define YYRHSLOC(Rhs, K) ((Rhs)[K]) #ifndef YYLLOC_DEFAULT # define YYLLOC_DEFAULT(Current, Rhs, N) \ do \ if (YYID (N)) \ { \ (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \ (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \ (Current).last_line = YYRHSLOC (Rhs, N).last_line; \ (Current).last_column = YYRHSLOC (Rhs, N).last_column; \ } \ else \ { \ (Current).first_line = (Current).last_line = \ YYRHSLOC (Rhs, 0).last_line; \ (Current).first_column = (Current).last_column = \ YYRHSLOC (Rhs, 0).last_column; \ } \ while (YYID (0)) #endif /* YY_LOCATION_PRINT -- Print the location on the stream. This macro was not mandated originally: define only if we know we won't break user code: when these are the locations we know. */ #ifndef YY_LOCATION_PRINT # if YYLTYPE_IS_TRIVIAL # define YY_LOCATION_PRINT(File, Loc) \ fprintf (File, "%d.%d-%d.%d", \ (Loc).first_line, (Loc).first_column, \ (Loc).last_line, (Loc).last_column) # else # define YY_LOCATION_PRINT(File, Loc) ((void) 0) # endif #endif /* YYLEX -- calling `yylex' with the right arguments. */ #ifdef YYLEX_PARAM # define YYLEX yylex (&yylval, YYLEX_PARAM) #else # define YYLEX yylex (&yylval) #endif /* Enable debugging if requested. */ #if YYDEBUG # ifndef YYFPRINTF # include /* INFRINGES ON USER NAME SPACE */ # define YYFPRINTF fprintf # endif # define YYDPRINTF(Args) \ do { \ if (yydebug) \ YYFPRINTF Args; \ } while (YYID (0)) # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ do { \ if (yydebug) \ { \ YYFPRINTF (stderr, "%s ", Title); \ yy_symbol_print (stderr, \ Type, Value); \ YYFPRINTF (stderr, "\n"); \ } \ } while (YYID (0)) /*--------------------------------. | Print this symbol on YYOUTPUT. | `--------------------------------*/ /*ARGSUSED*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) #else static void yy_symbol_value_print (yyoutput, yytype, yyvaluep) FILE *yyoutput; int yytype; YYSTYPE const * const yyvaluep; #endif { if (!yyvaluep) return; # ifdef YYPRINT if (yytype < YYNTOKENS) YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep); # else YYUSE (yyoutput); # endif switch (yytype) { default: break; } } /*--------------------------------. | Print this symbol on YYOUTPUT. | `--------------------------------*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) #else static void yy_symbol_print (yyoutput, yytype, yyvaluep) FILE *yyoutput; int yytype; YYSTYPE const * const yyvaluep; #endif { if (yytype < YYNTOKENS) YYFPRINTF (yyoutput, "token %s (", yytname[yytype]); else YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]); yy_symbol_value_print (yyoutput, yytype, yyvaluep); YYFPRINTF (yyoutput, ")"); } /*------------------------------------------------------------------. | yy_stack_print -- Print the state stack from its BOTTOM up to its | | TOP (included). | `------------------------------------------------------------------*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop) #else static void yy_stack_print (yybottom, yytop) yytype_int16 *yybottom; yytype_int16 *yytop; #endif { YYFPRINTF (stderr, "Stack now"); for (; yybottom <= yytop; yybottom++) { int yybot = *yybottom; YYFPRINTF (stderr, " %d", yybot); } YYFPRINTF (stderr, "\n"); } # define YY_STACK_PRINT(Bottom, Top) \ do { \ if (yydebug) \ yy_stack_print ((Bottom), (Top)); \ } while (YYID (0)) /*------------------------------------------------. | Report that the YYRULE is going to be reduced. | `------------------------------------------------*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yy_reduce_print (YYSTYPE *yyvsp, int yyrule) #else static void yy_reduce_print (yyvsp, yyrule) YYSTYPE *yyvsp; int yyrule; #endif { int yynrhs = yyr2[yyrule]; int yyi; unsigned long int yylno = yyrline[yyrule]; YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n", yyrule - 1, yylno); /* The symbols being reduced. */ for (yyi = 0; yyi < yynrhs; yyi++) { fprintf (stderr, " $%d = ", yyi + 1); yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi], &(yyvsp[(yyi + 1) - (yynrhs)]) ); fprintf (stderr, "\n"); } } # define YY_REDUCE_PRINT(Rule) \ do { \ if (yydebug) \ yy_reduce_print (yyvsp, Rule); \ } while (YYID (0)) /* Nonzero means print parse trace. It is left uninitialized so that multiple parsers can coexist. */ int yydebug; #else /* !YYDEBUG */ # define YYDPRINTF(Args) # define YY_SYMBOL_PRINT(Title, Type, Value, Location) # define YY_STACK_PRINT(Bottom, Top) # define YY_REDUCE_PRINT(Rule) #endif /* !YYDEBUG */ /* YYINITDEPTH -- initial size of the parser's stacks. */ #ifndef YYINITDEPTH # define YYINITDEPTH 200 #endif /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only if the built-in stack extension method is used). Do not make this value too large; the results are undefined if YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH) evaluated with infinite-precision integer arithmetic. */ #ifndef YYMAXDEPTH # define YYMAXDEPTH 10000 #endif #if YYERROR_VERBOSE # ifndef yystrlen # if defined __GLIBC__ && defined _STRING_H # define yystrlen strlen # else /* Return the length of YYSTR. */ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static YYSIZE_T yystrlen (const char *yystr) #else static YYSIZE_T yystrlen (yystr) const char *yystr; #endif { YYSIZE_T yylen; for (yylen = 0; yystr[yylen]; yylen++) continue; return yylen; } # endif # endif # ifndef yystpcpy # if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE # define yystpcpy stpcpy # else /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in YYDEST. */ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static char * yystpcpy (char *yydest, const char *yysrc) #else static char * yystpcpy (yydest, yysrc) char *yydest; const char *yysrc; #endif { char *yyd = yydest; const char *yys = yysrc; while ((*yyd++ = *yys++) != '\0') continue; return yyd - 1; } # endif # endif # ifndef yytnamerr /* Copy to YYRES the contents of YYSTR after stripping away unnecessary quotes and backslashes, so that it's suitable for yyerror. The heuristic is that double-quoting is unnecessary unless the string contains an apostrophe, a comma, or backslash (other than backslash-backslash). YYSTR is taken from yytname. If YYRES is null, do not copy; instead, return the length of what the result would have been. */ static YYSIZE_T yytnamerr (char *yyres, const char *yystr) { if (*yystr == '"') { YYSIZE_T yyn = 0; char const *yyp = yystr; for (;;) switch (*++yyp) { case '\'': case ',': goto do_not_strip_quotes; case '\\': if (*++yyp != '\\') goto do_not_strip_quotes; /* Fall through. */ default: if (yyres) yyres[yyn] = *yyp; yyn++; break; case '"': if (yyres) yyres[yyn] = '\0'; return yyn; } do_not_strip_quotes: ; } if (! yyres) return yystrlen (yystr); return yystpcpy (yyres, yystr) - yyres; } # endif /* Copy into YYRESULT an error message about the unexpected token YYCHAR while in state YYSTATE. Return the number of bytes copied, including the terminating null byte. If YYRESULT is null, do not copy anything; just return the number of bytes that would be copied. As a special case, return 0 if an ordinary "syntax error" message will do. Return YYSIZE_MAXIMUM if overflow occurs during size calculation. */ static YYSIZE_T yysyntax_error (char *yyresult, int yystate, int yychar) { int yyn = yypact[yystate]; if (! (YYPACT_NINF < yyn && yyn <= YYLAST)) return 0; else { int yytype = YYTRANSLATE (yychar); YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]); YYSIZE_T yysize = yysize0; YYSIZE_T yysize1; int yysize_overflow = 0; enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; int yyx; # if 0 /* This is so xgettext sees the translatable formats that are constructed on the fly. */ YY_("syntax error, unexpected %s"); YY_("syntax error, unexpected %s, expecting %s"); YY_("syntax error, unexpected %s, expecting %s or %s"); YY_("syntax error, unexpected %s, expecting %s or %s or %s"); YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"); # endif char *yyfmt; char const *yyf; static char const yyunexpected[] = "syntax error, unexpected %s"; static char const yyexpecting[] = ", expecting %s"; static char const yyor[] = " or %s"; char yyformat[sizeof yyunexpected + sizeof yyexpecting - 1 + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2) * (sizeof yyor - 1))]; char const *yyprefix = yyexpecting; /* Start YYX at -YYN if negative to avoid negative indexes in YYCHECK. */ int yyxbegin = yyn < 0 ? -yyn : 0; /* Stay within bounds of both yycheck and yytname. */ int yychecklim = YYLAST - yyn + 1; int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; int yycount = 1; yyarg[0] = yytname[yytype]; yyfmt = yystpcpy (yyformat, yyunexpected); for (yyx = yyxbegin; yyx < yyxend; ++yyx) if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR) { if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) { yycount = 1; yysize = yysize0; yyformat[sizeof yyunexpected - 1] = '\0'; break; } yyarg[yycount++] = yytname[yyx]; yysize1 = yysize + yytnamerr (0, yytname[yyx]); yysize_overflow |= (yysize1 < yysize); yysize = yysize1; yyfmt = yystpcpy (yyfmt, yyprefix); yyprefix = yyor; } yyf = YY_(yyformat); yysize1 = yysize + yystrlen (yyf); yysize_overflow |= (yysize1 < yysize); yysize = yysize1; if (yysize_overflow) return YYSIZE_MAXIMUM; if (yyresult) { /* Avoid sprintf, as that infringes on the user's name space. Don't have undefined behavior even if the translation produced a string with the wrong number of "%s"s. */ char *yyp = yyresult; int yyi = 0; while ((*yyp = *yyf) != '\0') { if (*yyp == '%' && yyf[1] == 's' && yyi < yycount) { yyp += yytnamerr (yyp, yyarg[yyi++]); yyf += 2; } else { yyp++; yyf++; } } } return yysize; } } #endif /* YYERROR_VERBOSE */ /*-----------------------------------------------. | Release the memory associated to this symbol. | `-----------------------------------------------*/ /*ARGSUSED*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep) #else static void yydestruct (yymsg, yytype, yyvaluep) const char *yymsg; int yytype; YYSTYPE *yyvaluep; #endif { YYUSE (yyvaluep); if (!yymsg) yymsg = "Deleting"; YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp); switch (yytype) { default: break; } } /* Prevent warnings from -Wmissing-prototypes. */ #ifdef YYPARSE_PARAM #if defined __STDC__ || defined __cplusplus int yyparse (void *YYPARSE_PARAM); #else int yyparse (); #endif #else /* ! YYPARSE_PARAM */ #if defined __STDC__ || defined __cplusplus int yyparse (void); #else int yyparse (); #endif #endif /* ! YYPARSE_PARAM */ /*----------. | yyparse. | `----------*/ #ifdef YYPARSE_PARAM #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) int yyparse (void *YYPARSE_PARAM) #else int yyparse (YYPARSE_PARAM) void *YYPARSE_PARAM; #endif #else /* ! YYPARSE_PARAM */ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) int yyparse (void) #else int yyparse () #endif #endif { /* The lookahead symbol. */ int yychar; /* The semantic value of the lookahead symbol. */ YYSTYPE yylval; /* Number of syntax errors so far. */ int yynerrs; int yystate; int yyn; int yyresult; /* Number of tokens to shift before error messages enabled. */ int yyerrstatus; /* Lookahead token as an internal (translated) token number. */ int yytoken = 0; #if YYERROR_VERBOSE /* Buffer for error messages, and its allocated size. */ char yymsgbuf[128]; char *yymsg = yymsgbuf; YYSIZE_T yymsg_alloc = sizeof yymsgbuf; #endif /* Three stacks and their tools: `yyss': related to states, `yyvs': related to semantic values, `yyls': related to locations. Refer to the stacks thru separate pointers, to allow yyoverflow to reallocate them elsewhere. */ /* The state stack. */ yytype_int16 yyssa[YYINITDEPTH]; yytype_int16 *yyss = yyssa; yytype_int16 *yyssp; /* The semantic value stack. */ YYSTYPE yyvsa[YYINITDEPTH]; YYSTYPE *yyvs = yyvsa; YYSTYPE *yyvsp; #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) YYSIZE_T yystacksize = YYINITDEPTH; /* The variables used to return semantic value and location from the action routines. */ YYSTYPE yyval; /* The number of symbols on the RHS of the reduced rule. Keep to zero when no symbol should be popped. */ int yylen = 0; YYDPRINTF ((stderr, "Starting parse\n")); yystate = 0; yyerrstatus = 0; yynerrs = 0; yychar = YYEMPTY; /* Cause a token to be read. */ /* Initialize stack pointers. Waste one element of value and location stack so that they stay on the same level as the state stack. The wasted elements are never initialized. */ yyssp = yyss; yyvsp = yyvs; goto yysetstate; /*------------------------------------------------------------. | yynewstate -- Push a new state, which is found in yystate. | `------------------------------------------------------------*/ yynewstate: /* In all cases, when you get here, the value and location stacks have just been pushed. So pushing a state here evens the stacks. */ yyssp++; yysetstate: *yyssp = yystate; if (yyss + yystacksize - 1 <= yyssp) { /* Get the current used size of the three stacks, in elements. */ YYSIZE_T yysize = yyssp - yyss + 1; #ifdef yyoverflow { /* Give user a chance to reallocate the stack. Use copies of these so that the &'s don't force the real ones into memory. */ YYSTYPE *yyvs1 = yyvs; yytype_int16 *yyss1 = yyss; /* Each stack pointer address is followed by the size of the data in use in that stack, in bytes. This used to be a conditional around just the two extra args, but that might be undefined if yyoverflow is a macro. */ yyoverflow (YY_("memory exhausted"), &yyss1, yysize * sizeof (*yyssp), &yyvs1, yysize * sizeof (*yyvsp), &yystacksize); yyss = yyss1; yyvs = yyvs1; } #else /* no yyoverflow */ # ifndef YYSTACK_RELOCATE goto yyexhaustedlab; # else /* Extend the stack our own way. */ if (YYMAXDEPTH <= yystacksize) goto yyexhaustedlab; yystacksize *= 2; if (YYMAXDEPTH < yystacksize) yystacksize = YYMAXDEPTH; { yytype_int16 *yyss1 = yyss; union yyalloc *yyptr = (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); if (! yyptr) goto yyexhaustedlab; YYSTACK_RELOCATE (yyss); YYSTACK_RELOCATE (yyvs); # undef YYSTACK_RELOCATE if (yyss1 != yyssa) YYSTACK_FREE (yyss1); } # endif #endif /* no yyoverflow */ yyssp = yyss + yysize - 1; yyvsp = yyvs + yysize - 1; YYDPRINTF ((stderr, "Stack size increased to %lu\n", (unsigned long int) yystacksize)); if (yyss + yystacksize - 1 <= yyssp) YYABORT; } YYDPRINTF ((stderr, "Entering state %d\n", yystate)); if (yystate == YYFINAL) YYACCEPT; goto yybackup; /*-----------. | yybackup. | `-----------*/ yybackup: /* Do appropriate processing given the current state. Read a lookahead token if we need one and don't already have one. */ /* First try to decide what to do without reference to lookahead token. */ yyn = yypact[yystate]; if (yyn == YYPACT_NINF) goto yydefault; /* Not known => get a lookahead token if don't already have one. */ /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */ if (yychar == YYEMPTY) { YYDPRINTF ((stderr, "Reading a token: ")); yychar = YYLEX; } if (yychar <= YYEOF) { yychar = yytoken = YYEOF; YYDPRINTF ((stderr, "Now at end of input.\n")); } else { yytoken = YYTRANSLATE (yychar); YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc); } /* If the proper action on seeing token YYTOKEN is to reduce or to detect an error, take that action. */ yyn += yytoken; if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) goto yydefault; yyn = yytable[yyn]; if (yyn <= 0) { if (yyn == 0 || yyn == YYTABLE_NINF) goto yyerrlab; yyn = -yyn; goto yyreduce; } /* Count tokens shifted since error; after three, turn off error status. */ if (yyerrstatus) yyerrstatus--; /* Shift the lookahead token. */ YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); /* Discard the shifted token. */ yychar = YYEMPTY; yystate = yyn; *++yyvsp = yylval; goto yynewstate; /*-----------------------------------------------------------. | yydefault -- do the default action for the current state. | `-----------------------------------------------------------*/ yydefault: yyn = yydefact[yystate]; if (yyn == 0) goto yyerrlab; goto yyreduce; /*-----------------------------. | yyreduce -- Do a reduction. | `-----------------------------*/ yyreduce: /* yyn is the number of a rule to reduce with. */ yylen = yyr2[yyn]; /* If YYLEN is nonzero, implement the default value of the action: `$$ = $1'. Otherwise, the following line sets YYVAL to garbage. This behavior is undocumented and Bison users should not rely upon it. Assigning to YYVAL unconditionally makes the parser a bit smaller, and it avoids a GCC warning that YYVAL may be used uninitialized. */ yyval = yyvsp[1-yylen]; YY_REDUCE_PRINT (yyn); switch (yyn) { case 2: /* Line 1269 of yacc.c. */ #line 155 "plural.y" { if ((yyvsp[(1) - (1)].exp) == NULL) YYABORT; ((struct parse_args *) arg)->res = (yyvsp[(1) - (1)].exp); } break; case 3: /* Line 1269 of yacc.c. */ #line 163 "plural.y" { (yyval.exp) = new_exp_3 (qmop, (yyvsp[(1) - (5)].exp), (yyvsp[(3) - (5)].exp), (yyvsp[(5) - (5)].exp)); } break; case 4: /* Line 1269 of yacc.c. */ #line 167 "plural.y" { (yyval.exp) = new_exp_2 (lor, (yyvsp[(1) - (3)].exp), (yyvsp[(3) - (3)].exp)); } break; case 5: /* Line 1269 of yacc.c. */ #line 171 "plural.y" { (yyval.exp) = new_exp_2 (land, (yyvsp[(1) - (3)].exp), (yyvsp[(3) - (3)].exp)); } break; case 6: /* Line 1269 of yacc.c. */ #line 175 "plural.y" { (yyval.exp) = new_exp_2 ((yyvsp[(2) - (3)].op), (yyvsp[(1) - (3)].exp), (yyvsp[(3) - (3)].exp)); } break; case 7: /* Line 1269 of yacc.c. */ #line 179 "plural.y" { (yyval.exp) = new_exp_2 ((yyvsp[(2) - (3)].op), (yyvsp[(1) - (3)].exp), (yyvsp[(3) - (3)].exp)); } break; case 8: /* Line 1269 of yacc.c. */ #line 183 "plural.y" { (yyval.exp) = new_exp_2 ((yyvsp[(2) - (3)].op), (yyvsp[(1) - (3)].exp), (yyvsp[(3) - (3)].exp)); } break; case 9: /* Line 1269 of yacc.c. */ #line 187 "plural.y" { (yyval.exp) = new_exp_2 ((yyvsp[(2) - (3)].op), (yyvsp[(1) - (3)].exp), (yyvsp[(3) - (3)].exp)); } break; case 10: /* Line 1269 of yacc.c. */ #line 191 "plural.y" { (yyval.exp) = new_exp_1 (lnot, (yyvsp[(2) - (2)].exp)); } break; case 11: /* Line 1269 of yacc.c. */ #line 195 "plural.y" { (yyval.exp) = new_exp_0 (var); } break; case 12: /* Line 1269 of yacc.c. */ #line 199 "plural.y" { if (((yyval.exp) = new_exp_0 (num)) != NULL) (yyval.exp)->val.num = (yyvsp[(1) - (1)].num); } break; case 13: /* Line 1269 of yacc.c. */ #line 204 "plural.y" { (yyval.exp) = (yyvsp[(2) - (3)].exp); } break; /* Line 1269 of yacc.c. */ #line 1572 "plural.c" default: break; } YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); YYPOPSTACK (yylen); yylen = 0; YY_STACK_PRINT (yyss, yyssp); *++yyvsp = yyval; /* Now `shift' the result of the reduction. Determine what state that goes to, based on the state we popped back to and the rule number reduced by. */ yyn = yyr1[yyn]; yystate = yypgoto[yyn - YYNTOKENS] + *yyssp; if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp) yystate = yytable[yystate]; else yystate = yydefgoto[yyn - YYNTOKENS]; goto yynewstate; /*------------------------------------. | yyerrlab -- here on detecting error | `------------------------------------*/ yyerrlab: /* If not already recovering from an error, report this error. */ if (!yyerrstatus) { ++yynerrs; #if ! YYERROR_VERBOSE yyerror (YY_("syntax error")); #else { YYSIZE_T yysize = yysyntax_error (0, yystate, yychar); if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM) { YYSIZE_T yyalloc = 2 * yysize; if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM)) yyalloc = YYSTACK_ALLOC_MAXIMUM; if (yymsg != yymsgbuf) YYSTACK_FREE (yymsg); yymsg = (char *) YYSTACK_ALLOC (yyalloc); if (yymsg) yymsg_alloc = yyalloc; else { yymsg = yymsgbuf; yymsg_alloc = sizeof yymsgbuf; } } if (0 < yysize && yysize <= yymsg_alloc) { (void) yysyntax_error (yymsg, yystate, yychar); yyerror (yymsg); } else { yyerror (YY_("syntax error")); if (yysize != 0) goto yyexhaustedlab; } } #endif } if (yyerrstatus == 3) { /* If just tried and failed to reuse lookahead token after an error, discard it. */ if (yychar <= YYEOF) { /* Return failure if at end of input. */ if (yychar == YYEOF) YYABORT; } else { yydestruct ("Error: discarding", yytoken, &yylval); yychar = YYEMPTY; } } /* Else will try to reuse lookahead token after shifting the error token. */ goto yyerrlab1; /*---------------------------------------------------. | yyerrorlab -- error raised explicitly by YYERROR. | `---------------------------------------------------*/ yyerrorlab: /* Pacify compilers like GCC when the user code never invokes YYERROR and the label yyerrorlab therefore never appears in user code. */ if (/*CONSTCOND*/ 0) goto yyerrorlab; /* Do not reclaim the symbols of the rule which action triggered this YYERROR. */ YYPOPSTACK (yylen); yylen = 0; YY_STACK_PRINT (yyss, yyssp); yystate = *yyssp; goto yyerrlab1; /*-------------------------------------------------------------. | yyerrlab1 -- common code for both syntax error and YYERROR. | `-------------------------------------------------------------*/ yyerrlab1: yyerrstatus = 3; /* Each real token shifted decrements this. */ for (;;) { yyn = yypact[yystate]; if (yyn != YYPACT_NINF) { yyn += YYTERROR; if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) { yyn = yytable[yyn]; if (0 < yyn) break; } } /* Pop the current state because it cannot handle the error token. */ if (yyssp == yyss) YYABORT; yydestruct ("Error: popping", yystos[yystate], yyvsp); YYPOPSTACK (1); yystate = *yyssp; YY_STACK_PRINT (yyss, yyssp); } *++yyvsp = yylval; /* Shift the error token. */ YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp); yystate = yyn; goto yynewstate; /*-------------------------------------. | yyacceptlab -- YYACCEPT comes here. | `-------------------------------------*/ yyacceptlab: yyresult = 0; goto yyreturn; /*-----------------------------------. | yyabortlab -- YYABORT comes here. | `-----------------------------------*/ yyabortlab: yyresult = 1; goto yyreturn; #ifndef yyoverflow /*-------------------------------------------------. | yyexhaustedlab -- memory exhaustion comes here. | `-------------------------------------------------*/ yyexhaustedlab: yyerror (YY_("memory exhausted")); yyresult = 2; /* Fall through. */ #endif yyreturn: if (yychar != YYEMPTY) yydestruct ("Cleanup: discarding lookahead", yytoken, &yylval); /* Do not reclaim the symbols of the rule which action triggered this YYABORT or YYACCEPT. */ YYPOPSTACK (yylen); YY_STACK_PRINT (yyss, yyssp); while (yyssp != yyss) { yydestruct ("Cleanup: popping", yystos[*yyssp], yyvsp); YYPOPSTACK (1); } #ifndef yyoverflow if (yyss != yyssa) YYSTACK_FREE (yyss); #endif #if YYERROR_VERBOSE if (yymsg != yymsgbuf) YYSTACK_FREE (yymsg); #endif /* Make sure YYID is used. */ return YYID (yyresult); } /* Line 1486 of yacc.c. */ #line 209 "plural.y" void internal_function FREE_EXPRESSION (struct expression *exp) { if (exp == NULL) return; /* Handle the recursive case. */ switch (exp->nargs) { case 3: FREE_EXPRESSION (exp->val.args[2]); /* FALLTHROUGH */ case 2: FREE_EXPRESSION (exp->val.args[1]); /* FALLTHROUGH */ case 1: FREE_EXPRESSION (exp->val.args[0]); /* FALLTHROUGH */ default: break; } free (exp); } static int yylex (YYSTYPE *lval, const char **pexp) { const char *exp = *pexp; int result; while (1) { if (exp[0] == '\0') { *pexp = exp; return YYEOF; } if (exp[0] != ' ' && exp[0] != '\t') break; ++exp; } result = *exp++; switch (result) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': { unsigned long int n = result - '0'; while (exp[0] >= '0' && exp[0] <= '9') { n *= 10; n += exp[0] - '0'; ++exp; } lval->num = n; result = NUMBER; } break; case '=': if (exp[0] == '=') { ++exp; lval->op = equal; result = EQUOP2; } else result = YYERRCODE; break; case '!': if (exp[0] == '=') { ++exp; lval->op = not_equal; result = EQUOP2; } break; case '&': case '|': if (exp[0] == result) ++exp; else result = YYERRCODE; break; case '<': if (exp[0] == '=') { ++exp; lval->op = less_or_equal; } else lval->op = less_than; result = CMPOP2; break; case '>': if (exp[0] == '=') { ++exp; lval->op = greater_or_equal; } else lval->op = greater_than; result = CMPOP2; break; case '*': lval->op = mult; result = MULOP2; break; case '/': lval->op = divide; result = MULOP2; break; case '%': lval->op = module; result = MULOP2; break; case '+': lval->op = plus; result = ADDOP2; break; case '-': lval->op = minus; result = ADDOP2; break; case 'n': case '?': case ':': case '(': case ')': /* Nothing, just return the character. */ break; case ';': case '\n': case '\0': /* Be safe and let the user call this function again. */ --exp; result = YYEOF; break; default: result = YYERRCODE; #if YYDEBUG != 0 --exp; #endif break; } *pexp = exp; return result; } static void yyerror (const char *str) { /* Do nothing. We don't print error messages here. */ } gliv-1.9.7/intl/dcngettext.c0000644000076400007640000000347411465576131013243 0ustar gg/* Implementation of the dcngettext(3) function. Copyright (C) 1995-1999, 2000-2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include "gettextP.h" #ifdef _LIBC # include #else # include "libgnuintl.h" #endif /* @@ end of prolog @@ */ /* Names for the libintl functions are a problem. They must not clash with existing names and they should follow ANSI C. But this source code is also used in GNU C Library where the names have a __ prefix. So we have to make a difference here. */ #ifdef _LIBC # define DCNGETTEXT __dcngettext # define DCIGETTEXT __dcigettext #else # define DCNGETTEXT libintl_dcngettext # define DCIGETTEXT libintl_dcigettext #endif /* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY locale. */ char * DCNGETTEXT (const char *domainname, const char *msgid1, const char *msgid2, unsigned long int n, int category) { return DCIGETTEXT (domainname, msgid1, msgid2, 1, n, category); } #ifdef _LIBC /* Alias for function name in GNU C Library. */ weak_alias (__dcngettext, dcngettext); #endif gliv-1.9.7/intl/plural-exp.c0000644000076400007640000000773211465576131013164 0ustar gg/* Expression parsing for plural form selection. Copyright (C) 2000-2001, 2003, 2005-2007 Free Software Foundation, Inc. Written by Ulrich Drepper , 2000. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include "plural-exp.h" #if (defined __GNUC__ && !(__APPLE_CC__ > 1) && !defined __cplusplus) \ || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L) /* These structs are the constant expression for the germanic plural form determination. It represents the expression "n != 1". */ static const struct expression plvar = { .nargs = 0, .operation = var, }; static const struct expression plone = { .nargs = 0, .operation = num, .val = { .num = 1 } }; struct expression GERMANIC_PLURAL = { .nargs = 2, .operation = not_equal, .val = { .args = { [0] = (struct expression *) &plvar, [1] = (struct expression *) &plone } } }; # define INIT_GERMANIC_PLURAL() #else /* For compilers without support for ISO C 99 struct/union initializers: Initialization at run-time. */ static struct expression plvar; static struct expression plone; struct expression GERMANIC_PLURAL; static void init_germanic_plural () { if (plone.val.num == 0) { plvar.nargs = 0; plvar.operation = var; plone.nargs = 0; plone.operation = num; plone.val.num = 1; GERMANIC_PLURAL.nargs = 2; GERMANIC_PLURAL.operation = not_equal; GERMANIC_PLURAL.val.args[0] = &plvar; GERMANIC_PLURAL.val.args[1] = &plone; } } # define INIT_GERMANIC_PLURAL() init_germanic_plural () #endif void internal_function EXTRACT_PLURAL_EXPRESSION (const char *nullentry, const struct expression **pluralp, unsigned long int *npluralsp) { if (nullentry != NULL) { const char *plural; const char *nplurals; plural = strstr (nullentry, "plural="); nplurals = strstr (nullentry, "nplurals="); if (plural == NULL || nplurals == NULL) goto no_plural; else { char *endp; unsigned long int n; struct parse_args args; /* First get the number. */ nplurals += 9; while (*nplurals != '\0' && isspace ((unsigned char) *nplurals)) ++nplurals; if (!(*nplurals >= '0' && *nplurals <= '9')) goto no_plural; #if defined HAVE_STRTOUL || defined _LIBC n = strtoul (nplurals, &endp, 10); #else for (endp = nplurals, n = 0; *endp >= '0' && *endp <= '9'; endp++) n = n * 10 + (*endp - '0'); #endif if (nplurals == endp) goto no_plural; *npluralsp = n; /* Due to the restrictions bison imposes onto the interface of the scanner function we have to put the input string and the result passed up from the parser into the same structure which address is passed down to the parser. */ plural += 7; args.cp = plural; if (PLURAL_PARSE (&args) != 0) goto no_plural; *pluralp = args.res; } } else { /* By default we are using the Germanic form: singular form only for `one', the plural form otherwise. Yes, this is also what English is using since English is a Germanic language. */ no_plural: INIT_GERMANIC_PLURAL (); *pluralp = &GERMANIC_PLURAL; *npluralsp = 2; } } gliv-1.9.7/intl/intl-compat.c0000644000076400007640000000665111465576131013321 0ustar gg/* intl-compat.c - Stub functions to call gettext functions from GNU gettext Library. Copyright (C) 1995, 2000-2003, 2005 Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include "gettextP.h" /* @@ end of prolog @@ */ /* This file redirects the gettext functions (without prefix) to those defined in the included GNU libintl library (with "libintl_" prefix). It is compiled into libintl in order to make the AM_GNU_GETTEXT test of gettext <= 0.11.2 work with the libintl library >= 0.11.3 which has the redirections primarily in the include file. It is also compiled into libgnuintl so that libgnuintl.so can be used as LD_PRELOADable library on glibc systems, to provide the extra features that the functions in the libc don't have (namely, logging). */ #undef gettext #undef dgettext #undef dcgettext #undef ngettext #undef dngettext #undef dcngettext #undef textdomain #undef bindtextdomain #undef bind_textdomain_codeset /* When building a DLL, we must export some functions. Note that because the functions are only defined for binary backward compatibility, we don't need to use __declspec(dllimport) in any case. */ #if HAVE_VISIBILITY && BUILDING_DLL # define DLL_EXPORTED __attribute__((__visibility__("default"))) #elif defined _MSC_VER && BUILDING_DLL # define DLL_EXPORTED __declspec(dllexport) #else # define DLL_EXPORTED #endif DLL_EXPORTED char * gettext (const char *msgid) { return libintl_gettext (msgid); } DLL_EXPORTED char * dgettext (const char *domainname, const char *msgid) { return libintl_dgettext (domainname, msgid); } DLL_EXPORTED char * dcgettext (const char *domainname, const char *msgid, int category) { return libintl_dcgettext (domainname, msgid, category); } DLL_EXPORTED char * ngettext (const char *msgid1, const char *msgid2, unsigned long int n) { return libintl_ngettext (msgid1, msgid2, n); } DLL_EXPORTED char * dngettext (const char *domainname, const char *msgid1, const char *msgid2, unsigned long int n) { return libintl_dngettext (domainname, msgid1, msgid2, n); } DLL_EXPORTED char * dcngettext (const char *domainname, const char *msgid1, const char *msgid2, unsigned long int n, int category) { return libintl_dcngettext (domainname, msgid1, msgid2, n, category); } DLL_EXPORTED char * textdomain (const char *domainname) { return libintl_textdomain (domainname); } DLL_EXPORTED char * bindtextdomain (const char *domainname, const char *dirname) { return libintl_bindtextdomain (domainname, dirname); } DLL_EXPORTED char * bind_textdomain_codeset (const char *domainname, const char *codeset) { return libintl_bind_textdomain_codeset (domainname, codeset); } gliv-1.9.7/intl/gettext.c0000644000076400007640000000355411465576131012555 0ustar gg/* Implementation of gettext(3) function. Copyright (C) 1995, 1997, 2000-2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #ifdef _LIBC # define __need_NULL # include #else # include /* Just for NULL. */ #endif #include "gettextP.h" #ifdef _LIBC # include #else # include "libgnuintl.h" #endif /* @@ end of prolog @@ */ /* Names for the libintl functions are a problem. They must not clash with existing names and they should follow ANSI C. But this source code is also used in GNU C Library where the names have a __ prefix. So we have to make a difference here. */ #ifdef _LIBC # define GETTEXT __gettext # define DCGETTEXT INTUSE(__dcgettext) #else # define GETTEXT libintl_gettext # define DCGETTEXT libintl_dcgettext #endif /* Look up MSGID in the current default message catalog for the current LC_MESSAGES locale. If not found, returns MSGID itself (the default text). */ char * GETTEXT (const char *msgid) { return DCGETTEXT (NULL, msgid, LC_MESSAGES); } #ifdef _LIBC /* Alias for function name in GNU C Library. */ weak_alias (__gettext, gettext); #endif gliv-1.9.7/intl/plural-exp.h0000644000076400007640000001013111465576131013154 0ustar gg/* Expression parsing and evaluation for plural form selection. Copyright (C) 2000-2003, 2005-2007 Free Software Foundation, Inc. Written by Ulrich Drepper , 2000. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _PLURAL_EXP_H #define _PLURAL_EXP_H #ifndef internal_function # define internal_function #endif #ifndef attribute_hidden # define attribute_hidden #endif #ifdef __cplusplus extern "C" { #endif enum expression_operator { /* Without arguments: */ var, /* The variable "n". */ num, /* Decimal number. */ /* Unary operators: */ lnot, /* Logical NOT. */ /* Binary operators: */ mult, /* Multiplication. */ divide, /* Division. */ module, /* Modulo operation. */ plus, /* Addition. */ minus, /* Subtraction. */ less_than, /* Comparison. */ greater_than, /* Comparison. */ less_or_equal, /* Comparison. */ greater_or_equal, /* Comparison. */ equal, /* Comparison for equality. */ not_equal, /* Comparison for inequality. */ land, /* Logical AND. */ lor, /* Logical OR. */ /* Ternary operators: */ qmop /* Question mark operator. */ }; /* This is the representation of the expressions to determine the plural form. */ struct expression { int nargs; /* Number of arguments. */ enum expression_operator operation; union { unsigned long int num; /* Number value for `num'. */ struct expression *args[3]; /* Up to three arguments. */ } val; }; /* This is the data structure to pass information to the parser and get the result in a thread-safe way. */ struct parse_args { const char *cp; struct expression *res; }; /* Names for the libintl functions are a problem. This source code is used 1. in the GNU C Library library, 2. in the GNU libintl library, 3. in the GNU gettext tools. The function names in each situation must be different, to allow for binary incompatible changes in 'struct expression'. Furthermore, 1. in the GNU C Library library, the names have a __ prefix, 2.+3. in the GNU libintl library and in the GNU gettext tools, the names must follow ANSI C and not start with __. So we have to distinguish the three cases. */ #ifdef _LIBC # define FREE_EXPRESSION __gettext_free_exp # define PLURAL_PARSE __gettextparse # define GERMANIC_PLURAL __gettext_germanic_plural # define EXTRACT_PLURAL_EXPRESSION __gettext_extract_plural #elif defined (IN_LIBINTL) # define FREE_EXPRESSION libintl_gettext_free_exp # define PLURAL_PARSE libintl_gettextparse # define GERMANIC_PLURAL libintl_gettext_germanic_plural # define EXTRACT_PLURAL_EXPRESSION libintl_gettext_extract_plural #else # define FREE_EXPRESSION free_plural_expression # define PLURAL_PARSE parse_plural_expression # define GERMANIC_PLURAL germanic_plural # define EXTRACT_PLURAL_EXPRESSION extract_plural_expression #endif extern void FREE_EXPRESSION (struct expression *exp) internal_function; extern int PLURAL_PARSE (void *arg); extern struct expression GERMANIC_PLURAL attribute_hidden; extern void EXTRACT_PLURAL_EXPRESSION (const char *nullentry, const struct expression **pluralp, unsigned long int *npluralsp) internal_function; #if !defined (_LIBC) && !defined (IN_LIBINTL) && !defined (IN_LIBGLOCALE) extern unsigned long int plural_eval (const struct expression *pexp, unsigned long int n); #endif #ifdef __cplusplus } #endif #endif /* _PLURAL_EXP_H */ gliv-1.9.7/intl/printf-args.h0000644000076400007640000000742211465576131013330 0ustar gg/* Decomposed printf argument list. Copyright (C) 1999, 2002-2003, 2006-2007 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _PRINTF_ARGS_H #define _PRINTF_ARGS_H /* This file can be parametrized with the following macros: ENABLE_UNISTDIO Set to 1 to enable the unistdio extensions. PRINTF_FETCHARGS Name of the function to be declared. STATIC Set to 'static' to declare the function static. */ /* Default parameters. */ #ifndef PRINTF_FETCHARGS # define PRINTF_FETCHARGS printf_fetchargs #endif /* Get size_t. */ #include /* Get wchar_t. */ #if HAVE_WCHAR_T # include #endif /* Get wint_t. */ #if HAVE_WINT_T # include #endif /* Get va_list. */ #include /* Argument types */ typedef enum { TYPE_NONE, TYPE_SCHAR, TYPE_UCHAR, TYPE_SHORT, TYPE_USHORT, TYPE_INT, TYPE_UINT, TYPE_LONGINT, TYPE_ULONGINT, #if HAVE_LONG_LONG_INT TYPE_LONGLONGINT, TYPE_ULONGLONGINT, #endif TYPE_DOUBLE, TYPE_LONGDOUBLE, TYPE_CHAR, #if HAVE_WINT_T TYPE_WIDE_CHAR, #endif TYPE_STRING, #if HAVE_WCHAR_T TYPE_WIDE_STRING, #endif TYPE_POINTER, TYPE_COUNT_SCHAR_POINTER, TYPE_COUNT_SHORT_POINTER, TYPE_COUNT_INT_POINTER, TYPE_COUNT_LONGINT_POINTER #if HAVE_LONG_LONG_INT , TYPE_COUNT_LONGLONGINT_POINTER #endif #if ENABLE_UNISTDIO /* The unistdio extensions. */ , TYPE_U8_STRING , TYPE_U16_STRING , TYPE_U32_STRING #endif } arg_type; /* Polymorphic argument */ typedef struct { arg_type type; union { signed char a_schar; unsigned char a_uchar; short a_short; unsigned short a_ushort; int a_int; unsigned int a_uint; long int a_longint; unsigned long int a_ulongint; #if HAVE_LONG_LONG_INT long long int a_longlongint; unsigned long long int a_ulonglongint; #endif float a_float; double a_double; long double a_longdouble; int a_char; #if HAVE_WINT_T wint_t a_wide_char; #endif const char* a_string; #if HAVE_WCHAR_T const wchar_t* a_wide_string; #endif void* a_pointer; signed char * a_count_schar_pointer; short * a_count_short_pointer; int * a_count_int_pointer; long int * a_count_longint_pointer; #if HAVE_LONG_LONG_INT long long int * a_count_longlongint_pointer; #endif #if ENABLE_UNISTDIO /* The unistdio extensions. */ const uint8_t * a_u8_string; const uint16_t * a_u16_string; const uint32_t * a_u32_string; #endif } a; } argument; typedef struct { size_t count; argument *arg; } arguments; /* Fetch the arguments, putting them into a. */ #ifdef STATIC STATIC #else extern #endif int PRINTF_FETCHARGS (va_list args, arguments *a); #endif /* _PRINTF_ARGS_H */ gliv-1.9.7/intl/dngettext.c0000644000076400007640000000354611465576131013100 0ustar gg/* Implementation of the dngettext(3) function. Copyright (C) 1995-1997, 2000-2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include "gettextP.h" #include #ifdef _LIBC # include #else # include "libgnuintl.h" #endif /* @@ end of prolog @@ */ /* Names for the libintl functions are a problem. They must not clash with existing names and they should follow ANSI C. But this source code is also used in GNU C Library where the names have a __ prefix. So we have to make a difference here. */ #ifdef _LIBC # define DNGETTEXT __dngettext # define DCNGETTEXT __dcngettext #else # define DNGETTEXT libintl_dngettext # define DCNGETTEXT libintl_dcngettext #endif /* Look up MSGID in the DOMAINNAME message catalog of the current LC_MESSAGES locale and skip message according to the plural form. */ char * DNGETTEXT (const char *domainname, const char *msgid1, const char *msgid2, unsigned long int n) { return DCNGETTEXT (domainname, msgid1, msgid2, n, LC_MESSAGES); } #ifdef _LIBC /* Alias for function name in GNU C Library. */ weak_alias (__dngettext, dngettext); #endif gliv-1.9.7/intl/explodename.c0000644000076400007640000000654611465576131013376 0ustar gg/* Copyright (C) 1995-1998, 2000-2001, 2003, 2005, 2007 Free Software Foundation, Inc. Contributed by Ulrich Drepper , 1995. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include "loadinfo.h" /* On some strange systems still no definition of NULL is found. Sigh! */ #ifndef NULL # if defined __STDC__ && __STDC__ # define NULL ((void *) 0) # else # define NULL 0 # endif #endif /* @@ end of prolog @@ */ /* Split a locale name NAME into a leading language part and all the rest. Return a pointer to the first character after the language, i.e. to the first byte of the rest. */ static char *_nl_find_language (const char *name); static char * _nl_find_language (const char *name) { while (name[0] != '\0' && name[0] != '_' && name[0] != '@' && name[0] != '.') ++name; return (char *) name; } int _nl_explode_name (char *name, const char **language, const char **modifier, const char **territory, const char **codeset, const char **normalized_codeset) { char *cp; int mask; *modifier = NULL; *territory = NULL; *codeset = NULL; *normalized_codeset = NULL; /* Now we determine the single parts of the locale name. First look for the language. Termination symbols are `_', '.', and `@'. */ mask = 0; *language = cp = name; cp = _nl_find_language (*language); if (*language == cp) /* This does not make sense: language has to be specified. Use this entry as it is without exploding. Perhaps it is an alias. */ cp = strchr (*language, '\0'); else { if (cp[0] == '_') { /* Next is the territory. */ cp[0] = '\0'; *territory = ++cp; while (cp[0] != '\0' && cp[0] != '.' && cp[0] != '@') ++cp; mask |= XPG_TERRITORY; } if (cp[0] == '.') { /* Next is the codeset. */ cp[0] = '\0'; *codeset = ++cp; while (cp[0] != '\0' && cp[0] != '@') ++cp; mask |= XPG_CODESET; if (*codeset != cp && (*codeset)[0] != '\0') { *normalized_codeset = _nl_normalize_codeset (*codeset, cp - *codeset); if (*normalized_codeset == NULL) return -1; else if (strcmp (*codeset, *normalized_codeset) == 0) free ((char *) *normalized_codeset); else mask |= XPG_NORM_CODESET; } } } if (cp[0] == '@') { /* Next is the modifier. */ cp[0] = '\0'; *modifier = ++cp; if (cp[0] != '\0') mask |= XPG_MODIFIER; } if (*territory != NULL && (*territory)[0] == '\0') mask &= ~XPG_TERRITORY; if (*codeset != NULL && (*codeset)[0] == '\0') mask &= ~XPG_CODESET; return mask; } gliv-1.9.7/intl/relocatable.c0000644000076400007640000003672011465576131013347 0ustar gg/* Provide relocatable packages. Copyright (C) 2003-2006, 2008-2009 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Tell glibc's to provide a prototype for getline(). This must come before because may include , and once has been included, it's too late. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif #include /* Specification. */ #include "relocatable.h" #if ENABLE_RELOCATABLE #include #include #include #include #ifdef NO_XMALLOC # define xmalloc malloc #else # include "xalloc.h" #endif #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ # define WIN32_LEAN_AND_MEAN # include #endif #if DEPENDS_ON_LIBCHARSET # include #endif #if DEPENDS_ON_LIBICONV && HAVE_ICONV # include #endif #if DEPENDS_ON_LIBINTL && ENABLE_NLS # include #endif /* Faked cheap 'bool'. */ #undef bool #undef false #undef true #define bool int #define false 0 #define true 1 /* Pathname support. ISSLASH(C) tests whether C is a directory separator character. IS_PATH_WITH_DIR(P) tests whether P contains a directory specification. */ #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ /* Win32, Cygwin, OS/2, DOS */ # define ISSLASH(C) ((C) == '/' || (C) == '\\') # define HAS_DEVICE(P) \ ((((P)[0] >= 'A' && (P)[0] <= 'Z') || ((P)[0] >= 'a' && (P)[0] <= 'z')) \ && (P)[1] == ':') # define IS_PATH_WITH_DIR(P) \ (strchr (P, '/') != NULL || strchr (P, '\\') != NULL || HAS_DEVICE (P)) # define FILE_SYSTEM_PREFIX_LEN(P) (HAS_DEVICE (P) ? 2 : 0) #else /* Unix */ # define ISSLASH(C) ((C) == '/') # define IS_PATH_WITH_DIR(P) (strchr (P, '/') != NULL) # define FILE_SYSTEM_PREFIX_LEN(P) 0 #endif /* Original installation prefix. */ static char *orig_prefix; static size_t orig_prefix_len; /* Current installation prefix. */ static char *curr_prefix; static size_t curr_prefix_len; /* These prefixes do not end in a slash. Anything that will be concatenated to them must start with a slash. */ /* Sets the original and the current installation prefix of this module. Relocation simply replaces a pathname starting with the original prefix by the corresponding pathname with the current prefix instead. Both prefixes should be directory names without trailing slash (i.e. use "" instead of "/"). */ static void set_this_relocation_prefix (const char *orig_prefix_arg, const char *curr_prefix_arg) { if (orig_prefix_arg != NULL && curr_prefix_arg != NULL /* Optimization: if orig_prefix and curr_prefix are equal, the relocation is a nop. */ && strcmp (orig_prefix_arg, curr_prefix_arg) != 0) { /* Duplicate the argument strings. */ char *memory; orig_prefix_len = strlen (orig_prefix_arg); curr_prefix_len = strlen (curr_prefix_arg); memory = (char *) xmalloc (orig_prefix_len + 1 + curr_prefix_len + 1); #ifdef NO_XMALLOC if (memory != NULL) #endif { memcpy (memory, orig_prefix_arg, orig_prefix_len + 1); orig_prefix = memory; memory += orig_prefix_len + 1; memcpy (memory, curr_prefix_arg, curr_prefix_len + 1); curr_prefix = memory; return; } } orig_prefix = NULL; curr_prefix = NULL; /* Don't worry about wasted memory here - this function is usually only called once. */ } /* Sets the original and the current installation prefix of the package. Relocation simply replaces a pathname starting with the original prefix by the corresponding pathname with the current prefix instead. Both prefixes should be directory names without trailing slash (i.e. use "" instead of "/"). */ void set_relocation_prefix (const char *orig_prefix_arg, const char *curr_prefix_arg) { set_this_relocation_prefix (orig_prefix_arg, curr_prefix_arg); /* Now notify all dependent libraries. */ #if DEPENDS_ON_LIBCHARSET libcharset_set_relocation_prefix (orig_prefix_arg, curr_prefix_arg); #endif #if DEPENDS_ON_LIBICONV && HAVE_ICONV && _LIBICONV_VERSION >= 0x0109 libiconv_set_relocation_prefix (orig_prefix_arg, curr_prefix_arg); #endif #if DEPENDS_ON_LIBINTL && ENABLE_NLS && defined libintl_set_relocation_prefix libintl_set_relocation_prefix (orig_prefix_arg, curr_prefix_arg); #endif } #if !defined IN_LIBRARY || (defined PIC && defined INSTALLDIR) /* Convenience function: Computes the current installation prefix, based on the original installation prefix, the original installation directory of a particular file, and the current pathname of this file. Returns it, freshly allocated. Returns NULL upon failure. */ #ifdef IN_LIBRARY #define compute_curr_prefix local_compute_curr_prefix static #endif char * compute_curr_prefix (const char *orig_installprefix, const char *orig_installdir, const char *curr_pathname) { char *curr_installdir; const char *rel_installdir; if (curr_pathname == NULL) return NULL; /* Determine the relative installation directory, relative to the prefix. This is simply the difference between orig_installprefix and orig_installdir. */ if (strncmp (orig_installprefix, orig_installdir, strlen (orig_installprefix)) != 0) /* Shouldn't happen - nothing should be installed outside $(prefix). */ return NULL; rel_installdir = orig_installdir + strlen (orig_installprefix); /* Determine the current installation directory. */ { const char *p_base = curr_pathname + FILE_SYSTEM_PREFIX_LEN (curr_pathname); const char *p = curr_pathname + strlen (curr_pathname); char *q; while (p > p_base) { p--; if (ISSLASH (*p)) break; } q = (char *) xmalloc (p - curr_pathname + 1); #ifdef NO_XMALLOC if (q == NULL) return NULL; #endif memcpy (q, curr_pathname, p - curr_pathname); q[p - curr_pathname] = '\0'; curr_installdir = q; } /* Compute the current installation prefix by removing the trailing rel_installdir from it. */ { const char *rp = rel_installdir + strlen (rel_installdir); const char *cp = curr_installdir + strlen (curr_installdir); const char *cp_base = curr_installdir + FILE_SYSTEM_PREFIX_LEN (curr_installdir); while (rp > rel_installdir && cp > cp_base) { bool same = false; const char *rpi = rp; const char *cpi = cp; while (rpi > rel_installdir && cpi > cp_base) { rpi--; cpi--; if (ISSLASH (*rpi) || ISSLASH (*cpi)) { if (ISSLASH (*rpi) && ISSLASH (*cpi)) same = true; break; } /* Do case-insensitive comparison if the file system is always or often case-insensitive. It's better to accept the comparison if the difference is only in case, rather than to fail. */ #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ /* Win32, Cygwin, OS/2, DOS - case insignificant file system */ if ((*rpi >= 'a' && *rpi <= 'z' ? *rpi - 'a' + 'A' : *rpi) != (*cpi >= 'a' && *cpi <= 'z' ? *cpi - 'a' + 'A' : *cpi)) break; #else if (*rpi != *cpi) break; #endif } if (!same) break; /* The last pathname component was the same. opi and cpi now point to the slash before it. */ rp = rpi; cp = cpi; } if (rp > rel_installdir) { /* Unexpected: The curr_installdir does not end with rel_installdir. */ free (curr_installdir); return NULL; } { size_t curr_prefix_len = cp - curr_installdir; char *curr_prefix; curr_prefix = (char *) xmalloc (curr_prefix_len + 1); #ifdef NO_XMALLOC if (curr_prefix == NULL) { free (curr_installdir); return NULL; } #endif memcpy (curr_prefix, curr_installdir, curr_prefix_len); curr_prefix[curr_prefix_len] = '\0'; free (curr_installdir); return curr_prefix; } } } #endif /* !IN_LIBRARY || PIC */ #if defined PIC && defined INSTALLDIR /* Full pathname of shared library, or NULL. */ static char *shared_library_fullname; #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ /* Determine the full pathname of the shared library when it is loaded. */ BOOL WINAPI DllMain (HINSTANCE module_handle, DWORD event, LPVOID reserved) { (void) reserved; if (event == DLL_PROCESS_ATTACH) { /* The DLL is being loaded into an application's address range. */ static char location[MAX_PATH]; if (!GetModuleFileName (module_handle, location, sizeof (location))) /* Shouldn't happen. */ return FALSE; if (!IS_PATH_WITH_DIR (location)) /* Shouldn't happen. */ return FALSE; { #if defined __CYGWIN__ /* On Cygwin, we need to convert paths coming from Win32 system calls to the Unix-like slashified notation. */ static char location_as_posix_path[2 * MAX_PATH]; /* There's no error return defined for cygwin_conv_to_posix_path. See cygwin-api/func-cygwin-conv-to-posix-path.html. Does it overflow the buffer of expected size MAX_PATH or does it truncate the path? I don't know. Let's catch both. */ cygwin_conv_to_posix_path (location, location_as_posix_path); location_as_posix_path[MAX_PATH - 1] = '\0'; if (strlen (location_as_posix_path) >= MAX_PATH - 1) /* A sign of buffer overflow or path truncation. */ return FALSE; shared_library_fullname = strdup (location_as_posix_path); #else shared_library_fullname = strdup (location); #endif } } return TRUE; } #else /* Unix except Cygwin */ static void find_shared_library_fullname () { #if defined __linux__ && __GLIBC__ >= 2 /* Linux has /proc/self/maps. glibc 2 has the getline() function. */ FILE *fp; /* Open the current process' maps file. It describes one VMA per line. */ fp = fopen ("/proc/self/maps", "r"); if (fp) { unsigned long address = (unsigned long) &find_shared_library_fullname; for (;;) { unsigned long start, end; int c; if (fscanf (fp, "%lx-%lx", &start, &end) != 2) break; if (address >= start && address <= end - 1) { /* Found it. Now see if this line contains a filename. */ while (c = getc (fp), c != EOF && c != '\n' && c != '/') continue; if (c == '/') { size_t size; int len; ungetc (c, fp); shared_library_fullname = NULL; size = 0; len = getline (&shared_library_fullname, &size, fp); if (len >= 0) { /* Success: filled shared_library_fullname. */ if (len > 0 && shared_library_fullname[len - 1] == '\n') shared_library_fullname[len - 1] = '\0'; } } break; } while (c = getc (fp), c != EOF && c != '\n') continue; } fclose (fp); } #endif } #endif /* (WIN32 or Cygwin) / (Unix except Cygwin) */ /* Return the full pathname of the current shared library. Return NULL if unknown. Guaranteed to work only on Linux, Cygwin and Woe32. */ static char * get_shared_library_fullname () { #if !(defined _WIN32 || defined __WIN32__ || defined __CYGWIN__) static bool tried_find_shared_library_fullname; if (!tried_find_shared_library_fullname) { find_shared_library_fullname (); tried_find_shared_library_fullname = true; } #endif return shared_library_fullname; } #endif /* PIC */ /* Returns the pathname, relocated according to the current installation directory. The returned string is either PATHNAME unmodified or a freshly allocated string that you can free with free() after casting it to 'char *'. */ const char * relocate (const char *pathname) { #if defined PIC && defined INSTALLDIR static int initialized; /* Initialization code for a shared library. */ if (!initialized) { /* At this point, orig_prefix and curr_prefix likely have already been set through the main program's set_program_name_and_installdir function. This is sufficient in the case that the library has initially been installed in the same orig_prefix. But we can do better, to also cover the cases that 1. it has been installed in a different prefix before being moved to orig_prefix and (later) to curr_prefix, 2. unlike the program, it has not moved away from orig_prefix. */ const char *orig_installprefix = INSTALLPREFIX; const char *orig_installdir = INSTALLDIR; char *curr_prefix_better; curr_prefix_better = compute_curr_prefix (orig_installprefix, orig_installdir, get_shared_library_fullname ()); set_relocation_prefix (orig_installprefix, curr_prefix_better != NULL ? curr_prefix_better : curr_prefix); if (curr_prefix_better != NULL) free (curr_prefix_better); initialized = 1; } #endif /* Note: It is not necessary to perform case insensitive comparison here, even for DOS-like file systems, because the pathname argument was typically created from the same Makefile variable as orig_prefix came from. */ if (orig_prefix != NULL && curr_prefix != NULL && strncmp (pathname, orig_prefix, orig_prefix_len) == 0) { if (pathname[orig_prefix_len] == '\0') { /* pathname equals orig_prefix. */ char *result = (char *) xmalloc (strlen (curr_prefix) + 1); #ifdef NO_XMALLOC if (result != NULL) #endif { strcpy (result, curr_prefix); return result; } } else if (ISSLASH (pathname[orig_prefix_len])) { /* pathname starts with orig_prefix. */ const char *pathname_tail = &pathname[orig_prefix_len]; char *result = (char *) xmalloc (curr_prefix_len + strlen (pathname_tail) + 1); #ifdef NO_XMALLOC if (result != NULL) #endif { memcpy (result, curr_prefix, curr_prefix_len); strcpy (result + curr_prefix_len, pathname_tail); return result; } } } /* Nothing to relocate. */ return pathname; } #endif gliv-1.9.7/intl/loadinfo.h0000644000076400007640000001211311465576131012660 0ustar gg/* Copyright (C) 1996-1999, 2000-2003, 2005-2006 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1996. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _LOADINFO_H #define _LOADINFO_H 1 /* Declarations of locale dependent catalog lookup functions. Implemented in localealias.c Possibly replace a locale name by another. explodename.c Split a locale name into its various fields. l10nflist.c Generate a list of filenames of possible message catalogs. finddomain.c Find and open the relevant message catalogs. The main function _nl_find_domain() in finddomain.c is declared in gettextP.h. */ #ifndef internal_function # define internal_function #endif #ifndef LIBINTL_DLL_EXPORTED # define LIBINTL_DLL_EXPORTED #endif /* Tell the compiler when a conditional or integer expression is almost always true or almost always false. */ #ifndef HAVE_BUILTIN_EXPECT # define __builtin_expect(expr, val) (expr) #endif /* Separator in PATH like lists of pathnames. */ #if ((defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__) || defined __EMX__ || defined __DJGPP__ /* Win32, OS/2, DOS */ # define PATH_SEPARATOR ';' #else /* Unix */ # define PATH_SEPARATOR ':' #endif /* Encoding of locale name parts. */ #define XPG_NORM_CODESET 1 #define XPG_CODESET 2 #define XPG_TERRITORY 4 #define XPG_MODIFIER 8 struct loaded_l10nfile { const char *filename; int decided; const void *data; struct loaded_l10nfile *next; struct loaded_l10nfile *successor[1]; }; /* Normalize codeset name. There is no standard for the codeset names. Normalization allows the user to use any of the common names. The return value is dynamically allocated and has to be freed by the caller. */ extern const char *_nl_normalize_codeset (const char *codeset, size_t name_len); /* Lookup a locale dependent file. *L10NFILE_LIST denotes a pool of lookup results of locale dependent files of the same kind, sorted in decreasing order of ->filename. DIRLIST and DIRLIST_LEN are an argz list of directories in which to look, containing at least one directory (i.e. DIRLIST_LEN > 0). MASK, LANGUAGE, TERRITORY, CODESET, NORMALIZED_CODESET, MODIFIER are the pieces of the locale name, as produced by _nl_explode_name(). FILENAME is the filename suffix. The return value is the lookup result, either found in *L10NFILE_LIST, or - if DO_ALLOCATE is nonzero - freshly allocated, or possibly NULL. If the return value is non-NULL, it is added to *L10NFILE_LIST, and its ->next field denotes the chaining inside *L10NFILE_LIST, and furthermore its ->successor[] field contains a list of other lookup results from which this lookup result inherits. */ extern struct loaded_l10nfile * _nl_make_l10nflist (struct loaded_l10nfile **l10nfile_list, const char *dirlist, size_t dirlist_len, int mask, const char *language, const char *territory, const char *codeset, const char *normalized_codeset, const char *modifier, const char *filename, int do_allocate); /* Lookup the real locale name for a locale alias NAME, or NULL if NAME is not a locale alias (but possibly a real locale name). The return value is statically allocated and must not be freed. */ /* Part of the libintl ABI only for the sake of the gettext.m4 macro. */ extern LIBINTL_DLL_EXPORTED const char *_nl_expand_alias (const char *name); /* Split a locale name NAME into its pieces: language, modifier, territory, codeset. NAME gets destructively modified: NUL bytes are inserted here and there. *LANGUAGE gets assigned NAME. Each of *MODIFIER, *TERRITORY, *CODESET gets assigned either a pointer into the old NAME string, or NULL. *NORMALIZED_CODESET gets assigned the expanded *CODESET, if it is different from *CODESET; this one is dynamically allocated and has to be freed by the caller. The return value is a bitmask, where each bit corresponds to one filled-in value: XPG_MODIFIER for *MODIFIER, XPG_TERRITORY for *TERRITORY, XPG_CODESET for *CODESET, XPG_NORM_CODESET for *NORMALIZED_CODESET. */ extern int _nl_explode_name (char *name, const char **language, const char **modifier, const char **territory, const char **codeset, const char **normalized_codeset); #endif /* loadinfo.h */ gliv-1.9.7/intl/relocatable.h0000644000076400007640000000617211465576131013352 0ustar gg/* Provide relocatable packages. Copyright (C) 2003, 2005, 2008 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _RELOCATABLE_H #define _RELOCATABLE_H #ifdef __cplusplus extern "C" { #endif /* This can be enabled through the configure --enable-relocatable option. */ #if ENABLE_RELOCATABLE /* When building a DLL, we must export some functions. Note that because this is a private .h file, we don't need to use __declspec(dllimport) in any case. */ #if HAVE_VISIBILITY && BUILDING_DLL # define RELOCATABLE_DLL_EXPORTED __attribute__((__visibility__("default"))) #elif defined _MSC_VER && BUILDING_DLL # define RELOCATABLE_DLL_EXPORTED __declspec(dllexport) #else # define RELOCATABLE_DLL_EXPORTED #endif /* Sets the original and the current installation prefix of the package. Relocation simply replaces a pathname starting with the original prefix by the corresponding pathname with the current prefix instead. Both prefixes should be directory names without trailing slash (i.e. use "" instead of "/"). */ extern RELOCATABLE_DLL_EXPORTED void set_relocation_prefix (const char *orig_prefix, const char *curr_prefix); /* Returns the pathname, relocated according to the current installation directory. The returned string is either PATHNAME unmodified or a freshly allocated string that you can free with free() after casting it to 'char *'. */ extern const char * relocate (const char *pathname); /* Memory management: relocate() potentially allocates memory, because it has to construct a fresh pathname. If this is a problem because your program calls relocate() frequently, think about caching the result. Or free the return value if it was different from the argument pathname. */ /* Convenience function: Computes the current installation prefix, based on the original installation prefix, the original installation directory of a particular file, and the current pathname of this file. Returns it, freshly allocated. Returns NULL upon failure. */ extern char * compute_curr_prefix (const char *orig_installprefix, const char *orig_installdir, const char *curr_pathname); #else /* By default, we use the hardwired pathnames. */ #define relocate(pathname) (pathname) #endif #ifdef __cplusplus } #endif #endif /* _RELOCATABLE_H */ gliv-1.9.7/intl/libgnuintl.h.in0000644000076400007640000004062111465576131013646 0ustar gg/* Message catalogs for internationalization. Copyright (C) 1995-1997, 2000-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _LIBINTL_H #define _LIBINTL_H 1 #include #if (defined __APPLE__ && defined __MACH__) && @HAVE_NEWLOCALE@ # include #endif /* The LC_MESSAGES locale category is the category used by the functions gettext() and dgettext(). It is specified in POSIX, but not in ANSI C. On systems that don't define it, use an arbitrary value instead. On Solaris, defines __LOCALE_H (or _LOCALE_H in Solaris 2.5) then includes (i.e. this file!) and then only defines LC_MESSAGES. To avoid a redefinition warning, don't define LC_MESSAGES in this case. */ #if !defined LC_MESSAGES && !(defined __LOCALE_H || (defined _LOCALE_H && defined __sun)) # define LC_MESSAGES 1729 #endif /* We define an additional symbol to signal that we use the GNU implementation of gettext. */ #define __USE_GNU_GETTEXT 1 /* Provide information about the supported file formats. Returns the maximum minor revision number supported for a given major revision. */ #define __GNU_GETTEXT_SUPPORTED_REVISION(major) \ ((major) == 0 || (major) == 1 ? 1 : -1) /* Resolve a platform specific conflict on DJGPP. GNU gettext takes precedence over _conio_gettext. */ #ifdef __DJGPP__ # undef gettext #endif #ifdef __cplusplus extern "C" { #endif /* Version number: (major<<16) + (minor<<8) + subminor */ #define LIBINTL_VERSION 0x001201 extern int libintl_version; /* We redirect the functions to those prefixed with "libintl_". This is necessary, because some systems define gettext/textdomain/... in the C library (namely, Solaris 2.4 and newer, and GNU libc 2.0 and newer). If we used the unprefixed names, there would be cases where the definition in the C library would override the one in the libintl.so shared library. Recall that on ELF systems, the symbols are looked up in the following order: 1. in the executable, 2. in the shared libraries specified on the link command line, in order, 3. in the dependencies of the shared libraries specified on the link command line, 4. in the dlopen()ed shared libraries, in the order in which they were dlopen()ed. The definition in the C library would override the one in libintl.so if either * -lc is given on the link command line and -lintl isn't, or * -lc is given on the link command line before -lintl, or * libintl.so is a dependency of a dlopen()ed shared library but not linked to the executable at link time. Since Solaris gettext() behaves differently than GNU gettext(), this would be unacceptable. The redirection happens by default through macros in C, so that &gettext is independent of the compilation unit, but through inline functions in C++, in order not to interfere with the name mangling of class fields or class methods called 'gettext'. */ /* The user can define _INTL_REDIRECT_INLINE or _INTL_REDIRECT_MACROS. If he doesn't, we choose the method. A third possible method is _INTL_REDIRECT_ASM, supported only by GCC. */ #if !(defined _INTL_REDIRECT_INLINE || defined _INTL_REDIRECT_MACROS) # if defined __GNUC__ && __GNUC__ >= 2 && !(defined __APPLE_CC__ && __APPLE_CC__ > 1) && !defined __MINGW32__ && !(__GNUC__ == 2 && defined _AIX) && (defined __STDC__ || defined __cplusplus) # define _INTL_REDIRECT_ASM # else # ifdef __cplusplus # define _INTL_REDIRECT_INLINE # else # define _INTL_REDIRECT_MACROS # endif # endif #endif /* Auxiliary macros. */ #ifdef _INTL_REDIRECT_ASM # define _INTL_ASM(cname) __asm__ (_INTL_ASMNAME (__USER_LABEL_PREFIX__, #cname)) # define _INTL_ASMNAME(prefix,cnamestring) _INTL_STRINGIFY (prefix) cnamestring # define _INTL_STRINGIFY(prefix) #prefix #else # define _INTL_ASM(cname) #endif /* _INTL_MAY_RETURN_STRING_ARG(n) declares that the given function may return its n-th argument literally. This enables GCC to warn for example about printf (gettext ("foo %y")). */ #if defined __GNUC__ && __GNUC__ >= 3 && !(defined __APPLE_CC__ && __APPLE_CC__ > 1 && defined __cplusplus) # define _INTL_MAY_RETURN_STRING_ARG(n) __attribute__ ((__format_arg__ (n))) #else # define _INTL_MAY_RETURN_STRING_ARG(n) #endif /* Look up MSGID in the current default message catalog for the current LC_MESSAGES locale. If not found, returns MSGID itself (the default text). */ #ifdef _INTL_REDIRECT_INLINE extern char *libintl_gettext (const char *__msgid) _INTL_MAY_RETURN_STRING_ARG (1); static inline char *gettext (const char *__msgid) { return libintl_gettext (__msgid); } #else #ifdef _INTL_REDIRECT_MACROS # define gettext libintl_gettext #endif extern char *gettext (const char *__msgid) _INTL_ASM (libintl_gettext) _INTL_MAY_RETURN_STRING_ARG (1); #endif /* Look up MSGID in the DOMAINNAME message catalog for the current LC_MESSAGES locale. */ #ifdef _INTL_REDIRECT_INLINE extern char *libintl_dgettext (const char *__domainname, const char *__msgid) _INTL_MAY_RETURN_STRING_ARG (2); static inline char *dgettext (const char *__domainname, const char *__msgid) { return libintl_dgettext (__domainname, __msgid); } #else #ifdef _INTL_REDIRECT_MACROS # define dgettext libintl_dgettext #endif extern char *dgettext (const char *__domainname, const char *__msgid) _INTL_ASM (libintl_dgettext) _INTL_MAY_RETURN_STRING_ARG (2); #endif /* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY locale. */ #ifdef _INTL_REDIRECT_INLINE extern char *libintl_dcgettext (const char *__domainname, const char *__msgid, int __category) _INTL_MAY_RETURN_STRING_ARG (2); static inline char *dcgettext (const char *__domainname, const char *__msgid, int __category) { return libintl_dcgettext (__domainname, __msgid, __category); } #else #ifdef _INTL_REDIRECT_MACROS # define dcgettext libintl_dcgettext #endif extern char *dcgettext (const char *__domainname, const char *__msgid, int __category) _INTL_ASM (libintl_dcgettext) _INTL_MAY_RETURN_STRING_ARG (2); #endif /* Similar to `gettext' but select the plural form corresponding to the number N. */ #ifdef _INTL_REDIRECT_INLINE extern char *libintl_ngettext (const char *__msgid1, const char *__msgid2, unsigned long int __n) _INTL_MAY_RETURN_STRING_ARG (1) _INTL_MAY_RETURN_STRING_ARG (2); static inline char *ngettext (const char *__msgid1, const char *__msgid2, unsigned long int __n) { return libintl_ngettext (__msgid1, __msgid2, __n); } #else #ifdef _INTL_REDIRECT_MACROS # define ngettext libintl_ngettext #endif extern char *ngettext (const char *__msgid1, const char *__msgid2, unsigned long int __n) _INTL_ASM (libintl_ngettext) _INTL_MAY_RETURN_STRING_ARG (1) _INTL_MAY_RETURN_STRING_ARG (2); #endif /* Similar to `dgettext' but select the plural form corresponding to the number N. */ #ifdef _INTL_REDIRECT_INLINE extern char *libintl_dngettext (const char *__domainname, const char *__msgid1, const char *__msgid2, unsigned long int __n) _INTL_MAY_RETURN_STRING_ARG (2) _INTL_MAY_RETURN_STRING_ARG (3); static inline char *dngettext (const char *__domainname, const char *__msgid1, const char *__msgid2, unsigned long int __n) { return libintl_dngettext (__domainname, __msgid1, __msgid2, __n); } #else #ifdef _INTL_REDIRECT_MACROS # define dngettext libintl_dngettext #endif extern char *dngettext (const char *__domainname, const char *__msgid1, const char *__msgid2, unsigned long int __n) _INTL_ASM (libintl_dngettext) _INTL_MAY_RETURN_STRING_ARG (2) _INTL_MAY_RETURN_STRING_ARG (3); #endif /* Similar to `dcgettext' but select the plural form corresponding to the number N. */ #ifdef _INTL_REDIRECT_INLINE extern char *libintl_dcngettext (const char *__domainname, const char *__msgid1, const char *__msgid2, unsigned long int __n, int __category) _INTL_MAY_RETURN_STRING_ARG (2) _INTL_MAY_RETURN_STRING_ARG (3); static inline char *dcngettext (const char *__domainname, const char *__msgid1, const char *__msgid2, unsigned long int __n, int __category) { return libintl_dcngettext (__domainname, __msgid1, __msgid2, __n, __category); } #else #ifdef _INTL_REDIRECT_MACROS # define dcngettext libintl_dcngettext #endif extern char *dcngettext (const char *__domainname, const char *__msgid1, const char *__msgid2, unsigned long int __n, int __category) _INTL_ASM (libintl_dcngettext) _INTL_MAY_RETURN_STRING_ARG (2) _INTL_MAY_RETURN_STRING_ARG (3); #endif #ifndef IN_LIBGLOCALE /* Set the current default message catalog to DOMAINNAME. If DOMAINNAME is null, return the current default. If DOMAINNAME is "", reset to the default of "messages". */ #ifdef _INTL_REDIRECT_INLINE extern char *libintl_textdomain (const char *__domainname); static inline char *textdomain (const char *__domainname) { return libintl_textdomain (__domainname); } #else #ifdef _INTL_REDIRECT_MACROS # define textdomain libintl_textdomain #endif extern char *textdomain (const char *__domainname) _INTL_ASM (libintl_textdomain); #endif /* Specify that the DOMAINNAME message catalog will be found in DIRNAME rather than in the system locale data base. */ #ifdef _INTL_REDIRECT_INLINE extern char *libintl_bindtextdomain (const char *__domainname, const char *__dirname); static inline char *bindtextdomain (const char *__domainname, const char *__dirname) { return libintl_bindtextdomain (__domainname, __dirname); } #else #ifdef _INTL_REDIRECT_MACROS # define bindtextdomain libintl_bindtextdomain #endif extern char *bindtextdomain (const char *__domainname, const char *__dirname) _INTL_ASM (libintl_bindtextdomain); #endif /* Specify the character encoding in which the messages from the DOMAINNAME message catalog will be returned. */ #ifdef _INTL_REDIRECT_INLINE extern char *libintl_bind_textdomain_codeset (const char *__domainname, const char *__codeset); static inline char *bind_textdomain_codeset (const char *__domainname, const char *__codeset) { return libintl_bind_textdomain_codeset (__domainname, __codeset); } #else #ifdef _INTL_REDIRECT_MACROS # define bind_textdomain_codeset libintl_bind_textdomain_codeset #endif extern char *bind_textdomain_codeset (const char *__domainname, const char *__codeset) _INTL_ASM (libintl_bind_textdomain_codeset); #endif #endif /* IN_LIBGLOCALE */ /* Support for format strings with positions in *printf(), following the POSIX/XSI specification. Note: These replacements for the *printf() functions are visible only in source files that #include or #include "gettext.h". Packages that use *printf() in source files that don't refer to _() or gettext() but for which the format string could be the return value of _() or gettext() need to add this #include. Oh well. */ #if !@HAVE_POSIX_PRINTF@ #include #include /* Get va_list. */ #if (defined __STDC__ && __STDC__) || defined __cplusplus || defined _MSC_VER # include #else # include #endif #if !(defined fprintf && defined _GL_STDIO_H) /* don't override gnulib */ #undef fprintf #define fprintf libintl_fprintf extern int fprintf (FILE *, const char *, ...); #endif #if !(defined vfprintf && defined _GL_STDIO_H) /* don't override gnulib */ #undef vfprintf #define vfprintf libintl_vfprintf extern int vfprintf (FILE *, const char *, va_list); #endif #if !(defined printf && defined _GL_STDIO_H) /* don't override gnulib */ #undef printf #if defined __NetBSD__ || defined __BEOS__ || defined __CYGWIN__ || defined __MINGW32__ /* Don't break __attribute__((format(printf,M,N))). This redefinition is only possible because the libc in NetBSD, Cygwin, mingw does not have a function __printf__. Alternatively, we could have done this redirection only when compiling with __GNUC__, together with a symbol redirection: extern int printf (const char *, ...) __asm__ (#__USER_LABEL_PREFIX__ "libintl_printf"); But doing it now would introduce a binary incompatibility with already distributed versions of libintl on these systems. */ # define libintl_printf __printf__ #endif #define printf libintl_printf extern int printf (const char *, ...); #endif #if !(defined vprintf && defined _GL_STDIO_H) /* don't override gnulib */ #undef vprintf #define vprintf libintl_vprintf extern int vprintf (const char *, va_list); #endif #if !(defined sprintf && defined _GL_STDIO_H) /* don't override gnulib */ #undef sprintf #define sprintf libintl_sprintf extern int sprintf (char *, const char *, ...); #endif #if !(defined vsprintf && defined _GL_STDIO_H) /* don't override gnulib */ #undef vsprintf #define vsprintf libintl_vsprintf extern int vsprintf (char *, const char *, va_list); #endif #if @HAVE_SNPRINTF@ #if !(defined snprintf && defined _GL_STDIO_H) /* don't override gnulib */ #undef snprintf #define snprintf libintl_snprintf extern int snprintf (char *, size_t, const char *, ...); #endif #if !(defined vsnprintf && defined _GL_STDIO_H) /* don't override gnulib */ #undef vsnprintf #define vsnprintf libintl_vsnprintf extern int vsnprintf (char *, size_t, const char *, va_list); #endif #endif #if @HAVE_ASPRINTF@ #if !(defined asprintf && defined _GL_STDIO_H) /* don't override gnulib */ #undef asprintf #define asprintf libintl_asprintf extern int asprintf (char **, const char *, ...); #endif #if !(defined vasprintf && defined _GL_STDIO_H) /* don't override gnulib */ #undef vasprintf #define vasprintf libintl_vasprintf extern int vasprintf (char **, const char *, va_list); #endif #endif #if @HAVE_WPRINTF@ #undef fwprintf #define fwprintf libintl_fwprintf extern int fwprintf (FILE *, const wchar_t *, ...); #undef vfwprintf #define vfwprintf libintl_vfwprintf extern int vfwprintf (FILE *, const wchar_t *, va_list); #undef wprintf #define wprintf libintl_wprintf extern int wprintf (const wchar_t *, ...); #undef vwprintf #define vwprintf libintl_vwprintf extern int vwprintf (const wchar_t *, va_list); #undef swprintf #define swprintf libintl_swprintf extern int swprintf (wchar_t *, size_t, const wchar_t *, ...); #undef vswprintf #define vswprintf libintl_vswprintf extern int vswprintf (wchar_t *, size_t, const wchar_t *, va_list); #endif #endif /* Support for the locale chosen by the user. */ #if (defined __APPLE__ && defined __MACH__) || defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ #undef setlocale #define setlocale libintl_setlocale extern char *setlocale (int, const char *); #if @HAVE_NEWLOCALE@ #undef newlocale #define newlocale libintl_newlocale extern locale_t newlocale (int, const char *, locale_t); #endif #endif /* Support for relocatable packages. */ /* Sets the original and the current installation prefix of the package. Relocation simply replaces a pathname starting with the original prefix by the corresponding pathname with the current prefix instead. Both prefixes should be directory names without trailing slash (i.e. use "" instead of "/"). */ #define libintl_set_relocation_prefix libintl_set_relocation_prefix extern void libintl_set_relocation_prefix (const char *orig_prefix, const char *curr_prefix); #ifdef __cplusplus } #endif #endif /* libintl.h */ gliv-1.9.7/intl/ngettext.c0000644000076400007640000000367411465576131012736 0ustar gg/* Implementation of ngettext(3) function. Copyright (C) 1995, 1997, 2000-2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #ifdef _LIBC # define __need_NULL # include #else # include /* Just for NULL. */ #endif #include "gettextP.h" #ifdef _LIBC # include #else # include "libgnuintl.h" #endif #include /* @@ end of prolog @@ */ /* Names for the libintl functions are a problem. They must not clash with existing names and they should follow ANSI C. But this source code is also used in GNU C Library where the names have a __ prefix. So we have to make a difference here. */ #ifdef _LIBC # define NGETTEXT __ngettext # define DCNGETTEXT __dcngettext #else # define NGETTEXT libintl_ngettext # define DCNGETTEXT libintl_dcngettext #endif /* Look up MSGID in the current default message catalog for the current LC_MESSAGES locale. If not found, returns MSGID itself (the default text). */ char * NGETTEXT (const char *msgid1, const char *msgid2, unsigned long int n) { return DCNGETTEXT (NULL, msgid1, msgid2, n, LC_MESSAGES); } #ifdef _LIBC /* Alias for function name in GNU C Library. */ weak_alias (__ngettext, ngettext); #endif gliv-1.9.7/intl/Makefile.in0000644000076400007640000005770111465576131012775 0ustar gg# Makefile for directory with message catalog handling library of GNU gettext # Copyright (C) 1995-1998, 2000-2007, 2009-2010 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU Library 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 # Library General Public License for more details. # # You should have received a copy of the GNU Library General Public # License along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, # USA. PACKAGE = @PACKAGE@ VERSION = @VERSION@ SHELL = /bin/sh srcdir = @srcdir@ top_srcdir = @top_srcdir@ top_builddir = .. # The VPATH variables allows builds with $builddir != $srcdir, assuming a # 'make' program that supports VPATH (such as GNU make). This line is removed # by autoconf automatically when "$(srcdir)" = ".". # In this directory, the VPATH handling is particular: # 1. If INTL_LIBTOOL_SUFFIX_PREFIX is 'l' (indicating a build with libtool), # the .c -> .lo rules carefully use $(srcdir), so that VPATH can be omitted. # 2. If PACKAGE = gettext-tools, VPATH _must_ be omitted, because otherwise # 'make' does the wrong thing if GNU gettext was configured with # "./configure --srcdir=`pwd`", namely it gets confused by the .lo and .la # files it finds in srcdir = ../../gettext-runtime/intl. VPATH = $(srcdir) prefix = @prefix@ exec_prefix = @exec_prefix@ transform = @program_transform_name@ libdir = @libdir@ includedir = @includedir@ datarootdir = @datarootdir@ datadir = @datadir@ localedir = $(datadir)/locale gettextsrcdir = $(datadir)/gettext/intl aliaspath = $(localedir) subdir = intl INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ # We use $(mkdir_p). # In automake <= 1.9.x, $(mkdir_p) is defined either as "mkdir -p --" or as # "$(mkinstalldirs)" or as "$(install_sh) -d". For these automake versions, # @install_sh@ does not start with $(SHELL), so we add it. # In automake >= 1.10, @mkdir_p@ is derived from ${MKDIR_P}, which is defined # either as "/path/to/mkdir -p" or ".../install-sh -c -d". For these automake # versions, $(mkinstalldirs) and $(install_sh) are unused. mkinstalldirs = $(SHELL) @install_sh@ -d install_sh = $(SHELL) @install_sh@ MKDIR_P = @MKDIR_P@ mkdir_p = @mkdir_p@ l = @INTL_LIBTOOL_SUFFIX_PREFIX@ AR = ar CC = @CC@ LIBTOOL = @LIBTOOL@ RANLIB = @RANLIB@ YACC = @INTLBISON@ -y -d YFLAGS = --name-prefix=__gettext # Windows resource compiler (windres). Used when libtool is not used. WINDRES = @WINDRES@ # Windows resource compiler (windres). Used via libtool. RC = @RC@ # Support for silent-rules. AM_V_at = $(am__v_at_$(V)) am__v_at_ = $(am__v_at_@INTL_DEFAULT_VERBOSITY@) am__v_at_0 = @ AM_V_AR = $(am__v_AR_$(V)) am__v_AR_ = $(am__v_AR_@INTL_DEFAULT_VERBOSITY@) am__v_AR_0 = @echo " AR " $@; AM_V_CC = $(am__v_CC_$(V)) am__v_CC_ = $(am__v_CC_@INTL_DEFAULT_VERBOSITY@) am__v_CC_0 = @echo " CC " $@; AM_V_GEN = $(am__v_GEN_$(V)) am__v_GEN_ = $(am__v_GEN_@INTL_DEFAULT_VERBOSITY@) am__v_GEN_0 = @echo " GEN " $@; AM_V_YACC = $(am__v_YACC_$(V)) am__v_YACC_ = $(am__v_YACC_@INTL_DEFAULT_VERBOSITY@) am__v_YACC_0 = @echo " YACC " $@; AM_V_lt = $(am__v_lt_$(V)) am__v_lt_ = $(am__v_lt_@INTL_DEFAULT_VERBOSITY@) am__v_lt_0 = --silent # -DBUILDING_LIBINTL: Change expansion of LIBINTL_DLL_EXPORTED macro. # -DBUILDING_DLL: Change expansion of RELOCATABLE_DLL_EXPORTED macro. DEFS = -DLOCALEDIR=\"$(localedir)\" -DLOCALE_ALIAS_PATH=\"$(aliaspath)\" \ -DLIBDIR=\"$(libdir)\" -DBUILDING_LIBINTL -DBUILDING_DLL -DIN_LIBINTL \ -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"$(libdir)\" -DNO_XMALLOC \ -Dset_relocation_prefix=libintl_set_relocation_prefix \ -Drelocate=libintl_relocate \ -DDEPENDS_ON_LIBICONV=1 @DEFS@ CPPFLAGS = @CPPFLAGS@ CFLAGS = @CFLAGS@ @CFLAG_VISIBILITY@ LDFLAGS = @LDFLAGS@ $(LDFLAGS_@WOE32DLL@) LDFLAGS_yes = -Wl,--export-all-symbols LDFLAGS_no = LIBS = @LIBS@ COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) HEADERS = \ gmo.h \ gettextP.h \ hash-string.h \ loadinfo.h \ plural-exp.h \ eval-plural.h \ localcharset.h \ lock.h \ relocatable.h \ tsearch.h tsearch.c \ xsize.h \ printf-args.h printf-args.c \ printf-parse.h wprintf-parse.h printf-parse.c \ vasnprintf.h vasnwprintf.h vasnprintf.c \ os2compat.h \ libgnuintl.h.in SOURCES = \ bindtextdom.c \ dcgettext.c \ dgettext.c \ gettext.c \ finddomain.c \ hash-string.c \ loadmsgcat.c \ localealias.c \ textdomain.c \ l10nflist.c \ explodename.c \ dcigettext.c \ dcngettext.c \ dngettext.c \ ngettext.c \ plural.y \ plural-exp.c \ localcharset.c \ threadlib.c \ lock.c \ relocatable.c \ langprefs.c \ localename.c \ log.c \ printf.c \ setlocale.c \ version.c \ osdep.c \ os2compat.c \ intl-exports.c \ intl-compat.c OBJECTS = \ bindtextdom.$lo \ dcgettext.$lo \ dgettext.$lo \ gettext.$lo \ finddomain.$lo \ hash-string.$lo \ loadmsgcat.$lo \ localealias.$lo \ textdomain.$lo \ l10nflist.$lo \ explodename.$lo \ dcigettext.$lo \ dcngettext.$lo \ dngettext.$lo \ ngettext.$lo \ plural.$lo \ plural-exp.$lo \ localcharset.$lo \ threadlib.$lo \ lock.$lo \ relocatable.$lo \ langprefs.$lo \ localename.$lo \ log.$lo \ printf.$lo \ setlocale.$lo \ version.$lo \ osdep.$lo \ intl-compat.$lo OBJECTS_RES_yes = libintl.res.$lo OBJECTS_RES_no = DISTFILES.common = Makefile.in \ config.charset locale.alias ref-add.sin ref-del.sin export.h libintl.rc \ $(HEADERS) $(SOURCES) DISTFILES.generated = plural.c DISTFILES.normal = VERSION DISTFILES.gettext = COPYING.LIB-2.0 COPYING.LIB-2.1 libintl.glibc README.woe32 DISTFILES.obsolete = xopen-msg.sed linux-msg.sed po2tbl.sed.in cat-compat.c \ COPYING.LIB-2 gettext.h libgettext.h plural-eval.c libgnuintl.h \ libgnuintl.h_vms Makefile.vms libgnuintl.h.msvc-static \ libgnuintl.h.msvc-shared Makefile.msvc all: all-@USE_INCLUDED_LIBINTL@ all-yes: libintl.$la libintl.h charset.alias ref-add.sed ref-del.sed all-no: all-no-@BUILD_INCLUDED_LIBINTL@ all-no-yes: libgnuintl.$la all-no-no: libintl.a libgnuintl.a: $(OBJECTS) $(AM_V_at)rm -f $@ $(AM_V_AR)$(AR) cru $@ $(OBJECTS) $(AM_V_at)$(RANLIB) $@ libintl.la libgnuintl.la: $(OBJECTS) $(OBJECTS_RES_@WOE32@) $(AM_V_GEN)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=link \ $(CC) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) $(LDFLAGS) -o $@ \ $(OBJECTS) @LTLIBICONV@ @INTL_MACOSX_LIBS@ $(LIBS) @LTLIBTHREAD@ @LTLIBC@ \ $(OBJECTS_RES_@WOE32@) \ -version-info $(LTV_CURRENT):$(LTV_REVISION):$(LTV_AGE) \ -rpath $(libdir) \ -no-undefined # Libtool's library version information for libintl. # Before making a gettext release, the gettext maintainer must change this # according to the libtool documentation, section "Library interface versions". # Maintainers of other packages that include the intl directory must *not* # change these values. LTV_CURRENT=9 LTV_REVISION=1 LTV_AGE=1 .SUFFIXES: .SUFFIXES: .c .y .o .lo .sin .sed .c.o: $(AM_V_CC)$(COMPILE) $< .y.c: $(AM_V_YACC)$(YACC) $(YFLAGS) --output $@ $< $(AM_V_at)rm -f $*.h bindtextdom.lo: $(srcdir)/bindtextdom.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/bindtextdom.c dcgettext.lo: $(srcdir)/dcgettext.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/dcgettext.c dgettext.lo: $(srcdir)/dgettext.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/dgettext.c gettext.lo: $(srcdir)/gettext.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/gettext.c finddomain.lo: $(srcdir)/finddomain.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/finddomain.c hash-string.lo: $(srcdir)/hash-string.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/hash-string.c loadmsgcat.lo: $(srcdir)/loadmsgcat.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/loadmsgcat.c localealias.lo: $(srcdir)/localealias.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/localealias.c textdomain.lo: $(srcdir)/textdomain.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/textdomain.c l10nflist.lo: $(srcdir)/l10nflist.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/l10nflist.c explodename.lo: $(srcdir)/explodename.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/explodename.c dcigettext.lo: $(srcdir)/dcigettext.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/dcigettext.c dcngettext.lo: $(srcdir)/dcngettext.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/dcngettext.c dngettext.lo: $(srcdir)/dngettext.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/dngettext.c ngettext.lo: $(srcdir)/ngettext.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/ngettext.c plural.lo: $(srcdir)/plural.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/plural.c plural-exp.lo: $(srcdir)/plural-exp.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/plural-exp.c localcharset.lo: $(srcdir)/localcharset.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/localcharset.c threadlib.lo: $(srcdir)/threadlib.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/threadlib.c lock.lo: $(srcdir)/lock.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/lock.c relocatable.lo: $(srcdir)/relocatable.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/relocatable.c langprefs.lo: $(srcdir)/langprefs.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/langprefs.c localename.lo: $(srcdir)/localename.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/localename.c log.lo: $(srcdir)/log.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/log.c printf.lo: $(srcdir)/printf.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/printf.c setlocale.lo: $(srcdir)/setlocale.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/setlocale.c version.lo: $(srcdir)/version.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/version.c osdep.lo: $(srcdir)/osdep.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/osdep.c intl-compat.lo: $(srcdir)/intl-compat.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/intl-compat.c # This rule is executed only on Woe32 systems. # The following sed expressions come from the windres-options script. They are # inlined here, so that they can be written in a Makefile without requiring a # temporary file. They must contain literal newlines rather than semicolons, # so that they work with the sed-3.02 that is shipped with MSYS. libintl.res.o: $(srcdir)/libintl.rc nlinit=`echo 'nl="'; echo '"'`; eval "$$nlinit"; \ sed_extract_major='/^[0-9]/{'$${nl}'s/^\([0-9]*\).*/\1/p'$${nl}q$${nl}'}'$${nl}'c\'$${nl}0$${nl}q; \ sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{'$${nl}'s/^[0-9]*[.]\([0-9]*\).*/\1/p'$${nl}q$${nl}'}'$${nl}'c\'$${nl}0$${nl}q; \ sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{'$${nl}'s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p'$${nl}q$${nl}'}'$${nl}'c\'$${nl}0$${nl}q; \ $(WINDRES) \ "-DPACKAGE_VERSION_STRING=\\\"$(VERSION)\\\"" \ "-DPACKAGE_VERSION_MAJOR="`echo '$(VERSION)' | sed -n -e "$$sed_extract_major"` \ "-DPACKAGE_VERSION_MINOR="`echo '$(VERSION)' | sed -n -e "$$sed_extract_minor"` \ "-DPACKAGE_VERSION_SUBMINOR="`echo '$(VERSION)' | sed -n -e "$$sed_extract_subminor"` \ -i $(srcdir)/libintl.rc -o libintl.res.o --output-format=coff libintl.res.lo: $(srcdir)/libintl.rc nlinit=`echo 'nl="'; echo '"'`; eval "$$nlinit"; \ sed_extract_major='/^[0-9]/{'$${nl}'s/^\([0-9]*\).*/\1/p'$${nl}q$${nl}'}'$${nl}'c\'$${nl}0$${nl}q; \ sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{'$${nl}'s/^[0-9]*[.]\([0-9]*\).*/\1/p'$${nl}q$${nl}'}'$${nl}'c\'$${nl}0$${nl}q; \ sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{'$${nl}'s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p'$${nl}q$${nl}'}'$${nl}'c\'$${nl}0$${nl}q; \ $(LIBTOOL) --mode=compile --tag=RC $(RC) \ "-DPACKAGE_VERSION_STRING=\\\"$(VERSION)\\\"" \ "-DPACKAGE_VERSION_MAJOR="`echo '$(VERSION)' | sed -n -e "$$sed_extract_major"` \ "-DPACKAGE_VERSION_MINOR="`echo '$(VERSION)' | sed -n -e "$$sed_extract_minor"` \ "-DPACKAGE_VERSION_SUBMINOR="`echo '$(VERSION)' | sed -n -e "$$sed_extract_subminor"` \ -i $(srcdir)/libintl.rc -o libintl.res.lo --output-format=coff ref-add.sed: $(srcdir)/ref-add.sin sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $(srcdir)/ref-add.sin > t-ref-add.sed mv t-ref-add.sed ref-add.sed ref-del.sed: $(srcdir)/ref-del.sin sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $(srcdir)/ref-del.sin > t-ref-del.sed mv t-ref-del.sed ref-del.sed INCLUDES = -I. -I$(srcdir) -I.. libgnuintl.h: $(srcdir)/libgnuintl.h.in sed -e '/IN_LIBGLOCALE/d' \ -e 's,@''HAVE_POSIX_PRINTF''@,@HAVE_POSIX_PRINTF@,g' \ -e 's,@''HAVE_ASPRINTF''@,@HAVE_ASPRINTF@,g' \ -e 's,@''HAVE_NEWLOCALE''@,@HAVE_NEWLOCALE@,g' \ -e 's,@''HAVE_SNPRINTF''@,@HAVE_SNPRINTF@,g' \ -e 's,@''HAVE_WPRINTF''@,@HAVE_WPRINTF@,g' \ < $(srcdir)/libgnuintl.h.in \ | if test '@WOE32DLL@' = yes; then \ sed -e 's/extern \([^()]*\);/extern __declspec (dllimport) \1;/'; \ else \ cat; \ fi \ | sed -e 's/extern \([^"]\)/extern LIBINTL_DLL_EXPORTED \1/' \ -e "/#define _LIBINTL_H/r $(srcdir)/export.h" \ | sed -e 's,@''HAVE_VISIBILITY''@,@HAVE_VISIBILITY@,g' \ > libgnuintl.h libintl.h: $(srcdir)/libgnuintl.h.in sed -e '/IN_LIBGLOCALE/d' \ -e 's,@''HAVE_POSIX_PRINTF''@,@HAVE_POSIX_PRINTF@,g' \ -e 's,@''HAVE_ASPRINTF''@,@HAVE_ASPRINTF@,g' \ -e 's,@''HAVE_NEWLOCALE''@,@HAVE_NEWLOCALE@,g' \ -e 's,@''HAVE_SNPRINTF''@,@HAVE_SNPRINTF@,g' \ -e 's,@''HAVE_WPRINTF''@,@HAVE_WPRINTF@,g' \ < $(srcdir)/libgnuintl.h.in > libintl.h charset.alias: $(srcdir)/config.charset $(SHELL) $(srcdir)/config.charset '@host@' > t-$@ mv t-$@ $@ check: all # We must not install the libintl.h/libintl.a files if we are on a # system which has the GNU gettext() function in its C library or in a # separate library. # If you want to use the one which comes with this version of the # package, you have to use `configure --with-included-gettext'. install: install-exec install-data install-exec: all if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \ && test '@USE_INCLUDED_LIBINTL@' = yes; then \ $(mkdir_p) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir); \ $(INSTALL_DATA) libintl.h $(DESTDIR)$(includedir)/libintl.h; \ $(LIBTOOL) --mode=install \ $(INSTALL_DATA) libintl.$la $(DESTDIR)$(libdir)/libintl.$la; \ if test "@RELOCATABLE@" = yes; then \ dependencies=`sed -n -e 's,^dependency_libs=\(.*\),\1,p' < $(DESTDIR)$(libdir)/libintl.la | sed -e "s,^',," -e "s,'\$$,,"`; \ if test -n "$$dependencies"; then \ rm -f $(DESTDIR)$(libdir)/libintl.la; \ fi; \ fi; \ else \ : ; \ fi if test "$(PACKAGE)" = "gettext-tools" \ && test '@USE_INCLUDED_LIBINTL@' = no \ && test @GLIBC2@ != no; then \ $(mkdir_p) $(DESTDIR)$(libdir); \ $(LIBTOOL) --mode=install \ $(INSTALL_DATA) libgnuintl.$la $(DESTDIR)$(libdir)/libgnuintl.$la; \ rm -f $(DESTDIR)$(libdir)/preloadable_libintl.so; \ $(INSTALL_DATA) $(DESTDIR)$(libdir)/libgnuintl.so $(DESTDIR)$(libdir)/preloadable_libintl.so; \ $(LIBTOOL) --mode=uninstall \ rm -f $(DESTDIR)$(libdir)/libgnuintl.$la; \ else \ : ; \ fi if test '@USE_INCLUDED_LIBINTL@' = yes; then \ if test @GLIBC21@ = no; then \ case '@host_os@' in \ darwin[56]*) \ need_charset_alias=true ;; \ darwin* | cygwin* | mingw* | pw32* | cegcc*) \ need_charset_alias=false ;; \ *) \ need_charset_alias=true ;; \ esac; \ else \ need_charset_alias=false; \ fi; \ if $$need_charset_alias; then \ $(mkdir_p) $(DESTDIR)$(libdir); \ fi; \ temp=$(DESTDIR)$(libdir)/t-charset.alias; \ dest=$(DESTDIR)$(libdir)/charset.alias; \ if test -f $(DESTDIR)$(libdir)/charset.alias; then \ orig=$(DESTDIR)$(libdir)/charset.alias; \ sed -f ref-add.sed $$orig > $$temp; \ $(INSTALL_DATA) $$temp $$dest; \ rm -f $$temp; \ else \ if $$need_charset_alias; then \ orig=charset.alias; \ sed -f ref-add.sed $$orig > $$temp; \ $(INSTALL_DATA) $$temp $$dest; \ rm -f $$temp; \ fi; \ fi; \ $(mkdir_p) $(DESTDIR)$(localedir); \ test -f $(DESTDIR)$(localedir)/locale.alias \ && orig=$(DESTDIR)$(localedir)/locale.alias \ || orig=$(srcdir)/locale.alias; \ temp=$(DESTDIR)$(localedir)/t-locale.alias; \ dest=$(DESTDIR)$(localedir)/locale.alias; \ sed -f ref-add.sed $$orig > $$temp; \ $(INSTALL_DATA) $$temp $$dest; \ rm -f $$temp; \ else \ : ; \ fi install-data: all if test "$(PACKAGE)" = "gettext-tools"; then \ $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ $(INSTALL_DATA) VERSION $(DESTDIR)$(gettextsrcdir)/VERSION; \ $(INSTALL_DATA) ChangeLog.inst $(DESTDIR)$(gettextsrcdir)/ChangeLog; \ dists="COPYING.LIB-2.0 COPYING.LIB-2.1 $(DISTFILES.common)"; \ for file in $$dists; do \ $(INSTALL_DATA) $(srcdir)/$$file \ $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ chmod a+x $(DESTDIR)$(gettextsrcdir)/config.charset; \ dists="$(DISTFILES.generated)"; \ for file in $$dists; do \ if test -f $$file; then dir=.; else dir=$(srcdir); fi; \ $(INSTALL_DATA) $$dir/$$file \ $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ dists="$(DISTFILES.obsolete)"; \ for file in $$dists; do \ rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ else \ : ; \ fi install-strip: install install-dvi install-html install-info install-ps install-pdf: installdirs: if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \ && test '@USE_INCLUDED_LIBINTL@' = yes; then \ $(mkdir_p) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir); \ else \ : ; \ fi if test "$(PACKAGE)" = "gettext-tools" \ && test '@USE_INCLUDED_LIBINTL@' = no \ && test @GLIBC2@ != no; then \ $(mkdir_p) $(DESTDIR)$(libdir); \ else \ : ; \ fi if test '@USE_INCLUDED_LIBINTL@' = yes; then \ if test @GLIBC21@ = no; then \ case '@host_os@' in \ darwin[56]*) \ need_charset_alias=true ;; \ darwin* | cygwin* | mingw* | pw32* | cegcc*) \ need_charset_alias=false ;; \ *) \ need_charset_alias=true ;; \ esac; \ else \ need_charset_alias=false; \ fi; \ if $$need_charset_alias; then \ $(mkdir_p) $(DESTDIR)$(libdir); \ fi; \ $(mkdir_p) $(DESTDIR)$(localedir); \ else \ : ; \ fi if test "$(PACKAGE)" = "gettext-tools"; then \ $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ else \ : ; \ fi # Define this as empty until I found a useful application. installcheck: uninstall: if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \ && test '@USE_INCLUDED_LIBINTL@' = yes; then \ rm -f $(DESTDIR)$(includedir)/libintl.h; \ $(LIBTOOL) --mode=uninstall \ rm -f $(DESTDIR)$(libdir)/libintl.$la; \ else \ : ; \ fi if test "$(PACKAGE)" = "gettext-tools" \ && test '@USE_INCLUDED_LIBINTL@' = no \ && test @GLIBC2@ != no; then \ rm -f $(DESTDIR)$(libdir)/preloadable_libintl.so; \ else \ : ; \ fi if test '@USE_INCLUDED_LIBINTL@' = yes; then \ if test -f $(DESTDIR)$(libdir)/charset.alias; then \ temp=$(DESTDIR)$(libdir)/t-charset.alias; \ dest=$(DESTDIR)$(libdir)/charset.alias; \ sed -f ref-del.sed $$dest > $$temp; \ if grep '^# Packages using this file: $$' $$temp > /dev/null; then \ rm -f $$dest; \ else \ $(INSTALL_DATA) $$temp $$dest; \ fi; \ rm -f $$temp; \ fi; \ if test -f $(DESTDIR)$(localedir)/locale.alias; then \ temp=$(DESTDIR)$(localedir)/t-locale.alias; \ dest=$(DESTDIR)$(localedir)/locale.alias; \ sed -f ref-del.sed $$dest > $$temp; \ if grep '^# Packages using this file: $$' $$temp > /dev/null; then \ rm -f $$dest; \ else \ $(INSTALL_DATA) $$temp $$dest; \ fi; \ rm -f $$temp; \ fi; \ else \ : ; \ fi if test "$(PACKAGE)" = "gettext-tools"; then \ for file in VERSION ChangeLog COPYING.LIB-2.0 COPYING.LIB-2.1 $(DISTFILES.common) $(DISTFILES.generated); do \ rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ else \ : ; \ fi info dvi ps pdf html: $(OBJECTS): ../config.h libgnuintl.h bindtextdom.$lo dcgettext.$lo dcigettext.$lo dcngettext.$lo dgettext.$lo dngettext.$lo finddomain.$lo gettext.$lo intl-compat.$lo loadmsgcat.$lo localealias.$lo ngettext.$lo setlocale.$lo textdomain.$lo: $(srcdir)/gettextP.h $(srcdir)/gmo.h $(srcdir)/loadinfo.h localename.$lo: $(srcdir)/gettextP.h hash-string.$lo dcigettext.$lo loadmsgcat.$lo: $(srcdir)/hash-string.h explodename.$lo l10nflist.$lo: $(srcdir)/loadinfo.h dcigettext.$lo loadmsgcat.$lo plural.$lo plural-exp.$lo: $(srcdir)/plural-exp.h dcigettext.$lo: $(srcdir)/eval-plural.h localcharset.$lo: $(srcdir)/localcharset.h bindtextdom.$lo dcigettext.$lo finddomain.$lo loadmsgcat.$lo localealias.$lo lock.$lo log.$lo: $(srcdir)/lock.h localealias.$lo localcharset.$lo relocatable.$lo: $(srcdir)/relocatable.h printf.$lo: $(srcdir)/printf-args.h $(srcdir)/printf-args.c $(srcdir)/printf-parse.h $(srcdir)/wprintf-parse.h $(srcdir)/xsize.h $(srcdir)/printf-parse.c $(srcdir)/vasnprintf.h $(srcdir)/vasnwprintf.h $(srcdir)/vasnprintf.c # A bison-2.1 generated plural.c includes if ENABLE_NLS. PLURAL_DEPS_yes = libintl.h PLURAL_DEPS_no = plural.$lo: $(PLURAL_DEPS_@USE_INCLUDED_LIBINTL@) tags: TAGS TAGS: $(HEADERS) $(SOURCES) here=`pwd`; cd $(srcdir) && etags -o $$here/TAGS $(HEADERS) $(SOURCES) ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) here=`pwd`; cd $(srcdir) && ctags -o $$here/CTAGS $(HEADERS) $(SOURCES) id: ID ID: $(HEADERS) $(SOURCES) here=`pwd`; cd $(srcdir) && mkid -f$$here/ID $(HEADERS) $(SOURCES) mostlyclean: rm -f *.a *.la *.o *.obj *.lo core core.* rm -f libgnuintl.h libintl.h charset.alias ref-add.sed ref-del.sed rm -f -r .libs _libs clean: mostlyclean distclean: clean rm -f Makefile ID TAGS if test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; then \ rm -f ChangeLog.inst $(DISTFILES.normal); \ else \ : ; \ fi maintainer-clean: distclean @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." # GNU gettext needs not contain the file `VERSION' but contains some # other files which should not be distributed in other packages. distdir = ../$(PACKAGE)-$(VERSION)/$(subdir) dist distdir: Makefile if test "$(PACKAGE)" = "gettext-tools"; then \ : ; \ else \ if test "$(PACKAGE)" = "gettext-runtime"; then \ additional="$(DISTFILES.gettext)"; \ else \ additional="$(DISTFILES.normal)"; \ fi; \ $(MAKE) $(DISTFILES.common) $(DISTFILES.generated) $$additional; \ for file in ChangeLog $(DISTFILES.common) $(DISTFILES.generated) $$additional; do \ if test -f $$file; then dir=.; else dir=$(srcdir); fi; \ cp -p $$dir/$$file $(distdir) || test $$file = Makefile.in || exit 1; \ done; \ fi Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) && $(SHELL) ./config.status # This would be more efficient, but doesn't work any more with autoconf-2.57, # when AC_CONFIG_FILES([intl/Makefile:somedir/Makefile.in]) is used. # cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ # 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: gliv-1.9.7/intl/os2compat.c0000644000076400007640000000550711465576131013000 0ustar gg/* OS/2 compatibility functions. Copyright (C) 2001-2002 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #define OS2_AWARE #ifdef HAVE_CONFIG_H #include #endif #include #include #include /* A version of getenv() that works from DLLs */ extern unsigned long DosScanEnv (const unsigned char *pszName, unsigned char **ppszValue); char * _nl_getenv (const char *name) { unsigned char *value; if (DosScanEnv (name, &value)) return NULL; else return value; } /* A fixed size buffer. */ char libintl_nl_default_dirname[MAXPATHLEN+1]; char *_nlos2_libdir = NULL; char *_nlos2_localealiaspath = NULL; char *_nlos2_localedir = NULL; static __attribute__((constructor)) void nlos2_initialize () { char *root = getenv ("UNIXROOT"); char *gnulocaledir = getenv ("GNULOCALEDIR"); _nlos2_libdir = gnulocaledir; if (!_nlos2_libdir) { if (root) { size_t sl = strlen (root); _nlos2_libdir = (char *) malloc (sl + strlen (LIBDIR) + 1); memcpy (_nlos2_libdir, root, sl); memcpy (_nlos2_libdir + sl, LIBDIR, strlen (LIBDIR) + 1); } else _nlos2_libdir = LIBDIR; } _nlos2_localealiaspath = gnulocaledir; if (!_nlos2_localealiaspath) { if (root) { size_t sl = strlen (root); _nlos2_localealiaspath = (char *) malloc (sl + strlen (LOCALE_ALIAS_PATH) + 1); memcpy (_nlos2_localealiaspath, root, sl); memcpy (_nlos2_localealiaspath + sl, LOCALE_ALIAS_PATH, strlen (LOCALE_ALIAS_PATH) + 1); } else _nlos2_localealiaspath = LOCALE_ALIAS_PATH; } _nlos2_localedir = gnulocaledir; if (!_nlos2_localedir) { if (root) { size_t sl = strlen (root); _nlos2_localedir = (char *) malloc (sl + strlen (LOCALEDIR) + 1); memcpy (_nlos2_localedir, root, sl); memcpy (_nlos2_localedir + sl, LOCALEDIR, strlen (LOCALEDIR) + 1); } else _nlos2_localedir = LOCALEDIR; } if (strlen (_nlos2_localedir) <= MAXPATHLEN) strcpy (libintl_nl_default_dirname, _nlos2_localedir); } gliv-1.9.7/intl/intl-exports.c0000644000076400007640000000332711465576131013537 0ustar gg/* List of exported symbols of libintl on Cygwin. Copyright (C) 2006 Free Software Foundation, Inc. Written by Bruno Haible , 2006. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* IMP(x) is a symbol that contains the address of x. */ #define IMP(x) _imp__##x /* Ensure that the variable x is exported from the library, and that a pseudo-variable IMP(x) is available. */ #define VARIABLE(x) \ /* Export x without redefining x. This code was found by compiling a \ snippet: \ extern __declspec(dllexport) int x; int x = 42; */ \ asm (".section .drectve\n"); \ asm (".ascii \" -export:" #x ",data\"\n"); \ asm (".data\n"); \ /* Allocate a pseudo-variable IMP(x). */ \ extern int x; \ void * IMP(x) = &x; VARIABLE(libintl_version) gliv-1.9.7/intl/setlocale.c0000644000076400007640000007467411465576131013057 0ustar gg/* setlocale() function that respects the locale chosen by the user. Copyright (C) 2009 Free Software Foundation, Inc. Written by Bruno Haible , 2009. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif /* Override setlocale() and newlocale() so that when the default locale is requested (locale = "") and no relevant environment variable is set, the locale chosen by the user is used. This matters on MacOS X 10 and Windows. See the comments in localename.c, function gl_locale_name_default. */ #include #include #include /* When building a DLL, we must export some functions. Note that because the functions are only defined for binary backward compatibility, we don't need to use __declspec(dllimport) in any case. */ #if HAVE_VISIBILITY && BUILDING_DLL # define DLL_EXPORTED __attribute__((__visibility__("default"))) #elif defined _MSC_VER && BUILDING_DLL # define DLL_EXPORTED __declspec(dllexport) #else # define DLL_EXPORTED #endif #include "gettextP.h" #if (defined __APPLE__ && defined __MACH__) || defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ # undef setlocale # undef newlocale /* Return string representation of locale category CATEGORY. */ static const char * category_to_name (int category) { const char *retval; switch (category) { case LC_COLLATE: retval = "LC_COLLATE"; break; case LC_CTYPE: retval = "LC_CTYPE"; break; case LC_MONETARY: retval = "LC_MONETARY"; break; case LC_NUMERIC: retval = "LC_NUMERIC"; break; case LC_TIME: retval = "LC_TIME"; break; case LC_MESSAGES: retval = "LC_MESSAGES"; break; default: /* If you have a better idea for a default value let me know. */ retval = "LC_XXX"; } return retval; } # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ /* The native Win32 setlocale() function expects locale names of the form "German" or "German_Germany" or "DEU", but not "de" or "de_DE". We need to convert the names from the form with ISO 639 language code and ISO 3166 country code to the form with English names or with three-letter identifier. The three-letter identifiers known by a Windows XP SP2 or SP3 are: AFK Afrikaans_South Africa.1252 ARA Arabic_Saudi Arabia.1256 ARB Arabic_Lebanon.1256 ARE Arabic_Egypt.1256 ARG Arabic_Algeria.1256 ARH Arabic_Bahrain.1256 ARI Arabic_Iraq.1256 ARJ Arabic_Jordan.1256 ARK Arabic_Kuwait.1256 ARL Arabic_Libya.1256 ARM Arabic_Morocco.1256 ARO Arabic_Oman.1256 ARQ Arabic_Qatar.1256 ARS Arabic_Syria.1256 ART Arabic_Tunisia.1256 ARU Arabic_U.A.E..1256 ARY Arabic_Yemen.1256 AZE Azeri (Latin)_Azerbaijan.1254 BEL Belarusian_Belarus.1251 BGR Bulgarian_Bulgaria.1251 BSB Bosnian_Bosnia and Herzegovina.1250 BSC Bosnian (Cyrillic)_Bosnia and Herzegovina.1250 (wrong encoding!) CAT Catalan_Spain.1252 CHH Chinese_Hong Kong S.A.R..950 CHI Chinese_Singapore.936 CHS Chinese_People's Republic of China.936 CHT Chinese_Taiwan.950 CSY Czech_Czech Republic.1250 CYM Welsh_United Kingdom.1252 DAN Danish_Denmark.1252 DEA German_Austria.1252 DEC German_Liechtenstein.1252 DEL German_Luxembourg.1252 DES German_Switzerland.1252 DEU German_Germany.1252 ELL Greek_Greece.1253 ENA English_Australia.1252 ENB English_Caribbean.1252 ENC English_Canada.1252 ENG English_United Kingdom.1252 ENI English_Ireland.1252 ENJ English_Jamaica.1252 ENL English_Belize.1252 ENP English_Republic of the Philippines.1252 ENS English_South Africa.1252 ENT English_Trinidad and Tobago.1252 ENU English_United States.1252 ENW English_Zimbabwe.1252 ENZ English_New Zealand.1252 ESA Spanish_Panama.1252 ESB Spanish_Bolivia.1252 ESC Spanish_Costa Rica.1252 ESD Spanish_Dominican Republic.1252 ESE Spanish_El Salvador.1252 ESF Spanish_Ecuador.1252 ESG Spanish_Guatemala.1252 ESH Spanish_Honduras.1252 ESI Spanish_Nicaragua.1252 ESL Spanish_Chile.1252 ESM Spanish_Mexico.1252 ESN Spanish_Spain.1252 ESO Spanish_Colombia.1252 ESP Spanish_Spain.1252 ESR Spanish_Peru.1252 ESS Spanish_Argentina.1252 ESU Spanish_Puerto Rico.1252 ESV Spanish_Venezuela.1252 ESY Spanish_Uruguay.1252 ESZ Spanish_Paraguay.1252 ETI Estonian_Estonia.1257 EUQ Basque_Spain.1252 FAR Farsi_Iran.1256 FIN Finnish_Finland.1252 FOS Faroese_Faroe Islands.1252 FPO Filipino_Philippines.1252 FRA French_France.1252 FRB French_Belgium.1252 FRC French_Canada.1252 FRL French_Luxembourg.1252 FRM French_Principality of Monaco.1252 FRS French_Switzerland.1252 FYN Frisian_Netherlands.1252 GLC Galician_Spain.1252 HEB Hebrew_Israel.1255 HRB Croatian_Bosnia and Herzegovina.1250 HRV Croatian_Croatia.1250 HUN Hungarian_Hungary.1250 IND Indonesian_Indonesia.1252 IRE Irish_Ireland.1252 ISL Icelandic_Iceland.1252 ITA Italian_Italy.1252 ITS Italian_Switzerland.1252 IUK Inuktitut (Latin)_Canada.1252 JPN Japanese_Japan.932 KKZ Kazakh_Kazakhstan.1251 KOR Korean_Korea.949 KYR Kyrgyz_Kyrgyzstan.1251 LBX Luxembourgish_Luxembourg.1252 LTH Lithuanian_Lithuania.1257 LVI Latvian_Latvia.1257 MKI FYRO Macedonian_Former Yugoslav Republic of Macedonia.1251 MON Mongolian_Mongolia.1251 MPD Mapudungun_Chile.1252 MSB Malay_Brunei Darussalam.1252 MSL Malay_Malaysia.1252 MWK Mohawk_Canada.1252 NLB Dutch_Belgium.1252 NLD Dutch_Netherlands.1252 NON Norwegian-Nynorsk_Norway.1252 NOR Norwegian (Bokmål)_Norway.1252 NSO Northern Sotho_South Africa.1252 PLK Polish_Poland.1250 PTB Portuguese_Brazil.1252 PTG Portuguese_Portugal.1252 QUB Quechua_Bolivia.1252 QUE Quechua_Ecuador.1252 QUP Quechua_Peru.1252 RMC Romansh_Switzerland.1252 ROM Romanian_Romania.1250 RUS Russian_Russia.1251 SKY Slovak_Slovakia.1250 SLV Slovenian_Slovenia.1250 SMA Sami (Southern)_Norway.1252 SMB Sami (Southern)_Sweden.1252 SME Sami (Northern)_Norway.1252 SMF Sami (Northern)_Sweden.1252 SMG Sami (Northern)_Finland.1252 SMJ Sami (Lule)_Norway.1252 SMK Sami (Lule)_Sweden.1252 SMN Sami (Inari)_Finland.1252 SMS Sami (Skolt)_Finland.1252 SQI Albanian_Albania.1250 SRB Serbian (Cyrillic)_Serbia and Montenegro.1251 SRL Serbian (Latin)_Serbia and Montenegro.1250 SRN Serbian (Cyrillic)_Bosnia and Herzegovina.1251 SRS Serbian (Latin)_Bosnia and Herzegovina.1250 SVE Swedish_Sweden.1252 SVF Swedish_Finland.1252 SWK Swahili_Kenya.1252 THA Thai_Thailand.874 TRK Turkish_Turkey.1254 TSN Tswana_South Africa.1252 TTT Tatar_Russia.1251 UKR Ukrainian_Ukraine.1251 URD Urdu_Islamic Republic of Pakistan.1256 USA English_United States.1252 UZB Uzbek (Latin)_Uzbekistan.1254 VIT Vietnamese_Viet Nam.1258 XHO Xhosa_South Africa.1252 ZHH Chinese_Hong Kong S.A.R..950 ZHI Chinese_Singapore.936 ZHM Chinese_Macau S.A.R..950 ZUL Zulu_South Africa.1252 */ /* Table from ISO 639 language code, optionally with country or script suffix, to English name. Keep in sync with the gl_locale_name_from_win32_LANGID function in localename.c! */ struct table_entry { const char *code; const char *english; }; static const struct table_entry language_table[] = { { "af", "Afrikaans" }, { "am", "Amharic" }, { "ar", "Arabic" }, { "arn", "Mapudungun" }, { "as", "Assamese" }, { "az@cyrillic", "Azeri (Cyrillic)" }, { "az@latin", "Azeri (Latin)" }, { "ba", "Bashkir" }, { "be", "Belarusian" }, { "ber", "Tamazight" }, { "ber@arabic", "Tamazight (Arabic)" }, { "ber@latin", "Tamazight (Latin)" }, { "bg", "Bulgarian" }, { "bin", "Edo" }, { "bn", "Bengali" }, { "bn_BD", "Bengali (Bangladesh)" }, { "bn_IN", "Bengali (India)" }, { "bnt", "Sutu" }, { "bo", "Tibetan" }, { "br", "Breton" }, { "bs", "BSB" }, /* "Bosnian (Latin)" */ { "bs@cyrillic", "BSC" }, /* Bosnian (Cyrillic) */ { "ca", "Catalan" }, { "chr", "Cherokee" }, { "co", "Corsican" }, { "cpe", "Hawaiian" }, { "cs", "Czech" }, { "cy", "Welsh" }, { "da", "Danish" }, { "de", "German" }, { "dsb", "Lower Sorbian" }, { "dv", "Divehi" }, { "el", "Greek" }, { "en", "English" }, { "es", "Spanish" }, { "et", "Estonian" }, { "eu", "Basque" }, { "fa", "Farsi" }, { "ff", "Fulfulde" }, { "fi", "Finnish" }, { "fo", "Faroese" }, /* "Faeroese" does not work */ { "fr", "French" }, { "fy", "Frisian" }, { "ga", "IRE" }, /* Gaelic (Ireland) */ { "gd", "Gaelic (Scotland)" }, { "gd", "Scottish Gaelic" }, { "gl", "Galician" }, { "gn", "Guarani" }, { "gsw", "Alsatian" }, { "gu", "Gujarati" }, { "ha", "Hausa" }, { "he", "Hebrew" }, { "hi", "Hindi" }, { "hr", "Croatian" }, { "hsb", "Upper Sorbian" }, { "hu", "Hungarian" }, { "hy", "Armenian" }, { "id", "Indonesian" }, { "ig", "Igbo" }, { "ii", "Yi" }, { "is", "Icelandic" }, { "it", "Italian" }, { "iu", "IUK" }, /* Inuktitut */ { "ja", "Japanese" }, { "ka", "Georgian" }, { "kk", "Kazakh" }, { "kl", "Greenlandic" }, { "km", "Cambodian" }, { "km", "Khmer" }, { "kn", "Kannada" }, { "ko", "Korean" }, { "kok", "Konkani" }, { "kr", "Kanuri" }, { "ks", "Kashmiri" }, { "ks_IN", "Kashmiri_India" }, { "ks_PK", "Kashmiri (Arabic)_Pakistan" }, { "ky", "Kyrgyz" }, { "la", "Latin" }, { "lb", "Luxembourgish" }, { "lo", "Lao" }, { "lt", "Lithuanian" }, { "lv", "Latvian" }, { "mi", "Maori" }, { "mk", "FYRO Macedonian" }, { "mk", "Macedonian" }, { "ml", "Malayalam" }, { "mn", "Mongolian" }, { "mni", "Manipuri" }, { "moh", "Mohawk" }, { "mr", "Marathi" }, { "ms", "Malay" }, { "mt", "Maltese" }, { "my", "Burmese" }, { "nb", "NOR" }, /* Norwegian Bokmål */ { "ne", "Nepali" }, { "nic", "Ibibio" }, { "nl", "Dutch" }, { "nn", "NON" }, /* Norwegian Nynorsk */ { "no", "Norwegian" }, { "nso", "Northern Sotho" }, { "nso", "Sepedi" }, { "oc", "Occitan" }, { "om", "Oromo" }, { "or", "Oriya" }, { "pa", "Punjabi" }, { "pap", "Papiamentu" }, { "pl", "Polish" }, { "prs", "Dari" }, { "ps", "Pashto" }, { "pt", "Portuguese" }, { "qu", "Quechua" }, { "qut", "K'iche'" }, { "rm", "Romansh" }, { "ro", "Romanian" }, { "ru", "Russian" }, { "rw", "Kinyarwanda" }, { "sa", "Sanskrit" }, { "sah", "Yakut" }, { "sd", "Sindhi" }, { "se", "Sami (Northern)" }, { "se", "Northern Sami" }, { "si", "Sinhalese" }, { "sk", "Slovak" }, { "sl", "Slovenian" }, { "sma", "Sami (Southern)" }, { "sma", "Southern Sami" }, { "smj", "Sami (Lule)" }, { "smj", "Lule Sami" }, { "smn", "Sami (Inari)" }, { "smn", "Inari Sami" }, { "sms", "Sami (Skolt)" }, { "sms", "Skolt Sami" }, { "so", "Somali" }, { "sq", "Albanian" }, { "sr", "Serbian (Latin)" }, { "sr@cyrillic", "SRB" }, /* Serbian (Cyrillic) */ { "sw", "Swahili" }, { "syr", "Syriac" }, { "ta", "Tamil" }, { "te", "Telugu" }, { "tg", "Tajik" }, { "th", "Thai" }, { "ti", "Tigrinya" }, { "tk", "Turkmen" }, { "tl", "Filipino" }, { "tn", "Tswana" }, { "tr", "Turkish" }, { "ts", "Tsonga" }, { "tt", "Tatar" }, { "ug", "Uighur" }, { "uk", "Ukrainian" }, { "ur", "Urdu" }, { "uz", "Uzbek" }, { "uz", "Uzbek (Latin)" }, { "uz@cyrillic", "Uzbek (Cyrillic)" }, { "ve", "Venda" }, { "vi", "Vietnamese" }, { "wen", "Sorbian" }, { "wo", "Wolof" }, { "xh", "Xhosa" }, { "yi", "Yiddish" }, { "yo", "Yoruba" }, { "zh", "Chinese" }, { "zu", "Zulu" } }; /* Table from ISO 3166 country code to English name. Keep in sync with the gl_locale_name_from_win32_LANGID function in localename.c! */ static const struct table_entry country_table[] = { { "AE", "U.A.E." }, { "AF", "Afghanistan" }, { "AL", "Albania" }, { "AM", "Armenia" }, { "AN", "Netherlands Antilles" }, { "AR", "Argentina" }, { "AT", "Austria" }, { "AU", "Australia" }, { "AZ", "Azerbaijan" }, { "BA", "Bosnia and Herzegovina" }, { "BD", "Bangladesh" }, { "BE", "Belgium" }, { "BG", "Bulgaria" }, { "BH", "Bahrain" }, { "BN", "Brunei Darussalam" }, { "BO", "Bolivia" }, { "BR", "Brazil" }, { "BT", "Bhutan" }, { "BY", "Belarus" }, { "BZ", "Belize" }, { "CA", "Canada" }, { "CG", "Congo" }, { "CH", "Switzerland" }, { "CI", "Cote d'Ivoire" }, { "CL", "Chile" }, { "CM", "Cameroon" }, { "CN", "People's Republic of China" }, { "CO", "Colombia" }, { "CR", "Costa Rica" }, { "CS", "Serbia and Montenegro" }, { "CZ", "Czech Republic" }, { "DE", "Germany" }, { "DK", "Denmark" }, { "DO", "Dominican Republic" }, { "DZ", "Algeria" }, { "EC", "Ecuador" }, { "EE", "Estonia" }, { "EG", "Egypt" }, { "ER", "Eritrea" }, { "ES", "Spain" }, { "ET", "Ethiopia" }, { "FI", "Finland" }, { "FO", "Faroe Islands" }, { "FR", "France" }, { "GB", "United Kingdom" }, { "GD", "Caribbean" }, { "GE", "Georgia" }, { "GL", "Greenland" }, { "GR", "Greece" }, { "GT", "Guatemala" }, { "HK", "Hong Kong" }, { "HK", "Hong Kong S.A.R." }, { "HN", "Honduras" }, { "HR", "Croatia" }, { "HT", "Haiti" }, { "HU", "Hungary" }, { "ID", "Indonesia" }, { "IE", "Ireland" }, { "IL", "Israel" }, { "IN", "India" }, { "IQ", "Iraq" }, { "IR", "Iran" }, { "IS", "Iceland" }, { "IT", "Italy" }, { "JM", "Jamaica" }, { "JO", "Jordan" }, { "JP", "Japan" }, { "KE", "Kenya" }, { "KG", "Kyrgyzstan" }, { "KH", "Cambodia" }, { "KR", "South Korea" }, { "KW", "Kuwait" }, { "KZ", "Kazakhstan" }, { "LA", "Laos" }, { "LB", "Lebanon" }, { "LI", "Liechtenstein" }, { "LK", "Sri Lanka" }, { "LT", "Lithuania" }, { "LU", "Luxembourg" }, { "LV", "Latvia" }, { "LY", "Libya" }, { "MA", "Morocco" }, { "MC", "Principality of Monaco" }, { "MD", "Moldava" }, { "MD", "Moldova" }, { "ME", "Montenegro" }, { "MK", "Former Yugoslav Republic of Macedonia" }, { "ML", "Mali" }, { "MM", "Myanmar" }, { "MN", "Mongolia" }, { "MO", "Macau S.A.R." }, { "MT", "Malta" }, { "MV", "Maldives" }, { "MX", "Mexico" }, { "MY", "Malaysia" }, { "NG", "Nigeria" }, { "NI", "Nicaragua" }, { "NL", "Netherlands" }, { "NO", "Norway" }, { "NP", "Nepal" }, { "NZ", "New Zealand" }, { "OM", "Oman" }, { "PA", "Panama" }, { "PE", "Peru" }, { "PH", "Philippines" }, { "PK", "Islamic Republic of Pakistan" }, { "PL", "Poland" }, { "PR", "Puerto Rico" }, { "PT", "Portugal" }, { "PY", "Paraguay" }, { "QA", "Qatar" }, { "RE", "Reunion" }, { "RO", "Romania" }, { "RS", "Serbia" }, { "RU", "Russia" }, { "RW", "Rwanda" }, { "SA", "Saudi Arabia" }, { "SE", "Sweden" }, { "SG", "Singapore" }, { "SI", "Slovenia" }, { "SK", "Slovak" }, { "SN", "Senegal" }, { "SO", "Somalia" }, { "SR", "Suriname" }, { "SV", "El Salvador" }, { "SY", "Syria" }, { "TH", "Thailand" }, { "TJ", "Tajikistan" }, { "TM", "Turkmenistan" }, { "TN", "Tunisia" }, { "TR", "Turkey" }, { "TT", "Trinidad and Tobago" }, { "TW", "Taiwan" }, { "TZ", "Tanzania" }, { "UA", "Ukraine" }, { "US", "United States" }, { "UY", "Uruguay" }, { "VA", "Vatican" }, { "VE", "Venezuela" }, { "VN", "Viet Nam" }, { "YE", "Yemen" }, { "ZA", "South Africa" }, { "ZW", "Zimbabwe" } }; /* Given a string STRING, find the set of indices i such that TABLE[i].code is the given STRING. It is a range [lo,hi-1]. */ typedef struct { size_t lo; size_t hi; } range_t; static void search (const struct table_entry *table, size_t table_size, const char *string, range_t *result) { /* The table is sorted. Perform a binary search. */ size_t hi = table_size; size_t lo = 0; while (lo < hi) { /* Invariant: for i < lo, strcmp (table[i].code, string) < 0, for i >= hi, strcmp (table[i].code, string) > 0. */ size_t mid = (hi + lo) >> 1; /* >= lo, < hi */ int cmp = strcmp (table[mid].code, string); if (cmp < 0) lo = mid + 1; else if (cmp > 0) hi = mid; else { /* Found an i with strcmp (language_table[i].code, string) == 0. Find the entire interval of such i. */ { size_t i; for (i = mid; i > lo; ) { i--; if (strcmp (table[i].code, string) < 0) { lo = i + 1; break; } } } { size_t i; for (i = mid; i < hi; i++) { if (strcmp (table[i].code, string) > 0) { hi = i; break; } } } /* The set of i with strcmp (language_table[i].code, string) == 0 is the interval [lo, hi-1]. */ break; } } result->lo = lo; result->hi = hi; } /* Like setlocale, but accept also locale names in the form ll or ll_CC, where ll is an ISO 639 language code and CC is an ISO 3166 country code. */ static char * setlocale_unixlike (int category, const char *locale) { char *result; char llCC_buf[64]; char ll_buf[64]; char CC_buf[64]; /* First, try setlocale with the original argument unchanged. */ result = setlocale (category, locale); if (result != NULL) return result; /* Otherwise, assume the argument is in the form language[_territory][.codeset][@modifier] and try to map it using the tables. */ if (strlen (locale) < sizeof (llCC_buf)) { /* Second try: Remove the codeset part. */ { const char *p = locale; char *q = llCC_buf; /* Copy the part before the dot. */ for (; *p != '\0' && *p != '.'; p++, q++) *q = *p; if (*p == '.') /* Skip the part up to the '@', if any. */ for (; *p != '\0' && *p != '@'; p++) ; /* Copy the part starting with '@', if any. */ for (; *p != '\0'; p++, q++) *q = *p; *q = '\0'; } /* llCC_buf now contains language[_territory][@modifier] */ if (strcmp (llCC_buf, locale) != 0) { result = setlocale (category, llCC_buf); if (result != NULL) return result; } /* Look it up in language_table. */ { range_t range; size_t i; search (language_table, sizeof (language_table) / sizeof (language_table[0]), llCC_buf, &range); for (i = range.lo; i < range.hi; i++) { /* Try the replacement in language_table[i]. */ result = setlocale (category, language_table[i].english); if (result != NULL) return result; } } /* Split language[_territory][@modifier] into ll_buf = language[@modifier] and CC_buf = territory */ { const char *underscore = strchr (llCC_buf, '_'); if (underscore != NULL) { const char *territory_start = underscore + 1; const char *territory_end = strchr (territory_start, '@'); if (territory_end == NULL) territory_end = territory_start + strlen (territory_start); memcpy (ll_buf, llCC_buf, underscore - llCC_buf); strcpy (ll_buf + (underscore - llCC_buf), territory_end); memcpy (CC_buf, territory_start, territory_end - territory_start); CC_buf[territory_end - territory_start] = '\0'; { /* Look up ll_buf in language_table and CC_buf in country_table. */ range_t language_range; search (language_table, sizeof (language_table) / sizeof (language_table[0]), ll_buf, &language_range); if (language_range.lo < language_range.hi) { range_t country_range; search (country_table, sizeof (country_table) / sizeof (country_table[0]), CC_buf, &country_range); if (country_range.lo < country_range.hi) { size_t i; size_t j; for (i = language_range.lo; i < language_range.hi; i++) for (j = country_range.lo; j < country_range.hi; j++) { /* Concatenate the replacements. */ const char *part1 = language_table[i].english; size_t part1_len = strlen (part1); const char *part2 = country_table[j].english; size_t part2_len = strlen (part2) + 1; char buf[64+64]; if (!(part1_len + 1 + part2_len <= sizeof (buf))) abort (); memcpy (buf, part1, part1_len); buf[part1_len] = '_'; memcpy (buf + part1_len + 1, part2, part2_len); /* Try the concatenated replacements. */ result = setlocale (category, buf); if (result != NULL) return result; } } /* Try omitting the country entirely. This may set a locale corresponding to the wrong country, but is better than failing entirely. */ { size_t i; for (i = language_range.lo; i < language_range.hi; i++) { /* Try only the language replacement. */ result = setlocale (category, language_table[i].english); if (result != NULL) return result; } } } } } } } /* Failed. */ return NULL; } # else # define setlocale_unixlike setlocale # endif # if LC_MESSAGES == 1729 /* The system does not store an LC_MESSAGES locale category. Do it here. */ static char lc_messages_name[64] = "C"; /* Like setlocale, but support also LC_MESSAGES. */ static char * setlocale_single (int category, const char *locale) { if (category == LC_MESSAGES) { if (locale != NULL) { lc_messages_name[sizeof (lc_messages_name) - 1] = '\0'; strncpy (lc_messages_name, locale, sizeof (lc_messages_name) - 1); } return lc_messages_name; } else return setlocale_unixlike (category, locale); } # else # define setlocale_single setlocale_unixlike # endif DLL_EXPORTED char * libintl_setlocale (int category, const char *locale) { if (locale != NULL && locale[0] == '\0') { /* A request to the set the current locale to the default locale. */ if (category == LC_ALL) { /* Set LC_CTYPE first. Then the other categories. */ static int const categories[] = { LC_NUMERIC, LC_TIME, LC_COLLATE, LC_MONETARY, LC_MESSAGES }; char *saved_locale; const char *base_name; unsigned int i; /* Back up the old locale, in case one of the steps fails. */ saved_locale = setlocale (LC_ALL, NULL); if (saved_locale == NULL) return NULL; saved_locale = strdup (saved_locale); if (saved_locale == NULL) return NULL; /* Set LC_CTYPE category. Set all other categories (except possibly LC_MESSAGES) to the same value in the same call; this is likely to save calls. */ base_name = gl_locale_name_environ (LC_CTYPE, category_to_name (LC_CTYPE)); if (base_name == NULL) base_name = gl_locale_name_default (); if (setlocale_unixlike (LC_ALL, base_name) == NULL) goto fail; for (i = 0; i < sizeof (categories) / sizeof (categories[0]); i++) { int cat = categories[i]; const char *name; name = gl_locale_name_environ (cat, category_to_name (cat)); if (name == NULL) name = gl_locale_name_default (); /* If name is the same as base_name, it has already been set through the setlocale call before the loop. */ if (strcmp (name, base_name) != 0 # if LC_MESSAGES == 1729 || cat == LC_MESSAGES # endif ) if (setlocale_single (cat, name) == NULL) goto fail; } /* All steps were successful. */ free (saved_locale); return setlocale (LC_ALL, NULL); fail: if (saved_locale[0] != '\0') /* don't risk an endless recursion */ setlocale (LC_ALL, saved_locale); free (saved_locale); return NULL; } else { const char *name = gl_locale_name_environ (category, category_to_name (category)); if (name == NULL) name = gl_locale_name_default (); return setlocale_single (category, name); } } else return setlocale_single (category, locale); } # if HAVE_NEWLOCALE DLL_EXPORTED locale_t libintl_newlocale (int category_mask, const char *locale, locale_t base) { if (category_mask != 0 && locale != NULL && locale[0] == '\0') { /* A request to construct a locale_t object that refers to the default locale. */ /* Set LC_CTYPE first. Then the other categories. */ static struct { int cat; int mask; } const categories[] = { { LC_CTYPE, LC_CTYPE_MASK }, { LC_NUMERIC, LC_NUMERIC_MASK }, { LC_TIME, LC_TIME_MASK }, { LC_COLLATE, LC_COLLATE_MASK }, { LC_MONETARY, LC_MONETARY_MASK }, { LC_MESSAGES, LC_MESSAGES_MASK } }; locale_t orig_base = base; if ((LC_ALL_MASK & ~category_mask) == 0) { const char *base_name; unsigned int i; /* Set LC_CTYPE category. Set all other categories (except possibly LC_MESSAGES) to the same value in the same call; this is likely to save calls. */ base_name = gl_locale_name_environ (LC_CTYPE, category_to_name (LC_CTYPE)); if (base_name == NULL) base_name = gl_locale_name_default (); base = newlocale (LC_ALL_MASK, base_name, base); if (base == NULL) return NULL; for (i = 1; i < sizeof (categories) / sizeof (categories[0]); i++) { int category = categories[i].cat; int category_mask = categories[i].mask; const char *name; name = gl_locale_name_environ (category, category_to_name (category)); if (name == NULL) name = gl_locale_name_default (); /* If name is the same as base_name, it has already been set through the setlocale call before the loop. */ if (strcmp (name, base_name) != 0) { locale_t copy = newlocale (category_mask, name, base); if (copy == NULL) goto fail; /* No need to call freelocale (base) if copy != base; the newlocale function already takes care of doing it. */ base = copy; } } } else { unsigned int i; for (i = 0; i < sizeof (categories) / sizeof (categories[0]); i++) { int cat_mask = categories[i].mask; if ((category_mask & cat_mask) != 0) { int cat = categories[i].cat; const char *name; locale_t copy; name = gl_locale_name_environ (cat, category_to_name (cat)); if (name == NULL) name = gl_locale_name_default (); copy = newlocale (cat_mask, name, base); if (copy == NULL) goto fail; /* No need to call freelocale (base) if copy != base; the newlocale function already takes care of doing it. */ base = copy; } } } /* All steps were successful. */ return base; fail: if (base != NULL && orig_base == NULL) { int saved_errno = errno; freelocale (base); errno = saved_errno; } return NULL; } else return newlocale (category_mask, locale, base); } # endif #endif gliv-1.9.7/intl/log.c0000644000076400007640000000750111465576131011646 0ustar gg/* Log file output. Copyright (C) 2003, 2005, 2009 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Written by Bruno Haible . */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include /* Handle multi-threaded applications. */ #ifdef _LIBC # include #else # include "lock.h" #endif /* Separator between msgctxt and msgid in .mo files. */ #define MSGCTXT_SEPARATOR '\004' /* EOT */ /* Print an ASCII string with quotes and escape sequences where needed. */ static void print_escaped (FILE *stream, const char *str, const char *str_end) { putc ('"', stream); for (; str != str_end; str++) if (*str == '\n') { fputs ("\\n\"", stream); if (str + 1 == str_end) return; fputs ("\n\"", stream); } else { if (*str == '"' || *str == '\\') putc ('\\', stream); putc (*str, stream); } putc ('"', stream); } static char *last_logfilename = NULL; static FILE *last_logfile = NULL; __libc_lock_define_initialized (static, lock) static inline void _nl_log_untranslated_locked (const char *logfilename, const char *domainname, const char *msgid1, const char *msgid2, int plural) { FILE *logfile; const char *separator; /* Can we reuse the last opened logfile? */ if (last_logfilename == NULL || strcmp (logfilename, last_logfilename) != 0) { /* Close the last used logfile. */ if (last_logfilename != NULL) { if (last_logfile != NULL) { fclose (last_logfile); last_logfile = NULL; } free (last_logfilename); last_logfilename = NULL; } /* Open the logfile. */ last_logfilename = (char *) malloc (strlen (logfilename) + 1); if (last_logfilename == NULL) return; strcpy (last_logfilename, logfilename); last_logfile = fopen (logfilename, "a"); if (last_logfile == NULL) return; } logfile = last_logfile; fprintf (logfile, "domain "); print_escaped (logfile, domainname, domainname + strlen (domainname)); separator = strchr (msgid1, MSGCTXT_SEPARATOR); if (separator != NULL) { /* The part before the MSGCTXT_SEPARATOR is the msgctxt. */ fprintf (logfile, "\nmsgctxt "); print_escaped (logfile, msgid1, separator); msgid1 = separator + 1; } fprintf (logfile, "\nmsgid "); print_escaped (logfile, msgid1, msgid1 + strlen (msgid1)); if (plural) { fprintf (logfile, "\nmsgid_plural "); print_escaped (logfile, msgid2, msgid2 + strlen (msgid2)); fprintf (logfile, "\nmsgstr[0] \"\"\n"); } else fprintf (logfile, "\nmsgstr \"\"\n"); putc ('\n', logfile); } /* Add to the log file an entry denoting a failed translation. */ void _nl_log_untranslated (const char *logfilename, const char *domainname, const char *msgid1, const char *msgid2, int plural) { __libc_lock_lock (lock); _nl_log_untranslated_locked (logfilename, domainname, msgid1, msgid2, plural); __libc_lock_unlock (lock); } gliv-1.9.7/Makefile.in0000644000076400007640000006300611465576131012022 0ustar gg# 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 = : build_triplet = @build@ host_triplet = @host@ subdir = . DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(srcdir)/config.h.in \ $(srcdir)/gliv.spec.in $(top_srcdir)/configure \ $(top_srcdir)/intl/Makefile.in ABOUT-NLS COPYING INSTALL NEWS \ THANKS compile config.guess config.rpath config.sub depcomp \ install-sh missing mkinstalldirs 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 = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = intl/Makefile gliv.spec 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 DATA = $(noinst_DATA) 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 = lib intl po tools man src 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@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CFLAG_VISIBILITY = @CFLAG_VISIBILITY@ 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@ GENCAT = @GENCAT@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ GTKGLEXT_CFLAGS = @GTKGLEXT_CFLAGS@ GTKGLEXT_LIBS = @GTKGLEXT_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ HAVE_WPRINTF = @HAVE_WPRINTF@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_DEFAULT_VERBOSITY = @INTL_DEFAULT_VERBOSITY@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBMULTITHREAD = @LIBMULTITHREAD@ LIBOBJS = @LIBOBJS@ LIBPTH = @LIBPTH@ LIBPTH_PREFIX = @LIBPTH_PREFIX@ LIBS = @LIBS@ LIBTHREAD = @LIBTHREAD@ LTLIBC = @LTLIBC@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBMULTITHREAD = @LTLIBMULTITHREAD@ LTLIBOBJS = @LTLIBOBJS@ LTLIBPTH = @LTLIBPTH@ LTLIBTHREAD = @LTLIBTHREAD@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ 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@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WINDRES = @WINDRES@ WOE32 = @WOE32@ WOE32DLL = @WOE32DLL@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ 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 = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ 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@ 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 = $(lib) \ intl \ po \ tools \ man \ src @NEED_REPLACEMENTS_TRUE@lib = lib EXTRA_DIST = config.rpath noinst_DATA = gliv.desktop gliv.png gliv.svg CLEANFILES = gliv.desktop 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 intl/Makefile: $(top_builddir)/config.status $(top_srcdir)/intl/Makefile.in cd $(top_builddir) && $(SHELL) ./config.status $@ gliv.spec: $(top_builddir)/config.status $(srcdir)/gliv.spec.in cd $(top_builddir) && $(SHELL) ./config.status $@ # 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" \ --with-included-gettext \ $(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 $(DATA) 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: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) 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: @$(NORMAL_INSTALL) $(MAKE) $(AM_MAKEFLAGS) install-data-hook 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: @$(NORMAL_INSTALL) $(MAKE) $(AM_MAKEFLAGS) uninstall-hook .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \ ctags-recursive install-am install-data-am install-strip \ tags-recursive uninstall-am .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-data-hook 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 uninstall-hook gliv.desktop: gliv.desktop.tmpl sed -e 's|@SHAREDIR@|$(datadir)|g' -e 's|@BINDIR@|$(bindir)|g' < $< > $@ install-data-hook: @echo @echo "+----------------------------------------------------------+" @echo "| |" @echo "| Note to Zsh users |" @echo "| |" @echo "| If you use Zsh's completion mechanism, you can install |" @echo '| tools/_gliv in $$ZSH_PREFIX/share/zsh/site-functions/ |' @echo "| to have Zsh's completion on GLiv's parameters. |" @echo "| |" @echo "+----------------------------------------------------------+" @echo @if desktop-file-install --help > /dev/null 2>&1; then \ echo "Installing the GLiv desktop file with desktop-file-install"; \ mkdir -p $(datadir)/{pixmaps,applications} || true; \ cp gliv.png $(datadir)/pixmaps/gliv.png || true; \ desktop-file-install --vendor=gnome --dir=$(datadir)/applications \ gliv.desktop || true; \ else \ echo "No desktop-file-install(1), skipping gliv.desktop"; \ fi uninstall-hook: rm $(datadir)/pixmaps/gliv.png || true rm $(datadir)/applications/gnome-gliv.desktop || true # 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: gliv-1.9.7/NEWS0000644000076400007640000002613711465576131010460 0ustar gg1.9.7 ~~~~~ * Fixed a bug where pointer motion events were not reported on newer GTK+ versions. * New menu entries to load the first, the last or a random image. * Added a command line option (-c) to clear the images list in client mode, this makes the client mode incompatible with previous releases. * Czech translation by Martin Vejmelka. * Danis translation by Joe Hansen. * Finnish translation by Jorma Karvonen. * Polish translation by Marcin Ryk. * Updated Vietnamese translation. * Updated Dutch translation. * Updated German translation. * Update of the Brazilian Portuguese translation by Rodolfo Borges. * The -c and -C command line options do not require an X server anymore. * The EXIF orientation information is now honored. 1.9.6 ~~~~~ * Updated Russian translation. * All man pages are in UTF-8. * Misc build fixes. 1.9.5 ~~~~~ * Fixed a bug with transitions of small images endlessly waiting for the window to resize. * Updated Bulgarian translation. * Two new commands to fit the image in height or width. * New command line option to specify the initial window geometry. * Swedish translation. * The framerate limiter is also used during transitions. * This changed the transitions configuration. 1.9.4 ~~~~~ * Require gtk+-2.6. * Bulgarian translation. * Fixed the getdelim(3) replacement for non-GNU systems. * Windows now contain the GLiv logo. * Force -lX11 in X11 libraries. * Added an option to disable the OpenGL bilinear filtering. * Added a command to reload the current image. * Russian translation update. * Thumbnails browser. * Split the "No automatic image centering" in different initial image positions. * The "Transformations" menu has been reorganized. * Added a command to hide all floating windows at once. * Updated documentation. * Improved framerate limiter. * Automatically rebuild the menus when new images are inserted. 1.9.3 ~~~~~ * New menu entry to open a directory. * Initial Kinyarwanda translation. * Vietnamese translation. * "Pause" as a keybinding to toggle the slideshow. * Files are sorted in natural order, such that 2.jpg comes before 10.jpg. 1.9.2 ~~~~~ * Faster loading of collections. * Faster switching between images. * Added an option to keep transformations between images. * Turkish translation 1.9.1 ~~~~~ * Fixed the bug which caused images to be added at the end of the list. 1.9 ~~~ * Most options are now configurable only in the configuration file. * Detect when a user action changes the image. * Added the %b and %d directives when writing actions. * The configuration file can be specified on the command line. * Updated Russian translation. * German, French and Russian manual page. * New command line option to add all files in the directory when loading a file. * Added a preview to the open dialog. * Ctrl-Arrow key rotates by 90 degrees instead of 45. * New command line option (-o) to directly save a collection. * Files in collections are now saved in the same order as in the list. * Ability to jump to any image given its number. * Switching images during the slideshow can change its direction. 1.8.4 ~~~~~ * Require gtk+-2.4. * The framerate limiter is more accurate and is by default enabled at 100 fps. * Faster collection loading, the file is now mmapped. * Slovak translation. 1.8.3 ~~~~~ * New menu item to open the current image directory menu. * The PageUp and PageDown can be used to switch images. * Fixed a thinko in the case where automatic centering is disabled. * Transitions can be disabled in a more intuitive way. 1.8.2 ~~~~~ * Options are saved when quitting. * Brazilian Portuguese translation update. * German translation. * Cosmetic fixes. * Events are processed during transitions. 1.8.1 ~~~~~ * Updated Dutch translation. * Notice on the window when seeing the first or last image. * New option to disable the quit confirmation dialog. * Installation of a .desktop file. * Support for system wide glivrc configuration file. * OpenGL errors reports are quieter. * Updated Romanian translation. * After loading a collection, we jump to the first image in that collection. * Fixed an initialization bug in the client/server mode. * Alpha-blended transitions between images. * Menu names are saved untranslated. It means that if you use a localized GLiv, you'll have to recreate your personal menus accelerators. * The Ctrl modifier is no longer ignored. * Moved the homepage to http://guichaz.free.fr/gliv. 1.8 ~~~ * New option to keep only one image in memory. * OpenGL errors are now reported. * Diagonal movement using the arrow keys. * Threaded loading is back. * The maximize and scale down options no longer implie full screen mode. * The dithering is faster, but needs some testing on big endian machines. * Framerate limiter to decrease CPU usage, disabled by default. * _gliv file for Zsh's completion. * Thumbnails. * Removal of ImageMagick support. * A new option dialog made with Glade and AWK. * Images menus rebuilding can be stopped, so has been reenabled by default. * Dutch and Romanian translations. * New option to disable the automatic window resizing. * GLiv collections (see the man page). * Smarter mnemonics. * The cursor changes to show the current action. * New option to read filenames from stdin separated by zeros. * Some minor bugs have been fixed. * GLiv can now be launched without creating a new window. * Keyboard accelerators can be used with or without the Control key. * New option to disable the automatic image centering. * Saner command line options handling. 1.7.1 ~~~~~ * Russian translation. * Updated Brazilian Portuguese translation. * Progress shown when rebuilding the images menus. * The slide show can loop in both directions. * ImageMagick loading is more robust. * Faster looping slide show when there are only two images. 1.7 ~~~ * Dropped gtk+-1.2 support, gtk+-2.2 is now required as well as GtkGLExt. This should reconcile GLiv with nVidia boards. * New option to disable the mnemonics in the images menus, it makes the images menus creation faster. * Images menus are no longer built by default. * Added support for gzipped and bzip2ed images using ImageMagick. * Fixed a crashing bug when opening a file when only one image is loaded. * New tiler to load ImageMagick pictures with many layers. * Brazilian Portuguese translation. * Once the window has been manually resized, it will no longer be automatically resized unless when going back from full screen mode. * Ability to delete the current displayed file. * The images list is not sorted by default, use -S to sort it. * Slide show with a timer. * New option to make the slide show loop. 1.6 ~~~ * Added mipmap support (read the man page). * Loading an image and building the images menus are now less blocking. * Improved drag and drop support. * GLiv does not start with the Open dialog if there are no filenames on the command line. * Some speedups. * Some minor changes in the GUI. * Support for the GTK+-2.0 Accelerator Maps. * Most controls are in the menus, so the keyboard accelerators can be changed. 1.5.3 ~~~~~ * ImageMagick detection is now done at runtime. * Minor bug fixes. * Build fixes. * Two new menus to sort or shuffle the current images list. 1.5.2 ~~~~~ * Use GtkGLArea-2.0 with GTK+-2.0. * Optional scrollbars (reliable only with GTK+-2.0). * Build fixes. * Neither gliv --version nor gliv --help will start GTK. * Made the directories menu a bit smarter. * Ability to zoom by dragging the mouse holding Shift. * Initial drag and drop support. 1.5.1 ~~~~~ * Finished the port to GTK+-2.0 as well as the back port to GTK+-1.2. * New option to disable the images menus creation at startup. * Horizontal and vertical flip. 1.5 ~~~ * Compile fix when ImageMagick is disabled. * The zoom ratio in the status bar was not updated during a window resizing. * Simplified mnemonics handling. * Files opened with the dialog are inserted at the good place. * ImageMagick loadings does not block anymore. * The status bar indicates which file is loaded. * The getopt replacement is provided. * Control+left or right arrow rotates by 0.1 degree. * Two new menus to load images in the list. 1.4.5 ~~~~~ * Fixed crashing bug with dithering. * Better history support. * New option to the open dialog to load all files in the directory when just one is selected. 1.4.4 ~~~~~ * The tiler has been improved. * Added an option to try loading every file whatever the extension is. * Now you can change the background color as well as the alpha checks. * The maximize option is separated between maximize and scale_down, if you use the configuration file, you should re save it. * I18n, currently only in French. * The usual fixes. 1.4.3 ~~~~~ * Fixed freeze when the cursor was toggled during critical rendering. * The delay before hiding the cursor is now in millisecond. 1.4.2 ~~~~~ * Added the rotation, available with the Control key. * Added dithering, -t option. * Removed useless nanosleep(). * Minor bug fixes. 1.4.1 ~~~~~ * Compile fix for OpenGL detection. * Loading using ImageMagick or gdk-pixbuf based on the filename extension. * Fixed the bug which caused images to be over zoomed when starting in full screen mode. 1.4 ~~~ * Initial port to GTK+-2.0 (with backward compatibility). * Use of gdk-pixbuf instead of Imlib2. * New option to show checks behind transparent images. * History support for panning and zooming. * Added menu entries. * Better tiler. * No more blurring when not zooming. * Some optimizations for big images. * Use of ImageMagick to load unsupported image files. 1.3.1 ~~~~~ * Improved the Open dialog. * Minor fixes. 1.3 ~~~ * The 'c' key to toggle the cursor is now 'd' to hide it. * Faster loading of images. * New option (-z) to make the pointer the zoom center. * Fix for garbage displayed on startup on some systems. * Added an option file. * Better handle of window resizing when the Maximize option is set. * When moving the image, the pointer is warped around the screen. * Improved the ftw replacement. * Minor fixes. 1.2 ~~~ * Doesn't crash if OpenGL not available at runtime. * Open dialog visible in full screen mode. * Doesn't blur the border of big images. * Option dialog. * New menu entries and key bindings. * When not using -s the file list is sorted. * If the image loading crashes, output the filename. * As always, minor fixes. 1.1.3 ~~~~~ * The menu bar is usable in full screen mode. * GLiv can be used without command line argument. * Minor fixes. 1.1.2 ~~~~~ * Faster refresh when switching images. 1.1.1 ~~~~~ * Faster initialization when starting in full screen mode. * Improved the ftw replacement. * Modified the autoconf macro to find OpenGL. 1.1 ~~~ * Almost totally rewritten. * GTK interface. * No more threaded loading. * New key bindings. * Lots of minor fixes and improvements. 1.0.3 ~~~~~ * Fixed segfault on exit. 1.0.2 ~~~~~ * Added binary package support using EPM. * Now, GLiv can be used with no WM running. * Better handle of dirty exit. * The -m flag is used in window mode too. * Several 'gliv -s' launched at the same time will have different slide show orders. 1.0.1 ~~~~~ * Less re-computations of the projection. * Image cleared to avoid display of memory garbage. * Another fix for the full screen problem. * Minor optimizations and bug fixes. 1.0 ~~~ * Initial stable release. gliv-1.9.7/COPYING0000644000076400007640000004310511465576131011006 0ustar gg GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. gliv-1.9.7/src/0000755000076400007640000000000011465576131010537 5ustar gggliv-1.9.7/src/decompression.c0000644000076400007640000001053311465576131013557 0ustar gg/* * 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. * * See the COPYING file for license information. * * Guillaume Chazarain */ /************************************************ * Files decompression (images and collections) * ************************************************/ #include /* read(), pipe(), fork(), execlp() ... */ #include /* pid_t */ #include /* kill(), SIGTERM */ #include /* perror() */ #include /* waitpid() */ #include /* errno */ #include "gliv.h" #include "decompression.h" #include "collection.h" #include "loading.h" typedef struct { gchar *ext; gchar *cmd; } decompressor; /* Read from the child process. */ static GdkPixbuf *read_image(gint fd, GError ** error) { guchar buf[4096]; GdkPixbuf *pixbuf; GdkPixbufLoader *loader; gsize size; loader = gdk_pixbuf_loader_new(); while ((size = read(fd, buf, sizeof(buf))) > 0 || (errno == EINTR)) { if (size > 0 && gdk_pixbuf_loader_write(loader, buf, size, error) == FALSE) return NULL; } if (gdk_pixbuf_loader_close(loader, error) == FALSE) return NULL; pixbuf = gdk_pixbuf_loader_get_pixbuf(loader); if (pixbuf != NULL) gdk_pixbuf_ref(pixbuf); g_object_unref(loader); return pixbuf; } /* Exec: "%cmd -c %filename" to send the output to stdout, the parent. */ static void decomp_file(const gchar * cmd, const gchar * filename, gint fd) { if (dup2(fd, STDOUT_FILENO) < 0) { perror("dup2"); return; } if (execlp(cmd, cmd, "-c", filename, NULL) < 0) { perror("execlp"); return; } } static gboolean init_decompression(const gchar * filename, gint * fd, pid_t * pid_ptr) { /* *INDENT-OFF* */ static decompressor all_decomp[] = { { "bz2", "bunzip2" }, { "gz", "gunzip" }, { "z", "uncompress" }, { NULL, NULL } }; /* *INDENT-ON* */ gint filedes[2]; pid_t pid; decompressor *decomp; const gchar *ext; /* Find the appropriate decompressor. */ ext = get_extension(filename); if (ext == NULL) return FALSE; for (decomp = all_decomp; decomp->ext != NULL; decomp++) if (!g_ascii_strcasecmp(decomp->ext, ext)) break; if (decomp->ext == NULL) /* Decompressor not found. */ return FALSE; if (pipe(filedes) < 0) { perror("pipe"); return FALSE; } pid = fork(); if (pid < 0) { perror("fork"); return FALSE; } if (pid == 0) { /* Child */ close(filedes[0]); decomp_file(decomp->cmd, filename, filedes[1]); return FALSE; } /* Parent */ close(filedes[1]); *fd = filedes[0]; *pid_ptr = pid; return TRUE; } GdkPixbuf *load_compressed_pixbuf(const gchar * filename, GError ** error) { gint fd; pid_t pid; GdkPixbuf *pixbuf; if (init_decompression(filename, &fd, &pid) == FALSE) return NULL; pixbuf = read_image(fd, error); close(fd); waitpid(pid, NULL, 0); return pixbuf; } gint load_compressed_collection(const gchar * filename) { gint fd; pid_t pid; gint nb_inserted; FILE *file; if (init_decompression(filename, &fd, &pid) == FALSE) return 0; file = fdopen(fd, "r"); if (file == NULL) { perror(filename); kill(pid, SIGTERM); nb_inserted = 0; } else nb_inserted = load_dot_gliv_from_file(filename, file); fclose(file); waitpid(pid, NULL, 0); return nb_inserted; } gliv-1.9.7/src/transition.c0000644000076400007640000002205411465576131013100 0ustar gg/* * 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. * * See the COPYING file for license information. * * Guillaume Chazarain */ /***************************** * Transition between images * *****************************/ #include /* memcpy() */ #include /* printf(), puts() */ #include "gliv.h" #include "transition.h" #include "opengl.h" #include "matrix.h" #include "gliv-image.h" #include "rendering.h" #include "options.h" #include "loading.h" #include "messages.h" /* * Define as 1 to activate the framerate counter during transitions. * Set 0 as delay between steps to have a more accurate framerate. */ #define FPS_COUNTER 0 extern options_struct *options; extern GlivImage *current_image; extern GtkWidget *gl_widget; /* Whether we are executing a transition */ static gboolean in_transition = FALSE; static void clear(void) { glDisable(GL_DITHER); glDisable(GL_BLEND); glClear(GL_COLOR_BUFFER_BIT); glEnable(GL_BLEND); glEnable(GL_DITHER); } static void draw_image(GlivImage * im, gfloat * matrix, gfloat opacity) { GlivImage *old_image = current_image; gfloat old_matrix[8]; /* Backup the matrix */ matrix_cpy(old_matrix, NULL); /* Load the desired matrix */ matrix_cpy(NULL, matrix); glColor4f(1.0, 1.0, 1.0, opacity); current_image = im; draw_current_image(); /* Restore global parameters */ current_image = old_image; if (matrix) matrix_cpy(NULL, old_matrix); } /* res = big - small */ void diff_timeval(GTimeVal * res, GTimeVal * big, GTimeVal * small) { res->tv_sec = big->tv_sec - small->tv_sec; if (big->tv_usec >= small->tv_usec) res->tv_usec = big->tv_usec - small->tv_usec; else { res->tv_sec--; res->tv_usec = big->tv_usec + G_USEC_PER_SEC - small->tv_usec; } } static void transition_single_step(GdkGLDrawable * gldrawable, GlivImage * im1, gfloat * matrix1, GlivImage * im2, gfloat * matrix2, gfloat alpha) { clear(); draw_image(im1, matrix1, 1.0 - alpha); draw_image(im2, matrix2, alpha); gdk_gl_drawable_swap_buffers(gldrawable); gdk_gl_drawable_wait_gl(gldrawable); } /* * This is the transition used if both images lack an alpha channel and the * background color is black. * For the other cases, we build new images and use them in these conditions. */ static void transition_no_alpha_black(GlivImage * im1, gfloat * matrix1, GlivImage * im2, gfloat * matrix2) { gint steps = 0; GTimeVal now, transition_start; gint advance = 0; GdkGLDrawable *gldrawable = gtk_widget_get_gl_drawable(gl_widget); glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_DST_ALPHA); g_get_current_time(&transition_start); g_get_current_time(&now); for (;;) { gint delay = diff_timeval_us(&now, &transition_start); gfloat alpha = (gfloat) delay / (options->trans_time * 1000); if (alpha > 1.0) break; g_get_current_time(&now); transition_single_step(gldrawable, im1, matrix1, im2, matrix2, alpha); if (options->fps > 0) { if (get_fps_limiter_delay(&now) > 0) gtk_main_iteration_do(FALSE); delay = get_fps_limiter_delay(&now) + advance; if (delay > 0) g_usleep(delay); advance += get_fps_limiter_delay(&now); #if FPS_COUNTER printf("transition lag: %dus\n", -get_fps_limiter_delay(&now)); #endif } steps++; } #if FPS_COUNTER { gfloat usecs = (gfloat) diff_timeval_us(&now, &transition_start); printf("%dx%d -> %dx%d : %d frames in %f sec => %f fps\n", im1->width, im1->height, im2->width, im2->height, steps, usecs / G_USEC_PER_SEC, G_USEC_PER_SEC * steps / usecs); } #endif glColor4f(1.0, 1.0, 1.0, 1.0); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glDisable(GL_BLEND); } /* * If an image has an alpha channel or the background is not black, * we compose it with the background in order to get a new image without * an alpha channel which can be used with a black background. */ static GlivImage *grab_image(GlivImage * im, gfloat * matrix, gfloat ** new_mat, gboolean bg_is_black) { GlivImage *new_im; gpointer data; gint viewport[4], x, y, w, h; GdkPixbuf *pixbuf; gboolean old_mipmap; gboolean old_dither; *new_mat = new_matrix(); if (im->has_alpha == FALSE && bg_is_black) { /* This image was actually OK */ matrix_cpy(*new_mat, matrix); g_object_ref(im); return im; } clear(); /* OpenGL coordinates => X coordinates */ flip_matrix(*new_mat, TRUE); draw_image(im, matrix, 1.0); /* Area where we take the screenshot */ #if NO_OPENGL x = 0; y = 0; w = 640; h = 480; #else glGetIntegerv(GL_VIEWPORT, viewport); x = viewport[0]; y = viewport[1]; w = viewport[2]; h = viewport[3]; #endif /* Will receive the pixels */ data = g_new(guint8, w * h * 3); glReadPixels(x, y, w, h, GL_RGB, GL_UNSIGNED_BYTE, data); pixbuf = gdk_pixbuf_new_from_data(data, GDK_COLORSPACE_RGB, FALSE, 8, w, h, w * 3, (GdkPixbufDestroyNotify) g_free, NULL); #if 0 { static gint id = 0; gchar *base = g_path_get_basename(im->node->data); gchar *filename = g_strdup_printf("%s_%d.png", base, id++); g_free(base); gdk_pixbuf_save(pixbuf, filename, "png", NULL, NULL); g_free(filename); } #endif /* We don't need mipmaps and dithering for this image */ old_mipmap = options->mipmap; old_dither = options->dither; options->mipmap = FALSE; options->dither = FALSE; new_im = make_gliv_image(pixbuf); options->mipmap = old_mipmap; options->dither = old_dither; return new_im; } void transition(GlivImage * im) { GdkColor black; gboolean bg_is_black = FALSE; gchar *text; gchar *base1, *base2; gfloat *old_matrix = new_matrix(); gfloat *new_matrix = get_matrix_for_image(im); in_transition = TRUE; matrix_cpy(old_matrix, NULL); base1 = g_path_get_basename(current_image->node->data); base2 = g_path_get_basename(im->node->data); text = g_strdup_printf(_("transition from `%s' to `%s'"), base1, base2); g_free(base1); g_free(base2); set_loading(text); g_free(text); black.red = black.green = black.blue = 0; if (!gdk_colormap_alloc_color(gdk_colormap_get_system(), &black, TRUE, TRUE) == FALSE) black.pixel = 0; bg_is_black = gdk_color_equal(&options->bg_col, &black); gdk_colormap_free_colors(gdk_colormap_get_system(), &black, 1); if (current_image->has_alpha == FALSE && im->has_alpha == FALSE && bg_is_black) { /* Easy case */ transition_no_alpha_black(current_image, old_matrix, im, new_matrix); } else { GdkColor orig_bg_color; GlivImage *im1 = NULL, *im2 = NULL; gfloat *matrix1, *matrix2; printf("Transition slow case: (cur: %s, im: %s, bg: %s)\n", current_image->has_alpha ? "alpha" : "no alpha", im->has_alpha ? "alpha" : "no alpha", bg_is_black ? "black" : "not black"); if (options->one_image) { puts("The \"Only one image mode\" is incompatible " "with slow transitions"); goto out; } im1 = grab_image(current_image, old_matrix, &matrix1, bg_is_black); im2 = grab_image(im, new_matrix, &matrix2, bg_is_black); /* Black background */ memcpy(&orig_bg_color, &options->bg_col, sizeof(GdkColor)); memcpy(&options->bg_col, &black, sizeof(GdkColor)); update_bg_color(); transition_no_alpha_black(im1, matrix1, im2, matrix2); /* Restore the background */ memcpy(&options->bg_col, &orig_bg_color, sizeof(GdkColor)); update_bg_color(); g_free(matrix1); g_free(matrix2); g_object_unref(im1); g_object_unref(im2); } out: g_free(old_matrix); g_free(new_matrix); in_transition = FALSE; set_loading(NULL); } gboolean is_in_transition(void) { return in_transition; } gliv-1.9.7/src/main.c0000644000076400007640000002212311465576131011627 0ustar gg/* * 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. * * See the COPYING file for license information. * * Guillaume Chazarain */ /******************** * Main source file * ********************/ #include /* close(), dup(), dup2(), STDERR_FILENO */ #include /* exit() */ #include "gliv.h" #include "main.h" #include "cmdline.h" #include "options.h" #include "gliv-image.h" #include "rcfile.h" #include "files_list.h" #include "messages.h" #include "windows.h" #include "ipc.h" #include "collection.h" #include "opengl.h" #include "mnemonics.h" rt_struct *rt; options_struct *options; GlivImage *current_image = NULL; GtkWidget *gl_widget; GtkMenuBar *menu_bar; static gboolean option_add_all = FALSE; /* May exit :) */ static gboolean get_on_off(const gchar * str) { if (str == NULL) return TRUE; while (*str == '=' || *str == ' ') str++; if (g_str_equal(str, "on")) return TRUE; if (g_str_equal(str, "off")) return FALSE; g_printerr(_("Command line flags should be on or off, not %s\n"), str); quit(1); } typedef struct { gboolean given; gboolean *flag; gchar *str; gboolean not; } ggo_flag; typedef struct { gboolean given; gint *opt_val; gint value; gint minimum; } ggo_int; static void fill_options(struct gengetopt_args_info *ggo) { ggo_flag flags[] = { /* *INDENT-OFF* */ { ggo->recursive_given, &options->recursive, ggo->recursive_arg, 0 }, { ggo->force_load_given, &options->force, ggo->force_load_arg, 0 }, { ggo->build_menus_given, &options->build_menus, ggo->build_menus_arg, 1 }, { ggo->slide_show_given, &options->start_show, ggo->slide_show_arg, 0 }, { ggo->add_all_given, &option_add_all, ggo->add_all_arg, 0 }, { FALSE, NULL, NULL, 0 } /* *INDENT-ON* */ }; ggo_int ints[] = { /* *INDENT-OFF* */ { FALSE, NULL, FALSE, 0 } /* *INDENT-ON* */ }; ggo_flag *flag; ggo_int *opt_int; for (flag = flags; flag->flag != NULL; flag++) if (flag->given) { *flag->flag = get_on_off(flag->str); if (flag->not) *flag->flag ^= TRUE; } for (opt_int = ints; opt_int->opt_val != NULL; opt_int++) if (opt_int->given && opt_int->value >= opt_int->minimum) *opt_int->opt_val = opt_int->value; } #define FLAG_ON(flag) (flag##_given && get_on_off(flag##_arg)) /* * We temporarily close stderr because unknown and gtk arguments are handled * afterwards. */ static struct gengetopt_args_info *parse_cmdline(gint argc, gchar ** argv, gboolean silent) { struct gengetopt_args_info *ggo = g_new(struct gengetopt_args_info, 1); gint fd = -1; if (silent) { /* Silence stderr. */ fd = dup(STDERR_FILENO); close(STDERR_FILENO); } if (cmdline_parser(argc, argv, ggo) != 0) { cmdline_parser_free(ggo); g_free(ggo); ggo = NULL; } if (silent) { /* Restore stderr. */ dup2(fd, STDERR_FILENO); close(fd); } return ggo; } typedef enum { INIT_BAD_CMDLINE, INIT_OK, INIT_NO_IMAGES } init_res; static init_res init_args(gint argc, gchar ** argv, gboolean gtk_initialized) { options_struct *rc_file; gint nb_inserted = 0; struct gengetopt_args_info *ggo = parse_cmdline(argc, argv, !gtk_initialized); init_res res = INIT_BAD_CMDLINE; if (ggo == NULL) return res; if (!ggo->collection_given && !FLAG_ON(ggo->client) && !FLAG_ON(ggo->client_clear) && !gtk_initialized) /* * We want a "graphical" gliv, so init it after gtk * to be able to show the progress dialog when loading collections. */ goto end; res = INIT_OK; /* Command line (some flags only). */ if (FLAG_ON(ggo->sort) && FLAG_ON(ggo->shuffle)) { g_printerr(_("Cannot sort and shuffle at the same time\n")); quit(1); } /* Configuration file. */ rc_file = load_rc(!ggo->glivrc_given, ggo->glivrc_arg); options = g_memdup(rc_file, sizeof(options_struct)); /* Command line (remaining options). */ fill_options(ggo); if (gtk_initialized) { /* We use the (rt == NULL) check to see if gtk is initialized or not */ rt = g_new(rt_struct, 1); rt->cursor_hidden = FALSE; rt->help = FALSE; rt->alpha_checks_changed = TRUE; } if (FLAG_ON(ggo->null)) nb_inserted = init_from_null_filenames(FLAG_ON(ggo->sort), FLAG_ON(ggo->shuffle), option_add_all); if (ggo->inputs_num > 0) { /* There are filenames on the command line. */ nb_inserted += init_list(ggo->inputs, ggo->inputs_num, FLAG_ON(ggo->sort), FLAG_ON(ggo->shuffle), option_add_all); if (nb_inserted == 0 && gtk_initialized) res = INIT_NO_IMAGES; } if (ggo->collection_given) { options->save_quit = FALSE; quit(serialize_collection_nogui(ggo->collection_arg)); } if (FLAG_ON(ggo->client) || FLAG_ON(ggo->client_clear)) { options->save_quit = FALSE; if (FLAG_ON(ggo->client) && FLAG_ON(ggo->client_clear)) { g_printerr(_("The --client and --client-clear command line options" " are mutually exclusive\n")); quit(1); } if (connect_server(FLAG_ON(ggo->client_clear))) /* Successfully reused a GLiv window. */ quit(0); } options->initial_geometry = g_strdup(ggo->geometry_arg); end: cmdline_parser_free(ggo); g_free(ggo); return res; } G_GNUC_NORETURN void quit(gint code) { if (options != NULL && options->save_quit) save_rc(options); exit(code); } static GtkCheckButton *get_stop_confirm_button(void) { GtkCheckButton *confirm; gchar *message; if (options->save_quit) message = g_strdup(_("Do not ask again")); else message = g_strconcat(_("Do not ask again"), " (", _("Options will be saved"), ")", NULL); confirm = GTK_CHECK_BUTTON(gtk_check_button_new_with_mnemonic (add_mnemonic(message))); gtk_widget_show_all(GTK_WIDGET(confirm)); g_free(message); return confirm; } gboolean gui_quit(void) { GtkMessageDialog *dialog; GtkCheckButton *stop_confirm; gchar *msg; gint response; if (options->confirm_quit == FALSE) quit(0); msg = _("Do you really want to quit GLiv?"); dialog = GTK_MESSAGE_DIALOG(gtk_message_dialog_new(NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, "%s", msg)); stop_confirm = get_stop_confirm_button(); gtk_container_add(GTK_CONTAINER(GTK_DIALOG(dialog)->vbox), GTK_WIDGET(stop_confirm)); gtk_dialog_set_default_response(GTK_DIALOG(dialog), GTK_RESPONSE_YES); response = run_modal_dialog(GTK_DIALOG(dialog)); if (response == GTK_RESPONSE_YES) { options->confirm_quit = !gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(stop_confirm)); if (!options->confirm_quit && !options->save_quit) save_rc(options); quit(0); } gtk_widget_destroy(GTK_WIDGET(dialog)); return TRUE; } gint main(gint argc, gchar ** argv) { init_res res; /* i18n */ #ifdef ENABLE_NLS gtk_set_locale(); #ifdef LOCALEDIR bindtextdomain(PACKAGE, LOCALEDIR); #endif textdomain(PACKAGE); bind_textdomain_codeset(PACKAGE, "UTF-8"); #endif g_thread_init(NULL); g_type_init(); res = init_args(argc, argv, FALSE); gtk_init(&argc, &argv); gtk_gl_init(&argc, &argv); if (res == INIT_BAD_CMDLINE) /* Now that GTK may have removed some arguments */ res = init_args(argc, argv, TRUE); switch (res) { case INIT_NO_IMAGES: DIALOG_MSG(_("No image found")); break; case INIT_BAD_CMDLINE: quit(1); break; case INIT_OK: /* OK */ break; } create_windows(); start_server(); gtk_main(); return 0; } gliv-1.9.7/src/str_utils.c0000644000076400007640000001757511465576131012752 0ustar gg/* * 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. * * See the COPYING file for license information. * * Guillaume Chazarain */ /******************************************* * UTF-8, filenames and mnemonics handling * *******************************************/ #include /* strstr(), strchr(), memcpy(), strcpy() */ #include /* getenv() */ #include "gliv.h" #include "str_utils.h" /* If you can't stand string manipulations in C, just don't look there */ gint common_prefix_length(const gchar * str1, const gchar * str2) { const gchar *orig_str1 = str1; if (NOT_ALIGNED(str1) == NOT_ALIGNED(str2)) { /* We can align both pointers. */ while (NOT_ALIGNED(str1) && *str1 == *str2 && *str1 != '\0') { str1++; str2++; } if (*str1 != '\0' && *str1 == *str2) { /* Both pointers are now aligned. */ gulong *long_ptr1 = (gulong *) str1, *long_ptr2 = (gulong *) str2; /* Skip identical blocks in the paths. */ while (!HAS_ZERO(*long_ptr1) && *long_ptr1 == *long_ptr2) { long_ptr1++; long_ptr2++; } str1 = (const gchar *) long_ptr1; str2 = (const gchar *) long_ptr2; } } /* Skip identical characters in the paths. */ while (*str1 != '\0' && *str1 == *str2) { str1++; str2++; } return str1 - orig_str1; } #define CHECK_BYTE(ptr) \ do { \ if (*ptr == '\0') \ return TRUE; \ \ if (*ptr >> 7) \ return FALSE; \ \ ptr++; \ } while (0) static gboolean str_is_ascii(const gchar * str) { gulong *long_ptr, long_int; for (;;) { if (*str == '\0') return TRUE; if (*str >> 7) return FALSE; if (!NOT_ALIGNED(str)) /* Aligned. */ break; str++; } long_ptr = (gulong *) str; for (;;) { long_int = *long_ptr; if (HAS_ZERO(long_int)) { /* A '\0' has been detected. */ const gchar *char_ptr = (const gchar *) long_ptr; CHECK_BYTE(char_ptr); CHECK_BYTE(char_ptr); CHECK_BYTE(char_ptr); CHECK_BYTE(char_ptr); if (sizeof(gulong) > 4) { /* 64-bit */ CHECK_BYTE(char_ptr); CHECK_BYTE(char_ptr); CHECK_BYTE(char_ptr); CHECK_BYTE(char_ptr); } } else if (long_int & LONG_MASK(0x80808080L, 0x8080808080808080L)) return FALSE; long_ptr++; } return TRUE; } /* From glib. */ static gboolean have_broken_filenames(void) { static gboolean initialized = FALSE; static gboolean broken; if (initialized) return broken; broken = getenv("G_BROKEN_FILENAMES") != NULL; initialized = TRUE; return broken; } /* The returned string should not be freed. */ const gchar *filename_to_utf8(const gchar * str) { static GStaticPrivate result_key = G_STATIC_PRIVATE_INIT; gchar **result; GError *err = NULL; if (!have_broken_filenames() || g_get_charset(NULL) || str_is_ascii(str)) return str; result = g_static_private_get(&result_key); if (result == NULL) { /* First time in this thread. */ result = g_new(gchar *, 1); g_static_private_set(&result_key, result, g_free); *result = NULL; } g_free(*result); *result = g_filename_to_utf8(str, -1, NULL, NULL, &err); if (err != NULL) { g_printerr("%s\n", err->message); g_error_free(err); g_free(*result); *result = NULL; return str; } return *result; } static gboolean starts_dotslash(const gchar * str) { return str[0] == '.' && str[1] == '/'; } static gboolean is_clean(const gchar * filename) { if (filename[0] != '/' && !starts_dotslash(filename)) return FALSE; return strstr(filename, "//") == NULL && strstr(filename, "/./") == NULL; } static gint count_errors(gchar * str, gint * len) { gint count = 0; gchar *prev_slash = str, *next_slash = NULL; /* * "path1/./path2" is replaced with "path1///path2". * "./" and "//" are counted. */ while ((next_slash = strchr(prev_slash + !!next_slash, '/')) != NULL) { *len += next_slash - prev_slash; switch (next_slash[1]) { case '.': if (next_slash[2] == '/') { next_slash[1] = '/'; count++; } break; case '/': count++; } prev_slash = next_slash; } *len += strlen(prev_slash); return count; } static gchar *remove_double_slash(gchar * str, gint new_len) { gchar *new, *new_ptr; gchar *prev_slash = str, *next_slash = NULL; if (str[0] == '/' || starts_dotslash(str)) { new = g_new(gchar, new_len); new_ptr = new; } else { new = g_new(gchar, new_len + 2); new[0] = '.'; new[1] = '/'; new_ptr = new + 2; } while ((next_slash = strchr(prev_slash + !!next_slash, '/')) != NULL) { memcpy(new_ptr, prev_slash, next_slash - prev_slash); new_ptr += next_slash - prev_slash; while (next_slash[1] == '/') next_slash++; prev_slash = next_slash; } strcpy(new_ptr, prev_slash); return new; } gchar *clean_filename(const gchar * filename) { gchar *orig_copy, *copy, *new; gint count = 0, len = 0; gboolean absolute, finished = FALSE; if (is_clean(filename)) return g_strdup(filename); /* We work on a copy as we may modify it. */ orig_copy = copy = g_strdup(filename); absolute = (copy[0] == '/'); while (finished == FALSE) { switch (copy[0]) { case '.': if (copy[1] == '/') copy += 2; else finished = TRUE; break; case '/': copy++; break; default: finished = TRUE; } } if (absolute) /* We keep the last leading '/' for absolute filenames. */ copy--; else if (copy - orig_copy >= 2) { /* We add a './' for relative filenames. */ copy -= 2; copy[0] = '.'; copy[1] = '/'; } /* Count the '//' and '/./'. */ count = count_errors(copy, &len); if (count == 0) { /* The filename was clean. */ if (absolute) { if (orig_copy != copy) /* The filename started with "//". */ g_memmove(orig_copy, copy, len + 1); return orig_copy; } if (starts_dotslash(copy)) { if (orig_copy != copy) g_memmove(orig_copy, copy, len + 1); new = orig_copy; } else { /* The relative filename just lacked the "./" in the beginning. */ new = g_strconcat("./", copy, NULL); g_free(orig_copy); } return new; } /* We now have to remove the "//". */ new = remove_double_slash(copy, len - count + 1); g_free(orig_copy); return new; } gliv-1.9.7/src/ipc.c0000644000076400007640000002471111465576131011463 0ustar gg/* * 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. * * See the COPYING file for license information. * * Guillaume Chazarain */ /************************************************ * IPC between gliv processes to reuse a window * ************************************************/ #include /* unlink(), close(), write() */ #include /* struct sockaddr */ #include /* socket(), ... */ #include /* AF_LOCAL */ #include /* strncpy() */ #include /* perror(), fread(), stdin */ #include #include "gliv.h" #include "ipc.h" #include "files_list.h" #include "next_image.h" extern GlivImage *current_image; /* The current server. */ static guint watch_id; static GIOChannel *server = NULL; /* Transform a file descriptor into a GIOChannel. */ static GIOChannel *make_channel(gint fd) { GIOChannel *channel; GError *err = NULL; channel = g_io_channel_unix_new(fd); g_io_channel_set_close_on_unref(channel, TRUE); g_io_channel_set_encoding(channel, NULL, &err); if (err != NULL) { g_printerr("%s\n", err->message); g_error_free(err); g_io_channel_unref(channel); channel = NULL; } return channel; } /*** Where do we keep this socket? ***/ static gchar *get_socket_name(void) { gchar *user_name, *repl, *res; repl = user_name = g_strdup(g_get_user_name()); /* Do people have '/' in their user names? */ while ((repl = strchr(repl, '/')) != NULL) *repl = '_'; res = g_strdup_printf("%s/.19830128gliv_%s", g_get_tmp_dir(), user_name); g_free(user_name); return res; } /*** State encoding by the client for the server. ***/ static gboolean should_clear_list(gchar command) { return command == 'c'; } static gchar make_command(gboolean clear_list) { return clear_list ? 'c' : 'C'; } /* * We send the working directory in order to deal with relative filenames. */ static gboolean write_param(GIOChannel * channel, gboolean clear_list) { gchar *current_dir; gint length; gboolean res = TRUE; gsize bytes = 0; GError *err = NULL; gchar command = make_command(clear_list); g_io_channel_write_chars(channel, &command, 1, &bytes, &err); if (bytes != 1) { if (err != NULL) { g_printerr("%s\n", err->message); g_error_free(err); } return FALSE; } current_dir = g_get_current_dir(); length = strlen(current_dir) + 1; g_io_channel_write_chars(channel, current_dir, length, &bytes, &err); if (bytes != length) { res = FALSE; if (err != NULL) { g_printerr("%s\n", err->message); g_error_free(err); } } g_free(current_dir); return res; } /* * We read what the function above sent. If the server and the client are * running in the same directory we put NULL in *client_dir. */ static gboolean read_param(GIOChannel * channel, gchar ** client_dir, gboolean * clear_list) { size_t size = 0; gchar *server_dir; struct stat client_stat, server_stat; GError *err = NULL; gchar command; g_io_channel_read_chars(channel, &command, 1, &size, &err); if (size != 1) { if (err != NULL) { g_printerr("%s\n", err->message); g_error_free(err); } return FALSE; } *clear_list = should_clear_list(command); *client_dir = NULL; g_io_channel_read_line(channel, client_dir, &size, NULL, &err); if (err != NULL) { g_printerr("%s\n", err->message); g_error_free(err); return FALSE; } server_dir = g_get_current_dir(); if (stat(*client_dir, &client_stat) < 0 || stat(server_dir, &server_stat) < 0) { g_free(server_dir); g_free(*client_dir); return FALSE; } if (client_stat.st_dev == server_stat.st_dev && client_stat.st_ino == server_stat.st_ino) { /* * The client and server are in the same directory, we can use relative * filenames without problems. */ g_free(*client_dir); *client_dir = NULL; } g_free(server_dir); return TRUE; } /*** Server ***/ static gint create_server_socket(void) { struct sockaddr_un name; gint sock; gchar *filename; size_t size; sock = socket(PF_LOCAL, SOCK_STREAM, 0); if (sock < 0) { perror("socket"); return -1; } name.sun_family = AF_LOCAL; filename = get_socket_name(); strncpy(name.sun_path, filename, sizeof(name.sun_path) - 1); name.sun_path[sizeof(name.sun_path) - 1] = '\0'; /* The latest launched gliv is the server. */ unlink(filename); g_free(filename); size = SUN_LEN(&name); if (bind(sock, (struct sockaddr *) &name, size) < 0) { perror("bind"); close(sock); sock = -1; } else if (listen(sock, 5) < 0) { perror("listen"); close(sock); sock = -1; } return sock; } /* Put the '\0' separated strings in an array. */ static gchar **rebuild_args_array(gchar * data, gint length, gint * count, gchar * client_dir) { gint i; gchar *last = data + length, *ptr = data; gchar **tab; /* How many strings? */ *count = 0; while (ptr < last) { ptr += strlen(ptr) + 1; (*count)++; } /* Cut them. */ tab = g_new(gchar *, *count); for (i = 0; i < *count; i++) { if (client_dir == NULL || data[0] == '/') tab[i] = g_strdup(data); else tab[i] = g_build_filename(client_dir, data, NULL); data += strlen(data) + 1; } return tab; } /* Add the filenames and open the next image. */ static void process_data(gchar * data, gint length, gchar * client_dir, gboolean clear_list) { gint i, count, nb_inserted; gchar **tab; GList *before_inserted = NULL; GList *after_inserted = NULL; tab = rebuild_args_array(data, length, &count, client_dir); if (clear_list) { before_inserted = current_image ? current_image->node : get_list_head(); after_inserted = before_inserted ? before_inserted->next : NULL; } nb_inserted = insert_after_current(tab, count, TRUE, FALSE); while (before_inserted) { add_obsolete_node(before_inserted); before_inserted = before_inserted->prev; } while (after_inserted) { add_obsolete_node(after_inserted); after_inserted = after_inserted->next; } new_images(nb_inserted); for (i = 0; i < count; i++) g_free(tab[i]); g_free(tab); } /* Called when there is something to read. */ static gboolean handle_connect(GIOChannel * source, GIOCondition unused1, gpointer unused2) { gchar *data; gsize length = 0; gint fd; GError *err = NULL; GIOChannel *channel; gchar *client_dir; gboolean clear_list; fd = accept(g_io_channel_unix_get_fd(source), NULL, NULL); if (fd < 0) { perror("accept"); return TRUE; } channel = make_channel(fd); if (channel == NULL) return TRUE; /* Fill the param. */ if (!read_param(channel, &client_dir, &clear_list)) { g_io_channel_unref(channel); return TRUE; } /* Read the filenames. */ g_io_channel_read_to_end(channel, &data, &length, &err); if (err != NULL) { g_printerr("%s\n", err->message); g_error_free(err); g_io_channel_unref(channel); return TRUE; } process_data(data, length, client_dir, clear_list); g_io_channel_unref(channel); return TRUE; } gboolean start_server(void) { gint socket; GIOChannel *channel; socket = create_server_socket(); if (socket < 0) return FALSE; channel = make_channel(socket); if (channel == NULL) return FALSE; /* Remove the previous wait. */ if (server != NULL) { g_source_remove(watch_id); g_io_channel_unref(server); } /* Let GTK+ inform us about clients. */ server = channel; watch_id = g_io_add_watch(channel, G_IO_IN, (GIOFunc) handle_connect, NULL); return FALSE; } /*** Client ***/ static gint create_client_socket(void) { struct sockaddr_un name; gint sock; gchar *filename; size_t size; sock = socket(PF_LOCAL, SOCK_STREAM, 0); if (sock < 0) { perror("socket"); return -1; } name.sun_family = AF_LOCAL; filename = get_socket_name(); strncpy(name.sun_path, filename, sizeof(name.sun_path) - 1); name.sun_path[sizeof(name.sun_path) - 1] = '\0'; g_free(filename); size = SUN_LEN(&name); if (connect(sock, (struct sockaddr *) &name, size) < 0) { perror("connect"); close(sock); sock = -1; } return sock; } gboolean connect_server(gboolean clear_list) { gboolean ret = TRUE; gint fd; GIOChannel *channel; GList *list; fd = create_client_socket(); if (fd < 0) return FALSE; channel = make_channel(fd); if (channel == NULL) goto out; /* Send our current directory. */ if (!write_param(channel, clear_list)) { g_io_channel_unref(channel); ret = FALSE; goto out; } /* Send all the filenames with '\0' between them. */ for (list = get_list_head(); list != NULL; list = list->next) { gsize size; gint length = strlen(list->data) + 1; GError *err = NULL; g_io_channel_write_chars(channel, list->data, length, &size, &err); if (err != NULL) { g_printerr("%s\n", err->message); g_error_free(err); g_io_channel_unref(channel); goto out; } } g_io_channel_unref(channel); out: return ret; } gliv-1.9.7/src/timestamp.c0000644000076400007640000000257711465576131012721 0ustar gg/* * 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. * * See the COPYING file for license information. * * Guillaume Chazarain */ /******************************************** * Timestamps for important data structures * ********************************************/ #include "gliv.h" #include "timestamp.h" /* By maintaining our clock we have an instruction level precision. */ static DECLARE_TIMESTAMP(global_clock); G_LOCK_DEFINE_STATIC(global_clock); void touch(timestamp_t * ts) { G_LOCK(global_clock); *ts = ++global_clock; G_UNLOCK(global_clock); } void reset_timestamp(timestamp_t * ts) { *ts = 0; } gboolean up_to_date(timestamp_t ts, timestamp_t req) { return req && ts > req; } gliv-1.9.7/src/scrollbars.c0000644000076400007640000001015511465576131013053 0ustar gg/* * 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. * * See the COPYING file for license information. * * Guillaume Chazarain */ /****************************************** * The vertical and horizontal scrollbars * ******************************************/ #include "gliv.h" #include "scrollbars.h" #include "options.h" #include "gliv-image.h" #include "windows.h" #include "matrix.h" #include "params.h" #include "rendering.h" extern rt_struct *rt; extern options_struct *options; extern GlivImage *current_image; /* Horizontal Scrollbar. */ static GtkHScrollbar *hscroll; /* Vertical Scrollbar. */ static GtkVScrollbar *vscroll; gboolean toggle_scrollbars(void) { GtkWidget *widgets[2]; widgets[0] = GTK_WIDGET(hscroll); widgets[1] = GTK_WIDGET(vscroll); if (toggle_widgets(widgets, 2, &options->scrollbars) && options->scrollbars) update_scrollbars(); return FALSE; } static void changed_scrollbars(void) { gtk_adjustment_changed(gtk_range_get_adjustment(GTK_RANGE(hscroll))); gtk_adjustment_changed(gtk_range_get_adjustment(GTK_RANGE(vscroll))); } /* Update a given scrollbar. */ static void update_scroll(GtkScrollbar * scroll, gfloat min, gfloat max, gfloat dim) { GtkAdjustment *adj; gboolean update_needed = FALSE; gfloat previous; adj = gtk_range_get_adjustment(GTK_RANGE(scroll)); /* Smallest length containing the image and the window = window U image. */ previous = adj->lower; adj->lower = MIN(min, 0.0); update_needed = update_needed || !float_equal(previous, adj->lower); previous = adj->upper; adj->upper = MAX(max, dim); update_needed = update_needed || !float_equal(previous, adj->upper); /* Window size. */ adj->page_size = dim; adj->step_increment = MOVE_OFFSET; adj->page_increment = dim; /* The offset is actually computed with adj->lower and adj->upper. */ adj->value = 0.0; if (update_needed) do_later(G_PRIORITY_LOW, changed_scrollbars); } /* Update both scrollbars. */ void update_scrollbars(void) { gfloat min_x, max_x, min_y, max_y; if (current_image == NULL || options->scrollbars == FALSE) return; get_matrix_bounding_box(&min_x, &max_x, &min_y, &max_y); update_scroll(GTK_SCROLLBAR(hscroll), min_x, max_x, (gfloat) rt->wid_size->width); update_scroll(GTK_SCROLLBAR(vscroll), min_y, max_y, (gfloat) rt->wid_size->height); } static gboolean scroll_val(GtkRange * range) { gfloat offset; offset = -1.0 * gtk_range_get_value(range); if (range == GTK_RANGE(hscroll)) matrix_move(offset, 0.0); else /* range == GTK_RANGE(vscroll) */ matrix_move(0.0, offset); refresh(REFRESH_BURST | APPEND_HISTORY); update_scrollbars(); return FALSE; } /* Called during the initialization to build the two scrollbars. */ GtkWidget *get_new_scrollbar(gboolean horizontal) { GtkRange *range; if (horizontal) { range = GTK_RANGE(gtk_hscrollbar_new(NULL)); hscroll = GTK_HSCROLLBAR(range); } else { range = GTK_RANGE(gtk_vscrollbar_new(NULL)); vscroll = GTK_VSCROLLBAR(range); } gtk_range_set_update_policy(range, GTK_UPDATE_CONTINUOUS); g_signal_connect(range, "value-changed", G_CALLBACK(scroll_val), NULL); return GTK_WIDGET(range); } void hide_scrollbars(void) { gtk_widget_hide(GTK_WIDGET(hscroll)); gtk_widget_hide(GTK_WIDGET(vscroll)); } gliv-1.9.7/src/options.c0000644000076400007640000001641511465576131012405 0ustar gg/* * 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. * * See the COPYING file for license information. * * Guillaume Chazarain */ /***************************** * User configurable options * *****************************/ #include /* memcmp() */ #include /* GDK_Escape, GDK_c, GDK_C, GDK_o, GDK_O */ #include "gliv.h" #include "options.h" #include "glade_options.h" #include "gliv-image.h" #include "gl_widget.h" #include "history.h" #include "windows.h" #include "matrix.h" #include "messages.h" #include "rendering.h" #include "scrollbars.h" #include "next_image.h" #include "rcfile.h" #include "mnemonics.h" #include "images_menus.h" extern rt_struct *rt; extern options_struct *options; extern GlivImage *current_image; extern GtkWidget *gl_widget; /* Filled by the dialog. */ static options_struct *new_options; static void toggle_delay(void) { if (options->delay == 0) /* Enable. */ gtk_widget_add_events(gl_widget, GDK_POINTER_MOTION_MASK); options->delay = new_options->delay; schedule_hide_cursor(); } static void toggle_history(void) { options->history_size = new_options->history_size; clean_history(); } static void apply(void) { gint what = 0; gboolean bg_color_changed; if (options->fullscreen != new_options->fullscreen) toggle_fullscreen(new_options->fullscreen); if ((options->maximize == FALSE && new_options->maximize) || (options->scaledown == FALSE && new_options->scaledown)) { options->maximize = new_options->maximize; options->scaledown = new_options->scaledown; matrix_set_max_zoom(-1, -1, TRUE); what |= REFRESH_IMAGE | REFRESH_STATUS | APPEND_HISTORY; } if (options->menu_bar != new_options->menu_bar) toggle_menu_bar(); if (options->status_bar != new_options->status_bar) toggle_status_bar(); if (options->scrollbars != new_options->scrollbars) toggle_scrollbars(); if (options->dither != new_options->dither || options->mipmap != new_options->mipmap) { options->dither = new_options->dither; options->mipmap = new_options->mipmap; reload_images(); what |= REFRESH_IMAGE; } if (options->one_image == FALSE && new_options->one_image) unload_images(); if (options->delay != new_options->delay) toggle_delay(); if (options->history_size != new_options->history_size) toggle_history(); if (options->duration != new_options->duration) if (slide_show_started()) { options->duration = new_options->duration; start_slide_show(); } if (options->filtering != new_options->filtering) what |= REFRESH_IMAGE; if (options->thumbnails != new_options->thumbnails || options->thumb_width != new_options->thumb_width || options->thumb_height != new_options->thumb_height || options->mnemonics != new_options->mnemonics) obsolete_menus(); bg_color_changed = !gdk_color_equal(&options->bg_col, &new_options->bg_col); if (!gdk_color_equal(&options->alpha1, &new_options->alpha1) || !gdk_color_equal(&options->alpha2, &new_options->alpha2)) { rt->alpha_checks_changed = TRUE; if (current_image != NULL && current_image->has_alpha) what |= REFRESH_IMAGE; } g_free(options); options = new_options; if (bg_color_changed) { update_bg_color(); what |= REFRESH_IMAGE; } refresh(what); } /* GtkColorButton */ static void add_color_button(GtkWidget * color_button, GdkColor * col) { gtk_color_button_set_color(GTK_COLOR_BUTTON(color_button), col); g_signal_connect(color_button, "color-set", G_CALLBACK(gtk_color_button_get_color), col); } /* GtkSpinButton */ static gboolean value_changed(GtkAdjustment * adj, gint * val) { *val = (gint) gtk_adjustment_get_value(adj); return TRUE; } static void add_spin_button(GtkWidget * button, gint * value) { GtkAdjustment *adj; adj = gtk_spin_button_get_adjustment(GTK_SPIN_BUTTON(button)); gtk_adjustment_set_value(adj, (gdouble) * value); g_signal_connect(adj, "value-changed", G_CALLBACK(value_changed), value); } /* GtkCheckButton */ static gboolean toggled_button(GtkToggleButton * button, gboolean * bool) { *bool = gtk_toggle_button_get_active(button); return TRUE; } static void add_check_button(GtkWidget * button, gboolean * value) { gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), *value); g_signal_connect(button, "toggled", G_CALLBACK(toggled_button), value); } /* GtkComboBox */ static void on_initial_position_changed(GtkComboBox * initial_position) { new_options->initial_pos = gtk_combo_box_get_active(initial_position); } static void on_initial_position_realize(GtkComboBox * initial_position) { gtk_combo_box_set_active(initial_position, options->initial_pos); } /* Save Options */ static gboolean on_save_now_clicked(void) { save_rc(new_options); return FALSE; } static gboolean on_read_config_realize(GtkLabel * widget) { const gchar *filename = get_read_config_file(); gchar *text; if (filename == NULL) filename = _("NONE"); text = g_strdup_printf(_("This configuration file has been read: %s"), filename); gtk_label_set_text(widget, text); g_free(text); return FALSE; } static gboolean on_write_config_realize(GtkLabel * widget) { const gchar *filename = get_write_config_file(); gchar *text; if (filename == NULL) filename = _("NONE"); text = g_strdup_printf(_("This configuration file will be written: %s"), filename); gtk_label_set_text(widget, text); g_free(text); return FALSE; } /* Transitions */ static gboolean on_transitions_toggled(GtkWidget * transition_box, GtkToggleButton * button) { gboolean activated = gtk_toggle_button_get_active(button); gtk_widget_set_sensitive(transition_box, activated); return FALSE; } static gboolean on_transition_box_realize(GtkWidget * transition_box) { gtk_widget_set_sensitive(transition_box, options->transitions); return FALSE; } #include "glade_options.c" gboolean show_options(void) { gint response; GtkDialog *options_dialog; new_options = g_memdup(options, sizeof(options_struct)); options_dialog = GTK_DIALOG(create_options_dialog()); response = run_modal_dialog(options_dialog); gtk_widget_destroy(GTK_WIDGET(options_dialog)); if (response == GTK_RESPONSE_OK) apply(); return FALSE; } gliv-1.9.7/src/foreach_file.c0000644000076400007640000000725311465576131013320 0ustar gg/* * 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. * * See the COPYING file for license information. * * Guillaume Chazarain */ /***************************************** * A simplified ftw(3), specific to GLiv * *****************************************/ #include /* struct stat, stat() */ #include /* struct dirent, *dir() */ #include /* perror() */ #include "gliv.h" #include "foreach_file.h" #include "pathset.h" /* Push directories and handle files. */ static GSList *process_dir(GSList * stack, const gchar * dirname, foreach_file_func func, gint * res) { DIR *dir; struct dirent *dir_ent; struct stat st; gchar *name, *fullname; gboolean is_dir = FALSE, is_dir_known; dir = opendir(dirname); if (dir == NULL) { perror(dirname); return stack; } while ((dir_ent = readdir(dir)) != NULL) { name = dir_ent->d_name; if (name[0] == '.' && (name[1] == '\0' || (name[1] == '.' && name[2] == '\0'))) /* Skip "." and "..". */ continue; fullname = g_build_filename(dirname, name, NULL); is_dir_known = FALSE; #ifdef _DIRENT_HAVE_D_TYPE switch (dir_ent->d_type) { case DT_UNKNOWN: case DT_LNK: break; case DT_DIR: is_dir = TRUE; is_dir_known = TRUE; break; default: is_dir = FALSE; is_dir_known = TRUE; break; } #endif if (is_dir_known == FALSE && !stat(fullname, &st)) { is_dir = S_ISDIR(st.st_mode); is_dir_known = TRUE; } if (is_dir_known) { if (is_dir) /* A directory. */ stack = g_slist_prepend(stack, fullname); else { /* A file. */ *res += (*func) (fullname); g_free(fullname); } } } closedir(dir); return stack; } /* * We know that func is add_file_to_list and * we return the number of inserted files. */ gint foreach_file(const gchar * path, foreach_file_func func) { GSList *stack = NULL; gchar *current; struct pathset *set; struct stat st; gint res = 0; if (stat(path, &st) < 0) { /* The path is not usable. */ perror(path); return 0; } if (S_ISDIR(st.st_mode) == FALSE) /* The path is a file, not a directory. */ return (*func) (path); /* The path is a valid directory. */ stack = g_slist_prepend(stack, g_strdup(path)); /* push */ set = pathset_new(); while (stack) { current = stack->data; stack = g_slist_remove_link(stack, stack); /* pop */ if (!stat(current, &st) && pathset_add(set, current)) /* Not already scanned. */ stack = process_dir(stack, current, func, &res); g_free(current); } pathset_free(set); return res; } gliv-1.9.7/src/autogenerated0000644000076400007640000000037011465576131013311 0ustar ggcmdline.c formats.c glade_actions.c glade_image_nr.c glade_options.c gliv-image.c help_text.c include/all_cursors.h include/cmdline.h include/glade_actions.h include/glade_image_nr.h include/glade_options.h include/gliv-image.h include/gliv_logo.h gliv-1.9.7/src/rendering.c0000644000076400007640000002737611465576131012677 0ustar gg/* * 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. * * See the COPYING file for license information. * * Guillaume Chazarain */ /*********************** * Rendering functions * ***********************/ #include /* abs() */ #include "gliv.h" #include "rendering.h" #include "options.h" #include "gliv-image.h" #include "matrix.h" #include "params.h" #include "zoom_frame.h" #include "scrollbars.h" #include "textures.h" #include "files_list.h" #include "loading.h" #include "windows.h" #include "history.h" #include "next_image.h" #include "opengl.h" #include "transition.h" #include "images_menus.h" extern rt_struct *rt; extern options_struct *options; extern GlivImage *current_image; extern GtkWidget *gl_widget; static GTimeVal last_redraw_scheduled; static gint last_redraw_delay; static void set_filter(gint filter) { gint id; texture_map *map; /* * Only the textures in the first map change their filter, * since in the others maps the image is zoomed out. */ map = current_image->maps; for (id = 0; id < map->nb_tiles; id++) { glBindTexture(GL_TEXTURE_2D, map->tex_ids[id]); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, filter); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, filter); } } static gboolean is_filtering_enabled(void) { texture_map *map; gint filter; /* Only the first map changes its filter. */ map = current_image->maps; glBindTexture(GL_TEXTURE_2D, map->tex_ids[0]); glGetTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, &filter); return filter == GL_LINEAR; } static void call_lists(gboolean smooth, gint level) { gint id; texture_map *map; if (level == 0 && is_filtering_enabled() != smooth) set_filter(smooth ? GL_LINEAR : GL_NEAREST); map = current_image->maps + level; for (id = 0; id < map->nb_tiles; id++) if (matrix_tile_visible(map->tiles + id)) glCallList(map->list + id); } static void draw_checker(void) { static guint tex_id = 0; gint i; gfloat half_w, half_h; gboolean matrix_changed; glDisable(GL_DITHER); glClear(GL_COLOR_BUFFER_BIT); matrix_changed = get_matrix_has_changed(); if (rt->alpha_checks_changed) { gushort texture[12]; gushort alpha1[3] = { options->alpha1.red, options->alpha1.green, options->alpha1.blue }; gushort alpha2[3] = { options->alpha2.red, options->alpha2.green, options->alpha2.blue }; if (tex_id == 0) glGenTextures(1, &tex_id); for (i = 0; i < 3; i++) { texture[i] = texture[9 + i] = alpha1[i]; texture[3 + i] = texture[6 + i] = alpha2[i]; } glBindTexture(GL_TEXTURE_2D, tex_id); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 2, 2, 0, GL_RGB, GL_UNSIGNED_SHORT, texture); rt->alpha_checks_changed = FALSE; } else glBindTexture(GL_TEXTURE_2D, tex_id); if (matrix_changed == FALSE) /* glMatrixMode(GL_MODELVIEW); */ /* Save the matrix only if we will not replace it when redrawing. */ glPushMatrix(); glLoadIdentity(); half_w = rt->wid_size->width / 2.0; half_h = rt->wid_size->height / 2.0; glBegin(GL_QUADS); glTexCoord2f(0.0, 0.0); glVertex2f(-half_w, -half_h); glTexCoord2f(half_w / 16.0, 0.0); glVertex2f(half_w, -half_h); glTexCoord2f(half_w / 16.0, half_h / 16.0); glVertex2f(half_w, half_h); glTexCoord2f(0.0, half_h / 16.0); glVertex2f(-half_w, half_h); glEnd(); if (matrix_changed == FALSE) /* glMatrixMode(GL_MODELVIEW); */ glPopMatrix(); glEnable(GL_DITHER); } static gint choose_mipmap_level(void) { gfloat zoom, mipmap_ratio = MIPMAP_RATIO; gint level = 1; if (options->mipmap) { zoom = get_matrix_zoom(); while (mipmap_ratio > zoom && level < current_image->nb_maps) { mipmap_ratio *= MIPMAP_RATIO; level++; } } /* Mipmaps should only be scaled down. */ return level - 1; } static void display_last_image_notice(void) { static GdkGC *gc = NULL; const gchar *msg; PangoContext *pc; PangoLayout *pl; gint x = 10, y = 10, dx = 5, dy = 5; gint w, h; msg = get_image_notice(); if (msg == NULL) return; pc = gtk_widget_get_pango_context(gl_widget); pl = pango_layout_new(pc); if (gc == NULL) /* First time. */ gc = gdk_gc_new(gl_widget->window); pango_layout_set_text(pl, msg, -1); gdk_gc_set_foreground(gc, &(gl_widget->style->white)); pango_layout_get_pixel_size(pl, &w, &h); gdk_draw_rectangle(gl_widget->window, gc, TRUE, x - dx, y - dy, w + 2 * dx, h + 2 * dy); gdk_gc_set_foreground(gc, &(gl_widget->style->black)); gdk_draw_layout(gl_widget->window, gc, x, y, pl); g_object_unref(pl); } static gboolean need_alpha_checks(void) { return current_image != NULL && current_image->has_alpha && options->alpha_checks; } void draw_current_image(void) { gint mipmap_level; gboolean filtering; gboolean alpha_checks = need_alpha_checks(); if (alpha_checks) draw_checker(); else { /* * I don't know why but this seems to be required to see images instead * black rectangles with Mesa's software rendering. */ glBegin(GL_QUADS); glVertex2f(0, 0); glEnd(); } write_gl_matrix(); mipmap_level = choose_mipmap_level(); if (options->filtering == FALSE) filtering = FALSE; else if (mipmap_level == 0) filtering = is_filtering_needed(); else filtering = TRUE; if (alpha_checks) { glPushAttrib(GL_ENABLE_BIT); glEnable(GL_BLEND); } call_lists(filtering, mipmap_level); if (alpha_checks) glPopAttrib(); } /* Called by the timer when a redraw is needed. */ static void redraw(void) { static GdkGLDrawable *gldrawable = NULL; GTimeVal now; if (is_in_transition()) return; if (gldrawable == NULL) /* First time. */ gldrawable = gtk_widget_get_gl_drawable(gl_widget); gdk_gl_drawable_wait_gdk(gldrawable); clear_zoom_frame(); if (need_alpha_checks() == FALSE) { glDisable(GL_DITHER); glClear(GL_COLOR_BUFFER_BIT); glEnable(GL_DITHER); } if (current_image != NULL) draw_current_image(); gdk_gl_drawable_swap_buffers(gldrawable); gdk_gl_drawable_wait_gl(gldrawable); display_last_image_notice(); refresh(REFRESH_SCROLL); g_get_current_time(&now); last_redraw_delay = diff_timeval_us(&now, &last_redraw_scheduled); } /* Called the first time an image is displayed. */ void render(void) { gboolean list_changed; configure_matrix(current_image); prioritize_textures(current_image, TRUE); refresh(REFRESH_NOW | APPEND_HISTORY | REFRESH_STATUS); /* A bit dumb, but needed on some cards. */ refresh(REFRESH_NOW); /* Post rendering */ list_changed = remove_obsolete_nodes(); if (list_changed) do_later(G_PRIORITY_LOW, cond_rebuild_menus); update_current_image_status(list_changed); refresh(REFRESH_TITLE); current_image->first_image = FALSE; } void zoom_in(gfloat ratio) { gint pointer_x, pointer_y; gfloat x, y; if (options->zoom_pointer) { /* The pointer is the zoom center. */ gdk_window_get_pointer(gl_widget->window, &pointer_x, &pointer_y, NULL); x = (gfloat) pointer_x; y = (gfloat) pointer_y; } else { /* The zoom center is the midle of the window. */ x = rt->wid_size->width / 2.0; y = rt->wid_size->height / 2.0; } matrix_zoom(ratio, x, y); refresh(REFRESH_IMAGE | REFRESH_STATUS | APPEND_HISTORY); } static gboolean has_do_later(GSourceDummyMarshal idle_func); static void add_do_later(GSourceDummyMarshal idle_func); static void remove_do_later(GSourceDummyMarshal idle_func); static gboolean refresh_burst(void) { remove_do_later(redraw); refresh(REFRESH_BURST); return FALSE; } gint diff_timeval_us(GTimeVal * after, GTimeVal * before) { GTimeVal diff; diff_timeval(&diff, after, before); return diff.tv_sec * G_USEC_PER_SEC + diff.tv_usec; } gint get_fps_limiter_delay(GTimeVal * previous_frame) { GTimeVal now; gint diff; if (options->fps <= 0) return 0; g_get_current_time(&now); diff = G_USEC_PER_SEC / options->fps - diff_timeval_us(&now, previous_frame); return diff; } void refresh(gint what) { /* GTK does that automatically but with more overhead. */ if (what & REFRESH_IMAGE) { if (!has_do_later(redraw)) { g_get_current_time(&last_redraw_scheduled); do_later(GDK_PRIORITY_REDRAW, redraw); } } else if (what & REFRESH_BURST) { if (!has_do_later(redraw)) { gint diff = get_fps_limiter_delay(&last_redraw_scheduled); diff -= last_redraw_delay; if (diff > 0) { add_do_later(redraw); g_timeout_add(diff / 4000, (GtkFunction) refresh_burst, NULL); } else refresh(REFRESH_IMAGE); } } else if (what & REFRESH_NOW) { remove_do_later(redraw); redraw(); } if (what & REFRESH_STATUS) do_later(G_PRIORITY_HIGH, update_status_bar); if (what & APPEND_HISTORY) append_history(); if (what & REFRESH_TITLE) do_later(G_PRIORITY_DEFAULT, update_window_title); if (what & REFRESH_SCROLL) update_scrollbars(); } void update_current_image_status(gboolean find_number) { if (current_image != NULL) { if (find_number) current_image->number = -1; fill_ident(current_image); } refresh(REFRESH_STATUS); } static GHashTable *idle_functions = NULL; static void init_do_later(void) { if (idle_functions == NULL) /* First time */ idle_functions = g_hash_table_new(g_direct_hash, NULL); } static gboolean has_do_later(GSourceDummyMarshal idle_func) { init_do_later(); return g_hash_table_lookup(idle_functions, idle_func) != NULL; } static void add_do_later(GSourceDummyMarshal idle_func) { init_do_later(); g_hash_table_insert(idle_functions, idle_func, idle_func); } static void remove_do_later(GSourceDummyMarshal idle_func) { init_do_later(); g_hash_table_remove(idle_functions, idle_func); } static gboolean wrapper(gpointer data) { GSourceDummyMarshal func = data; remove_do_later(func); func(); return FALSE; } void do_later(gint priority, GSourceDummyMarshal func) { if (has_do_later(func)) /* Already scheduled */ return; add_do_later(func); g_idle_add_full(priority, wrapper, func, NULL); } gliv-1.9.7/src/glade_options.c0000644000076400007640000011577311465576131013550 0ustar gg/* * DO NOT EDIT THIS FILE - it is generated by Glade. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include #include "glade_options.h" #define GLADE_HOOKUP_OBJECT(component,widget,name) \ g_object_set_data_full (G_OBJECT (component), name, \ gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref) #define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \ g_object_set_data (G_OBJECT (component), name, widget) GtkWidget* create_options_dialog (void) { GtkWidget *options_dialog; GtkWidget *dialog_vbox1; GtkWidget *expander1; GtkWidget *vbox9; GtkWidget *hbox9; GtkWidget *save_now; GtkWidget *alignment2; GtkWidget *hbox8; GtkWidget *image2; GtkWidget *label37; GtkWidget *save_quit; GtkWidget *read_config; GtkWidget *write_config; GtkWidget *label38; GtkWidget *notebook1; GtkWidget *vbox3; GtkWidget *table1; GtkWidget *scrollbars; GtkWidget *fullscreen; GtkWidget *menu_bar; GtkWidget *status_bar; GtkWidget *confirm_quit; GtkWidget *resize_win; GtkWidget *hbox2; GtkWidget *label8; GtkObject *delay_cursor_adj; GtkWidget *delay_cursor; GtkWidget *label9; GtkWidget *label1; GtkWidget *table2; GtkWidget *scale_down; GtkWidget *maximize; GtkWidget *mipmaps; GtkWidget *dithering; GtkWidget *one_image; GtkWidget *opengl_errors; GtkWidget *filtering; GtkWidget *label2; GtkWidget *vbox7; GtkWidget *hbox5; GtkWidget *images_menus_startup; GtkWidget *images_menus_mnemonics; GtkWidget *thumbnails; GtkWidget *table5; GtkWidget *label26; GtkWidget *label27; GtkWidget *label25; GtkObject *thumbnails_width_adj; GtkWidget *thumbnails_width; GtkObject *thumbnails_height_adj; GtkWidget *thumbnails_height; GtkWidget *label24; GtkWidget *label3; GtkWidget *vbox5; GtkWidget *hbox10; GtkWidget *zoom_pointer; GtkWidget *keep_transfo; GtkWidget *hbox11; GtkWidget *label42; GtkWidget *initlal_position; GtkWidget *table4; GtkObject *max_fps_adj; GtkWidget *max_fps; GtkObject *history_length_adj; GtkWidget *history_length; GtkWidget *label16; GtkWidget *label17; GtkWidget *label18; GtkWidget *label19; GtkWidget *label4; GtkWidget *vbox6; GtkWidget *hbox3; GtkWidget *start_slide_show; GtkWidget *slide_show_loop; GtkWidget *table7; GtkWidget *label28; GtkWidget *label20; GtkObject *slide_show_delay_adj; GtkWidget *slide_show_delay; GtkWidget *label21; GtkWidget *label29; GtkObject *notice_time_adj; GtkWidget *notice_time; GtkWidget *hseparator1; GtkWidget *transitions; GtkWidget *transition_box; GtkWidget *hbox13; GtkWidget *label46; GtkObject *trans_duration_adj; GtkWidget *trans_duration; GtkWidget *label47; GtkWidget *label48; GtkWidget *label5; GtkWidget *vbox10; GtkWidget *table8; GtkWidget *label41; GtkWidget *label40; GtkWidget *label39; GtkWidget *alpha1; GtkWidget *alpha2; GtkWidget *alpha_checks; GtkWidget *background; GtkWidget *label6; GtkWidget *dialog_action_area1; GtkWidget *cancelbutton1; GtkWidget *okbutton1; options_dialog = gtk_dialog_new (); gtk_window_set_title (GTK_WINDOW (options_dialog), _("Options")); gtk_window_set_position (GTK_WINDOW (options_dialog), GTK_WIN_POS_MOUSE); gtk_window_set_modal (GTK_WINDOW (options_dialog), TRUE); dialog_vbox1 = GTK_DIALOG (options_dialog)->vbox; gtk_widget_show (dialog_vbox1); expander1 = gtk_expander_new (NULL); gtk_widget_show (expander1); gtk_box_pack_end (GTK_BOX (dialog_vbox1), expander1, TRUE, TRUE, 0); gtk_expander_set_spacing (GTK_EXPANDER (expander1), 10); vbox9 = gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox9); gtk_container_add (GTK_CONTAINER (expander1), vbox9); hbox9 = gtk_hbox_new (FALSE, 0); gtk_widget_show (hbox9); gtk_box_pack_start (GTK_BOX (vbox9), hbox9, TRUE, TRUE, 0); save_now = gtk_button_new (); gtk_widget_show (save_now); gtk_box_pack_start (GTK_BOX (hbox9), save_now, TRUE, FALSE, 0); alignment2 = gtk_alignment_new (0.5, 0.5, 0, 0); gtk_widget_show (alignment2); gtk_container_add (GTK_CONTAINER (save_now), alignment2); hbox8 = gtk_hbox_new (FALSE, 2); gtk_widget_show (hbox8); gtk_container_add (GTK_CONTAINER (alignment2), hbox8); image2 = gtk_image_new_from_stock ("gtk-save", GTK_ICON_SIZE_BUTTON); gtk_widget_show (image2); gtk_box_pack_start (GTK_BOX (hbox8), image2, FALSE, FALSE, 0); label37 = gtk_label_new_with_mnemonic (_("Save options now")); gtk_widget_show (label37); gtk_box_pack_start (GTK_BOX (hbox8), label37, TRUE, TRUE, 0); save_quit = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Save options when quitting"))); add_check_button(save_quit, OPTION_SAVE_QUIT); gtk_widget_show (save_quit); gtk_box_pack_start (GTK_BOX (hbox9), save_quit, TRUE, TRUE, 0); read_config = gtk_label_new (""); gtk_widget_show (read_config); gtk_box_pack_start (GTK_BOX (vbox9), read_config, TRUE, TRUE, 0); gtk_misc_set_padding (GTK_MISC (read_config), 0, 5); write_config = gtk_label_new (""); gtk_widget_show (write_config); gtk_box_pack_start (GTK_BOX (vbox9), write_config, FALSE, FALSE, 0); gtk_misc_set_padding (GTK_MISC (write_config), 0, 5); label38 = gtk_label_new (_("Configuration file")); gtk_widget_show (label38); gtk_expander_set_label_widget (GTK_EXPANDER (expander1), label38); gtk_label_set_justify (GTK_LABEL (label38), GTK_JUSTIFY_CENTER); notebook1 = gtk_notebook_new (); gtk_widget_show (notebook1); gtk_box_pack_start (GTK_BOX (dialog_vbox1), notebook1, TRUE, TRUE, 0); gtk_notebook_set_scrollable (GTK_NOTEBOOK (notebook1), TRUE); gtk_notebook_popup_enable (GTK_NOTEBOOK (notebook1)); vbox3 = gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox3); gtk_container_add (GTK_CONTAINER (notebook1), vbox3); reset_mnemonics(); gtk_notebook_set_tab_label_packing (GTK_NOTEBOOK (notebook1), vbox3, TRUE, TRUE, GTK_PACK_START); table1 = gtk_table_new (3, 2, TRUE); gtk_widget_show (table1); gtk_box_pack_start (GTK_BOX (vbox3), table1, TRUE, TRUE, 0); scrollbars = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Scrollbars enabled"))); add_check_button(scrollbars, OPTION_SCROLLBARS); gtk_widget_show (scrollbars); gtk_table_attach (GTK_TABLE (table1), scrollbars, 0, 1, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); fullscreen = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Fullscreen mode"))); add_check_button(fullscreen, OPTION_FULLSCREEN); gtk_widget_show (fullscreen); gtk_table_attach (GTK_TABLE (table1), fullscreen, 0, 1, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); menu_bar = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Menu bar enabled"))); add_check_button(menu_bar, OPTION_MENU_BAR); gtk_widget_show (menu_bar); gtk_table_attach (GTK_TABLE (table1), menu_bar, 1, 2, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); status_bar = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Status bar enabled"))); add_check_button(status_bar, OPTION_STATUS_BAR); gtk_widget_show (status_bar); gtk_table_attach (GTK_TABLE (table1), status_bar, 1, 2, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); confirm_quit = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Confirm before quitting"))); add_check_button(confirm_quit, OPTION_CONFIRM_QUIT); gtk_widget_show (confirm_quit); gtk_table_attach (GTK_TABLE (table1), confirm_quit, 0, 1, 2, 3, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); resize_win = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Automatic window resizing"))); add_check_button(resize_win, OPTION_RESIZE_WIN); gtk_widget_show (resize_win); gtk_table_attach (GTK_TABLE (table1), resize_win, 1, 2, 2, 3, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); hbox2 = gtk_hbox_new (FALSE, 0); gtk_widget_show (hbox2); gtk_box_pack_start (GTK_BOX (vbox3), hbox2, TRUE, TRUE, 0); label8 = gtk_label_new (_("Delay before hiding the cursor\n0: feature disabled")); gtk_widget_show (label8); gtk_box_pack_start (GTK_BOX (hbox2), label8, TRUE, TRUE, 0); gtk_label_set_justify (GTK_LABEL (label8), GTK_JUSTIFY_RIGHT); delay_cursor_adj = gtk_adjustment_new (1, 0, 1000000000, 1, 10, 0); delay_cursor = gtk_spin_button_new (GTK_ADJUSTMENT (delay_cursor_adj), 1, 0); add_spin_button(delay_cursor, OPTION_DELAY_CURSOR); gtk_widget_show (delay_cursor); gtk_box_pack_start (GTK_BOX (hbox2), delay_cursor, TRUE, TRUE, 0); gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (delay_cursor), TRUE); gtk_spin_button_set_update_policy (GTK_SPIN_BUTTON (delay_cursor), GTK_UPDATE_IF_VALID); label9 = gtk_label_new (_("milliseconds")); gtk_widget_show (label9); gtk_box_pack_start (GTK_BOX (hbox2), label9, TRUE, TRUE, 0); gtk_label_set_justify (GTK_LABEL (label9), GTK_JUSTIFY_CENTER); label1 = gtk_label_new (_("Interface")); gtk_widget_show (label1); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 0), label1); table2 = gtk_table_new (4, 2, FALSE); gtk_widget_show (table2); gtk_container_add (GTK_CONTAINER (notebook1), table2); reset_mnemonics(); gtk_notebook_set_tab_label_packing (GTK_NOTEBOOK (notebook1), table2, TRUE, TRUE, GTK_PACK_START); scale_down = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Scale down large images"))); add_check_button(scale_down, OPTION_SCALE_DOWN); gtk_widget_show (scale_down); gtk_table_attach (GTK_TABLE (table2), scale_down, 0, 1, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); maximize = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Maximize small images"))); add_check_button(maximize, OPTION_MAXIMIZE); gtk_widget_show (maximize); gtk_table_attach (GTK_TABLE (table2), maximize, 1, 2, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); mipmaps = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Build mipmaps"))); add_check_button(mipmaps, OPTION_MIPMAPS); gtk_widget_show (mipmaps); gtk_table_attach (GTK_TABLE (table2), mipmaps, 1, 2, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); dithering = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Dithering"))); add_check_button(dithering, OPTION_DITHERING); gtk_widget_show (dithering); gtk_table_attach (GTK_TABLE (table2), dithering, 0, 1, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); one_image = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Keep only one image in memory"))); add_check_button(one_image, OPTION_ONE_IMAGE); gtk_widget_show (one_image); gtk_table_attach (GTK_TABLE (table2), one_image, 1, 2, 2, 3, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); opengl_errors = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Check for OpenGL errors"))); add_check_button(opengl_errors, OPTION_OPENGL_ERRORS); gtk_widget_show (opengl_errors); gtk_table_attach (GTK_TABLE (table2), opengl_errors, 0, 1, 2, 3, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); filtering = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Enable OpenGL filtering"))); add_check_button(filtering, OPTION_FILTERING); gtk_widget_show (filtering); gtk_table_attach (GTK_TABLE (table2), filtering, 1, 2, 3, 4, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); label2 = gtk_label_new (_("Images")); gtk_widget_show (label2); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 1), label2); vbox7 = gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox7); gtk_container_add (GTK_CONTAINER (notebook1), vbox7); reset_mnemonics(); hbox5 = gtk_hbox_new (FALSE, 0); gtk_widget_show (hbox5); gtk_box_pack_start (GTK_BOX (vbox7), hbox5, TRUE, TRUE, 0); images_menus_startup = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Build images menus at startup"))); add_check_button(images_menus_startup, OPTION_IMAGES_MENUS_STARTUP); gtk_widget_show (images_menus_startup); gtk_box_pack_start (GTK_BOX (hbox5), images_menus_startup, TRUE, TRUE, 0); images_menus_mnemonics = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Make mnemonics for images menus"))); add_check_button(images_menus_mnemonics, OPTION_IMAGES_MENUS_MNEMONICS); gtk_widget_show (images_menus_mnemonics); gtk_box_pack_start (GTK_BOX (hbox5), images_menus_mnemonics, TRUE, TRUE, 0); thumbnails = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Show thumbnails in images menus"))); add_check_button(thumbnails, OPTION_THUMBNAILS); gtk_widget_show (thumbnails); gtk_box_pack_start (GTK_BOX (vbox7), thumbnails, TRUE, TRUE, 0); table5 = gtk_table_new (2, 3, FALSE); gtk_widget_show (table5); gtk_box_pack_start (GTK_BOX (vbox7), table5, TRUE, TRUE, 0); label26 = gtk_label_new (_("pixels")); gtk_widget_show (label26); gtk_table_attach (GTK_TABLE (table5), label26, 2, 3, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); gtk_label_set_justify (GTK_LABEL (label26), GTK_JUSTIFY_CENTER); gtk_misc_set_alignment (GTK_MISC (label26), 0, 0.5); gtk_misc_set_padding (GTK_MISC (label26), 10, 0); label27 = gtk_label_new (_("pixels")); gtk_widget_show (label27); gtk_table_attach (GTK_TABLE (table5), label27, 2, 3, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); gtk_label_set_justify (GTK_LABEL (label27), GTK_JUSTIFY_CENTER); gtk_misc_set_alignment (GTK_MISC (label27), 0, 0.5); gtk_misc_set_padding (GTK_MISC (label27), 10, 0); label25 = gtk_label_new (_("Thumbnail height")); gtk_widget_show (label25); gtk_table_attach (GTK_TABLE (table5), label25, 0, 1, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); gtk_label_set_justify (GTK_LABEL (label25), GTK_JUSTIFY_RIGHT); gtk_misc_set_alignment (GTK_MISC (label25), 0, 0.5); gtk_misc_set_padding (GTK_MISC (label25), 10, 0); thumbnails_width_adj = gtk_adjustment_new (1, 1, 1000000000, 1, 10, 0); thumbnails_width = gtk_spin_button_new (GTK_ADJUSTMENT (thumbnails_width_adj), 1, 0); add_spin_button(thumbnails_width, OPTION_THUMBNAILS_WIDTH); gtk_widget_show (thumbnails_width); gtk_table_attach (GTK_TABLE (table5), thumbnails_width, 1, 2, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (thumbnails_width), TRUE); gtk_spin_button_set_update_policy (GTK_SPIN_BUTTON (thumbnails_width), GTK_UPDATE_IF_VALID); thumbnails_height_adj = gtk_adjustment_new (1, 1, 1000000000, 1, 10, 0); thumbnails_height = gtk_spin_button_new (GTK_ADJUSTMENT (thumbnails_height_adj), 1, 0); add_spin_button(thumbnails_height, OPTION_THUMBNAILS_HEIGHT); gtk_widget_show (thumbnails_height); gtk_table_attach (GTK_TABLE (table5), thumbnails_height, 1, 2, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (thumbnails_height), TRUE); gtk_spin_button_set_update_policy (GTK_SPIN_BUTTON (thumbnails_height), GTK_UPDATE_IF_VALID); label24 = gtk_label_new (_("Thumbnail width")); gtk_widget_show (label24); gtk_table_attach (GTK_TABLE (table5), label24, 0, 1, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); gtk_label_set_justify (GTK_LABEL (label24), GTK_JUSTIFY_RIGHT); gtk_misc_set_alignment (GTK_MISC (label24), 0, 0.5); gtk_misc_set_padding (GTK_MISC (label24), 10, 0); label3 = gtk_label_new (_("Images menus")); gtk_widget_show (label3); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 2), label3); vbox5 = gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox5); gtk_container_add (GTK_CONTAINER (notebook1), vbox5); reset_mnemonics(); gtk_notebook_set_tab_label_packing (GTK_NOTEBOOK (notebook1), vbox5, TRUE, TRUE, GTK_PACK_START); hbox10 = gtk_hbox_new (FALSE, 0); gtk_widget_show (hbox10); gtk_box_pack_start (GTK_BOX (vbox5), hbox10, TRUE, TRUE, 0); zoom_pointer = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Zoom centered on pointer"))); add_check_button(zoom_pointer, OPTION_ZOOM_POINTER); gtk_widget_show (zoom_pointer); gtk_box_pack_start (GTK_BOX (hbox10), zoom_pointer, TRUE, TRUE, 0); keep_transfo = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Keep transformations when switching images"))); add_check_button(keep_transfo, OPTION_KEEP_TRANSFO); gtk_widget_show (keep_transfo); gtk_box_pack_start (GTK_BOX (hbox10), keep_transfo, TRUE, TRUE, 0); hbox11 = gtk_hbox_new (FALSE, 10); gtk_widget_show (hbox11); gtk_box_pack_start (GTK_BOX (vbox5), hbox11, TRUE, FALSE, 0); label42 = gtk_label_new (_("Initial image position")); gtk_widget_show (label42); gtk_box_pack_start (GTK_BOX (hbox11), label42, FALSE, FALSE, 10); initlal_position = gtk_combo_box_new_text (); gtk_widget_show (initlal_position); gtk_box_pack_start (GTK_BOX (hbox11), initlal_position, TRUE, TRUE, 10); gtk_combo_box_append_text (GTK_COMBO_BOX (initlal_position), _("Center")); gtk_combo_box_append_text (GTK_COMBO_BOX (initlal_position), _("Top left")); gtk_combo_box_append_text (GTK_COMBO_BOX (initlal_position), _("Top right")); gtk_combo_box_append_text (GTK_COMBO_BOX (initlal_position), _("Bottom left")); gtk_combo_box_append_text (GTK_COMBO_BOX (initlal_position), _("Bottom right")); gtk_combo_box_append_text (GTK_COMBO_BOX (initlal_position), _("Same as previous")); gtk_combo_box_set_add_tearoffs (GTK_COMBO_BOX (initlal_position), TRUE); table4 = gtk_table_new (2, 3, FALSE); gtk_widget_show (table4); gtk_box_pack_start (GTK_BOX (vbox5), table4, TRUE, TRUE, 0); max_fps_adj = gtk_adjustment_new (1, -1, 1000000000, 1, 10, 0); max_fps = gtk_spin_button_new (GTK_ADJUSTMENT (max_fps_adj), 1, 0); add_spin_button(max_fps, OPTION_MAX_FPS); gtk_widget_show (max_fps); gtk_table_attach (GTK_TABLE (table4), max_fps, 1, 2, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (max_fps), TRUE); gtk_spin_button_set_update_policy (GTK_SPIN_BUTTON (max_fps), GTK_UPDATE_IF_VALID); history_length_adj = gtk_adjustment_new (1, -1, 1000000000, 1, 10, 0); history_length = gtk_spin_button_new (GTK_ADJUSTMENT (history_length_adj), 1, 0); add_spin_button(history_length, OPTION_HISTORY_LENGTH); gtk_widget_show (history_length); gtk_table_attach (GTK_TABLE (table4), history_length, 1, 2, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (history_length), TRUE); gtk_spin_button_set_update_policy (GTK_SPIN_BUTTON (history_length), GTK_UPDATE_IF_VALID); label16 = gtk_label_new (_("History length\n0: feature disabled\n-1: infinite")); gtk_widget_show (label16); gtk_table_attach (GTK_TABLE (table4), label16, 0, 1, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); gtk_label_set_justify (GTK_LABEL (label16), GTK_JUSTIFY_RIGHT); gtk_misc_set_padding (GTK_MISC (label16), 10, 0); label17 = gtk_label_new (_("Maximum framerate\n-1: infinite")); gtk_widget_show (label17); gtk_table_attach (GTK_TABLE (table4), label17, 0, 1, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); gtk_label_set_justify (GTK_LABEL (label17), GTK_JUSTIFY_RIGHT); gtk_misc_set_padding (GTK_MISC (label17), 10, 0); label18 = gtk_label_new (_("elements")); gtk_widget_show (label18); gtk_table_attach (GTK_TABLE (table4), label18, 2, 3, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); gtk_label_set_justify (GTK_LABEL (label18), GTK_JUSTIFY_CENTER); gtk_misc_set_padding (GTK_MISC (label18), 10, 0); label19 = gtk_label_new (_("fps")); gtk_widget_show (label19); gtk_table_attach (GTK_TABLE (table4), label19, 2, 3, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); gtk_label_set_justify (GTK_LABEL (label19), GTK_JUSTIFY_CENTER); gtk_misc_set_padding (GTK_MISC (label19), 10, 0); label4 = gtk_label_new (_("Transformations")); gtk_widget_show (label4); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 3), label4); vbox6 = gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox6); gtk_container_add (GTK_CONTAINER (notebook1), vbox6); reset_mnemonics(); gtk_notebook_set_tab_label_packing (GTK_NOTEBOOK (notebook1), vbox6, TRUE, TRUE, GTK_PACK_START); hbox3 = gtk_hbox_new (FALSE, 0); gtk_widget_show (hbox3); gtk_box_pack_start (GTK_BOX (vbox6), hbox3, TRUE, TRUE, 5); start_slide_show = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Start with the slide show"))); add_check_button(start_slide_show, OPTION_START_SLIDE_SHOW); gtk_widget_show (start_slide_show); gtk_box_pack_start (GTK_BOX (hbox3), start_slide_show, TRUE, TRUE, 0); slide_show_loop = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Make the slide show loop"))); add_check_button(slide_show_loop, OPTION_SLIDE_SHOW_LOOP); gtk_widget_show (slide_show_loop); gtk_box_pack_start (GTK_BOX (hbox3), slide_show_loop, TRUE, TRUE, 0); table7 = gtk_table_new (2, 3, FALSE); gtk_widget_show (table7); gtk_box_pack_start (GTK_BOX (vbox6), table7, TRUE, TRUE, 0); label28 = gtk_label_new (_("Last/First image notice time")); gtk_widget_show (label28); gtk_table_attach (GTK_TABLE (table7), label28, 0, 1, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 5); gtk_misc_set_padding (GTK_MISC (label28), 10, 0); label20 = gtk_label_new (_("Delay between images during the slide show")); gtk_widget_show (label20); gtk_table_attach (GTK_TABLE (table7), label20, 0, 1, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 5); gtk_misc_set_padding (GTK_MISC (label20), 10, 0); slide_show_delay_adj = gtk_adjustment_new (1, 0, 1000000000, 1, 10, 0); slide_show_delay = gtk_spin_button_new (GTK_ADJUSTMENT (slide_show_delay_adj), 1, 0); add_spin_button(slide_show_delay, OPTION_SLIDE_SHOW_DELAY); gtk_widget_show (slide_show_delay); gtk_table_attach (GTK_TABLE (table7), slide_show_delay, 1, 2, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 5); gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (slide_show_delay), TRUE); gtk_spin_button_set_update_policy (GTK_SPIN_BUTTON (slide_show_delay), GTK_UPDATE_IF_VALID); label21 = gtk_label_new (_("seconds")); gtk_widget_show (label21); gtk_table_attach (GTK_TABLE (table7), label21, 2, 3, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 5); gtk_misc_set_padding (GTK_MISC (label21), 10, 0); label29 = gtk_label_new (_("milliseconds")); gtk_widget_show (label29); gtk_table_attach (GTK_TABLE (table7), label29, 2, 3, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 5); gtk_misc_set_padding (GTK_MISC (label29), 10, 0); notice_time_adj = gtk_adjustment_new (1, 0, 1000000000, 1, 10, 0); notice_time = gtk_spin_button_new (GTK_ADJUSTMENT (notice_time_adj), 1, 0); add_spin_button(notice_time, OPTION_NOTICE_TIME); gtk_widget_show (notice_time); gtk_table_attach (GTK_TABLE (table7), notice_time, 1, 2, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 5); gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (notice_time), TRUE); gtk_spin_button_set_update_policy (GTK_SPIN_BUTTON (notice_time), GTK_UPDATE_IF_VALID); hseparator1 = gtk_hseparator_new (); gtk_widget_show (hseparator1); gtk_box_pack_start (GTK_BOX (vbox6), hseparator1, TRUE, TRUE, 0); transitions = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Enable transitions between images"))); add_check_button(transitions, OPTION_TRANSITIONS); gtk_widget_show (transitions); gtk_box_pack_start (GTK_BOX (vbox6), transitions, TRUE, TRUE, 5); transition_box = gtk_vbox_new (FALSE, 0); gtk_widget_show (transition_box); gtk_box_pack_start (GTK_BOX (vbox6), transition_box, TRUE, TRUE, 0); hbox13 = gtk_hbox_new (FALSE, 0); gtk_widget_show (hbox13); gtk_box_pack_start (GTK_BOX (transition_box), hbox13, TRUE, TRUE, 0); label46 = gtk_label_new (_("Transition duration")); gtk_widget_show (label46); gtk_box_pack_start (GTK_BOX (hbox13), label46, TRUE, TRUE, 0); gtk_misc_set_padding (GTK_MISC (label46), 10, 0); trans_duration_adj = gtk_adjustment_new (1, 0, 1000000000, 1, 10, 0); trans_duration = gtk_spin_button_new (GTK_ADJUSTMENT (trans_duration_adj), 1, 0); add_spin_button(trans_duration, OPTION_TRANS_DURATION); gtk_widget_show (trans_duration); gtk_box_pack_start (GTK_BOX (hbox13), trans_duration, TRUE, TRUE, 0); gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (trans_duration), TRUE); gtk_spin_button_set_update_policy (GTK_SPIN_BUTTON (trans_duration), GTK_UPDATE_IF_VALID); label47 = gtk_label_new (_("milliseconds")); gtk_widget_show (label47); gtk_box_pack_start (GTK_BOX (hbox13), label47, TRUE, TRUE, 0); gtk_misc_set_padding (GTK_MISC (label47), 10, 0); label48 = gtk_label_new (_("Transitions obey the maximum framerate parameter in the Transformations tab")); gtk_widget_show (label48); gtk_box_pack_start (GTK_BOX (transition_box), label48, TRUE, TRUE, 0); gtk_misc_set_padding (GTK_MISC (label48), 10, 0); label5 = gtk_label_new (_("Slide show")); gtk_widget_show (label5); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 4), label5); vbox10 = gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox10); gtk_container_add (GTK_CONTAINER (notebook1), vbox10); reset_mnemonics(); table8 = gtk_table_new (4, 2, FALSE); gtk_widget_show (table8); gtk_box_pack_start (GTK_BOX (vbox10), table8, TRUE, TRUE, 0); label41 = gtk_label_new (_("Alpha 2")); gtk_widget_show (label41); gtk_table_attach (GTK_TABLE (table8), label41, 0, 1, 2, 3, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); gtk_misc_set_alignment (GTK_MISC (label41), 0, 0.5); label40 = gtk_label_new (_("Alpha 1")); gtk_widget_show (label40); gtk_table_attach (GTK_TABLE (table8), label40, 0, 1, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); gtk_misc_set_alignment (GTK_MISC (label40), 0, 0.5); label39 = gtk_label_new (_("Background")); gtk_widget_show (label39); gtk_table_attach (GTK_TABLE (table8), label39, 0, 1, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); gtk_misc_set_alignment (GTK_MISC (label39), 0, 0.5); alpha1 = gtk_color_button_new (); add_color_button(alpha1, OPTION_ALPHA1); gtk_widget_show (alpha1); gtk_table_attach (GTK_TABLE (table8), alpha1, 1, 2, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK), 0, 0); alpha2 = gtk_color_button_new (); add_color_button(alpha2, OPTION_ALPHA2); gtk_widget_show (alpha2); gtk_table_attach (GTK_TABLE (table8), alpha2, 1, 2, 2, 3, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK), 0, 0); alpha_checks = gtk_check_button_new_with_mnemonic (add_mnemonic(_("Alpha checks"))); add_check_button(alpha_checks, OPTION_ALPHA_CHECKS); gtk_widget_show (alpha_checks); gtk_table_attach (GTK_TABLE (table8), alpha_checks, 0, 1, 3, 4, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); background = gtk_color_button_new (); add_color_button(background, OPTION_BACKGROUND); gtk_widget_show (background); gtk_table_attach (GTK_TABLE (table8), background, 1, 2, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK), 0, 0); label6 = gtk_label_new (_("Background")); gtk_widget_show (label6); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 5), label6); dialog_action_area1 = GTK_DIALOG (options_dialog)->action_area; gtk_widget_show (dialog_action_area1); gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area1), GTK_BUTTONBOX_END); cancelbutton1 = gtk_button_new_from_stock ("gtk-cancel"); gtk_widget_show (cancelbutton1); gtk_dialog_add_action_widget (GTK_DIALOG (options_dialog), cancelbutton1, GTK_RESPONSE_CANCEL); GTK_WIDGET_SET_FLAGS (cancelbutton1, GTK_CAN_DEFAULT); okbutton1 = gtk_button_new_from_stock ("gtk-ok"); gtk_widget_show (okbutton1); gtk_dialog_add_action_widget (GTK_DIALOG (options_dialog), okbutton1, GTK_RESPONSE_OK); GTK_WIDGET_SET_FLAGS (okbutton1, GTK_CAN_DEFAULT); g_signal_connect ((gpointer) save_now, "clicked", G_CALLBACK (on_save_now_clicked), NULL); g_signal_connect ((gpointer) read_config, "realize", G_CALLBACK (on_read_config_realize), NULL); g_signal_connect ((gpointer) write_config, "realize", G_CALLBACK (on_write_config_realize), NULL); g_signal_connect ((gpointer) initlal_position, "realize", G_CALLBACK (on_initial_position_realize), NULL); g_signal_connect ((gpointer) initlal_position, "changed", G_CALLBACK (on_initial_position_changed), NULL); g_signal_connect_data ((gpointer) transitions, "toggled", G_CALLBACK (on_transitions_toggled), GTK_OBJECT (transition_box), NULL, G_CONNECT_AFTER | G_CONNECT_SWAPPED); g_signal_connect_after ((gpointer) transition_box, "realize", G_CALLBACK (on_transition_box_realize), NULL); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (options_dialog, options_dialog, "options_dialog"); GLADE_HOOKUP_OBJECT_NO_REF (options_dialog, dialog_vbox1, "dialog_vbox1"); GLADE_HOOKUP_OBJECT (options_dialog, expander1, "expander1"); GLADE_HOOKUP_OBJECT (options_dialog, vbox9, "vbox9"); GLADE_HOOKUP_OBJECT (options_dialog, hbox9, "hbox9"); GLADE_HOOKUP_OBJECT (options_dialog, save_now, "save_now"); GLADE_HOOKUP_OBJECT (options_dialog, alignment2, "alignment2"); GLADE_HOOKUP_OBJECT (options_dialog, hbox8, "hbox8"); GLADE_HOOKUP_OBJECT (options_dialog, image2, "image2"); GLADE_HOOKUP_OBJECT (options_dialog, label37, "label37"); GLADE_HOOKUP_OBJECT (options_dialog, save_quit, "save_quit"); GLADE_HOOKUP_OBJECT (options_dialog, read_config, "read_config"); GLADE_HOOKUP_OBJECT (options_dialog, write_config, "write_config"); GLADE_HOOKUP_OBJECT (options_dialog, label38, "label38"); GLADE_HOOKUP_OBJECT (options_dialog, notebook1, "notebook1"); GLADE_HOOKUP_OBJECT (options_dialog, vbox3, "vbox3"); GLADE_HOOKUP_OBJECT (options_dialog, table1, "table1"); GLADE_HOOKUP_OBJECT (options_dialog, scrollbars, "scrollbars"); GLADE_HOOKUP_OBJECT (options_dialog, fullscreen, "fullscreen"); GLADE_HOOKUP_OBJECT (options_dialog, menu_bar, "menu_bar"); GLADE_HOOKUP_OBJECT (options_dialog, status_bar, "status_bar"); GLADE_HOOKUP_OBJECT (options_dialog, confirm_quit, "confirm_quit"); GLADE_HOOKUP_OBJECT (options_dialog, resize_win, "resize_win"); GLADE_HOOKUP_OBJECT (options_dialog, hbox2, "hbox2"); GLADE_HOOKUP_OBJECT (options_dialog, label8, "label8"); GLADE_HOOKUP_OBJECT (options_dialog, delay_cursor, "delay_cursor"); GLADE_HOOKUP_OBJECT (options_dialog, label9, "label9"); GLADE_HOOKUP_OBJECT (options_dialog, label1, "label1"); GLADE_HOOKUP_OBJECT (options_dialog, table2, "table2"); GLADE_HOOKUP_OBJECT (options_dialog, scale_down, "scale_down"); GLADE_HOOKUP_OBJECT (options_dialog, maximize, "maximize"); GLADE_HOOKUP_OBJECT (options_dialog, mipmaps, "mipmaps"); GLADE_HOOKUP_OBJECT (options_dialog, dithering, "dithering"); GLADE_HOOKUP_OBJECT (options_dialog, one_image, "one_image"); GLADE_HOOKUP_OBJECT (options_dialog, opengl_errors, "opengl_errors"); GLADE_HOOKUP_OBJECT (options_dialog, filtering, "filtering"); GLADE_HOOKUP_OBJECT (options_dialog, label2, "label2"); GLADE_HOOKUP_OBJECT (options_dialog, vbox7, "vbox7"); GLADE_HOOKUP_OBJECT (options_dialog, hbox5, "hbox5"); GLADE_HOOKUP_OBJECT (options_dialog, images_menus_startup, "images_menus_startup"); GLADE_HOOKUP_OBJECT (options_dialog, images_menus_mnemonics, "images_menus_mnemonics"); GLADE_HOOKUP_OBJECT (options_dialog, thumbnails, "thumbnails"); GLADE_HOOKUP_OBJECT (options_dialog, table5, "table5"); GLADE_HOOKUP_OBJECT (options_dialog, label26, "label26"); GLADE_HOOKUP_OBJECT (options_dialog, label27, "label27"); GLADE_HOOKUP_OBJECT (options_dialog, label25, "label25"); GLADE_HOOKUP_OBJECT (options_dialog, thumbnails_width, "thumbnails_width"); GLADE_HOOKUP_OBJECT (options_dialog, thumbnails_height, "thumbnails_height"); GLADE_HOOKUP_OBJECT (options_dialog, label24, "label24"); GLADE_HOOKUP_OBJECT (options_dialog, label3, "label3"); GLADE_HOOKUP_OBJECT (options_dialog, vbox5, "vbox5"); GLADE_HOOKUP_OBJECT (options_dialog, hbox10, "hbox10"); GLADE_HOOKUP_OBJECT (options_dialog, zoom_pointer, "zoom_pointer"); GLADE_HOOKUP_OBJECT (options_dialog, keep_transfo, "keep_transfo"); GLADE_HOOKUP_OBJECT (options_dialog, hbox11, "hbox11"); GLADE_HOOKUP_OBJECT (options_dialog, label42, "label42"); GLADE_HOOKUP_OBJECT (options_dialog, initlal_position, "initlal_position"); GLADE_HOOKUP_OBJECT (options_dialog, table4, "table4"); GLADE_HOOKUP_OBJECT (options_dialog, max_fps, "max_fps"); GLADE_HOOKUP_OBJECT (options_dialog, history_length, "history_length"); GLADE_HOOKUP_OBJECT (options_dialog, label16, "label16"); GLADE_HOOKUP_OBJECT (options_dialog, label17, "label17"); GLADE_HOOKUP_OBJECT (options_dialog, label18, "label18"); GLADE_HOOKUP_OBJECT (options_dialog, label19, "label19"); GLADE_HOOKUP_OBJECT (options_dialog, label4, "label4"); GLADE_HOOKUP_OBJECT (options_dialog, vbox6, "vbox6"); GLADE_HOOKUP_OBJECT (options_dialog, hbox3, "hbox3"); GLADE_HOOKUP_OBJECT (options_dialog, start_slide_show, "start_slide_show"); GLADE_HOOKUP_OBJECT (options_dialog, slide_show_loop, "slide_show_loop"); GLADE_HOOKUP_OBJECT (options_dialog, table7, "table7"); GLADE_HOOKUP_OBJECT (options_dialog, label28, "label28"); GLADE_HOOKUP_OBJECT (options_dialog, label20, "label20"); GLADE_HOOKUP_OBJECT (options_dialog, slide_show_delay, "slide_show_delay"); GLADE_HOOKUP_OBJECT (options_dialog, label21, "label21"); GLADE_HOOKUP_OBJECT (options_dialog, label29, "label29"); GLADE_HOOKUP_OBJECT (options_dialog, notice_time, "notice_time"); GLADE_HOOKUP_OBJECT (options_dialog, hseparator1, "hseparator1"); GLADE_HOOKUP_OBJECT (options_dialog, transitions, "transitions"); GLADE_HOOKUP_OBJECT (options_dialog, transition_box, "transition_box"); GLADE_HOOKUP_OBJECT (options_dialog, hbox13, "hbox13"); GLADE_HOOKUP_OBJECT (options_dialog, label46, "label46"); GLADE_HOOKUP_OBJECT (options_dialog, trans_duration, "trans_duration"); GLADE_HOOKUP_OBJECT (options_dialog, label47, "label47"); GLADE_HOOKUP_OBJECT (options_dialog, label48, "label48"); GLADE_HOOKUP_OBJECT (options_dialog, label5, "label5"); GLADE_HOOKUP_OBJECT (options_dialog, vbox10, "vbox10"); GLADE_HOOKUP_OBJECT (options_dialog, table8, "table8"); GLADE_HOOKUP_OBJECT (options_dialog, label41, "label41"); GLADE_HOOKUP_OBJECT (options_dialog, label40, "label40"); GLADE_HOOKUP_OBJECT (options_dialog, label39, "label39"); GLADE_HOOKUP_OBJECT (options_dialog, alpha1, "alpha1"); GLADE_HOOKUP_OBJECT (options_dialog, alpha2, "alpha2"); GLADE_HOOKUP_OBJECT (options_dialog, alpha_checks, "alpha_checks"); GLADE_HOOKUP_OBJECT (options_dialog, background, "background"); GLADE_HOOKUP_OBJECT (options_dialog, label6, "label6"); GLADE_HOOKUP_OBJECT_NO_REF (options_dialog, dialog_action_area1, "dialog_action_area1"); GLADE_HOOKUP_OBJECT (options_dialog, cancelbutton1, "cancelbutton1"); GLADE_HOOKUP_OBJECT (options_dialog, okbutton1, "okbutton1"); gtk_widget_grab_focus (okbutton1); gtk_widget_grab_default (okbutton1); return options_dialog; } gliv-1.9.7/src/open_dialog.c0000644000076400007640000001655611465576131013200 0ustar gg/* * 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. * * See the COPYING file for license information. * * Guillaume Chazarain */ /******************* * The Open dialog * *******************/ #include "gliv.h" #include "open_dialog.h" #include "messages.h" #include "next_image.h" #include "files_list.h" #include "windows.h" #include "mnemonics.h" #include "options.h" #include "loading.h" #include "glade_image_nr.h" #include "thumbnails.h" extern options_struct *options; extern GlivImage *current_image; static gchar *saved_path = NULL; /* From the gtk+-2.4 api documentation */ static void update_preview_cb(GtkFileChooser * file_chooser, gpointer data) { GtkWidget *preview; char *filename; GdkPixbuf *pixbuf = NULL; preview = GTK_WIDGET(data); filename = gtk_file_chooser_get_preview_filename(file_chooser); if (filename == NULL) return; start_quiet(); if (options->force || get_loader(filename) == LOADER_PIXBUF) pixbuf = gdk_pixbuf_new_from_file_at_size(filename, 128, 128, NULL); stop_quiet(); g_free(filename); gtk_image_set_from_pixbuf(GTK_IMAGE(preview), pixbuf); if (pixbuf) gdk_pixbuf_unref(pixbuf); gtk_file_chooser_set_preview_widget_active(file_chooser, pixbuf != NULL); } static gboolean toggle_button(GtkToggleButton * button, gboolean * flag) { *flag = gtk_toggle_button_get_active(button); return FALSE; } static void add_button(GtkHBox * buttons, const gchar * label, gboolean * flag) { GtkCheckButton *button; button = GTK_CHECK_BUTTON(gtk_check_button_new_with_mnemonic (add_mnemonic(label))); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), *flag); g_signal_connect_after(button, "toggled", G_CALLBACK(toggle_button), flag); gtk_box_pack_start_defaults(GTK_BOX(buttons), GTK_WIDGET(button)); gtk_widget_show(GTK_WIDGET(button)); } /* A GtkFileChooser */ static GtkFileChooser *decorated_dialog(gboolean select_dir) { GtkFileChooserAction action; const gchar *label; GtkFileChooser *chooser; GtkHBox *buttons; if (select_dir) { action = GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER; label = _("GLiv: Select a folder to open"); } else { action = GTK_FILE_CHOOSER_ACTION_OPEN; label = _("GLiv: Select files to open"); } chooser = GTK_FILE_CHOOSER(gtk_file_chooser_dialog_new(label, NULL, action, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL)); if (saved_path != NULL) gtk_file_chooser_set_current_folder(chooser, saved_path); if (!select_dir) { GtkImage *preview = GTK_IMAGE(gtk_image_new()); gtk_file_chooser_set_select_multiple(chooser, TRUE); gtk_file_chooser_set_preview_widget(chooser, GTK_WIDGET(preview)); g_signal_connect(chooser, "update-preview", G_CALLBACK(update_preview_cb), preview); } buttons = GTK_HBOX(gtk_hbox_new(FALSE, 10)); push_mnemonics(); add_button(buttons, _("Try to load every file"), &options->force); add_button(buttons, _("Recursive directory traversal"), &options->recursive); pop_mnemonics(); gtk_file_chooser_set_extra_widget(chooser, GTK_WIDGET(buttons)); return chooser; } static void open_images(gchar ** paths, gint nb) { gint nb_inserted = insert_after_current(paths, nb, FALSE, TRUE); new_images(nb_inserted); } static void load_selection(GSList * selection) { gint nb = g_slist_length(selection); gchar **filenames = g_new(gchar *, nb + 1); GSList *list_ptr = selection; gchar **tab_ptr = filenames; while (list_ptr != NULL) { *tab_ptr = list_ptr->data; tab_ptr++; list_ptr = list_ptr->next; } *tab_ptr = NULL; open_images(filenames, nb); g_strfreev(filenames); } gboolean menu_open(gboolean select_dir) { GtkFileChooser *dialog; gint response; GSList *selection = NULL; dialog = decorated_dialog(select_dir); response = run_modal_dialog(GTK_DIALOG(dialog)); g_free(saved_path); saved_path = gtk_file_chooser_get_current_folder(dialog); if (!select_dir && response == GTK_RESPONSE_ACCEPT) selection = gtk_file_chooser_get_filenames(dialog); gtk_widget_destroy(GTK_WIDGET(dialog)); if (selection != NULL) { /* Opening files */ load_selection(selection); g_slist_free(selection); } else if (response == GTK_RESPONSE_ACCEPT) /* Opening a dir */ open_images(&saved_path, 1); return FALSE; } static GtkWidget *create_pixmap(void *unused1, void *unused2) { return gtk_image_new(); } static const gchar *selected; static GtkLabel *dirname_label; static GtkLabel *filename_label; static GtkImage *preview; static gboolean on_image_nr_value_changed(GtkSpinButton * spin) { gchar *dirname; gchar *filename; GdkPixbuf *thumb; int val = gtk_spin_button_get_value_as_int(spin) - 1; selected = get_nth_filename(val); dirname = g_path_get_dirname(selected); filename = g_path_get_basename(selected); gtk_label_set_text(dirname_label, dirname); gtk_label_set_text(filename_label, filename); g_free(dirname); g_free(filename); thumb = get_thumbnail(selected, NULL); gtk_image_set_from_pixbuf(preview, thumb); return FALSE; } #include "glade_image_nr.c" gboolean menu_image_nr(void) { GtkDialog *dialog; GtkSpinButton *spin; gint response; gint len = get_list_length(); if (preview != NULL) { /* Currently displayed */ return FALSE; } if (len == 0) { /* No images */ return FALSE; } dialog = GTK_DIALOG(create_image_nr_dialog()); spin = g_object_get_data(G_OBJECT(dialog), "spinbutton"); dirname_label = g_object_get_data(G_OBJECT(dialog), "dirname"); filename_label = g_object_get_data(G_OBJECT(dialog), "filename"); preview = g_object_get_data(G_OBJECT(dialog), "image"); gtk_spin_button_set_range(spin, len != 0, len); if (current_image != NULL) { gint im_nr = get_image_number(current_image); gtk_spin_button_set_value(spin, (gdouble) im_nr + 1.0); } on_image_nr_value_changed(spin); response = run_modal_dialog(dialog); gtk_widget_destroy(GTK_WIDGET(dialog)); preview = NULL; if (response == GTK_RESPONSE_OK) menu_load(selected); return FALSE; } gliv-1.9.7/src/callbacks.c0000644000076400007640000003121711465576131012626 0ustar gg/* * 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. * * See the COPYING file for license information. * * Guillaume Chazarain */ /**************************************************************** * Callbacks to control the gl_widget through its parent window * ****************************************************************/ #include /* GDK_* */ #include "gliv.h" #include "callbacks.h" #include "math_floats.h" /* atan2f(), powf() */ #include "options.h" #include "rendering.h" #include "params.h" #include "main.h" #include "zoom_frame.h" #include "move_pointer.h" #include "matrix.h" #include "cursors.h" #include "next_image.h" #include "gliv-image.h" extern rt_struct *rt; extern options_struct *options; extern GlivImage *current_image; extern GtkWidget *gl_widget; /* Left button saved position in the root window. */ static gfloat old1_root_x, old1_root_y; /* Where the left button press occurred in the window. */ static gfloat press1_win_x, press1_win_y; /* Where the middle button press occurred in the window. */ static gfloat press2_win_x, press2_win_y; /* Right button saved position in the window. */ static gint old3_win_x, old3_win_y; /* If the middle button is released. */ static gboolean mouse_wheel_zoom = TRUE; static gboolean button_press_event(GtkWidget * unused, GdkEventButton * event) { if (current_image == NULL) return FALSE; switch (event->button) { case 1: old1_root_x = event->x_root; old1_root_y = event->y_root; press1_win_x = event->x; press1_win_y = event->y; break; case 2: mouse_wheel_zoom = FALSE; press2_win_x = event->x; press2_win_y = event->y; break; case 3: /* We now have one of the zoom rectangle vertex. */ old3_win_x = (gint) event->x; old3_win_y = (gint) event->y; break; } return FALSE; } #define CHANGE_IMAGE_SCREEN_RATIO 20 static void detect_image_change(GdkEventButton * event) { int dx = event->x - press2_win_x; int dy = event->y - press2_win_y; int dir = 0; if (!(event->state & GDK_CONTROL_MASK)) return; if (dx > rt->scr_width / CHANGE_IMAGE_SCREEN_RATIO || dy > rt->scr_height / CHANGE_IMAGE_SCREEN_RATIO) dir = 1; else if (-dx > rt->scr_width / CHANGE_IMAGE_SCREEN_RATIO || -dy > rt->scr_height / CHANGE_IMAGE_SCREEN_RATIO) dir = -1; if (dir) load_direction(dir); } static gboolean button_release_event(GtkWidget * unused, GdkEventButton * event) { if (current_image == NULL) return FALSE; switch (event->button) { case 1: refresh(APPEND_HISTORY); break; case 2: mouse_wheel_zoom = TRUE; detect_image_change(event); break; case 3: zoom_frame(); } return FALSE; } /* Checks whether the pointer is on a border then moves it and returns TRUE. */ static gboolean warp_pointer(gfloat x, gfloat y) { gboolean warped; gint new_x, new_y; if (x <= 0.0) { new_x = rt->scr_width - 1; warped = TRUE; } else if (x >= rt->scr_width - 1.0) { new_x = 0; warped = TRUE; } else { new_x = (gint) x; warped = FALSE; } if (y <= 0.0) { new_y = rt->scr_height - 1; warped = TRUE; } else if (y >= rt->scr_height - 1.0) { new_y = 0; warped = TRUE; } else new_y = (gint) y; if (warped) move_pointer(new_x, new_y); return warped; } /* * Remember the pointer position to know the sliding distance, the angle, * or the zoom when the first button is pressed. */ static void update_coordinates1(GdkEventMotion * event) { old1_root_x = event->x_root; old1_root_y = event->y_root; } static gint process_move(GdkEventMotion * event) { gfloat root_x, root_y; root_x = event->x_root; root_y = event->y_root; matrix_move(root_x - old1_root_x, root_y - old1_root_y); return REFRESH_BURST; } static gint process_rotation(GdkEventMotion * event) { gfloat center_x, center_y, x0, y0, x1, y1, angle; gint win_x, win_y; gdk_window_get_root_origin(gl_widget->window, &win_x, &win_y); /* Window center in root coordinates. */ center_x = win_x + rt->wid_size->width / 2.0; center_y = win_y + rt->wid_size->height / 2.0; /* First rotation vector. */ x0 = old1_root_x - center_x; y0 = old1_root_y - center_y; /* Second rotation vector. */ x1 = event->x_root - center_x; y1 = event->y_root - center_y; angle = atan2f(y0, x0) + atan2f(x1, y1) - PI / 2.0; matrix_rotate(angle); return REFRESH_BURST | REFRESH_STATUS; } static gint process_zoom(GdkEventMotion * event) { gfloat center_x, center_y, delta, ratio; delta = event->y_root - old1_root_y; ratio = powf(ZOOM_FACTOR, delta / 10.0); if (options->zoom_pointer) { center_x = press1_win_x; center_y = press1_win_y; } else { center_x = rt->wid_size->width / 2.0; center_y = rt->wid_size->height / 2.0; } matrix_zoom(ratio, center_x, center_y); return REFRESH_BURST | REFRESH_STATUS; } static gboolean motion_notify_event(GtkWidget * unused, GdkEventMotion * event) { /* move_pointer() generates a motion_notify_event, useless here. */ static gboolean skip = FALSE; gint what = 0; if (skip) { /* We come just after a move_pointer(). */ skip = FALSE; update_coordinates1(event); return TRUE; } if (rt->cursor_hidden) show_cursor(); else schedule_hide_cursor(); if (current_image == NULL) return FALSE; if (event->state & GDK_BUTTON1_MASK) { if (event->state & (GDK_CONTROL_MASK | GDK_SHIFT_MASK)) { if (event->state & GDK_CONTROL_MASK) what = process_rotation(event); if (event->state & GDK_SHIFT_MASK) what |= process_zoom(event); } else what = process_move(event); refresh(what); update_coordinates1(event); skip = warp_pointer(event->x_root, event->y_root); } else if (event->state & GDK_BUTTON3_MASK) { /* We draw the zoom rectangle. */ set_zoom_frame(old3_win_x, old3_win_y, (gint) event->x - old3_win_x, (gint) event->y - old3_win_y); draw_zoom_frame(); } return TRUE; } /* Called when pressing an arrow key. */ static void move_or_rotate(guint state, gfloat x, gfloat y, gfloat angle) { guint what = REFRESH_IMAGE | APPEND_HISTORY; if (state & GDK_CONTROL_MASK) { matrix_rotate(angle); what |= REFRESH_STATUS; } else matrix_move(x, y); refresh(what); } /* Mask to keep track of which arrow keys are pressed. */ #define ARROW_UP (1 << 0) #define ARROW_LEFT (1 << 1) #define ARROW_RIGHT (1 << 2) #define ARROW_DOWN (1 << 3) /* Called twice to know how far we move in the two directions. */ static gfloat get_arrow_move(guint state, guint flag_pos, guint flag_neg) { guint flags; flags = state & (flag_pos | flag_neg); if (flags == (flag_pos | flag_neg) || flags == 0) /* Both keys are pressed, or none => don't move. */ return 0.0; if (state & flag_pos) /* Left or up. */ return MOVE_OFFSET; /* Right or down. */ return -MOVE_OFFSET; } /* An arrow key or something else was either pressed or released. */ static gboolean process_arrow_key(GdkEventKey * event, gboolean press) { static guint arrow_state = 0; guint arrow; gfloat x, y, angle; if (current_image == NULL) return FALSE; switch (event->keyval) { case GDK_Up: case GDK_KP_Up: arrow = ARROW_UP; angle = BIG_ROTATION; break; case GDK_Left: case GDK_KP_Left: arrow = ARROW_LEFT; angle = SMALL_ROTATION; break; case GDK_Right: case GDK_KP_Right: arrow = ARROW_RIGHT; angle = -SMALL_ROTATION; break; case GDK_Down: case GDK_KP_Down: arrow = ARROW_DOWN; angle = -BIG_ROTATION; break; default: /* Key not found, try a keyboard accelerator. */ return FALSE; } if (press) arrow_state |= arrow; else arrow_state &= ~arrow; if (press) { x = get_arrow_move(arrow_state, ARROW_LEFT, ARROW_RIGHT); y = get_arrow_move(arrow_state, ARROW_UP, ARROW_DOWN); move_or_rotate(event->state, x, y, angle); } return TRUE; } static gboolean key_press_event(GtkWidget * unused, GdkEventKey * event) { /* Most keys are handled via keyboard accelerators. */ switch (event->keyval) { case GDK_Escape: gui_quit(); break; case GDK_KP_Space: case GDK_space: case GDK_Page_Down: case GDK_KP_Page_Down: load_direction(1); break; case GDK_BackSpace: case GDK_Page_Up: case GDK_KP_Page_Up: load_direction(-1); break; case GDK_KP_Subtract: zoom_in(1.0 / ZOOM_FACTOR); break; case GDK_KP_Add: case GDK_equal: zoom_in(ZOOM_FACTOR); break; default: /* Key not found, try an arrow key, */ return process_arrow_key(event, TRUE); } return TRUE; } static gboolean key_release_event(GtkWidget * unused, GdkEventKey * event) { return process_arrow_key(event, FALSE); } static gboolean scroll_event(GtkWidget * unused, GdkEventScroll * event) { if (current_image == NULL) return FALSE; if (mouse_wheel_zoom) { if (event->direction == GDK_SCROLL_UP) zoom_in(1.0 / ZOOM_FACTOR); else if (event->direction == GDK_SCROLL_DOWN) zoom_in(ZOOM_FACTOR); } else { /* mouse_wheel_zoom == FALSE */ if (event->direction == GDK_SCROLL_UP) load_direction(-1); else if (event->direction == GDK_SCROLL_DOWN) load_direction(1); } return TRUE; } void install_callbacks(gpointer object) { g_signal_connect(object, "button-press-event", G_CALLBACK(button_press_event), NULL); g_signal_connect(object, "button-release-event", G_CALLBACK(button_release_event), NULL); g_signal_connect(object, "motion-notify-event", G_CALLBACK(motion_notify_event), NULL); g_signal_connect(object, "key-press-event", G_CALLBACK(key_press_event), NULL); g_signal_connect(object, "key-release-event", G_CALLBACK(key_release_event), NULL); g_signal_connect(object, "delete-event", G_CALLBACK(gui_quit), NULL); g_signal_connect(object, "scroll-event", G_CALLBACK(scroll_event), NULL); g_signal_connect_after(object, "button-press-event", G_CALLBACK(set_correct_cursor), NULL); g_signal_connect_after(object, "button-release-event", G_CALLBACK(set_correct_cursor), NULL); g_signal_connect_after(object, "key-press-event", G_CALLBACK(set_correct_cursor), NULL); g_signal_connect_after(object, "key-release-event", G_CALLBACK(set_correct_cursor), NULL); g_signal_connect_after(object, "focus-in-event", G_CALLBACK(set_correct_cursor), NULL); } static gboolean finish(gpointer data) { gboolean *b = data; *b = TRUE; return FALSE; } /* * We call process_events() when rebuilding the images menus and to wait for a * refresh. */ void process_events(void) { GTimeVal beginning, now; gint delay = 0; gboolean stop = FALSE; if (!gtk_events_pending()) return; g_idle_add(finish, &stop); g_get_current_time(&beginning); while (!stop && delay < G_USEC_PER_SEC / 10 && gtk_events_pending()) { gtk_main_iteration_do(FALSE); g_get_current_time(&now); delay = (now.tv_sec - beginning.tv_sec) * G_USEC_PER_SEC + now.tv_usec - beginning.tv_usec; } if (!stop) g_idle_remove_by_data(&stop); } gliv-1.9.7/src/strnatcmp.c0000644000076400007640000000646011465576131012724 0ustar gg/* -*- mode: c; c-file-style: "k&r" -*- strnatcmp.c -- Perform 'natural order' comparisons of strings in C. Copyright (C) 2000, 2004 by Martin Pool This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. */ /* Modified by Guillaume Chazarain in order to be integrated in GLiv */ #include #include #include #include #include "strnatcmp.h" static int compare_right(const char *a, const char *b) { int bias = 0; /* The longest run of digits wins. That aside, the greatest value wins, but we can't know that it will until we've scanned both numbers to know that they have the same magnitude, so we remember it in BIAS. */ for (;; a++, b++) { if (!isdigit(*a)) return isdigit(*b) ? -1 : bias; else if (!isdigit(*b)) return +1; else if (*a < *b) { if (!bias) bias = -1; } else if (*a > *b) { if (!bias) bias = +1; } else if (!*a && !*b) return bias; } return 0; } static int compare_left(const char *a, const char *b) { /* Compare two left-aligned numbers: the first to have a different value wins. */ for (;; a++, b++) { if (!isdigit(*a)) return !isdigit(*b) - 1; else if (!isdigit(*b)) return +1; else if (*a < *b) return -1; else if (*a > *b) return +1; } return 0; } int strnatcmp(const char *a, const char *b) { int ai, bi; char ca, cb; int fractional, result; ai = bi = 0; while (1) { ca = a[ai]; cb = b[bi]; /* skip over leading spaces or zeros */ while (isspace(ca)) ca = a[++ai]; while (isspace(cb)) cb = b[++bi]; /* process run of digits */ if (isdigit(ca) && isdigit(cb)) { fractional = (ca == '0' || cb == '0'); if (fractional) { if ((result = compare_left(a + ai, b + bi)) != 0) return result; } else { if ((result = compare_right(a + ai, b + bi)) != 0) return result; } } if (!ca && !cb) { /* The strings compare the same. Perhaps the caller will want to call strcmp to break the tie. */ return 0; } if (ca < cb) return -1; else if (ca > cb) return +1; ++ai; ++bi; } } gliv-1.9.7/src/zoom_frame.c0000644000076400007640000001120111465576131013034 0ustar gg/* * 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. * * See the COPYING file for license information. * * Guillaume Chazarain */ /************************************ * The zoom frame with funky colors * ************************************/ #include "gliv.h" #include "zoom_frame.h" #include "options.h" #include "rendering.h" #include "matrix.h" #include "opengl.h" extern rt_struct *rt; extern GtkWidget *gl_widget; /* Dimensions of the zoom frame. */ static gint zoom_frame_x, zoom_frame_y; static gint zoom_frame_width, zoom_frame_height; static gboolean zoom_frame_cleared = FALSE; #define TARGET_SIZE 10 /* This the box with the cross and the circle in it. */ static void draw_zoom_box(GdkDrawable * d, GdkGC * gc, gint x, gint y, gint w, gint h, gboolean clear) { static gint target = 0; gdk_draw_rectangle(d, gc, FALSE, x, y, w, h); if (w > TARGET_SIZE * 2 && h > TARGET_SIZE * 2) { gint x_middle = x + w / 2; gint y_middle = y + h / 2; /* If we are clearing, we must reuse the same parameters. */ if (clear == FALSE) { target += 320; if (target == 180 * 64) target = 0; } gdk_draw_line(d, gc, x_middle, y_middle - TARGET_SIZE / 3, x_middle, y_middle + TARGET_SIZE / 3); gdk_draw_line(d, gc, x_middle - TARGET_SIZE / 3, y_middle, x_middle + TARGET_SIZE / 3, y_middle); gdk_draw_arc(d, gc, FALSE, x_middle - TARGET_SIZE, y_middle - TARGET_SIZE, TARGET_SIZE * 2, TARGET_SIZE * 2, target, 90 * 64); gdk_draw_arc(d, gc, FALSE, x_middle - TARGET_SIZE, y_middle - TARGET_SIZE, TARGET_SIZE * 2, TARGET_SIZE * 2, target + 180 * 64, 90 * 64); } } void draw_zoom_frame(void) { /* * We keep the coordinates of the previous * frame to erase it with a XOR. */ static gint x = 0; static gint y = 0; static gint width = 0; static gint height = 0; static GdkGC *gc = NULL; GdkDrawable *d; d = gl_widget->window; if (gc == NULL) { /* First time. */ gc = gdk_gc_new(d); gdk_gc_set_foreground(gc, &(gl_widget->style->white)); gdk_gc_set_function(gc, GDK_XOR); } /* Erase the previous frame. */ draw_zoom_box(d, gc, x, y, width, height, TRUE); /* Update saved coordinates. */ x = zoom_frame_x; y = zoom_frame_y; width = zoom_frame_width; height = zoom_frame_height; /* Draw the new frame. */ draw_zoom_box(d, gc, x, y, width, height, FALSE); zoom_frame_cleared = FALSE; gdk_gl_drawable_wait_gdk(gtk_widget_get_gl_drawable(gl_widget)); } void set_zoom_frame(gint x, gint y, gint width, gint height) { if (width < 0) { zoom_frame_x = x + width; zoom_frame_width = -width; } else { zoom_frame_x = x; zoom_frame_width = width; } if (height < 0) { zoom_frame_y = y + height; zoom_frame_height = -height; } else { zoom_frame_y = y; zoom_frame_height = height; } } void clear_zoom_frame(void) { if (zoom_frame_cleared == FALSE) { set_zoom_frame(-1, -1, 0, 0); draw_zoom_frame(); zoom_frame_cleared = TRUE; } } void zoom_frame(void) { gfloat x, y, zoom; if (zoom_frame_width == 0 || zoom_frame_height == 0) { /* To avoid division by zero. */ set_zoom_frame(-1, -1, 0, 0); draw_zoom_frame(); return; } zoom = MIN((gfloat) rt->wid_size->width / zoom_frame_width, (gfloat) rt->wid_size->height / zoom_frame_height); x = zoom_frame_x + zoom_frame_width / 2.0; y = zoom_frame_y + zoom_frame_height / 2.0; /* zoom. */ matrix_zoom(zoom, x, y); /* center. */ matrix_move(rt->wid_size->width / 2.0 - x, rt->wid_size->height / 2.0 - y); refresh(REFRESH_IMAGE | REFRESH_STATUS | APPEND_HISTORY); } gliv-1.9.7/src/pathset.c0000644000076400007640000000460411465576131012357 0ustar gg/* * 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. * * See the COPYING file for license information. * * Guillaume Chazarain */ /*************************************************** * A data structure to keep track of visited files * ***************************************************/ #include /* dev_t, ino_t */ #include /* struct stat, stat() */ #include /* perror() */ #include "gliv.h" #include "pathset.h" /* * Files informations saved into * the AVL to uniquely identify them. */ typedef struct { dev_t dev; ino_t ino; } file_info; /* To build and search the AVL. */ static gint cmp_func(const file_info * file1, const file_info * file2) { if (file1->ino < file2->ino) return -1; if (file1->ino > file2->ino) return 1; if (file1->dev < file2->dev) return -1; return file1->dev > file2->dev; } struct pathset *pathset_new(void) { struct pathset *set = g_new(struct pathset, 1); set->tree = g_tree_new_full((GCompareDataFunc) cmp_func, NULL, g_free, NULL); return set; } /* Return TRUE if the file has been correctly inserted. */ gboolean pathset_add(struct pathset * set, const gchar * path) { struct stat st; file_info *file; if (stat(path, &st) < 0) { perror(path); return FALSE; } file = g_new(file_info, 1); file->dev = st.st_dev; file->ino = st.st_ino; if (g_tree_lookup(set->tree, file) != NULL) { g_free(file); return FALSE; } g_tree_insert(set->tree, file, file); return TRUE; } void pathset_free(struct pathset *set) { g_tree_destroy(set->tree); g_free(set); } gliv-1.9.7/src/dirty_gtk.c0000644000076400007640000000534311465576131012710 0ustar gg/* Even the GPL header does not want to be associated with "that". */ #include "gliv.h" #include "dirty_gtk.h" /* * This is the only way I found to build a menu with N items in O(N) * time instead of O(N²). */ #define CHILDREN(dirty_menu) GTK_MENU_SHELL((dirty_menu)->gtk_menu)->children DirtyGtkMenu *dirty_gtk_menu_new(void) { DirtyGtkMenu *menu = g_new(DirtyGtkMenu, 1); menu->gtk_menu = GTK_MENU(gtk_menu_new()); menu->tearoff = GTK_TEAROFF_MENU_ITEM(gtk_tearoff_menu_item_new()); gtk_menu_append(menu->gtk_menu, GTK_WIDGET(menu->tearoff)); menu->last_child = g_list_last(CHILDREN(menu)); return menu; } void dirty_gtk_menu_append(DirtyGtkMenu * menu, GtkWidget * item) { GList *children = CHILDREN(menu); menu->last_child = g_list_last(menu->last_child); CHILDREN(menu) = menu->last_child; gtk_menu_shell_append(GTK_MENU_SHELL(menu->gtk_menu), item); CHILDREN(menu) = children; } GtkTearoffMenuItem *dirty_gtk_menu_get_tearoff(DirtyGtkMenu * menu) { return menu->tearoff; } void dirty_gtk_menu_release(DirtyGtkMenu * menu) { g_free(menu); } /*** ::grab-notify ***/ /* * This is borrowed from gtk+-2, without the gtk_grab_notify() calls. * They slow down things a lot when the images menus are built with many files. */ GtkWindowGroup *_gtk_window_get_group(GtkWindow * window) { if (window && window->group) return window->group; else { static GtkWindowGroup *default_group = NULL; if (!default_group) default_group = gtk_window_group_new(); return default_group; } } static GtkWindowGroup *gtk_main_get_window_group(GtkWidget * widget) { GtkWidget *toplevel = NULL; if (widget) toplevel = gtk_widget_get_toplevel(widget); if (toplevel && GTK_IS_WINDOW(toplevel)) return _gtk_window_get_group(GTK_WINDOW(toplevel)); else return _gtk_window_get_group(NULL); } void gtk_grab_add(GtkWidget * widget) { GtkWindowGroup *group; g_return_if_fail(widget != NULL); if (!GTK_WIDGET_HAS_GRAB(widget) && GTK_WIDGET_IS_SENSITIVE(widget)) { GTK_WIDGET_SET_FLAGS(widget, GTK_HAS_GRAB); group = gtk_main_get_window_group(widget); g_object_ref(widget); group->grabs = g_slist_prepend(group->grabs, widget); /* gtk_grab_notify (group, widget, FALSE); */ } } void gtk_grab_remove(GtkWidget * widget) { GtkWindowGroup *group; g_return_if_fail(widget != NULL); if (GTK_WIDGET_HAS_GRAB(widget)) { GTK_WIDGET_UNSET_FLAGS(widget, GTK_HAS_GRAB); group = gtk_main_get_window_group(widget); group->grabs = g_slist_remove(group->grabs, widget); g_object_unref(widget); /* gtk_grab_notify (group, widget, TRUE); */ } } gliv-1.9.7/src/Makefile.am0000644000076400007640000001224511465576131012577 0ustar ggbin_PROGRAMS = gliv gliv_SOURCES = include/about.h \ actions.c include/actions.h \ include/all_cursors.h \ callbacks.c include/callbacks.h \ cmdline.c include/cmdline.h \ collection.c include/collection.h \ cursors.c include/cursors.h \ decompression.c include/decompression.h \ dirty_gtk.c include/dirty_gtk.h \ dithering.c include/dithering.h \ files_list.c include/files_list.h \ foreach_file.c include/foreach_file.h \ formats.c include/formats.h \ include/gettext.h \ gl_widget.c include/gl_widget.h \ include/glade_actions.h \ include/glade_image_nr.h \ include/glade_options.h \ gliv-image.c include/gliv-image.h \ include/gliv.h \ include/gliv_logo.h \ help.c include/help.h \ help_text.c include/help_text.h \ history.c include/history.h \ images_menus.c include/images_menus.h \ ipc.c include/ipc.h \ include/large_files.h \ loading.c include/loading.h \ main.c include/main.h \ include/math_floats.h \ matrix.c include/matrix.h \ menus.c include/menus.h \ include/messages.h \ mnemonics.c include/mnemonics.h \ move_pointer.c include/move_pointer.h \ next_image.c include/next_image.h \ open_dialog.c include/open_dialog.h \ include/opengl.h \ include/opengl_wrapper.h \ options.c include/options.h \ include/params.h \ pathset.c include/pathset.h \ rcfile.c include/rcfile.h \ rendering.c include/rendering.h \ scrollbars.c include/scrollbars.h \ str_utils.c include/str_utils.h \ strnatcmp.c include/strnatcmp.h \ include/texture_map.h \ textures.c include/textures.h \ thread.c include/thread.h \ thumbnails.c include/thumbnails.h \ tiling.c include/tiling.h \ timestamp.c include/timestamp.h \ transition.c include/transition.h \ tree.c include/tree.h \ tree_browser.c include/tree_browser.h \ windows.c include/windows.h \ zoom_frame.c include/zoom_frame.h if NEED_REPLACEMENTS gliv_DEPENDENCIES = ../lib/libreplacements.a gliv_LDADD = -L../lib -lreplacements endif AM_CPPFLAGS = -I$(srcdir)/include -D_REENTRANT -D_THREAD_SAFE \ -DSYSCONFDIR=\"$(sysconfdir)\" datadir = @datadir@ localedir = $(datadir)/locale DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@ EXTRA_DIST = glade_actions.c glade_image_nr.c glade_options.c autogenerated include/all_cursors.h: $(top_srcdir)/tools/cursors/*.xbm cat $(top_srcdir)/tools/cursors/*.xbm | sed 's/unsigned //g' > $@ cmdline.c include/cmdline.h: $(top_srcdir)/tools/gliv.ggo gengetopt --input=$< --unamed-opts --no-handle-error && \ mv cmdline.h include/ formats.c: $(top_srcdir)/tools/formats.gperf gperf -n --multiple-iterations 64 --output $@ $< help_text.c: $(top_srcdir)/README $(top_srcdir)/tools/help2c.awk awk -f $(top_srcdir)/tools/help2c.awk < $(top_srcdir)/README > $@ glade_actions.c include/glade_actions.h: $(top_srcdir)/tools/glade/actions/gliv-actions.glade cd $(top_srcdir)/tools/glade/actions && ./make_glade_actions.sh glade_image_nr.c include/glade_image_nr.h: $(top_srcdir)/tools/glade/image_nr/gliv-image_nr.glade cd $(top_srcdir)/tools/glade/image_nr && ./make_glade_image_nr.sh glade_options.c include/glade_options.h: $(top_srcdir)/tools/glade/options/gliv-options.glade cd $(top_srcdir)/tools/glade/options && ./make_glade_options.sh gliv-image.c include/gliv-image.h: $(top_srcdir)/tools/gliv-image.gob gob2 $< && mv gliv-image.h include/ include/gliv_logo.h: $(top_srcdir)/gliv.svg (echo '/* Auto-generated */'; gdk-pixbuf-csource --struct --static \ --name=gliv_logo $<) > $@ gliv-1.9.7/src/loading.c0000644000076400007640000002371611465576131012331 0ustar gg/* * 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. * * See the COPYING file for license information. * * Guillaume Chazarain */ /*********************************** * Loading and unloading of images * ***********************************/ #include /* FILE, fopen(), fread(), fclose(), perror() */ #include /* signal(), SIG_DFL, SIGSEGV */ #include /* strlen(), strrchr() */ #include "gliv.h" #include "loading.h" #include "options.h" #include "gliv-image.h" #include "messages.h" #include "str_utils.h" #include "formats.h" #include "params.h" #include "files_list.h" #include "textures.h" #include "math_floats.h" #include "thread.h" #include "decompression.h" #include "thumbnails.h" #include "rendering.h" #include "tree_browser.h" extern rt_struct *rt; extern options_struct *options; extern GlivImage *current_image; /* Used to know at any time if we are loading an image. */ static gchar *loading_filename = NULL; /* * Used to be quiet when we try to load files * not explicitly requested by the user. */ static gint quiet = 0; void start_quiet(void) { quiet++; } void stop_quiet(void) { quiet--; } const gchar *currently_loading(void) { return loading_filename; } static void segv_handler(gint sig) { const gchar *sig_str; signal(sig, SIG_DFL); sig_str = g_strsignal(sig); if (loading_filename == NULL) g_printerr(_("%s not while loading an image\n"), sig_str); else g_printerr(_("%s while loading %s\n"), sig_str, loading_filename); raise(sig); } /* Called when the first image is loaded. */ void install_segv_handler(void) { signal(SIGSEGV, segv_handler); } void fill_ident(GlivImage * im) { gchar *alpha_str = NULL; gint im_nr; g_free(im->ident); if (im->has_alpha) alpha_str = g_strconcat(" (", _("alpha channel"), ")", NULL); else alpha_str = g_strdup(""); im_nr = get_image_number(im); im->ident = g_strdup_printf("%s (%u/%u)%s", im->node ? filename_to_utf8(im->node->data) : "", im_nr + 1, get_list_length(), alpha_str); g_free(alpha_str); } const gchar *get_extension(const gchar * filename) { const gchar *ext; const gchar *basename; basename = strrchr(filename, '/'); if (basename == NULL) basename = filename; else basename++; ext = strrchr(basename, '.'); if (ext != NULL) /* Skip the '.' */ ext++; return ext; } #define LOADING_ERROR if (!quiet) g_printerr static loader_t get_decompressor(const gchar * filename, gint ext_len) { const struct format *res; /* We want the image extension between image_ext_start and image_ext_end. */ const gchar *image_ext_end = filename + strlen(filename) - ext_len - 1; const gchar *image_ext_start = image_ext_end - 1; gint image_ext_length = 0; gchar *image_ext; while (image_ext_start > filename && *image_ext_start != '.') { image_ext_length++; image_ext_start--; } image_ext = g_strndup(image_ext_start + 1, image_ext_length); res = ext_to_loader(image_ext, image_ext_length); g_free(image_ext); if (res == NULL) { LOADING_ERROR(_("%s: unknown decompressed extension\n"), filename_to_utf8(filename)); return LOADER_NONE; } switch (res->loader) { case LOADER_DECOMP: LOADING_ERROR(_("%s: image cannot be compressed twice\n"), filename_to_utf8(filename)); return LOADER_NONE; case LOADER_PIXBUF: return LOADER_DECOMP_PIXBUF; case LOADER_DOT_GLIV: return LOADER_DECOMP_DOT_GLIV; default: return LOADER_NONE; } } loader_t get_loader(const gchar * filename) { const struct format *res; const gchar *ext; gint ext_len; ext = get_extension(filename); if (ext == NULL) { LOADING_ERROR(_("%s: unknown extension (none)\n"), filename_to_utf8(filename)); return LOADER_NONE; } ext_len = strlen(ext); res = ext_to_loader(ext, ext_len); if (res == NULL) { LOADING_ERROR(_("%s: unknown extension\n"), filename_to_utf8(filename)); return LOADER_NONE; } if (res->loader == LOADER_DECOMP) return get_decompressor(filename, ext_len); return res->loader; } #if 0 /* * We used to blacken image pixels with alpha == 0. * These pixels are invisible but may alter the bilinear filtering. * We have stopped doing it since the time lost is too big for the benefit. */ static void clean_alpha(GdkPixbuf * pixbuf) { guchar *pixel, *end; pixel = gdk_pixbuf_get_pixels(pixbuf); end = pixel + pixels_size(pixels_size); for (; pixel < end; pixel += 4) { if (pixel[3] == 0) /* * alpha == 0 * This is not valid C since a cast cannot be a lvalue but... */ *((guint32 *) pixel) = 0; } } #endif void set_loading(const gchar * filename) { /* Used if there is a segfault. */ g_free(loading_filename); loading_filename = g_strdup(filename); update_current_image_status(FALSE); if (filename == NULL) /* * Do it, now that we are no more in * the currently_loading() case */ load_later(); } /* Wrapper: two args -> one arg. */ typedef struct { const gchar *filename; GError **error; } fname_error; static GdkPixbuf *load_gdk_pixbuf(fname_error * param) { GdkPixbuf *pixbuf = NULL; loader_t loader; loader = get_loader(param->filename); if (loader == LOADER_DECOMP_PIXBUF) pixbuf = load_compressed_pixbuf(param->filename, param->error); if (*param->error) return pixbuf; if (pixbuf == NULL) pixbuf = gdk_pixbuf_new_from_file(param->filename, param->error); return pixbuf; } static GdkPixbuf *load_gdk_pixbuf_threaded(const gchar * filename, GError ** error) { fname_error *param; GdkPixbuf *pixbuf; param = g_new(fname_error, 1); param->filename = filename; param->error = (error == NULL) ? g_new(GError *, 1) : error; *param->error = NULL; pixbuf = do_threaded((GThreadFunc) load_gdk_pixbuf, param); if (pixbuf == NULL) { if (error == NULL) { /* * The caller won't handle the error, handle it here */ if (*param->error != NULL) DIALOG_MSG("%s", (*param->error)->message); else DIALOG_MSG(_("Cannot load %s"), filename); } } else add_thumbnail(filename, pixbuf); g_free(param); return pixbuf; } gint pixels_size(GdkPixbuf * pixbuf) { /* The last rowstride may not be full. */ gint w = gdk_pixbuf_get_width(pixbuf); gint h = gdk_pixbuf_get_height(pixbuf); gint rs = gdk_pixbuf_get_rowstride(pixbuf); gint nb_chan = gdk_pixbuf_get_n_channels(pixbuf); gint bps = gdk_pixbuf_get_bits_per_sample(pixbuf); return ((h - 1) * rs + w * ((nb_chan * bps + 7) / 8)); } G_GNUC_PURE static gint nb_maps(gint dim) { gint ret = 1; while (dim > rt->max_texture_size) { dim *= MIPMAP_RATIO; ret++; } return ret; } static void parse_exif_orientation(GdkPixbuf * pixbuf, GlivImage *im) { const gchar *orientation_str = gdk_pixbuf_get_option(pixbuf, "orientation"); if (orientation_str) switch (orientation_str[0]) { case '2': im->initial_angle = PI; im->initial_h_flip = TRUE; break; case '3': im->initial_angle = PI; break; case '4': im->initial_h_flip = TRUE; break; case '5': im->initial_angle = PI / 2.0; im->initial_h_flip = TRUE; break; case '6': im->initial_angle = -PI / 2.0; break; case '7': im->initial_angle = -PI / 2.0; im->initial_h_flip = TRUE; break; case '8': im->initial_angle = PI / 2.0; break; } } GlivImage *make_gliv_image(GdkPixbuf * pixbuf) { GlivImage *im; im = gliv_image_new(); im->ident = NULL; im->number = -1; im->node = NULL; im->first_image = (current_image == NULL); im->width = gdk_pixbuf_get_width(pixbuf); im->height = gdk_pixbuf_get_height(pixbuf); im->has_alpha = gdk_pixbuf_get_has_alpha(pixbuf); parse_exif_orientation(pixbuf, im); if (options->mipmap) { gint nb_w = nb_maps(im->width); gint nb_h = nb_maps(im->height); im->nb_maps = MIN(nb_w, nb_h); } else im->nb_maps = 1; im->maps = g_new(texture_map, im->nb_maps); im->maps[0].pixbuf = pixbuf; #if 0 if (im->has_alpha) clean_alpha(pixbuf); #endif create_maps(im); return im; } GlivImage *load_file(const gchar * filename, GError ** error) { GdkPixbuf *loaded_image; GlivImage *im = NULL; set_loading(filename_to_utf8(filename)); loaded_image = load_gdk_pixbuf_threaded(filename, error); if (loaded_image != NULL) im = make_gliv_image(loaded_image); set_loading(NULL); return im; } gliv-1.9.7/src/tree.c0000644000076400007640000002172611465576131011652 0ustar gg/* * 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. * * See the COPYING file for license information. * * Guillaume Chazarain */ /************************************************************ * The filenames tree, shown in images menus and serialized * ************************************************************/ #include /* strchr(), strrchr(), strlen() */ #include "gliv.h" #include "tree.h" #include "str_utils.h" #include "files_list.h" #include "timestamp.h" /* Last made tree. */ static GNode *last_tree = NULL; /* Its creation date. */ static DECLARE_TIMESTAMP(timestamp); /* We make sure there is only one user. */ static volatile gboolean cancel = FALSE; G_LOCK_DEFINE_STATIC(tree); void end_using_tree(void) { cancel = FALSE; G_UNLOCK(tree); } gboolean cancel_using_tree(void) { cancel = TRUE; return FALSE; } gboolean canceled_using_tree(void) { return cancel; } /* Constructor. */ static tree_item *new_item(gchar * name, gchar * path) { tree_item *item; item = g_new(tree_item, 1); item->name = name; item->path = path; item->thumb_key = NULL; item->thumb = NULL; return item; } typedef enum { DIR_PARENT, DIR_EQUAL, DIR_DIFFERENT } dir_type; /* Whether dir1 is parent, equal or different from the dir where file2 is. */ static dir_type dir_wrt_file(const gchar * dir1, const gchar * file2) { const gchar *ptr1; gchar *ptr2, *last_slash; dir_type res; if (dir1[0] == '\0') /* dir1 == "". */ return DIR_PARENT; if (dir1[0] == '/' && dir1[1] == '\0' && file2[0] == '/') /* dir1 == "/" and file2 == "/...". */ return strchr(file2 + 1, '/') == NULL ? DIR_EQUAL : DIR_PARENT; /* We temporarily cut the filename to have the dirname. */ ptr2 = (gchar *) file2; last_slash = strrchr(file2, '/'); if (last_slash) *last_slash = '\0'; ptr1 = dir1; /* Skip identical characters in the paths. */ while (*ptr1 != '\0' && *ptr1 == *ptr2) { ptr1++; ptr2++; } if (*ptr1 == *ptr2) res = DIR_EQUAL; else if (*ptr1 == '\0' && *ptr2 == '/') res = DIR_PARENT; else res = DIR_DIFFERENT; if (last_slash) *last_slash = '/'; return res; } /* When file == parent"/a/b/c...", it returns "a". */ static gchar *first_dir(const gchar * file, const gchar * parent) { const gchar *res; gint prefix_length; gchar *end; if (parent[0] == '\0' && file[0] == '/') return g_strdup("/"); prefix_length = common_prefix_length(file, parent); file += prefix_length; parent += prefix_length; /* Suppress the leading separator. */ if (file[0] == '/') file++; res = file; /* Keep only the first dir by looking for the second one, or the file */ end = strchr(file, '/'); /* and throwing it away. */ return g_strndup(res, end - res); } static void make_tree_rec(GNode * parent, gchar *** array_ptr) { gchar *this_dir; gchar *name, *path; GNode *node; tree_item *item; item = parent->data; this_dir = item->path; while (**array_ptr != NULL) { switch (dir_wrt_file(this_dir, **array_ptr)) { case DIR_PARENT: /* Subdirectory => add it, then recursive call. */ name = first_dir(**array_ptr, this_dir); path = g_build_filename(this_dir, name, NULL); item = new_item(name, path); node = g_node_new(item); g_node_append(parent, node); make_tree_rec(node, array_ptr); break; case DIR_EQUAL: /* Same directory => add the filename, stay in the loop. */ name = **array_ptr + strlen(this_dir); while (name[0] == '/') name++; item = new_item(g_strdup(name), **array_ptr); g_node_append_data(parent, item); /* I like stars :) */ do { (*array_ptr)++; } while (**array_ptr != NULL && g_str_equal(**array_ptr, *(*array_ptr - 1))); break; /* case DIR_DIFFERENT: */ default: /* Return from the recursive calls to find a common directory. */ return; } } } static gboolean destroy_node(GNode * node) { tree_item *item = node->data; if (G_NODE_IS_LEAF(node)) g_free(item->thumb_key); else g_free(item->path); g_free(item->name); g_free(item); return FALSE; } static void set_parent(GNode * node, gpointer parent) { node->parent = parent; } static void compress_node(GNode * node) { GNode *child; tree_item *item, *child_item; gchar *new_name; if (g_node_nth_child(node, 1) != NULL) /* More than one child */ return; item = node->data; child = g_node_first_child(node); child_item = child->data; /* Skip one level. */ g_node_children_foreach(child, G_TRAVERSE_ALL, set_parent, node); node->children = child->children; /* Concatenate the names. */ new_name = g_build_filename(item->name, child_item->name, NULL); g_free(item->name); item->name = new_name; /* Use the child path. */ g_free(item->path); item->path = child_item->path; child_item->path = NULL; /* Get rid of the compressed child. */ destroy_node(child); child->parent = NULL; child->children = NULL; g_node_destroy(child); } static gboolean to_utf8(GNode * node) { tree_item *item; gchar *converted; item = node->data; converted = (gchar *) filename_to_utf8(item->name); if (item->name != converted) { g_free(item->name); item->name = g_strdup(converted); } return FALSE; } /* * We change the tree structure so it is * safer to use our own traverse function. */ static void compress_tree(GNode * node) { if (G_NODE_IS_LEAF(node) == FALSE) { g_node_children_foreach(node, G_TRAVERSE_ALL, (GNodeForeachFunc) compress_tree, NULL); compress_node(node); } } static void print_tree(GNode * tree, gint level); /* Can we avoid rebuilding a tree? */ static gboolean last_tree_ok(void) { timestamp_t list_timestamp = get_list_timestamp(); if (last_tree == NULL) /* No tree to reuse. */ return FALSE; /* Check if the list has changed. */ return up_to_date(timestamp, list_timestamp); } gboolean more_recent_than_tree(timestamp_t ts) { if (last_tree_ok() == FALSE) return FALSE; return up_to_date(ts, timestamp); } GNode *make_tree(void) { GNode *tree; tree_item *item; gchar **array; gchar **array_ptr; if (G_TRYLOCK(tree) == FALSE) return NULL; cancel = FALSE; if (last_tree_ok()) return last_tree; invalidate_last_tree(); array_ptr = array = get_sorted_files_array(); if (array == NULL) { G_UNLOCK(tree); return NULL; } item = new_item(g_strdup(""), g_strdup("")); tree = g_node_new(item); /* Build the tree. */ while (*array_ptr != NULL) make_tree_rec(tree, &array_ptr); g_free(array); compress_tree(tree); g_node_traverse(tree, G_POST_ORDER, G_TRAVERSE_ALL, -1, (GNodeTraverseFunc) to_utf8, NULL); print_tree(tree, 0); last_tree = tree; touch(×tamp); return tree; } void destroy_tree(GNode * tree) { g_node_traverse(tree, G_POST_ORDER, G_TRAVERSE_ALL, -1, (GNodeTraverseFunc) destroy_node, NULL); g_node_destroy(tree); } void invalidate_last_tree(void) { if (last_tree) { destroy_tree(last_tree); last_tree = NULL; reset_timestamp(×tamp); } } static gboolean increment(GNode * unused, gint * count) { (*count)++; return FALSE; } gint tree_count_files(void) { gint count = 0; g_node_traverse(last_tree, G_IN_ORDER, G_TRAVERSE_LEAFS, -1, (GNodeTraverseFunc) increment, &count); return count; } static void print_tree(GNode * tree, gint level) { #if 0 gint i; tree_item *item = tree->data; for (i = 0; i < level; i++) printf(" "); printf("name: \"%s\", path: \"%s\"\n", item->name, item->path); level++; g_node_children_foreach(tree, G_TRAVERSE_ALL, print_tree, GINT_TO_POINTER(level)); #endif } gliv-1.9.7/src/thread.c0000644000076400007640000001175211465576131012160 0ustar gg/* * 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. * * See the COPYING file for license information. * * Guillaume Chazarain */ /******************* * Thread handling * *******************/ #include /* pipe() */ #include /* perror() */ #include /* _O_BINARY for MinGW */ #include "gliv.h" #include "thread.h" #include "messages.h" typedef struct { GThreadFunc function; gpointer argument; gpointer result; } running_data; typedef struct { GIOChannel *start_read; GIOChannel *start_write; GIOChannel *end_read; GIOChannel *end_write; volatile running_data *run; } thread_data; static GSList *threads_list = NULL; G_LOCK_DEFINE_STATIC(threads_list); /* This is executed in a separate thread. */ static gpointer thread_func(thread_data * data) { gchar buf = '\0'; for (;;) { /* Wait start. */ g_io_channel_read_chars(data->start_read, &buf, 1, NULL, NULL); data->run->result = data->run->function(data->run->argument); /* Inform that we have finished. */ g_io_channel_write_chars(data->end_write, &buf, 1, NULL, NULL); g_io_channel_flush(data->end_write, NULL); } return NULL; } /* Create a new thread. */ static thread_data *new_thread(void) { thread_data *thread = g_new(thread_data, 1); gint start_pipe[2]; gint end_pipe[2]; GError *err = NULL; if (pipe(start_pipe) < 0) { perror("pipe(start_pipe)"); goto start_pipe_error; } if (pipe(end_pipe) < 0) { perror("pipe(end_pipe)"); goto end_pipe_error; } thread->start_read = g_io_channel_unix_new(start_pipe[0]); g_io_channel_set_encoding(thread->start_read, NULL, NULL); thread->start_write = g_io_channel_unix_new(start_pipe[1]); g_io_channel_set_encoding(thread->start_write, NULL, NULL); thread->end_read = g_io_channel_unix_new(end_pipe[0]); g_io_channel_set_encoding(thread->end_read, NULL, NULL); thread->end_write = g_io_channel_unix_new(end_pipe[1]); g_io_channel_set_encoding(thread->end_write, NULL, NULL); g_thread_create((GThreadFunc) thread_func, thread, TRUE, &err); if (err != NULL) { g_printerr("%s\n", err->message); g_error_free(err); goto thread_error; } return thread; thread_error: g_io_channel_shutdown(thread->start_read, FALSE, NULL); g_io_channel_shutdown(thread->start_write, FALSE, NULL); g_io_channel_shutdown(thread->end_read, FALSE, NULL); g_io_channel_shutdown(thread->end_write, FALSE, NULL); end_pipe_error: close(start_pipe[0]); close(start_pipe[1]); start_pipe_error: return NULL; } static thread_data *find_free_thread(void) { GSList *node; thread_data *thread = NULL; for (node = threads_list; node != NULL; node = node->next) { thread_data *node_thread; node_thread = node->data; if (node_thread->run == NULL) { thread = node_thread; break; } } if (thread == NULL) { thread = new_thread(); if (thread != NULL) threads_list = g_slist_prepend(threads_list, thread); } return thread; } /* Called when a threaded job is finished. */ static gboolean done(GIOChannel * tmp1, GIOCondition tmp2, volatile GThreadFunc * f) { *f = NULL; return FALSE; } gpointer do_threaded(GThreadFunc f, gpointer arg) { thread_data *thread; gpointer result; gchar buf = '\0'; G_LOCK(threads_list); thread = find_free_thread(); if (thread == NULL) { G_UNLOCK(threads_list); g_printerr(_("Cannot use a thread\n")); return f(arg); } thread->run = g_new(running_data, 1); thread->run->function = f; thread->run->argument = arg; G_UNLOCK(threads_list); g_io_add_watch(thread->end_read, G_IO_IN, (GIOFunc) done, (gpointer) & thread->run->function); /* Start. */ g_io_channel_write_chars(thread->start_write, &buf, 1, NULL, NULL); g_io_channel_flush(thread->start_write, NULL); while (thread->run->function != NULL) gtk_main_iteration(); g_io_channel_read_chars(thread->end_read, &buf, 1, NULL, NULL); result = thread->run->result; g_free((gpointer) thread->run); thread->run = NULL; return result; } gliv-1.9.7/src/dithering.c0000644000076400007640000021046011465576131012663 0ustar gg/* * The dithering algorithm comes from gdkrgb. */ #include "gliv.h" #include "dithering.h" /* This dither table was generated by Raph Levien using patented technology (US Patent 5,276,535). The dither table itself is in the public domain. */ #define DM_WIDTH 128 #define DM_WIDTH_SHIFT 7 #define DM_HEIGHT 128 static const guchar DM[128][128] = { {0, 41, 23, 5, 17, 39, 7, 15, 62, 23, 40, 51, 31, 47, 9, 32, 52, 27, 57, 25, 6, 61, 27, 52, 37, 7, 40, 63, 18, 36, 10, 42, 25, 62, 45, 34, 20, 42, 37, 14, 35, 29, 50, 10, 61, 2, 40, 8, 37, 12, 58, 22, 5, 41, 10, 39, 0, 60, 11, 46, 2, 55, 38, 17, 36, 59, 13, 54, 37, 56, 8, 29, 16, 13, 63, 22, 41, 55, 7, 20, 49, 14, 23, 55, 37, 23, 19, 36, 15, 49, 23, 63, 30, 14, 38, 27, 53, 13, 22, 41, 19, 31, 7, 19, 50, 30, 49, 16, 3, 32, 56, 40, 29, 34, 8, 48, 19, 45, 4, 51, 12, 46, 35, 49, 16, 42, 12, 62}, {30, 57, 36, 54, 47, 34, 52, 27, 43, 4, 28, 7, 17, 36, 62, 13, 44, 7, 18, 48, 33, 21, 44, 14, 30, 47, 12, 33, 5, 55, 31, 58, 13, 30, 4, 17, 52, 10, 60, 26, 46, 0, 39, 27, 42, 22, 47, 25, 60, 32, 9, 38, 48, 17, 59, 30, 49, 18, 34, 25, 51, 19, 5, 48, 21, 8, 28, 46, 1, 32, 41, 19, 54, 47, 37, 18, 28, 11, 44, 30, 39, 56, 2, 33, 8, 42, 61, 28, 58, 8, 46, 9, 41, 4, 58, 7, 21, 48, 59, 10, 52, 14, 42, 57, 12, 25, 7, 53, 42, 24, 11, 50, 17, 59, 42, 2, 36, 60, 32, 17, 63, 29, 21, 7, 59, 32, 24, 39}, {22, 8, 16, 32, 3, 25, 13, 57, 18, 45, 58, 39, 55, 20, 5, 42, 23, 34, 63, 1, 51, 10, 58, 4, 60, 23, 53, 27, 44, 21, 3, 48, 8, 50, 43, 54, 27, 32, 5, 55, 21, 58, 12, 53, 6, 36, 14, 50, 17, 29, 53, 15, 24, 52, 7, 36, 13, 42, 4, 53, 9, 35, 61, 26, 56, 32, 49, 15, 62, 23, 6, 60, 2, 31, 4, 48, 58, 38, 15, 61, 5, 25, 47, 28, 50, 15, 7, 40, 3, 32, 33, 52, 25, 50, 35, 42, 61, 3, 28, 36, 23, 63, 4, 33, 46, 62, 36, 23, 60, 6, 54, 28, 4, 37, 23, 55, 25, 8, 42, 54, 14, 6, 56, 38, 19, 52, 4, 46}, {48, 53, 43, 12, 45, 63, 30, 37, 9, 34, 21, 1, 25, 47, 29, 58, 3, 54, 15, 39, 29, 17, 38, 35, 20, 43, 1, 49, 15, 59, 29, 39, 22, 35, 16, 23, 1, 47, 39, 18, 8, 44, 25, 31, 57, 19, 63, 4, 45, 3, 42, 61, 1, 31, 45, 20, 57, 29, 62, 21, 32, 41, 14, 44, 3, 39, 5, 34, 10, 43, 51, 35, 23, 52, 40, 10, 21, 1, 53, 18, 51, 43, 12, 62, 18, 54, 26, 51, 20, 57, 14, 1, 62, 16, 11, 18, 32, 39, 17, 44, 1, 48, 26, 37, 18, 2, 51, 14, 28, 45, 35, 18, 57, 13, 47, 11, 51, 20, 2, 39, 31, 47, 25, 1, 50, 11, 60, 7}, {18, 28, 1, 56, 21, 10, 51, 2, 46, 54, 14, 61, 11, 50, 13, 38, 19, 31, 45, 9, 55, 24, 47, 5, 54, 9, 62, 11, 35, 8, 51, 14, 57, 6, 63, 40, 58, 14, 51, 28, 62, 34, 15, 48, 1, 41, 30, 35, 55, 21, 34, 11, 49, 37, 8, 52, 4, 23, 15, 43, 1, 58, 11, 23, 53, 16, 55, 26, 58, 18, 27, 12, 45, 14, 25, 63, 42, 33, 27, 35, 9, 31, 21, 38, 1, 44, 34, 12, 48, 38, 21, 44, 29, 47, 26, 53, 1, 46, 54, 8, 59, 29, 11, 55, 22, 41, 33, 20, 39, 1, 48, 9, 44, 32, 5, 62, 29, 44, 57, 23, 10, 58, 34, 43, 15, 37, 26, 33}, {51, 38, 59, 24, 35, 42, 19, 60, 5, 32, 41, 26, 43, 33, 7, 53, 48, 11, 59, 23, 42, 2, 61, 30, 16, 40, 32, 24, 56, 41, 19, 33, 37, 26, 47, 9, 31, 22, 2, 45, 9, 54, 4, 37, 21, 52, 11, 23, 7, 57, 16, 25, 55, 18, 63, 27, 46, 39, 56, 10, 50, 37, 29, 47, 19, 63, 24, 9, 46, 2, 39, 60, 9, 57, 30, 7, 49, 11, 59, 3, 45, 57, 5, 60, 29, 22, 5, 60, 30, 9, 59, 18, 40, 6, 57, 36, 30, 12, 24, 34, 15, 40, 52, 6, 49, 9, 58, 4, 63, 12, 26, 61, 22, 53, 38, 16, 35, 14, 28, 50, 42, 17, 5, 28, 62, 20, 54, 12}, {26, 6, 31, 15, 49, 6, 38, 27, 22, 49, 16, 56, 2, 62, 30, 21, 0, 36, 28, 6, 49, 32, 13, 52, 26, 50, 19, 46, 3, 26, 62, 0, 53, 12, 29, 3, 53, 41, 60, 24, 38, 13, 58, 16, 43, 9, 59, 39, 46, 28, 44, 40, 2, 33, 13, 41, 16, 6, 47, 31, 26, 17, 57, 6, 38, 0, 42, 36, 29, 52, 20, 31, 48, 0, 34, 56, 20, 36, 23, 54, 14, 41, 24, 37, 10, 55, 46, 25, 16, 45, 36, 4, 55, 23, 15, 8, 50, 62, 5, 56, 44, 20, 13, 28, 59, 31, 24, 47, 31, 52, 37, 17, 40, 0, 26, 49, 3, 60, 7, 33, 0, 61, 53, 40, 8, 45, 2, 41}, {16, 63, 43, 4, 61, 24, 56, 13, 53, 8, 36, 12, 24, 41, 16, 46, 60, 26, 52, 39, 14, 57, 21, 37, 0, 45, 7, 59, 38, 17, 43, 10, 45, 20, 61, 43, 19, 11, 33, 17, 50, 32, 23, 61, 28, 49, 26, 0, 18, 51, 5, 60, 22, 58, 29, 0, 59, 34, 19, 62, 3, 52, 7, 44, 30, 59, 13, 50, 15, 62, 7, 17, 38, 22, 44, 15, 40, 4, 47, 28, 33, 17, 49, 16, 51, 40, 10, 56, 0, 53, 13, 49, 28, 38, 60, 21, 43, 19, 37, 27, 3, 51, 34, 39, 0, 45, 15, 43, 10, 21, 3, 55, 8, 33, 59, 10, 41, 18, 52, 24, 46, 20, 30, 13, 58, 22, 36, 57}, {50, 34, 11, 47, 29, 17, 44, 0, 33, 63, 28, 46, 52, 5, 57, 10, 42, 18, 4, 63, 20, 8, 44, 10, 56, 34, 14, 29, 5, 54, 23, 59, 32, 49, 7, 34, 49, 27, 56, 0, 42, 7, 46, 3, 40, 6, 54, 32, 62, 13, 36, 10, 47, 8, 35, 49, 24, 51, 12, 40, 22, 35, 60, 12, 22, 51, 33, 4, 40, 25, 43, 55, 5, 54, 12, 61, 26, 51, 8, 62, 0, 53, 7, 63, 2, 32, 19, 34, 42, 24, 31, 63, 2, 10, 45, 33, 0, 48, 9, 61, 22, 47, 8, 62, 18, 56, 7, 54, 27, 57, 46, 30, 50, 19, 45, 30, 56, 36, 22, 47, 11, 38, 3, 51, 32, 48, 18, 9}, {0, 21, 40, 19, 52, 9, 37, 48, 20, 40, 3, 18, 27, 38, 35, 22, 31, 56, 13, 35, 46, 28, 60, 40, 27, 18, 61, 50, 41, 30, 7, 36, 2, 25, 16, 57, 5, 15, 47, 29, 55, 19, 30, 52, 15, 34, 20, 12, 43, 30, 20, 54, 25, 44, 53, 12, 38, 5, 55, 27, 48, 15, 33, 27, 45, 8, 19, 28, 56, 11, 33, 49, 18, 36, 29, 2, 45, 16, 39, 19, 31, 43, 27, 35, 20, 52, 26, 6, 61, 11, 41, 17, 29, 51, 20, 56, 25, 32, 41, 17, 53, 31, 25, 14, 42, 23, 35, 16, 38, 6, 34, 12, 15, 62, 6, 21, 13, 1, 63, 9, 55, 27, 43, 25, 14, 4, 31, 55}, {44, 29, 61, 2, 35, 58, 26, 15, 60, 10, 51, 59, 14, 55, 8, 50, 2, 44, 25, 51, 1, 33, 16, 4, 48, 36, 2, 21, 12, 57, 48, 13, 51, 55, 40, 28, 37, 62, 8, 39, 12, 63, 36, 10, 59, 24, 56, 47, 9, 50, 41, 1, 32, 17, 6, 21, 61, 30, 9, 43, 1, 54, 41, 2, 54, 37, 48, 61, 1, 46, 21, 3, 58, 24, 50, 32, 60, 10, 57, 25, 46, 12, 59, 4, 45, 13, 57, 47, 27, 39, 5, 58, 47, 14, 35, 4, 52, 13, 60, 6, 36, 10, 45, 55, 4, 50, 29, 2, 61, 50, 25, 58, 44, 24, 36, 42, 54, 28, 40, 32, 16, 56, 6, 62, 46, 39, 60, 23}, {7, 48, 14, 54, 23, 40, 4, 45, 30, 22, 42, 32, 1, 44, 20, 29, 58, 8, 37, 19, 41, 54, 24, 58, 9, 53, 25, 46, 34, 16, 23, 38, 27, 11, 18, 1, 52, 21, 35, 22, 48, 5, 25, 45, 18, 38, 2, 27, 35, 4, 57, 15, 62, 39, 57, 28, 42, 16, 36, 60, 24, 18, 10, 63, 20, 5, 16, 23, 37, 14, 59, 27, 41, 8, 13, 42, 21, 35, 6, 50, 3, 38, 15, 48, 30, 39, 17, 3, 49, 14, 53, 33, 24, 7, 61, 44, 11, 39, 23, 49, 19, 58, 1, 32, 36, 12, 60, 41, 20, 13, 41, 4, 39, 1, 48, 8, 18, 51, 14, 44, 5, 37, 21, 34, 1, 26, 10, 37}, {53, 36, 27, 9, 50, 12, 32, 55, 2, 57, 7, 17, 48, 34, 63, 15, 40, 26, 62, 11, 49, 6, 31, 39, 22, 42, 6, 63, 1, 39, 60, 4, 42, 61, 32, 45, 24, 44, 2, 60, 16, 41, 53, 1, 33, 61, 49, 17, 63, 23, 45, 26, 33, 3, 23, 46, 2, 50, 20, 4, 45, 34, 49, 30, 39, 58, 44, 31, 53, 34, 6, 52, 30, 47, 63, 1, 53, 22, 42, 31, 58, 23, 54, 22, 61, 8, 36, 59, 22, 35, 21, 1, 55, 40, 27, 16, 30, 54, 2, 29, 43, 16, 39, 63, 21, 46, 26, 10, 48, 32, 19, 53, 30, 56, 26, 60, 33, 4, 61, 23, 49, 59, 15, 53, 19, 58, 42, 16}, {20, 5, 59, 46, 25, 62, 7, 19, 43, 25, 37, 61, 11, 24, 4, 54, 12, 52, 3, 32, 17, 61, 12, 47, 15, 55, 18, 31, 53, 28, 9, 50, 21, 6, 55, 9, 58, 14, 54, 26, 33, 7, 31, 58, 13, 21, 8, 42, 29, 6, 37, 11, 48, 52, 14, 60, 11, 39, 56, 32, 14, 58, 7, 26, 17, 4, 42, 8, 11, 47, 19, 38, 10, 17, 26, 37, 9, 55, 28, 13, 18, 40, 6, 33, 1, 43, 25, 11, 51, 7, 62, 43, 18, 37, 3, 57, 45, 9, 38, 58, 5, 52, 27, 7, 17, 53, 5, 57, 37, 2, 63, 9, 22, 15, 11, 38, 25, 45, 35, 0, 28, 10, 41, 30, 50, 8, 31, 57}, {49, 33, 16, 38, 1, 42, 51, 34, 53, 14, 28, 49, 30, 56, 36, 23, 43, 20, 38, 56, 22, 45, 28, 0, 62, 35, 26, 44, 11, 19, 52, 35, 44, 15, 30, 38, 10, 31, 40, 4, 46, 50, 20, 40, 27, 44, 51, 14, 56, 53, 19, 59, 7, 29, 41, 19, 35, 25, 8, 52, 22, 44, 13, 53, 50, 32, 61, 24, 56, 25, 63, 0, 45, 57, 33, 59, 16, 46, 4, 62, 50, 11, 60, 37, 52, 19, 55, 29, 37, 46, 13, 26, 48, 10, 50, 34, 21, 63, 26, 13, 42, 33, 22, 55, 35, 28, 43, 15, 24, 51, 27, 34, 46, 49, 58, 3, 52, 9, 57, 19, 48, 55, 3, 35, 12, 45, 24, 3}, {41, 11, 56, 28, 18, 31, 22, 10, 37, 6, 47, 13, 3, 41, 9, 46, 0, 48, 29, 6, 34, 10, 55, 37, 20, 8, 49, 3, 41, 59, 14, 25, 0, 63, 19, 47, 27, 51, 17, 57, 23, 10, 61, 6, 54, 3, 38, 31, 0, 22, 34, 43, 20, 55, 31, 0, 49, 63, 29, 38, 3, 62, 28, 40, 0, 22, 14, 35, 2, 48, 15, 43, 23, 14, 3, 29, 49, 20, 39, 34, 0, 44, 29, 9, 15, 47, 5, 42, 0, 31, 58, 5, 31, 61, 23, 15, 0, 47, 19, 50, 24, 3, 59, 11, 44, 0, 31, 59, 6, 42, 17, 60, 0, 39, 20, 31, 43, 17, 29, 40, 12, 25, 60, 22, 52, 15, 63, 29}, {20, 52, 8, 44, 62, 4, 59, 49, 17, 63, 21, 39, 60, 18, 52, 27, 33, 59, 14, 51, 59, 43, 24, 5, 51, 30, 57, 17, 32, 5, 37, 56, 48, 34, 42, 3, 60, 5, 36, 13, 43, 37, 18, 34, 25, 12, 59, 24, 47, 36, 11, 50, 3, 38, 9, 58, 16, 5, 43, 18, 47, 10, 37, 18, 59, 46, 29, 52, 40, 12, 34, 28, 56, 36, 53, 7, 43, 8, 24, 52, 26, 17, 56, 43, 24, 32, 63, 20, 57, 16, 22, 52, 36, 8, 41, 56, 29, 32, 54, 7, 35, 57, 14, 48, 20, 62, 13, 39, 53, 29, 8, 45, 13, 29, 7, 61, 14, 54, 6, 63, 38, 32, 18, 43, 2, 39, 6, 47}, {0, 58, 23, 35, 13, 46, 12, 39, 0, 31, 55, 24, 5, 35, 15, 61, 17, 5, 39, 25, 18, 2, 50, 33, 41, 13, 39, 23, 62, 46, 29, 12, 22, 8, 56, 25, 20, 49, 32, 62, 0, 56, 11, 46, 63, 42, 9, 16, 55, 5, 60, 15, 62, 26, 45, 21, 36, 51, 13, 57, 31, 24, 55, 6, 35, 9, 57, 5, 20, 60, 7, 51, 5, 19, 40, 25, 61, 32, 56, 12, 36, 48, 21, 2, 58, 12, 39, 28, 9, 50, 40, 12, 44, 18, 25, 49, 6, 38, 11, 62, 18, 46, 30, 9, 40, 25, 49, 19, 10, 36, 55, 22, 33, 52, 41, 18, 37, 27, 49, 21, 2, 46, 7, 53, 33, 61, 27, 35}, {41, 31, 5, 39, 51, 26, 33, 57, 27, 41, 9, 44, 54, 29, 48, 7, 44, 36, 57, 10, 31, 63, 16, 45, 11, 60, 1, 47, 7, 20, 43, 3, 58, 36, 13, 52, 39, 7, 15, 28, 22, 48, 30, 21, 1, 29, 49, 44, 27, 17, 40, 30, 24, 42, 12, 53, 33, 7, 47, 20, 1, 42, 11, 49, 25, 43, 17, 32, 45, 27, 41, 21, 31, 62, 11, 49, 2, 15, 42, 5, 63, 7, 41, 27, 49, 6, 54, 23, 46, 34, 2, 28, 54, 3, 59, 12, 46, 17, 42, 28, 40, 1, 37, 51, 5, 55, 2, 34, 47, 16, 3, 62, 47, 5, 23, 56, 1, 44, 12, 34, 51, 16, 57, 11, 25, 17, 54, 13}, {60, 26, 55, 18, 3, 60, 20, 6, 52, 15, 50, 19, 32, 11, 23, 53, 26, 21, 1, 47, 42, 27, 8, 58, 21, 27, 53, 36, 26, 54, 31, 50, 17, 30, 45, 1, 29, 59, 44, 53, 41, 4, 35, 58, 51, 19, 32, 4, 52, 34, 48, 8, 51, 5, 56, 2, 25, 61, 27, 38, 54, 27, 62, 21, 51, 1, 39, 62, 10, 50, 1, 58, 13, 47, 38, 18, 35, 54, 22, 51, 30, 19, 59, 34, 14, 32, 44, 4, 60, 15, 52, 62, 20, 43, 30, 35, 21, 60, 4, 52, 12, 24, 61, 18, 30, 42, 23, 61, 25, 50, 27, 38, 11, 59, 12, 35, 50, 30, 59, 24, 8, 42, 28, 37, 48, 9, 44, 21}, {10, 47, 15, 50, 30, 43, 8, 45, 29, 2, 36, 59, 1, 58, 41, 3, 63, 31, 54, 20, 13, 55, 35, 38, 4, 44, 15, 9, 61, 2, 14, 38, 61, 10, 23, 54, 18, 12, 24, 2, 14, 55, 16, 8, 38, 14, 41, 60, 10, 23, 1, 58, 32, 17, 28, 37, 41, 15, 3, 60, 15, 33, 4, 36, 16, 59, 28, 14, 23, 55, 37, 18, 44, 28, 2, 57, 30, 10, 27, 46, 14, 38, 3, 53, 21, 61, 17, 35, 10, 41, 26, 7, 33, 9, 57, 1, 53, 37, 26, 20, 56, 48, 9, 33, 58, 16, 37, 7, 45, 1, 57, 15, 32, 26, 42, 23, 7, 20, 4, 54, 31, 62, 22, 1, 59, 30, 4, 51}, {36, 2, 38, 11, 24, 36, 54, 22, 62, 47, 25, 8, 28, 45, 16, 38, 12, 43, 9, 37, 49, 3, 23, 52, 18, 30, 50, 33, 19, 42, 49, 26, 6, 40, 47, 35, 63, 38, 50, 33, 60, 26, 36, 47, 24, 57, 6, 26, 39, 63, 19, 44, 14, 46, 61, 9, 50, 30, 45, 23, 10, 50, 44, 8, 31, 54, 6, 46, 36, 4, 30, 54, 8, 52, 22, 41, 4, 60, 40, 0, 58, 24, 45, 10, 37, 1, 48, 30, 56, 17, 38, 48, 24, 47, 19, 39, 14, 8, 45, 32, 2, 34, 27, 44, 4, 52, 11, 56, 31, 21, 40, 19, 44, 51, 2, 63, 46, 58, 36, 43, 14, 5, 50, 38, 14, 56, 40, 23}, {61, 46, 32, 63, 54, 1, 14, 34, 12, 40, 18, 49, 37, 10, 61, 30, 51, 24, 60, 7, 29, 40, 62, 11, 46, 58, 6, 56, 24, 10, 34, 52, 21, 59, 16, 3, 27, 5, 20, 46, 9, 40, 7, 62, 2, 30, 53, 15, 48, 10, 28, 35, 54, 6, 21, 34, 18, 55, 7, 40, 57, 19, 26, 60, 41, 13, 24, 51, 19, 61, 9, 25, 34, 15, 63, 11, 45, 17, 20, 47, 33, 8, 31, 62, 43, 26, 53, 7, 24, 59, 0, 13, 55, 4, 62, 27, 51, 31, 63, 15, 58, 7, 54, 14, 46, 22, 28, 43, 12, 63, 8, 54, 5, 17, 39, 33, 15, 10, 27, 17, 47, 34, 19, 45, 27, 12, 33, 17}, {5, 28, 21, 7, 17, 48, 42, 58, 23, 4, 63, 14, 55, 21, 34, 5, 19, 0, 45, 17, 52, 15, 25, 32, 0, 22, 40, 13, 45, 62, 18, 0, 43, 11, 33, 55, 30, 42, 57, 19, 51, 31, 22, 43, 18, 45, 34, 0, 43, 31, 56, 3, 23, 40, 59, 0, 44, 13, 48, 35, 2, 32, 46, 0, 21, 48, 35, 3, 40, 32, 43, 59, 0, 48, 33, 26, 53, 36, 55, 12, 51, 16, 55, 5, 18, 29, 11, 39, 51, 19, 45, 31, 42, 21, 35, 6, 22, 47, 10, 38, 23, 50, 20, 36, 0, 60, 38, 4, 50, 35, 48, 34, 24, 57, 9, 53, 28, 48, 61, 0, 56, 24, 53, 3, 63, 6, 42, 57}, {13, 53, 45, 40, 58, 27, 6, 16, 38, 51, 33, 30, 43, 2, 47, 56, 40, 50, 33, 57, 27, 5, 47, 42, 60, 36, 16, 54, 28, 4, 37, 57, 28, 51, 22, 8, 45, 14, 6, 39, 0, 54, 11, 59, 28, 12, 50, 21, 61, 13, 19, 38, 49, 11, 25, 37, 58, 29, 22, 63, 14, 56, 12, 53, 30, 63, 9, 57, 26, 12, 47, 16, 23, 39, 50, 6, 31, 2, 25, 6, 28, 41, 36, 22, 50, 57, 42, 3, 34, 8, 28, 61, 11, 50, 16, 54, 41, 0, 55, 43, 5, 29, 41, 63, 25, 16, 53, 18, 26, 10, 21, 0, 61, 30, 41, 22, 3, 38, 20, 39, 29, 8, 41, 16, 36, 52, 22, 19}, {55, 34, 0, 25, 10, 32, 56, 44, 28, 0, 57, 7, 26, 53, 23, 8, 13, 35, 22, 12, 36, 60, 20, 8, 14, 29, 48, 2, 41, 49, 23, 13, 39, 7, 48, 58, 25, 53, 34, 62, 28, 16, 48, 4, 37, 56, 27, 5, 36, 52, 46, 7, 62, 33, 52, 11, 17, 53, 5, 28, 41, 24, 38, 17, 5, 39, 20, 45, 15, 56, 5, 38, 60, 8, 14, 57, 21, 48, 62, 39, 59, 13, 1, 60, 9, 32, 16, 63, 44, 25, 52, 15, 36, 2, 60, 29, 12, 33, 25, 17, 59, 45, 13, 8, 49, 32, 6, 40, 59, 29, 45, 37, 13, 47, 6, 55, 30, 45, 9, 52, 13, 59, 25, 47, 32, 1, 49, 30}, {9, 39, 14, 61, 49, 37, 3, 20, 50, 13, 41, 19, 46, 17, 38, 59, 28, 62, 4, 44, 54, 1, 34, 51, 55, 7, 63, 32, 21, 8, 56, 31, 62, 19, 36, 1, 41, 17, 24, 12, 42, 35, 25, 52, 20, 8, 44, 59, 25, 2, 22, 42, 16, 29, 4, 46, 20, 36, 43, 9, 51, 8, 49, 26, 58, 33, 54, 1, 37, 29, 52, 20, 27, 45, 19, 35, 42, 16, 10, 32, 20, 49, 46, 27, 40, 4, 47, 22, 13, 55, 4, 47, 26, 44, 23, 40, 58, 19, 48, 13, 31, 2, 57, 34, 42, 19, 61, 32, 14, 55, 5, 51, 26, 19, 58, 16, 49, 14, 62, 5, 33, 44, 21, 7, 60, 26, 11, 41}, {62, 24, 47, 29, 8, 19, 53, 11, 60, 24, 32, 61, 4, 55, 31, 2, 49, 16, 39, 9, 31, 24, 43, 17, 26, 38, 11, 25, 58, 43, 12, 35, 3, 46, 15, 32, 63, 4, 49, 56, 2, 60, 10, 32, 63, 17, 39, 12, 55, 30, 57, 9, 48, 55, 39, 24, 60, 2, 58, 31, 19, 61, 34, 3, 42, 11, 22, 46, 7, 61, 10, 42, 3, 55, 32, 1, 58, 28, 44, 54, 4, 34, 23, 15, 56, 20, 37, 58, 6, 30, 38, 18, 63, 9, 32, 5, 51, 3, 62, 37, 52, 18, 39, 23, 3, 51, 9, 47, 1, 23, 43, 15, 60, 35, 11, 40, 1, 36, 31, 26, 57, 2, 37, 54, 18, 44, 58, 16}, {5, 51, 3, 33, 43, 62, 21, 42, 35, 9, 48, 15, 36, 10, 22, 42, 20, 46, 26, 56, 50, 12, 59, 3, 48, 19, 45, 53, 1, 27, 47, 17, 52, 24, 56, 11, 51, 21, 37, 30, 20, 46, 14, 41, 1, 47, 33, 7, 41, 17, 35, 27, 20, 1, 14, 54, 26, 33, 18, 47, 1, 44, 14, 59, 16, 52, 28, 18, 49, 31, 25, 34, 63, 13, 51, 24, 9, 50, 3, 23, 38, 63, 7, 52, 29, 46, 11, 33, 50, 22, 57, 36, 1, 57, 49, 17, 39, 28, 9, 35, 6, 27, 53, 15, 55, 30, 24, 58, 36, 41, 11, 52, 32, 3, 44, 25, 62, 23, 51, 15, 42, 22, 50, 10, 39, 4, 31, 35}, {46, 22, 57, 17, 12, 39, 26, 5, 31, 59, 1, 45, 27, 62, 52, 7, 58, 33, 6, 18, 39, 22, 33, 41, 57, 5, 35, 18, 40, 16, 60, 5, 29, 42, 7, 39, 27, 44, 9, 47, 8, 26, 54, 22, 51, 29, 24, 49, 15, 61, 4, 51, 31, 63, 43, 6, 50, 8, 39, 12, 53, 37, 23, 30, 40, 6, 62, 43, 14, 53, 2, 49, 7, 36, 17, 41, 61, 37, 18, 56, 11, 18, 44, 35, 2, 19, 61, 0, 41, 14, 8, 30, 43, 12, 24, 46, 14, 54, 42, 21, 44, 61, 10, 46, 37, 11, 44, 7, 18, 63, 20, 29, 7, 49, 28, 54, 8, 43, 4, 48, 18, 63, 12, 29, 48, 24, 59, 20}, {13, 36, 28, 54, 35, 2, 56, 46, 16, 49, 22, 40, 11, 34, 14, 43, 29, 12, 63, 48, 2, 61, 7, 15, 28, 30, 50, 9, 61, 33, 38, 23, 54, 13, 61, 33, 3, 59, 16, 35, 58, 40, 5, 38, 13, 57, 3, 58, 37, 21, 45, 12, 39, 7, 35, 30, 13, 56, 22, 62, 27, 6, 55, 10, 48, 21, 33, 2, 38, 23, 40, 20, 44, 29, 59, 4, 26, 12, 33, 47, 28, 53, 31, 13, 59, 41, 27, 49, 26, 54, 45, 16, 53, 21, 35, 7, 59, 26, 11, 56, 1, 24, 33, 4, 28, 62, 21, 49, 31, 2, 56, 39, 24, 58, 13, 17, 37, 21, 56, 10, 38, 0, 34, 55, 15, 43, 1, 52}, {42, 9, 50, 6, 25, 60, 14, 38, 10, 29, 53, 18, 57, 3, 25, 51, 0, 53, 25, 17, 29, 37, 52, 46, 0, 62, 14, 37, 4, 50, 10, 44, 0, 46, 20, 25, 50, 19, 55, 0, 23, 31, 62, 34, 11, 45, 19, 32, 0, 53, 10, 59, 23, 47, 18, 60, 42, 28, 37, 3, 50, 15, 35, 44, 0, 51, 27, 60, 9, 57, 16, 58, 11, 22, 46, 15, 53, 48, 7, 42, 0, 60, 5, 49, 24, 54, 9, 17, 39, 5, 34, 62, 3, 40, 60, 31, 0, 47, 29, 16, 49, 39, 59, 17, 50, 0, 40, 13, 53, 38, 16, 46, 0, 42, 34, 60, 2, 53, 29, 31, 58, 46, 27, 6, 61, 8, 37, 28}, {0, 63, 21, 40, 45, 18, 51, 23, 63, 34, 6, 43, 28, 38, 55, 19, 40, 35, 8, 41, 54, 10, 21, 32, 39, 23, 53, 26, 55, 28, 22, 63, 30, 34, 9, 48, 6, 38, 29, 43, 49, 6, 18, 52, 27, 61, 9, 43, 28, 42, 33, 26, 56, 3, 51, 23, 0, 48, 16, 45, 32, 25, 63, 20, 57, 17, 42, 12, 35, 47, 5, 31, 39, 56, 6, 30, 34, 21, 61, 25, 14, 40, 22, 38, 15, 6, 36, 56, 20, 60, 25, 12, 51, 27, 10, 56, 42, 20, 36, 63, 32, 6, 21, 41, 12, 34, 60, 26, 5, 48, 27, 10, 62, 19, 6, 47, 39, 14, 45, 7, 24, 17, 41, 32, 23, 51, 19, 56}, {45, 31, 15, 59, 4, 33, 7, 47, 0, 41, 13, 61, 4, 47, 9, 23, 60, 14, 57, 31, 4, 45, 59, 6, 58, 10, 44, 20, 8, 42, 15, 6, 55, 17, 58, 31, 53, 12, 61, 10, 15, 57, 43, 2, 23, 35, 48, 14, 54, 6, 18, 49, 15, 38, 11, 34, 62, 9, 21, 58, 11, 41, 4, 31, 38, 8, 29, 55, 19, 36, 27, 52, 0, 25, 50, 43, 1, 39, 8, 55, 35, 51, 10, 30, 45, 62, 29, 2, 46, 10, 32, 48, 18, 38, 5, 22, 33, 8, 51, 3, 14, 44, 54, 25, 57, 30, 18, 52, 33, 22, 59, 28, 36, 52, 32, 21, 26, 50, 5, 55, 35, 60, 14, 54, 4, 40, 16, 33}, {27, 3, 49, 10, 30, 40, 55, 27, 57, 24, 52, 21, 32, 17, 60, 30, 5, 44, 27, 49, 19, 34, 13, 24, 43, 36, 3, 49, 31, 59, 37, 48, 26, 41, 2, 41, 14, 36, 21, 32, 40, 26, 13, 49, 55, 5, 16, 40, 25, 60, 36, 1, 63, 29, 17, 44, 25, 40, 52, 5, 29, 47, 54, 13, 46, 24, 60, 4, 51, 22, 63, 14, 45, 18, 12, 62, 17, 57, 19, 42, 3, 26, 58, 48, 1, 21, 40, 52, 23, 37, 44, 1, 29, 58, 43, 50, 15, 61, 19, 45, 58, 28, 7, 48, 2, 46, 8, 42, 3, 55, 8, 50, 12, 4, 55, 10, 63, 33, 20, 40, 11, 3, 46, 20, 48, 26, 61, 11}, {44, 56, 24, 36, 53, 19, 12, 37, 16, 44, 7, 36, 49, 54, 11, 37, 48, 21, 15, 1, 62, 25, 47, 56, 16, 18, 51, 12, 40, 1, 24, 11, 52, 16, 23, 59, 28, 1, 45, 53, 4, 60, 37, 21, 39, 30, 63, 20, 52, 10, 30, 45, 8, 41, 54, 4, 57, 7, 34, 55, 36, 18, 23, 59, 2, 48, 11, 32, 44, 1, 41, 8, 33, 54, 38, 23, 30, 46, 6, 29, 62, 18, 32, 16, 55, 34, 14, 11, 61, 7, 55, 16, 53, 13, 23, 2, 55, 37, 26, 10, 33, 23, 36, 16, 38, 22, 56, 15, 24, 43, 35, 17, 44, 40, 25, 46, 16, 1, 57, 25, 49, 36, 28, 62, 9, 35, 7, 53}, {17, 38, 8, 61, 1, 50, 26, 62, 3, 31, 56, 15, 1, 26, 40, 2, 34, 51, 56, 36, 42, 9, 38, 2, 29, 60, 32, 57, 19, 62, 34, 47, 4, 57, 39, 7, 44, 63, 24, 18, 46, 28, 8, 54, 1, 34, 7, 46, 3, 37, 50, 23, 57, 21, 13, 46, 31, 20, 43, 15, 1, 61, 8, 33, 37, 17, 56, 26, 15, 49, 24, 59, 28, 3, 56, 9, 52, 32, 13, 49, 10, 43, 5, 45, 8, 25, 59, 42, 28, 33, 19, 40, 8, 63, 35, 47, 25, 4, 40, 52, 1, 60, 12, 53, 63, 9, 29, 60, 37, 19, 1, 62, 31, 20, 58, 12, 41, 30, 43, 9, 18, 52, 22, 1, 39, 30, 58, 21}, {13, 47, 29, 18, 43, 34, 5, 48, 20, 42, 10, 45, 30, 58, 20, 63, 24, 11, 6, 28, 54, 14, 22, 52, 41, 7, 26, 5, 45, 15, 53, 13, 35, 27, 18, 50, 12, 33, 5, 56, 10, 17, 45, 24, 59, 15, 50, 26, 56, 13, 19, 5, 32, 52, 27, 36, 2, 61, 12, 26, 49, 40, 27, 52, 13, 50, 6, 39, 61, 34, 10, 37, 48, 20, 41, 27, 2, 36, 59, 24, 54, 33, 63, 20, 38, 50, 3, 17, 52, 4, 58, 27, 45, 21, 32, 11, 48, 17, 57, 20, 46, 38, 25, 43, 4, 34, 51, 6, 13, 45, 57, 26, 6, 48, 2, 35, 53, 23, 61, 34, 59, 6, 42, 56, 13, 51, 2, 41}, {32, 5, 55, 23, 58, 14, 22, 52, 29, 15, 61, 25, 51, 8, 43, 13, 53, 41, 46, 20, 3, 33, 63, 11, 48, 21, 54, 38, 28, 3, 30, 43, 21, 62, 9, 31, 55, 22, 51, 29, 37, 62, 32, 12, 42, 29, 41, 9, 33, 44, 62, 28, 43, 1, 59, 19, 48, 30, 51, 39, 24, 4, 58, 19, 42, 29, 22, 43, 3, 18, 53, 5, 13, 50, 16, 60, 45, 21, 7, 40, 15, 0, 26, 53, 13, 31, 43, 24, 47, 31, 15, 49, 2, 41, 6, 59, 29, 42, 9, 30, 14, 7, 49, 18, 31, 47, 20, 39, 49, 32, 11, 41, 54, 15, 61, 18, 7, 38, 4, 13, 44, 28, 15, 32, 45, 19, 27, 49}, {63, 34, 11, 39, 2, 45, 37, 8, 59, 39, 33, 4, 36, 17, 48, 5, 29, 18, 32, 61, 39, 50, 5, 27, 35, 0, 46, 12, 22, 49, 60, 6, 54, 0, 38, 49, 2, 42, 15, 40, 0, 47, 20, 51, 3, 57, 18, 61, 22, 0, 39, 16, 55, 12, 35, 8, 41, 22, 6, 59, 16, 45, 10, 36, 0, 62, 9, 54, 30, 58, 21, 43, 63, 31, 7, 35, 12, 48, 58, 28, 47, 37, 41, 9, 57, 20, 61, 0, 36, 11, 57, 35, 23, 52, 37, 18, 0, 62, 22, 55, 35, 62, 27, 54, 0, 15, 61, 28, 2, 59, 22, 9, 37, 27, 33, 51, 29, 48, 19, 50, 25, 37, 10, 57, 5, 37, 60, 8}, {20, 25, 46, 52, 31, 60, 12, 55, 0, 19, 11, 46, 62, 35, 23, 38, 57, 0, 55, 10, 16, 30, 58, 44, 17, 59, 29, 63, 42, 8, 36, 20, 33, 46, 16, 61, 25, 35, 8, 54, 26, 7, 58, 22, 34, 6, 47, 14, 53, 31, 48, 9, 37, 25, 49, 63, 16, 55, 45, 14, 34, 63, 21, 53, 25, 33, 46, 16, 35, 7, 46, 29, 0, 39, 25, 55, 22, 34, 18, 4, 56, 11, 23, 51, 28, 6, 39, 14, 62, 44, 19, 8, 60, 12, 56, 28, 50, 34, 39, 5, 51, 3, 41, 12, 57, 35, 10, 53, 25, 17, 52, 30, 47, 0, 43, 14, 5, 57, 31, 55, 0, 63, 47, 23, 54, 24, 14, 43}, {0, 57, 16, 6, 26, 19, 35, 28, 49, 42, 54, 26, 21, 1, 59, 27, 9, 47, 26, 44, 50, 22, 13, 40, 8, 37, 10, 34, 17, 56, 25, 58, 13, 27, 44, 9, 20, 58, 31, 17, 60, 36, 10, 41, 53, 25, 36, 39, 4, 24, 58, 17, 60, 4, 22, 38, 10, 32, 0, 50, 31, 7, 28, 47, 12, 57, 5, 26, 52, 23, 14, 40, 57, 17, 47, 5, 53, 1, 44, 31, 19, 60, 46, 2, 35, 48, 30, 54, 22, 5, 51, 39, 25, 31, 4, 43, 14, 9, 45, 16, 24, 44, 19, 29, 40, 23, 44, 7, 38, 42, 4, 63, 12, 54, 23, 59, 22, 42, 8, 15, 40, 21, 8, 34, 3, 41, 30, 50}, {39, 10, 48, 33, 41, 54, 5, 47, 23, 13, 32, 7, 52, 44, 14, 39, 58, 18, 35, 6, 37, 2, 60, 24, 55, 19, 53, 2, 51, 32, 1, 41, 51, 4, 40, 29, 47, 3, 52, 44, 13, 49, 28, 16, 1, 62, 11, 27, 52, 35, 5, 42, 29, 47, 14, 56, 28, 53, 26, 38, 9, 56, 40, 3, 38, 15, 41, 60, 1, 37, 50, 25, 11, 28, 61, 19, 42, 62, 10, 52, 39, 6, 32, 14, 58, 17, 7, 26, 42, 34, 27, 10, 54, 40, 20, 63, 26, 53, 21, 61, 32, 7, 59, 48, 3, 56, 18, 31, 58, 14, 49, 21, 36, 16, 45, 9, 36, 24, 62, 45, 27, 31, 53, 17, 49, 12, 62, 18}, {28, 59, 21, 58, 2, 16, 38, 9, 62, 3, 56, 41, 10, 31, 50, 4, 32, 52, 12, 63, 23, 46, 33, 31, 4, 48, 25, 43, 14, 23, 47, 11, 22, 55, 14, 60, 23, 37, 11, 39, 23, 2, 45, 56, 31, 43, 19, 55, 16, 46, 21, 51, 11, 33, 44, 2, 41, 18, 5, 52, 23, 44, 17, 60, 27, 49, 11, 32, 44, 10, 54, 2, 56, 33, 8, 38, 13, 29, 36, 16, 24, 63, 27, 51, 21, 43, 56, 12, 49, 3, 59, 48, 1, 15, 46, 7, 36, 2, 47, 11, 50, 27, 37, 13, 33, 8, 51, 46, 1, 34, 28, 40, 3, 33, 60, 29, 47, 1, 35, 11, 59, 42, 2, 60, 26, 46, 6, 35}, {4, 43, 9, 29, 36, 63, 24, 44, 20, 50, 30, 17, 60, 22, 16, 43, 25, 3, 42, 19, 51, 15, 8, 54, 42, 15, 61, 5, 39, 57, 18, 61, 31, 48, 34, 2, 50, 19, 57, 5, 63, 33, 19, 38, 13, 27, 48, 7, 32, 61, 2, 26, 58, 6, 24, 50, 13, 61, 42, 20, 62, 2, 35, 20, 51, 4, 62, 18, 23, 58, 20, 31, 43, 15, 51, 45, 26, 50, 4, 55, 45, 3, 35, 9, 38, 1, 32, 61, 20, 45, 17, 33, 24, 57, 29, 51, 22, 58, 38, 30, 15, 1, 54, 21, 63, 43, 26, 12, 24, 56, 8, 60, 50, 19, 5, 52, 13, 54, 17, 50, 4, 16, 36, 12, 32, 56, 22, 54}, {51, 25, 40, 53, 12, 49, 15, 57, 34, 7, 38, 47, 2, 36, 55, 8, 61, 30, 56, 7, 28, 59, 48, 11, 27, 35, 21, 45, 28, 36, 9, 38, 6, 16, 24, 63, 10, 32, 28, 43, 21, 53, 5, 60, 8, 57, 3, 45, 11, 37, 15, 54, 40, 20, 62, 36, 27, 34, 11, 48, 30, 15, 54, 8, 30, 42, 22, 34, 48, 13, 35, 63, 4, 37, 22, 2, 59, 9, 41, 23, 13, 41, 49, 18, 59, 24, 40, 5, 37, 30, 9, 61, 44, 6, 37, 11, 33, 17, 5, 55, 41, 60, 23, 39, 17, 5, 30, 62, 41, 16, 46, 25, 11, 56, 39, 26, 20, 38, 29, 39, 22, 52, 44, 20, 48, 1, 38, 14}, {15, 33, 2, 18, 44, 6, 27, 0, 32, 61, 25, 12, 58, 28, 40, 20, 47, 13, 34, 43, 38, 1, 23, 62, 40, 0, 51, 10, 63, 3, 52, 26, 44, 30, 45, 6, 41, 54, 0, 51, 12, 30, 46, 24, 49, 22, 40, 33, 63, 23, 43, 30, 9, 47, 0, 17, 54, 7, 57, 3, 37, 47, 24, 46, 13, 55, 7, 52, 2, 42, 6, 26, 49, 18, 60, 34, 16, 57, 33, 20, 61, 30, 8, 54, 14, 46, 12, 53, 16, 55, 38, 13, 22, 53, 18, 59, 46, 27, 43, 19, 32, 10, 45, 6, 49, 36, 52, 2, 20, 55, 6, 39, 32, 15, 44, 3, 58, 10, 63, 6, 56, 30, 7, 58, 9, 40, 19, 63}, {10, 47, 61, 23, 55, 31, 52, 42, 17, 45, 4, 51, 27, 6, 15, 53, 0, 49, 26, 10, 56, 18, 36, 6, 20, 58, 32, 30, 13, 49, 19, 56, 0, 59, 12, 53, 27, 17, 38, 25, 48, 9, 15, 36, 14, 30, 59, 17, 0, 50, 8, 58, 18, 56, 31, 45, 21, 41, 29, 19, 60, 6, 32, 59, 0, 36, 29, 39, 19, 59, 46, 12, 55, 30, 10, 47, 24, 3, 28, 48, 0, 55, 44, 27, 33, 4, 63, 29, 49, 0, 26, 50, 34, 2, 42, 14, 0, 62, 9, 56, 3, 52, 28, 34, 58, 9, 20, 48, 37, 32, 22, 53, 0, 62, 27, 49, 34, 46, 21, 33, 41, 14, 25, 37, 53, 29, 31, 45}, {56, 28, 7, 37, 11, 36, 20, 9, 54, 14, 39, 19, 34, 63, 45, 37, 24, 17, 60, 31, 21, 45, 53, 29, 47, 15, 7, 55, 40, 23, 34, 14, 42, 20, 37, 35, 15, 59, 7, 62, 34, 40, 59, 1, 51, 42, 10, 28, 54, 21, 35, 5, 38, 13, 36, 4, 59, 12, 39, 53, 15, 43, 9, 21, 39, 62, 16, 56, 25, 9, 32, 38, 0, 41, 14, 51, 40, 53, 43, 11, 37, 17, 5, 22, 57, 39, 19, 7, 42, 21, 60, 10, 31, 63, 25, 52, 30, 49, 36, 25, 48, 17, 61, 14, 22, 42, 29, 13, 60, 11, 47, 18, 35, 41, 7, 23, 4, 16, 51, 11, 0, 48, 61, 3, 17, 50, 5, 24}, {0, 42, 21, 49, 60, 3, 57, 40, 29, 48, 23, 56, 42, 11, 22, 5, 59, 39, 4, 50, 3, 41, 12, 57, 25, 50, 44, 18, 4, 46, 7, 62, 33, 50, 4, 56, 21, 32, 43, 18, 3, 23, 55, 34, 20, 4, 53, 38, 12, 46, 29, 52, 25, 61, 23, 51, 26, 46, 1, 34, 25, 57, 28, 51, 26, 11, 50, 3, 44, 28, 53, 21, 57, 27, 62, 6, 31, 19, 8, 63, 26, 59, 36, 47, 15, 29, 50, 25, 35, 47, 18, 41, 4, 48, 8, 40, 12, 23, 6, 44, 13, 40, 1, 31, 55, 0, 61, 43, 4, 50, 26, 58, 9, 53, 24, 61, 42, 55, 31, 43, 57, 20, 34, 27, 43, 8, 59, 39}, {18, 51, 30, 13, 26, 16, 46, 22, 2, 59, 8, 30, 1, 48, 33, 51, 29, 9, 46, 16, 62, 14, 33, 2, 38, 9, 27, 60, 37, 26, 53, 17, 28, 10, 24, 46, 2, 49, 8, 57, 29, 45, 6, 26, 62, 44, 18, 25, 61, 3, 42, 14, 49, 10, 43, 6, 17, 32, 63, 10, 49, 4, 40, 14, 45, 33, 22, 37, 12, 61, 5, 17, 43, 7, 23, 37, 15, 58, 49, 13, 39, 21, 10, 52, 1, 62, 9, 56, 12, 2, 58, 28, 36, 16, 56, 28, 56, 35, 20, 63, 24, 37, 51, 8, 45, 25, 16, 33, 27, 38, 2, 44, 13, 30, 17, 36, 12, 26, 5, 18, 28, 47, 13, 60, 23, 45, 13, 33}, {55, 4, 62, 34, 52, 38, 7, 63, 32, 37, 13, 53, 25, 62, 18, 12, 55, 41, 27, 35, 24, 49, 31, 52, 17, 63, 34, 1, 56, 12, 41, 2, 48, 58, 39, 16, 61, 27, 41, 52, 13, 19, 50, 39, 11, 31, 57, 6, 32, 40, 20, 55, 1, 28, 33, 57, 48, 8, 37, 22, 44, 18, 53, 1, 61, 5, 54, 16, 47, 36, 50, 24, 55, 34, 48, 45, 1, 30, 33, 46, 2, 50, 32, 42, 25, 34, 43, 21, 38, 52, 23, 45, 14, 54, 21, 4, 44, 16, 53, 29, 10, 47, 19, 57, 12, 54, 39, 10, 51, 15, 63, 21, 57, 40, 51, 1, 48, 57, 37, 62, 2, 38, 9, 52, 1, 35, 58, 22}, {36, 46, 10, 42, 1, 27, 43, 15, 50, 21, 45, 16, 41, 3, 35, 44, 20, 1, 57, 11, 55, 7, 43, 8, 22, 42, 13, 46, 21, 39, 31, 60, 22, 5, 29, 44, 11, 35, 20, 4, 36, 58, 32, 15, 47, 2, 36, 48, 16, 60, 8, 35, 44, 63, 16, 2, 40, 26, 55, 14, 58, 35, 24, 31, 19, 42, 31, 58, 1, 29, 10, 40, 2, 19, 12, 54, 22, 61, 7, 24, 56, 5, 28, 16, 54, 3, 15, 58, 6, 30, 8, 62, 1, 43, 31, 47, 7, 59, 1, 38, 58, 4, 34, 27, 38, 5, 31, 59, 7, 46, 30, 3, 34, 6, 28, 59, 20, 8, 32, 15, 53, 24, 55, 31, 19, 49, 11, 26}, {2, 24, 16, 58, 19, 55, 5, 35, 10, 61, 4, 28, 57, 24, 58, 7, 31, 47, 22, 38, 19, 28, 61, 36, 54, 5, 59, 29, 6, 52, 15, 11, 43, 36, 8, 54, 52, 1, 62, 25, 47, 9, 1, 60, 28, 53, 24, 14, 46, 27, 51, 22, 12, 24, 38, 53, 20, 11, 51, 3, 29, 7, 48, 63, 8, 49, 9, 21, 52, 14, 63, 32, 46, 60, 35, 4, 41, 16, 52, 35, 18, 42, 59, 7, 36, 61, 45, 27, 33, 51, 19, 39, 34, 11, 61, 18, 33, 41, 28, 15, 54, 22, 42, 3, 49, 21, 47, 18, 36, 23, 55, 19, 48, 24, 45, 10, 33, 44, 50, 40, 7, 35, 15, 41, 63, 6, 40, 54}, {62, 41, 32, 8, 47, 28, 60, 24, 44, 30, 38, 49, 9, 33, 14, 40, 50, 14, 60, 2, 54, 40, 0, 20, 25, 39, 16, 49, 24, 35, 57, 47, 19, 61, 33, 18, 23, 37, 13, 55, 31, 43, 22, 41, 17, 8, 42, 58, 0, 37, 5, 56, 31, 54, 7, 30, 60, 33, 42, 17, 59, 39, 12, 27, 38, 17, 35, 41, 27, 45, 20, 7, 25, 15, 29, 58, 27, 47, 11, 40, 14, 54, 23, 46, 19, 31, 11, 40, 13, 49, 5, 58, 24, 51, 26, 6, 50, 20, 49, 9, 32, 46, 17, 60, 14, 63, 24, 1, 57, 41, 9, 43, 14, 62, 16, 52, 3, 27, 14, 22, 61, 45, 4, 28, 9, 47, 29, 17}, {5, 50, 12, 53, 38, 18, 11, 51, 0, 55, 17, 6, 47, 54, 19, 63, 5, 26, 34, 45, 13, 30, 47, 58, 10, 48, 32, 3, 62, 9, 26, 0, 25, 14, 50, 3, 47, 30, 42, 16, 6, 63, 12, 49, 33, 55, 21, 10, 34, 63, 18, 41, 3, 47, 19, 43, 0, 49, 8, 28, 46, 20, 52, 0, 56, 24, 60, 3, 59, 5, 39, 57, 48, 52, 9, 38, 3, 21, 26, 60, 0, 32, 12, 38, 4, 48, 53, 0, 60, 15, 29, 44, 18, 10, 38, 57, 13, 60, 2, 26, 62, 7, 50, 29, 35, 8, 40, 53, 28, 12, 60, 33, 38, 5, 37, 29, 60, 39, 56, 0, 30, 18, 50, 34, 59, 25, 14, 44}, {20, 31, 60, 22, 3, 49, 33, 25, 40, 13, 34, 59, 22, 36, 0, 28, 37, 56, 8, 18, 51, 16, 4, 45, 27, 12, 53, 42, 18, 44, 51, 31, 55, 40, 28, 58, 7, 60, 10, 51, 27, 37, 24, 56, 5, 26, 44, 29, 50, 23, 45, 11, 34, 15, 59, 27, 13, 23, 62, 37, 4, 57, 15, 32, 42, 6, 47, 11, 30, 43, 23, 13, 0, 36, 18, 44, 63, 51, 37, 29, 49, 20, 57, 27, 62, 9, 24, 35, 23, 53, 37, 3, 42, 55, 0, 36, 23, 39, 31, 43, 17, 37, 24, 11, 52, 43, 19, 32, 5, 50, 26, 0, 56, 21, 54, 11, 19, 6, 47, 25, 59, 42, 12, 54, 21, 3, 38, 57}, {48, 0, 35, 27, 44, 14, 59, 7, 57, 46, 26, 2, 42, 12, 52, 43, 10, 27, 53, 42, 32, 62, 37, 21, 34, 61, 7, 23, 36, 4, 38, 12, 41, 5, 17, 45, 22, 27, 39, 21, 59, 0, 45, 18, 39, 62, 3, 38, 14, 7, 54, 26, 61, 39, 9, 52, 45, 36, 18, 50, 10, 34, 44, 22, 50, 14, 36, 55, 17, 34, 53, 62, 33, 26, 56, 6, 31, 12, 6, 53, 9, 44, 2, 50, 20, 40, 55, 17, 47, 7, 26, 63, 22, 32, 48, 16, 46, 8, 52, 12, 57, 41, 0, 56, 25, 3, 61, 14, 45, 35, 18, 44, 12, 46, 23, 42, 32, 51, 35, 10, 17, 36, 23, 1, 45, 52, 32, 10}, {37, 15, 43, 8, 63, 39, 21, 31, 16, 37, 19, 62, 30, 46, 17, 60, 21, 48, 1, 23, 6, 25, 11, 56, 1, 40, 30, 58, 15, 54, 21, 59, 9, 63, 35, 56, 11, 51, 2, 46, 34, 14, 53, 7, 30, 11, 51, 19, 60, 40, 30, 1, 24, 50, 20, 32, 3, 56, 5, 25, 31, 13, 61, 2, 29, 60, 25, 20, 51, 2, 27, 8, 18, 42, 10, 45, 21, 34, 43, 17, 62, 29, 41, 14, 34, 6, 30, 43, 2, 57, 33, 13, 45, 12, 27, 62, 4, 55, 21, 35, 5, 27, 45, 33, 16, 47, 30, 54, 22, 10, 51, 27, 63, 7, 49, 1, 58, 22, 15, 43, 53, 7, 57, 39, 27, 12, 61, 24}, {56, 51, 26, 56, 19, 2, 41, 54, 5, 52, 9, 48, 6, 23, 39, 4, 32, 15, 63, 35, 59, 49, 43, 15, 52, 19, 50, 9, 46, 33, 1, 29, 48, 20, 32, 1, 38, 33, 19, 54, 9, 32, 24, 48, 58, 35, 16, 48, 4, 52, 13, 57, 33, 5, 45, 59, 15, 29, 41, 55, 47, 39, 23, 53, 9, 40, 4, 57, 10, 44, 48, 40, 50, 14, 61, 24, 55, 1, 59, 22, 33, 8, 51, 25, 58, 46, 11, 59, 20, 41, 17, 51, 6, 56, 35, 25, 42, 30, 15, 58, 48, 18, 61, 9, 58, 39, 13, 2, 37, 59, 40, 2, 31, 16, 34, 41, 8, 30, 62, 3, 29, 48, 33, 5, 63, 16, 41, 7}, {22, 4, 46, 11, 33, 51, 29, 10, 62, 24, 43, 27, 15, 58, 50, 25, 54, 44, 9, 38, 18, 3, 29, 57, 32, 5, 26, 43, 17, 61, 24, 52, 8, 42, 23, 53, 15, 61, 7, 28, 57, 43, 4, 40, 20, 2, 43, 25, 32, 35, 21, 43, 17, 48, 10, 22, 38, 54, 11, 21, 1, 58, 16, 30, 48, 18, 46, 32, 38, 13, 22, 4, 59, 35, 2, 51, 30, 39, 15, 47, 4, 56, 13, 37, 1, 28, 16, 52, 32, 9, 61, 29, 38, 19, 3, 52, 10, 48, 1, 32, 11, 40, 20, 36, 6, 22, 49, 29, 55, 6, 20, 56, 36, 52, 19, 60, 26, 46, 18, 54, 40, 13, 20, 46, 35, 19, 49, 29}, {61, 17, 34, 53, 23, 6, 48, 35, 20, 40, 1, 56, 36, 29, 11, 34, 7, 41, 14, 30, 55, 20, 46, 8, 24, 38, 63, 2, 37, 10, 45, 14, 34, 49, 6, 13, 44, 25, 49, 41, 21, 12, 61, 15, 54, 29, 63, 12, 56, 8, 49, 2, 62, 36, 28, 61, 0, 25, 41, 63, 35, 8, 44, 6, 37, 62, 7, 21, 63, 28, 55, 31, 16, 24, 41, 19, 9, 57, 27, 36, 18, 42, 31, 62, 22, 55, 38, 4, 27, 47, 1, 40, 14, 54, 43, 20, 60, 23, 38, 63, 25, 51, 2, 53, 26, 63, 10, 42, 17, 34, 47, 25, 13, 5, 44, 11, 55, 2, 38, 27, 6, 60, 52, 25, 9, 55, 1, 40}, {8, 30, 58, 3, 42, 61, 17, 38, 13, 59, 32, 10, 54, 3, 51, 20, 61, 26, 57, 2, 46, 33, 12, 60, 41, 13, 48, 29, 55, 20, 39, 27, 57, 18, 62, 29, 55, 2, 31, 16, 37, 50, 26, 36, 6, 46, 9, 41, 27, 57, 23, 39, 26, 6, 51, 12, 31, 46, 7, 16, 27, 52, 19, 56, 26, 12, 33, 53, 1, 41, 8, 57, 46, 7, 54, 32, 47, 5, 49, 11, 60, 23, 5, 48, 10, 43, 19, 63, 35, 24, 49, 21, 59, 5, 31, 37, 14, 44, 7, 42, 6, 30, 46, 13, 44, 32, 19, 50, 4, 58, 8, 30, 62, 38, 28, 53, 21, 36, 13, 50, 21, 33, 15, 2, 44, 31, 14, 47}, {37, 13, 39, 16, 28, 9, 57, 0, 25, 49, 21, 45, 18, 47, 12, 42, 0, 49, 22, 39, 16, 53, 25, 36, 0, 52, 22, 16, 6, 60, 4, 51, 0, 26, 37, 47, 10, 36, 63, 5, 57, 0, 18, 59, 23, 33, 51, 19, 0, 44, 15, 11, 54, 17, 42, 35, 53, 18, 58, 33, 49, 4, 34, 42, 0, 50, 43, 25, 16, 49, 34, 20, 37, 28, 12, 63, 16, 38, 25, 44, 0, 40, 52, 17, 35, 3, 50, 14, 8, 53, 11, 36, 25, 45, 9, 62, 0, 54, 28, 17, 50, 55, 15, 24, 57, 0, 53, 34, 23, 41, 15, 45, 0, 49, 16, 4, 48, 9, 63, 45, 0, 42, 58, 37, 61, 22, 54, 26}, {0, 50, 21, 47, 54, 36, 27, 45, 52, 4, 34, 15, 63, 29, 37, 59, 17, 31, 6, 61, 28, 5, 48, 18, 59, 27, 34, 56, 44, 31, 35, 12, 41, 59, 16, 3, 40, 20, 50, 22, 30, 40, 52, 10, 45, 3, 59, 22, 37, 61, 29, 46, 31, 58, 2, 22, 9, 43, 3, 39, 14, 61, 24, 54, 15, 29, 11, 60, 39, 17, 5, 61, 0, 44, 50, 3, 31, 14, 58, 21, 54, 28, 15, 45, 60, 26, 33, 58, 44, 22, 60, 2, 57, 34, 49, 27, 18, 34, 21, 59, 29, 4, 36, 41, 8, 39, 28, 11, 62, 26, 53, 20, 35, 24, 59, 32, 29, 39, 24, 31, 57, 23, 11, 28, 5, 36, 11, 59}, {44, 32, 63, 5, 20, 12, 41, 7, 30, 61, 42, 8, 39, 5, 33, 8, 24, 53, 45, 11, 37, 58, 7, 44, 10, 50, 3, 40, 8, 22, 53, 19, 46, 9, 33, 52, 24, 58, 8, 44, 13, 47, 8, 34, 38, 30, 14, 47, 7, 34, 4, 55, 9, 19, 40, 49, 56, 26, 60, 21, 30, 45, 10, 19, 40, 58, 23, 36, 3, 52, 45, 23, 54, 13, 22, 42, 53, 45, 7, 33, 10, 36, 57, 6, 29, 12, 41, 0, 30, 15, 41, 30, 17, 7, 16, 53, 40, 56, 2, 39, 12, 61, 10, 52, 31, 60, 16, 45, 1, 37, 7, 61, 40, 10, 43, 17, 58, 7, 54, 14, 4, 51, 39, 49, 18, 56, 42, 20}, {14, 6, 24, 36, 56, 49, 22, 60, 18, 14, 23, 51, 26, 57, 21, 52, 41, 14, 35, 50, 19, 31, 40, 23, 33, 14, 63, 17, 32, 47, 7, 62, 23, 30, 56, 11, 42, 27, 14, 60, 35, 19, 28, 61, 17, 55, 25, 39, 53, 17, 42, 21, 38, 63, 25, 5, 14, 36, 12, 50, 1, 37, 59, 32, 2, 51, 6, 56, 27, 32, 11, 30, 38, 26, 60, 8, 26, 19, 62, 39, 50, 2, 21, 39, 53, 23, 56, 19, 49, 39, 5, 46, 55, 23, 42, 4, 31, 11, 47, 26, 45, 22, 48, 18, 21, 5, 48, 25, 57, 14, 47, 30, 3, 56, 12, 50, 1, 42, 19, 47, 35, 17, 8, 30, 45, 25, 4, 51}, {28, 58, 43, 1, 31, 8, 33, 2, 44, 55, 32, 1, 60, 12, 46, 27, 4, 62, 23, 1, 56, 13, 62, 2, 54, 36, 25, 51, 1, 57, 26, 42, 3, 49, 17, 38, 1, 48, 31, 4, 54, 3, 50, 24, 1, 49, 5, 63, 13, 27, 52, 1, 48, 13, 45, 33, 52, 30, 46, 20, 55, 28, 6, 48, 24, 38, 20, 47, 14, 62, 48, 9, 58, 4, 36, 30, 56, 1, 34, 12, 18, 63, 25, 48, 4, 16, 37, 7, 62, 10, 52, 28, 13, 50, 36, 63, 24, 51, 15, 58, 8, 33, 1, 38, 56, 35, 42, 9, 33, 51, 22, 18, 48, 32, 27, 37, 23, 61, 33, 11, 59, 29, 62, 1, 53, 10, 60, 33}, {12, 39, 17, 52, 26, 46, 53, 38, 25, 11, 48, 36, 16, 43, 2, 35, 55, 17, 39, 29, 43, 9, 28, 45, 20, 5, 46, 12, 42, 28, 13, 52, 36, 6, 60, 22, 54, 17, 62, 39, 25, 42, 15, 55, 44, 20, 31, 10, 35, 57, 24, 32, 29, 6, 59, 18, 7, 62, 3, 41, 10, 44, 16, 54, 13, 62, 31, 9, 41, 1, 21, 43, 18, 47, 15, 40, 11, 49, 28, 55, 46, 30, 8, 43, 32, 61, 28, 47, 25, 34, 21, 61, 32, 1, 20, 9, 46, 6, 35, 19, 41, 54, 27, 63, 14, 3, 51, 20, 62, 2, 38, 55, 8, 21, 63, 6, 46, 9, 26, 51, 3, 24, 43, 34, 16, 41, 18, 48}, {62, 23, 55, 9, 15, 62, 19, 13, 58, 40, 6, 30, 54, 19, 50, 31, 10, 44, 6, 59, 21, 47, 51, 15, 60, 39, 30, 54, 21, 61, 19, 33, 14, 29, 43, 11, 34, 45, 7, 21, 10, 56, 36, 6, 38, 11, 58, 42, 2, 47, 11, 60, 50, 16, 41, 28, 38, 23, 47, 17, 35, 63, 22, 33, 42, 5, 45, 17, 53, 35, 25, 56, 33, 6, 51, 19, 60, 23, 43, 15, 5, 40, 58, 13, 51, 1, 45, 11, 54, 3, 43, 8, 37, 48, 59, 29, 39, 21, 61, 43, 3, 31, 10, 44, 24, 29, 60, 12, 28, 40, 11, 25, 43, 52, 14, 41, 16, 57, 44, 20, 40, 55, 12, 21, 57, 27, 35, 2}, {37, 6, 31, 42, 40, 4, 29, 50, 0, 20, 63, 28, 9, 58, 14, 24, 63, 26, 48, 16, 34, 4, 32, 38, 23, 11, 58, 4, 37, 9, 45, 5, 63, 48, 26, 57, 2, 28, 32, 51, 46, 29, 13, 62, 27, 46, 28, 18, 50, 15, 40, 4, 19, 34, 54, 0, 53, 9, 26, 58, 28, 5, 49, 0, 57, 27, 19, 60, 29, 8, 59, 12, 37, 63, 24, 46, 3, 37, 6, 52, 26, 32, 20, 36, 9, 22, 59, 18, 35, 51, 14, 57, 17, 24, 12, 44, 56, 0, 30, 13, 59, 20, 49, 17, 54, 43, 6, 34, 46, 17, 58, 36, 0, 34, 29, 54, 25, 2, 36, 15, 60, 6, 37, 46, 4, 50, 9, 45}, {19, 59, 48, 3, 24, 60, 44, 22, 34, 51, 15, 45, 41, 5, 33, 47, 0, 37, 12, 55, 25, 54, 8, 57, 0, 47, 18, 34, 49, 15, 55, 24, 40, 20, 8, 35, 53, 13, 41, 18, 0, 59, 22, 33, 4, 52, 8, 60, 24, 36, 31, 56, 45, 26, 10, 43, 15, 56, 36, 4, 51, 14, 39, 30, 12, 55, 36, 2, 39, 49, 4, 44, 17, 0, 32, 13, 53, 35, 59, 17, 62, 0, 55, 24, 52, 38, 31, 6, 42, 19, 29, 40, 4, 54, 33, 5, 16, 27, 52, 37, 23, 55, 7, 37, 0, 39, 23, 49, 4, 53, 31, 15, 59, 10, 50, 4, 60, 34, 48, 7, 31, 49, 27, 14, 62, 22, 53, 29}, {46, 21, 14, 51, 36, 17, 7, 57, 10, 32, 3, 37, 22, 60, 39, 18, 56, 20, 42, 3, 36, 10, 44, 26, 41, 29, 53, 27, 2, 39, 30, 52, 0, 59, 15, 48, 23, 61, 6, 58, 37, 12, 40, 49, 16, 39, 20, 44, 0, 62, 8, 21, 3, 59, 23, 32, 49, 31, 12, 44, 22, 59, 18, 50, 24, 7, 43, 52, 15, 23, 41, 26, 51, 28, 55, 39, 21, 27, 10, 42, 12, 45, 27, 47, 3, 15, 63, 26, 55, 0, 60, 26, 45, 18, 62, 38, 58, 49, 8, 47, 4, 33, 46, 29, 57, 13, 56, 16, 59, 21, 5, 47, 23, 39, 18, 44, 13, 22, 28, 53, 19, 0, 58, 32, 41, 7, 26, 13}, {0, 56, 34, 28, 11, 55, 31, 47, 26, 41, 56, 13, 53, 28, 11, 49, 7, 52, 32, 61, 50, 22, 63, 17, 13, 56, 7, 19, 43, 62, 10, 21, 37, 32, 43, 4, 38, 19, 44, 25, 31, 54, 5, 23, 61, 30, 53, 12, 35, 22, 43, 53, 37, 48, 7, 62, 20, 2, 61, 41, 8, 34, 47, 9, 63, 34, 28, 10, 55, 33, 14, 57, 7, 47, 9, 61, 4, 49, 31, 50, 21, 38, 8, 16, 57, 44, 33, 5, 49, 36, 12, 50, 7, 34, 10, 25, 2, 22, 36, 15, 26, 61, 18, 9, 22, 46, 32, 8, 27, 37, 44, 30, 55, 3, 62, 24, 38, 56, 5, 45, 38, 24, 43, 10, 19, 54, 39, 61}, {41, 30, 8, 63, 43, 23, 38, 3, 62, 19, 8, 49, 25, 1, 58, 30, 23, 40, 9, 28, 18, 40, 6, 38, 49, 22, 35, 59, 8, 27, 50, 5, 56, 17, 11, 50, 30, 9, 55, 2, 51, 19, 34, 47, 9, 41, 6, 26, 48, 57, 14, 28, 17, 12, 39, 13, 37, 46, 25, 19, 54, 27, 1, 37, 16, 45, 20, 60, 1, 48, 20, 38, 31, 22, 42, 15, 19, 44, 1, 61, 6, 34, 56, 40, 29, 10, 20, 46, 13, 22, 41, 23, 59, 42, 30, 51, 45, 13, 63, 53, 42, 12, 51, 38, 62, 2, 26, 41, 50, 1, 61, 10, 19, 42, 31, 8, 49, 32, 12, 63, 9, 52, 16, 56, 36, 2, 31, 16}, {52, 5, 47, 20, 1, 53, 12, 50, 16, 35, 43, 21, 33, 43, 16, 44, 3, 59, 14, 46, 1, 30, 60, 33, 2, 45, 12, 42, 31, 47, 14, 33, 46, 25, 55, 27, 60, 36, 16, 42, 14, 46, 26, 1, 55, 15, 63, 32, 2, 38, 5, 47, 33, 61, 30, 52, 4, 57, 6, 38, 11, 43, 61, 24, 52, 3, 31, 22, 42, 10, 62, 3, 59, 11, 35, 57, 33, 54, 24, 14, 29, 48, 18, 2, 60, 41, 53, 24, 32, 62, 3, 53, 15, 1, 55, 17, 32, 40, 6, 31, 1, 40, 28, 5, 35, 52, 19, 63, 13, 33, 17, 41, 52, 26, 15, 57, 1, 20, 42, 17, 35, 27, 48, 5, 25, 50, 44, 11}, {35, 25, 38, 57, 33, 17, 40, 6, 59, 27, 54, 5, 61, 10, 52, 26, 36, 19, 51, 35, 57, 48, 11, 20, 54, 25, 61, 16, 1, 58, 24, 61, 3, 39, 7, 47, 1, 22, 49, 28, 63, 10, 58, 32, 17, 36, 45, 19, 51, 29, 59, 10, 50, 1, 23, 42, 18, 29, 51, 21, 56, 32, 14, 5, 40, 58, 47, 13, 54, 35, 29, 45, 18, 52, 26, 2, 38, 8, 46, 36, 58, 11, 52, 35, 17, 28, 1, 58, 9, 39, 17, 28, 37, 48, 20, 9, 57, 24, 50, 19, 58, 16, 48, 25, 43, 11, 35, 6, 45, 24, 56, 4, 36, 7, 47, 35, 52, 28, 59, 30, 2, 61, 21, 33, 63, 12, 18, 59}, {3, 49, 15, 10, 27, 61, 25, 45, 30, 0, 14, 47, 31, 38, 17, 62, 7, 55, 27, 4, 15, 24, 42, 52, 10, 34, 5, 51, 36, 18, 41, 11, 35, 21, 62, 13, 33, 57, 8, 35, 5, 40, 21, 43, 52, 3, 24, 56, 11, 16, 33, 25, 41, 20, 55, 8, 60, 35, 15, 48, 2, 57, 30, 49, 18, 25, 6, 39, 17, 57, 7, 25, 43, 5, 49, 16, 62, 22, 55, 4, 25, 43, 23, 7, 50, 11, 37, 48, 14, 51, 33, 57, 7, 27, 39, 46, 4, 29, 11, 43, 34, 56, 7, 60, 20, 54, 30, 57, 22, 49, 9, 33, 54, 14, 63, 23, 6, 43, 10, 40, 50, 13, 44, 8, 38, 33, 46, 23}, {55, 39, 22, 50, 44, 4, 36, 9, 52, 23, 37, 59, 21, 2, 46, 13, 31, 41, 11, 45, 62, 29, 6, 37, 19, 48, 30, 23, 44, 7, 53, 28, 54, 16, 41, 29, 44, 18, 52, 24, 60, 15, 48, 7, 27, 59, 9, 34, 42, 54, 7, 63, 4, 46, 31, 27, 45, 0, 40, 26, 34, 17, 37, 10, 53, 29, 36, 50, 2, 27, 51, 11, 61, 37, 23, 41, 30, 7, 18, 50, 39, 14, 63, 32, 45, 61, 19, 30, 25, 44, 2, 47, 23, 63, 11, 34, 59, 37, 60, 3, 22, 14, 44, 30, 15, 0, 47, 15, 3, 38, 61, 20, 27, 45, 11, 39, 51, 16, 55, 3, 22, 54, 29, 58, 1, 57, 6, 29}, {9, 17, 60, 2, 34, 56, 20, 62, 39, 12, 49, 6, 29, 56, 34, 48, 0, 58, 22, 38, 18, 43, 56, 0, 63, 14, 55, 3, 59, 31, 15, 45, 0, 49, 6, 58, 3, 38, 12, 45, 0, 37, 29, 57, 13, 39, 30, 49, 0, 23, 44, 36, 16, 57, 13, 54, 11, 24, 63, 9, 53, 7, 62, 42, 0, 59, 15, 23, 63, 34, 40, 16, 32, 0, 53, 12, 48, 28, 59, 33, 0, 53, 9, 27, 3, 22, 54, 5, 56, 9, 61, 13, 42, 14, 52, 19, 0, 21, 47, 27, 53, 36, 3, 50, 39, 58, 25, 40, 53, 28, 12, 50, 0, 59, 32, 2, 21, 34, 26, 46, 37, 7, 18, 47, 24, 14, 53, 42}, {61, 32, 13, 54, 29, 7, 46, 13, 28, 57, 18, 41, 53, 15, 9, 39, 24, 49, 33, 3, 53, 9, 26, 32, 40, 28, 46, 39, 25, 9, 56, 21, 63, 37, 26, 22, 51, 27, 17, 56, 31, 53, 4, 43, 22, 46, 12, 18, 60, 40, 20, 26, 50, 21, 39, 5, 49, 33, 16, 44, 22, 46, 20, 32, 24, 45, 8, 43, 12, 46, 4, 48, 56, 20, 29, 58, 3, 40, 10, 42, 31, 21, 47, 41, 56, 38, 15, 42, 36, 27, 20, 33, 55, 3, 26, 44, 31, 54, 12, 35, 9, 63, 28, 10, 21, 32, 9, 60, 17, 8, 43, 29, 40, 16, 36, 48, 60, 7, 57, 14, 62, 31, 42, 15, 36, 40, 20, 26}, {0, 37, 47, 23, 41, 18, 32, 48, 1, 35, 8, 25, 4, 26, 63, 20, 54, 8, 16, 61, 35, 23, 51, 15, 58, 7, 12, 20, 50, 34, 42, 4, 38, 10, 32, 47, 8, 60, 41, 20, 9, 25, 50, 19, 62, 1, 37, 56, 28, 8, 53, 11, 3, 58, 34, 43, 19, 60, 38, 4, 58, 31, 3, 51, 11, 55, 38, 30, 21, 58, 19, 26, 9, 44, 36, 13, 46, 20, 62, 24, 13, 60, 5, 28, 12, 34, 7, 59, 0, 53, 45, 6, 38, 30, 50, 7, 62, 16, 41, 5, 46, 18, 55, 42, 51, 5, 45, 23, 34, 48, 19, 58, 5, 25, 54, 19, 13, 41, 28, 21, 0, 49, 10, 60, 4, 51, 9, 45}, {19, 28, 6, 58, 10, 51, 4, 22, 55, 42, 60, 45, 34, 51, 42, 5, 30, 45, 27, 40, 13, 47, 4, 49, 21, 38, 60, 29, 2, 57, 17, 27, 52, 19, 61, 14, 30, 34, 2, 44, 63, 33, 11, 35, 16, 51, 25, 6, 14, 47, 31, 61, 37, 29, 18, 8, 52, 2, 28, 54, 13, 41, 15, 62, 35, 18, 2, 60, 6, 33, 41, 61, 31, 6, 56, 17, 34, 50, 6, 52, 44, 35, 16, 51, 59, 24, 48, 18, 31, 40, 16, 49, 21, 60, 17, 39, 10, 49, 32, 57, 24, 39, 1, 25, 18, 62, 37, 12, 56, 1, 37, 11, 52, 44, 9, 30, 47, 4, 51, 40, 55, 25, 34, 27, 56, 30, 32, 54}, {63, 40, 49, 15, 43, 26, 63, 38, 16, 20, 30, 12, 57, 14, 19, 60, 36, 12, 59, 2, 57, 17, 42, 31, 1, 44, 16, 35, 47, 11, 32, 48, 13, 43, 1, 39, 51, 12, 57, 23, 6, 40, 53, 3, 55, 31, 39, 60, 35, 44, 5, 15, 45, 1, 62, 41, 26, 14, 47, 22, 36, 27, 50, 9, 26, 47, 52, 28, 54, 16, 1, 13, 51, 39, 23, 63, 1, 30, 15, 26, 2, 57, 19, 37, 1, 44, 21, 50, 13, 63, 8, 24, 56, 1, 35, 25, 58, 20, 2, 28, 14, 51, 33, 59, 13, 30, 4, 49, 31, 24, 63, 26, 33, 3, 58, 38, 62, 24, 32, 8, 17, 45, 5, 48, 18, 3, 43, 11}, {21, 4, 24, 34, 59, 1, 37, 11, 53, 5, 47, 2, 22, 40, 32, 1, 24, 50, 21, 29, 38, 25, 63, 8, 55, 24, 53, 6, 62, 23, 59, 3, 54, 20, 58, 24, 5, 46, 15, 38, 48, 14, 27, 42, 23, 7, 46, 10, 17, 58, 25, 52, 23, 32, 49, 12, 55, 30, 40, 7, 59, 1, 56, 21, 39, 4, 23, 15, 37, 46, 55, 42, 21, 4, 48, 8, 45, 54, 37, 55, 32, 8, 46, 10, 30, 54, 4, 41, 25, 29, 36, 48, 11, 43, 14, 47, 5, 43, 53, 36, 61, 10, 45, 6, 41, 54, 27, 43, 16, 55, 6, 46, 18, 42, 23, 15, 1, 45, 12, 60, 37, 22, 62, 12, 39, 59, 16, 52}, {47, 35, 56, 7, 19, 46, 31, 50, 33, 24, 61, 35, 50, 7, 53, 44, 55, 6, 46, 10, 52, 5, 21, 43, 36, 10, 18, 41, 26, 37, 8, 29, 40, 36, 9, 49, 34, 26, 61, 21, 7, 59, 18, 62, 29, 54, 20, 32, 51, 0, 40, 10, 55, 6, 20, 36, 9, 61, 5, 51, 44, 19, 33, 43, 13, 57, 40, 63, 8, 24, 29, 10, 60, 34, 27, 40, 25, 18, 10, 42, 21, 49, 26, 62, 38, 12, 33, 61, 5, 57, 2, 19, 54, 28, 62, 22, 38, 31, 16, 7, 22, 47, 29, 17, 35, 8, 20, 51, 2, 40, 22, 50, 13, 61, 28, 53, 35, 20, 56, 30, 2, 53, 14, 41, 23, 34, 8, 31}, {12, 2, 42, 29, 52, 13, 21, 8, 55, 14, 41, 17, 28, 58, 23, 11, 17, 36, 31, 62, 17, 34, 50, 14, 28, 61, 33, 52, 2, 51, 17, 45, 7, 25, 62, 30, 18, 55, 0, 42, 30, 35, 45, 1, 12, 48, 3, 63, 21, 36, 30, 48, 19, 59, 43, 27, 46, 17, 34, 25, 12, 29, 53, 6, 48, 31, 11, 34, 49, 3, 36, 50, 19, 47, 14, 61, 11, 36, 58, 4, 60, 14, 39, 22, 6, 52, 15, 35, 17, 46, 31, 42, 9, 34, 3, 52, 12, 60, 26, 56, 40, 2, 53, 23, 57, 38, 62, 14, 36, 59, 10, 31, 39, 6, 49, 9, 41, 26, 5, 48, 43, 27, 33, 58, 1, 50, 25, 57}, {61, 37, 15, 61, 3, 39, 58, 43, 26, 0, 44, 10, 47, 3, 37, 63, 28, 43, 13, 39, 3, 57, 30, 59, 0, 48, 5, 43, 13, 22, 60, 33, 55, 15, 42, 4, 52, 10, 45, 13, 54, 4, 24, 49, 37, 26, 41, 14, 42, 9, 61, 13, 38, 23, 3, 53, 0, 58, 21, 42, 63, 10, 17, 61, 25, 0, 58, 28, 17, 44, 57, 12, 27, 0, 55, 5, 52, 28, 23, 47, 29, 0, 43, 17, 58, 28, 47, 23, 55, 10, 58, 23, 51, 40, 18, 33, 45, 0, 49, 8, 32, 61, 19, 48, 0, 26, 7, 47, 29, 18, 44, 0, 56, 34, 20, 59, 15, 51, 37, 18, 10, 52, 7, 20, 46, 9, 38, 17}, {6, 27, 48, 23, 45, 29, 5, 18, 38, 62, 27, 56, 20, 32, 15, 9, 48, 0, 54, 22, 45, 20, 7, 41, 23, 39, 19, 27, 58, 31, 44, 0, 12, 50, 23, 56, 20, 39, 32, 59, 16, 52, 33, 9, 57, 22, 6, 58, 28, 50, 24, 2, 56, 35, 16, 45, 32, 38, 15, 54, 2, 38, 46, 22, 35, 45, 20, 5, 52, 25, 7, 35, 59, 32, 22, 43, 38, 3, 51, 16, 34, 53, 32, 50, 3, 40, 8, 43, 0, 39, 27, 4, 14, 61, 8, 55, 15, 41, 20, 44, 27, 13, 39, 11, 46, 42, 54, 33, 4, 52, 23, 61, 14, 25, 43, 2, 33, 11, 63, 29, 61, 17, 40, 55, 22, 62, 28, 44}, {20, 54, 8, 56, 35, 10, 63, 31, 52, 12, 48, 6, 59, 41, 52, 33, 19, 58, 25, 49, 11, 37, 47, 12, 54, 15, 56, 35, 7, 47, 16, 53, 28, 34, 5, 37, 28, 8, 48, 3, 28, 38, 18, 61, 16, 43, 53, 32, 4, 17, 47, 27, 44, 8, 63, 10, 25, 49, 6, 37, 24, 52, 32, 3, 50, 12, 41, 56, 38, 14, 62, 20, 40, 16, 53, 31, 18, 63, 41, 9, 59, 7, 13, 25, 57, 20, 63, 26, 53, 18, 48, 62, 30, 46, 21, 25, 58, 29, 36, 4, 55, 34, 6, 60, 31, 16, 21, 12, 58, 38, 9, 29, 47, 7, 52, 30, 57, 44, 22, 0, 35, 45, 3, 31, 14, 36, 0, 51}, {42, 14, 33, 24, 16, 49, 40, 2, 22, 33, 16, 36, 25, 1, 21, 61, 38, 8, 33, 4, 62, 26, 29, 60, 6, 46, 30, 11, 63, 4, 36, 40, 19, 57, 46, 11, 41, 63, 22, 25, 58, 10, 46, 2, 34, 27, 11, 38, 56, 34, 12, 53, 18, 33, 41, 51, 13, 28, 60, 20, 47, 14, 29, 59, 16, 62, 8, 22, 32, 47, 9, 49, 2, 44, 7, 12, 45, 6, 20, 27, 45, 24, 62, 42, 36, 11, 33, 15, 37, 7, 32, 10, 37, 1, 35, 50, 6, 11, 63, 24, 52, 15, 50, 24, 3, 37, 56, 27, 34, 22, 49, 16, 36, 62, 17, 39, 4, 15, 54, 24, 50, 8, 58, 26, 49, 54, 11, 30}, {4, 59, 41, 1, 53, 12, 25, 45, 59, 7, 51, 39, 54, 14, 46, 4, 27, 53, 16, 44, 18, 51, 1, 32, 25, 2, 50, 40, 20, 54, 24, 9, 62, 2, 27, 60, 1, 17, 36, 50, 6, 40, 30, 55, 41, 19, 49, 1, 21, 60, 40, 5, 62, 1, 22, 30, 57, 4, 43, 31, 1, 55, 40, 7, 27, 37, 30, 54, 1, 19, 42, 30, 56, 26, 62, 49, 24, 57, 37, 56, 2, 39, 16, 5, 30, 55, 3, 49, 60, 23, 56, 44, 17, 52, 13, 42, 28, 48, 18, 45, 9, 37, 21, 41, 58, 10, 48, 1, 63, 5, 41, 57, 2, 24, 12, 48, 27, 42, 32, 46, 13, 38, 19, 34, 5, 41, 25, 60}, {39, 28, 21, 46, 32, 57, 36, 9, 19, 42, 4, 29, 11, 43, 30, 49, 13, 42, 35, 56, 9, 39, 15, 52, 36, 61, 18, 26, 45, 14, 31, 48, 21, 43, 14, 33, 49, 54, 14, 44, 21, 62, 13, 23, 8, 62, 15, 51, 44, 7, 30, 37, 20, 42, 56, 7, 39, 18, 50, 11, 61, 9, 19, 43, 57, 2, 48, 11, 39, 60, 28, 4, 37, 17, 35, 1, 33, 11, 31, 14, 48, 19, 35, 51, 46, 21, 44, 29, 12, 41, 2, 22, 58, 26, 54, 4, 59, 38, 2, 33, 57, 1, 63, 13, 28, 51, 15, 40, 18, 45, 8, 30, 43, 37, 54, 19, 8, 59, 21, 6, 60, 29, 55, 10, 63, 15, 47, 17}, {3, 50, 10, 62, 18, 5, 27, 49, 60, 23, 55, 18, 62, 24, 56, 10, 59, 28, 2, 23, 34, 59, 43, 20, 10, 42, 8, 49, 1, 37, 57, 6, 51, 29, 53, 7, 23, 31, 5, 32, 51, 0, 35, 54, 45, 31, 5, 26, 36, 24, 55, 15, 48, 29, 14, 48, 26, 60, 21, 41, 36, 26, 50, 33, 14, 44, 17, 24, 52, 15, 46, 23, 54, 6, 47, 21, 60, 50, 4, 53, 29, 61, 8, 23, 1, 60, 19, 6, 53, 16, 47, 34, 6, 39, 16, 31, 12, 20, 53, 22, 30, 43, 25, 46, 35, 6, 44, 32, 53, 26, 55, 19, 11, 59, 5, 33, 51, 1, 35, 53, 25, 3, 42, 23, 44, 32, 7, 53}, {22, 44, 37, 6, 26, 51, 38, 0, 34, 13, 31, 46, 3, 37, 6, 19, 40, 21, 47, 63, 12, 5, 29, 55, 22, 58, 34, 28, 60, 22, 11, 41, 17, 38, 9, 44, 59, 39, 56, 19, 11, 47, 25, 15, 3, 39, 57, 17, 61, 11, 46, 3, 58, 9, 54, 35, 2, 34, 8, 45, 15, 56, 5, 23, 53, 33, 63, 35, 4, 59, 10, 51, 13, 61, 29, 41, 15, 25, 43, 19, 40, 10, 54, 33, 41, 12, 38, 51, 31, 26, 61, 9, 30, 45, 24, 62, 49, 40, 10, 61, 14, 49, 5, 17, 54, 20, 60, 23, 3, 13, 35, 50, 32, 23, 46, 27, 38, 63, 16, 12, 39, 48, 18, 51, 1, 27, 56, 35}, {63, 15, 30, 55, 43, 14, 57, 17, 53, 44, 7, 48, 26, 50, 32, 60, 0, 53, 14, 31, 50, 24, 46, 0, 38, 13, 4, 52, 16, 45, 30, 59, 0, 25, 55, 35, 16, 10, 26, 42, 58, 29, 60, 38, 50, 22, 28, 47, 0, 50, 28, 19, 33, 39, 11, 44, 16, 52, 24, 59, 3, 38, 27, 51, 0, 21, 7, 42, 26, 34, 21, 40, 33, 18, 39, 3, 54, 38, 8, 59, 0, 44, 27, 15, 58, 28, 57, 9, 43, 0, 36, 50, 20, 59, 8, 34, 0, 27, 47, 7, 36, 19, 56, 32, 0, 38, 11, 29, 62, 47, 6, 61, 0, 41, 14, 56, 10, 23, 45, 31, 57, 8, 36, 13, 58, 38, 11, 19}, {0, 34, 12, 47, 21, 2, 40, 30, 11, 25, 61, 20, 40, 15, 35, 22, 45, 36, 7, 41, 17, 57, 9, 48, 32, 62, 44, 24, 35, 3, 54, 13, 33, 63, 19, 4, 48, 22, 62, 2, 37, 8, 33, 6, 20, 52, 9, 32, 43, 13, 39, 63, 25, 4, 49, 23, 62, 32, 9, 30, 48, 18, 63, 12, 46, 29, 58, 13, 48, 8, 57, 31, 0, 51, 9, 58, 12, 22, 47, 29, 35, 22, 49, 5, 46, 4, 34, 20, 63, 24, 56, 11, 41, 3, 51, 19, 56, 35, 17, 58, 28, 42, 9, 45, 59, 26, 51, 42, 17, 36, 25, 15, 53, 21, 44, 3, 30, 55, 5, 50, 21, 28, 61, 32, 6, 49, 28, 46}, {58, 42, 60, 4, 31, 59, 22, 63, 35, 38, 9, 54, 1, 57, 8, 51, 16, 58, 27, 53, 3, 38, 30, 15, 27, 6, 19, 56, 10, 50, 21, 36, 47, 5, 43, 28, 51, 32, 13, 46, 18, 54, 16, 43, 63, 12, 36, 59, 22, 34, 5, 52, 17, 59, 27, 41, 0, 19, 55, 37, 13, 43, 6, 34, 41, 10, 36, 55, 19, 44, 3, 16, 58, 27, 49, 25, 32, 62, 17, 55, 13, 63, 18, 52, 25, 37, 17, 48, 13, 32, 5, 46, 28, 37, 14, 43, 25, 5, 51, 39, 3, 52, 33, 22, 8, 40, 12, 4, 57, 9, 46, 39, 28, 58, 13, 62, 17, 42, 19, 36, 0, 47, 16, 43, 24, 21, 54, 13}, {25, 9, 23, 50, 36, 8, 45, 14, 3, 51, 16, 28, 44, 12, 42, 29, 4, 26, 10, 47, 22, 61, 18, 54, 51, 39, 46, 13, 41, 26, 58, 7, 18, 39, 12, 57, 15, 1, 52, 27, 41, 23, 48, 1, 27, 45, 18, 2, 57, 26, 55, 8, 43, 31, 6, 58, 14, 51, 40, 5, 61, 31, 24, 54, 17, 60, 22, 1, 39, 30, 53, 45, 36, 13, 43, 5, 45, 2, 37, 6, 34, 42, 2, 39, 10, 62, 7, 54, 40, 18, 60, 15, 52, 21, 63, 8, 55, 46, 15, 30, 23, 13, 62, 16, 50, 24, 58, 31, 48, 21, 34, 2, 49, 7, 31, 37, 26, 48, 9, 61, 40, 11, 52, 2, 60, 40, 4, 37}, {52, 28, 39, 16, 54, 19, 29, 55, 42, 20, 58, 33, 24, 63, 18, 55, 39, 62, 43, 34, 12, 40, 6, 35, 2, 25, 8, 62, 34, 1, 31, 42, 61, 27, 53, 24, 40, 61, 34, 8, 59, 4, 30, 56, 40, 6, 53, 42, 10, 48, 16, 37, 12, 46, 21, 36, 47, 11, 28, 45, 22, 10, 57, 2, 49, 31, 14, 44, 61, 11, 25, 6, 23, 63, 18, 36, 28, 56, 20, 51, 11, 48, 27, 56, 32, 22, 45, 30, 2, 42, 27, 39, 1, 44, 23, 31, 38, 22, 11, 61, 43, 54, 4, 47, 35, 2, 44, 16, 28, 54, 12, 62, 18, 43, 10, 52, 1, 58, 33, 15, 29, 56, 20, 34, 9, 30, 48, 17}, {46, 2, 56, 11, 41, 1, 49, 6, 27, 47, 2, 48, 5, 32, 37, 3, 13, 19, 32, 1, 55, 28, 60, 17, 43, 59, 32, 20, 49, 16, 55, 23, 14, 46, 2, 36, 6, 30, 20, 49, 12, 47, 35, 14, 21, 60, 29, 14, 35, 24, 46, 1, 56, 29, 53, 8, 33, 23, 56, 1, 35, 46, 20, 39, 26, 4, 53, 28, 17, 38, 60, 34, 48, 9, 55, 15, 46, 7, 41, 31, 60, 24, 16, 36, 1, 59, 19, 52, 35, 6, 55, 11, 59, 33, 7, 57, 4, 29, 48, 1, 19, 26, 37, 30, 18, 63, 37, 6, 59, 1, 40, 24, 56, 33, 46, 22, 35, 7, 24, 53, 39, 5, 26, 45, 55, 18, 62, 7}, {20, 60, 29, 34, 20, 62, 33, 52, 10, 36, 13, 60, 41, 21, 50, 27, 56, 49, 8, 51, 21, 45, 11, 48, 8, 23, 53, 3, 29, 44, 5, 52, 9, 32, 50, 17, 43, 56, 3, 38, 24, 10, 62, 25, 51, 9, 33, 49, 61, 7, 30, 62, 22, 19, 2, 42, 63, 5, 49, 18, 60, 15, 52, 7, 43, 56, 23, 50, 5, 50, 2, 20, 41, 30, 1, 52, 22, 61, 14, 26, 3, 43, 53, 7, 47, 28, 11, 14, 23, 58, 33, 25, 47, 13, 50, 17, 40, 54, 34, 60, 41, 6, 59, 14, 50, 7, 25, 55, 20, 42, 51, 8, 27, 4, 16, 60, 28, 50, 44, 3, 22, 49, 63, 12, 33, 1, 43, 31}, {36, 5, 46, 8, 44, 24, 13, 39, 25, 57, 31, 18, 8, 52, 10, 45, 6, 30, 36, 24, 63, 4, 33, 26, 57, 40, 15, 56, 37, 12, 40, 25, 37, 58, 11, 63, 21, 45, 16, 60, 31, 53, 18, 33, 3, 45, 23, 0, 20, 54, 40, 15, 50, 38, 60, 16, 25, 42, 29, 38, 7, 41, 25, 62, 18, 33, 8, 35, 42, 16, 32, 56, 12, 39, 59, 19, 34, 9, 49, 38, 57, 12, 21, 50, 14, 40, 61, 44, 50, 9, 49, 19, 3, 29, 35, 62, 12, 24, 7, 18, 52, 32, 10, 46, 21, 41, 32, 11, 36, 29, 14, 34, 60, 38, 54, 11, 41, 14, 19, 57, 32, 16, 7, 41, 51, 25, 14, 57}, {53, 18, 26, 50, 15, 58, 4, 63, 17, 43, 7, 40, 61, 35, 15, 41, 23, 60, 16, 38, 14, 42, 19, 50, 0, 31, 10, 46, 27, 63, 18, 60, 0, 20, 29, 39, 8, 26, 37, 5, 42, 0, 44, 39, 57, 17, 58, 41, 28, 37, 4, 32, 9, 44, 12, 31, 54, 10, 59, 14, 27, 53, 12, 36, 0, 47, 13, 63, 21, 58, 10, 24, 50, 27, 4, 26, 44, 53, 31, 0, 18, 42, 29, 33, 57, 4, 32, 26, 0, 38, 16, 61, 41, 53, 20, 0, 42, 44, 49, 27, 10, 56, 39, 0, 57, 15, 53, 49, 3, 61, 22, 47, 17, 5, 49, 26, 2, 63, 39, 10, 47, 27, 37, 23, 4, 59, 38, 10}, {23, 39, 61, 3, 37, 28, 48, 31, 0, 34, 51, 23, 2, 26, 58, 0, 53, 11, 46, 1, 57, 29, 52, 14, 37, 61, 21, 35, 2, 49, 7, 34, 47, 55, 4, 33, 54, 13, 58, 52, 19, 50, 22, 7, 13, 29, 36, 11, 51, 17, 60, 25, 55, 4, 34, 51, 0, 35, 20, 48, 32, 3, 51, 30, 59, 28, 40, 3, 46, 29, 54, 43, 7, 62, 47, 11, 39, 4, 23, 46, 55, 8, 63, 5, 25, 37, 18, 46, 21, 56, 31, 5, 36, 8, 45, 58, 26, 15, 2, 36, 47, 21, 29, 44, 25, 34, 3, 27, 43, 10, 52, 0, 45, 30, 24, 36, 43, 18, 34, 59, 0, 52, 61, 15, 44, 19, 30, 49}, {0, 27, 12, 43, 54, 9, 22, 53, 21, 46, 15, 55, 29, 47, 20, 33, 39, 28, 59, 35, 9, 44, 5, 24, 47, 7, 52, 17, 56, 22, 30, 42, 14, 26, 45, 18, 49, 1, 24, 34, 11, 27, 55, 32, 61, 47, 2, 56, 6, 44, 13, 47, 36, 27, 58, 22, 16, 47, 40, 4, 57, 38, 21, 45, 16, 9, 56, 26, 11, 38, 0, 22, 36, 17, 33, 57, 16, 30, 62, 15, 35, 40, 20, 45, 59, 10, 54, 8, 63, 13, 52, 27, 22, 57, 28, 12, 32, 51, 55, 22, 63, 4, 16, 54, 12, 62, 45, 19, 58, 13, 32, 40, 20, 56, 7, 57, 9, 54, 6, 29, 42, 21, 8, 55, 35, 47, 6, 41}, {56, 33, 58, 32, 19, 35, 42, 6, 59, 11, 38, 5, 49, 12, 62, 7, 52, 17, 5, 25, 54, 20, 61, 31, 54, 27, 41, 11, 44, 5, 59, 12, 36, 51, 10, 61, 28, 41, 48, 9, 43, 63, 5, 40, 20, 8, 49, 26, 34, 21, 58, 1, 18, 45, 7, 39, 61, 26, 8, 50, 23, 10, 63, 5, 55, 37, 19, 49, 52, 15, 59, 47, 13, 54, 1, 25, 42, 58, 10, 48, 3, 27, 50, 1, 17, 48, 34, 41, 16, 40, 2, 45, 10, 39, 17, 61, 5, 38, 19, 9, 41, 31, 60, 38, 5, 23, 36, 8, 30, 55, 24, 63, 12, 48, 14, 51, 31, 20, 45, 25, 12, 50, 32, 2, 28, 11, 62, 14}, {44, 16, 7, 48, 1, 62, 16, 50, 27, 33, 61, 25, 17, 44, 31, 14, 22, 43, 32, 48, 18, 40, 8, 36, 3, 16, 33, 62, 23, 38, 25, 53, 2, 21, 41, 6, 22, 15, 59, 29, 16, 37, 26, 15, 52, 42, 23, 15, 54, 39, 10, 30, 53, 11, 49, 24, 2, 43, 55, 17, 34, 44, 15, 31, 24, 44, 2, 32, 7, 35, 25, 5, 40, 45, 29, 51, 6, 21, 37, 52, 24, 60, 13, 31, 53, 23, 2, 28, 49, 24, 31, 60, 20, 51, 1, 34, 48, 14, 59, 33, 50, 1, 18, 33, 48, 60, 17, 51, 39, 6, 38, 2, 35, 29, 40, 23, 1, 62, 15, 53, 37, 17, 46, 57, 40, 51, 24, 22}, {5, 37, 52, 24, 45, 13, 40, 3, 45, 9, 19, 42, 56, 4, 37, 46, 56, 2, 63, 11, 51, 1, 49, 13, 59, 45, 39, 1, 48, 15, 58, 9, 46, 31, 54, 35, 57, 38, 3, 46, 56, 4, 47, 57, 1, 30, 38, 63, 3, 46, 28, 63, 41, 14, 33, 62, 19, 32, 13, 28, 61, 1, 53, 42, 11, 60, 22, 62, 27, 42, 61, 31, 19, 8, 61, 12, 32, 55, 2, 18, 33, 12, 43, 36, 9, 62, 30, 55, 6, 58, 35, 7, 43, 29, 54, 23, 43, 30, 3, 25, 11, 45, 52, 28, 7, 14, 42, 1, 22, 50, 16, 53, 19, 59, 4, 46, 33, 41, 4, 35, 58, 5, 26, 13, 20, 2, 34, 54}, {30, 63, 21, 10, 26, 55, 29, 59, 23, 39, 53, 1, 36, 24, 59, 27, 10, 34, 23, 38, 30, 60, 22, 42, 28, 19, 9, 57, 30, 19, 43, 33, 13, 63, 3, 19, 11, 50, 31, 20, 14, 34, 10, 35, 17, 59, 7, 31, 19, 25, 50, 5, 20, 57, 29, 6, 52, 41, 4, 46, 20, 37, 26, 17, 49, 6, 39, 18, 53, 14, 3, 49, 57, 23, 34, 48, 14, 41, 28, 38, 56, 6, 58, 25, 39, 19, 43, 15, 37, 11, 47, 18, 53, 4, 37, 9, 62, 21, 53, 40, 57, 24, 13, 40, 56, 26, 47, 31, 59, 25, 45, 27, 10, 43, 21, 61, 13, 27, 48, 9, 23, 43, 31, 62, 38, 59, 9, 47}, {25, 4, 40, 60, 34, 6, 18, 36, 8, 57, 12, 30, 49, 14, 6, 54, 41, 16, 50, 6, 43, 15, 34, 4, 53, 24, 50, 35, 4, 51, 7, 55, 28, 24, 39, 44, 60, 7, 25, 62, 42, 53, 24, 61, 28, 45, 52, 12, 48, 37, 9, 35, 43, 3, 37, 48, 12, 58, 30, 52, 9, 59, 6, 57, 33, 29, 48, 4, 37, 45, 20, 34, 10, 39, 0, 60, 22, 45, 8, 63, 21, 42, 14, 49, 3, 56, 11, 46, 21, 61, 0, 42, 25, 13, 63, 17, 36, 8, 46, 16, 6, 35, 63, 0, 21, 37, 4, 57, 9, 34, 5, 61, 48, 32, 8, 37, 54, 17, 56, 30, 60, 0, 50, 16, 7, 29, 42, 17}, {32, 50, 15, 48, 2, 43, 52, 25, 47, 16, 32, 63, 21, 52, 40, 19, 0, 61, 29, 58, 20, 56, 26, 46, 12, 55, 6, 22, 62, 32, 17, 40, 0, 49, 34, 8, 27, 32, 48, 0, 21, 39, 5, 44, 12, 6, 22, 40, 0, 57, 16, 60, 23, 17, 54, 22, 36, 15, 24, 39, 19, 34, 47, 23, 0, 54, 13, 51, 24, 9, 55, 16, 52, 27, 44, 20, 4, 54, 26, 49, 0, 30, 46, 16, 29, 51, 34, 4, 52, 28, 33, 15, 57, 39, 26, 49, 0, 56, 27, 31, 48, 20, 43, 29, 53, 11, 46, 19, 41, 13, 55, 18, 0, 57, 26, 51, 2, 44, 6, 38, 14, 40, 22, 45, 36, 53, 3, 57}, {44, 12, 37, 28, 22, 57, 11, 38, 0, 51, 9, 41, 4, 29, 11, 47, 33, 45, 12, 26, 3, 36, 9, 63, 31, 16, 38, 44, 14, 47, 25, 61, 20, 58, 15, 47, 17, 57, 13, 36, 9, 51, 18, 29, 50, 36, 54, 20, 61, 27, 32, 13, 53, 44, 9, 27, 0, 63, 45, 2, 56, 10, 14, 43, 41, 28, 58, 11, 35, 60, 30, 41, 6, 63, 11, 51, 37, 32, 15, 10, 35, 53, 5, 61, 22, 7, 26, 59, 23, 9, 44, 48, 21, 3, 51, 32, 24, 41, 12, 61, 2, 55, 9, 15, 35, 58, 28, 15, 62, 30, 37, 23, 42, 29, 11, 17, 35, 24, 63, 20, 52, 28, 8, 55, 11, 23, 47, 19}, {0, 56, 8, 53, 14, 31, 61, 20, 55, 28, 62, 18, 35, 60, 25, 57, 7, 23, 39, 54, 47, 17, 43, 0, 40, 59, 29, 2, 56, 10, 37, 5, 43, 11, 29, 52, 1, 23, 54, 41, 59, 30, 55, 1, 62, 15, 33, 4, 43, 10, 47, 39, 1, 31, 40, 60, 49, 33, 7, 55, 26, 50, 31, 61, 8, 18, 21, 32, 44, 1, 25, 47, 18, 36, 30, 23, 59, 7, 40, 59, 27, 19, 38, 32, 44, 54, 40, 17, 38, 60, 27, 6, 35, 55, 10, 14, 44, 5, 50, 17, 38, 26, 42, 50, 18, 3, 44, 52, 2, 49, 7, 52, 15, 46, 62, 39, 55, 10, 31, 48, 3, 58, 33, 18, 61, 34, 13, 59}, {39, 27, 63, 20, 35, 41, 4, 45, 26, 5, 38, 13, 44, 2, 50, 17, 37, 52, 2, 13, 28, 58, 24, 51, 21, 8, 34, 48, 27, 42, 18, 51, 31, 56, 5, 36, 38, 44, 4, 17, 26, 11, 38, 23, 42, 8, 56, 39, 24, 51, 5, 56, 21, 59, 14, 6, 18, 42, 22, 35, 16, 37, 3, 25, 39, 46, 63, 5, 50, 17, 58, 8, 55, 3, 50, 12, 43, 17, 47, 2, 51, 9, 62, 12, 1, 35, 13, 50, 1, 37, 12, 51, 19, 29, 46, 59, 22, 58, 33, 45, 22, 60, 10, 32, 61, 39, 8, 33, 25, 36, 20, 60, 38, 4, 21, 5, 28, 45, 12, 18, 42, 11, 49, 1, 27, 40, 6, 30}, {24, 16, 42, 1, 50, 10, 48, 17, 33, 43, 24, 48, 21, 55, 31, 42, 10, 21, 63, 35, 49, 6, 33, 13, 41, 53, 10, 20, 60, 6, 53, 26, 12, 41, 22, 60, 14, 28, 63, 33, 49, 3, 45, 16, 48, 26, 14, 46, 18, 30, 35, 26, 8, 50, 29, 51, 25, 57, 12, 47, 53, 9, 62, 20, 54, 2, 36, 15, 40, 28, 33, 13, 38, 24, 46, 1, 29, 56, 33, 20, 44, 24, 41, 26, 57, 20, 63, 8, 30, 55, 5, 41, 62, 8, 34, 2, 37, 10, 19, 6, 37, 1, 53, 23, 5, 27, 58, 22, 43, 12, 50, 26, 9, 34, 54, 32, 49, 1, 59, 37, 22, 46, 25, 36, 51, 15, 54, 46}, {52, 7, 45, 33, 26, 58, 14, 60, 7, 54, 3, 58, 8, 34, 14, 5, 59, 30, 18, 44, 8, 22, 48, 62, 3, 26, 55, 38, 23, 16, 39, 1, 62, 24, 49, 9, 53, 19, 46, 7, 19, 60, 31, 58, 2, 34, 53, 7, 59, 2, 62, 42, 46, 19, 36, 11, 44, 4, 38, 28, 1, 43, 32, 51, 12, 29, 56, 22, 52, 2, 62, 49, 22, 60, 14, 35, 63, 5, 25, 57, 14, 53, 4, 46, 18, 31, 42, 22, 47, 20, 58, 31, 16, 43, 23, 54, 30, 42, 52, 57, 29, 49, 30, 13, 45, 48, 16, 55, 6, 63, 1, 44, 14, 58, 19, 47, 15, 24, 51, 34, 6, 55, 5, 63, 20, 41, 21, 9}, {30, 62, 18, 55, 5, 23, 39, 29, 49, 30, 15, 36, 28, 46, 60, 25, 39, 46, 4, 32, 61, 40, 15, 30, 36, 45, 14, 2, 49, 33, 57, 45, 18, 32, 3, 45, 30, 2, 35, 52, 40, 27, 13, 21, 38, 63, 20, 28, 37, 23, 16, 10, 13, 55, 2, 62, 21, 32, 60, 17, 58, 23, 5, 40, 16, 48, 7, 45, 10, 26, 43, 19, 6, 31, 52, 21, 39, 16, 48, 9, 37, 28, 36, 55, 7, 48, 3, 59, 15, 45, 25, 1, 53, 13, 47, 7, 62, 15, 4, 25, 12, 41, 18, 60, 38, 11, 34, 19, 39, 31, 29, 56, 23, 42, 3, 27, 60, 41, 8, 16, 61, 29, 43, 9, 32, 2, 60, 34}, {3, 38, 13, 37, 52, 44, 2, 19, 12, 42, 63, 19, 40, 1, 20, 50, 12, 55, 15, 56, 27, 1, 54, 11, 57, 18, 32, 63, 44, 4, 29, 13, 37, 61, 35, 16, 42, 57, 12, 22, 6, 55, 43, 10, 50, 5, 44, 11, 48, 52, 34, 58, 28, 41, 38, 30, 7, 52, 11, 49, 30, 14, 45, 27, 59, 34, 21, 38, 32, 58, 11, 36, 56, 42, 9, 41, 3, 54, 31, 42, 0, 60, 16, 11, 39, 24, 52, 33, 6, 36, 10, 40, 32, 60, 26, 20, 39, 28, 47, 34, 63, 8, 54, 3, 24, 56, 0, 51, 13, 47, 16, 40, 7, 35, 52, 11, 36, 4, 57, 30, 39, 13, 18, 50, 58, 28, 12, 48}, {57, 24, 49, 21, 10, 31, 61, 36, 56, 0, 22, 53, 11, 56, 32, 7, 36, 27, 41, 9, 46, 19, 34, 42, 25, 7, 50, 9, 28, 21, 54, 8, 50, 7, 27, 59, 10, 25, 48, 62, 37, 0, 33, 58, 25, 18, 32, 61, 0, 15, 45, 5, 50, 3, 23, 55, 47, 17, 40, 6, 60, 34, 53, 8, 41, 0, 61, 13, 54, 4, 46, 28, 0, 17, 48, 27, 58, 13, 23, 61, 33, 21, 50, 30, 62, 8, 14, 29, 56, 27, 61, 49, 17, 2, 44, 11, 51, 0, 59, 17, 40, 20, 32, 47, 36, 21, 42, 28, 60, 4, 54, 10, 59, 17, 30, 62, 21, 43, 26, 48, 0, 56, 36, 25, 8, 44, 39, 17}, {10, 42, 4, 59, 27, 47, 8, 23, 51, 32, 45, 6, 37, 26, 48, 43, 62, 0, 21, 53, 38, 12, 51, 5, 60, 47, 24, 37, 59, 15, 35, 47, 22, 55, 0, 50, 21, 40, 6, 29, 15, 52, 24, 8, 41, 55, 13, 29, 40, 56, 24, 31, 19, 33, 61, 15, 0, 35, 24, 42, 21, 2, 19, 57, 24, 15, 30, 50, 20, 25, 40, 16, 57, 34, 61, 8, 29, 45, 6, 49, 11, 47, 2, 44, 19, 57, 38, 50, 12, 42, 21, 4, 35, 52, 28, 56, 23, 36, 13, 45, 4, 52, 27, 14, 6, 62, 9, 45, 21, 37, 25, 46, 33, 49, 0, 44, 7, 53, 13, 19, 53, 31, 3, 47, 15, 56, 22, 51}, {35, 28, 53, 32, 1, 16, 54, 40, 9, 17, 25, 58, 14, 59, 3, 22, 16, 51, 31, 5, 23, 58, 28, 17, 35, 20, 0, 42, 11, 52, 3, 31, 41, 17, 43, 13, 32, 54, 18, 60, 32, 45, 17, 49, 2, 36, 51, 22, 7, 36, 9, 63, 48, 12, 46, 26, 43, 28, 63, 13, 48, 37, 51, 33, 5, 47, 55, 9, 42, 63, 7, 51, 24, 12, 37, 19, 55, 34, 18, 38, 15, 28, 54, 34, 5, 43, 22, 0, 48, 14, 54, 24, 58, 9, 38, 5, 32, 55, 21, 30, 49, 9, 59, 43, 30, 51, 35, 26, 7, 53, 2, 22, 14, 27, 57, 18, 38, 24, 33, 45, 10, 41, 20, 60, 37, 5, 32, 0}, {63, 19, 15, 40, 62, 35, 14, 28, 46, 61, 4, 49, 35, 10, 29, 54, 33, 8, 45, 62, 37, 1, 43, 55, 10, 52, 61, 30, 19, 40, 25, 62, 11, 38, 27, 58, 36, 3, 46, 8, 39, 4, 62, 28, 47, 20, 4, 54, 47, 27, 43, 1, 21, 38, 8, 58, 10, 54, 4, 56, 9, 26, 12, 39, 60, 27, 18, 37, 1, 31, 35, 5, 45, 50, 2, 43, 26, 1, 59, 23, 56, 40, 7, 26, 58, 17, 32, 63, 25, 39, 7, 31, 45, 19, 63, 15, 48, 8, 37, 61, 16, 34, 1, 56, 18, 3, 15, 58, 49, 32, 63, 41, 55, 5, 40, 22, 50, 6, 59, 2, 63, 23, 52, 11, 26, 61, 44, 23}, {11, 56, 46, 6, 22, 43, 58, 3, 34, 21, 38, 30, 18, 44, 52, 13, 41, 57, 17, 28, 14, 49, 25, 7, 33, 39, 26, 6, 56, 48, 1, 20, 56, 5, 46, 9, 19, 51, 30, 25, 56, 21, 35, 14, 57, 42, 16, 33, 10, 57, 17, 59, 41, 25, 53, 37, 20, 40, 30, 18, 31, 62, 44, 22, 3, 44, 11, 48, 23, 53, 18, 60, 29, 22, 62, 15, 53, 47, 10, 41, 3, 19, 52, 36, 13, 46, 10, 35, 3, 61, 41, 16, 1, 50, 26, 42, 18, 46, 2, 25, 54, 20, 39, 23, 47, 31, 41, 12, 38, 17, 8, 19, 31, 48, 12, 61, 9, 54, 29, 35, 15, 38, 6, 43, 34, 14, 7, 47}, {39, 2, 33, 26, 53, 8, 18, 50, 41, 12, 53, 1, 63, 24, 19, 39, 2, 24, 47, 10, 60, 38, 19, 63, 48, 4, 15, 45, 32, 14, 60, 36, 29, 53, 23, 63, 34, 12, 61, 1, 43, 11, 53, 30, 1, 26, 60, 45, 23, 39, 3, 29, 12, 50, 4, 16, 51, 3, 45, 36, 50, 1, 16, 54, 35, 14, 57, 30, 58, 9, 46, 14, 41, 10, 32, 38, 4, 30, 21, 51, 32, 63, 25, 1, 60, 27, 53, 18, 51, 22, 28, 55, 34, 12, 40, 3, 60, 29, 57, 41, 6, 44, 11, 53, 8, 61, 24, 57, 1, 28, 44, 59, 36, 3, 34, 25, 41, 31, 16, 44, 22, 47, 28, 58, 1, 49, 54, 29}, {58, 25, 50, 13, 38, 30, 60, 24, 6, 57, 27, 42, 9, 45, 6, 61, 30, 50, 4, 34, 29, 3, 46, 13, 22, 42, 58, 28, 9, 39, 23, 44, 7, 15, 44, 2, 40, 15, 47, 41, 23, 37, 7, 59, 38, 11, 34, 6, 62, 14, 52, 35, 55, 19, 32, 61, 33, 24, 57, 6, 22, 59, 29, 7, 49, 25, 40, 3, 17, 39, 27, 52, 0, 55, 16, 57, 24, 61, 36, 6, 29, 12, 48, 39, 20, 44, 6, 40, 33, 5, 48, 10, 57, 36, 22, 51, 33, 9, 24, 12, 62, 29, 50, 35, 14, 43, 5, 33, 47, 52, 13, 23, 10, 51, 56, 16, 46, 1, 49, 4, 61, 9, 52, 18, 31, 21, 36, 17}, {19, 42, 9, 48, 2, 44, 11, 37, 48, 20, 33, 16, 55, 35, 49, 15, 37, 20, 59, 16, 53, 22, 56, 31, 50, 11, 34, 54, 16, 51, 4, 49, 33, 53, 21, 28, 56, 24, 31, 9, 52, 16, 48, 24, 44, 13, 51, 20, 31, 49, 18, 6, 34, 2, 44, 14, 47, 8, 15, 43, 13, 41, 33, 52, 20, 61, 7, 51, 34, 62, 4, 20, 36, 33, 43, 8, 46, 13, 53, 17, 45, 42, 9, 31, 52, 11, 30, 56, 13, 59, 17, 44, 27, 6, 62, 11, 43, 17, 49, 38, 26, 2, 16, 27, 58, 21, 54, 18, 26, 5, 35, 61, 43, 27, 7, 39, 14, 58, 37, 55, 20, 33, 13, 40, 62, 10, 55, 5}, {51, 14, 61, 29, 59, 20, 55, 31, 0, 49, 11, 60, 3, 26, 22, 56, 0, 40, 12, 43, 41, 8, 36, 0, 17, 57, 24, 2, 46, 26, 61, 18, 0, 38, 12, 59, 6, 49, 3, 57, 19, 63, 5, 33, 18, 54, 28, 56, 0, 43, 26, 46, 63, 27, 56, 22, 27, 54, 38, 28, 63, 24, 10, 45, 0, 31, 42, 21, 12, 25, 44, 49, 59, 6, 26, 50, 3, 34, 27, 59, 0, 35, 62, 16, 4, 58, 47, 0, 43, 24, 37, 2, 54, 20, 46, 31, 0, 56, 34, 5, 55, 45, 60, 37, 0, 40, 10, 38, 63, 46, 15, 20, 0, 53, 21, 62, 30, 11, 24, 27, 40, 0, 57, 26, 3, 45, 27, 35}, }; static guint32 *DM_565 = NULL; /* Initialize the DM_565 array. */ static void rgb_preprocess_dm_565(void) { gint i; guint32 dith; if (DM_565 == NULL) { DM_565 = g_new(guint32, DM_WIDTH * DM_HEIGHT); for (i = 0; i < DM_WIDTH * DM_HEIGHT; i++) { dith = DM[0][i] >> 3; DM_565[i] = (dith << 20) | dith | (((7 - dith) >> 1) << 10); } } } /* Return a 32 bits value : .... RRRR R... ..GG GGGG .... BBBB B... */ static guint32 get_rgb(guint32 * dmp, guchar * buf, gint x) { gint32 rgb = buf[0] << 20; rgb += buf[1] << 10; rgb += buf[2]; rgb += dmp[x & (DM_WIDTH - 1)]; rgb += 0x10040100 - ((rgb & 0x1e0001e0) >> 5) - ((rgb & 0x00070000) >> 6); return rgb; } static void dither_line(gint y, guchar * obuf, guchar * ibuf, gint width, gint alpha) { guint32 *dmp = DM_565 + ((y & (DM_HEIGHT - 1)) << DM_WIDTH_SHIFT); gint x; for (x = 0; x < width; x++) { gint32 rgb = get_rgb(dmp, ibuf, x); *obuf++ = (rgb & 0x0f800000) >> 20; /* R */ *obuf++ = (rgb & 0x0003f000) >> 10; /* G */ *obuf++ = rgb & 0x000000f8; /* B */ obuf += alpha; /* A */ ibuf += 3 + alpha; } } /* * src and dest must have the same properties, and * can be the same pixbuf. */ void dither_pixbuf(GdkPixbuf * dest, GdkPixbuf * src) { gint y; guchar *ibuf, *obuf; gint irowstride, orowstride; gint width, height; gint alpha; rgb_preprocess_dm_565(); ibuf = gdk_pixbuf_get_pixels(src); obuf = gdk_pixbuf_get_pixels(dest); irowstride = gdk_pixbuf_get_rowstride(src); orowstride = gdk_pixbuf_get_rowstride(dest); width = gdk_pixbuf_get_width(src); height = gdk_pixbuf_get_height(src); alpha = gdk_pixbuf_get_has_alpha(src); for (y = 0; y < height; y++) { dither_line(y, obuf, ibuf, width, alpha); ibuf += irowstride; obuf += orowstride; } } gliv-1.9.7/src/history.c0000644000076400007640000000612411465576131012407 0ustar gg/* * 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. * * See the COPYING file for license information. * * Guillaume Chazarain */ /******************** * History handling * ********************/ #include "gliv.h" #include "history.h" #include "options.h" #include "rendering.h" #include "matrix.h" extern options_struct *options; static GList *list = NULL; static GList *node = NULL; /* Currrent position in the list. */ static gint count = 0; /* Number of elements in the list. */ /* Returns item->next. */ static GList *free_item(GList * item) { GList *next; g_free(item->data); next = item->next; count--; list = g_list_delete_link(list, item); return next; } /* Free the elements from there to the end. */ static void free_list(GList * item) { while (item != NULL) item = free_item(item); } /* Keep the list from being larger than options->history_size. */ void clean_history(void) { if (options->history_size < 0) /* Unlimited history. */ return; while (count > options->history_size) { if (node == list) node = node->next; list = free_item(list); } if (list != NULL) list->prev = NULL; } /* Add the current configuration to the end of the list. */ void append_history(void) { GList *item; if (options->history_size == 0) /* No history. */ return; item = g_list_alloc(); /* Fill the data. */ item->data = new_matrix(); matrix_cpy(item->data, NULL); /* We are at the end of the list. */ item->prev = node; item->next = NULL; if (list == NULL) /* This is the first element. */ list = item; else { if (node->next != NULL) /* We discard what was after us. */ free_list(node->next); node->next = item; } node = item; count++; clean_history(); } static void set_state(GList * item) { if (item != NULL && item->data != NULL) { node = item; matrix_cpy(NULL, item->data); refresh(REFRESH_IMAGE | REFRESH_STATUS); } } gboolean undo(void) { set_state(g_list_previous(node)); return FALSE; } gboolean redo(void) { set_state(g_list_next(node)); return FALSE; } /* Restart from scratch. */ gboolean clear_history(void) { if (list != NULL) { free_list(list); list = node = NULL; append_history(); } return FALSE; } gliv-1.9.7/src/images_menus.c0000644000076400007640000003451411465576131013366 0ustar gg/* * 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. * * See the COPYING file for license information. * * Guillaume Chazarain */ /************************************ * The Images and Directories menus * ************************************/ #include /* strlen() */ #include "gliv.h" #include "images_menus.h" #include "options.h" #include "menus.h" #include "messages.h" #include "next_image.h" #include "mnemonics.h" #include "loading.h" #include "thumbnails.h" #include "callbacks.h" #include "tree.h" #include "timestamp.h" #include "dirty_gtk.h" #include "gliv-image.h" #include "tree_browser.h" extern options_struct *options; extern GlivImage *current_image; /* The progress indicator. */ static GtkMenuItem *rebuilding_entry; /* The menu entry to cancel the rebuilding. */ static GtkMenuItem *cancel_menu_item; /* * Association between a directory and its GtkMenu. * Used by Directories->"Current image directory...". */ static GHashTable *dir_menu_hash = NULL; /* Menus timestamps */ static DECLARE_TIMESTAMP(directories_timestamp); static DECLARE_TIMESTAMP(images_timestamp); /*** Functions for both menus. ***/ /* Called at menu creation time. */ void set_rebuilding_entry(GtkMenuItem * item) { rebuilding_entry = item; } /* Refresh the percent indicator. */ static void set_menu_indicator(const gchar * name, gint percent) { static gchar *rebuilding = NULL; if (name == NULL) set_menu_label(rebuilding_entry, "", FALSE); else { gchar *label; if (rebuilding == NULL) /* First time. */ rebuilding = _("Rebuilding:"); label = g_strdup_printf("%s %s (%d%%)", rebuilding, name, percent); set_menu_label(rebuilding_entry, label, FALSE); g_free(label); } } /* Update the percent indicator. */ void set_progress(const gchar * menu, gint * percent, gint number) { static gint total_length; /* Yes, that's ugly */ if (number == -1) { /* First time for the menu */ total_length = tree_count_files(); return; } if (menu == NULL) { /* Last time for the menu */ set_menu_indicator(NULL, 0); return; } if ((*percent + 1) * total_length <= 100 * number) { *percent = (100 * number) / total_length; set_menu_indicator(menu, *percent); } } /* We don't want to perform the signal lookup for each file. */ static void connect_activate(GtkMenuItem * instance, const gchar * filename) { static guint signal_id = 0; GClosure *closure; if (signal_id == 0) /* First time. */ signal_id = g_signal_lookup("activate", G_TYPE_FROM_INSTANCE(instance)); closure = g_cclosure_new_swap(G_CALLBACK(menu_load), (gpointer) filename, NULL); g_signal_connect_closure_by_id(instance, signal_id, 0, closure, FALSE); } typedef enum { MENU_FILE, /* From both menus. */ MENU_DIR, /* From the Images menu. */ MENU_SUBMENU /* From the Directories menu. */ } menu_type; /* Add also a mnemonic and a thumbnail. */ static GtkMenuItem *add_menu_item(DirtyGtkMenu * menu, tree_item * item, menu_type type) { const gchar *name; GtkMenuItem *menu_item; GtkImage *thumbnail = NULL; if (options->thumbnails && type == MENU_FILE && fill_thumbnail(item)) thumbnail = GTK_IMAGE(gtk_image_new_from_pixbuf(item->thumb)); else /* Simulate the do_threaded() effect of fill_thumbnail(). */ process_events(); if (type == MENU_DIR) name = item->path; else name = item->name; if (options->mnemonics && type != MENU_DIR) { name = add_mnemonic(name); if (thumbnail) menu_item = GTK_MENU_ITEM(gtk_image_menu_item_new_with_mnemonic(name)); else menu_item = GTK_MENU_ITEM(gtk_menu_item_new_with_mnemonic(name)); } else { if (thumbnail) menu_item = GTK_MENU_ITEM(gtk_image_menu_item_new_with_label(name)); else menu_item = GTK_MENU_ITEM(gtk_menu_item_new_with_label(name)); } if (thumbnail) gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(menu_item), GTK_WIDGET(thumbnail)); dirty_gtk_menu_append(menu, GTK_WIDGET(menu_item)); switch (type) { case MENU_FILE: connect_activate(menu_item, item->path); break; case MENU_DIR: gtk_widget_set_sensitive(GTK_WIDGET(menu_item), FALSE); break; case MENU_SUBMENU: break; } return menu_item; } /*** Directories menu. ***/ static void add_file_from_tree(DirtyGtkMenu * menu, tree_item * item) { static gchar *directories = NULL; static gint number = 0, percent = 0; if (canceled_using_tree()) return; if (menu == NULL) { /* First time for this menu. */ if (directories == NULL) /* First time. */ directories = _("Directories"); number = 0; percent = 0; return; } add_menu_item(menu, item, MENU_FILE); set_progress(directories, &percent, number); number++; } static DirtyGtkMenu *add_sub_menu(DirtyGtkMenu * parent, tree_item * item) { DirtyGtkMenu *menu; GtkMenuItem *menu_item; menu_item = add_menu_item(parent, item, MENU_SUBMENU); menu = dirty_gtk_menu_new(); gtk_menu_item_set_submenu(menu_item, GTK_WIDGET(menu->gtk_menu)); g_hash_table_insert(dir_menu_hash, item->path, dirty_gtk_menu_get_tearoff(menu)); return menu; } static void make_menu_from_tree_rec(GNode * tree, DirtyGtkMenu * parent) { tree_item *item; DirtyGtkMenu *menu; if (canceled_using_tree()) return; if (G_NODE_IS_LEAF(tree)) { add_file_from_tree(parent, tree->data); return; } item = tree->data; menu = add_sub_menu(parent, item); push_mnemonics(); g_node_children_foreach(tree, G_TRAVERSE_ALL, (GNodeForeachFunc) make_menu_from_tree_rec, menu); dirty_gtk_menu_release(menu); pop_mnemonics(); } static gboolean open_current_dir_menu(void) { if (dir_menu_hash && current_image && current_image->node) { gchar *path = g_strdup(current_image->node->data); GtkTearoffMenuItem *tearoff; do { gchar *new_path = g_path_get_dirname(path); g_free(path); path = new_path; tearoff = g_hash_table_lookup(dir_menu_hash, path); } while (!tearoff && !g_str_equal(path, "/") && !g_str_equal(path, ".")); g_free(path); if (tearoff) { GtkWidget *parent_menu = gtk_widget_get_parent(GTK_WIDGET(tearoff)); gtk_widget_realize(parent_menu); gtk_menu_item_activate(GTK_MENU_ITEM(tearoff)); } } return FALSE; } static void add_current_dir_entry(DirtyGtkMenu * menu) { GtkMenuItem *item; const gchar *label; label = add_mnemonic(_("Current image directory...")); item = GTK_MENU_ITEM(gtk_menu_item_new_with_mnemonic(label)); g_signal_connect_swapped(item, "activate", G_CALLBACK(open_current_dir_menu), NULL); gtk_widget_show(GTK_WIDGET(item)); dirty_gtk_menu_append(menu, GTK_WIDGET(item)); if (dir_menu_hash) g_hash_table_destroy(dir_menu_hash); dir_menu_hash = g_hash_table_new_full(g_str_hash, g_str_equal, NULL, NULL); g_hash_table_insert(dir_menu_hash, ".", dirty_gtk_menu_get_tearoff(menu)); g_hash_table_insert(dir_menu_hash, "/", dirty_gtk_menu_get_tearoff(menu)); } /*** Images menu. ***/ static gboolean add_file_item(GNode * tree, DirtyGtkMenu * parent_menu) { static gchar *images = NULL; static gint number = 0, percent = 0; GNode *sibling; if (canceled_using_tree()) return TRUE; if (parent_menu == NULL) { /* First time for this menu. */ if (images == NULL) /* First time. */ images = _("Images"); number = 0; percent = 0; return FALSE; } /* Check if it is the first image in its directory. */ sibling = g_node_prev_sibling(tree); if (sibling == NULL && tree->parent != NULL) add_menu_item(parent_menu, tree->parent->data, MENU_DIR); add_menu_item(parent_menu, tree->data, MENU_FILE); set_progress(images, &percent, number); number++; return FALSE; } /*** Menus builders. ***/ static DirtyGtkMenu *begin_rebuild(GtkMenuItem * root, GCallback func) { static DirtyGtkMenu *menu; GtkWidget *rebuilder, *browser; if (root != NULL) gtk_menu_item_deselect(root); menu = dirty_gtk_menu_new(); rebuilder = gtk_menu_item_new_with_mnemonic(add_mnemonic(_("Rebuild this menu"))); g_signal_connect_swapped(rebuilder, "activate", func, NULL); dirty_gtk_menu_append(menu, rebuilder); browser = gtk_menu_item_new_with_mnemonic(add_mnemonic (_("Open thumbnails browser..."))); g_signal_connect(browser, "activate", show_tree_browser, NULL); dirty_gtk_menu_append(menu, browser); gtk_menu_item_set_submenu(root, GTK_WIDGET(menu->gtk_menu)); return menu; } GNode *get_tree(void) { if (currently_loading()) /* * There is no problem in rebuilding the images menus during * a loading, it would just make the loading too long. */ return NULL; return make_tree(); } #define REBUILD_START(name, func, timestamp) \ do { \ if (root != NULL) { \ menu_item = root; \ return TRUE; \ } \ \ if (more_recent_than_tree(timestamp)) \ /* The menu is already up to date. */ \ return TRUE; \ \ tree = get_tree(); \ if (tree == NULL) { \ touch(×tamp); \ return TRUE; \ } \ \ gtk_widget_set_sensitive(GTK_WIDGET(cancel_menu_item), TRUE); \ reset_mnemonics(); \ menu = begin_rebuild(menu_item, G_CALLBACK(func)); \ set_menu_indicator(name, 0); \ set_progress(NULL, NULL, -1); \ } while (0) static gboolean rebuild_end(GtkMenuItem * root, timestamp_t * ts, GtkMenuItem * menu_item, DirtyGtkMenu * menu) { if (root != NULL) gtk_menu_item_deselect(root); dirty_gtk_menu_append(menu, gtk_tearoff_menu_item_new()); set_progress(NULL, NULL, 0); gtk_widget_set_sensitive(GTK_WIDGET(cancel_menu_item), FALSE); if (canceled_using_tree()) reset_timestamp(ts); else touch(ts); end_using_tree(); reset_mnemonics(); gtk_widget_show_all(GTK_WIDGET(menu_item)); dirty_gtk_menu_release(menu); return *ts != 0; } gboolean rebuild_directories(GtkMenuItem * root) { static GtkMenuItem *menu_item; DirtyGtkMenu *menu; GNode *tree, *child; gchar *prefix, *old_name; tree_item *item; REBUILD_START(_("Directories"), rebuild_directories, directories_timestamp); add_current_dir_entry(menu); /* Build the menu. */ add_file_from_tree(NULL, NULL); item = tree->data; prefix = item->path; if (prefix[0] == '\0' || prefix[1] == '\0') { for (child = g_node_first_child(tree); child; child = child->next) { item = child->data; old_name = item->name; item->name = g_build_filename(prefix, item->name, NULL); make_menu_from_tree_rec(child, menu); g_free(item->name); item->name = old_name; } } else make_menu_from_tree_rec(tree, menu); return rebuild_end(root, &directories_timestamp, menu_item, menu); } gboolean rebuild_images(GtkMenuItem * root) { static GtkMenuItem *menu_item; DirtyGtkMenu *menu; GNode *tree; REBUILD_START(_("Images"), rebuild_images, images_timestamp); /* Build the menu. */ add_file_item(NULL, NULL); g_node_traverse(tree, G_PRE_ORDER, G_TRAVERSE_LEAFS, -1, (GNodeTraverseFunc) add_file_item, menu); return rebuild_end(root, &images_timestamp, menu_item, menu); } /* Rebuild both menus. */ gboolean rebuild_images_menus(void) { return rebuild_directories(NULL) && rebuild_images(NULL); } void set_stop_rebuilding_menu(GtkMenuItem * item) { cancel_menu_item = item; gtk_widget_set_sensitive(GTK_WIDGET(item), FALSE); } void obsolete_menus(void) { reset_timestamp(&directories_timestamp); reset_timestamp(&images_timestamp); } void cond_rebuild_menus(void) { if (directories_timestamp) rebuild_directories(NULL); if (images_timestamp) rebuild_images(NULL); cond_rebuild_tree_browser(); } gliv-1.9.7/src/tiling.c0000644000076400007640000001663711465576131012206 0ustar gg/* * 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. * * See the COPYING file for license information. * * Guillaume Chazarain */ /********************************************** * Compute the tiling for a texture dimension * **********************************************/ /* * To test the tiling algorithm: * $ cc -DSTANDALONE $(pkg-config --libs --cflags gtk+-2.0) \ * -Iinclude tiling.c -o tiling * $ ./tiling 1025 */ #ifndef STANDALONE #define STANDALONE 0 #endif #if STANDALONE #include #include /* printf() */ #include /* atoi() */ #else #include "gliv.h" #include "options.h" #endif #include "tiling.h" #if STANDALONE #define MAX_TEXTURE_SIZE 2048 #else extern rt_struct *rt; #define MAX_TEXTURE_SIZE (rt->max_texture_size) #endif /* * glTexImage2D(3G): All implementations support texture images * that are at least 64 texels (wide|high). */ #define MIN_TEXTURE_SIZE 64 #define ARRAY_LENGTH (order(MAX_TEXTURE_SIZE) + 1) /* ln2(p) */ static G_GNUC_CONST gint order(gint p) { gint power = 1; gint ord = 0; while (power < p) { power += power; ord++; } return ord; } /* Smallest power of two bigger than p */ static G_GNUC_CONST gint p2(gint p) { return 1 << order(p); } static struct tiles *new_tiles(void) { struct tiles *tiles = g_new0(struct tiles, 1); tiles->array = g_new0(gint, ARRAY_LENGTH); return tiles; } void destroy_tiles(struct tiles *tiles) { if (tiles != NULL) { g_free(tiles->array); g_free(tiles); } } #define MORE_WASTE_THAN(a, b) ((a) - (b) > MIN_TEXTURE_SIZE) static G_GNUC_CONST gint try_single_texture(gint dim) { gint low, high; if (dim <= MIN_TEXTURE_SIZE) return MIN_TEXTURE_SIZE; if (dim > MAX_TEXTURE_SIZE) return 0; high = p2(dim); low = high / 2; if (MORE_WASTE_THAN(dim - low, high - dim)) return high; return 0; } #define ADD_TILES(nb, size) (dim -= add_tiles(tiles, (nb), (size))) #define ADD_TILE(size) ADD_TILES(1, (size)) static gint add_tiles(struct tiles *tiles, gint nb, gint size) { tiles->array[order(size)] += nb; tiles->nb_tiles += nb; return nb * (size - 1); } static struct tiles *make_tiles_rec(gint dim, gboolean can_be_single) { gint low, high; struct tiles *tiles_low, *tiles_high; struct tiles *tiles = new_tiles(); if (dim > 0 && can_be_single) { gint single = try_single_texture(dim); if (single) ADD_TILE(single); } while (dim > 1) { if (dim >= MAX_TEXTURE_SIZE) { ADD_TILES(dim / MAX_TEXTURE_SIZE, MAX_TEXTURE_SIZE); continue; } if (dim <= MIN_TEXTURE_SIZE) { ADD_TILE(MIN_TEXTURE_SIZE); continue; } high = p2(dim); low = high / 2; tiles_low = make_tiles_rec(dim - low + 1, FALSE); tiles_high = make_tiles_rec(dim - high + 1, FALSE); if (MORE_WASTE_THAN(tiles_high->waste, tiles_low->waste)) ADD_TILE(low); else ADD_TILE(high); destroy_tiles(tiles_low); destroy_tiles(tiles_high); } tiles->waste = -dim + 1; return tiles; } struct tiles *make_tiles(gint dim) { return make_tiles_rec(dim, TRUE); } static gboolean array_pos_empty(struct tiles_iterator *iter, gint i) { gint number = iter->tiles->array[i]; if (iter->first_pass) number += i % 2; else number += 1 - (i % 2); return number <= 1; } struct tiles_iterator *tiles_iterator_new(struct tiles *tiles) { struct tiles_iterator *iter = g_new(struct tiles_iterator, 1); iter->tiles = tiles; iter->first_pass = TRUE; iter->current_array_pos = -1; iter->remaining_in_pos = 0; return iter; } gint tiles_iterator_next(struct tiles_iterator * iter) { gint i, length = ARRAY_LENGTH; if (iter->current_array_pos >= length) return -1; if (iter->remaining_in_pos != 0) { iter->remaining_in_pos--; return 1 << iter->current_array_pos; } if (iter->first_pass) { for (i = iter->current_array_pos + 1; i < length; i++) { if (!array_pos_empty(iter, i)) { iter->current_array_pos = i; iter->remaining_in_pos = iter->tiles->array[i] / 2; if (iter->tiles->array[i] % 2 == 1) iter->remaining_in_pos += i % 2; if (iter->remaining_in_pos != 0) { iter->remaining_in_pos--; return 1 << i; } } } iter->first_pass = FALSE; iter->current_array_pos = length; } for (i = iter->current_array_pos - 1; i >= 0; i--) { if (!array_pos_empty(iter, i)) { iter->current_array_pos = i; iter->remaining_in_pos = iter->tiles->array[i] / 2; if (iter->tiles->array[i] % 2 == 1) iter->remaining_in_pos += 1 - (i % 2); if (iter->remaining_in_pos != 0) { iter->remaining_in_pos--; return 1 << i; } } } iter->current_array_pos = length; return -1; } #if STANDALONE static gint print_tiles(struct tiles *tiles) { struct tiles_iterator *iter = tiles_iterator_new(tiles); gint tile; printf("%d tiles:\n", tiles->nb_tiles); while ((tile = tiles_iterator_next(iter)) > 0) printf("%d ", tile); g_free(iter); return tiles->waste; } static void test_tile(gint size) { struct tiles *tiles = make_tiles(size); struct tiles_iterator *iter; gint count = 0, tile_size = 0; gint length = ARRAY_LENGTH; gint i; for (i = 0; i < length; i++) { if ((1 << i) != MAX_TEXTURE_SIZE && tiles->array[i] > 1) { printf("Error with %d\n", size); break; } count += tiles->array[i]; tile_size += tiles->array[i] * 1 << i; } tile_size -= tiles->nb_tiles - 1; if (tile_size - size != tiles->waste || tiles->nb_tiles != count) printf("Error with %d\n", size); iter = tiles_iterator_new(tiles); count = 0; tile_size = 0; while ((i = tiles_iterator_next(iter)) > 0) { count++; tile_size += i; } tile_size -= tiles->nb_tiles - 1; if (tile_size - size != tiles->waste || tiles->nb_tiles != count) printf("Error with %d\n", size); g_free(iter); destroy_tiles(tiles); } gint main(gint argc, char **argv) { if (argc > 1) { struct tiles *tiles = make_tiles(atoi(argv[1])); gint waste = print_tiles(tiles); printf("=> waste: %d\n", waste); destroy_tiles(tiles); } else { for (;;) test_tile(g_random_int_range(1, MAX_TEXTURE_SIZE * 10)); } return 0; } #endif gliv-1.9.7/src/thumbnails.c0000644000076400007640000001162411465576131013055 0ustar gg/* * 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. * * See the COPYING file for license information. * * Guillaume Chazarain */ /****************************************** * Make thumbnails and keep track of them * ******************************************/ #include "gliv.h" #include "thumbnails.h" #include "options.h" #include "tree.h" #include "thread.h" #include "callbacks.h" extern options_struct *options; static GHashTable *thumbs_hash_table = NULL; gchar *get_absolute_filename(const gchar * filename) { static gchar *cwd = NULL; if (filename[0] == '/') return g_strdup(filename); if (cwd == NULL) cwd = g_get_current_dir(); while (filename[0] == '.' && filename[1] == '/') { filename += 2; while (filename[0] == '/') filename++; } return g_build_filename(cwd, filename, NULL); } /* * We include the thumbnails wanted dimensions in the hash key, this way we can * keep track of many thumbnails with different sizes for a given filename. */ static gchar *get_key(const gchar * filename) { gchar *key, *fullpath; fullpath = get_absolute_filename(filename); key = g_strdup_printf("%s_%d_%d", fullpath, options->thumb_width, options->thumb_height); g_free(fullpath); return key; } static GdkPixbuf *create_mini(GdkPixbuf * pixbuf) { gint w, h; gfloat zoom_w, zoom_h, zoom; gint mini_w, mini_h; GdkPixbuf *res; w = gdk_pixbuf_get_width(pixbuf); h = gdk_pixbuf_get_height(pixbuf); zoom_w = (gfloat) w / options->thumb_width; zoom_h = (gfloat) h / options->thumb_height; zoom = MAX(zoom_w, zoom_h); if (zoom <= 1.0) { /* A thumbnail should not be bigger than the original. */ g_object_ref(pixbuf); return pixbuf; } mini_w = (gint) (w / zoom); mini_h = (gint) (h / zoom); mini_w = MAX(mini_w, 1); mini_h = MAX(mini_h, 1); res = gdk_pixbuf_scale_simple(pixbuf, mini_w, mini_h, GDK_INTERP_BILINEAR); return res; } static void init_hash(void) { if (thumbs_hash_table == NULL) /* First time. */ thumbs_hash_table = g_hash_table_new(g_str_hash, g_str_equal); } /* Runs in a separate thread. */ static GdkPixbuf *get_mini(const gchar * filename) { GdkPixbuf *pixbuf, *mini; if (canceled_using_tree()) return NULL; pixbuf = gdk_pixbuf_new_from_file(filename, NULL); if (pixbuf == NULL) return NULL; if (canceled_using_tree()) { g_object_unref(pixbuf); return NULL; } mini = create_mini(pixbuf); g_object_unref(pixbuf); return mini; } /* Called when we have loaded an image, to add its thumbnail. */ void add_thumbnail(const gchar * filename, GdkPixbuf * pixbuf) { gchar *key; GdkPixbuf *mini; init_hash(); key = get_key(filename); if (g_hash_table_lookup(thumbs_hash_table, key) != NULL) { g_free(key); return; } mini = do_threaded((GThreadFunc) create_mini, pixbuf); if (mini == NULL) { g_free(key); return; } g_hash_table_insert(thumbs_hash_table, key, mini); if (mini == pixbuf) g_object_ref(pixbuf); } gboolean fill_thumbnail(tree_item * item) { if (item->thumb != NULL) { /* Simulate the do_threaded() effect. */ process_events(); return TRUE; } if (item->thumb_key == NULL) item->thumb_key = get_key(item->path); init_hash(); item->thumb = g_hash_table_lookup(thumbs_hash_table, item->thumb_key); if (item->thumb != NULL) return TRUE; item->thumb = do_threaded((GThreadFunc) get_mini, item->path); if (item->thumb == NULL) return FALSE; g_hash_table_insert(thumbs_hash_table, g_strdup(item->thumb_key), item->thumb); return TRUE; } void collection_add_thumbnail(gchar * key, GdkPixbuf * thumb) { init_hash(); g_hash_table_insert(thumbs_hash_table, key, thumb); } GdkPixbuf *get_thumbnail(const gchar * filename, gchar ** thumb_key) { tree_item item; item.name = NULL; item.path = (gchar *) filename; item.thumb_key = NULL; item.thumb = NULL; fill_thumbnail(&item); if (thumb_key) *thumb_key = item.thumb_key; return item.thumb; } gliv-1.9.7/src/next_image.c0000644000076400007640000004774211465576131013041 0ustar gg/* * 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. * * See the COPYING file for license information. * * Guillaume Chazarain */ /**************************** * Which image to load next * ****************************/ #include /* off_t */ #include /* struct stat, stat() */ #include /* time_t */ #include /* perror() */ #include /* memcmp() */ #include /* random() */ #include "gliv.h" #include "next_image.h" #include "options.h" #include "gliv-image.h" #include "rendering.h" #include "loading.h" #include "files_list.h" #include "textures.h" #include "messages.h" #include "menus.h" #include "callbacks.h" #include "transition.h" #include "windows.h" #include "tree_browser.h" #include "images_menus.h" extern rt_struct *rt; extern options_struct *options; extern GlivImage *current_image; /* * We can have previous_image == next_image. * Thanks to ref counting, we don't care. */ static GlivImage *previous_image = NULL; static GlivImage *next_image = NULL; static GtkMenuItem *slide_show_menu; static guint slide_show_timer = 0; static gint slide_show_direction = 1; static void forget_image(GlivImage ** im_ptr) { if (*im_ptr != NULL) { g_object_unref(*im_ptr); *im_ptr = NULL; } } /* * Once the images list has been reordered we must take care * of the current image position and destroy the previous and * next images since they changed. */ void after_reorder(void) { if (previous_image != NULL && current_image->node->prev != previous_image->node) { forget_image(&previous_image); } if (next_image != NULL && current_image->node->next != next_image->node) { forget_image(&next_image); } update_current_image_status(TRUE); } /*** Last image notice ***/ typedef enum { NOTICE_FIRST, NOTICE_LAST, NOTICE_NOTHING } notice_t; static notice_t notice = NOTICE_NOTHING; static guint notice_timer = 0; /* Called by the timer. */ static gboolean hide_image_notice(void) { gboolean need_refresh; need_refresh = notice != NOTICE_NOTHING; notice = NOTICE_NOTHING; if (need_refresh) refresh(REFRESH_IMAGE); notice_timer = 0; return FALSE; } static void image_notice(gboolean last_image) { notice_t new_notice; gboolean need_refresh; if (options->notice_time <= 0) return; new_notice = last_image ? NOTICE_LAST : NOTICE_FIRST; need_refresh = new_notice != notice; notice = new_notice; if (notice_timer != 0) g_source_remove(notice_timer); notice_timer = g_timeout_add(options->notice_time, (GSourceFunc) hide_image_notice, NULL); if (need_refresh) refresh(REFRESH_IMAGE); } const gchar *get_image_notice(void) { switch (notice) { case NOTICE_FIRST: return _("First image"); case NOTICE_LAST: return _("Last image"); default: return NULL; } } /*** Switching images ***/ static void slide_show_advance(void); static void render_next_image(GlivImage * im) { gboolean first_image = current_image == NULL; gboolean make_transition = options->transitions && options->trans_time > 0 && current_image != NULL && im != NULL; if (options->fullscreen == FALSE) { gint i; goto_window(im, FALSE); /* * This seems to work to make sure the window is actually resized and * the corresponding events have been handled. */ for (i = 0; i < 2; i++) { gtk_widget_queue_draw(GTK_WIDGET(get_current_window())); gdk_window_process_all_updates(); process_events(); gdk_flush(); } } if (make_transition) transition(im); if (current_image != NULL) { prioritize_textures(current_image, FALSE); g_object_unref(current_image); } current_image = im; g_object_ref(im); render(); if (im->node->next == NULL) image_notice(TRUE); else if (im->node->prev == NULL && first_image == FALSE) image_notice(FALSE); if (slide_show_started()) slide_show_advance(); highlight_current_image(); } /*** Next/previous image ***/ static GList *next_node(GList * node, gint dir) { if (node == NULL) return (dir == 1) ? get_list_head() : get_list_end(); if (dir == 1) return node->next; /* dir == -1 */ return node->prev; } static void show_errors(GSList * errors) { GtkDialog *dialog; GtkTextView *text; GtkTextBuffer *buffer; GtkScrolledWindow *scroll; /* Create the widgets */ dialog = GTK_DIALOG(gtk_dialog_new_with_buttons(_("Loading errors"), get_current_window(), GTK_DIALOG_DESTROY_WITH_PARENT, GTK_STOCK_OK, GTK_RESPONSE_NONE, NULL)); text = GTK_TEXT_VIEW(gtk_text_view_new()); gtk_text_view_set_wrap_mode(text, GTK_WRAP_WORD_CHAR); gtk_text_view_set_editable(text, FALSE); gtk_text_view_set_cursor_visible(text, FALSE); buffer = gtk_text_view_get_buffer(text); gtk_text_buffer_insert_at_cursor(buffer, _("The following errors occurred" " while loading the next image:\n"), -1); while (errors) { gtk_text_buffer_insert_at_cursor(buffer, errors->data, -1); gtk_text_buffer_insert_at_cursor(buffer, "\n", -1); errors = errors->next; } scroll = GTK_SCROLLED_WINDOW(gtk_scrolled_window_new(NULL, NULL)); gtk_container_add(GTK_CONTAINER(scroll), GTK_WIDGET(text)); gtk_container_add(GTK_CONTAINER(dialog->vbox), GTK_WIDGET(scroll)); gtk_widget_show_all(GTK_WIDGET(scroll)); gtk_window_set_default_size(GTK_WINDOW(dialog), 600, 400); run_modal_dialog(dialog); gtk_widget_destroy(GTK_WIDGET(dialog)); } static GlivImage *load_next_node(GList ** node, gint dir) { GlivImage *im = NULL; GList *next; GError *error; GSList *failed = NULL; gint nb_errors = 0; while ((next = next_node(*node, dir)) != NULL) { gchar *filename = next->data; error = NULL; im = load_file(filename, &error); if (im == NULL) { gchar *msg; /* Delete bad images from the list. */ remove_from_list(next); if (++nb_errors < 1024) { msg = error ? g_strdup(error->message) : g_strdup_printf(_("Cannot load %s"), filename); failed = g_slist_prepend(failed, msg); } g_clear_error(&error); } else { *node = next; if (error != NULL && error->message != NULL) g_printerr("%s\n", error->message); break; } } if (nb_errors == 1) { gchar *filename = failed->data; DIALOG_MSG("%s", filename); } else if (nb_errors > 1) { /* Many errors */ GSList *ptr; failed = g_slist_reverse(failed); show_errors(failed); for (ptr = failed; ptr != NULL; ptr = ptr->next) g_free(ptr->data); g_slist_free(failed); } return im; } static GlivImage *load_in_direction(gint dir) { GlivImage *im = NULL; GList *node; gint id; timestamp_t before_load = get_list_timestamp(); if (get_list_length() == 2 && options->loop) { /* * When there are only two images, and we are looping, * next_image and previous_image are equal. */ if (previous_image != NULL) { g_object_ref(previous_image); return previous_image; } if (next_image != NULL) { g_object_ref(next_image); return next_image; } } if (current_image == NULL) { /* First time. */ node = NULL; id = 0; } else { node = current_image->node; id = get_image_number(current_image) + dir; } im = load_next_node(&node, dir); if (im == NULL && options->loop && get_list_length() > 1) { /* Loop at the end. */ node = NULL; id = (dir == 1) ? 0 : (get_list_length() - 1); im = load_next_node(&node, dir); } if (im != NULL) { im->node = node; im->number = id; } else if (get_list_head() == NULL && current_image) /* No more images, not even the current one */ current_image->node = NULL; if (before_load != get_list_timestamp()) update_current_image_status(TRUE); return im; } /* Called when switching images. */ static void destroy_unused(GlivImage ** backup) { if (*backup != NULL) { g_object_unref(*backup); *backup = NULL; } *backup = current_image; g_object_ref(*backup); } static void stop_slide_show(void); /* Return FALSE if there are no more images. */ void load_direction(gint dir) { GlivImage **backup; GlivImage **next; GlivImage *im; /* We are not reentrant */ static gboolean in_load_direction = FALSE; static gint next_direction = 0; if (in_load_direction) { /* We delay the reentrance */ next_direction = dir; return; } if (currently_loading() || current_image == NULL) return; for (;;) { if (dir == -1) { backup = &next_image; next = &previous_image; } else if (dir == 1) { backup = &previous_image; next = &next_image; } else return; in_load_direction = TRUE; next_direction = 0; /* Be sure there is a next image. */ if (*next == NULL) { *next = load_in_direction(dir); if (*next == NULL) { /* There is no next image to load. */ image_notice(dir == 1); stop_slide_show(); goto out; } } destroy_unused(backup); im = *next; *next = NULL; render_next_image(im); g_object_unref(im); if (options->one_image) { g_object_unref(*backup); *backup = NULL; } else *next = load_in_direction(dir); slide_show_direction = dir; out: in_load_direction = FALSE; dir = next_direction; } } /* Load a randomly selected image from the list. */ void load_random_image() { gint nr; const gchar *filename; nr = random() % get_list_length(); filename = get_nth_filename(nr); menu_load(filename); } /* Load the first image from the list. */ void load_1st_image() { const gchar *filename; filename = get_nth_filename(0); menu_load(filename); } /* Load the last image in the list. */ void load_last_image() { const gchar *filename; filename = get_nth_filename(get_list_length() - 1); menu_load(filename); } /* * After many images are opened we want to load * the next image but not the preloaded one. * Maybe the image after the one we will load does * not change. */ static void open_next_image(gboolean keep_next) { GlivImage *next; GlivImage *future_image; if (currently_loading()) return; if (keep_next) { forget_image(&previous_image); } else unload_images(); /* load_in_direction() would be too smart when looping with 2 images */ future_image = next_image; next_image = NULL; next = load_in_direction(1); if (next == NULL) return; if (current_image != NULL) { previous_image = current_image; g_object_ref(previous_image); } next_image = future_image; render_next_image(next); g_object_unref(next); if (options->one_image == FALSE && next_image == NULL) next_image = load_in_direction(1); } /*** First/second image ***/ static void load_second_image(void) { if (next_image == NULL && options->one_image == FALSE) next_image = load_in_direction(1); if (options->start_show) start_slide_show(); if (options->build_menus) do_later(G_PRIORITY_LOW, (GSourceDummyMarshal) rebuild_images_menus); } void load_first_image(void) { GlivImage *first_image; install_segv_handler(); if (get_list_head() == NULL) { if (options->build_menus) /* Initialize the menus' timestamps for cond_rebuild to work */ rebuild_images_menus(); return; } first_image = load_in_direction(1); if (first_image == NULL) DIALOG_MSG(_("No image found")); else render_next_image(first_image); if (first_image != NULL) { if (options->fullscreen == FALSE && options->resize_win == FALSE) goto_window(first_image, TRUE); g_object_unref(first_image); } else if (options->fullscreen == FALSE) goto_window(NULL, TRUE); do_later(G_PRIORITY_LOW, load_second_image); } /* * Reloading. * Used for example, when an option is changed such as dithering or mipmap. */ void reload_current_image(void) { GlivImage *new; if (currently_loading() || current_image == NULL || current_image->node == NULL) return; new = load_file(current_image->node->data, NULL); if (new == NULL) return; new->node = current_image->node; new->number = current_image->number; g_object_unref(current_image); current_image = new; prioritize_textures(current_image, TRUE); refresh(REFRESH_NOW); update_current_image_status(FALSE); } void reload_images(void) { if (currently_loading()) return; forget_image(&previous_image); forget_image(&next_image); reload_current_image(); } struct image_stat { off_t size; time_t ctime; gboolean present; }; struct image_stat3 { struct image_stat previous; struct image_stat current; struct image_stat next; }; static void stat_image(GlivImage * im, struct image_stat *st, gboolean quiet) { st->present = FALSE; if (im != NULL && im->node != NULL) { struct stat real_stat; if (stat(im->node->data, &real_stat) < 0) { if (!quiet) perror(im->node->data); return; } st->size = real_stat.st_size; st->ctime = real_stat.st_ctime; st->present = TRUE; } } gpointer stat_loaded_files(gboolean quiet) { struct image_stat3 *stat_data = g_new(struct image_stat3, 1); stat_image(previous_image, &stat_data->previous, quiet); stat_image(current_image, &stat_data->current, quiet); stat_image(next_image, &stat_data->next, quiet); return stat_data; } #define DIFFERENT(name) \ memcmp(&before->name, &now->name, sizeof(struct image_stat)) void reload_changed_files(gpointer * stat_data) { struct image_stat3 *before = (struct image_stat3 *) stat_data; struct image_stat3 *now = stat_loaded_files(TRUE); if (DIFFERENT(previous)) forget_image(&previous_image); if (DIFFERENT(next)) forget_image(&next_image); if (DIFFERENT(current)) { if (now->current.present) reload_current_image(); else add_obsolete_node(current_image->node); } g_free(before); g_free(now); } /*** Menu ***/ /* Check if we can optimize the loading asked by the images menu. */ static gboolean check_direction(const gchar * filename, gint dir) { GlivImage **prev, **next; GList *next_node; if (dir == 1) { prev = &previous_image; next = &next_image; next_node = current_image->node->next; if (next_node != NULL) next_node = next_node->next; } else { /* dir == -1 */ prev = &next_image; next = &previous_image; next_node = current_image->node->prev; if (next_node != NULL) next_node = next_node->prev; } if (*next == NULL) return FALSE; /* Check if the requested image is just following the current one. */ if (filename == (*next)->node->data) { load_direction(dir); return TRUE; } /* * Check if the requested image is just before the previous one, * or just after the next one. */ if (next_node != NULL && filename == next_node->data) { GlivImage *new; if (*prev != NULL) g_object_unref(*prev); *prev = *next; *next = NULL; new = load_file(filename, NULL); if (new == NULL) { remove_from_list(next_node); return TRUE; } new->node = next_node; render_next_image(new); g_object_unref(new); return TRUE; } return FALSE; } gboolean menu_load(const gchar * filename) { GlivImage *im; static gboolean loading = FALSE; if (loading || currently_loading()) { /* We are not reentrant. */ return FALSE; } loading = TRUE; if (current_image->node != NULL && (filename == current_image->node->data || check_direction(filename, -1) || check_direction(filename, 1))) { loading = FALSE; return FALSE; } im = load_file(filename, NULL); if (im == NULL) { loading = FALSE; return FALSE; } im->node = find_node_by_name(filename); unload_images(); render_next_image(im); loading = FALSE; g_object_unref(im); return FALSE; } /* Called when destroying a file. */ void unload(GList * node) { if (previous_image != NULL && previous_image->node == node) { g_object_unref(previous_image); previous_image = NULL; } if (next_image != NULL && next_image->node == node) { g_object_unref(next_image); next_image = NULL; } } /* Called when we want only one image in memory. */ void unload_images(void) { forget_image(&previous_image); forget_image(&next_image); } /*** Slide show ***/ static void slide_show_remove_timer(void) { if (slide_show_timer != 0) { g_source_remove(slide_show_timer); slide_show_timer = 0; } } void set_slide_show_menu(GtkMenuItem * item) { slide_show_menu = item; } static void stop_slide_show(void) { slide_show_remove_timer(); set_menu_label(slide_show_menu, _("Start the slide show"), TRUE); } static gboolean slide_show_next(void) { load_direction(slide_show_direction); if (slide_show_started()) slide_show_advance(); return FALSE; } static void slide_show_advance(void) { slide_show_remove_timer(); slide_show_timer = g_timeout_add_full(G_PRIORITY_LOW, options->duration * 1000, (GSourceFunc) slide_show_next, NULL, NULL); } void start_slide_show(void) { stop_slide_show(); slide_show_direction = 1; if (options->duration < 0 || current_image == NULL) return; slide_show_advance(); set_menu_label(slide_show_menu, _("Stop the slide show"), TRUE); } gboolean slide_show_started(void) { return slide_show_timer != 0; } gboolean toggle_slide_show(void) { if (slide_show_started()) stop_slide_show(); else start_slide_show(); return FALSE; } void new_images(gint nb_inserted) { if (nb_inserted == 0) return; open_next_image(nb_inserted == 1); do_later(G_PRIORITY_LOW, cond_rebuild_menus); } gliv-1.9.7/src/cmdline.c0000644000076400007640000005704511465576131012331 0ustar gg/* File autogenerated by gengetopt version 2.22.2 generated with the following command: gengetopt --input=../tools/gliv.ggo --unamed-opts --no-handle-error The developers of gengetopt consider the fixed text that goes in all gengetopt output files to be in the public domain: we make no copyright claims on it. */ /* If we use autoconf. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include #include #include #ifndef FIX_UNUSED #define FIX_UNUSED(X) (void) (X) /* avoid warnings for unused params */ #endif #include "getopt.h" #include "cmdline.h" const char *gengetopt_args_info_purpose = "Image Viewer using OpenGL"; const char *gengetopt_args_info_usage = "Usage: " CMDLINE_PARSER_PACKAGE " [OPTIONS]... [FILES]..."; const char *gengetopt_args_info_description = ""; const char *gengetopt_args_info_help[] = { " -h, --help Print help and exit", " -V, --version Print version and exit", " -a, --add-all[=on|off] Add all files in the directory", " -R, --recursive[=on|off] Recursive directory traversal", " -S, --sort[=on|off] Show images in sorted order", " -s, --shuffle[=on|off] Show images in random order", " -F, --force-load[=on|off] Try to load every file", " -C, --client[=on|off] Connect to a running gliv, appending to the list", " -c, --client-clear[=on|off] Connect to a running gliv, replacing the list", " -e, --build-menus[=on|off] No images menu at startup", " -g, --glivrc[=FILE] Use this configuration file or none", " -w, --slide-show[=on|off] Start the slide show immediately", " -0, --null[=on|off] Read null-terminated filenames", " -o, --collection[=FILE] Output a collection", " -G, --geometry=GEOMETRY Initial window geometry", 0 }; typedef enum {ARG_NO , ARG_STRING } cmdline_parser_arg_type; static void clear_given (struct gengetopt_args_info *args_info); static void clear_args (struct gengetopt_args_info *args_info); static int cmdline_parser_internal (int argc, char * const *argv, struct gengetopt_args_info *args_info, struct cmdline_parser_params *params, const char *additional_error); static char * gengetopt_strdup (const char *s); static void clear_given (struct gengetopt_args_info *args_info) { args_info->help_given = 0 ; args_info->version_given = 0 ; args_info->add_all_given = 0 ; args_info->recursive_given = 0 ; args_info->sort_given = 0 ; args_info->shuffle_given = 0 ; args_info->force_load_given = 0 ; args_info->client_given = 0 ; args_info->client_clear_given = 0 ; args_info->build_menus_given = 0 ; args_info->glivrc_given = 0 ; args_info->slide_show_given = 0 ; args_info->null_given = 0 ; args_info->collection_given = 0 ; args_info->geometry_given = 0 ; } static void clear_args (struct gengetopt_args_info *args_info) { FIX_UNUSED (args_info); args_info->add_all_arg = NULL; args_info->add_all_orig = NULL; args_info->recursive_arg = NULL; args_info->recursive_orig = NULL; args_info->sort_arg = NULL; args_info->sort_orig = NULL; args_info->shuffle_arg = NULL; args_info->shuffle_orig = NULL; args_info->force_load_arg = NULL; args_info->force_load_orig = NULL; args_info->client_arg = NULL; args_info->client_orig = NULL; args_info->client_clear_arg = NULL; args_info->client_clear_orig = NULL; args_info->build_menus_arg = NULL; args_info->build_menus_orig = NULL; args_info->glivrc_arg = NULL; args_info->glivrc_orig = NULL; args_info->slide_show_arg = NULL; args_info->slide_show_orig = NULL; args_info->null_arg = NULL; args_info->null_orig = NULL; args_info->collection_arg = NULL; args_info->collection_orig = NULL; args_info->geometry_arg = NULL; args_info->geometry_orig = NULL; } static void init_args_info(struct gengetopt_args_info *args_info) { args_info->help_help = gengetopt_args_info_help[0] ; args_info->version_help = gengetopt_args_info_help[1] ; args_info->add_all_help = gengetopt_args_info_help[2] ; args_info->recursive_help = gengetopt_args_info_help[3] ; args_info->sort_help = gengetopt_args_info_help[4] ; args_info->shuffle_help = gengetopt_args_info_help[5] ; args_info->force_load_help = gengetopt_args_info_help[6] ; args_info->client_help = gengetopt_args_info_help[7] ; args_info->client_clear_help = gengetopt_args_info_help[8] ; args_info->build_menus_help = gengetopt_args_info_help[9] ; args_info->glivrc_help = gengetopt_args_info_help[10] ; args_info->slide_show_help = gengetopt_args_info_help[11] ; args_info->null_help = gengetopt_args_info_help[12] ; args_info->collection_help = gengetopt_args_info_help[13] ; args_info->geometry_help = gengetopt_args_info_help[14] ; } void cmdline_parser_print_version (void) { printf ("%s %s\n", (strlen(CMDLINE_PARSER_PACKAGE_NAME) ? CMDLINE_PARSER_PACKAGE_NAME : CMDLINE_PARSER_PACKAGE), CMDLINE_PARSER_VERSION); } static void print_help_common(void) { cmdline_parser_print_version (); if (strlen(gengetopt_args_info_purpose) > 0) printf("\n%s\n", gengetopt_args_info_purpose); if (strlen(gengetopt_args_info_usage) > 0) printf("\n%s\n", gengetopt_args_info_usage); printf("\n"); if (strlen(gengetopt_args_info_description) > 0) printf("%s\n\n", gengetopt_args_info_description); } void cmdline_parser_print_help (void) { int i = 0; print_help_common(); while (gengetopt_args_info_help[i]) printf("%s\n", gengetopt_args_info_help[i++]); } void cmdline_parser_init (struct gengetopt_args_info *args_info) { clear_given (args_info); clear_args (args_info); init_args_info (args_info); args_info->inputs = 0; args_info->inputs_num = 0; } void cmdline_parser_params_init(struct cmdline_parser_params *params) { if (params) { params->override = 0; params->initialize = 1; params->check_required = 1; params->check_ambiguity = 0; params->print_errors = 1; } } struct cmdline_parser_params * cmdline_parser_params_create(void) { struct cmdline_parser_params *params = (struct cmdline_parser_params *)malloc(sizeof(struct cmdline_parser_params)); cmdline_parser_params_init(params); return params; } static void free_string_field (char **s) { if (*s) { free (*s); *s = 0; } } static void cmdline_parser_release (struct gengetopt_args_info *args_info) { unsigned int i; free_string_field (&(args_info->add_all_arg)); free_string_field (&(args_info->add_all_orig)); free_string_field (&(args_info->recursive_arg)); free_string_field (&(args_info->recursive_orig)); free_string_field (&(args_info->sort_arg)); free_string_field (&(args_info->sort_orig)); free_string_field (&(args_info->shuffle_arg)); free_string_field (&(args_info->shuffle_orig)); free_string_field (&(args_info->force_load_arg)); free_string_field (&(args_info->force_load_orig)); free_string_field (&(args_info->client_arg)); free_string_field (&(args_info->client_orig)); free_string_field (&(args_info->client_clear_arg)); free_string_field (&(args_info->client_clear_orig)); free_string_field (&(args_info->build_menus_arg)); free_string_field (&(args_info->build_menus_orig)); free_string_field (&(args_info->glivrc_arg)); free_string_field (&(args_info->glivrc_orig)); free_string_field (&(args_info->slide_show_arg)); free_string_field (&(args_info->slide_show_orig)); free_string_field (&(args_info->null_arg)); free_string_field (&(args_info->null_orig)); free_string_field (&(args_info->collection_arg)); free_string_field (&(args_info->collection_orig)); free_string_field (&(args_info->geometry_arg)); free_string_field (&(args_info->geometry_orig)); for (i = 0; i < args_info->inputs_num; ++i) free (args_info->inputs [i]); if (args_info->inputs_num) free (args_info->inputs); clear_given (args_info); } static void write_into_file(FILE *outfile, const char *opt, const char *arg, const char *values[]) { FIX_UNUSED (values); if (arg) { fprintf(outfile, "%s=\"%s\"\n", opt, arg); } else { fprintf(outfile, "%s\n", opt); } } int cmdline_parser_dump(FILE *outfile, struct gengetopt_args_info *args_info) { int i = 0; if (!outfile) { fprintf (stderr, "%s: cannot dump options to stream\n", CMDLINE_PARSER_PACKAGE); return EXIT_FAILURE; } if (args_info->help_given) write_into_file(outfile, "help", 0, 0 ); if (args_info->version_given) write_into_file(outfile, "version", 0, 0 ); if (args_info->add_all_given) write_into_file(outfile, "add-all", args_info->add_all_orig, 0); if (args_info->recursive_given) write_into_file(outfile, "recursive", args_info->recursive_orig, 0); if (args_info->sort_given) write_into_file(outfile, "sort", args_info->sort_orig, 0); if (args_info->shuffle_given) write_into_file(outfile, "shuffle", args_info->shuffle_orig, 0); if (args_info->force_load_given) write_into_file(outfile, "force-load", args_info->force_load_orig, 0); if (args_info->client_given) write_into_file(outfile, "client", args_info->client_orig, 0); if (args_info->client_clear_given) write_into_file(outfile, "client-clear", args_info->client_clear_orig, 0); if (args_info->build_menus_given) write_into_file(outfile, "build-menus", args_info->build_menus_orig, 0); if (args_info->glivrc_given) write_into_file(outfile, "glivrc", args_info->glivrc_orig, 0); if (args_info->slide_show_given) write_into_file(outfile, "slide-show", args_info->slide_show_orig, 0); if (args_info->null_given) write_into_file(outfile, "null", args_info->null_orig, 0); if (args_info->collection_given) write_into_file(outfile, "collection", args_info->collection_orig, 0); if (args_info->geometry_given) write_into_file(outfile, "geometry", args_info->geometry_orig, 0); i = EXIT_SUCCESS; return i; } int cmdline_parser_file_save(const char *filename, struct gengetopt_args_info *args_info) { FILE *outfile; int i = 0; outfile = fopen(filename, "w"); if (!outfile) { fprintf (stderr, "%s: cannot open file for writing: %s\n", CMDLINE_PARSER_PACKAGE, filename); return EXIT_FAILURE; } i = cmdline_parser_dump(outfile, args_info); fclose (outfile); return i; } void cmdline_parser_free (struct gengetopt_args_info *args_info) { cmdline_parser_release (args_info); } /** @brief replacement of strdup, which is not standard */ char * gengetopt_strdup (const char *s) { char *result = 0; if (!s) return result; result = (char*)malloc(strlen(s) + 1); if (result == (char*)0) return (char*)0; strcpy(result, s); return result; } int cmdline_parser (int argc, char * const *argv, struct gengetopt_args_info *args_info) { return cmdline_parser2 (argc, argv, args_info, 0, 1, 1); } int cmdline_parser_ext (int argc, char * const *argv, struct gengetopt_args_info *args_info, struct cmdline_parser_params *params) { int result; result = cmdline_parser_internal (argc, argv, args_info, params, 0); return result; } int cmdline_parser2 (int argc, char * const *argv, struct gengetopt_args_info *args_info, int override, int initialize, int check_required) { int result; struct cmdline_parser_params params; params.override = override; params.initialize = initialize; params.check_required = check_required; params.check_ambiguity = 0; params.print_errors = 1; result = cmdline_parser_internal (argc, argv, args_info, ¶ms, 0); return result; } int cmdline_parser_required (struct gengetopt_args_info *args_info, const char *prog_name) { FIX_UNUSED (args_info); FIX_UNUSED (prog_name); return EXIT_SUCCESS; } static char *package_name = 0; /** * @brief updates an option * @param field the generic pointer to the field to update * @param orig_field the pointer to the orig field * @param field_given the pointer to the number of occurrence of this option * @param prev_given the pointer to the number of occurrence already seen * @param value the argument for this option (if null no arg was specified) * @param possible_values the possible values for this option (if specified) * @param default_value the default value (in case the option only accepts fixed values) * @param arg_type the type of this option * @param check_ambiguity @see cmdline_parser_params.check_ambiguity * @param override @see cmdline_parser_params.override * @param no_free whether to free a possible previous value * @param multiple_option whether this is a multiple option * @param long_opt the corresponding long option * @param short_opt the corresponding short option (or '-' if none) * @param additional_error possible further error specification */ static int update_arg(void *field, char **orig_field, unsigned int *field_given, unsigned int *prev_given, char *value, const char *possible_values[], const char *default_value, cmdline_parser_arg_type arg_type, int check_ambiguity, int override, int no_free, int multiple_option, const char *long_opt, char short_opt, const char *additional_error) { FIX_UNUSED (field); char *stop_char = 0; const char *val = value; int found; char **string_field; stop_char = 0; found = 0; if (!multiple_option && prev_given && (*prev_given || (check_ambiguity && *field_given))) { if (short_opt != '-') fprintf (stderr, "%s: `--%s' (`-%c') option given more than once%s\n", package_name, long_opt, short_opt, (additional_error ? additional_error : "")); else fprintf (stderr, "%s: `--%s' option given more than once%s\n", package_name, long_opt, (additional_error ? additional_error : "")); return 1; /* failure */ } FIX_UNUSED (default_value); if (field_given && *field_given && ! override) return 0; if (prev_given) (*prev_given)++; if (field_given) (*field_given)++; if (possible_values) val = possible_values[found]; switch(arg_type) { case ARG_STRING: if (val) { string_field = (char **)field; if (!no_free && *string_field) free (*string_field); /* free previous string */ *string_field = gengetopt_strdup (val); } break; default: break; }; /* store the original value */ switch(arg_type) { case ARG_NO: break; default: if (value && orig_field) { if (no_free) { *orig_field = value; } else { if (*orig_field) free (*orig_field); /* free previous string */ *orig_field = gengetopt_strdup (value); } } }; return 0; /* OK */ } int cmdline_parser_internal ( int argc, char * const *argv, struct gengetopt_args_info *args_info, struct cmdline_parser_params *params, const char *additional_error) { int c; /* Character of the parsed option. */ int error = 0; struct gengetopt_args_info local_args_info; int override; int initialize; int check_required; int check_ambiguity; package_name = argv[0]; override = params->override; initialize = params->initialize; check_required = params->check_required; check_ambiguity = params->check_ambiguity; if (initialize) cmdline_parser_init (args_info); cmdline_parser_init (&local_args_info); optarg = 0; optind = 0; opterr = params->print_errors; optopt = '?'; while (1) { int option_index = 0; static struct option long_options[] = { { "help", 0, NULL, 'h' }, { "version", 0, NULL, 'V' }, { "add-all", 2, NULL, 'a' }, { "recursive", 2, NULL, 'R' }, { "sort", 2, NULL, 'S' }, { "shuffle", 2, NULL, 's' }, { "force-load", 2, NULL, 'F' }, { "client", 2, NULL, 'C' }, { "client-clear", 2, NULL, 'c' }, { "build-menus", 2, NULL, 'e' }, { "glivrc", 2, NULL, 'g' }, { "slide-show", 2, NULL, 'w' }, { "null", 2, NULL, '0' }, { "collection", 2, NULL, 'o' }, { "geometry", 1, NULL, 'G' }, { 0, 0, 0, 0 } }; c = getopt_long (argc, argv, "hVa::R::S::s::F::C::c::e::g::w::0::o::G:", long_options, &option_index); if (c == -1) break; /* Exit from `while (1)' loop. */ switch (c) { case 'h': /* Print help and exit. */ cmdline_parser_print_help (); cmdline_parser_free (&local_args_info); exit (EXIT_SUCCESS); case 'V': /* Print version and exit. */ cmdline_parser_print_version (); cmdline_parser_free (&local_args_info); exit (EXIT_SUCCESS); case 'a': /* Add all files in the directory. */ if (update_arg( (void *)&(args_info->add_all_arg), &(args_info->add_all_orig), &(args_info->add_all_given), &(local_args_info.add_all_given), optarg, 0, 0, ARG_STRING, check_ambiguity, override, 0, 0, "add-all", 'a', additional_error)) goto failure; break; case 'R': /* Recursive directory traversal. */ if (update_arg( (void *)&(args_info->recursive_arg), &(args_info->recursive_orig), &(args_info->recursive_given), &(local_args_info.recursive_given), optarg, 0, 0, ARG_STRING, check_ambiguity, override, 0, 0, "recursive", 'R', additional_error)) goto failure; break; case 'S': /* Show images in sorted order. */ if (update_arg( (void *)&(args_info->sort_arg), &(args_info->sort_orig), &(args_info->sort_given), &(local_args_info.sort_given), optarg, 0, 0, ARG_STRING, check_ambiguity, override, 0, 0, "sort", 'S', additional_error)) goto failure; break; case 's': /* Show images in random order. */ if (update_arg( (void *)&(args_info->shuffle_arg), &(args_info->shuffle_orig), &(args_info->shuffle_given), &(local_args_info.shuffle_given), optarg, 0, 0, ARG_STRING, check_ambiguity, override, 0, 0, "shuffle", 's', additional_error)) goto failure; break; case 'F': /* Try to load every file. */ if (update_arg( (void *)&(args_info->force_load_arg), &(args_info->force_load_orig), &(args_info->force_load_given), &(local_args_info.force_load_given), optarg, 0, 0, ARG_STRING, check_ambiguity, override, 0, 0, "force-load", 'F', additional_error)) goto failure; break; case 'C': /* Connect to a running gliv, appending to the list. */ if (update_arg( (void *)&(args_info->client_arg), &(args_info->client_orig), &(args_info->client_given), &(local_args_info.client_given), optarg, 0, 0, ARG_STRING, check_ambiguity, override, 0, 0, "client", 'C', additional_error)) goto failure; break; case 'c': /* Connect to a running gliv, replacing the list. */ if (update_arg( (void *)&(args_info->client_clear_arg), &(args_info->client_clear_orig), &(args_info->client_clear_given), &(local_args_info.client_clear_given), optarg, 0, 0, ARG_STRING, check_ambiguity, override, 0, 0, "client-clear", 'c', additional_error)) goto failure; break; case 'e': /* No images menu at startup. */ if (update_arg( (void *)&(args_info->build_menus_arg), &(args_info->build_menus_orig), &(args_info->build_menus_given), &(local_args_info.build_menus_given), optarg, 0, 0, ARG_STRING, check_ambiguity, override, 0, 0, "build-menus", 'e', additional_error)) goto failure; break; case 'g': /* Use this configuration file or none. */ if (update_arg( (void *)&(args_info->glivrc_arg), &(args_info->glivrc_orig), &(args_info->glivrc_given), &(local_args_info.glivrc_given), optarg, 0, 0, ARG_STRING, check_ambiguity, override, 0, 0, "glivrc", 'g', additional_error)) goto failure; break; case 'w': /* Start the slide show immediately. */ if (update_arg( (void *)&(args_info->slide_show_arg), &(args_info->slide_show_orig), &(args_info->slide_show_given), &(local_args_info.slide_show_given), optarg, 0, 0, ARG_STRING, check_ambiguity, override, 0, 0, "slide-show", 'w', additional_error)) goto failure; break; case '0': /* Read null-terminated filenames. */ if (update_arg( (void *)&(args_info->null_arg), &(args_info->null_orig), &(args_info->null_given), &(local_args_info.null_given), optarg, 0, 0, ARG_STRING, check_ambiguity, override, 0, 0, "null", '0', additional_error)) goto failure; break; case 'o': /* Output a collection. */ if (update_arg( (void *)&(args_info->collection_arg), &(args_info->collection_orig), &(args_info->collection_given), &(local_args_info.collection_given), optarg, 0, 0, ARG_STRING, check_ambiguity, override, 0, 0, "collection", 'o', additional_error)) goto failure; break; case 'G': /* Initial window geometry. */ if (update_arg( (void *)&(args_info->geometry_arg), &(args_info->geometry_orig), &(args_info->geometry_given), &(local_args_info.geometry_given), optarg, 0, 0, ARG_STRING, check_ambiguity, override, 0, 0, "geometry", 'G', additional_error)) goto failure; break; case 0: /* Long option with no short option */ case '?': /* Invalid option. */ /* `getopt_long' already printed an error message. */ goto failure; default: /* bug: option not considered. */ fprintf (stderr, "%s: option unknown: %c%s\n", CMDLINE_PARSER_PACKAGE, c, (additional_error ? additional_error : "")); abort (); } /* switch */ } /* while */ cmdline_parser_release (&local_args_info); if ( error ) return (EXIT_FAILURE); if (optind < argc) { int i = 0 ; int found_prog_name = 0; /* whether program name, i.e., argv[0], is in the remaining args (this may happen with some implementations of getopt, but surely not with the one included by gengetopt) */ i = optind; while (i < argc) if (argv[i++] == argv[0]) { found_prog_name = 1; break; } i = 0; args_info->inputs_num = argc - optind - found_prog_name; args_info->inputs = (char **)(malloc ((args_info->inputs_num)*sizeof(char *))) ; while (optind < argc) if (argv[optind++] != argv[0]) args_info->inputs[ i++ ] = gengetopt_strdup (argv[optind-1]) ; } return 0; failure: cmdline_parser_release (&local_args_info); return (EXIT_FAILURE); } gliv-1.9.7/src/collection.c0000644000076400007640000006670211465576131013051 0ustar gg/* * 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. * * See the COPYING file for license information. * * Guillaume Chazarain */ /******************** * GLiv collections * ********************/ /* * +--------------------------------+ * | The .gliv format specification | * +--------------------------------+ * * Newlines are here just for clarity. All numbers are represented in a string. * So 123 is actually represented: '1''2''3''\0' * PixelData is a char* so it should be endian independant, testing will tell... * * * * GlivCollectionFile ::= * "GLiv " * Version * FileCount * Entry* * "" * * * Version ::= * "1" (Currently there is only one version) * * * Entry ::= * "" * PathLength * Path * MaybeThumb * "" * * * MaybeThumb ::= * "0" | Thumb * * Thumb ::= * "1" * HashKeyLength * HashKey * GdkColorspace * AlphaChannel * BitsPerSample * ThumbWidth * ThumbHeight * RowStride * PixelDataLength * PixelData * * * * Path, and HashKey are '0' terminated strings. * FileCount, PathLength, HashKeyLength, GdkColorspace, AlphaChannel, * BitsPerSample, ThumbWidth, ThumbHeight, RowStride and PixelDataLength * are '\0' terminated strings representing decimal numbers. */ #include /* isatty() */ #include /* size_t, off_t */ #include /* mmap(), PROT_READ, MAP_PRIVATE, ... */ #include /* FILE, fopen(), fread(), fwrite(), ... */ #include /* strlen(), strrchr() */ #include /* errno */ #include /* isdigit() */ #include /* time_t, time() */ #include "gliv.h" #include "collection.h" #include "math_floats.h" /* log10f() */ #include "large_files.h" #include "messages.h" #include "tree.h" #include "thumbnails.h" #include "str_utils.h" #include "files_list.h" #include "next_image.h" #include "gliv-image.h" #include "formats.h" #include "loading.h" #include "decompression.h" #include "callbacks.h" #include "windows.h" #include "options.h" /* Max filename length in the progress window. */ #define MAX_DISPLAYED_NAME_LENGTH 30 extern rt_struct *rt; extern options_struct *options; extern GlivImage *current_image; static gchar *get_filename(const gchar * label, gboolean save) { GtkFileChooserAction action; const gchar *stock_button; GtkFileChooser *chooser; gint response; gchar *filename = NULL; if (save) { action = GTK_FILE_CHOOSER_ACTION_SAVE; stock_button = GTK_STOCK_SAVE; } else { action = GTK_FILE_CHOOSER_ACTION_OPEN; stock_button = GTK_STOCK_OPEN; } chooser = GTK_FILE_CHOOSER(gtk_file_chooser_dialog_new(label, NULL, action, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, stock_button, GTK_RESPONSE_ACCEPT, NULL)); response = run_modal_dialog(GTK_DIALOG(chooser)); if (response == GTK_RESPONSE_ACCEPT) filename = gtk_file_chooser_get_filename(chooser); gtk_widget_destroy(GTK_WIDGET(chooser)); return filename; } static gchar *get_collection_destination(void) { gchar *filename; filename = get_filename(_("Choose a file to save the collection"), TRUE); if (filename != NULL && g_file_test(filename, G_FILE_TEST_EXISTS)) { GtkMessageDialog *overwrite = GTK_MESSAGE_DIALOG(gtk_message_dialog_new(NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, _("Overwrite \"%s\" ?"), filename)); gint response = run_modal_dialog(GTK_DIALOG(overwrite)); if (response != GTK_RESPONSE_YES) { g_free(filename); filename = NULL; } gtk_widget_destroy(GTK_WIDGET(overwrite)); } return filename; } /*** Progress dialog ***/ static GtkLabel *file_label; static GtkLabel *ratio_label; static GtkProgressBar *progress; static GtkWindow *progress_window; static GtkLabel *elapsed_label, *total_label, *remaining_label; static time_t start_time; static gboolean set_true(gboolean * ptr) { *ptr = TRUE; return FALSE; } static GtkLabel *add_time_display(GtkTable * table, const gchar * text, gint pos) { GtkLabel *name_label, *time_label; name_label = GTK_LABEL(gtk_label_new(text)); gtk_widget_show(GTK_WIDGET(name_label)); time_label = GTK_LABEL(gtk_label_new(NULL)); gtk_widget_show(GTK_WIDGET(time_label)); gtk_table_attach_defaults(table, GTK_WIDGET(name_label), 0, 1, pos, pos + 1); gtk_table_attach_defaults(table, GTK_WIDGET(time_label), 1, 2, pos, pos + 1); return time_label; } static void create_progress_dialog(const gchar * filename, gpointer cancel_data, gboolean is_saving) { GtkButton *cancel; GtkTable *table; gchar *title; file_label = GTK_LABEL(gtk_label_new(NULL)); gtk_label_set_ellipsize(file_label, PANGO_ELLIPSIZE_MIDDLE); gtk_widget_show(GTK_WIDGET(file_label)); ratio_label = GTK_LABEL(gtk_label_new(NULL)); gtk_widget_show(GTK_WIDGET(ratio_label)); progress = GTK_PROGRESS_BAR(gtk_progress_bar_new()); gtk_widget_show(GTK_WIDGET(progress)); cancel = GTK_BUTTON(gtk_button_new_from_stock(GTK_STOCK_CANCEL)); g_signal_connect_swapped(cancel, "clicked", G_CALLBACK(set_true), cancel_data); gtk_widget_show(GTK_WIDGET(cancel)); table = GTK_TABLE(gtk_table_new(7, 2, TRUE)); gtk_table_attach_defaults(table, GTK_WIDGET(file_label), 0, 2, 0, 1); gtk_table_attach_defaults(table, GTK_WIDGET(ratio_label), 0, 2, 1, 2); gtk_table_attach_defaults(table, GTK_WIDGET(progress), 0, 2, 2, 3); elapsed_label = add_time_display(table, _("Elapsed time"), 3); remaining_label = add_time_display(table, _("Remaining time"), 4); total_label = add_time_display(table, _("Total time"), 5); gtk_table_attach_defaults(table, GTK_WIDGET(cancel), 1, 2, 6, 7); gtk_widget_show(GTK_WIDGET(table)); if (is_saving) title = g_strdup_printf(_("Saving collection: %s"), filename_to_utf8(filename)); else title = g_strdup_printf(_("Loading collection: %s"), filename_to_utf8(filename)); progress_window = new_window(title); g_free(title); g_signal_connect_swapped(progress_window, "delete-event", G_CALLBACK(set_true), cancel_data); gtk_container_add(GTK_CONTAINER(progress_window), GTK_WIDGET(table)); gtk_widget_show(GTK_WIDGET(progress_window)); start_time = time(NULL); } static gchar *time2str(time_t t) { gint hours = t / 3600; gint minutes = (t - hours * 3600) / 60; gint seconds = t % 60; return g_strdup_printf("%02d:%02d:%02d", hours, minutes, seconds); } static void update_times(time_t elapsed_time, time_t remaining_time, time_t total_time) { gchar *text; text = time2str(elapsed_time); gtk_label_set_text(elapsed_label, text); g_free(text); text = time2str(remaining_time); gtk_label_set_text(remaining_label, text); g_free(text); text = time2str(total_time); gtk_label_set_text(total_label, text); g_free(text); } static gboolean need_refresh_progress(gboolean last_time) { static GTimeVal last = { 0, 0 }; GTimeVal now; glong usec_diff; if (last_time) { last.tv_sec = 0; last.tv_usec = 0; return TRUE; } if (last.tv_sec == 0 && last.tv_usec == 0) { g_get_current_time(&last); return TRUE; } g_get_current_time(&now); usec_diff = (now.tv_sec - last.tv_sec) * G_USEC_PER_SEC + now.tv_usec - last.tv_usec; if (usec_diff < G_USEC_PER_SEC / 10) /* Lower the redrawing load. */ return FALSE; last = now; return TRUE; } static FILE *get_terminal_output(void) { static FILE *print; static gboolean print_ok = FALSE; if (!print_ok) { if (isatty(fileno(stdout))) print = stdout; else if (isatty(fileno(stderr))) print = stderr; else print = NULL; print_ok = TRUE; } return print; } static void update_progress_nogui(gint id, gint count) { FILE *print = get_terminal_output(); if (print != NULL && need_refresh_progress(id == count - 1)) { gint percent = id * 100 / count; fprintf(print, " %d/%d: %d%%\r", id + 1, count, percent); fflush(print); } } static void update_progress(const gchar * filename, gint id, gint count) { const gchar *base; time_t current_time, elapsed_time, total_time, remaining_time; gchar *ratio_text; if (progress_window == NULL) { update_progress_nogui(id, count); return; } if (filename == NULL) { /* Last update. */ gchar *msg = _("Inserting files..."); need_refresh_progress(TRUE); gtk_label_set_text(file_label, msg); } else { if (need_refresh_progress(FALSE) == FALSE) return; base = strrchr(filename, '/'); if (base == NULL) base = filename; else base++; gtk_label_set_text(file_label, base); } ratio_text = g_strdup_printf("%d / %d", id, count - 1); gtk_label_set_text(ratio_label, ratio_text); g_free(ratio_text); if (count == 1) gtk_progress_bar_set_fraction(progress, 1.0); else gtk_progress_bar_set_fraction(progress, (gdouble) id / (count - 1)); current_time = time(NULL); elapsed_time = current_time - start_time; if (id == 0) total_time = 0; else total_time = elapsed_time * (count - 1) / id; remaining_time = total_time - elapsed_time; update_times(elapsed_time, remaining_time, total_time); process_events(); } static void destroy_progress_dialog(void) { if (progress_window != NULL) { if (GTK_IS_WIDGET(progress_window)) gtk_widget_destroy(GTK_WIDGET(progress_window)); progress_window = NULL; } } /* * In the serialization and deserialization, * returning FALSE means aborting it. */ /*** Serialization ***/ typedef struct { FILE *file; gint file_id; gint count; gchar *cwd; /* To avoid relative filenames. */ } serialization_data; /* Attempts to put a string in the serialized file. */ #define WRITE(file, str) \ do { \ gchar * __str__ = (str); \ gint len = strlen(__str__) + 1; \ \ if (fwrite(__str__, 1, len, (file)) != len) \ return FALSE; \ } while (0) /* Attempts to put a number (in string form) in the serialized file. */ #define WRITE_NB(file, nb) \ do { \ gchar *str = g_strdup_printf("%d%c", (nb), '\0'); \ gint len = strlen(str) + 1; \ \ if (fwrite(str, 1, len, (file)) != len) { \ g_free(str); \ return FALSE; \ } \ \ g_free(str); \ } while (0) static gboolean print_header(serialization_data * work) { WRITE(work->file, "GLiv "); WRITE(work->file, "1"); /* Version */ WRITE_NB(work->file, work->count); /* FileCount */ return TRUE; } static gboolean print_footer(FILE * file) { WRITE(file, ""); return TRUE; } /* * We will write the value number, then a '\0' and then the image * data. The data should be aligned if we read it via mmap, as * GdkPixbuf uses a rowstride value so that every line beginning are * on a 32 bit boundary. * The alignment is made by padding some '0'. */ static gboolean align_next(FILE * file, gint value) { gint length, pos, align; /* For the (extremly ...) rare case value == 0 */ value += !value; length = (int) log10f(value) + 2; pos = (int) ftell(file) + length; /* We don't need 64 bit precision */ align = (4 - pos % 4) % 4; /* We align on 32 bit boundaries */ while (align > 0) { if (putc('0', file) < 0) return FALSE; align--; } return TRUE; } /* Write the MaybeThumb part of an entry. */ static gboolean write_thumb(const gchar * filename, FILE * file) { gint height, rowstride, len, bps; gchar *thumb_key; GdkPixbuf *thumb; thumb = get_thumbnail(filename, &thumb_key); if (thumb == NULL) { WRITE(file, "0"); return TRUE; } height = gdk_pixbuf_get_height(thumb); rowstride = gdk_pixbuf_get_rowstride(thumb); len = pixels_size(thumb); bps = gdk_pixbuf_get_bits_per_sample(thumb); WRITE(file, "1"); WRITE_NB(file, strlen(thumb_key)); /* HashKeyLength */ WRITE(file, thumb_key); /* HashKey */ WRITE_NB(file, gdk_pixbuf_get_colorspace(thumb)); /* GdkColorspace */ WRITE_NB(file, gdk_pixbuf_get_has_alpha(thumb)); /* AlphaChannel */ WRITE_NB(file, bps); /* BitsPerSample */ WRITE_NB(file, gdk_pixbuf_get_width(thumb)); /* ThumbWidth */ WRITE_NB(file, height); /* ThumbHeight */ WRITE_NB(file, rowstride); /* RowStride */ if (align_next(file, len) == FALSE) return FALSE; WRITE_NB(file, len); /* PixelDataLength */ /* PixelData */ return fwrite(gdk_pixbuf_get_pixels(thumb), 1, len, file) == len; } static gboolean serialize_file(const gchar * filename, serialization_data * work) { FILE *file = work->file; gchar *path; update_progress(filename, work->file_id, work->count); WRITE(file, ""); path = get_absolute_filename(filename); WRITE_NB(file, strlen(path)); /* PathLength */ WRITE(file, path); /* Path */ g_free(path); if (write_thumb(filename, file) == FALSE) /* MaybeThumb */ return FALSE; WRITE(file, ""); work->file_id++; return TRUE; } static void file_error(const gchar * filename) { if (rt) { gchar *message = g_strconcat(filename, ": ", g_strerror(errno), NULL); DIALOG_MSG("%s", message); g_free(message); } } gint save_collection(FILE * file, gboolean * cancel) { GList *list; serialization_data *work; gboolean ok = FALSE; list = get_list_head(); work = g_new(serialization_data, 1); work->file = file; work->file_id = 0; work->count = get_list_length(); work->cwd = g_get_current_dir(); if (print_header(work) == FALSE) goto error; while (*cancel == FALSE && list != NULL) { gboolean file_ok = serialize_file(list->data, work); if (file_ok == FALSE) goto error; list = list->next; } if (*cancel || print_footer(work->file) == FALSE) goto error; ok = TRUE; goto ok; error: ok = FALSE; ok: g_free(work->cwd); g_free(work); return ok ? 0 : 1; } gint serialize_collection_nogui(const gchar * filename) { FILE *tty; FILE *file; gint res; gboolean cancel = FALSE; if (get_list_head() == NULL) { g_printerr(_("No images to put in a collection\n")); return 1; } if (filename == NULL) { file = stdout; if (isatty(fileno(file))) { g_printerr(_("GLiv won't write a collection to a terminal\n")); return 1; } } else { /* We remove the file, since we may have mmapped it */ remove(filename); file = fopen(filename, "w"); if (file == NULL) { perror(filename); return 1; } } tty = get_terminal_output(); if (tty != NULL) { fprintf(tty, _("Saving collection: %s"), filename_to_utf8(filename)); putc('\n', tty); } res = save_collection(file, &cancel); if (res) perror(filename == NULL ? _("Standard output") : filename); if (filename != NULL && fclose(file) < 0 && res == 0) perror(filename); return res; } gboolean serialize_collection_gui(void) { FILE *file; gchar *filename; gint res; gboolean cancel = FALSE; if (get_list_head() == NULL) return FALSE; filename = get_collection_destination(); if (filename == NULL) return FALSE; /* We remove the file, since we may have mmapped it */ remove(filename); file = fopen(filename, "w"); if (file == NULL) { file_error(filename); return FALSE; } create_progress_dialog(filename, &cancel, TRUE); res = save_collection(file, &cancel); if (res) { if (cancel == FALSE) file_error(filename); fclose(file); remove(filename); } else if (fclose(file) < 0) file_error(filename); destroy_progress_dialog(); g_free(filename); return FALSE; } /*** Deserialization ***/ struct coll_src { gboolean is_file; union { FILE *file; struct { gchar *base; gchar *ptr; gchar *end; } mem; } backend; }; static void free_buffer(struct coll_src *source, gchar * buffer) { if (source->is_file) g_free(buffer); } static gchar *read_buffer(struct coll_src *source, size_t length, gboolean is_string) { gchar *data; if (source->is_file) { data = g_new(gchar, length); if (fread(data, 1, length, source->backend.file) != length) { g_free(data); return NULL; } } else { if (source->backend.mem.ptr + length > source->backend.mem.end) return NULL; data = source->backend.mem.ptr; source->backend.mem.ptr += length; } if (is_string && data[length - 1] != '\0') { free_buffer(source, data); data = NULL; } return data; } static gint read_char(struct coll_src *source) { if (source->is_file) return fgetc(source->backend.file); if (source->backend.mem.ptr >= source->backend.mem.end) return EOF; return *(source->backend.mem.ptr++); } static GdkPixbufDestroyNotify destroy_func(struct coll_src *source) { return (GdkPixbufDestroyNotify) (source->is_file ? g_free : NULL); } /* Checks that file starts with magic. */ static gboolean check_magic(struct coll_src *source, const gchar * magic) { gboolean res; gint size = strlen(magic) + 1; gchar *buffer = read_buffer(source, size, TRUE); if (buffer == NULL) return FALSE; res = g_str_equal(magic, buffer); free_buffer(source, buffer); return res; } /* Reads a number represented by a string. -1 => ERROR */ static gint read_number(struct coll_src *source) { gint number = 0; gint next_char = read_char(source); while (isdigit(next_char)) { number = number * 10 + next_char - '0'; next_char = read_char(source); } if (next_char == '\0') return number; return -1; } #define READ_THUMB_NB(source, var) \ do { \ var = read_number(source); \ if (var < 0) \ return FALSE; \ } while (0) static gboolean read_pixbuf(struct coll_src *source, GdkPixbuf ** thumb) { GdkColorspace colorspace; gboolean has_alpha; gint bits_per_sample, width, height, rowstride; gint pixel_length; gchar *pixel; READ_THUMB_NB(source, colorspace); READ_THUMB_NB(source, has_alpha); if (has_alpha != FALSE && has_alpha != TRUE) return FALSE; READ_THUMB_NB(source, bits_per_sample); READ_THUMB_NB(source, width); READ_THUMB_NB(source, height); READ_THUMB_NB(source, rowstride); READ_THUMB_NB(source, pixel_length); pixel = read_buffer(source, pixel_length, FALSE); if (pixel == NULL) return FALSE; *thumb = gdk_pixbuf_new_from_data(pixel, colorspace, has_alpha, bits_per_sample, width, height, rowstride, destroy_func(source), NULL); if (*thumb == NULL) { free_buffer(source, pixel); return FALSE; } return TRUE; } static gboolean read_thumb(struct coll_src *source, gchar ** hash_key, GdkPixbuf ** thumb) { gint has_thumb, hash_key_length; has_thumb = read_number(source); if (has_thumb == 0) return TRUE; if (has_thumb != 1) return FALSE; hash_key_length = read_number(source); if (hash_key_length <= 0) return FALSE; hash_key_length++; *hash_key = read_buffer(source, hash_key_length, TRUE); if (*hash_key == NULL) return FALSE; return read_pixbuf(source, thumb); } static tree_item *read_entry(struct coll_src *source) { tree_item *item; gint len; gchar *path, *hash_key = NULL; GdkPixbuf *thumb = NULL; if (check_magic(source, "") == FALSE) return NULL; len = read_number(source); if (len <= 0) return NULL; len++; path = read_buffer(source, len, TRUE); if (path == NULL) return NULL; if (read_thumb(source, &hash_key, &thumb) == FALSE) { free_buffer(source, path); return NULL; } if (check_magic(source, "") == FALSE) { free_buffer(source, path); free_buffer(source, hash_key); if (hash_key != NULL) g_object_unref(thumb); return NULL; } item = g_new(tree_item, 1); item->name = NULL; item->path = path; item->thumb_key = hash_key; item->thumb = thumb; return item; } #define CHECK_MAGIC(source, str) \ do { \ gboolean res = check_magic(source, str); \ if (res == FALSE) \ goto error; \ } while (0) static struct coll_src *build_source(FILE * file) { off_t length; struct coll_src *source = g_new(struct coll_src, 1); if (fseeko(file, 0, SEEK_END) < 0) goto no_mmap; length = ftello(file); if (length < 0) { perror("ftello"); goto no_mmap; } source->backend.mem.base = mmap(NULL, length, PROT_READ, MAP_PRIVATE, fileno(file), 0); if (source->backend.mem.base == MAP_FAILED) { perror("mmap"); goto no_mmap; } source->is_file = FALSE; source->backend.mem.ptr = source->backend.mem.base; source->backend.mem.end = source->backend.mem.base + length; goto ok; no_mmap: fseeko(file, 0, SEEK_SET); source->is_file = TRUE; source->backend.file = file; ok: return source; } static void destroy_source(struct coll_src *source, gboolean ok) { if (ok == FALSE && source->is_file == FALSE) if (munmap(source->backend.mem.base, source->backend.mem.end - source->backend.mem.base) < 0) perror("munmap"); } gint load_dot_gliv_from_file(const gchar * filename, FILE * file) { gint count, i = 0; tree_item **items = NULL; gchar **filenames = NULL; gboolean ok = TRUE, cancel = FALSE; gint nb_inserted = -1; struct coll_src *source; gboolean saved_force_load; source = build_source(file); CHECK_MAGIC(source, "GLiv "); CHECK_MAGIC(source, "1"); count = read_number(source); if (count < 0) goto error; if (rt) create_progress_dialog(filename, &cancel, FALSE); items = g_new(tree_item *, count); for (i = 0; i < count; i++) { tree_item *item; item = read_entry(source); if (item == NULL) goto error; items[i] = item; update_progress(item->path, i, count); if (cancel) { i++; nb_inserted = 0; goto error; } } CHECK_MAGIC(source, ""); update_progress(NULL, count - 1, count); nb_inserted = 0; filenames = g_new(gchar *, count); for (i = 0; i < count; i++) { if (items[i]->thumb_key != NULL) collection_add_thumbnail(items[i]->thumb_key, items[i]->thumb); filenames[i] = items[i]->path; } /* We don't want to stat() every file in the collection */ saved_force_load = options->force; options->force = TRUE; nb_inserted = insert_after_current(filenames, count, TRUE, FALSE); options->force = saved_force_load; goto ok; error: ok = FALSE; ok: while (i) { i--; free_buffer(source, items[i]->path); if (ok == FALSE && items[i]->thumb_key != NULL) { free_buffer(source, items[i]->thumb_key); g_object_unref(items[i]->thumb); } g_free(items[i]); } g_free(items); g_free(filenames); if (rt) destroy_progress_dialog(); destroy_source(source, ok); return nb_inserted; } gint load_dot_gliv(const gchar * filename) { FILE *file; FILE *tty; gint nb_inserted; loader_t loader; tty = get_terminal_output(); if (tty != NULL) { fprintf(tty, _("Loading collection: %s"), filename_to_utf8(filename)); putc('\n', tty); } loader = get_loader(filename); if (loader == LOADER_DECOMP_DOT_GLIV) nb_inserted = load_compressed_collection(filename); else { file = fopen(filename, "r"); if (file == NULL) { file_error(filename); return 0; } nb_inserted = load_dot_gliv_from_file(filename, file); fclose(file); } if (nb_inserted < 0) { if (rt) DIALOG_MSG(_("%s is not a GLiv collection"), filename_to_utf8(filename)); nb_inserted = 0; } return nb_inserted; } gboolean deserialize_collection(void) { gchar *filename; gint nb_inserted; filename = get_filename(_("Choose a collection to load"), FALSE); if (filename == NULL) return FALSE; nb_inserted = load_dot_gliv(filename); g_free(filename); if (nb_inserted <= 0) return FALSE; new_images(nb_inserted); return FALSE; } gliv-1.9.7/src/include/0000755000076400007640000000000011465576131012162 5ustar gggliv-1.9.7/src/include/files_list.h0000644000076400007640000000164011465576131014471 0ustar gg#ifndef FILES_LIST_H #define FILES_LIST_H #include "gliv.h" #include "gliv-image.h" #include "timestamp.h" gint get_list_length(void); GList *get_list_head(void); GList *get_list_end(void); void remove_from_list(GList * node); gboolean reorder_files(gboolean shuffle); gchar **get_sorted_files_array(void); gint init_from_null_filenames(gboolean sort, gboolean shuffle, gboolean add_all); gint init_list(gchar ** names, gint nb, gboolean sort, gboolean shuffle, gboolean add_all); gint insert_after_current(gchar ** names, gint nb, gboolean just_file, gboolean add_all); gboolean confirm_remove_current(void); timestamp_t get_list_timestamp(void); const gchar *get_nth_filename(gint n); gint get_image_number(GlivImage * im); GList *find_node_by_name(const gchar * name); void add_obsolete_node(GList *node); gboolean remove_obsolete_nodes(void); #endif gliv-1.9.7/src/include/mnemonics.h0000644000076400007640000000030311465576131014317 0ustar gg#ifndef MNEMONICS_H #define MNEMONICS_H #include "gliv.h" const gchar *add_mnemonic(const gchar * str); void reset_mnemonics(void); void push_mnemonics(void); void pop_mnemonics(void); #endif gliv-1.9.7/src/include/gettext.h0000644000076400007640000000661511465576131014027 0ustar gg/* Convenience header for conditional use of GNU . Copyright (C) 1995-1998, 2000-2002, 2004 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library 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. */ #ifndef _LIBGETTEXT_H #define _LIBGETTEXT_H 1 /* NLS can be disabled through the configure --disable-nls option. */ #if ENABLE_NLS /* Get declarations of GNU message catalog functions. */ # include #else /* Solaris /usr/include/locale.h includes /usr/include/libintl.h, which chokes if dcgettext is defined as a macro. So include it now, to make later inclusions of a NOP. We don't include as well because people using "gettext.h" will not include , and also including would fail on SunOS 4, whereas is OK. */ #if defined(__sun) # include #endif /* Many header files from the libstdc++ coming with g++ 3.3 or newer include , which chokes if dcgettext is defined as a macro. So include it now, to make later inclusions of a NOP. */ #if defined(__cplusplus) && defined(__GNUG__) && (__GNUC__ >= 3) # include # if (__GLIBC__ >= 2) || _GLIBCXX_HAVE_LIBINTL_H # include # endif #endif /* Disabled NLS. The casts to 'const char *' serve the purpose of producing warnings for invalid uses of the value returned from these functions. On pre-ANSI systems without 'const', the config.h file is supposed to contain "#define const". */ # define gettext(Msgid) ((const char *) (Msgid)) # define dgettext(Domainname, Msgid) ((const char *) (Msgid)) # define dcgettext(Domainname, Msgid, Category) ((const char *) (Msgid)) # define ngettext(Msgid1, Msgid2, N) \ ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2)) # define dngettext(Domainname, Msgid1, Msgid2, N) \ ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2)) # define dcngettext(Domainname, Msgid1, Msgid2, N, Category) \ ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2)) # define textdomain(Domainname) ((const char *) (Domainname)) # define bindtextdomain(Domainname, Dirname) ((const char *) (Dirname)) # define bind_textdomain_codeset(Domainname, Codeset) ((const char *) (Codeset)) #endif /* A pseudo function call that serves as a marker for the automated extraction of messages, but does not call gettext(). The run-time translation is done at a different place in the code. The argument, String, should be a literal string. Concatenated strings and other string expressions won't work. The macro's expansion is not parenthesized, so that it is suitable as initializer for static 'char[]' or 'const char[]' variables. */ #define gettext_noop(String) String #endif /* _LIBGETTEXT_H */ gliv-1.9.7/src/include/menus.h0000644000076400007640000000032111465576131013456 0ustar gg#ifndef MENUS_H #define MENUS_H #include "gliv.h" void set_menu_label(GtkMenuItem * item, const gchar * text, gboolean mnemonic); gboolean menu_set_top_left(void); GtkAccelGroup *create_menus(void); #endif gliv-1.9.7/src/include/loading.h0000644000076400007640000000104411465576131013747 0ustar gg#ifndef LOADING_H #define LOADING_H #include "gliv.h" #include "gliv-image.h" #include "formats.h" void start_quiet(void); void stop_quiet(void); const gchar *currently_loading(void); void install_segv_handler(void); void fill_ident(GlivImage * im); const gchar *get_extension(const gchar * filename); loader_t get_loader(const gchar * filename); void set_loading(const gchar * filename); gint pixels_size(GdkPixbuf * pixbuf); GlivImage *make_gliv_image(GdkPixbuf * pixbuf); GlivImage *load_file(const gchar * filename, GError ** error); #endif gliv-1.9.7/src/include/rcfile.h0000644000076400007640000000051111465576131013574 0ustar gg#ifndef RCFILE_H #define RCFILE_H #include "gliv.h" #include "options.h" options_struct *load_rc(gboolean default_file, const gchar * filename); void load_actions(void); void load_accelerators(void); void save_rc(options_struct * opt); const gchar *get_read_config_file(void); const gchar *get_write_config_file(void); #endif gliv-1.9.7/src/include/decompression.h0000644000076400007640000000032111465576131015201 0ustar gg#ifndef DECOMPRESSION_H #define DECOMPRESSION_H #include "gliv.h" GdkPixbuf *load_compressed_pixbuf(const gchar * filename, GError ** error); gint load_compressed_collection(const gchar * filename); #endif gliv-1.9.7/src/include/textures.h0000644000076400007640000000027011465576131014215 0ustar gg#ifndef TEXTURES_H #define TEXTURES_H #include "gliv.h" #include "gliv-image.h" void prioritize_textures(GlivImage * im, gboolean is_prio); void create_maps(GlivImage * im); #endif gliv-1.9.7/src/include/history.h0000644000076400007640000000025211465576131014033 0ustar gg#ifndef HISTORY_H #define HISTORY_H void clean_history(void); void append_history(void); gboolean undo(void); gboolean redo(void); gboolean clear_history(void); #endif gliv-1.9.7/src/include/strnatcmp.h0000644000076400007640000000224711465576131014353 0ustar gg/* -*- mode: c; c-file-style: "k&r" -*- strnatcmp.c -- Perform 'natural order' comparisons of strings in C. Copyright (C) 2000, 2004 by Martin Pool This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. */ /* Modified by Guillaume Chazarain in order to be integrated in GLiv */ #ifndef STRNATCMP_H #define STRNATCMP_H int strnatcmp(const char *a, const char *b); #endif gliv-1.9.7/src/include/ipc.h0000644000076400007640000000020311465576131013101 0ustar gg#ifndef IPC_H #define IPC_H #include "gliv.h" gboolean start_server(void); gboolean connect_server(gboolean clear_list); #endif gliv-1.9.7/src/include/about.h0000644000076400007640000000050611465576131013446 0ustar gg#ifndef ABOUT_H #define ABOUT_H #include "messages.h" #define ABOUT_GLIV N_("GLiv version") #define ABOUT_HELP N_("Use 'gliv --help' to show command line options.\nA quick help is accessible by typing 'h' or using the menu.") #define ABOUT_URL N_("See http://guichaz.free.fr/gliv for updates.") #endif gliv-1.9.7/src/include/dithering.h0000644000076400007640000000017311465576131014311 0ustar gg#ifndef DITHERING_H #define DITHERING_H #include "gliv.h" void dither_pixbuf(GdkPixbuf * dest, GdkPixbuf * src); #endif gliv-1.9.7/src/include/gliv.h0000644000076400007640000000015511465576131013275 0ustar gg#ifndef GLIV_H #define GLIV_H #include #ifdef HAVE_CONFIG_H #include "config.h" #endif #endif gliv-1.9.7/src/include/glade_image_nr.h0000644000076400007640000000014711465576131015252 0ustar gg/* * DO NOT EDIT THIS FILE - it is generated by Glade. */ GtkWidget* create_image_nr_dialog (void); gliv-1.9.7/src/include/images_menus.h0000644000076400007640000000074111465576131015011 0ustar gg#ifndef IMAGES_MENUS_H #define IMAGES_MENUS_H #include "gliv.h" GNode *get_tree(void); void set_rebuilding_entry(GtkMenuItem * item); void set_progress(const gchar * menu, gint * percent, gint number); gboolean rebuild_directories(GtkMenuItem * root); gboolean rebuild_images(GtkMenuItem * root); gboolean rebuild_images_menus(void); void stop_rebuilding(void); void set_stop_rebuilding_menu(GtkMenuItem * item); void obsolete_menus(void); void cond_rebuild_menus(void); #endif gliv-1.9.7/src/include/formats.h0000644000076400007640000000115011465576131014003 0ustar gg#ifndef FORMATS_H #define FORMATS_H #include "gliv.h" /* Loader according to filename extension. */ typedef enum { LOADER_NONE, /* Unrecognized extension. */ LOADER_PIXBUF, /* GdkPixbuf. */ LOADER_DOT_GLIV, /* GLiv collection. */ LOADER_DECOMP, /* Decompression first. */ LOADER_DECOMP_PIXBUF, /* Compressed image. */ LOADER_DECOMP_DOT_GLIV /* Compressed collection. */ } loader_t; struct format { const gchar *name; const loader_t loader; }; const struct format *ext_to_loader(const gchar * str, guint len); #endif gliv-1.9.7/src/include/tree.h0000644000076400007640000000115311465576131013272 0ustar gg#ifndef TREE_H #define TREE_H #include "gliv.h" #include "timestamp.h" typedef struct { gchar *name; /* Displayed name. */ gchar *path; /* Associated filename, 'const' on a leaf. */ gchar *thumb_key; /* Key for the hash-table. */ GdkPixbuf *thumb; /* Thumbnail. */ } tree_item; void end_using_tree(void); gboolean cancel_using_tree(void); gboolean canceled_using_tree(void); gboolean more_recent_than_tree(timestamp_t ts); GNode *make_tree(void); void destroy_tree(GNode * tree); gint tree_count_files(void); void invalidate_last_tree(void); #endif gliv-1.9.7/src/include/glade_actions.h0000644000076400007640000000022311465576131015124 0ustar gg/* * DO NOT EDIT THIS FILE - it is generated by Glade. */ GtkWidget* create_actions_dialog (void); GtkWidget* create_edit_action_dialog (void); gliv-1.9.7/src/include/opengl_wrapper.h0000644000076400007640000007320711465576131015370 0ustar gg/* Autogenerated by opengl_wrapper.awk */ #define glClearIndex(...) OPENGL_VOID_CALL(glClearIndex, __VA_ARGS__) #define glClearColor(...) OPENGL_VOID_CALL(glClearColor, __VA_ARGS__) #define glClear(...) OPENGL_VOID_CALL(glClear, __VA_ARGS__) #define glIndexMask(...) OPENGL_VOID_CALL(glIndexMask, __VA_ARGS__) #define glColorMask(...) OPENGL_VOID_CALL(glColorMask, __VA_ARGS__) #define glAlphaFunc(...) OPENGL_VOID_CALL(glAlphaFunc, __VA_ARGS__) #define glBlendFunc(...) OPENGL_VOID_CALL(glBlendFunc, __VA_ARGS__) #define glLogicOp(...) OPENGL_VOID_CALL(glLogicOp, __VA_ARGS__) #define glCullFace(...) OPENGL_VOID_CALL(glCullFace, __VA_ARGS__) #define glFrontFace(...) OPENGL_VOID_CALL(glFrontFace, __VA_ARGS__) #define glPointSize(...) OPENGL_VOID_CALL(glPointSize, __VA_ARGS__) #define glLineWidth(...) OPENGL_VOID_CALL(glLineWidth, __VA_ARGS__) #define glLineStipple(...) OPENGL_VOID_CALL(glLineStipple, __VA_ARGS__) #define glPolygonMode(...) OPENGL_VOID_CALL(glPolygonMode, __VA_ARGS__) #define glPolygonOffset(...) OPENGL_VOID_CALL(glPolygonOffset, __VA_ARGS__) #define glPolygonStipple(...) OPENGL_VOID_CALL(glPolygonStipple, __VA_ARGS__) #define glGetPolygonStipple(...) OPENGL_VOID_CALL(glGetPolygonStipple, __VA_ARGS__) #define glEdgeFlag(...) OPENGL_VOID_CALL(glEdgeFlag, __VA_ARGS__) #define glEdgeFlagv(...) OPENGL_VOID_CALL(glEdgeFlagv, __VA_ARGS__) #define glScissor(...) OPENGL_VOID_CALL(glScissor, __VA_ARGS__) #define glClipPlane(...) OPENGL_VOID_CALL(glClipPlane, __VA_ARGS__) #define glGetClipPlane(...) OPENGL_VOID_CALL(glGetClipPlane, __VA_ARGS__) #define glDrawBuffer(...) OPENGL_VOID_CALL(glDrawBuffer, __VA_ARGS__) #define glReadBuffer(...) OPENGL_VOID_CALL(glReadBuffer, __VA_ARGS__) #define glEnable(...) OPENGL_VOID_CALL(glEnable, __VA_ARGS__) #define glDisable(...) OPENGL_VOID_CALL(glDisable, __VA_ARGS__) #define glIsEnabled(...) OPENGL_CALL(GLboolean, glIsEnabled, __VA_ARGS__) #define glEnableClientState(...) OPENGL_VOID_CALL(glEnableClientState, __VA_ARGS__) #define glDisableClientState(...) OPENGL_VOID_CALL(glDisableClientState, __VA_ARGS__) #define glGetBooleanv(...) OPENGL_VOID_CALL(glGetBooleanv, __VA_ARGS__) #define glGetDoublev(...) OPENGL_VOID_CALL(glGetDoublev, __VA_ARGS__) #define glGetFloatv(...) OPENGL_VOID_CALL(glGetFloatv, __VA_ARGS__) #define glGetIntegerv(...) OPENGL_VOID_CALL(glGetIntegerv, __VA_ARGS__) #define glPushAttrib(...) OPENGL_VOID_CALL(glPushAttrib, __VA_ARGS__) #define glPopAttrib() OPENGL_VOID_CALL_VOID(glPopAttrib) #define glPushClientAttrib(...) OPENGL_VOID_CALL(glPushClientAttrib, __VA_ARGS__) #define glPopClientAttrib() OPENGL_VOID_CALL_VOID(glPopClientAttrib) #define glRenderMode(...) OPENGL_CALL(GLint, glRenderMode, __VA_ARGS__) #define glGetString(...) OPENGL_CALL(const GLubyte*, glGetString, __VA_ARGS__) #define glFinish() OPENGL_VOID_CALL_VOID(glFinish) #define glFlush() OPENGL_VOID_CALL_VOID(glFlush) #define glHint(...) OPENGL_VOID_CALL(glHint, __VA_ARGS__) #define glClearDepth(...) OPENGL_VOID_CALL(glClearDepth, __VA_ARGS__) #define glDepthFunc(...) OPENGL_VOID_CALL(glDepthFunc, __VA_ARGS__) #define glDepthMask(...) OPENGL_VOID_CALL(glDepthMask, __VA_ARGS__) #define glDepthRange(...) OPENGL_VOID_CALL(glDepthRange, __VA_ARGS__) #define glClearAccum(...) OPENGL_VOID_CALL(glClearAccum, __VA_ARGS__) #define glAccum(...) OPENGL_VOID_CALL(glAccum, __VA_ARGS__) #define glMatrixMode(...) OPENGL_VOID_CALL(glMatrixMode, __VA_ARGS__) #define glOrtho(...) OPENGL_VOID_CALL(glOrtho, __VA_ARGS__) #define glFrustum(...) OPENGL_VOID_CALL(glFrustum, __VA_ARGS__) #define glViewport(...) OPENGL_VOID_CALL(glViewport, __VA_ARGS__) #define glPushMatrix() OPENGL_VOID_CALL_VOID(glPushMatrix) #define glPopMatrix() OPENGL_VOID_CALL_VOID(glPopMatrix) #define glLoadIdentity() OPENGL_VOID_CALL_VOID(glLoadIdentity) #define glLoadMatrixd(...) OPENGL_VOID_CALL(glLoadMatrixd, __VA_ARGS__) #define glLoadMatrixf(...) OPENGL_VOID_CALL(glLoadMatrixf, __VA_ARGS__) #define glMultMatrixd(...) OPENGL_VOID_CALL(glMultMatrixd, __VA_ARGS__) #define glMultMatrixf(...) OPENGL_VOID_CALL(glMultMatrixf, __VA_ARGS__) #define glRotated(...) OPENGL_VOID_CALL(glRotated, __VA_ARGS__) #define glRotatef(...) OPENGL_VOID_CALL(glRotatef, __VA_ARGS__) #define glScaled(...) OPENGL_VOID_CALL(glScaled, __VA_ARGS__) #define glScalef(...) OPENGL_VOID_CALL(glScalef, __VA_ARGS__) #define glTranslated(...) OPENGL_VOID_CALL(glTranslated, __VA_ARGS__) #define glTranslatef(...) OPENGL_VOID_CALL(glTranslatef, __VA_ARGS__) #define glIsList(...) OPENGL_CALL(GLboolean, glIsList, __VA_ARGS__) #define glDeleteLists(...) OPENGL_VOID_CALL(glDeleteLists, __VA_ARGS__) #define glGenLists(...) OPENGL_CALL(GLuint, glGenLists, __VA_ARGS__) #define glNewList(...) OPENGL_VOID_CALL(glNewList, __VA_ARGS__) #define glEndList() OPENGL_VOID_CALL_VOID(glEndList) #define glCallList(...) OPENGL_VOID_CALL(glCallList, __VA_ARGS__) #define glCallLists(...) OPENGL_VOID_CALL(glCallLists, __VA_ARGS__) #define glListBase(...) OPENGL_VOID_CALL(glListBase, __VA_ARGS__) #define glVertex2d(...) OPENGL_VOID_CALL(glVertex2d, __VA_ARGS__) #define glVertex2f(...) OPENGL_VOID_CALL(glVertex2f, __VA_ARGS__) #define glVertex2i(...) OPENGL_VOID_CALL(glVertex2i, __VA_ARGS__) #define glVertex2s(...) OPENGL_VOID_CALL(glVertex2s, __VA_ARGS__) #define glVertex3d(...) OPENGL_VOID_CALL(glVertex3d, __VA_ARGS__) #define glVertex3f(...) OPENGL_VOID_CALL(glVertex3f, __VA_ARGS__) #define glVertex3i(...) OPENGL_VOID_CALL(glVertex3i, __VA_ARGS__) #define glVertex3s(...) OPENGL_VOID_CALL(glVertex3s, __VA_ARGS__) #define glVertex4d(...) OPENGL_VOID_CALL(glVertex4d, __VA_ARGS__) #define glVertex4f(...) OPENGL_VOID_CALL(glVertex4f, __VA_ARGS__) #define glVertex4i(...) OPENGL_VOID_CALL(glVertex4i, __VA_ARGS__) #define glVertex4s(...) OPENGL_VOID_CALL(glVertex4s, __VA_ARGS__) #define glVertex2dv(...) OPENGL_VOID_CALL(glVertex2dv, __VA_ARGS__) #define glVertex2fv(...) OPENGL_VOID_CALL(glVertex2fv, __VA_ARGS__) #define glVertex2iv(...) OPENGL_VOID_CALL(glVertex2iv, __VA_ARGS__) #define glVertex2sv(...) OPENGL_VOID_CALL(glVertex2sv, __VA_ARGS__) #define glVertex3dv(...) OPENGL_VOID_CALL(glVertex3dv, __VA_ARGS__) #define glVertex3fv(...) OPENGL_VOID_CALL(glVertex3fv, __VA_ARGS__) #define glVertex3iv(...) OPENGL_VOID_CALL(glVertex3iv, __VA_ARGS__) #define glVertex3sv(...) OPENGL_VOID_CALL(glVertex3sv, __VA_ARGS__) #define glVertex4dv(...) OPENGL_VOID_CALL(glVertex4dv, __VA_ARGS__) #define glVertex4fv(...) OPENGL_VOID_CALL(glVertex4fv, __VA_ARGS__) #define glVertex4iv(...) OPENGL_VOID_CALL(glVertex4iv, __VA_ARGS__) #define glVertex4sv(...) OPENGL_VOID_CALL(glVertex4sv, __VA_ARGS__) #define glNormal3b(...) OPENGL_VOID_CALL(glNormal3b, __VA_ARGS__) #define glNormal3d(...) OPENGL_VOID_CALL(glNormal3d, __VA_ARGS__) #define glNormal3f(...) OPENGL_VOID_CALL(glNormal3f, __VA_ARGS__) #define glNormal3i(...) OPENGL_VOID_CALL(glNormal3i, __VA_ARGS__) #define glNormal3s(...) OPENGL_VOID_CALL(glNormal3s, __VA_ARGS__) #define glNormal3bv(...) OPENGL_VOID_CALL(glNormal3bv, __VA_ARGS__) #define glNormal3dv(...) OPENGL_VOID_CALL(glNormal3dv, __VA_ARGS__) #define glNormal3fv(...) OPENGL_VOID_CALL(glNormal3fv, __VA_ARGS__) #define glNormal3iv(...) OPENGL_VOID_CALL(glNormal3iv, __VA_ARGS__) #define glNormal3sv(...) OPENGL_VOID_CALL(glNormal3sv, __VA_ARGS__) #define glIndexd(...) OPENGL_VOID_CALL(glIndexd, __VA_ARGS__) #define glIndexf(...) OPENGL_VOID_CALL(glIndexf, __VA_ARGS__) #define glIndexi(...) OPENGL_VOID_CALL(glIndexi, __VA_ARGS__) #define glIndexs(...) OPENGL_VOID_CALL(glIndexs, __VA_ARGS__) #define glIndexub(...) OPENGL_VOID_CALL(glIndexub, __VA_ARGS__) #define glIndexdv(...) OPENGL_VOID_CALL(glIndexdv, __VA_ARGS__) #define glIndexfv(...) OPENGL_VOID_CALL(glIndexfv, __VA_ARGS__) #define glIndexiv(...) OPENGL_VOID_CALL(glIndexiv, __VA_ARGS__) #define glIndexsv(...) OPENGL_VOID_CALL(glIndexsv, __VA_ARGS__) #define glIndexubv(...) OPENGL_VOID_CALL(glIndexubv, __VA_ARGS__) #define glColor3b(...) OPENGL_VOID_CALL(glColor3b, __VA_ARGS__) #define glColor3d(...) OPENGL_VOID_CALL(glColor3d, __VA_ARGS__) #define glColor3f(...) OPENGL_VOID_CALL(glColor3f, __VA_ARGS__) #define glColor3i(...) OPENGL_VOID_CALL(glColor3i, __VA_ARGS__) #define glColor3s(...) OPENGL_VOID_CALL(glColor3s, __VA_ARGS__) #define glColor3ub(...) OPENGL_VOID_CALL(glColor3ub, __VA_ARGS__) #define glColor3ui(...) OPENGL_VOID_CALL(glColor3ui, __VA_ARGS__) #define glColor3us(...) OPENGL_VOID_CALL(glColor3us, __VA_ARGS__) #define glColor4b(...) OPENGL_VOID_CALL(glColor4b, __VA_ARGS__) #define glColor4d(...) OPENGL_VOID_CALL(glColor4d, __VA_ARGS__) #define glColor4f(...) OPENGL_VOID_CALL(glColor4f, __VA_ARGS__) #define glColor4i(...) OPENGL_VOID_CALL(glColor4i, __VA_ARGS__) #define glColor4s(...) OPENGL_VOID_CALL(glColor4s, __VA_ARGS__) #define glColor4ub(...) OPENGL_VOID_CALL(glColor4ub, __VA_ARGS__) #define glColor4ui(...) OPENGL_VOID_CALL(glColor4ui, __VA_ARGS__) #define glColor4us(...) OPENGL_VOID_CALL(glColor4us, __VA_ARGS__) #define glColor3bv(...) OPENGL_VOID_CALL(glColor3bv, __VA_ARGS__) #define glColor3dv(...) OPENGL_VOID_CALL(glColor3dv, __VA_ARGS__) #define glColor3fv(...) OPENGL_VOID_CALL(glColor3fv, __VA_ARGS__) #define glColor3iv(...) OPENGL_VOID_CALL(glColor3iv, __VA_ARGS__) #define glColor3sv(...) OPENGL_VOID_CALL(glColor3sv, __VA_ARGS__) #define glColor3ubv(...) OPENGL_VOID_CALL(glColor3ubv, __VA_ARGS__) #define glColor3uiv(...) OPENGL_VOID_CALL(glColor3uiv, __VA_ARGS__) #define glColor3usv(...) OPENGL_VOID_CALL(glColor3usv, __VA_ARGS__) #define glColor4bv(...) OPENGL_VOID_CALL(glColor4bv, __VA_ARGS__) #define glColor4dv(...) OPENGL_VOID_CALL(glColor4dv, __VA_ARGS__) #define glColor4fv(...) OPENGL_VOID_CALL(glColor4fv, __VA_ARGS__) #define glColor4iv(...) OPENGL_VOID_CALL(glColor4iv, __VA_ARGS__) #define glColor4sv(...) OPENGL_VOID_CALL(glColor4sv, __VA_ARGS__) #define glColor4ubv(...) OPENGL_VOID_CALL(glColor4ubv, __VA_ARGS__) #define glColor4uiv(...) OPENGL_VOID_CALL(glColor4uiv, __VA_ARGS__) #define glColor4usv(...) OPENGL_VOID_CALL(glColor4usv, __VA_ARGS__) #define glTexCoord1d(...) OPENGL_VOID_CALL(glTexCoord1d, __VA_ARGS__) #define glTexCoord1f(...) OPENGL_VOID_CALL(glTexCoord1f, __VA_ARGS__) #define glTexCoord1i(...) OPENGL_VOID_CALL(glTexCoord1i, __VA_ARGS__) #define glTexCoord1s(...) OPENGL_VOID_CALL(glTexCoord1s, __VA_ARGS__) #define glTexCoord2d(...) OPENGL_VOID_CALL(glTexCoord2d, __VA_ARGS__) #define glTexCoord2f(...) OPENGL_VOID_CALL(glTexCoord2f, __VA_ARGS__) #define glTexCoord2i(...) OPENGL_VOID_CALL(glTexCoord2i, __VA_ARGS__) #define glTexCoord2s(...) OPENGL_VOID_CALL(glTexCoord2s, __VA_ARGS__) #define glTexCoord3d(...) OPENGL_VOID_CALL(glTexCoord3d, __VA_ARGS__) #define glTexCoord3f(...) OPENGL_VOID_CALL(glTexCoord3f, __VA_ARGS__) #define glTexCoord3i(...) OPENGL_VOID_CALL(glTexCoord3i, __VA_ARGS__) #define glTexCoord3s(...) OPENGL_VOID_CALL(glTexCoord3s, __VA_ARGS__) #define glTexCoord4d(...) OPENGL_VOID_CALL(glTexCoord4d, __VA_ARGS__) #define glTexCoord4f(...) OPENGL_VOID_CALL(glTexCoord4f, __VA_ARGS__) #define glTexCoord4i(...) OPENGL_VOID_CALL(glTexCoord4i, __VA_ARGS__) #define glTexCoord4s(...) OPENGL_VOID_CALL(glTexCoord4s, __VA_ARGS__) #define glTexCoord1dv(...) OPENGL_VOID_CALL(glTexCoord1dv, __VA_ARGS__) #define glTexCoord1fv(...) OPENGL_VOID_CALL(glTexCoord1fv, __VA_ARGS__) #define glTexCoord1iv(...) OPENGL_VOID_CALL(glTexCoord1iv, __VA_ARGS__) #define glTexCoord1sv(...) OPENGL_VOID_CALL(glTexCoord1sv, __VA_ARGS__) #define glTexCoord2dv(...) OPENGL_VOID_CALL(glTexCoord2dv, __VA_ARGS__) #define glTexCoord2fv(...) OPENGL_VOID_CALL(glTexCoord2fv, __VA_ARGS__) #define glTexCoord2iv(...) OPENGL_VOID_CALL(glTexCoord2iv, __VA_ARGS__) #define glTexCoord2sv(...) OPENGL_VOID_CALL(glTexCoord2sv, __VA_ARGS__) #define glTexCoord3dv(...) OPENGL_VOID_CALL(glTexCoord3dv, __VA_ARGS__) #define glTexCoord3fv(...) OPENGL_VOID_CALL(glTexCoord3fv, __VA_ARGS__) #define glTexCoord3iv(...) OPENGL_VOID_CALL(glTexCoord3iv, __VA_ARGS__) #define glTexCoord3sv(...) OPENGL_VOID_CALL(glTexCoord3sv, __VA_ARGS__) #define glTexCoord4dv(...) OPENGL_VOID_CALL(glTexCoord4dv, __VA_ARGS__) #define glTexCoord4fv(...) OPENGL_VOID_CALL(glTexCoord4fv, __VA_ARGS__) #define glTexCoord4iv(...) OPENGL_VOID_CALL(glTexCoord4iv, __VA_ARGS__) #define glTexCoord4sv(...) OPENGL_VOID_CALL(glTexCoord4sv, __VA_ARGS__) #define glRasterPos2d(...) OPENGL_VOID_CALL(glRasterPos2d, __VA_ARGS__) #define glRasterPos2f(...) OPENGL_VOID_CALL(glRasterPos2f, __VA_ARGS__) #define glRasterPos2i(...) OPENGL_VOID_CALL(glRasterPos2i, __VA_ARGS__) #define glRasterPos2s(...) OPENGL_VOID_CALL(glRasterPos2s, __VA_ARGS__) #define glRasterPos3d(...) OPENGL_VOID_CALL(glRasterPos3d, __VA_ARGS__) #define glRasterPos3f(...) OPENGL_VOID_CALL(glRasterPos3f, __VA_ARGS__) #define glRasterPos3i(...) OPENGL_VOID_CALL(glRasterPos3i, __VA_ARGS__) #define glRasterPos3s(...) OPENGL_VOID_CALL(glRasterPos3s, __VA_ARGS__) #define glRasterPos4d(...) OPENGL_VOID_CALL(glRasterPos4d, __VA_ARGS__) #define glRasterPos4f(...) OPENGL_VOID_CALL(glRasterPos4f, __VA_ARGS__) #define glRasterPos4i(...) OPENGL_VOID_CALL(glRasterPos4i, __VA_ARGS__) #define glRasterPos4s(...) OPENGL_VOID_CALL(glRasterPos4s, __VA_ARGS__) #define glRasterPos2dv(...) OPENGL_VOID_CALL(glRasterPos2dv, __VA_ARGS__) #define glRasterPos2fv(...) OPENGL_VOID_CALL(glRasterPos2fv, __VA_ARGS__) #define glRasterPos2iv(...) OPENGL_VOID_CALL(glRasterPos2iv, __VA_ARGS__) #define glRasterPos2sv(...) OPENGL_VOID_CALL(glRasterPos2sv, __VA_ARGS__) #define glRasterPos3dv(...) OPENGL_VOID_CALL(glRasterPos3dv, __VA_ARGS__) #define glRasterPos3fv(...) OPENGL_VOID_CALL(glRasterPos3fv, __VA_ARGS__) #define glRasterPos3iv(...) OPENGL_VOID_CALL(glRasterPos3iv, __VA_ARGS__) #define glRasterPos3sv(...) OPENGL_VOID_CALL(glRasterPos3sv, __VA_ARGS__) #define glRasterPos4dv(...) OPENGL_VOID_CALL(glRasterPos4dv, __VA_ARGS__) #define glRasterPos4fv(...) OPENGL_VOID_CALL(glRasterPos4fv, __VA_ARGS__) #define glRasterPos4iv(...) OPENGL_VOID_CALL(glRasterPos4iv, __VA_ARGS__) #define glRasterPos4sv(...) OPENGL_VOID_CALL(glRasterPos4sv, __VA_ARGS__) #define glRectd(...) OPENGL_VOID_CALL(glRectd, __VA_ARGS__) #define glRectf(...) OPENGL_VOID_CALL(glRectf, __VA_ARGS__) #define glRecti(...) OPENGL_VOID_CALL(glRecti, __VA_ARGS__) #define glRects(...) OPENGL_VOID_CALL(glRects, __VA_ARGS__) #define glRectdv(...) OPENGL_VOID_CALL(glRectdv, __VA_ARGS__) #define glRectfv(...) OPENGL_VOID_CALL(glRectfv, __VA_ARGS__) #define glRectiv(...) OPENGL_VOID_CALL(glRectiv, __VA_ARGS__) #define glRectsv(...) OPENGL_VOID_CALL(glRectsv, __VA_ARGS__) #define glVertexPointer(...) OPENGL_VOID_CALL(glVertexPointer, __VA_ARGS__) #define glNormalPointer(...) OPENGL_VOID_CALL(glNormalPointer, __VA_ARGS__) #define glColorPointer(...) OPENGL_VOID_CALL(glColorPointer, __VA_ARGS__) #define glIndexPointer(...) OPENGL_VOID_CALL(glIndexPointer, __VA_ARGS__) #define glTexCoordPointer(...) OPENGL_VOID_CALL(glTexCoordPointer, __VA_ARGS__) #define glEdgeFlagPointer(...) OPENGL_VOID_CALL(glEdgeFlagPointer, __VA_ARGS__) #define glGetPointerv(...) OPENGL_VOID_CALL(glGetPointerv, __VA_ARGS__) #define glArrayElement(...) OPENGL_VOID_CALL(glArrayElement, __VA_ARGS__) #define glDrawArrays(...) OPENGL_VOID_CALL(glDrawArrays, __VA_ARGS__) #define glDrawElements(...) OPENGL_VOID_CALL(glDrawElements, __VA_ARGS__) #define glInterleavedArrays(...) OPENGL_VOID_CALL(glInterleavedArrays, __VA_ARGS__) #define glShadeModel(...) OPENGL_VOID_CALL(glShadeModel, __VA_ARGS__) #define glLightf(...) OPENGL_VOID_CALL(glLightf, __VA_ARGS__) #define glLighti(...) OPENGL_VOID_CALL(glLighti, __VA_ARGS__) #define glLightfv(...) OPENGL_VOID_CALL(glLightfv, __VA_ARGS__) #define glLightiv(...) OPENGL_VOID_CALL(glLightiv, __VA_ARGS__) #define glGetLightfv(...) OPENGL_VOID_CALL(glGetLightfv, __VA_ARGS__) #define glGetLightiv(...) OPENGL_VOID_CALL(glGetLightiv, __VA_ARGS__) #define glLightModelf(...) OPENGL_VOID_CALL(glLightModelf, __VA_ARGS__) #define glLightModeli(...) OPENGL_VOID_CALL(glLightModeli, __VA_ARGS__) #define glLightModelfv(...) OPENGL_VOID_CALL(glLightModelfv, __VA_ARGS__) #define glLightModeliv(...) OPENGL_VOID_CALL(glLightModeliv, __VA_ARGS__) #define glMaterialf(...) OPENGL_VOID_CALL(glMaterialf, __VA_ARGS__) #define glMateriali(...) OPENGL_VOID_CALL(glMateriali, __VA_ARGS__) #define glMaterialfv(...) OPENGL_VOID_CALL(glMaterialfv, __VA_ARGS__) #define glMaterialiv(...) OPENGL_VOID_CALL(glMaterialiv, __VA_ARGS__) #define glGetMaterialfv(...) OPENGL_VOID_CALL(glGetMaterialfv, __VA_ARGS__) #define glGetMaterialiv(...) OPENGL_VOID_CALL(glGetMaterialiv, __VA_ARGS__) #define glColorMaterial(...) OPENGL_VOID_CALL(glColorMaterial, __VA_ARGS__) #define glPixelZoom(...) OPENGL_VOID_CALL(glPixelZoom, __VA_ARGS__) #define glPixelStoref(...) OPENGL_VOID_CALL(glPixelStoref, __VA_ARGS__) #define glPixelStorei(...) OPENGL_VOID_CALL(glPixelStorei, __VA_ARGS__) #define glPixelTransferf(...) OPENGL_VOID_CALL(glPixelTransferf, __VA_ARGS__) #define glPixelTransferi(...) OPENGL_VOID_CALL(glPixelTransferi, __VA_ARGS__) #define glPixelMapfv(...) OPENGL_VOID_CALL(glPixelMapfv, __VA_ARGS__) #define glPixelMapuiv(...) OPENGL_VOID_CALL(glPixelMapuiv, __VA_ARGS__) #define glPixelMapusv(...) OPENGL_VOID_CALL(glPixelMapusv, __VA_ARGS__) #define glGetPixelMapfv(...) OPENGL_VOID_CALL(glGetPixelMapfv, __VA_ARGS__) #define glGetPixelMapuiv(...) OPENGL_VOID_CALL(glGetPixelMapuiv, __VA_ARGS__) #define glGetPixelMapusv(...) OPENGL_VOID_CALL(glGetPixelMapusv, __VA_ARGS__) #define glBitmap(...) OPENGL_VOID_CALL(glBitmap, __VA_ARGS__) #define glReadPixels(...) OPENGL_VOID_CALL(glReadPixels, __VA_ARGS__) #define glDrawPixels(...) OPENGL_VOID_CALL(glDrawPixels, __VA_ARGS__) #define glCopyPixels(...) OPENGL_VOID_CALL(glCopyPixels, __VA_ARGS__) #define glStencilFunc(...) OPENGL_VOID_CALL(glStencilFunc, __VA_ARGS__) #define glStencilMask(...) OPENGL_VOID_CALL(glStencilMask, __VA_ARGS__) #define glStencilOp(...) OPENGL_VOID_CALL(glStencilOp, __VA_ARGS__) #define glClearStencil(...) OPENGL_VOID_CALL(glClearStencil, __VA_ARGS__) #define glTexGend(...) OPENGL_VOID_CALL(glTexGend, __VA_ARGS__) #define glTexGenf(...) OPENGL_VOID_CALL(glTexGenf, __VA_ARGS__) #define glTexGeni(...) OPENGL_VOID_CALL(glTexGeni, __VA_ARGS__) #define glTexGendv(...) OPENGL_VOID_CALL(glTexGendv, __VA_ARGS__) #define glTexGenfv(...) OPENGL_VOID_CALL(glTexGenfv, __VA_ARGS__) #define glTexGeniv(...) OPENGL_VOID_CALL(glTexGeniv, __VA_ARGS__) #define glGetTexGendv(...) OPENGL_VOID_CALL(glGetTexGendv, __VA_ARGS__) #define glGetTexGenfv(...) OPENGL_VOID_CALL(glGetTexGenfv, __VA_ARGS__) #define glGetTexGeniv(...) OPENGL_VOID_CALL(glGetTexGeniv, __VA_ARGS__) #define glTexEnvf(...) OPENGL_VOID_CALL(glTexEnvf, __VA_ARGS__) #define glTexEnvi(...) OPENGL_VOID_CALL(glTexEnvi, __VA_ARGS__) #define glTexEnvfv(...) OPENGL_VOID_CALL(glTexEnvfv, __VA_ARGS__) #define glTexEnviv(...) OPENGL_VOID_CALL(glTexEnviv, __VA_ARGS__) #define glGetTexEnvfv(...) OPENGL_VOID_CALL(glGetTexEnvfv, __VA_ARGS__) #define glGetTexEnviv(...) OPENGL_VOID_CALL(glGetTexEnviv, __VA_ARGS__) #define glTexParameterf(...) OPENGL_VOID_CALL(glTexParameterf, __VA_ARGS__) #define glTexParameteri(...) OPENGL_VOID_CALL(glTexParameteri, __VA_ARGS__) #define glTexParameterfv(...) OPENGL_VOID_CALL(glTexParameterfv, __VA_ARGS__) #define glTexParameteriv(...) OPENGL_VOID_CALL(glTexParameteriv, __VA_ARGS__) #define glGetTexParameterfv(...) OPENGL_VOID_CALL(glGetTexParameterfv, __VA_ARGS__) #define glGetTexParameteriv(...) OPENGL_VOID_CALL(glGetTexParameteriv, __VA_ARGS__) #define glGetTexLevelParameterfv(...) OPENGL_VOID_CALL(glGetTexLevelParameterfv, __VA_ARGS__) #define glGetTexLevelParameteriv(...) OPENGL_VOID_CALL(glGetTexLevelParameteriv, __VA_ARGS__) #define glTexImage1D(...) OPENGL_VOID_CALL(glTexImage1D, __VA_ARGS__) #define glTexImage2D(...) OPENGL_VOID_CALL(glTexImage2D, __VA_ARGS__) #define glGetTexImage(...) OPENGL_VOID_CALL(glGetTexImage, __VA_ARGS__) #define glGenTextures(...) OPENGL_VOID_CALL(glGenTextures, __VA_ARGS__) #define glDeleteTextures(...) OPENGL_VOID_CALL(glDeleteTextures, __VA_ARGS__) #define glBindTexture(...) OPENGL_VOID_CALL(glBindTexture, __VA_ARGS__) #define glPrioritizeTextures(...) OPENGL_VOID_CALL(glPrioritizeTextures, __VA_ARGS__) #define glAreTexturesResident(...) OPENGL_CALL(GLboolean, glAreTexturesResident, __VA_ARGS__) #define glIsTexture(...) OPENGL_CALL(GLboolean, glIsTexture, __VA_ARGS__) #define glTexSubImage1D(...) OPENGL_VOID_CALL(glTexSubImage1D, __VA_ARGS__) #define glTexSubImage2D(...) OPENGL_VOID_CALL(glTexSubImage2D, __VA_ARGS__) #define glCopyTexImage1D(...) OPENGL_VOID_CALL(glCopyTexImage1D, __VA_ARGS__) #define glCopyTexImage2D(...) OPENGL_VOID_CALL(glCopyTexImage2D, __VA_ARGS__) #define glCopyTexSubImage1D(...) OPENGL_VOID_CALL(glCopyTexSubImage1D, __VA_ARGS__) #define glCopyTexSubImage2D(...) OPENGL_VOID_CALL(glCopyTexSubImage2D, __VA_ARGS__) #define glMap1d(...) OPENGL_VOID_CALL(glMap1d, __VA_ARGS__) #define glMap1f(...) OPENGL_VOID_CALL(glMap1f, __VA_ARGS__) #define glMap2d(...) OPENGL_VOID_CALL(glMap2d, __VA_ARGS__) #define glMap2f(...) OPENGL_VOID_CALL(glMap2f, __VA_ARGS__) #define glGetMapdv(...) OPENGL_VOID_CALL(glGetMapdv, __VA_ARGS__) #define glGetMapfv(...) OPENGL_VOID_CALL(glGetMapfv, __VA_ARGS__) #define glGetMapiv(...) OPENGL_VOID_CALL(glGetMapiv, __VA_ARGS__) #define glEvalCoord1d(...) OPENGL_VOID_CALL(glEvalCoord1d, __VA_ARGS__) #define glEvalCoord1f(...) OPENGL_VOID_CALL(glEvalCoord1f, __VA_ARGS__) #define glEvalCoord1dv(...) OPENGL_VOID_CALL(glEvalCoord1dv, __VA_ARGS__) #define glEvalCoord1fv(...) OPENGL_VOID_CALL(glEvalCoord1fv, __VA_ARGS__) #define glEvalCoord2d(...) OPENGL_VOID_CALL(glEvalCoord2d, __VA_ARGS__) #define glEvalCoord2f(...) OPENGL_VOID_CALL(glEvalCoord2f, __VA_ARGS__) #define glEvalCoord2dv(...) OPENGL_VOID_CALL(glEvalCoord2dv, __VA_ARGS__) #define glEvalCoord2fv(...) OPENGL_VOID_CALL(glEvalCoord2fv, __VA_ARGS__) #define glMapGrid1d(...) OPENGL_VOID_CALL(glMapGrid1d, __VA_ARGS__) #define glMapGrid1f(...) OPENGL_VOID_CALL(glMapGrid1f, __VA_ARGS__) #define glMapGrid2d(...) OPENGL_VOID_CALL(glMapGrid2d, __VA_ARGS__) #define glMapGrid2f(...) OPENGL_VOID_CALL(glMapGrid2f, __VA_ARGS__) #define glEvalPoint1(...) OPENGL_VOID_CALL(glEvalPoint1, __VA_ARGS__) #define glEvalPoint2(...) OPENGL_VOID_CALL(glEvalPoint2, __VA_ARGS__) #define glEvalMesh1(...) OPENGL_VOID_CALL(glEvalMesh1, __VA_ARGS__) #define glEvalMesh2(...) OPENGL_VOID_CALL(glEvalMesh2, __VA_ARGS__) #define glFogf(...) OPENGL_VOID_CALL(glFogf, __VA_ARGS__) #define glFogi(...) OPENGL_VOID_CALL(glFogi, __VA_ARGS__) #define glFogfv(...) OPENGL_VOID_CALL(glFogfv, __VA_ARGS__) #define glFogiv(...) OPENGL_VOID_CALL(glFogiv, __VA_ARGS__) #define glFeedbackBuffer(...) OPENGL_VOID_CALL(glFeedbackBuffer, __VA_ARGS__) #define glPassThrough(...) OPENGL_VOID_CALL(glPassThrough, __VA_ARGS__) #define glSelectBuffer(...) OPENGL_VOID_CALL(glSelectBuffer, __VA_ARGS__) #define glInitNames() OPENGL_VOID_CALL_VOID(glInitNames) #define glLoadName(...) OPENGL_VOID_CALL(glLoadName, __VA_ARGS__) #define glPushName(...) OPENGL_VOID_CALL(glPushName, __VA_ARGS__) #define glPopName() OPENGL_VOID_CALL_VOID(glPopName) #define glDrawRangeElements(...) OPENGL_VOID_CALL(glDrawRangeElements, __VA_ARGS__) #define glTexImage3D(...) OPENGL_VOID_CALL(glTexImage3D, __VA_ARGS__) #define glTexSubImage3D(...) OPENGL_VOID_CALL(glTexSubImage3D, __VA_ARGS__) #define glCopyTexSubImage3D(...) OPENGL_VOID_CALL(glCopyTexSubImage3D, __VA_ARGS__) #define glColorTable(...) OPENGL_VOID_CALL(glColorTable, __VA_ARGS__) #define glColorSubTable(...) OPENGL_VOID_CALL(glColorSubTable, __VA_ARGS__) #define glColorTableParameteriv(...) OPENGL_VOID_CALL(glColorTableParameteriv, __VA_ARGS__) #define glColorTableParameterfv(...) OPENGL_VOID_CALL(glColorTableParameterfv, __VA_ARGS__) #define glCopyColorSubTable(...) OPENGL_VOID_CALL(glCopyColorSubTable, __VA_ARGS__) #define glCopyColorTable(...) OPENGL_VOID_CALL(glCopyColorTable, __VA_ARGS__) #define glGetColorTable(...) OPENGL_VOID_CALL(glGetColorTable, __VA_ARGS__) #define glGetColorTableParameterfv(...) OPENGL_VOID_CALL(glGetColorTableParameterfv, __VA_ARGS__) #define glGetColorTableParameteriv(...) OPENGL_VOID_CALL(glGetColorTableParameteriv, __VA_ARGS__) #define glBlendEquation(...) OPENGL_VOID_CALL(glBlendEquation, __VA_ARGS__) #define glBlendColor(...) OPENGL_VOID_CALL(glBlendColor, __VA_ARGS__) #define glHistogram(...) OPENGL_VOID_CALL(glHistogram, __VA_ARGS__) #define glResetHistogram(...) OPENGL_VOID_CALL(glResetHistogram, __VA_ARGS__) #define glGetHistogram(...) OPENGL_VOID_CALL(glGetHistogram, __VA_ARGS__) #define glGetHistogramParameterfv(...) OPENGL_VOID_CALL(glGetHistogramParameterfv, __VA_ARGS__) #define glGetHistogramParameteriv(...) OPENGL_VOID_CALL(glGetHistogramParameteriv, __VA_ARGS__) #define glMinmax(...) OPENGL_VOID_CALL(glMinmax, __VA_ARGS__) #define glResetMinmax(...) OPENGL_VOID_CALL(glResetMinmax, __VA_ARGS__) #define glGetMinmax(...) OPENGL_VOID_CALL(glGetMinmax, __VA_ARGS__) #define glGetMinmaxParameterfv(...) OPENGL_VOID_CALL(glGetMinmaxParameterfv, __VA_ARGS__) #define glGetMinmaxParameteriv(...) OPENGL_VOID_CALL(glGetMinmaxParameteriv, __VA_ARGS__) #define glConvolutionFilter1D(...) OPENGL_VOID_CALL(glConvolutionFilter1D, __VA_ARGS__) #define glConvolutionFilter2D(...) OPENGL_VOID_CALL(glConvolutionFilter2D, __VA_ARGS__) #define glConvolutionParameterf(...) OPENGL_VOID_CALL(glConvolutionParameterf, __VA_ARGS__) #define glConvolutionParameterfv(...) OPENGL_VOID_CALL(glConvolutionParameterfv, __VA_ARGS__) #define glConvolutionParameteri(...) OPENGL_VOID_CALL(glConvolutionParameteri, __VA_ARGS__) #define glConvolutionParameteriv(...) OPENGL_VOID_CALL(glConvolutionParameteriv, __VA_ARGS__) #define glCopyConvolutionFilter1D(...) OPENGL_VOID_CALL(glCopyConvolutionFilter1D, __VA_ARGS__) #define glCopyConvolutionFilter2D(...) OPENGL_VOID_CALL(glCopyConvolutionFilter2D, __VA_ARGS__) #define glGetConvolutionFilter(...) OPENGL_VOID_CALL(glGetConvolutionFilter, __VA_ARGS__) #define glGetConvolutionParameterfv(...) OPENGL_VOID_CALL(glGetConvolutionParameterfv, __VA_ARGS__) #define glGetConvolutionParameteriv(...) OPENGL_VOID_CALL(glGetConvolutionParameteriv, __VA_ARGS__) #define glSeparableFilter2D(...) OPENGL_VOID_CALL(glSeparableFilter2D, __VA_ARGS__) #define glGetSeparableFilter(...) OPENGL_VOID_CALL(glGetSeparableFilter, __VA_ARGS__) #define glActiveTexture(...) OPENGL_VOID_CALL(glActiveTexture, __VA_ARGS__) #define glClientActiveTexture(...) OPENGL_VOID_CALL(glClientActiveTexture, __VA_ARGS__) #define glCompressedTexImage1D(...) OPENGL_VOID_CALL(glCompressedTexImage1D, __VA_ARGS__) #define glCompressedTexImage2D(...) OPENGL_VOID_CALL(glCompressedTexImage2D, __VA_ARGS__) #define glCompressedTexImage3D(...) OPENGL_VOID_CALL(glCompressedTexImage3D, __VA_ARGS__) #define glCompressedTexSubImage1D(...) OPENGL_VOID_CALL(glCompressedTexSubImage1D, __VA_ARGS__) #define glCompressedTexSubImage2D(...) OPENGL_VOID_CALL(glCompressedTexSubImage2D, __VA_ARGS__) #define glCompressedTexSubImage3D(...) OPENGL_VOID_CALL(glCompressedTexSubImage3D, __VA_ARGS__) #define glGetCompressedTexImage(...) OPENGL_VOID_CALL(glGetCompressedTexImage, __VA_ARGS__) #define glMultiTexCoord1d(...) OPENGL_VOID_CALL(glMultiTexCoord1d, __VA_ARGS__) #define glMultiTexCoord1dv(...) OPENGL_VOID_CALL(glMultiTexCoord1dv, __VA_ARGS__) #define glMultiTexCoord1f(...) OPENGL_VOID_CALL(glMultiTexCoord1f, __VA_ARGS__) #define glMultiTexCoord1fv(...) OPENGL_VOID_CALL(glMultiTexCoord1fv, __VA_ARGS__) #define glMultiTexCoord1i(...) OPENGL_VOID_CALL(glMultiTexCoord1i, __VA_ARGS__) #define glMultiTexCoord1iv(...) OPENGL_VOID_CALL(glMultiTexCoord1iv, __VA_ARGS__) #define glMultiTexCoord1s(...) OPENGL_VOID_CALL(glMultiTexCoord1s, __VA_ARGS__) #define glMultiTexCoord1sv(...) OPENGL_VOID_CALL(glMultiTexCoord1sv, __VA_ARGS__) #define glMultiTexCoord2d(...) OPENGL_VOID_CALL(glMultiTexCoord2d, __VA_ARGS__) #define glMultiTexCoord2dv(...) OPENGL_VOID_CALL(glMultiTexCoord2dv, __VA_ARGS__) #define glMultiTexCoord2f(...) OPENGL_VOID_CALL(glMultiTexCoord2f, __VA_ARGS__) #define glMultiTexCoord2fv(...) OPENGL_VOID_CALL(glMultiTexCoord2fv, __VA_ARGS__) #define glMultiTexCoord2i(...) OPENGL_VOID_CALL(glMultiTexCoord2i, __VA_ARGS__) #define glMultiTexCoord2iv(...) OPENGL_VOID_CALL(glMultiTexCoord2iv, __VA_ARGS__) #define glMultiTexCoord2s(...) OPENGL_VOID_CALL(glMultiTexCoord2s, __VA_ARGS__) #define glMultiTexCoord2sv(...) OPENGL_VOID_CALL(glMultiTexCoord2sv, __VA_ARGS__) #define glMultiTexCoord3d(...) OPENGL_VOID_CALL(glMultiTexCoord3d, __VA_ARGS__) #define glMultiTexCoord3dv(...) OPENGL_VOID_CALL(glMultiTexCoord3dv, __VA_ARGS__) #define glMultiTexCoord3f(...) OPENGL_VOID_CALL(glMultiTexCoord3f, __VA_ARGS__) #define glMultiTexCoord3fv(...) OPENGL_VOID_CALL(glMultiTexCoord3fv, __VA_ARGS__) #define glMultiTexCoord3i(...) OPENGL_VOID_CALL(glMultiTexCoord3i, __VA_ARGS__) #define glMultiTexCoord3iv(...) OPENGL_VOID_CALL(glMultiTexCoord3iv, __VA_ARGS__) #define glMultiTexCoord3s(...) OPENGL_VOID_CALL(glMultiTexCoord3s, __VA_ARGS__) #define glMultiTexCoord3sv(...) OPENGL_VOID_CALL(glMultiTexCoord3sv, __VA_ARGS__) #define glMultiTexCoord4d(...) OPENGL_VOID_CALL(glMultiTexCoord4d, __VA_ARGS__) #define glMultiTexCoord4dv(...) OPENGL_VOID_CALL(glMultiTexCoord4dv, __VA_ARGS__) #define glMultiTexCoord4f(...) OPENGL_VOID_CALL(glMultiTexCoord4f, __VA_ARGS__) #define glMultiTexCoord4fv(...) OPENGL_VOID_CALL(glMultiTexCoord4fv, __VA_ARGS__) #define glMultiTexCoord4i(...) OPENGL_VOID_CALL(glMultiTexCoord4i, __VA_ARGS__) #define glMultiTexCoord4iv(...) OPENGL_VOID_CALL(glMultiTexCoord4iv, __VA_ARGS__) #define glMultiTexCoord4s(...) OPENGL_VOID_CALL(glMultiTexCoord4s, __VA_ARGS__) #define glMultiTexCoord4sv(...) OPENGL_VOID_CALL(glMultiTexCoord4sv, __VA_ARGS__) #define glLoadTransposeMatrixd(...) OPENGL_VOID_CALL(glLoadTransposeMatrixd, __VA_ARGS__) #define glLoadTransposeMatrixf(...) OPENGL_VOID_CALL(glLoadTransposeMatrixf, __VA_ARGS__) #define glMultTransposeMatrixd(...) OPENGL_VOID_CALL(glMultTransposeMatrixd, __VA_ARGS__) #define glMultTransposeMatrixf(...) OPENGL_VOID_CALL(glMultTransposeMatrixf, __VA_ARGS__) #define glSampleCoverage(...) OPENGL_VOID_CALL(glSampleCoverage, __VA_ARGS__) #define glPointParameterfSGIS(...) OPENGL_VOID_CALL(glPointParameterfSGIS, __VA_ARGS__) #define glPointParameterfvSGIS(...) OPENGL_VOID_CALL(glPointParameterfvSGIS, __VA_ARGS__) gliv-1.9.7/src/include/pathset.h0000644000076400007640000000036011465576131014002 0ustar gg#ifndef PATHSET_H #define PATHSET_H #include "gliv.h" struct pathset { GTree *tree; }; struct pathset *pathset_new(void); gboolean pathset_add(struct pathset *set, const gchar * path); void pathset_free(struct pathset *set); #endif gliv-1.9.7/src/include/help.h0000644000076400007640000000022511465576131013262 0ustar gg#ifndef HELP_H #define HELP_H #include "gliv.h" gboolean toggle_help(void); GdkPixbuf *get_gliv_logo(void); gboolean show_about_box(void); #endif gliv-1.9.7/src/include/dirty_gtk.h0000644000076400007640000000062711465576131014340 0ustar gg#ifndef DIRTY_GTK_H #define DIRTY_GTK_H #include "gliv.h" typedef struct { GtkMenu *gtk_menu; GList *last_child; GtkTearoffMenuItem *tearoff; } DirtyGtkMenu; DirtyGtkMenu *dirty_gtk_menu_new(void); void dirty_gtk_menu_append(DirtyGtkMenu * menu, GtkWidget * item); GtkTearoffMenuItem *dirty_gtk_menu_get_tearoff(DirtyGtkMenu * menu); void dirty_gtk_menu_release(DirtyGtkMenu * menu); #endif gliv-1.9.7/src/include/rendering.h0000644000076400007640000000131111465576131014304 0ustar gg#ifndef RENDERING_H #define RENDERING_H #include "gliv.h" #include "gliv-image.h" /* Bits for the refresh() function. */ #define REFRESH_IMAGE (1 << 0) #define REFRESH_NOW (1 << 1) #define REFRESH_STATUS (1 << 2) #define APPEND_HISTORY (1 << 3) #define REFRESH_BURST (1 << 4) #define REFRESH_TITLE (1 << 5) #define REFRESH_SCROLL (1 << 6) void draw_current_image(void); void render(void); void zoom_in(gfloat ratio); gint diff_timeval_us(GTimeVal * after, GTimeVal * before); gint get_fps_limiter_delay(GTimeVal * previous_frame); void refresh(gint what); void update_current_image_status(gboolean find_number); void do_later(gint priority, GSourceDummyMarshal func); #endif gliv-1.9.7/src/include/options.h0000644000076400007640000000745311465576131014037 0ustar gg#ifndef OPTIONS_H #define OPTIONS_H #include "gliv.h" /* Links between the option dialog buttons and the options values. */ #define OPTION_FULLSCREEN (&new_options->fullscreen) #define OPTION_MENU_BAR (&new_options->menu_bar) #define OPTION_SCROLLBARS (&new_options->scrollbars) #define OPTION_STATUS_BAR (&new_options->status_bar) #define OPTION_DELAY_CURSOR (&new_options->delay) #define OPTION_DITHERING (&new_options->dither) #define OPTION_SCALE_DOWN (&new_options->scaledown) #define OPTION_ALPHA_CHECKS (&new_options->alpha_checks) #define OPTION_ONE_IMAGE (&new_options->one_image) #define OPTION_MIPMAPS (&new_options->mipmap) #define OPTION_MAXIMIZE (&new_options->maximize) #define OPTION_RESIZE_WIN (&new_options->resize_win) #define OPTION_IMAGES_MENUS_STARTUP (&new_options->build_menus) #define OPTION_IMAGES_MENUS_MNEMONICS (&new_options->mnemonics) #define OPTION_THUMBNAILS (&new_options->thumbnails) #define OPTION_THUMBNAILS_WIDTH (&new_options->thumb_width) #define OPTION_THUMBNAILS_HEIGHT (&new_options->thumb_height) #define OPTION_ZOOM_POINTER (&new_options->zoom_pointer) #define OPTION_MAX_FPS (&new_options->fps) #define OPTION_HISTORY_LENGTH (&new_options->history_size) #define OPTION_START_SLIDE_SHOW (&new_options->start_show) #define OPTION_SLIDE_SHOW_LOOP (&new_options->loop) #define OPTION_SLIDE_SHOW_DELAY (&new_options->duration) #define OPTION_BACKGROUND (&new_options->bg_col) #define OPTION_ALPHA1 (&new_options->alpha1) #define OPTION_ALPHA2 (&new_options->alpha2) #define OPTION_NOTICE_TIME (&new_options->notice_time) #define OPTION_CONFIRM_QUIT (&new_options->confirm_quit) #define OPTION_TRANS_DURATION (&new_options->trans_time) #define OPTION_SAVE_QUIT (&new_options->save_quit) #define OPTION_TRANSITIONS (&new_options->transitions) #define OPTION_KEEP_TRANSFO (&new_options->keep_transfo) #define OPTION_OPENGL_ERRORS (&new_options->opengl_errors) #define OPTION_FILTERING (&new_options->filtering) /* Must be kept in sync with 'enum transfo' */ enum image_position { POSITION_CENTER = 0, POSITION_TOP_LEFT, POSITION_TOP_RIGHT, POSITION_BOTTOM_LEFT, POSITION_BOTTOM_RIGHT, POSITION_KEEP }; /* Options controlled by the user. */ typedef struct { gboolean fullscreen; gboolean maximize; gboolean scaledown; gboolean menu_bar; gboolean status_bar; gboolean scrollbars; gboolean zoom_pointer; gboolean alpha_checks; gboolean dither; gboolean force; gboolean build_menus; gboolean mipmap; gboolean mnemonics; gboolean loop; gboolean one_image; gboolean start_show; gboolean thumbnails; gboolean resize_win; gboolean confirm_quit; gboolean save_quit; gboolean transitions; gboolean recursive; gboolean keep_transfo; gboolean opengl_errors; gboolean filtering; gint thumb_width; gint thumb_height; gint delay; gint duration; gint history_size; gint fps; gint notice_time; gint trans_time; enum image_position initial_pos; gchar *initial_geometry; GdkColor bg_col; GdkColor alpha1; GdkColor alpha2; } options_struct; /* Some global flags and variables. */ typedef struct { gboolean cursor_hidden; gboolean help; gboolean alpha_checks_changed; gint max_texture_size; GtkAllocation *wid_size; gint scr_width; gint scr_height; } rt_struct; gboolean show_options(void); #endif gliv-1.9.7/src/include/callbacks.h0000644000076400007640000000021011465576131014243 0ustar gg#ifndef CALLBACKS_H #define CALLBACKS_H #include "gliv.h" void install_callbacks(gpointer object); void process_events(void); #endif gliv-1.9.7/src/include/large_files.h0000644000076400007640000000025111465576131014605 0ustar gg#ifndef LARGE_FILES_H #define LARGE_FILES_H #include "gliv.h" #ifndef HAVE_FTELLO #define ftello ftell #endif #ifndef HAVE_FSEEKO #define fseeko fseek #endif #endif gliv-1.9.7/src/include/transition.h0000644000076400007640000000032311465576131014523 0ustar gg#ifndef TRANSITION_H #define TRANSITION_H #include "gliv-image.h" void diff_timeval(GTimeVal * res, GTimeVal * big, GTimeVal * small); void transition(GlivImage * im); gboolean is_in_transition(void); #endif gliv-1.9.7/src/include/windows.h0000644000076400007640000000126311465576131014027 0ustar gg#ifndef WINDOWS_H #define WINDOWS_H #include "gliv.h" #include "gliv-image.h" void show_message(GtkWidget * widget, const gchar * name); gint run_modal_dialog(GtkDialog * dialog); void set_loading_entry(const gchar * filename); gboolean toggle_widgets(GtkWidget ** widgets, gint nb_widgets, gboolean * flag); gboolean toggle_menu_bar(void); gboolean toggle_status_bar(void); void update_status_bar(void); void create_windows(void); void goto_window(GlivImage * im, gboolean first_time); void toggle_fullscreen(gboolean enable); void update_window_title(void); GtkWindow *get_current_window(void); GtkWindow *new_window(const gchar * title); gboolean toggle_floating_windows(void); #endif gliv-1.9.7/src/include/thumbnails.h0000644000076400007640000000057611465576131014511 0ustar gg#ifndef THUMBNAILS_H #define THUMBNAILS_H #include "gliv.h" #include "tree.h" gchar *get_absolute_filename(const gchar * filename); void add_thumbnail(const gchar * filename, GdkPixbuf * pixbuf); gboolean fill_thumbnail(tree_item * item); void collection_add_thumbnail(gchar * key, GdkPixbuf * thumb); GdkPixbuf *get_thumbnail(const gchar * filename, gchar ** thumb_key); #endif gliv-1.9.7/src/include/help_text.h0000644000076400007640000000014211465576131014324 0ustar gg#ifndef HELP_TEXT_H #define HELP_TEXT_H #include "gliv.h" gchar **get_help_lines(void); #endif gliv-1.9.7/src/include/opengl.h0000644000076400007640000000430211465576131013616 0ustar gg#include #include #include "gliv.h" #if HAVE_ISO_C_VARARGS #include "options.h" #include "gl_widget.h" #define NO_OPENGL 0 #if NO_OPENGL #define gdk_gl_drawable_wait_gdk(...) #define gtk_widget_get_gl_context(...) NULL #define gtk_widget_get_gl_drawable(...) NULL #define gdk_gl_drawable_make_current(...) TRUE #define gdk_gl_query_extension(...) TRUE #define gdk_gl_config_new_by_mode(...) (void*) 1 #define gtk_widget_set_gl_capability(...) TRUE #define gtk_gl_init(...) #define gtk_widget_get_gl_drawable(...) NULL #define gdk_gl_drawable_wait_gdk(...) #define gdk_gl_drawable_swap_buffers(...) #define gdk_gl_drawable_wait_gl(...) #define OPENGL_VOID_CALL_VOID(func) #define OPENGL_VOID_CALL(func, ...) #define OPENGL_CALL(return_t, func, ...) 1 #define glBegin(mode) #define glEnd() #else #define report_errors(f, inc) \ if (options->opengl_errors) \ report_opengl_errors(f, __FILE__, __LINE__, inc) #define OPENGL_VOID_CALL_VOID(func) \ do { \ func(); \ report_errors(#func, 0); \ } while (0) #define OPENGL_VOID_CALL(func, ...) \ do { \ func(__VA_ARGS__); \ report_errors(#func, 0); \ } while (0) #define OPENGL_CALL(return_t, func, ...) \ ({ \ return_t res = func(__VA_ARGS__); \ report_errors(#func, 0); \ res; \ }) /* Special cases ... */ #define glBegin(mode) \ do { \ glBegin(mode); \ report_errors("glBegin", 1); \ } while (0) #define glEnd() \ do { \ glEnd(); \ report_errors("glEnd", -1); \ } while (0) #endif #include "opengl_wrapper.h" #else #warning "No variadic macros" #endif gliv-1.9.7/src/include/params.h0000644000076400007640000000050711465576131013620 0ustar gg#ifndef PARAMS_H #define PARAMS_H /* User configurable settings. */ #define ZOOM_FACTOR 1.1 #define MOVE_OFFSET 20.0 #define BIG_ROTATION (PI / 2.0) /* 90 deg */ #define SMALL_ROTATION (PI / 1800.0) /* 0.1 deg */ #define MIPMAP_RATIO 0.75 /* Font for the help box. */ #define FONT "Mono 10" #endif gliv-1.9.7/src/include/next_image.h0000644000076400007640000000133211465576131014452 0ustar gg#ifndef NEXT_IMAGE_H #define NEXT_IMAGE_H #include "gliv.h" #include "gliv-image.h" void after_reorder(void); const gchar *get_image_notice(void); void load_direction(gint dir); void load_random_image(void); void load_1st_image(void); void load_last_image(void); void load_first_image(void); void reload_current_image(void); void reload_images(void); gboolean menu_load(const gchar * filename); void unload(GList * node); void unload_images(void); gpointer stat_loaded_files(gboolean quiet); void reload_changed_files(gpointer * stat_data); void set_slide_show_menu(GtkMenuItem * item); void start_slide_show(void); gboolean slide_show_started(void); gboolean toggle_slide_show(void); void new_images(gint nb_inserted); #endif gliv-1.9.7/src/include/str_utils.h0000644000076400007640000000142411465576131014364 0ustar gg#ifndef STR_UTILS_H #define STR_UTILS_H #include "gliv.h" #if SIZEOF_UNSIGNED_LONG == 4 #define LONG_MASK(l32, l64) (l32) #elif SIZEOF_UNSIGNED_LONG == 8 #define LONG_MASK(l32, l64) (l64) #else #error "sizeof(unsigned long) is neither 4 nor 8" #endif /* * The magic to find a '\0' in a long int is taken from the glibc. * See sysdeps/generic/strlen.c in the glibc sources to have the * explanation. */ #define MAGIC_BITS LONG_MASK(0x7efefeffL, 0x7efefefefefefeffL) #define HAS_ZERO(lint) ((((lint) + MAGIC_BITS) ^ ~(lint)) & ~MAGIC_BITS) #define NOT_ALIGNED(ptr) (((gulong) (ptr)) & (sizeof(gulong) - 1)) gint common_prefix_length(const gchar * str1, const gchar * str2); const gchar *filename_to_utf8(const gchar * str); gchar *clean_filename(const gchar * filename); #endif gliv-1.9.7/src/include/gliv-image.h0000644000076400007640000000305011465576131014352 0ustar gg/* Generated by GOB (v2.0.16) (do not edit directly) */ #include #include #ifndef __GLIV_IMAGE_H__ #define __GLIV_IMAGE_H__ #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ #include "texture_map.h" /* * Type checking and casting macros */ #define GLIV_TYPE_IMAGE (gliv_image_get_type()) #define GLIV_IMAGE(obj) G_TYPE_CHECK_INSTANCE_CAST((obj), gliv_image_get_type(), GlivImage) #define GLIV_IMAGE_CONST(obj) G_TYPE_CHECK_INSTANCE_CAST((obj), gliv_image_get_type(), GlivImage const) #define GLIV_IMAGE_CLASS(klass) G_TYPE_CHECK_CLASS_CAST((klass), gliv_image_get_type(), GlivImageClass) #define GLIV_IS_IMAGE(obj) G_TYPE_CHECK_INSTANCE_TYPE((obj), gliv_image_get_type ()) #define GLIV_IMAGE_GET_CLASS(obj) G_TYPE_INSTANCE_GET_CLASS((obj), gliv_image_get_type(), GlivImageClass) /* * Main object structure */ #ifndef __TYPEDEF_GLIV_IMAGE__ #define __TYPEDEF_GLIV_IMAGE__ typedef struct _GlivImage GlivImage; #endif struct _GlivImage { GObject __parent__; /*< public >*/ GList * node; gint number; gchar * ident; gint width; gint height; gint nb_maps; texture_map * maps; gboolean has_alpha; gboolean first_image; gfloat initial_angle; gboolean initial_h_flip; }; /* * Class definition */ typedef struct _GlivImageClass GlivImageClass; struct _GlivImageClass { GObjectClass __parent__; }; /* * Public methods */ GType gliv_image_get_type (void) G_GNUC_CONST; #line 29 "../tools/gliv-image.gob" GlivImage * gliv_image_new (void); #line 67 "gliv-image.h" #ifdef __cplusplus } #endif /* __cplusplus */ #endif gliv-1.9.7/src/include/actions.h0000644000076400007640000000056111465576131013775 0ustar gg#ifndef ACTIONS_H #define ACTIONS_H #include #include "gliv.h" void init_actions(GtkAccelGroup * the_accel_group, GtkMenuItem * current_image_menu_item, GtkMenuItem * every_image_menu_item); gboolean edit_actions(void); void add_action(const gchar * name, const gchar * command); void write_actions(FILE * file); #endif gliv-1.9.7/src/include/zoom_frame.h0000644000076400007640000000032411465576131014470 0ustar gg#ifndef ZOOM_FRAME_H #define ZOOM_FRAME_H #include "gliv.h" void draw_zoom_frame(void); void set_zoom_frame(gint x, gint y, gint width, gint height); void clear_zoom_frame(void); void zoom_frame(void); #endif gliv-1.9.7/src/include/tiling.h0000644000076400007640000000067311465576131013627 0ustar gg#ifndef TILING_H #define TILING_H struct tiles { gint *array; gint waste; gint nb_tiles; }; struct tiles_iterator { struct tiles *tiles; gboolean first_pass; gint current_array_pos; gint remaining_in_pos; }; void destroy_tiles(struct tiles *tiles); struct tiles *make_tiles(gint dim); struct tiles_iterator *tiles_iterator_new(struct tiles *tiles); gint tiles_iterator_next(struct tiles_iterator *iter); #endif gliv-1.9.7/src/include/glade_options.h0000644000076400007640000000014611465576131015163 0ustar gg/* * DO NOT EDIT THIS FILE - it is generated by Glade. */ GtkWidget* create_options_dialog (void); gliv-1.9.7/src/include/collection.h0000644000076400007640000000052111465576131014464 0ustar gg#ifndef COLLECTION_H #define COLLECTION_H #include #include "gliv.h" gint serialize_collection_nogui(const gchar * filename); gboolean serialize_collection_gui(void); gint load_dot_gliv_from_file(const gchar * filename, FILE * file); gint load_dot_gliv(const gchar * filename); gboolean deserialize_collection(void); #endif gliv-1.9.7/src/include/math_floats.h0000644000076400007640000000152511465576131014637 0ustar gg#ifndef MATH_FLOATS_H #define MATH_FLOATS_H #ifdef HAVE_CONFIG_H #include "config.h" #endif #include #ifndef HAVE_SQRTF #define sqrtf sqrt #endif #ifndef HAVE_HYPOT #define hypot(x, y) (sqrtf((x) * (x) + (y) * (y))) #endif #ifndef HAVE_HYPOTF #define hypotf hypot #endif #ifndef HAVE_ATAN2F #define atan2f atan2 #endif #ifndef HAVE_POWF #define powf pow #endif #ifndef HAVE_CEILF #define ceilf ceil #endif #ifndef HAVE_COSF #define cosf cos #endif #ifndef HAVE_SINF #define sinf sin #endif #ifndef HAVE_ACOSF #define acosf acos #endif #ifndef HAVE_FMODF #define fmodf fmod #endif #ifndef HAVE_FABSF #define fabsf fabs #endif #ifndef HAVE_POWF #define powf pow #endif #ifndef HAVE_LOG10F #define log10f log10 #endif /* Instead of finding it in a system or glib header. */ #define PI 3.1415926535897932384626433832795029F #endif gliv-1.9.7/src/include/open_dialog.h0000644000076400007640000000021711465576131014613 0ustar gg#ifndef OPEN_DIALOG_H #define OPEN_DIALOG_H #include "gliv.h" gboolean menu_open(gboolean select_dir); gboolean menu_image_nr(void); #endif gliv-1.9.7/src/include/scrollbars.h0000644000076400007640000000032511465576131014501 0ustar gg#ifndef SCROLLBARS_H #define SCROLLBARS_H #include "gliv.h" gboolean toggle_scrollbars(void); void update_scrollbars(void); GtkWidget *get_new_scrollbar(gboolean horizontal); void hide_scrollbars(void); #endif gliv-1.9.7/src/include/main.h0000644000076400007640000000017111465576131013256 0ustar gg#ifndef MAIN_H #define MAIN_H #include "gliv.h" G_GNUC_NORETURN void quit(gint code); gboolean gui_quit(void); #endif gliv-1.9.7/src/include/matrix.h0000644000076400007640000000221111465576131013633 0ustar gg#ifndef MATRIX_H #define MATRIX_H #include "gliv.h" #include "gliv-image.h" #include "texture_map.h" G_GNUC_PURE gfloat get_matrix_zoom(void); G_GNUC_PURE gfloat get_matrix_angle(void); G_GNUC_PURE gboolean float_equal(gfloat a, gfloat b); void get_matrix_bounding_box(gfloat * min_x, gfloat * max_x, gfloat * min_y, gfloat * max_y); void write_gl_matrix(void); void matrix_cpy(gfloat * dest, gfloat * src); gboolean matrix_tile_visible(tile_dim * tile); G_GNUC_PURE gboolean is_matrix_symmetry(void); G_GNUC_PURE gboolean get_matrix_has_changed(void); G_GNUC_PURE gboolean is_filtering_needed(void); gboolean matrix_set_max_zoom(gint width, gint height, gboolean do_it); void matrix_fit(gboolean fit_w, gboolean fit_h); void matrix_reset(void); void matrix_rotate(gfloat angle); void matrix_move(gfloat x, gfloat y); void matrix_zoom(gfloat ratio, gfloat x, gfloat y); void flip_matrix(gfloat * mat, gboolean h_flip); void matrix_flip_h(void); void matrix_flip_v(void); void matrix_set_initial_position(void); void configure_matrix(GlivImage * im); gfloat *new_matrix(void); gfloat *get_matrix_for_image(GlivImage * im); #endif gliv-1.9.7/src/include/cmdline.h0000644000076400007640000002510011465576131013744 0ustar gg/** @file cmdline.h * @brief The header file for the command line option parser * generated by GNU Gengetopt version 2.22.2 * http://www.gnu.org/software/gengetopt. * DO NOT modify this file, since it can be overwritten * @author GNU Gengetopt by Lorenzo Bettini */ #ifndef CMDLINE_H #define CMDLINE_H /* If we use autoconf. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include /* for FILE */ #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ #ifndef CMDLINE_PARSER_PACKAGE /** @brief the program name (used for printing errors) */ #define CMDLINE_PARSER_PACKAGE PACKAGE #endif #ifndef CMDLINE_PARSER_PACKAGE_NAME /** @brief the complete program name (used for help and version) */ #ifdef PACKAGE_NAME #define CMDLINE_PARSER_PACKAGE_NAME PACKAGE_NAME #else #define CMDLINE_PARSER_PACKAGE_NAME PACKAGE #endif #endif #ifndef CMDLINE_PARSER_VERSION /** @brief the program version */ #define CMDLINE_PARSER_VERSION VERSION #endif /** @brief Where the command line options are stored */ struct gengetopt_args_info { const char *help_help; /**< @brief Print help and exit help description. */ const char *version_help; /**< @brief Print version and exit help description. */ char * add_all_arg; /**< @brief Add all files in the directory. */ char * add_all_orig; /**< @brief Add all files in the directory original value given at command line. */ const char *add_all_help; /**< @brief Add all files in the directory help description. */ char * recursive_arg; /**< @brief Recursive directory traversal. */ char * recursive_orig; /**< @brief Recursive directory traversal original value given at command line. */ const char *recursive_help; /**< @brief Recursive directory traversal help description. */ char * sort_arg; /**< @brief Show images in sorted order. */ char * sort_orig; /**< @brief Show images in sorted order original value given at command line. */ const char *sort_help; /**< @brief Show images in sorted order help description. */ char * shuffle_arg; /**< @brief Show images in random order. */ char * shuffle_orig; /**< @brief Show images in random order original value given at command line. */ const char *shuffle_help; /**< @brief Show images in random order help description. */ char * force_load_arg; /**< @brief Try to load every file. */ char * force_load_orig; /**< @brief Try to load every file original value given at command line. */ const char *force_load_help; /**< @brief Try to load every file help description. */ char * client_arg; /**< @brief Connect to a running gliv, appending to the list. */ char * client_orig; /**< @brief Connect to a running gliv, appending to the list original value given at command line. */ const char *client_help; /**< @brief Connect to a running gliv, appending to the list help description. */ char * client_clear_arg; /**< @brief Connect to a running gliv, replacing the list. */ char * client_clear_orig; /**< @brief Connect to a running gliv, replacing the list original value given at command line. */ const char *client_clear_help; /**< @brief Connect to a running gliv, replacing the list help description. */ char * build_menus_arg; /**< @brief No images menu at startup. */ char * build_menus_orig; /**< @brief No images menu at startup original value given at command line. */ const char *build_menus_help; /**< @brief No images menu at startup help description. */ char * glivrc_arg; /**< @brief Use this configuration file or none. */ char * glivrc_orig; /**< @brief Use this configuration file or none original value given at command line. */ const char *glivrc_help; /**< @brief Use this configuration file or none help description. */ char * slide_show_arg; /**< @brief Start the slide show immediately. */ char * slide_show_orig; /**< @brief Start the slide show immediately original value given at command line. */ const char *slide_show_help; /**< @brief Start the slide show immediately help description. */ char * null_arg; /**< @brief Read null-terminated filenames. */ char * null_orig; /**< @brief Read null-terminated filenames original value given at command line. */ const char *null_help; /**< @brief Read null-terminated filenames help description. */ char * collection_arg; /**< @brief Output a collection. */ char * collection_orig; /**< @brief Output a collection original value given at command line. */ const char *collection_help; /**< @brief Output a collection help description. */ char * geometry_arg; /**< @brief Initial window geometry. */ char * geometry_orig; /**< @brief Initial window geometry original value given at command line. */ const char *geometry_help; /**< @brief Initial window geometry help description. */ unsigned int help_given ; /**< @brief Whether help was given. */ unsigned int version_given ; /**< @brief Whether version was given. */ unsigned int add_all_given ; /**< @brief Whether add-all was given. */ unsigned int recursive_given ; /**< @brief Whether recursive was given. */ unsigned int sort_given ; /**< @brief Whether sort was given. */ unsigned int shuffle_given ; /**< @brief Whether shuffle was given. */ unsigned int force_load_given ; /**< @brief Whether force-load was given. */ unsigned int client_given ; /**< @brief Whether client was given. */ unsigned int client_clear_given ; /**< @brief Whether client-clear was given. */ unsigned int build_menus_given ; /**< @brief Whether build-menus was given. */ unsigned int glivrc_given ; /**< @brief Whether glivrc was given. */ unsigned int slide_show_given ; /**< @brief Whether slide-show was given. */ unsigned int null_given ; /**< @brief Whether null was given. */ unsigned int collection_given ; /**< @brief Whether collection was given. */ unsigned int geometry_given ; /**< @brief Whether geometry was given. */ char **inputs ; /**< @brief unamed options (options without names) */ unsigned inputs_num ; /**< @brief unamed options number */ } ; /** @brief The additional parameters to pass to parser functions */ struct cmdline_parser_params { int override; /**< @brief whether to override possibly already present options (default 0) */ int initialize; /**< @brief whether to initialize the option structure gengetopt_args_info (default 1) */ int check_required; /**< @brief whether to check that all required options were provided (default 1) */ int check_ambiguity; /**< @brief whether to check for options already specified in the option structure gengetopt_args_info (default 0) */ int print_errors; /**< @brief whether getopt_long should print an error message for a bad option (default 1) */ } ; /** @brief the purpose string of the program */ extern const char *gengetopt_args_info_purpose; /** @brief the usage string of the program */ extern const char *gengetopt_args_info_usage; /** @brief all the lines making the help output */ extern const char *gengetopt_args_info_help[]; /** * The command line parser * @param argc the number of command line options * @param argv the command line options * @param args_info the structure where option information will be stored * @return 0 if everything went fine, NON 0 if an error took place */ int cmdline_parser (int argc, char * const *argv, struct gengetopt_args_info *args_info); /** * The command line parser (version with additional parameters - deprecated) * @param argc the number of command line options * @param argv the command line options * @param args_info the structure where option information will be stored * @param override whether to override possibly already present options * @param initialize whether to initialize the option structure my_args_info * @param check_required whether to check that all required options were provided * @return 0 if everything went fine, NON 0 if an error took place * @deprecated use cmdline_parser_ext() instead */ int cmdline_parser2 (int argc, char * const *argv, struct gengetopt_args_info *args_info, int override, int initialize, int check_required); /** * The command line parser (version with additional parameters) * @param argc the number of command line options * @param argv the command line options * @param args_info the structure where option information will be stored * @param params additional parameters for the parser * @return 0 if everything went fine, NON 0 if an error took place */ int cmdline_parser_ext (int argc, char * const *argv, struct gengetopt_args_info *args_info, struct cmdline_parser_params *params); /** * Save the contents of the option struct into an already open FILE stream. * @param outfile the stream where to dump options * @param args_info the option struct to dump * @return 0 if everything went fine, NON 0 if an error took place */ int cmdline_parser_dump(FILE *outfile, struct gengetopt_args_info *args_info); /** * Save the contents of the option struct into a (text) file. * This file can be read by the config file parser (if generated by gengetopt) * @param filename the file where to save * @param args_info the option struct to save * @return 0 if everything went fine, NON 0 if an error took place */ int cmdline_parser_file_save(const char *filename, struct gengetopt_args_info *args_info); /** * Print the help */ void cmdline_parser_print_help(void); /** * Print the version */ void cmdline_parser_print_version(void); /** * Initializes all the fields a cmdline_parser_params structure * to their default values * @param params the structure to initialize */ void cmdline_parser_params_init(struct cmdline_parser_params *params); /** * Allocates dynamically a cmdline_parser_params structure and initializes * all its fields to their default values * @return the created and initialized cmdline_parser_params structure */ struct cmdline_parser_params *cmdline_parser_params_create(void); /** * Initializes the passed gengetopt_args_info structure's fields * (also set default values for options that have a default) * @param args_info the structure to initialize */ void cmdline_parser_init (struct gengetopt_args_info *args_info); /** * Deallocates the string fields of the gengetopt_args_info structure * (but does not deallocate the structure itself) * @param args_info the structure to deallocate */ void cmdline_parser_free (struct gengetopt_args_info *args_info); /** * Checks that all the required options were specified * @param args_info the structure to check * @param prog_name the name of the program that will be used to print * possible errors * @return */ int cmdline_parser_required (struct gengetopt_args_info *args_info, const char *prog_name); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* CMDLINE_H */ gliv-1.9.7/src/include/all_cursors.h0000644000076400007640000001217111465576131014665 0ustar gg#define cursor_move_width 20 #define cursor_move_height 20 #define cursor_move_x_hot 10 #define cursor_move_y_hot 10 static char cursor_move_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x1f, 0x00, 0x00, 0x04, 0x00, 0x40, 0x44, 0x00, 0x60, 0xc4, 0x00, 0xf0, 0xff, 0x01, 0x60, 0xc4, 0x00, 0x40, 0x44, 0x00, 0x00, 0x04, 0x00, 0x00, 0x1f, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; #define cursor_move_mask_width 20 #define cursor_move_mask_height 20 static char cursor_move_mask_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x1f, 0x00, 0x80, 0x3f, 0x00, 0x40, 0x5f, 0x00, 0xe0, 0xee, 0x00, 0xf0, 0xff, 0x01, 0xf8, 0xff, 0x03, 0xf0, 0xff, 0x01, 0xe0, 0xee, 0x00, 0x40, 0x5f, 0x00, 0x80, 0x3f, 0x00, 0x00, 0x1f, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; #define cursor_rect_zoom_width 20 #define cursor_rect_zoom_height 20 #define cursor_rect_zoom_x_hot 9 #define cursor_rect_zoom_y_hot 9 static char cursor_rect_zoom_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x07, 0x00, 0x40, 0x08, 0x00, 0x20, 0x10, 0x00, 0x10, 0x20, 0x00, 0x10, 0x20, 0x00, 0x10, 0x20, 0x00, 0x10, 0x20, 0x00, 0x20, 0x10, 0x00, 0x40, 0x38, 0x00, 0x80, 0x77, 0x00, 0x00, 0xe0, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x80, 0x03, 0x00, 0x00, 0x07, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, }; #define cursor_rect_zoom_mask_width 20 #define cursor_rect_zoom_mask_height 20 static char cursor_rect_zoom_mask_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x07, 0x00, 0xc0, 0x0f, 0x00, 0xe0, 0x1f, 0x00, 0x70, 0x38, 0x00, 0x38, 0x70, 0x00, 0x38, 0x70, 0x00, 0x38, 0x70, 0x00, 0x38, 0x70, 0x00, 0x70, 0x38, 0x00, 0xe0, 0x7f, 0x00, 0xc0, 0xff, 0x00, 0x80, 0xf7, 0x01, 0x00, 0xe0, 0x03, 0x00, 0xc0, 0x07, 0x00, 0x80, 0x0f, 0x00, 0x00, 0x07, 0x00, 0x00, 0x02, }; #define cursor_rotate_width 20 #define cursor_rotate_height 20 #define cursor_rotate_x_hot 12 #define cursor_rotate_y_hot 11 static char cursor_rotate_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x40, 0xdc, 0x01, 0xc0, 0x06, 0x03, 0x40, 0x03, 0x06, 0x40, 0x02, 0x04, 0x40, 0x04, 0x00, 0xc0, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x07, 0x00, 0x40, 0x04, 0x40, 0x80, 0x04, 0xc0, 0x80, 0x05, 0x80, 0xc1, 0x06, 0x00, 0x77, 0x04, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x00, }; #define cursor_rotate_mask_width 20 #define cursor_rotate_mask_height 20 static char cursor_rotate_mask_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x60, 0xfc, 0x01, 0xe0, 0xfe, 0x03, 0xe0, 0xdf, 0x07, 0xe0, 0x07, 0x0f, 0xe0, 0x07, 0x0e, 0xe0, 0x0f, 0x04, 0xe0, 0x1f, 0x00, 0xe0, 0x1f, 0x00, 0x00, 0xf0, 0x0f, 0x00, 0xf0, 0x0f, 0x40, 0xe0, 0x0f, 0xe0, 0xc0, 0x0f, 0xe0, 0xc1, 0x0f, 0xc0, 0xf7, 0x0f, 0x80, 0xff, 0x0e, 0x00, 0x7f, 0x0c, 0x00, 0x1c, 0x00, }; #define cursor_zoom_width 20 #define cursor_zoom_height 20 #define cursor_zoom_x_hot 9 #define cursor_zoom_y_hot 9 static char cursor_zoom_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x07, 0x00, 0x40, 0x08, 0x00, 0x20, 0x10, 0x00, 0x10, 0x20, 0x00, 0x10, 0x20, 0x00, 0x10, 0x20, 0x00, 0x10, 0x20, 0x00, 0x20, 0x10, 0x00, 0x40, 0x38, 0x00, 0x80, 0x77, 0x00, 0x00, 0xe0, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x80, 0x03, 0x00, 0x00, 0x07, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, }; #define cursor_zoom_mask_width 20 #define cursor_zoom_mask_height 20 static char cursor_zoom_mask_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x07, 0x00, 0xc0, 0x0f, 0x00, 0xe0, 0x1f, 0x00, 0x70, 0x38, 0x00, 0x38, 0x70, 0x00, 0x38, 0x70, 0x00, 0x38, 0x70, 0x00, 0x38, 0x70, 0x00, 0x70, 0x38, 0x00, 0xe0, 0x7f, 0x00, 0xc0, 0xff, 0x00, 0x80, 0xf7, 0x01, 0x00, 0xe0, 0x03, 0x00, 0xc0, 0x07, 0x00, 0x80, 0x0f, 0x00, 0x00, 0x07, 0x00, 0x00, 0x02, }; #define cursor_zoom_rotate_width 20 #define cursor_zoom_rotate_height 20 #define cursor_zoom_rotate_x_hot 12 #define cursor_zoom_rotate_y_hot 11 static char cursor_zoom_rotate_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0xc0, 0xdf, 0x01, 0xc0, 0x0e, 0x03, 0x60, 0x13, 0x06, 0x50, 0x22, 0x04, 0x50, 0x24, 0x00, 0xd0, 0x2f, 0x00, 0x10, 0x20, 0x00, 0x20, 0x10, 0x00, 0x40, 0xf8, 0x07, 0x80, 0x77, 0x04, 0x40, 0xe0, 0x04, 0xc0, 0xc0, 0x05, 0x80, 0xc1, 0x07, 0x00, 0x77, 0x07, 0x00, 0x1c, 0x02, 0x00, 0x00, 0x00 }; #define cursor_zoom_rotate_mask_width 20 #define cursor_zoom_rotate_mask_height 20 static char cursor_zoom_rotate_mask_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0xe0, 0xff, 0x01, 0xe0, 0xff, 0x03, 0xe0, 0xdf, 0x07, 0xf0, 0x3f, 0x0f, 0xf8, 0x77, 0x0e, 0xf8, 0x7f, 0x04, 0xf8, 0x7f, 0x00, 0xf8, 0x7f, 0x00, 0x70, 0xf8, 0x0f, 0xe0, 0xff, 0x0f, 0xc0, 0xff, 0x0f, 0xe0, 0xf7, 0x0f, 0xe0, 0xe1, 0x0f, 0xc0, 0xf7, 0x0f, 0x80, 0xff, 0x0f, 0x00, 0x7f, 0x0f, 0x00, 0x1c, 0x02 }; gliv-1.9.7/src/include/texture_map.h0000644000076400007640000000070611465576131014673 0ustar gg#ifndef TEXTURE_MAP_H #define TEXTURE_MAP_H #include "gliv.h" #include "tiling.h" /* A rectangle in a map. */ typedef struct { gfloat x0; gfloat y0; gfloat x1; gfloat y1; } tile_dim; /* A map in a texture. */ typedef struct { gint nb_tiles; tile_dim *tiles; guint *tex_ids; guint list; gint width; gint height; struct tiles *x_tiles; struct tiles *y_tiles; GdkPixbuf *pixbuf; } texture_map; #endif gliv-1.9.7/src/include/foreach_file.h0000644000076400007640000000030111465576131014733 0ustar gg#ifndef FOREACH_FILE_H #define FOREACH_FILE_H #include "gliv.h" typedef gint(*foreach_file_func) (const gchar * path); gint foreach_file(const gchar * path, foreach_file_func func); #endif gliv-1.9.7/src/include/cursors.h0000644000076400007640000000035011465576131014031 0ustar gg#ifndef CURSORS_H #define CURSORS_H #include "gliv.h" gboolean hide_cursor(void); void show_cursor(void); gboolean set_correct_cursor(void); void set_hide_cursor_enabled(gboolean enabled); void schedule_hide_cursor(void); #endif gliv-1.9.7/src/include/thread.h0000644000076400007640000000016111465576131013600 0ustar gg#ifndef THREAD_H #define THREAD_H #include "gliv.h" gpointer do_threaded(GThreadFunc f, gpointer arg); #endif gliv-1.9.7/src/include/gliv_logo.h0000644000076400007640000014764611465576131014336 0ustar gg/* Auto-generated */ /* GdkPixbuf RGBA C-Source image dump 1-byte-run-length-encoded */ static const GdkPixdata gliv_logo = { 0x47646b50, /* Pixbuf magic: 'GdkP' */ 24 + 18583, /* header length + pixel_data length */ 0x2010002, /* pixdata_type */ 752, /* rowstride */ 188, /* width */ 188, /* height */ /* pixel_data: */ "\377\0\0\0\0\377\0\0\0\0\226\0\0\0\0\2\0\0\0\6\0\0\0\33\203\0\0\0\"\4" "\0\0\0*\0\0\0-\0\0\0\27\0\0\0\1\377\0\0\0\0\254\0\0\0\0\10\0\0\0\27\0" "\0\0A\0\0\0b\0\0\0\201\0\0\0\240\0\0\0\270\0\0\0\323\0\0\0\352\210\0" "\0\0\377\11\0\0\0\372\0\0\0\343\0\0\0\306\0\0\0\257\0\0\0\223\0\0\0{" "\0\0\0\\\0\0\0""5\0\0\0\15\377\0\0\0\0\237\0\0\0\0\5\0\0\0*\0\0\0e\0" "\0\0\223\0\0\0\276\0\0\0\353\231\0\0\0\377\6\0\0\0\343\0\0\0\273\0\0" "\0\222\0\0\0c\0\0\0.\0\0\0\4\377\0\0\0\0\225\0\0\0\0\4\0\0\0-\0\0\0m" "\0\0\0\254\0\0\0\351\243\0\0\0\377\5\0\0\0\365\0\0\0\303\0\0\0\204\0" "\0\0B\0\0\0\11\377\0\0\0\0\215\0\0\0\0\4\0\0\0\3\0\0\0@\0\0\0\220\0\0" "\0\340\214\0\0\0\377\11\6\0\12\377\26\0$\377&\0=\3772\0P\377\77\0e\377" "J\0w\377X\0\215\377]\0\226\377_\0\230\377\203f\0\243\377\10a\0\233\377" "T\0\206\377G\0r\3779\0\\\377.\0J\377\40\0""3\377\24\0\40\377\4\0\7\377" "\213\0\0\0\377\4\0\0\0\367\0\0\0\271\0\0\0i\0\0\0\32\377\0\0\0\0\207" "\0\0\0\0\4\0\0\0\1\0\0\0>\0\0\0\236\0\0\0\353\211\0\0\0\377\6\5\0\10" "\377\34\0.\3773\0R\377H\0t\377^\0\227\377t\0\272\377\223\177\0\314\377" "\7\177\0\313\377o\0\262\377[\0\222\377F\0p\3772\0P\377\35\0.\377\5\0" "\11\377\210\0\0\0\377\4\0\0\0\376\0\0\0\305\0\0\0f\0\0\0\17\377\0\0\0" "\0\202\0\0\0\0\3\0\0\0\32\0\0\0x\0\0\0\334\210\0\0\0\377\5\6\0\12\377" "#\0""9\377C\0k\377b\0\235\377}\0\310\377\236\177\0\314\377\5~\0\312\377" "h\0\247\377N\0}\3770\0M\377\17\0\31\377\207\0\0\0\377\4\0\0\0\366\0\0" "\0\244\0\0\0D\0\0\0\2\373\0\0\0\0\4\0\0\0\3\0\0\0O\0\0\0\260\0\0\0\374" "\207\0\0\0\377\4\16\0\26\3775\0V\377]\0\226\377}\0\311\377\247\177\0" "\314\377\4n\0\261\377L\0z\377#\0""9\377\3\0\5\377\206\0\0\0\377\3\0\0" "\0\337\0\0\0{\0\0\0\24\367\0\0\0\0\3\0\0\0\26\0\0\0\204\0\0\0\345\207" "\0\0\0\377\4\15\0\25\377;\0^\377e\0\242\377\177\0\313\377\255\177\0\314" "\377\4x\0\301\377Q\0\202\377\"\0""6\377\1\0\2\377\205\0\0\0\377\3\0\0" "\0\365\0\0\0\226\0\0\0$\363\0\0\0\0\3\0\0\0#\0\0\0\226\0\0\0\367\206" "\0\0\0\377\4\2\0\4\377'\0\77\377Y\0\217\377~\0\312\377\263\177\0\314" "\377\3p\0\264\377A\0h\377\20\0\32\377\205\0\0\0\377\3\0\0\0\373\0\0\0" "\230\0\0\0\31\357\0\0\0\0\3\0\0\0/\0\0\0\251\0\0\0\374\206\0\0\0\377" "\3\22\0\36\377D\0m\377s\0\270\377\270\177\0\314\377\4~\0\312\377]\0\226" "\377'\0>\377\1\0\2\377\204\0\0\0\377\3\0\0\0\364\0\0\0\202\0\0\0\10\353" "\0\0\0\0\3\0\0\0\36\0\0\0\242\0\0\0\375\205\0\0\0\377\4\0\0\1\377&\0" "=\377_\0\231\377\177\0\313\377\275\177\0\314\377\3l\0\255\3773\0R\377" "\3\0\5\377\204\0\0\0\377\2\0\0\0\331\0\0\0>\350\0\0\0\0\3\0\0\0\20\0" "\0\0\211\0\0\0\366\205\0\0\0\377\3\2\0\4\377/\0K\377j\0\252\377\302\177" "\0\314\377\3n\0\261\377-\0H\377\1\0\2\377\203\0\0\0\377\3\0\0\0\376\0" "\0\0\224\0\0\0\11\344\0\0\0\0\3\0\0\0\1\0\0\0g\0\0\0\353\205\0\0\0\377" "\3\2\0\3\3774\0T\377p\0\264\377\306\177\0\314\377\2f\0\244\377\31\0)" "\377\204\0\0\0\377\2\0\0\0\324\0\0\0-\342\0\0\0\0\2\0\0\0'\0\0\0\302" "\206\0\0\0\377\2(\0A\377m\0\257\377\311\177\0\314\377\3}\0\311\377E\0" "o\377\4\0\7\377\203\0\0\0\377\2\0\0\0\366\0\0\0`\337\0\0\0\0\3\0\0\0" "\6\0\0\0|\0\0\0\370\205\0\0\0\377\2\34\0-\377c\0\236\377\315\177\0\314" "\377\2k\0\253\377\27\0&\377\204\0\0\0\377\2\0\0\0\235\0\0\0\10\334\0" "\0\0\0\2\0\0\0-\0\0\0\322\205\0\0\0\377\3\10\0\16\377N\0}\377\177\0\313" "\377\317\177\0\314\377\2|\0\306\3776\0V\377\204\0\0\0\377\2\0\0\0\304" "\0\0\0\21\331\0\0\0\0\3\0\0\0\1\0\0\0n\0\0\0\367\205\0\0\0\377\2*\0C" "\377s\0\271\377\323\177\0\314\377\2U\0\210\377\6\0\12\377\203\0\0\0\377" "\2\0\0\0\321\0\0\0\31\327\0\0\0\0\2\0\0\0\21\0\0\0\257\205\0\0\0\377" "\2\14\0\24\377X\0\216\377\326\177\0\314\377\2k\0\253\377\20\0\32\377" "\203\0\0\0\377\2\0\0\0\332\0\0\0\25\325\0\0\0\0\2\0\0\0""8\0\0\0\341" "\205\0\0\0\377\2'\0>\377u\0\274\377\330\177\0\314\377\2r\0\267\377\26" "\0#\377\203\0\0\0\377\2\0\0\0\310\0\0\0\12\322\0\0\0\0\3\0\0\0\1\0\0" "\0r\0\0\0\372\204\0\0\0\377\3\3\0\6\377I\0v\377\177\0\313\377\332\177" "\0\314\377\2w\0\276\377\31\0(\377\203\0\0\0\377\2\0\0\0\261\0\0\0\3\320" "\0\0\0\0\2\0\0\0\11\0\0\0\255\205\0\0\0\377\2\21\0\33\377e\0\242\377" "\335\177\0\314\377\2u\0\273\377\22\0\35\377\203\0\0\0\377\1\0\0\0\216" "\317\0\0\0\0\2\0\0\0\25\0\0\0\307\205\0\0\0\377\2*\0D\377x\0\301\377" "\337\177\0\314\377\2m\0\257\377\12\0\21\377\203\0\0\0\377\1\0\0\0`\315" "\0\0\0\0\2\0\0\0%\0\0\0\333\204\0\0\0\377\2\1\0\2\377F\0p\377\253\177" "\0\314\377\20\200\0\314\360\200\0\313\306\200\0\315\242\177\0\315\211" "~\0\314o\200\0\315f\200\0\314Z~\0\314U~\0\313c\200\0\314t~\0\315u\200" "\0\314\220\200\0\314\252\177\0\314\303\177\0\314\335\177\0\314\367\247" "\177\0\314\377\2_\0\230\377\3\0\5\377\202\0\0\0\377\2\0\0\0\365\0\0\0" ")\313\0\0\0\0\2\0\0\0""9\0\0\0\353\204\0\0\0\377\2\4\0\7\377V\0\212\377" "\247\177\0\314\377\5\177\0\314\371\177\0\314\303\177\0\313\205\200\0" "\313J{\0\316\37\220\0\0\0\0\5\200\0\314\36\200\0\313J~\0\315\177\177" "\0\314\263\200\0\314\350\243\177\0\314\377\1I\0v\377\203\0\0\0\377\2" "\0\0\0\321\0\0\0\10\311\0\0\0\0\2\0\0\0""7\0\0\0\360\204\0\0\0\377\2" "\12\0\20\377c\0\236\377\245\177\0\314\377\4\177\0\314\321\177\0\314\203" "\200\0\315Bq\0\306\11\231\0\0\0\0\4\200\0\316*\200\0\314j\177\0\314\253" "\177\0\314\357\240\177\0\314\377\1*\0D\377\203\0\0\0\377\1\0\0\0\216" "\310\0\0\0\0\2\0\0\0""2\0\0\0\360\204\0\0\0\377\2\20\0\32\377m\0\257" "\377\242\177\0\314\377\4\177\0\314\375\177\0\314\303~\0\314s\200\0\313" "\"\240\0\0\0\0\4\200\0\325\6~\0\313E\200\0\314\226\177\0\314\351\235" "\177\0\314\377\2w\0\277\377\17\0\31\377\202\0\0\0\377\2\0\0\0\373\0\0" "\0+\306\0\0\0\0\2\0\0\0-\0\0\0\353\204\0\0\0\377\2\16\0\26\377o\0\262" "\377\241\177\0\314\377\3\200\0\314\342~\0\314}\200\0\314\36\246\0\0\0" "\0\3f\0\314\5\200\0\313X\200\0\314\314\234\177\0\314\377\1^\0\227\377" "\203\0\0\0\377\1\0\0\0\271\305\0\0\0\0\2\0\0\0$\0\0\0\352\204\0\0\0\377" "\2\14\0\24\377m\0\256\377\240\177\0\314\377\3\177\0\314\317~\0\313Y\200" "\0\277\4\253\0\0\0\0\2\200\0\313@\177\0\315\305\233\177\0\314\377\1)" "\0B\377\203\0\0\0\377\1\0\0\0J\303\0\0\0\0\2\0\0\0\17\0\0\0\326\204\0" "\0\0\377\2\12\0\21\377j\0\252\377\237\177\0\314\377\3\177\0\314\277\200" "\0\315H\0\0\377\1\257\0\0\0\0\2~\0\313O\200\0\314\326\231\177\0\314\377" "\2o\0\262\377\4\0\6\377\202\0\0\0\377\1\0\0\0\312\302\0\0\0\0\2\0\0\0" "\3\0\0\0\263\204\0\0\0\377\2\5\0\10\377e\0\242\377\236\177\0\314\377" "\2\200\0\314\310\200\0\313@\263\0\0\0\0\3\200\0\325\6\200\0\314~\177" "\0\314\371\230\177\0\314\377\1""7\0X\377\203\0\0\0\377\1\0\0\0@\301\0" "\0\0\0\1\0\0\0\207\204\0\0\0\377\2\0\0\1\377S\0\205\377\235\177\0\314" "\377\3\200\0\314\334~\0\313Y\0\0\377\1\266\0\0\0\0\2\200\0\3164\200\0" "\314\336\227\177\0\314\377\2r\0\267\377\3\0\5\377\202\0\0\0\377\1\0\0" "\0\270\300\0\0\0\0\2\0\0\0X\0\0\0\376\204\0\0\0\377\1;\0^\377\234\177" "\0\314\377\3\177\0\314\363~\0\314s\200\0\325\6\271\0\0\0\0\2\200\0\312" "\30\177\0\314\317\227\177\0\314\377\1/\0K\377\203\0\0\0\377\1\0\0\0""9" "\276\0\0\0\0\2\0\0\0""2\0\0\0\365\204\0\0\0\377\2%\0;\377~\0\312\377" "\233\177\0\314\377\2\177\0\314\265{\0\316\37\274\0\0\0\0\2\200\0\317" "\20\200\0\315\300\226\177\0\314\377\1g\0\245\377\203\0\0\0\377\1\0\0" "\0\251\275\0\0\0\0\2\0\0\0\24\0\0\0\343\204\0\0\0\377\2\23\0\37\377x" "\0\300\377\232\177\0\314\377\2\177\0\314\351\200\0\314Z\277\0\0\0\0\2" "\200\0\314\12\200\0\314\310\226\177\0\314\377\1'\0\77\377\202\0\0\0\377" "\2\0\0\0\352\0\0\0\6\274\0\0\0\0\1\0\0\0\253\204\0\0\0\377\2\7\0\14\377" "l\0\256\377\232\177\0\314\377\2\200\0\314\276\200\0\312\30\301\0\0\0" "\0\2z\0\310\27\177\0\314\347\225\177\0\314\377\1O\0\177\377\203\0\0\0" "\377\1\0\0\0N\273\0\0\0\0\1\0\0\0T\205\0\0\0\377\1Q\0\202\377\231\177" "\0\314\377\3\177\0\314\375~\0\314}U\0\252\3\303\0\0\0\0\2~\0\315G\200" "\0\314\376\224\177\0\314\377\2y\0\302\377\5\0\10\377\202\0\0\0\377\1" "\0\0\0\245\272\0\0\0\0\2\0\0\0\24\0\0\0\351\204\0\0\0\377\1$\0:\377\231" "\177\0\314\377\2\177\0\314\367\200\0\313T\306\0\0\0\0\1\177\0\314\245" "\225\177\0\314\377\1*\0D\377\202\0\0\0\377\2\0\0\0\354\0\0\0\2\271\0" "\0\0\0\1\0\0\0\247\204\0\0\0\377\2\7\0\14\377q\0\266\377\230\177\0\314" "\377\2\177\0\314\353\200\0\312:\245\0\0\0\0\1\0\0\0\34\202\0\0\0""3\2" "\0\0\0#\0\0\0\3\235\0\0\0\0\2\200\0\314\36\177\0\314\365\224\177\0\314" "\377\1O\0~\377\203\0\0\0\377\1\0\0\0""5\270\0\0\0\0\1\0\0\0@\205\0\0" "\0\377\1N\0}\377\230\177\0\314\377\2\177\0\314\333|\0\317%\243\0\0\0" "\0\12\0\0\0\12\0\0\0z\3\0\7\340!\0""5\373<\0a\345B\0j\3457\0X\366\"\0" "6\362\3\0\5\234\0\0\0\36\234\0\0\0\0\1\200\0\314\222\224\177\0\314\377" "\1q\0\266\377\203\0\0\0\377\1\0\0\0o\270\0\0\0\0\1\0\0\0\305\204\0\0" "\0\377\2\32\0*\377\177\0\313\377\227\177\0\314\377\2\177\0\314\327\200" "\0\321\26\243\0\0\0\0\14\0\0\0*\1\0\2\327>\0d\344{\0\306\360\177\0\313" "\323\177\0\315\223\200\0\314x\200\0\314\226y\0\302\337x\0\300\370:\0" "^\372\5\0\10f\233\0\0\0\0\2\200\0\315$\177\0\314\375\224\177\0\314\377" "\1\12\0\21\377\202\0\0\0\377\1\0\0\0\243\267\0\0\0\0\1\0\0\0K\205\0\0" "\0\377\1[\0\222\377\227\177\0\314\377\2\177\0\314\333{\0\320\33\211\0" "\0\0\0\1\0\0\0,\215\0\0\0\273\1\0\0\0\13\213\0\0\0\0\16\0\0\0\33\3\0" "\6\347c\0\240\337\177\0\313\327l\0\257I\0\0\0h\0\0\0\227\0\0\0\230\0" "\0\0x\0\0\0%\200\0\312:w\0\276\335]\0\226\374\17\0\30t\233\0\0\0\0\1" "\200\0\314\264\224\177\0\314\377\1!\0""5\377\202\0\0\0\377\1\0\0\0\323" "\266\0\0\0\0\2\0\0\0\1\0\0\0\316\204\0\0\0\377\1\36\0""1\377\227\177" "\0\314\377\2\177\0\314\337{\0\312\35\212\0\0\0\0\1\0\0\0<\202\0\0\0\377" "\1Z\0\220\377\213\177\0\314\377\1\177\0\314\303\212\0\0\0\0\17\0\0\0" "\251R\0\204\333\200\0\314\310\31\0+H\21\0\34\355Z\0\221\356|\0\307\370" "}\0\311\371u\0\275\366R\0\203\375\40\0""2\230f\0\263\12r\0\267\314Y\0" "\216\375\0\0\6.\232\0\0\0\0\1~\0\315W\224\177\0\314\377\1""7\0Y\377\202" "\0\0\0\377\2\0\0\0\367\0\0\0\2\265\0\0\0\0\1\0\0\0S\205\0\0\0\377\1`" "\0\232\377\226\177\0\314\377\2\200\0\314\346\200\0\313\"\213\0\0\0\0" "\1\0\0\0<\202\0\0\0\377\1Z\0\220\377\213\177\0\314\377\1\177\0\314\303" "\211\0\0\0\0\20\0\0\0\37\17\0\30\373~\0\313\364N\0\2004\20\0\32\353z" "\0\304\365\200\0\315\216{\0\320\33\0\0\377\1|\0\315)m\0\257\242x\0\301" "\375/\0L\235\200\0\317\20v\0\275\3633\0R\303\232\0\0\0\0\2w\0\314\17" "\200\0\314\374\223\177\0\314\377\1O\0~\377\203\0\0\0\377\1\0\0\0\37\265" "\0\0\0\0\1\0\0\0\316\204\0\0\0\377\1!\0""6\377\226\177\0\314\377\2\177" "\0\314\371}\0\3169\214\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377\213" "\177\0\314\377\1\177\0\314\303\211\0\0\0\0\21\0\0\0iC\0m\343\177\0\315" "\247\0\0\0}_\0\231\355\200\0\313\224\0\0\0[/\0L\363E\0o\373=\0b\303\0" "\0@\4^\0\226\213p\0\265\376\32\0,\35d\0\240\204`\0\233\376\0\0\0\14\232" "\0\0\0\0\1\177\0\314\307\223\177\0\314\377\1d\0\241\377\203\0\0\0\377" "\1\0\0\0D\264\0\0\0\0\1\0\0\0A\205\0\0\0\377\1\\\0\223\377\226\177\0" "\314\377\1\200\0\315f\215\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377" "\213\177\0\314\377\1\177\0\314\303\211\0\0\0\0\21\0\0\0\207`\0\231\342" "\200\0\313v\3\0\6\270|\0\310\372\200\0\311&,\0F\366v\0\276\366e\0\243" "\223q\0\265\373T\0\207\264\0\0\0\0l\0\256\367F\0p\226x\0\277\40|\0\307" "\377\22\0\35G\232\0\0\0\0\1\200\0\314\226\223\177\0\314\377\1w\0\276" "\377\203\0\0\0\377\1\0\0\0h\264\0\0\0\0\1\0\0\0\260\204\0\0\0\377\2\25" "\0\"\377\177\0\313\377\225\177\0\314\377\2\177\0\314\271\0\0\377\1\215" "\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377\213\177\0\314\377\1\177" "\0\314\303\211\0\0\0\0\21\0\0\0\200`\0\233\347~\0\314w\3\0\6\250~\0\312" "\375|\0\314#:\0\\\317\177\0\314\377o\0\263\2478\0Z\247r\0\266\364\0\0" "\0\0X\0\217\341U\0\211\305\0\0\0\0\177\0\314\377(\0Be\232\0\0\0\0\1~" "\0\314i\224\177\0\314\377\1\11\0\16\377\202\0\0\0\377\1\0\0\0\211\263" "\0\0\0\0\2\0\0\0\36\0\0\0\375\204\0\0\0\377\1E\0o\377\225\177\0\314\377" "\2\200\0\314\362\200\0\314\36\216\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0" "\220\377\213\177\0\314\377\1\177\0\314\303\211\0\0\0\0\21\0\0\0IC\0k" "\365~\0\313\242\0\0\0J`\0\231\372n\0\260\224\0\0$\7p\0\263Tf\0\252\36" ";\0_\334p\0\263\344\0\0\0\0Z\0\221\354V\0\213\262U\0\252\6\177\0\314" "\377-\0I[\232\0\0\0\0\1\200\0\314<\224\177\0\314\377\1\25\0\"\377\202" "\0\0\0\377\1\0\0\0\236\263\0\0\0\0\1\0\0\0\201\204\0\0\0\377\2\2\0\4" "\377t\0\272\377\225\177\0\314\377\1~\0\313g\217\0\0\0\0\1\0\0\0<\202" "\0\0\0\377\1Z\0\220\377\213\177\0\314\377\1\177\0\314\303\211\0\0\0\0" "\21\0\0\0\4\26\0$\344|\0\307\367\200\0\316\32#\0""7\241v\0\276\376`\0" "\232\332C\0k\254H\0t\351z\0\304\375m\0\257Y\34\0--t\0\272\377S\0\210" "MO\0\201Qw\0\277\377\0\0\15\24\232\0\0\0\0\1\200\0\313\"\224\177\0\314" "\377\1\40\0""3\377\202\0\0\0\377\1\0\0\0\261\263\0\0\0\0\205\0\0\0\377" "\1/\0L\377\225\177\0\314\377\2\200\0\315\300\0\0\377\1\217\0\0\0\0\1" "\0\0\0<\202\0\0\0\377\1Z\0\220\377\213\177\0\314\377\1\177\0\314\303" "\212\0\0\0\0\17\0\0\0SM\0|\373v\0\276\324v\0\304\15$\0;NR\0\205\303b" "\0\235\332`\0\233\277m\0\2628\0\0\25\14T\0\210\351g\0\244\344\0\0\0\0" "X\0\215\307W\0\213\340\215\0\0\0\0\1\0\0\0\17\215\0\0\0\0\1t\0\321\13" "\224\177\0\314\377\1)\0B\377\202\0\0\0\377\1\0\0\0\307\213\0\0\0\0\1" "\0\0\377\1\203\0\0\0\0\1\0\0\0\17\242\0\0\0\0\1\0\0\0L\205\0\0\0\377" "\226\177\0\314\377\1}\0\3169\220\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0" "\220\377\213\177\0\314\377\1\177\0\314\303\213\0\0\0\0\16\11\0\15wY\0" "\217\375t\0\272\355h\0\250im\0\333\7\0\0\0\0\0\0\0\3:\0]v`\0\232\365" "o\0\262\365Q\0\206&F\0pIx\0\302\3765\0W[\213\0\0\0\0\4v\0\304\15x\0\301" "\3042\0P\354\0\0\0\204\215\0\0\0\0\1\200\0\314\370\223\177\0\314\377" "\1""2\0Q\377\202\0\0\0\377\1\0\0\0\331\212\0\0\0\0\7\200\0\315`\200\0" "\314\270t\0\321\13\0\0\0\0\0\0\0""1\0\0\0\350\0\0\0s\241\0\0\0\0\1\0" "\0\0\222\204\0\0\0\377\2\13\0\22\377}\0\311\377\224\177\0\314\377\1\177" "\0\314\263\221\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377\213\177\0" "\314\377\1\177\0\314\303\214\0\0\0\0\14\4\0\11:9\0]\325g\0\246\376{\0" "\306\376m\0\260\367v\0\276\376t\0\271\375Y\0\216\276P\0\217\20C\0j5q" "\0\265\373M\0|\307\213\0\0\0\0\7\200\0\306\22y\0\303\323\177\0\314\377" "\177\0\313\3775\0U\377\0\0\0\225\0\0\0\1\213\0\0\0\0\1\177\0\314\345" "\223\177\0\314\377\1>\0c\377\202\0\0\0\377\1\0\0\0\354\211\0\0\0\0\6" "\200\0\314n\200\0\314\376\177\0\314\377\177\0\314\307\34\0""1I\0\0\0" "\360\202\0\0\0\377\1\0\0\0\203\237\0\0\0\0\2\0\0\0\6\0\0\0\354\204\0" "\0\0\377\1""9\0\\\377\225\177\0\314\377\1}\0\3131\221\0\0\0\0\1\0\0\0" "<\202\0\0\0\377\1Z\0\220\377\213\177\0\314\377\1\177\0\314\303\216\0" "\0\0\0\5\0\0\0\17\26\0(98\0XN+\0H5\0\0\0\1\202\0\0\0\0\3A\0h\232N\0~" "\321\0\0\0\3\212\0\0\0\0\2z\0\314\31y\0\303\335\204\177\0\314\377\3=" "\0b\377\0\0\0\242\0\0\0\4\212\0\0\0\0\1\200\0\314\326\223\177\0\314\377" "\1C\0l\377\202\0\0\0\377\1\0\0\0\366\210\0\0\0\0\1\200\0\314~\204\177" "\0\314\377\2i\0\247\375\13\0\22\377\203\0\0\0\377\2\0\0\0\222\0\0\0\1" "\235\0\0\0\0\1\0\0\0S\205\0\0\0\377\1h\0\247\377\224\177\0\314\377\1" "\177\0\315\305\222\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377\213\177" "\0\314\377\1\177\0\314\303\241\0\0\0\0\2\200\0\317\40z\0\303\346\206" "\177\0\314\377\3D\0n\377\0\0\1\260\0\0\0\7\211\0\0\0\0\1\200\0\314\322" "\223\177\0\314\377\1C\0l\377\203\0\0\0\377\206\0\0\0\0\2\0\0\377\1\200" "\0\315\216\206\177\0\314\377\2m\0\256\377\17\0\31\377\203\0\0\0\377\2" "\0\0\0\241\0\0\0\3\234\0\0\0\0\1\0\0\0\245\204\0\0\0\377\1\21\0\34\377" "\225\177\0\314\377\1~\0\315e\222\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0" "\220\377\213\177\0\314\377\1\177\0\314\303\240\0\0\0\0\2|\0\315){\0\305" "\355\210\177\0\314\377\3L\0z\377\1\0\3\275\0\0\0\14\210\0\0\0\0\1\200" "\0\314\322\223\177\0\314\377\1C\0l\377\203\0\0\0\377\205\0\0\0\0\2U\0" "\252\3\200\0\314\234\210\177\0\314\377\2p\0\264\377\24\0\40\377\203\0" "\0\0\377\2\0\0\0\256\0\0\0\7\232\0\0\0\0\2\0\0\0\2\0\0\0\354\204\0\0" "\0\377\1""5\0V\377\224\177\0\314\377\2\200\0\314\364\200\0\310\16\222" "\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377\213\177\0\314\377\1\177" "\0\314\303\214\0\0\0\0\1H\0v_\207v\0\276\311\1u\0\273\250\212\0\0\0\0" "\2}\0\3153{\0\305\363\212\177\0\314\377\3S\0\205\377\4\0\6\310\0\0\0" "\21\207\0\0\0\0\1\200\0\314\322\223\177\0\314\377\1C\0l\377\203\0\0\0" "\377\204\0\0\0\0\2\200\0\325\6\200\0\314\252\212\177\0\314\377\2t\0\272" "\377\30\0'\377\203\0\0\0\377\2\0\0\0\273\0\0\0\13\231\0\0\0\0\1\0\0\0" "7\205\0\0\0\377\1Z\0\220\377\224\177\0\314\377\1\177\0\314\245\223\0" "\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377\213\177\0\314\377\1\177\0" "\314\303\214\0\0\0\0\1%\0<\377\207\177\0\314\377\1o\0\261\362\211\0\0" "\0\0\2|\0\315)|\0\307\367\214\177\0\314\377\3Z\0\220\377\5\0\10\324\0" "\0\0\30\206\0\0\0\0\1\200\0\314\322\223\177\0\314\377\1J\0v\377\203\0" "\0\0\377\203\0\0\0\0\2\200\0\314\12\200\0\315\266\214\177\0\314\377\2" "w\0\277\377\24\0\40\377\203\0\0\0\377\2\0\0\0\306\0\0\0\21\230\0\0\0" "\0\1\0\0\0\177\204\0\0\0\377\2\3\0\6\377{\0\305\377\224\177\0\314\377" "\1}\0\312\77\223\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377\213\177" "\0\314\377\1\177\0\314\303\214\0\0\0\0\1%\0<\377\207\177\0\314\377\1" "o\0\261\362\211\0\0\0\0\2\200\0\377\2b\0\236\303\215\177\0\314\377\3" "_\0\231\377\10\0\15\334\0\0\0\37\205\0\0\0\0\1\200\0\314\322\223\177" "\0\314\377\1H\0s\377\203\0\0\0\377\202\0\0\0\0\2w\0\314\17\177\0\314" "\303\215\177\0\314\377\2I\0v\377\0\0\1\377\203\0\0\0\377\2\0\0\0\305" "\0\0\0\20\230\0\0\0\0\1\0\0\0\301\204\0\0\0\377\1\35\0.\377\224\177\0" "\314\377\2\177\0\314\333\0\0\377\1\223\0\0\0\0\1\0\0\0<\202\0\0\0\377" "\1Z\0\220\377\213\177\0\314\377\1\177\0\314\303\214\0\0\0\0\1%\0<\377" "\207\177\0\314\377\1o\0\261\362\213\0\0\0\0\1_\0\231\264\215\177\0\314" "\377\3e\0\242\377\12\0\21\345\0\0\0(\204\0\0\0\0\1\200\0\314\332\223" "\177\0\314\377\1C\0l\377\202\0\0\0\377\4\0\0\0\372\0\0\0\0y\0\316\25" "\177\0\314\315\215\177\0\314\377\1B\0j\377\204\0\0\0\377\2\0\0\0\271" "\0\0\0\13\230\0\0\0\0\2\0\0\0\4\0\0\0\365\204\0\0\0\377\1""9\0[\377\224" "\177\0\314\377\1\177\0\314\207\224\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z" "\0\220\377\213\177\0\314\377\1\177\0\314\303\214\0\0\0\0\1%\0<\377\207" "\177\0\314\377\1o\0\261\362\214\0\0\0\0\2^\0\226\243\177\0\313\377\214" "\177\0\314\377\3j\0\252\377\16\0\27\353\0\0\0""2\203\0\0\0\0\1\177\0" "\314\343\223\177\0\314\377\1<\0`\377\202\0\0\0\377\3\0\0\0\360\200\0" "\310\34\177\0\314\327\214\177\0\314\377\2\177\0\313\3779\0\\\377\204" "\0\0\0\377\2\0\0\0\256\0\0\0\6\231\0\0\0\0\1\0\0\0""3\205\0\0\0\377\1" "U\0\211\377\224\177\0\314\377\1\200\0\316>\224\0\0\0\0\1\0\0\0<\202\0" "\0\0\377\1Z\0\220\377\213\177\0\314\377\1\177\0\314\303\214\0\0\0\0\1" "%\0<\377\207\177\0\314\377\1o\0\261\362\215\0\0\0\0\2\\\0\223\220~\0" "\312\377\214\177\0\314\377\3o\0\262\377\21\0\33\362\0\0\0<\202\0\0\0" "\0\1\200\0\314\360\223\177\0\314\377\1""7\0Y\377\202\0\0\0\377\2\24\0" "!\346\177\0\314\337\214\177\0\314\377\2~\0\312\3773\0R\377\204\0\0\0" "\377\2\0\0\0\237\0\0\0\3\232\0\0\0\0\1\0\0\0k\205\0\0\0\377\1q\0\266" "\377\223\177\0\314\377\2\200\0\314\360f\0\314\5\224\0\0\0\0\1\0\0\0<" "\202\0\0\0\377\1Z\0\220\377\213\177\0\314\377\1\177\0\314\303\214\0\0" "\0\0\1%\0<\377\207\177\0\314\377\1o\0\261\362\216\0\0\0\0\2Z\0\221\200" "}\0\310\377\214\177\0\314\377\5s\0\270\377\26\0#\367\0\0\0I\0\0\0\0\177" "\0\314\373\223\177\0\314\377\4""3\0R\377\0\0\0\377\26\0$\377u\0\274\373" "\214\177\0\314\377\2|\0\307\377+\0F\377\204\0\0\0\377\2\0\0\0\221\0\0" "\0\1\233\0\0\0\0\1\0\0\0\243\204\0\0\0\377\1\14\0\23\377\224\177\0\314" "\377\1\200\0\314\256\225\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377" "\213\177\0\314\377\1\177\0\314\303\214\0\0\0\0\1%\0<\377\207\177\0\314" "\377\1o\0\261\362\217\0\0\0\0\2X\0\220n{\0\307\376\214\177\0\314\377" "\3v\0\275\377\33\0+\372\16\0\26[\224\177\0\314\377\3-\0H\377\34\0-\377" "v\0\276\377\214\177\0\314\377\2{\0\305\377%\0<\377\204\0\0\0\377\1\0" "\0\0\201\235\0\0\0\0\1\0\0\0\324\204\0\0\0\377\1\"\0""7\377\224\177\0" "\314\377\1\200\0\314r\225\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377" "\213\177\0\314\377\1\177\0\314\303\214\0\0\0\0\1%\0<\377\207\177\0\314" "\377\1o\0\261\362\220\0\0\0\0\2W\0\215^z\0\304\375\214\177\0\314\377" "\2y\0\302\377+\0F\375\224\177\0\314\377\2=\0b\377y\0\302\377\214\177" "\0\314\377\2x\0\301\377\37\0""2\377\203\0\0\0\377\2\0\0\0\376\0\0\0q" "\235\0\0\0\0\2\0\0\0\5\0\0\0\372\204\0\0\0\377\1""8\0Z\377\224\177\0" "\314\377\1\200\0\312:\225\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377" "\213\177\0\314\377\1\177\0\314\303\214\0\0\0\0\1%\0<\377\207\177\0\314" "\377\1o\0\261\362\221\0\0\0\0\2X\0\215Nw\0\300\374\214\177\0\314\377" "\1|\0\306\377\224\177\0\314\377\1|\0\307\377\214\177\0\314\377\2u\0\274" "\377\32\0*\377\203\0\0\0\377\2\0\0\0\374\0\0\0c\236\0\0\0\0\1\0\0\0-" "\205\0\0\0\377\1N\0}\377\223\177\0\314\377\2\177\0\314\371\200\0\277" "\10\225\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377\213\177\0\314\377" "\1\177\0\314\303\214\0\0\0\0\1%\0<\377\207\177\0\314\377\1o\0\261\362" "\222\0\0\0\0\2Y\0\216\77u\0\274\372\254\177\0\314\377\2r\0\267\377\24" "\0!\377\203\0\0\0\377\2\0\0\0\371\0\0\0U\237\0\0\0\0\1\0\0\0W\205\0\0" "\0\377\1c\0\237\377\223\177\0\314\377\1\177\0\314\311\226\0\0\0\0\1\0" "\0\0<\202\0\0\0\377\1Z\0\220\377\213\177\0\314\377\1\177\0\314\303\214" "\0\0\0\0\1%\0<\377\207\177\0\314\377\1o\0\261\362\223\0\0\0\0\2X\0\222" "1r\0\267\370\252\177\0\314\377\2n\0\260\377\20\0\32\377\203\0\0\0\377" "\2\0\0\0\365\0\0\0I\240\0\0\0\0\1\0\0\0\204\205\0\0\0\377\1y\0\302\377" "\223\177\0\314\377\1\177\0\315\223\226\0\0\0\0\1\0\0\0<\202\0\0\0\377" "\1Z\0\220\377\213\177\0\314\377\1\177\0\314\303\214\0\0\0\0\1%\0<\377" "\207\177\0\314\377\1o\0\261\362\224\0\0\0\0\2\\\0\225$p\0\263\364\250" "\177\0\314\377\2j\0\252\377\14\0\24\377\203\0\0\0\377\2\0\0\0\360\0\0" "\0<\241\0\0\0\0\1\0\0\0\256\204\0\0\0\377\1\15\0\25\377\224\177\0\314" "\377\1\200\0\315f\226\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377\213" "\177\0\314\377\1\177\0\314\303\214\0\0\0\0\1%\0<\377\207\177\0\314\377" "\1o\0\261\362\225\0\0\0\0\2b\0\235\32m\0\256\357\246\177\0\314\377\2" "d\0\241\377\11\0\16\377\203\0\0\0\377\2\0\0\0\352\0\0\0""2\242\0\0\0" "\0\1\0\0\0\323\204\0\0\0\377\1\36\0""1\377\224\177\0\314\377\1\200\0" "\314<\226\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377\213\177\0\314\377" "\1\177\0\314\303\214\0\0\0\0\1%\0<\377\207\177\0\314\377\1o\0\261\362" "\226\0\0\0\0\2i\0\245\21j\0\251\350\244\177\0\314\377\2_\0\231\377\6" "\0\12\377\203\0\0\0\377\2\0\0\0\343\0\0\0(\242\0\0\0\0\2\0\0\0\1\0\0" "\0\367\204\0\0\0\377\1/\0L\377\224\177\0\314\377\1w\0\314\17\226\0\0" "\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377\213\177\0\314\377\1\177\0\314" "\303\214\0\0\0\0\1%\0<\377\207\177\0\314\377\1o\0\261\362\227\0\0\0\0" "\2t\0\271\13g\0\245\336\242\177\0\314\377\2Y\0\216\377\4\0\6\377\203" "\0\0\0\377\2\0\0\0\332\0\0\0\40\243\0\0\0\0\1\0\0\0\34\205\0\0\0\377" "\1@\0g\377\223\177\0\314\377\1\177\0\314\343\227\0\0\0\0\1\0\0\0<\202" "\0\0\0\377\1Z\0\220\377\213\177\0\314\377\1\177\0\314\303\214\0\0\0\0" "\1%\0<\377\207\177\0\314\377\1o\0\261\362\230\0\0\0\0\2\200\0\325\6e" "\0\241\324\240\177\0\314\377\2R\0\204\377\2\0\4\377\203\0\0\0\377\2\0" "\0\0\322\0\0\0\30\244\0\0\0\0\1\0\0\0<\205\0\0\0\377\1P\0\201\377\223" "\177\0\314\377\1\200\0\314\276\227\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z" "\0\220\377\213\177\0\314\377\1\177\0\314\303\214\0\0\0\0\1%\0<\377\207" "\177\0\314\377\1o\0\261\362\231\0\0\0\0\2U\0\252\3c\0\236\307\236\177" "\0\314\377\2K\0y\377\1\0\2\377\203\0\0\0\377\2\0\0\0\307\0\0\0\22\245" "\0\0\0\0\1\0\0\0^\205\0\0\0\377\1`\0\232\377\223\177\0\314\377\1\200" "\0\314\234\227\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377\213\177\0" "\314\377\1\177\0\314\303\214\0\0\0\0\1%\0<\377\207\177\0\314\377\1o\0" "\261\362\232\0\0\0\0\2\0\0\377\1`\0\232\271\234\177\0\314\377\2D\0m\377" "\0\0\1\377\203\0\0\0\377\2\0\0\0\275\0\0\0\14\246\0\0\0\0\1\0\0\0~\205" "\0\0\0\377\1q\0\266\377\223\177\0\314\377\1\200\0\314|\227\0\0\0\0\1" "\0\0\0<\202\0\0\0\377\1Z\0\220\377\213\177\0\314\377\1\177\0\314\303" "\214\0\0\0\0\1%\0<\377\207\177\0\314\377\1o\0\261\362\234\0\0\0\0\1^" "\0\227\246\232\177\0\314\377\1<\0`\377\204\0\0\0\377\2\0\0\0\260\0\0" "\0\7\247\0\0\0\0\1\0\0\0\237\204\0\0\0\377\2\3\0\5\377~\0\312\377\223" "\177\0\314\377\1\200\0\315\\\227\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0" "\220\377\213\177\0\314\377\1\177\0\314\303\214\0\0\0\0\1%\0<\377\207" "\177\0\314\377\1o\0\261\362\235\0\0\0\0\2\\\0\224\226\177\0\313\377\226" "\177\0\314\377\2~\0\312\3774\0S\377\204\0\0\0\377\2\0\0\0\244\0\0\0\4" "\250\0\0\0\0\1\0\0\0\301\204\0\0\0\377\1\20\0\32\377\224\177\0\314\377" "\1\200\0\313@\227\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377\213\177" "\0\314\377\1\177\0\314\303\214\0\0\0\0\1%\0<\377\207\177\0\314\377\1" "o\0\261\362\236\0\0\0\0\2Z\0\220\203~\0\312\377\224\177\0\314\377\2}" "\0\311\377-\0I\377\204\0\0\0\377\2\0\0\0\225\0\0\0\1\251\0\0\0\0\1\0" "\0\0\341\204\0\0\0\377\1\33\0+\377\224\177\0\314\377\1\200\0\314(\227" "\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377\213\177\0\314\377\1\177" "\0\314\303\214\0\0\0\0\1%\0<\377\207\177\0\314\377\1o\0\261\362\237\0" "\0\0\0\2Y\0\217r|\0\307\376\222\177\0\314\377\2{\0\306\377&\0>\377\204" "\0\0\0\377\1\0\0\0\205\253\0\0\0\0\1\0\0\0\371\204\0\0\0\377\1&\0>\377" "\224\177\0\314\377\1\200\0\314\24\227\0\0\0\0\1\0\0\0<\202\0\0\0\377" "\1Z\0\220\377\213\177\0\314\377\1\177\0\314\303\214\0\0\0\0\1%\0<\377" "\207\177\0\314\377\1o\0\261\362\240\0\0\0\0\2Y\0\216az\0\304\376\220" "\177\0\314\377\2y\0\302\377!\0""5\377\203\0\0\0\377\2\0\0\0\376\0\0\0" "v\253\0\0\0\0\1\0\0\0\20\205\0\0\0\377\1""1\0N\377\223\177\0\314\377" "\2\177\0\314\373\0\0\377\1\227\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220" "\377\213\177\0\314\377\1\177\0\314\303\214\0\0\0\0\1%\0<\377\207\177" "\0\314\377\1o\0\261\362\241\0\0\0\0\2X\0\221Qx\0\300\375\216\177\0\314" "\377\2v\0\276\377\33\0+\377\203\0\0\0\377\2\0\0\0\374\0\0\0g\254\0\0" "\0\0\1\0\0\0&\205\0\0\0\377\1<\0`\377\223\177\0\314\377\1\177\0\314\347" "\230\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377\213\177\0\314\377\1" "\177\0\314\303\214\0\0\0\0\1%\0<\377\207\177\0\314\377\1o\0\261\362\242" "\0\0\0\0\2X\0\221Cv\0\275\373\214\177\0\314\377\2s\0\270\377\26\0$\377" "\203\0\0\0\377\2\0\0\0\372\0\0\0Y\255\0\0\0\0\1\0\0\0;\205\0\0\0\377" "\1G\0r\377\223\177\0\314\377\1\177\0\314\321\230\0\0\0\0\1\0\0\0<\202" "\0\0\0\377\1Z\0\220\377\213\177\0\314\377\1\177\0\314\303\214\0\0\0\0" "\1%\0<\377\207\177\0\314\377\1o\0\261\362\243\0\0\0\0\2]\0\2234s\0\270" "\370\212\177\0\314\377\2o\0\262\377\21\0\34\377\203\0\0\0\377\2\0\0\0" "\366\0\0\0K\256\0\0\0\0\1\0\0\0Q\205\0\0\0\377\1Q\0\202\377\223\177\0" "\314\377\1\177\0\315\273\230\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220" "\377\213\177\0\314\377\1\177\0\314\303\214\0\0\0\0\1%\0<\377\207\177" "\0\314\377\1o\0\261\362\244\0\0\0\0\2]\0\225)p\0\264\365\210\177\0\314" "\377\2k\0\253\377\16\0\26\377\203\0\0\0\377\2\0\0\0\362\0\0\0@\257\0" "\0\0\0\1\0\0\0f\205\0\0\0\377\1X\0\216\377\223\177\0\314\377\1\200\0" "\314\260\230\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377\213\177\0\314" "\377\1\177\0\314\303\214\0\0\0\0\1#\0""8\377\207w\0\276\377\1i\0\250" "\356\245\0\0\0\0\2d\0\244\34m\0\257\360\206\177\0\314\377\2f\0\244\377" "\12\0\20\377\203\0\0\0\377\2\0\0\0\354\0\0\0""4\260\0\0\0\0\1\0\0\0}" "\205\0\0\0\377\1]\0\225\377\223\177\0\314\377\1\177\0\314\245\230\0\0" "\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377\213\177\0\314\377\1\177\0\314" "\303\214\0\0\0\0\210\0\0\0\377\1\0\0\0\264\246\0\0\0\0\2f\0\246\24k\0" "\254\351\204\177\0\314\377\2`\0\232\377\7\0\13\377\203\0\0\0\377\2\0" "\0\0\345\0\0\0+\261\0\0\0\0\1\0\0\0\207\205\0\0\0\377\1a\0\234\377\223" "\177\0\314\377\1\200\0\315\230\230\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z" "\0\220\377\213\177\0\314\377\1\177\0\314\303\214\0\0\0\0\210\0\0\0\377" "\1\0\0\0\264\247\0\0\0\0\2t\0\271\13h\0\247\342\202\177\0\314\377\2Z" "\0\221\377\5\0\10\377\203\0\0\0\377\2\0\0\0\336\0\0\0!\262\0\0\0\0\1" "\0\0\0\226\205\0\0\0\377\1i\0\250\377\223\177\0\314\377\1\177\0\313\217" "\230\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377\213\177\0\314\377\1" "\177\0\314\303\214\0\0\0\0\210\0\0\0w\1\0\0\0T\250\0\0\0\0\4\200\0\325" "\6f\0\244\327T\0\206\377\3\0\5\377\203\0\0\0\377\2\0\0\0\324\0\0\0\32" "\263\0\0\0\0\1\0\0\0\237\205\0\0\0\377\1m\0\257\377\223\177\0\314\377" "\1\200\0\314\206\230\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377\213" "\177\0\314\377\1\177\0\314\303\243\0\0\0\0\16m\0\333\7\200\0\314(~\0" "\315G\200\0\313b\200\0\314t\200\0\314|\200\0\314\210\177\0\314\221\200" "\0\313\200~\0\315k~\0\315Q}\0\313;\200\0\310\34\200\0\377\2\215\0\0\0" "\0\3U\0\252\3\2\0\4w\0\0\0\376\202\0\0\0\377\2\0\0\0\313\0\0\0\23\264" "\0\0\0\0\1\0\0\0\250\205\0\0\0\377\1r\0\266\377\223\177\0\314\377\1\200" "\0\314x\230\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377\213\177\0\314" "\377\1\177\0\314\303\236\0\0\0\0\6\200\0\314\36~\0\314_\200\0\314\214" "\177\0\314\265\200\0\314\334\200\0\314\374\214\177\0\314\377\5\200\0" "\314\372\200\0\314\330\177\0\314\245\200\0\313l\200\0\317\40\213\0\0" "\0\0\4\0\0\0f\0\0\0\374\0\0\0\277\0\0\0\15\265\0\0\0\0\1\0\0\0\264\205" "\0\0\0\377\1x\0\300\377\223\177\0\314\377\1\200\0\314n\230\0\0\0\0\1" "\0\0\0<\202\0\0\0\377\1Z\0\220\377\213\177\0\314\377\1\177\0\314\303" "\232\0\0\0\0\4t\0\321\13\200\0\315V\200\0\314\232\200\0\314\334\227\177" "\0\314\377\3\200\0\314\314\200\0\313lx\0\322\21\211\0\0\0\0\2\0\0\0D" "\0\0\0\11\266\0\0\0\0\1\0\0\0\300\205\0\0\0\377\1x\0\300\377\223\177" "\0\314\377\1~\0\314i\230\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377" "\213\177\0\314\377\1\177\0\314\303\227\0\0\0\0\4m\0\333\7~\0\313O\177" "\0\315\247\200\0\314\364\234\177\0\314\377\3\200\0\314\366\200\0\314" "\244}\0\315=\277\0\0\0\0\1\0\0\0\311\205\0\0\0\377\1x\0\300\377\223\177" "\0\314\377\1~\0\314w\230\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377" "\213\177\0\314\377\1\177\0\314\303\225\0\0\0\0\3}\0\3153\177\0\315\223" "\200\0\314\356\242\177\0\314\377\2\177\0\313\301\200\0\3164\275\0\0\0" "\0\1\0\0\0\322\205\0\0\0\377\1x\0\300\377\223\177\0\314\377\1\200\0\314" "x\230\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377\213\177\0\314\377\1" "\177\0\314\303\222\0\0\0\0\3\200\0\325\6~\0\315[\177\0\314\311\245\177" "\0\314\377\4}\0\312\360\200\0\314\366\200\0\314\226t\0\321\13\273\0\0" "\0\0\1\0\0\0\322\205\0\0\0\377\1x\0\300\377\223\177\0\314\377\1\200\0" "\314x\230\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377\213\177\0\314\377" "\1\177\0\314\303\220\0\0\0\0\3y\0\316\25~\0\315\177\177\0\314\347\246" "\177\0\314\377\2~\0\312\377u\0\274\377\202\177\0\314\377\2\200\0\314" "\334\200\0\314<\272\0\0\0\0\1\0\0\0\322\205\0\0\0\377\1x\0\300\377\223" "\177\0\314\377\1\200\0\314x\230\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220" "\377\213\177\0\314\377\1\177\0\314\303\216\0\0\0\0\3y\0\316\25\177\0" "\315\211\177\0\314\363\250\177\0\314\377\1v\0\276\377\204\177\0\314\377" "\3\177\0\314\375\200\0\313\200U\0\252\3\270\0\0\0\0\1\0\0\0\322\205\0" "\0\0\377\1u\0\273\377\223\177\0\314\377\1\200\0\314x\230\0\0\0\0\1\0" "\0\0<\202\0\0\0\377\1Z\0\220\377\213\177\0\314\377\1\177\0\314\303\214" "\0\0\0\0\3\200\0\317\20\200\0\314\210\177\0\314\363\251\177\0\314\377" "\202|\0\306\377\206\177\0\314\377\2~\0\311\276\200\0\317\20\267\0\0\0" "\0\1\0\0\0\304\205\0\0\0\377\1p\0\264\377\223\177\0\314\377\1\200\0\314" "x\230\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377\213\177\0\314\377\1" "\177\0\314\303\212\0\0\0\0\3\200\0\377\2\200\0\314j\177\0\314\353\253" "\177\0\314\377\1y\0\302\377\210\177\0\314\377\2{\0\305\332{\0\320\33" "\266\0\0\0\0\1\0\0\0\303\205\0\0\0\377\1n\0\260\377\223\177\0\314\377" "\1\177\0\314\203\230\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377\213" "\177\0\314\377\1\177\0\314\303\211\0\0\0\0\2}\0\312\77\200\0\314\316" "\254\177\0\314\377\2{\0\306\377\177\0\313\377\211\177\0\314\377\2y\0" "\302\356\200\0\316*\265\0\0\0\0\1\0\0\0\303\205\0\0\0\377\1g\0\245\377" "\223\177\0\314\377\1\177\0\314\221\230\0\0\0\0\1\0\0\0<\202\0\0\0\377" "\1Z\0\220\377\213\177\0\314\377\1\177\0\314\303\207\0\0\0\0\3w\0\314" "\17\200\0\314\232\200\0\314\376\254\177\0\314\377\2\177\0\313\377}\0" "\311\377\213\177\0\314\377\2x\0\300\370k\0\254+\264\0\0\0\0\1\0\0\0\303" "\205\0\0\0\377\1`\0\232\377\223\177\0\314\377\1\200\0\313\236\230\0\0" "\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377\213\177\0\314\377\1\177\0\314" "\303\206\0\0\0\0\2\200\0\313J\177\0\314\343\256\177\0\314\377\1\177\0" "\313\377\215\177\0\314\377\2n\0\260\364:\0c\37\263\0\0\0\0\1\0\0\0\274" "\205\0\0\0\377\1Y\0\217\377\223\177\0\314\377\1\200\0\315\254\230\0\0" "\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377\213\177\0\314\377\1\177\0\314" "\303\204\0\0\0\0\2t\0\321\13\200\0\314\234\277\177\0\314\377\2b\0\236" "\364\27\0'!\262\0\0\0\0\1\0\0\0\256\205\0\0\0\377\1R\0\204\377\223\177" "\0\314\377\1\200\0\314\272\230\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220" "\377\213\177\0\314\377\1\177\0\314\303\203\0\0\0\0\2\200\0\3142\200\0" "\314\330\301\177\0\314\377\2P\0\201\361\0\0\0\25\261\0\0\0\0\1\0\0\0" "\240\205\0\0\0\377\1K\0x\377\223\177\0\314\377\1\200\0\314\310\230\0" "\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377\213\177\0\314\377\5\177\0" "\314\303\0\0\0\0\0\0\377\1\200\0\314n\200\0\314\370\303\177\0\314\377" "\2=\0a\337\0\0\0\12\260\0\0\0\0\1\0\0\0\222\205\0\0\0\377\1D\0m\377\223" "\177\0\314\377\1\200\0\314\326\230\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z" "\0\220\377\213\177\0\314\377\3\177\0\314\303y\0\311\23\177\0\314\257" "\305\177\0\314\377\3|\0\306\377\34\0.\275\0\0\0\1\257\0\0\0\0\1\0\0\0" "\204\205\0\0\0\377\1""9\0\\\377\223\177\0\314\377\1\177\0\314\353\230" "\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377\213\177\0\314\377\2~\0\313" "\316\200\0\314\336\307\177\0\314\377\2d\0\241\377\2\0\4\210\257\0\0\0" "\0\1\0\0\0v\205\0\0\0\377\1+\0F\377\224\177\0\314\377\1\200\0\277\10" "\227\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377\213\177\0\314\377\1" "~\0\314\374\311\177\0\314\377\2;\0^\376\0\0\0Y\256\0\0\0\0\1\0\0\0h\205" "\0\0\0\377\1\35\0.\377\224\177\0\314\377\1|\0\317%\227\0\0\0\0\1\0\0" "\0<\202\0\0\0\377\1Z\0\220\377\261\177\0\314\377\11z\0\303\377f\0\244" "\377V\0\212\377Q\0\202\377L\0z\377E\0o\377O\0\177\377[\0\222\377p\0\263" "\377\233\177\0\314\377\3z\0\304\377\13\0\23\366\0\0\0+\255\0\0\0\0\1" "\0\0\0W\205\0\0\0\377\1\16\0\27\377\224\177\0\314\377\1~\0\316C\227\0" "\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377\255\177\0\314\377\4v\0\275" "\377V\0\212\3775\0V\377\25\0\"\377\211\0\0\0\377\3\20\0\32\3778\0Z\377" "s\0\270\377\231\177\0\314\377\3E\0n\377\0\0\0\311\0\0\0\3\254\0\0\0\0" "\1\0\0\0>\205\0\0\0\377\2\2\0\3\377~\0\312\377\223\177\0\314\377\1~\0" "\314_\227\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377\252\177\0\314\377" "\4r\0\267\377H\0s\377\33\0,\377\1\0\2\377\216\0\0\0\377\3\5\0\11\377" "E\0o\377}\0\311\377\227\177\0\314\377\3y\0\302\377\12\0\21\377\0\0\0" "v\254\0\0\0\0\1\0\0\0!\206\0\0\0\377\1q\0\266\377\223\177\0\314\377\1" "\200\0\314|\227\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377\247\177\0" "\314\377\4\177\0\313\377[\0\222\377$\0:\377\1\0\2\377\223\0\0\0\377\2" "\32\0*\377q\0\266\377\227\177\0\314\377\3A\0i\377\0\0\0\367\0\0\0'\253" "\0\0\0\0\2\0\0\0\6\0\0\0\376\205\0\0\0\377\1c\0\236\377\223\177\0\314" "\377\1\200\0\315\242\227\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377" "\245\177\0\314\377\3}\0\311\377N\0~\377\23\0\36\377\211\0\0\0\377\14" "\0\0\0\345\0\0\0\264\0\0\0\213\0\0\0j\0\0\0]\0\0\0U\0\0\0E\0\0\0J\0\0" "\0Y\0\0\0\205\0\0\0\274\0\0\0\367\202\0\0\0\377\2\16\0\27\377i\0\251" "\377\226\177\0\314\377\3u\0\274\377\4\0\7\377\0\0\0\251\254\0\0\0\0\1" "\0\0\0\350\205\0\0\0\377\1T\0\206\377\223\177\0\314\377\1\177\0\314\317" "\227\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377\243\177\0\314\377\3" "}\0\311\377O\0\177\377\21\0\33\377\207\0\0\0\377\4\0\0\0\353\0\0\0\252" "\0\0\0j\0\0\0(\213\0\0\0\0\2\0\0\0\14\0\0\0^\202\0\0\0\377\2\10\0\16" "\377d\0\241\377\226\177\0\314\377\3""2\0Q\377\0\0\0\375\0\0\0+\253\0" "\0\0\0\1\0\0\0\312\205\0\0\0\377\1B\0j\377\223\177\0\314\377\2\200\0" "\314\370\200\0\277\4\226\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377" "\242\177\0\314\377\2W\0\213\377\22\0\36\377\206\0\0\0\377\4\0\0\0\356" "\0\0\0\234\0\0\0D\0\0\0\3\220\0\0\0\0\5\0\0\0\6\0\0\0\201\0\0\0\373\12" "\0\21\377n\0\260\377\225\177\0\314\377\3d\0\241\377\0\0\0\377\0\0\0\247" "\253\0\0\0\0\1\0\0\0\255\205\0\0\0\377\1""0\0N\377\224\177\0\314\377" "\1\200\0\313,\226\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377\240\177" "\0\314\377\2j\0\252\377!\0""6\377\206\0\0\0\377\3\0\0\0\314\0\0\0_\0" "\0\0\7\225\0\0\0\0\4\0\0\0""6\0\0\0\347\35\0.\377~\0\312\377\225\177" "\0\314\377\3\22\0\35\377\0\0\0\375\0\0\0$\252\0\0\0\0\1\0\0\0\221\205" "\0\0\0\377\1\33\0+\377\224\177\0\314\377\1\200\0\314Z\226\0\0\0\0\1\0" "\0\0<\202\0\0\0\377\1Z\0\220\377\236\177\0\314\377\3z\0\303\3777\0X\377" "\2\0\3\377\205\0\0\0\377\2\0\0\0\267\0\0\0;\231\0\0\0\0\3\0\0\0\"\0\0" "\0\331H\0s\377\225\177\0\314\377\3\77\0e\377\0\0\0\377\0\0\0\222\252" "\0\0\0\0\1\0\0\0t\205\0\0\0\377\2\5\0\11\377~\0\312\377\223\177\0\314" "\377\1\177\0\314\207\226\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377" "\235\177\0\314\377\2^\0\226\377\20\0\32\377\205\0\0\0\377\2\0\0\0\271" "\0\0\0""9\234\0\0\0\0\3\0\0\0\25\6\0\13\316o\0\262\377\224\177\0\314" "\377\4i\0\250\377\0\0\0\377\0\0\0\363\0\0\0\20\251\0\0\0\0\1\0\0\0P\206" "\0\0\0\377\1m\0\257\377\223\177\0\314\377\1\200\0\314\272\226\0\0\0\0" "\1\0\0\0<\202\0\0\0\377\1Z\0\220\377\233\177\0\314\377\3z\0\304\3773" "\0R\377\0\0\1\377\204\0\0\0\377\2\0\0\0\307\0\0\0;\237\0\0\0\0\2\0\0" "\0\34""5\0T\356\224\177\0\314\377\4~\0\312\377\7\0\14\377\0\0\0\377\0" "\0\0i\251\0\0\0\0\1\0\0\0,\206\0\0\0\377\1W\0\213\377\223\177\0\314\377" "\2\200\0\314\362U\0\252\3\225\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220" "\377\232\177\0\314\377\2m\0\257\377\35\0/\377\204\10\0\16\377\3\11\0" "\17\350\24\0#fq\0\306\22\213x\0\322\21\1f\0\314\5\225\0\0\0\0\2\10\0" "\21=q\0\265\377\224\177\0\314\377\3#\0""9\377\0\0\0\377\0\0\0\303\251" "\0\0\0\0\2\0\0\0\11\0\0\0\373\205\0\0\0\377\1@\0f\377\224\177\0\314\377" "\1}\0\3153\225\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377\256\177\0" "\314\377\1~\0\314K\226\0\0\0\0\1T\0\207\310\224\177\0\314\377\4@\0g\377" "\0\0\0\377\0\0\0\376\0\0\0\37\251\0\0\0\0\1\0\0\0\325\205\0\0\0\377\1" "(\0A\377\224\177\0\314\377\1\200\0\315p\225\0\0\0\0\1\0\0\0<\202\0\0" "\0\377\1Z\0\220\377\256\177\0\314\377\1~\0\314K\226\0\0\0\0\1k\0\255" "2\224\177\0\314\377\1Y\0\216\377\202\0\0\0\377\1\0\0\0v\251\0\0\0\0\1" "\0\0\0\250\205\0\0\0\377\1\22\0\35\377\224\177\0\314\377\1\200\0\314" "\264\225\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377\256\177\0\314\377" "\1~\0\314K\227\0\0\0\0\1y\0\301\344\223\177\0\314\377\1j\0\252\377\202" "\0\0\0\377\1\0\0\0\267\251\0\0\0\0\1\0\0\0{\205\0\0\0\377\2\1\0\2\377" "w\0\277\377\223\177\0\314\377\2\177\0\314\365m\0\333\7\224\0\0\0\0\1" "\0\0\0<\202\0\0\0\377\1Z\0\220\377\256\177\0\314\377\1~\0\314K\227\0" "\0\0\0\1\200\0\314\234\223\177\0\314\377\5|\0\306\377\0\0\1\377\0\0\0" "\377\0\0\0\360\0\0\0\2\250\0\0\0\0\1\0\0\0M\206\0\0\0\377\1Z\0\220\377" "\224\177\0\314\377\1~\0\313E\224\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0" "\220\377\256\177\0\314\377\1""7\0Y\253\227\0\0\0\0\1~\0\313c\224\177" "\0\314\377\1\13\0\22\377\202\0\0\0\377\1\0\0\0+\250\0\0\0\0\1\0\0\0\36" "\206\0\0\0\377\1;\0_\377\224\177\0\314\377\1\200\0\315\216\224\0\0\0" "\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377\256\177\0\314\377\1%\0<\377\227" "\0\0\0\0\1\200\0\3120\224\177\0\314\377\1\31\0(\377\202\0\0\0\377\1\0" "\0\0c\251\0\0\0\0\1\0\0\0\360\205\0\0\0\377\1\35\0/\377\224\177\0\314" "\377\2\177\0\314\341\0\0\377\1\223\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z" "\0\220\377\256\177\0\314\377\1%\0<\377\227\0\0\0\0\1\200\0\306\22\224" "\177\0\314\377\1'\0>\377\202\0\0\0\377\1\0\0\0\215\251\0\0\0\0\1\0\0" "\0\302\205\0\0\0\377\2\2\0\4\377x\0\300\377\224\177\0\314\377\1}\0\314" "7\223\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377\256\177\0\314\377\1" "%\0<\377\230\0\0\0\0\1\200\0\314\366\223\177\0\314\377\1""3\0R\377\202" "\0\0\0\377\1\0\0\0\261\251\0\0\0\0\1\0\0\0\214\206\0\0\0\377\1V\0\212" "\377\224\177\0\314\377\1\200\0\314\214\223\0\0\0\0\1\0\0\0<\202\0\0\0" "\377\1Z\0\220\377\256\177\0\314\377\1%\0<\377\230\0\0\0\0\1\200\0\314" "\360\223\177\0\314\377\1""4\0T\377\202\0\0\0\377\1\0\0\0\323\251\0\0" "\0\0\1\0\0\0O\206\0\0\0\377\1""2\0Q\377\224\177\0\314\377\2\177\0\314" "\345\200\0\277\4\222\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377\256" "\177\0\314\377\1%\0<\377\230\0\0\0\0\1\177\0\314\375\223\177\0\314\377" "\1""4\0T\377\202\0\0\0\377\1\0\0\0\357\251\0\0\0\0\2\0\0\0\24\0\0\0\376" "\205\0\0\0\377\2\16\0\26\377\177\0\313\377\224\177\0\314\377\1~\0\314" "K\222\0\0\0\0\1\0\0\0<\202\0\0\0\377\1Z\0\220\377\256\177\0\314\377\1" "%\0<\377\230\0\0\0\0\224\177\0\314\377\1""4\0T\377\203\0\0\0\377\1\0" "\0\0\14\251\0\0\0\0\1\0\0\0\326\206\0\0\0\377\1c\0\236\377\224\177\0" "\314\377\1\200\0\314\256\222\0\0\0\0\1\0\0\0<\202\0\0\0\377\1<\0`\377" "\256U\0\210\377\1\31\0(\377\227\0\0\0\0\1\200\0\377\2\224\177\0\314\377" "\1""1\0N\377\203\0\0\0\377\1\0\0\0(\251\0\0\0\0\1\0\0\0\221\206\0\0\0" "\377\1""8\0Z\377\224\177\0\314\377\2\177\0\314\373\200\0\314\36\221\0" "\0\0\0\1\0\0\0<\262\0\0\0\377\227\0\0\0\0\1\200\0\316\32\224\177\0\314" "\377\1#\0""8\377\203\0\0\0\377\1\0\0\0D\251\0\0\0\0\1\0\0\0I\206\0\0" "\0\377\2\20\0\32\377\177\0\313\377\224\177\0\314\377\1\177\0\314\221" "\221\0\0\0\0\1\0\0\0<\262\0\0\0\377\227\0\0\0\0\1\200\0\312:\224\177" "\0\314\377\1\24\0\40\377\203\0\0\0\377\1\0\0\0@\251\0\0\0\0\2\0\0\0\11" "\0\0\0\366\206\0\0\0\377\1_\0\231\377\224\177\0\314\377\2\177\0\314\367" "{\0\312\35\220\0\0\0\0\1\0\0\0<\262\0\0\0\377\227\0\0\0\0\1~\0\314o\224" "\177\0\314\377\1\5\0\10\377\203\0\0\0\377\1\0\0\0<\252\0\0\0\0\1\0\0" "\0\270\206\0\0\0\377\1.\0J\377\225\177\0\314\377\1\177\0\313\231\220" "\0\0\0\0\1\0\0\0<\262\0\0\0\377\227\0\0\0\0\1\200\0\313\250\223\177\0" "\314\377\1v\0\275\377\204\0\0\0\377\1\0\0\0<\252\0\0\0\0\1\0\0\0d\206" "\0\0\0\377\2\5\0\10\377x\0\300\377\224\177\0\314\377\2\200\0\314\372" "\200\0\314(\217\0\0\0\0\1\0\0\0""8\262\0\0\0\356\227\0\0\0\0\1\177\0" "\314\343\223\177\0\314\377\1d\0\240\377\204\0\0\0\377\1\0\0\0<\252\0" "\0\0\0\2\0\0\0\24\0\0\0\374\206\0\0\0\377\1I\0u\377\225\177\0\314\377" "\1\177\0\314\271\330\0\0\0\0\1\200\0\314(\224\177\0\314\377\1R\0\203" "\377\204\0\0\0\377\1\0\0\0)\253\0\0\0\0\1\0\0\0\274\206\0\0\0\377\2\22" "\0\35\377~\0\312\377\225\177\0\314\377\1\200\0\313T\327\0\0\0\0\1~\0" "\315\177\224\177\0\314\377\1;\0^\377\204\0\0\0\377\1\0\0\0\14\253\0\0" "\0\0\1\0\0\0e\207\0\0\0\377\1X\0\215\377\225\177\0\314\377\2\200\0\314" "\342w\0\314\17\326\0\0\0\0\1\177\0\314\327\224\177\0\314\377\1\36\0""0" "\377\203\0\0\0\377\1\0\0\0\355\254\0\0\0\0\2\0\0\0\15\0\0\0\364\206\0" "\0\0\377\1\40\0""3\377\226\177\0\314\377\1\200\0\314\240\325\0\0\0\0" "\1}\0\316/\224\177\0\314\377\2|\0\307\377\4\0\6\377\203\0\0\0\377\1\0" "\0\0\317\255\0\0\0\0\1\0\0\0\237\207\0\0\0\377\1g\0\245\377\226\177\0" "\314\377\1\200\0\315R\324\0\0\0\0\1\177\0\314\237\224\177\0\314\377\1" "d\0\240\377\204\0\0\0\377\1\0\0\0\261\255\0\0\0\0\1\0\0\0=\207\0\0\0" "\377\1.\0J\377\226\177\0\314\377\2\177\0\314\353\200\0\317\40\322\0\0" "\0\0\2\200\0\314\36\177\0\314\371\224\177\0\314\377\1@\0g\377\204\0\0" "\0\377\1\0\0\0\213\256\0\0\0\0\1\0\0\0\316\206\0\0\0\377\2\1\0\2\377" "k\0\254\377\226\177\0\314\377\2\200\0\314\322\200\0\314\24\321\0\0\0" "\0\1\177\0\314\245\225\177\0\314\377\1\24\0!\377\204\0\0\0\377\1\0\0" "\0h\256\0\0\0\0\1\0\0\0^\207\0\0\0\377\1+\0F\377\227\177\0\314\377\2" "\200\0\314\310t\0\321\13\317\0\0\0\0\2}\0\315=\200\0\314\376\224\177" "\0\314\377\1i\0\250\377\205\0\0\0\377\1\0\0\0""3\256\0\0\0\0\2\0\0\0" "\6\0\0\0\346\206\0\0\0\377\2\0\0\1\377h\0\246\377\227\177\0\314\377\2" "\177\0\314\275\200\0\277\10\315\0\0\0\0\2\200\0\277\4\200\0\314\322\225" "\177\0\314\377\1=\0b\377\204\0\0\0\377\2\0\0\0\365\0\0\0\4\257\0\0\0" "\0\1\0\0\0|\207\0\0\0\377\1\40\0""4\377\230\177\0\314\377\2\177\0\314" "\253U\0\252\3\314\0\0\0\0\1\200\0\315p\225\177\0\314\377\2}\0\311\377" "\17\0\30\377\204\0\0\0\377\1\0\0\0\276\260\0\0\0\0\2\0\0\0\24\0\0\0\366" "\207\0\0\0\377\1T\0\206\377\230\177\0\314\377\2\200\0\314\256\200\0\314" "\12\312\0\0\0\0\2\200\0\315.\200\0\314\366\225\177\0\314\377\1T\0\207" "\377\205\0\0\0\377\1\0\0\0\205\261\0\0\0\0\1\0\0\0\231\207\0\0\0\377" "\2\15\0\26\377y\0\302\377\230\177\0\314\377\2\200\0\314\326\200\0\316" "4\310\0\0\0\0\2\200\0\325\14\200\0\314\330\226\177\0\314\377\1\34\0-" "\377\205\0\0\0\377\1\0\0\0@\261\0\0\0\0\2\0\0\0\40\0\0\0\371\207\0\0" "\0\377\1""3\0R\377\231\177\0\314\377\3\177\0\314\375\177\0\315\235{\0" "\312\35\305\0\0\0\0\2U\0\252\3\177\0\315\261\226\177\0\314\377\1`\0\232" "\377\205\0\0\0\377\2\0\0\0\345\0\0\0\2\262\0\0\0\0\1\0\0\0\225\207\0" "\0\0\377\2\0\0\1\377[\0\222\377\232\177\0\314\377\3\200\0\314\366\200" "\0\315\204\200\0\317\20\302\0\0\0\0\2\0\0\377\1\200\0\315\230\227\177" "\0\314\377\1$\0:\377\205\0\0\0\377\1\0\0\0\220\263\0\0\0\0\2\0\0\0\33" "\0\0\0\366\207\0\0\0\377\2\14\0\24\377v\0\275\377\233\177\0\314\377\3" "\177\0\314\353\177\0\314\201z\0\310\27\300\0\0\0\0\1\177\0\314\207\227" "\177\0\314\377\2h\0\246\377\0\0\1\377\205\0\0\0\377\1\0\0\0:\264\0\0" "\0\0\1\0\0\0\207\210\0\0\0\377\2#\0""8\377~\0\312\377\234\177\0\314\377" "\3\200\0\314\370\200\0\313\236}\0\314-\274\0\0\0\0\2U\0\252\3\200\0\314" "\234\230\177\0\314\377\1*\0C\377\205\0\0\0\377\2\0\0\0\333\0\0\0\1\264" "\0\0\0\0\2\0\0\0\14\0\0\0\342\210\0\0\0\377\1;\0^\377\237\177\0\314\377" "\3\177\0\314\307\200\0\313ly\0\316\25\270\0\0\0\0\2{\0\320\33\200\0\313" "\274\230\177\0\314\377\1_\0\230\377\206\0\0\0\377\1\0\0\0m\266\0\0\0" "\0\1\0\0\0U\210\0\0\0\377\2\0\0\1\377U\0\210\377\240\177\0\314\377\4" "\200\0\314\372\177\0\314\263~\0\313c\200\0\312\30\263\0\0\0\0\3q\0\306" "\11~\0\313{\177\0\314\363\230\177\0\314\377\2}\0\310\377\25\0\"\377\205" "\0\0\0\377\2\0\0\0\357\0\0\0\14\267\0\0\0\0\1\0\0\0\270\210\0\0\0\377" "\2\5\0\10\377i\0\250\377\242\177\0\314\377\5\200\0\314\376\177\0\314" "\315\200\0\314\202}\0\3147\200\0\377\2\255\0\0\0\0\3\200\0\314\12\200" "\0\313l\200\0\314\346\232\177\0\314\377\1F\0p\377\206\0\0\0\377\1\0\0" "\0\212\270\0\0\0\0\2\0\0\0\33\0\0\0\356\210\0\0\0\377\2\21\0\34\377r" "\0\266\377\245\177\0\314\377\5\200\0\314\352\200\0\314\252\200\0\315" "p}\0\3147f\0\314\5\247\0\0\0\0\3}\0\314-\177\0\313\205\177\0\314\353" "\233\177\0\314\377\2n\0\261\377\6\0\12\377\205\0\0\0\377\2\0\0\0\371" "\0\0\0\31\271\0\0\0\0\1\0\0\0Z\211\0\0\0\377\1\26\0$\377\251\177\0\314" "\377\6\177\0\314\365\177\0\314\277\200\0\315\204\200\0\313N\200\0\313" "\"\0\0\377\1\236\0\0\0\0\4w\0\314\17\200\0\313J\200\0\314\220\200\0\314" "\336\235\177\0\314\377\2|\0\307\377\31\0)\377\206\0\0\0\377\1\0\0\0\232" "\273\0\0\0\0\1\0\0\0\246\211\0\0\0\377\1""7\0X\377\255\177\0\314\377" "\7\200\0\314\364\200\0\315\312\200\0\313\236\200\0\314t~\0\314K\200\0" "\315.\200\0\314\24\223\0\0\0\0\6y\0\316\25}\0\3147~\0\313g\177\0\314" "\225\177\0\314\317\200\0\314\374\240\177\0\314\377\1""6\0V\377\206\0" "\0\0\377\2\0\0\0\375\0\0\0&\273\0\0\0\0\2\0\0\0\12\0\0\0\322\211\0\0" "\0\377\2\"\0""6\377|\0\307\377\262\177\0\314\377\12\177\0\314\367\177" "\0\314\333\177\0\315\305\177\0\315\273\200\0\315\254\177\0\313\243\177" "\0\313\231\200\0\313\212\177\0\314\201\200\0\314|\202\200\0\314\210\7" "\177\0\314\227\177\0\313\231\177\0\314\241\200\0\314\252\200\0\315\300" "\200\0\314\332\177\0\314\367\245\177\0\314\377\1V\0\212\377\207\0\0\0" "\377\1\0\0\0\240\275\0\0\0\0\2\0\0\0$\0\0\0\357\211\0\0\0\377\2'\0>\377" "{\0\305\377\350\177\0\314\377\2l\0\256\377\7\0\14\377\206\0\0\0\377\2" "\0\0\0\360\0\0\0\30\276\0\0\0\0\2\0\0\0H\0\0\0\374\211\0\0\0\377\2\35" "\0/\377r\0\266\377\346\177\0\314\377\2x\0\300\377\25\0\"\377\207\0\0" "\0\377\1\0\0\0n\300\0\0\0\0\1\0\0\0y\212\0\0\0\377\2\11\0\17\377W\0\213" "\377\344\177\0\314\377\2|\0\307\377!\0""5\377\207\0\0\0\377\2\0\0\0\321" "\0\0\0\4\300\0\0\0\0\2\0\0\0\1\0\0\0\244\213\0\0\0\377\2""3\0R\377z\0" "\303\377\341\177\0\314\377\2~\0\312\377*\0D\377\207\0\0\0\377\2\0\0\0" "\373\0\0\0""8\302\0\0\0\0\2\0\0\0\3\0\0\0\261\213\0\0\0\377\2\23\0\36" "\377e\0\242\377\340\177\0\314\377\1""4\0T\377\210\0\0\0\377\1\0\0\0v" "\304\0\0\0\0\1\0\0\0\15\214\0\0\0\377\3\2\0\4\377=\0b\377y\0\302\377" "\334\177\0\314\377\2\177\0\313\377;\0_\377\210\0\0\0\377\2\0\0\0\265" "\0\0\0\1\305\0\0\0\0\2\0\0\0\17\0\0\0\313\214\0\0\0\377\3\14\0\24\377" "J\0w\377}\0\311\377\331\177\0\314\377\2z\0\304\377,\0F\377\210\0\0\0" "\377\2\0\0\0\343\0\0\0\24\307\0\0\0\0\2\0\0\0\25\0\0\0\323\215\0\0\0" "\377\3\24\0!\377V\0\212\377~\0\312\377\326\177\0\314\377\2n\0\260\377" "\30\0'\377\210\0\0\0\377\2\0\0\0\371\0\0\0<\311\0\0\0\0\2\0\0\0\21\0" "\0\0\302\216\0\0\0\377\3\23\0\36\377J\0w\377z\0\303\377\323\177\0\314" "\377\2N\0}\377\6\0\12\377\211\0\0\0\377\1\0\0\0j\313\0\0\0\0\2\0\0\0" "\5\0\0\0\216\217\0\0\0\377\3\11\0\16\377;\0_\377r\0\266\377\317\177\0" "\314\377\2s\0\270\377&\0>\377\212\0\0\0\377\1\0\0\0\226\316\0\0\0\0\2" "\0\0\0Q\0\0\0\354\217\0\0\0\377\4\1\0\2\377'\0>\377X\0\215\377}\0\310" "\377\312\177\0\314\377\3~\0\312\377N\0}\377\11\0\16\377\212\0\0\0\377" "\2\0\0\0\253\0\0\0\3\317\0\0\0\0\2\0\0\0\34\0\0\0\276\221\0\0\0\377\3" "\13\0\22\3776\0V\377d\0\240\377\307\177\0\314\377\2]\0\225\377\30\0'" "\377\213\0\0\0\377\2\0\0\0\275\0\0\0\6\321\0\0\0\0\3\0\0\0\1\0\0\0k\0" "\0\0\364\222\0\0\0\377\3\22\0\36\377@\0g\377m\0\257\377\301\177\0\314" "\377\3~\0\312\377W\0\213\377\35\0.\377\214\0\0\0\377\2\0\0\0\310\0\0" "\0\17\324\0\0\0\0\3\0\0\0\36\0\0\0\240\0\0\0\375\223\0\0\0\377\4\24\0" "!\377:\0^\377^\0\227\377}\0\311\377\273\177\0\314\377\3t\0\272\377D\0" "m\377\23\0\36\377\215\0\0\0\377\2\0\0\0\305\0\0\0\24\327\0\0\0\0\2\0" "\0\0""1\0\0\0\270\225\0\0\0\377\4\7\0\14\377*\0C\377O\0\177\377n\0\261" "\377\265\177\0\314\377\4|\0\306\377W\0\213\377'\0\77\377\2\0\4\377\216" "\0\0\0\377\2\0\0\0\233\0\0\0\7\332\0\0\0\0\2\0\0\0H\0\0\0\306\227\0\0" "\0\377\5\14\0\23\377(\0A\377F\0p\377c\0\236\377}\0\310\377\255\177\0" "\314\377\4z\0\303\377W\0\213\3770\0N\377\11\0\16\377\217\0\0\0\377\2" "\0\0\0\365\0\0\0h\336\0\0\0\0\3\0\0\0""7\0\0\0\250\0\0\0\373\230\0\0" "\0\377\6\4\0\7\377\32\0*\3771\0N\377F\0p\377\\\0\224\377q\0\266\377\244" "\177\0\314\377\5v\0\276\377\\\0\224\377>\0c\377\37\0""2\377\4\0\6\377" "\221\0\0\0\377\2\0\0\0\315\0\0\0)\341\0\0\0\0\3\0\0\0\36\0\0\0\212\0" "\0\0\357\234\0\0\0\377\10\10\0\15\377\35\0.\377/\0K\377\77\0f\377N\0" "~\377\\\0\223\377j\0\252\377x\0\300\377\225\177\0\314\377\7w\0\277\377" "i\0\251\377Z\0\220\377J\0w\377:\0^\377'\0>\377\17\0\30\377\224\0\0\0" "\377\3\0\0\0\372\0\0\0\200\0\0\0\5\344\0\0\0\0\4\0\0\0\11\0\0\0\\\0\0" "\0\301\0\0\0\376\241\0\0\0\377\15\5\0\11\377\24\0!\377\"\0""6\377,\0" "G\3773\0R\3779\0[\377=\0b\377D\0m\377J\0v\377N\0~\377P\0\200\377L\0z" "\377K\0x\377\202D\0m\377\6=\0b\377;\0_\377/\0L\377\"\0""6\377\24\0!\377" "\5\0\10\377\232\0\0\0\377\2\0\0\0\307\0\0\0""1\351\0\0\0\0\3\0\0\0!\0" "\0\0}\0\0\0\327\314\0\0\0\377\3\0\0\0\340\0\0\0Y\0\0\0\1\355\0\0\0\0" "\3\0\0\0""4\0\0\0\220\0\0\0\350\307\0\0\0\377\3\0\0\0\326\0\0\0c\0\0" "\0\6\361\0\0\0\0\4\0\0\0\3\0\0\0>\0\0\0\212\0\0\0\322\301\0\0\0\377\4" "\0\0\0\374\0\0\0\265\0\0\0M\0\0\0\2\367\0\0\0\0\4\0\0\0\40\0\0\0h\0\0" "\0\265\0\0\0\365\273\0\0\0\377\3\0\0\0\327\0\0\0z\0\0\0\32\375\0\0\0" "\0\5\0\0\0\5\0\0\0""8\0\0\0s\0\0\0\256\0\0\0\347\264\0\0\0\377\3\0\0" "\0\342\0\0\0\225\0\0\0""9\377\0\0\0\0\206\0\0\0\0\5\0\0\0\"\0\0\0]\0" "\0\0\224\0\0\0\277\0\0\0\354\253\0\0\0\377\4\0\0\0\364\0\0\0\273\0\0" "\0|\0\0\0""1\377\0\0\0\0\216\0\0\0\0\7\0\0\0\27\0\0\0C\0\0\0n\0\0\0\231" "\0\0\0\303\0\0\0\344\0\0\0\375\237\0\0\0\377\6\0\0\0\362\0\0\0\310\0" "\0\0\230\0\0\0j\0\0\0""7\0\0\0\4\377\0\0\0\0\227\0\0\0\0\13\0\0\0\6\0" "\0\0\"\0\0\0=\0\0\0[\0\0\0u\0\0\0\221\0\0\0\255\0\0\0\307\0\0\0\343\0" "\0\0\356\0\0\0\375\214\0\0\0\377\11\0\0\0\371\0\0\0\344\0\0\0\315\0\0" "\0\265\0\0\0\227\0\0\0x\0\0\0X\0\0\0""7\0\0\0\25\377\0\0\0\0\250\0\0" "\0\0\4\0\0\0\6\0\0\0\21\0\0\0\37\0\0\0(\202\0\0\0""3\1\0\0\0.\202\0\0" "\0\"\3\0\0\0\23\0\0\0\21\0\0\0\11\377\0\0\0\0\377\0\0\0\0\221\0\0\0\0", }; gliv-1.9.7/src/include/tree_browser.h0000644000076400007640000000031111465576131015030 0ustar gg#ifndef TREE_BROWSER_H #define TREE_BROWSER_H #include "gliv.h" void load_later(void); void show_tree_browser(void); void highlight_current_image(void); void cond_rebuild_tree_browser(void); #endif gliv-1.9.7/src/include/timestamp.h0000644000076400007640000000042311465576131014335 0ustar gg#ifndef TIMESTAMP_H #define TIMESTAMP_H #include "gliv.h" typedef gulong timestamp_t; #define DECLARE_TIMESTAMP(name) timestamp_t name = 0 void touch(timestamp_t * ts); void reset_timestamp(timestamp_t * ts); gboolean up_to_date(timestamp_t ts, timestamp_t req); #endif gliv-1.9.7/src/include/move_pointer.h0000644000076400007640000000016711465576131015045 0ustar gg#ifndef MOVE_POINTER_H #define MOVE_POINTER_H #include "gliv.h" void move_pointer(gint dest_x, gint dest_y); #endif gliv-1.9.7/src/include/gl_widget.h0000644000076400007640000000044111465576131014277 0ustar gg#ifndef GL_WIDGET_H #define GL_WIDGET_H #include "gliv.h" void update_bg_color(void); void create_gl_widget(void); gint report_opengl_errors(const gchar * function_name, const gchar * source_name, gint line, gint glBegin_inc); #endif gliv-1.9.7/src/include/messages.h0000644000076400007640000000360111465576131014142 0ustar gg#ifndef MESSAGES_H #define MESSAGES_H #include "gliv.h" #include "windows.h" #include "cursors.h" #ifdef ENABLE_NLS #include "gettext.h" #include #else #define _(a) (a) #define N_(a) (a) #endif #if HAVE_ISO_C_VARARGS #define DIALOG_MSG(...) \ do { \ GtkMessageDialog *__dialog__; \ \ g_printerr(__VA_ARGS__); \ g_printerr("\n"); \ \ __dialog__ = GTK_MESSAGE_DIALOG( \ gtk_message_dialog_new(get_current_window(), \ GTK_DIALOG_DESTROY_WITH_PARENT, \ GTK_MESSAGE_WARNING, \ GTK_BUTTONS_OK, \ __VA_ARGS__)); \ \ /* \ * We want the cursor to be visible \ * when the dialog is shown. \ */ \ set_hide_cursor_enabled(FALSE); \ gtk_dialog_run(GTK_DIALOG(__dialog__)); \ set_hide_cursor_enabled(TRUE); \ \ gtk_widget_destroy(GTK_WIDGET(__dialog__)); \ } while (0) #else #define DIALOG_MSG g_printerr #warning "No variadic macros" #endif #endif gliv-1.9.7/src/move_pointer.c0000644000076400007640000000131311465576131013407 0ustar gg/********************* * Extension to GDK. * *********************/ #include #include "move_pointer.h" #define EVENT_MASK Button1MotionMask | Button4MotionMask | ButtonMotionMask | \ Button2MotionMask | Button5MotionMask | PointerMotionMask | \ Button3MotionMask | PointerMotionHintMask /* * Move the pointer to the (x, y) coordinates of the root window * without respect to the current pointer position. */ void move_pointer(gint dest_x, gint dest_y) { Display *dpy; XEvent xev; dpy = GDK_DISPLAY(); while (XCheckMaskEvent(dpy, EVENT_MASK, &xev) == True); XWarpPointer(dpy, None, GDK_ROOT_WINDOW(), 0, 0, 0, 0, dest_x, dest_y); } gliv-1.9.7/src/gl_widget.c0000644000076400007640000002510511465576131012653 0ustar gg/* * 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. * * See the COPYING file for license information. * * Guillaume Chazarain */ /*********************************************** * Creation and callbacks of the OpenGL widget * ***********************************************/ #include #include "opengl.h" #include "gliv.h" #include "gl_widget.h" #include "options.h" #include "rendering.h" #include "messages.h" #include "windows.h" #include "matrix.h" #include "files_list.h" #include "main.h" #include "next_image.h" #include "images_menus.h" #include "cursors.h" extern GtkWidget *gl_widget; extern rt_struct *rt; extern options_struct *options; static gint old_width, old_height; enum { TARGET_URI_LIST, TARGET_STRING }; void update_bg_color() { glClearColor(options->bg_col.red / 65535.0, options->bg_col.green / 65535.0, options->bg_col.blue / 65535.0, 1.0); } static gboolean expose_event(GtkWidget * unused, GdkEventExpose * event) { if (event->count == 0) refresh(REFRESH_IMAGE); return FALSE; } static void resize_widget(gint width, gint height) { gfloat w2, h2; width += width % 2; height += height % 2; w2 = width / 2.0; h2 = height / 2.0; gdk_gl_drawable_wait_gdk(gtk_widget_get_gl_drawable(gl_widget)); glViewport(0, 0, width, height); glMatrixMode(GL_PROJECTION); glLoadIdentity(); /* Vertical flip to have coordinates like X but centered like OpenGL. */ glOrtho(-w2, w2, h2, -h2, -1.0, 1.0); glMatrixMode(GL_MODELVIEW); } static gboolean configure_event(GtkWidget * unused, GdkEventConfigure * event) { gint what = REFRESH_IMAGE; resize_widget(event->width, event->height); if ((options->maximize || options->scaledown) && matrix_set_max_zoom(old_width, old_height, FALSE) == FALSE) { /* * When options->maximize or options->scaledown is set we zoom only * if a matrix_set_max_zoom() with previous dimensions would have been * ignored. It happens if the image properties didn't change after the * previous matrix_set_max_zoom(). * This is achieved by the test of matrix_set_max_zoom(). */ matrix_set_max_zoom(event->width, event->height, TRUE); what |= REFRESH_STATUS; } refresh(what); old_width = event->width; old_height = event->height; return FALSE; } static gboolean drag_data_received(GtkWidget * unused1, GdkDragContext * context, gint unused2, gint unused3, GtkSelectionData * data, guint info, guint time) { gchar *uri_list; gchar **uris; gint i, nb_inserted; gboolean ok = FALSE; GError *err = NULL; /* Based on code from gnome-terminal. */ if (data->format != 8) { DIALOG_MSG(_("Wrong URI format: %d (instead of 8)"), data->format); goto out; } if (data->length <= 0) { DIALOG_MSG(_("Wrong URI length: %d"), data->length); goto out; } uri_list = g_strndup(data->data, data->length); if (info == TARGET_URI_LIST) uris = g_strsplit(uri_list, "\r\n", -1); else uris = g_strsplit(uri_list, "\n", -1); if (uris == NULL) goto out_free; for (i = 0; uris[i] != NULL && uris[i][0] != '\0'; i++) { gchar *uri = uris[i]; if (info == TARGET_URI_LIST) { uri = g_filename_from_uri(uris[i], NULL, &err); if (err != NULL) { DIALOG_MSG("%s", err->message); g_error_free(err); goto out_strfreev; } g_free(uris[i]); uris[i] = uri; } } ok = TRUE; nb_inserted = insert_after_current(uris, i, FALSE, TRUE); new_images(nb_inserted); out_strfreev: g_strfreev(uris); out_free: g_free(uri_list); out: gtk_drag_finish(context, ok, FALSE, time); return FALSE; } static void dnd_init(void) { GtkTargetEntry targets[] = { /* *INDENT-OFF* */ {"text/uri-list", 0, TARGET_URI_LIST}, {"UTF8_STRING", 0, TARGET_STRING}, {"COMPOUND_TEXT", 0, TARGET_STRING}, {"TEXT", 0, TARGET_STRING}, {"STRING", 0, TARGET_STRING} /* *INDENT-ON* */ }; gtk_drag_dest_set(gl_widget, GTK_DEST_DEFAULT_ALL, targets, G_N_ELEMENTS(targets), GDK_ACTION_COPY); g_signal_connect(gl_widget, "drag-data-received", G_CALLBACK(drag_data_received), NULL); } /* * Probe the max_texture_size with a GL_PROXY_TEXTURE_2D. * Used only when initializing the widget. */ static gboolean check_texture_size(void) { gint width; glTexImage2D(GL_PROXY_TEXTURE_2D, 0, GL_RGB, rt->max_texture_size, rt->max_texture_size, 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL); glGetTexLevelParameteriv(GL_PROXY_TEXTURE_2D, 0, GL_TEXTURE_WIDTH, &width); return width == rt->max_texture_size; } static void get_max_texture_size(void) { #if NO_OPENGL rt->max_texture_size = 128; #else glGetIntegerv(GL_MAX_TEXTURE_SIZE, &rt->max_texture_size); while (rt->max_texture_size > 0 && check_texture_size() == FALSE) rt->max_texture_size >>= 1; if (rt->max_texture_size < 64) { gchar *message, *texture; texture = g_strdup_printf(_("Fatal error: GL_MAX_TEXTURE_SIZE = %d\n"), rt->max_texture_size); message = g_strconcat(texture, _("GL_MAX_TEXTURE_SIZE must be >= 64"), NULL); DIALOG_MSG("%s", message); g_free(texture); g_free(message); quit(1); } #endif } /* Direct all OpenGL calls to the created widget. */ static gboolean make_current(void) { GdkGLContext *glcontext = gtk_widget_get_gl_context(gl_widget); GdkGLDrawable *gldrawable = gtk_widget_get_gl_drawable(gl_widget); return gdk_gl_drawable_make_current(gldrawable, glcontext); } static gboolean first_expose(void) { /* We only handle the first one. */ g_signal_handlers_disconnect_by_func(gl_widget, G_CALLBACK(first_expose), NULL); if (make_current() == FALSE) { DIALOG_MSG(_("glXMakeCurrent() failed")); quit(1); } glDisable(GL_DEPTH_TEST); glEnable(GL_TEXTURE_2D); glDisable(GL_BLEND); glShadeModel(GL_FLAT); glPixelStorei(GL_UNPACK_ALIGNMENT, 1); glPixelStorei(GL_PACK_ALIGNMENT, 1); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); update_bg_color(); get_max_texture_size(); rt->wid_size = &gl_widget->allocation; g_signal_connect(gl_widget, "configure-event", G_CALLBACK(configure_event), NULL); g_signal_connect(gl_widget, "expose-event", G_CALLBACK(expose_event), NULL); g_signal_connect_after(gl_widget, "focus-in-event", G_CALLBACK(set_correct_cursor), NULL); schedule_hide_cursor(); old_width = rt->wid_size->width; old_height = rt->wid_size->height; if (options->fullscreen) toggle_fullscreen(TRUE); resize_widget(rt->wid_size->width, rt->wid_size->height); dnd_init(); gtk_widget_queue_draw(GTK_WIDGET(get_current_window())); do_later(G_PRIORITY_LOW, load_first_image); return FALSE; } void create_gl_widget(void) { GdkGLConfigMode mode = GDK_GL_MODE_RGBA | GDK_GL_MODE_DEPTH | GDK_GL_MODE_DOUBLE | GDK_GL_MODE_ALPHA; GdkGLConfig *glconfig; if (gdk_gl_query_extension() == FALSE) { DIALOG_MSG(_("OpenGL not supported")); quit(1); } glconfig = gdk_gl_config_new_by_mode(mode); if (glconfig == NULL) /* Try without the alpha channel. */ glconfig = gdk_gl_config_new_by_mode(mode & ~GDK_GL_MODE_ALPHA); if (glconfig == NULL) { DIALOG_MSG(_("Cannot find an appropriate visual, try glxinfo(1)")); quit(1); } gl_widget = gtk_drawing_area_new(); if (gtk_widget_set_gl_capability(gl_widget, glconfig, NULL, TRUE, GDK_GL_RGBA_TYPE) == FALSE) { DIALOG_MSG(_("Cannot set the OpenGL capability")); quit(1); } gtk_widget_add_events(gl_widget, GDK_BUTTON_PRESS_MASK | GDK_POINTER_MOTION_MASK | GDK_BUTTON_RELEASE_MASK); if (options->delay != 0) gtk_widget_add_events(gl_widget, GDK_POINTER_MOTION_MASK); /* The real initialization is done on the first expose. */ g_signal_connect_after(gl_widget, "expose-event", G_CALLBACK(first_expose), NULL); } gint report_opengl_errors(const gchar * function_name, const gchar * source_name, gint line, gint glBegin_inc) { static gint glBegin_counter = 0; gint nb_errors = 0; gchar *errors = NULL; GLenum error; /* We cannot call glGetError() between a glBegin()/glEnd() pair. */ glBegin_counter += glBegin_inc; if (glBegin_counter != 0) return 0; /* Get all errors. */ while ((error = glGetError()) != GL_NO_ERROR) { gchar *error_msg; gboolean unknown_error = FALSE; error_msg = (gchar *) gluErrorString(error); if (error_msg == NULL) { unknown_error = TRUE; error_msg = g_strdup_printf(_("Unknown OpenGL error (%d)"), error); } if (errors == NULL) errors = g_strdup_printf(_("OpenGL error in %s() at %s:%d:\n%s"), function_name, source_name, line, error_msg); else { gchar *old_msg = errors; errors = g_strconcat(errors, "\n", error_msg, NULL); g_free(old_msg); } if (unknown_error) g_free(error_msg); nb_errors++; } if (errors != NULL) { g_printerr("%s\n", errors); g_free(errors); } return nb_errors; } gliv-1.9.7/src/glade_image_nr.c0000644000076400007640000001110611465576131013617 0ustar gg/* * DO NOT EDIT THIS FILE - it is generated by Glade. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include #define GLADE_HOOKUP_OBJECT(component,widget,name) \ g_object_set_data_full (G_OBJECT (component), name, \ gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref) #define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \ g_object_set_data (G_OBJECT (component), name, widget) GtkWidget* create_image_nr_dialog (void) { GtkWidget *image_nr_dialog; GtkWidget *dialog_vbox1; GtkWidget *vbox1; GtkWidget *hbox1; GtkWidget *vbox2; GtkWidget *label2; GtkObject *spinbutton_adj; GtkWidget *spinbutton; GtkWidget *image; GtkWidget *dirname; GtkWidget *filename; GtkWidget *dialog_action_area1; GtkWidget *cancelbutton1; GtkWidget *okbutton1; image_nr_dialog = gtk_dialog_new (); gtk_window_set_title (GTK_WINDOW (image_nr_dialog), _("Load the Nth image...")); gtk_window_set_modal (GTK_WINDOW (image_nr_dialog), TRUE); gtk_window_set_destroy_with_parent (GTK_WINDOW (image_nr_dialog), TRUE); gtk_window_set_type_hint (GTK_WINDOW (image_nr_dialog), GDK_WINDOW_TYPE_HINT_DIALOG); dialog_vbox1 = GTK_DIALOG (image_nr_dialog)->vbox; gtk_widget_show (dialog_vbox1); vbox1 = gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox1); gtk_box_pack_start (GTK_BOX (dialog_vbox1), vbox1, TRUE, TRUE, 0); hbox1 = gtk_hbox_new (FALSE, 0); gtk_widget_show (hbox1); gtk_box_pack_start (GTK_BOX (vbox1), hbox1, TRUE, TRUE, 0); vbox2 = gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox2); gtk_box_pack_start (GTK_BOX (hbox1), vbox2, FALSE, FALSE, 0); label2 = gtk_label_new (_("Enter an image number:")); gtk_widget_show (label2); gtk_box_pack_start (GTK_BOX (vbox2), label2, TRUE, TRUE, 10); gtk_label_set_line_wrap (GTK_LABEL (label2), TRUE); spinbutton_adj = gtk_adjustment_new (1, 0, 100, 1, 10, 0); spinbutton = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton_adj), 1, 0); gtk_widget_show (spinbutton); gtk_box_pack_start (GTK_BOX (vbox2), spinbutton, TRUE, TRUE, 10); gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton), TRUE); gtk_spin_button_set_update_policy (GTK_SPIN_BUTTON (spinbutton), GTK_UPDATE_IF_VALID); image = create_pixmap (image_nr_dialog, NULL); gtk_widget_show (image); gtk_box_pack_start (GTK_BOX (hbox1), image, TRUE, TRUE, 10); dirname = gtk_label_new (_("directory")); gtk_widget_show (dirname); gtk_box_pack_start (GTK_BOX (vbox1), dirname, FALSE, FALSE, 5); GTK_WIDGET_SET_FLAGS (dirname, GTK_CAN_FOCUS); gtk_label_set_selectable (GTK_LABEL (dirname), TRUE); filename = gtk_label_new (_("file")); gtk_widget_show (filename); gtk_box_pack_start (GTK_BOX (vbox1), filename, FALSE, FALSE, 5); dialog_action_area1 = GTK_DIALOG (image_nr_dialog)->action_area; gtk_widget_show (dialog_action_area1); gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area1), GTK_BUTTONBOX_END); cancelbutton1 = gtk_button_new_from_stock ("gtk-cancel"); gtk_widget_show (cancelbutton1); gtk_dialog_add_action_widget (GTK_DIALOG (image_nr_dialog), cancelbutton1, GTK_RESPONSE_CANCEL); GTK_WIDGET_SET_FLAGS (cancelbutton1, GTK_CAN_DEFAULT); okbutton1 = gtk_button_new_from_stock ("gtk-ok"); gtk_widget_show (okbutton1); gtk_dialog_add_action_widget (GTK_DIALOG (image_nr_dialog), okbutton1, GTK_RESPONSE_OK); GTK_WIDGET_SET_FLAGS (okbutton1, GTK_CAN_DEFAULT); g_signal_connect ((gpointer) spinbutton, "value_changed", G_CALLBACK (on_image_nr_value_changed), NULL); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (image_nr_dialog, image_nr_dialog, "image_nr_dialog"); GLADE_HOOKUP_OBJECT_NO_REF (image_nr_dialog, dialog_vbox1, "dialog_vbox1"); GLADE_HOOKUP_OBJECT (image_nr_dialog, vbox1, "vbox1"); GLADE_HOOKUP_OBJECT (image_nr_dialog, hbox1, "hbox1"); GLADE_HOOKUP_OBJECT (image_nr_dialog, vbox2, "vbox2"); GLADE_HOOKUP_OBJECT (image_nr_dialog, label2, "label2"); GLADE_HOOKUP_OBJECT (image_nr_dialog, spinbutton, "spinbutton"); GLADE_HOOKUP_OBJECT (image_nr_dialog, image, "image"); GLADE_HOOKUP_OBJECT (image_nr_dialog, dirname, "dirname"); GLADE_HOOKUP_OBJECT (image_nr_dialog, filename, "filename"); GLADE_HOOKUP_OBJECT_NO_REF (image_nr_dialog, dialog_action_area1, "dialog_action_area1"); GLADE_HOOKUP_OBJECT (image_nr_dialog, cancelbutton1, "cancelbutton1"); GLADE_HOOKUP_OBJECT (image_nr_dialog, okbutton1, "okbutton1"); return image_nr_dialog; } gliv-1.9.7/src/help.c0000644000076400007640000001155311465576131011640 0ustar gg/* * 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. * * See the COPYING file for license information. * * Guillaume Chazarain */ /**************************** * The help and about boxes * ****************************/ #include /* strlen() */ #include #include "gliv.h" #include "help.h" #include "about.h" #include "options.h" #include "params.h" #include "help_text.h" #include "windows.h" extern rt_struct *rt; static GtkWindow *help_win; static gchar *get_help_text(void) { gchar **help_lines, **ptr; gchar *res, *res_ptr; gint len = 0; help_lines = get_help_lines(); /* Compute the total text length. */ for (ptr = help_lines; *ptr != NULL; ptr++) len += strlen(*ptr); res_ptr = res = g_new(gchar, len + 1); /* Concatenate the lines. */ for (ptr = help_lines; *ptr != NULL; ptr++) res_ptr = g_stpcpy(res_ptr, *ptr); g_free(help_lines); return res; } /* Get a textual widget with the help text in it. */ static GtkWidget *get_text_widget(const gchar * text) { GtkTextView *widget; widget = GTK_TEXT_VIEW(gtk_text_view_new()); gtk_text_view_set_editable(widget, FALSE); gtk_text_view_set_cursor_visible(widget, FALSE); gtk_text_view_set_wrap_mode(widget, GTK_WRAP_WORD); gtk_text_buffer_set_text(gtk_text_view_get_buffer(widget), text, -1); return GTK_WIDGET(widget); } static void show_help(void) { PangoFontDescription *font; gchar *help_text; GtkWidget *widget; GtkScrolledWindow *win; help_text = get_help_text(); widget = get_text_widget(help_text); g_free(help_text); /* We use a fixed font to keep the alignment as in the README file. */ font = pango_font_description_from_string(FONT); gtk_widget_modify_font(GTK_WIDGET(widget), font); /* The window containing the text. */ win = GTK_SCROLLED_WINDOW(gtk_scrolled_window_new(NULL, NULL)); gtk_scrolled_window_set_policy(win, GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_container_add(GTK_CONTAINER(win), widget); /* The help window. */ help_win = new_window(_("GLiv help")); gtk_window_set_default_size(help_win, 500, 500); gtk_container_add(GTK_CONTAINER(help_win), GTK_WIDGET(win)); g_signal_connect(help_win, "delete-event", G_CALLBACK(toggle_help), NULL); show_message(GTK_WIDGET(help_win), _("GLiv help")); } gboolean toggle_help(void) { rt->help ^= TRUE; if (rt->help) show_help(); else gtk_widget_destroy(GTK_WIDGET(help_win)); return TRUE; } #include "include/gliv_logo.h" GdkPixbuf *get_gliv_logo(void) { static GdkPixbuf *logo; if (logo == NULL) /* First time */ logo = gdk_pixbuf_from_pixdata(&gliv_logo, FALSE, NULL); return logo; } gboolean show_about_box(void) { GtkDialog *dialog = NULL; GtkLabel *about; GtkHBox *box; gchar *about_text; GdkPixbuf *logo; GtkImage *image; /* Logo */ logo = get_gliv_logo(); if (logo == NULL) return FALSE; image = GTK_IMAGE(gtk_image_new_from_pixbuf(logo)); /* Text */ about_text = g_strconcat(_(ABOUT_GLIV), " ", VERSION, "\n", "Guillaume Chazarain \n", _(ABOUT_HELP), "\n", "\n", _(ABOUT_URL), "\n", NULL); about = GTK_LABEL(gtk_label_new(about_text)); g_free(about_text); /* Dialog */ dialog = GTK_DIALOG(gtk_dialog_new_with_buttons(_("GLiv about box"), get_current_window(), GTK_DIALOG_MODAL, GTK_STOCK_CLOSE, GTK_RESPONSE_ACCEPT, NULL)); box = GTK_HBOX(gtk_hbox_new(FALSE, 10)); gtk_box_pack_start_defaults(GTK_BOX(box), GTK_WIDGET(image)); gtk_box_pack_start_defaults(GTK_BOX(box), GTK_WIDGET(about)); gtk_widget_show_all(GTK_WIDGET(box)); gtk_container_add(GTK_CONTAINER(dialog->vbox), GTK_WIDGET(box)); run_modal_dialog(dialog); gtk_widget_destroy(GTK_WIDGET(dialog)); return FALSE; } gliv-1.9.7/src/cursors.c0000644000076400007640000001324311465576131012406 0ustar gg/* * 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. * * See the COPYING file for license information. * * Guillaume Chazarain */ /***************************** * Change or hide the cursor * *****************************/ #include "gliv.h" #include "cursors.h" #include "options.h" #include "all_cursors.h" extern rt_struct *rt; extern options_struct *options; extern GtkWidget *gl_widget; #define NB_CURSORS 6 /* Must be kept in sync with init_cursors(). */ typedef enum { CURSOR_DEFAULT = 0, CURSOR_MOVE, CURSOR_ROTATE, CURSOR_ZOOM, CURSOR_ZOOM_ROTATE, CURSOR_RECT_ZOOM } cursor_type; static cursor_type current_type = CURSOR_DEFAULT; static GdkCursor **cursors = NULL; static gint hide_cursor_disablers = 0; #define MAKE_CURSOR(name) \ do { \ source = gdk_bitmap_create_from_data(NULL, cursor_##name##_bits, \ cursor_##name##_width, \ cursor_##name##_height); \ \ mask = gdk_bitmap_create_from_data(NULL, cursor_##name##_mask_bits, \ cursor_##name##_mask_width, \ cursor_##name##_mask_height); \ \ *fill = gdk_cursor_new_from_pixmap(source, mask, &fg, &bg, \ cursor_##name##_x_hot, \ cursor_##name##_y_hot); \ gdk_pixmap_unref(source); \ gdk_pixmap_unref(mask); \ fill++; \ } while (0) static void init_cursors(void) { GdkPixmap *source, *mask; GdkColor fg = { 0, 0, 0, 0 }; /* Black */ GdkColor bg = { 65535, 65535, 65535, 65535 }; /* White */ GdkCursor **fill; cursors = fill = g_new(GdkCursor *, NB_CURSORS); *fill++ = NULL; MAKE_CURSOR(move); MAKE_CURSOR(rotate); MAKE_CURSOR(zoom); MAKE_CURSOR(zoom_rotate); MAKE_CURSOR(rect_zoom); } /* Called by the timer or the menu. */ gboolean hide_cursor(void) { static GdkCursor *hidden_cursor = NULL; if (hidden_cursor == NULL) { /* First time. */ GdkPixmap *pmap; GdkColor *col; gchar *data; data = g_new0(gchar, 1); col = g_new0(GdkColor, 1); pmap = gdk_bitmap_create_from_data(NULL, data, 1, 1); hidden_cursor = gdk_cursor_new_from_pixmap(pmap, pmap, col, col, 0, 0); g_free(data); g_free(col); g_object_unref(pmap); gtk_widget_add_events(gl_widget, GDK_POINTER_MOTION_MASK); } gdk_window_set_cursor(gl_widget->window, hidden_cursor); rt->cursor_hidden = TRUE; return FALSE; } void show_cursor(void) { if (cursors == NULL) init_cursors(); rt->cursor_hidden = FALSE; gdk_window_set_cursor(gl_widget->window, cursors[current_type]); schedule_hide_cursor(); } /* Set the appropriate cursor for the current situation. */ gboolean set_correct_cursor(void) { GdkModifierType state; cursor_type new_cursor; if (cursors == NULL) init_cursors(); gdk_display_get_pointer(gdk_display_get_default(), NULL, NULL, NULL, &state); if (state & GDK_BUTTON3_MASK && (state & GDK_BUTTON1_MASK) == 0) new_cursor = CURSOR_RECT_ZOOM; else if (state & GDK_SHIFT_MASK) { if (state & GDK_CONTROL_MASK) new_cursor = CURSOR_ZOOM_ROTATE; else new_cursor = CURSOR_ZOOM; } else if (state & GDK_CONTROL_MASK) new_cursor = CURSOR_ROTATE; else if (state & GDK_BUTTON1_MASK) new_cursor = CURSOR_MOVE; else new_cursor = CURSOR_DEFAULT; if (new_cursor != current_type) { current_type = new_cursor; show_cursor(); } return FALSE; } /* * Used to prevent the cursor from being toggled automatically, * this is useful when displaying dialogs. */ void set_hide_cursor_enabled(gboolean enabled) { gint previous = hide_cursor_disablers; hide_cursor_disablers += enabled ? -1 : 1; if (hide_cursor_disablers < 0) hide_cursor_disablers = 0; if ((hide_cursor_disablers > 0) == (previous > 0)) /* Nothing to do. */ return; if (hide_cursor_disablers > 0 && rt->cursor_hidden) show_cursor(); schedule_hide_cursor(); } void schedule_hide_cursor(void) { static guint id = 0; if (id != 0) /* Remove previous schedule. */ g_source_remove(id); if (options->delay == 0 || hide_cursor_disablers > 0) id = 0; else id = g_timeout_add(options->delay, (GSourceFunc) hide_cursor, NULL); } gliv-1.9.7/src/windows.c0000644000076400007640000004001011465576131012370 0ustar gg/* * 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. * * See the COPYING file for license information. * * Guillaume Chazarain */ /************************* * The top level widgets * *************************/ #include /* memcpy() */ #include /* gdk_net_wm_supports() */ #include "gliv.h" #include "windows.h" #include "options.h" #include "gliv-image.h" #include "callbacks.h" #include "messages.h" #include "math_floats.h" #include "str_utils.h" #include "matrix.h" #include "scrollbars.h" #include "gl_widget.h" #include "menus.h" #include "cursors.h" #include "loading.h" #include "help.h" extern rt_struct *rt; extern options_struct *options; extern GlivImage *current_image; extern GtkWidget *gl_widget; extern GtkMenuBar *menu_bar; /* What is in the window. */ static GtkVBox *widgets; static GtkWindow *main_window; static GtkWindow *fs_window; /* The main status bar and its subdivisions. */ static GtkHBox *status_bar; static GtkEntry *entry_ident; static GtkEntry *entry_size; static GtkEntry *entry_state; /* * Called when resizing the window because the image changed or a * widget has been toggled. */ static void resize_window(gint width, gint height, gboolean first_time) { GtkRequisition req; if (options->resize_win == FALSE && first_time == FALSE) return; if (first_time && options->initial_geometry) return; width = MAX(width, 320); height = MAX(height, 240); if (width == rt->wid_size->width && height == rt->wid_size->height) return; /* * First, we let GTK resize the window around the * width x height widget, */ gtk_widget_set_size_request(gl_widget, width, height); gtk_widget_size_request(GTK_WIDGET(main_window), &req); gtk_window_resize(main_window, req.width, req.height); /* then, we make the widget downsizable. */ gtk_widget_set_size_request(gl_widget, 1, 1); } void show_message(GtkWidget * widget, const gchar * name) { /* In windowed mode we let the WM choose the position. */ if (options->fullscreen) gtk_window_set_position(GTK_WINDOW(widget), GTK_WIN_POS_MOUSE); if (name != NULL) gtk_window_set_title(GTK_WINDOW(widget), name); gtk_widget_show_all(widget); } gint run_modal_dialog(GtkDialog * dialog) { gint response; gtk_window_set_transient_for(GTK_WINDOW(dialog), get_current_window()); gtk_window_set_modal(GTK_WINDOW(dialog), TRUE); /* In windowed mode we let the WM choose the position. */ if (options->fullscreen) gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_MOUSE); /* We want the cursor to be visible when the dialog is shown. */ set_hide_cursor_enabled(FALSE); response = gtk_dialog_run(GTK_DIALOG(dialog)); set_hide_cursor_enabled(TRUE); return response; } static gint get_entry_border(GtkEntry * entry) { gint interior_focus, focus_width; gint border; gtk_widget_style_get(GTK_WIDGET(entry), "interior-focus", &interior_focus, "focus-line-width", &focus_width, NULL); border = entry->has_frame ? GTK_WIDGET(entry)->style->xthickness : 0; if (!interior_focus) border += focus_width; return border + 2; /* + 2 : INNER_BORDER */ } static gint status_bar_free_space(void) { gint space = 0; GtkEntry *entries[] = { entry_ident, entry_size, entry_state, NULL }; GtkEntry **ptr; for (ptr = entries; *ptr != NULL; ptr++) { GtkRequisition req; gtk_widget_size_request(GTK_WIDGET(*ptr), &req); space += GTK_WIDGET(*ptr)->allocation.width - req.width; } return space; } static void set_entry_text(GtkEntry * entry, const gchar * text) { GtkRequisition old; GtkRequisition req; gboolean accept_resize; gtk_entry_set_text(entry, text); /* Compute the full width */ gtk_widget_size_request(GTK_WIDGET(entry), &old); memcpy(&req, &old, sizeof(GtkRequisition)); pango_layout_get_pixel_size(gtk_entry_get_layout(entry), &req.width, NULL); req.width += 2 * get_entry_border(entry); if (req.width > old.width) { gint free_space = status_bar_free_space(); accept_resize = req.width - old.width <= free_space; } else accept_resize = old.width - req.width > 20; if (accept_resize) gtk_widget_set_size_request(GTK_WIDGET(entry), req.width, req.height); } static gint ident_basename_pos(const gchar * ident) { gint pos; gint last1 = 0, last2 = 0; for (pos = 0; *ident != '\0'; ident = g_utf8_next_char(ident)) { if (g_utf8_get_char(ident) == '/') { last2 = last1; last1 = pos; } pos++; } return last2; } static void set_ident_text(const gchar * ident) { gint pos; const gchar *loading = currently_loading(); pos = ident_basename_pos(ident); if (loading) { gchar *concat = g_strconcat(ident, " ", _("loading"), ":", loading, NULL); gtk_entry_set_text(entry_ident, concat); g_free(concat); } else gtk_entry_set_text(entry_ident, ident); gtk_editable_set_position(GTK_EDITABLE(entry_ident), pos); } /* To add an entry in the status bar. */ static GtkEntry *add_entry(gboolean grow, const gchar * init) { GtkEntry *entry; entry = GTK_ENTRY(gtk_entry_new()); gtk_editable_set_editable(GTK_EDITABLE(entry), FALSE); gtk_box_pack_start(GTK_BOX(status_bar), GTK_WIDGET(entry), grow, TRUE, 0); /* We don't want the blinking cursor. */ GTK_WIDGET_UNSET_FLAGS(GTK_WIDGET(entry), GTK_CAN_FOCUS); set_entry_text(entry, init); return entry; } static void create_status_bar(void) { status_bar = GTK_HBOX(gtk_hbox_new(FALSE, 0)); entry_ident = add_entry(TRUE, _("No image loaded")); entry_size = add_entry(FALSE, _("width x height")); entry_state = add_entry(FALSE, _("zoom% (angle)")); } /* Returns TRUE if the widgets has been toggled. */ gboolean toggle_widgets(GtkWidget ** widgets, gint nb_widgets, gboolean * flag) { /* We are not reentrant. */ static gboolean toggling = FALSE; gint w, h; gint i; if (toggling) return FALSE; toggling = TRUE; w = rt->wid_size->width; h = rt->wid_size->height; for (i = 0; i < nb_widgets; i++) { if (*flag == FALSE) gtk_widget_show(widgets[i]); else gtk_widget_hide(widgets[i]); } *flag ^= TRUE; toggling = FALSE; return TRUE; } static gboolean toggle_widget(GtkWidget * widget, gboolean * flag) { return toggle_widgets(&widget, 1, flag); } gboolean toggle_menu_bar(void) { toggle_widget(GTK_WIDGET(menu_bar), &options->menu_bar); return FALSE; } gboolean toggle_status_bar(void) { toggle_widget(GTK_WIDGET(status_bar), &options->status_bar); return FALSE; } /* To take into account the new filename, zoom, angle, symmetry. */ void update_status_bar(void) { gchar *size_str, *state_str; const gchar *sym; gfloat zoom, angle; if (current_image == NULL) /* Loading first image */ set_ident_text(""); else if (current_image->ident != NULL) { /* Filename and dimensions status, only the first time. */ set_ident_text(current_image->ident); g_free(current_image->ident); current_image->ident = NULL; size_str = g_strdup_printf("%dx%d", current_image->width, current_image->height); set_entry_text(entry_size, size_str); g_free(size_str); } /* The state */ zoom = get_matrix_zoom() * 100.0; angle = get_matrix_angle() * 180.0 / PI; sym = is_matrix_symmetry()? " /" : ""; /* We don't want -0.000 */ if (float_equal(angle, 0.0)) angle = 0.0; state_str = g_strdup_printf(_("%.3f%% (%.3f deg%s)"), zoom, angle, sym); set_entry_text(entry_state, state_str); g_free(state_str); } /* Does the WM support the EWMH protocol? */ static gboolean has_net_wm(void) { return gdk_net_wm_supports(gdk_atom_intern("_NET_WM_STATE_FULLSCREEN", FALSE)); } /* * On the first map, all widgets are shown, we have to hide * those that are not requested. */ static gboolean first_map(void) { if (options->menu_bar == FALSE) gtk_widget_hide(GTK_WIDGET(menu_bar)); if (options->status_bar == FALSE) gtk_widget_hide(GTK_WIDGET(status_bar)); if (options->scrollbars == FALSE) hide_scrollbars(); if (options->fullscreen && has_net_wm()) toggle_fullscreen(TRUE); return FALSE; } static void set_initial_geometry(void) { GdkGeometry size_hints = { 1, 1, 0, 0, 1, 1, 1, 1, 0.0, 0.0, GDK_GRAVITY_NORTH_WEST }; if (!options->initial_geometry) goto fail; if (options->fullscreen) { g_printerr(_("Ignoring initial geometry (%s) as" " fullscreen mode is requested\n"), options->initial_geometry); goto fail; } gtk_window_set_geometry_hints(main_window, GTK_WIDGET(main_window), &size_hints, GDK_HINT_MIN_SIZE | GDK_HINT_BASE_SIZE | GDK_HINT_RESIZE_INC); if (!gtk_window_parse_geometry(main_window, options->initial_geometry)) { g_printerr(_("Cannot parse geometry: %s\n"), options->initial_geometry); goto fail; } return; fail: g_free(options->initial_geometry); options->initial_geometry = NULL; } void create_windows(void) { GtkWindow *first_window; GtkAccelGroup *accel_group; GtkHBox *hbox; GdkPixbuf *logo = get_gliv_logo(); if (logo != NULL) gtk_window_set_default_icon(logo); rt->scr_width = gdk_screen_width(); rt->scr_height = gdk_screen_height(); /* * The main window: seen when not in fullscreen, * or when using the NET WM protocol. */ main_window = GTK_WINDOW(gtk_window_new(GTK_WINDOW_TOPLEVEL)); gtk_window_set_title(main_window, "GLiv"); install_callbacks(main_window); /* The window seen in fullscreen mode. */ fs_window = GTK_WINDOW(gtk_window_new(GTK_WINDOW_TOPLEVEL)); gtk_window_set_title(fs_window, _("GLiv in fullscreen")); /* Make it fullscreen. */ gtk_window_move(fs_window, 0, 0); gtk_window_set_default_size(fs_window, rt->scr_width, rt->scr_height); gtk_window_set_decorated(fs_window, FALSE); install_callbacks(fs_window); /* The widgets. */ create_gl_widget(); accel_group = create_menus(); create_status_bar(); /* Bind keyboard accelerators to windows. */ gtk_window_add_accel_group(main_window, accel_group); gtk_window_add_accel_group(fs_window, accel_group); /* Collection. */ widgets = GTK_VBOX(gtk_vbox_new(FALSE, 0)); /* The menu bar on the top. */ gtk_box_pack_start(GTK_BOX(widgets), GTK_WIDGET(menu_bar), FALSE, FALSE, 0); /* The OpenGL widget and the vertical scrollbar under the menu bar. */ hbox = GTK_HBOX(gtk_hbox_new(FALSE, 0)); gtk_box_pack_start_defaults(GTK_BOX(hbox), gl_widget); gtk_box_pack_start(GTK_BOX(hbox), get_new_scrollbar(FALSE), FALSE, FALSE, 0); gtk_box_pack_start_defaults(GTK_BOX(widgets), GTK_WIDGET(hbox)); /* The horizontal scrollbar under them. */ gtk_box_pack_start(GTK_BOX(widgets), get_new_scrollbar(TRUE), FALSE, FALSE, 0); /* The status bar in the bottom. */ gtk_box_pack_end(GTK_BOX(widgets), GTK_WIDGET(status_bar), FALSE, FALSE, 0); first_window = (options->fullscreen && !has_net_wm())? fs_window : main_window; gtk_container_add(GTK_CONTAINER(first_window), GTK_WIDGET(widgets)); g_signal_connect_after(first_window, "map", G_CALLBACK(first_map), NULL); gtk_widget_show_all(GTK_WIDGET(widgets)); set_initial_geometry(); gtk_widget_show_all(GTK_WIDGET(first_window)); } /* * Called when going from fullscreen mode to window mode, or when * the displayed image changed in window mode. */ void goto_window(GlivImage * im, gboolean first_time) { gint new_width, new_height; if (im == NULL) im = current_image; if (im == NULL) { new_width = 0; new_height = 0; } else { new_width = im->width; new_height = im->height; } if (new_width >= rt->scr_width) new_width = 3 * rt->scr_width / 4; if (new_height >= rt->scr_height) new_height = 3 * rt->scr_height / 4; resize_window(new_width, new_height, first_time); } /* * Return TRUE if we managed to toggle the fullscreen mode using the * NET WM protocol. */ static gboolean net_wm_toggle_fullscreen(gboolean enable) { if (get_current_window() != main_window || has_net_wm() == FALSE) return FALSE; if (enable) gtk_window_fullscreen(main_window); else gtk_window_unfullscreen(main_window); return TRUE; } void toggle_fullscreen(gboolean enable) { /* We first try using the NET WM protocol, then with the old method. */ if (net_wm_toggle_fullscreen(enable) == FALSE) { GtkWindow *new, *old; if (enable) { /* Go to fullscreen mode. */ new = fs_window; old = main_window; } else { /* Go to window mode. */ new = main_window; old = fs_window; } gtk_widget_show(GTK_WIDGET(new)); gtk_widget_hide(GTK_WIDGET(old)); gtk_widget_reparent(GTK_WIDGET(widgets), GTK_WIDGET(new)); } if (enable == FALSE) goto_window(NULL, FALSE); options->fullscreen = enable; schedule_hide_cursor(); } void update_window_title(void) { const gchar *path; gchar *basename, *title; if (current_image->node->data == NULL) return; path = filename_to_utf8(current_image->node->data); basename = g_path_get_basename(path); title = g_strdup_printf("GLiv - %s", basename); gtk_window_set_title(main_window, title); g_free(basename); g_free(title); } GtkWindow *get_current_window(void) { if (GTK_IS_WIDGET(gl_widget) && GTK_WIDGET_VISIBLE(gl_widget)) return GTK_WINDOW(gtk_widget_get_toplevel(gl_widget)); return NULL; } GtkWindow *new_window(const gchar * title) { GtkWindow *win = GTK_WINDOW(gtk_window_new(GTK_WINDOW_TOPLEVEL)); GtkWindow *parent = get_current_window(); gtk_window_set_title(win, title); gtk_window_set_transient_for(win, parent); gtk_window_set_destroy_with_parent(win, TRUE); gtk_window_set_type_hint(win, GDK_WINDOW_TYPE_HINT_DIALOG); return win; } gboolean toggle_floating_windows(void) { static GList *hidden_windows; GList *ptr; if (hidden_windows) { for (ptr = hidden_windows; ptr; ptr = ptr->next) { gtk_widget_show(GTK_WIDGET(ptr->data)); g_object_unref(ptr->data); } g_list_free(hidden_windows); hidden_windows = NULL; } else { GList *toplevels = gtk_window_list_toplevels(); /* First two windows are the main window and the full screen one */ for (ptr = toplevels->next->next; ptr; ptr = ptr->next) { GtkWidget *widget = GTK_WIDGET(ptr->data); if (GTK_WIDGET_VISIBLE(widget)) { gtk_widget_hide(widget); hidden_windows = g_list_prepend(hidden_windows, widget); g_object_ref(widget); } } g_list_free(toplevels); } return FALSE; } gliv-1.9.7/src/mnemonics.c0000644000076400007640000001163511465576131012701 0ustar gg/* * 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. * * See the COPYING file for license information. * * Guillaume Chazarain */ /***************************************** * Try to add unique mnemonics to labels * *****************************************/ #include /* strlen(), memcpy() */ #include "gliv.h" #include "mnemonics.h" #include "str_utils.h" static GSList *stack = NULL; static GHashTable *mnemonics = NULL; static gint count_underscores(const gchar * str, gint len) { gint nb_underscores = 0; const gulong *long_ptr; while ((gulong) str & (sizeof(gulong) - 1)) switch (*str) { case '\0': return nb_underscores; case '_': nb_underscores++; /* Fall through */ default: str++; len--; } long_ptr = (gulong *) str; while (len >= sizeof(gulong)) { gulong masked = *long_ptr ^ LONG_MASK(0x5F5F5F5FL, 0x5F5F5F5F5F5F5F5FL); if (HAS_ZERO(masked)) { /* A '_' has been detected. */ gchar *char_ptr = (gchar *) & masked; gint i; for (i = 0; i < sizeof(gulong); i++) nb_underscores += (*char_ptr++ == 0); } long_ptr++; len -= sizeof(gulong); } str = (const gchar *) long_ptr; while (len > 0) { nb_underscores += (*str == '_'); str++; len--; } return nb_underscores; } static const gchar *find_mnemonic_position(const gchar * str) { const gchar *ptr; for (ptr = str; *ptr != '\0'; ptr = g_utf8_next_char(ptr)) { gunichar ch = g_unichar_tolower(g_utf8_get_char(ptr)); gpointer ch_key = GINT_TO_POINTER(ch); if (g_unichar_isalnum(ch)) { if (mnemonics == NULL) { mnemonics = g_hash_table_new(g_direct_hash, g_direct_equal); g_hash_table_insert(mnemonics, ch_key, mnemonics); return ptr; } if (g_hash_table_lookup(mnemonics, ch_key) == NULL) { g_hash_table_insert(mnemonics, ch_key, mnemonics); return ptr; } } } /* No position found, add in front. */ return str; } /* * Underscores in labels are replaced with mnemonics, so we duplicate them. * The caller has to determine whether the returned string has to be freed. */ static gchar *duplicate_underscores(const gchar * orig) { gint nb_underscores, len; const gchar *ptr_orig; gchar *new, *ptr_new; /* How many underscores? */ len = strlen(orig); nb_underscores = count_underscores(orig, len); len += nb_underscores; if (nb_underscores == 0) return (gchar *) orig; ptr_new = new = g_new(gchar, len + 1); for (ptr_orig = orig; *ptr_orig != '\0'; ptr_orig++) { *ptr_new = *ptr_orig; if (*ptr_orig == '_') { /* Duplicate this one. */ ptr_new++; *ptr_new = '_'; } ptr_new++; } *ptr_new = '\0'; return new; } /* * The returned string should not be freed. We keep track of already used * mnemonics to avoid giving twice the same letter. */ const gchar *add_mnemonic(const gchar * str) { static gchar *result = NULL; static gint size = 0; const gchar *mnemonic_pos, *end; gint new_size, offset; gchar *work; work = duplicate_underscores(str); mnemonic_pos = find_mnemonic_position(work); end = mnemonic_pos + strlen(mnemonic_pos); /* + 2: '_' and '\0'. */ new_size = end - work + 2; if (new_size > size) { size = new_size; g_free(result); result = g_new(gchar, size); } offset = mnemonic_pos - work; memcpy(result, work, offset); result[offset] = '_'; memcpy(result + offset + 1, mnemonic_pos, end - mnemonic_pos + 1); if (work != str) g_free(work); return result; } void reset_mnemonics(void) { if (mnemonics != NULL) { g_hash_table_destroy(mnemonics); mnemonics = NULL; } } void push_mnemonics(void) { stack = g_slist_prepend(stack, mnemonics); mnemonics = NULL; } void pop_mnemonics(void) { reset_mnemonics(); mnemonics = g_slist_nth_data(stack, 0); stack = g_slist_delete_link(stack, stack); } gliv-1.9.7/src/menus.c0000644000076400007640000004152711465576131012043 0ustar gg/* * 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. * * See the COPYING file for license information. * * Guillaume Chazarain */ /*************** * The menubar * ***************/ #include /* GDK_* */ #include "gliv.h" #include "menus.h" #include "options.h" #include "rendering.h" #include "rcfile.h" #include "mnemonics.h" #include "params.h" #include "next_image.h" #include "windows.h" #include "matrix.h" #include "math_floats.h" #include "files_list.h" #include "messages.h" #include "open_dialog.h" #include "main.h" #include "history.h" #include "scrollbars.h" #include "cursors.h" #include "help.h" #include "images_menus.h" #include "collection.h" #include "ipc.h" #include "actions.h" #include "tree.h" #include "tree_browser.h" #include "gliv-image.h" extern options_struct *options; extern GlivImage *current_image; extern GtkMenuBar *menu_bar; void set_menu_label(GtkMenuItem * item, const gchar * text, gboolean mnemonic) { GList *children; GtkLabel *label; /* Find the label to change. */ children = gtk_container_get_children(GTK_CONTAINER(item)); while (children != NULL && GTK_IS_ACCEL_LABEL(children->data) == FALSE) children = children->next; if (children == NULL) return; label = children->data; if (mnemonic) { push_mnemonics(); gtk_label_set_text_with_mnemonic(GTK_LABEL(label), add_mnemonic(text)); pop_mnemonics(); } else gtk_label_set_text(GTK_LABEL(label), text); } static GtkMenuShell *add_menu(const gchar * name) { GtkMenuShell *menu; GtkMenuItem *item; static gboolean first_time = TRUE; if (first_time) { reset_mnemonics(); first_time = FALSE; } else pop_mnemonics(); name = add_mnemonic(_(name)); item = GTK_MENU_ITEM(gtk_menu_item_new_with_mnemonic(name)); gtk_menu_shell_append(GTK_MENU_SHELL(menu_bar), GTK_WIDGET(item)); menu = GTK_MENU_SHELL(gtk_menu_new()); gtk_menu_shell_append(menu, gtk_tearoff_menu_item_new()); gtk_menu_item_set_submenu(item, GTK_WIDGET(menu)); push_mnemonics(); return menu; } /* Should not collide with a keysym */ #define CTRL (1 << 31) static GtkMenuItem *add_menu_item(GtkMenuShell * menu, const gchar * menu_name, const gchar * name, GCallback func, guint key, gpointer data) { GtkMenuItem *menu_item; GdkModifierType mod; gchar *accel_path; const gchar *menu_item_name; menu_item_name = add_mnemonic(_(name)); menu_item = GTK_MENU_ITEM(gtk_menu_item_new_with_mnemonic(menu_item_name)); gtk_menu_shell_append(menu, GTK_WIDGET(menu_item)); if (!func) return menu_item; g_signal_connect_swapped(menu_item, "activate", func, data); if (key >= GDK_A && key <= GDK_Z) mod = GDK_SHIFT_MASK; else if (key & CTRL) { key &= ~CTRL; mod = GDK_CONTROL_MASK; } else mod = 0; accel_path = g_strconcat("/", menu_name, "/", name, NULL); gtk_accel_map_add_entry(accel_path, key, mod); gtk_menu_item_set_accel_path(menu_item, accel_path); g_free(accel_path); return menu_item; } static gboolean toggle_alpha_checks(void) { options->alpha_checks ^= TRUE; refresh(REFRESH_IMAGE); return FALSE; } static gboolean menu_fullscreen(void) { toggle_fullscreen(!options->fullscreen); return FALSE; } #define MAXIMIZE (1 << 0) #define SCALE_DOWN (1 << 1) static gboolean menu_maximize(gint what) { gboolean old_maximize, old_scale_down; if (current_image == NULL) return FALSE; old_maximize = options->maximize; old_scale_down = options->scaledown; options->maximize = ((what & MAXIMIZE) != 0); options->scaledown = ((what & SCALE_DOWN) != 0); matrix_set_max_zoom(-1, -1, TRUE); options->maximize = old_maximize; options->scaledown = old_scale_down; refresh(REFRESH_IMAGE | REFRESH_STATUS | APPEND_HISTORY); return FALSE; } enum transfo { /* Must be kept in sync with 'enum image_position' */ TRANSFO_CENTER = 0, TRANSFO_TOP_LEFT, TRANSFO_TOP_RIGHT, TRANSFO_BOTTOM_LEFT, TRANSFO_BOTTOM_RIGHT, /* --- */ TRANSFO_MOVE_LEFT, TRANSFO_MOVE_RIGHT, TRANSFO_MOVE_UP, TRANSFO_MOVE_DOWN, /* --- */ TRANSFO_ROTATE_BIG_PLUS, TRANSFO_ROTATE_BIG_MINUS, TRANSFO_ROTATE_SMALL_PLUS, TRANSFO_ROTATE_SMALL_MINUS, /* --- */ TRANSFO_ZOOM_IN, TRANSFO_ZOOM_OUT, TRANSFO_FIT_WIDTH, TRANSFO_FIT_HEIGHT, TRANSFO_FLIP_H, TRANSFO_FLIP_V, TRANSFO_RESET, /* --- */ }; static gboolean menu_transfo(enum transfo transfo) { if (current_image == NULL) return FALSE; switch (transfo) { case TRANSFO_CENTER: case TRANSFO_TOP_LEFT: case TRANSFO_TOP_RIGHT: case TRANSFO_BOTTOM_LEFT: case TRANSFO_BOTTOM_RIGHT: { enum image_position old_pos = options->initial_pos; options->initial_pos = transfo; matrix_set_initial_position(); options->initial_pos = old_pos; break; } /* --- */ case TRANSFO_MOVE_LEFT: matrix_move(MOVE_OFFSET, 0.0); break; case TRANSFO_MOVE_RIGHT: matrix_move(-MOVE_OFFSET, 0.0); break; case TRANSFO_MOVE_UP: matrix_move(0.0, MOVE_OFFSET); break; case TRANSFO_MOVE_DOWN: matrix_move(0.0, -MOVE_OFFSET); break; /* --- */ case TRANSFO_ROTATE_BIG_PLUS: matrix_rotate(BIG_ROTATION); break; case TRANSFO_ROTATE_BIG_MINUS: matrix_rotate(-BIG_ROTATION); break; case TRANSFO_ROTATE_SMALL_PLUS: matrix_rotate(SMALL_ROTATION); break; case TRANSFO_ROTATE_SMALL_MINUS: matrix_rotate(-SMALL_ROTATION); break; /* --- */ case TRANSFO_ZOOM_IN: case TRANSFO_ZOOM_OUT: { gboolean zoom_pointer = options->zoom_pointer; options->zoom_pointer = FALSE; if (transfo == TRANSFO_ZOOM_IN) zoom_in(ZOOM_FACTOR); else zoom_in(1.0 / ZOOM_FACTOR); options->zoom_pointer = zoom_pointer; break; } case TRANSFO_FIT_WIDTH: matrix_fit(TRUE, FALSE); break; case TRANSFO_FIT_HEIGHT: matrix_fit(FALSE, TRUE); break; case TRANSFO_FLIP_H: matrix_flip_h(); break; case TRANSFO_FLIP_V: matrix_flip_v(); break; case TRANSFO_RESET: matrix_reset(); break; default: g_printerr("Unknown transformation: %d\n", transfo); return FALSE; } refresh(REFRESH_IMAGE | REFRESH_STATUS | APPEND_HISTORY); return FALSE; } #define SEPARATOR gtk_menu_shell_append(menu, gtk_separator_menu_item_new()) #define ADD_MENU_ITEM(str, signal_func, key, val) \ add_menu_item(menu, menu_name, str, G_CALLBACK(signal_func), key, \ GINT_TO_POINTER(val)) #define ADD_MENU(str) \ do { \ menu = add_menu(str); \ menu_name = str; \ gtk_menu_set_accel_group(GTK_MENU(menu), accel_group); \ } while (0) /* Used to add an images menu. */ static GtkMenuItem *add_special_menu(const gchar * name, GCallback rebuild_menu) { GList *children; GtkMenuShell *menu; GtkMenuItem *item; gchar *menu_name = NULL; menu = add_menu(name); children = gtk_container_get_children(GTK_CONTAINER(menu)); item = GTK_MENU_ITEM(gtk_menu_get_attach_widget(GTK_MENU(menu))); g_list_free(children); ADD_MENU_ITEM(_("Rebuild this menu"), rebuild_menu, 0, 0); ADD_MENU_ITEM(_("Open thumbnails browser..."), show_tree_browser, 0, 0); return item; } #define ADD_SPECIAL_MENU(str, cb) cb(add_special_menu(str, G_CALLBACK(cb))) static GtkMenuShell *add_submenu(GtkMenuShell * menu, const gchar * name) { GtkMenuItem *item; GtkMenu *submenu; item = add_menu_item(menu, NULL, name, NULL, 0, NULL); submenu = GTK_MENU(gtk_menu_new()); gtk_menu_item_set_submenu(item, GTK_WIDGET(submenu)); gtk_menu_shell_append(GTK_MENU_SHELL(submenu), gtk_tearoff_menu_item_new()); push_mnemonics(); return GTK_MENU_SHELL(submenu); } #define ADD_SUBMENU(name) \ do { \ submenu = add_submenu(menu, name); \ gtk_menu_set_accel_group(GTK_MENU(submenu), accel_group); \ submenu_name = g_strconcat(menu_name, "/", name, NULL); \ } while (0) #define END_SUBMENU() \ do { \ pop_mnemonics(); \ g_free(submenu_name); \ } while (0) #define ADD_SUBMENU_ITEM(name, action, key) \ add_menu_item(submenu, submenu_name, name, G_CALLBACK(menu_transfo), key, \ GINT_TO_POINTER(action)) /* GtkAction are not supported in gtk+-2 < 2.3 */ extern const guint gtk_minor_version; GtkAccelGroup *create_menus(void) { GtkMenuShell *menu, *submenu; GtkAccelGroup *accel_group; GtkMenuItem *item, *current_image_item, *every_image_item; gchar *menu_name, *submenu_name; menu_bar = GTK_MENU_BAR(gtk_menu_bar_new()); /* This will go away when we support actions. */ if (gtk_minor_version >= 3) g_signal_connect(menu_bar, "can-activate-accel", G_CALLBACK(gtk_true), NULL); accel_group = gtk_accel_group_new(); gtk_settings_set_long_property(gtk_settings_get_default(), "gtk-can-change-accels", 1, "GLiv"); /**************/ /* File menu. */ ADD_MENU(N_("File")); ADD_MENU_ITEM(N_("Open..."), menu_open, GDK_o, FALSE); ADD_MENU_ITEM(N_("Open directory..."), menu_open, GDK_O, TRUE); SEPARATOR; /* ------------------------------------ */ ADD_MENU_ITEM(N_("Load collection..."), deserialize_collection, 0, 0); ADD_MENU_ITEM(N_("Save collection..."), serialize_collection_gui, 0, 0); SEPARATOR; /* ------------------------------------ */ ADD_MENU_ITEM(N_("Quit"), gui_quit, GDK_q, 0); /******************/ /* Commands menu. */ ADD_MENU(N_("Commands")); ADD_MENU_ITEM(N_("Load previous image"), load_direction, GDK_p, -1); ADD_MENU_ITEM(N_("Load next image"), load_direction, GDK_n, 1); ADD_MENU_ITEM(N_("Load the Nth image..."), menu_image_nr, GDK_g, 0); ADD_MENU_ITEM(N_("Load first image"), load_1st_image, GDK_comma, 0); ADD_MENU_ITEM(N_("Load last image"), load_last_image, GDK_period, 0); ADD_MENU_ITEM(N_("Load random image"), load_random_image, GDK_x, 0); ADD_MENU_ITEM(N_("Reload the current image"), reload_current_image, 0, 0); SEPARATOR; /* ------------------------------------ */ ADD_MENU_ITEM(N_("Sort images list"), reorder_files, 0, FALSE); ADD_MENU_ITEM(N_("Shuffle images list"), reorder_files, 0, TRUE); SEPARATOR; /* ------------------------------------ */ ADD_MENU_ITEM(N_("Rebuild images menus"), rebuild_images_menus, 0, 0); item = ADD_MENU_ITEM(N_("Stop rebuilding the images menu"), cancel_using_tree, 0, 0); set_stop_rebuilding_menu(item); SEPARATOR; /* ------------------------------------ */ ADD_MENU_ITEM(N_("Toggle floating windows"), toggle_floating_windows, GDK_w, 0); item = ADD_MENU_ITEM(N_("Start the slide show"), toggle_slide_show, GDK_Pause, 0); set_slide_show_menu(item); ADD_MENU_ITEM(N_("Remove the current file"), confirm_remove_current, GDK_Delete, 0); SEPARATOR; /* ------------------------------------ */ ADD_MENU_ITEM(N_("Edit actions..."), edit_actions, 0, 0); current_image_item = ADD_MENU_ITEM(_("Action on the current image"), NULL, 0, 0); every_image_item = ADD_MENU_ITEM(_("Action on every image"), NULL, 0, 0); /*************************/ /* Transformations menu. */ ADD_MENU(N_("Transformations")); ADD_MENU_ITEM(N_("Undo"), undo, GDK_u, 0); ADD_MENU_ITEM(N_("Redo"), redo, GDK_y, 0); ADD_MENU_ITEM(N_("Clear history"), clear_history, GDK_c, 0); SEPARATOR; /* ------------------------------------ */ ADD_SUBMENU(N_("Move")); ADD_SUBMENU_ITEM(N_("Move left"), TRANSFO_MOVE_LEFT, GDK_Left); ADD_SUBMENU_ITEM(N_("Move right"), TRANSFO_MOVE_RIGHT, GDK_Right); ADD_SUBMENU_ITEM(N_("Move up"), TRANSFO_MOVE_UP, GDK_Up); ADD_SUBMENU_ITEM(N_("Move down"), TRANSFO_MOVE_DOWN, GDK_Down); END_SUBMENU(); ADD_SUBMENU(N_("Set position")); ADD_SUBMENU_ITEM(N_("Center"), TRANSFO_CENTER, 0); ADD_SUBMENU_ITEM(N_("Top left"), TRANSFO_TOP_LEFT, GDK_Home); ADD_SUBMENU_ITEM(N_("Top right"), TRANSFO_TOP_RIGHT, 0); ADD_SUBMENU_ITEM(N_("Bottom left"), TRANSFO_BOTTOM_LEFT, 0); ADD_SUBMENU_ITEM(N_("Bottom right"), TRANSFO_BOTTOM_RIGHT, 0); END_SUBMENU(); ADD_SUBMENU(N_("Rotation")); ADD_SUBMENU_ITEM(N_("Rotate +90 deg"), TRANSFO_ROTATE_BIG_PLUS, CTRL | GDK_Up); ADD_SUBMENU_ITEM(N_("Rotate -90 deg"), TRANSFO_ROTATE_BIG_MINUS, CTRL | GDK_Down); ADD_SUBMENU_ITEM(N_("Rotate +0.1 deg"), TRANSFO_ROTATE_SMALL_PLUS, CTRL | GDK_Left); ADD_SUBMENU_ITEM(N_("Rotate -0.1 deg"), TRANSFO_ROTATE_SMALL_MINUS, CTRL | GDK_Right); END_SUBMENU(); SEPARATOR; /* ------------------------------------ */ ADD_MENU_ITEM(N_("Horizontal flip"), menu_transfo, GDK_z, TRANSFO_FLIP_H); ADD_MENU_ITEM(N_("Vertical flip"), menu_transfo, GDK_e, TRANSFO_FLIP_V); SEPARATOR; /* ------------------------------------ */ ADD_MENU_ITEM(N_("Maximize small image"), menu_maximize, GDK_M, MAXIMIZE); ADD_MENU_ITEM(N_("Scale down large image"), menu_maximize, GDK_l, SCALE_DOWN); ADD_MENU_ITEM(N_("Image fit window"), menu_maximize, GDK_m, MAXIMIZE | SCALE_DOWN); ADD_MENU_ITEM(N_("Zoom in"), menu_transfo, GDK_plus, TRANSFO_ZOOM_IN); ADD_MENU_ITEM(N_("Zoom out"), menu_transfo, GDK_minus, TRANSFO_ZOOM_OUT); ADD_MENU_ITEM(N_("Fit width"), menu_transfo, 0, TRANSFO_FIT_WIDTH); ADD_MENU_ITEM(N_("Fit height"), menu_transfo, 0, TRANSFO_FIT_HEIGHT); SEPARATOR; /* ------------------------------------ */ ADD_MENU_ITEM(N_("Reset"), menu_transfo, GDK_r, TRANSFO_RESET); /*****************/ /* Options menu. */ ADD_MENU(N_("Options")); ADD_MENU_ITEM(N_("Toggle Fullscreen mode"), menu_fullscreen, GDK_f, 0); ADD_MENU_ITEM(N_("Toggle Menu Bar"), toggle_menu_bar, GDK_b, 0); ADD_MENU_ITEM(N_("Toggle Status Bar"), toggle_status_bar, GDK_i, 0); ADD_MENU_ITEM(N_("Toggle Scrollbars"), toggle_scrollbars, GDK_s, 0); ADD_MENU_ITEM(N_("Toggle Alpha checks"), toggle_alpha_checks, GDK_a, 0); SEPARATOR; /* ------------------------------------ */ ADD_MENU_ITEM(N_("Hide the cursor"), hide_cursor, GDK_d, 0); ADD_MENU_ITEM(N_("Set this window as server"), start_server, 0, 0); SEPARATOR; /* ------------------------------------ */ ADD_MENU_ITEM(N_("Options..."), show_options, GDK_t, 0); /*********************/ /* Directories menu. */ ADD_SPECIAL_MENU(N_("Directories"), rebuild_directories); /****************/ /* Images menu. */ ADD_SPECIAL_MENU(N_("Images"), rebuild_images); /*******************************/ /* Menus rebuilding indicator. */ item = GTK_MENU_ITEM(gtk_menu_item_new_with_label("")); set_rebuilding_entry(item); gtk_widget_set_sensitive(GTK_WIDGET(item), FALSE); gtk_menu_shell_append(GTK_MENU_SHELL(menu_bar), GTK_WIDGET(item)); /**************/ /* Help menu. */ ADD_MENU(N_("Help")); ADD_MENU_ITEM(N_("About..."), show_about_box, 0, 0); ADD_MENU_ITEM(N_("Controls..."), toggle_help, GDK_h, 0); load_accelerators(); load_actions(); init_actions(accel_group, current_image_item, every_image_item); return accel_group; } gliv-1.9.7/src/matrix.c0000644000076400007640000002672711465576131012225 0ustar gg/* * 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. * * See the COPYING file for license information. * * Guillaume Chazarain */ /************************ * The MODELVIEW matrix * ************************/ #include /* memcpy() */ #include "gliv.h" #include "matrix.h" #include "math_floats.h" /* cosf(), sinf(), ... */ #include "options.h" #include "opengl.h" #include "gliv-image.h" extern rt_struct *rt; extern options_struct *options; extern GlivImage *current_image; /* * OpenGL uses a transposed matrix, we use a 'normal' one, * we transpose it just before glLoadMatrix(). * * Value: Index: * c1 s1 0 x | 0 1 2 3 * s2 c2 0 y | 4 5 6 7 * 0 0 1 0 | 8 9 10 11 \ constant so * 0 0 0 1 | 12 13 14 15 / unused. */ #define MATRIX_C1 matrix[0] #define MATRIX_S1 matrix[1] #define MATRIX_X matrix[3] #define MATRIX_S2 matrix[4] #define MATRIX_C2 matrix[5] #define MATRIX_Y matrix[7] static gfloat matrix[8] = { /* We only use two rows. */ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0 }; /* Used to know if the OpenGL matrix and this one are in sync. */ static gboolean matrix_changed = TRUE; static void touch_matrix(void) { matrix_changed = TRUE; } G_GNUC_PURE gfloat get_matrix_zoom(void) { /* * c1 == zoom*cos, s1 == zoom*sin * cos² + sin² == 1 => c1² + s1² == zoom² */ return hypotf(MATRIX_C1, MATRIX_S1); } /* To be displayed in the status bar. */ G_GNUC_PURE gfloat get_matrix_angle(void) { gfloat cosine, angle; cosine = MATRIX_C1 / get_matrix_zoom(); angle = acosf(cosine); if (MATRIX_S1 < 0) /* Negative sine => negative angle. */ angle *= -1.0; return angle; } /* OpenGL coordinates to window coordinates. */ static void point_coord(gfloat x, gfloat y, gfloat * res_x, gfloat * res_y) { /* OpenGL coordinates through the modelview matrix. */ *res_x = MATRIX_C1 * x + MATRIX_S1 * y + MATRIX_X; *res_y = MATRIX_S2 * x + MATRIX_C2 * y + MATRIX_Y; /* And now through the projection matrix. */ *res_x += rt->wid_size->width / 2.0; *res_y += rt->wid_size->height / 2.0; } static gfloat min4(gfloat a, gfloat b, gfloat c, gfloat d) { if (a > b) a = b; if (c > d) c = d; return MIN(a, c); } static gfloat max4(gfloat a, gfloat b, gfloat c, gfloat d) { if (a < b) a = b; if (c < d) c = d; return MAX(a, c); } /* Convenient function: a == b ? */ G_GNUC_PURE gboolean float_equal(gfloat a, gfloat b) { return fabsf(a - b) < 1e-3; } void get_matrix_bounding_box(gfloat * min_x, gfloat * max_x, gfloat * min_y, gfloat * max_y) { gfloat x0, y0, x1, y1; gfloat x2, y2, x3, y3; gfloat half_w, half_h; half_w = current_image->width / 2.0; half_h = current_image->height / 2.0; point_coord(-half_w, -half_h, &x0, &y0); point_coord(half_w, -half_h, &x1, &y1); point_coord(-half_w, half_h, &x2, &y2); point_coord(half_w, half_h, &x3, &y3); *min_x = min4(x0, x1, x2, x3); *max_x = max4(x0, x1, x2, x3); *min_y = min4(y0, y1, y2, y3); *max_y = max4(y0, y1, y2, y3); } /*** Input, output. ***/ void write_gl_matrix(void) { /* *INDENT-OFF* */ static gfloat transposed[16] = { 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 }; /* *INDENT-ON* */ if (matrix_changed) { transposed[0] = MATRIX_C1; transposed[5] = MATRIX_C2; transposed[4] = MATRIX_S1; transposed[1] = MATRIX_S2; transposed[12] = MATRIX_X; transposed[13] = MATRIX_Y; glLoadMatrixf(transposed); matrix_changed = FALSE; } } /* In parameters dest and src, NULL is the current matrix. */ void matrix_cpy(gfloat * dest, gfloat * src) { if (dest == NULL) { dest = matrix; touch_matrix(); } else if (src == NULL) src = matrix; memcpy(dest, src, sizeof(matrix)); } /*** Informations gathering about the matrix. ***/ G_GNUC_PURE static gboolean angle_is_right(void) { gfloat modulo; modulo = fmodf(get_matrix_angle(), PI / 2.0); return float_equal(modulo, 0.0); } gboolean matrix_tile_visible(tile_dim * tile) { static guint select_buffer[4]; glSelectBuffer(4, select_buffer); glRenderMode(GL_SELECT); glInitNames(); glPushName(0); glRectf(tile->x0, tile->y0, tile->x1, tile->y1); return glRenderMode(GL_RENDER) > 0; } G_GNUC_PURE gboolean is_matrix_symmetry(void) { /* * c1 == c2 => rotation, c1 == -c2 => symmetry. * s1 == -s2 => rotation, s1 == s2 => symmetry. * * Since (c1/zoom)² + (s1/zoom)² == 1, we use c1 only if far enough from 0. */ return fabsf(MATRIX_C1) > fabsf(MATRIX_S1) ? !float_equal(MATRIX_C1, MATRIX_C2) : !float_equal(MATRIX_S1, -MATRIX_S2); } G_GNUC_PURE gboolean get_matrix_has_changed(void) { return matrix_changed; } G_GNUC_PURE gboolean is_filtering_needed(void) { return (float_equal(get_matrix_zoom(), 1.0) == FALSE) || (angle_is_right() == FALSE); } /*** Operations on the matrix. ***/ /* Returns FALSE if the image is already maximised. */ gboolean matrix_set_max_zoom(gint width, gint height, gboolean do_it) { gfloat min_x, max_x, min_y, max_y, zoom; if (current_image == NULL) return TRUE; if (do_it == FALSE && (float_equal(MATRIX_X, 0.0) == FALSE || float_equal(MATRIX_Y, 0.0) == FALSE)) /* Image not centered. */ return TRUE; if (width < 0) width = rt->wid_size->width; if (height < 0) height = rt->wid_size->height; if ((options->maximize == FALSE && (current_image->width < width && current_image->height < height)) || (options->scaledown == FALSE && (current_image->width > width || current_image->height > height))) return TRUE; get_matrix_bounding_box(&min_x, &max_x, &min_y, &max_y); zoom = MIN(width / (max_x - min_x), height / (max_y - min_y)); if (float_equal(zoom, 1.0) == FALSE || float_equal(MATRIX_X, 0.0) == FALSE || float_equal(MATRIX_Y, 0.0) == FALSE) { if (do_it) { matrix_zoom(zoom, 0.0, 0.0); MATRIX_X = MATRIX_Y = 0.0; } return TRUE; } return FALSE; } void matrix_fit(gboolean fit_w, gboolean fit_h) { gfloat min_x, max_x, min_y, max_y, zoom = INFINITY; get_matrix_bounding_box(&min_x, &max_x, &min_y, &max_y); if (fit_w) { MATRIX_X = 0.0; zoom = MIN(zoom, (gfloat) rt->wid_size->width / (max_x - min_x)); } if (fit_h) { MATRIX_Y = 0.0; zoom = MIN(zoom, (gfloat) rt->wid_size->height / (max_y - min_y)); } matrix_zoom(zoom, rt->wid_size->width / 2.0, rt->wid_size->height / 2.0); } static void reset_matrix(gfloat * mat) { mat[0] = 1.0; mat[1] = 0.0; mat[2] = 0.0; mat[3] = 0.0; mat[4] = 0.0; mat[5] = 1.0; mat[6] = 0.0; mat[7] = 0.0; } void matrix_reset(void) { reset_matrix(matrix); touch_matrix(); } /* * Rotation: Product: * cos sin 0 0 | c1*cos+s2*sin s1*cos+c2*sin 0 x*cos+y*sin * -sin cos 0 0 | -c1*sin+s2*cos -s1*sin+c2*cos 0 -x*sin+y*cos * 0 0 1 0 | 0 0 1 0 * 0 0 0 1 | 0 0 0 1 */ void matrix_rotate(gfloat angle) { gfloat cosine, sine; gfloat c1, s1, c2, s2, x, y; gboolean zoom; /* Do we maximize after rotating? */ zoom = (options->maximize || options->scaledown) && (matrix_set_max_zoom(-1, -1, FALSE) == FALSE); cosine = cosf(angle); sine = sinf(angle); /* Backup, as we'll modify them. */ c1 = MATRIX_C1; c2 = MATRIX_C2; s1 = MATRIX_S1; s2 = MATRIX_S2; x = MATRIX_X; y = MATRIX_Y; MATRIX_C1 = c1 * cosine + s2 * sine; MATRIX_S1 = s1 * cosine + c2 * sine; MATRIX_S2 = -c1 * sine + s2 * cosine; MATRIX_C2 = -s1 * sine + c2 * cosine; MATRIX_X = x * cosine + y * sine; MATRIX_Y = -x * sine + y * cosine; if (zoom) matrix_set_max_zoom(-1, -1, TRUE); touch_matrix(); } void matrix_move(gfloat x, gfloat y) { MATRIX_X += x; MATRIX_Y += y; touch_matrix(); } /* (x, y): zoom center. */ void matrix_zoom(gfloat ratio, gfloat x, gfloat y) { gfloat offset_x, offset_y; offset_x = rt->wid_size->width / 2.0 - x; offset_y = rt->wid_size->height / 2.0 - y; matrix_move(offset_x, offset_y); MATRIX_C1 *= ratio; MATRIX_S1 *= ratio; MATRIX_X *= ratio; MATRIX_S2 *= ratio; MATRIX_C2 *= ratio; MATRIX_Y *= ratio; matrix_move(-offset_x, -offset_y); } void flip_matrix(gfloat * mat, gboolean h_flip) { /* Flip either the x or y row. */ gint id = h_flip ? 4 : 0; mat[id] *= -1.0; mat[id + 1] *= -1.0; /* mat[id + 2] is 0.0. */ mat[id + 3] *= -1.0; } void matrix_flip_h(void) { /* Flip y. */ flip_matrix(matrix, TRUE); touch_matrix(); } void matrix_flip_v(void) { /* Flip x. */ flip_matrix(matrix, FALSE); touch_matrix(); } void matrix_set_initial_position(void) { gfloat min_x, max_x, min_y, max_y; enum image_position pos = options->initial_pos; if (pos == POSITION_KEEP) return; get_matrix_bounding_box(&min_x, &max_x, &min_y, &max_y); if (pos == POSITION_CENTER) { matrix_move((rt->wid_size->width - min_x - max_x) / 2.0, (rt->wid_size->height - min_y - max_y) / 2.0); return; } if (min_x < 0.0 || max_x > (gfloat) rt->wid_size->width) { if (pos == POSITION_TOP_LEFT || pos == POSITION_BOTTOM_LEFT) matrix_move(-min_x, 0.0); else matrix_move((gfloat) rt->wid_size->width - max_x, 0.0); } if (min_y < 0.0 || max_y > (gfloat) rt->wid_size->height) { if (pos == POSITION_TOP_LEFT || pos == POSITION_TOP_RIGHT) matrix_move(0.0, -min_y); else matrix_move(0.0, (gfloat) rt->wid_size->height - max_y); } } void configure_matrix(GlivImage * im) { GlivImage *old = current_image; current_image = im; if (im->first_image || options->keep_transfo == FALSE) { matrix_reset(); matrix_rotate(im->initial_angle); if (im->initial_h_flip) matrix_flip_h(); if (options->maximize || options->scaledown) matrix_set_max_zoom(-1, -1, TRUE); } matrix_set_initial_position(); current_image = old; } gfloat *new_matrix(void) { gfloat *new_mat = g_new(gfloat, 8); reset_matrix(new_mat); return new_mat; } gfloat *get_matrix_for_image(GlivImage * im) { gfloat current_matrix[8]; gfloat *new_mat; matrix_cpy(current_matrix, NULL); configure_matrix(im); new_mat = new_matrix(); matrix_cpy(new_mat, NULL); matrix_cpy(NULL, current_matrix); return new_mat; } gliv-1.9.7/src/formats.c0000644000076400007640000002034211465576131012357 0ustar gg/* ANSI-C code produced by gperf version 3.0.3 */ /* Command-line: gperf -n --multiple-iterations 64 --output formats.c ../tools/formats.gperf */ /* Computed positions: -k'1-4' */ #if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \ && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \ && (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \ && ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \ && ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \ && ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \ && ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \ && ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \ && ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \ && ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \ && ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \ && ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \ && ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \ && ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \ && ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \ && ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \ && ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \ && ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \ && ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \ && ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \ && ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \ && ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \ && ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126)) /* The character set is not based on ISO-646. */ #error "gperf generated tables don't work with this execution character set. Please report a bug to ." #endif #line 1 "../tools/formats.gperf" #include "gliv.h" #include "formats.h" #include #define TOTAL_KEYWORDS 29 #define MIN_WORD_LENGTH 1 #define MAX_WORD_LENGTH 5 #define MIN_HASH_VALUE 0 #define MAX_HASH_VALUE 28 /* maximum key range = 29, duplicates = 0 */ #ifndef GPERF_DOWNCASE #define GPERF_DOWNCASE 1 static unsigned char gperf_downcase[256] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255 }; #endif #ifndef GPERF_CASE_STRCMP #define GPERF_CASE_STRCMP 1 static int gperf_case_strcmp (register const char *s1, register const char *s2) { for (;;) { unsigned char c1 = gperf_downcase[(unsigned char)*s1++]; unsigned char c2 = gperf_downcase[(unsigned char)*s2++]; if (c1 != 0 && c1 == c2) continue; return (int)c1 - (int)c2; } } #endif #ifdef __GNUC__ __inline #else #ifdef __cplusplus inline #endif #endif static unsigned int hash (register const char *str, register unsigned int len) { static const unsigned char asso_values[] = { 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 18, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 13, 9, 0, 29, 29, 2, 4, 11, 0, 8, 29, 9, 11, 2, 29, 0, 6, 8, 0, 3, 22, 6, 10, 1, 15, 1, 29, 29, 29, 29, 29, 29, 13, 9, 0, 29, 29, 2, 4, 11, 0, 8, 29, 9, 11, 2, 29, 0, 6, 8, 0, 3, 22, 6, 10, 1, 15, 1, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29 }; register int hval = 0; switch (len) { default: hval += asso_values[(unsigned char)str[3]]; /*FALLTHROUGH*/ case 3: hval += asso_values[(unsigned char)str[2]+1]; /*FALLTHROUGH*/ case 2: hval += asso_values[(unsigned char)str[1]]; /*FALLTHROUGH*/ case 1: hval += asso_values[(unsigned char)str[0]]; break; } return hval; } #ifdef __GNUC__ __inline #ifdef __GNUC_STDC_INLINE__ __attribute__ ((__gnu_inline__)) #endif #endif const struct format * ext_to_loader (register const char *str, register unsigned int len) { static const struct format wordlist[] = { #line 26 "../tools/formats.gperf" {"ico", LOADER_PIXBUF}, #line 47 "../tools/formats.gperf" {"z", LOADER_DECOMP}, #line 35 "../tools/formats.gperf" {"ppm", LOADER_PIXBUF}, #line 46 "../tools/formats.gperf" {"xpm", LOADER_PIXBUF}, #line 34 "../tools/formats.gperf" {"pnm", LOADER_PIXBUF}, #line 25 "../tools/formats.gperf" {"gz", LOADER_DECOMP}, #line 31 "../tools/formats.gperf" {"pgm", LOADER_PIXBUF}, #line 41 "../tools/formats.gperf" {"tif", LOADER_PIXBUF}, #line 23 "../tools/formats.gperf" {"gif", LOADER_PIXBUF}, #line 42 "../tools/formats.gperf" {"tiff", LOADER_PIXBUF}, #line 27 "../tools/formats.gperf" {"jpe", LOADER_PIXBUF}, #line 30 "../tools/formats.gperf" {"pbm", LOADER_PIXBUF}, #line 45 "../tools/formats.gperf" {"xbm", LOADER_PIXBUF}, #line 33 "../tools/formats.gperf" {"png", LOADER_PIXBUF}, #line 28 "../tools/formats.gperf" {"jpeg", LOADER_PIXBUF}, #line 32 "../tools/formats.gperf" {"pcx", LOADER_PIXBUF}, #line 40 "../tools/formats.gperf" {"tga", LOADER_PIXBUF}, #line 37 "../tools/formats.gperf" {"svg", LOADER_PIXBUF}, #line 38 "../tools/formats.gperf" {"svgz", LOADER_PIXBUF}, #line 29 "../tools/formats.gperf" {"jpg", LOADER_PIXBUF}, #line 39 "../tools/formats.gperf" {"targa", LOADER_PIXBUF}, #line 43 "../tools/formats.gperf" {"wbmp", LOADER_PIXBUF}, #line 22 "../tools/formats.gperf" {"cur", LOADER_PIXBUF}, #line 19 "../tools/formats.gperf" {"ani", LOADER_PIXBUF}, #line 36 "../tools/formats.gperf" {"ras", LOADER_PIXBUF}, #line 44 "../tools/formats.gperf" {"wmf", LOADER_PIXBUF}, #line 20 "../tools/formats.gperf" {"bmp", LOADER_PIXBUF}, #line 24 "../tools/formats.gperf" {"gliv", LOADER_DOT_GLIV}, #line 21 "../tools/formats.gperf" {"bz2", LOADER_DECOMP} }; if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH) { register int key = hash (str, len); if (key <= MAX_HASH_VALUE && key >= 0) { register const char *s = wordlist[key].name; if ((((unsigned char)*str ^ (unsigned char)*s) & ~32) == 0 && !gperf_case_strcmp (str, s)) return &wordlist[key]; } } return 0; } gliv-1.9.7/src/Makefile.in0000644000076400007640000006062711465576131012617 0ustar gg# 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 = : build_triplet = @build@ host_triplet = @host@ bin_PROGRAMS = gliv$(EXEEXT) @NEED_REPLACEMENTS_FALSE@gliv_DEPENDENCIES = 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 = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" PROGRAMS = $(bin_PROGRAMS) am_gliv_OBJECTS = actions.$(OBJEXT) callbacks.$(OBJEXT) \ cmdline.$(OBJEXT) collection.$(OBJEXT) cursors.$(OBJEXT) \ decompression.$(OBJEXT) dirty_gtk.$(OBJEXT) \ dithering.$(OBJEXT) files_list.$(OBJEXT) \ foreach_file.$(OBJEXT) formats.$(OBJEXT) gl_widget.$(OBJEXT) \ gliv-image.$(OBJEXT) help.$(OBJEXT) help_text.$(OBJEXT) \ history.$(OBJEXT) images_menus.$(OBJEXT) ipc.$(OBJEXT) \ loading.$(OBJEXT) main.$(OBJEXT) matrix.$(OBJEXT) \ menus.$(OBJEXT) mnemonics.$(OBJEXT) move_pointer.$(OBJEXT) \ next_image.$(OBJEXT) open_dialog.$(OBJEXT) options.$(OBJEXT) \ pathset.$(OBJEXT) rcfile.$(OBJEXT) rendering.$(OBJEXT) \ scrollbars.$(OBJEXT) str_utils.$(OBJEXT) strnatcmp.$(OBJEXT) \ textures.$(OBJEXT) thread.$(OBJEXT) thumbnails.$(OBJEXT) \ tiling.$(OBJEXT) timestamp.$(OBJEXT) transition.$(OBJEXT) \ tree.$(OBJEXT) tree_browser.$(OBJEXT) windows.$(OBJEXT) \ zoom_frame.$(OBJEXT) gliv_OBJECTS = $(am_gliv_OBJECTS) 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 = $(gliv_SOURCES) DIST_SOURCES = $(gliv_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CFLAG_VISIBILITY = @CFLAG_VISIBILITY@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GENCAT = @GENCAT@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ GTKGLEXT_CFLAGS = @GTKGLEXT_CFLAGS@ GTKGLEXT_LIBS = @GTKGLEXT_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ HAVE_WPRINTF = @HAVE_WPRINTF@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_DEFAULT_VERBOSITY = @INTL_DEFAULT_VERBOSITY@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBMULTITHREAD = @LIBMULTITHREAD@ LIBOBJS = @LIBOBJS@ LIBPTH = @LIBPTH@ LIBPTH_PREFIX = @LIBPTH_PREFIX@ LIBS = @LIBS@ LIBTHREAD = @LIBTHREAD@ LTLIBC = @LTLIBC@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBMULTITHREAD = @LTLIBMULTITHREAD@ LTLIBOBJS = @LTLIBOBJS@ LTLIBPTH = @LTLIBPTH@ LTLIBTHREAD = @LTLIBTHREAD@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ 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@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WINDRES = @WINDRES@ WOE32 = @WOE32@ WOE32DLL = @WOE32DLL@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ 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 = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = $(datadir)/locale localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ 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@ gliv_SOURCES = include/about.h \ actions.c include/actions.h \ include/all_cursors.h \ callbacks.c include/callbacks.h \ cmdline.c include/cmdline.h \ collection.c include/collection.h \ cursors.c include/cursors.h \ decompression.c include/decompression.h \ dirty_gtk.c include/dirty_gtk.h \ dithering.c include/dithering.h \ files_list.c include/files_list.h \ foreach_file.c include/foreach_file.h \ formats.c include/formats.h \ include/gettext.h \ gl_widget.c include/gl_widget.h \ include/glade_actions.h \ include/glade_image_nr.h \ include/glade_options.h \ gliv-image.c include/gliv-image.h \ include/gliv.h \ include/gliv_logo.h \ help.c include/help.h \ help_text.c include/help_text.h \ history.c include/history.h \ images_menus.c include/images_menus.h \ ipc.c include/ipc.h \ include/large_files.h \ loading.c include/loading.h \ main.c include/main.h \ include/math_floats.h \ matrix.c include/matrix.h \ menus.c include/menus.h \ include/messages.h \ mnemonics.c include/mnemonics.h \ move_pointer.c include/move_pointer.h \ next_image.c include/next_image.h \ open_dialog.c include/open_dialog.h \ include/opengl.h \ include/opengl_wrapper.h \ options.c include/options.h \ include/params.h \ pathset.c include/pathset.h \ rcfile.c include/rcfile.h \ rendering.c include/rendering.h \ scrollbars.c include/scrollbars.h \ str_utils.c include/str_utils.h \ strnatcmp.c include/strnatcmp.h \ include/texture_map.h \ textures.c include/textures.h \ thread.c include/thread.h \ thumbnails.c include/thumbnails.h \ tiling.c include/tiling.h \ timestamp.c include/timestamp.h \ transition.c include/transition.h \ tree.c include/tree.h \ tree_browser.c include/tree_browser.h \ windows.c include/windows.h \ zoom_frame.c include/zoom_frame.h @NEED_REPLACEMENTS_TRUE@gliv_DEPENDENCIES = ../lib/libreplacements.a @NEED_REPLACEMENTS_TRUE@gliv_LDADD = -L../lib -lreplacements AM_CPPFLAGS = -I$(srcdir)/include -D_REENTRANT -D_THREAD_SAFE \ -DSYSCONFDIR=\"$(sysconfdir)\" EXTRA_DIST = glade_actions.c glade_image_nr.c glade_options.c autogenerated 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) gliv$(EXEEXT): $(gliv_OBJECTS) $(gliv_DEPENDENCIES) @rm -f gliv$(EXEEXT) $(LINK) $(gliv_OBJECTS) $(gliv_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/actions.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/callbacks.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cmdline.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/collection.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cursors.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/decompression.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dirty_gtk.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dithering.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/files_list.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/foreach_file.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/formats.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gl_widget.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gliv-image.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/help.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/help_text.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/history.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/images_menus.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ipc.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/loading.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/matrix.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/menus.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mnemonics.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/move_pointer.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/next_image.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/open_dialog.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/options.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pathset.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rcfile.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rendering.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/scrollbars.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/str_utils.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strnatcmp.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/textures.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/thread.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/thumbnails.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tiling.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/timestamp.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/transition.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tree.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tree_browser.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/windows.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zoom_frame.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 include/all_cursors.h: $(top_srcdir)/tools/cursors/*.xbm cat $(top_srcdir)/tools/cursors/*.xbm | sed 's/unsigned //g' > $@ cmdline.c include/cmdline.h: $(top_srcdir)/tools/gliv.ggo gengetopt --input=$< --unamed-opts --no-handle-error && \ mv cmdline.h include/ formats.c: $(top_srcdir)/tools/formats.gperf gperf -n --multiple-iterations 64 --output $@ $< help_text.c: $(top_srcdir)/README $(top_srcdir)/tools/help2c.awk awk -f $(top_srcdir)/tools/help2c.awk < $(top_srcdir)/README > $@ glade_actions.c include/glade_actions.h: $(top_srcdir)/tools/glade/actions/gliv-actions.glade cd $(top_srcdir)/tools/glade/actions && ./make_glade_actions.sh glade_image_nr.c include/glade_image_nr.h: $(top_srcdir)/tools/glade/image_nr/gliv-image_nr.glade cd $(top_srcdir)/tools/glade/image_nr && ./make_glade_image_nr.sh glade_options.c include/glade_options.h: $(top_srcdir)/tools/glade/options/gliv-options.glade cd $(top_srcdir)/tools/glade/options && ./make_glade_options.sh gliv-image.c include/gliv-image.h: $(top_srcdir)/tools/gliv-image.gob gob2 $< && mv gliv-image.h include/ include/gliv_logo.h: $(top_srcdir)/gliv.svg (echo '/* Auto-generated */'; gdk-pixbuf-csource --struct --static \ --name=gliv_logo $<) > $@ # 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: gliv-1.9.7/src/files_list.c0000644000076400007640000003412011465576131013040 0ustar gg/* * 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. * * See the COPYING file for license information. * * Guillaume Chazarain */ /****************** * The files list * ******************/ #include /* stat() */ #include /* qsort() */ #include /* remove(), perror(), stdin, getdelim() */ #include /* size_t */ #include "gliv.h" #include "files_list.h" #include "options.h" #include "loading.h" #include "str_utils.h" #include "foreach_file.h" #include "next_image.h" #include "messages.h" #include "windows.h" #include "collection.h" #include "formats.h" #include "timestamp.h" #include "pathset.h" #include "strnatcmp.h" #ifndef HAVE_GETDELIM #include "../lib/getdelim.h" #endif extern options_struct *options; extern GlivImage *current_image; static GList *files_list = NULL; static gint list_length = 0; static GList *list_end = NULL; static DECLARE_TIMESTAMP(timestamp); /* Last modification. */ static GList *obsolete_nodes = NULL; /* Nodes to delete when possible */ gint get_list_length(void) { return list_length; } GList *get_list_head(void) { return files_list; } GList *get_list_end(void) { return list_end; } /*** Additions. ***/ static gboolean is_loadable(const gchar * filename) { loader_t loader; if (options->force) return TRUE; loader = get_loader(filename); return loader == LOADER_PIXBUF || loader == LOADER_DECOMP_PIXBUF; } /* Returns the number of files added. */ static gint add_file_to_list(const gchar * filename) { if (is_loadable(filename)) { list_end = g_list_append(list_end, clean_filename(filename)); list_length++; if (list_length == 1) files_list = list_end; else list_end = list_end->next; touch(×tamp); return 1; } return 0; } struct files_list_state { GList *files_list; gint list_length; GList *list_end; }; static struct files_list_state *save_files_list_state(void) { struct files_list_state *prev = g_new(struct files_list_state, 1); prev->files_list = files_list; prev->list_length = list_length; prev->list_end = list_end; files_list = NULL; list_length = 0; list_end = NULL; return prev; } static void merge_files_list_state(struct files_list_state *prev, gboolean after_current) { if (prev->list_length == 0) { /* The previous list was empty => nothing to merge. */ goto end_free; } if (files_list == NULL) { /* No files were added. */ files_list = prev->files_list; list_length = prev->list_length; list_end = prev->list_end; goto end_free; } if (after_current && current_image != NULL && current_image->node->next != NULL) { /* Insert after the current image. */ /* Merge the insertion end. */ list_end->next = current_image->node->next; list_end->next->prev = list_end; /* Merge the insertion beginning. */ current_image->node->next = files_list; files_list->prev = current_image->node; files_list = prev->files_list; } else { /* Insert at the end. */ if (prev->list_end != NULL) prev->list_end->next = files_list; files_list->prev = prev->list_end; files_list = prev->files_list; } list_length += prev->list_length; end_free: g_free(prev); } static void reorder_list(gboolean shuffle); static gint cmp_filename(gconstpointer a, gconstpointer b) { return !g_str_equal(a, b); } /* Returns the number of files added. */ static gint add_dir(const gchar * dirname, const gchar * first_file) { gint nb_inserted = 0; struct files_list_state *prev = save_files_list_state(); GList *place_first = NULL; if (options->recursive) { /* Traverse recursively the directory. */ nb_inserted += foreach_file(dirname, add_file_to_list); } else { /* Add every file in the directory. */ GDir *dir; GError *err = NULL; const gchar *dir_entry; dir = g_dir_open(dirname, 0, &err); if (dir == NULL) { g_printerr("%s\n", err->message); g_error_free(err); return 0; } while ((dir_entry = g_dir_read_name(dir)) != NULL) { gchar *full_path = g_build_filename(dirname, dir_entry, NULL); if (!g_file_test(full_path, G_FILE_TEST_IS_DIR)) /* We have a file. */ nb_inserted += add_file_to_list(full_path); g_free(full_path); } g_dir_close(dir); } reorder_list(FALSE); if (first_file != NULL) place_first = g_list_find_custom(files_list, first_file, cmp_filename); if (place_first != NULL && place_first->prev != NULL) { place_first->prev->next = place_first->next; if (place_first->next != NULL) place_first->next->prev = place_first->prev; place_first->prev = NULL; place_first->next = files_list; files_list->prev = place_first; files_list = place_first; } merge_files_list_state(prev, FALSE); return nb_inserted; } /* Returns the number of files added. */ static gint add_to_list(const gchar * name, gboolean add_all) { gint nb_inserted = 0; struct stat st; if (stat(name, &st) < 0) { perror(name); return 0; } if (S_ISDIR(st.st_mode)) { nb_inserted += add_dir(name, NULL); } else { loader_t loader = get_loader(name); if (loader == LOADER_DOT_GLIV || loader == LOADER_DECOMP_DOT_GLIV) /* A .gliv collection. */ nb_inserted += load_dot_gliv(name); else if (add_all) { gchar *dirname = g_path_get_dirname(name); gchar *clean = clean_filename(name); nb_inserted += add_dir(dirname, clean); g_free(dirname); g_free(clean); } else { nb_inserted += add_file_to_list(name); } } return nb_inserted; } /*** Deletion ***/ void remove_from_list(GList * node) { if (node == list_end) list_end = node->prev; if (current_image && current_image->node == node) current_image->node = NULL; unload(node); g_free(node->data); files_list = g_list_delete_link(files_list, node); list_length--; touch(×tamp); } /*** Sorting ***/ /* To shuffle the list, we simply sort with a random compare func. */ static gint random_compar(gconstpointer unused1, gconstpointer unused2) { return g_random_int_range(-1, 3); } /* We want children to be after their parent, or the alphabetical order. */ G_GNUC_PURE static gint filename_compar(gconstpointer a, gconstpointer b) { const gchar *ptr1, *ptr2; gboolean ptr1_has_dir = FALSE, ptr2_has_dir = FALSE; gint prefix_length; ptr1 = (const gchar *) a; ptr2 = (const gchar *) b; if (ptr1[0] != ptr2[0]) /* Comparing an absolute filename, and a relative one. */ return ptr1[0] == '/' ? -1 : 1; prefix_length = common_prefix_length(ptr1, ptr2); ptr1 += prefix_length; ptr2 += prefix_length; if (*ptr1 == *ptr2) /* The filenames were equal. */ return 0; /* Go back to the first different dir. */ for (;;) { ptr1--; ptr2--; if (*ptr1 == '/') { if (*ptr2 == '/') break; ptr1_has_dir = TRUE; } else if (*ptr2 == '/') { ptr2_has_dir = TRUE; } } /* Skip the common '/'. */ ptr1++; ptr2++; if (ptr1_has_dir == ptr2_has_dir) /* * Either the files are in the same directory, * or they are not parent. */ return strnatcmp(ptr1, ptr2); /* One of the directory is parent of the other one. */ return ptr1_has_dir ? -1 : 1; } static void reorder_list(gboolean shuffle) { GCompareFunc compare_func; compare_func = shuffle ? random_compar : filename_compar; files_list = g_list_sort(files_list, compare_func); list_end = g_list_last(list_end); } /* Called by the menu. */ gboolean reorder_files(gboolean shuffle) { if (files_list == NULL) return FALSE; reorder_list(shuffle); after_reorder(); touch(×tamp); return FALSE; } G_GNUC_PURE static gint compar(gconstpointer a, gconstpointer b) { return filename_compar(*((const gchar **) a), *((const gchar **) b)); } /* * Used to build the images menus. */ gchar **get_sorted_files_array(void) { gchar **array, **array_ptr; GList *list_ptr; if (list_length == 0) return NULL; array_ptr = array = g_new(gchar *, list_length + 1); /* Fill the array. */ for (list_ptr = files_list; list_ptr != NULL; list_ptr = list_ptr->next) { *array_ptr = list_ptr->data; array_ptr++; } *array_ptr = NULL; qsort(array, list_length, sizeof(gchar *), compar); return array; } /*** Initialization ***/ static void list_initialized(gboolean sort, gboolean shuffle) { if (sort || shuffle) reorder_list(shuffle); touch(×tamp); } gint init_from_null_filenames(gboolean sort, gboolean shuffle, gboolean add_all) { gchar *filename = NULL; size_t len = 0; gint nb_inserted = 0; while (!feof(stdin) && getdelim(&filename, &len, '\0', stdin) > 0) nb_inserted += add_to_list(filename, add_all); list_initialized(sort, shuffle); g_free(filename); return nb_inserted; } gint init_list(gchar ** names, gint nb, gboolean sort, gboolean shuffle, gboolean add_all) { gint nb_inserted; nb_inserted = insert_after_current(names, nb, FALSE, add_all); list_initialized(sort, shuffle); return nb_inserted; } /*** Misc. operations. ***/ /* Returns the number of files inserted. */ gint insert_after_current(gchar ** names, gint nb, gboolean just_file, gboolean add_all) { gint nb_inserted = 0; struct files_list_state *prev = save_files_list_state(); struct pathset *paths = pathset_new(); for (; nb != 0; names++, nb--) { if (just_file) nb_inserted += add_file_to_list(*names); else if (!pathset_add(paths, *names)) /* Already added */ continue; else if (add_all && !g_file_test(*names, G_FILE_TEST_IS_DIR)) { gchar *dirname = g_path_get_dirname(*names); if (pathset_add(paths, dirname)) nb_inserted += add_to_list(*names, TRUE); g_free(dirname); } else nb_inserted += add_to_list(*names, FALSE); } pathset_free(paths); list_initialized(FALSE, FALSE); merge_files_list_state(prev, TRUE); return nb_inserted; } static gboolean show_remove_dialog(const gchar * msg) { GtkMessageDialog *dialog; gint res; dialog = GTK_MESSAGE_DIALOG(gtk_message_dialog_new(NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_QUESTION, GTK_BUTTONS_OK_CANCEL, "%s", msg)); res = run_modal_dialog(GTK_DIALOG(dialog)); gtk_widget_destroy(GTK_WIDGET(dialog)); return res == GTK_RESPONSE_ACCEPT || res == GTK_RESPONSE_OK || res == GTK_RESPONSE_YES; } gboolean confirm_remove_current(void) { gchar *filename, *msg; if (current_image == NULL || current_image->node == NULL) return FALSE; filename = current_image->node->data; msg = g_strdup_printf(_("Do you really want to delete this file?\n%s\n"), filename_to_utf8(filename)); if (show_remove_dialog(msg)) { add_obsolete_node(current_image->node); if (remove(filename) < 0) perror(filename); } g_free(msg); return FALSE; } timestamp_t get_list_timestamp(void) { return timestamp; } const gchar *get_nth_filename(gint n) { GList *ptr; if (n < 0) return _("directory/file"); if (n <= get_list_length() / 2) for (ptr = get_list_head(); n != 0; n--, ptr = ptr->next); else { n = get_list_length() - n - 1; for (ptr = get_list_end(); n != 0; n--, ptr = ptr->prev); } return ptr->data; } gint get_image_number(GlivImage * im) { if (im->number < 0) { GList *ptr; gint im_nr = 0; if (im->node == NULL) return im->number; for (ptr = get_list_head(); ptr != NULL; ptr = ptr->next) { if (ptr == im->node) { im->number = im_nr; break; } im_nr++; } } return im->number; } GList *find_node_by_name(const gchar * name) { GList *ptr; for (ptr = get_list_head(); ptr != NULL; ptr = ptr->next) if (ptr->data == name) return ptr; return NULL; } void add_obsolete_node(GList * node) { obsolete_nodes = g_list_prepend(obsolete_nodes, node); } gboolean remove_obsolete_nodes(void) { GList *ptr, *next; gboolean destroyed = FALSE; for (ptr = obsolete_nodes; ptr != NULL; ptr = next) { next = ptr->next; if (ptr->data != current_image->node) { remove_from_list(ptr->data); obsolete_nodes = g_list_delete_link(obsolete_nodes, ptr); destroyed = TRUE; } } if (destroyed) touch(×tamp); return destroyed; } gliv-1.9.7/src/actions.c0000644000076400007640000003654411465576131012357 0ustar gg/* * 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. * * See the COPYING file for license information. * * Guillaume Chazarain */ /************************ * User-defined actions * ************************/ #include /* FILE, fprintf() */ #include /* strchr(), memset() */ #include /* system() */ #include /* WEXITSTATUS */ #include "gliv.h" #include "actions.h" #include "mnemonics.h" #include "gliv-image.h" #include "files_list.h" #include "callbacks.h" #include "windows.h" #include "messages.h" #include "next_image.h" extern GlivImage *current_image; typedef struct { gchar *name; gchar *command; } action; static GPtrArray *actions_array = NULL; static GString *build_command_line(const gchar * command, const gchar * filename) { GString *cmd_line = g_string_new(""); const gchar *ptr, *remaining = command; gchar *quoted, *tmp; for (;;) { ptr = strchr(remaining, '%'); if (ptr == NULL) { g_string_append(cmd_line, remaining); return cmd_line; } g_string_append_len(cmd_line, remaining, ptr - remaining); ptr++; remaining = ptr + 1; switch (*ptr) { case 'd': tmp = g_path_get_dirname(filename); quoted = g_shell_quote(tmp); g_free(tmp); g_string_append(cmd_line, quoted); g_free(quoted); break; case 'b': tmp = g_path_get_basename(filename); quoted = g_shell_quote(tmp); g_free(tmp); g_string_append(cmd_line, quoted); g_free(quoted); break; case 'f': quoted = g_shell_quote(filename); g_string_append(cmd_line, quoted); g_free(quoted); break; case '%': g_string_append_c(cmd_line, '%'); break; default: g_string_append_len(cmd_line, ptr - 1, 2); break; } } } static gint action_on_filename(action * a, const gchar * filename) { gint ret; GString *cmd_line = build_command_line(a->command, filename); ret = system(cmd_line->str); g_string_free(cmd_line, TRUE); return ret; } static void process_system_retval(action * a, gint retval) { GtkWidget *msg; gchar *str; if (retval == 0) return; if (retval < 0) { str = _("Failed to create a new process"); msg = gtk_message_dialog_new(NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_WARNING, GTK_BUTTONS_CLOSE, "%s", str); } else { str = _("The action '%s' terminated with a non-null return code: %d"); msg = gtk_message_dialog_new(NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_WARNING, GTK_BUTTONS_CLOSE, str, a->name, WEXITSTATUS(retval)); } run_modal_dialog(GTK_DIALOG(msg)); gtk_widget_destroy(msg); } static gboolean action_current(action * a) { gint ret; gpointer stat_data; if (current_image == NULL || current_image->node == NULL) return FALSE; stat_data = stat_loaded_files(FALSE); ret = action_on_filename(a, current_image->node->data); process_system_retval(a, ret); reload_changed_files(stat_data); return FALSE; } static gboolean action_every(action * a) { GList *node; gint ret = 0; gpointer stat_data; GlivImage *before = current_image; stat_data = stat_loaded_files(FALSE); for (node = get_list_head(); node != NULL; node = node->next) { gint new_ret = action_on_filename(a, node->data); if (new_ret != 0) ret = new_ret; process_events(); } process_system_retval(a, ret); if (before == current_image) reload_changed_files(stat_data); else { /* Don't bother checking files changes if the user changed the image */ g_free(stat_data); } return FALSE; } static void make_menu(GtkAccelGroup * accel_group, GtkMenuItem * menu_item, GCallback cb, const gchar * menu_name) { const gchar *name; GtkMenuItem *item; GtkMenu *menu = GTK_MENU(gtk_menu_new()); gchar *accel_path; gint i; gtk_menu_item_deselect(menu_item); gtk_menu_set_accel_group(menu, accel_group); gtk_menu_shell_prepend(GTK_MENU_SHELL(menu), gtk_tearoff_menu_item_new()); push_mnemonics(); for (i = 0; i < actions_array->len; i++) { action *a = g_ptr_array_index(actions_array, i); name = add_mnemonic(a->name); item = GTK_MENU_ITEM(gtk_menu_item_new_with_mnemonic(name)); gtk_menu_shell_append(GTK_MENU_SHELL(menu), GTK_WIDGET(item)); g_signal_connect_swapped(item, "activate", cb, a); accel_path = g_strconcat("/Commands/", menu_name, "/", a->name, NULL); gtk_accel_map_add_entry(accel_path, 0, 0); gtk_menu_item_set_accel_path(item, accel_path); g_free(accel_path); } gtk_menu_item_set_submenu(menu_item, GTK_WIDGET(menu)); gtk_widget_show_all(GTK_WIDGET(menu_item)); pop_mnemonics(); } void init_actions(GtkAccelGroup * the_accel_group, GtkMenuItem * current_image_menu_item, GtkMenuItem * every_image_menu_item) { static GtkAccelGroup *accel_group = NULL; static GtkMenuItem *current_image_item = NULL; static GtkMenuItem *every_image_item = NULL; if (the_accel_group != NULL) { /* First time */ accel_group = the_accel_group; add_action(_("Open in Gimp"), "gimp-remote -- %f"); } if (current_image_menu_item != NULL) current_image_item = current_image_menu_item; if (every_image_menu_item != NULL) every_image_item = every_image_menu_item; if (actions_array == NULL) actions_array = g_ptr_array_new(); make_menu(accel_group, current_image_item, G_CALLBACK(action_current), "Action on the current image"); make_menu(accel_group, every_image_item, G_CALLBACK(action_every), "Action on every image"); } /*** GUI part ***/ #include "glade_actions.h" enum { COLUMN_NAME, COLUMN_COMMAND, N_COLUMNS }; static GtkListStore *list_store = NULL; static GtkTreeIter iter; static gboolean has_selection = FALSE; static void get_list_row(GtkTreeIter * where, gchar ** name, gchar ** command) { GValue value; memset(&value, 0, sizeof(GValue)); if (name != NULL) { gtk_tree_model_get_value(GTK_TREE_MODEL(list_store), where, COLUMN_NAME, &value); *name = g_strdup(g_value_peek_pointer(&value)); g_value_unset(&value); } if (command != NULL) { gtk_tree_model_get_value(GTK_TREE_MODEL(list_store), where, COLUMN_COMMAND, &value); *command = g_strdup(g_value_peek_pointer(&value)); g_value_unset(&value); } } static gboolean has_action_by_name(const gchar * name) { gchar *action_name = NULL; GtkTreeIter iter; if (gtk_tree_model_get_iter_first(GTK_TREE_MODEL(list_store), &iter)) { do { get_list_row(&iter, &action_name, NULL); if (g_str_equal(name, action_name)) break; g_free(action_name); action_name = NULL; } while (gtk_tree_model_iter_next(GTK_TREE_MODEL(list_store), &iter)); } g_free(action_name); return action_name != NULL; } static gboolean edit_action_dialog(gchar ** name, gchar ** command) { GtkWidget *dialog = create_edit_action_dialog(); GtkEntry *name_entry, *command_entry; gboolean duplicate; gint response; gboolean ok = FALSE; name_entry = g_object_get_data(G_OBJECT(dialog), "name_entry"); command_entry = g_object_get_data(G_OBJECT(dialog), "command_entry"); if (*name != NULL) gtk_entry_set_text(name_entry, *name); if (*command != NULL) gtk_entry_set_text(command_entry, *command); response = run_modal_dialog(GTK_DIALOG(dialog)); if (response == GTK_RESPONSE_OK) { gchar *new_name; new_name = gtk_editable_get_chars(GTK_EDITABLE(name_entry), 0, -1); if (*name == NULL || g_str_equal(new_name, *name) == FALSE) { duplicate = has_action_by_name(new_name); if (duplicate) { GtkWidget *msg; gchar *str = _("The action name '%s' is already used"); msg = gtk_message_dialog_new(NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_WARNING, GTK_BUTTONS_CLOSE, str, new_name); run_modal_dialog(GTK_DIALOG(msg)); gtk_widget_destroy(msg); } } if (!duplicate) { g_free(*name); g_free(*command); *command = gtk_editable_get_chars(GTK_EDITABLE(command_entry), 0, -1); *name = new_name; ok = TRUE; } else g_free(new_name); } gtk_widget_destroy(dialog); return ok; } static gboolean on_add_button_clicked(void) { gchar *name = NULL, *command = NULL; gboolean ok; ok = edit_action_dialog(&name, &command); if (ok && name[0] != '\0' && command[0] != '\0') { GtkTreeIter new_iter; if (has_selection) gtk_list_store_insert_after(list_store, &new_iter, &iter); else gtk_list_store_append(list_store, &new_iter); gtk_list_store_set(list_store, &new_iter, COLUMN_NAME, name, COLUMN_COMMAND, command, -1); } g_free(name); g_free(command); return FALSE; } static gboolean on_property_button_clicked(void) { gchar *name, *command; gint ok; get_list_row(&iter, &name, &command); ok = edit_action_dialog(&name, &command); if (ok && name[0] != '\0' && command[0] != '\0') gtk_list_store_set(list_store, &iter, COLUMN_NAME, name, COLUMN_COMMAND, command, -1); g_free(name); g_free(command); return FALSE; } static gboolean on_delete_button_clicked(void) { gtk_list_store_remove(list_store, &iter); return FALSE; } static gboolean selection_changed(GtkTreeSelection * selection, GtkWidget * dialog) { GtkWidget *property_button, *delete_button; has_selection = gtk_tree_selection_get_selected(selection, NULL, &iter); property_button = g_object_get_data(G_OBJECT(dialog), "property_button"); delete_button = g_object_get_data(G_OBJECT(dialog), "delete_button"); if (GTK_WIDGET_IS_SENSITIVE(property_button) != has_selection) { gtk_widget_set_sensitive(property_button, has_selection); gtk_widget_set_sensitive(delete_button, has_selection); } return FALSE; } #include "glade_actions.c" static void add_column(GtkTreeView * tree_view, const gchar * name, gint column_id) { GtkTreeViewColumn *column; GtkCellRenderer *renderer = gtk_cell_renderer_text_new(); column = gtk_tree_view_column_new_with_attributes(name, renderer, "text", column_id, NULL); gtk_tree_view_column_set_resizable(column, TRUE); gtk_tree_view_column_set_reorderable(column, TRUE); gtk_tree_view_column_set_sort_column_id(column, column_id); gtk_tree_view_append_column(tree_view, column); } static GtkListStore *make_tree_view(GtkWidget * dialog) { GtkTreeView *tree_view = g_object_get_data(G_OBJECT(dialog), "treeview"); GtkListStore *list_store; GtkTreeIter iter; GtkTreeSelection *selection; gint i; list_store = gtk_list_store_new(N_COLUMNS, G_TYPE_STRING, G_TYPE_STRING); for (i = 0; i < actions_array->len; i++) { action *a = g_ptr_array_index(actions_array, i); gtk_list_store_append(list_store, &iter); gtk_list_store_set(list_store, &iter, COLUMN_NAME, a->name, COLUMN_COMMAND, a->command, -1); } gtk_tree_view_set_model(tree_view, GTK_TREE_MODEL(list_store)); add_column(tree_view, _("Name"), COLUMN_NAME); add_column(tree_view, _("Command"), COLUMN_COMMAND); selection = gtk_tree_view_get_selection(tree_view); gtk_tree_selection_set_mode(selection, GTK_SELECTION_SINGLE); g_signal_connect(selection, "changed", G_CALLBACK(selection_changed), dialog); return list_store; } static gboolean read_store(GtkTreeModel * unused_model, GtkTreePath * unused_path, GtkTreeIter * iter) { gchar *name, *command; action *a = g_new(action, 1); get_list_row(iter, &name, &command); a->name = name; a->command = command; g_ptr_array_add(actions_array, a); return FALSE; } static void destroy_actions(void) { gint i; for (i = 0; i < actions_array->len; i++) { action *a = g_ptr_array_index(actions_array, i); g_free(a->name); g_free(a->command); g_free(a); } g_ptr_array_free(actions_array, TRUE); actions_array = NULL; } gboolean edit_actions(void) { GtkWidget *dialog = create_actions_dialog(); gint response; list_store = make_tree_view(dialog); response = run_modal_dialog(GTK_DIALOG(dialog)); gtk_widget_destroy(dialog); if (response == GTK_RESPONSE_OK) { destroy_actions(); actions_array = g_ptr_array_new(); gtk_tree_model_foreach(GTK_TREE_MODEL(list_store), (GtkTreeModelForeachFunc) read_store, NULL); init_actions(NULL, NULL, NULL); } g_object_unref(list_store); list_store = NULL; has_selection = FALSE; return FALSE; } /*** glivrc ***/ void add_action(const gchar * name, const gchar * command) { gint i; action *a; if (actions_array == NULL) actions_array = g_ptr_array_new(); for (i = 0; i < actions_array->len; i++) { a = g_ptr_array_index(actions_array, i); if (g_str_equal(a->name, name)) { g_free(a->command); a->command = g_strdup(command); return; } } a = g_new(action, 1); a->name = g_strdup(name); a->command = g_strdup(command); g_ptr_array_add(actions_array, a); } void write_actions(FILE * file) { gint i; action *a; if (actions_array == NULL) return; for (i = 0; i < actions_array->len; i++) { a = g_ptr_array_index(actions_array, i); fprintf(file, "action_name = %s\n", a->name); fprintf(file, "action_command = %s\n\n", a->command); } } gliv-1.9.7/src/help_text.c0000644000076400007640000000607611465576131012710 0ustar gg/* Generated by help2c.awk */ #include "gliv.h" #include "help_text.h" #include "messages.h" /* Forward declaration. */ static gchar **get_sized_array(void); gchar **get_help_lines(void) { gchar **array, **ptr; ptr = array = get_sized_array(); *ptr++ = _("ESC, q : Quit"); *ptr++ = "\n"; *ptr++ = _("f : Full-screen/window"); *ptr++ = "\n"; *ptr++ = _("+/=/- : Zoom in/in/out"); *ptr++ = "\n"; *ptr++ = _("n/p : Next/previous image"); *ptr++ = "\n"; *ptr++ = _("Pause : Start/stop the slide show"); *ptr++ = "\n"; *ptr++ = _("l : Reduce the image to the window"); *ptr++ = "\n"; *ptr++ = _("M : Maximize the image to the window"); *ptr++ = "\n"; *ptr++ = _("m : Make the image fit the window"); *ptr++ = "\n"; *ptr++ = _("r : Reset position and size"); *ptr++ = "\n"; *ptr++ = _("b : Toggle display of the menu bar"); *ptr++ = "\n"; *ptr++ = _("i : Toggle display of the info bar"); *ptr++ = "\n"; *ptr++ = _("s : Toggle display of the scrollbars"); *ptr++ = "\n"; *ptr++ = _("a : Toggle display of the alpha checks"); *ptr++ = "\n"; *ptr++ = _("h : Toggle display of the help box"); *ptr++ = "\n"; *ptr++ = _("w : Toggle display of floating windows"); *ptr++ = "\n"; *ptr++ = _("o : Display the open dialog"); *ptr++ = "\n"; *ptr++ = _("g : Display the image selector"); *ptr++ = "\n"; *ptr++ = _("t : Display the options dialog"); *ptr++ = "\n"; *ptr++ = _("d : Hide the cursor"); *ptr++ = "\n"; *ptr++ = _("u : Undo"); *ptr++ = "\n"; *ptr++ = _("y : Redo"); *ptr++ = "\n"; *ptr++ = _("c : Clear the history"); *ptr++ = "\n"; *ptr++ = _("Delete : Delete the current file"); *ptr++ = "\n"; *ptr++ = _("C-up : Rotate by +90 degrees"); *ptr++ = "\n"; *ptr++ = _("C-down : Rotate by -90 degrees"); *ptr++ = "\n"; *ptr++ = _("C-left : Rotate by +0.1 degree"); *ptr++ = "\n"; *ptr++ = _("C-right: Rotate by -0.1 degree"); *ptr++ = "\n"; *ptr++ = _("z : Horizontal flip"); *ptr++ = "\n"; *ptr++ = _("e : Vertical flip"); *ptr++ = "\n"; *ptr++ = "\n"; *ptr++ = _("The first mouse button and the arrow keys will move the image unless the Control key is pressed. In which case the image will be rotated around the window center."); *ptr++ = "\n\n"; *ptr++ = _("The mouse wheel zooms the image, and when you hold its button pressed at the same time it switches to the neighbouring image."); *ptr++ = "\n\n"; *ptr++ = _("You can also zoom by dragging the mouse vertically while holding Shift and the first button."); *ptr++ = "\n\n"; *ptr++ = _("Space and Backspace act like n and p."); *ptr++ = "\n\n"; *ptr++ = _("Draw a rectangle with the third button and gliv will zoom in it."); *ptr++ = "\n\n"; *--ptr = NULL; return array; } static gchar **get_sized_array(void) { return g_new(gchar *, 69); } gliv-1.9.7/src/tree_browser.c0000644000076400007640000002150111465576131013404 0ustar gg/* * 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. * * See the COPYING file for license information. * * Guillaume Chazarain */ /***************************************** * The thumbnails browser in a tree view * *****************************************/ #include /* memset() */ #include "gliv.h" #include "tree_browser.h" #include "tree.h" #include "thumbnails.h" #include "images_menus.h" #include "next_image.h" #include "messages.h" #include "loading.h" #include "rendering.h" extern GlivImage *current_image; static GtkTreeStore *tree_store; static GtkTreeView *tree_view; /* * Association between a directory and a GtkTreePath * Used when adding filenames. */ static GHashTable *dir_path_hash = NULL; /* Avoid reentrance */ static gint disable_tree = 0; /* * If a row is selected when we cannot load an image, we * record the filename to load it when possible. */ static const gchar *next_filename; /* The tree columns (they are not all displayed) */ enum { PIXBUF_COLUMN, NAME_COLUMN, PATH_COLUMN, N_COLUMNS }; static tree_item *make_tree_rec(GtkTreeIter * where, GNode * node) { static const gchar *browser = NULL; static gint percent = 0, number = 0; tree_item *item, *first_item; GNode *child; if (where == NULL) { /* First time for this browser */ number = 0; percent = 0; set_progress(NULL, NULL, -1); if (browser == NULL) /* First time */ browser = _("Browser"); return NULL; } item = node->data; if (G_NODE_IS_LEAF(node)) { fill_thumbnail(item); gtk_tree_store_set(tree_store, where, PIXBUF_COLUMN, item->thumb, NAME_COLUMN, item->name, PATH_COLUMN, item->path, -1); set_progress(browser, &percent, number); number++; return item; } g_hash_table_insert(dir_path_hash, item->path, gtk_tree_model_get_path(GTK_TREE_MODEL(tree_store), where)); first_item = NULL; for (child = g_node_first_child(node); child; child = child->next) { GtkTreeIter iter; gtk_tree_store_append(tree_store, &iter, where); item = make_tree_rec(&iter, child); if (first_item == NULL && item != NULL && item->thumb != NULL) first_item = item; } item = node->data; gtk_tree_store_set(tree_store, where, PIXBUF_COLUMN, first_item ? first_item->thumb : NULL, NAME_COLUMN, item->path, PATH_COLUMN, first_item ? first_item->path : NULL, -1); return first_item; } void load_later(void) { if (next_filename != NULL && !currently_loading() && current_image->node) { menu_load(next_filename); if (current_image->node->data == next_filename) next_filename = NULL; } } static void activate_row(GtkTreeSelection * selection) { GtkTreeIter iter; GtkTreeModel *model; gchar *path; if (!gtk_tree_selection_get_selected(selection, &model, &iter)) return; gtk_tree_model_get(model, &iter, PATH_COLUMN, &path, -1); next_filename = path; do_later(G_PRIORITY_DEFAULT, load_later); } static gboolean build_tree_browser(void) { GtkTreeIter iter; GNode *tree; tree = get_tree(); if (tree == NULL) return FALSE; if (dir_path_hash != NULL) g_hash_table_destroy(dir_path_hash); dir_path_hash = g_hash_table_new_full(g_str_hash, g_str_equal, NULL, (GDestroyNotify) gtk_tree_path_free); if (tree_store == NULL) /* First time */ tree_store = gtk_tree_store_new(N_COLUMNS, GDK_TYPE_PIXBUF, G_TYPE_STRING, G_TYPE_POINTER); else gtk_tree_store_clear(tree_store); gtk_tree_store_append(tree_store, &iter, NULL); make_tree_rec(NULL, NULL); make_tree_rec(&iter, tree); set_progress(NULL, NULL, 0); end_using_tree(); return TRUE; } static void destroy_tree_view(GtkWindow * window) { gtk_widget_destroy(GTK_WIDGET(window)); tree_view = NULL; } void show_tree_browser(void) { GtkCellRenderer *name_renderer; GtkTreeViewColumn *col; GtkTreeSelection *selection; GtkScrolledWindow *scroll; GtkWindow *window; if (tree_view != NULL) /* Currently displayed */ return; if (tree_store == NULL && !build_tree_browser()) return; tree_view = GTK_TREE_VIEW(gtk_tree_view_new_with_model(GTK_TREE_MODEL(tree_store))); gtk_tree_view_set_enable_search(tree_view, TRUE); col = gtk_tree_view_column_new_with_attributes(_("Thumb"), gtk_cell_renderer_pixbuf_new(), "pixbuf", PIXBUF_COLUMN, NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(tree_view), col); name_renderer = gtk_cell_renderer_text_new(); g_object_set(name_renderer, "ellipsize-set", TRUE, "ellipsize", PANGO_ELLIPSIZE_START, NULL); col = gtk_tree_view_column_new_with_attributes(_("Name"), name_renderer, "text", NAME_COLUMN, NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(tree_view), col); gtk_widget_show_all(GTK_WIDGET(tree_view)); scroll = GTK_SCROLLED_WINDOW(gtk_scrolled_window_new(NULL, NULL)); gtk_scrolled_window_set_policy(scroll, GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC); gtk_container_add(GTK_CONTAINER(scroll), GTK_WIDGET(tree_view)); gtk_widget_show_all(GTK_WIDGET(scroll)); window = new_window(_("Thumbnails browser")); gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(scroll)); gtk_window_set_default_size(window, 300, 600); gtk_widget_show_all(GTK_WIDGET(window)); selection = gtk_tree_view_get_selection(tree_view); g_signal_connect(selection, "changed", G_CALLBACK(activate_row), NULL); g_signal_connect(window, "delete-event", G_CALLBACK(destroy_tree_view), NULL); highlight_current_image(); } void highlight_current_image(void) { gchar *path; GtkTreePath *tree_path; GtkTreeIter iter, child; if (tree_view == NULL || !GTK_WIDGET_VISIBLE(tree_view) || current_image->node == NULL) return; if (next_filename) { do_later(G_PRIORITY_DEFAULT, load_later); return; } path = g_strdup(current_image->node->data); do { gchar *new_path = g_path_get_dirname(path); g_free(path); path = new_path; tree_path = g_hash_table_lookup(dir_path_hash, path); } while (!tree_path && !g_str_equal(path, "/") && !g_str_equal(path, ".")); g_free(path); if (tree_path == NULL) return; if (!gtk_tree_model_get_iter(GTK_TREE_MODEL(tree_store), &iter, tree_path)) return; if (!gtk_tree_model_iter_children (GTK_TREE_MODEL(tree_store), &child, &iter)) return; do { GValue tree_filename; memset(&tree_filename, 0, sizeof(tree_filename)); gtk_tree_model_get_value(GTK_TREE_MODEL(tree_store), &child, PATH_COLUMN, &tree_filename); if (g_value_peek_pointer(&tree_filename) == current_image->node->data) { tree_path = gtk_tree_model_get_path(GTK_TREE_MODEL(tree_store), &child); disable_tree++; gtk_tree_view_expand_to_path(tree_view, tree_path); gtk_tree_view_expand_row(tree_view, tree_path, FALSE); gtk_tree_view_scroll_to_cell(tree_view, tree_path, NULL, FALSE, 0.0, 0.0); gtk_tree_view_set_cursor(tree_view, tree_path, NULL, FALSE); disable_tree--; gtk_tree_path_free(tree_path); break; } g_value_unset(&tree_filename); } while (gtk_tree_model_iter_next(GTK_TREE_MODEL(tree_store), &child)); } void cond_rebuild_tree_browser(void) { if (dir_path_hash != NULL) build_tree_browser(); } gliv-1.9.7/src/rcfile.c0000644000076400007640000003644511465576131012163 0ustar gg/* * 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. * * See the COPYING file for license information. * * Guillaume Chazarain */ /********************** * Configuration file * **********************/ #include /* R_OK */ #include /* FILE, f*(), perror(), getdelim() */ #include /* strlen(), memcpy() */ #include /* open(), O_RDONLY, close(), lseek() */ #include "gliv.h" #include "rcfile.h" #include "large_files.h" #include "options.h" #include "messages.h" #include "actions.h" #ifndef HAVE_GETDELIM #include "../lib/getdelim.h" #endif static GHashTable *table = NULL; static gchar *read_config_file = NULL; static gchar *write_config_file = NULL; /* The link between options and the rcfile. */ static options_struct opts = { /* Default options */ .fullscreen = FALSE, .maximize = FALSE, .scaledown = FALSE, .menu_bar = TRUE, .status_bar = TRUE, .scrollbars = TRUE, .zoom_pointer = FALSE, .alpha_checks = TRUE, .dither = FALSE, .force = FALSE, .build_menus = TRUE, .mipmap = FALSE, .mnemonics = FALSE, .loop = FALSE, .one_image = FALSE, .delay = 0, .history_size = 1000, .thumbnails = TRUE, .resize_win = TRUE, .start_show = FALSE, .confirm_quit = TRUE, .save_quit = TRUE, .recursive = FALSE, .transitions = TRUE, .keep_transfo = FALSE, .opengl_errors = FALSE, .filtering = TRUE, .duration = 10, .fps = 100, .thumb_width = 128, .thumb_height = 64, .notice_time = 500, .trans_time = 500, .initial_pos = POSITION_CENTER, .bg_col = {0, 0, 0, 0}, .alpha1 = {0, 0x6666, 0x6666, 0x6666}, .alpha2 = {0, 0x9999, 0x9999, 0x9999} }; typedef struct { const gchar *name; gpointer option; const gchar *comment; const gboolean is_bool; } option_struct; /* *INDENT-OFF* */ static option_struct option_names[] = { /* To fill the hash table and the configuration file. */ { "full-screen", &opts.fullscreen, N_("Start in full screen mode"), 1 }, { "maximize", &opts.maximize, N_("Maximize small images"), 1 }, { "scale-down", &opts.scaledown, N_("Scale down large images"), 1 }, { "menu", &opts.menu_bar, N_("Display the menu bar"), 1 }, { "info", &opts.status_bar, N_("Display info about the image"), 1 }, { "scrollbars", &opts.scrollbars, N_("Display scrollbars"), 1 }, { "zoom-pointer", &opts.zoom_pointer, N_("Zoom centered on pointer"), 1 }, { "alpha-checks", &opts.alpha_checks, N_("Alpha checks in the background"), 1 }, { "dither", &opts.dither, N_("Dithering"), 1 }, { "force-load", &opts.force, N_("Try to load every file"), 1 }, { "build-menus", &opts.build_menus, N_("Build images menus at startup"), 1 }, { "mipmap", &opts.mipmap, N_("Build mipmaps"), 1 }, { "mnemonics", &opts.mnemonics, N_("Make mnemonics for images menus"),1 }, { "loop", &opts.loop, N_("Make the slide show loop"), 1 }, { "one_image", &opts.one_image, N_("Keep only one image in memory"), 1 }, { "thumbnails", &opts.thumbnails, N_("Show thumbnails in images menus"),1 }, { "start_show", &opts.start_show, N_("Start with the slide show"), 1 }, { "resize_win", &opts.resize_win, N_("Automatic window resizing"), 1 }, { "confirm_quit", &opts.confirm_quit, N_("Confirm before quitting"), 1 }, { "save_quit", &opts.save_quit, N_("Save options when quitting"), 1 }, { "transitions", &opts.transitions, N_("Enable transitions"), 1 }, { "recursive", &opts.recursive, N_("Recursive directory traversal"), 1 }, { "keep_transfo", &opts.keep_transfo, N_("Keep transfo between images"), 1 }, { "opengl-errors",&opts.opengl_errors,N_("Check for OpenGL errors"), 1 }, { "filtering", &opts.filtering, N_("Enable OpenGL filtering"), 1 }, { "fps", &opts.fps, N_("Maximum framerate"), 0 }, { "delay", &opts.delay, N_("Delay before hiding the cursor"), 0 }, { "history", &opts.history_size, N_("History length"), 0 }, { "slide-show", &opts.duration, N_("Delay between images"), 0 }, { "thumb-width", &opts.thumb_width, N_("Thumbnail width"), 0 }, { "thumb-height", &opts.thumb_height, N_("Thumbnail height"), 0 }, { "notice-time", &opts.notice_time, N_("Last/First image notice time"), 0 }, { "trans-time", &opts.trans_time, N_("Transition duration"), 0 }, { "initial_pos", &opts.initial_pos, N_("Initial image position"), 0 }, { "bg_col_red", &opts.bg_col.red, N_("background: red channel"), 0 }, { "bg_col_green", &opts.bg_col.green, N_("background: green channel"), 0 }, { "bg_col_blue", &opts.bg_col.blue, N_("background: blue channel"), 0 }, { "alpha1_red", &opts.alpha1.red, N_("alpha1 tile: red channel"), 0 }, { "alpha1_green", &opts.alpha1.green, N_("alpha1 tile: green channel"), 0 }, { "alpha1_blue", &opts.alpha1.blue, N_("alpha1 tile: blue channel"), 0 }, { "alpha2_red", &opts.alpha2.red, N_("alpha2 tile: red channel"), 0 }, { "alpha2_green", &opts.alpha2.green, N_("alpha2 tile: green channel"), 0 }, { "alpha2_blue", &opts.alpha2.blue, N_("alpha2 tile: blue channel"), 0 }, { NULL, NULL, NULL, 0 } }; /* *INDENT-ON* */ /* * Maximum length of the option names, currently * it is strlen("opengl-errors") == 13. * Used to indent the option file. */ #define MAX_OPT_LEN 13 /* Between the options and the keyboard accelerators. */ #define SEPARATOR_ACCELERATORS "==========\n" #define SEPARATOR_ACTIONS "========== Actions\n" static const gchar *user_glivrc(void) { static const gchar *filename = NULL; if (filename == NULL) /* First time */ filename = g_build_filename(g_get_home_dir(), ".glivrc", NULL); return filename; } /*** Loading options. ***/ /* The hash table is the link between an option name and its value. */ static void init_hash_table(void) { gint i; table = g_hash_table_new(g_str_hash, g_str_equal); for (i = 0; option_names[i].name != NULL; i++) g_hash_table_insert(table, (gchar *) option_names[i].name, &option_names[i]); } /* Processes spaces and '#'. */ static gchar *clean_str(const gchar * str) { gchar *new_str; gchar *ptr; new_str = g_new(gchar, strlen(str) + 1); for (ptr = new_str; *str != '\n' && *str != '\0'; str++) { if (*str == ' ' || *str == '\t') continue; if (*str == '#') break; *ptr = *str; ptr++; } *ptr = '\0'; return new_str; } static void process_line(const gchar * line) { gchar **res; option_struct *opt; gchar *clean; if (*line == '\n' || *line == '\0' || *line == '#') /* Skip this line. */ return; clean = clean_str(line); /* res[0]: option name ; res[1]: value */ res = g_strsplit(clean, "=", 2); if (res[0] != NULL && res[1] != NULL && res[2] == NULL) { /* No error during split. */ opt = g_hash_table_lookup(table, res[0]); if (opt != NULL) { /* Option found. */ if (opt->is_bool) { gboolean *bool; bool = (gboolean *) opt->option; *bool = g_strcasecmp(res[1], "true") ? FALSE : TRUE; } else { /* opt->is_bool == FALSE */ gint *value; value = (gint *) opt->option; *value = (gint) g_strtod(res[1], NULL); } } else g_printerr(_("Unknown option in configuration file: %s\n"), res[0]); } else g_printerr(_("Parse error in configuration file: %s\n"), clean); g_free(clean); g_strfreev(res); } #ifndef SYSCONFDIR #define SYSCONFDIR "/etc" #endif typedef gboolean(*rcfile_func) (const gchar * filename); static const gchar *foreach_rcfile(rcfile_func func, const gchar * filename) { gchar *system_wide[] = { SYSCONFDIR "/glivrc", "/etc/glivrc" }; gint i; if (func(filename)) return filename; filename = user_glivrc(); if (func(filename)) return filename; for (i = 0; i < G_N_ELEMENTS(system_wide); i++) { if (func(system_wide[i])) return system_wide[i]; } return NULL; } static gboolean load_rc_file(const gchar * filename) { FILE *file; gchar *line = NULL; size_t nb = 0; if (filename == NULL || !g_file_test(filename, G_FILE_TEST_IS_REGULAR)) return FALSE; file = fopen(filename, "r"); if (file == NULL) { perror(filename); return FALSE; } while (getdelim(&line, &nb, '\n', file) >= 0) { if (g_str_equal(line, SEPARATOR_ACCELERATORS) || g_str_equal(line, SEPARATOR_ACTIONS)) break; process_line(line); } g_free(line); fclose(file); return TRUE; } options_struct *load_rc(gboolean default_file, const gchar * filename) { if (default_file == FALSE && filename == NULL) { opts.save_quit = FALSE; return &opts; } init_hash_table(); read_config_file = g_strdup(foreach_rcfile(load_rc_file, filename)); write_config_file = g_strdup(filename); g_hash_table_destroy(table); return &opts; } static void process_action_line(const gchar * line) { static gchar *action_name = NULL; const gchar *str = line; gint length; gboolean is_action_name; if (*line == '\n' || *line == '\0' || *line == '#') /* Skip this line. */ return; if (g_str_has_prefix(line, "action_name") == FALSE && g_str_has_prefix(line, "action_command") == FALSE) return; is_action_name = g_str_has_prefix(line, "action_name"); str += is_action_name ? strlen("action_name") : strlen("action_command"); while (*str == ' ' || *str == '\t') str++; if (*str != '=') /* Invalid line. */ return; do { str++; } while (*str == ' ' || *str == '\t'); length = strlen(str); while (length > 0 && str[length - 1] == '\n') length--; if (is_action_name) { g_free(action_name); action_name = g_strndup(str, length); } else if (action_name != NULL) { gchar *action_command = g_strndup(str, length); add_action(action_name, action_command); g_free(action_name); g_free(action_command); action_name = NULL; } } static void load_actions_file(const gchar * filename) { FILE *file; gchar *line = NULL; size_t nb = 0; if (filename == NULL) return; file = fopen(filename, "r"); if (file == NULL) { perror(filename); return; } /* Search the actions separator. */ while (getdelim(&line, &nb, '\n', file) != -1 && g_str_equal(line, SEPARATOR_ACTIONS) == FALSE); if (g_str_equal(line, SEPARATOR_ACTIONS) == FALSE) { g_free(line); fclose(file); return; } while (getdelim(&line, &nb, '\n', file) >= 0) { if (g_str_equal(line, SEPARATOR_ACCELERATORS) || g_str_equal(line, SEPARATOR_ACTIONS)) break; process_action_line(line); } g_free(line); fclose(file); } void load_actions(void) { load_actions_file(read_config_file); } static void load_accelerators_file(const gchar * filename) { FILE *file; gchar *line = NULL; size_t nb = 0; off_t position; gint fd; if (filename == NULL) return; file = fopen(filename, "r"); if (file == NULL) { perror(filename); return; } /* Search the accelerators separator. */ while (getdelim(&line, &nb, '\n', file) != -1 && g_str_equal(line, SEPARATOR_ACCELERATORS) == FALSE); if (g_str_equal(line, SEPARATOR_ACCELERATORS) == FALSE) { g_free(line); fclose(file); return; } g_free(line); position = ftello(file); fd = fileno(file); if (lseek(fd, position, SEEK_SET) < 0) { perror("lseek"); fclose(file); return; } gtk_accel_map_load_fd(fd); fclose(file); } void load_accelerators(void) { load_accelerators_file(read_config_file); } /*** Saving options. ***/ static void write_option_line(FILE * f, gint index) { gint i, value; fputs(option_names[index].name, f); for (i = strlen(option_names[index].name); i < MAX_OPT_LEN; i++) fputc(' ', f); value = *((gint *) option_names[index].option); if (option_names[index].is_bool) fprintf(f, " = %s\n\n", value ? "True" : "False"); else fprintf(f, " = %d\n\n", value); } static gboolean write_rc(const gchar * filename) { FILE *file; gint i; if (filename == NULL) return FALSE; file = fopen(filename, "w"); if (file == NULL) { perror(filename); return FALSE; } fprintf(file, _("# Configuration file for GLiv %s\n\n"), VERSION); fputs(_("# Option names are case sensitive.\n"), file); fputs(_("# Option values are case insensitive.\n\n"), file); for (i = 0; option_names[i].name != NULL; i++) { /* The comment line. */ fprintf(file, "# %s\n", _(option_names[i].comment)); /* The option line. */ write_option_line(file, i); } /* The separation between options and actions. */ fprintf(file, "%s\n", SEPARATOR_ACTIONS); write_actions(file); /* The separation between actions and keyboard accelerators. */ fprintf(file, "%s\n", SEPARATOR_ACCELERATORS); fflush(file); gtk_accel_map_save_fd(fileno(file)); fclose(file); return TRUE; } void save_rc(options_struct * opt) { memcpy(&opts, opt, sizeof(options_struct)); write_rc(get_write_config_file()); } const gchar *get_read_config_file(void) { return read_config_file; } /* Yes it's racy, but there's nothing wrong in this case */ static gboolean can_write_config_file(const gchar * file) { gchar *dirname; gboolean res; if (file == NULL) return FALSE; if (g_file_test(file, G_FILE_TEST_IS_DIR)) return FALSE; if (g_file_test(file, G_FILE_TEST_EXISTS)) return !access(file, W_OK); dirname = g_path_get_dirname(file); res = g_file_test(dirname, G_FILE_TEST_IS_DIR) && !access(dirname, W_OK); g_free(dirname); return res; } const gchar *get_write_config_file(void) { if (can_write_config_file(write_config_file)) return write_config_file; if (can_write_config_file(user_glivrc())) return user_glivrc(); return NULL; } gliv-1.9.7/src/gliv-image.c0000644000076400007640000001123311465576131012724 0ustar gg/* Generated by GOB (v2.0.16) (do not edit directly) */ /* End world hunger, donate to the World Food Programme, http://www.wfp.org */ #define GOB_VERSION_MAJOR 2 #define GOB_VERSION_MINOR 0 #define GOB_VERSION_PATCHLEVEL 16 #define selfp (self->_priv) #include /* memset() */ #include "gliv-image.h" #ifdef G_LIKELY #define ___GOB_LIKELY(expr) G_LIKELY(expr) #define ___GOB_UNLIKELY(expr) G_UNLIKELY(expr) #else /* ! G_LIKELY */ #define ___GOB_LIKELY(expr) (expr) #define ___GOB_UNLIKELY(expr) (expr) #endif /* G_LIKELY */ #line 1 "../tools/gliv-image.gob" #include "gliv.h" #include "opengl.h" #include "options.h" extern options_struct *options; static int nb_images = 0; #line 35 "gliv-image.c" #line 12 "../tools/gliv-image.gob" #include "texture_map.h" #line 41 "gliv-image.c" /* self casting macros */ #define SELF(x) GLIV_IMAGE(x) #define SELF_CONST(x) GLIV_IMAGE_CONST(x) #define IS_SELF(x) GLIV_IS_IMAGE(x) #define TYPE_SELF GLIV_TYPE_IMAGE #define SELF_CLASS(x) GLIV_IMAGE_CLASS(x) #define SELF_GET_CLASS(x) GLIV_IMAGE_GET_CLASS(x) /* self typedefs */ typedef GlivImage Self; typedef GlivImageClass SelfClass; /* here are local prototypes */ #line 0 "../tools/gliv-image.gob" static void gliv_image_init (GlivImage * o) G_GNUC_UNUSED; #line 58 "gliv-image.c" #line 0 "../tools/gliv-image.gob" static void gliv_image_class_init (GlivImageClass * c) G_GNUC_UNUSED; #line 61 "gliv-image.c" #line 44 "../tools/gliv-image.gob" static void ___2_gliv_image_finalize (GObject * self) G_GNUC_UNUSED; #line 64 "gliv-image.c" /* pointer to the class of our parent */ static GObjectClass *parent_class = NULL; /* Short form macros */ #define self_new gliv_image_new GType gliv_image_get_type (void) { static GType type = 0; if ___GOB_UNLIKELY(type == 0) { static const GTypeInfo info = { sizeof (GlivImageClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gliv_image_class_init, (GClassFinalizeFunc) NULL, NULL /* class_data */, sizeof (GlivImage), 0 /* n_preallocs */, (GInstanceInitFunc) gliv_image_init, NULL }; type = g_type_register_static (G_TYPE_OBJECT, "GlivImage", &info, (GTypeFlags)0); } return type; } /* a macro for creating a new object of our type */ #define GET_NEW ((GlivImage *)g_object_new(gliv_image_get_type(), NULL)) /* a function for creating a new object of our type */ #include static GlivImage * GET_NEW_VARG (const char *first, ...) G_GNUC_UNUSED; static GlivImage * GET_NEW_VARG (const char *first, ...) { GlivImage *ret; va_list ap; va_start (ap, first); ret = (GlivImage *)g_object_new_valist (gliv_image_get_type (), first, ap); va_end (ap); return ret; } static void gliv_image_init (GlivImage * o G_GNUC_UNUSED) { #define __GOB_FUNCTION__ "Gliv:Image::init" } #undef __GOB_FUNCTION__ static void gliv_image_class_init (GlivImageClass * c G_GNUC_UNUSED) { #define __GOB_FUNCTION__ "Gliv:Image::class_init" GObjectClass *g_object_class = (GObjectClass *)c; parent_class = g_type_class_ref (G_TYPE_OBJECT); #line 44 "../tools/gliv-image.gob" g_object_class->finalize = ___2_gliv_image_finalize; #line 129 "gliv-image.c" } #undef __GOB_FUNCTION__ #line 29 "../tools/gliv-image.gob" GlivImage * gliv_image_new (void) { #line 139 "gliv-image.c" #define __GOB_FUNCTION__ "Gliv:Image::new" { #line 30 "../tools/gliv-image.gob" /* This is used to detect bugs */ nb_images++; if (nb_images > 4) g_printerr("There are more than 4 images: %d images\n", nb_images); else if (options->one_image && nb_images > 2) /* We can have two images : the displayed one and the just loaded */ g_printerr("There are more than 2 images: %d images\n", nb_images); return GET_NEW; }} #line 156 "gliv-image.c" #undef __GOB_FUNCTION__ #line 44 "../tools/gliv-image.gob" static void ___2_gliv_image_finalize (GObject * self G_GNUC_UNUSED) #line 162 "gliv-image.c" #define PARENT_HANDLER(___self) \ { if(G_OBJECT_CLASS(parent_class)->finalize) \ (* G_OBJECT_CLASS(parent_class)->finalize)(___self); } { #define __GOB_FUNCTION__ "Gliv:Image::finalize" { #line 45 "../tools/gliv-image.gob" gint level; texture_map *map; GlivImage *im = GLIV_IMAGE(self); for (level = 0; level < im->nb_maps; level++) { map = im->maps + level; glDeleteTextures(map->nb_tiles, map->tex_ids); g_free(map->tex_ids); glDeleteLists(map->list, map->nb_tiles); g_free(map->tiles); } g_free(im->maps); g_free(im->ident); PARENT_HANDLER(self); nb_images--; }} #line 191 "gliv-image.c" #undef __GOB_FUNCTION__ #undef PARENT_HANDLER gliv-1.9.7/src/glade_actions.c0000644000076400007640000002420011465576131013475 0ustar gg/* * DO NOT EDIT THIS FILE - it is generated by Glade. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include #define GLADE_HOOKUP_OBJECT(component,widget,name) \ g_object_set_data_full (G_OBJECT (component), name, \ gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref) #define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \ g_object_set_data (G_OBJECT (component), name, widget) GtkWidget* create_actions_dialog (void) { GtkWidget *actions_dialog; GtkWidget *dialog_vbox1; GtkWidget *hbox10; GtkWidget *scrolledwindow3; GtkWidget *treeview; GtkWidget *vbox12; GtkWidget *add_button; GtkWidget *property_button; GtkWidget *delete_button; GtkWidget *dialog_action_area1; GtkWidget *cancelbutton1; GtkWidget *okbutton1; actions_dialog = gtk_dialog_new (); gtk_window_set_title (GTK_WINDOW (actions_dialog), _("Actions")); gtk_window_set_position (GTK_WINDOW (actions_dialog), GTK_WIN_POS_MOUSE); gtk_window_set_modal (GTK_WINDOW (actions_dialog), TRUE); gtk_window_set_type_hint (GTK_WINDOW (actions_dialog), GDK_WINDOW_TYPE_HINT_DIALOG); dialog_vbox1 = GTK_DIALOG (actions_dialog)->vbox; gtk_widget_show (dialog_vbox1); hbox10 = gtk_hbox_new (FALSE, 0); gtk_widget_show (hbox10); gtk_box_pack_start (GTK_BOX (dialog_vbox1), hbox10, TRUE, TRUE, 0); scrolledwindow3 = gtk_scrolled_window_new (NULL, NULL); gtk_widget_show (scrolledwindow3); gtk_box_pack_start (GTK_BOX (hbox10), scrolledwindow3, TRUE, TRUE, 0); gtk_container_set_border_width (GTK_CONTAINER (scrolledwindow3), 10); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow3), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); treeview = gtk_tree_view_new (); gtk_widget_show (treeview); gtk_container_add (GTK_CONTAINER (scrolledwindow3), treeview); gtk_widget_set_size_request (treeview, 200, 200); gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (treeview), TRUE); gtk_tree_view_set_reorderable (GTK_TREE_VIEW (treeview), TRUE); vbox12 = gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox12); gtk_box_pack_start (GTK_BOX (hbox10), vbox12, FALSE, FALSE, 0); add_button = gtk_button_new_from_stock ("gtk-add"); gtk_widget_show (add_button); gtk_box_pack_start (GTK_BOX (vbox12), add_button, TRUE, FALSE, 0); GTK_WIDGET_SET_FLAGS (add_button, GTK_CAN_DEFAULT); property_button = gtk_button_new_from_stock ("gtk-properties"); gtk_widget_show (property_button); gtk_box_pack_start (GTK_BOX (vbox12), property_button, TRUE, FALSE, 0); gtk_widget_set_sensitive (property_button, FALSE); delete_button = gtk_button_new_from_stock ("gtk-remove"); gtk_widget_show (delete_button); gtk_box_pack_start (GTK_BOX (vbox12), delete_button, TRUE, FALSE, 0); gtk_widget_set_sensitive (delete_button, FALSE); dialog_action_area1 = GTK_DIALOG (actions_dialog)->action_area; gtk_widget_show (dialog_action_area1); gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area1), GTK_BUTTONBOX_END); cancelbutton1 = gtk_button_new_from_stock ("gtk-cancel"); gtk_widget_show (cancelbutton1); gtk_dialog_add_action_widget (GTK_DIALOG (actions_dialog), cancelbutton1, GTK_RESPONSE_CANCEL); GTK_WIDGET_SET_FLAGS (cancelbutton1, GTK_CAN_DEFAULT); okbutton1 = gtk_button_new_from_stock ("gtk-ok"); gtk_widget_show (okbutton1); gtk_dialog_add_action_widget (GTK_DIALOG (actions_dialog), okbutton1, GTK_RESPONSE_OK); GTK_WIDGET_SET_FLAGS (okbutton1, GTK_CAN_DEFAULT); g_signal_connect ((gpointer) add_button, "clicked", G_CALLBACK (on_add_button_clicked), NULL); g_signal_connect ((gpointer) property_button, "clicked", G_CALLBACK (on_property_button_clicked), NULL); g_signal_connect ((gpointer) delete_button, "clicked", G_CALLBACK (on_delete_button_clicked), NULL); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (actions_dialog, actions_dialog, "actions_dialog"); GLADE_HOOKUP_OBJECT_NO_REF (actions_dialog, dialog_vbox1, "dialog_vbox1"); GLADE_HOOKUP_OBJECT (actions_dialog, hbox10, "hbox10"); GLADE_HOOKUP_OBJECT (actions_dialog, scrolledwindow3, "scrolledwindow3"); GLADE_HOOKUP_OBJECT (actions_dialog, treeview, "treeview"); GLADE_HOOKUP_OBJECT (actions_dialog, vbox12, "vbox12"); GLADE_HOOKUP_OBJECT (actions_dialog, add_button, "add_button"); GLADE_HOOKUP_OBJECT (actions_dialog, property_button, "property_button"); GLADE_HOOKUP_OBJECT (actions_dialog, delete_button, "delete_button"); GLADE_HOOKUP_OBJECT_NO_REF (actions_dialog, dialog_action_area1, "dialog_action_area1"); GLADE_HOOKUP_OBJECT (actions_dialog, cancelbutton1, "cancelbutton1"); GLADE_HOOKUP_OBJECT (actions_dialog, okbutton1, "okbutton1"); gtk_widget_grab_focus (add_button); gtk_widget_grab_default (add_button); return actions_dialog; } GtkWidget* create_edit_action_dialog (void) { GtkWidget *edit_action_dialog; GtkWidget *dialog_vbox2; GtkWidget *vbox13; GtkWidget *table7; GtkWidget *label34; GtkWidget *label35; GtkWidget *command_entry; GtkWidget *name_entry; GtkWidget *hseparator1; GtkWidget *scrolledwindow4; GtkWidget *textview1; GtkWidget *dialog_action_area2; GtkWidget *cancelbutton2; GtkWidget *okbutton2; edit_action_dialog = gtk_dialog_new (); gtk_window_set_title (GTK_WINDOW (edit_action_dialog), _("Edit Action")); gtk_window_set_position (GTK_WINDOW (edit_action_dialog), GTK_WIN_POS_MOUSE); gtk_window_set_modal (GTK_WINDOW (edit_action_dialog), TRUE); gtk_window_set_type_hint (GTK_WINDOW (edit_action_dialog), GDK_WINDOW_TYPE_HINT_DIALOG); dialog_vbox2 = GTK_DIALOG (edit_action_dialog)->vbox; gtk_widget_show (dialog_vbox2); vbox13 = gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox13); gtk_box_pack_start (GTK_BOX (dialog_vbox2), vbox13, TRUE, TRUE, 0); table7 = gtk_table_new (2, 2, FALSE); gtk_widget_show (table7); gtk_box_pack_start (GTK_BOX (vbox13), table7, TRUE, TRUE, 0); label34 = gtk_label_new (_("Name")); gtk_widget_show (label34); gtk_table_attach (GTK_TABLE (table7), label34, 0, 1, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); gtk_misc_set_alignment (GTK_MISC (label34), 0, 0.5); label35 = gtk_label_new (_("Command")); gtk_widget_show (label35); gtk_table_attach (GTK_TABLE (table7), label35, 0, 1, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 0, 0); gtk_misc_set_alignment (GTK_MISC (label35), 0, 0.5); command_entry = gtk_entry_new (); gtk_widget_show (command_entry); gtk_table_attach (GTK_TABLE (table7), command_entry, 1, 2, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 10, 10); name_entry = gtk_entry_new (); gtk_widget_show (name_entry); gtk_table_attach (GTK_TABLE (table7), name_entry, 1, 2, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL), 10, 10); hseparator1 = gtk_hseparator_new (); gtk_widget_show (hseparator1); gtk_box_pack_start (GTK_BOX (vbox13), hseparator1, FALSE, FALSE, 0); scrolledwindow4 = gtk_scrolled_window_new (NULL, NULL); gtk_widget_show (scrolledwindow4); gtk_box_pack_start (GTK_BOX (vbox13), scrolledwindow4, TRUE, TRUE, 0); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow4), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); textview1 = gtk_text_view_new (); gtk_widget_show (textview1); gtk_container_add (GTK_CONTAINER (scrolledwindow4), textview1); gtk_widget_set_size_request (textview1, 300, 120); gtk_text_view_set_editable (GTK_TEXT_VIEW (textview1), FALSE); gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (textview1), GTK_WRAP_WORD); gtk_text_buffer_set_text (gtk_text_view_get_buffer (GTK_TEXT_VIEW (textview1)), _("In the command field, printf like substitutions can be used:\n%d\t\tPath to the current file directory\n%b\t\tCurrent file name\n%f\t\tPath to the current file\n%%\t\tA litteral %\n"), -1); dialog_action_area2 = GTK_DIALOG (edit_action_dialog)->action_area; gtk_widget_show (dialog_action_area2); gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area2), GTK_BUTTONBOX_END); cancelbutton2 = gtk_button_new_from_stock ("gtk-cancel"); gtk_widget_show (cancelbutton2); gtk_dialog_add_action_widget (GTK_DIALOG (edit_action_dialog), cancelbutton2, GTK_RESPONSE_CANCEL); GTK_WIDGET_SET_FLAGS (cancelbutton2, GTK_CAN_DEFAULT); okbutton2 = gtk_button_new_from_stock ("gtk-ok"); gtk_widget_show (okbutton2); gtk_dialog_add_action_widget (GTK_DIALOG (edit_action_dialog), okbutton2, GTK_RESPONSE_OK); GTK_WIDGET_SET_FLAGS (okbutton2, GTK_CAN_DEFAULT); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (edit_action_dialog, edit_action_dialog, "edit_action_dialog"); GLADE_HOOKUP_OBJECT_NO_REF (edit_action_dialog, dialog_vbox2, "dialog_vbox2"); GLADE_HOOKUP_OBJECT (edit_action_dialog, vbox13, "vbox13"); GLADE_HOOKUP_OBJECT (edit_action_dialog, table7, "table7"); GLADE_HOOKUP_OBJECT (edit_action_dialog, label34, "label34"); GLADE_HOOKUP_OBJECT (edit_action_dialog, label35, "label35"); GLADE_HOOKUP_OBJECT (edit_action_dialog, command_entry, "command_entry"); GLADE_HOOKUP_OBJECT (edit_action_dialog, name_entry, "name_entry"); GLADE_HOOKUP_OBJECT (edit_action_dialog, hseparator1, "hseparator1"); GLADE_HOOKUP_OBJECT (edit_action_dialog, scrolledwindow4, "scrolledwindow4"); GLADE_HOOKUP_OBJECT (edit_action_dialog, textview1, "textview1"); GLADE_HOOKUP_OBJECT_NO_REF (edit_action_dialog, dialog_action_area2, "dialog_action_area2"); GLADE_HOOKUP_OBJECT (edit_action_dialog, cancelbutton2, "cancelbutton2"); GLADE_HOOKUP_OBJECT (edit_action_dialog, okbutton2, "okbutton2"); gtk_widget_grab_focus (name_entry); return edit_action_dialog; } gliv-1.9.7/src/textures.c0000644000076400007640000003165411465576131012577 0ustar gg/* * 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. * * See the COPYING file for license information. * * Guillaume Chazarain */ /*********************** * Textures management * ***********************/ #include "gliv.h" #include "textures.h" #include "math_floats.h" /* powf() */ #include "options.h" #include "params.h" #include "thread.h" #include "dithering.h" #include "opengl.h" #include "tiling.h" extern rt_struct *rt; extern options_struct *options; extern GtkWidget *gl_widget; /* Draws a piece of a multi-textures image or a whole mono-texture one. */ static void draw_rectangle(gfloat tex_x0, gfloat tex_x1, gfloat tex_y0, gfloat tex_y1, gfloat vert_x0, gfloat vert_x1, gfloat vert_y0, gfloat vert_y1) { /* * (tex_x0 ; tex_y0) : Origin of the interesting part of the texture. * (tex_x1 ; tex_y1) : Extremity of the interesting part of the texture. * (vert_x0 ; vert_y0) : Origin of the rectangle. * (vert_x1 ; vert_y1) : Extremity of the rectangle. */ glBegin(GL_QUADS); glTexCoord2f(tex_x0, tex_y0); glVertex2f(vert_x0, vert_y0); glTexCoord2f(tex_x1, tex_y0); glVertex2f(vert_x1, vert_y0); glTexCoord2f(tex_x1, tex_y1); glVertex2f(vert_x1, vert_y1); glTexCoord2f(tex_x0, tex_y1); glVertex2f(vert_x0, vert_y1); glEnd(); } /* * Called twice for each rectangle to get rectangle * coordinates to put in the display list. */ static void compute_coordinates(texture_map * map, gfloat * vert0, gfloat * vert1, gfloat * tex0, gfloat * tex1, gint map_dim, gint pos, gint size) { gboolean last = pos + size >= map_dim; *vert0 = -map_dim / 2.0 + pos; if (pos == 0) { *tex0 = 0.0; if (last) { /* Single tile. */ *vert1 = -*vert0; *tex1 = (gfloat) map_dim / size; } else { /* * First tile. * - 1.0: there is only one overlapping pixel. */ *vert1 = *vert0 + size - 1.0; *tex1 = (size - 0.5) / size; } } else { *tex0 = 0.5 / size; if (last) { /* Last tile. */ *vert1 = map_dim / 2.0 - 1.0; *tex1 = (gfloat) (map_dim - pos) / size; } else { /* Middle tiles. */ *vert1 = *vert0 + size - 1.0; *tex1 = 1.0 - *tex0; } } #if 0 printf("pos:%d map_dim:%d size:%d v0:%f v1:%f t0:%f t1:%f\n", pos, map_dim, size, *vert0, *vert1, *tex0, *tex1); #endif } static void rectangle(texture_map * map, tile_dim * tile, gint x, gint y, gint w, gint h, gint level) { gfloat ty0, ty1, tx0, tx1; gfloat x0, x1, y0, y1; gfloat mipmap_coeff; mipmap_coeff = powf(MIPMAP_RATIO, -level); compute_coordinates(map, &x0, &x1, &tx0, &tx1, map->width, x, w); compute_coordinates(map, &y0, &y1, &ty0, &ty1, map->height, y, h); x0 *= mipmap_coeff; x1 *= mipmap_coeff; y0 *= mipmap_coeff; y1 *= mipmap_coeff; draw_rectangle(tx0, tx1, ty0, ty1, x0, x1, y0, y1); /* Used when drawing, to know which tiles are hidden. */ tile->x0 = x0; tile->y0 = y0; tile->x1 = x1; tile->y1 = y1; } /* Shortcut to OpenGL parameters common to all textures. */ static void texture_parameter(void) { /* We don't change the filter for small mip maps. */ glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP); } typedef struct { gint x, y; gint w, h; texture_map *map; GdkPixbuf *tile_max_size; gboolean has_alpha; } texture_data; /* Runs in a separate thread. */ static GdkPixbuf *make_tile(texture_data * data) { GdkPixbuf *tile; gint real_w, real_h; if (data->x == 0 && data->y == 0 && data->w == data->map->width && data->h == data->map->height) { /* Special case, the image is OK for an OpenGL texture. */ g_object_ref(data->map->pixbuf); return data->map->pixbuf; } if (data->w == rt->max_texture_size && data->h == rt->max_texture_size) { tile = data->tile_max_size; g_object_ref(tile); } else tile = gdk_pixbuf_new(GDK_COLORSPACE_RGB, data->has_alpha, 8, data->w, data->h); real_w = data->w; if (data->x + data->w >= data->map->width) real_w = data->map->width - data->x; real_h = data->h; if (data->y + data->h >= data->map->height) real_h = data->map->height - data->y; gdk_pixbuf_copy_area(data->map->pixbuf, data->x, data->y, real_w, real_h, tile, 0, 0); if (data->w != real_w) /* Right border: copy the last column. */ gdk_pixbuf_copy_area(tile, real_w - 1, 0, 1, real_h, tile, real_w, 0); if (data->h != real_h) { /* Lower corner: copy the last line. */ gdk_pixbuf_copy_area(tile, 0, real_h - 1, real_w, 1, tile, 0, real_h); if (data->w != real_w) /* Lower-right corner: copy the last pixel. */ gdk_pixbuf_copy_area(tile, real_w - 1, real_h - 1, 1, 1, tile, real_w, real_h); } return tile; } static void make_texture(GlivImage * im, gint level, gint x, gint y, gint w, gint h) { gint texture0, texture1; static GdkPixbuf *tile_max_size = NULL; texture_data *data; texture_map *map; GdkPixbuf *tile; if (tile_max_size == NULL && w == rt->max_texture_size && h == rt->max_texture_size) tile_max_size = gdk_pixbuf_new(GDK_COLORSPACE_RGB, im->has_alpha, 8, rt->max_texture_size, rt->max_texture_size); map = im->maps + level; data = g_new(texture_data, 1); data->map = map; data->tile_max_size = tile_max_size; if (data->tile_max_size) g_object_ref(tile_max_size); data->has_alpha = im->has_alpha; data->x = x; data->y = y; data->w = w; data->h = h; texture_parameter(); /* We may change the current texture while waiting for the thread. */ glGetIntegerv(GL_TEXTURE_BINDING_2D, &texture0); tile = do_threaded((GThreadFunc) make_tile, data); glGetIntegerv(GL_TEXTURE_BINDING_2D, &texture1); if (data->tile_max_size) g_object_unref(data->tile_max_size); if (texture0 != texture1) glBindTexture(GL_TEXTURE_2D, texture0); glTexImage2D(GL_TEXTURE_2D, 0, 3 + im->has_alpha, w, h, 0, im->has_alpha ? GL_RGBA : GL_RGB, GL_UNSIGNED_BYTE, gdk_pixbuf_get_pixels(tile)); if (tile) g_object_unref(tile); if (x + w >= map->width && y + h >= map->height && tile_max_size != NULL) { g_object_unref(tile_max_size); tile_max_size = NULL; } g_free(data); } void prioritize_textures(GlivImage * im, gboolean is_prio) { GLclampf *priorities; gint i; if (im == NULL) return; /* * im->maps[0] has the biggest nb_tiles, so we don't change the * priorities array for each map, we simply use the biggest for all. */ priorities = g_new(GLclampf, im->maps[0].nb_tiles); for (i = 0; i < im->maps[0].nb_tiles; i++) priorities[i] = (gfloat) is_prio; for (i = 0; i < im->nb_maps; i++) glPrioritizeTextures(im->maps[i].nb_tiles, im->maps[i].tex_ids, priorities); g_free(priorities); } static void compute_gl_dimensions(texture_map * map) { map->x_tiles = make_tiles(map->width); map->y_tiles = make_tiles(map->height); map->nb_tiles = map->x_tiles->nb_tiles * map->y_tiles->nb_tiles; map->tex_ids = g_new(guint, map->nb_tiles); glGenTextures(map->nb_tiles, map->tex_ids); map->list = glGenLists(map->nb_tiles); } static void create_a_map(GlivImage * im, gint level) { gint x, y, h, w; gint id = 0; texture_map *map; struct tiles_iterator *x_iterator, *y_iterator; map = im->maps + level; compute_gl_dimensions(map); map->tiles = g_new(tile_dim, map->nb_tiles); y = 0; y_iterator = tiles_iterator_new(map->y_tiles); while ((h = tiles_iterator_next(y_iterator)) > 0) { x_iterator = tiles_iterator_new(map->x_tiles); x = 0; while ((w = tiles_iterator_next(x_iterator)) > 0) { glBindTexture(GL_TEXTURE_2D, map->tex_ids[id]); #if 0 printf("%d: [x:%d y:%d w:%d h:%d]\n", id, x, y, w, h); #endif make_texture(im, level, x, y, w, h); glNewList(map->list + id, GL_COMPILE); /* Redundant but need to be in the display list. */ glBindTexture(GL_TEXTURE_2D, map->tex_ids[id]); rectangle(map, map->tiles + id, x, y, w, h, level); glEndList(); id++; x += w - 1; } g_free(x_iterator); y += h - 1; } g_free(y_iterator); destroy_tiles(map->x_tiles); destroy_tiles(map->y_tiles); } /*** Dithering ***/ typedef struct { texture_map *map; gboolean destroy_old; } dithering; /* Runs in a separate thread. */ static GdkPixbuf *_dither(dithering * todo) { GdkPixbuf *old, *dithered; old = todo->map->pixbuf; if (todo->destroy_old) dithered = old; else dithered = gdk_pixbuf_new(gdk_pixbuf_get_colorspace(old), gdk_pixbuf_get_has_alpha(old), gdk_pixbuf_get_bits_per_sample(old), gdk_pixbuf_get_width(old), gdk_pixbuf_get_height(old)); dither_pixbuf(dithered, old); todo->map->pixbuf = dithered; return old; } /* Returns the original pixbuf if not asked to be destroyed. */ static GdkPixbuf *dither(texture_map * map, gboolean destroy_old) { dithering todo; todo.map = map; todo.destroy_old = destroy_old; return do_threaded((GThreadFunc) _dither, &todo); } /* Returns the original pixbuf. */ static GdkPixbuf *create_first_map(GlivImage * im) { texture_map *map; GdkPixbuf *orig; map = im->maps; map->width = im->width; map->height = im->height; if (options->dither) /* We keep the pixbuf only if mipmaps are used. */ orig = dither(map, (im->nb_maps == 1)); else orig = map->pixbuf; create_a_map(im, 0); if (options->dither) g_object_unref(map->pixbuf); return orig; } /* Wrapper for do_threaded(). */ typedef struct { GdkPixbuf *image; gint width; gint height; GdkInterpType interp; } rescale_arg; static GdkPixbuf *rescale(rescale_arg * arg) { return gdk_pixbuf_scale_simple(arg->image, arg->width, arg->height, arg->interp); } void create_maps(GlivImage * im) { gint level; texture_map *map; GdkPixbuf *previous; gint width, height; rescale_arg *arg; previous = create_first_map(im); if (im->nb_maps == 1) { /* No mipmaps. */ if (options->dither == FALSE) g_object_unref(previous); prioritize_textures(im, FALSE); return; } width = im->width; height = im->height; arg = g_new(rescale_arg, 1); for (level = 1; level < im->nb_maps; level++) { map = im->maps + level; width = map->width = width * MIPMAP_RATIO; height = map->height = height * MIPMAP_RATIO; arg->image = previous; arg->width = width; arg->height = height; arg->interp = GDK_INTERP_BILINEAR; map->pixbuf = do_threaded((GThreadFunc) rescale, arg); g_object_unref(previous); if (options->dither) /* * We must dither each map since rescaling does not preserve it. * We keep the original image except for the last level. */ previous = dither(map, (level == im->nb_maps - 1)); create_a_map(im, level); if (options->dither) g_object_unref(map->pixbuf); else previous = map->pixbuf; } if (options->dither == FALSE) g_object_unref(previous); prioritize_textures(im, FALSE); } gliv-1.9.7/aclocal.m40000644000076400007640000057661411465576131011633 0ustar gg# 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.67],, [m4_warning([this file was generated for autoconf 2.67. 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'.])]) # codeset.m4 serial 4 (gettext-0.18) dnl Copyright (C) 2000-2002, 2006, 2008-2010 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 From Bruno Haible. AC_DEFUN([AM_LANGINFO_CODESET], [ AC_CACHE_CHECK([for nl_langinfo and CODESET], [am_cv_langinfo_codeset], [AC_TRY_LINK([#include ], [char* cs = nl_langinfo(CODESET); return !cs;], [am_cv_langinfo_codeset=yes], [am_cv_langinfo_codeset=no]) ]) if test $am_cv_langinfo_codeset = yes; then AC_DEFINE([HAVE_LANGINFO_CODESET], [1], [Define if you have and nl_langinfo(CODESET).]) fi ]) # fcntl-o.m4 serial 1 dnl Copyright (C) 2006, 2009-2010 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 Written by Paul Eggert. # Test whether the flags O_NOATIME and O_NOFOLLOW actually work. # Define HAVE_WORKING_O_NOATIME to 1 if O_NOATIME works, or to 0 otherwise. # Define HAVE_WORKING_O_NOFOLLOW to 1 if O_NOFOLLOW works, or to 0 otherwise. AC_DEFUN([gl_FCNTL_O_FLAGS], [ dnl Persuade glibc to define O_NOATIME and O_NOFOLLOW. AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) AC_CACHE_CHECK([for working fcntl.h], [gl_cv_header_working_fcntl_h], [AC_RUN_IFELSE( [AC_LANG_PROGRAM( [[#include #include #include #include #ifndef O_NOATIME #define O_NOATIME 0 #endif #ifndef O_NOFOLLOW #define O_NOFOLLOW 0 #endif static int const constants[] = { O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND, O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY }; ]], [[ int status = !constants; { static char const sym[] = "conftest.sym"; if (symlink (".", sym) != 0 || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0) status |= 32; unlink (sym); } { static char const file[] = "confdefs.h"; int fd = open (file, O_RDONLY | O_NOATIME); char c; struct stat st0, st1; if (fd < 0 || fstat (fd, &st0) != 0 || sleep (1) != 0 || read (fd, &c, 1) != 1 || close (fd) != 0 || stat (file, &st1) != 0 || st0.st_atime != st1.st_atime) status |= 64; } return status;]])], [gl_cv_header_working_fcntl_h=yes], [case $? in #( 32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #( 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #( 96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #( *) gl_cv_header_working_fcntl_h='no';; esac], [gl_cv_header_working_fcntl_h=cross-compiling])]) case $gl_cv_header_working_fcntl_h in #( *O_NOATIME* | no | cross-compiling) ac_val=0;; #( *) ac_val=1;; esac AC_DEFINE_UNQUOTED([HAVE_WORKING_O_NOATIME], [$ac_val], [Define to 1 if O_NOATIME works.]) case $gl_cv_header_working_fcntl_h in #( *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #( *) ac_val=1;; esac AC_DEFINE_UNQUOTED([HAVE_WORKING_O_NOFOLLOW], [$ac_val], [Define to 1 if O_NOFOLLOW works.]) ]) # gettext.m4 serial 63 (gettext-0.18) dnl Copyright (C) 1995-2010 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-2006, 2008-2010. dnl Macro to add for using GNU gettext. dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]). dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The dnl default (if it is not specified or empty) is 'no-libtool'. dnl INTLSYMBOL should be 'external' for packages with no intl directory, dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory. dnl If INTLSYMBOL is 'use-libtool', then a libtool library dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static, dnl depending on --{enable,disable}-{shared,static} and on the presence of dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library dnl $(top_builddir)/intl/libintl.a will be created. dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext dnl implementations (in libc or libintl) without the ngettext() function dnl will be ignored. If NEEDSYMBOL is specified and is dnl 'need-formatstring-macros', then GNU gettext implementations that don't dnl support the ISO C 99 formatstring macros will be ignored. dnl INTLDIR is used to find the intl libraries. If empty, dnl the value `$(top_builddir)/intl/' is used. dnl dnl The result of the configuration is one of three cases: dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled dnl and used. dnl Catalog format: GNU --> install in $(datadir) dnl Catalog extension: .mo after installation, .gmo in source tree dnl 2) GNU gettext has been found in the system's C library. dnl Catalog format: GNU --> install in $(datadir) dnl Catalog extension: .mo after installation, .gmo in source tree dnl 3) No internationalization, always use English msgid. dnl Catalog format: none dnl Catalog extension: none dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur. dnl The use of .gmo is historical (it was needed to avoid overwriting the dnl GNU format catalogs when building on a platform with an X/Open gettext), dnl but we keep it in order not to force irrelevant filename changes on the dnl maintainers. dnl AC_DEFUN([AM_GNU_GETTEXT], [ dnl Argument checking. ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], , [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT ])])])])]) ifelse(ifelse([$1], [], [old])[]ifelse([$1], [no-libtool], [old]), [old], [AC_DIAGNOSE([obsolete], [Use of AM_GNU_GETTEXT without [external] argument is deprecated.])]) ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], , [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT ])])])]) define([gt_included_intl], ifelse([$1], [external], ifdef([AM_GNU_GETTEXT_][INTL_SUBDIR], [yes], [no]), [yes])) define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], [])) gt_NEEDS_INIT AM_GNU_GETTEXT_NEED([$2]) AC_REQUIRE([AM_PO_SUBDIRS])dnl ifelse(gt_included_intl, yes, [ AC_REQUIRE([AM_INTL_SUBDIR])dnl ]) dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) dnl Sometimes libintl requires libiconv, so first search for libiconv. dnl Ideally we would do this search only after the dnl if test "$USE_NLS" = "yes"; then dnl if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT dnl the configure script would need to contain the same shell code dnl again, outside any 'if'. There are two solutions: dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'. dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE. dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not dnl documented, we avoid it. ifelse(gt_included_intl, yes, , [ AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) ]) dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation. gt_INTL_MACOSX dnl Set USE_NLS. AC_REQUIRE([AM_NLS]) ifelse(gt_included_intl, yes, [ BUILD_INCLUDED_LIBINTL=no USE_INCLUDED_LIBINTL=no ]) LIBINTL= LTLIBINTL= POSUB= dnl Add a version number to the cache macros. case " $gt_needs " in *" need-formatstring-macros "*) gt_api_version=3 ;; *" need-ngettext "*) gt_api_version=2 ;; *) gt_api_version=1 ;; esac gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" dnl If we use NLS figure out what method if test "$USE_NLS" = "yes"; then gt_use_preinstalled_gnugettext=no ifelse(gt_included_intl, yes, [ AC_MSG_CHECKING([whether included gettext is requested]) AC_ARG_WITH([included-gettext], [ --with-included-gettext use the GNU gettext library included here], nls_cv_force_use_gnu_gettext=$withval, nls_cv_force_use_gnu_gettext=no) AC_MSG_RESULT([$nls_cv_force_use_gnu_gettext]) nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" if test "$nls_cv_force_use_gnu_gettext" != "yes"; then ]) dnl User does not insist on using GNU NLS library. Figure out what dnl to use. If GNU gettext is available we use this. Else we have dnl to fall back to GNU NLS library. if test $gt_api_version -ge 3; then gt_revision_test_code=' #ifndef __GNU_GETTEXT_SUPPORTED_REVISION #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) #endif changequote(,)dnl typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; changequote([,])dnl ' else gt_revision_test_code= fi if test $gt_api_version -ge 2; then gt_expression_test_code=' + * ngettext ("", "", 0)' else gt_expression_test_code= fi AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc], [AC_TRY_LINK([#include $gt_revision_test_code extern int _nl_msg_cat_cntr; extern int *_nl_domain_bindings;], [bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings], [eval "$gt_func_gnugettext_libc=yes"], [eval "$gt_func_gnugettext_libc=no"])]) if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then dnl Sometimes libintl requires libiconv, so first search for libiconv. ifelse(gt_included_intl, yes, , [ AM_ICONV_LINK ]) dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv]) dnl because that would add "-liconv" to LIBINTL and LTLIBINTL dnl even if libiconv doesn't exist. AC_LIB_LINKFLAGS_BODY([intl]) AC_CACHE_CHECK([for GNU gettext in libintl], [$gt_func_gnugettext_libintl], [gt_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $INCINTL" gt_save_LIBS="$LIBS" LIBS="$LIBS $LIBINTL" dnl Now see whether libintl exists and does not depend on libiconv. AC_TRY_LINK([#include $gt_revision_test_code extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *);], [bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")], [eval "$gt_func_gnugettext_libintl=yes"], [eval "$gt_func_gnugettext_libintl=no"]) dnl Now see whether libintl exists and depends on libiconv. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then LIBS="$LIBS $LIBICONV" AC_TRY_LINK([#include $gt_revision_test_code extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *);], [bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")], [LIBINTL="$LIBINTL $LIBICONV" LTLIBINTL="$LTLIBINTL $LTLIBICONV" eval "$gt_func_gnugettext_libintl=yes" ]) fi CPPFLAGS="$gt_save_CPPFLAGS" LIBS="$gt_save_LIBS"]) fi dnl If an already present or preinstalled GNU gettext() is found, dnl use it. But if this macro is used in GNU gettext, and GNU dnl gettext is already preinstalled in libintl, we update this dnl libintl. (Cf. the install rule in intl/Makefile.in.) if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ && test "$PACKAGE" != gettext-runtime \ && test "$PACKAGE" != gettext-tools; }; then gt_use_preinstalled_gnugettext=yes else dnl Reset the values set by searching for libintl. LIBINTL= LTLIBINTL= INCINTL= fi ifelse(gt_included_intl, yes, [ if test "$gt_use_preinstalled_gnugettext" != "yes"; then dnl GNU gettext is not found in the C library. dnl Fall back on included GNU gettext library. nls_cv_use_gnu_gettext=yes fi fi if test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Mark actions used to generate GNU NLS library. BUILD_INCLUDED_LIBINTL=yes USE_INCLUDED_LIBINTL=yes LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD" LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD" LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` fi CATOBJEXT= if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Mark actions to use GNU gettext tools. CATOBJEXT=.gmo fi ]) if test -n "$INTL_MACOSX_LIBS"; then if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Some extra flags are needed during linking. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" fi fi if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then AC_DEFINE([ENABLE_NLS], [1], [Define to 1 if translation of program messages to the user's native language is requested.]) else USE_NLS=no fi fi AC_MSG_CHECKING([whether to use NLS]) AC_MSG_RESULT([$USE_NLS]) if test "$USE_NLS" = "yes"; then AC_MSG_CHECKING([where the gettext function comes from]) if test "$gt_use_preinstalled_gnugettext" = "yes"; then if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then gt_source="external libintl" else gt_source="libc" fi else gt_source="included intl directory" fi AC_MSG_RESULT([$gt_source]) fi if test "$USE_NLS" = "yes"; then if test "$gt_use_preinstalled_gnugettext" = "yes"; then if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then AC_MSG_CHECKING([how to link with libintl]) AC_MSG_RESULT([$LIBINTL]) AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL]) fi dnl For backward compatibility. Some packages may be using this. AC_DEFINE([HAVE_GETTEXT], [1], [Define if the GNU gettext() function is already present or preinstalled.]) AC_DEFINE([HAVE_DCGETTEXT], [1], [Define if the GNU dcgettext() function is already present or preinstalled.]) fi dnl We need to process the po/ directory. POSUB=po fi ifelse(gt_included_intl, yes, [ dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL dnl to 'yes' because some of the testsuite requires it. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then BUILD_INCLUDED_LIBINTL=yes fi dnl Make all variables we use known to autoconf. AC_SUBST([BUILD_INCLUDED_LIBINTL]) AC_SUBST([USE_INCLUDED_LIBINTL]) AC_SUBST([CATOBJEXT]) dnl For backward compatibility. Some configure.ins may be using this. nls_cv_header_intl= nls_cv_header_libgt= dnl For backward compatibility. Some Makefiles may be using this. DATADIRNAME=share AC_SUBST([DATADIRNAME]) dnl For backward compatibility. Some Makefiles may be using this. INSTOBJEXT=.mo AC_SUBST([INSTOBJEXT]) dnl For backward compatibility. Some Makefiles may be using this. GENCAT=gencat AC_SUBST([GENCAT]) dnl For backward compatibility. Some Makefiles may be using this. INTLOBJS= if test "$USE_INCLUDED_LIBINTL" = yes; then INTLOBJS="\$(GETTOBJS)" fi AC_SUBST([INTLOBJS]) dnl Enable libtool support if the surrounding package wishes it. INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix AC_SUBST([INTL_LIBTOOL_SUFFIX_PREFIX]) ]) dnl For backward compatibility. Some Makefiles may be using this. INTLLIBS="$LIBINTL" AC_SUBST([INTLLIBS]) dnl Make all documented variables known to autoconf. AC_SUBST([LIBINTL]) AC_SUBST([LTLIBINTL]) AC_SUBST([POSUB]) ]) dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized. m4_define([gt_NEEDS_INIT], [ m4_divert_text([DEFAULTS], [gt_needs=]) m4_define([gt_NEEDS_INIT], []) ]) dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL]) AC_DEFUN([AM_GNU_GETTEXT_NEED], [ m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"]) ]) dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version]) AC_DEFUN([AM_GNU_GETTEXT_VERSION], []) # glibc2.m4 serial 2 dnl Copyright (C) 2000-2002, 2004, 2008-2010 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. # Test for the GNU C Library, version 2.0 or newer. # From Bruno Haible. AC_DEFUN([gt_GLIBC2], [ AC_CACHE_CHECK([whether we are using the GNU C Library 2 or newer], [ac_cv_gnu_library_2], [AC_EGREP_CPP([Lucky GNU user], [ #include #ifdef __GNU_LIBRARY__ #if (__GLIBC__ >= 2) Lucky GNU user #endif #endif ], [ac_cv_gnu_library_2=yes], [ac_cv_gnu_library_2=no]) ] ) AC_SUBST([GLIBC2]) GLIBC2="$ac_cv_gnu_library_2" ] ) # glibc21.m4 serial 4 dnl Copyright (C) 2000-2002, 2004, 2008-2010 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. # Test for the GNU C Library, version 2.1 or newer. # From Bruno Haible. AC_DEFUN([gl_GLIBC21], [ AC_CACHE_CHECK([whether we are using the GNU C Library 2.1 or newer], [ac_cv_gnu_library_2_1], [AC_EGREP_CPP([Lucky GNU user], [ #include #ifdef __GNU_LIBRARY__ #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) Lucky GNU user #endif #endif ], [ac_cv_gnu_library_2_1=yes], [ac_cv_gnu_library_2_1=no]) ] ) AC_SUBST([GLIBC21]) GLIBC21="$ac_cv_gnu_library_2_1" ] ) # 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 ]) # iconv.m4 serial 11 (gettext-0.18.1) dnl Copyright (C) 2000-2002, 2007-2010 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 From Bruno Haible. AC_DEFUN([AM_ICONV_LINKFLAGS_BODY], [ dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV dnl accordingly. AC_LIB_LINKFLAGS_BODY([iconv]) ]) AC_DEFUN([AM_ICONV_LINK], [ dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and dnl those with the standalone portable GNU libiconv installed). AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV dnl accordingly. AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) dnl Add $INCICONV to CPPFLAGS before performing the following checks, dnl because if the user has installed libiconv and not disabled its use dnl via --without-libiconv-prefix, he wants to use it. The first dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed. am_save_CPPFLAGS="$CPPFLAGS" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV]) AC_CACHE_CHECK([for iconv], [am_cv_func_iconv], [ am_cv_func_iconv="no, consider installing GNU libiconv" am_cv_lib_iconv=no AC_TRY_LINK([#include #include ], [iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);], [am_cv_func_iconv=yes]) if test "$am_cv_func_iconv" != yes; then am_save_LIBS="$LIBS" LIBS="$LIBS $LIBICONV" AC_TRY_LINK([#include #include ], [iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);], [am_cv_lib_iconv=yes] [am_cv_func_iconv=yes]) LIBS="$am_save_LIBS" fi ]) if test "$am_cv_func_iconv" = yes; then AC_CACHE_CHECK([for working iconv], [am_cv_func_iconv_works], [ dnl This tests against bugs in AIX 5.1, HP-UX 11.11, Solaris 10. am_save_LIBS="$LIBS" if test $am_cv_lib_iconv = yes; then LIBS="$LIBS $LIBICONV" fi AC_TRY_RUN([ #include #include int main () { /* Test against AIX 5.1 bug: Failures are not distinguishable from successful returns. */ { iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); if (cd_utf8_to_88591 != (iconv_t)(-1)) { static const char input[] = "\342\202\254"; /* EURO SIGN */ char buf[10]; const char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_utf8_to_88591, (char **) &inptr, &inbytesleft, &outptr, &outbytesleft); if (res == 0) return 1; } } /* Test against Solaris 10 bug: Failures are not distinguishable from successful returns. */ { iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); if (cd_ascii_to_88591 != (iconv_t)(-1)) { static const char input[] = "\263"; char buf[10]; const char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_ascii_to_88591, (char **) &inptr, &inbytesleft, &outptr, &outbytesleft); if (res == 0) return 1; } } #if 0 /* This bug could be worked around by the caller. */ /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ { iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); if (cd_88591_to_utf8 != (iconv_t)(-1)) { static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; char buf[50]; const char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_88591_to_utf8, (char **) &inptr, &inbytesleft, &outptr, &outbytesleft); if ((int)res > 0) return 1; } } #endif /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is provided. */ if (/* Try standardized names. */ iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) /* Try IRIX, OSF/1 names. */ && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) /* Try AIX names. */ && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) /* Try HP-UX names. */ && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) return 1; return 0; }], [am_cv_func_iconv_works=yes], [am_cv_func_iconv_works=no], [case "$host_os" in aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; *) am_cv_func_iconv_works="guessing yes" ;; esac]) LIBS="$am_save_LIBS" ]) case "$am_cv_func_iconv_works" in *no) am_func_iconv=no am_cv_lib_iconv=no ;; *) am_func_iconv=yes ;; esac else am_func_iconv=no am_cv_lib_iconv=no fi if test "$am_func_iconv" = yes; then AC_DEFINE([HAVE_ICONV], [1], [Define if you have the iconv() function and it works.]) fi if test "$am_cv_lib_iconv" = yes; then AC_MSG_CHECKING([how to link with libiconv]) AC_MSG_RESULT([$LIBICONV]) else dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV dnl either. CPPFLAGS="$am_save_CPPFLAGS" LIBICONV= LTLIBICONV= fi AC_SUBST([LIBICONV]) AC_SUBST([LTLIBICONV]) ]) dnl Define AM_ICONV using AC_DEFUN_ONCE for Autoconf >= 2.64, in order to dnl avoid warnings like dnl "warning: AC_REQUIRE: `AM_ICONV' was expanded before it was required". dnl This is tricky because of the way 'aclocal' is implemented: dnl - It requires defining an auxiliary macro whose name ends in AC_DEFUN. dnl Otherwise aclocal's initial scan pass would miss the macro definition. dnl - It requires a line break inside the AC_DEFUN_ONCE and AC_DEFUN expansions. dnl Otherwise aclocal would emit many "Use of uninitialized value $1" dnl warnings. m4_define([gl_iconv_AC_DEFUN], m4_version_prereq([2.64], [[AC_DEFUN_ONCE( [$1], [$2])]], [[AC_DEFUN( [$1], [$2])]])) gl_iconv_AC_DEFUN([AM_ICONV], [ AM_ICONV_LINK if test "$am_cv_func_iconv" = yes; then AC_MSG_CHECKING([for iconv declaration]) AC_CACHE_VAL([am_cv_proto_iconv], [ AC_TRY_COMPILE([ #include #include extern #ifdef __cplusplus "C" #endif #if defined(__STDC__) || defined(__cplusplus) size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); #else size_t iconv(); #endif ], [], [am_cv_proto_iconv_arg1=""], [am_cv_proto_iconv_arg1="const"]) am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"]) am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` AC_MSG_RESULT([ $am_cv_proto_iconv]) AC_DEFINE_UNQUOTED([ICONV_CONST], [$am_cv_proto_iconv_arg1], [Define as const if the declaration of iconv() needs const.]) fi ]) # intdiv0.m4 serial 3 (gettext-0.18) dnl Copyright (C) 2002, 2007-2010 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 From Bruno Haible. AC_DEFUN([gt_INTDIV0], [ AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_CACHE_CHECK([whether integer division by zero raises SIGFPE], gt_cv_int_divbyzero_sigfpe, [ gt_cv_int_divbyzero_sigfpe= changequote(,)dnl case "$host_os" in macos* | darwin[6-9]* | darwin[1-9][0-9]*) # On MacOS X 10.2 or newer, just assume the same as when cross- # compiling. If we were to perform the real test, 1 Crash Report # dialog window would pop up. case "$host_cpu" in i[34567]86 | x86_64) gt_cv_int_divbyzero_sigfpe="guessing yes" ;; esac ;; esac changequote([,])dnl if test -z "$gt_cv_int_divbyzero_sigfpe"; then AC_TRY_RUN([ #include #include static void sigfpe_handler (int sig) { /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ exit (sig != SIGFPE); } int x = 1; int y = 0; int z; int nan; int main () { signal (SIGFPE, sigfpe_handler); /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) signal (SIGTRAP, sigfpe_handler); #endif /* Linux/SPARC yields signal SIGILL. */ #if defined (__sparc__) && defined (__linux__) signal (SIGILL, sigfpe_handler); #endif z = x / y; nan = y / y; exit (1); } ], [gt_cv_int_divbyzero_sigfpe=yes], [gt_cv_int_divbyzero_sigfpe=no], [ # Guess based on the CPU. changequote(,)dnl case "$host_cpu" in alpha* | i[34567]86 | x86_64 | m68k | s390*) gt_cv_int_divbyzero_sigfpe="guessing yes";; *) gt_cv_int_divbyzero_sigfpe="guessing no";; esac changequote([,])dnl ]) fi ]) case "$gt_cv_int_divbyzero_sigfpe" in *yes) value=1;; *) value=0;; esac AC_DEFINE_UNQUOTED([INTDIV0_RAISES_SIGFPE], [$value], [Define if integer division by zero raises signal SIGFPE.]) ]) # intl.m4 serial 17 (gettext-0.18) dnl Copyright (C) 1995-2009 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-2009. AC_PREREQ([2.52]) dnl Checks for all prerequisites of the intl subdirectory, dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS, dnl USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL. AC_DEFUN([AM_INTL_SUBDIR], [ AC_REQUIRE([AC_PROG_INSTALL])dnl AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([gt_GLIBC2])dnl AC_REQUIRE([AC_PROG_RANLIB])dnl AC_REQUIRE([gl_VISIBILITY])dnl AC_REQUIRE([gt_INTL_SUBDIR_CORE])dnl AC_REQUIRE([AC_TYPE_LONG_LONG_INT])dnl AC_REQUIRE([gt_TYPE_WCHAR_T])dnl AC_REQUIRE([gt_TYPE_WINT_T])dnl AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) AC_REQUIRE([gt_TYPE_INTMAX_T]) AC_REQUIRE([gt_PRINTF_POSIX]) AC_REQUIRE([gl_GLIBC21])dnl AC_REQUIRE([gl_XSIZE])dnl AC_REQUIRE([gl_FCNTL_O_FLAGS])dnl AC_REQUIRE([gt_INTL_MACOSX])dnl dnl Support for automake's --enable-silent-rules. case "$enable_silent_rules" in yes) INTL_DEFAULT_VERBOSITY=0;; no) INTL_DEFAULT_VERBOSITY=1;; *) INTL_DEFAULT_VERBOSITY=1;; esac AC_SUBST([INTL_DEFAULT_VERBOSITY]) AC_CHECK_TYPE([ptrdiff_t], , [AC_DEFINE([ptrdiff_t], [long], [Define as the type of the result of subtracting two pointers, if the system doesn't define it.]) ]) AC_CHECK_HEADERS([stddef.h stdlib.h string.h]) AC_CHECK_FUNCS([asprintf fwprintf newlocale putenv setenv setlocale \ snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb]) dnl Use the _snprintf function only if it is declared (because on NetBSD it dnl is defined as a weak alias of snprintf; we prefer to use the latter). gt_CHECK_DECL(_snprintf, [#include ]) gt_CHECK_DECL(_snwprintf, [#include ]) dnl Use the *_unlocked functions only if they are declared. dnl (because some of them were defined without being declared in Solaris dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built dnl on Solaris 2.5.1 to run on Solaris 2.6). dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13. gt_CHECK_DECL(getc_unlocked, [#include ]) case $gt_cv_func_printf_posix in *yes) HAVE_POSIX_PRINTF=1 ;; *) HAVE_POSIX_PRINTF=0 ;; esac AC_SUBST([HAVE_POSIX_PRINTF]) if test "$ac_cv_func_asprintf" = yes; then HAVE_ASPRINTF=1 else HAVE_ASPRINTF=0 fi AC_SUBST([HAVE_ASPRINTF]) if test "$ac_cv_func_snprintf" = yes; then HAVE_SNPRINTF=1 else HAVE_SNPRINTF=0 fi AC_SUBST([HAVE_SNPRINTF]) if test "$ac_cv_func_newlocale" = yes; then HAVE_NEWLOCALE=1 else HAVE_NEWLOCALE=0 fi AC_SUBST([HAVE_NEWLOCALE]) if test "$ac_cv_func_wprintf" = yes; then HAVE_WPRINTF=1 else HAVE_WPRINTF=0 fi AC_SUBST([HAVE_WPRINTF]) AM_LANGINFO_CODESET gt_LC_MESSAGES dnl Compilation on mingw and Cygwin needs special Makefile rules, because dnl 1. when we install a shared library, we must arrange to export dnl auxiliary pointer variables for every exported variable, dnl 2. when we install a shared library and a static library simultaneously, dnl the include file specifies __declspec(dllimport) and therefore we dnl must arrange to define the auxiliary pointer variables for the dnl exported variables _also_ in the static library. if test "$enable_shared" = yes; then case "$host_os" in mingw* | cygwin*) is_woe32dll=yes ;; *) is_woe32dll=no ;; esac else is_woe32dll=no fi WOE32DLL=$is_woe32dll AC_SUBST([WOE32DLL]) dnl On mingw and Cygwin, we can activate special Makefile rules which add dnl version information to the shared libraries and executables. case "$host_os" in mingw* | cygwin*) is_woe32=yes ;; *) is_woe32=no ;; esac WOE32=$is_woe32 AC_SUBST([WOE32]) if test $WOE32 = yes; then dnl Check for a program that compiles Windows resource files. AC_CHECK_TOOL([WINDRES], [windres]) fi dnl Determine whether when creating a library, "-lc" should be passed to dnl libtool or not. On many platforms, it is required for the libtool option dnl -no-undefined to work. On HP-UX, however, the -lc - stored by libtool dnl in the *.la files - makes it impossible to create multithreaded programs, dnl because libtool also reorders the -lc to come before the -pthread, and dnl this disables pthread_create() . case "$host_os" in hpux*) LTLIBC="" ;; *) LTLIBC="-lc" ;; esac AC_SUBST([LTLIBC]) dnl Rename some macros and functions used for locking. AH_BOTTOM([ #define __libc_lock_t gl_lock_t #define __libc_lock_define gl_lock_define #define __libc_lock_define_initialized gl_lock_define_initialized #define __libc_lock_init gl_lock_init #define __libc_lock_lock gl_lock_lock #define __libc_lock_unlock gl_lock_unlock #define __libc_lock_recursive_t gl_recursive_lock_t #define __libc_lock_define_recursive gl_recursive_lock_define #define __libc_lock_define_initialized_recursive gl_recursive_lock_define_initialized #define __libc_lock_init_recursive gl_recursive_lock_init #define __libc_lock_lock_recursive gl_recursive_lock_lock #define __libc_lock_unlock_recursive gl_recursive_lock_unlock #define glthread_in_use libintl_thread_in_use #define glthread_lock_init_func libintl_lock_init_func #define glthread_lock_lock_func libintl_lock_lock_func #define glthread_lock_unlock_func libintl_lock_unlock_func #define glthread_lock_destroy_func libintl_lock_destroy_func #define glthread_rwlock_init_multithreaded libintl_rwlock_init_multithreaded #define glthread_rwlock_init_func libintl_rwlock_init_func #define glthread_rwlock_rdlock_multithreaded libintl_rwlock_rdlock_multithreaded #define glthread_rwlock_rdlock_func libintl_rwlock_rdlock_func #define glthread_rwlock_wrlock_multithreaded libintl_rwlock_wrlock_multithreaded #define glthread_rwlock_wrlock_func libintl_rwlock_wrlock_func #define glthread_rwlock_unlock_multithreaded libintl_rwlock_unlock_multithreaded #define glthread_rwlock_unlock_func libintl_rwlock_unlock_func #define glthread_rwlock_destroy_multithreaded libintl_rwlock_destroy_multithreaded #define glthread_rwlock_destroy_func libintl_rwlock_destroy_func #define glthread_recursive_lock_init_multithreaded libintl_recursive_lock_init_multithreaded #define glthread_recursive_lock_init_func libintl_recursive_lock_init_func #define glthread_recursive_lock_lock_multithreaded libintl_recursive_lock_lock_multithreaded #define glthread_recursive_lock_lock_func libintl_recursive_lock_lock_func #define glthread_recursive_lock_unlock_multithreaded libintl_recursive_lock_unlock_multithreaded #define glthread_recursive_lock_unlock_func libintl_recursive_lock_unlock_func #define glthread_recursive_lock_destroy_multithreaded libintl_recursive_lock_destroy_multithreaded #define glthread_recursive_lock_destroy_func libintl_recursive_lock_destroy_func #define glthread_once_func libintl_once_func #define glthread_once_singlethreaded libintl_once_singlethreaded #define glthread_once_multithreaded libintl_once_multithreaded ]) ]) dnl Checks for the core files of the intl subdirectory: dnl dcigettext.c dnl eval-plural.h dnl explodename.c dnl finddomain.c dnl gettextP.h dnl gmo.h dnl hash-string.h hash-string.c dnl l10nflist.c dnl libgnuintl.h.in (except the *printf stuff) dnl loadinfo.h dnl loadmsgcat.c dnl localealias.c dnl log.c dnl plural-exp.h plural-exp.c dnl plural.y dnl Used by libglocale. AC_DEFUN([gt_INTL_SUBDIR_CORE], [ AC_REQUIRE([AC_C_INLINE])dnl AC_REQUIRE([AC_TYPE_SIZE_T])dnl AC_REQUIRE([gl_AC_HEADER_STDINT_H]) AC_REQUIRE([AC_FUNC_ALLOCA])dnl AC_REQUIRE([AC_FUNC_MMAP])dnl AC_REQUIRE([gt_INTDIV0])dnl AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])dnl AC_REQUIRE([gt_INTTYPES_PRI])dnl AC_REQUIRE([gl_LOCK])dnl AC_TRY_LINK( [int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }], [], [AC_DEFINE([HAVE_BUILTIN_EXPECT], [1], [Define to 1 if the compiler understands __builtin_expect.])]) AC_CHECK_HEADERS([argz.h inttypes.h limits.h unistd.h sys/param.h]) AC_CHECK_FUNCS([getcwd getegid geteuid getgid getuid mempcpy munmap \ stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \ argz_stringify argz_next __fsetlocking]) dnl Use the *_unlocked functions only if they are declared. dnl (because some of them were defined without being declared in Solaris dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built dnl on Solaris 2.5.1 to run on Solaris 2.6). dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13. gt_CHECK_DECL([feof_unlocked], [#include ]) gt_CHECK_DECL([fgets_unlocked], [#include ]) AM_ICONV dnl intl/plural.c is generated from intl/plural.y. It requires bison, dnl because plural.y uses bison specific features. It requires at least dnl bison-1.26 because earlier versions generate a plural.c that doesn't dnl compile. dnl bison is only needed for the maintainer (who touches plural.y). But in dnl order to avoid separate Makefiles or --enable-maintainer-mode, we put dnl the rule in general Makefile. Now, some people carelessly touch the dnl files or have a broken "make" program, hence the plural.c rule will dnl sometimes fire. To avoid an error, defines BISON to ":" if it is not dnl present or too old. AC_CHECK_PROGS([INTLBISON], [bison]) if test -z "$INTLBISON"; then ac_verc_fail=yes else dnl Found it, now check the version. AC_MSG_CHECKING([version of bison]) changequote(<<,>>)dnl ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` case $ac_prog_version in '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) changequote([,])dnl ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; esac AC_MSG_RESULT([$ac_prog_version]) fi if test $ac_verc_fail = yes; then INTLBISON=: fi ]) dnl gt_CHECK_DECL(FUNC, INCLUDES) dnl Check whether a function is declared. AC_DEFUN([gt_CHECK_DECL], [ AC_CACHE_CHECK([whether $1 is declared], [ac_cv_have_decl_$1], [AC_TRY_COMPILE([$2], [ #ifndef $1 char *p = (char *) $1; #endif ], ac_cv_have_decl_$1=yes, ac_cv_have_decl_$1=no)]) if test $ac_cv_have_decl_$1 = yes; then gt_value=1 else gt_value=0 fi AC_DEFINE_UNQUOTED([HAVE_DECL_]translit($1, [a-z], [A-Z]), [$gt_value], [Define to 1 if you have the declaration of `$1', and to 0 if you don't.]) ]) # intlmacosx.m4 serial 3 (gettext-0.18) dnl Copyright (C) 2004-2010 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 Checks for special options needed on MacOS X. dnl Defines INTL_MACOSX_LIBS. AC_DEFUN([gt_INTL_MACOSX], [ dnl Check for API introduced in MacOS X 10.2. AC_CACHE_CHECK([for CFPreferencesCopyAppValue], [gt_cv_func_CFPreferencesCopyAppValue], [gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" AC_TRY_LINK([#include ], [CFPreferencesCopyAppValue(NULL, NULL)], [gt_cv_func_CFPreferencesCopyAppValue=yes], [gt_cv_func_CFPreferencesCopyAppValue=no]) LIBS="$gt_save_LIBS"]) if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], [1], [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.]) fi dnl Check for API introduced in MacOS X 10.3. AC_CACHE_CHECK([for CFLocaleCopyCurrent], [gt_cv_func_CFLocaleCopyCurrent], [gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" AC_TRY_LINK([#include ], [CFLocaleCopyCurrent();], [gt_cv_func_CFLocaleCopyCurrent=yes], [gt_cv_func_CFLocaleCopyCurrent=no]) LIBS="$gt_save_LIBS"]) if test $gt_cv_func_CFLocaleCopyCurrent = yes; then AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], [1], [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.]) fi INTL_MACOSX_LIBS= if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" fi AC_SUBST([INTL_MACOSX_LIBS]) ]) # intmax.m4 serial 5 (gettext-0.18) dnl Copyright (C) 2002-2005, 2008-2010 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 From Bruno Haible. dnl Test whether the system has the 'intmax_t' type, but don't attempt to dnl find a replacement if it is lacking. AC_DEFUN([gt_TYPE_INTMAX_T], [ AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) AC_REQUIRE([gl_AC_HEADER_STDINT_H]) AC_CACHE_CHECK([for intmax_t], [gt_cv_c_intmax_t], [AC_TRY_COMPILE([ #include #include #if HAVE_STDINT_H_WITH_UINTMAX #include #endif #if HAVE_INTTYPES_H_WITH_UINTMAX #include #endif ], [intmax_t x = -1; return !x;], [gt_cv_c_intmax_t=yes], [gt_cv_c_intmax_t=no])]) if test $gt_cv_c_intmax_t = yes; then AC_DEFINE([HAVE_INTMAX_T], [1], [Define if you have the 'intmax_t' type in or .]) fi ]) # inttypes-pri.m4 serial 6 (gettext-0.18) dnl Copyright (C) 1997-2002, 2006, 2008-2010 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 From Bruno Haible. AC_PREREQ([2.52]) # Define PRI_MACROS_BROKEN if exists and defines the PRI* # macros to non-string values. This is the case on AIX 4.3.3. AC_DEFUN([gt_INTTYPES_PRI], [ AC_CHECK_HEADERS([inttypes.h]) if test $ac_cv_header_inttypes_h = yes; then AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken], [gt_cv_inttypes_pri_broken], [ AC_TRY_COMPILE([#include #ifdef PRId32 char *p = PRId32; #endif ], [], [gt_cv_inttypes_pri_broken=no], [gt_cv_inttypes_pri_broken=yes]) ]) fi if test "$gt_cv_inttypes_pri_broken" = yes; then AC_DEFINE_UNQUOTED([PRI_MACROS_BROKEN], [1], [Define if exists and defines unusable PRI* macros.]) PRI_MACROS_BROKEN=1 else PRI_MACROS_BROKEN=0 fi AC_SUBST([PRI_MACROS_BROKEN]) ]) # inttypes_h.m4 serial 9 dnl Copyright (C) 1997-2004, 2006, 2008-2010 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 From Paul Eggert. # Define HAVE_INTTYPES_H_WITH_UINTMAX if exists, # doesn't clash with , and declares uintmax_t. AC_DEFUN([gl_AC_HEADER_INTTYPES_H], [ AC_CACHE_CHECK([for inttypes.h], [gl_cv_header_inttypes_h], [AC_TRY_COMPILE( [#include #include ], [uintmax_t i = (uintmax_t) -1; return !i;], [gl_cv_header_inttypes_h=yes], [gl_cv_header_inttypes_h=no])]) if test $gl_cv_header_inttypes_h = yes; then AC_DEFINE_UNQUOTED([HAVE_INTTYPES_H_WITH_UINTMAX], [1], [Define if exists, doesn't clash with , and declares uintmax_t. ]) fi ]) # lcmessage.m4 serial 6 (gettext-0.18) dnl Copyright (C) 1995-2002, 2004-2005, 2008-2010 Free Software Foundation, dnl 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. # Check whether LC_MESSAGES is available in . AC_DEFUN([gt_LC_MESSAGES], [ AC_CACHE_CHECK([for LC_MESSAGES], [gt_cv_val_LC_MESSAGES], [AC_TRY_LINK([#include ], [return LC_MESSAGES], [gt_cv_val_LC_MESSAGES=yes], [gt_cv_val_LC_MESSAGES=no])]) if test $gt_cv_val_LC_MESSAGES = yes; then AC_DEFINE([HAVE_LC_MESSAGES], [1], [Define if your file defines LC_MESSAGES.]) fi ]) # lib-ld.m4 serial 4 (gettext-0.18) dnl Copyright (C) 1996-2003, 2009-2010 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 Subroutines of libtool.m4, dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision dnl with libtool.m4. dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. AC_DEFUN([AC_LIB_PROG_LD_GNU], [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], [acl_cv_prog_gnu_ld], [# I'd rather use --version here, but apparently some GNU ld's only accept -v. case `$LD -v 2>&1 conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by GCC]) case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [[\\/]* | [A-Za-z]:[\\/]*)] [re_direlt='/[^/][^/]*/\.\./'] # Canonicalize the path of ld ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL([acl_cv_path_LD], [if test -z "$LD"; then IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then acl_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some GNU ld's only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in *GNU* | *'with BFD'*) test "$with_gnu_ld" != no && break ;; *) test "$with_gnu_ld" != yes && break ;; esac fi done IFS="$ac_save_ifs" else acl_cv_path_LD="$LD" # Let the user override the test with a path. fi]) LD="$acl_cv_path_LD" if test -n "$LD"; then AC_MSG_RESULT([$LD]) else AC_MSG_RESULT([no]) fi test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) AC_LIB_PROG_LD_GNU ]) # lib-link.m4 serial 21 (gettext-0.18) dnl Copyright (C) 2001-2010 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 From Bruno Haible. AC_PREREQ([2.54]) dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and dnl the libraries corresponding to explicit and implicit dependencies. dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and dnl augments the CPPFLAGS variable. dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. AC_DEFUN([AC_LIB_LINKFLAGS], [ AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) pushdef([Name],[translit([$1],[./-], [___])]) pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ AC_LIB_LINKFLAGS_BODY([$1], [$2]) ac_cv_lib[]Name[]_libs="$LIB[]NAME" ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" ac_cv_lib[]Name[]_cppflags="$INC[]NAME" ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX" ]) LIB[]NAME="$ac_cv_lib[]Name[]_libs" LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" INC[]NAME="$ac_cv_lib[]Name[]_cppflags" LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) AC_SUBST([LIB]NAME) AC_SUBST([LTLIB]NAME) AC_SUBST([LIB]NAME[_PREFIX]) dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the dnl results of this search when this library appears as a dependency. HAVE_LIB[]NAME=yes popdef([NAME]) popdef([Name]) ]) dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode, [missing-message]) dnl searches for libname and the libraries corresponding to explicit and dnl implicit dependencies, together with the specified include files and dnl the ability to compile and link the specified testcode. The missing-message dnl defaults to 'no' and may contain additional hints for the user. dnl If found, it sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} dnl and LTLIB${NAME} variables and augments the CPPFLAGS variable, and dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], [ AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) pushdef([Name],[translit([$1],[./-], [___])]) pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME dnl accordingly. AC_LIB_LINKFLAGS_BODY([$1], [$2]) dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, dnl because if the user has installed lib[]Name and not disabled its use dnl via --without-lib[]Name-prefix, he wants to use it. ac_save_CPPFLAGS="$CPPFLAGS" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ ac_save_LIBS="$LIBS" dnl If $LIB[]NAME contains some -l options, add it to the end of LIBS, dnl because these -l options might require -L options that are present in dnl LIBS. -l options benefit only from the -L options listed before it. dnl Otherwise, add it to the front of LIBS, because it may be a static dnl library that depends on another static library that is present in LIBS. dnl Static libraries benefit only from the static libraries listed after dnl it. case " $LIB[]NAME" in *" -l"*) LIBS="$LIBS $LIB[]NAME" ;; *) LIBS="$LIB[]NAME $LIBS" ;; esac AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name='m4_if([$5], [], [no], [[$5]])']) LIBS="$ac_save_LIBS" ]) if test "$ac_cv_lib[]Name" = yes; then HAVE_LIB[]NAME=yes AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the lib][$1 library.]) AC_MSG_CHECKING([how to link with lib[]$1]) AC_MSG_RESULT([$LIB[]NAME]) else HAVE_LIB[]NAME=no dnl If $LIB[]NAME didn't lead to a usable library, we don't need dnl $INC[]NAME either. CPPFLAGS="$ac_save_CPPFLAGS" LIB[]NAME= LTLIB[]NAME= LIB[]NAME[]_PREFIX= fi AC_SUBST([HAVE_LIB]NAME) AC_SUBST([LIB]NAME) AC_SUBST([LTLIB]NAME) AC_SUBST([LIB]NAME[_PREFIX]) popdef([NAME]) popdef([Name]) ]) dnl Determine the platform dependent parameters needed to use rpath: dnl acl_libext, dnl acl_shlibext, dnl acl_hardcode_libdir_flag_spec, dnl acl_hardcode_libdir_separator, dnl acl_hardcode_direct, dnl acl_hardcode_minus_L. AC_DEFUN([AC_LIB_RPATH], [ dnl Tell automake >= 1.10 to complain if config.rpath is missing. m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir AC_CACHE_CHECK([for shared library run path origin], [acl_cv_rpath], [ CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh . ./conftest.sh rm -f ./conftest.sh acl_cv_rpath=done ]) wl="$acl_cv_wl" acl_libext="$acl_cv_libext" acl_shlibext="$acl_cv_shlibext" acl_libname_spec="$acl_cv_libname_spec" acl_library_names_spec="$acl_cv_library_names_spec" acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" acl_hardcode_direct="$acl_cv_hardcode_direct" acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" dnl Determine whether the user wants rpath handling at all. AC_ARG_ENABLE([rpath], [ --disable-rpath do not hardcode runtime library paths], :, enable_rpath=yes) ]) dnl AC_LIB_FROMPACKAGE(name, package) dnl declares that libname comes from the given package. The configure file dnl will then not have a --with-libname-prefix option but a dnl --with-package-prefix option. Several libraries can come from the same dnl package. This declaration must occur before an AC_LIB_LINKFLAGS or similar dnl macro call that searches for libname. AC_DEFUN([AC_LIB_FROMPACKAGE], [ pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) define([acl_frompackage_]NAME, [$2]) popdef([NAME]) pushdef([PACK],[$2]) pushdef([PACKUP],[translit(PACK,[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) define([acl_libsinpackage_]PACKUP, m4_ifdef([acl_libsinpackage_]PACKUP, [acl_libsinpackage_]PACKUP[[, ]],)[lib$1]) popdef([PACKUP]) popdef([PACK]) ]) dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and dnl the libraries corresponding to explicit and implicit dependencies. dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem. AC_DEFUN([AC_LIB_LINKFLAGS_BODY], [ AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) pushdef([PACK],[m4_ifdef([acl_frompackage_]NAME, [acl_frompackage_]NAME, lib[$1])]) pushdef([PACKUP],[translit(PACK,[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) pushdef([PACKLIBS],[m4_ifdef([acl_frompackage_]NAME, [acl_libsinpackage_]PACKUP, lib[$1])]) dnl Autoconf >= 2.61 supports dots in --with options. pushdef([P_A_C_K],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[translit(PACK,[.],[_])],PACK)]) dnl By default, look in $includedir and $libdir. use_additional=yes AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) AC_ARG_WITH(P_A_C_K[-prefix], [[ --with-]]P_A_C_K[[-prefix[=DIR] search for ]PACKLIBS[ in DIR/include and DIR/lib --without-]]P_A_C_K[[-prefix don't search for ]PACKLIBS[ in includedir and libdir]], [ if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" if test "$acl_libdirstem2" != "$acl_libdirstem" \ && ! test -d "$withval/$acl_libdirstem"; then additional_libdir="$withval/$acl_libdirstem2" fi fi fi ]) dnl Search the library and its dependencies in $additional_libdir and dnl $LDFLAGS. Using breadth-first-seach. LIB[]NAME= LTLIB[]NAME= INC[]NAME= LIB[]NAME[]_PREFIX= dnl HAVE_LIB${NAME} is an indicator that LIB${NAME}, LTLIB${NAME} have been dnl computed. So it has to be reset here. HAVE_LIB[]NAME= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='$1 $2' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" dnl See if it was already located by an earlier AC_LIB_LINKFLAGS dnl or AC_LIB_HAVE_LINKFLAGS call. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" else dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined dnl that this library doesn't exist. So just drop it. : fi else dnl Search the library lib$name in $additional_libdir and $LDFLAGS dnl and the already constructed $LIBNAME/$LTLIBNAME. found_dir= found_la= found_so= found_a= eval libname=\"$acl_libname_spec\" # typically: libname=lib$name if test -n "$acl_shlibext"; then shrext=".$acl_shlibext" # typically: shrext=.so else shrext= fi if test $use_additional = yes; then dir="$additional_libdir" dnl The same code as in the loop below: dnl First look for a shared library. if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi dnl Then look for a static library. if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext"; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` dnl First look for a shared library. if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi dnl Then look for a static library. if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext"; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then dnl Found the library. LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then dnl Linking with a shared library. We attempt to hardcode its dnl directory into the executable's runpath, unless it's the dnl standard /usr/lib. if test "$enable_rpath" = no \ || test "X$found_dir" = "X/usr/$acl_libdirstem" \ || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then dnl No hardcoding is needed. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else dnl Use an explicit option to hardcode DIR into the resulting dnl binary. dnl Potentially add DIR to ltrpathdirs. dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi dnl The hardcoding into $LIBNAME is system dependent. if test "$acl_hardcode_direct" = yes; then dnl Using DIR/libNAME.so during linking hardcodes DIR into the dnl resulting binary. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then dnl Use an explicit option to hardcode DIR into the resulting dnl binary. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" dnl Potentially add DIR to rpathdirs. dnl The rpathdirs will be appended to $LIBNAME at the end. haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else dnl Rely on "-L$found_dir". dnl But don't add it if it's already contained in the LDFLAGS dnl or the already constructed $LIBNAME haveit= for x in $LDFLAGS $LIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" fi if test "$acl_hardcode_minus_L" != no; then dnl FIXME: Not sure whether we should use dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" dnl here. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH dnl here, because this doesn't fit in flags passed to the dnl compiler. So give up. No hardcoding. This affects only dnl very old systems. dnl FIXME: Not sure whether we should use dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" dnl here. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then dnl Linking with a static library. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" else dnl We shouldn't come here, but anyway it's good to have a dnl fallback. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" fi fi dnl Assume the include files are nearby. additional_includedir= case "$found_dir" in */$acl_libdirstem | */$acl_libdirstem/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` if test "$name" = '$1'; then LIB[]NAME[]_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; */$acl_libdirstem2 | */$acl_libdirstem2/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` if test "$name" = '$1'; then LIB[]NAME[]_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; esac if test "X$additional_includedir" != "X"; then dnl Potentially add $additional_includedir to $INCNAME. dnl But don't add it dnl 1. if it's the standard /usr/include, dnl 2. if it's /usr/local/include and we are using GCC on Linux, dnl 3. if it's already present in $CPPFLAGS or the already dnl constructed $INCNAME, dnl 4. if it doesn't exist as a directory. if test "X$additional_includedir" != "X/usr/include"; then haveit= if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then for x in $CPPFLAGS $INC[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_includedir"; then dnl Really add $additional_includedir to $INCNAME. INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" fi fi fi fi fi dnl Look for dependencies. if test -n "$found_la"; then dnl Read the .la file. It defines the variables dnl dlname, library_names, old_library, dependency_libs, current, dnl age, revision, installed, dlopen, dlpreopen, libdir. save_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac libdir="$save_libdir" dnl We use only dependency_libs. for dep in $dependency_libs; do case "$dep" in -L*) additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. dnl But don't add it dnl 1. if it's the standard /usr/lib, dnl 2. if it's /usr/local/lib and we are using GCC on Linux, dnl 3. if it's already present in $LDFLAGS or the already dnl constructed $LIBNAME, dnl 4. if it doesn't exist as a directory. if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then haveit= if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then dnl Really add $additional_libdir to $LIBNAME. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" fi fi haveit= for x in $LDFLAGS $LTLIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then dnl Really add $additional_libdir to $LTLIBNAME. LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then dnl Potentially add DIR to rpathdirs. dnl The rpathdirs will be appended to $LIBNAME at the end. haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi dnl Potentially add DIR to ltrpathdirs. dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) dnl Handle this in the next round. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` ;; *.la) dnl Handle this in the next round. Throw away the .la's dnl directory; it is already contained in a preceding -L dnl option. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) dnl Most likely an immediate library name. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" ;; esac done fi else dnl Didn't find the library; assume it is in the system directories dnl known to the linker and runtime loader. (All the system dnl directories known to the linker should also be known to the dnl runtime loader, otherwise the system is severely misconfigured.) LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$acl_hardcode_libdir_separator"; then dnl Weird platform: only the last -rpath option counts, the user must dnl pass all path elements in one option. We can arrange that for a dnl single library, but not when more than one $LIBNAMEs are used. alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" done dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl. acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" else dnl The -rpath options are cumulative. for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then dnl When using libtool, the option that works for both libraries and dnl executables is -R. The -R options are cumulative. for found_dir in $ltrpathdirs; do LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" done fi popdef([P_A_C_K]) popdef([PACKLIBS]) popdef([PACKUP]) popdef([PACK]) popdef([NAME]) ]) dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, dnl unless already present in VAR. dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes dnl contains two or three consecutive elements that belong together. AC_DEFUN([AC_LIB_APPENDTOVAR], [ for element in [$2]; do haveit= for x in $[$1]; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then [$1]="${[$1]}${[$1]:+ }$element" fi done ]) dnl For those cases where a variable contains several -L and -l options dnl referring to unknown libraries and directories, this macro determines the dnl necessary additional linker options for the runtime path. dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL]) dnl sets LDADDVAR to linker options needed together with LIBSVALUE. dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed, dnl otherwise linking without libtool is assumed. AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS], [ AC_REQUIRE([AC_LIB_RPATH]) AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) $1= if test "$enable_rpath" != no; then if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then dnl Use an explicit option to hardcode directories into the resulting dnl binary. rpathdirs= next= for opt in $2; do if test -n "$next"; then dir="$next" dnl No need to hardcode the standard /usr/lib. if test "X$dir" != "X/usr/$acl_libdirstem" \ && test "X$dir" != "X/usr/$acl_libdirstem2"; then rpathdirs="$rpathdirs $dir" fi next= else case $opt in -L) next=yes ;; -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'` dnl No need to hardcode the standard /usr/lib. if test "X$dir" != "X/usr/$acl_libdirstem" \ && test "X$dir" != "X/usr/$acl_libdirstem2"; then rpathdirs="$rpathdirs $dir" fi next= ;; *) next= ;; esac fi done if test "X$rpathdirs" != "X"; then if test -n ""$3""; then dnl libtool is used for linking. Use -R options. for dir in $rpathdirs; do $1="${$1}${$1:+ }-R$dir" done else dnl The linker is used for linking directly. if test -n "$acl_hardcode_libdir_separator"; then dnl Weird platform: only the last -rpath option counts, the user dnl must pass all path elements in one option. alldirs= for dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir" done acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" $1="$flag" else dnl The -rpath options are cumulative. for dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" $1="${$1}${$1:+ }$flag" done fi fi fi fi fi AC_SUBST([$1]) ]) # lib-prefix.m4 serial 7 (gettext-0.18) dnl Copyright (C) 2001-2005, 2008-2010 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 From Bruno Haible. dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't dnl require excessive bracketing. ifdef([AC_HELP_STRING], [AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])], [AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])]) dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed dnl to access previously installed libraries. The basic assumption is that dnl a user will want packages to use other packages he previously installed dnl with the same --prefix option. dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate dnl libraries, but is otherwise very convenient. AC_DEFUN([AC_LIB_PREFIX], [ AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) dnl By default, look in $includedir and $libdir. use_additional=yes AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) AC_LIB_ARG_WITH([lib-prefix], [ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib --without-lib-prefix don't search for libraries in includedir and libdir], [ if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" fi fi ]) if test $use_additional = yes; then dnl Potentially add $additional_includedir to $CPPFLAGS. dnl But don't add it dnl 1. if it's the standard /usr/include, dnl 2. if it's already present in $CPPFLAGS, dnl 3. if it's /usr/local/include and we are using GCC on Linux, dnl 4. if it doesn't exist as a directory. if test "X$additional_includedir" != "X/usr/include"; then haveit= for x in $CPPFLAGS; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then if test -d "$additional_includedir"; then dnl Really add $additional_includedir to $CPPFLAGS. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" fi fi fi fi dnl Potentially add $additional_libdir to $LDFLAGS. dnl But don't add it dnl 1. if it's the standard /usr/lib, dnl 2. if it's already present in $LDFLAGS, dnl 3. if it's /usr/local/lib and we are using GCC on Linux, dnl 4. if it doesn't exist as a directory. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then haveit= for x in $LDFLAGS; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then if test -n "$GCC"; then case $host_os in linux*) haveit=yes;; esac fi fi if test -z "$haveit"; then if test -d "$additional_libdir"; then dnl Really add $additional_libdir to $LDFLAGS. LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" fi fi fi fi fi ]) dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, dnl acl_final_exec_prefix, containing the values to which $prefix and dnl $exec_prefix will expand at the end of the configure script. AC_DEFUN([AC_LIB_PREPARE_PREFIX], [ dnl Unfortunately, prefix and exec_prefix get only finally determined dnl at the end of configure. if test "X$prefix" = "XNONE"; then acl_final_prefix="$ac_default_prefix" else acl_final_prefix="$prefix" fi if test "X$exec_prefix" = "XNONE"; then acl_final_exec_prefix='${prefix}' else acl_final_exec_prefix="$exec_prefix" fi acl_save_prefix="$prefix" prefix="$acl_final_prefix" eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" prefix="$acl_save_prefix" ]) dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the dnl variables prefix and exec_prefix bound to the values they will have dnl at the end of the configure script. AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], [ acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" $1 exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" ]) dnl AC_LIB_PREPARE_MULTILIB creates dnl - a variable acl_libdirstem, containing the basename of the libdir, either dnl "lib" or "lib64" or "lib/64", dnl - a variable acl_libdirstem2, as a secondary possible value for dnl acl_libdirstem, either the same as acl_libdirstem or "lib/sparcv9" or dnl "lib/amd64". AC_DEFUN([AC_LIB_PREPARE_MULTILIB], [ dnl There is no formal standard regarding lib and lib64. dnl On glibc systems, the current practice is that on a system supporting dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under dnl $prefix/lib64 and 32-bit libraries go under $prefix/lib. We determine dnl the compiler's default mode by looking at the compiler's library search dnl path. If at least one of its elements ends in /lib64 or points to a dnl directory whose absolute pathname ends in /lib64, we assume a 64-bit ABI. dnl Otherwise we use the default, namely "lib". dnl On Solaris systems, the current practice is that on a system supporting dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under dnl $prefix/lib/64 (which is a symlink to either $prefix/lib/sparcv9 or dnl $prefix/lib/amd64) and 32-bit libraries go under $prefix/lib. AC_REQUIRE([AC_CANONICAL_HOST]) acl_libdirstem=lib acl_libdirstem2= case "$host_os" in solaris*) dnl See Solaris 10 Software Developer Collection > Solaris 64-bit Developer's Guide > The Development Environment dnl . dnl "Portable Makefiles should refer to any library directories using the 64 symbolic link." dnl But we want to recognize the sparcv9 or amd64 subdirectory also if the dnl symlink is missing, so we set acl_libdirstem2 too. AC_CACHE_CHECK([for 64-bit host], [gl_cv_solaris_64bit], [AC_EGREP_CPP([sixtyfour bits], [ #ifdef _LP64 sixtyfour bits #endif ], [gl_cv_solaris_64bit=yes], [gl_cv_solaris_64bit=no]) ]) if test $gl_cv_solaris_64bit = yes; then acl_libdirstem=lib/64 case "$host_cpu" in sparc*) acl_libdirstem2=lib/sparcv9 ;; i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; esac fi ;; *) searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` if test -n "$searchpath"; then acl_save_IFS="${IFS= }"; IFS=":" for searchdir in $searchpath; do if test -d "$searchdir"; then case "$searchdir" in */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; */../ | */.. ) # Better ignore directories of this form. They are misleading. ;; *) searchdir=`cd "$searchdir" && pwd` case "$searchdir" in */lib64 ) acl_libdirstem=lib64 ;; esac ;; esac fi done IFS="$acl_save_IFS" fi ;; esac test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" ]) # lock.m4 serial 10 (gettext-0.18) dnl Copyright (C) 2005-2010 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 From Bruno Haible. AC_DEFUN([gl_LOCK], [ AC_REQUIRE([gl_THREADLIB]) if test "$gl_threads_api" = posix; then # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the # pthread_rwlock_* functions. AC_CHECK_TYPE([pthread_rwlock_t], [AC_DEFINE([HAVE_PTHREAD_RWLOCK], [1], [Define if the POSIX multithreading library has read/write locks.])], [], [#include ]) # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. AC_TRY_COMPILE([#include ], [#if __FreeBSD__ == 4 error "No, in FreeBSD 4.0 recursive mutexes actually don't work." #else int x = (int)PTHREAD_MUTEX_RECURSIVE; return !x; #endif], [AC_DEFINE([HAVE_PTHREAD_MUTEX_RECURSIVE], [1], [Define if the defines PTHREAD_MUTEX_RECURSIVE.])]) fi gl_PREREQ_LOCK ]) # Prerequisites of lib/lock.c. AC_DEFUN([gl_PREREQ_LOCK], [ AC_REQUIRE([AC_C_INLINE]) ]) # longlong.m4 serial 14 dnl Copyright (C) 1999-2007, 2009-2010 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 From Paul Eggert. # Define HAVE_LONG_LONG_INT if 'long long int' works. # This fixes a bug in Autoconf 2.61, but can be removed once we # assume 2.62 everywhere. # Note: If the type 'long long int' exists but is only 32 bits large # (as on some very old compilers), HAVE_LONG_LONG_INT will not be # defined. In this case you can treat 'long long int' like 'long int'. AC_DEFUN([AC_TYPE_LONG_LONG_INT], [ AC_CACHE_CHECK([for long long int], [ac_cv_type_long_long_int], [AC_LINK_IFELSE( [_AC_TYPE_LONG_LONG_SNIPPET], [dnl This catches a bug in Tandem NonStop Kernel (OSS) cc -O circa 2004. dnl If cross compiling, assume the bug isn't important, since dnl nobody cross compiles for this platform as far as we know. AC_RUN_IFELSE( [AC_LANG_PROGRAM( [[@%:@include @%:@ifndef LLONG_MAX @%:@ define HALF \ (1LL << (sizeof (long long int) * CHAR_BIT - 2)) @%:@ define LLONG_MAX (HALF - 1 + HALF) @%:@endif]], [[long long int n = 1; int i; for (i = 0; ; i++) { long long int m = n << i; if (m >> i != n) return 1; if (LLONG_MAX / 2 < m) break; } return 0;]])], [ac_cv_type_long_long_int=yes], [ac_cv_type_long_long_int=no], [ac_cv_type_long_long_int=yes])], [ac_cv_type_long_long_int=no])]) if test $ac_cv_type_long_long_int = yes; then AC_DEFINE([HAVE_LONG_LONG_INT], [1], [Define to 1 if the system has the type `long long int'.]) fi ]) # Define HAVE_UNSIGNED_LONG_LONG_INT if 'unsigned long long int' works. # This fixes a bug in Autoconf 2.61, but can be removed once we # assume 2.62 everywhere. # Note: If the type 'unsigned long long int' exists but is only 32 bits # large (as on some very old compilers), AC_TYPE_UNSIGNED_LONG_LONG_INT # will not be defined. In this case you can treat 'unsigned long long int' # like 'unsigned long int'. AC_DEFUN([AC_TYPE_UNSIGNED_LONG_LONG_INT], [ AC_CACHE_CHECK([for unsigned long long int], [ac_cv_type_unsigned_long_long_int], [AC_LINK_IFELSE( [_AC_TYPE_LONG_LONG_SNIPPET], [ac_cv_type_unsigned_long_long_int=yes], [ac_cv_type_unsigned_long_long_int=no])]) if test $ac_cv_type_unsigned_long_long_int = yes; then AC_DEFINE([HAVE_UNSIGNED_LONG_LONG_INT], [1], [Define to 1 if the system has the type `unsigned long long int'.]) fi ]) # Expands to a C program that can be used to test for simultaneous support # of 'long long' and 'unsigned long long'. We don't want to say that # 'long long' is available if 'unsigned long long' is not, or vice versa, # because too many programs rely on the symmetry between signed and unsigned # integer types (excluding 'bool'). AC_DEFUN([_AC_TYPE_LONG_LONG_SNIPPET], [ AC_LANG_PROGRAM( [[/* For now, do not test the preprocessor; as of 2007 there are too many implementations with broken preprocessors. Perhaps this can be revisited in 2012. In the meantime, code should not expect #if to work with literals wider than 32 bits. */ /* Test literals. */ long long int ll = 9223372036854775807ll; long long int nll = -9223372036854775807LL; unsigned long long int ull = 18446744073709551615ULL; /* Test constant expressions. */ typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) ? 1 : -1)]; typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 ? 1 : -1)]; int i = 63;]], [[/* Test availability of runtime routines for shift and division. */ long long int llmax = 9223372036854775807ll; unsigned long long int ullmax = 18446744073709551615ull; return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) | (llmax / ll) | (llmax % ll) | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) | (ullmax / ull) | (ullmax % ull));]]) ]) # nls.m4 serial 5 (gettext-0.18) dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation, dnl 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 -*- # serial 1 (pkg-config-0.24) # # 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]) AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) 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. # # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) # only at the first occurence in configure.ac, so if the first place # it's called might be skipped (such as if it is within an "if", you # have 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_default([$2], [:]) m4_ifvaln([$3], [else $3])dnl fi]) # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) # --------------------------------------------- m4_define([_PKG_CONFIG], [if test -n "$$1"; then pkg_cv_[]$1="$$1" elif test -n "$PKG_CONFIG"; then PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], [pkg_failed=yes]) 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 AC_MSG_RESULT([no]) _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1` else $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD m4_default([$4], [AC_MSG_ERROR( [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])dnl ]) elif test $pkg_failed = untried; then AC_MSG_RESULT([no]) m4_default([$4], [AC_MSG_FAILURE( [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 .])dnl ]) else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) $3 fi[]dnl ])# PKG_CHECK_MODULES # po.m4 serial 17 (gettext-0.18) dnl Copyright (C) 1995-2010 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]) dnl Checks for all prerequisites of the po subdirectory. AC_DEFUN([AM_PO_SUBDIRS], [ AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake AC_REQUIRE([AM_NLS])dnl dnl Release version of the gettext macros. This is used to ensure that dnl the gettext macros and po/Makefile.in.in are in sync. AC_SUBST([GETTEXT_MACRO_VERSION], [0.18]) dnl Perform the following tests also if --disable-nls has been given, dnl because they are needed for "make dist" to work. dnl Search for GNU msgfmt in the PATH. dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions. dnl The second test excludes FreeBSD msgfmt. AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], :) AC_PATH_PROG([GMSGFMT], [gmsgfmt], [$MSGFMT]) dnl Test whether it is GNU msgfmt >= 0.15. changequote(,)dnl case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; *) MSGFMT_015=$MSGFMT ;; esac changequote([,])dnl AC_SUBST([MSGFMT_015]) changequote(,)dnl case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; *) GMSGFMT_015=$GMSGFMT ;; esac changequote([,])dnl AC_SUBST([GMSGFMT_015]) dnl Search for GNU xgettext 0.12 or newer in the PATH. dnl The first test excludes Solaris xgettext and early GNU xgettext versions. dnl The second test excludes FreeBSD xgettext. AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], :) dnl Remove leftover from FreeBSD xgettext call. rm -f messages.po dnl Test whether it is GNU xgettext >= 0.15. changequote(,)dnl case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; *) XGETTEXT_015=$XGETTEXT ;; esac changequote([,])dnl AC_SUBST([XGETTEXT_015]) dnl Search for GNU msgmerge 0.11 or newer in the PATH. AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge, [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :) dnl Installation directories. dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we dnl have to define it here, so that it can be used in po/Makefile. test -n "$localedir" || localedir='${datadir}/locale' AC_SUBST([localedir]) dnl Support for AM_XGETTEXT_OPTION. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= AC_SUBST([XGETTEXT_EXTRA_OPTIONS]) AC_CONFIG_COMMANDS([po-directories], [[ for ac_file in $CONFIG_FILES; do # Support "outfile[:infile[:infile...]]" case "$ac_file" in *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; esac # PO directories have a Makefile.in generated from Makefile.in.in. case "$ac_file" in */Makefile.in) # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" case "$ac_given_srcdir" in .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; /*) top_srcdir="$ac_given_srcdir" ;; *) top_srcdir="$ac_dots$ac_given_srcdir" ;; esac # Treat a directory as a PO directory if and only if it has a # POTFILES.in file. This allows packages to have multiple PO # directories under different names or in different locations. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then rm -f "$ac_dir/POTFILES" test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" POMAKEFILEDEPS="POTFILES.in" # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend # on $ac_dir but don't depend on user-specified configuration # parameters. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then # The LINGUAS file contains the set of available languages. if test -n "$OBSOLETE_ALL_LINGUAS"; then test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" fi ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` # Hide the ALL_LINGUAS assigment from automake < 1.5. eval 'ALL_LINGUAS''=$ALL_LINGUAS_' POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" else # The set of available languages was given in configure.in. # Hide the ALL_LINGUAS assigment from automake < 1.5. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' fi # Compute POFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) # Compute UPDATEPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) # Compute DUMMYPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) # Compute GMOFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) case "$ac_given_srcdir" in .) srcdirpre= ;; *) srcdirpre='$(srcdir)/' ;; esac POFILES= UPDATEPOFILES= DUMMYPOFILES= GMOFILES= for lang in $ALL_LINGUAS; do POFILES="$POFILES $srcdirpre$lang.po" UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" DUMMYPOFILES="$DUMMYPOFILES $lang.nop" GMOFILES="$GMOFILES $srcdirpre$lang.gmo" done # CATALOGS depends on both $ac_dir and the user's LINGUAS # environment variable. INST_LINGUAS= if test -n "$ALL_LINGUAS"; then for presentlang in $ALL_LINGUAS; do useit=no if test "%UNSET%" != "$LINGUAS"; then desiredlanguages="$LINGUAS" else desiredlanguages="$ALL_LINGUAS" fi for desiredlang in $desiredlanguages; do # Use the presentlang catalog if desiredlang is # a. equal to presentlang, or # b. a variant of presentlang (because in this case, # presentlang can be used as a fallback for messages # which are not translated in the desiredlang catalog). case "$desiredlang" in "$presentlang"*) useit=yes;; esac done if test $useit = yes; then INST_LINGUAS="$INST_LINGUAS $presentlang" fi done fi CATALOGS= if test -n "$INST_LINGUAS"; then for lang in $INST_LINGUAS; do CATALOGS="$CATALOGS $lang.gmo" done fi test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do if test -f "$f"; then case "$f" in *.orig | *.bak | *~) ;; *) cat "$f" >> "$ac_dir/Makefile" ;; esac fi done fi ;; esac done]], [# Capture the value of obsolete ALL_LINGUAS because we need it to compute # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it # from automake < 1.5. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' # Capture the value of LINGUAS because we need it to compute CATALOGS. LINGUAS="${LINGUAS-%UNSET%}" ]) ]) dnl Postprocesses a Makefile in a directory containing PO files. AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE], [ # When this code is run, in config.status, two variables have already been # set: # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in, # - LINGUAS is the value of the environment variable LINGUAS at configure # time. changequote(,)dnl # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" case "$ac_given_srcdir" in .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; /*) top_srcdir="$ac_given_srcdir" ;; *) top_srcdir="$ac_dots$ac_given_srcdir" ;; esac # Find a way to echo strings without interpreting backslash. if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then gt_echo='echo' else if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then gt_echo='printf %s\n' else echo_func () { cat < "$ac_file.tmp" if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then # Add dependencies that cannot be formulated as a simple suffix rule. for lang in $ALL_LINGUAS; do frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` cat >> "$ac_file.tmp" < /dev/null; then # Add dependencies that cannot be formulated as a simple suffix rule. for lang in $ALL_LINGUAS; do frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` cat >> "$ac_file.tmp" <> "$ac_file.tmp" < #include /* The string "%2$d %1$d", with dollar characters protected from the shell's dollar expansion (possibly an autoconf bug). */ static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; static char buf[100]; int main () { sprintf (buf, format, 33, 55); return (strcmp (buf, "55 33") != 0); }], gt_cv_func_printf_posix=yes, gt_cv_func_printf_posix=no, [ AC_EGREP_CPP([notposix], [ #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ notposix #endif ], [gt_cv_func_printf_posix="guessing no"], [gt_cv_func_printf_posix="guessing yes"]) ]) ]) case $gt_cv_func_printf_posix in *yes) AC_DEFINE([HAVE_POSIX_PRINTF], [1], [Define if your printf() function supports format strings with positions.]) ;; esac ]) # progtest.m4 serial 6 (gettext-0.18) dnl Copyright (C) 1996-2003, 2005, 2008-2010 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 , 1996. AC_PREREQ([2.50]) # Search path for a program which passes the given test. dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) AC_DEFUN([AM_PATH_PROG_WITH_TEST], [ # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # Extract the first word of "$2", so it can be a program name with args. set dummy $2; ac_word=[$]2 AC_MSG_CHECKING([for $ac_word]) AC_CACHE_VAL([ac_cv_path_$1], [case "[$]$1" in [[\\/]]* | ?:[[\\/]]*) ac_cv_path_$1="[$]$1" # Let the user override the test with a path. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in ifelse([$5], , $PATH, [$5]); do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD if [$3]; then ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done done IFS="$ac_save_IFS" dnl If no 4th arg is given, leave the cache variable unset, dnl so AC_PATH_PROGS will keep looking. ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" ])dnl ;; esac])dnl $1="$ac_cv_path_$1" if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then AC_MSG_RESULT([$][$1]) else AC_MSG_RESULT([no]) fi AC_SUBST([$1])dnl ]) # size_max.m4 serial 9 dnl Copyright (C) 2003, 2005-2006, 2008-2010 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 From Bruno Haible. AC_DEFUN([gl_SIZE_MAX], [ AC_CHECK_HEADERS([stdint.h]) dnl First test whether the system already has SIZE_MAX. AC_CACHE_CHECK([for SIZE_MAX], [gl_cv_size_max], [ gl_cv_size_max= AC_EGREP_CPP([Found it], [ #include #if HAVE_STDINT_H #include #endif #ifdef SIZE_MAX Found it #endif ], [gl_cv_size_max=yes]) if test -z "$gl_cv_size_max"; then dnl Define it ourselves. Here we assume that the type 'size_t' is not wider dnl than the type 'unsigned long'. Try hard to find a definition that can dnl be used in a preprocessor #if, i.e. doesn't contain a cast. AC_COMPUTE_INT([size_t_bits_minus_1], [sizeof (size_t) * CHAR_BIT - 1], [#include #include ], [size_t_bits_minus_1=]) AC_COMPUTE_INT([fits_in_uint], [sizeof (size_t) <= sizeof (unsigned int)], [#include ], [fits_in_uint=]) if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then if test $fits_in_uint = 1; then dnl Even though SIZE_MAX fits in an unsigned int, it must be of type dnl 'unsigned long' if the type 'size_t' is the same as 'unsigned long'. AC_TRY_COMPILE([#include extern size_t foo; extern unsigned long foo; ], [], [fits_in_uint=0]) fi dnl We cannot use 'expr' to simplify this expression, because 'expr' dnl works only with 'long' integers in the host environment, while we dnl might be cross-compiling from a 32-bit platform to a 64-bit platform. if test $fits_in_uint = 1; then gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" else gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" fi else dnl Shouldn't happen, but who knows... gl_cv_size_max='((size_t)~(size_t)0)' fi fi ]) if test "$gl_cv_size_max" != yes; then AC_DEFINE_UNQUOTED([SIZE_MAX], [$gl_cv_size_max], [Define as the maximum value of type 'size_t', if the system doesn't define it.]) fi dnl Don't redefine SIZE_MAX in config.h if config.h is re-included after dnl . Remember that the #undef in AH_VERBATIM gets replaced with dnl #define by AC_DEFINE_UNQUOTED. AH_VERBATIM([SIZE_MAX], [/* Define as the maximum value of type 'size_t', if the system doesn't define it. */ #ifndef SIZE_MAX # undef SIZE_MAX #endif]) ]) dnl Autoconf >= 2.61 has AC_COMPUTE_INT built-in. dnl Remove this when we can assume autoconf >= 2.61. m4_ifdef([AC_COMPUTE_INT], [], [ AC_DEFUN([AC_COMPUTE_INT], [_AC_COMPUTE_INT([$2],[$1],[$3],[$4])]) ]) # stdint_h.m4 serial 8 dnl Copyright (C) 1997-2004, 2006, 2008-2010 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 From Paul Eggert. # Define HAVE_STDINT_H_WITH_UINTMAX if exists, # doesn't clash with , and declares uintmax_t. AC_DEFUN([gl_AC_HEADER_STDINT_H], [ AC_CACHE_CHECK([for stdint.h], [gl_cv_header_stdint_h], [AC_TRY_COMPILE( [#include #include ], [uintmax_t i = (uintmax_t) -1; return !i;], [gl_cv_header_stdint_h=yes], [gl_cv_header_stdint_h=no])]) if test $gl_cv_header_stdint_h = yes; then AC_DEFINE_UNQUOTED([HAVE_STDINT_H_WITH_UINTMAX], [1], [Define if exists, doesn't clash with , and declares uintmax_t. ]) fi ]) # threadlib.m4 serial 5 (gettext-0.18) dnl Copyright (C) 2005-2010 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 From Bruno Haible. dnl gl_THREADLIB dnl ------------ dnl Tests for a multithreading library to be used. dnl Defines at most one of the macros USE_POSIX_THREADS, USE_SOLARIS_THREADS, dnl USE_PTH_THREADS, USE_WIN32_THREADS dnl Sets the variables LIBTHREAD and LTLIBTHREAD to the linker options for use dnl in a Makefile (LIBTHREAD for use without libtool, LTLIBTHREAD for use with dnl libtool). dnl Sets the variables LIBMULTITHREAD and LTLIBMULTITHREAD similarly, for dnl programs that really need multithread functionality. The difference dnl between LIBTHREAD and LIBMULTITHREAD is that on platforms supporting weak dnl symbols, typically LIBTHREAD="" whereas LIBMULTITHREAD="-lpthread". dnl Adds to CPPFLAGS the flag -D_REENTRANT or -D_THREAD_SAFE if needed for dnl multithread-safe programs. AC_DEFUN([gl_THREADLIB_EARLY], [ AC_REQUIRE([gl_THREADLIB_EARLY_BODY]) ]) dnl The guts of gl_THREADLIB_EARLY. Needs to be expanded only once. AC_DEFUN([gl_THREADLIB_EARLY_BODY], [ dnl Ordering constraints: This macro modifies CPPFLAGS in a way that dnl influences the result of the autoconf tests that test for *_unlocked dnl declarations, on AIX 5 at least. Therefore it must come early. AC_BEFORE([$0], [gl_FUNC_GLIBC_UNLOCKED_IO])dnl AC_BEFORE([$0], [gl_ARGP])dnl AC_REQUIRE([AC_CANONICAL_HOST]) dnl _GNU_SOURCE is needed for pthread_rwlock_t on glibc systems. dnl AC_USE_SYSTEM_EXTENSIONS was introduced in autoconf 2.60 and obsoletes dnl AC_GNU_SOURCE. m4_ifdef([AC_USE_SYSTEM_EXTENSIONS], [AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])], [AC_REQUIRE([AC_GNU_SOURCE])]) dnl Check for multithreading. m4_divert_text([DEFAULTS], [gl_use_threads_default=]) AC_ARG_ENABLE([threads], AC_HELP_STRING([--enable-threads={posix|solaris|pth|win32}], [specify multithreading API]) AC_HELP_STRING([--disable-threads], [build without multithread safety]), [gl_use_threads=$enableval], [if test -n "$gl_use_threads_default"; then gl_use_threads="$gl_use_threads_default" else changequote(,)dnl case "$host_os" in dnl Disable multithreading by default on OSF/1, because it interferes dnl with fork()/exec(): When msgexec is linked with -lpthread, its dnl child process gets an endless segmentation fault inside execvp(). dnl Disable multithreading by default on Cygwin 1.5.x, because it has dnl bugs that lead to endless loops or crashes. See dnl . osf*) gl_use_threads=no ;; cygwin*) case `uname -r` in 1.[0-5].*) gl_use_threads=no ;; *) gl_use_threads=yes ;; esac ;; *) gl_use_threads=yes ;; esac changequote([,])dnl fi ]) if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then # For using : case "$host_os" in osf*) # On OSF/1, the compiler needs the flag -D_REENTRANT so that it # groks . cc also understands the flag -pthread, but # we don't use it because 1. gcc-2.95 doesn't understand -pthread, # 2. putting a flag into CPPFLAGS that has an effect on the linker # causes the AC_TRY_LINK test below to succeed unexpectedly, # leading to wrong values of LIBTHREAD and LTLIBTHREAD. CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; esac # Some systems optimize for single-threaded programs by default, and # need special flags to disable these optimizations. For example, the # definition of 'errno' in . case "$host_os" in aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;; solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; esac fi ]) dnl The guts of gl_THREADLIB. Needs to be expanded only once. AC_DEFUN([gl_THREADLIB_BODY], [ AC_REQUIRE([gl_THREADLIB_EARLY_BODY]) gl_threads_api=none LIBTHREAD= LTLIBTHREAD= LIBMULTITHREAD= LTLIBMULTITHREAD= if test "$gl_use_threads" != no; then dnl Check whether the compiler and linker support weak declarations. AC_CACHE_CHECK([whether imported symbols can be declared weak], [gl_cv_have_weak], [gl_cv_have_weak=no dnl First, test whether the compiler accepts it syntactically. AC_TRY_LINK([extern void xyzzy (); #pragma weak xyzzy], [xyzzy();], [gl_cv_have_weak=maybe]) if test $gl_cv_have_weak = maybe; then dnl Second, test whether it actually works. On Cygwin 1.7.2, with dnl gcc 4.3, symbols declared weak always evaluate to the address 0. AC_TRY_RUN([ #include #pragma weak fputs int main () { return (fputs == NULL); }], [gl_cv_have_weak=yes], [gl_cv_have_weak=no], [dnl When cross-compiling, assume that only ELF platforms support dnl weak symbols. AC_EGREP_CPP([Extensible Linking Format], [#ifdef __ELF__ Extensible Linking Format #endif ], [gl_cv_have_weak="guessing yes"], [gl_cv_have_weak="guessing no"]) ]) fi ]) if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that # it groks . It's added above, in gl_THREADLIB_EARLY_BODY. AC_CHECK_HEADER([pthread.h], [gl_have_pthread_h=yes], [gl_have_pthread_h=no]) if test "$gl_have_pthread_h" = yes; then # Other possible tests: # -lpthreads (FSU threads, PCthreads) # -lgthreads gl_have_pthread= # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist # in libc. IRIX 6.5 has the first one in both libc and libpthread, but # the second one only in libpthread, and lock.c needs it. AC_TRY_LINK([#include ], [pthread_mutex_lock((pthread_mutex_t*)0); pthread_mutexattr_init((pthread_mutexattr_t*)0);], [gl_have_pthread=yes]) # Test for libpthread by looking for pthread_kill. (Not pthread_self, # since it is defined as a macro on OSF/1.) if test -n "$gl_have_pthread"; then # The program links fine without libpthread. But it may actually # need to link with libpthread in order to create multiple threads. AC_CHECK_LIB([pthread], [pthread_kill], [LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread # On Solaris and HP-UX, most pthread functions exist also in libc. # Therefore pthread_in_use() needs to actually try to create a # thread: pthread_create from libc will fail, whereas # pthread_create will actually create a thread. case "$host_os" in solaris* | hpux*) AC_DEFINE([PTHREAD_IN_USE_DETECTION_HARD], [1], [Define if the pthread_in_use() detection is hard.]) esac ]) else # Some library is needed. Try libpthread and libc_r. AC_CHECK_LIB([pthread], [pthread_kill], [gl_have_pthread=yes LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread]) if test -z "$gl_have_pthread"; then # For FreeBSD 4. AC_CHECK_LIB([c_r], [pthread_kill], [gl_have_pthread=yes LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r]) fi fi if test -n "$gl_have_pthread"; then gl_threads_api=posix AC_DEFINE([USE_POSIX_THREADS], [1], [Define if the POSIX multithreading library can be used.]) if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then AC_DEFINE([USE_POSIX_THREADS_WEAK], [1], [Define if references to the POSIX multithreading library should be made weak.]) LIBTHREAD= LTLIBTHREAD= fi fi fi fi fi if test -z "$gl_have_pthread"; then if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then gl_have_solaristhread= gl_save_LIBS="$LIBS" LIBS="$LIBS -lthread" AC_TRY_LINK([#include #include ], [thr_self();], [gl_have_solaristhread=yes]) LIBS="$gl_save_LIBS" if test -n "$gl_have_solaristhread"; then gl_threads_api=solaris LIBTHREAD=-lthread LTLIBTHREAD=-lthread LIBMULTITHREAD="$LIBTHREAD" LTLIBMULTITHREAD="$LTLIBTHREAD" AC_DEFINE([USE_SOLARIS_THREADS], [1], [Define if the old Solaris multithreading library can be used.]) if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then AC_DEFINE([USE_SOLARIS_THREADS_WEAK], [1], [Define if references to the old Solaris multithreading library should be made weak.]) LIBTHREAD= LTLIBTHREAD= fi fi fi fi if test "$gl_use_threads" = pth; then gl_save_CPPFLAGS="$CPPFLAGS" AC_LIB_LINKFLAGS([pth]) gl_have_pth= gl_save_LIBS="$LIBS" LIBS="$LIBS -lpth" AC_TRY_LINK([#include ], [pth_self();], [gl_have_pth=yes]) LIBS="$gl_save_LIBS" if test -n "$gl_have_pth"; then gl_threads_api=pth LIBTHREAD="$LIBPTH" LTLIBTHREAD="$LTLIBPTH" LIBMULTITHREAD="$LIBTHREAD" LTLIBMULTITHREAD="$LTLIBTHREAD" AC_DEFINE([USE_PTH_THREADS], [1], [Define if the GNU Pth multithreading library can be used.]) if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then AC_DEFINE([USE_PTH_THREADS_WEAK], [1], [Define if references to the GNU Pth multithreading library should be made weak.]) LIBTHREAD= LTLIBTHREAD= fi fi else CPPFLAGS="$gl_save_CPPFLAGS" fi fi if test -z "$gl_have_pthread"; then if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then if { case "$host_os" in mingw*) true;; *) false;; esac }; then gl_threads_api=win32 AC_DEFINE([USE_WIN32_THREADS], [1], [Define if the Win32 multithreading API can be used.]) fi fi fi fi AC_MSG_CHECKING([for multithread API to use]) AC_MSG_RESULT([$gl_threads_api]) AC_SUBST([LIBTHREAD]) AC_SUBST([LTLIBTHREAD]) AC_SUBST([LIBMULTITHREAD]) AC_SUBST([LTLIBMULTITHREAD]) ]) AC_DEFUN([gl_THREADLIB], [ AC_REQUIRE([gl_THREADLIB_EARLY]) AC_REQUIRE([gl_THREADLIB_BODY]) ]) dnl gl_DISABLE_THREADS dnl ------------------ dnl Sets the gl_THREADLIB default so that threads are not used by default. dnl The user can still override it at installation time, by using the dnl configure option '--enable-threads'. AC_DEFUN([gl_DISABLE_THREADS], [ m4_divert_text([INIT_PREPARE], [gl_use_threads_default=no]) ]) dnl Survey of platforms: dnl dnl Platform Available Compiler Supports test-lock dnl flavours option weak result dnl --------------- --------- --------- -------- --------- dnl Linux 2.4/glibc posix -lpthread Y OK dnl dnl GNU Hurd/glibc posix dnl dnl FreeBSD 5.3 posix -lc_r Y dnl posix -lkse ? Y dnl posix -lpthread ? Y dnl posix -lthr Y dnl dnl FreeBSD 5.2 posix -lc_r Y dnl posix -lkse Y dnl posix -lthr Y dnl dnl FreeBSD 4.0,4.10 posix -lc_r Y OK dnl dnl NetBSD 1.6 -- dnl dnl OpenBSD 3.4 posix -lpthread Y OK dnl dnl MacOS X 10.[123] posix -lpthread Y OK dnl dnl Solaris 7,8,9 posix -lpthread Y Sol 7,8: 0.0; Sol 9: OK dnl solaris -lthread Y Sol 7,8: 0.0; Sol 9: OK dnl dnl HP-UX 11 posix -lpthread N (cc) OK dnl Y (gcc) dnl dnl IRIX 6.5 posix -lpthread Y 0.5 dnl dnl AIX 4.3,5.1 posix -lpthread N AIX 4: 0.5; AIX 5: OK dnl dnl OSF/1 4.0,5.1 posix -pthread (cc) N OK dnl -lpthread (gcc) Y dnl dnl Cygwin posix -lpthread Y OK dnl dnl Any of the above pth -lpth 0.0 dnl dnl Mingw win32 N OK dnl dnl BeOS 5 -- dnl dnl The test-lock result shows what happens if in test-lock.c EXPLICIT_YIELD is dnl turned off: dnl OK if all three tests terminate OK, dnl 0.5 if the first test terminates OK but the second one loops endlessly, dnl 0.0 if the first test already loops endlessly. # uintmax_t.m4 serial 12 dnl Copyright (C) 1997-2004, 2007-2010 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 From Paul Eggert. AC_PREREQ([2.13]) # Define uintmax_t to 'unsigned long' or 'unsigned long long' # if it is not already defined in or . AC_DEFUN([gl_AC_TYPE_UINTMAX_T], [ AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) AC_REQUIRE([gl_AC_HEADER_STDINT_H]) if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then AC_REQUIRE([AC_TYPE_UNSIGNED_LONG_LONG_INT]) test $ac_cv_type_unsigned_long_long_int = yes \ && ac_type='unsigned long long' \ || ac_type='unsigned long' AC_DEFINE_UNQUOTED([uintmax_t], [$ac_type], [Define to unsigned long or unsigned long long if and don't define.]) else AC_DEFINE([HAVE_UINTMAX_T], [1], [Define if you have the 'uintmax_t' type in or .]) fi ]) # visibility.m4 serial 3 (gettext-0.18) dnl Copyright (C) 2005, 2008-2010 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 From Bruno Haible. dnl Tests whether the compiler supports the command-line option dnl -fvisibility=hidden and the function and variable attributes dnl __attribute__((__visibility__("hidden"))) and dnl __attribute__((__visibility__("default"))). dnl Does *not* test for __visibility__("protected") - which has tricky dnl semantics (see the 'vismain' test in glibc) and does not exist e.g. on dnl MacOS X. dnl Does *not* test for __visibility__("internal") - which has processor dnl dependent semantics. dnl Does *not* test for #pragma GCC visibility push(hidden) - which is dnl "really only recommended for legacy code". dnl Set the variable CFLAG_VISIBILITY. dnl Defines and sets the variable HAVE_VISIBILITY. AC_DEFUN([gl_VISIBILITY], [ AC_REQUIRE([AC_PROG_CC]) CFLAG_VISIBILITY= HAVE_VISIBILITY=0 if test -n "$GCC"; then dnl First, check whether -Werror can be added to the command line, or dnl whether it leads to an error because of some other option that the dnl user has put into $CC $CFLAGS $CPPFLAGS. AC_MSG_CHECKING([whether the -Werror option is usable]) AC_CACHE_VAL([gl_cv_cc_vis_werror], [ gl_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Werror" AC_TRY_COMPILE([], [], [gl_cv_cc_vis_werror=yes], [gl_cv_cc_vis_werror=no]) CFLAGS="$gl_save_CFLAGS"]) AC_MSG_RESULT([$gl_cv_cc_vis_werror]) dnl Now check whether visibility declarations are supported. AC_MSG_CHECKING([for simple visibility declarations]) AC_CACHE_VAL([gl_cv_cc_visibility], [ gl_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -fvisibility=hidden" dnl We use the option -Werror and a function dummyfunc, because on some dnl platforms (Cygwin 1.7) the use of -fvisibility triggers a warning dnl "visibility attribute not supported in this configuration; ignored" dnl at the first function definition in every compilation unit, and we dnl don't want to use the option in this case. if test $gl_cv_cc_vis_werror = yes; then CFLAGS="$CFLAGS -Werror" fi AC_TRY_COMPILE( [extern __attribute__((__visibility__("hidden"))) int hiddenvar; extern __attribute__((__visibility__("default"))) int exportedvar; extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); extern __attribute__((__visibility__("default"))) int exportedfunc (void); void dummyfunc (void) {}], [], [gl_cv_cc_visibility=yes], [gl_cv_cc_visibility=no]) CFLAGS="$gl_save_CFLAGS"]) AC_MSG_RESULT([$gl_cv_cc_visibility]) if test $gl_cv_cc_visibility = yes; then CFLAG_VISIBILITY="-fvisibility=hidden" HAVE_VISIBILITY=1 fi fi AC_SUBST([CFLAG_VISIBILITY]) AC_SUBST([HAVE_VISIBILITY]) AC_DEFINE_UNQUOTED([HAVE_VISIBILITY], [$HAVE_VISIBILITY], [Define to 1 or 0, depending whether the compiler supports simple visibility declarations.]) ]) # wchar_t.m4 serial 3 (gettext-0.18) dnl Copyright (C) 2002-2003, 2008-2010 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 From Bruno Haible. dnl Test whether has the 'wchar_t' type. dnl Prerequisite: AC_PROG_CC AC_DEFUN([gt_TYPE_WCHAR_T], [ AC_CACHE_CHECK([for wchar_t], [gt_cv_c_wchar_t], [AC_TRY_COMPILE([#include wchar_t foo = (wchar_t)'\0';], , [gt_cv_c_wchar_t=yes], [gt_cv_c_wchar_t=no])]) if test $gt_cv_c_wchar_t = yes; then AC_DEFINE([HAVE_WCHAR_T], [1], [Define if you have the 'wchar_t' type.]) fi ]) # wint_t.m4 serial 4 (gettext-0.18) dnl Copyright (C) 2003, 2007-2010 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 From Bruno Haible. dnl Test whether has the 'wint_t' type. dnl Prerequisite: AC_PROG_CC AC_DEFUN([gt_TYPE_WINT_T], [ AC_CACHE_CHECK([for wint_t], [gt_cv_c_wint_t], [AC_TRY_COMPILE([ /* Tru64 with Desktop Toolkit C has a bug: must be included before . BSD/OS 4.0.1 has a bug: , and must be included before . */ #include #include #include #include wint_t foo = (wchar_t)'\0';], , [gt_cv_c_wint_t=yes], [gt_cv_c_wint_t=no])]) if test $gt_cv_c_wint_t = yes; then AC_DEFINE([HAVE_WINT_T], [1], [Define if you have the 'wint_t' type.]) fi ]) # xsize.m4 serial 4 dnl Copyright (C) 2003-2004, 2008-2010 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. AC_DEFUN([gl_XSIZE], [ dnl Prerequisites of lib/xsize.h. AC_REQUIRE([gl_SIZE_MAX]) AC_REQUIRE([AC_C_INLINE]) AC_CHECK_HEADERS([stdint.h]) ]) # 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"]) ]) # Copyright (C) 1996, 1997, 2000, 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. # serial 8 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) # 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 ]) # 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 gliv-1.9.7/configure0000755000076400007640000147316411465576131011677 0ustar gg#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.67 for gliv 1.9.7. # # Report bugs to . # # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 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 guichaz@gmail.com $0: about your system, including any error possibly output $0: before this message. Then install a modern shell, or $0: manually run the script under such a shell if you do $0: 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 STATUS 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=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&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, old GNU/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='gliv' PACKAGE_TARNAME='gliv' PACKAGE_VERSION='1.9.7' PACKAGE_STRING='gliv 1.9.7' PACKAGE_BUGREPORT='guichaz@gmail.com' PACKAGE_URL='' ac_unique_file="src/main.c" # 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" gt_needs= ac_header_list= gl_use_threads_default= ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS LIBOBJS POSUB LTLIBINTL LIBINTL INTLLIBS INTL_LIBTOOL_SUFFIX_PREFIX INTLOBJS GENCAT INSTOBJEXT DATADIRNAME CATOBJEXT USE_INCLUDED_LIBINTL BUILD_INCLUDED_LIBINTL LTLIBC WINDRES WOE32 WOE32DLL HAVE_WPRINTF HAVE_NEWLOCALE HAVE_SNPRINTF HAVE_ASPRINTF HAVE_POSIX_PRINTF INTL_DEFAULT_VERBOSITY INTL_MACOSX_LIBS GLIBC21 INTLBISON LTLIBICONV LIBICONV LTLIBMULTITHREAD LIBMULTITHREAD LTLIBTHREAD LIBTHREAD LIBPTH_PREFIX LTLIBPTH LIBPTH PRI_MACROS_BROKEN ALLOCA HAVE_VISIBILITY CFLAG_VISIBILITY GLIBC2 host_os host_vendor host_cpu host build_os build_vendor build_cpu build XGETTEXT_EXTRA_OPTIONS MSGMERGE XGETTEXT_015 XGETTEXT GMSGFMT_015 MSGFMT_015 GMSGFMT MSGFMT GETTEXT_MACRO_VERSION USE_NLS GTK_LIBS GTK_CFLAGS GTKGLEXT_LIBS GTKGLEXT_CFLAGS PKG_CONFIG_LIBDIR PKG_CONFIG_PATH PKG_CONFIG X_EXTRA_LIBS X_LIBS X_PRE_LIBS X_CFLAGS XMKMF NEED_REPLACEMENTS_FALSE NEED_REPLACEMENTS_TRUE GETOPT_LONG_FALSE GETOPT_LONG_TRUE GETDELIM_FALSE GETDELIM_TRUE RANLIB EGREP GREP CPP 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 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_largefile with_x enable_gtktest enable_nls enable_threads with_gnu_ld enable_rpath with_libpth_prefix with_libiconv_prefix with_included_gettext with_libintl_prefix ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CPP XMKMF PKG_CONFIG PKG_CONFIG_PATH PKG_CONFIG_LIBDIR GTKGLEXT_CFLAGS GTKGLEXT_LIBS' # 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= ;; *) 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 gliv 1.9.7 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/gliv] --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 X features: --x-includes=DIR X include files are in DIR --x-libraries=DIR X library files are in DIR System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of gliv 1.9.7:";; 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-largefile omit support for large files --disable-gtktest do not try to compile and run a test GTK+ program --disable-nls do not use Native Language Support --enable-threads={posix|solaris|pth|win32} specify multithreading API --disable-threads build without multithread safety --disable-rpath do not hardcode runtime library paths Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-x use the X Window System --with-gnu-ld assume the C compiler uses GNU ld default=no --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib --without-libpth-prefix don't search for libpth in includedir and libdir --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib --without-libiconv-prefix don't search for libiconv in includedir and libdir --with-included-gettext use the GNU gettext library included here --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib --without-libintl-prefix don't search for libintl in includedir and libdir 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 CPP C preprocessor XMKMF Path to xmkmf, Makefile generator for X Window System PKG_CONFIG path to pkg-config utility PKG_CONFIG_PATH directories to add to pkg-config's search path PKG_CONFIG_LIBDIR path overriding pkg-config's built-in search path GTKGLEXT_CFLAGS C compiler flags for GTKGLEXT, overriding pkg-config GTKGLEXT_LIBS linker flags for GTKGLEXT, overriding pkg-config 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 . _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 gliv configure 1.9.7 generated by GNU Autoconf 2.67 Copyright (C) 2010 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_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; } > conftest.i && { 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 eval "test \"\${$3+set}\"" = set; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval "test \"\${$3+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.i 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;} ( $as_echo "## -------------------------------- ## ## Report this to guichaz@gmail.com ## ## -------------------------------- ##" ) | 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 eval "test \"\${$3+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_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_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 eval "test \"\${$3+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_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 eval "test \"\${$3+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_compute_int LINENO EXPR VAR INCLUDES # -------------------------------------------- # Tries to find the compile-time value of EXPR in a program that includes # INCLUDES, setting VAR accordingly. Returns whether the value could be # computed ac_fn_c_compute_int () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) >= 0)]; test_array [0] = 0 ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_lo=0 ac_mid=0 while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_hi=$ac_mid; break else as_fn_arith $ac_mid + 1 && ac_lo=$as_val if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= break fi as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) < 0)]; test_array [0] = 0 ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_hi=-1 ac_mid=-1 while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) >= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_lo=$ac_mid; break else as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= break fi as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else ac_lo= ac_hi= fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_hi=$ac_mid else as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done case $ac_lo in #(( ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; '') ac_retval=1 ;; esac else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 static long int longval () { return $2; } static unsigned long int ulongval () { return $2; } #include #include int main () { FILE *f = fopen ("conftest.val", "w"); if (! f) return 1; if (($2) < 0) { long int i = longval (); if (i != ($2)) return 1; fprintf (f, "%ld", i); } else { unsigned long int i = ulongval (); if (i != ($2)) return 1; fprintf (f, "%lu", i); } /* Do not output a trailing newline, as this causes \r\n confusion on some platforms. */ return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : echo >>conftest.val; read $3 &5 $as_echo_n "checking for $2... " >&6; } if eval "test \"\${$3+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 gliv $as_me 1.9.7, which was generated by GNU Autoconf 2.67. 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 $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" 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 $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" 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 $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" 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 $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" 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 # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac 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" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5 ; } 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 gt_needs="$gt_needs " as_fn_append ac_header_list " stdlib.h" as_fn_append ac_header_list " unistd.h" as_fn_append ac_header_list " sys/param.h" # 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 if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi 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 eval "test \"\${ac_cv_prog_make_${ac_make}_set+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='gliv' VERSION='1.9.7' 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 -' ac_config_headers="$ac_config_headers config.h" 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 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_error 77 "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 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 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.i 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.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i 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.i 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.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i 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 " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" if test "x$ac_cv_header_minix_config_h" = x""yes; then : MINIX=yes else MINIX= fi if test "$MINIX" = yes; then $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h $as_echo "#define _MINIX 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ # define __EXTENSIONS__ 1 $ac_includes_default int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_safe_to_define___extensions__=yes else ac_cv_safe_to_define___extensions__=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } test $ac_cv_safe_to_define___extensions__ = yes && $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h $as_echo "#define _ALL_SOURCE 1" >>confdefs.h $as_echo "#define _GNU_SOURCE 1" >>confdefs.h $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h # We check this before AC_PROG_CC fills blank CFLAGS with "-g -O2". if test "x$CFLAGS" = "x"; then DEFAULT_CFLAGS=yes else DEFAULT_CFLAGS=no fi # 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 { $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 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 -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib" $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 RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 $as_echo "$RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; 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_RANLIB+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_RANLIB="ranlib" $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_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 $as_echo "$ac_ct_RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" 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 RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" fi # Default CFLAGS. if test "x$GCC" = "xyes" && test "$DEFAULT_CFLAGS" = "yes"; then CFLAGS="-Wall -O2 -fomit-frame-pointer -ffast-math" fi CFLAGS="$CFLAGS -I${srcdir}/../lib" # Checks for LFS flags, we may not handle big files, but it doesn't hurt. # Check whether --enable-largefile was given. if test "${enable_largefile+set}" = set; then : enableval=$enable_largefile; fi if test "$enable_largefile" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 $as_echo_n "checking for special C compiler options needed for large files... " >&6; } if test "${ac_cv_sys_largefile_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_cv_sys_largefile_CC=no if test "$GCC" != yes; then ac_save_CC=$CC while :; do # IRIX 6.2 and later do not support large files by default, # so use the C compiler's -n32 option if that helps. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include /* Check that off_t can represent 2**63 - 1 correctly. We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : break fi rm -f core conftest.err conftest.$ac_objext CC="$CC -n32" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_sys_largefile_CC=' -n32'; break fi rm -f core conftest.err conftest.$ac_objext break done CC=$ac_save_CC rm -f conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 $as_echo "$ac_cv_sys_largefile_CC" >&6; } if test "$ac_cv_sys_largefile_CC" != no; then CC=$CC$ac_cv_sys_largefile_CC fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } if test "${ac_cv_sys_file_offset_bits+set}" = set; then : $as_echo_n "(cached) " >&6 else while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include /* Check that off_t can represent 2**63 - 1 correctly. We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_sys_file_offset_bits=no; break fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define _FILE_OFFSET_BITS 64 #include /* Check that off_t can represent 2**63 - 1 correctly. We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_sys_file_offset_bits=64; break fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_sys_file_offset_bits=unknown break done fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 $as_echo "$ac_cv_sys_file_offset_bits" >&6; } case $ac_cv_sys_file_offset_bits in #( no | unknown) ;; *) cat >>confdefs.h <<_ACEOF #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits _ACEOF ;; esac rm -rf conftest* if test $ac_cv_sys_file_offset_bits = unknown; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } if test "${ac_cv_sys_large_files+set}" = set; then : $as_echo_n "(cached) " >&6 else while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include /* Check that off_t can represent 2**63 - 1 correctly. We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_sys_large_files=no; break fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define _LARGE_FILES 1 #include /* Check that off_t can represent 2**63 - 1 correctly. We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_sys_large_files=1; break fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_sys_large_files=unknown break done fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 $as_echo "$ac_cv_sys_large_files" >&6; } case $ac_cv_sys_large_files in #( no | unknown) ;; *) cat >>confdefs.h <<_ACEOF #define _LARGE_FILES $ac_cv_sys_large_files _ACEOF ;; esac rm -rf conftest* fi fi OLD_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -w" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing atan2" >&5 $as_echo_n "checking for library containing atan2... " >&6; } if test "${ac_cv_search_atan2+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* 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 atan2 (); int main () { return atan2 (); ; return 0; } _ACEOF for ac_lib in '' m mx; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_atan2=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if test "${ac_cv_search_atan2+set}" = set; then : break fi done if test "${ac_cv_search_atan2+set}" = set; then : else ac_cv_search_atan2=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_atan2" >&5 $as_echo "$ac_cv_search_atan2" >&6; } ac_res=$ac_cv_search_atan2 if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" $as_echo "#define HAVE_ATAN2 1" >>confdefs.h fi CFLAGS="$OLD_CFLAGS" # Checks for hypot (SVID 3, BSD 4.3). # The replacement is #defined in the source. OLD_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -w" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hypot" >&5 $as_echo_n "checking for library containing hypot... " >&6; } if test "${ac_cv_search_hypot+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* 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 hypot (); int main () { return hypot (); ; return 0; } _ACEOF for ac_lib in '' m mx; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_hypot=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if test "${ac_cv_search_hypot+set}" = set; then : break fi done if test "${ac_cv_search_hypot+set}" = set; then : else ac_cv_search_hypot=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hypot" >&5 $as_echo "$ac_cv_search_hypot" >&6; } ac_res=$ac_cv_search_hypot if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" $as_echo "#define HAVE_HYPOT 1" >>confdefs.h fi CFLAGS="$OLD_CFLAGS" # Checks for math functions using floats. # Using floats instead of doubles makes gcc use SSE with -msse # The replacement are #defined in math_floats.h. OLD_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -w" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqrtf" >&5 $as_echo_n "checking for library containing sqrtf... " >&6; } if test "${ac_cv_search_sqrtf+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* 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 sqrtf (); int main () { return sqrtf (); ; return 0; } _ACEOF for ac_lib in '' m mx; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_sqrtf=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if test "${ac_cv_search_sqrtf+set}" = set; then : break fi done if test "${ac_cv_search_sqrtf+set}" = set; then : else ac_cv_search_sqrtf=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrtf" >&5 $as_echo "$ac_cv_search_sqrtf" >&6; } ac_res=$ac_cv_search_sqrtf if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" $as_echo "#define HAVE_SQRTF 1" >>confdefs.h fi CFLAGS="$OLD_CFLAGS" OLD_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -w" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hypotf" >&5 $as_echo_n "checking for library containing hypotf... " >&6; } if test "${ac_cv_search_hypotf+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* 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 hypotf (); int main () { return hypotf (); ; return 0; } _ACEOF for ac_lib in '' m mx; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_hypotf=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if test "${ac_cv_search_hypotf+set}" = set; then : break fi done if test "${ac_cv_search_hypotf+set}" = set; then : else ac_cv_search_hypotf=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hypotf" >&5 $as_echo "$ac_cv_search_hypotf" >&6; } ac_res=$ac_cv_search_hypotf if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" $as_echo "#define HAVE_HYPOTF 1" >>confdefs.h fi CFLAGS="$OLD_CFLAGS" OLD_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -w" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing atan2f" >&5 $as_echo_n "checking for library containing atan2f... " >&6; } if test "${ac_cv_search_atan2f+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* 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 atan2f (); int main () { return atan2f (); ; return 0; } _ACEOF for ac_lib in '' m mx; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_atan2f=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if test "${ac_cv_search_atan2f+set}" = set; then : break fi done if test "${ac_cv_search_atan2f+set}" = set; then : else ac_cv_search_atan2f=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_atan2f" >&5 $as_echo "$ac_cv_search_atan2f" >&6; } ac_res=$ac_cv_search_atan2f if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" $as_echo "#define HAVE_ATAN2F 1" >>confdefs.h fi CFLAGS="$OLD_CFLAGS" OLD_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -w" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing powf" >&5 $as_echo_n "checking for library containing powf... " >&6; } if test "${ac_cv_search_powf+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* 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 powf (); int main () { return powf (); ; return 0; } _ACEOF for ac_lib in '' m mx; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_powf=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if test "${ac_cv_search_powf+set}" = set; then : break fi done if test "${ac_cv_search_powf+set}" = set; then : else ac_cv_search_powf=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_powf" >&5 $as_echo "$ac_cv_search_powf" >&6; } ac_res=$ac_cv_search_powf if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" $as_echo "#define HAVE_POWF 1" >>confdefs.h fi CFLAGS="$OLD_CFLAGS" OLD_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -w" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ceilf" >&5 $as_echo_n "checking for library containing ceilf... " >&6; } if test "${ac_cv_search_ceilf+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* 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 ceilf (); int main () { return ceilf (); ; return 0; } _ACEOF for ac_lib in '' m mx; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_ceilf=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if test "${ac_cv_search_ceilf+set}" = set; then : break fi done if test "${ac_cv_search_ceilf+set}" = set; then : else ac_cv_search_ceilf=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ceilf" >&5 $as_echo "$ac_cv_search_ceilf" >&6; } ac_res=$ac_cv_search_ceilf if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" $as_echo "#define HAVE_CEILF 1" >>confdefs.h fi CFLAGS="$OLD_CFLAGS" OLD_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -w" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5 $as_echo_n "checking for library containing cosf... " >&6; } if test "${ac_cv_search_cosf+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* 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 cosf (); int main () { return cosf (); ; return 0; } _ACEOF for ac_lib in '' m mx; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_cosf=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if test "${ac_cv_search_cosf+set}" = set; then : break fi done if test "${ac_cv_search_cosf+set}" = set; then : else ac_cv_search_cosf=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5 $as_echo "$ac_cv_search_cosf" >&6; } ac_res=$ac_cv_search_cosf if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" $as_echo "#define HAVE_COSF 1" >>confdefs.h fi CFLAGS="$OLD_CFLAGS" OLD_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -w" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sinf" >&5 $as_echo_n "checking for library containing sinf... " >&6; } if test "${ac_cv_search_sinf+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* 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 sinf (); int main () { return sinf (); ; return 0; } _ACEOF for ac_lib in '' m mx; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_sinf=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if test "${ac_cv_search_sinf+set}" = set; then : break fi done if test "${ac_cv_search_sinf+set}" = set; then : else ac_cv_search_sinf=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sinf" >&5 $as_echo "$ac_cv_search_sinf" >&6; } ac_res=$ac_cv_search_sinf if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" $as_echo "#define HAVE_SINF 1" >>confdefs.h fi CFLAGS="$OLD_CFLAGS" OLD_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -w" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acosf" >&5 $as_echo_n "checking for library containing acosf... " >&6; } if test "${ac_cv_search_acosf+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* 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 acosf (); int main () { return acosf (); ; return 0; } _ACEOF for ac_lib in '' m mx; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_acosf=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if test "${ac_cv_search_acosf+set}" = set; then : break fi done if test "${ac_cv_search_acosf+set}" = set; then : else ac_cv_search_acosf=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acosf" >&5 $as_echo "$ac_cv_search_acosf" >&6; } ac_res=$ac_cv_search_acosf if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" $as_echo "#define HAVE_ACOSF 1" >>confdefs.h fi CFLAGS="$OLD_CFLAGS" OLD_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -w" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmodf" >&5 $as_echo_n "checking for library containing fmodf... " >&6; } if test "${ac_cv_search_fmodf+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* 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 fmodf (); int main () { return fmodf (); ; return 0; } _ACEOF for ac_lib in '' m mx; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fmodf=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if test "${ac_cv_search_fmodf+set}" = set; then : break fi done if test "${ac_cv_search_fmodf+set}" = set; then : else ac_cv_search_fmodf=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmodf" >&5 $as_echo "$ac_cv_search_fmodf" >&6; } ac_res=$ac_cv_search_fmodf if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" $as_echo "#define HAVE_FMODF 1" >>confdefs.h fi CFLAGS="$OLD_CFLAGS" OLD_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -w" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabsf" >&5 $as_echo_n "checking for library containing fabsf... " >&6; } if test "${ac_cv_search_fabsf+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* 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 fabsf (); int main () { return fabsf (); ; return 0; } _ACEOF for ac_lib in '' m mx; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_fabsf=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if test "${ac_cv_search_fabsf+set}" = set; then : break fi done if test "${ac_cv_search_fabsf+set}" = set; then : else ac_cv_search_fabsf=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabsf" >&5 $as_echo "$ac_cv_search_fabsf" >&6; } ac_res=$ac_cv_search_fabsf if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" $as_echo "#define HAVE_FABSF 1" >>confdefs.h fi CFLAGS="$OLD_CFLAGS" OLD_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -w" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log10f" >&5 $as_echo_n "checking for library containing log10f... " >&6; } if test "${ac_cv_search_log10f+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* 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 log10f (); int main () { return log10f (); ; return 0; } _ACEOF for ac_lib in '' m mx; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_log10f=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if test "${ac_cv_search_log10f+set}" = set; then : break fi done if test "${ac_cv_search_log10f+set}" = set; then : else ac_cv_search_log10f=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log10f" >&5 $as_echo "$ac_cv_search_log10f" >&6; } ac_res=$ac_cv_search_log10f if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" $as_echo "#define HAVE_LOG10F 1" >>confdefs.h fi CFLAGS="$OLD_CFLAGS" # If we don't have ftello, we'll use ftell. for ac_func in ftello do : ac_fn_c_check_func "$LINENO" "ftello" "ac_cv_func_ftello" if test "x$ac_cv_func_ftello" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_FTELLO 1 _ACEOF fi done # If we don't have fseeko, we'll use fseek. for ac_func in fseeko do : ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko" if test "x$ac_cv_func_fseeko" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_FSEEKO 1 _ACEOF fi done # Checks for getdelim, this is a GNU extension. CFLAGS="$CFLAGS -D_GNU_SOURCE" for ac_func in getdelim do : ac_fn_c_check_func "$LINENO" "getdelim" "ac_cv_func_getdelim" if test "x$ac_cv_func_getdelim" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_GETDELIM 1 _ACEOF have_getdelim="yes" else have_getdelim="no" fi done if test "$have_getdelim" = "yes"; then GETDELIM_TRUE= GETDELIM_FALSE='#' else GETDELIM_TRUE='#' GETDELIM_FALSE= fi # Checks for getopt_long, another GNU extension. for ac_func in getopt_long do : ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long" if test "x$ac_cv_func_getopt_long" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_GETOPT_LONG 1 _ACEOF have_getopt_long="yes" else have_getopt_long="no" fi done if test "$have_getopt_long" = "yes"; then GETOPT_LONG_TRUE= GETOPT_LONG_FALSE='#' else GETOPT_LONG_TRUE='#' GETOPT_LONG_FALSE= fi if test "$have_getdelim" = "no" || test "$have_getopt_long" = "no"; then if true; then NEED_REPLACEMENTS_TRUE= NEED_REPLACEMENTS_FALSE='#' else NEED_REPLACEMENTS_TRUE='#' NEED_REPLACEMENTS_FALSE= fi else if false; then NEED_REPLACEMENTS_TRUE= NEED_REPLACEMENTS_FALSE='#' else NEED_REPLACEMENTS_TRUE='#' NEED_REPLACEMENTS_FALSE= fi fi # Checks for flavours of varargs macros (borrowed from glib-2) # ISO C99 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 varargs macros" >&5 $as_echo_n "checking for ISO C99 varargs macros... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { int a(int p1, int p2, int p3); #define call_a(...) a(1,__VA_ARGS__) call_a(2,3); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : have_iso_c_varargs=yes else have_iso_c_varargs=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_iso_c_varargs" >&5 $as_echo "$have_iso_c_varargs" >&6; } if test $have_iso_c_varargs = yes; then iso_c_varargs=1 else iso_c_varargs=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_ISO_C_VARARGS $iso_c_varargs _ACEOF if test $have_iso_c_varargs = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No ISO C99 variadic macros" >&5 $as_echo "$as_me: WARNING: No ISO C99 variadic macros" >&2;} fi # 32bit or 64bit ? # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 $as_echo_n "checking size of unsigned long... " >&6; } if test "${ac_cv_sizeof_unsigned_long+set}" = set; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : else if test "$ac_cv_type_unsigned_long" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (unsigned long) See \`config.log' for more details" "$LINENO" 5 ; } else ac_cv_sizeof_unsigned_long=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long _ACEOF # Checks for X. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 $as_echo_n "checking for X... " >&6; } # Check whether --with-x was given. if test "${with_x+set}" = set; then : withval=$with_x; fi # $have_x is `yes', `no', `disabled', or empty when we do not yet know. if test "x$with_x" = xno; then # The user explicitly disabled X. have_x=disabled else case $x_includes,$x_libraries in #( *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #( *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : $as_echo_n "(cached) " >&6 else # One or both of the vars are not set, and there is no cached value. ac_x_includes=no ac_x_libraries=no rm -f -r conftest.dir if mkdir conftest.dir; then cd conftest.dir cat >Imakefile <<'_ACEOF' incroot: @echo incroot='${INCROOT}' usrlibdir: @echo usrlibdir='${USRLIBDIR}' libdir: @echo libdir='${LIBDIR}' _ACEOF if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. for ac_var in incroot usrlibdir libdir; do eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" done # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. for ac_extension in a so sl dylib la dll; do if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && test -f "$ac_im_libdir/libX11.$ac_extension"; then ac_im_usrlibdir=$ac_im_libdir; break fi done # Screen out bogus values from the imake configuration. They are # bogus both because they are the default anyway, and because # using them would break gcc on systems where it needs fixed includes. case $ac_im_incroot in /usr/include) ac_x_includes= ;; *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; esac case $ac_im_usrlibdir in /usr/lib | /usr/lib64 | /lib | /lib64) ;; *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; esac fi cd .. rm -f -r conftest.dir fi # Standard set of common directories for X headers. # Check X11 before X11Rn because it is often a symlink to the current release. ac_x_header_dirs=' /usr/X11/include /usr/X11R7/include /usr/X11R6/include /usr/X11R5/include /usr/X11R4/include /usr/include/X11 /usr/include/X11R7 /usr/include/X11R6 /usr/include/X11R5 /usr/include/X11R4 /usr/local/X11/include /usr/local/X11R7/include /usr/local/X11R6/include /usr/local/X11R5/include /usr/local/X11R4/include /usr/local/include/X11 /usr/local/include/X11R7 /usr/local/include/X11R6 /usr/local/include/X11R5 /usr/local/include/X11R4 /usr/X386/include /usr/x386/include /usr/XFree86/include/X11 /usr/include /usr/local/include /usr/unsupported/include /usr/athena/include /usr/local/x11r5/include /usr/lpp/Xamples/include /usr/openwin/include /usr/openwin/share/include' if test "$ac_x_includes" = no; then # Guess where to find include files, by looking for Xlib.h. # First, try using that file with no special directory specified. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # We can compile using X headers with no special include directory. ac_x_includes= else for ac_dir in $ac_x_header_dirs; do if test -r "$ac_dir/X11/Xlib.h"; then ac_x_includes=$ac_dir break fi done fi rm -f conftest.err conftest.i conftest.$ac_ext fi # $ac_x_includes = no if test "$ac_x_libraries" = no; then # Check for the libraries. # See if we find them without any special options. # Don't add to $LIBS permanently. ac_save_LIBS=$LIBS LIBS="-lX11 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { XrmInitialize () ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : LIBS=$ac_save_LIBS # We can link X programs with no special library path. ac_x_libraries= else LIBS=$ac_save_LIBS for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` do # Don't even attempt the hair of trying to link an X program! for ac_extension in a so sl dylib la dll; do if test -r "$ac_dir/libX11.$ac_extension"; then ac_x_libraries=$ac_dir break 2 fi done done fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi # $ac_x_libraries = no case $ac_x_includes,$ac_x_libraries in #( no,* | *,no | *\'*) # Didn't find X, or a directory has "'" in its name. ac_cv_have_x="have_x=no";; #( *) # Record where we found X for the cache. ac_cv_have_x="have_x=yes\ ac_x_includes='$ac_x_includes'\ ac_x_libraries='$ac_x_libraries'" esac fi ;; #( *) have_x=yes;; esac eval "$ac_cv_have_x" fi # $with_x != no if test "$have_x" != yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 $as_echo "$have_x" >&6; } no_x=yes else # If each of the values was on the command line, it overrides each guess. test "x$x_includes" = xNONE && x_includes=$ac_x_includes test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries # Update the cache value to reflect the command line values. ac_cv_have_x="have_x=yes\ ac_x_includes='$x_includes'\ ac_x_libraries='$x_libraries'" { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } fi if test "$no_x" = yes; then # Not all programs may use this symbol, but it does not hurt to define it. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= else if test -n "$x_includes"; then X_CFLAGS="$X_CFLAGS -I$x_includes" fi # It would also be nice to do this for all -L options, not just this one. if test -n "$x_libraries"; then X_LIBS="$X_LIBS -L$x_libraries" # For Solaris; some versions of Sun CC require a space after -R and # others require no space. Words are not sufficient . . . . { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 $as_echo_n "checking whether -R must be followed by a space... " >&6; } ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" ac_xsave_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } X_LIBS="$X_LIBS -R$x_libraries" else LIBS="$ac_xsave_LIBS -R $x_libraries" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } X_LIBS="$X_LIBS -R $x_libraries" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 $as_echo "neither works" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext ac_c_werror_flag=$ac_xsave_c_werror_flag LIBS=$ac_xsave_LIBS fi # Check for system-dependent libraries X programs must link with. # Do this before checking for the system-independent R6 libraries # (-lICE), since we may need -lsocket or whatever for X linking. if test "$ISC" = yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" else # Martyn Johnson says this is needed for Ultrix, if the X # libraries were built with DECnet support. And Karl Berry says # the Alpha needs dnet_stub (dnet does not exist). ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* 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 XOpenDisplay (); int main () { return XOpenDisplay (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldnet $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* 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 dnet_ntoa (); int main () { return dnet_ntoa (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dnet_dnet_ntoa=yes else ac_cv_lib_dnet_dnet_ntoa=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" fi if test $ac_cv_lib_dnet_dnet_ntoa = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldnet_stub $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* 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 dnet_ntoa (); int main () { return dnet_ntoa (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dnet_stub_dnet_ntoa=yes else ac_cv_lib_dnet_stub_dnet_ntoa=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" fi fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$ac_xsave_LIBS" # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, # to get the SysV transport functions. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) # needs -lnsl. # The nsl library prevents programs from opening the X display # on Irix 5.2, according to T.E. Dickey. # The functions gethostbyname, getservbyname, and inet_addr are # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" if test "x$ac_cv_func_gethostbyname" = x""yes; then : fi if test $ac_cv_func_gethostbyname = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lnsl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* 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 gethostbyname (); int main () { return gethostbyname (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_nsl_gethostbyname=yes else ac_cv_lib_nsl_gethostbyname=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" fi if test $ac_cv_lib_nsl_gethostbyname = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbsd $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* 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 gethostbyname (); int main () { return gethostbyname (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bsd_gethostbyname=yes else ac_cv_lib_bsd_gethostbyname=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" fi fi fi # lieder@skyler.mavd.honeywell.com says without -lsocket, # socket/setsockopt and other routines are undefined under SCO ODT # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary # on later versions), says Simon Leinen: it contains gethostby* # variants that don't use the name server (or something). -lsocket # must be given before -lnsl if both are needed. We assume that # if connect needs -lnsl, so does gethostbyname. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" if test "x$ac_cv_func_connect" = x""yes; then : fi if test $ac_cv_func_connect = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 $as_echo_n "checking for connect in -lsocket... " >&6; } if test "${ac_cv_lib_socket_connect+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $X_EXTRA_LIBS $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* 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 connect (); int main () { return connect (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_socket_connect=yes else ac_cv_lib_socket_connect=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 $as_echo "$ac_cv_lib_socket_connect" >&6; } if test "x$ac_cv_lib_socket_connect" = x""yes; then : X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" fi fi # Guillermo Gomez says -lposix is necessary on A/UX. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" if test "x$ac_cv_func_remove" = x""yes; then : fi if test $ac_cv_func_remove = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 $as_echo_n "checking for remove in -lposix... " >&6; } if test "${ac_cv_lib_posix_remove+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lposix $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* 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 remove (); int main () { return remove (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_posix_remove=yes else ac_cv_lib_posix_remove=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 $as_echo "$ac_cv_lib_posix_remove" >&6; } if test "x$ac_cv_lib_posix_remove" = x""yes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" fi fi # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" if test "x$ac_cv_func_shmat" = x""yes; then : fi if test $ac_cv_func_shmat = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 $as_echo_n "checking for shmat in -lipc... " >&6; } if test "${ac_cv_lib_ipc_shmat+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lipc $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* 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 shmat (); int main () { return shmat (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_ipc_shmat=yes else ac_cv_lib_ipc_shmat=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } if test "x$ac_cv_lib_ipc_shmat" = x""yes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" fi fi fi # Check for libraries that X11R6 Xt/Xaw programs need. ac_save_LDFLAGS=$LDFLAGS test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to # check for ICE first), but we must link in the order -lSM -lICE or # we get undefined symbols. So assume we have SM if we have ICE. # These have to be linked with before -lX11, unlike the other # libraries we check for below, so use a different variable. # John Interrante, Karl Berry { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lICE $X_EXTRA_LIBS $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* 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 IceConnectionNumber (); int main () { return IceConnectionNumber (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_ICE_IceConnectionNumber=yes else ac_cv_lib_ICE_IceConnectionNumber=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then : X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" fi LDFLAGS=$ac_save_LDFLAGS fi CFLAGS="$X_CFLAGS $CFLAGS" LDFLAGS="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS $LDFLAGS" # Checks for GtkGLExt. 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.9.0 { $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 pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKGLEXT" >&5 $as_echo_n "checking for GTKGLEXT... " >&6; } if test -n "$GTKGLEXT_CFLAGS"; then pkg_cv_GTKGLEXT_CFLAGS="$GTKGLEXT_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtkglext-1.0 >= 0.7.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "gtkglext-1.0 >= 0.7.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GTKGLEXT_CFLAGS=`$PKG_CONFIG --cflags "gtkglext-1.0 >= 0.7.0" 2>/dev/null` else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$GTKGLEXT_LIBS"; then pkg_cv_GTKGLEXT_LIBS="$GTKGLEXT_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtkglext-1.0 >= 0.7.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "gtkglext-1.0 >= 0.7.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GTKGLEXT_LIBS=`$PKG_CONFIG --libs "gtkglext-1.0 >= 0.7.0" 2>/dev/null` else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } 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 GTKGLEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtkglext-1.0 >= 0.7.0" 2>&1` else GTKGLEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtkglext-1.0 >= 0.7.0" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$GTKGLEXT_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (gtkglext-1.0 >= 0.7.0) were not met: $GTKGLEXT_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables GTKGLEXT_CFLAGS and GTKGLEXT_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "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. Alternatively, you may set the environment variables GTKGLEXT_CFLAGS and GTKGLEXT_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5 ; } else GTKGLEXT_CFLAGS=$pkg_cv_GTKGLEXT_CFLAGS GTKGLEXT_LIBS=$pkg_cv_GTKGLEXT_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi CFLAGS="$GTKGLEXT_CFLAGS $CFLAGS" LDFLAGS="$GTKGLEXT_LIBS $LDFLAGS" GTKGL_VERSION="$($PKG_CONFIG --modversion gtkglext-1.0)" # Checks for OpenGL. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include "GL/gl.h" int main () { glBegin(GL_QUADS); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ogl="yes" else ogl="no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test "x$ogl" = "xno"; then { $as_echo "$as_me:${as_lineno-$LINENO}: maybe libGL requires libpthread..." >&5 $as_echo "$as_me: maybe libGL requires libpthread..." >&6;} OLD_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -lpthread" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include "GL/gl.h" int main () { glBegin(GL_QUADS); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : else as_fn_error $? "cannot use -lGL" "$LINENO" 5 fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi # Checks for gtk. # 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 . gthread 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.6.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; } CFLAGS="$GTK_CFLAGS $CFLAGS" LDFLAGS="$GTK_LIBS $LDFLAGS" GTK_VERSION="$($PKG_CONFIG --modversion gtk+-2.0)" 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="" exit 1 fi rm -f conf.gtktest # I18n. ALL_LINGUAS=$(echo po/*.po | sed -e 's|\.po||g' -e 's|po/||g') { $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; } GETTEXT_MACRO_VERSION=0.18 # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # 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. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&5 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done done IFS="$ac_save_IFS" test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" ;; esac fi MSGFMT="$ac_cv_path_MSGFMT" if test "$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 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; *) MSGFMT_015=$MSGFMT ;; esac case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; *) GMSGFMT_015=$GMSGFMT ;; esac # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # 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. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&5 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done done IFS="$ac_save_IFS" test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" ;; esac fi XGETTEXT="$ac_cv_path_XGETTEXT" if test "$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 rm -f messages.po case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; *) XGETTEXT_015=$XGETTEXT ;; esac # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # 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. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&5 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done done IFS="$ac_save_IFS" test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" ;; esac fi MSGMERGE="$ac_cv_path_MSGMERGE" if test "$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 test -n "$localedir" || localedir='${datadir}/locale' test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= ac_config_commands="$ac_config_commands po-directories" # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 $as_echo_n "checking build system type... " >&6; } if test "${ac_cv_build+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` test "x$ac_build_alias" = x && as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 $as_echo "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' set x $ac_cv_build shift build_cpu=$1 build_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: build_os=$* IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 $as_echo_n "checking host system type... " >&6; } if test "${ac_cv_host+set}" = set; then : $as_echo_n "(cached) " >&6 else if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 $as_echo "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' set x $ac_cv_host shift host_cpu=$1 host_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: host_os=$* IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; } if test "${ac_cv_gnu_library_2+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef __GNU_LIBRARY__ #if (__GLIBC__ >= 2) Lucky GNU user #endif #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then : ac_cv_gnu_library_2=yes else ac_cv_gnu_library_2=no fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5 $as_echo "$ac_cv_gnu_library_2" >&6; } GLIBC2="$ac_cv_gnu_library_2" CFLAG_VISIBILITY= HAVE_VISIBILITY=0 if test -n "$GCC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 $as_echo_n "checking whether the -Werror option is usable... " >&6; } if test "${gl_cv_cc_vis_werror+set}" = set; then : $as_echo_n "(cached) " >&6 else gl_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Werror" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : gl_cv_cc_vis_werror=yes else gl_cv_cc_vis_werror=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS="$gl_save_CFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 $as_echo "$gl_cv_cc_vis_werror" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 $as_echo_n "checking for simple visibility declarations... " >&6; } if test "${gl_cv_cc_visibility+set}" = set; then : $as_echo_n "(cached) " >&6 else gl_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -fvisibility=hidden" if test $gl_cv_cc_vis_werror = yes; then CFLAGS="$CFLAGS -Werror" fi cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ extern __attribute__((__visibility__("hidden"))) int hiddenvar; extern __attribute__((__visibility__("default"))) int exportedvar; extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); extern __attribute__((__visibility__("default"))) int exportedfunc (void); void dummyfunc (void) {} int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : gl_cv_cc_visibility=yes else gl_cv_cc_visibility=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS="$gl_save_CFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 $as_echo "$gl_cv_cc_visibility" >&6; } if test $gl_cv_cc_visibility = yes; then CFLAG_VISIBILITY="-fvisibility=hidden" HAVE_VISIBILITY=1 fi fi cat >>confdefs.h <<_ACEOF #define HAVE_VISIBILITY $HAVE_VISIBILITY _ACEOF { $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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 $as_echo_n "checking for stdint.h... " >&6; } if test "${gl_cv_header_stdint_h+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { uintmax_t i = (uintmax_t) -1; return !i; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : gl_cv_header_stdint_h=yes else gl_cv_header_stdint_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5 $as_echo "$gl_cv_header_stdint_h" >&6; } if test $gl_cv_header_stdint_h = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_STDINT_H_WITH_UINTMAX 1 _ACEOF fi # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works # for constant arguments. Useless! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 $as_echo_n "checking for working alloca.h... " >&6; } if test "${ac_cv_working_alloca_h+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { char *p = (char *) alloca (2 * sizeof (int)); if (p) return 0; ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_working_alloca_h=yes else ac_cv_working_alloca_h=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 $as_echo "$ac_cv_working_alloca_h" >&6; } if test $ac_cv_working_alloca_h = yes; then $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 $as_echo_n "checking for alloca... " >&6; } if test "${ac_cv_func_alloca_works+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __GNUC__ # define alloca __builtin_alloca #else # ifdef _MSC_VER # include # define alloca _alloca # else # ifdef HAVE_ALLOCA_H # include # else # ifdef _AIX #pragma alloca # else # ifndef alloca /* predefined by HP cc +Olibcalls */ char *alloca (); # endif # endif # endif # endif #endif int main () { char *p = (char *) alloca (1); if (p) return 0; ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_func_alloca_works=yes else ac_cv_func_alloca_works=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 $as_echo "$ac_cv_func_alloca_works" >&6; } if test $ac_cv_func_alloca_works = yes; then $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h else # The SVR3 libPW and SVR4 libucb both contain incompatible functions # that cause trouble. Some versions do not even contain alloca or # contain a buggy version. If you still want to use their alloca, # use ar to extract alloca.o from them instead of compiling alloca.c. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext $as_echo "#define C_ALLOCA 1" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } if test "${ac_cv_os_cray+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined CRAY && ! defined CRAY2 webecray #else wenotbecray #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "webecray" >/dev/null 2>&1; then : ac_cv_os_cray=yes else ac_cv_os_cray=no fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 $as_echo "$ac_cv_os_cray" >&6; } if test $ac_cv_os_cray = yes; then for ac_func in _getb67 GETB67 getb67; 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" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define CRAY_STACKSEG_END $ac_func _ACEOF break fi done fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 $as_echo_n "checking stack direction for C alloca... " >&6; } if test "${ac_cv_c_stack_direction+set}" = set; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_c_stack_direction=0 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int find_stack_direction () { static char *addr = 0; auto char dummy; if (addr == 0) { addr = &dummy; return find_stack_direction (); } else return (&dummy > addr) ? 1 : -1; } int main () { return find_stack_direction () < 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_c_stack_direction=1 else ac_cv_c_stack_direction=-1 fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 $as_echo "$ac_cv_c_stack_direction" >&6; } cat >>confdefs.h <<_ACEOF #define STACK_DIRECTION $ac_cv_c_stack_direction _ACEOF fi for ac_header in $ac_header_list 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 " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_func in getpagesize do : ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" if test "x$ac_cv_func_getpagesize" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_GETPAGESIZE 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 $as_echo_n "checking for working mmap... " >&6; } if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_func_mmap_fixed_mapped=no else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default /* malloc might have been renamed as rpl_malloc. */ #undef malloc /* Thanks to Mike Haertel and Jim Avera for this test. Here is a matrix of mmap possibilities: mmap private not fixed mmap private fixed at somewhere currently unmapped mmap private fixed at somewhere already mapped mmap shared not fixed mmap shared fixed at somewhere currently unmapped mmap shared fixed at somewhere already mapped For private mappings, we should verify that changes cannot be read() back from the file, nor mmap's back from the file at a different address. (There have been systems where private was not correctly implemented like the infamous i386 svr4.0, and systems where the VM page cache was not coherent with the file system buffer cache like early versions of FreeBSD and possibly contemporary NetBSD.) For shared mappings, we should conversely verify that changes get propagated back to all the places they're supposed to be. Grep wants private fixed already mapped. The main things grep needs to know about mmap are: * does it exist and is it safe to write into the mmap'd area * how to use it (BSD variants) */ #include #include #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H char *malloc (); #endif /* This mess was copied from the GNU getpagesize.h. */ #ifndef HAVE_GETPAGESIZE # ifdef _SC_PAGESIZE # define getpagesize() sysconf(_SC_PAGESIZE) # else /* no _SC_PAGESIZE */ # ifdef HAVE_SYS_PARAM_H # include # ifdef EXEC_PAGESIZE # define getpagesize() EXEC_PAGESIZE # else /* no EXEC_PAGESIZE */ # ifdef NBPG # define getpagesize() NBPG * CLSIZE # ifndef CLSIZE # define CLSIZE 1 # endif /* no CLSIZE */ # else /* no NBPG */ # ifdef NBPC # define getpagesize() NBPC # else /* no NBPC */ # ifdef PAGESIZE # define getpagesize() PAGESIZE # endif /* PAGESIZE */ # endif /* no NBPC */ # endif /* no NBPG */ # endif /* no EXEC_PAGESIZE */ # else /* no HAVE_SYS_PARAM_H */ # define getpagesize() 8192 /* punt totally */ # endif /* no HAVE_SYS_PARAM_H */ # endif /* no _SC_PAGESIZE */ #endif /* no HAVE_GETPAGESIZE */ int main () { char *data, *data2, *data3; const char *cdata2; int i, pagesize; int fd, fd2; pagesize = getpagesize (); /* First, make a file with some known garbage in it. */ data = (char *) malloc (pagesize); if (!data) return 1; for (i = 0; i < pagesize; ++i) *(data + i) = rand (); umask (0); fd = creat ("conftest.mmap", 0600); if (fd < 0) return 2; if (write (fd, data, pagesize) != pagesize) return 3; close (fd); /* Next, check that the tail of a page is zero-filled. File must have non-zero length, otherwise we risk SIGBUS for entire page. */ fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); if (fd2 < 0) return 4; cdata2 = ""; if (write (fd2, cdata2, 1) != 1) return 5; data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); if (data2 == MAP_FAILED) return 6; for (i = 0; i < pagesize; ++i) if (*(data2 + i)) return 7; close (fd2); if (munmap (data2, pagesize)) return 8; /* Next, try to mmap the file at a fixed address which already has something else allocated at it. If we can, also make sure that we see the same garbage. */ fd = open ("conftest.mmap", O_RDWR); if (fd < 0) return 9; if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_FIXED, fd, 0L)) return 10; for (i = 0; i < pagesize; ++i) if (*(data + i) != *(data2 + i)) return 11; /* Finally, make sure that changes to the mapped area do not percolate back to the file as seen by read(). (This is a bug on some variants of i386 svr4.0.) */ for (i = 0; i < pagesize; ++i) *(data2 + i) = *(data2 + i) + 1; data3 = (char *) malloc (pagesize); if (!data3) return 12; if (read (fd, data3, pagesize) != pagesize) return 13; for (i = 0; i < pagesize; ++i) if (*(data + i) != *(data3 + i)) return 14; close (fd); return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_mmap_fixed_mapped=yes else ac_cv_func_mmap_fixed_mapped=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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } if test $ac_cv_func_mmap_fixed_mapped = yes; then $as_echo "#define HAVE_MMAP 1" >>confdefs.h fi rm -f conftest.mmap conftest.txt { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then : $as_echo_n "(cached) " >&6 else gt_cv_int_divbyzero_sigfpe= case "$host_os" in macos* | darwin[6-9]* | darwin[1-9][0-9]*) # On MacOS X 10.2 or newer, just assume the same as when cross- # compiling. If we were to perform the real test, 1 Crash Report # dialog window would pop up. case "$host_cpu" in i[34567]86 | x86_64) gt_cv_int_divbyzero_sigfpe="guessing yes" ;; esac ;; esac if test -z "$gt_cv_int_divbyzero_sigfpe"; then if test "$cross_compiling" = yes; then : # Guess based on the CPU. case "$host_cpu" in alpha* | i[34567]86 | x86_64 | m68k | s390*) gt_cv_int_divbyzero_sigfpe="guessing yes";; *) gt_cv_int_divbyzero_sigfpe="guessing no";; esac else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include static void sigfpe_handler (int sig) { /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ exit (sig != SIGFPE); } int x = 1; int y = 0; int z; int nan; int main () { signal (SIGFPE, sigfpe_handler); /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) signal (SIGTRAP, sigfpe_handler); #endif /* Linux/SPARC yields signal SIGILL. */ #if defined (__sparc__) && defined (__linux__) signal (SIGILL, sigfpe_handler); #endif z = x / y; nan = y / y; exit (1); } _ACEOF if ac_fn_c_try_run "$LINENO"; then : gt_cv_int_divbyzero_sigfpe=yes else gt_cv_int_divbyzero_sigfpe=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: $gt_cv_int_divbyzero_sigfpe" >&5 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } case "$gt_cv_int_divbyzero_sigfpe" in *yes) value=1;; *) value=0;; esac cat >>confdefs.h <<_ACEOF #define INTDIV0_RAISES_SIGFPE $value _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 $as_echo_n "checking for inttypes.h... " >&6; } if test "${gl_cv_header_inttypes_h+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { uintmax_t i = (uintmax_t) -1; return !i; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : gl_cv_header_inttypes_h=yes else gl_cv_header_inttypes_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5 $as_echo "$gl_cv_header_inttypes_h" >&6; } if test $gl_cv_header_inttypes_h = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_INTTYPES_H_WITH_UINTMAX 1 _ACEOF fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 $as_echo_n "checking for unsigned long long int... " >&6; } if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* For now, do not test the preprocessor; as of 2007 there are too many implementations with broken preprocessors. Perhaps this can be revisited in 2012. In the meantime, code should not expect #if to work with literals wider than 32 bits. */ /* Test literals. */ long long int ll = 9223372036854775807ll; long long int nll = -9223372036854775807LL; unsigned long long int ull = 18446744073709551615ULL; /* Test constant expressions. */ typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) ? 1 : -1)]; typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 ? 1 : -1)]; int i = 63; int main () { /* Test availability of runtime routines for shift and division. */ long long int llmax = 9223372036854775807ll; unsigned long long int ullmax = 18446744073709551615ull; return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) | (llmax / ll) | (llmax % ll) | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) | (ullmax / ull) | (ullmax % ull)); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_type_unsigned_long_long_int=yes else ac_cv_type_unsigned_long_long_int=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } if test $ac_cv_type_unsigned_long_long_int = yes; then $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h fi if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then test $ac_cv_type_unsigned_long_long_int = yes \ && ac_type='unsigned long long' \ || ac_type='unsigned long' cat >>confdefs.h <<_ACEOF #define uintmax_t $ac_type _ACEOF else $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h fi for ac_header in inttypes.h do : ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" if test "x$ac_cv_header_inttypes_h" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_INTTYPES_H 1 _ACEOF fi done if test $ac_cv_header_inttypes_h = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } if test "${gt_cv_inttypes_pri_broken+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef PRId32 char *p = PRId32; #endif int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : gt_cv_inttypes_pri_broken=no else gt_cv_inttypes_pri_broken=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5 $as_echo "$gt_cv_inttypes_pri_broken" >&6; } fi if test "$gt_cv_inttypes_pri_broken" = yes; then cat >>confdefs.h <<_ACEOF #define PRI_MACROS_BROKEN 1 _ACEOF PRI_MACROS_BROKEN=1 else PRI_MACROS_BROKEN=0 fi # Check whether --enable-threads was given. if test "${enable_threads+set}" = set; then : enableval=$enable_threads; gl_use_threads=$enableval else if test -n "$gl_use_threads_default"; then gl_use_threads="$gl_use_threads_default" else case "$host_os" in osf*) gl_use_threads=no ;; cygwin*) case `uname -r` in 1.[0-5].*) gl_use_threads=no ;; *) gl_use_threads=yes ;; esac ;; *) gl_use_threads=yes ;; esac fi fi if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then # For using : case "$host_os" in osf*) # On OSF/1, the compiler needs the flag -D_REENTRANT so that it # groks . cc also understands the flag -pthread, but # we don't use it because 1. gcc-2.95 doesn't understand -pthread, # 2. putting a flag into CPPFLAGS that has an effect on the linker # causes the AC_TRY_LINK test below to succeed unexpectedly, # leading to wrong values of LIBTHREAD and LTLIBTHREAD. CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; esac # Some systems optimize for single-threaded programs by default, and # need special flags to disable these optimizations. For example, the # definition of 'errno' in . case "$host_os" in aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;; solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; esac fi if test "X$prefix" = "XNONE"; then acl_final_prefix="$ac_default_prefix" else acl_final_prefix="$prefix" fi if test "X$exec_prefix" = "XNONE"; then acl_final_exec_prefix='${prefix}' else acl_final_exec_prefix="$exec_prefix" fi acl_save_prefix="$prefix" prefix="$acl_final_prefix" eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" prefix="$acl_save_prefix" # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then : withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 $as_echo_n "checking for ld used by GCC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | [A-Za-z]:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the path of ld ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 $as_echo_n "checking for GNU ld... " >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 $as_echo_n "checking for non-GNU ld... " >&6; } fi if test "${acl_cv_path_LD+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -z "$LD"; then IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then acl_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some GNU ld's only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in *GNU* | *'with BFD'*) test "$with_gnu_ld" != no && break ;; *) test "$with_gnu_ld" != yes && break ;; esac fi done IFS="$ac_save_ifs" else acl_cv_path_LD="$LD" # Let the user override the test with a path. fi fi LD="$acl_cv_path_LD" if test -n "$LD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 $as_echo "$LD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } if test "${acl_cv_prog_gnu_ld+set}" = set; then : $as_echo_n "(cached) " >&6 else # I'd rather use --version here, but apparently some GNU ld's only accept -v. case `$LD -v 2>&1 &5 $as_echo "$acl_cv_prog_gnu_ld" >&6; } with_gnu_ld=$acl_cv_prog_gnu_ld { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 $as_echo_n "checking for shared library run path origin... " >&6; } if test "${acl_cv_rpath+set}" = set; then : $as_echo_n "(cached) " >&6 else CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh . ./conftest.sh rm -f ./conftest.sh acl_cv_rpath=done fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 $as_echo "$acl_cv_rpath" >&6; } wl="$acl_cv_wl" acl_libext="$acl_cv_libext" acl_shlibext="$acl_cv_shlibext" acl_libname_spec="$acl_cv_libname_spec" acl_library_names_spec="$acl_cv_library_names_spec" acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" acl_hardcode_direct="$acl_cv_hardcode_direct" acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" # Check whether --enable-rpath was given. if test "${enable_rpath+set}" = set; then : enableval=$enable_rpath; : else enable_rpath=yes fi acl_libdirstem=lib acl_libdirstem2= case "$host_os" in solaris*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 $as_echo_n "checking for 64-bit host... " >&6; } if test "${gl_cv_solaris_64bit+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef _LP64 sixtyfour bits #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "sixtyfour bits" >/dev/null 2>&1; then : gl_cv_solaris_64bit=yes else gl_cv_solaris_64bit=no fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 $as_echo "$gl_cv_solaris_64bit" >&6; } if test $gl_cv_solaris_64bit = yes; then acl_libdirstem=lib/64 case "$host_cpu" in sparc*) acl_libdirstem2=lib/sparcv9 ;; i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; esac fi ;; *) searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` if test -n "$searchpath"; then acl_save_IFS="${IFS= }"; IFS=":" for searchdir in $searchpath; do if test -d "$searchdir"; then case "$searchdir" in */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; */../ | */.. ) # Better ignore directories of this form. They are misleading. ;; *) searchdir=`cd "$searchdir" && pwd` case "$searchdir" in */lib64 ) acl_libdirstem=lib64 ;; esac ;; esac fi done IFS="$acl_save_IFS" fi ;; esac test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" gl_threads_api=none LIBTHREAD= LTLIBTHREAD= LIBMULTITHREAD= LTLIBMULTITHREAD= if test "$gl_use_threads" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; } if test "${gl_cv_have_weak+set}" = set; then : $as_echo_n "(cached) " >&6 else gl_cv_have_weak=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ extern void xyzzy (); #pragma weak xyzzy int main () { xyzzy(); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : gl_cv_have_weak=maybe fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test $gl_cv_have_weak = maybe; then if test "$cross_compiling" = yes; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __ELF__ Extensible Linking Format #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "Extensible Linking Format" >/dev/null 2>&1; then : gl_cv_have_weak="guessing yes" else gl_cv_have_weak="guessing no" fi rm -f conftest* else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #pragma weak fputs int main () { return (fputs == NULL); } _ACEOF if ac_fn_c_try_run "$LINENO"; then : gl_cv_have_weak=yes else gl_cv_have_weak=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: $gl_cv_have_weak" >&5 $as_echo "$gl_cv_have_weak" >&6; } if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that # it groks . It's added above, in gl_THREADLIB_EARLY_BODY. ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" if test "x$ac_cv_header_pthread_h" = x""yes; then : gl_have_pthread_h=yes else gl_have_pthread_h=no fi if test "$gl_have_pthread_h" = yes; then # Other possible tests: # -lpthreads (FSU threads, PCthreads) # -lgthreads gl_have_pthread= # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist # in libc. IRIX 6.5 has the first one in both libc and libpthread, but # the second one only in libpthread, and lock.c needs it. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { pthread_mutex_lock((pthread_mutex_t*)0); pthread_mutexattr_init((pthread_mutexattr_t*)0); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : gl_have_pthread=yes fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext # Test for libpthread by looking for pthread_kill. (Not pthread_self, # since it is defined as a macro on OSF/1.) if test -n "$gl_have_pthread"; then # The program links fine without libpthread. But it may actually # need to link with libpthread in order to create multiple threads. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; } if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpthread $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* 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 pthread_kill (); int main () { return pthread_kill (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_pthread_pthread_kill=yes else ac_cv_lib_pthread_pthread_kill=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then : LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread # On Solaris and HP-UX, most pthread functions exist also in libc. # Therefore pthread_in_use() needs to actually try to create a # thread: pthread_create from libc will fail, whereas # pthread_create will actually create a thread. case "$host_os" in solaris* | hpux*) $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h esac fi else # Some library is needed. Try libpthread and libc_r. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; } if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpthread $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* 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 pthread_kill (); int main () { return pthread_kill (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_pthread_pthread_kill=yes else ac_cv_lib_pthread_pthread_kill=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then : gl_have_pthread=yes LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread fi if test -z "$gl_have_pthread"; then # For FreeBSD 4. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; } if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lc_r $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* 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 pthread_kill (); int main () { return pthread_kill (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_c_r_pthread_kill=yes else ac_cv_lib_c_r_pthread_kill=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; } if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then : gl_have_pthread=yes LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r fi fi fi if test -n "$gl_have_pthread"; then gl_threads_api=posix $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h LIBTHREAD= LTLIBTHREAD= fi fi fi fi fi if test -z "$gl_have_pthread"; then if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then gl_have_solaristhread= gl_save_LIBS="$LIBS" LIBS="$LIBS -lthread" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { thr_self(); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : gl_have_solaristhread=yes fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$gl_save_LIBS" if test -n "$gl_have_solaristhread"; then gl_threads_api=solaris LIBTHREAD=-lthread LTLIBTHREAD=-lthread LIBMULTITHREAD="$LIBTHREAD" LTLIBMULTITHREAD="$LTLIBTHREAD" $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h LIBTHREAD= LTLIBTHREAD= fi fi fi fi if test "$gl_use_threads" = pth; then gl_save_CPPFLAGS="$CPPFLAGS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5 $as_echo_n "checking how to link with libpth... " >&6; } if test "${ac_cv_libpth_libs+set}" = set; then : $as_echo_n "(cached) " >&6 else use_additional=yes acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" # Check whether --with-libpth-prefix was given. if test "${with_libpth_prefix+set}" = set; then : withval=$with_libpth_prefix; if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" if test "$acl_libdirstem2" != "$acl_libdirstem" \ && ! test -d "$withval/$acl_libdirstem"; then additional_libdir="$withval/$acl_libdirstem2" fi fi fi fi LIBPTH= LTLIBPTH= INCPTH= LIBPTH_PREFIX= HAVE_LIBPTH= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='pth ' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value" else : fi else found_dir= found_la= found_so= found_a= eval libname=\"$acl_libname_spec\" # typically: libname=lib$name if test -n "$acl_shlibext"; then shrext=".$acl_shlibext" # typically: shrext=.so else shrext= fi if test $use_additional = yes; then dir="$additional_libdir" if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext"; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIBPTH; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext"; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then if test "$enable_rpath" = no \ || test "X$found_dir" = "X/usr/$acl_libdirstem" \ || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" else haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi if test "$acl_hardcode_direct" = yes; then LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" else if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else haveit= for x in $LDFLAGS $LIBPTH; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir" fi if test "$acl_hardcode_minus_L" != no; then LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" else LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a" else LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name" fi fi additional_includedir= case "$found_dir" in */$acl_libdirstem | */$acl_libdirstem/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` if test "$name" = 'pth'; then LIBPTH_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; */$acl_libdirstem2 | */$acl_libdirstem2/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` if test "$name" = 'pth'; then LIBPTH_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; esac if test "X$additional_includedir" != "X"; then if test "X$additional_includedir" != "X/usr/include"; then haveit= if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then for x in $CPPFLAGS $INCPTH; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_includedir"; then INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir" fi fi fi fi fi if test -n "$found_la"; then save_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac libdir="$save_libdir" for dep in $dependency_libs; do case "$dep" in -L*) additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then haveit= if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIBPTH; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir" fi fi haveit= for x in $LDFLAGS $LTLIBPTH; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` ;; *.la) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) LIBPTH="${LIBPTH}${LIBPTH:+ }$dep" LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep" ;; esac done fi else LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$acl_hardcode_libdir_separator"; then alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" done acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" else for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then for found_dir in $ltrpathdirs; do LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir" done fi ac_cv_libpth_libs="$LIBPTH" ac_cv_libpth_ltlibs="$LTLIBPTH" ac_cv_libpth_cppflags="$INCPTH" ac_cv_libpth_prefix="$LIBPTH_PREFIX" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5 $as_echo "$ac_cv_libpth_libs" >&6; } LIBPTH="$ac_cv_libpth_libs" LTLIBPTH="$ac_cv_libpth_ltlibs" INCPTH="$ac_cv_libpth_cppflags" LIBPTH_PREFIX="$ac_cv_libpth_prefix" for element in $INCPTH; do haveit= for x in $CPPFLAGS; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" fi done HAVE_LIBPTH=yes gl_have_pth= gl_save_LIBS="$LIBS" LIBS="$LIBS -lpth" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { pth_self(); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : gl_have_pth=yes fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$gl_save_LIBS" if test -n "$gl_have_pth"; then gl_threads_api=pth LIBTHREAD="$LIBPTH" LTLIBTHREAD="$LTLIBPTH" LIBMULTITHREAD="$LIBTHREAD" LTLIBMULTITHREAD="$LTLIBTHREAD" $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h LIBTHREAD= LTLIBTHREAD= fi fi else CPPFLAGS="$gl_save_CPPFLAGS" fi fi if test -z "$gl_have_pthread"; then if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then if { case "$host_os" in mingw*) true;; *) false;; esac }; then gl_threads_api=win32 $as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h fi fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5 $as_echo_n "checking for multithread API to use... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5 $as_echo "$gl_threads_api" >&6; } if test "$gl_threads_api" = posix; then # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the # pthread_rwlock_* functions. ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include " if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then : $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h fi # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #if __FreeBSD__ == 4 error "No, in FreeBSD 4.0 recursive mutexes actually don't work." #else int x = (int)PTHREAD_MUTEX_RECURSIVE; return !x; #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi use_additional=yes acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" # Check whether --with-libiconv-prefix was given. if test "${with_libiconv_prefix+set}" = set; then : withval=$with_libiconv_prefix; if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" if test "$acl_libdirstem2" != "$acl_libdirstem" \ && ! test -d "$withval/$acl_libdirstem"; then additional_libdir="$withval/$acl_libdirstem2" fi fi fi fi LIBICONV= LTLIBICONV= INCICONV= LIBICONV_PREFIX= HAVE_LIBICONV= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='iconv ' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" else : fi else found_dir= found_la= found_so= found_a= eval libname=\"$acl_libname_spec\" # typically: libname=lib$name if test -n "$acl_shlibext"; then shrext=".$acl_shlibext" # typically: shrext=.so else shrext= fi if test $use_additional = yes; then dir="$additional_libdir" if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext"; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext"; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then if test "$enable_rpath" = no \ || test "X$found_dir" = "X/usr/$acl_libdirstem" \ || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" else haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi if test "$acl_hardcode_direct" = yes; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" else if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else haveit= for x in $LDFLAGS $LIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" fi if test "$acl_hardcode_minus_L" != no; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" else LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" else LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" fi fi additional_includedir= case "$found_dir" in */$acl_libdirstem | */$acl_libdirstem/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` if test "$name" = 'iconv'; then LIBICONV_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; */$acl_libdirstem2 | */$acl_libdirstem2/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` if test "$name" = 'iconv'; then LIBICONV_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; esac if test "X$additional_includedir" != "X"; then if test "X$additional_includedir" != "X/usr/include"; then haveit= if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then for x in $CPPFLAGS $INCICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_includedir"; then INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" fi fi fi fi fi if test -n "$found_la"; then save_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac libdir="$save_libdir" for dep in $dependency_libs; do case "$dep" in -L*) additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then haveit= if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" fi fi haveit= for x in $LDFLAGS $LTLIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` ;; *.la) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" ;; esac done fi else LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$acl_hardcode_libdir_separator"; then alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" done acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" else for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then for found_dir in $ltrpathdirs; do LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" done fi am_save_CPPFLAGS="$CPPFLAGS" for element in $INCICONV; do haveit= for x in $CPPFLAGS; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 $as_echo_n "checking for iconv... " >&6; } if test "${am_cv_func_iconv+set}" = set; then : $as_echo_n "(cached) " >&6 else am_cv_func_iconv="no, consider installing GNU libiconv" am_cv_lib_iconv=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : am_cv_func_iconv=yes fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test "$am_cv_func_iconv" != yes; then am_save_LIBS="$LIBS" LIBS="$LIBS $LIBICONV" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : am_cv_lib_iconv=yes am_cv_func_iconv=yes fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$am_save_LIBS" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 $as_echo "$am_cv_func_iconv" >&6; } if test "$am_cv_func_iconv" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 $as_echo_n "checking for working iconv... " >&6; } if test "${am_cv_func_iconv_works+set}" = set; then : $as_echo_n "(cached) " >&6 else am_save_LIBS="$LIBS" if test $am_cv_lib_iconv = yes; then LIBS="$LIBS $LIBICONV" fi if test "$cross_compiling" = yes; then : case "$host_os" in aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; *) am_cv_func_iconv_works="guessing yes" ;; esac else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { /* Test against AIX 5.1 bug: Failures are not distinguishable from successful returns. */ { iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); if (cd_utf8_to_88591 != (iconv_t)(-1)) { static const char input[] = "\342\202\254"; /* EURO SIGN */ char buf[10]; const char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_utf8_to_88591, (char **) &inptr, &inbytesleft, &outptr, &outbytesleft); if (res == 0) return 1; } } /* Test against Solaris 10 bug: Failures are not distinguishable from successful returns. */ { iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); if (cd_ascii_to_88591 != (iconv_t)(-1)) { static const char input[] = "\263"; char buf[10]; const char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_ascii_to_88591, (char **) &inptr, &inbytesleft, &outptr, &outbytesleft); if (res == 0) return 1; } } #if 0 /* This bug could be worked around by the caller. */ /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ { iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); if (cd_88591_to_utf8 != (iconv_t)(-1)) { static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; char buf[50]; const char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_88591_to_utf8, (char **) &inptr, &inbytesleft, &outptr, &outbytesleft); if ((int)res > 0) return 1; } } #endif /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is provided. */ if (/* Try standardized names. */ iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) /* Try IRIX, OSF/1 names. */ && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) /* Try AIX names. */ && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) /* Try HP-UX names. */ && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) return 1; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : am_cv_func_iconv_works=yes else am_cv_func_iconv_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi LIBS="$am_save_LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 $as_echo "$am_cv_func_iconv_works" >&6; } case "$am_cv_func_iconv_works" in *no) am_func_iconv=no am_cv_lib_iconv=no ;; *) am_func_iconv=yes ;; esac else am_func_iconv=no am_cv_lib_iconv=no fi if test "$am_func_iconv" = yes; then $as_echo "#define HAVE_ICONV 1" >>confdefs.h fi if test "$am_cv_lib_iconv" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 $as_echo_n "checking how to link with libiconv... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 $as_echo "$LIBICONV" >&6; } else CPPFLAGS="$am_save_CPPFLAGS" LIBICONV= LTLIBICONV= fi if test "$am_cv_func_iconv" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 $as_echo_n "checking for iconv declaration... " >&6; } if test "${am_cv_proto_iconv+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include extern #ifdef __cplusplus "C" #endif #if defined(__STDC__) || defined(__cplusplus) size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); #else size_t iconv(); #endif int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : am_cv_proto_iconv_arg1="" else am_cv_proto_iconv_arg1="const" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" fi am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_proto_iconv" >&5 $as_echo " $am_cv_proto_iconv" >&6; } cat >>confdefs.h <<_ACEOF #define ICONV_CONST $am_cv_proto_iconv_arg1 _ACEOF fi cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; } int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.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" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \ stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \ argz_stringify argz_next __fsetlocking 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" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5 $as_echo_n "checking whether feof_unlocked is declared... " >&6; } if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #ifndef feof_unlocked char *p = (char *) feof_unlocked; #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_have_decl_feof_unlocked=yes else ac_cv_have_decl_feof_unlocked=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; } if test $ac_cv_have_decl_feof_unlocked = yes; then gt_value=1 else gt_value=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_FEOF_UNLOCKED $gt_value _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; } if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #ifndef fgets_unlocked char *p = (char *) fgets_unlocked; #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_have_decl_fgets_unlocked=yes else ac_cv_have_decl_fgets_unlocked=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; } if test $ac_cv_have_decl_fgets_unlocked = yes; then gt_value=1 else gt_value=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_FGETS_UNLOCKED $gt_value _ACEOF for ac_prog in bison 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_INTLBISON+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$INTLBISON"; then ac_cv_prog_INTLBISON="$INTLBISON" # 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_INTLBISON="$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 INTLBISON=$ac_cv_prog_INTLBISON if test -n "$INTLBISON"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5 $as_echo "$INTLBISON" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$INTLBISON" && break done if test -z "$INTLBISON"; then ac_verc_fail=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5 $as_echo_n "checking version of bison... " >&6; } ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` case $ac_prog_version in '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 $as_echo "$ac_prog_version" >&6; } fi if test $ac_verc_fail = yes; then INTLBISON=: fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 $as_echo_n "checking for long long int... " >&6; } if test "${ac_cv_type_long_long_int+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* For now, do not test the preprocessor; as of 2007 there are too many implementations with broken preprocessors. Perhaps this can be revisited in 2012. In the meantime, code should not expect #if to work with literals wider than 32 bits. */ /* Test literals. */ long long int ll = 9223372036854775807ll; long long int nll = -9223372036854775807LL; unsigned long long int ull = 18446744073709551615ULL; /* Test constant expressions. */ typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) ? 1 : -1)]; typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 ? 1 : -1)]; int i = 63; int main () { /* Test availability of runtime routines for shift and division. */ long long int llmax = 9223372036854775807ll; unsigned long long int ullmax = 18446744073709551615ull; return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) | (llmax / ll) | (llmax % ll) | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) | (ullmax / ull) | (ullmax % ull)); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : if test "$cross_compiling" = yes; then : ac_cv_type_long_long_int=yes else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifndef LLONG_MAX # define HALF \ (1LL << (sizeof (long long int) * CHAR_BIT - 2)) # define LLONG_MAX (HALF - 1 + HALF) #endif int main () { long long int n = 1; int i; for (i = 0; ; i++) { long long int m = n << i; if (m >> i != n) return 1; if (LLONG_MAX / 2 < m) break; } return 0; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_type_long_long_int=yes else ac_cv_type_long_long_int=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi else ac_cv_type_long_long_int=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 $as_echo "$ac_cv_type_long_long_int" >&6; } if test $ac_cv_type_long_long_int = yes; then $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 $as_echo_n "checking for wchar_t... " >&6; } if test "${gt_cv_c_wchar_t+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include wchar_t foo = (wchar_t)'\0'; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : gt_cv_c_wchar_t=yes else gt_cv_c_wchar_t=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 $as_echo "$gt_cv_c_wchar_t" >&6; } if test $gt_cv_c_wchar_t = yes; then $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 $as_echo_n "checking for wint_t... " >&6; } if test "${gt_cv_c_wint_t+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Tru64 with Desktop Toolkit C has a bug: must be included before . BSD/OS 4.0.1 has a bug: , and must be included before . */ #include #include #include #include wint_t foo = (wchar_t)'\0'; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : gt_cv_c_wint_t=yes else gt_cv_c_wint_t=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 $as_echo "$gt_cv_c_wint_t" >&6; } if test $gt_cv_c_wint_t = yes; then $as_echo "#define HAVE_WINT_T 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 $as_echo_n "checking for intmax_t... " >&6; } if test "${gt_cv_c_intmax_t+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if HAVE_STDINT_H_WITH_UINTMAX #include #endif #if HAVE_INTTYPES_H_WITH_UINTMAX #include #endif int main () { intmax_t x = -1; return !x; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : gt_cv_c_intmax_t=yes else gt_cv_c_intmax_t=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5 $as_echo "$gt_cv_c_intmax_t" >&6; } if test $gt_cv_c_intmax_t = yes; then $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; } if test "${gt_cv_func_printf_posix+set}" = set; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ notposix #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "notposix" >/dev/null 2>&1; then : gt_cv_func_printf_posix="guessing no" else gt_cv_func_printf_posix="guessing yes" fi rm -f conftest* else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include /* The string "%2$d %1$d", with dollar characters protected from the shell's dollar expansion (possibly an autoconf bug). */ static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; static char buf[100]; int main () { sprintf (buf, format, 33, 55); return (strcmp (buf, "55 33") != 0); } _ACEOF if ac_fn_c_try_run "$LINENO"; then : gt_cv_func_printf_posix=yes else gt_cv_func_printf_posix=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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5 $as_echo "$gt_cv_func_printf_posix" >&6; } case $gt_cv_func_printf_posix in *yes) $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; } if test "${ac_cv_gnu_library_2_1+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef __GNU_LIBRARY__ #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) Lucky GNU user #endif #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then : ac_cv_gnu_library_2_1=yes else ac_cv_gnu_library_2_1=no fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 $as_echo "$ac_cv_gnu_library_2_1" >&6; } GLIBC21="$ac_cv_gnu_library_2_1" for ac_header in stdint.h do : ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" if test "x$ac_cv_header_stdint_h" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STDINT_H 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5 $as_echo_n "checking for SIZE_MAX... " >&6; } if test "${gl_cv_size_max+set}" = set; then : $as_echo_n "(cached) " >&6 else gl_cv_size_max= cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #if HAVE_STDINT_H #include #endif #ifdef SIZE_MAX Found it #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "Found it" >/dev/null 2>&1; then : gl_cv_size_max=yes fi rm -f conftest* if test -z "$gl_cv_size_max"; then if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include #include "; then : else size_t_bits_minus_1= fi if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include "; then : else fits_in_uint= fi if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then if test $fits_in_uint = 1; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include extern size_t foo; extern unsigned long foo; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : fits_in_uint=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi if test $fits_in_uint = 1; then gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" else gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" fi else gl_cv_size_max='((size_t)~(size_t)0)' fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5 $as_echo "$gl_cv_size_max" >&6; } if test "$gl_cv_size_max" != yes; then cat >>confdefs.h <<_ACEOF #define SIZE_MAX $gl_cv_size_max _ACEOF fi for ac_header in stdint.h do : ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" if test "x$ac_cv_header_stdint_h" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STDINT_H 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5 $as_echo_n "checking for working fcntl.h... " >&6; } if test "${gl_cv_header_working_fcntl_h+set}" = set; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : gl_cv_header_working_fcntl_h=cross-compiling else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include #ifndef O_NOATIME #define O_NOATIME 0 #endif #ifndef O_NOFOLLOW #define O_NOFOLLOW 0 #endif static int const constants[] = { O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND, O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY }; int main () { int status = !constants; { static char const sym[] = "conftest.sym"; if (symlink (".", sym) != 0 || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0) status |= 32; unlink (sym); } { static char const file[] = "confdefs.h"; int fd = open (file, O_RDONLY | O_NOATIME); char c; struct stat st0, st1; if (fd < 0 || fstat (fd, &st0) != 0 || sleep (1) != 0 || read (fd, &c, 1) != 1 || close (fd) != 0 || stat (file, &st1) != 0 || st0.st_atime != st1.st_atime) status |= 64; } return status; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : gl_cv_header_working_fcntl_h=yes else case $? in #( 32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #( 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #( 96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #( *) gl_cv_header_working_fcntl_h='no';; esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5 $as_echo "$gl_cv_header_working_fcntl_h" >&6; } case $gl_cv_header_working_fcntl_h in #( *O_NOATIME* | no | cross-compiling) ac_val=0;; #( *) ac_val=1;; esac cat >>confdefs.h <<_ACEOF #define HAVE_WORKING_O_NOATIME $ac_val _ACEOF case $gl_cv_header_working_fcntl_h in #( *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #( *) ac_val=1;; esac cat >>confdefs.h <<_ACEOF #define HAVE_WORKING_O_NOFOLLOW $ac_val _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then : $as_echo_n "(cached) " >&6 else gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { CFPreferencesCopyAppValue(NULL, NULL) ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : gt_cv_func_CFPreferencesCopyAppValue=yes else gt_cv_func_CFPreferencesCopyAppValue=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$gt_save_LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then : $as_echo_n "(cached) " >&6 else gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { CFLocaleCopyCurrent(); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : gt_cv_func_CFLocaleCopyCurrent=yes else gt_cv_func_CFLocaleCopyCurrent=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$gt_save_LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } if test $gt_cv_func_CFLocaleCopyCurrent = yes; then $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h fi INTL_MACOSX_LIBS= if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" fi case "$enable_silent_rules" in yes) INTL_DEFAULT_VERBOSITY=0;; no) INTL_DEFAULT_VERBOSITY=1;; *) INTL_DEFAULT_VERBOSITY=1;; esac ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" if test "x$ac_cv_type_ptrdiff_t" = x""yes; then : else $as_echo "#define ptrdiff_t long" >>confdefs.h fi for ac_header in stddef.h stdlib.h string.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" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \ snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb 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" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5 $as_echo_n "checking whether _snprintf is declared... " >&6; } if test "${ac_cv_have_decl__snprintf+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #ifndef _snprintf char *p = (char *) _snprintf; #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_have_decl__snprintf=yes else ac_cv_have_decl__snprintf=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5 $as_echo "$ac_cv_have_decl__snprintf" >&6; } if test $ac_cv_have_decl__snprintf = yes; then gt_value=1 else gt_value=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL__SNPRINTF $gt_value _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5 $as_echo_n "checking whether _snwprintf is declared... " >&6; } if test "${ac_cv_have_decl__snwprintf+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #ifndef _snwprintf char *p = (char *) _snwprintf; #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_have_decl__snwprintf=yes else ac_cv_have_decl__snwprintf=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5 $as_echo "$ac_cv_have_decl__snwprintf" >&6; } if test $ac_cv_have_decl__snwprintf = yes; then gt_value=1 else gt_value=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL__SNWPRINTF $gt_value _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5 $as_echo_n "checking whether getc_unlocked is declared... " >&6; } if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #ifndef getc_unlocked char *p = (char *) getc_unlocked; #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_have_decl_getc_unlocked=yes else ac_cv_have_decl_getc_unlocked=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; } if test $ac_cv_have_decl_getc_unlocked = yes; then gt_value=1 else gt_value=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_GETC_UNLOCKED $gt_value _ACEOF case $gt_cv_func_printf_posix in *yes) HAVE_POSIX_PRINTF=1 ;; *) HAVE_POSIX_PRINTF=0 ;; esac if test "$ac_cv_func_asprintf" = yes; then HAVE_ASPRINTF=1 else HAVE_ASPRINTF=0 fi if test "$ac_cv_func_snprintf" = yes; then HAVE_SNPRINTF=1 else HAVE_SNPRINTF=0 fi if test "$ac_cv_func_newlocale" = yes; then HAVE_NEWLOCALE=1 else HAVE_NEWLOCALE=0 fi if test "$ac_cv_func_wprintf" = yes; then HAVE_WPRINTF=1 else HAVE_WPRINTF=0 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } if test "${am_cv_langinfo_codeset+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { char* cs = nl_langinfo(CODESET); return !cs; ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : am_cv_langinfo_codeset=yes else am_cv_langinfo_codeset=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 $as_echo "$am_cv_langinfo_codeset" >&6; } if test $am_cv_langinfo_codeset = yes; then $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 $as_echo_n "checking for LC_MESSAGES... " >&6; } if test "${gt_cv_val_LC_MESSAGES+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { return LC_MESSAGES ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : gt_cv_val_LC_MESSAGES=yes else gt_cv_val_LC_MESSAGES=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; } if test $gt_cv_val_LC_MESSAGES = yes; then $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h fi if test "$enable_shared" = yes; then case "$host_os" in mingw* | cygwin*) is_woe32dll=yes ;; *) is_woe32dll=no ;; esac else is_woe32dll=no fi WOE32DLL=$is_woe32dll case "$host_os" in mingw* | cygwin*) is_woe32=yes ;; *) is_woe32=no ;; esac WOE32=$is_woe32 if test $WOE32 = yes; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. set dummy ${ac_tool_prefix}windres; 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_WINDRES+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$WINDRES"; then ac_cv_prog_WINDRES="$WINDRES" # 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_WINDRES="${ac_tool_prefix}windres" $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 WINDRES=$ac_cv_prog_WINDRES if test -n "$WINDRES"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 $as_echo "$WINDRES" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_WINDRES"; then ac_ct_WINDRES=$WINDRES # Extract the first word of "windres", so it can be a program name with args. set dummy windres; 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_WINDRES+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_WINDRES"; then ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # 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_WINDRES="windres" $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_WINDRES=$ac_cv_prog_ac_ct_WINDRES if test -n "$ac_ct_WINDRES"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 $as_echo "$ac_ct_WINDRES" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_WINDRES" = x; then WINDRES="" 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 WINDRES=$ac_ct_WINDRES fi else WINDRES="$ac_cv_prog_WINDRES" fi fi case "$host_os" in hpux*) LTLIBC="" ;; *) LTLIBC="-lc" ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then : $as_echo_n "(cached) " >&6 else gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { CFPreferencesCopyAppValue(NULL, NULL) ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : gt_cv_func_CFPreferencesCopyAppValue=yes else gt_cv_func_CFPreferencesCopyAppValue=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$gt_save_LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then : $as_echo_n "(cached) " >&6 else gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { CFLocaleCopyCurrent(); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : gt_cv_func_CFLocaleCopyCurrent=yes else gt_cv_func_CFLocaleCopyCurrent=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$gt_save_LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } if test $gt_cv_func_CFLocaleCopyCurrent = yes; then $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h fi INTL_MACOSX_LIBS= if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" fi BUILD_INCLUDED_LIBINTL=no USE_INCLUDED_LIBINTL=no LIBINTL= LTLIBINTL= POSUB= case " $gt_needs " in *" need-formatstring-macros "*) gt_api_version=3 ;; *" need-ngettext "*) gt_api_version=2 ;; *) gt_api_version=1 ;; esac gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" if test "$USE_NLS" = "yes"; then gt_use_preinstalled_gnugettext=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5 $as_echo_n "checking whether included gettext is requested... " >&6; } # Check whether --with-included-gettext was given. if test "${with_included_gettext+set}" = set; then : withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval else nls_cv_force_use_gnu_gettext=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; } nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" if test "$nls_cv_force_use_gnu_gettext" != "yes"; then if test $gt_api_version -ge 3; then gt_revision_test_code=' #ifndef __GNU_GETTEXT_SUPPORTED_REVISION #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) #endif typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; ' else gt_revision_test_code= fi if test $gt_api_version -ge 2; then gt_expression_test_code=' + * ngettext ("", "", 0)' else gt_expression_test_code= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 $as_echo_n "checking for GNU gettext in libc... " >&6; } if eval "test \"\${$gt_func_gnugettext_libc+set}\"" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include $gt_revision_test_code extern int _nl_msg_cat_cntr; extern int *_nl_domain_bindings; int main () { bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$gt_func_gnugettext_libc=yes" else eval "$gt_func_gnugettext_libc=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$gt_func_gnugettext_libc { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then use_additional=yes acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" # Check whether --with-libintl-prefix was given. if test "${with_libintl_prefix+set}" = set; then : withval=$with_libintl_prefix; if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" if test "$acl_libdirstem2" != "$acl_libdirstem" \ && ! test -d "$withval/$acl_libdirstem"; then additional_libdir="$withval/$acl_libdirstem2" fi fi fi fi LIBINTL= LTLIBINTL= INCINTL= LIBINTL_PREFIX= HAVE_LIBINTL= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='intl ' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" else : fi else found_dir= found_la= found_so= found_a= eval libname=\"$acl_libname_spec\" # typically: libname=lib$name if test -n "$acl_shlibext"; then shrext=".$acl_shlibext" # typically: shrext=.so else shrext= fi if test $use_additional = yes; then dir="$additional_libdir" if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext"; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIBINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext"; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then if test "$enable_rpath" = no \ || test "X$found_dir" = "X/usr/$acl_libdirstem" \ || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" else haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi if test "$acl_hardcode_direct" = yes; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" else if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else haveit= for x in $LDFLAGS $LIBINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" fi if test "$acl_hardcode_minus_L" != no; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" else LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" else LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" fi fi additional_includedir= case "$found_dir" in */$acl_libdirstem | */$acl_libdirstem/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` if test "$name" = 'intl'; then LIBINTL_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; */$acl_libdirstem2 | */$acl_libdirstem2/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` if test "$name" = 'intl'; then LIBINTL_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; esac if test "X$additional_includedir" != "X"; then if test "X$additional_includedir" != "X/usr/include"; then haveit= if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then for x in $CPPFLAGS $INCINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_includedir"; then INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" fi fi fi fi fi if test -n "$found_la"; then save_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac libdir="$save_libdir" for dep in $dependency_libs; do case "$dep" in -L*) additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then haveit= if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIBINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" fi fi haveit= for x in $LDFLAGS $LTLIBINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` ;; *.la) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" ;; esac done fi else LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$acl_hardcode_libdir_separator"; then alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" done acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" else for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then for found_dir in $ltrpathdirs; do LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" done fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 $as_echo_n "checking for GNU gettext in libintl... " >&6; } if eval "test \"\${$gt_func_gnugettext_libintl+set}\"" = set; then : $as_echo_n "(cached) " >&6 else gt_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $INCINTL" gt_save_LIBS="$LIBS" LIBS="$LIBS $LIBINTL" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include $gt_revision_test_code extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *); int main () { bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$gt_func_gnugettext_libintl=yes" else eval "$gt_func_gnugettext_libintl=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then LIBS="$LIBS $LIBICONV" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include $gt_revision_test_code extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *); int main () { bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : LIBINTL="$LIBINTL $LIBICONV" LTLIBINTL="$LTLIBINTL $LTLIBICONV" eval "$gt_func_gnugettext_libintl=yes" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi CPPFLAGS="$gt_save_CPPFLAGS" LIBS="$gt_save_LIBS" fi eval ac_res=\$$gt_func_gnugettext_libintl { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ && test "$PACKAGE" != gettext-runtime \ && test "$PACKAGE" != gettext-tools; }; then gt_use_preinstalled_gnugettext=yes else LIBINTL= LTLIBINTL= INCINTL= fi if test "$gt_use_preinstalled_gnugettext" != "yes"; then nls_cv_use_gnu_gettext=yes fi fi if test "$nls_cv_use_gnu_gettext" = "yes"; then BUILD_INCLUDED_LIBINTL=yes USE_INCLUDED_LIBINTL=yes LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD" LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD" LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` fi CATOBJEXT= if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then CATOBJEXT=.gmo fi if test -n "$INTL_MACOSX_LIBS"; then if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" fi fi if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then $as_echo "#define ENABLE_NLS 1" >>confdefs.h else USE_NLS=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 $as_echo_n "checking whether to use NLS... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 $as_echo "$USE_NLS" >&6; } if test "$USE_NLS" = "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 $as_echo_n "checking where the gettext function comes from... " >&6; } if test "$gt_use_preinstalled_gnugettext" = "yes"; then if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then gt_source="external libintl" else gt_source="libc" fi else gt_source="included intl directory" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 $as_echo "$gt_source" >&6; } fi if test "$USE_NLS" = "yes"; then if test "$gt_use_preinstalled_gnugettext" = "yes"; then if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 $as_echo_n "checking how to link with libintl... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 $as_echo "$LIBINTL" >&6; } for element in $INCINTL; do haveit= for x in $CPPFLAGS; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" fi done fi $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h fi POSUB=po fi if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then BUILD_INCLUDED_LIBINTL=yes fi nls_cv_header_intl= nls_cv_header_libgt= DATADIRNAME=share INSTOBJEXT=.mo GENCAT=gencat INTLOBJS= if test "$USE_INCLUDED_LIBINTL" = yes; then INTLOBJS="\$(GETTOBJS)" fi INTL_LIBTOOL_SUFFIX_PREFIX= INTLLIBS="$LIBINTL" CFLAGS="$CFLAGS -I../${srcdir}/intl" LIBS="$LIBS $LIBINTL" ac_config_files="$ac_config_files intl/Makefile Makefile lib/Makefile po/Makefile.in tools/Makefile tools/glade/Makefile tools/glade/actions/Makefile tools/glade/image_nr/Makefile tools/glade/options/Makefile man/Makefile man/cs/Makefile man/de/Makefile man/en/Makefile man/fr/Makefile man/ru/Makefile src/Makefile gliv.spec" 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= U= 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 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 if test -z "${GETDELIM_TRUE}" && test -z "${GETDELIM_FALSE}"; then as_fn_error $? "conditional \"GETDELIM\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${GETOPT_LONG_TRUE}" && test -z "${GETOPT_LONG_FALSE}"; then as_fn_error $? "conditional \"GETOPT_LONG\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${NEED_REPLACEMENTS_TRUE}" && test -z "${NEED_REPLACEMENTS_FALSE}"; then as_fn_error $? "conditional \"NEED_REPLACEMENTS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${NEED_REPLACEMENTS_TRUE}" && test -z "${NEED_REPLACEMENTS_FALSE}"; then as_fn_error $? "conditional \"NEED_REPLACEMENTS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi : ${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 STATUS 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=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&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 gliv $as_me 1.9.7, which was generated by GNU Autoconf 2.67. 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 ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ gliv config.status 1.9.7 configured by $0, generated by GNU Autoconf 2.67, with options \\"\$ac_cs_config\\" Copyright (C) 2010 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=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= 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"` ;; '') as_fn_error $? "missing file argument" ;; 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" # Capture the value of obsolete ALL_LINGUAS because we need it to compute # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it # from automake < 1.5. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' # Capture the value of LINGUAS because we need it to compute CATALOGS. LINGUAS="${LINGUAS-%UNSET%}" _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" ;; "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; "tools/glade/Makefile") CONFIG_FILES="$CONFIG_FILES tools/glade/Makefile" ;; "tools/glade/actions/Makefile") CONFIG_FILES="$CONFIG_FILES tools/glade/actions/Makefile" ;; "tools/glade/image_nr/Makefile") CONFIG_FILES="$CONFIG_FILES tools/glade/image_nr/Makefile" ;; "tools/glade/options/Makefile") CONFIG_FILES="$CONFIG_FILES tools/glade/options/Makefile" ;; "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; "man/cs/Makefile") CONFIG_FILES="$CONFIG_FILES man/cs/Makefile" ;; "man/de/Makefile") CONFIG_FILES="$CONFIG_FILES man/de/Makefile" ;; "man/en/Makefile") CONFIG_FILES="$CONFIG_FILES man/en/Makefile" ;; "man/fr/Makefile") CONFIG_FILES="$CONFIG_FILES man/fr/Makefile" ;; "man/ru/Makefile") CONFIG_FILES="$CONFIG_FILES man/ru/Makefile" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; "gliv.spec") CONFIG_FILES="$CONFIG_FILES gliv.spec" ;; *) 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 sole $(srcdir), # ${srcdir} and @srcdir@ entries 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[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// 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 1 "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-directories":C) for ac_file in $CONFIG_FILES; do # Support "outfile[:infile[:infile...]]" case "$ac_file" in *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; esac # PO directories have a Makefile.in generated from Makefile.in.in. case "$ac_file" in */Makefile.in) # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" case "$ac_given_srcdir" in .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; /*) top_srcdir="$ac_given_srcdir" ;; *) top_srcdir="$ac_dots$ac_given_srcdir" ;; esac # Treat a directory as a PO directory if and only if it has a # POTFILES.in file. This allows packages to have multiple PO # directories under different names or in different locations. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then rm -f "$ac_dir/POTFILES" test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" POMAKEFILEDEPS="POTFILES.in" # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend # on $ac_dir but don't depend on user-specified configuration # parameters. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then # The LINGUAS file contains the set of available languages. if test -n "$OBSOLETE_ALL_LINGUAS"; then test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" fi ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` # Hide the ALL_LINGUAS assigment from automake < 1.5. eval 'ALL_LINGUAS''=$ALL_LINGUAS_' POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" else # The set of available languages was given in configure.in. # Hide the ALL_LINGUAS assigment from automake < 1.5. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' fi # Compute POFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) # Compute UPDATEPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) # Compute DUMMYPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) # Compute GMOFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) case "$ac_given_srcdir" in .) srcdirpre= ;; *) srcdirpre='$(srcdir)/' ;; esac POFILES= UPDATEPOFILES= DUMMYPOFILES= GMOFILES= for lang in $ALL_LINGUAS; do POFILES="$POFILES $srcdirpre$lang.po" UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" DUMMYPOFILES="$DUMMYPOFILES $lang.nop" GMOFILES="$GMOFILES $srcdirpre$lang.gmo" done # CATALOGS depends on both $ac_dir and the user's LINGUAS # environment variable. INST_LINGUAS= if test -n "$ALL_LINGUAS"; then for presentlang in $ALL_LINGUAS; do useit=no if test "%UNSET%" != "$LINGUAS"; then desiredlanguages="$LINGUAS" else desiredlanguages="$ALL_LINGUAS" fi for desiredlang in $desiredlanguages; do # Use the presentlang catalog if desiredlang is # a. equal to presentlang, or # b. a variant of presentlang (because in this case, # presentlang can be used as a fallback for messages # which are not translated in the desiredlang catalog). case "$desiredlang" in "$presentlang"*) useit=yes;; esac done if test $useit = yes; then INST_LINGUAS="$INST_LINGUAS $presentlang" fi done fi CATALOGS= if test -n "$INST_LINGUAS"; then for lang in $INST_LINGUAS; do CATALOGS="$CATALOGS $lang.gmo" done fi test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do if test -f "$f"; then case "$f" in *.orig | *.bak | *~) ;; *) cat "$f" >> "$ac_dir/Makefile" ;; esac fi done fi ;; esac done ;; 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 1 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 "Using GTK+ $GTK_VERSION with GtkGLExt $GTKGL_VERSION" echo gliv-1.9.7/gliv.png0000644000076400007640000000520411465576131011420 0ustar ggPNG  IHDR00WsBIT|dtEXtTitleMade with Inkscape`ztEXtAuthorUnknown! zTXtDescriptionxKT(L.)-J_~ , IDATx{U}9 ax%DyX+F,*4bhMWRSĻIvlmǪψ#A>xBf``;swsߵg. q]M [k)N^?orYIskk:fc+vN[%a':x&n][>ϼ[ZjLK EJ 311d=]b>nx۷9ZavB&«.\m͋Sxj/o!ӯ)=z_W~I6)lċ8D47%hm$KyD2 E?}Ȩ{xxȨ_DCokA&tϵOc'1!#ߑ[?iރC-s`ψ5c2dO+~,,_ߺbܖho5)#kM!~+1v*$Ž '/l/ \b^M(kS%W# E7iUZ C'IsՐƛOEgR%.d݅u `p7H8H0+eG4^u'mPeqm['nzqh_Bf[7ڑbLP08;CE[b<実 ? fиn%N_r,nK,T҉6)+fTHt^rkBz@A3)-%p= Ӱ$|2wUD9bW$o L|4ӓqeM( ڣ҉ N9p_NuKo /MqNwS͖͍g< `ww{YOC\_~{! RZ5h岪w˙,YN[☡/`ΣjŚ\M,jK[L4V /󾊵k =~/H7#? -t?I(@593sW:hn=6މ!P.C :gin  W{c?l)raBykqHu(UW8dۺu[c9^Afx(M86T*XUThg)qH)Ӝ=)?~I93". dDg#BYܒQqxFES"9me@PxKD76D 4>LN5!꼍zj[|zOYA~-!9#0umĵ;5%ܑ<&Eʪ)*wxsE'}: h bcR1[s ,&mJ6aSکr8εKӕT;9PafRlf9ʨځ@XLj!v5An[7%p؎K 񺹞0RsgTG?|5 >j>F.e{6~]ch$,3Ҵͳ-_]fG{Zݫ0+nCahOܔ xF Z^AG  1Sq:yJjWR:mػ 9ZV[碝6_Ϋ2?a&Ƨ2K³ͷ'V8 '_K` \ "#)\rMݠ,:hkٛx gEc3 NVP*6^;q>8oRDcS穯[ޏ$eX5S]]^r''ݕzNl@J_6zc>|wd V^ו;^uq=kį4uZ1V|qFYc.uI޳j/HR܀F7JpZoa:o U*޵k