katoob-0.5.9.1/0000777000175000017500000000000010746622467010166 500000000000000katoob-0.5.9.1/m4/0000777000175000017500000000000010746622467010506 500000000000000katoob-0.5.9.1/m4/glib-gettext.m40000644000175000017500000003037510746617673013276 00000000000000# Copyright (C) 1995-2002 Free Software Foundation, Inc. # Copyright (C) 2001-2003,2004 Red Hat, Inc. # # This file is free software, distributed under the terms of the GNU # General Public License. As a special exception to the GNU General # Public License, this file may be distributed as part of a program # that contains a configuration script generated by Autoconf, under # the same distribution terms as the rest of that program. # # This file can be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU Public License # but which still want to provide support for the GNU gettext functionality. # # Macro to add for using GNU gettext. # Ulrich Drepper , 1995, 1996 # # Modified to never use included libintl. # Owen Taylor , 12/15/1998 # # Major rework to remove unused code # Owen Taylor , 12/11/2002 # # Added better handling of ALL_LINGUAS from GNU gettext version # written by Bruno Haible, Owen Taylor 5/30/3002 # # Modified to require ngettext # Matthias Clasen 08/06/2004 # # We need this here as well, since someone might use autoconf-2.5x # to configure GLib then an older version to configure a package # using AM_GLIB_GNU_GETTEXT AC_PREREQ(2.53) dnl dnl We go to great lengths to make sure that aclocal won't dnl try to pull in the installed version of these macros dnl when running aclocal in the glib directory. dnl m4_copy([AC_DEFUN],[glib_DEFUN]) m4_copy([AC_REQUIRE],[glib_REQUIRE]) dnl dnl At the end, if we're not within glib, we'll define the public dnl definitions in terms of our private definitions. dnl # GLIB_LC_MESSAGES #-------------------- glib_DEFUN([GLIB_LC_MESSAGES], [AC_CHECK_HEADERS([locale.h]) if test $ac_cv_header_locale_h = yes; then AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, [AC_TRY_LINK([#include ], [return LC_MESSAGES], am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) if test $am_cv_val_LC_MESSAGES = yes; then AC_DEFINE(HAVE_LC_MESSAGES, 1, [Define if your file defines LC_MESSAGES.]) fi fi]) # GLIB_PATH_PROG_WITH_TEST #---------------------------- dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) glib_DEFUN([GLIB_PATH_PROG_WITH_TEST], [# 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. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in ifelse([$5], , $PATH, [$5]); do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if [$3]; then ac_cv_path_$1="$ac_dir/$ac_word" break fi fi 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 ]) # GLIB_WITH_NLS #----------------- glib_DEFUN([GLIB_WITH_NLS], dnl NLS is obligatory [USE_NLS=yes AC_SUBST(USE_NLS) gt_cv_have_gettext=no CATOBJEXT=NONE XGETTEXT=: INTLLIBS= AC_CHECK_HEADER(libintl.h, [gt_cv_func_dgettext_libintl="no" libintl_extra_libs="" # # First check in libc # AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc, [AC_TRY_LINK([ #include ], [return !ngettext ("","", 1)], gt_cv_func_ngettext_libc=yes, gt_cv_func_ngettext_libc=no) ]) if test "$gt_cv_func_ngettext_libc" = "yes" ; then AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc, [AC_TRY_LINK([ #include ], [return !dgettext ("","")], gt_cv_func_dgettext_libc=yes, gt_cv_func_dgettext_libc=no) ]) fi if test "$gt_cv_func_ngettext_libc" = "yes" ; then AC_CHECK_FUNCS(bind_textdomain_codeset) fi # # If we don't have everything we want, check in libintl # if test "$gt_cv_func_dgettext_libc" != "yes" \ || test "$gt_cv_func_ngettext_libc" != "yes" \ || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then AC_CHECK_LIB(intl, bindtextdomain, [AC_CHECK_LIB(intl, ngettext, [AC_CHECK_LIB(intl, dgettext, gt_cv_func_dgettext_libintl=yes)])]) if test "$gt_cv_func_dgettext_libintl" != "yes" ; then AC_MSG_CHECKING([if -liconv is needed to use gettext]) AC_MSG_RESULT([]) AC_CHECK_LIB(intl, ngettext, [AC_CHECK_LIB(intl, dcgettext, [gt_cv_func_dgettext_libintl=yes libintl_extra_libs=-liconv], :,-liconv)], :,-liconv) fi # # If we found libintl, then check in it for bind_textdomain_codeset(); # we'll prefer libc if neither have bind_textdomain_codeset(), # and both have dgettext and ngettext # if test "$gt_cv_func_dgettext_libintl" = "yes" ; then glib_save_LIBS="$LIBS" LIBS="$LIBS -lintl $libintl_extra_libs" unset ac_cv_func_bind_textdomain_codeset AC_CHECK_FUNCS(bind_textdomain_codeset) LIBS="$glib_save_LIBS" if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then gt_cv_func_dgettext_libc=no else if test "$gt_cv_func_dgettext_libc" = "yes" \ && test "$gt_cv_func_ngettext_libc" = "yes"; then gt_cv_func_dgettext_libintl=no fi fi fi fi if test "$gt_cv_func_dgettext_libc" = "yes" \ || test "$gt_cv_func_dgettext_libintl" = "yes"; then gt_cv_have_gettext=yes fi if test "$gt_cv_func_dgettext_libintl" = "yes"; then INTLLIBS="-lintl $libintl_extra_libs" fi if test "$gt_cv_have_gettext" = "yes"; then AC_DEFINE(HAVE_GETTEXT,1, [Define if the GNU gettext() function is already present or preinstalled.]) GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl if test "$MSGFMT" != "no"; then glib_save_LIBS="$LIBS" LIBS="$LIBS $INTLLIBS" AC_CHECK_FUNCS(dcgettext) AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) AC_TRY_LINK(, [extern int _nl_msg_cat_cntr; return _nl_msg_cat_cntr], [CATOBJEXT=.gmo DATADIRNAME=share], [case $host in *-*-solaris*) dnl On Solaris, if bind_textdomain_codeset is in libc, dnl GNU format message catalog is always supported, dnl since both are added to the libc all together. dnl Hence, we'd like to go with DATADIRNAME=share and dnl and CATOBJEXT=.gmo in this case. AC_CHECK_FUNC(bind_textdomain_codeset, [CATOBJEXT=.gmo DATADIRNAME=share], [CATOBJEXT=.mo DATADIRNAME=lib]) ;; *) CATOBJEXT=.mo DATADIRNAME=lib ;; esac]) LIBS="$glib_save_LIBS" INSTOBJEXT=.mo else gt_cv_have_gettext=no fi fi ]) if test "$gt_cv_have_gettext" = "yes" ; then AC_DEFINE(ENABLE_NLS, 1, [always defined to indicate that i18n is enabled]) fi dnl Test whether we really found GNU xgettext. if test "$XGETTEXT" != ":"; then dnl If it is not GNU xgettext we define it as : so that the dnl Makefiles still can work. if $XGETTEXT --omit-header /dev/null 2> /dev/null; then : ; else AC_MSG_RESULT( [found xgettext program is not GNU xgettext; ignore it]) XGETTEXT=":" fi fi # We need to process the po/ directory. POSUB=po AC_OUTPUT_COMMANDS( [case "$CONFIG_FILES" in *po/Makefile.in*) sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile esac]) dnl These rules are solely for the distribution goal. While doing this dnl we only have to keep exactly one list of the available catalogs dnl in configure.in. for lang in $ALL_LINGUAS; do GMOFILES="$GMOFILES $lang.gmo" POFILES="$POFILES $lang.po" done dnl Make all variables we use known to autoconf. AC_SUBST(CATALOGS) AC_SUBST(CATOBJEXT) AC_SUBST(DATADIRNAME) AC_SUBST(GMOFILES) AC_SUBST(INSTOBJEXT) AC_SUBST(INTLLIBS) AC_SUBST(PO_IN_DATADIR_TRUE) AC_SUBST(PO_IN_DATADIR_FALSE) AC_SUBST(POFILES) AC_SUBST(POSUB) ]) # AM_GLIB_GNU_GETTEXT # ------------------- # Do checks necessary for use of gettext. If a suitable implementation # of gettext is found in either in libintl or in the C library, # it will set INTLLIBS to the libraries needed for use of gettext # and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable # gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST() # on various variables needed by the Makefile.in.in installed by # glib-gettextize. dnl glib_DEFUN([GLIB_GNU_GETTEXT], [AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_HEADER_STDC])dnl GLIB_LC_MESSAGES GLIB_WITH_NLS if test "$gt_cv_have_gettext" = "yes"; then if test "x$ALL_LINGUAS" = "x"; then LINGUAS= else AC_MSG_CHECKING(for catalogs to be installed) NEW_LINGUAS= for presentlang in $ALL_LINGUAS; do useit=no if test "%UNSET%" != "${LINGUAS-%UNSET%}"; 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 NEW_LINGUAS="$NEW_LINGUAS $presentlang" fi done LINGUAS=$NEW_LINGUAS AC_MSG_RESULT($LINGUAS) fi dnl Construct list of names of catalog files to be constructed. if test -n "$LINGUAS"; then for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done fi fi dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly dnl find the mkinstalldirs script in another subdir but ($top_srcdir). dnl Try to locate is. MKINSTALLDIRS= if test -n "$ac_aux_dir"; then MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" fi if test -z "$MKINSTALLDIRS"; then MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" fi AC_SUBST(MKINSTALLDIRS) dnl Generate list of files to be processed by xgettext which will dnl be included in po/Makefile. test -d po || mkdir po if test "x$srcdir" != "x."; then if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then posrcprefix="$srcdir/" else posrcprefix="../$srcdir/" fi else posrcprefix="../" fi rm -f po/POTFILES sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ < $srcdir/po/POTFILES.in > po/POTFILES ]) # AM_GLIB_DEFINE_LOCALEDIR(VARIABLE) # ------------------------------- # Define VARIABLE to the location where catalog files will # be installed by po/Makefile. glib_DEFUN([GLIB_DEFINE_LOCALEDIR], [glib_REQUIRE([GLIB_GNU_GETTEXT])dnl glib_save_prefix="$prefix" glib_save_exec_prefix="$exec_prefix" test "x$prefix" = xNONE && prefix=$ac_default_prefix test "x$exec_prefix" = xNONE && exec_prefix=$prefix if test "x$CATOBJEXT" = "x.mo" ; then localedir=`eval echo "${libdir}/locale"` else localedir=`eval echo "${datadir}/locale"` fi prefix="$glib_save_prefix" exec_prefix="$glib_save_exec_prefix" AC_DEFINE_UNQUOTED($1, "$localedir", [Define the location where the catalogs will be installed]) ]) dnl dnl Now the definitions that aclocal will find dnl ifdef(glib_configure_in,[],[ AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)]) AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)]) ])dnl katoob-0.5.9.1/m4/intltool.m40000644000175000017500000002524010746617673012536 00000000000000## intltool.m4 - Configure intltool for the target system. -*-Shell-script-*- ## Copyright (C) 2001 Eazel, Inc. ## Author: Maciej Stachowiak ## Kenneth Christiansen ## ## 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. dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml]) # serial 35 IT_PROG_INTLTOOL AC_DEFUN([IT_PROG_INTLTOOL], [AC_PREREQ([2.50])dnl case "$am__api_version" in 1.[01234]) AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool]) ;; *) ;; esac if test -n "$1"; then AC_MSG_CHECKING([for intltool >= $1]) INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in` [INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($ 2, VERSION, "."); print VERSION[1] * 1000 + VERSION[2] * 100 + VERSION[3];}' ${ac_aux_dir}/intltool-update.in` ] AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found]) test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.]) fi INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@' INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' AC_SUBST(INTLTOOL_DESKTOP_RULE) AC_SUBST(INTLTOOL_DIRECTORY_RULE) AC_SUBST(INTLTOOL_KEYS_RULE) AC_SUBST(INTLTOOL_PROP_RULE) AC_SUBST(INTLTOOL_OAF_RULE) AC_SUBST(INTLTOOL_PONG_RULE) AC_SUBST(INTLTOOL_SERVER_RULE) AC_SUBST(INTLTOOL_SHEET_RULE) AC_SUBST(INTLTOOL_SOUNDLIST_RULE) AC_SUBST(INTLTOOL_UI_RULE) AC_SUBST(INTLTOOL_XAM_RULE) AC_SUBST(INTLTOOL_KBD_RULE) AC_SUBST(INTLTOOL_XML_RULE) AC_SUBST(INTLTOOL_XML_NOMERGE_RULE) AC_SUBST(INTLTOOL_CAVES_RULE) AC_SUBST(INTLTOOL_SCHEMAS_RULE) AC_SUBST(INTLTOOL_THEME_RULE) AC_SUBST(INTLTOOL_SERVICE_RULE) # Use the tools built into the package, not the ones that are installed. AC_SUBST(INTLTOOL_EXTRACT, '$(top_builddir)/intltool-extract') AC_SUBST(INTLTOOL_MERGE, '$(top_builddir)/intltool-merge') AC_SUBST(INTLTOOL_UPDATE, '$(top_builddir)/intltool-update') AC_PATH_PROG(INTLTOOL_PERL, perl) if test -z "$INTLTOOL_PERL"; then AC_MSG_ERROR([perl not found; required for intltool]) fi if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then AC_MSG_ERROR([perl 5.x required for intltool]) fi if test "x$2" != "xno-xml"; then AC_MSG_CHECKING([for XML::Parser]) if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then AC_MSG_RESULT([ok]) else AC_MSG_ERROR([XML::Parser perl module is required for intltool]) fi fi AC_PATH_PROG(INTLTOOL_ICONV, iconv, iconv) AC_PATH_PROG(INTLTOOL_MSGFMT, msgfmt, msgfmt) AC_PATH_PROG(INTLTOOL_MSGMERGE, msgmerge, msgmerge) AC_PATH_PROG(INTLTOOL_XGETTEXT, xgettext, xgettext) # Substitute ALL_LINGUAS so we can use it in po/Makefile AC_SUBST(ALL_LINGUAS) # Set DATADIRNAME correctly if it is not set yet # (copied from glib-gettext.m4) if test -z "$DATADIRNAME"; then AC_LINK_IFELSE( [AC_LANG_PROGRAM([[]], [[extern int _nl_msg_cat_cntr; return _nl_msg_cat_cntr]])], [DATADIRNAME=share], [case $host in *-*-solaris*) dnl On Solaris, if bind_textdomain_codeset is in libc, dnl GNU format message catalog is always supported, dnl since both are added to the libc all together. dnl Hence, we'd like to go with DATADIRNAME=share dnl in this case. AC_CHECK_FUNC(bind_textdomain_codeset, [DATADIRNAME=share], [DATADIRNAME=lib]) ;; *) [DATADIRNAME=lib] ;; esac]) fi AC_SUBST(DATADIRNAME) IT_PO_SUBDIR([po]) dnl The following is very similar to dnl dnl AC_CONFIG_FILES([intltool-extract intltool-merge intltool-update]) dnl dnl with the following slight differences: dnl - the *.in files are in ac_aux_dir, dnl - if the file haven't changed upon reconfigure, it's not touched, dnl - the evaluation of the third parameter enables a hack which computes dnl the actual value of $libdir, dnl - the user sees "executing intltool commands", instead of dnl "creating intltool-extract" and such. dnl dnl Nothing crucial here, and we could use AC_CONFIG_FILES, if there were dnl a reason for it. AC_CONFIG_COMMANDS([intltool], [ for file in intltool-extract intltool-merge intltool-update; do sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \ -e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \ -e "s|@INTLTOOL_ICONV@|${INTLTOOL_ICONV}|g" \ -e "s|@INTLTOOL_MSGFMT@|${INTLTOOL_MSGFMT}|g" \ -e "s|@INTLTOOL_MSGMERGE@|${INTLTOOL_MSGMERGE}|g" \ -e "s|@INTLTOOL_XGETTEXT@|${INTLTOOL_XGETTEXT}|g" \ -e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \ < ${ac_aux_dir}/${file}.in > ${file}.out if cmp -s ${file} ${file}.out 2>/dev/null; then rm -f ${file}.out else mv -f ${file}.out ${file} fi chmod ugo+x ${file} chmod u+w ${file} done ], [INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}' prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir" INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' INTLTOOL_ICONV='${INTLTOOL_ICONV}' INTLTOOL_MSGFMT='${INTLTOOL_MSGFMT}' INTLTOOL_MSGMERGE='${INTLTOOL_MSGMERGE}' INTLTOOL_XGETTEXT='${INTLTOOL_XGETTEXT}']) ]) # IT_PO_SUBDIR(DIRNAME) # --------------------- # All po subdirs have to be declared with this macro; the subdir "po" is # declared by IT_PROG_INTLTOOL. # AC_DEFUN([IT_PO_SUBDIR], [AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS. dnl dnl The following CONFIG_COMMANDS should be exetuted at the very end dnl of config.status. AC_CONFIG_COMMANDS_PRE([ AC_CONFIG_COMMANDS([$1/stamp-it], [ rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp" >"$1/stamp-it.tmp" [sed '/^#/d s/^[[].*] *// /^[ ]*$/d '"s|^| $ac_top_srcdir/|" \ "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES" ] if test ! -f "$1/Makefile"; then AC_MSG_ERROR([$1/Makefile is not ready.]) fi mv "$1/Makefile" "$1/Makefile.tmp" [sed '/^POTFILES =/,/[^\\]$/ { /^POTFILES =/!d r $1/POTFILES } ' "$1/Makefile.tmp" >"$1/Makefile"] rm -f "$1/Makefile.tmp" mv "$1/stamp-it.tmp" "$1/stamp-it" ]) ])dnl ]) # deprecated macros AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL]) # A hint is needed for aclocal from Automake <= 1.9.4: # AC_DEFUN([AC_PROG_INTLTOOL], ...) katoob-0.5.9.1/m4/libcurl.m40000644000175000017500000002175610746617673012336 00000000000000# LIBCURL_CHECK_CONFIG ([DEFAULT-ACTION], [MINIMUM-VERSION], # [ACTION-IF-YES], [ACTION-IF-NO]) # ---------------------------------------------------------- # David Shaw May-09-2006 # # Checks for libcurl. DEFAULT-ACTION is the string yes or no to # specify whether to default to --with-libcurl or --without-libcurl. # If not supplied, DEFAULT-ACTION is yes. MINIMUM-VERSION is the # minimum version of libcurl to accept. Pass the version as a regular # version number like 7.10.1. If not supplied, any version is # accepted. ACTION-IF-YES is a list of shell commands to run if # libcurl was successfully found and passed the various tests. # ACTION-IF-NO is a list of shell commands that are run otherwise. # Note that using --without-libcurl does run ACTION-IF-NO. # # This macro #defines HAVE_LIBCURL if a working libcurl setup is # found, and sets @LIBCURL@ and @LIBCURL_CPPFLAGS@ to the necessary # values. Other useful defines are LIBCURL_FEATURE_xxx where xxx are # the various features supported by libcurl, and LIBCURL_PROTOCOL_yyy # where yyy are the various protocols supported by libcurl. Both xxx # and yyy are capitalized. See the list of AH_TEMPLATEs at the top of # the macro for the complete list of possible defines. Shell # variables $libcurl_feature_xxx and $libcurl_protocol_yyy are also # defined to 'yes' for those features and protocols that were found. # Note that xxx and yyy keep the same capitalization as in the # curl-config list (e.g. it's "HTTP" and not "http"). # # Users may override the detected values by doing something like: # LIBCURL="-lcurl" LIBCURL_CPPFLAGS="-I/usr/myinclude" ./configure # # For the sake of sanity, this macro assumes that any libcurl that is # found is after version 7.7.2, the first version that included the # curl-config script. Note that it is very important for people # packaging binary versions of libcurl to include this script! # Without curl-config, we can only guess what protocols are available, # or use curl_version_info to figure it out at runtime. AC_DEFUN([LIBCURL_CHECK_CONFIG], [ AH_TEMPLATE([LIBCURL_FEATURE_SSL],[Defined if libcurl supports SSL]) AH_TEMPLATE([LIBCURL_FEATURE_KRB4],[Defined if libcurl supports KRB4]) AH_TEMPLATE([LIBCURL_FEATURE_IPV6],[Defined if libcurl supports IPv6]) AH_TEMPLATE([LIBCURL_FEATURE_LIBZ],[Defined if libcurl supports libz]) AH_TEMPLATE([LIBCURL_FEATURE_ASYNCHDNS],[Defined if libcurl supports AsynchDNS]) AH_TEMPLATE([LIBCURL_FEATURE_IDN],[Defined if libcurl supports IDN]) AH_TEMPLATE([LIBCURL_FEATURE_SSPI],[Defined if libcurl supports SSPI]) AH_TEMPLATE([LIBCURL_FEATURE_NTLM],[Defined if libcurl supports NTLM]) AH_TEMPLATE([LIBCURL_PROTOCOL_HTTP],[Defined if libcurl supports HTTP]) AH_TEMPLATE([LIBCURL_PROTOCOL_HTTPS],[Defined if libcurl supports HTTPS]) AH_TEMPLATE([LIBCURL_PROTOCOL_FTP],[Defined if libcurl supports FTP]) AH_TEMPLATE([LIBCURL_PROTOCOL_FTPS],[Defined if libcurl supports FTPS]) AH_TEMPLATE([LIBCURL_PROTOCOL_FILE],[Defined if libcurl supports FILE]) AH_TEMPLATE([LIBCURL_PROTOCOL_TELNET],[Defined if libcurl supports TELNET]) AH_TEMPLATE([LIBCURL_PROTOCOL_LDAP],[Defined if libcurl supports LDAP]) AH_TEMPLATE([LIBCURL_PROTOCOL_DICT],[Defined if libcurl supports DICT]) AH_TEMPLATE([LIBCURL_PROTOCOL_TFTP],[Defined if libcurl supports TFTP]) AC_ARG_WITH(libcurl, AC_HELP_STRING([--with-libcurl=DIR],[look for the curl library in DIR]), [_libcurl_with=$withval],[_libcurl_with=ifelse([$1],,[yes],[$1])]) if test "$_libcurl_with" != "no" ; then AC_PROG_AWK _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[[1]]+256*A[[2]]+A[[3]]; print X;}'" _libcurl_try_link=yes if test -d "$_libcurl_with" ; then LIBCURL_CPPFLAGS="-I$withval/include" _libcurl_ldflags="-L$withval/lib" AC_PATH_PROG([_libcurl_config],[curl-config],["$withval/bin"], ["$withval/bin"]) else AC_PATH_PROG([_libcurl_config],[curl-config]) fi if test x$_libcurl_config != "x" ; then AC_CACHE_CHECK([for the version of libcurl], [libcurl_cv_lib_curl_version], [libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $[]2}'`]) _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse` _libcurl_wanted=`echo ifelse([$2],,[0],[$2]) | $_libcurl_version_parse` if test $_libcurl_wanted -gt 0 ; then AC_CACHE_CHECK([for libcurl >= version $2], [libcurl_cv_lib_version_ok], [ if test $_libcurl_version -ge $_libcurl_wanted ; then libcurl_cv_lib_version_ok=yes else libcurl_cv_lib_version_ok=no fi ]) fi if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then if test x"$LIBCURL_CPPFLAGS" = "x" ; then LIBCURL_CPPFLAGS=`$_libcurl_config --cflags` fi if test x"$LIBCURL" = "x" ; then LIBCURL=`$_libcurl_config --libs` # This is so silly, but Apple actually has a bug in their # curl-config script. Fixed in Tiger, but there are still # lots of Panther installs around. case "${host}" in powerpc-apple-darwin7*) LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'` ;; esac fi # All curl-config scripts support --feature _libcurl_features=`$_libcurl_config --feature` # Is it modern enough to have --protocols? (7.12.4) if test $_libcurl_version -ge 461828 ; then _libcurl_protocols=`$_libcurl_config --protocols` fi else _libcurl_try_link=no fi unset _libcurl_wanted fi if test $_libcurl_try_link = yes ; then # we didn't find curl-config, so let's see if the user-supplied # link line (or failing that, "-lcurl") is enough. LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"} AC_CACHE_CHECK([whether libcurl is usable], [libcurl_cv_lib_curl_usable], [ _libcurl_save_cppflags=$CPPFLAGS CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS" _libcurl_save_libs=$LIBS LIBS="$LIBCURL $LIBS" AC_LINK_IFELSE(AC_LANG_PROGRAM([#include ],[ /* Try and use a few common options to force a failure if we are missing symbols or can't link. */ int x; curl_easy_setopt(NULL,CURLOPT_URL,NULL); x=CURL_ERROR_SIZE; x=CURLOPT_WRITEFUNCTION; x=CURLOPT_FILE; x=CURLOPT_ERRORBUFFER; x=CURLOPT_STDERR; x=CURLOPT_VERBOSE; ]),libcurl_cv_lib_curl_usable=yes,libcurl_cv_lib_curl_usable=no) CPPFLAGS=$_libcurl_save_cppflags LIBS=$_libcurl_save_libs unset _libcurl_save_cppflags unset _libcurl_save_libs ]) if test $libcurl_cv_lib_curl_usable = yes ; then # Does curl_free() exist in this version of libcurl? # If not, fake it with free() _libcurl_save_cppflags=$CPPFLAGS CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS" _libcurl_save_libs=$LIBS LIBS="$LIBS $LIBCURL" AC_CHECK_FUNC(curl_free,, AC_DEFINE(curl_free,free, [Define curl_free() as free() if our version of curl lacks curl_free.])) CPPFLAGS=$_libcurl_save_cppflags LIBS=$_libcurl_save_libs unset _libcurl_save_cppflags unset _libcurl_save_libs AC_DEFINE(HAVE_LIBCURL,1, [Define to 1 if you have a functional curl library.]) AC_SUBST(LIBCURL_CPPFLAGS) AC_SUBST(LIBCURL) for _libcurl_feature in $_libcurl_features ; do AC_DEFINE_UNQUOTED(AS_TR_CPP(libcurl_feature_$_libcurl_feature),[1]) eval AS_TR_SH(libcurl_feature_$_libcurl_feature)=yes done if test "x$_libcurl_protocols" = "x" ; then # We don't have --protocols, so just assume that all # protocols are available _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT" if test x$libcurl_feature_SSL = xyes ; then _libcurl_protocols="$_libcurl_protocols HTTPS" # FTPS wasn't standards-compliant until version # 7.11.0 if test $_libcurl_version -ge 461568; then _libcurl_protocols="$_libcurl_protocols FTPS" fi fi fi for _libcurl_protocol in $_libcurl_protocols ; do AC_DEFINE_UNQUOTED(AS_TR_CPP(libcurl_protocol_$_libcurl_protocol),[1]) eval AS_TR_SH(libcurl_protocol_$_libcurl_protocol)=yes done else unset LIBCURL unset LIBCURL_CPPFLAGS fi fi unset _libcurl_try_link unset _libcurl_version_parse unset _libcurl_config unset _libcurl_feature unset _libcurl_features unset _libcurl_protocol unset _libcurl_protocols unset _libcurl_version unset _libcurl_ldflags fi if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then # This is the IF-NO path ifelse([$4],,:,[$4]) else # This is the IF-YES path ifelse([$3],,:,[$3]) fi unset _libcurl_with ])dnl katoob-0.5.9.1/m4/pkg.m40000644000175000017500000001211410746617673011447 00000000000000# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # # Copyright © 2004 Scott James Remnant . # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # PKG_PROG_PKG_CONFIG([MIN-VERSION]) # ---------------------------------- AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) fi if test -n "$PKG_CONFIG"; then _pkg_min_version=m4_default([$1], [0.9.0]) AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) PKG_CONFIG="" fi fi[]dnl ])# PKG_PROG_PKG_CONFIG # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # # Check to see whether a particular set of modules exists. Similar # to PKG_CHECK_MODULES(), but does not set variables or print errors. # # # Similar to PKG_CHECK_MODULES, make sure that the first instance of # this or PKG_CHECK_MODULES is called, or make sure to call # PKG_CHECK_EXISTS manually # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_EXISTS], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl if test -n "$PKG_CONFIG" && \ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then m4_ifval([$2], [$2], [:]) m4_ifvaln([$3], [else $3])dnl fi]) # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) # --------------------------------------------- m4_define([_PKG_CONFIG], [if test -n "$PKG_CONFIG"; then if test -n "$$1"; then pkg_cv_[]$1="$$1" else PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], [pkg_failed=yes]) fi else pkg_failed=untried fi[]dnl ])# _PKG_CONFIG # _PKG_SHORT_ERRORS_SUPPORTED # ----------------------------- AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi[]dnl ])# _PKG_SHORT_ERRORS_SUPPORTED # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], # [ACTION-IF-NOT-FOUND]) # # # Note that if there is a possibility the first call to # PKG_CHECK_MODULES might not happen, you should be sure to include an # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac # # # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl pkg_failed=no AC_MSG_CHECKING([for $1]) _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) _PKG_CONFIG([$1][_LIBS], [libs], [$2]) m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS and $1[]_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.]) if test $pkg_failed = yes; then _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"` else $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD ifelse([$4], , [AC_MSG_ERROR(dnl [Package requirements ($2) were not met: $$1_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. _PKG_TEXT ])], [$4]) elif test $pkg_failed = untried; then ifelse([$4], , [AC_MSG_FAILURE(dnl [The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. _PKG_TEXT To get pkg-config, see .])], [$4]) else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) ifelse([$3], , :, [$3]) fi[]dnl ])# PKG_CHECK_MODULES katoob-0.5.9.1/m4/Makefile.am0000644000175000017500000000007310746617673012461 00000000000000EXTRA_DIST = glib-gettext.m4 intltool.m4 libcurl.m4 pkg.m4 katoob-0.5.9.1/m4/Makefile.in0000644000175000017500000002521110746620160012454 00000000000000# Makefile.in generated by automake 1.8.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004 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@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = m4 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/glib-gettext.m4 \ $(top_srcdir)/m4/intltool.m4 $(top_srcdir)/m4/libcurl.m4 \ $(top_srcdir)/m4/pkg.m4 $(top_srcdir)/configure.in 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 = SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BZ2_LIBS = @BZ2_LIBS@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DBUS_CFLAGS = @DBUS_CFLAGS@ DBUS_FALSE = @DBUS_FALSE@ DBUS_LIBS = @DBUS_LIBS@ DBUS_TRUE = @DBUS_TRUE@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DICT_FALSE = @DICT_FALSE@ DICT_TRUE = @DICT_TRUE@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EMULATOR_FALSE = @EMULATOR_FALSE@ EMULATOR_TRUE = @EMULATOR_TRUE@ EXEEXT = @EXEEXT@ FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@ FRIBIDI_CONFIG = @FRIBIDI_CONFIG@ FRIBIDI_FALSE = @FRIBIDI_FALSE@ FRIBIDI_LIBS = @FRIBIDI_LIBS@ FRIBIDI_TRUE = @FRIBIDI_TRUE@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ GTKSOURCEVIEW_CFLAGS = @GTKSOURCEVIEW_CFLAGS@ GTKSOURCEVIEW_LIBS = @GTKSOURCEVIEW_LIBS@ HIGHLIGHT_FALSE = @HIGHLIGHT_FALSE@ HIGHLIGHT_TRUE = @HIGHLIGHT_TRUE@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_CAVES_RULE = @INTLTOOL_CAVES_RULE@ INTLTOOL_DESKTOP_RULE = @INTLTOOL_DESKTOP_RULE@ INTLTOOL_DIRECTORY_RULE = @INTLTOOL_DIRECTORY_RULE@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_ICONV = @INTLTOOL_ICONV@ INTLTOOL_KBD_RULE = @INTLTOOL_KBD_RULE@ INTLTOOL_KEYS_RULE = @INTLTOOL_KEYS_RULE@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_MSGFMT = @INTLTOOL_MSGFMT@ INTLTOOL_MSGMERGE = @INTLTOOL_MSGMERGE@ INTLTOOL_OAF_RULE = @INTLTOOL_OAF_RULE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_PONG_RULE = @INTLTOOL_PONG_RULE@ INTLTOOL_PROP_RULE = @INTLTOOL_PROP_RULE@ INTLTOOL_SCHEMAS_RULE = @INTLTOOL_SCHEMAS_RULE@ INTLTOOL_SERVER_RULE = @INTLTOOL_SERVER_RULE@ INTLTOOL_SERVICE_RULE = @INTLTOOL_SERVICE_RULE@ INTLTOOL_SHEET_RULE = @INTLTOOL_SHEET_RULE@ INTLTOOL_SOUNDLIST_RULE = @INTLTOOL_SOUNDLIST_RULE@ INTLTOOL_THEME_RULE = @INTLTOOL_THEME_RULE@ INTLTOOL_UI_RULE = @INTLTOOL_UI_RULE@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_XAM_RULE = @INTLTOOL_XAM_RULE@ INTLTOOL_XGETTEXT = @INTLTOOL_XGETTEXT@ INTLTOOL_XML_NOMERGE_RULE = @INTLTOOL_XML_NOMERGE_RULE@ INTLTOOL_XML_RULE = @INTLTOOL_XML_RULE@ ISOCODES_CFLAGS = @ISOCODES_CFLAGS@ ISOCODES_FALSE = @ISOCODES_FALSE@ ISOCODES_LIBS = @ISOCODES_LIBS@ ISOCODES_TRUE = @ISOCODES_TRUE@ KATOOB_CFLAGS = @KATOOB_CFLAGS@ KATOOB_ICON = @KATOOB_ICON@ KATOOB_LIBS = @KATOOB_LIBS@ LDFLAGS = @LDFLAGS@ LIBCURL = @LIBCURL@ LIBCURL_CPPFLAGS = @LIBCURL_CPPFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAEMO_CFLAGS = @MAEMO_CFLAGS@ MAEMO_FALSE = @MAEMO_FALSE@ MAEMO_LIBS = @MAEMO_LIBS@ MAEMO_TRUE = @MAEMO_TRUE@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MULTIPRESS_FALSE = @MULTIPRESS_FALSE@ MULTIPRESS_TRUE = @MULTIPRESS_TRUE@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ PRINT_CFLAGS = @PRINT_CFLAGS@ PRINT_FALSE = @PRINT_FALSE@ PRINT_LIBS = @PRINT_LIBS@ PRINT_TRUE = @PRINT_TRUE@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SPELL_CFLAGS = @SPELL_CFLAGS@ SPELL_FALSE = @SPELL_FALSE@ SPELL_LIBS = @SPELL_LIBS@ SPELL_TRUE = @SPELL_TRUE@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WIN32_FALSE = @WIN32_FALSE@ WIN32_TRUE = @WIN32_TRUE@ XGETTEXT = @XGETTEXT@ X_OSSO_SERVICE = @X_OSSO_SERVICE@ _libcurl_config = @_libcurl_config@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ bindir = @bindir@ build_alias = @build_alias@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ EXTRA_DIST = glib-gettext.m4 intltool.m4 libcurl.m4 pkg.m4 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 \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu m4/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu m4/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 uninstall-info-am: tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$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: -rm -f $(CONFIG_CLEAN_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 info: info-am info-am: install-data-am: install-exec-am: install-info: install-info-am install-man: 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-info-am .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-exec \ install-exec-am install-info install-info-am install-man \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic pdf pdf-am ps ps-am uninstall uninstall-am \ uninstall-info-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: katoob-0.5.9.1/maemo/0000777000175000017500000000000010746622467011264 500000000000000katoob-0.5.9.1/maemo/Makefile.am0000644000175000017500000000050010746617674013233 00000000000000EXTRA_DIST = katoob.service.in install-data-local: if MAEMO $(top_srcdir)/mkinstalldirs $(DESTDIR)/usr/share/dbus-1/services/ $(INSTALL_DATA) $(srcdir)/katoob.service $(DESTDIR)/usr/share/dbus-1/services/katoob.service endif uninstall-local: if MAEMO rm -f $(DESTDIR)/usr/share/dbus-1/services/katoob.service endif katoob-0.5.9.1/maemo/Makefile.in0000644000175000017500000002623310746620160013237 00000000000000# Makefile.in generated by automake 1.8.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004 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@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = maemo DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(srcdir)/katoob.service.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/glib-gettext.m4 \ $(top_srcdir)/m4/intltool.m4 $(top_srcdir)/m4/libcurl.m4 \ $(top_srcdir)/m4/pkg.m4 $(top_srcdir)/configure.in 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 = katoob.service SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BZ2_LIBS = @BZ2_LIBS@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DBUS_CFLAGS = @DBUS_CFLAGS@ DBUS_FALSE = @DBUS_FALSE@ DBUS_LIBS = @DBUS_LIBS@ DBUS_TRUE = @DBUS_TRUE@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DICT_FALSE = @DICT_FALSE@ DICT_TRUE = @DICT_TRUE@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EMULATOR_FALSE = @EMULATOR_FALSE@ EMULATOR_TRUE = @EMULATOR_TRUE@ EXEEXT = @EXEEXT@ FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@ FRIBIDI_CONFIG = @FRIBIDI_CONFIG@ FRIBIDI_FALSE = @FRIBIDI_FALSE@ FRIBIDI_LIBS = @FRIBIDI_LIBS@ FRIBIDI_TRUE = @FRIBIDI_TRUE@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ GTKSOURCEVIEW_CFLAGS = @GTKSOURCEVIEW_CFLAGS@ GTKSOURCEVIEW_LIBS = @GTKSOURCEVIEW_LIBS@ HIGHLIGHT_FALSE = @HIGHLIGHT_FALSE@ HIGHLIGHT_TRUE = @HIGHLIGHT_TRUE@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_CAVES_RULE = @INTLTOOL_CAVES_RULE@ INTLTOOL_DESKTOP_RULE = @INTLTOOL_DESKTOP_RULE@ INTLTOOL_DIRECTORY_RULE = @INTLTOOL_DIRECTORY_RULE@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_ICONV = @INTLTOOL_ICONV@ INTLTOOL_KBD_RULE = @INTLTOOL_KBD_RULE@ INTLTOOL_KEYS_RULE = @INTLTOOL_KEYS_RULE@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_MSGFMT = @INTLTOOL_MSGFMT@ INTLTOOL_MSGMERGE = @INTLTOOL_MSGMERGE@ INTLTOOL_OAF_RULE = @INTLTOOL_OAF_RULE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_PONG_RULE = @INTLTOOL_PONG_RULE@ INTLTOOL_PROP_RULE = @INTLTOOL_PROP_RULE@ INTLTOOL_SCHEMAS_RULE = @INTLTOOL_SCHEMAS_RULE@ INTLTOOL_SERVER_RULE = @INTLTOOL_SERVER_RULE@ INTLTOOL_SERVICE_RULE = @INTLTOOL_SERVICE_RULE@ INTLTOOL_SHEET_RULE = @INTLTOOL_SHEET_RULE@ INTLTOOL_SOUNDLIST_RULE = @INTLTOOL_SOUNDLIST_RULE@ INTLTOOL_THEME_RULE = @INTLTOOL_THEME_RULE@ INTLTOOL_UI_RULE = @INTLTOOL_UI_RULE@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_XAM_RULE = @INTLTOOL_XAM_RULE@ INTLTOOL_XGETTEXT = @INTLTOOL_XGETTEXT@ INTLTOOL_XML_NOMERGE_RULE = @INTLTOOL_XML_NOMERGE_RULE@ INTLTOOL_XML_RULE = @INTLTOOL_XML_RULE@ ISOCODES_CFLAGS = @ISOCODES_CFLAGS@ ISOCODES_FALSE = @ISOCODES_FALSE@ ISOCODES_LIBS = @ISOCODES_LIBS@ ISOCODES_TRUE = @ISOCODES_TRUE@ KATOOB_CFLAGS = @KATOOB_CFLAGS@ KATOOB_ICON = @KATOOB_ICON@ KATOOB_LIBS = @KATOOB_LIBS@ LDFLAGS = @LDFLAGS@ LIBCURL = @LIBCURL@ LIBCURL_CPPFLAGS = @LIBCURL_CPPFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAEMO_CFLAGS = @MAEMO_CFLAGS@ MAEMO_FALSE = @MAEMO_FALSE@ MAEMO_LIBS = @MAEMO_LIBS@ MAEMO_TRUE = @MAEMO_TRUE@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MULTIPRESS_FALSE = @MULTIPRESS_FALSE@ MULTIPRESS_TRUE = @MULTIPRESS_TRUE@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ PRINT_CFLAGS = @PRINT_CFLAGS@ PRINT_FALSE = @PRINT_FALSE@ PRINT_LIBS = @PRINT_LIBS@ PRINT_TRUE = @PRINT_TRUE@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SPELL_CFLAGS = @SPELL_CFLAGS@ SPELL_FALSE = @SPELL_FALSE@ SPELL_LIBS = @SPELL_LIBS@ SPELL_TRUE = @SPELL_TRUE@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WIN32_FALSE = @WIN32_FALSE@ WIN32_TRUE = @WIN32_TRUE@ XGETTEXT = @XGETTEXT@ X_OSSO_SERVICE = @X_OSSO_SERVICE@ _libcurl_config = @_libcurl_config@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ bindir = @bindir@ build_alias = @build_alias@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ EXTRA_DIST = katoob.service.in 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 \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu maemo/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu maemo/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 katoob.service: $(top_builddir)/config.status $(srcdir)/katoob.service.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ uninstall-info-am: tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$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: -rm -f $(CONFIG_CLEAN_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 info: info-am info-am: install-data-am: install-data-local install-exec-am: install-info: install-info-am install-man: 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-info-am uninstall-local .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-data-local install-exec install-exec-am install-info \ install-info-am install-man install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ pdf-am ps ps-am uninstall uninstall-am uninstall-info-am \ uninstall-local install-data-local: @MAEMO_TRUE@ $(top_srcdir)/mkinstalldirs $(DESTDIR)/usr/share/dbus-1/services/ @MAEMO_TRUE@ $(INSTALL_DATA) $(srcdir)/katoob.service $(DESTDIR)/usr/share/dbus-1/services/katoob.service uninstall-local: @MAEMO_TRUE@ rm -f $(DESTDIR)/usr/share/dbus-1/services/katoob.service # 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: katoob-0.5.9.1/maemo/katoob.service.in0000644000175000017500000000007310746617674014452 00000000000000[D-BUS Service] Name=org.foolab.katoob Exec=@prefix@katoob katoob-0.5.9.1/po/0000777000175000017500000000000010746622467010604 500000000000000katoob-0.5.9.1/po/ChangeLog0000644000175000017500000000000010746617675012265 00000000000000katoob-0.5.9.1/po/Makefile.in.in0000644000175000017500000001532110746620152013161 00000000000000# Makefile for program source directory in GNU NLS utilities package. # Copyright (C) 1995, 1996, 1997 by Ulrich Drepper # # This file file be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU Public License # but which still want to provide support for the GNU gettext functionality. # Please note that the actual code is *not* freely available. # # - Modified by Owen Taylor to use GETTEXT_PACKAGE # instead of PACKAGE and to look for po2tbl in ./ not in intl/ # # - Modified by jacob berkman to install # Makefile.in.in and po2tbl.sed.in for use with glib-gettextize # # - Modified by Rodney Dawes for use with intltool # # We have the following line for use by intltoolize: # INTLTOOL_MAKEFILE GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ PACKAGE = @PACKAGE@ VERSION = @VERSION@ SHELL = /bin/sh srcdir = @srcdir@ top_srcdir = @top_srcdir@ top_builddir = @top_builddir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ datadir = @datadir@ datarootdir = @datarootdir@ libdir = @libdir@ DATADIRNAME = @DATADIRNAME@ itlocaledir = $(prefix)/$(DATADIRNAME)/locale subdir = po install_sh = @install_sh@ # Automake >= 1.8 provides @mkdir_p@. # Until it can be supposed, use the safe fallback: mkdir_p = $(install_sh) -d INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ GMSGFMT = @GMSGFMT@ MSGFMT = @MSGFMT@ XGETTEXT = @XGETTEXT@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ MSGMERGE = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --dist GENPOT = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --pot ALL_LINGUAS = @ALL_LINGUAS@ PO_LINGUAS=$(shell if test -r $(srcdir)/LINGUAS; then grep -v "^\#" $(srcdir)/LINGUAS; fi) USER_LINGUAS=$(shell if test -n "$(LINGUAS)"; then LLINGUAS="$(LINGUAS)"; ALINGUAS="$(ALL_LINGUAS)"; for lang in $$LLINGUAS; do if test -n "`grep ^$$lang$$ $(srcdir)/LINGUAS`" -o -n "`echo $$ALINGUAS|grep ' ?$$lang ?'`"; then printf "$$lang "; fi; done; fi) USE_LINGUAS=$(shell if test -n "$(USER_LINGUAS)"; then LLINGUAS="$(USER_LINGUAS)"; else if test -n "$(PO_LINGUAS)"; then LLINGUAS="$(PO_LINGUAS)"; else LLINGUAS="$(ALL_LINGUAS)"; fi; fi; for lang in $$LLINGUAS; do printf "$$lang "; done) POFILES=$(shell LINGUAS="$(USE_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.po "; done) DISTFILES = ChangeLog Makefile.in.in POTFILES.in $(POFILES) EXTRA_DISTFILES = POTFILES.skip Makevars LINGUAS POTFILES = \ # This comment gets stripped out CATALOGS=$(shell LINGUAS="$(USE_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.gmo "; done) .SUFFIXES: .SUFFIXES: .po .pox .gmo .mo .msg .cat .po.pox: $(MAKE) $(GETTEXT_PACKAGE).pot $(MSGMERGE) $< $(GETTEXT_PACKAGE).pot -o $*.pox .po.mo: $(MSGFMT) -o $@ $< .po.gmo: file=`echo $* | sed 's,.*/,,'`.gmo \ && rm -f $$file && $(GMSGFMT) -o $$file $< .po.cat: sed -f ../intl/po2msg.sed < $< > $*.msg \ && rm -f $@ && gencat $@ $*.msg all: all-@USE_NLS@ all-yes: $(CATALOGS) all-no: $(GETTEXT_PACKAGE).pot: $(POTFILES) $(GENPOT) install: install-data install-data: install-data-@USE_NLS@ install-data-no: all install-data-yes: all $(mkdir_p) $(DESTDIR)$(itlocaledir) linguas="$(USE_LINGUAS)"; \ for lang in $$linguas; do \ dir=$(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES; \ $(mkdir_p) $$dir; \ if test -r $$lang.gmo; then \ $(INSTALL_DATA) $$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \ echo "installing $$lang.gmo as $$dir/$(GETTEXT_PACKAGE).mo"; \ else \ $(INSTALL_DATA) $(srcdir)/$$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \ echo "installing $(srcdir)/$$lang.gmo as" \ "$$dir/$(GETTEXT_PACKAGE).mo"; \ fi; \ if test -r $$lang.gmo.m; then \ $(INSTALL_DATA) $$lang.gmo.m $$dir/$(GETTEXT_PACKAGE).mo.m; \ echo "installing $$lang.gmo.m as $$dir/$(GETTEXT_PACKAGE).mo.m"; \ else \ if test -r $(srcdir)/$$lang.gmo.m ; then \ $(INSTALL_DATA) $(srcdir)/$$lang.gmo.m \ $$dir/$(GETTEXT_PACKAGE).mo.m; \ echo "installing $(srcdir)/$$lang.gmo.m as" \ "$$dir/$(GETTEXT_PACKAGE).mo.m"; \ else \ true; \ fi; \ fi; \ done # Empty stubs to satisfy archaic automake needs dvi info tags TAGS ID: # Define this as empty until I found a useful application. install-exec installcheck: uninstall: linguas="$(USE_LINGUAS)"; \ for lang in $$linguas; do \ rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo; \ rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo.m; \ done check: all $(GETTEXT_PACKAGE).pot rm -f missing notexist srcdir=$(srcdir) $(INTLTOOL_UPDATE) -m if [ -r missing -o -r notexist ]; then \ exit 1; \ fi mostlyclean: rm -f *.pox $(GETTEXT_PACKAGE).pot *.old.po cat-id-tbl.tmp rm -f .intltool-merge-cache clean: mostlyclean distclean: clean rm -f Makefile Makefile.in POTFILES stamp-it rm -f *.mo *.msg *.cat *.cat.m *.gmo maintainer-clean: distclean @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." rm -f Makefile.in.in distdir = ../$(PACKAGE)-$(VERSION)/$(subdir) dist distdir: $(DISTFILES) dists="$(DISTFILES)"; \ extra_dists="$(EXTRA_DISTFILES)"; \ for file in $$extra_dists; do \ test -f $(srcdir)/$$file && dists="$$dists $(srcdir)/$$file"; \ done; \ for file in $$dists; do \ test -f $$file || file="$(srcdir)/$$file"; \ ln $$file $(distdir) 2> /dev/null \ || cp -p $$file $(distdir); \ done update-po: Makefile $(MAKE) $(GETTEXT_PACKAGE).pot tmpdir=`pwd`; \ linguas="$(USE_LINGUAS)"; \ for lang in $$linguas; do \ echo "$$lang:"; \ result="`$(MSGMERGE) -o $$tmpdir/$$lang.new.po $$lang`"; \ if $$result; then \ if cmp $(srcdir)/$$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ :; \ else \ echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ rm -f $$tmpdir/$$lang.new.po; \ exit 1; \ fi; \ fi; \ else \ echo "msgmerge for $$lang.gmo failed!"; \ rm -f $$tmpdir/$$lang.new.po; \ fi; \ done Makefile POTFILES: stamp-it @if test ! -f $@; then \ rm -f stamp-it; \ $(MAKE) stamp-it; \ fi stamp-it: Makefile.in.in $(top_builddir)/config.status POTFILES.in cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/Makefile.in CONFIG_HEADERS= CONFIG_LINKS= \ $(SHELL) ./config.status # Tell versions [3.59,3.63) of GNU make not to export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: katoob-0.5.9.1/po/POTFILES.in0000644000175000017500000000315310746617675012304 00000000000000[encoding: UTF-8] katoob.desktop.in src/aboutdialog.cc src/aboutdialog.hh src/applets.cc src/applets.hh src/conf.cc src/conf.hh src/dbus.cc src/dbus.hh src/dialogs.cc src/dialogs.hh src/dict.cc src/dict.hh src/document.cc src/document.hh src/emulator.cc src/emulator.hh src/encodings.cc src/encodings.hh src/execdialog.cc src/execdialog.hh src/export.cc src/export.hh src/filedialog.cc src/filedialog.hh src/import.cc src/import.hh src/inputwindow.cc src/inputwindow.hh src/isocodes.cc src/isocodes.hh src/katoob.cc src/katoob.hh src/label.cc src/label.hh src/macros.h src/maemo-wrapper.cc src/maemo-wrapper.hh src/main.cc src/mdi.cc src/mdi.hh src/menubar.cc src/menubar.hh src/multipress.cc src/multipress.hh src/multipresswindow.cc src/multipresswindow.hh src/network.cc src/network.hh src/openlocationdialog.cc src/openlocationdialog.hh src/pagesetup.cc src/pagesetup.hh src/pipe.cc src/pipe.hh src/preferencesdialog.cc src/preferencesdialog.hh src/previewdialog.cc src/previewdialog.hh src/print.cc src/printdialog.cc src/printdialog.hh src/print.hh src/printsettings.cc src/printsettings.hh src/replacedialog.cc src/replacedialog.hh src/searchdialog.cc src/searchdialog.hh src/shape_arabic.c src/shape_arabic.h src/sourcemanager.cc src/sourcemanager.hh src/sourceview.cc src/sourceview.hh src/spell.cc src/spelldialog.cc src/spelldialog.hh src/spell.hh src/spellmenu.cc src/spellmenu.hh src/statusbar.cc src/statusbar.hh src/tempfile.cc src/tempfile.hh src/textbuffer.cc src/textbuffer.hh src/textview.cc src/textview.hh src/toolbar.cc src/toolbar.hh src/undoredo.cc src/undoredo.hh src/utils.cc src/utils.hh src/window.cc src/window.hh katoob-0.5.9.1/po/ar.po0000644000175000017500000007476010746617675011505 00000000000000# translation of ar.po to Arabic # Arabic translation for Katoob # Copyright (C) 2002, 2007 Free Software Foundation, Inc. # # Mohammed Sameer , 2002. # Khaled Hosny , 2007. msgid "" msgstr "" "Project-Id-Version: ar\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2007-12-18 12:04+0200\n" "PO-Revision-Date: 2007-12-18 12:09+0200\n" "Last-Translator: Khaled Hosny \n" "Language-Team: Arabic \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" "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n>=3 && n<=10 ? 3 : n>=11 && n<=99 ? 4 : 5;\n" #: ../katoob.desktop.in.h:1 ../src/aboutdialog.cc:66 msgid "Katoob" msgstr "كتوب" #: ../katoob.desktop.in.h:2 msgid "Multilingual Unicode Text Editor" msgstr "محرر نصوص متعدد اللغات" #: ../src/aboutdialog.cc:51 msgid "" "Katoob 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." msgstr "" "كتوب برنامج حر، يمكنك توزيعه و/أو تعديله حسب بنود رخصة جنو العمومية كما " "نشرتها مؤسسة البرامج الحرة، الإصدار الثاني أو أي إصدار أحدث (حسب رغبتك)." #: ../src/aboutdialog.cc:56 msgid "" "Katoob 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." msgstr "" "كتوب يوزع على أمل أن يكون مفيدًا، ولكن دون أية ضمانات، بما في ذلك ضمانات " "قابلية البرنامج للتسويق أو الملاءمة لغرض معين. انظر نص رخصة جنو العمومية " "لمزيد من التفاصيل." #: ../src/aboutdialog.cc:61 msgid "" "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" msgstr "" "من المفترض أنك تلقيت نسخة من رخصة جنو العمومية مع هذا البرنامج؛ إذا لم يحدث " "هذا فاكتب إلى:\n" "Free Software Fondation Inc., 59 Temple Place - Suite 330, Boston, MA 02111 " "- 1307, USA" #: ../src/aboutdialog.cc:71 msgid "Copyright © 2006, 2007 Mohammed Sameer." msgstr "حقوق النسخ © 2006، 2007 محمد سمير." #: ../src/aboutdialog.cc:73 ../src/aboutdialog.cc:76 msgid "Mohammed Sameer" msgstr "محمد سمير" #: ../src/aboutdialog.cc:77 msgid "Mostafa Hussein" msgstr "مصطفى حسين" #: ../src/aboutdialog.cc:80 msgid "A lightweight multilingual unicode and bidi aware text editor" msgstr "محرر نصوص متعدد اللغات يراعي يونيكود وثنائية الاتجاه" #: ../src/aboutdialog.cc:81 msgid "translator-credits" msgstr "" "محمد سمير\n" "خالد حسني" #: ../src/applets.cc:55 msgid "_Enable undo, redo\t" msgstr "اع_رض قائمة التراجع\t" #: ../src/applets.cc:57 msgid "Keep a history of recently closed documents" msgstr "احفظ سجل بالمستندات المغلقة حديثا" #: ../src/applets.cc:59 msgid "" "Undo history size\n" "(0 for unlimited)" msgstr "" "عدد المرات للتراجع\n" "(اختر 0 لعدد غير محدود)" #: ../src/applets.cc:60 msgid "" "Executed commands history size\n" "(0 for unlimited)" msgstr "" "حجم سجل الأوامر المنفذة\n" "(اختر 0 لعدد غير محدود)" #: ../src/applets.cc:61 msgid "" "Closed documents history size\n" "(0 for unlimited)" msgstr "" "حجم سجل المستندات المغلقة\n" "(اختر 0 لعدد غير محدود)" #: ../src/applets.cc:122 msgid "Show the extra _buttons" msgstr "اعرض الأزرار الإ_ضافية" #: ../src/applets.cc:123 msgid "Show the _Main Toolbar" msgstr "اعرض شريط الأدوات ال_رئيسي" #: ../src/applets.cc:124 msgid "Show the _Extended Toolbar" msgstr "اعرض شريط الأدوات الإ_ضافي" #: ../src/applets.cc:125 msgid "Show the _Statusbar" msgstr "اعرض شريط ال_حاله" #: ../src/applets.cc:126 msgid "Enable re_cent menu" msgstr "اعرض قائمة الملفات الح_ديثة" #: ../src/applets.cc:127 msgid "Show the _close button on each tab label" msgstr "اعرض زر الإ_غلاق لكل ملف مفتوح" #: ../src/applets.cc:128 msgid "" "No. of recent entries\n" "(0 for unlimited)" msgstr "" "عدد الملفات الحديثة\n" "(اختر 0 لعدد غير محدود)" #: ../src/applets.cc:129 msgid "Show the toolbar as" msgstr "اعرض شريط الأدوات" #: ../src/applets.cc:130 ../src/applets.cc:159 ../src/menubar.cc:318 msgid "Text only" msgstr "نص فقط" #. TODO: Disable these when the main toolbar is not shown. #: ../src/applets.cc:131 ../src/applets.cc:162 ../src/menubar.cc:315 msgid "Icons only" msgstr "أيقونات فقط" #: ../src/applets.cc:132 ../src/applets.cc:168 ../src/applets.cc:350 #: ../src/applets.cc:383 ../src/applets.cc:392 ../src/menubar.cc:321 msgid "Both" msgstr "كلاهما" #: ../src/applets.cc:133 ../src/applets.cc:165 ../src/menubar.cc:324 msgid "Text beside icons" msgstr "نص بجانب الأيقونات" #: ../src/applets.cc:217 msgid "_Show tabs" msgstr "ا_عرض الألسنة" #: ../src/applets.cc:218 msgid "_Enable tabs menu" msgstr "اعر_ض قائمة الألسنة" #: ../src/applets.cc:219 msgid "Scro_ll tabs" msgstr "_قائمة تمرير الألسنة" #: ../src/applets.cc:220 msgid "Show the tabs at the" msgstr "مكان الألسنة" #: ../src/applets.cc:221 ../src/applets.cc:282 ../src/applets.cc:846 msgid "Top" msgstr "أعلى" #: ../src/applets.cc:222 ../src/applets.cc:273 msgid "Bottom" msgstr "أسفل" #: ../src/applets.cc:223 ../src/applets.cc:276 ../src/applets.cc:348 #: ../src/applets.cc:389 msgid "Right" msgstr "يمين" #: ../src/applets.cc:224 ../src/applets.cc:279 ../src/applets.cc:349 #: ../src/applets.cc:386 ../src/applets.cc:845 msgid "Left" msgstr "يسار" #: ../src/applets.cc:226 msgid "Color for read only tabs" msgstr "لون ألسنة القراءة فقط" #: ../src/applets.cc:227 msgid "Color for modified tabs" msgstr "لون الألسنة ذات التعديلات" #: ../src/applets.cc:228 msgid "Color for normal tabs" msgstr "اللون التلقائي للألسنة" #: ../src/applets.cc:341 msgid "Text _Wrapping is on by default" msgstr "_طي النص هو الوضع الافتراضي" #: ../src/applets.cc:342 msgid "Show _Line numbers by default" msgstr "اعرض أرقام الأ_سطر" #: ../src/applets.cc:343 msgid "Use the default _font" msgstr "استخدم ال_خط الافتراضي" #: ../src/applets.cc:345 msgid "_Automatic syntax highlighting for known file types" msgstr "توضيح التركيب للملفات المعروفة آل_يا" #: ../src/applets.cc:347 msgid "Line numbers position" msgstr "مكان أرقام الأسطر" #: ../src/applets.cc:351 msgid "Font" msgstr "الخط" #: ../src/applets.cc:353 msgid "Tab width" msgstr "عرض اللسان" #: ../src/applets.cc:450 msgid "_Use the locale encoding" msgstr "ا_ستخدم الترميز المحلّي" #: ../src/applets.cc:451 ../src/applets.cc:452 msgid "Specify an encoding" msgstr "حدد ترميزا" #: ../src/applets.cc:456 msgid "File open encoding" msgstr "ترميز الفتح" #: ../src/applets.cc:457 msgid "File save encoding" msgstr "ترميز الحفظ" #: ../src/applets.cc:502 msgid "_Backup files before saving." msgstr "_نسخة احتياطية للملفات قبل الحفظ" #: ../src/applets.cc:503 msgid "Backup extension" msgstr "امتداد النسخ الاحتياطية" #: ../src/applets.cc:534 ../src/menubar.cc:362 msgid "_Autocheck Spelling" msgstr "تدقيق إملائي آ_لي" #. misspelled_label.set_text(_("Misspelled words color")); #: ../src/applets.cc:536 msgid "Choose the default dictionary" msgstr "اختر القاموس الافتراضي" #: ../src/applets.cc:586 msgid "Printing font" msgstr "خط الطباعة" #: ../src/applets.cc:590 msgid "_Enable advanced options" msgstr "_فعِّل الخيارات المتقدمة" #: ../src/applets.cc:594 msgid "X Dot Per Inch" msgstr "س نقطة في البوصة" #: ../src/applets.cc:595 msgid "Y Dot Per Inch" msgstr "ص نقطة في البوصة" #: ../src/applets.cc:652 msgid "_Enable the dictionary." msgstr "_فعِّل القاموس." #: ../src/applets.cc:653 msgid "Host" msgstr "المستضيف" #: ../src/applets.cc:654 msgid "_List dictionaries" msgstr "ا_سرد القواميس" #: ../src/applets.cc:656 msgid "Port" msgstr "المنفذ" #: ../src/applets.cc:667 ../src/applets.cc:675 ../src/preferencesdialog.cc:75 msgid "Dictionary" msgstr "القاموس" #: ../src/applets.cc:676 msgid "Description" msgstr "الوصف" #: ../src/applets.cc:681 msgid "Not Available." msgstr "الخدمة غير متوفرة." #: ../src/applets.cc:738 ../src/applets.cc:741 msgid "Failed to get the available dictionaries." msgstr "تعذّر الحصول على القواميس المتاحة." #: ../src/applets.cc:768 msgid "Please provide a dict server" msgstr "فضلًا حدد خادم dict" #: ../src/applets.cc:797 msgid "_Milliseconds before multipress will accept the current value." msgstr "الزمن بالمللي ثانيه قبل أن تُقبل القيمة الحالية." #: ../src/applets.cc:827 msgid "" "Number of remote addresses to save\n" "(0 for unlimited)" msgstr "" "عدد المواقع المحفوظة\n" "(اختر 0 لعدد غير محدود)" #: ../src/applets.cc:830 msgid "_Insert into the active document enabled by default ?" msgstr "الإ_دراج في الملف المفتوح ممكن في الوضع الافتراضي ؟" #: ../src/applets.cc:847 msgid "Width" msgstr "العرض" #: ../src/applets.cc:848 msgid "Height" msgstr "الارتفاع" #: ../src/applets.cc:850 msgid "Save all the program _settings on exit" msgstr "احفظ الإ_عدادات عند الخروج" #: ../src/applets.cc:851 msgid "Save the main window _attributes on exit" msgstr "احفظ إعدا_دات النافذة الرئيسية عند الخروج" #: ../src/applets.cc:856 msgid "Window position" msgstr "مكان النافذة الرئيسية" #: ../src/applets.cc:857 msgid "Window size" msgstr "مقاس النافذة الرئيسية" #: ../src/applets.cc:925 msgid "Network timeout (In seconds):" msgstr "مهلة الشبكة (بالثواني):" #: ../src/applets.cc:926 msgid "Proxy host:" msgstr "مستضيف الوكيل:" #: ../src/applets.cc:927 msgid "Proxy port:" msgstr "منفذ الوكيل:" #: ../src/applets.cc:928 msgid "Proxy type:" msgstr "نوع الوكيل:" #: ../src/applets.cc:930 ../src/menubar.cc:798 msgid "None" msgstr "بدون" #: ../src/applets.cc:931 msgid "Get from the environment" msgstr "احصل عليه من البيئة" #: ../src/applets.cc:932 msgid "HTTP" msgstr "HTTP" #: ../src/applets.cc:933 msgid "SOCKS4" msgstr "SOCKS4" #: ../src/applets.cc:934 msgid "SOCKS5" msgstr "SOCKS5" #: ../src/applets.cc:948 msgid "Tunnel traffic through the proxy" msgstr "مرور النفق عبر الوكيل" #: ../src/applets.cc:950 msgid "Use proxy authentication" msgstr "استخدم استيثاق الوكيل" #: ../src/applets.cc:951 msgid "Proxy username:" msgstr "اسم مستخدم الوكيل:" #: ../src/applets.cc:952 msgid "Proxy password:" msgstr "كلمة سر الوكيل:" #: ../src/dialogs.cc:70 msgid "Insert to document" msgstr "أدرِج في الملف" #: ../src/dialogs.cc:98 ../src/toolbar.cc:52 msgid "Goto Line" msgstr "اذهب إلى سطر" #: ../src/dialogs.cc:105 msgid "Line:" msgstr "سطر:" #: ../src/dialogs.cc:139 msgid "Please wait..." msgstr "فضلًا انتظر..." #: ../src/dict.cc:60 msgid "Invalid daatabase. Please reconfigure the dictionary in use." msgstr "قاعدة بيانات غير صحيحة. فضلًا أعد إعداد القاموس المستخدم." #: ../src/dict.cc:64 msgid "No matches were found" msgstr "لم يُعثر على نتائج" #: ../src/dict.cc:122 ../src/dict.cc:139 msgid "No databases were found." msgstr "لم يُعثر على قاعدة البيانات." #: ../src/document.cc:109 msgid " Is a directory." msgstr " دليل" #: ../src/document.cc:133 ../src/mdi.cc:295 ../src/mdi.cc:1107 #, c-format msgid "Couldn't detect the encoding of %s" msgstr "لا يمكن تحديد ترميز الملف %s" #: ../src/document.cc:193 msgid "Couldn't detect the encoding of the text." msgstr "لا يمكن تحديد ترميز النص" #: ../src/document.cc:285 #, c-format msgid "Failed to create the autorecovery file %s" msgstr "فشل إنشاء ملف الاستعادة التلقائية %s" #: ../src/document.cc:1240 msgid "Define " msgstr "عرِّف " #: ../src/document.cc:1255 msgid "Spelling Suggestions" msgstr "اقتراحات المدقق الإملائي" #: ../src/document.cc:1263 #, c-format msgid "Add \"%s\" to dictionary" msgstr "أضف \"%s\" للقاموس" #. TODO: Use italics markup. #: ../src/document.cc:1272 msgid "no suggestions" msgstr "لا توجد اقتراحات" #: ../src/document.cc:1283 msgid "More..." msgstr "المزيد..." #: ../src/encodings.cc:347 ../src/encodings.cc:367 msgid "I wasn't able to convert the encoding." msgstr "لم أتمكن من تحويل ترميز النص" #: ../src/execdialog.cc:40 msgid "Command to execute" msgstr "الأمر" #: ../src/execdialog.cc:41 #, c-format msgid "" "'%s' will be substituted with a temporary filename\n" "containing the text from the document." msgstr "" "سيُستبدل '%s' باسم ملف مؤقت\n" "يحتوي علي النص." #: ../src/execdialog.cc:47 msgid "_Show the results in a new tab" msgstr "ا_عرض النتائج في لسان جديد" #: ../src/export.cc:48 msgid "_Text file with no unicode control characters..." msgstr "ملف _نصي بدون رموز تحكم يونيكود" #: ../src/export.cc:55 ../src/import.cc:52 msgid "Text file compressed with _gzip" msgstr "ملف نصي مضغوط ب‍ _gzip" #: ../src/export.cc:62 ../src/import.cc:58 msgid "Text file compressed with _bzip2" msgstr "ملف نصي مضغوط ب‍ _bzip2" #: ../src/export.cc:69 ../src/import.cc:64 msgid "Text with _shaping and bidi applied" msgstr "نص _متصل الحروف مع ثنائية الاتجاه" #: ../src/export.cc:107 msgid "Can't open temporary file." msgstr "لا يمكن إنشاء ملف مؤقت" #: ../src/export.cc:113 msgid "Error writing to temporary file." msgstr "خطأ أثناء الكتابة في الملف المؤقت." #: ../src/export.cc:130 msgid "Couldn't allocate memory for compression." msgstr "لا يمكن تخصيص مساحة كافية من الذاكرة للضغط." #: ../src/export.cc:136 msgid "Couldn't compress the text." msgstr "لم أتمكن من ضغط الملف." #. _ch is allocated via g_new(); #: ../src/export.cc:185 ../src/import.cc:239 msgid "Couldn't apply the bidi algorithm." msgstr "لا يمكن تطبيق خوارزمية ثنائية الاتجاه." #: ../src/filedialog.cc:38 ../src/filedialog.cc:52 #: ../src/openlocationdialog.cc:38 msgid "Encoding" msgstr "الترميز" #: ../src/filedialog.cc:144 msgid "This is a directory." msgstr "هذا دليل." #: ../src/import.cc:47 msgid "_HTML Character Reference..." msgstr "بطريقة _HTML..." #: ../src/import.cc:114 ../src/import.cc:120 ../src/import.cc:141 #: ../src/import.cc:172 msgid "Can't open file." msgstr "لا يمكن فتح الملف." #. Error. #: ../src/import.cc:135 ../src/import.cc:157 ../src/import.cc:188 msgid "Error reading file." msgstr "خطأ في قراءة الملف." #: ../src/inputwindow.cc:33 msgid "Input Window" msgstr "نافذة الإدخال" #: ../src/isocodes.cc:117 #, c-format msgid "%s (%s)" msgstr "%s (%s)" #: ../src/label.cc:60 #, c-format msgid "Untitled New %d" msgstr "جديد بدون عنوان %Id" #: ../src/mdi.cc:83 #, c-format msgid "Failed to scan for any autorecovery files: %s" msgstr "فشل البحث عن ملفات الاستعادة التلقائية: %s" #: ../src/mdi.cc:88 msgid "Some unrecovered files were found. Try to recover them ?" msgstr "وُجِدت بعض الملفات غير المستعادة. أأحاول استعادتهم ؟" #: ../src/mdi.cc:203 msgid "Please select a file for editing." msgstr "انتقِ ملفا لتحريره." #: ../src/mdi.cc:281 msgid "This is a read only document." msgstr "هذا المستند للقراءة فقط." #: ../src/mdi.cc:285 msgid "Please select a file." msgstr "فضلا اختر ملفا." #: ../src/mdi.cc:324 msgid "This document can not be saved. It's a read only file." msgstr "لا يمكنك حفظ هذا المستند لأنه للقراءة فقط." #: ../src/mdi.cc:354 msgid "Please select a file for saving." msgstr "اختر ملفًا للحفظ." #: ../src/mdi.cc:361 ../src/mdi.cc:1124 ../src/printdialog.cc:254 #, c-format msgid "Are you sure you want to overwrite the file %s ?" msgstr "أمتأكد أنك تريد إعادة الكتابة على الملف %s ؟" #: ../src/mdi.cc:452 #, c-format msgid "The file %s is not saved, Save first ?" msgstr "لم يُحفظ الملف %s. أتريد الحفظ أولا؟" # src/main.c:466 src/mdi.c:230 src/mdi.c:564 src/mdi.c: #: ../src/mdi.cc:455 #, c-format msgid "\"%s\" is not saved, Save first?" msgstr "لم يُحفظ الملف %s. أتريد الحفظ أولا؟" #: ../src/mdi.cc:509 #, c-format msgid "The file \"%s\" doesn't exist." msgstr "الملف \"%s\" غير موجود." #: ../src/mdi.cc:573 #, c-format msgid "" "This will close the current file \"%s\". Discard any changes done and reload " "the saved copy of the file. Are you sure you want to continue ?" msgstr "" "هذا سيُغلق الملف \"%s\" و يعيد فتحه أي تغييرات غير محفوظه ستُفقد. أمتأكد أنك " "تريد الاستمرار ؟" #: ../src/mdi.cc:673 msgid "You must inter a word to search for." msgstr "يجب إدخال كلمة للبحث عنها." #: ../src/mdi.cc:685 ../src/mdi.cc:701 ../src/mdi.cc:748 msgid "No search results found." msgstr "لم يُعثر على أي نتائج." #: ../src/mdi.cc:781 #, c-format msgid "Replaced %d occurence." msgid_plural "Replaced %d occurences." msgstr[0] "لم تُستبدل أية تواجدات" msgstr[1] "استُبدِل تواجد واحد" msgstr[2] "استُبدِل تواجدين" msgstr[3] "استُبدِل %Id تواجدات" msgstr[4] "استُبدِل %Id تواجدًا" msgstr[5] "استُبدِل %Id تواجد" #: ../src/mdi.cc:806 #, c-format msgid "You can use only one '%s'" msgstr "يمكن استخدام '%s' مرة واحدة فقط" #: ../src/mdi.cc:959 ../src/mdi.cc:962 msgid "Failed to get any definitions." msgstr "فشل الحصول على أي تعريفات." #: ../src/menubar.cc:142 msgid "_File" msgstr "_ملف" #: ../src/menubar.cc:150 msgid "Open _Location..." msgstr "ا_فتح موقع..." #. Recent #: ../src/menubar.cc:154 msgid "Recent" msgstr "الملفات الحديثة" #: ../src/menubar.cc:164 msgid "Sa_ve Copy..." msgstr "ا_حفظ نسخه..." #: ../src/menubar.cc:171 msgid "_Import" msgstr "ا_ستورد" #: ../src/menubar.cc:179 msgid "_Export" msgstr "_صدِّر" #: ../src/menubar.cc:188 msgid "Page Set_up..." msgstr "إ_عداد الصفحة..." #: ../src/menubar.cc:191 msgid "Print Previe_w" msgstr "_معاينة الطباعة" #: ../src/menubar.cc:240 msgid "_Edit" msgstr "_حرِّر" #: ../src/menubar.cc:261 msgid "_Select All" msgstr "انتقِ ال_كل" #: ../src/menubar.cc:265 msgid "_Insert File" msgstr "أدرِج _ملف" #: ../src/menubar.cc:274 msgid "_Search" msgstr "ا_بحث" #: ../src/menubar.cc:279 msgid "Find Ne_xt" msgstr "اعثر على ال_تالي" #: ../src/menubar.cc:292 msgid "_View" msgstr "_عرض" #: ../src/menubar.cc:294 msgid "_Statusbar" msgstr "_شريط الحالة" #: ../src/menubar.cc:297 msgid "_Line Numbers" msgstr "أ_رقام الأسطر" #: ../src/menubar.cc:300 msgid "_Wrap Text" msgstr "_طي النص" #: ../src/menubar.cc:305 msgid "Toolbars" msgstr "أشرطة الأدوات" #: ../src/menubar.cc:307 msgid "_Main Toolbar" msgstr "شريط الأدوات ال_رئيسي" #: ../src/menubar.cc:310 msgid "_Extended Toolbar" msgstr "شريط الأدوات الإ_ضافي" #: ../src/menubar.cc:327 msgid "_Encoding" msgstr "ال_ترميز" #: ../src/menubar.cc:352 msgid "_Tools" msgstr "أ_دوات" #: ../src/menubar.cc:353 msgid "_Execute Command On Buffer..." msgstr "_نفِّذ أمر على النص..." #: ../src/menubar.cc:368 ../src/statusbar.cc:56 msgid "Input" msgstr "الإدخال" #: ../src/menubar.cc:369 msgid "Default" msgstr "الافتراضي" #: ../src/menubar.cc:374 msgid "Keyboard emulator" msgstr "محاكي لوحة المفاتيح" #: ../src/menubar.cc:378 ../src/preferencesdialog.cc:77 msgid "Multipress" msgstr "متعدد الضغطات" #: ../src/menubar.cc:393 msgid "_Documents" msgstr "ال_مستندات" #: ../src/menubar.cc:394 msgid "Save _All" msgstr "احفظ ال_كل" #: ../src/menubar.cc:397 msgid "Clos_e All" msgstr "أغل_ق الكل" #: ../src/menubar.cc:402 msgid "_Opened Documents" msgstr "المستندات ال_مفتوحة" #: ../src/menubar.cc:403 msgid "_Closed Documents" msgstr "المستندات الم_غلقة" #: ../src/menubar.cc:408 msgid "_Help" msgstr "_مساعده" #: ../src/menubar.cc:796 msgid "_Highlight" msgstr "_توضيح التركيب" #: ../src/network.cc:89 msgid "Failed to initialize the networking backend." msgstr "فشل بدأ خلفية الشبكة." #: ../src/network.cc:95 msgid "Couldn't initialize network handler." msgstr "تعذّر بدأ معالج الشبكة." #: ../src/network.cc:145 msgid "Please set the proxy authentication username." msgstr "فضلًا ضع اسم مستخدم استيثاق الوكيل." #: ../src/network.cc:150 msgid "Please set the proxy authentication password." msgstr "فضلًا ضع كلمة سر استيثاق الوكيل." #: ../src/network.cc:157 msgid "Please set a proxy host." msgstr "فضلًا حدد مستضيف وكيل." #: ../src/openlocationdialog.cc:37 msgid "Location" msgstr "الموقع" #: ../src/openlocationdialog.cc:54 msgid "_Insert into the active document." msgstr "أ_درِج في الملف المفتوح." #: ../src/openlocationdialog.cc:92 msgid "You must enter a location to open." msgstr "يجب إدخال موقع لفتحه." #: ../src/pipe.cc:53 #, c-format msgid "I can't execute %s. I can't find it in your path" msgstr "لا يمكن تنفيذ %s. لا يمكن العثور عليه" #. TODO: Possible some commands might not return 0 #: ../src/pipe.cc:99 msgid "Couldn't get the required content." msgstr "لم أتمكن من الحصول على المحتوى المطلوب." #: ../src/preferencesdialog.cc:41 msgid "Preferences" msgstr "الإعدادات" #: ../src/preferencesdialog.cc:55 msgid "Options for" msgstr "خيارات" #: ../src/preferencesdialog.cc:63 msgid "General" msgstr "عام" #: ../src/preferencesdialog.cc:64 msgid "Interface" msgstr "الواجهة" #: ../src/preferencesdialog.cc:65 msgid "Tabs" msgstr "الألسنة" #: ../src/preferencesdialog.cc:66 msgid "Editor" msgstr "المحرر" #: ../src/preferencesdialog.cc:67 msgid "Encodings" msgstr "الترميزات" #: ../src/preferencesdialog.cc:68 msgid "File Save" msgstr "حفظ الملفات" #: ../src/preferencesdialog.cc:70 msgid "Spell Checker" msgstr "تدقيق إملائي" #: ../src/preferencesdialog.cc:73 ../src/printdialog.cc:97 msgid "Print" msgstr "الطباعة" #: ../src/preferencesdialog.cc:79 msgid "Remote Documents" msgstr "المستندات الخارجية" #: ../src/preferencesdialog.cc:80 msgid "Advanced" msgstr "متقدم" #: ../src/preferencesdialog.cc:81 msgid "Network" msgstr "الشبكة" #: ../src/previewdialog.cc:48 msgid "Print preview" msgstr "معاينة الطباعة" #: ../src/previewdialog.cc:56 ../src/previewdialog.cc:176 #, c-format msgid "of %i" msgstr "من %Ii" #: ../src/print.cc:207 msgid "Other" msgstr "أخرى" #: ../src/printdialog.cc:77 msgid "Print to file." msgstr "اطبع إلي ملف." #: ../src/printdialog.cc:78 msgid "_All" msgstr "ال_كل" #: ../src/printdialog.cc:79 msgid "_Selection" msgstr "ال_تحديد" #: ../src/printdialog.cc:80 msgid "_Lines" msgstr "_سطور" #: ../src/printdialog.cc:81 msgid "Printer:" msgstr "الطابعة:" #: ../src/printdialog.cc:89 msgid "Location:" msgstr "المكان:" #: ../src/printdialog.cc:90 msgid "Number of copies" msgstr "عدد النسخ" #: ../src/printdialog.cc:91 msgid "Print range" msgstr "مدى الطباعة" #: ../src/printdialog.cc:92 msgid "From:" msgstr "من:" #: ../src/printdialog.cc:93 msgid "To:" msgstr "إلي:" #: ../src/printdialog.cc:94 msgid "Paper size:" msgstr "حجم الورق:" #: ../src/printdialog.cc:95 msgid "Page orientation:" msgstr "اتجاه الصفحة:" #: ../src/printdialog.cc:113 msgid "Printer name" msgstr "اسم الطابعة" #: ../src/printdialog.cc:114 msgid "Status" msgstr "الحالة" #: ../src/printdialog.cc:132 ../src/printdialog.cc:190 msgid "Custom" msgstr "مخصص" #: ../src/printdialog.cc:136 msgid "Create a PDF document" msgstr "أنشئ ملف PDF" #: ../src/printdialog.cc:137 msgid "Create a Postscript document" msgstr "أنشئ ملف Postscript" #: ../src/printdialog.cc:183 msgid "Portrait" msgstr "طولي" #: ../src/printdialog.cc:184 msgid "Landscape" msgstr "عرضي" #: ../src/printdialog.cc:196 msgid "Width:" msgstr "العرض:" #: ../src/printdialog.cc:196 msgid "Height:" msgstr "الارتفاع:" #: ../src/printdialog.cc:246 msgid "Please choose a file to print to." msgstr "فضلا اختر ملفا للطباعة." #: ../src/printdialog.cc:250 msgid "Please choose a file not a directory." msgstr "فضلا اختر ملفا وليس دليلا." #: ../src/printdialog.cc:341 msgid "Please select a file to print to." msgstr "فضلا اختر مكان ملف للطباعة." #: ../src/printdialog.cc:421 msgid "I couldn't get the selected printer." msgstr "لم أتمكن من تحديد الطابعة المختارة." #: ../src/replacedialog.cc:32 ../src/searchdialog.cc:32 msgid "Find" msgstr "ابحث" #: ../src/replacedialog.cc:33 ../src/searchdialog.cc:33 msgid "Search for:" msgstr "ابحث عن:" #: ../src/replacedialog.cc:34 msgid "Replace with:" msgstr "استبدل بـ:" #: ../src/replacedialog.cc:35 ../src/searchdialog.cc:34 msgid "Match entire word only" msgstr "طابِق كامل الكلمة فقط" #: ../src/replacedialog.cc:36 ../src/searchdialog.cc:35 msgid "Match case" msgstr "طابِق حالة الأحرف" #. regex(_("Regular expression")), #: ../src/replacedialog.cc:37 ../src/searchdialog.cc:37 msgid "Wrap search" msgstr "لف حول" #: ../src/replacedialog.cc:38 ../src/searchdialog.cc:38 msgid "Search from the cursor position" msgstr "ابحث من مكان المؤشر" #: ../src/replacedialog.cc:39 ../src/searchdialog.cc:39 msgid "Search backwards" msgstr "ابحث إلى الخلف" #: ../src/replacedialog.cc:40 ../src/searchdialog.cc:40 msgid "Search from the beginnig of the document" msgstr "ابحث من بداية المستند" #: ../src/replacedialog.cc:42 msgid "_Replace" msgstr "استب_دل" #. find_replace(Gtk::Stock::FIND_AND_REPLACE), #: ../src/replacedialog.cc:44 msgid "Replace _All" msgstr "استبدل ال_كل" #: ../src/spell.cc:53 msgid "Failed to initialize the spell checker" msgstr "فشل بدأ المدقق الإملائي" #: ../src/spell.cc:66 msgid "Failed to set the requested dictionary." msgstr "تعذّر ضبط القاموس المطلوب." #: ../src/spelldialog.cc:37 msgid "_Ignore" msgstr "_تجاهل" #: ../src/spelldialog.cc:38 msgid "Ignore _All" msgstr "تجاهل ال_كل" #: ../src/spelldialog.cc:39 msgid "C_hange" msgstr "_بدِّل" #: ../src/spelldialog.cc:42 msgid "_Add to user dictionary" msgstr "أ_ضف إلى القاموس" #: ../src/spelldialog.cc:43 msgid "Misspelled:" msgstr "الكلمة الخاطئة:" #: ../src/spelldialog.cc:44 msgid "Change to:" msgstr "بدِّل إلى:" #: ../src/spelldialog.cc:48 msgid "Check Spelling" msgstr "تدقيق إملائي" #: ../src/spelldialog.cc:92 msgid "Suggestions" msgstr "الاقتراحات" #: ../src/spelldialog.cc:128 msgid "No misspelled words." msgstr "لا توجد كلمات أخرى غير صحيحة." #: ../src/statusbar.cc:69 msgid "OVR" msgstr "استبدال" #: ../src/statusbar.cc:69 msgid "INS" msgstr "إدراج" #: ../src/statusbar.cc:74 #, c-format msgid " L: %d, C: %d" msgstr " س: %Id، ع: %Id " #: ../src/toolbar.cc:53 msgid "Search" msgstr "ابحث" #: ../src/toolbar.cc:56 msgid "Spelling Dictionary" msgstr "قاموس الإملاء" #: ../src/toolbar.cc:102 msgid "Create a new file" msgstr "أنشئ ملف جديد" #: ../src/toolbar.cc:103 msgid "Open a file for editing" msgstr "افتح ملف للتحرير" #: ../src/toolbar.cc:104 msgid "Save the existing file" msgstr "احفظ الملف الحالي" #: ../src/toolbar.cc:106 msgid "Print this document" msgstr "اطبع هذا المستند" #: ../src/toolbar.cc:108 msgid "Close the active file" msgstr "اغلق الملف الحالي" #: ../src/toolbar.cc:109 msgid "Undo" msgstr "تراجع" #: ../src/toolbar.cc:110 msgid "Redo" msgstr "أعِد" #: ../src/toolbar.cc:111 msgid "Cut" msgstr "قص" #: ../src/toolbar.cc:112 msgid "Copy" msgstr "انسخ" #: ../src/toolbar.cc:113 msgid "Paste" msgstr "الصق" #: ../src/toolbar.cc:114 msgid "Delete current selection" msgstr "احذف الجزء المحدد" #: ../src/toolbar.cc:116 msgid "Toggle full screen mode" msgstr "بدِّل وضع ملء الشاشة" #: ../src/utils.cc:189 msgid "I can't backup the old file.\n" msgstr "لم أتمكن من عمل نسخة احتياطية.\n" #: ../src/utils.cc:247 #, c-format msgid "%s is a directory." msgstr "%s دليل." #: ../src/window.cc:141 msgid " The keyboard emulator will not work." msgstr "محاكي لوحة المفاتيح لن يعمل." #: ../src/window.cc:147 msgid " Multipress will not work." msgstr " متعدد الضغطات لن يعمل." #: ../src/window.cc:153 msgid "" "A lot of the configuration options have been changed in this version.\n" "Please adjust the configuration first." msgstr "" "تغيرت العديد من خيارات الضبط في هذا الإصدار.\n" "يرجى ضبط الإعدادات أولا." katoob-0.5.9.1/po/cz.po0000644000175000017500000010522310746617675011504 00000000000000# Katoob Multiligual Textprocessor # Copyright (C) 2004 # This file is distributed under the same license as the katoob package. # Jan Grmela , 2004. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2007-12-18 12:04+0200\n" "PO-Revision-Date: 2004-11-29 14:28+0100\n" "Last-Translator: Jan Grmela \n" "Language-Team: Jan Grmela \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: ../katoob.desktop.in.h:1 ../src/aboutdialog.cc:66 #, fuzzy msgid "Katoob" msgstr "katoob" #: ../katoob.desktop.in.h:2 msgid "Multilingual Unicode Text Editor" msgstr "Vícejazykový textový editor" #: ../src/aboutdialog.cc:51 msgid "" "Katoob 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." msgstr "" #: ../src/aboutdialog.cc:56 msgid "" "Katoob 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." msgstr "" #: ../src/aboutdialog.cc:61 msgid "" "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" msgstr "" #: ../src/aboutdialog.cc:71 msgid "Copyright © 2006, 2007 Mohammed Sameer." msgstr "" #: ../src/aboutdialog.cc:73 ../src/aboutdialog.cc:76 msgid "Mohammed Sameer" msgstr "" #: ../src/aboutdialog.cc:77 msgid "Mostafa Hussein" msgstr "" #: ../src/aboutdialog.cc:80 #, fuzzy msgid "A lightweight multilingual unicode and bidi aware text editor" msgstr "Vícejazykový textový editor" #: ../src/aboutdialog.cc:81 msgid "translator-credits" msgstr "" #: ../src/applets.cc:55 msgid "_Enable undo, redo\t" msgstr "_Povolit Zpět, Znovu\t" #: ../src/applets.cc:57 msgid "Keep a history of recently closed documents" msgstr "" #: ../src/applets.cc:59 msgid "" "Undo history size\n" "(0 for unlimited)" msgstr "" "Velikost historie Zpět\n" "(0 pro neomezenou)" #: ../src/applets.cc:60 #, fuzzy msgid "" "Executed commands history size\n" "(0 for unlimited)" msgstr "" "Velikost historie Zpět\n" "(0 pro neomezenou)" #: ../src/applets.cc:61 #, fuzzy msgid "" "Closed documents history size\n" "(0 for unlimited)" msgstr "" "Velikost historie Zpět\n" "(0 pro neomezenou)" #: ../src/applets.cc:122 #, fuzzy msgid "Show the extra _buttons" msgstr "Zobrazit záložky" #: ../src/applets.cc:123 msgid "Show the _Main Toolbar" msgstr "Zobrazit _hlavní panel nástrojů" #: ../src/applets.cc:124 msgid "Show the _Extended Toolbar" msgstr "Zobrazit _rozšířený panel nástrojů" #: ../src/applets.cc:125 msgid "Show the _Statusbar" msgstr "Zobrazit _stavový řádek" #: ../src/applets.cc:126 msgid "Enable re_cent menu" msgstr "Povolit menu nedávných souborů" #: ../src/applets.cc:127 msgid "Show the _close button on each tab label" msgstr "Zobrazit tlačítko _zavřít na každé popisce záložky" #: ../src/applets.cc:128 msgid "" "No. of recent entries\n" "(0 for unlimited)" msgstr "" "Počet nedávných souborů\n" "(0 pro neomezeně)" #: ../src/applets.cc:129 msgid "Show the toolbar as" msgstr "Zobrazit panel nástrojů jako" #: ../src/applets.cc:130 ../src/applets.cc:159 ../src/menubar.cc:318 msgid "Text only" msgstr "Pouze text" #. TODO: Disable these when the main toolbar is not shown. #: ../src/applets.cc:131 ../src/applets.cc:162 ../src/menubar.cc:315 msgid "Icons only" msgstr "Pouze ikony" #: ../src/applets.cc:132 ../src/applets.cc:168 ../src/applets.cc:350 #: ../src/applets.cc:383 ../src/applets.cc:392 ../src/menubar.cc:321 msgid "Both" msgstr "Text pod ikonami" #: ../src/applets.cc:133 ../src/applets.cc:165 ../src/menubar.cc:324 msgid "Text beside icons" msgstr "Text vedle ikon" #: ../src/applets.cc:217 msgid "_Show tabs" msgstr "Zobrazit zá_ložky" #: ../src/applets.cc:218 msgid "_Enable tabs menu" msgstr "Po_volit menu záložek" #: ../src/applets.cc:219 msgid "Scro_ll tabs" msgstr "" #: ../src/applets.cc:220 msgid "Show the tabs at the" msgstr "Zobrazit záložky" #: ../src/applets.cc:221 ../src/applets.cc:282 ../src/applets.cc:846 msgid "Top" msgstr "Nahoře" #: ../src/applets.cc:222 ../src/applets.cc:273 msgid "Bottom" msgstr "Dole" #: ../src/applets.cc:223 ../src/applets.cc:276 ../src/applets.cc:348 #: ../src/applets.cc:389 msgid "Right" msgstr "Vpravo" #: ../src/applets.cc:224 ../src/applets.cc:279 ../src/applets.cc:349 #: ../src/applets.cc:386 ../src/applets.cc:845 msgid "Left" msgstr "Vlevo" #: ../src/applets.cc:226 msgid "Color for read only tabs" msgstr "" #: ../src/applets.cc:227 msgid "Color for modified tabs" msgstr "" #: ../src/applets.cc:228 msgid "Color for normal tabs" msgstr "" #: ../src/applets.cc:341 msgid "Text _Wrapping is on by default" msgstr "_Zalamování textu je ve výchozím stavu zapnuto" #: ../src/applets.cc:342 msgid "Show _Line numbers by default" msgstr "Zobrazovat čí_sla řádků ve výchozím stavu" #: ../src/applets.cc:343 msgid "Use the default _font" msgstr "Použít výchozí _písmo" #: ../src/applets.cc:345 #, fuzzy msgid "_Automatic syntax highlighting for known file types" msgstr "Z_výrazňovat známé typy souborů" #: ../src/applets.cc:347 #, fuzzy msgid "Line numbers position" msgstr "Čí_sla řádků" #: ../src/applets.cc:351 msgid "Font" msgstr "Písmo" #: ../src/applets.cc:353 msgid "Tab width" msgstr "" #: ../src/applets.cc:450 msgid "_Use the locale encoding" msgstr "Použít _kódování locale" #: ../src/applets.cc:451 ../src/applets.cc:452 #, fuzzy msgid "Specify an encoding" msgstr "Výchozí kódování" #: ../src/applets.cc:456 #, fuzzy msgid "File open encoding" msgstr "Vyberte kódování" #: ../src/applets.cc:457 #, fuzzy msgid "File save encoding" msgstr "Vyberte kódování" #: ../src/applets.cc:502 msgid "_Backup files before saving." msgstr "_Zálohovat soubory před ukládáním" #: ../src/applets.cc:503 #, fuzzy msgid "Backup extension" msgstr "Zálohovat příponu." #: ../src/applets.cc:534 ../src/menubar.cc:362 msgid "_Autocheck Spelling" msgstr "_Automatická kontrola pravopisu" #. misspelled_label.set_text(_("Misspelled words color")); #: ../src/applets.cc:536 msgid "Choose the default dictionary" msgstr "Vybrat výchozí slovník" #: ../src/applets.cc:586 #, fuzzy msgid "Printing font" msgstr "Vytisknout tento dokument" #: ../src/applets.cc:590 msgid "_Enable advanced options" msgstr "_Povolit pokročilá nastavení" #: ../src/applets.cc:594 msgid "X Dot Per Inch" msgstr "" #: ../src/applets.cc:595 msgid "Y Dot Per Inch" msgstr "" #: ../src/applets.cc:652 msgid "_Enable the dictionary." msgstr "Povolit _slovník" #: ../src/applets.cc:653 #, fuzzy msgid "Host" msgstr "Hostitel:" #: ../src/applets.cc:654 msgid "_List dictionaries" msgstr "_Seznam slovníků" #: ../src/applets.cc:656 #, fuzzy msgid "Port" msgstr "Port:" #: ../src/applets.cc:667 ../src/applets.cc:675 ../src/preferencesdialog.cc:75 msgid "Dictionary" msgstr "Slovník" #: ../src/applets.cc:676 msgid "Description" msgstr "Popis" #: ../src/applets.cc:681 msgid "Not Available." msgstr "Není dostupný" #: ../src/applets.cc:738 ../src/applets.cc:741 msgid "Failed to get the available dictionaries." msgstr "" #: ../src/applets.cc:768 msgid "Please provide a dict server" msgstr "" #: ../src/applets.cc:797 msgid "_Milliseconds before multipress will accept the current value." msgstr "" #: ../src/applets.cc:827 #, fuzzy msgid "" "Number of remote addresses to save\n" "(0 for unlimited)" msgstr "" "Počet nedávných souborů\n" "(0 pro neomezeně)" #: ../src/applets.cc:830 msgid "_Insert into the active document enabled by default ?" msgstr "" #: ../src/applets.cc:847 msgid "Width" msgstr "Šířka" #: ../src/applets.cc:848 msgid "Height" msgstr "Výška" #: ../src/applets.cc:850 msgid "Save all the program _settings on exit" msgstr "Uložit všechna _nastavení programu před ukončením" #: ../src/applets.cc:851 msgid "Save the main window _attributes on exit" msgstr "Uložit atributy hlavního _okna před ukončením" #: ../src/applets.cc:856 msgid "Window position" msgstr "Pozice okna" #: ../src/applets.cc:857 msgid "Window size" msgstr "Velikost okna" #: ../src/applets.cc:925 msgid "Network timeout (In seconds):" msgstr "" #: ../src/applets.cc:926 msgid "Proxy host:" msgstr "" #: ../src/applets.cc:927 msgid "Proxy port:" msgstr "" #: ../src/applets.cc:928 msgid "Proxy type:" msgstr "" #: ../src/applets.cc:930 ../src/menubar.cc:798 msgid "None" msgstr "Žádné" #: ../src/applets.cc:931 msgid "Get from the environment" msgstr "" #: ../src/applets.cc:932 msgid "HTTP" msgstr "" #: ../src/applets.cc:933 msgid "SOCKS4" msgstr "" #: ../src/applets.cc:934 msgid "SOCKS5" msgstr "" #: ../src/applets.cc:948 msgid "Tunnel traffic through the proxy" msgstr "" #: ../src/applets.cc:950 msgid "Use proxy authentication" msgstr "" #: ../src/applets.cc:951 msgid "Proxy username:" msgstr "" #: ../src/applets.cc:952 msgid "Proxy password:" msgstr "" #: ../src/dialogs.cc:70 #, fuzzy msgid "Insert to document" msgstr "Vytisknout tento dokument" #: ../src/dialogs.cc:98 ../src/toolbar.cc:52 msgid "Goto Line" msgstr "Jít na řádek" #: ../src/dialogs.cc:105 msgid "Line:" msgstr "Řádek" #: ../src/dialogs.cc:139 msgid "Please wait..." msgstr "" #: ../src/dict.cc:60 msgid "Invalid daatabase. Please reconfigure the dictionary in use." msgstr "" #: ../src/dict.cc:64 #, fuzzy msgid "No matches were found" msgstr "Žádná shoda !" #: ../src/dict.cc:122 ../src/dict.cc:139 #, fuzzy msgid "No databases were found." msgstr "Žádná shoda !" #: ../src/document.cc:109 #, fuzzy msgid " Is a directory." msgstr "Toto je adresář." #: ../src/document.cc:133 ../src/mdi.cc:295 ../src/mdi.cc:1107 #, fuzzy, c-format msgid "Couldn't detect the encoding of %s" msgstr "Nemohu spustit gs pro vygenerování PDF" #: ../src/document.cc:193 #, fuzzy msgid "Couldn't detect the encoding of the text." msgstr "Nemohu určit kódování textu." #: ../src/document.cc:285 #, c-format msgid "Failed to create the autorecovery file %s" msgstr "" #: ../src/document.cc:1240 msgid "Define " msgstr "" #: ../src/document.cc:1255 msgid "Spelling Suggestions" msgstr "Návrhy automatických oprav" #: ../src/document.cc:1263 #, fuzzy, c-format msgid "Add \"%s\" to dictionary" msgstr "Přidat \"%s\" do slovníku" #. TODO: Use italics markup. #: ../src/document.cc:1272 msgid "no suggestions" msgstr "žádné návrhy" #: ../src/document.cc:1283 msgid "More..." msgstr "Více..." #: ../src/encodings.cc:347 ../src/encodings.cc:367 #, fuzzy msgid "I wasn't able to convert the encoding." msgstr "Nemohu určit kódování textu." #: ../src/execdialog.cc:40 msgid "Command to execute" msgstr "" #: ../src/execdialog.cc:41 #, c-format msgid "" "'%s' will be substituted with a temporary filename\n" "containing the text from the document." msgstr "" #: ../src/execdialog.cc:47 #, fuzzy msgid "_Show the results in a new tab" msgstr "Zobrazit záložky" #: ../src/export.cc:48 msgid "_Text file with no unicode control characters..." msgstr "" #: ../src/export.cc:55 ../src/import.cc:52 msgid "Text file compressed with _gzip" msgstr "" #: ../src/export.cc:62 ../src/import.cc:58 msgid "Text file compressed with _bzip2" msgstr "" #: ../src/export.cc:69 ../src/import.cc:64 msgid "Text with _shaping and bidi applied" msgstr "" #: ../src/export.cc:107 #, fuzzy msgid "Can't open temporary file." msgstr "Nemohu otevřít dočasný soubor" #: ../src/export.cc:113 #, fuzzy msgid "Error writing to temporary file." msgstr "Nemohu vytvořit dočasný soubor" #: ../src/export.cc:130 msgid "Couldn't allocate memory for compression." msgstr "" #: ../src/export.cc:136 #, fuzzy msgid "Couldn't compress the text." msgstr "Nemohu vytisknout soubor" #. _ch is allocated via g_new(); #: ../src/export.cc:185 ../src/import.cc:239 #, fuzzy msgid "Couldn't apply the bidi algorithm." msgstr "Nemohu vytisknout soubor" #: ../src/filedialog.cc:38 ../src/filedialog.cc:52 #: ../src/openlocationdialog.cc:38 msgid "Encoding" msgstr "Kódování" #: ../src/filedialog.cc:144 msgid "This is a directory." msgstr "Toto je adresář." #: ../src/import.cc:47 msgid "_HTML Character Reference..." msgstr "" #: ../src/import.cc:114 ../src/import.cc:120 ../src/import.cc:141 #: ../src/import.cc:172 #, fuzzy msgid "Can't open file." msgstr "Nemohu otevřít dočasný soubor" #. Error. #: ../src/import.cc:135 ../src/import.cc:157 ../src/import.cc:188 msgid "Error reading file." msgstr "" #: ../src/inputwindow.cc:33 msgid "Input Window" msgstr "" #: ../src/isocodes.cc:117 #, c-format msgid "%s (%s)" msgstr "" #: ../src/label.cc:60 #, c-format msgid "Untitled New %d" msgstr "" #: ../src/mdi.cc:83 #, c-format msgid "Failed to scan for any autorecovery files: %s" msgstr "" #: ../src/mdi.cc:88 msgid "Some unrecovered files were found. Try to recover them ?" msgstr "" #: ../src/mdi.cc:203 msgid "Please select a file for editing." msgstr "Prosím, vyberte soubor pro úpravy." #: ../src/mdi.cc:281 #, fuzzy msgid "This is a read only document." msgstr "Toto je adresář." #: ../src/mdi.cc:285 #, fuzzy msgid "Please select a file." msgstr "Prosím, vyberte soubor pro úpravy." #: ../src/mdi.cc:324 msgid "This document can not be saved. It's a read only file." msgstr "" #: ../src/mdi.cc:354 #, fuzzy msgid "Please select a file for saving." msgstr "Prosím, vyberte soubor pro úpravy." #: ../src/mdi.cc:361 ../src/mdi.cc:1124 ../src/printdialog.cc:254 #, c-format msgid "Are you sure you want to overwrite the file %s ?" msgstr "Jste si jisti, že chcete přepsat soubor %s ?" #: ../src/mdi.cc:452 #, fuzzy, c-format msgid "The file %s is not saved, Save first ?" msgstr "Soubor %s nebyl uložen, chcete jej uložit ?" #: ../src/mdi.cc:455 #, c-format msgid "\"%s\" is not saved, Save first?" msgstr "\"%s\" nebyl uložen, chcete jej uložit ?" #: ../src/mdi.cc:509 #, fuzzy, c-format msgid "The file \"%s\" doesn't exist." msgstr "Soubor neexistuje." #: ../src/mdi.cc:573 #, fuzzy, c-format msgid "" "This will close the current file \"%s\". Discard any changes done and reload " "the saved copy of the file. Are you sure you want to continue ?" msgstr "" "Tento příkaz zavře aktuální soubor \"%s\", zahodí všechny změny aktivního " "bufferu a znovu načte uloženou kopii souboru. Opravdu chcete pokračovat ?" #: ../src/mdi.cc:673 msgid "You must inter a word to search for." msgstr "" #: ../src/mdi.cc:685 ../src/mdi.cc:701 ../src/mdi.cc:748 #, fuzzy msgid "No search results found." msgstr "Žádná shoda !" #: ../src/mdi.cc:781 #, fuzzy, c-format msgid "Replaced %d occurence." msgid_plural "Replaced %d occurences." msgstr[0] "Nahrazeno %d výskytů" msgstr[1] "Nahrazeno %d výskytů" #: ../src/mdi.cc:806 #, c-format msgid "You can use only one '%s'" msgstr "" #: ../src/mdi.cc:959 ../src/mdi.cc:962 msgid "Failed to get any definitions." msgstr "" #: ../src/menubar.cc:142 msgid "_File" msgstr "_Soubor" #: ../src/menubar.cc:150 #, fuzzy msgid "Open _Location..." msgstr "_Umístění" #. Recent #: ../src/menubar.cc:154 msgid "Recent" msgstr "Otevřít nedávný" #: ../src/menubar.cc:164 msgid "Sa_ve Copy..." msgstr "Uložit _kopii" #: ../src/menubar.cc:171 msgid "_Import" msgstr "_Importovat" #: ../src/menubar.cc:179 msgid "_Export" msgstr "E_xportovat" #: ../src/menubar.cc:188 msgid "Page Set_up..." msgstr "" #: ../src/menubar.cc:191 #, fuzzy msgid "Print Previe_w" msgstr "Náhled" #: ../src/menubar.cc:240 msgid "_Edit" msgstr "Ú_pravy" #: ../src/menubar.cc:261 msgid "_Select All" msgstr "Vy_brat vše" #: ../src/menubar.cc:265 msgid "_Insert File" msgstr "" #: ../src/menubar.cc:274 msgid "_Search" msgstr "_Hledání" #: ../src/menubar.cc:279 msgid "Find Ne_xt" msgstr "Najít _další" #: ../src/menubar.cc:292 msgid "_View" msgstr "_Zobrazení" #: ../src/menubar.cc:294 msgid "_Statusbar" msgstr "_Stavový řádek" #: ../src/menubar.cc:297 msgid "_Line Numbers" msgstr "Čí_sla řádků" #: ../src/menubar.cc:300 msgid "_Wrap Text" msgstr "_Zalamovat text" #: ../src/menubar.cc:305 msgid "Toolbars" msgstr "_Panely nástrojů" #: ../src/menubar.cc:307 msgid "_Main Toolbar" msgstr "_Hlavní panel nástrojů" #: ../src/menubar.cc:310 msgid "_Extended Toolbar" msgstr "_Rozšířený panel nástrojů" #: ../src/menubar.cc:327 msgid "_Encoding" msgstr "_Kódování" #: ../src/menubar.cc:352 msgid "_Tools" msgstr "_Nástroje" #: ../src/menubar.cc:353 msgid "_Execute Command On Buffer..." msgstr "_Vykonat příkazy v bufferu..." #: ../src/menubar.cc:368 ../src/statusbar.cc:56 msgid "Input" msgstr "" #: ../src/menubar.cc:369 msgid "Default" msgstr "" #: ../src/menubar.cc:374 #, fuzzy msgid "Keyboard emulator" msgstr "Emulátor klávesnice" #: ../src/menubar.cc:378 ../src/preferencesdialog.cc:77 msgid "Multipress" msgstr "" #: ../src/menubar.cc:393 msgid "_Documents" msgstr "_Dokumenty" #: ../src/menubar.cc:394 msgid "Save _All" msgstr "Uložit _vše" #: ../src/menubar.cc:397 msgid "Clos_e All" msgstr "Zavřít vš_e" #: ../src/menubar.cc:402 #, fuzzy msgid "_Opened Documents" msgstr "_Dokumenty" #: ../src/menubar.cc:403 #, fuzzy msgid "_Closed Documents" msgstr "_Dokumenty" #: ../src/menubar.cc:408 msgid "_Help" msgstr "Ná_pověda" #: ../src/menubar.cc:796 msgid "_Highlight" msgstr "_Zvýrazňování" #: ../src/network.cc:89 msgid "Failed to initialize the networking backend." msgstr "" #: ../src/network.cc:95 #, fuzzy msgid "Couldn't initialize network handler." msgstr "Nemohu vytisknout soubor" #: ../src/network.cc:145 msgid "Please set the proxy authentication username." msgstr "" #: ../src/network.cc:150 msgid "Please set the proxy authentication password." msgstr "" #: ../src/network.cc:157 #, fuzzy msgid "Please set a proxy host." msgstr "Prosím vyberte soubor, do něhož chcete tisknout." #: ../src/openlocationdialog.cc:37 #, fuzzy msgid "Location" msgstr "_Umístění" #: ../src/openlocationdialog.cc:54 #, fuzzy msgid "_Insert into the active document." msgstr "Vytisknout tento dokument" #: ../src/openlocationdialog.cc:92 msgid "You must enter a location to open." msgstr "" #: ../src/pipe.cc:53 #, c-format msgid "I can't execute %s. I can't find it in your path" msgstr "" #. TODO: Possible some commands might not return 0 #: ../src/pipe.cc:99 #, fuzzy msgid "Couldn't get the required content." msgstr "Nemohu najít hodnotu emulátoru pro vybranou položku" #: ../src/preferencesdialog.cc:41 msgid "Preferences" msgstr "Nastavení" #: ../src/preferencesdialog.cc:55 msgid "Options for" msgstr "" #: ../src/preferencesdialog.cc:63 msgid "General" msgstr "Hlavní" #: ../src/preferencesdialog.cc:64 msgid "Interface" msgstr "Rozhraní" #: ../src/preferencesdialog.cc:65 msgid "Tabs" msgstr "Záložky" #: ../src/preferencesdialog.cc:66 msgid "Editor" msgstr "Editor" #: ../src/preferencesdialog.cc:67 msgid "Encodings" msgstr "Kódování" #: ../src/preferencesdialog.cc:68 msgid "File Save" msgstr "Ukládání souborů" #: ../src/preferencesdialog.cc:70 msgid "Spell Checker" msgstr "Kontrola pravopisu" #: ../src/preferencesdialog.cc:73 ../src/printdialog.cc:97 msgid "Print" msgstr "Tisk" #: ../src/preferencesdialog.cc:79 #, fuzzy msgid "Remote Documents" msgstr "_Dokumenty" #: ../src/preferencesdialog.cc:80 msgid "Advanced" msgstr "Pokročilé" #: ../src/preferencesdialog.cc:81 msgid "Network" msgstr "" #: ../src/previewdialog.cc:48 #, fuzzy msgid "Print preview" msgstr "Náhled" #: ../src/previewdialog.cc:56 ../src/previewdialog.cc:176 #, c-format msgid "of %i" msgstr "" #: ../src/print.cc:207 msgid "Other" msgstr "" #: ../src/printdialog.cc:77 #, fuzzy msgid "Print to file." msgstr "Nemohu vytisknout soubor" #: ../src/printdialog.cc:78 msgid "_All" msgstr "_Vše" #: ../src/printdialog.cc:79 msgid "_Selection" msgstr "Vý_běr" #: ../src/printdialog.cc:80 #, fuzzy msgid "_Lines" msgstr "Řádek" #: ../src/printdialog.cc:81 msgid "Printer:" msgstr "Tiskárna:" #: ../src/printdialog.cc:89 #, fuzzy msgid "Location:" msgstr "_Umístění" #: ../src/printdialog.cc:90 #, fuzzy msgid "Number of copies" msgstr "P_očet kopií" #: ../src/printdialog.cc:91 msgid "Print range" msgstr "Rozsah tisku" #: ../src/printdialog.cc:92 msgid "From:" msgstr "" #: ../src/printdialog.cc:93 #, fuzzy msgid "To:" msgstr "Nahoře" #: ../src/printdialog.cc:94 #, fuzzy msgid "Paper size:" msgstr "Velikost _papíru:" #: ../src/printdialog.cc:95 #, fuzzy msgid "Page orientation:" msgstr "_Orientace stránky" #: ../src/printdialog.cc:113 #, fuzzy msgid "Printer name" msgstr "Tiskárna" #: ../src/printdialog.cc:114 #, fuzzy msgid "Status" msgstr "_Stavový řádek" #: ../src/printdialog.cc:132 ../src/printdialog.cc:190 msgid "Custom" msgstr "Vlastní" #: ../src/printdialog.cc:136 msgid "Create a PDF document" msgstr "Vytvořit PDF dokument" #: ../src/printdialog.cc:137 #, fuzzy msgid "Create a Postscript document" msgstr "Vytvořit PDF dokument" #: ../src/printdialog.cc:183 msgid "Portrait" msgstr "Na výšku" #: ../src/printdialog.cc:184 msgid "Landscape" msgstr "Na šířku" #: ../src/printdialog.cc:196 #, fuzzy msgid "Width:" msgstr "Šíř_ka" #: ../src/printdialog.cc:196 #, fuzzy msgid "Height:" msgstr "_Výška" #: ../src/printdialog.cc:246 #, fuzzy msgid "Please choose a file to print to." msgstr "Prosím vyberte soubor, do kterého chcete exportovat" #: ../src/printdialog.cc:250 #, fuzzy msgid "Please choose a file not a directory." msgstr "Prosím vyberte soubor pro importování" #: ../src/printdialog.cc:341 msgid "Please select a file to print to." msgstr "Prosím vyberte soubor, do něhož chcete tisknout." #: ../src/printdialog.cc:421 #, fuzzy msgid "I couldn't get the selected printer." msgstr "Nemohu najít hodnotu emulátoru pro vybranou položku" #: ../src/replacedialog.cc:32 ../src/searchdialog.cc:32 msgid "Find" msgstr "Najít" #: ../src/replacedialog.cc:33 ../src/searchdialog.cc:33 #, fuzzy msgid "Search for:" msgstr "Hledat" #: ../src/replacedialog.cc:34 msgid "Replace with:" msgstr "Nahradit čím:" #: ../src/replacedialog.cc:35 ../src/searchdialog.cc:34 msgid "Match entire word only" msgstr "" #: ../src/replacedialog.cc:36 ../src/searchdialog.cc:35 #, fuzzy msgid "Match case" msgstr "Respektovat _malá a velká písmena" #. regex(_("Regular expression")), #: ../src/replacedialog.cc:37 ../src/searchdialog.cc:37 msgid "Wrap search" msgstr "" #: ../src/replacedialog.cc:38 ../src/searchdialog.cc:38 #, fuzzy msgid "Search from the cursor position" msgstr "Hledat od pozice _kurzoru" #: ../src/replacedialog.cc:39 ../src/searchdialog.cc:39 msgid "Search backwards" msgstr "" #: ../src/replacedialog.cc:40 ../src/searchdialog.cc:40 #, fuzzy msgid "Search from the beginnig of the document" msgstr "Hledat od _začátku dokumentu" #: ../src/replacedialog.cc:42 msgid "_Replace" msgstr "_Nahradit" #. find_replace(Gtk::Stock::FIND_AND_REPLACE), #: ../src/replacedialog.cc:44 #, fuzzy msgid "Replace _All" msgstr "Nahradit _vše" #: ../src/spell.cc:53 #, fuzzy msgid "Failed to initialize the spell checker" msgstr "Povolit kontrolu pravopisu" #: ../src/spell.cc:66 #, fuzzy msgid "Failed to set the requested dictionary." msgstr "Vybrat výchozí slovník" #: ../src/spelldialog.cc:37 msgid "_Ignore" msgstr "_Ignorovat" #: ../src/spelldialog.cc:38 #, fuzzy msgid "Ignore _All" msgstr "_Ignorovat" #: ../src/spelldialog.cc:39 msgid "C_hange" msgstr "Z_měnit" #: ../src/spelldialog.cc:42 msgid "_Add to user dictionary" msgstr "_Přidat do uživatelského slovníku" #: ../src/spelldialog.cc:43 #, fuzzy msgid "Misspelled:" msgstr "Chybných:" #: ../src/spelldialog.cc:44 msgid "Change to:" msgstr "Zaměnit za:" #: ../src/spelldialog.cc:48 msgid "Check Spelling" msgstr "Zkontrolovat pravopis" #: ../src/spelldialog.cc:92 msgid "Suggestions" msgstr "Návrhy" #: ../src/spelldialog.cc:128 msgid "No misspelled words." msgstr "Žádná chybně napsaná slova." #: ../src/statusbar.cc:69 #, fuzzy msgid "OVR" msgstr " OVR " #: ../src/statusbar.cc:69 #, fuzzy msgid "INS" msgstr " INS " #: ../src/statusbar.cc:74 #, fuzzy, c-format msgid " L: %d, C: %d" msgstr " Ř: %d, S: %d" #: ../src/toolbar.cc:53 msgid "Search" msgstr "Hledat" #: ../src/toolbar.cc:56 msgid "Spelling Dictionary" msgstr "Slovník pro kontrolu pravopisu" #: ../src/toolbar.cc:102 msgid "Create a new file" msgstr "Vytvořit nový soubor" #: ../src/toolbar.cc:103 msgid "Open a file for editing" msgstr "Otevřít soubor pro úpravy" #: ../src/toolbar.cc:104 msgid "Save the existing file" msgstr "Uložit existující soubor" #: ../src/toolbar.cc:106 msgid "Print this document" msgstr "Vytisknout tento dokument" #: ../src/toolbar.cc:108 msgid "Close the active file" msgstr "Uložit aktivní soubor" #: ../src/toolbar.cc:109 msgid "Undo" msgstr "Zpět" #: ../src/toolbar.cc:110 msgid "Redo" msgstr "Znovu" #: ../src/toolbar.cc:111 msgid "Cut" msgstr "Vyjmout" #: ../src/toolbar.cc:112 msgid "Copy" msgstr "Kopírovat" #: ../src/toolbar.cc:113 msgid "Paste" msgstr "Vložit" #: ../src/toolbar.cc:114 msgid "Delete current selection" msgstr "Odstranit momentální výběr" #: ../src/toolbar.cc:116 msgid "Toggle full screen mode" msgstr "" #: ../src/utils.cc:189 msgid "I can't backup the old file.\n" msgstr "" #: ../src/utils.cc:247 #, fuzzy, c-format msgid "%s is a directory." msgstr "Toto je adresář." #: ../src/window.cc:141 msgid " The keyboard emulator will not work." msgstr "" #: ../src/window.cc:147 msgid " Multipress will not work." msgstr "" #: ../src/window.cc:153 msgid "" "A lot of the configuration options have been changed in this version.\n" "Please adjust the configuration first." msgstr "" #~ msgid "Unknown" #~ msgstr "Neznámý" #, fuzzy #~ msgid "Ready" #~ msgstr "Znovu" #, fuzzy #~ msgid "Printing" #~ msgstr "Tisk" #, fuzzy #~ msgid "Couldn't get the definition from the server." #~ msgstr "Nemohu určit kódování textu." #, fuzzy #~ msgid "Timeout" #~ msgstr "Časový limit:" #, fuzzy #~ msgid "Command" #~ msgstr "_Vykonat příkazy v bufferu..." #~ msgid "katoob" #~ msgstr "katoob" #, fuzzy #~ msgid "Remote" #~ msgstr "Znovu" #, fuzzy #~ msgid "Are you sure you want to overwrite the file " #~ msgstr "Jste si jisti, že chcete přepsat soubor %s ?" #, fuzzy #~ msgid "_PDF file..." #~ msgstr "_Najít" #~ msgid "" #~ "You have modified the current text, Katoob'll convert the current text to " #~ "your default encoding and then convert it back to your choosen encoding. " #~ "Continue ?" #~ msgstr "" #~ "Změnili jste text, katoob převede text do Vašeho výchozího kódování a " #~ "potom zpět do vybraného. Pokračovat ?" #~ msgid "" #~ "You are changing the encoding of a modified file, This'll also clear the " #~ "undo & redo history, Should katoob reopen the file?" #~ msgstr "" #~ "Měníte kódování změněného souboru, toho zároveň smaže historii Zpět a " #~ "Znovu, má katoob znovu otevřít souboru ?" #~ msgid "" #~ "Katoob couldn't convert the text to unicode to be able to edit it, " #~ "Katoob'll try to recover what it can, The error was:\n" #~ "%s" #~ msgstr "" #~ "Katoob nemohl převést text do unicode aby jej mohl upravit, nyní se " #~ "katoob pokusí obnovit, co dokáže. Chyba je:\n" #~ "%s" #~ msgid "" #~ "Katoob couldn't recover unicode valid text, The error was:\n" #~ "%s" #~ msgstr "" #~ "Katoob nemohl obnovit platný unicode text, chyba je:\n" #~ "%s" #~ msgid "The file %s doesn't exist, Create it?" #~ msgstr "Soubor %s neextistuje, chcete jej vytvořit ?" #~ msgid "Couldn't create file %s, %s" #~ msgstr "Nemohu vytvořit soubor %s, %s" #~ msgid "Couldn't open file %s, %s" #~ msgstr "Nemohu otevřít soubor %s, %s" #~ msgid "" #~ "An error has occured while reading file %s\n" #~ "%s" #~ msgstr "" #~ "Chyba při čtení souboru %s\n" #~ "%s" #~ msgid "" #~ "An error has occured while writing to file %s\n" #~ "%s" #~ msgstr "" #~ "Chyba při pokusu o zápis do souboru %\n" #~ "%s" #~ msgid "Empty file." #~ msgstr "Prázdný soubor." #~ msgid "The requested file couldn't be opened for saving" #~ msgstr "Do požadovaného souboru nelze ukládat" #~ msgid "An error has occured while writing to file %s" #~ msgstr "Chyba při zápisu do souboru %s" #~ msgid "That's not a valid UTF-8 file" #~ msgstr "Toto není platný UTF-8 soubor" #~ msgid "ERROR" #~ msgstr "CHYBA" #~ msgid "Katoob debugging output." #~ msgstr "Výstup katoobu pro ladění." #~ msgid "" #~ "Katoob has crashed, Please email the following debugging output to " #~ "developer@arabeyes.org and tell them exactly what you were doing." #~ msgstr "" #~ "Katoob spadnul, prosím zašlete e-mail s následujícími ladícími " #~ "informacemi na developer@arabeyes.org a sdělte, co přesně jste udělali." #~ msgid "Save" #~ msgstr "Uložit" #~ msgid "Text direction" #~ msgstr "Směr textu" #~ msgid "_Left to right" #~ msgstr "_Zleva doprava" #~ msgid "_Right to left" #~ msgstr "_Zprava doleva" #~ msgid "_Automatic" #~ msgstr "_Automaticky" #~ msgid "Can't determine the encoding for that file, Please choose one." #~ msgstr "Nemohu určit kódování souboru, prosím vyberte jej." #~ msgid "_New" #~ msgstr "_Nový" #~ msgid "_Open..." #~ msgstr "_Otevřít" #~ msgid "_Save" #~ msgstr "_Uložit" #~ msgid "Save _As..." #~ msgstr "Uložit _jako..." #~ msgid "_Revert" #~ msgstr "Zn_ovu načíst" #~ msgid "_Iran System..." #~ msgstr "Í_ránský systém" #~ msgid "_Print..." #~ msgstr "_Tisk" #~ msgid "_Close" #~ msgstr "_Zavřít" #~ msgid "_Quit" #~ msgstr "_Ukončit" #~ msgid "_Undo" #~ msgstr "_Zpět" #~ msgid "_Redo" #~ msgstr "Z_novu" #~ msgid "Cu_t" #~ msgstr "_Vyjmout" #~ msgid "_Copy" #~ msgstr "_Kopírovat" #~ msgid "_Paste" #~ msgstr "_Vložit" #~ msgid "_Delete" #~ msgstr "_Odstranit" #~ msgid "Pr_eferences..." #~ msgstr "_Nastavení" #~ msgid "_Replace..." #~ msgstr "Na_hradit" #~ msgid "Goto _Line..." #~ msgstr "Jí_t na řádek" #~ msgid "Ada" #~ msgstr "Ada" #~ msgid "C" #~ msgstr "C" #~ msgid "C++" #~ msgstr "C++" #~ msgid ".desktop" #~ msgstr ".desktop" #~ msgid "Diff" #~ msgstr "Diff" #~ msgid "HTML" #~ msgstr "HTML" #~ msgid "IDL" #~ msgstr "IDL" #~ msgid "Java" #~ msgstr "Java" #~ msgid "Latex" #~ msgstr "Latex" #~ msgid "Perl" #~ msgstr "Perl" #~ msgid "gettext translation" #~ msgstr "gettext translation" #~ msgid "Python" #~ msgstr "Python" #~ msgid "XML" #~ msgstr "XML" #~ msgid "_Spell Check..." #~ msgstr "_Kontrola pravopisu" #~ msgid "Abou_t" #~ msgstr "O pro_gramu" #~ msgid "About Katoob" #~ msgstr "O katoobu" #~ msgid "Main" #~ msgstr "Hlavní" #~ msgid "Developers" #~ msgstr "Vývojáři" #~ msgid "Credits" #~ msgstr "Autoři" #~ msgid "License" #~ msgstr "Licence" #~ msgid "Information" #~ msgstr "Informace" #~ msgid "Error initializing Arabic keyboard" #~ msgstr "Chyba při inicializaci Arabské klávesnice" #~ msgid "" #~ "An error has occured while trying to initialize your Arabic keyboard, " #~ "Katoob'll try to use the built in Arabic keyboard emulator." #~ msgstr "" #~ "Chyba při pokusu o inicializaci Vaší Arabské klávesnice, katoob se pokusí " #~ "použít zabudovaný emulátor Arabské klávesnice." #~ msgid "_Show this warning every time this problem occures" #~ msgstr "_Zobrazit toto varování vždy, když se objeví problém" #~ msgid "_Goto" #~ msgstr "_Jít na" #~ msgid "" #~ "There is no spellchecking dictionary available, Please make sure that you " #~ "have installed at least one." #~ msgstr "" #~ "Není dostupná žádná kontrola pravopisu, prosím ujistěte se, že máte " #~ "alespoň jednu nainstalovanou." #~ msgid "Confirm Revert" #~ msgstr "Potvrdit znovunačtení" #~ msgid "Mispelled words color" #~ msgstr "Barva chybně napsaných slov" #~ msgid "Please select the backup directory" #~ msgstr "Prosím vyberte záložní adresář" #~ msgid "Please select the dictionaries directory" #~ msgstr "Prosím vyberte adresář slovníků" #~ msgid "This is not a directory." #~ msgstr "Toto není adresář." #~ msgid "Executed commands history size:" #~ msgstr "Velikost historie vykonaných příkazů:" #~ msgid "Default text direction:" #~ msgstr "Výchozí směr textu:" #~ msgid "_Manually choose the encoding" #~ msgstr "Vybrat kódování _ručně" #~ msgid "Create backup in the original file directory." #~ msgstr "_Vytvářet zálohy v původním adresáři souboru" #~ msgid "Backup directory." #~ msgstr "Adresář záloh." #~ msgid "_Browse" #~ msgstr "_Procházet" #~ msgid "Dictionaries directory" #~ msgstr "Adresář slovníků" #~ msgid "Not enabled at compile time!" #~ msgstr "Při překladu nebyla k dispozici !" #~ msgid "Dictionary:" #~ msgstr "Slovník:" #~ msgid "_Disable Antialiasing" #~ msgstr "Zakázat _vyhlazování" #~ msgid "Select Font" #~ msgstr "Vybrat písmo" #~ msgid "You choosed a directory." #~ msgstr "Vybrali jste adresář" #~ msgid "Can't get selection" #~ msgstr "Nemohu získat výběr" #~ msgid "Couldn't execute gs to generate PDF." #~ msgstr "Nemohu spustit gs pro vygenerování PDF" #~ msgid "Couldn't open the requested file for writing." #~ msgstr "Nemohu zapisovat do požadovaného souboru" #~ msgid "Can't create temp file" #~ msgstr "Nemohu vytvořit dočasný soubor" #~ msgid "Error executing custom command." #~ msgstr "Chyba při vykonávání vlastního příkazu" #~ msgid "Choose Font" #~ msgstr "Vyberte písmo" #~ msgid "Family" #~ msgstr "Druh" #~ msgid "Style" #~ msgstr "Styl" #~ msgid "Size" #~ msgstr "Velikost" #~ msgid "Copies" #~ msgstr "Kopie" #~ msgid "Job" #~ msgstr "Tisková úloha" #~ msgid "Pr_inter:" #~ msgstr "_Tiskárna" #~ msgid "Generic Postscript" #~ msgstr "Standardní Postscript" #~ msgid "File" #~ msgstr "Soubor" #~ msgid "lpr" #~ msgstr "lpr" #~ msgid "Inches" #~ msgstr "Palců" #~ msgid "Points" #~ msgstr "Bodů" #~ msgid "Cus_tom size" #~ msgstr "Vlastní _rozměry" #~ msgid "Paper and layout" #~ msgstr "Papír a vzhled" #~ msgid "Margins (inch)" #~ msgstr "Okraje (palce)" #~ msgid "Paper" #~ msgstr "Papír" #~ msgid "Please select an application." #~ msgstr "Prosím vyberte program." #~ msgid "Can't open the recent documents file" #~ msgstr "Nemohu otevřít seznam nedávných dokumentů" #~ msgid "Save As..." #~ msgstr "Uložit jako..." #~ msgid "Save A Copy..." #~ msgstr "Uložit kopii..." #~ msgid " Couldn 't create a backup, Continue ?" #~ msgstr "Nemohu vytvořit zálohu. Chcete pokračovat ?" #~ msgid "The requested file couldn' t be opened for saving " #~ msgstr "Do požadovaného souboru nelze zapisovat " #~ msgid "Replace" #~ msgstr "Nahradit" #~ msgid "Find what:" #~ msgstr "Najít co:" #~ msgid "An error has occured" #~ msgstr "Chyba" #~ msgid "The document is empty." #~ msgstr "Dokument je prázdný." #~ msgid "Check _Spelling" #~ msgstr "Zkontrolovat _pravopis" #~ msgid "No more mispelled word." #~ msgstr "Žádná další chybně napsaná slova." #~ msgid "Emulator" #~ msgstr "Emulátor" #~ msgid "Change the typing language" #~ msgstr "Změnit jazyk psaní" katoob-0.5.9.1/po/de.po0000644000175000017500000010654310746617675011466 00000000000000# Katoob Multiligual Textprocessor # Copyright (C) 2004 # This file is distributed under the same license as the katoob package. # Michelle Konzack , 2004. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2007-12-18 12:04+0200\n" "PO-Revision-Date: 2004-07-03 13:15+0200\n" "Last-Translator: Michelle Konzack \n" "Language-Team: Michelle Konzack \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: ../katoob.desktop.in.h:1 ../src/aboutdialog.cc:66 #, fuzzy msgid "Katoob" msgstr "katoob" #: ../katoob.desktop.in.h:2 msgid "Multilingual Unicode Text Editor" msgstr "" #: ../src/aboutdialog.cc:51 msgid "" "Katoob 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." msgstr "" #: ../src/aboutdialog.cc:56 msgid "" "Katoob 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." msgstr "" #: ../src/aboutdialog.cc:61 msgid "" "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" msgstr "" #: ../src/aboutdialog.cc:71 msgid "Copyright © 2006, 2007 Mohammed Sameer." msgstr "" #: ../src/aboutdialog.cc:73 ../src/aboutdialog.cc:76 msgid "Mohammed Sameer" msgstr "" #: ../src/aboutdialog.cc:77 msgid "Mostafa Hussein" msgstr "" #: ../src/aboutdialog.cc:80 msgid "A lightweight multilingual unicode and bidi aware text editor" msgstr "" #: ../src/aboutdialog.cc:81 msgid "translator-credits" msgstr "" #: ../src/applets.cc:55 msgid "_Enable undo, redo\t" msgstr "Rückgängig/Wiederholen _Aktivieren\t" #: ../src/applets.cc:57 msgid "Keep a history of recently closed documents" msgstr "" #: ../src/applets.cc:59 msgid "" "Undo history size\n" "(0 for unlimited)" msgstr "" "Rückgängig-Verlaufsgröße\n" "(0 für unbegrenzt)" #: ../src/applets.cc:60 #, fuzzy msgid "" "Executed commands history size\n" "(0 for unlimited)" msgstr "" "Rückgängig-Verlaufsgröße\n" "(0 für unbegrenzt)" #: ../src/applets.cc:61 #, fuzzy msgid "" "Closed documents history size\n" "(0 for unlimited)" msgstr "" "Rückgängig-Verlaufsgröße\n" "(0 für unbegrenzt)" #: ../src/applets.cc:122 #, fuzzy msgid "Show the extra _buttons" msgstr "Zeige die Karteireiter" #: ../src/applets.cc:123 msgid "Show the _Main Toolbar" msgstr "_Hauptwerkzeugleiste anzeigen" #: ../src/applets.cc:124 msgid "Show the _Extended Toolbar" msgstr "_Erweiterte Werkzeugleiste anzeigen" #: ../src/applets.cc:125 msgid "Show the _Statusbar" msgstr "_Statusleiste anzeigen" #: ../src/applets.cc:126 msgid "Enable re_cent menu" msgstr "\"_Zuletzt verwendet\"-Menü aktivieren" #: ../src/applets.cc:127 msgid "Show the _close button on each tab label" msgstr "Anzeigen des Schließen-Knopf auf jedem Karteireiter" #: ../src/applets.cc:128 msgid "" "No. of recent entries\n" "(0 for unlimited)" msgstr "" "Anzahl der \"zuletzt verwendet\"-Einträge\n" "(0 für unbegrenzt)" #: ../src/applets.cc:129 msgid "Show the toolbar as" msgstr "Werkzeugleiste Anzeigen als" #: ../src/applets.cc:130 ../src/applets.cc:159 ../src/menubar.cc:318 msgid "Text only" msgstr "nur Text" #. TODO: Disable these when the main toolbar is not shown. #: ../src/applets.cc:131 ../src/applets.cc:162 ../src/menubar.cc:315 msgid "Icons only" msgstr "nur Symbole" #: ../src/applets.cc:132 ../src/applets.cc:168 ../src/applets.cc:350 #: ../src/applets.cc:383 ../src/applets.cc:392 ../src/menubar.cc:321 msgid "Both" msgstr "beides" #: ../src/applets.cc:133 ../src/applets.cc:165 ../src/menubar.cc:324 msgid "Text beside icons" msgstr "Text neben Symbolen" #: ../src/applets.cc:217 msgid "_Show tabs" msgstr "Karteireiter an_zeigen" #: ../src/applets.cc:218 msgid "_Enable tabs menu" msgstr "Karteireiter-Menü aktivieren" #: ../src/applets.cc:219 msgid "Scro_ll tabs" msgstr "Laufende Karteireiter" #: ../src/applets.cc:220 msgid "Show the tabs at the" msgstr "Zeige die Karteireiter" #: ../src/applets.cc:221 ../src/applets.cc:282 ../src/applets.cc:846 msgid "Top" msgstr "Oben" #: ../src/applets.cc:222 ../src/applets.cc:273 msgid "Bottom" msgstr "Unten" #: ../src/applets.cc:223 ../src/applets.cc:276 ../src/applets.cc:348 #: ../src/applets.cc:389 msgid "Right" msgstr "Rechts" #: ../src/applets.cc:224 ../src/applets.cc:279 ../src/applets.cc:349 #: ../src/applets.cc:386 ../src/applets.cc:845 msgid "Left" msgstr "Links" #: ../src/applets.cc:226 msgid "Color for read only tabs" msgstr "" #: ../src/applets.cc:227 msgid "Color for modified tabs" msgstr "" #: ../src/applets.cc:228 msgid "Color for normal tabs" msgstr "" #: ../src/applets.cc:341 msgid "Text _Wrapping is on by default" msgstr "Text_umbruch ist standardmäßig eingeschaltet" #: ../src/applets.cc:342 msgid "Show _Line numbers by default" msgstr "_Zeilennummern standardmäßig anzeigen" #: ../src/applets.cc:343 msgid "Use the default _font" msgstr "Standard_schrift verwenden" #: ../src/applets.cc:345 #, fuzzy msgid "_Automatic syntax highlighting for known file types" msgstr "Bekannte Dateitypen _hervorheben" #: ../src/applets.cc:347 #, fuzzy msgid "Line numbers position" msgstr "Zei_lennummern" #: ../src/applets.cc:351 msgid "Font" msgstr "Schrift" #: ../src/applets.cc:353 msgid "Tab width" msgstr "" #: ../src/applets.cc:450 msgid "_Use the locale encoding" msgstr "Lokale Kodierung _verwenden" #: ../src/applets.cc:451 ../src/applets.cc:452 #, fuzzy msgid "Specify an encoding" msgstr "Standardkodierung" #: ../src/applets.cc:456 #, fuzzy msgid "File open encoding" msgstr "Kodierung auswählen." #: ../src/applets.cc:457 #, fuzzy msgid "File save encoding" msgstr "Kodierung auswählen." #: ../src/applets.cc:502 msgid "_Backup files before saving." msgstr "Sicherheitskopien vor dem Speichern erstellen." #: ../src/applets.cc:503 #, fuzzy msgid "Backup extension" msgstr "Erweiterung der Sicherheitskopie." #: ../src/applets.cc:534 ../src/menubar.cc:362 msgid "_Autocheck Spelling" msgstr "_Automatische Rechtschreibprüfung" #. misspelled_label.set_text(_("Misspelled words color")); #: ../src/applets.cc:536 msgid "Choose the default dictionary" msgstr "Standardwörterbuch auswählen" #: ../src/applets.cc:586 #, fuzzy msgid "Printing font" msgstr "Dieses Dokument drucken" #: ../src/applets.cc:590 msgid "_Enable advanced options" msgstr "Erweiterte Optionen _aktivieren" #: ../src/applets.cc:594 msgid "X Dot Per Inch" msgstr "" #: ../src/applets.cc:595 msgid "Y Dot Per Inch" msgstr "" #: ../src/applets.cc:652 msgid "_Enable the dictionary." msgstr "Wörterbuch _aktivieren." #: ../src/applets.cc:653 #, fuzzy msgid "Host" msgstr "Host:" #: ../src/applets.cc:654 msgid "_List dictionaries" msgstr "Wörterbücher auf_listen" #: ../src/applets.cc:656 #, fuzzy msgid "Port" msgstr "Port:" #: ../src/applets.cc:667 ../src/applets.cc:675 ../src/preferencesdialog.cc:75 msgid "Dictionary" msgstr "Wörterbuch" #: ../src/applets.cc:676 msgid "Description" msgstr "Beschreibung" #: ../src/applets.cc:681 msgid "Not Available." msgstr "Nicht verfügbar." #: ../src/applets.cc:738 ../src/applets.cc:741 msgid "Failed to get the available dictionaries." msgstr "" #: ../src/applets.cc:768 msgid "Please provide a dict server" msgstr "" #: ../src/applets.cc:797 msgid "_Milliseconds before multipress will accept the current value." msgstr "" #: ../src/applets.cc:827 #, fuzzy msgid "" "Number of remote addresses to save\n" "(0 for unlimited)" msgstr "" "Anzahl der \"zuletzt verwendet\"-Einträge\n" "(0 für unbegrenzt)" #: ../src/applets.cc:830 msgid "_Insert into the active document enabled by default ?" msgstr "" #: ../src/applets.cc:847 msgid "Width" msgstr "Breite" #: ../src/applets.cc:848 msgid "Height" msgstr "Höhe" #: ../src/applets.cc:850 msgid "Save all the program _settings on exit" msgstr "Alle Programmein_stellungen beim Verlassen speichern" #: ../src/applets.cc:851 msgid "Save the main window _attributes on exit" msgstr "H_auptfenstereinstellungen beim Verlassen speichern" #: ../src/applets.cc:856 msgid "Window position" msgstr "Fensterposition" #: ../src/applets.cc:857 msgid "Window size" msgstr "Fenstergröße" #: ../src/applets.cc:925 msgid "Network timeout (In seconds):" msgstr "" #: ../src/applets.cc:926 msgid "Proxy host:" msgstr "" #: ../src/applets.cc:927 msgid "Proxy port:" msgstr "" #: ../src/applets.cc:928 msgid "Proxy type:" msgstr "" #: ../src/applets.cc:930 ../src/menubar.cc:798 msgid "None" msgstr "Keine" #: ../src/applets.cc:931 msgid "Get from the environment" msgstr "" #: ../src/applets.cc:932 msgid "HTTP" msgstr "" #: ../src/applets.cc:933 msgid "SOCKS4" msgstr "" #: ../src/applets.cc:934 msgid "SOCKS5" msgstr "" #: ../src/applets.cc:948 msgid "Tunnel traffic through the proxy" msgstr "" #: ../src/applets.cc:950 msgid "Use proxy authentication" msgstr "" #: ../src/applets.cc:951 msgid "Proxy username:" msgstr "" #: ../src/applets.cc:952 msgid "Proxy password:" msgstr "" #: ../src/dialogs.cc:70 #, fuzzy msgid "Insert to document" msgstr "Dieses Dokument drucken" #: ../src/dialogs.cc:98 ../src/toolbar.cc:52 msgid "Goto Line" msgstr "Gehe zu Zeile" #: ../src/dialogs.cc:105 msgid "Line:" msgstr "Zeile:" #: ../src/dialogs.cc:139 msgid "Please wait..." msgstr "" #: ../src/dict.cc:60 msgid "Invalid daatabase. Please reconfigure the dictionary in use." msgstr "" #: ../src/dict.cc:64 #, fuzzy msgid "No matches were found" msgstr "Keine Treffer" #: ../src/dict.cc:122 ../src/dict.cc:139 #, fuzzy msgid "No databases were found." msgstr "Keine Treffer" #: ../src/document.cc:109 #, fuzzy msgid " Is a directory." msgstr "Dies ist ein Verzeichnis." #: ../src/document.cc:133 ../src/mdi.cc:295 ../src/mdi.cc:1107 #, fuzzy, c-format msgid "Couldn't detect the encoding of %s" msgstr "Konnte gs nicht ausführen, um PDF zu generieren." #: ../src/document.cc:193 #, fuzzy msgid "Couldn't detect the encoding of the text." msgstr "Kann die Kodierung des Textes nicht ermitteln." #: ../src/document.cc:285 #, c-format msgid "Failed to create the autorecovery file %s" msgstr "" #: ../src/document.cc:1240 msgid "Define " msgstr "" #: ../src/document.cc:1255 msgid "Spelling Suggestions" msgstr "Rechtschreibvorschläge" #: ../src/document.cc:1263 #, fuzzy, c-format msgid "Add \"%s\" to dictionary" msgstr "\"%s\" zum Wörterbuch hinzufügen" #. TODO: Use italics markup. #: ../src/document.cc:1272 msgid "no suggestions" msgstr "keine Vorschläge" #: ../src/document.cc:1283 msgid "More..." msgstr "Mehr..." #: ../src/encodings.cc:347 ../src/encodings.cc:367 #, fuzzy msgid "I wasn't able to convert the encoding." msgstr "Kann die Kodierung des Textes nicht ermitteln." #: ../src/execdialog.cc:40 msgid "Command to execute" msgstr "" #: ../src/execdialog.cc:41 #, c-format msgid "" "'%s' will be substituted with a temporary filename\n" "containing the text from the document." msgstr "" #: ../src/execdialog.cc:47 #, fuzzy msgid "_Show the results in a new tab" msgstr "Zeige die Karteireiter" #: ../src/export.cc:48 msgid "_Text file with no unicode control characters..." msgstr "" #: ../src/export.cc:55 ../src/import.cc:52 msgid "Text file compressed with _gzip" msgstr "" #: ../src/export.cc:62 ../src/import.cc:58 msgid "Text file compressed with _bzip2" msgstr "" #: ../src/export.cc:69 ../src/import.cc:64 msgid "Text with _shaping and bidi applied" msgstr "" #: ../src/export.cc:107 #, fuzzy msgid "Can't open temporary file." msgstr "Temporäre Datei konnte nicht geöffnet werden" #: ../src/export.cc:113 #, fuzzy msgid "Error writing to temporary file." msgstr "Konnte temporäre Datei nicht erstellen" #: ../src/export.cc:130 msgid "Couldn't allocate memory for compression." msgstr "" #: ../src/export.cc:136 #, fuzzy msgid "Couldn't compress the text." msgstr "Datei konnte nicht geruckt werden." #. _ch is allocated via g_new(); #: ../src/export.cc:185 ../src/import.cc:239 #, fuzzy msgid "Couldn't apply the bidi algorithm." msgstr "Datei konnte nicht geruckt werden." #: ../src/filedialog.cc:38 ../src/filedialog.cc:52 #: ../src/openlocationdialog.cc:38 msgid "Encoding" msgstr "Kodierung" #: ../src/filedialog.cc:144 msgid "This is a directory." msgstr "Dies ist ein Verzeichnis." #: ../src/import.cc:47 msgid "_HTML Character Reference..." msgstr "_HTML-Zeichenreferenz..." #: ../src/import.cc:114 ../src/import.cc:120 ../src/import.cc:141 #: ../src/import.cc:172 #, fuzzy msgid "Can't open file." msgstr "Temporäre Datei konnte nicht geöffnet werden" #. Error. #: ../src/import.cc:135 ../src/import.cc:157 ../src/import.cc:188 msgid "Error reading file." msgstr "" #: ../src/inputwindow.cc:33 msgid "Input Window" msgstr "" #: ../src/isocodes.cc:117 #, c-format msgid "%s (%s)" msgstr "" #: ../src/label.cc:60 #, c-format msgid "Untitled New %d" msgstr "" #: ../src/mdi.cc:83 #, c-format msgid "Failed to scan for any autorecovery files: %s" msgstr "" #: ../src/mdi.cc:88 msgid "Some unrecovered files were found. Try to recover them ?" msgstr "" #: ../src/mdi.cc:203 msgid "Please select a file for editing." msgstr "Bitte wählen Sie eine Datei zum Bearbeiten aus." #: ../src/mdi.cc:281 #, fuzzy msgid "This is a read only document." msgstr "Dies ist ein Verzeichnis." #: ../src/mdi.cc:285 #, fuzzy msgid "Please select a file." msgstr "Bitte wählen Sie eine Datei zum Bearbeiten aus." #: ../src/mdi.cc:324 msgid "This document can not be saved. It's a read only file." msgstr "" #: ../src/mdi.cc:354 #, fuzzy msgid "Please select a file for saving." msgstr "Bitte wählen Sie eine Datei zum Bearbeiten aus." #: ../src/mdi.cc:361 ../src/mdi.cc:1124 ../src/printdialog.cc:254 #, c-format msgid "Are you sure you want to overwrite the file %s ?" msgstr "Sind Sie sicher, dass Sie die Datei %s überschreiben wollen?" #: ../src/mdi.cc:452 #, fuzzy, c-format msgid "The file %s is not saved, Save first ?" msgstr "Die Datei %s ist nicht gespeichert. Erst speichern?" #: ../src/mdi.cc:455 #, c-format msgid "\"%s\" is not saved, Save first?" msgstr "\"%s\" ist nicht gespeichert. Erst speichern?" #: ../src/mdi.cc:509 #, fuzzy, c-format msgid "The file \"%s\" doesn't exist." msgstr "Diese Datei existiert nicht." #: ../src/mdi.cc:573 #, fuzzy, c-format msgid "" "This will close the current file \"%s\". Discard any changes done and reload " "the saved copy of the file. Are you sure you want to continue ?" msgstr "" "Dies wird die aktuelle Datei \"%s\" schließen, alle Änderungen im Speicher " "verwerfen und die gesicherte Kopie neu laden. Sind Sie sicher, das Sie " "fortfahren wollen?" #: ../src/mdi.cc:673 msgid "You must inter a word to search for." msgstr "" #: ../src/mdi.cc:685 ../src/mdi.cc:701 ../src/mdi.cc:748 #, fuzzy msgid "No search results found." msgstr "Keine Treffer" #: ../src/mdi.cc:781 #, fuzzy, c-format msgid "Replaced %d occurence." msgid_plural "Replaced %d occurences." msgstr[0] "%d Vorkommen ersetzt" msgstr[1] "%d Vorkommen ersetzt" #: ../src/mdi.cc:806 #, c-format msgid "You can use only one '%s'" msgstr "" #: ../src/mdi.cc:959 ../src/mdi.cc:962 msgid "Failed to get any definitions." msgstr "" #: ../src/menubar.cc:142 msgid "_File" msgstr "_Datei" #: ../src/menubar.cc:150 #, fuzzy msgid "Open _Location..." msgstr "_Standort:" #. Recent #: ../src/menubar.cc:154 msgid "Recent" msgstr "Zuletzt verwendet" #: ../src/menubar.cc:164 msgid "Sa_ve Copy..." msgstr "Speichern als _Kopie..." #: ../src/menubar.cc:171 msgid "_Import" msgstr "_Importieren" #: ../src/menubar.cc:179 msgid "_Export" msgstr "_Exportieren" #: ../src/menubar.cc:188 msgid "Page Set_up..." msgstr "" #: ../src/menubar.cc:191 #, fuzzy msgid "Print Previe_w" msgstr "Seitenansicht" #: ../src/menubar.cc:240 msgid "_Edit" msgstr "B_earbeiten" #: ../src/menubar.cc:261 msgid "_Select All" msgstr "_Alles auswählen" #: ../src/menubar.cc:265 msgid "_Insert File" msgstr "" #: ../src/menubar.cc:274 msgid "_Search" msgstr "_Suchen" #: ../src/menubar.cc:279 msgid "Find Ne_xt" msgstr "_Nächstes finden" #: ../src/menubar.cc:292 msgid "_View" msgstr "_Ansicht" #: ../src/menubar.cc:294 msgid "_Statusbar" msgstr "_Statusleiste" #: ../src/menubar.cc:297 msgid "_Line Numbers" msgstr "Zei_lennummern" #: ../src/menubar.cc:300 msgid "_Wrap Text" msgstr "Text _Umbrechen" #: ../src/menubar.cc:305 msgid "Toolbars" msgstr "Werkzeugleisten" #: ../src/menubar.cc:307 msgid "_Main Toolbar" msgstr "_Hauptwerkzeugleiste" #: ../src/menubar.cc:310 msgid "_Extended Toolbar" msgstr "_Erweiterte Werkzeugleiste" #: ../src/menubar.cc:327 msgid "_Encoding" msgstr "_Kodierung" #: ../src/menubar.cc:352 msgid "_Tools" msgstr "_Werkzeuge" #: ../src/menubar.cc:353 msgid "_Execute Command On Buffer..." msgstr "Bef_ehl auf Buffer ausführen..." #: ../src/menubar.cc:368 ../src/statusbar.cc:56 msgid "Input" msgstr "" #: ../src/menubar.cc:369 msgid "Default" msgstr "" #: ../src/menubar.cc:374 #, fuzzy msgid "Keyboard emulator" msgstr "Tastaturemulator" #: ../src/menubar.cc:378 ../src/preferencesdialog.cc:77 msgid "Multipress" msgstr "" #: ../src/menubar.cc:393 msgid "_Documents" msgstr "_Dokumente" #: ../src/menubar.cc:394 msgid "Save _All" msgstr "_Alles speichern" #: ../src/menubar.cc:397 msgid "Clos_e All" msgstr "Alles schli_eßen" #: ../src/menubar.cc:402 #, fuzzy msgid "_Opened Documents" msgstr "_Dokumente" #: ../src/menubar.cc:403 #, fuzzy msgid "_Closed Documents" msgstr "_Dokumente" #: ../src/menubar.cc:408 msgid "_Help" msgstr "_Hilfe" #: ../src/menubar.cc:796 msgid "_Highlight" msgstr "_Hervorheben" #: ../src/network.cc:89 msgid "Failed to initialize the networking backend." msgstr "" #: ../src/network.cc:95 #, fuzzy msgid "Couldn't initialize network handler." msgstr "Datei konnte nicht geruckt werden." #: ../src/network.cc:145 msgid "Please set the proxy authentication username." msgstr "" #: ../src/network.cc:150 msgid "Please set the proxy authentication password." msgstr "" #: ../src/network.cc:157 #, fuzzy msgid "Please set a proxy host." msgstr "Bitte wählen Sie eine Datei, um hineinzudrucken." #: ../src/openlocationdialog.cc:37 #, fuzzy msgid "Location" msgstr "_Standort:" #: ../src/openlocationdialog.cc:54 #, fuzzy msgid "_Insert into the active document." msgstr "Dieses Dokument drucken" #: ../src/openlocationdialog.cc:92 msgid "You must enter a location to open." msgstr "" #: ../src/pipe.cc:53 #, c-format msgid "I can't execute %s. I can't find it in your path" msgstr "" #. TODO: Possible some commands might not return 0 #: ../src/pipe.cc:99 #, fuzzy msgid "Couldn't get the required content." msgstr "Konnte keinen Emulatoreintrag für den ausgewählten Eintrag finden" #: ../src/preferencesdialog.cc:41 msgid "Preferences" msgstr "Einstellungen" #: ../src/preferencesdialog.cc:55 msgid "Options for" msgstr "" #: ../src/preferencesdialog.cc:63 msgid "General" msgstr "Allgemein" #: ../src/preferencesdialog.cc:64 msgid "Interface" msgstr "Schnittstelle" #: ../src/preferencesdialog.cc:65 msgid "Tabs" msgstr "Karteireiter" #: ../src/preferencesdialog.cc:66 msgid "Editor" msgstr "Editor" #: ../src/preferencesdialog.cc:67 msgid "Encodings" msgstr "Kodierungen" #: ../src/preferencesdialog.cc:68 msgid "File Save" msgstr "Datei speichern" #: ../src/preferencesdialog.cc:70 msgid "Spell Checker" msgstr "Rechtschreibprüfung" #: ../src/preferencesdialog.cc:73 ../src/printdialog.cc:97 msgid "Print" msgstr "Drucken" #: ../src/preferencesdialog.cc:79 #, fuzzy msgid "Remote Documents" msgstr "_Dokumente" #: ../src/preferencesdialog.cc:80 msgid "Advanced" msgstr "Erweitert" #: ../src/preferencesdialog.cc:81 msgid "Network" msgstr "" #: ../src/previewdialog.cc:48 #, fuzzy msgid "Print preview" msgstr "Seitenansicht" #: ../src/previewdialog.cc:56 ../src/previewdialog.cc:176 #, c-format msgid "of %i" msgstr "" #: ../src/print.cc:207 msgid "Other" msgstr "" #: ../src/printdialog.cc:77 #, fuzzy msgid "Print to file." msgstr "Datei konnte nicht geruckt werden." #: ../src/printdialog.cc:78 msgid "_All" msgstr "_Alle" #: ../src/printdialog.cc:79 msgid "_Selection" msgstr "Au_swahl" #: ../src/printdialog.cc:80 #, fuzzy msgid "_Lines" msgstr "Zeile:" #: ../src/printdialog.cc:81 msgid "Printer:" msgstr "Drucker" #: ../src/printdialog.cc:89 #, fuzzy msgid "Location:" msgstr "_Standort:" #: ../src/printdialog.cc:90 #, fuzzy msgid "Number of copies" msgstr "_Anzahl der Kopien" #: ../src/printdialog.cc:91 msgid "Print range" msgstr "Druckbereich" #: ../src/printdialog.cc:92 msgid "From:" msgstr "" #: ../src/printdialog.cc:93 #, fuzzy msgid "To:" msgstr "Oben" #: ../src/printdialog.cc:94 #, fuzzy msgid "Paper size:" msgstr "Papierformat:" #: ../src/printdialog.cc:95 #, fuzzy msgid "Page orientation:" msgstr "Seiten_ausrichtung:" #: ../src/printdialog.cc:113 #, fuzzy msgid "Printer name" msgstr "Drucker" #: ../src/printdialog.cc:114 #, fuzzy msgid "Status" msgstr "_Statusleiste" #: ../src/printdialog.cc:132 ../src/printdialog.cc:190 msgid "Custom" msgstr "Benutzerdefiniert" #: ../src/printdialog.cc:136 msgid "Create a PDF document" msgstr "PDF-Dokument erstellen" #: ../src/printdialog.cc:137 #, fuzzy msgid "Create a Postscript document" msgstr "PDF-Dokument erstellen" #: ../src/printdialog.cc:183 msgid "Portrait" msgstr "Hochformat" #: ../src/printdialog.cc:184 msgid "Landscape" msgstr "Querformat" #: ../src/printdialog.cc:196 #, fuzzy msgid "Width:" msgstr "_Breite:" #: ../src/printdialog.cc:196 #, fuzzy msgid "Height:" msgstr "_Höhe:" #: ../src/printdialog.cc:246 #, fuzzy msgid "Please choose a file to print to." msgstr "Bitte wählen Sie eine zu exportierende Datei aus" #: ../src/printdialog.cc:250 #, fuzzy msgid "Please choose a file not a directory." msgstr "Bitte wählen Sie eine zu importierende Datei aus" #: ../src/printdialog.cc:341 msgid "Please select a file to print to." msgstr "Bitte wählen Sie eine Datei, um hineinzudrucken." #: ../src/printdialog.cc:421 #, fuzzy msgid "I couldn't get the selected printer." msgstr "Konnte keinen Emulatoreintrag für den ausgewählten Eintrag finden" #: ../src/replacedialog.cc:32 ../src/searchdialog.cc:32 msgid "Find" msgstr "Finden" #: ../src/replacedialog.cc:33 ../src/searchdialog.cc:33 #, fuzzy msgid "Search for:" msgstr "Suchen" #: ../src/replacedialog.cc:34 msgid "Replace with:" msgstr "Ersetzen durch:" #: ../src/replacedialog.cc:35 ../src/searchdialog.cc:34 msgid "Match entire word only" msgstr "" #: ../src/replacedialog.cc:36 ../src/searchdialog.cc:35 #, fuzzy msgid "Match case" msgstr "_Groß-/Kleinschreibung" #. regex(_("Regular expression")), #: ../src/replacedialog.cc:37 ../src/searchdialog.cc:37 msgid "Wrap search" msgstr "" #: ../src/replacedialog.cc:38 ../src/searchdialog.cc:38 #, fuzzy msgid "Search from the cursor position" msgstr "Suche ab Zeiger_position" #: ../src/replacedialog.cc:39 ../src/searchdialog.cc:39 msgid "Search backwards" msgstr "" #: ../src/replacedialog.cc:40 ../src/searchdialog.cc:40 #, fuzzy msgid "Search from the beginnig of the document" msgstr "Suche ab Dokument_anfang" #: ../src/replacedialog.cc:42 msgid "_Replace" msgstr "E_rsetzen" #. find_replace(Gtk::Stock::FIND_AND_REPLACE), #: ../src/replacedialog.cc:44 #, fuzzy msgid "Replace _All" msgstr "_Alles ersetzen" #: ../src/spell.cc:53 #, fuzzy msgid "Failed to initialize the spell checker" msgstr "Recht_schreibprüfung aktivieren" #: ../src/spell.cc:66 #, fuzzy msgid "Failed to set the requested dictionary." msgstr "Standardwörterbuch auswählen" #: ../src/spelldialog.cc:37 msgid "_Ignore" msgstr "_Ignorieren" #: ../src/spelldialog.cc:38 #, fuzzy msgid "Ignore _All" msgstr "_Ignorieren" #: ../src/spelldialog.cc:39 msgid "C_hange" msgstr "Ä_ndern" #: ../src/spelldialog.cc:42 msgid "_Add to user dictionary" msgstr "Zum Benutzerwörterbuch _hinzufügen" #: ../src/spelldialog.cc:43 #, fuzzy msgid "Misspelled:" msgstr "Falsch geschrieben:" #: ../src/spelldialog.cc:44 msgid "Change to:" msgstr "Ändern zu" #: ../src/spelldialog.cc:48 msgid "Check Spelling" msgstr "Rechtschreibung überprüfen" #: ../src/spelldialog.cc:92 msgid "Suggestions" msgstr "Vorschläge" #: ../src/spelldialog.cc:128 msgid "No misspelled words." msgstr "Keine falsch geschriebenen Wörter gefunden." #: ../src/statusbar.cc:69 #, fuzzy msgid "OVR" msgstr " OVR" #: ../src/statusbar.cc:69 #, fuzzy msgid "INS" msgstr " EIN" #: ../src/statusbar.cc:74 #, fuzzy, c-format msgid " L: %d, C: %d" msgstr " Z: %d, P: %d" #: ../src/toolbar.cc:53 msgid "Search" msgstr "Suchen" #: ../src/toolbar.cc:56 msgid "Spelling Dictionary" msgstr "Rechtschreibwörterbuch" #: ../src/toolbar.cc:102 msgid "Create a new file" msgstr "Eine neue Datei erstellen" #: ../src/toolbar.cc:103 msgid "Open a file for editing" msgstr "Eine Datei zum Bearbeiten öffnen" #: ../src/toolbar.cc:104 msgid "Save the existing file" msgstr "Eine Vorhandene Datei speichern" #: ../src/toolbar.cc:106 msgid "Print this document" msgstr "Dieses Dokument drucken" #: ../src/toolbar.cc:108 msgid "Close the active file" msgstr "Offene Datei schließen" #: ../src/toolbar.cc:109 msgid "Undo" msgstr "Rückgängig" #: ../src/toolbar.cc:110 msgid "Redo" msgstr "Wiederholen" #: ../src/toolbar.cc:111 msgid "Cut" msgstr "Ausschneiden" #: ../src/toolbar.cc:112 msgid "Copy" msgstr "Kopieren" #: ../src/toolbar.cc:113 msgid "Paste" msgstr "Einfügen" #: ../src/toolbar.cc:114 msgid "Delete current selection" msgstr "Aktuelle Auswahl löschen" #: ../src/toolbar.cc:116 msgid "Toggle full screen mode" msgstr "" #: ../src/utils.cc:189 msgid "I can't backup the old file.\n" msgstr "" #: ../src/utils.cc:247 #, fuzzy, c-format msgid "%s is a directory." msgstr "Dies ist ein Verzeichnis." #: ../src/window.cc:141 msgid " The keyboard emulator will not work." msgstr "" #: ../src/window.cc:147 msgid " Multipress will not work." msgstr "" #: ../src/window.cc:153 msgid "" "A lot of the configuration options have been changed in this version.\n" "Please adjust the configuration first." msgstr "" #~ msgid "Unknown" #~ msgstr "Unbekannt" #, fuzzy #~ msgid "Ready" #~ msgstr "Wiederholen" #, fuzzy #~ msgid "Printing" #~ msgstr "Drucken" #, fuzzy #~ msgid "Couldn't get the definition from the server." #~ msgstr "Kann die Kodierung des Textes nicht ermitteln." #, fuzzy #~ msgid "Timeout" #~ msgstr "Zeitüberschreitung nach:" #, fuzzy #~ msgid "Command" #~ msgstr "Bef_ehl auf Buffer ausführen..." #~ msgid "katoob" #~ msgstr "katoob" #, fuzzy #~ msgid "Remote" #~ msgstr "Wiederholen" #, fuzzy #~ msgid "Are you sure you want to overwrite the file " #~ msgstr "Sind Sie sicher, dass Sie die Datei %s überschreiben wollen?" #, fuzzy #~ msgid "_PDF file..." #~ msgstr "_Finden..." #~ msgid "" #~ "You have modified the current text, Katoob'll convert the current text to " #~ "your default encoding and then convert it back to your choosen encoding. " #~ "Continue ?" #~ msgstr "" #~ "Sie haben den aktuellen Text verändert. Katoob wird den aktuellen Text in " #~ "Ihre voreingestellte Kodierung und dann zurück in Ihre gewählte Kodierung " #~ "konvertieren. Fortfahren?" #~ msgid "" #~ "You are changing the encoding of a modified file, This'll also clear the " #~ "undo & redo history, Should katoob reopen the file?" #~ msgstr "" #~ "Sie verändern die Kodierung einer bearbeiteten Datei. Dies wird " #~ "gleichzeitig den Rückgängig- und Wiederholen-Verlauf löschen. Soll Katoob " #~ "die Datei neu öffnen?" #~ msgid "" #~ "Katoob couldn't convert the text to unicode to be able to edit it, " #~ "Katoob'll try to recover what it can, The error was:\n" #~ "%s" #~ msgstr "" #~ "Katoob konnte den Text nicht nach Unicode konvertieren um ihn zu " #~ "bearbeiten, Katoob wird eine Wiederherstellung versuchen, Der Fehler " #~ "war:\n" #~ "%s" #~ msgid "" #~ "Katoob couldn't recover unicode valid text, The error was:\n" #~ "%s" #~ msgstr "" #~ "Katoob konnte den gültigen Unicode-Text nicht wiederherstellen. Der " #~ "Fehler war:\n" #~ "%s" #~ msgid "The file %s doesn't exist, Create it?" #~ msgstr "Die Datei %s existiert nicht. Erstellen?" #~ msgid "Couldn't create file %s, %s" #~ msgstr "Die Datei %s, konnte nicht erstellt werden. %s" #~ msgid "Couldn't open file %s, %s" #~ msgstr "Die Datei %s konnte nicht geöffnet werden. %s" #~ msgid "" #~ "An error has occured while reading file %s\n" #~ "%s" #~ msgstr "" #~ "Während des Lesens der Datei %s ist ein Fehler aufgetreten.\n" #~ "%s" #~ msgid "" #~ "An error has occured while writing to file %s\n" #~ "%s" #~ msgstr "" #~ "Während des Schreibens der Datei %s trat ein Fehler auf.\n" #~ "%s" #~ msgid "Empty file." #~ msgstr "Leere Datei." #~ msgid "The requested file couldn't be opened for saving" #~ msgstr "Die angeforderte Datei konnte zum Speichern nicht geöffnet werden" #~ msgid "An error has occured while writing to file %s" #~ msgstr "Während des Schreibens der Datei %s trat ein Fehler auf" #~ msgid "That's not a valid UTF-8 file" #~ msgstr "Das ist keine gültige UTF-8-Datei" #~ msgid "ERROR" #~ msgstr "FEHLER" #~ msgid "Katoob debugging output." #~ msgstr "Katoob-Fehlerausgabe." #~ msgid "" #~ "Katoob has crashed, Please email the following debugging output to " #~ "developer@arabeyes.org and tell them exactly what you were doing." #~ msgstr "" #~ "Katoob ist angestürzt. Bitte senden Sie eine E-Mail mit der folgenden " #~ "Fehlerausgabe an developer@arabeyes.org und beschreiben Sie, was Sie " #~ "genau getan haben." #~ msgid "Save" #~ msgstr "Speichern" #~ msgid "Text direction" #~ msgstr "Textrichtung" #~ msgid "_Left to right" #~ msgstr "_Links nach Rechts" #~ msgid "_Right to left" #~ msgstr "_Rechts nach Links" #~ msgid "_Automatic" #~ msgstr "_Automatisch" #~ msgid "Can't determine the encoding for that file, Please choose one." #~ msgstr "" #~ "Kann die Kodierung der Datei nicht ermitteln. Bitte wählen Sie eine." #~ msgid "_New" #~ msgstr "_Neu" #~ msgid "_Open..." #~ msgstr "_Öffnen..." #~ msgid "_Save" #~ msgstr "_Speichern" #~ msgid "Save _As..." #~ msgstr "Speichern _Unter..." #~ msgid "_Revert" #~ msgstr "Zu_rücksetzen" #~ msgid "_Iran System..." #~ msgstr "_Iran-System..." #~ msgid "_Print..." #~ msgstr "_Drucken..." #~ msgid "_Close" #~ msgstr "_Schließen" #~ msgid "_Quit" #~ msgstr "_Verlassen" #~ msgid "_Undo" #~ msgstr "_Rückgängig" #~ msgid "_Redo" #~ msgstr "_Wiederholen" #~ msgid "Cu_t" #~ msgstr "A_usschneiden" #~ msgid "_Copy" #~ msgstr "_Kopieren" #~ msgid "_Paste" #~ msgstr "_Einfügen" #~ msgid "_Delete" #~ msgstr "_Löschen" #~ msgid "Pr_eferences..." #~ msgstr "_Einstellungen..." #~ msgid "_Replace..." #~ msgstr "E_rsetzen..." #~ msgid "Goto _Line..." #~ msgstr "Gehe zu _Zeile..." #~ msgid "Ada" #~ msgstr "Ada" #~ msgid "C" #~ msgstr "C" #~ msgid "C++" #~ msgstr "C++" #~ msgid ".desktop" #~ msgstr ".desktop" #~ msgid "Diff" #~ msgstr "Diff" #~ msgid "HTML" #~ msgstr "HTML" #~ msgid "IDL" #~ msgstr "IDL" #~ msgid "Java" #~ msgstr "Java" #~ msgid "Latex" #~ msgstr "Latex" #~ msgid "Perl" #~ msgstr "perl" #~ msgid "gettext translation" #~ msgstr "gettext-Übersetzung" #~ msgid "Python" #~ msgstr "Python" #~ msgid "XML" #~ msgstr "XML" #~ msgid "_Spell Check..." #~ msgstr "Rechtschreibprüfung..." #~ msgid "Abou_t" #~ msgstr "Übe_r" #~ msgid "About Katoob" #~ msgstr "Über Katoob" #~ msgid "Developers" #~ msgstr "Entwickler" #, fuzzy #~ msgid "License" #~ msgstr "Zeile:" #~ msgid "Information" #~ msgstr "Information" #~ msgid "Error initializing Arabic keyboard" #~ msgstr "Fehler beim Initialisieren der arabischen Tastatur" #~ msgid "" #~ "An error has occured while trying to initialize your Arabic keyboard, " #~ "Katoob'll try to use the built in Arabic keyboard emulator." #~ msgstr "" #~ "Beim Versuch, die arabische Tastatur zu initialisieren, trat ein Fehler " #~ "auf. Katoob wird versuchen, den integrierten arabischen Tastaturemulator " #~ "zu verwenden." #~ msgid "_Show this warning every time this problem occures" #~ msgstr "Wann immer dieses Problem auftritt, diese Warnung _zeigen." #~ msgid "_Goto" #~ msgstr "_Gehe zu" #~ msgid "Confirm Revert" #~ msgstr "Zurücksetzen bestätigen" #~ msgid "Mispelled words color" #~ msgstr "Falschgeschriebene Wörter farbig" #~ msgid "Please select the backup directory" #~ msgstr "Bitte wählen Sie das Sicherungsverzeichnis" #~ msgid "Please select the dictionaries directory" #~ msgstr "Bitte wählen Sie das Wörterbuchverzeichnis" #~ msgid "This is not a directory." #~ msgstr "Dies ist kein Verzeichnis." #~ msgid "Executed commands history size:" #~ msgstr "Anzahl der Ausgeführten Befehle:" #~ msgid "Default text direction:" #~ msgstr "Standardtextrichtung:" #~ msgid "_Manually choose the encoding" #~ msgstr "Kodierung _manuell auswählen" #~ msgid "Create backup in the original file directory." #~ msgstr "Sicherheitskopie im Originalverzeichnis erstellen." #~ msgid "Backup directory." #~ msgstr "Verzeichnis der Sicherheitskopien." #~ msgid "_Browse" #~ msgstr "_Suchen" #~ msgid "Dictionaries directory" #~ msgstr "Wörterbücherverzeichnis" #~ msgid "Not enabled at compile time!" #~ msgstr "Beim Kompilieren nicht aktiviert!" #~ msgid "Dictionary:" #~ msgstr "Wörterbuch:" #~ msgid "_Disable Antialiasing" #~ msgstr "Schriftkantenglättung _deaktivieren" #~ msgid "Select Font" #~ msgstr "Schrift auswählen" #~ msgid "You choosed a directory." #~ msgstr "Sie haben ein Verzeichnis ausgewählt." #~ msgid "Can't get selection" #~ msgstr "Kann Auswahl nicht bekommen." #~ msgid "Couldn't execute gs to generate PDF." #~ msgstr "Konnte gs nicht ausführen, um PDF zu generieren." #~ msgid "Couldn't open the requested file for writing." #~ msgstr "Konnte die angeforderte Datei zum Schreiben nicht öffnen." #~ msgid "Can't create temp file" #~ msgstr "Temporäre Datei konnte nicht erstellen werden" #~ msgid "Error executing custom command." #~ msgstr "Fehler beim Ausführen eines Benutzerbefehls." #~ msgid "Choose Font" #~ msgstr "Schrift auswählen" #~ msgid "Family" #~ msgstr "Familie" #~ msgid "Style" #~ msgstr "Stil" #~ msgid "Size" #~ msgstr "Größe" #~ msgid "Copies" #~ msgstr "Kopien" #~ msgid "Job" #~ msgstr "Auftrag" #~ msgid "Pr_inter:" #~ msgstr "_Drucker" #~ msgid "Generic Postscript" #~ msgstr "Gewöhnliches Postscript" #~ msgid "File" #~ msgstr "Datei" #~ msgid "lpr" #~ msgstr "lpr" #~ msgid "Inches" #~ msgstr "Zoll" #~ msgid "Points" #~ msgstr "Punkte" #~ msgid "Cus_tom size" #~ msgstr "Benutzerdefinierte Größe" #~ msgid "Paper and layout" #~ msgstr "Papier und Layout" #~ msgid "Margins (inch)" #~ msgstr "Ränder (Zoll)" #~ msgid "Paper" #~ msgstr "Papier" #, fuzzy #~ msgid "Please select an application." #~ msgstr "Bitte wählen Sie eine Datei zum Bearbeiten aus." #~ msgid "Can't open the recent documents file" #~ msgstr "Die Zuletzt-Geänderte Datei kann nicht geöffnet werden" #~ msgid "Save As..." #~ msgstr "Sichern Unter..." #~ msgid "Save A Copy..." #~ msgstr "Eine Kopie speichern..." #~ msgid " Couldn 't create a backup, Continue ?" #~ msgstr "Konnte Sicherheitskopie nicht erstellen. Fortfahren?" #~ msgid "The requested file couldn' t be opened for saving " #~ msgstr "Die angeforderte Datei konnte zum speichern nicht geöffnet werden." #~ msgid "Replace" #~ msgstr "Ersetzen" #~ msgid "Find what:" #~ msgstr "Was finden:" #~ msgid "An error has occured" #~ msgstr "Ein Fehler ist aufgetreten" #~ msgid "The document is empty." #~ msgstr "Das Dokument ist leer." #~ msgid "Check _Spelling" #~ msgstr "Recht_schreibung überprüfen" #~ msgid "No more mispelled word." #~ msgstr "Keine falsch geschriebenen Wörter mehr." #~ msgid "Emulator" #~ msgstr "Emulator" #~ msgid "Change the typing language" #~ msgstr "Schreibsprache ändern" katoob-0.5.9.1/po/fr.po0000644000175000017500000010734310746617675011504 00000000000000# Katoob Multiligual Textprocessor # Copyright (C) 2004 # This file is distributed under the same license as the katoob package. # Emmanuel Beffara , 2004. # msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2007-12-18 12:03+0200\n" "PO-Revision-Date: 2004-10-09 18:47+0200\n" "Last-Translator: Emmanuel Beffara \n" "Language-Team: French \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: ../katoob.desktop.in.h:1 ../src/aboutdialog.cc:66 #, fuzzy msgid "Katoob" msgstr "katoob" #: ../katoob.desktop.in.h:2 msgid "Multilingual Unicode Text Editor" msgstr "Éditeur de texte multilingue Unicode" #: ../src/aboutdialog.cc:51 msgid "" "Katoob 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." msgstr "" #: ../src/aboutdialog.cc:56 msgid "" "Katoob 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." msgstr "" #: ../src/aboutdialog.cc:61 msgid "" "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" msgstr "" #: ../src/aboutdialog.cc:71 msgid "Copyright © 2006, 2007 Mohammed Sameer." msgstr "" #: ../src/aboutdialog.cc:73 ../src/aboutdialog.cc:76 msgid "Mohammed Sameer" msgstr "" #: ../src/aboutdialog.cc:77 msgid "Mostafa Hussein" msgstr "" #: ../src/aboutdialog.cc:80 #, fuzzy msgid "A lightweight multilingual unicode and bidi aware text editor" msgstr "Éditeur de texte multilingue Unicode" #: ../src/aboutdialog.cc:81 msgid "translator-credits" msgstr "" #: ../src/applets.cc:55 msgid "_Enable undo, redo\t" msgstr "_Activer l'annulation/récupération\t" #: ../src/applets.cc:57 msgid "Keep a history of recently closed documents" msgstr "" #: ../src/applets.cc:59 msgid "" "Undo history size\n" "(0 for unlimited)" msgstr "" "Taille de l'historique d'annulation\n" "(0 pour le rendre illimité)" #: ../src/applets.cc:60 #, fuzzy msgid "" "Executed commands history size\n" "(0 for unlimited)" msgstr "" "Taille de l'historique d'annulation\n" "(0 pour le rendre illimité)" #: ../src/applets.cc:61 #, fuzzy msgid "" "Closed documents history size\n" "(0 for unlimited)" msgstr "" "Taille de l'historique d'annulation\n" "(0 pour le rendre illimité)" #: ../src/applets.cc:122 #, fuzzy msgid "Show the extra _buttons" msgstr "Afficher les onglets" #: ../src/applets.cc:123 msgid "Show the _Main Toolbar" msgstr "Afficher la barre d'outils _principale" #: ../src/applets.cc:124 msgid "Show the _Extended Toolbar" msgstr "Afficher la barre d'outils _étendue" #: ../src/applets.cc:125 msgid "Show the _Statusbar" msgstr "Afficher la _barre d'état" #: ../src/applets.cc:126 msgid "Enable re_cent menu" msgstr "Activer le menu des documents _récents" #: ../src/applets.cc:127 msgid "Show the _close button on each tab label" msgstr "Afficher le bouton _Fermer sur chaque onglet" #: ../src/applets.cc:128 msgid "" "No. of recent entries\n" "(0 for unlimited)" msgstr "" "Nombre de d'entrées du menu\n" "(0 pour le rendre illimité)" #: ../src/applets.cc:129 msgid "Show the toolbar as" msgstr "Affichage de la barres d'outils:" #: ../src/applets.cc:130 ../src/applets.cc:159 ../src/menubar.cc:318 msgid "Text only" msgstr "Texte seul" #. TODO: Disable these when the main toolbar is not shown. #: ../src/applets.cc:131 ../src/applets.cc:162 ../src/menubar.cc:315 msgid "Icons only" msgstr "Icônes seules" #: ../src/applets.cc:132 ../src/applets.cc:168 ../src/applets.cc:350 #: ../src/applets.cc:383 ../src/applets.cc:392 ../src/menubar.cc:321 msgid "Both" msgstr "Texte sous les icônes" #: ../src/applets.cc:133 ../src/applets.cc:165 ../src/menubar.cc:324 msgid "Text beside icons" msgstr "Texte à côté des icônes" #: ../src/applets.cc:217 msgid "_Show tabs" msgstr "_Afficher les onglets" #: ../src/applets.cc:218 msgid "_Enable tabs menu" msgstr "Activer le _menu des onglets" #: ../src/applets.cc:219 msgid "Scro_ll tabs" msgstr "_Défilement des onglets" #: ../src/applets.cc:220 msgid "Show the tabs at the" msgstr "Afficher les onglets" #: ../src/applets.cc:221 ../src/applets.cc:282 ../src/applets.cc:846 msgid "Top" msgstr "en haut" #: ../src/applets.cc:222 ../src/applets.cc:273 msgid "Bottom" msgstr "en bas" #: ../src/applets.cc:223 ../src/applets.cc:276 ../src/applets.cc:348 #: ../src/applets.cc:389 msgid "Right" msgstr "à droite" #: ../src/applets.cc:224 ../src/applets.cc:279 ../src/applets.cc:349 #: ../src/applets.cc:386 ../src/applets.cc:845 msgid "Left" msgstr "à gauche" #: ../src/applets.cc:226 msgid "Color for read only tabs" msgstr "" #: ../src/applets.cc:227 msgid "Color for modified tabs" msgstr "" #: ../src/applets.cc:228 msgid "Color for normal tabs" msgstr "" #: ../src/applets.cc:341 msgid "Text _Wrapping is on by default" msgstr "_Coupure des lignes activée par défaut" #: ../src/applets.cc:342 msgid "Show _Line numbers by default" msgstr "Afficher les numéros de _ligne par défaut" #: ../src/applets.cc:343 msgid "Use the default _font" msgstr "Utiliser la fonte _standard" #: ../src/applets.cc:345 #, fuzzy msgid "_Automatic syntax highlighting for known file types" msgstr "_Coloriser les fichiers de type connu" #: ../src/applets.cc:347 #, fuzzy msgid "Line numbers position" msgstr "Numéros de _lignes" #: ../src/applets.cc:351 msgid "Font" msgstr "Fonte" #: ../src/applets.cc:353 msgid "Tab width" msgstr "" #: ../src/applets.cc:450 msgid "_Use the locale encoding" msgstr "_Utiliser l'encodage local" #: ../src/applets.cc:451 ../src/applets.cc:452 #, fuzzy msgid "Specify an encoding" msgstr "Encodage par défaut" #: ../src/applets.cc:456 #, fuzzy msgid "File open encoding" msgstr "Choisissez l'encodage." #: ../src/applets.cc:457 #, fuzzy msgid "File save encoding" msgstr "Choisissez l'encodage." #: ../src/applets.cc:502 msgid "_Backup files before saving." msgstr "Faire des _copies de sauvegarde" #: ../src/applets.cc:503 #, fuzzy msgid "Backup extension" msgstr "Suffixe des sauvegardes:" #: ../src/applets.cc:534 ../src/menubar.cc:362 msgid "_Autocheck Spelling" msgstr "Vérification _automatique" #. misspelled_label.set_text(_("Misspelled words color")); #: ../src/applets.cc:536 msgid "Choose the default dictionary" msgstr "Dictionnaire par défaut:" #: ../src/applets.cc:586 #, fuzzy msgid "Printing font" msgstr "Imprimer ce document" #: ../src/applets.cc:590 msgid "_Enable advanced options" msgstr "Activer les options _avancées" #: ../src/applets.cc:594 msgid "X Dot Per Inch" msgstr "" #: ../src/applets.cc:595 msgid "Y Dot Per Inch" msgstr "" #: ../src/applets.cc:652 msgid "_Enable the dictionary." msgstr "Activer le _dictionnaire" #: ../src/applets.cc:653 #, fuzzy msgid "Host" msgstr "Hôte:" #: ../src/applets.cc:654 msgid "_List dictionaries" msgstr "_Liste des dictionnaires" #: ../src/applets.cc:656 #, fuzzy msgid "Port" msgstr "Port:" #: ../src/applets.cc:667 ../src/applets.cc:675 ../src/preferencesdialog.cc:75 msgid "Dictionary" msgstr "Dictionnaire" #: ../src/applets.cc:676 msgid "Description" msgstr "Description" #: ../src/applets.cc:681 msgid "Not Available." msgstr "Non disponible." #: ../src/applets.cc:738 ../src/applets.cc:741 msgid "Failed to get the available dictionaries." msgstr "" #: ../src/applets.cc:768 msgid "Please provide a dict server" msgstr "" #: ../src/applets.cc:797 msgid "_Milliseconds before multipress will accept the current value." msgstr "" #: ../src/applets.cc:827 #, fuzzy msgid "" "Number of remote addresses to save\n" "(0 for unlimited)" msgstr "" "Nombre de d'entrées du menu\n" "(0 pour le rendre illimité)" #: ../src/applets.cc:830 msgid "_Insert into the active document enabled by default ?" msgstr "" #: ../src/applets.cc:847 msgid "Width" msgstr "Largeur" #: ../src/applets.cc:848 msgid "Height" msgstr "Hauteur" #: ../src/applets.cc:850 msgid "Save all the program _settings on exit" msgstr "Enregistrer les _réglages du programme en quittant" #: ../src/applets.cc:851 msgid "Save the main window _attributes on exit" msgstr "Enregistrer les _attributs de la fenêtre en quittant" #: ../src/applets.cc:856 msgid "Window position" msgstr "Position de la fenêtre" #: ../src/applets.cc:857 msgid "Window size" msgstr "Taille de la fenêtre" #: ../src/applets.cc:925 msgid "Network timeout (In seconds):" msgstr "" #: ../src/applets.cc:926 msgid "Proxy host:" msgstr "" #: ../src/applets.cc:927 msgid "Proxy port:" msgstr "" #: ../src/applets.cc:928 msgid "Proxy type:" msgstr "" #: ../src/applets.cc:930 ../src/menubar.cc:798 msgid "None" msgstr "aucune" #: ../src/applets.cc:931 msgid "Get from the environment" msgstr "" #: ../src/applets.cc:932 msgid "HTTP" msgstr "" #: ../src/applets.cc:933 msgid "SOCKS4" msgstr "" #: ../src/applets.cc:934 msgid "SOCKS5" msgstr "" #: ../src/applets.cc:948 msgid "Tunnel traffic through the proxy" msgstr "" #: ../src/applets.cc:950 msgid "Use proxy authentication" msgstr "" #: ../src/applets.cc:951 msgid "Proxy username:" msgstr "" #: ../src/applets.cc:952 msgid "Proxy password:" msgstr "" #: ../src/dialogs.cc:70 #, fuzzy msgid "Insert to document" msgstr "Imprimer ce document" #: ../src/dialogs.cc:98 ../src/toolbar.cc:52 msgid "Goto Line" msgstr "Aller à la ligne" #: ../src/dialogs.cc:105 msgid "Line:" msgstr "Ligne:" #: ../src/dialogs.cc:139 msgid "Please wait..." msgstr "" #: ../src/dict.cc:60 msgid "Invalid daatabase. Please reconfigure the dictionary in use." msgstr "" #: ../src/dict.cc:64 #, fuzzy msgid "No matches were found" msgstr "Aucune occurence trouvée." #: ../src/dict.cc:122 ../src/dict.cc:139 #, fuzzy msgid "No databases were found." msgstr "Aucune occurence trouvée." #: ../src/document.cc:109 #, fuzzy msgid " Is a directory." msgstr "Ceci est un répertoire." #: ../src/document.cc:133 ../src/mdi.cc:295 ../src/mdi.cc:1107 #, fuzzy, c-format msgid "Couldn't detect the encoding of %s" msgstr "Impossible de lancer gs pour produire un PDF." #: ../src/document.cc:193 #, fuzzy msgid "Couldn't detect the encoding of the text." msgstr "Impossible de déterminer l'encodage du texte." #: ../src/document.cc:285 #, c-format msgid "Failed to create the autorecovery file %s" msgstr "" #: ../src/document.cc:1240 msgid "Define " msgstr "" #: ../src/document.cc:1255 msgid "Spelling Suggestions" msgstr "Suggestions d'ortographe" #: ../src/document.cc:1263 #, fuzzy, c-format msgid "Add \"%s\" to dictionary" msgstr "Ajouter \"%s\" au dictionnaire" #. TODO: Use italics markup. #: ../src/document.cc:1272 msgid "no suggestions" msgstr "pas de suggestion" #: ../src/document.cc:1283 msgid "More..." msgstr "Plus..." #: ../src/encodings.cc:347 ../src/encodings.cc:367 #, fuzzy msgid "I wasn't able to convert the encoding." msgstr "Impossible de déterminer l'encodage du texte." #: ../src/execdialog.cc:40 msgid "Command to execute" msgstr "" #: ../src/execdialog.cc:41 #, c-format msgid "" "'%s' will be substituted with a temporary filename\n" "containing the text from the document." msgstr "" #: ../src/execdialog.cc:47 #, fuzzy msgid "_Show the results in a new tab" msgstr "Afficher les onglets" #: ../src/export.cc:48 msgid "_Text file with no unicode control characters..." msgstr "" #: ../src/export.cc:55 ../src/import.cc:52 msgid "Text file compressed with _gzip" msgstr "" #: ../src/export.cc:62 ../src/import.cc:58 msgid "Text file compressed with _bzip2" msgstr "" #: ../src/export.cc:69 ../src/import.cc:64 msgid "Text with _shaping and bidi applied" msgstr "" #: ../src/export.cc:107 #, fuzzy msgid "Can't open temporary file." msgstr "Impossible d'ouvrir le fichier temporaire" #: ../src/export.cc:113 #, fuzzy msgid "Error writing to temporary file." msgstr "Impossible de créer un fichier temporaire." #: ../src/export.cc:130 msgid "Couldn't allocate memory for compression." msgstr "" #: ../src/export.cc:136 #, fuzzy msgid "Couldn't compress the text." msgstr "Ipossible d'imprimer le fichier." #. _ch is allocated via g_new(); #: ../src/export.cc:185 ../src/import.cc:239 #, fuzzy msgid "Couldn't apply the bidi algorithm." msgstr "Ipossible d'imprimer le fichier." #: ../src/filedialog.cc:38 ../src/filedialog.cc:52 #: ../src/openlocationdialog.cc:38 msgid "Encoding" msgstr "Encodage" #: ../src/filedialog.cc:144 msgid "This is a directory." msgstr "Ceci est un répertoire." #: ../src/import.cc:47 msgid "_HTML Character Reference..." msgstr "Référence de caractères _HTML..." #: ../src/import.cc:114 ../src/import.cc:120 ../src/import.cc:141 #: ../src/import.cc:172 #, fuzzy msgid "Can't open file." msgstr "Impossible d'ouvrir le fichier temporaire" #. Error. #: ../src/import.cc:135 ../src/import.cc:157 ../src/import.cc:188 msgid "Error reading file." msgstr "" #: ../src/inputwindow.cc:33 msgid "Input Window" msgstr "" #: ../src/isocodes.cc:117 #, c-format msgid "%s (%s)" msgstr "" #: ../src/label.cc:60 #, c-format msgid "Untitled New %d" msgstr "" #: ../src/mdi.cc:83 #, c-format msgid "Failed to scan for any autorecovery files: %s" msgstr "" #: ../src/mdi.cc:88 msgid "Some unrecovered files were found. Try to recover them ?" msgstr "" #: ../src/mdi.cc:203 msgid "Please select a file for editing." msgstr "Sélection d'un fichier à éditer" #: ../src/mdi.cc:281 #, fuzzy msgid "This is a read only document." msgstr "Ceci est un répertoire." #: ../src/mdi.cc:285 #, fuzzy msgid "Please select a file." msgstr "Sélection d'un fichier à éditer" #: ../src/mdi.cc:324 msgid "This document can not be saved. It's a read only file." msgstr "" #: ../src/mdi.cc:354 #, fuzzy msgid "Please select a file for saving." msgstr "Sélection d'un fichier à éditer" #: ../src/mdi.cc:361 ../src/mdi.cc:1124 ../src/printdialog.cc:254 #, c-format msgid "Are you sure you want to overwrite the file %s ?" msgstr "Êtes vous sûr de vouloir remplacer le fichier %s ?" #: ../src/mdi.cc:452 #, fuzzy, c-format msgid "The file %s is not saved, Save first ?" msgstr "Le fichier %s n'est pas enregistré. Enregistrer ?" #: ../src/mdi.cc:455 #, c-format msgid "\"%s\" is not saved, Save first?" msgstr "\"%s\" n'est pas enregistré. Enregistrer ?" #: ../src/mdi.cc:509 #, fuzzy, c-format msgid "The file \"%s\" doesn't exist." msgstr "Ce fichier n'existe pas." #: ../src/mdi.cc:573 #, fuzzy, c-format msgid "" "This will close the current file \"%s\". Discard any changes done and reload " "the saved copy of the file. Are you sure you want to continue ?" msgstr "" "Ceci va fermer le fichier en cours \"%s\", annuler toutes les modifications " "apportées au texte, et recharger la version enregistrée du fichier. Êtes-" "vous sûr de vouloir continuer ?" #: ../src/mdi.cc:673 msgid "You must inter a word to search for." msgstr "" #: ../src/mdi.cc:685 ../src/mdi.cc:701 ../src/mdi.cc:748 #, fuzzy msgid "No search results found." msgstr "Aucune occurence trouvée" #: ../src/mdi.cc:781 #, fuzzy, c-format msgid "Replaced %d occurence." msgid_plural "Replaced %d occurences." msgstr[0] "%d occurences remplacées" msgstr[1] "%d occurences remplacées" #: ../src/mdi.cc:806 #, c-format msgid "You can use only one '%s'" msgstr "" #: ../src/mdi.cc:959 ../src/mdi.cc:962 msgid "Failed to get any definitions." msgstr "" #: ../src/menubar.cc:142 msgid "_File" msgstr "_Fichier" #: ../src/menubar.cc:150 #, fuzzy msgid "Open _Location..." msgstr "_Destination:" #. Recent #: ../src/menubar.cc:154 msgid "Recent" msgstr "Documents récents" #: ../src/menubar.cc:164 msgid "Sa_ve Copy..." msgstr "Enregistrer une _copie..." #: ../src/menubar.cc:171 msgid "_Import" msgstr "_Importer" #: ../src/menubar.cc:179 msgid "_Export" msgstr "E_xporter" #: ../src/menubar.cc:188 msgid "Page Set_up..." msgstr "" #: ../src/menubar.cc:191 #, fuzzy msgid "Print Previe_w" msgstr "Apperçu" #: ../src/menubar.cc:240 msgid "_Edit" msgstr "_Édition" #: ../src/menubar.cc:261 msgid "_Select All" msgstr "_Tout sélectionner" #: ../src/menubar.cc:265 msgid "_Insert File" msgstr "" #: ../src/menubar.cc:274 msgid "_Search" msgstr "_Recherche" #: ../src/menubar.cc:279 msgid "Find Ne_xt" msgstr "Occurence _suivante" #: ../src/menubar.cc:292 msgid "_View" msgstr "_Affichage" #: ../src/menubar.cc:294 msgid "_Statusbar" msgstr "_Barre d'état" #: ../src/menubar.cc:297 msgid "_Line Numbers" msgstr "Numéros de _lignes" #: ../src/menubar.cc:300 msgid "_Wrap Text" msgstr "_Couper les lignes" #: ../src/menubar.cc:305 msgid "Toolbars" msgstr "Barres d'outils" #: ../src/menubar.cc:307 msgid "_Main Toolbar" msgstr "Barre d'outils _principale" #: ../src/menubar.cc:310 msgid "_Extended Toolbar" msgstr "Barre d'outils _étendue" #: ../src/menubar.cc:327 msgid "_Encoding" msgstr "_Encodage" #: ../src/menubar.cc:352 msgid "_Tools" msgstr "Ou_tils" #: ../src/menubar.cc:353 msgid "_Execute Command On Buffer..." msgstr "_Exécuter une commande sur le texte..." #: ../src/menubar.cc:368 ../src/statusbar.cc:56 msgid "Input" msgstr "" #: ../src/menubar.cc:369 msgid "Default" msgstr "" #: ../src/menubar.cc:374 #, fuzzy msgid "Keyboard emulator" msgstr "Émulateur de clavier" #: ../src/menubar.cc:378 ../src/preferencesdialog.cc:77 msgid "Multipress" msgstr "" #: ../src/menubar.cc:393 msgid "_Documents" msgstr "_Documents" #: ../src/menubar.cc:394 msgid "Save _All" msgstr "Tout _enregistrer" #: ../src/menubar.cc:397 msgid "Clos_e All" msgstr "Tout _fermer" #: ../src/menubar.cc:402 #, fuzzy msgid "_Opened Documents" msgstr "_Documents" #: ../src/menubar.cc:403 #, fuzzy msgid "_Closed Documents" msgstr "_Documents" #: ../src/menubar.cc:408 msgid "_Help" msgstr "_Aide" #: ../src/menubar.cc:796 msgid "_Highlight" msgstr "_Coloration" #: ../src/network.cc:89 msgid "Failed to initialize the networking backend." msgstr "" #: ../src/network.cc:95 #, fuzzy msgid "Couldn't initialize network handler." msgstr "Ipossible d'imprimer le fichier." #: ../src/network.cc:145 msgid "Please set the proxy authentication username." msgstr "" #: ../src/network.cc:150 msgid "Please set the proxy authentication password." msgstr "" #: ../src/network.cc:157 #, fuzzy msgid "Please set a proxy host." msgstr "Choisissez un fichier où imprimer." #: ../src/openlocationdialog.cc:37 #, fuzzy msgid "Location" msgstr "_Destination:" #: ../src/openlocationdialog.cc:54 #, fuzzy msgid "_Insert into the active document." msgstr "Imprimer ce document" #: ../src/openlocationdialog.cc:92 msgid "You must enter a location to open." msgstr "" #: ../src/pipe.cc:53 #, c-format msgid "I can't execute %s. I can't find it in your path" msgstr "" #. TODO: Possible some commands might not return 0 #: ../src/pipe.cc:99 #, fuzzy msgid "Couldn't get the required content." msgstr "Impossible de trouver un émulateur pour l'entrée sélectionnée" #: ../src/preferencesdialog.cc:41 msgid "Preferences" msgstr "Préférences" #: ../src/preferencesdialog.cc:55 msgid "Options for" msgstr "" #: ../src/preferencesdialog.cc:63 msgid "General" msgstr "Généralités" #: ../src/preferencesdialog.cc:64 msgid "Interface" msgstr "Interface" #: ../src/preferencesdialog.cc:65 msgid "Tabs" msgstr "Onglets" #: ../src/preferencesdialog.cc:66 msgid "Editor" msgstr "Éditeur" #: ../src/preferencesdialog.cc:67 msgid "Encodings" msgstr "Encodages" #: ../src/preferencesdialog.cc:68 msgid "File Save" msgstr "Enregistrement" #: ../src/preferencesdialog.cc:70 msgid "Spell Checker" msgstr "Ortographe" #: ../src/preferencesdialog.cc:73 ../src/printdialog.cc:97 msgid "Print" msgstr "Impression" #: ../src/preferencesdialog.cc:79 #, fuzzy msgid "Remote Documents" msgstr "_Documents" #: ../src/preferencesdialog.cc:80 msgid "Advanced" msgstr "Avancé" #: ../src/preferencesdialog.cc:81 msgid "Network" msgstr "" #: ../src/previewdialog.cc:48 #, fuzzy msgid "Print preview" msgstr "Apperçu" #: ../src/previewdialog.cc:56 ../src/previewdialog.cc:176 #, c-format msgid "of %i" msgstr "" #: ../src/print.cc:207 msgid "Other" msgstr "" #: ../src/printdialog.cc:77 #, fuzzy msgid "Print to file." msgstr "Ipossible d'imprimer le fichier." #: ../src/printdialog.cc:78 msgid "_All" msgstr "_Tout" #: ../src/printdialog.cc:79 msgid "_Selection" msgstr "_Sélection" #: ../src/printdialog.cc:80 #, fuzzy msgid "_Lines" msgstr "Ligne:" #: ../src/printdialog.cc:81 msgid "Printer:" msgstr "Imprimante:" #: ../src/printdialog.cc:89 #, fuzzy msgid "Location:" msgstr "_Destination:" #: ../src/printdialog.cc:90 #, fuzzy msgid "Number of copies" msgstr "Nombre de _copies" #: ../src/printdialog.cc:91 msgid "Print range" msgstr "Partie à imprimer" #: ../src/printdialog.cc:92 msgid "From:" msgstr "" #: ../src/printdialog.cc:93 #, fuzzy msgid "To:" msgstr "en haut" #: ../src/printdialog.cc:94 #, fuzzy msgid "Paper size:" msgstr "_Format:" #: ../src/printdialog.cc:95 #, fuzzy msgid "Page orientation:" msgstr "_Orientation:" #: ../src/printdialog.cc:113 #, fuzzy msgid "Printer name" msgstr "Imprimante" #: ../src/printdialog.cc:114 #, fuzzy msgid "Status" msgstr "_Barre d'état" #: ../src/printdialog.cc:132 ../src/printdialog.cc:190 msgid "Custom" msgstr "Autre" #: ../src/printdialog.cc:136 msgid "Create a PDF document" msgstr "Créer un document PDF" #: ../src/printdialog.cc:137 #, fuzzy msgid "Create a Postscript document" msgstr "Créer un document PDF" #: ../src/printdialog.cc:183 msgid "Portrait" msgstr "Portrait" #: ../src/printdialog.cc:184 msgid "Landscape" msgstr "Paysage" #: ../src/printdialog.cc:196 #, fuzzy msgid "Width:" msgstr "_Largeur:" #: ../src/printdialog.cc:196 #, fuzzy msgid "Height:" msgstr "_Hauteur:" #: ../src/printdialog.cc:246 #, fuzzy msgid "Please choose a file to print to." msgstr "Choix d'un fichier vers lequel exporter" #: ../src/printdialog.cc:250 #, fuzzy msgid "Please choose a file not a directory." msgstr "Choix d'un fichier à importer" #: ../src/printdialog.cc:341 msgid "Please select a file to print to." msgstr "Choisissez un fichier où imprimer." #: ../src/printdialog.cc:421 #, fuzzy msgid "I couldn't get the selected printer." msgstr "Impossible de trouver un émulateur pour l'entrée sélectionnée" #: ../src/replacedialog.cc:32 ../src/searchdialog.cc:32 msgid "Find" msgstr "Recherche" #: ../src/replacedialog.cc:33 ../src/searchdialog.cc:33 #, fuzzy msgid "Search for:" msgstr "Rechercher" #: ../src/replacedialog.cc:34 msgid "Replace with:" msgstr "Remplacer par:" #: ../src/replacedialog.cc:35 ../src/searchdialog.cc:34 msgid "Match entire word only" msgstr "" #: ../src/replacedialog.cc:36 ../src/searchdialog.cc:35 #, fuzzy msgid "Match case" msgstr "Respecter la _casse" #. regex(_("Regular expression")), #: ../src/replacedialog.cc:37 ../src/searchdialog.cc:37 msgid "Wrap search" msgstr "" #: ../src/replacedialog.cc:38 ../src/searchdialog.cc:38 #, fuzzy msgid "Search from the cursor position" msgstr "Rechercher à partir du _curseur" #: ../src/replacedialog.cc:39 ../src/searchdialog.cc:39 msgid "Search backwards" msgstr "" #: ../src/replacedialog.cc:40 ../src/searchdialog.cc:40 #, fuzzy msgid "Search from the beginnig of the document" msgstr "Rechercher depuis le _début du document" #: ../src/replacedialog.cc:42 msgid "_Replace" msgstr "Re_mplacer" #. find_replace(Gtk::Stock::FIND_AND_REPLACE), #: ../src/replacedialog.cc:44 #, fuzzy msgid "Replace _All" msgstr "_Tout remplacer" #: ../src/spell.cc:53 #, fuzzy msgid "Failed to initialize the spell checker" msgstr "Activer la vérification _orthographique" #: ../src/spell.cc:66 #, fuzzy msgid "Failed to set the requested dictionary." msgstr "Dictionnaire par défaut:" #: ../src/spelldialog.cc:37 msgid "_Ignore" msgstr "_Ignorer" #: ../src/spelldialog.cc:38 #, fuzzy msgid "Ignore _All" msgstr "_Ignorer" #: ../src/spelldialog.cc:39 msgid "C_hange" msgstr "_Remplacer" #: ../src/spelldialog.cc:42 msgid "_Add to user dictionary" msgstr "_Ajouter au dictionnaire" #: ../src/spelldialog.cc:43 #, fuzzy msgid "Misspelled:" msgstr "Mal orthographié:" #: ../src/spelldialog.cc:44 msgid "Change to:" msgstr "Remplacer par:" #: ../src/spelldialog.cc:48 msgid "Check Spelling" msgstr "Vérifier l'orthographe" #: ../src/spelldialog.cc:92 msgid "Suggestions" msgstr "Suggestions" #: ../src/spelldialog.cc:128 msgid "No misspelled words." msgstr "Pas de mot mal orthographié." #: ../src/statusbar.cc:69 #, fuzzy msgid "OVR" msgstr " REMP " #: ../src/statusbar.cc:69 #, fuzzy msgid "INS" msgstr " INS " #: ../src/statusbar.cc:74 #, fuzzy, c-format msgid " L: %d, C: %d" msgstr " L: %d, C: %d" #: ../src/toolbar.cc:53 msgid "Search" msgstr "Rechercher" #: ../src/toolbar.cc:56 msgid "Spelling Dictionary" msgstr "Dictionnaire" #: ../src/toolbar.cc:102 msgid "Create a new file" msgstr "Créer un nouveau fichier" #: ../src/toolbar.cc:103 msgid "Open a file for editing" msgstr "Ouvrir et éditer un fichier" #: ../src/toolbar.cc:104 msgid "Save the existing file" msgstr "Enregistrer le fichier en cours" #: ../src/toolbar.cc:106 msgid "Print this document" msgstr "Imprimer ce document" #: ../src/toolbar.cc:108 msgid "Close the active file" msgstr "Fermer le fichier en cours" #: ../src/toolbar.cc:109 msgid "Undo" msgstr "Annuler la dernière opération" #: ../src/toolbar.cc:110 msgid "Redo" msgstr "Refaire la dernière opération annulée" #: ../src/toolbar.cc:111 msgid "Cut" msgstr "Couper" #: ../src/toolbar.cc:112 msgid "Copy" msgstr "Copier" #: ../src/toolbar.cc:113 msgid "Paste" msgstr "Coller" #: ../src/toolbar.cc:114 msgid "Delete current selection" msgstr "Effacer la partie sélectionnée" #: ../src/toolbar.cc:116 msgid "Toggle full screen mode" msgstr "" #: ../src/utils.cc:189 msgid "I can't backup the old file.\n" msgstr "" #: ../src/utils.cc:247 #, fuzzy, c-format msgid "%s is a directory." msgstr "Ceci est un répertoire." #: ../src/window.cc:141 msgid " The keyboard emulator will not work." msgstr "" #: ../src/window.cc:147 msgid " Multipress will not work." msgstr "" #: ../src/window.cc:153 msgid "" "A lot of the configuration options have been changed in this version.\n" "Please adjust the configuration first." msgstr "" #~ msgid "Unknown" #~ msgstr "Inconnu" #, fuzzy #~ msgid "Ready" #~ msgstr "Refaire la dernière opération annulée" #, fuzzy #~ msgid "Printing" #~ msgstr "Impression" #, fuzzy #~ msgid "Couldn't get the definition from the server." #~ msgstr "Impossible de déterminer l'encodage du texte." #, fuzzy #~ msgid "Timeout" #~ msgstr "Délai:" #, fuzzy #~ msgid "Command" #~ msgstr "_Exécuter une commande sur le texte..." #~ msgid "katoob" #~ msgstr "katoob" #, fuzzy #~ msgid "Remote" #~ msgstr "Refaire la dernière opération annulée" #, fuzzy #~ msgid "Are you sure you want to overwrite the file " #~ msgstr "Êtes vous sûr de vouloir remplacer le fichier %s ?" #, fuzzy #~ msgid "_PDF file..." #~ msgstr "_Chercher..." #~ msgid "" #~ "You have modified the current text, Katoob'll convert the current text to " #~ "your default encoding and then convert it back to your choosen encoding. " #~ "Continue ?" #~ msgstr "" #~ "Vous avez modifié le texte en cours, Katoob va convertir le texte en " #~ "cours vers votre encodage par défaut puis le convertir à nouveau vers " #~ "l'encodage choisi. Continuer ?" #~ msgid "" #~ "You are changing the encoding of a modified file, This'll also clear the " #~ "undo & redo history, Should katoob reopen the file?" #~ msgstr "" #~ "Vous êtes en train de changer l'encodage d'un fichier modifié. Ceci va " #~ "aussi effacer l'historique des modifications. Faut-il réouvrir le " #~ "fichier ?" #~ msgid "" #~ "Katoob couldn't convert the text to unicode to be able to edit it, " #~ "Katoob'll try to recover what it can, The error was:\n" #~ "%s" #~ msgstr "" #~ "Katoob n'a pas pu convertir le texte vers Unicode afin de pouvoir " #~ "l'éditer. Katoob va tenter de récupérer ce qu'il peut. L'erreur était:\n" #~ "%s" #~ msgid "" #~ "Katoob couldn't recover unicode valid text, The error was:\n" #~ "%s" #~ msgstr "" #~ "Katoob n'a pas pu obtenir de texte Unicode valide. L'erreur était:\n" #~ "%s" #~ msgid "The file %s doesn't exist, Create it?" #~ msgstr "Le fichier %s n'existe pas. Faut-il le créer ?" #~ msgid "Couldn't create file %s, %s" #~ msgstr "Impossible de créer le fichier %s. %s" #~ msgid "Couldn't open file %s, %s" #~ msgstr "Impossible d'ouvrir le fichier %s. %s." #~ msgid "" #~ "An error has occured while reading file %s\n" #~ "%s" #~ msgstr "" #~ "Une erreur s'est produite à la lecture du fichier %s.\n" #~ "%s" #~ msgid "" #~ "An error has occured while writing to file %s\n" #~ "%s" #~ msgstr "" #~ "Une erreur s'est produite à l'écriture du fichier %s.\n" #~ "%s" #~ msgid "Empty file." #~ msgstr "Fichier vide." #~ msgid "The requested file couldn't be opened for saving" #~ msgstr "Le fichier demandé n'a pas pu être ouvert pour enregistrer." #~ msgid "An error has occured while writing to file %s" #~ msgstr "Une erreur s'est produite à l'écriture du fichier %s." #~ msgid "That's not a valid UTF-8 file" #~ msgstr "Ce n'est pas un fichier UTF-8 valide." #~ msgid "ERROR" #~ msgstr "ERREUR" #~ msgid "Katoob debugging output." #~ msgstr "Sortie de débogage de Katoob." #~ msgid "" #~ "Katoob has crashed, Please email the following debugging output to " #~ "developer@arabeyes.org and tell them exactly what you were doing." #~ msgstr "" #~ "Katoob a planté. Veuillez envoyer par mail la sortie de débogage suivante " #~ "à l'adresse developer@arabeyes.org en indiquant précisément ce que vous " #~ "étiez en train de faire." #~ msgid "Save" #~ msgstr "Enregistrer" #~ msgid "Text direction" #~ msgstr "Sens d'écriture" #~ msgid "_Left to right" #~ msgstr "De _gauche à droite" #~ msgid "_Right to left" #~ msgstr "De _droite à gauche" #~ msgid "_Automatic" #~ msgstr "_Automatique" #~ msgid "Can't determine the encoding for that file, Please choose one." #~ msgstr "" #~ "Impossible de déterminer l'encodage de ce fichier. Veuillez choisir." #~ msgid "_New" #~ msgstr "_Nouveau" #~ msgid "_Open..." #~ msgstr "_Ouvrir..." #~ msgid "_Save" #~ msgstr "_Enregistrer" #~ msgid "Save _As..." #~ msgstr "Enregistrer _sous..." #~ msgid "_Revert" #~ msgstr "_Récupérer" #~ msgid "_Iran System..." #~ msgstr "Système _Iran..." #~ msgid "_Print..." #~ msgstr "_Imprimer..." #~ msgid "_Close" #~ msgstr "_Fermer" #~ msgid "_Quit" #~ msgstr "_Quitter" #~ msgid "_Undo" #~ msgstr "_Annuler" #~ msgid "_Redo" #~ msgstr "_Refaire" #~ msgid "Cu_t" #~ msgstr "_Couper" #~ msgid "_Copy" #~ msgstr "Co_pier" #~ msgid "_Paste" #~ msgstr "C_oller" #~ msgid "_Delete" #~ msgstr "_Supprimer" #~ msgid "Pr_eferences..." #~ msgstr "_Préférences..." #~ msgid "_Replace..." #~ msgstr "_Remplacer..." #~ msgid "Goto _Line..." #~ msgstr "Aller à la _ligne..." #~ msgid "Ada" #~ msgstr "Ada" #~ msgid "C" #~ msgstr "C" #~ msgid "C++" #~ msgstr "C++" #~ msgid ".desktop" #~ msgstr ".desktop" #~ msgid "Diff" #~ msgstr "Diff" #~ msgid "HTML" #~ msgstr "HTML" #~ msgid "IDL" #~ msgstr "IDL" #~ msgid "Java" #~ msgstr "Java" #~ msgid "Latex" #~ msgstr "LaTeX" #~ msgid "Perl" #~ msgstr "Perl" #~ msgid "gettext translation" #~ msgstr "traductions gettext" #~ msgid "Python" #~ msgstr "Python" #~ msgid "XML" #~ msgstr "XML" #~ msgid "_Spell Check..." #~ msgstr "_Ortographe..." #~ msgid "Abou_t" #~ msgstr "À _propos" #~ msgid "About Katoob" #~ msgstr "À propos de Katoob" #~ msgid "Main" #~ msgstr "Généralités" #~ msgid "Developers" #~ msgstr "Développeurs" #~ msgid "Credits" #~ msgstr "Remerciements" #~ msgid "License" #~ msgstr "Licence" #~ msgid "Information" #~ msgstr "Information" #~ msgid "Error initializing Arabic keyboard" #~ msgstr "Erreur à l'initialisation du clavier arabe" #~ msgid "" #~ "An error has occured while trying to initialize your Arabic keyboard, " #~ "Katoob'll try to use the built in Arabic keyboard emulator." #~ msgstr "" #~ "Une erreur s'est produite en tenant d'initialiser votre clavier arabe." #~ "Katoob va tenter d'utiliser son émulateur de clavier intégré." #~ msgid "_Show this warning every time this problem occures" #~ msgstr "_Afficher cet avertissement chaque fois que le problème survient." #~ msgid "_Goto" #~ msgstr "_Aller à" #~ msgid "" #~ "There is no spellchecking dictionary available, Please make sure that you " #~ "have installed at least one." #~ msgstr "" #~ "Il n'y a pas de vérificateur d'orthographe installé. Veuiller en " #~ "installer au moins un." #~ msgid "Confirm Revert" #~ msgstr "Confirmez la récupération" #~ msgid "Mispelled words color" #~ msgstr "Couleur des mots mal orthographiés" #~ msgid "Please select the backup directory" #~ msgstr "Choisissez le répertoire de sauvegarde." #~ msgid "Please select the dictionaries directory" #~ msgstr "Choisissez le répertoire des dictionnaires." #~ msgid "This is not a directory." #~ msgstr "Ceci n'est pas un répertoire." #~ msgid "Executed commands history size:" #~ msgstr "Taille de l'historique des commandes exécutées:" #~ msgid "Default text direction:" #~ msgstr "Sens d'écriture par défaut:" #~ msgid "_Manually choose the encoding" #~ msgstr "_Choisir explicitement l'encodage" #~ msgid "Create backup in the original file directory." #~ msgstr "Faire ces copies dans le même répertoire que les fichiers." #~ msgid "Backup directory." #~ msgstr "Répertoire des sauvegardes:" #~ msgid "_Browse" #~ msgstr "_Parcourir" #~ msgid "Dictionaries directory" #~ msgstr "Répertoire des dictionnaires" #~ msgid "Not enabled at compile time!" #~ msgstr "Cette fonction n'a pas été activée à la compilation !" #~ msgid "Dictionary:" #~ msgstr "Dictionnaire:" #~ msgid "_Disable Antialiasing" #~ msgstr "_Désactiver le lissage" #~ msgid "Select Font" #~ msgstr "Choisissez une fonte" #~ msgid "You choosed a directory." #~ msgstr "Vous avez choisi un répertoire." #~ msgid "Can't get selection" #~ msgstr "Impossible de prendre la sélection" #~ msgid "Couldn't execute gs to generate PDF." #~ msgstr "Impossible de lancer gs pour produire un PDF." #~ msgid "Couldn't open the requested file for writing." #~ msgstr "Impossible d'ouvrir le fichier voulu en écriture." #~ msgid "Can't create temp file" #~ msgstr "Impossible de créer un fichier temporaire" #~ msgid "Error executing custom command." #~ msgstr "Erreur à l'exécution d'une commande utilisateur." #~ msgid "Choose Font" #~ msgstr "Choisissez un fonte" #~ msgid "Family" #~ msgstr "Famille" #~ msgid "Style" #~ msgstr "Style" #~ msgid "Size" #~ msgstr "Taille" #~ msgid "Copies" #~ msgstr "Copies" #~ msgid "Job" #~ msgstr "Impression" #~ msgid "Pr_inter:" #~ msgstr "_Imprimante:" #~ msgid "Generic Postscript" #~ msgstr "Postscript générique" #~ msgid "File" #~ msgstr "Fichier" #~ msgid "lpr" #~ msgstr "lpr" #~ msgid "Inches" #~ msgstr "pouces" #~ msgid "Points" #~ msgstr "points" #~ msgid "Cus_tom size" #~ msgstr "Format _personnalisé" #~ msgid "Paper and layout" #~ msgstr "Papier et disposition" #~ msgid "Margins (inch)" #~ msgstr "Marges (pouces)" #~ msgid "Paper" #~ msgstr "Papier" #~ msgid "Please select an application." #~ msgstr "Choisissez un programme." #~ msgid "Can't open the recent documents file" #~ msgstr "Impossible d'ouvrir le fichier des documents récents." #~ msgid "Save As..." #~ msgstr "Enregistrer sous..." #~ msgid "Save A Copy..." #~ msgstr "Enregistrer une copie..." #~ msgid " Couldn 't create a backup, Continue ?" #~ msgstr "Impossible de faire une copie de sauvegarde. Continuer ?" #~ msgid "The requested file couldn' t be opened for saving " #~ msgstr "Le fichier n'a pas pu être ouvert pour l'enregistrement." #~ msgid "Replace" #~ msgstr "Remplacer" #~ msgid "Find what:" #~ msgstr "Rechercher:" #~ msgid "An error has occured" #~ msgstr "Une erreur s'est produite" #~ msgid "The document is empty." #~ msgstr "Le document est vide." #~ msgid "Check _Spelling" #~ msgstr "Vérifier l'_orthographe" #~ msgid "No more mispelled word." #~ msgstr "Pas d'autre mot mal orthographié." #~ msgid "Emulator" #~ msgstr "Émulateur" #~ msgid "Change the typing language" #~ msgstr "Changer de langue d'édition" katoob-0.5.9.1/po/he.po0000644000175000017500000011157610746617675011474 00000000000000# translation of katoob.po to Hebrew # Copyright (C) 2004 Free Software Foundation, Inc. # This file is distributed under the GNU GPL license. # RiTZPAz , 2004. # dovix , 2004. # # msgid "" msgstr "" "Project-Id-Version: katoob\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2007-12-18 12:03+0200\n" "PO-Revision-Date: 2004-09-29 22:36+0200\n" "Last-Translator: dovix \n" "Language-Team: Hebrew \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: ../katoob.desktop.in.h:1 ../src/aboutdialog.cc:66 #, fuzzy msgid "Katoob" msgstr "קת'וב" #: ../katoob.desktop.in.h:2 msgid "Multilingual Unicode Text Editor" msgstr "עורך טקסט יוניקוד רב-לשוני" #: ../src/aboutdialog.cc:51 msgid "" "Katoob 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." msgstr "" #: ../src/aboutdialog.cc:56 msgid "" "Katoob 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." msgstr "" #: ../src/aboutdialog.cc:61 msgid "" "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" msgstr "" #: ../src/aboutdialog.cc:71 msgid "Copyright © 2006, 2007 Mohammed Sameer." msgstr "" #: ../src/aboutdialog.cc:73 ../src/aboutdialog.cc:76 msgid "Mohammed Sameer" msgstr "" #: ../src/aboutdialog.cc:77 msgid "Mostafa Hussein" msgstr "" #: ../src/aboutdialog.cc:80 #, fuzzy msgid "A lightweight multilingual unicode and bidi aware text editor" msgstr "עורך טקסט יוניקוד רב-לשוני" #: ../src/aboutdialog.cc:81 msgid "translator-credits" msgstr "" #: ../src/applets.cc:55 msgid "_Enable undo, redo\t" msgstr "_אפשר בטל/שחזר\t" #: ../src/applets.cc:57 msgid "Keep a history of recently closed documents" msgstr "" #: ../src/applets.cc:59 msgid "" "Undo history size\n" "(0 for unlimited)" msgstr "" "גודל היסטוריית בטל\n" "(0 ללא-מוגבל)" #: ../src/applets.cc:60 #, fuzzy msgid "" "Executed commands history size\n" "(0 for unlimited)" msgstr "" "גודל היסטוריית בטל\n" "(0 ללא-מוגבל)" #: ../src/applets.cc:61 #, fuzzy msgid "" "Closed documents history size\n" "(0 for unlimited)" msgstr "" "גודל היסטוריית בטל\n" "(0 ללא-מוגבל)" #: ../src/applets.cc:122 #, fuzzy msgid "Show the extra _buttons" msgstr "הצג לשוניות" #: ../src/applets.cc:123 msgid "Show the _Main Toolbar" msgstr "הצג סרגל כלים _ראשי" #: ../src/applets.cc:124 msgid "Show the _Extended Toolbar" msgstr "הצג סרגל כלים _מורחב" #: ../src/applets.cc:125 msgid "Show the _Statusbar" msgstr "הצג _שורת מצב" #: ../src/applets.cc:126 msgid "Enable re_cent menu" msgstr "אפשר תפריט קבצים אחרוני_ם" #: ../src/applets.cc:127 msgid "Show the _close button on each tab label" msgstr "הצג לחצן _סגור בתווית של כל לשונית" #: ../src/applets.cc:128 msgid "" "No. of recent entries\n" "(0 for unlimited)" msgstr "" "מספר קבצים אחרונים\n" "(0 ללא-מוגבל)" #: ../src/applets.cc:129 msgid "Show the toolbar as" msgstr "הצג סרגל הכלים כ" #: ../src/applets.cc:130 ../src/applets.cc:159 ../src/menubar.cc:318 msgid "Text only" msgstr "טקסט בלבד" #. TODO: Disable these when the main toolbar is not shown. #: ../src/applets.cc:131 ../src/applets.cc:162 ../src/menubar.cc:315 msgid "Icons only" msgstr "סמלים בלבד" #: ../src/applets.cc:132 ../src/applets.cc:168 ../src/applets.cc:350 #: ../src/applets.cc:383 ../src/applets.cc:392 ../src/menubar.cc:321 msgid "Both" msgstr "שניהם" #: ../src/applets.cc:133 ../src/applets.cc:165 ../src/menubar.cc:324 msgid "Text beside icons" msgstr "טקסט לצד סמלים" #: ../src/applets.cc:217 msgid "_Show tabs" msgstr "הצג _לשוניות" #: ../src/applets.cc:218 msgid "_Enable tabs menu" msgstr "_אפשר תפריט לשוניות" #: ../src/applets.cc:219 msgid "Scro_ll tabs" msgstr "לשוניות גל_ילה" #: ../src/applets.cc:220 msgid "Show the tabs at the" msgstr "הצג לשוניות" #: ../src/applets.cc:221 ../src/applets.cc:282 ../src/applets.cc:846 msgid "Top" msgstr "מלמעלה" #: ../src/applets.cc:222 ../src/applets.cc:273 msgid "Bottom" msgstr "למטה" #: ../src/applets.cc:223 ../src/applets.cc:276 ../src/applets.cc:348 #: ../src/applets.cc:389 msgid "Right" msgstr "לימין" #: ../src/applets.cc:224 ../src/applets.cc:279 ../src/applets.cc:349 #: ../src/applets.cc:386 ../src/applets.cc:845 msgid "Left" msgstr "משמאל" #: ../src/applets.cc:226 msgid "Color for read only tabs" msgstr "" #: ../src/applets.cc:227 msgid "Color for modified tabs" msgstr "" #: ../src/applets.cc:228 msgid "Color for normal tabs" msgstr "" #: ../src/applets.cc:341 msgid "Text _Wrapping is on by default" msgstr "_גלישת טקסט פעילה כברירת מחדל" #: ../src/applets.cc:342 msgid "Show _Line numbers by default" msgstr "הצג מספרי שורו_ת כברירת מחדל" #: ../src/applets.cc:343 msgid "Use the default _font" msgstr "השתמש בגו_פן ברירת מחדל" #: ../src/applets.cc:345 #, fuzzy msgid "_Automatic syntax highlighting for known file types" msgstr "ה_דגש סוגי קבצים מוכרים" #: ../src/applets.cc:347 #, fuzzy msgid "Line numbers position" msgstr "מספרי שורו_ת" #: ../src/applets.cc:351 msgid "Font" msgstr "גופן" #: ../src/applets.cc:353 msgid "Tab width" msgstr "" #: ../src/applets.cc:450 msgid "_Use the locale encoding" msgstr "השתמש ב_קידוד מקומי" #: ../src/applets.cc:451 ../src/applets.cc:452 #, fuzzy msgid "Specify an encoding" msgstr "קידוד ברירת מחדל" #: ../src/applets.cc:456 #, fuzzy msgid "File open encoding" msgstr "בחירת הקידוד." #: ../src/applets.cc:457 #, fuzzy msgid "File save encoding" msgstr "בחירת הקידוד." #: ../src/applets.cc:502 msgid "_Backup files before saving." msgstr "גב_ה קבצים לפני שמירה" #: ../src/applets.cc:503 #, fuzzy msgid "Backup extension" msgstr "הרחבת גיבוי." #: ../src/applets.cc:534 ../src/menubar.cc:362 msgid "_Autocheck Spelling" msgstr "בדוק איות _אוטומטית" #. misspelled_label.set_text(_("Misspelled words color")); #: ../src/applets.cc:536 msgid "Choose the default dictionary" msgstr "בחירת מילון ברירת מחדל" #: ../src/applets.cc:586 #, fuzzy msgid "Printing font" msgstr "הדפס מסמך זה" #: ../src/applets.cc:590 msgid "_Enable advanced options" msgstr "_אפשר אפשרויות מתקדמות" #: ../src/applets.cc:594 msgid "X Dot Per Inch" msgstr "" #: ../src/applets.cc:595 msgid "Y Dot Per Inch" msgstr "" #: ../src/applets.cc:652 msgid "_Enable the dictionary." msgstr "_אפשר את המילון." #: ../src/applets.cc:653 #, fuzzy msgid "Host" msgstr "שרת מארח:" #: ../src/applets.cc:654 msgid "_List dictionaries" msgstr "_רשימת מילונים" #: ../src/applets.cc:656 #, fuzzy msgid "Port" msgstr "יציאה:" #: ../src/applets.cc:667 ../src/applets.cc:675 ../src/preferencesdialog.cc:75 msgid "Dictionary" msgstr "מילון" #: ../src/applets.cc:676 msgid "Description" msgstr "תיאור" #: ../src/applets.cc:681 msgid "Not Available." msgstr "לא זמין." #: ../src/applets.cc:738 ../src/applets.cc:741 msgid "Failed to get the available dictionaries." msgstr "" #: ../src/applets.cc:768 msgid "Please provide a dict server" msgstr "" #: ../src/applets.cc:797 msgid "_Milliseconds before multipress will accept the current value." msgstr "" #: ../src/applets.cc:827 #, fuzzy msgid "" "Number of remote addresses to save\n" "(0 for unlimited)" msgstr "" "מספר קבצים אחרונים\n" "(0 ללא-מוגבל)" #: ../src/applets.cc:830 msgid "_Insert into the active document enabled by default ?" msgstr "" #: ../src/applets.cc:847 msgid "Width" msgstr "רוחב" #: ../src/applets.cc:848 msgid "Height" msgstr "גובה" #: ../src/applets.cc:850 msgid "Save all the program _settings on exit" msgstr "שמור את כל העד_פות התוכנית ביציאה" #: ../src/applets.cc:851 msgid "Save the main window _attributes on exit" msgstr "_שמור תכונות החלון הראשי ביציאה" #: ../src/applets.cc:856 msgid "Window position" msgstr "מיקום חלון" #: ../src/applets.cc:857 msgid "Window size" msgstr "גודל חלון" #: ../src/applets.cc:925 msgid "Network timeout (In seconds):" msgstr "" #: ../src/applets.cc:926 msgid "Proxy host:" msgstr "" #: ../src/applets.cc:927 msgid "Proxy port:" msgstr "" #: ../src/applets.cc:928 msgid "Proxy type:" msgstr "" #: ../src/applets.cc:930 ../src/menubar.cc:798 msgid "None" msgstr "ללא" #: ../src/applets.cc:931 msgid "Get from the environment" msgstr "" #: ../src/applets.cc:932 msgid "HTTP" msgstr "" #: ../src/applets.cc:933 msgid "SOCKS4" msgstr "" #: ../src/applets.cc:934 msgid "SOCKS5" msgstr "" #: ../src/applets.cc:948 msgid "Tunnel traffic through the proxy" msgstr "" #: ../src/applets.cc:950 msgid "Use proxy authentication" msgstr "" #: ../src/applets.cc:951 msgid "Proxy username:" msgstr "" #: ../src/applets.cc:952 msgid "Proxy password:" msgstr "" #: ../src/dialogs.cc:70 #, fuzzy msgid "Insert to document" msgstr "הדפס מסמך זה" #: ../src/dialogs.cc:98 ../src/toolbar.cc:52 msgid "Goto Line" msgstr "עבור לשורה" #: ../src/dialogs.cc:105 msgid "Line:" msgstr "שורה:" #: ../src/dialogs.cc:139 msgid "Please wait..." msgstr "" #: ../src/dict.cc:60 msgid "Invalid daatabase. Please reconfigure the dictionary in use." msgstr "" #: ../src/dict.cc:64 #, fuzzy msgid "No matches were found" msgstr "פריט החיפוש לא נמצא!" #: ../src/dict.cc:122 ../src/dict.cc:139 #, fuzzy msgid "No databases were found." msgstr "פריט החיפוש לא נמצא!" #: ../src/document.cc:109 #, fuzzy msgid " Is a directory." msgstr "זאת ספרייה." #: ../src/document.cc:133 ../src/mdi.cc:295 ../src/mdi.cc:1107 #, fuzzy, c-format msgid "Couldn't detect the encoding of %s" msgstr "לא מצליח להפעיל את gs לשם חילול קובץ PDF." #: ../src/document.cc:193 #, fuzzy msgid "Couldn't detect the encoding of the text." msgstr "לא מצליח לקבוע את קידוד הטקסט." #: ../src/document.cc:285 #, fuzzy, c-format msgid "Failed to create the autorecovery file %s" msgstr "יצירת קובץ זמני נכשלה" #: ../src/document.cc:1240 msgid "Define " msgstr "" #: ../src/document.cc:1255 msgid "Spelling Suggestions" msgstr "הצעות איות" # + Add to Dictionary #: ../src/document.cc:1263 #, fuzzy, c-format msgid "Add \"%s\" to dictionary" msgstr "הוספת \"%s\" למילון" #. TODO: Use italics markup. #: ../src/document.cc:1272 msgid "no suggestions" msgstr "אין הצעות" #: ../src/document.cc:1283 msgid "More..." msgstr "עוד..." #: ../src/encodings.cc:347 ../src/encodings.cc:367 #, fuzzy msgid "I wasn't able to convert the encoding." msgstr "לא מצליח לקבוע את קידוד הטקסט." #: ../src/execdialog.cc:40 msgid "Command to execute" msgstr "" #: ../src/execdialog.cc:41 #, c-format msgid "" "'%s' will be substituted with a temporary filename\n" "containing the text from the document." msgstr "" #: ../src/execdialog.cc:47 #, fuzzy msgid "_Show the results in a new tab" msgstr "הצג לשוניות" #: ../src/export.cc:48 msgid "_Text file with no unicode control characters..." msgstr "" #: ../src/export.cc:55 ../src/import.cc:52 msgid "Text file compressed with _gzip" msgstr "" #: ../src/export.cc:62 ../src/import.cc:58 msgid "Text file compressed with _bzip2" msgstr "" #: ../src/export.cc:69 ../src/import.cc:64 msgid "Text with _shaping and bidi applied" msgstr "" #: ../src/export.cc:107 #, fuzzy msgid "Can't open temporary file." msgstr "לא מצליח לפתוח קובץ זמני" #: ../src/export.cc:113 #, fuzzy msgid "Error writing to temporary file." msgstr "פתיחת קובץ זמני נכשלה" #: ../src/export.cc:130 msgid "Couldn't allocate memory for compression." msgstr "" #: ../src/export.cc:136 #, fuzzy msgid "Couldn't compress the text." msgstr "לא מצליח להדפיס את הקובץ." #. _ch is allocated via g_new(); #: ../src/export.cc:185 ../src/import.cc:239 #, fuzzy msgid "Couldn't apply the bidi algorithm." msgstr "לא מצליח להדפיס את הקובץ." #: ../src/filedialog.cc:38 ../src/filedialog.cc:52 #: ../src/openlocationdialog.cc:38 msgid "Encoding" msgstr "קידוד" #: ../src/filedialog.cc:144 msgid "This is a directory." msgstr "זאת ספרייה." #: ../src/import.cc:47 msgid "_HTML Character Reference..." msgstr "ייחוס _תווי HTML..." #: ../src/import.cc:114 ../src/import.cc:120 ../src/import.cc:141 #: ../src/import.cc:172 #, fuzzy msgid "Can't open file." msgstr "לא מצליח לפתוח קובץ זמני" #. Error. #: ../src/import.cc:135 ../src/import.cc:157 ../src/import.cc:188 msgid "Error reading file." msgstr "" #: ../src/inputwindow.cc:33 msgid "Input Window" msgstr "" #: ../src/isocodes.cc:117 #, c-format msgid "%s (%s)" msgstr "" #: ../src/label.cc:60 #, c-format msgid "Untitled New %d" msgstr "" #: ../src/mdi.cc:83 #, c-format msgid "Failed to scan for any autorecovery files: %s" msgstr "" #: ../src/mdi.cc:88 msgid "Some unrecovered files were found. Try to recover them ?" msgstr "" #: ../src/mdi.cc:203 msgid "Please select a file for editing." msgstr "עליך לבחור קובץ לעריכה." #: ../src/mdi.cc:281 #, fuzzy msgid "This is a read only document." msgstr "זאת ספרייה." #: ../src/mdi.cc:285 #, fuzzy msgid "Please select a file." msgstr "עליך לבחור קובץ לעריכה." #: ../src/mdi.cc:324 msgid "This document can not be saved. It's a read only file." msgstr "" #: ../src/mdi.cc:354 #, fuzzy msgid "Please select a file for saving." msgstr "עליך לבחור קובץ לעריכה." #: ../src/mdi.cc:361 ../src/mdi.cc:1124 ../src/printdialog.cc:254 #, c-format msgid "Are you sure you want to overwrite the file %s ?" msgstr "האם ברצונך להחליף את הקובץ %s?" #: ../src/mdi.cc:452 #, fuzzy, c-format msgid "The file %s is not saved, Save first ?" msgstr "הקובץ %s אינו שמור, האם לשמור תחילה?" #: ../src/mdi.cc:455 #, c-format msgid "\"%s\" is not saved, Save first?" msgstr "\"%s\" אינו שמור, האם לשמור תחילה?" #: ../src/mdi.cc:509 #, fuzzy, c-format msgid "The file \"%s\" doesn't exist." msgstr "הקובץ אינו קיים." #: ../src/mdi.cc:573 #, fuzzy, c-format msgid "" "This will close the current file \"%s\". Discard any changes done and reload " "the saved copy of the file. Are you sure you want to continue ?" msgstr "" "פעולה זאת תסגור את הקובץ הנוכחי \"%s\", תעלים את השינויים שבוצעו במאגר הפעיל " "ותטען מחדש את העותק השמור של הקובץ. האם ברצונך להמשיך?" #: ../src/mdi.cc:673 msgid "You must inter a word to search for." msgstr "" #: ../src/mdi.cc:685 ../src/mdi.cc:701 ../src/mdi.cc:748 #, fuzzy msgid "No search results found." msgstr "פריט החיפוש לא נמצא" # Total matches found #: ../src/mdi.cc:781 #, fuzzy, c-format msgid "Replaced %d occurence." msgid_plural "Replaced %d occurences." msgstr[0] "בוצעו %d החלפות" msgstr[1] "בוצעו %d החלפות" #: ../src/mdi.cc:806 #, c-format msgid "You can use only one '%s'" msgstr "" #: ../src/mdi.cc:959 ../src/mdi.cc:962 msgid "Failed to get any definitions." msgstr "" #: ../src/menubar.cc:142 msgid "_File" msgstr "_קובץ" #: ../src/menubar.cc:150 #, fuzzy msgid "Open _Location..." msgstr "_מיקום:" #. Recent #: ../src/menubar.cc:154 msgid "Recent" msgstr "קבצים אחרונים" #: ../src/menubar.cc:164 msgid "Sa_ve Copy..." msgstr "שמירה _כהעתק..." #: ../src/menubar.cc:171 msgid "_Import" msgstr "_יבא" #: ../src/menubar.cc:179 msgid "_Export" msgstr "יצ_א" #: ../src/menubar.cc:188 msgid "Page Set_up..." msgstr "" #: ../src/menubar.cc:191 #, fuzzy msgid "Print Previe_w" msgstr "תצוגה מקדימה" #: ../src/menubar.cc:240 msgid "_Edit" msgstr "_עריכה" #: ../src/menubar.cc:261 msgid "_Select All" msgstr "בחר ה_כל" #: ../src/menubar.cc:265 msgid "_Insert File" msgstr "" #: ../src/menubar.cc:274 msgid "_Search" msgstr "_חיפוש" #: ../src/menubar.cc:279 msgid "Find Ne_xt" msgstr "חפש את ה_בא" #: ../src/menubar.cc:292 msgid "_View" msgstr "_תצוגה" #: ../src/menubar.cc:294 msgid "_Statusbar" msgstr "_שורת מצב" #: ../src/menubar.cc:297 msgid "_Line Numbers" msgstr "מספרי שורו_ת" #: ../src/menubar.cc:300 msgid "_Wrap Text" msgstr "טקסט _גולש" #: ../src/menubar.cc:305 msgid "Toolbars" msgstr "סרגלי כלים" #: ../src/menubar.cc:307 msgid "_Main Toolbar" msgstr "סרגל כלים _ראשי" #: ../src/menubar.cc:310 msgid "_Extended Toolbar" msgstr "סרגל כלים _מורחב" #: ../src/menubar.cc:327 msgid "_Encoding" msgstr "_קידוד" #: ../src/menubar.cc:352 msgid "_Tools" msgstr "_כלים" #: ../src/menubar.cc:353 msgid "_Execute Command On Buffer..." msgstr "הרץ _פקודה בחוצץ..." #: ../src/menubar.cc:368 ../src/statusbar.cc:56 msgid "Input" msgstr "" #: ../src/menubar.cc:369 msgid "Default" msgstr "" #: ../src/menubar.cc:374 #, fuzzy msgid "Keyboard emulator" msgstr "הדמיית מקלדת" #: ../src/menubar.cc:378 ../src/preferencesdialog.cc:77 msgid "Multipress" msgstr "" #: ../src/menubar.cc:393 msgid "_Documents" msgstr "_מסמכים" #: ../src/menubar.cc:394 msgid "Save _All" msgstr "_שמור הכל" #: ../src/menubar.cc:397 msgid "Clos_e All" msgstr "_סגור הכל" #: ../src/menubar.cc:402 #, fuzzy msgid "_Opened Documents" msgstr "_מסמכים" #: ../src/menubar.cc:403 #, fuzzy msgid "_Closed Documents" msgstr "_מסמכים" #: ../src/menubar.cc:408 msgid "_Help" msgstr "ע_זרה" #: ../src/menubar.cc:796 msgid "_Highlight" msgstr "ה_דגש" #: ../src/network.cc:89 msgid "Failed to initialize the networking backend." msgstr "" #: ../src/network.cc:95 #, fuzzy msgid "Couldn't initialize network handler." msgstr "לא מצליח להדפיס את הקובץ." #: ../src/network.cc:145 msgid "Please set the proxy authentication username." msgstr "" #: ../src/network.cc:150 msgid "Please set the proxy authentication password." msgstr "" #: ../src/network.cc:157 #, fuzzy msgid "Please set a proxy host." msgstr "עליך לבחור קובץ אליו ברצונך להדפיס." #: ../src/openlocationdialog.cc:37 #, fuzzy msgid "Location" msgstr "_מיקום:" #: ../src/openlocationdialog.cc:54 #, fuzzy msgid "_Insert into the active document." msgstr "הדפס מסמך זה" #: ../src/openlocationdialog.cc:92 msgid "You must enter a location to open." msgstr "" #: ../src/pipe.cc:53 #, c-format msgid "I can't execute %s. I can't find it in your path" msgstr "" #. TODO: Possible some commands might not return 0 #: ../src/pipe.cc:99 #, fuzzy msgid "Couldn't get the required content." msgstr "לא נמצאה כניסת הדמייה לפריט הנבחר" #: ../src/preferencesdialog.cc:41 msgid "Preferences" msgstr "העדפות" #: ../src/preferencesdialog.cc:55 msgid "Options for" msgstr "" #: ../src/preferencesdialog.cc:63 msgid "General" msgstr "כללי" #: ../src/preferencesdialog.cc:64 msgid "Interface" msgstr "ממשק" #: ../src/preferencesdialog.cc:65 msgid "Tabs" msgstr "לשוניות" #: ../src/preferencesdialog.cc:66 msgid "Editor" msgstr "עורך" #: ../src/preferencesdialog.cc:67 msgid "Encodings" msgstr "קידודים" #: ../src/preferencesdialog.cc:68 msgid "File Save" msgstr "שמירת קובץ" #: ../src/preferencesdialog.cc:70 msgid "Spell Checker" msgstr "בדיקת איות" #: ../src/preferencesdialog.cc:73 ../src/printdialog.cc:97 msgid "Print" msgstr "הדפסה" #: ../src/preferencesdialog.cc:79 #, fuzzy msgid "Remote Documents" msgstr "_מסמכים" #: ../src/preferencesdialog.cc:80 msgid "Advanced" msgstr "מתקדם" #: ../src/preferencesdialog.cc:81 msgid "Network" msgstr "" #: ../src/previewdialog.cc:48 #, fuzzy msgid "Print preview" msgstr "תצוגה מקדימה" #: ../src/previewdialog.cc:56 ../src/previewdialog.cc:176 #, c-format msgid "of %i" msgstr "" #: ../src/print.cc:207 msgid "Other" msgstr "" #: ../src/printdialog.cc:77 #, fuzzy msgid "Print to file." msgstr "לא מצליח להדפיס את הקובץ." #: ../src/printdialog.cc:78 msgid "_All" msgstr "ה_כל" #: ../src/printdialog.cc:79 msgid "_Selection" msgstr "_בחירה" #: ../src/printdialog.cc:80 #, fuzzy msgid "_Lines" msgstr "שורה:" #: ../src/printdialog.cc:81 msgid "Printer:" msgstr "מדפסת:" #: ../src/printdialog.cc:89 #, fuzzy msgid "Location:" msgstr "_מיקום:" #: ../src/printdialog.cc:90 #, fuzzy msgid "Number of copies" msgstr "מספר _עותקים" #: ../src/printdialog.cc:91 msgid "Print range" msgstr "טווח עמודים" #: ../src/printdialog.cc:92 msgid "From:" msgstr "" #: ../src/printdialog.cc:93 #, fuzzy msgid "To:" msgstr "מלמעלה" #: ../src/printdialog.cc:94 #, fuzzy msgid "Paper size:" msgstr "גו_דל דף:" #: ../src/printdialog.cc:95 #, fuzzy msgid "Page orientation:" msgstr "כ_יוון עמוד:" #: ../src/printdialog.cc:113 #, fuzzy msgid "Printer name" msgstr "מדפסת" #: ../src/printdialog.cc:114 #, fuzzy msgid "Status" msgstr "_שורת מצב" #: ../src/printdialog.cc:132 ../src/printdialog.cc:190 msgid "Custom" msgstr "התאמה אישית" #: ../src/printdialog.cc:136 msgid "Create a PDF document" msgstr "יצירת מסמך PDF" #: ../src/printdialog.cc:137 #, fuzzy msgid "Create a Postscript document" msgstr "יצירת מסמך PDF" #: ../src/printdialog.cc:183 msgid "Portrait" msgstr "אנכי" #: ../src/printdialog.cc:184 msgid "Landscape" msgstr "אופקי" #: ../src/printdialog.cc:196 #, fuzzy msgid "Width:" msgstr "_רוחב:" #: ../src/printdialog.cc:196 #, fuzzy msgid "Height:" msgstr "_גובה:" #: ../src/printdialog.cc:246 #, fuzzy msgid "Please choose a file to print to." msgstr "עליך לבחור את הקובץ אליו ברצונך לייצא" #: ../src/printdialog.cc:250 #, fuzzy msgid "Please choose a file not a directory." msgstr "עליך לבחור את הקובץ שברצונך לייבא" #: ../src/printdialog.cc:341 msgid "Please select a file to print to." msgstr "עליך לבחור קובץ אליו ברצונך להדפיס." #: ../src/printdialog.cc:421 #, fuzzy msgid "I couldn't get the selected printer." msgstr "לא נמצאה כניסת הדמייה לפריט הנבחר" #: ../src/replacedialog.cc:32 ../src/searchdialog.cc:32 msgid "Find" msgstr "חיפוש" #: ../src/replacedialog.cc:33 ../src/searchdialog.cc:33 #, fuzzy msgid "Search for:" msgstr "חיפוש" #: ../src/replacedialog.cc:34 msgid "Replace with:" msgstr "החלף ב:" #: ../src/replacedialog.cc:35 ../src/searchdialog.cc:34 msgid "Match entire word only" msgstr "" #: ../src/replacedialog.cc:36 ../src/searchdialog.cc:35 #, fuzzy msgid "Match case" msgstr "ה_תאם רישיות" #. regex(_("Regular expression")), #: ../src/replacedialog.cc:37 ../src/searchdialog.cc:37 msgid "Wrap search" msgstr "" #: ../src/replacedialog.cc:38 ../src/searchdialog.cc:38 #, fuzzy msgid "Search from the cursor position" msgstr "חפש ממיקום ה_סמן" #: ../src/replacedialog.cc:39 ../src/searchdialog.cc:39 msgid "Search backwards" msgstr "" #: ../src/replacedialog.cc:40 ../src/searchdialog.cc:40 #, fuzzy msgid "Search from the beginnig of the document" msgstr "חפש מת_חילת המסמך" #: ../src/replacedialog.cc:42 msgid "_Replace" msgstr "הח_לף" #. find_replace(Gtk::Stock::FIND_AND_REPLACE), #: ../src/replacedialog.cc:44 #, fuzzy msgid "Replace _All" msgstr "החלף ה_כל" #: ../src/spell.cc:53 #, fuzzy msgid "Failed to initialize the spell checker" msgstr "אפשר _בדיקת איות" #: ../src/spell.cc:66 #, fuzzy msgid "Failed to set the requested dictionary." msgstr "בחירת מילון ברירת מחדל" #: ../src/spelldialog.cc:37 msgid "_Ignore" msgstr "_התעלם" #: ../src/spelldialog.cc:38 #, fuzzy msgid "Ignore _All" msgstr "_התעלם" #: ../src/spelldialog.cc:39 msgid "C_hange" msgstr "_שנה" #: ../src/spelldialog.cc:42 msgid "_Add to user dictionary" msgstr "הוס_ף למילון המשתמש" #: ../src/spelldialog.cc:43 #, fuzzy msgid "Misspelled:" msgstr "שגיאות:" #: ../src/spelldialog.cc:44 msgid "Change to:" msgstr "שנה ל:" #: ../src/spelldialog.cc:48 msgid "Check Spelling" msgstr "בדיקת איות" #: ../src/spelldialog.cc:92 msgid "Suggestions" msgstr "הצעות" #: ../src/spelldialog.cc:128 msgid "No misspelled words." msgstr "אין שגיאות כתיב." #: ../src/statusbar.cc:69 #, fuzzy msgid "OVR" msgstr "OVR" #: ../src/statusbar.cc:69 #, fuzzy msgid "INS" msgstr "INS" #: ../src/statusbar.cc:74 #, fuzzy, c-format msgid " L: %d, C: %d" msgstr " ש: %d, ע: %d" #: ../src/toolbar.cc:53 msgid "Search" msgstr "חיפוש" #: ../src/toolbar.cc:56 msgid "Spelling Dictionary" msgstr "מילון איות" #: ../src/toolbar.cc:102 msgid "Create a new file" msgstr "צור קובץ חדש" #: ../src/toolbar.cc:103 msgid "Open a file for editing" msgstr "פתח קובץ לעריכה" #: ../src/toolbar.cc:104 msgid "Save the existing file" msgstr "שמור קובץ קיים" #: ../src/toolbar.cc:106 msgid "Print this document" msgstr "הדפס מסמך זה" #: ../src/toolbar.cc:108 msgid "Close the active file" msgstr "סגור קובץ פעיל זה" #: ../src/toolbar.cc:109 msgid "Undo" msgstr "בטל" #: ../src/toolbar.cc:110 msgid "Redo" msgstr "שחזר" #: ../src/toolbar.cc:111 msgid "Cut" msgstr "גזור" #: ../src/toolbar.cc:112 msgid "Copy" msgstr "העתק" #: ../src/toolbar.cc:113 msgid "Paste" msgstr "הדבקה" #: ../src/toolbar.cc:114 msgid "Delete current selection" msgstr "מחק בחירה נוכחית" #: ../src/toolbar.cc:116 msgid "Toggle full screen mode" msgstr "" #: ../src/utils.cc:189 msgid "I can't backup the old file.\n" msgstr "" #: ../src/utils.cc:247 #, fuzzy, c-format msgid "%s is a directory." msgstr "זאת ספרייה." #: ../src/window.cc:141 msgid " The keyboard emulator will not work." msgstr "" #: ../src/window.cc:147 msgid " Multipress will not work." msgstr "" #: ../src/window.cc:153 msgid "" "A lot of the configuration options have been changed in this version.\n" "Please adjust the configuration first." msgstr "" #~ msgid "Unknown" #~ msgstr "לא ידוע" #, fuzzy #~ msgid "Ready" #~ msgstr "שחזר" #, fuzzy #~ msgid "Printing" #~ msgstr "הדפסה" #, fuzzy #~ msgid "Couldn't get the definition from the server." #~ msgstr "לא מצליח לקבוע את קידוד הטקסט." #, fuzzy #~ msgid "Timeout" #~ msgstr "ניתוק לאחר זמן:" #, fuzzy #~ msgid "Command" #~ msgstr "הרץ _פקודה בחוצץ..." #~ msgid "katoob" #~ msgstr "קת'וב" #, fuzzy #~ msgid "Remote" #~ msgstr "שחזר" #, fuzzy #~ msgid "Are you sure you want to overwrite the file " #~ msgstr "האם ברצונך להחליף את הקובץ %s?" #, fuzzy #~ msgid "_PDF file..." #~ msgstr "_חיפוש..." #~ msgid "" #~ "You have modified the current text, Katoob'll convert the current text to " #~ "your default encoding and then convert it back to your choosen encoding. " #~ "Continue ?" #~ msgstr "" #~ "ערכת בקובץ הנוכחי שינויים, קת'וב ימיר את הטקסט הנוכחי לקידוד ברירת המחדל " #~ "שלך ואז ימיר אותו בחזרה לקידוד המבוקש. האם להמשיך?" #~ msgid "" #~ "You are changing the encoding of a modified file, This'll also clear the " #~ "undo & redo history, Should katoob reopen the file?" #~ msgstr "" #~ "הנך משנה קידוד של קובץ שעבר עריכה, ולפיכך תימחק היסטוריית בטל/שחזר. האם " #~ "על קת'וב לפתוח את הקובץ מחדש?" #~ msgid "" #~ "Katoob couldn't convert the text to unicode to be able to edit it, " #~ "Katoob'll try to recover what it can, The error was:\n" #~ "%s" #~ msgstr "" #~ "קת'וב לא הצליח להמיר את הטקסט לקידוד יוניקוד בכדי לאפשר את עריכתו. קת'וב " #~ "·ינסה לשחזר כעת את הקובץ. השגיאה שהתקבלה היא:\n" #~ "%s" #~ msgid "" #~ "Katoob couldn't recover unicode valid text, The error was:\n" #~ "%s" #~ msgstr "" #~ "ק'תוב נכשל בשחזור טקסט יוניקוד תקני,·השגיאה שהתקבלה היא:\n" #~ "%s" #~ msgid "The file %s doesn't exist, Create it?" #~ msgstr "הקובץ %s אינו קיים. האם ברצונך ליצור אותו?" #~ msgid "Couldn't create file %s, %s" #~ msgstr "יצירת הקובץ %s, %s נכשלה" #~ msgid "Couldn't open file %s, %s" #~ msgstr "פתיחת הקובץ %s, %s נכשלה" #~ msgid "" #~ "An error has occured while reading file %s\n" #~ "%s" #~ msgstr "" #~ "אירעה שגיאה בקריאת הקובץ %s\n" #~ "%s" #~ msgid "" #~ "An error has occured while writing to file %s\n" #~ "%s" #~ msgstr "" #~ "אירעה שגיאה בכתיבה לקובץ·%s\n" #~ "%s" #~ msgid "Empty file." #~ msgstr "קובץ ריק." #~ msgid "The requested file couldn't be opened for saving" #~ msgstr "אין אפשרות לפתוח את הקובץ המבוקש לשמירה" #~ msgid "An error has occured while writing to file %s" #~ msgstr "אירעה שגיאה בכתיבה לקובץ %s" #~ msgid "That's not a valid UTF-8 file" #~ msgstr "אין זה קובץ בקידוד UTF-8 תקין" #~ msgid "ERROR" #~ msgstr "שגיאה" #~ msgid "Katoob debugging output." #~ msgstr "פלט ניפוי באגים של קת'וב." #~ msgid "" #~ "Katoob has crashed, Please email the following debugging output to " #~ "developer@arabeyes.org and tell them exactly what you were doing." #~ msgstr "" #~ "קת'וב קרס, אנו מבקשים ממך לשלוח את פלט ניפוי הבאגים הבא לדוא\"ל " #~ "developer@arabeyes.org תוך תיאור מדוייק של השלבים שגרמו לקריסת היישום." #~ msgid "Save" #~ msgstr "שמור" #~ msgid "Text direction" #~ msgstr "כיוון טקסט" #~ msgid "_Left to right" #~ msgstr "מ_שמאל לימין" #~ msgid "_Right to left" #~ msgstr "מ_ימין לשמאל" #~ msgid "_Automatic" #~ msgstr "_אוטומטי" #~ msgid "Can't determine the encoding for that file, Please choose one." #~ msgstr "לא מצליח לקבוע את קידוד הקובץ, עליך לבחור קידוד באופן ידני." #~ msgid "_New" #~ msgstr "_חדש" #~ msgid "_Open..." #~ msgstr "_פתיחה..." #~ msgid "_Save" #~ msgstr "_שמור" #~ msgid "Save _As..." #~ msgstr "שמירה _בשם..." #~ msgid "_Revert" #~ msgstr "_אחזר קובץ מקורי" #~ msgid "_Iran System..." #~ msgstr "מערכת אירא_ן..." #~ msgid "_Print..." #~ msgstr "ה_דפסה..." #~ msgid "_Close" #~ msgstr "_סגור" #~ msgid "_Quit" #~ msgstr "י_ציאה" #~ msgid "_Undo" #~ msgstr "_בטל" #~ msgid "_Redo" #~ msgstr "_שחזר" #~ msgid "Cu_t" #~ msgstr "_גזור" #~ msgid "_Copy" #~ msgstr "הע_תק" #~ msgid "_Paste" #~ msgstr "_הדבק" #~ msgid "_Delete" #~ msgstr "מח_ק" #~ msgid "Pr_eferences..." #~ msgstr "_העדפות..." #~ msgid "_Replace..." #~ msgstr "החל_פה..." #~ msgid "Goto _Line..." #~ msgstr "מ_עבר לשורה..." #~ msgid "Ada" #~ msgstr "Ada" #~ msgid "C" #~ msgstr "C" #~ msgid "C++" #~ msgstr "C++" #~ msgid ".desktop" #~ msgstr ".desktop" #~ msgid "Diff" #~ msgstr "Diff" #~ msgid "HTML" #~ msgstr "HTML" #~ msgid "IDL" #~ msgstr "IDL" #~ msgid "Java" #~ msgstr "Java" #~ msgid "Latex" #~ msgstr "Latex" #~ msgid "Perl" #~ msgstr "Perl" #~ msgid "gettext translation" #~ msgstr "תרגום gettext" #~ msgid "Python" #~ msgstr "Python" #~ msgid "XML" #~ msgstr "XML" #~ msgid "_Spell Check..." #~ msgstr "_בדיקת איות..." #~ msgid "Abou_t" #~ msgstr "_אודות" #~ msgid "About Katoob" #~ msgstr "אודות קת'וב" #~ msgid "Main" #~ msgstr "ראשי" #~ msgid "Developers" #~ msgstr "מפתחים" #~ msgid "Credits" #~ msgstr "תודות" #~ msgid "License" #~ msgstr "רשיון" #~ msgid "Information" #~ msgstr "מידע" #~ msgid "Error initializing Arabic keyboard" #~ msgstr "חלה שגיאה באתחול מקלדת ערבית" #~ msgid "" #~ "An error has occured while trying to initialize your Arabic keyboard, " #~ "Katoob'll try to use the built in Arabic keyboard emulator." #~ msgstr "" #~ "אירעה שגיאה באתחול מקלדת ערבית, קת'וב ינסה להשתמש בהדמייה המובנית של " #~ "מקלדת ערבית." #~ msgid "_Show this warning every time this problem occures" #~ msgstr "הצג א_זהרה זו בכל פעם שבעיה זו מתרחשת." #~ msgid "_Goto" #~ msgstr "_עבור" #~ msgid "" #~ "There is no spellchecking dictionary available, Please make sure that you " #~ "have installed at least one." #~ msgstr "לא נמצא מילון זמין לבדיקת איות,·עליך לוודא ·שהתקנת לפחות מילון אחד." #~ msgid "Confirm Revert" #~ msgstr "אישור אחזור קובץ" #~ msgid "Mispelled words color" #~ msgstr "צבע מילים שגויות" #~ msgid "Please select the backup directory" #~ msgstr "עליך לבחור ספריית גיבוי" #~ msgid "Please select the dictionaries directory" #~ msgstr "עליך לבחור ספריית מילונים" #~ msgid "This is not a directory." #~ msgstr "זו אינה ספרייה." #~ msgid "Executed commands history size:" #~ msgstr "גודל ההיסטוריה של פקודות מורצות:" #~ msgid "Default text direction:" #~ msgstr "כיוון טקסט ברירת מחדל:" #~ msgid "_Manually choose the encoding" #~ msgstr "ב_חר קידוד ידנית" #~ msgid "Create backup in the original file directory." #~ msgstr "צור גיבוי בספריית הקובץ המקורית." #~ msgid "Backup directory." #~ msgstr "ספריית גיבוי." #~ msgid "_Browse" #~ msgstr "עיי_ן" #~ msgid "Dictionaries directory" #~ msgstr "ספריית מילונים" #~ msgid "Not enabled at compile time!" #~ msgstr "לא מאופשר בעת הידור" #~ msgid "Dictionary:" #~ msgstr "מילון:" #~ msgid "_Disable Antialiasing" #~ msgstr "_מנע החלקת שורות" #~ msgid "Select Font" #~ msgstr "בחירת גופן" #~ msgid "You choosed a directory." #~ msgstr "בחרת ספרייה." #~ msgid "Can't get selection" #~ msgstr "לא מצליח לקבל בחירה." #~ msgid "Couldn't execute gs to generate PDF." #~ msgstr "לא מצליח להפעיל את gs לשם חילול קובץ PDF." #~ msgid "Couldn't open the requested file for writing." #~ msgstr "לא מצליח לפתוח את הקובץ המבוקש לכתיבה." #~ msgid "Can't create temp file" #~ msgstr "לא מצליח ליצור קובץ זמני" #~ msgid "Error executing custom command." #~ msgstr "שגיאה בביצוע פקודה מותאמת אישית." #~ msgid "Choose Font" #~ msgstr "בחר גופן" #~ msgid "Family" #~ msgstr "משפחה" #~ msgid "Style" #~ msgstr "סגנון" #~ msgid "Size" #~ msgstr "גודל" #~ msgid "Copies" #~ msgstr "העתקים" #~ msgid "Job" #~ msgstr "עבודה" #~ msgid "Pr_inter:" #~ msgstr "מ_דפסת" #~ msgid "Generic Postscript" #~ msgstr "פוסט-סקריפט כללי" #~ msgid "File" #~ msgstr "קובץ" #~ msgid "lpr" #~ msgstr "lpr" #~ msgid "Inches" #~ msgstr "אינצ'ים" #~ msgid "Points" #~ msgstr "נקודות" #~ msgid "Cus_tom size" #~ msgstr "גודל מותאם _אישית" #~ msgid "Paper and layout" #~ msgstr "נייר ופריסה" #~ msgid "Margins (inch)" #~ msgstr "שוליים (אינצ'ים):" #~ msgid "Paper" #~ msgstr "נייר" #~ msgid "Please select an application." #~ msgstr "עליך לבחור יישום." #~ msgid "Can't open the recent documents file" #~ msgstr "לא מצליח לפתוח את קובץ המסמכים האחרונים" #~ msgid "Save As..." #~ msgstr "שמירה בשם..." #~ msgid "Save A Copy..." #~ msgstr "שמירת העתק..." #~ msgid " Couldn 't create a backup, Continue ?" #~ msgstr " לא הצלחתי לייצר גיבוי, האם להמשיך?" #~ msgid "The requested file couldn' t be opened for saving " #~ msgstr "לא הצלחתי לפתוח את הקובץ המבוקש לשמירה " #~ msgid "Replace" #~ msgstr "החלפה" #~ msgid "Find what:" #~ msgstr "חפש את:" #~ msgid "An error has occured" #~ msgstr "אירעה שגיאה" #~ msgid "The document is empty." #~ msgstr "המסמך ריק." #~ msgid "Check _Spelling" #~ msgstr "_בדוק איות" #~ msgid "No more mispelled word." #~ msgstr "אין שגיאות כתיב נוספות." #~ msgid "Emulator" #~ msgstr "אמולטור" #~ msgid "Change the typing language" #~ msgstr "שנה שפת ההקלדה" katoob-0.5.9.1/po/ja.po0000644000175000017500000007006610746617675011470 00000000000000# translation of ja.po to Japanese # Copyright (C) 2004, 2006 Free Software Foundation, Inc. # # UTUMI Hirosi , 2004, 2006. msgid "" msgstr "" "Project-Id-Version: ja\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2007-12-18 12:03+0200\n" "PO-Revision-Date: 2006-10-12 23:38+0900\n" "Last-Translator: UTUMI Hirosi \n" "Language-Team: Japanese \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" #: ../katoob.desktop.in.h:1 ../src/aboutdialog.cc:66 msgid "Katoob" msgstr "Katoob" #: ../katoob.desktop.in.h:2 msgid "Multilingual Unicode Text Editor" msgstr "多国語対応Unicodeテキストエディタ" #: ../src/aboutdialog.cc:51 msgid "" "Katoob 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." msgstr "" #: ../src/aboutdialog.cc:56 msgid "" "Katoob 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." msgstr "" #: ../src/aboutdialog.cc:61 msgid "" "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" msgstr "" #: ../src/aboutdialog.cc:71 msgid "Copyright © 2006, 2007 Mohammed Sameer." msgstr "" #: ../src/aboutdialog.cc:73 ../src/aboutdialog.cc:76 msgid "Mohammed Sameer" msgstr "" #: ../src/aboutdialog.cc:77 msgid "Mostafa Hussein" msgstr "" #: ../src/aboutdialog.cc:80 #, fuzzy msgid "A lightweight multilingual unicode and bidi aware text editor" msgstr "多国語対応Unicodeテキストエディタ" #: ../src/aboutdialog.cc:81 msgid "translator-credits" msgstr "UTUMI Hirosi " #: ../src/applets.cc:55 msgid "_Enable undo, redo\t" msgstr "アンドゥ/リドゥを有効に(_E)\t" #: ../src/applets.cc:57 msgid "Keep a history of recently closed documents" msgstr "最近閉じた文書の履歴を保持する" #: ../src/applets.cc:59 msgid "" "Undo history size\n" "(0 for unlimited)" msgstr "" "アンドゥ履歴のサイズ\n" "(0 で無制限)" #: ../src/applets.cc:60 msgid "" "Executed commands history size\n" "(0 for unlimited)" msgstr "" "コマンド実行履歴のサイズ\n" "(0 で無制限)" #: ../src/applets.cc:61 msgid "" "Closed documents history size\n" "(0 for unlimited)" msgstr "" "閉じた文書の履歴のサイズ\n" "(0 で無制限)" #: ../src/applets.cc:122 msgid "Show the extra _buttons" msgstr "拡張ボタンを表示(_b)" #: ../src/applets.cc:123 msgid "Show the _Main Toolbar" msgstr "メインツールバーを表示(_M)" #: ../src/applets.cc:124 msgid "Show the _Extended Toolbar" msgstr "拡張ツールバーを表示(_E)" #: ../src/applets.cc:125 msgid "Show the _Statusbar" msgstr "ステータスバーを表示(_S)" #: ../src/applets.cc:126 msgid "Enable re_cent menu" msgstr "履歴を有効に(_c)" #: ../src/applets.cc:127 msgid "Show the _close button on each tab label" msgstr "タブごとに'閉じる'ボタンを表示" #: ../src/applets.cc:128 msgid "" "No. of recent entries\n" "(0 for unlimited)" msgstr "" "履歴の数\n" "(0 で無制限)" #: ../src/applets.cc:129 msgid "Show the toolbar as" msgstr "ツールバーの表示" #: ../src/applets.cc:130 ../src/applets.cc:159 ../src/menubar.cc:318 msgid "Text only" msgstr "文字のみ" #. TODO: Disable these when the main toolbar is not shown. #: ../src/applets.cc:131 ../src/applets.cc:162 ../src/menubar.cc:315 msgid "Icons only" msgstr "アイコンのみ" #: ../src/applets.cc:132 ../src/applets.cc:168 ../src/applets.cc:350 #: ../src/applets.cc:383 ../src/applets.cc:392 ../src/menubar.cc:321 msgid "Both" msgstr "両方" #: ../src/applets.cc:133 ../src/applets.cc:165 ../src/menubar.cc:324 msgid "Text beside icons" msgstr "アイコンの横に文字" #: ../src/applets.cc:217 msgid "_Show tabs" msgstr "タブを表示(_S)" #: ../src/applets.cc:218 msgid "_Enable tabs menu" msgstr "タブのメニュー有効(_E)" #: ../src/applets.cc:219 msgid "Scro_ll tabs" msgstr "タブをスクロール(_l)" #: ../src/applets.cc:220 msgid "Show the tabs at the" msgstr "タブの位置" #: ../src/applets.cc:221 ../src/applets.cc:282 ../src/applets.cc:846 msgid "Top" msgstr "上" #: ../src/applets.cc:222 ../src/applets.cc:273 msgid "Bottom" msgstr "下" #: ../src/applets.cc:223 ../src/applets.cc:276 ../src/applets.cc:348 #: ../src/applets.cc:389 msgid "Right" msgstr "右" #: ../src/applets.cc:224 ../src/applets.cc:279 ../src/applets.cc:349 #: ../src/applets.cc:386 ../src/applets.cc:845 msgid "Left" msgstr "左" #: ../src/applets.cc:226 msgid "Color for read only tabs" msgstr "読み取り専用タブの色" #: ../src/applets.cc:227 msgid "Color for modified tabs" msgstr "変更したタブの色" #: ../src/applets.cc:228 msgid "Color for normal tabs" msgstr "通常のタブの色" #: ../src/applets.cc:341 msgid "Text _Wrapping is on by default" msgstr "テキストをデフォルトで折り返す(_W)" #: ../src/applets.cc:342 msgid "Show _Line numbers by default" msgstr "行番号をデフォルトで表示" #: ../src/applets.cc:343 msgid "Use the default _font" msgstr "デフォルトのフォントを使う(_f)" #: ../src/applets.cc:345 msgid "_Automatic syntax highlighting for known file types" msgstr "" #: ../src/applets.cc:347 msgid "Line numbers position" msgstr "行番号の位置" #: ../src/applets.cc:351 msgid "Font" msgstr "フォント" #: ../src/applets.cc:353 msgid "Tab width" msgstr "" #: ../src/applets.cc:450 msgid "_Use the locale encoding" msgstr "ロケールのエンコーディングを使う(_U)" #: ../src/applets.cc:451 ../src/applets.cc:452 msgid "Specify an encoding" msgstr "エンコーディングを指定" #: ../src/applets.cc:456 msgid "File open encoding" msgstr "ファイルを開くときのエンコーディング" #: ../src/applets.cc:457 msgid "File save encoding" msgstr "ファイルを保存するときのエンコーディング" #: ../src/applets.cc:502 msgid "_Backup files before saving." msgstr "保存前にファイルをバックアップ(_B)" #: ../src/applets.cc:503 msgid "Backup extension" msgstr "バックアップの拡張子" #: ../src/applets.cc:534 ../src/menubar.cc:362 msgid "_Autocheck Spelling" msgstr "スペルを自動確認(_A)" #. misspelled_label.set_text(_("Misspelled words color")); #: ../src/applets.cc:536 msgid "Choose the default dictionary" msgstr "デフォルトのディレクトリを選択" #: ../src/applets.cc:586 msgid "Printing font" msgstr "印刷時のフォント" #: ../src/applets.cc:590 msgid "_Enable advanced options" msgstr "高度なオプションを有効に(_E)" #: ../src/applets.cc:594 msgid "X Dot Per Inch" msgstr "インチ当たりのドット数(X)" #: ../src/applets.cc:595 msgid "Y Dot Per Inch" msgstr "インチ当たりのドット数(Y)" #: ../src/applets.cc:652 msgid "_Enable the dictionary." msgstr "辞書を有効にする(_E)" #: ../src/applets.cc:653 msgid "Host" msgstr "ホスト" #: ../src/applets.cc:654 msgid "_List dictionaries" msgstr "辞書をリスト表示(_L)" #: ../src/applets.cc:656 msgid "Port" msgstr "ポート" #: ../src/applets.cc:667 ../src/applets.cc:675 ../src/preferencesdialog.cc:75 msgid "Dictionary" msgstr "辞書" #: ../src/applets.cc:676 msgid "Description" msgstr "説明" #: ../src/applets.cc:681 msgid "Not Available." msgstr "利用不可" #: ../src/applets.cc:738 ../src/applets.cc:741 msgid "Failed to get the available dictionaries." msgstr "" #: ../src/applets.cc:768 msgid "Please provide a dict server" msgstr "" #: ../src/applets.cc:797 msgid "_Milliseconds before multipress will accept the current value." msgstr "" #: ../src/applets.cc:827 msgid "" "Number of remote addresses to save\n" "(0 for unlimited)" msgstr "" "保存するリモートアドレスの数\n" "(0 で無制限)" #: ../src/applets.cc:830 msgid "_Insert into the active document enabled by default ?" msgstr "アクティブな文書への挿入をデフォルトで有効に(_I)" #: ../src/applets.cc:847 msgid "Width" msgstr "幅" #: ../src/applets.cc:848 msgid "Height" msgstr "高さ" #: ../src/applets.cc:850 msgid "Save all the program _settings on exit" msgstr "終了時に全てのプログラムの設定を保存(_s)" #: ../src/applets.cc:851 msgid "Save the main window _attributes on exit" msgstr "終了時にメインウィンドウの設定を保存(_a)" #: ../src/applets.cc:856 msgid "Window position" msgstr "ウィンドウの位置" #: ../src/applets.cc:857 msgid "Window size" msgstr "ウィンドウのサイズ" #: ../src/applets.cc:925 msgid "Network timeout (In seconds):" msgstr "" #: ../src/applets.cc:926 msgid "Proxy host:" msgstr "" #: ../src/applets.cc:927 msgid "Proxy port:" msgstr "" #: ../src/applets.cc:928 msgid "Proxy type:" msgstr "" #: ../src/applets.cc:930 ../src/menubar.cc:798 msgid "None" msgstr "" #: ../src/applets.cc:931 msgid "Get from the environment" msgstr "" #: ../src/applets.cc:932 msgid "HTTP" msgstr "" #: ../src/applets.cc:933 msgid "SOCKS4" msgstr "" #: ../src/applets.cc:934 msgid "SOCKS5" msgstr "" #: ../src/applets.cc:948 msgid "Tunnel traffic through the proxy" msgstr "" #: ../src/applets.cc:950 msgid "Use proxy authentication" msgstr "" #: ../src/applets.cc:951 msgid "Proxy username:" msgstr "" #: ../src/applets.cc:952 msgid "Proxy password:" msgstr "" #: ../src/dialogs.cc:70 #, fuzzy msgid "Insert to document" msgstr "アクティブな文書に挿入(_I)" #: ../src/dialogs.cc:98 ../src/toolbar.cc:52 msgid "Goto Line" msgstr "行へ移動" #: ../src/dialogs.cc:105 msgid "Line:" msgstr "行:" #: ../src/dialogs.cc:139 msgid "Please wait..." msgstr "" #: ../src/dict.cc:60 msgid "Invalid daatabase. Please reconfigure the dictionary in use." msgstr "" #: ../src/dict.cc:64 #, fuzzy msgid "No matches were found" msgstr "合致する結果はありません" #: ../src/dict.cc:122 ../src/dict.cc:139 #, fuzzy msgid "No databases were found." msgstr "合致する結果はありません" #: ../src/document.cc:109 msgid " Is a directory." msgstr " はディレクトリです" #: ../src/document.cc:133 ../src/mdi.cc:295 ../src/mdi.cc:1107 #, c-format msgid "Couldn't detect the encoding of %s" msgstr "%s のエンコーディングを検出できません" #: ../src/document.cc:193 msgid "Couldn't detect the encoding of the text." msgstr "テキストのエンコーディングを検出できません" #: ../src/document.cc:285 #, c-format msgid "Failed to create the autorecovery file %s" msgstr "" #: ../src/document.cc:1240 msgid "Define " msgstr "定義 " #: ../src/document.cc:1255 msgid "Spelling Suggestions" msgstr "スペルを提案" #: ../src/document.cc:1263 #, c-format msgid "Add \"%s\" to dictionary" msgstr "\"%s\" を辞書に追加" #. TODO: Use italics markup. #: ../src/document.cc:1272 msgid "no suggestions" msgstr "提案なし" #: ../src/document.cc:1283 msgid "More..." msgstr "もっと.." #: ../src/encodings.cc:347 ../src/encodings.cc:367 #, fuzzy msgid "I wasn't able to convert the encoding." msgstr "テキストを変換できません" #: ../src/execdialog.cc:40 msgid "Command to execute" msgstr "実行するコマンド" #: ../src/execdialog.cc:41 #, c-format msgid "" "'%s' will be substituted with a temporary filename\n" "containing the text from the document." msgstr "" "文書に含まれているテキストから\n" "'%s' を一時的なファイル名にします" #: ../src/execdialog.cc:47 msgid "_Show the results in a new tab" msgstr "結果を新規タブに表示(_S)" #: ../src/export.cc:48 msgid "_Text file with no unicode control characters..." msgstr "unicode 制御文字なしのテキストファイル(_T)" #: ../src/export.cc:55 ../src/import.cc:52 msgid "Text file compressed with _gzip" msgstr "gzip で圧縮したテキストファイル(_g)" #: ../src/export.cc:62 ../src/import.cc:58 msgid "Text file compressed with _bzip2" msgstr "bzip で圧縮したテキストファイル(_b)" #: ../src/export.cc:69 ../src/import.cc:64 msgid "Text with _shaping and bidi applied" msgstr "整形と bidi を適用したテキスト(_s)" #: ../src/export.cc:107 msgid "Can't open temporary file." msgstr "一時ファイルを開けません" #: ../src/export.cc:113 msgid "Error writing to temporary file." msgstr "一時ファイルに書き込めません" #: ../src/export.cc:130 msgid "Couldn't allocate memory for compression." msgstr "圧縮用にメモリを割り当てることができません" #: ../src/export.cc:136 msgid "Couldn't compress the text." msgstr "テキストを圧縮できません" #. _ch is allocated via g_new(); #: ../src/export.cc:185 ../src/import.cc:239 msgid "Couldn't apply the bidi algorithm." msgstr "bidi アルゴリズムを適用できません" #: ../src/filedialog.cc:38 ../src/filedialog.cc:52 #: ../src/openlocationdialog.cc:38 msgid "Encoding" msgstr "エンコーディング" #: ../src/filedialog.cc:144 msgid "This is a directory." msgstr "これはディレクトリです" #: ../src/import.cc:47 msgid "_HTML Character Reference..." msgstr "HTML キャラクタレファレンス(_H)" #: ../src/import.cc:114 ../src/import.cc:120 ../src/import.cc:141 #: ../src/import.cc:172 msgid "Can't open file." msgstr "ファイルを開けません" #. Error. #: ../src/import.cc:135 ../src/import.cc:157 ../src/import.cc:188 msgid "Error reading file." msgstr "ファイルの読み込みエラー" #: ../src/inputwindow.cc:33 msgid "Input Window" msgstr "" #: ../src/isocodes.cc:117 #, c-format msgid "%s (%s)" msgstr "" #: ../src/label.cc:60 #, c-format msgid "Untitled New %d" msgstr "新規 %d" #: ../src/mdi.cc:83 #, c-format msgid "Failed to scan for any autorecovery files: %s" msgstr "" #: ../src/mdi.cc:88 msgid "Some unrecovered files were found. Try to recover them ?" msgstr "" #: ../src/mdi.cc:203 msgid "Please select a file for editing." msgstr "編集するファイルを選んでください" #: ../src/mdi.cc:281 msgid "This is a read only document." msgstr "読み取り専用文書です" #: ../src/mdi.cc:285 msgid "Please select a file." msgstr "ファイルを選んでください" #: ../src/mdi.cc:324 msgid "This document can not be saved. It's a read only file." msgstr "この文書を保存できません。読み取り専用ファイルです" #: ../src/mdi.cc:354 msgid "Please select a file for saving." msgstr "保存するファイルを選んでください" #: ../src/mdi.cc:361 ../src/mdi.cc:1124 ../src/printdialog.cc:254 #, c-format msgid "Are you sure you want to overwrite the file %s ?" msgstr "ファイル %s を上書きしますか?" #: ../src/mdi.cc:452 #, c-format msgid "The file %s is not saved, Save first ?" msgstr "ファイル %s を保存していません。保存しますか?" #: ../src/mdi.cc:455 #, c-format msgid "\"%s\" is not saved, Save first?" msgstr "\"%s\" を保存していません。保存しますか?" #: ../src/mdi.cc:509 #, fuzzy, c-format msgid "The file \"%s\" doesn't exist." msgstr "ファイル %s を保存していません。保存しますか?" #: ../src/mdi.cc:573 #, c-format msgid "" "This will close the current file \"%s\". Discard any changes done and reload " "the saved copy of the file. Are you sure you want to continue ?" msgstr "" "現在のファイル \"%s\" を閉じます。全ての変更を破棄して保存済みのファイルを再" "読み込みします。続けますか?" #: ../src/mdi.cc:673 msgid "You must inter a word to search for." msgstr "検索する単語を入力してください" #: ../src/mdi.cc:685 ../src/mdi.cc:701 ../src/mdi.cc:748 msgid "No search results found." msgstr "合致するものがありません" #: ../src/mdi.cc:781 #, fuzzy, c-format msgid "Replaced %d occurence." msgid_plural "Replaced %d occurences." msgstr[0] "%d 個 置き換えました" msgstr[1] "%d 個 置き換えました" #: ../src/mdi.cc:806 #, c-format msgid "You can use only one '%s'" msgstr "'%s' は1個だけ使えます" #: ../src/mdi.cc:959 ../src/mdi.cc:962 msgid "Failed to get any definitions." msgstr "" #: ../src/menubar.cc:142 msgid "_File" msgstr "ファイル(_F)" #: ../src/menubar.cc:150 msgid "Open _Location..." msgstr "場所を開く(_L)" #. Recent #: ../src/menubar.cc:154 msgid "Recent" msgstr "履歴" #: ../src/menubar.cc:164 msgid "Sa_ve Copy..." msgstr "コピーを保存(_v)" #: ../src/menubar.cc:171 msgid "_Import" msgstr "インポート(_I)" #: ../src/menubar.cc:179 msgid "_Export" msgstr "エクスポート(_E)" #: ../src/menubar.cc:188 msgid "Page Set_up..." msgstr "" #: ../src/menubar.cc:191 #, fuzzy msgid "Print Previe_w" msgstr "印刷プレビュー" #: ../src/menubar.cc:240 msgid "_Edit" msgstr "編集(_E)" #: ../src/menubar.cc:261 msgid "_Select All" msgstr "全て選択(_S)" #: ../src/menubar.cc:265 msgid "_Insert File" msgstr "ファイルを挿入(_I)" #: ../src/menubar.cc:274 msgid "_Search" msgstr "検索(_S)" #: ../src/menubar.cc:279 msgid "Find Ne_xt" msgstr "次を検索(_x)" #: ../src/menubar.cc:292 msgid "_View" msgstr "表示(_V)" #: ../src/menubar.cc:294 msgid "_Statusbar" msgstr "ステータスバー(_S)" #: ../src/menubar.cc:297 msgid "_Line Numbers" msgstr "行番号(_L)" #: ../src/menubar.cc:300 msgid "_Wrap Text" msgstr "テキストを折り返す(_W)" #: ../src/menubar.cc:305 msgid "Toolbars" msgstr "ツールバー" #: ../src/menubar.cc:307 msgid "_Main Toolbar" msgstr "メインツールバー(_M)" #: ../src/menubar.cc:310 msgid "_Extended Toolbar" msgstr "拡張ツールバー(_E)" #: ../src/menubar.cc:327 msgid "_Encoding" msgstr "エンコーディング(_E)" #: ../src/menubar.cc:352 msgid "_Tools" msgstr "ツール(_T)" #: ../src/menubar.cc:353 msgid "_Execute Command On Buffer..." msgstr "バッファでコマンドを実行(_E)" #: ../src/menubar.cc:368 ../src/statusbar.cc:56 msgid "Input" msgstr "" #: ../src/menubar.cc:369 msgid "Default" msgstr "" #: ../src/menubar.cc:374 msgid "Keyboard emulator" msgstr "キーボードエミュレータ" #: ../src/menubar.cc:378 ../src/preferencesdialog.cc:77 msgid "Multipress" msgstr "" #: ../src/menubar.cc:393 msgid "_Documents" msgstr "文書(_D)" #: ../src/menubar.cc:394 msgid "Save _All" msgstr "全て保存(_A)" #: ../src/menubar.cc:397 msgid "Clos_e All" msgstr "全て閉じる(_e)" #: ../src/menubar.cc:402 msgid "_Opened Documents" msgstr "文書を開く(_O)" #: ../src/menubar.cc:403 msgid "_Closed Documents" msgstr "文書を閉じる(_C)" #: ../src/menubar.cc:408 msgid "_Help" msgstr "ヘルプ(_H)" #: ../src/menubar.cc:796 #, fuzzy msgid "_Highlight" msgstr "高さ" #: ../src/network.cc:89 msgid "Failed to initialize the networking backend." msgstr "" #: ../src/network.cc:95 #, fuzzy msgid "Couldn't initialize network handler." msgstr "ファイルを印刷できません" #: ../src/network.cc:145 msgid "Please set the proxy authentication username." msgstr "" #: ../src/network.cc:150 msgid "Please set the proxy authentication password." msgstr "" #: ../src/network.cc:157 #, fuzzy msgid "Please set a proxy host." msgstr "印刷するファイルを選んでください" #: ../src/openlocationdialog.cc:37 msgid "Location" msgstr "場所" #: ../src/openlocationdialog.cc:54 msgid "_Insert into the active document." msgstr "アクティブな文書に挿入(_I)" #: ../src/openlocationdialog.cc:92 msgid "You must enter a location to open." msgstr "開く場所を入力してください" #: ../src/pipe.cc:53 #, c-format msgid "I can't execute %s. I can't find it in your path" msgstr "" #. TODO: Possible some commands might not return 0 #: ../src/pipe.cc:99 msgid "Couldn't get the required content." msgstr "要求したコンテンツを取得できません" #: ../src/preferencesdialog.cc:41 msgid "Preferences" msgstr "設定" #: ../src/preferencesdialog.cc:55 msgid "Options for" msgstr "オプション " #: ../src/preferencesdialog.cc:63 msgid "General" msgstr "全般" #: ../src/preferencesdialog.cc:64 msgid "Interface" msgstr "インタフェース" #: ../src/preferencesdialog.cc:65 msgid "Tabs" msgstr "タブ" #: ../src/preferencesdialog.cc:66 msgid "Editor" msgstr "エディタ" #: ../src/preferencesdialog.cc:67 msgid "Encodings" msgstr "エンコーディング" #: ../src/preferencesdialog.cc:68 msgid "File Save" msgstr "ファイル保存" #: ../src/preferencesdialog.cc:70 msgid "Spell Checker" msgstr "スペル確認" #: ../src/preferencesdialog.cc:73 ../src/printdialog.cc:97 msgid "Print" msgstr "印刷" #: ../src/preferencesdialog.cc:79 #, fuzzy msgid "Remote Documents" msgstr "文書を開く(_O)" #: ../src/preferencesdialog.cc:80 msgid "Advanced" msgstr "高度" #: ../src/preferencesdialog.cc:81 msgid "Network" msgstr "" #: ../src/previewdialog.cc:48 msgid "Print preview" msgstr "印刷プレビュー" #: ../src/previewdialog.cc:56 ../src/previewdialog.cc:176 #, c-format msgid "of %i" msgstr "of %i" #: ../src/print.cc:207 msgid "Other" msgstr "" #: ../src/printdialog.cc:77 msgid "Print to file." msgstr "ファイルに印刷" #: ../src/printdialog.cc:78 msgid "_All" msgstr "全て(_A)" #: ../src/printdialog.cc:79 msgid "_Selection" msgstr "選択(_S)" #: ../src/printdialog.cc:80 msgid "_Lines" msgstr "行(_L)" #: ../src/printdialog.cc:81 msgid "Printer:" msgstr "プリンタ:" #: ../src/printdialog.cc:89 msgid "Location:" msgstr "場所:" #: ../src/printdialog.cc:90 msgid "Number of copies" msgstr "コピーの数" #: ../src/printdialog.cc:91 msgid "Print range" msgstr "印刷幅" #: ../src/printdialog.cc:92 msgid "From:" msgstr "From:" #: ../src/printdialog.cc:93 msgid "To:" msgstr "To:" #: ../src/printdialog.cc:94 msgid "Paper size:" msgstr "紙のサイズ:" #: ../src/printdialog.cc:95 msgid "Page orientation:" msgstr "ページの方向:" #: ../src/printdialog.cc:113 msgid "Printer name" msgstr "プリンタの名前" #: ../src/printdialog.cc:114 msgid "Status" msgstr "ステータス" #: ../src/printdialog.cc:132 ../src/printdialog.cc:190 msgid "Custom" msgstr "カスタム" #: ../src/printdialog.cc:136 msgid "Create a PDF document" msgstr "PDF ドキュメントを作成" #: ../src/printdialog.cc:137 msgid "Create a Postscript document" msgstr "Postscript ドキュメントを作成" #: ../src/printdialog.cc:183 msgid "Portrait" msgstr "縦長" #: ../src/printdialog.cc:184 msgid "Landscape" msgstr "横長" #: ../src/printdialog.cc:196 msgid "Width:" msgstr "幅:" #: ../src/printdialog.cc:196 msgid "Height:" msgstr "高さ:" #: ../src/printdialog.cc:246 msgid "Please choose a file to print to." msgstr "印刷するファイルを選んでください" #: ../src/printdialog.cc:250 msgid "Please choose a file not a directory." msgstr "ディレクトリではなくファイルを選んでください" #: ../src/printdialog.cc:341 msgid "Please select a file to print to." msgstr "印刷するファイルを選んでください" #: ../src/printdialog.cc:421 msgid "I couldn't get the selected printer." msgstr "選んだプリンタに接続できません" #: ../src/replacedialog.cc:32 ../src/searchdialog.cc:32 msgid "Find" msgstr "検索" #: ../src/replacedialog.cc:33 ../src/searchdialog.cc:33 msgid "Search for:" msgstr "検索する語:" #: ../src/replacedialog.cc:34 msgid "Replace with:" msgstr "置き換える語:" #: ../src/replacedialog.cc:35 ../src/searchdialog.cc:34 msgid "Match entire word only" msgstr "完全に一致する語のみ" #: ../src/replacedialog.cc:36 ../src/searchdialog.cc:35 msgid "Match case" msgstr "大文字小文字を区別" #. regex(_("Regular expression")), #: ../src/replacedialog.cc:37 ../src/searchdialog.cc:37 msgid "Wrap search" msgstr "循環して検索" #: ../src/replacedialog.cc:38 ../src/searchdialog.cc:38 msgid "Search from the cursor position" msgstr "カーソル位置から検索" #: ../src/replacedialog.cc:39 ../src/searchdialog.cc:39 msgid "Search backwards" msgstr "後方に検索" #: ../src/replacedialog.cc:40 ../src/searchdialog.cc:40 msgid "Search from the beginnig of the document" msgstr "文書の最初から検索" #: ../src/replacedialog.cc:42 msgid "_Replace" msgstr "置換(_R)" #. find_replace(Gtk::Stock::FIND_AND_REPLACE), #: ../src/replacedialog.cc:44 msgid "Replace _All" msgstr "全て置換(_A)" #: ../src/spell.cc:53 msgid "Failed to initialize the spell checker" msgstr "" #: ../src/spell.cc:66 #, fuzzy msgid "Failed to set the requested dictionary." msgstr "デフォルトのディレクトリを選択" #: ../src/spelldialog.cc:37 msgid "_Ignore" msgstr "無視(_I)" #: ../src/spelldialog.cc:38 msgid "Ignore _All" msgstr "全て無視(_A)" #: ../src/spelldialog.cc:39 msgid "C_hange" msgstr "変更(_h)" #: ../src/spelldialog.cc:42 msgid "_Add to user dictionary" msgstr "ユーザ辞書に追加(_A)" #: ../src/spelldialog.cc:43 msgid "Misspelled:" msgstr "スペル間違い:" #: ../src/spelldialog.cc:44 msgid "Change to:" msgstr "次の語に変更:" #: ../src/spelldialog.cc:48 msgid "Check Spelling" msgstr "スペルをチェック" #: ../src/spelldialog.cc:92 msgid "Suggestions" msgstr "提案" #: ../src/spelldialog.cc:128 msgid "No misspelled words." msgstr "スペル間違いはありません" #: ../src/statusbar.cc:69 msgid "OVR" msgstr "上書き" #: ../src/statusbar.cc:69 msgid "INS" msgstr "挿入" #: ../src/statusbar.cc:74 #, c-format msgid " L: %d, C: %d" msgstr " 行: %d, 列: %d" #: ../src/toolbar.cc:53 msgid "Search" msgstr "検索" #: ../src/toolbar.cc:56 msgid "Spelling Dictionary" msgstr "スペル用の辞書" #: ../src/toolbar.cc:102 msgid "Create a new file" msgstr "新規ファイルを作成" #: ../src/toolbar.cc:103 msgid "Open a file for editing" msgstr "編集用にファイルを開く" #: ../src/toolbar.cc:104 msgid "Save the existing file" msgstr "既存のファイルを保存" #: ../src/toolbar.cc:106 msgid "Print this document" msgstr "この文書を印刷" #: ../src/toolbar.cc:108 msgid "Close the active file" msgstr "現在のファイルを閉じる" #: ../src/toolbar.cc:109 msgid "Undo" msgstr "アンドゥ" #: ../src/toolbar.cc:110 msgid "Redo" msgstr "リドゥ" #: ../src/toolbar.cc:111 msgid "Cut" msgstr "切り取り" #: ../src/toolbar.cc:112 msgid "Copy" msgstr "コピー" #: ../src/toolbar.cc:113 msgid "Paste" msgstr "貼り付け" #: ../src/toolbar.cc:114 msgid "Delete current selection" msgstr "選択したものを削除" #: ../src/toolbar.cc:116 msgid "Toggle full screen mode" msgstr "" #: ../src/utils.cc:189 msgid "I can't backup the old file.\n" msgstr "" #: ../src/utils.cc:247 #, fuzzy, c-format msgid "%s is a directory." msgstr "これはディレクトリです" #: ../src/window.cc:141 msgid " The keyboard emulator will not work." msgstr " キーボードエミュレータは動きません" #: ../src/window.cc:147 #, fuzzy msgid " Multipress will not work." msgstr " キーボードエミュレータは動きません" #: ../src/window.cc:153 #, fuzzy msgid "" "A lot of the configuration options have been changed in this version.\n" "Please adjust the configuration first." msgstr "" "このバージョンでは多くの設定オプションを変更しています。\n" "最初に設定を調整してください" #~ msgid "Unknown" #~ msgstr "不明" #~ msgid "Ready" #~ msgstr "Ready" #~ msgid "Printing" #~ msgstr "印刷" #~ msgid "Disabled" #~ msgstr "無効" #~ msgid "You must select something to print." #~ msgstr "印刷するファイルを選んでください" #~ msgid "I couldn't connect to the dict server." #~ msgstr "辞書サーバに接続できません" #~ msgid "Couldn't get the definition from the server." #~ msgstr "サーバから定義を取得できません" #~ msgid "Couldn't get the list of dictionaries from the server." #~ msgstr "サーバから辞書リストを取得できません" #~ msgid "Timeout" #~ msgstr "タイムアウト" #~ msgid "Command" #~ msgstr "コマンド" #~ msgid "Failed to display image" #~ msgstr "画像の表示に失敗" #~ msgid "katoob" #~ msgstr "katoob" #~ msgid "Disable" #~ msgstr "無効" #~ msgid "Remote" #~ msgstr "リモート" #~ msgid "Are you sure you want to overwrite the file " #~ msgstr "ファイルを上書きしますか " katoob-0.5.9.1/po/pl.po0000644000175000017500000007503510746617675011512 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Free Software Foundation, Inc. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: KATOOB 0.2.1\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2007-12-18 12:03+0200\n" "PO-Revision-Date: 2002-09-30 21:45+0200\n" "Last-Translator: Krzysztof Krzyzaniak \n" "Language-Team: GnomePL \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: ../katoob.desktop.in.h:1 ../src/aboutdialog.cc:66 #, fuzzy msgid "Katoob" msgstr "O katoob" #: ../katoob.desktop.in.h:2 msgid "Multilingual Unicode Text Editor" msgstr "" #: ../src/aboutdialog.cc:51 msgid "" "Katoob 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." msgstr "" #: ../src/aboutdialog.cc:56 msgid "" "Katoob 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." msgstr "" #: ../src/aboutdialog.cc:61 msgid "" "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" msgstr "" #: ../src/aboutdialog.cc:71 msgid "Copyright © 2006, 2007 Mohammed Sameer." msgstr "" #: ../src/aboutdialog.cc:73 ../src/aboutdialog.cc:76 msgid "Mohammed Sameer" msgstr "" #: ../src/aboutdialog.cc:77 msgid "Mostafa Hussein" msgstr "" #: ../src/aboutdialog.cc:80 msgid "A lightweight multilingual unicode and bidi aware text editor" msgstr "" #: ../src/aboutdialog.cc:81 msgid "translator-credits" msgstr "" #: ../src/applets.cc:55 msgid "_Enable undo, redo\t" msgstr "_Włącz cofnięcie i przywrócenie\t" #: ../src/applets.cc:57 msgid "Keep a history of recently closed documents" msgstr "" #: ../src/applets.cc:59 msgid "" "Undo history size\n" "(0 for unlimited)" msgstr "" "Liczba cofnięc\n" "(0 - nielimitowana)" #: ../src/applets.cc:60 #, fuzzy msgid "" "Executed commands history size\n" "(0 for unlimited)" msgstr "" "Liczba cofnięc\n" "(0 - nielimitowana)" #: ../src/applets.cc:61 #, fuzzy msgid "" "Closed documents history size\n" "(0 for unlimited)" msgstr "" "Liczba cofnięc\n" "(0 - nielimitowana)" #: ../src/applets.cc:122 #, fuzzy msgid "Show the extra _buttons" msgstr "Pokazuj zakładki " #: ../src/applets.cc:123 #, fuzzy msgid "Show the _Main Toolbar" msgstr "_Pokazuj pasek narzędziowy" #: ../src/applets.cc:124 #, fuzzy msgid "Show the _Extended Toolbar" msgstr "_Pokazuj pasek narzędziowy" #: ../src/applets.cc:125 #, fuzzy msgid "Show the _Statusbar" msgstr "Pokazuj pasek _stanu" #: ../src/applets.cc:126 msgid "Enable re_cent menu" msgstr "Włącz pozycję _Ostatnie" #: ../src/applets.cc:127 msgid "Show the _close button on each tab label" msgstr "Pokazuj przycisk _zamknięcia na każdej zakładce" #: ../src/applets.cc:128 msgid "" "No. of recent entries\n" "(0 for unlimited)" msgstr "" "Liczba elementów w Ostatnie\n" "(0 - nielimitowana)" #: ../src/applets.cc:129 msgid "Show the toolbar as" msgstr "Pokazuj pasek narzędziowy jako" #: ../src/applets.cc:130 ../src/applets.cc:159 ../src/menubar.cc:318 msgid "Text only" msgstr "Tylko tekst" #. TODO: Disable these when the main toolbar is not shown. #: ../src/applets.cc:131 ../src/applets.cc:162 ../src/menubar.cc:315 msgid "Icons only" msgstr "Tylko ikony" #: ../src/applets.cc:132 ../src/applets.cc:168 ../src/applets.cc:350 #: ../src/applets.cc:383 ../src/applets.cc:392 ../src/menubar.cc:321 msgid "Both" msgstr "Tekst i ikony" #: ../src/applets.cc:133 ../src/applets.cc:165 ../src/menubar.cc:324 msgid "Text beside icons" msgstr "Tekst obok ikon" #: ../src/applets.cc:217 msgid "_Show tabs" msgstr "_Pokaż zakładki" #: ../src/applets.cc:218 msgid "_Enable tabs menu" msgstr "_Włącz menu zakładek" #: ../src/applets.cc:219 msgid "Scro_ll tabs" msgstr "Przewi_janie zakładek" #: ../src/applets.cc:220 msgid "Show the tabs at the" msgstr "Pokazuj zakładki " #: ../src/applets.cc:221 ../src/applets.cc:282 ../src/applets.cc:846 msgid "Top" msgstr "na górze" #: ../src/applets.cc:222 ../src/applets.cc:273 msgid "Bottom" msgstr "na dole" #: ../src/applets.cc:223 ../src/applets.cc:276 ../src/applets.cc:348 #: ../src/applets.cc:389 msgid "Right" msgstr "po prawej" #: ../src/applets.cc:224 ../src/applets.cc:279 ../src/applets.cc:349 #: ../src/applets.cc:386 ../src/applets.cc:845 msgid "Left" msgstr "po lewej" #: ../src/applets.cc:226 msgid "Color for read only tabs" msgstr "" #: ../src/applets.cc:227 msgid "Color for modified tabs" msgstr "" #: ../src/applets.cc:228 msgid "Color for normal tabs" msgstr "" #: ../src/applets.cc:341 msgid "Text _Wrapping is on by default" msgstr "Domyślne _zawijanie tekstu" #: ../src/applets.cc:342 msgid "Show _Line numbers by default" msgstr "" #: ../src/applets.cc:343 msgid "Use the default _font" msgstr "" #: ../src/applets.cc:345 msgid "_Automatic syntax highlighting for known file types" msgstr "" #: ../src/applets.cc:347 #, fuzzy msgid "Line numbers position" msgstr "Pozycja okna" #: ../src/applets.cc:351 msgid "Font" msgstr "" #: ../src/applets.cc:353 msgid "Tab width" msgstr "" #: ../src/applets.cc:450 msgid "_Use the locale encoding" msgstr "" #: ../src/applets.cc:451 ../src/applets.cc:452 #, fuzzy msgid "Specify an encoding" msgstr "Kodowanie" #: ../src/applets.cc:456 msgid "File open encoding" msgstr "" #: ../src/applets.cc:457 msgid "File save encoding" msgstr "" #: ../src/applets.cc:502 msgid "_Backup files before saving." msgstr "" #: ../src/applets.cc:503 msgid "Backup extension" msgstr "" #: ../src/applets.cc:534 ../src/menubar.cc:362 msgid "_Autocheck Spelling" msgstr "" #. misspelled_label.set_text(_("Misspelled words color")); #: ../src/applets.cc:536 msgid "Choose the default dictionary" msgstr "" #: ../src/applets.cc:586 msgid "Printing font" msgstr "" #: ../src/applets.cc:590 msgid "_Enable advanced options" msgstr "" #: ../src/applets.cc:594 msgid "X Dot Per Inch" msgstr "" #: ../src/applets.cc:595 msgid "Y Dot Per Inch" msgstr "" #: ../src/applets.cc:652 msgid "_Enable the dictionary." msgstr "" #: ../src/applets.cc:653 msgid "Host" msgstr "" #: ../src/applets.cc:654 msgid "_List dictionaries" msgstr "" #: ../src/applets.cc:656 #, fuzzy msgid "Port" msgstr "Wiersz:" #: ../src/applets.cc:667 ../src/applets.cc:675 ../src/preferencesdialog.cc:75 msgid "Dictionary" msgstr "" #: ../src/applets.cc:676 msgid "Description" msgstr "" #: ../src/applets.cc:681 msgid "Not Available." msgstr "" #: ../src/applets.cc:738 ../src/applets.cc:741 msgid "Failed to get the available dictionaries." msgstr "" #: ../src/applets.cc:768 msgid "Please provide a dict server" msgstr "" #: ../src/applets.cc:797 msgid "_Milliseconds before multipress will accept the current value." msgstr "" #: ../src/applets.cc:827 #, fuzzy msgid "" "Number of remote addresses to save\n" "(0 for unlimited)" msgstr "" "Liczba elementów w Ostatnie\n" "(0 - nielimitowana)" #: ../src/applets.cc:830 msgid "_Insert into the active document enabled by default ?" msgstr "" #: ../src/applets.cc:847 msgid "Width" msgstr "Szerokość" #: ../src/applets.cc:848 msgid "Height" msgstr "Wysokość" #: ../src/applets.cc:850 msgid "Save all the program _settings on exit" msgstr "Zapisuj wszystkie _ustawienia przy wyjściu" #: ../src/applets.cc:851 msgid "Save the main window _attributes on exit" msgstr "Zapisuj _atrybuty okna przy wyjściu" #: ../src/applets.cc:856 msgid "Window position" msgstr "Pozycja okna" #: ../src/applets.cc:857 msgid "Window size" msgstr "Rozmiar okna" #: ../src/applets.cc:925 msgid "Network timeout (In seconds):" msgstr "" #: ../src/applets.cc:926 msgid "Proxy host:" msgstr "" #: ../src/applets.cc:927 msgid "Proxy port:" msgstr "" #: ../src/applets.cc:928 msgid "Proxy type:" msgstr "" #: ../src/applets.cc:930 ../src/menubar.cc:798 msgid "None" msgstr "" #: ../src/applets.cc:931 msgid "Get from the environment" msgstr "" #: ../src/applets.cc:932 msgid "HTTP" msgstr "" #: ../src/applets.cc:933 msgid "SOCKS4" msgstr "" #: ../src/applets.cc:934 msgid "SOCKS5" msgstr "" #: ../src/applets.cc:948 msgid "Tunnel traffic through the proxy" msgstr "" #: ../src/applets.cc:950 msgid "Use proxy authentication" msgstr "" #: ../src/applets.cc:951 msgid "Proxy username:" msgstr "" #: ../src/applets.cc:952 msgid "Proxy password:" msgstr "" #: ../src/dialogs.cc:70 msgid "Insert to document" msgstr "" #: ../src/dialogs.cc:98 ../src/toolbar.cc:52 msgid "Goto Line" msgstr "Przejdź do wiersza" #: ../src/dialogs.cc:105 msgid "Line:" msgstr "Wiersz:" #: ../src/dialogs.cc:139 msgid "Please wait..." msgstr "" #: ../src/dict.cc:60 msgid "Invalid daatabase. Please reconfigure the dictionary in use." msgstr "" #: ../src/dict.cc:64 #, fuzzy msgid "No matches were found" msgstr "Brak dopasowań!" #: ../src/dict.cc:122 ../src/dict.cc:139 #, fuzzy msgid "No databases were found." msgstr "Brak dopasowań!" #: ../src/document.cc:109 msgid " Is a directory." msgstr "" #: ../src/document.cc:133 ../src/mdi.cc:295 ../src/mdi.cc:1107 #, fuzzy, c-format msgid "Couldn't detect the encoding of %s" msgstr "Nie można otworzyć pliku tymczasowego" #: ../src/document.cc:193 #, fuzzy msgid "Couldn't detect the encoding of the text." msgstr "Nie można otworzyć pliku tymczasowego" #: ../src/document.cc:285 #, fuzzy, c-format msgid "Failed to create the autorecovery file %s" msgstr "Nie można utworzyć pliku tymczasowego" #: ../src/document.cc:1240 msgid "Define " msgstr "" #: ../src/document.cc:1255 msgid "Spelling Suggestions" msgstr "" #: ../src/document.cc:1263 #, c-format msgid "Add \"%s\" to dictionary" msgstr "" #. TODO: Use italics markup. #: ../src/document.cc:1272 msgid "no suggestions" msgstr "" #: ../src/document.cc:1283 msgid "More..." msgstr "" #: ../src/encodings.cc:347 ../src/encodings.cc:367 msgid "I wasn't able to convert the encoding." msgstr "" #: ../src/execdialog.cc:40 msgid "Command to execute" msgstr "" #: ../src/execdialog.cc:41 #, c-format msgid "" "'%s' will be substituted with a temporary filename\n" "containing the text from the document." msgstr "" #: ../src/execdialog.cc:47 #, fuzzy msgid "_Show the results in a new tab" msgstr "Pokazuj zakładki " #: ../src/export.cc:48 msgid "_Text file with no unicode control characters..." msgstr "" #: ../src/export.cc:55 ../src/import.cc:52 msgid "Text file compressed with _gzip" msgstr "" #: ../src/export.cc:62 ../src/import.cc:58 msgid "Text file compressed with _bzip2" msgstr "" #: ../src/export.cc:69 ../src/import.cc:64 msgid "Text with _shaping and bidi applied" msgstr "" #: ../src/export.cc:107 #, fuzzy msgid "Can't open temporary file." msgstr "Nie można otworzyć pliku tymczasowego" #: ../src/export.cc:113 #, fuzzy msgid "Error writing to temporary file." msgstr "Nie można otworzyć pliku tymczasowego" #: ../src/export.cc:130 msgid "Couldn't allocate memory for compression." msgstr "" #: ../src/export.cc:136 #, fuzzy msgid "Couldn't compress the text." msgstr "Nie można otworzyć pliku tymczasowego" #. _ch is allocated via g_new(); #: ../src/export.cc:185 ../src/import.cc:239 #, fuzzy msgid "Couldn't apply the bidi algorithm." msgstr "Nie można otworzyć pliku tymczasowego" #: ../src/filedialog.cc:38 ../src/filedialog.cc:52 #: ../src/openlocationdialog.cc:38 msgid "Encoding" msgstr "Kodowanie" #: ../src/filedialog.cc:144 msgid "This is a directory." msgstr "" #: ../src/import.cc:47 msgid "_HTML Character Reference..." msgstr "" #: ../src/import.cc:114 ../src/import.cc:120 ../src/import.cc:141 #: ../src/import.cc:172 #, fuzzy msgid "Can't open file." msgstr "Nie można otworzyć pliku tymczasowego" #. Error. #: ../src/import.cc:135 ../src/import.cc:157 ../src/import.cc:188 msgid "Error reading file." msgstr "" #: ../src/inputwindow.cc:33 msgid "Input Window" msgstr "" #: ../src/isocodes.cc:117 #, c-format msgid "%s (%s)" msgstr "" #: ../src/label.cc:60 #, c-format msgid "Untitled New %d" msgstr "" #: ../src/mdi.cc:83 #, c-format msgid "Failed to scan for any autorecovery files: %s" msgstr "" #: ../src/mdi.cc:88 msgid "Some unrecovered files were found. Try to recover them ?" msgstr "" #: ../src/mdi.cc:203 #, fuzzy msgid "Please select a file for editing." msgstr "Otwiera plik do edycji" #: ../src/mdi.cc:281 msgid "This is a read only document." msgstr "" #: ../src/mdi.cc:285 #, fuzzy msgid "Please select a file." msgstr "Otwiera plik do edycji" #: ../src/mdi.cc:324 msgid "This document can not be saved. It's a read only file." msgstr "" #: ../src/mdi.cc:354 #, fuzzy msgid "Please select a file for saving." msgstr "Otwiera plik do edycji" #: ../src/mdi.cc:361 ../src/mdi.cc:1124 ../src/printdialog.cc:254 #, c-format msgid "Are you sure you want to overwrite the file %s ?" msgstr "Czy na pewno nadpisać plik %s?" #: ../src/mdi.cc:452 #, fuzzy, c-format msgid "The file %s is not saved, Save first ?" msgstr "Bieżący plik %s nie został zapisany. Zapisać?" #: ../src/mdi.cc:455 #, c-format msgid "\"%s\" is not saved, Save first?" msgstr "Plik \"%s\" nie został zapisany. Zapisać?" #: ../src/mdi.cc:509 #, fuzzy, c-format msgid "The file \"%s\" doesn't exist." msgstr "Plik %s nie istnieje. Utworzyć?" #: ../src/mdi.cc:573 #, fuzzy, c-format msgid "" "This will close the current file \"%s\". Discard any changes done and reload " "the saved copy of the file. Are you sure you want to continue ?" msgstr "" "Polecenie te zamknie bieżący plik \"%s\", porzuci wszystkie zmiany wykonane " "w aktywnym buforze, następnie wczyta zapisaną kopię pliku. Czy napewno " "kontynuować?" #: ../src/mdi.cc:673 msgid "You must inter a word to search for." msgstr "" #: ../src/mdi.cc:685 ../src/mdi.cc:701 ../src/mdi.cc:748 #, fuzzy msgid "No search results found." msgstr "Brak dopasowań!" #: ../src/mdi.cc:781 #, fuzzy, c-format msgid "Replaced %d occurence." msgid_plural "Replaced %d occurences." msgstr[0] "Zmieniono %d wystąpień" msgstr[1] "Zmieniono %d wystąpień" #: ../src/mdi.cc:806 #, c-format msgid "You can use only one '%s'" msgstr "" #: ../src/mdi.cc:959 ../src/mdi.cc:962 msgid "Failed to get any definitions." msgstr "" #: ../src/menubar.cc:142 msgid "_File" msgstr "_Pliki" #: ../src/menubar.cc:150 #, fuzzy msgid "Open _Location..." msgstr "Informacja" #. Recent #: ../src/menubar.cc:154 msgid "Recent" msgstr "Ostatnie" #: ../src/menubar.cc:164 #, fuzzy msgid "Sa_ve Copy..." msgstr "Zapisz kopię..." #: ../src/menubar.cc:171 msgid "_Import" msgstr "" #: ../src/menubar.cc:179 msgid "_Export" msgstr "" #: ../src/menubar.cc:188 msgid "Page Set_up..." msgstr "" #: ../src/menubar.cc:191 #, fuzzy msgid "Print Previe_w" msgstr "Wiersz:" #: ../src/menubar.cc:240 msgid "_Edit" msgstr "_Edycja" #: ../src/menubar.cc:261 msgid "_Select All" msgstr "_Zaznacz wszystko" #: ../src/menubar.cc:265 msgid "_Insert File" msgstr "" #: ../src/menubar.cc:274 msgid "_Search" msgstr "_Szukaj" #: ../src/menubar.cc:279 msgid "Find Ne_xt" msgstr "Znajdź _następne" #: ../src/menubar.cc:292 msgid "_View" msgstr "_Widok" #: ../src/menubar.cc:294 msgid "_Statusbar" msgstr "Linia _stanu" #: ../src/menubar.cc:297 msgid "_Line Numbers" msgstr "" #: ../src/menubar.cc:300 msgid "_Wrap Text" msgstr "Zawiń _tekst" #: ../src/menubar.cc:305 #, fuzzy msgid "Toolbars" msgstr "Pasek narzędziowy" #: ../src/menubar.cc:307 #, fuzzy msgid "_Main Toolbar" msgstr "Pasek narzędziowy" #: ../src/menubar.cc:310 msgid "_Extended Toolbar" msgstr "" #: ../src/menubar.cc:327 msgid "_Encoding" msgstr "_Kodowanie" #: ../src/menubar.cc:352 #, fuzzy msgid "_Tools" msgstr "Pasek narzędziowy" #: ../src/menubar.cc:353 msgid "_Execute Command On Buffer..." msgstr "" #: ../src/menubar.cc:368 ../src/statusbar.cc:56 msgid "Input" msgstr "" #: ../src/menubar.cc:369 msgid "Default" msgstr "" #: ../src/menubar.cc:374 msgid "Keyboard emulator" msgstr "" #: ../src/menubar.cc:378 ../src/preferencesdialog.cc:77 msgid "Multipress" msgstr "" #: ../src/menubar.cc:393 msgid "_Documents" msgstr "_Dokumenty" #: ../src/menubar.cc:394 msgid "Save _All" msgstr "Zapisz _wszystko" #: ../src/menubar.cc:397 msgid "Clos_e All" msgstr "_Zamknij wszystko" #: ../src/menubar.cc:402 #, fuzzy msgid "_Opened Documents" msgstr "_Dokumenty" #: ../src/menubar.cc:403 #, fuzzy msgid "_Closed Documents" msgstr "_Dokumenty" #: ../src/menubar.cc:408 msgid "_Help" msgstr "_Pomoc" #: ../src/menubar.cc:796 #, fuzzy msgid "_Highlight" msgstr "Wysokość" #: ../src/network.cc:89 msgid "Failed to initialize the networking backend." msgstr "" #: ../src/network.cc:95 #, fuzzy msgid "Couldn't initialize network handler." msgstr "Nie można otworzyć pliku tymczasowego" #: ../src/network.cc:145 msgid "Please set the proxy authentication username." msgstr "" #: ../src/network.cc:150 msgid "Please set the proxy authentication password." msgstr "" #: ../src/network.cc:157 #, fuzzy msgid "Please set a proxy host." msgstr "Otwiera plik do edycji" #: ../src/openlocationdialog.cc:37 #, fuzzy msgid "Location" msgstr "Informacja" #: ../src/openlocationdialog.cc:54 msgid "_Insert into the active document." msgstr "" #: ../src/openlocationdialog.cc:92 msgid "You must enter a location to open." msgstr "" #: ../src/pipe.cc:53 #, c-format msgid "I can't execute %s. I can't find it in your path" msgstr "" #. TODO: Possible some commands might not return 0 #: ../src/pipe.cc:99 #, fuzzy msgid "Couldn't get the required content." msgstr "Nie można otworzyć pliku tymczasowego" #: ../src/preferencesdialog.cc:41 msgid "Preferences" msgstr "Preferencje" #: ../src/preferencesdialog.cc:55 msgid "Options for" msgstr "" #: ../src/preferencesdialog.cc:63 msgid "General" msgstr "" #: ../src/preferencesdialog.cc:64 msgid "Interface" msgstr "" #: ../src/preferencesdialog.cc:65 msgid "Tabs" msgstr "" #: ../src/preferencesdialog.cc:66 #, fuzzy msgid "Editor" msgstr "_Edycja" #: ../src/preferencesdialog.cc:67 #, fuzzy msgid "Encodings" msgstr "Kodowanie" #: ../src/preferencesdialog.cc:68 msgid "File Save" msgstr "" #: ../src/preferencesdialog.cc:70 msgid "Spell Checker" msgstr "" #: ../src/preferencesdialog.cc:73 ../src/printdialog.cc:97 msgid "Print" msgstr "" #: ../src/preferencesdialog.cc:79 #, fuzzy msgid "Remote Documents" msgstr "_Dokumenty" #: ../src/preferencesdialog.cc:80 msgid "Advanced" msgstr "" #: ../src/preferencesdialog.cc:81 msgid "Network" msgstr "" #: ../src/previewdialog.cc:48 #, fuzzy msgid "Print preview" msgstr "Wiersz:" #: ../src/previewdialog.cc:56 ../src/previewdialog.cc:176 #, c-format msgid "of %i" msgstr "" #: ../src/print.cc:207 msgid "Other" msgstr "" #: ../src/printdialog.cc:77 #, fuzzy msgid "Print to file." msgstr "Nie można otworzyć pliku tymczasowego" #: ../src/printdialog.cc:78 #, fuzzy msgid "_All" msgstr "Zapisz _wszystko" #: ../src/printdialog.cc:79 #, fuzzy msgid "_Selection" msgstr "_Zaznacz wszystko" #: ../src/printdialog.cc:80 #, fuzzy msgid "_Lines" msgstr "Wiersz:" #: ../src/printdialog.cc:81 #, fuzzy msgid "Printer:" msgstr "Wiersz:" #: ../src/printdialog.cc:89 #, fuzzy msgid "Location:" msgstr "Informacja" #: ../src/printdialog.cc:90 msgid "Number of copies" msgstr "" #: ../src/printdialog.cc:91 msgid "Print range" msgstr "" #: ../src/printdialog.cc:92 msgid "From:" msgstr "" #: ../src/printdialog.cc:93 #, fuzzy msgid "To:" msgstr "na górze" #: ../src/printdialog.cc:94 #, fuzzy msgid "Paper size:" msgstr "Wstawia" #: ../src/printdialog.cc:95 msgid "Page orientation:" msgstr "" #: ../src/printdialog.cc:113 #, fuzzy msgid "Printer name" msgstr "Wiersz:" #: ../src/printdialog.cc:114 #, fuzzy msgid "Status" msgstr "Linia _stanu" #: ../src/printdialog.cc:132 ../src/printdialog.cc:190 #, fuzzy msgid "Custom" msgstr "Wycina" #: ../src/printdialog.cc:136 msgid "Create a PDF document" msgstr "" #: ../src/printdialog.cc:137 msgid "Create a Postscript document" msgstr "" #: ../src/printdialog.cc:183 msgid "Portrait" msgstr "" #: ../src/printdialog.cc:184 msgid "Landscape" msgstr "" #: ../src/printdialog.cc:196 #, fuzzy msgid "Width:" msgstr "Szerokość" #: ../src/printdialog.cc:196 #, fuzzy msgid "Height:" msgstr "Wysokość" #: ../src/printdialog.cc:246 #, fuzzy msgid "Please choose a file to print to." msgstr "Otwiera plik do edycji" #: ../src/printdialog.cc:250 #, fuzzy msgid "Please choose a file not a directory." msgstr "Otwiera plik do edycji" #: ../src/printdialog.cc:341 #, fuzzy msgid "Please select a file to print to." msgstr "Otwiera plik do edycji" #: ../src/printdialog.cc:421 msgid "I couldn't get the selected printer." msgstr "" #: ../src/replacedialog.cc:32 ../src/searchdialog.cc:32 msgid "Find" msgstr "Znajdź" #: ../src/replacedialog.cc:33 ../src/searchdialog.cc:33 #, fuzzy msgid "Search for:" msgstr "_Szukaj" #: ../src/replacedialog.cc:34 msgid "Replace with:" msgstr "Zmień na:" #: ../src/replacedialog.cc:35 ../src/searchdialog.cc:34 msgid "Match entire word only" msgstr "" #: ../src/replacedialog.cc:36 ../src/searchdialog.cc:35 #, fuzzy msgid "Match case" msgstr "_Rozróżnianie wielkości liter" #. regex(_("Regular expression")), #: ../src/replacedialog.cc:37 ../src/searchdialog.cc:37 msgid "Wrap search" msgstr "" #: ../src/replacedialog.cc:38 ../src/searchdialog.cc:38 #, fuzzy msgid "Search from the cursor position" msgstr "Wyszukiwanie od położenia _kursora" #: ../src/replacedialog.cc:39 ../src/searchdialog.cc:39 msgid "Search backwards" msgstr "" #: ../src/replacedialog.cc:40 ../src/searchdialog.cc:40 #, fuzzy msgid "Search from the beginnig of the document" msgstr "Wyszukiwanie od początku _dokumentu" #: ../src/replacedialog.cc:42 msgid "_Replace" msgstr "_Zamień" #. find_replace(Gtk::Stock::FIND_AND_REPLACE), #: ../src/replacedialog.cc:44 #, fuzzy msgid "Replace _All" msgstr "Zmień _wszystkie" #: ../src/spell.cc:53 msgid "Failed to initialize the spell checker" msgstr "" #: ../src/spell.cc:66 #, fuzzy msgid "Failed to set the requested dictionary." msgstr "Nie można otworzyć pliku tymczasowego" #: ../src/spelldialog.cc:37 msgid "_Ignore" msgstr "" #: ../src/spelldialog.cc:38 #, fuzzy msgid "Ignore _All" msgstr "Zapisz _wszystko" #: ../src/spelldialog.cc:39 msgid "C_hange" msgstr "" #: ../src/spelldialog.cc:42 msgid "_Add to user dictionary" msgstr "" #: ../src/spelldialog.cc:43 msgid "Misspelled:" msgstr "" #: ../src/spelldialog.cc:44 msgid "Change to:" msgstr "" #: ../src/spelldialog.cc:48 msgid "Check Spelling" msgstr "" #: ../src/spelldialog.cc:92 msgid "Suggestions" msgstr "" #: ../src/spelldialog.cc:128 msgid "No misspelled words." msgstr "" #: ../src/statusbar.cc:69 msgid "OVR" msgstr "" #: ../src/statusbar.cc:69 #, fuzzy msgid "INS" msgstr "ISO" #: ../src/statusbar.cc:74 #, fuzzy, c-format msgid " L: %d, C: %d" msgstr "W: %d, K: %d" #: ../src/toolbar.cc:53 #, fuzzy msgid "Search" msgstr "_Szukaj" #: ../src/toolbar.cc:56 msgid "Spelling Dictionary" msgstr "" #: ../src/toolbar.cc:102 msgid "Create a new file" msgstr "Tworzy nowy plik" #: ../src/toolbar.cc:103 msgid "Open a file for editing" msgstr "Otwiera plik do edycji" #: ../src/toolbar.cc:104 msgid "Save the existing file" msgstr "Zapisuje istniejący plik" #: ../src/toolbar.cc:106 msgid "Print this document" msgstr "" #: ../src/toolbar.cc:108 msgid "Close the active file" msgstr "Zamyka aktywny plik" #: ../src/toolbar.cc:109 msgid "Undo" msgstr "Cofa" #: ../src/toolbar.cc:110 msgid "Redo" msgstr "Przywraca" #: ../src/toolbar.cc:111 msgid "Cut" msgstr "Wycina" #: ../src/toolbar.cc:112 msgid "Copy" msgstr "Kopiuje" #: ../src/toolbar.cc:113 msgid "Paste" msgstr "Wstawia" #: ../src/toolbar.cc:114 msgid "Delete current selection" msgstr "Kasuje zaznaczenie" #: ../src/toolbar.cc:116 msgid "Toggle full screen mode" msgstr "" #: ../src/utils.cc:189 msgid "I can't backup the old file.\n" msgstr "" #: ../src/utils.cc:247 #, c-format msgid "%s is a directory." msgstr "" #: ../src/window.cc:141 msgid " The keyboard emulator will not work." msgstr "" #: ../src/window.cc:147 msgid " Multipress will not work." msgstr "" #: ../src/window.cc:153 msgid "" "A lot of the configuration options have been changed in this version.\n" "Please adjust the configuration first." msgstr "" #, fuzzy #~ msgid "Ready" #~ msgstr "Przywraca" #, fuzzy #~ msgid "Printing" #~ msgstr "Wiersz:" #, fuzzy #~ msgid "Remote" #~ msgstr "Przywraca" #, fuzzy #~ msgid "Are you sure you want to overwrite the file " #~ msgstr "Czy na pewno nadpisać plik %s?" #, fuzzy #~ msgid ", C: " #~ msgstr "W: 1, K: 1" #, fuzzy #~ msgid "_PDF file..." #~ msgstr "_Znajdź" #~ msgid "The file %s doesn't exist, Create it?" #~ msgstr "Plik %s nie istnieje. Utworzyć?" #~ msgid "Couldn't create file %s, %s" #~ msgstr "Nie można utworzyć pliku %s, %s" #~ msgid "Couldn't open file %s, %s" #~ msgstr "Nie można otworzyć pliku %s, %s" #, fuzzy #~ msgid "" #~ "An error has occured while reading file %s\n" #~ "%s" #~ msgstr "Wystąpił błąd podczas odczytywania pliku %s" #, fuzzy #~ msgid "" #~ "An error has occured while writing to file %s\n" #~ "%s" #~ msgstr "Wystąpił błąd podczas zapisu pliku %s" #~ msgid "The requested file couldn't be opened for saving" #~ msgstr "Nie można otworzyć żądanego pliku do zapisu" #~ msgid "An error has occured while writing to file %s" #~ msgstr "Wystąpił błąd podczas zapisu pliku %s" #~ msgid "That's not a valid UTF-8 file" #~ msgstr "To nie jest prawidłowy plik UTF-8" #~ msgid "ERROR" #~ msgstr "BŁĄD" #, fuzzy #~ msgid "Save" #~ msgstr "_Zapisz" #, fuzzy #~ msgid "Text direction" #~ msgstr "Podstawowy kierunek tekstu" #~ msgid "_Left to right" #~ msgstr "Z _lewej do prawej" #~ msgid "_Right to left" #~ msgstr "Z _prawej do lewej" #~ msgid "_New" #~ msgstr "_Nowy" #, fuzzy #~ msgid "_Open..." #~ msgstr "_Otwórz" #~ msgid "_Save" #~ msgstr "_Zapisz" #, fuzzy #~ msgid "Save _As..." #~ msgstr "Zapisz jako..." #~ msgid "_Revert" #~ msgstr "_Przywróc" #~ msgid "_Close" #~ msgstr "_Zamknij" #~ msgid "_Quit" #~ msgstr "_Wyjście" #~ msgid "_Undo" #~ msgstr "_Cofnij" #~ msgid "_Redo" #~ msgstr "_Przywróć" #~ msgid "Cu_t" #~ msgstr "Wy_tnij" #~ msgid "_Copy" #~ msgstr "_Skopiuj" #~ msgid "_Paste" #~ msgstr "_Wstaw" #~ msgid "_Delete" #~ msgstr "S_kasuj" #, fuzzy #~ msgid "Pr_eferences..." #~ msgstr "Preferencje" #, fuzzy #~ msgid "_Replace..." #~ msgstr "_Zamień" #, fuzzy #~ msgid "Goto _Line..." #~ msgstr "Przejdź do _wiersza" #, fuzzy #~ msgid "Latex" #~ msgstr "Wstawia" #~ msgid "Abou_t" #~ msgstr "O _programie" #~ msgid "Developers" #~ msgstr "Twórcy" #, fuzzy #~ msgid "License" #~ msgstr "Wiersz:" #~ msgid "Error initializing Arabic keyboard" #~ msgstr "Błąd przy inicjalizacji klawiatury Arabskiej" #~ msgid "" #~ "An error has occured while trying to initialize your Arabic keyboard, " #~ "Katoob'll try to use the built in Arabic keyboard emulator." #~ msgstr "" #~ "Wystąpił błąd podczas próby inicjalizowania klawiatury Arabskiej,\n" #~ "Program będzie używać wbudowanego emulatora klawiatury." #~ msgid "_Show this warning every time this problem occures" #~ msgstr "_Pokazuj te ostrzeżenie przy każdym wystąpieniu tego problemu" #~ msgid "_Goto" #~ msgstr "_Przejdź" #~ msgid "Confirm Revert" #~ msgstr "Potwierdź przywrócenie" #, fuzzy #~ msgid "Please select the dictionaries directory" #~ msgstr "Wybierz miejsce zapisu pliku." #, fuzzy #~ msgid "Default text direction:" #~ msgstr "Podstawowy kierunek tekstu" #, fuzzy #~ msgid "_Browse" #~ msgstr "_Zamknij" #, fuzzy #~ msgid "Select Font" #~ msgstr "_Zaznacz wszystko" #, fuzzy #~ msgid "Can't get selection" #~ msgstr "Nie można osiągnąć pliku z ostatnio otwieranymi dokumentami" #~ msgid "Can't create temp file" #~ msgstr "Nie można utworzyć pliku tymczasowego" #, fuzzy #~ msgid "Copies" #~ msgstr "Kopiuje" #, fuzzy #~ msgid "File" #~ msgstr "_Pliki" #, fuzzy #~ msgid "Please select an application." #~ msgstr "Otwiera plik do edycji" #~ msgid "Can't open the recent documents file" #~ msgstr "Nie można otworzyć pliku z ostatnio otwieranymi dokumentami" #~ msgid "Save As..." #~ msgstr "Zapisz jako..." #~ msgid "Save A Copy..." #~ msgstr "Zapisz kopię..." #, fuzzy #~ msgid " Couldn 't create a backup, Continue ?" #~ msgstr "Nie można utworzyć pliku %s, %s" #, fuzzy #~ msgid "The requested file couldn' t be opened for saving " #~ msgstr "Nie można otworzyć żądanego pliku do zapisu" #~ msgid "Replace" #~ msgstr "Zmień" #~ msgid "Find what:" #~ msgstr "Znajdź: " #, fuzzy #~ msgid "An error has occured" #~ msgstr "Wystąpił błąd podczas odczytywania pliku %s" #~ msgid "Change the typing language" #~ msgstr "Zmienia język wpisywania" #, fuzzy #~ msgid "Can't write to temp file" #~ msgstr "Nie można utworzyć pliku tymczasowego" #, fuzzy #~ msgid "An error has occured while trying to execute the printing commands!" #~ msgstr "Wystąpił błąd podczas zapisu pliku %s" #, fuzzy #~ msgid "An error has occured while printing." #~ msgstr "Wystąpił błąd podczas zapisu pliku %s" #, fuzzy #~ msgid "Couldn't check %s version." #~ msgstr "Nie można utworzyć pliku %s, %s" #~ msgid "Save _As" #~ msgstr "Zapisz _jako" #~ msgid "Sa_ve Copy" #~ msgstr "Zapisz _kopię" #~ msgid "_Preferences" #~ msgstr "_Preferencje" #~ msgid "_Show toolbar" #~ msgstr "_Pokazuj pasek narzędziowy" #~ msgid "Can't remove old configuration file" #~ msgstr "Nie można usunąć starego pliku konfiguracyjnego" #~ msgid "Can't create configuration directory" #~ msgstr "Nie można utworzyć katalogu do przechowywania konfiguracji" #~ msgid "Can't create configuration file" #~ msgstr "Nie można utworzyć pliku konfiguracyjnego" #~ msgid "Can't write configuration file" #~ msgstr "Nie można zapisać pliku konfiguracyjnego" #~ msgid "Arabic" #~ msgstr "Arabski" #~ msgid "English" #~ msgstr "Angielski" #~ msgid "Couldn't get recent documents file" #~ msgstr "Nie można otworzyć pliku z ostatnio otwartymi dokumentami" #~ msgid "Left to right direction" #~ msgstr "Kierunek z lewej do prawej" #~ msgid "Right to left direction" #~ msgstr "Kierunek z prawej do lewej" #~ msgid "_Right To Left" #~ msgstr "Z _prawej do lewej" #~ msgid "_Left To Right" #~ msgstr "Z _lewej do prawej" #~ msgid "This is an unknown encoded file" #~ msgstr "Kodowanie tego pliku jest nieznane" #~ msgid "Can't create recent documents file" #~ msgstr "Nie można utworzyć pliku z ostatnio otwieranymi dokumentami" #~ msgid "No matches" #~ msgstr "Brak dopasowań" #~ msgid "Replace done" #~ msgstr "Koniec zmian" #~ msgid "ISO_8859-6" #~ msgstr "ISO_8859-6" #~ msgid "WINDOWS-1256" #~ msgstr "WINDOWS-1256" #~ msgid "WINDOWS" #~ msgstr "WINDOWS" #~ msgid "UTF-8" #~ msgstr "UTF-8" #~ msgid "Plain UTF-8 text" #~ msgstr "Zwykły tekst UTF-8" #~ msgid "HTML-Style format" #~ msgstr "Format Stylu HTML" #~ msgid "_HTML-Style format" #~ msgstr "Format stylu HTML" katoob-0.5.9.1/po/sv.po0000644000175000017500000007215310746617675011525 00000000000000# Swedish messages for Katoob # Copyright (C) 2001, 2002 Free Software Foundation, Inc. # Mohammed Sameer , 2002. # msgid "" msgstr "" "Project-Id-Version: katoob 0.3.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2007-12-18 12:03+0200\n" "PO-Revision-Date: 2002-09-14 18:30+0200\n" "Last-Translator: Jens Askengren \n" "Language-Team: Swedish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: ../katoob.desktop.in.h:1 ../src/aboutdialog.cc:66 #, fuzzy msgid "Katoob" msgstr "Om Katoob" #: ../katoob.desktop.in.h:2 msgid "Multilingual Unicode Text Editor" msgstr "" #: ../src/aboutdialog.cc:51 msgid "" "Katoob 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." msgstr "" #: ../src/aboutdialog.cc:56 msgid "" "Katoob 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." msgstr "" #: ../src/aboutdialog.cc:61 msgid "" "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" msgstr "" #: ../src/aboutdialog.cc:71 msgid "Copyright © 2006, 2007 Mohammed Sameer." msgstr "" #: ../src/aboutdialog.cc:73 ../src/aboutdialog.cc:76 msgid "Mohammed Sameer" msgstr "" #: ../src/aboutdialog.cc:77 msgid "Mostafa Hussein" msgstr "" #: ../src/aboutdialog.cc:80 msgid "A lightweight multilingual unicode and bidi aware text editor" msgstr "" #: ../src/aboutdialog.cc:81 msgid "translator-credits" msgstr "" #: ../src/applets.cc:55 msgid "_Enable undo, redo\t" msgstr "_Aktivera kommandona Ångra och Gör om" #: ../src/applets.cc:57 msgid "Keep a history of recently closed documents" msgstr "" #: ../src/applets.cc:59 msgid "" "Undo history size\n" "(0 for unlimited)" msgstr "Antal operationer som kan ångras (0 för obegränsat)" #: ../src/applets.cc:60 #, fuzzy msgid "" "Executed commands history size\n" "(0 for unlimited)" msgstr "Antal operationer som kan ångras (0 för obegränsat)" #: ../src/applets.cc:61 #, fuzzy msgid "" "Closed documents history size\n" "(0 for unlimited)" msgstr "Antal operationer som kan ångras (0 för obegränsat)" #: ../src/applets.cc:122 #, fuzzy msgid "Show the extra _buttons" msgstr "Visa dokumentflikar vid" #: ../src/applets.cc:123 #, fuzzy msgid "Show the _Main Toolbar" msgstr "Visa _verktygsraden" #: ../src/applets.cc:124 #, fuzzy msgid "Show the _Extended Toolbar" msgstr "Visa _verktygsraden" #: ../src/applets.cc:125 #, fuzzy msgid "Show the _Statusbar" msgstr "Visa _statusraden" #: ../src/applets.cc:126 msgid "Enable re_cent menu" msgstr "Visa menyn med senast använda filer" #: ../src/applets.cc:127 msgid "Show the _close button on each tab label" msgstr "Dokumentflikar har stäng-knapp" #: ../src/applets.cc:128 msgid "" "No. of recent entries\n" "(0 for unlimited)" msgstr "" "Antal filer i menyn med senast använda dokument (ange 0 för obegränsat)" #: ../src/applets.cc:129 msgid "Show the toolbar as" msgstr "Visa verktygsraden som" #: ../src/applets.cc:130 ../src/applets.cc:159 ../src/menubar.cc:318 #, fuzzy msgid "Text only" msgstr "Text" #. TODO: Disable these when the main toolbar is not shown. #: ../src/applets.cc:131 ../src/applets.cc:162 ../src/menubar.cc:315 msgid "Icons only" msgstr "Enbart Ikon" #: ../src/applets.cc:132 ../src/applets.cc:168 ../src/applets.cc:350 #: ../src/applets.cc:383 ../src/applets.cc:392 ../src/menubar.cc:321 msgid "Both" msgstr "Text under ikon" #: ../src/applets.cc:133 ../src/applets.cc:165 ../src/menubar.cc:324 msgid "Text beside icons" msgstr "Text bredvid ikon" #: ../src/applets.cc:217 msgid "_Show tabs" msgstr "Visa _dokumentflikar" #: ../src/applets.cc:218 msgid "_Enable tabs menu" msgstr "Använd flikmeny" #: ../src/applets.cc:219 #, fuzzy msgid "Scro_ll tabs" msgstr "Rulla flikar" #: ../src/applets.cc:220 #, fuzzy msgid "Show the tabs at the" msgstr "Visa dokumentflikar vid" #: ../src/applets.cc:221 ../src/applets.cc:282 ../src/applets.cc:846 msgid "Top" msgstr "Topp" #: ../src/applets.cc:222 ../src/applets.cc:273 msgid "Bottom" msgstr "Botten" #: ../src/applets.cc:223 ../src/applets.cc:276 ../src/applets.cc:348 #: ../src/applets.cc:389 msgid "Right" msgstr "Höger" #: ../src/applets.cc:224 ../src/applets.cc:279 ../src/applets.cc:349 #: ../src/applets.cc:386 ../src/applets.cc:845 msgid "Left" msgstr "Vänster" #: ../src/applets.cc:226 msgid "Color for read only tabs" msgstr "" #: ../src/applets.cc:227 msgid "Color for modified tabs" msgstr "" #: ../src/applets.cc:228 msgid "Color for normal tabs" msgstr "" #: ../src/applets.cc:341 msgid "Text _Wrapping is on by default" msgstr "Använd automatisk _radbrytning som standard" #: ../src/applets.cc:342 msgid "Show _Line numbers by default" msgstr "" #: ../src/applets.cc:343 msgid "Use the default _font" msgstr "" #: ../src/applets.cc:345 msgid "_Automatic syntax highlighting for known file types" msgstr "" #: ../src/applets.cc:347 #, fuzzy msgid "Line numbers position" msgstr "Fönsterposition" #: ../src/applets.cc:351 msgid "Font" msgstr "" #: ../src/applets.cc:353 msgid "Tab width" msgstr "" #: ../src/applets.cc:450 msgid "_Use the locale encoding" msgstr "" #: ../src/applets.cc:451 ../src/applets.cc:452 #, fuzzy msgid "Specify an encoding" msgstr "Teckenkodning" #: ../src/applets.cc:456 msgid "File open encoding" msgstr "" #: ../src/applets.cc:457 msgid "File save encoding" msgstr "" #: ../src/applets.cc:502 msgid "_Backup files before saving." msgstr "" #: ../src/applets.cc:503 msgid "Backup extension" msgstr "" #: ../src/applets.cc:534 ../src/menubar.cc:362 msgid "_Autocheck Spelling" msgstr "" #. misspelled_label.set_text(_("Misspelled words color")); #: ../src/applets.cc:536 msgid "Choose the default dictionary" msgstr "" #: ../src/applets.cc:586 msgid "Printing font" msgstr "" #: ../src/applets.cc:590 msgid "_Enable advanced options" msgstr "" #: ../src/applets.cc:594 msgid "X Dot Per Inch" msgstr "" #: ../src/applets.cc:595 msgid "Y Dot Per Inch" msgstr "" #: ../src/applets.cc:652 msgid "_Enable the dictionary." msgstr "" #: ../src/applets.cc:653 msgid "Host" msgstr "" #: ../src/applets.cc:654 msgid "_List dictionaries" msgstr "" #: ../src/applets.cc:656 #, fuzzy msgid "Port" msgstr "Rad: " #: ../src/applets.cc:667 ../src/applets.cc:675 ../src/preferencesdialog.cc:75 msgid "Dictionary" msgstr "" #: ../src/applets.cc:676 msgid "Description" msgstr "" #: ../src/applets.cc:681 msgid "Not Available." msgstr "" #: ../src/applets.cc:738 ../src/applets.cc:741 msgid "Failed to get the available dictionaries." msgstr "" #: ../src/applets.cc:768 msgid "Please provide a dict server" msgstr "" #: ../src/applets.cc:797 msgid "_Milliseconds before multipress will accept the current value." msgstr "" #: ../src/applets.cc:827 #, fuzzy msgid "" "Number of remote addresses to save\n" "(0 for unlimited)" msgstr "" "Antal filer i menyn med senast använda dokument (ange 0 för obegränsat)" #: ../src/applets.cc:830 msgid "_Insert into the active document enabled by default ?" msgstr "" #: ../src/applets.cc:847 msgid "Width" msgstr "Vidd" #: ../src/applets.cc:848 msgid "Height" msgstr "Höjd" #: ../src/applets.cc:850 msgid "Save all the program _settings on exit" msgstr "Spara inställningar vid avslut" #: ../src/applets.cc:851 msgid "Save the main window _attributes on exit" msgstr "Kom ihåg fönstrets storlek och position" #: ../src/applets.cc:856 msgid "Window position" msgstr "Fönsterposition" #: ../src/applets.cc:857 msgid "Window size" msgstr "Fönsterstorlek" #: ../src/applets.cc:925 msgid "Network timeout (In seconds):" msgstr "" #: ../src/applets.cc:926 msgid "Proxy host:" msgstr "" #: ../src/applets.cc:927 msgid "Proxy port:" msgstr "" #: ../src/applets.cc:928 msgid "Proxy type:" msgstr "" #: ../src/applets.cc:930 ../src/menubar.cc:798 msgid "None" msgstr "" #: ../src/applets.cc:931 msgid "Get from the environment" msgstr "" #: ../src/applets.cc:932 msgid "HTTP" msgstr "" #: ../src/applets.cc:933 msgid "SOCKS4" msgstr "" #: ../src/applets.cc:934 msgid "SOCKS5" msgstr "" #: ../src/applets.cc:948 msgid "Tunnel traffic through the proxy" msgstr "" #: ../src/applets.cc:950 msgid "Use proxy authentication" msgstr "" #: ../src/applets.cc:951 msgid "Proxy username:" msgstr "" #: ../src/applets.cc:952 msgid "Proxy password:" msgstr "" #: ../src/dialogs.cc:70 msgid "Insert to document" msgstr "" #: ../src/dialogs.cc:98 ../src/toolbar.cc:52 msgid "Goto Line" msgstr "Gå till rad" #: ../src/dialogs.cc:105 msgid "Line:" msgstr "Rad: " #: ../src/dialogs.cc:139 msgid "Please wait..." msgstr "" #: ../src/dict.cc:60 msgid "Invalid daatabase. Please reconfigure the dictionary in use." msgstr "" #: ../src/dict.cc:64 #, fuzzy msgid "No matches were found" msgstr "Texten hittades inte" #: ../src/dict.cc:122 ../src/dict.cc:139 #, fuzzy msgid "No databases were found." msgstr "Texten hittades inte" #: ../src/document.cc:109 msgid " Is a directory." msgstr "" #: ../src/document.cc:133 ../src/mdi.cc:295 ../src/mdi.cc:1107 #, fuzzy, c-format msgid "Couldn't detect the encoding of %s" msgstr "Kunde inte öppna temporärfil" #: ../src/document.cc:193 #, fuzzy msgid "Couldn't detect the encoding of the text." msgstr "Kunde inte öppna temporärfil" #: ../src/document.cc:285 #, fuzzy, c-format msgid "Failed to create the autorecovery file %s" msgstr "Kunde inte skapa temporärfil" #: ../src/document.cc:1240 msgid "Define " msgstr "" #: ../src/document.cc:1255 msgid "Spelling Suggestions" msgstr "" #: ../src/document.cc:1263 #, c-format msgid "Add \"%s\" to dictionary" msgstr "" #. TODO: Use italics markup. #: ../src/document.cc:1272 msgid "no suggestions" msgstr "" #: ../src/document.cc:1283 msgid "More..." msgstr "" #: ../src/encodings.cc:347 ../src/encodings.cc:367 msgid "I wasn't able to convert the encoding." msgstr "" #: ../src/execdialog.cc:40 msgid "Command to execute" msgstr "" #: ../src/execdialog.cc:41 #, c-format msgid "" "'%s' will be substituted with a temporary filename\n" "containing the text from the document." msgstr "" #: ../src/execdialog.cc:47 #, fuzzy msgid "_Show the results in a new tab" msgstr "Visa dokumentflikar vid" #: ../src/export.cc:48 msgid "_Text file with no unicode control characters..." msgstr "" #: ../src/export.cc:55 ../src/import.cc:52 msgid "Text file compressed with _gzip" msgstr "" #: ../src/export.cc:62 ../src/import.cc:58 msgid "Text file compressed with _bzip2" msgstr "" #: ../src/export.cc:69 ../src/import.cc:64 msgid "Text with _shaping and bidi applied" msgstr "" #: ../src/export.cc:107 #, fuzzy msgid "Can't open temporary file." msgstr "Kunde inte öppna temporärfil" #: ../src/export.cc:113 #, fuzzy msgid "Error writing to temporary file." msgstr "Kunde inte öppna temporärfil" #: ../src/export.cc:130 msgid "Couldn't allocate memory for compression." msgstr "" #: ../src/export.cc:136 #, fuzzy msgid "Couldn't compress the text." msgstr "Kunde inte öppna temporärfil" #. _ch is allocated via g_new(); #: ../src/export.cc:185 ../src/import.cc:239 #, fuzzy msgid "Couldn't apply the bidi algorithm." msgstr "Kunde inte öppna temporärfil" #: ../src/filedialog.cc:38 ../src/filedialog.cc:52 #: ../src/openlocationdialog.cc:38 msgid "Encoding" msgstr "Teckenkodning" #: ../src/filedialog.cc:144 msgid "This is a directory." msgstr "" #: ../src/import.cc:47 msgid "_HTML Character Reference..." msgstr "" #: ../src/import.cc:114 ../src/import.cc:120 ../src/import.cc:141 #: ../src/import.cc:172 #, fuzzy msgid "Can't open file." msgstr "Kunde inte öppna temporärfil" #. Error. #: ../src/import.cc:135 ../src/import.cc:157 ../src/import.cc:188 msgid "Error reading file." msgstr "" #: ../src/inputwindow.cc:33 msgid "Input Window" msgstr "" #: ../src/isocodes.cc:117 #, c-format msgid "%s (%s)" msgstr "" #: ../src/label.cc:60 #, c-format msgid "Untitled New %d" msgstr "" #: ../src/mdi.cc:83 #, c-format msgid "Failed to scan for any autorecovery files: %s" msgstr "" #: ../src/mdi.cc:88 msgid "Some unrecovered files were found. Try to recover them ?" msgstr "" #: ../src/mdi.cc:203 #, fuzzy msgid "Please select a file for editing." msgstr "Öppna en fil" #: ../src/mdi.cc:281 msgid "This is a read only document." msgstr "" #: ../src/mdi.cc:285 #, fuzzy msgid "Please select a file." msgstr "Öppna en fil" #: ../src/mdi.cc:324 msgid "This document can not be saved. It's a read only file." msgstr "" #: ../src/mdi.cc:354 #, fuzzy msgid "Please select a file for saving." msgstr "Öppna en fil" #: ../src/mdi.cc:361 ../src/mdi.cc:1124 ../src/printdialog.cc:254 #, c-format msgid "Are you sure you want to overwrite the file %s ?" msgstr "" #: ../src/mdi.cc:452 #, fuzzy, c-format msgid "The file %s is not saved, Save first ?" msgstr "Filen %s existerar inte. Skall den skapas?" #: ../src/mdi.cc:455 #, fuzzy, c-format msgid "\"%s\" is not saved, Save first?" msgstr "Filen %s existerar inte. Skall den skapas?" #: ../src/mdi.cc:509 #, fuzzy, c-format msgid "The file \"%s\" doesn't exist." msgstr "Filen %s existerar inte. Skall den skapas?" #: ../src/mdi.cc:573 #, c-format msgid "" "This will close the current file \"%s\". Discard any changes done and reload " "the saved copy of the file. Are you sure you want to continue ?" msgstr "" #: ../src/mdi.cc:673 msgid "You must inter a word to search for." msgstr "" #: ../src/mdi.cc:685 ../src/mdi.cc:701 ../src/mdi.cc:748 #, fuzzy msgid "No search results found." msgstr "Texten hittades inte" #: ../src/mdi.cc:781 #, fuzzy, c-format msgid "Replaced %d occurence." msgid_plural "Replaced %d occurences." msgstr[0] "Ersatte %d förekomster" msgstr[1] "Ersatte %d förekomster" #: ../src/mdi.cc:806 #, c-format msgid "You can use only one '%s'" msgstr "" #: ../src/mdi.cc:959 ../src/mdi.cc:962 msgid "Failed to get any definitions." msgstr "" #: ../src/menubar.cc:142 msgid "_File" msgstr "_Arkiv" #: ../src/menubar.cc:150 #, fuzzy msgid "Open _Location..." msgstr "Information" #. Recent #: ../src/menubar.cc:154 msgid "Recent" msgstr "Senaste filer" #: ../src/menubar.cc:164 #, fuzzy msgid "Sa_ve Copy..." msgstr "Spara kopia" #: ../src/menubar.cc:171 msgid "_Import" msgstr "" #: ../src/menubar.cc:179 msgid "_Export" msgstr "" #: ../src/menubar.cc:188 msgid "Page Set_up..." msgstr "" #: ../src/menubar.cc:191 #, fuzzy msgid "Print Previe_w" msgstr "Rad: " #: ../src/menubar.cc:240 msgid "_Edit" msgstr "_Redigera" #: ../src/menubar.cc:261 msgid "_Select All" msgstr "Markera _allt" #: ../src/menubar.cc:265 msgid "_Insert File" msgstr "" #: ../src/menubar.cc:274 msgid "_Search" msgstr "_Sök" #: ../src/menubar.cc:279 msgid "Find Ne_xt" msgstr "Sök _nästa" #: ../src/menubar.cc:292 msgid "_View" msgstr "_Visa" #: ../src/menubar.cc:294 msgid "_Statusbar" msgstr "_Statusrad" #: ../src/menubar.cc:297 msgid "_Line Numbers" msgstr "" #: ../src/menubar.cc:300 msgid "_Wrap Text" msgstr "_Radbryt text" #: ../src/menubar.cc:305 #, fuzzy msgid "Toolbars" msgstr "Anpassa verktygsrad" #: ../src/menubar.cc:307 #, fuzzy msgid "_Main Toolbar" msgstr "Anpassa verktygsrad" #: ../src/menubar.cc:310 msgid "_Extended Toolbar" msgstr "" #: ../src/menubar.cc:327 msgid "_Encoding" msgstr "_Teckenkodning" #: ../src/menubar.cc:352 #, fuzzy msgid "_Tools" msgstr "Anpassa verktygsrad" #: ../src/menubar.cc:353 msgid "_Execute Command On Buffer..." msgstr "" #: ../src/menubar.cc:368 ../src/statusbar.cc:56 msgid "Input" msgstr "" #: ../src/menubar.cc:369 msgid "Default" msgstr "" #: ../src/menubar.cc:374 msgid "Keyboard emulator" msgstr "" #: ../src/menubar.cc:378 ../src/preferencesdialog.cc:77 msgid "Multipress" msgstr "" #: ../src/menubar.cc:393 msgid "_Documents" msgstr "_Dokument" #: ../src/menubar.cc:394 msgid "Save _All" msgstr "Spa_ra alla" #: ../src/menubar.cc:397 msgid "Clos_e All" msgstr "St_äng alla" #: ../src/menubar.cc:402 #, fuzzy msgid "_Opened Documents" msgstr "_Dokument" #: ../src/menubar.cc:403 #, fuzzy msgid "_Closed Documents" msgstr "_Dokument" #: ../src/menubar.cc:408 msgid "_Help" msgstr "_Hjälp" #: ../src/menubar.cc:796 #, fuzzy msgid "_Highlight" msgstr "Höjd" #: ../src/network.cc:89 msgid "Failed to initialize the networking backend." msgstr "" #: ../src/network.cc:95 #, fuzzy msgid "Couldn't initialize network handler." msgstr "Kunde inte öppna temporärfil" #: ../src/network.cc:145 msgid "Please set the proxy authentication username." msgstr "" #: ../src/network.cc:150 msgid "Please set the proxy authentication password." msgstr "" #: ../src/network.cc:157 #, fuzzy msgid "Please set a proxy host." msgstr "Öppna en fil" #: ../src/openlocationdialog.cc:37 #, fuzzy msgid "Location" msgstr "Information" #: ../src/openlocationdialog.cc:54 msgid "_Insert into the active document." msgstr "" #: ../src/openlocationdialog.cc:92 msgid "You must enter a location to open." msgstr "" #: ../src/pipe.cc:53 #, c-format msgid "I can't execute %s. I can't find it in your path" msgstr "" #. TODO: Possible some commands might not return 0 #: ../src/pipe.cc:99 #, fuzzy msgid "Couldn't get the required content." msgstr "Kunde inte öppna temporärfil" #: ../src/preferencesdialog.cc:41 msgid "Preferences" msgstr "Inställningar" #: ../src/preferencesdialog.cc:55 msgid "Options for" msgstr "" #: ../src/preferencesdialog.cc:63 msgid "General" msgstr "" #: ../src/preferencesdialog.cc:64 msgid "Interface" msgstr "" #: ../src/preferencesdialog.cc:65 msgid "Tabs" msgstr "" #: ../src/preferencesdialog.cc:66 #, fuzzy msgid "Editor" msgstr "_Redigera" #: ../src/preferencesdialog.cc:67 #, fuzzy msgid "Encodings" msgstr "Teckenkodning" #: ../src/preferencesdialog.cc:68 msgid "File Save" msgstr "" #: ../src/preferencesdialog.cc:70 msgid "Spell Checker" msgstr "" #: ../src/preferencesdialog.cc:73 ../src/printdialog.cc:97 msgid "Print" msgstr "" #: ../src/preferencesdialog.cc:79 #, fuzzy msgid "Remote Documents" msgstr "_Dokument" #: ../src/preferencesdialog.cc:80 msgid "Advanced" msgstr "" #: ../src/preferencesdialog.cc:81 msgid "Network" msgstr "" #: ../src/previewdialog.cc:48 #, fuzzy msgid "Print preview" msgstr "Rad: " #: ../src/previewdialog.cc:56 ../src/previewdialog.cc:176 #, c-format msgid "of %i" msgstr "" #: ../src/print.cc:207 msgid "Other" msgstr "" #: ../src/printdialog.cc:77 #, fuzzy msgid "Print to file." msgstr "Kunde inte öppna temporärfil" #: ../src/printdialog.cc:78 #, fuzzy msgid "_All" msgstr "Spa_ra alla" #: ../src/printdialog.cc:79 #, fuzzy msgid "_Selection" msgstr "Markera _allt" #: ../src/printdialog.cc:80 #, fuzzy msgid "_Lines" msgstr "Rad: " #: ../src/printdialog.cc:81 #, fuzzy msgid "Printer:" msgstr "Rad: " #: ../src/printdialog.cc:89 #, fuzzy msgid "Location:" msgstr "Information" #: ../src/printdialog.cc:90 msgid "Number of copies" msgstr "" #: ../src/printdialog.cc:91 msgid "Print range" msgstr "" #: ../src/printdialog.cc:92 msgid "From:" msgstr "" #: ../src/printdialog.cc:93 #, fuzzy msgid "To:" msgstr "Topp" #: ../src/printdialog.cc:94 #, fuzzy msgid "Paper size:" msgstr "Klistra in" #: ../src/printdialog.cc:95 msgid "Page orientation:" msgstr "" #: ../src/printdialog.cc:113 #, fuzzy msgid "Printer name" msgstr "Rad: " #: ../src/printdialog.cc:114 #, fuzzy msgid "Status" msgstr "_Statusrad" #: ../src/printdialog.cc:132 ../src/printdialog.cc:190 #, fuzzy msgid "Custom" msgstr "Klipp ut" #: ../src/printdialog.cc:136 msgid "Create a PDF document" msgstr "" #: ../src/printdialog.cc:137 msgid "Create a Postscript document" msgstr "" #: ../src/printdialog.cc:183 msgid "Portrait" msgstr "" #: ../src/printdialog.cc:184 msgid "Landscape" msgstr "" #: ../src/printdialog.cc:196 #, fuzzy msgid "Width:" msgstr "Vidd" #: ../src/printdialog.cc:196 #, fuzzy msgid "Height:" msgstr "Höjd" #: ../src/printdialog.cc:246 #, fuzzy msgid "Please choose a file to print to." msgstr "Öppna en fil" #: ../src/printdialog.cc:250 #, fuzzy msgid "Please choose a file not a directory." msgstr "Öppna en fil" #: ../src/printdialog.cc:341 #, fuzzy msgid "Please select a file to print to." msgstr "Öppna en fil" #: ../src/printdialog.cc:421 msgid "I couldn't get the selected printer." msgstr "" #: ../src/replacedialog.cc:32 ../src/searchdialog.cc:32 msgid "Find" msgstr "Sök" #: ../src/replacedialog.cc:33 ../src/searchdialog.cc:33 #, fuzzy msgid "Search for:" msgstr "_Sök" #: ../src/replacedialog.cc:34 msgid "Replace with:" msgstr "Ersätt med:" #: ../src/replacedialog.cc:35 ../src/searchdialog.cc:34 msgid "Match entire word only" msgstr "" #: ../src/replacedialog.cc:36 ../src/searchdialog.cc:35 #, fuzzy msgid "Match case" msgstr "Gör skillnad på geme_ner/VERSALER" #. regex(_("Regular expression")), #: ../src/replacedialog.cc:37 ../src/searchdialog.cc:37 msgid "Wrap search" msgstr "" #: ../src/replacedialog.cc:38 ../src/searchdialog.cc:38 #, fuzzy msgid "Search from the cursor position" msgstr "Sök från mark_örpositionen" #: ../src/replacedialog.cc:39 ../src/searchdialog.cc:39 msgid "Search backwards" msgstr "" #: ../src/replacedialog.cc:40 ../src/searchdialog.cc:40 #, fuzzy msgid "Search from the beginnig of the document" msgstr "Sök frå_n början av dokumentet" #: ../src/replacedialog.cc:42 msgid "_Replace" msgstr "_Ersätt" #. find_replace(Gtk::Stock::FIND_AND_REPLACE), #: ../src/replacedialog.cc:44 #, fuzzy msgid "Replace _All" msgstr "Ersätt _alla" #: ../src/spell.cc:53 msgid "Failed to initialize the spell checker" msgstr "" #: ../src/spell.cc:66 #, fuzzy msgid "Failed to set the requested dictionary." msgstr "Kunde inte öppna temporärfil" #: ../src/spelldialog.cc:37 msgid "_Ignore" msgstr "" #: ../src/spelldialog.cc:38 #, fuzzy msgid "Ignore _All" msgstr "Spa_ra alla" #: ../src/spelldialog.cc:39 msgid "C_hange" msgstr "" #: ../src/spelldialog.cc:42 msgid "_Add to user dictionary" msgstr "" #: ../src/spelldialog.cc:43 msgid "Misspelled:" msgstr "" #: ../src/spelldialog.cc:44 msgid "Change to:" msgstr "" #: ../src/spelldialog.cc:48 msgid "Check Spelling" msgstr "" #: ../src/spelldialog.cc:92 msgid "Suggestions" msgstr "" #: ../src/spelldialog.cc:128 msgid "No misspelled words." msgstr "" #: ../src/statusbar.cc:69 msgid "OVR" msgstr "" #: ../src/statusbar.cc:69 #, fuzzy msgid "INS" msgstr "ISO" #: ../src/statusbar.cc:74 #, fuzzy, c-format msgid " L: %d, C: %d" msgstr "%d rader, %d tecken" #: ../src/toolbar.cc:53 #, fuzzy msgid "Search" msgstr "_Sök" #: ../src/toolbar.cc:56 msgid "Spelling Dictionary" msgstr "" #: ../src/toolbar.cc:102 msgid "Create a new file" msgstr "Skapa en ny fil" #: ../src/toolbar.cc:103 msgid "Open a file for editing" msgstr "Öppna en fil" #: ../src/toolbar.cc:104 msgid "Save the existing file" msgstr "Spara" #: ../src/toolbar.cc:106 msgid "Print this document" msgstr "" #: ../src/toolbar.cc:108 msgid "Close the active file" msgstr "Stäng aktiv fil" #: ../src/toolbar.cc:109 msgid "Undo" msgstr "Ångra" #: ../src/toolbar.cc:110 msgid "Redo" msgstr "Gör om" #: ../src/toolbar.cc:111 msgid "Cut" msgstr "Klipp ut" #: ../src/toolbar.cc:112 msgid "Copy" msgstr "Kopiera" #: ../src/toolbar.cc:113 msgid "Paste" msgstr "Klistra in" #: ../src/toolbar.cc:114 msgid "Delete current selection" msgstr "Ta bort" #: ../src/toolbar.cc:116 msgid "Toggle full screen mode" msgstr "" #: ../src/utils.cc:189 msgid "I can't backup the old file.\n" msgstr "" #: ../src/utils.cc:247 #, c-format msgid "%s is a directory." msgstr "" #: ../src/window.cc:141 msgid " The keyboard emulator will not work." msgstr "" #: ../src/window.cc:147 msgid " Multipress will not work." msgstr "" #: ../src/window.cc:153 msgid "" "A lot of the configuration options have been changed in this version.\n" "Please adjust the configuration first." msgstr "" #, fuzzy #~ msgid "Ready" #~ msgstr "Gör om" #, fuzzy #~ msgid "Printing" #~ msgstr "Rad: " #, fuzzy #~ msgid "Remote" #~ msgstr "Gör om" #, fuzzy #~ msgid ", C: " #~ msgstr "1 rader, 1 tecken" #, fuzzy #~ msgid "_PDF file..." #~ msgstr "_Sök" #~ msgid "The file %s doesn't exist, Create it?" #~ msgstr "Filen %s existerar inte. Skall den skapas?" #~ msgid "Couldn't create file %s, %s" #~ msgstr "Kunde inte skapa filen %s, %s" #~ msgid "Couldn't open file %s, %s" #~ msgstr "Kunde inte öppna filen %s, %s" #~ msgid "The requested file couldn't be opened for saving" #~ msgstr "Kunde inte spara filen" #, fuzzy #~ msgid "That's not a valid UTF-8 file" #~ msgstr "Filen innehåller tecken som inte är giltiga i teckentabellen UTF-8" #~ msgid "ERROR" #~ msgstr "FEL" #, fuzzy #~ msgid "Save" #~ msgstr "_Spara" #, fuzzy #~ msgid "Text direction" #~ msgstr "Textens huvudriktning" #~ msgid "_Left to right" #~ msgstr "_Vänster till höger" #~ msgid "_Right to left" #~ msgstr "_Höger till vänster" #~ msgid "_New" #~ msgstr "_Ny" #, fuzzy #~ msgid "_Open..." #~ msgstr "_Öppna" #~ msgid "_Save" #~ msgstr "_Spara" #, fuzzy #~ msgid "Save _As..." #~ msgstr "Spara som..." #~ msgid "_Revert" #~ msgstr "_Återgå" #~ msgid "_Close" #~ msgstr "S_täng" #~ msgid "_Quit" #~ msgstr "_Avsluta" #~ msgid "_Undo" #~ msgstr "_Ångra" #~ msgid "_Redo" #~ msgstr "_Gör om" #~ msgid "Cu_t" #~ msgstr "Klipp _ut" #~ msgid "_Copy" #~ msgstr "_Kopiera" #~ msgid "_Paste" #~ msgstr "Klistra _in" #~ msgid "_Delete" #~ msgstr "_Ta bort" #, fuzzy #~ msgid "Pr_eferences..." #~ msgstr "Inställningar" #, fuzzy #~ msgid "_Replace..." #~ msgstr "_Ersätt" #, fuzzy #~ msgid "Goto _Line..." #~ msgstr "Gå till _rad" #, fuzzy #~ msgid "Latex" #~ msgstr "Klistra in" #~ msgid "Abou_t" #~ msgstr "_Om" #~ msgid "Developers" #~ msgstr "Utvecklare" #, fuzzy #~ msgid "License" #~ msgstr "Rad: " #, fuzzy #~ msgid "Error initializing Arabic keyboard" #~ msgstr "Inget arabiskt tangentbord funnet" #~ msgid "" #~ "An error has occured while trying to initialize your Arabic keyboard, " #~ "Katoob'll try to use the built in Arabic keyboard emulator." #~ msgstr "" #~ "Du har inget Arabiskt tangentbord. Katoob kommer försöka använda den " #~ "inbyggda tangentbordsemulatorn istället." #~ msgid "_Show this warning every time this problem occures" #~ msgstr "_Visa denna varning varje gång" #~ msgid "_Goto" #~ msgstr "_Gå till" #~ msgid "Confirm Revert" #~ msgstr "Vill du återgå till tidigare sparad version av filen?" #, fuzzy #~ msgid "Please select the dictionaries directory" #~ msgstr "Var vänlig och välj var filen skall sparas" #, fuzzy #~ msgid "Default text direction:" #~ msgstr "Textens huvudriktning" #, fuzzy #~ msgid "_Browse" #~ msgstr "S_täng" #, fuzzy #~ msgid "Select Font" #~ msgstr "Markera _allt" #, fuzzy #~ msgid "Can't get selection" #~ msgstr "Kunde inte läsa in dokumenthistorik" #~ msgid "Can't create temp file" #~ msgstr "Kunde inte skapa temporärfil" #, fuzzy #~ msgid "Copies" #~ msgstr "Kopiera" #, fuzzy #~ msgid "File" #~ msgstr "_Arkiv" #, fuzzy #~ msgid "Please select an application." #~ msgstr "Öppna en fil" #, fuzzy #~ msgid "Can't open the recent documents file" #~ msgstr "Kunde inte öppna dokumenthistorikfilen" #~ msgid "Save As..." #~ msgstr "Spara som..." #~ msgid "Save A Copy..." #~ msgstr "Spara kopia" #, fuzzy #~ msgid " Couldn 't create a backup, Continue ?" #~ msgstr "Kunde inte skapa filen %s, %s" #, fuzzy #~ msgid "The requested file couldn' t be opened for saving " #~ msgstr "Kunde inte spara filen" #~ msgid "Replace" #~ msgstr "Ersätt" #~ msgid "Find what:" #~ msgstr "Sök efter:" #~ msgid "Change the typing language" #~ msgstr "Ändra inmatningsspråk" #, fuzzy #~ msgid "Can't write to temp file" #~ msgstr "Kunde inte skapa temporärfil" #, fuzzy #~ msgid "Couldn't check %s version." #~ msgstr "Kunde inte skapa filen %s, %s" #~ msgid "Save _As" #~ msgstr "Spara so_m" #~ msgid "Sa_ve Copy" #~ msgstr "Spara kopia" #~ msgid "_Preferences" #~ msgstr "_Inställningar" #~ msgid "_Show toolbar" #~ msgstr "Visa _verktygsrad" #~ msgid "Can't remove old configuration file" #~ msgstr "Kan inte ta bort den gamla inställningsfilen" #~ msgid "Can't create configuration directory" #~ msgstr "Kunde inte skapa inställningsmappen" #~ msgid "Can't create configuration file" #~ msgstr "Kunde inte skapa inställningsfilen" #~ msgid "Can't write configuration file" #~ msgstr "Kunde inte skriva till inställningsfilen" #~ msgid "Arabic" #~ msgstr "Arabiska" #~ msgid "English" #~ msgstr "Engelska" #, fuzzy #~ msgid "Couldn't get recent documents file" #~ msgstr "Kunde inte hämta dokumenthistorik" #~ msgid "Left to right direction" #~ msgstr "Vänster till höger" #~ msgid "Right to left direction" #~ msgstr "Höger till vänster" #~ msgid "_Right To Left" #~ msgstr "_Höger till vänster" #~ msgid "_Left To Right" #~ msgstr "_Vänster till höger" #~ msgid "This is an unknown encoded file" #~ msgstr "Filens teckenkodning är okänd" #, fuzzy #~ msgid "Can't create recent documents file" #~ msgstr "Kunde inte spara dokumenthistorik" #~ msgid "No matches" #~ msgstr "Inga träffar" #~ msgid "Replace done" #~ msgstr "Ersättning slutförd" #~ msgid "ISO_8859-6" #~ msgstr "ISO-8859-6" #~ msgid "WINDOWS-1256" #~ msgstr "WINDOWS-1256" #~ msgid "_HTML-Style format" #~ msgstr "_HTML" #~ msgid "WINDOWS" #~ msgstr "WINDOWS" #~ msgid "UTF-8" #~ msgstr "UTF-8" #, fuzzy #~ msgid "Plain UTF-8 text" #~ msgstr "Vanlig UTF-8 text" #~ msgid "HTML-Style format" #~ msgstr "HTML-formatterad" katoob-0.5.9.1/README0000644000175000017500000000520310746617675010767 00000000000000Katoob README ~~~~~~~~~~~~~ Katoob Copyright (c) 2002-2006 Mohammed Sameer. 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. See the file COPYING for details. What is it? ~~~~~~~~~~~ Katoob is a light weight multilingual BiDi aware text editor It support opening and saving files in multiple encodings. The main support is some for Arabic language specific features. It should run on most BSD and POSIX compliant operating systems. Requirements: ~~~~~~~~~~~~~ * See the "INSTALL" file. Katoob is being developed on Debian GNU/Linux but it should work on any GNU/Linux distro. Download: ~~~~~~~~~ * Building from source: You can always download the latest version from ftp://foolab.org/pub/software/katoob * Debian: apt-get install katoob * Mandriva: Add the contrib repository then urpmi katoob CVS: ~~~~ For the latest bleeding edge version: cvs -d:pserver:anonymous@home.foolab.org:/var/lib/cvs login (Press enter when prompted for the password) cvs -d:pserver:anonymous@home.foolab.org:/var/lib/cvs co projects/katoob cd projects/katoob && ./autogen.sh You'll need: * autoconf * automake * intltool Installation: ~~~~~~~~~~~~~ See the file INSTALL for details. Features: ~~~~~~~~~ * Multiple codepage support "not just UTF-8" * The ability to Open/Save files in multiple encodings * Search/Replace/Replace all * Configurable Undo/Redo * Read from stdin via pipe "cat file | katoob -" * Open multiple files from the command line * An MDI Interface * Line wrapping * The ability to select the toolbar style * Recent files Menu * An encodings menu to change the encoding on the fly * The statusbar has an indicator weather the file is modified or NOT * Read only files Can't be modified * Display the used encoding in the statusbar * GNOME human interface guidlines compliant interface * GNOME menu entry. * An infrastructure to allow easy addition of emulator files. * All the configured keyboard layouts are available from the layout switcher. * An emulator to be able to write in your language even if you don't configure a keyboard layout. * Syntax highlighting. * Spell checking on the fly or when required. * Per document settings on the fly. * An extended toolbar offering some common functions. EOF katoob-0.5.9.1/configure.in0000644000175000017500000001617510746617752012426 00000000000000AC_PREREQ(2.52) AC_INIT(src/main.cc) AM_CONFIG_HEADER(config.h) AM_INIT_AUTOMAKE(katoob, 0.5.9.1) AC_PROG_INTLTOOL(0.18, "no-xml") AC_PROG_CXX ALL_LINGUAS="ar cz de fr he ja pl sv" GETTEXT_PACKAGE=katoob AM_GLIB_GNU_GETTEXT AC_ARG_ENABLE(profile, AC_HELP_STRING([--enable-profile], [Include profiling information. (default: no)]), profile=$enableval, profile=no) AC_ARG_ENABLE(maemo, AC_HELP_STRING([--enable-maemo], [Enable maemo support. (default: no)]), maemo=$enableval, maemo=no) AC_ARG_ENABLE(bzip2, AC_HELP_STRING([--enable-bzip2], [Enable bzip2 support. (default: yes)]), bzip2=$enableval, bzip2=yes) AC_ARG_ENABLE(gzip, AC_HELP_STRING([--enable-gzip], [Enable gzip support. (default: yes)]), gzip=$enableval, gzip=yes) AC_ARG_ENABLE(multipress, AC_HELP_STRING([--enable-multipress], [Enable multipress. (default: yes)]), multipress=$enableval, multipress=yes) AC_ARG_ENABLE(emulator, AC_HELP_STRING([--enable-emulator], [Enable emulator. (default: yes)]), emulator=$enableval, emulator=yes) AC_ARG_ENABLE(highlight, AC_HELP_STRING([--enable-highlight], [Enable source code highlighting. (default: no)]), highlight=$enableval, highlight=no) AC_ARG_ENABLE(release, AC_HELP_STRING([--enable-release], [Don't include debugging symbols. (default: yes)]), release=$enableval, release=yes) AC_ARG_ENABLE(spell, AC_HELP_STRING([--enable-spell], [Enable the spell checker (default: no)]), spell=$enableval, spell=no) AC_ARG_ENABLE(isocodes, AC_HELP_STRING([--enable-isocodes], [Enable isocodes (default: no)]), isocodes=$enableval, isocodes=no) AC_ARG_ENABLE(print, AC_HELP_STRING([--enable-print], [Enable printing support. (default: yes)]), print=$enableval, print=yes) AC_ARG_ENABLE(dbus, AC_HELP_STRING([--enable-dbus], [Enable D-BUS support. (default: no)]), dbus=$enableval, dbus=no) AC_ARG_ENABLE(fribidi, AC_HELP_STRING([--enable-fribidi], [Use fribidi. (default: no)]), fribidi=$enableval, fribidi=no) AC_ARG_ENABLE(dict, AC_HELP_STRING([--enable-dict], [Enable dict protocol support. (default: yes)]), dict=$enableval, dict=yes) LIBCURL_CHECK_CONFIG([yes], , curl=yes, AC_MSG_ERROR(libcurl not found.)) if test "$CXX" = "g++" ; then CXXFLAGS="$CXXFLAGS -pipe -Wall" fi if test "$CCC" = "gcc" ; then CFLAGS="$CFLAGS -pipe -Wall" fi dnl Do we really need -fprofile-arcs ?? if test "$profile" = yes ; then CFLAGS="$CFLAGS -pg -fprofile-arcs" fi if test "x$dict" = "xyes"; then if test "$libcurl_protocol_DICT" != "yes"; then AC_MSG_ERROR(libcurl doesn't support DICT.) else AC_DEFINE(ENABLE_DICT,,[Enable dict..]) fi fi AM_CONDITIONAL(DICT, text "x$dict" = "xyes") dnl Set PREFIX in config.h. if test "x${prefix}" = "xNONE"; then AC_DEFINE_UNQUOTED(PREFIX, "${ac_default_prefix}",[PREFIX]) else AC_DEFINE_UNQUOTED(PREFIX, "${prefix}",[PREFIX]) fi dnl Set PACKAGE_LOCALE_DIR in config.h. if test "x${prefix}" = "xNONE"; then AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${ac_default_prefix}/${DATADIRNAME}/locale",[PACKAGE_LOCALE_DIR]) else AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${prefix}/${DATADIRNAME}/locale",[PACKAGE_LOCALE_DIR]) fi dnl Set PACKAGE_DATA_DIR in config.h. if test "x${datadir}" = 'x${prefix}/share'; then if test "x${prefix}" = "xNONE"; then AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${ac_default_prefix}/share/${PACKAGE}",[PACKAGE_DATA_DIR]) else AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${prefix}/share/${PACKAGE}",[PACKAGE_DATA_DIR]) fi else AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${datadir}/${PACKAGE}",[PACKAGE_DATA_DIR]) fi dnl Checking for Gtkmm PKG_CHECK_MODULES(KATOOB, gtkmm-2.4 >= 2.10.0) dnl iso-codes if test "$isocodes" = yes; then if test "$spell" = no; then AC_MSG_ERROR(You can't enable isocodes and disable spell.) else PKG_CHECK_MODULES(ISOCODES, iso-codes) AC_DEFINE_UNQUOTED([ISOCODES_PREFIX],["`$PKG_CONFIG --variable=prefix iso-codes`"],[ISO codes prefix]) AC_DEFINE(ENABLE_ISOCODES,,[Enable isocodes.]) fi fi AM_CONDITIONAL(ISOCODES, test "x$isocodes" = "xyes") dnl The spell checker if test "$spell" = yes; then PKG_CHECK_MODULES(SPELL, enchant >= 1.3.0) AC_DEFINE(ENABLE_SPELL,,[Enable spell checking.]) fi AM_CONDITIONAL(SPELL, test "x$spell" = "xyes") if test "$release" = no ; then CFLAGS="$CFLAGS -ggdb" else CFLAGS="$CFLAGS -DNDEBUG" fi if test "$fribidi" = yes; then AC_PATH_PROG(FRIBIDI_CONFIG, fribidi-config) if test "x$FRIBIDI_CONFIG" = x; then AC_MSG_ERROR(fribidi-config not found.) else FRIBIDI_CFLAGS=$($FRIBIDI_CONFIG --cflags) FRIBIDI_LIBS=$($FRIBIDI_CONFIG --libs) AC_DEFINE(HAVE_FRIBIDI,,[Enable fribidi support.]) fi fi AM_CONDITIONAL(FRIBIDI, test "x$fribidi" = "xyes") if test "$print" = yes; then PKG_CHECK_MODULES(PRINT, gtk+-unix-print-2.0 >= 2.10.0) AC_DEFINE(ENABLE_PRINT,,[Enable printing.]) fi AM_CONDITIONAL(PRINT, test "x$print" = "xyes") dnl bz2 if test "$bzip2" = yes; then AC_CHECK_LIB(bz2, BZ2_bzopen, bzip_l=yes, bzip_l=no) AC_CHECK_HEADER(bzlib.h, bzip_h=yes, bzip_h=no) if test "$bzip_l" = yes && test "$bzip_h" = yes; then AC_MSG_NOTICE([bzip2 support is enabled.]) AC_DEFINE(HAVE_BZIP2,,[Enable bzip2 support]) BZ2_LIBS="-lbz2" else AC_MSG_NOTICE([bzip2 support is disabled.]) fi fi dnl gz if test "$gzip" = yes; then AC_CHECK_LIB(z, gzopen, gzip_l=yes, gzip_l=no) AC_CHECK_HEADER(zlib.h, gzip_h=yes, gzip_h=no) if test "$gzip_l" = yes && test "$gzip_h" = yes; then AC_MSG_NOTICE([gzip support is enabled.]) AC_DEFINE(HAVE_GZIP,,[Enable gzip support]) GZ_LIBS="-lz" else AC_MSG_NOTICE([gzip support is disabled.]) fi fi if test "$dbus" = yes; then PKG_CHECK_MODULES(DBUS, dbus-glib-1) AC_DEFINE(ENABLE_DBUS,,[Enable dbus.]) fi AM_CONDITIONAL(DBUS, test "x$dbus" = "xyes") if test "$emulator" = yes; then AC_DEFINE(ENABLE_EMULATOR,,[Enable emulator.]) fi AM_CONDITIONAL(EMULATOR, test "x$emulator" = "xyes") if test "$multipress" = yes; then AC_DEFINE(ENABLE_MULTIPRESS,,[Enable multipress.]) fi AM_CONDITIONAL(MULTIPRESS, test "x$multipress" = "xyes") if test "$maemo" = yes; then PKG_CHECK_MODULES(MAEMO, libosso hildonmm hildon-fmmm gconfmm-2.6) AC_DEFINE(ENABLE_MAEMO,,[Enable maemo.]) KATOOB_ICON=katoob-icon X_OSSO_SERVICE=X-Osso-Service=org.foolab.katoob AC_SUBST(X_OSSO_SERVICE) else KATOOB_ICON=katoob-icon.pmg fi AC_SUBST(KATOOB_ICON) AM_CONDITIONAL(MAEMO, test "x$maemo" = "xyes") if test "$highlight" = yes; then PKG_CHECK_MODULES(GTKSOURCEVIEW, gtksourceview-2.0 >= 2.0) AC_DEFINE(ENABLE_HIGHLIGHT,,[Enable syntax highlighting]) fi AM_CONDITIONAL(HIGHLIGHT, test "x$highlight" = "xyes") dnl win32 gcc_ver=$(gcc --version) case $gcc_ver in *mingw*) KATOOB_CFLAGS="-mms-bitfields -mwindows $KATOOB_CFLAGS" KATOOB_LIBS="$KATOOB_LIBS -lwsock32" AM_CONDITIONAL(WIN32, test 1 = 1) ;; *) AM_CONDITIONAL(WIN32, test 1 = 0) ;; esac if test "x$maemo" = "xyes" && test "x$dbus" != "xyes"; then AC_MSG_ERROR(maemo support needss dbus.) fi AC_SUBST(GETTEXT_PACKAGE) AC_SUBST(FRIBIDI_CFLAGS) AC_SUBST(FRIBIDI_LIBS) AC_SUBST(BZ2_LIBS) AC_OUTPUT([ katoob.desktop.in Makefile src/Makefile src/pixmaps/Makefile src/xdgmime/Makefile po/Makefile.in data/Makefile data/emulator/Makefile data/multipress/Makefile m4/Makefile maemo/Makefile maemo/katoob.service INSTALL Doxyfile ]) katoob-0.5.9.1/aclocal.m40000644000175000017500000010521210746620155011733 00000000000000# generated automatically by aclocal 1.8.5 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 # 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. # -*- Autoconf -*- # Copyright (C) 2002, 2003 Free Software Foundation, Inc. # Generated from amversion.in; do not edit by hand. # 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., 59 Temple Place - Suite 330, Boston, MA # 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. AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"]) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION so it can be traced. # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.8.5])]) # AM_AUX_DIR_EXPAND # Copyright (C) 2001, 2003 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., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # 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 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., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # serial 6 # 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]) AC_SUBST([$1_FALSE]) 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])]) # serial 7 -*- Autoconf -*- # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 # 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., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # 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], 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 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 case $depmode in 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 ;; none) break ;; esac # 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. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} 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]) ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 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., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. #serial 2 # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [for mf in $CONFIG_FILES; 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. # So let's grep whole file. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue fi grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue # Extract the definition of DEP_FILES from the Makefile without # running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" # 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 ' /^DEP_FILES = .*\\\\$/ { s/^DEP_FILES = // :loop s/\\\\$// p n /\\\\$/ b loop p } /^DEP_FILES = / s/^DEP_FILES = //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"]) ]) # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*- # Copyright (C) 1996, 1997, 2000, 2001, 2003 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., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # serial 7 # 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 -*- # 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. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 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 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., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # serial 11 # 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.58])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 # test to see if srcdir already configured if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 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 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) AM_MISSING_PROG(AMTAR, tar) AM_PROG_INSTALL_SH AM_PROG_INSTALL_STRIP 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([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 ]) ]) # 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_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $1 | $1:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. # Copyright (C) 2001, 2003 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., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl install_sh=${install_sh-"$am_aux_dir/install-sh"} AC_SUBST(install_sh)]) # -*- Autoconf -*- # Copyright (C) 2003 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., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # serial 1 # 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 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., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # serial 2 # 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 done .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 # We grep out `Entering directory' and `Leaving directory' # messages which can occur if `w' ends up in MAKEFLAGS. # In particular we don't look at `^make:' because GNU make might # be invoked under some other name (usually "gmake"), in which # case it prints its new name instead of `make'. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then am__include=include am__quote= _am_result=GNU fi # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then am__include=.include am__quote="\"" _am_result=BSD fi fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # -*- Autoconf -*- # Copyright (C) 1997, 1999, 2000, 2001, 2003 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., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # serial 3 # 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 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" # 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 ]) # AM_PROG_MKDIR_P # --------------- # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. # Copyright (C) 2003, 2004 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., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories # created by `make install' are always world readable, even if the # installer happens to have an overly restrictive umask (e.g. 077). # This was a mistake. There are at least two reasons why we must not # use `-m 0755': # - it causes special bits like SGID to be ignored, # - it may be too restrictive (some setups expect 775 directories). # # Do not use -m 0755 and let people choose whatever they expect by # setting umask. # # We cannot accept any implementation of `mkdir' that recognizes `-p'. # Some implementations (such as Solaris 8's) are not thread-safe: if a # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' # concurrently, both version can detect that a/ is missing, but only # one can create it and the other will error out. Consequently we # restrict ourselves to GNU make (using the --version option ensures # this.) AC_DEFUN([AM_PROG_MKDIR_P], [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then # Keeping the `.' argument allows $(mkdir_p) to be used without # argument. Indeed, we sometimes output rules like # $(mkdir_p) $(somedir) # where $(somedir) is conditionally defined. # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more # expensive solution, as it forces Make to start a sub-shell.) mkdir_p='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. for d in ./-p ./--version; do test -d $d && rmdir $d done # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. if test -f "$ac_aux_dir/mkinstalldirs"; then mkdir_p='$(mkinstalldirs)' else mkdir_p='$(install_sh) -d' fi fi AC_SUBST([mkdir_p])]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001, 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 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., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # serial 2 # _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], [AC_FOREACH([_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. # # Copyright (C) 1996, 1997, 2000, 2001, 2003 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., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # serial 3 # 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 # 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)]) # AM_PROG_INSTALL_STRIP # Copyright (C) 2001, 2003 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., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # 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="\${SHELL} \$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) m4_include([m4/glib-gettext.m4]) m4_include([m4/intltool.m4]) m4_include([m4/libcurl.m4]) m4_include([m4/pkg.m4]) katoob-0.5.9.1/Doxyfile.in0000644000175000017500000002210310746617675012220 00000000000000# Doxyfile 1.5.1 #--------------------------------------------------------------------------- # Project related configuration options #--------------------------------------------------------------------------- PROJECT_NAME = katoob PROJECT_NUMBER = @VERSION@ OUTPUT_DIRECTORY = doxygen CREATE_SUBDIRS = NO OUTPUT_LANGUAGE = English USE_WINDOWS_ENCODING = NO BRIEF_MEMBER_DESC = YES REPEAT_BRIEF = YES ABBREVIATE_BRIEF = "The $name class" \ "The $name widget" \ "The $name file" \ is \ provides \ specifies \ contains \ represents \ a \ an \ the ALWAYS_DETAILED_SEC = NO INLINE_INHERITED_MEMB = NO FULL_PATH_NAMES = YES STRIP_FROM_PATH = STRIP_FROM_INC_PATH = SHORT_NAMES = NO JAVADOC_AUTOBRIEF = NO MULTILINE_CPP_IS_BRIEF = NO DETAILS_AT_TOP = NO INHERIT_DOCS = YES SEPARATE_MEMBER_PAGES = NO TAB_SIZE = 8 ALIASES = OPTIMIZE_OUTPUT_FOR_C = NO OPTIMIZE_OUTPUT_JAVA = NO BUILTIN_STL_SUPPORT = NO DISTRIBUTE_GROUP_DOC = NO SUBGROUPING = YES #--------------------------------------------------------------------------- # Build related configuration options #--------------------------------------------------------------------------- EXTRACT_ALL = YES EXTRACT_PRIVATE = YES EXTRACT_STATIC = YES EXTRACT_LOCAL_CLASSES = YES EXTRACT_LOCAL_METHODS = NO HIDE_UNDOC_MEMBERS = NO HIDE_UNDOC_CLASSES = NO HIDE_FRIEND_COMPOUNDS = NO HIDE_IN_BODY_DOCS = NO INTERNAL_DOCS = NO CASE_SENSE_NAMES = YES HIDE_SCOPE_NAMES = NO SHOW_INCLUDE_FILES = YES INLINE_INFO = YES SORT_MEMBER_DOCS = YES SORT_BRIEF_DOCS = NO SORT_BY_SCOPE_NAME = NO GENERATE_TODOLIST = YES GENERATE_TESTLIST = YES GENERATE_BUGLIST = YES GENERATE_DEPRECATEDLIST= YES ENABLED_SECTIONS = MAX_INITIALIZER_LINES = 30 SHOW_USED_FILES = YES SHOW_DIRECTORIES = NO FILE_VERSION_FILTER = #--------------------------------------------------------------------------- # configuration options related to warning and progress messages #--------------------------------------------------------------------------- QUIET = NO WARNINGS = YES WARN_IF_UNDOCUMENTED = YES WARN_IF_DOC_ERROR = YES WARN_NO_PARAMDOC = NO WARN_FORMAT = "$file:$line: $text" WARN_LOGFILE = #--------------------------------------------------------------------------- # configuration options related to the input files #--------------------------------------------------------------------------- INPUT = src FILE_PATTERNS = *.c \ *.cc \ *.cxx \ *.cpp \ *.c++ \ *.h \ *.hh \ *.hxx \ *.hpp \ *.h++ \ *.C \ *.CC \ *.C++ \ *.H \ *.HH \ *.H++ RECURSIVE = YES EXCLUDE = EXCLUDE_SYMLINKS = NO EXCLUDE_PATTERNS = EXAMPLE_PATH = EXAMPLE_PATTERNS = * EXAMPLE_RECURSIVE = NO IMAGE_PATH = INPUT_FILTER = FILTER_PATTERNS = FILTER_SOURCE_FILES = NO #--------------------------------------------------------------------------- # configuration options related to source browsing #--------------------------------------------------------------------------- SOURCE_BROWSER = YES INLINE_SOURCES = NO STRIP_CODE_COMMENTS = YES REFERENCED_BY_RELATION = YES REFERENCES_RELATION = YES REFERENCES_LINK_SOURCE = YES USE_HTAGS = NO VERBATIM_HEADERS = YES #--------------------------------------------------------------------------- # configuration options related to the alphabetical class index #--------------------------------------------------------------------------- ALPHABETICAL_INDEX = NO COLS_IN_ALPHA_INDEX = 5 IGNORE_PREFIX = #--------------------------------------------------------------------------- # configuration options related to the HTML output #--------------------------------------------------------------------------- GENERATE_HTML = YES HTML_OUTPUT = html HTML_FILE_EXTENSION = .html HTML_HEADER = HTML_FOOTER = HTML_STYLESHEET = HTML_ALIGN_MEMBERS = YES GENERATE_HTMLHELP = NO CHM_FILE = HHC_LOCATION = GENERATE_CHI = NO BINARY_TOC = NO TOC_EXPAND = NO DISABLE_INDEX = NO ENUM_VALUES_PER_LINE = 4 GENERATE_TREEVIEW = YES TREEVIEW_WIDTH = 250 #--------------------------------------------------------------------------- # configuration options related to the LaTeX output #--------------------------------------------------------------------------- GENERATE_LATEX = NO LATEX_OUTPUT = latex LATEX_CMD_NAME = latex MAKEINDEX_CMD_NAME = makeindex COMPACT_LATEX = NO PAPER_TYPE = a4wide EXTRA_PACKAGES = LATEX_HEADER = PDF_HYPERLINKS = NO USE_PDFLATEX = NO LATEX_BATCHMODE = NO LATEX_HIDE_INDICES = NO #--------------------------------------------------------------------------- # configuration options related to the RTF output #--------------------------------------------------------------------------- GENERATE_RTF = NO RTF_OUTPUT = rtf COMPACT_RTF = NO RTF_HYPERLINKS = NO RTF_STYLESHEET_FILE = RTF_EXTENSIONS_FILE = #--------------------------------------------------------------------------- # configuration options related to the man page output #--------------------------------------------------------------------------- GENERATE_MAN = NO MAN_OUTPUT = man MAN_EXTENSION = .3 MAN_LINKS = NO #--------------------------------------------------------------------------- # configuration options related to the XML output #--------------------------------------------------------------------------- GENERATE_XML = NO XML_OUTPUT = xml XML_SCHEMA = XML_DTD = XML_PROGRAMLISTING = YES #--------------------------------------------------------------------------- # configuration options for the AutoGen Definitions output #--------------------------------------------------------------------------- GENERATE_AUTOGEN_DEF = NO #--------------------------------------------------------------------------- # configuration options related to the Perl module output #--------------------------------------------------------------------------- GENERATE_PERLMOD = NO PERLMOD_LATEX = NO PERLMOD_PRETTY = YES PERLMOD_MAKEVAR_PREFIX = #--------------------------------------------------------------------------- # Configuration options related to the preprocessor #--------------------------------------------------------------------------- ENABLE_PREPROCESSING = YES MACRO_EXPANSION = NO EXPAND_ONLY_PREDEF = NO SEARCH_INCLUDES = YES INCLUDE_PATH = INCLUDE_FILE_PATTERNS = PREDEFINED = EXPAND_AS_DEFINED = SKIP_FUNCTION_MACROS = YES #--------------------------------------------------------------------------- # Configuration::additions related to external references #--------------------------------------------------------------------------- TAGFILES = GENERATE_TAGFILE = ALLEXTERNALS = NO EXTERNAL_GROUPS = YES PERL_PATH = /usr/bin/perl #--------------------------------------------------------------------------- # Configuration options related to the dot tool #--------------------------------------------------------------------------- CLASS_DIAGRAMS = NO HIDE_UNDOC_RELATIONS = YES HAVE_DOT = YES CLASS_GRAPH = YES COLLABORATION_GRAPH = YES GROUP_GRAPHS = YES UML_LOOK = NO TEMPLATE_RELATIONS = NO INCLUDE_GRAPH = YES INCLUDED_BY_GRAPH = YES CALL_GRAPH = YES CALLER_GRAPH = NO GRAPHICAL_HIERARCHY = YES DIRECTORY_GRAPH = YES DOT_IMAGE_FORMAT = png DOT_PATH = DOTFILE_DIRS = MAX_DOT_GRAPH_WIDTH = 1024 MAX_DOT_GRAPH_HEIGHT = 1024 MAX_DOT_GRAPH_DEPTH = 1000 DOT_TRANSPARENT = NO DOT_MULTI_TARGETS = NO GENERATE_LEGEND = YES DOT_CLEANUP = YES #--------------------------------------------------------------------------- # Configuration::additions related to the search engine #--------------------------------------------------------------------------- SEARCHENGINE = NO katoob-0.5.9.1/INSTALL.in0000644000175000017500000002203510746617675011547 00000000000000Katoob Requirements: ~~~~~~~~~~~~~~~~~~~~ * Gtkmm (Tested with version 2.8.8 and greater) from gtkmm.org * aspell for the spell checking. * zlib to be able to import and export gzipped files. * libbz2 to be able to import and export bzipped files. * libgtksourceviewmm (From http://download.gnome.org/sources/libgtksourceviewmm/) for the syntax highlighting support. Katoob Compilation and Installation: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Type this: tar -zxvf katoob-@VERSION@.tar.gz cd katoob-@VERSION@ ./configure make Become root and type: make install Other Options ~~~~~~~~~~~~~ To get a full list of the compile options, type: ./configure --help If you do not have GNU Gettext installed, Or you don't want the interface translations, use: ./configure --disable-nls Extra switches: Beside the normal autotools switches. You can use any of the following. --enable-profile Include profiling information for gprof --enable-bzip2 Enable bzip2 support --enable-gzip Enable gzip support --enable-release Don't compile with debugging support and disable assert() --enable-print Enable printing support. --enable-aspell Enable the aspell checker --enable-highlight Enable syntax highlighting support. --enable-fribidi Enable fribidi support. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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, a file `config.cache' that saves the results of its tests to speed up reconfiguring, and a file `config.log' containing compiler output (useful mainly for debugging `configure'). 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 at some point `config.cache' contains results you don't want to keep, you may remove or edit it. The file `configure.in' is used to create `configure' by a program called `autoconf'. You only need `configure.in' 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. You can give `configure' initial values for variables by setting them in the environment. Using a Bourne-compatible shell, you can do that on the command line like this: CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure Or on systems that have the `env' program, you can do it like this: env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure 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 supports 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' will install the package's files in `/usr/local/bin', `/usr/local/man', etc. You can specify an installation prefix other than `/usr/local' by giving `configure' the option `--prefix=PATH'. You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you give `configure' the option `--exec-prefix=PATH', the package will use PATH as the prefix for installing programs and libraries. Documentation and other data files will still use the regular prefix. In addition, if you use an unusual directory layout you can give options like `--bindir=PATH' 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' can not figure out automatically, but needs to determine by the type of host the package will run on. Usually `configure' can figure that out, but if it prints a message saying it can not guess the host type, give it the `--host=TYPE' option. TYPE can either be a short name for the system type, such as `sun4', or a canonical name with three fields: CPU-COMPANY-SYSTEM 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 host type. If you are building compiler tools for cross-compiling, you can also use the `--target=TYPE' option to select the type of system they will produce code for and the `--build=TYPE' option to select the type of system on which you are compiling the package. 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. Operation Controls ================== `configure' recognizes the following options to control how it operates. `--cache-file=FILE' Use and save the results of the tests in FILE instead of `./config.cache'. Set FILE to `/dev/null' to disable caching, for debugging `configure'. `--help' Print a summary of the options to `configure', and exit. `--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. `--version' Print the version of Autoconf used to generate the `configure' script, and exit. `configure' also accepts some other, not widely useful, options. katoob-0.5.9.1/Makefile.am0000644000175000017500000000135110746617675012143 00000000000000ACLOCAL_AMFLAGS = -I m4 SUBDIRS = src po data m4 maemo @INTLTOOL_DESKTOP_RULE@ if MAEMO else desktopdir = $(datadir)/applications desktop_DATA = $(desktop_in_files:.desktop.in=.desktop) endif desktop_in_files = katoob.desktop.in EXTRA_DIST = TODO INSTALL.in THANKS \ katoob.desktop.in katoob-icon.png katoob.desktop \ intltool-extract.in intltool-merge.in intltool-update.in \ katoob.1 katoob.de.1 Doxyfile.in Doxyfile katoob.desktop.in.in man_MANS = katoob.1 icondir = $(datadir)/pixmaps icon_DATA = katoob-icon.png install-data-local: $(top_srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/de/man1/ $(INSTALL_DATA) $(srcdir)/katoob.de.1 $(DESTDIR)$(mandir)/de/man1/katoob.1 uninstall-local: rm -f $(DESTDIR)$(mandir)/de/man1/katoob.1 katoob-0.5.9.1/Makefile.in0000644000175000017500000006242410746620160012143 00000000000000# Makefile.in generated by automake 1.8.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004 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@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = . am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = . DIST_COMMON = README $(am__configure_deps) $(srcdir)/Doxyfile.in \ $(srcdir)/INSTALL.in $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(srcdir)/config.h.in \ $(srcdir)/katoob.desktop.in.in $(top_srcdir)/configure AUTHORS \ COPYING ChangeLog INSTALL NEWS THANKS TODO config.guess \ config.sub depcomp install-sh ltmain.sh missing mkinstalldirs ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/glib-gettext.m4 \ $(top_srcdir)/m4/intltool.m4 $(top_srcdir)/m4/libcurl.m4 \ $(top_srcdir)/m4/pkg.m4 $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno configure.status.lineno mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = katoob.desktop.in INSTALL Doxyfile SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-exec-recursive install-info-recursive \ install-recursive installcheck-recursive installdirs-recursive \ pdf-recursive ps-recursive uninstall-info-recursive \ uninstall-recursive man1dir = $(mandir)/man1 am__installdirs = "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(desktopdir)" "$(DESTDIR)$(icondir)" NROFF = nroff MANS = $(man_MANS) desktopDATA_INSTALL = $(INSTALL_DATA) iconDATA_INSTALL = $(INSTALL_DATA) DATA = $(desktop_DATA) $(icon_DATA) ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ { test ! -d $(distdir) \ || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -fr $(distdir); }; } DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best distuninstallcheck_listfiles = find . -type f -print distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BZ2_LIBS = @BZ2_LIBS@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DBUS_CFLAGS = @DBUS_CFLAGS@ DBUS_FALSE = @DBUS_FALSE@ DBUS_LIBS = @DBUS_LIBS@ DBUS_TRUE = @DBUS_TRUE@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DICT_FALSE = @DICT_FALSE@ DICT_TRUE = @DICT_TRUE@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EMULATOR_FALSE = @EMULATOR_FALSE@ EMULATOR_TRUE = @EMULATOR_TRUE@ EXEEXT = @EXEEXT@ FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@ FRIBIDI_CONFIG = @FRIBIDI_CONFIG@ FRIBIDI_FALSE = @FRIBIDI_FALSE@ FRIBIDI_LIBS = @FRIBIDI_LIBS@ FRIBIDI_TRUE = @FRIBIDI_TRUE@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ GTKSOURCEVIEW_CFLAGS = @GTKSOURCEVIEW_CFLAGS@ GTKSOURCEVIEW_LIBS = @GTKSOURCEVIEW_LIBS@ HIGHLIGHT_FALSE = @HIGHLIGHT_FALSE@ HIGHLIGHT_TRUE = @HIGHLIGHT_TRUE@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_CAVES_RULE = @INTLTOOL_CAVES_RULE@ INTLTOOL_DESKTOP_RULE = @INTLTOOL_DESKTOP_RULE@ INTLTOOL_DIRECTORY_RULE = @INTLTOOL_DIRECTORY_RULE@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_ICONV = @INTLTOOL_ICONV@ INTLTOOL_KBD_RULE = @INTLTOOL_KBD_RULE@ INTLTOOL_KEYS_RULE = @INTLTOOL_KEYS_RULE@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_MSGFMT = @INTLTOOL_MSGFMT@ INTLTOOL_MSGMERGE = @INTLTOOL_MSGMERGE@ INTLTOOL_OAF_RULE = @INTLTOOL_OAF_RULE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_PONG_RULE = @INTLTOOL_PONG_RULE@ INTLTOOL_PROP_RULE = @INTLTOOL_PROP_RULE@ INTLTOOL_SCHEMAS_RULE = @INTLTOOL_SCHEMAS_RULE@ INTLTOOL_SERVER_RULE = @INTLTOOL_SERVER_RULE@ INTLTOOL_SERVICE_RULE = @INTLTOOL_SERVICE_RULE@ INTLTOOL_SHEET_RULE = @INTLTOOL_SHEET_RULE@ INTLTOOL_SOUNDLIST_RULE = @INTLTOOL_SOUNDLIST_RULE@ INTLTOOL_THEME_RULE = @INTLTOOL_THEME_RULE@ INTLTOOL_UI_RULE = @INTLTOOL_UI_RULE@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_XAM_RULE = @INTLTOOL_XAM_RULE@ INTLTOOL_XGETTEXT = @INTLTOOL_XGETTEXT@ INTLTOOL_XML_NOMERGE_RULE = @INTLTOOL_XML_NOMERGE_RULE@ INTLTOOL_XML_RULE = @INTLTOOL_XML_RULE@ ISOCODES_CFLAGS = @ISOCODES_CFLAGS@ ISOCODES_FALSE = @ISOCODES_FALSE@ ISOCODES_LIBS = @ISOCODES_LIBS@ ISOCODES_TRUE = @ISOCODES_TRUE@ KATOOB_CFLAGS = @KATOOB_CFLAGS@ KATOOB_ICON = @KATOOB_ICON@ KATOOB_LIBS = @KATOOB_LIBS@ LDFLAGS = @LDFLAGS@ LIBCURL = @LIBCURL@ LIBCURL_CPPFLAGS = @LIBCURL_CPPFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAEMO_CFLAGS = @MAEMO_CFLAGS@ MAEMO_FALSE = @MAEMO_FALSE@ MAEMO_LIBS = @MAEMO_LIBS@ MAEMO_TRUE = @MAEMO_TRUE@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MULTIPRESS_FALSE = @MULTIPRESS_FALSE@ MULTIPRESS_TRUE = @MULTIPRESS_TRUE@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ PRINT_CFLAGS = @PRINT_CFLAGS@ PRINT_FALSE = @PRINT_FALSE@ PRINT_LIBS = @PRINT_LIBS@ PRINT_TRUE = @PRINT_TRUE@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SPELL_CFLAGS = @SPELL_CFLAGS@ SPELL_FALSE = @SPELL_FALSE@ SPELL_LIBS = @SPELL_LIBS@ SPELL_TRUE = @SPELL_TRUE@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WIN32_FALSE = @WIN32_FALSE@ WIN32_TRUE = @WIN32_TRUE@ XGETTEXT = @XGETTEXT@ X_OSSO_SERVICE = @X_OSSO_SERVICE@ _libcurl_config = @_libcurl_config@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ bindir = @bindir@ build_alias = @build_alias@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ ACLOCAL_AMFLAGS = -I m4 SUBDIRS = src po data m4 maemo @MAEMO_FALSE@desktopdir = $(datadir)/applications @MAEMO_FALSE@desktop_DATA = $(desktop_in_files:.desktop.in=.desktop) desktop_in_files = katoob.desktop.in EXTRA_DIST = TODO INSTALL.in THANKS \ katoob.desktop.in katoob-icon.png katoob.desktop \ intltool-extract.in intltool-merge.in intltool-update.in \ katoob.1 katoob.de.1 Doxyfile.in Doxyfile katoob.desktop.in.in man_MANS = katoob.1 icondir = $(datadir)/pixmaps icon_DATA = katoob-icon.png 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) --gnu '; \ cd $(srcdir) && $(AUTOMAKE) --gnu \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu 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) cd $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) config.h: stamp-h1 @if test ! -f $@; then \ rm -f stamp-h1; \ $(MAKE) 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) cd $(top_srcdir) && $(AUTOHEADER) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 katoob.desktop.in: $(top_builddir)/config.status $(srcdir)/katoob.desktop.in.in cd $(top_builddir) && $(SHELL) ./config.status $@ INSTALL: $(top_builddir)/config.status $(srcdir)/INSTALL.in cd $(top_builddir) && $(SHELL) ./config.status $@ Doxyfile: $(top_builddir)/config.status $(srcdir)/Doxyfile.in cd $(top_builddir) && $(SHELL) ./config.status $@ uninstall-info-am: install-man1: $(man1_MANS) $(man_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 install-desktopDATA: $(desktop_DATA) @$(NORMAL_INSTALL) test -z "$(desktopdir)" || $(mkdir_p) "$(DESTDIR)$(desktopdir)" @list='$(desktop_DATA)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f="`echo $$p | sed -e 's|^.*/||'`"; \ echo " $(desktopDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(desktopdir)/$$f'"; \ $(desktopDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(desktopdir)/$$f"; \ done uninstall-desktopDATA: @$(NORMAL_UNINSTALL) @list='$(desktop_DATA)'; for p in $$list; do \ f="`echo $$p | sed -e 's|^.*/||'`"; \ echo " rm -f '$(DESTDIR)$(desktopdir)/$$f'"; \ rm -f "$(DESTDIR)$(desktopdir)/$$f"; \ done install-iconDATA: $(icon_DATA) @$(NORMAL_INSTALL) test -z "$(icondir)" || $(mkdir_p) "$(DESTDIR)$(icondir)" @list='$(icon_DATA)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f="`echo $$p | sed -e 's|^.*/||'`"; \ echo " $(iconDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(icondir)/$$f'"; \ $(iconDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(icondir)/$$f"; \ done uninstall-iconDATA: @$(NORMAL_UNINSTALL) @list='$(icon_DATA)'; for p in $$list; do \ f="`echo $$p | sed -e 's|^.*/||'`"; \ echo " rm -f '$(DESTDIR)$(icondir)/$$f'"; \ rm -f "$(DESTDIR)$(icondir)/$$f"; \ done # 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): @set fnord $$MAKEFLAGS; amf=$$2; \ 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; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" mostlyclean-recursive clean-recursive distclean-recursive \ maintainer-clean-recursive: @set fnord $$MAKEFLAGS; amf=$$2; \ 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; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (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; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ 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 || \ tags="$$tags $$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; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ 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; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) $(am__remove_distdir) mkdir $(distdir) $(mkdir_p) $(distdir)/. $(distdir)/m4 $(distdir)/maemo $(distdir)/po @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || mkdir "$(distdir)/$$subdir" \ || exit 1; \ (cd $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="../$(top_distdir)" \ distdir="../$(distdir)/$$subdir" \ distdir) \ || exit 1; \ fi; \ done -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -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 $(SHELL) $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r $(distdir) dist-gzip: distdir $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) dist-bzip2: distdir $(AMTAR) chof - $(distdir) | bzip2 -9 -c >$(distdir).tar.bz2 $(am__remove_distdir) dist-tarZ: distdir $(AMTAR) chof - $(distdir) | 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 $(AMTAR) chof - $(distdir) | 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) gunzip -c $(distdir).tar.gz | $(AMTAR) xf - ;;\ *.tar.bz2*) \ bunzip2 -c $(distdir).tar.bz2 | $(AMTAR) xf - ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(AMTAR) xf - ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gunzip -c $(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) dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && cd $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck $(am__remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}' distuninstallcheck: @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 $(MANS) $(DATA) config.h installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(desktopdir)" "$(DESTDIR)$(icondir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done 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: -rm -f $(CONFIG_CLEAN_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 info: info-recursive info-am: install-data-am: install-data-local install-desktopDATA \ install-iconDATA install-man install-exec-am: install-info: install-info-recursive install-man: install-man1 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: uninstall-desktopDATA uninstall-iconDATA \ uninstall-info-am uninstall-local uninstall-man uninstall-info: uninstall-info-recursive uninstall-man: uninstall-man1 .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \ check-am clean clean-generic clean-recursive ctags \ ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-shar \ dist-tarZ dist-zip distcheck distclean distclean-generic \ distclean-hdr distclean-recursive distclean-tags \ distcleancheck distdir distuninstallcheck dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-data-local install-desktopDATA \ install-exec install-exec-am install-iconDATA install-info \ install-info-am install-man install-man1 install-strip \ installcheck installcheck-am installdirs installdirs-am \ maintainer-clean maintainer-clean-generic \ maintainer-clean-recursive mostlyclean mostlyclean-generic \ mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am uninstall-desktopDATA \ uninstall-iconDATA uninstall-info-am uninstall-local \ uninstall-man uninstall-man1 @INTLTOOL_DESKTOP_RULE@ install-data-local: $(top_srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/de/man1/ $(INSTALL_DATA) $(srcdir)/katoob.de.1 $(DESTDIR)$(mandir)/de/man1/katoob.1 uninstall-local: rm -f $(DESTDIR)$(mandir)/de/man1/katoob.1 # 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: katoob-0.5.9.1/config.h.in0000644000175000017500000000760210746620156012123 00000000000000/* config.h.in. Generated from configure.in by autoheader. */ /* Enable dbus. */ #undef ENABLE_DBUS /* Enable dict.. */ #undef ENABLE_DICT /* Enable emulator. */ #undef ENABLE_EMULATOR /* Enable syntax highlighting */ #undef ENABLE_HIGHLIGHT /* Enable isocodes. */ #undef ENABLE_ISOCODES /* Enable maemo. */ #undef ENABLE_MAEMO /* Enable multipress. */ #undef ENABLE_MULTIPRESS /* always defined to indicate that i18n is enabled */ #undef ENABLE_NLS /* Enable printing. */ #undef ENABLE_PRINT /* Enable spell checking. */ #undef ENABLE_SPELL /* Define to 1 if you have the `bind_textdomain_codeset' function. */ #undef HAVE_BIND_TEXTDOMAIN_CODESET /* Enable bzip2 support */ #undef HAVE_BZIP2 /* Define to 1 if you have the `dcgettext' function. */ #undef HAVE_DCGETTEXT /* Enable fribidi support. */ #undef HAVE_FRIBIDI /* Define if the GNU gettext() function is already present or preinstalled. */ #undef HAVE_GETTEXT /* Enable gzip support */ #undef HAVE_GZIP /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define if your file defines LC_MESSAGES. */ #undef HAVE_LC_MESSAGES /* Define to 1 if you have a functional curl library. */ #undef HAVE_LIBCURL /* Define to 1 if you have the header file. */ #undef HAVE_LOCALE_H /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the 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 header file. */ #undef HAVE_UNISTD_H /* ISO codes prefix */ #undef ISOCODES_PREFIX /* Defined if libcurl supports AsynchDNS */ #undef LIBCURL_FEATURE_ASYNCHDNS /* Defined if libcurl supports IDN */ #undef LIBCURL_FEATURE_IDN /* Defined if libcurl supports IPv6 */ #undef LIBCURL_FEATURE_IPV6 /* Defined if libcurl supports KRB4 */ #undef LIBCURL_FEATURE_KRB4 /* Defined if libcurl supports libz */ #undef LIBCURL_FEATURE_LIBZ /* Defined if libcurl supports NTLM */ #undef LIBCURL_FEATURE_NTLM /* Defined if libcurl supports SSL */ #undef LIBCURL_FEATURE_SSL /* Defined if libcurl supports SSPI */ #undef LIBCURL_FEATURE_SSPI /* Defined if libcurl supports DICT */ #undef LIBCURL_PROTOCOL_DICT /* Defined if libcurl supports FILE */ #undef LIBCURL_PROTOCOL_FILE /* Defined if libcurl supports FTP */ #undef LIBCURL_PROTOCOL_FTP /* Defined if libcurl supports FTPS */ #undef LIBCURL_PROTOCOL_FTPS /* Defined if libcurl supports HTTP */ #undef LIBCURL_PROTOCOL_HTTP /* Defined if libcurl supports HTTPS */ #undef LIBCURL_PROTOCOL_HTTPS /* Defined if libcurl supports LDAP */ #undef LIBCURL_PROTOCOL_LDAP /* Defined if libcurl supports TELNET */ #undef LIBCURL_PROTOCOL_TELNET /* Defined if libcurl supports TFTP */ #undef LIBCURL_PROTOCOL_TFTP /* Name of package */ #undef PACKAGE /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* PACKAGE_DATA_DIR */ #undef PACKAGE_DATA_DIR /* PACKAGE_LOCALE_DIR */ #undef PACKAGE_LOCALE_DIR /* 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 version of this package. */ #undef PACKAGE_VERSION /* PREFIX */ #undef PREFIX /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Version number of package */ #undef VERSION /* Define curl_free() as free() if our version of curl lacks curl_free. */ #undef curl_free katoob-0.5.9.1/katoob.desktop.in.in0000644000175000017500000000041510746617675013773 00000000000000[Desktop Entry] Version=1.0 Type=Application _Name=Katoob _Comment=Multilingual Unicode Text Editor TryExec=@prefix@/katoob Exec=@prefix@/bin/katoob %F Icon=@KATOOB_ICON@ Encoding=UTF-8 Terminal=false Categories=Utility;TextEditor MimeType=text/plain; @X_OSSO_SERVICE@ katoob-0.5.9.1/configure0000755000175000017500000111574010746620161012007 00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.61. # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, # 2002, 2003, 2004, 2005, 2006 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=: # Zsh 3.x and 4.x performs 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 # PATH needs CR # 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 # 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 # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false 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.) as_nl=' ' 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 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 { (exit 1); exit 1; } fi # Work around bugs in pre-3.0 UWIN ksh. for as_var in ENV MAIL MAILPATH do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var fi done # Required to use basename. 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 # Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # CDPATH. $as_unset CDPATH if test "x$CONFIG_SHELL" = x; then if (eval ":") 2>/dev/null; then as_have_required=yes else as_have_required=no fi if test $as_have_required = yes && (eval ": (as_func_return () { (exit \$1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = \"\$1\" ); then : else exitcode=1 echo positional parameters were not saved. fi test \$exitcode = 0) || { (exit 1); exit 1; } ( as_lineno_1=\$LINENO as_lineno_2=\$LINENO test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } ") 2> /dev/null; then : else as_candidate_shells= as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. case $as_dir in /*) for as_base in sh bash ksh sh5; do as_candidate_shells="$as_candidate_shells $as_dir/$as_base" done;; esac done IFS=$as_save_IFS for as_shell in $as_candidate_shells $SHELL; do # Try only shells that exist, to save several forks. if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { ("$as_shell") 2> /dev/null <<\_ASEOF if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs 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 : _ASEOF }; then CONFIG_SHELL=$as_shell as_have_required=yes if { "$as_shell" 2> /dev/null <<\_ASEOF if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs 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_func_return () { (exit $1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = "$1" ); then : else exitcode=1 echo positional parameters were not saved. fi test $exitcode = 0) || { (exit 1); exit 1; } ( as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } _ASEOF }; then break fi fi done if test "x$CONFIG_SHELL" != x; then for as_var in BASH_ENV ENV do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done export CONFIG_SHELL exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} fi if test $as_have_required = no; then echo This script requires a shell more modern than all the echo shells that I found on your system. Please install a echo modern shell, or manually run the script under such a echo shell if you do have one. { (exit 1); exit 1; } fi fi fi (eval "as_func_return () { (exit \$1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = \"\$1\" ); then : else exitcode=1 echo positional parameters were not saved. fi test \$exitcode = 0") || { echo No shell found that supports shell functions. echo Please tell autoconf@gnu.org about your system, echo including any error possibly output before this echo message } as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line after each line using $LINENO; the second 'sed' # does the real work. The second script uses 'N' to pair each # line-number line with the line containing $LINENO, and appends # trailing '-' during substitution so that $LINENO is not a special # case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # scripts with optimization help from Paolo Bonzini. 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" || { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); 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 } if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in -n*) case `echo 'x\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. *) ECHO_C='\c';; esac;; *) ECHO_N='-n';; esac if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi 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 fi echo >conf$$.file 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 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=: 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 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. PACKAGE_NAME= PACKAGE_TARNAME= PACKAGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT= ac_unique_file="src/main.cc" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir localstatedir includedir oldincludedir docdir infodir htmldir dvidir pdfdir psdir libdir localedir mandir DEFS ECHO_C ECHO_N ECHO_T LIBS build_alias host_alias target_alias INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot INTLTOOL_DESKTOP_RULE INTLTOOL_DIRECTORY_RULE INTLTOOL_KEYS_RULE INTLTOOL_PROP_RULE INTLTOOL_OAF_RULE INTLTOOL_PONG_RULE INTLTOOL_SERVER_RULE INTLTOOL_SHEET_RULE INTLTOOL_SOUNDLIST_RULE INTLTOOL_UI_RULE INTLTOOL_XAM_RULE INTLTOOL_KBD_RULE INTLTOOL_XML_RULE INTLTOOL_XML_NOMERGE_RULE INTLTOOL_CAVES_RULE INTLTOOL_SCHEMAS_RULE INTLTOOL_THEME_RULE INTLTOOL_SERVICE_RULE INTLTOOL_EXTRACT INTLTOOL_MERGE INTLTOOL_UPDATE INTLTOOL_PERL INTLTOOL_ICONV INTLTOOL_MSGFMT INTLTOOL_MSGMERGE INTLTOOL_XGETTEXT ALL_LINGUAS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE DATADIRNAME CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CPP GREP EGREP USE_NLS MSGFMT GMSGFMT XGETTEXT CATALOGS CATOBJEXT GMOFILES INSTOBJEXT INTLLIBS PO_IN_DATADIR_TRUE PO_IN_DATADIR_FALSE POFILES POSUB MKINSTALLDIRS _libcurl_config LIBCURL_CPPFLAGS LIBCURL DICT_TRUE DICT_FALSE PKG_CONFIG KATOOB_CFLAGS KATOOB_LIBS ISOCODES_CFLAGS ISOCODES_LIBS ISOCODES_TRUE ISOCODES_FALSE SPELL_CFLAGS SPELL_LIBS SPELL_TRUE SPELL_FALSE FRIBIDI_CONFIG FRIBIDI_TRUE FRIBIDI_FALSE PRINT_CFLAGS PRINT_LIBS PRINT_TRUE PRINT_FALSE DBUS_CFLAGS DBUS_LIBS DBUS_TRUE DBUS_FALSE EMULATOR_TRUE EMULATOR_FALSE MULTIPRESS_TRUE MULTIPRESS_FALSE MAEMO_CFLAGS MAEMO_LIBS X_OSSO_SERVICE KATOOB_ICON MAEMO_TRUE MAEMO_FALSE GTKSOURCEVIEW_CFLAGS GTKSOURCEVIEW_LIBS HIGHLIGHT_TRUE HIGHLIGHT_FALSE WIN32_TRUE WIN32_FALSE GETTEXT_PACKAGE FRIBIDI_CFLAGS FRIBIDI_LIBS BZ2_LIBS LIBOBJS LTLIBOBJS' ac_subst_files='' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CXX CXXFLAGS CCC CPP PKG_CONFIG KATOOB_CFLAGS KATOOB_LIBS ISOCODES_CFLAGS ISOCODES_LIBS SPELL_CFLAGS SPELL_LIBS PRINT_CFLAGS PRINT_LIBS DBUS_CFLAGS DBUS_LIBS MAEMO_CFLAGS MAEMO_LIBS GTKSOURCEVIEW_CFLAGS GTKSOURCEVIEW_LIBS' # Initialize some variables set by options. ac_init_help= ac_init_version=false # 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}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` eval enable_$ac_feature=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_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` eval enable_$ac_feature=\$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_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package | sed 's/[-.]/_/g'` eval with_$ac_package=\$ac_optarg ;; -without-* | --without-*) ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package | sed 's/[-.]/_/g'` eval with_$ac_package=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 ;; -*) { echo "$as_me: error: unrecognized option: $ac_option Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 { (exit 1); exit 1; }; } eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 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'` { echo "$as_me: error: missing argument to $ac_option" >&2 { (exit 1); exit 1; }; } fi # Be sure to have absolute directory names. 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 case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 { (exit 1); exit 1; }; } 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 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 .` || { echo "$as_me: error: Working directory cannot be determined" >&2 { (exit 1); exit 1; }; } test "X$ac_ls_di" = "X$ac_pwd_ls_di" || { echo "$as_me: error: pwd does not report name of working directory" >&2 { (exit 1); exit 1; }; } # 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 -- "$0" || $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$0" : 'X\(//\)[^/]' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X"$0" | 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 .." { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 { (exit 1); exit 1; }; } fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 { (exit 1); exit 1; }; } 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 this package 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/PACKAGE] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names _ACEOF fi if test -n "$ac_init_help"; then cat <<\_ACEOF Optional Features: --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 --enable-profile Include profiling information. (default: no) --enable-maemo Enable maemo support. (default: no) --enable-bzip2 Enable bzip2 support. (default: yes) --enable-gzip Enable gzip support. (default: yes) --enable-multipress Enable multipress. (default: yes) --enable-emulator Enable emulator. (default: yes) --enable-highlight Enable source code highlighting. (default: no) --enable-release Don't include debugging symbols. (default: yes) --enable-spell Enable the spell checker (default: no) --enable-isocodes Enable isocodes (default: no) --enable-print Enable printing support. (default: yes) --enable-dbus Enable D-BUS support. (default: no) --enable-fribidi Use fribidi. (default: no) --enable-dict Enable dict protocol support. (default: yes) Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-libcurl=DIR look for the curl library in DIR 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 C/C++/Objective C preprocessor flags, e.g. -I if you have headers in a nonstandard directory CXX C++ compiler command CXXFLAGS C++ compiler flags CPP C preprocessor PKG_CONFIG path to pkg-config utility KATOOB_CFLAGS C compiler flags for KATOOB, overriding pkg-config KATOOB_LIBS linker flags for KATOOB, overriding pkg-config ISOCODES_CFLAGS C compiler flags for ISOCODES, overriding pkg-config ISOCODES_LIBS linker flags for ISOCODES, overriding pkg-config SPELL_CFLAGS C compiler flags for SPELL, overriding pkg-config SPELL_LIBS linker flags for SPELL, overriding pkg-config PRINT_CFLAGS C compiler flags for PRINT, overriding pkg-config PRINT_LIBS linker flags for PRINT, overriding pkg-config DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config DBUS_LIBS linker flags for DBUS, overriding pkg-config MAEMO_CFLAGS C compiler flags for MAEMO, overriding pkg-config MAEMO_LIBS linker flags for MAEMO, overriding pkg-config GTKSOURCEVIEW_CFLAGS C compiler flags for GTKSOURCEVIEW, overriding pkg-config GTKSOURCEVIEW_LIBS linker flags for GTKSOURCEVIEW, 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. _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" || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`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 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 configure generated by GNU Autoconf 2.61 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 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 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 $as_me, which was generated by GNU Autoconf 2.61. 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=. 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=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 2) ac_configure_args1="$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 ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac done done $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo cat <<\_ASBOX ## ---------------- ## ## Cache variables. ## ## ---------------- ## _ASBOX echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( *) $as_unset $ac_var ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo cat <<\_ASBOX ## ----------------- ## ## Output variables. ## ## ----------------- ## _ASBOX echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then cat <<\_ASBOX ## ------------------- ## ## File substitutions. ## ## ------------------- ## _ASBOX echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then cat <<\_ASBOX ## ----------- ## ## confdefs.h. ## ## ----------- ## _ASBOX echo cat confdefs.h echo fi test "$ac_signal" != 0 && echo "$as_me: caught signal $ac_signal" 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'; { (exit 1); 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 # 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 # Let the site file select an alternate cache file if it wants to. # Prefer explicitly selected file to automatically selected ones. if test -n "$CONFIG_SITE"; then set x "$CONFIG_SITE" elif test "x$prefix" != xNONE; then set x "$prefix/share/config.site" "$prefix/etc/config.site" else set x "$ac_default_prefix/share/config.site" \ "$ac_default_prefix/etc/config.site" fi shift for ac_site_file do if test -r "$ac_site_file"; then { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special # files actually), so we avoid doing that. if test -f "$cache_file"; then { echo "$as_me:$LINENO: loading cache $cache_file" >&5 echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { echo "$as_me:$LINENO: creating cache $cache_file" >&5 echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 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 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 echo "$as_me: former value: $ac_old_val" >&2;} { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 echo "$as_me: current value: $ac_new_val" >&2;} ac_cache_corrupted=: fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`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. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 echo "$as_me: error: changes in the environment can compromise the build" >&2;} { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} { (exit 1); exit 1; }; } 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 ac_config_headers="$ac_config_headers config.h" am__api_version="1.8" 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 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} { (exit 1); exit 1; }; } 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. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi done done ;; esac done IFS=$as_save_IFS 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 { echo "$as_me:$LINENO: result: $INSTALL" >&5 echo "${ECHO_T}$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' { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } # Just in case sleep 1 echo timestamp > conftest.file # 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". { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&5 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&2;} { (exit 1); exit 1; }; } fi test "$2" = conftest.file ) then # Ok. : else { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! Check your system clock" >&5 echo "$as_me: error: newly created file is older than distributed files! Check your system clock" >&2;} { (exit 1); exit 1; }; } fi { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}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 $. echo might interpret backslashes. # By default was `s,x,x', remove it if useless. cat <<\_ACEOF >conftest.sed s/[\\$]/&&/g;s/;s,x,x,$// _ACEOF program_transform_name=`echo $program_transform_name | sed -f conftest.sed` rm -f conftest.sed # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} fi if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then # Keeping the `.' argument allows $(mkdir_p) to be used without # argument. Indeed, we sometimes output rules like # $(mkdir_p) $(somedir) # where $(somedir) is conditionally defined. # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more # expensive solution, as it forces Make to start a sub-shell.) mkdir_p='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. for d in ./-p ./--version; do test -d $d && rmdir $d done # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. if test -f "$ac_aux_dir/mkinstalldirs"; then mkdir_p='$(mkinstalldirs)' else mkdir_p='$(install_sh) -d' fi fi 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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_AWK+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $AWK" >&5 echo "${ECHO_T}$AWK" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$AWK" && break done { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&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 { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } SET_MAKE= else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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 # test to see if srcdir already configured if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} { (exit 1); exit 1; }; } 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=katoob VERSION=0.5.9.1 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"} AMTAR=${AMTAR-"${am_missing_run}tar"} install_sh=${install_sh-"$am_aux_dir/install-sh"} # 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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $STRIP" >&5 echo "${ECHO_T}$STRIP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 echo "${ECHO_T}$ac_ct_STRIP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" # We need awk for the "check" target. The system "awk" is bad on # some platforms. DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo done .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # We grep out `Entering directory' and `Leaving directory' # messages which can occur if `w' ends up in MAKEFLAGS. # In particular we don't look at `^make:' because GNU make might # be invoked under some other name (usually "gmake"), in which # case it prints its new name instead of `make'. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then am__include=include am__quote= _am_result=GNU fi # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then am__include=.include am__quote="\"" _am_result=BSD fi fi { echo "$as_me:$LINENO: result: $_am_result" >&5 echo "${ECHO_T}$_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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&5 echo "$as_me: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } # Provide some information about the compiler. echo "$as_me:$LINENO: checking for C compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out 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. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # # List of possible output files, starting from the most likely. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) # only as a last resort. b.out is created by i960 compilers. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' # # The IRIX 6 linker writes into existing files which may not be # executable, retaining their permissions. Remove them first so a # subsequent execution test works. ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link_default") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; 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 | *.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 { echo "$as_me:$LINENO: result: $ac_file" >&5 echo "${ECHO_T}$ac_file" >&6; } if test -z "$ac_file"; then echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: C compiler cannot create executables See \`config.log' for more details." >&5 echo "$as_me: error: C compiler cannot create executables See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } fi ac_exeext=$ac_cv_exeext # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 # If not cross compiling, check that we can run a simple program. if test "$cross_compiling" != yes; then if { ac_try='./$ac_file' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { echo "$as_me:$LINENO: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&5 echo "$as_me: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi fi fi { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } rm -f a.out a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: $cross_compiling" >&5 echo "${ECHO_T}$cross_compiling" >&6; } { echo "$as_me:$LINENO: checking for suffix of executables" >&5 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; 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 | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest$ac_cv_exeext { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 echo "${ECHO_T}$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT { echo "$as_me:$LINENO: checking for suffix of object files" >&5 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } if test "${ac_cv_objext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; 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 ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 echo "${ECHO_T}$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } if test "${ac_cv_c_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 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 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } GCC=`test $ac_compiler_gnu = yes && echo yes` ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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 >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 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 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 echo "${ECHO_T}$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 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_c89+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* 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" 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_c89=$ac_arg else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 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) { echo "$as_me:$LINENO: result: none needed" >&5 echo "${ECHO_T}none needed" >&6; } ;; xno) { echo "$as_me:$LINENO: result: unsupported" >&5 echo "${ECHO_T}unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; esac 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= { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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 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 case $depmode in 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 ;; none) break ;; esac # 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. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} 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 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 echo "${ECHO_T}$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 case "$am__api_version" in 1.01234) { { echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5 echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;} { (exit 1); exit 1; }; } ;; *) ;; esac if test -n "0.18"; then { echo "$as_me:$LINENO: checking for intltool >= 0.18" >&5 echo $ECHO_N "checking for intltool >= 0.18... $ECHO_C" >&6; } INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.18 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in` INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($ 2, VERSION, "."); print VERSION[1] * 1000 + VERSION[2] * 100 + VERSION[3];}' ${ac_aux_dir}/intltool-update.in` { echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6; } test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || { { echo "$as_me:$LINENO: error: Your intltool is too old. You need intltool 0.18 or later." >&5 echo "$as_me: error: Your intltool is too old. You need intltool 0.18 or later." >&2;} { (exit 1); exit 1; }; } fi INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@' INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@' INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' # Use the tools built into the package, not the ones that are installed. INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract' INTLTOOL_MERGE='$(top_builddir)/intltool-merge' INTLTOOL_UPDATE='$(top_builddir)/intltool-update' # Extract the first word of "perl", so it can be a program name with args. set dummy perl; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $INTLTOOL_PERL in [\\/]* | ?:[\\/]*) ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL if test -n "$INTLTOOL_PERL"; then { echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5 echo "${ECHO_T}$INTLTOOL_PERL" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test -z "$INTLTOOL_PERL"; then { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5 echo "$as_me: error: perl not found; required for intltool" >&2;} { (exit 1); exit 1; }; } fi if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5 echo "$as_me: error: perl 5.x required for intltool" >&2;} { (exit 1); exit 1; }; } fi if test "x"no-xml"" != "xno-xml"; then { echo "$as_me:$LINENO: checking for XML::Parser" >&5 echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6; } if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; } else { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5 echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;} { (exit 1); exit 1; }; } fi fi # Extract the first word of "iconv", so it can be a program name with args. set dummy iconv; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_INTLTOOL_ICONV+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $INTLTOOL_ICONV in [\\/]* | ?:[\\/]*) ac_cv_path_INTLTOOL_ICONV="$INTLTOOL_ICONV" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_INTLTOOL_ICONV="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_INTLTOOL_ICONV" && ac_cv_path_INTLTOOL_ICONV="iconv" ;; esac fi INTLTOOL_ICONV=$ac_cv_path_INTLTOOL_ICONV if test -n "$INTLTOOL_ICONV"; then { echo "$as_me:$LINENO: result: $INTLTOOL_ICONV" >&5 echo "${ECHO_T}$INTLTOOL_ICONV" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_INTLTOOL_MSGFMT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $INTLTOOL_MSGFMT in [\\/]* | ?:[\\/]*) ac_cv_path_INTLTOOL_MSGFMT="$INTLTOOL_MSGFMT" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_INTLTOOL_MSGFMT="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_INTLTOOL_MSGFMT" && ac_cv_path_INTLTOOL_MSGFMT="msgfmt" ;; esac fi INTLTOOL_MSGFMT=$ac_cv_path_INTLTOOL_MSGFMT if test -n "$INTLTOOL_MSGFMT"; then { echo "$as_me:$LINENO: result: $INTLTOOL_MSGFMT" >&5 echo "${ECHO_T}$INTLTOOL_MSGFMT" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi # Extract the first word of "msgmerge", so it can be a program name with args. set dummy msgmerge; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_INTLTOOL_MSGMERGE+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $INTLTOOL_MSGMERGE in [\\/]* | ?:[\\/]*) ac_cv_path_INTLTOOL_MSGMERGE="$INTLTOOL_MSGMERGE" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_INTLTOOL_MSGMERGE="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_INTLTOOL_MSGMERGE" && ac_cv_path_INTLTOOL_MSGMERGE="msgmerge" ;; esac fi INTLTOOL_MSGMERGE=$ac_cv_path_INTLTOOL_MSGMERGE if test -n "$INTLTOOL_MSGMERGE"; then { echo "$as_me:$LINENO: result: $INTLTOOL_MSGMERGE" >&5 echo "${ECHO_T}$INTLTOOL_MSGMERGE" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_INTLTOOL_XGETTEXT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $INTLTOOL_XGETTEXT in [\\/]* | ?:[\\/]*) ac_cv_path_INTLTOOL_XGETTEXT="$INTLTOOL_XGETTEXT" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_INTLTOOL_XGETTEXT="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_INTLTOOL_XGETTEXT" && ac_cv_path_INTLTOOL_XGETTEXT="xgettext" ;; esac fi INTLTOOL_XGETTEXT=$ac_cv_path_INTLTOOL_XGETTEXT if test -n "$INTLTOOL_XGETTEXT"; then { echo "$as_me:$LINENO: result: $INTLTOOL_XGETTEXT" >&5 echo "${ECHO_T}$INTLTOOL_XGETTEXT" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi # Substitute ALL_LINGUAS so we can use it in po/Makefile # Set DATADIRNAME correctly if it is not set yet # (copied from glib-gettext.m4) if test -z "$DATADIRNAME"; then cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { extern int _nl_msg_cat_cntr; return _nl_msg_cat_cntr ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then DATADIRNAME=share else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 case $host in *-*-solaris*) { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; } if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define bind_textdomain_codeset to an innocuous variant, in case declares bind_textdomain_codeset. For example, HP-UX 11i declares gettimeofday. */ #define bind_textdomain_codeset innocuous_bind_textdomain_codeset /* System header to define __stub macros and hopefully few prototypes, which can conflict with char bind_textdomain_codeset (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef bind_textdomain_codeset /* 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 bind_textdomain_codeset (); /* 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_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset choke me #endif int main () { return bind_textdomain_codeset (); ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_func_bind_textdomain_codeset=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_bind_textdomain_codeset=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; } if test $ac_cv_func_bind_textdomain_codeset = yes; then DATADIRNAME=share else DATADIRNAME=lib fi ;; *) DATADIRNAME=lib ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_config_commands="$ac_config_commands intltool" ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -z "$CXX"; then if test -n "$CCC"; then CXX=$CCC else if test -n "$ac_tool_prefix"; then for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # 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_CXX="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then { echo "$as_me:$LINENO: result: $CXX" >&5 echo "${ECHO_T}$CXX" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # 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_CXX="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 echo "${ECHO_T}$ac_ct_CXX" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$ac_ct_CXX" && break done if test "x$ac_ct_CXX" = x; then CXX="g++" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX fi fi fi fi # Provide some information about the compiler. echo "$as_me:$LINENO: checking for C++ compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } if test "${ac_cv_cxx_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } GXX=`test $ac_compiler_gnu = yes && echo yes` ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_cxx_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cxx_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CXXFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cxx_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 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_cxx_werror_flag=$ac_save_cxx_werror_flag fi { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi 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="$CXX" am_compiler_list= { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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_CXX_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi 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 case $depmode in 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 ;; none) break ;; esac # 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. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} 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_CXX_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CXX_dependencies_compiler_type=none fi fi { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then am__fastdepCXX_TRUE= am__fastdepCXX_FALSE='#' else am__fastdepCXX_TRUE='#' am__fastdepCXX_FALSE= fi ALL_LINGUAS="ar cz de fr he ja pl sv" GETTEXT_PACKAGE=katoob 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 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&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 echo $ECHO_N "(cached) $ECHO_C" >&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 >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { echo "$as_me:$LINENO: result: $CPP" >&5 echo "${ECHO_T}$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 >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&5 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } 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 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } if test "${ac_cv_path_GREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Extract the first word of "grep ggrep" to use in msg output if test -z "$GREP"; then set dummy grep ggrep; ac_prog_name=$2 if test "${ac_cv_path_GREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else 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 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" 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 ac_count=`expr $ac_count + 1` 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 fi GREP="$ac_cv_path_GREP" if test -z "$GREP"; then { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_GREP=$GREP fi fi { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 echo "${ECHO_T}$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { echo "$as_me:$LINENO: checking for egrep" >&5 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } if test "${ac_cv_path_EGREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else # Extract the first word of "egrep" to use in msg output if test -z "$EGREP"; then set dummy egrep; ac_prog_name=$2 if test "${ac_cv_path_EGREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else 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 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" 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 ac_count=`expr $ac_count + 1` 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 fi EGREP="$ac_cv_path_EGREP" if test -z "$EGREP"; then { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_EGREP=$EGREP fi fi fi { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_header_stdc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 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 >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* 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 >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* 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 >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* 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 rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi fi { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then cat >>confdefs.h <<\_ACEOF #define STDC_HEADERS 1 _ACEOF 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=`echo "ac_cv_header_$ac_header" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then eval "$as_ac_Header=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_Header=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in locale.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done if test $ac_cv_header_locale_h = yes; then { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; } if test "${am_cv_val_LC_MESSAGES+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { return LC_MESSAGES ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then am_cv_val_LC_MESSAGES=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 am_cv_val_LC_MESSAGES=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; } if test $am_cv_val_LC_MESSAGES = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_LC_MESSAGES 1 _ACEOF fi fi USE_NLS=yes gt_cv_have_gettext=no CATOBJEXT=NONE XGETTEXT=: INTLLIBS= if test "${ac_cv_header_libintl_h+set}" = set; then { echo "$as_me:$LINENO: checking for libintl.h" >&5 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; } if test "${ac_cv_header_libintl_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking libintl.h usability" >&5 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking libintl.h presence" >&5 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for libintl.h" >&5 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; } if test "${ac_cv_header_libintl_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_header_libintl_h=$ac_header_preproc fi { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; } fi if test $ac_cv_header_libintl_h = yes; then gt_cv_func_dgettext_libintl="no" libintl_extra_libs="" # # First check in libc # { echo "$as_me:$LINENO: checking for ngettext in libc" >&5 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; } if test "${gt_cv_func_ngettext_libc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { return !ngettext ("","", 1) ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then gt_cv_func_ngettext_libc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 gt_cv_func_ngettext_libc=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; } if test "$gt_cv_func_ngettext_libc" = "yes" ; then { echo "$as_me:$LINENO: checking for dgettext in libc" >&5 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; } if test "${gt_cv_func_dgettext_libc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { return !dgettext ("","") ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then gt_cv_func_dgettext_libc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 gt_cv_func_dgettext_libc=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; } fi if test "$gt_cv_func_ngettext_libc" = "yes" ; then for ac_func in bind_textdomain_codeset do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* 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 $ac_func (); /* 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_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_var'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done fi # # If we don't have everything we want, check in libintl # if test "$gt_cv_func_dgettext_libc" != "yes" \ || test "$gt_cv_func_ngettext_libc" != "yes" \ || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; } if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* 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 bindtextdomain (); int main () { return bindtextdomain (); ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_intl_bindtextdomain=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_intl_bindtextdomain=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; } if test $ac_cv_lib_intl_bindtextdomain = yes; then { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; } if test "${ac_cv_lib_intl_ngettext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* 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 ngettext (); int main () { return ngettext (); ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_intl_ngettext=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_intl_ngettext=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; } if test $ac_cv_lib_intl_ngettext = yes; then { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; } if test "${ac_cv_lib_intl_dgettext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* 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 dgettext (); int main () { return dgettext (); ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_intl_dgettext=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_intl_dgettext=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; } if test $ac_cv_lib_intl_dgettext = yes; then gt_cv_func_dgettext_libintl=yes fi fi fi if test "$gt_cv_func_dgettext_libintl" != "yes" ; then { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: " >&5 echo "${ECHO_T}" >&6; } { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; } if test "${ac_cv_lib_intl_ngettext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl -liconv $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* 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 ngettext (); int main () { return ngettext (); ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_intl_ngettext=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_intl_ngettext=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; } if test $ac_cv_lib_intl_ngettext = yes; then { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; } if test "${ac_cv_lib_intl_dcgettext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl -liconv $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* 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 dcgettext (); int main () { return dcgettext (); ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_intl_dcgettext=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_intl_dcgettext=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; } if test $ac_cv_lib_intl_dcgettext = yes; then gt_cv_func_dgettext_libintl=yes libintl_extra_libs=-liconv else : fi else : fi fi # # If we found libintl, then check in it for bind_textdomain_codeset(); # we'll prefer libc if neither have bind_textdomain_codeset(), # and both have dgettext and ngettext # if test "$gt_cv_func_dgettext_libintl" = "yes" ; then glib_save_LIBS="$LIBS" LIBS="$LIBS -lintl $libintl_extra_libs" unset ac_cv_func_bind_textdomain_codeset for ac_func in bind_textdomain_codeset do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* 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 $ac_func (); /* 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_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_var'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done LIBS="$glib_save_LIBS" if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then gt_cv_func_dgettext_libc=no else if test "$gt_cv_func_dgettext_libc" = "yes" \ && test "$gt_cv_func_ngettext_libc" = "yes"; then gt_cv_func_dgettext_libintl=no fi fi fi fi if test "$gt_cv_func_dgettext_libc" = "yes" \ || test "$gt_cv_func_dgettext_libintl" = "yes"; then gt_cv_have_gettext=yes fi if test "$gt_cv_func_dgettext_libintl" = "yes"; then INTLLIBS="-lintl $libintl_extra_libs" fi if test "$gt_cv_have_gettext" = "yes"; then cat >>confdefs.h <<\_ACEOF #define HAVE_GETTEXT 1 _ACEOF # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_MSGFMT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case "$MSGFMT" in /*) ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then ac_cv_path_MSGFMT="$ac_dir/$ac_word" break fi fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" ;; esac fi MSGFMT="$ac_cv_path_MSGFMT" if test "$MSGFMT" != "no"; then { echo "$as_me:$LINENO: result: $MSGFMT" >&5 echo "${ECHO_T}$MSGFMT" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "$MSGFMT" != "no"; then glib_save_LIBS="$LIBS" LIBS="$LIBS $INTLLIBS" for ac_func in dcgettext do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* 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 $ac_func (); /* 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_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_var'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_GMSGFMT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5 echo "${ECHO_T}$GMSGFMT" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_XGETTEXT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case "$XGETTEXT" in /*) ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then ac_cv_path_XGETTEXT="$ac_dir/$ac_word" break fi fi 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 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5 echo "${ECHO_T}$XGETTEXT" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { extern int _nl_msg_cat_cntr; return _nl_msg_cat_cntr ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then CATOBJEXT=.gmo DATADIRNAME=share else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 case $host in *-*-solaris*) { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; } if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define bind_textdomain_codeset to an innocuous variant, in case declares bind_textdomain_codeset. For example, HP-UX 11i declares gettimeofday. */ #define bind_textdomain_codeset innocuous_bind_textdomain_codeset /* System header to define __stub macros and hopefully few prototypes, which can conflict with char bind_textdomain_codeset (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef bind_textdomain_codeset /* 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 bind_textdomain_codeset (); /* 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_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset choke me #endif int main () { return bind_textdomain_codeset (); ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_func_bind_textdomain_codeset=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_bind_textdomain_codeset=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; } if test $ac_cv_func_bind_textdomain_codeset = yes; then CATOBJEXT=.gmo DATADIRNAME=share else CATOBJEXT=.mo DATADIRNAME=lib fi ;; *) CATOBJEXT=.mo DATADIRNAME=lib ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS="$glib_save_LIBS" INSTOBJEXT=.mo else gt_cv_have_gettext=no fi fi fi if test "$gt_cv_have_gettext" = "yes" ; then cat >>confdefs.h <<\_ACEOF #define ENABLE_NLS 1 _ACEOF fi if test "$XGETTEXT" != ":"; then if $XGETTEXT --omit-header /dev/null 2> /dev/null; then : ; else { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; } XGETTEXT=":" fi fi # We need to process the po/ directory. POSUB=po ac_config_commands="$ac_config_commands default-1" for lang in $ALL_LINGUAS; do GMOFILES="$GMOFILES $lang.gmo" POFILES="$POFILES $lang.po" done if test "$gt_cv_have_gettext" = "yes"; then if test "x$ALL_LINGUAS" = "x"; then LINGUAS= else { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; } NEW_LINGUAS= for presentlang in $ALL_LINGUAS; do useit=no if test "%UNSET%" != "${LINGUAS-%UNSET%}"; 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 NEW_LINGUAS="$NEW_LINGUAS $presentlang" fi done LINGUAS=$NEW_LINGUAS { echo "$as_me:$LINENO: result: $LINGUAS" >&5 echo "${ECHO_T}$LINGUAS" >&6; } fi if test -n "$LINGUAS"; then for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done fi fi MKINSTALLDIRS= if test -n "$ac_aux_dir"; then MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" fi if test -z "$MKINSTALLDIRS"; then MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" fi test -d po || mkdir po if test "x$srcdir" != "x."; then if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then posrcprefix="$srcdir/" else posrcprefix="../$srcdir/" fi else posrcprefix="../" fi rm -f po/POTFILES sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ < $srcdir/po/POTFILES.in > po/POTFILES # Check whether --enable-profile was given. if test "${enable_profile+set}" = set; then enableval=$enable_profile; profile=$enableval else profile=no fi # Check whether --enable-maemo was given. if test "${enable_maemo+set}" = set; then enableval=$enable_maemo; maemo=$enableval else maemo=no fi # Check whether --enable-bzip2 was given. if test "${enable_bzip2+set}" = set; then enableval=$enable_bzip2; bzip2=$enableval else bzip2=yes fi # Check whether --enable-gzip was given. if test "${enable_gzip+set}" = set; then enableval=$enable_gzip; gzip=$enableval else gzip=yes fi # Check whether --enable-multipress was given. if test "${enable_multipress+set}" = set; then enableval=$enable_multipress; multipress=$enableval else multipress=yes fi # Check whether --enable-emulator was given. if test "${enable_emulator+set}" = set; then enableval=$enable_emulator; emulator=$enableval else emulator=yes fi # Check whether --enable-highlight was given. if test "${enable_highlight+set}" = set; then enableval=$enable_highlight; highlight=$enableval else highlight=no fi # Check whether --enable-release was given. if test "${enable_release+set}" = set; then enableval=$enable_release; release=$enableval else release=yes fi # Check whether --enable-spell was given. if test "${enable_spell+set}" = set; then enableval=$enable_spell; spell=$enableval else spell=no fi # Check whether --enable-isocodes was given. if test "${enable_isocodes+set}" = set; then enableval=$enable_isocodes; isocodes=$enableval else isocodes=no fi # Check whether --enable-print was given. if test "${enable_print+set}" = set; then enableval=$enable_print; print=$enableval else print=yes fi # Check whether --enable-dbus was given. if test "${enable_dbus+set}" = set; then enableval=$enable_dbus; dbus=$enableval else dbus=no fi # Check whether --enable-fribidi was given. if test "${enable_fribidi+set}" = set; then enableval=$enable_fribidi; fribidi=$enableval else fribidi=no fi # Check whether --enable-dict was given. if test "${enable_dict+set}" = set; then enableval=$enable_dict; dict=$enableval else dict=yes fi # Check whether --with-libcurl was given. if test "${with_libcurl+set}" = set; then withval=$with_libcurl; _libcurl_with=$withval else _libcurl_with=yes fi if test "$_libcurl_with" != "no" ; then 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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_AWK+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $AWK" >&5 echo "${ECHO_T}$AWK" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$AWK" && break done _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'" _libcurl_try_link=yes if test -d "$_libcurl_with" ; then LIBCURL_CPPFLAGS="-I$withval/include" _libcurl_ldflags="-L$withval/lib" # Extract the first word of "curl-config", so it can be a program name with args. set dummy curl-config; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path__libcurl_config+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $_libcurl_config in [\\/]* | ?:[\\/]*) ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in "$withval/bin" 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__libcurl_config="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path__libcurl_config" && ac_cv_path__libcurl_config=""$withval/bin"" ;; esac fi _libcurl_config=$ac_cv_path__libcurl_config if test -n "$_libcurl_config"; then { echo "$as_me:$LINENO: result: $_libcurl_config" >&5 echo "${ECHO_T}$_libcurl_config" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi else # Extract the first word of "curl-config", so it can be a program name with args. set dummy curl-config; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path__libcurl_config+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $_libcurl_config in [\\/]* | ?:[\\/]*) ac_cv_path__libcurl_config="$_libcurl_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__libcurl_config="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi _libcurl_config=$ac_cv_path__libcurl_config if test -n "$_libcurl_config"; then { echo "$as_me:$LINENO: result: $_libcurl_config" >&5 echo "${ECHO_T}$_libcurl_config" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test x$_libcurl_config != "x" ; then { echo "$as_me:$LINENO: checking for the version of libcurl" >&5 echo $ECHO_N "checking for the version of libcurl... $ECHO_C" >&6; } if test "${libcurl_cv_lib_curl_version+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'` fi { echo "$as_me:$LINENO: result: $libcurl_cv_lib_curl_version" >&5 echo "${ECHO_T}$libcurl_cv_lib_curl_version" >&6; } _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse` _libcurl_wanted=`echo 0 | $_libcurl_version_parse` if test $_libcurl_wanted -gt 0 ; then { echo "$as_me:$LINENO: checking for libcurl >= version " >&5 echo $ECHO_N "checking for libcurl >= version ... $ECHO_C" >&6; } if test "${libcurl_cv_lib_version_ok+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test $_libcurl_version -ge $_libcurl_wanted ; then libcurl_cv_lib_version_ok=yes else libcurl_cv_lib_version_ok=no fi fi { echo "$as_me:$LINENO: result: $libcurl_cv_lib_version_ok" >&5 echo "${ECHO_T}$libcurl_cv_lib_version_ok" >&6; } fi if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then if test x"$LIBCURL_CPPFLAGS" = "x" ; then LIBCURL_CPPFLAGS=`$_libcurl_config --cflags` fi if test x"$LIBCURL" = "x" ; then LIBCURL=`$_libcurl_config --libs` # This is so silly, but Apple actually has a bug in their # curl-config script. Fixed in Tiger, but there are still # lots of Panther installs around. case "${host}" in powerpc-apple-darwin7*) LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'` ;; esac fi # All curl-config scripts support --feature _libcurl_features=`$_libcurl_config --feature` # Is it modern enough to have --protocols? (7.12.4) if test $_libcurl_version -ge 461828 ; then _libcurl_protocols=`$_libcurl_config --protocols` fi else _libcurl_try_link=no fi unset _libcurl_wanted fi if test $_libcurl_try_link = yes ; then # we didn't find curl-config, so let's see if the user-supplied # link line (or failing that, "-lcurl") is enough. LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"} { echo "$as_me:$LINENO: checking whether libcurl is usable" >&5 echo $ECHO_N "checking whether libcurl is usable... $ECHO_C" >&6; } if test "${libcurl_cv_lib_curl_usable+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else _libcurl_save_cppflags=$CPPFLAGS CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS" _libcurl_save_libs=$LIBS LIBS="$LIBCURL $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { /* Try and use a few common options to force a failure if we are missing symbols or can't link. */ int x; curl_easy_setopt(NULL,CURLOPT_URL,NULL); x=CURL_ERROR_SIZE; x=CURLOPT_WRITEFUNCTION; x=CURLOPT_FILE; x=CURLOPT_ERRORBUFFER; x=CURLOPT_STDERR; x=CURLOPT_VERBOSE; ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then libcurl_cv_lib_curl_usable=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 libcurl_cv_lib_curl_usable=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext CPPFLAGS=$_libcurl_save_cppflags LIBS=$_libcurl_save_libs unset _libcurl_save_cppflags unset _libcurl_save_libs fi { echo "$as_me:$LINENO: result: $libcurl_cv_lib_curl_usable" >&5 echo "${ECHO_T}$libcurl_cv_lib_curl_usable" >&6; } if test $libcurl_cv_lib_curl_usable = yes ; then # Does curl_free() exist in this version of libcurl? # If not, fake it with free() _libcurl_save_cppflags=$CPPFLAGS CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS" _libcurl_save_libs=$LIBS LIBS="$LIBS $LIBCURL" { echo "$as_me:$LINENO: checking for curl_free" >&5 echo $ECHO_N "checking for curl_free... $ECHO_C" >&6; } if test "${ac_cv_func_curl_free+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define curl_free to an innocuous variant, in case declares curl_free. For example, HP-UX 11i declares gettimeofday. */ #define curl_free innocuous_curl_free /* System header to define __stub macros and hopefully few prototypes, which can conflict with char curl_free (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef curl_free /* 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 curl_free (); /* 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_curl_free || defined __stub___curl_free choke me #endif int main () { return curl_free (); ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_func_curl_free=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_curl_free=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_func_curl_free" >&5 echo "${ECHO_T}$ac_cv_func_curl_free" >&6; } if test $ac_cv_func_curl_free = yes; then : else cat >>confdefs.h <<\_ACEOF #define curl_free free _ACEOF fi CPPFLAGS=$_libcurl_save_cppflags LIBS=$_libcurl_save_libs unset _libcurl_save_cppflags unset _libcurl_save_libs cat >>confdefs.h <<\_ACEOF #define HAVE_LIBCURL 1 _ACEOF for _libcurl_feature in $_libcurl_features ; do cat >>confdefs.h <<_ACEOF #define `echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1 _ACEOF eval `echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes done if test "x$_libcurl_protocols" = "x" ; then # We don't have --protocols, so just assume that all # protocols are available _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT" if test x$libcurl_feature_SSL = xyes ; then _libcurl_protocols="$_libcurl_protocols HTTPS" # FTPS wasn't standards-compliant until version # 7.11.0 if test $_libcurl_version -ge 461568; then _libcurl_protocols="$_libcurl_protocols FTPS" fi fi fi for _libcurl_protocol in $_libcurl_protocols ; do cat >>confdefs.h <<_ACEOF #define `echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1 _ACEOF eval `echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes done else unset LIBCURL unset LIBCURL_CPPFLAGS fi fi unset _libcurl_try_link unset _libcurl_version_parse unset _libcurl_config unset _libcurl_feature unset _libcurl_features unset _libcurl_protocol unset _libcurl_protocols unset _libcurl_version unset _libcurl_ldflags fi if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then # This is the IF-NO path { { echo "$as_me:$LINENO: error: libcurl not found." >&5 echo "$as_me: error: libcurl not found." >&2;} { (exit 1); exit 1; }; } else # This is the IF-YES path curl=yes fi unset _libcurl_with if test "$CXX" = "g++" ; then CXXFLAGS="$CXXFLAGS -pipe -Wall" fi if test "$CCC" = "gcc" ; then CFLAGS="$CFLAGS -pipe -Wall" fi if test "$profile" = yes ; then CFLAGS="$CFLAGS -pg -fprofile-arcs" fi if test "x$dict" = "xyes"; then if test "$libcurl_protocol_DICT" != "yes"; then { { echo "$as_me:$LINENO: error: libcurl doesn't support DICT." >&5 echo "$as_me: error: libcurl doesn't support DICT." >&2;} { (exit 1); exit 1; }; } else cat >>confdefs.h <<\_ACEOF #define ENABLE_DICT _ACEOF fi fi if text "x$dict" = "xyes"; then DICT_TRUE= DICT_FALSE='#' else DICT_TRUE='#' DICT_FALSE= fi if test "x${prefix}" = "xNONE"; then cat >>confdefs.h <<_ACEOF #define PREFIX "${ac_default_prefix}" _ACEOF else cat >>confdefs.h <<_ACEOF #define PREFIX "${prefix}" _ACEOF fi if test "x${prefix}" = "xNONE"; then cat >>confdefs.h <<_ACEOF #define PACKAGE_LOCALE_DIR "${ac_default_prefix}/${DATADIRNAME}/locale" _ACEOF else cat >>confdefs.h <<_ACEOF #define PACKAGE_LOCALE_DIR "${prefix}/${DATADIRNAME}/locale" _ACEOF fi if test "x${datadir}" = 'x${prefix}/share'; then if test "x${prefix}" = "xNONE"; then cat >>confdefs.h <<_ACEOF #define PACKAGE_DATA_DIR "${ac_default_prefix}/share/${PACKAGE}" _ACEOF else cat >>confdefs.h <<_ACEOF #define PACKAGE_DATA_DIR "${prefix}/share/${PACKAGE}" _ACEOF fi else cat >>confdefs.h <<_ACEOF #define PACKAGE_DATA_DIR "${datadir}/${PACKAGE}" _ACEOF fi 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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_PKG_CONFIG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 echo "${ECHO_T}$PKG_CONFIG" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&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 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } PKG_CONFIG="" fi fi pkg_failed=no { echo "$as_me:$LINENO: checking for KATOOB" >&5 echo $ECHO_N "checking for KATOOB... $ECHO_C" >&6; } if test -n "$PKG_CONFIG"; then if test -n "$KATOOB_CFLAGS"; then pkg_cv_KATOOB_CFLAGS="$KATOOB_CFLAGS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtkmm-2.4 >= 2.10.0\"") >&5 ($PKG_CONFIG --exists --print-errors "gtkmm-2.4 >= 2.10.0") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_KATOOB_CFLAGS=`$PKG_CONFIG --cflags "gtkmm-2.4 >= 2.10.0" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test -n "$PKG_CONFIG"; then if test -n "$KATOOB_LIBS"; then pkg_cv_KATOOB_LIBS="$KATOOB_LIBS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtkmm-2.4 >= 2.10.0\"") >&5 ($PKG_CONFIG --exists --print-errors "gtkmm-2.4 >= 2.10.0") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_KATOOB_LIBS=`$PKG_CONFIG --libs "gtkmm-2.4 >= 2.10.0" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test $pkg_failed = yes; then if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then KATOOB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtkmm-2.4 >= 2.10.0"` else KATOOB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtkmm-2.4 >= 2.10.0"` fi # Put the nasty error message in config.log where it belongs echo "$KATOOB_PKG_ERRORS" >&5 { { echo "$as_me:$LINENO: error: Package requirements (gtkmm-2.4 >= 2.10.0) were not met: $KATOOB_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 KATOOB_CFLAGS and KATOOB_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. " >&5 echo "$as_me: error: Package requirements (gtkmm-2.4 >= 2.10.0) were not met: $KATOOB_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 KATOOB_CFLAGS and KATOOB_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. " >&2;} { (exit 1); exit 1; }; } elif test $pkg_failed = untried; then { { echo "$as_me:$LINENO: 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 KATOOB_CFLAGS and KATOOB_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." >&5 echo "$as_me: 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 KATOOB_CFLAGS and KATOOB_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." >&2;} { (exit 1); exit 1; }; } else KATOOB_CFLAGS=$pkg_cv_KATOOB_CFLAGS KATOOB_LIBS=$pkg_cv_KATOOB_LIBS { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } : fi if test "$isocodes" = yes; then if test "$spell" = no; then { { echo "$as_me:$LINENO: error: You can't enable isocodes and disable spell." >&5 echo "$as_me: error: You can't enable isocodes and disable spell." >&2;} { (exit 1); exit 1; }; } else pkg_failed=no { echo "$as_me:$LINENO: checking for ISOCODES" >&5 echo $ECHO_N "checking for ISOCODES... $ECHO_C" >&6; } if test -n "$PKG_CONFIG"; then if test -n "$ISOCODES_CFLAGS"; then pkg_cv_ISOCODES_CFLAGS="$ISOCODES_CFLAGS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"iso-codes\"") >&5 ($PKG_CONFIG --exists --print-errors "iso-codes") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_ISOCODES_CFLAGS=`$PKG_CONFIG --cflags "iso-codes" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test -n "$PKG_CONFIG"; then if test -n "$ISOCODES_LIBS"; then pkg_cv_ISOCODES_LIBS="$ISOCODES_LIBS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"iso-codes\"") >&5 ($PKG_CONFIG --exists --print-errors "iso-codes") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_ISOCODES_LIBS=`$PKG_CONFIG --libs "iso-codes" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test $pkg_failed = yes; then if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then ISOCODES_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "iso-codes"` else ISOCODES_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "iso-codes"` fi # Put the nasty error message in config.log where it belongs echo "$ISOCODES_PKG_ERRORS" >&5 { { echo "$as_me:$LINENO: error: Package requirements (iso-codes) were not met: $ISOCODES_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 ISOCODES_CFLAGS and ISOCODES_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. " >&5 echo "$as_me: error: Package requirements (iso-codes) were not met: $ISOCODES_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 ISOCODES_CFLAGS and ISOCODES_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. " >&2;} { (exit 1); exit 1; }; } elif test $pkg_failed = untried; then { { echo "$as_me:$LINENO: 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 ISOCODES_CFLAGS and ISOCODES_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." >&5 echo "$as_me: 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 ISOCODES_CFLAGS and ISOCODES_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." >&2;} { (exit 1); exit 1; }; } else ISOCODES_CFLAGS=$pkg_cv_ISOCODES_CFLAGS ISOCODES_LIBS=$pkg_cv_ISOCODES_LIBS { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } : fi cat >>confdefs.h <<_ACEOF #define ISOCODES_PREFIX "`$PKG_CONFIG --variable=prefix iso-codes`" _ACEOF cat >>confdefs.h <<\_ACEOF #define ENABLE_ISOCODES _ACEOF fi fi if test "x$isocodes" = "xyes"; then ISOCODES_TRUE= ISOCODES_FALSE='#' else ISOCODES_TRUE='#' ISOCODES_FALSE= fi if test "$spell" = yes; then pkg_failed=no { echo "$as_me:$LINENO: checking for SPELL" >&5 echo $ECHO_N "checking for SPELL... $ECHO_C" >&6; } if test -n "$PKG_CONFIG"; then if test -n "$SPELL_CFLAGS"; then pkg_cv_SPELL_CFLAGS="$SPELL_CFLAGS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"enchant >= 1.3.0\"") >&5 ($PKG_CONFIG --exists --print-errors "enchant >= 1.3.0") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_SPELL_CFLAGS=`$PKG_CONFIG --cflags "enchant >= 1.3.0" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test -n "$PKG_CONFIG"; then if test -n "$SPELL_LIBS"; then pkg_cv_SPELL_LIBS="$SPELL_LIBS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"enchant >= 1.3.0\"") >&5 ($PKG_CONFIG --exists --print-errors "enchant >= 1.3.0") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_SPELL_LIBS=`$PKG_CONFIG --libs "enchant >= 1.3.0" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test $pkg_failed = yes; then if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then SPELL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "enchant >= 1.3.0"` else SPELL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "enchant >= 1.3.0"` fi # Put the nasty error message in config.log where it belongs echo "$SPELL_PKG_ERRORS" >&5 { { echo "$as_me:$LINENO: error: Package requirements (enchant >= 1.3.0) were not met: $SPELL_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 SPELL_CFLAGS and SPELL_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. " >&5 echo "$as_me: error: Package requirements (enchant >= 1.3.0) were not met: $SPELL_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 SPELL_CFLAGS and SPELL_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. " >&2;} { (exit 1); exit 1; }; } elif test $pkg_failed = untried; then { { echo "$as_me:$LINENO: 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 SPELL_CFLAGS and SPELL_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." >&5 echo "$as_me: 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 SPELL_CFLAGS and SPELL_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." >&2;} { (exit 1); exit 1; }; } else SPELL_CFLAGS=$pkg_cv_SPELL_CFLAGS SPELL_LIBS=$pkg_cv_SPELL_LIBS { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } : fi cat >>confdefs.h <<\_ACEOF #define ENABLE_SPELL _ACEOF fi if test "x$spell" = "xyes"; then SPELL_TRUE= SPELL_FALSE='#' else SPELL_TRUE='#' SPELL_FALSE= fi if test "$release" = no ; then CFLAGS="$CFLAGS -ggdb" else CFLAGS="$CFLAGS -DNDEBUG" fi if test "$fribidi" = yes; then # Extract the first word of "fribidi-config", so it can be a program name with args. set dummy fribidi-config; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_FRIBIDI_CONFIG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $FRIBIDI_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_FRIBIDI_CONFIG="$FRIBIDI_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_FRIBIDI_CONFIG="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi FRIBIDI_CONFIG=$ac_cv_path_FRIBIDI_CONFIG if test -n "$FRIBIDI_CONFIG"; then { echo "$as_me:$LINENO: result: $FRIBIDI_CONFIG" >&5 echo "${ECHO_T}$FRIBIDI_CONFIG" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$FRIBIDI_CONFIG" = x; then { { echo "$as_me:$LINENO: error: fribidi-config not found." >&5 echo "$as_me: error: fribidi-config not found." >&2;} { (exit 1); exit 1; }; } else FRIBIDI_CFLAGS=$($FRIBIDI_CONFIG --cflags) FRIBIDI_LIBS=$($FRIBIDI_CONFIG --libs) cat >>confdefs.h <<\_ACEOF #define HAVE_FRIBIDI _ACEOF fi fi if test "x$fribidi" = "xyes"; then FRIBIDI_TRUE= FRIBIDI_FALSE='#' else FRIBIDI_TRUE='#' FRIBIDI_FALSE= fi if test "$print" = yes; then pkg_failed=no { echo "$as_me:$LINENO: checking for PRINT" >&5 echo $ECHO_N "checking for PRINT... $ECHO_C" >&6; } if test -n "$PKG_CONFIG"; then if test -n "$PRINT_CFLAGS"; then pkg_cv_PRINT_CFLAGS="$PRINT_CFLAGS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10.0\"") >&5 ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10.0") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_PRINT_CFLAGS=`$PKG_CONFIG --cflags "gtk+-unix-print-2.0 >= 2.10.0" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test -n "$PKG_CONFIG"; then if test -n "$PRINT_LIBS"; then pkg_cv_PRINT_LIBS="$PRINT_LIBS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10.0\"") >&5 ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10.0") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_PRINT_LIBS=`$PKG_CONFIG --libs "gtk+-unix-print-2.0 >= 2.10.0" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test $pkg_failed = yes; then if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then PRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10.0"` else PRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10.0"` fi # Put the nasty error message in config.log where it belongs echo "$PRINT_PKG_ERRORS" >&5 { { echo "$as_me:$LINENO: error: Package requirements (gtk+-unix-print-2.0 >= 2.10.0) were not met: $PRINT_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 PRINT_CFLAGS and PRINT_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. " >&5 echo "$as_me: error: Package requirements (gtk+-unix-print-2.0 >= 2.10.0) were not met: $PRINT_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 PRINT_CFLAGS and PRINT_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. " >&2;} { (exit 1); exit 1; }; } elif test $pkg_failed = untried; then { { echo "$as_me:$LINENO: 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 PRINT_CFLAGS and PRINT_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." >&5 echo "$as_me: 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 PRINT_CFLAGS and PRINT_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." >&2;} { (exit 1); exit 1; }; } else PRINT_CFLAGS=$pkg_cv_PRINT_CFLAGS PRINT_LIBS=$pkg_cv_PRINT_LIBS { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } : fi cat >>confdefs.h <<\_ACEOF #define ENABLE_PRINT _ACEOF fi if test "x$print" = "xyes"; then PRINT_TRUE= PRINT_FALSE='#' else PRINT_TRUE='#' PRINT_FALSE= fi if test "$bzip2" = yes; then { echo "$as_me:$LINENO: checking for BZ2_bzopen in -lbz2" >&5 echo $ECHO_N "checking for BZ2_bzopen in -lbz2... $ECHO_C" >&6; } if test "${ac_cv_lib_bz2_BZ2_bzopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbz2 $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* 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 BZ2_bzopen (); int main () { return BZ2_bzopen (); ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_bz2_BZ2_bzopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_bz2_BZ2_bzopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzopen" >&5 echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzopen" >&6; } if test $ac_cv_lib_bz2_BZ2_bzopen = yes; then bzip_l=yes else bzip_l=no fi if test "${ac_cv_header_bzlib_h+set}" = set; then { echo "$as_me:$LINENO: checking for bzlib.h" >&5 echo $ECHO_N "checking for bzlib.h... $ECHO_C" >&6; } if test "${ac_cv_header_bzlib_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi { echo "$as_me:$LINENO: result: $ac_cv_header_bzlib_h" >&5 echo "${ECHO_T}$ac_cv_header_bzlib_h" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking bzlib.h usability" >&5 echo $ECHO_N "checking bzlib.h usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking bzlib.h presence" >&5 echo $ECHO_N "checking bzlib.h presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: bzlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: bzlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: bzlib.h: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: bzlib.h: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: bzlib.h: present but cannot be compiled" >&5 echo "$as_me: WARNING: bzlib.h: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: bzlib.h: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: bzlib.h: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: bzlib.h: see the Autoconf documentation" >&5 echo "$as_me: WARNING: bzlib.h: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: bzlib.h: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: bzlib.h: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: bzlib.h: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: bzlib.h: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: bzlib.h: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: bzlib.h: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for bzlib.h" >&5 echo $ECHO_N "checking for bzlib.h... $ECHO_C" >&6; } if test "${ac_cv_header_bzlib_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_header_bzlib_h=$ac_header_preproc fi { echo "$as_me:$LINENO: result: $ac_cv_header_bzlib_h" >&5 echo "${ECHO_T}$ac_cv_header_bzlib_h" >&6; } fi if test $ac_cv_header_bzlib_h = yes; then bzip_h=yes else bzip_h=no fi if test "$bzip_l" = yes && test "$bzip_h" = yes; then { echo "$as_me:$LINENO: bzip2 support is enabled." >&5 echo "$as_me: bzip2 support is enabled." >&6;} cat >>confdefs.h <<\_ACEOF #define HAVE_BZIP2 _ACEOF BZ2_LIBS="-lbz2" else { echo "$as_me:$LINENO: bzip2 support is disabled." >&5 echo "$as_me: bzip2 support is disabled." >&6;} fi fi if test "$gzip" = yes; then { echo "$as_me:$LINENO: checking for gzopen in -lz" >&5 echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6; } if test "${ac_cv_lib_z_gzopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lz $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* 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 gzopen (); int main () { return gzopen (); ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_z_gzopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_z_gzopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6; } if test $ac_cv_lib_z_gzopen = yes; then gzip_l=yes else gzip_l=no fi if test "${ac_cv_header_zlib_h+set}" = set; then { echo "$as_me:$LINENO: checking for zlib.h" >&5 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } if test "${ac_cv_header_zlib_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking zlib.h usability" >&5 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking zlib.h presence" >&5 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for zlib.h" >&5 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } if test "${ac_cv_header_zlib_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_header_zlib_h=$ac_header_preproc fi { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } fi if test $ac_cv_header_zlib_h = yes; then gzip_h=yes else gzip_h=no fi if test "$gzip_l" = yes && test "$gzip_h" = yes; then { echo "$as_me:$LINENO: gzip support is enabled." >&5 echo "$as_me: gzip support is enabled." >&6;} cat >>confdefs.h <<\_ACEOF #define HAVE_GZIP _ACEOF GZ_LIBS="-lz" else { echo "$as_me:$LINENO: gzip support is disabled." >&5 echo "$as_me: gzip support is disabled." >&6;} fi fi if test "$dbus" = yes; then pkg_failed=no { echo "$as_me:$LINENO: checking for DBUS" >&5 echo $ECHO_N "checking for DBUS... $ECHO_C" >&6; } if test -n "$PKG_CONFIG"; then if test -n "$DBUS_CFLAGS"; then pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1\"") >&5 ($PKG_CONFIG --exists --print-errors "dbus-glib-1") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-glib-1" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test -n "$PKG_CONFIG"; then if test -n "$DBUS_LIBS"; then pkg_cv_DBUS_LIBS="$DBUS_LIBS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1\"") >&5 ($PKG_CONFIG --exists --print-errors "dbus-glib-1") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-glib-1" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test $pkg_failed = yes; then if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dbus-glib-1"` else DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-glib-1"` fi # Put the nasty error message in config.log where it belongs echo "$DBUS_PKG_ERRORS" >&5 { { echo "$as_me:$LINENO: error: Package requirements (dbus-glib-1) were not met: $DBUS_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 DBUS_CFLAGS and DBUS_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. " >&5 echo "$as_me: error: Package requirements (dbus-glib-1) were not met: $DBUS_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 DBUS_CFLAGS and DBUS_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. " >&2;} { (exit 1); exit 1; }; } elif test $pkg_failed = untried; then { { echo "$as_me:$LINENO: 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 DBUS_CFLAGS and DBUS_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." >&5 echo "$as_me: 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 DBUS_CFLAGS and DBUS_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." >&2;} { (exit 1); exit 1; }; } else DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS DBUS_LIBS=$pkg_cv_DBUS_LIBS { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } : fi cat >>confdefs.h <<\_ACEOF #define ENABLE_DBUS _ACEOF fi if test "x$dbus" = "xyes"; then DBUS_TRUE= DBUS_FALSE='#' else DBUS_TRUE='#' DBUS_FALSE= fi if test "$emulator" = yes; then cat >>confdefs.h <<\_ACEOF #define ENABLE_EMULATOR _ACEOF fi if test "x$emulator" = "xyes"; then EMULATOR_TRUE= EMULATOR_FALSE='#' else EMULATOR_TRUE='#' EMULATOR_FALSE= fi if test "$multipress" = yes; then cat >>confdefs.h <<\_ACEOF #define ENABLE_MULTIPRESS _ACEOF fi if test "x$multipress" = "xyes"; then MULTIPRESS_TRUE= MULTIPRESS_FALSE='#' else MULTIPRESS_TRUE='#' MULTIPRESS_FALSE= fi if test "$maemo" = yes; then pkg_failed=no { echo "$as_me:$LINENO: checking for MAEMO" >&5 echo $ECHO_N "checking for MAEMO... $ECHO_C" >&6; } if test -n "$PKG_CONFIG"; then if test -n "$MAEMO_CFLAGS"; then pkg_cv_MAEMO_CFLAGS="$MAEMO_CFLAGS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libosso hildonmm hildon-fmmm gconfmm-2.6\"") >&5 ($PKG_CONFIG --exists --print-errors "libosso hildonmm hildon-fmmm gconfmm-2.6") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_MAEMO_CFLAGS=`$PKG_CONFIG --cflags "libosso hildonmm hildon-fmmm gconfmm-2.6" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test -n "$PKG_CONFIG"; then if test -n "$MAEMO_LIBS"; then pkg_cv_MAEMO_LIBS="$MAEMO_LIBS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libosso hildonmm hildon-fmmm gconfmm-2.6\"") >&5 ($PKG_CONFIG --exists --print-errors "libosso hildonmm hildon-fmmm gconfmm-2.6") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_MAEMO_LIBS=`$PKG_CONFIG --libs "libosso hildonmm hildon-fmmm gconfmm-2.6" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test $pkg_failed = yes; then if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then MAEMO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libosso hildonmm hildon-fmmm gconfmm-2.6"` else MAEMO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libosso hildonmm hildon-fmmm gconfmm-2.6"` fi # Put the nasty error message in config.log where it belongs echo "$MAEMO_PKG_ERRORS" >&5 { { echo "$as_me:$LINENO: error: Package requirements (libosso hildonmm hildon-fmmm gconfmm-2.6) were not met: $MAEMO_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 MAEMO_CFLAGS and MAEMO_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. " >&5 echo "$as_me: error: Package requirements (libosso hildonmm hildon-fmmm gconfmm-2.6) were not met: $MAEMO_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 MAEMO_CFLAGS and MAEMO_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. " >&2;} { (exit 1); exit 1; }; } elif test $pkg_failed = untried; then { { echo "$as_me:$LINENO: 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 MAEMO_CFLAGS and MAEMO_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." >&5 echo "$as_me: 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 MAEMO_CFLAGS and MAEMO_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." >&2;} { (exit 1); exit 1; }; } else MAEMO_CFLAGS=$pkg_cv_MAEMO_CFLAGS MAEMO_LIBS=$pkg_cv_MAEMO_LIBS { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } : fi cat >>confdefs.h <<\_ACEOF #define ENABLE_MAEMO _ACEOF KATOOB_ICON=katoob-icon X_OSSO_SERVICE=X-Osso-Service=org.foolab.katoob else KATOOB_ICON=katoob-icon.pmg fi if test "x$maemo" = "xyes"; then MAEMO_TRUE= MAEMO_FALSE='#' else MAEMO_TRUE='#' MAEMO_FALSE= fi if test "$highlight" = yes; then pkg_failed=no { echo "$as_me:$LINENO: checking for GTKSOURCEVIEW" >&5 echo $ECHO_N "checking for GTKSOURCEVIEW... $ECHO_C" >&6; } if test -n "$PKG_CONFIG"; then if test -n "$GTKSOURCEVIEW_CFLAGS"; then pkg_cv_GTKSOURCEVIEW_CFLAGS="$GTKSOURCEVIEW_CFLAGS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtksourceview-2.0 >= 2.0\"") >&5 ($PKG_CONFIG --exists --print-errors "gtksourceview-2.0 >= 2.0") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_GTKSOURCEVIEW_CFLAGS=`$PKG_CONFIG --cflags "gtksourceview-2.0 >= 2.0" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test -n "$PKG_CONFIG"; then if test -n "$GTKSOURCEVIEW_LIBS"; then pkg_cv_GTKSOURCEVIEW_LIBS="$GTKSOURCEVIEW_LIBS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtksourceview-2.0 >= 2.0\"") >&5 ($PKG_CONFIG --exists --print-errors "gtksourceview-2.0 >= 2.0") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_GTKSOURCEVIEW_LIBS=`$PKG_CONFIG --libs "gtksourceview-2.0 >= 2.0" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test $pkg_failed = yes; then if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then GTKSOURCEVIEW_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtksourceview-2.0 >= 2.0"` else GTKSOURCEVIEW_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtksourceview-2.0 >= 2.0"` fi # Put the nasty error message in config.log where it belongs echo "$GTKSOURCEVIEW_PKG_ERRORS" >&5 { { echo "$as_me:$LINENO: error: Package requirements (gtksourceview-2.0 >= 2.0) were not met: $GTKSOURCEVIEW_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 GTKSOURCEVIEW_CFLAGS and GTKSOURCEVIEW_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. " >&5 echo "$as_me: error: Package requirements (gtksourceview-2.0 >= 2.0) were not met: $GTKSOURCEVIEW_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 GTKSOURCEVIEW_CFLAGS and GTKSOURCEVIEW_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. " >&2;} { (exit 1); exit 1; }; } elif test $pkg_failed = untried; then { { echo "$as_me:$LINENO: 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 GTKSOURCEVIEW_CFLAGS and GTKSOURCEVIEW_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." >&5 echo "$as_me: 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 GTKSOURCEVIEW_CFLAGS and GTKSOURCEVIEW_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." >&2;} { (exit 1); exit 1; }; } else GTKSOURCEVIEW_CFLAGS=$pkg_cv_GTKSOURCEVIEW_CFLAGS GTKSOURCEVIEW_LIBS=$pkg_cv_GTKSOURCEVIEW_LIBS { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } : fi cat >>confdefs.h <<\_ACEOF #define ENABLE_HIGHLIGHT _ACEOF fi if test "x$highlight" = "xyes"; then HIGHLIGHT_TRUE= HIGHLIGHT_FALSE='#' else HIGHLIGHT_TRUE='#' HIGHLIGHT_FALSE= fi gcc_ver=$(gcc --version) case $gcc_ver in *mingw*) KATOOB_CFLAGS="-mms-bitfields -mwindows $KATOOB_CFLAGS" KATOOB_LIBS="$KATOOB_LIBS -lwsock32" if test 1 = 1; then WIN32_TRUE= WIN32_FALSE='#' else WIN32_TRUE='#' WIN32_FALSE= fi ;; *) if test 1 = 0; then WIN32_TRUE= WIN32_FALSE='#' else WIN32_TRUE='#' WIN32_FALSE= fi ;; esac if test "x$maemo" = "xyes" && test "x$dbus" != "xyes"; then { { echo "$as_me:$LINENO: error: maemo support needss dbus." >&5 echo "$as_me: error: maemo support needss dbus." >&2;} { (exit 1); exit 1; }; } fi ac_config_files="$ac_config_files katoob.desktop.in Makefile src/Makefile src/pixmaps/Makefile src/xdgmime/Makefile po/Makefile.in data/Makefile data/emulator/Makefile data/multipress/Makefile m4/Makefile maemo/Makefile maemo/katoob.service INSTALL Doxyfile" 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_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( *) $as_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" && { echo "$as_me:$LINENO: updating cache $cache_file" >&5 echo "$as_me: updating cache $cache_file" >&6;} cat confcache >$cache_file else { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`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. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi ac_config_commands="$ac_config_commands po/stamp-it" if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${DICT_TRUE}" && test -z "${DICT_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"DICT\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"DICT\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${ISOCODES_TRUE}" && test -z "${ISOCODES_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"ISOCODES\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"ISOCODES\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${SPELL_TRUE}" && test -z "${SPELL_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"SPELL\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"SPELL\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${FRIBIDI_TRUE}" && test -z "${FRIBIDI_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"FRIBIDI\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"FRIBIDI\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${PRINT_TRUE}" && test -z "${PRINT_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"PRINT\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"PRINT\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${DBUS_TRUE}" && test -z "${DBUS_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"DBUS\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"DBUS\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${EMULATOR_TRUE}" && test -z "${EMULATOR_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"EMULATOR\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"EMULATOR\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${MULTIPRESS_TRUE}" && test -z "${MULTIPRESS_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"MULTIPRESS\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"MULTIPRESS\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${MAEMO_TRUE}" && test -z "${MAEMO_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"MAEMO\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"MAEMO\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HIGHLIGHT_TRUE}" && test -z "${HIGHLIGHT_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"HIGHLIGHT\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"HIGHLIGHT\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"WIN32\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"WIN32\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"WIN32\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"WIN32\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi : ${CONFIG_STATUS=./config.status} ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 echo "$as_me: creating $CONFIG_STATUS" >&6;} cat >$CONFIG_STATUS <<_ACEOF #! $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} _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF ## --------------------- ## ## 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=: # Zsh 3.x and 4.x performs 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 # PATH needs CR # 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 # 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 # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false 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.) as_nl=' ' 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 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 { (exit 1); exit 1; } fi # Work around bugs in pre-3.0 UWIN ksh. for as_var in ENV MAIL MAILPATH do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var fi done # Required to use basename. 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 # Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # CDPATH. $as_unset CDPATH as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line after each line using $LINENO; the second 'sed' # does the real work. The second script uses 'N' to pair each # line-number line with the line containing $LINENO, and appends # trailing '-' during substitution so that $LINENO is not a special # case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # scripts with optimization help from Paolo Bonzini. 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" || { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); 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 } if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in -n*) case `echo 'x\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. *) ECHO_C='\c';; esac;; *) ECHO_N='-n';; esac if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi 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 fi echo >conf$$.file 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 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=: 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 # 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 $as_me, which was generated by GNU Autoconf 2.61. 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 cat >>$CONFIG_STATUS <<_ACEOF # 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_cs_usage="\ \`$as_me' instantiates files from templates according to the current configuration. Usage: $0 [OPTIONS] [FILE]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit -q, --quiet 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_cs_version="\\ config.status configured by $0, generated by GNU Autoconf 2.61, with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" Copyright (C) 2006 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' _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # If no file are specified by the user, then we need to provide default # value. By we need to know if files were specified by the user. ac_need_defaults=: while test $# != 0 do case $1 in --*=*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) echo "$ac_cs_version"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift CONFIG_FILES="$CONFIG_FILES $ac_optarg" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header { echo "$as_me: error: ambiguous option: $1 Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; };; --help | --hel | -h ) 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. -*) { echo "$as_me: error: unrecognized option: $1 Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *) ac_config_targets="$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 if \$ac_cs_recheck; then echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 CONFIG_SHELL=$SHELL export CONFIG_SHELL exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}' prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir" INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' INTLTOOL_ICONV='${INTLTOOL_ICONV}' INTLTOOL_MSGFMT='${INTLTOOL_MSGFMT}' INTLTOOL_MSGMERGE='${INTLTOOL_MSGMERGE}' INTLTOOL_XGETTEXT='${INTLTOOL_XGETTEXT}' _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # 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" ;; "intltool") CONFIG_COMMANDS="$CONFIG_COMMANDS intltool" ;; "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; "katoob.desktop.in") CONFIG_FILES="$CONFIG_FILES katoob.desktop.in" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; "src/pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmaps/Makefile" ;; "src/xdgmime/Makefile") CONFIG_FILES="$CONFIG_FILES src/xdgmime/Makefile" ;; "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;; "data/emulator/Makefile") CONFIG_FILES="$CONFIG_FILES data/emulator/Makefile" ;; "data/multipress/Makefile") CONFIG_FILES="$CONFIG_FILES data/multipress/Makefile" ;; "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; "maemo/Makefile") CONFIG_FILES="$CONFIG_FILES maemo/Makefile" ;; "maemo/katoob.service") CONFIG_FILES="$CONFIG_FILES maemo/katoob.service" ;; "INSTALL") CONFIG_FILES="$CONFIG_FILES INSTALL" ;; "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;; "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;; *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} { (exit 1); exit 1; }; };; 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 '{ (exit 1); 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") } || { echo "$me: cannot create a temporary directory in ." >&2 { (exit 1); exit 1; } } # # Set up the sed scripts for CONFIG_FILES section. # # No need to generate the scripts if there are no CONFIG_FILES. # This happens for instance when ./config.status config.h if test -n "$CONFIG_FILES"; then _ACEOF ac_delim='%!_!# ' for ac_last_try in false false false false false :; do cat >conf$$subs.sed <<_ACEOF SHELL!$SHELL$ac_delim PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim PACKAGE_NAME!$PACKAGE_NAME$ac_delim PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim PACKAGE_STRING!$PACKAGE_STRING$ac_delim PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim exec_prefix!$exec_prefix$ac_delim prefix!$prefix$ac_delim program_transform_name!$program_transform_name$ac_delim bindir!$bindir$ac_delim sbindir!$sbindir$ac_delim libexecdir!$libexecdir$ac_delim datarootdir!$datarootdir$ac_delim datadir!$datadir$ac_delim sysconfdir!$sysconfdir$ac_delim sharedstatedir!$sharedstatedir$ac_delim localstatedir!$localstatedir$ac_delim includedir!$includedir$ac_delim oldincludedir!$oldincludedir$ac_delim docdir!$docdir$ac_delim infodir!$infodir$ac_delim htmldir!$htmldir$ac_delim dvidir!$dvidir$ac_delim pdfdir!$pdfdir$ac_delim psdir!$psdir$ac_delim libdir!$libdir$ac_delim localedir!$localedir$ac_delim mandir!$mandir$ac_delim DEFS!$DEFS$ac_delim ECHO_C!$ECHO_C$ac_delim ECHO_N!$ECHO_N$ac_delim ECHO_T!$ECHO_T$ac_delim LIBS!$LIBS$ac_delim build_alias!$build_alias$ac_delim host_alias!$host_alias$ac_delim target_alias!$target_alias$ac_delim INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim INSTALL_DATA!$INSTALL_DATA$ac_delim CYGPATH_W!$CYGPATH_W$ac_delim PACKAGE!$PACKAGE$ac_delim VERSION!$VERSION$ac_delim ACLOCAL!$ACLOCAL$ac_delim AUTOCONF!$AUTOCONF$ac_delim AUTOMAKE!$AUTOMAKE$ac_delim AUTOHEADER!$AUTOHEADER$ac_delim MAKEINFO!$MAKEINFO$ac_delim AMTAR!$AMTAR$ac_delim install_sh!$install_sh$ac_delim STRIP!$STRIP$ac_delim INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim mkdir_p!$mkdir_p$ac_delim AWK!$AWK$ac_delim SET_MAKE!$SET_MAKE$ac_delim am__leading_dot!$am__leading_dot$ac_delim INTLTOOL_DESKTOP_RULE!$INTLTOOL_DESKTOP_RULE$ac_delim INTLTOOL_DIRECTORY_RULE!$INTLTOOL_DIRECTORY_RULE$ac_delim INTLTOOL_KEYS_RULE!$INTLTOOL_KEYS_RULE$ac_delim INTLTOOL_PROP_RULE!$INTLTOOL_PROP_RULE$ac_delim INTLTOOL_OAF_RULE!$INTLTOOL_OAF_RULE$ac_delim INTLTOOL_PONG_RULE!$INTLTOOL_PONG_RULE$ac_delim INTLTOOL_SERVER_RULE!$INTLTOOL_SERVER_RULE$ac_delim INTLTOOL_SHEET_RULE!$INTLTOOL_SHEET_RULE$ac_delim INTLTOOL_SOUNDLIST_RULE!$INTLTOOL_SOUNDLIST_RULE$ac_delim INTLTOOL_UI_RULE!$INTLTOOL_UI_RULE$ac_delim INTLTOOL_XAM_RULE!$INTLTOOL_XAM_RULE$ac_delim INTLTOOL_KBD_RULE!$INTLTOOL_KBD_RULE$ac_delim INTLTOOL_XML_RULE!$INTLTOOL_XML_RULE$ac_delim INTLTOOL_XML_NOMERGE_RULE!$INTLTOOL_XML_NOMERGE_RULE$ac_delim INTLTOOL_CAVES_RULE!$INTLTOOL_CAVES_RULE$ac_delim INTLTOOL_SCHEMAS_RULE!$INTLTOOL_SCHEMAS_RULE$ac_delim INTLTOOL_THEME_RULE!$INTLTOOL_THEME_RULE$ac_delim INTLTOOL_SERVICE_RULE!$INTLTOOL_SERVICE_RULE$ac_delim INTLTOOL_EXTRACT!$INTLTOOL_EXTRACT$ac_delim INTLTOOL_MERGE!$INTLTOOL_MERGE$ac_delim INTLTOOL_UPDATE!$INTLTOOL_UPDATE$ac_delim INTLTOOL_PERL!$INTLTOOL_PERL$ac_delim INTLTOOL_ICONV!$INTLTOOL_ICONV$ac_delim INTLTOOL_MSGFMT!$INTLTOOL_MSGFMT$ac_delim INTLTOOL_MSGMERGE!$INTLTOOL_MSGMERGE$ac_delim INTLTOOL_XGETTEXT!$INTLTOOL_XGETTEXT$ac_delim ALL_LINGUAS!$ALL_LINGUAS$ac_delim CC!$CC$ac_delim CFLAGS!$CFLAGS$ac_delim LDFLAGS!$LDFLAGS$ac_delim CPPFLAGS!$CPPFLAGS$ac_delim ac_ct_CC!$ac_ct_CC$ac_delim EXEEXT!$EXEEXT$ac_delim OBJEXT!$OBJEXT$ac_delim DEPDIR!$DEPDIR$ac_delim am__include!$am__include$ac_delim am__quote!$am__quote$ac_delim AMDEP_TRUE!$AMDEP_TRUE$ac_delim AMDEP_FALSE!$AMDEP_FALSE$ac_delim AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim CCDEPMODE!$CCDEPMODE$ac_delim _ACEOF if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` if test -n "$ac_eof"; then ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ac_eof=`expr $ac_eof + 1` fi cat >>$CONFIG_STATUS <<_ACEOF cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof /@[a-zA-Z_][a-zA-Z_0-9]*@/!b _ACEOF sed ' s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g s/^/s,@/; s/!/@,|#_!!_#|/ :n t n s/'"$ac_delim"'$/,g/; t s/$/\\/; p N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF CEOF$ac_eof _ACEOF ac_delim='%!_!# ' for ac_last_try in false false false false false :; do cat >conf$$subs.sed <<_ACEOF am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim DATADIRNAME!$DATADIRNAME$ac_delim CXX!$CXX$ac_delim CXXFLAGS!$CXXFLAGS$ac_delim ac_ct_CXX!$ac_ct_CXX$ac_delim CXXDEPMODE!$CXXDEPMODE$ac_delim am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim CPP!$CPP$ac_delim GREP!$GREP$ac_delim EGREP!$EGREP$ac_delim USE_NLS!$USE_NLS$ac_delim MSGFMT!$MSGFMT$ac_delim GMSGFMT!$GMSGFMT$ac_delim XGETTEXT!$XGETTEXT$ac_delim CATALOGS!$CATALOGS$ac_delim CATOBJEXT!$CATOBJEXT$ac_delim GMOFILES!$GMOFILES$ac_delim INSTOBJEXT!$INSTOBJEXT$ac_delim INTLLIBS!$INTLLIBS$ac_delim PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim POFILES!$POFILES$ac_delim POSUB!$POSUB$ac_delim MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim _libcurl_config!$_libcurl_config$ac_delim LIBCURL_CPPFLAGS!$LIBCURL_CPPFLAGS$ac_delim LIBCURL!$LIBCURL$ac_delim DICT_TRUE!$DICT_TRUE$ac_delim DICT_FALSE!$DICT_FALSE$ac_delim PKG_CONFIG!$PKG_CONFIG$ac_delim KATOOB_CFLAGS!$KATOOB_CFLAGS$ac_delim KATOOB_LIBS!$KATOOB_LIBS$ac_delim ISOCODES_CFLAGS!$ISOCODES_CFLAGS$ac_delim ISOCODES_LIBS!$ISOCODES_LIBS$ac_delim ISOCODES_TRUE!$ISOCODES_TRUE$ac_delim ISOCODES_FALSE!$ISOCODES_FALSE$ac_delim SPELL_CFLAGS!$SPELL_CFLAGS$ac_delim SPELL_LIBS!$SPELL_LIBS$ac_delim SPELL_TRUE!$SPELL_TRUE$ac_delim SPELL_FALSE!$SPELL_FALSE$ac_delim FRIBIDI_CONFIG!$FRIBIDI_CONFIG$ac_delim FRIBIDI_TRUE!$FRIBIDI_TRUE$ac_delim FRIBIDI_FALSE!$FRIBIDI_FALSE$ac_delim PRINT_CFLAGS!$PRINT_CFLAGS$ac_delim PRINT_LIBS!$PRINT_LIBS$ac_delim PRINT_TRUE!$PRINT_TRUE$ac_delim PRINT_FALSE!$PRINT_FALSE$ac_delim DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim DBUS_LIBS!$DBUS_LIBS$ac_delim DBUS_TRUE!$DBUS_TRUE$ac_delim DBUS_FALSE!$DBUS_FALSE$ac_delim EMULATOR_TRUE!$EMULATOR_TRUE$ac_delim EMULATOR_FALSE!$EMULATOR_FALSE$ac_delim MULTIPRESS_TRUE!$MULTIPRESS_TRUE$ac_delim MULTIPRESS_FALSE!$MULTIPRESS_FALSE$ac_delim MAEMO_CFLAGS!$MAEMO_CFLAGS$ac_delim MAEMO_LIBS!$MAEMO_LIBS$ac_delim X_OSSO_SERVICE!$X_OSSO_SERVICE$ac_delim KATOOB_ICON!$KATOOB_ICON$ac_delim MAEMO_TRUE!$MAEMO_TRUE$ac_delim MAEMO_FALSE!$MAEMO_FALSE$ac_delim GTKSOURCEVIEW_CFLAGS!$GTKSOURCEVIEW_CFLAGS$ac_delim GTKSOURCEVIEW_LIBS!$GTKSOURCEVIEW_LIBS$ac_delim HIGHLIGHT_TRUE!$HIGHLIGHT_TRUE$ac_delim HIGHLIGHT_FALSE!$HIGHLIGHT_FALSE$ac_delim WIN32_TRUE!$WIN32_TRUE$ac_delim WIN32_FALSE!$WIN32_FALSE$ac_delim GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim FRIBIDI_CFLAGS!$FRIBIDI_CFLAGS$ac_delim FRIBIDI_LIBS!$FRIBIDI_LIBS$ac_delim BZ2_LIBS!$BZ2_LIBS$ac_delim LIBOBJS!$LIBOBJS$ac_delim LTLIBOBJS!$LTLIBOBJS$ac_delim _ACEOF if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 75; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` if test -n "$ac_eof"; then ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ac_eof=`expr $ac_eof + 1` fi cat >>$CONFIG_STATUS <<_ACEOF cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end _ACEOF sed ' s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g s/^/s,@/; s/!/@,|#_!!_#|/ :n t n s/'"$ac_delim"'$/,g/; t s/$/\\/; p N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF :end s/|#_!!_#|//g CEOF$ac_eof _ACEOF # VPATH may cause trouble with some makes, so we remove $(srcdir), # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=/{ s/:*\$(srcdir):*/:/ s/:*\${srcdir}:*/:/ s/:*@srcdir@:*/:/ s/^\([^=]*=[ ]*\):*/\1/ s/:*$// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF fi # test -n "$CONFIG_FILES" for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 echo "$as_me: error: Invalid tag $ac_tag." >&2;} { (exit 1); exit 1; }; };; :[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 || { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 echo "$as_me: error: cannot find input file: $ac_f" >&2;} { (exit 1); exit 1; }; };; esac ac_file_inputs="$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 "`IFS=: echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { echo "$as_me:$LINENO: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} fi case $ac_tag in *:-:* | *:-) cat >"$tmp/stdin";; 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 || 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" case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`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 || 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" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 echo "$as_me: error: cannot create directory $as_dir" >&2;} { (exit 1); exit 1; }; }; } ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`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 _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # 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= case `sed -n '/datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p ' $ac_file_inputs` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF 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 sed "$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s&@configure_input@&$configure_input&;t t s&@top_builddir@&$ac_top_builddir_sub&;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 $ac_datarootdir_hack " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 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"; } && { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&5 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 ;; :H) # # CONFIG_HEADER # _ACEOF # Transform confdefs.h into a sed script `conftest.defines', that # substitutes the proper values into config.h.in to produce config.h. rm -f conftest.defines conftest.tail # First, append a space to every undef/define line, to ease matching. echo 's/$/ /' >conftest.defines # Then, protect against being on the right side of a sed subst, or in # an unquoted here document, in config.status. If some macros were # called several times there might be several #defines for the same # symbol, which is useless. But do not sort them, since the last # AC_DEFINE must be honored. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where # NAME is the cpp macro being defined, VALUE is the value it is being given. # PARAMS is the parameter list in the macro definition--in most cases, it's # just an empty string. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' ac_dB='\\)[ (].*,\\1define\\2' ac_dC=' ' ac_dD=' ,' uniq confdefs.h | sed -n ' t rset :rset s/^[ ]*#[ ]*define[ ][ ]*// t ok d :ok s/[\\&,]/\\&/g s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p ' >>conftest.defines # Remove the space that was appended to ease matching. # Then 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. # (The regexp can be short, since the line contains either #define or #undef.) echo 's/ $// s,^[ #]*u.*,/* & */,' >>conftest.defines # Break up conftest.defines: ac_max_sed_lines=50 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" # et cetera. ac_in='$ac_file_inputs' ac_out='"$tmp/out1"' ac_nxt='"$tmp/out2"' while : do # Write a here document: cat >>$CONFIG_STATUS <<_ACEOF # First, check the format of the line: cat >"\$tmp/defines.sed" <<\\CEOF /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def b :def _ACEOF sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS echo 'CEOF sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail grep . conftest.tail >/dev/null || break rm -f conftest.defines mv conftest.tail conftest.defines done rm -f conftest.defines conftest.tail echo "ac_result=$ac_in" >>$CONFIG_STATUS cat >>$CONFIG_STATUS <<\_ACEOF if test x"$ac_file" != x-; then echo "/* $configure_input */" >"$tmp/config.h" cat "$ac_result" >>"$tmp/config.h" if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 echo "$as_me: $ac_file is unchanged" >&6;} else rm -f $ac_file mv "$tmp/config.h" $ac_file fi else echo "/* $configure_input */" cat "$ac_result" fi rm -f "$tmp/out12" # Compute $ac_file's index in $config_headers. _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $ac_file | $ac_file:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $ac_file" >`$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 || echo X$ac_file | 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) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; 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. # So let's grep whole file. if grep '^#.*generated by automake' $mf > /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 || 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 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue # Extract the definition of DEP_FILES from the Makefile without # running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" # 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 ' /^DEP_FILES = .*\\\\$/ { s/^DEP_FILES = // :loop s/\\\\$// p n /\\\\$/ b loop p } /^DEP_FILES = / s/^DEP_FILES = //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 || 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 case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`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 || 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" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 echo "$as_me: error: cannot create directory $as_dir" >&2;} { (exit 1); exit 1; }; }; } # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done ;; "intltool":C) for file in intltool-extract intltool-merge intltool-update; do sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \ -e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \ -e "s|@INTLTOOL_ICONV@|${INTLTOOL_ICONV}|g" \ -e "s|@INTLTOOL_MSGFMT@|${INTLTOOL_MSGFMT}|g" \ -e "s|@INTLTOOL_MSGMERGE@|${INTLTOOL_MSGMERGE}|g" \ -e "s|@INTLTOOL_XGETTEXT@|${INTLTOOL_XGETTEXT}|g" \ -e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \ < ${ac_aux_dir}/${file}.in > ${file}.out if cmp -s ${file} ${file}.out 2>/dev/null; then rm -f ${file}.out else mv -f ${file}.out ${file} fi chmod ugo+x ${file} chmod u+w ${file} done ;; "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*) sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile esac ;; "po/stamp-it":C) rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp" >"po/stamp-it.tmp" sed '/^#/d s/^[[].*] *// /^[ ]*$/d '"s|^| $ac_top_srcdir/|" \ "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES" if test ! -f "po/Makefile"; then { { echo "$as_me:$LINENO: error: po/Makefile is not ready." >&5 echo "$as_me: error: po/Makefile is not ready." >&2;} { (exit 1); exit 1; }; } fi mv "po/Makefile" "po/Makefile.tmp" sed '/^POTFILES =/,/[^\\]$/ { /^POTFILES =/!d r po/POTFILES } ' "po/Makefile.tmp" >"po/Makefile" rm -f "po/Makefile.tmp" mv "po/stamp-it.tmp" "po/stamp-it" ;; esac done # for ac_tag { (exit 0); exit 0; } _ACEOF chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save # 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 || { (exit 1); exit 1; } fi katoob-0.5.9.1/AUTHORS0000644000175000017500000000004710746617675011160 00000000000000* Mohammed Sameer katoob-0.5.9.1/COPYING0000644000175000017500000004310510746617675011145 00000000000000 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. katoob-0.5.9.1/ChangeLog0000644000175000017500000004325610746620027011654 00000000000000Version 0.5.9.1 * Fixed a problem that caused katoob to ignore keypresses Version 0.5.9 * Enchant is now used for spell checking instead of aspell * The iso-codes package can be used to display friendly names for the spell checker dictionaries. * The recent menu is displays the name of the file not the full path. * Opening a non-existing recent file triggers an error. * Better quality Arabic translation (Thanks Khaled Hosny). * Maemo support. * libcurl is now used for the network. * Cairo is not used anymore to draw the extended toolbar extra icons. * Make the buttons in the dialogs HIG compliant * Pressing Escape will close the spell checking dialog * We now use the gtk printing capabilities for printing. * Syntax highlighting now depends on gtksourceview2 and it's been rewritten. * We now save the documents every minute and recover any files when we start. * We also autosave if we crash. Version 0.5.8 * Implemented Multipress. Phone style typing. * When we create a file, make sure we have read & write permissions (By passing S_IRWXU to open()) * Added a window to show the emulator and multipress mappings. * Line numbers aren't now all bold. Only the active line. Version 0.5.7 * Code cleanups. * Depend on gtksourceview instead of gtksourceviewmm ^ The current line is drawn in bold when we show the line numbers. * In the document right click menu, show the dictionary menu item only if we have a word. * Add more drag actions so we can accept data from konqueror. * DND should work fine with konqueror now. * Dropping a file on a document will open it. * Don't use the glib file saving functions as it'll fail if we don't have write access to the target directory even if the target file is writable. * Some problems related to the encoding conversion. * Started to comment the code via the doxygen style. * The tab width is now configurable. * Fixed a crash under utf8 locales when clicking "Apply" or "OK" in the preferences dialog. * CXXFLAGS now should get CFLAGS prepended. Now --enable-release is really effective! Version 0.5.6 * Don't try to convert the encoding if the requested one is utf8. return false if the text is not valid utf8 after we convert it. * Reset the gui when we close the document from the document label close button. Version 0.5.5 * Replace dialog: Removed "Find And Replace". * Severe optimization for the lam-alef detection and manipulation code. * Syntax highlighting support (Via libgtksourceviewmm) Version 0.5.4 * When we import or export bidi and shaped text. We process the text line by line because fribidi is reversing the whole text and ignoring line separators. * [ Thanks UTUMI Hirosi ] * Updated Japanese translation. * The preferences dialog sections are now translated. * Various small updates for the desktop.in file. Version 0.5.3 * Can export text after applying bidi and shaping. * Exporting plain text depends on fribidi now. * Can now import text that has been shaped and had bidi applied to previously. Version 0.5.2 * Added Insert file. * Some small code cleanups. * Implemented open location to open remote locations. * Check for the return value of the executed subprocess * Implemented the Thread class. Migrated our dict lookup code to it. * Can now open remote locations. * Depend on gtkmm >= 2.6.0 instead of 2.6.5 Version 0.5.1 * Fix compilation error when dbus is disabled. Version 0.5.0 * Rewritten using C++/gtkmm Version 0.3.9 * German manpage (Michelle Konzack) * Updated Hebrew translation. * New French translation. * French to Arabic transliteration emulator layout by Emmanuel Beffara * When we are saving, If the user wrote a filename in the text entry, we should use it instead. * New Czech translation (Thanks Jan Grmela) * Fixed a weired segfault during startup (Thanks oren maurer for reporting) * German PO file corrections (Debian bug #314022) * Extended toolbar searching is now case insensitive. * An arrow should appear with icons from the toolbar if the display width is not enough. * Should really save the aspell lists. * Arabic text should be handled by aspell as usual. * Added diacritics buttons to the extended toolbar. * Regenerated the icons from the SVG. * Updated COPYING file, The FSF address changed. Version 0.3.8 * The ability to open multiple files from the open dialog (Bug #54). * Remembering the last place from where files were opened/saved (Bug #55). * Implemented own command line arguments parser. * katoobdocument.c: Fixed compilation errors when the spell checker is disabled ( Thanks Leonardo Boshell for the patch ) * src/Makefile.am: Fixed compilation errors when freetype and freetype 2 are there! ( Thanks Leonardo Boshell for the patch ) * Dict protocol support. * New icons for katoob ( Thanks Mostafa Hussein ). * Fixed the bug that caused all the window parts to be shown even if they are disabled in the preferences dialog. * Some speed optimisation. * Katoob won't complain about backup problems when saving for the 1st time. * A statusbar indicator for the insert button. * The crash dialog should be fine now. * Katoob try to save the open files if it crash. * A new configuration file parser. * Don't modify the stored directory path if the user canceled the open dialog. * Cleaned the config saving and freeing routines. * Some fixes for the Makefiles. * print dialog, properly destroy the dialog so it can be opened again!. * Replaced katoob_debug(__FUNCTION__); with a macro: KATOOB_DEBUG__FUNCTION * Code cleanup: katoob compiles under g++ 2.95 & 3.3.1. * Don't connect to the dict server except when the user clicks on the "Dictionary" item. * UTF-8 is the default encoding for saving (#66) * Memory leak in the case insensitive search code. * Added a hebrew translation. * Converted pl.po to UTF-8. (Bug #50) * katoob.po: removed, ar.po: corrected an error. (bug #141) * A Japanese translation. * src/katoob.h: Katoob now compiles under gtk+ 2.4 * Added --enable-new-widgets to enable using the new gtk 2.4 widgets instead of the old ones * Added --enable-release to ommit the additional debugging symbols * save.c: saving with the same filename but different encoding should update the document encoding now. * katoobdocument.c: Fixed bug #150. * search.c: fixed a segfault when doing "replace all" 2 times. * conf.c: return when we can't open the print conf. file "Samy Al Bahra". * file selector: Don't remember the path accross sessions. And always start from the c\urrent dir, and fail to the home dir. * Try to recover text till the illigal byte when the "illigal byte sequence" error appears. * A hebrew file for the emulator "Diego Iastrubni " * conf.c: fixed a segfault. * Hebrew is now Logical Hebrew (Thanks cuco) * German translation (Thanks Michelle Konzack) * some fixes for the print dialog. * BUG: config_struct_foreach() free config->backup_dir instead of config->backup_ext * Display an error dialog when no spellchecking dictionaries are available, Don't pass a NULL PspellManager variable to pspell_manager_check() as it'll segfault. * Disable the RTL/LTR text alignment under gtk 2.4 :-( * A new about box per Michelle Konzack's request. * Fixed an infinite loop when u replace all and the from string is a substring of the to string. * Handle the LAM-ALEF presentation forms, Replace them by lam+alef "incomplete". * Convert hindi digits to arabic when we save in cp1256 "disabled". Version 0.3.5 * Dropping a file on katoob window result in opening it. * Segfault when freeing xkb groups on redhat 9.0. * Three dots after all menu entries that lead to dialog boxes. * Preferences dialog categories are now translated. * Backup before saving implemented. * Fixed some memory leaks and code cleanups. * Calculate the cursor position correctly when tabs are inserted * Added "..." to all menu entries popping a question dialog. * The document created on startup grab the keyboard input. * recheck the document when changing the dictionary. * spell check button to the extended toolbar. * fixed close all not canceling when hitting cancel. * Added the emulator entries to a submenu. * unset readonly when saving a readonly document. * fixed a bug that caused the selected text to be unselected when right clicking. * Renamed Toolbar to Main toolbar, and added the extended toolbar option to the toolbars submenu. * A small fix for the man page. * misc.c: segfault "katoob - - - - - - - - -" * No beep when no documents found, and when no undo or redo items. * Signal handler to try and save the open files. * Removed the preferences shortcut. * Makefile.am: A bug caused linking to the system fribidi if present. * mdi.c: memory leak. * Increased katoob window icon size. * encodings.c: some tweaking. * prefs-dlg.c: The text direction isn't selected correctly. * Rewrote the BiDi line direction detection algorithm to fix the high CPU and memory usage. * conf.c: disable_xft is FALSE by default. * main.c: Disabled the signal handler * moved xkb_grp and xkbEventType from the config struct to the katoob struct. * Added --enable experimental and marked all the crash handler stuff as experimental. #ifdef EXPERIMENTAL ... #endif * New fribidi based on version 0.10.4 + fribidi_log2vis for the printing. * The import and export menu items are not check items. * The document encoding is set to UTF-8 if the opened file is valid UTF-8 * Save as with a different encoding sets the document encoding to it. * recent.c, conf.c: fclose the config files after loading and/or saving. * prefs-dlg: Fixed the backup directory selector title. * Native printing support. * Exporting doesn't unset the modified state for the document. * Fixed compiling errors when the spell checker and printing support are disabled. * replaced getenv() with g_get_home_dir() Version 0.3.4.91 * configure.in: Fixed all pspell/aspell detection problems * html.c, misc.c: #include for atoi() * mdi.c: removed extern UI *katoob from katoob_create_doc_from_file() * print.c: #include for system() * highlight.c: katoob_get_highlight_type() Added java, tex and ada * mdi.c: fixed compile error when enabling highlight. Version 0.3.4.90 * Rewrite using GtkObject model. * encodingslist.h: Added some more encoding names, fixed some others. * bidi.*: New files, All the BIDI code is there. * conf.c, katoob.h: Added text_dir & bidi options. * main.c: New "text direction" menu. * Almost complete BIDI support. * Added text direction to the preferences dialog. * mdi.c: the close button is generated but hidden if config->showclose = FALSE * Changing the "show close button option" Applies to the opened tabs. * Added ISO-8859-16 "Romanian" To the list of supported encodings. * More Language names in the encodings menu. * A new implementation for the encoding menu & encoding list generation, Making it more easy to add more encodings. * The ability to display line numbers * The configuration struct is freed before quit * Fixed choosing not to save on exit doesn't save for that time only! * saveas.c: removed, all functions are in save.c, renamed katoob_saveas() to katoob_save_as() * autogen.sh: Check for libtool & intltool. * The text buffer is scrolled to the highlighted item. * The ability to disable antialiasing. * encodings.c: Changing the encoding of an unassosiated buffer, treat it as if it was encoded in the default encoding. * The ability to change the editor fonts. * Integrated the spell checker into KatoobDocument. * Katoob skip Arabic words spelling. * The recent menu should be really fixed ;-) * save as add the file to the recent menu. * Removed the encoding option from the command line options. * man page cleaning. * Unsupported command line options are ignored instead of displaying the help and exiting with return code 1. * Debugging output is printed to stdout instead of stderr. Version 20030119 * configure.in: fixed "./configure: bidi: command not found" when disabling bidi * Fixed the complain about missing fribidi.h when disabling BIDI ( Thanks Alaa & Uri Elias for reporting ) * gtkspell.c: replace all gtk_text_view_get_buffer() by katoob->active_buffer, Removed the destroy callback * mdi.c: NULL katoob->active_buffer when no more open documents * A man page is now included. * Update gtkspell to 2.0.4 "can now make use of either aspell or pspell" & updates for the configure.in script * mdi.c mdi.h katoob.h gtkspell.c gtkspell.h: Changed HAVE_PSPELL to HAVE_SPELL * BiDi algorithm works when opening files * configure.in: gtkspell is disabled by default, bidi is enabled by default. Version 0.3.1 * src/file.c: Applied patch from bug #12 * src/main.c: Applied patch from bug #11 * Added po/pl.po * Added po/sv.po * src/misc.c: Fixed warnings when displaying the emulator file not found error Fixed a bug that enables the user to open more than 1 about dialog * Added GPL.ar, An Arabic copy of the GPL * Makefile.am: Added GPL.ar to EXTRA_DIST, Cleaned duplicate THANKS entry in the EXTRA_DIST * katoob.spec.in: Modified the description. * Added a man page. Version 20030102 * acconfig.h: deprecated & removed * configure.in: all symbols are defind there with description * better I18N using intltool "translation for katoob.desktop file". * Removed the bundled fribidi option, Always link against the bundled one * configure.in: changed --disable-gtkspell to --enable-gtk-spell * Fixed compile time disabling of the spell checker * src/iransystem.c: Fixed gcc 2.9.5 compile errors * src/file.c: Fixed a segfault when auto selecting an encoding in the save dialog "The displayed name is different than the actual encoding name!" ( Thanks Uri Elias for reporting ) Version 20021208 * Fixed the encoding display problems in the statusbar * Spell checking using gtkspell * Fixed the encodings menu * Several memory leaks * Fribidi is used to handle the BIDI algorithm Version 01112002 * Rewrote all the language routines to facilitate the addition of other encodings. * RTL, LTR are now radio buttons "patch by Jens Askengren". * Fixed a bug that caused the main window to be destroyed when choosing cancel or saving fails. when prompted to save the files upon exit. * Updated Polish translation * BIDI algorithm "EXPERIMENTAL" * Fixed a bug with the about box that allowed opening 2 dialogs. * Fixed a bug that prevents the display of the close button when choosing "No" upon trying to open a non existing file from the recent menu. * Re organised the commandline files opening routines. "reading from stdin works if '-' is anywhere" * The statusbar now displayes the encoding * Fixed a bug that caused the configuration to be saved even if disabled from the preferences dialog. Version 0.3.0 * The new MDI interface * A Polish translation "Krzysztof Krzyzaniak " * The statusbar update followes the cursor movement. * Line & Column count begins from 1 not 0. * Removed all images from the executable file, They are now loaded at runtime * The textbuffer is now always in focus * Enter in the "search for" or "replace with" activates the "find" button * GNOME interface guidelines compliant menubar "suggested by Jens Askengren" * Goto line in the menubar * All dialogs are now transient on the main window * New icons for katoob! * An arabic keyboard emulator to enablr the user to type Arabic without configuring an Arabic keyboard * Added "Text beside icons" To the toolbar style * A popup menu to the toolbar to select the style * A buffer status indicator in the label * Save a copy has been implemented * Implemented revert * Rewrote the recent routines to avoid possible segfaults * Many code cleanups, Numerous bug fixes * Fixed a bug when trying to save text with BIDI tags in windows or iso encoding * Enabling/Disabling, Limiting the size of the Undo history * Limiting the size of the Recent documents menu * More improvements to the user interface * Opening multiple files from the command line * The ability to import, export files in the "HTML Numerical characters reference" * Katoob doesn't display an error when the configuration file is not found * Fixed the error when saving empty files * Enhancements for the encoding menu * --enable-debug defines g_malloc() as malloc(), g_free() as free() and includes stdlib.h * Katoob doesn't save when the disk is full Version 0.2.1 * Fixed the search dialog where some buttons didn't dieplaying the whole label * Added a GNOME menu entry, with a modified smaller logo, Adapted the .spec.in * The statusbar now displayes the cursor position, The state of the file * More error checking in realopen(), real_save() and real_saveas() * Fixed a segfault when changing the encoding of a non valid encoded file * Fixed a bug in the recent menu routines caused a file to be added more than once when opened via command line arguments * Fixed the "replaceall" Warning by gcc * Fixed a segfault when trying to save a file in ISO with non ISO valid characters in the UTF buffer Version 0.2 * Recent documents menu * Prefrences dialog * katoob can now read from the standard input "cat foo | katoob -" * A menu option to save window attributes when exit * A menu item to show/hide the toolbar * The toolbar can now be text only, icons only, or both * A menu item to show/hide the statusbar * In addition to the new configuration file layout, code optimization and of course the Arabic translation * No need to set the Codepage in the environmental variables to display the Arabic interface * The main window now has an icon "similar to that in the about box" Version 0.1 * First public release katoob-0.5.9.1/INSTALL0000644000175000017500000002203110746620171011117 00000000000000Katoob Requirements: ~~~~~~~~~~~~~~~~~~~~ * Gtkmm (Tested with version 2.8.8 and greater) from gtkmm.org * aspell for the spell checking. * zlib to be able to import and export gzipped files. * libbz2 to be able to import and export bzipped files. * libgtksourceviewmm (From http://download.gnome.org/sources/libgtksourceviewmm/) for the syntax highlighting support. Katoob Compilation and Installation: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Type this: tar -zxvf katoob-0.5.9.1.tar.gz cd katoob-0.5.9.1 ./configure make Become root and type: make install Other Options ~~~~~~~~~~~~~ To get a full list of the compile options, type: ./configure --help If you do not have GNU Gettext installed, Or you don't want the interface translations, use: ./configure --disable-nls Extra switches: Beside the normal autotools switches. You can use any of the following. --enable-profile Include profiling information for gprof --enable-bzip2 Enable bzip2 support --enable-gzip Enable gzip support --enable-release Don't compile with debugging support and disable assert() --enable-print Enable printing support. --enable-aspell Enable the aspell checker --enable-highlight Enable syntax highlighting support. --enable-fribidi Enable fribidi support. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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, a file `config.cache' that saves the results of its tests to speed up reconfiguring, and a file `config.log' containing compiler output (useful mainly for debugging `configure'). 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 at some point `config.cache' contains results you don't want to keep, you may remove or edit it. The file `configure.in' is used to create `configure' by a program called `autoconf'. You only need `configure.in' 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. You can give `configure' initial values for variables by setting them in the environment. Using a Bourne-compatible shell, you can do that on the command line like this: CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure Or on systems that have the `env' program, you can do it like this: env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure 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 supports 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' will install the package's files in `/usr/local/bin', `/usr/local/man', etc. You can specify an installation prefix other than `/usr/local' by giving `configure' the option `--prefix=PATH'. You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you give `configure' the option `--exec-prefix=PATH', the package will use PATH as the prefix for installing programs and libraries. Documentation and other data files will still use the regular prefix. In addition, if you use an unusual directory layout you can give options like `--bindir=PATH' 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' can not figure out automatically, but needs to determine by the type of host the package will run on. Usually `configure' can figure that out, but if it prints a message saying it can not guess the host type, give it the `--host=TYPE' option. TYPE can either be a short name for the system type, such as `sun4', or a canonical name with three fields: CPU-COMPANY-SYSTEM 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 host type. If you are building compiler tools for cross-compiling, you can also use the `--target=TYPE' option to select the type of system they will produce code for and the `--build=TYPE' option to select the type of system on which you are compiling the package. 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. Operation Controls ================== `configure' recognizes the following options to control how it operates. `--cache-file=FILE' Use and save the results of the tests in FILE instead of `./config.cache'. Set FILE to `/dev/null' to disable caching, for debugging `configure'. `--help' Print a summary of the options to `configure', and exit. `--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. `--version' Print the version of Autoconf used to generate the `configure' script, and exit. `configure' also accepts some other, not widely useful, options. katoob-0.5.9.1/NEWS0000644000175000017500000002065010746620076010576 000000000000002008-01-26 Mohammed Sameer * Release 0.5.9.1 Fixed a problem that caused katoob to ignore keypresses 2008-01-11 Mohammed Sameer * Release 0.5.9 This version includes a lot of fixes and changes. Enchant is used as the spelling backend. iso-codes is used to provide "pretty names" for the spell checker dictionaries. Enhancements to the recent menu and to the extended toolbar. Gtk is now used to print. Gtksourceview2 is used for the syntax highlighting. Autosave and crash recovery have been implemented. More GNOME HIG compliance. libcurl is used for all of the network-related operations. Maemo support. A few bug fixes and better Arabic translation. 2007-04-28 Mohammed Sameer * Release 0.5.8 Implemented a multipress input method. Reorganized the input menu. A couple of bug fixes. Added a window to show the multipress and emulator mappings. 2007-03-31 Mohammed Sameer * Release 0.5.7 This is mainly a bug fix release. Fixed a bug that can crash the application when OK or Apply is clicked in the preferences dialog under utf8 locales. A lot of small features and enhancements as well as some code cleanups. We also now use gtksourceview not gtksourceviewmm 2006-11-05 Mohammed Sameer * Release 0.5.6 Shouldn't fail when utf8 is selected from the encodings menu. Reset the GUI when we close a document from the document label close button. 2006-11-02 Mohammed Sameer * Release 0.5.5 Opening large files shouldn't be slow anymore. Dropped the "find and replace" button from the replace dialog. Syntax highlighting support using libgtksourceviewmm. 2006-10-23 Mohammed Sameer * Release 0.5.4 Importing or exporting text with bidi and shaping applied won't reverse it. Updated Japanese translation. The preferences dialog sections are now translated. 2006-10-11 Mohammed Sameer * Release 0.5.3 Can now import and export text that has bidi and shaping applied to. The plain text exporting now depends on fribidi. 2006-09-20 Mohammed Sameer * Release 0.5.2 Can now open remote files using an external command. Added an option to insert files. Some small code improvements and cleanups. 2006-9-5 Mohammed Sameer * Release 0.5.1 Fix compilation error when dbus is disabled. 2006-9-4 Mohammed Sameer * Release 0.5.0 Rewritten in C++ and gtkmm 2006-5-15 Mohammed Sameer * Release 0.3.9 New French and Czech translations. A correction to the German translation, A german manpage was added. Updated Hebrew translation. A French to Arabic transliteration. A few bugs have been fixed as well as some features enhancements. 2004-8-30 Mohammed Sameer * Released 0.3.8 Long time no releases, But I kept my word, The release happened this month ;-) What to expect ? A long list of bug fixes and improvements, The last release was really buggy as hell. I hope this one'll be fine. - Hey, We have a new icon now! - A crash ? Should be able to debug itself, And you won't loose your files. - Hebrew and Japanese translations. - Small UI tweaks here and there. - + A lot more. 2003-8-26 Mohammed Sameer * Released 0.3.5 What can I say ? A long time since the latest stable release. Changes since the last development release: - DnD Support - More UI enhancements. - Backup before saving. - Rewritten BiDi line direction detection algorithm. - Native printing support, No more txtbdf2ps stuff ;-) - IDL files are detected and highlighted. - Numerous code cleanups, bug and mem leaks fixes, potential segfaults were fixed and stability increased. Changes since the last stable release: + All of the above plus: - Rewrote many parts of the code. - A new emulator infrastructure. - BiDi support. - All ISO and Windows encodings are supported now. - Many UI enhancements. - Spell checking is Ok now. - Source highlighting. - More and more than I can remember. 2003-6-25 Mohammed Sameer * Released 0.3.4.91 This version should fix all the problems related to detecting aspell/pspell via the configure script, Added java, TeX, Ada to the automatically highlighted languages. 2003-6-24 Mohammed Sameer * Released 0.3.4.90 This is a 0.3.5 prerelease, Offering many features and enhancements, It's mainly a rewrite, Spell checker support, Syntax highlighting, Many encodings are now supported, And More! 2003-1-19 Mohammed Sameer * Released 20030119 Full BiDi support is now implemented. The configure script problems is now fixed, Fixed "fribidi.h" not found compilation problem, Update gtkspell to 2.0.4 "can now make use of either aspell or pspell", And some optimization for the spell checker. The configure script links against libstdc++ which pspell or aspell is linked against. The spell checker is disabled by default, The bidi support is enabled by default. 2003-1-18 Mohammed Sameer * Released 0.3.1 This is mainly a bugfix release. Fixed a bug that caused the mainwindow to be destroyed without katoob quitting, A bug that fixes the compilation problems against glibc 2.3.1, A bug that caused the about box to be opened more than once! Added an Arabic translation for the GPL, And a Swedish translation A man page is now included. 2003-01-02 Mohammed Sameer * Released 20030102 This is a development release. All compile time problems should be fixed in this version but maybe some pspell related problems are still around ;) Fixed gcc 2.9.5 compilation failure, RedHat problems with the autogen.sh script. Properly using intltool to translate GNOME desktop entry! + Fixed a segfault when auto selecting an encoding in the save dialog "The displayed name is different than the actual encoding name!" 2002-12-08 Mohammed Sameer * Released 20021208 This is a development release. This version fixes the broken encodings menu, the encoding display in the statusbar & fixes several memory leaks. Fribidi is now used to handle the BIDI algorithm. Please have a look at the TODO files for the current limitations. 2002-11-02 Mohammed Sameer * Released 01112002 This is a development release. * Limitations: * The encoding display in the statusbar doesn't work correctly * The encoding menu is broken * The BIDI support is incomplete * The RTL/LTR doesn't work when switching pages * The HTML reference doesn't cover all characters * No way to choose the default encoding * Several memory leaks * Remove or keep the xkb switcher ?? * Recent menu doesn't save in the correct order * FIX REAL_OPEN 2002-9-12 Mohammed Sameer * Released 0.3.0 This version comes after a very long time and big efforts spent in the development. This version offers the new MDI interface, Follows the GNOME human interface guidelines, Fixes many bugs and segfaults "Most of them happens when the user does an unexpected behaviour as opening binary files as HTML style". A new preferences dialog. More options are now customizable, Saving in plain UTF-8, ISO-8859-6 & cp1256 works well. The ability to import and export HTML numerical characters references. The new Arabic emulator. You really got to try this version. ;) 2002-8-14 Mohammed Sameer * Released 0.2.1 This version is mainly a bug fix, fixed many crashes, The most important is crashing when saving a buffer in the ISO encoding whice contains non ISO valid characters. And more error checking to prevent possible ones. The interface changes are kept to the minimum in this version. And fixed a bug that caused a file opened via command line to be aded more than once to the recent menu. 2002-8-10 Mohammed Sameer * Released 0.2 This version is A major interface improvement. With the recent menu, prefrences dialog, Toolbar & statusbar customization options. With some more features discover it yourself ;) 2002-7-27 Mohammed Sameer * First piblic release 0.1 The first piblic release, After monthes of work. What to say more ;) katoob-0.5.9.1/THANKS0000644000175000017500000001024210746617675011021 00000000000000* Khaled Hosny - Reviewing and correcting the Arabic translation for 0.5.9 - various small i18n and l10n tips. * Igor Bogomazov - He reported and helped debugging the crash under the utf8 locale. * Jens Seidel - German PO file corrections (Debian bug #314022) * Islam Motab Amer know as phaeron - Helped me debugging the lam-alef handling code - Helped me discovering the multiple lines paste bug. - Helped me discovering the replace all endless loop bug. * Mostafa Hussein - New Icons for katoob :-) - Switching of the line numbers to the right side into the RTL mode idea. * Thanks Leonardo Boshell - Pathches to fix compilation errors when disabling the spell checker and when freetype andfreetype2 are present. * Pav Lucistnik & Samy Al Bahra - Fixes segmentation fault on start-up with several systems. * Samy Al Bahra - Several Code cleanups and optimisations, Fix many potential buffer overflows. Probably he deserves more than a thanks ;-) * Mohammed Elzubeir < elzubeir at arabeyes dot org> - Hosting, Supporting the project * Hicham AMAOUI - Redhat 9.0 segfault patch. * Youcef Rabah Rahal * Isam Bayazidi - Helping me with the Arabic translation. * Munzir Taha Obeid - Helped me crushing bugs, iproving the UI, Fixing many issues. By his many suggestions and bug reports. He deserve more than a THANK YOU, But this is what i can offer :-( * Alaa Abd-El Fatah - Help in debugging katoob 0.2 - Multiple encodings support idea - Helping in fixing the segmentation fault while saving files with non valid ISO characters "Actually he was the one who discovered it ;)" - The complete Arabic emulator file - The idea of HTML numerical reference saving - His numerous ideas for improving the code, and efficiency. - Modifying the emulator code to get rid of the switch statement. * Arabeyes Developer mailing list - Our main development mailing list, ideas and support * Anatoly Asviyan - For writing "gkrellxkb", I borrowed the main idea and some code from it ;) * Jens Askengren - GNOME human interface idea. - a patch that changes the text direction buttons to use radio buttons. * Krzysztof Krzyzaniak - The Polish translation for version 0.3.0 * Mohammed Yousif - Slack package for 0.3 "slack 8.1" * Roozbeh Pournader - Providing the IRAN SYSTEM table * Arash Zeini - Pointing me to "Shabredo" where i borrowed some code ;) * Han Boetes - Helping me with the Mandrake spec file, And maintaining Mandrake package. * UTUMI Hirosi - Japanese translation and japanese encodings code, And a screenshot :-) * Diego Iastrubni - Several patches that fixed some segfaults. - The hebrew emulator file. - Hebrew to Logical Hebrew patch. * Michelle Konzack - The 2nd bug hunting feast, Many thanks. ;) - German manpage. * fribidi Authors * gtkspell Author TRANSLATIONS ============ Arabic: Mohammed Sameer * All versions up to 0.5.8 Khaled Hosny * 0.5.8+ Polish: Krzysztof Krzyzaniak 0.2.1 Swedish: Jens Askengren 0.3.1 Hebrew: GNU/Linux Kinneret project (http://www.linux-kinneret.org/). Japanese: UTUMI Hirosi German: Michelle Konzack French: Emmanuel Beffara 0.3.8 Czech: Jan Grmela katoob-0.5.9.1/TODO0000644000175000017500000000277610746617675010613 00000000000000 Here is my todo list in no specific order email me with any new suggestions * THANKS FILE. Reorganise. * PrintDialog, Load and save settings. * Farther enhancing the encodings menu * We need to use the new gtk printing framework once gtk 2.10 hits Debian. * when we undo until we reach a state where the document is identical to the saved copy, we should mark it as not modified. grep TODO *.c grep FIXME *.c To be done: * Execute command on highlighted text * Export HTML Numerical character references again. * HTML numerical ref. cover all non-latin range * Display some information in the statusbar * Auto save * Multiple clipboards * Auto wrapping * insert common elements "date, time, GPL, Name, any options" * bidi control characters are visible * shortcut for rtl, emulator * No way to force a document to RTL or LTR. * Do we need the xkb switcher back ? * Complete the lanuages names in the encodings dropdown list * Workarounds for Gtk * Some bidi related problems. * Editor foreground/backgrond. * Allow the color of the spell checker error underline to be configurable. * show hindi digits or arabic digits or by context. Emmanuel Beffara * Possibility of using a different font per script. * The shortcuts don't work anymore when using the emulator, (typing Ctrl-Q there inserts a qaf...). May be done oneday * A basic or advanced HTML Editor * Export to HTML * Plugins interface * Customisable toolbar * Splash screen? ;) "Need to modify an existing image" * Perhaps CVS support * Line ends: unix/windows/mac. katoob-0.5.9.1/config.guess0000755000175000017500000012706110661211205012405 00000000000000#! /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 Free Software Foundation, # Inc. timestamp='2007-07-22' # 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 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 __ELF__ >/dev/null 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 ;; 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.*:*) echo i386-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:*:[45]) 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 __LP64__ >/dev/null 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) echo x86_64-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 ;; 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:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu 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:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef mips #undef mipsel #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=mipsel #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=mips #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; } ;; mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef mips64 #undef mips64el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=mips64el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=mips64 #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 ld.so.1 >/dev/null if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} 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 xtensa-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" ;; a.out-i386-linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" exit ;; coff-i386) echo "${UNAME_MACHINE}-pc-linux-gnucoff" exit ;; "") # Either a pre-BFD a.out linker (linux-gnuoldld) or # one that does not give us useful --help. echo "${UNAME_MACHINE}-pc-linux-gnuoldld" exit ;; 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.0*:*) 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 i386. echo i386-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; } ;; 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.0*:*) 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 ;; 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 ;; 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: katoob-0.5.9.1/config.sub0000755000175000017500000007772410661211205012062 00000000000000#! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, # Inc. timestamp='2007-06-28' # 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 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* | \ 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 ;; -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 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ | maxq | mb | microblaze | mcore | mep \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64vr | mips64vrel \ | mips64orion | mips64orionel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | 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[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) 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-* \ | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64vr-* | mips64vrel-* \ | mips64orion-* | mips64orionel-* \ | 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[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-* \ | tron-* \ | v850-* | v850e-* | vax-* \ | we32k-* \ | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ | xstormy16-* | xtensa-* \ | ymp-* \ | z8k-*) ;; # 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 ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; c90) basic_machine=c90-cray os=-unicos ;; 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 ;; 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 ;; 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 ;; 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 ;; 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 ;; 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[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* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* \ | -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* \ | -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 ;; -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 ;; -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: katoob-0.5.9.1/depcomp0000755000175000017500000003541010746620157011454 00000000000000#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2004-04-25.13 # Copyright (C) 1999, 2000, 2003, 2004 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., 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. # 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'. 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 0 ;; -v | --v*) echo "depcomp $scriptversion" exit 0 ;; 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 # `libtool' can also be set to `yes' or `no'. if test -z "$depfile"; then base=`echo "$object" | sed -e 's,^.*/,,' -e 's,\.\([^.]*\)$,.P\1,'` dir=`echo "$object" | sed 's,/.*$,/,'` if test "$dir" = "$object"; then dir= fi # FIXME: should be _deps on DOS. depfile="$dir.deps/$base" fi 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 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. "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" 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. stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'` tmpdepfile="$stripped.u" if test "$libtool" = yes; then "$@" -Wc,-M else "$@" -M fi stat=$? if test -f "$tmpdepfile"; then : else stripped=`echo "$stripped" | sed 's,^.*/,,'` tmpdepfile="$stripped.u" fi if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi if test -f "$tmpdepfile"; then outname="$stripped.o" # 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,^$outname:,$object :," < "$tmpdepfile" > "$depfile" sed -e "s,^$outname: \(.*\)$,\1:," < "$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" ;; 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 # Dependencies are output in .lo.d with libtool 1.4. # They are output in .o.d with libtool 1.5. tmpdepfile1="$dir.libs/$base.lo.d" tmpdepfile2="$dir.libs/$base.o.d" tmpdepfile3="$dir.libs/$base.d" "$@" -Wc,-MD else tmpdepfile1="$dir$base.o.d" tmpdepfile2="$dir$base.d" tmpdepfile3="$dir$base.d" "$@" -MD fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi if test -f "$tmpdepfile1"; then tmpdepfile="$tmpdepfile1" elif test -f "$tmpdepfile2"; then tmpdepfile="$tmpdepfile2" else tmpdepfile="$tmpdepfile3" fi 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 $1 != '--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 $1 != '--mode=compile'; do shift done shift fi # X makedepend shift cleared=no for arg in "$@"; do case $cleared in no) set ""; shift cleared=yes ;; esac 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. -*|$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 $1 != '--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 '/^# [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, regardless of -o, # because we must use -o when running libtool. "$@" || exit $? IFS=" " for arg do case "$arg" in "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" echo " " >> "$depfile" . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; 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-end: "$" # End: katoob-0.5.9.1/install-sh0000755000175000017500000002244110746620157012103 00000000000000#!/bin/sh # install - install a program, script, or datafile scriptversion=2004-04-01.17 # 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. It can only install one file at a time, a restriction # shared with many OS's install programs. # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit="${DOITPROG-}" # put in absolute paths if you don't have them in your path; or use env. vars. mvprog="${MVPROG-mv}" cpprog="${CPPROG-cp}" chmodprog="${CHMODPROG-chmod}" chownprog="${CHOWNPROG-chown}" chgrpprog="${CHGRPPROG-chgrp}" stripprog="${STRIPPROG-strip}" rmprog="${RMPROG-rm}" mkdirprog="${MKDIRPROG-mkdir}" transformbasename= transform_arg= instcmd="$mvprog" chmodcmd="$chmodprog 0755" chowncmd= chgrpcmd= stripcmd= rmcmd="$rmprog -f" mvcmd="$mvprog" src= dst= dir_arg= usage="Usage: $0 [OPTION]... SRCFILE DSTFILE or: $0 [OPTION]... SRCFILES... DIRECTORY or: $0 -d DIRECTORIES... In the first form, install SRCFILE to DSTFILE, removing SRCFILE by default. In the second, create the directory path DIR. Options: -b=TRANSFORMBASENAME -c copy source (using $cpprog) instead of moving (using $mvprog). -d create directories instead of installing files. -g GROUP $chgrp installed files to GROUP. -m MODE $chmod installed files to MODE. -o USER $chown installed files to USER. -s strip installed files (using $stripprog). -t=TRANSFORM --help display this help and exit. --version display version info and exit. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG " while test -n "$1"; do case $1 in -b=*) transformbasename=`echo $1 | sed 's/-b=//'` shift continue;; -c) instcmd=$cpprog shift continue;; -d) dir_arg=true shift continue;; -g) chgrpcmd="$chgrpprog $2" shift shift continue;; --help) echo "$usage"; exit 0;; -m) chmodcmd="$chmodprog $2" shift shift continue;; -o) chowncmd="$chownprog $2" shift shift continue;; -s) stripcmd=$stripprog shift continue;; -t=*) transformarg=`echo $1 | sed 's/-t=//'` shift continue;; --version) echo "$0 $scriptversion"; exit 0;; *) # When -d is used, all remaining arguments are directories to create. test -n "$dir_arg" && break # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dstarg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dstarg" shift # fnord fi shift # arg dstarg=$arg done break;; esac done if test -z "$1"; 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 for src do # Protect names starting with `-'. case $src in -*) src=./$src ;; esac if test -n "$dir_arg"; then dst=$src src= if test -d "$dst"; then instcmd=: chmodcmd= else instcmd=$mkdirprog fi else # Waiting for this to be detected by the "$instcmd $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 "$dstarg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dstarg # 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 dst=$dst/`basename "$src"` fi fi # This sed command emulates the dirname command. dstdir=`echo "$dst" | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` # Make sure that the destination directory exists. # Skip lots of stat calls in the usual case. if test ! -d "$dstdir"; then defaultIFS=' ' IFS="${IFS-$defaultIFS}" oIFS=$IFS # Some sh's can't handle IFS=/ for some reason. IFS='%' set - `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'` IFS=$oIFS pathcomp= while test $# -ne 0 ; do pathcomp=$pathcomp$1 shift if test ! -d "$pathcomp"; then $mkdirprog "$pathcomp" || lasterr=$? # mkdir can fail with a `File exist' error in case several # install-sh are creating the directory concurrently. This # is OK. test ! -d "$pathcomp" && { (exit ${lasterr-1}); exit; } fi pathcomp=$pathcomp/ done fi if test -n "$dir_arg"; then $doit $instcmd "$dst" \ && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \ && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \ && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \ && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; } else # If we're going to rename the final executable, determine the name now. if test -z "$transformarg"; then dstfile=`basename "$dst"` else dstfile=`basename "$dst" $transformbasename \ | sed $transformarg`$transformbasename fi # don't allow the sed command to completely eliminate the filename. test -z "$dstfile" && dstfile=`basename "$dst"` # 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 'status=$?; rm -f "$dsttmp" "$rmtmp" && exit $status' 0 trap '(exit $?); exit' 1 2 13 15 # Move or copy the file name to the temp name $doit $instcmd "$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 $instcmd $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 "$dsttmp"; } && # Now rename the file to the real destination. { $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 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. { if test -f "$dstdir/$dstfile"; then $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \ || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \ || { echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2 (exit 1); exit } else : fi } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dstdir/$dstfile" } } fi || { (exit 1); exit; } done # The final little trick to "correctly" pass the exit status to the exit trap. { (exit 0); exit } # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: katoob-0.5.9.1/ltmain.sh0000644000175000017500000060511410723074605011717 00000000000000# ltmain.sh - Provide generalized library-building support services. # NOTE: Changing this file will not affect anything until you rerun configure. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, # 2007 Free Software Foundation, Inc. # Originally by Gordon Matzigkeit , 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 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. basename="s,^.*/,,g" # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh # is ksh but when the shell is invoked as "sh" and the current value of # the _XPG environment variable is not equal to 1 (one), the special # positional parameter $0, within a function call, is the name of the # function. progpath="$0" # The name of this program: progname=`echo "$progpath" | $SED $basename` modename="$progname" # Global variables: EXIT_SUCCESS=0 EXIT_FAILURE=1 PROGRAM=ltmain.sh PACKAGE=libtool VERSION="1.5.24 Debian 1.5.24-2" TIMESTAMP=" (1.1220.2.456 2007/06/24 02:25:32)" # Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE). if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs 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 BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # Check that we have a working $echo. if test "X$1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X$1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then # Yippee, $echo works! : else # Restart under the correct shell, and then maybe $echo will work. exec $SHELL "$progpath" --no-reexec ${1+"$@"} fi if test "X$1" = X--fallback-echo; then # used as fallback echo shift cat <&2 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 exit $EXIT_FAILURE fi # Global variables. mode=$default_mode nonopt= prev= prevopt= run= show="$echo" show_help= execute_dlfiles= duplicate_deps=no preserve_args= lo2o="s/\\.lo\$/.${objext}/" o2lo="s/\\.${objext}\$/.lo/" extracted_archives= extracted_serial=0 ##################################### # Shell function definitions: # This seems to be the best place for them # func_mktempdir [string] # Make a temporary directory that won't clash with other running # libtool processes, and avoids race conditions if possible. If # given, STRING is the basename for that directory. func_mktempdir () { my_template="${TMPDIR-/tmp}/${1-$progname}" if test "$run" = ":"; then # Return a directory name, but don't create it in dry-run mode my_tmpdir="${my_template}-$$" else # If mktemp works, use that first and foremost my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null` if test ! -d "$my_tmpdir"; then # Failing that, at least try and use $RANDOM to avoid a race my_tmpdir="${my_template}-${RANDOM-0}$$" save_mktempdir_umask=`umask` umask 0077 $mkdir "$my_tmpdir" umask $save_mktempdir_umask fi # If we're not in dry-run mode, bomb out on failure test -d "$my_tmpdir" || { $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2 exit $EXIT_FAILURE } fi $echo "X$my_tmpdir" | $Xsed } # func_win32_libid arg # return the library type of file 'arg' # # Need a lot of goo to handle *both* DLLs and import libs # Has to be a shell function in order to 'eat' the argument # that is supplied when $file_magic_command is called. func_win32_libid () { win32_libid_type="unknown" win32_fileres=`file -L $1 2>/dev/null` case $win32_fileres in *ar\ archive\ import\ library*) # definitely import win32_libid_type="x86 archive import" ;; *ar\ archive*) # could be an import, or static if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \ $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then win32_nmres=`eval $NM -f posix -A $1 | \ $SED -n -e '1,100{ / I /{ s,.*,import, p q } }'` case $win32_nmres in import*) win32_libid_type="x86 archive import";; *) win32_libid_type="x86 archive static";; esac fi ;; *DLL*) win32_libid_type="x86 DLL" ;; *executable*) # but shell scripts are "executable" too... case $win32_fileres in *MS\ Windows\ PE\ Intel*) win32_libid_type="x86 DLL" ;; esac ;; esac $echo $win32_libid_type } # func_infer_tag arg # Infer tagged configuration to use if any are available and # if one wasn't chosen via the "--tag" command line option. # Only attempt this if the compiler in the base compile # command doesn't match the default compiler. # arg is usually of the form 'gcc ...' func_infer_tag () { if test -n "$available_tags" && test -z "$tagname"; then CC_quoted= for arg in $CC; do case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac CC_quoted="$CC_quoted $arg" done case $@ in # Blanks in the command may have been stripped by the calling shell, # but not from the CC environment variable when configure was run. " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;; # Blanks at the start of $base_compile will cause this to fail # if we don't check for them as well. *) for z in $available_tags; do if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then # Evaluate the configuration. eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" CC_quoted= for arg in $CC; do # Double-quote args containing other shell metacharacters. case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac CC_quoted="$CC_quoted $arg" done case "$@ " in " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) # The compiler in the base compile command matches # the one in the tagged configuration. # Assume this is the tagged configuration we want. tagname=$z break ;; esac fi done # If $tagname still isn't set, then no tagged configuration # was found and let the user know that the "--tag" command # line option must be used. if test -z "$tagname"; then $echo "$modename: unable to infer tagged configuration" $echo "$modename: specify a tag with \`--tag'" 1>&2 exit $EXIT_FAILURE # else # $echo "$modename: using $tagname tagged configuration" fi ;; esac fi } # func_extract_an_archive dir oldlib func_extract_an_archive () { f_ex_an_ar_dir="$1"; shift f_ex_an_ar_oldlib="$1" $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)" $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $? if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then : else $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2 exit $EXIT_FAILURE fi } # func_extract_archives gentop oldlib ... func_extract_archives () { my_gentop="$1"; shift my_oldlibs=${1+"$@"} my_oldobjs="" my_xlib="" my_xabs="" my_xdir="" my_status="" $show "${rm}r $my_gentop" $run ${rm}r "$my_gentop" $show "$mkdir $my_gentop" $run $mkdir "$my_gentop" my_status=$? if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then exit $my_status fi for my_xlib in $my_oldlibs; do # Extract the objects. case $my_xlib in [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; *) my_xabs=`pwd`"/$my_xlib" ;; esac my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'` my_xlib_u=$my_xlib while :; do case " $extracted_archives " in *" $my_xlib_u "*) extracted_serial=`expr $extracted_serial + 1` my_xlib_u=lt$extracted_serial-$my_xlib ;; *) break ;; esac done extracted_archives="$extracted_archives $my_xlib_u" my_xdir="$my_gentop/$my_xlib_u" $show "${rm}r $my_xdir" $run ${rm}r "$my_xdir" $show "$mkdir $my_xdir" $run $mkdir "$my_xdir" exit_status=$? if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then exit $exit_status fi case $host in *-darwin*) $show "Extracting $my_xabs" # Do not bother doing anything if just a dry run if test -z "$run"; then darwin_orig_dir=`pwd` cd $my_xdir || exit $? darwin_archive=$my_xabs darwin_curdir=`pwd` darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'` darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null` if test -n "$darwin_arches"; then darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'` darwin_arch= $show "$darwin_base_archive has multiple architectures $darwin_arches" for darwin_arch in $darwin_arches ; do mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}" lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" func_extract_an_archive "`pwd`" "${darwin_base_archive}" cd "$darwin_curdir" $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" done # $darwin_arches ## Okay now we have a bunch of thin objects, gotta fatten them up :) darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP` darwin_file= darwin_files= for darwin_file in $darwin_filelist; do darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP` lipo -create -output "$darwin_file" $darwin_files done # $darwin_filelist ${rm}r unfat-$$ cd "$darwin_orig_dir" else cd "$darwin_orig_dir" func_extract_an_archive "$my_xdir" "$my_xabs" fi # $darwin_arches fi # $run ;; *) func_extract_an_archive "$my_xdir" "$my_xabs" ;; esac my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` done func_extract_archives_result="$my_oldobjs" } # End of Shell function definitions ##################################### # Darwin sucks eval std_shrext=\"$shrext_cmds\" disable_libs=no # Parse our command line options once, thoroughly. while test "$#" -gt 0 do arg="$1" shift case $arg in -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in execute_dlfiles) execute_dlfiles="$execute_dlfiles $arg" ;; tag) tagname="$arg" preserve_args="${preserve_args}=$arg" # Check whether tagname contains only valid characters case $tagname in *[!-_A-Za-z0-9,/]*) $echo "$progname: invalid tag name: $tagname" 1>&2 exit $EXIT_FAILURE ;; esac case $tagname in CC) # Don't test for the "default" C tag, as we know, it's there, but # not specially marked. ;; *) if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then taglist="$taglist $tagname" # Evaluate the configuration. eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`" else $echo "$progname: ignoring unknown tag $tagname" 1>&2 fi ;; esac ;; *) eval "$prev=\$arg" ;; esac prev= prevopt= continue fi # Have we seen a non-optional argument yet? case $arg in --help) show_help=yes ;; --version) echo "\ $PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP Copyright (C) 2007 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." exit $? ;; --config) ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath # Now print the configurations for the tags. for tagname in $taglist; do ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath" done exit $? ;; --debug) $echo "$progname: enabling shell trace mode" set -x preserve_args="$preserve_args $arg" ;; --dry-run | -n) run=: ;; --features) $echo "host: $host" if test "$build_libtool_libs" = yes; then $echo "enable shared libraries" else $echo "disable shared libraries" fi if test "$build_old_libs" = yes; then $echo "enable static libraries" else $echo "disable static libraries" fi exit $? ;; --finish) mode="finish" ;; --mode) prevopt="--mode" prev=mode ;; --mode=*) mode="$optarg" ;; --preserve-dup-deps) duplicate_deps="yes" ;; --quiet | --silent) show=: preserve_args="$preserve_args $arg" ;; --tag) prevopt="--tag" prev=tag preserve_args="$preserve_args --tag" ;; --tag=*) set tag "$optarg" ${1+"$@"} shift prev=tag preserve_args="$preserve_args --tag" ;; -dlopen) prevopt="-dlopen" prev=execute_dlfiles ;; -*) $echo "$modename: unrecognized option \`$arg'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; *) nonopt="$arg" break ;; esac done if test -n "$prevopt"; then $echo "$modename: option \`$prevopt' requires an argument" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi case $disable_libs in no) ;; shared) build_libtool_libs=no build_old_libs=yes ;; static) build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` ;; esac # If this variable is set in any of the actions, the command in it # will be execed at the end. This prevents here-documents from being # left over by shells. exec_cmd= if test -z "$show_help"; then # Infer the operation mode. if test -z "$mode"; then $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2 $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2 case $nonopt in *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*) mode=link for arg do case $arg in -c) mode=compile break ;; esac done ;; *db | *dbx | *strace | *truss) mode=execute ;; *install*|cp|mv) mode=install ;; *rm) mode=uninstall ;; *) # If we have no mode, but dlfiles were specified, then do execute mode. test -n "$execute_dlfiles" && mode=execute # Just use the default operation mode. if test -z "$mode"; then if test -n "$nonopt"; then $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2 else $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2 fi fi ;; esac fi # Only execute mode is allowed to have -dlopen flags. if test -n "$execute_dlfiles" && test "$mode" != execute; then $echo "$modename: unrecognized option \`-dlopen'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Change the help message to a mode-specific one. generic_help="$help" help="Try \`$modename --help --mode=$mode' for more information." # These modes are in order of execution frequency so that they run quickly. case $mode in # libtool compile mode compile) modename="$modename: compile" # Get the compilation command and the source file. base_compile= srcfile="$nonopt" # always keep a non-empty value in "srcfile" suppress_opt=yes suppress_output= arg_mode=normal libobj= later= for arg do case $arg_mode in arg ) # do not "continue". Instead, add this to base_compile lastarg="$arg" arg_mode=normal ;; target ) libobj="$arg" arg_mode=normal continue ;; normal ) # Accept any command-line options. case $arg in -o) if test -n "$libobj" ; then $echo "$modename: you cannot specify \`-o' more than once" 1>&2 exit $EXIT_FAILURE fi arg_mode=target continue ;; -static | -prefer-pic | -prefer-non-pic) later="$later $arg" continue ;; -no-suppress) suppress_opt=no continue ;; -Xcompiler) arg_mode=arg # the next one goes into the "base_compile" arg list continue # The current "srcfile" will either be retained or ;; # replaced later. I would guess that would be a bug. -Wc,*) args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"` lastarg= save_ifs="$IFS"; IFS=',' for arg in $args; do IFS="$save_ifs" # Double-quote args containing other shell metacharacters. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac lastarg="$lastarg $arg" done IFS="$save_ifs" lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"` # Add the arguments to base_compile. base_compile="$base_compile $lastarg" continue ;; * ) # Accept the current argument as the source file. # The previous "srcfile" becomes the current argument. # lastarg="$srcfile" srcfile="$arg" ;; esac # case $arg ;; esac # case $arg_mode # Aesthetically quote the previous argument. lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"` case $lastarg in # Double-quote args containing other shell metacharacters. # Many Bourne shells cannot handle close brackets correctly # in scan sets, and some SunOS ksh mistreat backslash-escaping # in scan sets (worked around with variable expansion), # and furthermore cannot handle '|' '&' '(' ')' in scan sets # at all, so we specify them separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") lastarg="\"$lastarg\"" ;; esac base_compile="$base_compile $lastarg" done # for arg case $arg_mode in arg) $echo "$modename: you must specify an argument for -Xcompile" exit $EXIT_FAILURE ;; target) $echo "$modename: you must specify a target with \`-o'" 1>&2 exit $EXIT_FAILURE ;; *) # Get the name of the library object. [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'` ;; esac # Recognize several different file suffixes. # If the user specifies -o file.o, it is replaced with file.lo xform='[cCFSifmso]' case $libobj in *.ada) xform=ada ;; *.adb) xform=adb ;; *.ads) xform=ads ;; *.asm) xform=asm ;; *.c++) xform=c++ ;; *.cc) xform=cc ;; *.ii) xform=ii ;; *.class) xform=class ;; *.cpp) xform=cpp ;; *.cxx) xform=cxx ;; *.[fF][09]?) xform=[fF][09]. ;; *.for) xform=for ;; *.java) xform=java ;; *.obj) xform=obj ;; esac libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"` case $libobj in *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;; *) $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2 exit $EXIT_FAILURE ;; esac func_infer_tag $base_compile for arg in $later; do case $arg in -static) build_old_libs=yes continue ;; -prefer-pic) pic_mode=yes continue ;; -prefer-non-pic) pic_mode=no continue ;; esac done qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"` case $qlibobj in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") qlibobj="\"$qlibobj\"" ;; esac test "X$libobj" != "X$qlibobj" \ && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \ && $echo "$modename: libobj name \`$libobj' may not contain shell special characters." objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$obj"; then xdir= else xdir=$xdir/ fi lobj=${xdir}$objdir/$objname if test -z "$base_compile"; then $echo "$modename: you must specify a compilation command" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Delete any leftover library objects. if test "$build_old_libs" = yes; then removelist="$obj $lobj $libobj ${libobj}T" else removelist="$lobj $libobj ${libobj}T" fi $run $rm $removelist trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15 # On Cygwin there's no "real" PIC flag so we must build both object types case $host_os in cygwin* | mingw* | pw32* | os2*) pic_mode=default ;; esac if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then # non-PIC code in shared libraries is not supported pic_mode=default fi # Calculate the filename of the output object if compiler does # not support -o with -c if test "$compiler_c_o" = no; then output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext} lockfile="$output_obj.lock" removelist="$removelist $output_obj $lockfile" trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15 else output_obj= need_locks=no lockfile= fi # Lock this critical section if it is needed # We use this script file to make the link, it avoids creating a new file if test "$need_locks" = yes; then until $run ln "$progpath" "$lockfile" 2>/dev/null; do $show "Waiting for $lockfile to be removed" sleep 2 done elif test "$need_locks" = warn; then if test -f "$lockfile"; then $echo "\ *** ERROR, $lockfile exists and contains: `cat $lockfile 2>/dev/null` This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $run $rm $removelist exit $EXIT_FAILURE fi $echo "$srcfile" > "$lockfile" fi if test -n "$fix_srcfile_path"; then eval srcfile=\"$fix_srcfile_path\" fi qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"` case $qsrcfile in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") qsrcfile="\"$qsrcfile\"" ;; esac $run $rm "$libobj" "${libobj}T" # Create a libtool object file (analogous to a ".la" file), # but don't create it if we're doing a dry run. test -z "$run" && cat > ${libobj}T </dev/null`" != "X$srcfile"; then $echo "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $run $rm $removelist exit $EXIT_FAILURE fi # Just move the object if needed, then go on to compile the next one if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then $show "$mv $output_obj $lobj" if $run $mv $output_obj $lobj; then : else error=$? $run $rm $removelist exit $error fi fi # Append the name of the PIC object to the libtool object file. test -z "$run" && cat >> ${libobj}T <> ${libobj}T </dev/null`" != "X$srcfile"; then $echo "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $run $rm $removelist exit $EXIT_FAILURE fi # Just move the object if needed if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then $show "$mv $output_obj $obj" if $run $mv $output_obj $obj; then : else error=$? $run $rm $removelist exit $error fi fi # Append the name of the non-PIC object the libtool object file. # Only append if the libtool object file exists. test -z "$run" && cat >> ${libobj}T <> ${libobj}T <&2 fi if test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; -static) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=built ;; -static-libtool-libs) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; esac build_libtool_libs=no build_old_libs=yes break ;; esac done # See if our shared archives depend on static archives. test -n "$old_archive_from_new_cmds" && build_old_libs=yes # Go through the arguments, transforming them on the way. while test "$#" -gt 0; do arg="$1" shift case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test ;; *) qarg=$arg ;; esac libtool_args="$libtool_args $qarg" # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in output) compile_command="$compile_command @OUTPUT@" finalize_command="$finalize_command @OUTPUT@" ;; esac case $prev in dlfiles|dlprefiles) if test "$preload" = no; then # Add the symbol object into the linking commands. compile_command="$compile_command @SYMFILE@" finalize_command="$finalize_command @SYMFILE@" preload=yes fi case $arg in *.la | *.lo) ;; # We handle these cases below. force) if test "$dlself" = no; then dlself=needless export_dynamic=yes fi prev= continue ;; self) if test "$prev" = dlprefiles; then dlself=yes elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then dlself=yes else dlself=needless export_dynamic=yes fi prev= continue ;; *) if test "$prev" = dlfiles; then dlfiles="$dlfiles $arg" else dlprefiles="$dlprefiles $arg" fi prev= continue ;; esac ;; expsyms) export_symbols="$arg" if test ! -f "$arg"; then $echo "$modename: symbol file \`$arg' does not exist" exit $EXIT_FAILURE fi prev= continue ;; expsyms_regex) export_symbols_regex="$arg" prev= continue ;; inst_prefix) inst_prefix_dir="$arg" prev= continue ;; precious_regex) precious_files_regex="$arg" prev= continue ;; release) release="-$arg" prev= continue ;; objectlist) if test -f "$arg"; then save_arg=$arg moreargs= for fil in `cat $save_arg` do # moreargs="$moreargs $fil" arg=$fil # A libtool-controlled object. # Check to see that this really is a libtool object. if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then pic_object= non_pic_object= # Read the .lo file # If there is no directory component, then add one. case $arg in */* | *\\*) . $arg ;; *) . ./$arg ;; esac if test -z "$pic_object" || \ test -z "$non_pic_object" || test "$pic_object" = none && \ test "$non_pic_object" = none; then $echo "$modename: cannot find name of object for \`$arg'" 1>&2 exit $EXIT_FAILURE fi # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then dlfiles="$dlfiles $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. dlprefiles="$dlprefiles $pic_object" prev= fi # A PIC object. libobjs="$libobjs $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object non_pic_objects="$non_pic_objects $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" non_pic_objects="$non_pic_objects $non_pic_object" fi else # Only an error if not doing a dry-run. if test -z "$run"; then $echo "$modename: \`$arg' is not a valid libtool object" 1>&2 exit $EXIT_FAILURE else # Dry-run case. # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"` non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"` libobjs="$libobjs $pic_object" non_pic_objects="$non_pic_objects $non_pic_object" fi fi done else $echo "$modename: link input file \`$save_arg' does not exist" exit $EXIT_FAILURE fi arg=$save_arg prev= continue ;; rpath | xrpath) # We need an absolute path. case $arg in [\\/]* | [A-Za-z]:[\\/]*) ;; *) $echo "$modename: only absolute run-paths are allowed" 1>&2 exit $EXIT_FAILURE ;; esac if test "$prev" = rpath; then case "$rpath " in *" $arg "*) ;; *) rpath="$rpath $arg" ;; esac else case "$xrpath " in *" $arg "*) ;; *) xrpath="$xrpath $arg" ;; esac fi prev= continue ;; xcompiler) compiler_flags="$compiler_flags $qarg" prev= compile_command="$compile_command $qarg" finalize_command="$finalize_command $qarg" continue ;; xlinker) linker_flags="$linker_flags $qarg" compiler_flags="$compiler_flags $wl$qarg" prev= compile_command="$compile_command $wl$qarg" finalize_command="$finalize_command $wl$qarg" continue ;; xcclinker) linker_flags="$linker_flags $qarg" compiler_flags="$compiler_flags $qarg" prev= compile_command="$compile_command $qarg" finalize_command="$finalize_command $qarg" continue ;; shrext) shrext_cmds="$arg" prev= continue ;; darwin_framework|darwin_framework_skip) test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" prev= continue ;; *) eval "$prev=\"\$arg\"" prev= continue ;; esac fi # test -n "$prev" prevarg="$arg" case $arg in -all-static) if test -n "$link_static_flag"; then compile_command="$compile_command $link_static_flag" finalize_command="$finalize_command $link_static_flag" fi continue ;; -allow-undefined) # FIXME: remove this flag sometime in the future. $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2 continue ;; -avoid-version) avoid_version=yes continue ;; -dlopen) prev=dlfiles continue ;; -dlpreopen) prev=dlprefiles continue ;; -export-dynamic) export_dynamic=yes continue ;; -export-symbols | -export-symbols-regex) if test -n "$export_symbols" || test -n "$export_symbols_regex"; then $echo "$modename: more than one -exported-symbols argument is not allowed" exit $EXIT_FAILURE fi if test "X$arg" = "X-export-symbols"; then prev=expsyms else prev=expsyms_regex fi continue ;; -framework|-arch|-isysroot) case " $CC " in *" ${arg} ${1} "* | *" ${arg} ${1} "*) prev=darwin_framework_skip ;; *) compiler_flags="$compiler_flags $arg" prev=darwin_framework ;; esac compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" continue ;; -inst-prefix-dir) prev=inst_prefix continue ;; # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* # so, if we see these flags be careful not to treat them like -L -L[A-Z][A-Z]*:*) case $with_gcc/$host in no/*-*-irix* | /*-*-irix*) compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" ;; esac continue ;; -L*) dir=`$echo "X$arg" | $Xsed -e 's/^-L//'` # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2 absdir="$dir" notinst_path="$notinst_path $dir" fi dir="$absdir" ;; esac case "$deplibs " in *" -L$dir "*) ;; *) deplibs="$deplibs -L$dir" lib_search_path="$lib_search_path $dir" ;; esac case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$dir:"*) ;; *) dllsearchpath="$dllsearchpath:$dir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; *) dllsearchpath="$dllsearchpath:$testbindir";; esac ;; esac continue ;; -l*) if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*) # These systems don't actually have a C or math library (as such) continue ;; *-*-os2*) # These systems don't actually have a C library (as such) test "X$arg" = "X-lc" && continue ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. test "X$arg" = "X-lc" && continue ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C and math libraries are in the System framework deplibs="$deplibs -framework System" continue ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype test "X$arg" = "X-lc" && continue ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work test "X$arg" = "X-lc" && continue ;; esac elif test "X$arg" = "X-lc_r"; then case $host in *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc_r directly, use -pthread flag. continue ;; esac fi deplibs="$deplibs $arg" continue ;; # Tru64 UNIX uses -model [arg] to determine the layout of C++ # classes, name mangling, and exception handling. -model) compile_command="$compile_command $arg" compiler_flags="$compiler_flags $arg" finalize_command="$finalize_command $arg" prev=xcompiler continue ;; -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" continue ;; -module) module=yes continue ;; # -64, -mips[0-9] enable 64-bit mode on the SGI compiler # -r[0-9][0-9]* specifies the processor on the SGI compiler # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler # +DA*, +DD* enable 64-bit mode on the HP compiler # -q* pass through compiler args for the IBM compiler # -m* pass through architecture-specific compiler args for GCC # -m*, -t[45]*, -txscale* pass through architecture-specific # compiler args for GCC # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC # -F/path gives path to uninstalled frameworks, gcc on darwin # @file GCC response files -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" compiler_flags="$compiler_flags $arg" continue ;; -shrext) prev=shrext continue ;; -no-fast-install) fast_install=no continue ;; -no-install) case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*) # The PATH hackery in wrapper scripts is required on Windows # and Darwin in order for the loader to find any dlls it needs. $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2 $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2 fast_install=no ;; *) no_install=yes ;; esac continue ;; -no-undefined) allow_undefined=no continue ;; -objectlist) prev=objectlist continue ;; -o) prev=output ;; -precious-files-regex) prev=precious_regex continue ;; -release) prev=release continue ;; -rpath) prev=rpath continue ;; -R) prev=xrpath continue ;; -R*) dir=`$echo "X$arg" | $Xsed -e 's/^-R//'` # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) $echo "$modename: only absolute run-paths are allowed" 1>&2 exit $EXIT_FAILURE ;; esac case "$xrpath " in *" $dir "*) ;; *) xrpath="$xrpath $dir" ;; esac continue ;; -static | -static-libtool-libs) # The effects of -static are defined in a previous loop. # We used to do the same as -all-static on platforms that # didn't have a PIC flag, but the assumption that the effects # would be equivalent was wrong. It would break on at least # Digital Unix and AIX. continue ;; -thread-safe) thread_safe=yes continue ;; -version-info) prev=vinfo continue ;; -version-number) prev=vinfo vinfo_number=yes continue ;; -Wc,*) args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'` arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" case $flag in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") flag="\"$flag\"" ;; esac arg="$arg $wl$flag" compiler_flags="$compiler_flags $flag" done IFS="$save_ifs" arg=`$echo "X$arg" | $Xsed -e "s/^ //"` ;; -Wl,*) args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'` arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" case $flag in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") flag="\"$flag\"" ;; esac arg="$arg $wl$flag" compiler_flags="$compiler_flags $wl$flag" linker_flags="$linker_flags $flag" done IFS="$save_ifs" arg=`$echo "X$arg" | $Xsed -e "s/^ //"` ;; -Xcompiler) prev=xcompiler continue ;; -Xlinker) prev=xlinker continue ;; -XCClinker) prev=xcclinker continue ;; # Some other compiler flag. -* | +*) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac ;; *.$objext) # A standard object. objs="$objs $arg" ;; *.lo) # A libtool-controlled object. # Check to see that this really is a libtool object. if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then pic_object= non_pic_object= # Read the .lo file # If there is no directory component, then add one. case $arg in */* | *\\*) . $arg ;; *) . ./$arg ;; esac if test -z "$pic_object" || \ test -z "$non_pic_object" || test "$pic_object" = none && \ test "$non_pic_object" = none; then $echo "$modename: cannot find name of object for \`$arg'" 1>&2 exit $EXIT_FAILURE fi # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then dlfiles="$dlfiles $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. dlprefiles="$dlprefiles $pic_object" prev= fi # A PIC object. libobjs="$libobjs $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object non_pic_objects="$non_pic_objects $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" non_pic_objects="$non_pic_objects $non_pic_object" fi else # Only an error if not doing a dry-run. if test -z "$run"; then $echo "$modename: \`$arg' is not a valid libtool object" 1>&2 exit $EXIT_FAILURE else # Dry-run case. # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"` non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"` libobjs="$libobjs $pic_object" non_pic_objects="$non_pic_objects $non_pic_object" fi fi ;; *.$libext) # An archive. deplibs="$deplibs $arg" old_deplibs="$old_deplibs $arg" continue ;; *.la) # A libtool-controlled library. if test "$prev" = dlfiles; then # This library was specified with -dlopen. dlfiles="$dlfiles $arg" prev= elif test "$prev" = dlprefiles; then # The library was specified with -dlpreopen. dlprefiles="$dlprefiles $arg" prev= else deplibs="$deplibs $arg" fi continue ;; # Some other compiler argument. *) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac ;; esac # arg # Now actually substitute the argument into the commands. if test -n "$arg"; then compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" fi done # argument parsing loop if test -n "$prev"; then $echo "$modename: the \`$prevarg' option requires an argument" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then eval arg=\"$export_dynamic_flag_spec\" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" fi oldlibs= # calculate the name of the file, without its directory outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'` libobjs_save="$libobjs" if test -n "$shlibpath_var"; then # get the directories listed in $shlibpath_var eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\` else shlib_search_path= fi eval sys_lib_search_path=\"$sys_lib_search_path_spec\" eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'` if test "X$output_objdir" = "X$output"; then output_objdir="$objdir" else output_objdir="$output_objdir/$objdir" fi # Create the object directory. if test ! -d "$output_objdir"; then $show "$mkdir $output_objdir" $run $mkdir $output_objdir exit_status=$? if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then exit $exit_status fi fi # Determine the type of output case $output in "") $echo "$modename: you must specify an output file" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; *.$libext) linkmode=oldlib ;; *.lo | *.$objext) linkmode=obj ;; *.la) linkmode=lib ;; *) linkmode=prog ;; # Anything else should be a program. esac case $host in *cygwin* | *mingw* | *pw32*) # don't eliminate duplications in $postdeps and $predeps duplicate_compiler_generated_deps=yes ;; *) duplicate_compiler_generated_deps=$duplicate_deps ;; esac specialdeplibs= libs= # Find all interdependent deplibs by searching for libraries # that are linked more than once (e.g. -la -lb -la) for deplib in $deplibs; do if test "X$duplicate_deps" = "Xyes" ; then case "$libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi libs="$libs $deplib" done if test "$linkmode" = lib; then libs="$predeps $libs $compiler_lib_search_path $postdeps" # Compute libraries that are listed more than once in $predeps # $postdeps and mark them as special (i.e., whose duplicates are # not to be eliminated). pre_post_deps= if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then for pre_post_dep in $predeps $postdeps; do case "$pre_post_deps " in *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;; esac pre_post_deps="$pre_post_deps $pre_post_dep" done fi pre_post_deps= fi deplibs= newdependency_libs= newlib_search_path= need_relink=no # whether we're linking any uninstalled libtool libraries notinst_deplibs= # not-installed libtool libraries case $linkmode in lib) passes="conv link" for file in $dlfiles $dlprefiles; do case $file in *.la) ;; *) $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2 exit $EXIT_FAILURE ;; esac done ;; prog) compile_deplibs= finalize_deplibs= alldeplibs=no newdlfiles= newdlprefiles= passes="conv scan dlopen dlpreopen link" ;; *) passes="conv" ;; esac for pass in $passes; do if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan"; then libs="$deplibs" deplibs= fi if test "$linkmode" = prog; then case $pass in dlopen) libs="$dlfiles" ;; dlpreopen) libs="$dlprefiles" ;; link) libs="$deplibs %DEPLIBS%" test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs" ;; esac fi if test "$pass" = dlopen; then # Collect dlpreopened libraries save_deplibs="$deplibs" deplibs= fi for deplib in $libs; do lib= found=no case $deplib in -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" fi continue ;; -l*) if test "$linkmode" != lib && test "$linkmode" != prog; then $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2 continue fi name=`$echo "X$deplib" | $Xsed -e 's/^-l//'` for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do for search_ext in .la $std_shrext .so .a; do # Search the libtool library lib="$searchdir/lib${name}${search_ext}" if test -f "$lib"; then if test "$search_ext" = ".la"; then found=yes else found=no fi break 2 fi done done if test "$found" != yes; then # deplib doesn't seem to be a libtool library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue else # deplib is a libtool library # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, # We need to do some special things here, and not later. if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $deplib "*) if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then library_names= old_library= case $lib in */* | *\\*) . $lib ;; *) . ./$lib ;; esac for l in $old_library $library_names; do ll="$l" done if test "X$ll" = "X$old_library" ; then # only static version available found=no ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'` test "X$ladir" = "X$lib" && ladir="." lib=$ladir/$old_library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue fi fi ;; *) ;; esac fi fi ;; # -l -L*) case $linkmode in lib) deplibs="$deplib $deplibs" test "$pass" = conv && continue newdependency_libs="$deplib $newdependency_libs" newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` ;; prog) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi if test "$pass" = scan; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` ;; *) $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2 ;; esac # linkmode continue ;; # -L -R*) if test "$pass" = link; then dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'` # Make sure the xrpath contains only unique directories. case "$xrpath " in *" $dir "*) ;; *) xrpath="$xrpath $dir" ;; esac fi deplibs="$deplib $deplibs" continue ;; *.la) lib="$deplib" ;; *.$libext) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi case $linkmode in lib) valid_a_lib=no case $deplibs_check_method in match_pattern*) set dummy $deplibs_check_method match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` if eval $echo \"$deplib\" 2>/dev/null \ | $SED 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then valid_a_lib=yes fi ;; pass_all) valid_a_lib=yes ;; esac if test "$valid_a_lib" != yes; then $echo $echo "*** Warning: Trying to link with static lib archive $deplib." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have" $echo "*** because the file extensions .$libext of this argument makes me believe" $echo "*** that it is just a static archive that I should not used here." else $echo $echo "*** Warning: Linking the shared library $output against the" $echo "*** static library $deplib is not portable!" deplibs="$deplib $deplibs" fi continue ;; prog) if test "$pass" != link; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi continue ;; esac # linkmode ;; # *.$libext *.lo | *.$objext) if test "$pass" = conv; then deplibs="$deplib $deplibs" elif test "$linkmode" = prog; then if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlopen support or we're linking statically, # we need to preload. newdlprefiles="$newdlprefiles $deplib" compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else newdlfiles="$newdlfiles $deplib" fi fi continue ;; %DEPLIBS%) alldeplibs=yes continue ;; esac # case $deplib if test "$found" = yes || test -f "$lib"; then : else $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2 exit $EXIT_FAILURE fi # Check to see that this really is a libtool archive. if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'` test "X$ladir" = "X$lib" && ladir="." dlname= dlopen= dlpreopen= libdir= library_names= old_library= # If the library was installed with an old release of libtool, # it will not redefine variables installed, or shouldnotlink installed=yes shouldnotlink=no avoidtemprpath= # Read the .la file case $lib in */* | *\\*) . $lib ;; *) . ./$lib ;; esac if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan" || { test "$linkmode" != prog && test "$linkmode" != lib; }; then test -n "$dlopen" && dlfiles="$dlfiles $dlopen" test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen" fi if test "$pass" = conv; then # Only check for convenience libraries deplibs="$lib $deplibs" if test -z "$libdir"; then if test -z "$old_library"; then $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 exit $EXIT_FAILURE fi # It is a libtool convenience library, so add in its objects. convenience="$convenience $ladir/$objdir/$old_library" old_convenience="$old_convenience $ladir/$objdir/$old_library" tmp_libs= for deplib in $dependency_libs; do deplibs="$deplib $deplibs" if test "X$duplicate_deps" = "Xyes" ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done elif test "$linkmode" != prog && test "$linkmode" != lib; then $echo "$modename: \`$lib' is not a convenience library" 1>&2 exit $EXIT_FAILURE fi continue fi # $pass = conv # Get the name of the library we link against. linklib= for l in $old_library $library_names; do linklib="$l" done if test -z "$linklib"; then $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 exit $EXIT_FAILURE fi # This library was specified with -dlopen. if test "$pass" = dlopen; then if test -z "$libdir"; then $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2 exit $EXIT_FAILURE fi if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlname, no dlopen support or we're linking # statically, we need to preload. We also need to preload any # dependent libraries so libltdl's deplib preloader doesn't # bomb out in the load deplibs phase. dlprefiles="$dlprefiles $lib $dependency_libs" else newdlfiles="$newdlfiles $lib" fi continue fi # $pass = dlopen # We need an absolute path. case $ladir in [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;; *) abs_ladir=`cd "$ladir" && pwd` if test -z "$abs_ladir"; then $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2 $echo "$modename: passing it literally to the linker, although it might fail" 1>&2 abs_ladir="$ladir" fi ;; esac laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` # Find the relevant object directory and library name. if test "X$installed" = Xyes; then if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then $echo "$modename: warning: library \`$lib' was moved." 1>&2 dir="$ladir" absdir="$abs_ladir" libdir="$abs_ladir" else dir="$libdir" absdir="$libdir" fi test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes else if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then dir="$ladir" absdir="$abs_ladir" # Remove this search path later notinst_path="$notinst_path $abs_ladir" else dir="$ladir/$objdir" absdir="$abs_ladir/$objdir" # Remove this search path later notinst_path="$notinst_path $abs_ladir" fi fi # $installed = yes name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` # This library was specified with -dlpreopen. if test "$pass" = dlpreopen; then if test -z "$libdir"; then $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2 exit $EXIT_FAILURE fi # Prefer using a static library (so that no silly _DYNAMIC symbols # are required to link). if test -n "$old_library"; then newdlprefiles="$newdlprefiles $dir/$old_library" # Otherwise, use the dlname, so that lt_dlopen finds it. elif test -n "$dlname"; then newdlprefiles="$newdlprefiles $dir/$dlname" else newdlprefiles="$newdlprefiles $dir/$linklib" fi fi # $pass = dlpreopen if test -z "$libdir"; then # Link the convenience library if test "$linkmode" = lib; then deplibs="$dir/$old_library $deplibs" elif test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$dir/$old_library $compile_deplibs" finalize_deplibs="$dir/$old_library $finalize_deplibs" else deplibs="$lib $deplibs" # used for prog,scan pass fi continue fi if test "$linkmode" = prog && test "$pass" != link; then newlib_search_path="$newlib_search_path $ladir" deplibs="$lib $deplibs" linkalldeplibs=no if test "$link_all_deplibs" != no || test -z "$library_names" || test "$build_libtool_libs" = no; then linkalldeplibs=yes fi tmp_libs= for deplib in $dependency_libs; do case $deplib in -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test esac # Need to link against all dependency_libs? if test "$linkalldeplibs" = yes; then deplibs="$deplib $deplibs" else # Need to hardcode shared library paths # or/and link against static libraries newdependency_libs="$deplib $newdependency_libs" fi if test "X$duplicate_deps" = "Xyes" ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done # for deplib continue fi # $linkmode = prog... if test "$linkmode,$pass" = "prog,link"; then if test -n "$library_names" && { { test "$prefer_static_libs" = no || test "$prefer_static_libs,$installed" = "built,yes"; } || test -z "$old_library"; }; then # We need to hardcode the library path if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then # Make sure the rpath contains only unique directories. case "$temp_rpath " in *" $dir "*) ;; *" $absdir "*) ;; *) temp_rpath="$temp_rpath $absdir" ;; esac fi # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) compile_rpath="$compile_rpath $absdir" esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" esac ;; esac fi # $linkmode,$pass = prog,link... if test "$alldeplibs" = yes && { test "$deplibs_check_method" = pass_all || { test "$build_libtool_libs" = yes && test -n "$library_names"; }; }; then # We only need to search for static libraries continue fi fi link_static=no # Whether the deplib will be linked statically use_static_libs=$prefer_static_libs if test "$use_static_libs" = built && test "$installed" = yes ; then use_static_libs=no fi if test -n "$library_names" && { test "$use_static_libs" = no || test -z "$old_library"; }; then if test "$installed" = no; then notinst_deplibs="$notinst_deplibs $lib" need_relink=yes fi # This is a shared library # Warn about portability, can't link against -module's on # some systems (darwin) if test "$shouldnotlink" = yes && test "$pass" = link ; then $echo if test "$linkmode" = prog; then $echo "*** Warning: Linking the executable $output against the loadable module" else $echo "*** Warning: Linking the shared library $output against the loadable module" fi $echo "*** $linklib is not portable!" fi if test "$linkmode" = lib && test "$hardcode_into_libs" = yes; then # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) compile_rpath="$compile_rpath $absdir" esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" esac ;; esac fi if test -n "$old_archive_from_expsyms_cmds"; then # figure out the soname set dummy $library_names realname="$2" shift; shift libname=`eval \\$echo \"$libname_spec\"` # use dlname if we got it. it's perfectly good, no? if test -n "$dlname"; then soname="$dlname" elif test -n "$soname_spec"; then # bleh windows case $host in *cygwin* | mingw*) major=`expr $current - $age` versuffix="-$major" ;; esac eval soname=\"$soname_spec\" else soname="$realname" fi # Make a new name for the extract_expsyms_cmds to use soroot="$soname" soname=`$echo $soroot | ${SED} -e 's/^.*\///'` newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a" # If the library has no export list, then create one now if test -f "$output_objdir/$soname-def"; then : else $show "extracting exported symbol list from \`$soname'" save_ifs="$IFS"; IFS='~' cmds=$extract_expsyms_cmds for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" fi # Create $newlib if test -f "$output_objdir/$newlib"; then :; else $show "generating import library for \`$soname'" save_ifs="$IFS"; IFS='~' cmds=$old_archive_from_expsyms_cmds for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" fi # make sure the library variables are pointing to the new library dir=$output_objdir linklib=$newlib fi # test -n "$old_archive_from_expsyms_cmds" if test "$linkmode" = prog || test "$mode" != relink; then add_shlibpath= add_dir= add= lib_linked=yes case $hardcode_action in immediate | unsupported) if test "$hardcode_direct" = no; then add="$dir/$linklib" case $host in *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;; *-*-sysv4*uw2*) add_dir="-L$dir" ;; *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ *-*-unixware7*) add_dir="-L$dir" ;; *-*-darwin* ) # if the lib is a module then we can not link against # it, someone is ignoring the new warnings I added if /usr/bin/file -L $add 2> /dev/null | $EGREP ": [^:]* bundle" >/dev/null ; then $echo "** Warning, lib $linklib is a module, not a shared library" if test -z "$old_library" ; then $echo $echo "** And there doesn't seem to be a static archive available" $echo "** The link will probably fail, sorry" else add="$dir/$old_library" fi fi esac elif test "$hardcode_minus_L" = no; then case $host in *-*-sunos*) add_shlibpath="$dir" ;; esac add_dir="-L$dir" add="-l$name" elif test "$hardcode_shlibpath_var" = no; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; relink) if test "$hardcode_direct" = yes; then add="$dir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$dir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) add_dir="$add_dir -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; *) lib_linked=no ;; esac if test "$lib_linked" != yes; then $echo "$modename: configuration error: unsupported hardcode properties" exit $EXIT_FAILURE fi if test -n "$add_shlibpath"; then case :$compile_shlibpath: in *":$add_shlibpath:"*) ;; *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;; esac fi if test "$linkmode" = prog; then test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" test -n "$add" && compile_deplibs="$add $compile_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" if test "$hardcode_direct" != yes && \ test "$hardcode_minus_L" != yes && \ test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; esac fi fi fi if test "$linkmode" = prog || test "$mode" = relink; then add_shlibpath= add_dir= add= # Finalize command for both is simple: just hardcode it. if test "$hardcode_direct" = yes; then add="$libdir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$libdir" add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; esac add="-l$name" elif test "$hardcode_automatic" = yes; then if test -n "$inst_prefix_dir" && test -f "$inst_prefix_dir$libdir/$linklib" ; then add="$inst_prefix_dir$libdir/$linklib" else add="$libdir/$linklib" fi else # We cannot seem to hardcode it, guess we'll fake it. add_dir="-L$libdir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) add_dir="$add_dir -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" fi if test "$linkmode" = prog; then test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" test -n "$add" && finalize_deplibs="$add $finalize_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" fi fi elif test "$linkmode" = prog; then # Here we assume that one of hardcode_direct or hardcode_minus_L # is not unsupported. This is valid on all known static and # shared platforms. if test "$hardcode_direct" != unsupported; then test -n "$old_library" && linklib="$old_library" compile_deplibs="$dir/$linklib $compile_deplibs" finalize_deplibs="$dir/$linklib $finalize_deplibs" else compile_deplibs="-l$name -L$dir $compile_deplibs" finalize_deplibs="-l$name -L$dir $finalize_deplibs" fi elif test "$build_libtool_libs" = yes; then # Not a shared library if test "$deplibs_check_method" != pass_all; then # We're trying link a shared library against a static one # but the system doesn't support it. # Just print a warning and add the library to dependency_libs so # that the program can be linked against the static library. $echo $echo "*** Warning: This system can not link to static lib archive $lib." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have." if test "$module" = yes; then $echo "*** But as you try to build a module library, libtool will still create " $echo "*** a static module, that should work as long as the dlopening application" $echo "*** is linked with the -dlopen flag to resolve symbols at runtime." if test -z "$global_symbol_pipe"; then $echo $echo "*** However, this would only work if libtool was able to extract symbol" $echo "*** lists from a program, using \`nm' or equivalent, but libtool could" $echo "*** not find such a program. So, this module is probably useless." $echo "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi else deplibs="$dir/$old_library $deplibs" link_static=yes fi fi # link shared/static library? if test "$linkmode" = lib; then if test -n "$dependency_libs" && { test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes || test "$link_static" = yes; }; then # Extract -R from dependency_libs temp_deplibs= for libdir in $dependency_libs; do case $libdir in -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'` case " $xrpath " in *" $temp_xrpath "*) ;; *) xrpath="$xrpath $temp_xrpath";; esac;; *) temp_deplibs="$temp_deplibs $libdir";; esac done dependency_libs="$temp_deplibs" fi newlib_search_path="$newlib_search_path $absdir" # Link against this library test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" # ... and its dependency_libs tmp_libs= for deplib in $dependency_libs; do newdependency_libs="$deplib $newdependency_libs" if test "X$duplicate_deps" = "Xyes" ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done if test "$link_all_deplibs" != no; then # Add the search paths of all dependency libraries for deplib in $dependency_libs; do case $deplib in -L*) path="$deplib" ;; *.la) dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'` test "X$dir" = "X$deplib" && dir="." # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2 absdir="$dir" fi ;; esac if grep "^installed=no" $deplib > /dev/null; then path="$absdir/$objdir" else eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` if test -z "$libdir"; then $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi if test "$absdir" != "$libdir"; then $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2 fi path="$absdir" fi depdepl= case $host in *-*-darwin*) # we do not want to link against static libs, # but need to link against shared eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` if test -n "$deplibrary_names" ; then for tmp in $deplibrary_names ; do depdepl=$tmp done if test -f "$path/$depdepl" ; then depdepl="$path/$depdepl" fi # do not add paths which are already there case " $newlib_search_path " in *" $path "*) ;; *) newlib_search_path="$newlib_search_path $path";; esac fi path="" ;; *) path="-L$path" ;; esac ;; -l*) case $host in *-*-darwin*) # Again, we only want to link against shared libraries eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"` for tmp in $newlib_search_path ; do if test -f "$tmp/lib$tmp_libs.dylib" ; then eval depdepl="$tmp/lib$tmp_libs.dylib" break fi done path="" ;; *) continue ;; esac ;; *) continue ;; esac case " $deplibs " in *" $path "*) ;; *) deplibs="$path $deplibs" ;; esac case " $deplibs " in *" $depdepl "*) ;; *) deplibs="$depdepl $deplibs" ;; esac done fi # link_all_deplibs != no fi # linkmode = lib done # for deplib in $libs dependency_libs="$newdependency_libs" if test "$pass" = dlpreopen; then # Link the dlpreopened libraries before other libraries for deplib in $save_deplibs; do deplibs="$deplib $deplibs" done fi if test "$pass" != dlopen; then if test "$pass" != conv; then # Make sure lib_search_path contains only unique directories. lib_search_path= for dir in $newlib_search_path; do case "$lib_search_path " in *" $dir "*) ;; *) lib_search_path="$lib_search_path $dir" ;; esac done newlib_search_path= fi if test "$linkmode,$pass" != "prog,link"; then vars="deplibs" else vars="compile_deplibs finalize_deplibs" fi for var in $vars dependency_libs; do # Add libraries to $var in reverse order eval tmp_libs=\"\$$var\" new_libs= for deplib in $tmp_libs; do # FIXME: Pedantically, this is the right thing to do, so # that some nasty dependency loop isn't accidentally # broken: #new_libs="$deplib $new_libs" # Pragmatically, this seems to cause very few problems in # practice: case $deplib in -L*) new_libs="$deplib $new_libs" ;; -R*) ;; *) # And here is the reason: when a library appears more # than once as an explicit dependence of a library, or # is implicitly linked in more than once by the # compiler, it is considered special, and multiple # occurrences thereof are not removed. Compare this # with having the same library being listed as a # dependency of multiple other libraries: in this case, # we know (pedantically, we assume) the library does not # need to be listed more than once, so we keep only the # last copy. This is not always right, but it is rare # enough that we require users that really mean to play # such unportable linking tricks to link the library # using -Wl,-lname, so that libtool does not consider it # for duplicate removal. case " $specialdeplibs " in *" $deplib "*) new_libs="$deplib $new_libs" ;; *) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$deplib $new_libs" ;; esac ;; esac ;; esac done tmp_libs= for deplib in $new_libs; do case $deplib in -L*) case " $tmp_libs " in *" $deplib "*) ;; *) tmp_libs="$tmp_libs $deplib" ;; esac ;; *) tmp_libs="$tmp_libs $deplib" ;; esac done eval $var=\"$tmp_libs\" done # for var fi # Last step: remove runtime libs from dependency_libs # (they stay in deplibs) tmp_libs= for i in $dependency_libs ; do case " $predeps $postdeps $compiler_lib_search_path " in *" $i "*) i="" ;; esac if test -n "$i" ; then tmp_libs="$tmp_libs $i" fi done dependency_libs=$tmp_libs done # for pass if test "$linkmode" = prog; then dlfiles="$newdlfiles" dlprefiles="$newdlprefiles" fi case $linkmode in oldlib) if test -n "$deplibs"; then $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 fi if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2 fi if test -n "$rpath"; then $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2 fi if test -n "$xrpath"; then $echo "$modename: warning: \`-R' is ignored for archives" 1>&2 fi if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for archives" 1>&2 fi if test -n "$export_symbols" || test -n "$export_symbols_regex"; then $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2 fi # Now set the variables for building old libraries. build_libtool_libs=no oldlibs="$output" objs="$objs$old_deplibs" ;; lib) # Make sure we only generate libraries of the form `libNAME.la'. case $outputname in lib*) name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" ;; *) if test "$module" = no; then $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test "$need_lib_prefix" != no; then # Add the "lib" prefix for modules if required name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" else libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` fi ;; esac if test -n "$objs"; then if test "$deplibs_check_method" != pass_all; then $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1 exit $EXIT_FAILURE else $echo $echo "*** Warning: Linking the shared library $output against the non-libtool" $echo "*** objects $objs is not portable!" libobjs="$libobjs $objs" fi fi if test "$dlself" != no; then $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2 fi set dummy $rpath if test "$#" -gt 2; then $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2 fi install_libdir="$2" oldlibs= if test -z "$rpath"; then if test "$build_libtool_libs" = yes; then # Building a libtool convenience library. # Some compilers have problems with a `.al' extension so # convenience libraries should have the same extension an # archive normally would. oldlibs="$output_objdir/$libname.$libext $oldlibs" build_libtool_libs=convenience build_old_libs=yes fi if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2 fi else # Parse the version information argument. save_ifs="$IFS"; IFS=':' set dummy $vinfo 0 0 0 IFS="$save_ifs" if test -n "$8"; then $echo "$modename: too many parameters to \`-version-info'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # convert absolute version numbers to libtool ages # this retains compatibility with .la files and attempts # to make the code below a bit more comprehensible case $vinfo_number in yes) number_major="$2" number_minor="$3" number_revision="$4" # # There are really only two kinds -- those that # use the current revision as the major version # and those that subtract age and use age as # a minor version. But, then there is irix # which has an extra 1 added just for fun # case $version_type in darwin|linux|osf|windows|none) current=`expr $number_major + $number_minor` age="$number_minor" revision="$number_revision" ;; freebsd-aout|freebsd-elf|sunos) current="$number_major" revision="$number_minor" age="0" ;; irix|nonstopux) current=`expr $number_major + $number_minor` age="$number_minor" revision="$number_minor" lt_irix_increment=no ;; *) $echo "$modename: unknown library version type \`$version_type'" 1>&2 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 exit $EXIT_FAILURE ;; esac ;; no) current="$2" revision="$3" age="$4" ;; esac # Check that each of the things are valid numbers. case $current in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE ;; esac case $revision in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE ;; esac case $age in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE ;; esac if test "$age" -gt "$current"; then $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE fi # Calculate the version variables. major= versuffix= verstring= case $version_type in none) ;; darwin) # Like Linux, but with the current version available in # verstring for coding it into the library header major=.`expr $current - $age` versuffix="$major.$age.$revision" # Darwin ld doesn't like 0 for these options... minor_current=`expr $current + 1` xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" ;; freebsd-aout) major=".$current" versuffix=".$current.$revision"; ;; freebsd-elf) major=".$current" versuffix=".$current"; ;; irix | nonstopux) if test "X$lt_irix_increment" = "Xno"; then major=`expr $current - $age` else major=`expr $current - $age + 1` fi case $version_type in nonstopux) verstring_prefix=nonstopux ;; *) verstring_prefix=sgi ;; esac verstring="$verstring_prefix$major.$revision" # Add in all the interfaces that we are compatible with. loop=$revision while test "$loop" -ne 0; do iface=`expr $revision - $loop` loop=`expr $loop - 1` verstring="$verstring_prefix$major.$iface:$verstring" done # Before this point, $major must not contain `.'. major=.$major versuffix="$major.$revision" ;; linux) major=.`expr $current - $age` versuffix="$major.$age.$revision" ;; osf) major=.`expr $current - $age` versuffix=".$current.$age.$revision" verstring="$current.$age.$revision" # Add in all the interfaces that we are compatible with. loop=$age while test "$loop" -ne 0; do iface=`expr $current - $loop` loop=`expr $loop - 1` verstring="$verstring:${iface}.0" done # Make executables depend on our current version. verstring="$verstring:${current}.0" ;; sunos) major=".$current" versuffix=".$current.$revision" ;; windows) # Use '-' rather than '.', since we only want one # extension on DOS 8.3 filesystems. major=`expr $current - $age` versuffix="-$major" ;; *) $echo "$modename: unknown library version type \`$version_type'" 1>&2 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 exit $EXIT_FAILURE ;; esac # Clear the version info if we defaulted, and they specified a release. if test -z "$vinfo" && test -n "$release"; then major= case $version_type in darwin) # we can't check for "0.0" in archive_cmds due to quoting # problems, so we reset it completely verstring= ;; *) verstring="0.0" ;; esac if test "$need_version" = no; then versuffix= else versuffix=".0.0" fi fi # Remove version info from name if versioning should be avoided if test "$avoid_version" = yes && test "$need_version" = no; then major= versuffix= verstring="" fi # Check to see if the archive will have undefined symbols. if test "$allow_undefined" = yes; then if test "$allow_undefined_flag" = unsupported; then $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2 build_libtool_libs=no build_old_libs=yes fi else # Don't allow undefined symbols. allow_undefined_flag="$no_undefined_flag" fi fi if test "$mode" != relink; then # Remove our outputs, but don't remove object files since they # may have been created when compiling PIC objects. removelist= tempremovelist=`$echo "$output_objdir/*"` for p in $tempremovelist; do case $p in *.$objext) ;; $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*) if test "X$precious_files_regex" != "X"; then if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 then continue fi fi removelist="$removelist $p" ;; *) ;; esac done if test -n "$removelist"; then $show "${rm}r $removelist" $run ${rm}r $removelist fi fi # Now set the variables for building old libraries. if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then oldlibs="$oldlibs $output_objdir/$libname.$libext" # Transform .lo files to .o files. oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP` fi # Eliminate all temporary directories. #for path in $notinst_path; do # lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"` # deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"` # dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"` #done if test -n "$xrpath"; then # If the user specified any rpath flags, then add them. temp_xrpath= for libdir in $xrpath; do temp_xrpath="$temp_xrpath -R$libdir" case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" ;; esac done if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then dependency_libs="$temp_xrpath $dependency_libs" fi fi # Make sure dlfiles contains only unique files that won't be dlpreopened old_dlfiles="$dlfiles" dlfiles= for lib in $old_dlfiles; do case " $dlprefiles $dlfiles " in *" $lib "*) ;; *) dlfiles="$dlfiles $lib" ;; esac done # Make sure dlprefiles contains only unique files old_dlprefiles="$dlprefiles" dlprefiles= for lib in $old_dlprefiles; do case "$dlprefiles " in *" $lib "*) ;; *) dlprefiles="$dlprefiles $lib" ;; esac done if test "$build_libtool_libs" = yes; then if test -n "$rpath"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*) # these systems don't actually have a c library (as such)! ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C library is in the System framework deplibs="$deplibs -framework System" ;; *-*-netbsd*) # Don't link with libc until the a.out ld.so is fixed. ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work ;; *) # Add libc to deplibs on all other systems if necessary. if test "$build_libtool_need_lc" = "yes"; then deplibs="$deplibs -lc" fi ;; esac fi # Transform deplibs into only deplibs that can be linked in shared. name_save=$name libname_save=$libname release_save=$release versuffix_save=$versuffix major_save=$major # I'm not sure if I'm treating the release correctly. I think # release should show up in the -l (ie -lgmp5) so we don't want to # add it in twice. Is that correct? release="" versuffix="" major="" newdeplibs= droppeddeps=no case $deplibs_check_method in pass_all) # Don't check for shared/static. Everything works. # This might be a little naive. We might want to check # whether the library exists or not. But this is on # osf3 & osf4 and I'm not really sure... Just # implementing what was already the behavior. newdeplibs=$deplibs ;; test_compile) # This code stresses the "libraries are programs" paradigm to its # limits. Maybe even breaks it. We compile a program, linking it # against the deplibs as a proxy for the library. Then we can check # whether they linked in statically or dynamically with ldd. $rm conftest.c cat > conftest.c </dev/null` for potent_lib in $potential_libs; do # Follow soft links. if ls -lLd "$potent_lib" 2>/dev/null \ | grep " -> " >/dev/null; then continue fi # The statement above tries to avoid entering an # endless loop below, in case of cyclic links. # We might still enter an endless loop, since a link # loop can be closed while we follow links, # but so what? potlib="$potent_lib" while test -h "$potlib" 2>/dev/null; do potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` case $potliblink in [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";; esac done if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \ | ${SED} 10q \ | $EGREP "$file_magic_regex" > /dev/null; then newdeplibs="$newdeplibs $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes $echo $echo "*** Warning: linker path does not have real file for library $a_deplib." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have" $echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $echo "*** with $libname but no candidates were found. (...for file magic test)" else $echo "*** with $libname and none of the candidates passed a file format test" $echo "*** using a file magic. Last file checked: $potlib" fi fi else # Add a -L argument. newdeplibs="$newdeplibs $a_deplib" fi done # Gone through all deplibs. ;; match_pattern*) set dummy $deplibs_check_method match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` for a_deplib in $deplibs; do name=`expr $a_deplib : '-l\(.*\)'` # If $name is empty we are operating on a -L argument. if test -n "$name" && test "$name" != "0"; then if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $a_deplib "*) newdeplibs="$newdeplibs $a_deplib" a_deplib="" ;; esac fi if test -n "$a_deplib" ; then libname=`eval \\$echo \"$libname_spec\"` for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do potential_libs=`ls $i/$libname[.-]* 2>/dev/null` for potent_lib in $potential_libs; do potlib="$potent_lib" # see symlink-check above in file_magic test if eval $echo \"$potent_lib\" 2>/dev/null \ | ${SED} 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then newdeplibs="$newdeplibs $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes $echo $echo "*** Warning: linker path does not have real file for library $a_deplib." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have" $echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $echo "*** with $libname but no candidates were found. (...for regex pattern test)" else $echo "*** with $libname and none of the candidates passed a file format test" $echo "*** using a regex pattern. Last file checked: $potlib" fi fi else # Add a -L argument. newdeplibs="$newdeplibs $a_deplib" fi done # Gone through all deplibs. ;; none | unknown | *) newdeplibs="" tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \ -e 's/ -[LR][^ ]*//g'` if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then for i in $predeps $postdeps ; do # can't use Xsed below, because $i might contain '/' tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"` done fi if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \ | grep . >/dev/null; then $echo if test "X$deplibs_check_method" = "Xnone"; then $echo "*** Warning: inter-library dependencies are not supported in this platform." else $echo "*** Warning: inter-library dependencies are not known to be supported." fi $echo "*** All declared inter-library dependencies are being dropped." droppeddeps=yes fi ;; esac versuffix=$versuffix_save major=$major_save release=$release_save libname=$libname_save name=$name_save case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'` ;; esac if test "$droppeddeps" = yes; then if test "$module" = yes; then $echo $echo "*** Warning: libtool could not satisfy all declared inter-library" $echo "*** dependencies of module $libname. Therefore, libtool will create" $echo "*** a static module, that should work as long as the dlopening" $echo "*** application is linked with the -dlopen flag." if test -z "$global_symbol_pipe"; then $echo $echo "*** However, this would only work if libtool was able to extract symbol" $echo "*** lists from a program, using \`nm' or equivalent, but libtool could" $echo "*** not find such a program. So, this module is probably useless." $echo "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi else $echo "*** The inter-library dependencies that have been dropped here will be" $echo "*** automatically added whenever a program is linked with this library" $echo "*** or is declared to -dlopen it." if test "$allow_undefined" = no; then $echo $echo "*** Since this library must not contain undefined symbols," $echo "*** because either the platform does not support them or" $echo "*** it was explicitly requested with -no-undefined," $echo "*** libtool will only create a static version of it." if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi fi fi # Done checking deplibs! deplibs=$newdeplibs fi # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $deplibs " in *" -L$path/$objdir "*) new_libs="$new_libs -L$path/$objdir" ;; esac ;; esac done for deplib in $deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$new_libs $deplib" ;; esac ;; *) new_libs="$new_libs $deplib" ;; esac done deplibs="$new_libs" # All the library-specific variables (install_libdir is set above). library_names= old_library= dlname= # Test again, we may have decided not to build it any more if test "$build_libtool_libs" = yes; then if test "$hardcode_into_libs" = yes; then # Hardcode the library paths hardcode_libdirs= dep_rpath= rpath="$finalize_rpath" test "$mode" != relink && rpath="$compile_rpath$rpath" for libdir in $rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" dep_rpath="$dep_rpath $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) perm_rpath="$perm_rpath $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" if test -n "$hardcode_libdir_flag_spec_ld"; then case $archive_cmds in *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;; *) eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;; esac else eval dep_rpath=\"$hardcode_libdir_flag_spec\" fi fi if test -n "$runpath_var" && test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do rpath="$rpath$dir:" done eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" fi test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" fi shlibpath="$finalize_shlibpath" test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath" if test -n "$shlibpath"; then eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" fi # Get the real and link names of the library. eval shared_ext=\"$shrext_cmds\" eval library_names=\"$library_names_spec\" set dummy $library_names realname="$2" shift; shift if test -n "$soname_spec"; then eval soname=\"$soname_spec\" else soname="$realname" fi if test -z "$dlname"; then dlname=$soname fi lib="$output_objdir/$realname" linknames= for link do linknames="$linknames $link" done # Use standard objects if they are pic test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` # Prepare the list of exported symbols if test -z "$export_symbols"; then if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then $show "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $run $rm $export_symbols cmds=$export_symbols_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" if len=`expr "X$cmd" : ".*"` && test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then $show "$cmd" $run eval "$cmd" || exit $? skipped_export=false else # The command line is too long to execute in one step. $show "using reloadable object file for export list..." skipped_export=: # Break out early, otherwise skipped_export may be # set to false by a later but shorter cmd. break fi done IFS="$save_ifs" if test -n "$export_symbols_regex"; then $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\"" $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' $show "$mv \"${export_symbols}T\" \"$export_symbols\"" $run eval '$mv "${export_symbols}T" "$export_symbols"' fi fi fi if test -n "$export_symbols" && test -n "$include_expsyms"; then $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"' fi tmp_deplibs= for test_deplib in $deplibs; do case " $convenience " in *" $test_deplib "*) ;; *) tmp_deplibs="$tmp_deplibs $test_deplib" ;; esac done deplibs="$tmp_deplibs" if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then save_libobjs=$libobjs eval libobjs=\"\$libobjs $whole_archive_flag_spec\" else gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $convenience libobjs="$libobjs $func_extract_archives_result" fi fi if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then eval flag=\"$thread_safe_flag_spec\" linker_flags="$linker_flags $flag" fi # Make a backup of the uninstalled library when relinking if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $? fi # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then eval test_cmds=\"$module_expsym_cmds\" cmds=$module_expsym_cmds else eval test_cmds=\"$module_cmds\" cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then eval test_cmds=\"$archive_expsym_cmds\" cmds=$archive_expsym_cmds else eval test_cmds=\"$archive_cmds\" cmds=$archive_cmds fi fi if test "X$skipped_export" != "X:" && len=`expr "X$test_cmds" : ".*" 2>/dev/null` && test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then : else # The command line is too long to link in one step, link piecewise. $echo "creating reloadable object files..." # Save the value of $output and $libobjs because we want to # use them later. If we have whole_archive_flag_spec, we # want to use save_libobjs as it was before # whole_archive_flag_spec was expanded, because we can't # assume the linker understands whole_archive_flag_spec. # This may have to be revisited, in case too many # convenience libraries get linked in and end up exceeding # the spec. if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then save_libobjs=$libobjs fi save_output=$output output_la=`$echo "X$output" | $Xsed -e "$basename"` # Clear the reloadable object creation command queue and # initialize k to one. test_cmds= concat_cmds= objlist= delfiles= last_robj= k=1 output=$output_objdir/$output_la-${k}.$objext # Loop over the list of objects to be linked. for obj in $save_libobjs do eval test_cmds=\"$reload_cmds $objlist $last_robj\" if test "X$objlist" = X || { len=`expr "X$test_cmds" : ".*" 2>/dev/null` && test "$len" -le "$max_cmd_len"; }; then objlist="$objlist $obj" else # The command $test_cmds is almost too long, add a # command to the queue. if test "$k" -eq 1 ; then # The first file doesn't have a previous command to add. eval concat_cmds=\"$reload_cmds $objlist $last_robj\" else # All subsequent reloadable object files will link in # the last one created. eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\" fi last_robj=$output_objdir/$output_la-${k}.$objext k=`expr $k + 1` output=$output_objdir/$output_la-${k}.$objext objlist=$obj len=1 fi done # Handle the remaining objects by creating one last # reloadable object file. All subsequent reloadable object # files will link in the last one created. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\" if ${skipped_export-false}; then $show "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $run $rm $export_symbols libobjs=$output # Append the command to create the export file. eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\" fi # Set up a command to remove the reloadable object files # after they are used. i=0 while test "$i" -lt "$k" do i=`expr $i + 1` delfiles="$delfiles $output_objdir/$output_la-${i}.$objext" done $echo "creating a temporary reloadable object file: $output" # Loop through the commands generated above and execute them. save_ifs="$IFS"; IFS='~' for cmd in $concat_cmds; do IFS="$save_ifs" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" libobjs=$output # Restore the value of output. output=$save_output if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then eval libobjs=\"\$libobjs $whole_archive_flag_spec\" fi # Expand the library linking commands again to reset the # value of $libobjs for piecewise linking. # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then cmds=$module_expsym_cmds else cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then cmds=$archive_expsym_cmds else cmds=$archive_cmds fi fi # Append the command to remove the reloadable object files # to the just-reset $cmds. eval cmds=\"\$cmds~\$rm $delfiles\" fi save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)' fi exit $lt_exit } done IFS="$save_ifs" # Restore the uninstalled library and exit if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $? if test -n "$convenience"; then if test -z "$whole_archive_flag_spec"; then $show "${rm}r $gentop" $run ${rm}r "$gentop" fi fi exit $EXIT_SUCCESS fi # Create links to the real library. for linkname in $linknames; do if test "$realname" != "$linkname"; then $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)" $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $? fi done # If -module or -export-dynamic was specified, set the dlname. if test "$module" = yes || test "$export_dynamic" = yes; then # On all known operating systems, these are identical. dlname="$soname" fi fi ;; obj) if test -n "$deplibs"; then $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 fi if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2 fi if test -n "$rpath"; then $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2 fi if test -n "$xrpath"; then $echo "$modename: warning: \`-R' is ignored for objects" 1>&2 fi if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for objects" 1>&2 fi case $output in *.lo) if test -n "$objs$old_deplibs"; then $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2 exit $EXIT_FAILURE fi libobj="$output" obj=`$echo "X$output" | $Xsed -e "$lo2o"` ;; *) libobj= obj="$output" ;; esac # Delete the old objects. $run $rm $obj $libobj # Objects from convenience libraries. This assumes # single-version convenience libraries. Whenever we create # different ones for PIC/non-PIC, this we'll have to duplicate # the extraction. reload_conv_objs= gentop= # reload_cmds runs $LD directly, so let us get rid of # -Wl from whole_archive_flag_spec and hope we can get by with # turning comma into space.. wl= if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'` else gentop="$output_objdir/${obj}x" generated="$generated $gentop" func_extract_archives $gentop $convenience reload_conv_objs="$reload_objs $func_extract_archives_result" fi fi # Create the old-style object. reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test output="$obj" cmds=$reload_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" # Exit if we aren't doing a library object file. if test -z "$libobj"; then if test -n "$gentop"; then $show "${rm}r $gentop" $run ${rm}r $gentop fi exit $EXIT_SUCCESS fi if test "$build_libtool_libs" != yes; then if test -n "$gentop"; then $show "${rm}r $gentop" $run ${rm}r $gentop fi # Create an invalid libtool object if no PIC, so that we don't # accidentally link it into a program. # $show "echo timestamp > $libobj" # $run eval "echo timestamp > $libobj" || exit $? exit $EXIT_SUCCESS fi if test -n "$pic_flag" || test "$pic_mode" != default; then # Only do commands if we really have different PIC objects. reload_objs="$libobjs $reload_conv_objs" output="$libobj" cmds=$reload_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" fi if test -n "$gentop"; then $show "${rm}r $gentop" $run ${rm}r $gentop fi exit $EXIT_SUCCESS ;; prog) case $host in *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;; esac if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for programs" 1>&2 fi if test "$preload" = yes; then if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown && test "$dlopen_self_static" = unknown; then $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support." fi fi case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'` finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'` ;; esac case $host in *darwin*) # Don't allow lazy linking, it breaks C++ global constructors if test "$tagname" = CXX ; then compile_command="$compile_command ${wl}-bind_at_load" finalize_command="$finalize_command ${wl}-bind_at_load" fi ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $compile_deplibs " in *" -L$path/$objdir "*) new_libs="$new_libs -L$path/$objdir" ;; esac ;; esac done for deplib in $compile_deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$new_libs $deplib" ;; esac ;; *) new_libs="$new_libs $deplib" ;; esac done compile_deplibs="$new_libs" compile_command="$compile_command $compile_deplibs" finalize_command="$finalize_command $finalize_deplibs" if test -n "$rpath$xrpath"; then # If the user specified any rpath flags, then add them. for libdir in $rpath $xrpath; do # This is the magic to use -rpath. case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" ;; esac done fi # Now hardcode the library paths rpath= hardcode_libdirs= for libdir in $compile_rpath $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" rpath="$rpath $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) perm_rpath="$perm_rpath $libdir" ;; esac fi case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$libdir:"*) ;; *) dllsearchpath="$dllsearchpath:$libdir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; *) dllsearchpath="$dllsearchpath:$testbindir";; esac ;; esac done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi compile_rpath="$rpath" rpath= hardcode_libdirs= for libdir in $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" rpath="$rpath $flag" fi elif test -n "$runpath_var"; then case "$finalize_perm_rpath " in *" $libdir "*) ;; *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi finalize_rpath="$rpath" if test -n "$libobjs" && test "$build_old_libs" = yes; then # Transform all the library objects into standard objects. compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` fi dlsyms= if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then if test -n "$NM" && test -n "$global_symbol_pipe"; then dlsyms="${outputname}S.c" else $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2 fi fi if test -n "$dlsyms"; then case $dlsyms in "") ;; *.c) # Discover the nlist of each of the dlfiles. nlist="$output_objdir/${outputname}.nm" $show "$rm $nlist ${nlist}S ${nlist}T" $run $rm "$nlist" "${nlist}S" "${nlist}T" # Parse the name list into a source file. $show "creating $output_objdir/$dlsyms" test -z "$run" && $echo > "$output_objdir/$dlsyms" "\ /* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */ /* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */ #ifdef __cplusplus extern \"C\" { #endif /* Prevent the only kind of declaration conflicts we can make. */ #define lt_preloaded_symbols some_other_symbol /* External symbol declarations for the compiler. */\ " if test "$dlself" = yes; then $show "generating symbol list for \`$output'" test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist" # Add our own program objects to the symbol list. progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` for arg in $progfiles; do $show "extracting global C symbols from \`$arg'" $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" done if test -n "$exclude_expsyms"; then $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' $run eval '$mv "$nlist"T "$nlist"' fi if test -n "$export_symbols_regex"; then $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' $run eval '$mv "$nlist"T "$nlist"' fi # Prepare the list of exported symbols if test -z "$export_symbols"; then export_symbols="$output_objdir/$outputname.exp" $run $rm $export_symbols $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' case $host in *cygwin* | *mingw* ) $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' ;; esac else $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' $run eval 'mv "$nlist"T "$nlist"' case $host in *cygwin* | *mingw* ) $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' ;; esac fi fi for arg in $dlprefiles; do $show "extracting global C symbols from \`$arg'" name=`$echo "$arg" | ${SED} -e 's%^.*/%%'` $run eval '$echo ": $name " >> "$nlist"' $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" done if test -z "$run"; then # Make sure we have at least an empty file. test -f "$nlist" || : > "$nlist" if test -n "$exclude_expsyms"; then $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T $mv "$nlist"T "$nlist" fi # Try sorting and uniquifying the output. if grep -v "^: " < "$nlist" | if sort -k 3 /dev/null 2>&1; then sort -k 3 else sort +2 fi | uniq > "$nlist"S; then : else grep -v "^: " < "$nlist" > "$nlist"S fi if test -f "$nlist"S; then eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"' else $echo '/* NONE */' >> "$output_objdir/$dlsyms" fi $echo >> "$output_objdir/$dlsyms" "\ #undef lt_preloaded_symbols #if defined (__STDC__) && __STDC__ # define lt_ptr void * #else # define lt_ptr char * # define const #endif /* The mapping between symbol names and symbols. */ " case $host in *cygwin* | *mingw* ) $echo >> "$output_objdir/$dlsyms" "\ /* DATA imports from DLLs on WIN32 can't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs */ struct { " ;; * ) $echo >> "$output_objdir/$dlsyms" "\ const struct { " ;; esac $echo >> "$output_objdir/$dlsyms" "\ const char *name; lt_ptr address; } lt_preloaded_symbols[] = {\ " eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms" $echo >> "$output_objdir/$dlsyms" "\ {0, (lt_ptr) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt_preloaded_symbols; } #endif #ifdef __cplusplus } #endif\ " fi pic_flag_for_symtable= case $host in # compiling the symbol table file with pic_flag works around # a FreeBSD bug that causes programs to crash when -lm is # linked before any other PIC object. But we must not use # pic_flag when linking with -static. The problem exists in # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) case "$compile_command " in *" -static "*) ;; *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";; esac;; *-*-hpux*) case "$compile_command " in *" -static "*) ;; *) pic_flag_for_symtable=" $pic_flag";; esac esac # Now compile the dynamic symbol file. $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")" $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $? # Clean up the generated files. $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T" $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T" # Transform the symbol file into the correct name. case $host in *cygwin* | *mingw* ) if test -f "$output_objdir/${outputname}.def" ; then compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP` finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP` else compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP` finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP` fi ;; * ) compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP` finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP` ;; esac ;; *) $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2 exit $EXIT_FAILURE ;; esac else # We keep going just in case the user didn't refer to # lt_preloaded_symbols. The linker will fail if global_symbol_pipe # really was required. # Nullify the symbol file. compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP` finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP` fi if test "$need_relink" = no || test "$build_libtool_libs" != yes; then # Replace the output file specification. compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP` link_command="$compile_command$compile_rpath" # We have no uninstalled library dependencies, so finalize right now. $show "$link_command" $run eval "$link_command" exit_status=$? # Delete the generated files. if test -n "$dlsyms"; then $show "$rm $output_objdir/${outputname}S.${objext}" $run $rm "$output_objdir/${outputname}S.${objext}" fi exit $exit_status fi if test -n "$shlibpath_var"; then # We should set the shlibpath_var rpath= for dir in $temp_rpath; do case $dir in [\\/]* | [A-Za-z]:[\\/]*) # Absolute path. rpath="$rpath$dir:" ;; *) # Relative path: add a thisdir entry. rpath="$rpath\$thisdir/$dir:" ;; esac done temp_rpath="$rpath" fi if test -n "$compile_shlibpath$finalize_shlibpath"; then compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" fi if test -n "$finalize_shlibpath"; then finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" fi compile_var= finalize_var= if test -n "$runpath_var"; then if test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do rpath="$rpath$dir:" done compile_var="$runpath_var=\"$rpath\$$runpath_var\" " fi if test -n "$finalize_perm_rpath"; then # We should set the runpath_var. rpath= for dir in $finalize_perm_rpath; do rpath="$rpath$dir:" done finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " fi fi if test "$no_install" = yes; then # We don't need to create a wrapper script. link_command="$compile_var$compile_command$compile_rpath" # Replace the output file specification. link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` # Delete the old output file. $run $rm $output # Link the executable and exit $show "$link_command" $run eval "$link_command" || exit $? exit $EXIT_SUCCESS fi if test "$hardcode_action" = relink; then # Fast installation is not supported link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2 $echo "$modename: \`$output' will be relinked during installation" 1>&2 else if test "$fast_install" != no; then link_command="$finalize_var$compile_command$finalize_rpath" if test "$fast_install" = yes; then relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP` else # fast_install is set to needless relink_command= fi else link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" fi fi # Replace the output file specification. link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` # Delete the old output files. $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname $show "$link_command" $run eval "$link_command" || exit $? # Now create the wrapper script. $show "creating $output" # Quote the relink command for shipping. if test -n "$relink_command"; then # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"` relink_command="$var=\"$var_value\"; export $var; $relink_command" fi done relink_command="(cd `pwd`; $relink_command)" relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP` fi # Quote $echo for shipping. if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then case $progpath in [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";; *) qecho="$SHELL `pwd`/$progpath --fallback-echo";; esac qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"` else qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"` fi # Only actually do things if our run command is non-null. if test -z "$run"; then # win32 will think the script is a binary if it has # a .exe suffix, so we strip it off here. case $output in *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;; esac # test for cygwin because mv fails w/o .exe extensions case $host in *cygwin*) exeext=.exe outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;; *) exeext= ;; esac case $host in *cygwin* | *mingw* ) output_name=`basename $output` output_path=`dirname $output` cwrappersource="$output_path/$objdir/lt-$output_name.c" cwrapper="$output_path/$output_name.exe" $rm $cwrappersource $cwrapper trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 cat > $cwrappersource <> $cwrappersource<<"EOF" #include #include #include #include #include #include #include #include #include #if defined(PATH_MAX) # define LT_PATHMAX PATH_MAX #elif defined(MAXPATHLEN) # define LT_PATHMAX MAXPATHLEN #else # define LT_PATHMAX 1024 #endif #ifndef DIR_SEPARATOR # define DIR_SEPARATOR '/' # define PATH_SEPARATOR ':' #endif #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ defined (__OS2__) # define HAVE_DOS_BASED_FILE_SYSTEM # ifndef DIR_SEPARATOR_2 # define DIR_SEPARATOR_2 '\\' # endif # ifndef PATH_SEPARATOR_2 # define PATH_SEPARATOR_2 ';' # endif #endif #ifndef DIR_SEPARATOR_2 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) #else /* DIR_SEPARATOR_2 */ # define IS_DIR_SEPARATOR(ch) \ (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) #endif /* DIR_SEPARATOR_2 */ #ifndef PATH_SEPARATOR_2 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) #else /* PATH_SEPARATOR_2 */ # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) #endif /* PATH_SEPARATOR_2 */ #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) #define XFREE(stale) do { \ if (stale) { free ((void *) stale); stale = 0; } \ } while (0) /* -DDEBUG is fairly common in CFLAGS. */ #undef DEBUG #if defined DEBUGWRAPPER # define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__) #else # define DEBUG(format, ...) #endif const char *program_name = NULL; void * xmalloc (size_t num); char * xstrdup (const char *string); const char * base_name (const char *name); char * find_executable(const char *wrapper); int check_executable(const char *path); char * strendzap(char *str, const char *pat); void lt_fatal (const char *message, ...); int main (int argc, char *argv[]) { char **newargz; int i; program_name = (char *) xstrdup (base_name (argv[0])); DEBUG("(main) argv[0] : %s\n",argv[0]); DEBUG("(main) program_name : %s\n",program_name); newargz = XMALLOC(char *, argc+2); EOF cat >> $cwrappersource <> $cwrappersource <<"EOF" newargz[1] = find_executable(argv[0]); if (newargz[1] == NULL) lt_fatal("Couldn't find %s", argv[0]); DEBUG("(main) found exe at : %s\n",newargz[1]); /* we know the script has the same name, without the .exe */ /* so make sure newargz[1] doesn't end in .exe */ strendzap(newargz[1],".exe"); for (i = 1; i < argc; i++) newargz[i+1] = xstrdup(argv[i]); newargz[argc+1] = NULL; for (i=0; i> $cwrappersource <> $cwrappersource <> $cwrappersource <<"EOF" return 127; } void * xmalloc (size_t num) { void * p = (void *) malloc (num); if (!p) lt_fatal ("Memory exhausted"); return p; } char * xstrdup (const char *string) { return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL ; } const char * base_name (const char *name) { const char *base; #if defined (HAVE_DOS_BASED_FILE_SYSTEM) /* Skip over the disk name in MSDOS pathnames. */ if (isalpha ((unsigned char)name[0]) && name[1] == ':') name += 2; #endif for (base = name; *name; name++) if (IS_DIR_SEPARATOR (*name)) base = name + 1; return base; } int check_executable(const char * path) { struct stat st; DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!"); if ((!path) || (!*path)) return 0; if ((stat (path, &st) >= 0) && ( /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */ #if defined (S_IXOTH) ((st.st_mode & S_IXOTH) == S_IXOTH) || #endif #if defined (S_IXGRP) ((st.st_mode & S_IXGRP) == S_IXGRP) || #endif ((st.st_mode & S_IXUSR) == S_IXUSR)) ) return 1; else return 0; } /* Searches for the full path of the wrapper. Returns newly allocated full path name if found, NULL otherwise */ char * find_executable (const char* wrapper) { int has_slash = 0; const char* p; const char* p_next; /* static buffer for getcwd */ char tmp[LT_PATHMAX + 1]; int tmp_len; char* concat_name; DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"); if ((wrapper == NULL) || (*wrapper == '\0')) return NULL; /* Absolute path? */ #if defined (HAVE_DOS_BASED_FILE_SYSTEM) if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':') { concat_name = xstrdup (wrapper); if (check_executable(concat_name)) return concat_name; XFREE(concat_name); } else { #endif if (IS_DIR_SEPARATOR (wrapper[0])) { concat_name = xstrdup (wrapper); if (check_executable(concat_name)) return concat_name; XFREE(concat_name); } #if defined (HAVE_DOS_BASED_FILE_SYSTEM) } #endif for (p = wrapper; *p; p++) if (*p == '/') { has_slash = 1; break; } if (!has_slash) { /* no slashes; search PATH */ const char* path = getenv ("PATH"); if (path != NULL) { for (p = path; *p; p = p_next) { const char* q; size_t p_len; for (q = p; *q; q++) if (IS_PATH_SEPARATOR(*q)) break; p_len = q - p; p_next = (*q == '\0' ? q : q + 1); if (p_len == 0) { /* empty path: current directory */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal ("getcwd failed"); tmp_len = strlen(tmp); concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); } else { concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1); memcpy (concat_name, p, p_len); concat_name[p_len] = '/'; strcpy (concat_name + p_len + 1, wrapper); } if (check_executable(concat_name)) return concat_name; XFREE(concat_name); } } /* not found in PATH; assume curdir */ } /* Relative path | not found in path: prepend cwd */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal ("getcwd failed"); tmp_len = strlen(tmp); concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); if (check_executable(concat_name)) return concat_name; XFREE(concat_name); return NULL; } char * strendzap(char *str, const char *pat) { size_t len, patlen; assert(str != NULL); assert(pat != NULL); len = strlen(str); patlen = strlen(pat); if (patlen <= len) { str += len - patlen; if (strcmp(str, pat) == 0) *str = '\0'; } return str; } static void lt_error_core (int exit_status, const char * mode, const char * message, va_list ap) { fprintf (stderr, "%s: %s: ", program_name, mode); vfprintf (stderr, message, ap); fprintf (stderr, ".\n"); if (exit_status >= 0) exit (exit_status); } void lt_fatal (const char *message, ...) { va_list ap; va_start (ap, message); lt_error_core (EXIT_FAILURE, "FATAL", message, ap); va_end (ap); } EOF # we should really use a build-platform specific compiler # here, but OTOH, the wrappers (shell script and this C one) # are only useful if you want to execute the "real" binary. # Since the "real" binary is built for $host, then this # wrapper might as well be built for $host, too. $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource ;; esac $rm $output trap "$rm $output; exit $EXIT_FAILURE" 1 2 15 $echo > $output "\ #! $SHELL # $output - temporary wrapper script for $objdir/$outputname # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP # # The $output program cannot be directly executed until all the libtool # libraries that it depends on are installed. # # This wrapper script should never be moved out of the build directory. # If it is, it will not operate correctly. # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed='${SED} -e 1s/^X//' sed_quote_subst='$sed_quote_subst' # Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE). if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs 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 BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH relink_command=\"$relink_command\" # This environment variable determines our operation mode. if test \"\$libtool_install_magic\" = \"$magic\"; then # install mode needs the following variable: notinst_deplibs='$notinst_deplibs' else # When we are sourced in execute mode, \$file and \$echo are already set. if test \"\$libtool_execute_magic\" != \"$magic\"; then echo=\"$qecho\" file=\"\$0\" # Make sure echo works. if test \"X\$1\" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then # Yippee, \$echo works! : else # Restart under the correct shell, and then maybe \$echo will work. exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"} fi fi\ " $echo >> $output "\ # Find the directory that this script lives in. thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\` test \"x\$thisdir\" = \"x\$file\" && thisdir=. # Follow symbolic links until we get to the real thisdir. file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\` while test -n \"\$file\"; do destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\` # If there was a directory component, then change thisdir. if test \"x\$destdir\" != \"x\$file\"; then case \"\$destdir\" in [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; *) thisdir=\"\$thisdir/\$destdir\" ;; esac fi file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\` file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\` done # Try to get the absolute directory name. absdir=\`cd \"\$thisdir\" && pwd\` test -n \"\$absdir\" && thisdir=\"\$absdir\" " if test "$fast_install" = yes; then $echo >> $output "\ program=lt-'$outputname'$exeext progdir=\"\$thisdir/$objdir\" if test ! -f \"\$progdir/\$program\" || \\ { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ test \"X\$file\" != \"X\$progdir/\$program\"; }; then file=\"\$\$-\$program\" if test ! -d \"\$progdir\"; then $mkdir \"\$progdir\" else $rm \"\$progdir/\$file\" fi" $echo >> $output "\ # relink executable if necessary if test -n \"\$relink_command\"; then if relink_command_output=\`eval \$relink_command 2>&1\`; then : else $echo \"\$relink_command_output\" >&2 $rm \"\$progdir/\$file\" exit $EXIT_FAILURE fi fi $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || { $rm \"\$progdir/\$program\"; $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; } $rm \"\$progdir/\$file\" fi" else $echo >> $output "\ program='$outputname' progdir=\"\$thisdir/$objdir\" " fi $echo >> $output "\ if test -f \"\$progdir/\$program\"; then" # Export our shlibpath_var if we have one. if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then $echo >> $output "\ # Add our own library path to $shlibpath_var $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" # Some systems cannot cope with colon-terminated $shlibpath_var # The second colon is a workaround for a bug in BeOS R4 sed $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\` export $shlibpath_var " fi # fixup the dll searchpath if we need to. if test -n "$dllsearchpath"; then $echo >> $output "\ # Add the dll search path components to the executable PATH PATH=$dllsearchpath:\$PATH " fi $echo >> $output "\ if test \"\$libtool_execute_magic\" != \"$magic\"; then # Run the actual program with our arguments. " case $host in # Backslashes separate directories on plain windows *-*-mingw | *-*-os2*) $echo >> $output "\ exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} " ;; *) $echo >> $output "\ exec \"\$progdir/\$program\" \${1+\"\$@\"} " ;; esac $echo >> $output "\ \$echo \"\$0: cannot exec \$program \$*\" exit $EXIT_FAILURE fi else # The program doesn't exist. \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 \$echo \"This script is just a wrapper for \$program.\" 1>&2 $echo \"See the $PACKAGE documentation for more information.\" 1>&2 exit $EXIT_FAILURE fi fi\ " chmod +x $output fi exit $EXIT_SUCCESS ;; esac # See if we need to build an old-fashioned archive. for oldlib in $oldlibs; do if test "$build_libtool_libs" = convenience; then oldobjs="$libobjs_save" addlibs="$convenience" build_libtool_libs=no else if test "$build_libtool_libs" = module; then oldobjs="$libobjs_save" build_libtool_libs=no else oldobjs="$old_deplibs $non_pic_objects" fi addlibs="$old_convenience" fi if test -n "$addlibs"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $addlibs oldobjs="$oldobjs $func_extract_archives_result" fi # Do each command in the archive commands. if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then cmds=$old_archive_from_new_cmds else # POSIX demands no paths to be encoded in archives. We have # to avoid creating archives with duplicate basenames if we # might have to extract them afterwards, e.g., when creating a # static archive out of a convenience library, or when linking # the entirety of a libtool archive into another (currently # not supported by libtool). if (for obj in $oldobjs do $echo "X$obj" | $Xsed -e 's%^.*/%%' done | sort | sort -uc >/dev/null 2>&1); then : else $echo "copying selected object files to avoid basename conflicts..." if test -z "$gentop"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" $show "${rm}r $gentop" $run ${rm}r "$gentop" $show "$mkdir $gentop" $run $mkdir "$gentop" exit_status=$? if test "$exit_status" -ne 0 && test ! -d "$gentop"; then exit $exit_status fi fi save_oldobjs=$oldobjs oldobjs= counter=1 for obj in $save_oldobjs do objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` case " $oldobjs " in " ") oldobjs=$obj ;; *[\ /]"$objbase "*) while :; do # Make sure we don't pick an alternate name that also # overlaps. newobj=lt$counter-$objbase counter=`expr $counter + 1` case " $oldobjs " in *[\ /]"$newobj "*) ;; *) if test ! -f "$gentop/$newobj"; then break; fi ;; esac done $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" $run ln "$obj" "$gentop/$newobj" || $run cp "$obj" "$gentop/$newobj" oldobjs="$oldobjs $gentop/$newobj" ;; *) oldobjs="$oldobjs $obj" ;; esac done fi eval cmds=\"$old_archive_cmds\" if len=`expr "X$cmds" : ".*"` && test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then cmds=$old_archive_cmds else # the command line is too long to link in one step, link in parts $echo "using piecewise archive linking..." save_RANLIB=$RANLIB RANLIB=: objlist= concat_cmds= save_oldobjs=$oldobjs # Is there a better way of finding the last object in the list? for obj in $save_oldobjs do last_oldobj=$obj done for obj in $save_oldobjs do oldobjs="$objlist $obj" objlist="$objlist $obj" eval test_cmds=\"$old_archive_cmds\" if len=`expr "X$test_cmds" : ".*" 2>/dev/null` && test "$len" -le "$max_cmd_len"; then : else # the above command should be used before it gets too long oldobjs=$objlist if test "$obj" = "$last_oldobj" ; then RANLIB=$save_RANLIB fi test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" objlist= fi done RANLIB=$save_RANLIB oldobjs=$objlist if test "X$oldobjs" = "X" ; then eval cmds=\"\$concat_cmds\" else eval cmds=\"\$concat_cmds~\$old_archive_cmds\" fi fi fi save_ifs="$IFS"; IFS='~' for cmd in $cmds; do eval cmd=\"$cmd\" IFS="$save_ifs" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" done if test -n "$generated"; then $show "${rm}r$generated" $run ${rm}r$generated fi # Now create the libtool archive. case $output in *.la) old_library= test "$build_old_libs" = yes && old_library="$libname.$libext" $show "creating $output" # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"` relink_command="$var=\"$var_value\"; export $var; $relink_command" fi done # Quote the link command for shipping. relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP` if test "$hardcode_automatic" = yes ; then relink_command= fi # Only create the output if not a dry run. if test -z "$run"; then for installed in no yes; do if test "$installed" = yes; then if test -z "$install_libdir"; then break fi output="$output_objdir/$outputname"i # Replace all uninstalled libtool libraries with the installed ones newdependency_libs= for deplib in $dependency_libs; do case $deplib in *.la) name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'` eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` if test -z "$libdir"; then $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi newdependency_libs="$newdependency_libs $libdir/$name" ;; *) newdependency_libs="$newdependency_libs $deplib" ;; esac done dependency_libs="$newdependency_libs" newdlfiles= for lib in $dlfiles; do name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` if test -z "$libdir"; then $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi newdlfiles="$newdlfiles $libdir/$name" done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` if test -z "$libdir"; then $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi newdlprefiles="$newdlprefiles $libdir/$name" done dlprefiles="$newdlprefiles" else newdlfiles= for lib in $dlfiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac newdlfiles="$newdlfiles $abs" done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac newdlprefiles="$newdlprefiles $abs" done dlprefiles="$newdlprefiles" fi $rm $output # place dlname in correct position for cygwin tdlname=$dlname case $host,$output,$installed,$module,$dlname in *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; esac $echo > $output "\ # $outputname - a libtool library file # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='$tdlname' # Names of this library. library_names='$library_names' # The name of the static archive. old_library='$old_library' # Libraries that this one depends upon. dependency_libs='$dependency_libs' # Version information for $libname. current=$current age=$age revision=$revision # Is this an already installed library? installed=$installed # Should we warn about portability when linking against -modules? shouldnotlink=$module # Files to dlopen/dlpreopen dlopen='$dlfiles' dlpreopen='$dlprefiles' # Directory that this library needs to be installed in: libdir='$install_libdir'" if test "$installed" = no && test "$need_relink" = yes; then $echo >> $output "\ relink_command=\"$relink_command\"" fi done fi # Do a symbolic link so that the libtool archive can be found in # LD_LIBRARY_PATH before the program is installed. $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)" $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $? ;; esac exit $EXIT_SUCCESS ;; # libtool install mode install) modename="$modename: install" # There may be an optional sh(1) argument at the beginning of # install_prog (especially on Windows NT). if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || # Allow the use of GNU shtool's install command. $echo "X$nonopt" | grep shtool > /dev/null; then # Aesthetically quote it. arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac install_prog="$arg " arg="$1" shift else install_prog= arg=$nonopt fi # The real first argument should be the name of the installation program. # Aesthetically quote it. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac install_prog="$install_prog$arg" # We need to accept at least all the BSD install flags. dest= files= opts= prev= install_type= isdir=no stripme= for arg do if test -n "$dest"; then files="$files $dest" dest=$arg continue fi case $arg in -d) isdir=yes ;; -f) case " $install_prog " in *[\\\ /]cp\ *) ;; *) prev=$arg ;; esac ;; -g | -m | -o) prev=$arg ;; -s) stripme=" -s" continue ;; -*) ;; *) # If the previous option needed an argument, then skip it. if test -n "$prev"; then prev= else dest=$arg continue fi ;; esac # Aesthetically quote the argument. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac install_prog="$install_prog $arg" done if test -z "$install_prog"; then $echo "$modename: you must specify an install program" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test -n "$prev"; then $echo "$modename: the \`$prev' option requires an argument" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test -z "$files"; then if test -z "$dest"; then $echo "$modename: no file or destination specified" 1>&2 else $echo "$modename: you must specify a destination" 1>&2 fi $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Strip any trailing slash from the destination. dest=`$echo "X$dest" | $Xsed -e 's%/$%%'` # Check to see that the destination is a directory. test -d "$dest" && isdir=yes if test "$isdir" = yes; then destdir="$dest" destname= else destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'` test "X$destdir" = "X$dest" && destdir=. destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'` # Not a directory, so check to see that there is only one file specified. set dummy $files if test "$#" -gt 2; then $echo "$modename: \`$dest' is not a directory" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi fi case $destdir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) for file in $files; do case $file in *.lo) ;; *) $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; esac done ;; esac # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" staticlibs= future_libdirs= current_libdirs= for file in $files; do # Do each installation. case $file in *.$libext) # Do the static libraries later. staticlibs="$staticlibs $file" ;; *.la) # Check to see that this really is a libtool archive. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$file' is not a valid libtool archive" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi library_names= old_library= relink_command= # If there is no directory component, then add one. case $file in */* | *\\*) . $file ;; *) . ./$file ;; esac # Add the libdir to current_libdirs if it is the destination. if test "X$destdir" = "X$libdir"; then case "$current_libdirs " in *" $libdir "*) ;; *) current_libdirs="$current_libdirs $libdir" ;; esac else # Note the libdir as a future libdir. case "$future_libdirs " in *" $libdir "*) ;; *) future_libdirs="$future_libdirs $libdir" ;; esac fi dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/ test "X$dir" = "X$file/" && dir= dir="$dir$objdir" if test -n "$relink_command"; then # Determine the prefix the user has applied to our future dir. inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"` # Don't allow the user to place us outside of our expected # location b/c this prevents finding dependent libraries that # are installed to the same prefix. # At present, this check doesn't affect windows .dll's that # are installed into $libdir/../bin (currently, that works fine) # but it's something to keep an eye on. if test "$inst_prefix_dir" = "$destdir"; then $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2 exit $EXIT_FAILURE fi if test -n "$inst_prefix_dir"; then # Stick the inst_prefix_dir data into the link command. relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP` else relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP` fi $echo "$modename: warning: relinking \`$file'" 1>&2 $show "$relink_command" if $run eval "$relink_command"; then : else $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 exit $EXIT_FAILURE fi fi # See the names of the shared library. set dummy $library_names if test -n "$2"; then realname="$2" shift shift srcname="$realname" test -n "$relink_command" && srcname="$realname"T # Install the shared library and build the symlinks. $show "$install_prog $dir/$srcname $destdir/$realname" $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $? if test -n "$stripme" && test -n "$striplib"; then $show "$striplib $destdir/$realname" $run eval "$striplib $destdir/$realname" || exit $? fi if test "$#" -gt 0; then # Delete the old symlinks, and create new ones. # Try `ln -sf' first, because the `ln' binary might depend on # the symlink we replace! Solaris /bin/ln does not understand -f, # so we also need to try rm && ln -s. for linkname do if test "$linkname" != "$realname"; then $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })" $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })" fi done fi # Do each command in the postinstall commands. lib="$destdir/$realname" cmds=$postinstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)' fi exit $lt_exit } done IFS="$save_ifs" fi # Install the pseudo-library for information purposes. name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` instname="$dir/$name"i $show "$install_prog $instname $destdir/$name" $run eval "$install_prog $instname $destdir/$name" || exit $? # Maybe install the static library, too. test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" ;; *.lo) # Install (i.e. copy) a libtool object. # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'` destfile="$destdir/$destfile" fi # Deduce the name of the destination old-style object file. case $destfile in *.lo) staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"` ;; *.$objext) staticdest="$destfile" destfile= ;; *) $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; esac # Install the libtool object if requested. if test -n "$destfile"; then $show "$install_prog $file $destfile" $run eval "$install_prog $file $destfile" || exit $? fi # Install the old object if enabled. if test "$build_old_libs" = yes; then # Deduce the name of the old-style object file. staticobj=`$echo "X$file" | $Xsed -e "$lo2o"` $show "$install_prog $staticobj $staticdest" $run eval "$install_prog \$staticobj \$staticdest" || exit $? fi exit $EXIT_SUCCESS ;; *) # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'` destfile="$destdir/$destfile" fi # If the file is missing, and there is a .exe on the end, strip it # because it is most likely a libtool script we actually want to # install stripped_ext="" case $file in *.exe) if test ! -f "$file"; then file=`$echo $file|${SED} 's,.exe$,,'` stripped_ext=".exe" fi ;; esac # Do a test to see if this is really a libtool program. case $host in *cygwin*|*mingw*) wrapper=`$echo $file | ${SED} -e 's,.exe$,,'` ;; *) wrapper=$file ;; esac if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then notinst_deplibs= relink_command= # Note that it is not necessary on cygwin/mingw to append a dot to # foo even if both foo and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # `FILE.' does not work on cygwin managed mounts. # # If there is no directory component, then add one. case $wrapper in */* | *\\*) . ${wrapper} ;; *) . ./${wrapper} ;; esac # Check the variables that should have been set. if test -z "$notinst_deplibs"; then $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2 exit $EXIT_FAILURE fi finalize=yes for lib in $notinst_deplibs; do # Check to see that each library is installed. libdir= if test -f "$lib"; then # If there is no directory component, then add one. case $lib in */* | *\\*) . $lib ;; *) . ./$lib ;; esac fi libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test if test -n "$libdir" && test ! -f "$libfile"; then $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2 finalize=no fi done relink_command= # Note that it is not necessary on cygwin/mingw to append a dot to # foo even if both foo and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # `FILE.' does not work on cygwin managed mounts. # # If there is no directory component, then add one. case $wrapper in */* | *\\*) . ${wrapper} ;; *) . ./${wrapper} ;; esac outputname= if test "$fast_install" = no && test -n "$relink_command"; then if test "$finalize" = yes && test -z "$run"; then tmpdir=`func_mktempdir` file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'` outputname="$tmpdir/$file" # Replace the output file specification. relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP` $show "$relink_command" if $run eval "$relink_command"; then : else $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 ${rm}r "$tmpdir" continue fi file="$outputname" else $echo "$modename: warning: cannot relink \`$file'" 1>&2 fi else # Install the binary that we compiled earlier. file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"` fi fi # remove .exe since cygwin /usr/bin/install will append another # one anyway case $install_prog,$host in */usr/bin/install*,*cygwin*) case $file:$destfile in *.exe:*.exe) # this is ok ;; *.exe:*) destfile=$destfile.exe ;; *:*.exe) destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'` ;; esac ;; esac $show "$install_prog$stripme $file $destfile" $run eval "$install_prog\$stripme \$file \$destfile" || exit $? test -n "$outputname" && ${rm}r "$tmpdir" ;; esac done for file in $staticlibs; do name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` # Set up the ranlib parameters. oldlib="$destdir/$name" $show "$install_prog $file $oldlib" $run eval "$install_prog \$file \$oldlib" || exit $? if test -n "$stripme" && test -n "$old_striplib"; then $show "$old_striplib $oldlib" $run eval "$old_striplib $oldlib" || exit $? fi # Do each command in the postinstall commands. cmds=$old_postinstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" done if test -n "$future_libdirs"; then $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2 fi if test -n "$current_libdirs"; then # Maybe just do a dry run. test -n "$run" && current_libdirs=" -n$current_libdirs" exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' else exit $EXIT_SUCCESS fi ;; # libtool finish mode finish) modename="$modename: finish" libdirs="$nonopt" admincmds= if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then for dir do libdirs="$libdirs $dir" done for libdir in $libdirs; do if test -n "$finish_cmds"; then # Do each command in the finish commands. cmds=$finish_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || admincmds="$admincmds $cmd" done IFS="$save_ifs" fi if test -n "$finish_eval"; then # Do the single finish_eval. eval cmds=\"$finish_eval\" $run eval "$cmds" || admincmds="$admincmds $cmds" fi done fi # Exit here if they wanted silent mode. test "$show" = : && exit $EXIT_SUCCESS $echo "X----------------------------------------------------------------------" | $Xsed $echo "Libraries have been installed in:" for libdir in $libdirs; do $echo " $libdir" done $echo $echo "If you ever happen to want to link against installed libraries" $echo "in a given directory, LIBDIR, you must either use libtool, and" $echo "specify the full pathname of the library, or use the \`-LLIBDIR'" $echo "flag during linking and do at least one of the following:" if test -n "$shlibpath_var"; then $echo " - add LIBDIR to the \`$shlibpath_var' environment variable" $echo " during execution" fi if test -n "$runpath_var"; then $echo " - add LIBDIR to the \`$runpath_var' environment variable" $echo " during linking" fi if test -n "$hardcode_libdir_flag_spec"; then libdir=LIBDIR eval flag=\"$hardcode_libdir_flag_spec\" $echo " - use the \`$flag' linker flag" fi if test -n "$admincmds"; then $echo " - have your system administrator run these commands:$admincmds" fi if test -f /etc/ld.so.conf; then $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" fi $echo $echo "See any operating system documentation about shared libraries for" $echo "more information, such as the ld(1) and ld.so(8) manual pages." $echo "X----------------------------------------------------------------------" | $Xsed exit $EXIT_SUCCESS ;; # libtool execute mode execute) modename="$modename: execute" # The first argument is the command name. cmd="$nonopt" if test -z "$cmd"; then $echo "$modename: you must specify a COMMAND" 1>&2 $echo "$help" exit $EXIT_FAILURE fi # Handle -dlopen flags immediately. for file in $execute_dlfiles; do if test ! -f "$file"; then $echo "$modename: \`$file' is not a file" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi dir= case $file in *.la) # Check to see that this really is a libtool archive. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Read the libtool library. dlname= library_names= # If there is no directory component, then add one. case $file in */* | *\\*) . $file ;; *) . ./$file ;; esac # Skip this library if it cannot be dlopened. if test -z "$dlname"; then # Warn if it was a shared library. test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'" continue fi dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` test "X$dir" = "X$file" && dir=. if test -f "$dir/$objdir/$dlname"; then dir="$dir/$objdir" else if test ! -f "$dir/$dlname"; then $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2 exit $EXIT_FAILURE fi fi ;; *.lo) # Just add the directory containing the .lo file. dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` test "X$dir" = "X$file" && dir=. ;; *) $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2 continue ;; esac # Get the absolute pathname. absdir=`cd "$dir" && pwd` test -n "$absdir" && dir="$absdir" # Now add the directory to shlibpath_var. if eval "test -z \"\$$shlibpath_var\""; then eval "$shlibpath_var=\"\$dir\"" else eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" fi done # This variable tells wrapper scripts just to set shlibpath_var # rather than running their programs. libtool_execute_magic="$magic" # Check if any of the arguments is a wrapper script. args= for file do case $file in -*) ;; *) # Do a test to see if this is really a libtool program. if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then # If there is no directory component, then add one. case $file in */* | *\\*) . $file ;; *) . ./$file ;; esac # Transform arg to wrapped name. file="$progdir/$program" fi ;; esac # Quote arguments (to preserve shell metacharacters). file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"` args="$args \"$file\"" done if test -z "$run"; then if test -n "$shlibpath_var"; then # Export the shlibpath_var. eval "export $shlibpath_var" fi # Restore saved environment variables for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${save_$lt_var+set}\" = set; then $lt_var=\$save_$lt_var; export $lt_var fi" done # Now prepare to actually exec the command. exec_cmd="\$cmd$args" else # Display what would be done. if test -n "$shlibpath_var"; then eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\"" $echo "export $shlibpath_var" fi $echo "$cmd$args" exit $EXIT_SUCCESS fi ;; # libtool clean and uninstall mode clean | uninstall) modename="$modename: $mode" rm="$nonopt" files= rmforce= exit_status=0 # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" for arg do case $arg in -f) rm="$rm $arg"; rmforce=yes ;; -*) rm="$rm $arg" ;; *) files="$files $arg" ;; esac done if test -z "$rm"; then $echo "$modename: you must specify an RM program" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi rmdirs= origobjdir="$objdir" for file in $files; do dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` if test "X$dir" = "X$file"; then dir=. objdir="$origobjdir" else objdir="$dir/$origobjdir" fi name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` test "$mode" = uninstall && objdir="$dir" # Remember objdir for removal later, being careful to avoid duplicates if test "$mode" = clean; then case " $rmdirs " in *" $objdir "*) ;; *) rmdirs="$rmdirs $objdir" ;; esac fi # Don't error if the file doesn't exist and rm -f was used. if (test -L "$file") >/dev/null 2>&1 \ || (test -h "$file") >/dev/null 2>&1 \ || test -f "$file"; then : elif test -d "$file"; then exit_status=1 continue elif test "$rmforce" = yes; then continue fi rmfiles="$file" case $name in *.la) # Possibly a libtool archive, so verify it. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then . $dir/$name # Delete the libtool libraries and symlinks. for n in $library_names; do rmfiles="$rmfiles $objdir/$n" done test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library" case "$mode" in clean) case " $library_names " in # " " in the beginning catches empty $dlname *" $dlname "*) ;; *) rmfiles="$rmfiles $objdir/$dlname" ;; esac test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" ;; uninstall) if test -n "$library_names"; then # Do each command in the postuninstall commands. cmds=$postuninstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" if test "$?" -ne 0 && test "$rmforce" != yes; then exit_status=1 fi done IFS="$save_ifs" fi if test -n "$old_library"; then # Do each command in the old_postuninstall commands. cmds=$old_postuninstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" if test "$?" -ne 0 && test "$rmforce" != yes; then exit_status=1 fi done IFS="$save_ifs" fi # FIXME: should reinstall the best remaining shared library. ;; esac fi ;; *.lo) # Possibly a libtool object, so verify it. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then # Read the .lo file . $dir/$name # Add PIC object to the list of files to remove. if test -n "$pic_object" \ && test "$pic_object" != none; then rmfiles="$rmfiles $dir/$pic_object" fi # Add non-PIC object to the list of files to remove. if test -n "$non_pic_object" \ && test "$non_pic_object" != none; then rmfiles="$rmfiles $dir/$non_pic_object" fi fi ;; *) if test "$mode" = clean ; then noexename=$name case $file in *.exe) file=`$echo $file|${SED} 's,.exe$,,'` noexename=`$echo $name|${SED} 's,.exe$,,'` # $file with .exe has already been added to rmfiles, # add $file without .exe rmfiles="$rmfiles $file" ;; esac # Do a test to see if this is a libtool program. if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then relink_command= . $dir/$noexename # note $name still contains .exe if it was in $file originally # as does the version of $file that was added into $rmfiles rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}" if test "$fast_install" = yes && test -n "$relink_command"; then rmfiles="$rmfiles $objdir/lt-$name" fi if test "X$noexename" != "X$name" ; then rmfiles="$rmfiles $objdir/lt-${noexename}.c" fi fi fi ;; esac $show "$rm $rmfiles" $run $rm $rmfiles || exit_status=1 done objdir="$origobjdir" # Try to remove the ${objdir}s in the directories where we deleted files for dir in $rmdirs; do if test -d "$dir"; then $show "rmdir $dir" $run rmdir $dir >/dev/null 2>&1 fi done exit $exit_status ;; "") $echo "$modename: you must specify a MODE" 1>&2 $echo "$generic_help" 1>&2 exit $EXIT_FAILURE ;; esac if test -z "$exec_cmd"; then $echo "$modename: invalid operation mode \`$mode'" 1>&2 $echo "$generic_help" 1>&2 exit $EXIT_FAILURE fi fi # test -z "$show_help" if test -n "$exec_cmd"; then eval exec $exec_cmd exit $EXIT_FAILURE fi # We need to display help for each of the modes. case $mode in "") $echo \ "Usage: $modename [OPTION]... [MODE-ARG]... Provide generalized library-building support services. --config show all configuration variables --debug enable verbose shell tracing -n, --dry-run display commands without modifying any files --features display basic configuration information and exit --finish same as \`--mode=finish' --help display this help message and exit --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS] --quiet same as \`--silent' --silent don't print informational messages --tag=TAG use configuration variables from tag TAG --version print version information MODE must be one of the following: clean remove files from the build directory compile compile a source file into a libtool object execute automatically set library path, then run a program finish complete the installation of libtool libraries install install libraries or executables link create a library or an executable uninstall remove libraries from an installed directory MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for a more detailed description of MODE. Report bugs to ." exit $EXIT_SUCCESS ;; clean) $echo \ "Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE... Remove files from the build directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, object or program, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; compile) $echo \ "Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE Compile a source file into a libtool library object. This mode accepts the following additional options: -o OUTPUT-FILE set the output file name to OUTPUT-FILE -prefer-pic try to building PIC objects only -prefer-non-pic try to building non-PIC objects only -static always build a \`.o' file suitable for static linking COMPILE-COMMAND is a command to be used in creating a \`standard' object file from the given SOURCEFILE. The output file name is determined by removing the directory component from SOURCEFILE, then substituting the C source code suffix \`.c' with the library object suffix, \`.lo'." ;; execute) $echo \ "Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]... Automatically set library path, then run a program. This mode accepts the following additional options: -dlopen FILE add the directory containing FILE to the library path This mode sets the library path environment variable according to \`-dlopen' flags. If any of the ARGS are libtool executable wrappers, then they are translated into their corresponding uninstalled binary, and any of their required library directories are added to the library path. Then, COMMAND is executed, with ARGS as arguments." ;; finish) $echo \ "Usage: $modename [OPTION]... --mode=finish [LIBDIR]... Complete the installation of libtool libraries. Each LIBDIR is a directory that contains libtool libraries. The commands that this mode executes may require superuser privileges. Use the \`--dry-run' option if you just want to see what would be executed." ;; install) $echo \ "Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND... Install executables or libraries. INSTALL-COMMAND is the installation command. The first component should be either the \`install' or \`cp' program. The rest of the components are interpreted as arguments to that command (only BSD-compatible install options are recognized)." ;; link) $echo \ "Usage: $modename [OPTION]... --mode=link LINK-COMMAND... Link object files or libraries together to form another library, or to create an executable program. LINK-COMMAND is a command using the C compiler that you would use to create a program from several object files. The following components of LINK-COMMAND are treated specially: -all-static do not do any dynamic linking at all -avoid-version do not add a version suffix if possible -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) -export-symbols SYMFILE try to export only the symbols listed in SYMFILE -export-symbols-regex REGEX try to export only the symbols matching REGEX -LLIBDIR search LIBDIR for required installed libraries -lNAME OUTPUT-FILE requires the installed library libNAME -module build a library that can dlopened -no-fast-install disable the fast-install mode -no-install link a not-installable executable -no-undefined declare that a library does not refer to external symbols -o OUTPUT-FILE create OUTPUT-FILE from the specified objects -objectlist FILE Use a list of object files found in FILE to specify objects -precious-files-regex REGEX don't remove output files matching REGEX -release RELEASE specify package release information -rpath LIBDIR the created library will eventually be installed in LIBDIR -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries -static do not do any dynamic linking of uninstalled libtool libraries -static-libtool-libs do not do any dynamic linking of libtool libraries -version-info CURRENT[:REVISION[:AGE]] specify library version info [each variable defaults to 0] All other options (arguments beginning with \`-') are ignored. Every other argument is treated as a filename. Files ending in \`.la' are treated as uninstalled libtool libraries, other files are standard or library object files. If the OUTPUT-FILE ends in \`.la', then a libtool library is created, only library objects (\`.lo' files) may be specified, and \`-rpath' is required, except when creating a convenience library. If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created using \`ar' and \`ranlib', or on Windows using \`lib'. If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file is created, otherwise an executable program is created." ;; uninstall) $echo \ "Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... Remove libraries from an installation directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; *) $echo "$modename: invalid operation mode \`$mode'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; esac $echo $echo "Try \`$modename --help' for more information about other modes." exit $? # The TAGs below are defined such that we never get into a situation # in which we disable both kinds of libraries. Given conflicting # choices, we go for a static library, that is the most portable, # since we can't tell whether shared libraries were disabled because # the user asked for that or because the platform doesn't support # them. This is particularly important on AIX, because we don't # support having both static and shared libraries enabled at the same # time on that platform, so we default to a shared-only configuration. # If a disable-shared tag is given, we'll fallback to a static-only # configuration. But we'll never go from static-only to shared-only. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared disable_libs=shared # ### END LIBTOOL TAG CONFIG: disable-shared # ### BEGIN LIBTOOL TAG CONFIG: disable-static disable_libs=static # ### END LIBTOOL TAG CONFIG: disable-static # Local Variables: # mode:shell-script # sh-indentation:2 # End: katoob-0.5.9.1/missing0000755000175000017500000002466610746620157011511 00000000000000#! /bin/sh # Common stub for a few missing GNU programs while installing. scriptversion=2003-09-02.23 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003 # 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, 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. if test $# -eq 0; then echo 1>&2 "Try \`$0 --help' for more information" exit 1 fi run=: # 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 ;; esac # If it does not exist, or fails to run (possibly an outdated version), # try to emulate it. case "$1" in -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' 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] Send bug reports to ." ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" ;; -*) echo 1>&2 "$0: Unknown \`$1' option" echo 1>&2 "Try \`$0 --help' for more information" exit 1 ;; aclocal*) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 fi 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) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 fi 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) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 fi 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*) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 fi 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) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 fi 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 's/.*--output[ =]*\([^ ]*\).*/\1/p'` test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'` 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 [ $# -ne 1 ]; then eval LASTARG="\${$#}" case "$LASTARG" in *.y) SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" y.tab.c fi SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" y.tab.h fi ;; esac fi if [ ! -f y.tab.h ]; then echo >y.tab.h fi if [ ! -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 [ $# -ne 1 ]; then eval LASTARG="\${$#}" case "$LASTARG" in *.l) SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" lex.yy.c fi ;; esac fi if [ ! -f lex.yy.c ]; then echo 'main() { return 0; }' >lex.yy.c fi ;; help2man) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 fi 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 's/.*-o \([^ ]*\).*/\1/p'` if test -z "$file"; then file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'` fi if [ -f "$file" ]; then touch $file else test -z "$file" || exec >$file echo ".ab help2man is required to generate this page" exit 1 fi ;; makeinfo) if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then # We have makeinfo, but it failed. exit 1 fi 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." file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` if test -z "$file"; then file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file` fi touch $file ;; tar) shift if test -n "$run"; then echo 1>&2 "ERROR: \`tar' requires --run" exit 1 fi # 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-end: "$" # End: katoob-0.5.9.1/mkinstalldirs0000755000175000017500000000370410746620152012701 00000000000000#! /bin/sh # mkinstalldirs --- make directory hierarchy # Author: Noah Friedman # Created: 1993-05-16 # Public domain errstatus=0 dirmode="" usage="\ Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..." # process command line arguments while test $# -gt 0 ; do case $1 in -h | --help | --h*) # -h for help echo "$usage" 1>&2 exit 0 ;; -m) # -m PERM arg shift test $# -eq 0 && { echo "$usage" 1>&2; exit 1; } dirmode=$1 shift ;; --) # 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 case $dirmode in '') if mkdir -p -- . 2>/dev/null; then echo "mkdir -p -- $*" exec mkdir -p -- "$@" fi ;; *) if mkdir -m "$dirmode" -p -- . 2>/dev/null; then echo "mkdir -m $dirmode -p -- $*" exec mkdir -m "$dirmode" -p -- "$@" fi ;; esac for file do set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` shift pathcomp= for d do 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 # End: # mkinstalldirs ends here katoob-0.5.9.1/katoob.desktop.in0000644000175000017500000000040310746620170013343 00000000000000[Desktop Entry] Version=1.0 Type=Application _Name=Katoob _Comment=Multilingual Unicode Text Editor TryExec=/usr/local/katoob Exec=/usr/local/bin/katoob %F Icon=katoob-icon.pmg Encoding=UTF-8 Terminal=false Categories=Utility;TextEditor MimeType=text/plain; katoob-0.5.9.1/katoob-icon.png0000644000175000017500000000704310746617675013026 00000000000000PNG  IHDR01^*"sBIT|dtEXtSoftwarewww.inkscape.org< IDAThՙytTU?*Rao A .b( iP{[Vpg9/{~~]!k w@HMMF `F<BK !Z !> Щc6? AìЈ89 P$`/! !tưwK2&j+T@m5t YaU !GS>os>]R<.uRJ,੉c!6 UJ^{j^B8!r EһWfgN#5p~j/VďX\(nLPPJ$ !fi@L+?/^rigx̬UK5grr5N 9P:1|$0@=S|jkk[Jf9?qgj[hg'5yg#j 15 q@ L|lj!:cmu%RQos^A!!$ĵYjj(.-et}%+mGP#@ WJi#^DcbJà*q} :'R]{dcZAo:$ĚQEe̜tCP#r+> !%Rս>բ 9V^]7F%)j[5x<^%&Ĉұ-'Og[KToؒi,p~<>99gZ$٬5TW!6ZHCU\tlǢy/b@Jm~}LB'xdD~o決B`&tn^g>hRs 7덀מosSa {񲯟Q<1n6]Q=- Z# ХsJA-Z]u}&5ykΣu8zvg$Ʒv驝IMgxg Blj f_" ];~}z·Z+la ƌ/XDq ;(`!K7ޯϝ>{׷_cTT?rq9퍤 䣵z;+t5'NG'>։qHE+tjǨ!;3Aݎ׳sȔO?$<,Ng0F# t}k/䜊 Rوa6_\DyE-̑7?m8.bM̞>)^Bhp}VO:]kr$}Qb`K^53qCnk7lkyI""< k =zɏ"<,)=^/  ;2❗aSWFyV\éݙ^9Pnj:]Mٓ!A謖Fۆॢpq^}=:<Lߟ|VqFz1U+b6g)[w\@jl8boVx培('`v0o+]:tV(;GwB5#;/W @U$[wj^k ^x(ROB1׉X,5$ZE(ƚ]̺yϯQvdPJ#RJ+4 )OO4#>U"0gOZ@kcrm\**d.`2iN"Nn<ɇۋw#"#v@ÄF H)L+cyiL'`dOMmup t:kwU\p)d엯R,_|!5j(DGۑ`(f _x+jDDS'fgR\Nn 16ApiT݉S}";Ǚ$ Arͦ`C{=k@"V;1z1#>nӚP]ƻL~|4AA2 6 5Kf8ӟJFQp8dg@.klXٳ/SHzIGqBFeͼ5x〃#`r6mIߝC͵rYgrXS .]/4wԞg|< ^.9YEB$$y2Oڜ]))TZvg miQ1X·KGܗv򋅗%e4q-b|YRલR]Lƾ|׻1k/WQ.ȯ7r* A-= 8TB +ft]5M;E Q~ȵa1jIظr+, ^pErezZƼ٦*vK0GY5U{,v9?~,fs/۝")*R|}8Aa,P-t5:-XtÃL-"s6۝m)*%'v4ZuvlX lU+ HWBV|bYoϒˉ@zw+胣HKqC`BUM=YiT9OE@-P+tjFbQG/ӵ/e ۽$wEN~+tbRI9d0Ž@.PFf8UCBKn2^quM)t5WVױۍl6O.Ũ4KF t>|n泿v!1IV%V\{eZZ~҈\R:}W̑FS/4/* ;l{2Op=ۉy/riNfТcgsb?)mNM.E^h\~AMO]Ч[f_3ZE*:G_)\ `?D-eD4vSJIQ -44ht_2W-,rcݮnj&Pg{PZ5U.JKbꩍ}H)ng?]ty_ujoWyn ַBCzuO)^Jd0w;f@ U{Z{56'pnz< # Darin Adler # ## Release information my $PROGRAM = "intltool-extract"; my $PACKAGE = "intltool"; my $VERSION = "0.37.0"; ## Loaded modules use strict; use File::Basename; use Getopt::Long; ## Scalars used by the option stuff my $TYPE_ARG = "0"; my $LOCAL_ARG = "0"; my $HELP_ARG = "0"; my $VERSION_ARG = "0"; my $UPDATE_ARG = "0"; my $QUIET_ARG = "0"; my $SRCDIR_ARG = "."; my $FILE; my $OUTFILE; my $gettext_type = ""; my $input; my %messages = (); my %loc = (); my %count = (); my %comments = (); my $strcount = 0; my $XMLCOMMENT = ""; ## Use this instead of \w for XML files to handle more possible characters. my $w = "[-A-Za-z0-9._:]"; ## Always print first $| = 1; ## Handle options GetOptions ( "type=s" => \$TYPE_ARG, "local|l" => \$LOCAL_ARG, "help|h" => \$HELP_ARG, "version|v" => \$VERSION_ARG, "update" => \$UPDATE_ARG, "quiet|q" => \$QUIET_ARG, "srcdir=s" => \$SRCDIR_ARG, ) or &error; &split_on_argument; ## Check for options. ## This section will check for the different options. sub split_on_argument { if ($VERSION_ARG) { &version; } elsif ($HELP_ARG) { &help; } elsif ($LOCAL_ARG) { &place_local; &extract; } elsif ($UPDATE_ARG) { &place_normal; &extract; } elsif (@ARGV > 0) { &place_normal; &message; &extract; } else { &help; } } sub place_normal { $FILE = $ARGV[0]; $OUTFILE = "$FILE.h"; my $dirname = dirname ($OUTFILE); if (! -d "$dirname" && $dirname ne "") { system ("mkdir -p $dirname"); } } sub place_local { $FILE = $ARGV[0]; $OUTFILE = fileparse($FILE, ()); if (!-e "tmp/") { system("mkdir tmp/"); } $OUTFILE = "./tmp/$OUTFILE.h" } sub determine_type { if ($TYPE_ARG =~ /^gettext\/(.*)/) { $gettext_type=$1 } } ## Sub for printing release information sub version{ print <<_EOF_; ${PROGRAM} (${PACKAGE}) $VERSION Copyright (C) 2000, 2003 Free Software Foundation, Inc. Written by Kenneth Christiansen, 2000. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. _EOF_ exit; } ## Sub for printing usage information sub help { print <<_EOF_; Usage: ${PROGRAM} [OPTION]... [FILENAME] Generates a header file from an XML source file. It grabs all strings between <_translatable_node> and its end tag in XML files. Read manpage (man ${PROGRAM}) for more info. --type=TYPE Specify the file type of FILENAME. Currently supports: "gettext/glade", "gettext/ini", "gettext/keys" "gettext/rfc822deb", "gettext/schemas", "gettext/scheme", "gettext/xml", "gettext/quoted", "gettext/quotedxml" -l, --local Writes output into current working directory (conflicts with --update) --update Writes output into the same directory the source file reside (conflicts with --local) --srcdir Root of the source tree -v, --version Output version information and exit -h, --help Display this help and exit -q, --quiet Quiet mode Report bugs to http://bugzilla.gnome.org/ (product name "$PACKAGE") or send email to . _EOF_ exit; } ## Sub for printing error messages sub error{ print STDERR "Try `${PROGRAM} --help' for more information.\n"; exit; } sub message { print "Generating C format header file for translation.\n" unless $QUIET_ARG; } sub extract { &determine_type; &convert; open OUT, ">$OUTFILE"; binmode (OUT) if $^O eq 'MSWin32'; &msg_write; close OUT; print "Wrote $OUTFILE\n" unless $QUIET_ARG; } sub convert { ## Reading the file { local (*IN); local $/; #slurp mode open (IN, "<$SRCDIR_ARG/$FILE") || die "can't open $SRCDIR_ARG/$FILE: $!"; $input = ; } &type_ini if $gettext_type eq "ini"; &type_keys if $gettext_type eq "keys"; &type_xml if $gettext_type eq "xml"; &type_glade if $gettext_type eq "glade"; &type_scheme if $gettext_type eq "scheme"; &type_schemas if $gettext_type eq "schemas"; &type_rfc822deb if $gettext_type eq "rfc822deb"; &type_quoted if $gettext_type eq "quoted"; &type_quotedxml if $gettext_type eq "quotedxml"; } sub entity_decode_minimal { local ($_) = @_; s/'/'/g; # ' s/"/"/g; # " s/&/&/g; return $_; } sub entity_decode { local ($_) = @_; s/'/'/g; # ' s/"/"/g; # " s/<//g; s/&/&/g; return $_; } sub escape_char { return '\"' if $_ eq '"'; return '\n' if $_ eq "\n"; return '\\\\' if $_ eq '\\'; return $_; } sub escape { my ($string) = @_; return join "", map &escape_char, split //, $string; } sub type_ini { ### For generic translatable desktop files ### while ($input =~ /^(#(.+)\n)?^_.*=(.*)$/mg) { if (defined($2)) { $comments{$3} = $2; } $messages{$3} = []; } } sub type_keys { ### For generic translatable mime/keys files ### while ($input =~ /^\s*_\w+=(.*)$/mg) { $messages{$1} = []; } } sub type_xml { ### For generic translatable XML files ### my $tree = readXml($input); parseTree(0, $tree); } sub print_var { my $var = shift; my $vartype = ref $var; if ($vartype =~ /ARRAY/) { my @arr = @{$var}; print "[ "; foreach my $el (@arr) { print_var($el); print ", "; } print "] "; } elsif ($vartype =~ /HASH/) { my %hash = %{$var}; print "{ "; foreach my $key (keys %hash) { print "$key => "; print_var($hash{$key}); print ", "; } print "} "; } else { print $var; } } # Same syntax as getAttributeString in intltool-merge.in.in, similar logic (look for ## differences comment) sub getAttributeString { my $sub = shift; my $do_translate = shift || 1; my $language = shift || ""; my $translate = shift; my $result = ""; foreach my $e (reverse(sort(keys %{ $sub }))) { my $key = $e; my $string = $sub->{$e}; my $quote = '"'; $string =~ s/^[\s]+//; $string =~ s/[\s]+$//; if ($string =~ /^'.*'$/) { $quote = "'"; } $string =~ s/^['"]//g; $string =~ s/['"]$//g; ## differences from intltool-merge.in.in if ($key =~ /^_/) { $comments{entity_decode($string)} = $XMLCOMMENT if $XMLCOMMENT; $messages{entity_decode($string)} = []; $$translate = 2; } ## differences end here from intltool-merge.in.in $result .= " $key=$quote$string$quote"; } return $result; } # Verbatim copy from intltool-merge.in.in sub getXMLstring { my $ref = shift; my $spacepreserve = shift || 0; my @list = @{ $ref }; my $result = ""; my $count = scalar(@list); my $attrs = $list[0]; my $index = 1; $spacepreserve = 1 if ((exists $attrs->{"xml:space"}) && ($attrs->{"xml:space"} =~ /^["']?preserve["']?$/)); $spacepreserve = 0 if ((exists $attrs->{"xml:space"}) && ($attrs->{"xml:space"} =~ /^["']?default["']?$/)); while ($index < $count) { my $type = $list[$index]; my $content = $list[$index+1]; if (! $type ) { # We've got CDATA if ($content) { # lets strip the whitespace here, and *ONLY* here $content =~ s/\s+/ /gs if (!$spacepreserve); $result .= $content; } } elsif ( "$type" ne "1" ) { # We've got another element $result .= "<$type"; $result .= getAttributeString(@{$content}[0], 0); # no nested translatable elements if ($content) { my $subresult = getXMLstring($content, $spacepreserve); if ($subresult) { $result .= ">".$subresult . ""; } else { $result .= "/>"; } } else { $result .= "/>"; } } $index += 2; } return $result; } # Verbatim copy from intltool-merge.in.in, except for MULTIPLE_OUTPUT handling removed # Translate list of nodes if necessary sub translate_subnodes { my $fh = shift; my $content = shift; my $language = shift || ""; my $singlelang = shift || 0; my $spacepreserve = shift || 0; my @nodes = @{ $content }; my $count = scalar(@nodes); my $index = 0; while ($index < $count) { my $type = $nodes[$index]; my $rest = $nodes[$index+1]; traverse($fh, $type, $rest, $language, $spacepreserve); $index += 2; } } # Based on traverse() in intltool-merge.in.in sub traverse { my $fh = shift; # unused, to allow us to sync code between -merge and -extract my $nodename = shift; my $content = shift; my $language = shift || ""; my $spacepreserve = shift || 0; if ($nodename && "$nodename" eq "1") { $XMLCOMMENT = $content; } elsif ($nodename) { # element my @all = @{ $content }; my $attrs = shift @all; my $translate = 0; my $outattr = getAttributeString($attrs, 1, $language, \$translate); if ($nodename =~ /^_/) { $translate = 1; $nodename =~ s/^_//; } my $lookup = ''; $spacepreserve = 0 if ((exists $attrs->{"xml:space"}) && ($attrs->{"xml:space"} =~ /^["']?default["']?$/)); $spacepreserve = 1 if ((exists $attrs->{"xml:space"}) && ($attrs->{"xml:space"} =~ /^["']?preserve["']?$/)); if ($translate) { $lookup = getXMLstring($content, $spacepreserve); if (!$spacepreserve) { $lookup =~ s/^\s+//s; $lookup =~ s/\s+$//s; } if ($lookup && $translate != 2) { $comments{$lookup} = $XMLCOMMENT if $XMLCOMMENT; $messages{$lookup} = []; } elsif ($translate == 2) { translate_subnodes($fh, \@all, $language, 1, $spacepreserve); } } else { $XMLCOMMENT = ""; my $count = scalar(@all); if ($count > 0) { my $index = 0; while ($index < $count) { my $type = $all[$index]; my $rest = $all[$index+1]; traverse($fh, $type, $rest, $language, $spacepreserve); $index += 2; } } } $XMLCOMMENT = ""; } } # Verbatim copy from intltool-merge.in.in, $fh for compatibility sub parseTree { my $fh = shift; my $ref = shift; my $language = shift || ""; my $name = shift @{ $ref }; my $cont = shift @{ $ref }; while (!$name || "$name" eq "1") { $name = shift @{ $ref }; $cont = shift @{ $ref }; } my $spacepreserve = 0; my $attrs = @{$cont}[0]; $spacepreserve = 1 if ((exists $attrs->{"xml:space"}) && ($attrs->{"xml:space"} =~ /^["']?preserve["']?$/)); traverse($fh, $name, $cont, $language, $spacepreserve); } # Verbatim copy from intltool-merge.in.in sub intltool_tree_comment { my $expat = shift; my $data = $expat->original_string(); my $clist = $expat->{Curlist}; my $pos = $#$clist; $data =~ s/^$//s; push @$clist, 1 => $data; } # Verbatim copy from intltool-merge.in.in sub intltool_tree_cdatastart { my $expat = shift; my $clist = $expat->{Curlist}; my $pos = $#$clist; push @$clist, 0 => $expat->original_string(); } # Verbatim copy from intltool-merge.in.in sub intltool_tree_cdataend { my $expat = shift; my $clist = $expat->{Curlist}; my $pos = $#$clist; $clist->[$pos] .= $expat->original_string(); } # Verbatim copy from intltool-merge.in.in sub intltool_tree_char { my $expat = shift; my $text = shift; my $clist = $expat->{Curlist}; my $pos = $#$clist; # Use original_string so that we retain escaped entities # in CDATA sections. # if ($pos > 0 and $clist->[$pos - 1] eq '0') { $clist->[$pos] .= $expat->original_string(); } else { push @$clist, 0 => $expat->original_string(); } } # Verbatim copy from intltool-merge.in.in sub intltool_tree_start { my $expat = shift; my $tag = shift; my @origlist = (); # Use original_string so that we retain escaped entities # in attribute values. We must convert the string to an # @origlist array to conform to the structure of the Tree # Style. # my @original_array = split /\x/, $expat->original_string(); my $source = $expat->original_string(); # Remove leading tag. # $source =~ s|^\s*<\s*(\S+)||s; # Grab attribute key/value pairs and push onto @origlist array. # while ($source) { if ($source =~ /^\s*([\w:-]+)\s*[=]\s*["]/) { $source =~ s|^\s*([\w:-]+)\s*[=]\s*["]([^"]*)["]||s; push @origlist, $1; push @origlist, '"' . $2 . '"'; } elsif ($source =~ /^\s*([\w:-]+)\s*[=]\s*[']/) { $source =~ s|^\s*([\w:-]+)\s*[=]\s*[']([^']*)[']||s; push @origlist, $1; push @origlist, "'" . $2 . "'"; } else { last; } } my $ol = [ { @origlist } ]; push @{ $expat->{Lists} }, $expat->{Curlist}; push @{ $expat->{Curlist} }, $tag => $ol; $expat->{Curlist} = $ol; } # Copied from intltool-merge.in.in and added comment handler. sub readXml { my $xmldoc = shift || return; my $ret = eval 'require XML::Parser'; if(!$ret) { die "You must have XML::Parser installed to run $0\n\n"; } my $xp = new XML::Parser(Style => 'Tree'); $xp->setHandlers(Char => \&intltool_tree_char); $xp->setHandlers(Start => \&intltool_tree_start); $xp->setHandlers(CdataStart => \&intltool_tree_cdatastart); $xp->setHandlers(CdataEnd => \&intltool_tree_cdataend); ## differences from intltool-merge.in.in $xp->setHandlers(Comment => \&intltool_tree_comment); ## differences end here from intltool-merge.in.in my $tree = $xp->parse($xmldoc); #print_var($tree); # Hello thereHowdydo # would be: # [foo, [{}, 1, "comment", head, [{id => "a"}, 0, "Hello ", em, [{}, 0, "there"]], bar, # [{}, 0, "Howdy", ref, [{}]], 0, "do" ] ] return $tree; } sub type_schemas { ### For schemas XML files ### # FIXME: We should handle escaped < (less than) while ($input =~ / \s* (\s*(?:\s*)?(.*?)\s*<\/default>\s*)? (\s*(?:\s*)?(.*?)\s*<\/short>\s*)? (\s*(?:\s*)?(.*?)\s*<\/long>\s*)? <\/locale> /sgx) { my @totranslate = ($3,$6,$9); my @eachcomment = ($2,$5,$8); foreach (@totranslate) { my $currentcomment = shift @eachcomment; next if !$_; s/\s+/ /g; $messages{entity_decode_minimal($_)} = []; $comments{entity_decode_minimal($_)} = $currentcomment if (defined($currentcomment)); } } } sub type_rfc822deb { ### For rfc822-style Debian configuration files ### my $lineno = 1; my $type = ''; while ($input =~ /\G(.*?)(^|\n)(_+)([^:]+):[ \t]*(.*?)(?=\n\S|$)/sg) { my ($pre, $newline, $underscore, $tag, $text) = ($1, $2, $3, $4, $5); while ($pre =~ m/\n/g) { $lineno ++; } $lineno += length($newline); my @str_list = rfc822deb_split(length($underscore), $text); for my $str (@str_list) { $strcount++; $messages{$str} = []; $loc{$str} = $lineno; $count{$str} = $strcount; my $usercomment = ''; while($pre =~ s/(^|\n)#([^\n]*)$//s) { $usercomment = "\n" . $2 . $usercomment; } $comments{$str} = $tag . $usercomment; } $lineno += ($text =~ s/\n//g); } } sub rfc822deb_split { # Debian defines a special way to deal with rfc822-style files: # when a value contain newlines, it consists of # 1. a short form (first line) # 2. a long description, all lines begin with a space, # and paragraphs are separated by a single dot on a line # This routine returns an array of all paragraphs, and reformat # them. # When first argument is 2, the string is a comma separated list of # values. my $type = shift; my $text = shift; $text =~ s/^[ \t]//mg; return (split(/, */, $text, 0)) if $type ne 1; return ($text) if $text !~ /\n/; $text =~ s/([^\n]*)\n//; my @list = ($1); my $str = ''; for my $line (split (/\n/, $text)) { chomp $line; if ($line =~ /^\.\s*$/) { # New paragraph $str =~ s/\s*$//; push(@list, $str); $str = ''; } elsif ($line =~ /^\s/) { # Line which must not be reformatted $str .= "\n" if length ($str) && $str !~ /\n$/; $line =~ s/\s+$//; $str .= $line."\n"; } else { # Continuation line, remove newline $str .= " " if length ($str) && $str !~ /\n$/; $str .= $line; } } $str =~ s/\s*$//; push(@list, $str) if length ($str); return @list; } sub type_quoted { while ($input =~ /\"(([^\"]|\\\")*[^\\\"])\"/g) { my $message = $1; my $before = $`; $message =~ s/\\\"/\"/g; $before =~ s/[^\n]//g; $messages{$message} = []; $loc{$message} = length ($before) + 2; } } sub type_quotedxml { while ($input =~ /\"(([^\"]|\\\")*[^\\\"])\"/g) { my $message = $1; my $before = $`; $message =~ s/\\\"/\"/g; $message = entity_decode($message); $before =~ s/[^\n]//g; $messages{$message} = []; $loc{$message} = length ($before) + 2; } } sub type_glade { ### For translatable Glade XML files ### my $tags = "label|title|text|format|copyright|comments|preview_text|tooltip|message"; while ($input =~ /<($tags)>([^<]+)<\/($tags)>/sg) { # Glade sometimes uses tags that normally mark translatable things for # little bits of non-translatable content. We work around this by not # translating strings that only includes something like label4 or window1. $messages{entity_decode($2)} = [] unless $2 =~ /^(window|label|dialog)[0-9]+$/; } while ($input =~ /(..[^<]*)<\/items>/sg) { for my $item (split (/\n/, $1)) { $messages{entity_decode($item)} = []; } } ## handle new glade files while ($input =~ /<(property|atkproperty)\s+[^>]*translatable\s*=\s*"yes"(?:\s+[^>]*comments\s*=\s*"([^"]*)")?[^>]*>([^<]+)<\/\1>/sg) { $messages{entity_decode($3)} = [] unless $3 =~ /^(window|label)[0-9]+$/; if (defined($2) and !($3 =~ /^(window|label)[0-9]+$/)) { $comments{entity_decode($3)} = entity_decode($2) ; } } while ($input =~ /]*)"\s+description="([^>]+)"\/>/sg) { $messages{entity_decode_minimal($2)} = []; } } sub type_scheme { my ($line, $i, $state, $str, $trcomment, $char); for $line (split(/\n/, $input)) { $i = 0; $state = 0; # 0 - nothing, 1 - string, 2 - translatable string while ($i < length($line)) { if (substr($line,$i,1) eq "\"") { if ($state == 2) { $comments{$str} = $trcomment if ($trcomment); $messages{$str} = []; $str = ''; $state = 0; $trcomment = ""; } elsif ($state == 1) { $str = ''; $state = 0; $trcomment = ""; } else { $state = 1; $str = ''; if ($i>0 && substr($line,$i-1,1) eq '_') { $state = 2; } } } elsif (!$state) { if (substr($line,$i,1) eq ";") { $trcomment = substr($line,$i+1); $trcomment =~ s/^;*\s*//; $i = length($line); } elsif ($trcomment && substr($line,$i,1) !~ /\s|\(|\)|_/) { $trcomment = ""; } } else { if (substr($line,$i,1) eq "\\") { $char = substr($line,$i+1,1); if ($char ne "\"" && $char ne "\\") { $str = $str . "\\"; } $i++; } $str = $str . substr($line,$i,1); } $i++; } } } sub msg_write { my @msgids; if (%count) { @msgids = sort { $count{$a} <=> $count{$b} } keys %count; } else { @msgids = sort keys %messages; } for my $message (@msgids) { my $offsetlines = 1; $offsetlines++ if $message =~ /%/; if (defined ($comments{$message})) { while ($comments{$message} =~ m/\n/g) { $offsetlines++; } } print OUT "# ".($loc{$message} - $offsetlines). " \"$FILE\"\n" if defined $loc{$message}; print OUT "/* ".$comments{$message}." */\n" if defined $comments{$message}; print OUT "/* xgettext:no-c-format */\n" if $message =~ /%/; my @lines = split (/\n/, $message, -1); for (my $n = 0; $n < @lines; $n++) { if ($n == 0) { print OUT "char *s = N_(\""; } else { print OUT " \""; } print OUT escape($lines[$n]); if ($n < @lines - 1) { print OUT "\\n\"\n"; } else { print OUT "\");\n"; } } } } katoob-0.5.9.1/intltool-merge.in0000644000175000017500000011474610746620152013375 00000000000000#!@INTLTOOL_PERL@ -w # -*- Mode: perl; indent-tabs-mode: nil; c-basic-offset: 4 -*- # # The Intltool Message Merger # # Copyright (C) 2000, 2003 Free Software Foundation. # Copyright (C) 2000, 2001 Eazel, Inc # # Intltool is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # version 2 published by the Free Software Foundation. # # Intltool 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., 675 Mass Ave, Cambridge, MA 02139, 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. # # Authors: Maciej Stachowiak # Kenneth Christiansen # Darin Adler # # Proper XML UTF-8'ification written by Cyrille Chepelov # ## Release information my $PROGRAM = "intltool-merge"; my $PACKAGE = "intltool"; my $VERSION = "0.37.0"; ## Loaded modules use strict; use Getopt::Long; use Text::Wrap; use File::Basename; my $must_end_tag = -1; my $last_depth = -1; my $translation_depth = -1; my @tag_stack = (); my @entered_tag = (); my @translation_strings = (); my $leading_space = ""; ## Scalars used by the option stuff my $HELP_ARG = 0; my $VERSION_ARG = 0; my $BA_STYLE_ARG = 0; my $XML_STYLE_ARG = 0; my $KEYS_STYLE_ARG = 0; my $DESKTOP_STYLE_ARG = 0; my $SCHEMAS_STYLE_ARG = 0; my $RFC822DEB_STYLE_ARG = 0; my $QUOTED_STYLE_ARG = 0; my $QUOTEDXML_STYLE_ARG = 0; my $QUIET_ARG = 0; my $PASS_THROUGH_ARG = 0; my $UTF8_ARG = 0; my $MULTIPLE_OUTPUT = 0; my $cache_file; ## Handle options GetOptions ( "help" => \$HELP_ARG, "version" => \$VERSION_ARG, "quiet|q" => \$QUIET_ARG, "oaf-style|o" => \$BA_STYLE_ARG, ## for compatibility "ba-style|b" => \$BA_STYLE_ARG, "xml-style|x" => \$XML_STYLE_ARG, "keys-style|k" => \$KEYS_STYLE_ARG, "desktop-style|d" => \$DESKTOP_STYLE_ARG, "schemas-style|s" => \$SCHEMAS_STYLE_ARG, "rfc822deb-style|r" => \$RFC822DEB_STYLE_ARG, "quoted-style" => \$QUOTED_STYLE_ARG, "quotedxml-style" => \$QUOTEDXML_STYLE_ARG, "pass-through|p" => \$PASS_THROUGH_ARG, "utf8|u" => \$UTF8_ARG, "multiple-output|m" => \$MULTIPLE_OUTPUT, "cache|c=s" => \$cache_file ) or &error; my $PO_DIR; my $FILE; my $OUTFILE; my %po_files_by_lang = (); my %translations = (); my $iconv = $ENV{"ICONV"} || "iconv"; my $devnull = ($^O eq 'MSWin32' ? 'NUL:' : '/dev/null'); sub isProgramInPath { my ($file) = @_; # If either a file exists, or when run it returns 0 exit status return 1 if ((-x $file) or (system("$file -l >$devnull") == 0)); return 0; } if (! isProgramInPath ("$iconv")) { print STDERR " *** iconv is not found on this system!\n". " *** Without it, intltool-merge can not convert encodings.\n"; exit; } # Use this instead of \w for XML files to handle more possible characters. my $w = "[-A-Za-z0-9._:]"; # XML quoted string contents my $q = "[^\\\"]*"; ## Check for options. if ($VERSION_ARG) { &print_version; } elsif ($HELP_ARG) { &print_help; } elsif ($BA_STYLE_ARG && @ARGV > 2) { &utf8_sanity_check; &preparation; &print_message; &ba_merge_translations; &finalize; } elsif ($XML_STYLE_ARG && @ARGV > 2) { &utf8_sanity_check; &preparation; &print_message; &xml_merge_output; &finalize; } elsif ($KEYS_STYLE_ARG && @ARGV > 2) { &utf8_sanity_check; &preparation; &print_message; &keys_merge_translations; &finalize; } elsif ($DESKTOP_STYLE_ARG && @ARGV > 2) { &utf8_sanity_check; &preparation; &print_message; &desktop_merge_translations; &finalize; } elsif ($SCHEMAS_STYLE_ARG && @ARGV > 2) { &utf8_sanity_check; &preparation; &print_message; &schemas_merge_translations; &finalize; } elsif ($RFC822DEB_STYLE_ARG && @ARGV > 2) { &preparation; &print_message; &rfc822deb_merge_translations; &finalize; } elsif (($QUOTED_STYLE_ARG || $QUOTEDXML_STYLE_ARG) && @ARGV > 2) { &utf8_sanity_check; &preparation; &print_message; "ed_merge_translations($QUOTEDXML_STYLE_ARG); &finalize; } else { &print_help; } exit; ## Sub for printing release information sub print_version { print <<_EOF_; ${PROGRAM} (${PACKAGE}) ${VERSION} Written by Maciej Stachowiak, Darin Adler and Kenneth Christiansen. Copyright (C) 2000-2003 Free Software Foundation, Inc. Copyright (C) 2000-2001 Eazel, 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. _EOF_ exit; } ## Sub for printing usage information sub print_help { print <<_EOF_; Usage: ${PROGRAM} [OPTION]... PO_DIRECTORY FILENAME OUTPUT_FILE Generates an output file that includes some localized attributes from an untranslated source file. Mandatory options: (exactly one must be specified) -b, --ba-style includes translations in the bonobo-activation style -d, --desktop-style includes translations in the desktop style -k, --keys-style includes translations in the keys style -s, --schemas-style includes translations in the schemas style -r, --rfc822deb-style includes translations in the RFC822 style --quoted-style includes translations in the quoted string style --quotedxml-style includes translations in the quoted xml string style -x, --xml-style includes translations in the standard xml style Other options: -u, --utf8 convert all strings to UTF-8 before merging (default for everything except RFC822 style) -p, --pass-through deprecated, does nothing and issues a warning -m, --multiple-output output one localized file per locale, instead of a single file containing all localized elements -c, --cache=FILE specify cache file name (usually \$top_builddir/po/.intltool-merge-cache) -q, --quiet suppress most messages --help display this help and exit --version output version information and exit Report bugs to http://bugzilla.gnome.org/ (product name "$PACKAGE") or send email to . _EOF_ exit; } ## Sub for printing error messages sub print_error { print STDERR "Try `${PROGRAM} --help' for more information.\n"; exit; } sub print_message { print "Merging translations into $OUTFILE.\n" unless $QUIET_ARG; } sub preparation { $PO_DIR = $ARGV[0]; $FILE = $ARGV[1]; $OUTFILE = $ARGV[2]; &gather_po_files; &get_translation_database; } # General-purpose code for looking up translations in .po files sub po_file2lang { my ($tmp) = @_; $tmp =~ s/^.*\/(.*)\.po$/$1/; return $tmp; } sub gather_po_files { if (my $linguas = $ENV{"LINGUAS"}) { for my $lang (split / /, $linguas) { my $po_file = $PO_DIR . "/" . $lang . ".po"; if (-e $po_file) { $po_files_by_lang{$lang} = $po_file; } } } else { if (open LINGUAS_FILE, "$PO_DIR/LINGUAS") { while () { next if /^#/; for my $lang (split) { chomp ($lang); my $po_file = $PO_DIR . "/" . $lang . ".po"; if (-e $po_file) { $po_files_by_lang{$lang} = $po_file; } } } close LINGUAS_FILE; } else { for my $po_file (glob "$PO_DIR/*.po") { $po_files_by_lang{po_file2lang($po_file)} = $po_file; } } } } sub get_local_charset { my ($encoding) = @_; my $alias_file = $ENV{"G_CHARSET_ALIAS"} || "@INTLTOOL_LIBDIR@/charset.alias"; # seek character encoding aliases in charset.alias (glib) if (open CHARSET_ALIAS, $alias_file) { while () { next if /^\#/; return $1 if (/^\s*([-._a-zA-Z0-9]+)\s+$encoding\b/i) } close CHARSET_ALIAS; } # if not found, return input string return $encoding; } sub get_po_encoding { my ($in_po_file) = @_; my $encoding = ""; open IN_PO_FILE, $in_po_file or die; while () { ## example: "Content-Type: text/plain; charset=ISO-8859-1\n" if (/Content-Type\:.*charset=([-a-zA-Z0-9]+)\\n/) { $encoding = $1; last; } } close IN_PO_FILE; if (!$encoding) { print STDERR "Warning: no encoding found in $in_po_file. Assuming ISO-8859-1\n" unless $QUIET_ARG; $encoding = "ISO-8859-1"; } system ("$iconv -f $encoding -t UTF-8 <$devnull 2>$devnull"); if ($?) { $encoding = get_local_charset($encoding); } return $encoding } sub utf8_sanity_check { print STDERR "Warning: option --pass-through has been removed.\n" if $PASS_THROUGH_ARG; $UTF8_ARG = 1; } sub get_translation_database { if ($cache_file) { &get_cached_translation_database; } else { &create_translation_database; } } sub get_newest_po_age { my $newest_age; foreach my $file (values %po_files_by_lang) { my $file_age = -M $file; $newest_age = $file_age if !$newest_age || $file_age < $newest_age; } $newest_age = 0 if !$newest_age; return $newest_age; } sub create_cache { print "Generating and caching the translation database\n" unless $QUIET_ARG; &create_translation_database; open CACHE, ">$cache_file" || die; print CACHE join "\x01", %translations; close CACHE; } sub load_cache { print "Found cached translation database\n" unless $QUIET_ARG; my $contents; open CACHE, "<$cache_file" || die; { local $/; $contents = ; } close CACHE; %translations = split "\x01", $contents; } sub get_cached_translation_database { my $cache_file_age = -M $cache_file; if (defined $cache_file_age) { if ($cache_file_age <= &get_newest_po_age) { &load_cache; return; } print "Found too-old cached translation database\n" unless $QUIET_ARG; } &create_cache; } sub create_translation_database { for my $lang (keys %po_files_by_lang) { my $po_file = $po_files_by_lang{$lang}; if ($UTF8_ARG) { my $encoding = get_po_encoding ($po_file); if (lc $encoding eq "utf-8") { open PO_FILE, "<$po_file"; } else { print "NOTICE: $po_file is not in UTF-8 but $encoding, converting...\n" unless $QUIET_ARG;; open PO_FILE, "$iconv -f $encoding -t UTF-8 $po_file|"; } } else { open PO_FILE, "<$po_file"; } my $nextfuzzy = 0; my $inmsgid = 0; my $inmsgstr = 0; my $msgid = ""; my $msgstr = ""; while () { $nextfuzzy = 1 if /^#, fuzzy/; if (/^msgid "((\\.|[^\\]+)*)"/ ) { $translations{$lang, $msgid} = $msgstr if $inmsgstr && $msgid && $msgstr; $msgid = ""; $msgstr = ""; if ($nextfuzzy) { $inmsgid = 0; } else { $msgid = unescape_po_string($1); $inmsgid = 1; } $inmsgstr = 0; $nextfuzzy = 0; } if (/^msgstr "((\\.|[^\\]+)*)"/) { $msgstr = unescape_po_string($1); $inmsgstr = 1; $inmsgid = 0; } if (/^"((\\.|[^\\]+)*)"/) { $msgid .= unescape_po_string($1) if $inmsgid; $msgstr .= unescape_po_string($1) if $inmsgstr; } } $translations{$lang, $msgid} = $msgstr if $inmsgstr && $msgid && $msgstr; } } sub finalize { } sub unescape_one_sequence { my ($sequence) = @_; return "\\" if $sequence eq "\\\\"; return "\"" if $sequence eq "\\\""; return "\n" if $sequence eq "\\n"; return "\r" if $sequence eq "\\r"; return "\t" if $sequence eq "\\t"; return "\b" if $sequence eq "\\b"; return "\f" if $sequence eq "\\f"; return "\a" if $sequence eq "\\a"; return chr(11) if $sequence eq "\\v"; # vertical tab, see ascii(7) return chr(hex($1)) if ($sequence =~ /\\x([0-9a-fA-F]{2})/); return chr(oct($1)) if ($sequence =~ /\\([0-7]{3})/); # FIXME: Is \0 supported as well? Kenneth and Rodney don't want it, see bug #48489 return $sequence; } sub unescape_po_string { my ($string) = @_; $string =~ s/(\\x[0-9a-fA-F]{2}|\\[0-7]{3}|\\.)/unescape_one_sequence($1)/eg; return $string; } sub entity_decode { local ($_) = @_; s/'/'/g; # ' s/"/"/g; # " s/<//g; s/&/&/g; return $_; } # entity_encode: (string) # # Encode the given string to XML format (encode '<' etc). sub entity_encode { my ($pre_encoded) = @_; my @list_of_chars = unpack ('C*', $pre_encoded); # with UTF-8 we only encode minimalistic return join ('', map (&entity_encode_int_minimalist, @list_of_chars)); } sub entity_encode_int_minimalist { return """ if $_ == 34; return "&" if $_ == 38; return "'" if $_ == 39; return "<" if $_ == 60; return ">" if $_ == 62; return chr $_; } sub entity_encoded_translation { my ($lang, $string) = @_; my $translation = $translations{$lang, $string}; return $string if !$translation; return entity_encode ($translation); } ## XML (bonobo-activation specific) merge code sub ba_merge_translations { my $source; { local $/; # slurp mode open INPUT, "<$FILE" or die "can't open $FILE: $!"; $source = ; close INPUT; } open OUTPUT, ">$OUTFILE" or die "can't open $OUTFILE: $!"; # Binmode so that selftest works ok if using a native Win32 Perl... binmode (OUTPUT) if $^O eq 'MSWin32'; while ($source =~ s|^(.*?)([ \t]*<\s*$w+\s+($w+\s*=\s*"$q"\s*)+/?>)([ \t]*\n)?||s) { print OUTPUT $1; my $node = $2 . "\n"; my @strings = (); $_ = $node; while (s/(\s)_($w+\s*=\s*"($q)")/$1$2/s) { push @strings, entity_decode($3); } print OUTPUT; my %langs; for my $string (@strings) { for my $lang (keys %po_files_by_lang) { $langs{$lang} = 1 if $translations{$lang, $string}; } } for my $lang (sort keys %langs) { $_ = $node; s/(\sname\s*=\s*)"($q)"/$1"$2-$lang"/s; s/(\s)_($w+\s*=\s*")($q)"/$1 . $2 . entity_encoded_translation($lang, $3) . '"'/seg; print OUTPUT; } } print OUTPUT $source; close OUTPUT; } ## XML (non-bonobo-activation) merge code # Process tag attributes # Only parameter is a HASH containing attributes -> values mapping sub getAttributeString { my $sub = shift; my $do_translate = shift || 0; my $language = shift || ""; my $result = ""; my $translate = shift; foreach my $e (reverse(sort(keys %{ $sub }))) { my $key = $e; my $string = $sub->{$e}; my $quote = '"'; $string =~ s/^[\s]+//; $string =~ s/[\s]+$//; if ($string =~ /^'.*'$/) { $quote = "'"; } $string =~ s/^['"]//g; $string =~ s/['"]$//g; if ($do_translate && $key =~ /^_/) { $key =~ s|^_||g; if ($language) { # Handle translation my $decode_string = entity_decode($string); my $translation = $translations{$language, $decode_string}; if ($translation) { $translation = entity_encode($translation); $string = $translation; } $$translate = 2; } else { $$translate = 2 if ($translate && (!$$translate)); # watch not to "overwrite" $translate } } $result .= " $key=$quote$string$quote"; } return $result; } # Returns a translatable string from XML node, it works on contents of every node in XML::Parser tree sub getXMLstring { my $ref = shift; my $spacepreserve = shift || 0; my @list = @{ $ref }; my $result = ""; my $count = scalar(@list); my $attrs = $list[0]; my $index = 1; $spacepreserve = 1 if ((exists $attrs->{"xml:space"}) && ($attrs->{"xml:space"} =~ /^["']?preserve["']?$/)); $spacepreserve = 0 if ((exists $attrs->{"xml:space"}) && ($attrs->{"xml:space"} =~ /^["']?default["']?$/)); while ($index < $count) { my $type = $list[$index]; my $content = $list[$index+1]; if (! $type ) { # We've got CDATA if ($content) { # lets strip the whitespace here, and *ONLY* here $content =~ s/\s+/ /gs if (!$spacepreserve); $result .= $content; } } elsif ( "$type" ne "1" ) { # We've got another element $result .= "<$type"; $result .= getAttributeString(@{$content}[0], 0); # no nested translatable elements if ($content) { my $subresult = getXMLstring($content, $spacepreserve); if ($subresult) { $result .= ">".$subresult . ""; } else { $result .= "/>"; } } else { $result .= "/>"; } } $index += 2; } return $result; } # Translate list of nodes if necessary sub translate_subnodes { my $fh = shift; my $content = shift; my $language = shift || ""; my $singlelang = shift || 0; my $spacepreserve = shift || 0; my @nodes = @{ $content }; my $count = scalar(@nodes); my $index = 0; while ($index < $count) { my $type = $nodes[$index]; my $rest = $nodes[$index+1]; if ($singlelang) { my $oldMO = $MULTIPLE_OUTPUT; $MULTIPLE_OUTPUT = 1; traverse($fh, $type, $rest, $language, $spacepreserve); $MULTIPLE_OUTPUT = $oldMO; } else { traverse($fh, $type, $rest, $language, $spacepreserve); } $index += 2; } } sub isWellFormedXmlFragment { my $ret = eval 'require XML::Parser'; if(!$ret) { die "You must have XML::Parser installed to run $0\n\n"; } my $fragment = shift; return 0 if (!$fragment); $fragment = "$fragment"; my $xp = new XML::Parser(Style => 'Tree'); my $tree = 0; eval { $tree = $xp->parse($fragment); }; return $tree; } sub traverse { my $fh = shift; my $nodename = shift; my $content = shift; my $language = shift || ""; my $spacepreserve = shift || 0; if (!$nodename) { if ($content =~ /^[\s]*$/) { $leading_space .= $content; } print $fh $content; } else { # element my @all = @{ $content }; my $attrs = shift @all; my $translate = 0; my $outattr = getAttributeString($attrs, 1, $language, \$translate); if ($nodename =~ /^_/) { $translate = 1; $nodename =~ s/^_//; } my $lookup = ''; $spacepreserve = 0 if ((exists $attrs->{"xml:space"}) && ($attrs->{"xml:space"} =~ /^["']?default["']?$/)); $spacepreserve = 1 if ((exists $attrs->{"xml:space"}) && ($attrs->{"xml:space"} =~ /^["']?preserve["']?$/)); print $fh "<$nodename", $outattr; if ($translate) { $lookup = getXMLstring($content, $spacepreserve); if (!$spacepreserve) { $lookup =~ s/^\s+//s; $lookup =~ s/\s+$//s; } if ($lookup || $translate == 2) { my $translation = $translations{$language, $lookup} if isWellFormedXmlFragment($translations{$language, $lookup}); if ($MULTIPLE_OUTPUT && ($translation || $translate == 2)) { $translation = $lookup if (!$translation); print $fh " xml:lang=\"", $language, "\"" if $language; print $fh ">"; if ($translate == 2) { translate_subnodes($fh, \@all, $language, 1, $spacepreserve); } else { print $fh $translation; } print $fh ""; return; # this means there will be no same translation with xml:lang="$language"... # if we want them both, just remove this "return" } else { print $fh ">"; if ($translate == 2) { translate_subnodes($fh, \@all, $language, 1, $spacepreserve); } else { print $fh $lookup; } print $fh ""; } } else { print $fh "/>"; } for my $lang (sort keys %po_files_by_lang) { if ($MULTIPLE_OUTPUT && $lang ne "$language") { next; } if ($lang) { # Handle translation # my $translate = 0; my $localattrs = getAttributeString($attrs, 1, $lang, \$translate); my $translation = $translations{$lang, $lookup} if isWellFormedXmlFragment($translations{$lang, $lookup}); if ($translate && !$translation) { $translation = $lookup; } if ($translation || $translate) { print $fh "\n"; $leading_space =~ s/.*\n//g; print $fh $leading_space; print $fh "<", $nodename, " xml:lang=\"", $lang, "\"", $localattrs, ">"; if ($translate == 2) { translate_subnodes($fh, \@all, $lang, 1, $spacepreserve); } else { print $fh $translation; } print $fh ""; } } } } else { my $count = scalar(@all); if ($count > 0) { print $fh ">"; my $index = 0; while ($index < $count) { my $type = $all[$index]; my $rest = $all[$index+1]; traverse($fh, $type, $rest, $language, $spacepreserve); $index += 2; } print $fh ""; } else { print $fh "/>"; } } } } sub intltool_tree_comment { my $expat = shift; my $data = shift; my $clist = $expat->{Curlist}; my $pos = $#$clist; push @$clist, 1 => $data; } sub intltool_tree_cdatastart { my $expat = shift; my $clist = $expat->{Curlist}; my $pos = $#$clist; push @$clist, 0 => $expat->original_string(); } sub intltool_tree_cdataend { my $expat = shift; my $clist = $expat->{Curlist}; my $pos = $#$clist; $clist->[$pos] .= $expat->original_string(); } sub intltool_tree_char { my $expat = shift; my $text = shift; my $clist = $expat->{Curlist}; my $pos = $#$clist; # Use original_string so that we retain escaped entities # in CDATA sections. # if ($pos > 0 and $clist->[$pos - 1] eq '0') { $clist->[$pos] .= $expat->original_string(); } else { push @$clist, 0 => $expat->original_string(); } } sub intltool_tree_start { my $expat = shift; my $tag = shift; my @origlist = (); # Use original_string so that we retain escaped entities # in attribute values. We must convert the string to an # @origlist array to conform to the structure of the Tree # Style. # my @original_array = split /\x/, $expat->original_string(); my $source = $expat->original_string(); # Remove leading tag. # $source =~ s|^\s*<\s*(\S+)||s; # Grab attribute key/value pairs and push onto @origlist array. # while ($source) { if ($source =~ /^\s*([\w:-]+)\s*[=]\s*["]/) { $source =~ s|^\s*([\w:-]+)\s*[=]\s*["]([^"]*)["]||s; push @origlist, $1; push @origlist, '"' . $2 . '"'; } elsif ($source =~ /^\s*([\w:-]+)\s*[=]\s*[']/) { $source =~ s|^\s*([\w:-]+)\s*[=]\s*[']([^']*)[']||s; push @origlist, $1; push @origlist, "'" . $2 . "'"; } else { last; } } my $ol = [ { @origlist } ]; push @{ $expat->{Lists} }, $expat->{Curlist}; push @{ $expat->{Curlist} }, $tag => $ol; $expat->{Curlist} = $ol; } sub readXml { my $filename = shift || return; if(!-f $filename) { die "ERROR Cannot find filename: $filename\n"; } my $ret = eval 'require XML::Parser'; if(!$ret) { die "You must have XML::Parser installed to run $0\n\n"; } my $xp = new XML::Parser(Style => 'Tree'); $xp->setHandlers(Char => \&intltool_tree_char); $xp->setHandlers(Start => \&intltool_tree_start); $xp->setHandlers(CdataStart => \&intltool_tree_cdatastart); $xp->setHandlers(CdataEnd => \&intltool_tree_cdataend); my $tree = $xp->parsefile($filename); # Hello thereHowdydo # would be: # [foo, [{}, head, [{id => "a"}, 0, "Hello ", em, [{}, 0, "there"]], bar, [{}, # 0, "Howdy", ref, [{}]], 0, "do" ] ] return $tree; } sub print_header { my $infile = shift; my $fh = shift; my $source; if(!-f $infile) { die "ERROR Cannot find filename: $infile\n"; } print $fh qq{\n}; { local $/; open DOCINPUT, "<${FILE}" or die; $source = ; close DOCINPUT; } if ($source =~ /()/s) { print $fh "$1\n"; } elsif ($source =~ /(]*>)/s) { print $fh "$1\n"; } } sub parseTree { my $fh = shift; my $ref = shift; my $language = shift || ""; my $name = shift @{ $ref }; my $cont = shift @{ $ref }; while (!$name || "$name" eq "1") { $name = shift @{ $ref }; $cont = shift @{ $ref }; } my $spacepreserve = 0; my $attrs = @{$cont}[0]; $spacepreserve = 1 if ((exists $attrs->{"xml:space"}) && ($attrs->{"xml:space"} =~ /^["']?preserve["']?$/)); traverse($fh, $name, $cont, $language, $spacepreserve); } sub xml_merge_output { my $source; if ($MULTIPLE_OUTPUT) { for my $lang (sort keys %po_files_by_lang) { if ( ! -d $lang ) { mkdir $lang or -d $lang or die "Cannot create subdirectory $lang: $!\n"; } open OUTPUT, ">$lang/$OUTFILE" or die "Cannot open $lang/$OUTFILE: $!\n"; binmode (OUTPUT) if $^O eq 'MSWin32'; my $tree = readXml($FILE); print_header($FILE, \*OUTPUT); parseTree(\*OUTPUT, $tree, $lang); close OUTPUT; print "CREATED $lang/$OUTFILE\n" unless $QUIET_ARG; } if ( ! -d "C" ) { mkdir "C" or -d "C" or die "Cannot create subdirectory C: $!\n"; } open OUTPUT, ">C/$OUTFILE" or die "Cannot open C/$OUTFILE: $!\n"; binmode (OUTPUT) if $^O eq 'MSWin32'; my $tree = readXml($FILE); print_header($FILE, \*OUTPUT); parseTree(\*OUTPUT, $tree); close OUTPUT; print "CREATED C/$OUTFILE\n" unless $QUIET_ARG; } else { open OUTPUT, ">$OUTFILE" or die "Cannot open $OUTFILE: $!\n"; binmode (OUTPUT) if $^O eq 'MSWin32'; my $tree = readXml($FILE); print_header($FILE, \*OUTPUT); parseTree(\*OUTPUT, $tree); close OUTPUT; print "CREATED $OUTFILE\n" unless $QUIET_ARG; } } sub keys_merge_translation { my ($lang) = @_; if ( ! -d $lang && $MULTIPLE_OUTPUT) { mkdir $lang or -d $lang or die "Cannot create subdirectory $lang: $!\n"; } open INPUT, "<${FILE}" or die "Cannot open ${FILE}: $!\n"; open OUTPUT, ">$lang/$OUTFILE" or die "Cannot open $lang/$OUTFILE: $!\n"; binmode (OUTPUT) if $^O eq 'MSWin32'; while () { if (s/^(\s*)_(\w+=(.*))/$1$2/) { my $string = $3; if (!$MULTIPLE_OUTPUT) { print OUTPUT; my $non_translated_line = $_; for my $lang (sort keys %po_files_by_lang) { my $translation = $translations{$lang, $string}; next if !$translation; $_ = $non_translated_line; s/(\w+)=.*/[$lang]$1=$translation/; print OUTPUT; } } else { my $non_translated_line = $_; my $translation = $translations{$lang, $string}; $translation = $string if !$translation; $_ = $non_translated_line; s/(\w+)=.*/$1=$translation/; print OUTPUT; } } else { print OUTPUT; } } close OUTPUT; close INPUT; print "CREATED $lang/$OUTFILE\n" unless $QUIET_ARG; } sub keys_merge_translations { if ($MULTIPLE_OUTPUT) { for my $lang (sort keys %po_files_by_lang) { keys_merge_translation ($lang); } keys_merge_translation ("C"); } else { keys_merge_translation ("."); } } sub desktop_merge_translations { open INPUT, "<${FILE}" or die; open OUTPUT, ">${OUTFILE}" or die; binmode (OUTPUT) if $^O eq 'MSWin32'; while () { if (s/^(\s*)_(\w+=(.*))/$1$2/) { my $string = $3; print OUTPUT; my $non_translated_line = $_; for my $lang (sort keys %po_files_by_lang) { my $translation = $translations{$lang, $string}; next if !$translation; $_ = $non_translated_line; s/(\w+)=.*/${1}[$lang]=$translation/; print OUTPUT; } } else { print OUTPUT; } } close OUTPUT; close INPUT; } sub schemas_merge_translations { my $source; { local $/; # slurp mode open INPUT, "<$FILE" or die "can't open $FILE: $!"; $source = ; close INPUT; } open OUTPUT, ">$OUTFILE" or die; binmode (OUTPUT) if $^O eq 'MSWin32'; # FIXME: support attribute translations # Empty nodes never need translation, so unmark all of them. # For example, <_foo/> is just replaced by . $source =~ s|<\s*_($w+)\s*/>|<$1/>|g; while ($source =~ s/ (.*?) (\s+)((\s*) (\s*(?:\s*)?(.*?)\s*<\/default>)?(\s*) (\s*(?:\s*)?(.*?)\s*<\/short>)?(\s*) (\s*(?:\s*)?(.*?)\s*<\/long>)?(\s*) <\/locale>) //sx) { print OUTPUT $1; my $locale_start_spaces = $2 ? $2 : ''; my $default_spaces = $4 ? $4 : ''; my $short_spaces = $7 ? $7 : ''; my $long_spaces = $10 ? $10 : ''; my $locale_end_spaces = $13 ? $13 : ''; my $c_default_block = $3 ? $3 : ''; my $default_string = $6 ? $6 : ''; my $short_string = $9 ? $9 : ''; my $long_string = $12 ? $12 : ''; print OUTPUT "$locale_start_spaces$c_default_block"; $default_string =~ s/\s+/ /g; $default_string = entity_decode($default_string); $short_string =~ s/\s+/ /g; $short_string = entity_decode($short_string); $long_string =~ s/\s+/ /g; $long_string = entity_decode($long_string); for my $lang (sort keys %po_files_by_lang) { my $default_translation = $translations{$lang, $default_string}; my $short_translation = $translations{$lang, $short_string}; my $long_translation = $translations{$lang, $long_string}; next if (!$default_translation && !$short_translation && !$long_translation); print OUTPUT "\n$locale_start_spaces"; print OUTPUT "$default_spaces"; if ($default_translation) { $default_translation = entity_encode($default_translation); print OUTPUT "$default_translation"; } print OUTPUT "$short_spaces"; if ($short_translation) { $short_translation = entity_encode($short_translation); print OUTPUT "$short_translation"; } print OUTPUT "$long_spaces"; if ($long_translation) { $long_translation = entity_encode($long_translation); print OUTPUT "$long_translation"; } print OUTPUT "$locale_end_spaces"; } } print OUTPUT $source; close OUTPUT; } sub rfc822deb_merge_translations { my %encodings = (); for my $lang (keys %po_files_by_lang) { $encodings{$lang} = ($UTF8_ARG ? 'UTF-8' : get_po_encoding($po_files_by_lang{$lang})); } my $source; $Text::Wrap::huge = 'overflow'; $Text::Wrap::break = qr/\n|\s(?=\S)/; { local $/; # slurp mode open INPUT, "<$FILE" or die "can't open $FILE: $!"; $source = ; close INPUT; } open OUTPUT, ">${OUTFILE}" or die; binmode (OUTPUT) if $^O eq 'MSWin32'; while ($source =~ /(^|\n+)(_*)([^:\s]+)(:[ \t]*)(.*?)(?=\n[\S\n]|$)/sg) { my $sep = $1; my $non_translated_line = $3.$4; my $string = $5; my $underscore = length($2); next if $underscore eq 0 && $non_translated_line =~ /^#/; # Remove [] dummy strings my $stripped = $string; $stripped =~ s/\[\s[^\[\]]*\],/,/g if $underscore eq 2; $stripped =~ s/\[\s[^\[\]]*\]$//; $non_translated_line .= $stripped; print OUTPUT $sep.$non_translated_line; if ($underscore) { my @str_list = rfc822deb_split($underscore, $string); for my $lang (sort keys %po_files_by_lang) { my $is_translated = 1; my $str_translated = ''; my $first = 1; for my $str (@str_list) { my $translation = $translations{$lang, $str}; if (!$translation) { $is_translated = 0; last; } # $translation may also contain [] dummy # strings, mostly to indicate an empty string $translation =~ s/\[\s[^\[\]]*\]$//; if ($first) { if ($underscore eq 2) { $str_translated .= $translation; } else { $str_translated .= Text::Tabs::expand($translation) . "\n"; } } else { if ($underscore eq 2) { $str_translated .= ', ' . $translation; } else { $str_translated .= Text::Tabs::expand( Text::Wrap::wrap(' ', ' ', $translation)) . "\n .\n"; } } $first = 0; # To fix some problems with Text::Wrap::wrap $str_translated =~ s/(\n )+\n/\n .\n/g; } next unless $is_translated; $str_translated =~ s/\n \.\n$//; $str_translated =~ s/\s+$//; $_ = $non_translated_line; s/^(\w+):\s*.*/$sep${1}-$lang.$encodings{$lang}: $str_translated/s; print OUTPUT; } } } print OUTPUT "\n"; close OUTPUT; close INPUT; } sub rfc822deb_split { # Debian defines a special way to deal with rfc822-style files: # when a value contain newlines, it consists of # 1. a short form (first line) # 2. a long description, all lines begin with a space, # and paragraphs are separated by a single dot on a line # This routine returns an array of all paragraphs, and reformat # them. # When first argument is 2, the string is a comma separated list of # values. my $type = shift; my $text = shift; $text =~ s/^[ \t]//mg; return (split(/, */, $text, 0)) if $type ne 1; return ($text) if $text !~ /\n/; $text =~ s/([^\n]*)\n//; my @list = ($1); my $str = ''; for my $line (split (/\n/, $text)) { chomp $line; if ($line =~ /^\.\s*$/) { # New paragraph $str =~ s/\s*$//; push(@list, $str); $str = ''; } elsif ($line =~ /^\s/) { # Line which must not be reformatted $str .= "\n" if length ($str) && $str !~ /\n$/; $line =~ s/\s+$//; $str .= $line."\n"; } else { # Continuation line, remove newline $str .= " " if length ($str) && $str !~ /\n$/; $str .= $line; } } $str =~ s/\s*$//; push(@list, $str) if length ($str); return @list; } sub quoted_translation { my ($xml_mode, $lang, $string) = @_; $string = entity_decode($string) if $xml_mode; $string =~ s/\\\"/\"/g; my $translation = $translations{$lang, $string}; $translation = $string if !$translation; $translation = entity_encode($translation) if $xml_mode; $translation =~ s/\"/\\\"/g; return $translation } sub quoted_merge_translations { my ($xml_mode) = @_; if (!$MULTIPLE_OUTPUT) { print "Quoted only supports Multiple Output.\n"; exit(1); } for my $lang (sort keys %po_files_by_lang) { if ( ! -d $lang ) { mkdir $lang or -d $lang or die "Cannot create subdirectory $lang: $!\n"; } open INPUT, "<${FILE}" or die; open OUTPUT, ">$lang/$OUTFILE" or die "Cannot open $lang/$OUTFILE: $!\n"; binmode (OUTPUT) if $^O eq 'MSWin32'; while () { s/\"(([^\"]|\\\")*[^\\\"])\"/"\"" . "ed_translation($xml_mode, $lang, $1) . "\""/ge; print OUTPUT; } close OUTPUT; close INPUT; } } katoob-0.5.9.1/intltool-update.in0000644000175000017500000007430510746620152013554 00000000000000#!@INTLTOOL_PERL@ -w # -*- Mode: perl; indent-tabs-mode: nil; c-basic-offset: 4 -*- # # The Intltool Message Updater # # Copyright (C) 2000-2003 Free Software Foundation. # # Intltool is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # version 2 published by the Free Software Foundation. # # Intltool 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., 675 Mass Ave, Cambridge, MA 02139, 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. # # Authors: Kenneth Christiansen # Maciej Stachowiak # Darin Adler ## Release information my $PROGRAM = "intltool-update"; my $VERSION = "0.37.0"; my $PACKAGE = "intltool"; ## Loaded modules use strict; use Getopt::Long; use Cwd; use File::Copy; use File::Find; ## Scalars used by the option stuff my $HELP_ARG = 0; my $VERSION_ARG = 0; my $DIST_ARG = 0; my $POT_ARG = 0; my $HEADERS_ARG = 0; my $MAINTAIN_ARG = 0; my $REPORT_ARG = 0; my $VERBOSE = 0; my $GETTEXT_PACKAGE = ""; my $OUTPUT_FILE = ""; my @languages; my %varhash = (); my %po_files_by_lang = (); # Regular expressions to categorize file types. # FIXME: Please check if the following is correct my $xml_support = "xml(?:\\.in)*|". # http://www.w3.org/XML/ (Note: .in is not required) "ui|". # Bonobo specific - User Interface desc. files "lang|". # ? "glade2?(?:\\.in)*|". # Glade specific - User Interface desc. files (Note: .in is not required) "scm(?:\\.in)*|". # ? (Note: .in is not required) "oaf(?:\\.in)+|". # DEPRECATED: Replaces by Bonobo .server files "etspec|". # ? "server(?:\\.in)+|". # Bonobo specific "sheet(?:\\.in)+|". # ? "schemas(?:\\.in)+|". # GConf specific "pong(?:\\.in)+|". # DEPRECATED: PONG is not used [by GNOME] any longer. "kbd(?:\\.in)+|". # GOK specific. "policy(?:\\.in)+"; # PolicyKit files my $ini_support = "icon(?:\\.in)+|". # http://www.freedesktop.org/Standards/icon-theme-spec "desktop(?:\\.in)+|". # http://www.freedesktop.org/Standards/menu-spec "caves(?:\\.in)+|". # GNOME Games specific "directory(?:\\.in)+|". # http://www.freedesktop.org/Standards/menu-spec "soundlist(?:\\.in)+|". # GNOME specific "keys(?:\\.in)+|". # GNOME Mime database specific "theme(?:\\.in)+|". # http://www.freedesktop.org/Standards/icon-theme-spec "service(?:\\.in)+"; # DBus specific my $buildin_gettext_support = "c|y|cs|cc|cpp|c\\+\\+|h|hh|gob|py"; ## Always flush buffer when printing $| = 1; ## Sometimes the source tree will be rooted somewhere else. my $SRCDIR = $ENV{"srcdir"} || "."; my $POTFILES_in; $POTFILES_in = "<$SRCDIR/POTFILES.in"; my $devnull = ($^O eq 'MSWin32' ? 'NUL:' : '/dev/null'); ## Handle options GetOptions ( "help" => \$HELP_ARG, "version" => \$VERSION_ARG, "dist|d" => \$DIST_ARG, "pot|p" => \$POT_ARG, "headers|s" => \$HEADERS_ARG, "maintain|m" => \$MAINTAIN_ARG, "report|r" => \$REPORT_ARG, "verbose|x" => \$VERBOSE, "gettext-package|g=s" => \$GETTEXT_PACKAGE, "output-file|o=s" => \$OUTPUT_FILE, ) or &Console_WriteError_InvalidOption; &Console_Write_IntltoolHelp if $HELP_ARG; &Console_Write_IntltoolVersion if $VERSION_ARG; my $arg_count = ($DIST_ARG > 0) + ($POT_ARG > 0) + ($HEADERS_ARG > 0) + ($MAINTAIN_ARG > 0) + ($REPORT_ARG > 0); &Console_Write_IntltoolHelp if $arg_count > 1; my $PKGNAME = FindPackageName (); # --version and --help don't require a module name my $MODULE = $GETTEXT_PACKAGE || $PKGNAME || "unknown"; if ($POT_ARG) { &GenerateHeaders; &GeneratePOTemplate; } elsif ($HEADERS_ARG) { &GenerateHeaders; } elsif ($MAINTAIN_ARG) { &FindLeftoutFiles; } elsif ($REPORT_ARG) { &GenerateHeaders; &GeneratePOTemplate; &Console_Write_CoverageReport; } elsif ((defined $ARGV[0]) && $ARGV[0] =~ /^[a-z]/) { my $lang = $ARGV[0]; ## Report error if the language file supplied ## to the command line is non-existent &Console_WriteError_NotExisting("$SRCDIR/$lang.po") if ! -s "$SRCDIR/$lang.po"; if (!$DIST_ARG) { print "Working, please wait..." if $VERBOSE; &GenerateHeaders; &GeneratePOTemplate; } &POFile_Update ($lang, $OUTPUT_FILE); &Console_Write_TranslationStatus ($lang, $OUTPUT_FILE); } else { &Console_Write_IntltoolHelp; } exit; ######### sub Console_Write_IntltoolVersion { print <<_EOF_; ${PROGRAM} (${PACKAGE}) $VERSION Written by Kenneth Christiansen, Maciej Stachowiak, and Darin Adler. Copyright (C) 2000-2003 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. _EOF_ exit; } sub Console_Write_IntltoolHelp { print <<_EOF_; Usage: ${PROGRAM} [OPTION]... LANGCODE Updates PO template files and merge them with the translations. Mode of operation (only one is allowed): -p, --pot generate the PO template only -s, --headers generate the header files in POTFILES.in -m, --maintain search for left out files from POTFILES.in -r, --report display a status report for the module -d, --dist merge LANGCODE.po with existing PO template Extra options: -g, --gettext-package=NAME override PO template name, useful with --pot -o, --output-file=FILE write merged translation to FILE -x, --verbose display lots of feedback --help display this help and exit --version output version information and exit Examples of use: ${PROGRAM} --pot just create a new PO template ${PROGRAM} xy create new PO template and merge xy.po with it Report bugs to http://bugzilla.gnome.org/ (product name "$PACKAGE") or send email to . _EOF_ exit; } sub echo_n { my $str = shift; my $ret = `echo "$str"`; $ret =~ s/\n$//; # do we need the "s" flag? return $ret; } sub POFile_DetermineType ($) { my $type = $_; my $gettext_type; my $xml_regex = "(?:" . $xml_support . ")"; my $ini_regex = "(?:" . $ini_support . ")"; my $buildin_regex = "(?:" . $buildin_gettext_support . ")"; if ($type =~ /\[type: gettext\/([^\]].*)]/) { $gettext_type=$1; } elsif ($type =~ /schemas(\.in)+$/) { $gettext_type="schemas"; } elsif ($type =~ /glade2?(\.in)*$/) { $gettext_type="glade"; } elsif ($type =~ /scm(\.in)*$/) { $gettext_type="scheme"; } elsif ($type =~ /keys(\.in)+$/) { $gettext_type="keys"; } # bucket types elsif ($type =~ /$xml_regex$/) { $gettext_type="xml"; } elsif ($type =~ /$ini_regex$/) { $gettext_type="ini"; } elsif ($type =~ /$buildin_regex$/) { $gettext_type="buildin"; } else { $gettext_type="unknown"; } return "gettext\/$gettext_type"; } sub TextFile_DetermineEncoding ($) { my $gettext_code="ASCII"; # All files are ASCII by default my $filetype=`file $_ | cut -d ' ' -f 2`; if ($? eq "0") { if ($filetype =~ /^(ISO|UTF)/) { chomp ($gettext_code = $filetype); } elsif ($filetype =~ /^XML/) { $gettext_code="UTF-8"; # We asume that .glade and other .xml files are UTF-8 } } return $gettext_code; } sub isNotValidMissing { my ($file) = @_; return if $file =~ /^\{arch\}\/.*$/; return if $file =~ /^$varhash{"PACKAGE"}-$varhash{"VERSION"}\/.*$/; } sub FindLeftoutFiles { my (@buf_i18n_plain, @buf_i18n_xml, @buf_i18n_xml_unmarked, @buf_i18n_ini, @buf_potfiles, @buf_potfiles_ignore, @buf_allfiles, @buf_allfiles_sorted, @buf_potfiles_sorted, @buf_potfiles_ignore_sorted ); ## Search and find all translatable files find sub { push @buf_i18n_plain, "$File::Find::name" if /\.($buildin_gettext_support)$/; push @buf_i18n_xml, "$File::Find::name" if /\.($xml_support)$/; push @buf_i18n_ini, "$File::Find::name" if /\.($ini_support)$/; push @buf_i18n_xml_unmarked, "$File::Find::name" if /\.(schemas(\.in)+)$/; }, ".."; find sub { push @buf_i18n_plain, "$File::Find::name" if /\.($buildin_gettext_support)$/; push @buf_i18n_xml, "$File::Find::name" if /\.($xml_support)$/; push @buf_i18n_ini, "$File::Find::name" if /\.($ini_support)$/; push @buf_i18n_xml_unmarked, "$File::Find::name" if /\.(schemas(\.in)+)$/; }, "$SRCDIR/.." if "$SRCDIR" ne "."; open POTFILES, $POTFILES_in or die "$PROGRAM: there's no POTFILES.in!\n"; @buf_potfiles = grep !/^(#|\s*$)/, ; close POTFILES; foreach (@buf_potfiles) { s/^\[.*]\s*//; } print "Searching for missing translatable files...\n" if $VERBOSE; ## Check if we should ignore some found files, when ## comparing with POTFILES.in foreach my $ignore ("POTFILES.skip", "POTFILES.ignore") { (-s "$SRCDIR/$ignore") or next; if ("$ignore" eq "POTFILES.ignore") { print "The usage of POTFILES.ignore is deprecated. Please consider moving the\n". "content of this file to POTFILES.skip.\n"; } print "Found $ignore: Ignoring files...\n" if $VERBOSE; open FILE, "<$SRCDIR/$ignore" or die "ERROR: Failed to open $SRCDIR/$ignore!\n"; while () { push @buf_potfiles_ignore, $_ unless /^(#|\s*$)/; } close FILE; @buf_potfiles_ignore_sorted = sort (@buf_potfiles_ignore); } foreach my $file (@buf_i18n_plain) { my $in_comment = 0; my $in_macro = 0; open FILE, "<$file"; while () { # Handle continued multi-line comment. if ($in_comment) { next unless s-.*\*/--; $in_comment = 0; } # Handle continued macro. if ($in_macro) { $in_macro = 0 unless /\\$/; next; } # Handle start of macro (or any preprocessor directive). if (/^\s*\#/) { $in_macro = 1 if /^([^\\]|\\.)*\\$/; next; } # Handle comments and quoted text. while (m-(/\*|//|\'|\")-) # \' and \" keep emacs perl mode happy { my $match = $1; if ($match eq "/*") { if (!s-/\*.*?\*/--) { s-/\*.*--; $in_comment = 1; } } elsif ($match eq "//") { s-//.*--; } else # ' or " { if (!s-$match([^\\]|\\.)*?$match-QUOTEDTEXT-) { warn "mismatched quotes at line $. in $file\n"; s-$match.*--; } } } if (/\w\.GetString *\(QUOTEDTEXT/) { if (defined isNotValidMissing (unpack("x3 A*", $file))) { ## Remove the first 3 chars and add newline push @buf_allfiles, unpack("x3 A*", $file) . "\n"; } last; } ## C_ N_ Q_ and _ are the macros defined in gi8n.h if (/[CNQ]?_ *\(QUOTEDTEXT/) { if (defined isNotValidMissing (unpack("x3 A*", $file))) { ## Remove the first 3 chars and add newline push @buf_allfiles, unpack("x3 A*", $file) . "\n"; } last; } } close FILE; } foreach my $file (@buf_i18n_xml) { open FILE, "<$file"; while () { # FIXME: share the pattern matching code with intltool-extract if (/\s_[-A-Za-z0-9._:]+\s*=\s*\"([^"]+)\"/ || /<_[^>]+>/ || /translatable=\"yes\"/) { if (defined isNotValidMissing (unpack("x3 A*", $file))) { push @buf_allfiles, unpack("x3 A*", $file) . "\n"; } last; } } close FILE; } foreach my $file (@buf_i18n_ini) { open FILE, "<$file"; while () { if (/_(.*)=/) { if (defined isNotValidMissing (unpack("x3 A*", $file))) { push @buf_allfiles, unpack("x3 A*", $file) . "\n"; } last; } } close FILE; } foreach my $file (@buf_i18n_xml_unmarked) { if (defined isNotValidMissing (unpack("x3 A*", $file))) { push @buf_allfiles, unpack("x3 A*", $file) . "\n"; } } @buf_allfiles_sorted = sort (@buf_allfiles); @buf_potfiles_sorted = sort (@buf_potfiles); my %in2; foreach (@buf_potfiles_sorted) { s#^$SRCDIR/../##; s#^$SRCDIR/##; $in2{$_} = 1; } foreach (@buf_potfiles_ignore_sorted) { s#^$SRCDIR/../##; s#^$SRCDIR/##; $in2{$_} = 1; } my @result; foreach (@buf_allfiles_sorted) { my $dummy = $_; my $srcdir = $SRCDIR; $srcdir =~ s#^../##; $dummy =~ s#^$srcdir/../##; $dummy =~ s#^$srcdir/##; $dummy =~ s#_build/##; if (!exists($in2{$dummy})) { push @result, $dummy } } my @buf_potfiles_notexist; foreach (@buf_potfiles_sorted) { chomp (my $dummy = $_); if ("$dummy" ne "" and !(-f "$SRCDIR/../$dummy" or -f "../$dummy")) { push @buf_potfiles_notexist, $_; } } ## Save file with information about the files missing ## if any, and give information about this procedure. if (@result + @buf_potfiles_notexist > 0) { if (@result) { print "\n" if $VERBOSE; unlink "missing"; open OUT, ">missing"; print OUT @result; close OUT; warn "\e[1mThe following files contain translations and are currently not in use. Please\e[0m\n". "\e[1mconsider adding these to the POTFILES.in file, located in the po/ directory.\e[0m\n\n"; print STDERR @result, "\n"; warn "If some of these files are left out on purpose then please add them to\n". "POTFILES.skip instead of POTFILES.in. A file \e[1m'missing'\e[0m containing this list\n". "of left out files has been written in the current directory.\n"; } if (@buf_potfiles_notexist) { unlink "notexist"; open OUT, ">notexist"; print OUT @buf_potfiles_notexist; close OUT; warn "\n" if ($VERBOSE or @result); warn "\e[1mThe following files do not exist anymore:\e[0m\n\n"; warn @buf_potfiles_notexist, "\n"; warn "Please remove them from POTFILES.in. A file \e[1m'notexist'\e[0m\n". "containing this list of absent files has been written in the current directory.\n"; } } ## If there is nothing to complain about, notify the user else { print "\nAll files containing translations are present in POTFILES.in.\n" if $VERBOSE; } } sub Console_WriteError_InvalidOption { ## Handle invalid arguments print STDERR "Try `${PROGRAM} --help' for more information.\n"; exit 1; } sub isProgramInPath { my ($file) = @_; # If either a file exists, or when run it returns 0 exit status return 1 if ((-x $file) or (system("$file --version >$devnull") == 0)); return 0; } sub isGNUGettextTool { my ($file) = @_; # Check that we are using GNU gettext tools if (isProgramInPath ($file)) { my $version = `$file --version`; return 1 if ($version =~ m/.*\(GNU .*\).*/); } return 0; } sub GenerateHeaders { my $EXTRACT = $ENV{"INTLTOOL_EXTRACT"} || "intltool-extract"; ## Generate the .h header files, so we can allow glade and ## xml translation support if (! isProgramInPath ("$EXTRACT")) { print STDERR "\n *** The intltool-extract script wasn't found!" ."\n *** Without it, intltool-update can not generate files.\n"; exit; } else { open (FILE, $POTFILES_in) or die "$PROGRAM: POTFILES.in not found.\n"; while () { chomp; next if /^\[\s*encoding/; ## Find xml files in POTFILES.in and generate the ## files with help from the extract script my $gettext_type= &POFile_DetermineType ($1); if (/\.($xml_support|$ini_support)$/ || /^\[/) { s/^\[[^\[].*]\s*//; my $filename = "../$_"; if ($VERBOSE) { system ($EXTRACT, "--update", "--srcdir=$SRCDIR", "--type=$gettext_type", $filename); } else { system ($EXTRACT, "--update", "--type=$gettext_type", "--srcdir=$SRCDIR", "--quiet", $filename); } } } close FILE; } } # # Generate .pot file from POTFILES.in # sub GeneratePOTemplate { my $XGETTEXT = $ENV{"XGETTEXT"} || "xgettext"; my $XGETTEXT_ARGS = $ENV{"XGETTEXT_ARGS"} || ''; chomp $XGETTEXT; if (! isGNUGettextTool ("$XGETTEXT")) { print STDERR " *** GNU xgettext is not found on this system!\n". " *** Without it, intltool-update can not extract strings.\n"; exit; } print "Building $MODULE.pot...\n" if $VERBOSE; open INFILE, $POTFILES_in; unlink "POTFILES.in.temp"; open OUTFILE, ">POTFILES.in.temp" or die("Cannot open POTFILES.in.temp for writing"); my $gettext_support_nonascii = 0; # checks for GNU gettext >= 0.12 my $dummy = `$XGETTEXT --version --from-code=UTF-8 >$devnull 2>$devnull`; if ($? == 0) { $gettext_support_nonascii = 1; } else { # urge everybody to upgrade gettext print STDERR "WARNING: This version of gettext does not support extracting non-ASCII\n". " strings. That means you should install a version of gettext\n". " that supports non-ASCII strings (such as GNU gettext >= 0.12),\n". " or have to let non-ASCII strings untranslated. (If there is any)\n"; } my $encoding = "ASCII"; my $forced_gettext_code; my @temp_headers; my $encoding_problem_is_reported = 0; while () { next if (/^#/ or /^\s*$/); chomp; my $gettext_code; if (/^\[\s*encoding:\s*(.*)\s*\]/) { $forced_gettext_code=$1; } elsif (/\.($xml_support|$ini_support)$/ || /^\[/) { s/^\[.*]\s*//; print OUTFILE "../$_.h\n"; push @temp_headers, "../$_.h"; $gettext_code = &TextFile_DetermineEncoding ("../$_.h") if ($gettext_support_nonascii and not defined $forced_gettext_code); } else { print OUTFILE "$SRCDIR/../$_\n"; $gettext_code = &TextFile_DetermineEncoding ("$SRCDIR/../$_") if ($gettext_support_nonascii and not defined $forced_gettext_code); } next if (! $gettext_support_nonascii); if (defined $forced_gettext_code) { $encoding=$forced_gettext_code; } elsif (defined $gettext_code and "$encoding" ne "$gettext_code") { if ($encoding eq "ASCII") { $encoding=$gettext_code; } elsif ($gettext_code ne "ASCII") { # Only report once because the message is quite long if (! $encoding_problem_is_reported) { print STDERR "WARNING: You should use the same file encoding for all your project files,\n". " but $PROGRAM thinks that most of the source files are in\n". " $encoding encoding, while \"$_\" is (likely) in\n". " $gettext_code encoding. If you are sure that all translatable strings\n". " are in same encoding (say UTF-8), please \e[1m*prepend*\e[0m the following\n". " line to POTFILES.in:\n\n". " [encoding: UTF-8]\n\n". " and make sure that configure.in/ac checks for $PACKAGE >= 0.27 .\n". "(such warning message will only be reported once.)\n"; $encoding_problem_is_reported = 1; } } } } close OUTFILE; close INFILE; unlink "$MODULE.pot"; my @xgettext_argument=("$XGETTEXT", "--add-comments", "--directory\=.", "--default-domain\=$MODULE", "--flag\=g_strdup_printf:1:c-format", "--flag\=g_string_printf:2:c-format", "--flag\=g_string_append_printf:2:c-format", "--flag\=g_error_new:3:c-format", "--flag\=g_set_error:4:c-format", "--flag\=g_markup_printf_escaped:1:c-format", "--flag\=g_log:3:c-format", "--flag\=g_print:1:c-format", "--flag\=g_printerr:1:c-format", "--flag\=g_printf:1:c-format", "--flag\=g_fprintf:2:c-format", "--flag\=g_sprintf:2:c-format", "--flag\=g_snprintf:3:c-format", "--flag\=g_scanner_error:2:c-format", "--flag\=g_scanner_warn:2:c-format", "--output\=$MODULE\.pot", "--files-from\=\.\/POTFILES\.in\.temp"); my $XGETTEXT_KEYWORDS = &FindPOTKeywords; push @xgettext_argument, $XGETTEXT_KEYWORDS; my $MSGID_BUGS_ADDRESS = &FindMakevarsBugAddress; push @xgettext_argument, "--msgid-bugs-address\=\"$MSGID_BUGS_ADDRESS\"" if $MSGID_BUGS_ADDRESS; push @xgettext_argument, "--from-code\=$encoding" if ($gettext_support_nonascii); push @xgettext_argument, $XGETTEXT_ARGS if $XGETTEXT_ARGS; my $xgettext_command = join ' ', @xgettext_argument; # intercept xgettext error message print "Running $xgettext_command\n" if $VERBOSE; my $xgettext_error_msg = `$xgettext_command 2>\&1`; my $command_failed = $?; unlink "POTFILES.in.temp"; print "Removing generated header (.h) files..." if $VERBOSE; unlink foreach (@temp_headers); print "done.\n" if $VERBOSE; if (! $command_failed) { if (! -e "$MODULE.pot") { print "None of the files in POTFILES.in contain strings marked for translation.\n" if $VERBOSE; } else { print "Wrote $MODULE.pot\n" if $VERBOSE; } } else { if ($xgettext_error_msg =~ /--from-code/) { # replace non-ASCII error message with a more useful one. print STDERR "ERROR: xgettext failed to generate PO template file because there is non-ASCII\n". " string marked for translation. Please make sure that all strings marked\n". " for translation are in uniform encoding (say UTF-8), then \e[1m*prepend*\e[0m the\n". " following line to POTFILES.in and rerun $PROGRAM:\n\n". " [encoding: UTF-8]\n\n"; } else { print STDERR "$xgettext_error_msg"; if (-e "$MODULE.pot") { # is this possible? print STDERR "ERROR: xgettext failed but still managed to generate PO template file.\n". " Please consult error message above if there is any.\n"; } else { print STDERR "ERROR: xgettext failed to generate PO template file. Please consult\n". " error message above if there is any.\n"; } } exit (1); } } sub POFile_Update { -f "$MODULE.pot" or die "$PROGRAM: $MODULE.pot does not exist.\n"; my $MSGMERGE = $ENV{"MSGMERGE"} || "msgmerge"; my ($lang, $outfile) = @_; if (! isGNUGettextTool ("$MSGMERGE")) { print STDERR " *** GNU msgmerge is not found on this system!\n". " *** Without it, intltool-update can not extract strings.\n"; exit; } print "Merging $SRCDIR/$lang.po with $MODULE.pot..." if $VERBOSE; my $infile = "$SRCDIR/$lang.po"; $outfile = "$SRCDIR/$lang.po" if ($outfile eq ""); # I think msgmerge won't overwrite old file if merge is not successful system ("$MSGMERGE", "-o", $outfile, $infile, "$MODULE.pot"); } sub Console_WriteError_NotExisting { my ($file) = @_; ## Report error if supplied language file is non-existing print STDERR "$PROGRAM: $file does not exist!\n"; print STDERR "Try '$PROGRAM --help' for more information.\n"; exit; } sub GatherPOFiles { my @po_files = glob ("./*.po"); @languages = map (&POFile_GetLanguage, @po_files); foreach my $lang (@languages) { $po_files_by_lang{$lang} = shift (@po_files); } } sub POFile_GetLanguage ($) { s/^(.*\/)?(.+)\.po$/$2/; return $_; } sub Console_Write_TranslationStatus { my ($lang, $output_file) = @_; my $MSGFMT = $ENV{"MSGFMT"} || "msgfmt"; if (! isGNUGettextTool ("$MSGFMT")) { print STDERR " *** GNU msgfmt is not found on this system!\n". " *** Without it, intltool-update can not extract strings.\n"; exit; } $output_file = "$SRCDIR/$lang.po" if ($output_file eq ""); system ("$MSGFMT", "-o", "$devnull", "--verbose", $output_file); } sub Console_Write_CoverageReport { my $MSGFMT = $ENV{"MSGFMT"} || "msgfmt"; if (! isGNUGettextTool ("$MSGFMT")) { print STDERR " *** GNU msgfmt is not found on this system!\n". " *** Without it, intltool-update can not extract strings.\n"; exit; } &GatherPOFiles; foreach my $lang (@languages) { print STDERR "$lang: "; &POFile_Update ($lang, ""); } print STDERR "\n\n * Current translation support in $MODULE \n\n"; foreach my $lang (@languages) { print STDERR "$lang: "; system ("$MSGFMT", "-o", "$devnull", "--verbose", "$SRCDIR/$lang.po"); } } sub SubstituteVariable { my ($str) = @_; # always need to rewind file whenever it has been accessed seek (CONF, 0, 0); # cache each variable. varhash is global to we can add # variables elsewhere. while () { if (/^(\w+)=(.*)$/) { ($varhash{$1} = $2) =~ s/^["'](.*)["']$/$1/; } } if ($str =~ /^(.*)\${?([A-Z_]+)}?(.*)$/) { my $rest = $3; my $untouched = $1; my $sub = ""; # Ignore recursive definitions of variables $sub = $varhash{$2} if defined $varhash{$2} and $varhash{$2} !~ /\${?$2}?/; return SubstituteVariable ("$untouched$sub$rest"); } # We're using Perl backticks ` and "echo -n" here in order to # expand any shell escapes (such as backticks themselves) in every variable return echo_n ($str); } sub CONF_Handle_Open { my $base_dirname = getcwd(); $base_dirname =~ s@.*/@@; my ($conf_in, $src_dir); if ($base_dirname =~ /^po(-.+)?$/) { if (-f "Makevars") { my $makefile_source; local (*IN); open (IN, ") { if (/^top_builddir[ \t]*=/) { $src_dir = $_; $src_dir =~ s/^top_builddir[ \t]*=[ \t]*([^ \t\n\r]*)/$1/; chomp $src_dir; if (-f "$src_dir" . "/configure.ac") { $conf_in = "$src_dir" . "/configure.ac" . "\n"; } else { $conf_in = "$src_dir" . "/configure.in" . "\n"; } last; } } close IN; $conf_in || die "Cannot find top_builddir in Makevars."; } elsif (-f "$SRCDIR/../configure.ac") { $conf_in = "$SRCDIR/../configure.ac"; } elsif (-f "$SRCDIR/../configure.in") { $conf_in = "$SRCDIR/../configure.in"; } else { my $makefile_source; local (*IN); open (IN, ") { if (/^top_srcdir[ \t]*=/) { $src_dir = $_; $src_dir =~ s/^top_srcdir[ \t]*=[ \t]*([^ \t\n\r]*)/$1/; chomp $src_dir; $conf_in = "$src_dir" . "/configure.in" . "\n"; last; } } close IN; $conf_in || die "Cannot find top_srcdir in Makefile."; } open (CONF, "<$conf_in"); } else { print STDERR "$PROGRAM: Unable to proceed.\n" . "Make sure to run this script inside the po directory.\n"; exit; } } sub FindPackageName { my $version; my $domain = &FindMakevarsDomain; my $name = $domain || "untitled"; &CONF_Handle_Open; my $conf_source; { local (*IN); open (IN, "<&CONF") || return $name; seek (IN, 0, 0); local $/; # slurp mode $conf_source = ; close IN; } # priority for getting package name: # 1. GETTEXT_PACKAGE # 2. first argument of AC_INIT (with >= 2 arguments) # 3. first argument of AM_INIT_AUTOMAKE (with >= 2 argument) # /^AM_INIT_AUTOMAKE\([\s\[]*([^,\)\s\]]+)/m # the \s makes this not work, why? if ($conf_source =~ /^AM_INIT_AUTOMAKE\(([^,\)]+),([^,\)]+)/m) { ($name, $version) = ($1, $2); $name =~ s/[\[\]\s]//g; $version =~ s/[\[\]\s]//g; $varhash{"PACKAGE_NAME"} = $name if (not $name =~ /\${?AC_PACKAGE_NAME}?/); $varhash{"PACKAGE"} = $name if (not $name =~ /\${?PACKAGE}?/); $varhash{"PACKAGE_VERSION"} = $version if (not $name =~ /\${?AC_PACKAGE_VERSION}?/); $varhash{"VERSION"} = $version if (not $name =~ /\${?VERSION}?/); } if ($conf_source =~ /^AC_INIT\(([^,\)]+),([^,\)]+)/m) { ($name, $version) = ($1, $2); $name =~ s/[\[\]\s]//g; $version =~ s/[\[\]\s]//g; $varhash{"PACKAGE_NAME"} = $name if (not $name =~ /\${?AC_PACKAGE_NAME}?/); $varhash{"PACKAGE"} = $name if (not $name =~ /\${?PACKAGE}?/); $varhash{"PACKAGE_VERSION"} = $version if (not $name =~ /\${?AC_PACKAGE_VERSION}?/); $varhash{"VERSION"} = $version if (not $name =~ /\${?VERSION}?/); } # \s makes this not work, why? $name = $1 if $conf_source =~ /^GETTEXT_PACKAGE=\[?([^\n\]]+)/m; # m4 macros AC_PACKAGE_NAME, AC_PACKAGE_VERSION etc. have same value # as corresponding $PACKAGE_NAME, $PACKAGE_VERSION etc. shell variables. $name =~ s/\bAC_PACKAGE_/\$PACKAGE_/g; $name = $domain if $domain; $name = SubstituteVariable ($name); $name =~ s/^["'](.*)["']$/$1/; return $name if $name; } sub FindPOTKeywords { my $keywords = "--keyword\=\_ --keyword\=N\_ --keyword\=U\_ --keyword\=Q\_"; my $varname = "XGETTEXT_OPTIONS"; my $make_source; { local (*IN); open (IN, "; close IN; } $keywords = $1 if $make_source =~ /^$varname[ ]*=\[?([^\n\]]+)/m; return $keywords; } sub FindMakevarsDomain { my $domain = ""; my $makevars_source; { local (*IN); open (IN, "; close IN; } $domain = $1 if $makevars_source =~ /^DOMAIN[ ]*=\[?([^\n\]\$]+)/m; $domain =~ s/^\s+//; $domain =~ s/\s+$//; return $domain; } sub FindMakevarsBugAddress { my $address = ""; my $makevars_source; { local (*IN); open (IN, "; close IN; } $address = $1 if $makevars_source =~ /^MSGID_BUGS_ADDRESS[ ]*=\[?([^\n\]\$]+)/m; $address =~ s/^\s+//; $address =~ s/\s+$//; return $address; } katoob-0.5.9.1/katoob.10000644000175000017500000000605210746617675011453 00000000000000.\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH KATOOB 1 "June 22, 2003" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME katoob \- A Gtk2 light weight multilingual BiDi aware text editor. .sp katoob is a text editor for X, You can use it to create and edit text files. Katoob support reading and saving text files in many encodings. As well as importing / exporting to HTML character reference. .SH SYNOPSIS .B katoob .RI [ options ] " files" ... .br .SH DESCRIPTION This manual page documents briefly the .B katoob commands. .PP .\" TeX users may be more comfortable with the \fB\fP and .\" \fI\fP escape sequences to invode bold face and italics, .\" respectively. \fBkatoob\fP is a light weight, multi lingual, BiDi aware text editor. It supports opening and saving files in multiple encodings. The main support was for Arabic language but more languages are currently supported. .SH OPTIONS This program follows the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. .\" For a complete description, see the Info files. .TP .B \-h, \-\-help Show summary of options. .TP .B \-v, \-\-version Show version of program. .TP .B \-u, \-\-usage Display brief usage message. .TP .B \- Read input from the standard input. .TP .B files... Specifies the files to be opened. Multiple files are supported but they should be separated by spaces, Reading from pipes is also supported by using a dash "-". If no files specified, Katoob'll start with an empty document. .SH "FILES" .LP .TP $HOME/.katoob/ User's configuration files directory .TP $HOME/.katoob/config Main configuration file .TP $HOME/.katoob/recent Recent files list .TP $PREFIX/share/katoob Global program directory .SH EXAMPLES .TP Opening multiple files: katoob foo.txt bar.text zot .TP Opening a file called foo and the output of cat: cat bar | katoob foo - .TP Reading from a pipe: ls | katoob - .TP Reading from multiple pipes: katoob - - .PP Here katoob'll try to read from the standard input 2 times. To close the standard input you should press CTRL-D For each dash passed, Katoob'll reopen the standard input and read from it. .SH BUGS Something like .B cat foo | katoob - - "should read cat output and then wait for the user input and open each one in a separate document" is not supported. .SH AUTHOR .B katoob was written by Mohammed Sameer. .SH BUGS Bugs should be reported at http://bugzilla.arabeyes.org/ or the Arabeyes.org developer mailing list developer@arabeyes.org. katoob-0.5.9.1/katoob.de.10000644000175000017500000000657310746617675012052 00000000000000.\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH KATOOB 1 "June 22, 2003" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME katoob \- Ein leichtgewichtiger Gtk2 Mehrsprachen BiDi-fhiger Texteditor. .sp katoob ist ein Texteditor fr X. Sie knnen ihn zum erstellen und bearbeiten von Textdateien verwenden. Katoob untersttzt das Lesen und Speichern von Textdateien in vielen Encodings. Genauso wie das Importieren / Exportieren von/zu HTML Zeichenreferenzen. .SH SYNOPSIS .B katoob .RI [ optionen ] " dateien" ... .br .SH DESCRIPTION Diese Manualseite beschreibt kurz die .B katoob Befehle. .PP .\" TeX users may be more comfortable with the \fB\fP and .\" \fI\fP escape sequences to invode bold face and italics, .\" respectively. \fBkatoob\fP ist ein leichtgewichtiger, mehrsprachen, BiDi-fhiger Texteditor. Er untersttzt das ffnen und Speichern von Dateien in mehrsprachigen Encodings. Die Hauptuntersttzung war fr die arabische Sprache, aber es sind mehr Sprachen untersttzt. .SH OPTIONS Dieses Programm verwendet die gebruchliche GNU Kommandozeilen Syntax mit langen Optionen welche mit zwei Bindestrichen (--) beginnen. Eine Zusammenfassung von Optionen ist nachfolgend aufgefhrt. .\" For a complete description, see the Info files. .TP .B \-h, \-\-help Zeigt Zusammenfassung der Optionen. .TP .B \-v, \-\-version Zeigt die Version des Programs an. .TP .B \-u, \-\-usage Zeigt kurze Bedienungsnachricht .TP .B \- Liet Eingabe vom Standardeingabe. .TP .B dateien... Gibt die zu ffnenden Dateien an. Mehrere Dateien sind untersttzt, diese mssen aber durch Leerzeichen getrennt werden. Das Lesen von Pipes ist ebenso untersttzt unter Verwendeung des Bindestriches -. Wenn keine Dateien angegeben wurden, wird Katoob mit einem leeren Dokument starten. .SH "FILES" .LP .TP $HOME/.katoob/ Verzeichnis der Benutzerkonfiguration .TP $HOME/.katoob/config Hauptkonfiguratinsdatei .TP $HOME/.katoob/recent Liste der lezten Dateien .TP $PREFIX/share/katoob Globales Programmverzeichnis .SH EXAMPLES .TP ffnen mehrerer Dateien: katoob foo.txt bar.text zot .TP ffnen einer Datei genannt foo und der Ausgabe von cat: cat bar | katoob foo - .TP Lesen von einer Pipe: ls | katoob - .TP Lesen von mehreren Pipes: katoob - - .PP Hier wird Katoob versuchen, von der Standardeingabe zwei mal zu lesen. Um die Standardeingabe zu schlieen, mssen sie CTRL-D drcken. Katoob wird fr jeden angegebenen Bindestrich die Standardeingabe erneut ffnen und von ihr lesen. .SH BUGS Etwas wie .B cat foo | katoob - - "soll die Ausgabe von cat lesen, dann auf eine Benutzereingabe warten und jedes in einem seperaten Dokument ffnen" ist nicht untersttzt. .SH AUTHOR .B katoob wurde von Mohammed Sameer geschrieben. .SH BUGS Fehler sollen an http://bugzilla.arabeyes.org/ oder die Arabeyes.org Entwickler Mailinglists developer@arabeyes.org gemeldet werden. katoob-0.5.9.1/Doxyfile0000644000175000017500000002210110746620171011572 00000000000000# Doxyfile 1.5.1 #--------------------------------------------------------------------------- # Project related configuration options #--------------------------------------------------------------------------- PROJECT_NAME = katoob PROJECT_NUMBER = 0.5.9.1 OUTPUT_DIRECTORY = doxygen CREATE_SUBDIRS = NO OUTPUT_LANGUAGE = English USE_WINDOWS_ENCODING = NO BRIEF_MEMBER_DESC = YES REPEAT_BRIEF = YES ABBREVIATE_BRIEF = "The $name class" \ "The $name widget" \ "The $name file" \ is \ provides \ specifies \ contains \ represents \ a \ an \ the ALWAYS_DETAILED_SEC = NO INLINE_INHERITED_MEMB = NO FULL_PATH_NAMES = YES STRIP_FROM_PATH = STRIP_FROM_INC_PATH = SHORT_NAMES = NO JAVADOC_AUTOBRIEF = NO MULTILINE_CPP_IS_BRIEF = NO DETAILS_AT_TOP = NO INHERIT_DOCS = YES SEPARATE_MEMBER_PAGES = NO TAB_SIZE = 8 ALIASES = OPTIMIZE_OUTPUT_FOR_C = NO OPTIMIZE_OUTPUT_JAVA = NO BUILTIN_STL_SUPPORT = NO DISTRIBUTE_GROUP_DOC = NO SUBGROUPING = YES #--------------------------------------------------------------------------- # Build related configuration options #--------------------------------------------------------------------------- EXTRACT_ALL = YES EXTRACT_PRIVATE = YES EXTRACT_STATIC = YES EXTRACT_LOCAL_CLASSES = YES EXTRACT_LOCAL_METHODS = NO HIDE_UNDOC_MEMBERS = NO HIDE_UNDOC_CLASSES = NO HIDE_FRIEND_COMPOUNDS = NO HIDE_IN_BODY_DOCS = NO INTERNAL_DOCS = NO CASE_SENSE_NAMES = YES HIDE_SCOPE_NAMES = NO SHOW_INCLUDE_FILES = YES INLINE_INFO = YES SORT_MEMBER_DOCS = YES SORT_BRIEF_DOCS = NO SORT_BY_SCOPE_NAME = NO GENERATE_TODOLIST = YES GENERATE_TESTLIST = YES GENERATE_BUGLIST = YES GENERATE_DEPRECATEDLIST= YES ENABLED_SECTIONS = MAX_INITIALIZER_LINES = 30 SHOW_USED_FILES = YES SHOW_DIRECTORIES = NO FILE_VERSION_FILTER = #--------------------------------------------------------------------------- # configuration options related to warning and progress messages #--------------------------------------------------------------------------- QUIET = NO WARNINGS = YES WARN_IF_UNDOCUMENTED = YES WARN_IF_DOC_ERROR = YES WARN_NO_PARAMDOC = NO WARN_FORMAT = "$file:$line: $text" WARN_LOGFILE = #--------------------------------------------------------------------------- # configuration options related to the input files #--------------------------------------------------------------------------- INPUT = src FILE_PATTERNS = *.c \ *.cc \ *.cxx \ *.cpp \ *.c++ \ *.h \ *.hh \ *.hxx \ *.hpp \ *.h++ \ *.C \ *.CC \ *.C++ \ *.H \ *.HH \ *.H++ RECURSIVE = YES EXCLUDE = EXCLUDE_SYMLINKS = NO EXCLUDE_PATTERNS = EXAMPLE_PATH = EXAMPLE_PATTERNS = * EXAMPLE_RECURSIVE = NO IMAGE_PATH = INPUT_FILTER = FILTER_PATTERNS = FILTER_SOURCE_FILES = NO #--------------------------------------------------------------------------- # configuration options related to source browsing #--------------------------------------------------------------------------- SOURCE_BROWSER = YES INLINE_SOURCES = NO STRIP_CODE_COMMENTS = YES REFERENCED_BY_RELATION = YES REFERENCES_RELATION = YES REFERENCES_LINK_SOURCE = YES USE_HTAGS = NO VERBATIM_HEADERS = YES #--------------------------------------------------------------------------- # configuration options related to the alphabetical class index #--------------------------------------------------------------------------- ALPHABETICAL_INDEX = NO COLS_IN_ALPHA_INDEX = 5 IGNORE_PREFIX = #--------------------------------------------------------------------------- # configuration options related to the HTML output #--------------------------------------------------------------------------- GENERATE_HTML = YES HTML_OUTPUT = html HTML_FILE_EXTENSION = .html HTML_HEADER = HTML_FOOTER = HTML_STYLESHEET = HTML_ALIGN_MEMBERS = YES GENERATE_HTMLHELP = NO CHM_FILE = HHC_LOCATION = GENERATE_CHI = NO BINARY_TOC = NO TOC_EXPAND = NO DISABLE_INDEX = NO ENUM_VALUES_PER_LINE = 4 GENERATE_TREEVIEW = YES TREEVIEW_WIDTH = 250 #--------------------------------------------------------------------------- # configuration options related to the LaTeX output #--------------------------------------------------------------------------- GENERATE_LATEX = NO LATEX_OUTPUT = latex LATEX_CMD_NAME = latex MAKEINDEX_CMD_NAME = makeindex COMPACT_LATEX = NO PAPER_TYPE = a4wide EXTRA_PACKAGES = LATEX_HEADER = PDF_HYPERLINKS = NO USE_PDFLATEX = NO LATEX_BATCHMODE = NO LATEX_HIDE_INDICES = NO #--------------------------------------------------------------------------- # configuration options related to the RTF output #--------------------------------------------------------------------------- GENERATE_RTF = NO RTF_OUTPUT = rtf COMPACT_RTF = NO RTF_HYPERLINKS = NO RTF_STYLESHEET_FILE = RTF_EXTENSIONS_FILE = #--------------------------------------------------------------------------- # configuration options related to the man page output #--------------------------------------------------------------------------- GENERATE_MAN = NO MAN_OUTPUT = man MAN_EXTENSION = .3 MAN_LINKS = NO #--------------------------------------------------------------------------- # configuration options related to the XML output #--------------------------------------------------------------------------- GENERATE_XML = NO XML_OUTPUT = xml XML_SCHEMA = XML_DTD = XML_PROGRAMLISTING = YES #--------------------------------------------------------------------------- # configuration options for the AutoGen Definitions output #--------------------------------------------------------------------------- GENERATE_AUTOGEN_DEF = NO #--------------------------------------------------------------------------- # configuration options related to the Perl module output #--------------------------------------------------------------------------- GENERATE_PERLMOD = NO PERLMOD_LATEX = NO PERLMOD_PRETTY = YES PERLMOD_MAKEVAR_PREFIX = #--------------------------------------------------------------------------- # Configuration options related to the preprocessor #--------------------------------------------------------------------------- ENABLE_PREPROCESSING = YES MACRO_EXPANSION = NO EXPAND_ONLY_PREDEF = NO SEARCH_INCLUDES = YES INCLUDE_PATH = INCLUDE_FILE_PATTERNS = PREDEFINED = EXPAND_AS_DEFINED = SKIP_FUNCTION_MACROS = YES #--------------------------------------------------------------------------- # Configuration::additions related to external references #--------------------------------------------------------------------------- TAGFILES = GENERATE_TAGFILE = ALLEXTERNALS = NO EXTERNAL_GROUPS = YES PERL_PATH = /usr/bin/perl #--------------------------------------------------------------------------- # Configuration options related to the dot tool #--------------------------------------------------------------------------- CLASS_DIAGRAMS = NO HIDE_UNDOC_RELATIONS = YES HAVE_DOT = YES CLASS_GRAPH = YES COLLABORATION_GRAPH = YES GROUP_GRAPHS = YES UML_LOOK = NO TEMPLATE_RELATIONS = NO INCLUDE_GRAPH = YES INCLUDED_BY_GRAPH = YES CALL_GRAPH = YES CALLER_GRAPH = NO GRAPHICAL_HIERARCHY = YES DIRECTORY_GRAPH = YES DOT_IMAGE_FORMAT = png DOT_PATH = DOTFILE_DIRS = MAX_DOT_GRAPH_WIDTH = 1024 MAX_DOT_GRAPH_HEIGHT = 1024 MAX_DOT_GRAPH_DEPTH = 1000 DOT_TRANSPARENT = NO DOT_MULTI_TARGETS = NO GENERATE_LEGEND = YES DOT_CLEANUP = YES #--------------------------------------------------------------------------- # Configuration::additions related to the search engine #--------------------------------------------------------------------------- SEARCHENGINE = NO katoob-0.5.9.1/src/0000777000175000017500000000000010746622466010754 500000000000000katoob-0.5.9.1/src/win32/0000777000175000017500000000000010746622466011716 500000000000000katoob-0.5.9.1/src/win32/katoob.rc0000644000175000017500000000106010746617674013441 000000000000001 VERSIONINFO FILEVERSION 4, 0, 3, 17 PRODUCTVERSION 3, 0, 0, 0 FILEFLAGSMASK 0 FILEOS 0x40000 FILETYPE 1 { BLOCK "StringFileInfo" { BLOCK "040904E4" { VALUE "CompanyName", "Mohammed Sameer" VALUE "FileDescription", "Katoob is a light weight, multi lingual, BIDI-aware text editor" VALUE "FileVersion", "0.3.5" VALUE "InternalName", "Katoob" VALUE "LegalCopyright", "GNU Public License" VALUE "OriginalFilename", "katoob.exe" VALUE "ProductName", "Katoob" VALUE "ProductVersion", "0.3.5" } } } AppIcon ICON pixmaps/katoob.ico katoob-0.5.9.1/src/katoob.hh0000644000175000017500000000440210746617674012475 00000000000000/* * katoob.hh * This file is part of katoob * * Copyright (C) 2006, 2007 Mohammed Sameer * * 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. */ #ifndef __KATOOB_HH__ #define __KATOOB_HH__ #include #include #include "window.hh" #include "conf.hh" #include "encodings.hh" #ifdef ENABLE_DBUS #include "dbus.hh" #endif #ifdef ENABLE_MAEMO #include #endif /** * \brief This is our application entry point. */ class Katoob : public Gtk::Main { public: Katoob(int argc, char *argv[]); ~Katoob(); int run(); void window(); void quit_cb(); #ifdef ENABLE_MAEMO int get_error(); bool ok(); #endif private: #ifdef ENABLE_MAEMO static void hw_event_handler(osso_hw_state_t *, gpointer); // static void exit_event_handler(gboolean, gpointer); #endif void parse(int argc, char *argv[]); void usage(); void help(); void version(); /** \brief This is our signal callback. */ static void signal_cb(int); /** \brief An instance of the Encodings class. */ Encodings encodings; /** \brief An instance of the Conf class. */ Conf conf; #ifdef ENABLE_DBUS /** \brief An instance of the DBus class (If compiled with DBus support). */ DBus dbus; #endif /* ENABLE_DBUS */ /** \brief our Windows are stored here */ static std::vector children; /** \brief the files we are passed are stored here by our Katoob::parse function. */ std::vector files; #ifdef ENABLE_MAEMO /** \brief the osso_context returned by osso_initialize() (Only if maemo support is enabled). */ osso_context_t* osso_context; #endif }; #endif /* __KATOOB_HH__ */ katoob-0.5.9.1/src/window.hh0000644000175000017500000001074610746617674012535 00000000000000/* * window.hh * This file is part of katoob * * Copyright (C) 2006, 2007 Mohammed Sameer * * 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. */ #ifndef __WINDOW_HH__ #define __WINDOW_HH__ #include #include #include #include #include "menubar.hh" #include "toolbar.hh" #include "mdi.hh" #include "statusbar.hh" #include "conf.hh" #include "encodings.hh" #ifdef ENABLE_EMULATOR #include "emulator.hh" #endif #ifdef ENABLE_MULTIPRESS #include "multipress.hh" #endif #if defined(ENABLE_EMULATOR) || defined(ENABLE_MULTIPRESS) #include "inputwindow.hh" #endif #ifdef ENABLE_MAEMO #include class Window : public Hildon::Window { #else class Window : public Gtk::Window { #endif public: Window(Conf&, Encodings&, std::vector&); ~Window(); // Our signals. sigc::signal signal_quit; // Our methods. #ifdef ENABLE_DBUS void open_files(std::vector&); #endif #ifdef ENABLE_SPELL void on_document_spell_enabled_cb(bool); #endif void autosave(); #ifdef ENABLE_MAEMO void signal_request_top_cb(); #endif private: // Our menubar and tolbar callbacks void signal_wrap_text_activate_cb(bool); void signal_line_numbers_activate_cb(bool); void signal_layout_activate_cb(int, int); void signal_encoding_activate_cb(int); void signal_preferences_activate_cb(); void signal_quit_activate_cb(); void signal_dictionary_changed_cb(std::string); void signal_search_activated_cb(std::string); #if defined(ENABLE_EMULATOR) || defined(ENABLE_MULTIPRESS) void signal_input_toggled_cb(bool); #endif #ifdef ENABLE_MAEMO void toggle_full_screen(); #endif // Signals for various gtk events. #ifdef ENABLE_MAEMO bool signal_window_state_event_cb(GdkEventWindowState *); #endif void signal_drag_data_received_cb(const Glib::RefPtr&, int, int, const Gtk::SelectionData&, guint, guint); bool signal_delete_event_cb (GdkEventAny*); // Signal callbacks for our Multipress. void signal_insert_key_cb(std::string&); void signal_invalid_key_cb(GdkEventKey *); // Our methods. void connect_toolbar_signals(); void connect_menubar_signals(); void connect_mdi_signals(); void set_title(const char * = NULL); void reset_gui(); // Signals for the Document class. void signal_document_encoding_changed_cb(int e); void signal_document_overwrite_toggled_cb(bool o) { statusbar.set_overwrite(o); } void signal_document_cursor_moved_cb(int c, int l) { statusbar.set_position(c, l); } void signal_document_file_changed_cb(std::string); void signal_document_readonly_cb(int, bool); void signal_document_can_redo_cb(bool); void signal_document_can_undo_cb(bool); void signal_document_modified_cb(int, bool); void signal_document_title_changed_cb(std::string, int); void signal_document_wrap_text_cb(bool); void signal_document_line_numbers_cb(bool); #ifdef ENABLE_SPELL void signal_document_dictionary_changed_cb(std::string d) { toolbar.set_dictionary(d); } #endif #if defined(ENABLE_EMULATOR) || defined(ENABLE_MULTIPRESS) void signal_input_window_dialog_closed_cb(); #endif void on_doc_activated(int); void on_reset_gui(int); void on_document_added_cb(bool, bool, std::string); void on_document_removed_cb(int); // Our members. #ifdef ENABLE_EMULATOR Emulator _emulator; #endif #ifdef ENABLE_MULTIPRESS Multipress _multipress; #endif Conf& _conf; Encodings& _encodings; MenuBar menubar; Toolbar toolbar; MDI mdi; Statusbar statusbar; Gtk::VBox box; #if defined(ENABLE_EMULATOR) || defined(ENABLE_MULTIPRESS) InputWindow input_window; #endif #ifdef ENABLE_SPELL sigc::connection signal_auto_spell_activate_conn; #endif sigc::connection signal_wrap_text_activate_conn; sigc::connection signal_line_numbers_activate_conn; #ifdef ENABLE_MAEMO bool is_fullscreen; #endif }; #endif /* __WINDOW_HH__ */ katoob-0.5.9.1/src/document.hh0000644000175000017500000002305710746617674013043 00000000000000/* * document.hh * This file is part of katoob * * Copyright (C) 2006, 2007 Mohammed Sameer * * 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. */ #ifndef __DOCUMENT_HH__ #define __DOCUMENT_HH__ #include #include #include #include #include "conf.hh" #include "encodings.hh" #include "label.hh" #include "undoredo.hh" #ifdef ENABLE_SPELL #include "spell.hh" #endif #ifdef ENABLE_HIGHLIGHT #include "sourceview.hh" #else #include "textview.hh" #endif class Document : public Gtk::ScrolledWindow { #ifdef ENABLE_MAEMO friend void __tap_and_hold(GtkWidget *, gpointer); #endif public: Document(Conf&, Encodings&, int); Document(Conf&, Encodings&, int, std::string&); Document(Conf&, Encodings&, int, int); ~Document(); Label& get_label() { return _label; } bool ok() { return _ok; } bool has_file() { return _file.size() == 0 ? false : true; } bool has_selection(); int get_line_count(); void autosave(); bool get_readonly() { return !_text_view.get_editable(); }; bool get_modified() { return _text_view.get_buffer()->get_modified(); } bool save(); bool save(std::string&, int, bool); int get_encoding() { return _encoding; } bool set_encoding(int, bool, std::string&); #ifdef ENABLE_HIGHLIGHT void set_highlight(const std::string&); #endif std::string get_title() { return _label.get_text(); } void cut() { _text_view.get_buffer()->cut_clipboard(Gtk::Clipboard::get(), !_readonly); } void copy() { _text_view.get_buffer()->copy_clipboard(Gtk::Clipboard::get()); } void paste() { _text_view.get_buffer()->paste_clipboard(Gtk::Clipboard::get(), !_readonly); } void erase() { _text_view.get_buffer()->erase_selection(true, !_readonly); } std::string& get_file() { return _file; } void scroll_to(int); void get_lines(std::vector&, int = -1, int = -1); void get_lines(std::vector&, int = -1, int = -1); void get_selection(std::vector&); void select_all(); void set_wrap_text(bool); void line_numbers(bool); void emit_signals(); void insert(const std::string&); void grab_focus(); bool has_focus(); bool revert(std::string&); /* Our signal */ sigc::signal signal_modified_set; sigc::signal signal_can_undo; sigc::signal signal_can_redo; sigc::signal signal_readonly_set; sigc::signal signal_file_changed; sigc::signal signal_cursor_moved; sigc::signal signal_encoding_changed; sigc::signal signal_overwrite_toggled; sigc::signal signal_title_changed; sigc::signal signal_wrap_text_set; sigc::signal signal_line_numbers_set; sigc::signal signal_text_view_request_file_open; #ifdef ENABLE_HIGHLIGHT sigc::signal signal_highlight_set; #endif /* ENABLE_HIGHLIGHT */ sigc::signal signal_dict_lookup_request; #ifdef ENABLE_SPELL sigc::signal signal_auto_spell_set; sigc::signal signal_dictionary_changed; #endif void undo(); void redo(); // Our search interface. bool get_search_match_case() { return _search_match_case; } bool get_search_wrap() { return _search_wrap; } bool get_search_backwards() { return _search_backwards; } bool get_search_whole_word() { return _search_whole_word; } bool get_search_from_beginning() { return _search_from_beginning; } std::string& get_search_text() { return _search_text;} std::string& get_replace_text() { return _replace_text; } void set_search_match_case(bool st) { _search_match_case = st; } void set_search_wrap(bool st) { _search_wrap = st; } void set_search_backwards(bool st) { _search_backwards = st; } void set_search_whole_word(bool st) { _search_whole_word = st; } void set_search_from_beginning(bool st) { _search_from_beginning = st; } // TODO: Take references ? void set_search_text(std::string str) { _search_text = str; } void set_replace_text(std::string str) { _replace_text = str; } bool search(); bool search_next(); void replace(); #ifdef ENABLE_SPELL void set_auto_spell(bool); // Interaction with the spell dialog. void spell_dialog_mode(); bool spell_dialog_helper_has_misspelled(std::string& word); void spell_dialog_helper_get_suggestions(std::string&, std::vector&); void spell_dialog_helper_add_to_personal(std::string&); void spell_dialog_helper_add_to_session(std::string&); bool spell_dialog_helper_check(std::string&); void spell_dialog_helper_replace(std::string&, std::string&); void spell_dialog_helper_recheck(); bool set_dictionary(std::string&, std::string&); std::string get_dictionary() { return spell_dict; } #endif bool is_empty() { return (_text_view.get_buffer()->begin().get_offset() == _text_view.get_buffer()->end().get_offset()); } void reset_gui(); std::string get_text() { return _text_view.get_buffer()->get_text(); } void set_text(std::string&); private: Label _label; friend void _on_move_cursor (GtkTextView *, GtkMovementStep, gint, gboolean, gpointer); friend void _on_toggle_overwrite(GtkTextView *, gpointer user_data); void signal_text_view_request_file_open_cb(std::string); #ifdef ENABLE_HIGHLIGHT SourceView _text_view; #else TextView _text_view; #endif Gtk::TextWindowType numbers_right; #ifndef ENABLE_HIGHLIGHT Gtk::TextWindowType numbers_left; #endif void get_lines(Gtk::TextIter&, Gtk::TextIter&, std::vector&); void get_lines(Gtk::TextIter&, Gtk::TextIter&, std::vector&); void set_readonly(bool); void set_modified(bool); void create_ui(); bool create(const std::string& = ""); void set_file(std::string&); void set_tab_width(); std::string _tmp_file; int _tmp_file_fd; std::string _file; Conf& _conf; Encodings& _encodings; bool _ok; bool _modified; int _encoding; bool _readonly; bool _line_numbers; /* Undo/Redo */ bool can_undo() { return _undo.size() == 0 ? false : true; } bool can_redo() { return _redo.size() == 0 ? false : true; } void undo(KatoobDoType, const std::string&, int); void redo(KatoobDoElem *); void undo(KatoobDoElem *); bool do_undo; void connect_signals(); int calculate_column(Gtk::TextIter&); void block_do(); void unblock_do(); void clear_do(); void clear_do(std::vector&); // Our search members and methods. bool gtk_search(); bool nongtk_search(); bool is_whole_word(Gtk::TextIter& s, Gtk::TextIter& e) { return (s.starts_word() && e.ends_word()); } void highlight(Gtk::TextIter&, Gtk::TextIter&); bool expose_event_cb(GdkEventExpose *); void paint_line_numbers(Glib::RefPtr&, GdkEventExpose *); // void get_line_bounds(const Gtk::TextIter&, Gtk::TextIter&, Gtk::TextIter&); #ifdef ENABLE_SPELL Spell spell; bool do_spell; std::vector lines; sigc::connection spell_worker_conn; Gtk::TextIter _spell_start, _spell_end; int __spell_start, __spell_end; Glib::RefPtr _spell_mark; bool spell_checker_worker(); bool spell_checker_has_lines(); void spell_checker_get_line(Gtk::TextIter&); void spell_checker_check(const Gtk::TextIter&); bool spell_checker_check_word(const Gtk::TextIter&, std::string&, int&, int&, bool mark=true); bool spell_checker_get_next(Gtk::TextIter&, Gtk::TextIter&, std::string&, int&, int&); void spell_checker_connect_worker(); void spell_checker_on_insert(const Gtk::TextIter&, int); void spell_checker_on_erase(const Gtk::TextIter&, const Gtk::TextIter&); Glib::RefPtr misspelled_tag; // Glib::RefPtr spelled_tag; void spell_menu_item_activate_cb(std::string, std::string, Gtk::TextIter&, Gtk::TextIter&); void spell_menu_add_to_dictionary_cb(std::string, Gtk::TextIter&, Gtk::TextIter&); std::string get_next_misspelled(); std::string spell_dict; #endif void dict_menu_item_activated(std::string&); bool _search_wrap; bool _search_backwards; bool _search_whole_word; bool _search_match_case; bool _search_from_beginning; std::string _search_text; std::string _replace_text; std::vector _undo; std::vector _redo; /* Our connections */ sigc::connection insert_conn; sigc::connection erase_conn; // sigc::connection expose_event_conn; unsigned long __on_move_cursor; unsigned long __on_toggle_overwrite; bool _overwrite; /* Signal handlers */ void on_insert(const Gtk::TextBuffer::iterator&, const Glib::ustring&, int); void on_erase(const Gtk::TextBuffer::iterator&, const Gtk::TextBuffer::iterator&); void on_move_cursor(); void on_toggle_overwrite(); void on_mark_set_cb(const Gtk::TextBuffer::iterator&, const Glib::RefPtr&); #ifdef ENABLE_HIGHLIGHT std::string _highlight; #endif protected: void on_populate_popup_cb(Gtk::Menu *); #ifdef ENABLE_MAEMO void _tap_and_hold(); #endif }; #endif /* __DOCUMENT_HH__ */ katoob-0.5.9.1/src/conf.hh0000644000175000017500000001052010746617674012141 00000000000000/* * conf.hh * This file is part of katoob * * Copyright (C) 2006, 2007 Mohammed Sameer * * 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. */ #ifndef __CONFIG_HH__ #define __CONFIG_HH__ #include #include #include #include "encodings.hh" class Conf { public: Conf(Encodings&); ~Conf(); const std::vector& get_recent() { return recent; }; void recent_prepend(const std::string& file) { list_prepend(recent, file, get("recentno", 10)); } const std::vector& get_exec_cmd() { return exec_cmd; }; void exec_cmd_prepend(const std::string& file) { list_prepend(exec_cmd, file, get("exec_cmd_size", 10)); } const std::vector& get_locations() { return locations; }; void locations_prepend(const std::string& file) { list_prepend(locations, file, get("locations_size", 10)); } void set(const char *key, int val) { _set(config, key, val); } void set(const char *key, const char *val) { _set(config, key, val); } void print_set(const char *key, const char *val) { _set(print, key, val); } void print_set(const char *key, int val) { _set(print, key, val); } void print_set(const char *key, double val) { _set(print, key, val); } int get(const char *key, int val) { return _get(config, key, val); } bool get(const char *key, bool val) { return _get(config, key, val); } std::string get(const char *key, std::string& val) { return _get(config, key, val); } std::string get(const char *key, const char *val) { std::string v(val); return _get(config, key, v); } int print_get(const char *key, int val) { return _get(print, key, val); } double print_get(const char *key, double val) { return _get(print, key, val); } bool print_get(const char *key, bool val) { return _get(print, key, val); } std::string print_get(const char *key, std::string& val) { return _get(print, key, val); } std::string print_get(const char *key, const char *val) { std::string v(val); return _get(print, key, v); } const std::string& open_dir(); const std::string& save_dir(); void open_dir(const std::string&); void save_dir(const std::string&); void defaults(Encodings&); std::string get_version(); void adjust_lists(); bool ok() { return _ok; } private: Conf(const Conf&); Conf& operator=(const Conf&); bool prepare_dir(); void load_conf(); void load_list(); void save_conf(); void save_list(); bool load_conf(const char *, std::map&); void load_list(const char *, std::vector&); void save_conf(const char *, std::map&); void save_list(const char *, std::vector&); void _set(std::map& m, const char *key, bool val) { m[key] = val ? "1" : "0"; } void _set(std::map&, const char *, int); void _set(std::map&, const char *, double); void _set(std::map& m, const char *key, const char *val) { m[key] = val; } int _get(std::map&, const char *, int); double _get(std::map&, const char *, double); bool _get(std::map&, const char *, bool); std::string _get(std::map&, const char *, std::string&); void list_prepend(std::vector&, const std::string&, unsigned); std::string _open_dir; std::string _save_dir; std::vector recent; std::vector exec_cmd; std::vector locations; std::map config; std::map print; std::string conf_dir; bool _ok; }; #endif /* __CONFIG_HH__ */ katoob-0.5.9.1/src/statusbar.hh0000644000175000017500000000351610746617674013233 00000000000000/* * statusbar.hh * This file is part of katoob * * Copyright (C) 2006, 2007 Mohammed Sameer * * 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. */ #ifndef __STATUSBAR_HH__ #define __STATUSBAR_HH__ #include #include #include #include #if defined(ENABLE_EMULATOR) || defined(ENABLE_MULTIPRESS) #include #endif #include "conf.hh" class Statusbar : public Gtk::HBox { public: Statusbar(Conf&); ~Statusbar(); void set_encoding(std::string); void set_overwrite(bool); void set_position(int, int); void set_modified(bool); void reset_gui(); void show(bool); #if defined(ENABLE_EMULATOR) || defined(ENABLE_MULTIPRESS) bool get_input_status(); bool set_input_status(bool); void activate_input(bool); sigc::signal signal_input_toggled; #endif private: #if defined(ENABLE_EMULATOR) || defined(ENABLE_MULTIPRESS) void signal_input_toggled_cb(); #endif Conf& _conf; Gtk::Statusbar sbar; Gtk::Image red, green; Gtk::Label enc, tips, overwrite; #if defined(ENABLE_EMULATOR) || defined(ENABLE_MULTIPRESS) Gtk::ToggleButton input; #endif }; #endif /* __STATUSBAR_HH__ */ katoob-0.5.9.1/src/menubar.hh0000644000175000017500000002217710746617674012660 00000000000000/* * menubar.hh * This file is part of katoob * * Copyright (C) 2006, 2007 Mohammed Sameer * * 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. */ #ifndef __MENUBAR_HH__ #define __MENUBAR_HH__ #ifdef ENABLE_MAEMO #include #else #include #endif #include "conf.hh" #include "encodings.hh" #include "import.hh" #include "export.hh" class DocItem { public: DocItem(std::string& str, bool ro, bool m) : _label(str), _ro(ro), _m(m) {} void set_readonly(bool ro) { _ro = ro; } bool get_readonly() { return _ro; } void set_modified(bool m) { _m = m; } bool get_modified() { return _m; } void set_label(std::string& str) { _label = str; } const std::string& get_label() { return _label; } private: std::string _label; bool _ro, _m; }; struct ClosedDocItem { int n; std::string title; }; #ifdef ENABLE_MAEMO class MenuBar : public Gtk::Menu { #else class MenuBar : public Gtk::MenuBar { #endif public: MenuBar(Conf&, Encodings& #ifdef ENABLE_EMULATOR , std::vector& #endif #ifdef ENABLE_MULTIPRESS , std::vector& #endif ); ~MenuBar(); void create_recent(); void set_encoding(unsigned); void enable_undo(bool); void enable_redo(bool); void enable_wrap_text(bool); void enable_line_numbers(bool); void enable_auto_spell(bool); void set_read_only(int, bool); void reset_gui(bool); #ifdef ENABLE_HIGHLIGHT void set_highlight(std::string); #endif sigc::signal signal_create_activate; sigc::signal signal_open_activate; sigc::signal signal_open_location_activate; sigc::signal signal_save_activate; sigc::signal signal_save_as_activate; sigc::signal signal_save_copy_activate; sigc::signal signal_revert_activate; #ifdef ENABLE_PRINT sigc::signal signal_print_activate; sigc::signal signal_print_preview_activate; sigc::signal signal_page_setup_activate; #endif sigc::signal signal_close_activate; sigc::signal signal_quit_activate; sigc::signal signal_undo_activate; sigc::signal signal_redo_activate; sigc::signal signal_cut_activate; sigc::signal signal_copy_activate; sigc::signal signal_paste_activate; sigc::signal signal_erase_activate; sigc::signal signal_select_all_activate; sigc::signal signal_insert_file_activate; sigc::signal signal_preferences_activate; sigc::signal signal_find_activate; sigc::signal signal_find_next_activate; sigc::signal signal_replace_activate; sigc::signal signal_goto_line_activate; sigc::signal signal_statusbar_activate; sigc::signal signal_wrap_text_activate; sigc::signal signal_line_numbers_activate; sigc::signal signal_toolbar_activate; sigc::signal signal_extended_toolbar_activate; sigc::signal signal_text_activate; sigc::signal signal_icons_activate; sigc::signal signal_both_activate; sigc::signal signal_beside_activate; sigc::signal signal_execute_activate; #ifdef ENABLE_SPELL sigc::signal signal_spell_activate; sigc::signal signal_auto_spell_activate; #endif sigc::signal signal_save_all_activate; sigc::signal signal_close_all_activate; sigc::signal signal_about_activate; sigc::signal signal_recent_activate; sigc::signal signal_import_activate; sigc::signal signal_export_activate; sigc::signal signal_lqyout_activate; sigc::signal signal_encoding_activate; sigc::signal signal_document_activate; sigc::signal signal_closed_document_activate; #ifdef ENABLE_HIGHLIGHT sigc::signal signal_highlighter_activate; #endif #if defined(ENABLE_EMULATOR) || defined(ENABLE_MULTIPRESS) sigc::signal signal_layout_activate; #endif void document_add(std::string&, bool, bool); void document_remove(int); void document_set_active(int); void document_set_modified(int, bool); void document_set_readonly(int, bool); void document_set_label(int, std::string&); void signal_closed_document_erased_cb(); void signal_closed_document_added(std::string); void reset_gui(); Gtk::Menu get_menu(); private: void file(Conf&); void edit(Conf&); void search(Conf&); void view(Conf&, Encodings&); void tools(Conf& #ifdef ENABLE_EMULATOR , std::vector& #endif #ifdef ENABLE_MULTIPRESS , std::vector& #endif ); void documents(Conf&); void help(Conf&); void recent(Conf&); void encodings(Conf&); #if defined(ENABLE_EMULATOR) || defined(ENABLE_MULTIPRESS) void build_submenu(Gtk::Menu *, std::vector&, Gtk::RadioButtonGroup&, int); #endif #ifdef ENABLE_SPELL void signal_auto_spell_activate_cb(); #endif void signal_toolbar_activate_cb(); void signal_extended_toolbar_activate_cb(); void signal_statusbar_activate_cb(); void signal_line_numbers_activate_cb(); void signal_wrap_text_activate_cb(); void signal_icons_activate_cb(); void signal_text_activate_cb(); void signal_beside_activate_cb(); void signal_both_activate_cb(); void signal_recent_activate_cb(std::string&); #if defined(ENABLE_EMULATOR) || defined(ENABLE_MULTIPRESS) void signal_layout_activate_cb(int, int); #endif void signal_encoding_activate_cb(unsigned); void signal_document_activate_cb(int); void signal_closed_document_activate_cb(int); void document_set_modified(Gtk::MenuItem&, bool); void document_set_readonly(Gtk::MenuItem&, bool); void document_set_normal(Gtk::MenuItem&); void documents_menu_clear(); void documents_menu_build(); void closed_documents_rebuild(); void signal_import_activate_cb(Import); void signal_export_activate_cb(Export); #ifdef ENABLE_HIGHLIGHT void create_highlighters(); void signal_highlighter_activate_cb(std::string); #endif /* ENABLE_HIGHLIGHT */ Gtk::Menu *menu(char *, Gtk::Menu * = NULL); Gtk::MenuItem *item(Gtk::Menu *, const Gtk::StockID&, guint, Gdk::ModifierType); Gtk::MenuItem *item(Gtk::Menu *, const Gtk::StockID&); Gtk::MenuItem *item(Gtk::Menu *, const std::string&); Gtk::MenuItem *item(Gtk::Menu *, const std::string&, guint, Gdk::ModifierType); Gtk::MenuItem *check_item(Gtk::Menu *, const std::string&); Gtk::MenuItem *radio_item(Gtk::Menu *, Gtk::RadioButtonGroup&, const std::string&); void separator(Gtk::Menu *); Gtk::Menu *file_menu, *edit_menu, *search_menu, *view_menu, *tools_menu, *documents_menu, *help_menu, *opened_menu, *closed_menu; /* File */ Gtk::Menu *recent_menu, *_import_menu, *_export_menu, *toolbars_menu, *_encoding_menu; #ifdef ENABLE_EMULATOR Gtk::Menu *_emulator_menu; #endif #if defined(ENABLE_EMULATOR) || defined(ENABLE_MULTIPRESS) Gtk::Menu *_input_menu; #endif #ifdef ENABLE_MULTIPRESS Gtk::Menu *_multipress_menu; #endif #ifdef ENABLE_HIGHLIGHT Gtk::Menu *highlight; #endif Gtk::MenuItem *recent_menu_item; Gtk::MenuItem *_create; Gtk::MenuItem *_open; Gtk::MenuItem *_open_location; Gtk::MenuItem *_save; Gtk::MenuItem *_save_as; Gtk::MenuItem *_save_copy; Gtk::MenuItem *_revert; #ifdef ENABLE_PRINT Gtk::MenuItem *_print; Gtk::MenuItem *_print_preview; Gtk::MenuItem *_page_setup; #endif Gtk::MenuItem *_close; Gtk::MenuItem *_quit; /* Edit */ Gtk::MenuItem *_undo; Gtk::MenuItem *_redo; Gtk::MenuItem *_cut; Gtk::MenuItem *_copy; Gtk::MenuItem *_paste; Gtk::MenuItem *_erase; Gtk::MenuItem *_select_all; Gtk::MenuItem *_preferences; Gtk::MenuItem *_insert_file; /* Search */ Gtk::MenuItem *_find; Gtk::MenuItem *_find_next; Gtk::MenuItem *_replace; Gtk::MenuItem *_goto_line; /* View */ Gtk::MenuItem *_statusbar; Gtk::MenuItem *_wrap_text; Gtk::MenuItem *_line_numbers; Gtk::MenuItem *_toolbar; Gtk::MenuItem *_extended_toolbar; Gtk::MenuItem *_text; Gtk::MenuItem *_icons; Gtk::MenuItem *_both; Gtk::MenuItem *_beside; /* Tools */ Gtk::MenuItem *_execute; #ifdef ENABLE_SPELL Gtk::MenuItem *_spell; Gtk::MenuItem *_auto_spell; #endif /* Documents */ Gtk::MenuItem *_save_all; Gtk::MenuItem *_close_all; /* Help */ Gtk::MenuItem *_about; bool _ignore_encoding_changed_signal_hack; bool _ignore_document_clicked_signal_hack; bool _ignore_highlighting_changed_signal_hack; std::vector encoding_menu_items; Conf& _conf; std::vector _documents; std::vector _closed_documents; int _active; }; #endif /* __MENUBAR_HH__ */ katoob-0.5.9.1/src/toolbar.hh0000644000175000017500000000725110746617674012665 00000000000000/* * toolbar.hh * This file is part of katoob * * Copyright (C) 2006 Mohammed Sameer * * 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. */ #ifndef __TOOLBAR_HH__ #define __TOOLBAR_HH__ #include #include #include #include #include #include #include #include "conf.hh" #ifdef ENABLE_SPELL #include "spellmenu.hh" #endif class Toolbar { public: Toolbar(Conf&); ~Toolbar(); Gtk::Toolbar& get_main(); Gtk::VBox& get_extended(); void show_main(bool); void show_extended(bool); // Our methods. void enable_undo(bool); void enable_redo(bool); void enable_dictionary(bool); void set_read_only(bool); void set_text(); void set_icons(); void set_both(); void set_beside(); #ifdef ENABLE_SPELL void set_dictionary(std::string&); std::string get_dictionary(); #endif void reset_gui(); void reset_gui(bool); // Our signals. sigc::signal signal_create_clicked; sigc::signal signal_open_clicked; sigc::signal signal_save_clicked; #ifdef ENABLE_PRINT sigc::signal signal_print_clicked; #endif sigc::signal signal_close_clicked; sigc::signal signal_undo_clicked; sigc::signal signal_redo_clicked; sigc::signal signal_cut_clicked; sigc::signal signal_copy_clicked; sigc::signal signal_paste_clicked; sigc::signal signal_erase_clicked; #ifdef ENABLE_MAEMO sigc::signal signal_full_screen_clicked; #endif sigc::signal signal_go_to_activated; sigc::signal signal_search_activated; #ifdef ENABLE_SPELL sigc::signal signal_spell_clicked; sigc::signal signal_dictionary_changed; #endif sigc::signal signal_extra_button_clicked; private: void create_main(); void create_extended(); void search_activate_cb(); void go_to_activate_cb(); void create_extra_buttons(); void create_extra_button(std::string&); void extra_button_clicked(std::string str) { signal_extra_button_clicked.emit(str); } #ifdef ENABLE_SPELL void dictionary_changed_cb() { signal_dictionary_changed.emit(_dictionary.get_active_text()); } sigc::connection signal_dictionary_changed_conn; #endif Conf& _conf; Gtk::Toolbar _main; Gtk::VBox _extended; Gtk::Toolbar _extra_buttons; Gtk::SeparatorToolItem s1, s2, s3; Gtk::ToolButton _create; Gtk::ToolButton _open; Gtk::ToolButton _save; #ifdef ENABLE_PRINT Gtk::ToolButton _print; #endif Gtk::ToolButton _close; Gtk::ToolButton _undo; Gtk::ToolButton _redo; Gtk::ToolButton _cut; Gtk::ToolButton _copy; Gtk::ToolButton _paste; Gtk::ToolButton _erase; #ifdef ENABLE_MAEMO Gtk::ToolButton _full_screen; #endif /* Extended */ Gtk::HBox box; Gtk::HSeparator sep; Gtk::Label _go_to_l, _search_l; #ifdef ENABLE_SPELL Gtk::Label _dictionary_l; Gtk::Button _spell; SpellMenu _dictionary; #endif Gtk::Entry _go_to, _search; }; #endif /* __TOOLBAR_HH__ */ katoob-0.5.9.1/src/dialogs.hh0000644000175000017500000000311710746617674012642 00000000000000/* * dialogs.hh * This file is part of katoob * * Copyright (C) 2006, 2007 Mohammed Sameer * * 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. */ #ifndef __DIALOHS_HH__ #define __DIALOHS_HH__ #include #include #include #include bool katoob_simple_question(const std::string&); void katoob_error(const std::string&); void katoob_info(const std::string&); bool katoob_big_info(const std::string&, bool = false); int katoob_question(const std::string&); int katoob_goto_dialog(); class ActivityMeter : public Glib::Object { public: ActivityMeter(); // ~ActivityMeter(); void run(); void quit(); sigc::signal signal_cancel_clicked; private: void signal_response_cb(int); sigc::connection conn; Gtk::ProgressBar bar; Gtk::Dialog dialog; Glib::RefPtr loop; }; Glib::RefPtr katoob_activity(); #endif /* __DIALOHS_HH__ */ katoob-0.5.9.1/src/encodings.hh0000644000175000017500000000576310746617674013202 00000000000000/* * encodings.hh * This file is part of katoob * * Copyright (C) 2006 Mohammed Sameer * * 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. */ #ifndef __ENCODINGS_HH__ #define __ENCODINGS_HH__ #include #include #include #include /** * \brief This structure represents an Encoding. */ struct Encoding { /** \brief The friendly name of the encoding (ex: Arabic (Windows). */ std::string name; /** \brief The actual name of the encoding (ex: WINDOWS-1256). */ std::string encoding; }; /** * \brief This structure represents a language. */ struct Language { /** \brief The name of the language (ex: Arabic). */ std::string name; /** \brief The encodings this language can be encoded in. */ std::vector children; }; /** * \brief This class contains all of the encoding and languages we know and * methods to convert between them. * * Each Encoding has a friendly Encoding::name to be shown to the user and another * Encoding::encoding that is known by the encoding conversion methods. * Each Language has a also a "friendly" Encoding::name and all the encodings * (Language::children) this Language can be encoded in. */ class Encodings { public: Encodings(); ~Encodings(); int languages(); int languages(int); std::string& language(int); std::string& name(unsigned, unsigned); int get_by_charset(const std::string&); int get(const std::string&); const std::string& get_charset(unsigned); const std::string& name(unsigned); int default_save(); int default_open(); int size(); const std::string& at(unsigned); bool utf8(const Glib::ustring&); int utf8(); int convert_from(const Glib::ustring&, std::string&, int); int convert_to(const Glib::ustring&, std::string&, int); private: bool convert(const Glib::ustring&, std::string&, unsigned int, unsigned int, std::string&); /** \brief a vector holding all the encodings (Encoding) we know. */ std::vector _encodings; /** \brief a vector holding all the languages (Language) we know. */ std::vector _languages; /** \brief our default save encoding. */ int _default_save; /** \brief our default open encoding. */ int _default_open; protected: friend class Conf; void default_save(unsigned); void default_open(unsigned); }; #endif /* __ENCODINGS_HH__ */ katoob-0.5.9.1/src/mdi.hh0000644000175000017500000001403210746617674011767 00000000000000/* * mdi.hh * This file is part of katoob * * Copyright (C) 2006, 2007 Mohammed Sameer * * 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. */ #ifndef __MDI_HH__ #define __MDI_HH__ #include #include #include "replacedialog.hh" #include "document.hh" #include "encodings.hh" #include "import.hh" #include "export.hh" #ifdef ENABLE_PRINT #include "pagesetup.hh" #include "printsettings.hh" #endif class MDI : public Gtk::Notebook { public: MDI(Conf&, Encodings&); ~MDI(); // Our methods. Document *create_document(std::string&, int = -1); Document *create_document(); Document *get_active(); bool close_all(); bool close(int n=-1); /* Signal callbacks. */ void create_cb() { create_document(); } void open_cb(); void open_location_cb(); void save_cb(); void save_as_cb(); void save_copy_cb(); void revert_cb(); #ifdef ENABLE_PRINT void print_cb(); void page_setup_cb(); void print_preview_cb(); #endif void close_cb(); void recent_cb(std::string&); void undo_cb(); void redo_cb(); void cut_cb(); void copy_cb(); void paste_cb(); void erase_cb(); void select_all_cb(); void insert_file_cb(); void set_wrap_text(bool); void set_line_numbers(bool); void save_all_cb(); void close_all_cb(); #ifdef ENABLE_SPELL void set_auto_spell(bool); void do_spell(); bool set_dictionary(std::string&, std::string&); #endif void goto_line_cb(); void goto_line_cb2(int); void find(std::string&); void find_cb(); void find_next_cb(); void replace_cb(); void execute_cb(); void signal_switch_page_cb(GtkNotebookPage*, guint); bool set_encoding(int, int&); void activate(int); void import_cb(Import im); void export_cb(Export ex); /* Our signals. */ sigc::signal signal_recent_regenerate; sigc::signal signal_reset_gui; // Signals we get from the Document class. sigc::signal signal_document_modified; sigc::signal signal_document_can_undo; sigc::signal signal_document_can_redo; sigc::signal signal_document_readonly; sigc::signal signal_document_file_changed; sigc::signal signal_document_cursor_moved; sigc::signal signal_document_encoding_changed; sigc::signal signal_document_overwrite_toggled; sigc::signal signal_document_title_changed; sigc::signal signal_document_wrap_text; sigc::signal signal_document_line_numbers; #ifdef ENABLE_SPELL sigc::signal signal_document_dictionary_changed; #endif #ifdef ENABLE_HIGHLIGHT sigc::signal signal_document_highlight; #endif sigc::signal signal_doc_activated; sigc::signal signal_document_added; sigc::signal signal_document_removed; #ifdef ENABLE_SPELL sigc::signal signal_document_spell_enabled; #endif sigc::signal signal_closed_document_erased; sigc::signalsignal_closed_document_added; void closed_document_activated_cb(int); void reset_gui(); void signal_extra_button_clicked_cb(std::string); #ifdef ENABLE_HIGHLIGHT void set_highlight(std::string); #endif void scan_temp(); bool autosave(); private: void connect_signals(Document *); bool replace_dialog_signal_find_cb(ReplaceDialog *); void replace_dialog_signal_replace_cb(ReplaceDialog *); void replace_dialog_signal_replace_all_cb(ReplaceDialog *); // Signal handlers. void signal_document_modified_cb(bool); void signal_document_can_undo_cb(bool b) { signal_document_can_undo.emit(b); } void signal_document_can_redo_cb(bool b) { signal_document_can_redo.emit(b); } void signal_document_readonly_cb(bool); void signal_document_file_changed_cb(std::string s) { signal_document_file_changed.emit(s); } void signal_document_cursor_moved_cb(int c, int l) { signal_document_cursor_moved.emit(c, l); } void signal_document_encoding_changed_cb(int e) { signal_document_encoding_changed.emit(e); } void signal_document_overwrite_toggled_cb(bool b) { signal_document_overwrite_toggled.emit(b); } void signal_document_title_changed_cb(std::string); void signal_transfer_complete_cb(bool, const std::string&, const std::string, int, bool); void signal_dict_transfer_complete_cb(bool, const std::string&, std::string); #ifdef ENABLE_HIGHLIGHT void signal_document_highlight_cb(std::string x) { signal_document_highlight.emit(x); } #endif #ifdef ENABLE_SPELL void signal_document_spell_enabled_cb(bool s) { signal_document_spell_enabled.emit(s); } void signal_dictionary_changed_cb(std::string d) { signal_document_dictionary_changed.emit(d); } #endif void signal_document_wrap_text_cb(bool w) { signal_document_wrap_text.emit(w); } void signal_document_line_numbers_cb(bool ln) { signal_document_line_numbers.emit(ln); } void signal_document_label_close_clicked_cb(Document *); void signal_document_dict_lookup_cb(std::string); void signal_text_view_request_file_open_cb(std::string); void add_document(Document *, bool signals = true); bool save(); bool save(bool); bool save(Document *); std::vector children; std::vector closed_children; Conf& _conf; Encodings& _encodings; #ifdef ENABLE_PRINT Glib::RefPtr page_setup; Glib::RefPtr settings; #endif }; #endif /* __MDI_HH__ */ katoob-0.5.9.1/src/utils.hh0000644000175000017500000000564210746617674012365 00000000000000/* * utils.hh * This file is part of katoob * * Copyright (C) 2006, 2007 Mohammed Sameer * * 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. */ #ifndef __UTILS_HH__ #define __UTILS_HH__ #include #include #include #include #include #include "conf.hh" namespace Utils { typedef enum { KATOOB_COLOR_READONLY, KATOOB_COLOR_MODIFIED, KATOOB_COLOR_NORMAL } KatoobColor; std::string get_data_dir(); std::string get_dir_separator(); std::string get_data_path(const char *); std::string prepend_home_dir(char *); bool inline is_lam_alef(Glib::ustring&, gunichar); bool is_lam_alef(const Glib::ustring&, Glib::ustring&); bool katoob_file_is_writable(std::string&); void katoob_set_color(Conf&, Gtk::Label&, KatoobColor); void katoob_set_color(Conf&, Gtk::Label *, KatoobColor); bool katoob_write(Conf&, std::string&, std::string&, std::string&); bool katoob_write(const char *, const char *, unsigned, std::string&); bool katoob_read(const std::string&, std::string&); void katoob_set_perms(const char *, const struct stat&); bool file_copy(const char *, const char *, std::string&); std::string substitute(const std::string&, const int); std::string substitute(const std::string&, const std::string&); std::string substitute(const std::string&, const std::string&, const std::string&); std::string substitute(const std::string& orig, const int, const int); std::string substitute(const std::string&, const int, const int, const std::string&); std::string substitute(const std::string&, const std::string&, const int); std::string substitute(const std::string&, const std::string&, const int, const std::string&, const std::string&); std::string get_recovery_dir(); std::string get_conf_dir(); bool create_recovery_file(std::string&, int&); bool get_recovery_files(std::map&, std::string&); std::string get_recovery_template(std::string = "XXXXXX"); std::string katoob_get_default_font(); std::vector split(const std::string&, const char); bool lock_file(int, std::string&); bool unlock_file(int, std::string&); bool file_is_locked(int fd); bool file_is_locked(const std::string&); }; #endif /* __UTILS_HH__ */ katoob-0.5.9.1/src/textbuffer.hh0000644000175000017500000000373410746617674013403 00000000000000/* * textbuffer.hh * This file is part of katoob * * Copyright (C) 2006, 2007 Mohammed Sameer * * 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. */ #ifndef __TEXTBUFFER_HH__ #define __TEXTBUFFER_HH__ #include #ifdef ENABLE_HIGHLIGHT #include #include "sourcemanager.hh" #endif #include "conf.hh" class TextBuffer : public Gtk::TextBuffer { public: TextBuffer(Conf&); ~TextBuffer(); static Glib::RefPtr create(Conf& conf) { return Glib::RefPtr( new TextBuffer(conf) ); } int get_mark_insert_position() { return _insert->get_iter().get_offset(); } int get_mark_insert_line() { return _insert->get_iter().get_line(); } int get_erase_line() { return _erase; } std::string& get_deleted() { return _deleted; } void clear_deleted() { _deleted.clear(); } #ifdef ENABLE_HIGHLIGHT void set_highlight(bool); void set_language(GtkSourceLanguage *); #endif protected: void on_insert (const Gtk::TextBuffer::iterator&, const Glib::ustring&, int); Glib::RefPtr _insert; void on_erase(const Gtk::TextBuffer::iterator&, const Gtk::TextBuffer::iterator&); private: #ifndef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED sigc::connection on_insert_conn; #endif std::string _deleted; int _erase; Conf& _conf; }; #endif /* __TEXTBUFFER_HH__ */ katoob-0.5.9.1/src/filedialog.hh0000644000175000017500000000420710746617674013320 00000000000000/* * filedialog.hh * This file is part of katoob * * Copyright (C) 2006, 2007 Mohammed Sameer * * 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. */ #ifndef __FILEDIALOG_HH__ #define __FILEDIALOG_HH__ #include #include #include "encodings.hh" #include "conf.hh" #ifdef ENABLE_MAEMO #include #include #else #include #endif #define FILE_OPEN Gtk::FILE_CHOOSER_ACTION_OPEN #define FILE_SAVE Gtk::FILE_CHOOSER_ACTION_SAVE #ifdef ENABLE_MAEMO class SimpleFileDialog : protected Hildon::FileChooserDialog { #else class SimpleFileDialog : protected Gtk::FileChooserDialog { #endif protected: SimpleFileDialog(const std::string&, Gtk::FileChooserAction, Conf&); ~SimpleFileDialog(); bool run(); std::string get(); public: static std::string get_file(const std::string&, Gtk::FileChooserAction, Conf&); }; class FileDialog : private SimpleFileDialog { public: FileDialog(const std::string&, Gtk::FileChooserAction, int, Conf&, Encodings&); ~FileDialog(); int encoding(); bool run(); std::vector get(); private: #ifdef ENABLE_MAEMO // We are using a caption for maemo otherwise the dialog looks like shit. // I also get a crash if I don't use a pointer. No idea why. Hildon::Caption *caption; #else Gtk::Label label; Gtk::HBox box; #endif Gtk::ComboBoxText cbox; Encodings& _encodings; // std::string file; }; #endif /* __FILEDIALOG_HH__ */ katoob-0.5.9.1/src/aboutdialog.hh0000644000175000017500000000211210746617674013504 00000000000000/* * dialogs.hh * This file is part of katoob * * Copyright (C) 2006 Mohammed Sameer * * 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. */ #ifndef __ABOUTDIALOG_HH__ #define __ABOUTDIALOG_HH__ #include /** * \brief our about dialog class. */ class AboutDialog : private Gtk::AboutDialog { private: AboutDialog(); ~AboutDialog(); public: static void run(); }; #endif /* __ABOUTDIALOG_HH__ */ katoob-0.5.9.1/src/pipe.hh0000644000175000017500000000245410746617674012160 00000000000000/* * pipe.hh * This file is part of katoob * * Copyright (C) 2006, 2007 Mohammed Sameer * * 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. */ #ifndef __PIPE_HH__ #define __PIPE_HH__ #include /** * \brief Use this class to execute any command and capture its output. */ class Pipe { public: static bool exec(const std::string&, const std::string&, std::string&, std::string&); private: Pipe(const std::string&); ~Pipe(); bool exec(const std::string&, std::string&, std::string&); bool ok(std::string&); Pipe(); Pipe(const Pipe&); Pipe& operator=(const Pipe&); bool _ok; std::string _err; }; #endif /* __PIPE_HH__ */ katoob-0.5.9.1/src/tempfile.hh0000644000175000017500000000223410746617674013024 00000000000000/* * tempfile.hh * This file is part of katoob * * Copyright (C) 2006 Mohammed Sameer * * 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. */ #ifndef __TEMPFILE_HH__ #define __TEMPFILE_HH__ #include class TempFile { public: TempFile(); ~TempFile(); bool ok(std::string&); std::string& get_name(); bool write(const std::string&, std::string&); bool read(std::string&, std::string&); private: int fd; bool _ok; std::string name; std::string err; }; #endif /* __TEMPFILE_HH__ */ katoob-0.5.9.1/src/searchdialog.hh0000644000175000017500000000345410746617674013651 00000000000000/* * searchdialog.hh * This file is part of katoob * * Copyright (C) 2006 Mohammed Sameer * * 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. */ #ifndef __SEARCHDIALOG_HH__ #define __SEARCHDIALOG_HH__ #include #include #include #include class SearchDialog { public: SearchDialog(); ~SearchDialog(); bool run(); bool whole_word(); bool match_case(); bool wrap(); bool backwards(); bool beginning(); std::string get_text(); void whole_word(bool); void match_case(bool); void wrap(bool); void backwards(bool); void beginning(bool); void set_text(std::string&); private: // void insert_at_cursor_cb(const Glib::ustring&); Gtk::Dialog dialog; // TODO: Use a drop down combo or something. Gtk::Entry what; /* Gtk::Entry with; */ Gtk::Label label; Gtk::CheckButton _whole_word; Gtk::CheckButton _match_case; // Gtk::CheckButton regex; Gtk::CheckButton _wrap; Gtk::CheckButton _cursor; Gtk::CheckButton _backwards; Gtk::CheckButton _beginning; Gtk::HBox hbox; Gtk::VBox vbox; Gtk::Button *find; }; #endif /* __SEARCHDIALOG_HH__ */ katoob-0.5.9.1/src/replacedialog.hh0000644000175000017500000000543710746617674014022 00000000000000/* * replacedialog.hh * This file is part of katoob * * Copyright (C) 2006 Mohammed Sameer * * 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. */ #ifndef __REPLACEDIALOG_H__ #define __REPLACEDIALOG_H__ #include #include #include #include class ReplaceDialog { public: ReplaceDialog(); ~ReplaceDialog(); void run(); bool whole_word() { return _whole_word.get_active(); } bool match_case() { return _match_case.get_active(); } bool wrap() { return _wrap.get_active(); } bool backwards() { return _backwards.get_active(); } bool beginning() { return _beginning.get_active(); } std::string get_text() { return what.get_text(); } std::string get_replace() { return with.get_text(); } void whole_word(bool st) { _whole_word.set_active(st); } void match_case(bool st) { _match_case.set_active(st); } void wrap(bool st) { _wrap.set_active(st); } void backwards(bool st) { _backwards.set_active(st); } void beginning(bool st) { _beginning.set_active(st); } void set_text(std::string& text) { what.set_text(text); } void set_replace(std::string& text) { with.set_text(text); } void close() { _close.clicked(); } sigc::signal signal_find; sigc::signal signal_replace; sigc::signal signal_replace_all; private: void on_find_clicked() { if (!signal_find.emit()) { close(); } } void on_replace_clicked() { signal_replace.emit(); } /* void on_find_replace_clicked() { if (signal_find.emit()) signal_replace.emit(); else close(); } */ void on_replace_all_clicked() { signal_replace_all.emit(); close(); } void on_close_clicked() { dialog.response(0); } Gtk::Dialog dialog; // TODO: Use a drop down combo or something. Gtk::Entry what; Gtk::Entry with; Gtk::Label label, label2; Gtk::CheckButton _whole_word; Gtk::CheckButton _match_case; Gtk::CheckButton _wrap; Gtk::CheckButton _cursor; Gtk::CheckButton _backwards; Gtk::CheckButton _beginning; Gtk::HBox hbox, hbox2; Gtk::VBox vbox; Gtk::Button find, replace, /* find_replace, */ replace_all, _close; }; #endif /* __REPLACEDIALOG_H__ */ katoob-0.5.9.1/src/label.hh0000644000175000017500000000260510746617674012300 00000000000000/* * label.hh * This file is part of katoob * * Copyright (C) 2006 Mohammed Sameer * * 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. */ #ifndef __LABEL_HH__ #define __LABEL_HH__ #include #include #include #include #include "conf.hh" class Label : public Gtk::HBox { public: Label(Conf&); ~Label(); void set_text(int); void set_text(const std::string&); std::string get_text(); void set_readonly(bool, bool = false); void set_modified(bool, bool = false); void set_normal(); void reset_gui(); sigc::signal signal_close_clicked; private: Gtk::Label label; Conf& _conf; Gtk::Button close; bool _readonly, _modified; }; #endif /* __LABEL_HH__ */ katoob-0.5.9.1/src/undoredo.hh0000644000175000017500000000235610746617674013043 00000000000000/* * undoredo.hh * This file is part of katoob * * Copyright (C) 2006 Mohammed Sameer * * 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. */ #ifndef __UNDOREDO_HH__ #define __UNDOREDO_HH__ #include typedef enum { KATOOB_DO_INSERT, KATOOB_DO_DELETE /* KATOOB_DO_ENCODING */ } KatoobDoType; class KatoobDoElem { public: KatoobDoElem(KatoobDoType, const std::string&, int); ~KatoobDoElem(); std::string& text(); int pos(); KatoobDoType& action(); void toggle(); private: std::string _text; int _pos; KatoobDoType _action; }; #endif /* __UNDOREDO_HH__ */ katoob-0.5.9.1/src/dict.hh0000644000175000017500000000251610746617674012145 00000000000000/* * dict.hh * This file is part of katoob * * Copyright (C) 2006, 2007 Mohammed Sameer * * 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. */ #ifndef __DICT_HH__ #define __DICT_HH__ #include #include #include #include "conf.hh" // TODO: Auth not implemented // TODO: strategies not implemented. // TODO: Make the errors in DICTClient translatable. namespace Dict { std::string construct_uri(Conf&, const std::string&); std::string construct_lsdb_uri(Conf&, const std::string&, int); bool parse_defs(const std::string&, std::vector&); bool parse_dbs(const std::string&, std::map&); }; #endif /* __DICT_HH__ */ katoob-0.5.9.1/src/import.hh0000644000175000017500000000251710746617674012535 00000000000000/* * import.hh * This file is part of katoob * * Copyright (C) 2006 Mohammed Sameer * * 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. */ #ifndef __IMPORT_HH__ #define __IMPORT_HH__ #include // TODO: Asynchronous. class Import { public: std::string name; bool(*func)(std::string&, std::string&); }; void import_init(std::vector&); bool katoob_import_html(std::string&, std::string&); #ifdef HAVE_GZIP bool katoob_import_gz(std::string&, std::string&); #endif #ifdef HAVE_BZIP2 bool katoob_import_bz2(std::string&, std::string&); #endif #ifdef HAVE_FRIBIDI bool katoob_import_bidi_shape(std::string&, std::string&); #endif #endif /* __IMPORT_HH__ */ katoob-0.5.9.1/src/export.hh0000644000175000017500000000275510746617674012550 00000000000000/* * export.hh * This file is part of katoob * * Copyright (C) 2006 Mohammed Sameer * * 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. */ #ifndef __EXPORT_HH__ #define __EXPORT_HH__ #include #include #include // TODO: Asynchronous. class Export { public: std::string name; bool(*func)(Glib::ustring&, std::string&, std::string&); bool lines; }; void export_init(std::vector&); #ifdef HAVE_FRIBIDI bool katoob_export_plain(Glib::ustring&, std::string&, std::string&); #endif #ifdef HAVE_GZIP bool katoob_export_gz(Glib::ustring&, std::string&, std::string&); #endif #ifdef HAVE_BZIP2 bool katoob_export_bz2(Glib::ustring&, std::string&, std::string&); #endif #ifdef HAVE_FRIBIDI bool katoob_export_bidi_shape(Glib::ustring&, std::string&, std::string&); #endif #endif /* __EXPORT_HH__ */ katoob-0.5.9.1/src/preferencesdialog.hh0000644000175000017500000000350410746617674014701 00000000000000/* * preferencesdialog.hh * This file is part of katoob * * Copyright (C) 2006, 2007 Mohammed Sameer * * 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. */ #ifndef __PREFERENCESDIALOGL_HH__ #define __PREFERENCESDIALOGL_HH__ #include #include #include #include "conf.hh" #include "applets.hh" class PreferencesDialog { public: PreferencesDialog(Conf&, Encodings&); ~PreferencesDialog(); bool run(); sigc::signal signal_apply_clicked; private: void add_applet(const std::string&, Applet *); std::map applets; void apply_clicked_cb() { repopulate_conf(); signal_apply_clicked.emit(); } void repopulate_conf(); void selection_signal_changed_cb(); Conf& _conf; Encodings& _enc; Gtk::Dialog dialog; Gtk::ScrolledWindow sw; Gtk::TreeView treeview; Glib::RefPtr selection; // Gtk::TreeModelColumn number; Gtk::TreeModelColumn section; Gtk::TreeModelColumnRecord record; Glib::RefPtr store; Gtk::HPaned paned; Gtk::Notebook notebook; Gtk::Button apply; }; #endif /* __PREFERENCESDIALOGL_HH__ */ katoob-0.5.9.1/src/execdialog.hh0000644000175000017500000000244210746617674013324 00000000000000/* * execdialog.hh * This file is part of katoob * * Copyright (C) 2006 Mohammed Sameer * * 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. */ #ifndef __EXECDIALOG_HH__ #define __EXECDIALOG_HH__ #include #include #include #include #include "conf.hh" class ExecDialog : public Gtk::Dialog { public: ExecDialog(Conf&); ~ExecDialog(); bool run(); std::string get_command(); bool get_new_buffer(); private: Gtk::Label label, tips; Gtk::CheckButton new_buffer; Gtk::ComboBoxEntryText command; Gtk::HBox box; }; #endif /* __EXECDIALOG_HH__ */ katoob-0.5.9.1/src/spell.hh0000644000175000017500000000261210746617674012336 00000000000000/* * spell.hh * This file is part of katoob * * Copyright (C) 2006, 2007 Mohammed Sameer * * 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. */ #ifndef __SPELL_HH__ #define __SPELL_HH__ #include #include #include class Spell { public: Spell(); ~Spell(); void suggest(std::string&, std::vector&); bool check(std::string&); bool ok(std::string&); bool set_lang(std::string&, std::string&); void replace(std::string&, std::string&); void to_personal(std::string&); void to_session(std::string&); private: // TODO: Can we only use one ? EnchantBroker *broker; EnchantDict *dict; }; void katoob_spell_list_available(std::vector&); #endif /* __SPELL_HH__ */ katoob-0.5.9.1/src/spelldialog.hh0000644000175000017500000000460310746617674013520 00000000000000/* * spelldialog.hh * This file is part of katoob * * Copyright (C) 2006, 2007 Mohammed Sameer * * 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. */ #ifndef __SPELLDIALOG_HH__ #define __SPELLDIALOG_HH__ #include #include #include #include #include #include #include #include #include #include #include #include "document.hh" class SpellDialog : public Gtk::Window { public: SpellDialog(Document *); ~SpellDialog(); void run(); private: void ignore_clicked_cb(); void ignore_all_clicked_cb(); void add_clicked_cb(); void change_clicked_cb(); // void change_all_clicked_cb(); void check_clicked_cb(); void close_clicked_cb(); void got_misspelled(std::string&, std::vector&); void selection_signal_changed_cb(); void populate_suggestions(std::vector&); void next(); bool signal_key_press_event_cb(GdkEventKey *); // Gtk::Window window; Gtk::Button close, ignore, ignore_all, change, /*change_all,*/ check, add; Gtk::Label misspelled_word, misspelled, change_to; Gtk::Image yes, no, image; Gtk::VBox vbox1, vbox2; Gtk::HBox hbox1, hbox2, hbox3; Gtk::Table table; Gtk::ScrolledWindow sw; Gtk::HSeparator separator; Gtk::Entry entry; Gtk::TreeView suggestions; Glib::RefPtr selection; Gtk::TreeModelColumn suggestions_col; Gtk::TreeModelColumnRecord record; Glib::RefPtr store; Document *_doc; Glib::RefPtr loop; // std::map replacements; }; #endif /* __SPELLDIALOG_HH__ */ katoob-0.5.9.1/src/macros.h0000644000175000017500000000311310746617674012330 00000000000000/* * macros.h * This file is part of katoob * * Copyright (C) 2006, 2007 Mohammed Sameer * * 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. */ #ifndef __MACROS_H__ #define __MACROS_H__ #ifdef ENABLE_NLS #include #include #define _(String) gettext (String) #ifdef gettext_noop #define N_(String) gettext_noop (String) #else #define N_(String) (String) #endif #else #define textdomain(String) (String) #define gettext(String) (String) #define dgettext(Domain,Message) (Message) #define dcgettext(Domain,Message,Type) (Message) #define bindtextdomain(Domain,Directory) (Domain) #define bind_textdomain_codeset(Domain,Codeset) (Domain) #define _(String) (String) #define N_(String) (String) #endif /* ENABLE_NLS */ #define TABS_POS_TOP 101 #define TABS_POS_BOTTOM 102 #define TABS_POS_RIGHT 103 #define TABS_POS_LEFT 104 #endif /* __MACROS_H__ */ katoob-0.5.9.1/src/openlocationdialog.hh0000644000175000017500000000311610746617674015071 00000000000000/* * openlocationdialog.hh * This file is part of katoob * * Copyright (C) 2006, 2007 Mohammed Sameer * * 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. */ #ifndef __OPENLOCATIONDIALOG_HH__ #define __OPENLOCATIONDIALOG_HH__ #include #include #include #include #include #include "conf.hh" #include "encodings.hh" class OpenLocationDialog : public Gtk::Dialog { public: OpenLocationDialog(Conf&, Encodings&); ~OpenLocationDialog(); bool run(std::string&); std::string get_location(); int get_encoding(); bool insert_to_active(); void disable_insert_to_active(); std::string& get_uri(); private: Gtk::Label label1, label2; Gtk::CheckButton to_active; Gtk::ComboBoxEntryText location, encoding; Gtk::HBox box1, box2; std::string uri; Conf& _conf; Encodings _encodings; }; #endif /* __OPENLOCATIONDIALOG_HH__ */ katoob-0.5.9.1/src/textview.hh0000644000175000017500000000265310746617674013103 00000000000000/* * textview.hh * This file is part of katoob * * Copyright (C) 2006 Mohammed Sameer * * 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. */ #ifndef __TEXTVIEW_HH__ #define __TEXTVIEW_HH__ #include #include class TextView : public Gtk::TextView { public: TextView(); #ifdef ENABLE_HIGHLIGHT TextView(GtkTextView *); #endif virtual ~TextView(); sigc::signal signal_text_view_request_file_open; // They are not protected because we need to call them from our SourceView and I don't // want to include sourceview.hh and declare them as friends. virtual void on_drag_data_received(const Glib::RefPtr&, int, int, const Gtk::SelectionData&, guint, guint); }; #endif /* __TEXTVIEW_HH__ */ katoob-0.5.9.1/src/dbus.hh0000644000175000017500000000320210746617674012150 00000000000000/* * dbus.hh * This file is part of katoob * * Copyright (C) 2006, 2007 Mohammed Sameer * * 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. */ #ifndef __DBUS_HH__ #define __DBUS_HH__ #include #include #define DBUS_API_SUBJECT_TO_CHANGE 1 #include #include class DBus { public: DBus(); ~DBus(); bool ping(); void start(); bool open_files(std::vector&); friend DBusHandlerResult katoob_dbus_message_handler(DBusConnection *, DBusMessage *, void *); sigc::signal& >signal_open_files; #ifdef ENABLE_MAEMO sigc::signal signal_request_top; #endif protected: DBusHandlerResult got_message(DBusConnection *, DBusMessage *); private: DBusHandlerResult open_files(DBusConnection *, DBusMessage *); DBusHandlerResult pong(DBusConnection *, DBusMessage *); bool connect(DBusConnection **); DBusConnection *server; bool _ok; }; #endif /* __DBUS_HH__ */ katoob-0.5.9.1/src/isocodes.hh0000644000175000017500000000257610746617674013040 00000000000000/* * isocodes.hh * This file is part of katoob * * Copyright (C) 2007 Mohammed Sameer * * 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. */ #ifndef __ISOCODES_HH__ #define __ISOCODES_HH__ #include #include class IsoCodes { public: IsoCodes(); // ~IsoCodes(); // bool ok(std::string&); std::string translate(const std::string&); void country_codes(const char *, const char **); void lang_codes(const char *, const char **); private: void filter(const std::string&, const char **, const std::string&, const std::string&, const std::string&, std::map&, const char *); static std::map _lang_codes, _country_codes; }; #endif /* __ISOCODES_HH__ */ katoob-0.5.9.1/src/spellmenu.hh0000644000175000017500000000244210746617674013224 00000000000000/* * spellmenu.hh * This file is part of katoob * * Copyright (C) 2007 Mohammed Sameer * * 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. */ #ifndef __SPELLMENU_HH__ #define __SPELLMENU_HH__ #include #ifdef ENABLE_ISOCODES #include "isocodes.hh" #endif class SpellMenu : public Gtk::ComboBoxText { public: SpellMenu(); const Glib::ustring get_active_text(); void set_active_text(const Glib::ustring&); // void set_sensitive(bool); // void append_text(const Glib::ustring&); private: std::vector dicts; #ifdef ENABLE_ISOCODES IsoCodes iso_codes; #endif }; #endif /* __SPELLMENU_HH__ */ katoob-0.5.9.1/src/applets.hh0000644000175000017500000001536510746617674012700 00000000000000/* * applets.hh * This file is part of katoob * * Copyright (C) 2007 Mohammed Sameer * * 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. */ #ifndef __APPLETS_HH__ #define __APPLETS_HH__ #include #include #include #include #include #include #include #ifdef ENABLE_MAEMO #include #endif #include #include #include #include #include #include "conf.hh" #ifdef ENABLE_SPELL #include "spellmenu.hh" #endif #include class Applet { public: Applet(Conf&); virtual ~Applet(); virtual Gtk::Widget& get_box(); virtual void apply()=0; protected: Gtk::VBox box; Conf& _conf; }; class GeneralApplet : public Applet { public: GeneralApplet(Conf&); virtual void apply(); private: void undo_toggled_cb(); void undo_closed_toggled_cb(); Gtk::CheckButton undo, undo_closed; Gtk::Table general_table1, general_table2; Gtk::Label undo_label, exec_label, undo_closed_label; Gtk::Adjustment undono_adj, exec_adj, undo_closed_adj; Gtk::SpinButton undono, exec_cmd_size, undo_closedno; }; class InterfaceApplet : public Applet { public: InterfaceApplet(Conf&); virtual void apply(); private: void recent_toggled_cb(); void toolbar_toggled_cb(); Gtk::CheckButton toolbar, extended_toolbar, statusbar, recent, showclose, extra_buttons; Gtk::Adjustment recentno_adj; Gtk::SpinButton recentno; Gtk::Label recentno_label, toolbartype_label; Gtk::Table interface_table; Gtk::ComboBoxText toolbartype; }; class TabsApplet : public Applet { public: TabsApplet(Conf&); virtual void apply(); private: void showtabs_toggled_cb(); Gtk::CheckButton showtabs, tabsmenu, scrolltabs; Gtk::Label tabspos_label, readonly_label, modified_label, normal_label; Gtk::ComboBoxText tabspos; Gtk::Table tabs_table; #ifdef ENABLE_MAEMO Hildon::ColorButton readonly, modified, normal; #else Gtk::ColorButton readonly, modified, normal; #endif }; class EditorApplet : public Applet { public: EditorApplet(Conf&); virtual void apply(); private: void linenumbers_toggled_cb(); void default_font_toggled_cb(); Gtk::CheckButton textwrap, linenumbers, default_font; Gtk::FontButton font; Gtk::ComboBoxText linenumbers_pos; Gtk::Frame font_frame; Gtk::Label linenumbers_label; Gtk::HBox ed_box1; Gtk::VBox ed_box2; Gtk::HBox ed_box3; Gtk::SpinButton tab_width; Gtk::Adjustment tab_width_adj; Gtk::Label tab_width_label; #ifdef ENABLE_HIGHLIGHT Gtk::CheckButton highlight_auto; #endif }; class EncodingsApplet : public Applet { public: EncodingsApplet(Conf&, Encodings&); virtual void apply(); private: void locale_enc_toggled_cb(); Encodings& _enc; Gtk::ComboBoxText save_enc, saved_enc; Gtk::CheckButton locale_enc; Gtk::Label saved_enc_label, save_enc_label; Gtk::HBox enc_box1, enc_box2; Gtk::VBox enc_box3; Gtk::Frame save_frame, saved_frame; }; class FileSaveApplet : public Applet { public: FileSaveApplet(Conf&); virtual void apply(); private: void backup_toggled_cb(); Gtk::CheckButton backup; Gtk::Entry backup_ext; Gtk::Label backup_label; Gtk::HBox fs_box1; }; #ifdef ENABLE_SPELL class SpellCheckerApplet : public Applet { public: SpellCheckerApplet(Conf&); virtual void apply(); private: Gtk::CheckButton spell_check; SpellMenu default_dict; Gtk::Label default_dict_label;//, misspelled_label; Gtk::HBox /*sc_box1,*/ sc_box2; // Gtk::ColorButton misspelled; }; #endif #ifdef ENABLE_PRINT class PrintApplet : public Applet { public: PrintApplet(Conf&); virtual void apply(); private: Gtk::Label print_label; Gtk::FontButton print_font; Gtk::HBox p_box2; }; #endif class DictionaryApplet : public Applet { public: DictionaryApplet(Conf&); virtual void apply(); private: void dict_toggled_cb(); void list_dicts_clicked_cb(); void signal_dict_transfer_complete_cb(bool, const std::string&); void signal_cancel_clicked_cb(); sigc::connection conn; Glib::RefPtr meter; // our network handle void *handle; Gtk::CheckButton dict; Gtk::Label dict_host_label, dict_port_label, dict_name_label; Gtk::Entry dict_host; Gtk::SpinButton dict_port; Gtk::Adjustment dict_port_adj; Gtk::Button list_dicts; Gtk::Table dictionary_table; // The tree view. Glib::RefPtr dict_selection; Gtk::TreeView dicts; Gtk::TreeModelColumn dict_name; Gtk::TreeModelColumn dict_description; Gtk::TreeModelColumnRecord dict_record; Glib::RefPtr dict_store; Gtk::ScrolledWindow dict_sw; }; #ifdef ENABLE_MULTIPRESS class MultipressApplet : public Applet { public: MultipressApplet(Conf&); virtual void apply(); private: Gtk::Adjustment multipress_timeout_adj; Gtk::SpinButton multipress_timeout; Gtk::HBox m_box1; Gtk::Label multipress_timeout_l; }; #endif class RemoteDocumentsApplet : public Applet { public: RemoteDocumentsApplet(Conf&); virtual void apply(); private: Gtk::CheckButton open_location_to_active; Gtk::SpinButton locations_size; Gtk::Adjustment locations_size_adj; Gtk::Label locations_size_label; Gtk::HBox r_box1, r_box2; }; class AdvancedApplet : public Applet { public: AdvancedApplet(Conf&); virtual void apply(); private: void savewinpos_toggled_cb(); Gtk::CheckButton saveonexit, savewinpos; Gtk::Frame pos, size; Gtk::Label x_label, y_label, w_label, h_label; Gtk::Adjustment x_adj, y_adj, w_adj, h_adj; Gtk::Table pos_table, size_table; Gtk::SpinButton x, y, w, h; }; class NetworkApplet : public Applet { public: NetworkApplet(Conf&); virtual void apply(); private: Gtk::Adjustment timeout_adj, proxyport_adj; Gtk::SpinButton timeout, proxyport; Gtk::ComboBoxText proxytype; Gtk::Entry proxyhost, proxyuser, proxypass; Gtk::Label proxyhost_l, proxyport_l, timeout_l, proxytype_l, proxyuser_l, proxypass_l; Gtk::Table table; Gtk::Table table2; Gtk::CheckButton proxytunnel, proxyauth; }; #endif /* __APPLETS_HH__ */ katoob-0.5.9.1/src/network.hh0000644000175000017500000000347710746617674012722 00000000000000/* * network.hh * This file is part of katoob * * Copyright (C) 2007 Mohammed Sameer * * 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. */ #ifndef __NETWORK_HH__ #define __NETWORK_HH__ #include #include #include #include #include #include "conf.hh" class Network { public: Network(Conf&); ~Network(); static bool add_transfer(const std::string&, std::string&, sigc::slot, void *get_handle = NULL); static bool network_perform(); static void del_transfer(void *); static void destroy(); private: Network(); Network(const Network&); Network& operator=(const Network&); static void clean_handle(void *); static CURLcode populate_proxy(CURL *, const std::string&, const int& port, const bool&, const std::string&, const std::string&); static size_t __curl_data_callback(void *ptr, size_t size, size_t nmemb, void *stream); static Conf *conf; static std::map > cons; static std::map data; static CURLM *m_handle; static sigc::connection conn; }; #endif /* __NETWORK_HH__ */ katoob-0.5.9.1/src/print.hh0000644000175000017500000000422710746617674012357 00000000000000/* * print.hh * This file is part of katoob * * Copyright (C) 2006, 2007 Mohammed Sameer * * 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. */ #ifndef __PRINT_HH__ #define __PRINT_HH__ #include #include "conf.hh" #include "previewdialog.hh" #include "printsettings.hh" #include "pagesetup.hh" #include "document.hh" #include "applets.hh" class Print : public Gtk::PrintOperation { public: static Glib::RefPtr create(Conf&, Document *, Glib::RefPtr&, Glib::RefPtr&); virtual ~Print(); bool run(std::string&, Gtk::PrintOperationAction); protected: Print(Conf&, Document *, Glib::RefPtr&, Glib::RefPtr&); // Printing part. void on_begin_print(const Glib::RefPtr&); void on_draw_page(const Glib::RefPtr&, int); // Custom widget. Gtk::Widget* on_create_custom_widget(); void on_custom_widget_apply(Gtk::Widget *); // Preview part. bool on_preview(const Glib::RefPtr&, const Glib::RefPtr&, Gtk::Window*); void on_preview_window_hide(); void on_done(Gtk::PrintOperationResult); private: int get_n_pages(); Glib::RefPtr get_layout(); Conf& _conf; Glib::RefPtr layout; Document *_doc; PrintApplet applet; PreviewDialog *_preview; Glib::RefPtr& _page_setup; Glib::RefPtr& _settings; std::vector > pages; }; #endif /* __PRINT_HH__ */ katoob-0.5.9.1/src/previewdialog.hh0000644000175000017500000000457010746617674014065 00000000000000/* * previewdialog.hh * This file is part of katoob * * Copyright (C) 2006, 2007 Mohammed Sameer * * 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. */ #ifndef __PREVIEWDIALOG_HH__ #define __PREVIEWDIALOG_HH__ #include #include #include #include #include #include #include #include class PreviewDialog : public Gtk::Dialog { public: static PreviewDialog *create(const Glib::RefPtr&, const Glib::RefPtr&, Gtk::Window*); void run(); sigc::signal signal_get_n_pages; sigc::signal > signal_get_layout; private: PreviewDialog(const Glib::RefPtr&, const Glib::RefPtr&, Gtk::Window *); // ~PreviewDialog(); void recalculate_gui(); void on_back_clicked(); void on_rewind_clicked(); void on_forward_clicked(); void on_ff_clicked(); void on_signal_value_changed(); void on_hide(); void signal_area_realize_cb(); bool signal_area_expose_event_cb(GdkEventExpose *); void signal_preview_ready_cb(const Glib::RefPtr&); void signal_preview_got_page_size_cb(const Glib::RefPtr&, const Glib::RefPtr&); Glib::RefPtr preview; Glib::RefPtr context; int n_pages; Gtk::HBox hbox; Gtk::Adjustment adj; Gtk::SpinButton pages; Gtk::Label label; Gtk::DrawingArea area; Gtk::Button back; Gtk::Button forward; Gtk::Button rewind; Gtk::Button ff; Gtk::ScrolledWindow sw; }; #endif /* __PREVIEWDIALOG_HH__ */ katoob-0.5.9.1/src/printsettings.hh0000644000175000017500000000243510746617674014137 00000000000000/* * printsettings.hh * This file is part of katoob * * Copyright (C) 2007 Mohammed Sameer * * 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. */ #ifndef __PRINTSETTINGS_HH__ #define __PRINTSETTINGS_HH__ #include #include "conf.hh" class PrintSettings : public Gtk::PrintSettings { public: static Glib::RefPtr create(Conf&); PrintSettings(Conf&); ~PrintSettings(); void reset(); void save(); private: void foreach_load(const Glib::ustring&, const Glib::ustring&); void foreach_save(const Glib::ustring&, const Glib::ustring&); Conf& _conf; }; #endif /* __PRINTSETTINGS_HH__ */ katoob-0.5.9.1/src/pagesetup.hh0000644000175000017500000000237510746617674013222 00000000000000/* * pagesetup.hh * This file is part of katoob * * Copyright (C) 2007 Mohammed Sameer * * 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. */ #ifndef __PAGESETUP_HH__ #define __PAGESETUP_HH__ #include #include "conf.hh" class PageSetup : public Glib::Object { public: static Glib::RefPtr create(Conf&); void reset(const Glib::RefPtr&); void save(); Glib::RefPtr get_page_setup(); protected: PageSetup(Conf&); ~PageSetup(); private: Glib::RefPtr _page_setup; Conf& _conf; }; #endif /* __PAGESETUP_HH__ */ katoob-0.5.9.1/src/Makefile.am0000644000175000017500000000504710746617674012737 00000000000000SUBDIRS = pixmaps xdgmime EXTRA_DIST = win32/katoob.rc bin_PROGRAMS = katoob AM_CXXFLAGS = $(CFLAGS) $(KATOOB_CFLAGS) $(HIGHLIGHT_CFLAGS) $(GTKSOURCEVIEW_CFLAGS) $(MAEMO_CFLAGS) $(PRINT_CFLAGS) AM_CFLAGS=$(AM_CXXFLAGS) katoob_LDADD = $(KATOOB_LIBS) $(HIGHLIGHT_LIBS) $(BZ2_LIBS) $(GZ_LIBS) $(GTKSOURCEVIEW_LIBS) $(MAEMO_LIBS) $(LIBCURL) $(PRINT_LIBS) katoob_SOURCES = katoob.cc main.cc window.cc document.cc conf.cc statusbar.cc menubar.cc toolbar.cc dialogs.cc encodings.cc mdi.cc utils.cc textbuffer.cc filedialog.cc aboutdialog.cc pipe.cc tempfile.cc searchdialog.cc replacedialog.cc label.cc undoredo.cc dict.cc import.cc export.cc preferencesdialog.cc execdialog.cc openlocationdialog.cc textview.cc applets.cc network.cc noinst_HEADERS = katoob.hh window.hh document.hh conf.hh statusbar.hh menubar.hh toolbar.hh dialogs.hh encodings.hh mdi.hh utils.hh textbuffer.hh filedialog.hh aboutdialog.hh pipe.hh tempfile.hh searchdialog.hh replacedialog.hh label.hh undoredo.hh dict.hh import.hh export.hh preferencesdialog.hh execdialog.hh spell.hh spelldialog.hh macros.h openlocationdialog.hh textview.hh dbus.hh isocodes.hh spellmenu.hh applets.hh network.hh if PRINT katoob_SOURCES += print.cc pagesetup.cc printsettings.cc previewdialog.cc noinst_HEADERS += print.hh previewdialog.hh printsettings.hh pagesetup.hh endif if EMULATOR katoob_SOURCES += emulator.cc emulator.hh input_window = inputwindow.hh inputwindow.cc endif if MULTIPRESS katoob_SOURCES += multipresswindow.cc multipress.cc multipress.hh multipresswindow.hh input_window = inputwindow.hh inputwindow.cc endif katoob_SOURCES += $(input_window) if SPELL katoob_SOURCES += spell.cc spelldialog.cc spellmenu.cc AM_CXXFLAGS += $(SPELL_CFLAGS) katoob_LDADD += $(SPELL_LIBS) endif if WIN32 katoob_SOURCES += win32/katoob.rc endif if DBUS katoob_SOURCES += dbus.cc AM_CXXFLAGS += $(DBUS_CFLAGS) katoob_LDADD += $(DBUS_LIBS) endif if FRIBIDI katoob_SOURCES += shape_arabic.c shape_arabic.h AM_CXXFLAGS += $(FRIBIDI_CFLAGS) katoob_LDADD += $(FRIBIDI_LIBS) endif if HIGHLIGHT katoob_SOURCES += xdgmime/xdgmimealias.c xdgmime/xdgmimeint.h xdgmime/xdgmimeparent.c \ xdgmime/xdgmimealias.h xdgmime/xdgmimeglob.c xdgmime/xdgmimeparent.h \ xdgmime/xdgmimeglob.h xdgmime/xdgmimemagic.c xdgmime/xdgmime.c \ xdgmime/xdgmimemagic.h xdgmime/xdgmimecache.c xdgmime/xdgmime.h \ xdgmime/xdgmimecache.h xdgmime/xdgmimeint.c katoob_SOURCES += sourcemanager.cc sourcemanager.hh \ sourceview.cc sourceview.hh endif if ISOCODES katoob_SOURCES += isocodes.cc endif if MAEMO katoob_SOURCES += maemo-wrapper.cc maemo-wrapper.hh endif katoob-0.5.9.1/src/Makefile.in0000644000175000017500000013557710746620160012744 00000000000000# Makefile.in generated by automake 1.8.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004 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@ SOURCES = $(katoob_SOURCES) srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : bin_PROGRAMS = katoob$(EXEEXT) @PRINT_TRUE@am__append_1 = print.cc pagesetup.cc printsettings.cc previewdialog.cc @PRINT_TRUE@am__append_2 = print.hh previewdialog.hh printsettings.hh pagesetup.hh @EMULATOR_TRUE@am__append_3 = emulator.cc emulator.hh @MULTIPRESS_TRUE@am__append_4 = multipresswindow.cc multipress.cc multipress.hh multipresswindow.hh @SPELL_TRUE@am__append_5 = spell.cc spelldialog.cc spellmenu.cc @SPELL_TRUE@am__append_6 = $(SPELL_CFLAGS) @SPELL_TRUE@am__append_7 = $(SPELL_LIBS) @WIN32_TRUE@am__append_8 = win32/katoob.rc @DBUS_TRUE@am__append_9 = dbus.cc @DBUS_TRUE@am__append_10 = $(DBUS_CFLAGS) @DBUS_TRUE@am__append_11 = $(DBUS_LIBS) @FRIBIDI_TRUE@am__append_12 = shape_arabic.c shape_arabic.h @FRIBIDI_TRUE@am__append_13 = $(FRIBIDI_CFLAGS) @FRIBIDI_TRUE@am__append_14 = $(FRIBIDI_LIBS) @HIGHLIGHT_TRUE@am__append_15 = xdgmime/xdgmimealias.c xdgmime/xdgmimeint.h xdgmime/xdgmimeparent.c \ @HIGHLIGHT_TRUE@ xdgmime/xdgmimealias.h xdgmime/xdgmimeglob.c xdgmime/xdgmimeparent.h \ @HIGHLIGHT_TRUE@ xdgmime/xdgmimeglob.h xdgmime/xdgmimemagic.c xdgmime/xdgmime.c \ @HIGHLIGHT_TRUE@ xdgmime/xdgmimemagic.h xdgmime/xdgmimecache.c xdgmime/xdgmime.h \ @HIGHLIGHT_TRUE@ xdgmime/xdgmimecache.h xdgmime/xdgmimeint.c\ @HIGHLIGHT_TRUE@sourcemanager.cc sourcemanager.hh \ @HIGHLIGHT_TRUE@ sourceview.cc sourceview.hh @ISOCODES_TRUE@am__append_16 = isocodes.cc @MAEMO_TRUE@am__append_17 = maemo-wrapper.cc maemo-wrapper.hh subdir = src DIST_COMMON = $(am__noinst_HEADERS_DIST) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/glib-gettext.m4 \ $(top_srcdir)/m4/intltool.m4 $(top_srcdir)/m4/libcurl.m4 \ $(top_srcdir)/m4/pkg.m4 $(top_srcdir)/configure.in 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 = am__installdirs = "$(DESTDIR)$(bindir)" binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) PROGRAMS = $(bin_PROGRAMS) am__katoob_SOURCES_DIST = katoob.cc main.cc window.cc document.cc \ conf.cc statusbar.cc menubar.cc toolbar.cc dialogs.cc \ encodings.cc mdi.cc utils.cc textbuffer.cc filedialog.cc \ aboutdialog.cc pipe.cc tempfile.cc searchdialog.cc \ replacedialog.cc label.cc undoredo.cc dict.cc import.cc \ export.cc preferencesdialog.cc execdialog.cc \ openlocationdialog.cc textview.cc applets.cc network.cc \ print.cc pagesetup.cc printsettings.cc previewdialog.cc \ emulator.cc emulator.hh multipresswindow.cc multipress.cc \ multipress.hh multipresswindow.hh inputwindow.hh \ inputwindow.cc spell.cc spelldialog.cc spellmenu.cc \ win32/katoob.rc dbus.cc shape_arabic.c shape_arabic.h \ xdgmime/xdgmimealias.c xdgmime/xdgmimeint.h \ xdgmime/xdgmimeparent.c xdgmime/xdgmimealias.h \ xdgmime/xdgmimeglob.c xdgmime/xdgmimeparent.h \ xdgmime/xdgmimeglob.h xdgmime/xdgmimemagic.c xdgmime/xdgmime.c \ xdgmime/xdgmimemagic.h xdgmime/xdgmimecache.c \ xdgmime/xdgmime.h xdgmime/xdgmimecache.h xdgmime/xdgmimeint.c \ sourcemanager.cc sourcemanager.hh sourceview.cc sourceview.hh \ isocodes.cc maemo-wrapper.cc maemo-wrapper.hh @PRINT_TRUE@am__objects_1 = print.$(OBJEXT) pagesetup.$(OBJEXT) \ @PRINT_TRUE@ printsettings.$(OBJEXT) previewdialog.$(OBJEXT) @EMULATOR_TRUE@am__objects_2 = emulator.$(OBJEXT) @MULTIPRESS_TRUE@am__objects_3 = multipresswindow.$(OBJEXT) \ @MULTIPRESS_TRUE@ multipress.$(OBJEXT) @EMULATOR_FALSE@@MULTIPRESS_TRUE@am__objects_4 = \ @EMULATOR_FALSE@@MULTIPRESS_TRUE@ inputwindow.$(OBJEXT) @EMULATOR_TRUE@am__objects_4 = inputwindow.$(OBJEXT) @SPELL_TRUE@am__objects_5 = spell.$(OBJEXT) spelldialog.$(OBJEXT) \ @SPELL_TRUE@ spellmenu.$(OBJEXT) am__objects_6 = @DBUS_TRUE@am__objects_7 = dbus.$(OBJEXT) @FRIBIDI_TRUE@am__objects_8 = shape_arabic.$(OBJEXT) @HIGHLIGHT_TRUE@am__objects_9 = xdgmimealias.$(OBJEXT) \ @HIGHLIGHT_TRUE@ xdgmimeparent.$(OBJEXT) xdgmimeglob.$(OBJEXT) \ @HIGHLIGHT_TRUE@ xdgmimemagic.$(OBJEXT) xdgmime.$(OBJEXT) \ @HIGHLIGHT_TRUE@ xdgmimecache.$(OBJEXT) xdgmimeint.$(OBJEXT) \ @HIGHLIGHT_TRUE@ sourcemanager.$(OBJEXT) sourceview.$(OBJEXT) @ISOCODES_TRUE@am__objects_10 = isocodes.$(OBJEXT) @MAEMO_TRUE@am__objects_11 = maemo-wrapper.$(OBJEXT) am_katoob_OBJECTS = katoob.$(OBJEXT) main.$(OBJEXT) window.$(OBJEXT) \ document.$(OBJEXT) conf.$(OBJEXT) statusbar.$(OBJEXT) \ menubar.$(OBJEXT) toolbar.$(OBJEXT) dialogs.$(OBJEXT) \ encodings.$(OBJEXT) mdi.$(OBJEXT) utils.$(OBJEXT) \ textbuffer.$(OBJEXT) filedialog.$(OBJEXT) \ aboutdialog.$(OBJEXT) pipe.$(OBJEXT) tempfile.$(OBJEXT) \ searchdialog.$(OBJEXT) replacedialog.$(OBJEXT) label.$(OBJEXT) \ undoredo.$(OBJEXT) dict.$(OBJEXT) import.$(OBJEXT) \ export.$(OBJEXT) preferencesdialog.$(OBJEXT) \ execdialog.$(OBJEXT) openlocationdialog.$(OBJEXT) \ textview.$(OBJEXT) applets.$(OBJEXT) network.$(OBJEXT) \ $(am__objects_1) $(am__objects_2) $(am__objects_3) \ $(am__objects_4) $(am__objects_5) $(am__objects_6) \ $(am__objects_7) $(am__objects_8) $(am__objects_9) \ $(am__objects_10) $(am__objects_11) katoob_OBJECTS = $(am_katoob_OBJECTS) am__DEPENDENCIES_1 = @SPELL_TRUE@am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1) @DBUS_TRUE@am__DEPENDENCIES_3 = $(am__DEPENDENCIES_1) @FRIBIDI_TRUE@am__DEPENDENCIES_4 = $(am__DEPENDENCIES_1) katoob_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_2) $(am__DEPENDENCIES_3) \ $(am__DEPENDENCIES_4) DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles @AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/aboutdialog.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/applets.Po ./$(DEPDIR)/conf.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/dbus.Po ./$(DEPDIR)/dialogs.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/dict.Po ./$(DEPDIR)/document.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/emulator.Po ./$(DEPDIR)/encodings.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/execdialog.Po ./$(DEPDIR)/export.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/filedialog.Po ./$(DEPDIR)/import.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/inputwindow.Po ./$(DEPDIR)/isocodes.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/katoob.Po ./$(DEPDIR)/label.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/maemo-wrapper.Po ./$(DEPDIR)/main.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/mdi.Po ./$(DEPDIR)/menubar.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/multipress.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/multipresswindow.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/network.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/openlocationdialog.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/pagesetup.Po ./$(DEPDIR)/pipe.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/preferencesdialog.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/previewdialog.Po ./$(DEPDIR)/print.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/printsettings.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/replacedialog.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/searchdialog.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/shape_arabic.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/sourcemanager.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/sourceview.Po ./$(DEPDIR)/spell.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/spelldialog.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/spellmenu.Po ./$(DEPDIR)/statusbar.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/tempfile.Po ./$(DEPDIR)/textbuffer.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/textview.Po ./$(DEPDIR)/toolbar.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/undoredo.Po ./$(DEPDIR)/utils.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/window.Po ./$(DEPDIR)/xdgmime.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/xdgmimealias.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/xdgmimecache.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/xdgmimeglob.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/xdgmimeint.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/xdgmimemagic.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/xdgmimeparent.Po COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ -o $@ SOURCES = $(katoob_SOURCES) DIST_SOURCES = $(am__katoob_SOURCES_DIST) RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-exec-recursive install-info-recursive \ install-recursive installcheck-recursive installdirs-recursive \ pdf-recursive ps-recursive uninstall-info-recursive \ uninstall-recursive am__noinst_HEADERS_DIST = katoob.hh window.hh document.hh conf.hh \ statusbar.hh menubar.hh toolbar.hh dialogs.hh encodings.hh \ mdi.hh utils.hh textbuffer.hh filedialog.hh aboutdialog.hh \ pipe.hh tempfile.hh searchdialog.hh replacedialog.hh label.hh \ undoredo.hh dict.hh import.hh export.hh preferencesdialog.hh \ execdialog.hh spell.hh spelldialog.hh macros.h \ openlocationdialog.hh textview.hh dbus.hh isocodes.hh \ spellmenu.hh applets.hh network.hh print.hh previewdialog.hh \ printsettings.hh pagesetup.hh HEADERS = $(noinst_HEADERS) ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BZ2_LIBS = @BZ2_LIBS@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DBUS_CFLAGS = @DBUS_CFLAGS@ DBUS_FALSE = @DBUS_FALSE@ DBUS_LIBS = @DBUS_LIBS@ DBUS_TRUE = @DBUS_TRUE@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DICT_FALSE = @DICT_FALSE@ DICT_TRUE = @DICT_TRUE@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EMULATOR_FALSE = @EMULATOR_FALSE@ EMULATOR_TRUE = @EMULATOR_TRUE@ EXEEXT = @EXEEXT@ FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@ FRIBIDI_CONFIG = @FRIBIDI_CONFIG@ FRIBIDI_FALSE = @FRIBIDI_FALSE@ FRIBIDI_LIBS = @FRIBIDI_LIBS@ FRIBIDI_TRUE = @FRIBIDI_TRUE@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ GTKSOURCEVIEW_CFLAGS = @GTKSOURCEVIEW_CFLAGS@ GTKSOURCEVIEW_LIBS = @GTKSOURCEVIEW_LIBS@ HIGHLIGHT_FALSE = @HIGHLIGHT_FALSE@ HIGHLIGHT_TRUE = @HIGHLIGHT_TRUE@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_CAVES_RULE = @INTLTOOL_CAVES_RULE@ INTLTOOL_DESKTOP_RULE = @INTLTOOL_DESKTOP_RULE@ INTLTOOL_DIRECTORY_RULE = @INTLTOOL_DIRECTORY_RULE@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_ICONV = @INTLTOOL_ICONV@ INTLTOOL_KBD_RULE = @INTLTOOL_KBD_RULE@ INTLTOOL_KEYS_RULE = @INTLTOOL_KEYS_RULE@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_MSGFMT = @INTLTOOL_MSGFMT@ INTLTOOL_MSGMERGE = @INTLTOOL_MSGMERGE@ INTLTOOL_OAF_RULE = @INTLTOOL_OAF_RULE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_PONG_RULE = @INTLTOOL_PONG_RULE@ INTLTOOL_PROP_RULE = @INTLTOOL_PROP_RULE@ INTLTOOL_SCHEMAS_RULE = @INTLTOOL_SCHEMAS_RULE@ INTLTOOL_SERVER_RULE = @INTLTOOL_SERVER_RULE@ INTLTOOL_SERVICE_RULE = @INTLTOOL_SERVICE_RULE@ INTLTOOL_SHEET_RULE = @INTLTOOL_SHEET_RULE@ INTLTOOL_SOUNDLIST_RULE = @INTLTOOL_SOUNDLIST_RULE@ INTLTOOL_THEME_RULE = @INTLTOOL_THEME_RULE@ INTLTOOL_UI_RULE = @INTLTOOL_UI_RULE@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_XAM_RULE = @INTLTOOL_XAM_RULE@ INTLTOOL_XGETTEXT = @INTLTOOL_XGETTEXT@ INTLTOOL_XML_NOMERGE_RULE = @INTLTOOL_XML_NOMERGE_RULE@ INTLTOOL_XML_RULE = @INTLTOOL_XML_RULE@ ISOCODES_CFLAGS = @ISOCODES_CFLAGS@ ISOCODES_FALSE = @ISOCODES_FALSE@ ISOCODES_LIBS = @ISOCODES_LIBS@ ISOCODES_TRUE = @ISOCODES_TRUE@ KATOOB_CFLAGS = @KATOOB_CFLAGS@ KATOOB_ICON = @KATOOB_ICON@ KATOOB_LIBS = @KATOOB_LIBS@ LDFLAGS = @LDFLAGS@ LIBCURL = @LIBCURL@ LIBCURL_CPPFLAGS = @LIBCURL_CPPFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAEMO_CFLAGS = @MAEMO_CFLAGS@ MAEMO_FALSE = @MAEMO_FALSE@ MAEMO_LIBS = @MAEMO_LIBS@ MAEMO_TRUE = @MAEMO_TRUE@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MULTIPRESS_FALSE = @MULTIPRESS_FALSE@ MULTIPRESS_TRUE = @MULTIPRESS_TRUE@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ PRINT_CFLAGS = @PRINT_CFLAGS@ PRINT_FALSE = @PRINT_FALSE@ PRINT_LIBS = @PRINT_LIBS@ PRINT_TRUE = @PRINT_TRUE@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SPELL_CFLAGS = @SPELL_CFLAGS@ SPELL_FALSE = @SPELL_FALSE@ SPELL_LIBS = @SPELL_LIBS@ SPELL_TRUE = @SPELL_TRUE@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WIN32_FALSE = @WIN32_FALSE@ WIN32_TRUE = @WIN32_TRUE@ XGETTEXT = @XGETTEXT@ X_OSSO_SERVICE = @X_OSSO_SERVICE@ _libcurl_config = @_libcurl_config@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ bindir = @bindir@ build_alias = @build_alias@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ SUBDIRS = pixmaps xdgmime EXTRA_DIST = win32/katoob.rc AM_CXXFLAGS = $(CFLAGS) $(KATOOB_CFLAGS) $(HIGHLIGHT_CFLAGS) $(GTKSOURCEVIEW_CFLAGS) $(MAEMO_CFLAGS) $(PRINT_CFLAGS) $(am__append_6) $(am__append_10) $(am__append_13) AM_CFLAGS = $(AM_CXXFLAGS) katoob_LDADD = $(KATOOB_LIBS) $(HIGHLIGHT_LIBS) $(BZ2_LIBS) $(GZ_LIBS) $(GTKSOURCEVIEW_LIBS) $(MAEMO_LIBS) $(LIBCURL) $(PRINT_LIBS) $(am__append_7) $(am__append_11) $(am__append_14) katoob_SOURCES = katoob.cc main.cc window.cc document.cc conf.cc statusbar.cc menubar.cc toolbar.cc dialogs.cc encodings.cc mdi.cc utils.cc textbuffer.cc filedialog.cc aboutdialog.cc pipe.cc tempfile.cc searchdialog.cc replacedialog.cc label.cc undoredo.cc dict.cc import.cc export.cc preferencesdialog.cc execdialog.cc openlocationdialog.cc textview.cc applets.cc network.cc $(am__append_1) $(am__append_3) $(am__append_4) $(input_window) $(am__append_5) $(am__append_8) $(am__append_9) $(am__append_12) $(am__append_15) $(am__append_16) $(am__append_17) noinst_HEADERS = katoob.hh window.hh document.hh conf.hh statusbar.hh menubar.hh toolbar.hh dialogs.hh encodings.hh mdi.hh utils.hh textbuffer.hh filedialog.hh aboutdialog.hh pipe.hh tempfile.hh searchdialog.hh replacedialog.hh label.hh undoredo.hh dict.hh import.hh export.hh preferencesdialog.hh execdialog.hh spell.hh spelldialog.hh macros.h openlocationdialog.hh textview.hh dbus.hh isocodes.hh spellmenu.hh applets.hh network.hh $(am__append_2) @EMULATOR_TRUE@input_window = inputwindow.hh inputwindow.cc @MULTIPRESS_TRUE@input_window = inputwindow.hh inputwindow.cc all: all-recursive .SUFFIXES: .SUFFIXES: .c .cc .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 \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu 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 install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)" @list='$(bin_PROGRAMS)'; for p in $$list; do \ p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ if test -f $$p \ ; then \ f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ else :; fi; \ done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; for p in $$list; do \ f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ rm -f "$(DESTDIR)$(bindir)/$$f"; \ done clean-binPROGRAMS: -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) katoob$(EXEEXT): $(katoob_OBJECTS) $(katoob_DEPENDENCIES) @rm -f katoob$(EXEEXT) $(CXXLINK) $(katoob_LDFLAGS) $(katoob_OBJECTS) $(katoob_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/aboutdialog.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/applets.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/conf.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dbus.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dialogs.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dict.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/document.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/emulator.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/encodings.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/execdialog.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/export.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/filedialog.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/import.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/inputwindow.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/isocodes.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/katoob.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/label.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/maemo-wrapper.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mdi.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/menubar.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/multipress.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/multipresswindow.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/network.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/openlocationdialog.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pagesetup.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pipe.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/preferencesdialog.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/previewdialog.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/print.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/printsettings.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/replacedialog.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/searchdialog.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/shape_arabic.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sourcemanager.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sourceview.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/spell.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/spelldialog.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/spellmenu.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/statusbar.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tempfile.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/textbuffer.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/textview.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/toolbar.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/undoredo.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/utils.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/window.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xdgmime.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xdgmimealias.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xdgmimecache.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xdgmimeglob.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xdgmimeint.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xdgmimemagic.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xdgmimeparent.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` xdgmimealias.o: xdgmime/xdgmimealias.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT xdgmimealias.o -MD -MP -MF "$(DEPDIR)/xdgmimealias.Tpo" -c -o xdgmimealias.o `test -f 'xdgmime/xdgmimealias.c' || echo '$(srcdir)/'`xdgmime/xdgmimealias.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/xdgmimealias.Tpo" "$(DEPDIR)/xdgmimealias.Po"; else rm -f "$(DEPDIR)/xdgmimealias.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='xdgmime/xdgmimealias.c' object='xdgmimealias.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/xdgmimealias.Po' tmpdepfile='$(DEPDIR)/xdgmimealias.TPo' @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xdgmimealias.o `test -f 'xdgmime/xdgmimealias.c' || echo '$(srcdir)/'`xdgmime/xdgmimealias.c xdgmimealias.obj: xdgmime/xdgmimealias.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT xdgmimealias.obj -MD -MP -MF "$(DEPDIR)/xdgmimealias.Tpo" -c -o xdgmimealias.obj `if test -f 'xdgmime/xdgmimealias.c'; then $(CYGPATH_W) 'xdgmime/xdgmimealias.c'; else $(CYGPATH_W) '$(srcdir)/xdgmime/xdgmimealias.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/xdgmimealias.Tpo" "$(DEPDIR)/xdgmimealias.Po"; else rm -f "$(DEPDIR)/xdgmimealias.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='xdgmime/xdgmimealias.c' object='xdgmimealias.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/xdgmimealias.Po' tmpdepfile='$(DEPDIR)/xdgmimealias.TPo' @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xdgmimealias.obj `if test -f 'xdgmime/xdgmimealias.c'; then $(CYGPATH_W) 'xdgmime/xdgmimealias.c'; else $(CYGPATH_W) '$(srcdir)/xdgmime/xdgmimealias.c'; fi` xdgmimeparent.o: xdgmime/xdgmimeparent.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT xdgmimeparent.o -MD -MP -MF "$(DEPDIR)/xdgmimeparent.Tpo" -c -o xdgmimeparent.o `test -f 'xdgmime/xdgmimeparent.c' || echo '$(srcdir)/'`xdgmime/xdgmimeparent.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/xdgmimeparent.Tpo" "$(DEPDIR)/xdgmimeparent.Po"; else rm -f "$(DEPDIR)/xdgmimeparent.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='xdgmime/xdgmimeparent.c' object='xdgmimeparent.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/xdgmimeparent.Po' tmpdepfile='$(DEPDIR)/xdgmimeparent.TPo' @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xdgmimeparent.o `test -f 'xdgmime/xdgmimeparent.c' || echo '$(srcdir)/'`xdgmime/xdgmimeparent.c xdgmimeparent.obj: xdgmime/xdgmimeparent.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT xdgmimeparent.obj -MD -MP -MF "$(DEPDIR)/xdgmimeparent.Tpo" -c -o xdgmimeparent.obj `if test -f 'xdgmime/xdgmimeparent.c'; then $(CYGPATH_W) 'xdgmime/xdgmimeparent.c'; else $(CYGPATH_W) '$(srcdir)/xdgmime/xdgmimeparent.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/xdgmimeparent.Tpo" "$(DEPDIR)/xdgmimeparent.Po"; else rm -f "$(DEPDIR)/xdgmimeparent.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='xdgmime/xdgmimeparent.c' object='xdgmimeparent.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/xdgmimeparent.Po' tmpdepfile='$(DEPDIR)/xdgmimeparent.TPo' @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xdgmimeparent.obj `if test -f 'xdgmime/xdgmimeparent.c'; then $(CYGPATH_W) 'xdgmime/xdgmimeparent.c'; else $(CYGPATH_W) '$(srcdir)/xdgmime/xdgmimeparent.c'; fi` xdgmimeglob.o: xdgmime/xdgmimeglob.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT xdgmimeglob.o -MD -MP -MF "$(DEPDIR)/xdgmimeglob.Tpo" -c -o xdgmimeglob.o `test -f 'xdgmime/xdgmimeglob.c' || echo '$(srcdir)/'`xdgmime/xdgmimeglob.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/xdgmimeglob.Tpo" "$(DEPDIR)/xdgmimeglob.Po"; else rm -f "$(DEPDIR)/xdgmimeglob.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='xdgmime/xdgmimeglob.c' object='xdgmimeglob.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/xdgmimeglob.Po' tmpdepfile='$(DEPDIR)/xdgmimeglob.TPo' @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xdgmimeglob.o `test -f 'xdgmime/xdgmimeglob.c' || echo '$(srcdir)/'`xdgmime/xdgmimeglob.c xdgmimeglob.obj: xdgmime/xdgmimeglob.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT xdgmimeglob.obj -MD -MP -MF "$(DEPDIR)/xdgmimeglob.Tpo" -c -o xdgmimeglob.obj `if test -f 'xdgmime/xdgmimeglob.c'; then $(CYGPATH_W) 'xdgmime/xdgmimeglob.c'; else $(CYGPATH_W) '$(srcdir)/xdgmime/xdgmimeglob.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/xdgmimeglob.Tpo" "$(DEPDIR)/xdgmimeglob.Po"; else rm -f "$(DEPDIR)/xdgmimeglob.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='xdgmime/xdgmimeglob.c' object='xdgmimeglob.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/xdgmimeglob.Po' tmpdepfile='$(DEPDIR)/xdgmimeglob.TPo' @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xdgmimeglob.obj `if test -f 'xdgmime/xdgmimeglob.c'; then $(CYGPATH_W) 'xdgmime/xdgmimeglob.c'; else $(CYGPATH_W) '$(srcdir)/xdgmime/xdgmimeglob.c'; fi` xdgmimemagic.o: xdgmime/xdgmimemagic.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT xdgmimemagic.o -MD -MP -MF "$(DEPDIR)/xdgmimemagic.Tpo" -c -o xdgmimemagic.o `test -f 'xdgmime/xdgmimemagic.c' || echo '$(srcdir)/'`xdgmime/xdgmimemagic.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/xdgmimemagic.Tpo" "$(DEPDIR)/xdgmimemagic.Po"; else rm -f "$(DEPDIR)/xdgmimemagic.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='xdgmime/xdgmimemagic.c' object='xdgmimemagic.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/xdgmimemagic.Po' tmpdepfile='$(DEPDIR)/xdgmimemagic.TPo' @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xdgmimemagic.o `test -f 'xdgmime/xdgmimemagic.c' || echo '$(srcdir)/'`xdgmime/xdgmimemagic.c xdgmimemagic.obj: xdgmime/xdgmimemagic.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT xdgmimemagic.obj -MD -MP -MF "$(DEPDIR)/xdgmimemagic.Tpo" -c -o xdgmimemagic.obj `if test -f 'xdgmime/xdgmimemagic.c'; then $(CYGPATH_W) 'xdgmime/xdgmimemagic.c'; else $(CYGPATH_W) '$(srcdir)/xdgmime/xdgmimemagic.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/xdgmimemagic.Tpo" "$(DEPDIR)/xdgmimemagic.Po"; else rm -f "$(DEPDIR)/xdgmimemagic.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='xdgmime/xdgmimemagic.c' object='xdgmimemagic.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/xdgmimemagic.Po' tmpdepfile='$(DEPDIR)/xdgmimemagic.TPo' @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xdgmimemagic.obj `if test -f 'xdgmime/xdgmimemagic.c'; then $(CYGPATH_W) 'xdgmime/xdgmimemagic.c'; else $(CYGPATH_W) '$(srcdir)/xdgmime/xdgmimemagic.c'; fi` xdgmime.o: xdgmime/xdgmime.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT xdgmime.o -MD -MP -MF "$(DEPDIR)/xdgmime.Tpo" -c -o xdgmime.o `test -f 'xdgmime/xdgmime.c' || echo '$(srcdir)/'`xdgmime/xdgmime.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/xdgmime.Tpo" "$(DEPDIR)/xdgmime.Po"; else rm -f "$(DEPDIR)/xdgmime.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='xdgmime/xdgmime.c' object='xdgmime.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/xdgmime.Po' tmpdepfile='$(DEPDIR)/xdgmime.TPo' @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xdgmime.o `test -f 'xdgmime/xdgmime.c' || echo '$(srcdir)/'`xdgmime/xdgmime.c xdgmime.obj: xdgmime/xdgmime.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT xdgmime.obj -MD -MP -MF "$(DEPDIR)/xdgmime.Tpo" -c -o xdgmime.obj `if test -f 'xdgmime/xdgmime.c'; then $(CYGPATH_W) 'xdgmime/xdgmime.c'; else $(CYGPATH_W) '$(srcdir)/xdgmime/xdgmime.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/xdgmime.Tpo" "$(DEPDIR)/xdgmime.Po"; else rm -f "$(DEPDIR)/xdgmime.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='xdgmime/xdgmime.c' object='xdgmime.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/xdgmime.Po' tmpdepfile='$(DEPDIR)/xdgmime.TPo' @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xdgmime.obj `if test -f 'xdgmime/xdgmime.c'; then $(CYGPATH_W) 'xdgmime/xdgmime.c'; else $(CYGPATH_W) '$(srcdir)/xdgmime/xdgmime.c'; fi` xdgmimecache.o: xdgmime/xdgmimecache.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT xdgmimecache.o -MD -MP -MF "$(DEPDIR)/xdgmimecache.Tpo" -c -o xdgmimecache.o `test -f 'xdgmime/xdgmimecache.c' || echo '$(srcdir)/'`xdgmime/xdgmimecache.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/xdgmimecache.Tpo" "$(DEPDIR)/xdgmimecache.Po"; else rm -f "$(DEPDIR)/xdgmimecache.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='xdgmime/xdgmimecache.c' object='xdgmimecache.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/xdgmimecache.Po' tmpdepfile='$(DEPDIR)/xdgmimecache.TPo' @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xdgmimecache.o `test -f 'xdgmime/xdgmimecache.c' || echo '$(srcdir)/'`xdgmime/xdgmimecache.c xdgmimecache.obj: xdgmime/xdgmimecache.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT xdgmimecache.obj -MD -MP -MF "$(DEPDIR)/xdgmimecache.Tpo" -c -o xdgmimecache.obj `if test -f 'xdgmime/xdgmimecache.c'; then $(CYGPATH_W) 'xdgmime/xdgmimecache.c'; else $(CYGPATH_W) '$(srcdir)/xdgmime/xdgmimecache.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/xdgmimecache.Tpo" "$(DEPDIR)/xdgmimecache.Po"; else rm -f "$(DEPDIR)/xdgmimecache.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='xdgmime/xdgmimecache.c' object='xdgmimecache.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/xdgmimecache.Po' tmpdepfile='$(DEPDIR)/xdgmimecache.TPo' @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xdgmimecache.obj `if test -f 'xdgmime/xdgmimecache.c'; then $(CYGPATH_W) 'xdgmime/xdgmimecache.c'; else $(CYGPATH_W) '$(srcdir)/xdgmime/xdgmimecache.c'; fi` xdgmimeint.o: xdgmime/xdgmimeint.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT xdgmimeint.o -MD -MP -MF "$(DEPDIR)/xdgmimeint.Tpo" -c -o xdgmimeint.o `test -f 'xdgmime/xdgmimeint.c' || echo '$(srcdir)/'`xdgmime/xdgmimeint.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/xdgmimeint.Tpo" "$(DEPDIR)/xdgmimeint.Po"; else rm -f "$(DEPDIR)/xdgmimeint.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='xdgmime/xdgmimeint.c' object='xdgmimeint.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/xdgmimeint.Po' tmpdepfile='$(DEPDIR)/xdgmimeint.TPo' @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xdgmimeint.o `test -f 'xdgmime/xdgmimeint.c' || echo '$(srcdir)/'`xdgmime/xdgmimeint.c xdgmimeint.obj: xdgmime/xdgmimeint.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT xdgmimeint.obj -MD -MP -MF "$(DEPDIR)/xdgmimeint.Tpo" -c -o xdgmimeint.obj `if test -f 'xdgmime/xdgmimeint.c'; then $(CYGPATH_W) 'xdgmime/xdgmimeint.c'; else $(CYGPATH_W) '$(srcdir)/xdgmime/xdgmimeint.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/xdgmimeint.Tpo" "$(DEPDIR)/xdgmimeint.Po"; else rm -f "$(DEPDIR)/xdgmimeint.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='xdgmime/xdgmimeint.c' object='xdgmimeint.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/xdgmimeint.Po' tmpdepfile='$(DEPDIR)/xdgmimeint.TPo' @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xdgmimeint.obj `if test -f 'xdgmime/xdgmimeint.c'; then $(CYGPATH_W) 'xdgmime/xdgmimeint.c'; else $(CYGPATH_W) '$(srcdir)/xdgmime/xdgmimeint.c'; fi` .cc.o: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cc.obj: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` uninstall-info-am: # 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): @set fnord $$MAKEFLAGS; amf=$$2; \ 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; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" mostlyclean-recursive clean-recursive distclean-recursive \ maintainer-clean-recursive: @set fnord $$MAKEFLAGS; amf=$$2; \ 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; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (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; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ 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 || \ tags="$$tags $$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; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ 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; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) $(mkdir_p) $(distdir)/win32 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || mkdir "$(distdir)/$$subdir" \ || exit 1; \ (cd $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="../$(top_distdir)" \ distdir="../$(distdir)/$$subdir" \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile $(PROGRAMS) $(HEADERS) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done 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: -rm -f $(CONFIG_CLEAN_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-binPROGRAMS clean-generic mostlyclean-am distclean: distclean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive info: info-recursive info-am: install-data-am: install-exec-am: install-binPROGRAMS install-info: install-info-recursive install-man: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-binPROGRAMS uninstall-info-am uninstall-info: uninstall-info-recursive .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \ clean clean-binPROGRAMS clean-generic clean-recursive ctags \ ctags-recursive distclean distclean-compile distclean-generic \ distclean-recursive distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-binPROGRAMS \ install-data install-data-am install-exec install-exec-am \ install-info install-info-am install-man install-strip \ installcheck installcheck-am installdirs installdirs-am \ maintainer-clean maintainer-clean-generic \ maintainer-clean-recursive mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-recursive pdf pdf-am ps ps-am \ tags tags-recursive uninstall uninstall-am \ uninstall-binPROGRAMS uninstall-info-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: katoob-0.5.9.1/src/katoob.cc0000644000175000017500000001631010746617674012464 00000000000000/* * katoob.cc * This file is part of katoob * * Copyright (C) 2006, 2007 Mohammed Sameer * * 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. */ #ifdef HAVE_CONFIG_H #include #endif /* HAVE_CONFIG_H */ #include #include "katoob.hh" #include "network.hh" #include "dialogs.hh" #include "macros.h" //#include "utils.hh" #ifdef ENABLE_MAEMO #include #include #include #endif #include /** * \brief constructor. * * The constructor will initialize Gtk::Main, call Katoob::parse to parse the command * line arguments we get. * If compiled with DBus sypport, it will try to check if there's a running instance * of katoob. If it finds one, we will message it to open Katoob::files. * If we can send the message, we will exit. Otherwise we * will start DBus::start */ Katoob::Katoob(int argc, char *argv[]) : Gtk::Main(argc, argv), conf(encodings) { #ifdef ENABLE_MAEMO osso_context = NULL; osso_context = osso_initialize(PACKAGE, VERSION, true, NULL); if(!osso_context) { std::cerr << "osso_initialize() failed." << std::endl; return; } // We listen to any libosso events. /* Add handler for hardware D-BUS messages */ int result = osso_hw_set_event_cb(osso_context, NULL, Katoob::hw_event_handler, NULL); if (result != OSSO_OK) { g_print("Error setting HW state callback (%d)\n", result); osso_deinitialize(osso_context); osso_context = NULL; return; } /* Add handler for Exit D-BUS messages */ /* result = osso_application_set_exit_cb(Katoob::osso_context, exit_event_handler, NULL); if (result != OSSO_OK) { g_print("Error setting exit callback (%d)\n", result); osso_deinitialize(osso_context); osso_context = NULL; return; } */ Hildon::init(); Hildon::fm_init(); #endif Network net(conf); parse(argc, argv); #ifdef ENABLE_DBUS if (dbus.ping()) { if (dbus.open_files(files)) { exit(0); } else { dbus.start(); } } else { dbus.start(); } #endif #ifdef ENABLE_HIGHLIGHT SourceManager::init(); #endif Glib::set_application_name(PACKAGE); // Let's connect our signals. int signals[] = {SIGILL, // Illegal instruction. SIGABRT, // Abort signal from abort() SIGFPE, // Floating point exception SIGTERM, // Termination signal SIGSEGV, // Invalid memory reference (Segmentation violation) SIGINT, // Interrupt from keyboard SIGBUS, // Bus error (bad memory access) SIGXCPU, // CPU time limit exceeded SIGXFSZ, // File size limit exceeded 0x0 }; int *sig = signals; while (*sig) { signal(*sig, signal_cb); sig++; } signal(SIGPIPE, SIG_IGN); // Broken pipe: write to pipe with no readers signal(SIGHUP, SIG_IGN); // Hangup detected on controlling terminal or death of controlling process } /** * \brief destructor. */ Katoob::~Katoob() { #ifdef ENABLE_MAEMO if (osso_context) { osso_deinitialize(osso_context); } #endif for (unsigned x = 0; x < children.size(); x++) { delete children[x]; } children.clear(); Network::destroy(); } /** * \brief signal(7) handler. * * This handles any signal(7) we might get. * \param signum the signal number. */ void Katoob::signal_cb(int signum) { static volatile int s = 0; if (s) { return; } ++s; std::cerr << "We received a signal (" << signum << "): " << strsignal(signum) << std::endl; for (unsigned x = 0; x < children.size(); x++) { children[x]->autosave(); } // katoob_error(Utils::substitute(_("Katoob crashed (%s). Katoob tried to save all the open documents. They will be recovered the next time you run Katoob."), strsignal(signum))); exit(255); } /** * \brief parse the command line arguments. * * Parse the command line arguments and take actions accordingly. * If we are passed one or more files, we will put them in Katoob::files. * \param argc the argc parameter passed to main(). * \param argv the argv parameter passed to main(). */ void Katoob::parse(int argc, char *argv[]) { for (int x = 1; x < argc; x++) { if ((!strcmp(argv[x], "-u")) || (!strcmp(argv[x], "--usage"))) { usage(); exit(0); } if ((!strcmp(argv[x], "-h")) || (!strcmp(argv[x], "--help"))) { help(); exit(0); } if ((!strcmp(argv[x], "-v")) || (!strcmp(argv[x], "--version"))) { version(); exit(0); } files.push_back(argv[x]); } } /** * \brief run the main loop (We call Gtk::Main::run()). * \return always 0 */ int Katoob::run() { Gtk::Main::run(); return 0; } /** * \brief create a new Window */ void Katoob::window() { // TODO: Use open_files() instead of passing them to the constructor ?? Window *win = new Window(conf, encodings, files); win->signal_quit.connect(sigc::mem_fun(*this, &Katoob::quit_cb)); children.push_back(win); #ifdef ENABLE_DBUS dbus.signal_open_files.connect(sigc::mem_fun(win, &Window::open_files)); #endif #ifdef ENABLE_MAEMO #ifdef ENABLE_DBUS dbus.signal_request_top.connect(sigc::mem_fun(win, &Window::signal_request_top_cb)); #endif Hildon::Program::get_instance()->add_window(*win); #endif } /** * \brief print usage (--usage). */ void Katoob::usage() { std::cout << "usage: katoob [--help] [--version] [--usage] [file1 file2 file3... ]" << std::endl; } /** * \brief print our version (--version). */ void Katoob::version() { std::cout << PACKAGE << " " << VERSION << std::endl; } /** * \brief print the help (--help). */ void Katoob::help() { std::cout << "usage: katoob [OPTIONS] [FILES_TO_OPEN]" << std::endl << " -h, --help Show this help message" << std::endl << " -v, --version Display version information" << std::endl << " -u, --usage Display brief usage message" << std::endl; } /** * \brief quit the Gtk::Main loop by calling Gtk::Main::quit() */ void Katoob::quit_cb() { Gtk::Main::quit(); } #ifdef ENABLE_MAEMO bool Katoob::ok() { return osso_context != NULL; } int Katoob::get_error() { return OSSO_ERROR; } void Katoob::hw_event_handler(osso_hw_state_t *state, gpointer data) { if ((state->shutdown_ind) || (state->save_unsaved_data_ind)) { for (unsigned x = 0; x < children.size(); x++) { children[x]->autosave(); } if (state->shutdown_ind) { Gtk::Main::quit(); } } if (state->memory_low_ind) { // Maybe trim our closed windows list ? } } /* void Katoob::exit_event_handler(gboolean die_now, gpointer data) { for (unsigned x = 0; x < children.size(); x++) { children[x]->autosave(); } Gtk::Main::quit(); } */ #endif std::vector Katoob::children; katoob-0.5.9.1/src/main.cc0000644000175000017500000000306310746617674012132 00000000000000/* * main.cc * This file is part of katoob * * Copyright (C) 2006, 2007 Mohammed Sameer * * 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. */ #ifdef HAVE_CONFIG_H #include #endif /* HAVE_CONFIG_H */ #include #include "katoob.hh" #include "macros.h" //#include /** * \brief Our entry point. * * Our entry point. Will setup gettext, initialize gthread, * construct a Katoob instance, ask Katoob to create a Window and ask Katoob * to run its main loop. */ int main(int argc, char *argv[]) { #ifdef ENABLE_NLS bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR); bind_textdomain_codeset (PACKAGE, "UTF-8"); textdomain (PACKAGE); #endif // signal(SIGPIPE, SIG_IGN); Katoob katoob(argc, argv); #ifdef ENABLE_MAEMO if (katoob.ok()) { #endif katoob.window(); return katoob.run(); #ifdef ENABLE_MAEMO } else { return katoob.get_error(); } #endif } katoob-0.5.9.1/src/window.cc0000644000175000017500000005217610746617674012526 00000000000000/* * window.cc * This file is part of katoob * * Copyright (C) 2006, 2007 Mohammed Sameer * * 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. */ #ifdef HAVE_CONFIG_H #include #endif /* HAVE_CONFIG_H */ #include #include #include #include "aboutdialog.hh" #include "window.hh" #include "utils.hh" #include "macros.h" #include "dialogs.hh" #include "preferencesdialog.hh" Window::Window(Conf& conf, Encodings& encodings, std::vector& files) : _conf(conf), _encodings(encodings), menubar(conf, encodings #ifdef ENABLE_EMULATOR , Emulator::list_layouts() #endif #ifdef ENABLE_MULTIPRESS , Multipress::list_layouts() #endif ), toolbar(conf), mdi(conf, encodings), statusbar(conf), box(false, 0) { #ifdef ENABLE_MAEMO Hildon::Window::set_menu(menubar); Hildon::Window::add_toolbar(toolbar.get_main()); // Hildon::Window::add_toolbar(toolbar.get_extended()); #else box.pack_start(menubar, Gtk::PACK_SHRINK, 0); box.pack_start(toolbar.get_main(), false, false, 0); // box.pack_start(toolbar.get_extended(), Gtk::PACK_SHRINK, 0); #endif box.pack_start(toolbar.get_extended(), Gtk::PACK_SHRINK, 0); box.pack_start(mdi, Gtk::PACK_EXPAND_WIDGET, 0); box.pack_start(statusbar, Gtk::PACK_SHRINK, 0); add(box); // Now let's connect our signals. connect_menubar_signals(); connect_toolbar_signals(); connect_mdi_signals(); reset_gui(); mdi.scan_temp(); // This is here after we connect the signals // So we can get the signals emitted when we create the first document. // Now let's create the children. // If MDI has an active Document then we managed to recover something. // And in that case, we won't create a new document. if ((files.size() == 0) && (!mdi.get_active())) { mdi.create_document(); } else { for (unsigned int x = 0; x < files.size(); x++) { mdi.create_document(files[x]); } files.clear(); // It's possible that we might fail to detect the encoding of all the files // passed as arguments. In this case, we will create a blank document. // We can't the number of the documents because MDI has no size method. if (!mdi.get_active()) { mdi.create_document(); } } move(conf.get("x", 50), conf.get("y", 50)); resize (conf.get("w", 500), conf.get("h", 400)); #ifdef GLIBMM_EXCEPTIONS_ENABLED try { set_icon_from_file(Utils::get_data_path("katoob-small.png")); } #ifndef _WIN32 catch (Glib::Error& er) { std::cout << er.what() << std::endl; } #else catch (...) { // NOTE: Why the hell can't I catch Glib::Error or Glib::FileError under win32 ? #ifndef NDEBUG std::cout << "I can't set the main window icon to " << Utils::get_data_path("katoob-small.png") << std::endl; #endif } #endif #else /* ! GLIBMM_EXCEPTIONS_ENABLED */ std::auto_ptr error; set_icon_from_file(Utils::get_data_path("katoob-small.png"), error); if (error.get()) { std::cout << error->what() << std::endl; } #endif // set_title(); signal_delete_event().connect(sigc::mem_fun(*this, &Window::signal_delete_event_cb)); // We don't call show_all(); here as our statusbar needs to hide a few things! box.show(); mdi.show_all(); show(); Document *doc = mdi.get_active(); if (doc) { doc->grab_focus(); } #if (defined ENABLE_EMULATOR) || (defined ENABLE_MULTIPRESS) std::string err; #endif #ifdef ENABLE_EMULATOR if (!Emulator::ok(err)) { err += _(" The keyboard emulator will not work."); katoob_error(err); } #endif #ifdef ENABLE_MULTIPRESS if (!Multipress::ok(err)) { err += _(" Multipress will not work."); katoob_error(err); } #endif std::string ver = conf.get_version(); if ((ver.size() == 0) && conf.ok()) { katoob_info(_("A lot of the configuration options have been changed in this version.\nPlease adjust the configuration first.")); signal_preferences_activate_cb(); } // DnD std::list targets; targets.push_back(Gtk::TargetEntry("text/uri-list") ); drag_dest_set(targets, Gtk::DEST_DEFAULT_ALL, Gdk::ACTION_DEFAULT | Gdk::ACTION_COPY | Gdk::ACTION_MOVE | Gdk::ACTION_LINK | Gdk::ACTION_PRIVATE | Gdk::ACTION_ASK ); signal_drag_data_received().connect(sigc::mem_fun(*this, &Window::signal_drag_data_received_cb)); // Multipress. #ifdef ENABLE_MULTIPRESS _multipress.signal_invalid_key.connect(sigc::mem_fun(*this, &Window::signal_invalid_key_cb)); _multipress.signal_insert_key.connect(sigc::mem_fun(*this, &Window::signal_insert_key_cb)); #endif #if defined(ENABLE_EMULATOR) || defined(ENABLE_MULTIPRESS) // Statusbar input button. statusbar.signal_input_toggled.connect(mem_fun(*this, &Window::signal_input_toggled_cb)); // The input window signals. input_window.signal_button_clicked.connect(sigc::mem_fun(*this, &Window::signal_insert_key_cb)); input_window.signal_dialog_closed.connect(sigc::mem_fun(*this, &Window::signal_input_window_dialog_closed_cb)); #endif #ifdef ENABLE_MAEMO signal_window_state_event().connect(sigc::mem_fun(*this, &Window::signal_window_state_event_cb)); is_fullscreen = false; #endif } Window::~Window() { } void Window::connect_toolbar_signals() { toolbar.signal_create_clicked.connect(sigc::mem_fun(mdi, &MDI::create_cb)); toolbar.signal_open_clicked.connect(sigc::mem_fun(mdi, &MDI::open_cb)); toolbar.signal_save_clicked.connect(sigc::mem_fun(mdi, &MDI::save_cb)); #ifdef ENABLE_PRINT toolbar.signal_print_clicked.connect(sigc::mem_fun(mdi, &MDI::print_cb)); #endif toolbar.signal_close_clicked.connect(sigc::mem_fun(mdi, &MDI::close_cb)); toolbar.signal_undo_clicked.connect(sigc::mem_fun(mdi, &MDI::undo_cb)); toolbar.signal_redo_clicked.connect(sigc::mem_fun(mdi, &MDI::redo_cb)); toolbar.signal_cut_clicked.connect(sigc::mem_fun(mdi, &MDI::cut_cb)); toolbar.signal_copy_clicked.connect(sigc::mem_fun(mdi, &MDI::copy_cb)); toolbar.signal_paste_clicked.connect(sigc::mem_fun(mdi, &MDI::paste_cb)); toolbar.signal_erase_clicked.connect(sigc::mem_fun(mdi, &MDI::erase_cb)); #ifdef ENABLE_MAEMO toolbar.signal_full_screen_clicked.connect(sigc::mem_fun(*this, &Window::toggle_full_screen)); #endif // The rest of the extended toolbar signals. #ifdef ENABLE_SPELL toolbar.signal_dictionary_changed.connect(sigc::mem_fun(*this, &Window::signal_dictionary_changed_cb)); toolbar.signal_spell_clicked.connect(sigc::mem_fun(mdi, &MDI::do_spell)); #endif toolbar.signal_search_activated.connect(sigc::mem_fun(*this, &Window::signal_search_activated_cb)); toolbar.signal_go_to_activated.connect(sigc::mem_fun(mdi, &MDI::goto_line_cb2)); toolbar.signal_extra_button_clicked.connect(sigc::mem_fun(mdi, &MDI::signal_extra_button_clicked_cb)); } void Window::connect_menubar_signals() { menubar.signal_create_activate.connect(sigc::mem_fun(mdi, &MDI::create_cb)); menubar.signal_open_activate.connect(sigc::mem_fun(mdi, &MDI::open_cb)); menubar.signal_open_location_activate.connect(sigc::mem_fun(mdi, &MDI::open_location_cb)); menubar.signal_save_activate.connect(sigc::mem_fun(mdi, &MDI::save_cb)); menubar.signal_save_as_activate.connect(sigc::mem_fun(mdi, &MDI::save_as_cb)); menubar.signal_save_copy_activate.connect(sigc::mem_fun(mdi, &MDI::save_copy_cb)); menubar.signal_revert_activate.connect(sigc::mem_fun(mdi, &MDI::revert_cb)); #ifdef ENABLE_PRINT menubar.signal_print_activate.connect(sigc::mem_fun(mdi, &MDI::print_cb)); menubar.signal_print_preview_activate.connect(sigc::mem_fun(mdi, &MDI::print_preview_cb)); menubar.signal_page_setup_activate.connect(sigc::mem_fun(mdi, &MDI::page_setup_cb)); #endif menubar.signal_close_activate.connect(sigc::mem_fun(mdi, &MDI::close_cb)); menubar.signal_quit_activate.connect(sigc::mem_fun(*this, &Window::signal_quit_activate_cb)); menubar.signal_undo_activate.connect(sigc::mem_fun(mdi, &MDI::undo_cb)); menubar.signal_redo_activate.connect(sigc::mem_fun(mdi, &MDI::redo_cb)); menubar.signal_cut_activate.connect(sigc::mem_fun(mdi, &MDI::cut_cb)); menubar.signal_copy_activate.connect(sigc::mem_fun(mdi, &MDI::copy_cb)); menubar.signal_paste_activate.connect(sigc::mem_fun(mdi, &MDI::paste_cb)); menubar.signal_erase_activate.connect(sigc::mem_fun(mdi, &MDI::erase_cb)); menubar.signal_select_all_activate.connect(sigc::mem_fun(mdi, &MDI::select_all_cb)); menubar.signal_preferences_activate.connect(sigc::mem_fun(*this, &Window::signal_preferences_activate_cb)); menubar.signal_insert_file_activate.connect(sigc::mem_fun(mdi, &MDI::insert_file_cb)); menubar.signal_find_activate.connect(sigc::mem_fun(mdi, &MDI::find_cb)); menubar.signal_find_next_activate.connect(sigc::mem_fun(mdi, &MDI::find_next_cb)); menubar.signal_replace_activate.connect(sigc::mem_fun(mdi, &MDI::replace_cb)); menubar.signal_goto_line_activate.connect(sigc::mem_fun(mdi, &MDI::goto_line_cb)); signal_wrap_text_activate_conn = menubar.signal_wrap_text_activate.connect(sigc::mem_fun(*this, &Window::signal_wrap_text_activate_cb)); signal_line_numbers_activate_conn = menubar.signal_line_numbers_activate.connect(sigc::mem_fun(*this, &Window::signal_line_numbers_activate_cb)); menubar.signal_statusbar_activate.connect(sigc::mem_fun(statusbar, &Statusbar::show)); menubar.signal_toolbar_activate.connect(sigc::mem_fun(toolbar, &Toolbar::show_main)); menubar.signal_extended_toolbar_activate.connect(sigc::mem_fun(toolbar, &Toolbar::show_extended)); // Toolbar type menubar.signal_text_activate.connect(sigc::mem_fun(toolbar, &Toolbar::set_text)); menubar.signal_icons_activate.connect(sigc::mem_fun(toolbar, &Toolbar::set_icons)); menubar.signal_both_activate.connect(sigc::mem_fun(toolbar, &Toolbar::set_both)); menubar.signal_beside_activate.connect(sigc::mem_fun(toolbar, &Toolbar::set_beside)); menubar.signal_execute_activate.connect(sigc::mem_fun(mdi, &MDI::execute_cb)); #ifdef ENABLE_SPELL menubar.signal_spell_activate.connect(sigc::mem_fun(mdi, &MDI::do_spell)); signal_auto_spell_activate_conn = menubar.signal_auto_spell_activate.connect(sigc::mem_fun(mdi, &MDI::set_auto_spell)); #endif menubar.signal_save_all_activate.connect(sigc::mem_fun(mdi, &MDI::save_all_cb)); menubar.signal_close_all_activate.connect(sigc::mem_fun(mdi, &MDI::close_all_cb)); menubar.signal_about_activate.connect(sigc::ptr_fun(&AboutDialog::run)); menubar.signal_recent_activate.connect(sigc::mem_fun(mdi, &MDI::recent_cb)); #if defined(ENABLE_EMULATOR) || defined(ENABLE_MULTIPRESS) menubar.signal_layout_activate.connect(sigc::mem_fun(*this, &Window::signal_layout_activate_cb)); #endif menubar.signal_encoding_activate.connect(sigc::mem_fun(*this, &Window::signal_encoding_activate_cb)); menubar.signal_document_activate.connect(sigc::mem_fun(mdi, &MDI::activate)); #ifdef ENABLE_HIGHLIGHT menubar.signal_highlighter_activate.connect(sigc::mem_fun(mdi, &MDI::set_highlight)); #endif menubar.signal_closed_document_activate.connect(sigc::mem_fun(mdi, &MDI::closed_document_activated_cb)); // Import menubar.signal_import_activate.connect(sigc::mem_fun(mdi, &MDI::import_cb)); // Export menubar.signal_export_activate.connect(sigc::mem_fun(mdi, &MDI::export_cb)); } void Window::connect_mdi_signals() { #ifdef ENABLE_SPELL mdi.signal_document_spell_enabled.connect(sigc::mem_fun(*this, &Window::on_document_spell_enabled_cb)); #endif mdi.signal_document_wrap_text.connect(sigc::mem_fun(*this, &Window::signal_document_wrap_text_cb)); mdi.signal_document_line_numbers.connect(sigc::mem_fun(*this, &Window::signal_document_line_numbers_cb)); mdi.signal_recent_regenerate.connect(sigc::mem_fun(menubar, &MenuBar::create_recent)); #ifdef ENABLE_HIGHLIGHT mdi.signal_document_highlight.connect(sigc::mem_fun(menubar, &MenuBar::set_highlight)); #endif // Document status signals. mdi.signal_document_encoding_changed.connect(sigc::mem_fun(*this, &Window::signal_document_encoding_changed_cb)); mdi.signal_document_overwrite_toggled.connect(sigc::mem_fun(*this, &Window::signal_document_overwrite_toggled_cb)); mdi.signal_document_cursor_moved.connect(sigc::mem_fun(*this, &Window::signal_document_cursor_moved_cb)); mdi.signal_document_file_changed.connect(sigc::mem_fun(*this, &Window::signal_document_file_changed_cb)); mdi.signal_document_readonly.connect(sigc::mem_fun(*this, &Window::signal_document_readonly_cb)); mdi.signal_document_can_redo.connect(sigc::mem_fun(*this, &Window::signal_document_can_redo_cb)); mdi.signal_document_can_undo.connect(sigc::mem_fun(*this, &Window::signal_document_can_undo_cb)); mdi.signal_document_modified.connect(sigc::mem_fun(*this, &Window::signal_document_modified_cb)); mdi.signal_document_title_changed.connect(sigc::mem_fun(*this, &Window::signal_document_title_changed_cb)); #ifdef ENABLE_SPELL mdi.signal_document_dictionary_changed.connect(sigc::mem_fun(*this, &Window::signal_document_dictionary_changed_cb)); #endif mdi.signal_doc_activated.connect(sigc::mem_fun(*this, &Window::on_doc_activated)); mdi.signal_reset_gui.connect(sigc::mem_fun(*this, &Window::on_reset_gui)); mdi.signal_document_added.connect(sigc::mem_fun(*this, &Window::on_document_added_cb)); mdi.signal_document_removed.connect(sigc::mem_fun(*this, &Window::on_document_removed_cb)); // undo closed documents signals. mdi.signal_closed_document_erased.connect(sigc::mem_fun(menubar, &MenuBar::signal_closed_document_erased_cb)); mdi.signal_closed_document_added.connect(sigc::mem_fun(menubar, &MenuBar::signal_closed_document_added)); } void Window::signal_drag_data_received_cb(const Glib::RefPtr& context, int x, int y, const Gtk::SelectionData& selection, guint info, guint time) { std::vector files = selection.get_uris(); std::string filename; #ifndef GLIBMM_EXCEPTIONS_ENABLED std::auto_ptr error; #endif for (unsigned x = 0; x < files.size(); x++) { #ifdef GLIBMM_EXCEPTIONS_ENABLED try { filename = Glib::filename_from_uri(files[x]); mdi.create_document(filename); } catch(Glib::ConvertError& e) { katoob_error(e.what()); } #else filename = Glib::filename_from_uri(files[x], error); if (error.get()) { katoob_error(error->what()); error.reset(); } #endif } } void Window::set_title(const char *str) { #ifdef ENABLE_MAEMO if (str) { Gtk::Window::set_title(str); } #else std::stringstream title; if (str) { title << str << " - "; } title << PACKAGE; Gtk::Window::set_title(title.str()); #endif } void Window::signal_preferences_activate_cb() { PreferencesDialog dialog(_conf, _encodings); dialog.signal_apply_clicked.connect(sigc::mem_fun(*this, &Window::reset_gui)); if (dialog.run()) { reset_gui(); } } #ifdef ENABLE_SPELL void Window::on_document_spell_enabled_cb(bool s) { signal_auto_spell_activate_conn.block(); menubar.enable_auto_spell(s); toolbar.enable_dictionary(s); signal_auto_spell_activate_conn.unblock(); } #endif bool Window::signal_delete_event_cb(GdkEventAny *event) { if (mdi.close_all()) { signal_quit.emit(); return false; } else { return true; } } void Window::signal_quit_activate_cb() { if (mdi.close_all()) { signal_quit.emit(); } } #if defined(ENABLE_MULTIPRESS) || defined(ENABLE_EMULATOR) void Window::signal_layout_activate_cb(int which, int x) { // TODO: Store the input_window state and restore it when we enable any. assert(which < 2); #ifdef ENABLE_EMULATOR if (which == 0) { _emulator.activate(x); #ifdef ENABLE_MULTIPRESS _multipress.activate(-1); statusbar.activate_input(true); if (input_window.is_visible()) { signal_input_toggled_cb(true); } #endif } else #endif #ifdef ENABLE_MULTIPRESS if (which == 1) { _multipress.activate(x); #ifdef ENABLE_EMULATOR _emulator.activate(-1); #endif statusbar.activate_input(true); if (input_window.is_visible()) { signal_input_toggled_cb(true); } } else #endif { // x is -1 here but I'll set it manually just in case. #ifdef ENABLE_EMULATOR _emulator.activate(-1); #endif #ifdef ENABLE_MULTIPRESS _multipress.activate(-1); statusbar.activate_input(false); statusbar.set_input_status(false); #endif } } #endif void Window::signal_encoding_activate_cb(int e) { int x; if(!mdi.set_encoding(e, x)) { menubar.set_encoding(x); } } void Window::signal_document_readonly_cb(int x, bool r) { menubar.set_read_only(x, r); toolbar.set_read_only(r); } void Window::on_reset_gui(int x) { bool enable = (x == -1) ? false : true; toolbar.reset_gui(enable); menubar.reset_gui(enable); statusbar.set_overwrite(false); set_title(); } void Window::signal_document_can_redo_cb(bool can) { menubar.enable_redo(can); toolbar.enable_redo(can); } void Window::signal_document_can_undo_cb(bool can) { menubar.enable_undo(can); toolbar.enable_undo(can); } void Window::signal_document_modified_cb(int x, bool m) { statusbar.set_modified(m); menubar.document_set_modified(x, m); } void Window::signal_document_file_changed_cb(std::string f) { // TODO: Do we need this ?? // set_title(const_cast(f.c_str())); } void Window::signal_document_encoding_changed_cb(int e) { statusbar.set_encoding(_encodings.name(e)); menubar.set_encoding(e); } void Window::signal_document_title_changed_cb(std::string t, int x) { set_title(t.c_str()); menubar.document_set_label(x, t); } void Window::on_document_added_cb(bool ro, bool m, std::string t) { set_title(t.c_str()); menubar.document_add(t, ro, m); } void Window::on_document_removed_cb(int x) { menubar.document_remove(x); } void Window::on_doc_activated(int x) { menubar.document_set_active(x); } void Window::signal_document_wrap_text_cb(bool w) { signal_wrap_text_activate_conn.block(); menubar.enable_wrap_text(w); signal_wrap_text_activate_conn.unblock(); } void Window::signal_document_line_numbers_cb(bool ln) { signal_line_numbers_activate_conn.block(); menubar.enable_line_numbers(ln); signal_line_numbers_activate_conn.unblock(); } void Window::signal_search_activated_cb(std::string s) { mdi.find(s); } void Window::reset_gui() { toolbar.reset_gui(); menubar.reset_gui(); statusbar.reset_gui(); mdi.reset_gui(); // NOTE: Should we enable this ?? /* move(_conf.get("x", 50), _conf.get("y", 50)); resize(_conf.get("w", 500), _conf.get("h", 400)); */ } #ifdef ENABLE_SPELL void Window::signal_dictionary_changed_cb(std::string d) { std::string old; if (!mdi.set_dictionary(old, d)) { toolbar.set_dictionary(old); } } #endif #ifdef ENABLE_DBUS void Window::open_files(std::vector& f) { for (unsigned int x = 0; x < f.size(); x++) { mdi.create_document(f[x]); } if (f.size() == 0) { mdi.create_document(); } present(); } #endif void Window::signal_wrap_text_activate_cb(bool s) { mdi.set_wrap_text(s); } void Window::signal_line_numbers_activate_cb(bool s) { mdi.set_line_numbers(s); } #ifdef ENABLE_MULTIPRESS void Window::signal_insert_key_cb(std::string& str) { Document *doc = mdi.get_active(); assert(doc != NULL); if ((!doc) || (doc->get_readonly())) { return; } doc->insert(str); } void Window::signal_invalid_key_cb(GdkEventKey *event) { #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED Gtk::Window::on_key_press_event(event); #else // TODO: This is not that good. Document *doc = mdi.get_active(); if ((event->length > 0) && (doc) && (!doc->get_readonly())) { gunichar ch = gdk_unicode_to_keyval(event->keyval); if (ch != event->keyval | 0x01000000) { gchar out[6]; int len = g_unichar_to_utf8(ch, out); if (len != 0) { std::string str(out, len); doc->insert(str); } } } #endif } #endif #if defined(ENABLE_EMULATOR) || defined(ENABLE_MULTIPRESS) void Window::signal_input_toggled_cb(bool active) { if (!active) { input_window.hide(); return; } #ifdef ENABLE_EMULATOR if (_emulator.get_active()) { input_window.set_layout(_emulator.get_layout()); } else #endif #ifdef ENABLE_MULTIPRESS if (_multipress.get_active()) { input_window.set_layout(_multipress.get_layout()); } #endif input_window.show(); } void Window::signal_input_window_dialog_closed_cb() { statusbar.set_input_status(false); } #endif #ifdef ENABLE_MAEMO bool Window::signal_window_state_event_cb(GdkEventWindowState* event) { if (event->type == GDK_WINDOW_STATE) { if (event->changed_mask & GDK_WINDOW_STATE_FULLSCREEN) { if (event->new_window_state & GDK_WINDOW_STATE_FULLSCREEN) { is_fullscreen = true; } else { is_fullscreen = false; } } } return false; } void Window::toggle_full_screen() { if (is_fullscreen) { unfullscreen(); } else { fullscreen(); } } void Window::signal_request_top_cb() { present(); } #endif void Window::autosave() { mdi.autosave(); } katoob-0.5.9.1/src/document.cc0000644000175000017500000013516310746617674013033 00000000000000/* * document.cc * This file is part of katoob * * Copyright (C) 2006, 2007 Mohammed Sameer * * 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. */ #ifdef HAVE_CONFIG_H #include #endif /* HAVE_CONFIG_H */ #include "document.hh" #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #include #include #include #include #include #include #include #include #include "dialogs.hh" #include "macros.h" #include "textbuffer.hh" #include "utils.hh" #ifdef ENABLE_MAEMO #include #endif // TODO: // highlight current line // right click on a word -> spell check word // right click on a line -> spell check line // right click on a selection -> spell check selection. // Conf& _conf for search dialog ? // connect the emulator to all our dialogs. // custom print won't work ? // for searching, We need a way to handle the tashkeel and kashida. // unix/windows/mac line feeds. // syntax highlighting mode -> spell checker should check comments // and strings only! void _on_move_cursor(GtkTextView *textview, GtkMovementStep arg1, gint arg2, gboolean arg3, gpointer user_data) { static_cast(user_data)->on_move_cursor(); } void _on_toggle_overwrite(GtkTextView *textview, gpointer user_data) { static_cast(user_data)->on_toggle_overwrite(); } #ifdef ENABLE_MAEMO void __tap_and_hold(GtkWidget *widget, gpointer user_data) { static_cast(user_data)->_tap_and_hold(); } #endif Document::Document(Conf& conf, Encodings& encodings, int num) : _label(conf), _conf(conf), _encodings(encodings), _ok(true), _modified(false), _encoding(_encodings.utf8()), _readonly(false), _line_numbers(false), __on_move_cursor(0), __on_toggle_overwrite(0), _overwrite(false) { _label.set_text(num); if (!create()) { _ok = false; } } Document::Document(Conf& conf, Encodings& encodings, int encoding, std::string& file) : _label(conf), _conf(conf), _encodings(encodings), _ok(false), _readonly(false), _line_numbers(false), __on_move_cursor(0), __on_toggle_overwrite(0), _overwrite(false) { std::string contents; if (Glib::file_test(file, Glib::FILE_TEST_IS_DIR)) { katoob_error(file + _(" Is a directory.")); return; } // If the file is not there, We will pretend that we did open it. if ((Glib::file_test(file, Glib::FILE_TEST_EXISTS)) && (Glib::file_test(file, Glib::FILE_TEST_IS_REGULAR))) { try { contents = Glib::file_get_contents(file); } catch (Glib::FileError& err) { katoob_error(err.what()); return; } } _file = file; // is the file writable ? _readonly = !Utils::katoob_file_is_writable(file); std::string contents2; int enc = _encodings.convert_to(contents, contents2, encoding); if (enc == -1) { _ok = false; katoob_error(Utils::substitute(_("Couldn't detect the encoding of %s"), file)); return; } _encoding = enc; if (!create(enc == _encodings.utf8() ? contents : contents2)) { _ok = false; return; } #ifdef GLIBMM_EXCEPTIONS_ENABLED try { _label.set_text(Glib::filename_to_utf8(Glib::path_get_basename(file))); } catch (Glib::ConvertError& err) { _label.set_text(Glib::filename_display_basename(file)); } #else std::auto_ptr error; _label.set_text(Glib::filename_to_utf8(Glib::path_get_basename(file), error)); if (error.get()) { _label.set_text(Glib::filename_display_basename(file)); } #endif _ok = true; set_modified(false); #ifdef ENABLE_HIGHLIGHT // auto highlight. if (conf.get("highlight_auto", true)) { set_highlight(SourceManager::get_language_for_file(file)); } #endif } Document::Document(Conf& conf, Encodings& encodings, int num, int encoding) : _label(conf), _conf(conf), _encodings(encodings), _ok(false), _readonly(false), _line_numbers(false), __on_move_cursor(0), __on_toggle_overwrite(0), _overwrite(false) { // TODO: Bad, We are reading character by character. std::string contents; char ch; while (std::cin.get(ch)) { contents += ch; } std::string contents2; int enc = _encodings.convert_to(contents, contents2, encoding); if (enc == -1) { _ok = false; std::string str(_("Couldn't detect the encoding of the text.")); katoob_error(str); return; } _encoding = enc; if (!create(enc == _encodings.utf8() ? contents : contents2)) { _ok = false; return; } _label.set_text(num); _ok = true; set_modified(true); } Document::~Document() { clear_do(); // Disconnect our handlers. if (__on_move_cursor) { g_signal_handler_disconnect(G_OBJECT(_text_view.gobj()), __on_move_cursor); } if (__on_toggle_overwrite) { g_signal_handler_disconnect(G_OBJECT(_text_view.gobj()), __on_toggle_overwrite); } // let's remove our temporary file. std::string error; if (!Utils::unlock_file(_tmp_file_fd, error)) { std::cerr << "Failed to unlock " << _tmp_file << " " << error << std::endl; } close(_tmp_file_fd); unlink(_tmp_file.c_str()); } void Document::connect_signals() { insert_conn = _text_view.get_buffer()->signal_insert().connect(sigc::mem_fun(this, &Document::on_insert)); erase_conn = _text_view.get_buffer()->signal_erase().connect(sigc::mem_fun(*this, &Document::on_erase)); _text_view.signal_populate_popup().connect(sigc::mem_fun(*this, &Document::on_populate_popup_cb)); _text_view.get_buffer()->signal_mark_set().connect(sigc::mem_fun(*this, &Document::on_mark_set_cb)); _text_view.signal_text_view_request_file_open.connect(sigc::mem_fun(*this, &Document::signal_text_view_request_file_open_cb)); // TODO: How can one access the move-cursor signal ? __on_move_cursor = g_signal_connect_after(G_OBJECT(_text_view.gobj()), "move-cursor", G_CALLBACK (_on_move_cursor), this); __on_toggle_overwrite = g_signal_connect (G_OBJECT(_text_view.gobj()), "toggle-overwrite", G_CALLBACK (_on_toggle_overwrite), this); } bool Document::has_selection() { Gtk::TextIter a, b; return _text_view.get_buffer()->get_selection_bounds(a, b); } void Document::block_do() { // We can't block the signal otherwise our spell checker invalidation // methods won't be called. do_undo = false; } void Document::unblock_do() { do_undo = true; } void Document::clear_do() { clear_do(_undo); clear_do(_redo); } void Document::clear_do(std::vector& v) { while (true) { if (v.size() == 0) { break; } KatoobDoElem *e = v.back(); v.pop_back(); delete e; } } int Document::get_line_count() { return _text_view.get_buffer()->get_char_count() ? _text_view.get_buffer()->get_line_count() : 0; } bool Document::create(const std::string& str) { if (!Utils::create_recovery_file(_tmp_file, _tmp_file_fd)) { katoob_error(Utils::substitute(_("Failed to create the autorecovery file %s"), _tmp_file)); return false; } std::string error; if (!Utils::lock_file(_tmp_file_fd, error)) { katoob_error(Utils::substitute("Failed to lock the temporary file: %s", error)); return false; } create_ui(); connect_signals(); if (str.size() == 0) { return true; } // We must connect the signals first so that the spell checker can create its lines // We will block do_undo if (do_undo) { do_undo = false; set_text(const_cast(str)); do_undo = true; } else { set_text(const_cast(str)); } return true; } void Document::set_text(std::string& str) { _text_view.get_buffer()->set_text(str); } void Document::create_ui() { _text_view.signal_expose_event().connect(sigc::mem_fun(*this, &Document::expose_event_cb)); #ifdef ENABLE_MAEMO g_signal_connect(_text_view.gobj(), "tap-and-hold", G_CALLBACK(__tap_and_hold), this); gtk_widget_tap_and_hold_setup(GTK_WIDGET(_text_view.gobj()), NULL, NULL, GTK_TAP_AND_HOLD_NONE); #endif //#ifdef ENABLE_HIGHLIGHT // _text_view.set_buffer(SourceBuffer::create()); //#else _text_view.set_buffer(TextBuffer::create(_conf)); //#endif set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC); set_shadow_type(Gtk::SHADOW_IN); _text_view.set_left_margin(10); _text_view.set_right_margin(10); _text_view.set_flags(Gtk::CAN_FOCUS); set_readonly(_readonly); numbers_right = Gtk::TEXT_WINDOW_RIGHT; #ifndef ENABLE_HIGHLIGHT numbers_left = Gtk::TEXT_WINDOW_LEFT; #endif grab_focus(); #ifdef ENABLE_SPELL std::string error; do_spell = _conf.get("spell_check", true); spell_dict = _conf.get("default_dict", "en"); // NOTE: We don't check because we might not have a speller pointer created // Because aspell wanted to load the locale dictionary and failed. // If we check here, We will be getting the previous error which is a result // of aspell not an operation we did! /* if (!spell.ok(error)) { katoob_error(error); do_spell = false; } */ // else { if (!spell.set_lang(spell_dict, error)) { katoob_error(error); do_spell = false; } // } // We create the first line. lines.push_back(false); spell_checker_connect_worker(); misspelled_tag = _text_view.get_buffer()->create_tag(); #ifndef ENABLE_MAEMO misspelled_tag->property_underline() = Pango::UNDERLINE_ERROR; #else g_object_set(misspelled_tag->gobj(), "underline", PANGO_UNDERLINE_ERROR, NULL); #endif #endif // TODO: Make these configurable ? _search_from_beginning = true; _search_wrap = true; add(_text_view); show_all(); reset_gui(); #ifdef ENABLE_MAEMO // Hide the Input Method menu. We put this here so GtkSettings will have the property already. g_object_set(Gtk::Settings::get_default()->gobj(), "gtk-show-input-method-menu", FALSE, NULL); #endif } void Document::grab_focus() { _text_view.grab_focus(); } bool Document::has_focus() { return _text_view.has_focus(); } bool Document::save() { return save(_file, _encoding, false); } void Document::set_modified(bool m) { if (_text_view.get_buffer()->get_modified() != m) { _text_view.get_buffer()->set_modified(m); signal_modified_set.emit(m); } } void Document::set_readonly(bool r) { _text_view.set_editable(!r); signal_readonly_set.emit(r); } void Document::scroll_to(int x) { Gtk::TextIter iter = _text_view.get_buffer()->get_iter_at_line(--x); _text_view.get_buffer()->place_cursor(iter); _text_view.scroll_to(iter); /* _text_view.get_buffer()->move_mark(_text_view.get_buffer()->get_insert(), iter); */ } bool Document::save(std::string& ofile, int enc, bool replace) { std::string txt = _text_view.get_buffer()->get_text(); std::string str, err; if (enc == _encodings.utf8()) { if (Utils::katoob_write(_conf, ofile, txt, err)) { set_modified(false); if (replace) { set_readonly(false); set_file(ofile); } return true; } else { katoob_error(err); return false; } } else if (_encodings.convert_from(txt, str, enc) != -1) { if (Utils::katoob_write(_conf, ofile, str, err)) { set_modified(false); if (replace) { set_readonly(false); set_file(ofile); // NOTE: We are doing it manually without calling set_encoding() because it will also mark // the Document as modified but it's not. _encoding = enc; signal_encoding_changed.emit(enc); } return true; } else { katoob_error(err); return false; } } else { katoob_error(str); return false; } } void Document::set_file(std::string& nfile) { _file = nfile; #ifdef GLIBMM_EXCEPTIONS_ENABLED std::string f; try { f = Glib::filename_to_utf8(Glib::path_get_basename(nfile)); } catch (...) { // We shouldn't be here. f = Glib::filename_display_basename(nfile); } #else std::auto_ptr error; std::string f = Glib::filename_to_utf8(Glib::path_get_basename(nfile), error); if (error.get()) { // We should not be getting here anyway but just in case ? f = Glib::filename_display_basename(nfile); } #endif _label.set_text(f); signal_file_changed.emit(nfile); signal_title_changed.emit(f); } void Document::on_insert(const Gtk::TextBuffer::iterator& iter , const Glib::ustring& str, int len) { // Let's add to our undo stack. if (do_undo) { undo(KATOOB_DO_INSERT, str, Glib::RefPtr::cast_dynamic(_text_view.get_buffer())->get_mark_insert_position()); } #ifdef ENABLE_SPELL spell_checker_on_insert(iter, len); spell_checker_connect_worker(); #endif on_move_cursor(); signal_modified_set.emit(true); } void Document::on_erase(const Gtk::TextBuffer::iterator& start, const Gtk::TextBuffer::iterator& end) { if (do_undo) { Glib::RefPtr b = Glib::RefPtr::cast_dynamic(_text_view.get_buffer()); undo(KATOOB_DO_DELETE, b->get_deleted(), start.get_offset()); b->clear_deleted(); } #ifdef ENABLE_SPELL spell_checker_on_erase(start, end); spell_checker_connect_worker(); #endif on_move_cursor(); signal_modified_set.emit(true); } void Document::on_mark_set_cb(const Gtk::TextBuffer::iterator& iter, const Glib::RefPtr& mark) { if ((mark) && (mark == _text_view.get_buffer()->get_insert())) { on_move_cursor(); } } void Document::on_toggle_overwrite() { // NOTE: The gtk API gives me false on the first time which is strange. _overwrite = !_overwrite; signal_overwrite_toggled.emit(_overwrite); } void Document::on_move_cursor() { Gtk::TextIter iter = _text_view.get_buffer()->get_iter_at_mark(_text_view.get_buffer()->get_insert()); signal_cursor_moved.emit(calculate_column(iter)+1, iter.get_line()+1); } int Document::calculate_column(Gtk::TextIter& iter) { // TODO: How to get the actual tab width ? int column = 0; Gtk::TextIter start = iter; start.set_line_offset(0); while (start != iter) { column += start.get_char() == '\t' ? 8 : 1; start.forward_char(); } return column; } void Document::insert(const std::string& str) { _text_view.get_buffer()->insert_at_cursor(str); } void Document::undo() { if (_undo.size() == 0) { return; } KatoobDoElem *e = _undo.back(); _undo.pop_back(); undo(e); if (_undo.size() == 0) { signal_can_undo.emit(false); } } void Document::redo() { if (_redo.size() == 0) { return; } KatoobDoElem *e = _redo.back(); _redo.pop_back(); redo(e); int x = _redo.size(); if(x == 0) { signal_can_redo.emit(false); } else if (x == 1) { signal_can_redo.emit(true); } } void Document::undo(KatoobDoType a, const std::string& t, int p) { KatoobDoElem *e = new KatoobDoElem(a, t, p); _undo.push_back(e); if (_undo.size() == 1) { signal_can_undo.emit(true); } // Did we exceed ? unsigned s = _conf.get("undono", 0); if (s == 0) { // unlimited. return; } while (s < _undo.size()) { KatoobDoElem *_e = _undo.front(); delete _e; _undo.erase(_undo.begin()); } } /* TODO: Combine the next 2 */ void Document::redo(KatoobDoElem *e) { block_do(); // We are dealing with char offsets. Gtk::TextIter iter = _text_view.get_buffer()->get_iter_at_offset(e->pos()); if (e->action() == KATOOB_DO_INSERT) { // We will delete. Gtk::TextIter iter2 = iter; int n = iter2.get_offset(); n += Glib::ustring(e->text()).size(); iter2.set_offset(n); _text_view.get_buffer()->erase(iter, iter2); } else { // We will insert. _text_view.get_buffer()->insert(iter, e->text()); } // Change action. e->toggle(); _undo.push_back(e); unblock_do(); // Did we exceed ? unsigned s = _conf.get("undono", 0); if (s == 0) { // unlimited. if (_undo.size() == 1) { signal_can_undo.emit(true); } return; } while (s < _undo.size()) { KatoobDoElem *_e = _undo.front(); delete _e; _undo.erase(_undo.begin()); } if (_undo.size() == 1) { signal_can_undo.emit(true); } } void Document::undo(KatoobDoElem *e) { block_do(); // We are dealing with char offsets. Gtk::TextIter iter = _text_view.get_buffer()->get_iter_at_offset(e->pos()); if (e->action() == KATOOB_DO_INSERT) { // We will delete. Gtk::TextIter iter2 = iter; int n = iter2.get_offset(); n += Glib::ustring(e->text()).size(); iter2.set_offset(n); _text_view.get_buffer()->erase(iter, iter2); } else { // We will insert. _text_view.get_buffer()->insert(iter, e->text()); } // Change action. e->toggle(); _redo.push_back(e); unblock_do(); // Did we exceed ? unsigned s = _conf.get("undono", 0); if (s == 0) { // unlimited. if (_redo.size() == 1) { signal_can_redo.emit(true); } return; } while (s < _redo.size()) { KatoobDoElem *_e = _redo.front(); delete _e; _redo.erase(_redo.begin()); } if (_redo.size() == 1) { signal_can_redo.emit(true); } } void Document::get_lines(std::vector& l, int x, int y) { Gtk::TextIter start, end; if (x == -1) { start = _text_view.get_buffer()->begin(); } else { start = _text_view.get_buffer()->get_iter_at_line(x); } if (y == -1) { end = _text_view.get_buffer()->end(); } else { end = _text_view.get_buffer()->get_iter_at_line(y); } get_lines(start, end, l); } void Document::get_lines(std::vector& l, int x, int y) { Gtk::TextIter start, end; if (x == -1) { start = _text_view.get_buffer()->begin(); } else { start = _text_view.get_buffer()->get_iter_at_line(x); } if (y == -1) { end = _text_view.get_buffer()->end(); } else { end = _text_view.get_buffer()->get_iter_at_line(y); } get_lines(start, end, l); } void Document::get_selection(std::vector& l) { Gtk::TextIter start, end; _text_view.get_buffer()->get_bounds(start, end); get_lines(start, end, l); } void Document::get_lines(Gtk::TextIter& start, Gtk::TextIter& end, std::vector& l) { Gtk::TextIter dummy; while (start <= end) { dummy = start; if (!dummy.ends_line()) { dummy.forward_to_line_end(); } l.push_back(_text_view.get_buffer()->get_text(start, dummy, false)); if (!start.forward_line()) { break; } } } void Document::get_lines(Gtk::TextIter& start, Gtk::TextIter& end, std::vector& l) { Gtk::TextIter dummy; while (start <= end) { dummy = start; if (!dummy.ends_line()) { dummy.forward_to_line_end(); } l.push_back(_text_view.get_buffer()->get_text(start, dummy, false)); if (!start.forward_line()) { break; } } } void Document::select_all() { Gtk::TextIter start, end; _text_view.get_buffer()->get_bounds(start, end); _text_view.get_buffer()->move_mark_by_name ("selection_bound", start); _text_view.get_buffer()->move_mark_by_name ("insert", end); } void Document::set_wrap_text(bool wrap) { _text_view.set_wrap_mode(wrap ? Gtk::WRAP_WORD : Gtk::WRAP_NONE); } void Document::line_numbers(bool show) { // #ifdef ENABLE_HIGHLIGHT // // _text_view.set_show_line_numbers(show); // // If we will be showing it on the left side then we need to inform gtksourceview. // _line_numbers = show; // if (show) { // if (_conf.get("numbers_right", true)) { // _text_view.set_border_window_size(numbers_right, 20); // } // else { // _text_view.set_border_window_size(numbers_right, 0); // } // if (_conf.get("numbers_left", true)) { // _text_view.se_left_line_numbers(true); // } // else { // _text_view.se_left_line_numbers(false); // } // } // else { // _text_view.set_border_window_size(numbers_right, 0); // _text_view.se_left_line_numbers(false); // } //#else _line_numbers = show; if (show) { if (_conf.get("numbers_right", true)) { _text_view.set_border_window_size(numbers_right, 20); } else { _text_view.set_border_window_size(numbers_right, 0); } if (_conf.get("numbers_left", true)) { #ifndef ENABLE_HIGHLIGHT _text_view.set_border_window_size(numbers_left, 20); #else _text_view.show_line_numbers(true); #endif } else { #ifndef ENABLE_HIGHLIGHT _text_view.set_border_window_size(numbers_left, 0); #else _text_view.show_line_numbers(false); #endif } } else { _text_view.set_border_window_size(numbers_right, 0); #ifndef ENABLE_HIGHLIGHT _text_view.set_border_window_size(numbers_left, 0); #else _text_view.show_line_numbers(false); #endif } //#endif } void Document::emit_signals() { signal_can_undo.emit(can_undo()); signal_can_redo.emit(can_redo()); signal_modified_set.emit(get_modified()); signal_readonly_set.emit(get_readonly()); signal_file_changed.emit(_file); signal_encoding_changed.emit(_encoding); signal_overwrite_toggled.emit(_overwrite); on_move_cursor(); signal_title_changed.emit(get_title()); #ifdef ENABLE_SPELL signal_auto_spell_set.emit(do_spell); signal_dictionary_changed.emit(spell_dict); #endif #ifdef ENABLE_HIGHLIGHT signal_highlight_set.emit(_highlight); #endif signal_wrap_text_set.emit((_text_view.get_wrap_mode() == Gtk::WRAP_NONE ? false : true)); signal_line_numbers_set.emit(_line_numbers); } bool Document::search() { assert(_search_text.size() > 0); if (_search_match_case) { // Gtk will handle this. return gtk_search(); } else { return nongtk_search(); } } // TODO: Combine the next 2. bool Document::gtk_search() { bool found; Gtk::TextIter iter, start, end; while (true) { if (_search_from_beginning) { if (_search_backwards) { iter = _text_view.get_buffer()->end(); } else { iter = _text_view.get_buffer()->begin(); } } else { Gtk::TextIter dummy1, dummy2; if (_text_view.get_buffer()->get_selection_bounds(dummy1, dummy2)) { if (_search_backwards) { iter = dummy1; } else { iter = dummy2; } } else { iter = _text_view.get_buffer()->get_iter_at_mark(_text_view.get_buffer()->get_insert()); } } if (_search_backwards) { found = iter.backward_search(_search_text, Gtk::TextSearchFlags(Gtk::TEXT_SEARCH_TEXT_ONLY|Gtk::TEXT_SEARCH_VISIBLE_ONLY), start, end); } else { found = iter.forward_search(_search_text, Gtk::TextSearchFlags(Gtk::TEXT_SEARCH_TEXT_ONLY|Gtk::TEXT_SEARCH_VISIBLE_ONLY), start, end); } if ((found) && ((_search_whole_word) && (is_whole_word(start, end)))) { highlight(start, end); _search_from_beginning = false; return true; } else if ((found) && (!_search_whole_word)) { highlight(start, end); _search_from_beginning = false; return true; } else if ((_search_wrap) && (!_search_from_beginning)) { _search_from_beginning = true; return gtk_search(); } else { return false; } } } bool Document::nongtk_search() { // NOTE: Gtk doesn't have a case insensitive search. // TODO: Is there a way better than this ? // I can iterate through the buffer but is the white soace used to split // words in all languages ?? // TODO: Cache this ? bool found; Gtk::TextIter iter, start, end; // Let's construct our buffer Glib::ustring _str = _text_view.get_buffer()->get_text(); Glib::ustring str = _str.uppercase(); _str.clear(); Glib::ustring _s = _search_text; Glib::ustring s = _s.uppercase(); _s.clear(); Glib::RefPtr buffer = Gtk::TextBuffer::create(); buffer->set_text(str); str.clear(); iter = buffer->get_iter_at_line(0); Gtk::TextIter _start = _text_view.get_buffer()->get_iter_at_line(0); Gtk::TextIter _end = _start; while (true) { if (_search_from_beginning) { if (_search_backwards) { iter = buffer->end(); } else { iter = buffer->begin(); } } else { Gtk::TextIter dummy1, dummy2; if (_text_view.get_buffer()->get_selection_bounds(dummy1, dummy2)) { if (_search_backwards) { iter.set_offset(dummy1.get_offset()); } else { iter.set_offset(dummy2.get_offset()); } } else { iter.set_offset(_text_view.get_buffer()->get_iter_at_mark(_text_view.get_buffer()->get_insert()).get_offset()); } } if (_search_backwards) { found = iter.backward_search(s, Gtk::TextSearchFlags(Gtk::TEXT_SEARCH_TEXT_ONLY|Gtk::TEXT_SEARCH_VISIBLE_ONLY), start, end); } else { found = iter.forward_search(s, Gtk::TextSearchFlags(Gtk::TEXT_SEARCH_TEXT_ONLY|Gtk::TEXT_SEARCH_VISIBLE_ONLY), start, end); } if (found) { _start.set_offset(start.get_offset()); _end.set_offset(end.get_offset()); } if ((found) && ((_search_whole_word) && (is_whole_word(_start, _end)))) { highlight(_start, _end); _search_from_beginning = false; return true; } else if ((found) && (!_search_whole_word)) { highlight(_start, _end); _search_from_beginning = false; return true; } else if ((_search_wrap) && (!_search_from_beginning)) { _search_from_beginning = true; return nongtk_search(); } else { return false; } } } void Document::highlight(Gtk::TextIter& start, Gtk::TextIter& end) { _text_view.get_buffer()->place_cursor(start); _text_view.get_buffer()->move_mark(_text_view.get_buffer()->get_insert(), end); _text_view.scroll_to(end); } bool Document::search_next() { return search(); } void Document::replace() { Gtk::TextIter _s, _e; _text_view.get_buffer()->get_selection_bounds(_s, _e); int offset = _s.get_offset(); _text_view.get_buffer()->erase_selection(); insert(_replace_text); if (_search_backwards) { _s = _text_view.get_buffer()->get_iter_at_offset(offset); _text_view.get_buffer()->place_cursor(_s); } } bool Document::expose_event_cb(GdkEventExpose *event) { if (!_line_numbers) { return false; } // TODO: Should we connect/disconnect this when needed since the spell // is handled by an idle worker ?? #ifndef ENABLE_HIGHLIGHT Glib::RefPtr wl = _text_view.get_window(numbers_left); #endif Glib::RefPtr wr = _text_view.get_window(numbers_right); if ( #ifndef ENABLE_HIGHLIGHT (!wl) && #endif (!wr)) { return false; } #ifndef ENABLE_HIGHLIGHT // left. if ((wl) && (wl->gobj() == event->window)) { paint_line_numbers(wl, event); } #endif if ((wr) && (wr->gobj() == event->window)) { paint_line_numbers(wr, event); } return false; } void Document::paint_line_numbers(Glib::RefPtr& win, GdkEventExpose *event) { // Let's get the current line number. int current_line = _text_view.get_buffer()->get_iter_at_mark(_text_view.get_buffer()->get_insert()).get_line() + 1; win->clear(); // We need to calculate the maximum width possible. Gtk::TextIter end = _text_view.get_buffer()->end(); Gtk::TextWindowType w = _text_view.get_window_type(win); std::stringstream width; width << (end.get_line() + 1); Glib::RefPtr layout = _text_view.create_pango_layout(width.str().c_str()); int size = 0, dummy; layout->get_pixel_size(size, dummy); _text_view.set_border_window_size(w, size + 4); // Now let's paint. Gdk::Rectangle rect; _text_view.get_visible_rect(rect); Gtk::TextIter s, e; int top1, top2; _text_view.get_line_at_y (s, rect.get_y(), top1); _text_view.get_line_at_y (e, rect.get_y() + rect.get_height(), top2); int _s = s.get_line(); int _e = e.get_line(); // Gtk::StateType st = _text_view.get_state(); Glib::ustring dummy3; for (int x = _s; x <= _e;) { // We are reusing what's declared above!! end.set_line(x); _text_view.get_line_yrange(end, top1, top2); _text_view.buffer_to_window_coords(w, 0, top1, top1, top2); std::string w; if (current_line == x + 1) { w = Utils::substitute("%i", ++x); layout->set_markup(w.c_str()); } else { w = Utils::substitute("%i", ++x); // NOTE: Why set_text() will keep it bold ? layout->set_markup(w.c_str()); } // TODO: This one is not working !!! //_text_view.get_style()->paint_layout(win, st, false, rect, _text_view, dummy3, 0, top2, layout); gtk_paint_layout (dynamic_cast(_text_view).gobj()->style, win->gobj(), (GtkStateType)GTK_WIDGET_STATE (_text_view.gobj()), FALSE, NULL, dynamic_cast(_text_view).gobj(), NULL, 2, top2, layout->gobj()); } } bool Document::set_encoding(int e, bool convert, std::string& err) { if (!convert) { _encoding = e; } else { std::string ntxt, txt, t = _text_view.get_buffer()->get_text(); // Let's get it back to its original encoding. if (_encodings.convert_from(t, ntxt, _encoding) != -1) { // empty this memory. t.clear(); // If the new encoding is utf8, We'll just insert it. if (e == _encodings.utf8()) { _encoding = e; _text_view.get_buffer()->set_text(ntxt); } // Now let's convert it to the new encoding. else if (_encodings.convert_to(ntxt, txt, e) != -1) { _encoding = e; _text_view.get_buffer()->set_text(txt); } else { err = txt; return false; } } else { err = ntxt; return false; } } signal_encoding_changed.emit(e); // We are emitting the signal by ourselves because a change in the encoding is not // considered a modification by Gtk::TextBuffer _text_view.get_buffer()->set_modified(true); signal_modified_set.emit(true); // TODO: Do we need to be able to undo/redo the change in the encoding ? // If yes: // we also need to save the previous encoding. // we also need to account for changes such as not having a file then saving so we will now have one, ... etc. // if (do_undo) // undo(KATOOB_DO_ENCODING, str, Glib::RefPtr::cast_dynamic(_text_view.get_buffer())->get_mark_insert_position()); return true; } bool Document::revert(std::string& err) { std::string contents; if (!Utils::katoob_read(_file, contents)) { err = contents; return false; } if (_encoding == _encodings.utf8()) { _text_view.get_buffer()->set_text(contents); } else { std::string c; if (!_encodings.convert_to(contents, c, _encoding) == -1) { err = c; return false; } else { _text_view.get_buffer()->set_text(c); } } clear_do(_undo); clear_do(_redo); set_modified(false); signal_can_undo.emit(false); signal_can_redo.emit(false); return true; } void Document::dict_menu_item_activated(std::string& word) { signal_dict_lookup_request.emit(word); } void Document::on_populate_popup_cb(Gtk::Menu *menu) { Gtk::TextIter start, end; start = _text_view.get_buffer()->get_iter_at_mark(_text_view.get_buffer()->get_insert()); end = start; if (!start.starts_word()) { start.backward_word_start(); } if (end.inside_word()) { end.forward_word_end(); } std::string word = _text_view.get_buffer()->get_text(start, end, false); if (word.size() > 0) { // if the word ends in a new line, we'll get rid of it. if (word[word.size()-1] == '\n') { word = word.substr(0, word.size()-1); } menu->items().push_back(Gtk::Menu_Helpers::SeparatorElem()); Gtk::MenuItem *item; std::string str = _("Define ") + word; menu->items().push_back(Gtk::Menu_Helpers::MenuElem(str)); item = &menu->items().back(); item->signal_activate().connect(sigc::bind(sigc::mem_fun(*this, &Document::dict_menu_item_activated), word)); } #ifdef ENABLE_SPELL if (get_readonly()) { return; } if (do_spell) { if (start.has_tag(misspelled_tag)) { // Misspelled word. menu->items().push_front(Gtk::Menu_Helpers::SeparatorElem()); Gtk::Menu *spell_menu = Gtk::manage( new Gtk::Menu()); std::string str(_("Spelling Suggestions")); Gtk::Image *image = Gtk::manage(new Gtk::Image(Gtk::StockID(Gtk::Stock::SPELL_CHECK), Gtk::IconSize(Gtk::ICON_SIZE_MENU))); menu->items().push_front(Gtk::Menu_Helpers::ImageMenuElem(str, *image, *spell_menu)); // Let's build the suggestions menu. std::vector suggestions; spell.suggest(word, suggestions); str += Utils::substitute(_("Add \"%s\" to dictionary"), word); image = Gtk::manage(new Gtk::Image(Gtk::StockID(Gtk::Stock::ADD), Gtk::IconSize(Gtk::ICON_SIZE_MENU))); spell_menu->items().push_back(Gtk::Menu_Helpers::ImageMenuElem(str, *image)); Gtk::MenuItem *item = &spell_menu->items().back(); item->signal_activate().connect(sigc::bind(sigc::mem_fun(*this, &Document::spell_menu_add_to_dictionary_cb), word, start, end)); spell_menu->items().push_back(Gtk::Menu_Helpers::SeparatorElem()); if (suggestions.size() == 0) { // TODO: Use italics markup. std::string str = _("no suggestions"); spell_menu->items().push_back(Gtk::Menu_Helpers::MenuElem(str)); item = &spell_menu->items().back(); item->set_sensitive(false); } else { for (unsigned x = 0; x < suggestions.size(); x++) { // TODO: Make this configurable ? if ((x != 0) && !(x%10)) { spell_menu->items().push_back(Gtk::Menu_Helpers::SeparatorElem()); Gtk::Menu *spell_menu_sub = Gtk::manage( new Gtk::Menu()); std::string str(_("More...")); spell_menu->items().push_back(Gtk::Menu_Helpers::MenuElem(str, *spell_menu_sub)); spell_menu = spell_menu_sub; } spell_menu->items().push_back(Gtk::Menu_Helpers::MenuElem(suggestions[x])); item = &spell_menu->items().back(); item->signal_activate().connect(sigc::bind(sigc::mem_fun(*this, &Document::spell_menu_item_activate_cb), word, suggestions[x], start, end)); } } } } #endif } #ifdef ENABLE_SPELL void Document::spell_checker_connect_worker() { if (do_spell) { if (!spell_worker_conn.connected()) { spell_worker_conn = Glib::signal_idle().connect(sigc::mem_fun(*this, &Document::spell_checker_worker), G_PRIORITY_LOW); } } else { if (spell_worker_conn.connected()) { spell_worker_conn.disconnect(); } } } bool Document::spell_checker_worker() { // Do we have lines to check ? if (spell_checker_has_lines()) { // Ask for a line Gtk::TextIter iter; spell_checker_get_line(iter); // std::cout << "Got Line " << iter.get_line() << std::endl; spell_checker_check(iter); lines[iter.get_line()] = false; } else { spell_worker_conn.disconnect(); } // We will always return true. return true; } bool Document::spell_checker_has_lines() { for (unsigned x = 0; x < lines.size(); x++) { if (lines[x]) return true; } return false; } void Document::spell_checker_on_insert(const Gtk::TextIter& iter, int len) { int pos = Glib::RefPtr::cast_dynamic(_text_view.get_buffer())->get_mark_insert_line(); int end = iter.get_line(); if (pos == end) { // TODO: There's a possibility it might be valid if the line contains // White spaces for example. lines[pos] = true; } else { // Let's insert the lines. std::vector::iterator lines_iter = lines.begin(); lines_iter += pos; lines_iter++; lines.insert(lines_iter, end - pos, true); lines[pos] = true; } } void Document::spell_checker_on_erase(const Gtk::TextIter& start, const Gtk::TextIter& end) { unsigned s = end.get_line(); unsigned e = Glib::RefPtr::cast_dynamic(_text_view.get_buffer())->get_erase_line(); if (s == e) { lines[s] = true; } else { std::vector::iterator _s, _e; _s = _e = lines.begin(); _s += s; _s++; _e += e; _e++; lines.erase(_s, _e); lines[s] = true; if (lines.size() > s) { lines[++s] = true; } } // invalidate the word. } void Document::spell_checker_get_line(Gtk::TextIter& iter) { for (unsigned x = 0; x < lines.size(); x++) { if (lines[x]) { iter = _text_view.get_buffer()->get_iter_at_line(x); return; } } #if 0 Gdk::Rectangle rect; _text_view.get_visible_rect(rect); Gtk::TextIter s, e; int top1, top2; _text_view.get_line_at_y (s, rect.get_y(), top1); _text_view.get_line_at_y (e, rect.get_y() + rect.get_height(), top2); unsigned _s = s.get_line(); unsigned _e = e.get_line(); // TODO: Is there a better way ?? Gtk::TextIter c = _text_view.get_buffer()->get_iter_at_mark(_text_view.get_buffer()->get_insert()); unsigned _c = c.get_line(); // is the cursor visible on the screen ? if ((_c >= _s) && (_c <= _e) && (lines[c.get_line()])) { iter = c; return; } // Now let's search the visible region. for (unsigned x = _s; x <= _e; x++) { if (lines[x]) { iter = _text_view.get_buffer()->get_iter_at_line(x); return; } } // Hell, We didn't find. // Let's search downwards. unsigned y = get_line_count(); // We are repeating _e here! for (unsigned x = _e; x <= y; x++) { if (lines[x]) { iter = _text_view.get_buffer()->get_iter_at_line(x); return; } } // Damn, We didn't find. Let's search upwards. // We are repeating _s here. for (unsigned x = _s; x <= 0; x--) { if (lines[x]) { iter = _text_view.get_buffer()->get_iter_at_line(x); return; } } // We shouldn't reach this. assert("1 ~= 1"); #endif } void Document::spell_checker_check(const Gtk::TextIter& iter) { Gtk::TextIter start = iter, end = iter; start.set_line_offset(0); if (!end.ends_line()) { end.forward_to_line_end(); } // std::cout << "ENTERING " << start.get_line() << ":" << start.get_line_offset() << " " << end.get_line() << ":" << end.get_line_offset() << std::endl; /* if (!start.starts_word()) { std::cout << "Doesn't start a word" << std::endl; if (start.inside_word() || start.ends_word()) { std::cout << "inside or ends" << std::endl; start.backward_word_start(); } else // probably a white space. { std::cout << "White space" << std::endl; if (start.forward_word_end()) start.backward_word_start(); } } */ // offset 0 is always inside a word. Probably this is a bug somewhere. #if 0 if (start.get_offset() == 0) { start.forward_word_end(); start.backward_word_start(); } #endif // word = start; std::string word; int s, e; while (spell_checker_get_next(start, end, word, s, e)) { spell_checker_check_word(iter, word, s, e); } } bool Document::spell_dialog_helper_check(std::string& word) { return spell.check(word); } void Document::spell_dialog_helper_replace(std::string& old_word, std::string& new_word) { spell.replace(old_word, new_word); Gtk::TextIter s, e; _text_view.get_buffer()->get_selection_bounds(s, e); _text_view.get_buffer()->erase(s, e); _text_view.get_buffer()->insert_at_cursor(new_word); _spell_end = _text_view.get_buffer()->end(); _spell_start = _text_view.get_buffer()->get_iter_at_mark(_text_view.get_buffer()->get_insert()); } void Document::spell_dialog_helper_add_to_personal(std::string& old_word) { spell.to_personal(old_word); Gtk::TextIter s, e; _text_view.get_buffer()->get_selection_bounds(s, e); _text_view.get_buffer()->remove_tag(misspelled_tag, s, e); } void Document::spell_dialog_helper_add_to_session(std::string& old_word) { spell.to_session(old_word); Gtk::TextIter s, e; _text_view.get_buffer()->get_selection_bounds(s, e); _text_view.get_buffer()->remove_tag(misspelled_tag, s, e); } bool Document::spell_dialog_helper_has_misspelled(std::string& word) { while (spell_checker_get_next(_spell_start, _spell_end, word, __spell_start, __spell_end)) { if (!spell_checker_check_word(_spell_start, word, __spell_start, __spell_end, false)) { return true; } } return false; } void Document::spell_dialog_helper_recheck() { if (do_spell) { for (unsigned x = 0; x < lines.size(); x++) { lines[x] = true; } spell_checker_connect_worker(); } } void Document::spell_dialog_helper_get_suggestions(std::string& word, std::vector& suggestions) { spell.suggest(word, suggestions); } void Document::spell_dialog_mode() { _text_view.get_buffer()->get_bounds(_spell_start, _spell_end); } bool Document::spell_checker_get_next(Gtk::TextIter& start, Gtk::TextIter& end, std::string& _word, int& s, int& e) { // std::cout << "spell_checker_get_next" << std::endl; /* if (!start.starts_word()) { std::cout << "Doesn't start a word" << std::endl; if (start.inside_word() || start.ends_word()) { std::cout << "inside or ends" << std::endl; if (start.get_offset() == 0) start.backward_word_start(); } else // probably a white space. { std::cout << "White space" << std::endl; if (start.forward_word_end()) start.backward_word_start(); } } */ Gtk::TextIter word = start; word.forward_word_end(); if (!start.starts_word()) { // std::cout << "Doesn't start a word" << std::endl; if (start.inside_word() || start.ends_word()) { // std::cout << "inside or ends" << std::endl; // if (start.get_offset() == 0) if (start.forward_word_end()) { start.backward_word_start(); } } else { // probably a white space. // std::cout << "White space" << std::endl; if (start.forward_word_end()) { start.backward_word_start(); } } } if (word > end) { start = word; return false; } if (word == start) { start = word; return false; } _word = _text_view.get_buffer()->get_text(start, word); s = start.get_offset(); e = word.get_offset(); // if (first) start = word; return true; } bool Document::spell_checker_check_word(const Gtk::TextIter& iter, std::string& word, int& s, int& e, bool mark) { Gtk::TextIter _s = iter, _e = iter; _s.set_offset(s); _e.set_offset(e); bool st = spell.check(word); // std::cout << "GOT WORD " << word << " " << st << std::endl; if (mark) { if (!st) { _text_view.get_buffer()->apply_tag(misspelled_tag, _s, _e); } else { _text_view.get_buffer()->remove_tag(misspelled_tag, _s, _e); } } else { if (!st) { highlight(_s, _e); } } return st; } void Document::set_auto_spell(bool st) { if (st == do_spell) { return; } std::string error; if (do_spell) { do_spell = st; } else { std::string error; if (!spell.set_lang(spell_dict, error)) { katoob_error(error); signal_auto_spell_set.emit(do_spell); return; } #if 0 if (!spell.ok(error)) { katoob_error(error); signal_auto_spell_set.emit(do_spell); return; } #endif else { do_spell = st; } } spell_checker_connect_worker(); if (!do_spell) { for (unsigned x = 0; x < lines.size(); x++) { lines[x] = true; } Gtk::TextIter start = _text_view.get_buffer()->begin(); Gtk::TextIter end = _text_view.get_buffer()->end(); _text_view.get_buffer()->remove_tag(misspelled_tag, start, end); } signal_auto_spell_set.emit(do_spell); } void Document::spell_menu_item_activate_cb(std::string old_word, std::string new_word, Gtk::TextIter& start, Gtk::TextIter& end) { // TODO: This will cause the whole line to be rechecked. _text_view.get_buffer()->erase(start, end); _text_view.get_buffer()->insert_at_cursor(new_word); spell.replace(old_word, new_word); } void Document::spell_menu_add_to_dictionary_cb(std::string str, Gtk::TextIter& start, Gtk::TextIter& end) { spell.to_personal(str); // TODO: We need to remove the tag from the word. // And to check the whole buffer. _text_view.get_buffer()->remove_tag(misspelled_tag, start, end); for (unsigned x = 0; x < lines.size(); x++) { lines[x] = true; } spell_checker_connect_worker(); } bool Document::set_dictionary(std::string& dict, std::string& error) { if (spell.set_lang(dict, error)) { for (unsigned x = 0; x < lines.size(); x++) { lines[x] = true; } spell_checker_connect_worker(); spell_dict = dict; return true; } return false; } #endif void Document::reset_gui() { line_numbers(_conf.get("linenumbers", false)); std::string df = Utils::katoob_get_default_font(); if (_conf.get("default_font", true)) { Pango::FontDescription fd(df); _text_view.modify_font(fd); } else { std::string font = _conf.get("font", df); Pango::FontDescription fd(font); _text_view.modify_font(fd); } set_wrap_text(_conf.get("textwrap", true)); do_undo = _conf.get("undo", true); unsigned s = _conf.get("undono", 0); if (s > 0) { while (s < _undo.size()) { KatoobDoElem *_e = _undo.front(); delete _e; _undo.erase(_undo.begin()); } if (_undo.size() == 1) { signal_can_undo.emit(true); } } if (s > 0) { while (s < _redo.size()) { KatoobDoElem *_e = _redo.front(); delete _e; _redo.erase(_redo.begin()); } if (_redo.size() == 1) { signal_can_redo.emit(true); } } _label.reset_gui(); set_tab_width(); } #ifdef ENABLE_HIGHLIGHT void Document::set_highlight(const std::string& x) { if (_highlight == x) { return; } _highlight = x; if (_highlight == "") { // none Glib::RefPtr::cast_dynamic(_text_view.get_buffer())->set_highlight(false); } else { Glib::RefPtr::cast_dynamic(_text_view.get_buffer())->set_language(SourceManager::get_language(_highlight)); Glib::RefPtr::cast_dynamic(_text_view.get_buffer())->set_highlight(true); } } #endif void Document::signal_text_view_request_file_open_cb(std::string filename) { signal_text_view_request_file_open.emit(filename); } void Document::set_tab_width() { // TODO: Cache. std::string tab; int tab_width = _conf.get("tab_width", 8); int counter = 0; int width, height; while (counter < tab_width) { tab += ' '; counter++; } Glib::RefPtr layout = _text_view.create_pango_layout(tab); layout->get_pixel_size(width, height); Pango::TabArray tab_array(1); tab_array.set_tab(0, Pango::TAB_LEFT, width); _text_view.set_tabs(tab_array); } void Document::autosave() { if (ftruncate(_tmp_file_fd, 0) == -1) { std::cerr << "Failed to truncate temp file: " << std::strerror(errno) << std::endl; return; } if (lseek(_tmp_file_fd, 0, SEEK_SET) != 0) { std::cerr << "Failed to seek in temp file: " << std::strerror(errno) << std::endl; } if (write(_tmp_file_fd, _text_view.get_buffer()->get_text().c_str(), _text_view.get_buffer()->get_text().size()) == -1) { std::cerr << "Failed to write to temp file: " << std::strerror(errno) << std::endl; } } #ifdef ENABLE_MAEMO void Document::_tap_and_hold() { g_signal_emit_by_name(GTK_WIDGET(_text_view.gobj()), "popup-menu"); } #endif katoob-0.5.9.1/src/conf.cc0000644000175000017500000002341410746617674012135 00000000000000/* * conf.cc * This file is part of katoob * * Copyright (C) 2006, 2007 Mohammed Sameer * * 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. */ #ifdef HAVE_CONFIG_H #include #endif /* HAVE_CONFIG_H */ #include #include #include #include #include #include #include "conf.hh" #include "utils.hh" Conf::Conf(Encodings& _encodings) : _ok(false) { if (!prepare_dir()) { return; } load_conf(); load_list(); defaults(_encodings); } Conf::~Conf() { if (!prepare_dir()) { return; } adjust_lists(); save_list(); std::string ver = get_version(); if (ver.size() == 0) { // We will save regardless of the user options. // We have new configuration options. if (!prepare_dir()) { return; } set("version", VERSION); save_conf(); } if (!get("saveonexit", true)) { set("saveonexit", false); if (get("savewinpos", true)) { if (!prepare_dir()) { return; } load_conf(); save_conf(); } } else { if (!prepare_dir()) { return; } save_conf(); } } void Conf::save_conf() { save_conf("config", config); save_conf("print", print); } void Conf::save_list() { save_list("recent", recent); save_list("exec-cmd", exec_cmd); save_list("locations", locations); } void Conf::save_conf(const char *_file, std::map& mp) { if (conf_dir.length()) { std::string file = conf_dir; file += _file; std::ofstream ofs; ofs.open(file.c_str()); if (ofs.is_open()) { std::map::iterator iter; for (iter = mp.begin(); iter != mp.end(); iter++) { ofs << iter->first << " = " << iter->second << std::endl; } ofs.close(); } } } void Conf::save_list(const char * _file, std::vector& mp) { if (conf_dir.length()) { std::string file = conf_dir; file += _file; std::ofstream ofs; ofs.open(file.c_str()); if (ofs.is_open()) { for (unsigned x = 0; x < mp.size(); x++) { ofs << mp[x] << std::endl; } ofs.close(); } } } bool Conf::prepare_dir() { conf_dir = (Utils::get_conf_dir() + Utils::get_dir_separator()); // We check that it's there and is a directory. if (!Glib::file_test (conf_dir, Glib::FILE_TEST_IS_DIR)) { // It might be a file, Katoob 0.1 used ~/.katoob as a configuration file. if (Glib::file_test (conf_dir, Glib::FILE_TEST_IS_REGULAR)) { // Sadly erase it. if (remove (conf_dir.c_str())) { conf_dir.clear(); g_warning ("Can't remove old configuration file"); return false; } } // Let's try to create a directory. if (g_mkdir (conf_dir.c_str(), 0700)) { conf_dir.clear(); g_warning ("Can't create configuration directory"); return false; } } // Now our crashed documents directory. if (!Glib::file_test (Utils::get_recovery_dir(), Glib::FILE_TEST_IS_DIR)) { if (g_mkdir (Utils::get_recovery_dir().c_str(), 0700)) { g_warning ("Can't create recovery directory"); return false; } } return true; } void Conf::load_conf() { _ok = load_conf("config", config); load_conf("print", print); adjust_lists(); } bool Conf::load_conf(const char *_file, std::map& mp) { if (conf_dir.length()) { std::string file(conf_dir + _file); std::ifstream ifs; ifs.open(file.c_str()); if (ifs.is_open()) { std::string buff; while (getline(ifs, buff)) { int x = buff.find('='); int y = x; while (buff[--y] == ' ') { ; // Do nothing. } std::string key(buff, 0, ++y); while (buff[++x] == ' ') { ; // Do nothing. } std::string value(buff, x); mp[key] = value; } ifs.close(); return true; } } return false; } void Conf::load_list() { load_list("recent", recent); load_list("exec-cmd", exec_cmd); load_list("locations", locations); } void Conf::load_list(const gchar *_file, std::vector& mp) { if (conf_dir.length()) { std::string file = conf_dir; file += _file; std::ifstream ifs; ifs.open(file.c_str()); if (ifs.is_open()) { std::string buff; while (getline(ifs, buff)) { mp.push_back(buff); } ifs.close(); } } } double Conf::_get(std::map& m, const char *key, double val) { std::map::iterator iter; iter = m.find(key); if (iter == m.end()) { // We'll set it. std::stringstream str; str << val; m[key] = str.str(); #ifndef NDEBUG std::cerr << __PRETTY_FUNCTION__ << " Shouldn't be here, Got key " << key << std::endl; #endif return val; } return atof(iter->second.c_str()); } int Conf::_get(std::map& m, const char *key, int val) { std::map::iterator iter; iter = m.find(key); if (iter == m.end()) { // We'll set it. std::stringstream str; str << val; m[key] = str.str(); #ifndef NDEBUG std::cerr << __PRETTY_FUNCTION__ << " Shouldn't be here, Got key " << key << std::endl; #endif return val; } return atoi(iter->second.c_str()); } bool Conf::_get(std::map& m, const char *key, bool val) { std::map::iterator iter; iter = m.find(key); if (iter == m.end()) { // We'll set it. std::stringstream str; str << (val ? 1 : 0); m[key] = str.str(); #ifndef NDEBUG std::cerr << __PRETTY_FUNCTION__ << " Shouldn't be here, Got key " << key << std::endl; #endif return val; } return atoi(iter->second.c_str()) == 0 ? false : true; } std::string Conf::_get(std::map& m, const char *key, std::string& val) { std::map::iterator iter; iter = m.find(key); if (iter == m.end()) { // We'll set it. m[key] = val; #ifndef NDEBUG std::cerr << __PRETTY_FUNCTION__ << " Shouldn't be here, Got key " << key << std::endl; #endif return val; } return iter->second; } void Conf::_set(std::map&m, const char *key, double val) { std::stringstream str; str << val; m[key] = str.str(); } void Conf::_set(std::map& m, const char *key, int val) { std::stringstream str; str << val; m[key] = str.str(); } void Conf::list_prepend(std::vector& list, const std::string& file, unsigned size) { // Let's insert it. list.insert(list.begin(), file); // let's remove it if it's in the vector. // We are starting from 1 not 0 to avoid deleting what we have just inserted. for (unsigned x = 1; x < list.size(); x++) { if (list[x] == file) { std::vector::iterator iter = list.begin(); iter += x; list.erase(iter); break; } } // Now let's truncate it if needed. if (list.size() > size) { size++; std::vector::iterator iter = list.begin(); iter += size; list.erase(iter, list.end()); } } void Conf::defaults(Encodings& enc) { std::string def_open = "WINDOWS-1256"; std::string def_save = "UTF-8"; int _default_open = -1; std::string cset; Glib::get_charset(cset); if (get("locale_enc", false)) { _default_open = enc.get(cset); } else if (get("special_enc", true)) { std::string def = get("saved_enc", def_open); _default_open = enc.get(def); } if (_default_open != -1) { enc.default_open(_default_open); } // if it's utf8 or -1, we will default to cp1256 if ((_default_open == -1) || _default_open == enc.utf8()) { enc.default_open(enc.get_by_charset(def_open)); } /* Now for the saving. */ std::string def = get("save_enc", def_save); enc.default_save(enc.get(def)); } const std::string& Conf::open_dir() { if (_open_dir.size()) { return _open_dir; } else { _open_dir = Glib::get_current_dir(); _open_dir += Utils::get_dir_separator(); return _open_dir; } } const std::string& Conf::save_dir() { if (_save_dir.size()) { return _save_dir; } else { _save_dir = Glib::get_current_dir(); _save_dir += Utils::get_dir_separator(); return _save_dir; } } void Conf::open_dir(const std::string& path) { if (Glib::file_test (path, Glib::FILE_TEST_IS_DIR)) { _open_dir = path + Utils::get_dir_separator(); } } void Conf::save_dir(const std::string& path) { if (Glib::file_test (path, Glib::FILE_TEST_IS_DIR)) { _save_dir = path + Utils::get_dir_separator(); } } void Conf::adjust_lists() { // recent unsigned x = get("recentno", 10); std::vector::iterator start; std::vector::iterator end; if (x < recent.size()) { start = recent.begin(); end = recent.end(); end++; start += x; start++; recent.erase(start, end); } // exec-cmd x = get("exec_cmd_size", 10); if (x < exec_cmd.size()) { start = exec_cmd.begin(); end = exec_cmd.end(); end++; start += x; start++; exec_cmd.erase(start, end); } } std::string Conf::get_version() { std::map::iterator iter; std::string ver; iter = config.find("version"); if (iter == config.end()) { return ver; } else { return iter->second; } } katoob-0.5.9.1/src/statusbar.cc0000644000175000017500000000565110746617674013223 00000000000000/* * statusbar.cc * This file is part of katoob * * Copyright (C) 2006, 2007 Mohammed Sameer * * 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. */ #ifdef HAVE_CONFIG_H #include #endif /* HAVE_CONFIG_H */ #include #include "statusbar.hh" #include "utils.hh" #include "macros.h" Statusbar::Statusbar(Conf& conf) : _conf(conf), red(Utils::get_data_path("red.png")), green(Utils::get_data_path("green.png")) { pack_start(red, false, false); pack_start(green, false, false); // TODO: I want to drop this! pack_start(tips, true, true); pack_start(enc, false, false); pack_start(overwrite, false, false); #if defined(ENABLE_EMULATOR) || defined(ENABLE_MULTIPRESS) pack_start(input, false, false); #endif pack_start(sbar, false, false); enc.set_size_request(150, -1); overwrite.set_size_request(75, -1); sbar.set_size_request(150, -1); set_overwrite(false); set_position(1, 1); #if defined(ENABLE_EMULATOR) || defined(ENABLE_MULTIPRESS) input.set_label(_("Input")); input.signal_toggled().connect(sigc::mem_fun(*this, &Statusbar::signal_input_toggled_cb)); activate_input(false); #endif show_all(); red.hide(); } Statusbar::~Statusbar() { } void Statusbar::set_overwrite(bool o) { overwrite.set_text(o ? _("OVR") : _("INS")); } void Statusbar::set_position(int c, int l) { sbar.pop(0); sbar.push(Utils::substitute(_(" L: %d, C: %d"), l, c)); } void Statusbar::set_modified(bool m) { if (m) { green.hide(); red.show(); } else { red.hide(); green.show(); } } void Statusbar::reset_gui() { _conf.get("statusbar", true) ? Gtk::HBox::show() : hide(); } void Statusbar::show(bool do_show) { do_show ? Gtk::HBox::show() : hide(); _conf.set("statusbar", do_show); } void Statusbar::set_encoding(std::string e) { enc.set_text(e); } #if defined(ENABLE_EMULATOR) || defined(ENABLE_MULTIPRESS) bool Statusbar::set_input_status(bool active) { if (active == input.get_active()) { return false; } else { input.set_active(active); return true; } } bool Statusbar::get_input_status() { return input.get_active(); } void Statusbar::signal_input_toggled_cb() { signal_input_toggled.emit(input.get_active()); } void Statusbar::activate_input(bool active) { input.set_sensitive(active); } #endif katoob-0.5.9.1/src/menubar.cc0000644000175000017500000007201110746617674012636 00000000000000/* * menubar.cc * This file is part of katoob * * Copyright (C) 2006, 2007 Mohammed Sameer * * 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. */ #ifdef HAVE_CONFIG_H #include #endif /* HAVE_CONFIG_H */ #include #include #include #include #include "menubar.hh" #include "macros.h" #include "utils.hh" #ifdef ENABLE_HIGHLIGHT #include "sourcemanager.hh" #endif #include #include #ifdef ENABLE_MAEMO #include #endif // TODO: Integrate with the gtk recent files thing. MenuBar::MenuBar(Conf& config, Encodings& encodings #ifdef ENABLE_EMULATOR , std::vector& em #endif #ifdef ENABLE_MULTIPRESS , std::vector& mp #endif ) : _conf(config) { file(config); edit(config); search(config); view(config, encodings); tools(config #ifdef ENABLE_EMULATOR , em #endif #ifdef ENABLE_MULTIPRESS , mp #endif ); documents(config); help(config); #ifdef ENABLE_HIGHLIGHT create_highlighters(); #endif show_all(); recent_menu_item->hide(); #ifdef ENABLE_MAEMO // NOTE: The only way to hide the icons is here. We'll have generated GtkImageMenuItems by // now and GtkSettings will carry the "gtk-menu-images" option. g_object_set(Gtk::Settings::get_default()->gobj(), "gtk-menu-images", FALSE, NULL); #endif } MenuBar::~MenuBar() { } Gtk::Menu *MenuBar::menu(char *str, Gtk::Menu *menu) { Gtk::Menu *m = Gtk::manage(new Gtk::Menu()); if (menu) { menu->items().push_back(Gtk::Menu_Helpers::MenuElem(str, *m)); } else { items().push_back(Gtk::Menu_Helpers::MenuElem(str, *m)); } return m; } Gtk::MenuItem *MenuBar::radio_item(Gtk::Menu *menu, Gtk::RadioButtonGroup& group, const std::string& str) { // I'm doing this by hand to disable the mnemonic Gtk::RadioMenuItem *item = manage(new Gtk::RadioMenuItem (group, str)); menu->items().push_back(*item); //Gtk::Menu_Helpers::RadioMenuElem(group, str)); // return &menu->items().back(); // delete item; return &menu->items().back(); // return item; } Gtk::MenuItem *MenuBar::check_item(Gtk::Menu *menu, const std::string& str) { menu->items().push_back(Gtk::Menu_Helpers::CheckMenuElem(str)); return &menu->items().back(); } Gtk::MenuItem *MenuBar::item(Gtk::Menu *menu, const Gtk::StockID& stock_id) { menu->items().push_back(Gtk::Menu_Helpers::StockMenuElem(stock_id)); return &menu->items().back(); } Gtk::MenuItem *MenuBar::item(Gtk::Menu *menu, const std::string& str) { menu->items().push_back(Gtk::Menu_Helpers::MenuElem(str)); return &menu->items().back(); } Gtk::MenuItem *MenuBar::item(Gtk::Menu *menu, const Gtk::StockID& stock_id, guint key, Gdk::ModifierType mod) { // TODO: Missing shortcuts under maemo. Gtk::AccelKey _key(key, mod); menu->items().push_back(Gtk::Menu_Helpers::StockMenuElem(stock_id, _key)); return &menu->items().back(); } Gtk::MenuItem *MenuBar::item(Gtk::Menu *menu, const std::string& str, guint key, Gdk::ModifierType mod) { Gtk::AccelKey _key(key, mod); menu->items().push_back(Gtk::Menu_Helpers::MenuElem(str, _key)); return &menu->items().back(); } void MenuBar::separator(Gtk::Menu *menu) { menu->items().push_back(Gtk::Menu_Helpers::SeparatorElem()); } void MenuBar::file(Conf& config) { file_menu = menu(_("_File")); _create = item(file_menu, Gtk::Stock::NEW); _create->signal_activate().connect(sigc::mem_fun(signal_create_activate, &sigc::signal::emit)); _open = item(file_menu, Gtk::Stock::OPEN); _open->signal_activate().connect(sigc::mem_fun(signal_open_activate, &sigc::signal::emit)); _open_location = item(file_menu, _("Open _Location...")); _open_location->signal_activate().connect(sigc::mem_fun(signal_open_location_activate, &sigc::signal::emit)); /* Recent */ recent_menu = menu(_("Recent"), file_menu); recent_menu_item = &file_menu->items().back(); separator(file_menu); _save = item(file_menu, Gtk::Stock::SAVE); _save->signal_activate().connect(sigc::mem_fun(signal_save_activate, &sigc::signal::emit)); _save_as = item(file_menu, Gtk::Stock::SAVE_AS, GDK_s, Gdk::ModifierType(GDK_CONTROL_MASK|GDK_SHIFT_MASK)); _save_as->signal_activate().connect(sigc::mem_fun(signal_save_as_activate, &sigc::signal::emit)); _save_copy = item(file_menu, _("Sa_ve Copy...")); _save_copy->signal_activate().connect(sigc::mem_fun(signal_save_copy_activate, &sigc::signal::emit)); _revert = item(file_menu, Gtk::Stock::REVERT_TO_SAVED); _revert->signal_activate().connect(sigc::mem_fun(signal_revert_activate, &sigc::signal::emit)); separator(file_menu); _import_menu = menu(_("_Import"), file_menu); std::vector imports; import_init(imports); for (unsigned x = 0; x < imports.size(); x++) { item(_import_menu, imports[x].name)->signal_activate().connect(sigc::bind(sigc::mem_fun(this, &MenuBar::signal_import_activate_cb), imports[x])); } _export_menu = menu(_("_Export"), file_menu); std::vector exports; export_init(exports); for (unsigned x = 0; x < exports.size(); x++) { item(_export_menu, exports[x].name)->signal_activate().connect(sigc::bind(sigc::mem_fun(this, &MenuBar::signal_export_activate_cb), exports[x])); } #ifdef ENABLE_PRINT separator(file_menu); _page_setup = item(file_menu, _("Page Set_up...")); _page_setup->signal_activate().connect(sigc::mem_fun(signal_page_setup_activate, &sigc::signal::emit)); _print_preview = item(file_menu, _("Print Previe_w"), GDK_p, Gdk::ModifierType(GDK_CONTROL_MASK|GDK_SHIFT_MASK)); _print_preview->signal_activate().connect(sigc::mem_fun(signal_print_preview_activate, &sigc::signal::emit)); _print = item(file_menu, Gtk::Stock::PRINT, GDK_p, Gdk::ModifierType(GDK_CONTROL_MASK)); _print->signal_activate().connect(sigc::mem_fun(signal_print_activate, &sigc::signal::emit)); #endif separator(file_menu); _close = item(file_menu, Gtk::Stock::CLOSE); _close->signal_activate().connect(sigc::mem_fun(signal_close_activate, &sigc::signal::emit)); _quit = item(file_menu, Gtk::Stock::QUIT); _quit->signal_activate().connect(sigc::mem_fun(signal_quit_activate, &sigc::signal::emit)); // We are not calling this because our reset_gui() will be called // And it'll call this. // create_recent(); } void MenuBar::create_recent() { if (!_conf.get("recent", true)) { return; } recent_menu->items().clear(); unsigned recentno = _conf.get("recentno", 10); recentno = recentno > _conf.get_recent().size() ? _conf.get_recent().size() : recentno; std::string base; for (unsigned x = 0; x < recentno; x++) { #ifdef GLIBMM_EXCEPTIONS_ENABLED try { base = Glib::filename_to_utf8(Glib::path_get_basename(_conf.get_recent()[x])); } catch (...) { base = Glib::filename_display_basename(_conf.get_recent()[x]); } #else // Note: We will skip non valid files for now. std::auto_ptr error; base = Glib::filename_to_utf8(Glib::path_get_basename(_conf.get_recent()[x]), error); if (error.get()) { base = Glib::filename_display_basename(_conf.get_recent()[x]); } #endif Gtk::MenuItem *_item = item(recent_menu, base); _item->signal_activate().connect(sigc::bind(sigc::mem_fun(*this, &MenuBar::signal_recent_activate_cb), _conf.get_recent()[x])); } } void MenuBar::edit(Conf& config) { edit_menu = menu(_("_Edit")); _undo = item(edit_menu, Gtk::Stock::UNDO, GDK_z, Gdk::ModifierType(GDK_CONTROL_MASK)); _undo->signal_activate().connect(sigc::mem_fun(signal_undo_activate, &sigc::signal::emit)); _redo = item(edit_menu, Gtk::Stock::REDO, GDK_z, Gdk::ModifierType(GDK_CONTROL_MASK|GDK_SHIFT_MASK)); _redo->signal_activate().connect(sigc::mem_fun(signal_redo_activate, &sigc::signal::emit)); separator(edit_menu); _cut = item(edit_menu, Gtk::Stock::CUT); _cut->signal_activate().connect(sigc::mem_fun(signal_cut_activate, &sigc::signal::emit)); _copy = item(edit_menu, Gtk::Stock::COPY); _copy->signal_activate().connect(sigc::mem_fun(signal_copy_activate, &sigc::signal::emit)); _paste = item(edit_menu, Gtk::Stock::PASTE); _paste->signal_activate().connect(sigc::mem_fun(signal_paste_activate, &sigc::signal::emit)); _erase = item(edit_menu, Gtk::Stock::DELETE, GDK_d, Gdk::ModifierType(GDK_CONTROL_MASK)); _erase->signal_activate().connect(sigc::mem_fun(signal_erase_activate, &sigc::signal::emit)); separator(edit_menu); _select_all = item(edit_menu, _("_Select All"), GDK_a, Gdk::ModifierType(GDK_CONTROL_MASK)); _select_all->signal_activate().connect(sigc::mem_fun(signal_select_all_activate, &sigc::signal::emit)); separator(edit_menu); _insert_file = item(edit_menu, _("_Insert File")); _insert_file->signal_activate().connect(sigc::mem_fun(signal_insert_file_activate, &sigc::signal::emit)); separator(edit_menu); _preferences = item(edit_menu, Gtk::Stock::PREFERENCES); _preferences->signal_activate().connect(sigc::mem_fun(signal_preferences_activate, &sigc::signal::emit)); } void MenuBar::search(Conf& config) { search_menu = menu(_("_Search")); _find = item(search_menu, Gtk::Stock::FIND); _find->signal_activate().connect(sigc::mem_fun(signal_find_activate, &sigc::signal::emit)); _find_next = item(search_menu, _("Find Ne_xt"), GDK_g, Gdk::ModifierType(GDK_CONTROL_MASK)); _find_next->signal_activate().connect(sigc::mem_fun(signal_find_next_activate, &sigc::signal::emit)); _replace = item(search_menu, Gtk::Stock::FIND_AND_REPLACE); _replace->signal_activate().connect(sigc::mem_fun(signal_replace_activate, &sigc::signal::emit)); separator(search_menu); _goto_line = item(search_menu, Gtk::Stock::JUMP_TO); _goto_line->signal_activate().connect(sigc::mem_fun(signal_goto_line_activate, &sigc::signal::emit)); } void MenuBar::view(Conf& config, Encodings& encodings) { Gtk::RadioButtonGroup toolbars, encoding; view_menu = menu(_("_View")); _statusbar = check_item(view_menu, _("_Statusbar")); _statusbar->signal_activate().connect(sigc::mem_fun(*this, &MenuBar::signal_statusbar_activate_cb)); _line_numbers = check_item(view_menu, _("_Line Numbers")); _line_numbers->signal_activate().connect(sigc::mem_fun(*this, &MenuBar::signal_line_numbers_activate_cb)); _wrap_text = check_item(view_menu, _("_Wrap Text")); _wrap_text->signal_activate().connect(sigc::mem_fun(*this, &MenuBar::signal_wrap_text_activate_cb)); separator(view_menu); toolbars_menu = menu(_("Toolbars"), view_menu); _toolbar = check_item(toolbars_menu, _("_Main Toolbar")); _toolbar->signal_activate().connect(sigc::mem_fun(*this, &MenuBar::signal_toolbar_activate_cb)); _extended_toolbar = check_item(toolbars_menu, _("_Extended Toolbar")); _extended_toolbar->signal_activate().connect(sigc::mem_fun(*this, &MenuBar::signal_extended_toolbar_activate_cb)); separator(toolbars_menu); // TODO: Disable these when the main toolbar is not shown. _icons = radio_item(toolbars_menu, toolbars, _("Icons only")); _icons->signal_activate().connect(sigc::mem_fun(*this, &MenuBar::signal_icons_activate_cb)); _text = radio_item(toolbars_menu, toolbars, _("Text only")); _text->signal_activate().connect(sigc::mem_fun(*this, &MenuBar::signal_text_activate_cb)); _both = radio_item(toolbars_menu, toolbars, _("Both")); _both->signal_activate().connect(sigc::mem_fun(*this, &MenuBar::signal_both_activate_cb)); _beside = radio_item(toolbars_menu, toolbars, _("Text beside icons")); _beside->signal_activate().connect(sigc::mem_fun(*this, &MenuBar::signal_beside_activate_cb)); _encoding_menu = menu(_("_Encoding"), view_menu); _encoding_menu->items().push_back(Gtk::Menu_Helpers::TearoffMenuElem()); Gtk::Menu *item; int e = 0; for (int x = 0; x < encodings.languages(); x++) { item = menu(const_cast(encodings.language(x).c_str()), _encoding_menu); for (int y = 0; y < encodings.languages(x); y++) { Gtk::MenuItem *_item = radio_item(item, encoding, encodings.name(x, y)); _item->signal_activate().connect(sigc::bind(sigc::mem_fun(*this, &MenuBar::signal_encoding_activate_cb), e++)); encoding_menu_items.push_back(_item); } } } void MenuBar::tools(Conf& config #ifdef ENABLE_EMULATOR , std::vector& em #endif #ifdef ENABLE_MULTIPRESS , std::vector& mp #endif ) { tools_menu = menu(_("_Tools")); _execute = item(tools_menu, _("_Execute Command On Buffer..."), GDK_e, Gdk::ModifierType(GDK_CONTROL_MASK)); _execute->signal_activate().connect(sigc::mem_fun(signal_execute_activate, &sigc::signal::emit)); #if defined(ENABLE_EMULATOR) || defined(ENABLE_MULTIPRESS) || defined(ENABLE_SPELL) separator(tools_menu); #endif #ifdef ENABLE_SPELL _spell = item(tools_menu, Gtk::Stock::SPELL_CHECK, GDK_F7, Gdk::ModifierType(GDK_CONTROL_MASK)); _spell->signal_activate().connect(sigc::mem_fun(signal_spell_activate, &sigc::signal::emit)); _auto_spell = check_item(tools_menu, _("_Autocheck Spelling")); _auto_spell->signal_activate().connect(sigc::mem_fun(*this, &MenuBar::signal_auto_spell_activate_cb)); #endif #if defined(ENABLE_EMULATOR) || defined(ENABLE_MULTIPRESS) Gtk::RadioButtonGroup input_group; _input_menu = menu(_("Input"), tools_menu); Gtk::MenuItem *__item = radio_item(_input_menu, input_group, _("Default")); dynamic_cast(__item)->set_active(true); __item->signal_activate().connect(sigc::bind(sigc::mem_fun(*this, &MenuBar::signal_layout_activate_cb), -1, -1)); #endif #ifdef ENABLE_EMULATOR _emulator_menu = menu(_("Keyboard emulator"), _input_menu); build_submenu(_emulator_menu, em, input_group, 0); #endif #ifdef ENABLE_MULTIPRESS _multipress_menu = menu(_("Multipress"), _input_menu); build_submenu(_multipress_menu, mp, input_group, 1); #endif } #if defined(ENABLE_EMULATOR) || defined(ENABLE_MULTIPRESS) void MenuBar::build_submenu(Gtk::Menu *menu, std::vector& items, Gtk::RadioButtonGroup& group, int num) { for (unsigned x = 0; x < items.size(); x++) { Gtk::MenuItem *_item = radio_item(menu, group, items[x]); _item->signal_activate().connect(sigc::bind(sigc::mem_fun(*this, &MenuBar::signal_layout_activate_cb), num, x)); } } #endif void MenuBar::documents(Conf& config) { documents_menu = menu(_("_Documents")); _save_all = item(documents_menu, _("Save _All")); _save_all->signal_activate().connect(mem_fun(signal_save_all_activate, &sigc::signal::emit)); _close_all = item(documents_menu, _("Clos_e All"), GDK_w, Gdk::ModifierType(GDK_CONTROL_MASK|GDK_SHIFT_MASK)); _close_all->signal_activate().connect(mem_fun(signal_close_all_activate, &sigc::signal::emit)); separator(documents_menu); opened_menu = menu(_("_Opened Documents"), documents_menu); closed_menu = menu(_("_Closed Documents"), documents_menu); documents_menu->show_all(); } void MenuBar::help(Conf& config) { help_menu = menu(_("_Help")); _about = item(help_menu, Gtk::Stock::ABOUT, GDK_t, Gdk::ModifierType(GDK_CONTROL_MASK)); _about->signal_activate().connect(mem_fun(signal_about_activate, &sigc::signal::emit)); } #if defined(ENABLE_EMULATOR) || defined(ENABLE_MULTIPRESS) void MenuBar::signal_layout_activate_cb(int x, int y) { signal_layout_activate.emit(x, y); } #endif void MenuBar::set_encoding(unsigned e) { assert (e <= encoding_menu_items.size()); _ignore_encoding_changed_signal_hack = true; Gtk::MenuItem *item = encoding_menu_items[e]; dynamic_cast(item)->set_active(true); _ignore_encoding_changed_signal_hack = false; } void MenuBar::signal_encoding_activate_cb(unsigned e) { assert (e <= encoding_menu_items.size()); if (_ignore_encoding_changed_signal_hack) { return; } Gtk::MenuItem *item = encoding_menu_items[e]; if (dynamic_cast(item)->get_active()) { signal_encoding_activate.emit(e); } } void MenuBar::signal_document_activate_cb(int x) { if (_ignore_document_clicked_signal_hack) { return; } if (static_cast(opened_menu->items()[x]).get_active()) { signal_document_activate.emit(x); } } void MenuBar::document_add(std::string& label, bool ro, bool m) { DocItem item(label, ro, m); _documents.push_back(item); documents_menu_clear(); documents_menu_build(); MenuList& ml = opened_menu->items(); MenuList::iterator iter = ml.end(); iter--; _ignore_document_clicked_signal_hack = true; Gtk::MenuItem& itm = *iter; static_cast(itm).set_active(true); _ignore_document_clicked_signal_hack = false; } void MenuBar::document_set_active(int x) { _active = x; if (_active >= opened_menu->items().size()) { return; } _ignore_document_clicked_signal_hack = true; Gtk::MenuItem& item = opened_menu->items()[x]; static_cast(item).set_active(true); // For some strange reason, We lose the colors when we switch tabs. // I'm setting them here. document_set_modified(x, _documents[x].get_modified()); document_set_readonly(x, _documents[x].get_readonly()); _ignore_document_clicked_signal_hack = false; } void MenuBar::document_remove(int x) { documents_menu_clear(); std::vector::iterator iter = _documents.begin() + x; _documents.erase(iter); documents_menu_build(); } void MenuBar::document_set_label(int x, std::string& str) { _documents[x].set_label(str); dynamic_cast(opened_menu->items()[x].get_child())->set_text(str); } void MenuBar::document_set_modified(int x, bool m) { assert (x < _documents.size()); // A read only document can't be modified. if (_documents[x].get_readonly()) return; _documents[x].set_modified(m); document_set_modified(opened_menu->items()[x], m); } void MenuBar::document_set_readonly(int x, bool ro) { assert (x < _documents.size()); // A modified document can't be read only. if (_documents[x].get_modified()) return; _documents[x].set_readonly(ro); document_set_readonly(opened_menu->items()[x], ro); } void MenuBar::document_set_readonly(Gtk::MenuItem& item, bool ro) { if (ro) katoob_set_color(_conf, dynamic_cast(item.get_child()), Utils::KATOOB_COLOR_READONLY); else document_set_normal(item); } void MenuBar::document_set_modified(Gtk::MenuItem& item, bool m) { if (m) katoob_set_color(_conf, dynamic_cast(item.get_child()), Utils::KATOOB_COLOR_MODIFIED); else document_set_normal(item); } void MenuBar::document_set_normal(Gtk::MenuItem& item) { katoob_set_color(_conf, dynamic_cast(item.get_child()), Utils::KATOOB_COLOR_NORMAL); } void MenuBar::documents_menu_clear() { opened_menu->items().clear(); } void MenuBar::documents_menu_build() { Gtk::RadioButtonGroup documents_radio; for (unsigned i = 0; i < _documents.size(); i++) { Gtk::MenuItem *_item = radio_item(opened_menu, documents_radio, _documents[i].get_label()); _item->signal_activate().connect(sigc::bind(sigc::mem_fun(*this, &MenuBar::signal_document_activate_cb), i)); Gtk::MenuItem& itm = *_item; bool r = _documents[i].get_readonly(); bool m = _documents[i].get_modified(); if (r) document_set_readonly(itm, true); if (m) document_set_modified(itm, true); if ((!r) && (!m)) document_set_normal(itm); _item->show(); } } void MenuBar::signal_closed_document_erased_cb() { // This is called when we remove an item from the beginning. _closed_documents.erase(_closed_documents.begin()); closed_documents_rebuild(); } void MenuBar::signal_closed_document_added(std::string title) { // We will add an item to the end. ClosedDocItem doc; doc.title = title; doc.n = _closed_documents.size() +1; _closed_documents.push_back(doc); closed_documents_rebuild(); } void MenuBar::closed_documents_rebuild() { closed_menu->items().clear(); Gtk::MenuItem *_item; for (unsigned i = 0; i < _closed_documents.size(); i++) { _item = item(closed_menu, _closed_documents[i].title); _item->signal_activate().connect(sigc::bind(sigc::mem_fun(*this, &MenuBar::signal_closed_document_activate_cb), i)); } } void MenuBar::signal_closed_document_activate_cb(int n) { std::vector::iterator iter = _closed_documents.begin(); iter += n; _closed_documents.erase(iter); closed_documents_rebuild(); signal_closed_document_activate.emit(n); } void MenuBar::signal_import_activate_cb(Import imp) { signal_import_activate.emit(imp); } void MenuBar::signal_export_activate_cb(Export exp) { signal_export_activate.emit(exp); } void MenuBar::reset_gui() { #ifdef ENABLE_MAEMO dynamic_cast(_line_numbers)->set_active(_conf.get("linenumbers", false)); #else dynamic_cast(_line_numbers)->set_active(_conf.get("linenumbers", true)); #endif dynamic_cast(_statusbar)->set_active(_conf.get("statusbar", true)); dynamic_cast(_wrap_text)->set_active(_conf.get("textwrap", true)); dynamic_cast(_toolbar)->set_active(_conf.get("toolbar", true)); dynamic_cast(_extended_toolbar)->set_active(_conf.get("extended_toolbar", true)); #ifdef ENABLE_SPELL dynamic_cast(_auto_spell)->set_active(_conf.get("spell_check", true)); #endif const std::string& toolbartype = _conf.get("toolbartype", "both"); if (toolbartype == "text") { dynamic_cast(_text)->set_active(); } else if (toolbartype == "icons") { dynamic_cast(_icons)->set_active(); } else if (toolbartype == "both_horiz") { dynamic_cast(_beside)->set_active(); } else { dynamic_cast(_both)->set_active(); } if (_conf.get("recent", true)) { recent_menu_item->show(); } else { recent_menu_item->hide(); } create_recent(); documents_menu_clear(); documents_menu_build(); document_set_active(_active); } #ifdef ENABLE_SPELL void MenuBar::signal_auto_spell_activate_cb() { signal_auto_spell_activate.emit(dynamic_cast(_auto_spell)->get_active()); } #endif void MenuBar::signal_toolbar_activate_cb() { signal_toolbar_activate.emit(dynamic_cast(_toolbar)->get_active()); } void MenuBar::signal_extended_toolbar_activate_cb() { signal_extended_toolbar_activate.emit(dynamic_cast(_extended_toolbar)->get_active()); } void MenuBar::signal_statusbar_activate_cb() { signal_statusbar_activate.emit(dynamic_cast(_statusbar)->get_active()); } void MenuBar::signal_line_numbers_activate_cb() { signal_line_numbers_activate.emit(dynamic_cast(_line_numbers)->get_active()); } void MenuBar::signal_wrap_text_activate_cb() { signal_wrap_text_activate.emit(dynamic_cast(_wrap_text)->get_active()); } void MenuBar::signal_icons_activate_cb() { if (dynamic_cast(_icons)->get_active()) { signal_icons_activate.emit(); } } void MenuBar::signal_text_activate_cb() { if (dynamic_cast(_text)->get_active()) { signal_text_activate.emit(); } } void MenuBar::signal_beside_activate_cb() { if (dynamic_cast(_beside)->get_active()) { signal_beside_activate.emit(); } } void MenuBar::signal_both_activate_cb() { if (dynamic_cast(_both)->get_active()) { signal_both_activate.emit(); } } void MenuBar::enable_undo(bool s) { _undo->set_sensitive(s); } void MenuBar::enable_redo(bool s) { _redo->set_sensitive(s); } void MenuBar::enable_wrap_text(bool s) { dynamic_cast(_wrap_text)->set_active(s); } void MenuBar::enable_line_numbers(bool s) { dynamic_cast(_line_numbers)->set_active(s); } #ifdef ENABLE_SPELL void MenuBar::enable_auto_spell(bool s) { dynamic_cast(_auto_spell)->set_active(s); } #endif void MenuBar::reset_gui(bool enable) { _save->set_sensitive(enable); _save_as->set_sensitive(enable); _save_copy->set_sensitive(enable); _revert->set_sensitive(enable); _export_menu->set_sensitive(enable); _import_menu->set_sensitive(enable); #ifdef ENABLE_PRINT _print_preview->set_sensitive(enable); _print->set_sensitive(enable); #endif _close->set_sensitive(enable); _undo->set_sensitive(enable); _redo->set_sensitive(enable); _cut->set_sensitive(enable); _copy->set_sensitive(enable); _paste->set_sensitive(enable); _erase->set_sensitive(enable); _select_all->set_sensitive(enable); _find->set_sensitive(enable); _find_next->set_sensitive(enable); _replace->set_sensitive(enable); _goto_line->set_sensitive(enable); _line_numbers->set_sensitive(enable); _wrap_text->set_sensitive(enable); _encoding_menu->set_sensitive(enable); _execute->set_sensitive(enable); #ifdef ENABLE_SPELL _spell->set_sensitive(enable); _auto_spell->set_sensitive(enable); #endif #ifdef ENABLE_EMULATOR _emulator_menu->set_sensitive(enable); #endif _save_all->set_sensitive(enable); _close_all->set_sensitive(enable); } void MenuBar::set_read_only(int x, bool r) { _save->set_sensitive(!r); _cut->set_sensitive(!r); _paste->set_sensitive(!r); _erase->set_sensitive(!r); _replace->set_sensitive(!r); document_set_readonly(x, r); } void MenuBar::signal_recent_activate_cb(std::string& str) { signal_recent_activate.emit(str); } #ifdef ENABLE_HIGHLIGHT void MenuBar::create_highlighters() { Gtk::Menu *item; Gtk::MenuItem *_item; Gtk::RadioButtonGroup highlighters_radio; highlight = menu(_("_Highlight"), view_menu); _item = radio_item(highlight, highlighters_radio, _("None")); _item->signal_activate().connect(sigc::bind(sigc::mem_fun(*this, &MenuBar::signal_highlighter_activate_cb), "")); SourceCategory& cats = SourceManager::get_categories(); SourceCategoryIter iter; for (iter = cats.begin(); iter != cats.end(); iter++) { item = menu(const_cast(iter->first.c_str()), highlight); for (unsigned x = 0; x < iter->second.size(); x++) { _item = radio_item(item, highlighters_radio, SourceManager::get_name(iter->second[x])); _item->property_user_data().set_value(const_cast(iter->second[x].c_str())); _item->signal_activate().connect(sigc::bind(sigc::mem_fun(*this, &MenuBar::signal_highlighter_activate_cb), iter->second[x])); } } } void MenuBar::signal_highlighter_activate_cb(std::string id) { if (_ignore_highlighting_changed_signal_hack == true) { return; } Gtk::Menu_Helpers::MenuList& items = highlight->items(); // Iterate over the items. for (Gtk::Menu_Helpers::MenuList::iterator iter = items.begin(); iter != items.end(); iter++) { Gtk::Menu *m = iter->get_submenu(); if (m) { Gtk::Menu_Helpers::MenuList& items2 = m->items(); // Iterate over the items. for (Gtk::Menu_Helpers::MenuList::iterator iter2 = items2.begin(); iter != items2.end(); iter++) { if (id == static_cast(iter2->property_user_data().get_value())) { Gtk::CheckMenuItem *it = dynamic_cast(&(*iter2)); if (it && it->get_active()) { signal_highlighter_activate.emit(id); return; } } } } else { // Probably this is the None item. Gtk::CheckMenuItem *it = dynamic_cast(&(*iter)); if (it && it->get_active()) { signal_highlighter_activate.emit(""); return; } } } } void MenuBar::set_highlight(std::string id) { _ignore_highlighting_changed_signal_hack = true; Gtk::Menu_Helpers::MenuList& items = highlight->items(); if (id == "") { Gtk::CheckMenuItem *item = dynamic_cast(&(*items.begin())); if (item) { item->set_active(true); _ignore_highlighting_changed_signal_hack = false; return; } } else { // Iterate over the items. for (Gtk::Menu_Helpers::MenuList::iterator iter = items.begin(); iter != items.end(); iter++) { // We know they are all Gtk::Menu objects Gtk::Menu *m = iter->get_submenu(); if (!m) { continue; } Gtk::Menu_Helpers::MenuList& items2 = m->items(); for (Gtk::Menu_Helpers::MenuList::iterator iter2 = items2.begin(); iter2 != items2.end(); iter2++) { if (id == static_cast(iter2->property_user_data().get_value())) { Gtk::CheckMenuItem *it = dynamic_cast(&(*iter2)); if (it) { it->set_active(true); _ignore_highlighting_changed_signal_hack = false; return; } } } } } // Just in case. _ignore_highlighting_changed_signal_hack = false; } #endif katoob-0.5.9.1/src/toolbar.cc0000644000175000017500000002342710746617674012656 00000000000000/* * toolbar.cc * This file is part of katoob * * Copyright (C) 2006 Mohammed Sameer * * 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. */ #ifdef HAVE_CONFIG_H #include #endif /* HAVE_CONFIG_H */ #include "toolbar.hh" #include #include "macros.h" #include "utils.hh" #include #include Toolbar::Toolbar(Conf& conf) : _conf(conf), _create(Gtk::Stock::NEW), _open(Gtk::Stock::OPEN), _save(Gtk::Stock::SAVE), #ifdef ENABLE_PRINT _print(Gtk::Stock::PRINT), #endif _close(Gtk::Stock::CLOSE), _undo(Gtk::Stock::UNDO), _redo(Gtk::Stock::REDO), _cut(Gtk::Stock::CUT), _copy(Gtk::Stock::COPY), _paste(Gtk::Stock::PASTE), _erase(Gtk::Stock::DELETE), #ifdef ENABLE_MAEMO _full_screen(Gtk::Stock::ZOOM_FIT), #endif _go_to_l(_("Goto Line")), _search_l(_("Search")) #ifdef ENABLE_SPELL , _dictionary_l(_("Spelling Dictionary")) #endif { create_main(); create_extended(); } Toolbar::~Toolbar() { } Gtk::Toolbar& Toolbar::get_main() { return _main; }; Gtk::VBox& Toolbar::get_extended() { return _extended; } void Toolbar::create_main() { _main.append(_create); _main.append(_open); _main.append(_save); #ifdef ENABLE_PRINT _main.append(_print); #endif _main.append(s1); _main.append(_close); _main.append(s2); _main.append(_undo); _main.append(_redo); _main.append(s3); _main.append(_cut); _main.append(_copy); _main.append(_paste); _main.append(_erase); #ifdef ENABLE_MAEMO _main.append(_full_screen); #endif // Our tooltips. // NOTE: // http://mail.gnome.org/archives/gtkmm-list/2004-October/msg00010.html // http://mail.gnome.org/archives/gtkmm-list/2004-October/msg00011.html _main.set_tooltips(true); Gtk::Tooltips *tips = _main.get_tooltips_object(); _create.set_tooltip(*tips, _("Create a new file")); _open.set_tooltip(*tips, _("Open a file for editing")); _save.set_tooltip(*tips, _("Save the existing file")); #ifdef ENABLE_PRINT _print.set_tooltip(*tips, _("Print this document")); #endif _close.set_tooltip(*tips, _("Close the active file")); _undo.set_tooltip(*tips, _("Undo")); _redo.set_tooltip(*tips, _("Redo")); _cut.set_tooltip(*tips, _("Cut")); _copy.set_tooltip(*tips, _("Copy")); _paste.set_tooltip(*tips, _("Paste")); _erase.set_tooltip(*tips, _("Delete current selection")); #ifdef ENABLE_MAEMO _full_screen.set_tooltip(*tips, _("Toggle full screen mode")); #endif // This is for both_horiz style // NOTE: http://mail.gnome.org/archives/gtkmm-list/2004-June/msg00112.html _create.set_is_important(); _open.set_is_important(); _save.set_is_important(); #ifdef ENABLE_PRINT _print.set_is_important(); #endif _close.set_is_important(); _undo.set_is_important(); _redo.set_is_important(); _cut.set_is_important(); _copy.set_is_important(); _paste.set_is_important(); _erase.set_is_important(); #ifdef ENABLE_MAEMO _full_screen.set_is_important(); #endif _main.show_all(); // Signals. _create.signal_clicked().connect(sigc::mem_fun(signal_create_clicked, &sigc::signal::emit)); _open.signal_clicked().connect(sigc::mem_fun(signal_open_clicked, &sigc::signal::emit)); _save.signal_clicked().connect(sigc::mem_fun(signal_save_clicked, &sigc::signal::emit)); #ifdef ENABLE_PRINT _print.signal_clicked().connect(sigc::mem_fun(signal_print_clicked, &sigc::signal::emit)); #endif _close.signal_clicked().connect(sigc::mem_fun(signal_close_clicked, &sigc::signal::emit)); _undo.signal_clicked().connect(sigc::mem_fun(signal_undo_clicked, &sigc::signal::emit)); _redo.signal_clicked().connect(sigc::mem_fun(signal_redo_clicked, &sigc::signal::emit)); _cut.signal_clicked().connect(sigc::mem_fun(signal_cut_clicked, &sigc::signal::emit)); _copy.signal_clicked().connect(sigc::mem_fun(signal_copy_clicked, &sigc::signal::emit)); _paste.signal_clicked().connect(sigc::mem_fun(signal_paste_clicked, &sigc::signal::emit)); _erase.signal_clicked().connect(sigc::mem_fun(signal_erase_clicked, &sigc::signal::emit)); #ifdef ENABLE_MAEMO _full_screen.signal_clicked().connect(sigc::mem_fun(signal_full_screen_clicked, &sigc::signal::emit)); #endif } void Toolbar::create_extended() { _extended.pack_start(box); box.pack_start(_search_l, false, false, 10); box.pack_start(_search, false, false); box.pack_start(_go_to_l, false, false, 10); box.pack_start(_go_to, false, false); #ifdef ENABLE_SPELL box.pack_start(_dictionary_l, false, false, 10); box.pack_start(_dictionary, false, false); Gtk::Image *image = Gtk::manage(new Gtk::Image(Gtk::Stock::SPELL_CHECK, Gtk::IconSize(Gtk::ICON_SIZE_MENU))); _spell.set_image(*image); box.pack_start(_spell, false, false, 10); _spell.set_relief(Gtk::RELIEF_NONE); _spell.signal_clicked().connect(sigc::mem_fun(signal_spell_clicked, &sigc::signal::emit)); _dictionary.set_active_text(_conf.get("default_dict", "en")); // TODO: I want to connect without the callback step. signal_dictionary_changed_conn = _dictionary.signal_changed().connect(sigc::mem_fun(*this, &Toolbar::dictionary_changed_cb)); // signal_dictionary_changed_conn = _dictionary.signal_changed().connect(sigc::bind(sigc::mem_fun(signal_dictionary_changed, &sigc::signal::emit), _dictionary.get_active_text())); #endif _search.signal_activate().connect(sigc::mem_fun(*this, &Toolbar::search_activate_cb)); _go_to.signal_activate().connect(sigc::mem_fun(*this, &Toolbar::go_to_activate_cb)); _extended.pack_start(sep); create_extra_buttons(); box.pack_start(_extra_buttons); _extra_buttons.set_toolbar_style(Gtk::ToolbarStyle(Gtk::TOOLBAR_ICONS)); _extended.show_all(); } void Toolbar::set_text() { _main.set_toolbar_style(Gtk::ToolbarStyle(Gtk::TOOLBAR_TEXT)); _conf.set("toolbartype","text"); } void Toolbar::set_icons() { _main.set_toolbar_style(Gtk::ToolbarStyle(Gtk::TOOLBAR_ICONS)); _conf.set("toolbartype","icons"); } void Toolbar::set_both() { _main.set_toolbar_style(Gtk::ToolbarStyle(Gtk::TOOLBAR_BOTH)); _conf.set("toolbartype","both"); } void Toolbar::set_beside() { _main.set_toolbar_style(Gtk::ToolbarStyle(Gtk::TOOLBAR_BOTH_HORIZ)); _conf.set("toolbartype","both_horiz"); } #ifdef ENABLE_SPELL void Toolbar::set_dictionary(std::string& d) { signal_dictionary_changed_conn.block(); _dictionary.set_active_text(d); signal_dictionary_changed_conn.unblock(); } std::string Toolbar::get_dictionary() { return _dictionary.get_active_text(); } #endif void Toolbar::reset_gui() { _conf.get("toolbar", true) == true ? _main.show() : _main.hide(); _conf.get("extended_toolbar", true) == true ? _extended.show() : _extended.hide(); _conf.get("extra_buttons", true) == true ? _extra_buttons.show_all() : _extra_buttons.hide(); #ifdef ENABLE_MAEMO const std::string& toolbartype = _conf.get("toolbartype", "icons"); #else const std::string& toolbartype = _conf.get("toolbartype", "both"); #endif if (toolbartype == "text") { set_text(); } else if (toolbartype == "icons") { set_icons(); } else if (toolbartype == "both_horiz") { set_beside(); } else { set_both(); } } void Toolbar::reset_gui(bool enable) { _save.set_sensitive(enable); #ifdef ENABLE_PRINT _print.set_sensitive(enable); #endif _close.set_sensitive(enable); _undo.set_sensitive(enable); _redo.set_sensitive(enable); _cut.set_sensitive(enable); _copy.set_sensitive(enable); _paste.set_sensitive(enable); _erase.set_sensitive(enable); #ifdef ENABLE_SPELL _dictionary.set_sensitive(enable); _spell.set_sensitive(enable); _dictionary.set_sensitive(enable); #endif _go_to.set_sensitive(enable); _search.set_sensitive(enable); _extra_buttons.set_sensitive(enable); } void Toolbar::search_activate_cb() { if (_search.get_text().size()) { signal_search_activated.emit(_search.get_text()); } } void Toolbar::go_to_activate_cb() { if (_go_to.get_text().size()) { signal_go_to_activated.emit(atoi(_go_to.get_text().c_str())); } } void Toolbar::create_extra_buttons() { std::string path = Utils::get_data_path("toolbar"); std::ifstream ifs; ifs.open(path.c_str()); if (ifs.is_open()) { std::string buff; while (getline(ifs, buff)) { create_extra_button(buff); } ifs.close(); } } void Toolbar::create_extra_button(std::string& label) { Gtk::ToolButton *button = Gtk::manage(new Gtk::ToolButton); button->set_label(label); button->show_all(); _extra_buttons.append(*button); button->signal_clicked().connect(sigc::bind(sigc::mem_fun(*this, &Toolbar::extra_button_clicked), label)); } void Toolbar::enable_undo(bool s) { _undo.set_sensitive(s); } void Toolbar::enable_redo(bool s) { _redo.set_sensitive(s); } #ifdef ENABLE_SPELL void Toolbar::enable_dictionary(bool s) { _dictionary.set_sensitive(s); } #endif void Toolbar::set_read_only(bool r) { _save.set_sensitive(!r); _cut.set_sensitive(!r); _erase.set_sensitive(!r); _paste.set_sensitive(!r); } void Toolbar::show_main(bool do_show) { do_show ? _main.show() : _main.hide(); _conf.set("toolbar", do_show); } void Toolbar::show_extended(bool do_show) { do_show ? _extended.show() : _extended.hide(); _conf.set("extended_toolbar", do_show); } katoob-0.5.9.1/src/dialogs.cc0000644000175000017500000001060110746617674012624 00000000000000/* * dialogs.cc * This file is part of katoob * * Copyright (C) 2006, 2007 Mohammed Sameer * * 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. */ #ifdef HAVE_CONFIG_H #include #endif /* HAVE_CONFIG_H */ #include #include #include #include #include #include #include #include "dialogs.hh" #include "macros.h" bool katoob_simple_question(const std::string& message) { Gtk::MessageDialog dlg(message, false, Gtk::MESSAGE_QUESTION, Gtk::BUTTONS_YES_NO, true); int res = dlg.run(); if (res == Gtk::RESPONSE_YES) { return true; } return false; } void katoob_error(const std::string& message) { Gtk::MessageDialog dlg(message, false, Gtk::MESSAGE_ERROR, Gtk::BUTTONS_OK, true); dlg.run(); // dlg.destroy(); } void katoob_info(const std::string& message) { Gtk::MessageDialog dlg(message, false, Gtk::MESSAGE_INFO, Gtk::BUTTONS_OK, true); dlg.run(); } bool katoob_big_info(const std::string& message, bool enable_insert) { Gtk::Dialog dlg; Gtk::ScrolledWindow sw; sw.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC); Gtk::TextView tv; tv.set_editable(false); tv.get_buffer()->set_text(message); sw.add(tv); dlg.get_vbox()->pack_start(sw, true, true); dlg.set_size_request(Gdk::Screen::get_default()->get_width()/2, Gdk::Screen::get_default()->get_height()/2); if (enable_insert) { dlg.add_button(_("Insert to document"), Gtk::RESPONSE_YES); } dlg.add_button(Gtk::Stock::OK, Gtk::RESPONSE_OK); dlg.show_all(); switch (dlg.run()) { case Gtk::RESPONSE_YES: return true; default: return false; } } int katoob_question(const std::string& message) { Gtk::MessageDialog dialog(message, false, Gtk::MESSAGE_QUESTION, Gtk::BUTTONS_NONE, true); dialog.add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL); dialog.add_button(Gtk::Stock::NO, Gtk::RESPONSE_NO); dialog.add_button(Gtk::Stock::YES, Gtk::RESPONSE_YES); dialog.set_position (Gtk::WIN_POS_CENTER); return dialog.run(); } int katoob_goto_dialog() { Gtk::VBox *box; Gtk::HBox hbox; Gtk::Dialog dialog(_("Goto Line"), true, true); box = dialog.get_vbox(); box->pack_start(hbox); hbox.set_border_width(5); Gtk::Label label(_("Line:")); hbox.pack_start (label); label.set_justify (Gtk::JUSTIFY_LEFT); Gtk::Adjustment adjustment(1, 1, 1000000000); Gtk::SpinButton go_to(adjustment); hbox.pack_start(go_to); Gtk::Button *button = dialog.add_button(Gtk::Stock::JUMP_TO, Gtk::RESPONSE_OK); dialog.add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL); /* button->set_flags(Gtk::CAN_DEFAULT); button->grab_default(); */ go_to.signal_activate().connect(mem_fun(button, &Gtk::Button::clicked)); dialog.show_all(); int x = dialog.run(); if (x == Gtk::RESPONSE_OK) { return go_to.get_value_as_int(); } else { return -1; } } Glib::RefPtr katoob_activity() { return Glib::RefPtr(new ActivityMeter); } ActivityMeter::ActivityMeter() : dialog(_("Please wait..."), true, true) { loop = Glib::MainLoop::create(); dialog.add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL); dialog.get_vbox()->pack_start(bar, true, true); bar.set_pulse_step(0.007); dialog.signal_response().connect(sigc::mem_fun(this, &ActivityMeter::signal_response_cb)); } void ActivityMeter::signal_response_cb(int res) { quit(); signal_cancel_clicked.emit(); } void ActivityMeter::run() { conn = Glib::signal_idle().connect(sigc::bind_return(sigc::mem_fun(bar, &Gtk::ProgressBar::pulse), true), Glib::PRIORITY_LOW); dialog.show_all(); loop->run(); } void ActivityMeter::quit() { conn.disconnect(); dialog.hide(); loop->quit(); } katoob-0.5.9.1/src/encodings.cc0000644000175000017500000003126210746617674013161 00000000000000/* * encodings.cc * This file is part of katoob * * Copyright (C) 2006, 2007 Mohammed Sameer * * 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. */ #ifdef HAVE_CONFIG_H #include #endif /* HAVE_CONFIG_H */ #include #include #include "encodings.hh" #include "macros.h" /** * \brief constructor */ Encodings::Encodings() { _default_save = 28; _default_open = 1; Language *lang; Encoding *enc; /* Arabic */ lang = new Language; lang->name = "Arabic"; _languages.push_back(lang); enc = new Encoding; enc->name = "ISO 8859-6 (Arabic)"; enc->encoding = "ISO_8859-6"; lang->children.push_back(enc); _encodings.push_back(enc); enc = new Encoding; enc->name = "WINDOWS-1256 (Arabic)"; enc->encoding = "WINDOWS-1256"; lang->children.push_back(enc); _encodings.push_back(enc); /* Baltic */ lang = new Language; lang->name = "Baltic"; _languages.push_back(lang); enc = new Encoding; enc->name = "ISO_8859-4 (Baltic)"; enc->encoding = "ISO_8859-4"; lang->children.push_back(enc); _encodings.push_back(enc); enc = new Encoding; enc->name = "ISO_8859-13 (Baltic)"; enc->encoding = "ISO_8859-13"; lang->children.push_back(enc); _encodings.push_back(enc); enc = new Encoding; enc->name = "WINDOWS-1257 (Baltic)"; enc->encoding = "WINDOWS-1257"; lang->children.push_back(enc); _encodings.push_back(enc); /* Central European */ lang = new Language; lang->name = "Central European"; _languages.push_back(lang); enc = new Encoding; enc->name = "ISO 8859-2 (Central European)"; enc->encoding = "ISO_8859-2"; lang->children.push_back(enc); _encodings.push_back(enc); enc = new Encoding; enc->name = "WINDOWS-1250 (Central European)"; enc->encoding = "WINDOWS-1250"; lang->children.push_back(enc); _encodings.push_back(enc); /* Cyrillic */ lang = new Language; lang->name = "Cyrillic"; _languages.push_back(lang); enc = new Encoding; enc->name = "ISO_8859-5 (Cyrillic)"; enc->encoding = "ISO_8859-5"; lang->children.push_back(enc); _encodings.push_back(enc); enc = new Encoding; enc->name = "WINDOWS-1251 (Cyrillic)"; enc->encoding = "WINDOWS-1251"; lang->children.push_back(enc); _encodings.push_back(enc); /* Greek */ lang = new Language; lang->name = "Greek"; _languages.push_back(lang); enc = new Encoding; enc->name = "ISO 8859-7 (Greek)"; enc->encoding = "ISO_8859-7"; lang->children.push_back(enc); _encodings.push_back(enc); enc = new Encoding; enc->name = "WINDOWS-1253 (Greek)"; enc->encoding = "WINDOWS-1253"; lang->children.push_back(enc); _encodings.push_back(enc); /* Hebrew */ lang = new Language; lang->name = "Hebrew"; _languages.push_back(lang); enc = new Encoding; enc->name = "ISO 8859-8-i (Hebrew - logical ordering)"; enc->encoding = "ISO_8859-8"; lang->children.push_back(enc); _encodings.push_back(enc); enc = new Encoding; enc->name = "WINDOWS-1255 (Hebrew)"; enc->encoding = "WINDOWS-1255"; lang->children.push_back(enc); _encodings.push_back(enc); /* Japanese */ lang = new Language; lang->name = "Japanese"; _languages.push_back(lang); enc = new Encoding; enc->name = "EUC-JP (Japanese)"; enc->encoding = "EUC-JP"; lang->children.push_back(enc); _encodings.push_back(enc); enc = new Encoding; enc->name = "SHIFT_JIS (Japanese)"; enc->encoding = "SHIFT_JIS"; lang->children.push_back(enc); _encodings.push_back(enc); enc = new Encoding; enc->name = "ISO-2022-JP (Japanese)"; enc->encoding = "ISO-2022-JP"; lang->children.push_back(enc); _encodings.push_back(enc); /* Romanian */ lang = new Language; lang->name = "Romanian"; _languages.push_back(lang); enc = new Encoding; enc->name = "ISO_8859-16 (Romanian)"; enc->encoding = "ISO-8859-16"; lang->children.push_back(enc); _encodings.push_back(enc); /* Turkish */ lang = new Language; lang->name = "Turkish"; _languages.push_back(lang); enc = new Encoding; enc->name = "ISO 8859-9 (Turkish)"; enc->encoding = "ISO_8859-9"; lang->children.push_back(enc); _encodings.push_back(enc); enc = new Encoding; enc->name = "WINDOWS-1254 (Turkish)"; enc->encoding = "WINDOWS-1254"; lang->children.push_back(enc); _encodings.push_back(enc); /* Western */ lang = new Language; lang->name = "Western"; _languages.push_back(lang); enc = new Encoding; enc->name = "ISO 8859-1 (Western European)"; enc->encoding = "ISO_8859-1"; lang->children.push_back(enc); _encodings.push_back(enc); enc = new Encoding; enc->name = "ISO_8859-15 (Western, New)"; enc->encoding = "ISO_8859-15"; lang->children.push_back(enc); _encodings.push_back(enc); enc = new Encoding; enc->name = "WINDOWS-1252 (Western)"; enc->encoding = "WINDOWS-1252"; lang->children.push_back(enc); _encodings.push_back(enc); /* Other */ lang = new Language; lang->name = "Other"; _languages.push_back(lang); enc = new Encoding; enc->name = "ISO_8859-3 (South European)"; enc->encoding = "ISO_8859-3"; lang->children.push_back(enc); _encodings.push_back(enc); enc = new Encoding; enc->name = "ISO_8859-10 (Nordic)"; enc->encoding = "ISO_8859-10"; lang->children.push_back(enc); _encodings.push_back(enc); enc = new Encoding; enc->name = "ISO_8859-11"; enc->encoding = "ISO_8859-11"; lang->children.push_back(enc); _encodings.push_back(enc); enc = new Encoding; enc->name = "ISO_8859-12"; enc->encoding = "ISO_8859-12"; lang->children.push_back(enc); _encodings.push_back(enc); enc = new Encoding; enc->name = "ISO_8859-14"; enc->encoding = "ISO_8859-14"; lang->children.push_back(enc); _encodings.push_back(enc); enc = new Encoding; enc->name = "WINDOWS-1258 (Vietnamese)"; enc->encoding = "WINDOWS-1258"; lang->children.push_back(enc); _encodings.push_back(enc); enc = new Encoding; enc->name = "UTF-8"; enc->encoding = "UTF-8"; lang->children.push_back(enc); _encodings.push_back(enc); } /** * \brief destructor */ Encodings::~Encodings() { // TODO: Free all what we've allocated. } /** * \brief get the character set for an encoding given its position. * \param x position of the encoding. * \return the encoding itself (ex: WINDOWS-1256). */ const std::string& Encodings::get_charset(unsigned x) { assert(x <= _encodings.size()); return _encodings[x]->encoding; } /** * \brief get the position of an encoding given its name. * \param enc the name of the encoding (ex: Arabic (Windows)) * \return the position of the encoding. */ int Encodings::get(const std::string& enc) { for (unsigned int x = 0; x < _encodings.size(); x++) { if (_encodings[x]->name == enc) { return x; } } return -1; } /** * \brief get the position of an encoding given its character set. * \param enc the character set of the encoding (ex: WINDOWS-1256) * \return the position of the encoding. */ int Encodings::get_by_charset(const std::string& cset) { for (unsigned int x = 0; x < _encodings.size(); x++) { if (_encodings[x]->encoding == cset) { return x; } } return -1; } /** * \brief get the name of the encoding given its position. * \param x the position of the encoding. * \return the name of the encoding */ const std::string& Encodings::name(unsigned x) { assert(x <= _encodings.size()); return _encodings[x]->name; } /** * \brief convert a string from one encoding to another. * \param text the string to convert * \param res the output result of the conversion * \param from the encoding position to convert from * \param to the encoding position to convert to * \param err a string to contain an error in case of a conversion error. * \return true if the conversion is correct, false otherwise. err is set to any error. */ bool Encodings::convert(const Glib::ustring& text, std::string& res, unsigned int from, unsigned int to, std::string& err) { assert(from <= _encodings.size()); assert(to <= _encodings.size()); assert(from != to); #ifdef GLIBMM_EXCEPTIONS_ENABLED try { res = Glib::convert (text, get_charset(to), get_charset(from)); if (utf8(res)) { return true; } else { err = _("I wasn't able to convert the encoding."); return false; } } catch (Glib::ConvertError& _err) { err = _err.what(); return false; } #else std::auto_ptr error; res = Glib::convert (text, get_charset(to), get_charset(from), error); if (error.get()) { err = error->what(); return false; } if (utf8(res)) { return true; } else { err = _("I wasn't able to convert the encoding."); return false; } #endif } /** * \brief convert to utf8 from an encoding. * \param in the string to convert. * \param out a string to contain the conversion output or the error in case of an error. * \param enc the encoding position to convert from. * \return -1 in case of error, out wil contain the error string. otherwise the encoding. */ int Encodings::convert_to(const Glib::ustring& in, std::string& out, int enc) { std::string err; if (in.validate()) { out = in; return utf8(); } else { if (convert(in, out, enc, utf8(), err)) { return enc; } out = err; return -1; } } /** * \brief convert from utf8 to an encoding. * \param in the string to convert. * \param out a string to contain the conversion output or the error in case of an error. * \param enc the encoding position to convert to. * \return -1 in case of error, out wil contain the error string. otherwise the encoding. */ int Encodings::convert_from(const Glib::ustring& in, std::string& out, int enc) { if (enc == utf8()) { out = in; return enc; } std::string err; if (convert(in, out, utf8(), enc, err)) { return enc; } out = err; return -1; } /** * \brief check if a string contents are valid utf8 * \param text the text to check. * \return true if the contents are valid utf8, false otherwise. */ bool Encodings::utf8(const Glib::ustring& text) { return text.validate(); } /** * \brief get the number of languages we know. * \return the number of languages. */ int Encodings::languages() { return _languages.size(); } /** * \brief get the number of encodings belonging to a language given its position. * \param x the position of the language. * \return the number of encodings. */ int Encodings::languages(int x) { return _languages[x]->children.size(); } /** * \brief get the name of a language. * \param x the number of the language to query. * \return the name of the language (Ex: Arabic). */ std::string& Encodings::language(int x) { return _languages[x]->name; } /** * \brief get the name name of an encoding given the language and encoding positions. * \param x the position of the language * \param y the position of the encoding within the language children. * \return the name of the encoding. */ std::string& Encodings::name(unsigned x, unsigned y) { return _languages[x]->children[y]->name; } /** * \brief get default save encoding. * \return the number of the default save encoding. */ int Encodings::default_save() { return _default_save; } /** * \brief get default open encoding. * \return the number of the default open encoding. */ int Encodings::default_open() { return _default_open; } /** * \brief return the size (Number of encodings we know). * \return the number (size) of encodings. */ int Encodings::size() { return _encodings.size(); } /** * \brief get the name of the encoding given its position (ex: Arabic (Windows)). * \param x the encoding position. * \return the name of the encoding. */ const std::string& Encodings::at(unsigned x) { return _encodings[x]->name; } /** * \brief return the utf8 encoding. * \return the number "position" of the utf8 encoding. */ int Encodings::utf8() { return 28; } /** * \brief set the default save encoding. * \param x the encoding. */ void Encodings::default_save(unsigned x) { if (x <= _encodings.size()) { _default_save = x; } } /** * \brief set the default open encoding. * \param x the encoding. */ void Encodings::default_open(unsigned x) { if (x <= _encodings.size()) { _default_open = x; } } katoob-0.5.9.1/src/mdi.cc0000644000175000017500000006764310746617674011775 00000000000000/* * mdi.cc * This file is part of katoob * * Copyright (C) 2006, 2007 Mohammed Sameer * * 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. */ #ifdef HAVE_CONFIG_H #include #endif /* HAVE_CONFIG_H */ #include #include #include "mdi.hh" #include "dialogs.hh" #include "filedialog.hh" #include "macros.h" #include "searchdialog.hh" //#include "replacedialog.hh" #ifdef ENABLE_SPELL #include "spelldialog.hh" #endif #ifdef ENABLE_PRINT #include "print.hh" #endif #include "dict.hh" #include "utils.hh" #include #include "execdialog.hh" #include "pipe.hh" #include "tempfile.hh" #include "openlocationdialog.hh" #include "network.hh" MDI::MDI(Conf& conf, Encodings& enc) : _conf(conf), _encodings(enc) #ifdef ENABLE_PRINT , page_setup(PageSetup::create(_conf)), settings(PrintSettings::create(_conf)) #endif { signal_switch_page().connect(sigc::mem_fun(*this, &MDI::signal_switch_page_cb)); // 1 minute. Glib::signal_timeout().connect(sigc::mem_fun(this, &MDI::autosave), 1*60*1000); } MDI::~MDI() { // destroy our documents. for (unsigned x = 0; x < children.size(); x++) { delete children[x]; } for (unsigned x = 0; x < closed_children.size(); x++) { delete closed_children[x]; } children.clear(); closed_children.clear(); page_setup->save(); settings->save(); } void MDI::scan_temp() { std::map temps; std::string error; if (!Utils::get_recovery_files(temps, error)) { katoob_error(Utils::substitute(_("Failed to scan for any autorecovery files: %s"), error)); return; } if (temps.size() > 0) { if (katoob_simple_question(_("Some unrecovered files were found. Try to recover them ?"))) { for (std::map::iterator iter = temps.begin(); iter != temps.end(); iter++) { Document *doc = create_document(); if (doc) { doc->set_text(iter->second); if (unlink(iter->first.c_str()) == -1) { std::cerr << "Failed to unlink " << iter->first << " " << std::strerror(errno) << std::endl; } } } } } } bool MDI::autosave() { Document *doc; for (unsigned x = 0; x < children.size(); x++) { doc = children[x]; if (doc->get_readonly()) { continue; } if (!doc->get_modified()) { continue; } doc->autosave(); } return true; } Document *MDI::create_document(std::string& file, int enc) { if (enc == -1) { enc = _encodings.default_open(); } int x = children.size(); Document *doc; if (file == "-") { doc = new Document(_conf, _encodings, ++x, enc); } else { doc = new Document(_conf, _encodings, enc, file); } if (doc->ok()) { add_document(doc); _conf.open_dir(Glib::path_get_basename(file)); // Ensure absolute path for the file. if (Glib::path_is_absolute(file)) { _conf.recent_prepend(file); } else { std::vector elems; elems.push_back(Glib::get_current_dir()); elems.push_back(file); file = Glib::build_path(Utils::get_dir_separator(), elems); elems.clear(); _conf.recent_prepend(file); } signal_recent_regenerate.emit(); return doc; } else { delete doc; return NULL; } } Document *MDI::create_document() { int x = children.size(); Document *doc = new Document(_conf, _encodings, ++x); if (doc->ok()) { add_document(doc); return doc; } else { delete doc; return NULL; } } void MDI::add_document(Document *doc, bool signals) { // This should be first so when we get the switch_page signal we'll find something. children.push_back(doc); if (children.size() == 1) { signal_reset_gui.emit(0); } if (signals) { connect_signals(doc); } // This should be first otherwise the documents menu will try to manipulate // a menu that has not been added. signal_document_added.emit(doc->get_readonly(), doc->get_modified(), doc->get_title()); append_page (*doc, doc->get_label()); set_menu_label_text(*doc, doc->get_title()); set_current_page (-1); // This is here because we can't put it in connect_signals() because the document // is appended after connect_signals() // We will connect to the label directly bypassing the Document object. dynamic_cast