[DebianGIS-dev] r1806 - in packages/gpsdrive/branches: . etch etch/man etch/man/de etch/man/es etch/po etch/src etch/src/mysql etch/src/mysql/CVS

nd-guest at alioth.debian.org nd-guest at alioth.debian.org
Mon Dec 22 19:33:26 UTC 2008


Author: nd-guest
Date: 2008-12-22 19:33:23 +0000 (Mon, 22 Dec 2008)
New Revision: 1806

Added:
   packages/gpsdrive/branches/etch/
   packages/gpsdrive/branches/etch/ABOUT-NLS
   packages/gpsdrive/branches/etch/AUTHORS
   packages/gpsdrive/branches/etch/COPYING
   packages/gpsdrive/branches/etch/CREDITS
   packages/gpsdrive/branches/etch/ChangeLog
   packages/gpsdrive/branches/etch/FAQ.gpsdrive
   packages/gpsdrive/branches/etch/FAQ.gpsdrive.fr
   packages/gpsdrive/branches/etch/GPS-receivers
   packages/gpsdrive/branches/etch/INSTALL
   packages/gpsdrive/branches/etch/LEEME
   packages/gpsdrive/branches/etch/LISEZMOI
   packages/gpsdrive/branches/etch/LISEZMOI.FreeBSD
   packages/gpsdrive/branches/etch/LISEZMOI.SQL
   packages/gpsdrive/branches/etch/LISEZMOI.kismet
   packages/gpsdrive/branches/etch/Makefile.am
   packages/gpsdrive/branches/etch/Makefile.in
   packages/gpsdrive/branches/etch/NEWS
   packages/gpsdrive/branches/etch/NMEA.txt
   packages/gpsdrive/branches/etch/README
   packages/gpsdrive/branches/etch/README.FreeBSD
   packages/gpsdrive/branches/etch/README.SQL
   packages/gpsdrive/branches/etch/README.gpspoint2gspdrive
   packages/gpsdrive/branches/etch/README.kismet
   packages/gpsdrive/branches/etch/README.nasamaps
   packages/gpsdrive/branches/etch/TODO
   packages/gpsdrive/branches/etch/acinclude.m4
   packages/gpsdrive/branches/etch/aclocal.m4
   packages/gpsdrive/branches/etch/config.guess
   packages/gpsdrive/branches/etch/config.h
   packages/gpsdrive/branches/etch/config.h.in
   packages/gpsdrive/branches/etch/config.log
   packages/gpsdrive/branches/etch/config.sub
   packages/gpsdrive/branches/etch/configure
   packages/gpsdrive/branches/etch/configure-stamp
   packages/gpsdrive/branches/etch/configure.ac
   packages/gpsdrive/branches/etch/create.sql
   packages/gpsdrive/branches/etch/depcomp
   packages/gpsdrive/branches/etch/gpsdrive.desktop
   packages/gpsdrive/branches/etch/install-sh
   packages/gpsdrive/branches/etch/libtool
   packages/gpsdrive/branches/etch/ltmain.sh
   packages/gpsdrive/branches/etch/man/
   packages/gpsdrive/branches/etch/man/Makefile.am
   packages/gpsdrive/branches/etch/man/Makefile.in
   packages/gpsdrive/branches/etch/man/de/
   packages/gpsdrive/branches/etch/man/de/Makefile.am
   packages/gpsdrive/branches/etch/man/de/Makefile.in
   packages/gpsdrive/branches/etch/man/de/gpsdrive.1
   packages/gpsdrive/branches/etch/man/es/
   packages/gpsdrive/branches/etch/man/es/Makefile.am
   packages/gpsdrive/branches/etch/man/es/Makefile.in
   packages/gpsdrive/branches/etch/man/es/gpsdrive.1
   packages/gpsdrive/branches/etch/man/gpsdrive.1
   packages/gpsdrive/branches/etch/missing
   packages/gpsdrive/branches/etch/mkinstalldirs
   packages/gpsdrive/branches/etch/po/
   packages/gpsdrive/branches/etch/po/ChangeLog
   packages/gpsdrive/branches/etch/po/Makefile.in.in
   packages/gpsdrive/branches/etch/po/POTFILES.in
   packages/gpsdrive/branches/etch/po/da.gmo
   packages/gpsdrive/branches/etch/po/da.po
   packages/gpsdrive/branches/etch/po/de.gmo
   packages/gpsdrive/branches/etch/po/de.po
   packages/gpsdrive/branches/etch/po/de_AT.gmo
   packages/gpsdrive/branches/etch/po/de_AT.po
   packages/gpsdrive/branches/etch/po/es.gmo
   packages/gpsdrive/branches/etch/po/es.po
   packages/gpsdrive/branches/etch/po/fr.gmo
   packages/gpsdrive/branches/etch/po/fr.po
   packages/gpsdrive/branches/etch/po/gpsdrive.pot
   packages/gpsdrive/branches/etch/po/gr.gmo
   packages/gpsdrive/branches/etch/po/gr.po
   packages/gpsdrive/branches/etch/po/hu.gmo
   packages/gpsdrive/branches/etch/po/hu.po
   packages/gpsdrive/branches/etch/po/it.gmo
   packages/gpsdrive/branches/etch/po/it.po
   packages/gpsdrive/branches/etch/po/ja.gmo
   packages/gpsdrive/branches/etch/po/ja.po
   packages/gpsdrive/branches/etch/po/nl.gmo
   packages/gpsdrive/branches/etch/po/nl.po
   packages/gpsdrive/branches/etch/po/no.gmo
   packages/gpsdrive/branches/etch/po/no.po
   packages/gpsdrive/branches/etch/po/pt_BR.gmo
   packages/gpsdrive/branches/etch/po/pt_BR.po
   packages/gpsdrive/branches/etch/po/sk.gmo
   packages/gpsdrive/branches/etch/po/sk.po
   packages/gpsdrive/branches/etch/po/sv.gmo
   packages/gpsdrive/branches/etch/po/sv.po
   packages/gpsdrive/branches/etch/po/tr.gmo
   packages/gpsdrive/branches/etch/po/tr.po
   packages/gpsdrive/branches/etch/src/
   packages/gpsdrive/branches/etch/src/LatLong-UTMconversion.c
   packages/gpsdrive/branches/etch/src/LatLong-UTMconversion.h
   packages/gpsdrive/branches/etch/src/Makefile.am
   packages/gpsdrive/branches/etch/src/Makefile.in
   packages/gpsdrive/branches/etch/src/battery.c
   packages/gpsdrive/branches/etch/src/battery.h
   packages/gpsdrive/branches/etch/src/compass.h
   packages/gpsdrive/branches/etch/src/em.c
   packages/gpsdrive/branches/etch/src/fly.c
   packages/gpsdrive/branches/etch/src/friends.c
   packages/gpsdrive/branches/etch/src/friendsd.c
   packages/gpsdrive/branches/etch/src/friendsicon.png
   packages/gpsdrive/branches/etch/src/garble.cpp
   packages/gpsdrive/branches/etch/src/garmin_application.cpp
   packages/gpsdrive/branches/etch/src/garmin_application.h
   packages/gpsdrive/branches/etch/src/garmin_command.h
   packages/gpsdrive/branches/etch/src/garmin_data.cpp
   packages/gpsdrive/branches/etch/src/garmin_data.h
   packages/gpsdrive/branches/etch/src/garmin_error.h
   packages/gpsdrive/branches/etch/src/garmin_legacy.cpp
   packages/gpsdrive/branches/etch/src/garmin_legacy.h
   packages/gpsdrive/branches/etch/src/garmin_link.cpp
   packages/gpsdrive/branches/etch/src/garmin_link.h
   packages/gpsdrive/branches/etch/src/garmin_packet.h
   packages/gpsdrive/branches/etch/src/garmin_phys.h
   packages/gpsdrive/branches/etch/src/garmin_serial.h
   packages/gpsdrive/branches/etch/src/garmin_serial_unix.cpp
   packages/gpsdrive/branches/etch/src/garmin_serial_unix.h
   packages/gpsdrive/branches/etch/src/garmin_types.h
   packages/gpsdrive/branches/etch/src/garmin_util.cpp
   packages/gpsdrive/branches/etch/src/garmin_util.h
   packages/gpsdrive/branches/etch/src/geo-code
   packages/gpsdrive/branches/etch/src/geo-nearest
   packages/gpsdrive/branches/etch/src/geocache2way
   packages/gpsdrive/branches/etch/src/gettext.h
   packages/gpsdrive/branches/etch/src/gps.h
   packages/gpsdrive/branches/etch/src/gpsd.c
   packages/gpsdrive/branches/etch/src/gpsd.h
   packages/gpsdrive/branches/etch/src/gpsdrive-nosql.spec
   packages/gpsdrive/branches/etch/src/gpsdrive.c
   packages/gpsdrive/branches/etch/src/gpsdrive.h
   packages/gpsdrive/branches/etch/src/gpsdrive.spec
   packages/gpsdrive/branches/etch/src/gpsdriveanim.gif
   packages/gpsdrive/branches/etch/src/gpsdrivegarble.cpp
   packages/gpsdrive/branches/etch/src/gpsdrivemini.png
   packages/gpsdrive/branches/etch/src/gpsdrivesplash.png
   packages/gpsdrive/branches/etch/src/gpsfetchmap.pl
   packages/gpsdrive/branches/etch/src/gpsicon.png
   packages/gpsdrive/branches/etch/src/gpsiconbt.png
   packages/gpsdrive/branches/etch/src/gpskismet.c
   packages/gpsdrive/branches/etch/src/gpsmisc.c
   packages/gpsdrive/branches/etch/src/gpsnasamap.c
   packages/gpsdrive/branches/etch/src/gpspoint2gpsdrive.pl
   packages/gpsdrive/branches/etch/src/gpsproto.h
   packages/gpsdrive/branches/etch/src/gpsreplay
   packages/gpsdrive/branches/etch/src/gpsserial.c
   packages/gpsdrive/branches/etch/src/gpssmswatch
   packages/gpsdrive/branches/etch/src/gpssql.c
   packages/gpsdrive/branches/etch/src/gpssql_backup.sh
   packages/gpsdrive/branches/etch/src/gpssql_restore.sh
   packages/gpsdrive/branches/etch/src/icons.h
   packages/gpsdrive/branches/etch/src/map_koord.txt
   packages/gpsdrive/branches/etch/src/mysql/
   packages/gpsdrive/branches/etch/src/mysql/CVS/
   packages/gpsdrive/branches/etch/src/mysql/CVS/Entries
   packages/gpsdrive/branches/etch/src/mysql/CVS/Repository
   packages/gpsdrive/branches/etch/src/mysql/CVS/Root
   packages/gpsdrive/branches/etch/src/mysql/chardefs.h
   packages/gpsdrive/branches/etch/src/mysql/dbug.h
   packages/gpsdrive/branches/etch/src/mysql/errmsg.h
   packages/gpsdrive/branches/etch/src/mysql/history.h
   packages/gpsdrive/branches/etch/src/mysql/keymaps.h
   packages/gpsdrive/branches/etch/src/mysql/m_ctype.h
   packages/gpsdrive/branches/etch/src/mysql/m_string.h
   packages/gpsdrive/branches/etch/src/mysql/my_config.h
   packages/gpsdrive/branches/etch/src/mysql/my_global.h
   packages/gpsdrive/branches/etch/src/mysql/my_list.h
   packages/gpsdrive/branches/etch/src/mysql/my_net.h
   packages/gpsdrive/branches/etch/src/mysql/my_no_pthread.h
   packages/gpsdrive/branches/etch/src/mysql/my_pthread.h
   packages/gpsdrive/branches/etch/src/mysql/my_sys.h
   packages/gpsdrive/branches/etch/src/mysql/mysql.h
   packages/gpsdrive/branches/etch/src/mysql/mysql_com.h
   packages/gpsdrive/branches/etch/src/mysql/mysql_version.h
   packages/gpsdrive/branches/etch/src/mysql/mysqld_error.h
   packages/gpsdrive/branches/etch/src/mysql/raid.h
   packages/gpsdrive/branches/etch/src/mysql/readline.h
   packages/gpsdrive/branches/etch/src/mysql/sslopt-case.h
   packages/gpsdrive/branches/etch/src/mysql/sslopt-longopts.h
   packages/gpsdrive/branches/etch/src/mysql/sslopt-usage.h
   packages/gpsdrive/branches/etch/src/mysql/sslopt-vars.h
   packages/gpsdrive/branches/etch/src/mysql/tilde.h
   packages/gpsdrive/branches/etch/src/nautic.c
   packages/gpsdrive/branches/etch/src/navigation.c
   packages/gpsdrive/branches/etch/src/netlib.c
   packages/gpsdrive/branches/etch/src/nmea.h
   packages/gpsdrive/branches/etch/src/nmea_parse.c
   packages/gpsdrive/branches/etch/src/power.h
   packages/gpsdrive/branches/etch/src/serial.c
   packages/gpsdrive/branches/etch/src/settings.c
   packages/gpsdrive/branches/etch/src/speech_out.c
   packages/gpsdrive/branches/etch/src/splash.c
   packages/gpsdrive/branches/etch/src/talogo.h
   packages/gpsdrive/branches/etch/src/tm.c
   packages/gpsdrive/branches/etch/src/top_GPSWORLD.jpg
   packages/gpsdrive/branches/etch/src/track.c
   packages/gpsdrive/branches/etch/src/track.h
   packages/gpsdrive/branches/etch/src/version.h
   packages/gpsdrive/branches/etch/src/wpcvt
   packages/gpsdrive/branches/etch/src/wpget
   packages/gpsdrive/branches/etch/wp2sql
Log:
add etch branch


Copied: packages/gpsdrive/branches/etch (from rev 1805, packages/gpsdrive/tags/2.09-2.1)


Property changes on: packages/gpsdrive/branches/etch
___________________________________________________________________
Name: svn:mergeinfo
   + 

Added: packages/gpsdrive/branches/etch/ABOUT-NLS
===================================================================
--- packages/gpsdrive/branches/etch/ABOUT-NLS	                        (rev 0)
+++ packages/gpsdrive/branches/etch/ABOUT-NLS	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,279 @@
+Notes on the Free Translation Project
+*************************************
+
+   Free software is going international!  The Free Translation Project
+is a way to get maintainers of free software, translators, and users all
+together, so that will gradually become able to speak many languages.
+A few packages already provide translations for their messages.
+
+   If you found this `ABOUT-NLS' file inside a distribution, you may
+assume that the distributed package does use GNU `gettext' internally,
+itself available at your nearest GNU archive site.  But you do *not*
+need to install GNU `gettext' prior to configuring, installing or using
+this package with messages translated.
+
+   Installers will find here some useful hints.  These notes also
+explain how users should proceed for getting the programs to use the
+available translations.  They tell how people wanting to contribute and
+work at translations should contact the appropriate team.
+
+   When reporting bugs in the `intl/' directory or bugs which may be
+related to internationalization, you should tell about the version of
+`gettext' which is used.  The information can be found in the
+`intl/VERSION' file, in internationalized packages.
+
+One advise in advance
+=====================
+
+   If you want to exploit the full power of internationalization, you
+should configure it using
+
+     ./configure --with-included-gettext
+
+to force usage of internationalizing routines provided within this
+package, despite the existence of internationalizing capabilities in the
+operating system where this package is being installed.  So far, only
+the `gettext' implementation in the GNU C library version 2 provides as
+many features (such as locale alias or message inheritance) as the
+implementation here.  It is also not possible to offer this additional
+functionality on top of a `catgets' implementation.  Future versions of
+GNU `gettext' will very likely convey even more functionality.  So it
+might be a good idea to change to GNU `gettext' as soon as possible.
+
+   So you need not provide this option if you are using GNU libc 2 or
+you have installed a recent copy of the GNU gettext package with the
+included `libintl'.
+
+INSTALL Matters
+===============
+
+   Some packages are "localizable" when properly installed; the
+programs they contain can be made to speak your own native language.
+Most such packages use GNU `gettext'.  Other packages have their own
+ways to internationalization, predating GNU `gettext'.
+
+   By default, this package will be installed to allow translation of
+messages.  It will automatically detect whether the system provides
+usable `catgets' (if using this is selected by the installer) or
+`gettext' functions.  If neither is available, the GNU `gettext' own
+library will be used.  This library is wholly contained within this
+package, usually in the `intl/' subdirectory, so prior installation of
+the GNU `gettext' package is *not* required.  Installers may use
+special options at configuration time for changing the default
+behaviour.  The commands:
+
+     ./configure --with-included-gettext
+     ./configure --with-catgets
+     ./configure --disable-nls
+
+will respectively bypass any pre-existing `catgets' or `gettext' to use
+the internationalizing routines provided within this package, enable
+the use of the `catgets' functions (if found on the locale system), or
+else, *totally* disable translation of messages.
+
+   When you already have GNU `gettext' installed on your system and run
+configure without an option for your new package, `configure' will
+probably detect the previously built and installed `libintl.a' file and
+will decide to use this.  This might be not what is desirable.  You
+should use the more recent version of the GNU `gettext' library.  I.e.
+if the file `intl/VERSION' shows that the library which comes with this
+package is more recent, you should use
+
+     ./configure --with-included-gettext
+
+to prevent auto-detection.
+
+   By default the configuration process will not test for the `catgets'
+function and therefore they will not be used.  The reasons are already
+given above: the emulation on top of `catgets' cannot provide all the
+extensions provided by the GNU `gettext' library.  If you nevertheless
+want to use the `catgets' functions use
+
+     ./configure --with-catgets
+
+to enable the test for `catgets' (this causes no harm if `catgets' is
+not available on your system).  If you really select this option we
+would like to hear about the reasons because we cannot think of any
+good one ourself.
+
+   Internationalized packages have usually many `po/LL.po' files, where
+LL gives an ISO 639 two-letter code identifying the language.  Unless
+translations have been forbidden at `configure' time by using the
+`--disable-nls' switch, all available translations are installed
+together with the package.  However, the environment variable `LINGUAS'
+may be set, prior to configuration, to limit the installed set.
+`LINGUAS' should then contain a space separated list of two-letter
+codes, stating which languages are allowed.
+
+Using This Package
+==================
+
+   As a user, if your language has been installed for this package, you
+only have to set the `LANG' environment variable to the appropriate
+ISO 639 `LL' two-letter code prior to using the programs in the
+package.  For example, let's suppose that you speak German.  At the
+shell prompt, merely execute `setenv LANG de' (in `csh'),
+`export LANG; LANG=de' (in `sh') or `export LANG=de' (in `bash').  This
+can be done from your `.login' or `.profile' file, once and for all.
+
+   An operating system might already offer message localization for
+many of its programs, while other programs have been installed locally
+with the full capabilities of GNU `gettext'.  Just using `gettext'
+extended syntax for `LANG' would break proper localization of already
+available operating system programs.  In this case, users should set
+both `LANGUAGE' and `LANG' variables in their environment, as programs
+using GNU `gettext' give preference to `LANGUAGE'.  For example, some
+Swedish users would rather read translations in German than English for
+when Swedish is not available.  This is easily accomplished by setting
+`LANGUAGE' to `sv:de' while leaving `LANG' to `sv'.
+
+Translating Teams
+=================
+
+   For the Free Translation Project to be a success, we need interested
+people who like their own language and write it well, and who are also
+able to synergize with other translators speaking the same language.
+Each translation team has its own mailing list, courtesy of Linux
+International.  You may reach your translation team at the address
+`LL at li.org', replacing LL by the two-letter ISO 639 code for your
+language.  Language codes are *not* the same as the country codes given
+in ISO 3166.  The following translation teams exist, as of August 1998:
+
+     Chinese `zh', Czech `cs', Danish `da', Dutch `nl', English `en',
+     Esperanto `eo', Finnish `fi', French `fr', German `de', Hungarian
+     `hu', Irish `ga', Italian `it', Indonesian `id', Japanese `ja',
+     Korean `ko', Latin `la', Norwegian `no', Persian `fa', Polish
+     `pl', Portuguese `pt', Russian `ru', Slovenian `sl', Spanish `es',
+     Swedish `sv', and Turkish `tr'.
+
+For example, you may reach the Chinese translation team by writing to
+`zh at li.org'.
+
+   If you'd like to volunteer to *work* at translating messages, you
+should become a member of the translating team for your own language.
+The subscribing address is *not* the same as the list itself, it has
+`-request' appended.  For example, speakers of Swedish can send a
+message to `sv-request at li.org', having this message body:
+
+     subscribe
+
+   Keep in mind that team members are expected to participate
+*actively* in translations, or at solving translational difficulties,
+rather than merely lurking around.  If your team does not exist yet and
+you want to start one, or if you are unsure about what to do or how to
+get started, please write to `translation at iro.umontreal.ca' to reach the
+coordinator for all translator teams.
+
+   The English team is special.  It works at improving and uniformizing
+the terminology in use.  Proven linguistic skill are praised more than
+programming skill, here.
+
+Available Packages
+==================
+
+   Languages are not equally supported in all packages.  The following
+matrix shows the current state of internationalization, as of August
+1998.  The matrix shows, in regard of each package, for which languages
+PO files have been submitted to translation coordination.
+
+     Ready PO files    cs da de el en es fi fr it
+                     .----------------------------.
+     bash            |       []             []    |
+     bison           |       []             []    |
+     clisp           |       []    [] []    []    |
+     cpio            |       []       []    []    |
+     diffutils       |       []       []    []    |
+     enscript        |       []       [] [] []    |
+     fileutils       | []    []       []    []    |
+     findutils       |       []       []    [] [] |
+     flex            |                []    []    |
+     gcal            |       []             []    |
+     gettext         |    [] [] []    []    []    |
+     grep            |       [] []    []    []    |
+     hello           |    [] []       []    [] [] |
+     id-utils        |       []             []    |
+     indent          |    [] []                   |
+     libc            |       []       []    []    |
+     m4              |       []             []    |
+     make            |       []       []    []    |
+     music           |                      []    |
+     ptx             |       []       []    []    |
+     recode          |    [] []       []    []    |
+     sed             |                            |
+     sh-utils        |       []       []    []    |
+     sharutils       | []    [] []    []    []    |
+     tar             | []    []             [] [] |
+     texinfo         | []    []             []    |
+     textutils       | []    []       []    []    |
+     wdiff           | []    []       []    []    |
+     wget            | []    [] []             [] |
+                     `----------------------------'
+                       cs da de el en es fi fr it
+                        7  4 26  4  1 18  1 26  4
+     
+                       ja ko nl no pl pt ru sl sv
+                     .----------------------------.
+     bash            |       []                   |  3
+     bison           |       []                   |  3
+     clisp           |                            |  4
+     cpio            |    [] []    []             |  6
+     diffutils       |             []          [] |  5
+     enscript        |       []             []    |  6
+     fileutils       |    [] []    [] [] [] [] [] | 11
+     findutils       |    [] []    []    []    [] |  9
+     flex            |    []                   [] |  4
+     gcal            |       []    []          [] |  5
+     gettext         |    [] [] [] [] []    [] [] | 13
+     grep            |    [] [] [] []    [] [] [] | 11
+     hello           |    [] [] [] [] []    [] [] | 12
+     id-utils        |             []             |  3
+     indent          |    []       []    []       |  5
+     libc            |    [] [] [] []          [] |  8
+     m4              | []    []          []    [] |  6
+     make            |    [] []    []             |  6
+     music           |             []             |  2
+     ptx             |       [] [] [] []       [] |  8
+     recode          |       []    [] []    [] [] |  9
+     sed             |                            |  0
+     sh-utils        |       [] [] [] []       [] |  8
+     sharutils       |       []                [] |  7
+     tar             |    [] [] [] [] []    [] [] | 11
+     texinfo         |       []                   |  4
+     textutils       |    [] [] [] []          [] |  9
+     wdiff           |       [] [] []          [] |  8
+     wget            |          []                |  5
+                     `----------------------------'
+       18 teams        ja ko nl no pl pt ru sl sv
+       29 domains       1 12 21 11 19  7  5  7 17  191
+
+   Some counters in the preceding matrix are higher than the number of
+visible blocks let us expect.  This is because a few extra PO files are
+used for implementing regional variants of languages, or language
+dialects.
+
+   For a PO file in the matrix above to be effective, the package to
+which it applies should also have been internationalized and
+distributed as such by its maintainer.  There might be an observable
+lag between the mere existence a PO file and its wide availability in a
+distribution.
+
+   If August 1998 seems to be old, you may fetch a more recent copy of
+this `ABOUT-NLS' file on most GNU archive sites.
+
+Using `gettext' in new packages
+===============================
+
+   If you are writing a freely available program and want to
+internationalize it you are welcome to use GNU `gettext' in your
+package.  Of course the GNU Public License applies to your sources from
+then if you include `gettext' directly in your distribution on but
+since you are writing free software anyway this is no restriction.
+
+   Once the sources are change appropriately and the setup can handle to
+use of `gettext' the only thing missing are the translations.  The Free
+Translation Project is also available for packages which are not
+developed inside the GNU project.  Therefore the information given above
+applies also for every other Free Software Project.  Contact
+`translation at iro.umontreal.ca' to make the `.pot' files available to
+the translation teams.
+

Added: packages/gpsdrive/branches/etch/AUTHORS
===================================================================
--- packages/gpsdrive/branches/etch/AUTHORS	                        (rev 0)
+++ packages/gpsdrive/branches/etch/AUTHORS	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,38 @@
+GpsDrive and maintainer:   Fritz Ganter <ganter at ganter.at>
+
+Garble:                    Douglas S. J. De Couto  <decouto at lcs.mit.edu> 
+
+-m option patch:           Andreas Hinz <news1 at acci.dk>
+
+wpcvt improved:            Stephen Wood <saw2 at home.com>
+
+-o option to output NMEA sentences: Dan Egnor <egnor at ofb.net>
+patches for CPU temp.:     Jaap Hogenberg <hogenberg11 at zonnet.nl>
+
+gpsd:                      Remco Treffkorn <remco at rvt.com>
+gpsfetchmap:               Manfred Caruso <bertoz at bertoz.com>
+gpsfetchmap.pl:		   Kevin Stephens <gps at suburbialost.com>
+mb2gpsdrive.pl:		   Sven Fichtner
+Small displays:		   Richard Scheffenegger <rscheff at chello.at>
+FreeBSD port:		   Marco Molteni <molter at tin.it>
+Compass pointer:	   Wernle Daniel <wernle at quant-x.com>
+gpsreplay:                 Timothy Witham <twitham at surewest.net>
+Topomap support:           Russell Harding <hardingr at billingside.com>
+
+
+Thanks for translations:
+
+French:    Jacky Francois <jfrancois at free.fr>, Damien Prat <Damien.Prat at cnet.com>
+Dansk:     Andreas Hinz <news1 at acci.dk>
+Spanish:   Félix Martos <pakito at asinkecualo.org>
+Dutch:     Dirk-Jan Faber <dirk-jan at selwerd.nl>
+Italian:   Manfred Caruso <bertoz at bertoz.com>
+German:    Fritz Ganter <ganter at ganter.at> :-)
+Hungarian: Emese Kovács <emese at gnome.hu>
+Slovak:    Zdeno Podobný <zdpo at mailbox.sk>
+Swedish:   Martin Sjögren <md9ms at mdstud.chalmers.se>
+Greek:     Yiannis Pailas <johntop at pathfinder.gr>
+Japanese:  <maruyama at sh.rim.or.jp>
+Norway:     Alexander Wigen 
+Turk:      A. Burak Ilgicioglu <ilgici at ttnet.net.tr>
+

Added: packages/gpsdrive/branches/etch/COPYING
===================================================================
--- packages/gpsdrive/branches/etch/COPYING	                        (rev 0)
+++ packages/gpsdrive/branches/etch/COPYING	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,340 @@
+		    GNU GENERAL PUBLIC LICENSE
+		       Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+     59 Temple Place, Suite 330, Boston, MA  02111-1307  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.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <year>  <name of author>
+
+    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
+
+
+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.
+
+  <signature of Ty Coon>, 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.

Added: packages/gpsdrive/branches/etch/CREDITS
===================================================================
--- packages/gpsdrive/branches/etch/CREDITS	                        (rev 0)
+++ packages/gpsdrive/branches/etch/CREDITS	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,15 @@
+Thanks for translations:
+
+French:    Jacky Francois <jfrancois at free.fr>
+Dansk:     Andreas Hinz <news1 at acci.dk>
+Spanish:   Félix Martos <pakito at asinkecualo.org>
+Dutch:     Dirk-Jan Faber <dirk-jan at selwerd.nl>
+Italian:   Manfred Caruso <bertoz at bertoz.com>
+German:    Fritz Ganter <ganter at ganter.at> :-)
+Hungarian: Emese Kovács <emese at gnome.hu>
+Slovak:    Zdeno Podobný <zdpo at mailbox.sk>
+Swedish:   Martin Sjögren <md9ms at mdstud.chalmers.se>
+Japanese:  <maruyama at sh.rim.or.jp>
+Greek:     Yiannis Pailas <johntop at pathfinder.gr>
+Norwegian: Alexander Wigen
+Turkish:   A. Burak Ilgicioglu <ilgici at ttnet.net.tr>

Added: packages/gpsdrive/branches/etch/ChangeLog
===================================================================
--- packages/gpsdrive/branches/etch/ChangeLog	                        (rev 0)
+++ packages/gpsdrive/branches/etch/ChangeLog	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,3298 @@
+2004-02-23  Fritz Ganter  <ganter at ganter.local>
+
+	* po/tr.po, src/gpsfetchmap.pl, po/sk.po, po/sv.po, po/no.po, po/pt_BR.po, po/ja.po, po/nl.po, po/hu.po, po/it.po, po/gr.po, po/fr.po, po/es.po, po/de_AT.po, AUTHORS, po/da.po, po/de.po:
+	v 2.08
+
+2004-02-19  Fritz Ganter  <ganter at ganter.local>
+
+	* po/tr.po, src/Makefile.am, src/gpsdrive.spec, src/splash.c, src/talogo.h, po/sk.po, po/sv.po, po/no.po, po/pt_BR.po, po/ja.po, po/nl.po, po/it.po, po/gr.po, po/hu.po, po/es.po, po/fr.po, po/de_AT.po, po/de.po, configure.ac, po/da.po:
+	added Tele Atlas logo in about window
+
+2004-02-18  Fritz Ganter  <ganter at ganter.local>
+
+	* src/gpsiconbt.png: added
+
+	* src/gpsmisc.c, src/gpsproto.h, src/navigation.c, src/splash.c, src/Makefile.am, src/gpsdrive.c:
+	navigation
+
+2004-02-16  Fritz Ganter  <ganter at ganter.local>
+
+	* po/tr.po, src/Makefile.am, src/gpsdrive.c, src/navigation.c, po/sk.po, po/sv.po, po/no.po, po/pt_BR.po, po/nl.po, po/ja.po, po/hu.po, po/it.po, po/gr.po, po/fr.po, po/es.po, po/de_AT.po, po/de.po, README, configure.ac, po/da.po:
+	activated navigation.c for teleatlas street maps, need some months of work to
+	get it functional.
+
+2004-02-12  Fritz Ganter  <ganter at ganter.local>
+
+	* src/gpsdrive.c, src/gpsdrive.h, src/gpsserial.c:
+	added -W switch for enable/disable WAAS/EGNOS (for SiRF II only?)
+
+2004-02-11  Fritz Ganter  <ganter at ganter.local>
+
+	* src/gpsdrive.c, src/gpsdrive.h: max. number of sats is now MAXSATS
+
+	* src/gpsdrive.c: added debug output for satellites
+
+	* src/gpsdrive.c: increased max satellite number from 40 to 80
+
+	* src/splash.c, src/gpsdrive.c:
+	added patch from Johnny Cache <johnycsh at hick.org>, dbname is now configurable
+	in gpsdriverc
+	additional search path for libmysql for cygwin
+
+2004-02-09  Fritz Ganter  <ganter at ganter.local>
+
+	* src/gpsdrive.c: fixed topomap bug
+
+	* src/gpsserial.c, src/gpsdrive.c:
+	fixed timeout behavior for direct serial connection
+
+2004-02-08  Fritz Ganter  <ganter at ganter.local>
+
+	* man/gpsdrive.1, src/gpssql.c:
+	handle user-defined icons for open and closed wlans
+	the filename should be:
+	for open wlan:  wlan.png
+	for crypted wlan: wlan-wep.png
+
+	* man/gpsdrive.1, src/battery.c:
+	autsch, fn string in battery.c was too short
+	still 2.08pre12
+
+	* po/tr.po, po/sk.po, po/sv.po, po/no.po, po/pt_BR.po, po/ja.po, po/nl.po, po/it.po, po/gr.po, po/hu.po, po/fr.po, po/es.po, po/de.po, po/de_AT.po, po/da.po:
+	...
+
+	* src/gpsserial.c, src/splash.c: v2.08pre12
+
+	* src/battery.c, src/fly.c, src/friendsd.c, src/gpsdrive.c, src/gpskismet.c, src/gpsnasamap.c, src/gpssql.c, src/settings.c, src/speech_out.c, src/splash.c, src/track.c:
+	replacing all strcat with g_strlcat to avoid buffer overflows
+
+	* src/friends.c, src/friendsd.c, src/gpsdrive.c, src/gpskismet.c, src/gpsnasamap.c, src/gpsserial.c, src/gpssql.c, src/navigation.c, src/settings.c, src/speech_out.c, src/gpsdrivemini.png, src/gpsdrivesplash.png, src/splash.c:
+	replacing all sprintf with g_snprintf to avoid buffer overflows
+
+2004-02-07  Fritz Ganter  <ganter at ganter.local>
+
+	* src/gpsserial.c, src/track.c, src/gpsdrive.c: ...
+
+	* src/friends.c, src/gpskismet.c, src/gpsmisc.c, src/gpsserial.c, src/settings.c:
+	replacing strcpy with g_strlcpy to avoid bufferoverflows
+
+	* po/no.po, po/pt_BR.po, po/sk.po, po/sv.po, po/tr.po, src/gpsdrive.c, po/da.po, po/de.po, po/de_AT.po, po/es.po, po/fr.po, po/gr.po, po/hu.po, po/it.po, po/ja.po, po/nl.po:
+	changed status string
+
+	* src/gpsdrive.c, src/gpsserial.c, src/gpssql.c, src/settings.c, src/splash.c, po/sv.po, po/tr.po, po/sk.po, po/no.po, po/pt_BR.po, po/ja.po, po/nl.po, po/it.po, po/gr.po, po/hu.po, po/fr.po, po/es.po, po/de_AT.po, po/da.po, po/de.po:
+	added "store timezone" button in settings menu
+
+2004-02-06  Fritz Ganter  <ganter at ganter.local>
+
+	* configure.ac, src/Makefile.am, src/gpsdrive.spec: ...
+
+	* src/gpsfetchmap: removed gpsfetchmap
+
+	* README, README.SQL, man/de/gpsdrive.1, man/gpsdrive.1, src/friendsd.c, src/gpsnasamap.c, src/speech_out.c:
+	updated README and man page
+
+	* src/gpsdrive.c, src/settings.c: disabled mapblast server
+
+	* src/gpsdrive.c, src/gpsserial.c:
+	added -E parameter, which prints out the NMEA messages received
+
+	* po/sk.po, po/sv.po, po/tr.po, po/POTFILES.in, po/da.po, po/de.po, po/de_AT.po, po/es.po, po/fr.po, po/gr.po, po/hu.po, po/it.po, po/ja.po, po/nl.po, po/no.po, po/pt_BR.po, src/gpssql.c:
+	...
+
+	* src/gpssql.c, po/sv.po, po/tr.po, po/pt_BR.po, po/sk.po, po/no.po, po/ja.po, po/nl.po, po/gr.po, po/hu.po, po/it.po, po/fr.po, po/de_AT.po, po/es.po, po/de.po, po/da.po:
+	updated translation
+
+	* ChangeLog: updated ChangeLog
+
+	* src/gpsdrive.c, src/gpsdrive.h, src/gpssql.c:
+	added support for user-defined icons
+	create the directory: $HOME/.gpsdrive/icons
+	place your icons (type must be png) into this directory, with the name of
+	the waypoint type, filename must be lowercase
+	i.e. for waypoint type "HOTEL" the file must have the name "hotel.png"
+
+	* FAQ.gpsdrive, src/gpsserial.c:
+	added select again, so we can check if data is coming
+
+2004-02-06  Fritz Ganter  <ganter at ganter.local>
+
+	* gpsdrive.c, gpsdrive.h, gpssql.c:
+	added support for user-defined icons
+	create the directory: $HOME/.gpsdrive/icons
+	place your icons (type must be png) into this directory, with the name of
+	the waypoint type, filename must be lowercase
+	i.e. for waypoint type "HOTEL" the file must have the name "hotel.png"
+
+	* gpsserial.c: added select again, so we can check if data is coming
+
+2004-02-05  Fritz Ganter  <ganter at ganter.local>
+
+	* gpsserial.c:
+	code in gpsserial.c didn't work with USB receivers, because the send characters too fast
+	this code now should be ok
+
+	* gpsdrive.c, gpsdrive.h, gpsserial.c, splash.c, track.c:
+	replacing strcpy with g_strlcpy to avoid bufferoverflows
+	USB receiver does not send sentences in direct serial mode,
+	so I first send a "\n" to it
+
+	* gpsdrive.c: if no sat fix, satdisplay is red, otherwise green
+
+2004-02-04  Fritz Ganter  <ganter at ganter.local>
+
+	* gpsdrive.c: adjust sat level bars
+
+	* gpsdrive.h, gpsnasamap.c, gpsdrive.c:
+	added GPGSA sentence for PDOP (Position Dilution Of Precision).
+
+2004-02-03  Fritz Ganter  <ganter at ganter.local>
+
+	* gpsdrive.c, gpsdrive.h, gpsdrive.spec, settings.c:
+	fixed wrong string size
+
+	* gpsd.c, nmea.h, nmea_parse.c, tm.c:
+	added gpsd patches from David Clayton which fixes some bufferoverflows
+	and added support for GPGLL sentence
+
+	* settings.c, gpsdrive.c: night mode works fine
+	map handling for new users also
+	fixed bug: you was unable to edit the name in friends menu
+
+	* gpsnasamap.c, gpsdrive.c:
+	working on problems if gpsdrive is not installed
+
+	* gpsdrive.c: nightmode sets background to red
+
+2004-02-03  Fritz Ganter  <ganter at ganter.local>
+
+	* gpsd.c, nmea.h, nmea_parse.c, tm.c:
+	added gpsd patches from David Clayton which fixes some bufferoverflows
+	and added support for GPGLL sentence
+
+	* settings.c, gpsdrive.c: night mode works fine
+	map handling for new users also
+	fixed bug: you was unable to edit the name in friends menu
+
+	* gpsnasamap.c, gpsdrive.c:
+	working on problems if gpsdrive is not installed
+
+	* gpsdrive.c: nightmode sets background to red
+
+2004-02-02  Fritz Ganter  <ganter at ganter.local>
+
+	* gpsdriveanim.gif: let earth rotate in the proper direction
+	:-)
+
+	* gpsdriveanim.gif, gpsserial.c: ..
+
+	* gpsdriveanim.gif: ...
+
+	* gpsdrive.c, gpsdriveanim.gif, settings.c:
+	new, self rendered earth animation
+
+	* gpsdrive.c, gpsdrive.spec, gpsmisc.c: 2.08pre10
+
+	* gpsdrive.c:
+	in "Search" window and in "Send message" window you can sort the entries
+	by clicking on the column label
+
+	* gpsdrive.c, gpsmisc.c, gpsproto.h:
+	inserted function calcxytopos, key x,y and right mouseclick are now correct in topomaps
+
+	* gpsdrive.h, gpskismet.c, gpsmisc.c, gpsproto.h, gpsserial.c, gpssql.c, nautic.c, navigation.c, settings.c, speech_out.c, splash.c, track.c, Makefile.am, battery.c, fly.c, friends.c, gpsdrive.c:
+	code cleanup
+
+2004-02-02  Fritz Ganter  <ganter at ganter.local>
+
+	* gpsdriveanim.gif: let earth rotate in the proper direction
+	:-)
+
+	* gpsdriveanim.gif, gpsserial.c: ..
+
+	* gpsdriveanim.gif: ...
+
+	* gpsdrive.c, gpsdriveanim.gif, settings.c:
+	new, self rendered earth animation
+
+	* gpsdrive.c, gpsdrive.spec, gpsmisc.c: 2.08pre10
+
+	* gpsdrive.c:
+	in "Search" window and in "Send message" window you can sort the entries
+	by clicking on the column label
+
+	* gpsdrive.c, gpsmisc.c, gpsproto.h:
+	inserted function calcxytopos, key x,y and right mouseclick are now correct in topomaps
+
+	* gpsdrive.h, gpskismet.c, gpsmisc.c, gpsproto.h, gpsserial.c, gpssql.c, nautic.c, navigation.c, settings.c, speech_out.c, splash.c, track.c, Makefile.am, battery.c, fly.c, friends.c, gpsdrive.c:
+	code cleanup
+
+2004-02-01  Fritz Ganter  <ganter at ganter.local>
+
+	* gpsnasamap.c: added output to gpsnasamap.c
+
+	* gpsnasamap.c: missing nasamaps should now really work!
+	upload again 2.08pre9!
+
+	* gpsnasamap.c: fixed bug if 1 nasamap is missing
+
+	* gpsdrive.spec, settings.c, splash.c:
+	added "no_ssid" button in the SQL settings
+
+	* splash.c: use dbhostname (the hostname of the SQL server) now works
+	dbhostname may be edited in gpsdriverc
+
+	* gpsnasamap.c, gpsdrive.c: it seems that nasamaps now working fine
+
+2004-01-31  Fritz Ganter  <ganter at ganter.local>
+
+	* gpsdrive.c, gpsnasamap.c: pre8
+
+	* gpsdrive.spec, gpsnasamap.c, gpsserial.c, splash.c, gpsdrive.c:
+	nasamaps are working better, but still bugs
+
+	* gpsnasamap.c: i hope the nasa maps work all over the world
+	I expect it works not in australia, will see after i get a little bit sleep
+
+	* gpsdrive.c, gpsnasamap.c: nasa maps at lon=0 works now
+
+	* gpsdrive.c, gpsnasamap.c: ...
+
+	* gpsnasamap.c: oh, forgot to add to CVS
+
+	* gpsdrive.spec: added this README for the NASA satellite maps
+
+	* Makefile.am, convnasamap.c, gpsdrive.c:
+	nasa map loading seems to work
+	bug: it would not work around 0 meridian
+
+2004-01-30  Fritz Ganter  <ganter at ganter.local>
+
+	* convnasamap.c, gpsdrive.c:
+	convnasamap creates mapfiles from the big nasa map files
+
+	* map_GPSWORLD.jpg, top_GPSWORLD.jpg:
+	changed filenames /map_GPSWORLD.jpg to top_GPSWORLD.jpg
+
+	* Makefile.am, gpsdrive.c, gpsdrive.spec, gpsserial.c:
+	i have to add gdk_threads_enter()/gdk_threads_leave() into all timeouts :-(
+
+	* map_GPSWORLD.jpg, gpsdrive.spec, gpsdrivesplash.png, Makefile.am, gpsdrive.c:
+	new splash picture
+
+2004-01-29  Fritz Ganter  <ganter at ganter.local>
+
+	* gpsdrive.c: v2.08pre6
+	changed sat level to GPS info
+
+	* gpsdrive.c, speech_out.c: after valgrind
+
+	* gpsdrive.c: changed layout of sats display
+
+2004-01-28  Fritz Ganter  <ganter at ganter.local>
+
+	* friends.c, gpsdrive.c, gpskismet.c, splash.c: initialize FDs to -1
+
+	* gpsdrive.c: fixed silly  if (sock == 0) bug
+
+	* gpsdrive.c: ...
+
+	* gpsdrive.c, gpsdriveanim.gif: replaced earth with a better one
+
+	* friends.c, gpsdrive.c, gpskismet.c, gpsserial.c, settings.c, splash.c:
+	tested for memory leaks with valgrind, looks good :-)
+
+	* gpsserial.c: added #include <sys/select.h>
+	to gpsserial.c
+
+	* Makefile.am, gpsdrive.spec: 2.08pre5
+
+	* gpsdrive.c, gpsdriveanim.gif: new animation
+
+	* gpsdrive.c: moved tooltip
+
+	* gpsdrive.c: ...
+
+	* Makefile.am, gpsdrive.c, gpsdriveanim.gif, stop.h:
+	added gpsdriveanim.gif handling
+
+	* gpsdrive.c: added animated icon
+	you can now switch between gpsd and sim mode
+
+2004-01-27  Fritz Ganter  <ganter at ganter.local>
+
+	* gpsserial.c, settings.c, splash.c, gpsdrive.c:
+	added "direct serial connection" button in settings menu
+
+	* gpsserial.c: removed double defines
+
+	* gpsdrive.c: fixed bug of not working simulation mode
+
+	* gpsdrive.c, gpsdrive.spec, gpsserial.c, settings.c, splash.c:
+	The baudrate is now selectable in settings menu
+	GpsDrive now connects to the GPS receiver in following order:
+	Try to connect to gpsd
+	Try to find Garble-mode Garmin
+	Try to read data directly from serial port
+
+	If this all fails, it falls back into simulation mode
+
+	* Makefile.am, gpsdrive.c, gpsdrive.h, gpsserial.c: added gpsserial.c
+
+	gpsdrive now detects a running gps receiver
+	You don't need to start gpsd now, serial connection is handled by GpsDrive directly
+
+2004-01-26  Fritz Ganter  <ganter at ganter.local>
+
+	* friends.c, friendsd.c, settings.c, splash.c: just indented some files
+
+	* gpsdrive.spec: 2.08pre3
+
+2004-01-25  Fritz Ganter  <ganter at ganter.local>
+
+	* gpsdrive.c: ...
+
+	* gpsdrive.c: added alignments for battery and temperature
+
+	* gpsdrive.c: ...
+
+	* gpsdrive.c: centered compass and satlevel display
+
+2004-01-24  Fritz Ganter  <ganter at ganter.local>
+
+	* gpsdrive.c:
+	fixed bug in NESW (north,east,south,west compass label) string handling with
+	unicode
+
+2004-01-25  Fritz Ganter  <ganter at ganter.local>
+
+	* gpsdrive.c: ...
+
+	* gpsdrive.c: centered compass and satlevel display
+
+2004-01-24  Fritz Ganter  <ganter at ganter.local>
+
+	* gpsdrive.c:
+	fixed bug in NESW (north,east,south,west compass label) string handling with
+	unicode
+
+	* gpsdrive.c, settings.c: set transient for file dialogs
+
+	* settings.c, splash.c, gpsdrive.c:
+	friends label color is now changeable in settings menu
+
+2004-01-22  Fritz Ganter  <ganter at ganter.local>
+
+	* Makefile.am, gpsdrive.spec: added desktop file to rpm specfile
+
+	* friends.c, friendsd.c, splash.c: ...
+
+	* friends.c, friendsd.c, gpsdrive.c: working on friendsd
+
+	* Makefile.am, friendsd.c, gpsdrive.c:
+	friendsd now sends a receiving acknoledge
+
+2004-01-21  Fritz Ganter  <ganter at ganter.local>
+
+	* Makefile.am, compass.h, gpsdrive.c, gpsdrive.spec:
+	added compass image
+
+2004-01-20  Fritz Ganter  <ganter at ganter.local>
+
+	* Makefile.am: added desktop file, works only if you use --prefix=/usr
+
+	* gpsdrive.c: ...
+
+	* gpsdrive.c: import maps is working again
+
+	* track.c, gpsdrive.c: working on import function
+
+	* gpsdrive.c, gpsdrive.spec: fixed N/S bug in display
+	disabled non-working menu entries
+
+2004-01-18  Fritz Ganter  <ganter at ganter.local>
+
+	* battery.c, gpsdrive.c: fixed bug for GTK<2.2.x
+
+	* gpsdrive.c, gpsdrive.spec, gpsreplay, splash.c:
+	this is the nice 2.07 release
+
+	* battery.c: fixed last memleak in battery.c (I hope)
+
+	* gpsdrive.c, splash.c: button for reminder window
+
+	* gpsdrive.c, splash.c:
+	try to find the problem that x-server eats cpu after 5 hours
+
+	* gpsdrive.c, settings.c, splash.c:
+	changed all popups to gtk_dialog instead of a toplevel window
+	cosmetic changes in settings menu
+
+2004-01-18  Fritz Ganter  <ganter at ganter.local>
+
+	* battery.c: fixed last memleak in battery.c (I hope)
+
+	* gpsdrive.c, splash.c: button for reminder window
+
+	* gpsdrive.c, splash.c:
+	try to find the problem that x-server eats cpu after 5 hours
+
+	* gpsdrive.c, settings.c, splash.c:
+	changed all popups to gtk_dialog instead of a toplevel window
+	cosmetic changes in settings menu
+
+2004-01-17  Fritz Ganter  <ganter at ganter.local>
+
+	* battery.c, gpsdrive.c: fixed some memory leaks
+
+	* battery.c: no need to create batimage always new, made it static
+
+	* battery.c, gpsdrive.c, settings.c, speech_out.c:
+	replaced all gdk_pixbuf_render_to_drawable (obsolet) with gdk_draw_pixbuf
+
+	* gpsdrive.c, settings.c, splash.c, track.c:
+	added color setting for track color
+
+	* settings.c: added tooltip for color change button
+
+	* gpsdrive.spec, gpsicon-temp.png, gpsicon.png: some work on icon
+
+	* Makefile.am, gpsdrive.c, gpsico.h, gpsicon-temp.png, gpsicon.png:
+	added better icon
+
+	* gpsdrive.c, splash.c:
+	randomize the startposition and set it the hamburg cementry :-)
+
+2004-01-16  Fritz Ganter  <ganter at ganter.local>
+
+	* Makefile.am, gpsdrive.c, gpsico.h, gpsicon.png, splash.c:
+	added new icon
+
+	* gpsdrive.c, speech_out.c: update targetlist if goto button pressed
+
+2004-01-15  Fritz Ganter  <ganter at ganter.local>
+
+	* gpsdrive.spec, gpssmswatch: ...
+
+	* gpsdrive.c: changed waypoint layout
+
+	* battery.c, friends.c, garmin_serial_unix.cpp, garmin_types.h, garmin_util.cpp, serial.c:
+	added openbsd patches
+	real 2.07pre9
+
+	* gpsdrive.c: v2.07pre9
+
+	* gpssmswatch: changed SECONDS to SECS
+
+	* gpssmswatch: added warning about deleting SMS from phone
+
+	* Makefile.am: added gpssmswatch to distribution
+
+	* gpssmswatch: added log entry
+
+	* gpssmswatch:
+	gpssmswatch sends pos to the phone number which sends: PLSSENDPOS
+
+	* gpsdrive.c, gpssmswatch, splash.c: added gpssmswatch
+
+2004-01-14  Fritz Ganter  <ganter at ganter.local>
+
+	* gpsdrive.c: indent
+
+	* gpsdrive.c: cosmetic changes in sendname selection
+
+	* friends.c, gpsdrive.c: removed some debug output
+
+	* friends.c, gpsdrive.c:
+	now message acknoledge is done to and from friendsserver
+
+	* gpsdrive.c:
+	added a Goto button in search menu, now you can jump to your waypoints
+
+	* friends.c, gpsdrive.c, settings.c, splash.c:
+	fixed bug if no crypt is avail.
+
+	* friends.c, gpsdrive.c: ...
+
+2004-01-13  Fritz Ganter  <ganter at ganter.local>
+
+	* friends.c, gpsdrive.c, splash.c:
+	added new field in waypoints display for number of friends received
+
+	* gpsdrive.c: smaller message compose window
+
+	* splash.c: added GNU license to about-popup
+
+	* gpsdrive.c: removed old GTK1.x accelerators
+
+	* friends.c, gpsdrive.c: changed "operations menu" do "Misc. menu"
+
+	* friends.c, gpsdrive.c: status bar
+
+	* friends.c, gpsdrive.c, gpsdrive.spec: ...
+
+	* gpsdrive.c:
+	added patch from Russell Harding <hardingr at billingside.com> for better menu bar
+
+	* friends.c, gpsdrive.c: fixed multiline message bug
+
+2004-01-12  Fritz Ganter  <ganter at ganter.local>
+
+	* friends.c: grrrrrrrrrrrr
+
+	* friends.c, splash.c: grrr
+
+	* friends.c: fixed name bug again, upload tar and cvs again
+
+	* friends.c: fixed wrong sender name in message
+
+	* gpsdrive.spec: gpsdrivemini.png in specfile
+
+	* gpsdrive.spec, splash.c: v2.07pre8
+
+	* friends.c, gpsdrive.c:
+	make message menu entry insensitive if message is not yet send
+
+	* splash.c: some text changes for messages
+
+	* gpsdrive.c: changed "Chat" to "Messages"
+
+	* friends.c, friendsd.c, gpsdrive.c, gpsdrive.h, splash.c:
+	added friends message service
+
+2004-01-11  Fritz Ganter  <ganter at ganter.local>
+
+	* friendsd.c: drop entries which are older than 1 week
+
+	* gpsdrive.c: ...
+
+	* gpsdrive.c: reduce height
+
+	* gpsdrivemini.png: added image
+
+	* Makefile.am, gpsdrive.c, gpsdrive.spec, settings.c, splash.c:
+	added about screen
+	added menubar
+
+	* speech_out.c: gray border for .dsc file text
+
+2004-01-10  Fritz Ganter  <ganter at ganter.local>
+
+	* gpsdrive.spec: v2.07pre7
+
+	* gpsdrive.c: make select target popup larger
+
+	* gpsdrive.c:
+	avoid NAN in calcdist if position is exactly the same as destination
+
+	* gpsdrive.c: autsch, big mistake in drawfriends
+
+	* gpsdrive.c, settings.c: some changes in friendsmode settings menu
+
+2004-01-09  Fritz Ganter  <ganter at ganter.local>
+
+	* gpsdrive.c: fixed locale bug for topo maps
+
+	* gpsdrive.c: ...
+
+	* gpsdrive.spec: 2.07pre6
+
+	* LatLong-UTMconversion.c, LatLong-UTMconversion.h, Makefile.am, gpsdrive.c, gpsdrive.h:
+	added topomap download patch from Russell Harding <hardingr at billingside.com>
+	Thanks for the lot of work!
+
+2004-01-06  Fritz Ganter  <ganter at ganter.local>
+
+	* gpsdrive.c: ...
+
+	* gpsdrive.c, gpsdrive.spec:
+	changed target text to the shorter form: "To:" instead of "Distance to"
+
+	* gpsdrive.c:
+	friendsmode: displays selected unit instead of km/h, displayed time now respects timezone setting.
+
+2004-01-05  Fritz Ganter  <ganter at ganter.local>
+
+	* gpsdrive.c, gpskismet.c, gpssql.c, speech_out.c:
+	changed all frames to respect setting
+
+2004-01-04  Fritz Ganter  <ganter at ganter.local>
+
+	* gpsdrive.c, gpsdrive.spec, settings.c:
+	display SQL waypoint fields only if SQL is used
+
+2004-01-03  Fritz Ganter  <ganter at ganter.local>
+
+	* gpsdrive.h: translations
+
+	* gpsdrive.c, gpsdrive.h, settings.c, splash.c:
+	added settings switch for etched frames
+
+	* gpsdrive.h, gpsdrive.c: ...
+
+2004-01-02  Fritz Ganter  <ganter at ganter.local>
+
+	* gpsdrive.c:
+	changed back Geschw. to Geschwindigkeit (in german translation)
+
+	* gpsdrive.c: ...
+
+	* gpsdrive.c: translated
+
+	* gpsdrive.c: working on wplabels
+
+	* gpsdrive.c: nicer waypoint info
+
+2004-01-01  Fritz Ganter  <ganter at ganter.local>
+
+	* gpsdrive.h, gpsdrive.spec, gpskismet.c, gpssql.c, nautic.c, settings.c, speech_out.c, splash.c, track.c, battery.c, fly.c, friends.c, friendsd.c, gpsdrive.c:
+	v2.06
+	trip info is now live updated
+	added cpu temperature display for acpi
+	added tooltips for battery and temperature
+
+2003-12-28  Fritz Ganter  <ganter at ganter.local>
+
+	* gpsdrive.spec: 2.06pre7
+
+	* battery.c, gpsdrive.c: ...
+
+	* battery.c, gpsdrive.c: added battery tooltip
+
+	* battery.c, gpsdrive.c: tooltip for temperature
+
+	* battery.c, gpsdrive.c: ...
+
+	* gpsdrive.c: temp tooltip
+
+	* gpsdrive.c: ...
+
+	* gpsdrive.c: temp...
+
+	* gpsdrive.c: ...
+
+	* battery.c, gpsdrive.c: working on temperature
+
+	* battery.c: ...
+
+	* battery.c, gpsdrive.c: better acpi-temperature support
+
+	* power.h, battery.c, gpsdrive.c:
+	added patch from Jaap Hogenberg for temperature display
+
+	* gpsdrive.c: ...
+
+	* gpsdrive.c: distance display changes
+
+	* gpsdrive.c, gpsreplay: new gpsreplay version
+
+	* gpsdrive.c: cosmetic changes in distance and altitude display
+
+	* gpsdrive.c: ...
+
+	* gpsdrive.c: removed some warnings
+
+	* gpsdrive.c: changed waypoint window text
+
+	* gpsreplay: update gpsreplay v1.21, now altitude is provided
+
+	* gpsdrive.spec: beta release 2.06pre5
+
+	* gpsdrive.c, gpsreplay: new version 1.20 of gpsreplay
+
+	* gpsreplay: added gpsreplay
+
+	* Makefile.am: ...
+
+	* gpsd.c: added gpsd patch from Mina Naguib <webmaster at topfx.com>
+	that allows GPSD to accept serial speeds up to 115200 via the -s commandline
+	switch.
+
+2003-12-27  Fritz Ganter  <ganter at ganter.local>
+
+	* battery.c: ...
+
+	* battery.c: battery.c now reads all batteries
+
+2003-12-23  Fritz Ganter  <ganter at ganter.local>
+
+	* gpsdrive.spec: spec file 2.06pre3
+
+	* gpsdrive.c: release 2.06pre2
+
+	* gpsdrive.c:
+	fix bug (download button was not sensitive after download)
+
+	* gpsdrive.c, settings.c: v2.06pre2
+	disable multiple popups
+
+2003-12-22  Fritz Ganter  <ganter at ganter.local>
+
+	* splash.c, gpsdrive.c: better test if image has alpha
+
+2003-12-21  Fritz Ganter  <ganter at ganter.local>
+
+	* gpsdrive.c, splash.c: error handling for not installed program
+	real v2.05 :-)
+
+	* gpsdrive.spec, splash.c: release v2.05
+
+	* settings.c, splash.c, gpsdrive.c: fixed bug in timezone setting
+	timezone will be stored now
+
+2003-12-17  Fritz Ganter  <ganter at ganter.local>
+
+	* battery.c, gpsdrive.c, gpsdrive.spec:
+	acpi battery status works now again (tested with 2.4.22ac4)
+
+	* Makefile.am, convgiftopng, gpsdrive.c:
+	now CPU load is reduced heavily through removing alpha channel from image
+
+	* gpsdrive.c, speech_out.c, splash.c: added donation window
+	waypoint describtion (.dsc files) works again
+	added dist_alarm ...
+
+2003-12-17  Fritz Ganter  <ganter at ganter.local>
+
+	* battery.c, gpsdrive.c, gpsdrive.spec:
+	acpi battery status works now again (tested with 2.4.22ac4)
+
+	* Makefile.am, convgiftopng, gpsdrive.c:
+	now CPU load is reduced heavily through removing alpha channel from image
+
+	* gpsdrive.c, speech_out.c, splash.c: added donation window
+	waypoint describtion (.dsc files) works again
+	added dist_alarm ...
+
+2003-12-17  Fritz Ganter  <ganter at ganter.local>
+
+	* Makefile.am, convgiftopng, gpsdrive.c:
+	now CPU load is reduced heavily through removing alpha channel from image
+
+	* gpsdrive.c, speech_out.c, splash.c: added donation window
+	waypoint describtion (.dsc files) works again
+	added dist_alarm ...
+
+2003-12-17  Fritz Ganter  <ganter at ganter.local>
+
+	* configure.ac, src/gpsdrive.c, src/speech_out.c, src/splash.c:
+	added donation window
+	waypoint describtion (.dsc files) works again
+	added dist_alarm ...
+
+2003-12-01  Fritz Ganter  <ganter at ganter.local>
+
+	* src/gpsfetchmap.pl: bug fixes from camel at insecure.at
+
+2003-10-23  Fritz Ganter  <ganter at ganter.local>
+
+	* src/gpsdrive.c: changes for cygwin
+
+	* autogen.sh, config.h.in, configure.ac: changed autogen.sh
+
+	* acinclude.m4, autogen.sh: added acinclude.m4 and autogen.sh to cvs
+
+	* NEWS: added mailinglist archive urls
+
+2003-10-10  Fritz Ganter  <ganter at ganter.local>
+
+	* src/Makefile.am, src/gettext.h: added gettext.h
+
+	* po/it.po, po/ja.po, po/nl.po, po/no.po, po/pt_BR.po, po/sk.po, po/sv.po, po/tr.po, src/friendsd.c, src/gpsdrive.spec, configure.ac, po/da.po, po/de.po, po/de_AT.po, po/es.po, po/fr.po, po/gr.po, po/hu.po:
+	added security patch for friendsd
+
+2003-10-04  Fritz Ganter  <ganter at ganter.local>
+
+	* po/gr.po, po/hu.po, po/it.po, po/ja.po, po/nl.po, po/no.po, po/pt_BR.po, po/sk.po, po/sv.po, po/tr.po, src/friends.c, src/gpsdrive.c, src/settings.c, src/speech_out.c, po/da.po, po/de.po, po/de_AT.po, po/es.po, po/fr.po:
+	translations don't need to be utf-8, but the .po files must specify the
+	correct coding (ie, UTF-8, iso8859-15)
+
+2003-10-01  Fritz Ganter  <ganter at ganter.local>
+
+	* src/gpsdrive.c, src/gpsdrive.spec: specfile patched
+
+2003-09-26  Fritz Ganter  <ganter at ganter.local>
+
+	* config.h.in: no changes
+
+2003-09-18  Fritz Ganter  <ganter at ganter.local>
+
+	* src/gpsdrive.c: changed orange color
+
+	* FAQ.gpsdrive, src/map_GPSWORLD.jpg: added src/map_GPSWORLD.jpg to cvs
+
+2003-09-17  Fritz Ganter  <ganter at ganter.local>
+
+	* README.SQL, src/fly.c, README.kismet: ...
+
+	* po/hu.po, po/it.po, po/ja.po, po/nl.po, po/no.po, po/pt_BR.po, po/sk.po, po/sv.po, po/tr.po, src/gpsdrive.c, po/da.po, po/de.po, po/de_AT.po, po/es.po, po/fr.po, po/gr.po:
+	cvs test
+
+	* po/pt_BR.po, po/sk.po, po/sv.po, po/tr.po, src/friendsd.c, src/gpsdrive.c, src/gpsdrive.spec, po/it.po, po/ja.po, po/nl.po, po/no.po, po/es.po, po/fr.po, po/gr.po, po/hu.po, configure.ac, po/da.po, po/de.po, po/de_AT.po:
+	2.05pre1
+	fixed malloc problem in friends server
+	force name in friendsmode to replace space with underscore
+
+2003-08-31  Fritz Ganter  <ganter at ganter.local>
+
+	* po/fr.po, po/gr.po, po/hu.po, po/it.po, po/ja.po, po/nl.po, po/no.po, po/pt_BR.po, po/sk.po, po/sv.po, po/tr.po, src/gpsdrive.spec, src/gpskismet.c, README.kismet, configure.ac, po/da.po, po/de.po, po/de_AT.po, po/es.po:
+	v 2.04: better Kismet support, read end of README.kismet
+
+2003-08-12  Fritz Ganter  <ganter at ganter.local>
+
+	* configure.ac, po/da.po, po/de.po, po/de_AT.po, po/es.po, po/fr.po, po/gr.po, po/hu.po, po/it.po, po/ja.po, po/nl.po, po/no.po, po/pt_BR.po, po/sk.po, po/sv.po, po/tr.po, src/gpsdrive.c, src/gpskismet.c:
+	v2.03
+	fixed kismet bug (wrong GPS position)
+	compiles also on SuSE 8.1
+	compiles on GTK+ >= 2.0.6
+	fixed wrong font (Sans 10 Bold 10 message)
+
+	* po/tr.po, src/friends.c, po/da.po, po/de.po, po/de_AT.po, po/es.po, po/fr.po, po/gr.po, po/hu.po, po/it.po, po/ja.po, po/nl.po, po/no.po, po/pt_BR.po, po/sk.po, po/sv.po:
+	v2.03 workaround for missing crypt()
+
+	* src/gpsdrive.spec, src/settings.c, src/splash.c, po/nl.po, po/no.po, po/pt_BR.po, po/sk.po, po/sv.po, po/tr.po, src/gpsdrive.c, po/fr.po, po/gr.po, po/hu.po, po/it.po, po/ja.po, po/de.po, po/de_AT.po, po/es.po, configure.ac, po/da.po:
+	fixed bugs of PDA patch
+
+2003-07-25  Fritz Ganter  <ganter at ganter.local>
+
+	* src/gpsdrive.c, src/gpsdrive.h: 2.01
+	expedia works again
+
+	* src/Makefile.am, src/client.c, src/friends.c, src/friendsd.c, src/friendsicon.png, src/gpsdrive.c, src/gpsdrive.h, src/gpsdrive.spec, src/serial.c, src/server.c, po/ja.po, po/nl.po, po/no.po, po/pt_BR.po, po/sk.po, po/sv.po, po/tr.po, po/fr.po, po/gr.po, po/hu.po, po/it.po, ChangeLog, Makefile.am, config.h.in, configure.ac, man/gpsdrive.1, po/da.po, po/de.po, po/de_AT.po, po/es.po:
+	2.00
+
+2003-06-08  Fritz Ganter  <ganter at ganter.local>
+
+	* CREDITS, Makefile.am, configure.ac, po/da.po, po/de.po, po/de_AT.po, po/es.po, po/fr.po, po/gr.po, po/hu.po, po/it.po, po/ja.po, po/nl.po, po/no.po, po/pt_BR.po, po/sk.po, po/sv.po, po/tr.po:
+	added CREDITS file for translator credits
+
+	* src/gpsdrive.spec, src/settings.c, src/splash.c, po/sv.po, po/tr.po, src/Makefile.am, src/battery.c, src/battery.h, src/friends.c, src/gpsdrive.c, po/ja.po, po/nl.po, po/no.po, po/pt_BR.po, po/sk.po, po/gr.po, po/hu.po, po/it.po, po/es.po, po/fr.po, po/de.po, po/de_AT.po, FAQ.gpsdrive, configure.ac, po/da.po:
+	release 2.0pre9
+	Added setting of timeperiod in friends mode (see settings menu)
+
+2003-06-08  Fritz Ganter  <ganter at ganter.at>
+
+	* CREDITS, Makefile.am, configure.ac, po/da.po, po/de.po, po/de_AT.po, po/es.po, po/fr.po, po/gr.po, po/hu.po, po/it.po, po/ja.po, po/nl.po, po/no.po, po/pt_BR.po, po/sk.po, po/sv.po, po/tr.po:
+	added CREDITS file for translator credits
+
+	* src/gpsdrive.spec, src/settings.c, src/splash.c, po/sv.po, po/tr.po, src/Makefile.am, src/battery.c, src/battery.h, src/friends.c, src/gpsdrive.c, po/ja.po, po/nl.po, po/no.po, po/pt_BR.po, po/sk.po, po/gr.po, po/hu.po, po/it.po, po/es.po, po/fr.po, po/de.po, po/de_AT.po, FAQ.gpsdrive, configure.ac, po/da.po:
+	release 2.0pre9
+	Added setting of timeperiod in friends mode (see settings menu)
+
+2003-06-01  Fritz Ganter  <ganter at ganter.at>
+
+	* src/splash.c, po/sv.po, po/tr.po, src/friendsd.c, src/gpsdrive.c, src/settings.c, po/ja.po, po/nl.po, po/no.po, po/pt_BR.po, po/sk.po, po/gr.po, po/hu.po, po/it.po, po/de_AT.po, po/es.po, po/fr.po, po/de.po, po/da.po:
+	v2.0pre8
+	friendsmode works fine and can be set in settings menu
+
+2003-05-31  Fritz Ganter  <ganter at ganter.at>
+
+	* po/da.po, po/de.po, po/de_AT.po, po/es.po, po/fr.po, po/gr.po, po/hu.po, po/it.po, po/ja.po, po/nl.po, po/no.po, po/pt_BR.po, po/sk.po, po/sv.po, po/tr.po, src/gpsdrive.c:
+	...
+
+	* po/tr.po, src/Makefile.am, src/friends.c, src/gpsdrive.c, src/splash.c, po/no.po, po/pt_BR.po, po/sk.po, po/sv.po, po/gr.po, po/hu.po, po/it.po, po/ja.po, po/nl.po, po/fr.po, po/de.po, po/de_AT.po, po/es.po, po/da.po:
+	friendsd2 works fine with sven's server
+
+	* src/Makefile.am, src/friends.c, src/friendsd.c, src/gpsdrive.c, src/gpsdrive.h, src/server.c, src/settings.c, src/splash.c, src/track.c, src/track.h:
+	new UDP friendsserver build in, needs some work
+
+	* src/client.c, src/server.c: starting buildin new server and client
+
+2003-05-30  Fritz Ganter  <ganter at ganter.at>
+
+	* po/tr.po, src/client.c, po/no.po, po/pt_BR.po, po/sk.po, po/sv.po, po/it.po, po/ja.po, po/nl.po, po/fr.po, po/gr.po, po/hu.po, po/de.po, po/de_AT.po, po/es.po, po/da.po:
+	client server working, but not perfectly
+
+	* src/client.c, src/server.c: testing
+
+	* src/client.c, src/server.c: xxx
+
+	* src/Makefile.am: testing...
+
+2003-05-29  Fritz Ganter  <ganter at ganter.at>
+
+	* po/sv.po, po/tr.po, src/gpsdrive.c, src/settings.c, po/ja.po, po/nl.po, po/no.po, po/pt_BR.po, po/sk.po, po/fr.po, po/gr.po, po/hu.po, po/it.po, po/de_AT.po, po/es.po, man/de/gpsdrive.1, man/gpsdrive.1, po/da.po, po/de.po:
+	testing...
+
+2003-05-28  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.spec, src/settings.c, src/splash.c, configure.ac, po/da.po, po/de.po, po/de_AT.po, po/es.po, po/fr.po, po/gr.po, po/hu.po, po/it.po, po/ja.po, po/nl.po, po/no.po, po/pt_BR.po, po/sk.po, po/sv.po, po/tr.po, src/Makefile.am, src/gpsdrive.c:
+	added load balancer
+
+2003-05-11  Fritz Ganter  <ganter at ganter.at>
+
+	* po/fr.po, po/gr.po, po/hu.po, po/it.po, po/ja.po, po/nl.po, po/no.po, po/pt_BR.po, po/sk.po, po/sv.po, po/tr.po, src/Makefile.am, src/convgiftopng, src/fly.c, src/friends.c, src/gpsdrive.c, src/nautic.c, src/navigation.c, src/settings.c, src/speech_out.c, src/splash.c, po/de.po, po/de_AT.po, po/es.po, man/gpsdrive.1, po/da.po:
+	v2.0pre7
+	added script convgiftopng
+	This script converts .gif into .png files, which reduces CPU load
+	run this script in your maps directory, you need "convert" from ImageMagick
+
+	Friends mode runs fine now
+	Added parameter -H to correct the alitude
+
+	* src/friends.c, src/geo-waypoint, src/gpsdrive.c, src/gpsdrive.spec, po/pt_BR.po, po/sk.po, po/sv.po, po/tr.po, po/ja.po, po/nl.po, po/no.po, po/gr.po, po/hu.po, po/it.po, po/fr.po, po/de.po, po/de_AT.po, po/es.po, configure.ac, man/gpsdrive.1, po/POTFILES.in, po/da.po:
+	friendsmode is now working fine
+
+2003-05-08  Fritz Ganter  <ganter at ganter.at>
+
+	* src/settings.c, src/splash.c, po/sv.po, po/tr.po, src/gpsdrive.c, src/gpsdrive.h, src/gpsdrive.spec, src/gpsdrivesplash.png, po/ja.po, po/nl.po, po/no.po, po/pt_BR.po, po/sk.po, po/hu.po, po/it.po, po/fr.po, po/gr.po, po/de.po, po/de_AT.po, po/es.po, configure.ac, po/da.po:
+	added settings menu entry for fonts setting
+	made a new cool splash screen
+	updated da and it translations
+	v2.0-pre6
+
+	* configure.ac, configure.in, po/da.po, po/de.po, po/de_AT.po, po/es.po, po/fr.po, po/gr.po, po/hu.po, po/it.po, po/ja.po, po/nl.po, po/no.po, po/pt_BR.po, po/sk.po, po/sv.po, po/tr.po, src/gpsdrive.spec:
+	added new da.po
+
+2003-05-07  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.c, src/gpsdrive.h, src/track.c:
+	als functions are working (except import)
+	ready for 2.0pre4
+
+	* po/da.po, po/de.po, po/de_AT.po, po/es.po, po/fr.po, po/gr.po, po/hu.po, po/it.po, po/ja.po, po/nl.po, po/no.po, po/pt_BR.po, po/sk.po, po/sv.po, po/tr.po, src/gpsdrive.c, src/gpsfetchmap, src/gpssql.c, src/settings.c:
+	replaced degree symbol with unicode string
+	gpsdrive should now be unicode clean
+
+	* man/de/gpsdrive.1, man/gpsdrive.1, src/gpsdrive.c, src/gpsdrive.h, src/speech_out.c, src/splash.c:
+	...
+
+2003-05-06  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.c, src/splash.c, src/track.c, po/no.po, po/pt_BR.po, po/sk.po, po/sv.po, po/tr.po, po/it.po, po/ja.po, po/nl.po, po/fr.po, po/gr.po, po/hu.po, po/de.po, po/de_AT.po, po/es.po, po/da.po:
+	wp label text is now pango
+
+2003-05-03  Fritz Ganter  <ganter at ganter.at>
+
+	* acinclude.m4, configure.ac, po/da.po, po/de.po, po/de_AT.po, po/es.po, po/fr.po, po/gr.po, po/hu.po, po/it.po, po/ja.po, po/nl.po, po/no.po, po/pt_BR.po, po/sk.po, po/sv.po, po/tr.po, src/gpsdrive.c, src/gpssql.c, src/splash.c, src/track.c, src/track.h:
+	shortcuts are now working
+
+	* configure.ac, po/de.po, src/gpsdrive.c, src/gpsdrive.spec, src/splash.c:
+	added help window
+
+2003-05-02  Fritz Ganter  <ganter at ganter.at>
+
+	* po/no.po, po/pt_BR.po, po/sk.po, po/sv.po, po/tr.po, src/Makefile.am, src/gpsdrive.c, src/splash.c, po/da.po, po/de.po, po/de_AT.po, po/es.po, po/fr.po, po/gr.po, po/hu.po, po/it.po, po/nl.po:
+	changed location of datadir files
+
+	* po/tr.po, src/Makefile.am, src/gpsdrive.c, src/gpsdrive.spec, src/gpssql.c, src/splash.c, po/nl.po, po/no.po, po/pt_BR.po, po/sk.po, po/sv.po, po/gr.po, po/hu.po, po/it.po, po/fr.po, po/de.po, po/de_AT.po, po/es.po, Makefile.am, config.h.in, configure.ac, po/da.po:
+	porting to GTK+-2.2
+	GpsDrive Version 2.0pre3
+
+	* po/de.po: *** empty log message ***
+
+2003-05-01  Fritz Ganter  <ganter at ganter.at>
+
+	* po/no.po, po/pt_BR.po, po/sk.po, po/sv.po, po/tr.po, po/it.po, po/nl.po, po/fr.po, po/gr.po, po/hu.po, po/de.po, po/de_AT.po, po/es.po, po/da.po:
+	...
+
+2003-04-30  sven  <sven at amd>
+
+	* src/gpsfetchmap: fixed a syntax error in line 53..escaped ( and )
+
+	* src/gpsfetchmap, src/gpsfetchmap.pl: url change: mapblast -> vicinity
+
+2003-04-28  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.c, src/track.c: 1.33pre1
+
+	* src/garmin_application.cpp.~1.3.~, src/garmin_data.cpp, src/garmin_data.h, src/garmin_legacy.cpp, src/garmin_legacy.h:
+	added missing garmin_ files
+
+	* po/tr.po, src/Makefile.am, src/garble.cpp, src/garmin_application.cpp, src/gpsdrive.c, src/gpsdrivegarble.cpp, po/nl.po, po/no.po, po/pt_BR.po, po/sk.po, po/sv.po, po/fr.po, po/gr.po, po/hu.po, po/it.po, po/de_AT.po, po/es.po, po/de.po, po/da.po:
+	compiles now with gcc 3.3
+
+	* LISEZMOI.FreeBSD, LISEZMOI.SQL, LISEZMOI.kismet: ..
+
+	* configure.in, src/Makefile.am, src/garble.cpp, src/garmin_application.cpp, src/garmin_application.h, src/garmin_command.h, src/garmin_error.h, src/garmin_link.cpp, src/garmin_link.h, src/garmin_packet.h, src/garmin_phys.h, src/garmin_serial.h, src/garmin_serial_unix.cpp, src/garmin_serial_unix.h, src/garmin_types.h, src/garmin_util.cpp, src/garmin_util.h, src/geo-code, src/geo-nearest, src/gpsdrive.c, src/gpsdrive.h, src/gpsdrive.spec:
+	...
+
+2003-03-31  Fritz Ganter  <ganter at ganter.at>
+
+	* configure.in: removed ja translatation, didn't compile
+
+	* po/gr.po, po/ja.po, po/pt_BR.po: added more
+
+	* po/no.po: added no.po
+
+	* src/mysql/Makefile.am~, src/mysql/chardefs.h, src/mysql/dbug.h, src/mysql/errmsg.h, src/mysql/history.h, src/mysql/keymaps.h, src/mysql/m_ctype.h, src/mysql/m_string.h, src/mysql/my_config.h, src/mysql/my_global.h, src/mysql/my_list.h, src/mysql/my_net.h, src/mysql/my_no_pthread.h, src/mysql/my_pthread.h, src/mysql/my_sys.h, src/mysql/mysql.h, src/mysql/mysql_com.h, src/mysql/mysql_version.h, src/mysql/mysqld_error.h, src/mysql/raid.h, src/mysql/readline.h, src/mysql/sslopt-case.h, src/mysql/sslopt-longopts.h, src/mysql/sslopt-usage.h, src/mysql/sslopt-vars.h, src/mysql/tilde.h:
+	added mysql include files
+
+	* src/Makefile.am, po/sk.po, po/sv.po, po/tr.po, po/hu.po, po/it.po, po/nl.po, po/de_AT.po, po/es.po, po/fr.po, po/de.po, README.SQL, configure.in, po/da.po:
+	...
+
+2003-01-26  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.spec, po/sk.po, po/sv.po, po/tr.po, src/Makefile.am, src/geo-code, src/gpsdrive.c, po/fr.po, po/hu.po, po/it.po, po/nl.po, po/de.po, po/de_AT.po, po/es.po, configure.in, po/da.po:
+	v1.32
+
+2003-01-25  sven  <sven at amd>
+
+	* src/gpssql_backup.sh, src/gpssql_restore.sh: chmod 755
+
+2003-01-24  sven  <sven at amd>
+
+	* src/gpssql_restore.sh: added some help
+
+2003-01-23  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.spec, src/icons.h, src/netlib.c, po/nl.po, po/sk.po, po/sv.po, po/tr.po, src/Makefile.am, src/geo-nearest, src/gpsd.c, src/gpsdrive.c, po/fr.po, po/hu.po, po/it.po, po/de_AT.po, po/es.po, configure.in, po/da.po, po/de.po:
+	added greek translation
+	added geocache scripts
+	added geocache icon
+	improved search for libmysqlclient.so
+
+2003-01-15  Fritz Ganter  <ganter at ganter.at>
+
+	* src/Makefile.am, src/battery.c, src/gpsdrive.c, src/gpsdrive.spec, po/nl.po, po/sk.po, po/sv.po, po/tr.po, po/fr.po, po/hu.po, po/it.po, Makefile.am, po/da.po, po/de.po, po/de_AT.po, po/es.po:
+	v1.32pre4
+
+	* src/gpsdrive.h, src/gpsdrive.spec, src/gpskismet.c, src/gpssql.c, config.h.in, configure.in, src/gpsdrive.c:
+	MySQL is now loaded dynamically on runtime, no mysql needed for compile.
+	Needs only libmysqlclient.so now.
+
+	* src/track.c, po/sk.po, po/sv.po, po/tr.po, src/battery.c, src/fly.c, src/gpsdrive.c, src/gpsdrive.spec, src/gpskismet.c, src/gpssql.c, src/icons.h, src/nautic.c, src/navigation.c, src/settings.c, src/speech_out.c, src/splash.c, po/fr.po, po/hu.po, po/it.po, po/nl.po, po/de.po, po/de_AT.po, po/es.po, FAQ.gpsdrive.fr, README, configure.in, man/de/gpsdrive.1, man/es/gpsdrive.1, man/gpsdrive.1, po/da.po:
+	before dynamically loading mysql
+
+2003-01-02  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsfetchmap.pl: copyright violation warning
+
+	* src/gpsfetchmap: changed copyright
+
+	* src/gpsfetchmap.pl:
+	set polite to yes, because of stupid people violating mapblast's
+	copyright and download thousends of maps
+
+2002-12-30  molter  <molter at amd>
+
+	* src/battery.c:
+	APM is i386 only, allow compilation on FreeBSD alpha too
+
+2002-12-24  Fritz Ganter  <ganter at ganter.at>
+
+	* po/tr.po, src/gpsdrive.c, src/gpsdrive.spec, src/settings.c, src/splash.c, po/hu.po, po/it.po, po/nl.po, po/sk.po, po/sv.po, po/de_AT.po, po/es.po, po/fr.po, FAQ.gpsdrive, GPS-receivers, po/da.po, po/de.po:
+	FAQ
+
+2002-12-24  sven  <sven at amd>
+
+	* FAQ.gpsdrive: darricks answer's much better than mine..
+
+	* FAQ.gpsdrive: added the PAQ for street navigation..
+
+2002-12-23  Fritz Ganter  <ganter at ganter.at>
+
+	* po/nl.po, po/sk.po, po/sv.po, po/tr.po, src/Makefile.am, src/gpsdrive-nosql.spec, src/gpsdrive.c, src/gpsdrive.spec, src/icons.h, src/mb2gpsdrive.pl, po/fr.po, po/hu.po, po/it.po, po/de.po, po/de_AT.po, po/es.po, FAQ.gpsdrive, Makefile.am, README.SQL, README.mb2gpsdrive, configure.in, create.sql, man/de/gpsdrive.1, man/gpsdrive.1, po/da.po:
+	...
+
+2002-12-19  sven  <sven at amd>
+
+	* README.SQL: added information about backup and restore functionality
+
+	* src/gpssql_backup.sh, src/gpssql_restore.sh:
+	added backup and restore functionality for the database
+
+2002-12-08  Fritz Ganter  <ganter at ganter.at>
+
+	* po/sv.po, po/tr.po, src/gpsdrive.c, src/gpsdrive.spec, src/gpskismet.c, src/gpssql.c, po/hu.po, po/it.po, po/nl.po, po/sk.po, po/de.po, po/de_AT.po, po/es.po, po/fr.po, ChangeLog, README.SQL, README.kismet, acinclude.m4, configure.in, man/gpsdrive.1, po/da.po:
+	shortly before 1.31
+
+	* src/gpsdrive.c:
+	perhaps fix for systems without glib-locale installed.
+	added "y" key to create waypoint at current mouse position.
+
+2002-12-07  sven  <sven at amd>
+
+	* src/icons.h:
+	cleaned up the speed trap icon. think it looks better now.
+
+2002-12-07  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.c: delete wp now also works in sqlmode
+
+2002-12-07  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.c: delete wp now also works in sqlmode
+
+2002-12-02  Fritz Ganter  <ganter at ganter.at>
+
+	* src/icons.h: better golf icon
+
+2002-11-29  Fritz Ganter  <ganter at ganter.at>
+
+	* po/sk.po, po/sv.po, po/tr.po, src/gpsdrive.c, src/gpsdrive.spec, po/fr.po, po/hu.po, po/it.po, po/nl.po, po/de.po, po/de_AT.po, po/es.po, configure.in, po/da.po:
+	v1.31pre3
+
+2002-11-27  Fritz Ganter  <ganter at ganter.at>
+
+	* po/nl.po, po/sk.po, po/sv.po, po/tr.po, src/gpsdrive.c, src/gpsdrive.spec, src/gpskismet.c, src/gpssql.c, po/de_AT.po, po/es.po, po/fr.po, po/hu.po, po/it.po, README.SQL, po/da.po, po/de.po:
+	1.31pre2
+
+2002-11-25  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.c, src/icons.h: added icons
+
+	* src/gpsdrive.c, src/icons.h: added airport icon
+
+	* src/splash.c, configure.in: ...
+
+2002-11-24  Fritz Ganter  <ganter at ganter.at>
+
+	* src/icons.h: ...
+
+	* src/gpsdrive.spec, src/gpsdrivesplash.png, src/icons.h, src/splash.c, po/nl.po, po/sk.po, po/sv.po, po/tr.po, src/gpsdrive.c, po/fr.po, po/hu.po, po/it.po, po/de.po, po/de_AT.po, po/es.po, README.SQL, po/da.po, update.sql:
+	added icon
+
+	* README.SQL, src/gpsdrive.c: radar R- works again
+
+	* src/gpssql.c, src/icons.h, src/gpsdrive.c:
+	speedtrap works now with sql
+
+	* src/gpsfetchmap.pl: added patch from  Magnus Månsson
+
+	* GPS-receivers, src/gpsdrive.c, src/gpsfetchmap.pl, src/gpssql.c, src/icons.h, update.sql:
+	added speedtrap icon, thanks to Sven Fichtner
+
+2002-11-19  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.spec, src/icons.h, po/nl.po, po/sk.po, po/sv.po, po/tr.po, src/gpsdrive.c, po/fr.po, po/hu.po, po/it.po, Makefile.am, README.SQL, configure.in, po/da.po, po/de.po, po/de_AT.po, po/es.po, update.sql:
+	...
+
+2002-11-16  Fritz Ganter  <ganter at ganter.at>
+
+	* po/tr.po, src/gpsdrive-nosql.spec, src/gpsdrive.c, po/it.po, po/nl.po, po/sk.po, po/sv.po, po/de_AT.po, po/es.po, po/fr.po, po/hu.po, configure.in, po/da.po, po/de.po:
+	bugfixes for 1.30
+
+	* src/icons.h: v1.30
+
+2002-11-14  Fritz Ganter  <ganter at ganter.at>
+
+	* acinclude.m4: added acinclude.m4
+
+	* config.h.in, configure.in:
+	changed mysql detection in configure.in, borrowed from mysqlcc
+
+	* po/sk.po, po/sv.po, po/tr.po, src/gpsdrive.spec, po/hu.po, po/it.po, po/nl.po, po/de_AT.po, po/es.po, po/fr.po, configure.in, po/da.po, po/de.po:
+	...
+
+	* po/sv.po, po/tr.po, src/gpsdrive.c, src/gpsdrive.spec, src/gpskismet.c, src/icons.h, src/settings.c, po/hu.po, po/it.po, po/nl.po, po/sk.po, po/de.po, po/de_AT.po, po/es.po, po/fr.po, Makefile.am, README.SQL, README.kismet, configure.in, create.sql, po/da.po:
+	added README.kismet
+	v 1.30pre5
+
+2002-11-13  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpssql.c, src/gpsdrive.c: fixed buffer overflow in gpssql.c
+
+	* po/tr.po, src/gpsdrive.c, src/gpssql.c, po/hu.po, po/it.po, po/nl.po, po/sk.po, po/sv.po, po/de.po, po/de_AT.po, po/es.po, po/fr.po, po/da.po:
+	added display of number of waypoints
+
+2002-11-12  Fritz Ganter  <ganter at ganter.at>
+
+	* po/sk.po, po/sv.po, po/tr.po, src/gpsdrive.c, src/gpskismet.c, src/icons.h, src/settings.c, po/fr.po, po/hu.po, po/it.po, po/nl.po, README.SQL, configure.in, po/da.po, po/de.po, po/de_AT.po, po/es.po:
+	v30pre4
+	added more icons, fix for kismet w/o mysql
+
+2002-11-09  Fritz Ganter  <ganter at ganter.at>
+
+	* po/sv.po, po/tr.po, src/gpssql.c, po/hu.po, po/it.po, po/nl.po, po/sk.po, po/de.po, po/de_AT.po, po/es.po, po/fr.po, po/da.po:
+	bugfix in gpssql.c
+
+2002-11-08  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpssql.c, src/icons.h, src/gpsdrive.c: v1.30pre3
+
+	* po/tr.po, po/hu.po, po/it.po, po/nl.po, po/sk.po, po/sv.po, po/de.po, po/de_AT.po, po/es.po, po/fr.po, po/da.po, src/gpssql.c, src/gpsdrive.c:
+	...
+
+2002-11-06  Fritz Ganter  <ganter at ganter.at>
+
+	* src/track.c:
+	if a track is stored, it also will be appended to track-ALL.sav
+
+	* src/gpsdrivegarble.cpp, src/gpskismet.c, src/gpssql.c, src/icons.h, po/nl.po, po/sk.po, po/sv.po, po/tr.po, src/Makefile.am, src/garmin_util.cpp, src/gpsd.c, src/gpsdrive.c, po/de_AT.po, po/es.po, po/fr.po, po/hu.po, po/it.po, configure.in, po/da.po, po/de.po:
+	fixed most warnings
+
+	* src/gpsdrive.c, src/gpskismet.c, src/gpssql.c, po/hu.po, po/it.po, po/nl.po, po/sk.po, po/sv.po, po/tr.po, po/de.po, po/de_AT.po, po/es.po, po/fr.po, configure.in, po/da.po:
+	v1.30pre2
+
+2002-11-05  Fritz Ganter  <ganter at ganter.at>
+
+	* create.sql, po/POTFILES.in, src/gpsdrive.c, src/gpskismet.c: ...
+
+	* po/tr.po, po/hu.po, po/it.po, po/nl.po, po/sk.po, po/sv.po, po/de.po, po/de_AT.po, po/es.po, po/fr.po, po/da.po:
+	v30pre1
+
+	* src/gpskismet.c: bugfixes for kismet mode
+
+	* src/gpskismet.c: ...
+
+	* src/gpsdrive.c, src/gpskismet.c: gpskismet seems to work
+
+2002-11-04  Fritz Ganter  <ganter at ganter.at>
+
+	* configure.in, po/fr.po, src/Makefile.am, src/gpskismet.c:
+	added gpskismet.c
+
+2002-11-02  Fritz Ganter  <ganter at ganter.at>
+
+	* configure.in: new v1.29, fixed configure.in
+
+	* po/sv.po, po/tr.po, src/Makefile.am, src/gpsdrive-nosql.spec, src/gpsdrive.spec, po/hu.po, po/it.po, po/nl.po, po/sk.po, po/de.po, po/de_AT.po, po/es.po, po/fr.po, README, README.SQL, configure.in, po/da.po:
+	..
+
+	* man/de/gpsdrive.1, man/es/gpsdrive.1, man/gpsdrive.1, src/battery.c, src/battery.h, src/fly.c, src/gpsdrive.c, src/gpsdrive.h, src/gpssql.c, src/nautic.c, src/navigation.c, src/settings.c, src/speech_out.c, src/splash.c, src/track.c:
+	changed website to www.gpsdrive.de
+
+	* intl/COPYING.LIB-2.0, intl/COPYING.LIB-2.1, intl/config.charset, intl/dcigettext.c, intl/dcngettext.c, intl/dngettext.c, intl/eval-plural.h, intl/gmo.h, intl/libgnuintl.h, intl/localcharset.c, intl/locale.alias, intl/localename.c, intl/ngettext.c, intl/os2compat.c, intl/os2compat.h, intl/osdep.c, intl/plural-exp.c, intl/plural-exp.h, intl/plural.c, intl/plural.y, intl/ref-add.sin, intl/ref-del.sin:
+	added new intl
+
+	* NMEA.txt, wp2sql: ...
+
+	* LEEME, LISEZMOI, README: changing URLs
+
+2002-10-31  Fritz Ganter  <ganter at ganter.at>
+
+	* configure.in: ...
+
+2002-10-30  Fritz Ganter  <ganter at ganter.at>
+
+	* README.SQL: changed README.SQL wp2sql
+
+	* configure.in: ...
+
+	* acconfig.h: removed acconfig.h
+
+	* configure.in, po/da.po, po/de.po, po/de_AT.po, po/es.po, po/fr.po, po/hu.po, po/it.po, po/nl.po, po/sk.po, po/sv.po, po/tr.po:
+	...
+
+	* po/nl.po, po/sk.po, po/sv.po, po/tr.po, src/settings.c, po/de_AT.po, po/es.po, po/fr.po, po/hu.po, po/it.po, po/da.po, po/de.po:
+	added tooltips in settings.c
+
+	* po/tr.po, src/em.c, src/gpsdrive.c, src/settings.c, po/sv.po, po/sk.po, po/fr.po, po/hu.po, po/it.po, po/nl.po, po/de_AT.po, po/es.po, po/da.po, po/de.po:
+	v1.29pre9
+	hopefully removed all gtk-warnings
+
+2002-10-29  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.spec: 1.29pre9
+
+	* po/nl.po, po/sk.po, po/sv.po, po/tr.po, src/gpsdrive.c, po/de_AT.po, po/es.po, po/fr.po, po/hu.po, po/it.po, config.h.in, configure.in, po/da.po, po/de.po:
+	improved configure.in (sql can be disabled)
+	v1.29pre9
+
+2002-10-27  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.spec, src/gpssql.c, src/settings.c, src/splash.c, po/nl.po, po/sk.po, po/sv.po, po/tr.po, src/gpsdrive.c, po/de_AT.po, po/es.po, po/fr.po, po/hu.po, po/it.po, configure.in, po/da.po, po/de.po:
+	1.28pre8
+
+2002-10-24  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.c, src/gpsdrive.spec, src/gpssql.c, src/settings.c, src/splash.c, po/hu.po, po/it.po, po/nl.po, po/sk.po, po/sv.po, po/tr.po, po/de.po, po/de_AT.po, po/es.po, po/fr.po, configure.in, po/da.po:
+	...
+
+2002-10-17  Fritz Ganter  <ganter at ganter.at>
+
+	* po/nl.po, po/sk.po, po/sv.po, po/tr.po, src/gpsdrive.spec, src/gpssql.c, src/settings.c, po/de_AT.po, po/es.po, po/fr.po, po/hu.po, po/it.po, Makefile.am, README.SQL, configure.in, po/da.po, po/de.po:
+	wp2sql added
+
+2002-10-16  sven  <sven at wuffi>
+
+	* FAQ.gpsdrive: additional information on usb serial issues
+
+2002-10-16  Fritz Ganter  <ganter at ganter.at>
+
+	* po/POTFILES: ...
+
+	* po/sk.po, po/sv.po, po/tr.po, src/gpsdrive.c, src/gpsdrive.spec, src/gpssql.c, src/settings.c, src/splash.c, po/fr.po, po/hu.po, po/it.po, po/nl.po, Makefile.am, README.SQL, configure.in, create.sql, po/da.po, po/de.po, po/de_AT.po, po/es.po:
+	working on SQL gui
+
+2002-10-15  sven  <sven at wuffi>
+
+	* FAQ.gpsdrive: Some grammar corrections by Gareth Bowker. Thanks!
+
+2002-10-15  Fritz Ganter  <ganter at ganter.at>
+
+	* po/sk.po, po/sv.po, po/tr.po, src/gpsdrive.c, src/gpsdrive.spec, src/gpssql.c, src/settings.c, src/splash.c, po/es.po, po/fr.po, po/hu.po, po/it.po, po/nl.po, configure.in, po/da.po, po/de.po, po/de_AT.po:
+	...
+
+2002-10-14  Fritz Ganter  <ganter at ganter.at>
+
+	* README.SQL: changed README
+
+	* src/Makefile.am, src/gpsd.c, src/gpsdrive.c, src/gpsdrive.spec, src/gpssql.c, src/nmea.h, src/nmea_parse.c, src/settings.c, src/splash.c, src/track.c, po/fr.po, po/hu.po, po/it.po, po/nl.po, po/sk.po, po/sv.po, po/tr.po, README.SQL, acconfig.h, config.h.in, configure.in, create.sql, missing, po/POTFILES, po/POTFILES.in, po/da.po, po/de.po, po/de_AT.po, po/es.po, Makefile.am:
+	v1.29pre3
+	added SQL support
+
+2002-09-28  sven  <sven at wuffi>
+
+	* src/gpsfetchmap:
+	never underestimate the power of tiredness. i fixed one and added another bug.
+
+	* src/gpsfetchmap:
+	fixed a typo which made the script useless. i'm sorry.
+
+2002-09-24  Fritz Ganter  <ganter at ganter.at>
+
+	* configure.in, src/gpsdrive.spec: v1.28
+
+	* po/nl.po, po/sk.po, po/sv.po, po/tr.po, src/gpsdrive.c, src/gpsdrive.spec, src/splash.c, po/de.po, po/de_AT.po, po/es.po, po/fr.po, po/hu.po, po/it.po, AUTHORS, po/da.po:
+	updated translations
+	changed gpsdrive.spec
+
+2002-09-23  Fritz Ganter  <ganter at ganter.at>
+
+	* po/hu.po, po/it.po, po/nl.po, po/sk.po, po/sv.po, po/tr.po, src/gpsdrive.spec, Makefile.am, po/da.po, po/de.po, po/de_AT.po, po/es.po, po/fr.po:
+	added FAQ into distro
+
+	* FAQ.gpsdrive.fr: formated
+
+	* configure.in, po/sv.po, src/gpsdrive.spec, src/splash.c:
+	splited help text in more strings
+	v1.28pre2
+
+2002-09-20  sven  <sven at wuffi>
+
+	* FAQ.gpsdrive.fr: translated by jacky
+
+2002-09-20  Fritz Ganter  <ganter at ganter.at>
+
+	* FAQ.gpsdrive: added entries
+
+	* FAQ.gpsdrive: updated FAQ
+
+2002-09-19  sven  <sven at wuffi>
+
+	* FAQ.gpsdrive:
+	added more FAQ. changed the answer of "How can I download maps?""
+
+2002-09-19  Fritz Ganter  <ganter at ganter.at>
+
+	* po/tr.po, src/gpsd.c, src/gpsdrive.spec, po/fr.po, po/hu.po, po/it.po, po/nl.po, po/sk.po, po/sv.po, FAQ.gpsdrive, Makefile.am, po/da.po, po/de.po, po/de_AT.po, po/es.po:
+	added FAQ
+
+2002-09-18  sven  <sven at wuffi>
+
+	* src/gpsfetchmap: fixed the mapblast url
+
+	* FAQ.gpsdrive: some more FAQ added
+
+	* FAQ.gpsdrive: added some more FAQ
+
+	* FAQ.gpsdrive:
+	Initial release. This file will be incomplete at any time. ;)
+
+	* src/gpsfetchmap.pl: mapblast changed the url again.
+
+2002-09-18  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.spec, po/hu.po, po/it.po, po/nl.po, po/sk.po, po/sv.po, po/tr.po, src/gpsdrive.c, configure.in, po/da.po, po/de.po, po/de_AT.po, po/es.po, po/fr.po:
+	mapblast url changed again
+	v1.28pre1
+
+2002-09-17  Fritz Ganter  <ganter at ganter.at>
+
+	* po/sk.po, po/sv.po, po/tr.po, src/gpsd.c, src/gpsdrive.c, src/gpsdrive.spec, src/track.c, po/es.po, po/fr.po, po/hu.po, po/it.po, po/nl.po, AUTHORS, README.gpsd, configure.in, po/da.po, po/de.po, po/de_AT.po:
+	added copyright and README for gpsd
+	v1.27
+
+2002-09-15  sven  <sven at wuffi>
+
+	* GPS-receivers: corrected some typos
+
+2002-09-12  Fritz Ganter  <ganter at ganter.at>
+
+	* po/da.po, po/de.po, po/de_AT.po, po/es.po, po/fr.po, po/hu.po, po/it.po, po/nl.po, po/sk.po, po/sv.po, po/tr.po, src/gpsd.c:
+	v1.27pre2
+
+	* po/hu.po, po/it.po, po/nl.po, po/sk.po, po/sv.po, po/tr.po, src/gpsd.c, src/gpsdrive.c, configure.in, po/POTFILES, po/POTFILES.in, po/da.po, po/de.po, po/de_AT.po, po/es.po, po/fr.po:
+	fixed Timeout if getting only GGA data
+
+2002-09-10  Fritz Ganter  <ganter at ganter.at>
+
+	* po/fr.po, po/hu.po, po/it.po, po/nl.po, po/sk.po, po/sv.po, po/tr.po, src/gpsdrive.c, configure.in, po/da.po, po/de.po, po/de_AT.po, po/es.po:
+	v1.27pre1
+	set battery status update to 5 seconds
+	added portuguese translation
+
+2002-09-08  sven  <sven at wuffi>
+
+	* src/gpsfetchmap.pl: fixed the mapblast url
+
+2002-09-01  Fritz Ganter  <ganter at ganter.at>
+
+	* src/battery.c, src/gpsdrive.c: fixed segfault on no apm computers
+
+2002-08-31  Fritz Ganter  <ganter at ganter.at>
+
+	* po/de.po, po/es.po: new spanish .po
+
+	* po/hu.po, po/it.po, po/nl.po, po/sk.po, po/sv.po, po/tr.po, po/da.po, po/de.po, po/de_AT.po, po/es.po, po/fr.po:
+	german translation
+
+	* src/gpsdrive.c, src/battery.c: v1.26 release
+
+	Mapblast server works again (they changed the URL).
+	Bugfix for -a option.
+	Added -i option to ignore NMEA checksum (for broken GPS receivers).
+	Added "j" key to switch to next waypoint on route mode.
+	Added support for festival lite (flite) speech output.
+
+2002-08-29  sven  <sven at wuffi>
+
+	* README.mb2gpsdrive: m2g is dead.
+
+2002-08-29  Fritz Ganter  <ganter at ganter.at>
+
+	* configure.in, src/gpsdrive.c, src/gpsdrive.spec, src/settings.c:
+	timezone in settings/geoinfo works, but window must be refreshed
+
+2002-08-29  sven  <sven at wuffi>
+
+	* src/mb2gpsdrive.pl: mb2gpsdrive is dead.
+
+2002-08-29  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.c, src/gpsdrive.spec, src/gpspoint2gpsdrive.pl, po/it.po, po/nl.po, po/sk.po, po/sv.po, po/tr.po, po/da.po, po/de.po, po/de_AT.po, po/es.po, po/fr.po, po/hu.po, configure.in:
+	1.26pre65
+	Mapblast works again.
+	Download between 0E and 1W works now in non-degree display mode.
+	Current speed speech output only when driving faster than 20km/h
+
+	* src/gpsdrive.c: will change mapblast URL
+
+2002-08-16  Fritz Ganter  <ganter at ganter.at>
+
+	* src/mb2gpsdrive.pl, po/it.po, po/nl.po, po/sk.po, po/sv.po, po/tr.po, po/es.po, po/fr.po, po/hu.po, po/da.po, po/de.po, po/de_AT.po, man/es/Makefile.am, man/de/Makefile.am, man/Makefile.am, README.mb2gpsdrive:
+	added 0.0.10pre4 of mb2gpsdrive
+
+2002-08-05  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.h, src/gpsdrive.spec, configure.in: 1.26pre4
+
+	* src/gpsdrive.c:
+	fixed bug in mapdownload (triggered thru change to HTTP1.1)
+
+2002-08-04  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.c:
+	Current speed speech output only when driving faster than 20km/h
+
+2002-07-30  Fritz Ganter  <ganter at ganter.at>
+
+	* src/Makefile.am, po/fr.po, po/hu.po, po/it.po, po/nl.po, po/sk.po, po/sv.po, po/tr.po, po/da.po, po/de.po, po/de_AT.po, po/es.po, man/es/Makefile.am, man/de/Makefile.am, man/Makefile.am, Makefile.am, configure.in:
+	changed Makefile.am in man dir
+
+	* src/gpsdrive.c, src/gpsdrive.h, src/gpspoint2gpsdrive.pl, src/splash.c, src/track.c, src/track.h, po/da.po, po/de.po, po/de_AT.po, po/es.po, po/fr.po, po/hu.po, po/it.po, po/nl.po, po/sk.po, po/sv.po, po/tr.po:
+	added "J" key to switch to next waypoint
+
+	* src/Makefile.am, src/battery.h, src/gpsdrive.c, po/da.po, po/de.po, po/de_AT.po, po/es.po, po/fr.po, po/hu.po, po/it.po, po/nl.po, po/sk.po, po/sv.po, po/tr.po:
+	added patches from Marco Molteni for separate track.c
+
+	* src/settings.c, src/speech_out.c, src/Makefile.am, src/battery.c, src/gpsdrive.c, src/gpsdrive.spec, po/sv.po, po/tr.po, po/da.po, po/de.po, po/de_AT.po, po/es.po, po/fr.po, po/hu.po, po/it.po, po/nl.po, po/sk.po, configure.in:
+	1.26pre3
+	added support for festival lite (flite)
+	changed http request to HTTP1.1 and added correct servername
+
+2002-07-17  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.spec, ChangeLog, po/fr.po, po/hu.po, po/it.po, po/nl.po, po/sk.po, po/sv.po, po/tr.po, po/da.po, po/de.po, po/de_AT.po, po/es.po, man/Makefile.am:
+	...
+
+	* src/gpsdrive.c: v1.25
+
+	* src/Makefile.am, src/gpsdrive.spec, src/gpspoint2gpsdrive.pl, src/settings.c, po/it.po, po/nl.po, po/sk.po, po/sv.po, po/tr.po, po/es.po, po/fr.po, po/hu.po, po/da.po, po/de.po, po/de_AT.po, man/Makefile.am, Makefile.am, README.gpspoint2gspdrive, configure.in:
+	added gpspoint2gspdrive
+	changed specfile, thanks to Silke Reimer
+
+2002-07-17  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.spec, po/fr.po, po/hu.po, po/it.po, po/nl.po, po/sk.po, po/sv.po, po/tr.po, po/da.po, po/de.po, po/de_AT.po, po/es.po, man/Makefile.am:
+	...
+
+	* src/gpsdrive.c: v1.25
+
+	* src/Makefile.am, src/gpsdrive.spec, src/gpspoint2gpsdrive.pl, src/settings.c, po/it.po, po/nl.po, po/sk.po, po/sv.po, po/tr.po, po/es.po, po/fr.po, po/hu.po, po/da.po, po/de.po, po/de_AT.po, man/Makefile.am, Makefile.am, README.gpspoint2gspdrive, configure.in:
+	added gpspoint2gspdrive
+	changed specfile, thanks to Silke Reimer
+
+2002-07-14  Fritz Ganter  <ganter at ganter.at>
+
+	* src/Makefile.am, src/gpsdrive.c, src/gpsdrive.spec, src/netlib.c, po/fr.po, po/hu.po, po/it.po, po/nl.po, po/sk.po, po/sv.po, po/tr.po, po/de_AT.po, po/es.po, po/da.po, po/de.po, configure.in, ltmain.sh:
+	v1.25pre1
+
+	* src/gpsdrive.c: testnewmap works now again, but w/o new algorithmus
+
+2002-07-13  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.c: changed testnewmap algorithmus
+
+	* src/gpsdrive.c: in download menu the download area is now marked
+
+2002-07-02  Fritz Ganter  <ganter at ganter.at>
+
+	* po/it.po, po/pt.po, po/ru.po, configure.in:
+	removed pt and ru po files
+
+	* po/pt.po, po/ru.po, po/sk.po, po/sv.po, po/tr.po, po/xx.po, po/fr.po, po/hu.po, po/it.po, po/nl.po, po/de_AT.po, po/es.po, po/da.po, po/de.po, configure.in:
+	removed xx.po
+
+	* src/gpsdrive.c, src/gpsdrive.spec, src/settings.c, po/de_AT.po, po/es.po, po/fr.po, po/hu.po, po/it.po, po/nl.po, po/pt.po, po/ru.po, po/sk.po, po/sv.po, po/tr.po, po/xx.po, po/da.po, po/de.po, configure.in:
+	v1.24
+
+2002-07-01  Fritz Ganter  <ganter at ganter.at>
+
+	* src/battery.c, src/gpsdrive.c, src/gpsdrive.spec, src/settings.c, po/tr.po, po/xx.po, po/de.po, po/de_AT.po, po/es.po, po/fr.po, po/hu.po, po/it.po, po/nl.po, po/pt.po, po/ru.po, po/sk.po, po/sv.po, po/da.po, configure.in:
+	added trip info (in settings menu)
+	ACPI fixes (close battery fd)
+
+2002-06-30  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.spec, src/friendsd.c, src/gpsdrive.c, po/de_AT.po, po/es.po, po/fr.po, po/hu.po, po/it.po, po/nl.po, po/pt.po, po/ru.po, po/sk.po, po/sv.po, po/tr.po, po/xx.po, po/da.po, po/de.po, configure.in:
+	fix convertRMC
+	new arrows
+
+	* src/gpsdrive.c, src/gpsdrive.spec, po/da.po, po/de.po, po/de_AT.po, po/es.po, po/fr.po, po/hu.po, po/it.po, po/nl.po, po/pt.po, po/ru.po, po/sk.po, po/sv.po, po/tr.po, po/xx.po, configure.in:
+	make fields in convertXXX larger, earthmate seems to send larger GPGSV
+	v1.24pre1
+
+2002-06-29  Fritz Ganter  <ganter at ganter.at>
+
+	* src/battery.c, src/gpsdrive.c, src/gpsdrive.spec, src/mb2gpsdrive.pl, po/da.po, po/de.po, po/de_AT.po, po/es.po, po/fr.po, po/hu.po, po/it.po, po/nl.po, po/pt.po, po/ru.po, po/sk.po, po/sv.po, po/tr.po, po/xx.po, configure.in, README.mb2gpsdrive:
+	v1.23
+
+	* src/gpsdrive.c: v1.23pre10
+
+	* src/gpsdrive.c, src/gpsdrive.spec, src/splash.c, src/tm.c, src/version.h, src/battery.c, src/em.c, po/ru.po, po/sk.po, po/sv.po, po/tr.po, po/xx.po, po/da.po, po/de.po, po/de_AT.po, po/es.po, po/fr.po, po/hu.po, po/it.po, po/nl.po, po/pt.po, AUTHORS, configure.in:
+	added ACPI support for battery meter
+
+2002-06-27  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsd.c: patches from Marco Molteni <molter at tin.it>
+
+2002-06-23  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.c, src/power.h, src/settings.c, src/speech_out.c, src/splash.c, src/battery.c, src/fly.c, po/fr.po, po/hu.po, po/it.po, po/nl.po, po/pt.po, po/ru.po, po/sk.po, po/sv.po, po/tr.po, po/xx.po, po/da.po, po/de.po, po/de_AT.po, po/es.po, configure.in:
+	v1.23pre9
+	now PDA mode looks good.
+
+	* src/gpsdrive.c: changed menu look for -x
+
+2002-06-16  Fritz Ganter  <ganter at ganter.at>
+
+	* src/settings.c, src/gpsdrive.c: got settings smaller
+
+	* src/gpsdrive.spec, src/gpsdrivesplash.png, src/settings.c, src/fly.c, src/gpsdrive.c, po/fr.po, po/hu.po, po/it.po, po/nl.po, po/pt.po, po/ru.po, po/sk.po, po/sv.po, po/tr.po, po/xx.po, po/da.po, po/de.po, po/de_AT.po, po/es.po, AUTHORS, configure.in:
+	working on PDA screen
+
+2002-06-12  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive-ng.spec, src/gpsdrive.c, src/mb2gpsdrive.pl, src/navigation.c, src/settings.c, po/fr.po, po/hu.po, po/it.po, po/nl.po, po/pt.po, po/ru.po, po/sk.po, po/sv.po, po/tr.po, po/xx.po, po/da.po, po/de.po, po/de_AT.po, po/es.po, man/gpsdrive.1, AUTHORS:
+	v1.23pre7
+
+2002-06-10  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.c: added compass
+
+2002-06-02  Fritz Ganter  <ganter at ganter.at>
+
+	* src/nautic.c, src/navigation.c, src/settings.c, src/speech_out.c, src/splash.c, src/Makefile.am, src/fly.c, src/gpsdrive.c, src/gpsdrive.spec, po/de.po, po/de_AT.po, po/es.po, po/fr.po, po/hu.po, po/it.po, po/nl.po, po/pt.po, po/ru.po, po/sk.po, po/sv.po, po/tr.po, po/xx.po, po/da.po, configure.in:
+	added navigation.c and copyrights
+
+	* src/gpsdrive.c, po/hu.po, po/it.po, po/nl.po, po/pt.po, po/ru.po, po/sk.po, po/sv.po, po/tr.po, po/xx.po, po/da.po, po/de.po, po/de_AT.po, po/es.po, po/fr.po, man/gpsdrive.1, configure.in:
+	v1.23pre6
+	did lot of bug fixing for small displays.
+
+2002-06-01  Fritz Ganter  <ganter at ganter.at>
+
+	* src/Makefile.am, src/fly.c, src/gpsdrive-ng.spec, src/gpsdrive.c, src/gpsdrive.spec, src/wpget, po/ru.po, po/sk.po, po/sv.po, po/tr.po, po/xx.po, po/da.po, po/de.po, po/de_AT.po, po/es.po, po/fr.po, po/hu.po, po/it.po, po/nl.po, po/pt.po, GPS-receivers, configure.in:
+	fixed bug for little screens
+	added new wpget from Miguel Angelo Rozsas <miguel at rozsas.xx.nom.br>
+
+	* src/gpsdrive.c: working on bugfix for small screens
+
+2002-05-30  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.c, src/gpsdrive.spec, po/da.po, po/de.po, po/de_AT.po, po/es.po, po/fr.po, po/hu.po, po/it.po, po/nl.po, po/pt.po, po/ru.po, po/sk.po, po/sv.po, po/tr.po, po/xx.po, man/gpsdrive.1, configure.in:
+	v1.23pre4
+	use GPGGA if no GPRMC is available
+
+2002-05-29  Fritz Ganter  <ganter at ganter.at>
+
+	* po/sv.po: added
+
+	* src/gpsdrive.c, src/gpsdrive.spec, po/de_AT.po, po/es.po, po/fr.po, po/hu.po, po/it.po, po/nl.po, po/pt.po, po/ru.po, po/sk.po, po/tr.po, po/xx.po, po/da.po, po/de.po, man/de/gpsdrive.1, man/gpsdrive.1, configure.in:
+	added swedish translation
+
+	* src/geocache2way, src/gpsdrive.c, src/gpsfetchmap.pl, po/da.po, po/de.po, po/de_AT.po, po/es.po, po/fr.po, po/hu.po, po/it.po, po/nl.po, po/pt.po, po/ru.po, po/sk.po, po/tr.po, po/xx.po, configure.in:
+	added gpsfetchmap.pl and geocache2way
+
+2002-05-25  Fritz Ganter  <ganter at ganter.at>
+
+	* po/sk.po, po/de_AT.po, po/hu.po, po/tr.po, src/Makefile.am, src/gpsdrive-ng.spec, src/gpsdrive.spec, po/es.po, po/fr.po, po/it.po, po/nl.po, po/pt.po, po/ru.po, po/xx.po, po/da.po, po/de.po, configure.in:
+	added
+
+2002-05-23  Fritz Ganter  <ganter at ganter.at>
+
+	* src/battery.c, AUTHORS: added  Marco Molteni
+
+	* src/Makefile.am, src/battery.c, src/battery.h, src/gpsdrive.c, src/power.h, src/settings.c, src/splash.c, src/stop.h, po/it.po, po/nl.po, po/pt.po, po/xx.po, po/da.po, po/de.po, po/es.po, po/fr.po, configure.in:
+	v1.23pre1
+	added new BSD battery stuff
+
+2002-05-20  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.c, src/settings.c, po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/pt.po, po/xx.po, AUTHORS:
+	removed race condition in setutc()
+	new 1.22
+
+	* src/fly.c, src/gpsdrive.c, src/gpsdrive.spec, src/nautic.c, src/settings.c, src/splash.c, po/fr.po, po/it.po, po/nl.po, po/pt.po, po/xx.po, po/POTFILES, po/POTFILES.in, po/da.po, po/de.po, po/es.po, man/de/gpsdrive.1, man/gpsdrive.1, configure.in:
+	v1.22
+
+	* src/fly.c, src/gpsdrive.c, src/gpsdrive.spec, src/settings.c, src/splash.c, po/nl.po, po/pt.po, po/xx.po, po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, configure.in:
+	v1.22pre7
+
+	* README.FreeBSD: gpsdrive is now  officially in the FreeBSD ports.
+
+2002-05-19  Fritz Ganter  <ganter at ganter.at>
+
+	* src/nautic.c: added nautic.c
+
+	* src/Makefile.am, src/fly.c, src/gpsdrive.c, po/es.po, po/fr.po, po/it.po, po/nl.po, po/pt.po, po/xx.po, po/da.po, po/de.po:
+	fly and nautic loading works
+
+2002-05-18  Fritz Ganter  <ganter at ganter.at>
+
+	* src/settings.c, src/gpsdrive.c, src/gpsdrive.spec, po/POTFILES, po/POTFILES.in, po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/pt.po, po/xx.po, configure.in:
+	finished geo infos
+	v1.22pre5
+
+	* src/gpsdrive.spec, src/settings.c, po/fr.po, po/it.po, po/nl.po, po/pt.po, po/xx.po, po/da.po, po/de.po, po/es.po, AUTHORS, configure.in:
+	added slovak translations
+	fixed segfault
+	v1.22pre3
+
+2002-05-17  Fritz Ganter  <ganter at ganter.at>
+
+	* configure.in: v1.22pre2
+
+	* src/gpsdrive.c, src/settings.c: added sunrise,sunset in settings menu
+
+	* src/wpget: changed target file to $HOME/.gpsdrive/way-wpget.txt
+
+	* src/gpsdrive.c, src/mb2gpsdrive.pl, src/settings.c, po/fr.po, po/it.po, po/nl.po, po/pt.po, po/xx.po, po/da.po, po/de.po, po/es.po, README.mb2gpsdrive:
+	changed settings menu to notebook widget
+
+2002-05-15  Fritz Ganter  <ganter at ganter.at>
+
+	* src/Makefile.am, src/gpsdrive.c, src/mb2gpsdrive.pl, src/settings.c, po/it.po, po/nl.po, po/pt.po, po/xx.po, po/da.po, po/de.po, po/es.po, po/fr.po, README.mb2gpsdrive, configure.in:
+	created settings.c
+
+2002-05-13  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.c, po/de.po:
+	fixed bug in downloadsetparm if not decimal notation
+	new v1.21
+
+2002-05-12  Fritz Ganter  <ganter at ganter.at>
+
+	* src/Makefile.am, po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/pt.po, po/xx.po, Makefile.am:
+	..
+
+	* src/Makefile.am, src/README.mb2gpsdrive, src/gpsdrive.c, src/splash.c, po/pt.po, po/xx.po, po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, Makefile.am, README.mb2gpsdrive:
+	new 1.21
+	changed B to N key.
+
+	* src/Makefile.am, src/README.mb2gpsdrive, src/gpsdrive.spec, src/mb2gpsdrive.pl:
+	added  README.mb2gpsdrive mb2gpsdrive.pl
+
+	* po/pt.po, po/xx.po, po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, ChangeLog:
+	...
+
+	* src/gpsdrive.c, src/gpsdrive.spec, src/splash.c, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/pt.po, po/xx.po, po/da.po, configure.in:
+	v1.21
+
+	* src/gpsdrive.c: added nightmode. See settings menu.
+
+2002-05-12  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.c, src/gpsdrive.spec, src/splash.c, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/pt.po, po/xx.po, po/da.po, configure.in:
+	v1.21
+
+	* src/gpsdrive.c: added nightmode. See settings menu.
+
+2002-05-11  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.c, src/gpsdrive.spec, src/speech_out.c, src/splash.c, po/pt.po, po/xx.po, po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, Makefile.am, configure.in:
+	v1.21pre1
+	degree,minutes,seconds should work now
+
+2002-05-10  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.c:
+	display of lat/long is switchable between decimal and degree,minutes
+	and seconds display
+	added display of radar warning as scrolling text
+	distance to recognize arriving of the destination is now speed
+	depending
+	added check of the checksum of the NMEA sentences to avoid crashes if
+	invalid NMEA sentences are received
+
+2002-05-05  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.spec, man/gpsdrive.1, AUTHORS, README, configure.in:
+	v1.20
+
+	* src/gpsdrive.spec, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/pt.po, po/xx.po, po/da.po, man/gpsdrive.1, LISEZMOI, Makefile.am, configure.in:
+	v1.20pre3
+
+2002-05-04  Fritz Ganter  <ganter at ganter.at>
+
+	* src/speech_out.c: v1.20pre2
+
+	* src/speech_out.c, src/gpsdrive.c, po/pt.po, po/xx.po, po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po:
+	added new intl subdir
+
+2002-05-02  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.c, src/gpsdrive.spec, src/speech_out.c, src/splash.c, configure.in:
+	added speech output of waypoint description
+
+	* src/gpsdrive.c:
+	speech output: say reached target also if not in route mode
+
+2002-05-01  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.c, src/gpsdrive.spec, po/nl.po, po/pt.po, po/xx.po, po/it.po, po/da.po, po/de.po, po/es.po, po/fr.po, README.FreeBSD, configure.in:
+	added README.FreeBSD
+
+2002-04-29  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.c, src/splash.c, po/nl.po, po/pt.po, po/xx.po, po/it.po, po/da.po, po/de.po, po/es.po, po/fr.po, configure.in:
+	v1.20pre1
+	added display of sat position
+
+2002-04-28  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.c, po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/pt.po, po/xx.po:
+	new 1.19 ;-)
+
+	* src/gpsdrive.c, src/gpsdrive.spec, po/pt.po, po/xx.po, po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, configure.in:
+	v1.19
+
+	* src/gpsdrive.c, src/gpsdrive.spec, src/splash.c, po/nl.po, po/pt.po, po/xx.po, po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, configure.in:
+	v1.19pre2
+	button to delete waypoint
+	fixed miles distance on startup in miles mode
+	new sat level display colors
+
+2002-04-21  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.spec, po/fr.po, po/it.po, po/nl.po, po/pt.po, po/xx.po, po/da.po, po/de.po, po/es.po, configure.in:
+	v1.18
+
+	* src/gpsdrive.c: fixed bug in downloadsetparms (longitude comparision)
+
+	* src/gpsdrive.spec, configure.in: v1.18pre4
+
+	* src/gpsdrive.c:
+	Now getting good maps for USA from expedia server works: I changed in
+	the URL EUR0809 to USA0409 if longitude is west of 30°W. If anyone
+	have found a system for this EUR0809,USA0409 strings in the URL,
+	please inform me.
+
+	* src/gpsdrive.spec, po/es.po, po/fr.po, po/it.po, po/nl.po, po/pt.po, po/xx.po, po/da.po, po/de.po:
+	...
+
+	* configure.in, missing: v1.18pre3
+	added new missing file
+
+	* src/gpsdrive.c, src/gpsdrive.spec, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/pt.po, po/xx.po, po/da.po:
+	v1.18pre3
+	much more precise calculation of distance (uses WGS84 elipsoid)
+
+2002-04-19  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsd.c:
+	Thanks to the patch of Derrick J Brashear now some more receivers
+	are providing the altitude.
+
+2002-04-18  Fritz Ganter  <ganter at ganter.at>
+
+	* configure.in: v1.18pre2
+
+	* src/garmin_types.h, src/garmin_util.cpp, src/gpsd.c, src/gpsdrive.c, po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/pt.po, po/xx.po, GPS-receivers, configure.in:
+	added turkish translation
+	added display number of satellites
+	v1.18pre2
+
+2002-04-16  Fritz Ganter  <ganter at ganter.at>
+
+	* src/em.c, src/gpsdrive.c, src/gpsdrive.spec, po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/pt.po, po/xx.po, AUTHORS, Makefile.am, configure.in:
+	...
+
+2002-04-15  Fritz Ganter  <ganter at ganter.at>
+
+	* src/Makefile.am, src/gpsdrive.spec, po/es.po, po/fr.po, po/it.po, po/nl.po, po/pt.po, po/xx.po, po/da.po, po/de.po, man/gpsdrive.1, configure.in:
+	new 1.17
+	set libfly version to 1.0.0
+	moved installed files to prefix/lib and prefix/share/lib
+
+2002-04-14  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.c, src/gpsdrive.spec, src/speech_out.c, po/fr.po, po/it.po, po/nl.po, po/pt.po, po/xx.po, po/de.po, po/es.po, po/da.po, man/gpsdrive.1, configure.in:
+	v1.17
+
+	* src/fly.c, src/gpsdrive.c, src/gpsdrive.spec, src/splash.c, po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/pt.po, po/xx.po, config.h.in, configure.in:
+	v1.17pre3
+	added simulaton follow switch in setup menu
+
+2002-04-13  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.c: added comment
+
+	* po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/pt.po, po/xx.po, Makefile.am:
+	added depcomp
+
+	* src/gpsdrive.c, po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/pt.po, po/xx.po:
+	...
+
+	* config.h.in, depcomp: added
+
+	* src/fly.c: ...
+
+	* src/Makefile.am, src/fly.c, src/gpsdrive.c, src/splash.c, po/fr.po, po/it.po, po/nl.po, po/pt.po, po/xx.po, po/da.po, po/de.po, po/es.po, man/gpsdrive.1, AUTHORS, README, config.h.in, configure.in, ltmain.sh:
+	v1.17pre2
+
+2002-04-12  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.c:
+	removed way.txt checking and popup, if there are wrong entries, the
+	entries are ignored, not the whole file.
+
+2002-04-10  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.c:
+	sometimes wrong coordinates in download map window, fixed.
+
+2002-04-07  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.c, src/gpsfetchmap, po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/pt.po, po/xx.po:
+	bugfix in gpsdrive.c and gpsfetchmap
+
+	* src/gpsdrive.c, src/gpsdrive.spec, po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/pt.po, po/xx.po, man/gpsdrive.1, README, configure.in, AUTHORS:
+	v1.16
+
+	* src/gpsfetchmap: changed line
+	while [ `echo "$lat > $endlat" | bc` = 1 ]
+	to
+	while [ `echo "$lat < $endlat" | bc` = 1 ]
+
+	* src/gpsdrive.c, po/fr.po, po/it.po, po/nl.po, po/pt.po, po/xx.po, po/da.po, po/de.po, po/es.po, configure.in:
+	v1.16pre9
+
+	* src/Makefile.am, src/display.c: removed display.c
+
+	* src/Makefile.am, src/fly.c, src/gpsdrive.c, po/es.po, po/fr.po, po/it.po, po/nl.po, po/pt.po, po/xx.po, po/da.po, po/de.po, GPS-receivers:
+	added fly.c
+	added more GPS-receivers
+
+2002-04-06  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.c:
+	I found a better documentation for GARMIN receivers. So I removed DOP
+	and added EPE (estimated position error). Sorry, if you have no
+	GARMIN. The used NMEA sentence is $PGRME.
+
+	* src/gpsdrive.c: changed #elif to #else
+
+	* src/em.c, src/gpsd.c, src/gpsdrive.c, src/serial.c, src/splash.c, po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/pt.po, po/xx.po, config.h.in, configure.in:
+	v1.16pre8
+	cleanup of gpsd files
+
+	* src/gpsdrive.c:
+	removed feature to set posmode on with left mouseclick in the map
+	window. It has to switched on with the toogle button in the menu.
+
+	* po/pt.po: added
+
+	* src/Makefile.am, src/gpsd.c, src/gpsdrive.c, src/netlib.c, src/version.h, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po, po/da.po, po/de.po:
+	changing filelist
+
+2002-04-05  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.c: added DGPS displaying
+	added DOP (DILUTION OF PRECISION):
+	A measure of the GPS receiver-satellite geometry. A low DOP value
+	indicates better relative geometry and correspondingly higher
+	accuracy.
+
+	* src/gpsd.c: added comment
+
+	* src/display.c, src/em.c, src/gps.h, src/gpsd.c, src/gpsd.h, src/netlib.c, src/nmea.h, src/nmea_parse.c, src/serial.c, src/tm.c, src/version.h:
+	added
+
+	* src/gpsd_main.cpp, src/gpsdrive.c, src/viz_system.cpp, src/viz_system.h, src/viz_types.h, src/Makefile.am, config.h.in, configure.in:
+	changed to Remco Treffkorn's gpsd
+
+2002-04-04  Fritz Ganter  <ganter at ganter.at>
+
+	* src/Makefile.am, src/gpsdrive.c, src/gpsdrive.spec, po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po, configure.in:
+	v1.16pre7
+	added altitude in stored tracks
+	added zoom factor display on map
+
+2002-04-03  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.c: added altitude display
+
+	* src/gpsdrive.c: trying to get out altitude
+
+2002-04-02  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.c, src/gpsdrive.spec, src/splash.c, po/fr.po, po/it.po, po/nl.po, po/xx.po, po/da.po, po/de.po, po/es.po, configure.in:
+	v1.16pre4
+	you can type in coordinates in the "Add waypoint" window (x-key)
+	Autosave of configuration
+	update spanish translation (translater had holiday)
+
+2002-04-01  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.c, po/it.po, po/nl.po, po/xx.po, po/da.po, po/de.po, po/es.po, po/fr.po:
+	v1.16pre3
+
+	* src/gpsdrive.c, src/gpsdrive.spec, src/splash.c, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po, po/da.po, po/de.po, configure.in:
+	added garmin and serialdevice in setup
+
+	* src/gpsdrive.c: really upload new 1.15 and v1.16-pre2
+	added penguin
+	fixed gpsd detection
+	variable testgarmin inserted, set it to FALSE if you have problems with your
+	NMEA receiver detection.
+	don't forget to call "gpsdrive -t /dev/ttySx" the first time, where x is
+	your port number (0=COM1:)
+
+	* src/gpsdrive.c, src/stop.h, po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po, configure.in:
+	v1.16-pre2
+	serialdev fix was not good enough
+
+	* src/gpsdrive.c, po/nl.po, po/xx.po, po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, configure.in:
+	I decided to create a new 1.15 from 1.16-pre1 because if the serialdev bug.
+
+	* src/gpsdrive.c, po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po, configure.in:
+	v1.16-pre1 bugfix for serialdev if no gpsdriverc exists yet
+
+	* src/gpsdrive.c: added -b parameter for NMEA server
+	added -c parameter to set position in simulation mode to waypoint name
+
+2002-03-31  Fritz Ganter  <ganter at ganter.at>
+
+	* src/gpsdrive.c, po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po, man/de/gpsdrive.1, man/gpsdrive.1, ChangeLog, README, configure.in:
+	v1.15 Summary:
+	You can select your "way*.txt" file in setup menu.
+		   The DEFAUL entry in way.txt is now obsolet.
+		   The "setdefaultpos" entry in gpsdricerc in now obsolet.
+		   Added battery meter, shows battery capacity and battery/plugged mode
+		   (only shown on notebooks).
+		   Removed command line parameter: -w.
+		   Added command line parameter: -a , use it if gpsdrive
+		   crashes (happens on broken apm BIOSes).
+		   Removed popup to start GPSD, its now a button.
+		   Added new unit "nautical miles".
+		   Moved buttons to setup menu, setup menu with new options.
+
+	* src/splash.c, src/gpsdrive.c, po/fr.po, po/it.po, po/nl.po, po/xx.po, po/da.po, po/de.po, po/es.po, configure.in:
+	v1.15-pre5
+	you can select your "way*.txt" file in setup menu
+	The DEFAUL entry in way.txt is now obsolet
+	The "setdefaultpos" entry in gpsdricerc in now obsolet
+
+	* src/gpsdrive.c:
+	The "DEFAULT" waypoint is now obsolet. All references to it will now
+	be removed.
+
+	* src/gpsdrive.c: working on chooseable waypoint files
+
+2002-03-31  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/splash.c, src/gpsdrive.c, po/fr.po, po/it.po, po/nl.po, po/xx.po, po/da.po, po/de.po, po/es.po, configure.in:
+	v1.15-pre5
+	you can select your "way*.txt" file in setup menu
+	The DEFAUL entry in way.txt is now obsolet
+	The "setdefaultpos" entry in gpsdricerc in now obsolet
+
+	* src/gpsdrive.c:
+	The "DEFAULT" waypoint is now obsolet. All references to it will now
+	be removed.
+
+	* src/gpsdrive.c: working on chooseable waypoint files
+
+2002-03-30  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c, src/splash.c, po/it.po, po/nl.po, po/xx.po, po/da.po, po/de.po, po/es.po, po/fr.po:
+	2nd pre 1.15
+
+	* src/gpsdrive.c, src/gpsdrive.spec, src/splash.c, src/stop.h, po/fr.po, po/it.po, po/nl.po, po/xx.po, po/da.po, po/de.po, po/es.po, configure.in:
+	pre 1.15
+
+	* src/gpsdrive.c: created setup menu
+
+2002-03-29  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c:
+	added battery meter, shows battery capacity and battery/plugged mode
+
+2002-03-28  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsfetchmap: new version from Manfred Caruso
+
+2002-03-24  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.spec, po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po, configure.in:
+	v1.14
+
+	* src/gpsdrive.c, src/splash.c, po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po:
+	v1.14 some cosmetic changes
+
+2002-03-23  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c, src/gpsdrive.spec, po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po, configure.in:
+	v1.13
+
+	* src/gpsdrive.c:
+	added better background for waypoint text, wp text has now a bold font
+
+2002-03-22  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c, src/splash.c, po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po:
+	bugfix for late gpsd start
+	remembering last position if setdefaultpos = 0 in gpsdriverc
+
+2002-03-21  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c, src/splash.c:
+	added question if gpsd should be started.
+	Thanks to daZwerg(gEb-Dude) for suggestion.
+
+2002-03-19  Fritz Ganter  <ganter at grazforyou.at>
+
+	* po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po:
+	update language files
+
+2002-03-18  Fritz Ganter  <ganter at grazforyou.at>
+
+	* po/fr.po: ...
+
+2002-03-17  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c, src/gpsdrive.spec, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po, po/da.po:
+	v1.12
+
+	* src/gpsdrive.c, src/gpsdrive.spec, po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po, configure.in:
+	added route
+	v1.12 preview
+
+2002-03-16  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c, src/splash.c, po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po:
+	fixed segfault if no gpsdriverc exists. New v1.11
+
+	* src/gpsdrive.c, src/gpsdrive.spec, src/splash.c, po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po, configure.in:
+	v1.11
+
+	* src/gpsdrive.c: added gpsdriverc file to save and restore settings
+	added shadow to all drawn elements on map
+	removed -m flag for setting miles because it is saved in gpsdriverc
+
+2002-03-14  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c: added speech output of target set
+	use HTTP_PROXY or http_proxy for enviroment variable to set proxy server
+
+2002-03-11  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.spec: added portugese
+
+	* configure.in: added pt
+
+	* AUTHORS: added italian author
+
+	* GPS-receivers: added Holux
+
+2002-03-10  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.spec, po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po, configure.in:
+	v1.10
+
+	* src/gpsdrive.c: minimap is now clickable for switch to position mode
+	parameter -1 for 1 button mouse, i.e. touchpads
+	viewable satellites with 0db Signal are shown als short red bar
+
+2002-03-03  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c:
+	posmode is switched off after 10 seconds automatically
+
+2002-02-27  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c: download default is now expedia server
+
+2002-02-26  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c, src/splash.c, po/xx.po, po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po:
+	added x key for set waypoint on actual position
+
+2002-02-25  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c:
+	bugfix for loading tracks. now date/time is also loaded
+
+2002-02-24  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c, src/splash.c, po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po:
+	new v1.9, added shortcuts
+
+	* src/wpcvt:
+	replaced my version with the version of Ned Konz <ned at bike-nomad.com>
+
+	* src/gpsdrive.c: prevent to call target window more than once
+
+	* configure.in: v1.9
+
+	* src/gpsdrive.c, po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po:
+	Real, real v1.9, fixed division by zero handling
+
+	* src/gpsdrive.c, configure.in:
+	Real v1.9, added  -ffast-math because of better DIVZERO handling in code
+
+	* src/gpsdrive.c, src/gpsdrive.spec, src/splash.c, po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po, configure.in:
+	v1.9
+
+	* src/gpsdrive.c:
+	the "select waypoint" window is now auto-updated and shows every 5
+	seconds the true distance to the waypoints.
+
+2002-02-23  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c:
+	added set waypoint at current position by CTRL-right mouse click
+
+2002-02-20  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsfetchmap: fixed for mapblast working again
+
+	* po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po, po/da.po, po/de.po:
+	xx
+
+2002-02-18  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/splash.c: changed help text
+
+	* src/gpsdrive.c, src/gpsdrive.spec, po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po, configure.in:
+	added set waypoint by CTRL-left mouse click and storing into way.txt
+
+2002-02-17  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c: perhaps bugfix for black maps
+	added reread of way.txt if file is changed
+
+2002-01-11  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.spec, po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po:
+	changed spec file
+
+	* AUTHORS: added Richard Scheffenegger <rscheff at chello.at>
+
+	* src/gpsdrive.spec, po/it.po, po/nl.po, po/xx.po, po/da.po, po/de.po, po/es.po, po/fr.po, man/Makefile.am, configure.in:
+	v 1.7 changed URLs of map server. Better support for small displays.
+
+	* src/gpsdrive.c:
+	Changed URL for map webservers. A lot of thanks to Oliver Kuehlert <Oliver.Kuehlert at mpi-hd.mpg.de>!
+
+2001-12-12  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c:
+	added changes from Richard Scheffenegger <rscheff at chello.at>
+
+2001-12-02  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c, po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po:
+	fixed bug in setlocale
+
+	* src/gpsdrive.c, src/gpsdrive.spec, po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po, man/de/gpsdrive.1, man/gpsdrive.1, GPS-receivers, README, configure.in:
+	friends mode bugfix. Enhanced -x option
+
+2001-11-16  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.spec, src/gpsdrive.c, configure.in: v1.5
+
+	* src/garble.cpp, src/gpsdrive.c, src/gpsdrivegarble.cpp, po/it.po, po/nl.po, po/xx.po, po/da.po, po/de.po, po/es.po, po/fr.po:
+	tcpserver/client works
+
+2001-11-13  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/friendsd.c, src/gpsdrive.c, src/gpsdrive.spec, po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po, man/gpsdrive.1, configure.in:
+	v1.4 enhanced friends functions
+
+2001-11-12  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.spec: added friendsd to distrib
+
+	* po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po:
+	..
+
+	* src/gpsdrive.spec, src/Makefile.am, src/friendsd.c, src/friendsicon.png, src/friendsicon2.png, src/gpsdrive.c, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po, po/da.po, configure.in:
+	v1.3
+
+	* src/Makefile.am, src/friends.c, src/friendsd.c, src/gpsdrive.c, po/POTFILES, configure.in:
+	friends server and client starting to work
+
+2001-11-11  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/Makefile.am, src/friends.c, src/friendsd.c, src/gpsdrive.c:
+	added friendsd
+
+	* po/POTFILES: added
+
+	* src/Makefile.am, src/friends.c, po/it.po, po/nl.po, po/xx.po, po/da.po, po/de.po, po/es.po, po/fr.po:
+	added friends.c
+
+2001-11-04  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.spec, configure.in: v1.2
+
+	* src/gpsdrive.c:
+	autodetects setting for voice output, cosmetic changes
+
+	* po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po:
+	update french
+
+	* man/de/gpsdrive.1, man/Makefile.am, man/gpsdrive.1:
+	added german man page, changed some in english manpage
+
+2001-11-03  Fritz Ganter  <ganter at grazforyou.at>
+
+	* man/de/gpsdrive.1: ...
+
+	* man/es/gpsdrive.1, man/de/gpsdrive.1, man/Makefile.am, man/gpsdrive.1:
+	added
+
+	* src/Makefile.am, src/gpsdrive.1, src/gpsdrive.c, po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po, Makefile.am, configure.in:
+	moved manpages to man directory
+
+	* src/gpsdrive.c, po/da.po, po/de.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po:
+	next public v1.1, made testnewmap more accurate
+
+	* src/gpsdrive.c: new layout, some buttons are now checkboxes
+
+	* src/gpsdrive.spec: removed dk and added da for dansk
+
+	* po/da.po, po/de.po, po/dk.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po, configure.in:
+	replaced dk with da. da is dansk
+
+	* src/gpsdrive.c, src/gpsdrive.spec, po/de.po, po/dk.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po, configure.in:
+	v1.1, added best map button and next more/less detailed map button
+
+2001-11-02  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.1, src/gpsdrive.c: real v1.0, changed manpage
+
+	* po/de.po, po/dk.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po:
+	real v1.0, changed README
+
+	* src/gpsdrive.c, po/de.po, po/dk.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po:
+	v1.0 for public
+
+2001-11-01  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.spec, src/speech_out.c, src/gpsdrive.1, src/gpsdrive.c, po/fr.po, po/it.po, po/nl.po, po/xx.po, po/de.po, po/dk.po, po/es.po, configure.in:
+	v1.0 added spanish voice output
+
+	* src/gpsdrive.1, src/gpsdrive.spec, po/de.po, po/dk.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po, configure.in:
+	v0.36
+
+	* src/gpsdrive.c:
+	added festival init for german and english. See manpage
+
+2001-10-29  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c, po/de.po, po/dk.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po, AUTHORS:
+	added -o
+
+	* src/gpsdrive.c:
+	added -o option to output NMEA sentences. Written by Dan Egnor <egnor at ofb.net>
+
+2001-10-28  Fritz Ganter  <ganter at grazforyou.at>
+
+	* LEEME, README: removed remark about iPAQ define
+
+	* src/gpsdrive.spec: LEEME spelling
+
+	* Makefile.am: added LEEME
+
+	* src/gpsdrive.spec, po/de.po, po/dk.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po, AUTHORS, LEEME, configure.in:
+	added LEEME, fixed gtk-pixbuf config, updated spanish and dutch translation
+
+	* src/gpsdrive.c, po/dk.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po, po/de.po:
+	v0.35
+
+	* src/gpsdrive.spec, src/gpsdrive.c, po/de.po, po/dk.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po, configure.in:
+	v0.35 added load and store track
+
+2001-10-27  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c, po/de.po, po/dk.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po, GPS-receivers:
+	autodetected screen size
+
+2001-10-26  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c: added auto detecting screen size
+
+2001-10-23  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.spec, po/de.po, po/dk.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po:
+	added %doc to spec file, still v0.34
+
+2001-10-22  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.1: added proxy server in v0.34
+
+	* src/gpsdrive.c, src/gpsdrive.spec, po/de.po, po/dk.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po, configure.in:
+	v 0.34 added proxy server
+
+2001-10-21  Fritz Ganter  <ganter at grazforyou.at>
+
+	* po/de.po, po/dk.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po:
+	v 0.33
+
+	* src/gpsdrive.c, po/de.po, po/dk.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po:
+	v0.33
+
+	* src/gpsdrive.c, src/gpsdrive.spec, po/de.po, po/dk.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po, GPS-receivers, configure.in:
+	bugfix in position calculation for big maps.
+	pre 0.33
+
+	* src/gpsdrive.c:
+	found buffer overflow in get_position_data_cb only in NMEA mode, result was wrong text translations.
+
+	* src/gpsdrive.c:
+	new position calculation looks good, but in progress...
+
+2001-10-19  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c:
+	track parts are not drawn if no GPS Fix is avail. Should work...
+
+2001-10-16  Fritz Ganter  <ganter at grazforyou.at>
+
+	* config.h.in: added
+
+	* src/gpsdrive.c, po/de.po, po/dk.po, po/es.po, po/fr.po, po/it.po, po/nl.po, po/xx.po:
+	added po files
+
+2001-10-14  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c, acconfig.h, configure.in:
+	really V0.32 expedia server works now
+
+	* src/gpsdrive.c: working on expedia scaling
+
+	* src/Makefile.am, Makefile.am, README: Changed README
+
+	* src/gpsdrive.c:
+	Program now creates a ~/.gpsdrive directory if it was not found. Also
+	it creates a map_koord.txt in it.
+
+	* src/Makefile.am, src/gpsdrive.c, src/gpsdrive.spec, src/splash.c, configure.in:
+	v0.32 correct path for prefix other than /usr/local
+
+2001-10-13  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.spec:
+	prefix for rpm is now /usr while tarball defaults to /usr/local
+
+	* src/Makefile.am, src/gpsdrive.c, src/gpsdrive.spec, src/splash.c, acconfig.h, config.h.in, configure.in:
+	corrected paths for locale and pixmap, ./configure --prefix= works now as
+	expected
+
+	* src/gpsdrive.c, config.h.in: test
+
+2001-10-09  Fritz Ganter  <ganter at grazforyou.at>
+
+	* configure.in: added dutch
+
+	* src/gpsdrive.spec, src/gpsdrive.c, configure.in: v0.31
+
+	* src/garble.cpp, src/garmin_serial_unix.cpp, src/gpsdrivegarble.cpp, src/wpcvt, AUTHORS, TODO:
+	updated spanish translation, radar works, fix for g++ 3.x compilers
+	updated wpcvt added expedia.com mapserver, but not working yet
+
+2001-10-08  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c:
+	added download from expedia.com, but it don't work yet.
+	Reason: Server don't send CONTENT-LENGTH
+
+	* src/gpsdrive.c: radar detection stopped working, runs now again
+
+	* src/gpsdrive.spec: man page is gzipt
+
+	* README: changed README
+
+	* src/Makefile.am: bugfix in EXTRA_DIST
+
+	* src/gpsdrive.spec: added manpage
+
+	* src/gpsdrive.1, src/gpsdrive.c, README: fixed bug in testconfig_cb
+
+	* src/Makefile.am, src/gpsdrive.1: added manpage
+
+2001-10-07  Fritz Ganter  <ganter at grazforyou.at>
+
+	* README: inserted map_* and top_* in README
+
+	* src/gpsdrive.c: detects wrong names in map_koord.txt
+
+	* config.h: removed
+
+	* config.h, README, ChangeLog, src/gpsdrive.c, src/gpsdrive.spec, configure.in:
+	v0.30
+
+	* src/gpsdrive.c: removed some debugging lines
+
+	* src/gpsdrive.c: import seems to work
+
+	* src/gpsdrive.c: map import nearly finished
+
+2001-10-07  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c, src/gpsdrive.spec, configure.in: v0.30
+
+	* src/gpsdrive.c: removed some debugging lines
+
+	* src/gpsdrive.c: import seems to work
+
+	* src/gpsdrive.c: map import nearly finished
+
+2001-10-04  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c: added rectangle on minimap
+	working on map import
+
+2001-09-30  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrivelogo.png: removed
+
+	* ChangeLog: v0.29
+
+	* src/gpsdrive.c, src/gpsdrive.spec, src/speech_out.c, src/splash.c, po/POTFILES.in, config.h, configure.in:
+	v0.29
+	added choice of map type
+
+	* src/Makefile.am, src/gpsdrive.c, src/splash.c, po/POTFILES.in, configure.in:
+	added minimap, removed gpsdrivelogo
+
+	* src/speech_out.c: added help menu
+
+	* src/gpsdrive.c:
+	added parameter -x to use a seperate window for the menu
+	some changes in speech output
+	added help button
+
+2001-09-30  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c, src/gpsdrive.spec, src/speech_out.c, src/splash.c, po/POTFILES.in, config.h, configure.in:
+	v0.29
+	added choice of map type
+
+	* src/Makefile.am, src/gpsdrive.c, src/splash.c, po/POTFILES.in, configure.in:
+	added minimap, removed gpsdrivelogo
+
+	* src/speech_out.c: added help menu
+
+	* src/gpsdrive.c:
+	added parameter -x to use a seperate window for the menu
+	some changes in speech output
+	added help button
+
+2001-09-28  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/Makefile.am, src/gpsdrive.c, src/gpsdrive.spec, src/gpsdrivelogo.png, src/speech_out.c, src/splash.c, config.h, configure.in:
+	v0.28 changed layout, some bugfixes
+
+2001-09-27  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c: ...
+
+2001-09-25  Fritz Ganter  <ganter at grazforyou.at>
+
+	* ChangeLog: v0.27
+
+	* src/speech_out.c, src/gpsdrive.c, src/gpsdrive.spec, src/gpsdrivegarble.cpp, README, TODO, configure.in:
+	v 0.27
+
+	* src/gpsdrive.c: some bugfixes for tracking
+
+	* src/gpsdrive.c: tracking is working
+
+	* src/gpsdrive.c: fallback font strings corrected
+
+2001-09-25  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/speech_out.c, src/gpsdrive.c, src/gpsdrive.spec, src/gpsdrivegarble.cpp, README, TODO, configure.in:
+	v 0.27
+
+	* src/gpsdrive.c: some bugfixes for tracking
+
+	* src/gpsdrive.c: tracking is working
+
+	* src/gpsdrive.c: fallback font strings corrected
+
+2001-09-24  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c:
+	removed -s -g -f command line options. GpsDrive tries first port 2222,
+	then port 2947 and if not found the GARMIN mode. If this is also not
+	found it switches to simulation mode.
+
+	* src/gpsdrive.c:
+	added support for gpsd by  Remco Treffkorn using port 2947
+
+2001-09-23  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.spec, AUTHORS: added dansk
+
+	* ChangeLog, config.h: ...
+
+	* src/gpsdrive.spec, configure.in: v 0.26
+
+	* src/gpsico.h, src/rotatetest.c, src/speech_out.c, src/Makefile.am, src/gpsdrive.c, src/gpsdrivegarble.cpp, AUTHORS, GPS-receivers, Makefile.am, README, TODO, config.h, configure.in:
+	v0.26
+
+	* src/gpsdrive.c:
+	Added -t and -l command line switches, see gpsdrive -h
+	Added german speech texts.
+	Bugfix in radar detection. Only the nearest Radar gives speech output.
+	Cosmetic changes for markers.
+	#define MAXSHOWNWP 100 for max. shown waypoints. Tested with list of
+	30000 waypoints. If gpsdrive hangs, reduce number of waypoints in
+	file.
+	Better fallbacks for fonts. I prefer an arial truetype font. Helvetica
+	is used if no arial font is found.
+
+	* src/gpsdrive.c: ...
+
+2001-09-22  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c:
+	Added program icon. Added check for way.txt format errors.
+
+2001-09-23  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.spec, configure.in: v 0.26
+
+	* src/gpsico.h, src/rotatetest.c, src/speech_out.c, src/Makefile.am, src/gpsdrive.c, src/gpsdrivegarble.cpp, AUTHORS, GPS-receivers, Makefile.am, README, TODO, config.h, configure.in:
+	v0.26
+
+	* src/gpsdrive.c:
+	Added -t and -l command line switches, see gpsdrive -h
+	Added german speech texts.
+	Bugfix in radar detection. Only the nearest Radar gives speech output.
+	Cosmetic changes for markers.
+	#define MAXSHOWNWP 100 for max. shown waypoints. Tested with list of
+	30000 waypoints. If gpsdrive hangs, reduce number of waypoints in
+	file.
+	Better fallbacks for fonts. I prefer an arial truetype font. Helvetica
+	is used if no arial font is found.
+
+	* src/gpsdrive.c: ...
+
+2001-09-22  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c:
+	Added program icon. Added check for way.txt format errors.
+
+	* src/config.h.in, src/gpsdrive.c, src/rotatetest.c, config.h, configure.in:
+	solved this intl compile problem
+
+2001-09-21  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/Makefile.am: added stop.h
+
+	* src/gpsdrive.c: v0.25
+
+	* src/gpsdrive.c, src/stop.h:
+	added error message for not existent DEFAULT waypoint
+	added popup error window
+
+	* src/gpsdrive.spec, src/gpsdrive.c, README, configure.in:
+	In the way.txt waypoint file the waypoint
+	named "DEFAULT" is the start position of the program,
+	important if you start it in simulation mode.
+	So not everybody in the world need to start at my
+	house in Austria! ;-)
+	Bugfix if at start no map is found.
+
+	* src/gpsdrive.c, src/gpsdrive.spec, configure.in:
+	V0.24: bugfix for displays which have not 16 bit colordepth
+
+2001-09-20  Fritz Ganter  <ganter at grazforyou.at>
+
+	* ChangeLog: added radar warning
+
+	* src/gpsdrive.c, src/gpsdrive.spec, configure.in:
+	added Radar warning. If you store the radars as waypoints named R-XXXX where
+	XXXX can be a incremented number. You hear radar warning as voice message and
+	a red/black blinking Bearing pointer.
+
+2001-09-20  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c, src/gpsdrive.spec, configure.in:
+	added Radar warning. If you store the radars as waypoints named R-XXXX where
+	XXXX can be a incremented number. You hear radar warning as voice message and
+	a red/black blinking Bearing pointer.
+
+2001-09-18  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c, src/gpsdrive.spec, ChangeLog, README, configure.in:
+	v0.22
+
+	* src/gpsdrive.c:
+	If you click with the left mouse button on the map you are in "Display
+	mode" where a rectangle is the cursor and no position is shown. If you
+	zoom or select another map scale, this is done for the position of the
+	rectangle-cursor in the same manner as it would be your actual
+	position.
+
+	The middle mouse button switches back to normal mode. The same if you
+	select a target with the right mouse button.  Shift-left-mouse-button
+	and shift-right-mouse-button changes the map scale.
+
+	* src/gpsdrive.c: testnewmap is not o.k.
+
+	* src/gpsdrive.spec, configure.in: v0.21
+
+	* src/gpsdrive.c: v0.21 using double buffering to avoid flicker.
+
+	* src/gpsdrive.spec, configure.in: v0.20
+
+	* src/gpsdrive.c, src/speech_out.c: ..
+
+2001-09-18  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c:
+	If you click with the left mouse button on the map you are in "Display
+	mode" where a rectangle is the cursor and no position is shown. If you
+	zoom or select another map scale, this is done for the position of the
+	rectangle-cursor in the same manner as it would be your actual
+	position.
+
+	The middle mouse button switches back to normal mode. The same if you
+	select a target with the right mouse button.  Shift-left-mouse-button
+	and shift-right-mouse-button changes the map scale.
+
+	* src/gpsdrive.c: testnewmap is not o.k.
+
+	* src/gpsdrive.spec, configure.in: v0.21
+
+	* src/gpsdrive.c: v0.21 using double buffering to avoid flicker.
+
+	* src/gpsdrive.spec, configure.in: v0.20
+
+	* src/gpsdrive.c, src/speech_out.c: ..
+
+2001-09-17  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c: changed speech text
+
+	* src/gpsdrive.spec: strips the binary
+
+	* src/gpsdrive.c, src/speech_out.c: added speech output of bearing
+
+2001-09-16  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c, src/gpsdrive.h, src/gpsdrive.spec, src/speech_out.c, README, configure.in:
+	speech output is working
+
+	* src/Makefile.am, src/gpsdrive.c, src/gpsdrive.h, src/speech_out.c:
+	...
+
+	* src/Makefile.am, src/gpsdrive.c, src/gpsdrive.h, src/speech_out.c:
+	added gpsdrive.h for global variables
+
+	* src/speech_out.c: start speech output
+
+	* src/gpsdrive.c: now we work on speech output
+
+2001-09-09  Fritz Ganter  <ganter at grazforyou.at>
+
+	* ChangeLog: v0.18
+
+	* src/gpsdrive.c, src/gpsdrive.spec, configure.in:
+	v0.18 added defines to make it possible to define smaller screen sizes
+	this is the way to porting for iPaq
+
+	* src/viz_system.cpp: changed back to ttyS0
+
+	* src/gpsdrive.c:
+	numbers changed to SCREEN_X and SCREEN_Y, but doesn't work yet
+
+	* src/gpsdrive.c:
+	beginning rewrite source to set screenwidth and height as define
+
+	* src/gpsdrive.c, src/gpsdrive.spec, src/viz_system.cpp, configure.in:
+	v0.17
+
+2001-09-09  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c, src/gpsdrive.spec, configure.in:
+	v0.18 added defines to make it possible to define smaller screen sizes
+	this is the way to porting for iPaq
+
+	* src/viz_system.cpp: changed back to ttyS0
+
+	* src/gpsdrive.c:
+	numbers changed to SCREEN_X and SCREEN_Y, but doesn't work yet
+
+	* src/gpsdrive.c:
+	beginning rewrite source to set screenwidth and height as define
+
+	* src/gpsdrive.c, src/gpsdrive.spec, src/viz_system.cpp, configure.in:
+	v0.17
+
+2001-09-08  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c: added + sign as marker for the selected target
+
+	* src/gpsdrive.c: added tooltips
+
+2001-09-06  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.spec, configure.in:
+	v0.16 target is selectable with right mouse click on the map
+
+	* src/gpsdrive.c:
+	added: click with right mouse button on map sets the target waypoint
+
+	* src/gpsdrive.c: changed strings
+
+	* src/gpsdrive.c: changed label order, now really v0.15
+
+	* src/gpsdrive.c: some string changes, really v0.15
+
+	* README: some comments
+
+	* src/gpsdrive.spec: removed ppro switch
+
+	* src/gpsdrive.c: display_status
+
+	* src/gpsdrive.spec, configure.in: v0.15
+
+	* src/gpsdrive.c: new fields layout
+
+2001-09-05  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c: scaler works
+
+	* src/gpsdrive.c: created scaler for map scale selection
+
+	* configure.in: ...
+
+	* configure.in:
+	remove -fast-math. This caused division/zero because it didn't allow
+	NaN, which I used.
+
+2001-09-04  Fritz Ganter  <ganter at grazforyou.at>
+
+	* README: added ppro optimizations
+
+	* src/gpsdrive.spec, configure.in:
+	v0.14 rpm is default pentium optimized
+
+	* src/gpsdrive.c: ...
+
+	* configure.in: added time to destination
+
+	* src/gpsdrive.c:
+	added time to destination. I didn't calculate with bearing.
+
+	* src/gpsdrive.c: moved progress bar into the download window
+	download window is only removed after download
+	added delete_event handler for download_cb
+
+	* src/wpget: added rm x.tmp
+
+	* src/gpsdrive.c: added progress bar for download status
+
+	* src/gpsdrive.c: restore cursor on end of download
+
+	* src/gpsdrive.c: added cool cursor for map position selection
+
+2001-09-03  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c: ...
+
+	* src/gpsdrive.c: translations
+
+	* src/gpsdrive.c, src/gpsdrive.spec, ChangeLog, configure.in:
+	public v0.13
+
+	* src/gpsdrive.c:
+	map is now clickable for selection of the download position.
+	yardstick is fixed for m/yards display.
+
+	* src/gpsdrive.c: missing translation
+
+	* src/gpsdrive.c, configure.in: added scale marker on map
+
+	* configure.in: added scale line
+
+	* src/gpsdrive.c: added scale line, it's not perfect yet
+
+2001-09-03  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c:
+	map is now clickable for selection of the download position.
+	yardstick is fixed for m/yards display.
+
+	* src/gpsdrive.c: missing translation
+
+	* src/gpsdrive.c, configure.in: added scale marker on map
+
+	* configure.in: added scale line
+
+	* src/gpsdrive.c: added scale line, it's not perfect yet
+
+2001-09-02  Fritz Ganter  <ganter at grazforyou.at>
+
+	* README: public 0.12
+
+	* src/gpsdrive.c, src/gpsdrive.spec, configure.in: near to v0.12
+
+	* src/gpsdrive.c: download of gif doesn't work correctly sometimes
+
+	* src/gpsdrive.c: ...
+
+2001-09-01  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c: download in a non-blocking timeout routine
+
+	* src/gpsdrive.c: working on downloading maps from internet
+
+2001-08-31  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.spec: added italian .mo file
+
+	* src/gpsdrive.spec, configure.in: version 0.11
+
+	* src/gpsdrive.c: rearranged calls of draw_marker.
+	fixed little bug in zoom-out, works now like expected.
+
+	* config.h: added
+
+	* src/Makefile.am, src/gpsdrive.spec, src/gpsfetchmap, README:
+	added gpsfetchmap and install all the scripts, also added in RPM
+
+	* src/gpsfetchmap: created
+
+	* src/gpsdrive.c:
+	fixed bug if you are West or South. Thanks to Jason Aras.
+
+	* src/gpsdrive.spec: v 0.10
+
+	* src/gpsdrive.c, configure.in: version 0.10
+
+2001-08-30  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c: better simulator
+
+	* src/gpsdrive.c:
+	more beautifully indent. Thanks to timecop at japan.co.jp
+
+2001-08-29  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.spec: added garble
+
+	* src/gpsdrive.c, src/gpsdrive.spec, src/gpsdrivegarble.cpp, configure.in:
+	version 0.9
+
+	* src/gpsdrive.c: code cleanup, translated to english
+
+	* src/gpsdrive.c:
+	main() code rewritten for better readability because japanese people
+	complained about bad style coding.
+	Also translate all variable and messages to english.
+
+	* src/splash.c: trying splashfile also in current dir
+
+	* src/Makefile.am, src/gpsdrivesplash.xpm, po/en.po, configure.in:
+	change programing lanuage to english
+
+	* src/gpsdrive.c: changed variable names to english
+
+	* src/splash.c: removed large xpm file, load png instead
+
+2001-08-27  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c: get groundspeed to zero if no movement
+
+	* po/en.po: v0.8
+
+	* src/gpsdrive.spec, configure.in: v0.8: bugfix locale
+
+	* po/en.po: bugfix locale
+
+	* src/gpsdrive.c: bugfix: . or , should be set depending on  LC_NUMERIC
+
+	* src/gpsdrive.spec: V0.7
+
+	* ChangeLog: added GARMIN mode
+
+	* src/gpsdrivegarble.cpp, src/gpsdrive.c, po/en.po: Version 0.7
+
+	* README: added comments about GARMIN mode.
+
+	* src/Makefile:  removed
+
+	* src/Makefile, po/en.po: ..
+
+	* src/Makefile.am: added .h files from garble sources
+
+	* src/Makefile.in: removed
+
+	* configure.in:
+	experimental added -f flag for direct GARMIN format. Don't start gpsd
+	in this mode!
+
+	* src/garmin_application.cpp, src/garmin_application.h, src/gpsdrive.c, src/gpsdrivegarble.cpp:
+	Version 0.7 added experimental -f flag for direct use of GARMIN format
+	no gpsd must be started!
+
+2001-08-26  Fritz Ganter  <ganter at grazforyou.at>
+
+	* configure.in: added garble files
+
+	* src/gpsdrivegarble.cpp: changed for gpsdrive
+
+	* src/viz_system.h, src/viz_types.h, src/Makefile, src/Makefile.am, src/Makefile.in, src/garble.cpp, src/garmin_application.cpp, src/garmin_application.h, src/garmin_command.h, src/garmin_error.h, src/garmin_link.cpp, src/garmin_link.h, src/garmin_packet.h, src/garmin_phys.h, src/garmin_serial.cpp, src/garmin_serial.h, src/garmin_serial_unix.cpp, src/garmin_serial_unix.h, src/garmin_types.h, src/garmin_util.cpp, src/garmin_util.h, src/gpsd_main.cpp, src/gpsdrive.c, src/gpsdrivegarble.cpp, src/map_koord.txt, src/viz_system.cpp:
+	added garble sources to included in gpsdrive
+
+2001-08-27  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrivegarble.cpp, src/gpsdrive.c, po/en.po: Version 0.7
+
+	* README: added comments about GARMIN mode.
+
+	* src/Makefile:  removed
+
+	* src/Makefile, po/en.po: ..
+
+	* src/Makefile.am: added .h files from garble sources
+
+	* src/Makefile.in: removed
+
+	* configure.in:
+	experimental added -f flag for direct GARMIN format. Don't start gpsd
+	in this mode!
+
+	* src/garmin_application.cpp, src/garmin_application.h, src/gpsdrive.c, src/gpsdrivegarble.cpp:
+	Version 0.7 added experimental -f flag for direct use of GARMIN format
+	no gpsd must be started!
+
+2001-08-26  Fritz Ganter  <ganter at grazforyou.at>
+
+	* configure.in: added garble files
+
+	* src/gpsdrivegarble.cpp: changed for gpsdrive
+
+	* src/viz_system.h, src/viz_types.h, src/Makefile, src/Makefile.am, src/Makefile.in, src/garble.cpp, src/garmin_application.cpp, src/garmin_application.h, src/garmin_command.h, src/garmin_error.h, src/garmin_link.cpp, src/garmin_link.h, src/garmin_packet.h, src/garmin_phys.h, src/garmin_serial.cpp, src/garmin_serial.h, src/garmin_serial_unix.cpp, src/garmin_serial_unix.h, src/garmin_types.h, src/garmin_util.cpp, src/garmin_util.h, src/gpsd_main.cpp, src/gpsdrive.c, src/gpsdrivegarble.cpp, src/map_koord.txt, src/viz_system.cpp:
+	added garble sources to included in gpsdrive
+
+	* README, po/en.po: ..
+
+	* README: comments about simulator
+
+	* src/gpsdrive.c: indent
+
+	* src/gpsdrive.c: "distance to" frame label shows target name
+
+	* po/en.po: ,,
+
+	* po/de.gmo, po/en.po: removed
+
+	* po/en.po: Version 0.6
+
+	* src/gpsdrive.c: changed usage, still v0.6
+
+	* src/gpsdrive.spec, configure.in, src/gpsdrive.c: Version 0.6
+
+	* src/gpsdrive.c: added big zoom field, set refresh rate to 500ms
+
+	* src/Makefile.am: added wpget
+
+	* src/gpsdrive.c, src/splash.c: indent
+
+	* src/gpsdrive.c: added splash(), coooool!
+
+	* src/splash.c: works fine
+
+	* src/splash.c, src/gpsdrivesplash.xpm: added splash.c
+
+	* src/gpsdrivesplash.png: added splash logo
+
+	* README: added simulator comments
+
+2001-08-25  Fritz Ganter  <ganter at grazforyou.at>
+
+	* po/en.po: v0.5
+
+	* README: *** empty log message ***
+
+	* src/gpsdrive.spec: added french
+
+	* po/en.po, src/gpsdrive.spec: v0.5
+
+	* src/gpsdrive.c, ChangeLog: *** empty log message ***
+
+	* configure.in, src/wpget, po/en.po, src/gpsdrive.c: pre v0.5
+
+	* README: added comments about fonts and wpget
+
+	* src/gpsdrive.c: added frames for fields
+
+2001-08-25  Fritz Ganter  <ganter at grazforyou.at>
+
+	* configure.in, src/wpget, po/en.po, src/gpsdrive.c: pre v0.5
+
+	* README: added comments about fonts and wpget
+
+	* src/gpsdrive.c: added frames for fields
+
+2001-08-24  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c: simulator mode: pointer moves to selected destination
+
+	* src/gpsdrive.c: working on satellites
+
+	* src/gpsdrive.c: course pointer is something ugly
+
+	* src/gpsdrive.c:
+	corrected angel values, 0° is on top (north) and angel is counting clockwise
+
+2001-08-23  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.spec: version 0.4
+
+	* configure.in: .
+
+	* src/gpsdrive.c: added pointer to destination
+
+2001-08-22  Fritz Ganter  <ganter at grazforyou.at>
+
+	* README: added waypoints
+
+	* src/gpsdrive.c: changes to way.txt handling
+
+	* ChangeLog: .
+
+	* ChangeLog, src/gpsdrive.c: version 0.4 for public
+
+	* src/wpcvt, po/en.po: distance measurment working fine
+
+	* src/gpsdrive.c: distance measurment adjusted
+
+2001-08-21  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/Makefile.am: added wpcvt
+
+	* configure.in: version 0.4
+
+	* po/en.po: .
+
+	* configure.in: *** empty log message ***
+
+	* src/gpsdrive.c: destination selection added
+
+2001-08-22  Fritz Ganter  <ganter at grazforyou.at>
+
+	* ChangeLog, src/gpsdrive.c: version 0.4 for public
+
+	* src/wpcvt, po/en.po: distance measurment working fine
+
+	* src/gpsdrive.c: distance measurment adjusted
+
+2001-08-21  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/Makefile.am: added wpcvt
+
+	* configure.in: version 0.4
+
+	* po/en.po: .
+
+	* configure.in: *** empty log message ***
+
+	* src/gpsdrive.c: destination selection added
+
+2001-08-22  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/wpcvt, po/en.po: distance measurment working fine
+
+	* src/gpsdrive.c: distance measurment adjusted
+
+2001-08-21  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/Makefile.am: added wpcvt
+
+	* configure.in: version 0.4
+
+	* po/en.po: .
+
+	* configure.in: *** empty log message ***
+
+	* src/gpsdrive.c: destination selection added
+
+2001-08-20  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.spec: x
+
+	* po/en.gmo, po/en.po, configure.in: *** empty log message ***
+
+	* README: added gnu stuff
+
+	* ChangeLog: *** empty log message ***
+
+	* src/gpsdrive.c:
+	little bug in zoom out found, xoff and yoff was not updated.
+
+2001-08-20  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.c:
+	little bug in zoom out found, xoff and yoff was not updated.
+
+2001-08-19  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.spec: added gpsd
+
+	* src/Makefile.am: removed map file
+
+	* src/gpsdrive.c, po/en.gmo, po/en.po, README:
+	Version 0.3 ready for public
+
+	* configure.in: changed to version 0.3
+
+	* src/gpsdrive.c: some cleanups
+
+	* src/gpsdrive.c: fixed offset=0 when new map loaded.
+
+	* po/en.gmo, po/en.po: .
+
+	* po/en.gmo, po/en.po: seems all to work, make a testdrive now.
+
+	* src/gpsdrive.c: found this little bug (x instead of y in line 469).
+	Am I too old for programming?
+
+	* src/Makefile.am, po/en.gmo, po/en.po, README: nearly working
+
+	* src/gpsdrive.c: there is only a big bug in the y direction.
+
+	* ChangeLog: *** empty log message ***
+
+	* src/gpsdrive.spec: addes .mo files
+
+	* configure.in: removed profiling
+
+	* configure.in: added spanish
+
+	* po/en.gmo, po/en.po, po/st.gmo: removed st.gmo
+
+	* src/gpsdrive.c: working hard on zooming...
+
+2001-08-19  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/gpsdrive.spec: addes .mo files
+
+	* configure.in: removed profiling
+
+	* configure.in: added spanish
+
+	* po/en.gmo, po/en.po, po/st.gmo: removed st.gmo
+
+	* src/gpsdrive.c: working hard on zooming...
+
+2001-08-18  Fritz Ganter  <ganter at grazforyou.at>
+
+	* configure.in: switch on profiling
+
+	* src/gpsdrive.c: working on zooming
+
+	* src/gpsdrive.c: added command line options
+
+	* ChangeLog: map switching works
+
+	* src/gpsdrive.c:
+	map switching works (theroretical, I need a testdrive, now at 6.00am localtime)
+
+	* src/gpsdrive.c:
+	"big" image is working, wackel() simulates moving of map.
+
+2001-08-16  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/Makefile.am: removed erde.png
+
+	* po/en.po, po/en.gmo:  position on map is working
+
+	* src/gpsdrive.c:
+	displaying position on map is working and tested through test drive ;-)
+
+	* src/gpsdrive.c: should work
+
+2001-08-15  Fritz Ganter  <ganter at grazforyou.at>
+
+	* ChangeLog, configure.in: Version 0.2
+
+	* configure.in, src/gpsdrive.c: new version
+
+2001-08-16  Fritz Ganter  <ganter at grazforyou.at>
+
+	* po/en.po, po/en.gmo:  position on map is working
+
+	* src/gpsdrive.c:
+	displaying position on map is working and tested through test drive ;-)
+
+	* src/gpsdrive.c: should work
+
+2001-08-15  Fritz Ganter  <ganter at grazforyou.at>
+
+	* ChangeLog, configure.in: Version 0.2
+
+	* configure.in, src/gpsdrive.c: new version
+
+	* src/gpsdrive.c: data conversion for statusline works
+
+	* src/gpsdrive.c, src/Makefile.am:
+	get GPS data and display in statusbar is working
+
+2001-08-15  Fritz Ganter  <ganter at grazforyou.at>
+
+	* configure.in: Version 0.2
+
+	* configure.in, src/gpsdrive.c: new version
+
+	* src/gpsdrive.c: data conversion for statusline works
+
+	* src/gpsdrive.c, src/Makefile.am:
+	get GPS data and display in statusbar is working
+
+2001-08-14  Fritz Ganter  <ganter at grazforyou.at>
+
+	* src/Makefile.am, src/stamp-h.in: .
+
+	* src/gpsdrive.c, po/en.gmo, po/en.po: first version running
+
+	* src/Makefile.in, Makefile.in, aclocal.m4, configure: .
+
+	* ABOUT-NLS, AUTHORS, COPYING, ChangeLog, INSTALL, Makefile.am, Makefile.in, NEWS, README, acconfig.h, aclocal.m4, configure, configure.in, install-sh, intl/ChangeLog, intl/Makefile.in, intl/VERSION, intl/bindtextdom.c, intl/cat-compat.c, intl/dcgettext.c, intl/dgettext.c, intl/explodename.c, intl/finddomain.c, intl/gettext.c, intl/gettext.h, intl/gettextP.h, intl/hash-string.h, intl/intl-compat.c, intl/l10nflist.c, intl/libgettext.h, intl/linux-msg.sed, intl/loadinfo.h, intl/loadmsgcat.c, intl/localealias.c, intl/po2tbl.sed.in, intl/textdomain.c, intl/xopen-msg.sed, missing, mkinstalldirs, po/ChangeLog, po/Makefile.in.in, po/POTFILES.in, po/de.gmo, po/en.gmo, po/en.po, po/st.gmo, src/Makefile.am, src/Makefile.in, src/config.h.in, src/gpsdrive.c, src/gpsdrive.spec, src/stamp-h.in:
+	New file.
+
+	* ABOUT-NLS, AUTHORS, COPYING, ChangeLog, INSTALL, Makefile.am, Makefile.in, NEWS, README, acconfig.h, aclocal.m4, configure, configure.in, install-sh, intl/ChangeLog, intl/Makefile.in, intl/VERSION, intl/bindtextdom.c, intl/cat-compat.c, intl/dcgettext.c, intl/dgettext.c, intl/explodename.c, intl/finddomain.c, intl/gettext.c, intl/gettext.h, intl/gettextP.h, intl/hash-string.h, intl/intl-compat.c, intl/l10nflist.c, intl/libgettext.h, intl/linux-msg.sed, intl/loadinfo.h, intl/loadmsgcat.c, intl/localealias.c, intl/po2tbl.sed.in, intl/textdomain.c, intl/xopen-msg.sed, missing, mkinstalldirs, po/ChangeLog, po/Makefile.in.in, po/POTFILES.in, po/de.gmo, po/en.gmo, po/en.po, po/st.gmo, src/Makefile.am, src/Makefile.in, src/config.h.in, src/gpsdrive.c, src/gpsdrive.spec, src/stamp-h.in:
+	gpsdrive started
+
+

Added: packages/gpsdrive/branches/etch/FAQ.gpsdrive
===================================================================
--- packages/gpsdrive/branches/etch/FAQ.gpsdrive	                        (rev 0)
+++ packages/gpsdrive/branches/etch/FAQ.gpsdrive	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,152 @@
+This is the GpsDrive FAQ.
+This file is maintained by Fritz Ganter.
+
+Q: Why is this file so short?
+A: I'm still working on it.
+
+Q: GpsDrive 2.x: After compiling Gpsdrive from source, I have the
+   problem that GpsDrive will not display the map when it's running.
+   All of the graphics in the map area are blank. 
+A: Compile with gcc 3.x, this bug is know at least with debian and
+   slackware.
+
+Q: GpsDrive shows "Not enough satellites in view" in the statusbar and don't
+   display my position.
+A: You need at least 3 satellites in view to get a valid position. It may also
+   take some minutes to get a valid position. You have to be outside,
+   GPS doesn't work inside the house. Trees, houses or other barriers 
+   can prevent your GPS receiver getting a valid position.
+   Some GPS receivers have a "Simulation mode" which sends position 
+   signals, but with a "invalid position" flag. GpsDrive won't display
+   a position if this "invalid position" flag is set. To override this
+   (do it only for testing!!!) you can call GpsDrive with the 
+   "-F" command line parameter.
+   
+Q: I have a USB GPS receiver, it works fine with GpsDrive but if I
+   leave the program, Linux crashes.
+A: This is a bug of the "Prolific PL2303 USB to serial adaptor driver"
+   which is used. The crash happens if the serial device is
+   closed. This bug is kernel >=2.4.19
+
+   As workaround start gpsd by hand with the -K option i.e.:
+   gpsd -K -p /dev/ttyUSB0
+
+   Make sure that you DON'T use "direct serial connection", you can
+   this switch of with the command line option "-n" or in the settings
+   menu.
+
+   Another, and better, solution is to use a kernel 2.6.x where this
+   bug is fixed, or 2.4.18 where it doesn't appear.
+
+Q: Why is there no street navigation which gives turn by turn
+   directions?
+
+A: Turn by turn directions are not possible with GpsDrive at the present
+   because no opensource data is available which represents the street
+   coordinates in a form usable for that purpose.  GpsDrive currently
+   works with bitmap images rather than vector data.
+
+   Anyone interested in turn by turn directions should research free
+   vector data which is published in an open format. The data must
+   include street name, city name and latitude/longitude coordinates
+   of the street lines.
+   (provided by Darrick Hartman)
+
+Q: What is GpsDrive?
+A: GpsDrive is an open source navigation system. It displays your current
+   position provided by an NMEA capable GPS receiver on a zoomable map.
+
+Q: How do I install GpsDrive on a Linux box?
+A: I recommend to use the source tarball. Download it from any of the mirrors
+   (http://gpsdrive.spoiledmeat.net/ is the fastest one in Europe). Unpack
+   the tarball with `tar xvzf gpsdrive-X.XX.tar.gz` where X.XX is the version
+   number. Now change into the directory gpsdrive-X.XX and run `./configure`.
+   Some people (including me, Sven) don't like the Garmin protocol. It can
+   be easily disabled with the option `--disable-garmin`. Now run `make`.
+   Depending on your CPU power this will take something between 4 seconds and
+   3 minutes. An Intel Celeron 1000 takes approximately 50 seconds to have
+   the version 1.28pre1 compiled. Now do a `su`, enter your root password and
+   continue with a final `make install`.
+
+Q: I am running FreeBSD. Can I use GpsDrive too?
+A: Yes. See the file README.FreeBSD for further information.
+
+Q: I'm trying to run GpsDrive on iPAQ, but I don't have /dev/ttyS0.
+A: You may want to use /dev/tts/0. When using gpsd, you will have to change
+   some parameters in /etc/gpsd.conf. Use -p /dev/tts/0 and -s4800.
+
+Q: I'm too lazy to get out of my bed, how can I test with my GARMIN GPS III?
+A: Your GARMIN has a built in simulator. Start it on the "satellite screen",
+   then go to setup and enter a speed in the simulator menu. Then
+   "goto" a stored waypoint and look how fine GpsDrive works. Don't forget 
+   to download your maps first.
+
+Q: How can I download maps?
+A: There's a "Download map" button. After pressing it, a new window will
+   appear. 
+
+Q: Can I download multiple maps covering a larger area?
+A: There is a script called "gpsfetchmap.pl" provided. Use the "-h" option
+   to get a help screen.
+
+Q: Can I use own maps?
+A: Yes. Of course you can use your own (self drawn, scanned...) maps. The
+   maps must be gif, jpeg, png or other common file formats (the format
+   must be recognized by the gdk-pixbuf library).  The lat/long coordinates
+   you write into the "map_koord.txt" file must be the center of the map.
+   The map must have a size of 1280x1024 pixels! Important! The maps must be
+   named map_* for streetmaps and top_* for topographical maps. If not,
+   GpsDrive won't display the maps. GpsDrive comes with an import assistant.
+   Simply press the `import` button and follow the instructions.
+
+Q: Which GPS receivers work with GpsDrive?
+A: Any receiver that can pump out NMEA data on a serial port or
+   USB should work. Verified receivers are listed in the file
+   GPS-receivers.
+
+Q: Which receiver is the best one?
+A: This is a religious question, just like the one for the best editor or mail
+   client (which is vi and mutt).
+   Fritz: No, off course its emacs and evolution.
+   
+Q: How can I use the Holux GM-200 USB with GpsDrive?
+A: This device has the Prolific PL-2303 chip in it for the USB => Serial
+   conversion.  The USB => Serial "pl2303.c" driver seems to work pretty
+   well!
+   
+   Quick Start:
+
+   Build GPSDrive (Requires GTK 2)
+   Build new kernel (or module) using "USB Prolific 2303 Single Port Serial
+   Driver (EXPERIMENTAL)" Load the new kernel || module
+   Do: `mknod /dev/ttyUSB0 c 180 0` (If it doesn't already exist)
+   Do: `chmod 666 /dev/ttyUSB0`
+   Do: `gpsd -p /dev/ttyUSB0`
+   Do: `gpsdrive`
+   (provided by Todd E. Johnson)
+   Hint: You want to use a kernel >= 2.4.18. ;)
+
+
+Q: Why is such funny english used in gpsdrive?
+A: Fritz is from Austria and speaks the same kind of "english" as Arnold
+   Schwarzenegger.
+
+Q: Can I use GpsDrive without a GPS receiver?
+A: Yes.  You might want to do this when you have a fast internet connection
+   for downloading maps etc.  Also, you can use it to review stored journey
+   tracks (see below).
+
+Q: Does GpsDrive handle 'tracks' saved in my GPS receiver?
+A: Yes.  You should save the tracks in the .gpsdrive directory (using
+   something like 'garble' or 'gpspoint')  - then you can load them into
+   GpsDrive from the GUI.
+
+Q: I know that we aren't supposed to use GpsDrive 'for navigaton purposes' -
+   but is it any use to (student) aviators?
+A: Certainly - pack your GPS unit in your flight bag (turned on of course!),
+   then download the tracks into GpsDrive when you get home.  It's a great way
+   to see exactly how good your navigational skills are - or maybe where you
+   busted airspace!  Flying schools could use this to analyse students' solo
+   navigational trips.
+
+   

Added: packages/gpsdrive/branches/etch/FAQ.gpsdrive.fr
===================================================================
--- packages/gpsdrive/branches/etch/FAQ.gpsdrive.fr	                        (rev 0)
+++ packages/gpsdrive/branches/etch/FAQ.gpsdrive.fr	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,125 @@
+Ceci est la FAQ de GpsDrive.
+Ce fichier est maintenu par Sven Fichtner, traduit en français par Jacky Francois.
+
+Q: Pourquoi cette FAQ est-elle si courte?
+R: Parce que je suis encore en train de l'écrire.
+
+Q: Pourquoi GpsDrive ne me guide-t-il pas en m'indiquant où tourner?
+R: Ce n'est pas possible pour le moment car il n'existe pas de plans vectoriels
+   opensource, c'est-à-dire des plans contenant les coordonnées des rues.
+   
+   Si vous connaissez des plans vectoriels opensource faites-le savoir. Ces plans
+   doivent contenir le nom de l'agglomération, le nom des rues ainsi que leurs
+   coordonnées géographiques.
+
+Q: Qu'est-ce que GpsDrive?
+R: GpsDrive est un prgramme libre de navigation. Il affiche votre
+   position fournie par un récepteur GPS NMEA sur une carte zoomable.
+
+Q: Comment puis-je installer GpsDrive sous Linux?
+R: Je vous recommande de l'installer à partir des sources. Téléchargez-les sur 
+   n'importe quel    miroir (http://gpsdrive.spoiledmeat.net/ est le plus
+   rapide en Europe). 
+   Décompressez l'archive en tapant `tar xvzf gpsdrive-X.XX.tar.gz` où
+   X.XX est le numéro de version. Rendez vous maintenant dans le
+   répertoire gpsdrive-X.XX et lancez `./configure`. Certaines personnes 
+   (dont moi, Sven ) n'apprécient pas le protocole Garmin. Il peut
+   facilement être désactivé avec l'option `--disable-garmin`. Lancez
+   maintenant `make`. En fonction de la puissance de votre CPU la
+   compilation prendra entre 4 secondes et 3 minutes. Un Celeron 1000
+   d'Intel prendra approximativement 50 secondes pour compiler la version 
+   1.28pre1. Vous pouvez à présent taper `su`, entrer votre mot de passe
+   root et terminer la procédure par `make install`. 
+
+Q: J'utilise FreeBSD. Est-ce que je peux y utiliser Gpsdrive?
+R: Oui. Consultez le fichier README.FreeBSD pour de plus amples informations.
+
+Q: Je tente de faire tourner GpsDrive sur un iPAQ mais je n'ai pas /dev/ttyS0.
+R: Utiliser /dev/tts/0 peut résoudre votre problème. Avec gpsd vous
+   devez modifier certains paramètres dans /etc/gpsd.conf. Utilisez -p
+   /dev/tts/0 et -s4800.
+
+Q: Je suis trop faignant pour sortir de mon lit, comment tester mon
+   GARMIN GPS III?
+R: Votre GARMIN a un simulateur intégré. Démarrez-le sur "l'écran
+   satellite", puis allez dans les paramètres et entrez une vitesse dans
+   le menu simulation. Puis allez (goto) un waypoint en mémoire et
+   constatez comme GpsDrive marche bien. N'oubliez pas de télécharger vos
+   cartes au préalable.
+
+Q: Comment puis-je télécharger des cartes?
+A: Il y a un bouton "Télécharger". Appuyez sur ce bouton pour accéder
+   à la fenêtre dédiée. 
+
+Q: Est-ce que je peux télécharger plusieurs cartes pour couvrir une
+   zone plus grande?
+A: Le script "gpsfetchmap.pl" est fourni. Avec l'option "-h" un écran
+   d'aide s'affiche.
+
+Q: Est-ce que je peux utiliser mes propres cartes?
+A: Oui, vous pouvez bien évidemment utiliser vos propres cartes (
+   faites par vous-mêmes, scannées... ). Les cartes doivent être au
+   format gif, jpeg, png ou tout autre format reconnu par la librairie 
+   gdk-pixbuf. Les latitude et longitude que vous entrez dans le
+   fichier "map_koord.txt" doivent être celles du centre de la
+   carte. La carte doit être au format 1280x1024! Important! Les
+   cartes doivent avoir pour noms map_* pour les plans et top_* pour
+   les cartes topographiques. Dans le cas contraire GpsDrive
+   n'affichera pas les cartes. GpsDrive dispose d'un assistant
+   d'importation. Appuyez simplement sur le bouton 'Importer' et
+   suivez les instructions.
+
+Q: Quels sont les récepteurs GPS qui fonctionnent avec GpsDrive?
+A: n'importe quel récepteur capable d'envoyer des informations NMEA
+   sur port serie ou USB devrait fonctionner. Le fichier GPS-receivers
+   contient les récepteurs qui ont été testés.
+
+Q: Quel est le meilleur récepteur?
+A: C'est le genre de question qui déchaine les passions, comme celle du meilleur 
+   éditeur ou client mail ( qui sont respectivement vi et mutt ).
+   Fritz: Bien sûr que non, c'est Emacs et Evolution.
+
+Q: Est-ce que je peux utiliser le Holux GM-200 USB avec GpsDrive?
+A: Ce périphérique intègre le composant Prolific PL-2303 pour
+   l'adaptation USB => Série. Le driver USB => Serial "pl2303.c"
+   semble bien fonctionner!
+
+   Installation rapide:
+
+   Compilez GpsDrive (nécessite GTK 2)
+   Compilez un nouveau noyau (ou module) intégrant "USB Prolific 2303 
+   Single Port Serial Driver (EXPERIMENTAL)" 
+   Chargez le nouveau noyau/module.
+   Tapez: `mknod /dev/ttyUSB0 c 180 0` (si ce fichier n'est pas déjà présent)
+   Tapez: `chmod 666 /dev/ttyUSB0`
+   Tapez: `gpsd -serial /dev/ttyUSB0`
+   Tapez: `gpsdrive`
+   (procédure de Todd E. Johnson)
+
+Q: Pourquoi la version anglaise est-elle si étrange?
+R: Parce que Fritz est Autrichien et parle un anglais à la Schwarzenegger.
+
+Q: Est-ce que je peux utiliser GpsDrive sans récepteur GPS?
+R: Oui. Ceci peut s'avérer utile pour télécharger des cartes lorsque vous disposez
+   d'une connexion internet rapide par exemple, ou pour consulter une route que vous
+   avez sauvegarder ( voir plus bas ).
+
+Q: GpsDrive est-il compatible avec les routes sauvegardées dans mon récepteur GPS?
+R: Oui. Vous devez placer les fichiers contenant les routes dans votre répertoire 
+   de configuration de gpsdrive (~/.gpsdrive), en utilisant 'garble' ou 'gpspoint'.
+   Vous pourrez alors les afficher dans le programme.
+
+Q: Je sais que GpsDrive n'est pas concu pour la navigation, mais peut-il être utile
+   pour des ( apprentis ) aviateurs?
+R: Bien sûr. Pendant le vol, enregistrez vos routes avec votre GPS. Après le vol,
+   téléchargez ces routes dans GpsDrive. Ceci est un bon moyen d'évaluer vos
+   compétances, ou vos écrats par rapport à la théorie! Les écoles de pilotage peuvent
+   avoir recours à cette méthode pour analyser les vols en solitaire de leurs 
+   élèves.
+
+
+
+
+
+
+

Added: packages/gpsdrive/branches/etch/GPS-receivers
===================================================================
--- packages/gpsdrive/branches/etch/GPS-receivers	                        (rev 0)
+++ packages/gpsdrive/branches/etch/GPS-receivers	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,25 @@
+Those GPS receivers are known to work with gpsdrive:
+
+Magellan 310, 315, 320
+Garmin GPS III
+Garmin etrex
+GPS 45
+Crux II GPS PCMCIA card
+Holux GM-200 serial version
+Holux GM-200 USB (needs USB to serial support in kernel)
+Holux GM-210 USB (needs USB to serial support in kernel)
+Garmin eMap
+Garmin GPSMAP 295
+Garmin GNS 530
+Garmin GPS 12MAP
+EAGLE Expedition II
+DeLorme Earthmate
+Rayming TripNav, TN-200
+Haicom HI-203E
+GM-307 USB-Mouse
+Magellan Meridian Gold (works only with NMEA V2.1 GSA setting)
+NAVILock GPS Receiver (http://www.navilock.de)
+Haicom GPS HI204e
+Magellan Nav 6500 
+BendixKing KLX 100
+Motorola i58sr Cellular Phone w/built-in NMEA-compatible GPS

Added: packages/gpsdrive/branches/etch/INSTALL
===================================================================
--- packages/gpsdrive/branches/etch/INSTALL	                        (rev 0)
+++ packages/gpsdrive/branches/etch/INSTALL	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,182 @@
+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.

Added: packages/gpsdrive/branches/etch/LEEME
===================================================================
--- packages/gpsdrive/branches/etch/LEEME	                        (rev 0)
+++ packages/gpsdrive/branches/etch/LEEME	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,344 @@
+GPSDRIVE (c) 2001 Fritz Ganter <ganter at ganter.at>
+
+-------------------------------------------------
+Sitio web: www.gpsdrive.de
+Advertencia: Por favor, no lo use para navegar. 
+
+    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
+    *********************************************************************
+
+======================================================================          
+
+Por favor, lee la página de manual de gpsdrive. para ello, instala el
+programa y escribe 
+
+man gpsdrive
+
+en una ventana de terminal. Con Konqueror, de KDE también puedes verlo con 
+la URL:
+man:gpsdrive
+
+¡La mayoría de la información está ahora en la página de manual!                                        
+
+*************************************************
+
+Cómo instalar el programa:
+----------------------
+
+Desde el código fuente:
+
+Extráelo con tar -xvzf gpsdrive*tar.gz
+
+cd gpsdrive
+./configure --with-pentiumpro
+make
+
+Como root deberías hacer 
+
+make install
+
+Después de compilar e instalar (que es necesario para la
+internacionalización) lee la página de manual de gpsdrive, o inicia el
+programa si eres demasido vago como para leérte los manuales. ;-)
+
+También puedes descargar el archivo RPM e instalarlo mediante:
+
+rpm -Uvh gpsdrive*.rpm                                                          
+
+
+Uninstall:
+---------
+Si lo instalaste usando el código fuente en tarball:
+entra en el directorio de gpsdrive (no en el src), y entonces teclea
+
+make uninstall
+
+Si usaste el paquete RPM:
+
+rpm -e gpsdrive
+
+Usuarios de Comqaq iPaq:
+------------------------
+
+Es también recomendable usar el idioma
+xx, lo cual significa iniciar GpsDrive con:
+
+LANGUAGE=xx gpsdrive                                                            
+
+*************************************************
+
+Primer Uso:
+-----------
+
+Si no existe un directorio ".gpsdrive" en tu directorio home, GpsDrive
+lo creará por ti. E neste directorio se crea un archivo map_koord.txt que
+sirve para guardar la lista de mapas.                                              
+
+
+
+Iniciando el programa:
+----------------------
+
+Hay dos formas de comunicarse con el recptor GPS: modo NMEA y modo GARMIN. 
+
+El modo NMEA es el estándar de comunicación más usado. El modo GARMIN está 
+sólo disponible en algunos receptores GARMIN.
+
+El modo GARMIN es más rápido (varios paquetes de datos por segundo, en el modo 
+NMEA 1 paquete cada 2 segundos), pero los cálculos que realiza el programa 
+quizás no sean tan precisos. Tampoco se muestra el nivel de señal de los 
+satélites (este dato no está soportado por el protocolo GARMIN). 
+
+Si quieres usar el modo GARMIN, asegúrate de no tener "gpsd" corriendo. En
+este caso el receptor GARMIN debe ser puesto en el modo de transferencia:
+"GARMIN host".
+
+En este modo, el programa sólo, recibe datos sobre latitud/longitud, la
+velocidad y la dirección la calcula él mismo.
+
+Después de compilar e instalar (que es requerido para la
+internacionalización) inicia el programa "gpsd" (que se proporciona con
+GpsDrive), si quieres usar el modo NMEA.
+
+gpsd es un demonio que lee datos NMEA del recptor GPS. Los ajustes
+/dev/ttyS0 y 4800 Baudios está precompilados.
+
+Hay otro gpsd de Remco Treffkorn que usa el puerto 2947. si inicias este
+gpsd, será encontrado automágicamente. Si quieres cambiar estos ajustes, por
+ejemplo al segundo puerto serie, inícialo con:
+
+gpsd -serial /dev/ttyS1 
+
+Cea un directorio ".gpsdrive" en tu directorio home. En este directorio
+colocarás primero tus archivos de mapas (ver má abajo).
+
+No olvides editar el archivo "map_koord.txt" en el directorio ~/.gpsdrive.
+Esto no es necesario si usas sólo mapas que descargas de Internet con
+GpsDrive o gpsfetchmap.
+
+Puedes bajar los mapas con el programa o bien con el script  "gpsfetchmap"
+
+Una vez que gpsd está corriendo puedes iniciar el progarma con 
+
+gpsdrive
+
+Para usar el modo GARMIN no debes iniciar gpsd.
+
+Si no tienes un enlace /dev/gps apuntando al puerto serie, o usas otro
+puerto que no sea ttyS0 inicia GpsDrive con
+
+./gpsdrive  -t /dev/ttyS1 
+
+para tu segundo puerto serie.
+
+Verás tu posición en el mapa y otros datos en la barra de estado. Puedes
+ampliar y reducir. Si te mueves fuera del mapa se muestra el siguiente, si
+hay alguno disponible, para tu posición.
+
+Si no tienes receptor GPS conectado:
+------------------------------------
+
+Hay implementado un simulador. Se utiliza automáticamente si no se detecta
+un GPS.
+
+Si has creado un archivo de waypoints y tienes los mapas adecuados, puedes
+hacer click en SELECCIONAR DESTINO. El marcador se moverá a este waypoint.
+
+Soy demasiado vago para salir de la cama, ¿cómo puedo probar mi GARMIN GPS III?
+-------------------------------------------------------------------------------
+
+Tu receptor GARMIN tiene un simulador interno. Inícialo en la "pantalla de
+satélltes", ve a la configuración e introduce una velocidad en el menú del
+simulador.  Entonces dirígete a un waypoint almacenado y comprueba lo bien
+que funciona GpsDrive.  No te olvides dedescargar los mapas primero.
+
+Control con el ratón:
+---------------------
+
+Si haces click con el botón izquierdo en el mapa en el "Modo Display", el cursor es 
+un rectángulo y no se muestra ninguna posición. Si amplías o seleccionas otra 
+escala para los mapas funcionará como si esta fuera tu posición real.
+
+Al botón central te devuelve al modo normal. Al igual que si seleccionas un destino 
+con el botón derecho del ratón.  Mayúsculas-botón izquierdo y Mayúsculas-botón 
+derecho cambia la escala del mapa.
+
+************************************************************************
+
+Cómo obtener tus propios mapas
+------------------------------
+
+Debe hacer un fichero llamado "map_koord.txt" en tu directorio ~/.gpsdrive . 
+Aquí hay un ejemplo:
+
+map_stmk.gif          47.08    15.45    300000
+map_austria.gif       48.0     14.0    1000000
+map_bruck-m-umgeb.gif 47.44    15.29    100000
+
+La primera columna es el nombre del archivo, después vienen la latitud, la
+longitud y la escala del mapa. LA escala 10000000 (1:10.000.000) es buena
+para Europe, y 100000 es para una ciudad como Viena.
+
+Para obtener un mapa debes ir a una URL lcomo esta:
+
+http://www.mapblast.com/gif?&CT=51.0:10.0:2500000&IC=&W=1280&H=1024&FAM=mblast&LB=
+
+Esta es la latitud -------------^^^^
+Esta es la longitud -----------------^^^^
+Esta es la escala -----------------------^^^^^^^^
+
+Toma la latitud, la longitud y la escala de la URL y ponlas en el archivo
+map_koord.txt junto con el nombre del archivo.
+
+GpsDrive selecciona el mapa con la mejor escala para tu posición. Así pues
+obtén mapas para, por ejemplo, Europa, Austria y Viena si quieres conducir
+hasta Viena.
+
+Es también importante dejar el tamaño de 1280x1024 puntos como en la URL
+de arriba.
+
+Para un uso fácil, proporciono un script llamado "gpsfetchmap" para
+obtener los mapas de internet y colocar la entrada correspondiente en el
+archivo map_koord.txt.
+
+Uso: 
+
+gpsfetchmap farchivo latitud longitud escala
+
+El nombre del archivo deberá tener extensión .gif.
+
+USO SENCILLO:
+
+Puedes hacer exactamente lo mismo usando el botón "Descargar mapa" en el
+programa.
+
+ATENCIÓN: Los mapas de Mapblast.com con una escala superior a 1:2 millones
+parecen tener otro sistema de proyección, GpsDrive muestra aquí una
+posición INCORRECTA.  ¿Alguien tiene información sobre esto?
+
+********************************************************
+¡Por favor lee la nota de copyright de www.mapblast.com!
+********************************************************
+
+Internacionalización
+--------------------
+
+Si instalaste el programa verás motrarse los mensajes en inglés, alemán,
+francés, italiano o español, si tu lenguaje está definido con LANG o
+LANGUAGE. LANGUAGE ignora el resto de ajustes. Llama a "locale" para ver
+los ajustes y llama "set" si LANG o LANGUAGE está definido. Para español
+pon:
+
+export LANGUAGE=es
+
+y entonces inicia gpsdrive en esa shell.
+
+Formatos de archivos:
+
+Las comas decimales en way.txt deben tener siempre un punto ('.'), en
+map_koord.txt están permitidos '.' or ','. Si descargas los mapas con el
+programa, GpsDrive escribe el archivo map_koord.txt de acuerdo al ajuste
+de LC_NUMERIC en esa consola.
+
+¿Puedo usar otros mapas?
+------------------------
+
+Puedes también usar tus propios mapas (dijudos, escaneados,...). Los mapas
+deben ser gif, jpeg, png o cualquier otro formato de archivo reconocido
+por la biblioteca gdk-pixbuf library.  Las coordenadas de latitud/longitud
+que escribes en el archivo "map_koord.txt" deben correspoder al centro del
+mapa. El mapa debe tener un tamaño de 1280x1024 pixels. Debes medir y
+calcular la escala tú mismo.
+
+Es importante que uses los nombres de archivo correctos. Deben comenzar con 
+"map_" para callejeros y con "top_" para topográficos.
+
+Importando waypoints:
+---------------------
+
+Debes crear un fichero "way.txt" en tu directorio ~/.gpsdrive parecido a este:
+
+DEFAULT  47.0792  15.4524
+KLGNFR   46.6315  14.3152
+MCDONA   47.0555  15.4488
+
+El waypoint llamado "DEFAULT" es el punto de inicio del programa,
+importante si comienzas en modo simulación. Así pues no todo el mundo
+necesita empezar en mi casa en Austria ;-) También sería correcto si el
+waypoint se llama DEFAUL porque mi GARMIN GPS III alamcena sólo 6
+caracteres para un waypoint.
+
+Las columnas se llaman etiqueta latitud longitud.
+
+Si el archivo no existe o no contiene datos válidos, no habrá botón "Ir a"
+disponible.
+
+Puedes usar el programa "garble" (incluido en el paquete) para leer tus
+waypoints del GPS Garmin (el modo de transferencia debe ser GARMIN aquí).
+
+La forma más sencilla de usar el script "wpget" que lo hace todo por ti.
+
+Asegúrate de tener "wpget", "wpcvt" y "garble" en tu path.
+
+Algunos comentarios sobre las fuentes: 
+--------------------------------------
+
+GpsDrive utiliza la fuente
+
+-monotype-arial-bold-r-normal-*-*-360-*-*-p-*-iso8859-15
+
+para las letras grandes. Si esta fuente no se encuentra, utilizará 
+
+-adobe-helvetica-bold-r-normal-*-*-240-*-*-p-*-iso8859-15
+
+que debería estar disponible en una instalación normal de XFree86.
+
+Si quieres cambiar la fuente, encuentra el define "FONT1" en el código
+fuente y sustitúye el nmbre de la fuente.
+
+Salida de voz:
+-------------
+
+Si quieres disponer de salida de voz debes instalar el software
+"festival". Mira en http://fife.speech.cs.cmu.edu/festival para
+informarte. Si tienes una instalación funcional de festival llámala como
+servidor con:
+
+festival --server
+
+Si inicias entonces GpsDrive, detectará el servidor en el puerto 1314 y 
+obtendrás algunas informaciones obre el estado mediante la voz. Dispondrás de 
+un botón (Mute) para detener la salida de voz.
+
+Hay una opción -l para cambiar el idioma de la voz de salida. Por el
+momento están disponibles inglés y alemán. GpsDrive no ajusta festival en
+el idioma adecuado, así pues debes hacerlo tú mismo. si deseas otro
+idioma, por favor, envíame las traducciones de los textos en gpsdrive.c y
+speech_out.c. Mira las cadenas que comienzan por "SayText".
+
+=======================================================================
+
+¡Se admiten sugerencias!
+
+¡Diviértete!
+
+Fritz Ganter <ganter at gpsdrive.de>
+
+http://www.gpsdrive.de
+
+Traducido por: Félix Martos <pakito at asinkecualo.org>
+Si observas algún error en la traducción, o en la expresión comunícamelo. 
+Gracias
+

Added: packages/gpsdrive/branches/etch/LISEZMOI
===================================================================
--- packages/gpsdrive/branches/etch/LISEZMOI	                        (rev 0)
+++ packages/gpsdrive/branches/etch/LISEZMOI	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,277 @@
+GPSDRIVE (c) 2001 Fritz Ganter <ganter at ganter.at>
+-------------------------------------------------
+
+Version francaise: Jacky Francois <jfrancois at free.fr>
+
+Site web: www.gpsdrive.de
+
+Avertissement: n'utilisez pas GpsDrive pour la navigation. 
+
+    Ce programme est un logiciel libre; vous pouvez le distribuer et/ou 
+    le modifier comme le prévoit la GNU General Public License publiée par
+    la Free Software Foundation; soit la version 2 de la licence, ou
+    (à votre convenance) toute version ultérieure. 
+    
+    Ce programme est distribué dans l'espoir qu'il sera utile, mais
+    SANS GARANTIE D'AUCUNE SORTE. Consultez la GNU General Public License
+    pour de plus amples renseignements. 
+    
+    Vous pouvez trouver la GPL en version française à cette adresse:
+    http://www.april.org/gnu/gpl_french.html
+    
+    *********************************************************************
+    
+    
+
+*******************************************************************
+Veuillez consulter la manpage de gpsdrive. Pour ce faire, installer
+le programme et tapez 
+
+man gpsdrive
+
+dans la fenêtre d'un terminal. Vous pouvez également entrer l'url
+suivante dans Konqueror:
+
+man:gpsdrive
+
+La manpage répond dorénavant à la plupart des questions que vous vous posez!
+
+Consultez également le Changelog à
+http://www.gpsdrive.de/Changelog.gpsdrive
+
+******************************************************************** 
+
+
+
+
+Comment installer le programme:
+----------------------
+
+Fichier Source:
+
+Extrayez-le en tapant tar -xvzf gpsdrive*tar.gz
+cd gpsdrive
+./configure 
+make
+
+Si vous n'avez pas besoin du support du protocole GARMIN (vous n'utilisez
+que le protocole NMEA) vous pouvez configurer GpsDrive en tapant:
+
+./configure --disable-garmin
+
+Vous pouvez également ajouter --with-pentiumpro, si votre CPU > PII.
+
+
+Sous le compte root tapez 
+make install
+
+pour installer le programme, le demon gpsd et les fichiers de localisation.
+
+Après la compilation et l'installation (nécessaire pour la localisation) prenez
+connaissance de la manpage de gpsdrive ou lancez le programme si vous êtes trop
+trop faignant pour lire les manuels. ;-)
+
+Vous pouvez également télécharger le RPM and l'installé:
+
+rpm -Uvh gpsdrive*.rpm
+
+Désinstallation:
+---------------
+
+Si vous avez installé avec un tarball:
+
+aller dans le répertoire de gpsdrive (pas le src) et tapez
+
+make uninstall
+
+Si vous avez utilisé le rpm:
+
+rpm -e gpsdrive
+
+
+S'il n'y a pas de répertoire ".gpsdrive" dans votre répertoire personnel,
+GpsDrive le crée pour vous. Un fichier map_koord.txt contenant la liste des
+cartes est créé dans ce répertoire. 
+
+Vous pouvez laisser le programme télécharger les cartes. Le script
+"gpsfetchmap" permet également de télécharger les cartes.
+
+
+Pour le mode GARMIN vous ne devez pas lancer gpsd.
+
+Si vous n'avez pas de lien /dev/gps pointant vers votre récepteur, où si vous
+utilisez un autre port que ttyS0 lancez
+GpsDrive en tapant
+
+./gpsdrive  -t /dev/ttyS1 
+
+pour votre second port série.
+
+Vous pouvez changer ce parmètre dans le menu "Paramètres".
+
+Cliquez sur le bouton "Lancer GPSD" pour lancer le demon gpsd pour le 
+support NMEA.
+
+Votre position est indiquée sur la carte et des infos dans la barre de statut.
+Vous pouvez faire des zooms avant et arrière. Si vous sortez de la carte la
+carte suivante est sélectionnée si l'une d'elles correspond à votre position.
+
+Au début vous devriez télécharger une carte avec le bouton "Télécharger".
+
+De l'aide est disponible en tapant "gpsdrive -h".
+
+Comqaq iPaq:
+-----------
+Gpsdrive détecte l'affichage réduit et utlise des menus de taille réduite.
+
+Il est également recommendé de lancer GpsDrive dans la langue xx en tapant:
+
+LANGUAGE=xx gpsdrive
+
+
+
+Si vous n'avez pas de récepteur GPS connecté:
+--------------------------------------------
+Un simulateur est incorporé. Il est automatiquement activé si aucun récepteur
+GPS n'est déctecté.
+
+Si vous avez créé un fichier de waypoints et disposez des cartes adéquates, vous
+pouvez cliquer sur "Choix destination" pour choisir un waypoint. Le pointeur va
+se déplacer jusqu'à ce waypoint. Vous pouvez créer une route dans de ce menu.
+
+
+Je suis trop faignant pour sortir de mon lit, comment tester mon GARMIN GPS III?
+-------------------------------------------------------------------------------
+
+Votre GARMIN à un simulateur intégré. Démarrez-le sur "l'écran satellite",
+puis allez dans les paramètres et entrer une vitesse dans le menu simulation.
+Puis allez (goto) un waypoint en mémoire et constatez comme GpsDrive marche bien.
+N'oubliez pas de télécharger vos cartes au préalable.
+
+
+
+************************************************************************
+
+Comment obtenir ses propres cartes?
+----------------------------------
+
+METHODE FACILE:
+Vous pouvez le faire avec le bouton "Télécharger" depuis le programme.
+ 
+Voici les fichiers dont vous devez disposer.
+
+Un fichier nommé "map_koord.txt" dans votre répertoire ~/.gpsdrive.
+Voici un exemple:
+
+map_stmk.gif          47.08    15.45    300000
+map_austria.gif       48.0     14.0    1000000
+map_bruck-m-umgeb.gif 47.44    15.29    100000
+
+Dans la première colone se trouvent les noms des fichiers cartes, puis viennent
+la latitude, la longitude et l'échelle de la carte. 10000000 est une bonne 
+échelle pour l'Europe, et 100000 convient pour une ville comme Vienne.
+
+GpsDrive sélectionne la carte avec l'échelle la plus petite possible pour votre
+position. Procurez vous donc par exemple une carte de l'Europe, de l'Autriche
+et de Vienne si vous voulez vous rendre à Vienne.
+
+
+Pour vous faciliter la tâche, j'inclus le script "gpsfetchmap" qui télécharge
+une carte sur Interner et modifie en conséquence le fichier map_koord.txt.
+Utilisation: 
+
+gpsfetchmap nom_de_la_carte latitude longitude échelle
+
+Le nom de la carte doit avoir l'extension .gif.
+
+ATTENTION: Les cartes de Mapblast.com dont l'échelle est supérieure à
+1:2 000 000 semblent utiliser un autre système de projection, GpsDrive affiche
+dans ce cas une position INCORRECTE.Quelqu'un a-t-il plus d'informations?
+
+***********************************************************
+Veuillez consulter les droits d'auteur de www.mapblast.com!
+***********************************************************
+
+Formats de fichier:
+
+le séparateur décimal dans way.txt doit toujours être un point ('.'), dans
+map_koord.txt '.' or ',' sont possibles. Si vous téléchargez des cartes depuis
+le programme, GpsDrive écrit dans map_koord.txt en respectant votre paramètre
+LC_NUMERIC
+
+Puis-je utiliser d'autres cartes?
+--------------------------------
+
+Vous pouvez également utiliser vos propres cartes ( dessinées, scannées... )
+Les cartes doivent toujours être au format gif, jpeg, png ou tout autre format
+pourvu qu'il soit reconnu par la librairie gdk-pixbuf. Les coordonnées,
+latitude et longitude, que vous entrez dans le fichier "map_koord.txt" doivent
+être celles du centre de la carte. La carte doit être au format 1280x1024!
+
+Important! Les cartes doivent dorénavant avoir pour nom map_* pour les plans de
+ville et top_* pour les cartes topographiques. Si ca n'est pas le cas gpsdrive
+n'affichera pas les cartes.
+
+Un "assistant d'importation" est intégré. Utilisez-le pour importer vos cartes.
+
+Importer des waypoints:
+----------------------
+
+La méthode la plus simple est d'utiliser le script "wpget" qui s'occupe de
+tout si vous utilisez un recepteur GARMIN.
+Vous pouvez utiliser le programme "garble" (inclu dans le package) pour
+extraire vos waypoints du GPS Garmin (Le mode transfer doit être GARMIN dans
+ca cas, alors que GpsDrive utlise le mode NMEA!).
+
+"wpget" est un script qui fait appel à "garble" de manière adéquate.
+
+Assurez vous d'avoir "wpget", "wpcvt" et "garble" dans votre path. C'est le
+cas, si vous avez installé le programme sous le compte root et si
+/usr/local/bin est dans votre path.
+
+Méthode manuelle:
+
+Vous pouvez créer un fichier "way.txt" dans votre répertoire ~/.gpsdrive dont
+le contenu est le suivant:
+
+DEFAULT  47.0792  15.4524
+KLGNFR   46.6315  14.3152
+MCDONA   47.0555  15.4488
+
+
+Les colonnes sont: label latitude longitude.
+
+Vous n'avez pas besoin de créer way.txt vous-mêmes, vous pouvez ajouter les
+waypoints dans GpsDrive avec la touche "x". Consulter également le menu d'aide.
+
+Commentaires sur les polices:
+----------------------------
+
+GpsDrive utilise la police 
+"-monotype-arial-bold-r-normal-*-*-360-*-*-p-*-iso8859-15"
+pour les gros caractères. Si cette police n'est pas trouvée, il utilise  
+"-adobe-helvetica-bold-r-normal-*-*-240-*-*-p-*-iso8859-15"
+qui est fournie avec XFree86.
+
+Si vous voulez changer de police, rechercher "FONT1" dans le code source et
+modifiez-le en conséquence.
+
+
+Liste de diffusion:
+
+L'adresse de la liste de diffusion est gpsdrive at warbase.selwerd.nl
+
+L'inscription se fait en envoyant un email contenant "subscribe gpsdrive" à
+majordomo at warbase.selwerd.nl
+
+
+=======================================================================
+
+Vos suggestions et raports de bug sont les bienvenus!
+
+
+Amusez-vous bien!
+
+Fritz Ganter <ganter at gpsdrive.de>
+http://www.gpsdrive.de
+

Added: packages/gpsdrive/branches/etch/LISEZMOI.FreeBSD
===================================================================
--- packages/gpsdrive/branches/etch/LISEZMOI.FreeBSD	                        (rev 0)
+++ packages/gpsdrive/branches/etch/LISEZMOI.FreeBSD	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,41 @@
+$Id: LISEZMOI.FreeBSD,v 1.1 2003/04/28 15:13:03 ganter Exp $
+Traduit en français par Jacky François <jfrancois at free.fr>
+
+                    INSTALLER GPSDRIVE SOUS FREEBSD
+
+
+La méthode la plus simple pour installer GpsDrive sous FreeBSD est d'utiliser
+le système de port de FreeBSD: rendez vous à l'adresse:
+http://www.freebsd.org/astro.html et sélectionnez 'gpsdrive'.
+
+
+Pour installer un package binaire vous pouvez utiliser la fonction de téléchargement
+automatique de pkg_add:
+
+$ su -             [devenez root]
+# pkg_add -r gpsdrive
+# exit             [redevenez simple utilisateur]
+
+
+Pour une installation à partir des sources assurez-vous d'avoir vos ports à jour [1]
+et procédez comme ceci:
+
+$ su -             [devenez root]
+# cd /usr/ports/astro/gpsdrive
+# make
+# make install
+# make clean
+# exit             [redevenez simple utilisateur]
+
+
+Amusez-vous bien!
+
+N'hésitez pas à me contacter si vous avez des questions à propos du port sous FreeBSD
+ou si vous désirez une version plus récente.
+
+Marco Molteni <molter at gufi.org>
+http://www.gufi.org/~molter/
+
+[1] http://www.freebsd.org/handbook/ports-using.html. Pour mettre à jour votre base
+    de ports utilisez CVSup comme indiqué sur ce site.
+    NdT: le handbook en français: http://www.freebsd-fr.org/doc/fr_FR.ISO8859-1/books/handbook
\ No newline at end of file

Added: packages/gpsdrive/branches/etch/LISEZMOI.SQL
===================================================================
--- packages/gpsdrive/branches/etch/LISEZMOI.SQL	                        (rev 0)
+++ packages/gpsdrive/branches/etch/LISEZMOI.SQL	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,117 @@
+Version pour gpsdrive-1.31
+Traduit en français par Jacky FRANCOIS <jfrancois at free.fr>
+
+Depuis la version 1.29 GpsDrive supporte les bases de données SQL.
+
+Bases de données supportées (October 2002): MySQL
+
+Compiler:
+---------
+Le suport pour MySQL ne peut compiler que si vous avez installer
+le package de dévelopement mysql-client et ne eut être utilisé
+que si libmysqlclient.so est présent.
+
+Si vous ne voulez pas compiler le support de MySQL, même si les
+librairies et les headers sont installés, utilisez l'option 
+"--disable-mysql" au moment du configure.
+
+Exécution et initialisation:
+----------------------------
+Si ce n'est déjà fait, installez le package du serveur mysql pour
+votre distribution.
+
+o Démarrez le serveur, habituellement en tapant: /etc/init.d/mysql start
+
+o Pour créer une base de données initiale utilisez le fichier "create.sql" 
+  fourni. Assurez-vous que l'utilisateur choisi dispose des droits nécessaires
+  pour créer cette table.
+
+  mysql < create.sql
+  (ajoutez un nom d'utilisateur si besoin est)
+  Par exemple:
+  mysql -u root -p <create.sql
+
+  Si le compte root de MySQL est sans mot de passe (c'est le cas si vous venez
+  d'installer mysql) entrez cette commande:
+
+  mysql -u root <create.sql
+
+  Vous pouvez remplacer gast at localhost par gast@'%' si vous voulez utiliser
+  la base de données avec d'autres noms d'hôtes.
+
+
+Mise à jour:
+------------
+Si vous avez déjà la base de données et que vous mettez GpsDrive à jour,
+assurez-vous que la structure de votre table est bien comme celle du fichier
+create.sql.
+
+Gestion du serveur SQL:
+-----------------------
+
+mysqlcc est un bon outil, téléchargez-le à cette adresse:
+
+http://www.mysql.com/downloads/gui-mycc.html
+
+Sécurité:
+---------
+GpsDrive accède par défaut à la table "waypoints" dans la base de données
+"geoinfo" avec le nom d'utilisateur "gast" dont le mot de passe est "gast". 
+Si vous voulez changer ces paramètres dans la base de données, effectuez
+également la modification dans GpsDrive. Pour celà, éditez le fichier
+$HOME/.gpsdrive/gpsdriverc (dbuser,dbpass).
+
+Gardez à l'esprit que le mot de passe pour cette base figure en clair dans
+gpsdriverc!!!
+
+
+Importer des fichiers de aypoints existants:
+--------------------------------------------
+Le script "wp2sql" permet de créer le fichier .sql à partir des fichiers
+de waypoints de GpsDrive.
+
+Adaptez-le à vos besoins!!!!
+
+Tapez ensuite:
+
+mysql -u gast -pgast <wp.sql
+
+Vous pouvez également importe des fichies ASCII avec "mysqlimport".
+
+=================================================================================
+IMPORTANT:
+
+Activez l'option 'Utiliser SQL' (dans le GUI) pour utiliser les waypoints de SQL.
+
+=================================================================================
+
+Catégories de waypoint:
+-----------------------
+
+Vous pouvez nommer vos catégories de waypoint comme vous l'entendez. Il existe
+cependant des catégories prédéfinies, auxquelles sont associés des icones dans
+GpsDrive.
+
+WLAN	     : point d'accès WLAN ouvert
+WLAN-WEP     : point d'éccès WLAN crypté
+Rest	     : un restaurant
+McDonalds    : un fast-food
+BurgerKing   : un autre fast-food
+Hotel	     : un hotel
+Shop	     : magasin
+Monu	     : Monument, attraction touristique
+Speedtrap    : Radar de contôle de vitesse, vous avertis quand vous allez passer 
+               devant lui
+Nightclub    : Pssst...
+Airport	     : Aéroport
+Golf	     : Cours de golf
+Gasstation   : Station essence
+Cafe	     : Café
+
+Les noms ne sont pas sensibles à la casse.
+
+Sauvergarder et restaurer votre base de donnée
+----------------------------------------------
+
+Sven a conçu gpssql_backup.sh et gpssql_restore.sh. Ces deux scripts sont simples
+d'utilisation. Consultez simplement les commentaires dans ces scripts.

Added: packages/gpsdrive/branches/etch/LISEZMOI.kismet
===================================================================
--- packages/gpsdrive/branches/etch/LISEZMOI.kismet	                        (rev 0)
+++ packages/gpsdrive/branches/etch/LISEZMOI.kismet	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,50 @@
+
+Traduit en francçais par Jacky FRANCOIS <jfrancois at free.fr>
+
+Attention!!!!
+
+Gpsdrive, à partir de la version 1.31, n'est compatible qu'avec
+les versions >=2.8.0 de kismet car le format du serveur a changé.
+Les versions antérieures de GpsDrive ne fonctionnent qu'avec
+kismet 2.6.x
+=================================================================
+
+
+GpsDrive est compatible avec le sniffer wireless 'kismet'.
+
+Kismet est un sniffer de réseau wireless 802.11b. Il est compatible
+avec la plupart des cartes wireless supportées par Linux, en particulier
+les cartes basées sur Prism2 supportées par le projet Wlan-NG
+(Linksys, Dlink, Rangelan, etc) ainsi que les cartes compatibles avec la
+libpcap (Cisco). Certaines autres cartes sans RF Monitor sont également
+partiellement gérées.
+
+Plus d'info sur le site de kismet: http://www.kismetwireless.net
+
+Comment utiliser GpsDrive avec kismet?
+--------------------------------------
+
+Vous devez démarrer kismet en premier (gpsd doit tourner avant kismet,
+pour que ce dernier puisse détecter la présence du récepteur GPS ).
+Lorsque kismet tourne vous pouvez lancer GpsDrive. Si l'interface vocale
+est activée une annonce orale vous informe que kismet a été trouvé.
+
+Kismet ne communique avec GpsDrive que si celui-ci intègre les fonctions 
+SQL et que l'option "utiliser SQL" est activée.
+
+Qu'apporte kismet à GpsDrive?
+-----------------------------
+
+Lorsque kismet détecte un point d'accès wireless, il l'inscrit dans la
+base SQL et un icone symbolise son emplacement ( un cadenas fermé si le
+point d'accès est crypté par WEP, un cadenas ouvert dans le cas contraire).
+Il faut que cette catégorie de waypoint soit activée dans le menu
+paramètres/SQL.
+
+Si l'interface vocale est activée vous entendrez une annonce indiquant 
+qu'un nouveau waypoint a été trouvé.
+
+GpsDrive n'enregistre que les nouveaux points d'accès pour empecher qu'un
+même point d'accès ne soit inscrit de multiples fois dans la base de donnée.
+La vérification se fait en se basant sur l'adresse MAC dans la base de donnée,
+si celle-ci y figure déjà le point d'accès est ignoré.
\ No newline at end of file

Added: packages/gpsdrive/branches/etch/Makefile.am
===================================================================
--- packages/gpsdrive/branches/etch/Makefile.am	                        (rev 0)
+++ packages/gpsdrive/branches/etch/Makefile.am	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,10 @@
+# Makefile.am in main dir
+#AUTOMAKE_OPTIONS=dist-bzip2
+SUBDIRS =  src po man 
+
+EXTRA_DIST = TODO GPS-receivers LEEME depcomp LISEZMOI README.FreeBSD  README.gpspoint2gspdrive FAQ.gpsdrive FAQ.gpsdrive.fr README.SQL create.sql  NMEA.txt wp2sql README.kismet LISEZMOI.FreeBSD LISEZMOI.kismet LISEZMOI.SQL CREDITS gpsdrive.desktop README.nasamaps
+
+pkgdata_DATA = TODO GPS-receivers LEEME AUTHORS CREDITS README LISEZMOI README.FreeBSD   README.gpspoint2gspdrive FAQ.gpsdrive FAQ.gpsdrive.fr README.SQL create.sql  NMEA.txt wp2sql README.kismet README.nasamaps
+
+appsdir = $(datadir)/applications
+apps_DATA = gpsdrive.desktop

Added: packages/gpsdrive/branches/etch/Makefile.in
===================================================================
--- packages/gpsdrive/branches/etch/Makefile.in	                        (rev 0)
+++ packages/gpsdrive/branches/etch/Makefile.in	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,623 @@
+# Makefile.in generated by automake 1.7.6 from Makefile.am.
+# @configure_input@
+
+# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
+# 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.
+
+ at 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 = :
+host_triplet = @host@
+ACLOCAL = @ACLOCAL@
+AMDEP_FALSE = @AMDEP_FALSE@
+AMDEP_TRUE = @AMDEP_TRUE@
+AMTAR = @AMTAR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+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@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DISABLEGARMIN_FALSE = @DISABLEGARMIN_FALSE@
+DISABLEGARMIN_TRUE = @DISABLEGARMIN_TRUE@
+DISABLEPLUGINS_FALSE = @DISABLEPLUGINS_FALSE@
+DISABLEPLUGINS_TRUE = @DISABLEPLUGINS_TRUE@
+ECHO = @ECHO@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+ENABLETELEATLAS_FALSE = @ENABLETELEATLAS_FALSE@
+ENABLETELEATLAS_TRUE = @ENABLETELEATLAS_TRUE@
+EXEEXT = @EXEEXT@
+FRIENDSSERVERVERSION = @FRIENDSSERVERVERSION@
+GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
+GMOFILES = @GMOFILES@
+GMSGFMT = @GMSGFMT@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INSTOBJEXT = @INSTOBJEXT@
+INTLLIBS = @INTLLIBS@
+LDFLAGS = @LDFLAGS@
+LIBADD_DL = @LIBADD_DL@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MKINSTALLDIRS = @MKINSTALLDIRS@
+MSGFMT = @MSGFMT@
+MSGMERGE = @MSGMERGE@
+NOGARMIN = @NOGARMIN@
+NOPLUGINS = @NOPLUGINS@
+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@
+PCRE_CONFIG = @PCRE_CONFIG@
+PKGCONFIG_CFLAGS = @PKGCONFIG_CFLAGS@
+PKGCONFIG_LIBS = @PKGCONFIG_LIBS@
+PKG_CONFIG = @PKG_CONFIG@
+POFILES = @POFILES@
+POSUB = @POSUB@
+PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
+PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
+RANLIB = @RANLIB@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+USETELEATLAS = @USETELEATLAS@
+USE_NLS = @USE_NLS@
+VERSION = @VERSION@
+XGETTEXT = @XGETTEXT@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_RANLIB = @ac_ct_RANLIB@
+ac_ct_STRIP = @ac_ct_STRIP@
+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 = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+datadir = @datadir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+oldincludedir = @oldincludedir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+
+# Makefile.am in main dir
+#AUTOMAKE_OPTIONS=dist-bzip2
+SUBDIRS = src po man 
+
+EXTRA_DIST = TODO GPS-receivers LEEME depcomp LISEZMOI README.FreeBSD  README.gpspoint2gspdrive FAQ.gpsdrive FAQ.gpsdrive.fr README.SQL create.sql  NMEA.txt wp2sql README.kismet LISEZMOI.FreeBSD LISEZMOI.kismet LISEZMOI.SQL CREDITS gpsdrive.desktop README.nasamaps
+
+pkgdata_DATA = TODO GPS-receivers LEEME AUTHORS CREDITS README LISEZMOI README.FreeBSD   README.gpspoint2gspdrive FAQ.gpsdrive FAQ.gpsdrive.fr README.SQL create.sql  NMEA.txt wp2sql README.kismet README.nasamaps
+
+appsdir = $(datadir)/applications
+apps_DATA = gpsdrive.desktop
+subdir = .
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = config.h
+CONFIG_CLEAN_FILES =
+DIST_SOURCES =
+DATA = $(apps_DATA) $(pkgdata_DATA)
+
+
+RECURSIVE_TARGETS = info-recursive dvi-recursive pdf-recursive \
+	ps-recursive install-info-recursive uninstall-info-recursive \
+	all-recursive install-data-recursive install-exec-recursive \
+	installdirs-recursive install-recursive uninstall-recursive \
+	check-recursive installcheck-recursive
+DIST_COMMON = README ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL \
+	Makefile.am Makefile.in NEWS TODO acinclude.m4 aclocal.m4 \
+	config.guess config.h.in config.sub configure configure.ac \
+	depcomp install-sh ltmain.sh missing mkinstalldirs
+DIST_SUBDIRS = $(SUBDIRS)
+all: config.h
+	$(MAKE) $(AM_MAKEFLAGS) all-recursive
+
+.SUFFIXES:
+
+am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
+ configure.lineno
+$(srcdir)/Makefile.in:  Makefile.am  $(top_srcdir)/configure.ac $(ACLOCAL_M4)
+	cd $(top_srcdir) && \
+	  $(AUTOMAKE) --gnu  Makefile
+Makefile:  $(srcdir)/Makefile.in  $(top_builddir)/config.status
+	cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)
+
+$(top_builddir)/config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	$(SHELL) ./config.status --recheck
+$(srcdir)/configure:  $(srcdir)/configure.ac $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
+	cd $(srcdir) && $(AUTOCONF)
+
+$(ACLOCAL_M4):  configure.ac acinclude.m4
+	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:  $(top_srcdir)/configure.ac $(ACLOCAL_M4) 
+	cd $(top_srcdir) && $(AUTOHEADER)
+	touch $(srcdir)/config.h.in
+
+distclean-hdr:
+	-rm -f config.h stamp-h1
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+
+distclean-libtool:
+	-rm -f libtool
+uninstall-info-am:
+appsDATA_INSTALL = $(INSTALL_DATA)
+install-appsDATA: $(apps_DATA)
+	@$(NORMAL_INSTALL)
+	$(mkinstalldirs) $(DESTDIR)$(appsdir)
+	@list='$(apps_DATA)'; for p in $$list; do \
+	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+	  f="`echo $$p | sed -e 's|^.*/||'`"; \
+	  echo " $(appsDATA_INSTALL) $$d$$p $(DESTDIR)$(appsdir)/$$f"; \
+	  $(appsDATA_INSTALL) $$d$$p $(DESTDIR)$(appsdir)/$$f; \
+	done
+
+uninstall-appsDATA:
+	@$(NORMAL_UNINSTALL)
+	@list='$(apps_DATA)'; for p in $$list; do \
+	  f="`echo $$p | sed -e 's|^.*/||'`"; \
+	  echo " rm -f $(DESTDIR)$(appsdir)/$$f"; \
+	  rm -f $(DESTDIR)$(appsdir)/$$f; \
+	done
+pkgdataDATA_INSTALL = $(INSTALL_DATA)
+install-pkgdataDATA: $(pkgdata_DATA)
+	@$(NORMAL_INSTALL)
+	$(mkinstalldirs) $(DESTDIR)$(pkgdatadir)
+	@list='$(pkgdata_DATA)'; for p in $$list; do \
+	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+	  f="`echo $$p | sed -e 's|^.*/||'`"; \
+	  echo " $(pkgdataDATA_INSTALL) $$d$$p $(DESTDIR)$(pkgdatadir)/$$f"; \
+	  $(pkgdataDATA_INSTALL) $$d$$p $(DESTDIR)$(pkgdatadir)/$$f; \
+	done
+
+uninstall-pkgdataDATA:
+	@$(NORMAL_UNINSTALL)
+	@list='$(pkgdata_DATA)'; for p in $$list; do \
+	  f="`echo $$p | sed -e 's|^.*/||'`"; \
+	  echo " rm -f $(DESTDIR)$(pkgdatadir)/$$f"; \
+	  rm -f $(DESTDIR)$(pkgdatadir)/$$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
+
+ETAGS = etags
+ETAGSFLAGS =
+
+CTAGS = ctags
+CTAGSFLAGS =
+
+tags: TAGS
+
+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-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; \
+	else \
+	  include_option=--include; \
+	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; }'`; \
+	test -z "$(ETAGS_ARGS)$$tags$$unique" \
+	  || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+	     $$tags $$unique
+
+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
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+
+top_distdir = .
+distdir = $(PACKAGE)-$(VERSION)
+
+am__remove_distdir = \
+  { test ! -d $(distdir) \
+    || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
+         && rm -fr $(distdir); }; }
+
+GZIP_ENV = --best
+distuninstallcheck_listfiles = find . -type f -print
+distcleancheck_listfiles = find . -type f -print
+
+distdir: $(DISTFILES)
+	$(am__remove_distdir)
+	mkdir $(distdir)
+	$(mkinstalldirs) $(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"; \
+	    $(mkinstalldirs) "$(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 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
+	$(am__remove_distdir)
+	GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf -
+	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 ../.. && $(mkinstalldirs) "$$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-gzip \
+	  && rm -f $(distdir).tar.gz \
+	  && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
+	$(am__remove_distdir)
+	@echo "$(distdir).tar.gz is ready for distribution" | \
+	  sed 'h;s/./=/g;p;x;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 $(DATA) config.h
+installdirs: installdirs-recursive
+installdirs-am:
+	$(mkinstalldirs) $(DESTDIR)$(appsdir) $(DESTDIR)$(pkgdatadir)
+
+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_STRIP_FLAG=-s \
+	  `test -z '$(STRIP)' || \
+	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-rm -f Makefile $(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 clean-libtool mostlyclean-am
+
+distclean: distclean-recursive
+	-rm -f $(am__CONFIG_DISTCLEAN_FILES)
+distclean-am: clean-am distclean-generic distclean-hdr distclean-libtool \
+	distclean-tags
+
+dvi: dvi-recursive
+
+dvi-am:
+
+info: info-recursive
+
+info-am:
+
+install-data-am: install-appsDATA install-pkgdataDATA
+
+install-exec-am:
+
+install-info: install-info-recursive
+
+install-man:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-recursive
+	-rm -f $(am__CONFIG_DISTCLEAN_FILES)
+	-rm -rf $(top_srcdir)/autom4te.cache
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-recursive
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-recursive
+
+pdf-am:
+
+ps: ps-recursive
+
+ps-am:
+
+uninstall-am: uninstall-appsDATA uninstall-info-am uninstall-pkgdataDATA
+
+uninstall-info: uninstall-info-recursive
+
+.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am clean \
+	clean-generic clean-libtool clean-recursive ctags \
+	ctags-recursive dist dist-all dist-gzip distcheck distclean \
+	distclean-generic distclean-hdr distclean-libtool \
+	distclean-recursive distclean-tags distcleancheck distdir \
+	distuninstallcheck dvi dvi-am dvi-recursive info info-am \
+	info-recursive install install-am install-appsDATA install-data \
+	install-data-am install-data-recursive install-exec \
+	install-exec-am install-exec-recursive install-info \
+	install-info-am install-info-recursive install-man \
+	install-pkgdataDATA install-recursive install-strip \
+	installcheck installcheck-am installdirs installdirs-am \
+	installdirs-recursive maintainer-clean maintainer-clean-generic \
+	maintainer-clean-recursive mostlyclean mostlyclean-generic \
+	mostlyclean-libtool mostlyclean-recursive pdf pdf-am \
+	pdf-recursive ps ps-am ps-recursive tags tags-recursive \
+	uninstall uninstall-am uninstall-appsDATA uninstall-info-am \
+	uninstall-info-recursive uninstall-pkgdataDATA \
+	uninstall-recursive
+
+# 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:

Added: packages/gpsdrive/branches/etch/NEWS
===================================================================
--- packages/gpsdrive/branches/etch/NEWS	                        (rev 0)
+++ packages/gpsdrive/branches/etch/NEWS	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,9 @@
+If you have questions, see first at the mailing list archives:
+
+http://s2.selwerd.nl/~dirk-jan/gpsdrive/archive/
+
+and
+
+http://kevb.net:3000/lurker/list/gpsdrive.html
+
+

Added: packages/gpsdrive/branches/etch/NMEA.txt
===================================================================
--- packages/gpsdrive/branches/etch/NMEA.txt	                        (rev 0)
+++ packages/gpsdrive/branches/etch/NMEA.txt	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,1014 @@
+ AAM - Waypoint Arrival Alarm
+
+        1 2 3   4 5    6
+        | | |   | |    |
+ $--AAM,A,A,x.x,N,c--c*hh<CR><LF>
+
+ Field Number: 
+ 1) Status, BOOLEAN, A = Arrival circle entered
+ 2) Status, BOOLEAN, A = perpendicular passed at waypoint
+ 3) Arrival circle radius
+ 4) Units of radius, nautical miles
+ 5) Waypoint ID
+ 6) Checksum
+
+ ALM - GPS Almanac Data
+
+        1   2   3  4   5  6    7  8    9    10     11     12     13     14  15   16
+        |   |   |  |   |  |    |  |    |    |      |      |      |      |   |    |
+ $--ALM,x.x,x.x,xx,x.x,hh,hhhh,hh,hhhh,hhhh,hhhhhh,hhhhhh,hhhhhh,hhhhhh,hhh,hhh,*hh<CR><LF>
+
+ Field Number: 
+  1) Total number of messages
+  2) Message Number
+  3) Satellite PRN number (01 to 32)
+  4) GPS Week Number :
+	Date and time in GPS is computed as number of weeks from 6 January 1980 plus
+     	number of seconds into the week.
+  5) SV health, bits 17-24 of each almanac page
+  6) Eccentricity
+  7) Almanac Reference Time
+  8) Inclination Angle
+  9) Rate of Right Ascension
+ 10) Root of semi-major axis
+ 11) Argument of perigee
+ 12) Longitude of ascension node
+ 13) Mean anomaly
+ 14) F0 Clock Parameter
+ 15) F1 Clock Parameter
+ 16) Checksum
+
+ APA - Autopilot Sentence "A"
+
+        1 2  3   4 5 6 7  8  9 10    11
+        | |  |   | | | |  |  | |     |
+ $--APA,A,A,x.xx,L,N,A,A,xxx,M,c---c*hh<CR><LF>
+
+ Field Number: 
+  1) Status
+     V = LORAN-C Blink or SNR warning
+     V = general warning flag or other navigation systems when a reliable
+         fix is not available
+  2) Status
+     V = Loran-C Cycle Lock warning flag
+     A = OK or not used
+
+  3) Cross Track Error Magnitude
+  4) Direction to steer, L or R
+  5) Cross Track Units (Nautic miles or kilometers)
+  6) Status
+     A = Arrival Circle Entered
+  7) Status
+     A = Perpendicular passed at waypoint
+  8) Bearing origin to destination
+  9) M = Magnetic, T = True
+ 10) Destination Waypoint ID
+ 11) checksum
+
+ APB - Autopilot Sentence "B"
+                                         13    15
+        1 2 3   4 5 6 7 8   9 10   11  12|   14|
+        | | |   | | | | |   | |    |   | |   | |
+ $--APB,A,A,x.x,a,N,A,A,x.x,a,c--c,x.x,a,x.x,a*hh<CR><LF>
+
+ Field Number: 
+  1) Status
+     V = LORAN-C Blink or SNR warning
+     V = general warning flag or other navigation systems when a reliable
+         fix is not available
+  2) Status
+     V = Loran-C Cycle Lock warning flag
+     A = OK or not used
+  3) Cross Track Error Magnitude
+  4) Direction to steer, L or R
+  5) Cross Track Units, N = Nautical Miles
+  6) Status
+     A = Arrival Circle Entered
+  7) Status
+     A = Perpendicular passed at waypoint
+  8) Bearing origin to destination
+  9) M = Magnetic, T = True
+ 10) Destination Waypoint ID
+ 11) Bearing, present position to Destination
+ 12) M = Magnetic, T = True
+ 13) Heading to steer to destination waypoint
+ 14) M = Magnetic, T = True
+ 15) Checksum
+
+ ASD - Autopilot System Data
+ FORMAT UNKOWN
+
+ BEC - Bearing & Distance to Waypoint - Dead Reckoning
+                                                         12
+        1         2       3 4        5 6   7 8   9 10  11|    13
+        |         |       | |        | |   | |   | |   | |    |
+ $--BEC,hhmmss.ss,llll.ll,a,yyyyy.yy,a,x.x,T,x.x,M,x.x,N,c--c*hh<CR><LF>
+
+ Field Number: 
+  1) UTCTime
+  2) Waypoint Latitude
+  3) N = North, S = South
+  4) Waypoint Longitude
+  5) E = East, W = West
+  6) Bearing, True
+  7) T = True
+  8) Bearing, Magnetic
+  9) M = Magnetic
+ 10) Nautical Miles
+ 11) N = Nautical Miles
+ 12) Waypoint ID
+ 13) Checksum
+
+
+ BOD - Bearing - Waypoint to Waypoint
+
+        1   2 3   4 5    6    7
+        |   | |   | |    |    |
+ $--BOD,x.x,T,x.x,M,c--c,c--c*hh<CR><LF>
+
+ Field Number: 
+  1) Bearing Degrees, TRUE
+  2) T = True
+  3) Bearing Degrees, Magnetic
+  4) M = Magnetic
+  5) TO Waypoint
+  6) FROM Waypoint
+  7) Checksum
+
+ BWC - Bearing and Distance to Waypoint
+ Latitude, N/S, Longitude, E/W, UTC, Status
+                                                       11
+        1         2       3 4        5 6   7 8   9 10  | 12   13
+        |         |       | |        | |   | |   | |   | |    |
+ $--BWC,hhmmss.ss,llll.ll,a,yyyyy.yy,a,x.x,T,x.x,M,x.x,N,c--c*hh<CR><LF>
+
+ Field Number: 
+  1) UTCTime
+  2) Waypoint Latitude
+  3) N = North, S = South
+  4) Waypoint Longitude
+  5) E = East, W = West
+  6) Bearing, True
+  7) T = True
+  8) Bearing, Magnetic
+  9) M = Magnetic
+ 10) Nautical Miles
+ 11) N = Nautical Miles
+ 12) Waypoint ID
+ 13) Checksum
+
+ BWR - Bearing and Distance to Waypoint - Rhumb Line
+ Latitude, N/S, Longitude, E/W, UTC, Status
+                                                       11
+        1         2       3 4        5 6   7 8   9 10  | 12   13
+        |         |       | |        | |   | |   | |   | |    |
+ $--BWR,hhmmss.ss,llll.ll,a,yyyyy.yy,a,x.x,T,x.x,M,x.x,N,c--c*hh<CR><LF>
+
+ Field Number: 
+  1) UTCTime
+  2) Waypoint Latitude
+  3) N = North, S = South
+  4) Waypoint Longitude
+  5) E = East, W = West
+  6) Bearing, True
+  7) T = True
+  8) Bearing, Magnetic
+  9) M = Magnetic
+ 10) Nautical Miles
+ 11) N = Nautical Miles
+ 12) Waypoint ID
+ 13) Checksum
+
+ BWW - Bearing - Waypoint to Waypoint
+
+        1   2 3   4 5    6    7
+        |   | |   | |    |    |
+ $--BWW,x.x,T,x.x,M,c--c,c--c*hh<CR><LF>
+
+ Field Number: 
+  1) Bearing Degrees, TRUE
+  2) T = True
+  3) Bearing Degrees, Magnetic
+  4) M = Magnetic
+  5) TO Waypoint
+  6) FROM Waypoint
+  7) Checksum
+
+ DBK - Depth Below Keel
+
+        1   2 3   4 5   6 7
+        |   | |   | |   | |
+ $--DBK,x.x,f,x.x,M,x.x,F*hh<CR><LF>
+
+ Field Number: 
+  1) Depth, feet
+  2) f = feet
+  3) Depth, meters
+  4) M = meters
+  5) Depth, Fathoms
+  6) F = Fathoms
+  7) Checksum
+
+ DBS - Depth Below Surface
+
+        1   2 3   4 5   6 7
+        |   | |   | |   | |
+ $--DBS,x.x,f,x.x,M,x.x,F*hh<CR><LF>
+
+ Field Number: 
+  1) Depth, feet
+  2) f = feet
+  3) Depth, meters
+  4) M = meters
+  5) Depth, Fathoms
+  6) F = Fathoms
+  7) Checksum
+
+ DBT - Depth below transducer
+
+        1   2 3   4 5   6 7
+        |   | |   | |   | |
+ $--DBT,x.x,f,x.x,M,x.x,F*hh<CR><LF>
+
+ Field Number: 
+  1) Depth, feet
+  2) f = feet
+  3) Depth, meters
+  4) M = meters
+  5) Depth, Fathoms
+  6) F = Fathoms
+  7) Checksum
+
+ DCN - Decca Position
+                                      11  13      16
+        1  2  3   4 5  6   7 8  9   10| 12| 14  15| 17
+        |  |  |   | |  |   | |  |   | | | | |   | | |
+ $--DCN,xx,cc,x.x,A,cc,x.x,A,cc,x.x,A,A,A,A,x.x,N,x*hh<CR><LF>
+
+ Field Number: 
+  1) Decca chain identifier
+  2) Red Zone Identifier
+  3) Red Line Of Position
+  4) Red Master Line Status
+  5) Green Zone Identifier
+  6) Green Line Of Position
+  7) Green Master Line Status
+  8) Purple Zone Identifier
+  9) Purple Line Of Position
+ 10) Purple Master Line Status
+ 11) Red Line Navigation Use
+ 12) Green Line Navigation Use
+ 13) Purple Line Navigation Use
+ 14) Position Uncertainity
+ 15) N = Nautical Miles
+ 16) Fix Data Basis
+     1 = Normal Pattern
+     2 = Lane Identification Pattern
+     3 = Lane Identification Transmissions
+ 17) Checksum
+
+ DPT - Heading - Deviation & Variation
+
+        1   2   3
+        |   |   |
+ $--DPT,x.x,x.x*hh<CR><LF>
+
+ Field Number: 
+  1) Depth, meters
+  2) Offset from transducer, 
+     positive means distance from tansducer to water line
+     negative means distance from transducer to keel
+  3) Checksum
+
+ FSI - Frequency Set Information
+
+        1      2      3 4 5
+        |      |      | | |
+ $--FSI,xxxxxx,xxxxxx,c,x*hh<CR><LF>
+
+ Field Number: 
+  1) Transmitting Frequency
+  2) Receiving Frequency
+  3) Communications Mode (NMEA Syntax 2)
+  4) Power Level
+  5) Checksum
+
+ GGA - Global Positioning System Fix Data
+ Time, Position and fix related data fora GPS receiver.
+
+                                                      11
+        1         2       3 4        5 6 7  8   9  10 |  12 13  14   15
+        |         |       | |        | | |  |   |   | |   | |   |    |
+ $--GGA,hhmmss.ss,llll.ll,a,yyyyy.yy,a,x,xx,x.x,x.x,M,x.x,M,x.x,xxxx*hh<CR><LF>
+
+ Field Number: 
+  1) Universal Time Coordinated (UTC)
+  2) Latitude
+  3) N or S (North or South)
+  4) Longitude
+  5) E or W (East or West)
+  6) GPS Quality Indicator,
+     0 - fix not available,
+     1 - GPS fix,
+     2 - Differential GPS fix
+  7) Number of satellites in view, 00 - 12
+  8) Horizontal Dilution of precision
+  9) Antenna Altitude above/below mean-sea-level (geoid) 
+ 10) Units of antenna altitude, meters
+ 11) Geoidal separation, the difference between the WGS-84 earth
+     ellipsoid and mean-sea-level (geoid), "-" means mean-sea-level
+     below ellipsoid
+ 12) Units of geoidal separation, meters
+ 13) Age of differential GPS data, time in seconds since last SC104
+     type 1 or 9 update, null field when DGPS is not used
+ 14) Differential reference station ID, 0000-1023
+ 15) Checksum
+
+ GLC - Geographic Position, Loran-C
+                                           12    14
+        1    2   3 4   5 6   7 8   9 10  11|   13|
+        |    |   | |   | |   | |   | |   | |   | |
+ $--GLC,xxxx,x.x,a,x.x,a,x.x,a.x,x,a,x.x,a,x.x,a*hh<CR><LF>
+
+ Field Number: 
+  1) GRI Microseconds/10
+  2) Master TOA Microseconds
+  3) Master TOA Signal Status
+  4) Time Difference 1 Microseconds
+  5) Time Difference 1 Signal Status
+  6) Time Difference 2 Microseconds
+  7) Time Difference 2 Signal Status
+  8) Time Difference 3 Microseconds
+  9) Time Difference 3 Signal Status
+ 10) Time Difference 4 Microseconds
+ 11) Time Difference 4 Signal Status
+ 12) Time Difference 5 Microseconds
+ 13) Time Difference 5 Signal Status
+ 14) Checksum
+
+ GLL - Geographic Position - Latitude/Longitude
+
+	1       2 3        4 5         6 7
+	|       | |        | |         | |
+ $--GLL,llll.ll,a,yyyyy.yy,a,hhmmss.ss,A*hh<CR><LF>
+
+ Field Number: 
+  1) Latitude
+  2) N or S (North or South)
+  3) Longitude
+  4) E or W (East or West)
+  5) Universal Time Coordinated (UTC)
+  6) Status A - Data Valid, V - Data Invalid
+  7) Checksum
+
+ GSA - GPS DOP and active satellites
+
+	1 2 3                        14 15  16  17  18
+	| | |                         |  |   |   |   |
+ $--GSA,a,a,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x.x,x.x,x.x*hh<CR><LF>
+
+ Field Number: 
+  1) Selection mode
+  2) Mode
+  3) ID of 1st satellite used for fix
+  4) ID of 2nd satellite used for fix
+  ...
+  14) ID of 12th satellite used for fix
+  15) PDOP in meters
+  16) HDOP in meters
+  17) VDOP in meters
+  18) checksum
+
+ GSV - Satellites in view
+
+	1 2 3 4 5 6 7     n
+	| | | | | | |     |
+ $--GSV,x,x,x,x,x,x,x,...*hh<CR><LF>
+
+ Field Number: 
+  1) total number of messages
+  2) message number
+  3) satellites in view
+  4) satellite number
+  5) elevation in degrees
+  6) azimuth in degrees to true
+  7) SNR in dB
+  more satellite infos like 4)-7)
+  n) checksum
+
+ GTD - Geographic Location in Time Differences
+
+ 	 1   2   3   4   5  6
+	 |   |   |   |   |  |
+ $--GTD,x.x,x.x,x.x,x.x,x.x*hh<CR><LF>
+
+ Field Number: 
+  1) time difference
+  2) time difference
+  3) time difference
+  4) time difference
+  5) time difference
+  n) checksum
+
+ GXA - TRANSIT Position - Latitude/Longitude
+ Location and time of TRANSIT fix at waypoint
+
+        1         2       3 4        5 6    7 8
+        |         |       | |        | |    | |
+ $--GXA,hhmmss.ss,llll.ll,a,yyyyy.yy,a,c--c,X*hh<CR><LF>
+
+ Field Number: 
+ 1) UTC of position fix
+ 2) Latitude
+ 3) East or West
+ 4) Longitude
+ 5) North or South
+ 6) Waypoint ID
+ 7) Satelite number
+ 8) Checksum
+
+ HDG - Heading - Deviation & Variation
+
+        1   2   3 4   5 6
+        |   |   | |   | |
+ $--HDG,x.x,x.x,a,x.x,a*hh<CR><LF>
+
+ Field Number: 
+  1) Magnetic Sensor heading in degrees
+  2) Magnetic Deviation, degrees
+  3) Magnetic Deviation direction, E = Easterly, W = Westerly
+  4) Magnetic Variation degrees
+  5) Magnetic Variation direction, E = Easterly, W = Westerly
+  6) Checksum
+
+ HDM - Heading - Magnetic
+
+        1   2 3
+        |   | |
+ $--HDM,x.x,M*hh<CR><LF>
+
+ Field Number: 
+  1) Heading Degrees, magnetic
+  2) M = magnetic
+  3) Checksum
+
+ HDT - Heading - True
+
+        1   2 3
+        |   | |
+ $--HDT,x.x,T*hh<CR><LF>
+
+ Field Number: 
+  1) Heading Degrees, true
+  2) T = True
+  3) Checksum
+
+ HSC - Heading Steering Command
+
+        1   2 3   4  5
+        |   | |   |  |
+ $--HSC,x.x,T,x.x,M,*hh<CR><LF>
+
+ Field Number: 
+  1) Heading Degrees, True
+  2) T = True
+  3) Heading Degrees, Magnetic
+  4) M = Magnetic
+  5) Checksum
+
+ LCD - Loran-C Signal Data
+
+        1    2   3   4   5   6   7   8   9   10  11  12  13  14
+        |    |   |   |   |   |   |   |   |   |   |   |   |   |
+ $--LCD,xxxx,xxx,xxx,xxx,xxx,xxx,xxx,xxx,xxx,xxx,xxx,xxx,xxx*hh<CR><LF>
+
+ Field Number: 
+  1) GRI Microseconds/10
+  2) Master Relative SNR
+  3) Master Relative ECD
+  4) Time Difference 1 Microseconds
+  5) Time Difference 1 Signal Status
+  6) Time Difference 2 Microseconds
+  7) Time Difference 2 Signal Status
+  8) Time Difference 3 Microseconds
+  9) Time Difference 3 Signal Status
+ 10) Time Difference 4 Microseconds
+ 11) Time Difference 4 Signal Status
+ 12) Time Difference 5 Microseconds
+ 13) Time Difference 5 Signal Status
+ 14) Checksum
+
+ MTW - Water Temperature
+
+        1   2 3
+        |   | | 
+ $--MTW,x.x,C*hh<CR><LF>
+
+ Field Number: 
+  1) Degrees
+  2) Unit of Measurement, Celcius
+  3) Checksum
+
+ MWV - Wind Speed and Angle
+
+        1   2 3   4 5
+        |   | |   | |
+ $--MWV,x.x,a,x.x,a*hh<CR><LF>
+
+ Field Number: 
+  1) Wind Angle, 0 to 360 degrees
+  2) Reference, R = Relative, T = True
+  3) Wind Speed
+  4) Wind Speed Units, K/M/N
+  5) Status, A = Data Valid
+  6) Checksum
+
+ OLN - Omega Lane Numbers
+
+        1          2          3          4
+        |--------+ |--------+ |--------+ |
+ $--OLN,aa,xxx,xxx,aa,xxx,xxx,aa,xxx,xxx*hh<CR><LF>
+
+ Field Number: 
+  1) Omega Pair 1
+  2) Omega Pair 1
+  3) Omega Pair 1
+  4) Checksum
+
+ OSD - Own Ship Data
+
+        1   2 3   4 5   6 7   8   9 10
+        |   | |   | |   | |   |   | |
+ $--OSD,x.x,A,x.x,a,x.x,a,x.x,x.x,a*hh<CR><LF>
+
+ Field Number: 
+  1) Heading, degrees true
+  2) Status, A = Data Valid
+  3) Vessel Course, degrees True
+  4) Course Reference
+  5) Vessel Speed
+  6) Speed Reference
+  7) Vessel Set, degrees True
+  8) Vessel drift (speed)
+  9) Speed Units
+ 10) Checksum
+
+ R00 - Waypoints in active route
+
+        1                n
+        |                | 
+ $--R00,c---c,c---c,....*hh<CR><LF>
+
+ Field Number: 
+  1) waypoint ID
+  ...
+  n) checksum
+
+ RMA - Recommended Minimum Navigation Information
+                                                    12
+        1 2       3 4        5 6   7   8   9   10  11|
+        | |       | |        | |   |   |   |   |   | |
+ $--RMA,A,llll.ll,a,yyyyy.yy,a,x.x,x.x,x.x,x.x,x.x,a*hh<CR><LF>
+
+ Field Number: 
+  1) Blink Warning
+  2) Latitude
+  3) N or S
+  4) Longitude
+  5) E or W
+  6) Time Difference A, uS
+  7) Time Difference B, uS
+  8) Speed Over Ground, Knots
+  9) Track Made Good, degrees true
+ 10) Magnetic Variation, degrees
+ 11) E or W
+ 12) Checksum
+
+ RMB - Recommended Minimum Navigation Information
+                                                             14
+        1 2   3 4    5    6       7 8        9 10  11  12  13|
+        | |   | |    |    |       | |        | |   |   |   | |
+ $--RMB,A,x.x,a,c--c,c--c,llll.ll,a,yyyyy.yy,a,x.x,x.x,x.x,A*hh<CR><LF>
+
+ Field Number: 
+  1) Status, V = Navigation receiver warning
+  2) Cross Track error - nautical miles
+  3) Direction to Steer, Left or Right
+  4) TO Waypoint ID
+  5) FROM Waypoint ID
+  6) Destination Waypoint Latitude
+  7) N or S
+  8) Destination Waypoint Longitude
+  9) E or W
+ 10) Range to destination in nautical miles
+ 11) Bearing to destination in degrees True
+ 12) Destination closing velocity in knots
+ 13) Arrival Status, A = Arrival Circle Entered
+ 14) Checksum
+
+ RMC - Recommended Minimum Navigation Information
+                                                            12
+        1         2 3       4 5        6 7   8   9    10  11|
+        |         | |       | |        | |   |   |    |   | |
+ $--RMC,hhmmss.ss,A,llll.ll,a,yyyyy.yy,a,x.x,x.x,xxxx,x.x,a*hh<CR><LF>
+
+ Field Number: 
+  1) UTC Time
+  2) Status, V = Navigation receiver warning
+  3) Latitude
+  4) N or S
+  5) Longitude
+  6) E or W
+  7) Speed over ground, knots
+  8) Track made good, degrees true
+  9) Date, ddmmyy
+ 10) Magnetic Variation, degrees
+ 11) E or W
+ 12) Checksum
+
+ ROT - Rate Of Turn
+
+        1   2 3
+        |   | |
+ $--ROT,x.x,A*hh<CR><LF>
+
+ Field Number: 
+  1) Rate Of Turn, degrees per minute, "-" means bow turns to port
+  2) Status, A means data is valid
+  3) Checksum
+
+ RPM - Revolutions
+
+        1 2 3   4   5 6
+        | | |   |   | |
+ $--RPM,a,x,x.x,x.x,A*hh<CR><LF>
+
+ Field Number: 
+  1) Sourse, S = Shaft, E = Engine
+  2) Engine or shaft number
+  3) Speed, Revolutions per minute
+  4) Propeller pitch, % of maximum, "-" means astern
+  5) Status, A means data is valid
+  6) Checksum
+
+ RSA - Rudder Sensor Angle
+
+        1   2 3   4 5
+        |   | |   | |
+ $--RSA,x.x,A,x.x,A*hh<CR><LF>
+
+ Field Number: 
+  1) Starboard (or single) rudder sensor, "-" means Turn To Port
+  2) Status, A means data is valid
+  3) Port rudder sensor
+  4) Status, A means data is valid
+  5) Checksum
+
+ RSD - RADAR System Data
+                                                        14
+        1   2   3   4   5   6   7   8   9   10  11 12 13|
+        |   |   |   |   |   |   |   |   |   |   |   | | |
+ $--RSD,x.x,x.x,x.x,x.x,x.x,x.x,x.x,x.x,x.x,x.x,x.x,a,a*hh<CR><LF>
+
+ Field Number: 
+  9) Cursor Range From Own Ship
+ 10) Cursor Bearing Degrees Clockwise From Zero
+ 11) Range Scale
+ 12) Range Units
+ 14) Checksum
+
+ RTE - Routes
+
+        1   2   3 4	 5		       x    n
+        |   |   | |    |           |    |
+ $--RTE,x.x,x.x,a,c--c,c--c, ..... c--c*hh<CR><LF>
+
+ Field Number: 
+  1) Total number of messages being transmitted
+  2) Message Number
+  3) Message mode
+     c = complete route, all waypoints
+     w = working route, the waypoint you just left, the waypoint you're heading to then all the rest
+  4) Waypoint ID
+  x) More Waypoints
+  n) Checksum
+
+ SFI - Scanning Frequency Information
+
+        1   2   3      4                     x
+        |   |   |      |                     |
+ $--SFI,x.x,x.x,xxxxxx,c .......... xxxxxx,c*hh<CR><LF>
+
+ Field Number: 
+  1) Total Number Of Messages
+  2) Message Number
+  3) Frequency 1
+  4) Mode 1
+  x) Checksum
+
+ STN - Multiple Data ID
+
+        1   2
+        |   |
+ $--STN,x.x,*hh<CR><LF>
+
+ Field Number: 
+  1) Talker ID Number
+  2) Checksum
+
+ TRF - TRANSIT Fix Data
+                                                                    13
+        1         2      3       4 5        6 7   8   9   10  11  12|
+        |         |      |       | |        | |   |   |   |   |   | |
+ $--TRF,hhmmss.ss,xxxxxx,llll.ll,a,yyyyy.yy,a,x.x,x.x,x.x,x.x,xxx,A*hh<CR><LF>
+
+ Field Number: 
+  1) UTC Time
+  2) Date, ddmmyy
+  3) Latitude
+  4) N or S
+  5) Longitude
+  6) E or W
+  7) Elevation Angle
+  8) Number of iterations
+  9) Number of Doppler intervals
+ 10) Update distance, nautical miles
+ 11) Satellite ID
+ 12) Data Validity
+ 13) Checksum
+
+ TTM - Tracked Target Message
+
+                                         11     13
+        1  2   3   4 5   6   7 8   9   10|    12| 14
+        |  |   |   | |   |   | |   |   | |    | | |
+ $--TTM,xx,x.x,x.x,a,x.x,x.x,a,x.x,x.x,a,c--c,a,a*hh<CR><LF>
+
+ Field Number: 
+  1) Target Number
+  2) Target Distance
+  3) Bearing from own ship
+  4) Bearing Units
+  5) Target speed
+  6) Target Course
+  7) Course Units
+  8) Distance of closest-point-of-approach
+  9) Time until closest-point-of-approach "-" means increasing
+ 10) "-" means increasing
+ 11) Target name
+ 12) Target Status
+ 13) Reference Target
+ 14) Checksum
+
+ VBW - Dual Ground/Water Speed
+
+        1   2   3 4   5   6 7
+        |   |   | |   |   | |
+ $--VBW,x.x,x.x,A,x.x,x.x,A*hh<CR><LF>
+
+ Field Number: 
+  1) Longitudinal water speed, "-" means astern
+  2) Transverse water speed, "-" means port
+  3) Status, A = Data Valid
+  4) Longitudinal ground speed, "-" means astern
+  5) Transverse ground speed, "-" means port
+  6) Status, A = Data Valid
+  7) Checksum
+
+ VDR - Set and Drift
+
+        1   2 3   4 5   6 7
+        |   | |   | |   | |
+ $--VDR,x.x,T,x.x,M,x.x,N*hh<CR><LF>
+
+ Field Number: 
+  1) Degress True
+  2) T = True
+  3) Degrees Magnetic
+  4) M = Magnetic
+  5) Knots (speed of current)
+  6) N = Knots
+  7) Checksum
+
+ VHW - Water speed and heading
+
+        1   2 3   4 5   6 7   8 9
+        |   | |   | |   | |   | |
+ $--VHW,x.x,T,x.x,M,x.x,N,x.x,K*hh<CR><LF>
+
+ Field Number: 
+  1) Degress True
+  2) T = True
+  3) Degrees Magnetic
+  4) M = Magnetic
+  5) Knots (speed of vessel relative to the water)
+  6) N = Knots
+  7) Kilometers (speed of vessel relative to the water)
+  8) K = Kilometers
+  9) Checksum
+
+ VLW - Distance Traveled through Water
+
+        1   2 3   4 5
+        |   | |   | |
+ $--VLW,x.x,N,x.x,N*hh<CR><LF>
+
+ Field Number: 
+  1) Total cumulative distance
+  2) N = Nautical Miles
+  3) Distance since Reset
+  4) N = Nautical Miles
+  5) Checksum
+
+ VPW - Speed - Measured Parallel to Wind
+
+        1   2 3   4 5
+        |   | |   | |
+ $--VPW,x.x,N,x.x,M*hh<CR><LF>
+
+ Field Number: 
+  1) Speed, "-" means downwind
+  2) N = Knots
+  3) Speed, "-" means downwind
+  4) M = Meters per second
+  5) Checksum
+
+ VTG - Track made good and Ground speed
+
+        1   2 3   4 5	 6 7   8 9
+        |   | |   | |	 | |   | |
+ $--VTG,x.x,T,x.x,M,x.x,N,x.x,K*hh<CR><LF>
+
+ Field Number: 
+  1) Track Degrees
+  2) T = True
+  3) Track Degrees
+  4) M = Magnetic
+  5) Speed Knots
+  6) N = Knots
+  7) Speed Kilometers Per Hour
+  8) K = Kilometers Per Hour
+  9) Checksum
+
+ VWR - Relative Wind Speed and Angle
+
+         1  2  3  4  5  6  7  8 9
+         |  |  |  |  |  |  |  | |
+ $--VWR,x.x,a,x.x,N,x.x,M,x.x,K*hh<CR><LF>
+
+ Field Number: 
+  1) Wind direction magnitude in degrees
+  2) Wind direction Left/Right of bow
+  3) Speed
+  4) N = Knots
+  5) Speed
+  6) M = Meters Per Second
+  7) Speed
+  8) K = Kilometers Per Hour
+  9) Checksum
+
+ WCV - Waypoint Closure Velocity
+
+        1   2 3    4
+        |   | |    |
+ $--WCV,x.x,N,c--c*hh<CR><LF>
+
+ Field Number: 
+  1) Velocity
+  2) N = knots
+  3) Waypoint ID
+  4) Checksum
+
+ WNC - Distance - Waypoint to Waypoint
+
+        1   2 3   4 5    6    7
+        |   | |   | |    |    |
+ $--WNC,x.x,N,x.x,K,c--c,c--c*hh<CR><LF>
+
+ Field Number: 
+  1) Distance, Nautical Miles
+  2) N = Nautical Miles
+  3) Distance, Kilometers
+  4) K = Kilometers
+  5) TO Waypoint
+  6) FROM Waypoint
+  7) Checksum
+
+ WPL - Waypoint Location
+
+	1       2 3        4 5    6
+        |       | |        | |    |
+ $--WPL,llll.ll,a,yyyyy.yy,a,c--c*hh<CR><LF>
+
+ Field Number: 
+  1) Latitude
+  2) N or S (North or South)
+  3) Longitude
+  4) E or W (East or West)
+  5) Waypoint name
+  6) Checksum     
+
+ XDR - Cross Track Error - Dead Reckoning
+
+        1 2   3 4			    n
+        | |   | |            |
+ $--XDR,a,x.x,a,c--c, ..... *hh<CR><LF>
+
+ Field Number: 
+  1) Transducer Type
+  2) Measurement Data
+  3) Units of measurement
+  4) Name of transducer
+  x) More of the same
+  n) Checksum
+
+ XTE - Cross-Track Error, Measured
+
+        1 2 3   4 5  6
+        | | |   | |  |
+ $--XTE,A,A,x.x,a,N,*hh<CR><LF>
+
+ Field Number: 
+  1) Status
+     V = LORAN-C Blink or SNR warning
+     V = general warning flag or other navigation systems when a reliable
+         fix is not available
+  2) Status
+     V = Loran-C Cycle Lock warning flag
+     A = OK or not used
+  3) Cross Track Error Magnitude
+  4) Direction to steer, L or R
+  5) Cross Track Units, N = Nautical Miles
+  6) Checksum
+
+ XTR - Cross Track Error - Dead Reckoning
+
+        1   2 3 4
+        |   | | |
+ $--XTR,x.x,a,N*hh<CR><LF>
+
+ Field Number: 
+  1) Magnitude of cross track error
+  2) Direction to steer, L or R
+  3) Units, N = Nautical Miles
+  4) Checksum
+
+ ZDA - Time & Date
+ UTC, day, month, year and local time zone
+
+	1         2  3  4    5  6  7
+        |         |  |  |    |  |  |
+ $--ZDA,hhmmss.ss,xx,xx,xxxx,xx,xx*hh<CR><LF>
+
+ Field Number: 
+  1) Local zone minutes description, same sign as local hours
+  2) Local zone description, 00 to +- 13 hours
+  3) Year
+  4) Month, 01 to 12
+  5) Day, 01 to 31
+  6) Universal Time Coordinated (UTC)
+  7) Checksum
+
+ ZFO - UTC & Time from origin Waypoint
+
+        1         2         3    4
+        |         |         |    |
+ $--ZFO,hhmmss.ss,hhmmss.ss,c--c*hh<CR><LF>
+
+ Field Number: 
+  1) Universal Time Coordinated (UTC)
+  2) Elapsed Time
+  3) Origin Waypoint ID
+  4) Checksum
+
+ ZTG - UTC & Time to Destination Waypoint
+
+        1         2         3    4
+        |         |         |    |
+ $--ZTG,hhmmss.ss,hhmmss.ss,c--c*hh<CR><LF>
+
+ Field Number: 
+  1) Universal Time Coordinated (UTC)
+  2) Time Remaining
+  3) Destination Waypoint ID
+  4) Checksum
+
+****************************************************************
+
+New found in web: (data fields unknown)
+
+DSC - Digital Selective Calling Information
+DSE - Extended DSC
+DSI - DSC Transponder Initiate
+DSR - DSC Transponder Response
+DTM - Datum Reference
+GBS - GPS Satellite Fault Detection
+GRS - GPS Range Residuals
+GST - GPS Pseudorange Noise Statistics
+MSK - MSK Receiver Interface 
+MSS - MSK Receiver Signal Status 
+MWD - Wind Direction & Speed
+TLL - Target Latitude and Longitude
+WDC - Distance to Waypoint - Great Circle
+WDR - Distance to Waypoint - Rhumb Line
+ZDL - Time and Distance to Variable Point
\ No newline at end of file

Added: packages/gpsdrive/branches/etch/README
===================================================================
--- packages/gpsdrive/branches/etch/README	                        (rev 0)
+++ packages/gpsdrive/branches/etch/README	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,114 @@
+GPSDRIVE (c) 2001-2004 Fritz Ganter <ganter at ganter.at>
+-------------------------------------------------
+
+Website: www.gpsdrive.cc
+
+Disclaimer: Please do not use for navigation. 
+
+    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
+
+    *********************************************************************
+
+
+
+********************************************************************
+Please read the gpsdrive man page. To do so, install the program and
+type 
+
+man gpsdrive
+
+into a terminal window. With KDE Konqueror you can also see it with
+the URL: 
+
+man:gpsdrive
+
+Most information is now in the man page!
+
+Have also a look at the Changelog file at 
+http://www.gpsdrive.cc/Changelog.gpsdrive
+
+About MySQL support please read README.SQL!
+
+********************************************************************
+
+
+
+
+How to install the program:
+----------------------
+
+To compile gpsdrive you need to development packages of:
+
+GTK-+2.x (better >=2.2.x)
+pango
+atk
+pcre
+xdevel (X11 development)
+gettext
+libcrypt
+glibc
+
+also the compiler gcc >=3.x
+make
+
+
+To compile from the tarball:
+
+Extract it with "tar -xvzf gpsdrive*tar.gz"
+cd gpsdrive
+./configure 
+make
+
+If you don't need the support of the GARMIN protocol (you are using
+only NMEA protocol) you should configure GpsDrive with:
+
+./configure --disable-garmin
+
+You can also add --enable-auto-optimization for optimized compiler flags.
+
+
+As root you should do a 
+make install
+
+to install the program, the gpsd daemon and the language files.
+
+After compiling and installing (install is needed for localisation)
+read the manpage of gpsdrive or start the program if you are to lazy
+to read manuals. ;-)
+
+You can also download the RPM file and install it:
+
+rpm -Uvh gpsdrive*.rpm
+
+Uninstall:
+---------
+
+If you installed using the tarball:
+
+cd into the gpsdrive directory (not the src), then
+
+make uninstall
+
+If you used the rpm package:
+
+rpm -e gpsdrive
+
+
+
+Much more information you find in the manual page, read it with "man
+gpsdrive" or online at 
+
+http://www.gpsdrive.cc/man-en.html
+

Added: packages/gpsdrive/branches/etch/README.FreeBSD
===================================================================
--- packages/gpsdrive/branches/etch/README.FreeBSD	                        (rev 0)
+++ packages/gpsdrive/branches/etch/README.FreeBSD	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,38 @@
+$Id: README.FreeBSD,v 1.2 2002/05/20 09:35:00 ganter Exp $
+
+                    INSTALLING GPSDRIVE ON FREEBSD
+
+
+The easiest way to install Gpsdrive on FreeBSD is to use the FreeBSD port
+system: Go to http://www.freebsd.org/astro.html and search for "gpsdrive".
+
+
+To install a binary package, you can use the remote fetch capability of
+pkg_add:
+
+$ su -             [become root]
+# pkg_add -r gpsdrive
+# exit             [loose root]
+
+
+To install from source, make sure you have an updated ports tree [1] and then
+do the following:
+
+$ su -             [become root]
+# cd /usr/ports/astro/gpsdrive
+# make
+# make install
+# make clean
+# exit             [loose root]
+
+
+Enjoy!
+
+Feel free to contact me if you have questions regarding the FreeBSD port
+or if you want an updated version.
+
+Marco Molteni <molter at gufi.org>
+http://www.gufi.org/~molter/
+
+[1] http://www.freebsd.org/handbook/ports-using.html. To have an updated
+    ports collection you'll want to use CVSup, as described there.

Added: packages/gpsdrive/branches/etch/README.SQL
===================================================================
--- packages/gpsdrive/branches/etch/README.SQL	                        (rev 0)
+++ packages/gpsdrive/branches/etch/README.SQL	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,167 @@
+Version for gpsdrive-2.x
+
+Since version 1.29 GpsDrive supports SQL database support.
+
+Supported databases (September 2003): MySQL 
+
+Compiling:
+----------
+There is no MySQL needed for compiling, the needed library
+libmysqlclient.so.10 will be loaded at runtime, if found.
+
+Running and first initialization:
+---------------------------------
+If you have not already done, install the mysql server package for
+your distribution.
+
+o Start the server, mostly with: /etc/init.d/mysql start
+
+o To create a initial database use to included SQL file 'create.sql'.
+  Make sure, that the user  have enough permissions to create this table
+  and grant the permissions! 
+
+  mysql < create.sql
+  (add username and login options if needed)
+  i.e.:
+  mysql -u root -p <create.sql
+
+  If you have no password for root (this is the case if you newly
+  installed mysql) so use this command:
+
+  mysql -u root <create.sql
+
+  You may change the string gast at localhost to gast@'%' if you want to
+  use the database from other hosts.
+
+
+Update:
+-------
+If you have already the database and you update GpsDrive, make sure
+your table structure is the same like in create.sql.
+
+Managing the SQL server:
+------------------------
+
+A good tool is mysqlcc, download it from:
+
+http://www.mysql.com/downloads/gui-mycc.html
+
+Security:
+---------
+GpsDrive uses the username 'gast' and the password 'gast' as default
+to access the table 'waypoints' in the database 'geoinfo'. If you want to
+change this in the SQL database, so change this in GpsDrive also. For
+this, edit the file $HOME/.gpsdrive/gpsdriverc (dbuser,dbpass).
+
+Be aware that the MySQL password for this database is stored in
+cleartext in gpsdriverc!!!
+
+
+Importing existing waypoint files:
+----------------------------------
+I also provided the script 'wp2sql', which creates the .sql input file
+from gpsdrive waypointfiles. 
+
+Change it for your needs first!!!!
+
+Then do 
+
+mysql -u gast -pgast <wp.sql
+
+You can also import ASCII files with the 'mysqlimport' program.
+
+=======================================================================
+IMPORTANT:
+
+Select the 'Use SQL' button to use the SQL generated waypoints.
+
+=======================================================================
+
+Waypoint types:
+---------------
+
+You can define freely your waypoint type names. But there are special
+names, which results in special icons display in GpsDrive:
+
+WLAN	     : open WLAN accesspoint
+WLAN-WEP     : crypted WLAN accesspoint
+Rest	     : a restaurant
+McDonalds    : a kind of restaurant
+BurgerKing   : another kind of restaurant
+Hotel	     : A hotel
+Shop	     : Shop
+Monu	     : Monument, touristic attraction
+Speedtrap    : Speedtrap (Radar), gives warning if this is in front of
+	       you
+Nightclub    : Pssst...
+Airport	     : Airport
+Golf	     : Golf course
+Gasstation   : Gasstation
+Cafe	     : coffee bar
+Geocache     : Geocache point
+
+The names are case insensitive.
+
+You can also use your own icons, see man page for details.
+
+Backing up and restoring your database
+--------------------------------------
+Sven added the two shell scripts gpssql_backup.sh and gpssql_restore.sh for
+very simple use. Just read the comments within those scripts for usage
+information.
+
+
+
+Editing your waypoints:
+-----------------------
+
+You can either use "mysqlcc", "phpmyadmin" or OpenOffice to edit the waypoints.
+
+Here is a little HowTo from Charles Curley <charlescurley at charlescurley.com>
+
+One of the really nice things about OpenOffice.org
+(http://OpenOffice.org/) is that you can use databases as data sources
+for documents and spreadsheets, rather like MS Access and MS Office. I
+just set up the GpsDrive waypoints MySQL database as a data source,
+and thought I'd annotate how I did it -- if for no other reason than
+so I have a note on how to do it.
+
+I did it on Fedora Core Linux. This should work on other Linux disties
+as well.
+
+First, you get John McCreesh's "OpenOffice.org 1.0, ODBC, and MySQL
+'How-to'" (http://www.unixodbc.org/doc/OOoMySQL9.pdf), read it through
+page 7, then and do exactly what the man says, step by step. His
+instructions are for Red Hat 9, and I had no problems. His
+instructions are for OpenOffice.org 1.0, but I had no problems on
+OpenOffice.org 1.1.
+
+I used exactly his [MySQL] stanza in /etc/odbcinst.ini. For odbc.ini,
+I made two changes. First, I used ~/.odbc.ini instead of /etc/odbc.ini
+for tighter security. Second, I used a customized stanza for the
+geoinfo database:
+
+[geoinfo]
+Trace    = Off
+TraceFile= stderr
+Driver   = MySQL
+SERVER   = localhost
+Database = geoinfo
+USER     = gast
+PASSWORD = gast
+PORT     = 3306
+
+To test the ODBC connection to MySQL, you run isql like so:
+
+isql <dbname> <user> <password>
+isql geoinfo gast gast
+
+and in isql, run:
+
+select * on waypoints
+
+The only other change is that in the ODBC tab of the Data Source
+Administration window, check "password required" and enter a user name
+of "gast".
+
+The result is a nice GUI tool for editing one's waypoints.

Added: packages/gpsdrive/branches/etch/README.gpspoint2gspdrive
===================================================================
--- packages/gpsdrive/branches/etch/README.gpspoint2gspdrive	                        (rev 0)
+++ packages/gpsdrive/branches/etch/README.gpspoint2gspdrive	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,37 @@
+NAME
+	gpspoint2gpsdrive.pl
+
+SYNOPSIS
+	gpspoint2gpsdrive -[vhf] [gpspoint-file]
+
+DESCRIPTION
+	Extract track information from a gpspoint file and write in 
+	gpsdrive format track files (track*.sav) for viewing tracks.
+
+	Using this script you can load tracks into gpsdrive and see where
+	you have been!  Useful if you have not been carrying your computer
+	around with you.
+
+COMMAND-LINE OPTIONS
+	-h	Display usage information.
+	
+	-v	Be verbose about the extraction.
+
+	-f 	Specify what file to get the data from.
+
+NOTES
+	Uses the names supplied by the GPS to form the names of the track 
+	files, will OVERWRITE any extant track files with the same names.
+	Although altitude information is converted, I don't think gpsdrive
+	makes any use of it (yet).
+
+SEE ALSO
+	gpspoint
+	gpsdrive
+
+AUTHOR
+	Steve Merrony (steve at cygnet.co.uk)
+
+	Please send bug reports to the above address.
+
+	

Added: packages/gpsdrive/branches/etch/README.kismet
===================================================================
--- packages/gpsdrive/branches/etch/README.kismet	                        (rev 0)
+++ packages/gpsdrive/branches/etch/README.kismet	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,55 @@
+Attention!!!!
+
+Gpsdrive (starting with version 1.31) only supports the newer
+kismet version (>=2.8.0) because the server format has changed.
+Older versions of GpsDrive works only with kismet 2.6.x
+=================================================================
+
+
+GpsDrive supports the wireless sniffer 'kismet'.
+
+Kismet is a 802.11b wireless network sniffer. It is capable of
+sniffing using almost any wireless card supported in Linux, including
+Prism2 based cards supported by the Wlan-NG project (Linksys, Dlink,
+Rangelan, etc), cards which support standard packet capture via
+libpcap (Cisco), and limited support for cards without RF Monitor
+support.
+
+More info about kismet: http://www.kismetwireless.net
+
+How do I use GpsDrive with kismet?
+----------------------------------
+
+You have to start kismet first (gpsd must be running before kismet, so
+kismet can detect the presence of a gps receiver).
+After kismet is running, start GpsDrive. If you have speech output,
+you get a voice information that kismet was found.
+
+Kismet support of GpsDrive is only available if you use SQL-Support
+and 'use SQL' is selected in GpsDrive.
+
+What does GpsDrive do with kismet?
+----------------------------------
+
+If kismet detects a wireless accesspoint, it is stored in the SQL
+database and an icon is shown on the map (a open lock symbol for an
+uncrypted Network, a closed lock symbol for an accesspoint using WEP
+encryption). You have to enable the waypoints in Settings/SQL menu.
+
+If you have speech output, you hear a message about the new waypoint.
+
+
+since v2.04:
+============
+GpsDrive stores new accesspoints and updates them, if their position
+changed. If kismet gives "best" values for lat/lon, then this values
+are stored also all other parameter like encrypted or not.
+
+Important:
+==========
+Sometimes kismet detects a new AP, but GpsDrive don't stores it. This
+is because kismet provides no valid GPS position at this moment.
+
+
+
+

Added: packages/gpsdrive/branches/etch/README.nasamaps
===================================================================
--- packages/gpsdrive/branches/etch/README.nasamaps	                        (rev 0)
+++ packages/gpsdrive/branches/etch/README.nasamaps	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,107 @@
+
+There is support for satellite images from the NASA now!
+You need GpsDrive version >=2.08
+
+To get the maps you have 3 choices:
+======================================================================
+1) From the original site (only gzip compressed)
+
+Goto 
+ftp://mitch.gsfc.nasa.gov/pub/stockli/bluemarble/
+
+If you are west, download 
+MOD09A1.W.interpol.cyl.retouched.topo.3x21600x21600.gz 
+
+if you are east, download
+MOD09A1.E.interpol.cyl.retouched.topo.3x21600x21600.gz 
+
+If you are in England or West Europe, you need both files, 
+because they have to overlap.
+
+
+
+2) Download it via ED2k Link (bzip2 compressed):
+
+ed2k://|file|top_nasamap_east.raw.bz2|379972653|7312437945bd47ccf0b2a0c3452d5836|/
+ed2k://|file|top_nasamap_west.raw.bz2|226307352|13ab6e8a6e014fa23bb83db25855bb71|/
+
+This files have a uncompressed size of 1.4GB each and are in raw RGB format.
+The bzip2 compressed files are 363MB (east) and 216MB (west) in size.
+
+3) Download from the GpsDrive website (bzip2 compressed):
+
+http://www.gpsdrive.cc/nasamaps/
+
+This are the same file as in 2)
+
+Because I have to pay for the traffic, try method 1 and 2 first or
+goto http://www.gpsdrive.cc and click on the donation button.
+
+======================================================================
+
+
+How to install the maps:
+
+create a directory ~/.gpsdrive/nasamaps
+unzip the files (gunzip filename)
+
+Move the file(s) into this directory and rename it
+
+rename MOD09A1.E.*   to top_nasamap_east.raw 
+and/or
+rename MOD09A1.W.*   to top_nasamap_west.raw
+
+You can use this maps with GpsDrive >=2.08pre7
+
+
+
+The smaller maps (1280x1024) which GpsDrive needs, are created on the
+fly from this maps (which have a resolution of 21600*21600). So you
+get a map for every position on the world.
+
+To see the map, you have to select "Topo map" in the "Shown map type"
+field and perhaps unselect "Street map".
+
+MAP OF THE WORLD
+================
+
+GpsDrive >=2.08 includes now the file top_GPSWORLD.jpg which is
+shown if you use GpsDrive the first time and no maps are downloaded
+yet.
+
+To use this map at a later time, copy it into your maps directory,
+
+RENAME it i.e to top_world.jpg
+and add this entry to your map_koord.txt file:
+
+top_world.jpg 0.00000 0.00000 88226037
+
+or for german locale (and all that have a koma as decimal point):
+top_world.jpg 0,00000 0,00000 88226037
+
+
+From the map source:
+====================
+
+You find the project page at
+http://earthobservatory.nasa.gov/Newsroom/BlueMarble/
+
+When using these datasets please give credits to:
+-------------------------------------------------
+Author: 
+Reto Stöckli, NASA/Goddard Space Flight Center, stockli at cyberlink.ch
+
+Address of correspondance:
+Reto Stöckli                    Phone:  +41 (0)1 271 8463
+NASA GSFC/ SSAI                 Email:  stockli at cyberlink.ch
+Landenbergstr. 16a              Web:    http://visibleearth.nasa.gov
+8037 Zürich Switzerland                 http://earthobservatory.nasa.gov
+
+Supervisors: 
+Fritz Hasler and David Herring, NASA/Goddard Space Flight Center
+
+Funding:
+This project was realized under the SSAI subcontract 2101-01-027 (NAS5-01070)
+
+
+last modification: 01/31/2004

Added: packages/gpsdrive/branches/etch/TODO
===================================================================
--- packages/gpsdrive/branches/etch/TODO	                        (rev 0)
+++ packages/gpsdrive/branches/etch/TODO	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,17 @@
+Command line switch to set gpsd hostname and port for remote control.
+
+Add additional server: expedia.com
+
+Add  load of trackings (i.e. stored in the GPS and
+converted with a nice perl script anyone will write).
+
+Servermode to display different positions provided over Internet
+server.
+
+
+resizing of window
+centering of map to selected points
+
+render maps in greyscale
+
+create ~/.gpsdrive directory and files if missing.

Added: packages/gpsdrive/branches/etch/acinclude.m4
===================================================================
--- packages/gpsdrive/branches/etch/acinclude.m4	                        (rev 0)
+++ packages/gpsdrive/branches/etch/acinclude.m4	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,61 @@
+##   -*- autoconf -*-
+
+dnl this file is a fragment of acinclude.m4 from kdelibs-3.1.2
+dnl (copyright notice and AC_CHECK_SOCKLEN_T function)
+
+dnl    This file is part of the KDE libraries/packages
+dnl    Copyright (C) 1997 Janos Farkas (chexum at shadow.banki.hu)
+dnl              (C) 1997,98,99 Stephan Kulow (coolo at kde.org)
+
+dnl    This file is free software; you can redistribute it and/or
+dnl    modify it under the terms of the GNU Library General Public
+dnl    License as published by the Free Software Foundation; either
+dnl    version 2 of the License, or (at your option) any later version.
+
+dnl    This library is distributed in the hope that it will be useful,
+dnl    but WITHOUT ANY WARRANTY; without even the implied warranty of
+dnl    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+dnl    Library General Public License for more details.
+
+dnl    You should have received a copy of the GNU Library General Public License
+dnl    along with this library; see the file COPYING.LIB.  If not, write to
+dnl    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+dnl    Boston, MA 02111-1307, USA.
+
+dnl Check for the type of the third argument of getsockname
+AC_DEFUN(AC_CHECK_SOCKLEN_T, [
+  AC_MSG_CHECKING(for socklen_t)
+  AC_CACHE_VAL(ac_cv_socklen_t, [
+    AC_LANG_SAVE
+    AC_LANG_CPLUSPLUS
+    AC_TRY_COMPILE([
+#include <sys/types.h>
+#include <sys/socket.h>
+      ],[
+socklen_t a=0;
+getsockname(0,(struct sockaddr*)0, &a);
+      ],
+      ac_cv_socklen_t=socklen_t,
+      AC_TRY_COMPILE([
+#include <sys/types.h>
+#include <sys/socket.h>
+        ],[
+int a=0;
+getsockname(0,(struct sockaddr*)0, &a);
+        ],
+        ac_cv_socklen_t=int,
+        ac_cv_socklen_t=size_t
+      )
+    )
+    AC_LANG_RESTORE
+  ])
+
+  AC_MSG_RESULT($ac_cv_socklen_t)
+  if test "$ac_cv_socklen_t" != "socklen_t"; then
+    AC_DEFINE_UNQUOTED(socklen_t, $ac_cv_socklen_t,
+        [Define the real type of socklen_t])
+  fi
+dnl gpsdrive doesn't need ksize_t
+dnl  AC_DEFINE_UNQUOTED(ksize_t, socklen_t, [Compatibility define])
+
+])

Added: packages/gpsdrive/branches/etch/aclocal.m4
===================================================================
--- packages/gpsdrive/branches/etch/aclocal.m4	                        (rev 0)
+++ packages/gpsdrive/branches/etch/aclocal.m4	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,5373 @@
+# generated automatically by aclocal 1.7.6 -*- Autoconf -*-
+
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
+# 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.
+
+
+dnl this file is a fragment of acinclude.m4 from kdelibs-3.1.2
+dnl (copyright notice and AC_CHECK_SOCKLEN_T function)
+
+dnl    This file is part of the KDE libraries/packages
+dnl    Copyright (C) 1997 Janos Farkas (chexum at shadow.banki.hu)
+dnl              (C) 1997,98,99 Stephan Kulow (coolo at kde.org)
+
+dnl    This file is free software; you can redistribute it and/or
+dnl    modify it under the terms of the GNU Library General Public
+dnl    License as published by the Free Software Foundation; either
+dnl    version 2 of the License, or (at your option) any later version.
+
+dnl    This library is distributed in the hope that it will be useful,
+dnl    but WITHOUT ANY WARRANTY; without even the implied warranty of
+dnl    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+dnl    Library General Public License for more details.
+
+dnl    You should have received a copy of the GNU Library General Public License
+dnl    along with this library; see the file COPYING.LIB.  If not, write to
+dnl    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+dnl    Boston, MA 02111-1307, USA.
+
+dnl Check for the type of the third argument of getsockname
+AC_DEFUN(AC_CHECK_SOCKLEN_T, [
+  AC_MSG_CHECKING(for socklen_t)
+  AC_CACHE_VAL(ac_cv_socklen_t, [
+    AC_LANG_SAVE
+    AC_LANG_CPLUSPLUS
+    AC_TRY_COMPILE([
+#include <sys/types.h>
+#include <sys/socket.h>
+      ],[
+socklen_t a=0;
+getsockname(0,(struct sockaddr*)0, &a);
+      ],
+      ac_cv_socklen_t=socklen_t,
+      AC_TRY_COMPILE([
+#include <sys/types.h>
+#include <sys/socket.h>
+        ],[
+int a=0;
+getsockname(0,(struct sockaddr*)0, &a);
+        ],
+        ac_cv_socklen_t=int,
+        ac_cv_socklen_t=size_t
+      )
+    )
+    AC_LANG_RESTORE
+  ])
+
+  AC_MSG_RESULT($ac_cv_socklen_t)
+  if test "$ac_cv_socklen_t" != "socklen_t"; then
+    AC_DEFINE_UNQUOTED(socklen_t, $ac_cv_socklen_t,
+        [Define the real type of socklen_t])
+  fi
+dnl gpsdrive doesn't need ksize_t
+dnl  AC_DEFINE_UNQUOTED(ksize_t, socklen_t, [Compatibility define])
+
+])
+
+# 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 10
+
+AC_PREREQ([2.54])
+
+# Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
+# the ones we care about.
+m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
+
+# 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_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
+# 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])
+
+# Copyright 2002  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
+
+# 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.7"])
+
+# 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.7.6])])
+
+# Helper functions for option handling.                    -*- Autoconf -*-
+
+# Copyright 2001, 2002  Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU 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 1996, 1997, 2000, 2001 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)])
+
+#  -*- Autoconf -*-
+
+
+# Copyright 1997, 1999, 2000, 2001 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_AUX_DIR_EXPAND
+
+# Copyright 2001 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.
+
+# Rely on autoconf to set up CDPATH properly.
+AC_PREREQ([2.50])
+
+AC_DEFUN([AM_AUX_DIR_EXPAND], [
+# expand $ac_aux_dir to an absolute path
+am_aux_dir=`cd $ac_aux_dir && pwd`
+])
+
+# AM_PROG_INSTALL_SH
+# ------------------
+# Define $install_sh.
+
+# Copyright 2001 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)])
+
+# AM_PROG_INSTALL_STRIP
+
+# Copyright 2001 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])])
+
+#                                                          -*- 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])])
+
+# serial 5						-*- Autoconf -*-
+
+# Copyright (C) 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.
+
+
+# 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
+      : > 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
+      # (even with -Werror).  So we grep stderr for any message
+      # that says an option was ignored.
+      if grep 'ignoring option' 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 builds
+  --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 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU 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 -e '/^DEPDIR = / s///p' < "$mf"`
+  test -z "$DEPDIR" && continue
+  # When using ansi2knr, U may be empty or an underscore; expand it
+  U=`sed -n -e '/^U = / s///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 -e '
+    /^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"])
+])
+
+# 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
+])
+
+# AM_CONDITIONAL                                              -*- Autoconf -*-
+
+# Copyright 1997, 2000, 2001 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 5
+
+AC_PREREQ(2.52)
+
+# AM_CONDITIONAL(NAME, SHELL-CONDITION)
+# -------------------------------------
+# Define a conditional.
+AC_DEFUN([AM_CONDITIONAL],
+[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])])
+
+# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
+
+# serial 46 AC_PROG_LIBTOOL
+
+AC_DEFUN([AC_PROG_LIBTOOL],
+[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
+
+# This can be used to rebuild libtool when needed
+LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
+
+# Always use our own libtool.
+LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+AC_SUBST(LIBTOOL)dnl
+
+# Prevent multiple expansion
+define([AC_PROG_LIBTOOL], [])
+])
+
+AC_DEFUN([AC_LIBTOOL_SETUP],
+[AC_PREREQ(2.13)dnl
+AC_REQUIRE([AC_ENABLE_SHARED])dnl
+AC_REQUIRE([AC_ENABLE_STATIC])dnl
+AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
+AC_REQUIRE([AC_CANONICAL_HOST])dnl
+AC_REQUIRE([AC_CANONICAL_BUILD])dnl
+AC_REQUIRE([AC_PROG_CC])dnl
+AC_REQUIRE([AC_PROG_LD])dnl
+AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
+AC_REQUIRE([AC_PROG_NM])dnl
+AC_REQUIRE([LT_AC_PROG_SED])dnl
+
+AC_REQUIRE([AC_PROG_LN_S])dnl
+AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
+AC_REQUIRE([AC_OBJEXT])dnl
+AC_REQUIRE([AC_EXEEXT])dnl
+dnl
+
+_LT_AC_PROG_ECHO_BACKSLASH
+# Only perform the check for file, if the check method requires it
+case $deplibs_check_method in
+file_magic*)
+  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
+    AC_PATH_MAGIC
+  fi
+  ;;
+esac
+
+AC_CHECK_TOOL(RANLIB, ranlib, :)
+AC_CHECK_TOOL(STRIP, strip, :)
+
+ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
+ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
+enable_win32_dll=yes, enable_win32_dll=no)
+
+AC_ARG_ENABLE(libtool-lock,
+  [  --disable-libtool-lock  avoid locking (might break parallel builds)])
+test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
+
+# Some flags need to be propagated to the compiler or linker for good
+# libtool support.
+case $host in
+*-*-irix6*)
+  # Find out which ABI we are using.
+  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
+  if AC_TRY_EVAL(ac_compile); then
+    case `/usr/bin/file conftest.$ac_objext` in
+    *32-bit*)
+      LD="${LD-ld} -32"
+      ;;
+    *N32*)
+      LD="${LD-ld} -n32"
+      ;;
+    *64-bit*)
+      LD="${LD-ld} -64"
+      ;;
+    esac
+  fi
+  rm -rf conftest*
+  ;;
+
+*-*-linux*)
+  # Test if the compiler is 64bit
+  echo 'int i;' > conftest.$ac_ext
+  lt_cv_cc_64bit_output=no
+  if AC_TRY_EVAL(ac_compile); then
+    case `/usr/bin/file conftest.$ac_objext` in
+    *"ELF 64"*)
+      lt_cv_cc_64bit_output=yes
+      ;;
+    esac
+  fi
+  rm -rf conftest*
+  ;;
+  
+*-*-sco3.2v5*)
+  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
+  SAVE_CFLAGS="$CFLAGS"
+  CFLAGS="$CFLAGS -belf"
+  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
+    [AC_LANG_SAVE
+     AC_LANG_C
+     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
+     AC_LANG_RESTORE])
+  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
+    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
+    CFLAGS="$SAVE_CFLAGS"
+  fi
+  ;;
+
+ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
+[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
+  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
+  AC_CHECK_TOOL(AS, as, false)
+  AC_CHECK_TOOL(OBJDUMP, objdump, false)
+
+  # recent cygwin and mingw systems supply a stub DllMain which the user
+  # can override, but on older systems we have to supply one
+  AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain,
+    [AC_TRY_LINK([],
+      [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
+      DllMain (0, 0, 0);],
+      [lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])])
+
+  case $host/$CC in
+  *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
+    # old mingw systems require "-dll" to link a DLL, while more recent ones
+    # require "-mdll"
+    SAVE_CFLAGS="$CFLAGS"
+    CFLAGS="$CFLAGS -mdll"
+    AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch,
+      [AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])])
+    CFLAGS="$SAVE_CFLAGS" ;;
+  *-*-cygwin* | *-*-pw32*)
+    # cygwin systems need to pass --dll to the linker, and not link
+    # crt.o which will require a WinMain at 16 definition.
+    lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
+  esac
+  ;;
+  ])
+esac
+
+_LT_AC_LTCONFIG_HACK
+
+])
+
+# AC_LIBTOOL_HEADER_ASSERT
+# ------------------------
+AC_DEFUN([AC_LIBTOOL_HEADER_ASSERT],
+[AC_CACHE_CHECK([whether $CC supports assert without backlinking],
+    [lt_cv_func_assert_works],
+    [case $host in
+    *-*-solaris*)
+      if test "$GCC" = yes && test "$with_gnu_ld" != yes; then
+        case `$CC --version 2>/dev/null` in
+        [[12]].*) lt_cv_func_assert_works=no ;;
+        *)        lt_cv_func_assert_works=yes ;;
+        esac
+      fi
+      ;;
+    esac])
+
+if test "x$lt_cv_func_assert_works" = xyes; then
+  AC_CHECK_HEADERS(assert.h)
+fi
+])# AC_LIBTOOL_HEADER_ASSERT
+
+# _LT_AC_CHECK_DLFCN
+# --------------------
+AC_DEFUN([_LT_AC_CHECK_DLFCN],
+[AC_CHECK_HEADERS(dlfcn.h)
+])# _LT_AC_CHECK_DLFCN
+
+# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
+# ---------------------------------
+AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
+[AC_REQUIRE([AC_CANONICAL_HOST])
+AC_REQUIRE([AC_PROG_NM])
+AC_REQUIRE([AC_OBJEXT])
+# Check for command to grab the raw symbol name followed by C symbol from nm.
+AC_MSG_CHECKING([command to parse $NM output])
+AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [dnl
+
+# These are sane defaults that work on at least a few old systems.
+# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
+
+# Character class describing NM global symbol codes.
+symcode='[[BCDEGRST]]'
+
+# Regexp to match symbols that can be accessed directly from C.
+sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
+
+# Transform the above into a raw symbol and a C symbol.
+symxfrm='\1 \2\3 \3'
+
+# Transform an extracted symbol line into a proper C declaration
+lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
+
+# Transform an extracted symbol line into symbol name and symbol address
+lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
+
+# Define system-specific variables.
+case $host_os in
+aix*)
+  symcode='[[BCDT]]'
+  ;;
+cygwin* | mingw* | pw32*)
+  symcode='[[ABCDGISTW]]'
+  ;;
+hpux*) # Its linker distinguishes data from code symbols
+  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
+  lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
+  ;;
+irix* | nonstopux*)
+  symcode='[[BCDEGRST]]'
+  ;;
+osf*)
+  symcode='[[BCDEGQRST]]'
+  ;;
+solaris* | sysv5*)
+  symcode='[[BDT]]'
+  ;;
+sysv4)
+  symcode='[[DFNSTU]]'
+  ;;
+esac
+
+# Handle CRLF in mingw tool chain
+opt_cr=
+case $host_os in
+mingw*)
+  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
+  ;;
+esac
+
+# If we're using GNU nm, then use its standard symbol codes.
+if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
+  symcode='[[ABCDGISTW]]'
+fi
+
+# Try without a prefix undercore, then with it.
+for ac_symprfx in "" "_"; do
+
+  # Write the raw and C identifiers.
+lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ 	]]\($symcode$symcode*\)[[ 	]][[ 	]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
+
+  # Check to see that the pipe works correctly.
+  pipe_works=no
+  rm -f conftest*
+  cat > conftest.$ac_ext <<EOF
+#ifdef __cplusplus
+extern "C" {
+#endif
+char nm_test_var;
+void nm_test_func(){}
+#ifdef __cplusplus
+}
+#endif
+int main(){nm_test_var='a';nm_test_func();return(0);}
+EOF
+
+  if AC_TRY_EVAL(ac_compile); then
+    # Now try to grab the symbols.
+    nlist=conftest.nm
+    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
+      # Try sorting and uniquifying the output.
+      if sort "$nlist" | uniq > "$nlist"T; then
+	mv -f "$nlist"T "$nlist"
+      else
+	rm -f "$nlist"T
+      fi
+
+      # Make sure that we snagged all the symbols we need.
+      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
+	if egrep ' nm_test_func$' "$nlist" >/dev/null; then
+	  cat <<EOF > conftest.$ac_ext
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+EOF
+	  # Now generate the symbol file.
+	  eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
+
+	  cat <<EOF >> conftest.$ac_ext
+#if defined (__STDC__) && __STDC__
+# define lt_ptr void *
+#else
+# define lt_ptr char *
+# define const
+#endif
+
+/* The mapping between symbol names and symbols. */
+const struct {
+  const char *name;
+  lt_ptr address;
+}
+lt_preloaded_symbols[[]] =
+{
+EOF
+	  sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
+	  cat <<\EOF >> conftest.$ac_ext
+  {0, (lt_ptr) 0}
+};
+
+#ifdef __cplusplus
+}
+#endif
+EOF
+	  # Now try linking the two files.
+	  mv conftest.$ac_objext conftstm.$ac_objext
+	  save_LIBS="$LIBS"
+	  save_CFLAGS="$CFLAGS"
+	  LIBS="conftstm.$ac_objext"
+	  CFLAGS="$CFLAGS$no_builtin_flag"
+	  if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
+	    pipe_works=yes
+	  fi
+	  LIBS="$save_LIBS"
+	  CFLAGS="$save_CFLAGS"
+	else
+	  echo "cannot find nm_test_func in $nlist" >&AC_FD_CC
+	fi
+      else
+	echo "cannot find nm_test_var in $nlist" >&AC_FD_CC
+      fi
+    else
+      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AC_FD_CC
+    fi
+  else
+    echo "$progname: failed program was:" >&AC_FD_CC
+    cat conftest.$ac_ext >&5
+  fi
+  rm -f conftest* conftst*
+
+  # Do not use the global_symbol_pipe unless it works.
+  if test "$pipe_works" = yes; then
+    break
+  else
+    lt_cv_sys_global_symbol_pipe=
+  fi
+done
+])
+global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
+if test -z "$lt_cv_sys_global_symbol_pipe"; then
+  global_symbol_to_cdecl=
+  global_symbol_to_c_name_address=
+else
+  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
+  global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
+fi
+if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
+then
+  AC_MSG_RESULT(failed)
+else
+  AC_MSG_RESULT(ok)
+fi
+]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
+
+# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
+# ---------------------------------
+AC_DEFUN([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR],
+[# Find the correct PATH separator.  Usually this is `:', but
+# DJGPP uses `;' like DOS.
+if test "X${PATH_SEPARATOR+set}" != Xset; then
+  UNAME=${UNAME-`uname 2>/dev/null`}
+  case X$UNAME in
+    *-DOS) lt_cv_sys_path_separator=';' ;;
+    *)     lt_cv_sys_path_separator=':' ;;
+  esac
+  PATH_SEPARATOR=$lt_cv_sys_path_separator
+fi
+])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
+
+# _LT_AC_PROG_ECHO_BACKSLASH
+# --------------------------
+# Add some code to the start of the generated configure script which
+# will find an echo command which doesn't interpret backslashes.
+AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
+[ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
+			      [AC_DIVERT_PUSH(NOTICE)])
+_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
+
+# Check that we are running under the correct shell.
+SHELL=${CONFIG_SHELL-/bin/sh}
+
+case X$ECHO in
+X*--fallback-echo)
+  # Remove one level of quotation (which was required for Make).
+  ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
+  ;;
+esac
+
+echo=${ECHO-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.
+  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
+fi
+
+if test "X[$]1" = X--fallback-echo; then
+  # used as fallback echo
+  shift
+  cat <<EOF
+$*
+EOF
+  exit 0
+fi
+
+# The HP-UX ksh and POSIX shell print the target directory to stdout
+# if CDPATH is set.
+if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
+
+if test -z "$ECHO"; then
+if test "X${echo_test_string+set}" != Xset; then
+# find a string as large as possible, as long as the shell can cope with it
+  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
+    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
+    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
+       echo_test_string="`eval $cmd`" &&
+       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
+    then
+      break
+    fi
+  done
+fi
+
+if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
+   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
+   test "X$echo_testing_string" = "X$echo_test_string"; then
+  :
+else
+  # The Solaris, AIX, and Digital Unix default echo programs unquote
+  # backslashes.  This makes it impossible to quote backslashes using
+  #   echo "$something" | sed 's/\\/\\\\/g'
+  #
+  # So, first we look for a working echo in the user's PATH.
+
+  IFS="${IFS= 	}"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+  for dir in $PATH /usr/ucb; do
+    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
+       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
+       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
+       test "X$echo_testing_string" = "X$echo_test_string"; then
+      echo="$dir/echo"
+      break
+    fi
+  done
+  IFS="$save_ifs"
+
+  if test "X$echo" = Xecho; then
+    # We didn't find a better echo, so look for alternatives.
+    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
+       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
+       test "X$echo_testing_string" = "X$echo_test_string"; then
+      # This shell has a builtin print -r that does the trick.
+      echo='print -r'
+    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
+	 test "X$CONFIG_SHELL" != X/bin/ksh; then
+      # If we have ksh, try running configure again with it.
+      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
+      export ORIGINAL_CONFIG_SHELL
+      CONFIG_SHELL=/bin/ksh
+      export CONFIG_SHELL
+      exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
+    else
+      # Try using printf.
+      echo='printf %s\n'
+      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
+	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
+	 test "X$echo_testing_string" = "X$echo_test_string"; then
+	# Cool, printf works
+	:
+      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
+	   test "X$echo_testing_string" = 'X\t' &&
+	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
+	   test "X$echo_testing_string" = "X$echo_test_string"; then
+	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
+	export CONFIG_SHELL
+	SHELL="$CONFIG_SHELL"
+	export SHELL
+	echo="$CONFIG_SHELL [$]0 --fallback-echo"
+      elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
+	   test "X$echo_testing_string" = 'X\t' &&
+	   echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
+	   test "X$echo_testing_string" = "X$echo_test_string"; then
+	echo="$CONFIG_SHELL [$]0 --fallback-echo"
+      else
+	# maybe with a smaller string...
+	prev=:
+
+	for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
+	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
+	  then
+	    break
+	  fi
+	  prev="$cmd"
+	done
+
+	if test "$prev" != 'sed 50q "[$]0"'; then
+	  echo_test_string=`eval $prev`
+	  export echo_test_string
+	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
+	else
+	  # Oops.  We lost completely, so just stick with echo.
+	  echo=echo
+	fi
+      fi
+    fi
+  fi
+fi
+fi
+
+# Copy echo and quote the copy suitably for passing to libtool from
+# the Makefile, instead of quoting the original, which is used later.
+ECHO=$echo
+if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
+   ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
+fi
+
+AC_SUBST(ECHO)
+AC_DIVERT_POP
+])# _LT_AC_PROG_ECHO_BACKSLASH
+
+# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
+#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
+# ------------------------------------------------------------------
+AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
+[if test "$cross_compiling" = yes; then :
+  [$4]
+else
+  AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
+  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
+  lt_status=$lt_dlunknown
+  cat > conftest.$ac_ext <<EOF
+[#line __oline__ "configure"
+#include "confdefs.h"
+
+#if HAVE_DLFCN_H
+#include <dlfcn.h>
+#endif
+
+#include <stdio.h>
+
+#ifdef RTLD_GLOBAL
+#  define LT_DLGLOBAL		RTLD_GLOBAL
+#else
+#  ifdef DL_GLOBAL
+#    define LT_DLGLOBAL		DL_GLOBAL
+#  else
+#    define LT_DLGLOBAL		0
+#  endif
+#endif
+
+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
+   find out it does not work in some platform. */
+#ifndef LT_DLLAZY_OR_NOW
+#  ifdef RTLD_LAZY
+#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
+#  else
+#    ifdef DL_LAZY
+#      define LT_DLLAZY_OR_NOW		DL_LAZY
+#    else
+#      ifdef RTLD_NOW
+#        define LT_DLLAZY_OR_NOW	RTLD_NOW
+#      else
+#        ifdef DL_NOW
+#          define LT_DLLAZY_OR_NOW	DL_NOW
+#        else
+#          define LT_DLLAZY_OR_NOW	0
+#        endif
+#      endif
+#    endif
+#  endif
+#endif
+
+#ifdef __cplusplus
+extern "C" void exit (int);
+#endif
+
+void fnord() { int i=42;}
+int main ()
+{
+  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
+  int status = $lt_dlunknown;
+
+  if (self)
+    {
+      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
+      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
+      /* dlclose (self); */
+    }
+
+    exit (status);
+}]
+EOF
+  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
+    (./conftest; exit; ) 2>/dev/null
+    lt_status=$?
+    case x$lt_status in
+      x$lt_dlno_uscore) $1 ;;
+      x$lt_dlneed_uscore) $2 ;;
+      x$lt_unknown|x*) $3 ;;
+    esac
+  else :
+    # compilation failed
+    $3
+  fi
+fi
+rm -fr conftest*
+])# _LT_AC_TRY_DLOPEN_SELF
+
+# AC_LIBTOOL_DLOPEN_SELF
+# -------------------
+AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
+[if test "x$enable_dlopen" != xyes; then
+  enable_dlopen=unknown
+  enable_dlopen_self=unknown
+  enable_dlopen_self_static=unknown
+else
+  lt_cv_dlopen=no
+  lt_cv_dlopen_libs=
+
+  case $host_os in
+  beos*)
+    lt_cv_dlopen="load_add_on"
+    lt_cv_dlopen_libs=
+    lt_cv_dlopen_self=yes
+    ;;
+
+  cygwin* | mingw* | pw32*)
+    lt_cv_dlopen="LoadLibrary"
+    lt_cv_dlopen_libs=
+   ;;
+
+  *)
+    AC_CHECK_FUNC([shl_load],
+          [lt_cv_dlopen="shl_load"],
+      [AC_CHECK_LIB([dld], [shl_load],
+            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
+	[AC_CHECK_FUNC([dlopen],
+	      [lt_cv_dlopen="dlopen"],
+	  [AC_CHECK_LIB([dl], [dlopen],
+	        [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
+	    [AC_CHECK_LIB([svld], [dlopen],
+	          [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
+	      [AC_CHECK_LIB([dld], [dld_link],
+	            [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
+	      ])
+	    ])
+	  ])
+	])
+      ])
+    ;;
+  esac
+
+  if test "x$lt_cv_dlopen" != xno; then
+    enable_dlopen=yes
+  else
+    enable_dlopen=no
+  fi
+
+  case $lt_cv_dlopen in
+  dlopen)
+    save_CPPFLAGS="$CPPFLAGS"
+    AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
+    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
+
+    save_LDFLAGS="$LDFLAGS"
+    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
+
+    save_LIBS="$LIBS"
+    LIBS="$lt_cv_dlopen_libs $LIBS"
+
+    AC_CACHE_CHECK([whether a program can dlopen itself],
+	  lt_cv_dlopen_self, [dnl
+	  _LT_AC_TRY_DLOPEN_SELF(
+	    lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
+	    lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
+    ])
+
+    if test "x$lt_cv_dlopen_self" = xyes; then
+      LDFLAGS="$LDFLAGS $link_static_flag"
+      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
+    	  lt_cv_dlopen_self_static, [dnl
+	  _LT_AC_TRY_DLOPEN_SELF(
+	    lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
+	    lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
+      ])
+    fi
+
+    CPPFLAGS="$save_CPPFLAGS"
+    LDFLAGS="$save_LDFLAGS"
+    LIBS="$save_LIBS"
+    ;;
+  esac
+
+  case $lt_cv_dlopen_self in
+  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
+  *) enable_dlopen_self=unknown ;;
+  esac
+
+  case $lt_cv_dlopen_self_static in
+  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
+  *) enable_dlopen_self_static=unknown ;;
+  esac
+fi
+])# AC_LIBTOOL_DLOPEN_SELF
+
+AC_DEFUN([_LT_AC_LTCONFIG_HACK],
+[AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl
+# Sed substitution that helps us do robust quoting.  It backslashifies
+# metacharacters that are still active within double-quoted strings.
+Xsed='sed -e s/^X//'
+sed_quote_subst='s/\([[\\"\\`$\\\\]]\)/\\\1/g'
+
+# Same as above, but do not quote variable references.
+double_quote_subst='s/\([[\\"\\`\\\\]]\)/\\\1/g'
+
+# Sed substitution to delay expansion of an escaped shell variable in a
+# double_quote_subst'ed string.
+delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
+
+# Constants:
+rm="rm -f"
+
+# Global variables:
+default_ofile=libtool
+can_build_shared=yes
+
+# All known linkers require a `.a' archive for static linking (except M$VC,
+# which needs '.lib').
+libext=a
+ltmain="$ac_aux_dir/ltmain.sh"
+ofile="$default_ofile"
+with_gnu_ld="$lt_cv_prog_gnu_ld"
+need_locks="$enable_libtool_lock"
+
+old_CC="$CC"
+old_CFLAGS="$CFLAGS"
+
+# Set sane defaults for various variables
+test -z "$AR" && AR=ar
+test -z "$AR_FLAGS" && AR_FLAGS=cru
+test -z "$AS" && AS=as
+test -z "$CC" && CC=cc
+test -z "$DLLTOOL" && DLLTOOL=dlltool
+test -z "$LD" && LD=ld
+test -z "$LN_S" && LN_S="ln -s"
+test -z "$MAGIC_CMD" && MAGIC_CMD=file
+test -z "$NM" && NM=nm
+test -z "$OBJDUMP" && OBJDUMP=objdump
+test -z "$RANLIB" && RANLIB=:
+test -z "$STRIP" && STRIP=:
+test -z "$ac_objext" && ac_objext=o
+
+if test x"$host" != x"$build"; then
+  ac_tool_prefix=${host_alias}-
+else
+  ac_tool_prefix=
+fi
+
+case $host_os in
+aix3*)
+  # AIX sometimes has problems with the GCC collect2 program.  For some
+  # reason, if we set the COLLECT_NAMES environment variable, the problems
+  # vanish in a puff of smoke.
+  if test "X${COLLECT_NAMES+set}" != Xset; then
+    COLLECT_NAMES=
+    export COLLECT_NAMES
+  fi
+  ;;
+esac
+
+# Determine commands to create old-style static archives.
+old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
+old_postinstall_cmds='chmod 644 $oldlib'
+old_postuninstall_cmds=
+
+if test -n "$RANLIB"; then
+  case $host_os in
+  openbsd*)
+    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
+    ;;
+  *)
+    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
+    ;;
+  esac
+  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
+fi
+
+# Allow CC to be a program name with arguments.
+set dummy $CC
+compiler="[$]2"
+
+AC_MSG_CHECKING([for objdir])
+rm -f .libs 2>/dev/null
+mkdir .libs 2>/dev/null
+if test -d .libs; then
+  objdir=.libs
+else
+  # MS-DOS does not allow filenames that begin with a dot.
+  objdir=_libs
+fi
+rmdir .libs 2>/dev/null
+AC_MSG_RESULT($objdir)
+
+
+AC_ARG_WITH(pic,
+[  --with-pic              try to use only PIC/non-PIC objects [default=use both]],
+pic_mode="$withval", pic_mode=default)
+test -z "$pic_mode" && pic_mode=default
+
+# We assume here that the value for lt_cv_prog_cc_pic will not be cached
+# in isolation, and that seeing it set (from the cache) indicates that
+# the associated values are set (in the cache) correctly too.
+AC_MSG_CHECKING([for $compiler option to produce PIC])
+AC_CACHE_VAL(lt_cv_prog_cc_pic,
+[ lt_cv_prog_cc_pic=
+  lt_cv_prog_cc_shlib=
+  lt_cv_prog_cc_wl=
+  lt_cv_prog_cc_static=
+  lt_cv_prog_cc_no_builtin=
+  lt_cv_prog_cc_can_build_shared=$can_build_shared
+
+  if test "$GCC" = yes; then
+    lt_cv_prog_cc_wl='-Wl,'
+    lt_cv_prog_cc_static='-static'
+
+    case $host_os in
+    aix*)
+      # Below there is a dirty hack to force normal static linking with -ldl
+      # The problem is because libdl dynamically linked with both libc and
+      # libC (AIX C++ library), which obviously doesn't included in libraries
+      # list by gcc. This cause undefined symbols with -static flags.
+      # This hack allows C programs to be linked with "-static -ldl", but
+      # not sure about C++ programs.
+      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
+      ;;
+    amigaos*)
+      # FIXME: we need at least 68020 code to build shared libraries, but
+      # adding the `-m68020' flag to GCC prevents building anything better,
+      # like `-m68040'.
+      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
+      ;;
+    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
+      # PIC is the default for these OSes.
+      ;;
+    darwin* | rhapsody*)
+      # PIC is the default on this platform
+      # Common symbols not allowed in MH_DYLIB files
+      lt_cv_prog_cc_pic='-fno-common'
+      ;;
+    cygwin* | mingw* | pw32* | os2*)
+      # This hack is so that the source file can tell whether it is being
+      # built for inclusion in a dll (and should export symbols for example).
+      lt_cv_prog_cc_pic='-DDLL_EXPORT'
+      ;;
+    sysv4*MP*)
+      if test -d /usr/nec; then
+	 lt_cv_prog_cc_pic=-Kconform_pic
+      fi
+      ;;
+    *)
+      lt_cv_prog_cc_pic='-fPIC'
+      ;;
+    esac
+  else
+    # PORTME Check for PIC flags for the system compiler.
+    case $host_os in
+    aix3* | aix4* | aix5*)
+      lt_cv_prog_cc_wl='-Wl,'
+      # All AIX code is PIC.
+      if test "$host_cpu" = ia64; then
+	# AIX 5 now supports IA64 processor
+	lt_cv_prog_cc_static='-Bstatic'
+      else
+	lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
+      fi
+      ;;
+
+    hpux9* | hpux10* | hpux11*)
+      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
+      lt_cv_prog_cc_wl='-Wl,'
+      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
+      lt_cv_prog_cc_pic='+Z'
+      ;;
+
+    irix5* | irix6* | nonstopux*)
+      lt_cv_prog_cc_wl='-Wl,'
+      lt_cv_prog_cc_static='-non_shared'
+      # PIC (with -KPIC) is the default.
+      ;;
+
+    cygwin* | mingw* | pw32* | os2*)
+      # This hack is so that the source file can tell whether it is being
+      # built for inclusion in a dll (and should export symbols for example).
+      lt_cv_prog_cc_pic='-DDLL_EXPORT'
+      ;;
+
+    newsos6)
+      lt_cv_prog_cc_pic='-KPIC'
+      lt_cv_prog_cc_static='-Bstatic'
+      ;;
+
+    osf3* | osf4* | osf5*)
+      # All OSF/1 code is PIC.
+      lt_cv_prog_cc_wl='-Wl,'
+      lt_cv_prog_cc_static='-non_shared'
+      ;;
+
+    sco3.2v5*)
+      lt_cv_prog_cc_pic='-Kpic'
+      lt_cv_prog_cc_static='-dn'
+      lt_cv_prog_cc_shlib='-belf'
+      ;;
+
+    solaris*)
+      lt_cv_prog_cc_pic='-KPIC'
+      lt_cv_prog_cc_static='-Bstatic'
+      lt_cv_prog_cc_wl='-Wl,'
+      ;;
+
+    sunos4*)
+      lt_cv_prog_cc_pic='-PIC'
+      lt_cv_prog_cc_static='-Bstatic'
+      lt_cv_prog_cc_wl='-Qoption ld '
+      ;;
+
+    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+      lt_cv_prog_cc_pic='-KPIC'
+      lt_cv_prog_cc_static='-Bstatic'
+      lt_cv_prog_cc_wl='-Wl,'
+      ;;
+
+    uts4*)
+      lt_cv_prog_cc_pic='-pic'
+      lt_cv_prog_cc_static='-Bstatic'
+      ;;
+
+    sysv4*MP*)
+      if test -d /usr/nec ;then
+	lt_cv_prog_cc_pic='-Kconform_pic'
+	lt_cv_prog_cc_static='-Bstatic'
+      fi
+      ;;
+
+    *)
+      lt_cv_prog_cc_can_build_shared=no
+      ;;
+    esac
+  fi
+])
+if test -z "$lt_cv_prog_cc_pic"; then
+  AC_MSG_RESULT([none])
+else
+  AC_MSG_RESULT([$lt_cv_prog_cc_pic])
+
+  # Check to make sure the pic_flag actually works.
+  AC_MSG_CHECKING([if $compiler PIC flag $lt_cv_prog_cc_pic works])
+  AC_CACHE_VAL(lt_cv_prog_cc_pic_works, [dnl
+    save_CFLAGS="$CFLAGS"
+    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
+    AC_TRY_COMPILE([], [], [dnl
+      case $host_os in
+      hpux9* | hpux10* | hpux11*)
+	# On HP-UX, both CC and GCC only warn that PIC is supported... then
+	# they create non-PIC objects.  So, if there were any warnings, we
+	# assume that PIC is not supported.
+	if test -s conftest.err; then
+	  lt_cv_prog_cc_pic_works=no
+	else
+	  lt_cv_prog_cc_pic_works=yes
+	fi
+	;;
+      *)
+	lt_cv_prog_cc_pic_works=yes
+	;;
+      esac
+    ], [dnl
+      lt_cv_prog_cc_pic_works=no
+    ])
+    CFLAGS="$save_CFLAGS"
+  ])
+
+  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
+    lt_cv_prog_cc_pic=
+    lt_cv_prog_cc_can_build_shared=no
+  else
+    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
+  fi
+
+  AC_MSG_RESULT([$lt_cv_prog_cc_pic_works])
+fi
+
+# Check for any special shared library compilation flags.
+if test -n "$lt_cv_prog_cc_shlib"; then
+  AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries])
+  if echo "$old_CC $old_CFLAGS " | egrep -e "[[ 	]]$lt_cv_prog_cc_shlib[[ 	]]" >/dev/null; then :
+  else
+   AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure])
+    lt_cv_prog_cc_can_build_shared=no
+  fi
+fi
+
+AC_MSG_CHECKING([if $compiler static flag $lt_cv_prog_cc_static works])
+AC_CACHE_VAL([lt_cv_prog_cc_static_works], [dnl
+  lt_cv_prog_cc_static_works=no
+  save_LDFLAGS="$LDFLAGS"
+  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
+  AC_TRY_LINK([], [], [lt_cv_prog_cc_static_works=yes])
+  LDFLAGS="$save_LDFLAGS"
+])
+
+# Belt *and* braces to stop my trousers falling down:
+test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
+AC_MSG_RESULT([$lt_cv_prog_cc_static_works])
+
+pic_flag="$lt_cv_prog_cc_pic"
+special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
+wl="$lt_cv_prog_cc_wl"
+link_static_flag="$lt_cv_prog_cc_static"
+no_builtin_flag="$lt_cv_prog_cc_no_builtin"
+can_build_shared="$lt_cv_prog_cc_can_build_shared"
+
+
+# Check to see if options -o and -c are simultaneously supported by compiler
+AC_MSG_CHECKING([if $compiler supports -c -o file.$ac_objext])
+AC_CACHE_VAL([lt_cv_compiler_c_o], [
+$rm -r conftest 2>/dev/null
+mkdir conftest
+cd conftest
+echo "int some_variable = 0;" > conftest.$ac_ext
+mkdir out
+# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
+# that will create temporary files in the current directory regardless of
+# the output directory.  Thus, making CWD read-only will cause this test
+# to fail, enabling locking or at least warning the user not to do parallel
+# builds.
+chmod -w .
+save_CFLAGS="$CFLAGS"
+CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
+compiler_c_o=no
+if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
+  # The compiler can only warn and ignore the option if not recognized
+  # So say no if there are warnings
+  if test -s out/conftest.err; then
+    lt_cv_compiler_c_o=no
+  else
+    lt_cv_compiler_c_o=yes
+  fi
+else
+  # Append any errors to the config.log.
+  cat out/conftest.err 1>&AC_FD_CC
+  lt_cv_compiler_c_o=no
+fi
+CFLAGS="$save_CFLAGS"
+chmod u+w .
+$rm conftest* out/*
+rmdir out
+cd ..
+rmdir conftest
+$rm -r conftest 2>/dev/null
+])
+compiler_c_o=$lt_cv_compiler_c_o
+AC_MSG_RESULT([$compiler_c_o])
+
+if test x"$compiler_c_o" = x"yes"; then
+  # Check to see if we can write to a .lo
+  AC_MSG_CHECKING([if $compiler supports -c -o file.lo])
+  AC_CACHE_VAL([lt_cv_compiler_o_lo], [
+  lt_cv_compiler_o_lo=no
+  save_CFLAGS="$CFLAGS"
+  CFLAGS="$CFLAGS -c -o conftest.lo"
+  save_objext="$ac_objext"
+  ac_objext=lo
+  AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
+    # The compiler can only warn and ignore the option if not recognized
+    # So say no if there are warnings
+    if test -s conftest.err; then
+      lt_cv_compiler_o_lo=no
+    else
+      lt_cv_compiler_o_lo=yes
+    fi
+  ])
+  ac_objext="$save_objext"
+  CFLAGS="$save_CFLAGS"
+  ])
+  compiler_o_lo=$lt_cv_compiler_o_lo
+  AC_MSG_RESULT([$compiler_o_lo])
+else
+  compiler_o_lo=no
+fi
+
+# Check to see if we can do hard links to lock some files if needed
+hard_links="nottested"
+if test "$compiler_c_o" = no && test "$need_locks" != no; then
+  # do not overwrite the value of need_locks provided by the user
+  AC_MSG_CHECKING([if we can lock with hard links])
+  hard_links=yes
+  $rm conftest*
+  ln conftest.a conftest.b 2>/dev/null && hard_links=no
+  touch conftest.a
+  ln conftest.a conftest.b 2>&5 || hard_links=no
+  ln conftest.a conftest.b 2>/dev/null && hard_links=no
+  AC_MSG_RESULT([$hard_links])
+  if test "$hard_links" = no; then
+    AC_MSG_WARN([\`$CC' does not support \`-c -o', so \`make -j' may be unsafe])
+    need_locks=warn
+  fi
+else
+  need_locks=no
+fi
+
+if test "$GCC" = yes; then
+  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
+  AC_MSG_CHECKING([if $compiler supports -fno-rtti -fno-exceptions])
+  echo "int some_variable = 0;" > conftest.$ac_ext
+  save_CFLAGS="$CFLAGS"
+  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
+  compiler_rtti_exceptions=no
+  AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
+    # The compiler can only warn and ignore the option if not recognized
+    # So say no if there are warnings
+    if test -s conftest.err; then
+      compiler_rtti_exceptions=no
+    else
+      compiler_rtti_exceptions=yes
+    fi
+  ])
+  CFLAGS="$save_CFLAGS"
+  AC_MSG_RESULT([$compiler_rtti_exceptions])
+
+  if test "$compiler_rtti_exceptions" = "yes"; then
+    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
+  else
+    no_builtin_flag=' -fno-builtin'
+  fi
+fi
+
+# See if the linker supports building shared libraries.
+AC_MSG_CHECKING([whether the linker ($LD) supports shared libraries])
+
+allow_undefined_flag=
+no_undefined_flag=
+need_lib_prefix=unknown
+need_version=unknown
+# when you set need_version to no, make sure it does not cause -set_version
+# flags to be left without arguments
+archive_cmds=
+archive_expsym_cmds=
+old_archive_from_new_cmds=
+old_archive_from_expsyms_cmds=
+export_dynamic_flag_spec=
+whole_archive_flag_spec=
+thread_safe_flag_spec=
+hardcode_into_libs=no
+hardcode_libdir_flag_spec=
+hardcode_libdir_separator=
+hardcode_direct=no
+hardcode_minus_L=no
+hardcode_shlibpath_var=unsupported
+runpath_var=
+link_all_deplibs=unknown
+always_export_symbols=no
+export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
+# include_expsyms should be a list of space-separated symbols to be *always*
+# included in the symbol list
+include_expsyms=
+# exclude_expsyms can be an egrep regular expression of symbols to exclude
+# it will be wrapped by ` (' and `)$', so one must not match beginning or
+# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
+# as well as any symbol that contains `d'.
+exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
+# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
+# platforms (ab)use it in PIC code, but their linkers get confused if
+# the symbol is explicitly referenced.  Since portable code cannot
+# rely on this symbol name, it's probably fine to never include it in
+# preloaded symbol tables.
+extract_expsyms_cmds=
+
+case $host_os in
+cygwin* | mingw* | pw32*)
+  # FIXME: the MSVC++ port hasn't been tested in a loooong time
+  # When not using gcc, we currently assume that we are using
+  # Microsoft Visual C++.
+  if test "$GCC" != yes; then
+    with_gnu_ld=no
+  fi
+  ;;
+openbsd*)
+  with_gnu_ld=no
+  ;;
+esac
+
+ld_shlibs=yes
+if test "$with_gnu_ld" = yes; then
+  # If archive_cmds runs LD, not CC, wlarc should be empty
+  wlarc='${wl}'
+
+  # See if GNU ld supports shared libraries.
+  case $host_os in
+  aix3* | aix4* | aix5*)
+    # On AIX, the GNU linker is very broken
+    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
+    ld_shlibs=no
+    cat <<EOF 1>&2
+
+*** Warning: the GNU linker, at least up to release 2.9.1, is reported
+*** to be unable to reliably create shared libraries on AIX.
+*** Therefore, libtool is disabling shared libraries support.  If you
+*** really care for shared libraries, you may want to modify your PATH
+*** so that a non-GNU linker is found, and then restart.
+
+EOF
+    ;;
+
+  amigaos*)
+    archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
+    hardcode_libdir_flag_spec='-L$libdir'
+    hardcode_minus_L=yes
+
+    # Samuel A. Falvo II <kc5tja at dolphin.openprojects.net> reports
+    # that the semantics of dynamic libraries on AmigaOS, at least up
+    # to version 4, is to share data among multiple programs linked
+    # with the same dynamic library.  Since this doesn't match the
+    # behavior of shared libraries on other platforms, we can use
+    # them.
+    ld_shlibs=no
+    ;;
+
+  beos*)
+    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
+      allow_undefined_flag=unsupported
+      # Joseph Beckenbach <jrb3 at best.com> says some releases of gcc
+      # support --undefined.  This deserves some investigation.  FIXME
+      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+    else
+      ld_shlibs=no
+    fi
+    ;;
+
+  cygwin* | mingw* | pw32*)
+    # hardcode_libdir_flag_spec is actually meaningless, as there is
+    # no search path for DLLs.
+    hardcode_libdir_flag_spec='-L$libdir'
+    allow_undefined_flag=unsupported
+    always_export_symbols=yes
+
+    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
+      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
+      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
+      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
+      else $CC -o impgen impgen.c ; fi)~
+      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
+
+    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
+
+    # cygwin and mingw dlls have different entry points and sets of symbols
+    # to exclude.
+    # FIXME: what about values for MSVC?
+    dll_entry=__cygwin_dll_entry at 12
+    dll_exclude_symbols=DllMain at 12,_cygwin_dll_entry at 12,_cygwin_noncygwin_dll_entry at 12~
+    case $host_os in
+    mingw*)
+      # mingw values
+      dll_entry=_DllMainCRTStartup at 12
+      dll_exclude_symbols=DllMain at 12,DllMainCRTStartup at 12,DllEntryPoint at 12~
+      ;;
+    esac
+
+    # mingw and cygwin differ, and it's simplest to just exclude the union
+    # of the two symbol sets.
+    dll_exclude_symbols=DllMain at 12,_cygwin_dll_entry at 12,_cygwin_noncygwin_dll_entry at 12,DllMainCRTStartup at 12,DllEntryPoint at 12
+
+    # recent cygwin and mingw systems supply a stub DllMain which the user
+    # can override, but on older systems we have to supply one (in ltdll.c)
+    if test "x$lt_cv_need_dllmain" = "xyes"; then
+      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
+      ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
+	test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
+    else
+      ltdll_obj=
+      ltdll_cmds=
+    fi
+
+    # Extract the symbol export list from an `--export-all' def file,
+    # then regenerate the def file from the symbol export list, so that
+    # the compiled dll only exports the symbol export list.
+    # Be careful not to strip the DATA tag left be newer dlltools.
+    export_symbols_cmds="$ltdll_cmds"'
+      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
+      sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
+
+    # If the export-symbols file already is a .def file (1st line
+    # is EXPORTS), use it as is.
+    # If DATA tags from a recent dlltool are present, honour them!
+    archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
+	cp $export_symbols $output_objdir/$soname-def;
+      else
+	echo EXPORTS > $output_objdir/$soname-def;
+	_lt_hint=1;
+	cat $export_symbols | while read symbol; do
+	 set dummy \$symbol;
+	 case \[$]# in
+	   2) echo "   \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
+	   4) echo "   \[$]2 \[$]3 \[$]4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
+	   *) echo "     \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;;
+	 esac;
+	 _lt_hint=`expr 1 + \$_lt_hint`;
+	done;
+      fi~
+      '"$ltdll_cmds"'
+      $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
+      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
+      $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
+      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
+      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
+    ;;
+
+  netbsd*)
+    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
+      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
+      wlarc=
+    else
+      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+    fi
+    ;;
+
+  solaris* | sysv5*)
+    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
+      ld_shlibs=no
+      cat <<EOF 1>&2
+
+*** Warning: The releases 2.8.* of the GNU linker cannot reliably
+*** create shared libraries on Solaris systems.  Therefore, libtool
+*** is disabling shared libraries support.  We urge you to upgrade GNU
+*** binutils to release 2.9.1 or newer.  Another option is to modify
+*** your PATH or compiler configuration so that the native linker is
+*** used, and then restart.
+
+EOF
+    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
+      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+    else
+      ld_shlibs=no
+    fi
+    ;;
+
+  sunos4*)
+    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+    wlarc=
+    hardcode_direct=yes
+    hardcode_shlibpath_var=no
+    ;;
+
+  *)
+    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
+      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+    else
+      ld_shlibs=no
+    fi
+    ;;
+  esac
+
+  if test "$ld_shlibs" = yes; then
+    runpath_var=LD_RUN_PATH
+    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
+    export_dynamic_flag_spec='${wl}--export-dynamic'
+    case $host_os in
+    cygwin* | mingw* | pw32*)
+      # dlltool doesn't understand --whole-archive et. al.
+      whole_archive_flag_spec=
+      ;;
+    *)
+      # ancient GNU ld didn't support --whole-archive et. al.
+      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
+	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
+      else
+	whole_archive_flag_spec=
+      fi
+      ;;
+    esac
+  fi
+else
+  # PORTME fill in a description of your system's linker (not GNU ld)
+  case $host_os in
+  aix3*)
+    allow_undefined_flag=unsupported
+    always_export_symbols=yes
+    archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
+    # Note: this linker hardcodes the directories in LIBPATH if there
+    # are no directories specified by -L.
+    hardcode_minus_L=yes
+    if test "$GCC" = yes && test -z "$link_static_flag"; then
+      # Neither direct hardcoding nor static linking is supported with a
+      # broken collect2.
+      hardcode_direct=unsupported
+    fi
+    ;;
+
+  aix4* | aix5*)
+    if test "$host_cpu" = ia64; then
+      # On IA64, the linker does run time linking by default, so we don't
+      # have to do anything special.
+      aix_use_runtimelinking=no
+      exp_sym_flag='-Bexport'
+      no_entry_flag=""
+    else
+      aix_use_runtimelinking=no
+
+      # Test if we are trying to use run time linking or normal
+      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
+      # need to do runtime linking.
+      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
+	for ld_flag in $LDFLAGS; do
+	  case $ld_flag in
+	  *-brtl*)
+	    aix_use_runtimelinking=yes
+	    break
+	  ;;
+	  esac
+	done
+      esac
+
+      exp_sym_flag='-bexport'
+      no_entry_flag='-bnoentry'
+    fi
+
+    # When large executables or shared objects are built, AIX ld can
+    # have problems creating the table of contents.  If linking a library
+    # or program results in "error TOC overflow" add -mminimal-toc to
+    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
+    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
+
+    hardcode_direct=yes
+    archive_cmds=''
+    hardcode_libdir_separator=':'
+    if test "$GCC" = yes; then
+      case $host_os in aix4.[[012]]|aix4.[[012]].*)
+	collect2name=`${CC} -print-prog-name=collect2`
+	if test -f "$collect2name" && \
+	  strings "$collect2name" | grep resolve_lib_name >/dev/null
+	then
+	  # We have reworked collect2
+	  hardcode_direct=yes
+	else
+	  # We have old collect2
+	  hardcode_direct=unsupported
+	  # It fails to find uninstalled libraries when the uninstalled
+	  # path is not listed in the libpath.  Setting hardcode_minus_L
+	  # to unsupported forces relinking
+	  hardcode_minus_L=yes
+	  hardcode_libdir_flag_spec='-L$libdir'
+	  hardcode_libdir_separator=
+	fi
+      esac
+
+      shared_flag='-shared'
+    else
+      # not using gcc
+      if test "$host_cpu" = ia64; then
+	shared_flag='${wl}-G'
+      else
+	if test "$aix_use_runtimelinking" = yes; then
+	  shared_flag='${wl}-G'
+	else
+	  shared_flag='${wl}-bM:SRE'
+	fi
+      fi
+    fi
+
+    # It seems that -bexpall can do strange things, so it is better to
+    # generate a list of symbols to export.
+    always_export_symbols=yes
+    if test "$aix_use_runtimelinking" = yes; then
+      # Warning - without using the other runtime loading flags (-brtl),
+      # -berok will link without error, but may produce a broken library.
+      allow_undefined_flag='-berok'
+      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
+      archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
+    else
+      if test "$host_cpu" = ia64; then
+	hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
+	allow_undefined_flag="-z nodefs"
+	archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
+      else
+	hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
+	# Warning - without using the other run time loading flags,
+	# -berok will link without error, but may produce a broken library.
+	allow_undefined_flag='${wl}-berok'
+	# This is a bit strange, but is similar to how AIX traditionally builds
+	# it's shared libraries.
+	archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
+      fi
+    fi
+    ;;
+
+  amigaos*)
+    archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
+    hardcode_libdir_flag_spec='-L$libdir'
+    hardcode_minus_L=yes
+    # see comment about different semantics on the GNU ld section
+    ld_shlibs=no
+    ;;
+
+  cygwin* | mingw* | pw32*)
+    # When not using gcc, we currently assume that we are using
+    # Microsoft Visual C++.
+    # hardcode_libdir_flag_spec is actually meaningless, as there is
+    # no search path for DLLs.
+    hardcode_libdir_flag_spec=' '
+    allow_undefined_flag=unsupported
+    # Tell ltmain to make .lib files, not .a files.
+    libext=lib
+    # FIXME: Setting linknames here is a bad hack.
+    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
+    # The linker will automatically build a .lib file if we build a DLL.
+    old_archive_from_new_cmds='true'
+    # FIXME: Should let the user specify the lib program.
+    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
+    fix_srcfile_path='`cygpath -w "$srcfile"`'
+    ;;
+
+  darwin* | rhapsody*)
+    case "$host_os" in
+    rhapsody* | darwin1.[[012]])
+      allow_undefined_flag='-undefined suppress'
+      ;;
+    *) # Darwin 1.3 on
+      allow_undefined_flag='-flat_namespace -undefined suppress'
+      ;;
+    esac
+    # FIXME: Relying on posixy $() will cause problems for
+    #        cross-compilation, but unfortunately the echo tests do not
+    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
+    #	     `"' quotes if we put them in here... so don't!
+    archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
+    # We need to add '_' to the symbols in $export_symbols first
+    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
+    hardcode_direct=yes
+    hardcode_shlibpath_var=no
+    whole_archive_flag_spec='-all_load $convenience'
+    ;;
+
+  freebsd1*)
+    ld_shlibs=no
+    ;;
+
+  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
+  # support.  Future versions do this automatically, but an explicit c++rt0.o
+  # does not break anything, and helps significantly (at the cost of a little
+  # extra space).
+  freebsd2.2*)
+    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
+    hardcode_libdir_flag_spec='-R$libdir'
+    hardcode_direct=yes
+    hardcode_shlibpath_var=no
+    ;;
+
+  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
+  freebsd2*)
+    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+    hardcode_direct=yes
+    hardcode_minus_L=yes
+    hardcode_shlibpath_var=no
+    ;;
+
+  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
+  freebsd*)
+    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
+    hardcode_libdir_flag_spec='-R$libdir'
+    hardcode_direct=yes
+    hardcode_shlibpath_var=no
+    ;;
+
+  hpux9* | hpux10* | hpux11*)
+    case $host_os in
+    hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
+    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
+    esac
+    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
+    hardcode_libdir_separator=:
+    hardcode_direct=yes
+    hardcode_minus_L=yes # Not in the search PATH, but as the default
+			 # location of the library.
+    export_dynamic_flag_spec='${wl}-E'
+    ;;
+
+  irix5* | irix6* | nonstopux*)
+    if test "$GCC" = yes; then
+      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+    else
+      archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+      hardcode_libdir_flag_spec='-rpath $libdir'
+    fi
+    hardcode_libdir_separator=:
+    link_all_deplibs=yes
+    ;;
+
+  netbsd*)
+    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
+      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
+    else
+      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
+    fi
+    hardcode_libdir_flag_spec='-R$libdir'
+    hardcode_direct=yes
+    hardcode_shlibpath_var=no
+    ;;
+
+  newsos6)
+    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+    hardcode_direct=yes
+    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+    hardcode_libdir_separator=:
+    hardcode_shlibpath_var=no
+    ;;
+
+  openbsd*)
+    hardcode_direct=yes
+    hardcode_shlibpath_var=no
+    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
+      export_dynamic_flag_spec='${wl}-E'
+    else
+      case "$host_os" in
+      openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
+	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+	hardcode_libdir_flag_spec='-R$libdir'
+        ;;
+      *)
+        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
+        ;;
+      esac
+    fi
+    ;;
+
+  os2*)
+    hardcode_libdir_flag_spec='-L$libdir'
+    hardcode_minus_L=yes
+    allow_undefined_flag=unsupported
+    archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
+    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
+    ;;
+
+  osf3*)
+    if test "$GCC" = yes; then
+      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
+      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+    else
+      allow_undefined_flag=' -expect_unresolved \*'
+      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+    fi
+    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+    hardcode_libdir_separator=:
+    ;;
+
+  osf4* | osf5*)	# as osf3* with the addition of -msym flag
+    if test "$GCC" = yes; then
+      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
+      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+    else
+      allow_undefined_flag=' -expect_unresolved \*'
+      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
+      $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
+
+      #Both c and cxx compiler support -rpath directly
+      hardcode_libdir_flag_spec='-rpath $libdir'
+    fi
+    hardcode_libdir_separator=:
+    ;;
+
+  sco3.2v5*)
+    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+    hardcode_shlibpath_var=no
+    runpath_var=LD_RUN_PATH
+    hardcode_runpath_var=yes
+    export_dynamic_flag_spec='${wl}-Bexport'
+    ;;
+
+  solaris*)
+    # gcc --version < 3.0 without binutils cannot create self contained
+    # shared libraries reliably, requiring libgcc.a to resolve some of
+    # the object symbols generated in some cases.  Libraries that use
+    # assert need libgcc.a to resolve __eprintf, for example.  Linking
+    # a copy of libgcc.a into every shared library to guarantee resolving
+    # such symbols causes other problems:  According to Tim Van Holder
+    # <tim.van.holder at pandora.be>, C++ libraries end up with a separate
+    # (to the application) exception stack for one thing.
+    no_undefined_flag=' -z defs'
+    if test "$GCC" = yes; then
+      case `$CC --version 2>/dev/null` in
+      [[12]].*)
+	cat <<EOF 1>&2
+
+*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
+*** create self contained shared libraries on Solaris systems, without
+*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
+*** -no-undefined support, which will at least allow you to build shared
+*** libraries.  However, you may find that when you link such libraries
+*** into an application without using GCC, you have to manually add
+*** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
+*** upgrade to a newer version of GCC.  Another option is to rebuild your
+*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
+
+EOF
+        no_undefined_flag=
+	;;
+      esac
+    fi
+    # $CC -shared without GNU ld will not create a library from C++
+    # object files and a static libstdc++, better avoid it by now
+    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
+    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
+		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
+    hardcode_libdir_flag_spec='-R$libdir'
+    hardcode_shlibpath_var=no
+    case $host_os in
+    solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
+    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
+      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
+    esac
+    link_all_deplibs=yes
+    ;;
+
+  sunos4*)
+    if test "x$host_vendor" = xsequent; then
+      # Use $CC to link under sequent, because it throws in some extra .o
+      # files that make .init and .fini sections work.
+      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
+    else
+      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
+    fi
+    hardcode_libdir_flag_spec='-L$libdir'
+    hardcode_direct=yes
+    hardcode_minus_L=yes
+    hardcode_shlibpath_var=no
+    ;;
+
+  sysv4)
+    case $host_vendor in
+      sni)
+        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+        hardcode_direct=yes # is this really true???
+        ;;
+      siemens)
+        ## LD is ld it makes a PLAMLIB
+        ## CC just makes a GrossModule.
+        archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
+        reload_cmds='$CC -r -o $output$reload_objs'
+        hardcode_direct=no
+        ;;
+      motorola)
+        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+        hardcode_direct=no #Motorola manual says yes, but my tests say they lie
+        ;;
+    esac
+    runpath_var='LD_RUN_PATH'
+    hardcode_shlibpath_var=no
+    ;;
+
+  sysv4.3*)
+    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+    hardcode_shlibpath_var=no
+    export_dynamic_flag_spec='-Bexport'
+    ;;
+
+  sysv5*)
+    no_undefined_flag=' -z text'
+    # $CC -shared without GNU ld will not create a library from C++
+    # object files and a static libstdc++, better avoid it by now
+    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
+    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
+		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
+    hardcode_libdir_flag_spec=
+    hardcode_shlibpath_var=no
+    runpath_var='LD_RUN_PATH'
+    ;;
+
+  uts4*)
+    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+    hardcode_libdir_flag_spec='-L$libdir'
+    hardcode_shlibpath_var=no
+    ;;
+
+  dgux*)
+    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+    hardcode_libdir_flag_spec='-L$libdir'
+    hardcode_shlibpath_var=no
+    ;;
+
+  sysv4*MP*)
+    if test -d /usr/nec; then
+      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+      hardcode_shlibpath_var=no
+      runpath_var=LD_RUN_PATH
+      hardcode_runpath_var=yes
+      ld_shlibs=yes
+    fi
+    ;;
+
+  sysv4.2uw2*)
+    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
+    hardcode_direct=yes
+    hardcode_minus_L=no
+    hardcode_shlibpath_var=no
+    hardcode_runpath_var=yes
+    runpath_var=LD_RUN_PATH
+    ;;
+
+  sysv5uw7* | unixware7*)
+    no_undefined_flag='${wl}-z ${wl}text'
+    if test "$GCC" = yes; then
+      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+    else
+      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+    fi
+    runpath_var='LD_RUN_PATH'
+    hardcode_shlibpath_var=no
+    ;;
+
+  *)
+    ld_shlibs=no
+    ;;
+  esac
+fi
+AC_MSG_RESULT([$ld_shlibs])
+test "$ld_shlibs" = no && can_build_shared=no
+
+# Check hardcoding attributes.
+AC_MSG_CHECKING([how to hardcode library paths into programs])
+hardcode_action=
+if test -n "$hardcode_libdir_flag_spec" || \
+   test -n "$runpath_var"; then
+
+  # We can hardcode non-existant directories.
+  if test "$hardcode_direct" != no &&
+     # If the only mechanism to avoid hardcoding is shlibpath_var, we
+     # have to relink, otherwise we might link with an installed library
+     # when we should be linking with a yet-to-be-installed one
+     ## test "$hardcode_shlibpath_var" != no &&
+     test "$hardcode_minus_L" != no; then
+    # Linking always hardcodes the temporary library directory.
+    hardcode_action=relink
+  else
+    # We can link without hardcoding, and we can hardcode nonexisting dirs.
+    hardcode_action=immediate
+  fi
+else
+  # We cannot hardcode anything, or else we can only hardcode existing
+  # directories.
+  hardcode_action=unsupported
+fi
+AC_MSG_RESULT([$hardcode_action])
+
+striplib=
+old_striplib=
+AC_MSG_CHECKING([whether stripping libraries is possible])
+if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
+  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
+  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
+  AC_MSG_RESULT([yes])
+else
+  AC_MSG_RESULT([no])
+fi
+
+reload_cmds='$LD$reload_flag -o $output$reload_objs'
+test -z "$deplibs_check_method" && deplibs_check_method=unknown
+
+# PORTME Fill in your ld.so characteristics
+AC_MSG_CHECKING([dynamic linker characteristics])
+library_names_spec=
+libname_spec='lib$name'
+soname_spec=
+postinstall_cmds=
+postuninstall_cmds=
+finish_cmds=
+finish_eval=
+shlibpath_var=
+shlibpath_overrides_runpath=unknown
+version_type=none
+dynamic_linker="$host_os ld.so"
+sys_lib_dlsearch_path_spec="/lib /usr/lib"
+sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
+
+case $host_os in
+aix3*)
+  version_type=linux
+  library_names_spec='${libname}${release}.so$versuffix $libname.a'
+  shlibpath_var=LIBPATH
+
+  # AIX has no versioning support, so we append a major version to the name.
+  soname_spec='${libname}${release}.so$major'
+  ;;
+
+aix4* | aix5*)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  hardcode_into_libs=yes
+  if test "$host_cpu" = ia64; then
+    # AIX 5 supports IA64
+    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
+    shlibpath_var=LD_LIBRARY_PATH
+  else
+    # With GCC up to 2.95.x, collect2 would create an import file
+    # for dependence libraries.  The import file would start with
+    # the line `#! .'.  This would cause the generated library to
+    # depend on `.', always an invalid library.  This was fixed in
+    # development snapshots of GCC prior to 3.0.
+    case $host_os in
+      aix4 | aix4.[[01]] | aix4.[[01]].*)
+	if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
+	     echo ' yes '
+	     echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
+	  :
+	else
+	  can_build_shared=no
+	fi
+	;;
+    esac
+    # AIX (on Power*) has no versioning support, so currently we can
+    # not hardcode correct soname into executable. Probably we can
+    # add versioning support to collect2, so additional links can
+    # be useful in future.
+    if test "$aix_use_runtimelinking" = yes; then
+      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
+      # instead of lib<name>.a to let people know that these are not
+      # typical AIX shared libraries.
+      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+    else
+      # We preserve .a as extension for shared libraries through AIX4.2
+      # and later when we are not doing run time linking.
+      library_names_spec='${libname}${release}.a $libname.a'
+      soname_spec='${libname}${release}.so$major'
+    fi
+    shlibpath_var=LIBPATH
+  fi
+  hardcode_into_libs=yes
+  ;;
+
+amigaos*)
+  library_names_spec='$libname.ixlibrary $libname.a'
+  # Create ${libname}_ixlibrary.a entries in /sys/libs.
+  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
+  ;;
+
+beos*)
+  library_names_spec='${libname}.so'
+  dynamic_linker="$host_os ld.so"
+  shlibpath_var=LIBRARY_PATH
+  ;;
+
+bsdi4*)
+  version_type=linux
+  need_version=no
+  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+  soname_spec='${libname}${release}.so$major'
+  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
+  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
+  export_dynamic_flag_spec=-rdynamic
+  # the default ld.so.conf also contains /usr/contrib/lib and
+  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
+  # libtool to hard-code these into programs
+  ;;
+
+cygwin* | mingw* | pw32*)
+  version_type=windows
+  need_version=no
+  need_lib_prefix=no
+  case $GCC,$host_os in
+  yes,cygwin*)
+    library_names_spec='$libname.dll.a'
+    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
+    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
+      dldir=$destdir/`dirname \$dlpath`~
+      test -d \$dldir || mkdir -p \$dldir~
+      $install_prog .libs/$dlname \$dldir/$dlname'
+    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
+      dlpath=$dir/\$dldll~
+       $rm \$dlpath'
+    ;;
+  yes,mingw*)
+    library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
+    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
+    ;;
+  yes,pw32*)
+    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
+    ;;
+  *)
+    library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll $libname.lib'
+    ;;
+  esac
+  dynamic_linker='Win32 ld.exe'
+  # FIXME: first we should search . and the directory the executable is in
+  shlibpath_var=PATH
+  ;;
+
+darwin* | rhapsody*)
+  dynamic_linker="$host_os dyld"
+  version_type=darwin
+  need_lib_prefix=no
+  need_version=no
+  # FIXME: Relying on posixy $() will cause problems for
+  #        cross-compilation, but unfortunately the echo tests do not
+  #        yet detect zsh echo's removal of \ escapes.
+  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
+  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
+  shlibpath_overrides_runpath=yes
+  shlibpath_var=DYLD_LIBRARY_PATH
+  ;;
+
+freebsd1*)
+  dynamic_linker=no
+  ;;
+
+freebsd*)
+  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
+  version_type=freebsd-$objformat
+  case $version_type in
+    freebsd-elf*)
+      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
+      need_version=no
+      need_lib_prefix=no
+      ;;
+    freebsd-*)
+      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
+      need_version=yes
+      ;;
+  esac
+  shlibpath_var=LD_LIBRARY_PATH
+  case $host_os in
+  freebsd2*)
+    shlibpath_overrides_runpath=yes
+    ;;
+  *)
+    shlibpath_overrides_runpath=no
+    hardcode_into_libs=yes
+    ;;
+  esac
+  ;;
+
+gnu*)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
+  soname_spec='${libname}${release}.so$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  hardcode_into_libs=yes
+  ;;
+
+hpux9* | hpux10* | hpux11*)
+  # Give a soname corresponding to the major version so that dld.sl refuses to
+  # link against other versions.
+  dynamic_linker="$host_os dld.sl"
+  version_type=sunos
+  need_lib_prefix=no
+  need_version=no
+  shlibpath_var=SHLIB_PATH
+  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
+  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
+  soname_spec='${libname}${release}.sl$major'
+  # HP-UX runs *really* slowly unless shared libraries are mode 555.
+  postinstall_cmds='chmod 555 $lib'
+  ;;
+
+irix5* | irix6* | nonstopux*)
+  case $host_os in
+    nonstopux*) version_type=nonstopux ;;
+    *)          version_type=irix ;;
+  esac
+  need_lib_prefix=no
+  need_version=no
+  soname_spec='${libname}${release}.so$major'
+  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
+  case $host_os in
+  irix5* | nonstopux*)
+    libsuff= shlibsuff=
+    ;;
+  *)
+    case $LD in # libtool.m4 will add one of these switches to LD
+    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
+    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
+    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
+    *) libsuff= shlibsuff= libmagic=never-match;;
+    esac
+    ;;
+  esac
+  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
+  shlibpath_overrides_runpath=no
+  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
+  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
+  ;;
+
+# No shared lib support for Linux oldld, aout, or coff.
+linux*oldld* | linux*aout* | linux*coff*)
+  dynamic_linker=no
+  ;;
+
+# This must be Linux ELF.
+linux*)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+  soname_spec='${libname}${release}.so$major'
+  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=no
+  # This implies no fast_install, which is unacceptable.
+  # Some rework will be needed to allow for fast_install
+  # before this can be enabled.
+  hardcode_into_libs=yes
+
+  case $host_cpu:$lt_cv_cc_64bit_output in
+  powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
+    sys_lib_dlsearch_path_spec="/lib64 /usr/lib64"
+    sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64"
+    ;;
+  esac
+
+  # We used to test for /lib/ld.so.1 and disable shared libraries on
+  # powerpc, because MkLinux only supported shared libraries with the
+  # GNU dynamic linker.  Since this was broken with cross compilers,
+  # most powerpc-linux boxes support dynamic linking these days and
+  # people can always --disable-shared, the test was removed, and we
+  # assume the GNU/Linux dynamic linker is in use.
+  dynamic_linker='GNU/Linux ld.so'
+  ;;
+
+netbsd*)
+  version_type=sunos
+  need_lib_prefix=no
+  need_version=no
+  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
+    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
+    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
+    dynamic_linker='NetBSD (a.out) ld.so'
+  else
+    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
+    soname_spec='${libname}${release}.so$major'
+    dynamic_linker='NetBSD ld.elf_so'
+  fi
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  hardcode_into_libs=yes
+  ;;
+
+newsos6)
+  version_type=linux
+  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  ;;
+
+openbsd*)
+  version_type=sunos
+  need_lib_prefix=no
+  need_version=no
+  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+    case "$host_os" in
+    openbsd2.[[89]] | openbsd2.[[89]].*)
+      shlibpath_overrides_runpath=no
+      ;;
+    *)
+      shlibpath_overrides_runpath=yes
+      ;;
+    esac
+  else
+    shlibpath_overrides_runpath=yes
+  fi
+  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
+  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  ;;
+
+os2*)
+  libname_spec='$name'
+  need_lib_prefix=no
+  library_names_spec='$libname.dll $libname.a'
+  dynamic_linker='OS/2 ld.exe'
+  shlibpath_var=LIBPATH
+  ;;
+
+osf3* | osf4* | osf5*)
+  version_type=osf
+  need_version=no
+  soname_spec='${libname}${release}.so$major'
+  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+  shlibpath_var=LD_LIBRARY_PATH
+  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
+  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
+  hardcode_into_libs=yes
+  ;;
+
+sco3.2v5*)
+  version_type=osf
+  soname_spec='${libname}${release}.so$major'
+  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+  shlibpath_var=LD_LIBRARY_PATH
+  ;;
+
+solaris*)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+  soname_spec='${libname}${release}.so$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  hardcode_into_libs=yes
+  # ldd complains unless libraries are executable
+  postinstall_cmds='chmod +x $lib'
+  ;;
+
+sunos4*)
+  version_type=sunos
+  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
+  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  if test "$with_gnu_ld" = yes; then
+    need_lib_prefix=no
+  fi
+  need_version=yes
+  ;;
+
+sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+  version_type=linux
+  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+  soname_spec='${libname}${release}.so$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  case $host_vendor in
+    sni)
+      shlibpath_overrides_runpath=no
+      need_lib_prefix=no
+      export_dynamic_flag_spec='${wl}-Blargedynsym'
+      runpath_var=LD_RUN_PATH
+      ;;
+    siemens)
+      need_lib_prefix=no
+      ;;
+    motorola)
+      need_lib_prefix=no
+      need_version=no
+      shlibpath_overrides_runpath=no
+      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
+      ;;
+  esac
+  ;;
+
+uts4*)
+  version_type=linux
+  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+  soname_spec='${libname}${release}.so$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  ;;
+
+dgux*)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+  soname_spec='${libname}${release}.so$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  ;;
+
+sysv4*MP*)
+  if test -d /usr/nec ;then
+    version_type=linux
+    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
+    soname_spec='$libname.so.$major'
+    shlibpath_var=LD_LIBRARY_PATH
+  fi
+  ;;
+
+*)
+  dynamic_linker=no
+  ;;
+esac
+AC_MSG_RESULT([$dynamic_linker])
+test "$dynamic_linker" = no && can_build_shared=no
+
+# Report the final consequences.
+AC_MSG_CHECKING([if libtool supports shared libraries])
+AC_MSG_RESULT([$can_build_shared])
+
+AC_MSG_CHECKING([whether to build shared libraries])
+test "$can_build_shared" = "no" && enable_shared=no
+
+# On AIX, shared libraries and static libraries use the same namespace, and
+# are all built from PIC.
+case "$host_os" in
+aix3*)
+  test "$enable_shared" = yes && enable_static=no
+  if test -n "$RANLIB"; then
+    archive_cmds="$archive_cmds~\$RANLIB \$lib"
+    postinstall_cmds='$RANLIB $lib'
+  fi
+  ;;
+
+aix4*)
+  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
+    test "$enable_shared" = yes && enable_static=no
+  fi
+  ;;
+esac
+AC_MSG_RESULT([$enable_shared])
+
+AC_MSG_CHECKING([whether to build static libraries])
+# Make sure either enable_shared or enable_static is yes.
+test "$enable_shared" = yes || enable_static=yes
+AC_MSG_RESULT([$enable_static])
+
+if test "$hardcode_action" = relink; then
+  # Fast installation is not supported
+  enable_fast_install=no
+elif test "$shlibpath_overrides_runpath" = yes ||
+     test "$enable_shared" = no; then
+  # Fast installation is not necessary
+  enable_fast_install=needless
+fi
+
+variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
+if test "$GCC" = yes; then
+  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
+fi
+
+AC_LIBTOOL_DLOPEN_SELF
+
+if test "$enable_shared" = yes && test "$GCC" = yes; then
+  case $archive_cmds in
+  *'~'*)
+    # FIXME: we may have to deal with multi-command sequences.
+    ;;
+  '$CC '*)
+    # Test whether the compiler implicitly links with -lc since on some
+    # systems, -lgcc has to come before -lc. If gcc already passes -lc
+    # to ld, don't add -lc before -lgcc.
+    AC_MSG_CHECKING([whether -lc should be explicitly linked in])
+    AC_CACHE_VAL([lt_cv_archive_cmds_need_lc],
+    [$rm conftest*
+    echo 'static int dummy;' > conftest.$ac_ext
+
+    if AC_TRY_EVAL(ac_compile); then
+      soname=conftest
+      lib=conftest
+      libobjs=conftest.$ac_objext
+      deplibs=
+      wl=$lt_cv_prog_cc_wl
+      compiler_flags=-v
+      linker_flags=-v
+      verstring=
+      output_objdir=.
+      libname=conftest
+      save_allow_undefined_flag=$allow_undefined_flag
+      allow_undefined_flag=
+      if AC_TRY_EVAL(archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
+      then
+	lt_cv_archive_cmds_need_lc=no
+      else
+	lt_cv_archive_cmds_need_lc=yes
+      fi
+      allow_undefined_flag=$save_allow_undefined_flag
+    else
+      cat conftest.err 1>&5
+    fi])
+    AC_MSG_RESULT([$lt_cv_archive_cmds_need_lc])
+    ;;
+  esac
+fi
+need_lc=${lt_cv_archive_cmds_need_lc-yes}
+
+# The second clause should only fire when bootstrapping the
+# libtool distribution, otherwise you forgot to ship ltmain.sh
+# with your package, and you will get complaints that there are
+# no rules to generate ltmain.sh.
+if test -f "$ltmain"; then
+  :
+else
+  # If there is no Makefile yet, we rely on a make rule to execute
+  # `config.status --recheck' to rerun these tests and create the
+  # libtool script then.
+  test -f Makefile && make "$ltmain"
+fi
+
+if test -f "$ltmain"; then
+  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
+  $rm -f "${ofile}T"
+
+  echo creating $ofile
+
+  # Now quote all the things that may contain metacharacters while being
+  # careful not to overquote the AC_SUBSTed values.  We take copies of the
+  # variables and quote the copies for generation of the libtool script.
+  for var in echo old_CC old_CFLAGS SED \
+    AR AR_FLAGS CC LD LN_S NM SHELL \
+    reload_flag reload_cmds wl \
+    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
+    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
+    library_names_spec soname_spec \
+    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
+    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
+    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
+    old_striplib striplib file_magic_cmd export_symbols_cmds \
+    deplibs_check_method allow_undefined_flag no_undefined_flag \
+    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
+    global_symbol_to_c_name_address \
+    hardcode_libdir_flag_spec hardcode_libdir_separator  \
+    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
+    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
+
+    case $var in
+    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
+    old_postinstall_cmds | old_postuninstall_cmds | \
+    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
+    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
+    postinstall_cmds | postuninstall_cmds | \
+    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
+      # Double-quote double-evaled strings.
+      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
+      ;;
+    *)
+      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
+      ;;
+    esac
+  done
+
+  cat <<__EOF__ > "${ofile}T"
+#! $SHELL
+
+# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
+# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
+# NOTE: Changes made to this file will be lost: look at ltmain.sh.
+#
+# Copyright (C) 1996-2000 Free Software Foundation, Inc.
+# Originally by Gordon Matzigkeit <gord at gnu.ai.mit.edu>, 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., 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.
+
+# A sed that does not truncate output.
+SED=$lt_SED
+
+# Sed that helps us avoid accidentally triggering echo(1) options like -n.
+Xsed="${SED} -e s/^X//"
+
+# The HP-UX ksh and POSIX shell print the target directory to stdout
+# if CDPATH is set.
+if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
+
+# ### BEGIN LIBTOOL CONFIG
+
+# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
+
+# Shell to use when invoking shell scripts.
+SHELL=$lt_SHELL
+
+# Whether or not to build shared libraries.
+build_libtool_libs=$enable_shared
+
+# Whether or not to build static libraries.
+build_old_libs=$enable_static
+
+# Whether or not to add -lc for building shared libraries.
+build_libtool_need_lc=$need_lc
+
+# Whether or not to optimize for fast installation.
+fast_install=$enable_fast_install
+
+# The host system.
+host_alias=$host_alias
+host=$host
+
+# An echo program that does not interpret backslashes.
+echo=$lt_echo
+
+# The archiver.
+AR=$lt_AR
+AR_FLAGS=$lt_AR_FLAGS
+
+# The default C compiler.
+CC=$lt_CC
+
+# Is the compiler the GNU C compiler?
+with_gcc=$GCC
+
+# The linker used to build libraries.
+LD=$lt_LD
+
+# Whether we need hard or soft links.
+LN_S=$lt_LN_S
+
+# A BSD-compatible nm program.
+NM=$lt_NM
+
+# A symbol stripping program
+STRIP=$STRIP
+
+# Used to examine libraries when file_magic_cmd begins "file"
+MAGIC_CMD=$MAGIC_CMD
+
+# Used on cygwin: DLL creation program.
+DLLTOOL="$DLLTOOL"
+
+# Used on cygwin: object dumper.
+OBJDUMP="$OBJDUMP"
+
+# Used on cygwin: assembler.
+AS=$lt_AS
+
+# The name of the directory that contains temporary libtool files.
+objdir=$objdir
+
+# How to create reloadable object files.
+reload_flag=$lt_reload_flag
+reload_cmds=$lt_reload_cmds
+
+# How to pass a linker flag through the compiler.
+wl=$lt_wl
+
+# Object file suffix (normally "o").
+objext="$ac_objext"
+
+# Old archive suffix (normally "a").
+libext="$libext"
+
+# Executable file suffix (normally "").
+exeext="$exeext"
+
+# Additional compiler flags for building library objects.
+pic_flag=$lt_pic_flag
+pic_mode=$pic_mode
+
+# Does compiler simultaneously support -c and -o options?
+compiler_c_o=$lt_compiler_c_o
+
+# Can we write directly to a .lo ?
+compiler_o_lo=$lt_compiler_o_lo
+
+# Must we lock files when doing compilation ?
+need_locks=$lt_need_locks
+
+# Do we need the lib prefix for modules?
+need_lib_prefix=$need_lib_prefix
+
+# Do we need a version for libraries?
+need_version=$need_version
+
+# Whether dlopen is supported.
+dlopen_support=$enable_dlopen
+
+# Whether dlopen of programs is supported.
+dlopen_self=$enable_dlopen_self
+
+# Whether dlopen of statically linked programs is supported.
+dlopen_self_static=$enable_dlopen_self_static
+
+# Compiler flag to prevent dynamic linking.
+link_static_flag=$lt_link_static_flag
+
+# Compiler flag to turn off builtin functions.
+no_builtin_flag=$lt_no_builtin_flag
+
+# Compiler flag to allow reflexive dlopens.
+export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
+
+# Compiler flag to generate shared objects directly from archives.
+whole_archive_flag_spec=$lt_whole_archive_flag_spec
+
+# Compiler flag to generate thread-safe objects.
+thread_safe_flag_spec=$lt_thread_safe_flag_spec
+
+# Library versioning type.
+version_type=$version_type
+
+# Format of library name prefix.
+libname_spec=$lt_libname_spec
+
+# List of archive names.  First name is the real one, the rest are links.
+# The last name is the one that the linker finds with -lNAME.
+library_names_spec=$lt_library_names_spec
+
+# The coded name of the library, if different from the real name.
+soname_spec=$lt_soname_spec
+
+# Commands used to build and install an old-style archive.
+RANLIB=$lt_RANLIB
+old_archive_cmds=$lt_old_archive_cmds
+old_postinstall_cmds=$lt_old_postinstall_cmds
+old_postuninstall_cmds=$lt_old_postuninstall_cmds
+
+# Create an old-style archive from a shared archive.
+old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
+
+# Create a temporary old-style archive to link instead of a shared archive.
+old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
+
+# Commands used to build and install a shared archive.
+archive_cmds=$lt_archive_cmds
+archive_expsym_cmds=$lt_archive_expsym_cmds
+postinstall_cmds=$lt_postinstall_cmds
+postuninstall_cmds=$lt_postuninstall_cmds
+
+# Commands to strip libraries.
+old_striplib=$lt_old_striplib
+striplib=$lt_striplib
+
+# Method to check whether dependent libraries are shared objects.
+deplibs_check_method=$lt_deplibs_check_method
+
+# Command to use when deplibs_check_method == file_magic.
+file_magic_cmd=$lt_file_magic_cmd
+
+# Flag that allows shared libraries with undefined symbols to be built.
+allow_undefined_flag=$lt_allow_undefined_flag
+
+# Flag that forces no undefined symbols.
+no_undefined_flag=$lt_no_undefined_flag
+
+# Commands used to finish a libtool library installation in a directory.
+finish_cmds=$lt_finish_cmds
+
+# Same as above, but a single script fragment to be evaled but not shown.
+finish_eval=$lt_finish_eval
+
+# Take the output of nm and produce a listing of raw symbols and C names.
+global_symbol_pipe=$lt_global_symbol_pipe
+
+# Transform the output of nm in a proper C declaration
+global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
+
+# Transform the output of nm in a C name address pair
+global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
+
+# This is the shared library runtime path variable.
+runpath_var=$runpath_var
+
+# This is the shared library path variable.
+shlibpath_var=$shlibpath_var
+
+# Is shlibpath searched before the hard-coded library search path?
+shlibpath_overrides_runpath=$shlibpath_overrides_runpath
+
+# How to hardcode a shared library path into an executable.
+hardcode_action=$hardcode_action
+
+# Whether we should hardcode library paths into libraries.
+hardcode_into_libs=$hardcode_into_libs
+
+# Flag to hardcode \$libdir into a binary during linking.
+# This must work even if \$libdir does not exist.
+hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
+
+# Whether we need a single -rpath flag with a separated argument.
+hardcode_libdir_separator=$lt_hardcode_libdir_separator
+
+# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
+# resulting binary.
+hardcode_direct=$hardcode_direct
+
+# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
+# resulting binary.
+hardcode_minus_L=$hardcode_minus_L
+
+# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
+# the resulting binary.
+hardcode_shlibpath_var=$hardcode_shlibpath_var
+
+# Variables whose values should be saved in libtool wrapper scripts and
+# restored at relink time.
+variables_saved_for_relink="$variables_saved_for_relink"
+
+# Whether libtool must link a program against all its dependency libraries.
+link_all_deplibs=$link_all_deplibs
+
+# Compile-time system search path for libraries
+sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
+
+# Run-time system search path for libraries
+sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
+
+# Fix the shell variable \$srcfile for the compiler.
+fix_srcfile_path="$fix_srcfile_path"
+
+# Set to yes if exported symbols are required.
+always_export_symbols=$always_export_symbols
+
+# The commands to list exported symbols.
+export_symbols_cmds=$lt_export_symbols_cmds
+
+# The commands to extract the exported symbol list from a shared archive.
+extract_expsyms_cmds=$lt_extract_expsyms_cmds
+
+# Symbols that should not be listed in the preloaded symbols.
+exclude_expsyms=$lt_exclude_expsyms
+
+# Symbols that must always be exported.
+include_expsyms=$lt_include_expsyms
+
+# ### END LIBTOOL CONFIG
+
+__EOF__
+
+  case $host_os in
+  aix3*)
+    cat <<\EOF >> "${ofile}T"
+
+# AIX sometimes has problems with the GCC collect2 program.  For some
+# reason, if we set the COLLECT_NAMES environment variable, the problems
+# vanish in a puff of smoke.
+if test "X${COLLECT_NAMES+set}" != Xset; then
+  COLLECT_NAMES=
+  export COLLECT_NAMES
+fi
+EOF
+    ;;
+  esac
+
+  case $host_os in
+  cygwin* | mingw* | pw32* | os2*)
+    cat <<'EOF' >> "${ofile}T"
+      # This is a source program that is used to create dlls on Windows
+      # Don't remove nor modify the starting and closing comments
+# /* ltdll.c starts here */
+# #define WIN32_LEAN_AND_MEAN
+# #include <windows.h>
+# #undef WIN32_LEAN_AND_MEAN
+# #include <stdio.h>
+#
+# #ifndef __CYGWIN__
+# #  ifdef __CYGWIN32__
+# #    define __CYGWIN__ __CYGWIN32__
+# #  endif
+# #endif
+#
+# #ifdef __cplusplus
+# extern "C" {
+# #endif
+# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
+# #ifdef __cplusplus
+# }
+# #endif
+#
+# #ifdef __CYGWIN__
+# #include <cygwin/cygwin_dll.h>
+# DECLARE_CYGWIN_DLL( DllMain );
+# #endif
+# HINSTANCE __hDllInstance_base;
+#
+# BOOL APIENTRY
+# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
+# {
+#   __hDllInstance_base = hInst;
+#   return TRUE;
+# }
+# /* ltdll.c ends here */
+	# This is a source program that is used to create import libraries
+	# on Windows for dlls which lack them. Don't remove nor modify the
+	# starting and closing comments
+# /* impgen.c starts here */
+# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
+#
+#  This file is part of GNU libtool.
+#
+#  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.
+#  */
+#
+# #include <stdio.h>		/* for printf() */
+# #include <unistd.h>		/* for open(), lseek(), read() */
+# #include <fcntl.h>		/* for O_RDONLY, O_BINARY */
+# #include <string.h>		/* for strdup() */
+#
+# /* O_BINARY isn't required (or even defined sometimes) under Unix */
+# #ifndef O_BINARY
+# #define O_BINARY 0
+# #endif
+#
+# static unsigned int
+# pe_get16 (fd, offset)
+#      int fd;
+#      int offset;
+# {
+#   unsigned char b[2];
+#   lseek (fd, offset, SEEK_SET);
+#   read (fd, b, 2);
+#   return b[0] + (b[1]<<8);
+# }
+#
+# static unsigned int
+# pe_get32 (fd, offset)
+#     int fd;
+#     int offset;
+# {
+#   unsigned char b[4];
+#   lseek (fd, offset, SEEK_SET);
+#   read (fd, b, 4);
+#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
+# }
+#
+# static unsigned int
+# pe_as32 (ptr)
+#      void *ptr;
+# {
+#   unsigned char *b = ptr;
+#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
+# }
+#
+# int
+# main (argc, argv)
+#     int argc;
+#     char *argv[];
+# {
+#     int dll;
+#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
+#     unsigned long export_rva, export_size, nsections, secptr, expptr;
+#     unsigned long name_rvas, nexp;
+#     unsigned char *expdata, *erva;
+#     char *filename, *dll_name;
+#
+#     filename = argv[1];
+#
+#     dll = open(filename, O_RDONLY|O_BINARY);
+#     if (dll < 1)
+# 	return 1;
+#
+#     dll_name = filename;
+#
+#     for (i=0; filename[i]; i++)
+# 	if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
+# 	    dll_name = filename + i +1;
+#
+#     pe_header_offset = pe_get32 (dll, 0x3c);
+#     opthdr_ofs = pe_header_offset + 4 + 20;
+#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
+#
+#     if (num_entries < 1) /* no exports */
+# 	return 1;
+#
+#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
+#     export_size = pe_get32 (dll, opthdr_ofs + 100);
+#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
+#     secptr = (pe_header_offset + 4 + 20 +
+# 	      pe_get16 (dll, pe_header_offset + 4 + 16));
+#
+#     expptr = 0;
+#     for (i = 0; i < nsections; i++)
+#     {
+# 	char sname[8];
+# 	unsigned long secptr1 = secptr + 40 * i;
+# 	unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
+# 	unsigned long vsize = pe_get32 (dll, secptr1 + 16);
+# 	unsigned long fptr = pe_get32 (dll, secptr1 + 20);
+# 	lseek(dll, secptr1, SEEK_SET);
+# 	read(dll, sname, 8);
+# 	if (vaddr <= export_rva && vaddr+vsize > export_rva)
+# 	{
+# 	    expptr = fptr + (export_rva - vaddr);
+# 	    if (export_rva + export_size > vaddr + vsize)
+# 		export_size = vsize - (export_rva - vaddr);
+# 	    break;
+# 	}
+#     }
+#
+#     expdata = (unsigned char*)malloc(export_size);
+#     lseek (dll, expptr, SEEK_SET);
+#     read (dll, expdata, export_size);
+#     erva = expdata - export_rva;
+#
+#     nexp = pe_as32 (expdata+24);
+#     name_rvas = pe_as32 (expdata+32);
+#
+#     printf ("EXPORTS\n");
+#     for (i = 0; i<nexp; i++)
+#     {
+# 	unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
+# 	printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
+#     }
+#
+#     return 0;
+# }
+# /* impgen.c ends here */
+
+EOF
+    ;;
+  esac
+
+  # We use sed instead of cat because bash on DJGPP gets confused if
+  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
+  # text mode, it properly converts lines to CR/LF.  This bash problem
+  # is reportedly fixed, but why not run on old versions too?
+  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
+
+  mv -f "${ofile}T" "$ofile" || \
+    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
+  chmod +x "$ofile"
+fi
+
+])# _LT_AC_LTCONFIG_HACK
+
+# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
+AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
+
+# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
+AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
+
+# AC_ENABLE_SHARED - implement the --enable-shared flag
+# Usage: AC_ENABLE_SHARED[(DEFAULT)]
+#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
+#   `yes'.
+AC_DEFUN([AC_ENABLE_SHARED],
+[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
+AC_ARG_ENABLE(shared,
+changequote(<<, >>)dnl
+<<  --enable-shared[=PKGS]  build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
+changequote([, ])dnl
+[p=${PACKAGE-default}
+case $enableval in
+yes) enable_shared=yes ;;
+no) enable_shared=no ;;
+*)
+  enable_shared=no
+  # Look at the argument we got.  We use all the common list separators.
+  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
+  for pkg in $enableval; do
+    if test "X$pkg" = "X$p"; then
+      enable_shared=yes
+    fi
+  done
+  IFS="$ac_save_ifs"
+  ;;
+esac],
+enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
+])
+
+# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
+AC_DEFUN([AC_DISABLE_SHARED],
+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
+AC_ENABLE_SHARED(no)])
+
+# AC_ENABLE_STATIC - implement the --enable-static flag
+# Usage: AC_ENABLE_STATIC[(DEFAULT)]
+#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
+#   `yes'.
+AC_DEFUN([AC_ENABLE_STATIC],
+[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
+AC_ARG_ENABLE(static,
+changequote(<<, >>)dnl
+<<  --enable-static[=PKGS]  build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
+changequote([, ])dnl
+[p=${PACKAGE-default}
+case $enableval in
+yes) enable_static=yes ;;
+no) enable_static=no ;;
+*)
+  enable_static=no
+  # Look at the argument we got.  We use all the common list separators.
+  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
+  for pkg in $enableval; do
+    if test "X$pkg" = "X$p"; then
+      enable_static=yes
+    fi
+  done
+  IFS="$ac_save_ifs"
+  ;;
+esac],
+enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
+])
+
+# AC_DISABLE_STATIC - set the default static flag to --disable-static
+AC_DEFUN([AC_DISABLE_STATIC],
+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
+AC_ENABLE_STATIC(no)])
+
+
+# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
+# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
+#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
+#   `yes'.
+AC_DEFUN([AC_ENABLE_FAST_INSTALL],
+[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
+AC_ARG_ENABLE(fast-install,
+changequote(<<, >>)dnl
+<<  --enable-fast-install[=PKGS]  optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
+changequote([, ])dnl
+[p=${PACKAGE-default}
+case $enableval in
+yes) enable_fast_install=yes ;;
+no) enable_fast_install=no ;;
+*)
+  enable_fast_install=no
+  # Look at the argument we got.  We use all the common list separators.
+  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
+  for pkg in $enableval; do
+    if test "X$pkg" = "X$p"; then
+      enable_fast_install=yes
+    fi
+  done
+  IFS="$ac_save_ifs"
+  ;;
+esac],
+enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
+])
+
+# AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install
+AC_DEFUN([AC_DISABLE_FAST_INSTALL],
+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
+AC_ENABLE_FAST_INSTALL(no)])
+
+# AC_LIBTOOL_PICMODE - implement the --with-pic flag
+# Usage: AC_LIBTOOL_PICMODE[(MODE)]
+#   Where MODE is either `yes' or `no'.  If omitted, it defaults to
+#   `both'.
+AC_DEFUN([AC_LIBTOOL_PICMODE],
+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
+pic_mode=ifelse($#,1,$1,default)])
+
+
+# AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
+AC_DEFUN([AC_PATH_TOOL_PREFIX],
+[AC_MSG_CHECKING([for $1])
+AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
+[case $MAGIC_CMD in
+  /*)
+  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
+  ;;
+  ?:/*)
+  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
+  ;;
+  *)
+  ac_save_MAGIC_CMD="$MAGIC_CMD"
+  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
+dnl $ac_dummy forces splitting on constant user-supplied paths.
+dnl POSIX.2 word splitting is done only on the output of word expansions,
+dnl not every word.  This closes a longstanding sh security hole.
+  ac_dummy="ifelse([$2], , $PATH, [$2])"
+  for ac_dir in $ac_dummy; do
+    test -z "$ac_dir" && ac_dir=.
+    if test -f $ac_dir/$1; then
+      lt_cv_path_MAGIC_CMD="$ac_dir/$1"
+      if test -n "$file_magic_test_file"; then
+	case $deplibs_check_method in
+	"file_magic "*)
+	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
+	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
+	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
+	    egrep "$file_magic_regex" > /dev/null; then
+	    :
+	  else
+	    cat <<EOF 1>&2
+
+*** Warning: the command libtool uses to detect shared libraries,
+*** $file_magic_cmd, produces output that libtool cannot recognize.
+*** The result is that libtool may fail to recognize shared libraries
+*** as such.  This will affect the creation of libtool libraries that
+*** depend on shared libraries, but programs linked with such libtool
+*** libraries will work regardless of this problem.  Nevertheless, you
+*** may want to report the problem to your system manager and/or to
+*** bug-libtool at gnu.org
+
+EOF
+	  fi ;;
+	esac
+      fi
+      break
+    fi
+  done
+  IFS="$ac_save_ifs"
+  MAGIC_CMD="$ac_save_MAGIC_CMD"
+  ;;
+esac])
+MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
+if test -n "$MAGIC_CMD"; then
+  AC_MSG_RESULT($MAGIC_CMD)
+else
+  AC_MSG_RESULT(no)
+fi
+])
+
+
+# AC_PATH_MAGIC - find a file program which can recognise a shared library
+AC_DEFUN([AC_PATH_MAGIC],
+[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl
+AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH)
+if test -z "$lt_cv_path_MAGIC_CMD"; then
+  if test -n "$ac_tool_prefix"; then
+    AC_PATH_TOOL_PREFIX(file, /usr/bin:$PATH)
+  else
+    MAGIC_CMD=:
+  fi
+fi
+])
+
+
+# AC_PROG_LD - find the path to the GNU or non-GNU linker
+AC_DEFUN([AC_PROG_LD],
+[AC_ARG_WITH(gnu-ld,
+[  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],
+test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
+AC_REQUIRE([AC_PROG_CC])dnl
+AC_REQUIRE([AC_CANONICAL_HOST])dnl
+AC_REQUIRE([AC_CANONICAL_BUILD])dnl
+AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
+ac_prog=ld
+if test "$GCC" = yes; then
+  # Check if gcc -print-prog-name=ld gives a path.
+  AC_MSG_CHECKING([for ld used by GCC])
+  case $host in
+  *-*-mingw*)
+    # gcc leaves a trailing carriage return which upsets mingw
+    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
+  *)
+    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
+  esac
+  case $ac_prog in
+    # Accept absolute paths.
+    [[\\/]]* | [[A-Za-z]]:[[\\/]]*)
+      re_direlt='/[[^/]][[^/]]*/\.\./'
+      # Canonicalize the path of ld
+      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
+      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
+	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
+      done
+      test -z "$LD" && LD="$ac_prog"
+      ;;
+  "")
+    # If it fails, then pretend we aren't using GCC.
+    ac_prog=ld
+    ;;
+  *)
+    # If it is relative, then search for the first ld in PATH.
+    with_gnu_ld=unknown
+    ;;
+  esac
+elif test "$with_gnu_ld" = yes; then
+  AC_MSG_CHECKING([for GNU ld])
+else
+  AC_MSG_CHECKING([for non-GNU ld])
+fi
+AC_CACHE_VAL(lt_cv_path_LD,
+[if test -z "$LD"; then
+  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+  for ac_dir in $PATH; do
+    test -z "$ac_dir" && ac_dir=.
+    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
+      lt_cv_path_LD="$ac_dir/$ac_prog"
+      # Check to see if the program is GNU ld.  I'd rather use --version,
+      # but apparently some GNU ld's only accept -v.
+      # Break only if it was the GNU/non-GNU ld that we prefer.
+      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
+	test "$with_gnu_ld" != no && break
+      else
+	test "$with_gnu_ld" != yes && break
+      fi
+    fi
+  done
+  IFS="$ac_save_ifs"
+else
+  lt_cv_path_LD="$LD" # Let the user override the test with a path.
+fi])
+LD="$lt_cv_path_LD"
+if test -n "$LD"; then
+  AC_MSG_RESULT($LD)
+else
+  AC_MSG_RESULT(no)
+fi
+test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
+AC_PROG_LD_GNU
+])
+
+# AC_PROG_LD_GNU -
+AC_DEFUN([AC_PROG_LD_GNU],
+[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
+[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
+if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
+  lt_cv_prog_gnu_ld=yes
+else
+  lt_cv_prog_gnu_ld=no
+fi])
+with_gnu_ld=$lt_cv_prog_gnu_ld
+])
+
+# AC_PROG_LD_RELOAD_FLAG - find reload flag for linker
+#   -- PORTME Some linkers may need a different reload flag.
+AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
+[AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag,
+[lt_cv_ld_reload_flag='-r'])
+reload_flag=$lt_cv_ld_reload_flag
+test -n "$reload_flag" && reload_flag=" $reload_flag"
+])
+
+# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
+#  -- PORTME fill in with the dynamic library characteristics
+AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
+[AC_CACHE_CHECK([how to recognise dependent libraries],
+lt_cv_deplibs_check_method,
+[lt_cv_file_magic_cmd='$MAGIC_CMD'
+lt_cv_file_magic_test_file=
+lt_cv_deplibs_check_method='unknown'
+# Need to set the preceding variable on all platforms that support
+# interlibrary dependencies.
+# 'none' -- dependencies not supported.
+# `unknown' -- same as none, but documents that we really don't know.
+# 'pass_all' -- all dependencies passed with no checks.
+# 'test_compile' -- check by making test program.
+# 'file_magic [[regex]]' -- check by looking for files in library path
+# which responds to the $file_magic_cmd with a given egrep regex.
+# If you have `file' or equivalent on your system and you're not sure
+# whether `pass_all' will *always* work, you probably want this one.
+
+case $host_os in
+aix4* | aix5*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+beos*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+bsdi4*)
+  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
+  lt_cv_file_magic_cmd='/usr/bin/file -L'
+  lt_cv_file_magic_test_file=/shlib/libc.so
+  ;;
+
+cygwin* | mingw* | pw32*)
+  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
+  lt_cv_file_magic_cmd='$OBJDUMP -f'
+  ;;
+
+darwin* | rhapsody*)
+  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
+  lt_cv_file_magic_cmd='/usr/bin/file -L'
+  case "$host_os" in
+  rhapsody* | darwin1.[[012]])
+    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
+    ;;
+  *) # Darwin 1.3 on
+    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
+    ;;
+  esac
+  ;;
+
+freebsd*)
+  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
+    case $host_cpu in
+    i*86 )
+      # Not sure whether the presence of OpenBSD here was a mistake.
+      # Let's accept both of them until this is cleared up.
+      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
+      lt_cv_file_magic_cmd=/usr/bin/file
+      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
+      ;;
+    esac
+  else
+    lt_cv_deplibs_check_method=pass_all
+  fi
+  ;;
+
+gnu*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+hpux10.20*|hpux11*)
+  lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
+  lt_cv_file_magic_cmd=/usr/bin/file
+  lt_cv_file_magic_test_file=/usr/lib/libc.sl
+  ;;
+
+irix5* | irix6* | nonstopux*)
+  case $host_os in
+  irix5* | nonstopux*)
+    # this will be overridden with pass_all, but let us keep it just in case
+    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
+    ;;
+  *)
+    case $LD in
+    *-32|*"-32 ") libmagic=32-bit;;
+    *-n32|*"-n32 ") libmagic=N32;;
+    *-64|*"-64 ") libmagic=64-bit;;
+    *) libmagic=never-match;;
+    esac
+    # this will be overridden with pass_all, but let us keep it just in case
+    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1"
+    ;;
+  esac
+  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+# This must be Linux ELF.
+linux*)
+  case $host_cpu in
+  alpha* | hppa* | i*86 | m68* | mips | mipsel | powerpc* | s390* | sparc* | ia64* | x86_64*)
+    lt_cv_deplibs_check_method=pass_all ;;
+  *)
+    # glibc up to 2.1.1 does not perform some relocations on ARM
+    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
+  esac
+  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
+  ;;
+
+netbsd*)
+  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
+    lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so\.[[0-9]]+\.[[0-9]]+$'
+  else
+    lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so$'
+  fi
+  ;;
+
+newos6*)
+  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
+  lt_cv_file_magic_cmd=/usr/bin/file
+  lt_cv_file_magic_test_file=/usr/lib/libnls.so
+  ;;
+
+openbsd*)
+  lt_cv_file_magic_cmd=/usr/bin/file
+  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
+  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
+  else
+    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
+  fi
+  ;;
+
+osf3* | osf4* | osf5*)
+  # this will be overridden with pass_all, but let us keep it just in case
+  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
+  lt_cv_file_magic_test_file=/shlib/libc.so
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+sco3.2v5*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+solaris*)
+  lt_cv_deplibs_check_method=pass_all
+  lt_cv_file_magic_test_file=/lib/libc.so
+  ;;
+
+sysv5uw[[78]]* | sysv4*uw2*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+  case $host_vendor in
+  motorola)
+    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
+    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
+    ;;
+  ncr)
+    lt_cv_deplibs_check_method=pass_all
+    ;;
+  sequent)
+    lt_cv_file_magic_cmd='/bin/file'
+    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
+    ;;
+  sni)
+    lt_cv_file_magic_cmd='/bin/file'
+    lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
+    lt_cv_file_magic_test_file=/lib/libc.so
+    ;;
+  siemens)
+    lt_cv_deplibs_check_method=pass_all
+    ;;
+  esac
+  ;;
+esac
+])
+file_magic_cmd=$lt_cv_file_magic_cmd
+deplibs_check_method=$lt_cv_deplibs_check_method
+])
+
+
+# AC_PROG_NM - find the path to a BSD-compatible name lister
+AC_DEFUN([AC_PROG_NM],
+[AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
+AC_MSG_CHECKING([for BSD-compatible nm])
+AC_CACHE_VAL(lt_cv_path_NM,
+[if test -n "$NM"; then
+  # Let the user override the test.
+  lt_cv_path_NM="$NM"
+else
+  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
+    test -z "$ac_dir" && ac_dir=.
+    tmp_nm=$ac_dir/${ac_tool_prefix}nm
+    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
+      # Check to see if the nm accepts a BSD-compat flag.
+      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
+      #   nm: unknown option "B" ignored
+      # Tru64's nm complains that /dev/null is an invalid object file
+      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
+	lt_cv_path_NM="$tmp_nm -B"
+	break
+      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
+	lt_cv_path_NM="$tmp_nm -p"
+	break
+      else
+	lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
+	continue # so that we can try to find one that supports BSD flags
+      fi
+    fi
+  done
+  IFS="$ac_save_ifs"
+  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
+fi])
+NM="$lt_cv_path_NM"
+AC_MSG_RESULT([$NM])
+])
+
+# AC_CHECK_LIBM - check for math library
+AC_DEFUN([AC_CHECK_LIBM],
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
+LIBM=
+case $host in
+*-*-beos* | *-*-cygwin* | *-*-pw32*)
+  # These system don't have libm
+  ;;
+*-ncr-sysv4.3*)
+  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
+  AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
+  ;;
+*)
+  AC_CHECK_LIB(m, main, LIBM="-lm")
+  ;;
+esac
+])
+
+# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
+# the libltdl convenience library and LTDLINCL to the include flags for
+# the libltdl header and adds --enable-ltdl-convenience to the
+# configure arguments.  Note that LIBLTDL and LTDLINCL are not
+# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If DIR is not
+# provided, it is assumed to be `libltdl'.  LIBLTDL will be prefixed
+# with '${top_builddir}/' and LTDLINCL will be prefixed with
+# '${top_srcdir}/' (note the single quotes!).  If your package is not
+# flat and you're not using automake, define top_builddir and
+# top_srcdir appropriately in the Makefiles.
+AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
+  case $enable_ltdl_convenience in
+  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
+  "") enable_ltdl_convenience=yes
+      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
+  esac
+  LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
+  LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
+  # For backwards non-gettext consistent compatibility...
+  INCLTDL="$LTDLINCL"
+])
+
+# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
+# the libltdl installable library and LTDLINCL to the include flags for
+# the libltdl header and adds --enable-ltdl-install to the configure
+# arguments.  Note that LIBLTDL and LTDLINCL are not AC_SUBSTed, nor is
+# AC_CONFIG_SUBDIRS called.  If DIR is not provided and an installed
+# libltdl is not found, it is assumed to be `libltdl'.  LIBLTDL will
+# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed
+# with '${top_srcdir}/' (note the single quotes!).  If your package is
+# not flat and you're not using automake, define top_builddir and
+# top_srcdir appropriately in the Makefiles.
+# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
+AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
+  AC_CHECK_LIB(ltdl, main,
+  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
+  [if test x"$enable_ltdl_install" = xno; then
+     AC_MSG_WARN([libltdl not installed, but installation disabled])
+   else
+     enable_ltdl_install=yes
+   fi
+  ])
+  if test x"$enable_ltdl_install" = x"yes"; then
+    ac_configure_args="$ac_configure_args --enable-ltdl-install"
+    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
+    LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
+  else
+    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
+    LIBLTDL="-lltdl"
+    LTDLINCL=
+  fi
+  # For backwards non-gettext consistent compatibility...
+  INCLTDL="$LTDLINCL"
+])
+
+# old names
+AC_DEFUN([AM_PROG_LIBTOOL],   [AC_PROG_LIBTOOL])
+AC_DEFUN([AM_ENABLE_SHARED],  [AC_ENABLE_SHARED($@)])
+AC_DEFUN([AM_ENABLE_STATIC],  [AC_ENABLE_STATIC($@)])
+AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
+AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
+AC_DEFUN([AM_PROG_LD],        [AC_PROG_LD])
+AC_DEFUN([AM_PROG_NM],        [AC_PROG_NM])
+
+# This is just to silence aclocal about the macro not being used
+ifelse([AC_DISABLE_FAST_INSTALL])
+
+# NOTE: This macro has been submitted for inclusion into   #
+#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
+#  a released version of Autoconf we should remove this    #
+#  macro and use it instead.                               #
+# LT_AC_PROG_SED
+# --------------
+# Check for a fully-functional sed program, that truncates
+# as few characters as possible.  Prefer GNU sed if found.
+AC_DEFUN([LT_AC_PROG_SED],
+[AC_MSG_CHECKING([for a sed that does not truncate output])
+AC_CACHE_VAL(lt_cv_path_SED,
+[# Loop through the user's path and test for sed and gsed.
+# Then use that list of sed's as ones to test for truncation.
+as_executable_p="test -f"
+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_prog in sed gsed; do
+    for ac_exec_ext in '' $ac_executable_extensions; do
+      if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
+        _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
+      fi
+    done
+  done
+done
+
+  # Create a temporary directory, and hook for its removal unless debugging.
+$debug ||
+{
+  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
+  trap '{ (exit 1); exit 1; }' 1 2 13 15
+}
+
+# Create a (secure) tmp directory for tmp files.
+: ${TMPDIR=/tmp}
+{
+  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
+  test -n "$tmp" && test -d "$tmp"
+}  ||
+{
+  tmp=$TMPDIR/sed$$-$RANDOM
+  (umask 077 && mkdir $tmp)
+} ||
+{
+   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
+   { (exit 1); exit 1; }
+}
+  _max=0
+  _count=0
+  # Add /usr/xpg4/bin/sed as it is typically found on Solaris
+  # along with /bin/sed that truncates output.
+  for _sed in $_sed_list /usr/xpg4/bin/sed; do
+    test ! -f ${_sed} && break
+    cat /dev/null > "$tmp/sed.in"
+    _count=0
+    echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
+    # Check for GNU sed and select it if it is found.
+    if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
+      lt_cv_path_SED=${_sed}
+      break
+    fi
+    while true; do
+      cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
+      mv "$tmp/sed.tmp" "$tmp/sed.in"
+      cp "$tmp/sed.in" "$tmp/sed.nl"
+      echo >>"$tmp/sed.nl"
+      ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
+      cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
+      # 40000 chars as input seems more than enough
+      test $_count -gt 10 && break
+      _count=`expr $_count + 1`
+      if test $_count -gt $_max; then
+        _max=$_count
+        lt_cv_path_SED=$_sed
+      fi
+    done
+  done
+  rm -rf "$tmp"
+])
+if test "X$SED" != "X"; then
+  lt_cv_path_SED=$SED
+else
+  SED=$lt_cv_path_SED
+fi
+AC_MSG_RESULT([$SED])
+])
+
+# isc-posix.m4 serial 2 (gettext-0.11.2)
+dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
+dnl This file is free software, distributed under the terms of the GNU
+dnl General Public License.  As a special exception to the GNU General
+dnl Public License, this file may be distributed as part of a program
+dnl that contains a configuration script generated by Autoconf, under
+dnl the same distribution terms as the rest of that program.
+
+# This file is not needed with autoconf-2.53 and newer.  Remove it in 2005.
+
+# This test replaces the one in autoconf.
+# Currently this macro should have the same name as the autoconf macro
+# because gettext's gettext.m4 (distributed in the automake package)
+# still uses it.  Otherwise, the use in gettext.m4 makes autoheader
+# give these diagnostics:
+#   configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
+#   configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
+
+undefine([AC_ISC_POSIX])
+
+AC_DEFUN([AC_ISC_POSIX],
+  [
+    dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
+    AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
+  ]
+)
+
+
+dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
+dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
+dnl also defines GSTUFF_PKG_ERRORS on error
+AC_DEFUN(PKG_CHECK_MODULES, [
+  succeeded=no
+
+  if test -z "$PKG_CONFIG"; then
+    AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
+  fi
+
+  if test "$PKG_CONFIG" = "no" ; then
+     echo "*** The pkg-config script could not be found. Make sure it is"
+     echo "*** in your path, or set the PKG_CONFIG environment variable"
+     echo "*** to the full path to pkg-config."
+     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
+  else
+     PKG_CONFIG_MIN_VERSION=0.9.0
+     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
+        AC_MSG_CHECKING(for $2)
+
+        if $PKG_CONFIG --exists "$2" ; then
+            AC_MSG_RESULT(yes)
+            succeeded=yes
+
+            AC_MSG_CHECKING($1_CFLAGS)
+            $1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
+            AC_MSG_RESULT($$1_CFLAGS)
+
+            AC_MSG_CHECKING($1_LIBS)
+            $1_LIBS=`$PKG_CONFIG --libs "$2"`
+            AC_MSG_RESULT($$1_LIBS)
+        else
+            $1_CFLAGS=""
+            $1_LIBS=""
+            ## If we have a custom action on failure, don't print errors, but 
+            ## do set a variable so people can do so.
+            $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
+            ifelse([$4], ,echo $$1_PKG_ERRORS,)
+        fi
+
+        AC_SUBST($1_CFLAGS)
+        AC_SUBST($1_LIBS)
+     else
+        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
+        echo "*** See http://www.freedesktop.org/software/pkgconfig"
+     fi
+  fi
+
+  if test $succeeded = yes; then
+     ifelse([$3], , :, [$3])
+  else
+     ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4])
+  fi
+])
+
+
+
+
+# serial 5 AC_LIB_LTDL
+
+# AC_WITH_LTDL
+# ------------
+# Clients of libltdl can use this macro to allow the installer to
+# choose between a shipped copy of the ltdl sources or a preinstalled
+# version of the library.
+AC_DEFUN([AC_WITH_LTDL],
+[AC_REQUIRE([AC_LIB_LTDL])
+AC_SUBST([LIBLTDL])
+AC_SUBST([INCLTDL])
+
+# Unless the user asks us to check, assume no installed ltdl exists.
+use_installed_libltdl=no
+
+AC_ARG_WITH([included_ltdl],
+    [  --with-included-ltdl    use the GNU ltdl sources included here])
+
+if test "x$with_included_ltdl" != xyes; then
+  # We are not being forced to use the included libltdl sources, so
+  # decide whether there is a useful installed version we can use.
+  AC_CHECK_HEADER([ltdl.h],
+      [AC_CHECK_LIB([ltdl], [lt_dlcaller_register],
+          [with_included_ltdl=no],
+          [with_included_ltdl=yes])
+  ])
+fi
+
+if test "x$enable_ltdl_install" != xyes; then
+  # If the user did not specify an installable libltdl, then default
+  # to a convenience lib.
+  AC_LIBLTDL_CONVENIENCE
+fi
+
+if test "x$with_included_ltdl" = xno; then
+  # If the included ltdl is not to be used. then Use the
+  # preinstalled libltdl we found.
+  AC_DEFINE([HAVE_LTDL], 1,
+    [Define this if a modern libltdl is already installed])
+  LIBLTDL=-lltdl
+fi
+
+# Report our decision...
+AC_MSG_CHECKING([whether to use included libltdl])
+AC_MSG_RESULT([$with_included_ltdl])
+
+AC_CONFIG_SUBDIRS([libltdl])
+])# AC_WITH_LTDL
+
+
+# AC_LIB_LTDL
+# -----------
+# Perform all the checks necessary for compilation of the ltdl objects
+#  -- including compiler checks and header checks.
+AC_DEFUN([AC_LIB_LTDL],
+[AC_PREREQ(2.13)
+AC_REQUIRE([AC_PROG_CC])
+AC_REQUIRE([AC_C_CONST])
+AC_REQUIRE([AC_HEADER_STDC])
+AC_REQUIRE([AC_HEADER_DIRENT])
+AC_REQUIRE([AC_LIBTOOL_HEADER_ASSERT])
+AC_REQUIRE([_LT_AC_CHECK_DLFCN])
+AC_REQUIRE([AC_LTDL_ENABLE_INSTALL])
+AC_REQUIRE([AC_LTDL_SHLIBEXT])
+AC_REQUIRE([AC_LTDL_SHLIBPATH])
+AC_REQUIRE([AC_LTDL_SYSSEARCHPATH])
+AC_REQUIRE([AC_LTDL_OBJDIR])
+AC_REQUIRE([AC_LTDL_DLPREOPEN])
+AC_REQUIRE([AC_LTDL_DLLIB])
+AC_REQUIRE([AC_LTDL_SYMBOL_USCORE])
+AC_REQUIRE([AC_LTDL_DLSYM_USCORE])
+AC_REQUIRE([AC_LTDL_SYS_DLOPEN_DEPLIBS])
+AC_REQUIRE([AC_LTDL_FUNC_ARGZ])
+
+AC_CHECK_HEADERS([errno.h malloc.h memory.h stdlib.h stdio.h ctype.h unistd.h])
+AC_CHECK_HEADERS([dl.h sys/dl.h dld.h])
+AC_CHECK_HEADERS([string.h strings.h], break)
+
+AC_CHECK_FUNCS([strchr index], break)
+AC_CHECK_FUNCS([strrchr rindex], break)
+AC_CHECK_FUNCS([memcpy bcopy], break)
+AC_CHECK_FUNCS([memmove strcmp])
+
+])# AC_LIB_LTDL
+
+# AC_LTDL_ENABLE_INSTALL
+# ----------------------
+AC_DEFUN([AC_LTDL_ENABLE_INSTALL],
+[AC_ARG_ENABLE(ltdl-install,
+[  --enable-ltdl-install   install libltdl])
+
+AM_CONDITIONAL(INSTALL_LTDL, test x"${enable_ltdl_install-no}" != xno)
+AM_CONDITIONAL(CONVENIENCE_LTDL, test x"${enable_ltdl_convenience-no}" != xno)
+])])# AC_LTDL_ENABLE_INSTALL
+
+# AC_LTDL_SYS_DLOPEN_DEPLIBS
+# --------------------------
+AC_DEFUN([AC_LTDL_SYS_DLOPEN_DEPLIBS],
+[AC_REQUIRE([AC_CANONICAL_HOST])
+AC_CACHE_CHECK([whether deplibs are loaded by dlopen],
+	libltdl_cv_sys_dlopen_deplibs, [dnl
+	# PORTME does your system automatically load deplibs for dlopen()?
+	libltdl_cv_sys_dlopen_deplibs=unknown
+	case "$host_os" in
+        hpux10*|hpux11*)
+          libltdl_cv_sys_dlopen_deplibs=yes
+          ;;
+	linux*)
+	  libltdl_cv_sys_dlopen_deplibs=yes
+	  ;;
+	netbsd*)
+	  libltdl_cv_sys_dlopen_deplibs=yes
+	  ;;
+	openbsd*)
+	  libltdl_cv_sys_dlopen_deplibs=yes
+	  ;;
+	solaris*)
+	  libltdl_cv_sys_dlopen_deplibs=yes
+	  ;;
+	esac
+])
+if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
+ AC_DEFINE(LTDL_DLOPEN_DEPLIBS, 1,
+    [Define if the OS needs help to load dependent libraries for dlopen(). ])
+fi
+])# AC_LTDL_SYS_DLOPEN_DEPLIBS
+
+# AC_LTDL_SHLIBEXT
+# ----------------
+AC_DEFUN([AC_LTDL_SHLIBEXT],
+[AC_REQUIRE([_LT_AC_LTCONFIG_HACK])
+AC_CACHE_CHECK([which extension is used for shared libraries],
+  libltdl_cv_shlibext,
+[ac_last=
+  for ac_spec in $library_names_spec; do
+    ac_last="$ac_spec"
+  done
+  echo "$ac_last" | [sed 's/\[.*\]//;s/^[^.]*//;s/\$.*$//;s/\.$//'] > conftest
+libltdl_cv_shlibext=`cat conftest`
+rm -f conftest
+])
+if test -n "$libltdl_cv_shlibext"; then
+  AC_DEFINE_UNQUOTED(LTDL_SHLIB_EXT, "$libltdl_cv_shlibext",
+    [Define to the extension used for shared libraries, say, ".so". ])
+fi
+])# AC_LTDL_SHLIBEXT
+
+# AC_LTDL_SHLIBPATH
+# -----------------
+AC_DEFUN([AC_LTDL_SHLIBPATH],
+[AC_REQUIRE([_LT_AC_LTCONFIG_HACK])
+AC_CACHE_CHECK([which variable specifies run-time library path],
+  libltdl_cv_shlibpath_var, [libltdl_cv_shlibpath_var="$shlibpath_var"])
+if test -n "$libltdl_cv_shlibpath_var"; then
+  AC_DEFINE_UNQUOTED(LTDL_SHLIBPATH_VAR, "$libltdl_cv_shlibpath_var",
+    [Define to the name of the environment variable that determines the dynamic library search path. ])
+fi
+])# AC_LTDL_SHLIBPATH
+
+# AC_LTDL_SYSSEARCHPATH
+# ---------------------
+AC_DEFUN([AC_LTDL_SYSSEARCHPATH],
+[AC_REQUIRE([_LT_AC_LTCONFIG_HACK])
+AC_CACHE_CHECK([for the default library search path],
+  libltdl_cv_sys_search_path, [libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"])
+if test -n "$libltdl_cv_sys_search_path"; then
+  case "$host" in
+  *-*-mingw*) pathsep=";" ;;
+  *) pathsep=":" ;;
+  esac
+  sys_search_path=
+  for dir in $libltdl_cv_sys_search_path; do
+    if test -z "$sys_search_path"; then
+      sys_search_path="$dir"
+    else
+      sys_search_path="$sys_search_path$pathsep$dir"
+    fi
+  done
+  AC_DEFINE_UNQUOTED(LTDL_SYSSEARCHPATH, "$sys_search_path",
+    [Define to the system default library search path. ])
+fi
+])# AC_LTDL_SYSSEARCHPATH
+
+# AC_LTDL_OBJDIR
+# --------------
+AC_DEFUN([AC_LTDL_OBJDIR],
+[AC_CACHE_CHECK([for objdir],
+  libltdl_cv_objdir, [libltdl_cv_objdir="$objdir"
+if test -n "$objdir"; then
+  :
+else
+  rm -f .libs 2>/dev/null
+  mkdir .libs 2>/dev/null
+  if test -d .libs; then
+    libltdl_cv_objdir=.libs
+  else
+    # MS-DOS does not allow filenames that begin with a dot.
+    libltdl_cv_objdir=_libs
+  fi
+rmdir .libs 2>/dev/null
+fi])
+AC_DEFINE_UNQUOTED(LTDL_OBJDIR, "$libltdl_cv_objdir/",
+  [Define to the sub-directory in which libtool stores uninstalled libraries. ])
+])# AC_LTDL_OBJDIR
+
+# AC_LTDL_DLPREOPEN
+# -----------------
+AC_DEFUN([AC_LTDL_DLPREOPEN],
+[AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl
+AC_CACHE_CHECK([whether libtool supports -dlopen/-dlpreopen],
+       libltdl_cv_preloaded_symbols, [dnl
+  if test -n "$global_symbol_pipe"; then
+    libltdl_cv_preloaded_symbols=yes
+  else
+    libltdl_cv_preloaded_symbols=no
+  fi
+])
+if test x"$libltdl_cv_preloaded_symbols" = x"yes"; then
+  AC_DEFINE(HAVE_PRELOADED_SYMBOLS, 1,
+    [Define if libtool can extract symbol lists from object files. ])
+fi
+])# AC_LTDL_DLPREOPEN
+
+# AC_LTDL_DLLIB
+# -------------
+AC_DEFUN([AC_LTDL_DLLIB],
+[LIBADD_DL=
+AC_SUBST(LIBADD_DL)
+
+AC_CHECK_FUNC([shl_load],
+      [AC_DEFINE([HAVE_SHL_LOAD], [1],
+		 [Define if you have the shl_load function.])],
+  [AC_CHECK_LIB([dld], [shl_load],
+	[AC_DEFINE([HAVE_SHL_LOAD], [1],
+		   [Define if you have the shl_load function.])
+	LIBADD_DL="$LIBADD_DL -ldld"],
+    [AC_CHECK_LIB([dl], [dlopen],
+	  [AC_DEFINE([HAVE_LIBDL], [1],
+		     [Define if you have the libdl library or equivalent.])
+	  LIBADD_DL="-ldl"],
+      [AC_TRY_LINK([#if HAVE_DLFCN_H
+#  include <dlfcn.h>
+#endif
+      ],
+	[dlopen(0, 0);],
+	    [AC_DEFINE([HAVE_LIBDL], [1],
+		       [Define if you have the libdl library or equivalent.])],
+	[AC_CHECK_LIB([svld], [dlopen],
+	      [AC_DEFINE([HAVE_LIBDL], [1],
+			 [Define if you have the libdl library or equivalent.])
+	      LIBADD_DL="-lsvld"],
+	  [AC_CHECK_LIB([dld], [dld_link],
+	        [AC_DEFINE([HAVE_DLD], [1],
+			   [Define if you have the GNU dld library.])
+	 	LIBADD_DL="$LIBADD_DL -ldld"
+          ])
+        ])
+      ])
+    ])
+  ])
+])
+
+if test "x$ac_cv_func_dlopen" = xyes || test "x$ac_cv_lib_dl_dlopen" = xyes; then
+ LIBS_SAVE="$LIBS"
+ LIBS="$LIBS $LIBADD_DL"
+ AC_CHECK_FUNCS(dlerror)
+ LIBS="$LIBS_SAVE"
+fi
+])# AC_LTDL_DLLIB
+
+# AC_LTDL_SYMBOL_USCORE
+# ---------------------
+AC_DEFUN([AC_LTDL_SYMBOL_USCORE],
+[dnl does the compiler prefix global symbols with an underscore?
+AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl
+AC_MSG_CHECKING([for _ prefix in compiled symbols])
+AC_CACHE_VAL(ac_cv_sys_symbol_underscore,
+[ac_cv_sys_symbol_underscore=no
+cat > conftest.$ac_ext <<EOF
+void nm_test_func(){}
+int main(){nm_test_func;return 0;}
+EOF
+if AC_TRY_EVAL(ac_compile); then
+  # Now try to grab the symbols.
+  ac_nlist=conftest.nm
+  if AC_TRY_EVAL(NM conftest.$ac_objext \| $global_symbol_pipe \> $ac_nlist) && test -s "$ac_nlist"; then
+    # See whether the symbols have a leading underscore.
+    if egrep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
+      ac_cv_sys_symbol_underscore=yes
+    else
+      if egrep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
+	:
+      else
+	echo "configure: cannot find nm_test_func in $ac_nlist" >&AC_FD_CC
+      fi
+    fi
+  else
+    echo "configure: cannot run $global_symbol_pipe" >&AC_FD_CC
+  fi
+else
+  echo "configure: failed program was:" >&AC_FD_CC
+  cat conftest.c >&AC_FD_CC
+fi
+rm -rf conftest*
+])
+AC_MSG_RESULT($ac_cv_sys_symbol_underscore)
+])# AC_LTDL_SYMBOL_USCORE
+
+
+# AC_LTDL_DLSYM_USCORE
+# --------------------
+AC_DEFUN([AC_LTDL_DLSYM_USCORE],
+[AC_REQUIRE([AC_LTDL_SYMBOL_USCORE])dnl
+if test x"$ac_cv_sys_symbol_underscore" = xyes; then
+  if test x"$ac_cv_func_dlopen" = xyes ||
+     test x"$ac_cv_lib_dl_dlopen" = xyes ; then
+	AC_CACHE_CHECK([whether we have to add an underscore for dlsym],
+		libltdl_cv_need_uscore, [dnl
+		libltdl_cv_need_uscore=unknown
+                save_LIBS="$LIBS"
+                LIBS="$LIBS $LIBADD_DL"
+		_LT_AC_TRY_DLOPEN_SELF(
+		  libltdl_cv_need_uscore=no, libltdl_cv_need_uscore=yes,
+		  [],			     libltdl_cv_need_uscore=cross)
+		LIBS="$save_LIBS"
+	])
+  fi
+fi
+
+if test x"$libltdl_cv_need_uscore" = xyes; then
+  AC_DEFINE(NEED_USCORE, 1,
+    [Define if dlsym() requires a leading underscore in symbol names. ])
+fi
+])# AC_LTDL_DLSYM_USCORE
+
+
+# AC_CHECK_TYPES(TYPES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND],
+#                [INCLUDES])
+# ---------------------------------------------------------------
+# This macro did not exist in Autoconf 2.13, which we do still support
+ifdef([AC_CHECK_TYPES], [],
+[define([AC_CHECK_TYPES],
+  [AC_CACHE_CHECK([for $1], ac_Type,
+    [AC_TRY_LINK([$4],
+	[if (($1 *) 0)
+	  return 0;
+	if (sizeof ($1))
+	  return 0;],
+	[ac_Type=yes],
+	[ac_Type=no])])
+  if test "x$ac_Type" = xyes; then
+    ifelse([$2], [], [:], [$2])
+  else
+    ifelse([$3], [], [:], [$3])
+  fi])
+])# AC_CHECK_TYPES
+
+
+# AC_LTDL_FUNC_ARGZ
+# -----------------
+AC_DEFUN([AC_LTDL_FUNC_ARGZ],
+[AC_CHECK_HEADERS([argz.h])
+
+AC_CHECK_TYPES([error_t],
+  [],
+  [AC_DEFINE([error_t], [int],
+    [Define to a type to use for \`error_t' if it is not otherwise available.])],
+  [#if HAVE_ARGZ_H
+#  include <argz.h>
+#endif])
+
+AC_CHECK_FUNCS([argz_append argz_create_sep argz_insert argz_next argz_stringify])
+])# AC_LTDL_FUNC_ARGZ
+
+# Copyright (C) 1995-2002 Free Software Foundation, Inc.
+# Copyright (C) 2001-2003 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 <drepper at cygnus.com>, 1995, 1996
+#
+# Modified to never use included libintl. 
+# Owen Taylor <otaylor at redhat.com>, 12/15/1998
+#
+# Major rework to remove unused code
+# Owen Taylor <otaylor at redhat.com>, 12/11/2002
+#
+# Added better handling of ALL_LINGUAS from GNU gettext version 
+# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
+
+#
+# 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 <locale.h>], [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 <locale.h> 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 dgettext in libc], gt_cv_func_dgettext_libc,
+        [AC_TRY_LINK([
+#include <libintl.h>
+],
+          [return (int) dgettext ("","")],
+	  gt_cv_func_dgettext_libc=yes,
+          gt_cv_func_dgettext_libc=no)
+        ])
+  
+      if test "$gt_cv_func_dgettext_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 "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
+        
+        AC_CHECK_LIB(intl, bindtextdomain,
+	    [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, dcgettext,
+		       [gt_cv_func_dgettext_libintl=yes
+			libintl_extra_libs=-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
+        #
+        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"; 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
+

Added: packages/gpsdrive/branches/etch/config.guess
===================================================================
--- packages/gpsdrive/branches/etch/config.guess	                        (rev 0)
+++ packages/gpsdrive/branches/etch/config.guess	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,1417 @@
+#! /bin/sh
+# Attempt to guess a canonical system name.
+#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
+#   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+
+timestamp='2003-07-02'
+
+# 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., 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 Per Bothner <per at bothner.com>.
+# Please send patches to <config-patches at gnu.org>.  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 <config-patches at gnu.org>."
+
+version="\
+GNU config.guess ($timestamp)
+
+Originally written by Per Bothner.
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
+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 0 ;;
+    --version | -v )
+       echo "$version" ; exit 0 ;;
+    --help | --h* | -h )
+       echo "$usage"; exit 0 ;;
+    -- )     # 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 -q "$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 ;'
+
+# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
+# (ghazi at 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
+
+case "${UNAME_MACHINE}" in
+    i?86)
+	test -z "$VENDOR" && VENDOR=pc
+	;;
+    *)
+	test -z "$VENDOR" && VENDOR=unknown
+	;;
+esac
+test -f /etc/SuSE-release -o -f /.buildenv && VENDOR=suse
+
+# 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 ;;
+	    *) 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 0 ;;
+    amiga:OpenBSD:*:*)
+	echo m68k-unknown-openbsd${UNAME_RELEASE}
+	exit 0 ;;
+    arc:OpenBSD:*:*)
+	echo mipsel-unknown-openbsd${UNAME_RELEASE}
+	exit 0 ;;
+    hp300:OpenBSD:*:*)
+	echo m68k-unknown-openbsd${UNAME_RELEASE}
+	exit 0 ;;
+    mac68k:OpenBSD:*:*)
+	echo m68k-unknown-openbsd${UNAME_RELEASE}
+	exit 0 ;;
+    macppc:OpenBSD:*:*)
+	echo powerpc-unknown-openbsd${UNAME_RELEASE}
+	exit 0 ;;
+    mvme68k:OpenBSD:*:*)
+	echo m68k-unknown-openbsd${UNAME_RELEASE}
+	exit 0 ;;
+    mvme88k:OpenBSD:*:*)
+	echo m88k-unknown-openbsd${UNAME_RELEASE}
+	exit 0 ;;
+    mvmeppc:OpenBSD:*:*)
+	echo powerpc-unknown-openbsd${UNAME_RELEASE}
+	exit 0 ;;
+    pmax:OpenBSD:*:*)
+	echo mipsel-unknown-openbsd${UNAME_RELEASE}
+	exit 0 ;;
+    sgi:OpenBSD:*:*)
+	echo mipseb-unknown-openbsd${UNAME_RELEASE}
+	exit 0 ;;
+    sun3:OpenBSD:*:*)
+	echo m68k-unknown-openbsd${UNAME_RELEASE}
+	exit 0 ;;
+    wgrisc:OpenBSD:*:*)
+	echo mipsel-unknown-openbsd${UNAME_RELEASE}
+	exit 0 ;;
+    *:OpenBSD:*:*)
+	echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
+	exit 0 ;;
+    alpha:OSF1:*:*)
+	if test $UNAME_RELEASE = "V4.0"; then
+		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
+	fi
+	# 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 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/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
+	exit 0 ;;
+    Alpha*:OpenVMS:*:*)
+	echo alpha-hp-vms
+	exit 0 ;;
+    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 0 ;;
+    21064:Windows_NT:50:3)
+	echo alpha-dec-winnt3.5
+	exit 0 ;;
+    Amiga*:UNIX_System_V:4.0:*)
+	echo m68k-unknown-sysv4
+	exit 0;;
+    *:[Aa]miga[Oo][Ss]:*:*)
+	echo ${UNAME_MACHINE}-unknown-amigaos
+	exit 0 ;;
+    *:[Mm]orph[Oo][Ss]:*:*)
+	echo ${UNAME_MACHINE}-unknown-morphos
+	exit 0 ;;
+    *:OS/390:*:*)
+	echo i370-ibm-openedition
+	exit 0 ;;
+    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
+	echo arm-acorn-riscix${UNAME_RELEASE}
+	exit 0;;
+    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
+	echo hppa1.1-hitachi-hiuxmpp
+	exit 0;;
+    Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
+	# akee at 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 0 ;;
+    NILE*:*:*:dcosx)
+	echo pyramid-pyramid-svr4
+	exit 0 ;;
+    DRS?6000:unix:4.0:6*)
+	echo sparc-icl-nx6
+	exit 0 ;;
+    DRS?6000:UNIX_SV:4.2*:7*)
+	case `/usr/bin/uname -p` in
+	    sparc) echo sparc-icl-nx7 && exit 0 ;;
+	esac ;;
+    sun4H:SunOS:5.*:*)
+	echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+	exit 0 ;;
+    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
+	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+	exit 0 ;;
+    i86pc:SunOS:5.*:*)
+	echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+	exit 0 ;;
+    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 0 ;;
+    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 0 ;;
+    sun3*:SunOS:*:*)
+	echo m68k-sun-sunos${UNAME_RELEASE}
+	exit 0 ;;
+    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 0 ;;
+    aushp:SunOS:*:*)
+	echo sparc-auspex-sunos${UNAME_RELEASE}
+	exit 0 ;;
+    # 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 0 ;;
+    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
+	echo m68k-atari-mint${UNAME_RELEASE}
+        exit 0 ;;
+    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
+        echo m68k-atari-mint${UNAME_RELEASE}
+	exit 0 ;;
+    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
+        echo m68k-milan-mint${UNAME_RELEASE}
+        exit 0 ;;
+    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
+        echo m68k-hades-mint${UNAME_RELEASE}
+        exit 0 ;;
+    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
+        echo m68k-unknown-mint${UNAME_RELEASE}
+        exit 0 ;;
+    powerpc:machten:*:*)
+	echo powerpc-apple-machten${UNAME_RELEASE}
+	exit 0 ;;
+    RISC*:Mach:*:*)
+	echo mips-dec-mach_bsd4.3
+	exit 0 ;;
+    RISC*:ULTRIX:*:*)
+	echo mips-dec-ultrix${UNAME_RELEASE}
+	exit 0 ;;
+    VAX*:ULTRIX*:*:*)
+	echo vax-dec-ultrix${UNAME_RELEASE}
+	exit 0 ;;
+    2020:CLIX:*:* | 2430:CLIX:*:*)
+	echo clipper-intergraph-clix${UNAME_RELEASE}
+	exit 0 ;;
+    mips:*:*:UMIPS | mips:*:*:RISCos)
+	eval $set_cc_for_build
+	sed 's/^	//' << EOF >$dummy.c
+#ifdef __cplusplus
+#include <stdio.h>  /* 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 \
+	  && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
+	  && exit 0
+	echo mips-mips-riscos${UNAME_RELEASE}
+	exit 0 ;;
+    Motorola:PowerMAX_OS:*:*)
+	echo powerpc-motorola-powermax
+	exit 0 ;;
+    Motorola:*:4.3:PL8-*)
+	echo powerpc-harris-powermax
+	exit 0 ;;
+    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
+	echo powerpc-harris-powermax
+	exit 0 ;;
+    Night_Hawk:Power_UNIX:*:*)
+	echo powerpc-harris-powerunix
+	exit 0 ;;
+    m88k:CX/UX:7*:*)
+	echo m88k-harris-cxux7
+	exit 0 ;;
+    m88k:*:4*:R4*)
+	echo m88k-motorola-sysv4
+	exit 0 ;;
+    m88k:*:3*:R3*)
+	echo m88k-motorola-sysv3
+	exit 0 ;;
+    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 0 ;;
+    M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
+	echo m88k-dolphin-sysv3
+	exit 0 ;;
+    M88*:*:R3*:*)
+	# Delta 88k system running SVR3
+	echo m88k-motorola-sysv3
+	exit 0 ;;
+    XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
+	echo m88k-tektronix-sysv3
+	exit 0 ;;
+    Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
+	echo m68k-tektronix-bsd
+	exit 0 ;;
+    *:IRIX*:*:*)
+	echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
+	exit 0 ;;
+    ????????: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 0 ;;              # Note that: echo "'`uname -s`'" gives 'AIX '
+    i*86:AIX:*:*)
+	echo i386-ibm-aix
+	exit 0 ;;
+    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 0 ;;
+    *: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 <sys/systemcfg.h>
+
+		main()
+			{
+			if (!__power_pc())
+				exit(1);
+			puts("powerpc-ibm-aix3.2.5");
+			exit(0);
+			}
+EOF
+		$CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
+		echo rs6000-ibm-aix3.2.5
+	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 0 ;;
+    *: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 0 ;;
+    *:AIX:*:*)
+	echo rs6000-ibm-aix
+	exit 0 ;;
+    ibmrt:4.4BSD:*|romp-ibm:BSD:*)
+	echo romp-ibm-bsd4.4
+	exit 0 ;;
+    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
+	echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
+	exit 0 ;;                           # report: romp-ibm BSD 4.3
+    *:BOSX:*:*)
+	echo rs6000-bull-bosx
+	exit 0 ;;
+    DPX/2?00:B.O.S.:*:*)
+	echo m68k-bull-sysv3
+	exit 0 ;;
+    9000/[34]??:4.3bsd:1.*:*)
+	echo m68k-hp-bsd
+	exit 0 ;;
+    hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
+	echo m68k-hp-bsd4.4
+	exit 0 ;;
+    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 <stdlib.h>
+              #include <unistd.h>
+
+              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
+	    # avoid double evaluation of $set_cc_for_build
+	    test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
+	    if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
+	    then
+		HP_ARCH="hppa2.0w"
+	    else
+		HP_ARCH="hppa64"
+	    fi
+	fi
+	echo ${HP_ARCH}-hp-hpux${HPUX_REV}
+	exit 0 ;;
+    ia64:HP-UX:*:*)
+	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
+	echo ia64-hp-hpux${HPUX_REV}
+	exit 0 ;;
+    3050*:HI-UX:*:*)
+	eval $set_cc_for_build
+	sed 's/^	//' << EOF >$dummy.c
+	#include <unistd.h>
+	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 && $dummy && exit 0
+	echo unknown-hitachi-hiuxwe2
+	exit 0 ;;
+    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
+	echo hppa1.1-hp-bsd
+	exit 0 ;;
+    9000/8??:4.3bsd:*:*)
+	echo hppa1.0-hp-bsd
+	exit 0 ;;
+    *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
+	echo hppa1.0-hp-mpeix
+	exit 0 ;;
+    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
+	echo hppa1.1-hp-osf
+	exit 0 ;;
+    hp8??:OSF1:*:*)
+	echo hppa1.0-hp-osf
+	exit 0 ;;
+    i*86:OSF1:*:*)
+	if [ -x /usr/sbin/sysversion ] ; then
+	    echo ${UNAME_MACHINE}-unknown-osf1mk
+	else
+	    echo ${UNAME_MACHINE}-unknown-osf1
+	fi
+	exit 0 ;;
+    parisc*:Lites*:*:*)
+	echo hppa1.1-hp-lites
+	exit 0 ;;
+    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
+	echo c1-convex-bsd
+        exit 0 ;;
+    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
+	if getsysinfo -f scalar_acc
+	then echo c32-convex-bsd
+	else echo c2-convex-bsd
+	fi
+        exit 0 ;;
+    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
+	echo c34-convex-bsd
+        exit 0 ;;
+    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
+	echo c38-convex-bsd
+        exit 0 ;;
+    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
+	echo c4-convex-bsd
+        exit 0 ;;
+    CRAY*Y-MP:*:*:*)
+	echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+	exit 0 ;;
+    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 0 ;;
+    CRAY*TS:*:*:*)
+	echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+	exit 0 ;;
+    CRAY*T3E:*:*:*)
+	echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+	exit 0 ;;
+    CRAY*SV1:*:*:*)
+	echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+	exit 0 ;;
+    *:UNICOS/mp:*:*)
+	echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 
+	exit 0 ;;
+    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 0 ;;
+    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
+	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
+	exit 0 ;;
+    sparc*:BSD/OS:*:*)
+	echo sparc-unknown-bsdi${UNAME_RELEASE}
+	exit 0 ;;
+    *:BSD/OS:*:*)
+	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
+	exit 0 ;;
+    *:FreeBSD:*:*|*:GNU/FreeBSD:*:*)
+	# Determine whether the default compiler uses glibc.
+	eval $set_cc_for_build
+	sed 's/^	//' << EOF >$dummy.c
+	#include <features.h>
+	#if __GLIBC__ >= 2
+	LIBC=gnu
+	#else
+	LIBC=
+	#endif
+EOF
+	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
+	# GNU/FreeBSD systems have a "k" prefix to indicate we are using
+	# FreeBSD's kernel, but not the complete OS.
+	case ${LIBC} in gnu) kernel_only='k' ;; esac
+	echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
+	exit 0 ;;
+    i*:CYGWIN*:*)
+	echo ${UNAME_MACHINE}-pc-cygwin
+	exit 0 ;;
+    i*:MINGW*:*)
+	echo ${UNAME_MACHINE}-pc-mingw32
+	exit 0 ;;
+    i*:PW*:*)
+	echo ${UNAME_MACHINE}-pc-pw32
+	exit 0 ;;
+    x86:Interix*:[34]*)
+	echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
+	exit 0 ;;
+    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
+	echo i${UNAME_MACHINE}-pc-mks
+	exit 0 ;;
+    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 0 ;;
+    i*:UWIN*:*)
+	echo ${UNAME_MACHINE}-pc-uwin
+	exit 0 ;;
+    p*:CYGWIN*:*)
+	echo powerpcle-unknown-cygwin
+	exit 0 ;;
+    prep*:SunOS:5.*:*)
+	echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+	exit 0 ;;
+    *:GNU:*:*)
+	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
+	exit 0 ;;
+    i*86:Minix:*:*)
+	echo ${UNAME_MACHINE}-pc-minix
+	exit 0 ;;
+    arm*:Linux:*:*)
+	echo ${UNAME_MACHINE}-${VENDOR}-linux
+	exit 0 ;;
+    cris:Linux:*:*)
+	echo cris-axis-linux
+	exit 0 ;;
+    ia64:Linux:*:*)
+	echo ${UNAME_MACHINE}-${VENDOR}-linux
+	exit 0 ;;
+    m68*:Linux:*:*)
+	echo ${UNAME_MACHINE}-${VENDOR}-linux
+	exit 0 ;;
+    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 | grep ^CPU=`
+	test x"${CPU}" != x && echo "${CPU}-${VENDOR}-linux" && exit 0
+	;;
+    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 | grep ^CPU=`
+	test x"${CPU}" != x && echo "${CPU}-${VENDOR}-linux" && exit 0
+	;;
+    ppc:Linux:*:*)
+	echo powerpc-${VENDOR}-linux
+	exit 0 ;;
+    ppc64:Linux:*:*)
+	echo powerpc64-${VENDOR}-linux
+	exit 0 ;;
+    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}-${VENDOR}-linux${LIBC}
+	exit 0 ;;
+    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-${VENDOR}-linux ;;
+	  PA8*) echo hppa2.0-${VENDOR}-linux ;;
+	  *)    echo hppa-${VENDOR}-linux ;;
+	esac
+	exit 0 ;;
+    parisc64:Linux:*:* | hppa64:Linux:*:*)
+	echo hppa64-${VENDOR}-linux
+	exit 0 ;;
+    s390:Linux:*:* | s390x:Linux:*:*)
+	echo ${UNAME_MACHINE}-ibm-linux
+	exit 0 ;;
+    sh64*:Linux:*:*)
+    	echo ${UNAME_MACHINE}-${VENDOR}-linux
+	exit 0 ;;
+    sh*:Linux:*:*)
+	echo ${UNAME_MACHINE}-${VENDOR}-linux
+	exit 0 ;;
+    sparc:Linux:*:* | sparc64:Linux:*:*)
+	echo ${UNAME_MACHINE}-${VENDOR}-linux
+	exit 0 ;;
+    x86_64:Linux:*:*)
+	echo x86_64-${VENDOR}-linux
+	exit 0 ;;
+    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}-${VENDOR}-linux"
+		;;
+	  a.out-i386-linux)
+		echo "${UNAME_MACHINE}-${VENDOR}-linuxaout"
+		exit 0 ;;
+	  coff-i386)
+		echo "${UNAME_MACHINE}-${VENDOR}-linuxcoff"
+		exit 0 ;;
+	  "")
+		# Either a pre-BFD a.out linker (linuxoldld) or
+		# one that does not give us useful --help.
+		echo "${UNAME_MACHINE}-${VENDOR}-linuxoldld"
+		exit 0 ;;
+	esac
+	# Determine whether the default compiler is a.out or elf
+	eval $set_cc_for_build
+	sed 's/^	//' << EOF >$dummy.c
+	#include <features.h>
+	#ifdef __ELF__
+	# ifdef __GLIBC__
+	#  if __GLIBC__ >= 2
+	LIBC=gnu
+	#  else
+	LIBC=gnulibc1
+	#  endif
+	# else
+	LIBC=gnulibc1
+	# endif
+	#else
+	#ifdef __INTEL_COMPILER
+	LIBC=gnu
+	#else
+	LIBC=gnuaout
+	#endif
+	#endif
+EOF
+	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
+	test x"${LIBC}" != x && echo "${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}" | sed 's/linux-gnu/linux/' && exit 0
+	test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
+	;;
+    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 0 ;;
+    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 0 ;;
+    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 0 ;;
+    i*86:XTS-300:*:STOP)
+	echo ${UNAME_MACHINE}-unknown-stop
+	exit 0 ;;
+    i*86:atheos:*:*)
+	echo ${UNAME_MACHINE}-unknown-atheos
+	exit 0 ;;
+    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
+	echo i386-unknown-lynxos${UNAME_RELEASE}
+	exit 0 ;;
+    i*86:*DOS:*:*)
+	echo ${UNAME_MACHINE}-pc-msdosdjgpp
+	exit 0 ;;
+    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 0 ;;
+    i*86:*:5:[78]*)
+	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 0 ;;
+    i*86:*:3.2:*)
+	if test -f /usr/options/cb.name; then
+		UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
+		echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
+	elif /bin/uname -X 2>/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 0 ;;
+    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 0 ;;
+    Intel:Mach:3*:*)
+	echo i386-pc-mach3
+	exit 0 ;;
+    paragon:*:*:*)
+	echo i860-intel-osf1
+	exit 0 ;;
+    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 0 ;;
+    mini*:CTIX:SYS*5:*)
+	# "miniframe"
+	echo m68010-convergent-sysv
+	exit 0 ;;
+    mc68k:UNIX:SYSTEM5:3.51m)
+	echo m68k-convergent-sysv
+	exit 0 ;;
+    M680?0:D-NIX:5.3:*)
+	echo m68k-diab-dnix
+	exit 0 ;;
+    M68*:*:R3V[567]*:*)
+	test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
+    3[34]??:*: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)
+	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 0
+	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
+	  && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
+    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
+        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
+          && echo i486-ncr-sysv4 && exit 0 ;;
+    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
+	echo m68k-unknown-lynxos${UNAME_RELEASE}
+	exit 0 ;;
+    mc68030:UNIX_System_V:4.*:*)
+	echo m68k-atari-sysv4
+	exit 0 ;;
+    TSUNAMI:LynxOS:2.*:*)
+	echo sparc-unknown-lynxos${UNAME_RELEASE}
+	exit 0 ;;
+    rs6000:LynxOS:2.*:*)
+	echo rs6000-unknown-lynxos${UNAME_RELEASE}
+	exit 0 ;;
+    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
+	echo powerpc-unknown-lynxos${UNAME_RELEASE}
+	exit 0 ;;
+    SM[BE]S:UNIX_SV:*:*)
+	echo mips-dde-sysv${UNAME_RELEASE}
+	exit 0 ;;
+    RM*:ReliantUNIX-*:*:*)
+	echo mips-sni-sysv4
+	exit 0 ;;
+    RM*:SINIX-*:*:*)
+	echo mips-sni-sysv4
+	exit 0 ;;
+    *: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 0 ;;
+    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
+                      # says <Richard.M.Bartel at ccMail.Census.GOV>
+        echo i586-unisys-sysv4
+        exit 0 ;;
+    *:UNIX_System_V:4*:FTX*)
+	# From Gerald Hewes <hewes at openmarket.com>.
+	# How about differentiating between stratus architectures? -djm
+	echo hppa1.1-stratus-sysv4
+	exit 0 ;;
+    *:*:*:FTX*)
+	# From seanf at swdc.stratus.com.
+	echo i860-stratus-sysv4
+	exit 0 ;;
+    *:VOS:*:*)
+	# From Paul.Green at stratus.com.
+	echo hppa1.1-stratus-vos
+	exit 0 ;;
+    mc68*:A/UX:*:*)
+	echo m68k-apple-aux${UNAME_RELEASE}
+	exit 0 ;;
+    news*:NEWS-OS:6*:*)
+	echo mips-sony-newsos6
+	exit 0 ;;
+    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 0 ;;
+    BeBox:BeOS:*:*)	# BeOS running on hardware made by Be, PPC only.
+	echo powerpc-be-beos
+	exit 0 ;;
+    BeMac:BeOS:*:*)	# BeOS running on Mac or Mac clone, PPC only.
+	echo powerpc-apple-beos
+	exit 0 ;;
+    BePC:BeOS:*:*)	# BeOS running on Intel PC compatible.
+	echo i586-pc-beos
+	exit 0 ;;
+    SX-4:SUPER-UX:*:*)
+	echo sx4-nec-superux${UNAME_RELEASE}
+	exit 0 ;;
+    SX-5:SUPER-UX:*:*)
+	echo sx5-nec-superux${UNAME_RELEASE}
+	exit 0 ;;
+    SX-6:SUPER-UX:*:*)
+	echo sx6-nec-superux${UNAME_RELEASE}
+	exit 0 ;;
+    Power*:Rhapsody:*:*)
+	echo powerpc-apple-rhapsody${UNAME_RELEASE}
+	exit 0 ;;
+    *:Rhapsody:*:*)
+	echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
+	exit 0 ;;
+    *:Darwin:*:*)
+	case `uname -p` in
+	    *86) UNAME_PROCESSOR=i686 ;;
+	    powerpc) UNAME_PROCESSOR=powerpc ;;
+	esac
+	echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
+	exit 0 ;;
+    *: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 0 ;;
+    *:QNX:*:4*)
+	echo i386-pc-qnx
+	exit 0 ;;
+    NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*)
+	echo nsr-tandem-nsk${UNAME_RELEASE}
+	exit 0 ;;
+    *:NonStop-UX:*:*)
+	echo mips-compaq-nonstopux
+	exit 0 ;;
+    BS2000:POSIX*:*:*)
+	echo bs2000-siemens-sysv
+	exit 0 ;;
+    DS/*:UNIX_System_V:*:*)
+	echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
+	exit 0 ;;
+    *: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 0 ;;
+    *:TOPS-10:*:*)
+	echo pdp10-unknown-tops10
+	exit 0 ;;
+    *:TENEX:*:*)
+	echo pdp10-unknown-tenex
+	exit 0 ;;
+    KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
+	echo pdp10-dec-tops20
+	exit 0 ;;
+    XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
+	echo pdp10-xkl-tops20
+	exit 0 ;;
+    *:TOPS-20:*:*)
+	echo pdp10-unknown-tops20
+	exit 0 ;;
+    *:ITS:*:*)
+	echo pdp10-unknown-its
+	exit 0 ;;
+    SEI:*:*:SEIUX)
+        echo mips-sei-seiux${UNAME_RELEASE}
+	exit 0 ;;
+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 <<EOF
+#ifdef _SEQUENT_
+# include <sys/types.h>
+# include <sys/utsname.h>
+#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 <sys/param.h>
+  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"); 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 <sys/param.h>
+#  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 && $dummy && exit 0
+
+# Apollos put the system type in the environment.
+
+test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
+
+# 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 0 ;;
+    c2*)
+	if getsysinfo -f scalar_acc
+	then echo c32-convex-bsd
+	else echo c2-convex-bsd
+	fi
+	exit 0 ;;
+    c34*)
+	echo c34-convex-bsd
+	exit 0 ;;
+    c38*)
+	echo c38-convex-bsd
+	exit 0 ;;
+    c4*)
+	echo c4-convex-bsd
+	exit 0 ;;
+    esac
+fi
+
+cat >&2 <<EOF
+$0: unable to guess system type
+
+This script, last modified $timestamp, has failed to recognize
+the operating system you are using. It is advised that you
+download the most up to date version of the config scripts from
+
+    ftp://ftp.gnu.org/pub/gnu/config/
+
+If the version you run ($0) is already up to date, please
+send the following data and any information you think might be
+pertinent to <config-patches at gnu.org> 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:


Property changes on: packages/gpsdrive/branches/etch/config.guess
___________________________________________________________________
Name: svn:executable
   + *

Added: packages/gpsdrive/branches/etch/config.h
===================================================================
--- packages/gpsdrive/branches/etch/config.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/config.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,154 @@
+/* config.h.  Generated by configure.  */
+/* config.h.in.  Generated from configure.ac by autoheader.  */
+
+/* always defined to indicate that i18n is enabled */
+#define ENABLE_NLS 1
+
+/* this is the gettext domain name */
+#define GETTEXT_PACKAGE "gpsdrive"
+
+/* Define to 1 if you have the `bind_textdomain_codeset' function. */
+#define HAVE_BIND_TEXTDOMAIN_CODESET 1
+
+/* Define to 1 if you have the <crypt.h> header file. */
+#define HAVE_CRYPT_H 1
+
+/* Define to 1 if you have the `dcgettext' function. */
+#define HAVE_DCGETTEXT 1
+
+/* Define to 1 if you have the declaration of `getopt', and to 0 if you don't.
+   */
+#define HAVE_DECL_GETOPT 1
+
+/* Define if you have the GNU dld library. */
+/* #undef HAVE_DLD */
+
+/* Define to 1 if you have the `dlerror' function. */
+#define HAVE_DLERROR 1
+
+/* Define to 1 if you have the <dlfcn.h> header file. */
+#define HAVE_DLFCN_H 1
+
+/* Define to 1 if you have the <fcntl.h> header file. */
+#define HAVE_FCNTL_H 1
+
+/* Define if the GNU gettext() function is already present or preinstalled. */
+#define HAVE_GETTEXT 1
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#define HAVE_INTTYPES_H 1
+
+/* Define if your <locale.h> file defines LC_MESSAGES. */
+#define HAVE_LC_MESSAGES 1
+
+/* Define to 1 if you have the `crypt' library (-lcrypt). */
+#define HAVE_LIBCRYPT 1
+
+/* Define if you have the libdl library or equivalent. */
+#define HAVE_LIBDL 1
+
+/* Define to 1 if you have the <linux/inet.h> header file. */
+#define HAVE_LINUX_INET_H 1
+
+/* Define to 1 if you have the <locale.h> header file. */
+#define HAVE_LOCALE_H 1
+
+/* Define to 1 if you have the <memory.h> header file. */
+#define HAVE_MEMORY_H 1
+
+/* Define to 1 if you have the <netdb.h> header file. */
+#define HAVE_NETDB_H 1
+
+/* Define if you have the shl_load function. */
+/* #undef HAVE_SHL_LOAD */
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#define HAVE_STDINT_H 1
+
+/* Define to 1 if you have the <stdio.h> header file. */
+#define HAVE_STDIO_H 1
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#define HAVE_STDLIB_H 1
+
+/* Define to 1 if you have the <strings.h> header file. */
+#define HAVE_STRINGS_H 1
+
+/* Define to 1 if you have the <string.h> header file. */
+#define HAVE_STRING_H 1
+
+/* Define to 1 if you have the <sys/ioctl.h> header file. */
+#define HAVE_SYS_IOCTL_H 1
+
+/* Define to 1 if you have the <sys/select.h> header file. */
+#define HAVE_SYS_SELECT_H 1
+
+/* Define to 1 if you have the <sys/socket.h> header file. */
+#define HAVE_SYS_SOCKET_H 1
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#define HAVE_SYS_STAT_H 1
+
+/* Define to 1 if you have the <sys/termios.h> header file. */
+#define HAVE_SYS_TERMIOS_H 1
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#define HAVE_SYS_TYPES_H 1
+
+/* Define to 1 if you have the <termios.h> header file. */
+#define HAVE_TERMIOS_H 1
+
+/* Define to 1 if you have the <termio.h> header file. */
+#define HAVE_TERMIO_H 1
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#define HAVE_UNISTD_H 1
+
+/* Define to 1 if you have the <X11/X.h> header file. */
+#define HAVE_X11_X_H 1
+
+/* Define if dlsym() requires a leading underscore in symbol names. */
+/* #undef NEED_USCORE */
+
+/* Name of package */
+#define PACKAGE "gpsdrive"
+
+/* Define to the address where bug reports for this package should be sent. */
+#define PACKAGE_BUGREPORT "ganter at ganter.at"
+
+/* Define to the full name of this package. */
+#define PACKAGE_NAME "gpsdrive"
+
+/* Define to the full name and version of this package. */
+#define PACKAGE_STRING "gpsdrive 2.09pre1"
+
+/* Define to the one symbol short name of this package. */
+#define PACKAGE_TARNAME "gpsdrive"
+
+/* Define to the version of this package. */
+#define PACKAGE_VERSION "2.09pre1"
+
+/* Define to the type of arg 1 for `select'. */
+#define SELECT_TYPE_ARG1 int
+
+/* Define to the type of args 2, 3 and 4 for `select'. */
+#define SELECT_TYPE_ARG234 (fd_set *)
+
+/* Define to the type of arg 5 for `select'. */
+#define SELECT_TYPE_ARG5 (struct timeval *)
+
+/* Define to 1 if you have the ANSI C header files. */
+#define STDC_HEADERS 1
+
+/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
+#define TIME_WITH_SYS_TIME 1
+
+/* Version number of package */
+#define VERSION "2.09pre1"
+
+/* Define as `__inline' if that's what the C compiler calls it, or to nothing
+   if it is not supported. */
+/* #undef inline */
+
+/* Define the real type of socklen_t */
+/* #undef socklen_t */

Added: packages/gpsdrive/branches/etch/config.h.in
===================================================================
--- packages/gpsdrive/branches/etch/config.h.in	                        (rev 0)
+++ packages/gpsdrive/branches/etch/config.h.in	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,153 @@
+/* config.h.in.  Generated from configure.ac by autoheader.  */
+
+/* always defined to indicate that i18n is enabled */
+#undef ENABLE_NLS
+
+/* this is the gettext domain name */
+#undef GETTEXT_PACKAGE
+
+/* Define to 1 if you have the `bind_textdomain_codeset' function. */
+#undef HAVE_BIND_TEXTDOMAIN_CODESET
+
+/* Define to 1 if you have the <crypt.h> header file. */
+#undef HAVE_CRYPT_H
+
+/* Define to 1 if you have the `dcgettext' function. */
+#undef HAVE_DCGETTEXT
+
+/* Define to 1 if you have the declaration of `getopt', and to 0 if you don't.
+   */
+#undef HAVE_DECL_GETOPT
+
+/* Define if you have the GNU dld library. */
+#undef HAVE_DLD
+
+/* Define to 1 if you have the `dlerror' function. */
+#undef HAVE_DLERROR
+
+/* Define to 1 if you have the <dlfcn.h> header file. */
+#undef HAVE_DLFCN_H
+
+/* Define to 1 if you have the <fcntl.h> header file. */
+#undef HAVE_FCNTL_H
+
+/* Define if the GNU gettext() function is already present or preinstalled. */
+#undef HAVE_GETTEXT
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#undef HAVE_INTTYPES_H
+
+/* Define if your <locale.h> file defines LC_MESSAGES. */
+#undef HAVE_LC_MESSAGES
+
+/* Define to 1 if you have the `crypt' library (-lcrypt). */
+#undef HAVE_LIBCRYPT
+
+/* Define if you have the libdl library or equivalent. */
+#undef HAVE_LIBDL
+
+/* Define to 1 if you have the <linux/inet.h> header file. */
+#undef HAVE_LINUX_INET_H
+
+/* Define to 1 if you have the <locale.h> header file. */
+#undef HAVE_LOCALE_H
+
+/* Define to 1 if you have the <memory.h> header file. */
+#undef HAVE_MEMORY_H
+
+/* Define to 1 if you have the <netdb.h> header file. */
+#undef HAVE_NETDB_H
+
+/* Define if you have the shl_load function. */
+#undef HAVE_SHL_LOAD
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#undef HAVE_STDINT_H
+
+/* Define to 1 if you have the <stdio.h> header file. */
+#undef HAVE_STDIO_H
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#undef HAVE_STDLIB_H
+
+/* Define to 1 if you have the <strings.h> header file. */
+#undef HAVE_STRINGS_H
+
+/* Define to 1 if you have the <string.h> header file. */
+#undef HAVE_STRING_H
+
+/* Define to 1 if you have the <sys/ioctl.h> header file. */
+#undef HAVE_SYS_IOCTL_H
+
+/* Define to 1 if you have the <sys/select.h> header file. */
+#undef HAVE_SYS_SELECT_H
+
+/* Define to 1 if you have the <sys/socket.h> header file. */
+#undef HAVE_SYS_SOCKET_H
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#undef HAVE_SYS_STAT_H
+
+/* Define to 1 if you have the <sys/termios.h> header file. */
+#undef HAVE_SYS_TERMIOS_H
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#undef HAVE_SYS_TYPES_H
+
+/* Define to 1 if you have the <termios.h> header file. */
+#undef HAVE_TERMIOS_H
+
+/* Define to 1 if you have the <termio.h> header file. */
+#undef HAVE_TERMIO_H
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#undef HAVE_UNISTD_H
+
+/* Define to 1 if you have the <X11/X.h> header file. */
+#undef HAVE_X11_X_H
+
+/* Define if dlsym() requires a leading underscore in symbol names. */
+#undef NEED_USCORE
+
+/* Name of package */
+#undef PACKAGE
+
+/* Define to the address where bug reports for this package should be sent. */
+#undef PACKAGE_BUGREPORT
+
+/* Define to the full name of this package. */
+#undef PACKAGE_NAME
+
+/* Define to the full name and version of this package. */
+#undef PACKAGE_STRING
+
+/* Define to the one symbol short name of this package. */
+#undef PACKAGE_TARNAME
+
+/* Define to the version of this package. */
+#undef PACKAGE_VERSION
+
+/* Define to the type of arg 1 for `select'. */
+#undef SELECT_TYPE_ARG1
+
+/* Define to the type of args 2, 3 and 4 for `select'. */
+#undef SELECT_TYPE_ARG234
+
+/* Define to the type of arg 5 for `select'. */
+#undef SELECT_TYPE_ARG5
+
+/* Define to 1 if you have the ANSI C header files. */
+#undef STDC_HEADERS
+
+/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
+#undef TIME_WITH_SYS_TIME
+
+/* Version number of package */
+#undef VERSION
+
+/* Define as `__inline' if that's what the C compiler calls it, or to nothing
+   if it is not supported. */
+#undef inline
+
+/* Define the real type of socklen_t */
+#undef socklen_t

Added: packages/gpsdrive/branches/etch/config.log
===================================================================
--- packages/gpsdrive/branches/etch/config.log	                        (rev 0)
+++ packages/gpsdrive/branches/etch/config.log	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,740 @@
+This file contains any messages produced by compilers while
+running configure, to aid debugging if configure makes a mistake.
+
+It was created by gpsdrive configure 2.09, which was
+generated by GNU Autoconf 2.57.  Invocation command line was
+
+  $ ./configure --prefix=/usr --mandir=${prefix}/share/man --infodir=${prefix}/share/info
+
+## --------- ##
+## Platform. ##
+## --------- ##
+
+hostname = thorn
+uname -m = i686
+uname -r = 2.6.24-1-686
+uname -s = Linux
+uname -v = #1 SMP Thu May 8 02:16:39 UTC 2008
+
+/usr/bin/uname -p = unknown
+/bin/uname -X     = unknown
+
+/bin/arch              = unknown
+/usr/bin/arch -k       = unknown
+/usr/convex/getsysinfo = unknown
+hostinfo               = unknown
+/bin/machine           = unknown
+/usr/bin/oslevel       = unknown
+/bin/universe          = unknown
+
+PATH: /usr/local/sbin
+PATH: /usr/local/bin
+PATH: /usr/sbin
+PATH: /usr/bin
+PATH: /sbin
+PATH: /bin
+
+
+## ----------- ##
+## Core tests. ##
+## ----------- ##
+
+configure:1522: checking for a BSD-compatible install
+configure:1576: result: /usr/bin/install -c
+configure:1587: checking whether build environment is sane
+configure:1630: result: yes
+configure:1663: checking for gawk
+configure:1679: found /usr/bin/gawk
+configure:1689: result: gawk
+configure:1699: checking whether make sets $(MAKE)
+configure:1719: result: yes
+configure:1965: checking build system type
+configure:1983: result: i686-pc-linux
+configure:1991: checking host system type
+configure:2005: result: i686-pc-linux
+configure:2025: checking for style of include used by make
+configure:2053: result: GNU
+configure:2124: checking for gcc
+configure:2140: found /usr/bin/gcc
+configure:2150: result: gcc
+configure:2394: checking for C compiler version
+configure:2397: gcc --version </dev/null >&5
+gcc (Debian 4.3.2-1) 4.3.2
+Copyright (C) 2008 Free Software Foundation, Inc.
+This is free software; see the source for copying conditions.  There is NO
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+configure:2400: $? = 0
+configure:2402: gcc -v </dev/null >&5
+Using built-in specs.
+Target: i486-linux-gnu
+Configured with: ../src/configure -v --with-pkgversion='Debian 4.3.2-1' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --enable-cld --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
+Thread model: posix
+gcc version 4.3.2 (Debian 4.3.2-1) 
+configure:2405: $? = 0
+configure:2407: gcc -V </dev/null >&5
+gcc: '-V' option must have argument
+configure:2410: $? = 1
+configure:2434: checking for C compiler default output
+configure:2437: gcc -g -O2   conftest.c  >&5
+configure:2440: $? = 0
+configure:2486: result: a.out
+configure:2491: checking whether the C compiler works
+configure:2497: ./a.out
+configure:2500: $? = 0
+configure:2517: result: yes
+configure:2524: checking whether we are cross compiling
+configure:2526: result: no
+configure:2529: checking for suffix of executables
+configure:2531: gcc -o conftest -g -O2   conftest.c  >&5
+configure:2534: $? = 0
+configure:2559: result: 
+configure:2565: checking for suffix of object files
+configure:2587: gcc -c -g -O2  conftest.c >&5
+configure:2590: $? = 0
+configure:2612: result: o
+configure:2616: checking whether we are using the GNU C compiler
+configure:2641: gcc -c -g -O2  conftest.c >&5
+configure:2644: $? = 0
+configure:2647: test -s conftest.o
+configure:2650: $? = 0
+configure:2663: result: yes
+configure:2669: checking whether gcc accepts -g
+configure:2691: gcc -c -g  conftest.c >&5
+configure:2694: $? = 0
+configure:2697: test -s conftest.o
+configure:2700: $? = 0
+configure:2711: result: yes
+configure:2728: checking for gcc option to accept ANSI C
+configure:2789: gcc  -c -g -O2  conftest.c >&5
+configure:2792: $? = 0
+configure:2795: test -s conftest.o
+configure:2798: $? = 0
+configure:2816: result: none needed
+configure:2834: gcc -c -g -O2  conftest.c >&5
+conftest.c:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'me'
+configure:2837: $? = 1
+configure: failed program was:
+| #ifndef __cplusplus
+|   choke me
+| #endif
+configure:2948: checking dependency style of gcc
+configure:3031: result: gcc3
+configure:3070: checking for ld used by GCC
+configure:3133: result: /usr/bin/ld
+configure:3142: checking if the linker (/usr/bin/ld) is GNU ld
+GNU ld (GNU Binutils for Debian) 2.18.0.20080103
+configure:3154: result: yes
+configure:3159: checking for /usr/bin/ld option to reload object files
+configure:3166: result: -r
+configure:3171: checking for BSD-compatible nm
+configure:3207: result: /usr/bin/nm -B
+configure:3210: checking for a sed that does not truncate output
+configure:3292: result: /bin/sed
+configure:3295: checking whether ln -s works
+configure:3299: result: yes
+configure:3306: checking how to recognise dependent libraries
+configure:3487: result: pass_all
+configure:3500: checking command to parse /usr/bin/nm -B output
+configure:3584: gcc -c -g -O2  conftest.c >&5
+configure:3587: $? = 0
+configure:3591: /usr/bin/nm -B conftest.o \| sed -n -e 's/^.*[ 	]\([ABCDGISTW][ABCDGISTW]*\)[ 	][ 	]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' \> conftest.nm
+configure:3594: $? = 0
+configure:3646: gcc -o conftest -g -O2   conftest.c conftstm.o >&5
+configure:3649: $? = 0
+configure:3693: result: ok
+configure:3702: checking how to run the C preprocessor
+configure:3738: gcc -E  conftest.c
+configure:3744: $? = 0
+configure:3776: gcc -E  conftest.c
+configure:3777:28: error: ac_nonexistent.h: No such file or directory
+configure:3782: $? = 1
+configure: failed program was:
+| #line 3767 "configure"
+| /* confdefs.h.  */
+| 
+| #define PACKAGE_NAME "gpsdrive"
+| #define PACKAGE_TARNAME "gpsdrive"
+| #define PACKAGE_VERSION "2.09"
+| #define PACKAGE_STRING "gpsdrive 2.09"
+| #define PACKAGE_BUGREPORT "ganter at ganter.at"
+| #define PACKAGE "gpsdrive"
+| #define VERSION "2.09"
+| /* end confdefs.h.  */
+| #include <ac_nonexistent.h>
+configure:3820: result: gcc -E
+configure:3845: gcc -E  conftest.c
+configure:3851: $? = 0
+configure:3883: gcc -E  conftest.c
+configure:3884:28: error: ac_nonexistent.h: No such file or directory
+configure:3889: $? = 1
+configure: failed program was:
+| #line 3874 "configure"
+| /* confdefs.h.  */
+| 
+| #define PACKAGE_NAME "gpsdrive"
+| #define PACKAGE_TARNAME "gpsdrive"
+| #define PACKAGE_VERSION "2.09"
+| #define PACKAGE_STRING "gpsdrive 2.09"
+| #define PACKAGE_BUGREPORT "ganter at ganter.at"
+| #define PACKAGE "gpsdrive"
+| #define VERSION "2.09"
+| /* end confdefs.h.  */
+| #include <ac_nonexistent.h>
+configure:3932: checking for egrep
+configure:3942: result: grep -E
+configure:3947: checking for ANSI C header files
+configure:3973: gcc -c -g -O2  conftest.c >&5
+configure:3976: $? = 0
+configure:3979: test -s conftest.o
+configure:3982: $? = 0
+configure:4074: gcc -o conftest -g -O2   conftest.c  >&5
+configure: In function 'main':
+configure:4069: warning: incompatible implicit declaration of built-in function 'exit'
+configure:4077: $? = 0
+configure:4079: ./conftest
+configure:4082: $? = 0
+configure:4097: result: yes
+configure:4121: checking for sys/types.h
+configure:4138: gcc -c -g -O2  conftest.c >&5
+configure:4141: $? = 0
+configure:4144: test -s conftest.o
+configure:4147: $? = 0
+configure:4158: result: yes
+configure:4121: checking for sys/stat.h
+configure:4138: gcc -c -g -O2  conftest.c >&5
+configure:4141: $? = 0
+configure:4144: test -s conftest.o
+configure:4147: $? = 0
+configure:4158: result: yes
+configure:4121: checking for stdlib.h
+configure:4138: gcc -c -g -O2  conftest.c >&5
+configure:4141: $? = 0
+configure:4144: test -s conftest.o
+configure:4147: $? = 0
+configure:4158: result: yes
+configure:4121: checking for string.h
+configure:4138: gcc -c -g -O2  conftest.c >&5
+configure:4141: $? = 0
+configure:4144: test -s conftest.o
+configure:4147: $? = 0
+configure:4158: result: yes
+configure:4121: checking for memory.h
+configure:4138: gcc -c -g -O2  conftest.c >&5
+configure:4141: $? = 0
+configure:4144: test -s conftest.o
+configure:4147: $? = 0
+configure:4158: result: yes
+configure:4121: checking for strings.h
+configure:4138: gcc -c -g -O2  conftest.c >&5
+configure:4141: $? = 0
+configure:4144: test -s conftest.o
+configure:4147: $? = 0
+configure:4158: result: yes
+configure:4121: checking for inttypes.h
+configure:4138: gcc -c -g -O2  conftest.c >&5
+configure:4141: $? = 0
+configure:4144: test -s conftest.o
+configure:4147: $? = 0
+configure:4158: result: yes
+configure:4121: checking for stdint.h
+configure:4138: gcc -c -g -O2  conftest.c >&5
+configure:4141: $? = 0
+configure:4144: test -s conftest.o
+configure:4147: $? = 0
+configure:4158: result: yes
+configure:4121: checking for unistd.h
+configure:4138: gcc -c -g -O2  conftest.c >&5
+configure:4141: $? = 0
+configure:4144: test -s conftest.o
+configure:4147: $? = 0
+configure:4158: result: yes
+configure:4184: checking dlfcn.h usability
+configure:4197: gcc -c -g -O2  conftest.c >&5
+configure:4200: $? = 0
+configure:4203: test -s conftest.o
+configure:4206: $? = 0
+configure:4216: result: yes
+configure:4220: checking dlfcn.h presence
+configure:4231: gcc -E  conftest.c
+configure:4237: $? = 0
+configure:4256: result: yes
+configure:4292: checking for dlfcn.h
+configure:4299: result: yes
+configure:4497: checking for ranlib
+configure:4513: found /usr/bin/ranlib
+configure:4524: result: ranlib
+configure:4577: checking for strip
+configure:4593: found /usr/bin/strip
+configure:4604: result: strip
+configure:4657: gcc -c -g -O2  conftest.c >&5
+configure:4660: $? = 0
+configure:4826: checking for objdir
+configure:4837: result: .libs
+configure:4854: checking for gcc option to produce PIC
+configure:5000: result: -fPIC
+configure:5004: checking if gcc PIC flag -fPIC works
+configure:5028: gcc -c -g -O2 -fPIC -DPIC  conftest.c >&5
+configure:5031: $? = 0
+configure:5034: test -s conftest.o
+configure:5037: $? = 0
+configure:5075: result: yes
+configure:5091: checking if gcc static flag -static works
+configure:5116: gcc -o conftest -g -O2   -static conftest.c  >&5
+configure:5119: $? = 0
+configure:5122: test -s conftest
+configure:5125: $? = 0
+configure:5141: result: yes
+configure:5153: checking if gcc supports -c -o file.o
+configure:5173: gcc -c -g -O2 -o out/conftest2.o  conftest.c >&5
+configure:5197: result: yes
+configure:5202: checking if gcc supports -c -o file.lo
+configure:5230: gcc -c -g -O2 -c -o conftest.lo  conftest.c >&5
+configure:5233: $? = 0
+configure:5236: test -s conftest.lo
+configure:5239: $? = 0
+configure:5261: result: yes
+configure:5292: checking if gcc supports -fno-rtti -fno-exceptions
+configure:5315: gcc -c -g -O2 -fno-rtti -fno-exceptions -c conftest.c  conftest.c >&5
+cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C
+cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C
+configure:5318: $? = 0
+configure:5321: test -s conftest.o
+configure:5324: $? = 0
+configure:5341: result: yes
+configure:5352: checking whether the linker (/usr/bin/ld) supports shared libraries
+configure:6047: result: yes
+configure:6052: checking how to hardcode library paths into programs
+configure:6076: result: immediate
+configure:6081: checking whether stripping libraries is possible
+configure:6086: result: yes
+configure:6097: checking dynamic linker characteristics
+configure:6511: result: GNU/Linux ld.so
+configure:6516: checking if libtool supports shared libraries
+configure:6518: result: yes
+configure:6521: checking whether to build shared libraries
+configure:6542: result: yes
+configure:6545: checking whether to build static libraries
+configure:6549: result: yes
+configure:7223: checking whether -lc should be explicitly linked in
+configure:7231: gcc -c -g -O2  conftest.c >&5
+configure:7234: $? = 0
+configure:7248: gcc -shared conftest.o  -v -Wl,-soname -Wl,conftest -o conftest 2\>\&1 \| grep  -lc  \>/dev/null 2\>\&1
+configure:7251: $? = 0
+configure:7264: result: no
+configure:7884: checking for gcc
+configure:7910: result: gcc
+configure:8154: checking for C compiler version
+configure:8157: gcc --version </dev/null >&5
+gcc (Debian 4.3.2-1) 4.3.2
+Copyright (C) 2008 Free Software Foundation, Inc.
+This is free software; see the source for copying conditions.  There is NO
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+configure:8160: $? = 0
+configure:8162: gcc -v </dev/null >&5
+Using built-in specs.
+Target: i486-linux-gnu
+Configured with: ../src/configure -v --with-pkgversion='Debian 4.3.2-1' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --enable-cld --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
+Thread model: posix
+gcc version 4.3.2 (Debian 4.3.2-1) 
+configure:8165: $? = 0
+configure:8167: gcc -V </dev/null >&5
+gcc: '-V' option must have argument
+configure:8170: $? = 1
+configure:8173: checking whether we are using the GNU C compiler
+configure:8220: result: yes
+configure:8226: checking whether gcc accepts -g
+configure:8268: result: yes
+configure:8285: checking for gcc option to accept ANSI C
+configure:8373: result: none needed
+configure:8391: gcc -c -g -O2  conftest.c >&5
+conftest.c:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'me'
+configure:8394: $? = 1
+configure: failed program was:
+| #ifndef __cplusplus
+|   choke me
+| #endif
+configure:8505: checking dependency style of gcc
+configure:8588: result: gcc3
+configure:8606: checking for strerror in -lcposix
+configure:8637: gcc -o conftest -g -O2   conftest.c -lcposix   >&5
+/usr/bin/ld: cannot find -lcposix
+collect2: ld returned 1 exit status
+configure:8640: $? = 1
+configure: failed program was:
+| #line 8613 "configure"
+| /* confdefs.h.  */
+| 
+| #define PACKAGE_NAME "gpsdrive"
+| #define PACKAGE_TARNAME "gpsdrive"
+| #define PACKAGE_VERSION "2.09"
+| #define PACKAGE_STRING "gpsdrive 2.09"
+| #define PACKAGE_BUGREPORT "ganter at ganter.at"
+| #define PACKAGE "gpsdrive"
+| #define VERSION "2.09"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| /* end confdefs.h.  */
+| 
+| /* Override any gcc2 internal prototype to avoid an error.  */
+| #ifdef __cplusplus
+| extern "C"
+| #endif
+| /* We use char because int might match the return type of a gcc2
+|    builtin and then its argument prototype would still apply.  */
+| char strerror ();
+| int
+| main ()
+| {
+| strerror ();
+|   ;
+|   return 0;
+| }
+configure:8658: result: no
+configure:8666: checking for inline
+configure:8688: gcc -c -g -O2  conftest.c >&5
+configure:8691: $? = 0
+configure:8694: test -s conftest.o
+configure:8697: $? = 0
+configure:8709: result: inline
+configure:8736: checking for a BSD-compatible install
+configure:8790: result: /usr/bin/install -c
+configure:8853: checking for g++
+configure:8869: found /usr/bin/g++
+configure:8879: result: g++
+configure:8895: checking for C++ compiler version
+configure:8898: g++ --version </dev/null >&5
+g++ (Debian 4.3.2-1) 4.3.2
+Copyright (C) 2008 Free Software Foundation, Inc.
+This is free software; see the source for copying conditions.  There is NO
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+configure:8901: $? = 0
+configure:8903: g++ -v </dev/null >&5
+Using built-in specs.
+Target: i486-linux-gnu
+Configured with: ../src/configure -v --with-pkgversion='Debian 4.3.2-1' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --enable-cld --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
+Thread model: posix
+gcc version 4.3.2 (Debian 4.3.2-1) 
+configure:8906: $? = 0
+configure:8908: g++ -V </dev/null >&5
+g++: '-V' option must have argument
+configure:8911: $? = 1
+configure:8914: checking whether we are using the GNU C++ compiler
+configure:8939: g++ -c -g -O2  conftest.cc >&5
+configure:8942: $? = 0
+configure:8945: test -s conftest.o
+configure:8948: $? = 0
+configure:8961: result: yes
+configure:8967: checking whether g++ accepts -g
+configure:8989: g++ -c -g  conftest.cc >&5
+configure:8992: $? = 0
+configure:8995: test -s conftest.o
+configure:8998: $? = 0
+configure:9009: result: yes
+configure:9053: g++ -c -g -O2  conftest.cc >&5
+configure:9056: $? = 0
+configure:9059: test -s conftest.o
+configure:9062: $? = 0
+configure:9089: g++ -c -g -O2  conftest.cc >&5
+configure: In function 'int main()':
+configure:9097: error: 'exit' was not declared in this scope
+configure:9092: $? = 1
+configure: failed program was:
+| #line 9072 "configure"
+| /* confdefs.h.  */
+| 
+| #define PACKAGE_NAME "gpsdrive"
+| #define PACKAGE_TARNAME "gpsdrive"
+| #define PACKAGE_VERSION "2.09"
+| #define PACKAGE_STRING "gpsdrive 2.09"
+| #define PACKAGE_BUGREPORT "ganter at ganter.at"
+| #define PACKAGE "gpsdrive"
+| #define VERSION "2.09"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| /* end confdefs.h.  */
+| 
+| int
+| main ()
+| {
+| exit (42);
+|   ;
+|   return 0;
+| }
+configure:9053: g++ -c -g -O2  conftest.cc >&5
+configure:9056: $? = 0
+configure:9059: test -s conftest.o
+configure:9062: $? = 0
+configure:9089: g++ -c -g -O2  conftest.cc >&5
+configure:9092: $? = 0
+configure:9095: test -s conftest.o
+configure:9098: $? = 0
+configure:9123: checking dependency style of g++
+configure:9206: result: gcc3
+configure:9223: checking for ANSI C header files
+configure:9373: result: yes
+configure:9387: checking for gawk
+configure:9413: result: gawk
+configure:9435: checking for a BSD-compatible install
+configure:9489: result: /usr/bin/install -c
+configure:9500: checking whether ln -s works
+configure:9504: result: yes
+
+## ---------------- ##
+## Cache variables. ##
+## ---------------- ##
+
+ac_cv_build=i686-pc-linux
+ac_cv_build_alias=i686-pc-linux
+ac_cv_c_compiler_gnu=yes
+ac_cv_c_inline=inline
+ac_cv_cxx_compiler_gnu=yes
+ac_cv_env_CC_set=
+ac_cv_env_CC_value=
+ac_cv_env_CFLAGS_set=set
+ac_cv_env_CFLAGS_value='-g -O2'
+ac_cv_env_CPPFLAGS_set=set
+ac_cv_env_CPPFLAGS_value=
+ac_cv_env_CPP_set=
+ac_cv_env_CPP_value=
+ac_cv_env_CXXFLAGS_set=set
+ac_cv_env_CXXFLAGS_value='-g -O2'
+ac_cv_env_CXX_set=
+ac_cv_env_CXX_value=
+ac_cv_env_LDFLAGS_set=set
+ac_cv_env_LDFLAGS_value=
+ac_cv_env_build_alias_set=
+ac_cv_env_build_alias_value=
+ac_cv_env_host_alias_set=
+ac_cv_env_host_alias_value=
+ac_cv_env_target_alias_set=
+ac_cv_env_target_alias_value=
+ac_cv_exeext=
+ac_cv_header_dlfcn_h=yes
+ac_cv_header_inttypes_h=yes
+ac_cv_header_memory_h=yes
+ac_cv_header_stdc=yes
+ac_cv_header_stdint_h=yes
+ac_cv_header_stdlib_h=yes
+ac_cv_header_string_h=yes
+ac_cv_header_strings_h=yes
+ac_cv_header_sys_stat_h=yes
+ac_cv_header_sys_types_h=yes
+ac_cv_header_unistd_h=yes
+ac_cv_host=i686-pc-linux
+ac_cv_host_alias=i686-pc-linux
+ac_cv_lib_cposix_strerror=no
+ac_cv_objext=o
+ac_cv_path_install='/usr/bin/install -c'
+ac_cv_prog_AWK=gawk
+ac_cv_prog_CPP='gcc -E'
+ac_cv_prog_ac_ct_CC=gcc
+ac_cv_prog_ac_ct_CXX=g++
+ac_cv_prog_ac_ct_RANLIB=ranlib
+ac_cv_prog_ac_ct_STRIP=strip
+ac_cv_prog_cc_g=yes
+ac_cv_prog_cc_stdc=
+ac_cv_prog_cxx_g=yes
+ac_cv_prog_egrep='grep -E'
+ac_cv_prog_make_make_set=yes
+am_cv_CC_dependencies_compiler_type=gcc3
+am_cv_CXX_dependencies_compiler_type=gcc3
+lt_cv_archive_cmds_need_lc=no
+lt_cv_cc_64bit_output=no
+lt_cv_compiler_c_o=yes
+lt_cv_compiler_o_lo=yes
+lt_cv_deplibs_check_method=pass_all
+lt_cv_file_magic_cmd='$MAGIC_CMD'
+lt_cv_file_magic_test_file='/lib/libc.so.6 /lib/libc-2.7.so'
+lt_cv_global_symbol_to_c_name_address='sed -n -e '\''s/^: \([^ ]*\) $/  {\"\1\", (lt_ptr) 0},/p'\'' -e '\''s/^[BCDEGRST] \([^ ]*\) \([^ ]*\)$/  {"\2", (lt_ptr) \&\2},/p'\'''
+lt_cv_global_symbol_to_cdecl='sed -n -e '\''s/^. .* \(.*\)$/extern char \1;/p'\'''
+lt_cv_ld_reload_flag=-r
+lt_cv_path_LD=/usr/bin/ld
+lt_cv_path_NM='/usr/bin/nm -B'
+lt_cv_path_SED=/bin/sed
+lt_cv_prog_cc_can_build_shared=yes
+lt_cv_prog_cc_no_builtin=
+lt_cv_prog_cc_pic=' -fPIC'
+lt_cv_prog_cc_pic_works=yes
+lt_cv_prog_cc_shlib=
+lt_cv_prog_cc_static=-static
+lt_cv_prog_cc_static_works=yes
+lt_cv_prog_cc_wl=-Wl,
+lt_cv_prog_gnu_ld=yes
+lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[ 	]\([ABCDGISTW][ABCDGISTW]*\)[ 	][ 	]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p'\'''
+
+## ----------------- ##
+## Output variables. ##
+## ----------------- ##
+
+ACLOCAL='${SHELL} /root/debian/svn/gis/gpsdrive/branches/build-area/gpsdrive-2.09/missing --run aclocal-1.7'
+AMDEPBACKSLASH='\'
+AMDEP_FALSE='#'
+AMDEP_TRUE=''
+AMTAR='${SHELL} /root/debian/svn/gis/gpsdrive/branches/build-area/gpsdrive-2.09/missing --run tar'
+AUTOCONF='${SHELL} /root/debian/svn/gis/gpsdrive/branches/build-area/gpsdrive-2.09/missing --run autoconf'
+AUTOHEADER='${SHELL} /root/debian/svn/gis/gpsdrive/branches/build-area/gpsdrive-2.09/missing --run autoheader'
+AUTOMAKE='${SHELL} /root/debian/svn/gis/gpsdrive/branches/build-area/gpsdrive-2.09/missing --run automake-1.7'
+AWK='gawk'
+CATALOGS=''
+CATOBJEXT=''
+CC='gcc'
+CCDEPMODE='depmode=gcc3'
+CFLAGS='-g -O2'
+CPP='gcc -E'
+CPPFLAGS=''
+CXX='g++'
+CXXDEPMODE='depmode=gcc3'
+CXXFLAGS='-g -O2'
+CYGPATH_W='echo'
+DATADIRNAME=''
+DEFS=''
+DEPDIR='.deps'
+DISABLEGARMIN_FALSE=''
+DISABLEGARMIN_TRUE=''
+DISABLEPLUGINS_FALSE=''
+DISABLEPLUGINS_TRUE=''
+ECHO='echo'
+ECHO_C=''
+ECHO_N='-n'
+ECHO_T=''
+EGREP='grep -E'
+ENABLETELEATLAS_FALSE=''
+ENABLETELEATLAS_TRUE=''
+EXEEXT=''
+FRIENDSSERVERVERSION='2'
+GETTEXT_PACKAGE=''
+GMOFILES=''
+GMSGFMT=''
+INSTALL_DATA='${INSTALL} -m 644'
+INSTALL_PROGRAM='${INSTALL}'
+INSTALL_SCRIPT='${INSTALL}'
+INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
+INSTOBJEXT=''
+INTLLIBS=''
+LDFLAGS=''
+LIBADD_DL=''
+LIBOBJS=''
+LIBS=''
+LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+LN_S='ln -s'
+LTLIBOBJS=''
+MAKEINFO='${SHELL} /root/debian/svn/gis/gpsdrive/branches/build-area/gpsdrive-2.09/missing --run makeinfo'
+MKINSTALLDIRS=''
+MSGFMT=''
+MSGMERGE=''
+NOGARMIN=''
+NOPLUGINS=''
+OBJEXT='o'
+PACKAGE='gpsdrive'
+PACKAGE_BUGREPORT='ganter at ganter.at'
+PACKAGE_NAME='gpsdrive'
+PACKAGE_STRING='gpsdrive 2.09'
+PACKAGE_TARNAME='gpsdrive'
+PACKAGE_VERSION='2.09'
+PATH_SEPARATOR=':'
+PCRE_CONFIG=''
+PKGCONFIG_CFLAGS=''
+PKGCONFIG_LIBS=''
+PKG_CONFIG=''
+POFILES=''
+POSUB=''
+PO_IN_DATADIR_FALSE=''
+PO_IN_DATADIR_TRUE=''
+RANLIB='ranlib'
+SET_MAKE=''
+SHELL='/bin/sh'
+STRIP='strip'
+USETELEATLAS=''
+USE_NLS=''
+VERSION='2.09'
+XGETTEXT=''
+ac_ct_CC='gcc'
+ac_ct_CXX='g++'
+ac_ct_RANLIB='ranlib'
+ac_ct_STRIP='strip'
+am__fastdepCC_FALSE='#'
+am__fastdepCC_TRUE=''
+am__fastdepCXX_FALSE='#'
+am__fastdepCXX_TRUE=''
+am__include='include'
+am__leading_dot='.'
+am__quote=''
+bindir='${exec_prefix}/bin'
+build='i686-pc-linux'
+build_alias=''
+build_cpu='i686'
+build_os='linux'
+build_vendor='pc'
+datadir='${prefix}/share'
+exec_prefix='NONE'
+host='i686-pc-linux'
+host_alias=''
+host_cpu='i686'
+host_os='linux'
+host_vendor='pc'
+includedir='${prefix}/include'
+infodir='${prefix}/share/info'
+install_sh='/root/debian/svn/gis/gpsdrive/branches/build-area/gpsdrive-2.09/install-sh'
+libdir='${exec_prefix}/lib'
+libexecdir='${exec_prefix}/libexec'
+localedir=''
+localstatedir='${prefix}/var'
+mandir='${prefix}/share/man'
+oldincludedir='/usr/include'
+pkgdatadir=''
+prefix='/usr'
+program_transform_name='s,x,x,'
+sbindir='${exec_prefix}/sbin'
+sharedstatedir='${prefix}/com'
+sysconfdir='${prefix}/etc'
+target_alias=''
+
+## ----------- ##
+## confdefs.h. ##
+## ----------- ##
+
+#define HAVE_DLFCN_H 1
+#define HAVE_INTTYPES_H 1
+#define HAVE_MEMORY_H 1
+#define HAVE_STDINT_H 1
+#define HAVE_STDLIB_H 1
+#define HAVE_STRINGS_H 1
+#define HAVE_STRING_H 1
+#define HAVE_SYS_STAT_H 1
+#define HAVE_SYS_TYPES_H 1
+#define HAVE_UNISTD_H 1
+#define PACKAGE "gpsdrive"
+#define PACKAGE_BUGREPORT "ganter at ganter.at"
+#define PACKAGE_NAME "gpsdrive"
+#define PACKAGE_STRING "gpsdrive 2.09"
+#define PACKAGE_TARNAME "gpsdrive"
+#define PACKAGE_VERSION "2.09"
+#define STDC_HEADERS 1
+#define STDC_HEADERS 1
+#define VERSION "2.09"
+#endif
+#ifdef __cplusplus
+#include <stdlib.h>
+
+configure: exit 0

Added: packages/gpsdrive/branches/etch/config.sub
===================================================================
--- packages/gpsdrive/branches/etch/config.sub	                        (rev 0)
+++ packages/gpsdrive/branches/etch/config.sub	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,1501 @@
+#! /bin/sh
+# Configuration validation subroutine script.
+#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
+#   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+
+timestamp='2003-07-04'
+
+# 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., 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.
+
+# Please send patches to <config-patches at gnu.org>.  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 <config-patches at gnu.org>."
+
+version="\
+GNU config.sub ($timestamp)
+
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
+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 0 ;;
+    --version | -v )
+       echo "$version" ; exit 0 ;;
+    --help | --h* | -h )
+       echo "$usage"; exit 0 ;;
+    -- )     # 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 0;;
+
+    * )
+       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* | kfreebsd*-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)
+		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
+		;;
+	-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/'`
+		;;
+	-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] \
+	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
+	| c4x | clipper \
+	| d10v | d30v | dlx | dsp16xx \
+	| fr30 | frv \
+	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
+	| i370 | i860 | i960 | ia64 \
+	| ip2k \
+	| m32r | m68000 | m68k | m88k | mcore \
+	| mips | mipsbe | mipseb | mipsel | mipsle \
+	| mips16 \
+	| mips64 | mips64el \
+	| mips64vr | mips64vrel \
+	| mips64orion | mips64orionel \
+	| mips64vr4100 | mips64vr4100el \
+	| mips64vr4300 | mips64vr4300el \
+	| mips64vr5000 | mips64vr5000el \
+	| mipsisa32 | mipsisa32el \
+	| mipsisa32r2 | mipsisa32r2el \
+	| mipsisa64 | mipsisa64el \
+	| mipsisa64sb1 | mipsisa64sb1el \
+	| mipsisa64sr71k | mipsisa64sr71kel \
+	| mipstx39 | mipstx39el \
+	| mn10200 | mn10300 \
+	| msp430 \
+	| ns16k | ns32k \
+	| openrisc | or32 \
+	| pdp10 | pdp11 | pj | pjl \
+	| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
+	| pyramid \
+	| sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
+	| sh64 | sh64le \
+	| sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
+	| strongarm \
+	| tahoe | thumb | tic4x | tic80 | tron \
+	| v850 | v850e \
+	| we32k \
+	| x86 | xscale | 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)
+		;;
+
+	# 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-* \
+	| bs2000-* \
+	| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
+	| clipper-* | cydra-* \
+	| d10v-* | d30v-* | dlx-* \
+	| elxsi-* \
+	| f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
+	| h8300-* | h8500-* \
+	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
+	| i*86-* | i860-* | i960-* | ia64-* \
+	| ip2k-* \
+	| m32r-* \
+	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
+	| m88110-* | m88k-* | mcore-* \
+	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
+	| mips16-* \
+	| mips64-* | mips64el-* \
+	| mips64vr-* | mips64vrel-* \
+	| mips64orion-* | mips64orionel-* \
+	| mips64vr4100-* | mips64vr4100el-* \
+	| mips64vr4300-* | mips64vr4300el-* \
+	| mips64vr5000-* | mips64vr5000el-* \
+	| mipsisa32-* | mipsisa32el-* \
+	| mipsisa32r2-* | mipsisa32r2el-* \
+	| mipsisa64-* | mipsisa64el-* \
+	| mipsisa64sb1-* | mipsisa64sb1el-* \
+	| mipsisa64sr71k-* | mipsisa64sr71kel-* \
+	| mipstx39-* | mipstx39el-* \
+	| msp430-* \
+	| none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
+	| orion-* \
+	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
+	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
+	| pyramid-* \
+	| romp-* | rs6000-* \
+	| sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
+	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
+	| sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
+	| sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
+	| tahoe-* | thumb-* \
+	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
+	| tron-* \
+	| v850-* | v850e-* | vax-* \
+	| we32k-* \
+	| x86-* | x86_64-* | xps100-* | xscale-* | 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
+		;;
+	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
+		;;
+	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
+		;;
+	crds | unos)
+		basic_machine=m68k-crds
+		;;
+	cris | cris-* | etrax*)
+		basic_machine=cris-axis
+		;;
+	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
+		;;
+	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
+		;;
+	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
+		;;
+	mmix*)
+		basic_machine=mmix-knuth
+		os=-mmixware
+		;;
+	monitor)
+		basic_machine=m68k-rom68k
+		os=-coff
+		;;
+	morphos)
+		basic_machine=powerpc-unknown
+		os=-morphos
+		;;
+	msdos)
+		basic_machine=i386-pc
+		os=-msdos
+		;;
+	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
+		;;
+	nv1)
+		basic_machine=nv1-cray
+		os=-unicosmp
+		;;
+	nsr-tandem)
+		basic_machine=nsr-tandem
+		;;
+	op50n-* | op60c-*)
+		basic_machine=hppa1.1-oki
+		os=-proelf
+		;;
+	or32 | or32-*)
+		basic_machine=or32-unknown
+		os=-coff
+		;;
+	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
+		;;
+	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
+		;;
+	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
+		;;
+	sei)
+		basic_machine=mips-sei
+		os=-seiux
+		;;
+	sequent)
+		basic_machine=i386-sequent
+		;;
+	sh)
+		basic_machine=sh-hitachi
+		os=-hms
+		;;
+	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
+		;;
+	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
+		;;
+	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
+		;;
+	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
+		;;
+	sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
+		basic_machine=sh-unknown
+		;;
+	sh64)
+		basic_machine=sh64-unknown
+		;;
+	sparc | sparcv9 | sparcv9b)
+		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* | -netbsd* | -openbsd* | -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* | -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*)
+	# 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* \
+	      | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
+		;;
+	-mac*)
+		os=`echo $os | sed -e 's|mac|macos|'`
+		;;
+	-sunos5*)
+		os=`echo $os | sed -e 's|sunos5|solaris2|'`
+		;;
+	-sunos6*)
+		os=`echo $os | sed -e 's|sunos6|solaris3|'`
+		;;
+	-opened*)
+		os=-openedition
+		;;
+	-wince*)
+		os=-wince
+		;;
+	-osfrose*)
+		os=-osfrose
+		;;
+	-osf*)
+		os=-osf
+		;;
+	-utek*)
+		os=-bsd
+		;;
+	-dynix*)
+		os=-bsd
+		;;
+	-acis*)
+		os=-aos
+		;;
+	-atheos*)
+		os=-atheos
+		;;
+	-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
+		;;
+	-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
+		;;
+	-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
+	*-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
+		;;
+	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
+		;;
+	*-ibm)
+		os=-aix
+		;;
+	*-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
+				;;
+			-ptx*)
+				vendor=sequent
+				;;
+			-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 0
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "timestamp='"
+# time-stamp-format: "%:y-%02m-%02d"
+# time-stamp-end: "'"
+# End:


Property changes on: packages/gpsdrive/branches/etch/config.sub
___________________________________________________________________
Name: svn:executable
   + *

Added: packages/gpsdrive/branches/etch/configure
===================================================================
--- packages/gpsdrive/branches/etch/configure	                        (rev 0)
+++ packages/gpsdrive/branches/etch/configure	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,15082 @@
+#! /bin/sh
+# Guess values for system-dependent variables and create Makefiles.
+# Generated by GNU Autoconf 2.57 for gpsdrive 2.09.
+#
+# Report bugs to <ganter at ganter.at>.
+#
+# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
+# 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 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+"$@"}'='"$@"'
+elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
+  set -o posix
+fi
+
+# Support unset when possible.
+if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
+  as_unset=unset
+else
+  as_unset=false
+fi
+
+
+# Work around bugs in pre-3.0 UWIN ksh.
+$as_unset ENV MAIL MAILPATH
+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 -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
+    eval $as_var=C; export $as_var
+  else
+    $as_unset $as_var
+  fi
+done
+
+# Required to use basename.
+if expr a : '\(a\)' >/dev/null 2>&1; 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'`
+
+
+# PATH needs CR, and LINENO needs CR and PATH.
+# 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
+
+
+  as_lineno_1=$LINENO
+  as_lineno_2=$LINENO
+  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
+  test "x$as_lineno_1" != "x$as_lineno_2" &&
+  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
+  # Find who we are.  Look in the path if we contain no path at all
+  # relative or not.
+  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
+
+       ;;
+  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_me: error: cannot find myself; rerun with an absolute path" >&2
+   { (exit 1); exit 1; }; }
+  fi
+  case $CONFIG_SHELL in
+  '')
+    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=.
+  for as_base in sh bash ksh sh5; do
+	 case $as_dir in
+	 /*)
+	   if ("$as_dir/$as_base" -c '
+  as_lineno_1=$LINENO
+  as_lineno_2=$LINENO
+  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
+  test "x$as_lineno_1" != "x$as_lineno_2" &&
+  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
+	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
+	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
+	     CONFIG_SHELL=$as_dir/$as_base
+	     export CONFIG_SHELL
+	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
+	   fi;;
+	 esac
+       done
+done
+;;
+  esac
+
+  # 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 before each line; the second 'sed' does the real
+  # work.  The second script uses 'N' to pair each line-number line
+  # with the numbered line, 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
+  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
+  sed '=' <$as_myself |
+    sed '
+      N
+      s,$,-,
+      : loop
+      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
+      t loop
+      s,-$,,
+      s,^['$as_cr_digits']*\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 sensible to this).
+  . ./$as_me.lineno
+  # Exit status is that of the last command.
+  exit
+}
+
+
+case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
+  *c*,-n*) ECHO_N= ECHO_C='
+' ECHO_T='	' ;;
+  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
+  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
+esac
+
+if expr a : '\(a\)' >/dev/null 2>&1; then
+  as_expr=expr
+else
+  as_expr=false
+fi
+
+rm -f conf$$ conf$$.exe conf$$.file
+echo >conf$$.file
+if ln -s conf$$.file conf$$ 2>/dev/null; then
+  # We could just check for DJGPP; but this test a) works b) is more generic
+  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
+  if test -f conf$$.exe; then
+    # Don't use ln at all; we don't have any links
+    as_ln_s='cp -p'
+  else
+    as_ln_s='ln -s'
+  fi
+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$$.file
+
+if mkdir -p . 2>/dev/null; then
+  as_mkdir_p=:
+else
+  as_mkdir_p=false
+fi
+
+as_executable_p="test -f"
+
+# Sed expression to map a string onto a valid CPP name.
+as_tr_cpp="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="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
+
+
+# IFS
+# We need space, tab and new line, in precisely that order.
+as_nl='
+'
+IFS=" 	$as_nl"
+
+# CDPATH.
+$as_unset CDPATH
+
+
+# Find the correct PATH separator.  Usually this is `:', but
+# DJGPP uses `;' like DOS.
+if test "X${PATH_SEPARATOR+set}" != Xset; then
+  UNAME=${UNAME-`uname 2>/dev/null`}
+  case X$UNAME in
+    *-DOS) lt_cv_sys_path_separator=';' ;;
+    *)     lt_cv_sys_path_separator=':' ;;
+  esac
+  PATH_SEPARATOR=$lt_cv_sys_path_separator
+fi
+
+
+# Check that we are running under the correct shell.
+SHELL=${CONFIG_SHELL-/bin/sh}
+
+case X$ECHO in
+X*--fallback-echo)
+  # Remove one level of quotation (which was required for Make).
+  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
+  ;;
+esac
+
+echo=${ECHO-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.
+  exec $SHELL "$0" --no-reexec ${1+"$@"}
+fi
+
+if test "X$1" = X--fallback-echo; then
+  # used as fallback echo
+  shift
+  cat <<EOF
+
+EOF
+  exit 0
+fi
+
+# The HP-UX ksh and POSIX shell print the target directory to stdout
+# if CDPATH is set.
+if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
+
+if test -z "$ECHO"; then
+if test "X${echo_test_string+set}" != Xset; then
+# find a string as large as possible, as long as the shell can cope with it
+  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
+    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
+    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
+       echo_test_string="`eval $cmd`" &&
+       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
+    then
+      break
+    fi
+  done
+fi
+
+if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
+   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
+   test "X$echo_testing_string" = "X$echo_test_string"; then
+  :
+else
+  # The Solaris, AIX, and Digital Unix default echo programs unquote
+  # backslashes.  This makes it impossible to quote backslashes using
+  #   echo "$something" | sed 's/\\/\\\\/g'
+  #
+  # So, first we look for a working echo in the user's PATH.
+
+  IFS="${IFS= 	}"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+  for dir in $PATH /usr/ucb; do
+    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
+       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
+       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
+       test "X$echo_testing_string" = "X$echo_test_string"; then
+      echo="$dir/echo"
+      break
+    fi
+  done
+  IFS="$save_ifs"
+
+  if test "X$echo" = Xecho; then
+    # We didn't find a better echo, so look for alternatives.
+    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
+       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
+       test "X$echo_testing_string" = "X$echo_test_string"; then
+      # This shell has a builtin print -r that does the trick.
+      echo='print -r'
+    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
+	 test "X$CONFIG_SHELL" != X/bin/ksh; then
+      # If we have ksh, try running configure again with it.
+      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
+      export ORIGINAL_CONFIG_SHELL
+      CONFIG_SHELL=/bin/ksh
+      export CONFIG_SHELL
+      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
+    else
+      # Try using printf.
+      echo='printf %s\n'
+      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
+	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
+	 test "X$echo_testing_string" = "X$echo_test_string"; then
+	# Cool, printf works
+	:
+      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
+	   test "X$echo_testing_string" = 'X\t' &&
+	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
+	   test "X$echo_testing_string" = "X$echo_test_string"; then
+	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
+	export CONFIG_SHELL
+	SHELL="$CONFIG_SHELL"
+	export SHELL
+	echo="$CONFIG_SHELL $0 --fallback-echo"
+      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
+	   test "X$echo_testing_string" = 'X\t' &&
+	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
+	   test "X$echo_testing_string" = "X$echo_test_string"; then
+	echo="$CONFIG_SHELL $0 --fallback-echo"
+      else
+	# maybe with a smaller string...
+	prev=:
+
+	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
+	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
+	  then
+	    break
+	  fi
+	  prev="$cmd"
+	done
+
+	if test "$prev" != 'sed 50q "$0"'; then
+	  echo_test_string=`eval $prev`
+	  export echo_test_string
+	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
+	else
+	  # Oops.  We lost completely, so just stick with echo.
+	  echo=echo
+	fi
+      fi
+    fi
+  fi
+fi
+fi
+
+# Copy echo and quote the copy suitably for passing to libtool from
+# the Makefile, instead of quoting the original, which is used later.
+ECHO=$echo
+if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
+   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
+fi
+
+
+
+# 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`
+
+exec 6>&1
+
+#
+# Initializations.
+#
+ac_default_prefix=/usr/local
+ac_config_libobj_dir=.
+cross_compiling=no
+subdirs=
+MFLAGS=
+MAKEFLAGS=
+SHELL=${CONFIG_SHELL-/bin/sh}
+
+# Maximum number of lines to put in a shell here document.
+# This variable seems obsolete.  It should probably be removed, and
+# only ac_max_sed_lines should be used.
+: ${ac_max_here_lines=38}
+
+# Identity of this package.
+PACKAGE_NAME='gpsdrive'
+PACKAGE_TARNAME='gpsdrive'
+PACKAGE_VERSION='2.09'
+PACKAGE_STRING='gpsdrive 2.09'
+PACKAGE_BUGREPORT='ganter at ganter.at'
+
+ac_unique_file="foo.c"
+ac_unique_file="src/gpsdrive.c"
+# Factoring default headers for most tests.
+ac_includes_default="\
+#include <stdio.h>
+#if HAVE_SYS_TYPES_H
+# include <sys/types.h>
+#endif
+#if HAVE_SYS_STAT_H
+# include <sys/stat.h>
+#endif
+#if STDC_HEADERS
+# include <stdlib.h>
+# include <stddef.h>
+#else
+# if HAVE_STDLIB_H
+#  include <stdlib.h>
+# endif
+#endif
+#if HAVE_STRING_H
+# if !STDC_HEADERS && HAVE_MEMORY_H
+#  include <memory.h>
+# endif
+# include <string.h>
+#endif
+#if HAVE_STRINGS_H
+# include <strings.h>
+#endif
+#if HAVE_INTTYPES_H
+# include <inttypes.h>
+#else
+# if HAVE_STDINT_H
+#  include <stdint.h>
+# endif
+#endif
+#if HAVE_UNISTD_H
+# include <unistd.h>
+#endif"
+
+ac_default_prefix="/usr/local"
+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 datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot FRIENDSSERVERVERSION build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 LN_S ECHO RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE PKG_CONFIG PKGCONFIG_CFLAGS PKGCONFIG_LIBS PCRE_CONFIG localedir LIBADD_DL pkgdatadir USE_NLS MSGFMT GMSGFMT XGETTEXT CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLLIBS PO_IN_DATADIR_TRUE PO_IN_DATADIR_FALSE POFILES POSUB MKINSTALLDIRS MSGMERGE GETTEXT_PACKAGE NOGARMIN DISABLEGARMIN_TRUE DISABLEGARMIN_FALSE NOPLUGINS DISABLEPLUGINS_TRUE DISABLEPLUGINS_FALSE USETELEATLAS ENABLETELEATLAS_TRUE ENABLETELEATLAS_FALSE LIBOBJS LTLIBOBJS'
+ac_subst_files=''
+
+# 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.
+bindir='${exec_prefix}/bin'
+sbindir='${exec_prefix}/sbin'
+libexecdir='${exec_prefix}/libexec'
+datadir='${prefix}/share'
+sysconfdir='${prefix}/etc'
+sharedstatedir='${prefix}/com'
+localstatedir='${prefix}/var'
+libdir='${exec_prefix}/lib'
+includedir='${prefix}/include'
+oldincludedir='/usr/include'
+infodir='${prefix}/info'
+mandir='${prefix}/man'
+
+ac_prev=
+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
+
+  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
+
+  # Accept the important Cygnus configure options, so we can diagnose typos.
+
+  case $ac_option in
+
+  -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 | --data | --dat | --da)
+    ac_prev=datadir ;;
+  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
+  | --da=*)
+    datadir=$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" ;;
+
+  -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'`
+    case $ac_option in
+      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
+      *) ac_optarg=yes ;;
+    esac
+    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 ;;
+
+  -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 ;;
+
+  -localstatedir | --localstatedir | --localstatedi | --localstated \
+  | --localstate | --localstat | --localsta | --localst \
+  | --locals | --local | --loca | --loc | --lo)
+    ac_prev=localstatedir ;;
+  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
+  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
+  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
+    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 ;;
+
+  -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'`
+    case $ac_option in
+      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
+      *) ac_optarg=yes ;;
+    esac
+    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; }; }
+    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
+    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 paths.
+for ac_var in exec_prefix prefix
+do
+  eval ac_val=$`echo $ac_var`
+  case $ac_val in
+    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
+    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
+   { (exit 1); exit 1; }; };;
+  esac
+done
+
+# Be sure to have absolute paths.
+for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
+              localstatedir libdir includedir oldincludedir infodir mandir
+do
+  eval ac_val=$`echo $ac_var`
+  case $ac_val in
+    [\\/$]* | ?:[\\/]* ) ;;
+    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
+   { (exit 1); exit 1; }; };;
+  esac
+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
+
+
+# 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 its parent.
+  ac_confdir=`(dirname "$0") 2>/dev/null ||
+$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
+  if test "$ac_srcdir_defaulted" = yes; then
+    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
+   { (exit 1); exit 1; }; }
+  else
+    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
+   { (exit 1); exit 1; }; }
+  fi
+fi
+(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
+  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
+   { (exit 1); exit 1; }; }
+srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
+ac_env_build_alias_set=${build_alias+set}
+ac_env_build_alias_value=$build_alias
+ac_cv_env_build_alias_set=${build_alias+set}
+ac_cv_env_build_alias_value=$build_alias
+ac_env_host_alias_set=${host_alias+set}
+ac_env_host_alias_value=$host_alias
+ac_cv_env_host_alias_set=${host_alias+set}
+ac_cv_env_host_alias_value=$host_alias
+ac_env_target_alias_set=${target_alias+set}
+ac_env_target_alias_value=$target_alias
+ac_cv_env_target_alias_set=${target_alias+set}
+ac_cv_env_target_alias_value=$target_alias
+ac_env_CC_set=${CC+set}
+ac_env_CC_value=$CC
+ac_cv_env_CC_set=${CC+set}
+ac_cv_env_CC_value=$CC
+ac_env_CFLAGS_set=${CFLAGS+set}
+ac_env_CFLAGS_value=$CFLAGS
+ac_cv_env_CFLAGS_set=${CFLAGS+set}
+ac_cv_env_CFLAGS_value=$CFLAGS
+ac_env_LDFLAGS_set=${LDFLAGS+set}
+ac_env_LDFLAGS_value=$LDFLAGS
+ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
+ac_cv_env_LDFLAGS_value=$LDFLAGS
+ac_env_CPPFLAGS_set=${CPPFLAGS+set}
+ac_env_CPPFLAGS_value=$CPPFLAGS
+ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
+ac_cv_env_CPPFLAGS_value=$CPPFLAGS
+ac_env_CPP_set=${CPP+set}
+ac_env_CPP_value=$CPP
+ac_cv_env_CPP_set=${CPP+set}
+ac_cv_env_CPP_value=$CPP
+ac_env_CXX_set=${CXX+set}
+ac_env_CXX_value=$CXX
+ac_cv_env_CXX_set=${CXX+set}
+ac_cv_env_CXX_value=$CXX
+ac_env_CXXFLAGS_set=${CXXFLAGS+set}
+ac_env_CXXFLAGS_value=$CXXFLAGS
+ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
+ac_cv_env_CXXFLAGS_value=$CXXFLAGS
+
+#
+# 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 gpsdrive 2.09 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 \`..']
+
+_ACEOF
+
+  cat <<_ACEOF
+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]
+  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
+  --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]
+  --infodir=DIR          info documentation [PREFIX/info]
+  --mandir=DIR           man documentation [PREFIX/man]
+_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
+
+System types:
+  --build=BUILD     configure for building on BUILD [guessed]
+  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
+_ACEOF
+fi
+
+if test -n "$ac_init_help"; then
+  case $ac_init_help in
+     short | recursive ) echo "Configuration of gpsdrive 2.09:";;
+   esac
+  cat <<\_ACEOF
+
+Optional Features:
+  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
+  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
+  --enable-shared=PKGS  build shared libraries default=yes
+  --enable-static=PKGS  build static libraries default=yes
+  --enable-fast-install=PKGS  optimize for fast installation default=yes
+  --disable-dependency-tracking Speeds up one-time builds
+  --enable-dependency-tracking  Do not reject slow dependency extractors
+  --disable-libtool-lock  avoid locking (might break parallel builds)
+  --enable-auto-optimization
+                          try to automatically determine the most optimal
+                          build options for your architecture
+  --enable-gcc3-optimization=type
+                          gcc3 can optimize for: i386, i486, pentium,
+                          pentium-mmx, pentiumpro, pentium2, pentium3,
+                          pentium4, k6, k6-2, k6-3, athlon, athlon-tbird,
+                          athlon-4, athlon-xp, athlon-mp, winchip-c6,
+                          winchip2, c3
+  --enable-gcc2-optimization=type
+                          gcc2 can optimize for: i386, i486, pentium,
+                          pentiumpro, k6
+  --disable-garmin        compiles without GARMIN protocol support
+  --disable-plugins       disable use of plugin modules
+  --enable-teleatlas      enable street navigation using Teleatlas maps, needs
+                          gpsnavlib. Ignore this option until announced at
+                          www.gpsdrive.cc
+
+Optional Packages:
+  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
+  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
+  --with-gnu-ld           assume the C compiler uses GNU ld default=no
+  --with-pic              try to use only PIC/non-PIC objects default=use both
+  --with-debug            compiles with -g
+
+Some influential environment variables:
+  CC          C compiler command
+  CFLAGS      C compiler flags
+  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
+              nonstandard directory <lib dir>
+  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
+              headers in a nonstandard directory <include dir>
+  CPP         C preprocessor
+  CXX         C++ compiler command
+  CXXFLAGS    C++ compiler flags
+
+Use these variables to override the choices made by `configure' or to help
+it to find libraries and programs with nonstandard names/locations.
+
+Report bugs to <ganter at ganter.at>.
+_ACEOF
+fi
+
+if test "$ac_init_help" = "recursive"; then
+  # If there are subdirs, report their specific --help.
+  ac_popdir=`pwd`
+  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
+    test -d $ac_dir || continue
+    ac_builddir=.
+
+if test "$ac_dir" != .; then
+  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
+  # A "../" for each directory in $ac_dir_suffix.
+  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
+else
+  ac_dir_suffix= ac_top_builddir=
+fi
+
+case $srcdir in
+  .)  # No --srcdir option.  We are building in place.
+    ac_srcdir=.
+    if test -z "$ac_top_builddir"; then
+       ac_top_srcdir=.
+    else
+       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
+    fi ;;
+  [\\/]* | ?:[\\/]* )  # Absolute path.
+    ac_srcdir=$srcdir$ac_dir_suffix;
+    ac_top_srcdir=$srcdir ;;
+  *) # Relative path.
+    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
+    ac_top_srcdir=$ac_top_builddir$srcdir ;;
+esac
+# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
+# absolute.
+ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
+ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
+ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
+ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
+
+    cd $ac_dir
+    # Check for guested configure; otherwise get Cygnus style 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
+    elif test -f $ac_srcdir/configure.ac ||
+           test -f $ac_srcdir/configure.in; then
+      echo
+      $ac_configure --help
+    else
+      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
+    fi
+    cd $ac_popdir
+  done
+fi
+
+test -n "$ac_init_help" && exit 0
+if $ac_init_version; then
+  cat <<\_ACEOF
+gpsdrive configure 2.09
+generated by GNU Autoconf 2.57
+
+Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
+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 0
+fi
+exec 5>config.log
+cat >&5 <<_ACEOF
+This file contains any messages produced by compilers while
+running configure, to aid debugging if configure makes a mistake.
+
+It was created by gpsdrive $as_me 2.09, which was
+generated by GNU Autoconf 2.57.  Invocation command line was
+
+  $ $0 $@
+
+_ACEOF
+{
+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`
+hostinfo               = `(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
+
+} >&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_sep=
+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_sep'$ac_arg'"
+      # Get rid of the leading space.
+      ac_sep=" "
+      ;;
+    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: Be sure not to use single quotes in there, as some shells,
+# such as our DU 5.0 friend, will then `close' the trap.
+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,
+{
+  (set) 2>&1 |
+    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
+    *ac_space=\ *)
+      sed -n \
+        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
+    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
+      ;;
+    *)
+      sed -n \
+        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
+      ;;
+    esac;
+}
+    echo
+
+    cat <<\_ASBOX
+## ----------------- ##
+## Output variables. ##
+## ----------------- ##
+_ASBOX
+    echo
+    for ac_var in $ac_subst_vars
+    do
+      eval ac_val=$`echo $ac_var`
+      echo "$ac_var='"'"'$ac_val'"'"'"
+    done | sort
+    echo
+
+    if test -n "$ac_subst_files"; then
+      cat <<\_ASBOX
+## ------------- ##
+## Output files. ##
+## ------------- ##
+_ASBOX
+      echo
+      for ac_var in $ac_subst_files
+      do
+	eval ac_val=$`echo $ac_var`
+        echo "$ac_var='"'"'$ac_val'"'"'"
+      done | sort
+      echo
+    fi
+
+    if test -s confdefs.h; then
+      cat <<\_ASBOX
+## ----------- ##
+## confdefs.h. ##
+## ----------- ##
+_ASBOX
+      echo
+      sed "/^$/d" confdefs.h | sort
+      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 &&
+  rm -rf 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 -rf conftest* confdefs.h
+# AIX cpp loses on an empty file, so make sure it contains at least a newline.
+echo >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 -z "$CONFIG_SITE"; then
+  if test "x$prefix" != xNONE; then
+    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
+  else
+    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
+  fi
+fi
+for ac_site_file in $CONFIG_SITE; 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 `(set) 2>&1 |
+               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; 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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+am__api_version="1.7"
+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
+ac_config_guess="$SHELL $ac_aux_dir/config.guess"
+ac_config_sub="$SHELL $ac_aux_dir/config.sub"
+ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
+
+# 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"
+# ./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/* | \
+  /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 $as_executable_p "$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
+
+
+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.  We don't cache a
+    # path for INSTALL within a source directory, because that will
+    # break other packages using the cache if that directory is
+    # removed, or if the path is relative.
+    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 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
+
+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 $as_executable_p "$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
+
+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 dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
+if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.make <<\_ACEOF
+all:
+	@echo 'ac_maketemp="$(MAKE)"'
+_ACEOF
+# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
+eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
+if test -n "$ac_maketemp"; then
+  eval ac_cv_prog_make_${ac_make}_set=yes
+else
+  eval ac_cv_prog_make_${ac_make}_set=no
+fi
+rm -f conftest.make
+fi
+if eval "test \"`echo '$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=gpsdrive
+ VERSION=2.09
+
+
+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 $as_executable_p "$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
+
+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 $as_executable_p "$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
+
+  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
+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
+
+  STRIP=$ac_ct_STRIP
+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.
+
+
+
+FRIENDSSERVERVERSION='2'
+
+
+
+          ac_config_headers="$ac_config_headers config.h"
+
+
+ALL_LINGUAS="de es fr it da nl tr de_AT hu sk sv no pt_BR gr ja"
+
+
+# Check whether --enable-shared or --disable-shared was given.
+if test "${enable_shared+set}" = set; then
+  enableval="$enable_shared"
+  p=${PACKAGE-default}
+case $enableval in
+yes) enable_shared=yes ;;
+no) enable_shared=no ;;
+*)
+  enable_shared=no
+  # Look at the argument we got.  We use all the common list separators.
+  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
+  for pkg in $enableval; do
+    if test "X$pkg" = "X$p"; then
+      enable_shared=yes
+    fi
+  done
+  IFS="$ac_save_ifs"
+  ;;
+esac
+else
+  enable_shared=yes
+fi;
+# Check whether --enable-static or --disable-static was given.
+if test "${enable_static+set}" = set; then
+  enableval="$enable_static"
+  p=${PACKAGE-default}
+case $enableval in
+yes) enable_static=yes ;;
+no) enable_static=no ;;
+*)
+  enable_static=no
+  # Look at the argument we got.  We use all the common list separators.
+  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
+  for pkg in $enableval; do
+    if test "X$pkg" = "X$p"; then
+      enable_static=yes
+    fi
+  done
+  IFS="$ac_save_ifs"
+  ;;
+esac
+else
+  enable_static=yes
+fi;
+# Check whether --enable-fast-install or --disable-fast-install was given.
+if test "${enable_fast_install+set}" = set; then
+  enableval="$enable_fast_install"
+  p=${PACKAGE-default}
+case $enableval in
+yes) enable_fast_install=yes ;;
+no) enable_fast_install=no ;;
+*)
+  enable_fast_install=no
+  # Look at the argument we got.  We use all the common list separators.
+  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
+  for pkg in $enableval; do
+    if test "X$pkg" = "X$p"; then
+      enable_fast_install=yes
+    fi
+  done
+  IFS="$ac_save_ifs"
+  ;;
+esac
+else
+  enable_fast_install=yes
+fi;
+# Make sure we can run config.sub.
+$ac_config_sub sun4 >/dev/null 2>&1 ||
+  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
+echo "$as_me: error: cannot run $ac_config_sub" >&2;}
+   { (exit 1); exit 1; }; }
+
+echo "$as_me:$LINENO: checking build system type" >&5
+echo $ECHO_N "checking build system type... $ECHO_C" >&6
+if test "${ac_cv_build+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_cv_build_alias=$build_alias
+test -z "$ac_cv_build_alias" &&
+  ac_cv_build_alias=`$ac_config_guess`
+test -z "$ac_cv_build_alias" &&
+  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
+echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
+   { (exit 1); exit 1; }; }
+ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
+  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
+echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
+   { (exit 1); exit 1; }; }
+
+fi
+echo "$as_me:$LINENO: result: $ac_cv_build" >&5
+echo "${ECHO_T}$ac_cv_build" >&6
+build=$ac_cv_build
+build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
+build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
+build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
+
+
+echo "$as_me:$LINENO: checking host system type" >&5
+echo $ECHO_N "checking host system type... $ECHO_C" >&6
+if test "${ac_cv_host+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_cv_host_alias=$host_alias
+test -z "$ac_cv_host_alias" &&
+  ac_cv_host_alias=$ac_cv_build_alias
+ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
+  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
+echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
+   { (exit 1); exit 1; }; }
+
+fi
+echo "$as_me:$LINENO: result: $ac_cv_host" >&5
+echo "${ECHO_T}$ac_cv_host" >&6
+host=$ac_cv_host
+host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
+host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
+host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
+
+
+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 or --disable-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 $as_executable_p "$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
+
+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 $as_executable_p "$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
+
+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
+
+  CC=$ac_ct_CC
+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 $as_executable_p "$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
+
+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 "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_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 $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_ac_ct_CC="cc"
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+done
+
+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
+
+  CC=$ac_ct_CC
+else
+  CC="$ac_cv_prog_CC"
+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 $as_executable_p "$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
+
+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
+  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 $as_executable_p "$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
+
+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
+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 $as_executable_p "$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
+
+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
+
+  CC=$ac_ct_CC
+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`
+{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
+  (eval $ac_compiler --version </dev/null >&5) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }
+{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
+  (eval $ac_compiler -v </dev/null >&5) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }
+{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
+  (eval $ac_compiler -V </dev/null >&5) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }
+
+cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* 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" >&5
+echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
+ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
+if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
+  (eval $ac_link_default) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; then
+  # Find the output, starting from the most likely.  This scheme is
+# not robust to junk in `.', hence go to wildcards (a.*) only as a last
+# resort.
+
+# Be careful to initialize this variable, since it used to be cached.
+# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
+ac_cv_exeext=
+# b.out is created by i960 compilers.
+for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
+do
+  test -f "$ac_file" || continue
+  case $ac_file in
+    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
+        ;;
+    conftest.$ac_ext )
+        # This is the source file.
+        ;;
+    [ab].out )
+        # We found the default executable, but exeext='' is most
+        # certainly right.
+        break;;
+    *.* )
+        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
+        # FIXME: I believe we export ac_cv_exeext for Libtool,
+        # but it would be cool to find out if it's true.  Does anybody
+        # maintain Libtool? --akim.
+        export ac_cv_exeext
+        break;;
+    * )
+        break;;
+  esac
+done
+else
+  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
+echo "$as_me:$LINENO: result: $ac_file" >&5
+echo "${ECHO_T}$ac_file" >&6
+
+# Check 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'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 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 { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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 | *.o | *.obj ) ;;
+    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
+          export ac_cv_exeext
+          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
+#line $LINENO "configure"
+/* 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 { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; then
+  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
+  case $ac_file in
+    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
+    *) 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
+#line $LINENO "configure"
+/* 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 { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; 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 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
+CFLAGS="-g"
+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
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* 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 { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_prog_cc_g=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_prog_cc_g=no
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+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 ANSI C" >&5
+echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
+if test "${ac_cv_prog_cc_stdc+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_cv_prog_cc_stdc=no
+ac_save_CC=$CC
+cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <stdarg.h>
+#include <stdio.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+/* 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;
+}
+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
+# Don't try gcc -ansi; that turns off useful extensions and
+# breaks some systems' header files.
+# AIX			-qlanglvl=ansi
+# Ultrix and OSF/1	-std1
+# HP-UX 10.20 and later	-Ae
+# HP-UX older versions	-Aa -D_HPUX_SOURCE
+# SVR4			-Xc -D__EXTENSIONS__
+for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
+do
+  CC="$ac_save_CC $ac_arg"
+  rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_prog_cc_stdc=$ac_arg
+break
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.$ac_objext
+done
+rm -f conftest.$ac_ext conftest.$ac_objext
+CC=$ac_save_CC
+
+fi
+
+case "x$ac_cv_prog_cc_stdc" in
+  x|xno)
+    echo "$as_me:$LINENO: result: none needed" >&5
+echo "${ECHO_T}none needed" >&6 ;;
+  *)
+    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
+echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
+    CC="$CC $ac_cv_prog_cc_stdc" ;;
+esac
+
+# Some people use a C++ compiler to compile C.  Since we use `exit',
+# in C++ we need to declare it.  In case someone uses the same compiler
+# for both compiling C and C++ we need to have the C++ compiler decide
+# the declaration of exit, since it's the most demanding environment.
+cat >conftest.$ac_ext <<_ACEOF
+#ifndef __cplusplus
+  choke me
+#endif
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  for ac_declaration in \
+   ''\
+   '#include <stdlib.h>' \
+   'extern "C" void std::exit (int) throw (); using std::exit;' \
+   'extern "C" void std::exit (int); using std::exit;' \
+   'extern "C" void exit (int) throw ();' \
+   'extern "C" void exit (int);' \
+   'void exit (int);'
+do
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <stdlib.h>
+$ac_declaration
+int
+main ()
+{
+exit (42);
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  :
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+continue
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+$ac_declaration
+int
+main ()
+{
+exit (42);
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  break
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+done
+rm -f conftest*
+if test -n "$ac_declaration"; then
+  echo '#ifdef __cplusplus' >>confdefs.h
+  echo $ac_declaration      >>confdefs.h
+  echo '#endif'             >>confdefs.h
+fi
+
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+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
+      : > 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
+      # (even with -Werror).  So we grep stderr for any message
+      # that says an option was ignored.
+      if grep 'ignoring option' 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
+
+
+# Find the correct PATH separator.  Usually this is `:', but
+# DJGPP uses `;' like DOS.
+if test "X${PATH_SEPARATOR+set}" != Xset; then
+  UNAME=${UNAME-`uname 2>/dev/null`}
+  case X$UNAME in
+    *-DOS) lt_cv_sys_path_separator=';' ;;
+    *)     lt_cv_sys_path_separator=':' ;;
+  esac
+  PATH_SEPARATOR=$lt_cv_sys_path_separator
+fi
+
+
+# Check whether --with-gnu-ld or --without-gnu-ld was given.
+if test "${with_gnu_ld+set}" = set; then
+  withval="$with_gnu_ld"
+  test "$withval" = no || with_gnu_ld=yes
+else
+  with_gnu_ld=no
+fi;
+ac_prog=ld
+if test "$GCC" = yes; then
+  # Check if gcc -print-prog-name=ld gives a path.
+  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
+echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
+  case $host in
+  *-*-mingw*)
+    # gcc leaves a trailing carriage return which upsets mingw
+    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
+  *)
+    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
+  esac
+  case $ac_prog in
+    # Accept absolute paths.
+    [\\/]* | [A-Za-z]:[\\/]*)
+      re_direlt='/[^/][^/]*/\.\./'
+      # Canonicalize the path of ld
+      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
+      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
+	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
+      done
+      test -z "$LD" && LD="$ac_prog"
+      ;;
+  "")
+    # If it fails, then pretend we aren't using GCC.
+    ac_prog=ld
+    ;;
+  *)
+    # If it is relative, then search for the first ld in PATH.
+    with_gnu_ld=unknown
+    ;;
+  esac
+elif test "$with_gnu_ld" = yes; then
+  echo "$as_me:$LINENO: checking for GNU ld" >&5
+echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
+else
+  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
+echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
+fi
+if test "${lt_cv_path_LD+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  if test -z "$LD"; then
+  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+  for ac_dir in $PATH; do
+    test -z "$ac_dir" && ac_dir=.
+    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
+      lt_cv_path_LD="$ac_dir/$ac_prog"
+      # Check to see if the program is GNU ld.  I'd rather use --version,
+      # but apparently some GNU ld's only accept -v.
+      # Break only if it was the GNU/non-GNU ld that we prefer.
+      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
+	test "$with_gnu_ld" != no && break
+      else
+	test "$with_gnu_ld" != yes && break
+      fi
+    fi
+  done
+  IFS="$ac_save_ifs"
+else
+  lt_cv_path_LD="$LD" # Let the user override the test with a path.
+fi
+fi
+
+LD="$lt_cv_path_LD"
+if test -n "$LD"; then
+  echo "$as_me:$LINENO: result: $LD" >&5
+echo "${ECHO_T}$LD" >&6
+else
+  echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
+echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
+   { (exit 1); exit 1; }; }
+echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
+echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
+if test "${lt_cv_prog_gnu_ld+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
+if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
+  lt_cv_prog_gnu_ld=yes
+else
+  lt_cv_prog_gnu_ld=no
+fi
+fi
+echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
+echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
+with_gnu_ld=$lt_cv_prog_gnu_ld
+
+
+echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
+echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
+if test "${lt_cv_ld_reload_flag+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  lt_cv_ld_reload_flag='-r'
+fi
+echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
+echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
+reload_flag=$lt_cv_ld_reload_flag
+test -n "$reload_flag" && reload_flag=" $reload_flag"
+
+echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
+echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
+if test "${lt_cv_path_NM+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  if test -n "$NM"; then
+  # Let the user override the test.
+  lt_cv_path_NM="$NM"
+else
+  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
+    test -z "$ac_dir" && ac_dir=.
+    tmp_nm=$ac_dir/${ac_tool_prefix}nm
+    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
+      # Check to see if the nm accepts a BSD-compat flag.
+      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
+      #   nm: unknown option "B" ignored
+      # Tru64's nm complains that /dev/null is an invalid object file
+      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
+	lt_cv_path_NM="$tmp_nm -B"
+	break
+      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
+	lt_cv_path_NM="$tmp_nm -p"
+	break
+      else
+	lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
+	continue # so that we can try to find one that supports BSD flags
+      fi
+    fi
+  done
+  IFS="$ac_save_ifs"
+  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
+fi
+fi
+
+NM="$lt_cv_path_NM"
+echo "$as_me:$LINENO: result: $NM" >&5
+echo "${ECHO_T}$NM" >&6
+
+echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
+echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
+if test "${lt_cv_path_SED+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  # Loop through the user's path and test for sed and gsed.
+# Then use that list of sed's as ones to test for truncation.
+as_executable_p="test -f"
+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_prog in sed gsed; do
+    for ac_exec_ext in '' $ac_executable_extensions; do
+      if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
+        _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
+      fi
+    done
+  done
+done
+
+  # Create a temporary directory, and hook for its removal unless debugging.
+$debug ||
+{
+  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
+  trap '{ (exit 1); exit 1; }' 1 2 13 15
+}
+
+# Create a (secure) tmp directory for tmp files.
+: ${TMPDIR=/tmp}
+{
+  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
+  test -n "$tmp" && test -d "$tmp"
+}  ||
+{
+  tmp=$TMPDIR/sed$$-$RANDOM
+  (umask 077 && mkdir $tmp)
+} ||
+{
+   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
+   { (exit 1); exit 1; }
+}
+  _max=0
+  _count=0
+  # Add /usr/xpg4/bin/sed as it is typically found on Solaris
+  # along with /bin/sed that truncates output.
+  for _sed in $_sed_list /usr/xpg4/bin/sed; do
+    test ! -f ${_sed} && break
+    cat /dev/null > "$tmp/sed.in"
+    _count=0
+    echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
+    # Check for GNU sed and select it if it is found.
+    if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
+      lt_cv_path_SED=${_sed}
+      break
+    fi
+    while true; do
+      cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
+      mv "$tmp/sed.tmp" "$tmp/sed.in"
+      cp "$tmp/sed.in" "$tmp/sed.nl"
+      echo >>"$tmp/sed.nl"
+      ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
+      cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
+      # 40000 chars as input seems more than enough
+      test $_count -gt 10 && break
+      _count=`expr $_count + 1`
+      if test $_count -gt $_max; then
+        _max=$_count
+        lt_cv_path_SED=$_sed
+      fi
+    done
+  done
+  rm -rf "$tmp"
+
+fi
+
+if test "X$SED" != "X"; then
+  lt_cv_path_SED=$SED
+else
+  SED=$lt_cv_path_SED
+fi
+echo "$as_me:$LINENO: result: $SED" >&5
+echo "${ECHO_T}$SED" >&6
+
+echo "$as_me:$LINENO: checking whether ln -s works" >&5
+echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
+LN_S=$as_ln_s
+if test "$LN_S" = "ln -s"; then
+  echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+else
+  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
+echo "${ECHO_T}no, using $LN_S" >&6
+fi
+
+echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
+echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
+if test "${lt_cv_deplibs_check_method+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  lt_cv_file_magic_cmd='$MAGIC_CMD'
+lt_cv_file_magic_test_file=
+lt_cv_deplibs_check_method='unknown'
+# Need to set the preceding variable on all platforms that support
+# interlibrary dependencies.
+# 'none' -- dependencies not supported.
+# `unknown' -- same as none, but documents that we really don't know.
+# 'pass_all' -- all dependencies passed with no checks.
+# 'test_compile' -- check by making test program.
+# 'file_magic [[regex]]' -- check by looking for files in library path
+# which responds to the $file_magic_cmd with a given egrep regex.
+# If you have `file' or equivalent on your system and you're not sure
+# whether `pass_all' will *always* work, you probably want this one.
+
+case $host_os in
+aix4* | aix5*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+beos*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+bsdi4*)
+  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
+  lt_cv_file_magic_cmd='/usr/bin/file -L'
+  lt_cv_file_magic_test_file=/shlib/libc.so
+  ;;
+
+cygwin* | mingw* | pw32*)
+  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
+  lt_cv_file_magic_cmd='$OBJDUMP -f'
+  ;;
+
+darwin* | rhapsody*)
+  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
+  lt_cv_file_magic_cmd='/usr/bin/file -L'
+  case "$host_os" in
+  rhapsody* | darwin1.[012])
+    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
+    ;;
+  *) # Darwin 1.3 on
+    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
+    ;;
+  esac
+  ;;
+
+freebsd*)
+  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
+    case $host_cpu in
+    i*86 )
+      # Not sure whether the presence of OpenBSD here was a mistake.
+      # Let's accept both of them until this is cleared up.
+      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
+      lt_cv_file_magic_cmd=/usr/bin/file
+      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
+      ;;
+    esac
+  else
+    lt_cv_deplibs_check_method=pass_all
+  fi
+  ;;
+
+gnu*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+hpux10.20*|hpux11*)
+  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
+  lt_cv_file_magic_cmd=/usr/bin/file
+  lt_cv_file_magic_test_file=/usr/lib/libc.sl
+  ;;
+
+irix5* | irix6* | nonstopux*)
+  case $host_os in
+  irix5* | nonstopux*)
+    # this will be overridden with pass_all, but let us keep it just in case
+    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
+    ;;
+  *)
+    case $LD in
+    *-32|*"-32 ") libmagic=32-bit;;
+    *-n32|*"-n32 ") libmagic=N32;;
+    *-64|*"-64 ") libmagic=64-bit;;
+    *) libmagic=never-match;;
+    esac
+    # this will be overridden with pass_all, but let us keep it just in case
+    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
+    ;;
+  esac
+  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+# This must be Linux ELF.
+linux*)
+  case $host_cpu in
+  alpha* | hppa* | i*86 | m68* | mips | mipsel | powerpc* | s390* | sparc* | ia64* | x86_64*)
+    lt_cv_deplibs_check_method=pass_all ;;
+  *)
+    # glibc up to 2.1.1 does not perform some relocations on ARM
+    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
+  esac
+  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
+  ;;
+
+netbsd*)
+  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
+    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
+  else
+    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
+  fi
+  ;;
+
+newos6*)
+  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
+  lt_cv_file_magic_cmd=/usr/bin/file
+  lt_cv_file_magic_test_file=/usr/lib/libnls.so
+  ;;
+
+openbsd*)
+  lt_cv_file_magic_cmd=/usr/bin/file
+  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
+  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
+  else
+    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
+  fi
+  ;;
+
+osf3* | osf4* | osf5*)
+  # this will be overridden with pass_all, but let us keep it just in case
+  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
+  lt_cv_file_magic_test_file=/shlib/libc.so
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+sco3.2v5*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+solaris*)
+  lt_cv_deplibs_check_method=pass_all
+  lt_cv_file_magic_test_file=/lib/libc.so
+  ;;
+
+sysv5uw[78]* | sysv4*uw2*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+  case $host_vendor in
+  motorola)
+    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
+    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
+    ;;
+  ncr)
+    lt_cv_deplibs_check_method=pass_all
+    ;;
+  sequent)
+    lt_cv_file_magic_cmd='/bin/file'
+    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
+    ;;
+  sni)
+    lt_cv_file_magic_cmd='/bin/file'
+    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
+    lt_cv_file_magic_test_file=/lib/libc.so
+    ;;
+  siemens)
+    lt_cv_deplibs_check_method=pass_all
+    ;;
+  esac
+  ;;
+esac
+
+fi
+echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
+echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
+file_magic_cmd=$lt_cv_file_magic_cmd
+deplibs_check_method=$lt_cv_deplibs_check_method
+
+
+
+
+
+
+
+
+# Check for command to grab the raw symbol name followed by C symbol from nm.
+echo "$as_me:$LINENO: checking command to parse $NM output" >&5
+echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
+if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+
+# These are sane defaults that work on at least a few old systems.
+# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
+
+# Character class describing NM global symbol codes.
+symcode='[BCDEGRST]'
+
+# Regexp to match symbols that can be accessed directly from C.
+sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
+
+# Transform the above into a raw symbol and a C symbol.
+symxfrm='\1 \2\3 \3'
+
+# Transform an extracted symbol line into a proper C declaration
+lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
+
+# Transform an extracted symbol line into symbol name and symbol address
+lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
+
+# Define system-specific variables.
+case $host_os in
+aix*)
+  symcode='[BCDT]'
+  ;;
+cygwin* | mingw* | pw32*)
+  symcode='[ABCDGISTW]'
+  ;;
+hpux*) # Its linker distinguishes data from code symbols
+  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
+  lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
+  ;;
+irix* | nonstopux*)
+  symcode='[BCDEGRST]'
+  ;;
+osf*)
+  symcode='[BCDEGQRST]'
+  ;;
+solaris* | sysv5*)
+  symcode='[BDT]'
+  ;;
+sysv4)
+  symcode='[DFNSTU]'
+  ;;
+esac
+
+# Handle CRLF in mingw tool chain
+opt_cr=
+case $host_os in
+mingw*)
+  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
+  ;;
+esac
+
+# If we're using GNU nm, then use its standard symbol codes.
+if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
+  symcode='[ABCDGISTW]'
+fi
+
+# Try without a prefix undercore, then with it.
+for ac_symprfx in "" "_"; do
+
+  # Write the raw and C identifiers.
+lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
+
+  # Check to see that the pipe works correctly.
+  pipe_works=no
+  rm -f conftest*
+  cat > conftest.$ac_ext <<EOF
+#ifdef __cplusplus
+extern "C" {
+#endif
+char nm_test_var;
+void nm_test_func(){}
+#ifdef __cplusplus
+}
+#endif
+int main(){nm_test_var='a';nm_test_func();return(0);}
+EOF
+
+  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; then
+    # Now try to grab the symbols.
+    nlist=conftest.nm
+    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
+  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } && test -s "$nlist"; then
+      # Try sorting and uniquifying the output.
+      if sort "$nlist" | uniq > "$nlist"T; then
+	mv -f "$nlist"T "$nlist"
+      else
+	rm -f "$nlist"T
+      fi
+
+      # Make sure that we snagged all the symbols we need.
+      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
+	if egrep ' nm_test_func$' "$nlist" >/dev/null; then
+	  cat <<EOF > conftest.$ac_ext
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+EOF
+	  # Now generate the symbol file.
+	  eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
+
+	  cat <<EOF >> conftest.$ac_ext
+#if defined (__STDC__) && __STDC__
+# define lt_ptr void *
+#else
+# define lt_ptr char *
+# define const
+#endif
+
+/* The mapping between symbol names and symbols. */
+const struct {
+  const char *name;
+  lt_ptr address;
+}
+lt_preloaded_symbols[] =
+{
+EOF
+	  sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
+	  cat <<\EOF >> conftest.$ac_ext
+  {0, (lt_ptr) 0}
+};
+
+#ifdef __cplusplus
+}
+#endif
+EOF
+	  # Now try linking the two files.
+	  mv conftest.$ac_objext conftstm.$ac_objext
+	  save_LIBS="$LIBS"
+	  save_CFLAGS="$CFLAGS"
+	  LIBS="conftstm.$ac_objext"
+	  CFLAGS="$CFLAGS$no_builtin_flag"
+	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } && test -s conftest$ac_exeext; then
+	    pipe_works=yes
+	  fi
+	  LIBS="$save_LIBS"
+	  CFLAGS="$save_CFLAGS"
+	else
+	  echo "cannot find nm_test_func in $nlist" >&5
+	fi
+      else
+	echo "cannot find nm_test_var in $nlist" >&5
+      fi
+    else
+      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
+    fi
+  else
+    echo "$progname: failed program was:" >&5
+    cat conftest.$ac_ext >&5
+  fi
+  rm -f conftest* conftst*
+
+  # Do not use the global_symbol_pipe unless it works.
+  if test "$pipe_works" = yes; then
+    break
+  else
+    lt_cv_sys_global_symbol_pipe=
+  fi
+done
+
+fi
+
+global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
+if test -z "$lt_cv_sys_global_symbol_pipe"; then
+  global_symbol_to_cdecl=
+  global_symbol_to_c_name_address=
+else
+  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
+  global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
+fi
+if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
+then
+  echo "$as_me:$LINENO: result: failed" >&5
+echo "${ECHO_T}failed" >&6
+else
+  echo "$as_me:$LINENO: result: ok" >&5
+echo "${ECHO_T}ok" >&6
+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 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 <limits.h> to <assert.h> if __STDC__ is defined, since
+  # <limits.h> 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
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+                     Syntax error
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_c_preproc_warn_flag
+  else
+    ac_cpp_err=
+  fi
+else
+  ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_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 non-existent headers
+  # can be detected and how.
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <ac_nonexistent.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_c_preproc_warn_flag
+  else
+    ac_cpp_err=
+  fi
+else
+  ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_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 <limits.h> to <assert.h> if __STDC__ is defined, since
+  # <limits.h> 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
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+                     Syntax error
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_c_preproc_warn_flag
+  else
+    ac_cpp_err=
+  fi
+else
+  ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_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 non-existent headers
+  # can be detected and how.
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <ac_nonexistent.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_c_preproc_warn_flag
+  else
+    ac_cpp_err=
+  fi
+else
+  ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_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 egrep" >&5
+echo $ECHO_N "checking for egrep... $ECHO_C" >&6
+if test "${ac_cv_prog_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_prog_egrep='grep -E'
+    else ac_cv_prog_egrep='egrep'
+    fi
+fi
+echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
+echo "${ECHO_T}$ac_cv_prog_egrep" >&6
+ EGREP=$ac_cv_prog_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
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <stdlib.h>
+#include <stdarg.h>
+#include <string.h>
+#include <float.h>
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; 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 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
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <string.h>
+
+_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
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <stdlib.h>
+
+_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
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <ctype.h>
+#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))
+      exit(2);
+  exit (0);
+}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 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 eval "test \"\${$as_ac_Header+set}\" = set"; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* 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 { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; 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 conftest.$ac_objext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&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 dlfcn.h
+do
+as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+  echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&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
+#line $LINENO "configure"
+/* 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 { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; 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 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
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <$ac_header>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_c_preproc_warn_flag
+  else
+    ac_cpp_err=
+  fi
+else
+  ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_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 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 preprocessor's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+    (
+      cat <<\_ASBOX
+## ------------------------------------ ##
+## Report this to bug-autoconf at gnu.org. ##
+## ------------------------------------ ##
+_ASBOX
+    ) |
+      sed "s/^/$as_me: WARNING:     /" >&2
+    ;;
+  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: proceeding with the preprocessor's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+    (
+      cat <<\_ASBOX
+## ------------------------------------ ##
+## Report this to bug-autoconf at gnu.org. ##
+## ------------------------------------ ##
+_ASBOX
+    ) |
+      sed "s/^/$as_me: WARNING:     /" >&2
+    ;;
+esac
+echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  eval "$as_ac_Header=$ac_header_preproc"
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&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
+
+
+
+
+
+
+# Only perform the check for file, if the check method requires it
+case $deplibs_check_method in
+file_magic*)
+  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
+    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
+echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
+if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  case $MAGIC_CMD in
+  /*)
+  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
+  ;;
+  ?:/*)
+  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
+  ;;
+  *)
+  ac_save_MAGIC_CMD="$MAGIC_CMD"
+  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
+  ac_dummy="/usr/bin:$PATH"
+  for ac_dir in $ac_dummy; do
+    test -z "$ac_dir" && ac_dir=.
+    if test -f $ac_dir/${ac_tool_prefix}file; then
+      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
+      if test -n "$file_magic_test_file"; then
+	case $deplibs_check_method in
+	"file_magic "*)
+	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
+	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
+	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
+	    egrep "$file_magic_regex" > /dev/null; then
+	    :
+	  else
+	    cat <<EOF 1>&2
+
+*** Warning: the command libtool uses to detect shared libraries,
+*** $file_magic_cmd, produces output that libtool cannot recognize.
+*** The result is that libtool may fail to recognize shared libraries
+*** as such.  This will affect the creation of libtool libraries that
+*** depend on shared libraries, but programs linked with such libtool
+*** libraries will work regardless of this problem.  Nevertheless, you
+*** may want to report the problem to your system manager and/or to
+*** bug-libtool at gnu.org
+
+EOF
+	  fi ;;
+	esac
+      fi
+      break
+    fi
+  done
+  IFS="$ac_save_ifs"
+  MAGIC_CMD="$ac_save_MAGIC_CMD"
+  ;;
+esac
+fi
+
+MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
+if test -n "$MAGIC_CMD"; then
+  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
+echo "${ECHO_T}$MAGIC_CMD" >&6
+else
+  echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+if test -z "$lt_cv_path_MAGIC_CMD"; then
+  if test -n "$ac_tool_prefix"; then
+    echo "$as_me:$LINENO: checking for file" >&5
+echo $ECHO_N "checking for file... $ECHO_C" >&6
+if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  case $MAGIC_CMD in
+  /*)
+  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
+  ;;
+  ?:/*)
+  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
+  ;;
+  *)
+  ac_save_MAGIC_CMD="$MAGIC_CMD"
+  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
+  ac_dummy="/usr/bin:$PATH"
+  for ac_dir in $ac_dummy; do
+    test -z "$ac_dir" && ac_dir=.
+    if test -f $ac_dir/file; then
+      lt_cv_path_MAGIC_CMD="$ac_dir/file"
+      if test -n "$file_magic_test_file"; then
+	case $deplibs_check_method in
+	"file_magic "*)
+	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
+	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
+	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
+	    egrep "$file_magic_regex" > /dev/null; then
+	    :
+	  else
+	    cat <<EOF 1>&2
+
+*** Warning: the command libtool uses to detect shared libraries,
+*** $file_magic_cmd, produces output that libtool cannot recognize.
+*** The result is that libtool may fail to recognize shared libraries
+*** as such.  This will affect the creation of libtool libraries that
+*** depend on shared libraries, but programs linked with such libtool
+*** libraries will work regardless of this problem.  Nevertheless, you
+*** may want to report the problem to your system manager and/or to
+*** bug-libtool at gnu.org
+
+EOF
+	  fi ;;
+	esac
+      fi
+      break
+    fi
+  done
+  IFS="$ac_save_ifs"
+  MAGIC_CMD="$ac_save_MAGIC_CMD"
+  ;;
+esac
+fi
+
+MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
+if test -n "$MAGIC_CMD"; then
+  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
+echo "${ECHO_T}$MAGIC_CMD" >&6
+else
+  echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+  else
+    MAGIC_CMD=:
+  fi
+fi
+
+  fi
+  ;;
+esac
+
+if test -n "$ac_tool_prefix"; then
+  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
+set dummy ${ac_tool_prefix}ranlib; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_RANLIB+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  if test -n "$RANLIB"; then
+  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+done
+
+fi
+fi
+RANLIB=$ac_cv_prog_RANLIB
+if test -n "$RANLIB"; then
+  echo "$as_me:$LINENO: result: $RANLIB" >&5
+echo "${ECHO_T}$RANLIB" >&6
+else
+  echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+fi
+if test -z "$ac_cv_prog_RANLIB"; then
+  ac_ct_RANLIB=$RANLIB
+  # Extract the first word of "ranlib", so it can be a program name with args.
+set dummy ranlib; ac_word=$2
+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_RANLIB+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  if test -n "$ac_ct_RANLIB"; then
+  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_ac_ct_RANLIB="ranlib"
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+done
+
+  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
+fi
+fi
+ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
+if test -n "$ac_ct_RANLIB"; then
+  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
+echo "${ECHO_T}$ac_ct_RANLIB" >&6
+else
+  echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+  RANLIB=$ac_ct_RANLIB
+else
+  RANLIB="$ac_cv_prog_RANLIB"
+fi
+
+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 $as_executable_p "$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
+
+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 $as_executable_p "$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
+
+  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
+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
+
+  STRIP=$ac_ct_STRIP
+else
+  STRIP="$ac_cv_prog_STRIP"
+fi
+
+
+enable_dlopen=no
+enable_win32_dll=no
+
+# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
+if test "${enable_libtool_lock+set}" = set; then
+  enableval="$enable_libtool_lock"
+
+fi;
+test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
+
+# Some flags need to be propagated to the compiler or linker for good
+# libtool support.
+case $host in
+*-*-irix6*)
+  # Find out which ABI we are using.
+  echo '#line 4632 "configure"' > conftest.$ac_ext
+  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; then
+    case `/usr/bin/file conftest.$ac_objext` in
+    *32-bit*)
+      LD="${LD-ld} -32"
+      ;;
+    *N32*)
+      LD="${LD-ld} -n32"
+      ;;
+    *64-bit*)
+      LD="${LD-ld} -64"
+      ;;
+    esac
+  fi
+  rm -rf conftest*
+  ;;
+
+*-*-linux*)
+  # Test if the compiler is 64bit
+  echo 'int i;' > conftest.$ac_ext
+  lt_cv_cc_64bit_output=no
+  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; then
+    case `/usr/bin/file conftest.$ac_objext` in
+    *"ELF 64"*)
+      lt_cv_cc_64bit_output=yes
+      ;;
+    esac
+  fi
+  rm -rf conftest*
+  ;;
+
+*-*-sco3.2v5*)
+  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
+  SAVE_CFLAGS="$CFLAGS"
+  CFLAGS="$CFLAGS -belf"
+  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
+echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
+if test "${lt_cv_cc_needs_belf+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+
+
+     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
+
+     cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* 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 conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  lt_cv_cc_needs_belf=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+lt_cv_cc_needs_belf=no
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+     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
+
+fi
+echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
+echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
+  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
+    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
+    CFLAGS="$SAVE_CFLAGS"
+  fi
+  ;;
+
+
+esac
+
+# Sed substitution that helps us do robust quoting.  It backslashifies
+# metacharacters that are still active within double-quoted strings.
+Xsed='sed -e s/^X//'
+sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
+
+# Same as above, but do not quote variable references.
+double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
+
+# Sed substitution to delay expansion of an escaped shell variable in a
+# double_quote_subst'ed string.
+delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
+
+# Constants:
+rm="rm -f"
+
+# Global variables:
+default_ofile=libtool
+can_build_shared=yes
+
+# All known linkers require a `.a' archive for static linking (except M$VC,
+# which needs '.lib').
+libext=a
+ltmain="$ac_aux_dir/ltmain.sh"
+ofile="$default_ofile"
+with_gnu_ld="$lt_cv_prog_gnu_ld"
+need_locks="$enable_libtool_lock"
+
+old_CC="$CC"
+old_CFLAGS="$CFLAGS"
+
+# Set sane defaults for various variables
+test -z "$AR" && AR=ar
+test -z "$AR_FLAGS" && AR_FLAGS=cru
+test -z "$AS" && AS=as
+test -z "$CC" && CC=cc
+test -z "$DLLTOOL" && DLLTOOL=dlltool
+test -z "$LD" && LD=ld
+test -z "$LN_S" && LN_S="ln -s"
+test -z "$MAGIC_CMD" && MAGIC_CMD=file
+test -z "$NM" && NM=nm
+test -z "$OBJDUMP" && OBJDUMP=objdump
+test -z "$RANLIB" && RANLIB=:
+test -z "$STRIP" && STRIP=:
+test -z "$ac_objext" && ac_objext=o
+
+if test x"$host" != x"$build"; then
+  ac_tool_prefix=${host_alias}-
+else
+  ac_tool_prefix=
+fi
+
+case $host_os in
+aix3*)
+  # AIX sometimes has problems with the GCC collect2 program.  For some
+  # reason, if we set the COLLECT_NAMES environment variable, the problems
+  # vanish in a puff of smoke.
+  if test "X${COLLECT_NAMES+set}" != Xset; then
+    COLLECT_NAMES=
+    export COLLECT_NAMES
+  fi
+  ;;
+esac
+
+# Determine commands to create old-style static archives.
+old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
+old_postinstall_cmds='chmod 644 $oldlib'
+old_postuninstall_cmds=
+
+if test -n "$RANLIB"; then
+  case $host_os in
+  openbsd*)
+    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
+    ;;
+  *)
+    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
+    ;;
+  esac
+  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
+fi
+
+# Allow CC to be a program name with arguments.
+set dummy $CC
+compiler="$2"
+
+echo "$as_me:$LINENO: checking for objdir" >&5
+echo $ECHO_N "checking for objdir... $ECHO_C" >&6
+rm -f .libs 2>/dev/null
+mkdir .libs 2>/dev/null
+if test -d .libs; then
+  objdir=.libs
+else
+  # MS-DOS does not allow filenames that begin with a dot.
+  objdir=_libs
+fi
+rmdir .libs 2>/dev/null
+echo "$as_me:$LINENO: result: $objdir" >&5
+echo "${ECHO_T}$objdir" >&6
+
+
+
+# Check whether --with-pic or --without-pic was given.
+if test "${with_pic+set}" = set; then
+  withval="$with_pic"
+  pic_mode="$withval"
+else
+  pic_mode=default
+fi;
+test -z "$pic_mode" && pic_mode=default
+
+# We assume here that the value for lt_cv_prog_cc_pic will not be cached
+# in isolation, and that seeing it set (from the cache) indicates that
+# the associated values are set (in the cache) correctly too.
+echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
+echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
+if test "${lt_cv_prog_cc_pic+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+   lt_cv_prog_cc_pic=
+  lt_cv_prog_cc_shlib=
+  lt_cv_prog_cc_wl=
+  lt_cv_prog_cc_static=
+  lt_cv_prog_cc_no_builtin=
+  lt_cv_prog_cc_can_build_shared=$can_build_shared
+
+  if test "$GCC" = yes; then
+    lt_cv_prog_cc_wl='-Wl,'
+    lt_cv_prog_cc_static='-static'
+
+    case $host_os in
+    aix*)
+      # Below there is a dirty hack to force normal static linking with -ldl
+      # The problem is because libdl dynamically linked with both libc and
+      # libC (AIX C++ library), which obviously doesn't included in libraries
+      # list by gcc. This cause undefined symbols with -static flags.
+      # This hack allows C programs to be linked with "-static -ldl", but
+      # not sure about C++ programs.
+      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
+      ;;
+    amigaos*)
+      # FIXME: we need at least 68020 code to build shared libraries, but
+      # adding the `-m68020' flag to GCC prevents building anything better,
+      # like `-m68040'.
+      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
+      ;;
+    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
+      # PIC is the default for these OSes.
+      ;;
+    darwin* | rhapsody*)
+      # PIC is the default on this platform
+      # Common symbols not allowed in MH_DYLIB files
+      lt_cv_prog_cc_pic='-fno-common'
+      ;;
+    cygwin* | mingw* | pw32* | os2*)
+      # This hack is so that the source file can tell whether it is being
+      # built for inclusion in a dll (and should export symbols for example).
+      lt_cv_prog_cc_pic='-DDLL_EXPORT'
+      ;;
+    sysv4*MP*)
+      if test -d /usr/nec; then
+	 lt_cv_prog_cc_pic=-Kconform_pic
+      fi
+      ;;
+    *)
+      lt_cv_prog_cc_pic='-fPIC'
+      ;;
+    esac
+  else
+    # PORTME Check for PIC flags for the system compiler.
+    case $host_os in
+    aix3* | aix4* | aix5*)
+      lt_cv_prog_cc_wl='-Wl,'
+      # All AIX code is PIC.
+      if test "$host_cpu" = ia64; then
+	# AIX 5 now supports IA64 processor
+	lt_cv_prog_cc_static='-Bstatic'
+      else
+	lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
+      fi
+      ;;
+
+    hpux9* | hpux10* | hpux11*)
+      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
+      lt_cv_prog_cc_wl='-Wl,'
+      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
+      lt_cv_prog_cc_pic='+Z'
+      ;;
+
+    irix5* | irix6* | nonstopux*)
+      lt_cv_prog_cc_wl='-Wl,'
+      lt_cv_prog_cc_static='-non_shared'
+      # PIC (with -KPIC) is the default.
+      ;;
+
+    cygwin* | mingw* | pw32* | os2*)
+      # This hack is so that the source file can tell whether it is being
+      # built for inclusion in a dll (and should export symbols for example).
+      lt_cv_prog_cc_pic='-DDLL_EXPORT'
+      ;;
+
+    newsos6)
+      lt_cv_prog_cc_pic='-KPIC'
+      lt_cv_prog_cc_static='-Bstatic'
+      ;;
+
+    osf3* | osf4* | osf5*)
+      # All OSF/1 code is PIC.
+      lt_cv_prog_cc_wl='-Wl,'
+      lt_cv_prog_cc_static='-non_shared'
+      ;;
+
+    sco3.2v5*)
+      lt_cv_prog_cc_pic='-Kpic'
+      lt_cv_prog_cc_static='-dn'
+      lt_cv_prog_cc_shlib='-belf'
+      ;;
+
+    solaris*)
+      lt_cv_prog_cc_pic='-KPIC'
+      lt_cv_prog_cc_static='-Bstatic'
+      lt_cv_prog_cc_wl='-Wl,'
+      ;;
+
+    sunos4*)
+      lt_cv_prog_cc_pic='-PIC'
+      lt_cv_prog_cc_static='-Bstatic'
+      lt_cv_prog_cc_wl='-Qoption ld '
+      ;;
+
+    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+      lt_cv_prog_cc_pic='-KPIC'
+      lt_cv_prog_cc_static='-Bstatic'
+      lt_cv_prog_cc_wl='-Wl,'
+      ;;
+
+    uts4*)
+      lt_cv_prog_cc_pic='-pic'
+      lt_cv_prog_cc_static='-Bstatic'
+      ;;
+
+    sysv4*MP*)
+      if test -d /usr/nec ;then
+	lt_cv_prog_cc_pic='-Kconform_pic'
+	lt_cv_prog_cc_static='-Bstatic'
+      fi
+      ;;
+
+    *)
+      lt_cv_prog_cc_can_build_shared=no
+      ;;
+    esac
+  fi
+
+fi
+
+if test -z "$lt_cv_prog_cc_pic"; then
+  echo "$as_me:$LINENO: result: none" >&5
+echo "${ECHO_T}none" >&6
+else
+  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
+echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
+
+  # Check to make sure the pic_flag actually works.
+  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
+echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
+  if test "${lt_cv_prog_cc_pic_works+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+      save_CFLAGS="$CFLAGS"
+    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
+    cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* 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 { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+        case $host_os in
+      hpux9* | hpux10* | hpux11*)
+	# On HP-UX, both CC and GCC only warn that PIC is supported... then
+	# they create non-PIC objects.  So, if there were any warnings, we
+	# assume that PIC is not supported.
+	if test -s conftest.err; then
+	  lt_cv_prog_cc_pic_works=no
+	else
+	  lt_cv_prog_cc_pic_works=yes
+	fi
+	;;
+      *)
+	lt_cv_prog_cc_pic_works=yes
+	;;
+      esac
+
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+      lt_cv_prog_cc_pic_works=no
+
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+    CFLAGS="$save_CFLAGS"
+
+fi
+
+
+  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
+    lt_cv_prog_cc_pic=
+    lt_cv_prog_cc_can_build_shared=no
+  else
+    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
+  fi
+
+  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
+echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
+fi
+
+# Check for any special shared library compilation flags.
+if test -n "$lt_cv_prog_cc_shlib"; then
+  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
+echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
+  if echo "$old_CC $old_CFLAGS " | egrep -e "[ 	]$lt_cv_prog_cc_shlib[ 	]" >/dev/null; then :
+  else
+   { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
+echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
+    lt_cv_prog_cc_can_build_shared=no
+  fi
+fi
+
+echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
+echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
+if test "${lt_cv_prog_cc_static_works+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+    lt_cv_prog_cc_static_works=no
+  save_LDFLAGS="$LDFLAGS"
+  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* 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 conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  lt_cv_prog_cc_static_works=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+  LDFLAGS="$save_LDFLAGS"
+
+fi
+
+
+# Belt *and* braces to stop my trousers falling down:
+test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
+echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
+echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
+
+pic_flag="$lt_cv_prog_cc_pic"
+special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
+wl="$lt_cv_prog_cc_wl"
+link_static_flag="$lt_cv_prog_cc_static"
+no_builtin_flag="$lt_cv_prog_cc_no_builtin"
+can_build_shared="$lt_cv_prog_cc_can_build_shared"
+
+
+# Check to see if options -o and -c are simultaneously supported by compiler
+echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
+echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
+if test "${lt_cv_compiler_c_o+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+
+$rm -r conftest 2>/dev/null
+mkdir conftest
+cd conftest
+echo "int some_variable = 0;" > conftest.$ac_ext
+mkdir out
+# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
+# that will create temporary files in the current directory regardless of
+# the output directory.  Thus, making CWD read-only will cause this test
+# to fail, enabling locking or at least warning the user not to do parallel
+# builds.
+chmod -w .
+save_CFLAGS="$CFLAGS"
+CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
+compiler_c_o=no
+if { (eval echo configure:5173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
+  # The compiler can only warn and ignore the option if not recognized
+  # So say no if there are warnings
+  if test -s out/conftest.err; then
+    lt_cv_compiler_c_o=no
+  else
+    lt_cv_compiler_c_o=yes
+  fi
+else
+  # Append any errors to the config.log.
+  cat out/conftest.err 1>&5
+  lt_cv_compiler_c_o=no
+fi
+CFLAGS="$save_CFLAGS"
+chmod u+w .
+$rm conftest* out/*
+rmdir out
+cd ..
+rmdir conftest
+$rm -r conftest 2>/dev/null
+
+fi
+
+compiler_c_o=$lt_cv_compiler_c_o
+echo "$as_me:$LINENO: result: $compiler_c_o" >&5
+echo "${ECHO_T}$compiler_c_o" >&6
+
+if test x"$compiler_c_o" = x"yes"; then
+  # Check to see if we can write to a .lo
+  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
+echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
+  if test "${lt_cv_compiler_o_lo+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+
+  lt_cv_compiler_o_lo=no
+  save_CFLAGS="$CFLAGS"
+  CFLAGS="$CFLAGS -c -o conftest.lo"
+  save_objext="$ac_objext"
+  ac_objext=lo
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+int
+main ()
+{
+int some_variable = 0;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+      # The compiler can only warn and ignore the option if not recognized
+    # So say no if there are warnings
+    if test -s conftest.err; then
+      lt_cv_compiler_o_lo=no
+    else
+      lt_cv_compiler_o_lo=yes
+    fi
+
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+  ac_objext="$save_objext"
+  CFLAGS="$save_CFLAGS"
+
+fi
+
+  compiler_o_lo=$lt_cv_compiler_o_lo
+  echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
+echo "${ECHO_T}$compiler_o_lo" >&6
+else
+  compiler_o_lo=no
+fi
+
+# Check to see if we can do hard links to lock some files if needed
+hard_links="nottested"
+if test "$compiler_c_o" = no && test "$need_locks" != no; then
+  # do not overwrite the value of need_locks provided by the user
+  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
+echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
+  hard_links=yes
+  $rm conftest*
+  ln conftest.a conftest.b 2>/dev/null && hard_links=no
+  touch conftest.a
+  ln conftest.a conftest.b 2>&5 || hard_links=no
+  ln conftest.a conftest.b 2>/dev/null && hard_links=no
+  echo "$as_me:$LINENO: result: $hard_links" >&5
+echo "${ECHO_T}$hard_links" >&6
+  if test "$hard_links" = no; then
+    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
+echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
+    need_locks=warn
+  fi
+else
+  need_locks=no
+fi
+
+if test "$GCC" = yes; then
+  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
+  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
+echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
+  echo "int some_variable = 0;" > conftest.$ac_ext
+  save_CFLAGS="$CFLAGS"
+  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
+  compiler_rtti_exceptions=no
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+int
+main ()
+{
+int some_variable = 0;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+      # The compiler can only warn and ignore the option if not recognized
+    # So say no if there are warnings
+    if test -s conftest.err; then
+      compiler_rtti_exceptions=no
+    else
+      compiler_rtti_exceptions=yes
+    fi
+
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+  CFLAGS="$save_CFLAGS"
+  echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
+echo "${ECHO_T}$compiler_rtti_exceptions" >&6
+
+  if test "$compiler_rtti_exceptions" = "yes"; then
+    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
+  else
+    no_builtin_flag=' -fno-builtin'
+  fi
+fi
+
+# See if the linker supports building shared libraries.
+echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
+echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
+
+allow_undefined_flag=
+no_undefined_flag=
+need_lib_prefix=unknown
+need_version=unknown
+# when you set need_version to no, make sure it does not cause -set_version
+# flags to be left without arguments
+archive_cmds=
+archive_expsym_cmds=
+old_archive_from_new_cmds=
+old_archive_from_expsyms_cmds=
+export_dynamic_flag_spec=
+whole_archive_flag_spec=
+thread_safe_flag_spec=
+hardcode_into_libs=no
+hardcode_libdir_flag_spec=
+hardcode_libdir_separator=
+hardcode_direct=no
+hardcode_minus_L=no
+hardcode_shlibpath_var=unsupported
+runpath_var=
+link_all_deplibs=unknown
+always_export_symbols=no
+export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
+# include_expsyms should be a list of space-separated symbols to be *always*
+# included in the symbol list
+include_expsyms=
+# exclude_expsyms can be an egrep regular expression of symbols to exclude
+# it will be wrapped by ` (' and `)$', so one must not match beginning or
+# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
+# as well as any symbol that contains `d'.
+exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
+# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
+# platforms (ab)use it in PIC code, but their linkers get confused if
+# the symbol is explicitly referenced.  Since portable code cannot
+# rely on this symbol name, it's probably fine to never include it in
+# preloaded symbol tables.
+extract_expsyms_cmds=
+
+case $host_os in
+cygwin* | mingw* | pw32*)
+  # FIXME: the MSVC++ port hasn't been tested in a loooong time
+  # When not using gcc, we currently assume that we are using
+  # Microsoft Visual C++.
+  if test "$GCC" != yes; then
+    with_gnu_ld=no
+  fi
+  ;;
+openbsd*)
+  with_gnu_ld=no
+  ;;
+esac
+
+ld_shlibs=yes
+if test "$with_gnu_ld" = yes; then
+  # If archive_cmds runs LD, not CC, wlarc should be empty
+  wlarc='${wl}'
+
+  # See if GNU ld supports shared libraries.
+  case $host_os in
+  aix3* | aix4* | aix5*)
+    # On AIX, the GNU linker is very broken
+    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
+    ld_shlibs=no
+    cat <<EOF 1>&2
+
+*** Warning: the GNU linker, at least up to release 2.9.1, is reported
+*** to be unable to reliably create shared libraries on AIX.
+*** Therefore, libtool is disabling shared libraries support.  If you
+*** really care for shared libraries, you may want to modify your PATH
+*** so that a non-GNU linker is found, and then restart.
+
+EOF
+    ;;
+
+  amigaos*)
+    archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
+    hardcode_libdir_flag_spec='-L$libdir'
+    hardcode_minus_L=yes
+
+    # Samuel A. Falvo II <kc5tja at dolphin.openprojects.net> reports
+    # that the semantics of dynamic libraries on AmigaOS, at least up
+    # to version 4, is to share data among multiple programs linked
+    # with the same dynamic library.  Since this doesn't match the
+    # behavior of shared libraries on other platforms, we can use
+    # them.
+    ld_shlibs=no
+    ;;
+
+  beos*)
+    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
+      allow_undefined_flag=unsupported
+      # Joseph Beckenbach <jrb3 at best.com> says some releases of gcc
+      # support --undefined.  This deserves some investigation.  FIXME
+      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+    else
+      ld_shlibs=no
+    fi
+    ;;
+
+  cygwin* | mingw* | pw32*)
+    # hardcode_libdir_flag_spec is actually meaningless, as there is
+    # no search path for DLLs.
+    hardcode_libdir_flag_spec='-L$libdir'
+    allow_undefined_flag=unsupported
+    always_export_symbols=yes
+
+    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
+      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
+      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
+      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
+      else $CC -o impgen impgen.c ; fi)~
+      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
+
+    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
+
+    # cygwin and mingw dlls have different entry points and sets of symbols
+    # to exclude.
+    # FIXME: what about values for MSVC?
+    dll_entry=__cygwin_dll_entry at 12
+    dll_exclude_symbols=DllMain at 12,_cygwin_dll_entry at 12,_cygwin_noncygwin_dll_entry at 12~
+    case $host_os in
+    mingw*)
+      # mingw values
+      dll_entry=_DllMainCRTStartup at 12
+      dll_exclude_symbols=DllMain at 12,DllMainCRTStartup at 12,DllEntryPoint at 12~
+      ;;
+    esac
+
+    # mingw and cygwin differ, and it's simplest to just exclude the union
+    # of the two symbol sets.
+    dll_exclude_symbols=DllMain at 12,_cygwin_dll_entry at 12,_cygwin_noncygwin_dll_entry at 12,DllMainCRTStartup at 12,DllEntryPoint at 12
+
+    # recent cygwin and mingw systems supply a stub DllMain which the user
+    # can override, but on older systems we have to supply one (in ltdll.c)
+    if test "x$lt_cv_need_dllmain" = "xyes"; then
+      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
+      ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
+	test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
+    else
+      ltdll_obj=
+      ltdll_cmds=
+    fi
+
+    # Extract the symbol export list from an `--export-all' def file,
+    # then regenerate the def file from the symbol export list, so that
+    # the compiled dll only exports the symbol export list.
+    # Be careful not to strip the DATA tag left be newer dlltools.
+    export_symbols_cmds="$ltdll_cmds"'
+      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
+      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
+
+    # If the export-symbols file already is a .def file (1st line
+    # is EXPORTS), use it as is.
+    # If DATA tags from a recent dlltool are present, honour them!
+    archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
+	cp $export_symbols $output_objdir/$soname-def;
+      else
+	echo EXPORTS > $output_objdir/$soname-def;
+	_lt_hint=1;
+	cat $export_symbols | while read symbol; do
+	 set dummy \$symbol;
+	 case \$# in
+	   2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
+	   4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
+	   *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
+	 esac;
+	 _lt_hint=`expr 1 + \$_lt_hint`;
+	done;
+      fi~
+      '"$ltdll_cmds"'
+      $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
+      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
+      $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
+      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
+      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
+    ;;
+
+  netbsd*)
+    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
+      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
+      wlarc=
+    else
+      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+    fi
+    ;;
+
+  solaris* | sysv5*)
+    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
+      ld_shlibs=no
+      cat <<EOF 1>&2
+
+*** Warning: The releases 2.8.* of the GNU linker cannot reliably
+*** create shared libraries on Solaris systems.  Therefore, libtool
+*** is disabling shared libraries support.  We urge you to upgrade GNU
+*** binutils to release 2.9.1 or newer.  Another option is to modify
+*** your PATH or compiler configuration so that the native linker is
+*** used, and then restart.
+
+EOF
+    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
+      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+    else
+      ld_shlibs=no
+    fi
+    ;;
+
+  sunos4*)
+    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+    wlarc=
+    hardcode_direct=yes
+    hardcode_shlibpath_var=no
+    ;;
+
+  *)
+    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
+      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+    else
+      ld_shlibs=no
+    fi
+    ;;
+  esac
+
+  if test "$ld_shlibs" = yes; then
+    runpath_var=LD_RUN_PATH
+    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
+    export_dynamic_flag_spec='${wl}--export-dynamic'
+    case $host_os in
+    cygwin* | mingw* | pw32*)
+      # dlltool doesn't understand --whole-archive et. al.
+      whole_archive_flag_spec=
+      ;;
+    *)
+      # ancient GNU ld didn't support --whole-archive et. al.
+      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
+	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
+      else
+	whole_archive_flag_spec=
+      fi
+      ;;
+    esac
+  fi
+else
+  # PORTME fill in a description of your system's linker (not GNU ld)
+  case $host_os in
+  aix3*)
+    allow_undefined_flag=unsupported
+    always_export_symbols=yes
+    archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
+    # Note: this linker hardcodes the directories in LIBPATH if there
+    # are no directories specified by -L.
+    hardcode_minus_L=yes
+    if test "$GCC" = yes && test -z "$link_static_flag"; then
+      # Neither direct hardcoding nor static linking is supported with a
+      # broken collect2.
+      hardcode_direct=unsupported
+    fi
+    ;;
+
+  aix4* | aix5*)
+    if test "$host_cpu" = ia64; then
+      # On IA64, the linker does run time linking by default, so we don't
+      # have to do anything special.
+      aix_use_runtimelinking=no
+      exp_sym_flag='-Bexport'
+      no_entry_flag=""
+    else
+      aix_use_runtimelinking=no
+
+      # Test if we are trying to use run time linking or normal
+      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
+      # need to do runtime linking.
+      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
+	for ld_flag in $LDFLAGS; do
+	  case $ld_flag in
+	  *-brtl*)
+	    aix_use_runtimelinking=yes
+	    break
+	  ;;
+	  esac
+	done
+      esac
+
+      exp_sym_flag='-bexport'
+      no_entry_flag='-bnoentry'
+    fi
+
+    # When large executables or shared objects are built, AIX ld can
+    # have problems creating the table of contents.  If linking a library
+    # or program results in "error TOC overflow" add -mminimal-toc to
+    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
+    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
+
+    hardcode_direct=yes
+    archive_cmds=''
+    hardcode_libdir_separator=':'
+    if test "$GCC" = yes; then
+      case $host_os in aix4.[012]|aix4.[012].*)
+	collect2name=`${CC} -print-prog-name=collect2`
+	if test -f "$collect2name" && \
+	  strings "$collect2name" | grep resolve_lib_name >/dev/null
+	then
+	  # We have reworked collect2
+	  hardcode_direct=yes
+	else
+	  # We have old collect2
+	  hardcode_direct=unsupported
+	  # It fails to find uninstalled libraries when the uninstalled
+	  # path is not listed in the libpath.  Setting hardcode_minus_L
+	  # to unsupported forces relinking
+	  hardcode_minus_L=yes
+	  hardcode_libdir_flag_spec='-L$libdir'
+	  hardcode_libdir_separator=
+	fi
+      esac
+
+      shared_flag='-shared'
+    else
+      # not using gcc
+      if test "$host_cpu" = ia64; then
+	shared_flag='${wl}-G'
+      else
+	if test "$aix_use_runtimelinking" = yes; then
+	  shared_flag='${wl}-G'
+	else
+	  shared_flag='${wl}-bM:SRE'
+	fi
+      fi
+    fi
+
+    # It seems that -bexpall can do strange things, so it is better to
+    # generate a list of symbols to export.
+    always_export_symbols=yes
+    if test "$aix_use_runtimelinking" = yes; then
+      # Warning - without using the other runtime loading flags (-brtl),
+      # -berok will link without error, but may produce a broken library.
+      allow_undefined_flag='-berok'
+      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
+      archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
+    else
+      if test "$host_cpu" = ia64; then
+	hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
+	allow_undefined_flag="-z nodefs"
+	archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
+      else
+	hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
+	# Warning - without using the other run time loading flags,
+	# -berok will link without error, but may produce a broken library.
+	allow_undefined_flag='${wl}-berok'
+	# This is a bit strange, but is similar to how AIX traditionally builds
+	# it's shared libraries.
+	archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
+      fi
+    fi
+    ;;
+
+  amigaos*)
+    archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
+    hardcode_libdir_flag_spec='-L$libdir'
+    hardcode_minus_L=yes
+    # see comment about different semantics on the GNU ld section
+    ld_shlibs=no
+    ;;
+
+  cygwin* | mingw* | pw32*)
+    # When not using gcc, we currently assume that we are using
+    # Microsoft Visual C++.
+    # hardcode_libdir_flag_spec is actually meaningless, as there is
+    # no search path for DLLs.
+    hardcode_libdir_flag_spec=' '
+    allow_undefined_flag=unsupported
+    # Tell ltmain to make .lib files, not .a files.
+    libext=lib
+    # FIXME: Setting linknames here is a bad hack.
+    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
+    # The linker will automatically build a .lib file if we build a DLL.
+    old_archive_from_new_cmds='true'
+    # FIXME: Should let the user specify the lib program.
+    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
+    fix_srcfile_path='`cygpath -w "$srcfile"`'
+    ;;
+
+  darwin* | rhapsody*)
+    case "$host_os" in
+    rhapsody* | darwin1.[012])
+      allow_undefined_flag='-undefined suppress'
+      ;;
+    *) # Darwin 1.3 on
+      allow_undefined_flag='-flat_namespace -undefined suppress'
+      ;;
+    esac
+    # FIXME: Relying on posixy $() will cause problems for
+    #        cross-compilation, but unfortunately the echo tests do not
+    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
+    #	     `"' quotes if we put them in here... so don't!
+    archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
+    # We need to add '_' to the symbols in $export_symbols first
+    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
+    hardcode_direct=yes
+    hardcode_shlibpath_var=no
+    whole_archive_flag_spec='-all_load $convenience'
+    ;;
+
+  freebsd1*)
+    ld_shlibs=no
+    ;;
+
+  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
+  # support.  Future versions do this automatically, but an explicit c++rt0.o
+  # does not break anything, and helps significantly (at the cost of a little
+  # extra space).
+  freebsd2.2*)
+    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
+    hardcode_libdir_flag_spec='-R$libdir'
+    hardcode_direct=yes
+    hardcode_shlibpath_var=no
+    ;;
+
+  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
+  freebsd2*)
+    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+    hardcode_direct=yes
+    hardcode_minus_L=yes
+    hardcode_shlibpath_var=no
+    ;;
+
+  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
+  freebsd*)
+    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
+    hardcode_libdir_flag_spec='-R$libdir'
+    hardcode_direct=yes
+    hardcode_shlibpath_var=no
+    ;;
+
+  hpux9* | hpux10* | hpux11*)
+    case $host_os in
+    hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
+    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
+    esac
+    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
+    hardcode_libdir_separator=:
+    hardcode_direct=yes
+    hardcode_minus_L=yes # Not in the search PATH, but as the default
+			 # location of the library.
+    export_dynamic_flag_spec='${wl}-E'
+    ;;
+
+  irix5* | irix6* | nonstopux*)
+    if test "$GCC" = yes; then
+      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+    else
+      archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+      hardcode_libdir_flag_spec='-rpath $libdir'
+    fi
+    hardcode_libdir_separator=:
+    link_all_deplibs=yes
+    ;;
+
+  netbsd*)
+    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
+      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
+    else
+      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
+    fi
+    hardcode_libdir_flag_spec='-R$libdir'
+    hardcode_direct=yes
+    hardcode_shlibpath_var=no
+    ;;
+
+  newsos6)
+    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+    hardcode_direct=yes
+    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+    hardcode_libdir_separator=:
+    hardcode_shlibpath_var=no
+    ;;
+
+  openbsd*)
+    hardcode_direct=yes
+    hardcode_shlibpath_var=no
+    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
+      export_dynamic_flag_spec='${wl}-E'
+    else
+      case "$host_os" in
+      openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
+	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+	hardcode_libdir_flag_spec='-R$libdir'
+        ;;
+      *)
+        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
+        ;;
+      esac
+    fi
+    ;;
+
+  os2*)
+    hardcode_libdir_flag_spec='-L$libdir'
+    hardcode_minus_L=yes
+    allow_undefined_flag=unsupported
+    archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
+    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
+    ;;
+
+  osf3*)
+    if test "$GCC" = yes; then
+      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
+      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+    else
+      allow_undefined_flag=' -expect_unresolved \*'
+      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+    fi
+    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+    hardcode_libdir_separator=:
+    ;;
+
+  osf4* | osf5*)	# as osf3* with the addition of -msym flag
+    if test "$GCC" = yes; then
+      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
+      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+    else
+      allow_undefined_flag=' -expect_unresolved \*'
+      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
+      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
+      $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
+
+      #Both c and cxx compiler support -rpath directly
+      hardcode_libdir_flag_spec='-rpath $libdir'
+    fi
+    hardcode_libdir_separator=:
+    ;;
+
+  sco3.2v5*)
+    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+    hardcode_shlibpath_var=no
+    runpath_var=LD_RUN_PATH
+    hardcode_runpath_var=yes
+    export_dynamic_flag_spec='${wl}-Bexport'
+    ;;
+
+  solaris*)
+    # gcc --version < 3.0 without binutils cannot create self contained
+    # shared libraries reliably, requiring libgcc.a to resolve some of
+    # the object symbols generated in some cases.  Libraries that use
+    # assert need libgcc.a to resolve __eprintf, for example.  Linking
+    # a copy of libgcc.a into every shared library to guarantee resolving
+    # such symbols causes other problems:  According to Tim Van Holder
+    # <tim.van.holder at pandora.be>, C++ libraries end up with a separate
+    # (to the application) exception stack for one thing.
+    no_undefined_flag=' -z defs'
+    if test "$GCC" = yes; then
+      case `$CC --version 2>/dev/null` in
+      [12].*)
+	cat <<EOF 1>&2
+
+*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
+*** create self contained shared libraries on Solaris systems, without
+*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
+*** -no-undefined support, which will at least allow you to build shared
+*** libraries.  However, you may find that when you link such libraries
+*** into an application without using GCC, you have to manually add
+*** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
+*** upgrade to a newer version of GCC.  Another option is to rebuild your
+*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
+
+EOF
+        no_undefined_flag=
+	;;
+      esac
+    fi
+    # $CC -shared without GNU ld will not create a library from C++
+    # object files and a static libstdc++, better avoid it by now
+    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
+    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
+		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
+    hardcode_libdir_flag_spec='-R$libdir'
+    hardcode_shlibpath_var=no
+    case $host_os in
+    solaris2.[0-5] | solaris2.[0-5].*) ;;
+    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
+      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
+    esac
+    link_all_deplibs=yes
+    ;;
+
+  sunos4*)
+    if test "x$host_vendor" = xsequent; then
+      # Use $CC to link under sequent, because it throws in some extra .o
+      # files that make .init and .fini sections work.
+      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
+    else
+      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
+    fi
+    hardcode_libdir_flag_spec='-L$libdir'
+    hardcode_direct=yes
+    hardcode_minus_L=yes
+    hardcode_shlibpath_var=no
+    ;;
+
+  sysv4)
+    case $host_vendor in
+      sni)
+        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+        hardcode_direct=yes # is this really true???
+        ;;
+      siemens)
+        ## LD is ld it makes a PLAMLIB
+        ## CC just makes a GrossModule.
+        archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
+        reload_cmds='$CC -r -o $output$reload_objs'
+        hardcode_direct=no
+        ;;
+      motorola)
+        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+        hardcode_direct=no #Motorola manual says yes, but my tests say they lie
+        ;;
+    esac
+    runpath_var='LD_RUN_PATH'
+    hardcode_shlibpath_var=no
+    ;;
+
+  sysv4.3*)
+    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+    hardcode_shlibpath_var=no
+    export_dynamic_flag_spec='-Bexport'
+    ;;
+
+  sysv5*)
+    no_undefined_flag=' -z text'
+    # $CC -shared without GNU ld will not create a library from C++
+    # object files and a static libstdc++, better avoid it by now
+    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
+    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
+		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
+    hardcode_libdir_flag_spec=
+    hardcode_shlibpath_var=no
+    runpath_var='LD_RUN_PATH'
+    ;;
+
+  uts4*)
+    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+    hardcode_libdir_flag_spec='-L$libdir'
+    hardcode_shlibpath_var=no
+    ;;
+
+  dgux*)
+    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+    hardcode_libdir_flag_spec='-L$libdir'
+    hardcode_shlibpath_var=no
+    ;;
+
+  sysv4*MP*)
+    if test -d /usr/nec; then
+      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+      hardcode_shlibpath_var=no
+      runpath_var=LD_RUN_PATH
+      hardcode_runpath_var=yes
+      ld_shlibs=yes
+    fi
+    ;;
+
+  sysv4.2uw2*)
+    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
+    hardcode_direct=yes
+    hardcode_minus_L=no
+    hardcode_shlibpath_var=no
+    hardcode_runpath_var=yes
+    runpath_var=LD_RUN_PATH
+    ;;
+
+  sysv5uw7* | unixware7*)
+    no_undefined_flag='${wl}-z ${wl}text'
+    if test "$GCC" = yes; then
+      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+    else
+      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+    fi
+    runpath_var='LD_RUN_PATH'
+    hardcode_shlibpath_var=no
+    ;;
+
+  *)
+    ld_shlibs=no
+    ;;
+  esac
+fi
+echo "$as_me:$LINENO: result: $ld_shlibs" >&5
+echo "${ECHO_T}$ld_shlibs" >&6
+test "$ld_shlibs" = no && can_build_shared=no
+
+# Check hardcoding attributes.
+echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
+echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
+hardcode_action=
+if test -n "$hardcode_libdir_flag_spec" || \
+   test -n "$runpath_var"; then
+
+  # We can hardcode non-existant directories.
+  if test "$hardcode_direct" != no &&
+     # If the only mechanism to avoid hardcoding is shlibpath_var, we
+     # have to relink, otherwise we might link with an installed library
+     # when we should be linking with a yet-to-be-installed one
+     ## test "$hardcode_shlibpath_var" != no &&
+     test "$hardcode_minus_L" != no; then
+    # Linking always hardcodes the temporary library directory.
+    hardcode_action=relink
+  else
+    # We can link without hardcoding, and we can hardcode nonexisting dirs.
+    hardcode_action=immediate
+  fi
+else
+  # We cannot hardcode anything, or else we can only hardcode existing
+  # directories.
+  hardcode_action=unsupported
+fi
+echo "$as_me:$LINENO: result: $hardcode_action" >&5
+echo "${ECHO_T}$hardcode_action" >&6
+
+striplib=
+old_striplib=
+echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
+echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
+if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
+  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
+  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
+  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
+fi
+
+reload_cmds='$LD$reload_flag -o $output$reload_objs'
+test -z "$deplibs_check_method" && deplibs_check_method=unknown
+
+# PORTME Fill in your ld.so characteristics
+echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
+echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
+library_names_spec=
+libname_spec='lib$name'
+soname_spec=
+postinstall_cmds=
+postuninstall_cmds=
+finish_cmds=
+finish_eval=
+shlibpath_var=
+shlibpath_overrides_runpath=unknown
+version_type=none
+dynamic_linker="$host_os ld.so"
+sys_lib_dlsearch_path_spec="/lib /usr/lib"
+sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
+
+case $host_os in
+aix3*)
+  version_type=linux
+  library_names_spec='${libname}${release}.so$versuffix $libname.a'
+  shlibpath_var=LIBPATH
+
+  # AIX has no versioning support, so we append a major version to the name.
+  soname_spec='${libname}${release}.so$major'
+  ;;
+
+aix4* | aix5*)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  hardcode_into_libs=yes
+  if test "$host_cpu" = ia64; then
+    # AIX 5 supports IA64
+    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
+    shlibpath_var=LD_LIBRARY_PATH
+  else
+    # With GCC up to 2.95.x, collect2 would create an import file
+    # for dependence libraries.  The import file would start with
+    # the line `#! .'.  This would cause the generated library to
+    # depend on `.', always an invalid library.  This was fixed in
+    # development snapshots of GCC prior to 3.0.
+    case $host_os in
+      aix4 | aix4.[01] | aix4.[01].*)
+	if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
+	     echo ' yes '
+	     echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
+	  :
+	else
+	  can_build_shared=no
+	fi
+	;;
+    esac
+    # AIX (on Power*) has no versioning support, so currently we can
+    # not hardcode correct soname into executable. Probably we can
+    # add versioning support to collect2, so additional links can
+    # be useful in future.
+    if test "$aix_use_runtimelinking" = yes; then
+      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
+      # instead of lib<name>.a to let people know that these are not
+      # typical AIX shared libraries.
+      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+    else
+      # We preserve .a as extension for shared libraries through AIX4.2
+      # and later when we are not doing run time linking.
+      library_names_spec='${libname}${release}.a $libname.a'
+      soname_spec='${libname}${release}.so$major'
+    fi
+    shlibpath_var=LIBPATH
+  fi
+  hardcode_into_libs=yes
+  ;;
+
+amigaos*)
+  library_names_spec='$libname.ixlibrary $libname.a'
+  # Create ${libname}_ixlibrary.a entries in /sys/libs.
+  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
+  ;;
+
+beos*)
+  library_names_spec='${libname}.so'
+  dynamic_linker="$host_os ld.so"
+  shlibpath_var=LIBRARY_PATH
+  ;;
+
+bsdi4*)
+  version_type=linux
+  need_version=no
+  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+  soname_spec='${libname}${release}.so$major'
+  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
+  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
+  export_dynamic_flag_spec=-rdynamic
+  # the default ld.so.conf also contains /usr/contrib/lib and
+  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
+  # libtool to hard-code these into programs
+  ;;
+
+cygwin* | mingw* | pw32*)
+  version_type=windows
+  need_version=no
+  need_lib_prefix=no
+  case $GCC,$host_os in
+  yes,cygwin*)
+    library_names_spec='$libname.dll.a'
+    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
+    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
+      dldir=$destdir/`dirname \$dlpath`~
+      test -d \$dldir || mkdir -p \$dldir~
+      $install_prog .libs/$dlname \$dldir/$dlname'
+    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
+      dlpath=$dir/\$dldll~
+       $rm \$dlpath'
+    ;;
+  yes,mingw*)
+    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
+    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
+    ;;
+  yes,pw32*)
+    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
+    ;;
+  *)
+    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
+    ;;
+  esac
+  dynamic_linker='Win32 ld.exe'
+  # FIXME: first we should search . and the directory the executable is in
+  shlibpath_var=PATH
+  ;;
+
+darwin* | rhapsody*)
+  dynamic_linker="$host_os dyld"
+  version_type=darwin
+  need_lib_prefix=no
+  need_version=no
+  # FIXME: Relying on posixy $() will cause problems for
+  #        cross-compilation, but unfortunately the echo tests do not
+  #        yet detect zsh echo's removal of \ escapes.
+  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
+  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
+  shlibpath_overrides_runpath=yes
+  shlibpath_var=DYLD_LIBRARY_PATH
+  ;;
+
+freebsd1*)
+  dynamic_linker=no
+  ;;
+
+freebsd*)
+  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
+  version_type=freebsd-$objformat
+  case $version_type in
+    freebsd-elf*)
+      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
+      need_version=no
+      need_lib_prefix=no
+      ;;
+    freebsd-*)
+      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
+      need_version=yes
+      ;;
+  esac
+  shlibpath_var=LD_LIBRARY_PATH
+  case $host_os in
+  freebsd2*)
+    shlibpath_overrides_runpath=yes
+    ;;
+  *)
+    shlibpath_overrides_runpath=no
+    hardcode_into_libs=yes
+    ;;
+  esac
+  ;;
+
+gnu*)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
+  soname_spec='${libname}${release}.so$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  hardcode_into_libs=yes
+  ;;
+
+hpux9* | hpux10* | hpux11*)
+  # Give a soname corresponding to the major version so that dld.sl refuses to
+  # link against other versions.
+  dynamic_linker="$host_os dld.sl"
+  version_type=sunos
+  need_lib_prefix=no
+  need_version=no
+  shlibpath_var=SHLIB_PATH
+  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
+  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
+  soname_spec='${libname}${release}.sl$major'
+  # HP-UX runs *really* slowly unless shared libraries are mode 555.
+  postinstall_cmds='chmod 555 $lib'
+  ;;
+
+irix5* | irix6* | nonstopux*)
+  case $host_os in
+    nonstopux*) version_type=nonstopux ;;
+    *)          version_type=irix ;;
+  esac
+  need_lib_prefix=no
+  need_version=no
+  soname_spec='${libname}${release}.so$major'
+  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
+  case $host_os in
+  irix5* | nonstopux*)
+    libsuff= shlibsuff=
+    ;;
+  *)
+    case $LD in # libtool.m4 will add one of these switches to LD
+    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
+    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
+    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
+    *) libsuff= shlibsuff= libmagic=never-match;;
+    esac
+    ;;
+  esac
+  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
+  shlibpath_overrides_runpath=no
+  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
+  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
+  ;;
+
+# No shared lib support for Linux oldld, aout, or coff.
+linux*oldld* | linux*aout* | linux*coff*)
+  dynamic_linker=no
+  ;;
+
+# This must be Linux ELF.
+linux*)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+  soname_spec='${libname}${release}.so$major'
+  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=no
+  # This implies no fast_install, which is unacceptable.
+  # Some rework will be needed to allow for fast_install
+  # before this can be enabled.
+  hardcode_into_libs=yes
+
+  case $host_cpu:$lt_cv_cc_64bit_output in
+  powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
+    sys_lib_dlsearch_path_spec="/lib64 /usr/lib64"
+    sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64"
+    ;;
+  esac
+
+  # We used to test for /lib/ld.so.1 and disable shared libraries on
+  # powerpc, because MkLinux only supported shared libraries with the
+  # GNU dynamic linker.  Since this was broken with cross compilers,
+  # most powerpc-linux boxes support dynamic linking these days and
+  # people can always --disable-shared, the test was removed, and we
+  # assume the GNU/Linux dynamic linker is in use.
+  dynamic_linker='GNU/Linux ld.so'
+  ;;
+
+netbsd*)
+  version_type=sunos
+  need_lib_prefix=no
+  need_version=no
+  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
+    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
+    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
+    dynamic_linker='NetBSD (a.out) ld.so'
+  else
+    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
+    soname_spec='${libname}${release}.so$major'
+    dynamic_linker='NetBSD ld.elf_so'
+  fi
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  hardcode_into_libs=yes
+  ;;
+
+newsos6)
+  version_type=linux
+  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  ;;
+
+openbsd*)
+  version_type=sunos
+  need_lib_prefix=no
+  need_version=no
+  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+    case "$host_os" in
+    openbsd2.[89] | openbsd2.[89].*)
+      shlibpath_overrides_runpath=no
+      ;;
+    *)
+      shlibpath_overrides_runpath=yes
+      ;;
+    esac
+  else
+    shlibpath_overrides_runpath=yes
+  fi
+  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
+  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  ;;
+
+os2*)
+  libname_spec='$name'
+  need_lib_prefix=no
+  library_names_spec='$libname.dll $libname.a'
+  dynamic_linker='OS/2 ld.exe'
+  shlibpath_var=LIBPATH
+  ;;
+
+osf3* | osf4* | osf5*)
+  version_type=osf
+  need_version=no
+  soname_spec='${libname}${release}.so$major'
+  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+  shlibpath_var=LD_LIBRARY_PATH
+  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
+  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
+  hardcode_into_libs=yes
+  ;;
+
+sco3.2v5*)
+  version_type=osf
+  soname_spec='${libname}${release}.so$major'
+  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+  shlibpath_var=LD_LIBRARY_PATH
+  ;;
+
+solaris*)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+  soname_spec='${libname}${release}.so$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  hardcode_into_libs=yes
+  # ldd complains unless libraries are executable
+  postinstall_cmds='chmod +x $lib'
+  ;;
+
+sunos4*)
+  version_type=sunos
+  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
+  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  if test "$with_gnu_ld" = yes; then
+    need_lib_prefix=no
+  fi
+  need_version=yes
+  ;;
+
+sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+  version_type=linux
+  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+  soname_spec='${libname}${release}.so$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  case $host_vendor in
+    sni)
+      shlibpath_overrides_runpath=no
+      need_lib_prefix=no
+      export_dynamic_flag_spec='${wl}-Blargedynsym'
+      runpath_var=LD_RUN_PATH
+      ;;
+    siemens)
+      need_lib_prefix=no
+      ;;
+    motorola)
+      need_lib_prefix=no
+      need_version=no
+      shlibpath_overrides_runpath=no
+      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
+      ;;
+  esac
+  ;;
+
+uts4*)
+  version_type=linux
+  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+  soname_spec='${libname}${release}.so$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  ;;
+
+dgux*)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
+  soname_spec='${libname}${release}.so$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  ;;
+
+sysv4*MP*)
+  if test -d /usr/nec ;then
+    version_type=linux
+    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
+    soname_spec='$libname.so.$major'
+    shlibpath_var=LD_LIBRARY_PATH
+  fi
+  ;;
+
+*)
+  dynamic_linker=no
+  ;;
+esac
+echo "$as_me:$LINENO: result: $dynamic_linker" >&5
+echo "${ECHO_T}$dynamic_linker" >&6
+test "$dynamic_linker" = no && can_build_shared=no
+
+# Report the final consequences.
+echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
+echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
+echo "$as_me:$LINENO: result: $can_build_shared" >&5
+echo "${ECHO_T}$can_build_shared" >&6
+
+echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
+echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
+test "$can_build_shared" = "no" && enable_shared=no
+
+# On AIX, shared libraries and static libraries use the same namespace, and
+# are all built from PIC.
+case "$host_os" in
+aix3*)
+  test "$enable_shared" = yes && enable_static=no
+  if test -n "$RANLIB"; then
+    archive_cmds="$archive_cmds~\$RANLIB \$lib"
+    postinstall_cmds='$RANLIB $lib'
+  fi
+  ;;
+
+aix4*)
+  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
+    test "$enable_shared" = yes && enable_static=no
+  fi
+  ;;
+esac
+echo "$as_me:$LINENO: result: $enable_shared" >&5
+echo "${ECHO_T}$enable_shared" >&6
+
+echo "$as_me:$LINENO: checking whether to build static libraries" >&5
+echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
+# Make sure either enable_shared or enable_static is yes.
+test "$enable_shared" = yes || enable_static=yes
+echo "$as_me:$LINENO: result: $enable_static" >&5
+echo "${ECHO_T}$enable_static" >&6
+
+if test "$hardcode_action" = relink; then
+  # Fast installation is not supported
+  enable_fast_install=no
+elif test "$shlibpath_overrides_runpath" = yes ||
+     test "$enable_shared" = no; then
+  # Fast installation is not necessary
+  enable_fast_install=needless
+fi
+
+variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
+if test "$GCC" = yes; then
+  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
+fi
+
+if test "x$enable_dlopen" != xyes; then
+  enable_dlopen=unknown
+  enable_dlopen_self=unknown
+  enable_dlopen_self_static=unknown
+else
+  lt_cv_dlopen=no
+  lt_cv_dlopen_libs=
+
+  case $host_os in
+  beos*)
+    lt_cv_dlopen="load_add_on"
+    lt_cv_dlopen_libs=
+    lt_cv_dlopen_self=yes
+    ;;
+
+  cygwin* | mingw* | pw32*)
+    lt_cv_dlopen="LoadLibrary"
+    lt_cv_dlopen_libs=
+   ;;
+
+  *)
+    echo "$as_me:$LINENO: checking for shl_load" >&5
+echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
+if test "${ac_cv_func_shl_load+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+/* System header to define __stub macros and hopefully few prototypes,
+    which can conflict with char shl_load (); below.
+    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+    <limits.h> exists even on freestanding compilers.  */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char shl_load ();
+/* 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_shl_load) || defined (__stub___shl_load)
+choke me
+#else
+char (*f) () = shl_load;
+#endif
+#ifdef __cplusplus
+}
+#endif
+
+int
+main ()
+{
+return f != shl_load;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_func_shl_load=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_func_shl_load=no
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
+echo "${ECHO_T}$ac_cv_func_shl_load" >&6
+if test $ac_cv_func_shl_load = yes; then
+  lt_cv_dlopen="shl_load"
+else
+  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
+echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
+if test "${ac_cv_lib_dld_shl_load+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldld  $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char shl_load ();
+int
+main ()
+{
+shl_load ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_dld_shl_load=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_dld_shl_load=no
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
+echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
+if test $ac_cv_lib_dld_shl_load = yes; then
+  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
+else
+  echo "$as_me:$LINENO: checking for dlopen" >&5
+echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
+if test "${ac_cv_func_dlopen+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+/* System header to define __stub macros and hopefully few prototypes,
+    which can conflict with char dlopen (); below.
+    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+    <limits.h> exists even on freestanding compilers.  */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char dlopen ();
+/* 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_dlopen) || defined (__stub___dlopen)
+choke me
+#else
+char (*f) () = dlopen;
+#endif
+#ifdef __cplusplus
+}
+#endif
+
+int
+main ()
+{
+return f != dlopen;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_func_dlopen=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_func_dlopen=no
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
+echo "${ECHO_T}$ac_cv_func_dlopen" >&6
+if test $ac_cv_func_dlopen = yes; then
+  lt_cv_dlopen="dlopen"
+else
+  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
+echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
+if test "${ac_cv_lib_dl_dlopen+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldl  $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char dlopen ();
+int
+main ()
+{
+dlopen ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_dl_dlopen=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_dl_dlopen=no
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
+echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
+if test $ac_cv_lib_dl_dlopen = yes; then
+  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
+else
+  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
+echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
+if test "${ac_cv_lib_svld_dlopen+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS="-lsvld  $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char dlopen ();
+int
+main ()
+{
+dlopen ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_svld_dlopen=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_svld_dlopen=no
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
+echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
+if test $ac_cv_lib_svld_dlopen = yes; then
+  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
+else
+  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
+echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
+if test "${ac_cv_lib_dld_dld_link+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldld  $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char dld_link ();
+int
+main ()
+{
+dld_link ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_dld_dld_link=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_dld_dld_link=no
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
+echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
+if test $ac_cv_lib_dld_dld_link = yes; then
+  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
+fi
+
+
+fi
+
+
+fi
+
+
+fi
+
+
+fi
+
+
+fi
+
+    ;;
+  esac
+
+  if test "x$lt_cv_dlopen" != xno; then
+    enable_dlopen=yes
+  else
+    enable_dlopen=no
+  fi
+
+  case $lt_cv_dlopen in
+  dlopen)
+    save_CPPFLAGS="$CPPFLAGS"
+        test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
+
+    save_LDFLAGS="$LDFLAGS"
+    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
+
+    save_LIBS="$LIBS"
+    LIBS="$lt_cv_dlopen_libs $LIBS"
+
+    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
+echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
+if test "${lt_cv_dlopen_self+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  	  if test "$cross_compiling" = yes; then :
+  lt_cv_dlopen_self=cross
+else
+    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
+  lt_status=$lt_dlunknown
+  cat > conftest.$ac_ext <<EOF
+#line 7012 "configure"
+#include "confdefs.h"
+
+#if HAVE_DLFCN_H
+#include <dlfcn.h>
+#endif
+
+#include <stdio.h>
+
+#ifdef RTLD_GLOBAL
+#  define LT_DLGLOBAL		RTLD_GLOBAL
+#else
+#  ifdef DL_GLOBAL
+#    define LT_DLGLOBAL		DL_GLOBAL
+#  else
+#    define LT_DLGLOBAL		0
+#  endif
+#endif
+
+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
+   find out it does not work in some platform. */
+#ifndef LT_DLLAZY_OR_NOW
+#  ifdef RTLD_LAZY
+#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
+#  else
+#    ifdef DL_LAZY
+#      define LT_DLLAZY_OR_NOW		DL_LAZY
+#    else
+#      ifdef RTLD_NOW
+#        define LT_DLLAZY_OR_NOW	RTLD_NOW
+#      else
+#        ifdef DL_NOW
+#          define LT_DLLAZY_OR_NOW	DL_NOW
+#        else
+#          define LT_DLLAZY_OR_NOW	0
+#        endif
+#      endif
+#    endif
+#  endif
+#endif
+
+#ifdef __cplusplus
+extern "C" void exit (int);
+#endif
+
+void fnord() { int i=42;}
+int main ()
+{
+  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
+  int status = $lt_dlunknown;
+
+  if (self)
+    {
+      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
+      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
+      /* dlclose (self); */
+    }
+
+    exit (status);
+}
+EOF
+  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
+    (./conftest; exit; ) 2>/dev/null
+    lt_status=$?
+    case x$lt_status in
+      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
+      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
+      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
+    esac
+  else :
+    # compilation failed
+    lt_cv_dlopen_self=no
+  fi
+fi
+rm -fr conftest*
+
+
+fi
+echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
+echo "${ECHO_T}$lt_cv_dlopen_self" >&6
+
+    if test "x$lt_cv_dlopen_self" = xyes; then
+      LDFLAGS="$LDFLAGS $link_static_flag"
+      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
+echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
+if test "${lt_cv_dlopen_self_static+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  	  if test "$cross_compiling" = yes; then :
+  lt_cv_dlopen_self_static=cross
+else
+    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
+  lt_status=$lt_dlunknown
+  cat > conftest.$ac_ext <<EOF
+#line 7110 "configure"
+#include "confdefs.h"
+
+#if HAVE_DLFCN_H
+#include <dlfcn.h>
+#endif
+
+#include <stdio.h>
+
+#ifdef RTLD_GLOBAL
+#  define LT_DLGLOBAL		RTLD_GLOBAL
+#else
+#  ifdef DL_GLOBAL
+#    define LT_DLGLOBAL		DL_GLOBAL
+#  else
+#    define LT_DLGLOBAL		0
+#  endif
+#endif
+
+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
+   find out it does not work in some platform. */
+#ifndef LT_DLLAZY_OR_NOW
+#  ifdef RTLD_LAZY
+#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
+#  else
+#    ifdef DL_LAZY
+#      define LT_DLLAZY_OR_NOW		DL_LAZY
+#    else
+#      ifdef RTLD_NOW
+#        define LT_DLLAZY_OR_NOW	RTLD_NOW
+#      else
+#        ifdef DL_NOW
+#          define LT_DLLAZY_OR_NOW	DL_NOW
+#        else
+#          define LT_DLLAZY_OR_NOW	0
+#        endif
+#      endif
+#    endif
+#  endif
+#endif
+
+#ifdef __cplusplus
+extern "C" void exit (int);
+#endif
+
+void fnord() { int i=42;}
+int main ()
+{
+  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
+  int status = $lt_dlunknown;
+
+  if (self)
+    {
+      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
+      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
+      /* dlclose (self); */
+    }
+
+    exit (status);
+}
+EOF
+  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
+    (./conftest; exit; ) 2>/dev/null
+    lt_status=$?
+    case x$lt_status in
+      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
+      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
+      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
+    esac
+  else :
+    # compilation failed
+    lt_cv_dlopen_self_static=no
+  fi
+fi
+rm -fr conftest*
+
+
+fi
+echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
+echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
+    fi
+
+    CPPFLAGS="$save_CPPFLAGS"
+    LDFLAGS="$save_LDFLAGS"
+    LIBS="$save_LIBS"
+    ;;
+  esac
+
+  case $lt_cv_dlopen_self in
+  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
+  *) enable_dlopen_self=unknown ;;
+  esac
+
+  case $lt_cv_dlopen_self_static in
+  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
+  *) enable_dlopen_self_static=unknown ;;
+  esac
+fi
+
+
+if test "$enable_shared" = yes && test "$GCC" = yes; then
+  case $archive_cmds in
+  *'~'*)
+    # FIXME: we may have to deal with multi-command sequences.
+    ;;
+  '$CC '*)
+    # Test whether the compiler implicitly links with -lc since on some
+    # systems, -lgcc has to come before -lc. If gcc already passes -lc
+    # to ld, don't add -lc before -lgcc.
+    echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
+echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
+    if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  $rm conftest*
+    echo 'static int dummy;' > conftest.$ac_ext
+
+    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; then
+      soname=conftest
+      lib=conftest
+      libobjs=conftest.$ac_objext
+      deplibs=
+      wl=$lt_cv_prog_cc_wl
+      compiler_flags=-v
+      linker_flags=-v
+      verstring=
+      output_objdir=.
+      libname=conftest
+      save_allow_undefined_flag=$allow_undefined_flag
+      allow_undefined_flag=
+      if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
+  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }
+      then
+	lt_cv_archive_cmds_need_lc=no
+      else
+	lt_cv_archive_cmds_need_lc=yes
+      fi
+      allow_undefined_flag=$save_allow_undefined_flag
+    else
+      cat conftest.err 1>&5
+    fi
+fi
+
+    echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
+echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
+    ;;
+  esac
+fi
+need_lc=${lt_cv_archive_cmds_need_lc-yes}
+
+# The second clause should only fire when bootstrapping the
+# libtool distribution, otherwise you forgot to ship ltmain.sh
+# with your package, and you will get complaints that there are
+# no rules to generate ltmain.sh.
+if test -f "$ltmain"; then
+  :
+else
+  # If there is no Makefile yet, we rely on a make rule to execute
+  # `config.status --recheck' to rerun these tests and create the
+  # libtool script then.
+  test -f Makefile && make "$ltmain"
+fi
+
+if test -f "$ltmain"; then
+  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
+  $rm -f "${ofile}T"
+
+  echo creating $ofile
+
+  # Now quote all the things that may contain metacharacters while being
+  # careful not to overquote the AC_SUBSTed values.  We take copies of the
+  # variables and quote the copies for generation of the libtool script.
+  for var in echo old_CC old_CFLAGS SED \
+    AR AR_FLAGS CC LD LN_S NM SHELL \
+    reload_flag reload_cmds wl \
+    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
+    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
+    library_names_spec soname_spec \
+    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
+    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
+    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
+    old_striplib striplib file_magic_cmd export_symbols_cmds \
+    deplibs_check_method allow_undefined_flag no_undefined_flag \
+    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
+    global_symbol_to_c_name_address \
+    hardcode_libdir_flag_spec hardcode_libdir_separator  \
+    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
+    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
+
+    case $var in
+    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
+    old_postinstall_cmds | old_postuninstall_cmds | \
+    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
+    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
+    postinstall_cmds | postuninstall_cmds | \
+    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
+      # Double-quote double-evaled strings.
+      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
+      ;;
+    *)
+      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
+      ;;
+    esac
+  done
+
+  cat <<__EOF__ > "${ofile}T"
+#! $SHELL
+
+# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
+# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
+# NOTE: Changes made to this file will be lost: look at ltmain.sh.
+#
+# Copyright (C) 1996-2000 Free Software Foundation, Inc.
+# Originally by Gordon Matzigkeit <gord at gnu.ai.mit.edu>, 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., 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.
+
+# A sed that does not truncate output.
+SED=$lt_SED
+
+# Sed that helps us avoid accidentally triggering echo(1) options like -n.
+Xsed="${SED} -e s/^X//"
+
+# The HP-UX ksh and POSIX shell print the target directory to stdout
+# if CDPATH is set.
+if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
+
+# ### BEGIN LIBTOOL CONFIG
+
+# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
+
+# Shell to use when invoking shell scripts.
+SHELL=$lt_SHELL
+
+# Whether or not to build shared libraries.
+build_libtool_libs=$enable_shared
+
+# Whether or not to build static libraries.
+build_old_libs=$enable_static
+
+# Whether or not to add -lc for building shared libraries.
+build_libtool_need_lc=$need_lc
+
+# Whether or not to optimize for fast installation.
+fast_install=$enable_fast_install
+
+# The host system.
+host_alias=$host_alias
+host=$host
+
+# An echo program that does not interpret backslashes.
+echo=$lt_echo
+
+# The archiver.
+AR=$lt_AR
+AR_FLAGS=$lt_AR_FLAGS
+
+# The default C compiler.
+CC=$lt_CC
+
+# Is the compiler the GNU C compiler?
+with_gcc=$GCC
+
+# The linker used to build libraries.
+LD=$lt_LD
+
+# Whether we need hard or soft links.
+LN_S=$lt_LN_S
+
+# A BSD-compatible nm program.
+NM=$lt_NM
+
+# A symbol stripping program
+STRIP=$STRIP
+
+# Used to examine libraries when file_magic_cmd begins "file"
+MAGIC_CMD=$MAGIC_CMD
+
+# Used on cygwin: DLL creation program.
+DLLTOOL="$DLLTOOL"
+
+# Used on cygwin: object dumper.
+OBJDUMP="$OBJDUMP"
+
+# Used on cygwin: assembler.
+AS=$lt_AS
+
+# The name of the directory that contains temporary libtool files.
+objdir=$objdir
+
+# How to create reloadable object files.
+reload_flag=$lt_reload_flag
+reload_cmds=$lt_reload_cmds
+
+# How to pass a linker flag through the compiler.
+wl=$lt_wl
+
+# Object file suffix (normally "o").
+objext="$ac_objext"
+
+# Old archive suffix (normally "a").
+libext="$libext"
+
+# Executable file suffix (normally "").
+exeext="$exeext"
+
+# Additional compiler flags for building library objects.
+pic_flag=$lt_pic_flag
+pic_mode=$pic_mode
+
+# Does compiler simultaneously support -c and -o options?
+compiler_c_o=$lt_compiler_c_o
+
+# Can we write directly to a .lo ?
+compiler_o_lo=$lt_compiler_o_lo
+
+# Must we lock files when doing compilation ?
+need_locks=$lt_need_locks
+
+# Do we need the lib prefix for modules?
+need_lib_prefix=$need_lib_prefix
+
+# Do we need a version for libraries?
+need_version=$need_version
+
+# Whether dlopen is supported.
+dlopen_support=$enable_dlopen
+
+# Whether dlopen of programs is supported.
+dlopen_self=$enable_dlopen_self
+
+# Whether dlopen of statically linked programs is supported.
+dlopen_self_static=$enable_dlopen_self_static
+
+# Compiler flag to prevent dynamic linking.
+link_static_flag=$lt_link_static_flag
+
+# Compiler flag to turn off builtin functions.
+no_builtin_flag=$lt_no_builtin_flag
+
+# Compiler flag to allow reflexive dlopens.
+export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
+
+# Compiler flag to generate shared objects directly from archives.
+whole_archive_flag_spec=$lt_whole_archive_flag_spec
+
+# Compiler flag to generate thread-safe objects.
+thread_safe_flag_spec=$lt_thread_safe_flag_spec
+
+# Library versioning type.
+version_type=$version_type
+
+# Format of library name prefix.
+libname_spec=$lt_libname_spec
+
+# List of archive names.  First name is the real one, the rest are links.
+# The last name is the one that the linker finds with -lNAME.
+library_names_spec=$lt_library_names_spec
+
+# The coded name of the library, if different from the real name.
+soname_spec=$lt_soname_spec
+
+# Commands used to build and install an old-style archive.
+RANLIB=$lt_RANLIB
+old_archive_cmds=$lt_old_archive_cmds
+old_postinstall_cmds=$lt_old_postinstall_cmds
+old_postuninstall_cmds=$lt_old_postuninstall_cmds
+
+# Create an old-style archive from a shared archive.
+old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
+
+# Create a temporary old-style archive to link instead of a shared archive.
+old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
+
+# Commands used to build and install a shared archive.
+archive_cmds=$lt_archive_cmds
+archive_expsym_cmds=$lt_archive_expsym_cmds
+postinstall_cmds=$lt_postinstall_cmds
+postuninstall_cmds=$lt_postuninstall_cmds
+
+# Commands to strip libraries.
+old_striplib=$lt_old_striplib
+striplib=$lt_striplib
+
+# Method to check whether dependent libraries are shared objects.
+deplibs_check_method=$lt_deplibs_check_method
+
+# Command to use when deplibs_check_method == file_magic.
+file_magic_cmd=$lt_file_magic_cmd
+
+# Flag that allows shared libraries with undefined symbols to be built.
+allow_undefined_flag=$lt_allow_undefined_flag
+
+# Flag that forces no undefined symbols.
+no_undefined_flag=$lt_no_undefined_flag
+
+# Commands used to finish a libtool library installation in a directory.
+finish_cmds=$lt_finish_cmds
+
+# Same as above, but a single script fragment to be evaled but not shown.
+finish_eval=$lt_finish_eval
+
+# Take the output of nm and produce a listing of raw symbols and C names.
+global_symbol_pipe=$lt_global_symbol_pipe
+
+# Transform the output of nm in a proper C declaration
+global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
+
+# Transform the output of nm in a C name address pair
+global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
+
+# This is the shared library runtime path variable.
+runpath_var=$runpath_var
+
+# This is the shared library path variable.
+shlibpath_var=$shlibpath_var
+
+# Is shlibpath searched before the hard-coded library search path?
+shlibpath_overrides_runpath=$shlibpath_overrides_runpath
+
+# How to hardcode a shared library path into an executable.
+hardcode_action=$hardcode_action
+
+# Whether we should hardcode library paths into libraries.
+hardcode_into_libs=$hardcode_into_libs
+
+# Flag to hardcode \$libdir into a binary during linking.
+# This must work even if \$libdir does not exist.
+hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
+
+# Whether we need a single -rpath flag with a separated argument.
+hardcode_libdir_separator=$lt_hardcode_libdir_separator
+
+# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
+# resulting binary.
+hardcode_direct=$hardcode_direct
+
+# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
+# resulting binary.
+hardcode_minus_L=$hardcode_minus_L
+
+# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
+# the resulting binary.
+hardcode_shlibpath_var=$hardcode_shlibpath_var
+
+# Variables whose values should be saved in libtool wrapper scripts and
+# restored at relink time.
+variables_saved_for_relink="$variables_saved_for_relink"
+
+# Whether libtool must link a program against all its dependency libraries.
+link_all_deplibs=$link_all_deplibs
+
+# Compile-time system search path for libraries
+sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
+
+# Run-time system search path for libraries
+sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
+
+# Fix the shell variable \$srcfile for the compiler.
+fix_srcfile_path="$fix_srcfile_path"
+
+# Set to yes if exported symbols are required.
+always_export_symbols=$always_export_symbols
+
+# The commands to list exported symbols.
+export_symbols_cmds=$lt_export_symbols_cmds
+
+# The commands to extract the exported symbol list from a shared archive.
+extract_expsyms_cmds=$lt_extract_expsyms_cmds
+
+# Symbols that should not be listed in the preloaded symbols.
+exclude_expsyms=$lt_exclude_expsyms
+
+# Symbols that must always be exported.
+include_expsyms=$lt_include_expsyms
+
+# ### END LIBTOOL CONFIG
+
+__EOF__
+
+  case $host_os in
+  aix3*)
+    cat <<\EOF >> "${ofile}T"
+
+# AIX sometimes has problems with the GCC collect2 program.  For some
+# reason, if we set the COLLECT_NAMES environment variable, the problems
+# vanish in a puff of smoke.
+if test "X${COLLECT_NAMES+set}" != Xset; then
+  COLLECT_NAMES=
+  export COLLECT_NAMES
+fi
+EOF
+    ;;
+  esac
+
+  case $host_os in
+  cygwin* | mingw* | pw32* | os2*)
+    cat <<'EOF' >> "${ofile}T"
+      # This is a source program that is used to create dlls on Windows
+      # Don't remove nor modify the starting and closing comments
+# /* ltdll.c starts here */
+# #define WIN32_LEAN_AND_MEAN
+# #include <windows.h>
+# #undef WIN32_LEAN_AND_MEAN
+# #include <stdio.h>
+#
+# #ifndef __CYGWIN__
+# #  ifdef __CYGWIN32__
+# #    define __CYGWIN__ __CYGWIN32__
+# #  endif
+# #endif
+#
+# #ifdef __cplusplus
+# extern "C" {
+# #endif
+# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
+# #ifdef __cplusplus
+# }
+# #endif
+#
+# #ifdef __CYGWIN__
+# #include <cygwin/cygwin_dll.h>
+# DECLARE_CYGWIN_DLL( DllMain );
+# #endif
+# HINSTANCE __hDllInstance_base;
+#
+# BOOL APIENTRY
+# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
+# {
+#   __hDllInstance_base = hInst;
+#   return TRUE;
+# }
+# /* ltdll.c ends here */
+	# This is a source program that is used to create import libraries
+	# on Windows for dlls which lack them. Don't remove nor modify the
+	# starting and closing comments
+# /* impgen.c starts here */
+# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
+#
+#  This file is part of GNU libtool.
+#
+#  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.
+#  */
+#
+# #include <stdio.h>		/* for printf() */
+# #include <unistd.h>		/* for open(), lseek(), read() */
+# #include <fcntl.h>		/* for O_RDONLY, O_BINARY */
+# #include <string.h>		/* for strdup() */
+#
+# /* O_BINARY isn't required (or even defined sometimes) under Unix */
+# #ifndef O_BINARY
+# #define O_BINARY 0
+# #endif
+#
+# static unsigned int
+# pe_get16 (fd, offset)
+#      int fd;
+#      int offset;
+# {
+#   unsigned char b[2];
+#   lseek (fd, offset, SEEK_SET);
+#   read (fd, b, 2);
+#   return b[0] + (b[1]<<8);
+# }
+#
+# static unsigned int
+# pe_get32 (fd, offset)
+#     int fd;
+#     int offset;
+# {
+#   unsigned char b[4];
+#   lseek (fd, offset, SEEK_SET);
+#   read (fd, b, 4);
+#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
+# }
+#
+# static unsigned int
+# pe_as32 (ptr)
+#      void *ptr;
+# {
+#   unsigned char *b = ptr;
+#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
+# }
+#
+# int
+# main (argc, argv)
+#     int argc;
+#     char *argv[];
+# {
+#     int dll;
+#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
+#     unsigned long export_rva, export_size, nsections, secptr, expptr;
+#     unsigned long name_rvas, nexp;
+#     unsigned char *expdata, *erva;
+#     char *filename, *dll_name;
+#
+#     filename = argv[1];
+#
+#     dll = open(filename, O_RDONLY|O_BINARY);
+#     if (dll < 1)
+# 	return 1;
+#
+#     dll_name = filename;
+#
+#     for (i=0; filename[i]; i++)
+# 	if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
+# 	    dll_name = filename + i +1;
+#
+#     pe_header_offset = pe_get32 (dll, 0x3c);
+#     opthdr_ofs = pe_header_offset + 4 + 20;
+#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
+#
+#     if (num_entries < 1) /* no exports */
+# 	return 1;
+#
+#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
+#     export_size = pe_get32 (dll, opthdr_ofs + 100);
+#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
+#     secptr = (pe_header_offset + 4 + 20 +
+# 	      pe_get16 (dll, pe_header_offset + 4 + 16));
+#
+#     expptr = 0;
+#     for (i = 0; i < nsections; i++)
+#     {
+# 	char sname[8];
+# 	unsigned long secptr1 = secptr + 40 * i;
+# 	unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
+# 	unsigned long vsize = pe_get32 (dll, secptr1 + 16);
+# 	unsigned long fptr = pe_get32 (dll, secptr1 + 20);
+# 	lseek(dll, secptr1, SEEK_SET);
+# 	read(dll, sname, 8);
+# 	if (vaddr <= export_rva && vaddr+vsize > export_rva)
+# 	{
+# 	    expptr = fptr + (export_rva - vaddr);
+# 	    if (export_rva + export_size > vaddr + vsize)
+# 		export_size = vsize - (export_rva - vaddr);
+# 	    break;
+# 	}
+#     }
+#
+#     expdata = (unsigned char*)malloc(export_size);
+#     lseek (dll, expptr, SEEK_SET);
+#     read (dll, expdata, export_size);
+#     erva = expdata - export_rva;
+#
+#     nexp = pe_as32 (expdata+24);
+#     name_rvas = pe_as32 (expdata+32);
+#
+#     printf ("EXPORTS\n");
+#     for (i = 0; i<nexp; i++)
+#     {
+# 	unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
+# 	printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
+#     }
+#
+#     return 0;
+# }
+# /* impgen.c ends here */
+
+EOF
+    ;;
+  esac
+
+  # We use sed instead of cat because bash on DJGPP gets confused if
+  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
+  # text mode, it properly converts lines to CR/LF.  This bash problem
+  # is reportedly fixed, but why not run on old versions too?
+  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
+
+  mv -f "${ofile}T" "$ofile" || \
+    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
+  chmod +x "$ofile"
+fi
+
+
+
+
+
+# This can be used to rebuild libtool when needed
+LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
+
+# Always use our own libtool.
+LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+
+# Prevent multiple expansion
+
+
+
+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 $as_executable_p "$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
+
+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 $as_executable_p "$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
+
+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
+
+  CC=$ac_ct_CC
+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 $as_executable_p "$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
+
+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 "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_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 $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_ac_ct_CC="cc"
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+done
+
+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
+
+  CC=$ac_ct_CC
+else
+  CC="$ac_cv_prog_CC"
+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 $as_executable_p "$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
+
+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
+  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 $as_executable_p "$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
+
+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
+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 $as_executable_p "$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
+
+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
+
+  CC=$ac_ct_CC
+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`
+{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
+  (eval $ac_compiler --version </dev/null >&5) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }
+{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
+  (eval $ac_compiler -v </dev/null >&5) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }
+{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
+  (eval $ac_compiler -V </dev/null >&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_c_compiler_gnu+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* 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 { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; 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 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
+CFLAGS="-g"
+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
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* 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 { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_prog_cc_g=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_prog_cc_g=no
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+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 ANSI C" >&5
+echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
+if test "${ac_cv_prog_cc_stdc+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_cv_prog_cc_stdc=no
+ac_save_CC=$CC
+cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <stdarg.h>
+#include <stdio.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+/* 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;
+}
+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
+# Don't try gcc -ansi; that turns off useful extensions and
+# breaks some systems' header files.
+# AIX			-qlanglvl=ansi
+# Ultrix and OSF/1	-std1
+# HP-UX 10.20 and later	-Ae
+# HP-UX older versions	-Aa -D_HPUX_SOURCE
+# SVR4			-Xc -D__EXTENSIONS__
+for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
+do
+  CC="$ac_save_CC $ac_arg"
+  rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_prog_cc_stdc=$ac_arg
+break
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.$ac_objext
+done
+rm -f conftest.$ac_ext conftest.$ac_objext
+CC=$ac_save_CC
+
+fi
+
+case "x$ac_cv_prog_cc_stdc" in
+  x|xno)
+    echo "$as_me:$LINENO: result: none needed" >&5
+echo "${ECHO_T}none needed" >&6 ;;
+  *)
+    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
+echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
+    CC="$CC $ac_cv_prog_cc_stdc" ;;
+esac
+
+# Some people use a C++ compiler to compile C.  Since we use `exit',
+# in C++ we need to declare it.  In case someone uses the same compiler
+# for both compiling C and C++ we need to have the C++ compiler decide
+# the declaration of exit, since it's the most demanding environment.
+cat >conftest.$ac_ext <<_ACEOF
+#ifndef __cplusplus
+  choke me
+#endif
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  for ac_declaration in \
+   ''\
+   '#include <stdlib.h>' \
+   'extern "C" void std::exit (int) throw (); using std::exit;' \
+   'extern "C" void std::exit (int); using std::exit;' \
+   'extern "C" void exit (int) throw ();' \
+   'extern "C" void exit (int);' \
+   'void exit (int);'
+do
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <stdlib.h>
+$ac_declaration
+int
+main ()
+{
+exit (42);
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  :
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+continue
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+$ac_declaration
+int
+main ()
+{
+exit (42);
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  break
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+done
+rm -f conftest*
+if test -n "$ac_declaration"; then
+  echo '#ifdef __cplusplus' >>confdefs.h
+  echo $ac_declaration      >>confdefs.h
+  echo '#endif'             >>confdefs.h
+fi
+
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+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
+      : > 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
+      # (even with -Werror).  So we grep stderr for any message
+      # that says an option was ignored.
+      if grep 'ignoring option' 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
+
+
+
+        echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
+echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
+if test "${ac_cv_lib_cposix_strerror+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS="-lcposix  $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char strerror ();
+int
+main ()
+{
+strerror ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_cposix_strerror=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_cposix_strerror=no
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
+echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
+if test $ac_cv_lib_cposix_strerror = yes; then
+  LIBS="$LIBS -lcposix"
+fi
+
+
+
+echo "$as_me:$LINENO: checking for inline" >&5
+echo $ECHO_N "checking for inline... $ECHO_C" >&6
+if test "${ac_cv_c_inline+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_cv_c_inline=no
+for ac_kw in inline __inline__ __inline; do
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#ifndef __cplusplus
+typedef int foo_t;
+static $ac_kw foo_t static_foo () {return 0; }
+$ac_kw foo_t foo () {return 0; }
+#endif
+
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_c_inline=$ac_kw; break
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+done
+
+fi
+echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
+echo "${ECHO_T}$ac_cv_c_inline" >&6
+case $ac_cv_c_inline in
+  inline | yes) ;;
+  no)
+cat >>confdefs.h <<\_ACEOF
+#define inline
+_ACEOF
+ ;;
+  *)  cat >>confdefs.h <<_ACEOF
+#define inline $ac_cv_c_inline
+_ACEOF
+ ;;
+esac
+
+# 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"
+# ./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/* | \
+  /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 $as_executable_p "$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
+
+
+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.  We don't cache a
+    # path for INSTALL within a source directory, because that will
+    # break other packages using the cache if that directory is
+    # removed, or if the path is relative.
+    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'
+
+ac_ext=cc
+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 -n "$ac_tool_prefix"; then
+  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl 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 $as_executable_p "$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
+
+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 $CCC g++ c++ gpp aCC CC cxx cc++ cl 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 $as_executable_p "$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
+
+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
+test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
+
+  CXX=$ac_ct_CXX
+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`
+{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
+  (eval $ac_compiler --version </dev/null >&5) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }
+{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
+  (eval $ac_compiler -v </dev/null >&5) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }
+{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
+  (eval $ac_compiler -V </dev/null >&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
+#line $LINENO "configure"
+/* 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 { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; 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 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
+CXXFLAGS="-g"
+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
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* 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 { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_prog_cxx_g=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_prog_cxx_g=no
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+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
+for ac_declaration in \
+   ''\
+   '#include <stdlib.h>' \
+   'extern "C" void std::exit (int) throw (); using std::exit;' \
+   'extern "C" void std::exit (int); using std::exit;' \
+   'extern "C" void exit (int) throw ();' \
+   'extern "C" void exit (int);' \
+   'void exit (int);'
+do
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <stdlib.h>
+$ac_declaration
+int
+main ()
+{
+exit (42);
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  :
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+continue
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+$ac_declaration
+int
+main ()
+{
+exit (42);
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  break
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+done
+rm -f conftest*
+if test -n "$ac_declaration"; then
+  echo '#ifdef __cplusplus' >>confdefs.h
+  echo $ac_declaration      >>confdefs.h
+  echo '#endif'             >>confdefs.h
+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
+      : > 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
+      # (even with -Werror).  So we grep stderr for any message
+      # that says an option was ignored.
+      if grep 'ignoring option' 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
+
+
+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
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <stdlib.h>
+#include <stdarg.h>
+#include <string.h>
+#include <float.h>
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; 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 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
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <string.h>
+
+_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
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <stdlib.h>
+
+_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
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <ctype.h>
+#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))
+      exit(2);
+  exit (0);
+}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 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
+
+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 $as_executable_p "$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
+
+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
+
+# 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"
+# ./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/* | \
+  /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 $as_executable_p "$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
+
+
+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.  We don't cache a
+    # path for INSTALL within a source directory, because that will
+    # break other packages using the cache if that directory is
+    # removed, or if the path is relative.
+    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 ln -s works" >&5
+echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
+LN_S=$as_ln_s
+if test "$LN_S" = "ln -s"; then
+  echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+else
+  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
+echo "${ECHO_T}no, using $LN_S" >&6
+fi
+
+
+echo "Using $CC compiler"
+
+if test "$CC" = "gcc" ; then
+
+if $CC -dumpversion|egrep -q "^3\.*"; then
+echo "GCC ok"
+else
+echo "*****************************************"
+echo "You need a gcc >= 3.x to compile GpsDrive"
+echo "*****************************************"
+exit
+fi
+
+fi
+
+
+UNAMEP=`uname -p`
+ARCHP=`arch`
+CFLAGS="$CFLAGS"
+
+
+# Check whether --with-debug or --without-debug was given.
+if test "${with_debug+set}" = set; then
+  withval="$with_debug"
+
+        OPT_CFLAGS=""
+	CFLAGS=""
+	echo "Ignoring optimizing flags; using debugging flags: $OPT_CFLAGS"
+
+fi;
+
+# Check whether --enable-auto-optimization or --disable-auto-optimization was given.
+if test "${enable_auto_optimization+set}" = set; then
+  enableval="$enable_auto_optimization"
+  UNAMEP=`uname -p`
+		if test "x$UNAMEP" = "xunknown"; then
+			UNAMEP=`grep "model name" /proc/cpuinfo | cut -d: -f2`
+		fi
+
+echo $UNAMEP
+		if $CC -dumpversion|egrep -q "^3\.3.*"; then
+# gcc-3.3
+			if echo $UNAMEP|grep -q "Intel(R) Pentium(R) 4 CPU"; then
+				MARCH=-march=pentium4
+			elif echo $UNAMEP|grep -q "Pentium III"; then
+				MARCH=-march=pentium3
+			elif echo $UNAMEP|grep -q "AMD-K6(tm) 3D"; then
+				MARCH=-march=k6-2
+			elif echo $UNAMEP|grep -q "Pentium 75 - 200"; then
+				MARCH=-march=pentium
+			elif echo $UNAMEP|grep -q "Pentium II"; then
+				MARCH=-march=pentium2
+			elif echo $UNAMEP|grep -q "AMD Athlon(..) XP"; then
+				MARCH=-march=athlon-xp
+			else
+				MARCH=""
+			fi
+			OPT_CFLAGS="-O3 $MARCH -fomit-frame-pointer -fno-exceptions  -pipe -s -ffast-math -fexpensive-optimizations -falign-functions -falign-loops -funroll-loops -mfpmath=sse"
+		elif $CC -dumpversion|egrep -q "^3\.0.*"; then
+# gcc-3.0
+			OPT_CFLAGS="-O3 -fomit-frame-pointer -fno-exceptions  -pipe -s -ffast-math -fexpensive-optimizations -falign-functions -falign-loops "
+		elif $CC -dumpversion | egrep -q "^2\.95.*" ; then
+# gcc-2.95
+			if echo $UNAMEP|egrep -q "(Pentium III|Pentium II|Pentium\(R\) 4|Athlon)"; then
+				MARCH=-march=pentiumpro
+			elif echo $UNAMEP|grep -q "AMD-K6"; then
+				MARCH=-march=k6
+			elif echo $UNAMEP|grep -q "Pentium 75 - 200"; then
+				MARCH=-march=pentium
+			else
+				MARCH=""
+			fi
+			OPT_CFLAGS="$MARCH -O3 -fomit-frame-pointer -fno-exceptions  -pipe -s -ffast-math -fexpensive-optimizations"
+		else
+			echo "warning: compiler is not known: not optimizing!"
+		fi
+		echo "compiler optimizing flags: $OPT_CFLAGS"
+
+fi;
+
+# Check whether --enable-gcc3-optimization or --disable-gcc3-optimization was given.
+if test "${enable_gcc3_optimization+set}" = set; then
+  enableval="$enable_gcc3_optimization"
+  if $CC -dumpversion|egrep -q "^3\..*"; then
+			OPT_CFLAGS="-O3 -march=$enableval -fomit-frame-pointer -fno-exceptions  -pipe -s -ffast-math -fexpensive-optimizations -falign-functions -falign-loops"
+			echo "compiler optimizing flags: $OPT_CFLAGS"
+		else
+			echo "warning: compiler is not gcc3: not optimizing!"
+		fi
+
+fi;
+
+# Check whether --enable-gcc2-optimization or --disable-gcc2-optimization was given.
+if test "${enable_gcc2_optimization+set}" = set; then
+  enableval="$enable_gcc2_optimization"
+  if $CC -dumpversion | egrep -q "^2\..*" ; then
+			OPT_CFLAGS="-O3 -march=$enableval -fomit-frame-pointer -fno-exceptions  -pipe -s -ffast-math -fexpensive-optimizations"
+			echo "compiler optimizing flags: $OPT_CFLAGS"
+		else
+			echo "warning: compiler is not gcc2: not optimizing!"
+		fi
+
+fi;
+
+# 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"
+# ./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/* | \
+  /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 $as_executable_p "$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
+
+
+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.  We don't cache a
+    # path for INSTALL within a source directory, because that will
+    # break other packages using the cache if that directory is
+    # removed, or if the path is relative.
+    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'
+
+
+CFLAGS="$CFLAGS -g -Wall -Wno-format-y2k -pipe $OPT_CFLAGS"
+
+
+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
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <stdlib.h>
+#include <stdarg.h>
+#include <string.h>
+#include <float.h>
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; 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 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
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <string.h>
+
+_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
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <stdlib.h>
+
+_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
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <ctype.h>
+#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))
+      exit(2);
+  exit (0);
+}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 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
+
+
+  echo "$as_me:$LINENO: checking for socklen_t" >&5
+echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
+  if test "${ac_cv_socklen_t+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+
+
+
+    ac_ext=cc
+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
+
+    cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+#include <sys/types.h>
+#include <sys/socket.h>
+
+int
+main ()
+{
+
+socklen_t a=0;
+getsockname(0,(struct sockaddr*)0, &a);
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_socklen_t=socklen_t
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+#include <sys/types.h>
+#include <sys/socket.h>
+
+int
+main ()
+{
+
+int a=0;
+getsockname(0,(struct sockaddr*)0, &a);
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_socklen_t=int
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_socklen_t=size_t
+
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+    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
+
+
+fi
+
+
+  echo "$as_me:$LINENO: result: $ac_cv_socklen_t" >&5
+echo "${ECHO_T}$ac_cv_socklen_t" >&6
+  if test "$ac_cv_socklen_t" != "socklen_t"; then
+
+cat >>confdefs.h <<_ACEOF
+#define socklen_t $ac_cv_socklen_t
+_ACEOF
+
+  fi
+
+
+
+
+
+  succeeded=no
+
+  if test -z "$PKG_CONFIG"; then
+    # 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_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 $as_executable_p "$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
+
+  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
+  ;;
+esac
+fi
+PKG_CONFIG=$ac_cv_path_PKG_CONFIG
+
+if test -n "$PKG_CONFIG"; then
+  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 "$PKG_CONFIG" = "no" ; then
+     echo "*** The pkg-config script could not be found. Make sure it is"
+     echo "*** in your path, or set the PKG_CONFIG environment variable"
+     echo "*** to the full path to pkg-config."
+     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
+  else
+     PKG_CONFIG_MIN_VERSION=0.9.0
+     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
+        echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.0.6  gthread-2.0" >&5
+echo $ECHO_N "checking for gtk+-2.0 >= 2.0.6  gthread-2.0... $ECHO_C" >&6
+
+        if $PKG_CONFIG --exists "gtk+-2.0 >= 2.0.6  gthread-2.0" ; then
+            echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+            succeeded=yes
+
+            echo "$as_me:$LINENO: checking PKGCONFIG_CFLAGS" >&5
+echo $ECHO_N "checking PKGCONFIG_CFLAGS... $ECHO_C" >&6
+            PKGCONFIG_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.0.6  gthread-2.0"`
+            echo "$as_me:$LINENO: result: $PKGCONFIG_CFLAGS" >&5
+echo "${ECHO_T}$PKGCONFIG_CFLAGS" >&6
+
+            echo "$as_me:$LINENO: checking PKGCONFIG_LIBS" >&5
+echo $ECHO_N "checking PKGCONFIG_LIBS... $ECHO_C" >&6
+            PKGCONFIG_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.0.6  gthread-2.0"`
+            echo "$as_me:$LINENO: result: $PKGCONFIG_LIBS" >&5
+echo "${ECHO_T}$PKGCONFIG_LIBS" >&6
+        else
+            PKGCONFIG_CFLAGS=""
+            PKGCONFIG_LIBS=""
+            ## If we have a custom action on failure, don't print errors, but
+            ## do set a variable so people can do so.
+            PKGCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.0.6  gthread-2.0"`
+            echo $PKGCONFIG_PKG_ERRORS
+        fi
+
+
+
+     else
+        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
+        echo "*** See http://www.freedesktop.org/software/pkgconfig"
+     fi
+  fi
+
+  if test $succeeded = yes; then
+     :
+  else
+     { { echo "$as_me:$LINENO: error: Library requirements (gtk+-2.0 >= 2.0.6  gthread-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
+echo "$as_me: error: Library requirements (gtk+-2.0 >= 2.0.6  gthread-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
+   { (exit 1); exit 1; }; }
+  fi
+
+LIBS="$LIBS $PKGCONFIG_LIBS"
+CFLAGS="$CFLAGS $PKGCONFIG_CFLAGS"
+
+# Extract the first word of "pcre-config", so it can be a program name with args.
+set dummy pcre-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_PCRE_CONFIG+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  case $PCRE_CONFIG in
+  [\\/]* | ?:[\\/]*)
+  ac_cv_path_PCRE_CONFIG="$PCRE_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 $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_path_PCRE_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
+
+  test -z "$ac_cv_path_PCRE_CONFIG" && ac_cv_path_PCRE_CONFIG="no"
+  ;;
+esac
+fi
+PCRE_CONFIG=$ac_cv_path_PCRE_CONFIG
+
+if test -n "$PCRE_CONFIG"; then
+  echo "$as_me:$LINENO: result: $PCRE_CONFIG" >&5
+echo "${ECHO_T}$PCRE_CONFIG" >&6
+else
+  echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+if test "x$PCRE_CONFIG" = "xno" ; then
+	{ { echo "$as_me:$LINENO: error: pcre-config not found please install libpcre3-dev or similar" >&5
+echo "$as_me: error: pcre-config not found please install libpcre3-dev or similar" >&2;}
+   { (exit 1); exit 1; }; }
+else
+	LIBS="$LIBS `$PCRE_CONFIG --libs`"
+	CFLAGS="$CFLAGS `$PCRE_CONFIG --cflags`"
+fi
+
+
+localedir='${prefix}/share/locale'
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+for ac_header in sys/types.h sys/termios.h termio.h termios.h sys/stat.h fcntl.h stdio.h unistd.h  netdb.h X11/X.h linux/inet.h sys/ioctl.h
+do
+as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+  echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&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
+#line $LINENO "configure"
+/* 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 { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; 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 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
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <$ac_header>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_c_preproc_warn_flag
+  else
+    ac_cpp_err=
+  fi
+else
+  ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_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 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 preprocessor's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+    (
+      cat <<\_ASBOX
+## ------------------------------------ ##
+## Report this to bug-autoconf at gnu.org. ##
+## ------------------------------------ ##
+_ASBOX
+    ) |
+      sed "s/^/$as_me: WARNING:     /" >&2
+    ;;
+  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: proceeding with the preprocessor's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+    (
+      cat <<\_ASBOX
+## ------------------------------------ ##
+## Report this to bug-autoconf at gnu.org. ##
+## ------------------------------------ ##
+_ASBOX
+    ) |
+      sed "s/^/$as_me: WARNING:     /" >&2
+    ;;
+esac
+echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  eval "$as_ac_Header=$ac_header_preproc"
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&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
+
+
+
+for ac_header in crypt.h
+do
+as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+  echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&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
+#line $LINENO "configure"
+/* 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 { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; 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 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
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <$ac_header>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_c_preproc_warn_flag
+  else
+    ac_cpp_err=
+  fi
+else
+  ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_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 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 preprocessor's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+    (
+      cat <<\_ASBOX
+## ------------------------------------ ##
+## Report this to bug-autoconf at gnu.org. ##
+## ------------------------------------ ##
+_ASBOX
+    ) |
+      sed "s/^/$as_me: WARNING:     /" >&2
+    ;;
+  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: proceeding with the preprocessor's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+    (
+      cat <<\_ASBOX
+## ------------------------------------ ##
+## Report this to bug-autoconf at gnu.org. ##
+## ------------------------------------ ##
+_ASBOX
+    ) |
+      sed "s/^/$as_me: WARNING:     /" >&2
+    ;;
+esac
+echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  eval "$as_ac_Header=$ac_header_preproc"
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&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
+
+
+echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
+echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
+if test "${ac_cv_lib_crypt_crypt+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS="-lcrypt  $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char crypt ();
+int
+main ()
+{
+crypt ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_crypt_crypt=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_crypt_crypt=no
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
+echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
+if test $ac_cv_lib_crypt_crypt = yes; then
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBCRYPT 1
+_ACEOF
+
+  LIBS="-lcrypt $LIBS"
+
+fi
+
+
+LIBADD_DL=
+
+
+echo "$as_me:$LINENO: checking for shl_load" >&5
+echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
+if test "${ac_cv_func_shl_load+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+/* System header to define __stub macros and hopefully few prototypes,
+    which can conflict with char shl_load (); below.
+    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+    <limits.h> exists even on freestanding compilers.  */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char shl_load ();
+/* 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_shl_load) || defined (__stub___shl_load)
+choke me
+#else
+char (*f) () = shl_load;
+#endif
+#ifdef __cplusplus
+}
+#endif
+
+int
+main ()
+{
+return f != shl_load;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_func_shl_load=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_func_shl_load=no
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
+echo "${ECHO_T}$ac_cv_func_shl_load" >&6
+if test $ac_cv_func_shl_load = yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_SHL_LOAD 1
+_ACEOF
+
+else
+  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
+echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
+if test "${ac_cv_lib_dld_shl_load+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldld  $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char shl_load ();
+int
+main ()
+{
+shl_load ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_dld_shl_load=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_dld_shl_load=no
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
+echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
+if test $ac_cv_lib_dld_shl_load = yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_SHL_LOAD 1
+_ACEOF
+
+	LIBADD_DL="$LIBADD_DL -ldld"
+else
+  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
+echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
+if test "${ac_cv_lib_dl_dlopen+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldl  $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char dlopen ();
+int
+main ()
+{
+dlopen ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_dl_dlopen=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_dl_dlopen=no
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
+echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
+if test $ac_cv_lib_dl_dlopen = yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_LIBDL 1
+_ACEOF
+
+	  LIBADD_DL="-ldl"
+else
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#if HAVE_DLFCN_H
+#  include <dlfcn.h>
+#endif
+
+int
+main ()
+{
+dlopen(0, 0);
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_LIBDL 1
+_ACEOF
+
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
+echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
+if test "${ac_cv_lib_svld_dlopen+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS="-lsvld  $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char dlopen ();
+int
+main ()
+{
+dlopen ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_svld_dlopen=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_svld_dlopen=no
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
+echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
+if test $ac_cv_lib_svld_dlopen = yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_LIBDL 1
+_ACEOF
+
+	      LIBADD_DL="-lsvld"
+else
+  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
+echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
+if test "${ac_cv_lib_dld_dld_link+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldld  $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char dld_link ();
+int
+main ()
+{
+dld_link ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_dld_dld_link=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_dld_dld_link=no
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
+echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
+if test $ac_cv_lib_dld_dld_link = yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_DLD 1
+_ACEOF
+
+	 	LIBADD_DL="$LIBADD_DL -ldld"
+
+fi
+
+
+fi
+
+
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+
+fi
+
+
+fi
+
+
+fi
+
+
+if test "x$ac_cv_func_dlopen" = xyes || test "x$ac_cv_lib_dl_dlopen" = xyes; then
+ LIBS_SAVE="$LIBS"
+ LIBS="$LIBS $LIBADD_DL"
+
+for ac_func in dlerror
+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 eval "test \"\${$as_ac_var+set}\" = set"; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+/* System header to define __stub macros and hopefully few prototypes,
+    which can conflict with char $ac_func (); below.
+    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+    <limits.h> exists even on freestanding compilers.  */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+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
+#else
+char (*f) () = $ac_func;
+#endif
+#ifdef __cplusplus
+}
+#endif
+
+int
+main ()
+{
+return f != $ac_func;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; 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 conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&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="$LIBS_SAVE"
+fi
+
+echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
+echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
+if test "${ac_cv_sys_symbol_underscore+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_cv_sys_symbol_underscore=no
+cat > conftest.$ac_ext <<EOF
+void nm_test_func(){}
+int main(){nm_test_func;return 0;}
+EOF
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; then
+  # Now try to grab the symbols.
+  ac_nlist=conftest.nm
+  if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $global_symbol_pipe \> $ac_nlist\"") >&5
+  (eval $NM conftest.$ac_objext \| $global_symbol_pipe \> $ac_nlist) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } && test -s "$ac_nlist"; then
+    # See whether the symbols have a leading underscore.
+    if egrep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
+      ac_cv_sys_symbol_underscore=yes
+    else
+      if egrep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
+	:
+      else
+	echo "configure: cannot find nm_test_func in $ac_nlist" >&5
+      fi
+    fi
+  else
+    echo "configure: cannot run $global_symbol_pipe" >&5
+  fi
+else
+  echo "configure: failed program was:" >&5
+  cat conftest.c >&5
+fi
+rm -rf conftest*
+
+fi
+
+echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
+echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
+
+if test x"$ac_cv_sys_symbol_underscore" = xyes; then
+  if test x"$ac_cv_func_dlopen" = xyes ||
+     test x"$ac_cv_lib_dl_dlopen" = xyes ; then
+	echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
+echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
+if test "${libltdl_cv_need_uscore+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  		libltdl_cv_need_uscore=unknown
+                save_LIBS="$LIBS"
+                LIBS="$LIBS $LIBADD_DL"
+		if test "$cross_compiling" = yes; then :
+  libltdl_cv_need_uscore=cross
+else
+    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
+  lt_status=$lt_dlunknown
+  cat > conftest.$ac_ext <<EOF
+#line 11037 "configure"
+#include "confdefs.h"
+
+#if HAVE_DLFCN_H
+#include <dlfcn.h>
+#endif
+
+#include <stdio.h>
+
+#ifdef RTLD_GLOBAL
+#  define LT_DLGLOBAL		RTLD_GLOBAL
+#else
+#  ifdef DL_GLOBAL
+#    define LT_DLGLOBAL		DL_GLOBAL
+#  else
+#    define LT_DLGLOBAL		0
+#  endif
+#endif
+
+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
+   find out it does not work in some platform. */
+#ifndef LT_DLLAZY_OR_NOW
+#  ifdef RTLD_LAZY
+#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
+#  else
+#    ifdef DL_LAZY
+#      define LT_DLLAZY_OR_NOW		DL_LAZY
+#    else
+#      ifdef RTLD_NOW
+#        define LT_DLLAZY_OR_NOW	RTLD_NOW
+#      else
+#        ifdef DL_NOW
+#          define LT_DLLAZY_OR_NOW	DL_NOW
+#        else
+#          define LT_DLLAZY_OR_NOW	0
+#        endif
+#      endif
+#    endif
+#  endif
+#endif
+
+#ifdef __cplusplus
+extern "C" void exit (int);
+#endif
+
+void fnord() { int i=42;}
+int main ()
+{
+  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
+  int status = $lt_dlunknown;
+
+  if (self)
+    {
+      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
+      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
+      /* dlclose (self); */
+    }
+
+    exit (status);
+}
+EOF
+  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
+    (./conftest; exit; ) 2>/dev/null
+    lt_status=$?
+    case x$lt_status in
+      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
+      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
+      x$lt_unknown|x*)  ;;
+    esac
+  else :
+    # compilation failed
+
+  fi
+fi
+rm -fr conftest*
+
+		LIBS="$save_LIBS"
+
+fi
+echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
+echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
+  fi
+fi
+
+if test x"$libltdl_cv_need_uscore" = xyes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define NEED_USCORE 1
+_ACEOF
+
+fi
+
+# putting this here gets the option enabled, but program segfaults
+# putting a non-conditional CFLAGS="$CFLAGS -Ddlsym..." early in
+# configure.ac works correctly, but putting the two AC_ and the
+# conditional CFLAGS= does not.
+#if test x"$libltdl_cv_need_uscore" = xyes; then
+#    AC_SUBST(DLSYM_CFLAGS,'-Ddlsym=dlsym_prepend_underscore')
+#fi
+
+
+
+for ac_header in sys/select.h sys/socket.h
+do
+as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+  echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&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
+#line $LINENO "configure"
+/* 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 { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; 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 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
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <$ac_header>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_c_preproc_warn_flag
+  else
+    ac_cpp_err=
+  fi
+else
+  ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_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 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 preprocessor's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+    (
+      cat <<\_ASBOX
+## ------------------------------------ ##
+## Report this to bug-autoconf at gnu.org. ##
+## ------------------------------------ ##
+_ASBOX
+    ) |
+      sed "s/^/$as_me: WARNING:     /" >&2
+    ;;
+  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: proceeding with the preprocessor's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+    (
+      cat <<\_ASBOX
+## ------------------------------------ ##
+## Report this to bug-autoconf at gnu.org. ##
+## ------------------------------------ ##
+_ASBOX
+    ) |
+      sed "s/^/$as_me: WARNING:     /" >&2
+    ;;
+esac
+echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  eval "$as_ac_Header=$ac_header_preproc"
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&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
+
+echo "$as_me:$LINENO: checking types of arguments for select" >&5
+echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
+if test "${ac_cv_func_select_args+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
+ for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
+  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
+   cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+#if HAVE_SYS_SELECT_H
+# include <sys/select.h>
+#endif
+#if HAVE_SYS_SOCKET_H
+# include <sys/socket.h>
+#endif
+
+int
+main ()
+{
+extern int select ($ac_arg1,
+                                            $ac_arg234, $ac_arg234, $ac_arg234,
+                                            $ac_arg5);
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+  done
+ done
+done
+# Provide a safe default value.
+: ${ac_cv_func_select_args='int,int *,struct timeval *'}
+
+fi
+echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
+echo "${ECHO_T}$ac_cv_func_select_args" >&6
+ac_save_IFS=$IFS; IFS=','
+set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
+IFS=$ac_save_IFS
+shift
+
+cat >>confdefs.h <<_ACEOF
+#define SELECT_TYPE_ARG1 $1
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define SELECT_TYPE_ARG234 ($2)
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define SELECT_TYPE_ARG5 ($3)
+_ACEOF
+
+rm -f conftest*
+
+echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
+echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
+if test "${ac_cv_header_time+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <sys/types.h>
+#include <sys/time.h>
+#include <time.h>
+
+int
+main ()
+{
+if ((struct tm *) 0)
+return 0;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_header_time=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_header_time=no
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
+echo "${ECHO_T}$ac_cv_header_time" >&6
+if test $ac_cv_header_time = yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define TIME_WITH_SYS_TIME 1
+_ACEOF
+
+fi
+
+
+
+
+
+if test "${prefix}" == "NONE"; then
+	prefix=${ac_default_prefix}
+
+fi
+
+pkgdatadir=${datadir}/${PACKAGE}/
+
+
+
+
+for ac_header in locale.h
+do
+as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+  echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&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
+#line $LINENO "configure"
+/* 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 { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; 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 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
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <$ac_header>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_c_preproc_warn_flag
+  else
+    ac_cpp_err=
+  fi
+else
+  ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_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 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 preprocessor's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+    (
+      cat <<\_ASBOX
+## ------------------------------------ ##
+## Report this to bug-autoconf at gnu.org. ##
+## ------------------------------------ ##
+_ASBOX
+    ) |
+      sed "s/^/$as_me: WARNING:     /" >&2
+    ;;
+  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: proceeding with the preprocessor's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+    (
+      cat <<\_ASBOX
+## ------------------------------------ ##
+## Report this to bug-autoconf at gnu.org. ##
+## ------------------------------------ ##
+_ASBOX
+    ) |
+      sed "s/^/$as_me: WARNING:     /" >&2
+    ;;
+esac
+echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  eval "$as_ac_Header=$ac_header_preproc"
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&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
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <locale.h>
+int
+main ()
+{
+return LC_MESSAGES
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; 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 conftest.$ac_objext 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
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+#include <libintl.h>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; 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 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
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <libintl.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_c_preproc_warn_flag
+  else
+    ac_cpp_err=
+  fi
+else
+  ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_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 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 preprocessor's result" >&5
+echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
+    (
+      cat <<\_ASBOX
+## ------------------------------------ ##
+## Report this to bug-autoconf at gnu.org. ##
+## ------------------------------------ ##
+_ASBOX
+    ) |
+      sed "s/^/$as_me: WARNING:     /" >&2
+    ;;
+  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: proceeding with the preprocessor's result" >&5
+echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
+    (
+      cat <<\_ASBOX
+## ------------------------------------ ##
+## Report this to bug-autoconf at gnu.org. ##
+## ------------------------------------ ##
+_ASBOX
+    ) |
+      sed "s/^/$as_me: WARNING:     /" >&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 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
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+#include <libintl.h>
+
+int
+main ()
+{
+return (int) dgettext ("","")
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; 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 conftest.$ac_objext 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
+
+      if test "$gt_cv_func_dgettext_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 eval "test \"\${$as_ac_var+set}\" = set"; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+/* System header to define __stub macros and hopefully few prototypes,
+    which can conflict with char $ac_func (); below.
+    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+    <limits.h> exists even on freestanding compilers.  */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+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
+#else
+char (*f) () = $ac_func;
+#endif
+#ifdef __cplusplus
+}
+#endif
+
+int
+main ()
+{
+return f != $ac_func;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; 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 conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&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 "$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
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char bindtextdomain ();
+int
+main ()
+{
+bindtextdomain ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; 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 conftest.$ac_objext 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 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
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char dgettext ();
+int
+main ()
+{
+dgettext ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; 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 conftest.$ac_objext 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
+
+
+	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 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
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char dcgettext ();
+int
+main ()
+{
+dcgettext ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; 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 conftest.$ac_objext 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
+
+        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
+        #
+        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 eval "test \"\${$as_ac_var+set}\" = set"; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+/* System header to define __stub macros and hopefully few prototypes,
+    which can conflict with char $ac_func (); below.
+    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+    <limits.h> exists even on freestanding compilers.  */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+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
+#else
+char (*f) () = $ac_func;
+#endif
+#ifdef __cplusplus
+}
+#endif
+
+int
+main ()
+{
+return f != $ac_func;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; 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 conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&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"; 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 eval "test \"\${$as_ac_var+set}\" = set"; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+/* System header to define __stub macros and hopefully few prototypes,
+    which can conflict with char $ac_func (); below.
+    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+    <limits.h> exists even on freestanding compilers.  */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+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
+#else
+char (*f) () = $ac_func;
+#endif
+#ifdef __cplusplus
+}
+#endif
+
+int
+main ()
+{
+return f != $ac_func;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; 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 conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&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 $as_executable_p "$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
+
+  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
+#line $LINENO "configure"
+/* 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 { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; 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
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+/* System header to define __stub macros and hopefully few prototypes,
+    which can conflict with char bind_textdomain_codeset (); below.
+    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+    <limits.h> exists even on freestanding compilers.  */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+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
+#else
+char (*f) () = bind_textdomain_codeset;
+#endif
+#ifdef __cplusplus
+}
+#endif
+
+int
+main ()
+{
+return f != bind_textdomain_codeset;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; 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 conftest.$ac_objext 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 conftest.$ac_objext 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
+
+# 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_MSGMERGE+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  case $MSGMERGE in
+  [\\/]* | ?:[\\/]*)
+  ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
+  ;;
+  *)
+  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_path_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
+
+  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE="/usr/bin/msgmerge"
+  ;;
+esac
+fi
+MSGMERGE=$ac_cv_path_MSGMERGE
+
+if test -n "$MSGMERGE"; then
+  echo "$as_me:$LINENO: result: $MSGMERGE" >&5
+echo "${ECHO_T}$MSGMERGE" >&6
+else
+  echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+GETTEXT_PACKAGE=gpsdrive
+
+
+cat >>confdefs.h <<\_ACEOF
+#define GETTEXT_PACKAGE "gpsdrive"
+_ACEOF
+
+if test "$GMSGFMT" = "no"; then
+	echo "no gmsgfmt - NLS disabled"
+	USE_NLS=no
+fi
+if test "$MSGFMT" = "no" ; then
+	echo "no msfmt - NLS disabled"
+	USE_NLS=no
+fi
+if test "$USE_NLS" = "yes" ; then
+	cat >>confdefs.h <<\_ACEOF
+#define ENABLE_NLS 1
+_ACEOF
+
+fi
+
+# Check whether --enable-garmin or --disable-garmin was given.
+if test "${enable_garmin+set}" = set; then
+  enableval="$enable_garmin"
+
+	case "${enableval}" in
+		yes) echo "enable GARMIN protocol support" ;;
+		no)  echo "disable GARMIN protocol support"
+			NOGARMIN='-DNOGARMIN'
+
+			disablegarmin=true
+			CXX=$CC ;;
+		*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-garmin" >&5
+echo "$as_me: error: bad value ${enableval} for --enable-garmin" >&2;}
+   { (exit 1); exit 1; }; } ;;
+	esac
+
+fi;
+
+
+if test x$disablegarmin = xtrue; then
+  DISABLEGARMIN_TRUE=
+  DISABLEGARMIN_FALSE='#'
+else
+  DISABLEGARMIN_TRUE='#'
+  DISABLEGARMIN_FALSE=
+fi
+
+
+# Check whether --enable-plugins or --disable-plugins was given.
+if test "${enable_plugins+set}" = set; then
+  enableval="$enable_plugins"
+
+	case "${enableval}" in
+		yes) echo "enable plugin support" ;;
+		no)  echo "disable plugin support"
+			NOPLUGINS='-DNOPLUGINS'
+
+			disableplugins=true ;;
+		*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-plugins" >&5
+echo "$as_me: error: bad value ${enableval} for --enable-plugins" >&2;}
+   { (exit 1); exit 1; }; } ;;
+	esac
+
+fi;
+
+
+if test x$disableplugins = xtrue; then
+  DISABLEPLUGINS_TRUE=
+  DISABLEPLUGINS_FALSE='#'
+else
+  DISABLEPLUGINS_TRUE='#'
+  DISABLEPLUGINS_FALSE=
+fi
+
+
+
+# Check whether --enable-teleatlas or --disable-teleatlas was given.
+if test "${enable_teleatlas+set}" = set; then
+  enableval="$enable_teleatlas"
+
+	case "${enableval}" in
+		no) echo "disable street navigation support" ;;
+		yes)  echo "enable street navigation using Teleatlas maps, needs gpsnavlib"
+			USETELEATLAS='-DUSETELEATLAS'
+
+			enableteleatlas=true ;;
+		*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-teleatlas" >&5
+echo "$as_me: error: bad value ${enableval} for --enable-teleatlas" >&2;}
+   { (exit 1); exit 1; }; } ;;
+	esac
+
+fi;
+
+
+if test x$enableteleatlas = xtrue; then
+  ENABLETELEATLAS_TRUE=
+  ENABLETELEATLAS_FALSE='#'
+else
+  ENABLETELEATLAS_TRUE='#'
+  ENABLETELEATLAS_FALSE=
+fi
+
+
+
+
+
+for ac_header in crypt.h
+do
+as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+  echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&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
+#line $LINENO "configure"
+/* 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 { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; 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 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
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <$ac_header>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_c_preproc_warn_flag
+  else
+    ac_cpp_err=
+  fi
+else
+  ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_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 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 preprocessor's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+    (
+      cat <<\_ASBOX
+## ------------------------------------ ##
+## Report this to bug-autoconf at gnu.org. ##
+## ------------------------------------ ##
+_ASBOX
+    ) |
+      sed "s/^/$as_me: WARNING:     /" >&2
+    ;;
+  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: proceeding with the preprocessor's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+    (
+      cat <<\_ASBOX
+## ------------------------------------ ##
+## Report this to bug-autoconf at gnu.org. ##
+## ------------------------------------ ##
+_ASBOX
+    ) |
+      sed "s/^/$as_me: WARNING:     /" >&2
+    ;;
+esac
+echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  eval "$as_ac_Header=$ac_header_preproc"
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&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
+
+
+echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
+echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
+if test "${ac_cv_lib_crypt_crypt+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS="-lcrypt  $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char crypt ();
+int
+main ()
+{
+crypt ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_crypt_crypt=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_crypt_crypt=no
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
+echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
+if test $ac_cv_lib_crypt_crypt = yes; then
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBCRYPT 1
+_ACEOF
+
+  LIBS="-lcrypt $LIBS"
+
+fi
+
+
+echo "$as_me:$LINENO: checking whether getopt is declared" >&5
+echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
+if test "${ac_cv_have_decl_getopt+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+int
+main ()
+{
+#ifndef getopt
+  char *p = (char *) getopt;
+#endif
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_have_decl_getopt=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_have_decl_getopt=no
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
+echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
+if test $ac_cv_have_decl_getopt = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_DECL_GETOPT 1
+_ACEOF
+
+
+else
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_DECL_GETOPT 0
+_ACEOF
+
+
+fi
+
+
+
+LIBADD_DL=
+
+
+echo "$as_me:$LINENO: checking for shl_load" >&5
+echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
+if test "${ac_cv_func_shl_load+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+/* System header to define __stub macros and hopefully few prototypes,
+    which can conflict with char shl_load (); below.
+    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+    <limits.h> exists even on freestanding compilers.  */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char shl_load ();
+/* 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_shl_load) || defined (__stub___shl_load)
+choke me
+#else
+char (*f) () = shl_load;
+#endif
+#ifdef __cplusplus
+}
+#endif
+
+int
+main ()
+{
+return f != shl_load;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_func_shl_load=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_func_shl_load=no
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
+echo "${ECHO_T}$ac_cv_func_shl_load" >&6
+if test $ac_cv_func_shl_load = yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_SHL_LOAD 1
+_ACEOF
+
+else
+  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
+echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
+if test "${ac_cv_lib_dld_shl_load+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldld  $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char shl_load ();
+int
+main ()
+{
+shl_load ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_dld_shl_load=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_dld_shl_load=no
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
+echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
+if test $ac_cv_lib_dld_shl_load = yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_SHL_LOAD 1
+_ACEOF
+
+	LIBADD_DL="$LIBADD_DL -ldld"
+else
+  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
+echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
+if test "${ac_cv_lib_dl_dlopen+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldl  $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char dlopen ();
+int
+main ()
+{
+dlopen ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_dl_dlopen=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_dl_dlopen=no
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
+echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
+if test $ac_cv_lib_dl_dlopen = yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_LIBDL 1
+_ACEOF
+
+	  LIBADD_DL="-ldl"
+else
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#if HAVE_DLFCN_H
+#  include <dlfcn.h>
+#endif
+
+int
+main ()
+{
+dlopen(0, 0);
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_LIBDL 1
+_ACEOF
+
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
+echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
+if test "${ac_cv_lib_svld_dlopen+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS="-lsvld  $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char dlopen ();
+int
+main ()
+{
+dlopen ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_svld_dlopen=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_svld_dlopen=no
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
+echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
+if test $ac_cv_lib_svld_dlopen = yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_LIBDL 1
+_ACEOF
+
+	      LIBADD_DL="-lsvld"
+else
+  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
+echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
+if test "${ac_cv_lib_dld_dld_link+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldld  $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char dld_link ();
+int
+main ()
+{
+dld_link ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_dld_dld_link=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_dld_dld_link=no
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
+echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
+if test $ac_cv_lib_dld_dld_link = yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_DLD 1
+_ACEOF
+
+	 	LIBADD_DL="$LIBADD_DL -ldld"
+
+fi
+
+
+fi
+
+
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+
+fi
+
+
+fi
+
+
+fi
+
+
+if test "x$ac_cv_func_dlopen" = xyes || test "x$ac_cv_lib_dl_dlopen" = xyes; then
+ LIBS_SAVE="$LIBS"
+ LIBS="$LIBS $LIBADD_DL"
+
+for ac_func in dlerror
+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 eval "test \"\${$as_ac_var+set}\" = set"; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+/* System header to define __stub macros and hopefully few prototypes,
+    which can conflict with char $ac_func (); below.
+    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+    <limits.h> exists even on freestanding compilers.  */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+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
+#else
+char (*f) () = $ac_func;
+#endif
+#ifdef __cplusplus
+}
+#endif
+
+int
+main ()
+{
+return f != $ac_func;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; 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 conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&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="$LIBS_SAVE"
+fi
+
+if test x"$ac_cv_sys_symbol_underscore" = xyes; then
+  if test x"$ac_cv_func_dlopen" = xyes ||
+     test x"$ac_cv_lib_dl_dlopen" = xyes ; then
+	echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
+echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
+if test "${libltdl_cv_need_uscore+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  		libltdl_cv_need_uscore=unknown
+                save_LIBS="$LIBS"
+                LIBS="$LIBS $LIBADD_DL"
+		if test "$cross_compiling" = yes; then :
+  libltdl_cv_need_uscore=cross
+else
+    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
+  lt_status=$lt_dlunknown
+  cat > conftest.$ac_ext <<EOF
+#line 13569 "configure"
+#include "confdefs.h"
+
+#if HAVE_DLFCN_H
+#include <dlfcn.h>
+#endif
+
+#include <stdio.h>
+
+#ifdef RTLD_GLOBAL
+#  define LT_DLGLOBAL		RTLD_GLOBAL
+#else
+#  ifdef DL_GLOBAL
+#    define LT_DLGLOBAL		DL_GLOBAL
+#  else
+#    define LT_DLGLOBAL		0
+#  endif
+#endif
+
+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
+   find out it does not work in some platform. */
+#ifndef LT_DLLAZY_OR_NOW
+#  ifdef RTLD_LAZY
+#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
+#  else
+#    ifdef DL_LAZY
+#      define LT_DLLAZY_OR_NOW		DL_LAZY
+#    else
+#      ifdef RTLD_NOW
+#        define LT_DLLAZY_OR_NOW	RTLD_NOW
+#      else
+#        ifdef DL_NOW
+#          define LT_DLLAZY_OR_NOW	DL_NOW
+#        else
+#          define LT_DLLAZY_OR_NOW	0
+#        endif
+#      endif
+#    endif
+#  endif
+#endif
+
+#ifdef __cplusplus
+extern "C" void exit (int);
+#endif
+
+void fnord() { int i=42;}
+int main ()
+{
+  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
+  int status = $lt_dlunknown;
+
+  if (self)
+    {
+      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
+      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
+      /* dlclose (self); */
+    }
+
+    exit (status);
+}
+EOF
+  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
+    (./conftest; exit; ) 2>/dev/null
+    lt_status=$?
+    case x$lt_status in
+      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
+      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
+      x$lt_unknown|x*)  ;;
+    esac
+  else :
+    # compilation failed
+
+  fi
+fi
+rm -fr conftest*
+
+		LIBS="$save_LIBS"
+
+fi
+echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
+echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
+  fi
+fi
+
+if test x"$libltdl_cv_need_uscore" = xyes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define NEED_USCORE 1
+_ACEOF
+
+fi
+
+# putting this here gets the option enabled, but program segfaults
+# putting a non-conditional CFLAGS="$CFLAGS -Ddlsym..." early in
+# configure.ac works correctly, but putting the two AC_ and the
+# conditional CFLAGS= does not.
+#if test x"$libltdl_cv_need_uscore" = xyes; then
+#    AC_SUBST(DLSYM_CFLAGS,'-Ddlsym=dlsym_prepend_underscore')
+#fi
+
+CFLAGS="$CFLAGS -Imysql"
+
+CFLAGS="$CFLAGS $OPT_CFLAGS"
+CXXFLAGS="$CXXFLAGS $OPT_CFLAGS"
+
+                                                            ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile man/de/Makefile man/es/Makefile po/Makefile.in"
+
+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, don't put newlines in cache variables' values.
+# 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.
+{
+  (set) 2>&1 |
+    case `(ac_space=' '; set | grep ac_space) 2>&1` in
+    *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 \
+        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
+      ;;
+    esac;
+} |
+  sed '
+     t clear
+     : clear
+     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
+     t end
+     /^ac_cv_env/!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 "updating cache $cache_file"
+    cat confcache >$cache_file
+  else
+    echo "not updating unwritable cache $cache_file"
+  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}'
+
+# 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
+
+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_i=`echo "$ac_i" |
+         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
+  # 2. Add them.
+  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
+  ac_ltlibobjs="$ac_ltlibobjs $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
+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
+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 "${DISABLEGARMIN_TRUE}" && test -z "${DISABLEGARMIN_FALSE}"; then
+  { { echo "$as_me:$LINENO: error: conditional \"DISABLEGARMIN\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+echo "$as_me: error: conditional \"DISABLEGARMIN\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+   { (exit 1); exit 1; }; }
+fi
+if test -z "${DISABLEPLUGINS_TRUE}" && test -z "${DISABLEPLUGINS_FALSE}"; then
+  { { echo "$as_me:$LINENO: error: conditional \"DISABLEPLUGINS\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+echo "$as_me: error: conditional \"DISABLEPLUGINS\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+   { (exit 1); exit 1; }; }
+fi
+if test -z "${ENABLETELEATLAS_TRUE}" && test -z "${ENABLETELEATLAS_FALSE}"; then
+  { { echo "$as_me:$LINENO: error: conditional \"ENABLETELEATLAS\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+echo "$as_me: error: conditional \"ENABLETELEATLAS\" 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 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+"$@"}'='"$@"'
+elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
+  set -o posix
+fi
+
+# Support unset when possible.
+if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
+  as_unset=unset
+else
+  as_unset=false
+fi
+
+
+# Work around bugs in pre-3.0 UWIN ksh.
+$as_unset ENV MAIL MAILPATH
+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 -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
+    eval $as_var=C; export $as_var
+  else
+    $as_unset $as_var
+  fi
+done
+
+# Required to use basename.
+if expr a : '\(a\)' >/dev/null 2>&1; 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'`
+
+
+# PATH needs CR, and LINENO needs CR and PATH.
+# 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
+
+
+  as_lineno_1=$LINENO
+  as_lineno_2=$LINENO
+  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
+  test "x$as_lineno_1" != "x$as_lineno_2" &&
+  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
+  # Find who we are.  Look in the path if we contain no path at all
+  # relative or not.
+  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
+
+       ;;
+  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_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
+echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
+   { (exit 1); exit 1; }; }
+  fi
+  case $CONFIG_SHELL in
+  '')
+    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=.
+  for as_base in sh bash ksh sh5; do
+	 case $as_dir in
+	 /*)
+	   if ("$as_dir/$as_base" -c '
+  as_lineno_1=$LINENO
+  as_lineno_2=$LINENO
+  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
+  test "x$as_lineno_1" != "x$as_lineno_2" &&
+  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
+	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
+	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
+	     CONFIG_SHELL=$as_dir/$as_base
+	     export CONFIG_SHELL
+	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
+	   fi;;
+	 esac
+       done
+done
+;;
+  esac
+
+  # 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 before each line; the second 'sed' does the real
+  # work.  The second script uses 'N' to pair each line-number line
+  # with the numbered line, 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
+  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
+  sed '=' <$as_myself |
+    sed '
+      N
+      s,$,-,
+      : loop
+      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
+      t loop
+      s,-$,,
+      s,^['$as_cr_digits']*\n,,
+    ' >$as_me.lineno &&
+  chmod +x $as_me.lineno ||
+    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
+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 sensible to this).
+  . ./$as_me.lineno
+  # Exit status is that of the last command.
+  exit
+}
+
+
+case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
+  *c*,-n*) ECHO_N= ECHO_C='
+' ECHO_T='	' ;;
+  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
+  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
+esac
+
+if expr a : '\(a\)' >/dev/null 2>&1; then
+  as_expr=expr
+else
+  as_expr=false
+fi
+
+rm -f conf$$ conf$$.exe conf$$.file
+echo >conf$$.file
+if ln -s conf$$.file conf$$ 2>/dev/null; then
+  # We could just check for DJGPP; but this test a) works b) is more generic
+  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
+  if test -f conf$$.exe; then
+    # Don't use ln at all; we don't have any links
+    as_ln_s='cp -p'
+  else
+    as_ln_s='ln -s'
+  fi
+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$$.file
+
+if mkdir -p . 2>/dev/null; then
+  as_mkdir_p=:
+else
+  as_mkdir_p=false
+fi
+
+as_executable_p="test -f"
+
+# Sed expression to map a string onto a valid CPP name.
+as_tr_cpp="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="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
+
+
+# IFS
+# We need space, tab and new line, in precisely that order.
+as_nl='
+'
+IFS=" 	$as_nl"
+
+# CDPATH.
+$as_unset CDPATH
+
+exec 6>&1
+
+# Open the log real soon, to keep \$[0] and so on meaningful, and to
+# report actual input values of CONFIG_FILES etc. instead of their
+# values after options handling.  Logging --version etc. is OK.
+exec 5>>config.log
+{
+  echo
+  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
+## Running $as_me. ##
+_ASBOX
+} >&5
+cat >&5 <<_CSEOF
+
+This file was extended by gpsdrive $as_me 2.09, which was
+generated by GNU Autoconf 2.57.  Invocation command line was
+
+  CONFIG_FILES    = $CONFIG_FILES
+  CONFIG_HEADERS  = $CONFIG_HEADERS
+  CONFIG_LINKS    = $CONFIG_LINKS
+  CONFIG_COMMANDS = $CONFIG_COMMANDS
+  $ $0 $@
+
+_CSEOF
+echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
+echo >&5
+_ACEOF
+
+# Files that config.status was made for.
+if test -n "$ac_config_files"; then
+  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
+fi
+
+if test -n "$ac_config_headers"; then
+  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
+fi
+
+if test -n "$ac_config_links"; then
+  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
+fi
+
+if test -n "$ac_config_commands"; then
+  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
+fi
+
+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, 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 <bug-autoconf at gnu.org>."
+_ACEOF
+
+cat >>$CONFIG_STATUS <<_ACEOF
+ac_cs_version="\\
+gpsdrive config.status 2.09
+configured by $0, generated by GNU Autoconf 2.57,
+  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
+
+Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
+Free Software Foundation, Inc.
+This config.status script is free software; the Free Software Foundation
+gives unlimited permission to copy, distribute and modify it."
+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
+    ;;
+  *) # This is not an option, so the user has probably given explicit
+     # arguments.
+     ac_option=$1
+     ac_need_defaults=false;;
+  esac
+
+  case $ac_option in
+  # Handling of the options.
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF
+  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
+    ac_cs_recheck=: ;;
+  --version | --vers* | -V )
+    echo "$ac_cs_version"; exit 0 ;;
+  --he | --h)
+    # Conflict between --help and --header
+    { { echo "$as_me:$LINENO: error: ambiguous option: $1
+Try \`$0 --help' for more information." >&5
+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 0 ;;
+  --debug | --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;;
+  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+  | -silent | --silent | --silen | --sile | --sil | --si | --s)
+    ac_cs_silent=: ;;
+
+  # This is an error.
+  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
+Try \`$0 --help' for more information." >&5
+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" ;;
+
+  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 $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
+  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
+fi
+
+_ACEOF
+
+cat >>$CONFIG_STATUS <<_ACEOF
+#
+# INIT-COMMANDS section.
+#
+
+AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
+
+
+_ACEOF
+
+
+
+cat >>$CONFIG_STATUS <<\_ACEOF
+for ac_config_target in $ac_config_targets
+do
+  case "$ac_config_target" in
+  # Handling of arguments.
+  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
+  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
+  "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
+  "man/de/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/de/Makefile" ;;
+  "man/es/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/es/Makefile" ;;
+  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
+  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
+  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
+  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
+  *) { { 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 to put it here, and in addition,
+# creating and moving files from /tmp can sometimes cause problems.
+# Create a temporary directory, and hook for its removal unless debugging.
+$debug ||
+{
+  trap 'exit_status=$?; rm -rf $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 -q "./confstatXXXXXX") 2>/dev/null` &&
+  test -n "$tmp" && test -d "$tmp"
+}  ||
+{
+  tmp=./confstat$$-$RANDOM
+  (umask 077 && mkdir $tmp)
+} ||
+{
+   echo "$me: cannot create a temporary directory in ." >&2
+   { (exit 1); exit 1; }
+}
+
+_ACEOF
+
+cat >>$CONFIG_STATUS <<_ACEOF
+
+#
+# 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
+  # Protect against being on the right side of a sed subst in config.status.
+  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
+   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
+s, at SHELL@,$SHELL,;t t
+s, at PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
+s, at PACKAGE_NAME@,$PACKAGE_NAME,;t t
+s, at PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
+s, at PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
+s, at PACKAGE_STRING@,$PACKAGE_STRING,;t t
+s, at PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
+s, at exec_prefix@,$exec_prefix,;t t
+s, at prefix@,$prefix,;t t
+s, at program_transform_name@,$program_transform_name,;t t
+s, at bindir@,$bindir,;t t
+s, at sbindir@,$sbindir,;t t
+s, at libexecdir@,$libexecdir,;t t
+s, at datadir@,$datadir,;t t
+s, at sysconfdir@,$sysconfdir,;t t
+s, at sharedstatedir@,$sharedstatedir,;t t
+s, at localstatedir@,$localstatedir,;t t
+s, at libdir@,$libdir,;t t
+s, at includedir@,$includedir,;t t
+s, at oldincludedir@,$oldincludedir,;t t
+s, at infodir@,$infodir,;t t
+s, at mandir@,$mandir,;t t
+s, at build_alias@,$build_alias,;t t
+s, at host_alias@,$host_alias,;t t
+s, at target_alias@,$target_alias,;t t
+s, at DEFS@,$DEFS,;t t
+s, at ECHO_C@,$ECHO_C,;t t
+s, at ECHO_N@,$ECHO_N,;t t
+s, at ECHO_T@,$ECHO_T,;t t
+s, at LIBS@,$LIBS,;t t
+s, at INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
+s, at INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
+s, at INSTALL_DATA@,$INSTALL_DATA,;t t
+s, at CYGPATH_W@,$CYGPATH_W,;t t
+s, at PACKAGE@,$PACKAGE,;t t
+s, at VERSION@,$VERSION,;t t
+s, at ACLOCAL@,$ACLOCAL,;t t
+s, at AUTOCONF@,$AUTOCONF,;t t
+s, at AUTOMAKE@,$AUTOMAKE,;t t
+s, at AUTOHEADER@,$AUTOHEADER,;t t
+s, at MAKEINFO@,$MAKEINFO,;t t
+s, at AMTAR@,$AMTAR,;t t
+s, at install_sh@,$install_sh,;t t
+s, at STRIP@,$STRIP,;t t
+s, at ac_ct_STRIP@,$ac_ct_STRIP,;t t
+s, at INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
+s, at AWK@,$AWK,;t t
+s, at SET_MAKE@,$SET_MAKE,;t t
+s, at am__leading_dot@,$am__leading_dot,;t t
+s, at FRIENDSSERVERVERSION@,$FRIENDSSERVERVERSION,;t t
+s, at build@,$build,;t t
+s, at build_cpu@,$build_cpu,;t t
+s, at build_vendor@,$build_vendor,;t t
+s, at build_os@,$build_os,;t t
+s, at host@,$host,;t t
+s, at host_cpu@,$host_cpu,;t t
+s, at host_vendor@,$host_vendor,;t t
+s, at host_os@,$host_os,;t t
+s, at CC@,$CC,;t t
+s, at CFLAGS@,$CFLAGS,;t t
+s, at LDFLAGS@,$LDFLAGS,;t t
+s, at CPPFLAGS@,$CPPFLAGS,;t t
+s, at ac_ct_CC@,$ac_ct_CC,;t t
+s, at EXEEXT@,$EXEEXT,;t t
+s, at OBJEXT@,$OBJEXT,;t t
+s, at DEPDIR@,$DEPDIR,;t t
+s, at am__include@,$am__include,;t t
+s, at am__quote@,$am__quote,;t t
+s, at AMDEP_TRUE@,$AMDEP_TRUE,;t t
+s, at AMDEP_FALSE@,$AMDEP_FALSE,;t t
+s, at AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
+s, at CCDEPMODE@,$CCDEPMODE,;t t
+s, at am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
+s, at am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
+s, at LN_S@,$LN_S,;t t
+s, at ECHO@,$ECHO,;t t
+s, at RANLIB@,$RANLIB,;t t
+s, at ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
+s, at CPP@,$CPP,;t t
+s, at EGREP@,$EGREP,;t t
+s, at LIBTOOL@,$LIBTOOL,;t t
+s, at CXX@,$CXX,;t t
+s, at CXXFLAGS@,$CXXFLAGS,;t t
+s, at ac_ct_CXX@,$ac_ct_CXX,;t t
+s, at CXXDEPMODE@,$CXXDEPMODE,;t t
+s, at am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
+s, at am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
+s, at PKG_CONFIG@,$PKG_CONFIG,;t t
+s, at PKGCONFIG_CFLAGS@,$PKGCONFIG_CFLAGS,;t t
+s, at PKGCONFIG_LIBS@,$PKGCONFIG_LIBS,;t t
+s, at PCRE_CONFIG@,$PCRE_CONFIG,;t t
+s, at localedir@,$localedir,;t t
+s, at LIBADD_DL@,$LIBADD_DL,;t t
+s, at pkgdatadir@,$pkgdatadir,;t t
+s, at USE_NLS@,$USE_NLS,;t t
+s, at MSGFMT@,$MSGFMT,;t t
+s, at GMSGFMT@,$GMSGFMT,;t t
+s, at XGETTEXT@,$XGETTEXT,;t t
+s, at CATALOGS@,$CATALOGS,;t t
+s, at CATOBJEXT@,$CATOBJEXT,;t t
+s, at DATADIRNAME@,$DATADIRNAME,;t t
+s, at GMOFILES@,$GMOFILES,;t t
+s, at INSTOBJEXT@,$INSTOBJEXT,;t t
+s, at INTLLIBS@,$INTLLIBS,;t t
+s, at PO_IN_DATADIR_TRUE@,$PO_IN_DATADIR_TRUE,;t t
+s, at PO_IN_DATADIR_FALSE@,$PO_IN_DATADIR_FALSE,;t t
+s, at POFILES@,$POFILES,;t t
+s, at POSUB@,$POSUB,;t t
+s, at MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
+s, at MSGMERGE@,$MSGMERGE,;t t
+s, at GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
+s, at NOGARMIN@,$NOGARMIN,;t t
+s, at DISABLEGARMIN_TRUE@,$DISABLEGARMIN_TRUE,;t t
+s, at DISABLEGARMIN_FALSE@,$DISABLEGARMIN_FALSE,;t t
+s, at NOPLUGINS@,$NOPLUGINS,;t t
+s, at DISABLEPLUGINS_TRUE@,$DISABLEPLUGINS_TRUE,;t t
+s, at DISABLEPLUGINS_FALSE@,$DISABLEPLUGINS_FALSE,;t t
+s, at USETELEATLAS@,$USETELEATLAS,;t t
+s, at ENABLETELEATLAS_TRUE@,$ENABLETELEATLAS_TRUE,;t t
+s, at ENABLETELEATLAS_FALSE@,$ENABLETELEATLAS_FALSE,;t t
+s, at LIBOBJS@,$LIBOBJS,;t t
+s, at LTLIBOBJS@,$LTLIBOBJS,;t t
+CEOF
+
+_ACEOF
+
+  cat >>$CONFIG_STATUS <<\_ACEOF
+  # Split the substitutions into bite-sized pieces for seds with
+  # small command number limits, like on Digital OSF/1 and HP-UX.
+  ac_max_sed_lines=48
+  ac_sed_frag=1 # Number of current file.
+  ac_beg=1 # First line for current file.
+  ac_end=$ac_max_sed_lines # Line after last line for current file.
+  ac_more_lines=:
+  ac_sed_cmds=
+  while $ac_more_lines; do
+    if test $ac_beg -gt 1; then
+      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
+    else
+      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
+    fi
+    if test ! -s $tmp/subs.frag; then
+      ac_more_lines=false
+    else
+      # The purpose of the label and of the branching condition is to
+      # speed up the sed processing (if there are no `@' at all, there
+      # is no need to browse any of the substitutions).
+      # These are the two extra sed commands mentioned above.
+      (echo ':t
+  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
+      if test -z "$ac_sed_cmds"; then
+  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
+      else
+  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
+      fi
+      ac_sed_frag=`expr $ac_sed_frag + 1`
+      ac_beg=$ac_end
+      ac_end=`expr $ac_end + $ac_max_sed_lines`
+    fi
+  done
+  if test -z "$ac_sed_cmds"; then
+    ac_sed_cmds=cat
+  fi
+fi # test -n "$CONFIG_FILES"
+
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF
+for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
+  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
+  case $ac_file in
+  - | *:- | *:-:* ) # input from stdin
+        cat >$tmp/stdin
+        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
+        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
+  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
+        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
+  * )   ac_file_in=$ac_file.in ;;
+  esac
+
+  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
+  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
+$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'`
+  { if $as_mkdir_p; then
+    mkdir -p "$ac_dir"
+  else
+    as_dir="$ac_dir"
+    as_dirs=
+    while test ! -d "$as_dir"; do
+      as_dirs="$as_dir $as_dirs"
+      as_dir=`(dirname "$as_dir") 2>/dev/null ||
+$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'`
+    done
+    test ! -n "$as_dirs" || mkdir $as_dirs
+  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
+echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
+   { (exit 1); exit 1; }; }; }
+
+  ac_builddir=.
+
+if test "$ac_dir" != .; then
+  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
+  # A "../" for each directory in $ac_dir_suffix.
+  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
+else
+  ac_dir_suffix= ac_top_builddir=
+fi
+
+case $srcdir in
+  .)  # No --srcdir option.  We are building in place.
+    ac_srcdir=.
+    if test -z "$ac_top_builddir"; then
+       ac_top_srcdir=.
+    else
+       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
+    fi ;;
+  [\\/]* | ?:[\\/]* )  # Absolute path.
+    ac_srcdir=$srcdir$ac_dir_suffix;
+    ac_top_srcdir=$srcdir ;;
+  *) # Relative path.
+    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
+    ac_top_srcdir=$ac_top_builddir$srcdir ;;
+esac
+# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
+# absolute.
+ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
+ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
+ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
+ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
+
+
+  case $INSTALL in
+  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
+  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
+  esac
+
+  if test x"$ac_file" != x-; then
+    { echo "$as_me:$LINENO: creating $ac_file" >&5
+echo "$as_me: creating $ac_file" >&6;}
+    rm -f "$ac_file"
+  fi
+  # 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.  */
+  if test x"$ac_file" = x-; then
+    configure_input=
+  else
+    configure_input="$ac_file.  "
+  fi
+  configure_input=$configure_input"Generated from `echo $ac_file_in |
+                                     sed 's,.*/,,'` by configure."
+
+  # First look for the input files in the build tree, otherwise in the
+  # src tree.
+  ac_file_inputs=`IFS=:
+    for f in $ac_file_in; do
+      case $f in
+      -) echo $tmp/stdin ;;
+      [\\/$]*)
+         # Absolute (can't be DOS-style, as IFS=:)
+         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
+echo "$as_me: error: cannot find input file: $f" >&2;}
+   { (exit 1); exit 1; }; }
+         echo $f;;
+      *) # Relative
+         if test -f "$f"; then
+           # Build tree
+           echo $f
+         elif test -f "$srcdir/$f"; then
+           # Source tree
+           echo $srcdir/$f
+         else
+           # /dev/null tree
+           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
+echo "$as_me: error: cannot find input file: $f" >&2;}
+   { (exit 1); exit 1; }; }
+         fi;;
+      esac
+    done` || { (exit 1); exit 1; }
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF
+  sed "$ac_vpsub
+$extrasub
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF
+:t
+/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
+s, at configure_input@,$configure_input,;t t
+s, at srcdir@,$ac_srcdir,;t t
+s, at abs_srcdir@,$ac_abs_srcdir,;t t
+s, at top_srcdir@,$ac_top_srcdir,;t t
+s, at abs_top_srcdir@,$ac_abs_top_srcdir,;t t
+s, at builddir@,$ac_builddir,;t t
+s, at abs_builddir@,$ac_abs_builddir,;t t
+s, at top_builddir@,$ac_top_builddir,;t t
+s, at abs_top_builddir@,$ac_abs_top_builddir,;t t
+s, at INSTALL@,$ac_INSTALL,;t t
+" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
+  rm -f $tmp/stdin
+  if test x"$ac_file" != x-; then
+    mv $tmp/out $ac_file
+  else
+    cat $tmp/out
+    rm -f $tmp/out
+  fi
+
+done
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF
+
+#
+# CONFIG_HEADER section.
+#
+
+# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
+# NAME is the cpp macro being defined and VALUE is the value it is being given.
+#
+# ac_d sets the value in "#define NAME VALUE" lines.
+ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
+ac_dB='[ 	].*$,\1#\2'
+ac_dC=' '
+ac_dD=',;t'
+# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
+ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
+ac_uB='$,\1#\2define\3'
+ac_uC=' '
+ac_uD=',;t'
+
+for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
+  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
+  case $ac_file in
+  - | *:- | *:-:* ) # input from stdin
+        cat >$tmp/stdin
+        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
+        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
+  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
+        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
+  * )   ac_file_in=$ac_file.in ;;
+  esac
+
+  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
+echo "$as_me: creating $ac_file" >&6;}
+
+  # First look for the input files in the build tree, otherwise in the
+  # src tree.
+  ac_file_inputs=`IFS=:
+    for f in $ac_file_in; do
+      case $f in
+      -) echo $tmp/stdin ;;
+      [\\/$]*)
+         # Absolute (can't be DOS-style, as IFS=:)
+         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
+echo "$as_me: error: cannot find input file: $f" >&2;}
+   { (exit 1); exit 1; }; }
+         echo $f;;
+      *) # Relative
+         if test -f "$f"; then
+           # Build tree
+           echo $f
+         elif test -f "$srcdir/$f"; then
+           # Source tree
+           echo $srcdir/$f
+         else
+           # /dev/null tree
+           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
+echo "$as_me: error: cannot find input file: $f" >&2;}
+   { (exit 1); exit 1; }; }
+         fi;;
+      esac
+    done` || { (exit 1); exit 1; }
+  # Remove the trailing spaces.
+  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
+
+_ACEOF
+
+# Transform confdefs.h into two sed scripts, `conftest.defines' and
+# `conftest.undefs', that substitutes the proper values into
+# config.h.in to produce config.h.  The first handles `#define'
+# templates, and the second `#undef' templates.
+# And first: Protect against being on the right side of a sed subst in
+# config.status.  Protect against being in an unquoted here document
+# in config.status.
+rm -f conftest.defines conftest.undefs
+# Using a here document instead of a string reduces the quoting nightmare.
+# Putting comments in sed scripts is not portable.
+#
+# `end' is used to avoid that the second main sed command (meant for
+# 0-ary CPP macros) applies to n-ary macro definitions.
+# See the Autoconf documentation for `clear'.
+cat >confdef2sed.sed <<\_ACEOF
+s/[\\&,]/\\&/g
+s,[\\$`],\\&,g
+t clear
+: clear
+s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
+t end
+s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
+: end
+_ACEOF
+# If some macros were called several times there might be several times
+# the same #defines, which is useless.  Nevertheless, we may not want to
+# sort them, since we want the *last* AC-DEFINE to be honored.
+uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
+sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
+rm -f confdef2sed.sed
+
+# This sed command replaces #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.
+cat >>conftest.undefs <<\_ACEOF
+s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
+_ACEOF
+
+# Break up conftest.defines because some shells have a limit on the size
+# of here documents, and old seds have small limits too (100 cmds).
+echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
+echo '  if grep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
+echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
+echo '  :' >>$CONFIG_STATUS
+rm -f conftest.tail
+while grep . conftest.defines >/dev/null
+do
+  # Write a limited-size here document to $tmp/defines.sed.
+  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
+  # Speed up: don't consider the non `#define' lines.
+  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
+  # Work around the forget-to-reset-the-flag bug.
+  echo 't clr' >>$CONFIG_STATUS
+  echo ': clr' >>$CONFIG_STATUS
+  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
+  echo 'CEOF
+  sed -f $tmp/defines.sed $tmp/in >$tmp/out
+  rm -f $tmp/in
+  mv $tmp/out $tmp/in
+' >>$CONFIG_STATUS
+  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
+  rm -f conftest.defines
+  mv conftest.tail conftest.defines
+done
+rm -f conftest.defines
+echo '  fi # grep' >>$CONFIG_STATUS
+echo >>$CONFIG_STATUS
+
+# Break up conftest.undefs because some shells have a limit on the size
+# of here documents, and old seds have small limits too (100 cmds).
+echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
+rm -f conftest.tail
+while grep . conftest.undefs >/dev/null
+do
+  # Write a limited-size here document to $tmp/undefs.sed.
+  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
+  # Speed up: don't consider the non `#undef'
+  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
+  # Work around the forget-to-reset-the-flag bug.
+  echo 't clr' >>$CONFIG_STATUS
+  echo ': clr' >>$CONFIG_STATUS
+  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
+  echo 'CEOF
+  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
+  rm -f $tmp/in
+  mv $tmp/out $tmp/in
+' >>$CONFIG_STATUS
+  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
+  rm -f conftest.undefs
+  mv conftest.tail conftest.undefs
+done
+rm -f conftest.undefs
+
+cat >>$CONFIG_STATUS <<\_ACEOF
+  # 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.  */
+  if test x"$ac_file" = x-; then
+    echo "/* Generated by configure.  */" >$tmp/config.h
+  else
+    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
+  fi
+  cat $tmp/in >>$tmp/config.h
+  rm -f $tmp/in
+  if test x"$ac_file" != x-; then
+    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
+      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
+$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'`
+      { if $as_mkdir_p; then
+    mkdir -p "$ac_dir"
+  else
+    as_dir="$ac_dir"
+    as_dirs=
+    while test ! -d "$as_dir"; do
+      as_dirs="$as_dir $as_dirs"
+      as_dir=`(dirname "$as_dir") 2>/dev/null ||
+$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'`
+    done
+    test ! -n "$as_dirs" || mkdir $as_dirs
+  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
+echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
+   { (exit 1); exit 1; }; }; }
+
+      rm -f $ac_file
+      mv $tmp/config.h $ac_file
+    fi
+  else
+    cat $tmp/config.h
+    rm -f $tmp/config.h
+  fi
+# 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" >`(dirname $ac_file) 2>/dev/null ||
+$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
+done
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF
+
+#
+# CONFIG_COMMANDS section.
+#
+for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
+  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
+  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
+  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
+$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+         X"$ac_dest" : 'X\(//\)[^/]' \| \
+         X"$ac_dest" : 'X\(//\)$' \| \
+         X"$ac_dest" : 'X\(/\)' \| \
+         .     : '\(.\)' 2>/dev/null ||
+echo X"$ac_dest" |
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+  	  /^X\(\/\/\)$/{ s//\1/; q; }
+  	  /^X\(\/\).*/{ s//\1/; q; }
+  	  s/.*/./; q'`
+  ac_builddir=.
+
+if test "$ac_dir" != .; then
+  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
+  # A "../" for each directory in $ac_dir_suffix.
+  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
+else
+  ac_dir_suffix= ac_top_builddir=
+fi
+
+case $srcdir in
+  .)  # No --srcdir option.  We are building in place.
+    ac_srcdir=.
+    if test -z "$ac_top_builddir"; then
+       ac_top_srcdir=.
+    else
+       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
+    fi ;;
+  [\\/]* | ?:[\\/]* )  # Absolute path.
+    ac_srcdir=$srcdir$ac_dir_suffix;
+    ac_top_srcdir=$srcdir ;;
+  *) # Relative path.
+    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
+    ac_top_srcdir=$ac_top_builddir$srcdir ;;
+esac
+# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
+# absolute.
+ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
+ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
+ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
+ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
+
+
+  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
+echo "$as_me: executing $ac_dest commands" >&6;}
+  case $ac_dest in
+    depfiles ) 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=`(dirname "$mf") 2>/dev/null ||
+$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 -e '/^DEPDIR = / s///p' < "$mf"`
+  test -z "$DEPDIR" && continue
+  # When using ansi2knr, U may be empty or an underscore; expand it
+  U=`sed -n -e '/^U = / s///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 -e '
+    /^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=`(dirname "$file") 2>/dev/null ||
+$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'`
+    { if $as_mkdir_p; then
+    mkdir -p $dirpart/$fdir
+  else
+    as_dir=$dirpart/$fdir
+    as_dirs=
+    while test ! -d "$as_dir"; do
+      as_dirs="$as_dir $as_dirs"
+      as_dir=`(dirname "$as_dir") 2>/dev/null ||
+$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'`
+    done
+    test ! -n "$as_dirs" || mkdir $as_dirs
+  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
+echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
+   { (exit 1); exit 1; }; }; }
+
+    # echo "creating $dirpart/$file"
+    echo '# dummy' > "$dirpart/$file"
+  done
+done
+ ;;
+    default-1 ) case "$CONFIG_FILES" in *po/Makefile.in*)
+        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
+      esac ;;
+  esac
+done
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF
+
+{ (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
+
+


Property changes on: packages/gpsdrive/branches/etch/configure
___________________________________________________________________
Name: svn:executable
   + *

Added: packages/gpsdrive/branches/etch/configure-stamp
===================================================================

Added: packages/gpsdrive/branches/etch/configure.ac
===================================================================
--- packages/gpsdrive/branches/etch/configure.ac	                        (rev 0)
+++ packages/gpsdrive/branches/etch/configure.ac	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,294 @@
+dnl configure.ac for Gpsdrive
+dnl Copyright (c) 2001-2004 Fritz Ganter <ganter at ganter.at>
+dnl $Id: configure.ac,v 1.62 2004/03/03 20:46:47 ganter Exp $
+
+AC_INIT(gpsdrive, 2.09, ganter at ganter.at)
+AC_CONFIG_SRCDIR(foo.c)
+AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
+AC_SUBST(FRIENDSSERVERVERSION,'2')
+
+AC_CONFIG_SRCDIR(src/gpsdrive.c)
+AC_CONFIG_HEADER(config.h)
+
+ALL_LINGUAS="de es fr it da nl tr de_AT hu sk sv no pt_BR gr ja"
+
+
+dnl ************************
+dnl Compiler options
+dnl ************************
+AC_PROG_LIBTOOL
+
+AC_PROG_CC
+AC_ISC_POSIX
+AC_C_INLINE
+AC_PROG_INSTALL
+AC_PROG_CXX
+AC_HEADER_STDC
+AC_PROG_AWK
+AC_PROG_INSTALL
+AC_PROG_LN_S
+
+echo "Using $CC compiler"
+
+if test "$CC" = "gcc" ; then
+
+if $CC -dumpversion|egrep -q "^3\.*"; then
+echo "GCC ok"
+else
+echo "*****************************************"
+echo "You need a gcc >= 3.x to compile GpsDrive"
+echo "*****************************************"
+exit
+fi
+
+fi
+
+
+UNAMEP=`uname -p`
+ARCHP=`arch`
+CFLAGS="$CFLAGS"
+
+AC_ARG_WITH(debug,
+[  --with-debug            compiles with -g],[
+        OPT_CFLAGS=""
+	CFLAGS=""
+	echo "Ignoring optimizing flags; using debugging flags: $OPT_CFLAGS"
+])
+
+AC_ARG_ENABLE(auto-optimization, 
+		AC_HELP_STRING([--enable-auto-optimization],
+				[try to automatically determine the most optimal build options for your architecture]),
+
+		UNAMEP=`uname -p`
+		if test "x$UNAMEP" = "xunknown"; then
+			UNAMEP=`grep "model name" /proc/cpuinfo | cut -d: -f2`
+		fi
+
+echo $UNAMEP
+		if $CC -dumpversion|egrep -q "^3\.3.*"; then
+# gcc-3.3
+			if echo $UNAMEP|grep -q "Intel(R) Pentium(R) 4 CPU"; then
+				MARCH=-march=pentium4
+			elif echo $UNAMEP|grep -q "Pentium III"; then
+				MARCH=-march=pentium3
+			elif echo $UNAMEP|grep -q "AMD-K6(tm) 3D"; then
+				MARCH=-march=k6-2
+			elif echo $UNAMEP|grep -q "Pentium 75 - 200"; then
+				MARCH=-march=pentium
+			elif echo $UNAMEP|grep -q "Pentium II"; then
+				MARCH=-march=pentium2
+			elif echo $UNAMEP|grep -q "AMD Athlon(..) XP"; then
+				MARCH=-march=athlon-xp
+			else
+				MARCH=""
+			fi
+			OPT_CFLAGS="-O3 $MARCH -fomit-frame-pointer -fno-exceptions  -pipe -s -ffast-math -fexpensive-optimizations -falign-functions -falign-loops -funroll-loops -mfpmath=sse"
+		elif $CC -dumpversion|egrep -q "^3\.0.*"; then
+# gcc-3.0
+			OPT_CFLAGS="-O3 -fomit-frame-pointer -fno-exceptions  -pipe -s -ffast-math -fexpensive-optimizations -falign-functions -falign-loops "
+		elif $CC -dumpversion | egrep -q "^2\.95.*" ; then
+# gcc-2.95
+			if echo $UNAMEP|egrep -q "(Pentium III|Pentium II|Pentium\(R\) 4|Athlon)"; then
+				MARCH=-march=pentiumpro
+			elif echo $UNAMEP|grep -q "AMD-K6"; then
+				MARCH=-march=k6
+			elif echo $UNAMEP|grep -q "Pentium 75 - 200"; then
+				MARCH=-march=pentium
+			else 
+				MARCH=""
+			fi
+			OPT_CFLAGS="$MARCH -O3 -fomit-frame-pointer -fno-exceptions  -pipe -s -ffast-math -fexpensive-optimizations"
+		else
+			echo "warning: compiler is not known: not optimizing!"
+		fi
+		echo "compiler optimizing flags: $OPT_CFLAGS"
+)
+
+AC_ARG_ENABLE(gcc3-optimization, 
+		AC_HELP_STRING([--enable-gcc3-optimization=type],
+				[gcc3 can optimize for: i386, i486, pentium, pentium-mmx, pentiumpro, pentium2, pentium3, pentium4, k6, k6-2, k6-3, athlon, athlon-tbird, athlon-4, athlon-xp, athlon-mp, winchip-c6, winchip2, c3]),
+		if $CC -dumpversion|egrep -q "^3\..*"; then
+			OPT_CFLAGS="-O3 -march=$enableval -fomit-frame-pointer -fno-exceptions  -pipe -s -ffast-math -fexpensive-optimizations -falign-functions -falign-loops"
+			echo "compiler optimizing flags: $OPT_CFLAGS"
+		else
+			echo "warning: compiler is not gcc3: not optimizing!"
+		fi
+)
+
+AC_ARG_ENABLE(gcc2-optimization, 
+		AC_HELP_STRING([--enable-gcc2-optimization=type],
+				[gcc2 can optimize for: i386, i486, pentium, pentiumpro, k6]),
+		if $CC -dumpversion | egrep -q "^2\..*" ; then
+			OPT_CFLAGS="-O3 -march=$enableval -fomit-frame-pointer -fno-exceptions  -pipe -s -ffast-math -fexpensive-optimizations"
+			echo "compiler optimizing flags: $OPT_CFLAGS"
+		else 
+			echo "warning: compiler is not gcc2: not optimizing!"
+		fi
+)
+
+AC_PROG_INSTALL
+
+CFLAGS="$CFLAGS -g -Wall -Wno-format-y2k -pipe $OPT_CFLAGS"
+
+dnl ************************
+dnl Check for standard headers
+dnl ************************
+
+AC_HEADER_STDC
+AC_CHECK_SOCKLEN_T
+
+dnl ************************
+dnl Checks for libraries
+dnl ************************
+
+PKG_CHECK_MODULES(PKGCONFIG, gtk+-2.0 >= 2.0.6  gthread-2.0)
+LIBS="$LIBS $PKGCONFIG_LIBS"
+CFLAGS="$CFLAGS $PKGCONFIG_CFLAGS"
+
+AC_PATH_PROG(PCRE_CONFIG, pcre-config, no)
+if test "x$PCRE_CONFIG" = "xno" ; then
+	AC_MSG_ERROR(pcre-config not found please install libpcre3-dev or similar)
+else 
+	LIBS="$LIBS `$PCRE_CONFIG --libs`"
+	CFLAGS="$CFLAGS `$PCRE_CONFIG --cflags`"
+fi
+
+
+localedir='${prefix}/share/locale'
+AC_SUBST(localedir)
+
+dnl ************************
+dnl Checks for header files.
+dnl ************************
+AC_CHECK_HEADERS(sys/types.h sys/termios.h termio.h termios.h sys/stat.h fcntl.h stdio.h unistd.h  netdb.h X11/X.h linux/inet.h sys/ioctl.h)
+
+dnl ************************
+dnl crypt.h and libcrypt
+dnl ************************
+AC_CHECK_HEADERS(crypt.h)
+AC_CHECK_LIB(crypt,crypt)
+
+dnl ************************
+dnl check dynamic loading flags
+dnl ************************
+AC_LTDL_DLLIB
+AC_LTDL_DLSYM_USCORE
+# putting this here gets the option enabled, but program segfaults
+# putting a non-conditional CFLAGS="$CFLAGS -Ddlsym..." early in
+# configure.ac works correctly, but putting the two AC_ and the
+# conditional CFLAGS= does not.
+#if test x"$libltdl_cv_need_uscore" = xyes; then
+#    AC_SUBST(DLSYM_CFLAGS,'-Ddlsym=dlsym_prepend_underscore') 
+#fi
+ 
+dnl Checks select argument types
+AC_FUNC_SELECT_ARGTYPES
+AC_HEADER_TIME
+
+dnl ************************
+dnl Program locations
+dnl ************************
+
+AC_PREFIX_DEFAULT("/usr/local")
+
+if test "${prefix}" == "NONE"; then
+	prefix=${ac_default_prefix}
+	AC_SUBST(prefix)
+fi
+
+pkgdatadir=${datadir}/${PACKAGE}/
+AC_SUBST(pkgdatadir)
+
+dnl *******************************
+dnl   GETTEXT
+dnl *******************************
+AM_GLIB_GNU_GETTEXT
+AC_PATH_PROG(MSGMERGE, msgmerge, /usr/bin/msgmerge)
+GETTEXT_PACKAGE=gpsdrive
+AC_SUBST(GETTEXT_PACKAGE)
+dnl AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE")
+AC_DEFINE([GETTEXT_PACKAGE],"gpsdrive", this is the gettext domain name)
+if test "$GMSGFMT" = "no"; then
+	echo "no gmsgfmt - NLS disabled"
+	USE_NLS=no
+fi
+if test "$MSGFMT" = "no" ; then
+	echo "no msfmt - NLS disabled"
+	USE_NLS=no
+fi
+if test "$USE_NLS" = "yes" ; then
+	AC_DEFINE(ENABLE_NLS)
+fi
+
+AC_ARG_ENABLE(garmin,
+[  --disable-garmin        compiles without GARMIN protocol support],[
+	case "${enableval}" in
+		yes) echo "enable GARMIN protocol support" ;;
+		no)  echo "disable GARMIN protocol support" 
+			AC_SUBST(NOGARMIN,'-DNOGARMIN') 
+			disablegarmin=true 
+			CXX=$CC ;;
+		*) AC_MSG_ERROR(bad value ${enableval} for --enable-garmin) ;;
+	esac
+])
+AM_CONDITIONAL(DISABLEGARMIN, test x$disablegarmin = xtrue)
+
+AC_ARG_ENABLE(plugins,
+[  --disable-plugins       disable use of plugin modules],[
+	case "${enableval}" in
+		yes) echo "enable plugin support" ;;
+		no)  echo "disable plugin support" 
+			AC_SUBST(NOPLUGINS,'-DNOPLUGINS') 
+			disableplugins=true ;;
+		*) AC_MSG_ERROR(bad value ${enableval} for --enable-plugins) ;;
+	esac
+])
+AM_CONDITIONAL(DISABLEPLUGINS, test x$disableplugins = xtrue)
+
+
+AC_ARG_ENABLE(teleatlas,
+AC_HELP_STRING([--enable-teleatlas],[enable street navigation using Teleatlas maps, needs gpsnavlib. Ignore this option until announced at www.gpsdrive.cc ]),[
+	case "${enableval}" in
+		no) echo "disable street navigation support" ;;
+		yes)  echo "enable street navigation using Teleatlas maps, needs gpsnavlib" 
+			AC_SUBST(USETELEATLAS,'-DUSETELEATLAS') 
+			enableteleatlas=true ;;
+		*) AC_MSG_ERROR(bad value ${enableval} for --enable-teleatlas) ;;
+	esac
+])
+AM_CONDITIONAL(ENABLETELEATLAS, test x$enableteleatlas = xtrue)
+
+
+
+dnl ************************
+dnl crypt.h and libcrypt
+dnl ************************
+AC_CHECK_HEADERS(crypt.h)
+AC_CHECK_LIB(crypt,crypt)
+
+dnl ************************
+dnl GNU getopt
+dnl ************************
+AC_CHECK_DECLS(getopt)
+
+dnl ************************
+dnl check dynamic loading flags
+dnl ************************
+AC_LTDL_DLLIB
+AC_LTDL_DLSYM_USCORE
+# putting this here gets the option enabled, but program segfaults
+# putting a non-conditional CFLAGS="$CFLAGS -Ddlsym..." early in
+# configure.ac works correctly, but putting the two AC_ and the
+# conditional CFLAGS= does not.
+#if test x"$libltdl_cv_need_uscore" = xyes; then
+#    AC_SUBST(DLSYM_CFLAGS,'-Ddlsym=dlsym_prepend_underscore') 
+#fi
+
+CFLAGS="$CFLAGS -Imysql"
+
+CFLAGS="$CFLAGS $OPT_CFLAGS"
+CXXFLAGS="$CXXFLAGS $OPT_CFLAGS"
+
+AC_CONFIG_FILES(Makefile src/Makefile  man/Makefile man/de/Makefile man/es/Makefile po/Makefile.in)
+AC_OUTPUT
+

Added: packages/gpsdrive/branches/etch/create.sql
===================================================================
--- packages/gpsdrive/branches/etch/create.sql	                        (rev 0)
+++ packages/gpsdrive/branches/etch/create.sql	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,33 @@
+--- gpsdrive 1.29
+
+CREATE DATABASE /*!32312 IF NOT EXISTS*/ geoinfo;
+
+USE geoinfo;
+
+--
+-- Table structure for table 'waypoints'
+--
+CREATE TABLE waypoints (
+  name char(40) default '',
+  type char(40) default '',
+  id int(11) NOT NULL auto_increment,
+  lat double default '0',
+  lon double default '0',
+  comment char(160) default '',
+  wep int(11) NOT NULL default '0',
+  macaddr char(20) default '0',
+  nettype int(11) NOT NULL default '0',
+  typenr int(11) default NULL,
+  PRIMARY KEY  (id),
+  KEY macindex (macaddr),
+  KEY descrid (type),
+  KEY namekey (name),
+  KEY typenr (typenr)
+) TYPE=MyISAM;
+
+
+grant select,insert,update,delete on geoinfo.* to gast at localhost identified by 'gast';
+flush privileges;
+INSERT INTO waypoints VALUES ('Lisa','Fritz',59,53.5626,9.9574,'',0,'0',0,NULL);
+quit
+

Added: packages/gpsdrive/branches/etch/depcomp
===================================================================
--- packages/gpsdrive/branches/etch/depcomp	                        (rev 0)
+++ packages/gpsdrive/branches/etch/depcomp	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,411 @@
+#! /bin/sh
+
+# depcomp - compile a program generating dependencies as side-effects
+# Copyright 1999, 2000 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 <oliva at dcc.unicamp.br>.
+
+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'.
+
+depfile=${depfile-`echo "$object" | sed 's,\([^/]*\)$,.deps/\1,;s/\.\([^.]*\)$/.P\1/'`}
+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.  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.
+  stripped=`echo "$object" | sed -e 's,^.*/,,' -e 's/\(.*\)\..*$/\1/'`
+  tmpdepfile="$stripped.u"
+  outname="$stripped.o"
+  if test "$libtool" = yes; then
+    "$@" -Wc,-M
+  else
+    "$@" -M
+  fi
+
+  stat=$?
+  if test $stat -eq 0; then :
+  else
+    rm -f "$tmpdepfile"
+    exit $stat
+  fi
+
+  if test -f "$tmpdepfile"; then
+    # Each line is of the form `foo.o: dependent.h'.
+    # Do two passes, one to just change these to
+    # `$object: dependent.h' and one to simply `dependent.h:'.
+    sed -e "s,^$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"
+  ;;
+
+tru64)
+   # The Tru64 AIX 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.
+
+   tmpdepfile1="$object.d"
+   tmpdepfile2=`echo "$object" | sed -e 's/.o$/.d/'` 
+   if test "$libtool" = yes; then
+      "$@" -Wc,-MD
+   else
+      "$@" -MD
+   fi
+
+   stat=$?
+   if test $stat -eq 0; then :
+   else
+      rm -f "$tmpdepfile1" "$tmpdepfile2"
+      exit $stat
+   fi
+
+   if test -f "$tmpdepfile1"; then
+      tmpdepfile="$tmpdepfile1"
+   else
+      tmpdepfile="$tmpdepfile2"
+   fi
+   if test -f "$tmpdepfile"; then
+      sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
+      # That's a space and a tab 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 proprocessed file to stdout, regardless of -o,
+  # because we must use -o when running libtool.
+  test -z "$dashmflag" && dashmflag=-M
+  ( IFS=" "
+    case " $* " in
+    *" --mode=compile "*) # this is libtool, let us make it quiet
+      for arg
+      do # cycle over the arguments
+        case "$arg" in
+	"--mode=compile")
+	  # insert --quiet before "--mode=compile"
+	  set fnord "$@" --quiet
+	  shift # fnord
+	  ;;
+	esac
+	set fnord "$@" "$arg"
+	shift # fnord
+	shift # "$arg"
+      done
+      ;;
+    esac
+    "$@" $dashmflag | sed 's:^[^:]*\:[ 	]*:'"$object"'\: :' > "$tmpdepfile"
+  ) &
+  proc=$!
+  "$@"
+  stat=$?
+  wait "$proc"
+  if test "$stat" != 0; then exit $stat; fi
+  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)
+  # 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;;
+	-*)
+	  ;;
+	*)
+	  set fnord "$@" "$arg"; shift;;
+      esac
+    done
+    obj_suffix="`echo $object | sed 's/^.*\././'`"
+    touch "$tmpdepfile"
+    ${MAKEDEPEND-makedepend} 2>/dev/null -o"$obj_suffix" -f"$tmpdepfile" "$@"
+  ) &
+  proc=$!
+  "$@"
+  stat=$?
+  wait "$proc"
+  if test "$stat" != 0; then exit $stat; fi
+  rm -f "$depfile"
+  cat < "$tmpdepfile" > "$depfile"
+  tail +3 "$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 proprocessed file to stdout, regardless of -o,
+  # because we must use -o when running libtool.
+  ( IFS=" "
+    case " $* " in
+    *" --mode=compile "*)
+      for arg
+      do # cycle over the arguments
+        case $arg in
+	"--mode=compile")
+	  # insert --quiet before "--mode=compile"
+	  set fnord "$@" --quiet
+	  shift # fnord
+	  ;;
+	esac
+	set fnord "$@" "$arg"
+	shift # fnord
+	shift # "$arg"
+      done
+      ;;
+    esac
+    "$@" -E |
+    sed -n '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
+    sed '$ s: \\$::' > "$tmpdepfile"
+  ) &
+  proc=$!
+  "$@"
+  stat=$?
+  wait "$proc"
+  if test "$stat" != 0; then exit $stat; fi
+  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 proprocessed file to stdout, regardless of -o,
+  # because we must use -o when running libtool.
+  ( IFS=" "
+    case " $* " in
+    *" --mode=compile "*)
+      for arg
+      do # cycle over the arguments
+        case $arg in
+	"--mode=compile")
+	  # insert --quiet before "--mode=compile"
+	  set fnord "$@" --quiet
+	  shift # fnord
+	  ;;
+	esac
+	set fnord "$@" "$arg"
+	shift # fnord
+	shift # "$arg"
+      done
+      ;;
+    esac
+    "$@" -E |
+    sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
+  ) &
+  proc=$!
+  "$@"
+  stat=$?
+  wait "$proc"
+  if test "$stat" != 0; then exit $stat; fi
+  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


Property changes on: packages/gpsdrive/branches/etch/depcomp
___________________________________________________________________
Name: svn:executable
   + *

Added: packages/gpsdrive/branches/etch/gpsdrive.desktop
===================================================================
--- packages/gpsdrive/branches/etch/gpsdrive.desktop	                        (rev 0)
+++ packages/gpsdrive/branches/etch/gpsdrive.desktop	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=GpsDrive
+Comment=GPS Navigation
+Comment[de]=GPS Navigationsprogramm
+Exec=gpsdrive
+Icon=gpsicon.png
+Terminal=false
+Type=Application
+Categories=Application;Network;
+StartupNotify=true

Added: packages/gpsdrive/branches/etch/install-sh
===================================================================
--- packages/gpsdrive/branches/etch/install-sh	                        (rev 0)
+++ packages/gpsdrive/branches/etch/install-sh	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,251 @@
+#!/bin/sh
+#
+# install - install a program, script, or datafile
+# This comes from X11R5 (mit/util/scripts/install.sh).
+#
+# Copyright 1991 by the Massachusetts Institute of Technology
+#
+# Permission to use, copy, modify, distribute, and sell this software and its
+# documentation for any purpose is hereby granted without fee, provided that
+# the above copyright notice appear in all copies and that both that
+# copyright notice and this permission notice appear in supporting
+# documentation, and that the name of M.I.T. not be used in advertising or
+# publicity pertaining to distribution of the software without specific,
+# written prior permission.  M.I.T. makes no representations about the
+# suitability of this software for any purpose.  It is provided "as is"
+# without express or implied warranty.
+#
+# 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=""
+
+while [ x"$1" != x ]; do
+    case $1 in
+	-c) instcmd="$cpprog"
+	    shift
+	    continue;;
+
+	-d) dir_arg=true
+	    shift
+	    continue;;
+
+	-m) chmodcmd="$chmodprog $2"
+	    shift
+	    shift
+	    continue;;
+
+	-o) chowncmd="$chownprog $2"
+	    shift
+	    shift
+	    continue;;
+
+	-g) chgrpcmd="$chgrpprog $2"
+	    shift
+	    shift
+	    continue;;
+
+	-s) stripcmd="$stripprog"
+	    shift
+	    continue;;
+
+	-t=*) transformarg=`echo $1 | sed 's/-t=//'`
+	    shift
+	    continue;;
+
+	-b=*) transformbasename=`echo $1 | sed 's/-b=//'`
+	    shift
+	    continue;;
+
+	*)  if [ x"$src" = x ]
+	    then
+		src=$1
+	    else
+		# this colon is to work around a 386BSD /bin/sh bug
+		:
+		dst=$1
+	    fi
+	    shift
+	    continue;;
+    esac
+done
+
+if [ x"$src" = x ]
+then
+	echo "install:	no input file specified"
+	exit 1
+else
+	true
+fi
+
+if [ x"$dir_arg" != x ]; then
+	dst=$src
+	src=""
+	
+	if [ -d $dst ]; then
+		instcmd=:
+		chmodcmd=""
+	else
+		instcmd=mkdir
+	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 [ -f $src -o -d $src ]
+	then
+		true
+	else
+		echo "install:  $src does not exist"
+		exit 1
+	fi
+	
+	if [ x"$dst" = x ]
+	then
+		echo "install:	no destination specified"
+		exit 1
+	else
+		true
+	fi
+
+# If destination is a directory, append the input filename; if your system
+# does not like double slashes in filenames, you may need to add some logic
+
+	if [ -d $dst ]
+	then
+		dst="$dst"/`basename $src`
+	else
+		true
+	fi
+fi
+
+## this sed command emulates the dirname command
+dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
+
+# Make sure that the destination directory exists.
+#  this part is taken from Noah Friedman's mkinstalldirs script
+
+# Skip lots of stat calls in the usual case.
+if [ ! -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 [ $# -ne 0 ] ; do
+	pathcomp="${pathcomp}${1}"
+	shift
+
+	if [ ! -d "${pathcomp}" ] ;
+        then
+		$mkdirprog "${pathcomp}"
+	else
+		true
+	fi
+
+	pathcomp="${pathcomp}/"
+done
+fi
+
+if [ x"$dir_arg" != x ]
+then
+	$doit $instcmd $dst &&
+
+	if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
+	if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
+	if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
+	if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
+else
+
+# If we're going to rename the final executable, determine the name now.
+
+	if [ x"$transformarg" = x ] 
+	then
+		dstfile=`basename $dst`
+	else
+		dstfile=`basename $dst $transformbasename | 
+			sed $transformarg`$transformbasename
+	fi
+
+# don't allow the sed command to completely eliminate the filename
+
+	if [ x"$dstfile" = x ] 
+	then
+		dstfile=`basename $dst`
+	else
+		true
+	fi
+
+# Make a temp file name in the proper directory.
+
+	dsttmp=$dstdir/#inst.$$#
+
+# Move or copy the file name to the temp name
+
+	$doit $instcmd $src $dsttmp &&
+
+	trap "rm -f ${dsttmp}" 0 &&
+
+# 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.
+
+	if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
+	if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
+	if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
+	if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
+
+# Now rename the file to the real destination.
+
+	$doit $rmcmd -f $dstdir/$dstfile &&
+	$doit $mvcmd $dsttmp $dstdir/$dstfile 
+
+fi &&
+
+
+exit 0


Property changes on: packages/gpsdrive/branches/etch/install-sh
___________________________________________________________________
Name: svn:executable
   + *

Added: packages/gpsdrive/branches/etch/libtool
===================================================================
--- packages/gpsdrive/branches/etch/libtool	                        (rev 0)
+++ packages/gpsdrive/branches/etch/libtool	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,5288 @@
+#! /bin/sh
+
+# libtool - Provide generalized library-building support services.
+# Generated automatically by  (GNU gpsdrive 2.09)
+# NOTE: Changes made to this file will be lost: look at ltmain.sh.
+#
+# Copyright (C) 1996-2000 Free Software Foundation, Inc.
+# Originally by Gordon Matzigkeit <gord at gnu.ai.mit.edu>, 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., 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.
+
+# A sed that does not truncate output.
+SED="/bin/sed"
+
+# Sed that helps us avoid accidentally triggering echo(1) options like -n.
+Xsed="/bin/sed -e s/^X//"
+
+# The HP-UX ksh and POSIX shell print the target directory to stdout
+# if CDPATH is set.
+if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
+
+# ### BEGIN LIBTOOL CONFIG
+
+# Libtool was configured on host thorn:
+
+# Shell to use when invoking shell scripts.
+SHELL="/bin/sh"
+
+# Whether or not to build shared libraries.
+build_libtool_libs=yes
+
+# Whether or not to build static libraries.
+build_old_libs=yes
+
+# Whether or not to add -lc for building shared libraries.
+build_libtool_need_lc=no
+
+# Whether or not to optimize for fast installation.
+fast_install=yes
+
+# The host system.
+host_alias=
+host=i686-pc-linux
+
+# An echo program that does not interpret backslashes.
+echo="echo"
+
+# The archiver.
+AR="ar"
+AR_FLAGS="cru"
+
+# The default C compiler.
+CC="gcc"
+
+# Is the compiler the GNU C compiler?
+with_gcc=yes
+
+# The linker used to build libraries.
+LD="/usr/bin/ld"
+
+# Whether we need hard or soft links.
+LN_S="ln -s"
+
+# A BSD-compatible nm program.
+NM="/usr/bin/nm -B"
+
+# A symbol stripping program
+STRIP=strip
+
+# Used to examine libraries when file_magic_cmd begins "file"
+MAGIC_CMD=file
+
+# Used on cygwin: DLL creation program.
+DLLTOOL="dlltool"
+
+# Used on cygwin: object dumper.
+OBJDUMP="objdump"
+
+# Used on cygwin: assembler.
+AS=
+
+# The name of the directory that contains temporary libtool files.
+objdir=.libs
+
+# How to create reloadable object files.
+reload_flag=" -r"
+reload_cmds="\$LD\$reload_flag -o \$output\$reload_objs"
+
+# How to pass a linker flag through the compiler.
+wl="-Wl,"
+
+# Object file suffix (normally "o").
+objext="o"
+
+# Old archive suffix (normally "a").
+libext="a"
+
+# Executable file suffix (normally "").
+exeext=""
+
+# Additional compiler flags for building library objects.
+pic_flag=" -fPIC"
+pic_mode=default
+
+# Does compiler simultaneously support -c and -o options?
+compiler_c_o="yes"
+
+# Can we write directly to a .lo ?
+compiler_o_lo="yes"
+
+# Must we lock files when doing compilation ?
+need_locks="no"
+
+# Do we need the lib prefix for modules?
+need_lib_prefix=no
+
+# Do we need a version for libraries?
+need_version=no
+
+# Whether dlopen is supported.
+dlopen_support=unknown
+
+# Whether dlopen of programs is supported.
+dlopen_self=unknown
+
+# Whether dlopen of statically linked programs is supported.
+dlopen_self_static=unknown
+
+# Compiler flag to prevent dynamic linking.
+link_static_flag="-static"
+
+# Compiler flag to turn off builtin functions.
+no_builtin_flag=" -fno-builtin -fno-rtti -fno-exceptions"
+
+# Compiler flag to allow reflexive dlopens.
+export_dynamic_flag_spec="\${wl}--export-dynamic"
+
+# Compiler flag to generate shared objects directly from archives.
+whole_archive_flag_spec="\${wl}--whole-archive\$convenience \${wl}--no-whole-archive"
+
+# Compiler flag to generate thread-safe objects.
+thread_safe_flag_spec=""
+
+# Library versioning type.
+version_type=linux
+
+# Format of library name prefix.
+libname_spec="lib\$name"
+
+# List of archive names.  First name is the real one, the rest are links.
+# The last name is the one that the linker finds with -lNAME.
+library_names_spec="\${libname}\${release}.so\$versuffix \${libname}\${release}.so\$major \$libname.so"
+
+# The coded name of the library, if different from the real name.
+soname_spec="\${libname}\${release}.so\$major"
+
+# Commands used to build and install an old-style archive.
+RANLIB="ranlib"
+old_archive_cmds="\$AR \$AR_FLAGS \$oldlib\$oldobjs\$old_deplibs~\$RANLIB \$oldlib"
+old_postinstall_cmds="\$RANLIB \$oldlib~chmod 644 \$oldlib"
+old_postuninstall_cmds=""
+
+# Create an old-style archive from a shared archive.
+old_archive_from_new_cmds=""
+
+# Create a temporary old-style archive to link instead of a shared archive.
+old_archive_from_expsyms_cmds=""
+
+# Commands used to build and install a shared archive.
+archive_cmds="\$CC -shared \$libobjs \$deplibs \$compiler_flags \${wl}-soname \$wl\$soname -o \$lib"
+archive_expsym_cmds="\$CC -shared \$libobjs \$deplibs \$compiler_flags \${wl}-soname \$wl\$soname \${wl}-retain-symbols-file \$wl\$export_symbols -o \$lib"
+postinstall_cmds=""
+postuninstall_cmds=""
+
+# Commands to strip libraries.
+old_striplib="strip --strip-debug"
+striplib="strip --strip-unneeded"
+
+# Method to check whether dependent libraries are shared objects.
+deplibs_check_method="pass_all"
+
+# Command to use when deplibs_check_method == file_magic.
+file_magic_cmd="\$MAGIC_CMD"
+
+# Flag that allows shared libraries with undefined symbols to be built.
+allow_undefined_flag=""
+
+# Flag that forces no undefined symbols.
+no_undefined_flag=""
+
+# Commands used to finish a libtool library installation in a directory.
+finish_cmds="PATH=\\\"\\\$PATH:/sbin\\\" ldconfig -n \$libdir"
+
+# Same as above, but a single script fragment to be evaled but not shown.
+finish_eval=""
+
+# Take the output of nm and produce a listing of raw symbols and C names.
+global_symbol_pipe="sed -n -e 's/^.*[ 	]\\([ABCDGISTW][ABCDGISTW]*\\)[ 	][ 	]*\\(\\)\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 \\2\\3 \\3/p'"
+
+# Transform the output of nm in a proper C declaration
+global_symbol_to_cdecl="sed -n -e 's/^. .* \\(.*\\)\$/extern char \\1;/p'"
+
+# Transform the output of nm in a C name address pair
+global_symbol_to_c_name_address="sed -n -e 's/^: \\([^ ]*\\) \$/  {\\\"\\1\\\", (lt_ptr) 0},/p' -e 's/^[BCDEGRST] \\([^ ]*\\) \\([^ ]*\\)\$/  {\"\\2\", (lt_ptr) \\&\\2},/p'"
+
+# This is the shared library runtime path variable.
+runpath_var=LD_RUN_PATH
+
+# This is the shared library path variable.
+shlibpath_var=LD_LIBRARY_PATH
+
+# Is shlibpath searched before the hard-coded library search path?
+shlibpath_overrides_runpath=no
+
+# How to hardcode a shared library path into an executable.
+hardcode_action=immediate
+
+# Whether we should hardcode library paths into libraries.
+hardcode_into_libs=yes
+
+# Flag to hardcode $libdir into a binary during linking.
+# This must work even if $libdir does not exist.
+hardcode_libdir_flag_spec="\${wl}--rpath \${wl}\$libdir"
+
+# Whether we need a single -rpath flag with a separated argument.
+hardcode_libdir_separator=""
+
+# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
+# resulting binary.
+hardcode_direct=no
+
+# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
+# resulting binary.
+hardcode_minus_L=no
+
+# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
+# the resulting binary.
+hardcode_shlibpath_var=unsupported
+
+# Variables whose values should be saved in libtool wrapper scripts and
+# restored at relink time.
+variables_saved_for_relink="PATH LD_LIBRARY_PATH LD_RUN_PATH GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
+
+# Whether libtool must link a program against all its dependency libraries.
+link_all_deplibs=unknown
+
+# Compile-time system search path for libraries
+sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
+
+# Run-time system search path for libraries
+sys_lib_dlsearch_path_spec="/lib /usr/lib"
+
+# Fix the shell variable $srcfile for the compiler.
+fix_srcfile_path=""
+
+# Set to yes if exported symbols are required.
+always_export_symbols=no
+
+# The commands to list exported symbols.
+export_symbols_cmds="\$NM \$libobjs \$convenience | \$global_symbol_pipe | sed 's/.* //' | sort | uniq > \$export_symbols"
+
+# The commands to extract the exported symbol list from a shared archive.
+extract_expsyms_cmds=""
+
+# Symbols that should not be listed in the preloaded symbols.
+exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
+
+# Symbols that must always be exported.
+include_expsyms=""
+
+# ### END LIBTOOL CONFIG
+
+# 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
+# Free Software Foundation, Inc.
+# Originally by Gordon Matzigkeit <gord at gnu.ai.mit.edu>, 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., 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.
+
+# 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 "$0" --no-reexec ${1+"$@"}
+fi
+
+if test "X$1" = X--fallback-echo; then
+  # used as fallback echo
+  shift
+  cat <<EOF
+$*
+EOF
+  exit 0
+fi
+
+# The name of this program.
+progname=`$echo "$0" | sed 's%^.*/%%'`
+modename="$progname"
+
+# Constants.
+PROGRAM=ltmain.sh
+PACKAGE=libtool
+VERSION=1.4.2
+TIMESTAMP=" (1.922.2.53 2001/09/11 03:18:52)"
+
+default_mode=
+help="Try \`$progname --help' for more information."
+magic="%%%MAGIC variable%%%"
+mkdir="mkdir"
+mv="mv -f"
+rm="rm -f"
+
+# 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='s/\([\\`\\"$\\\\]\)/\\\1/g'
+SP2NL='tr \040 \012'
+NL2SP='tr \015\012 \040\040'
+
+# NLS nuisances.
+# Only set LANG and LC_ALL to C if already set.
+# These must not be set unconditionally because not all systems understand
+# e.g. LANG=C (notably SCO).
+# We save the old values to restore during execute mode.
+if test "${LC_ALL+set}" = set; then
+  save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
+fi
+if test "${LANG+set}" = set; then
+  save_LANG="$LANG"; LANG=C; export LANG
+fi
+
+# Make sure IFS has a sensible default
+: ${IFS=" 	"}
+
+if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
+  echo "$modename: not configured to build any kind of library" 1>&2
+  echo "Fatal configuration error.  See the $PACKAGE docs for more information." 1>&2
+  exit 1
+fi
+
+# Global variables.
+mode=$default_mode
+nonopt=
+prev=
+prevopt=
+run=
+show="$echo"
+show_help=
+execute_dlfiles=
+lo2o="s/\\.lo\$/.${objext}/"
+o2lo="s/\\.${objext}\$/.lo/"
+
+# 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"
+      ;;
+    *)
+      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"
+    exit 0
+    ;;
+
+  --config)
+    sed -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $0
+    exit 0
+    ;;
+
+  --debug)
+    echo "$progname: enabling shell trace mode"
+    set -x
+    ;;
+
+  --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 0
+    ;;
+
+  --finish) mode="finish" ;;
+
+  --mode) prevopt="--mode" prev=mode ;;
+  --mode=*) mode="$optarg" ;;
+
+  --quiet | --silent)
+    show=:
+    ;;
+
+  -dlopen)
+    prevopt="-dlopen"
+    prev=execute_dlfiles
+    ;;
+
+  -*)
+    $echo "$modename: unrecognized option \`$arg'" 1>&2
+    $echo "$help" 1>&2
+    exit 1
+    ;;
+
+  *)
+    nonopt="$arg"
+    break
+    ;;
+  esac
+done
+
+if test -n "$prevopt"; then
+  $echo "$modename: option \`$prevopt' requires an argument" 1>&2
+  $echo "$help" 1>&2
+  exit 1
+fi
+
+# 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
+    case $nonopt in
+    *cc | *++ | gcc* | *-gcc*)
+      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 1
+  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=
+    prev=
+    lastarg=
+    srcfile="$nonopt"
+    suppress_output=
+
+    user_target=no
+    for arg
+    do
+      case $prev in
+      "") ;;
+      xcompiler)
+	# Aesthetically quote the previous argument.
+	prev=
+	lastarg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
+
+	case $arg in
+	# Double-quote args containing other shell metacharacters.
+	# Many Bourne shells cannot handle close brackets correctly
+	# in scan sets, so we specify it separately.
+	*[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \	]*|*]*|"")
+	  arg="\"$arg\""
+	  ;;
+	esac
+
+	# Add the previous argument to base_compile.
+	if test -z "$base_compile"; then
+	  base_compile="$lastarg"
+	else
+	  base_compile="$base_compile $lastarg"
+	fi
+	continue
+	;;
+      esac
+
+      # Accept any command-line options.
+      case $arg in
+      -o)
+	if test "$user_target" != "no"; then
+	  $echo "$modename: you cannot specify \`-o' more than once" 1>&2
+	  exit 1
+	fi
+	user_target=next
+	;;
+
+      -static)
+	build_old_libs=yes
+	continue
+	;;
+
+      -prefer-pic)
+	pic_mode=yes
+	continue
+	;;
+
+      -prefer-non-pic)
+	pic_mode=no
+	continue
+	;;
+
+      -Xcompiler)
+	prev=xcompiler
+	continue
+	;;
+
+      -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.
+	if test -z "$base_compile"; then
+	  base_compile="$lastarg"
+	else
+	  base_compile="$base_compile $lastarg"
+	fi
+	continue
+	;;
+      esac
+
+      case $user_target in
+      next)
+	# The next one is the -o target name
+	user_target=yes
+	continue
+	;;
+      yes)
+	# We got the output file
+	user_target=set
+	libobj="$arg"
+	continue
+	;;
+      esac
+
+      # Accept the current argument as the source file.
+      lastarg="$srcfile"
+      srcfile="$arg"
+
+      # Aesthetically quote the previous argument.
+
+      # Backslashify any backslashes, double quotes, and dollar signs.
+      # These are the only characters that are still specially
+      # interpreted inside of double-quoted scrings.
+      lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
+
+      # Double-quote args containing other shell metacharacters.
+      # Many Bourne shells cannot handle close brackets correctly
+      # in scan sets, so we specify it separately.
+      case $lastarg in
+      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \	]*|*]*|"")
+	lastarg="\"$lastarg\""
+	;;
+      esac
+
+      # Add the previous argument to base_compile.
+      if test -z "$base_compile"; then
+	base_compile="$lastarg"
+      else
+	base_compile="$base_compile $lastarg"
+      fi
+    done
+
+    case $user_target in
+    set)
+      ;;
+    no)
+      # Get the name of the library object.
+      libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
+      ;;
+    *)
+      $echo "$modename: you must specify a target with \`-o'" 1>&2
+      exit 1
+      ;;
+    esac
+
+    # Recognize several different file suffixes.
+    # If the user specifies -o file.o, it is replaced with file.lo
+    xform='[cCFSfmso]'
+    case $libobj in
+    *.ada) xform=ada ;;
+    *.adb) xform=adb ;;
+    *.ads) xform=ads ;;
+    *.asm) xform=asm ;;
+    *.c++) xform=c++ ;;
+    *.cc) xform=cc ;;
+    *.cpp) xform=cpp ;;
+    *.cxx) xform=cxx ;;
+    *.f90) xform=f90 ;;
+    *.for) xform=for ;;
+    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 1
+      ;;
+    esac
+
+    if test -z "$base_compile"; then
+      $echo "$modename: you must specify a compilation command" 1>&2
+      $echo "$help" 1>&2
+      exit 1
+    fi
+
+    # Delete any leftover library objects.
+    if test "$build_old_libs" = yes; then
+      removelist="$obj $libobj"
+    else
+      removelist="$libobj"
+    fi
+
+    $run $rm $removelist
+    trap "$run $rm $removelist; exit 1" 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 1" 1 2 15
+    else
+      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 "$0" "$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 1
+      fi
+      echo $srcfile > "$lockfile"
+    fi
+
+    if test -n "$fix_srcfile_path"; then
+      eval srcfile=\"$fix_srcfile_path\"
+    fi
+
+    # Only build a PIC object if we are building libtool libraries.
+    if test "$build_libtool_libs" = yes; then
+      # Without this assignment, base_compile gets emptied.
+      fbsd_hideous_sh_bug=$base_compile
+
+      if test "$pic_mode" != no; then
+	# All platforms use -DPIC, to notify preprocessed assembler code.
+	command="$base_compile $srcfile $pic_flag -DPIC"
+      else
+	# Don't build PIC code
+	command="$base_compile $srcfile"
+      fi
+      if test "$build_old_libs" = yes; then
+	lo_libobj="$libobj"
+	dir=`$echo "X$libobj" | $Xsed -e 's%/[^/]*$%%'`
+	if test "X$dir" = "X$libobj"; then
+	  dir="$objdir"
+	else
+	  dir="$dir/$objdir"
+	fi
+	libobj="$dir/"`$echo "X$libobj" | $Xsed -e 's%^.*/%%'`
+
+	if test -d "$dir"; then
+	  $show "$rm $libobj"
+	  $run $rm $libobj
+	else
+	  $show "$mkdir $dir"
+	  $run $mkdir $dir
+	  status=$?
+	  if test $status -ne 0 && test ! -d $dir; then
+	    exit $status
+	  fi
+	fi
+      fi
+      if test "$compiler_o_lo" = yes; then
+	output_obj="$libobj"
+	command="$command -o $output_obj"
+      elif test "$compiler_c_o" = yes; then
+	output_obj="$obj"
+	command="$command -o $output_obj"
+      fi
+
+      $run $rm "$output_obj"
+      $show "$command"
+      if $run eval "$command"; then :
+      else
+	test -n "$output_obj" && $run $rm $removelist
+	exit 1
+      fi
+
+      if test "$need_locks" = warn &&
+	 test x"`cat $lockfile 2>/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 1
+      fi
+
+      # Just move the object if needed, then go on to compile the next one
+      if test x"$output_obj" != x"$libobj"; then
+	$show "$mv $output_obj $libobj"
+	if $run $mv $output_obj $libobj; then :
+	else
+	  error=$?
+	  $run $rm $removelist
+	  exit $error
+	fi
+      fi
+
+      # If we have no pic_flag, then copy the object into place and finish.
+      if (test -z "$pic_flag" || test "$pic_mode" != default) &&
+	 test "$build_old_libs" = yes; then
+	# Rename the .lo from within objdir to obj
+	if test -f $obj; then
+	  $show $rm $obj
+	  $run $rm $obj
+	fi
+
+	$show "$mv $libobj $obj"
+	if $run $mv $libobj $obj; then :
+	else
+	  error=$?
+	  $run $rm $removelist
+	  exit $error
+	fi
+
+	xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
+	if test "X$xdir" = "X$obj"; then
+	  xdir="."
+	else
+	  xdir="$xdir"
+	fi
+	baseobj=`$echo "X$obj" | $Xsed -e "s%.*/%%"`
+	libobj=`$echo "X$baseobj" | $Xsed -e "$o2lo"`
+	# Now arrange that obj and lo_libobj become the same file
+	$show "(cd $xdir && $LN_S $baseobj $libobj)"
+	if $run eval '(cd $xdir && $LN_S $baseobj $libobj)'; then
+	  # Unlock the critical section if it was locked
+	  if test "$need_locks" != no; then
+	    $run $rm "$lockfile"
+	  fi
+	  exit 0
+	else
+	  error=$?
+	  $run $rm $removelist
+	  exit $error
+	fi
+      fi
+
+      # Allow error messages only from the first compilation.
+      suppress_output=' >/dev/null 2>&1'
+    fi
+
+    # Only build a position-dependent object if we build old libraries.
+    if test "$build_old_libs" = yes; then
+      if test "$pic_mode" != yes; then
+	# Don't build PIC code
+	command="$base_compile $srcfile"
+      else
+	# All platforms use -DPIC, to notify preprocessed assembler code.
+	command="$base_compile $srcfile $pic_flag -DPIC"
+      fi
+      if test "$compiler_c_o" = yes; then
+	command="$command -o $obj"
+	output_obj="$obj"
+      fi
+
+      # Suppress compiler output if we already did a PIC compilation.
+      command="$command$suppress_output"
+      $run $rm "$output_obj"
+      $show "$command"
+      if $run eval "$command"; then :
+      else
+	$run $rm $removelist
+	exit 1
+      fi
+
+      if test "$need_locks" = warn &&
+	 test x"`cat $lockfile 2>/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 1
+      fi
+
+      # Just move the object if needed
+      if 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
+
+      # Create an invalid libtool object if no PIC, so that we do not
+      # accidentally link it into a program.
+      if test "$build_libtool_libs" != yes; then
+	$show "echo timestamp > $libobj"
+	$run eval "echo timestamp > \$libobj" || exit $?
+      else
+	# Move the .lo from within objdir
+	$show "$mv $libobj $lo_libobj"
+	if $run $mv $libobj $lo_libobj; then :
+	else
+	  error=$?
+	  $run $rm $removelist
+	  exit $error
+	fi
+      fi
+    fi
+
+    # Unlock the critical section if it was locked
+    if test "$need_locks" != no; then
+      $run $rm "$lockfile"
+    fi
+
+    exit 0
+    ;;
+
+  # libtool link mode
+  link | relink)
+    modename="$modename: link"
+    case $host in
+    *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
+      # It is impossible to link a dll without this setting, and
+      # we shouldn't force the makefile maintainer to figure out
+      # which system we are compiling for in order to pass an extra
+      # flag for every libtool invokation.
+      # allow_undefined=no
+
+      # FIXME: Unfortunately, there are problems with the above when trying
+      # to make a dll which has undefined symbols, in which case not
+      # even a static library is built.  For now, we need to specify
+      # -no-undefined on the libtool link line when we can be certain
+      # that all symbols are satisfied, otherwise we get a static library.
+      allow_undefined=yes
+      ;;
+    *)
+      allow_undefined=yes
+      ;;
+    esac
+    libtool_args="$nonopt"
+    compile_command="$nonopt"
+    finalize_command="$nonopt"
+
+    compile_rpath=
+    finalize_rpath=
+    compile_shlibpath=
+    finalize_shlibpath=
+    convenience=
+    old_convenience=
+    deplibs=
+    old_deplibs=
+    compiler_flags=
+    linker_flags=
+    dllsearchpath=
+    lib_search_path=`pwd`
+
+    avoid_version=no
+    dlfiles=
+    dlprefiles=
+    dlself=no
+    export_dynamic=no
+    export_symbols=
+    export_symbols_regex=
+    generated=
+    libobjs=
+    ltlibs=
+    module=no
+    no_install=no
+    objs=
+    prefer_static_libs=no
+    preload=no
+    prev=
+    prevarg=
+    release=
+    rpath=
+    xrpath=
+    perm_rpath=
+    temp_rpath=
+    thread_safe=no
+    vinfo=
+
+    # We need to know -static, to get the right output filenames.
+    for arg
+    do
+      case $arg in
+      -all-static | -static)
+	if test "X$arg" = "X-all-static"; then
+	  if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
+	    $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
+	  fi
+	  if test -n "$link_static_flag"; then
+	    dlopen_self=$dlopen_self_static
+	  fi
+	else
+	  if test -z "$pic_flag" && test -n "$link_static_flag"; then
+	    dlopen_self=$dlopen_self_static
+	  fi
+	fi
+	build_libtool_libs=no
+	build_old_libs=yes
+	prefer_static_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 1
+	  fi
+	  prev=
+	  continue
+	  ;;
+	expsyms_regex)
+	  export_symbols_regex="$arg"
+	  prev=
+	  continue
+	  ;;
+	release)
+	  release="-$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 1
+	    ;;
+	  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
+	  ;;
+	*)
+	  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 1
+	fi
+	if test "X$arg" = "X-export-symbols"; then
+	  prev=expsyms
+	else
+	  prev=expsyms_regex
+	fi
+	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*)
+	  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
+	    exit 1
+	  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*)
+	  case :$dllsearchpath: in
+	  *":$dir:"*) ;;
+	  *) dllsearchpath="$dllsearchpath:$dir";;
+	  esac
+	  ;;
+	esac
+	continue
+	;;
+
+      -l*)
+	if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
+	  case $host in
+	  *-*-cygwin* | *-*-pw32* | *-*-beos*)
+	    # These systems don't actually have a C or math library (as such)
+	    continue
+	    ;;
+	  *-*-mingw* | *-*-os2*)
+	    # These systems don't actually have a C library (as such)
+	    test "X$arg" = "X-lc" && continue
+	    ;;
+	  *-*-openbsd*)
+	    # Do not include libc due to us having libc/libc_r.
+	    test "X$arg" = "X-lc" && continue
+	    ;;
+	  esac
+	 elif test "X$arg" = "X-lc_r"; then
+	  case $host in
+	  *-*-openbsd*)
+	    # Do not include libc_r directly, use -pthread flag.
+	    continue
+	    ;;
+	  esac
+	fi
+	deplibs="$deplibs $arg"
+	continue
+	;;
+
+      -module)
+	module=yes
+	continue
+	;;
+
+      -no-fast-install)
+	fast_install=no
+	continue
+	;;
+
+      -no-install)
+	case $host in
+	*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
+	  # The PATH hackery in wrapper scripts is required on Windows
+	  # 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
+	;;
+
+      -o) prev=output ;;
+
+      -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 1
+	  ;;
+	esac
+	case "$xrpath " in
+	*" $dir "*) ;;
+	*) xrpath="$xrpath $dir" ;;
+	esac
+	continue
+	;;
+
+      -static)
+	# 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
+	;;
+
+      -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
+	;;
+
+      # 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
+	;;
+
+      *.lo | *.$objext)
+	# A library or standard object.
+	if test "$prev" = dlfiles; then
+	  # This file was specified with -dlopen.
+	  if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
+	    dlfiles="$dlfiles $arg"
+	    prev=
+	    continue
+	  else
+	    # If libtool objects are unsupported, then we need to preload.
+	    prev=dlprefiles
+	  fi
+	fi
+
+	if test "$prev" = dlprefiles; then
+	  # Preload the old-style object.
+	  dlprefiles="$dlprefiles "`$echo "X$arg" | $Xsed -e "$lo2o"`
+	  prev=
+	else
+	  case $arg in
+	  *.lo) libobjs="$libobjs $arg" ;;
+	  *) objs="$objs $arg" ;;
+	  esac
+	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 1
+    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
+
+    # 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
+      status=$?
+      if test $status -ne 0 && test ! -d $output_objdir; then
+	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 1
+      ;;
+    *.$libext) linkmode=oldlib ;;
+    *.lo | *.$objext) linkmode=obj ;;
+    *.la) linkmode=lib ;;
+    *) linkmode=prog ;; # Anything else should be a program.
+    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
+      case "$libs " in
+      *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
+      esac
+      libs="$libs $deplib"
+    done
+    deplibs=
+    newdependency_libs=
+    newlib_search_path=
+    need_relink=no # whether we're linking any uninstalled libtool libraries
+    notinst_deplibs= # not-installed libtool libraries
+    notinst_path= # paths that contain 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 1
+	    ;;
+	  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 = prog; then
+	# Determine which files to process
+	case $pass in
+	dlopen)
+	  libs="$dlfiles"
+	  save_deplibs="$deplibs" # Collect dlpreopened libraries
+	  deplibs=
+	  ;;
+	dlpreopen) libs="$dlprefiles" ;;
+	link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
+	esac
+      fi
+      for deplib in $libs; do
+	lib=
+	found=no
+	case $deplib in
+	-l*)
+	  if test $linkmode = oldlib && test $linkmode = obj; then
+	    $echo "$modename: warning: \`-l' is ignored for archives/objects: $deplib" 1>&2
+	    continue
+	  fi
+	  if test $pass = conv; then
+	    deplibs="$deplib $deplibs"
+	    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
+	    # Search the libtool library
+	    lib="$searchdir/lib${name}.la"
+	    if test -f "$lib"; then
+	      found=yes
+	      break
+	    fi
+	  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
+	  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"
+	      newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
+	    else
+	      compile_deplibs="$deplib $compile_deplibs"
+	      finalize_deplibs="$deplib $finalize_deplibs"
+	    fi
+	    ;;
+	  *)
+	    $echo "$modename: warning: \`-L' is ignored for archives/objects: $deplib" 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)
+	    if test "$deplibs_check_method" != pass_all; then
+	      echo
+	      echo "*** Warning: This library needs some functionality provided by $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."
+	    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 = 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
+	  continue
+	  ;;
+	%DEPLIBS%)
+	  alldeplibs=yes
+	  continue
+	  ;;
+	esac # case $deplib
+	if test $found = yes || test -f "$lib"; then :
+	else
+	  $echo "$modename: cannot find the library \`$lib'" 1>&2
+	  exit 1
+	fi
+
+	# Check to see that this really is a libtool archive.
+	if (sed -e '2q' $lib | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
+	else
+	  $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
+	  exit 1
+	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 variable installed.
+	installed=yes
+
+	# Read the .la file
+	case $lib in
+	*/* | *\\*) . $lib ;;
+	*) . ./$lib ;;
+	esac
+
+	if test "$linkmode,$pass" = "lib,link" ||
+	   test "$linkmode,$pass" = "prog,scan" ||
+	   { test $linkmode = oldlib && test $linkmode = obj; }; then
+	   # Add dl[pre]opened files of deplib
+	  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 1
+	    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"
+	      case "$tmp_libs " in
+	      *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
+	      esac
+	      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 1
+	  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 1
+	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 1
+	  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.
+	    dlprefiles="$dlprefiles $lib"
+	  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
+	else
+	  dir="$ladir/$objdir"
+	  absdir="$abs_ladir/$objdir"
+	  # Remove this search path later
+	  notinst_path="$notinst_path $abs_ladir"
+	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 1
+	  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"
+	  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
+	    case "$tmp_libs " in
+	    *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
+	    esac
+	    tmp_libs="$tmp_libs $deplib"
+	  done # for deplib
+	  continue
+	fi # $linkmode = prog...
+
+	link_static=no # Whether the deplib will be linked statically
+	if test -n "$library_names" &&
+	   { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
+	  # Link against this shared library
+
+	  if test "$linkmode,$pass" = "prog,link" ||
+	   { 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
+	    if test $linkmode = prog; then
+	      # We need to hardcode the library path
+	      if test -n "$shlibpath_var"; then
+		# Make sure the rpath contains only unique directories.
+		case "$temp_rpath " in
+		*" $dir "*) ;;
+		*" $absdir "*) ;;
+		*) temp_rpath="$temp_rpath $dir" ;;
+		esac
+	      fi
+	    fi
+	  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
+
+	  if test "$installed" = no; then
+	    notinst_deplibs="$notinst_deplibs $lib"
+	    need_relink=yes
+	  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*)
+		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='~'
+	      eval cmds=\"$extract_expsyms_cmds\"
+	      for cmd in $cmds; do
+		IFS="$save_ifs"
+		$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='~'
+	      eval cmds=\"$old_archive_from_expsyms_cmds\"
+	      for cmd in $cmds; do
+		IFS="$save_ifs"
+		$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"
+	      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"
+		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 1
+	    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"
+	    else
+	      # We cannot seem to hardcode it, guess we'll fake it.
+	      if test "X$installed" = Xyes; then
+	        add_dir="-L$libdir"
+	      else
+	        add_dir="-L$DESTDIR$libdir"
+	      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
+	  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
+
+	  # Try to link the static library
+	  # 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 library needs some functionality provided by $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 "*** Therefore, libtool will create a static module, that should work "
+	      echo "*** as long as the dlopening 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
+		build_libtool_libs=module
+		build_old_libs=yes
+	      else
+		build_libtool_libs=no
+	      fi
+	    fi
+	  else
+	    convenience="$convenience $dir/$old_library"
+	    old_convenience="$old_convenience $dir/$old_library"
+	    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"
+	    case "$tmp_libs " in
+	    *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
+	    esac
+	    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="-L$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 1
+		  fi
+		  if test "$absdir" != "$libdir"; then
+		    $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
+		  fi
+		  path="-L$absdir"
+		fi
+		;;
+	      *) continue ;;
+	      esac
+	      case " $deplibs " in
+	      *" $path "*) ;;
+	      *) deplibs="$deplibs $path" ;;
+	      esac
+	    done
+	  fi # link_all_deplibs != no
+	fi # linkmode = lib
+      done # for deplib in $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
+	test $pass != scan && dependency_libs="$newdependency_libs"
+	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
+	    case $deplib in
+	    -L*) new_libs="$deplib $new_libs" ;;
+	    *)
+	      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
+      if test "$pass" = "conv" &&
+       { test "$linkmode" = "lib" || test "$linkmode" = "prog"; }; then
+	libs="$deplibs" # reset libs
+	deplibs=
+      fi
+    done # for pass
+    if test $linkmode = prog; then
+      dlfiles="$newdlfiles"
+      dlprefiles="$newdlprefiles"
+    fi
+
+    case $linkmode in
+    oldlib)
+      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' 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 libname=\"$libname_spec\"
+	;;
+      *)
+	if test "$module" = no; then
+	  $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
+	  $echo "$help" 1>&2
+	  exit 1
+	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 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 1
+	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.
+	  libext=al
+	  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' 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 1
+	fi
+
+	current="$2"
+	revision="$3"
+	age="$4"
+
+	# 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]) ;;
+	*)
+	  $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
+	  $echo "$modename: \`$vinfo' is not valid version information" 1>&2
+	  exit 1
+	  ;;
+	esac
+
+	case $revision in
+	0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
+	*)
+	  $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
+	  $echo "$modename: \`$vinfo' is not valid version information" 1>&2
+	  exit 1
+	  ;;
+	esac
+
+	case $age in
+	0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
+	*)
+	  $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
+	  $echo "$modename: \`$vinfo' is not valid version information" 1>&2
+	  exit 1
+	  ;;
+	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 1
+	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`
+	  verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
+	  ;;
+
+	freebsd-aout)
+	  major=".$current"
+	  versuffix=".$current.$revision";
+	  ;;
+
+	freebsd-elf)
+	  major=".$current"
+	  versuffix=".$current";
+	  ;;
+
+	irix)
+	  major=`expr $current - $age + 1`
+	  verstring="sgi$major.$revision"
+
+	  # Add in all the interfaces that we are compatible with.
+	  loop=$revision
+	  while test $loop != 0; do
+	    iface=`expr $revision - $loop`
+	    loop=`expr $loop - 1`
+	    verstring="sgi$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 != 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 1
+	  ;;
+	esac
+
+	# Clear the version info if we defaulted, and they specified a release.
+	if test -z "$vinfo" && test -n "$release"; then
+	  major=
+	  verstring="0.0"
+	  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.
+	$show "${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*"
+	$run ${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*
+      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*)
+	    # Do not include libc due to us having libc/libc_r.
+	    ;;
+	  *)
+	    # 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 behaviour.
+	  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 <<EOF
+	  int main() { return 0; }
+EOF
+	  $rm conftest
+	  $CC -o conftest conftest.c $deplibs
+	  if test $? -eq 0 ; then
+	    ldd_output=`ldd conftest`
+	    for i in $deplibs; do
+	      name="`expr $i : '-l\(.*\)'`"
+	      # If $name is empty we are operating on a -L argument.
+	      if test -n "$name" && test "$name" != "0"; then
+		libname=`eval \\$echo \"$libname_spec\"`
+		deplib_matches=`eval \\$echo \"$library_names_spec\"`
+		set dummy $deplib_matches
+		deplib_match=$2
+		if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
+		  newdeplibs="$newdeplibs $i"
+		else
+		  droppeddeps=yes
+		  echo
+		  echo "*** Warning: This library needs some functionality provided by $i."
+		  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."
+		fi
+	      else
+		newdeplibs="$newdeplibs $i"
+	      fi
+	    done
+	  else
+	    # Error occured in the first compile.  Let's try to salvage the situation:
+	    # Compile a seperate program for each library.
+	    for i in $deplibs; do
+	      name="`expr $i : '-l\(.*\)'`"
+	     # If $name is empty we are operating on a -L argument.
+	      if test -n "$name" && test "$name" != "0"; then
+		$rm conftest
+		$CC -o conftest conftest.c $i
+		# Did it work?
+		if test $? -eq 0 ; then
+		  ldd_output=`ldd conftest`
+		  libname=`eval \\$echo \"$libname_spec\"`
+		  deplib_matches=`eval \\$echo \"$library_names_spec\"`
+		  set dummy $deplib_matches
+		  deplib_match=$2
+		  if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
+		    newdeplibs="$newdeplibs $i"
+		  else
+		    droppeddeps=yes
+		    echo
+		    echo "*** Warning: This library needs some functionality provided by $i."
+		    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."
+		  fi
+		else
+		  droppeddeps=yes
+		  echo
+		  echo "*** Warning!  Library $i is needed by this library but I was not able to"
+		  echo "***  make it link in!  You will probably need to install it or some"
+		  echo "*** library that it depends on before this library will be fully"
+		  echo "*** functional.  Installing it before continuing would be even better."
+		fi
+	      else
+		newdeplibs="$newdeplibs $i"
+	      fi
+	    done
+	  fi
+	  ;;
+	file_magic*)
+	  set dummy $deplibs_check_method
+	  file_magic_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
+	      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
+		      # 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
+	      if test -n "$a_deplib" ; then
+		droppeddeps=yes
+		echo
+		echo "*** Warning: This library needs some functionality provided by $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."
+	      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
+	      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
+		  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
+	      if test -n "$a_deplib" ; then
+		droppeddeps=yes
+		echo
+		echo "*** Warning: This library needs some functionality provided by $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."
+	      fi
+	    else
+	      # Add a -L argument.
+	      newdeplibs="$newdeplibs $a_deplib"
+	    fi
+	  done # Gone through all deplibs.
+	  ;;
+	none | unknown | *)
+	  newdeplibs=""
+	  if $echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
+	       -e 's/ -[LR][^ ]*//g' -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
+
+      # 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"
+	    eval dep_rpath=\"$hardcode_libdir_flag_spec\"
+	  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 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
+	test -z "$dlname" && dlname=$soname
+
+	lib="$output_objdir/$realname"
+	for link
+	do
+	  linknames="$linknames $link"
+	done
+
+	# Ensure that we have .o objects for linkers which dislike .lo
+	# (e.g. aix) in case we are running --disable-static
+	for obj in $libobjs; do
+	  xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
+	  if test "X$xdir" = "X$obj"; then
+	    xdir="."
+	  else
+	    xdir="$xdir"
+	  fi
+	  baseobj=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
+	  oldobj=`$echo "X$baseobj" | $Xsed -e "$lo2o"`
+	  if test ! -f $xdir/$oldobj; then
+	    $show "(cd $xdir && ${LN_S} $baseobj $oldobj)"
+	    $run eval '(cd $xdir && ${LN_S} $baseobj $oldobj)' || exit $?
+	  fi
+	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
+	    eval cmds=\"$export_symbols_cmds\"
+	    save_ifs="$IFS"; IFS='~'
+	    for cmd in $cmds; do
+	      IFS="$save_ifs"
+	      $show "$cmd"
+	      $run eval "$cmd" || exit $?
+	    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
+
+	if test -n "$convenience"; then
+	  if test -n "$whole_archive_flag_spec"; then
+	    eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
+	  else
+	    gentop="$output_objdir/${outputname}x"
+	    $show "${rm}r $gentop"
+	    $run ${rm}r "$gentop"
+	    $show "mkdir $gentop"
+	    $run mkdir "$gentop"
+	    status=$?
+	    if test $status -ne 0 && test ! -d "$gentop"; then
+	      exit $status
+	    fi
+	    generated="$generated $gentop"
+
+	    for xlib in $convenience; do
+	      # Extract the objects.
+	      case $xlib in
+	      [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
+	      *) xabs=`pwd`"/$xlib" ;;
+	      esac
+	      xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
+	      xdir="$gentop/$xlib"
+
+	      $show "${rm}r $xdir"
+	      $run ${rm}r "$xdir"
+	      $show "mkdir $xdir"
+	      $run mkdir "$xdir"
+	      status=$?
+	      if test $status -ne 0 && test ! -d "$xdir"; then
+		exit $status
+	      fi
+	      $show "(cd $xdir && $AR x $xabs)"
+	      $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
+
+	      libobjs="$libobjs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP`
+	    done
+	  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 -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
+	  eval cmds=\"$archive_expsym_cmds\"
+	else
+	  eval cmds=\"$archive_cmds\"
+	fi
+	save_ifs="$IFS"; IFS='~'
+	for cmd in $cmds; do
+	  IFS="$save_ifs"
+	  $show "$cmd"
+	  $run eval "$cmd" || 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 $?
+	  exit 0
+	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 1
+	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
+      wl=
+
+      if test -n "$convenience"; then
+	if test -n "$whole_archive_flag_spec"; then
+	  eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
+	else
+	  gentop="$output_objdir/${obj}x"
+	  $show "${rm}r $gentop"
+	  $run ${rm}r "$gentop"
+	  $show "mkdir $gentop"
+	  $run mkdir "$gentop"
+	  status=$?
+	  if test $status -ne 0 && test ! -d "$gentop"; then
+	    exit $status
+	  fi
+	  generated="$generated $gentop"
+
+	  for xlib in $convenience; do
+	    # Extract the objects.
+	    case $xlib in
+	    [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
+	    *) xabs=`pwd`"/$xlib" ;;
+	    esac
+	    xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
+	    xdir="$gentop/$xlib"
+
+	    $show "${rm}r $xdir"
+	    $run ${rm}r "$xdir"
+	    $show "mkdir $xdir"
+	    $run mkdir "$xdir"
+	    status=$?
+	    if test $status -ne 0 && test ! -d "$xdir"; then
+	      exit $status
+	    fi
+	    $show "(cd $xdir && $AR x $xabs)"
+	    $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
+
+	    reload_conv_objs="$reload_objs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP`
+	  done
+	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"
+      eval cmds=\"$reload_cmds\"
+      save_ifs="$IFS"; IFS='~'
+      for cmd in $cmds; do
+	IFS="$save_ifs"
+	$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 0
+      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 0
+      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"
+	eval cmds=\"$reload_cmds\"
+	save_ifs="$IFS"; IFS='~'
+	for cmd in $cmds; do
+	  IFS="$save_ifs"
+	  $show "$cmd"
+	  $run eval "$cmd" || exit $?
+	done
+	IFS="$save_ifs"
+      else
+	# Just create a symlink.
+	$show $rm $libobj
+	$run $rm $libobj
+	xdir=`$echo "X$libobj" | $Xsed -e 's%/[^/]*$%%'`
+	if test "X$xdir" = "X$libobj"; then
+	  xdir="."
+	else
+	  xdir="$xdir"
+	fi
+	baseobj=`$echo "X$libobj" | $Xsed -e 's%^.*/%%'`
+	oldobj=`$echo "X$baseobj" | $Xsed -e "$lo2o"`
+	$show "(cd $xdir && $LN_S $oldobj $baseobj)"
+	$run eval '(cd $xdir && $LN_S $oldobj $baseobj)' || exit $?
+      fi
+
+      if test -n "$gentop"; then
+	$show "${rm}r $gentop"
+	$run ${rm}r $gentop
+      fi
+
+      exit 0
+      ;;
+
+    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
+
+      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*)
+	  case :$dllsearchpath: in
+	  *":$libdir:"*) ;;
+	  *) dllsearchpath="$dllsearchpath:$libdir";;
+	  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/$output.exp"
+	      $run $rm $export_symbols
+	      $run eval "sed -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
+	    else
+	      $run eval "sed -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
+	      $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
+	      $run eval 'mv "$nlist"T "$nlist"'
+	    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" | sort +2 | 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. */
+const struct {
+  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 -DPIC -DFREEBSD_WORKAROUND";;
+	    esac;;
+	  *-*-hpux*)
+	    case "$compile_command " in
+	    *" -static "*) ;;
+	    *) pic_flag_for_symtable=" $pic_flag -DPIC";;
+	    esac
+	  esac
+
+	  # Now compile the dynamic symbol file.
+	  $show "(cd $output_objdir && $CC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
+	  $run eval '(cd $output_objdir && $CC -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.
+	  compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
+	  finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
+	  ;;
+	*)
+	  $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
+	  exit 1
+	  ;;
+	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" | $Xsed -e "s% @SYMFILE@%%"`
+	finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
+      fi
+
+      if test $need_relink = no || test "$build_libtool_libs" != yes; then
+	# Replace the output file specification.
+	compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
+	link_command="$compile_command$compile_rpath"
+
+	# We have no uninstalled library dependencies, so finalize right now.
+	$show "$link_command"
+	$run eval "$link_command"
+	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 $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 0
+      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" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
+	  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" | $Xsed -e "$sed_quote_subst"`
+      fi
+
+      # Quote $echo for shipping.
+      if test "X$echo" = "X$SHELL $0 --fallback-echo"; then
+	case $0 in
+	[\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $0 --fallback-echo";;
+	*) qecho="$SHELL `pwd`/$0 --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 ;;
+	  *) exeext= ;;
+	esac
+	$rm $output
+	trap "$rm $output; exit 1" 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'
+
+# The HP-UX ksh and POSIX shell print the target directory to stdout
+# if CDPATH is set.
+if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi
+
+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 1
+      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
+	# win32 systems need to use the prog path for dll
+	# lookup to work
+	*-*-cygwin* | *-*-pw32*)
+	  $echo >> $output "\
+      exec \$progdir/\$program \${1+\"\$@\"}
+"
+	  ;;
+
+	# Backslashes separate directories on plain windows
+	*-*-mingw | *-*-os2*)
+	  $echo >> $output "\
+      exec \$progdir\\\\\$program \${1+\"\$@\"}
+"
+	  ;;
+
+	*)
+	  $echo >> $output "\
+      # Export the path to the program.
+      PATH=\"\$progdir:\$PATH\"
+      export PATH
+
+      exec \$program \${1+\"\$@\"}
+"
+	  ;;
+	esac
+	$echo >> $output "\
+      \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
+      exit 1
+    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 1
+  fi
+fi\
+"
+	chmod +x $output
+      fi
+      exit 0
+      ;;
+    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="$objs$old_deplibs "`$echo "X$libobjs_save" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`
+	fi
+	addlibs="$old_convenience"
+      fi
+
+      if test -n "$addlibs"; then
+	gentop="$output_objdir/${outputname}x"
+	$show "${rm}r $gentop"
+	$run ${rm}r "$gentop"
+	$show "mkdir $gentop"
+	$run mkdir "$gentop"
+	status=$?
+	if test $status -ne 0 && test ! -d "$gentop"; then
+	  exit $status
+	fi
+	generated="$generated $gentop"
+
+	# Add in members from convenience archives.
+	for xlib in $addlibs; do
+	  # Extract the objects.
+	  case $xlib in
+	  [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
+	  *) xabs=`pwd`"/$xlib" ;;
+	  esac
+	  xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
+	  xdir="$gentop/$xlib"
+
+	  $show "${rm}r $xdir"
+	  $run ${rm}r "$xdir"
+	  $show "mkdir $xdir"
+	  $run mkdir "$xdir"
+	  status=$?
+	  if test $status -ne 0 && test ! -d "$xdir"; then
+	    exit $status
+	  fi
+	  $show "(cd $xdir && $AR x $xabs)"
+	  $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
+
+	  oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
+	done
+      fi
+
+      # Do each command in the archive commands.
+      if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
+	eval cmds=\"$old_archive_from_new_cmds\"
+      else
+	# Ensure that we have .o objects in place in case we decided
+	# not to build a shared library, and have fallen back to building
+	# static libs even though --disable-static was passed!
+	for oldobj in $oldobjs; do
+	  if test ! -f $oldobj; then
+	    xdir=`$echo "X$oldobj" | $Xsed -e 's%/[^/]*$%%'`
+	    if test "X$xdir" = "X$oldobj"; then
+	      xdir="."
+	    else
+	      xdir="$xdir"
+	    fi
+	    baseobj=`$echo "X$oldobj" | $Xsed -e 's%^.*/%%'`
+	    obj=`$echo "X$baseobj" | $Xsed -e "$o2lo"`
+	    $show "(cd $xdir && ${LN_S} $obj $baseobj)"
+	    $run eval '(cd $xdir && ${LN_S} $obj $baseobj)' || exit $?
+	  fi
+	done
+
+	eval cmds=\"$old_archive_cmds\"
+      fi
+      save_ifs="$IFS"; IFS='~'
+      for cmd in $cmds; do
+	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 $0 --mode=relink $libtool_args"
+      relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
+
+      # 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 1
+		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 1
+	      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 1
+	      fi
+	      newdlprefiles="$newdlprefiles $libdir/$name"
+	    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) 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
+
+# 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 0
+    ;;
+
+  # 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" | $Xsed | 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) prev="-f" ;;
+      -g) prev="-g" ;;
+      -m) prev="-m" ;;
+      -o) prev="-o" ;;
+      -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 1
+    fi
+
+    if test -n "$prev"; then
+      $echo "$modename: the \`$prev' option requires an argument" 1>&2
+      $echo "$help" 1>&2
+      exit 1
+    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 1
+    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 1
+      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 1
+	  ;;
+	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 | egrep "^# 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 1
+	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.
+	DESTDIR=
+	if test "X$destdir" = "X$libdir"; then
+	  case "$current_libdirs " in
+	  *" $libdir "*) ;;
+	  *) current_libdirs="$current_libdirs $libdir" ;;
+	  esac
+	else
+	  case "$destdir" in
+	    *"$libdir")
+	      DESTDIR=`$echo "$destdir" | sed -e 's!'"$libdir"'$!!'`
+	      if test "X$destdir" != "X$DESTDIR$libdir"; then
+		DESTDIR=
+	      fi
+	      ;;
+	  esac
+	  # 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
+	  $echo "$modename: warning: relinking \`$file'" 1>&2
+	  export DESTDIR
+	  $show "$relink_command"
+	  if $run eval "$relink_command"; then :
+	  else
+	    $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
+	    continue
+	  fi
+	fi
+	unset DESTDIR
+
+	# 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.
+	    for linkname
+	    do
+	      if test "$linkname" != "$realname"; then
+		$show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
+		$run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
+	      fi
+	    done
+	  fi
+
+	  # Do each command in the postinstall commands.
+	  lib="$destdir/$realname"
+	  eval cmds=\"$postinstall_cmds\"
+	  save_ifs="$IFS"; IFS='~'
+	  for cmd in $cmds; do
+	    IFS="$save_ifs"
+	    $show "$cmd"
+	    $run eval "$cmd" || 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 1
+	  ;;
+	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 0
+	;;
+
+      *)
+	# 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
+
+	# Do a test to see if this is really a libtool program.
+	if (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
+	  notinst_deplibs=
+	  relink_command=
+
+	  # If there is no directory component, then add one.
+	  case $file in
+	  */* | *\\*) . $file ;;
+	  *) . ./$file ;;
+	  esac
+
+	  # Check the variables that should have been set.
+	  if test -z "$notinst_deplibs"; then
+	    $echo "$modename: invalid libtool wrapper script \`$file'" 1>&2
+	    exit 1
+	  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=
+	  # If there is no directory component, then add one.
+	  case $file in
+	  */* | *\\*) . $file ;;
+	  *) . ./$file ;;
+	  esac
+
+	  outputname=
+	  if test "$fast_install" = no && test -n "$relink_command"; then
+	    if test "$finalize" = yes && test -z "$run"; then
+	      tmpdir="/tmp"
+	      test -n "$TMPDIR" && tmpdir="$TMPDIR"
+	      tmpdir="$tmpdir/libtool-$$"
+	      if $mkdir -p "$tmpdir" && chmod 700 "$tmpdir"; then :
+	      else
+		$echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
+		continue
+	      fi
+	      file=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
+	      outputname="$tmpdir/$file"
+	      # Replace the output file specification.
+	      relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
+
+	      $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" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
+	  fi
+	fi
+
+	# remove .exe since cygwin /usr/bin/install will append another
+	# one anyways
+	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 "$striplib"; then
+	$show "$old_striplib $oldlib"
+	$run eval "$old_striplib $oldlib" || exit $?
+      fi
+
+      # Do each command in the postinstall commands.
+      eval cmds=\"$old_postinstall_cmds\"
+      save_ifs="$IFS"; IFS='~'
+      for cmd in $cmds; do
+	IFS="$save_ifs"
+	$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 $0 --finish$current_libdirs'
+    else
+      exit 0
+    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.
+	  eval cmds=\"$finish_cmds\"
+	  save_ifs="$IFS"; IFS='~'
+	  for cmd in $cmds; do
+	    IFS="$save_ifs"
+	    $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 0
+
+    echo "----------------------------------------------------------------------"
+    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 "----------------------------------------------------------------------"
+    exit 0
+    ;;
+
+  # 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 1
+    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 1
+      fi
+
+      dir=
+      case $file in
+      *.la)
+	# Check to see that this really is a libtool archive.
+	if (sed -e '2q' $file | egrep "^# 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 1
+	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
+	  $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
+	  exit 1
+	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 | egrep "^# 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 enviroment variables
+      if test "${save_LC_ALL+set}" = set; then
+	LC_ALL="$save_LC_ALL"; export LC_ALL
+      fi
+      if test "${save_LANG+set}" = set; then
+	LANG="$save_LANG"; export LANG
+      fi
+
+      # 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 0
+    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 1
+    fi
+
+    rmdirs=
+
+    for file in $files; do
+      dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
+      if test "X$dir" = "X$file"; then
+	dir=.
+	objdir="$objdir"
+      else
+	objdir="$dir/$objdir"
+      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 | egrep "^# 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"
+	  test $mode = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
+
+	  if test $mode = uninstall; then
+	    if test -n "$library_names"; then
+	      # Do each command in the postuninstall commands.
+	      eval cmds=\"$postuninstall_cmds\"
+	      save_ifs="$IFS"; IFS='~'
+	      for cmd in $cmds; do
+		IFS="$save_ifs"
+		$show "$cmd"
+		$run eval "$cmd"
+		if test $? != 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.
+	      eval cmds=\"$old_postuninstall_cmds\"
+	      save_ifs="$IFS"; IFS='~'
+	      for cmd in $cmds; do
+		IFS="$save_ifs"
+		$show "$cmd"
+		$run eval "$cmd"
+		if test $? != 0 && test "$rmforce" != yes; then
+		  exit_status=1
+		fi
+	      done
+	      IFS="$save_ifs"
+	    fi
+	    # FIXME: should reinstall the best remaining shared library.
+	  fi
+	fi
+	;;
+
+      *.lo)
+	if test "$build_old_libs" = yes; then
+	  oldobj=`$echo "X$name" | $Xsed -e "$lo2o"`
+	  rmfiles="$rmfiles $dir/$oldobj"
+	fi
+	;;
+
+      *)
+	# Do a test to see if this is a libtool program.
+	if test $mode = clean &&
+	   (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
+	  relink_command=
+	  . $dir/$file
+
+	  rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
+	  if test "$fast_install" = yes && test -n "$relink_command"; then
+	    rmfiles="$rmfiles $objdir/lt-$name"
+	  fi
+	fi
+	;;
+      esac
+      $show "$rm $rmfiles"
+      $run $rm $rmfiles || exit_status=1
+    done
+
+    # 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 1
+    ;;
+  esac
+
+  if test -z "$exec_cmd"; then
+    $echo "$modename: invalid operation mode \`$mode'" 1>&2
+    $echo "$generic_help" 1>&2
+    exit 1
+  fi
+fi # test -z "$show_help"
+
+if test -n "$exec_cmd"; then
+  eval exec $exec_cmd
+  exit 1
+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
+    --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."
+  exit 0
+  ;;
+
+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
+  -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 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 1
+  ;;
+esac
+
+echo
+$echo "Try \`$modename --help' for more information about other modes."
+
+exit 0
+
+# Local Variables:
+# mode:shell-script
+# sh-indentation:2
+# End:


Property changes on: packages/gpsdrive/branches/etch/libtool
___________________________________________________________________
Name: svn:executable
   + *

Added: packages/gpsdrive/branches/etch/ltmain.sh
===================================================================
--- packages/gpsdrive/branches/etch/ltmain.sh	                        (rev 0)
+++ packages/gpsdrive/branches/etch/ltmain.sh	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,4999 @@
+# 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
+# Free Software Foundation, Inc.
+# Originally by Gordon Matzigkeit <gord at gnu.ai.mit.edu>, 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., 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.
+
+# 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 "$0" --no-reexec ${1+"$@"}
+fi
+
+if test "X$1" = X--fallback-echo; then
+  # used as fallback echo
+  shift
+  cat <<EOF
+$*
+EOF
+  exit 0
+fi
+
+# The name of this program.
+progname=`$echo "$0" | sed 's%^.*/%%'`
+modename="$progname"
+
+# Constants.
+PROGRAM=ltmain.sh
+PACKAGE=libtool
+VERSION=1.4.2
+TIMESTAMP=" (1.922.2.53 2001/09/11 03:18:52)"
+
+default_mode=
+help="Try \`$progname --help' for more information."
+magic="%%%MAGIC variable%%%"
+mkdir="mkdir"
+mv="mv -f"
+rm="rm -f"
+
+# 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='s/\([\\`\\"$\\\\]\)/\\\1/g'
+SP2NL='tr \040 \012'
+NL2SP='tr \015\012 \040\040'
+
+# NLS nuisances.
+# Only set LANG and LC_ALL to C if already set.
+# These must not be set unconditionally because not all systems understand
+# e.g. LANG=C (notably SCO).
+# We save the old values to restore during execute mode.
+if test "${LC_ALL+set}" = set; then
+  save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
+fi
+if test "${LANG+set}" = set; then
+  save_LANG="$LANG"; LANG=C; export LANG
+fi
+
+# Make sure IFS has a sensible default
+: ${IFS=" 	"}
+
+if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
+  echo "$modename: not configured to build any kind of library" 1>&2
+  echo "Fatal configuration error.  See the $PACKAGE docs for more information." 1>&2
+  exit 1
+fi
+
+# Global variables.
+mode=$default_mode
+nonopt=
+prev=
+prevopt=
+run=
+show="$echo"
+show_help=
+execute_dlfiles=
+lo2o="s/\\.lo\$/.${objext}/"
+o2lo="s/\\.${objext}\$/.lo/"
+
+# 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"
+      ;;
+    *)
+      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"
+    exit 0
+    ;;
+
+  --config)
+    sed -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $0
+    exit 0
+    ;;
+
+  --debug)
+    echo "$progname: enabling shell trace mode"
+    set -x
+    ;;
+
+  --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 0
+    ;;
+
+  --finish) mode="finish" ;;
+
+  --mode) prevopt="--mode" prev=mode ;;
+  --mode=*) mode="$optarg" ;;
+
+  --quiet | --silent)
+    show=:
+    ;;
+
+  -dlopen)
+    prevopt="-dlopen"
+    prev=execute_dlfiles
+    ;;
+
+  -*)
+    $echo "$modename: unrecognized option \`$arg'" 1>&2
+    $echo "$help" 1>&2
+    exit 1
+    ;;
+
+  *)
+    nonopt="$arg"
+    break
+    ;;
+  esac
+done
+
+if test -n "$prevopt"; then
+  $echo "$modename: option \`$prevopt' requires an argument" 1>&2
+  $echo "$help" 1>&2
+  exit 1
+fi
+
+# 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
+    case $nonopt in
+    *cc | *++ | gcc* | *-gcc*)
+      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 1
+  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=
+    prev=
+    lastarg=
+    srcfile="$nonopt"
+    suppress_output=
+
+    user_target=no
+    for arg
+    do
+      case $prev in
+      "") ;;
+      xcompiler)
+	# Aesthetically quote the previous argument.
+	prev=
+	lastarg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
+
+	case $arg in
+	# Double-quote args containing other shell metacharacters.
+	# Many Bourne shells cannot handle close brackets correctly
+	# in scan sets, so we specify it separately.
+	*[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \	]*|*]*|"")
+	  arg="\"$arg\""
+	  ;;
+	esac
+
+	# Add the previous argument to base_compile.
+	if test -z "$base_compile"; then
+	  base_compile="$lastarg"
+	else
+	  base_compile="$base_compile $lastarg"
+	fi
+	continue
+	;;
+      esac
+
+      # Accept any command-line options.
+      case $arg in
+      -o)
+	if test "$user_target" != "no"; then
+	  $echo "$modename: you cannot specify \`-o' more than once" 1>&2
+	  exit 1
+	fi
+	user_target=next
+	;;
+
+      -static)
+	build_old_libs=yes
+	continue
+	;;
+
+      -prefer-pic)
+	pic_mode=yes
+	continue
+	;;
+
+      -prefer-non-pic)
+	pic_mode=no
+	continue
+	;;
+
+      -Xcompiler)
+	prev=xcompiler
+	continue
+	;;
+
+      -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.
+	if test -z "$base_compile"; then
+	  base_compile="$lastarg"
+	else
+	  base_compile="$base_compile $lastarg"
+	fi
+	continue
+	;;
+      esac
+
+      case $user_target in
+      next)
+	# The next one is the -o target name
+	user_target=yes
+	continue
+	;;
+      yes)
+	# We got the output file
+	user_target=set
+	libobj="$arg"
+	continue
+	;;
+      esac
+
+      # Accept the current argument as the source file.
+      lastarg="$srcfile"
+      srcfile="$arg"
+
+      # Aesthetically quote the previous argument.
+
+      # Backslashify any backslashes, double quotes, and dollar signs.
+      # These are the only characters that are still specially
+      # interpreted inside of double-quoted scrings.
+      lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
+
+      # Double-quote args containing other shell metacharacters.
+      # Many Bourne shells cannot handle close brackets correctly
+      # in scan sets, so we specify it separately.
+      case $lastarg in
+      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \	]*|*]*|"")
+	lastarg="\"$lastarg\""
+	;;
+      esac
+
+      # Add the previous argument to base_compile.
+      if test -z "$base_compile"; then
+	base_compile="$lastarg"
+      else
+	base_compile="$base_compile $lastarg"
+      fi
+    done
+
+    case $user_target in
+    set)
+      ;;
+    no)
+      # Get the name of the library object.
+      libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
+      ;;
+    *)
+      $echo "$modename: you must specify a target with \`-o'" 1>&2
+      exit 1
+      ;;
+    esac
+
+    # Recognize several different file suffixes.
+    # If the user specifies -o file.o, it is replaced with file.lo
+    xform='[cCFSfmso]'
+    case $libobj in
+    *.ada) xform=ada ;;
+    *.adb) xform=adb ;;
+    *.ads) xform=ads ;;
+    *.asm) xform=asm ;;
+    *.c++) xform=c++ ;;
+    *.cc) xform=cc ;;
+    *.cpp) xform=cpp ;;
+    *.cxx) xform=cxx ;;
+    *.f90) xform=f90 ;;
+    *.for) xform=for ;;
+    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 1
+      ;;
+    esac
+
+    if test -z "$base_compile"; then
+      $echo "$modename: you must specify a compilation command" 1>&2
+      $echo "$help" 1>&2
+      exit 1
+    fi
+
+    # Delete any leftover library objects.
+    if test "$build_old_libs" = yes; then
+      removelist="$obj $libobj"
+    else
+      removelist="$libobj"
+    fi
+
+    $run $rm $removelist
+    trap "$run $rm $removelist; exit 1" 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 1" 1 2 15
+    else
+      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 "$0" "$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 1
+      fi
+      echo $srcfile > "$lockfile"
+    fi
+
+    if test -n "$fix_srcfile_path"; then
+      eval srcfile=\"$fix_srcfile_path\"
+    fi
+
+    # Only build a PIC object if we are building libtool libraries.
+    if test "$build_libtool_libs" = yes; then
+      # Without this assignment, base_compile gets emptied.
+      fbsd_hideous_sh_bug=$base_compile
+
+      if test "$pic_mode" != no; then
+	# All platforms use -DPIC, to notify preprocessed assembler code.
+	command="$base_compile $srcfile $pic_flag -DPIC"
+      else
+	# Don't build PIC code
+	command="$base_compile $srcfile"
+      fi
+      if test "$build_old_libs" = yes; then
+	lo_libobj="$libobj"
+	dir=`$echo "X$libobj" | $Xsed -e 's%/[^/]*$%%'`
+	if test "X$dir" = "X$libobj"; then
+	  dir="$objdir"
+	else
+	  dir="$dir/$objdir"
+	fi
+	libobj="$dir/"`$echo "X$libobj" | $Xsed -e 's%^.*/%%'`
+
+	if test -d "$dir"; then
+	  $show "$rm $libobj"
+	  $run $rm $libobj
+	else
+	  $show "$mkdir $dir"
+	  $run $mkdir $dir
+	  status=$?
+	  if test $status -ne 0 && test ! -d $dir; then
+	    exit $status
+	  fi
+	fi
+      fi
+      if test "$compiler_o_lo" = yes; then
+	output_obj="$libobj"
+	command="$command -o $output_obj"
+      elif test "$compiler_c_o" = yes; then
+	output_obj="$obj"
+	command="$command -o $output_obj"
+      fi
+
+      $run $rm "$output_obj"
+      $show "$command"
+      if $run eval "$command"; then :
+      else
+	test -n "$output_obj" && $run $rm $removelist
+	exit 1
+      fi
+
+      if test "$need_locks" = warn &&
+	 test x"`cat $lockfile 2>/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 1
+      fi
+
+      # Just move the object if needed, then go on to compile the next one
+      if test x"$output_obj" != x"$libobj"; then
+	$show "$mv $output_obj $libobj"
+	if $run $mv $output_obj $libobj; then :
+	else
+	  error=$?
+	  $run $rm $removelist
+	  exit $error
+	fi
+      fi
+
+      # If we have no pic_flag, then copy the object into place and finish.
+      if (test -z "$pic_flag" || test "$pic_mode" != default) &&
+	 test "$build_old_libs" = yes; then
+	# Rename the .lo from within objdir to obj
+	if test -f $obj; then
+	  $show $rm $obj
+	  $run $rm $obj
+	fi
+
+	$show "$mv $libobj $obj"
+	if $run $mv $libobj $obj; then :
+	else
+	  error=$?
+	  $run $rm $removelist
+	  exit $error
+	fi
+
+	xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
+	if test "X$xdir" = "X$obj"; then
+	  xdir="."
+	else
+	  xdir="$xdir"
+	fi
+	baseobj=`$echo "X$obj" | $Xsed -e "s%.*/%%"`
+	libobj=`$echo "X$baseobj" | $Xsed -e "$o2lo"`
+	# Now arrange that obj and lo_libobj become the same file
+	$show "(cd $xdir && $LN_S $baseobj $libobj)"
+	if $run eval '(cd $xdir && $LN_S $baseobj $libobj)'; then
+	  # Unlock the critical section if it was locked
+	  if test "$need_locks" != no; then
+	    $run $rm "$lockfile"
+	  fi
+	  exit 0
+	else
+	  error=$?
+	  $run $rm $removelist
+	  exit $error
+	fi
+      fi
+
+      # Allow error messages only from the first compilation.
+      suppress_output=' >/dev/null 2>&1'
+    fi
+
+    # Only build a position-dependent object if we build old libraries.
+    if test "$build_old_libs" = yes; then
+      if test "$pic_mode" != yes; then
+	# Don't build PIC code
+	command="$base_compile $srcfile"
+      else
+	# All platforms use -DPIC, to notify preprocessed assembler code.
+	command="$base_compile $srcfile $pic_flag -DPIC"
+      fi
+      if test "$compiler_c_o" = yes; then
+	command="$command -o $obj"
+	output_obj="$obj"
+      fi
+
+      # Suppress compiler output if we already did a PIC compilation.
+      command="$command$suppress_output"
+      $run $rm "$output_obj"
+      $show "$command"
+      if $run eval "$command"; then :
+      else
+	$run $rm $removelist
+	exit 1
+      fi
+
+      if test "$need_locks" = warn &&
+	 test x"`cat $lockfile 2>/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 1
+      fi
+
+      # Just move the object if needed
+      if 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
+
+      # Create an invalid libtool object if no PIC, so that we do not
+      # accidentally link it into a program.
+      if test "$build_libtool_libs" != yes; then
+	$show "echo timestamp > $libobj"
+	$run eval "echo timestamp > \$libobj" || exit $?
+      else
+	# Move the .lo from within objdir
+	$show "$mv $libobj $lo_libobj"
+	if $run $mv $libobj $lo_libobj; then :
+	else
+	  error=$?
+	  $run $rm $removelist
+	  exit $error
+	fi
+      fi
+    fi
+
+    # Unlock the critical section if it was locked
+    if test "$need_locks" != no; then
+      $run $rm "$lockfile"
+    fi
+
+    exit 0
+    ;;
+
+  # libtool link mode
+  link | relink)
+    modename="$modename: link"
+    case $host in
+    *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
+      # It is impossible to link a dll without this setting, and
+      # we shouldn't force the makefile maintainer to figure out
+      # which system we are compiling for in order to pass an extra
+      # flag for every libtool invokation.
+      # allow_undefined=no
+
+      # FIXME: Unfortunately, there are problems with the above when trying
+      # to make a dll which has undefined symbols, in which case not
+      # even a static library is built.  For now, we need to specify
+      # -no-undefined on the libtool link line when we can be certain
+      # that all symbols are satisfied, otherwise we get a static library.
+      allow_undefined=yes
+      ;;
+    *)
+      allow_undefined=yes
+      ;;
+    esac
+    libtool_args="$nonopt"
+    compile_command="$nonopt"
+    finalize_command="$nonopt"
+
+    compile_rpath=
+    finalize_rpath=
+    compile_shlibpath=
+    finalize_shlibpath=
+    convenience=
+    old_convenience=
+    deplibs=
+    old_deplibs=
+    compiler_flags=
+    linker_flags=
+    dllsearchpath=
+    lib_search_path=`pwd`
+
+    avoid_version=no
+    dlfiles=
+    dlprefiles=
+    dlself=no
+    export_dynamic=no
+    export_symbols=
+    export_symbols_regex=
+    generated=
+    libobjs=
+    ltlibs=
+    module=no
+    no_install=no
+    objs=
+    prefer_static_libs=no
+    preload=no
+    prev=
+    prevarg=
+    release=
+    rpath=
+    xrpath=
+    perm_rpath=
+    temp_rpath=
+    thread_safe=no
+    vinfo=
+
+    # We need to know -static, to get the right output filenames.
+    for arg
+    do
+      case $arg in
+      -all-static | -static)
+	if test "X$arg" = "X-all-static"; then
+	  if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
+	    $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
+	  fi
+	  if test -n "$link_static_flag"; then
+	    dlopen_self=$dlopen_self_static
+	  fi
+	else
+	  if test -z "$pic_flag" && test -n "$link_static_flag"; then
+	    dlopen_self=$dlopen_self_static
+	  fi
+	fi
+	build_libtool_libs=no
+	build_old_libs=yes
+	prefer_static_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 1
+	  fi
+	  prev=
+	  continue
+	  ;;
+	expsyms_regex)
+	  export_symbols_regex="$arg"
+	  prev=
+	  continue
+	  ;;
+	release)
+	  release="-$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 1
+	    ;;
+	  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
+	  ;;
+	*)
+	  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 1
+	fi
+	if test "X$arg" = "X-export-symbols"; then
+	  prev=expsyms
+	else
+	  prev=expsyms_regex
+	fi
+	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*)
+	  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
+	    exit 1
+	  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*)
+	  case :$dllsearchpath: in
+	  *":$dir:"*) ;;
+	  *) dllsearchpath="$dllsearchpath:$dir";;
+	  esac
+	  ;;
+	esac
+	continue
+	;;
+
+      -l*)
+	if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
+	  case $host in
+	  *-*-cygwin* | *-*-pw32* | *-*-beos*)
+	    # These systems don't actually have a C or math library (as such)
+	    continue
+	    ;;
+	  *-*-mingw* | *-*-os2*)
+	    # These systems don't actually have a C library (as such)
+	    test "X$arg" = "X-lc" && continue
+	    ;;
+	  *-*-openbsd*)
+	    # Do not include libc due to us having libc/libc_r.
+	    test "X$arg" = "X-lc" && continue
+	    ;;
+	  esac
+	 elif test "X$arg" = "X-lc_r"; then
+	  case $host in
+	  *-*-openbsd*)
+	    # Do not include libc_r directly, use -pthread flag.
+	    continue
+	    ;;
+	  esac
+	fi
+	deplibs="$deplibs $arg"
+	continue
+	;;
+
+      -module)
+	module=yes
+	continue
+	;;
+
+      -no-fast-install)
+	fast_install=no
+	continue
+	;;
+
+      -no-install)
+	case $host in
+	*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
+	  # The PATH hackery in wrapper scripts is required on Windows
+	  # 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
+	;;
+
+      -o) prev=output ;;
+
+      -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 1
+	  ;;
+	esac
+	case "$xrpath " in
+	*" $dir "*) ;;
+	*) xrpath="$xrpath $dir" ;;
+	esac
+	continue
+	;;
+
+      -static)
+	# 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
+	;;
+
+      -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
+	;;
+
+      # 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
+	;;
+
+      *.lo | *.$objext)
+	# A library or standard object.
+	if test "$prev" = dlfiles; then
+	  # This file was specified with -dlopen.
+	  if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
+	    dlfiles="$dlfiles $arg"
+	    prev=
+	    continue
+	  else
+	    # If libtool objects are unsupported, then we need to preload.
+	    prev=dlprefiles
+	  fi
+	fi
+
+	if test "$prev" = dlprefiles; then
+	  # Preload the old-style object.
+	  dlprefiles="$dlprefiles "`$echo "X$arg" | $Xsed -e "$lo2o"`
+	  prev=
+	else
+	  case $arg in
+	  *.lo) libobjs="$libobjs $arg" ;;
+	  *) objs="$objs $arg" ;;
+	  esac
+	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 1
+    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
+
+    # 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
+      status=$?
+      if test $status -ne 0 && test ! -d $output_objdir; then
+	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 1
+      ;;
+    *.$libext) linkmode=oldlib ;;
+    *.lo | *.$objext) linkmode=obj ;;
+    *.la) linkmode=lib ;;
+    *) linkmode=prog ;; # Anything else should be a program.
+    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
+      case "$libs " in
+      *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
+      esac
+      libs="$libs $deplib"
+    done
+    deplibs=
+    newdependency_libs=
+    newlib_search_path=
+    need_relink=no # whether we're linking any uninstalled libtool libraries
+    notinst_deplibs= # not-installed libtool libraries
+    notinst_path= # paths that contain 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 1
+	    ;;
+	  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 = prog; then
+	# Determine which files to process
+	case $pass in
+	dlopen)
+	  libs="$dlfiles"
+	  save_deplibs="$deplibs" # Collect dlpreopened libraries
+	  deplibs=
+	  ;;
+	dlpreopen) libs="$dlprefiles" ;;
+	link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
+	esac
+      fi
+      for deplib in $libs; do
+	lib=
+	found=no
+	case $deplib in
+	-l*)
+	  if test $linkmode = oldlib && test $linkmode = obj; then
+	    $echo "$modename: warning: \`-l' is ignored for archives/objects: $deplib" 1>&2
+	    continue
+	  fi
+	  if test $pass = conv; then
+	    deplibs="$deplib $deplibs"
+	    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
+	    # Search the libtool library
+	    lib="$searchdir/lib${name}.la"
+	    if test -f "$lib"; then
+	      found=yes
+	      break
+	    fi
+	  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
+	  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"
+	      newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
+	    else
+	      compile_deplibs="$deplib $compile_deplibs"
+	      finalize_deplibs="$deplib $finalize_deplibs"
+	    fi
+	    ;;
+	  *)
+	    $echo "$modename: warning: \`-L' is ignored for archives/objects: $deplib" 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)
+	    if test "$deplibs_check_method" != pass_all; then
+	      echo
+	      echo "*** Warning: This library needs some functionality provided by $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."
+	    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 = 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
+	  continue
+	  ;;
+	%DEPLIBS%)
+	  alldeplibs=yes
+	  continue
+	  ;;
+	esac # case $deplib
+	if test $found = yes || test -f "$lib"; then :
+	else
+	  $echo "$modename: cannot find the library \`$lib'" 1>&2
+	  exit 1
+	fi
+
+	# Check to see that this really is a libtool archive.
+	if (sed -e '2q' $lib | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
+	else
+	  $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
+	  exit 1
+	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 variable installed.
+	installed=yes
+
+	# Read the .la file
+	case $lib in
+	*/* | *\\*) . $lib ;;
+	*) . ./$lib ;;
+	esac
+
+	if test "$linkmode,$pass" = "lib,link" ||
+	   test "$linkmode,$pass" = "prog,scan" ||
+	   { test $linkmode = oldlib && test $linkmode = obj; }; then
+	   # Add dl[pre]opened files of deplib
+	  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 1
+	    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"
+	      case "$tmp_libs " in
+	      *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
+	      esac
+	      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 1
+	  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 1
+	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 1
+	  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.
+	    dlprefiles="$dlprefiles $lib"
+	  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
+	else
+	  dir="$ladir/$objdir"
+	  absdir="$abs_ladir/$objdir"
+	  # Remove this search path later
+	  notinst_path="$notinst_path $abs_ladir"
+	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 1
+	  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"
+	  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
+	    case "$tmp_libs " in
+	    *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
+	    esac
+	    tmp_libs="$tmp_libs $deplib"
+	  done # for deplib
+	  continue
+	fi # $linkmode = prog...
+
+	link_static=no # Whether the deplib will be linked statically
+	if test -n "$library_names" &&
+	   { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
+	  # Link against this shared library
+
+	  if test "$linkmode,$pass" = "prog,link" ||
+	   { 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
+	    if test $linkmode = prog; then
+	      # We need to hardcode the library path
+	      if test -n "$shlibpath_var"; then
+		# Make sure the rpath contains only unique directories.
+		case "$temp_rpath " in
+		*" $dir "*) ;;
+		*" $absdir "*) ;;
+		*) temp_rpath="$temp_rpath $dir" ;;
+		esac
+	      fi
+	    fi
+	  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
+
+	  if test "$installed" = no; then
+	    notinst_deplibs="$notinst_deplibs $lib"
+	    need_relink=yes
+	  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*)
+		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='~'
+	      eval cmds=\"$extract_expsyms_cmds\"
+	      for cmd in $cmds; do
+		IFS="$save_ifs"
+		$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='~'
+	      eval cmds=\"$old_archive_from_expsyms_cmds\"
+	      for cmd in $cmds; do
+		IFS="$save_ifs"
+		$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"
+	      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"
+		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 1
+	    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"
+	    else
+	      # We cannot seem to hardcode it, guess we'll fake it.
+	      if test "X$installed" = Xyes; then
+	        add_dir="-L$libdir"
+	      else
+	        add_dir="-L$DESTDIR$libdir"
+	      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
+	  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
+
+	  # Try to link the static library
+	  # 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 library needs some functionality provided by $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 "*** Therefore, libtool will create a static module, that should work "
+	      echo "*** as long as the dlopening 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
+		build_libtool_libs=module
+		build_old_libs=yes
+	      else
+		build_libtool_libs=no
+	      fi
+	    fi
+	  else
+	    convenience="$convenience $dir/$old_library"
+	    old_convenience="$old_convenience $dir/$old_library"
+	    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"
+	    case "$tmp_libs " in
+	    *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
+	    esac
+	    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="-L$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 1
+		  fi
+		  if test "$absdir" != "$libdir"; then
+		    $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
+		  fi
+		  path="-L$absdir"
+		fi
+		;;
+	      *) continue ;;
+	      esac
+	      case " $deplibs " in
+	      *" $path "*) ;;
+	      *) deplibs="$deplibs $path" ;;
+	      esac
+	    done
+	  fi # link_all_deplibs != no
+	fi # linkmode = lib
+      done # for deplib in $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
+	test $pass != scan && dependency_libs="$newdependency_libs"
+	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
+	    case $deplib in
+	    -L*) new_libs="$deplib $new_libs" ;;
+	    *)
+	      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
+      if test "$pass" = "conv" &&
+       { test "$linkmode" = "lib" || test "$linkmode" = "prog"; }; then
+	libs="$deplibs" # reset libs
+	deplibs=
+      fi
+    done # for pass
+    if test $linkmode = prog; then
+      dlfiles="$newdlfiles"
+      dlprefiles="$newdlprefiles"
+    fi
+
+    case $linkmode in
+    oldlib)
+      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' 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 libname=\"$libname_spec\"
+	;;
+      *)
+	if test "$module" = no; then
+	  $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
+	  $echo "$help" 1>&2
+	  exit 1
+	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 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 1
+	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.
+	  libext=al
+	  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' 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 1
+	fi
+
+	current="$2"
+	revision="$3"
+	age="$4"
+
+	# 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]) ;;
+	*)
+	  $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
+	  $echo "$modename: \`$vinfo' is not valid version information" 1>&2
+	  exit 1
+	  ;;
+	esac
+
+	case $revision in
+	0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
+	*)
+	  $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
+	  $echo "$modename: \`$vinfo' is not valid version information" 1>&2
+	  exit 1
+	  ;;
+	esac
+
+	case $age in
+	0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
+	*)
+	  $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
+	  $echo "$modename: \`$vinfo' is not valid version information" 1>&2
+	  exit 1
+	  ;;
+	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 1
+	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`
+	  verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
+	  ;;
+
+	freebsd-aout)
+	  major=".$current"
+	  versuffix=".$current.$revision";
+	  ;;
+
+	freebsd-elf)
+	  major=".$current"
+	  versuffix=".$current";
+	  ;;
+
+	irix)
+	  major=`expr $current - $age + 1`
+	  verstring="sgi$major.$revision"
+
+	  # Add in all the interfaces that we are compatible with.
+	  loop=$revision
+	  while test $loop != 0; do
+	    iface=`expr $revision - $loop`
+	    loop=`expr $loop - 1`
+	    verstring="sgi$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 != 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 1
+	  ;;
+	esac
+
+	# Clear the version info if we defaulted, and they specified a release.
+	if test -z "$vinfo" && test -n "$release"; then
+	  major=
+	  verstring="0.0"
+	  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.
+	$show "${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*"
+	$run ${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*
+      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*)
+	    # Do not include libc due to us having libc/libc_r.
+	    ;;
+	  *)
+	    # 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 behaviour.
+	  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 <<EOF
+	  int main() { return 0; }
+EOF
+	  $rm conftest
+	  $CC -o conftest conftest.c $deplibs
+	  if test $? -eq 0 ; then
+	    ldd_output=`ldd conftest`
+	    for i in $deplibs; do
+	      name="`expr $i : '-l\(.*\)'`"
+	      # If $name is empty we are operating on a -L argument.
+	      if test -n "$name" && test "$name" != "0"; then
+		libname=`eval \\$echo \"$libname_spec\"`
+		deplib_matches=`eval \\$echo \"$library_names_spec\"`
+		set dummy $deplib_matches
+		deplib_match=$2
+		if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
+		  newdeplibs="$newdeplibs $i"
+		else
+		  droppeddeps=yes
+		  echo
+		  echo "*** Warning: This library needs some functionality provided by $i."
+		  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."
+		fi
+	      else
+		newdeplibs="$newdeplibs $i"
+	      fi
+	    done
+	  else
+	    # Error occured in the first compile.  Let's try to salvage the situation:
+	    # Compile a seperate program for each library.
+	    for i in $deplibs; do
+	      name="`expr $i : '-l\(.*\)'`"
+	     # If $name is empty we are operating on a -L argument.
+	      if test -n "$name" && test "$name" != "0"; then
+		$rm conftest
+		$CC -o conftest conftest.c $i
+		# Did it work?
+		if test $? -eq 0 ; then
+		  ldd_output=`ldd conftest`
+		  libname=`eval \\$echo \"$libname_spec\"`
+		  deplib_matches=`eval \\$echo \"$library_names_spec\"`
+		  set dummy $deplib_matches
+		  deplib_match=$2
+		  if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
+		    newdeplibs="$newdeplibs $i"
+		  else
+		    droppeddeps=yes
+		    echo
+		    echo "*** Warning: This library needs some functionality provided by $i."
+		    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."
+		  fi
+		else
+		  droppeddeps=yes
+		  echo
+		  echo "*** Warning!  Library $i is needed by this library but I was not able to"
+		  echo "***  make it link in!  You will probably need to install it or some"
+		  echo "*** library that it depends on before this library will be fully"
+		  echo "*** functional.  Installing it before continuing would be even better."
+		fi
+	      else
+		newdeplibs="$newdeplibs $i"
+	      fi
+	    done
+	  fi
+	  ;;
+	file_magic*)
+	  set dummy $deplibs_check_method
+	  file_magic_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
+	      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
+		      # 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
+	      if test -n "$a_deplib" ; then
+		droppeddeps=yes
+		echo
+		echo "*** Warning: This library needs some functionality provided by $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."
+	      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
+	      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
+		  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
+	      if test -n "$a_deplib" ; then
+		droppeddeps=yes
+		echo
+		echo "*** Warning: This library needs some functionality provided by $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."
+	      fi
+	    else
+	      # Add a -L argument.
+	      newdeplibs="$newdeplibs $a_deplib"
+	    fi
+	  done # Gone through all deplibs.
+	  ;;
+	none | unknown | *)
+	  newdeplibs=""
+	  if $echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
+	       -e 's/ -[LR][^ ]*//g' -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
+
+      # 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"
+	    eval dep_rpath=\"$hardcode_libdir_flag_spec\"
+	  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 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
+	test -z "$dlname" && dlname=$soname
+
+	lib="$output_objdir/$realname"
+	for link
+	do
+	  linknames="$linknames $link"
+	done
+
+	# Ensure that we have .o objects for linkers which dislike .lo
+	# (e.g. aix) in case we are running --disable-static
+	for obj in $libobjs; do
+	  xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
+	  if test "X$xdir" = "X$obj"; then
+	    xdir="."
+	  else
+	    xdir="$xdir"
+	  fi
+	  baseobj=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
+	  oldobj=`$echo "X$baseobj" | $Xsed -e "$lo2o"`
+	  if test ! -f $xdir/$oldobj; then
+	    $show "(cd $xdir && ${LN_S} $baseobj $oldobj)"
+	    $run eval '(cd $xdir && ${LN_S} $baseobj $oldobj)' || exit $?
+	  fi
+	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
+	    eval cmds=\"$export_symbols_cmds\"
+	    save_ifs="$IFS"; IFS='~'
+	    for cmd in $cmds; do
+	      IFS="$save_ifs"
+	      $show "$cmd"
+	      $run eval "$cmd" || exit $?
+	    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
+
+	if test -n "$convenience"; then
+	  if test -n "$whole_archive_flag_spec"; then
+	    eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
+	  else
+	    gentop="$output_objdir/${outputname}x"
+	    $show "${rm}r $gentop"
+	    $run ${rm}r "$gentop"
+	    $show "mkdir $gentop"
+	    $run mkdir "$gentop"
+	    status=$?
+	    if test $status -ne 0 && test ! -d "$gentop"; then
+	      exit $status
+	    fi
+	    generated="$generated $gentop"
+
+	    for xlib in $convenience; do
+	      # Extract the objects.
+	      case $xlib in
+	      [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
+	      *) xabs=`pwd`"/$xlib" ;;
+	      esac
+	      xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
+	      xdir="$gentop/$xlib"
+
+	      $show "${rm}r $xdir"
+	      $run ${rm}r "$xdir"
+	      $show "mkdir $xdir"
+	      $run mkdir "$xdir"
+	      status=$?
+	      if test $status -ne 0 && test ! -d "$xdir"; then
+		exit $status
+	      fi
+	      $show "(cd $xdir && $AR x $xabs)"
+	      $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
+
+	      libobjs="$libobjs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP`
+	    done
+	  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 -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
+	  eval cmds=\"$archive_expsym_cmds\"
+	else
+	  eval cmds=\"$archive_cmds\"
+	fi
+	save_ifs="$IFS"; IFS='~'
+	for cmd in $cmds; do
+	  IFS="$save_ifs"
+	  $show "$cmd"
+	  $run eval "$cmd" || 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 $?
+	  exit 0
+	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 1
+	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
+      wl=
+
+      if test -n "$convenience"; then
+	if test -n "$whole_archive_flag_spec"; then
+	  eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
+	else
+	  gentop="$output_objdir/${obj}x"
+	  $show "${rm}r $gentop"
+	  $run ${rm}r "$gentop"
+	  $show "mkdir $gentop"
+	  $run mkdir "$gentop"
+	  status=$?
+	  if test $status -ne 0 && test ! -d "$gentop"; then
+	    exit $status
+	  fi
+	  generated="$generated $gentop"
+
+	  for xlib in $convenience; do
+	    # Extract the objects.
+	    case $xlib in
+	    [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
+	    *) xabs=`pwd`"/$xlib" ;;
+	    esac
+	    xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
+	    xdir="$gentop/$xlib"
+
+	    $show "${rm}r $xdir"
+	    $run ${rm}r "$xdir"
+	    $show "mkdir $xdir"
+	    $run mkdir "$xdir"
+	    status=$?
+	    if test $status -ne 0 && test ! -d "$xdir"; then
+	      exit $status
+	    fi
+	    $show "(cd $xdir && $AR x $xabs)"
+	    $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
+
+	    reload_conv_objs="$reload_objs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP`
+	  done
+	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"
+      eval cmds=\"$reload_cmds\"
+      save_ifs="$IFS"; IFS='~'
+      for cmd in $cmds; do
+	IFS="$save_ifs"
+	$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 0
+      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 0
+      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"
+	eval cmds=\"$reload_cmds\"
+	save_ifs="$IFS"; IFS='~'
+	for cmd in $cmds; do
+	  IFS="$save_ifs"
+	  $show "$cmd"
+	  $run eval "$cmd" || exit $?
+	done
+	IFS="$save_ifs"
+      else
+	# Just create a symlink.
+	$show $rm $libobj
+	$run $rm $libobj
+	xdir=`$echo "X$libobj" | $Xsed -e 's%/[^/]*$%%'`
+	if test "X$xdir" = "X$libobj"; then
+	  xdir="."
+	else
+	  xdir="$xdir"
+	fi
+	baseobj=`$echo "X$libobj" | $Xsed -e 's%^.*/%%'`
+	oldobj=`$echo "X$baseobj" | $Xsed -e "$lo2o"`
+	$show "(cd $xdir && $LN_S $oldobj $baseobj)"
+	$run eval '(cd $xdir && $LN_S $oldobj $baseobj)' || exit $?
+      fi
+
+      if test -n "$gentop"; then
+	$show "${rm}r $gentop"
+	$run ${rm}r $gentop
+      fi
+
+      exit 0
+      ;;
+
+    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
+
+      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*)
+	  case :$dllsearchpath: in
+	  *":$libdir:"*) ;;
+	  *) dllsearchpath="$dllsearchpath:$libdir";;
+	  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/$output.exp"
+	      $run $rm $export_symbols
+	      $run eval "sed -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
+	    else
+	      $run eval "sed -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
+	      $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
+	      $run eval 'mv "$nlist"T "$nlist"'
+	    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" | sort +2 | 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. */
+const struct {
+  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 -DPIC -DFREEBSD_WORKAROUND";;
+	    esac;;
+	  *-*-hpux*)
+	    case "$compile_command " in
+	    *" -static "*) ;;
+	    *) pic_flag_for_symtable=" $pic_flag -DPIC";;
+	    esac
+	  esac
+
+	  # Now compile the dynamic symbol file.
+	  $show "(cd $output_objdir && $CC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
+	  $run eval '(cd $output_objdir && $CC -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.
+	  compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
+	  finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
+	  ;;
+	*)
+	  $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
+	  exit 1
+	  ;;
+	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" | $Xsed -e "s% @SYMFILE@%%"`
+	finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
+      fi
+
+      if test $need_relink = no || test "$build_libtool_libs" != yes; then
+	# Replace the output file specification.
+	compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
+	link_command="$compile_command$compile_rpath"
+
+	# We have no uninstalled library dependencies, so finalize right now.
+	$show "$link_command"
+	$run eval "$link_command"
+	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 $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 0
+      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" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
+	  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" | $Xsed -e "$sed_quote_subst"`
+      fi
+
+      # Quote $echo for shipping.
+      if test "X$echo" = "X$SHELL $0 --fallback-echo"; then
+	case $0 in
+	[\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $0 --fallback-echo";;
+	*) qecho="$SHELL `pwd`/$0 --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 ;;
+	  *) exeext= ;;
+	esac
+	$rm $output
+	trap "$rm $output; exit 1" 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'
+
+# The HP-UX ksh and POSIX shell print the target directory to stdout
+# if CDPATH is set.
+if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi
+
+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 1
+      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
+	# win32 systems need to use the prog path for dll
+	# lookup to work
+	*-*-cygwin* | *-*-pw32*)
+	  $echo >> $output "\
+      exec \$progdir/\$program \${1+\"\$@\"}
+"
+	  ;;
+
+	# Backslashes separate directories on plain windows
+	*-*-mingw | *-*-os2*)
+	  $echo >> $output "\
+      exec \$progdir\\\\\$program \${1+\"\$@\"}
+"
+	  ;;
+
+	*)
+	  $echo >> $output "\
+      # Export the path to the program.
+      PATH=\"\$progdir:\$PATH\"
+      export PATH
+
+      exec \$program \${1+\"\$@\"}
+"
+	  ;;
+	esac
+	$echo >> $output "\
+      \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
+      exit 1
+    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 1
+  fi
+fi\
+"
+	chmod +x $output
+      fi
+      exit 0
+      ;;
+    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="$objs$old_deplibs "`$echo "X$libobjs_save" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`
+	fi
+	addlibs="$old_convenience"
+      fi
+
+      if test -n "$addlibs"; then
+	gentop="$output_objdir/${outputname}x"
+	$show "${rm}r $gentop"
+	$run ${rm}r "$gentop"
+	$show "mkdir $gentop"
+	$run mkdir "$gentop"
+	status=$?
+	if test $status -ne 0 && test ! -d "$gentop"; then
+	  exit $status
+	fi
+	generated="$generated $gentop"
+
+	# Add in members from convenience archives.
+	for xlib in $addlibs; do
+	  # Extract the objects.
+	  case $xlib in
+	  [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
+	  *) xabs=`pwd`"/$xlib" ;;
+	  esac
+	  xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
+	  xdir="$gentop/$xlib"
+
+	  $show "${rm}r $xdir"
+	  $run ${rm}r "$xdir"
+	  $show "mkdir $xdir"
+	  $run mkdir "$xdir"
+	  status=$?
+	  if test $status -ne 0 && test ! -d "$xdir"; then
+	    exit $status
+	  fi
+	  $show "(cd $xdir && $AR x $xabs)"
+	  $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
+
+	  oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
+	done
+      fi
+
+      # Do each command in the archive commands.
+      if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
+	eval cmds=\"$old_archive_from_new_cmds\"
+      else
+	# Ensure that we have .o objects in place in case we decided
+	# not to build a shared library, and have fallen back to building
+	# static libs even though --disable-static was passed!
+	for oldobj in $oldobjs; do
+	  if test ! -f $oldobj; then
+	    xdir=`$echo "X$oldobj" | $Xsed -e 's%/[^/]*$%%'`
+	    if test "X$xdir" = "X$oldobj"; then
+	      xdir="."
+	    else
+	      xdir="$xdir"
+	    fi
+	    baseobj=`$echo "X$oldobj" | $Xsed -e 's%^.*/%%'`
+	    obj=`$echo "X$baseobj" | $Xsed -e "$o2lo"`
+	    $show "(cd $xdir && ${LN_S} $obj $baseobj)"
+	    $run eval '(cd $xdir && ${LN_S} $obj $baseobj)' || exit $?
+	  fi
+	done
+
+	eval cmds=\"$old_archive_cmds\"
+      fi
+      save_ifs="$IFS"; IFS='~'
+      for cmd in $cmds; do
+	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 $0 --mode=relink $libtool_args"
+      relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
+
+      # 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 1
+		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 1
+	      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 1
+	      fi
+	      newdlprefiles="$newdlprefiles $libdir/$name"
+	    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) 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
+
+# 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 0
+    ;;
+
+  # 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" | $Xsed | 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) prev="-f" ;;
+      -g) prev="-g" ;;
+      -m) prev="-m" ;;
+      -o) prev="-o" ;;
+      -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 1
+    fi
+
+    if test -n "$prev"; then
+      $echo "$modename: the \`$prev' option requires an argument" 1>&2
+      $echo "$help" 1>&2
+      exit 1
+    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 1
+    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 1
+      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 1
+	  ;;
+	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 | egrep "^# 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 1
+	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.
+	DESTDIR=
+	if test "X$destdir" = "X$libdir"; then
+	  case "$current_libdirs " in
+	  *" $libdir "*) ;;
+	  *) current_libdirs="$current_libdirs $libdir" ;;
+	  esac
+	else
+	  case "$destdir" in
+	    *"$libdir")
+	      DESTDIR=`$echo "$destdir" | sed -e 's!'"$libdir"'$!!'`
+	      if test "X$destdir" != "X$DESTDIR$libdir"; then
+		DESTDIR=
+	      fi
+	      ;;
+	  esac
+	  # 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
+	  $echo "$modename: warning: relinking \`$file'" 1>&2
+	  export DESTDIR
+	  $show "$relink_command"
+	  if $run eval "$relink_command"; then :
+	  else
+	    $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
+	    continue
+	  fi
+	fi
+	unset DESTDIR
+
+	# 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.
+	    for linkname
+	    do
+	      if test "$linkname" != "$realname"; then
+		$show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
+		$run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
+	      fi
+	    done
+	  fi
+
+	  # Do each command in the postinstall commands.
+	  lib="$destdir/$realname"
+	  eval cmds=\"$postinstall_cmds\"
+	  save_ifs="$IFS"; IFS='~'
+	  for cmd in $cmds; do
+	    IFS="$save_ifs"
+	    $show "$cmd"
+	    $run eval "$cmd" || 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 1
+	  ;;
+	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 0
+	;;
+
+      *)
+	# 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
+
+	# Do a test to see if this is really a libtool program.
+	if (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
+	  notinst_deplibs=
+	  relink_command=
+
+	  # If there is no directory component, then add one.
+	  case $file in
+	  */* | *\\*) . $file ;;
+	  *) . ./$file ;;
+	  esac
+
+	  # Check the variables that should have been set.
+	  if test -z "$notinst_deplibs"; then
+	    $echo "$modename: invalid libtool wrapper script \`$file'" 1>&2
+	    exit 1
+	  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=
+	  # If there is no directory component, then add one.
+	  case $file in
+	  */* | *\\*) . $file ;;
+	  *) . ./$file ;;
+	  esac
+
+	  outputname=
+	  if test "$fast_install" = no && test -n "$relink_command"; then
+	    if test "$finalize" = yes && test -z "$run"; then
+	      tmpdir="/tmp"
+	      test -n "$TMPDIR" && tmpdir="$TMPDIR"
+	      tmpdir="$tmpdir/libtool-$$"
+	      if $mkdir -p "$tmpdir" && chmod 700 "$tmpdir"; then :
+	      else
+		$echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
+		continue
+	      fi
+	      file=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
+	      outputname="$tmpdir/$file"
+	      # Replace the output file specification.
+	      relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
+
+	      $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" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
+	  fi
+	fi
+
+	# remove .exe since cygwin /usr/bin/install will append another
+	# one anyways
+	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 "$striplib"; then
+	$show "$old_striplib $oldlib"
+	$run eval "$old_striplib $oldlib" || exit $?
+      fi
+
+      # Do each command in the postinstall commands.
+      eval cmds=\"$old_postinstall_cmds\"
+      save_ifs="$IFS"; IFS='~'
+      for cmd in $cmds; do
+	IFS="$save_ifs"
+	$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 $0 --finish$current_libdirs'
+    else
+      exit 0
+    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.
+	  eval cmds=\"$finish_cmds\"
+	  save_ifs="$IFS"; IFS='~'
+	  for cmd in $cmds; do
+	    IFS="$save_ifs"
+	    $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 0
+
+    echo "----------------------------------------------------------------------"
+    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 "----------------------------------------------------------------------"
+    exit 0
+    ;;
+
+  # 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 1
+    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 1
+      fi
+
+      dir=
+      case $file in
+      *.la)
+	# Check to see that this really is a libtool archive.
+	if (sed -e '2q' $file | egrep "^# 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 1
+	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
+	  $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
+	  exit 1
+	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 | egrep "^# 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 enviroment variables
+      if test "${save_LC_ALL+set}" = set; then
+	LC_ALL="$save_LC_ALL"; export LC_ALL
+      fi
+      if test "${save_LANG+set}" = set; then
+	LANG="$save_LANG"; export LANG
+      fi
+
+      # 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 0
+    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 1
+    fi
+
+    rmdirs=
+
+    for file in $files; do
+      dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
+      if test "X$dir" = "X$file"; then
+	dir=.
+	objdir="$objdir"
+      else
+	objdir="$dir/$objdir"
+      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 | egrep "^# 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"
+	  test $mode = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
+
+	  if test $mode = uninstall; then
+	    if test -n "$library_names"; then
+	      # Do each command in the postuninstall commands.
+	      eval cmds=\"$postuninstall_cmds\"
+	      save_ifs="$IFS"; IFS='~'
+	      for cmd in $cmds; do
+		IFS="$save_ifs"
+		$show "$cmd"
+		$run eval "$cmd"
+		if test $? != 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.
+	      eval cmds=\"$old_postuninstall_cmds\"
+	      save_ifs="$IFS"; IFS='~'
+	      for cmd in $cmds; do
+		IFS="$save_ifs"
+		$show "$cmd"
+		$run eval "$cmd"
+		if test $? != 0 && test "$rmforce" != yes; then
+		  exit_status=1
+		fi
+	      done
+	      IFS="$save_ifs"
+	    fi
+	    # FIXME: should reinstall the best remaining shared library.
+	  fi
+	fi
+	;;
+
+      *.lo)
+	if test "$build_old_libs" = yes; then
+	  oldobj=`$echo "X$name" | $Xsed -e "$lo2o"`
+	  rmfiles="$rmfiles $dir/$oldobj"
+	fi
+	;;
+
+      *)
+	# Do a test to see if this is a libtool program.
+	if test $mode = clean &&
+	   (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
+	  relink_command=
+	  . $dir/$file
+
+	  rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
+	  if test "$fast_install" = yes && test -n "$relink_command"; then
+	    rmfiles="$rmfiles $objdir/lt-$name"
+	  fi
+	fi
+	;;
+      esac
+      $show "$rm $rmfiles"
+      $run $rm $rmfiles || exit_status=1
+    done
+
+    # 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 1
+    ;;
+  esac
+
+  if test -z "$exec_cmd"; then
+    $echo "$modename: invalid operation mode \`$mode'" 1>&2
+    $echo "$generic_help" 1>&2
+    exit 1
+  fi
+fi # test -z "$show_help"
+
+if test -n "$exec_cmd"; then
+  eval exec $exec_cmd
+  exit 1
+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
+    --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."
+  exit 0
+  ;;
+
+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
+  -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 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 1
+  ;;
+esac
+
+echo
+$echo "Try \`$modename --help' for more information about other modes."
+
+exit 0
+
+# Local Variables:
+# mode:shell-script
+# sh-indentation:2
+# End:

Added: packages/gpsdrive/branches/etch/man/Makefile.am
===================================================================
--- packages/gpsdrive/branches/etch/man/Makefile.am	                        (rev 0)
+++ packages/gpsdrive/branches/etch/man/Makefile.am	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,10 @@
+SUBDIRS = de es 
+
+man: gpsdrive.1
+
+EXTRA_DIST = gpsdrive.1
+
+install-data-local:
+	$(mkinstalldirs) $(DESTDIR)$(mandir)/man1/
+	$(INSTALL_DATA) gpsdrive.1 $(DESTDIR)$(mandir)/man1/gpsdrive.1
+

Added: packages/gpsdrive/branches/etch/man/Makefile.in
===================================================================
--- packages/gpsdrive/branches/etch/man/Makefile.in	                        (rev 0)
+++ packages/gpsdrive/branches/etch/man/Makefile.in	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,465 @@
+# Makefile.in generated by automake 1.7.6 from Makefile.am.
+# @configure_input@
+
+# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
+# 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.
+
+ at 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 = :
+host_triplet = @host@
+ACLOCAL = @ACLOCAL@
+AMDEP_FALSE = @AMDEP_FALSE@
+AMDEP_TRUE = @AMDEP_TRUE@
+AMTAR = @AMTAR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+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@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DISABLEGARMIN_FALSE = @DISABLEGARMIN_FALSE@
+DISABLEGARMIN_TRUE = @DISABLEGARMIN_TRUE@
+DISABLEPLUGINS_FALSE = @DISABLEPLUGINS_FALSE@
+DISABLEPLUGINS_TRUE = @DISABLEPLUGINS_TRUE@
+ECHO = @ECHO@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+ENABLETELEATLAS_FALSE = @ENABLETELEATLAS_FALSE@
+ENABLETELEATLAS_TRUE = @ENABLETELEATLAS_TRUE@
+EXEEXT = @EXEEXT@
+FRIENDSSERVERVERSION = @FRIENDSSERVERVERSION@
+GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
+GMOFILES = @GMOFILES@
+GMSGFMT = @GMSGFMT@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INSTOBJEXT = @INSTOBJEXT@
+INTLLIBS = @INTLLIBS@
+LDFLAGS = @LDFLAGS@
+LIBADD_DL = @LIBADD_DL@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MKINSTALLDIRS = @MKINSTALLDIRS@
+MSGFMT = @MSGFMT@
+MSGMERGE = @MSGMERGE@
+NOGARMIN = @NOGARMIN@
+NOPLUGINS = @NOPLUGINS@
+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@
+PCRE_CONFIG = @PCRE_CONFIG@
+PKGCONFIG_CFLAGS = @PKGCONFIG_CFLAGS@
+PKGCONFIG_LIBS = @PKGCONFIG_LIBS@
+PKG_CONFIG = @PKG_CONFIG@
+POFILES = @POFILES@
+POSUB = @POSUB@
+PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
+PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
+RANLIB = @RANLIB@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+USETELEATLAS = @USETELEATLAS@
+USE_NLS = @USE_NLS@
+VERSION = @VERSION@
+XGETTEXT = @XGETTEXT@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_RANLIB = @ac_ct_RANLIB@
+ac_ct_STRIP = @ac_ct_STRIP@
+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 = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+datadir = @datadir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+oldincludedir = @oldincludedir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+SUBDIRS = de es 
+
+EXTRA_DIST = gpsdrive.1
+subdir = man
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+DIST_SOURCES =
+
+RECURSIVE_TARGETS = info-recursive dvi-recursive pdf-recursive \
+	ps-recursive install-info-recursive uninstall-info-recursive \
+	all-recursive install-data-recursive install-exec-recursive \
+	installdirs-recursive install-recursive uninstall-recursive \
+	check-recursive installcheck-recursive
+DIST_COMMON = Makefile.am Makefile.in
+DIST_SUBDIRS = $(SUBDIRS)
+all: all-recursive
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  Makefile.am  $(top_srcdir)/configure.ac $(ACLOCAL_M4)
+	cd $(top_srcdir) && \
+	  $(AUTOMAKE) --gnu  man/Makefile
+Makefile:  $(srcdir)/Makefile.in  $(top_builddir)/config.status
+	cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+
+distclean-libtool:
+	-rm -f libtool
+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
+
+ETAGS = etags
+ETAGSFLAGS =
+
+CTAGS = ctags
+CTAGSFLAGS =
+
+tags: TAGS
+
+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-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; \
+	else \
+	  include_option=--include; \
+	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; }'`; \
+	test -z "$(ETAGS_ARGS)$$tags$$unique" \
+	  || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+	     $$tags $$unique
+
+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
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+
+top_distdir = ..
+distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
+
+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"; \
+	    $(mkinstalldirs) "$(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
+installdirs: installdirs-recursive
+installdirs-am:
+
+install: install-recursive
+install-exec: install-exec-recursive
+install-data: install-data-recursive
+uninstall: uninstall-recursive
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-recursive
+install-strip:
+	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	  INSTALL_STRIP_FLAG=-s \
+	  `test -z '$(STRIP)' || \
+	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-rm -f Makefile $(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 clean-libtool mostlyclean-am
+
+distclean: distclean-recursive
+
+distclean-am: clean-am distclean-generic distclean-libtool \
+	distclean-tags
+
+dvi: dvi-recursive
+
+dvi-am:
+
+info: info-recursive
+
+info-am:
+
+install-data-am: install-data-local
+
+install-exec-am:
+
+install-info: install-info-recursive
+
+install-man:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-recursive
+
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-recursive
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-recursive
+
+pdf-am:
+
+ps: ps-recursive
+
+ps-am:
+
+uninstall-am: uninstall-info-am
+
+uninstall-info: uninstall-info-recursive
+
+.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am clean \
+	clean-generic clean-libtool clean-recursive ctags \
+	ctags-recursive distclean distclean-generic distclean-libtool \
+	distclean-recursive distclean-tags distdir dvi dvi-am \
+	dvi-recursive info info-am info-recursive install install-am \
+	install-data install-data-am install-data-local \
+	install-data-recursive install-exec install-exec-am \
+	install-exec-recursive install-info install-info-am \
+	install-info-recursive install-man install-recursive \
+	install-strip installcheck installcheck-am installdirs \
+	installdirs-am installdirs-recursive maintainer-clean \
+	maintainer-clean-generic maintainer-clean-recursive mostlyclean \
+	mostlyclean-generic mostlyclean-libtool mostlyclean-recursive \
+	pdf pdf-am pdf-recursive ps ps-am ps-recursive tags \
+	tags-recursive uninstall uninstall-am uninstall-info-am \
+	uninstall-info-recursive uninstall-recursive
+
+
+man: gpsdrive.1
+
+install-data-local:
+	$(mkinstalldirs) $(DESTDIR)$(mandir)/man1/
+	$(INSTALL_DATA) gpsdrive.1 $(DESTDIR)$(mandir)/man1/gpsdrive.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:

Added: packages/gpsdrive/branches/etch/man/de/Makefile.am
===================================================================
--- packages/gpsdrive/branches/etch/man/de/Makefile.am	                        (rev 0)
+++ packages/gpsdrive/branches/etch/man/de/Makefile.am	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,12 @@
+all: man
+
+man: gpsdrive.1
+
+EXTRA_DIST = gpsdrive.1
+
+install-data-local:
+	$(mkinstalldirs) $(DESTDIR)$(mandir)/de/man1/
+	$(INSTALL_DATA) gpsdrive.1 $(DESTDIR)$(mandir)/de/man1/gpsdrive.1
+
+
+

Added: packages/gpsdrive/branches/etch/man/de/Makefile.in
===================================================================
--- packages/gpsdrive/branches/etch/man/de/Makefile.in	                        (rev 0)
+++ packages/gpsdrive/branches/etch/man/de/Makefile.in	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,316 @@
+# Makefile.in generated by automake 1.7.6 from Makefile.am.
+# @configure_input@
+
+# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
+# 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.
+
+ at 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 = :
+host_triplet = @host@
+ACLOCAL = @ACLOCAL@
+AMDEP_FALSE = @AMDEP_FALSE@
+AMDEP_TRUE = @AMDEP_TRUE@
+AMTAR = @AMTAR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+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@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DISABLEGARMIN_FALSE = @DISABLEGARMIN_FALSE@
+DISABLEGARMIN_TRUE = @DISABLEGARMIN_TRUE@
+DISABLEPLUGINS_FALSE = @DISABLEPLUGINS_FALSE@
+DISABLEPLUGINS_TRUE = @DISABLEPLUGINS_TRUE@
+ECHO = @ECHO@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+ENABLETELEATLAS_FALSE = @ENABLETELEATLAS_FALSE@
+ENABLETELEATLAS_TRUE = @ENABLETELEATLAS_TRUE@
+EXEEXT = @EXEEXT@
+FRIENDSSERVERVERSION = @FRIENDSSERVERVERSION@
+GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
+GMOFILES = @GMOFILES@
+GMSGFMT = @GMSGFMT@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INSTOBJEXT = @INSTOBJEXT@
+INTLLIBS = @INTLLIBS@
+LDFLAGS = @LDFLAGS@
+LIBADD_DL = @LIBADD_DL@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MKINSTALLDIRS = @MKINSTALLDIRS@
+MSGFMT = @MSGFMT@
+MSGMERGE = @MSGMERGE@
+NOGARMIN = @NOGARMIN@
+NOPLUGINS = @NOPLUGINS@
+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@
+PCRE_CONFIG = @PCRE_CONFIG@
+PKGCONFIG_CFLAGS = @PKGCONFIG_CFLAGS@
+PKGCONFIG_LIBS = @PKGCONFIG_LIBS@
+PKG_CONFIG = @PKG_CONFIG@
+POFILES = @POFILES@
+POSUB = @POSUB@
+PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
+PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
+RANLIB = @RANLIB@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+USETELEATLAS = @USETELEATLAS@
+USE_NLS = @USE_NLS@
+VERSION = @VERSION@
+XGETTEXT = @XGETTEXT@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_RANLIB = @ac_ct_RANLIB@
+ac_ct_STRIP = @ac_ct_STRIP@
+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 = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+datadir = @datadir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+oldincludedir = @oldincludedir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+
+EXTRA_DIST = gpsdrive.1
+subdir = man/de
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+DIST_SOURCES =
+DIST_COMMON = Makefile.am Makefile.in
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  Makefile.am  $(top_srcdir)/configure.ac $(ACLOCAL_M4)
+	cd $(top_srcdir) && \
+	  $(AUTOMAKE) --gnu  man/de/Makefile
+Makefile:  $(srcdir)/Makefile.in  $(top_builddir)/config.status
+	cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+
+distclean-libtool:
+	-rm -f libtool
+uninstall-info-am:
+tags: TAGS
+TAGS:
+
+ctags: CTAGS
+CTAGS:
+
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+
+top_distdir = ../..
+distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
+
+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"; \
+	    $(mkinstalldirs) "$(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_STRIP_FLAG=-s \
+	  `test -z '$(STRIP)' || \
+	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-rm -f Makefile $(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 clean-libtool mostlyclean-am
+
+distclean: distclean-am
+
+distclean-am: clean-am distclean-generic distclean-libtool
+
+dvi: dvi-am
+
+dvi-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
+
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+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 clean-libtool \
+	distclean distclean-generic distclean-libtool distdir dvi \
+	dvi-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 \
+	mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
+	uninstall-info-am
+
+all: man
+
+man: gpsdrive.1
+
+install-data-local:
+	$(mkinstalldirs) $(DESTDIR)$(mandir)/de/man1/
+	$(INSTALL_DATA) gpsdrive.1 $(DESTDIR)$(mandir)/de/man1/gpsdrive.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:

Added: packages/gpsdrive/branches/etch/man/de/gpsdrive.1
===================================================================
--- packages/gpsdrive/branches/etch/man/de/gpsdrive.1	                        (rev 0)
+++ packages/gpsdrive/branches/etch/man/de/gpsdrive.1	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,583 @@
+.TH GPSDRIVE 1 
+.SH NAME
+gpsdrive - zeigt die GPS Position auf einer Karte an
+.SH SYNTAX
+.B gpsdrive [Optionen]
+.SH BESCHREIBUNG
+
+.B Diese Manualseite kann veraltet sein, den neuestesn Stand finden
+sie immer in der englischen manpage.
+
+.B Gpsdrive 
+ist ein Auto (Motorrad, Schiff, Flugzeug) Navigationssystem. GpsDrive
+zeigt die Position auf einer zoombaren Karte an, die von einem NMEA
+fähigen GPS Empfänger geliefert wird. Die Karten werden automatisch
+ausgewählt, abhängig von der Position. Man kann einen bevorzugten
+Massstab wählen, den das Programm aus dem vorhanden Kartenmaterial
+einzuhalten versucht.
+
+GpsDrive wurde mit einem GARMIN GPS III und einer Crux II GPS PCMCIA
+Karte getestet. Alle GARMIN GPS
+Empfänger mit einem seriellen Ausgang sollten verwendbar sein. Ebenso
+alle anderen GPS Empfänger die ein NMEA Protokoll über die serielle
+Schnittstelle senden sollten mit GpsDrive arbeiten können.
+
+Diese GPS Empfänger sind bereits bekannt, dass sie mit GpsDrive
+arbeiten können:
+
+Magellan 310, 315, 320
+.br
+Garminn GPS III
+.br
+Garmin etrex
+.br
+GPS 45
+.br
+Crux II GPS PCMCIA card
+.br
+Holux GM-200 serial version
+.br
+Holux GM-200 USB (braucht USB zu seriell Unterstützung im Kernel)
+.br
+eMap
+.br
+GPSMAP 295
+.br
+GNS 530
+.br
+Rayming TripNav, TN-200
+.br
+
+Haftungsausschluss:
+.B Verwenden sie das Programm nicht zur Navigation!
+
+.SH OPTIONEN
+.TP
+.B \-d
+Zeigt einige debugging Informationen.
+.TP
+.B \-D
+Zeigt ziemlich viele Debugging Informationen. Falls sie mit dem
+Programm Probleme haben, oder es abstürzt senden sie die Ausgabe an
+den Autor. Sie können es auch mit -d kombinieren. Siehe auch den BUGS
+Abschnitt weiter unten.
+.TP
+.B \-v
+Zeigt die Programmversion zusammen mit der CVS Version der Hauptdatei
+gpsdrive.c. Falls sie einen Fehlerbericht schicken, schicken sie diese
+Ausgabe ebenso mit.
+.TP
+.B \-h
+Zeigt eine kurze Hilfe.
+.TP
+.BI \-o "\| Ausgabedatei\^"
+Mit dieser Option können die NMEA Daten als
+.IR Ausgabe
+an einen PTY Master, eine Datei oder an ein serielles Gerät
+senden. Das ist nützlich, falls sie GpsDrive im Simulatormodus
+benutzen und andere Programme mit den Testdaten versorgen wollen.
+.TP
+.BI \-t "\| Gerät\^"
+Serieller Anschluss (z.B. 
+.IR /dev/ttyS0
+). Sie können dies auch im
+.IR Einstellungen
+Menü ändern.
+.TP
+.BI \-l "\| Sprache\^"
+Legt die Sprache für die Stimmenausgabe fest. Sie müssen selbst dafür
+Sorge tragen, die richtigen Sprachdateien für festival installiert zu
+haben. Momentan werden die Werte
+.IR german
+,
+.IR spanish
+und
+.IR english
+unterstützt.
+.TP
+.B \-x
+Erzeugt eigenes Fenster für die Menüknöpfe, Status und Karte. Das ist
+bei kleinen Displays wie beim Compaq iPaq nützlich oder wenn sie Head
+Mounted Displays verwenden, um das Menü zu verbergen.
+.TP
+.BI \-s "\| Höhe\^"
+Setzt die Bilschirmhöhe in Punkten, falls die automatische Einstellung
+sie nicht zufriedenstellt. Die
+.IR Höhe
+ist z.B. 768,600,480,200
+.BI \-r "\| Breite\^"
+Setzt die 
+.IR Breite
+falls die automatische Einstellung sie nicht zufriedenstellt, arbeitet
+nur zusammen mit
+.IR -s
+.TP
+.BI \-f "\| Freundeserver\^"
+Legt einen "Freundeserver" fest über den sie Positionsinformationen
+mit anderen Leuten austauschen können. Sie können ihren eigenen Server
+mit dem Programm
+.B friendsd
+starten, welches inkludiert ist.
+.TP
+.BI \-n "\| Name\^"
+Setzt den 
+.IR Namen
+der im Freundeserver Modus angezeigt wird.
+.TP
+.B \-1
+Setzt einen speziellen Modus falls sie sie nur eine Maustaste haben,
+z.B. bei Touchpads.
+.TP
+.B \-a
+Verhindert die Anzeige des Batteriestatus. Verwenden sie diese Option,
+wenn sie eine kaputtes APM BIOS haben, da dieses GpsDrive abstürzen
+lassen kann.
+.TP
+.BI \-b "\| Servername\^"
+Verwende einen entfernten NMEA server. Sie können gpsd auf einem
+anderen
+.IR Rechner
+starten, an dem ein GPS Empfänger angeschlossen ist. Sie zeigen dann
+die Position auf ihrem lokalen Rechner an.
+.TP
+.BI \-c "\| Wegpunktname\^"
+Startposition im Simulationsmodus. Geben sie einen
+.IR Wegpunktnamen
+aus der verwendeten Wegpunktdatei an.
+.TP
+.B \-q 
+Schaltet SQL support ab. Nur verwendbar, wenn sie SQL Unterstützung
+einkompiliert haben.
+
+
+.SH ANSCHLUSS EINES GPS EMPFÄNGERS
+Zuerst müssen sie zwischen GARMIN und NMEA Modus wählen.
+
+.B NMEA Modus. 
+.br
+Das ist der gebräuchliste Modus. Dieses Protokoll verwenden die
+meisten GPS Empfänger. Um den NMEA Modus zu benutzen, müssen sie das
+Programm 
+.B gpsd 
+gestartet haben. Der einfachste Weg ist, den
+.B Starte GPSD
+Knopf im Programm zu drücken.
+
+Das Programm läuft im Hintergrund und stellt einen Server dar,
+welcher die GPS Daten auf Port  2947 ausgibt. Die Einstellungen
+/dev/gps und 4800 Baud sind voreingestellt. Wenn sie
+.IR gpsd
+von Gpsdrive aus starten, gelten die Einstellungen aus dem
+.B Einstellungen
+Menü.
+
+Wenn sie diese Einstellungen ändern wollen, rufen sie gpsd
+folgendermaßen auf:
+.br
+.B gpsd -p /dev/ttyS1
+
+es ist jedoch einfacher, die Einstellungen in Gpsdrive selbst vorzunehmen.
+Vergewissern sie sich, dass das NMEA Protocol und 4800 Baud im GPS
+Gerät eingestellt sind.
+
+Um die Ausgabe des GPS zu sehen, machen sie einfach
+.B telnet localhost 2947
+and nach der Verbindung drücken sie die
+.B R
+Taste, um die NMEA Daten zu sehen.
+
+.B Verwendete NMEA Daten
+.br
+Folgende NMEA Daten werden verwendet:
+
+.I GPRMC: 
+Position, Geschwindigkeit, Heading
+.br
+.I GPGSV: 
+Satellit Signal Pegel Anzeige
+.br
+.I GPGGA: 
+Höhe (nicht auf allen Empfängern verfügbar) und Position falls kein
+GPRMC verfügbar ist. In diesem Fall wird die Geschwindigkeit und
+Richtung von GpsDrive errechnet.
+.br
+.I PGRME: 
+Anzeige des EPE (erwarteter Positions Fehler), ev. nur auf GARMIN
+Empfängern verfügbar
+
+
+
+.B GARMIN Modus
+.br
+In diesem Modus erhält das Programm lediglich die Werte für Länge und
+Breite, alles anderen Werte werden vom Programm selbst
+gerechnet. Weiters wird im GARMIN Modus keine Satellitensignalstärke
+angezeigt (dies wird vom GARMIN Protokoll nicht unterstützt).
+
+Der GARMIN Modus überträgt die Daten öfter (GARMIN: einige Male pro
+Sekunde, NMEA ca. 1 mal in 2 Sekunden).
+
+Wenn sie den Garmin Modus verwenden wollen, schliessen sie einfach den
+GPS Empfänger an die serielle Schnittstelle an. 
+Der GARMIN Modus wird nur von einigen GARMIN Empfängern unterstützt.
+.br
+
+GpsDrive erkennt automatisch GARMIN oder NMEA Modus falls dies im
+Einstellungen-Menü eingeschaltet ist.
+
+
+.SH Kompilieren ohne GARMIN Protokoll Unterstützung
+
+Wenn sie kein GARMIN Protokoll benötigen (z.B. wenn sie nur NMEA
+benutzen), können sie GpsDrive ohne GARMIN-Protokoll Unterstützung
+kompilieren:
+
+.br
+ ./configure --disable-garmin
+.br
+ make clean
+.br
+ make
+.br
+ su
+.br
+ make install
+
+Dies hat den Vorteil, dass sie ein kleineres und schnelleres
+Programm erhalten.
+
+.SH VERWENDUNG
+
+Sie können GpsDrive ohne ein angeschlossenes GPS verwenden. Dann
+startet GpsDrive automatisch im 
+.B Simulator Betrieb,
+bei welchem sie sich auf der Karte bewegen können. Stellen sie
+sicher, dass kein gpsd läuft damit der Simulator Betrieb starten kann.
+
+.SH KARTEN DOWNLOAD
+
+Sie können ihre Karte vom Internet mit dem Knopf
+.B Karten downloaden
+laden. Sie können zwischen dem Mapblast Server (www.mapblast.com) und
+dem Expedia server (www.expedia.com) wählen.
+
+Verwenden sie das Programm
+.IR gpsfetchmap
+und
+.IR gpsfetchmap.pl
+um mehrere Karten für einen grösseren Bereich herunterzuladen.
+.br
+.B Bitte beachten sie die Copyright Informationen auf www.mapblast.com und
+.B www.expedia.com wenn sie diese Karten verwenden wollen.
+
+.SH Routen Planung
+Es existiert im Moment keine Routenplanung Funktion in
+GpsDrive. Routenplanung braucht Daten aus kommerziellen Karten, eine
+Datenbanklizenz kostet mehr als 10.000 Euro.
+
+.SH PROXY SERVER
+Falls sie auf das Internet über eine Proxyserver zugreifen wollen oder
+müssen, dann setzen sie bitte die Umgebungsvariable
+.B HTTP_PROXY
+oder
+.B http_proxy
+auf eine Wert wie z.B.
+.I http://proxy.provider.de:3128
+wobei 3128 in diesem Beispiel die Portnummer des Proxyservers ist.
+
+.SH MAUS STEUERUNG
+
+Sie können in den
+.B Positionsmodus
+schalten, indem sie  diese Option im Menü auswählen.
+
+Wenn sie im "Postions Modus" sind, wird ein Quadrat den Cursor
+darstellen, jedoch keine Position angezeigt. Falls sie zoomen oder
+einen anderen Maßstab wählen, verhält sich das Programm so, als wäre
+der Cursor auf der aktuellen Position.
+
+Wenn sie mit der linken Maustaste nahe dem Rand klicken, scrollt die
+Karte weiter, bzw. wird eine neue passende Karte gelanden falls sie
+sich schon am Rand der Karte befinden.
+
+Die mittlere Maustaste schalten in den normalen Modus zurück. Ebenso,
+wenn sie den "Pos-Modus" wieder anklicken. Die Linke- bzw. Rechte
+Maustaste zusammen mit Shift gedrückt, ändert den Maßstab der Karte.
+
+Werfen sie auch eine Blick in das 
+.B Hilfe
+Menü von GpsDrive um über die aktuelle Mausbelegung und die
+Tastenkürzel informiert zu sein.
+
+.SH Neue Wegpunkte erzeugen
+Sie können neu Wegpunkte einfach auf zwei Arten erzeugen:
+
+o Um einen Wegpunkt an der
+.B aktuellen (GPS) Position 
+zu erzeugen, drücken sie einfach STRG und klicken sie mit der rechten
+Maustaste. Sie können auch einfach die 
+.B x
+Taste drücken.
+
+o Um einen Wegpunkt an der
+.B Maus Position,
+zu setzen, klicken sie STRG und die LINKE Maustaste. Sie können auch
+einfach die
+.B y
+Taste drücken.
+
+Im Popup Fenster geben sie den Wegpunkt Namen ein (Leerzeichen werden
+durch Unterstriche ersetzt) sowie den Wegpunkt Typ (siehe unten über
+vordefinierte Wegpunkt Typen). Sie können entweder einen neuen
+Wegpunkttyp erzeugen oder einen vorhandenen aus der Liste auswählen.
+.B Wichtig:
+Die Liste (nur im SQL Modus) zeigt die bereits verwendeten
+Wegpunkttypen, NICHT die Vordefinierten.
+
+.SH Icons für Wegpunkte
+Sie können die Wegpunkttypen frei definieren. Es gibt jedoch
+spezielle, vordefinierte Namen, welche ein spezielles Symbol im
+GpsDrive-Display erzeugen:
+
+.TP
+.B WLAN
+offener WLAN Accesspoint
+.TP
+.B WLAN-WEP
+verschlüsselter WLAN Accesspoint
+.TP
+.B Rest
+ein Restaurant
+.TP
+.B McDonalds
+eine "Art" Restaurant
+.TP
+.B BurgerKing
+eine andere "Art" Restaurant
+.TP
+.B Hotel
+ein Hotel
+.TP
+.B Shop
+Einkaufsmöglichkeit
+.TP
+.B Monu
+Monument, hist. Gebäude, interessanter Tourismuspunkt
+.TP
+.B Speedtrap
+Geschwindigkeitsmessung (Radar), warnt, wenn es sich in Fahrtrichtung befindet.
+.TP
+.B Nightclub
+Pssst...
+.TP
+.B Airport
+ein Flughafen
+.TP
+.B Golf
+Golfplatz
+.TP
+.B Gasstation
+Tankstelle
+.TP
+.B Cafe
+Cafe
+.PD
+.LP
+Gross-/Kleinschreibung ist egal.
+
+Bitte lesen sie auch
+.IR README.SQL
+, für eine aktuelle Liste der Wegpunkt Typen.
+
+.SH SQL Unterstützung
+
+Zur Verwaltung einer größeren Anzahl von Wegpunkten sollte sie die SQL
+Unterstützung verwenden. Dazu muss ein SQL Server auf dem Rechner
+installiert sein. Momentan wird nur MySQL unterstützt.
+
+Haben sie keine Angst, MySQL braucht nicht viel Resourcen, ist sehr
+schnell und macht die Verwaltung der Wegpunkte einfacher (inklusive
+der Auswahl der Wegpunkttypen). Im SQL Modus können sie die
+anzuzeigenden Wegpunkte im
+.B Einstellungen
+Menü auswählen.
+
+.B Lesen sie bitte README.SQL für Informationen zum Aufsetzen der SQL 
+Datenbank.
+
+
+.SH Routen
+Eine Route ist eine Liste von Wegpunkten. GpsDrive führt sie von einem
+Wegpunkt zum Nächsten.  Sie können Wegpunkte zu einer Route im "Wähle
+Ziel" Fenster hinzufügen. Sie können auch Kommentare zu Routen
+hinzufügen, welche dann durch die Sprachausgabe gesprochen und durch
+eine Laufschrift in der Karte angezeigt werden.
+
+.SH Kommentare für Routen
+Um Kommentare hinzuzufügen, erzeugen sie eine Datei mit dem selben
+Namen wie die Wegpunktdatei, jedoch mit der Erweiterung .dsc,
+z.B. way-reise.txt und way-reise.dsc. Geben sie dann wie unten
+angeführt die Kommentare in die .dsc Datei ein:
+
+$Wegpunktname
+
+Gehen sie nach rechts, dort sehen sie ein Wirtshaus.
+
+$Nächsterwegpunktname
+
+anderer Kommentar...
+
+Es gibt keine Beschränkung für die Länge des Kommentars. Es ist
+wichtig, dass die Zeile mit '$wegpunktname' beginnt und der Kommentar
+in der nächsten Zeile steht.
+
+.SH KISMET Unterstützung
+Gpsdrive unterstützt
+.IR kismet.
+Kismet ist ein 802.11b Funknetzwerk (WLAN) "Schnüffler". Wenn sie
+kismet laufen haben, wird GpsDrive das beim Programmstart entdecken
+und neue WLAN Accesspoints in Echtzeit auf der Karte anzeigen. Für den
+Kismet Modus ist der SQL Modus Voraussetzung. WLAN Accesspoints die
+bereits in der SQL Datenbank gespeichert sind werden ignoriert. Wenn
+sie die Sprachausgabe aktiviert haben, werden die Informationen über
+neue Accesspoints angesagt. 
+
+Lesen sie bitte auch 
+.IR README.kismet
+
+
+.SH LOKALISIERUNG
+
+Wenn sie das Programm installiert haben, erscheint das Programm in
+englisch, deutsch, französisch, italienisch, holländisch, dänisch,
+türkisch, slowakisch, schwedisch, ungarisch oder
+spanisch falls eine dieser Sprachen eingestellt ist. Die
+entsprechenden Umgebungsvariablen sind LANG, LC_ALL oder
+LANGUAGE. Letztere überstimmt die anderen. Rufen sie "locale"
+bzw. "set" auf um ihre Einstellungen zu sehen. Um z.B. Deutsch zu
+erzwingen geben sie ein:
+
+.B export LANGUAGE=de
+
+und starten dann gpsdrive in dieser Shell. 
+
+Sie könnes gpsdrive aber auch so starten:
+
+.B LANGUAGE=de gpsdrive
+womit die Einstellung nur für gpsdrive gilt.
+
+Falls ihre Sprache nicht verfügbar ist, kontaktieren sie mich wenn sie
+die Übersetzung machen wollen.
+
+.SH SPRACHAUSGABE
+
+Wenn sie eine Sprachausgabe wünschen, müssen sie die Software
+"festival" installieren. Siehe
+.I http://fife.speech.cs.cmu.edu/festival
+für mehr Informationen.
+
+Für deutsche Sprache müssen sie sich die deutsche Festival Version von
+.I www.ims.uni-stuttgart.de/phonetik/synthesis/index.html
+besorgen.
+
+Wenn sie ein funktionierendes festival haben, starten sie es als
+Server mit:
+
+festival --server
+
+Wenn sie dann GpsDrive starten, wird es den Server automatisch auf
+Port 1314 erkennen und Informationen als Sprache ausgeben. In diesem
+Fall erscheint auch ein Schalter um stumm zu schalten.
+
+GpsDrive versucht, automatisch die richtige Sprache entsprechend der
+Lokale zu verwenden. Es gibt eine Option -l um die Spracheinstellung
+zu forcieren. Zur Zeit werden englisch, spanisch und deutsch
+unterstützt. GpsDrive stellt festival auf die korrekte Sprache
+ein. Sollte dies nicht richtig funktionieren, editiern sie die Datei
+.I gpsdrive.c
+und korrigieren sie gegebenenfalls folgende Zeilen:
+
+#define FESTIVAL_ENGLISH_INIT "(voice_ked_diphone)"
+
+#define FESTIVAL_GERMAN_INIT "(voice_german_de3_os)"
+
+#define FESTIVAL_SPANISH_INIT "(voice_el_diphone)"
+
+GpsDrive braucht die Sprachdateien ked_diphone für Englisch,
+german_de3_os für Deutsch (Das ist eine MBROLA voice) und el_diphone für
+Spanisch.
+
+Es gibt eine tar-Datei für Festival mit deutscher, englischer und
+spanischer Sprache.
+
+.B Downloaden 
+sie es von einem  GpsDrive homepage 
+.B Spiegel
+und entpacken sie die tar-Datei als root in /usr/local
+
+.br 
+cd /usr/local
+.br
+tar -xvzf festivalbuild.tar.gz
+
+Starten sie den Server mit
+.B /usr/local/festival/bin/festival --server
+
+.SH FRIENDSD Server
+
+Es gibt eine Server Software
+.B friendsd
+genannt, welche die Position ihrer Freunde verwaltet. Wenn sie zum
+Server mit
+.I gpsdrive -n Ihrname -f ihrserver.com
+verbinden, können sie die Position andere Leute sehen, falls diese
+sich mit diesem Server verbunden haben.
+Stellen sie sicher, dass
+.I Ihrname
+nur aus einem Wort besteht und keine Leerzeichen enthält.
+
+Der Server benutzt den Port 50123 (TCP), dieser Port muss in der
+Firewall freigeschaltet sein. Der Server benötigt keine Root-Rechte
+und sollte als normaler User gestartet werden. Das Serverprogramm
+wurde NICHT auf Sicherheit überprüft!
+
+.SH FRIENDSD Daten Format (Version 1)
+Es gibt einen Datentyp: POS, mit folgendem Format:
+.br
+
+POS: Fritz  47.082181  15.402043 18:11:42 101 38
+.br
+
+mit der Bedeutung:
+.br
+
+Befehltyp Name Breite Länge Zeit(GMT) Geschwindigkeit(km/h) Richtung(Grad)
+
+
+.SH MAILING LISTE
+Die Adresse für die Mailingliste ist gpsdrive at warbase.selwerd.nl
+
+Eintragen können sie sich mit einer EMail mit dem Inhalt "subscribe
+gpsdrive" an majordomo at warbase.selwerd.nl
+
+.SH AUTOR
+Fritz Ganter
+.br
+E-Mail: ganter at ganter.at
+.br
+http://www.gpsdrive.de
+.SH GARANTIE
+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.
+
+.SH COPYRIGHT
+Copyright (c) 2001-2003 by Fritz Ganter
+.br
+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.
+
+

Added: packages/gpsdrive/branches/etch/man/es/Makefile.am
===================================================================
--- packages/gpsdrive/branches/etch/man/es/Makefile.am	                        (rev 0)
+++ packages/gpsdrive/branches/etch/man/es/Makefile.am	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,12 @@
+all: man
+
+man: gpsdrive.1
+
+EXTRA_DIST = gpsdrive.1
+
+install-data-local:
+	$(mkinstalldirs) $(DESTDIR)$(mandir)/es/man1/
+	$(INSTALL_DATA) gpsdrive.1 $(DESTDIR)$(mandir)/es/man1/gpsdrive.1
+
+
+

Added: packages/gpsdrive/branches/etch/man/es/Makefile.in
===================================================================
--- packages/gpsdrive/branches/etch/man/es/Makefile.in	                        (rev 0)
+++ packages/gpsdrive/branches/etch/man/es/Makefile.in	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,316 @@
+# Makefile.in generated by automake 1.7.6 from Makefile.am.
+# @configure_input@
+
+# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
+# 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.
+
+ at 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 = :
+host_triplet = @host@
+ACLOCAL = @ACLOCAL@
+AMDEP_FALSE = @AMDEP_FALSE@
+AMDEP_TRUE = @AMDEP_TRUE@
+AMTAR = @AMTAR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+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@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DISABLEGARMIN_FALSE = @DISABLEGARMIN_FALSE@
+DISABLEGARMIN_TRUE = @DISABLEGARMIN_TRUE@
+DISABLEPLUGINS_FALSE = @DISABLEPLUGINS_FALSE@
+DISABLEPLUGINS_TRUE = @DISABLEPLUGINS_TRUE@
+ECHO = @ECHO@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+ENABLETELEATLAS_FALSE = @ENABLETELEATLAS_FALSE@
+ENABLETELEATLAS_TRUE = @ENABLETELEATLAS_TRUE@
+EXEEXT = @EXEEXT@
+FRIENDSSERVERVERSION = @FRIENDSSERVERVERSION@
+GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
+GMOFILES = @GMOFILES@
+GMSGFMT = @GMSGFMT@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INSTOBJEXT = @INSTOBJEXT@
+INTLLIBS = @INTLLIBS@
+LDFLAGS = @LDFLAGS@
+LIBADD_DL = @LIBADD_DL@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MKINSTALLDIRS = @MKINSTALLDIRS@
+MSGFMT = @MSGFMT@
+MSGMERGE = @MSGMERGE@
+NOGARMIN = @NOGARMIN@
+NOPLUGINS = @NOPLUGINS@
+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@
+PCRE_CONFIG = @PCRE_CONFIG@
+PKGCONFIG_CFLAGS = @PKGCONFIG_CFLAGS@
+PKGCONFIG_LIBS = @PKGCONFIG_LIBS@
+PKG_CONFIG = @PKG_CONFIG@
+POFILES = @POFILES@
+POSUB = @POSUB@
+PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
+PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
+RANLIB = @RANLIB@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+USETELEATLAS = @USETELEATLAS@
+USE_NLS = @USE_NLS@
+VERSION = @VERSION@
+XGETTEXT = @XGETTEXT@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_RANLIB = @ac_ct_RANLIB@
+ac_ct_STRIP = @ac_ct_STRIP@
+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 = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+datadir = @datadir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+oldincludedir = @oldincludedir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+
+EXTRA_DIST = gpsdrive.1
+subdir = man/es
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+DIST_SOURCES =
+DIST_COMMON = Makefile.am Makefile.in
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  Makefile.am  $(top_srcdir)/configure.ac $(ACLOCAL_M4)
+	cd $(top_srcdir) && \
+	  $(AUTOMAKE) --gnu  man/es/Makefile
+Makefile:  $(srcdir)/Makefile.in  $(top_builddir)/config.status
+	cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+
+distclean-libtool:
+	-rm -f libtool
+uninstall-info-am:
+tags: TAGS
+TAGS:
+
+ctags: CTAGS
+CTAGS:
+
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+
+top_distdir = ../..
+distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
+
+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"; \
+	    $(mkinstalldirs) "$(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_STRIP_FLAG=-s \
+	  `test -z '$(STRIP)' || \
+	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-rm -f Makefile $(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 clean-libtool mostlyclean-am
+
+distclean: distclean-am
+
+distclean-am: clean-am distclean-generic distclean-libtool
+
+dvi: dvi-am
+
+dvi-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
+
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+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 clean-libtool \
+	distclean distclean-generic distclean-libtool distdir dvi \
+	dvi-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 \
+	mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
+	uninstall-info-am
+
+all: man
+
+man: gpsdrive.1
+
+install-data-local:
+	$(mkinstalldirs) $(DESTDIR)$(mandir)/es/man1/
+	$(INSTALL_DATA) gpsdrive.1 $(DESTDIR)$(mandir)/es/man1/gpsdrive.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:

Added: packages/gpsdrive/branches/etch/man/es/gpsdrive.1
===================================================================
--- packages/gpsdrive/branches/etch/man/es/gpsdrive.1	                        (rev 0)
+++ packages/gpsdrive/branches/etch/man/es/gpsdrive.1	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,247 @@
+.TH GPSDRIVE 1 
+.SH NOMBRE
+gpsdrive - muestra la posición del GPS en un mapa
+.SH SINOPSIS
+.B gpsdrive [-v] [-d] [-h] [-m] [-t dispositivo] [-o archivo] [-l english|german|spanish] [-s tamaño] [-x]
+.SH DESCRIPCIÓN
+
+.B Gpsdrive 
+es un sistema de navegación para coches (bicicletas, barcos, aviones).
+Por ahora está implementada la representación de la posición en un mapa
+y un montón de funciones más.
+
+GpsDrive muestra tu posición suministrada por el receptor GPS con 
+capacidades NMEA, en un mapa ampliable. Los mapas se seleccionan 
+automáticamente dependiendo de la posición. Se puede ajustar la escala
+preferida, que el programa intenta obtener entre los mapas disponibles.
+
+GpsDrive ha sido probado con un GARMIN GPS III. Todos los receptores 
+Garmin con una salida serie deberían ser utilizables. También el resto de 
+receptores que envíen sentencias NMEA a través del puerto serie, debería
+funcionar con GpsDrive
+
+Se sabe que los siguientes receptores GPS funfionan con GpsDrive:
+
+Magellan 310, 315, 320
+.br
+Garmin GPS III
+.br
+Garmin etrex
+.br
+Crux II GPS PCMCIA
+
+Advertencia:
+.B ¡No lo uses para navegar!
+
+.SH OPCIONES
+.TP
+.B \-d
+Muestra información de depuración. Si tienes problemas o el programa
+falla, envía esta salida al autor.
+.TP
+.B \-v
+Muestra la versión del programa, junto con la versión CVS del fichero 
+principal gpsdrive.c. Si envías un reporte de error, incluye este dato.
+.TP
+.B \-h
+Muestra una pequeña ayuda.
+.TP
+.B \-m
+Fuerza al programa a utilizar unidades métricas (kilómetros, metros, 
+km/h). Por defecto el programa utiliza el sistema métrico en 
+configuraciones locales, que NO tienen un punto como separador decimal.
+Por ejemplo, en inglés o POSIX mostrará las unidades en millas.
+.TP
+.B \-o fichero_de_salida
+Con esta opción, puedes extraer las sentencias NMEA a un terminal, 
+archivo o dispositivo serie. Esto es útil si utilizas GpsDrive en modo
+de simulación para proveer a otras aplicaciones GPS con datos de prueba.
+.TP
+.B \-t dispositivo
+Dispositivo de puerto serie (p. ej. /dev/ttyS0) sólo en modo GARMIN.
+.TP
+.B \-l idioma
+Ajusta el idioma para la salida de voz. Debes proporcionar los ficheros 
+de voz de Festival tú mismo (ver más abajo). Por el momento se 
+proporcionan los siguientes valores
+.B german
+,
+.B spanish
+and
+.B english
+.
+.TP
+.B \-x
+Crea una ventana propia para los menús de botones. Esto es útil en 
+pequeñas pantallas como la de la iPaq, en la que el menú debería 
+estar oculto.
+.TP
+.B \-s tamaño
+Ajusta el tamaño de la pantalla, si la autodetección no te satisface, 
+.I tamaño
+es, por ejemplo, 768,600,480,200
+
+.SH CONECTAR UN RECEPTOR GPS
+Primero debes elegir qué modo usar, GARMIN o NMEA.
+.B modo NMEA
+Este es el modo más usado. Se proporciona con la mayoría de los 
+recptores GPS. Para usarlo debes ejecutar primero el programa 
+.B gpsd
+que se proporciona. Este programa se ejecuta como un demonio en segundo
+plano proporcionando un servidor que envía datos del GPS a través del 
+puerto 2222.
+Los ajustes /dev/ttyS0 y 4800 Baudios están precompilados.
+
+Si quieres cambiar estos valores, por ejemplo a ttyS1, llámalo con:
+.br
+.B gpsd -serial /dev/ttyS1
+
+Asegúrate de seleccionar el protocolo NMEA y una tasa de transferencia 
+de 4800 Baudios en tu receptor GPS.
+
+Hay otro gpsd creado por Remco Treffkorn, que usa el puerto 2947. Si
+usas este gpsd será detectado automágicamente.
+
+.B modo GARMIN
+
+En este modo, el programa sólo obtiene dqatos sobre layitud/longitud,
+la velocidad y la dirección son calculadas por él mismo. Tampoco se 
+muestra el nivel de la señal de los satélites (este dato no está soportado
+por el protocolo GARMIN.
+
+El modo GARMIN es más rápido (varios paquetes de datos por segundo, en el modo 
+NMEA 1 paquete cada 2 segundos), pero los cálculos que realiza el programa 
+quizás no sean tan precisos.
+
+Si deseas usar el modo GARMIN simplemente conecta el receptor GPS al puerto 
+serie. Puedes hacer un enlace 
+.B /dev/gps
+apuntando al puerto serie. Si no lo haces así, debes usar el parámetro
+.B \-t
+seguido por el nombre del dispositivo, por ejemplo:
+.br
+.B gpsdrive -t /dev/ttyS0
+.br
+
+El modo GARMIN está sólo disponible en algunos receptores GARMIN.
+.br
+
+GpsDrive autodetecta los modos GARMIN o NMEA.
+
+
+.SH USO
+
+Puedes usar GpsDrive sin un dispositivo GPS conectado. Si quieres hacerlo así,
+GpsDrive comenzará automáticamente en
+.B modo simulador
+con el cual te podrás mover por el mapa. Asegúrate de que no haya ningún gpsd 
+corriendo para usar el modo simulación.
+
+.SH DESCARGA DE MAPAS
+
+Puedes descargar mapas de internet con el botón
+.B Descargar
+. Puedes elegir entre el servidor de Mapblast (www.mapblast.com) y el de 
+Expedia (www.expedia.com). 
+
+Por favor lee la información de copyright de www.mapblast.com y 
+www.expedia.com si quieres usar sus mapas.
+
+.SH SERVIDOR PROXY
+Si quieres acceder a Internet a través de un servidor proxy, debes ajustar
+la variable de entorno
+.B HTTP_PROXY
+a un valor como 
+.I http://proxy.provider.com:3128
+donde 3128 es el puerto del proxy.
+
+.SH CONTROL CON EL RATÓN
+
+Si haces click con el botón izquierdo del ratón en el mapa estarás en 
+"Modo display", en el cual un rectángulo es el cursor y no se muestra 
+posición. Si amplías o seleccionas otra escala escala para los mapas 
+funcionará como si esta fuera tu posición real.  
+
+Si haces click con el botón izquierdo cerca del borde, GpsDrive moverá el 
+encuadre del mapa o cargará el siguiente, si tu posición es ya el borde del 
+mapa.
+
+El botón central vuelve al modo normal. Igual si seleccionas un destino con
+el botón derecho. Mayúsculas + Botón izquierdo y Mayúsculas + Botón derecho
+cambi la escala del mapa.
+
+.SH INTERNACIONALIZACIÓN
+
+Si instalaste el programa verás motrarse los mensajes en inglés, alemán,
+francés, italiano o español, si tu lenguaje está definido con LANG o
+LANGUAGE. LANGUAGE ignora el resto de ajustes. Llama a "locale" para ver
+los ajustes y llama "set" si LANG o LANGUAGE está definido. Para español
+pon:
+
+.B export LANGUAGE=es
+
+y entonces inicia gpsdrive en esa shell.
+
+Tambien puedes iniciarlo con  
+.B LANGUAGE=es gpsdrive
+sin cambiar el idioma para la shell.
+
+.SH SALIDA DE VOZ
+
+Si quieres disponer de salida de voz debes instalar el software
+"festival". Mira en 
+.I http://fife.speech.cs.cmu.edu/festival 
+para informarte. 
+
+Para tener salida en alemán debes tener el festival alemán de
+.I www.ims.uni-stuttgart.de/phonetik/synthesis/index.html   
+
+Si tienes una instalación funcional de festival llámala como
+servidor con:
+
+.B festival --server
+
+Si inicias entonces GpsDrive, detectará el servidor en el puerto 1314 y 
+obtendrás algunas informaciones obre el estado mediante la voz. Dispondrás de 
+un botón (Mute) para detener la salida de voz.
+
+Hay una opción -l para cambiar el idioma de la voz de salida. Por el
+momento están disponibles inglés y alemán. GpsDrive ajusta festival en
+el idioma adecuado. Si no se selecciona de forma correcta, mira en 
+
+.B gpsdrive.c
+
+y edita los siguientes defines para ajustarse a tus necesidades:
+and edit following defines do your needs:
+
+.B #define FESTIVAL_ENGLISH_INIT "(voice_ked_diphone)"
+
+.B #define FESTIVAL_GERMAN_INIT "(voice_german_de3_os)"
+
+.B #define FESTIVAL_SPANISH_INIT "(voice_el_diphone)"
+
+Para esto, necesitas las voces ked_diphone para inglés, german_de3_os
+para alemán (es una voz MBROLA) y el_diphone para español.
+
+.SH AUTOR
+Fritz Ganter
+.br
+E-Mail: ganter at ganter.at
+.br
+.I http://www.gpsdrive.de
+
+.SH GARANTÍA
+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.                                    
+
+.SH COPYRIGHT
+Copyright (c) 2001-2003 by Fritz Ganter
+.br
+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.
+
+

Added: packages/gpsdrive/branches/etch/man/gpsdrive.1
===================================================================
--- packages/gpsdrive/branches/etch/man/gpsdrive.1	                        (rev 0)
+++ packages/gpsdrive/branches/etch/man/gpsdrive.1	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,848 @@
+.TH GPSDRIVE 1 
+.SH NAME
+gpsdrive v2.x - displays GPS position on a map
+.SH SYNOPSIS
+.B gpsdrive [options]
+
+.SH About this manual page
+
+This manual page explain the basic functions of GpsDrive and some
+additional info.
+
+In GpsDrive you find tooltips for nearly all buttons, there is also a
+HELP button for usage of the keys and mouse buttons.
+
+For special purposes read the README files, i.e. README.kismet,
+README.SQL ...
+
+.SH DESCRIPTION
+
+.B Gpsdrive 
+is a car (bike, ship, plane) navigation system.  Displaying your
+position on a map and a lot of other functions are implemented.
+
+.B This manual page describes GpsDrive version 2.x
+
+GpsDrive displays your position provided from your NMEA capable GPS
+receiver on a zoomable map . The maps are autoselected depending on
+your position. You can set prefered scale, which the program tries to
+get from available maps.
+
+GpsDrive was tested with a GARMIN GPS III, a Crux II GPS PCMCIA
+card and a Navilock USB receiver. All Garmin GPS reveivers with a serial output should be
+usable. Other GPS reveivers that sends NMEA protocol over the
+serial output should also work with GpsDrive.
+
+These GPS receivers are reported to work with gpsdrive:
+
+Magellan 310, 315, 320
+.br
+Garmin GPS III
+.br
+Garmin etrex
+.br
+GPS 45
+.br
+Crux II GPS PCMCIA card
+.br
+Holux GM-200 serial version
+.br
+Holux GM-200 USB (needs USB to serial support in kernel)
+.br
+eMap
+.br
+GPSMAP 295
+.br
+GNS 530
+.br
+Garmin GPS 12MAP
+.br
+EAGLE Expedition II
+.br
+DeLorme Earthmate
+.br
+Rayming TripNav, TN-200
+.br
+Haicom HI-203E
+.br
+GM-307 USB-Mouse
+.br
+Magellan Meridian Gold (works only with NMEA V2.1 GSA setting)
+.br
+NAVILock GPS Receiver (http://www.navilock.de)
+.br
+Haicom GPS HI204e
+.br
+Magellan Nav 6500 
+.br
+BendixKing KLX 100
+.br
+Motorola i58sr Cellular Phone w/built-in NMEA-compatible GPS
+.br
+.br
+
+Disclaimer:
+.B Do not use for navigation!
+
+.SH OPTIONS
+.TP
+.B \-d
+Shows some debugging information.
+.TP
+.B \-D
+Shows a lot of debugging information. If you have problems or program
+crashes, send this output to the author. You should also combine this
+with -d. See also the section 
+.I BUGS
+.TP
+.B \-v
+Shows program version together with the CVS version of the mainfile
+gpsdrive.c. If you send a bug report, also include this output.
+.TP
+.B \-h
+Displays a short help message.
+.TP
+.BI \-o "\| outputfile\^"
+With this option, you can
+.IR write
+the NMEA sentences to a PTY master, file or serial device. This is
+useful if you use GpsDrive in simulation mode to provide other GPS
+applications with test data.
+.TP
+.BI \-t "\| device\^"
+Serial port device (e.g. 
+.IR /dev/ttyS0
+). You can also set it in the 
+.IR setup
+menu.
+.TP
+.BI \-l "\| language\^"
+Sets the language for the speech output. You have to provide the voice
+files in festival yourself (see below). At the moment
+.IR german
+,
+.IR spanish
+and
+.IR english
+are provided.
+.TP
+.B \-x
+Creates own window for the menu buttons, status and map. This is
+helpful on small displays as the Compaq iPaq or on Head Mounted
+Displays, where the menu should be hidden.
+.TP
+.BI \-s "\| height\^"
+Set the height of the screen, if autodetection don't satisfy you, 
+.IR height
+is i.e. 768,600,480,200
+.TP
+.BI \-r "\| width\^"
+Set the 
+.IR width
+of the screen, if autodetection don't satisfy you. Works
+only in combination with
+.IR -s
+.TP
+.BI \-f "\| friendsserver\^"
+Define a friendsserver to exchange position information with other
+people. You can also set it in the Settings/Friends menu. You can start your own friendsserver with the program
+.B friendsd
+, which is included. More details are in section 
+.I FRIENDSD server
+
+.TP
+.B \-1
+Set special mode if you only have 1 mouse button, i.e. on touchpads.
+.TP
+.B \-a
+Disable display of battery status. Some implementations of the APM-BIOS
+are broken, so use this option if gpsdrive crashes.
+.TP
+.BI \-b "\| servername\^"
+Use a remote NMEA server. You can start gpsd on another
+.IR host
+, which has the GPS receiver connected and display the position on
+your local machine.
+.TP
+.BI \-c "\| waypointname\^"
+Initial position for simulation mode. Specify a
+.IR "waypoint name"
+from your currently used waypoint list.
+.TP
+.B \-q 
+Disables SQL support. Only usefull if you have SQL support compiled in.
+.TP
+.B \-z
+Don't show zoom and scaling on the map.
+.TP
+.BI \-n 
+Disables the direct serial connection. You have to use Garmin mode
+or start gpsd
+.br
+
+
+Use gpsdrive -h to see the actual command line help.
+
+
+.SH CONNECTING A GPS RECEIVER
+First you have to choose if you want use the GARMIN or NMEA mode.
+
+.B NMEA mode.
+.br
+This is the most used mode. This mode is provided by most GPS
+receivers. 
+
+.B New!!!
+
+Since 
+.I Version 2.08
+GpsDrive is now able to handle the serial
+connection itself, so you don't need to start (and use) gpsd anymore.
+.br
+To enable this feature go into the settings menu, switch to settings 2
+and select 
+.I Use serial connection.
+.br
+Make sure that your GPS receiver is connected and running before you
+start GpsDrive, so the program is able to detect the GPS device.
+
+You can also use gpsd, i.e. if you want to share the GPS data over the
+network or if you need additional features.
+.br
+You can force the use of gpsd by adding the
+.B \-n
+commandline parameter, even if you enabled the direct serial connection
+in the settings menu.
+
+.br
+To use NMEA mode with gpsd, you have to start the provided program
+.B gpsd
+first or do this by pressing the 
+.B Start GPSD
+button in the GpsDrive menu after setting the parameters in the settings
+menu.
+This program runs as daemon in background and provides a server,
+which sends the GPS data on port number 2947. 
+The settings /dev/gps and 4800 BPS are precompiled if you start
+gpsd by yourself. If you start it from GpsDrive, the settings defined
+in the 
+.B Settings
+menu are used.
+
+You can also change the gpsd settings i.e. to ttyS1 call it with:
+.br
+.B gpsd -p /dev/ttyS1
+
+but as mentioned, it's easier to do this in GpsDrive.
+.br
+If you are using a GPS receiver with an USB connection, your port may
+be
+.B /dev/ttyUSB0
+for the first device.
+
+Be sure to select NMEA protocol and a baudrate of 4800 BPS in your
+GPS receiver.
+
+To see the output of you GPS do 
+.B telnet localhost 2947
+and after the connect hit the 
+.B R
+key to see the NMEA sentences.
+
+.B NMEA sentences used
+.br
+Following NMEA sentences are used for specified informations:
+
+.I GPRMC: 
+Position, Speed, Heading 
+.br
+.I GPGSV: 
+Satellite signal level display
+.br
+.I GPGGA: 
+Altitude (not available on all receivers) and position if no GPRMC is
+available. In this case, speed and heading are calculated by GpsDrive.
+.br
+.I PGRME: 
+Display EPE (estimated position error), perhaps only available on
+GARMIN receivers
+
+At least you need GPRMC or GPGGA for using GpsDrive. If you can turn
+on GPRMC, please do so.
+
+.B GARMIN mode
+.br
+In this mode, the program only gets lat/long data, the speed and
+direction it calculates itself. There is also no display of the
+satellite signal level (this data is not supported by GARMIN
+protocol).
+
+GARMIN mode is faster (more data packets per second, in NMEA mode there are
+only 1-2 packets every 2 seconds), but the calculations the program
+makes may not be as accurate.
+
+If you want to use Garmin mode, simply connect the GPS receiver to your
+serial port. 
+Garmin mode is only provided by some GARMIN receivers.
+.br
+
+GpsDrive autodetects GARMIN or NMEA mode if enabled in settings
+menu. I would recommend to use NMEA mode.
+
+.SH Compilation without GARMIN protocol
+
+If you don't need the GARMIN protocol (i.e if you use only NMEA), you
+can compile GpsDrive yourself to not include the GARMIN protocol
+support. Do this with:
+
+.br
+ ./configure --disable-garmin
+.br
+ make clean
+.br
+ make
+.br
+ su
+.br
+ make install
+
+This has the advantage to produce a smaller and faster executable.
+
+.SH USAGE
+
+Start GpsDrive as normal user with:
+.B gpsdrive
+from your shell, if you want another language see section 
+.I LOCALISATION
+
+On some distribution you may find a "GpsDrive" entry in your Gnome or
+KDE menu.
+
+It is important that you have installed GpsDrive as root, so it can
+find the necessary files. 
+.B Don't start GpsDrive as root!
+
+You can use GpsDrive without a GPS device connected. If you do so,
+GpsDrive will automatically start in
+.B Simulator mode 
+if no working GPS receiver is connected and no gpsd
+is running. This mode is shown by a rotating globe.
+
+In simulator mode the pointer can move on the map (if enabled in settings
+menu). You can also stop gpsd if it is already running with the "Stop GPSD" Button.
+
+If you have connected a GPS-Receiver, you see in the 
+.I GPS Info
+window how much satellites are in view. You can click on this image to switch to the 
+.I Satellite position view.
+.br
+You must have at least 3 satellites in view. If you want to see your
+altitude, you need at least 4 satellites.  The antenna of your GPS
+receiver must have free sight to the sky, so you cannot use it
+indoor. More satellites gives you a better accuracy.
+
+If your receiver have not enough satellites with usable signal, the
+GPS Info window is red. If your signal is ok and gives a valid
+position, the GPS Info window is green.
+
+There are 3 modes in which GpsDrive is operating:
+
+.B Normal mode:
+
+This mode is entered if you have a GPS receiver connected. The cursor is at the position your receiver sends.
+
+The black and a red arrow shows your position on the map. The 
+.B black arrow
+is pointing to your selected target, the 
+.B red arrow
+shows the direction in which you are moving.
+.br
+If you have no valid position the arrows are blinking.
+
+.B Simulation
+
+If GpsDrive finds no GPS-receiver at program start, it
+shows the last position and the cursor will move to the targets you
+set. You can set your target by right-mouse click on the map or by
+selecting a waypoint from the FIND menu.
+
+.B Position mode
+
+This mode is activated by clicking on the "Pos. mode" button or if you
+"Jump" to a target in the FIND menu.
+
+At this mode, you can temporary change the position for looking around and
+jump to another positions (i.e. for downloading maps). In this mode this
+is 
+.B not your real position
+and is marked as an rectangle.
+
+You can set the position by simple left-mouse click on the map.
+
+You can leave the position mode by by clicking on the "Pos. mode"
+button or middle-mouse click or right-mouse click (which also sets
+your target).
+
+
+
+.SH MAP DOWNLOAD
+
+You can easily download maps from internet with the
+.B Download
+button. GpsDrive stores an index of your maps in the file
+map_koord.txt in your  ~/.gpsdrive directory. You can also use any
+directory for your maps, but you have set the directory in the
+settings menu.
+
+.SH About maps
+
+There is a file called "map_koord.txt" in your ~/.gpsdrive
+directory. Here is a sample:
+
+top_WORLD.jpg 0,00000 0,00000 88226037
+.br
+map_file0000.gif 53,60751 10,01145 3160000
+.br
+map_file0001.gif 43,08210 12,24552 3160000
+.br
+map_file0002.gif 49,81574 9,71454 7900000
+.br
+map_file0003.gif 47,72837 14,46487 592500
+.br
+
+
+The first row is the filename, then comes the latitude, the longitude
+and the scale of the map. The scale of 10000000 is good for Europe,
+and 100000 is for a town. To see detailed streets in a city, choose a
+scale like 10000 or 5000.
+
+GpsDrive selects the map with the best scale for your position. So get
+a map i.e for Europe, Austria and Vienna if you want to drive in
+Vienna.
+
+
+There is also the programs
+.IR gpsfetchmap.pl
+provided to download multiple maps for a bigger area.
+.br
+.B Please consider the copyright information 
+www.expedia.com if you want to use their maps!
+.br
+.B Don't missuse this service by downloading more maps as you need! 
+You will risc that you will be blocked by this servers.
+
+File formats:
+
+The decimal points in way.txt must always be a dot ('.'), in
+map_koord.txt '.' or ',' are possible. If you download maps from
+within the program, GpsDrive writes the map_koord.txt respecting your
+LC_NUMERIC setting.
+
+
+.SH Can I use other maps?
+
+You can also use your own (self drawn, scanned...) maps. The maps must
+be gif, jpeg, png or other common file formats (the format must be
+recognized by the gdk-pixbuf library).  The lat/long coordinates you
+write into the "map_koord.txt" file must be the center of the map. The
+map must have a size of 1280x1024 pixels! 
+
+Important! The maps must now be named map_* for streetmaps
+and top_* for topographical maps. If not, gpsdrive won't
+display the maps.
+
+There is an "import assistant" build in. Use this to import your maps.
+
+.SH Importing waypoints:
+
+
+The easiest way is to use the script "wpget" which does all for you if
+you use a GARMIN receiver.
+You can use the program "garble" (included in the package) to read
+out your waypoints from the Garmin GPS (Transfer mode must be set to
+GARMIN here, while GpsDrive needs NMEA!).
+
+Scripts: "wpget" is a script which calls "garble" in the proper way.
+
+Be sure to have "wpget", "wpcvt" and "garble" in your path. This is
+fullfilled, if you did install the program as root and /usr/local/bin
+is in your path.
+
+The manual way:
+
+You may create a file "way.txt" in your ~/.gpsdrive directory
+which looks like:
+
+DFN-Cert                53.577694    9.991263 FRITZ
+.br
+Finkenwerder            53.541765    9.842541 AIRPORT
+.br
+Fritz_Wohnung           53.582700    9.971390 FRITZ
+
+The rows are: label latitude longitude waypoint-type. You may omit the
+waypoint type.
+
+There is no need to create the way.txt file yourself, you can add the
+waypoints with GpsDrive using the "x" key. See help menu.
+
+
+
+.SH Route planing
+There is no route planing feature at the moment. Route planing would
+need the use of commercial maps and a database license which costs
+more than EUR 10.000. 
+
+.SH PROXY SERVER
+If you must access the internet via a proxy server, you have to set the
+enviroment variable
+.B HTTP_PROXY
+or
+.B http_proxy
+to a value like
+.I http://proxy.provider.com:3128
+where 3128 in this example is the proxy port.
+
+.SH MOUSE CONTROL
+You can switch on the
+.B Position mode
+by selecting this option in the menu.
+
+If you switched to "position mode" there a rectangle is the
+cursor and no position is shown. If you zoom or select another map
+scale with the slider, this is done for the position of the
+rectangle-cursor in the same manner as it would be your actual
+position. If you click with the left button near the border, GpsDrive will
+scroll the map or load the next map if you are on the margin of the map.
+
+The middle mouse button switches back to normal mode, or select the
+"Pos. mode" menu entry. The same if you select a target with the right
+mouse button.  Shift-left-mouse-button and shift-right-mouse-button
+changes the map scale.
+
+Please have also a look into the
+.B Help
+menu in GpsDrive to be informed about the actual mouse functions and key
+shortcuts.
+
+.SH Add new waypoints
+You can simply add new waypoints in two ways:
+
+o To add a waypoint at the
+.B current (GPS) position, 
+simply press CTRL and RIGHT-mouse-click. You can also press the
+.B x
+key.
+
+o To add a waypoint at the
+.B mouse position,
+simply press CTRL and LEFT-mouse-click. You can also press the
+.B y
+key.
+
+In the popup window add the waypoint name (spaces will be converted to
+underscores) and a waypoint type (see below for predefined
+waypoint types). You can create a new waypoint type by typing it into
+the text field or choose a existing waypoint type from the list.
+.B Important:
+The list (in SQL mode only) shows already used waypoint types, NOT the
+predefined. 
+.SH Icons for waypoints
+You can define freely your waypoint type names. But there are special
+names, which results in special icons display in GpsDrive:
+.TP
+.B WLAN
+open WLAN accesspoint
+.TP
+.B WLAN-WEP
+crypted WLAN accesspoint
+.TP
+.B Rest
+a restaurant
+.TP
+.B McDonalds
+a kind of restaurant
+.TP
+.B BurgerKing
+another kind of restaurant
+.TP
+.B Hotel
+A hotel
+.TP
+.B Shop
+Shop
+.TP
+.B Monu
+Monument, touristic attraction
+.TP
+.B Speedtrap
+Speedtrap (Radar), gives warning if this is in front of you
+.TP
+.B Nightclub
+Pssst...
+.TP
+.B Airport
+a Airport
+.TP
+.B Golf
+Golf course
+.TP
+.B Gasstation
+a gas station
+.TP
+.B Cafe
+coffee bar
+.TP
+.B Geocache
+Geocache point
+
+.PD
+.LP
+The names are case insensitive.
+
+Please have also a look on
+.IR README.SQL
+, for a actual list of waypoint types.
+
+.SH User defined waypoint icons
+
+If you are using SQL (see below) for your waypoints, you can define your own
+waypoint icons.
+.br
+Do the following steps:
+.br
+Create the directory: $HOME/.gpsdrive/icons and 
+place your icons (image type must be PNG) into this directory, with the name of
+the waypoint type (the filename must be lowercase). 
+In example for waypoint type "HOTEL" the file must have the name "hotel.png".
+.br
+The PNG image can have transparency, and should have a size around
+16x16 until 32x32, bigger icons may result in a performance hit.
+
+Your user defined waypoints override the built-in waypoint icons.
+
+.SH SQL support
+
+For managing a larger number of waypoints you should use SQL
+support. This needs to install a SQL server on your machine. At the
+moment, only MySQL is supported.
+
+Don't be afraid, MySQL don't need much resources, is very fast, but makes the
+management (including selection of waypoint types) of the waypoints
+much easier. In SQL mode you can select the shown waypoints in the
+.B setup
+menu.
+
+GpsDrive use MySQL automatically if it finds the shared library 
+.I libmysqlclient.so.10 
+and the MySQL Server is running and a connection to the database is possible. For first use you have to run 
+.B create.sql
+once.
+
+.B Please read README.SQL for information how to setup the SQL database.
+
+
+
+.SH Routes
+A route is a list of waypoints. GpsDrive guides you from one waypoint
+to the next on the route. 
+You can add waypoints to a route using
+the waypoint (select target) window. You can also add comments to a
+waypoint which will be spoken by the speech system and also be shown
+in the map window as scrolling text.
+
+.SH Comments for routes
+To add comments create a file with the same name as the waypoint file,
+but change the suffix to .dsc, i.e way-trip.txt and way-trip.dsc, then
+enter the comments in the way*.dsc file in the kind of:
+
+$waypointname
+Text which is displayed and spoken
+
+$nextwaypointname
+another text
+
+Example:
+
+$Fritz_Wohnung
+Hier wohnt Fritz, der Autor von diesem Programm. Er freut sich auf Besuch und eine Einladung zu einem saftigen Steak.
+                                                                                
+$Hubertus
+Hier wohnt Hubertus, ein Freund von Fritz.
+
+There is no limit of the length of the comment. Important is to start
+the line with '$name' and the comment in the next lines.
+
+.SH KISMET support
+Gpsdrive supports
+.IR kismet.
+Kismet is a 802.11b wireless network (WLAN) sniffer. If you have
+kismet running, gpsdrive will detect it and program start and shows
+new WLAN accesspoints in realtime on the map. SQL mode is necessary to
+run Gpsdrive in Kismet mode. WLAN accesspoints which are already
+stored in the SQL database from prior wardrivings are ignored. If you
+have voice output in gpsdrive, you hear information about the new
+found accesspoint.
+
+Please see also the file
+.IR README.kismet
+
+.SH LOCALISATION
+
+If you installed the program it will display messages in english,
+german, french, italian, dutch, dansk, hungarian, slovak, swedish, turkish or
+spanish if your language is set either with LANG or LANGUAGE. LANGUAGE
+overrides all other settings. Call "locale" to see the settings and
+call "set" if LANG or LANGUAGE is set. For german do:
+
+.B export LANGUAGE=de
+
+and then call gpsdrive in this shell.
+
+You can also start it with the line 
+.B LANGUAGE=de gpsdrive
+without setting the language for the shell.
+
+Sometimes you have to do use LANG instead of LANGUAGE.
+
+If your own language isn't available, please contact me if you want to
+make the translations.
+
+.SH SPEECH OUTPUT
+
+If you want speech output you have to install the festival speech output
+system.
+See 
+.I http://fife.speech.cs.cmu.edu/festival
+for information.
+
+For german output you have to get the german festival from
+.I www.ims.uni-stuttgart.de/phonetik/synthesis/index.html
+
+If you have a functional festival software call it as server with:
+
+festival --server
+
+When you start GpsDrive it will detect the server on port 1314 and
+puts out some status information as speech. You also have an
+additonal button (Mute) to switch off sound output.
+
+GpsDrive tries to select the correct language for your locale.
+The -l option can force the languages for speech
+output. At the moment english, spanish, and german are supported. GpsDrive
+sets festival into the proper language. If the initialisation is not
+correct, have a look into 
+.I gpsdrive.c
+and edit following defines do your needs:
+
+#define FESTIVAL_ENGLISH_INIT "(voice_ked_diphone)"
+
+#define FESTIVAL_GERMAN_INIT "(voice_german_de3_os)"
+
+#define FESTIVAL_SPANISH_INIT "(voice_el_diphone)"
+
+For this, you need the voices ked_diphone for english, german_de3_os
+for german (this is a MBROLA voice) and el_diphone for spanish.
+
+There is now an unsupported build of festival including english, german
+and spanish support.
+.B Download 
+it from GpsDrive homepage 
+.B mirrors
+and extract
+the tar file in the directory /usr/local as root:
+
+.br 
+cd /usr/local
+.br
+tar -xvzf festivalbuild.tar.gz
+
+Start the server with
+.B /usr/local/festival/bin/festival --server
+
+
+.SH FRIENDSD server
+
+There is a server program, called
+.B friendsd
+which acts as server for the position of your friends. If you enable
+it in the settings menu, 
+then you can see the position of all gpsdrive connected with this
+server. 
+
+You see the position of your friends as a car symbol on the map, including the name, time, day of week
+and the speed of his last connection. The blue arrow shows the last reported direction of your friend.
+
+The time is transmitted as UTC, but shown on the display as your local time, 
+so it is also correct if your friend lives in another time zone.
+
+The server uses port 50123 (UDP), so be sure that you open the port in
+your firewall. The server needs no root privileges and should run as
+normal user or a special user with no privileges. The server was NOT
+tested for security.
+
+There is a friends server running on www.gpsdrive.cc, you can try it
+if you enable it in the settings menu.
+
+You can also send messages to other mobile targets (Misc. Menu/Messages)
+
+
+.SH MAILING LIST
+The address for the mailing list is 
+.B gpsdrive at warbase.selwerd.nl
+
+Subscribing can be done by sending a mail containing 
+.B subscribe gpsdrive 
+
+to majordomo at warbase.selwerd.nl
+
+.SH BUGS
+Please send bug reports to the author. Report version (gpsdrive -v),
+screen size and info how to reproduce the bug. It is also a big help
+to run gpsdrive for a minute with the -d option and send me the output.
+
+If gpsdrive crashes with a segfault, I need a backtrace of the program
+in addition. To create a backtrace do following:
+
+Extract the tar file, change to gpsdrive directory and do
+.br
+ ./configure \-\-with\-debug
+.br
+ make clean
+.br
+ make
+.br
+ cd src
+.br
+ gdb ./gpsdrive
+
+Inside the debugger do:
+
+run (if you use arguments write it after run)
+
+When you get the segfault type in:
+
+bt
+
+and send me this output.
+ 
+.SH AUTHOR
+Fritz Ganter
+.br
+E-Mail: ganter at ganter.at
+.br
+http://www.gpsdrive.cc
+.SH WARRANTY
+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.
+
+.SH COPYRIGHT
+Copyright (c) 2001-2004 by Fritz Ganter
+.br
+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.
+
+

Added: packages/gpsdrive/branches/etch/missing
===================================================================
--- packages/gpsdrive/branches/etch/missing	                        (rev 0)
+++ packages/gpsdrive/branches/etch/missing	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,336 @@
+#! /bin/sh
+# Common stub for a few missing GNU programs while installing.
+# Copyright (C) 1996, 1997, 1999, 2000, 2002 Free Software Foundation, Inc.
+# Originally by Fran,cois Pinard <pinard at iro.umontreal.ca>, 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
+
+case "$1" in
+--run)
+  # Try to run requested program, and just exit if it succeeds.
+  run=
+  shift
+  "$@" && exit 0
+  ;;
+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]"
+    ;;
+
+  -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
+    echo "missing 0.4 - 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 missing on your system.  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 missing on your system.  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 missing on your system.  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 missing on your system.  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, and you do not seem to have it handy on your
+         system.  You might have modified some files without having the
+         proper tools for further handling them.
+         You can get \`$1Help2man' 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' is missing on your system.  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 missing on your system.  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 missing on your system.  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 missing on your system.  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 you do not seem to have it handy on your
+         system.  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 prerequirements 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


Property changes on: packages/gpsdrive/branches/etch/missing
___________________________________________________________________
Name: svn:executable
   + *

Added: packages/gpsdrive/branches/etch/mkinstalldirs
===================================================================
--- packages/gpsdrive/branches/etch/mkinstalldirs	                        (rev 0)
+++ packages/gpsdrive/branches/etch/mkinstalldirs	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,40 @@
+#! /bin/sh
+# mkinstalldirs --- make directory hierarchy
+# Author: Noah Friedman <friedman at prep.ai.mit.edu>
+# Created: 1993-05-16
+# Public domain
+
+# $Id: mkinstalldirs,v 1.1.1.1 2001/08/14 13:52:20 ganter Exp $
+
+errstatus=0
+
+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
+        fi
+     fi
+
+     pathcomp="$pathcomp/"
+   done
+done
+
+exit $errstatus
+
+# mkinstalldirs ends here


Property changes on: packages/gpsdrive/branches/etch/mkinstalldirs
___________________________________________________________________
Name: svn:executable
   + *

Added: packages/gpsdrive/branches/etch/po/ChangeLog
===================================================================

Added: packages/gpsdrive/branches/etch/po/Makefile.in.in
===================================================================
--- packages/gpsdrive/branches/etch/po/Makefile.in.in	                        (rev 0)
+++ packages/gpsdrive/branches/etch/po/Makefile.in.in	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,207 @@
+# Makefile for program source directory in GNU NLS utilities package.
+# Copyright (C) 1995-1997, 2000, 2001 by Ulrich Drepper <drepper at gnu.ai.mit.edu>
+#
+# 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.
+
+PACKAGE = @PACKAGE@
+VERSION = @VERSION@
+
+SHELL = /bin/sh
+ at SET_MAKE@
+
+srcdir = @srcdir@
+top_srcdir = @top_srcdir@
+top_builddir = ..
+VPATH = @srcdir@
+
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+datadir = $(prefix)/share
+localedir = $(datadir)/locale
+gettextsrcdir = $(prefix)/share/gettext/po
+subdir = po
+
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+MKINSTALLDIRS = @MKINSTALLDIRS@
+mkinstalldirs = $(SHELL) `case "$(MKINSTALLDIRS)" in /*) echo "$(MKINSTALLDIRS)" ;; *) echo "$(top_builddir)/$(MKINSTALLDIRS)" ;; esac`
+
+CC = @CC@
+GENCAT = @GENCAT@
+GMSGFMT = @GMSGFMT@
+MSGFMT = @MSGFMT@
+XGETTEXT = @XGETTEXT@
+MSGMERGE = msgmerge
+
+DEFS = @DEFS@
+CFLAGS = @CFLAGS@
+CPPFLAGS = @CPPFLAGS@
+
+INCLUDES = -I.. -I$(top_srcdir)/intl
+
+COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
+
+POFILES = @POFILES@
+GMOFILES = @GMOFILES@
+DISTFILES = ChangeLog Makefile.in.in POTFILES.in $(PACKAGE).pot \
+$(POFILES) $(GMOFILES)
+
+POTFILES = \
+
+CATALOGS = @CATALOGS@
+
+.SUFFIXES:
+.SUFFIXES: .c .o .po .pox .gmo .mo
+
+.c.o:
+	$(COMPILE) $<
+
+.po.pox:
+	$(MAKE) $(PACKAGE).pot
+	$(MSGMERGE) $< $(srcdir)/$(PACKAGE).pot -o $*.pox
+
+.po.mo:
+	$(MSGFMT) -o $@ $<
+
+.po.gmo:
+	file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \
+	  && rm -f $$file && $(GMSGFMT) --statistics -o $$file $<
+
+
+all: all- at USE_NLS@
+
+all-yes: $(CATALOGS)
+all-no:
+
+# Note: Target 'all' must not depend on target '$(srcdir)/$(PACKAGE).pot',
+# otherwise packages like GCC can not be built if only parts of the source
+# have been downloaded.
+
+$(srcdir)/$(PACKAGE).pot: $(POTFILES) $(srcdir)/POTFILES.in
+	$(XGETTEXT) --default-domain=$(PACKAGE) --directory=$(top_srcdir) \
+	  --add-comments --keyword=_ --keyword=N_ \
+	  --files-from=$(srcdir)/POTFILES.in \
+	&& test ! -f $(PACKAGE).po \
+	   || ( rm -f $(srcdir)/$(PACKAGE).pot \
+		&& mv $(PACKAGE).po $(srcdir)/$(PACKAGE).pot )
+
+
+install: install-exec install-data
+install-exec:
+install-data: install-data- at USE_NLS@
+	if test "$(PACKAGE)" = "gettext"; then \
+	  $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \
+	  $(INSTALL_DATA) $(srcdir)/Makefile.in.in \
+			  $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \
+	else \
+	  : ; \
+	fi
+install-data-no: all
+install-data-yes: all
+	$(mkinstalldirs) $(DESTDIR)$(datadir)
+	@catalogs='$(CATALOGS)'; \
+	for cat in $$catalogs; do \
+	  cat=`basename $$cat`; \
+	  lang=`echo $$cat | sed 's/\.gmo$$//'`; \
+	  dir=$(localedir)/$$lang/LC_MESSAGES; \
+	  $(mkinstalldirs) $(DESTDIR)$$dir; \
+	  if test -r $$cat; then \
+	    $(INSTALL_DATA) $$cat $(DESTDIR)$$dir/$(PACKAGE).mo; \
+	    echo "installing $$cat as $(DESTDIR)$$dir/$(PACKAGE).mo"; \
+	  else \
+	    $(INSTALL_DATA) $(srcdir)/$$cat $(DESTDIR)$$dir/$(PACKAGE).mo; \
+	    echo "installing $(srcdir)/$$cat as" \
+		 "$(DESTDIR)$$dir/$(PACKAGE).mo"; \
+	  fi; \
+	done
+
+# Define this as empty until I found a useful application.
+installcheck:
+
+uninstall:
+	catalogs='$(CATALOGS)'; \
+	for cat in $$catalogs; do \
+	  cat=`basename $$cat`; \
+	  lang=`echo $$cat | sed 's/\.gmo$$//'`; \
+	  rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(PACKAGE).mo; \
+	done
+	if test "$(PACKAGE)" = "gettext"; then \
+	  rm -f $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \
+	else \
+	  : ; \
+	fi
+
+check: all
+
+dvi info tags TAGS ID:
+
+mostlyclean:
+	rm -f core core.* *.pox $(PACKAGE).po *.new.po
+	rm -fr *.o
+
+clean: mostlyclean
+
+distclean: clean
+	rm -f Makefile Makefile.in POTFILES *.mo
+
+maintainer-clean: distclean
+	@echo "This command is intended for maintainers to use;"
+	@echo "it deletes files that may require special tools to rebuild."
+	rm -f $(GMOFILES)
+
+distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
+dist distdir:
+	$(MAKE) update-po
+	@$(MAKE) dist2
+# This is a separate target because 'update-po' must be executed before.
+dist2: $(DISTFILES)
+	dists="$(DISTFILES)"; \
+	for file in $$dists; do \
+	  cp -p $(srcdir)/$$file $(distdir); \
+	done
+
+update-po: Makefile
+	$(MAKE) $(PACKAGE).pot
+	if test "$(PACKAGE)" = "gettext"; then PATH=`pwd`/../src:$$PATH; fi; \
+	cd $(srcdir); \
+	catalogs='$(GMOFILES)'; \
+	for cat in $$catalogs; do \
+	  cat=`basename $$cat`; \
+	  lang=`echo $$cat | sed 's/\.gmo$$//'`; \
+	  echo "$$lang:"; \
+	  if $(MSGMERGE) $$lang.po $(PACKAGE).pot -o $$lang.new.po; then \
+	    mv -f $$lang.new.po $$lang.po; \
+	  else \
+	    echo "msgmerge for $$cat failed!"; \
+	    rm -f $$lang.new.po; \
+	  fi; \
+	done
+	$(MAKE) update-gmo
+
+update-gmo: Makefile $(GMOFILES)
+	@:
+
+POTFILES: POTFILES.in
+	( if test 'x$(srcdir)' != 'x.'; then \
+	    posrcprefix='$(top_srcdir)/'; \
+	  else \
+	    posrcprefix="../"; \
+	  fi; \
+	  rm -f $@-t $@ \
+	    && (sed -e '/^#/d' -e '/^[ 	]*$$/d' \
+		    -e "s at .*@	$$posrcprefix& \\\\@" < $(srcdir)/$@.in \
+		| sed -e '$$s/\\$$//') > $@-t \
+	    && chmod a-w $@-t \
+	    && mv $@-t $@ )
+
+Makefile: Makefile.in.in ../config.status POTFILES
+	cd .. \
+	  && CONFIG_FILES=$(subdir)/$@.in CONFIG_HEADERS= \
+	       $(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:

Added: packages/gpsdrive/branches/etch/po/POTFILES.in
===================================================================
--- packages/gpsdrive/branches/etch/po/POTFILES.in	                        (rev 0)
+++ packages/gpsdrive/branches/etch/po/POTFILES.in	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,13 @@
+src/gpsdrive.c
+src/speech_out.c
+src/splash.c
+src/settings.c
+src/fly.c
+src/nautic.c
+src/track.c
+src/gpssql.c
+src/gpskismet.c
+src/friends.c
+src/friendsd.c
+src/gpsnasamap.c
+src/gpsserial.c

Added: packages/gpsdrive/branches/etch/po/da.gmo
===================================================================
(Binary files differ)


Property changes on: packages/gpsdrive/branches/etch/po/da.gmo
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: packages/gpsdrive/branches/etch/po/da.po
===================================================================
--- packages/gpsdrive/branches/etch/po/da.po	                        (rev 0)
+++ packages/gpsdrive/branches/etch/po/da.po	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,2542 @@
+# Copyright (C) 2002 Free Software Foundation, Inc.
+# Andreas Hinz <gps at acci.dk>, 2001-2003.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-03-03 21:47+0100\n"
+"PO-Revision-Date: 2003-05-08 07:50+0200\n"
+"Last-Translator: Andreas Hinz <gps at acci.dk>\n"
+"Language-Team: german <de at li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 0.9.6\n"
+
+#: src/gpsdrive.c:2179
+msgid "/_Misc. Menu"
+msgstr ""
+
+#: src/gpsdrive.c:2180
+msgid "/_Misc. Menu/Maps"
+msgstr ""
+
+#: src/gpsdrive.c:2181
+#, fuzzy
+msgid "/_Misc. Menu/Maps/_Import map"
+msgstr "i    : importér kort\n"
+
+#: src/gpsdrive.c:2185
+msgid "/_Misc. Menu/Maps/_Map Manager"
+msgstr ""
+
+#: src/gpsdrive.c:2187
+msgid "/_Misc. Menu/_Waypoint Manager"
+msgstr ""
+
+#: src/gpsdrive.c:2189
+#, fuzzy
+msgid "/_Misc. Menu/_Load track file"
+msgstr "Vælg spor"
+
+#: src/gpsdrive.c:2193
+#, fuzzy
+msgid "/_Misc. Menu/Messages"
+msgstr "Vælg spor"
+
+#: src/gpsdrive.c:2194
+msgid "/_Misc. Menu/Messages/Send message to mobile target"
+msgstr ""
+
+#: src/gpsdrive.c:2199
+msgid "/_Misc. Menu/Help"
+msgstr ""
+
+#: src/gpsdrive.c:2200
+msgid "/_Misc. Menu/Help/About"
+msgstr ""
+
+#: src/gpsdrive.c:2202
+msgid "/_Misc. Menu/Help/Topics"
+msgstr ""
+
+#: src/gpsdrive.c:2271
+msgid "  Message  "
+msgstr "  Besked   "
+
+#: src/gpsdrive.c:2315 src/gpsdrive.c:12145
+#, fuzzy
+msgid "Stop GPSD"
+msgstr "Start 'gpsd'"
+
+#: src/gpsdrive.c:2317 src/gpsdrive.c:12147
+#, fuzzy
+msgid "Stop GPSD and switch to simulation mode"
+msgstr "p    : skift til positions modus\n"
+
+#: src/gpsdrive.c:2339 src/gpsdrive.c:11261
+msgid "Start GPSD"
+msgstr "Start 'gpsd'"
+
+#: src/gpsdrive.c:2341 src/gpsdrive.c:12153
+msgid "Starts GPSD for NMEA mode"
+msgstr "Start 'gpsd' i NMEA mode"
+
+#. displays zoom factor of map
+#: src/gpsdrive.c:2354 src/gpsdrive.c:2355 src/gpsdrive.c:2356
+#: src/gpsdrive.c:6264 src/gpsdrive.c:6273 src/gpsdrive.c:11484
+#: src/gpsdrive.c:11491 src/gpsdrive.c:11498 src/gpsdrive.c:11555
+#: src/gpsdrive.c:11560 src/gpsdrive.c:11566 src/gpsdrive.c:11602
+#: src/gpsdrive.c:11609 src/settings.c:1425 src/settings.c:1434
+#: src/settings.c:1443 src/settings.c:1468 src/settings.c:1478
+#: src/settings.c:1487 src/settings.c:1498 src/settings.c:1507
+#: src/settings.c:1517
+msgid "n/a"
+msgstr "i/m"
+
+#: src/gpsdrive.c:2366 src/gpsdrive.c:10245
+msgid ""
+"\n"
+"no garmin support compiled in\n"
+msgstr ""
+"\n"
+"ingen garmin support\n"
+
+#: src/gpsdrive.c:2387 src/gpsdrive.c:3136
+msgid "Simulation mode"
+msgstr "Simulations mode"
+
+#: src/gpsdrive.c:2409
+msgid "got RMC data, using it\n"
+msgstr ""
+
+#: src/gpsdrive.c:2498 src/gpsdrive.c:11936
+msgid "Map"
+msgstr "Kort"
+
+#. if (debug)
+#: src/gpsdrive.c:2661
+msgid "got no RMC data, using GGA data\n"
+msgstr ""
+
+#: src/gpsdrive.c:2912
+msgid "Timeout getting data from GPS-Receiver!"
+msgstr "Ingen forbindelse til GPS-modtager!"
+
+#: src/gpsdrive.c:2959 src/gpsdrive.c:3008 src/gpsdrive.c:3113
+#: src/gpsdrive.c:3199 src/gpsdrive.c:3324
+msgid "Press middle mouse button for navigation"
+msgstr "Tryk på 3. musknap for at navigere"
+
+#: src/gpsdrive.c:2963
+#, fuzzy, c-format
+msgid "Direct serial connection to %s"
+msgstr "Forbinder til %s"
+
+#: src/gpsdrive.c:3013 src/gpsdrive.c:3045 src/gpsdrive.c:3205
+#: src/gpsdrive.c:3330
+msgid "Not enough satellites in view!"
+msgstr "Ikke nok satelitter synlige!"
+
+#: src/gpsdrive.c:3117
+msgid "GARMIN Mode"
+msgstr "GARMIN Mode"
+
+#: src/gpsdrive.c:3134
+msgid "No GPS used"
+msgstr "Ingen GPS anvendt"
+
+#: src/gpsdrive.c:3138
+msgid "Press middle mouse button for sim mode"
+msgstr "Tryk på 3. musknap for at navigere"
+
+#: src/gpsdrive.c:3477
+#, c-format
+msgid "Distance to HomeBase: %.1fkm, max. allowed: %.1fkm\n"
+msgstr ""
+
+#: src/gpsdrive.c:3554 src/gpsdrive.c:3784 src/gpsdrive.c:6665
+#: src/gpsdrive.c:8534 src/gpsdrive.c:9000
+msgid "To"
+msgstr ""
+
+#: src/gpsdrive.c:3866
+msgid "Error in line "
+msgstr "Fejl i linie "
+
+#: src/gpsdrive.c:3868
+msgid ""
+"I have found filenames in map_koord.txt which are\n"
+"not map_* or top_* files. Please rename them and change the entries in\n"
+"map_koord.txt.  Use map_* for street maps and top_* for topographical\n"
+"maps.  Otherwise, the maps will not be displayed!"
+msgstr ""
+"Der findes et filnavn i\n"
+"map_koord.txt,\n"
+"som ikke er en map_* eller top_* fil!\n"
+"Omdøb dem og ret linien\n"
+" i map_koord.txt, da disse kort ellers\n"
+"ikke vil blive vist!\n"
+"\n"
+"Benyt map_* for gade kort og\n"
+"top_* for topografiske kort."
+
+#: src/gpsdrive.c:4229
+msgid "Auto"
+msgstr "Auto"
+
+#: src/gpsdrive.c:4440
+#, fuzzy
+msgid "Warning!"
+msgstr "MÃ¥l retn."
+
+#: src/gpsdrive.c:4441
+msgid "You should not start GpsDrive as user root!!!"
+msgstr ""
+
+#: src/gpsdrive.c:4756 src/gpsdrive.c:8145 src/gpsdrive.c:8154
+#: src/gpsdrive.c:11661 src/gpsdrive.c:11670
+msgid "mi/h"
+msgstr "mi/h"
+
+#: src/gpsdrive.c:4758 src/gpsdrive.c:8147 src/gpsdrive.c:8156
+#: src/gpsdrive.c:11663 src/gpsdrive.c:11672
+msgid "knots"
+msgstr "knob"
+
+#: src/gpsdrive.c:4760 src/gpsdrive.c:8149 src/gpsdrive.c:8158
+#: src/gpsdrive.c:11665 src/gpsdrive.c:11674
+msgid "km/h"
+msgstr "km/t"
+
+#: src/gpsdrive.c:5088
+msgid ""
+"\n"
+"Warning: unable to load gpsdriveanim.gif!\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+
+#. This string means North,East,South,West -- please translate the letters
+#: src/gpsdrive.c:5896
+msgid "NESW"
+msgstr "NØSV"
+
+#: src/gpsdrive.c:6064
+msgid "No map available for this position!"
+msgstr "Kort for denne position findes ikke!"
+
+#: src/gpsdrive.c:6258
+#, fuzzy
+msgid "unused"
+msgstr "Solnedgang"
+
+#: src/gpsdrive.c:6362
+msgid "can't open NMEA output file"
+msgstr "kan ikke skrive til NMEA fil"
+
+#: src/gpsdrive.c:6473
+msgid " Mapfile could not be loaded:"
+msgstr "Kort fil kunne ikke læses:"
+
+#: src/gpsdrive.c:6517
+msgid "Map found!"
+msgstr ""
+
+#: src/gpsdrive.c:6552
+msgid " Friendsicon could not be loaded:"
+msgstr "Kort fil kunne ikke læses:"
+
+#: src/gpsdrive.c:6555
+msgid ""
+"\n"
+"Warning: unable to load friendsicon!\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+
+#: src/gpsdrive.c:6843
+msgid "Select coordinates and scale"
+msgstr "Vælg koordinater og skala"
+
+#: src/gpsdrive.c:6846
+msgid "Download map"
+msgstr "Hent kort"
+
+#: src/gpsdrive.c:6872 src/gpsdrive.c:7911 src/gpsdrive.c:9209
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/gpsdrive.c:11792
+msgid "Latitude"
+msgstr "Bredde"
+
+#: src/gpsdrive.c:6874 src/gpsdrive.c:7913 src/gpsdrive.c:9203
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/gpsdrive.c:11793
+msgid "Longitude"
+msgstr "Længde"
+
+#: src/gpsdrive.c:6876
+msgid "Map covers"
+msgstr "Kort dækker"
+
+#: src/gpsdrive.c:6880
+msgid "Scale"
+msgstr "Skala"
+
+#: src/gpsdrive.c:6882
+msgid "Map file name"
+msgstr "Kort filnavn"
+
+#: src/gpsdrive.c:6922 src/settings.c:958
+msgid "Expedia Germany"
+msgstr ""
+
+#: src/gpsdrive.c:6928 src/settings.c:964
+msgid "Expedia USA"
+msgstr ""
+
+#: src/gpsdrive.c:6934
+msgid "TopoZone(US Only)"
+msgstr ""
+
+#: src/gpsdrive.c:6943
+msgid ""
+"If selected, you download the map from the german expedia server (expedia.de)"
+msgstr ""
+
+#: src/gpsdrive.c:6947
+msgid ""
+"If selected, you download the map from the U.S. expedia server (expedia.com)"
+msgstr ""
+
+#: src/gpsdrive.c:6951
+msgid ""
+"If selected, you download the map from the TopoZone Server (US maps only)"
+msgstr ""
+
+#: src/gpsdrive.c:6977 src/gpsdrive.c:6981
+msgid ""
+"You can also select the position\n"
+"with a mouse click on the map."
+msgstr "Du kan også vælge positionen ved musklik på kortet."
+
+#: src/gpsdrive.c:6983
+msgid "Using Proxy and port:"
+msgstr "Benytter proxy og port:"
+
+#: src/gpsdrive.c:7280 src/gpsdrive.c:7397
+msgid "can't open socket for port 80"
+msgstr "kan ikke åbne socket på port 80"
+
+#: src/gpsdrive.c:7282 src/gpsdrive.c:7285 src/gpsdrive.c:7309
+#: src/gpsdrive.c:7312 src/gpsdrive.c:7327 src/gpsdrive.c:7330
+#: src/gpsdrive.c:7399 src/gpsdrive.c:7404 src/gpsdrive.c:7407
+#: src/gpsdrive.c:7411 src/gpsdrive.c:7446 src/gpsdrive.c:7451
+#: src/gpsdrive.c:7454 src/gpsdrive.c:7458 src/gpsdrive.c:7473
+#: src/gpsdrive.c:7478 src/gpsdrive.c:7481 src/gpsdrive.c:7485
+#, c-format
+msgid "Connecting to %s FAILED!"
+msgstr "Forbindelse til %s mislykkedes!"
+
+#: src/gpsdrive.c:7307 src/gpsdrive.c:7444
+msgid "Can't resolve webserver address"
+msgstr "Kan ikke finde web server"
+
+#: src/gpsdrive.c:7325 src/gpsdrive.c:7471
+msgid "unable to connect to Website"
+msgstr "forbindelse til web-siden mislykkedes"
+
+#: src/gpsdrive.c:7353 src/gpsdrive.c:7542
+msgid "read from Webserver"
+msgstr "læs fra web-server"
+
+#: src/gpsdrive.c:7380 src/gpsdrive.c:7384 src/gpsdrive.c:7386
+#: src/gpsdrive.c:7389
+#, c-format
+msgid "Connecting to %s"
+msgstr "Forbinder til %s"
+
+#: src/gpsdrive.c:7499 src/gpsdrive.c:7503 src/gpsdrive.c:7505
+#: src/gpsdrive.c:7508
+#, c-format
+msgid "Now connected to %s"
+msgstr "Forbundet til %s"
+
+#: src/gpsdrive.c:7585
+#, c-format
+msgid "Downloaded %d kBytes"
+msgstr "Hentede %d kBytes"
+
+#: src/gpsdrive.c:7599
+msgid "Download FAILED!"
+msgstr "Hent mislykkedes!"
+
+#: src/gpsdrive.c:7601
+#, c-format
+msgid "Download finished, got %dkB"
+msgstr "Hent alfsuttet, modtog %d kB"
+
+#: src/gpsdrive.c:7772
+msgid "Select a map file"
+msgstr "Vælg kort fil"
+
+#: src/gpsdrive.c:7837
+msgid ""
+"How to calibrate your own maps? First, the map file\n"
+"must be copied into the"
+msgstr ""
+
+#: src/gpsdrive.c:7839
+#, fuzzy
+msgid ""
+"\n"
+"directory as .gif, .jpg or .png file and must have\n"
+"the size 1280x1024. The file names must be\n"
+"map_* for street maps or top_* for topographical maps!\n"
+"Load the file, select coordinates from waypoint list or\n"
+"type them in. Then click on the accept button."
+msgstr ""
+"Hvordan kalibrerer du dine egne kort?\n"
+"\n"
+"Først skal du kopiere filen til ~/.gpsdrive mappen som .gif, .jpg eller .png "
+"fil og filen skal have opløsningen 1280x1024.Filen skal være map_* for gade "
+"kort eller top_* for topografiske kort!\n"
+"Hent filen, vælg koordinater\n"
+"fra punkt listen eller indtast dem.\n"
+"Klik derefter på OK"
+
+#: src/gpsdrive.c:7846
+#, fuzzy
+msgid ""
+"Now do the same for your second point and click on the\n"
+"finish button. The map can be used now."
+msgstr ""
+"Udfør nu det samme for dit andet punkt og klik på Afslut. Kortet kan nu "
+"benyttes."
+
+#: src/gpsdrive.c:7851
+msgid "Import Assistant. Step 1"
+msgstr "Import assistent. Trin 1"
+
+#: src/gpsdrive.c:7853
+msgid "Import Assistant. Step 2"
+msgstr "Import assistent. Trin 2"
+
+#: src/gpsdrive.c:7858
+msgid "Accept first point"
+msgstr "Acceptér første punkt"
+
+#: src/gpsdrive.c:7860
+msgid "Finish"
+msgstr "Afslut"
+
+#: src/gpsdrive.c:7881
+msgid "Go up"
+msgstr "GÃ¥ op"
+
+#: src/gpsdrive.c:7884
+msgid "Go left"
+msgstr "Til venstre"
+
+#: src/gpsdrive.c:7887
+msgid "Go right"
+msgstr "Til højre"
+
+#: src/gpsdrive.c:7890
+msgid "Go down"
+msgstr "GÃ¥ ned"
+
+#: src/gpsdrive.c:7893
+msgid "Zoom in"
+msgstr "Zoom ind"
+
+#: src/gpsdrive.c:7896
+msgid "Zoom out"
+msgstr "Zoom ud"
+
+#: src/gpsdrive.c:7915
+msgid "Screen X"
+msgstr "X"
+
+#: src/gpsdrive.c:7917
+msgid "Screen Y"
+msgstr "Y"
+
+#: src/gpsdrive.c:7919
+msgid "Browse waypoint"
+msgstr "Finde punkt"
+
+#: src/gpsdrive.c:7950
+msgid "Browse filename"
+msgstr "Bladre filnavn"
+
+#: src/gpsdrive.c:8043
+msgid "GpsDrive Control"
+msgstr "GpsDrive kontrol"
+
+#: src/gpsdrive.c:8154 src/gpsdrive.c:8156 src/gpsdrive.c:8158
+#: src/gpsdrive.c:11670 src/gpsdrive.c:11672 src/gpsdrive.c:11674
+#: src/settings.c:1025
+msgid "Speed"
+msgstr "Hastighed"
+
+#: src/gpsdrive.c:8375
+msgid ""
+"\n"
+"distance jump is more then 1000km/h speed, ignoring\n"
+msgstr ""
+
+#: src/gpsdrive.c:8597 src/friends.c:348
+#, fuzzy
+msgid "/Misc. Menu/Messages"
+msgstr "Vælg spor"
+
+#: src/gpsdrive.c:8600
+#, fuzzy
+msgid "Sending message to friends server..."
+msgstr "Til/frakobl afstands valg"
+
+#: src/gpsdrive.c:8673
+#, fuzzy
+msgid "Message for:"
+msgstr "  Besked   "
+
+#: src/gpsdrive.c:8714
+#, c-format
+msgid "Date: %s"
+msgstr ""
+
+#: src/gpsdrive.c:8727
+msgid "Sends your text to to selected computer using the friends server"
+msgstr ""
+
+#: src/gpsdrive.c:8999
+msgid "SELECTED"
+msgstr "VALGT"
+
+#: src/gpsdrive.c:9172
+msgid "Add waypoint name"
+msgstr "Tilføj ounkt navn"
+
+#: src/gpsdrive.c:9231
+msgid " Waypoint name: "
+msgstr "Punkt navn: "
+
+#: src/gpsdrive.c:9244
+msgid " Waypoint type: "
+msgstr "Punkt type: "
+
+#: src/gpsdrive.c:9489
+msgid "Name"
+msgstr ""
+
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/settings.c:1018
+msgid "Distance"
+msgstr "Afstand"
+
+#: src/gpsdrive.c:9499
+#, fuzzy
+msgid "Please select message recipient"
+msgstr "Vælg destination"
+
+#: src/gpsdrive.c:9568 src/gpsdrive.c:9715
+msgid "Waypoint"
+msgstr "Punkt"
+
+#: src/gpsdrive.c:9587
+msgid "Select reference point"
+msgstr "Vælg referance punkt"
+
+#: src/gpsdrive.c:9591
+msgid "Please select your destination"
+msgstr "Vælg destination"
+
+#: src/gpsdrive.c:9620
+msgid "Edit route"
+msgstr "Ret rute"
+
+#: src/gpsdrive.c:9622
+msgid "Create route"
+msgstr "Opret rute"
+
+#: src/gpsdrive.c:9693
+msgid "Create a route using some waypoints from this list"
+msgstr "Opret en rute ud fra punkter fra dene liste"
+
+#: src/gpsdrive.c:9698
+msgid "Delete the selected waypoint from the waypoint list"
+msgstr "Slet et punkt fra listen"
+
+#: src/gpsdrive.c:9702
+#, fuzzy
+msgid "Jump to the selected waypoint"
+msgstr ""
+"Klik på punkt listen\n"
+"for at tilføje punkter"
+
+#: src/gpsdrive.c:9729
+msgid "Define route"
+msgstr "Definér rute"
+
+#: src/gpsdrive.c:9737
+msgid "Start route"
+msgstr "Start rute"
+
+#: src/gpsdrive.c:9746
+msgid "Take all WP as route"
+msgstr "Benyt alle til rute"
+
+#: src/gpsdrive.c:9751
+msgid "Abort route"
+msgstr "Afbryd rute"
+
+#: src/gpsdrive.c:9795
+msgid ""
+"Click on waypoints list\n"
+"to add waypoints"
+msgstr ""
+"Klik på punkt listen\n"
+"for at tilføje punkter"
+
+#: src/gpsdrive.c:9797
+msgid ""
+"Click on list item\n"
+"to select next waypoint"
+msgstr ""
+"Klik på punkt listen\n"
+"for at tilføje punkter"
+
+#: src/gpsdrive.c:9838
+msgid ""
+"Create a route from all waypoints. Sorted with order in file, not distance."
+msgstr ""
+"Opret en rute ud af alle punkter. Sorteret som vist på listen og ikke "
+"afstand."
+
+#: src/gpsdrive.c:9842
+msgid ""
+"Click here to start your journey. GpsDrive guides you through the waypoints "
+"in this list."
+msgstr ""
+"Klik her for at starte rejsen. GpsDrive vejleder dig gennem punkterne på "
+"denne liste."
+
+#: src/gpsdrive.c:9845
+msgid "Abort your journey"
+msgstr "Afbryd rejsen"
+
+#: src/gpsdrive.c:9862
+msgid "-v    show version\n"
+msgstr "-v    vis version\n"
+
+#: src/gpsdrive.c:9863
+msgid "-h    print this help\n"
+msgstr "-h    vis denne hjælp\n"
+
+#: src/gpsdrive.c:9864
+msgid "-d    turn on debug info\n"
+msgstr "-d    slå debug til\n"
+
+#: src/gpsdrive.c:9865
+msgid "-D    turn on lot of debug info\n"
+msgstr "-D    slå megen debug info til\n"
+
+#: src/gpsdrive.c:9866
+msgid "-e    use Festival-Lite (flite) for speech output\n"
+msgstr "-e    benyt Festival-Lite (flite) til tale\n"
+
+#: src/gpsdrive.c:9867
+msgid "-t    set serial device for GPS i.e. /dev/ttyS1\n"
+msgstr "-t    sæt seriel GPS enhed, fx. /dev/ttyS1\n"
+
+#: src/gpsdrive.c:9868
+msgid "-o    serial device, pty master, or file for NMEA *output*\n"
+msgstr "-o    seriel enhed, pty master, eller NMEA udgang fil\n"
+
+#: src/gpsdrive.c:9869
+#, fuzzy
+msgid "-f X  Select friends server, X is i.e. www.gpsdrive.cc\n"
+msgstr "-f X  Vælg friends server. X er fx linux.quant-x.at\n"
+
+#: src/gpsdrive.c:9870
+msgid "-n    Disable use of direct serial connection\n"
+msgstr ""
+
+#: src/gpsdrive.c:9871
+msgid ""
+"-l X  Select language of the voice,\n"
+"      X may be english, spanish or german\n"
+msgstr ""
+"-l X  Vælg tale sprog,\n"
+"      X kan være engelsk eller tysk\n"
+
+#: src/gpsdrive.c:9873
+msgid ""
+"-s X  set height of the screen, if autodetection\n"
+"      don't satisfy you, X is i.e. 768,600,480,200\n"
+msgstr ""
+"-s X  Sæt skærm højde manuelt\n"
+"      X er fx. 768,600,480,200\n"
+
+#. ** Mod by Arms
+#: src/gpsdrive.c:9876
+msgid "-r X  set width of the screen, only with -s\n"
+msgstr "-r X  sæt skærmbredde (kun med -s)\n"
+
+#: src/gpsdrive.c:9878
+msgid "-1    have only 1 button mouse, for example using touchscreen\n"
+msgstr "-1    har kun 1 mus knap, fx. ved benyttelse at touch screen\n"
+
+#: src/gpsdrive.c:9879
+msgid "-a    don't display battery status (i.e. broken APM)\n"
+msgstr "-a   vis ikke batteri status\n"
+
+#: src/gpsdrive.c:9881
+msgid "-b X  Servername for NMEA server (if gpsd runs on another host)\n"
+msgstr "-b X  NMEA servernavn (hvis gpsd kører på en anden maskine)\n"
+
+#: src/gpsdrive.c:9883
+msgid "-c X  set start position in simulation mode to waypoint name X\n"
+msgstr "-c X  sæt startposition  i somulations mode til punkt navn X\n"
+
+#: src/gpsdrive.c:9884
+msgid "-x    create separate window for menu\n"
+msgstr "-x    opret nyt vindue til menuen\n"
+
+#: src/gpsdrive.c:9885
+msgid "-p    set settings for PDA (iPAQ, Yopy...)\n"
+msgstr "-p    vælg PDA opsæt (iPaq, Yopi mm.)\n"
+
+#: src/gpsdrive.c:9887
+msgid "-i    ignore NMEA checksum (risky, only for broken GPS receivers\n"
+msgstr "-i    ignorer NMEA checksum (benyt kun med defekte GPS modtagere)\n"
+
+#: src/gpsdrive.c:9888
+msgid "-q    disable SQL support\n"
+msgstr "-q    frakobl SQL\n"
+
+#: src/gpsdrive.c:9889
+msgid "-F    force display of position even it is invalid\n"
+msgstr ""
+
+#: src/gpsdrive.c:9890
+msgid "-S    don't show splash screen\n"
+msgstr ""
+
+#: src/gpsdrive.c:9891
+msgid "-E    print out data received from direct serial connection\n"
+msgstr ""
+
+#: src/gpsdrive.c:9893
+msgid "-W x  set x to 1 to switch WAAS/EGNOS on, set to 0 to switch off\n"
+msgstr ""
+
+#: src/gpsdrive.c:9894
+msgid "-H X  correct altitude, adding this value to altitude\n"
+msgstr ""
+
+#: src/gpsdrive.c:9895
+msgid ""
+"-z    don't display zoom factor and scale\n"
+"\n"
+msgstr ""
+"-z    vis ikke zoom faktor og scala\n"
+"\n"
+
+#: src/gpsdrive.c:10001
+msgid "Select a track file"
+msgstr "Vælg spor"
+
+#: src/gpsdrive.c:10179 src/gpskismet.c:380
+msgid "can't open socket for port "
+msgstr "kan ikke åbne port "
+
+#: src/gpsdrive.c:10200
+#, c-format
+msgid ""
+"\n"
+"Cannot connect to %s: unknown host\n"
+msgstr ""
+
+#: src/gpsdrive.c:10221
+msgid "NMEA Mode, Port 2222"
+msgstr "NMEA Mode, Port 2222"
+
+#: src/gpsdrive.c:10230
+msgid "NMEA Mode, Port 2947"
+msgstr "NMEA Mode, Port 2947"
+
+#: src/gpsdrive.c:10249
+msgid ""
+"\n"
+"Garmin protocol detection disabled!\n"
+msgstr ""
+"\n"
+"Garmin protocol detektion deaktiveret!\n"
+
+#: src/gpsdrive.c:10600
+msgid ""
+"\n"
+"libmysqlclient.so not found.\n"
+msgstr ""
+"\n"
+"libmysqlclient.so ikke found.\n"
+
+#: src/gpsdrive.c:10606
+msgid ""
+"\n"
+"MySQL support disabled.\n"
+msgstr ""
+"\n"
+"MySQL support fravalgt.\n"
+
+#: src/gpsdrive.c:10783
+msgid ""
+"\n"
+"You can only choose between english, spanish and german\n"
+"\n"
+msgstr ""
+"\n"
+"Du kan kun vælge mellem engelsk, spansk og tysk\n"
+"\n"
+
+#: src/gpsdrive.c:10817 src/settings.c:1730
+#, fuzzy
+msgid "EnterYourName"
+msgstr "Interface"
+
+#: src/gpsdrive.c:10879
+#, c-format
+msgid ""
+"\n"
+"Using proxy: %s on port %d"
+msgstr ""
+"\n"
+"Benytter proxy: %s på port %d"
+
+#: src/gpsdrive.c:10883
+msgid ""
+"\n"
+"Invalid enviroment variable HTTP_PROXY, must be in format: http://proxy."
+"provider.de:3128"
+msgstr ""
+"\n"
+"Forkert HTTP_PROXY variabel. Skal være som fx  http://proxy.provider.de:3128"
+
+#: src/gpsdrive.c:11073
+#, fuzzy
+msgid "Gpsdrive-2 (c)2001-2004 F.Ganter"
+msgstr "Gpsdrive-2 (c)2001-2003 F.Ganter"
+
+#: src/gpsdrive.c:11081
+msgid "Using speech output"
+msgstr "Benytter tale"
+
+#: src/gpsdrive.c:11115
+#, fuzzy
+msgid "/Misc. Menu/Maps/Map Manager"
+msgstr "Vælg spor"
+
+#: src/gpsdrive.c:11119
+#, fuzzy
+msgid "/Misc. Menu/Waypoint Manager"
+msgstr "Vælg spor"
+
+#. download map button
+#: src/gpsdrive.c:11123
+msgid "_Download map"
+msgstr "_Hent kort"
+
+#: src/gpsdrive.c:11142
+msgid "M_ute"
+msgstr "L_ydløs"
+
+#: src/gpsdrive.c:11152
+msgid "Use SQ_L"
+msgstr "Benyt S_QL"
+
+#: src/gpsdrive.c:11162
+msgid "Show _WP"
+msgstr "Vis _punkter"
+
+#: src/gpsdrive.c:11189
+msgid "HomeBase"
+msgstr ""
+
+#: src/gpsdrive.c:11197
+msgid "Pos. _mode"
+msgstr "Pos. _mode"
+
+#: src/gpsdrive.c:11203
+msgid "Show _Track"
+msgstr "_Vis spor"
+
+#: src/gpsdrive.c:11246
+msgid "_Navigation"
+msgstr ""
+
+#: src/gpsdrive.c:11265
+msgid "Auto _best map"
+msgstr "Bedste _kort"
+
+#: src/gpsdrive.c:11275
+msgid "Save track"
+msgstr "Gem spor"
+
+#: src/gpsdrive.c:11286
+msgid "Shown map type"
+msgstr "Vis kort type"
+
+#: src/gpsdrive.c:11297
+msgid "Street map"
+msgstr "Gade kort"
+
+#: src/gpsdrive.c:11304
+msgid "Topo map"
+msgstr "Topogr. kort"
+
+#: src/gpsdrive.c:11386
+msgid ""
+"\n"
+"kismet server found\n"
+msgstr ""
+"\n"
+"kismet server fundet\n"
+
+#: src/gpsdrive.c:11447 src/gpsdrive.c:11797
+msgid "Bearing"
+msgstr "MÃ¥l retn."
+
+#: src/gpsdrive.c:11468
+#, fuzzy
+msgid "GPS Info"
+msgstr "Geo info"
+
+#: src/gpsdrive.c:11519
+msgid "Bat."
+msgstr "Bat."
+
+#: src/gpsdrive.c:11534
+#, fuzzy
+msgid "TC"
+msgstr "UTC "
+
+#. displays speed over ground
+#: src/gpsdrive.c:11552 src/gpsdrive.c:11807 src/gpsdrive.c:11809
+#: src/gpsdrive.c:11815 src/gpsdrive.c:11817
+msgid "---"
+msgstr "---"
+
+#: src/gpsdrive.c:11632 src/gpsdrive.c:11639
+msgid "Selected:"
+msgstr "Valgt:"
+
+#: src/gpsdrive.c:11632 src/gpsdrive.c:11639
+msgid "within"
+msgstr "i"
+
+#. create frames for labels
+#: src/gpsdrive.c:11647
+msgid "Distance to target"
+msgstr "Afstand til mål"
+
+#. ** Mod by Arms
+#. if (!pdamode)
+#. gtk_box_pack_start (GTK_BOX (hbox2), frame_speed, TRUE, TRUE,
+#. 1 * PADDING);
+#: src/gpsdrive.c:11683
+msgid "Altitude"
+msgstr "Højdde"
+
+#. ** Mod by Arms
+#. if (!pdamode)
+#. gtk_box_pack_start (GTK_BOX (hbox2), frame_altitude, FALSE, TRUE,
+#. 1 * PADDING);
+#: src/gpsdrive.c:11690 src/settings.c:681
+msgid "Waypoints"
+msgstr "Punkter"
+
+#: src/gpsdrive.c:11794
+msgid "Map file"
+msgstr "Kort fil"
+
+#: src/gpsdrive.c:11795
+msgid "Map scale"
+msgstr "Kort skala"
+
+#: src/gpsdrive.c:11796
+msgid "Heading"
+msgstr "Bevæg. retn."
+
+#: src/gpsdrive.c:11798
+msgid "Time at Dest."
+msgstr "Ankomsttid"
+
+#: src/gpsdrive.c:11799
+msgid "Pref. scale"
+msgstr "Fortruk. skala"
+
+#: src/gpsdrive.c:11803
+msgid "000,00000N"
+msgstr ""
+
+#: src/gpsdrive.c:11805
+msgid "000,00000E"
+msgstr ""
+
+#: src/gpsdrive.c:11811 src/gpsdrive.c:11813
+msgid "0000"
+msgstr ""
+
+#. gdk_window_lower((GdkWindow *)menuwin);
+#: src/gpsdrive.c:11886 src/gpsdrive.c:11937
+msgid "Menu"
+msgstr "Menu"
+
+#. gdk_window_lower((GdkWindow *)menuwin2);
+#: src/gpsdrive.c:11895 src/gpsdrive.c:11938
+msgid "Status"
+msgstr "Status"
+
+#: src/gpsdrive.c:12089
+msgid ""
+"Click here to switch betwen satetellite level and satellite position "
+"display. A rotating globe is shown in simulation mode"
+msgstr ""
+
+#: src/gpsdrive.c:12093
+#, fuzzy
+msgid "Number of used satellites/satellites in view"
+msgstr "Ikke nok satelitter synlige!"
+
+#: src/gpsdrive.c:12096
+msgid "EPE (Estimated Precision Error), if available"
+msgstr ""
+
+#: src/gpsdrive.c:12100
+msgid ""
+"PDOP (Position Dilution Of Precision). PDOP less than 4 gives the best "
+"accuracy, between 4 and 8 gives acceptable accuracy and greater than 8 gives "
+"unacceptable poor accuracy. "
+msgstr ""
+
+#: src/gpsdrive.c:12105
+msgid ""
+"On top of the compass you see the direction to which you move. The pointer "
+"shows the target direction on the compass."
+msgstr ""
+
+#: src/gpsdrive.c:12108
+msgid "/Misc. Menu"
+msgstr ""
+
+#: src/gpsdrive.c:12111
+msgid "Here you find extra functions for maps, tracks and messages"
+msgstr ""
+
+#: src/gpsdrive.c:12115
+msgid "Download map from Internet"
+msgstr "Hent kort via Internet"
+
+#: src/gpsdrive.c:12117
+msgid "Leave the program"
+msgstr "Afslut program"
+
+#: src/gpsdrive.c:12120
+msgid "Disable output of speech"
+msgstr "Afbryd tale"
+
+#: src/gpsdrive.c:12123
+msgid "Use SQL server for waypoints"
+msgstr "Benyt SQL server til punkter"
+
+#: src/gpsdrive.c:12126
+msgid "Show waypoints on the map"
+msgstr "Vis punkter på kort"
+
+#: src/gpsdrive.c:12129
+msgid ""
+"Turn position mode on. You can move on the map with the left mouse button "
+"click. Clicking near the border switches to the proximate map."
+msgstr ""
+"Slå positions mode til. Du kan flytte kortet med venstre mus knap.Klik nær "
+"kanten skifter til nyt kort."
+
+#: src/gpsdrive.c:12132
+msgid "Show tracking on the map"
+msgstr "Vis spor på kort"
+
+#: src/gpsdrive.c:12137
+msgid "Opens the help window"
+msgstr "Åbner hjælp"
+
+#: src/gpsdrive.c:12140
+msgid "Navigation menu. Enter here your destination."
+msgstr ""
+
+#: src/gpsdrive.c:12156
+msgid "Settings for GpsDrive"
+msgstr "Opsæt af GpsDrive"
+
+#: src/gpsdrive.c:12158
+msgid "Zoom into the current map"
+msgstr "Zoom ind i nuværende kort"
+
+#: src/gpsdrive.c:12160
+msgid "Zooms out off the current map"
+msgstr "Zoom id af nuværende kort"
+
+#: src/gpsdrive.c:12162
+msgid "Select the next more detailed map"
+msgstr "Vælg kort skala fra tilgænglige kort"
+
+#: src/gpsdrive.c:12164
+msgid "Select the next less detailed map"
+msgstr "Vælg kort skala fra tilgænglige kort"
+
+#: src/gpsdrive.c:12169
+msgid "Select here a destination from the waypoint list"
+msgstr "Vælg en destination fra punkt listen"
+
+#: src/gpsdrive.c:12173
+msgid "Select the map scale of avail. maps."
+msgstr "Vælg kort skala fra tilgænglige kort."
+
+#: src/gpsdrive.c:12178
+msgid "Always select the most detailed map available"
+msgstr "Vælg kort skala fra tilgænglige kort"
+
+#: src/gpsdrive.c:12181
+msgid "Save the track to given filename at program exit"
+msgstr "Gem spor i fil ved lukning af program"
+
+#: src/gpsdrive.c:12187
+msgid "Number of waypoints selected from SQL server"
+msgstr ""
+
+#: src/gpsdrive.c:12191
+msgid "Number of selected waypoints, which are in range"
+msgstr ""
+
+#: src/gpsdrive.c:12195
+msgid "Range for waypoint selection in kilometers"
+msgstr ""
+
+#: src/gpsdrive.c:12198
+msgid "This shows the time from your GPS receiver"
+msgstr ""
+
+#: src/gpsdrive.c:12201
+msgid ""
+"Number of mobile targets within timeframe/total received from friendsserver"
+msgstr ""
+
+#: src/gpsdrive.c:12275
+msgid ""
+"\n"
+"\n"
+"Thank you for using GpsDrive!\n"
+"\n"
+msgstr ""
+"\n"
+"\n"
+"Tak for at benytte GpsDrive!\n"
+"\n"
+
+#: src/splash.c:543
+#, fuzzy
+msgid "GpsDrive v"
+msgstr "GpsDrive hjælp"
+
+#: src/splash.c:549
+msgid ""
+"\n"
+"\n"
+"You find new versions on http://www.gpsdrive.cc\n"
+msgstr ""
+
+#: src/splash.c:553
+msgid ""
+"Disclaimer: Please do not use for navigation. \n"
+"\n"
+msgstr ""
+"Advarsel: benyt ikke programmet til navigation.\n"
+"\n"
+
+#: src/splash.c:558
+#, fuzzy
+msgid "Please have a look into the manpage (man gpsdrive) for program details!"
+msgstr ""
+"Se 'man gpsdrive' for flere detaljer\n"
+" \n"
+
+#: src/splash.c:563
+msgid "Mouse control (clicking on the map):\n"
+msgstr "Mus kontrol (klik på kortet):\n"
+
+#: src/splash.c:569
+msgid ""
+"Left mouse button         : Set position (usefull in simulation mode)\n"
+"Right mouse button        : Set target directly on the map\n"
+"Middle mouse button       : Display position again\n"
+"Shift left mouse button   : smaller map\n"
+"Shift right mouse button  : larger map\n"
+"Control left mouse button : Set a waypoint (mouse position) on the map\n"
+"Control right mouse button: Set a waypoint at current position on the map\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:577
+msgid ""
+"j    : switch to next waypoint in route mode\n"
+"x    : add waypoint at current position\n"
+"y    : add waypoint at mouse cursor position\n"
+msgstr ""
+
+#: src/splash.c:583
+msgid "Short cuts:\n"
+msgstr "Genveje:\n"
+
+#: src/splash.c:590
+msgid "The other key shortcuts are marked as "
+msgstr "De andre genvejstaster er"
+
+#: src/splash.c:591
+msgid "underlined"
+msgstr "understreget"
+
+#: src/splash.c:593
+msgid " letters in the button text.\n"
+msgstr ""
+
+#: src/splash.c:596
+#, fuzzy
+msgid ""
+"Press the underlined key together with the ALT-key.\n"
+"\n"
+"You can move on the map by selecting the Position-Mode in the menu. A blue "
+"rectangle shows this mode, you can set this cursor by clicking on the map. "
+"If you click on the border of the map (the outer 20%) then the map switches "
+"to the next area.\n"
+"\n"
+"Suggestions welcome.\n"
+"\n"
+msgstr ""
+" i menuen. Et blåt rektangel viser denne mode som du kan vælge markøren ved "
+"at klikke på kortet. Hvis du klikker på de yderste 20% af kortet, så "
+"skifter  kortet til næste område."
+
+#: src/splash.c:603
+msgid "Have a lot of fun!"
+msgstr "God fornøjelse!"
+
+#: src/splash.c:734
+msgid "Please donate to GpsDrive"
+msgstr ""
+
+#: src/splash.c:740
+msgid ""
+"\n"
+"\n"
+"GpsDrive is a project with no comercial background. \n"
+"\n"
+"It would be nice if you can give a donation to help me pay the costs for "
+"hardware and the webserver.\n"
+"\n"
+"To do so, just go to"
+msgstr ""
+
+#: src/splash.c:744
+msgid " http://www.gpsdrive.cc "
+msgstr ""
+
+#: src/splash.c:747
+msgid ""
+"and click on the PayPal button.\n"
+"\n"
+"Thank you very much for your donation!\n"
+"\n"
+"This message is only displayed once when you start an new version of "
+"GpsDrive.\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:780
+#, fuzzy
+msgid "About GpsDrive donation"
+msgstr "GpsDrive kontrol"
+
+#: src/splash.c:859
+msgid "From:"
+msgstr ""
+
+#: src/splash.c:928
+#, fuzzy, c-format
+msgid ""
+"You received a message from\n"
+"the friends server (%s)\n"
+msgstr "Til/frakobl afstands valg"
+
+#: src/splash.c:938
+#, fuzzy
+msgid "You received a message through the friends server from:\n"
+msgstr "Til/frakobl afstands valg"
+
+#: src/splash.c:948
+#, fuzzy
+msgid "Message text:\n"
+msgstr "  Besked   "
+
+#: src/splash.c:1004
+msgid "Error saving config file ~/.gpsdrive/gpsdriverc"
+msgstr "Fejl ved gem af ~/.gpsdrive/gpsdriverc"
+
+#: src/splash.c:1519 src/splash.c:1578
+msgid ""
+"\n"
+"Warning: unable to open splash picture\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:1562
+#, fuzzy
+msgid "About GpsDrive"
+msgstr "GpsDrive kontrol"
+
+#: src/settings.c:438
+msgid "Setting WP label font"
+msgstr ""
+
+#: src/settings.c:440
+msgid "Setting big display font"
+msgstr ""
+
+#: src/settings.c:507
+msgid "Setting big display color"
+msgstr ""
+
+#: src/settings.c:545
+msgid "Setting track color"
+msgstr ""
+
+#: src/settings.c:587
+msgid "Setting friends label color"
+msgstr ""
+
+#: src/settings.c:668
+msgid ""
+"Don't use more than\n"
+"100 waypoint(way*.txt) files!"
+msgstr ""
+"Benyt ikke mere end\n"
+"100 punkt (way*.txt) filer!"
+
+#: src/settings.c:679
+msgid "Waypoint files to use"
+msgstr "Benyt punkt fil"
+
+#: src/settings.c:704 src/settings.c:709
+msgid "Settings"
+msgstr "Opsæt"
+
+#. misc area
+#: src/settings.c:716
+msgid "Misc settings"
+msgstr "Diverse opsæt"
+
+#: src/settings.c:720
+msgid "Show Shadows"
+msgstr "Vis skygge"
+
+#: src/settings.c:727
+msgid "Etched frames"
+msgstr ""
+
+#: src/settings.c:735
+msgid "Simulation: Follow target"
+msgstr "Simulation: følg mål"
+
+#: src/settings.c:742
+msgid "Maximum CPU load"
+msgstr ""
+
+#: src/settings.c:752
+#, fuzzy
+msgid "Track"
+msgstr "_Vis spor"
+
+#: src/settings.c:767
+msgid "Maps directory"
+msgstr "Kort mappe"
+
+#: src/settings.c:773
+msgid "Automatic"
+msgstr "Automatisk"
+
+#: src/settings.c:779
+msgid "On"
+msgstr "Tændt"
+
+#: src/settings.c:784
+msgid "Off"
+msgstr "Slukket"
+
+#. gtk_table_attach_defaults (GTK_TABLE (misctable), label2, 0, 2, 3, 4);
+#. gtk_table_attach_defaults (GTK_TABLE (misctable), mapdirbt, 0, 2, 4, 5);
+#. GPS settings area
+#: src/settings.c:808
+msgid "GPS settings"
+msgstr "GPS opsæt"
+
+#. gtk_container_add (GTK_CONTAINER (f4), gpstable);
+#: src/settings.c:822
+msgid "Test for GARMIN"
+msgstr "Test af GARMIN"
+
+#: src/settings.c:833
+msgid "Use DGPS-IP"
+msgstr "Benyt DGPS-IP"
+
+#: src/settings.c:843
+msgid "GPS is Earthmate"
+msgstr "GPS er Earthmate"
+
+#: src/settings.c:853
+msgid "Use serial conn."
+msgstr ""
+
+#: src/settings.c:868
+msgid "Interface"
+msgstr "Interface"
+
+#: src/settings.c:869
+msgid "Baudrate"
+msgstr ""
+
+#. units area
+#: src/settings.c:904
+msgid "Units"
+msgstr "Enheder"
+
+#: src/settings.c:910
+msgid "Miles"
+msgstr "Mil"
+
+#: src/settings.c:915
+msgid "Metric"
+msgstr "Metrisk"
+
+#: src/settings.c:920 src/nautic.c:106
+msgid "Nautic"
+msgstr "Nautisk"
+
+#: src/settings.c:930
+msgid "Decimal position"
+msgstr "Decimal position"
+
+#. gtk_box_pack_start (GTK_BOX (v2), miles, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), metric, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), nautic, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), minsecbt, TRUE, FALSE, 2 * PADDING);
+#.
+#. default download server
+#: src/settings.c:948
+msgid "Default map server"
+msgstr "Standard kort server"
+
+#. Night light mode
+#: src/settings.c:981
+msgid "Night light mode"
+msgstr "Nat mode"
+
+#.  gtk_table_attach_defaults (GTK_TABLE (table), f5, 0, 2, 2, 3);
+#. Sound settings
+#: src/settings.c:999
+#, fuzzy
+msgid "Speech output settings"
+msgstr "Aeronautisk opsæt"
+
+#.
+#. set following sounds
+#. sound_direction ... say direction to target
+#. sound_distance  ... say distance to target
+#. sound_speed     ... say your current speed
+#. sound_gps       ... say GPS status
+#.
+#.
+#: src/settings.c:1011
+msgid "Direction"
+msgstr ""
+
+#: src/settings.c:1032
+#, fuzzy
+msgid "GPS Status"
+msgstr "Status"
+
+#: src/settings.c:1046
+msgid "Switch on for speech output of the direction to the target"
+msgstr ""
+
+#: src/settings.c:1051
+msgid "Switch on for speech output of the distance to the target"
+msgstr ""
+
+#: src/settings.c:1056
+msgid "Switch on for speech output of your current speed"
+msgstr ""
+
+#: src/settings.c:1061
+msgid "Switch on for speech output of the status of your GPS signal"
+msgstr ""
+
+#. Font settings
+#: src/settings.c:1066
+#, fuzzy
+msgid "Font and color settings"
+msgstr "GPS opsæt"
+
+#. gtk_box_pack_start (GTK_BOX (h1), f5, TRUE, FALSE, 2 * PADDING);
+#: src/settings.c:1071
+msgid "WP Label"
+msgstr ""
+
+#: src/settings.c:1072
+msgid "Big display"
+msgstr ""
+
+#: src/settings.c:1073
+msgid "Display color"
+msgstr ""
+
+#: src/settings.c:1101
+msgid "Switch units to statute miles"
+msgstr "Skift enhed til miles"
+
+#: src/settings.c:1103
+msgid "Switch units to nautical miles"
+msgstr "Skift enhed til natiske miles"
+
+#: src/settings.c:1105
+msgid "Switch units to metric system (Kilometers)"
+msgstr "Skift enhed til metrisk (kilometer)"
+
+#: src/settings.c:1110
+msgid ""
+"If selected display latitude and longitude in decimal degrees, otherwise in "
+"degree, minutes and seconds notation"
+msgstr ""
+"Hvis valg, så vis bredde og længdefra i grader. Ellers som grader, minutter "
+"og sekunder"
+
+#: src/settings.c:1115
+#, fuzzy
+msgid ""
+"Set the german expedia server(expedia.de) as default download server. Use "
+"this if you are in Europe"
+msgstr "Expedia som kort server"
+
+#: src/settings.c:1119
+msgid "Set Expedia as default download server"
+msgstr "Expedia som kort server"
+
+#: src/settings.c:1122
+msgid "Switches shadows on map on or off"
+msgstr "Skift mellem skygger på kort"
+
+#: src/settings.c:1126
+msgid "Switches between different type of frame ornaments"
+msgstr ""
+
+#: src/settings.c:1131
+#, c-format
+msgid ""
+"Select the approx. maximum CPU load, use 20-30% on notebooks while on "
+"battery to save battery power. This effects the refresh rate of the map "
+"screen"
+msgstr ""
+
+#: src/settings.c:1136
+msgid "If activated, pointer moves to target in simulation mode"
+msgstr "Hvis aktiveret, vil viser bevæge sig mod mål"
+
+#: src/settings.c:1140
+msgid "Set here the color of the drawn track"
+msgstr ""
+
+#: src/settings.c:1144
+msgid ""
+"Path to your map files. In the specified directory also the index file "
+"map_koord.txt must be present."
+msgstr ""
+"Sti til kort filer. Samme sti skal pege på map_koord.txt, som skal eksistere."
+
+#: src/settings.c:1149
+msgid ""
+"If selected, gpsdrive try to use GARMIN mode if possible. Unselect if you "
+"only have a NMEA device."
+msgstr ""
+"Hvis valgt vil gpsdrive forsøge at benytte GARMIN mode. Fjern markering hvis "
+"du kun har en NDMA enhed."
+
+#: src/settings.c:1154
+msgid ""
+"Set here the baud rate of your GPS device, NMEA devices usually have a speed "
+"of 4800 baud"
+msgstr ""
+
+#: src/settings.c:1159
+msgid ""
+"If selected, gpsdrive try to use differential GPS over IP. You must have an "
+"internet connection and a DGPS capable GPS receiver. Works only in NMEA mode!"
+msgstr ""
+"Hvis valgt vil gpsdrive forsøge at benytte differential GPS via IP. Du skal "
+"have eninternet forbindelse og en DPGS GPS modtager. Virker kun i NMEA mode!"
+
+#: src/settings.c:1164
+msgid ""
+"Select this if you have a DeLorme Earthmate GPS receiver. The StartGPSD "
+"button will provide gpsd with the needed additional parameters"
+msgstr ""
+"Vælg dette hvis du har en DeLorme Earthmate GPS modtager. StartGPSD knappen "
+"vil give gpsd de nødvendige parametra"
+
+#: src/settings.c:1169
+msgid ""
+"Select this if you want to use of the direct serial connection. If disabled, "
+"you can use the receiver only through gpsd. On the other hand, the direct "
+"serial connection needs no gpsd running and detects the working receiver on "
+"startup"
+msgstr ""
+
+#: src/settings.c:1174
+msgid "Specify the serial interface where the GPS is connected"
+msgstr "Angiv en serial enhed som GPS er tilkoblet"
+
+#: src/settings.c:1179
+msgid ""
+"Switches automagically to night mode if it is dark outside. Press 'N' key to "
+"turn off nightmode."
+msgstr ""
+"Slår automatisk nat mode til hvis det er mørkt. Tast 'N' for at slå nat mode "
+"fra."
+
+#: src/settings.c:1183
+msgid "Switches night mode on. Press 'N' key to turn off nightmode."
+msgstr "Slår nat mode til. Tast 'N' for at slå nat mode fra."
+
+#: src/settings.c:1186
+msgid "Switches night mode off"
+msgstr "Slår nat mode fra"
+
+#: src/settings.c:1190
+#, fuzzy
+msgid "Here you can set the font for the waypoint labels"
+msgstr "Slet et punkt fra listen"
+
+#: src/settings.c:1195
+msgid "Here you can set the font for the big display for Speed and Distance"
+msgstr ""
+
+#: src/settings.c:1199
+#, fuzzy
+msgid ""
+"Here you can set the color for the big display for speed, distance and "
+"altitude"
+msgstr "Slet et punkt fra listen"
+
+#: src/settings.c:1377
+msgid "Geo information"
+msgstr "Geo information"
+
+#: src/settings.c:1379
+msgid "Geo info"
+msgstr "Geo info"
+
+#: src/settings.c:1390
+msgid "Sunrise"
+msgstr "Solopgang"
+
+#: src/settings.c:1392
+msgid "Sunset"
+msgstr "Solnedgang"
+
+#: src/settings.c:1395
+msgid "Standard"
+msgstr "Standard"
+
+#: src/settings.c:1397
+msgid "Transit"
+msgstr "Transit"
+
+#: src/settings.c:1399
+msgid "GPS-Time"
+msgstr "GPS tid"
+
+#: src/settings.c:1401
+msgid "Astro."
+msgstr "Astro."
+
+#: src/settings.c:1403
+msgid "Naut."
+msgstr "Naut."
+
+#: src/settings.c:1405
+msgid "Civil"
+msgstr "Civil"
+
+#: src/settings.c:1407
+msgid "Timezone"
+msgstr "Tidszone"
+
+#: src/settings.c:1409
+msgid "Store TZ"
+msgstr ""
+
+#: src/settings.c:1419
+msgid ""
+"If selected, the timezone is stored, otherwise your actual timezone will "
+"automatically used"
+msgstr ""
+
+#: src/settings.c:1453
+msgid "Night"
+msgstr "Nat"
+
+#: src/settings.c:1455
+msgid "Day"
+msgstr "Dag"
+
+#: src/settings.c:1592 src/settings.c:1594 src/settings.c:1597
+msgid "Unit:"
+msgstr "Enhed:"
+
+#: src/settings.c:1592
+msgid "miles"
+msgstr "mil"
+
+#: src/settings.c:1595
+msgid "nautic miles/knots"
+msgstr "nautiske mil/knob"
+
+#: src/settings.c:1597
+msgid "kilometers"
+msgstr "kilometer"
+
+#: src/settings.c:1612
+msgid "Trip information"
+msgstr "Rejse information"
+
+#: src/settings.c:1614
+msgid "Trip info"
+msgstr "Rejse info."
+
+#: src/settings.c:1628
+msgid "Odometer"
+msgstr "Højdemeter"
+
+#: src/settings.c:1630
+msgid "Total time"
+msgstr "Total tid"
+
+#: src/settings.c:1632
+msgid "Av. speed"
+msgstr "Gen. hast."
+
+#: src/settings.c:1634
+msgid "Max. speed"
+msgstr "Max. hast."
+
+#: src/settings.c:1658
+msgid "Reset"
+msgstr ""
+
+#: src/settings.c:1663
+msgid "Resets the trip values to zero"
+msgstr ""
+
+#: src/settings.c:1732
+msgid "You should change your name in the first field!"
+msgstr ""
+
+#: src/settings.c:1918
+#, fuzzy
+msgid "Show position newer as"
+msgstr "Vis punkter på kort"
+
+#: src/settings.c:1920
+#, fuzzy
+msgid "Friends server setup"
+msgstr ""
+"\n"
+"kismet server fundet\n"
+
+#: src/settings.c:1921
+#, fuzzy
+msgid "Friends"
+msgstr "Afslut"
+
+#: src/settings.c:1933
+#, fuzzy
+msgid "Days"
+msgstr "Dag"
+
+#: src/settings.c:1934
+msgid "Hours"
+msgstr ""
+
+#: src/settings.c:1935
+#, fuzzy
+msgid "Minutes"
+msgstr "Mil"
+
+#: src/settings.c:1941
+msgid "Your name"
+msgstr ""
+
+#: src/settings.c:1946
+msgid ""
+"Set here your name which should be shown near your vehicle. You may use "
+"spaces here!"
+msgstr ""
+
+#: src/settings.c:1958
+msgid "Server name"
+msgstr ""
+
+#: src/settings.c:1963
+msgid ""
+"Set here the full qualified host name (i.e. www.gpsdrive.cc) of your friends "
+"server, then you have to press the \"Lookup\" button!"
+msgstr ""
+
+#: src/settings.c:1972
+msgid "Lookup"
+msgstr ""
+
+#: src/settings.c:1980
+msgid ""
+"You have to press the \"Lookup\" button to resolve the friends server name!"
+msgstr ""
+
+#: src/settings.c:1991
+msgid "Set here the color of the label displayed at friends position"
+msgstr ""
+
+#: src/settings.c:1997
+#, fuzzy
+msgid "Friends server IP"
+msgstr ""
+"\n"
+"kismet server fundet\n"
+
+#: src/settings.c:2002
+msgid ""
+"Set here the IP adress (i.e. 127.0.0.1) if you don't set the hostname above"
+msgstr ""
+
+#: src/settings.c:2007 src/settings.c:2012 src/settings.c:2016
+msgid ""
+"Set here the time limit in which the friends position is shown. Older "
+"positions are not shown."
+msgstr ""
+
+#: src/settings.c:2028
+#, fuzzy
+msgid "Use friends server"
+msgstr ""
+"\n"
+"kismet server fundet\n"
+
+#: src/settings.c:2036
+msgid ""
+"Enable/disable use of friends server. You must enter a Username, don't use "
+"the default name!"
+msgstr ""
+
+#: src/settings.c:2039
+msgid ""
+"If you enable the friendsserver mode,\n"
+"<span color=\"red\">everyone</span> using the same server\n"
+"can see your position!"
+msgstr ""
+
+#: src/settings.c:2094
+msgid "SQL selection criterias"
+msgstr "SQL kriterier"
+
+#: src/settings.c:2095
+msgid "SQL"
+msgstr "SQL"
+
+#: src/settings.c:2121
+msgid "Dist. limit[km] "
+msgstr "Afst. grænse(km)"
+
+#: src/settings.c:2126
+msgid "If enabled, show waypoints only within this distance"
+msgstr "Hvis valgt så vis kun punkter indenfor denne afstand"
+
+#: src/settings.c:2142
+msgid "Enable/disable distance selection"
+msgstr "Til/frakobl afstands valg"
+
+#: src/settings.c:2151
+#, fuzzy
+msgid "Show no_ssid "
+msgstr "Vis _punkter"
+
+#: src/settings.c:2162
+msgid ""
+"If enabled, WLANs with no SSID are shown, because this is perhaps useless, "
+"you can disable it here"
+msgstr ""
+
+#: src/settings.c:2168
+msgid "Selection mode"
+msgstr "Markéring"
+
+#: src/settings.c:2170
+msgid "include"
+msgstr "inkludér"
+
+#: src/settings.c:2173
+msgid "exclude"
+msgstr "Ekskludér"
+
+#: src/settings.c:2177
+msgid ""
+"Show only waypoints where the type field contains one of the selected words"
+msgstr "Vis kun punkter hvor type feltet indholder en af de valgte ord"
+
+#: src/settings.c:2181
+msgid ""
+"Show only waypoints where the type field doesn't contain any the selected "
+"words"
+msgstr "Vis kun punkter hvor type feltet ikke indholder hogen af de valgte ord"
+
+#: src/fly.c:149
+msgid "Aeronautical settings"
+msgstr "Aeronautisk opsæt"
+
+#: src/fly.c:151
+msgid "Fly"
+msgstr "Flyvning"
+
+#: src/fly.c:158
+msgid "Plane mode"
+msgstr "Fly mode"
+
+#: src/fly.c:165
+msgid "Use VFR"
+msgstr "Benyt VFR"
+
+#: src/fly.c:171
+msgid "Use IFR"
+msgstr "Benyt IFR"
+
+#: src/fly.c:181
+msgid "max. horizontal deviation "
+msgstr "max. horisontal afvigelse "
+
+#: src/fly.c:183
+msgid "max. vertical deviation "
+msgstr "max. vertikal afvigelse "
+
+#: src/fly.c:198
+msgid "disable vert. deviation warning above 5000ft MSL"
+msgstr "slå vertikal afvigelses advarsel fra over 5000 fod MSL"
+
+#: src/nautic.c:103
+msgid "Nautic settings"
+msgstr "Nautisk opsæt"
+
+#. if (debug)
+#: src/gpssql.c:215
+#, c-format
+msgid ""
+"\n"
+"SQL: connected to %s as %s using %s\n"
+msgstr ""
+"\n"
+"SQL: forbundet til %s som €s via %s\n"
+
+#: src/gpssql.c:278
+#, c-format
+msgid "rows inserted: %d\n"
+msgstr "rækker indsat: %d\n"
+
+#: src/gpssql.c:293
+#, c-format
+msgid "last index: %d\n"
+msgstr "sidste index: %d\n"
+
+#: src/gpssql.c:314
+#, c-format
+msgid "rows deleted: %d\n"
+msgstr "rækker slettet: %d\n"
+
+#: src/gpssql.c:366 src/gpssql.c:372
+#, c-format
+msgid "Loaded user defined icon %s\n"
+msgstr ""
+
+#: src/gpssql.c:455
+#, c-format
+msgid "%d(%d) rows read in %.2f seconds\n"
+msgstr "%d(%d) rækker læst på %.2f sekunder\n"
+
+#: src/friends.c:363
+#, fuzzy
+msgid "unknown"
+msgstr "Ukendt"
+
+#: src/friendsd.c:472
+msgid "server: please don't run me as root\n"
+msgstr ""
+
+#: src/friendsd.c:484
+#, c-format
+msgid ""
+"\n"
+"Usage:\n"
+"   %s -n servername\n"
+"provides a name for your server\n"
+msgstr ""
+
+#: src/gpsnasamap.c:189
+#, c-format
+msgid "could not create output map file %s!\n"
+msgstr ""
+
+#. g_signal_connect (window, "destroy",
+#. G_CALLBACK (gtk_widget_destroyed), &window);
+#: src/gpsnasamap.c:204
+msgid "Creating map..."
+msgstr ""
+
+#: src/gpsnasamap.c:212
+msgid "Creating a temporary map from NASA satellite images"
+msgstr ""
+
+#: src/gpsnasamap.c:219
+#, c-format
+msgid "converting map for latitude: %f and longitude: %f ...\n"
+msgstr ""
+
+#: src/gpsnasamap.c:324
+msgid ""
+"\n"
+"You can permanently add this map file with following line in your\n"
+"map_koord.txt (rename the file!):\n"
+msgstr ""
+
+#: src/gpsserial.c:252
+msgid "waiting for thread to stop\n"
+msgstr ""
+
+#: src/gpsserial.c:275
+#, c-format
+msgid ""
+"\n"
+"error opening %s(%d)\n"
+msgstr ""
+
+#: src/gpsserial.c:278
+#, c-format
+msgid "successfull opened %s\n"
+msgstr ""
+
+#: src/gpsserial.c:284
+msgid "switching WAAS/EGNOS on\n"
+msgstr ""
+
+#: src/gpsserial.c:290
+msgid "switching WAAS/EGNOS off\n"
+msgstr ""
+
+#~ msgid "Set Mapblast as default download server"
+#~ msgstr "Mapblast som kort server"
+
+#~ msgid "Enable?"
+#~ msgstr "Tilkobl?"
+
+#~ msgid "Sat level"
+#~ msgstr "Sat. niveau"
+
+#, fuzzy
+#~ msgid "Simulation"
+#~ msgstr "Simulations mode"
+
+#, fuzzy
+#~ msgid "Sim.mode"
+#~ msgstr "Simulations mode"
+
+#~ msgid "Yes, please start gpsd"
+#~ msgstr "Ja, start gpsd"
+
+#~ msgid "No, start simulation"
+#~ msgstr "Nej, start simulation"
+
+#~ msgid ""
+#~ "Neither gpsd nor GARMIN device detected!\n"
+#~ "Should I start gpsd (NMEA mode) for you?"
+#~ msgstr ""
+#~ "Hverken gpsd eller GARMIN enhed fundet!\n"
+#~ "Skal gpsd (NMEA mode) startes?"
+
+#~ msgid "-n X  Select display name on friends server, X is i.e. Fritz\n"
+#~ msgstr "-n X  Vælg navn på skærm på friends server, X er fx Fritz\n"
+
+#~ msgid "UTC "
+#~ msgstr "UTC "
+
+#, fuzzy
+#~ msgid "Your friendsserver: %s"
+#~ msgstr ""
+#~ "\n"
+#~ "kismet server fundet\n"
+
+#~ msgid "Cancel"
+#~ msgstr "Anullér"
+
+#, fuzzy
+#~ msgid "/Misc. Menu/Maps"
+#~ msgstr "Vælg spor"
+
+#~ msgid "Import"
+#~ msgstr "Import"
+
+#~ msgid "Let you import and calibrate your own map"
+#~ msgstr "Importér og kalibrér egne kort"
+
+#~ msgid ""
+#~ "Left mouse button         : Set position (usefull in simulation mode)\n"
+#~ msgstr ""
+#~ "Venstre musknap          : Vælg position (i fx. simulations modus)\n"
+
+#~ msgid "Right mouse button        : Set target directly on the map\n"
+#~ msgstr "Hæjre musknap            : Vælg mål direkte på kort\n"
+
+#~ msgid "Middle mouse button       : Display position again\n"
+#~ msgstr "Midter musknap           : Vis position igen\n"
+
+#~ msgid "Shift left mouse button   : smaller map\n"
+#~ msgstr "Shift + venstre musknap  : mindre kort\n"
+
+#~ msgid "Shift right mouse button  : larger map\n"
+#~ msgstr "Shift + højre musknap    : større kort\n"
+
+#~ msgid ""
+#~ "Control left mouse button : Set a waypoint (mouse position) on the map\n"
+#~ msgstr "CTRL + venstre muusknap  : Gem mus placering som punkt på kort\n"
+
+#~ msgid ""
+#~ "Control right mouse button: Set a waypoint at current position on the "
+#~ "map\n"
+#~ "\n"
+#~ msgstr ""
+#~ "CTRL + højre musknap     : Gem nuværende position på kort som som punkt\n"
+
+#~ msgid "j    : switch to next waypoint in route mode\n"
+#~ msgstr "j    : hop til næste punkt på ruten\n"
+
+#~ msgid "x    : add waypoint at current position\n"
+#~ msgstr "x    : tilføj nuværende position som punkt\n"
+
+#~ msgid ""
+#~ "y    : add waypoint at mouse cursor position\n"
+#~ "\n"
+#~ msgstr ""
+#~ "y    : tilføj mus position som punkt\n"
+#~ "\n"
+
+#~ msgid ""
+#~ " letter in the button text. Press the underlined key together with the "
+#~ msgstr "bogstav i bundteksten. Tast det understregede bogstav sammen med "
+
+#~ msgid "ALT-key"
+#~ msgstr "ALT"
+
+#~ msgid "."
+#~ msgstr ","
+
+#~ msgid "You can move on the map by selecting the "
+#~ msgstr "Du kan bevæge dig på kortet "
+
+#~ msgid "Position-Mode"
+#~ msgstr "Position mode"
+
+#~ msgid ""
+#~ "Suggestions welcome!\n"
+#~ "\n"
+#~ msgstr ""
+#~ "Forslag velkomne!\n"
+#~ "\n"
+
+#, fuzzy
+#~ msgid "/Operations Menu"
+#~ msgstr "Vælg spor"
+
+#, fuzzy
+#~ msgid "/ Messages"
+#~ msgstr "  Besked   "
+
+#, fuzzy
+#~ msgid "/ Help"
+#~ msgstr "Hjælp"
+
+#~ msgid "Load and display a previous stored track file"
+#~ msgstr "Hent og vis en gemt spor fil"
+
+#~ msgid "Distance to "
+#~ msgstr "Afstand til "
+
+#, fuzzy
+#~ msgid "Sel:"
+#~ msgstr "Valgt:"
+
+#~ msgid "Time"
+#~ msgstr "Tid"
+
+#~ msgid "Friendsicon loaded"
+#~ msgstr "Friends ikon hentet"
+
+#~ msgid "Menu window"
+#~ msgstr "Menu vindue"
+
+#~ msgid "Status window"
+#~ msgstr "Status vindue"
+
+#, fuzzy
+#~ msgid "can't open socket for friendsserver "
+#~ msgstr "kan ikke åbne port "
+
+#~ msgid "Slow CPU"
+#~ msgstr "Langsom CPU"
+
+#~ msgid ""
+#~ "Select, if your CPU is very slow ( < PII MMX/233MHz). This reduces the "
+#~ "framerate to 1 frame/second."
+#~ msgstr ""
+#~ "Vælges hvis CPU er langsom ( < PII MMX/233MHz). Dette reducerer antal "
+#~ "billeder til 1 pr. sekund."
+
+#~ msgid "UTC (GPS)"
+#~ msgstr "UTC tid (GPS)"
+
+#~ msgid "Ok"
+#~ msgstr "OK"
+
+#~ msgid "Delete WP"
+#~ msgstr "Slet punkt"
+
+#~ msgid ""
+#~ "GpsDrive Help\n"
+#~ "\n"
+#~ msgstr "GpsDrive hjælp\n"
+
+#~ msgid ""
+#~ "GPSDRIVE (c) 2001-2003 Fritz Ganter <ganter at ganter.at>\n"
+#~ "\n"
+#~ msgstr ""
+#~ "GPSDRIVE (c) 2001-2003 Fritz Ganter <ganter at ganter.at>\n"
+#~ "\n"
+
+#~ msgid "Website: www.kraftvoll.at/software\n"
+#~ msgstr "Hjemmeside: http://www.kraftvoll.at/software\n"
+
+#~ msgid "+    : Zoom in\n"
+#~ msgstr "+    : Zoom ind\n"
+
+#~ msgid "-    : Zoom out\n"
+#~ msgstr "-    : Zoom ud\n"
+
+#~ msgid "s    : larger map\n"
+#~ msgstr "s    : større kort\n"
+
+#~ msgid "a    : smaller map\n"
+#~ msgstr "a    : mindre kort\n"
+
+#~ msgid "t    : select target\n"
+#~ msgstr "t    : Vælg mål\n"
+
+#~ msgid "d    : download map\n"
+#~ msgstr "d    : Hent kort\n"
+
+#~ msgid "l    : load track\n"
+#~ msgstr "l    : Hent spor\n"
+
+#~ msgid "h    : show help\n"
+#~ msgstr "h    : Vis hjælp\n"
+
+#~ msgid "q    : quit program\n"
+#~ msgstr "q    : Afslut program\n"
+
+#~ msgid "b    : toggle auto best map\n"
+#~ msgstr "b    : Skift auto bedste kort\n"
+
+#~ msgid "w    : toggle show waypoints\n"
+#~ msgstr "w    : Skift visning af punkter\n"
+
+#~ msgid "o    : toggle show tracks\n"
+#~ msgstr "o    : Skift visning af spor\n"
+
+#~ msgid "u    : enter setup menu\n"
+#~ msgstr "u    : Setup menu\n"
+
+#~ msgid "n    : in nightmode: toogles night display on/off\n"
+#~ msgstr "n    : i nat modus: slår nat visning til/fra\n"
+
+#~ msgid "   Ok   "
+#~ msgstr "   OK   "
+
+#~ msgid "Close"
+#~ msgstr "Luk"
+
+#~ msgid "OK"
+#~ msgstr "OK"
+
+#~ msgid "Quit"
+#~ msgstr "Afslut"
+
+#~ msgid "Load track"
+#~ msgstr "Hent spor"
+
+#~ msgid "Setup"
+#~ msgstr "Opsæt"
+
+#~ msgid "not"
+#~ msgstr "knob"
+
+#~ msgid "-------------------------------------------------\n"
+#~ msgstr "-------------------------------------------------\n"
+
+#~ msgid ""
+#~ "*************************************************\n"
+#~ "\n"
+#~ msgstr ""
+#~ "*************************************************\n"
+#~ "\n"
+
+#~ msgid "===================================\n"
+#~ msgstr "===================================\n"
+
+#~ msgid ""
+#~ "GpsDrive Help\n"
+#~ "\n"
+#~ "GPSDRIVE (c) 2001,2002 Fritz Ganter <ganter at ganter.at>\n"
+#~ "\n"
+#~ "-------------------------------------------------\n"
+#~ "Website: www.kraftvoll.at/software\n"
+#~ "Disclaimer: Please do not use for navigation. \n"
+#~ "\n"
+#~ "*************************************************\n"
+#~ "\n"
+#~ "See the manpage for program details\n"
+#~ "\n"
+#~ "Mouse control (clicking on the map):\n"
+#~ "===================================\n"
+#~ "Left mouse button         : Set position (usefull in simulation mode)\n"
+#~ "Right mouse button        : Set target directly on the map\n"
+#~ "Middle mouse button       : Display position again\n"
+#~ "Shift left mouse button   : smaller map\n"
+#~ "Shift right mouse button  : larger map\n"
+#~ "Control left mouse button : Set a waypoint (mouse position) on the map\n"
+#~ "Control right mouse button: Set a waypoint at current position on the "
+#~ "map\n"
+#~ "\n"
+#~ "Short cuts:\n"
+#~ "===================================\n"
+#~ "+                         : Zoom in\n"
+#~ "-                         : Zoom out\n"
+#~ "s                         : larger map\n"
+#~ "a                         : smaller map\n"
+#~ "t                         : select target\n"
+#~ "d                         : download map\n"
+#~ "i                         : import map\n"
+#~ "l                         : load track\n"
+#~ "h                         : show help\n"
+#~ "q                         : quit program\n"
+#~ "b                         : toggle auto best map\n"
+#~ "w                         : toggle show waypoints\n"
+#~ "o                         : toggle show tracks\n"
+#~ "u                         : enter setup menu\n"
+#~ "n                         : in nightmode: toogles night display on/off\n"
+#~ "j                         : switch to next waypoint in route mode\n"
+#~ "p                         : switch to position mode\n"
+#~ "x                         : add waypoint at current position\n"
+#~ "\n"
+#~ "Suggestions welcome!\n"
+#~ "\n"
+#~ "Have a lot of fun!\n"
+#~ "\n"
+#~ msgstr ""
+#~ "GpsDrive hjælp\n"
+#~ "\n"
+#~ "GPSDRIVE (c) 2001,2002 Fritz Ganter <ganter at ganter.at>\n"
+#~ "\n"
+#~ "-------------------------------------------------\n"
+#~ "Web: http://www.kraftvoll.at/software\n"
+#~ "Advarsel: Benyt venligst ikke til navigation. \n"
+#~ "\n"
+#~ "*************************************************\n"
+#~ "\n"
+#~ "Se man side for yderligere hjælp\n"
+#~ "\n"
+#~ "Mus kontrol (klik på kort:\n"
+#~ "===================================\n"
+#~ "Venstre mus tast\t: Angiv position (brugbar i simulations modus)\n"
+#~ "Højre mus tast\t: Angiv mål direkte på kort\n"
+#~ "Midter mus tast\t: Vis position igen\n"
+#~ "Shift + venstre mus tast   : Mindre kort\n"
+#~ "Shift + højre mus tast     : Større kort\n"
+#~ "Control + venstre mus tast : Angiv punkt på kort\n"
+#~ "Control + højre mus tast   : Angiv aktuel position som punkt på kort\n"
+#~ "\n"
+#~ "Genveje:\n"
+#~ "===================================\n"
+#~ "+                         : Zoom ind\n"
+#~ "-                         : Zoom ud\n"
+#~ "s                         : Større kort\n"
+#~ "a                         : Mindre kort\n"
+#~ "t                         : Vælg mål\n"
+#~ "d                         : Hent kort\n"
+#~ "i                         : Importér kort\n"
+#~ "l                         : Hent spor\n"
+#~ "h                         : Vis hjælp\n"
+#~ "q                         : Afslut program\n"
+#~ "b                         : Skift auto bedste kort\n"
+#~ "w                         : Skift vis punkter\n"
+#~ "o                         : Skift vis spor\n"
+#~ "u                         : Opsætning\n"
+#~ "n                         : I nat mode: slår nat visning til/fra\n"
+#~ "j                         : Hop til næste punkt i ruten\n"
+#~ "p                         : Skift til positions mode\n"
+#~ "x                         : Tilføj punkt for nuværende position\n"
+#~ "\n"
+#~ "Nye forslag er velkomne!\n"
+#~ "\n"
+#~ "God fornøjelse!\n"
+#~ "\n"
+
+#~ msgid "No GPS Fix found!"
+#~ msgstr "Intet GPS punkt fundet!"
+
+#~ msgid "Waypoint files"
+#~ msgstr "Punkt filer"
+
+#~ msgid "Nightmode on"
+#~ msgstr "Natmode til"
+
+#~ msgid "Nightmode off"
+#~ msgstr "Nat mode fra"
+
+#~ msgid "Day/Night"
+#~ msgstr "Dag/nat"
+
+#~ msgid "Decimal lat/long display"
+#~ msgstr "Decimal l/b grad visning"
+
+#~ msgid "Astro. dusk"
+#~ msgstr "Astro. solnedgang"
+
+#~ msgid "Naut. dawn"
+#~ msgstr "Naut. solopgang"
+
+#~ msgid "Naut. dusk"
+#~ msgstr "Naut. solnedgang"
+
+#~ msgid "Civil dawn"
+#~ msgstr "Civil solopgang"
+
+#~ msgid "I'm sitting in a plane"
+#~ msgstr "Jeg sidder i et fly"
+
+#~ msgid "GpsDrive Menu"
+#~ msgstr "GpsDrive Menu"
+
+#~ msgid "GpsDrive Status"
+#~ msgstr "GpsDrive status"
+
+#~ msgid "GpsDrive Settings"
+#~ msgstr "GpsDrive opsæt"
+
+#~ msgid "Starting point"
+#~ msgstr "Start punkt"
+
+#~ msgid "Daheim"
+#~ msgstr "Hjemme"
+
+#~ msgid "Select waypoints for a route"
+#~ msgstr "Vis punkter for en rute"
+
+#~ msgid ""
+#~ "Wrong format in line %d\n"
+#~ "in your ~/.gpsdrive/way.txt file,\n"
+#~ "Format must be:\n"
+#~ "LABEL xxx.xxx yyy.yyy\n"
+#~ "where xxx.xxx is the is the latitude \n"
+#~ "and yyy.yyy is the longitude\n"
+#~ " of your waypoints.\n"
+#~ "Be sure to have a dot\n"
+#~ " for the decimal point!\n"
+#~ "\n"
+#~ "No waypoints loaded!"
+#~ msgstr ""
+#~ "Forkert format på linie %d\n"
+#~ "i din ~/.gpsdrive/way.txt fil.\n"
+#~ "Formatet skal være:\n"
+#~ "TEKST xxx.xxx yyy.yyy\n"
+#~ "hvor xxx.xxx er breddegraden \n"
+#~ "og yyy.yyy er længdegraden\n"
+#~ " for dine punkter.\n"
+#~ "Vær sikker på at have et punktum\n"
+#~ " som decimalpunktum!\n"
+#~ "\n"
+#~ "Ingen punkter hentet!"
+
+#~ msgid "---km"
+#~ msgstr "---km"
+
+#~ msgid "---km/h"
+#~ msgstr "---km/t"
+
+#~ msgid "--x"
+#~ msgstr "--x"
+
+#~ msgid "Zoom"
+#~ msgstr "Zoom"
+
+#~ msgid ""
+#~ "-t    serial device for GARMIN transfer mode only!\n"
+#~ "      Default is /dev/gps\n"
+#~ msgstr ""
+#~ "-t    serial enhed for GARMIN overførsel!\n"
+#~ "      Standard er /dev/gps\n"
+
+#~ msgid ""
+#~ "Please create an entry:\n"
+#~ "\n"
+#~ "DEFAULT xxx yyy\n"
+#~ "\n"
+#~ "in your ~/.gpsdrive/way.txt file,\n"
+#~ " where xxx is the latitude \n"
+#~ "and yyy is the longitude\n"
+#~ " of your startpoint. Be sure to have a map\n"
+#~ " for these coordinates!"
+#~ msgstr ""
+#~ "Opret en linie:\n"
+#~ "\n"
+#~ "DEFAULT xxx yyy\n"
+#~ "\n"
+#~ "i din ~/.gpsdrive/way.txt fil,\n"
+#~ " hvor xxx er breddegraden \n"
+#~ "og yyy længdegraden\n"
+#~ " på dit udgangspunt. Vær sikker på at have et kort\n"
+#~ " for disse koordinater!"

Added: packages/gpsdrive/branches/etch/po/de.gmo
===================================================================
(Binary files differ)


Property changes on: packages/gpsdrive/branches/etch/po/de.gmo
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: packages/gpsdrive/branches/etch/po/de.po
===================================================================
--- packages/gpsdrive/branches/etch/po/de.po	                        (rev 0)
+++ packages/gpsdrive/branches/etch/po/de.po	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,2673 @@
+# translation of de.po to german
+# translation of de.po to Deutsch
+# Copyright (C) 2003,2004 Free Software Foundation, Inc.
+# Fritz Ganter <ganter at ganter.at>, 2003,2004
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: de\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-03-03 21:47+0100\n"
+"PO-Revision-Date: 2004-03-02 02:51+0100\n"
+"Last-Translator: Fritz Ganter <ganter at ganter.at>\n"
+"Language-Team: Deutsch <de at li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.0.1\n"
+
+#: src/gpsdrive.c:2179
+msgid "/_Misc. Menu"
+msgstr "/_Diverses"
+
+#: src/gpsdrive.c:2180
+msgid "/_Misc. Menu/Maps"
+msgstr "/_Diverses/Karten"
+
+#: src/gpsdrive.c:2181
+msgid "/_Misc. Menu/Maps/_Import map"
+msgstr "/_Diverses/Karten/_Kartenimport"
+
+#: src/gpsdrive.c:2185
+msgid "/_Misc. Menu/Maps/_Map Manager"
+msgstr "/_Diverses/Karten/Karten _Manager"
+
+#: src/gpsdrive.c:2187
+msgid "/_Misc. Menu/_Waypoint Manager"
+msgstr "/_Diverses/_Wegpunkt Manager"
+
+#: src/gpsdrive.c:2189
+msgid "/_Misc. Menu/_Load track file"
+msgstr "/_Diverses/Spurdatei _laden"
+
+#: src/gpsdrive.c:2193
+msgid "/_Misc. Menu/Messages"
+msgstr "/_Diverses/Mitteilungen"
+
+#: src/gpsdrive.c:2194
+msgid "/_Misc. Menu/Messages/Send message to mobile target"
+msgstr "/_Diverses/Mitteilungen/Mitteilung an mobiles Ziel senden"
+
+#: src/gpsdrive.c:2199
+msgid "/_Misc. Menu/Help"
+msgstr "/_Diverses/Hilfe"
+
+#: src/gpsdrive.c:2200
+msgid "/_Misc. Menu/Help/About"
+msgstr "/_Diverses/Hilfe/Ãœber"
+
+#: src/gpsdrive.c:2202
+msgid "/_Misc. Menu/Help/Topics"
+msgstr "/_Diverses/Hilfe/Inhalt"
+
+#: src/gpsdrive.c:2271
+msgid "  Message  "
+msgstr "  Meldung  "
+
+#: src/gpsdrive.c:2315 src/gpsdrive.c:12145
+msgid "Stop GPSD"
+msgstr "Stoppe GPSD"
+
+#: src/gpsdrive.c:2317 src/gpsdrive.c:12147
+msgid "Stop GPSD and switch to simulation mode"
+msgstr "Stoppe GPSD und schalte in den Simulationsmodus"
+
+#: src/gpsdrive.c:2339 src/gpsdrive.c:11261
+msgid "Start GPSD"
+msgstr "Starte GPSD"
+
+#: src/gpsdrive.c:2341 src/gpsdrive.c:12153
+msgid "Starts GPSD for NMEA mode"
+msgstr "Startet GPSD für den NMEA Modus"
+
+#. displays zoom factor of map
+#: src/gpsdrive.c:2354 src/gpsdrive.c:2355 src/gpsdrive.c:2356
+#: src/gpsdrive.c:6264 src/gpsdrive.c:6273 src/gpsdrive.c:11484
+#: src/gpsdrive.c:11491 src/gpsdrive.c:11498 src/gpsdrive.c:11555
+#: src/gpsdrive.c:11560 src/gpsdrive.c:11566 src/gpsdrive.c:11602
+#: src/gpsdrive.c:11609 src/settings.c:1425 src/settings.c:1434
+#: src/settings.c:1443 src/settings.c:1468 src/settings.c:1478
+#: src/settings.c:1487 src/settings.c:1498 src/settings.c:1507
+#: src/settings.c:1517
+msgid "n/a"
+msgstr "n/a"
+
+#: src/gpsdrive.c:2366 src/gpsdrive.c:10245
+msgid ""
+"\n"
+"no garmin support compiled in\n"
+msgstr ""
+"\n"
+"kein Garmin Protokoll support einkompiliert\n"
+
+#: src/gpsdrive.c:2387 src/gpsdrive.c:3136
+msgid "Simulation mode"
+msgstr "Simulator Modus"
+
+#: src/gpsdrive.c:2409
+msgid "got RMC data, using it\n"
+msgstr "erhielt RMC Daten, verwende diese\n"
+
+#: src/gpsdrive.c:2498 src/gpsdrive.c:11936
+msgid "Map"
+msgstr "Karte"
+
+#. if (debug)
+#: src/gpsdrive.c:2661
+msgid "got no RMC data, using GGA data\n"
+msgstr "erhielt keine RMC Daten, verwende GGA Daten\n"
+
+#: src/gpsdrive.c:2912
+msgid "Timeout getting data from GPS-Receiver!"
+msgstr "Zeitüberschreitung beim Lesen vom GPS Empfänger!"
+
+#: src/gpsdrive.c:2959 src/gpsdrive.c:3008 src/gpsdrive.c:3113
+#: src/gpsdrive.c:3199 src/gpsdrive.c:3324
+msgid "Press middle mouse button for navigation"
+msgstr "Mittlere Maustaste für Navigation drücken"
+
+#: src/gpsdrive.c:2963
+#, c-format
+msgid "Direct serial connection to %s"
+msgstr "Direkte serielle Verbindung mit %s"
+
+#: src/gpsdrive.c:3013 src/gpsdrive.c:3045 src/gpsdrive.c:3205
+#: src/gpsdrive.c:3330
+msgid "Not enough satellites in view!"
+msgstr "Nicht genug Satelliten in Sicht!"
+
+#: src/gpsdrive.c:3117
+msgid "GARMIN Mode"
+msgstr "GARMIN Betrieb"
+
+#: src/gpsdrive.c:3134
+msgid "No GPS used"
+msgstr "Kein GPS verwendet"
+
+#: src/gpsdrive.c:3138
+msgid "Press middle mouse button for sim mode"
+msgstr "Mittlere Maustaste für Simulation drücken"
+
+#: src/gpsdrive.c:3477
+#, c-format
+msgid "Distance to HomeBase: %.1fkm, max. allowed: %.1fkm\n"
+msgstr "Entfernung zu HomeBase: %.1fkm, max. erlaubt: %.1fkm\n"
+
+#: src/gpsdrive.c:3554 src/gpsdrive.c:3784 src/gpsdrive.c:6665
+#: src/gpsdrive.c:8534 src/gpsdrive.c:9000
+msgid "To"
+msgstr "Nach"
+
+#: src/gpsdrive.c:3866
+msgid "Error in line "
+msgstr "Fehler in Zeile "
+
+#: src/gpsdrive.c:3868
+msgid ""
+"I have found filenames in map_koord.txt which are\n"
+"not map_* or top_* files. Please rename them and change the entries in\n"
+"map_koord.txt.  Use map_* for street maps and top_* for topographical\n"
+"maps.  Otherwise, the maps will not be displayed!"
+msgstr ""
+"Ich fand Dateinamen in Ihrer\n"
+"map_koord.txt Datei,\n"
+"welche keine map_* bzw. top_* \n"
+"Dateien sind! Bitte nennen Sie diese um\n"
+"und ändern Sie die Einträge in der map_koord.txt\n"
+"Datei, sonst werden diese Karten nicht angezeigt!\n"
+"\n"
+"Verwenden Sie map_* für Strassenkarten und\n"
+"top_* für topografische Karten."
+
+#: src/gpsdrive.c:4229
+msgid "Auto"
+msgstr "Auto"
+
+#: src/gpsdrive.c:4440
+msgid "Warning!"
+msgstr "Achtung!"
+
+#: src/gpsdrive.c:4441
+msgid "You should not start GpsDrive as user root!!!"
+msgstr "Sie sollten GpsDrive nicht als root starten!!!"
+
+#: src/gpsdrive.c:4756 src/gpsdrive.c:8145 src/gpsdrive.c:8154
+#: src/gpsdrive.c:11661 src/gpsdrive.c:11670
+msgid "mi/h"
+msgstr "mi/h"
+
+#: src/gpsdrive.c:4758 src/gpsdrive.c:8147 src/gpsdrive.c:8156
+#: src/gpsdrive.c:11663 src/gpsdrive.c:11672
+msgid "knots"
+msgstr "Knoten"
+
+#: src/gpsdrive.c:4760 src/gpsdrive.c:8149 src/gpsdrive.c:8158
+#: src/gpsdrive.c:11665 src/gpsdrive.c:11674
+msgid "km/h"
+msgstr "km/h"
+
+#: src/gpsdrive.c:5088
+msgid ""
+"\n"
+"Warning: unable to load gpsdriveanim.gif!\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+"\n"
+"Warnung: konnte gpsdriveanim.gif nicht laden!\n"
+"Bitte installieren sie das Programm als root mit:\n"
+"make install\n"
+"\n"
+
+#. This string means North,East,South,West -- please translate the letters
+#: src/gpsdrive.c:5896
+msgid "NESW"
+msgstr "NOSW"
+
+#: src/gpsdrive.c:6064
+msgid "No map available for this position!"
+msgstr "Keine Karte für diese Position verfügbar!"
+
+#: src/gpsdrive.c:6258
+msgid "unused"
+msgstr "nicht verw."
+
+#: src/gpsdrive.c:6362
+msgid "can't open NMEA output file"
+msgstr "Kann NMEA Ausgabedatei nicht öffnen"
+
+#: src/gpsdrive.c:6473
+msgid " Mapfile could not be loaded:"
+msgstr " Die Kartendatei konnte nicht geladen werden:"
+
+#: src/gpsdrive.c:6517
+msgid "Map found!"
+msgstr "Karte gefunden!"
+
+#: src/gpsdrive.c:6552
+msgid " Friendsicon could not be loaded:"
+msgstr "Friendsicon konnte nicht geladen werden:"
+
+#: src/gpsdrive.c:6555
+msgid ""
+"\n"
+"Warning: unable to load friendsicon!\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+"\n"
+"Warnung: konnte friendsicon nicht laden!\n"
+"Bitte installieren sie das Programm als root mit:\n"
+"make install\n"
+"\n"
+
+#: src/gpsdrive.c:6843
+msgid "Select coordinates and scale"
+msgstr "Wählen Sie Koordinaten und Maßstab aus"
+
+#: src/gpsdrive.c:6846
+msgid "Download map"
+msgstr "Karte downloaden"
+
+#: src/gpsdrive.c:6872 src/gpsdrive.c:7911 src/gpsdrive.c:9209
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/gpsdrive.c:11792
+msgid "Latitude"
+msgstr "Breite"
+
+#: src/gpsdrive.c:6874 src/gpsdrive.c:7913 src/gpsdrive.c:9203
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/gpsdrive.c:11793
+msgid "Longitude"
+msgstr "Länge"
+
+#: src/gpsdrive.c:6876
+msgid "Map covers"
+msgstr "Karte umfasst"
+
+#: src/gpsdrive.c:6880
+msgid "Scale"
+msgstr "Maßstab"
+
+#: src/gpsdrive.c:6882
+msgid "Map file name"
+msgstr "Kartendateiname"
+
+#: src/gpsdrive.c:6922 src/settings.c:958
+msgid "Expedia Germany"
+msgstr "Expedia Deutschland"
+
+#: src/gpsdrive.c:6928 src/settings.c:964
+msgid "Expedia USA"
+msgstr "Expedia USA"
+
+#: src/gpsdrive.c:6934
+msgid "TopoZone(US Only)"
+msgstr "TopoZone(nur USA)"
+
+#: src/gpsdrive.c:6943
+msgid ""
+"If selected, you download the map from the german expedia server (expedia.de)"
+msgstr ""
+"Wenn ausgewählt, laden sie die Karten vom deutschen Expedia Server (expedia."
+"de)"
+
+#: src/gpsdrive.c:6947
+msgid ""
+"If selected, you download the map from the U.S. expedia server (expedia.com)"
+msgstr ""
+"Falls ausgewählt, laden sie die Karten vom US Expedia Server (expedia.com)"
+
+#: src/gpsdrive.c:6951
+msgid ""
+"If selected, you download the map from the TopoZone Server (US maps only)"
+msgstr ""
+"Falls ausgewählt, laden sie die Karte vom TopoZone Server (nur USA Karten "
+"verfügbar!)"
+
+#: src/gpsdrive.c:6977 src/gpsdrive.c:6981
+msgid ""
+"You can also select the position\n"
+"with a mouse click on the map."
+msgstr ""
+"Sie können die Position auf der Karte\n"
+"auch durch einen Mausklick auswählen."
+
+#: src/gpsdrive.c:6983
+msgid "Using Proxy and port:"
+msgstr "Verwende Proxy und Port:"
+
+#: src/gpsdrive.c:7280 src/gpsdrive.c:7397
+msgid "can't open socket for port 80"
+msgstr "Kann Socket für Port 80 nicht öffnen"
+
+#: src/gpsdrive.c:7282 src/gpsdrive.c:7285 src/gpsdrive.c:7309
+#: src/gpsdrive.c:7312 src/gpsdrive.c:7327 src/gpsdrive.c:7330
+#: src/gpsdrive.c:7399 src/gpsdrive.c:7404 src/gpsdrive.c:7407
+#: src/gpsdrive.c:7411 src/gpsdrive.c:7446 src/gpsdrive.c:7451
+#: src/gpsdrive.c:7454 src/gpsdrive.c:7458 src/gpsdrive.c:7473
+#: src/gpsdrive.c:7478 src/gpsdrive.c:7481 src/gpsdrive.c:7485
+#, c-format
+msgid "Connecting to %s FAILED!"
+msgstr "Verbindung mit %s FEHLGESCHLAGEN!"
+
+#: src/gpsdrive.c:7307 src/gpsdrive.c:7444
+msgid "Can't resolve webserver address"
+msgstr "Kann Webserveradresse nicht auflösen"
+
+#: src/gpsdrive.c:7325 src/gpsdrive.c:7471
+msgid "unable to connect to Website"
+msgstr "kann nicht mit Webseite verbinden"
+
+#: src/gpsdrive.c:7353 src/gpsdrive.c:7542
+msgid "read from Webserver"
+msgstr "lesen vom Webserver"
+
+#: src/gpsdrive.c:7380 src/gpsdrive.c:7384 src/gpsdrive.c:7386
+#: src/gpsdrive.c:7389
+#, c-format
+msgid "Connecting to %s"
+msgstr "Verbinde mit %s"
+
+#: src/gpsdrive.c:7499 src/gpsdrive.c:7503 src/gpsdrive.c:7505
+#: src/gpsdrive.c:7508
+#, c-format
+msgid "Now connected to %s"
+msgstr "Verbunden mit %s"
+
+#: src/gpsdrive.c:7585
+#, c-format
+msgid "Downloaded %d kBytes"
+msgstr "Bereits geladen %d kBytes"
+
+#: src/gpsdrive.c:7599
+msgid "Download FAILED!"
+msgstr "Download FEHLGESCHLAGEN!"
+
+#: src/gpsdrive.c:7601
+#, c-format
+msgid "Download finished, got %dkB"
+msgstr "Download beendet, %dkB gelesen."
+
+#: src/gpsdrive.c:7772
+msgid "Select a map file"
+msgstr "Wähle Karten Datei"
+
+#: src/gpsdrive.c:7837
+msgid ""
+"How to calibrate your own maps? First, the map file\n"
+"must be copied into the"
+msgstr ""
+"Wie kann man eigene Karten kalibrieren? Zuerst muss die\n"
+"Kartendatei in das"
+
+#: src/gpsdrive.c:7839
+msgid ""
+"\n"
+"directory as .gif, .jpg or .png file and must have\n"
+"the size 1280x1024. The file names must be\n"
+"map_* for street maps or top_* for topographical maps!\n"
+"Load the file, select coordinates from waypoint list or\n"
+"type them in. Then click on the accept button."
+msgstr ""
+"\n"
+"Verzeichnis als .gif, .jpg oder .png kopiert werden. Die Grösse muss\n"
+"1280x1024 Pixel sein. Die Filenamen müssen map_* für Strassenkarten\n"
+"oder top_* für topografische Karten sein! Laden Sie die Datei, wählen dann "
+"die\n"
+"Koordinaten aus der Wegpunktliste oder geben Sie sie einfach ein.\n"
+"Klicken sie dann auf Akzeptieren."
+
+#: src/gpsdrive.c:7846
+msgid ""
+"Now do the same for your second point and click on the\n"
+"finish button. The map can be used now."
+msgstr ""
+"Machen Sie das selbe für den zweiten Punkt und klicken dann\n"
+"auf den Fertigstellen-Knopf. Die Karte kann dann benutzt werden. "
+
+#: src/gpsdrive.c:7851
+msgid "Import Assistant. Step 1"
+msgstr "Import Druide. Schritt 1"
+
+#: src/gpsdrive.c:7853
+msgid "Import Assistant. Step 2"
+msgstr "Import Druide. Schritt 2"
+
+#: src/gpsdrive.c:7858
+msgid "Accept first point"
+msgstr "Akzeptiere ersten Punkt"
+
+#: src/gpsdrive.c:7860
+msgid "Finish"
+msgstr "Fertigstellen"
+
+#: src/gpsdrive.c:7881
+msgid "Go up"
+msgstr "Nach oben"
+
+#: src/gpsdrive.c:7884
+msgid "Go left"
+msgstr "Nach links"
+
+#: src/gpsdrive.c:7887
+msgid "Go right"
+msgstr "Nach rechts"
+
+#: src/gpsdrive.c:7890
+msgid "Go down"
+msgstr "Nach unten"
+
+#: src/gpsdrive.c:7893
+msgid "Zoom in"
+msgstr "Vergrössern"
+
+#: src/gpsdrive.c:7896
+msgid "Zoom out"
+msgstr "Verkleinern"
+
+#: src/gpsdrive.c:7915
+msgid "Screen X"
+msgstr "Schirm X"
+
+#: src/gpsdrive.c:7917
+msgid "Screen Y"
+msgstr "Schirm Y"
+
+#: src/gpsdrive.c:7919
+msgid "Browse waypoint"
+msgstr "Wähle Wegpunkt"
+
+#: src/gpsdrive.c:7950
+msgid "Browse filename"
+msgstr "Wähle Kartendatei"
+
+#: src/gpsdrive.c:8043
+msgid "GpsDrive Control"
+msgstr "GpsDrive Steuerung"
+
+#: src/gpsdrive.c:8154 src/gpsdrive.c:8156 src/gpsdrive.c:8158
+#: src/gpsdrive.c:11670 src/gpsdrive.c:11672 src/gpsdrive.c:11674
+#: src/settings.c:1025
+msgid "Speed"
+msgstr "Geschwindigkeit"
+
+#: src/gpsdrive.c:8375
+msgid ""
+"\n"
+"distance jump is more then 1000km/h speed, ignoring\n"
+msgstr ""
+"\n"
+"der Entfernungssprung entspricht mehr als 1000km/h Geschwindigkeit, wird "
+"ignoriert\n"
+
+#: src/gpsdrive.c:8597 src/friends.c:348
+msgid "/Misc. Menu/Messages"
+msgstr "/Diverses/Mitteilungen"
+
+#: src/gpsdrive.c:8600
+msgid "Sending message to friends server..."
+msgstr "Sende Mitteilung zum Friendsserver..."
+
+#: src/gpsdrive.c:8673
+msgid "Message for:"
+msgstr "Mitteilung für:"
+
+#: src/gpsdrive.c:8714
+#, c-format
+msgid "Date: %s"
+msgstr "Datum: %s"
+
+#: src/gpsdrive.c:8727
+msgid "Sends your text to to selected computer using the friends server"
+msgstr "Sendet ihren Text über den Friendsserver an den ausgewählten Computer"
+
+#: src/gpsdrive.c:8999
+msgid "SELECTED"
+msgstr "AUSWAHL"
+
+#: src/gpsdrive.c:9172
+msgid "Add waypoint name"
+msgstr "Wegpunkt Bezeichnung hinzufügen"
+
+#: src/gpsdrive.c:9231
+msgid " Waypoint name: "
+msgstr " Wegpunkt Bezeichnung: "
+
+#: src/gpsdrive.c:9244
+msgid " Waypoint type: "
+msgstr " Wegpunkt Typ: "
+
+#: src/gpsdrive.c:9489
+msgid "Name"
+msgstr "Name"
+
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/settings.c:1018
+msgid "Distance"
+msgstr "Entfernung"
+
+#: src/gpsdrive.c:9499
+msgid "Please select message recipient"
+msgstr "Mitteilungsempfänger auswählen"
+
+#: src/gpsdrive.c:9568 src/gpsdrive.c:9715
+msgid "Waypoint"
+msgstr "Wegpunkt"
+
+#: src/gpsdrive.c:9587
+msgid "Select reference point"
+msgstr "Setze Referenzpunkt"
+
+#: src/gpsdrive.c:9591
+msgid "Please select your destination"
+msgstr "Bitte wählen Sie ihr Ziel"
+
+#: src/gpsdrive.c:9620
+msgid "Edit route"
+msgstr "Bearbeite Route"
+
+#: src/gpsdrive.c:9622
+msgid "Create route"
+msgstr "Erzeuge Route"
+
+#: src/gpsdrive.c:9693
+msgid "Create a route using some waypoints from this list"
+msgstr "Erzeugen einer Route aus Einträgen aus der Wegpunktliste"
+
+#: src/gpsdrive.c:9698
+msgid "Delete the selected waypoint from the waypoint list"
+msgstr "Lösche ausgewählten Wegpunkt aus der Wegpunkt Liste"
+
+#: src/gpsdrive.c:9702
+msgid "Jump to the selected waypoint"
+msgstr "Springe zum ausgewählten Wegpunkt"
+
+#: src/gpsdrive.c:9729
+msgid "Define route"
+msgstr "Route festlegen"
+
+#: src/gpsdrive.c:9737
+msgid "Start route"
+msgstr "Starte Route"
+
+#: src/gpsdrive.c:9746
+msgid "Take all WP as route"
+msgstr "Alle WP als Route"
+
+#: src/gpsdrive.c:9751
+msgid "Abort route"
+msgstr "Abbruch Route"
+
+#: src/gpsdrive.c:9795
+msgid ""
+"Click on waypoints list\n"
+"to add waypoints"
+msgstr ""
+"Klicken Sie auf die Wegpunktliste\n"
+"um Wegpunkte hinzuzufügen"
+
+#: src/gpsdrive.c:9797
+msgid ""
+"Click on list item\n"
+"to select next waypoint"
+msgstr ""
+"Klicken Sie auf einen Eintrag\n"
+"um den nächsten Wegpunkt auszuwählen"
+
+#: src/gpsdrive.c:9838
+msgid ""
+"Create a route from all waypoints. Sorted with order in file, not distance."
+msgstr ""
+"Erzeugt eine Route aus allen Wegpunkten, die in der Reihenfolge in der "
+"Datei, nicht nach Entfernung sortiert sind."
+
+#: src/gpsdrive.c:9842
+msgid ""
+"Click here to start your journey. GpsDrive guides you through the waypoints "
+"in this list."
+msgstr ""
+"Klicken Sie hier um die Reise zu starten. GpsDrive führt sie durch alle "
+"Wegpunkte in dieser Liste."
+
+#: src/gpsdrive.c:9845
+msgid "Abort your journey"
+msgstr "Abbruch ihrer Reise"
+
+#: src/gpsdrive.c:9862
+msgid "-v    show version\n"
+msgstr "-v    zeige Version\n"
+
+#: src/gpsdrive.c:9863
+msgid "-h    print this help\n"
+msgstr "-h    zeige diese Hilfe\n"
+
+#: src/gpsdrive.c:9864
+msgid "-d    turn on debug info\n"
+msgstr "-d    gebe debug Info aus\n"
+
+#: src/gpsdrive.c:9865
+msgid "-D    turn on lot of debug info\n"
+msgstr "-D    gebe viel debug Info aus\n"
+
+#: src/gpsdrive.c:9866
+msgid "-e    use Festival-Lite (flite) for speech output\n"
+msgstr "-e    verwende Festival-Lite (flite) für Sprachausgabe\n"
+
+#: src/gpsdrive.c:9867
+msgid "-t    set serial device for GPS i.e. /dev/ttyS1\n"
+msgstr "-t    setze das serielle Gerät für GPS, z.B. /dev/ttyS1\n"
+
+#: src/gpsdrive.c:9868
+msgid "-o    serial device, pty master, or file for NMEA *output*\n"
+msgstr "-o    Serielles Gerät, PTY Master oder Datei für NMEA *Ausgabe*\n"
+
+#: src/gpsdrive.c:9869
+msgid "-f X  Select friends server, X is i.e. www.gpsdrive.cc\n"
+msgstr "-f X  Wählen sie den Friendsserver aus, X ist z.B. www.gpsdrive.cc\n"
+
+#: src/gpsdrive.c:9870
+msgid "-n    Disable use of direct serial connection\n"
+msgstr "-n    Schaltet die direkte serielle Verbindung ab\n"
+
+#: src/gpsdrive.c:9871
+msgid ""
+"-l X  Select language of the voice,\n"
+"      X may be english, spanish or german\n"
+msgstr ""
+"-l X  Auswahl der Sprache für die Sprachausgabe,\n"
+"        X kann english, spanish oder german sein\n"
+
+#: src/gpsdrive.c:9873
+msgid ""
+"-s X  set height of the screen, if autodetection\n"
+"      don't satisfy you, X is i.e. 768,600,480,200\n"
+msgstr ""
+"-s X  Setze Höhe des Bildschirms falls die Erkennung\n"
+"      nicht ihren Wünschen entspricht, X ist z.B. 768,600,480,200\n"
+
+#. ** Mod by Arms
+#: src/gpsdrive.c:9876
+msgid "-r X  set width of the screen, only with -s\n"
+msgstr "-r X  setze Breite des Schirmes, nur mit -s\n"
+
+#: src/gpsdrive.c:9878
+msgid "-1    have only 1 button mouse, for example using touchscreen\n"
+msgstr "-1    habe nur 1 Maustaste, z.B. bei Touchscreen\n"
+
+#: src/gpsdrive.c:9879
+msgid "-a    don't display battery status (i.e. broken APM)\n"
+msgstr "-a    keine Anzeige vom Batteriestatus (z.B. kaputtes APM)\n"
+
+#: src/gpsdrive.c:9881
+msgid "-b X  Servername for NMEA server (if gpsd runs on another host)\n"
+msgstr ""
+"-b X  Servername für NMEA Server (falls gpsd auf einem anderen Host läuft)\n"
+
+#: src/gpsdrive.c:9883
+msgid "-c X  set start position in simulation mode to waypoint name X\n"
+msgstr "-c X  setze die Startposition im Simulationsmodus auf den Wegpunkt X\n"
+
+#: src/gpsdrive.c:9884
+msgid "-x    create separate window for menu\n"
+msgstr "-x    erzeuge eigenes Fenster für das Menü\n"
+
+#: src/gpsdrive.c:9885
+msgid "-p    set settings for PDA (iPAQ, Yopy...)\n"
+msgstr "-p    setzen der PDA-Einstellungen (iPAQ, Yopy...)\n"
+
+#: src/gpsdrive.c:9887
+msgid "-i    ignore NMEA checksum (risky, only for broken GPS receivers\n"
+msgstr ""
+"-i    ignoriere NMEA-Prüfsumme (riskant, nur für kranke GPS-Empfänger)\n"
+
+#: src/gpsdrive.c:9888
+msgid "-q    disable SQL support\n"
+msgstr "-q    SQL Unterstützung abschalten\n"
+
+#: src/gpsdrive.c:9889
+msgid "-F    force display of position even it is invalid\n"
+msgstr "-F    zeige Position an, auch wenn sie ungültig ist\n"
+
+#: src/gpsdrive.c:9890
+msgid "-S    don't show splash screen\n"
+msgstr "-S    zeige das Splash-Bild nicht an\n"
+
+#: src/gpsdrive.c:9891
+msgid "-E    print out data received from direct serial connection\n"
+msgstr "-E    Gibt die Daten die vom GPS erhalten werden aus\n"
+
+#: src/gpsdrive.c:9893
+msgid "-W x  set x to 1 to switch WAAS/EGNOS on, set to 0 to switch off\n"
+msgstr "-W x  setze x auf 1 um WAAS/EGNOS einzuschalten, 0 für aus\n"
+
+#: src/gpsdrive.c:9894
+msgid "-H X  correct altitude, adding this value to altitude\n"
+msgstr "-H X  korrigiert die Höhe, dieser Wert wird zur Höhe addiert\n"
+
+#: src/gpsdrive.c:9895
+msgid ""
+"-z    don't display zoom factor and scale\n"
+"\n"
+msgstr ""
+"-z    zeige Zoomfaktor und Massstab nicht an\n"
+"\n"
+
+#: src/gpsdrive.c:10001
+msgid "Select a track file"
+msgstr "Wählen Sie eine Spur Datei"
+
+#: src/gpsdrive.c:10179 src/gpskismet.c:380
+msgid "can't open socket for port "
+msgstr "Kann Socket für Port nicht öffnen"
+
+#: src/gpsdrive.c:10200
+#, c-format
+msgid ""
+"\n"
+"Cannot connect to %s: unknown host\n"
+msgstr ""
+"\n"
+"Kann nicht auf %s verbinden: unbekannter Rechner\n"
+
+#: src/gpsdrive.c:10221
+msgid "NMEA Mode, Port 2222"
+msgstr "NMEA Betrieb, Port 2222"
+
+#: src/gpsdrive.c:10230
+msgid "NMEA Mode, Port 2947"
+msgstr "NMEA Betrieb, Port 2947"
+
+#: src/gpsdrive.c:10249
+msgid ""
+"\n"
+"Garmin protocol detection disabled!\n"
+msgstr ""
+"\n"
+"Garmin Protokoll Erkennung abgeschaltet!\n"
+
+#: src/gpsdrive.c:10600
+msgid ""
+"\n"
+"libmysqlclient.so not found.\n"
+msgstr ""
+"\n"
+"libmysqlclient.so nicht gefunden.\n"
+
+#: src/gpsdrive.c:10606
+msgid ""
+"\n"
+"MySQL support disabled.\n"
+msgstr ""
+"\n"
+"MySQL support nicht vorhanden.\n"
+
+#: src/gpsdrive.c:10783
+msgid ""
+"\n"
+"You can only choose between english, spanish and german\n"
+"\n"
+msgstr ""
+"\n"
+"Sie können nur zwischen english, spanish und german wählen\n"
+"\n"
+
+#: src/gpsdrive.c:10817 src/settings.c:1730
+msgid "EnterYourName"
+msgstr "IhrName"
+
+#: src/gpsdrive.c:10879
+#, c-format
+msgid ""
+"\n"
+"Using proxy: %s on port %d"
+msgstr ""
+"\n"
+"Verwende proxy: %s auf Port %d"
+
+#: src/gpsdrive.c:10883
+msgid ""
+"\n"
+"Invalid enviroment variable HTTP_PROXY, must be in format: http://proxy."
+"provider.de:3128"
+msgstr ""
+"\n"
+"Ungültige Umgebungsvariable HTTP_PROXY. Sie muss im Format http://proxy."
+"provider.de:3128 sein."
+
+#: src/gpsdrive.c:11073
+msgid "Gpsdrive-2 (c)2001-2004 F.Ganter"
+msgstr "Gpsdrive-2 (c)2001-2004 F.Ganter"
+
+#: src/gpsdrive.c:11081
+msgid "Using speech output"
+msgstr "Verwende Sprachausgabe"
+
+#: src/gpsdrive.c:11115
+msgid "/Misc. Menu/Maps/Map Manager"
+msgstr "/Diverses/Karten/Karten Manager"
+
+#: src/gpsdrive.c:11119
+msgid "/Misc. Menu/Waypoint Manager"
+msgstr "/Diverses/Wegpunkt Manager"
+
+#. download map button
+#: src/gpsdrive.c:11123
+msgid "_Download map"
+msgstr "Karte _downloaden"
+
+#: src/gpsdrive.c:11142
+msgid "M_ute"
+msgstr "St_umm"
+
+#: src/gpsdrive.c:11152
+msgid "Use SQ_L"
+msgstr "Verwende SQ_L"
+
+#: src/gpsdrive.c:11162
+msgid "Show _WP"
+msgstr "_Zeige WP"
+
+#: src/gpsdrive.c:11189
+msgid "HomeBase"
+msgstr "HomeBase"
+
+#: src/gpsdrive.c:11197
+msgid "Pos. _mode"
+msgstr "_Pos. Modus"
+
+#: src/gpsdrive.c:11203
+msgid "Show _Track"
+msgstr "Zeige Spu_r"
+
+#: src/gpsdrive.c:11246
+msgid "_Navigation"
+msgstr "_Navigation"
+
+#: src/gpsdrive.c:11265
+msgid "Auto _best map"
+msgstr "Beste _Karte"
+
+#: src/gpsdrive.c:11275
+msgid "Save track"
+msgstr "Speichere Spur"
+
+#: src/gpsdrive.c:11286
+msgid "Shown map type"
+msgstr "Zeige Kartenart"
+
+#: src/gpsdrive.c:11297
+msgid "Street map"
+msgstr "Strassenkarte"
+
+#: src/gpsdrive.c:11304
+msgid "Topo map"
+msgstr "Topografisch"
+
+#: src/gpsdrive.c:11386
+msgid ""
+"\n"
+"kismet server found\n"
+msgstr ""
+"\n"
+"Kismet server gefunden\n"
+
+#: src/gpsdrive.c:11447 src/gpsdrive.c:11797
+msgid "Bearing"
+msgstr "Richtung"
+
+#: src/gpsdrive.c:11468
+msgid "GPS Info"
+msgstr "GPS Info"
+
+#: src/gpsdrive.c:11519
+msgid "Bat."
+msgstr "Bat."
+
+#: src/gpsdrive.c:11534
+msgid "TC"
+msgstr "TC"
+
+#. displays speed over ground
+#: src/gpsdrive.c:11552 src/gpsdrive.c:11807 src/gpsdrive.c:11809
+#: src/gpsdrive.c:11815 src/gpsdrive.c:11817
+msgid "---"
+msgstr "---"
+
+#: src/gpsdrive.c:11632 src/gpsdrive.c:11639
+msgid "Selected:"
+msgstr "Ausgewählt:"
+
+#: src/gpsdrive.c:11632 src/gpsdrive.c:11639
+msgid "within"
+msgstr "innerhalb"
+
+#. create frames for labels
+#: src/gpsdrive.c:11647
+msgid "Distance to target"
+msgstr "Entfernung zum Ziel"
+
+#. ** Mod by Arms
+#. if (!pdamode)
+#. gtk_box_pack_start (GTK_BOX (hbox2), frame_speed, TRUE, TRUE,
+#. 1 * PADDING);
+#: src/gpsdrive.c:11683
+msgid "Altitude"
+msgstr "Höhe"
+
+#. ** Mod by Arms
+#. if (!pdamode)
+#. gtk_box_pack_start (GTK_BOX (hbox2), frame_altitude, FALSE, TRUE,
+#. 1 * PADDING);
+#: src/gpsdrive.c:11690 src/settings.c:681
+msgid "Waypoints"
+msgstr "Wegpunkte"
+
+#: src/gpsdrive.c:11794
+msgid "Map file"
+msgstr "Kartendatei"
+
+#: src/gpsdrive.c:11795
+msgid "Map scale"
+msgstr "Maßstab"
+
+#: src/gpsdrive.c:11796
+msgid "Heading"
+msgstr "Kurs"
+
+#: src/gpsdrive.c:11798
+msgid "Time at Dest."
+msgstr "Zeit zum Ziel"
+
+#: src/gpsdrive.c:11799
+msgid "Pref. scale"
+msgstr "Wahlm."
+
+#: src/gpsdrive.c:11803
+msgid "000,00000N"
+msgstr "000,00000N"
+
+#: src/gpsdrive.c:11805
+msgid "000,00000E"
+msgstr "000,00000E"
+
+#: src/gpsdrive.c:11811 src/gpsdrive.c:11813
+msgid "0000"
+msgstr "0000"
+
+#. gdk_window_lower((GdkWindow *)menuwin);
+#: src/gpsdrive.c:11886 src/gpsdrive.c:11937
+msgid "Menu"
+msgstr "Menü"
+
+#. gdk_window_lower((GdkWindow *)menuwin2);
+#: src/gpsdrive.c:11895 src/gpsdrive.c:11938
+msgid "Status"
+msgstr "Status"
+
+#: src/gpsdrive.c:12089
+msgid ""
+"Click here to switch betwen satetellite level and satellite position "
+"display. A rotating globe is shown in simulation mode"
+msgstr ""
+"Klicken sie hier um zwischen Satellitenpegel und Satellitenpositionsanzeige "
+"umzuschalten. Ein rotierender Globus zeigt den Simulator Modus an."
+
+#: src/gpsdrive.c:12093
+msgid "Number of used satellites/satellites in view"
+msgstr "Anzahl der verwendeten/sichtbaren Satelliten"
+
+#: src/gpsdrive.c:12096
+msgid "EPE (Estimated Precision Error), if available"
+msgstr ""
+"EPE (Estimated Precision Error), Genauigkeit der Position (falls verfügbar)"
+
+#: src/gpsdrive.c:12100
+msgid ""
+"PDOP (Position Dilution Of Precision). PDOP less than 4 gives the best "
+"accuracy, between 4 and 8 gives acceptable accuracy and greater than 8 gives "
+"unacceptable poor accuracy. "
+msgstr ""
+"PDOP (Position Dilution Of Precision). Ein PDOP kleiner als 4 ergibt die "
+"größte Genauigkeit, zwischen 4 und 8 ist die Genauigkeit akzeptabel, ein "
+"Wert größer als 8 zeigt eine unakzeptable schlechte Genauigkeit an. "
+
+#: src/gpsdrive.c:12105
+msgid ""
+"On top of the compass you see the direction to which you move. The pointer "
+"shows the target direction on the compass."
+msgstr ""
+"Oben am Kompass sehen sie die Richtung, in die sie sich bewegen. Der Zeiger "
+"zeigt in die Zielrichtung am Kompass."
+
+#: src/gpsdrive.c:12108
+msgid "/Misc. Menu"
+msgstr "/Diverses"
+
+#: src/gpsdrive.c:12111
+msgid "Here you find extra functions for maps, tracks and messages"
+msgstr "Hier finden sie extra Funktionen für Karten, Spuren und Mitteilungen"
+
+#: src/gpsdrive.c:12115
+msgid "Download map from Internet"
+msgstr "Karte aus dem Internet downloaden"
+
+#: src/gpsdrive.c:12117
+msgid "Leave the program"
+msgstr "Programm beenden"
+
+#: src/gpsdrive.c:12120
+msgid "Disable output of speech"
+msgstr "Schaltet die Sprachausgabe stumm"
+
+#: src/gpsdrive.c:12123
+msgid "Use SQL server for waypoints"
+msgstr "Verwende den SQL Server für die Wegpunkt-Verwaltung"
+
+#: src/gpsdrive.c:12126
+msgid "Show waypoints on the map"
+msgstr "Zeige Wegpunkte auf der Karte"
+
+#: src/gpsdrive.c:12129
+msgid ""
+"Turn position mode on. You can move on the map with the left mouse button "
+"click. Clicking near the border switches to the proximate map."
+msgstr ""
+"Schaltet Positions Modus ein. Sie können sich mit dem linken Mausknopf auf "
+"der Karte bewegen. Wenn sie am Rand klicken bewegen sie sich zur "
+"benachbarten Karte."
+
+#: src/gpsdrive.c:12132
+msgid "Show tracking on the map"
+msgstr "Zeige Tracking auf der Karte"
+
+#: src/gpsdrive.c:12137
+msgid "Opens the help window"
+msgstr "Öffnet das Hilfe Fenster"
+
+#: src/gpsdrive.c:12140
+msgid "Navigation menu. Enter here your destination."
+msgstr "Navigations Menü. Geben sie hier ihr Ziel ein."
+
+#: src/gpsdrive.c:12156
+msgid "Settings for GpsDrive"
+msgstr "Einstellungen für GpsDrive"
+
+#: src/gpsdrive.c:12158
+msgid "Zoom into the current map"
+msgstr "Momentane Karte vergrössern"
+
+#: src/gpsdrive.c:12160
+msgid "Zooms out off the current map"
+msgstr "Momentane Karte verkleinern"
+
+#: src/gpsdrive.c:12162
+msgid "Select the next more detailed map"
+msgstr "Die nächste mehr detailierte Karte auswählen"
+
+#: src/gpsdrive.c:12164
+msgid "Select the next less detailed map"
+msgstr "Die nächste weniger detailierte Karte auswählen"
+
+#: src/gpsdrive.c:12169
+msgid "Select here a destination from the waypoint list"
+msgstr "Auswahl eines Ziels aus der Wegpunkt Liste"
+
+#: src/gpsdrive.c:12173
+msgid "Select the map scale of avail. maps."
+msgstr "Maßstab aus den vorhandenen Karten auswählen."
+
+#: src/gpsdrive.c:12178
+msgid "Always select the most detailed map available"
+msgstr "Automatisch die meist detailierte Karte auswählen"
+
+#: src/gpsdrive.c:12181
+msgid "Save the track to given filename at program exit"
+msgstr "Speicher Spur in Datei bei Programmende"
+
+#: src/gpsdrive.c:12187
+msgid "Number of waypoints selected from SQL server"
+msgstr "Anzahl der vom SQL-Server ausgewählten Wegpunkte"
+
+#: src/gpsdrive.c:12191
+msgid "Number of selected waypoints, which are in range"
+msgstr "Anzahl der Wegpunkte, die sich im Umkreis befinden"
+
+#: src/gpsdrive.c:12195
+msgid "Range for waypoint selection in kilometers"
+msgstr "Umkreis in Kilometer, in denen die Wegpunkte ausgewählt sind"
+
+#: src/gpsdrive.c:12198
+msgid "This shows the time from your GPS receiver"
+msgstr "Anzeige der vom GPS Empfängers gelieferten Zeit"
+
+#: src/gpsdrive.c:12201
+msgid ""
+"Number of mobile targets within timeframe/total received from friendsserver"
+msgstr ""
+"Anzahl der innerhalb vom Zeitfenster/gesamt vom Friendsserver empfangenen "
+"mobilen Ziele"
+
+#: src/gpsdrive.c:12275
+msgid ""
+"\n"
+"\n"
+"Thank you for using GpsDrive!\n"
+"\n"
+msgstr ""
+"\n"
+"\n"
+"Danke dass sie GpsDrive verwendet haben!\n"
+"\n"
+
+#: src/splash.c:543
+msgid "GpsDrive v"
+msgstr "GpsDrive v"
+
+#: src/splash.c:549
+msgid ""
+"\n"
+"\n"
+"You find new versions on http://www.gpsdrive.cc\n"
+msgstr ""
+"\n"
+"\n"
+"Sie finden neue Versionen auf http://www.gpsdrive.cc\n"
+
+#: src/splash.c:553
+msgid ""
+"Disclaimer: Please do not use for navigation. \n"
+"\n"
+msgstr ""
+"Haftungsausschluss: Nicht zur Navigation verwenden.\n"
+"\n"
+
+#: src/splash.c:558
+msgid "Please have a look into the manpage (man gpsdrive) for program details!"
+msgstr "Sehen sie in die Manual Seite (man gpsdrive) für Programmdetails!"
+
+#: src/splash.c:563
+msgid "Mouse control (clicking on the map):\n"
+msgstr "Maus Steuerung (auf der Karte klicken):\n"
+
+#: src/splash.c:569
+msgid ""
+"Left mouse button         : Set position (usefull in simulation mode)\n"
+"Right mouse button        : Set target directly on the map\n"
+"Middle mouse button       : Display position again\n"
+"Shift left mouse button   : smaller map\n"
+"Shift right mouse button  : larger map\n"
+"Control left mouse button : Set a waypoint (mouse position) on the map\n"
+"Control right mouse button: Set a waypoint at current position on the map\n"
+"\n"
+msgstr ""
+"Linke Maustaste         : Setzt die Position (im Simulatormodus)\n"
+"Rechte Maustaste        : Legt das Ziel auf der Karte fest\n"
+"Mittlere Maustaste       : Zurück auf echte Positionsanzeige\n"
+"Umsch.- linke Maustaste   : kleinere Karte\n"
+"Umsch.-rechte Maustaste  : größere Karte\n"
+"Strg- linke Maustaste : Setzt einen Wegpunkt an der Mausposition auf der "
+"Karte\n"
+"Strg- rechte Maustaste: Setzt einen Wegpunkt an der momentanen Position auf "
+"der Karte\n"
+"\n"
+
+#: src/splash.c:577
+msgid ""
+"j    : switch to next waypoint in route mode\n"
+"x    : add waypoint at current position\n"
+"y    : add waypoint at mouse cursor position\n"
+msgstr ""
+"j      : schaltet im Routenmodus auf nächsten Wegpunkt weiter\n"
+"x     : Wegpunkt an der aktuellen Position setzen\n"
+"y     : Wegpunkt an der Mausposition setzen\n"
+
+#: src/splash.c:583
+msgid "Short cuts:\n"
+msgstr "Tastenkürzel:\n"
+
+#: src/splash.c:590
+msgid "The other key shortcuts are marked as "
+msgstr "Die anderen Tastenkürzel sind "
+
+#: src/splash.c:591
+msgid "underlined"
+msgstr "unterstrichen"
+
+#: src/splash.c:593
+msgid " letters in the button text.\n"
+msgstr "Buchstaben in der Knopf-Beschriftung.\n"
+
+#: src/splash.c:596
+msgid ""
+"Press the underlined key together with the ALT-key.\n"
+"\n"
+"You can move on the map by selecting the Position-Mode in the menu. A blue "
+"rectangle shows this mode, you can set this cursor by clicking on the map. "
+"If you click on the border of the map (the outer 20%) then the map switches "
+"to the next area.\n"
+"\n"
+"Suggestions welcome.\n"
+"\n"
+msgstr ""
+"Drücken sie die unterstrichene Taste zusammen mit der ALT-Taste.\n"
+"\n"
+"Sie können sich auf der Karte bewegen, indem sie den Positions-Modus im Menü "
+"auswählen . Ein blaues Rechteck zeigt diesen Modus an, sie können den Cursor "
+"positionieren, indem sie auf die Karte klicken. Wenn sie auf den Kartenrand "
+"klicken (die äußeren 20%), schaltet die Karte auf den nächsten Bereich um.\n"
+"\n"
+"Anregungen sind willkommen!\n"
+"\n"
+
+#: src/splash.c:603
+msgid "Have a lot of fun!"
+msgstr "Have a lot of fun!"
+
+#: src/splash.c:734
+msgid "Please donate to GpsDrive"
+msgstr "Bitte spenden sie für GpsDrive"
+
+#: src/splash.c:740
+msgid ""
+"\n"
+"\n"
+"GpsDrive is a project with no comercial background. \n"
+"\n"
+"It would be nice if you can give a donation to help me pay the costs for "
+"hardware and the webserver.\n"
+"\n"
+"To do so, just go to"
+msgstr ""
+"\n"
+"\n"
+"GpsDrive ist ein Projekt ohne kommerziellen Hintergrund.\n"
+"\n"
+"Ich wäre über eine Spende von ihnen erfreut, um die Kosten für die Hardware "
+"und den Webserver tragen zu können.\n"
+"\n"
+"Um zu spenden, gehen sie auf"
+
+#: src/splash.c:744
+msgid " http://www.gpsdrive.cc "
+msgstr " http://www.gpsdrive.cc "
+
+#: src/splash.c:747
+msgid ""
+"and click on the PayPal button.\n"
+"\n"
+"Thank you very much for your donation!\n"
+"\n"
+"This message is only displayed once when you start an new version of "
+"GpsDrive.\n"
+"\n"
+msgstr ""
+"und klicken sie dort auf den PayPal Knopf.\n"
+"\n"
+"Vielen Danke für ihre Spende!\n"
+"\n"
+"Diese Meldung wird nur einmal gezeigt wenn sie eine neue Version von "
+"GpsDrive starten\n"
+"\n"
+
+#: src/splash.c:780
+msgid "About GpsDrive donation"
+msgstr "Ãœber GpsDrive Spenden"
+
+#: src/splash.c:859
+msgid "From:"
+msgstr "Von:"
+
+#: src/splash.c:928
+#, c-format
+msgid ""
+"You received a message from\n"
+"the friends server (%s)\n"
+msgstr ""
+"Sie haben eine Mitteilung vom\n"
+"Friendsserver (%s) empfangen:\n"
+
+#: src/splash.c:938
+msgid "You received a message through the friends server from:\n"
+msgstr "Sie haben eine Mitteilung über den Friendsserver empfangen von:\n"
+
+#: src/splash.c:948
+msgid "Message text:\n"
+msgstr "Mitteilungstext:\n"
+
+#: src/splash.c:1004
+msgid "Error saving config file ~/.gpsdrive/gpsdriverc"
+msgstr "Fehler beim Speichern der Konfigurationsdatei ~/.gpsdrive/gpsdriverc"
+
+#: src/splash.c:1519 src/splash.c:1578
+msgid ""
+"\n"
+"Warning: unable to open splash picture\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+"\n"
+"Warnung: konnte Splashbild nicht laden\n"
+"Bitte installieren sie das Programm als root mit:\n"
+"make install\n"
+"\n"
+
+#: src/splash.c:1562
+msgid "About GpsDrive"
+msgstr "Ãœber GpsDrive"
+
+#: src/settings.c:438
+msgid "Setting WP label font"
+msgstr "WP Schriftart setzen"
+
+#: src/settings.c:440
+msgid "Setting big display font"
+msgstr "Grosse Anzeige-Schriftart setzen"
+
+#: src/settings.c:507
+msgid "Setting big display color"
+msgstr "Grosse Anzeige-Farbe setzen"
+
+#: src/settings.c:545
+msgid "Setting track color"
+msgstr "Spur-Farbe setzen"
+
+#: src/settings.c:587
+msgid "Setting friends label color"
+msgstr "Farbe der Freunde-Beschriftung setzen"
+
+#: src/settings.c:668
+msgid ""
+"Don't use more than\n"
+"100 waypoint(way*.txt) files!"
+msgstr ""
+"Verwenden Sie nicht mehr\n"
+"als 100 waypoint(way*.txt) Dateien!"
+
+#: src/settings.c:679
+msgid "Waypoint files to use"
+msgstr "Zu verwendende Wegpunktdateien"
+
+#: src/settings.c:704 src/settings.c:709
+msgid "Settings"
+msgstr "Einstellungen"
+
+#. misc area
+#: src/settings.c:716
+msgid "Misc settings"
+msgstr "Diverse Einstellungen"
+
+#: src/settings.c:720
+msgid "Show Shadows"
+msgstr "Zeige Schatten"
+
+#: src/settings.c:727
+msgid "Etched frames"
+msgstr "Versenkte Rahmen"
+
+#: src/settings.c:735
+msgid "Simulation: Follow target"
+msgstr "Simulator: Folge Ziel"
+
+#: src/settings.c:742
+msgid "Maximum CPU load"
+msgstr "Maximale CPU Last"
+
+#: src/settings.c:752
+msgid "Track"
+msgstr "Spur"
+
+#: src/settings.c:767
+msgid "Maps directory"
+msgstr "Kartenverzeichnis"
+
+#: src/settings.c:773
+msgid "Automatic"
+msgstr "Automatisch"
+
+#: src/settings.c:779
+msgid "On"
+msgstr "Ein"
+
+#: src/settings.c:784
+msgid "Off"
+msgstr "Aus"
+
+#. gtk_table_attach_defaults (GTK_TABLE (misctable), label2, 0, 2, 3, 4);
+#. gtk_table_attach_defaults (GTK_TABLE (misctable), mapdirbt, 0, 2, 4, 5);
+#. GPS settings area
+#: src/settings.c:808
+msgid "GPS settings"
+msgstr "GPS Einstellungen"
+
+#. gtk_container_add (GTK_CONTAINER (f4), gpstable);
+#: src/settings.c:822
+msgid "Test for GARMIN"
+msgstr "Prüfe auf GARMIN"
+
+#: src/settings.c:833
+msgid "Use DGPS-IP"
+msgstr "Verwende DGPS-IP"
+
+#: src/settings.c:843
+msgid "GPS is Earthmate"
+msgstr "GPS ist Earthmate"
+
+#: src/settings.c:853
+msgid "Use serial conn."
+msgstr "Verwende serielle Verb."
+
+#: src/settings.c:868
+msgid "Interface"
+msgstr "Schnittstelle"
+
+#: src/settings.c:869
+msgid "Baudrate"
+msgstr "Baudrate"
+
+#. units area
+#: src/settings.c:904
+msgid "Units"
+msgstr "Masseinheiten"
+
+#: src/settings.c:910
+msgid "Miles"
+msgstr "Meilen"
+
+#: src/settings.c:915
+msgid "Metric"
+msgstr "Metrisch"
+
+#: src/settings.c:920 src/nautic.c:106
+msgid "Nautic"
+msgstr "Nautisch"
+
+#: src/settings.c:930
+msgid "Decimal position"
+msgstr "Dezimale Pos."
+
+#. gtk_box_pack_start (GTK_BOX (v2), miles, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), metric, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), nautic, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), minsecbt, TRUE, FALSE, 2 * PADDING);
+#.
+#. default download server
+#: src/settings.c:948
+msgid "Default map server"
+msgstr "Standard Kartenserver"
+
+#. Night light mode
+#: src/settings.c:981
+msgid "Night light mode"
+msgstr "Nachtlichtmodus"
+
+#.  gtk_table_attach_defaults (GTK_TABLE (table), f5, 0, 2, 2, 3);
+#. Sound settings
+#: src/settings.c:999
+msgid "Speech output settings"
+msgstr "Sprachausgabe Einstellungen"
+
+#.
+#. set following sounds
+#. sound_direction ... say direction to target
+#. sound_distance  ... say distance to target
+#. sound_speed     ... say your current speed
+#. sound_gps       ... say GPS status
+#.
+#.
+#: src/settings.c:1011
+msgid "Direction"
+msgstr "Richtung"
+
+#: src/settings.c:1032
+msgid "GPS Status"
+msgstr "GPS Status"
+
+#: src/settings.c:1046
+msgid "Switch on for speech output of the direction to the target"
+msgstr "Auswählen, um die Richtung zum Ziel anzusagen"
+
+#: src/settings.c:1051
+msgid "Switch on for speech output of the distance to the target"
+msgstr "Auswählen, um die Entfernung zum Ziel anzusagen"
+
+#: src/settings.c:1056
+msgid "Switch on for speech output of your current speed"
+msgstr "Auswählen, um die momentane Geschwindigkeit anzusagen"
+
+#: src/settings.c:1061
+msgid "Switch on for speech output of the status of your GPS signal"
+msgstr "Auswählen, um den Status des GPS Signals anzusagen"
+
+#. Font settings
+#: src/settings.c:1066
+msgid "Font and color settings"
+msgstr "Schrift- und Farbeinstellungen"
+
+#. gtk_box_pack_start (GTK_BOX (h1), f5, TRUE, FALSE, 2 * PADDING);
+#: src/settings.c:1071
+msgid "WP Label"
+msgstr "Wegpkt."
+
+#: src/settings.c:1072
+msgid "Big display"
+msgstr "gr. Anzeige"
+
+#: src/settings.c:1073
+msgid "Display color"
+msgstr "Anzeige Farbe"
+
+#: src/settings.c:1101
+msgid "Switch units to statute miles"
+msgstr "Schaltet auf Meilen um"
+
+#: src/settings.c:1103
+msgid "Switch units to nautical miles"
+msgstr "Schaltet auf nautische Meilen um"
+
+#: src/settings.c:1105
+msgid "Switch units to metric system (Kilometers)"
+msgstr "Schaltet auf metrisches System (Kilometer) um"
+
+#: src/settings.c:1110
+msgid ""
+"If selected display latitude and longitude in decimal degrees, otherwise in "
+"degree, minutes and seconds notation"
+msgstr ""
+"Wenn ausgewählt wird die Länge und die Breite in Dezimalwerten angezeigt, "
+"sonst in Grad, Minuten und Sekunden"
+
+#: src/settings.c:1115
+msgid ""
+"Set the german expedia server(expedia.de) as default download server. Use "
+"this if you are in Europe"
+msgstr ""
+"Setzt den deutschen Expedia Server als Standardserver (expedia.de). "
+"Verwenden sie diesen, wenn sie in Europa sind."
+
+#: src/settings.c:1119
+msgid "Set Expedia as default download server"
+msgstr "Setzt Expedia als Standardserver"
+
+#: src/settings.c:1122
+msgid "Switches shadows on map on or off"
+msgstr "Schaltet die Schatten auf der Karte ein oder aus"
+
+#: src/settings.c:1126
+msgid "Switches between different type of frame ornaments"
+msgstr "Schalten zwischen verschiedenen Rahmenverzierungen um"
+
+#: src/settings.c:1131
+#, c-format
+msgid ""
+"Select the approx. maximum CPU load, use 20-30% on notebooks while on "
+"battery to save battery power. This effects the refresh rate of the map "
+"screen"
+msgstr ""
+"Wählen sie hier die ungefähre maximale CPU Last aus, wählen sie 20-30% wenn "
+"sie ein Notebook an der Batterie betreiben. Dieser Wert beeinflusst die "
+"Wiederholrate der Kartenanzeige"
+
+#: src/settings.c:1136
+msgid "If activated, pointer moves to target in simulation mode"
+msgstr ""
+"Wenn aktiviert bewegt sich der Zeiger im Simulationsmodus auf das Ziel zu"
+
+#: src/settings.c:1140
+msgid "Set here the color of the drawn track"
+msgstr "Setzen sie hier die Farbe der gezeichneten Spur"
+
+#: src/settings.c:1144
+msgid ""
+"Path to your map files. In the specified directory also the index file "
+"map_koord.txt must be present."
+msgstr ""
+"Pfad für die Kartendateien. Im angegebenen Verzeichnis muss auch die "
+"Indexdatei map_koord.txt vorhanden sein."
+
+#: src/settings.c:1149
+msgid ""
+"If selected, gpsdrive try to use GARMIN mode if possible. Unselect if you "
+"only have a NMEA device."
+msgstr ""
+"Falls ausgewählt versucht gpsdrive wenn möglich den GARMIN-Modus zu "
+"verwenden. Wählen sie es ab wenn sie nur ein NMEA Gerät haben."
+
+#: src/settings.c:1154
+msgid ""
+"Set here the baud rate of your GPS device, NMEA devices usually have a speed "
+"of 4800 baud"
+msgstr ""
+"Stellen sie hier die Baudrate ihres GPS Empfängers ein, NMEA Geräte haben "
+"normalerweise eine Geschwindigkeit von 4800 Baud"
+
+#: src/settings.c:1159
+msgid ""
+"If selected, gpsdrive try to use differential GPS over IP. You must have an "
+"internet connection and a DGPS capable GPS receiver. Works only in NMEA mode!"
+msgstr ""
+"Wenn ausgewählt versucht GpsDrive Differential GPS over IP zu verwenden. Sie "
+"müssen eine Internetverbindung und einen DGPS fähigen GPS Empfänger haben. "
+"Arbeitet nur im NMEA Modus!"
+
+#: src/settings.c:1164
+msgid ""
+"Select this if you have a DeLorme Earthmate GPS receiver. The StartGPSD "
+"button will provide gpsd with the needed additional parameters"
+msgstr ""
+"Wählen sie diese Option aus, wenn sie einen DeLorme Earthmate GPS Empfänger "
+"haben. Der StarteGPSD Knopf ruft dann gpsd mit den nötigen zusätzlichen "
+"Parametern auf."
+
+#: src/settings.c:1169
+msgid ""
+"Select this if you want to use of the direct serial connection. If disabled, "
+"you can use the receiver only through gpsd. On the other hand, the direct "
+"serial connection needs no gpsd running and detects the working receiver on "
+"startup"
+msgstr ""
+"Wählen sie diese Option, wenn sie die direkte serielle Verbindung verwenden "
+"möchten. Wenn ausgeschaltet, kann der Empfänger nur über den gpsd "
+"angesprochen werden. Andererseits macht die direkte serielle Verbindung die "
+"Verwendung von gpsd überflüssig und findet einen angeschlossenen und "
+"arbeitenden Empfänger beim Programmstart automatisch."
+
+#: src/settings.c:1174
+msgid "Specify the serial interface where the GPS is connected"
+msgstr ""
+"Geben sie die serielle Schnittstelle an, an der das GPS angeschlossen ist"
+
+#: src/settings.c:1179
+msgid ""
+"Switches automagically to night mode if it is dark outside. Press 'N' key to "
+"turn off nightmode."
+msgstr ""
+"Schaltet automagisch auf den Nachtmodus um wenn es draussen dunkel wird. Mit "
+"der 'N' Taste kann der Nachtmodus ausgeschaltet werden."
+
+#: src/settings.c:1183
+msgid "Switches night mode on. Press 'N' key to turn off nightmode."
+msgstr ""
+"Schaltet den Nachtmodus ein. Mit der 'N' Taste kann der Nachtmodus "
+"ausgeschaltet werden."
+
+#: src/settings.c:1186
+msgid "Switches night mode off"
+msgstr "Schaltet den Nachtmodus aus"
+
+#: src/settings.c:1190
+msgid "Here you can set the font for the waypoint labels"
+msgstr "Setzen sie hier die Schriftart für die Wegpunkt Beschriftung"
+
+#: src/settings.c:1195
+msgid "Here you can set the font for the big display for Speed and Distance"
+msgstr ""
+"Setzen sie hier die Schriftart für die grosse Anzeige der Geschwindigkeit "
+"und Entfernung"
+
+#: src/settings.c:1199
+msgid ""
+"Here you can set the color for the big display for speed, distance and "
+"altitude"
+msgstr ""
+"Setzen sie hier die Farbe für die grosse Anzeige der Geschwindigkeit, "
+"Entfernung und Höhe"
+
+#: src/settings.c:1377
+msgid "Geo information"
+msgstr "Geo Informationen"
+
+#: src/settings.c:1379
+msgid "Geo info"
+msgstr "Geo Info"
+
+#: src/settings.c:1390
+msgid "Sunrise"
+msgstr "Sonnenaufgang"
+
+#: src/settings.c:1392
+msgid "Sunset"
+msgstr "Sonnenuntergang"
+
+#: src/settings.c:1395
+msgid "Standard"
+msgstr "Standard"
+
+#: src/settings.c:1397
+msgid "Transit"
+msgstr "Mittag"
+
+#: src/settings.c:1399
+msgid "GPS-Time"
+msgstr "GPS Zeit"
+
+#: src/settings.c:1401
+msgid "Astro."
+msgstr "Astron."
+
+#: src/settings.c:1403
+msgid "Naut."
+msgstr "Nautisch"
+
+#: src/settings.c:1405
+msgid "Civil"
+msgstr "Bürgerl."
+
+#: src/settings.c:1407
+msgid "Timezone"
+msgstr "Zeitzone"
+
+#: src/settings.c:1409
+msgid "Store TZ"
+msgstr "Speichere ZZ"
+
+#: src/settings.c:1419
+msgid ""
+"If selected, the timezone is stored, otherwise your actual timezone will "
+"automatically used"
+msgstr ""
+"Wenn ausgewählt, wird die Zeitzoneneinstellung gespeichert, sonst wird die "
+"aktuelle Zeitzone automatisch gesetzt."
+
+#: src/settings.c:1453
+msgid "Night"
+msgstr "Nacht"
+
+#: src/settings.c:1455
+msgid "Day"
+msgstr "Tag"
+
+#: src/settings.c:1592 src/settings.c:1594 src/settings.c:1597
+msgid "Unit:"
+msgstr "Masseinheit:"
+
+#: src/settings.c:1592
+msgid "miles"
+msgstr "Meilen"
+
+#: src/settings.c:1595
+msgid "nautic miles/knots"
+msgstr "Nautische Meilen/Knoten"
+
+#: src/settings.c:1597
+msgid "kilometers"
+msgstr "Kilometer"
+
+#: src/settings.c:1612
+msgid "Trip information"
+msgstr "Reise Informationen"
+
+#: src/settings.c:1614
+msgid "Trip info"
+msgstr "Reise Info"
+
+#: src/settings.c:1628
+msgid "Odometer"
+msgstr "Kilometerzähler"
+
+#: src/settings.c:1630
+msgid "Total time"
+msgstr "Gesamtzeit"
+
+#: src/settings.c:1632
+msgid "Av. speed"
+msgstr "Mitt. Geschwindigkeit"
+
+#: src/settings.c:1634
+msgid "Max. speed"
+msgstr "Max. Geschwindigkeit"
+
+#: src/settings.c:1658
+msgid "Reset"
+msgstr "Zurückstellen"
+
+#: src/settings.c:1663
+msgid "Resets the trip values to zero"
+msgstr "Stellt die Werte auf 0 zurück"
+
+#: src/settings.c:1732
+msgid "You should change your name in the first field!"
+msgstr "Sie sollten ihren Namen im ersten Feld ändern!"
+
+#: src/settings.c:1918
+msgid "Show position newer as"
+msgstr "Zeige Pos. neuer als"
+
+#: src/settings.c:1920
+msgid "Friends server setup"
+msgstr "Friendsserver Einstellungen"
+
+#: src/settings.c:1921
+msgid "Friends"
+msgstr "Friends"
+
+#: src/settings.c:1933
+msgid "Days"
+msgstr "Tage"
+
+#: src/settings.c:1934
+msgid "Hours"
+msgstr "Stunden"
+
+#: src/settings.c:1935
+msgid "Minutes"
+msgstr "Minuten"
+
+#: src/settings.c:1941
+msgid "Your name"
+msgstr "Ihr Name"
+
+#: src/settings.c:1946
+msgid ""
+"Set here your name which should be shown near your vehicle. You may use "
+"spaces here!"
+msgstr ""
+"Tragen sie hier ihren Namen ein, der neben ihrem Fahrzeug angezeigt wird. "
+"Sie dürfen hier Leerzeichen verwenden!"
+
+#: src/settings.c:1958
+msgid "Server name"
+msgstr "Server Name"
+
+#: src/settings.c:1963
+msgid ""
+"Set here the full qualified host name (i.e. www.gpsdrive.cc) of your friends "
+"server, then you have to press the \"Lookup\" button!"
+msgstr ""
+"Tragen sie hier den vollen Rechnernamen (z.B. www.gpsdrive.cc) von ihrem "
+"Friends-Server ein. Drücken sie dann unbedingt den \"Auflösen\" Knopf!"
+
+#: src/settings.c:1972
+msgid "Lookup"
+msgstr "Auflösen"
+
+#: src/settings.c:1980
+msgid ""
+"You have to press the \"Lookup\" button to resolve the friends server name!"
+msgstr ""
+"Sie müssen den \"Auflösen\" Knopf drücken um vom Friendsserver-Namen die IP-"
+"Adresse zu erhalten!"
+
+#: src/settings.c:1991
+msgid "Set here the color of the label displayed at friends position"
+msgstr ""
+"Setzen sie hier die Farbe der Beschriftung, die an der Freunde-Position "
+"angezeigt wird"
+
+#: src/settings.c:1997
+msgid "Friends server IP"
+msgstr "Friendsserver IP"
+
+#: src/settings.c:2002
+msgid ""
+"Set here the IP adress (i.e. 127.0.0.1) if you don't set the hostname above"
+msgstr ""
+"Tragen sie hier die IP-Adresse (z.B. 127.0.0.1) ein, wenn sie oben keinen "
+"Server-Hostnamen angeben. "
+
+#: src/settings.c:2007 src/settings.c:2012 src/settings.c:2016
+msgid ""
+"Set here the time limit in which the friends position is shown. Older "
+"positions are not shown."
+msgstr ""
+"Setzen sie hier das Zeitlimit, in dem die Friends-Position angezeigt werden "
+"soll. Ältere Positionen werden nicht angezeigt."
+
+#: src/settings.c:2028
+msgid "Use friends server"
+msgstr "Friendsserver verwenden"
+
+#: src/settings.c:2036
+msgid ""
+"Enable/disable use of friends server. You must enter a Username, don't use "
+"the default name!"
+msgstr ""
+"Markieren sie hier, wenn sie den Friendsserver Modus verwenden wollen. Sie "
+"sollten den Namen im ersten Feld ändern, verwenden sie nicht die "
+"Voreinstellung!"
+
+#: src/settings.c:2039
+msgid ""
+"If you enable the friendsserver mode,\n"
+"<span color=\"red\">everyone</span> using the same server\n"
+"can see your position!"
+msgstr ""
+"Wenn sie den Friendsserver Modus einschalten,\n"
+"kann <span color=\"red\">jeder</span>, der den selben Server\n"
+"verwendet, ihre Position sehen!"
+
+#: src/settings.c:2094
+msgid "SQL selection criterias"
+msgstr "SQL Auswahlkriterien"
+
+#: src/settings.c:2095
+msgid "SQL"
+msgstr "SQL"
+
+#: src/settings.c:2121
+msgid "Dist. limit[km] "
+msgstr "Max. Entfernung[km]"
+
+#: src/settings.c:2126
+msgid "If enabled, show waypoints only within this distance"
+msgstr "Falls ausgewählt, zeige Wegpunkte nur innerhalb dieser Entfernung"
+
+#: src/settings.c:2142
+msgid "Enable/disable distance selection"
+msgstr "Entfernungsbegrenzung ein/aus"
+
+#: src/settings.c:2151
+msgid "Show no_ssid "
+msgstr "Zeige no_ssid "
+
+#: src/settings.c:2162
+msgid ""
+"If enabled, WLANs with no SSID are shown, because this is perhaps useless, "
+"you can disable it here"
+msgstr ""
+"Wenn eingeschaltet werden auch WLANs mit der Kennung no_ssid gezeigt, da "
+"dies aber meist nutzlos ist, können sie es hier abschalten"
+
+#: src/settings.c:2168
+msgid "Selection mode"
+msgstr "Auswahlmodus"
+
+#: src/settings.c:2170
+msgid "include"
+msgstr "Einschliesslich"
+
+#: src/settings.c:2173
+msgid "exclude"
+msgstr "ausschliesslich"
+
+#: src/settings.c:2177
+msgid ""
+"Show only waypoints where the type field contains one of the selected words"
+msgstr ""
+"Zeige nur Wegpunkte in denen das Typ-Feld eines der ausgeählten Worte enthält"
+
+#: src/settings.c:2181
+msgid ""
+"Show only waypoints where the type field doesn't contain any the selected "
+"words"
+msgstr ""
+"Zeige nur Wegpunkte, in denen das Typ-Feld keines der ausgewählten Worte "
+"enthält"
+
+#: src/fly.c:149
+msgid "Aeronautical settings"
+msgstr "Aeronautische Einstellungen"
+
+#: src/fly.c:151
+msgid "Fly"
+msgstr "Flug"
+
+#: src/fly.c:158
+msgid "Plane mode"
+msgstr "Flugmodus"
+
+#: src/fly.c:165
+msgid "Use VFR"
+msgstr "Verwende VFR"
+
+#: src/fly.c:171
+msgid "Use IFR"
+msgstr "Verwende IFR"
+
+#: src/fly.c:181
+msgid "max. horizontal deviation "
+msgstr "max. horizontale Abweichung"
+
+#: src/fly.c:183
+msgid "max. vertical deviation "
+msgstr "max. vertikale Abweichung"
+
+#: src/fly.c:198
+msgid "disable vert. deviation warning above 5000ft MSL"
+msgstr "keine Warnung f. vert. Abw. über 5000ft MSL"
+
+#: src/nautic.c:103
+msgid "Nautic settings"
+msgstr "Nautische Einstellungen"
+
+#. if (debug)
+#: src/gpssql.c:215
+#, c-format
+msgid ""
+"\n"
+"SQL: connected to %s as %s using %s\n"
+msgstr ""
+"\n"
+"SQL: verbunden mit %s als %s, verwende %s\n"
+
+#: src/gpssql.c:278
+#, c-format
+msgid "rows inserted: %d\n"
+msgstr "Zeilen eingefügt: %d\n"
+
+#: src/gpssql.c:293
+#, c-format
+msgid "last index: %d\n"
+msgstr "letzter Index: %d\n"
+
+#: src/gpssql.c:314
+#, c-format
+msgid "rows deleted: %d\n"
+msgstr "Zeilen gelöscht: %d\n"
+
+#: src/gpssql.c:366 src/gpssql.c:372
+#, c-format
+msgid "Loaded user defined icon %s\n"
+msgstr "Anwenderdefiniertes Icon %s wurde geladen\n"
+
+#: src/gpssql.c:455
+#, c-format
+msgid "%d(%d) rows read in %.2f seconds\n"
+msgstr "%d(%d) Zeilen in %.2f Sekunden gelesen\n"
+
+#: src/friends.c:363
+msgid "unknown"
+msgstr "Unbekannt"
+
+#: src/friendsd.c:472
+msgid "server: please don't run me as root\n"
+msgstr "server: bitte starten sie mich nicht als root!\n"
+
+#: src/friendsd.c:484
+#, c-format
+msgid ""
+"\n"
+"Usage:\n"
+"   %s -n servername\n"
+"provides a name for your server\n"
+msgstr ""
+"\n"
+"Aufruf:\n"
+"   %s -n Servername\n"
+"gibt einen Namen für den Server vor\n"
+
+#: src/gpsnasamap.c:189
+#, c-format
+msgid "could not create output map file %s!\n"
+msgstr "kann die Ausgabekartendatei %s nicht erzeugen!\n"
+
+#. g_signal_connect (window, "destroy",
+#. G_CALLBACK (gtk_widget_destroyed), &window);
+#: src/gpsnasamap.c:204
+msgid "Creating map..."
+msgstr "Erzeuge Karte..."
+
+#: src/gpsnasamap.c:212
+msgid "Creating a temporary map from NASA satellite images"
+msgstr "Erzeuge eine temporäre Karte aus den NASA Satellitenbildern"
+
+#: src/gpsnasamap.c:219
+#, c-format
+msgid "converting map for latitude: %f and longitude: %f ...\n"
+msgstr "konvertiere Karte für Breite %f und Länge %f ...\n"
+
+#: src/gpsnasamap.c:324
+msgid ""
+"\n"
+"You can permanently add this map file with following line in your\n"
+"map_koord.txt (rename the file!):\n"
+msgstr ""
+"\n"
+"Sie können diese Karte dauerhaft verwenden, wenn sie die folgende Zeile in "
+"ihre\n"
+"map_koord.txt Datei eintragen (benennen sie den Dateinamen um!)\n"
+
+#: src/gpsserial.c:252
+msgid "waiting for thread to stop\n"
+msgstr "warte bis Thread beendet wird\n"
+
+#: src/gpsserial.c:275
+#, c-format
+msgid ""
+"\n"
+"error opening %s(%d)\n"
+msgstr ""
+"\n"
+"Fehler beim Öffnen von %s(%d)\n"
+
+#: src/gpsserial.c:278
+#, c-format
+msgid "successfull opened %s\n"
+msgstr "%s erfolgreich geöffnet\n"
+
+#: src/gpsserial.c:284
+msgid "switching WAAS/EGNOS on\n"
+msgstr "schalte WAAS/EGNOS ein\n"
+
+#: src/gpsserial.c:290
+msgid "switching WAAS/EGNOS off\n"
+msgstr "schalte WAAS/EGNOS aus\n"
+
+#~ msgid "Set Mapblast as default download server"
+#~ msgstr "Setzt Mapblast als Standardserver"
+
+#~ msgid "Couldn't find pixmap file: %s"
+#~ msgstr "Kann die Bilddatei %s nicht finden"
+
+#~ msgid "Reading data from %s"
+#~ msgstr "Lese Daten von %s"
+
+#~ msgid "Enable?"
+#~ msgstr "Verwenden?"
+
+#~ msgid "Sat level"
+#~ msgstr "Sat Pegel"
+
+#~ msgid "Simulation"
+#~ msgstr "Simulation"
+
+#~ msgid "Sim.mode"
+#~ msgstr "Sim. Mod."
+
+#~ msgid "Yes, please start gpsd"
+#~ msgstr "Ja, bitte starte gpsd"
+
+#~ msgid "No, start simulation"
+#~ msgstr "Nein, starte Simulation"
+
+#~ msgid ""
+#~ "Neither gpsd nor GARMIN device detected!\n"
+#~ "Should I start gpsd (NMEA mode) for you?"
+#~ msgstr ""
+#~ "Weder gpsd noch ein GARMIN Gerät gefunden!\n"
+#~ "Soll ich gpsd(NMEA Modus) für sie starten?"
+
+#~ msgid "-n X  Select display name on friends server, X is i.e. Fritz\n"
+#~ msgstr ""
+#~ "-n X  Wählen sie den angezeigten Namen für den Friendsserver aus, X ist z."
+#~ "B. Fritz\n"
+
+#~ msgid ""
+#~ "\n"
+#~ "This parameter is obsolet, use settings menu\n"
+#~ msgstr ""
+#~ "\n"
+#~ "Dieser Parameter ist obsolet, verwenden sie das Einstellungen-Menü\n"
+
+#~ msgid "UTC "
+#~ msgstr "UTC"
+
+#~ msgid "Your friendsserver: %s"
+#~ msgstr "Ihr Friendsserver: %s"
+
+#~ msgid "Cancel"
+#~ msgstr "Abbrechen"
+
+#~ msgid "/Misc. Menu/Maps"
+#~ msgstr "/Diverses/Karten"
+
+#~ msgid "Import"
+#~ msgstr "Import"
+
+#~ msgid "Let you import and calibrate your own map"
+#~ msgstr "Ermöglicht das Importieren und Kalibrieren einer eigenen Karte"
+
+#~ msgid ""
+#~ "Left mouse button         : Set position (usefull in simulation mode)\n"
+#~ msgstr "Linke Maus Taste         : Setzt Position (nur im Positionsmodus)\n"
+
+#~ msgid "Right mouse button        : Set target directly on the map\n"
+#~ msgstr "Rechte Maustaste         : Setzt das Ziel direkt auf der Karte\n"
+
+#~ msgid "Middle mouse button       : Display position again\n"
+#~ msgstr "Mittlere Maustaste          : Zurück auf echte Positionsanzeige\n"
+
+#~ msgid "Shift left mouse button   : smaller map\n"
+#~ msgstr "Shift-linke Maustaste    : kleinere Karte\n"
+
+#~ msgid "Shift right mouse button  : larger map\n"
+#~ msgstr "Shift-rechte Maustaste   : Größere Karte\n"
+
+#~ msgid ""
+#~ "Control left mouse button : Set a waypoint (mouse position) on the map\n"
+#~ msgstr ""
+#~ "Strg-linke Maustaste : Setzt einen Wegpunkt an der Mausposition auf der "
+#~ "Karte\n"
+
+#~ msgid ""
+#~ "Control right mouse button: Set a waypoint at current position on the "
+#~ "map\n"
+#~ "\n"
+#~ msgstr ""
+#~ "Strg-rechte Maustaste:  Setzt einen Wegpunkt an der momentanen Position "
+#~ "auf der Karte\n"
+
+#~ msgid "j    : switch to next waypoint in route mode\n"
+#~ msgstr "j    : schaltet im Routenmodus auf nächsten Wegpunkt weiter\n"
+
+#~ msgid "x    : add waypoint at current position\n"
+#~ msgstr "x    : Wegpunkt an aktueller Position setzen\n"
+
+#~ msgid ""
+#~ "y    : add waypoint at mouse cursor position\n"
+#~ "\n"
+#~ msgstr ""
+#~ "y    : Wegpunkt an Maus Position setzen\n"
+#~ "\n"
+
+#~ msgid ""
+#~ " letter in the button text. Press the underlined key together with the "
+#~ msgstr ""
+#~ " in der Knopf-Beschriftung markiert. Drücken sie den unterstrichenen "
+#~ "Buchstaben zusammen mit der "
+
+#~ msgid "ALT-key"
+#~ msgstr "ALT-Taste"
+
+#~ msgid "."
+#~ msgstr "."
+
+#~ msgid "You can move on the map by selecting the "
+#~ msgstr "Sie können sie auf der Karte bewegen, indem sie den "
+
+#~ msgid "Position-Mode"
+#~ msgstr "Position-Modus"
+
+#~ msgid ""
+#~ "Suggestions welcome!\n"
+#~ "\n"
+#~ msgstr ""
+#~ "Anregungen sind willkommen!\n"
+#~ "\n"
+
+#~ msgid ""
+#~ "\n"
+#~ "\n"
+#~ "GpsDrive is a project with no comercial background. \n"
+#~ "\n"
+#~ msgstr ""
+#~ "\n"
+#~ "\n"
+#~ "GpsDrive ist ein Projekt ohne kommerziellen Hintergrund. \n"
+#~ "\n"
+
+#~ msgid "To do so, just go to"
+#~ msgstr "Um zu spenden, gehen sie bitte auf"
+
+#~ msgid "and click on the"
+#~ msgstr "und klicken sie auf den"
+
+#~ msgid " PayPal "
+#~ msgstr " PayPal "
+
+#~ msgid ""
+#~ "button.\n"
+#~ "\n"
+#~ msgstr ""
+#~ "Knopf.\n"
+#~ "\n"
+
+#~ msgid ""
+#~ "Thank you very much for your donation!\n"
+#~ "\n"
+#~ msgstr ""
+#~ "Vielen Danke für ihre Spende!\n"
+#~ "\n"
+
+#~ msgid "/Operations Menu"
+#~ msgstr "/Tätigkeiten"
+
+#~ msgid "/ File"
+#~ msgstr "/ Datei"
+
+#~ msgid "/ File/Import map"
+#~ msgstr "/ Datei/Kartenimport"
+
+#~ msgid "/ File/Quit"
+#~ msgstr "/ Datei/Beenden"
+
+#~ msgid "/ Messages"
+#~ msgstr "/ Mitteilungen"
+
+#~ msgid "/ Help"
+#~ msgstr "/ Hilfe"
+
+#~ msgid "/ Chat"
+#~ msgstr "/ Mitteilungen"
+
+#~ msgid "Load and display a previous stored track file"
+#~ msgstr "Laden und anzeigen einer vorher gespeicherten Spur Datei"
+
+#~ msgid "Font3"
+#~ msgstr "Font3"
+
+#~ msgid "Distance to "
+#~ msgstr "Entfernung nach "
+
+#~ msgid "Sel.:"
+#~ msgstr "Sel.:"
+
+#~ msgid "Sel."
+#~ msgstr "Sel."
+
+#~ msgid "Sel:"
+#~ msgstr "Sel:"
+
+#~ msgid "Time"
+#~ msgstr "Zeit"
+
+#~ msgid "Friendsicon loaded"
+#~ msgstr "Friendsicon geladen"
+
+#~ msgid "Menu window"
+#~ msgstr "Menü Fenster"
+
+#~ msgid "Status window"
+#~ msgstr "Status Fenster"
+
+#~ msgid "can't open socket for friendsserver "
+#~ msgstr "Kann Socket für Friendsserver nicht öffnen"
+
+#~ msgid "Slow CPU"
+#~ msgstr "Langsame CPU"
+
+#~ msgid ""
+#~ "Select, if your CPU is very slow ( < PII MMX/233MHz). This reduces the "
+#~ "framerate to 1 frame/second."
+#~ msgstr ""
+#~ "Auswählen, wenn ihr Prozessor sehr langsam ist ( < PII MMX/233MHz). Die "
+#~ "Bildrate wird auf 1 Bild/s reduziert."
+
+#~ msgid "UTC (GPS)"
+#~ msgstr "UTC (GPS)"
+
+#~ msgid "Ok"
+#~ msgstr "Ok"
+
+#~ msgid "Delete WP"
+#~ msgstr "WP löschen"
+
+#~ msgid ""
+#~ "GpsDrive Help\n"
+#~ "\n"
+#~ msgstr ""
+#~ "GpsDrive Hilfe\n"
+#~ "\n"
+
+#~ msgid ""
+#~ "GPSDRIVE (c) 2001-2003 Fritz Ganter <ganter at ganter.at>\n"
+#~ "\n"
+#~ msgstr ""
+#~ "GPSDRIVE (c) 2001-2003 Fritz Ganter <ganter at ganter.at>\n"
+#~ "\n"
+
+#~ msgid "Website: www.kraftvoll.at/software\n"
+#~ msgstr "Website: www.kraftvoll.at/software\n"
+
+#~ msgid "+    : Zoom in\n"
+#~ msgstr "+    : Vergrößern (Zoom)\n"
+
+#~ msgid "-    : Zoom out\n"
+#~ msgstr "-    : Verkleineren (Zoom)\n"
+
+#~ msgid "s    : larger map\n"
+#~ msgstr "s    : größere Karte\n"
+
+#~ msgid "a    : smaller map\n"
+#~ msgstr "a    : kleinere Karte\n"
+
+#~ msgid "t    : select target\n"
+#~ msgstr "t     : Wähle Ziel\n"
+
+#~ msgid "d    : download map\n"
+#~ msgstr "d      : Karte downloaden\n"
+
+#~ msgid "l    : load track\n"
+#~ msgstr "l    : Lade Spur\n"
+
+#~ msgid "h    : show help\n"
+#~ msgstr "h    : zeige diese Hilfe\n"
+
+#~ msgid "q    : quit program\n"
+#~ msgstr "q     : Programm beenden\n"
+
+#~ msgid "b    : toggle auto best map\n"
+#~ msgstr "b     : Automatische Kartenwahl ein/aus (beste Karte)\n"
+
+#~ msgid "w    : toggle show waypoints\n"
+#~ msgstr "w    : anzeigen der Wegpunkte an/aus\n"
+
+#~ msgid "o    : toggle show tracks\n"
+#~ msgstr "o     : anzeigen der Spur an/aus\n"
+
+#~ msgid "u    : enter setup menu\n"
+#~ msgstr "u    : Einstellungen-Menü\n"
+
+#~ msgid "n    : in nightmode: toogles night display on/off\n"
+#~ msgstr "n    : Im Nachtmodus: Nachtbeleuchtung an/aus\n"
+
+#~ msgid "   Ok   "
+#~ msgstr "   Ok   "
+
+#~ msgid "Close"
+#~ msgstr "Schliessen"
+
+#~ msgid "OK"
+#~ msgstr "OK"
+
+#~ msgid "Quit"
+#~ msgstr "Beenden"
+
+#~ msgid "Load track"
+#~ msgstr "Lade Spur"
+
+#~ msgid "Setup"
+#~ msgstr "Einstellungen"
+
+#~ msgid "WP type"
+#~ msgstr "WP Typ"
+
+#~ msgid "and"
+#~ msgstr "und"
+
+#~ msgid "not"
+#~ msgstr "nicht"
+
+#~ msgid "???"
+#~ msgstr "???"
+
+#~ msgid "Limit?"
+#~ msgstr "Begrenzen?"
+
+#~ msgid "-------------------------------------------------\n"
+#~ msgstr "-------------------------------------------------\n"
+
+#~ msgid ""
+#~ "*************************************************\n"
+#~ "\n"
+#~ msgstr ""
+#~ "*************************************************\n"
+#~ "\n"
+
+#~ msgid "===================================\n"
+#~ msgstr "===================================\n"
+
+#~ msgid ""
+#~ "GpsDrive Help\n"
+#~ "\n"
+#~ "GPSDRIVE (c) 2001,2002 Fritz Ganter <ganter at ganter.at>\n"
+#~ "\n"
+#~ "-------------------------------------------------\n"
+#~ "Website: www.kraftvoll.at/software\n"
+#~ "Disclaimer: Please do not use for navigation. \n"
+#~ "\n"
+#~ "*************************************************\n"
+#~ "\n"
+#~ "See the manpage for program details\n"
+#~ "\n"
+#~ "Mouse control (clicking on the map):\n"
+#~ "===================================\n"
+#~ "Left mouse button         : Set position (usefull in simulation mode)\n"
+#~ "Right mouse button        : Set target directly on the map\n"
+#~ "Middle mouse button       : Display position again\n"
+#~ "Shift left mouse button   : smaller map\n"
+#~ "Shift right mouse button  : larger map\n"
+#~ "Control left mouse button : Set a waypoint (mouse position) on the map\n"
+#~ "Control right mouse button: Set a waypoint at current position on the "
+#~ "map\n"
+#~ "\n"
+#~ "Short cuts:\n"
+#~ "===================================\n"
+#~ "+                         : Zoom in\n"
+#~ "-                         : Zoom out\n"
+#~ "s                         : larger map\n"
+#~ "a                         : smaller map\n"
+#~ "t                         : select target\n"
+#~ "d                         : download map\n"
+#~ "i                         : import map\n"
+#~ "l                         : load track\n"
+#~ "h                         : show help\n"
+#~ "q                         : quit program\n"
+#~ "b                         : toggle auto best map\n"
+#~ "w                         : toggle show waypoints\n"
+#~ "o                         : toggle show tracks\n"
+#~ "u                         : enter setup menu\n"
+#~ "n                         : in nightmode: toogles night display on/off\n"
+#~ "j                         : switch to next waypoint in route mode\n"
+#~ "p                         : switch to position mode\n"
+#~ "x                         : add waypoint at current position\n"
+#~ "\n"
+#~ "Suggestions welcome!\n"
+#~ "\n"
+#~ "Have a lot of fun!\n"
+#~ "\n"
+#~ msgstr ""
+#~ "GpsDrive Hilfe\n"
+#~ "\n"
+#~ "GPSDRIVE (c) 2001,2002 Fritz Ganter <ganter at ganter.at>\n"
+#~ "\n"
+#~ "-------------------------------------------------\n"
+#~ "Webseite: www.kraftvoll.at/software\n"
+#~ "Haftungsausschluss: Nicht zur Navigation verwenden.\n"
+#~ "*************************************************\n"
+#~ "\n"
+#~ "Lesen sie die Manual Seiten für die Programmdetails\n"
+#~ "\n"
+#~ "Maussteuerung (klicken auf die Karte):\n"
+#~ "===================================\n"
+#~ "Linke Maustaste                     : Setzen der Position (nützlich im "
+#~ "Simulationsmodus)\n"
+#~ "Rechte Maustaste                  : Direktes Setzen des Zieles auf der "
+#~ "Karte\n"
+#~ "Mittlere Maustaste                  : Zur Positionsanzeige zurückkehren\n"
+#~ "Umschalt-linke Maustaste      : Kleinere Karte\n"
+#~ "Umschalt-rechte Maustaste   : Größere Karte\n"
+#~ "Steuerung-linke Maustaste    : Einen Wegpunkt an der Mausposition setzen\n"
+#~ "Steuerung-rechte Maustaste : Einen Wegpunkt am momentanen Standort "
+#~ "setzen\n"
+#~ "\n"
+#~ "Tastenkürzel:\n"
+#~ "===========\n"
+#~ "+                       : Vergrössern\n"
+#~ "-                        : Verkleinern\n"
+#~ "s                       : grössere Karte\n"
+#~ "a                       : kleinere Karte\n"
+#~ "t                       : Ziel wählen\n"
+#~ "d                       : Karte downloaden\n"
+#~ "i                        : Karte importieren\n"
+#~ "l                        : Lade Spur\n"
+#~ "h                       : Hilfe zeigen\n"
+#~ "q                       : Programm beenden\n"
+#~ "b                       : Umschalten beste Karte\n"
+#~ "w                      : Umschalten Wegpunkt anzeigen\n"
+#~ "o                       : Umschalten Spuranzeige\n"
+#~ "u                       : Einstellungs Menü\n"
+#~ "n                       : Im Nachtmodus: Schaltet Nachtbeleuchtung ein/"
+#~ "aus\n"
+#~ "j                        : Schaltet im Routenmodus zum nächsten Wegpunkt "
+#~ "weiter\n"
+#~ "p                       : Schaltet in den Positionsmodus\n"
+#~ "x                       : Setzt Wegpunkt an aktueller Position\n"
+#~ "\n"
+#~ "Anregungen erwünscht!\n"
+#~ "\n"
+#~ "Have a lot of fun!\n"
+#~ "\n"
+
+#~ msgid "No GPS Fix found!"
+#~ msgstr "Keinen GPS Fix gefunden!"
+
+#~ msgid "Waypoint files"
+#~ msgstr "Wegpunktdateien"
+
+#~ msgid "Nightmode on"
+#~ msgstr "Nachtmodus ein"
+
+#~ msgid "Nightmode off"
+#~ msgstr "Nachtmodus aus"
+
+#~ msgid "Day/Night"
+#~ msgstr "Tag/Nacht"
+
+#~ msgid "Decimal lat/long display"
+#~ msgstr "Länge/Breitenanzeige als Dezimalwert"
+
+#~ msgid "Astro. dusk"
+#~ msgstr "Astron. Sonnenunterg."
+
+#~ msgid "Naut. dawn"
+#~ msgstr "Naut. Sonnenaufg."
+
+#~ msgid "Naut. dusk"
+#~ msgstr "Naut. Sonnenunterg."
+
+#~ msgid "Civil dawn"
+#~ msgstr "Bürgerl. Sonnenaufg."
+
+#~ msgid "I'm sitting in a plane"
+#~ msgstr "Ich sitze in einem Flugzeug"
+
+#~ msgid "GpsDrive Menu"
+#~ msgstr "GpsDrive Menü"
+
+#~ msgid "GpsDrive Status"
+#~ msgstr "GpsDrive Status"
+
+#~ msgid "GpsDrive Settings"
+#~ msgstr "GpsDrive Einstellungen"
+
+#~ msgid "Have a slow CPU"
+#~ msgstr "Habe langsame CPU"
+
+#~ msgid "Starting point"
+#~ msgstr "Ausgangspunkt"
+
+#~ msgid "Daheim"
+#~ msgstr "Daheim"
+
+#, fuzzy
+#~ msgid "Select waypoints for a route"
+#~ msgstr "Zeige Wegpunkte auf der Karte"
+
+#~ msgid ""
+#~ "Wrong format in line %d\n"
+#~ "in your ~/.gpsdrive/way.txt file,\n"
+#~ "Format must be:\n"
+#~ "LABEL xxx.xxx yyy.yyy\n"
+#~ "where xxx.xxx is the is the latitude \n"
+#~ "and yyy.yyy is the longitude\n"
+#~ " of your waypoints.\n"
+#~ "Be sure to have a dot\n"
+#~ " for the decimal point!\n"
+#~ "\n"
+#~ "No waypoints loaded!"
+#~ msgstr ""
+#~ "Falsches Format in der Zeile %d\n"
+#~ "in ihrer ~/.gpsdrive/way.txt Datei!\n"
+#~ "Das Format muss sein:\n"
+#~ "NAME xxx.xxx yyy.yyy\n"
+#~ "wobei xxx.xxx der Breiten\n"
+#~ "und yyy.yyy der Längengrad\n"
+#~ "von ihrem Wegpunkt sind.\n"
+#~ "Stellen Sie sicher, dass sie einen Punkt als \n"
+#~ "Dezimalpunkt gesetzt haben!\n"
+#~ "\n"
+#~ "Keine Wegpunkte geladen!"

Added: packages/gpsdrive/branches/etch/po/de_AT.gmo
===================================================================
(Binary files differ)


Property changes on: packages/gpsdrive/branches/etch/po/de_AT.gmo
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: packages/gpsdrive/branches/etch/po/de_AT.po
===================================================================
--- packages/gpsdrive/branches/etch/po/de_AT.po	                        (rev 0)
+++ packages/gpsdrive/branches/etch/po/de_AT.po	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,2351 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Free Software Foundation, Inc.
+# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-03-03 21:47+0100\n"
+"PO-Revision-Date: 2002-05-02 22:28+0200\n"
+"Last-Translator: Fritz Ganter <ganter at ganter.at>\n"
+"Language-Team: german <de at li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 0.9.6\n"
+
+#: src/gpsdrive.c:2179
+msgid "/_Misc. Menu"
+msgstr ""
+
+#: src/gpsdrive.c:2180
+msgid "/_Misc. Menu/Maps"
+msgstr ""
+
+#: src/gpsdrive.c:2181
+msgid "/_Misc. Menu/Maps/_Import map"
+msgstr ""
+
+#: src/gpsdrive.c:2185
+msgid "/_Misc. Menu/Maps/_Map Manager"
+msgstr ""
+
+#: src/gpsdrive.c:2187
+msgid "/_Misc. Menu/_Waypoint Manager"
+msgstr ""
+
+#: src/gpsdrive.c:2189
+#, fuzzy
+msgid "/_Misc. Menu/_Load track file"
+msgstr "Wählen Sie eine Spur Datei"
+
+#: src/gpsdrive.c:2193
+#, fuzzy
+msgid "/_Misc. Menu/Messages"
+msgstr "Wählen Sie eine Spur Datei"
+
+#: src/gpsdrive.c:2194
+msgid "/_Misc. Menu/Messages/Send message to mobile target"
+msgstr ""
+
+#: src/gpsdrive.c:2199
+msgid "/_Misc. Menu/Help"
+msgstr ""
+
+#: src/gpsdrive.c:2200
+msgid "/_Misc. Menu/Help/About"
+msgstr ""
+
+#: src/gpsdrive.c:2202
+msgid "/_Misc. Menu/Help/Topics"
+msgstr ""
+
+#: src/gpsdrive.c:2271
+msgid "  Message  "
+msgstr "  Mödung  "
+
+#: src/gpsdrive.c:2315 src/gpsdrive.c:12145
+#, fuzzy
+msgid "Stop GPSD"
+msgstr "Starte GPSD"
+
+#: src/gpsdrive.c:2317 src/gpsdrive.c:12147
+msgid "Stop GPSD and switch to simulation mode"
+msgstr ""
+
+#: src/gpsdrive.c:2339 src/gpsdrive.c:11261
+msgid "Start GPSD"
+msgstr "Starte GPSD"
+
+#: src/gpsdrive.c:2341 src/gpsdrive.c:12153
+msgid "Starts GPSD for NMEA mode"
+msgstr "Startet GPSD für den NMEA Modus"
+
+#. displays zoom factor of map
+#: src/gpsdrive.c:2354 src/gpsdrive.c:2355 src/gpsdrive.c:2356
+#: src/gpsdrive.c:6264 src/gpsdrive.c:6273 src/gpsdrive.c:11484
+#: src/gpsdrive.c:11491 src/gpsdrive.c:11498 src/gpsdrive.c:11555
+#: src/gpsdrive.c:11560 src/gpsdrive.c:11566 src/gpsdrive.c:11602
+#: src/gpsdrive.c:11609 src/settings.c:1425 src/settings.c:1434
+#: src/settings.c:1443 src/settings.c:1468 src/settings.c:1478
+#: src/settings.c:1487 src/settings.c:1498 src/settings.c:1507
+#: src/settings.c:1517
+msgid "n/a"
+msgstr "n/a"
+
+#: src/gpsdrive.c:2366 src/gpsdrive.c:10245
+msgid ""
+"\n"
+"no garmin support compiled in\n"
+msgstr ""
+"\n"
+"ka Garmin Protokoll Unterstützung drinnan\n"
+
+#: src/gpsdrive.c:2387 src/gpsdrive.c:3136
+msgid "Simulation mode"
+msgstr "Tua so ols ob Modus"
+
+#: src/gpsdrive.c:2409
+msgid "got RMC data, using it\n"
+msgstr ""
+
+#: src/gpsdrive.c:2498 src/gpsdrive.c:11936
+msgid "Map"
+msgstr "Kortn"
+
+#. if (debug)
+#: src/gpsdrive.c:2661
+msgid "got no RMC data, using GGA data\n"
+msgstr ""
+
+#: src/gpsdrive.c:2912
+#, fuzzy
+msgid "Timeout getting data from GPS-Receiver!"
+msgstr "Koa Verbindung zuam GPS Empfänger!"
+
+#: src/gpsdrive.c:2959 src/gpsdrive.c:3008 src/gpsdrive.c:3113
+#: src/gpsdrive.c:3199 src/gpsdrive.c:3324
+msgid "Press middle mouse button for navigation"
+msgstr "Mittlere Maustaste fia de Navigation druckn"
+
+#: src/gpsdrive.c:2963
+#, fuzzy, c-format
+msgid "Direct serial connection to %s"
+msgstr "Verbind mit %s"
+
+#: src/gpsdrive.c:3013 src/gpsdrive.c:3045 src/gpsdrive.c:3205
+#: src/gpsdrive.c:3330
+msgid "Not enough satellites in view!"
+msgstr ""
+
+#: src/gpsdrive.c:3117
+msgid "GARMIN Mode"
+msgstr "GARMIN Betriab"
+
+#: src/gpsdrive.c:3134
+msgid "No GPS used"
+msgstr "Koa GPS braucht"
+
+#: src/gpsdrive.c:3138
+msgid "Press middle mouse button for sim mode"
+msgstr "Mittlere Maustoastn fir de Simulation druckn"
+
+#: src/gpsdrive.c:3477
+#, c-format
+msgid "Distance to HomeBase: %.1fkm, max. allowed: %.1fkm\n"
+msgstr ""
+
+#: src/gpsdrive.c:3554 src/gpsdrive.c:3784 src/gpsdrive.c:6665
+#: src/gpsdrive.c:8534 src/gpsdrive.c:9000
+msgid "To"
+msgstr ""
+
+#: src/gpsdrive.c:3866
+msgid "Error in line "
+msgstr "Bledsinn in da Zeiln "
+
+#: src/gpsdrive.c:3868
+msgid ""
+"I have found filenames in map_koord.txt which are\n"
+"not map_* or top_* files. Please rename them and change the entries in\n"
+"map_koord.txt.  Use map_* for street maps and top_* for topographical\n"
+"maps.  Otherwise, the maps will not be displayed!"
+msgstr ""
+"Ich fand Dateinamen in Ihrer\n"
+"map_koord.txt Datei,\n"
+"welche keine map_* bzw. top_* \n"
+"Dateien sind! Bitte nennen Sie diese um\n"
+"und ändern Sie die Einträge in der map_koord.txt\n"
+"Datei, sonst werden diese Karten nicht angezeigt!\n"
+"\n"
+"Verwenden Sie map_* für Strassenkarten und\n"
+"top_* für topografische Karten."
+
+#: src/gpsdrive.c:4229
+msgid "Auto"
+msgstr "Sölba"
+
+#: src/gpsdrive.c:4440
+#, fuzzy
+msgid "Warning!"
+msgstr "Bearing"
+
+#: src/gpsdrive.c:4441
+msgid "You should not start GpsDrive as user root!!!"
+msgstr ""
+
+#: src/gpsdrive.c:4756 src/gpsdrive.c:8145 src/gpsdrive.c:8154
+#: src/gpsdrive.c:11661 src/gpsdrive.c:11670
+#, fuzzy
+msgid "mi/h"
+msgstr "km/h"
+
+#: src/gpsdrive.c:4758 src/gpsdrive.c:8147 src/gpsdrive.c:8156
+#: src/gpsdrive.c:11663 src/gpsdrive.c:11672
+msgid "knots"
+msgstr "Knoten"
+
+#: src/gpsdrive.c:4760 src/gpsdrive.c:8149 src/gpsdrive.c:8158
+#: src/gpsdrive.c:11665 src/gpsdrive.c:11674
+msgid "km/h"
+msgstr "km/h"
+
+#: src/gpsdrive.c:5088
+msgid ""
+"\n"
+"Warning: unable to load gpsdriveanim.gif!\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+
+#. This string means North,East,South,West -- please translate the letters
+#: src/gpsdrive.c:5896
+msgid "NESW"
+msgstr ""
+
+#: src/gpsdrive.c:6064
+msgid "No map available for this position!"
+msgstr "Ka Kortn fir de Position do!"
+
+#: src/gpsdrive.c:6258
+msgid "unused"
+msgstr ""
+
+#: src/gpsdrive.c:6362
+msgid "can't open NMEA output file"
+msgstr "Konn NMEA Ausgabedatei net aufmochn"
+
+#: src/gpsdrive.c:6473
+msgid " Mapfile could not be loaded:"
+msgstr " De Kortendatei hob i net lodn kenna:"
+
+#: src/gpsdrive.c:6517
+msgid "Map found!"
+msgstr ""
+
+#: src/gpsdrive.c:6552
+msgid " Friendsicon could not be loaded:"
+msgstr "Friendsicon hob i net lodn kenna:"
+
+#: src/gpsdrive.c:6555
+msgid ""
+"\n"
+"Warning: unable to load friendsicon!\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+
+#: src/gpsdrive.c:6843
+msgid "Select coordinates and scale"
+msgstr "Wöl a Koordinaten und an Moßstob aus"
+
+#: src/gpsdrive.c:6846
+msgid "Download map"
+msgstr "Karte obaloadn"
+
+#: src/gpsdrive.c:6872 src/gpsdrive.c:7911 src/gpsdrive.c:9209
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/gpsdrive.c:11792
+msgid "Latitude"
+msgstr "Breitn"
+
+#: src/gpsdrive.c:6874 src/gpsdrive.c:7913 src/gpsdrive.c:9203
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/gpsdrive.c:11793
+msgid "Longitude"
+msgstr "Längn"
+
+#: src/gpsdrive.c:6876
+#, fuzzy
+msgid "Map covers"
+msgstr "Maßstab"
+
+#: src/gpsdrive.c:6880
+msgid "Scale"
+msgstr "Moßstob"
+
+#: src/gpsdrive.c:6882
+msgid "Map file name"
+msgstr "Kortndateinoman"
+
+#: src/gpsdrive.c:6922 src/settings.c:958
+msgid "Expedia Germany"
+msgstr ""
+
+#: src/gpsdrive.c:6928 src/settings.c:964
+msgid "Expedia USA"
+msgstr ""
+
+#: src/gpsdrive.c:6934
+msgid "TopoZone(US Only)"
+msgstr ""
+
+#: src/gpsdrive.c:6943
+msgid ""
+"If selected, you download the map from the german expedia server (expedia.de)"
+msgstr ""
+
+#: src/gpsdrive.c:6947
+msgid ""
+"If selected, you download the map from the U.S. expedia server (expedia.com)"
+msgstr ""
+
+#: src/gpsdrive.c:6951
+msgid ""
+"If selected, you download the map from the TopoZone Server (US maps only)"
+msgstr ""
+
+#: src/gpsdrive.c:6977 src/gpsdrive.c:6981
+msgid ""
+"You can also select the position\n"
+"with a mouse click on the map."
+msgstr ""
+"Du konnst a Stell auf da Kortn\n"
+"a durch an Mausklick auswöhln."
+
+#: src/gpsdrive.c:6983
+msgid "Using Proxy and port:"
+msgstr "Nimm Proxy und Port:"
+
+#: src/gpsdrive.c:7280 src/gpsdrive.c:7397
+msgid "can't open socket for port 80"
+msgstr "Kon Socket firn Port 80 net aufmochn"
+
+#: src/gpsdrive.c:7282 src/gpsdrive.c:7285 src/gpsdrive.c:7309
+#: src/gpsdrive.c:7312 src/gpsdrive.c:7327 src/gpsdrive.c:7330
+#: src/gpsdrive.c:7399 src/gpsdrive.c:7404 src/gpsdrive.c:7407
+#: src/gpsdrive.c:7411 src/gpsdrive.c:7446 src/gpsdrive.c:7451
+#: src/gpsdrive.c:7454 src/gpsdrive.c:7458 src/gpsdrive.c:7473
+#: src/gpsdrive.c:7478 src/gpsdrive.c:7481 src/gpsdrive.c:7485
+#, c-format
+msgid "Connecting to %s FAILED!"
+msgstr "Da Dreck %s geht net!"
+
+#: src/gpsdrive.c:7307 src/gpsdrive.c:7444
+msgid "Can't resolve webserver address"
+msgstr "Kon den Noman net aufläsn"
+
+#: src/gpsdrive.c:7325 src/gpsdrive.c:7471
+msgid "unable to connect to Website"
+msgstr "kumm net zur Webseitn zuawe"
+
+#: src/gpsdrive.c:7353 src/gpsdrive.c:7542
+msgid "read from Webserver"
+msgstr "lesn vom Webserver"
+
+#: src/gpsdrive.c:7380 src/gpsdrive.c:7384 src/gpsdrive.c:7386
+#: src/gpsdrive.c:7389
+#, c-format
+msgid "Connecting to %s"
+msgstr "Verbind mit %s"
+
+#: src/gpsdrive.c:7499 src/gpsdrive.c:7503 src/gpsdrive.c:7505
+#: src/gpsdrive.c:7508
+#, c-format
+msgid "Now connected to %s"
+msgstr "vabundn mit %s"
+
+#: src/gpsdrive.c:7585
+#, c-format
+msgid "Downloaded %d kBytes"
+msgstr "I hob scho %d kBytes"
+
+#: src/gpsdrive.c:7599
+msgid "Download FAILED!"
+msgstr "Obalodn danebngongan!"
+
+#: src/gpsdrive.c:7601
+#, c-format
+msgid "Download finished, got %dkB"
+msgstr "Abaloadn is fertig, %dkB kriagt."
+
+#: src/gpsdrive.c:7772
+msgid "Select a map file"
+msgstr "Wöhl Kortn Datei"
+
+#: src/gpsdrive.c:7837
+msgid ""
+"How to calibrate your own maps? First, the map file\n"
+"must be copied into the"
+msgstr ""
+
+#: src/gpsdrive.c:7839
+#, fuzzy
+msgid ""
+"\n"
+"directory as .gif, .jpg or .png file and must have\n"
+"the size 1280x1024. The file names must be\n"
+"map_* for street maps or top_* for topographical maps!\n"
+"Load the file, select coordinates from waypoint list or\n"
+"type them in. Then click on the accept button."
+msgstr ""
+"Wie kalibriere ich die Karten?\n"
+"\n"
+"Zuerst muss die Kartendatei in das ~./gpsdrive  Verzeichnis als .gif, .jpg "
+"oder .png kopiert werden. Die Grösse muss 1280x1024 Pixel sein. Die "
+"Filenamen müssen map_* für Strassenkarten oder top_* für topografische "
+"Karten sein!\n"
+"Laden Sie die Datei, wählen dann die Koordinaten aus der Wegpunktliste\n"
+"oder geben Sie sie einfach ein.\n"
+"Klicken sie dann auf Akzeptieren."
+
+#: src/gpsdrive.c:7846
+#, fuzzy
+msgid ""
+"Now do the same for your second point and click on the\n"
+"finish button. The map can be used now."
+msgstr ""
+"Machen Sie das selbe für den zweiten Punkt und klicken dann auf den "
+"Fertigstellen-Knopf. Die Karte kann dann benutzt werden. "
+
+#: src/gpsdrive.c:7851
+msgid "Import Assistant. Step 1"
+msgstr "Import Druide. Schritt 1"
+
+#: src/gpsdrive.c:7853
+msgid "Import Assistant. Step 2"
+msgstr "Import Druide. Schritt 2"
+
+#: src/gpsdrive.c:7858
+msgid "Accept first point"
+msgstr "Akzeptiere ersten Punkt"
+
+#: src/gpsdrive.c:7860
+msgid "Finish"
+msgstr "Fertigmochn"
+
+#: src/gpsdrive.c:7881
+msgid "Go up"
+msgstr "Aufi"
+
+#: src/gpsdrive.c:7884
+msgid "Go left"
+msgstr "Links ume"
+
+#: src/gpsdrive.c:7887
+msgid "Go right"
+msgstr "Rechts ume"
+
+#: src/gpsdrive.c:7890
+msgid "Go down"
+msgstr "Obe"
+
+#: src/gpsdrive.c:7893
+msgid "Zoom in"
+msgstr "Grässa"
+
+#: src/gpsdrive.c:7896
+msgid "Zoom out"
+msgstr "Klana"
+
+#: src/gpsdrive.c:7915
+msgid "Screen X"
+msgstr "Schirm X"
+
+#: src/gpsdrive.c:7917
+msgid "Screen Y"
+msgstr "Schirm Y"
+
+#: src/gpsdrive.c:7919
+msgid "Browse waypoint"
+msgstr "Wähle Wegpunkt"
+
+#: src/gpsdrive.c:7950
+msgid "Browse filename"
+msgstr "Wähle Kartendatei"
+
+#: src/gpsdrive.c:8043
+#, fuzzy
+msgid "GpsDrive Control"
+msgstr "GpsDrive Menü"
+
+#: src/gpsdrive.c:8154 src/gpsdrive.c:8156 src/gpsdrive.c:8158
+#: src/gpsdrive.c:11670 src/gpsdrive.c:11672 src/gpsdrive.c:11674
+#: src/settings.c:1025
+msgid "Speed"
+msgstr "Geschwindigkeit"
+
+#: src/gpsdrive.c:8375
+msgid ""
+"\n"
+"distance jump is more then 1000km/h speed, ignoring\n"
+msgstr ""
+
+#: src/gpsdrive.c:8597 src/friends.c:348
+#, fuzzy
+msgid "/Misc. Menu/Messages"
+msgstr "Wählen Sie eine Spur Datei"
+
+#: src/gpsdrive.c:8600
+msgid "Sending message to friends server..."
+msgstr ""
+
+#: src/gpsdrive.c:8673
+#, fuzzy
+msgid "Message for:"
+msgstr "  Mödung  "
+
+#: src/gpsdrive.c:8714
+#, c-format
+msgid "Date: %s"
+msgstr ""
+
+#: src/gpsdrive.c:8727
+msgid "Sends your text to to selected computer using the friends server"
+msgstr ""
+
+#: src/gpsdrive.c:8999
+msgid "SELECTED"
+msgstr "AUSGEWÄHLT"
+
+#: src/gpsdrive.c:9172
+msgid "Add waypoint name"
+msgstr "Wegpunkt Bezeichnung hinzufügen"
+
+#: src/gpsdrive.c:9231
+msgid " Waypoint name: "
+msgstr " Wegpunkt Bezeichnung: "
+
+#: src/gpsdrive.c:9244
+#, fuzzy
+msgid " Waypoint type: "
+msgstr " Wegpunkt Bezeichnung: "
+
+#: src/gpsdrive.c:9489
+msgid "Name"
+msgstr ""
+
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/settings.c:1018
+msgid "Distance"
+msgstr "Entfernung"
+
+#: src/gpsdrive.c:9499
+#, fuzzy
+msgid "Please select message recipient"
+msgstr "Bitte wählen Sie ihr Ziel"
+
+#: src/gpsdrive.c:9568 src/gpsdrive.c:9715
+msgid "Waypoint"
+msgstr "Wegpunkt"
+
+#: src/gpsdrive.c:9587
+msgid "Select reference point"
+msgstr "Setze Referenzpunkt"
+
+#: src/gpsdrive.c:9591
+msgid "Please select your destination"
+msgstr "Bitte wählen Sie ihr Ziel"
+
+#: src/gpsdrive.c:9620
+msgid "Edit route"
+msgstr "Bearbeite Route"
+
+#: src/gpsdrive.c:9622
+msgid "Create route"
+msgstr "Erzeuge Route"
+
+#: src/gpsdrive.c:9693
+#, fuzzy
+msgid "Create a route using some waypoints from this list"
+msgstr "Auswahl eines Ziels aus der Wegpunkt Liste"
+
+#: src/gpsdrive.c:9698
+#, fuzzy
+msgid "Delete the selected waypoint from the waypoint list"
+msgstr "Auswahl eines Ziels aus der Wegpunkt Liste"
+
+#: src/gpsdrive.c:9702
+#, fuzzy
+msgid "Jump to the selected waypoint"
+msgstr ""
+"Klicken Sie auf einen Eintrag\n"
+"um den nächsten Wegpunkt auszuwählen"
+
+#: src/gpsdrive.c:9729
+msgid "Define route"
+msgstr "Route festlegen"
+
+#: src/gpsdrive.c:9737
+msgid "Start route"
+msgstr "Starte Route"
+
+#: src/gpsdrive.c:9746
+msgid "Take all WP as route"
+msgstr ""
+
+#: src/gpsdrive.c:9751
+msgid "Abort route"
+msgstr "Abbruch Route"
+
+#: src/gpsdrive.c:9795
+msgid ""
+"Click on waypoints list\n"
+"to add waypoints"
+msgstr ""
+"Klicken Sie auf die Wegpunktliste\n"
+"um Wegpunkte hinzuzufügen"
+
+#: src/gpsdrive.c:9797
+msgid ""
+"Click on list item\n"
+"to select next waypoint"
+msgstr ""
+"Klicken Sie auf einen Eintrag\n"
+"um den nächsten Wegpunkt auszuwählen"
+
+#: src/gpsdrive.c:9838
+msgid ""
+"Create a route from all waypoints. Sorted with order in file, not distance."
+msgstr ""
+
+#: src/gpsdrive.c:9842
+msgid ""
+"Click here to start your journey. GpsDrive guides you through the waypoints "
+"in this list."
+msgstr ""
+
+#: src/gpsdrive.c:9845
+#, fuzzy
+msgid "Abort your journey"
+msgstr "Abbruch Route"
+
+#: src/gpsdrive.c:9862
+msgid "-v    show version\n"
+msgstr "-v    zeige Version\n"
+
+#: src/gpsdrive.c:9863
+msgid "-h    print this help\n"
+msgstr "-h    zeige diese Hilfe\n"
+
+#: src/gpsdrive.c:9864
+#, fuzzy
+msgid "-d    turn on debug info\n"
+msgstr "-d    gebe debugging Info aus\n"
+
+#: src/gpsdrive.c:9865
+#, fuzzy
+msgid "-D    turn on lot of debug info\n"
+msgstr "-d    gebe debugging Info aus\n"
+
+#: src/gpsdrive.c:9866
+msgid "-e    use Festival-Lite (flite) for speech output\n"
+msgstr ""
+
+#: src/gpsdrive.c:9867
+msgid "-t    set serial device for GPS i.e. /dev/ttyS1\n"
+msgstr "-t    setze das serielle Gerät für GPS, z.B. /dev/ttyS1\n"
+
+#: src/gpsdrive.c:9868
+msgid "-o    serial device, pty master, or file for NMEA *output*\n"
+msgstr "-o    Serielles Gerät, PTY Master oder Datei für NMEA *Ausgabe*\n"
+
+#: src/gpsdrive.c:9869
+#, fuzzy
+msgid "-f X  Select friends server, X is i.e. www.gpsdrive.cc\n"
+msgstr "-f X  Wählen sie den Friendsserver aus, X ist z.B. linux.quant-x.at\n"
+
+#: src/gpsdrive.c:9870
+msgid "-n    Disable use of direct serial connection\n"
+msgstr ""
+
+#: src/gpsdrive.c:9871
+msgid ""
+"-l X  Select language of the voice,\n"
+"      X may be english, spanish or german\n"
+msgstr ""
+"-l X  Auswahl der Sprache für die Sprachausgabe,\n"
+"        X kann english, spanish oder german sein\n"
+
+#: src/gpsdrive.c:9873
+msgid ""
+"-s X  set height of the screen, if autodetection\n"
+"      don't satisfy you, X is i.e. 768,600,480,200\n"
+msgstr ""
+"-s    Setze Höhe des Bildschirms falls die Erkennung\n"
+"      nicht ihren Wünschen entspricht, X ist z.B. 768,600,480,200\n"
+
+#. ** Mod by Arms
+#: src/gpsdrive.c:9876
+msgid "-r X  set width of the screen, only with -s\n"
+msgstr "-r X  setze Breite des Schirmes, nur mit -s\n"
+
+#: src/gpsdrive.c:9878
+msgid "-1    have only 1 button mouse, for example using touchscreen\n"
+msgstr "-1    habe nur 1 Maustaste, z.B. bei Touchscreen\n"
+
+#: src/gpsdrive.c:9879
+msgid "-a    don't display battery status (i.e. broken APM)\n"
+msgstr "-a    keine Anzeige vom Batteriestatus (z.B. kaputtes APM)\n"
+
+#: src/gpsdrive.c:9881
+msgid "-b X  Servername for NMEA server (if gpsd runs on another host)\n"
+msgstr ""
+"-b X  Servername für NMEA Server (falls gpsd auf einem anderen Host läuft)\n"
+
+#: src/gpsdrive.c:9883
+msgid "-c X  set start position in simulation mode to waypoint name X\n"
+msgstr "-c X  setze die Startposition im Simulationsmodus auf den Wegpunkt X\n"
+
+#: src/gpsdrive.c:9884
+#, fuzzy
+msgid "-x    create separate window for menu\n"
+msgstr "-x    erzeuge eigenes Fenster für das Menü\n"
+
+#: src/gpsdrive.c:9885
+msgid "-p    set settings for PDA (iPAQ, Yopy...)\n"
+msgstr ""
+
+#: src/gpsdrive.c:9887
+msgid "-i    ignore NMEA checksum (risky, only for broken GPS receivers\n"
+msgstr ""
+
+#: src/gpsdrive.c:9888
+msgid "-q    disable SQL support\n"
+msgstr ""
+
+#: src/gpsdrive.c:9889
+msgid "-F    force display of position even it is invalid\n"
+msgstr ""
+
+#: src/gpsdrive.c:9890
+msgid "-S    don't show splash screen\n"
+msgstr ""
+
+#: src/gpsdrive.c:9891
+msgid "-E    print out data received from direct serial connection\n"
+msgstr ""
+
+#: src/gpsdrive.c:9893
+msgid "-W x  set x to 1 to switch WAAS/EGNOS on, set to 0 to switch off\n"
+msgstr ""
+
+#: src/gpsdrive.c:9894
+msgid "-H X  correct altitude, adding this value to altitude\n"
+msgstr ""
+
+#: src/gpsdrive.c:9895
+msgid ""
+"-z    don't display zoom factor and scale\n"
+"\n"
+msgstr ""
+
+#: src/gpsdrive.c:10001
+msgid "Select a track file"
+msgstr "Wählen Sie eine Spur Datei"
+
+#: src/gpsdrive.c:10179 src/gpskismet.c:380
+msgid "can't open socket for port "
+msgstr "Kann Socket für Port nicht öffnen"
+
+#: src/gpsdrive.c:10200
+#, c-format
+msgid ""
+"\n"
+"Cannot connect to %s: unknown host\n"
+msgstr ""
+
+#: src/gpsdrive.c:10221
+msgid "NMEA Mode, Port 2222"
+msgstr "NMEA Betrieb, Port 2222"
+
+#: src/gpsdrive.c:10230
+msgid "NMEA Mode, Port 2947"
+msgstr "NMEA Betrieb, Port 2947"
+
+#: src/gpsdrive.c:10249
+msgid ""
+"\n"
+"Garmin protocol detection disabled!\n"
+msgstr ""
+"\n"
+"Garmin Protokoll Erkennung abgeschaltet!\n"
+
+#: src/gpsdrive.c:10600
+msgid ""
+"\n"
+"libmysqlclient.so not found.\n"
+msgstr ""
+
+#: src/gpsdrive.c:10606
+msgid ""
+"\n"
+"MySQL support disabled.\n"
+msgstr ""
+
+#: src/gpsdrive.c:10783
+msgid ""
+"\n"
+"You can only choose between english, spanish and german\n"
+"\n"
+msgstr ""
+"\n"
+"Sie können nur zwischen english, spanish und german wählen\n"
+"\n"
+
+#: src/gpsdrive.c:10817 src/settings.c:1730
+#, fuzzy
+msgid "EnterYourName"
+msgstr "Indafaiss"
+
+#: src/gpsdrive.c:10879
+#, c-format
+msgid ""
+"\n"
+"Using proxy: %s on port %d"
+msgstr ""
+"\n"
+"Verwende proxy: %s auf Port %d"
+
+#: src/gpsdrive.c:10883
+msgid ""
+"\n"
+"Invalid enviroment variable HTTP_PROXY, must be in format: http://proxy."
+"provider.de:3128"
+msgstr ""
+"\n"
+"Ungültige Umgebungsvariable HTTP_PROXY. Sie muss im Format http://proxy."
+"provider.de:3128 sein."
+
+#: src/gpsdrive.c:11073
+#, fuzzy
+msgid "Gpsdrive-2 (c)2001-2004 F.Ganter"
+msgstr "(c)2001,2002 F.Ganter"
+
+#: src/gpsdrive.c:11081
+msgid "Using speech output"
+msgstr "Verwende Sprachausgabe"
+
+#: src/gpsdrive.c:11115
+#, fuzzy
+msgid "/Misc. Menu/Maps/Map Manager"
+msgstr "Wählen Sie eine Spur Datei"
+
+#: src/gpsdrive.c:11119
+#, fuzzy
+msgid "/Misc. Menu/Waypoint Manager"
+msgstr "Wählen Sie eine Spur Datei"
+
+#. download map button
+#: src/gpsdrive.c:11123
+#, fuzzy
+msgid "_Download map"
+msgstr "Karte obaloadn"
+
+#: src/gpsdrive.c:11142
+#, fuzzy
+msgid "M_ute"
+msgstr "Stumm"
+
+#: src/gpsdrive.c:11152
+msgid "Use SQ_L"
+msgstr ""
+
+#: src/gpsdrive.c:11162
+#, fuzzy
+msgid "Show _WP"
+msgstr "Zeige WP"
+
+#: src/gpsdrive.c:11189
+msgid "HomeBase"
+msgstr ""
+
+#: src/gpsdrive.c:11197
+#, fuzzy
+msgid "Pos. _mode"
+msgstr "Pos. Modus"
+
+#: src/gpsdrive.c:11203
+#, fuzzy
+msgid "Show _Track"
+msgstr "Zeige Spur"
+
+#: src/gpsdrive.c:11246
+msgid "_Navigation"
+msgstr ""
+
+#: src/gpsdrive.c:11265
+#, fuzzy
+msgid "Auto _best map"
+msgstr "Beste Karte"
+
+#: src/gpsdrive.c:11275
+msgid "Save track"
+msgstr "Speichere Spur"
+
+#: src/gpsdrive.c:11286
+msgid "Shown map type"
+msgstr "Zeige Kartenart"
+
+#: src/gpsdrive.c:11297
+msgid "Street map"
+msgstr "Strassenkarte"
+
+#: src/gpsdrive.c:11304
+msgid "Topo map"
+msgstr "Topografisch"
+
+#: src/gpsdrive.c:11386
+msgid ""
+"\n"
+"kismet server found\n"
+msgstr ""
+
+#: src/gpsdrive.c:11447 src/gpsdrive.c:11797
+msgid "Bearing"
+msgstr "Bearing"
+
+#: src/gpsdrive.c:11468
+msgid "GPS Info"
+msgstr ""
+
+#: src/gpsdrive.c:11519
+msgid "Bat."
+msgstr "Bat."
+
+#: src/gpsdrive.c:11534
+#, fuzzy
+msgid "TC"
+msgstr "UTC"
+
+#. displays speed over ground
+#: src/gpsdrive.c:11552 src/gpsdrive.c:11807 src/gpsdrive.c:11809
+#: src/gpsdrive.c:11815 src/gpsdrive.c:11817
+msgid "---"
+msgstr "---"
+
+#: src/gpsdrive.c:11632 src/gpsdrive.c:11639
+#, fuzzy
+msgid "Selected:"
+msgstr "Wähle Ziel"
+
+#: src/gpsdrive.c:11632 src/gpsdrive.c:11639
+msgid "within"
+msgstr ""
+
+#. create frames for labels
+#: src/gpsdrive.c:11647
+msgid "Distance to target"
+msgstr "Entfernung zum Ziel"
+
+#. ** Mod by Arms
+#. if (!pdamode)
+#. gtk_box_pack_start (GTK_BOX (hbox2), frame_speed, TRUE, TRUE,
+#. 1 * PADDING);
+#: src/gpsdrive.c:11683
+msgid "Altitude"
+msgstr "Höhe"
+
+#. ** Mod by Arms
+#. if (!pdamode)
+#. gtk_box_pack_start (GTK_BOX (hbox2), frame_altitude, FALSE, TRUE,
+#. 1 * PADDING);
+#: src/gpsdrive.c:11690 src/settings.c:681
+#, fuzzy
+msgid "Waypoints"
+msgstr "Wegpunkt"
+
+#: src/gpsdrive.c:11794
+msgid "Map file"
+msgstr "Kartendatei"
+
+#: src/gpsdrive.c:11795
+msgid "Map scale"
+msgstr "Maßstab"
+
+#: src/gpsdrive.c:11796
+msgid "Heading"
+msgstr "Kurs"
+
+#: src/gpsdrive.c:11798
+msgid "Time at Dest."
+msgstr "Zeit zum Ziel"
+
+#: src/gpsdrive.c:11799
+msgid "Pref. scale"
+msgstr "Wahlm."
+
+#: src/gpsdrive.c:11803
+msgid "000,00000N"
+msgstr ""
+
+#: src/gpsdrive.c:11805
+msgid "000,00000E"
+msgstr ""
+
+#: src/gpsdrive.c:11811 src/gpsdrive.c:11813
+msgid "0000"
+msgstr ""
+
+#. gdk_window_lower((GdkWindow *)menuwin);
+#: src/gpsdrive.c:11886 src/gpsdrive.c:11937
+msgid "Menu"
+msgstr ""
+
+#. gdk_window_lower((GdkWindow *)menuwin2);
+#: src/gpsdrive.c:11895 src/gpsdrive.c:11938
+msgid "Status"
+msgstr ""
+
+#: src/gpsdrive.c:12089
+msgid ""
+"Click here to switch betwen satetellite level and satellite position "
+"display. A rotating globe is shown in simulation mode"
+msgstr ""
+
+#: src/gpsdrive.c:12093
+msgid "Number of used satellites/satellites in view"
+msgstr ""
+
+#: src/gpsdrive.c:12096
+msgid "EPE (Estimated Precision Error), if available"
+msgstr ""
+
+#: src/gpsdrive.c:12100
+msgid ""
+"PDOP (Position Dilution Of Precision). PDOP less than 4 gives the best "
+"accuracy, between 4 and 8 gives acceptable accuracy and greater than 8 gives "
+"unacceptable poor accuracy. "
+msgstr ""
+
+#: src/gpsdrive.c:12105
+msgid ""
+"On top of the compass you see the direction to which you move. The pointer "
+"shows the target direction on the compass."
+msgstr ""
+
+#: src/gpsdrive.c:12108
+msgid "/Misc. Menu"
+msgstr ""
+
+#: src/gpsdrive.c:12111
+msgid "Here you find extra functions for maps, tracks and messages"
+msgstr ""
+
+#: src/gpsdrive.c:12115
+msgid "Download map from Internet"
+msgstr "Karte aus dem Internet downloaden"
+
+#: src/gpsdrive.c:12117
+msgid "Leave the program"
+msgstr "Programm beenden"
+
+#: src/gpsdrive.c:12120
+msgid "Disable output of speech"
+msgstr "Schaltet die Sprachausgabe stumm"
+
+#: src/gpsdrive.c:12123
+msgid "Use SQL server for waypoints"
+msgstr ""
+
+#: src/gpsdrive.c:12126
+msgid "Show waypoints on the map"
+msgstr "Zeige Wegpunkte auf der Karte"
+
+#: src/gpsdrive.c:12129
+msgid ""
+"Turn position mode on. You can move on the map with the left mouse button "
+"click. Clicking near the border switches to the proximate map."
+msgstr ""
+"Schaltet Positions Modus ein. Sie können sich mit dem linken Mausknopf auf "
+"der Karte bewegen. Wenn sie am Rand klicken bewegen sie sich zur "
+"benachbarten Karte."
+
+#: src/gpsdrive.c:12132
+msgid "Show tracking on the map"
+msgstr "Zeige Tracking auf der Karte"
+
+#: src/gpsdrive.c:12137
+msgid "Opens the help window"
+msgstr "Öffnet das Hilfe Fenster"
+
+#: src/gpsdrive.c:12140
+msgid "Navigation menu. Enter here your destination."
+msgstr ""
+
+#: src/gpsdrive.c:12156
+msgid "Settings for GpsDrive"
+msgstr "Einstellungen für GpsDrive"
+
+#: src/gpsdrive.c:12158
+msgid "Zoom into the current map"
+msgstr "Momentane Karte vergrössern"
+
+#: src/gpsdrive.c:12160
+msgid "Zooms out off the current map"
+msgstr "Momentane Karte verkleinern"
+
+#: src/gpsdrive.c:12162
+msgid "Select the next more detailed map"
+msgstr "Die nächste mehr detailierte Karte auswählen"
+
+#: src/gpsdrive.c:12164
+msgid "Select the next less detailed map"
+msgstr "Die nächste weniger detailierte Karte auswählen"
+
+#: src/gpsdrive.c:12169
+msgid "Select here a destination from the waypoint list"
+msgstr "Auswahl eines Ziels aus der Wegpunkt Liste"
+
+#: src/gpsdrive.c:12173
+msgid "Select the map scale of avail. maps."
+msgstr "Maßstab aus den vorhandenen Karten auswählen."
+
+#: src/gpsdrive.c:12178
+msgid "Always select the most detailed map available"
+msgstr "Automatisch die meist detailierte Karte auswählen"
+
+#: src/gpsdrive.c:12181
+msgid "Save the track to given filename at program exit"
+msgstr "Speicher Spur in Datei bei Programmende"
+
+#: src/gpsdrive.c:12187
+msgid "Number of waypoints selected from SQL server"
+msgstr ""
+
+#: src/gpsdrive.c:12191
+msgid "Number of selected waypoints, which are in range"
+msgstr ""
+
+#: src/gpsdrive.c:12195
+msgid "Range for waypoint selection in kilometers"
+msgstr ""
+
+#: src/gpsdrive.c:12198
+msgid "This shows the time from your GPS receiver"
+msgstr ""
+
+#: src/gpsdrive.c:12201
+msgid ""
+"Number of mobile targets within timeframe/total received from friendsserver"
+msgstr ""
+
+#: src/gpsdrive.c:12275
+msgid ""
+"\n"
+"\n"
+"Thank you for using GpsDrive!\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:543
+#, fuzzy
+msgid "GpsDrive v"
+msgstr "GpsDrive Hilfe"
+
+#: src/splash.c:549
+msgid ""
+"\n"
+"\n"
+"You find new versions on http://www.gpsdrive.cc\n"
+msgstr ""
+
+#: src/splash.c:553
+msgid ""
+"Disclaimer: Please do not use for navigation. \n"
+"\n"
+msgstr ""
+
+#: src/splash.c:558
+msgid "Please have a look into the manpage (man gpsdrive) for program details!"
+msgstr ""
+
+#: src/splash.c:563
+#, fuzzy
+msgid "Mouse control (clicking on the map):\n"
+msgstr "Zeige Tracking auf der Karte"
+
+#: src/splash.c:569
+msgid ""
+"Left mouse button         : Set position (usefull in simulation mode)\n"
+"Right mouse button        : Set target directly on the map\n"
+"Middle mouse button       : Display position again\n"
+"Shift left mouse button   : smaller map\n"
+"Shift right mouse button  : larger map\n"
+"Control left mouse button : Set a waypoint (mouse position) on the map\n"
+"Control right mouse button: Set a waypoint at current position on the map\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:577
+msgid ""
+"j    : switch to next waypoint in route mode\n"
+"x    : add waypoint at current position\n"
+"y    : add waypoint at mouse cursor position\n"
+msgstr ""
+
+#: src/splash.c:583
+msgid "Short cuts:\n"
+msgstr ""
+
+#: src/splash.c:590
+msgid "The other key shortcuts are marked as "
+msgstr ""
+
+#: src/splash.c:591
+msgid "underlined"
+msgstr ""
+
+#: src/splash.c:593
+msgid " letters in the button text.\n"
+msgstr ""
+
+#: src/splash.c:596
+msgid ""
+"Press the underlined key together with the ALT-key.\n"
+"\n"
+"You can move on the map by selecting the Position-Mode in the menu. A blue "
+"rectangle shows this mode, you can set this cursor by clicking on the map. "
+"If you click on the border of the map (the outer 20%) then the map switches "
+"to the next area.\n"
+"\n"
+"Suggestions welcome.\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:603
+msgid "Have a lot of fun!"
+msgstr ""
+
+#: src/splash.c:734
+msgid "Please donate to GpsDrive"
+msgstr ""
+
+#: src/splash.c:740
+msgid ""
+"\n"
+"\n"
+"GpsDrive is a project with no comercial background. \n"
+"\n"
+"It would be nice if you can give a donation to help me pay the costs for "
+"hardware and the webserver.\n"
+"\n"
+"To do so, just go to"
+msgstr ""
+
+#: src/splash.c:744
+msgid " http://www.gpsdrive.cc "
+msgstr ""
+
+#: src/splash.c:747
+msgid ""
+"and click on the PayPal button.\n"
+"\n"
+"Thank you very much for your donation!\n"
+"\n"
+"This message is only displayed once when you start an new version of "
+"GpsDrive.\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:780
+#, fuzzy
+msgid "About GpsDrive donation"
+msgstr "GpsDrive Menü"
+
+#: src/splash.c:859
+msgid "From:"
+msgstr ""
+
+#: src/splash.c:928
+#, c-format
+msgid ""
+"You received a message from\n"
+"the friends server (%s)\n"
+msgstr ""
+
+#: src/splash.c:938
+msgid "You received a message through the friends server from:\n"
+msgstr ""
+
+#: src/splash.c:948
+#, fuzzy
+msgid "Message text:\n"
+msgstr "  Mödung  "
+
+#: src/splash.c:1004
+msgid "Error saving config file ~/.gpsdrive/gpsdriverc"
+msgstr "Fehler beim Speichern der Konfigurationsdatei ~/.gpsdrive/gpsdriverc"
+
+#: src/splash.c:1519 src/splash.c:1578
+msgid ""
+"\n"
+"Warning: unable to open splash picture\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:1562
+#, fuzzy
+msgid "About GpsDrive"
+msgstr "GpsDrive Menü"
+
+#: src/settings.c:438
+msgid "Setting WP label font"
+msgstr ""
+
+#: src/settings.c:440
+msgid "Setting big display font"
+msgstr ""
+
+#: src/settings.c:507
+msgid "Setting big display color"
+msgstr ""
+
+#: src/settings.c:545
+msgid "Setting track color"
+msgstr ""
+
+#: src/settings.c:587
+msgid "Setting friends label color"
+msgstr ""
+
+#: src/settings.c:668
+#, fuzzy
+msgid ""
+"Don't use more than\n"
+"100 waypoint(way*.txt) files!"
+msgstr ""
+"Bidde net mehr ols dreisg\n"
+"Wegpunkt(way*.txt) Datein!"
+
+#: src/settings.c:679
+#, fuzzy
+msgid "Waypoint files to use"
+msgstr "Nimm de Wegpunktdatei"
+
+#: src/settings.c:704 src/settings.c:709
+#, fuzzy
+msgid "Settings"
+msgstr "GPS Sochn"
+
+#. misc area
+#: src/settings.c:716
+msgid "Misc settings"
+msgstr "Irgendwölche Sochn"
+
+#: src/settings.c:720
+msgid "Show Shadows"
+msgstr "Zag an Schottn"
+
+#: src/settings.c:727
+msgid "Etched frames"
+msgstr ""
+
+#: src/settings.c:735
+msgid "Simulation: Follow target"
+msgstr "Simulator: Züh nachhirschn"
+
+#: src/settings.c:742
+msgid "Maximum CPU load"
+msgstr ""
+
+#: src/settings.c:752
+#, fuzzy
+msgid "Track"
+msgstr "Zeige Spur"
+
+#: src/settings.c:767
+msgid "Maps directory"
+msgstr "Kortnverzeichnis"
+
+#: src/settings.c:773
+#, fuzzy
+msgid "Automatic"
+msgstr "Sölba"
+
+#: src/settings.c:779
+msgid "On"
+msgstr ""
+
+#: src/settings.c:784
+msgid "Off"
+msgstr ""
+
+#. gtk_table_attach_defaults (GTK_TABLE (misctable), label2, 0, 2, 3, 4);
+#. gtk_table_attach_defaults (GTK_TABLE (misctable), mapdirbt, 0, 2, 4, 5);
+#. GPS settings area
+#: src/settings.c:808
+msgid "GPS settings"
+msgstr "GPS Sochn"
+
+#. gtk_container_add (GTK_CONTAINER (f4), gpstable);
+#: src/settings.c:822
+msgid "Test for GARMIN"
+msgstr "GARMIN nochschaun"
+
+#: src/settings.c:833
+msgid "Use DGPS-IP"
+msgstr "Moch a DGPS-IP"
+
+#: src/settings.c:843
+msgid "GPS is Earthmate"
+msgstr ""
+
+#: src/settings.c:853
+msgid "Use serial conn."
+msgstr ""
+
+#: src/settings.c:868
+msgid "Interface"
+msgstr "Indafaiss"
+
+#: src/settings.c:869
+msgid "Baudrate"
+msgstr ""
+
+#. units area
+#: src/settings.c:904
+msgid "Units"
+msgstr "Wos fia Moss"
+
+#: src/settings.c:910
+msgid "Miles"
+msgstr "Meilen"
+
+#: src/settings.c:915
+msgid "Metric"
+msgstr "Unsrigs"
+
+#: src/settings.c:920 src/nautic.c:106
+msgid "Nautic"
+msgstr "Nautisch"
+
+#: src/settings.c:930
+msgid "Decimal position"
+msgstr ""
+
+#. gtk_box_pack_start (GTK_BOX (v2), miles, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), metric, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), nautic, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), minsecbt, TRUE, FALSE, 2 * PADDING);
+#.
+#. default download server
+#: src/settings.c:948
+msgid "Default map server"
+msgstr "Wöchana Kortensörva"
+
+#. Night light mode
+#: src/settings.c:981
+#, fuzzy
+msgid "Night light mode"
+msgstr "Scholtet de Schottn auf da Kortn ou oder aus"
+
+#.  gtk_table_attach_defaults (GTK_TABLE (table), f5, 0, 2, 2, 3);
+#. Sound settings
+#: src/settings.c:999
+#, fuzzy
+msgid "Speech output settings"
+msgstr "Irgendwölche Sochn"
+
+#.
+#. set following sounds
+#. sound_direction ... say direction to target
+#. sound_distance  ... say distance to target
+#. sound_speed     ... say your current speed
+#. sound_gps       ... say GPS status
+#.
+#.
+#: src/settings.c:1011
+msgid "Direction"
+msgstr ""
+
+#: src/settings.c:1032
+#, fuzzy
+msgid "GPS Status"
+msgstr "GpsDrive Status"
+
+#: src/settings.c:1046
+msgid "Switch on for speech output of the direction to the target"
+msgstr ""
+
+#: src/settings.c:1051
+msgid "Switch on for speech output of the distance to the target"
+msgstr ""
+
+#: src/settings.c:1056
+msgid "Switch on for speech output of your current speed"
+msgstr ""
+
+#: src/settings.c:1061
+msgid "Switch on for speech output of the status of your GPS signal"
+msgstr ""
+
+#. Font settings
+#: src/settings.c:1066
+#, fuzzy
+msgid "Font and color settings"
+msgstr "GPS Sochn"
+
+#. gtk_box_pack_start (GTK_BOX (h1), f5, TRUE, FALSE, 2 * PADDING);
+#: src/settings.c:1071
+msgid "WP Label"
+msgstr ""
+
+#: src/settings.c:1072
+msgid "Big display"
+msgstr ""
+
+#: src/settings.c:1073
+msgid "Display color"
+msgstr ""
+
+#: src/settings.c:1101
+msgid "Switch units to statute miles"
+msgstr "Scholt auf Meilen um"
+
+#: src/settings.c:1103
+msgid "Switch units to nautical miles"
+msgstr "Scholt auf nautische Meilen um"
+
+#: src/settings.c:1105
+msgid "Switch units to metric system (Kilometers)"
+msgstr "Scholtet auf unsriges System (Kilometa) um"
+
+#: src/settings.c:1110
+msgid ""
+"If selected display latitude and longitude in decimal degrees, otherwise in "
+"degree, minutes and seconds notation"
+msgstr ""
+
+#: src/settings.c:1115
+#, fuzzy
+msgid ""
+"Set the german expedia server(expedia.de) as default download server. Use "
+"this if you are in Europe"
+msgstr "Nimmt den Expedia als Standardserver"
+
+#: src/settings.c:1119
+msgid "Set Expedia as default download server"
+msgstr "Nimmt den Expedia als Standardserver"
+
+#: src/settings.c:1122
+msgid "Switches shadows on map on or off"
+msgstr "Scholtet de Schottn auf da Kortn ou oder aus"
+
+#: src/settings.c:1126
+msgid "Switches between different type of frame ornaments"
+msgstr ""
+
+#: src/settings.c:1131
+#, c-format
+msgid ""
+"Select the approx. maximum CPU load, use 20-30% on notebooks while on "
+"battery to save battery power. This effects the refresh rate of the map "
+"screen"
+msgstr ""
+
+#: src/settings.c:1136
+msgid "If activated, pointer moves to target in simulation mode"
+msgstr "Wenst onkreizelst geht da Zaga im Simulationsmodus zum Züh zuawe"
+
+#: src/settings.c:1140
+msgid "Set here the color of the drawn track"
+msgstr ""
+
+#: src/settings.c:1144
+msgid ""
+"Path to your map files. In the specified directory also the index file "
+"map_koord.txt must be present."
+msgstr ""
+"Pfad für die Kartendateien. Im angegebenen Verzeichnis muss auch die "
+"Indexdatei map_koord.txt vorhanden sein."
+
+#: src/settings.c:1149
+msgid ""
+"If selected, gpsdrive try to use GARMIN mode if possible. Unselect if you "
+"only have a NMEA device."
+msgstr ""
+"Falls ausgewählt versucht gpsdrive wenn möglich den GARMIN-Modus zu "
+"verwenden. Wählen sie es ab wenn sie nur ein NMEA Gerät haben."
+
+#: src/settings.c:1154
+msgid ""
+"Set here the baud rate of your GPS device, NMEA devices usually have a speed "
+"of 4800 baud"
+msgstr ""
+
+#: src/settings.c:1159
+msgid ""
+"If selected, gpsdrive try to use differential GPS over IP. You must have an "
+"internet connection and a DGPS capable GPS receiver. Works only in NMEA mode!"
+msgstr ""
+"Wenn ausgewählt versucht GpsDrive Differential GPS over IP zu verwenden. Sie "
+"müssen eine Internetverbindung und einen DGPS fähigen GPS Empfänger haben. "
+"Arbeitet nur im NMEA Modus!"
+
+#: src/settings.c:1164
+msgid ""
+"Select this if you have a DeLorme Earthmate GPS receiver. The StartGPSD "
+"button will provide gpsd with the needed additional parameters"
+msgstr ""
+
+#: src/settings.c:1169
+msgid ""
+"Select this if you want to use of the direct serial connection. If disabled, "
+"you can use the receiver only through gpsd. On the other hand, the direct "
+"serial connection needs no gpsd running and detects the working receiver on "
+"startup"
+msgstr ""
+
+#: src/settings.c:1174
+msgid "Specify the serial interface where the GPS is connected"
+msgstr ""
+"Geben sie die serielle Schnittstelle an, an der das GPS angeschlossen ist"
+
+#: src/settings.c:1179
+msgid ""
+"Switches automagically to night mode if it is dark outside. Press 'N' key to "
+"turn off nightmode."
+msgstr ""
+
+#: src/settings.c:1183
+msgid "Switches night mode on. Press 'N' key to turn off nightmode."
+msgstr ""
+
+#: src/settings.c:1186
+#, fuzzy
+msgid "Switches night mode off"
+msgstr "Scholtet de Schottn auf da Kortn ou oder aus"
+
+#: src/settings.c:1190
+#, fuzzy
+msgid "Here you can set the font for the waypoint labels"
+msgstr "Auswahl eines Ziels aus der Wegpunkt Liste"
+
+#: src/settings.c:1195
+msgid "Here you can set the font for the big display for Speed and Distance"
+msgstr ""
+
+#: src/settings.c:1199
+#, fuzzy
+msgid ""
+"Here you can set the color for the big display for speed, distance and "
+"altitude"
+msgstr "Auswahl eines Ziels aus der Wegpunkt Liste"
+
+#: src/settings.c:1377
+msgid "Geo information"
+msgstr ""
+
+#: src/settings.c:1379
+msgid "Geo info"
+msgstr ""
+
+#: src/settings.c:1390
+msgid "Sunrise"
+msgstr ""
+
+#: src/settings.c:1392
+msgid "Sunset"
+msgstr ""
+
+#: src/settings.c:1395
+msgid "Standard"
+msgstr ""
+
+#: src/settings.c:1397
+msgid "Transit"
+msgstr ""
+
+#: src/settings.c:1399
+msgid "GPS-Time"
+msgstr ""
+
+#: src/settings.c:1401
+#, fuzzy
+msgid "Astro."
+msgstr "Sölba"
+
+#: src/settings.c:1403
+#, fuzzy
+msgid "Naut."
+msgstr "Nautisch"
+
+#: src/settings.c:1405
+msgid "Civil"
+msgstr ""
+
+#: src/settings.c:1407
+msgid "Timezone"
+msgstr ""
+
+#: src/settings.c:1409
+msgid "Store TZ"
+msgstr ""
+
+#: src/settings.c:1419
+msgid ""
+"If selected, the timezone is stored, otherwise your actual timezone will "
+"automatically used"
+msgstr ""
+
+#: src/settings.c:1453
+#, fuzzy
+msgid "Night"
+msgstr "Rechts ume"
+
+#: src/settings.c:1455
+msgid "Day"
+msgstr ""
+
+#: src/settings.c:1592 src/settings.c:1594 src/settings.c:1597
+#, fuzzy
+msgid "Unit:"
+msgstr "Wos fia Moss"
+
+#: src/settings.c:1592
+#, fuzzy
+msgid "miles"
+msgstr "Meilen"
+
+#: src/settings.c:1595
+msgid "nautic miles/knots"
+msgstr ""
+
+#: src/settings.c:1597
+msgid "kilometers"
+msgstr ""
+
+#: src/settings.c:1612
+msgid "Trip information"
+msgstr ""
+
+#: src/settings.c:1614
+msgid "Trip info"
+msgstr ""
+
+#: src/settings.c:1628
+msgid "Odometer"
+msgstr ""
+
+#: src/settings.c:1630
+msgid "Total time"
+msgstr ""
+
+#: src/settings.c:1632
+msgid "Av. speed"
+msgstr ""
+
+#: src/settings.c:1634
+msgid "Max. speed"
+msgstr ""
+
+#: src/settings.c:1658
+msgid "Reset"
+msgstr ""
+
+#: src/settings.c:1663
+msgid "Resets the trip values to zero"
+msgstr ""
+
+#: src/settings.c:1732
+msgid "You should change your name in the first field!"
+msgstr ""
+
+#: src/settings.c:1918
+#, fuzzy
+msgid "Show position newer as"
+msgstr "Zeige Wegpunkte auf der Karte"
+
+#: src/settings.c:1920
+msgid "Friends server setup"
+msgstr ""
+
+#: src/settings.c:1921
+#, fuzzy
+msgid "Friends"
+msgstr "Fertigmochn"
+
+#: src/settings.c:1933
+msgid "Days"
+msgstr ""
+
+#: src/settings.c:1934
+msgid "Hours"
+msgstr ""
+
+#: src/settings.c:1935
+#, fuzzy
+msgid "Minutes"
+msgstr "Meilen"
+
+#: src/settings.c:1941
+msgid "Your name"
+msgstr ""
+
+#: src/settings.c:1946
+msgid ""
+"Set here your name which should be shown near your vehicle. You may use "
+"spaces here!"
+msgstr ""
+
+#: src/settings.c:1958
+msgid "Server name"
+msgstr ""
+
+#: src/settings.c:1963
+msgid ""
+"Set here the full qualified host name (i.e. www.gpsdrive.cc) of your friends "
+"server, then you have to press the \"Lookup\" button!"
+msgstr ""
+
+#: src/settings.c:1972
+msgid "Lookup"
+msgstr ""
+
+#: src/settings.c:1980
+msgid ""
+"You have to press the \"Lookup\" button to resolve the friends server name!"
+msgstr ""
+
+#: src/settings.c:1991
+msgid "Set here the color of the label displayed at friends position"
+msgstr ""
+
+#: src/settings.c:1997
+msgid "Friends server IP"
+msgstr ""
+
+#: src/settings.c:2002
+msgid ""
+"Set here the IP adress (i.e. 127.0.0.1) if you don't set the hostname above"
+msgstr ""
+
+#: src/settings.c:2007 src/settings.c:2012 src/settings.c:2016
+msgid ""
+"Set here the time limit in which the friends position is shown. Older "
+"positions are not shown."
+msgstr ""
+
+#: src/settings.c:2028
+msgid "Use friends server"
+msgstr ""
+
+#: src/settings.c:2036
+msgid ""
+"Enable/disable use of friends server. You must enter a Username, don't use "
+"the default name!"
+msgstr ""
+
+#: src/settings.c:2039
+msgid ""
+"If you enable the friendsserver mode,\n"
+"<span color=\"red\">everyone</span> using the same server\n"
+"can see your position!"
+msgstr ""
+
+#: src/settings.c:2094
+msgid "SQL selection criterias"
+msgstr ""
+
+#: src/settings.c:2095
+msgid "SQL"
+msgstr ""
+
+#: src/settings.c:2121
+msgid "Dist. limit[km] "
+msgstr ""
+
+#: src/settings.c:2126
+msgid "If enabled, show waypoints only within this distance"
+msgstr ""
+
+#: src/settings.c:2142
+msgid "Enable/disable distance selection"
+msgstr ""
+
+#: src/settings.c:2151
+#, fuzzy
+msgid "Show no_ssid "
+msgstr "Zeige WP"
+
+#: src/settings.c:2162
+msgid ""
+"If enabled, WLANs with no SSID are shown, because this is perhaps useless, "
+"you can disable it here"
+msgstr ""
+
+#: src/settings.c:2168
+#, fuzzy
+msgid "Selection mode"
+msgstr "Tua so ols ob Modus"
+
+#: src/settings.c:2170
+msgid "include"
+msgstr ""
+
+#: src/settings.c:2173
+msgid "exclude"
+msgstr ""
+
+#: src/settings.c:2177
+msgid ""
+"Show only waypoints where the type field contains one of the selected words"
+msgstr ""
+
+#: src/settings.c:2181
+msgid ""
+"Show only waypoints where the type field doesn't contain any the selected "
+"words"
+msgstr ""
+
+#: src/fly.c:149
+#, fuzzy
+msgid "Aeronautical settings"
+msgstr "Irgendwölche Sochn"
+
+#: src/fly.c:151
+msgid "Fly"
+msgstr ""
+
+#: src/fly.c:158
+#, fuzzy
+msgid "Plane mode"
+msgstr "Tua so ols ob Modus"
+
+#: src/fly.c:165
+msgid "Use VFR"
+msgstr ""
+
+#: src/fly.c:171
+msgid "Use IFR"
+msgstr ""
+
+#: src/fly.c:181
+msgid "max. horizontal deviation "
+msgstr ""
+
+#: src/fly.c:183
+msgid "max. vertical deviation "
+msgstr ""
+
+#: src/fly.c:198
+msgid "disable vert. deviation warning above 5000ft MSL"
+msgstr ""
+
+#: src/nautic.c:103
+#, fuzzy
+msgid "Nautic settings"
+msgstr "Irgendwölche Sochn"
+
+#. if (debug)
+#: src/gpssql.c:215
+#, c-format
+msgid ""
+"\n"
+"SQL: connected to %s as %s using %s\n"
+msgstr ""
+
+#: src/gpssql.c:278
+#, c-format
+msgid "rows inserted: %d\n"
+msgstr ""
+
+#: src/gpssql.c:293
+#, c-format
+msgid "last index: %d\n"
+msgstr ""
+
+#: src/gpssql.c:314
+#, c-format
+msgid "rows deleted: %d\n"
+msgstr ""
+
+#: src/gpssql.c:366 src/gpssql.c:372
+#, c-format
+msgid "Loaded user defined icon %s\n"
+msgstr ""
+
+#: src/gpssql.c:455
+#, c-format
+msgid "%d(%d) rows read in %.2f seconds\n"
+msgstr ""
+
+#: src/friends.c:363
+#, fuzzy
+msgid "unknown"
+msgstr "Unbekannt"
+
+#: src/friendsd.c:472
+msgid "server: please don't run me as root\n"
+msgstr ""
+
+#: src/friendsd.c:484
+#, c-format
+msgid ""
+"\n"
+"Usage:\n"
+"   %s -n servername\n"
+"provides a name for your server\n"
+msgstr ""
+
+#: src/gpsnasamap.c:189
+#, c-format
+msgid "could not create output map file %s!\n"
+msgstr ""
+
+#. g_signal_connect (window, "destroy",
+#. G_CALLBACK (gtk_widget_destroyed), &window);
+#: src/gpsnasamap.c:204
+msgid "Creating map..."
+msgstr ""
+
+#: src/gpsnasamap.c:212
+msgid "Creating a temporary map from NASA satellite images"
+msgstr ""
+
+#: src/gpsnasamap.c:219
+#, c-format
+msgid "converting map for latitude: %f and longitude: %f ...\n"
+msgstr ""
+
+#: src/gpsnasamap.c:324
+msgid ""
+"\n"
+"You can permanently add this map file with following line in your\n"
+"map_koord.txt (rename the file!):\n"
+msgstr ""
+
+#: src/gpsserial.c:252
+msgid "waiting for thread to stop\n"
+msgstr ""
+
+#: src/gpsserial.c:275
+#, c-format
+msgid ""
+"\n"
+"error opening %s(%d)\n"
+msgstr ""
+
+#: src/gpsserial.c:278
+#, c-format
+msgid "successfull opened %s\n"
+msgstr ""
+
+#: src/gpsserial.c:284
+msgid "switching WAAS/EGNOS on\n"
+msgstr ""
+
+#: src/gpsserial.c:290
+msgid "switching WAAS/EGNOS off\n"
+msgstr ""
+
+#~ msgid "Set Mapblast as default download server"
+#~ msgstr "Nimmt den Mapblast als Standardserver"
+
+#~ msgid "Sat level"
+#~ msgstr "Sat Pegel"
+
+#, fuzzy
+#~ msgid "Simulation"
+#~ msgstr "Tua so ols ob Modus"
+
+#, fuzzy
+#~ msgid "Sim.mode"
+#~ msgstr "Tua so ols ob Modus"
+
+#~ msgid "Yes, please start gpsd"
+#~ msgstr "Jo, bittschän startn gpsd"
+
+#~ msgid "No, start simulation"
+#~ msgstr "Na, Simulation"
+
+#~ msgid ""
+#~ "Neither gpsd nor GARMIN device detected!\n"
+#~ "Should I start gpsd (NMEA mode) for you?"
+#~ msgstr ""
+#~ "Ka gpsd do, ka GARMIN do!\n"
+#~ "Sull i den gpsd(NMEA Modus) fir di starten?"
+
+#~ msgid "-n X  Select display name on friends server, X is i.e. Fritz\n"
+#~ msgstr ""
+#~ "-n X  Wählen sie den angezeigten Namen für den Friendsserver aus, X ist z."
+#~ "B. Fritz\n"
+
+#~ msgid "UTC "
+#~ msgstr "UTC"
+
+#~ msgid "Cancel"
+#~ msgstr "Vergiss es"
+
+#, fuzzy
+#~ msgid "/Misc. Menu/Maps"
+#~ msgstr "Wählen Sie eine Spur Datei"
+
+#~ msgid "Import"
+#~ msgstr "Import"
+
+#~ msgid "Let you import and calibrate your own map"
+#~ msgstr "Ermöglicht das Importieren und Kalibrieren einer eigenen Karte"
+
+#, fuzzy
+#~ msgid "/Operations Menu"
+#~ msgstr "Wählen Sie eine Spur Datei"
+
+#, fuzzy
+#~ msgid "/ Messages"
+#~ msgstr "  Mödung  "
+
+#, fuzzy
+#~ msgid "/ Help"
+#~ msgstr "Hilfe"
+
+#~ msgid "Load and display a previous stored track file"
+#~ msgstr "Laden und anzeigen einer vorher gespeicherten Spur Datei"
+
+#~ msgid "Distance to "
+#~ msgstr "Soweit no bis "
+
+#, fuzzy
+#~ msgid "Sel:"
+#~ msgstr "Wähle Ziel"
+
+#~ msgid "Friendsicon loaded"
+#~ msgstr "Friendsicon glodn"
+
+#, fuzzy
+#~ msgid "Status window"
+#~ msgstr "GPS Sochn"
+
+#, fuzzy
+#~ msgid "can't open socket for friendsserver "
+#~ msgstr "Kann Socket für Port nicht öffnen"
+
+#, fuzzy
+#~ msgid "Slow CPU"
+#~ msgstr "Zeige WP"
+
+#, fuzzy
+#~ msgid "UTC (GPS)"
+#~ msgstr "UTC"
+
+#~ msgid "Ok"
+#~ msgstr "Ok"
+
+#, fuzzy
+#~ msgid ""
+#~ "GpsDrive Help\n"
+#~ "\n"
+#~ msgstr "GpsDrive Hilfe"
+
+#, fuzzy
+#~ msgid "+    : Zoom in\n"
+#~ msgstr "Grässa"
+
+#, fuzzy
+#~ msgid "-    : Zoom out\n"
+#~ msgstr "Klana"
+
+#, fuzzy
+#~ msgid "t    : select target\n"
+#~ msgstr "Wähle Ziel"
+
+#, fuzzy
+#~ msgid "d    : download map\n"
+#~ msgstr "Karte obaloadn"
+
+#, fuzzy
+#~ msgid "l    : load track\n"
+#~ msgstr "Lade Spur"
+
+#, fuzzy
+#~ msgid "h    : show help\n"
+#~ msgstr "-h    zeige diese Hilfe\n"
+
+#~ msgid "   Ok   "
+#~ msgstr "   Ok   "
+
+#~ msgid "Close"
+#~ msgstr "Zuamochn"
+
+#~ msgid "OK"
+#~ msgstr "OK"
+
+#~ msgid "Quit"
+#~ msgstr "Beenden"
+
+#~ msgid "Load track"
+#~ msgstr "Lade Spur"
+
+#~ msgid "Setup"
+#~ msgstr "Einstellungen"
+
+#, fuzzy
+#~ msgid "not"
+#~ msgstr "Knoten"
+
+#, fuzzy
+#~ msgid ""
+#~ "GpsDrive Help\n"
+#~ "\n"
+#~ "GPSDRIVE (c) 2001,2002 Fritz Ganter <ganter at ganter.at>\n"
+#~ "\n"
+#~ "-------------------------------------------------\n"
+#~ "Website: www.kraftvoll.at/software\n"
+#~ "Disclaimer: Please do not use for navigation. \n"
+#~ "\n"
+#~ "*************************************************\n"
+#~ "\n"
+#~ "See the manpage for program details\n"
+#~ "\n"
+#~ "Mouse control (clicking on the map):\n"
+#~ "===================================\n"
+#~ "Left mouse button         : Set position (usefull in simulation mode)\n"
+#~ "Right mouse button        : Set target directly on the map\n"
+#~ "Middle mouse button       : Display position again\n"
+#~ "Shift left mouse button   : smaller map\n"
+#~ "Shift right mouse button  : larger map\n"
+#~ "Control left mouse button : Set a waypoint (mouse position) on the map\n"
+#~ "Control right mouse button: Set a waypoint at current position on the "
+#~ "map\n"
+#~ "\n"
+#~ "Short cuts:\n"
+#~ "===================================\n"
+#~ "+                         : Zoom in\n"
+#~ "-                         : Zoom out\n"
+#~ "s                         : larger map\n"
+#~ "a                         : smaller map\n"
+#~ "t                         : select target\n"
+#~ "d                         : download map\n"
+#~ "i                         : import map\n"
+#~ "l                         : load track\n"
+#~ "h                         : show help\n"
+#~ "q                         : quit program\n"
+#~ "b                         : toggle auto best map\n"
+#~ "w                         : toggle show waypoints\n"
+#~ "o                         : toggle show tracks\n"
+#~ "u                         : enter setup menu\n"
+#~ "n                         : in nightmode: toogles night display on/off\n"
+#~ "j                         : switch to next waypoint in route mode\n"
+#~ "p                         : switch to position mode\n"
+#~ "x                         : add waypoint at current position\n"
+#~ "\n"
+#~ "Suggestions welcome!\n"
+#~ "\n"
+#~ "Have a lot of fun!\n"
+#~ "\n"
+#~ msgstr ""
+#~ "GpsDrive Hilfe\n"
+#~ "\n"
+#~ "GPSDRIVE (c) 2001,2002 Fritz Ganter <ganter at ganter.at>\n"
+#~ "\n"
+#~ "-------------------------------------------------\n"
+#~ "Webseite: www.kraftvoll.at/software\n"
+#~ "Haftungsausschluss: Nicht zur Navigation verwenden.\n"
+#~ "*************************************************\n"
+#~ "\n"
+#~ "Lesen sie die Manual Seiten für die Programmdetails\n"
+#~ "\n"
+#~ "Maussteuerung (klicken auf die Karte):\n"
+#~ "===================================\n"
+#~ "Linke Maustaste                     : Setzen der Position (nützlich im "
+#~ "Simulationsmodus)\n"
+#~ "Rechte Maustaste                  : Direktes Setzen des Zieles auf der "
+#~ "Karte\n"
+#~ "Mittlere Maustaste                  : Zur Positionsanzeige zurückkehren\n"
+#~ "Umschalt-linke Maustaste      : Kleinere Karte\n"
+#~ "Umschalt-rechte Maustaste   : Größere Karte\n"
+#~ "Steuerung-linke Maustaste    : Einen Wegpunkt an der Mausposition setzen\n"
+#~ "Steuerung-rechte Maustaste : Einen Wegpunkt am momentanen Standort "
+#~ "setzen\n"
+#~ "\n"
+#~ "Tastenkürzel:\n"
+#~ "===========\n"
+#~ "+                       : Vergrössern\n"
+#~ "-                        : Verkleinern\n"
+#~ "s                       : grössere Karte\n"
+#~ "a                       : kleinere Karte\n"
+#~ "t                       : Ziel wählen\n"
+#~ "d                       : Karte downloaden\n"
+#~ "i                        : Karte importieren\n"
+#~ "l                        : Lade Spur\n"
+#~ "h                       : Hilfe zeigen\n"
+#~ "q                       : Programm beenden\n"
+#~ "b                       : Umschalten beste Karte\n"
+#~ "w                      : Umschalten Wegpunkt anzeigen\n"
+#~ "o                       : Umschalten Spuranzeige\n"
+#~ "u                       : Einstellungs Menü\n"
+#~ "x                       : Setzt Wegpunkt an aktueller Position\n"
+#~ "\n"
+#~ "Anregungen erwünscht!\n"
+#~ "\n"
+#~ "Have a lot of fun!\n"
+#~ "\n"
+
+#~ msgid "No GPS Fix found!"
+#~ msgstr "Koa GPS Fix gfundn!"
+
+#, fuzzy
+#~ msgid "Waypoint files"
+#~ msgstr "Nimm de Wegpunktdatei"
+
+#, fuzzy
+#~ msgid "Nightmode off"
+#~ msgstr "Scholtet de Schottn auf da Kortn ou oder aus"
+
+#~ msgid "GpsDrive Menu"
+#~ msgstr "GpsDrive Menü"
+
+#~ msgid "GpsDrive Settings"
+#~ msgstr "GpsDrive Einstölln"
+
+#, fuzzy
+#~ msgid "Starting point"
+#~ msgstr "Starte Route"
+
+#~ msgid "Daheim"
+#~ msgstr "Daheim"
+
+#, fuzzy
+#~ msgid "Select waypoints for a route"
+#~ msgstr "Zeige Wegpunkte auf der Karte"
+
+#~ msgid ""
+#~ "Wrong format in line %d\n"
+#~ "in your ~/.gpsdrive/way.txt file,\n"
+#~ "Format must be:\n"
+#~ "LABEL xxx.xxx yyy.yyy\n"
+#~ "where xxx.xxx is the is the latitude \n"
+#~ "and yyy.yyy is the longitude\n"
+#~ " of your waypoints.\n"
+#~ "Be sure to have a dot\n"
+#~ " for the decimal point!\n"
+#~ "\n"
+#~ "No waypoints loaded!"
+#~ msgstr ""
+#~ "Falsches Format in der Zeile %d\n"
+#~ "in ihrer ~/.gpsdrive/way.txt Datei!\n"
+#~ "Das Format muss sein:\n"
+#~ "NAME xxx.xxx yyy.yyy\n"
+#~ "wobei xxx.xxx der Breiten\n"
+#~ "und yyy.yyy der Längengrad\n"
+#~ "von ihrem Wegpunkt sind.\n"
+#~ "Stellen Sie sicher, dass sie einen Punkt als \n"
+#~ "Dezimalpunkt gesetzt haben!\n"
+#~ "\n"
+#~ "Keine Wegpunkte geladen!"

Added: packages/gpsdrive/branches/etch/po/es.gmo
===================================================================
(Binary files differ)


Property changes on: packages/gpsdrive/branches/etch/po/es.gmo
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: packages/gpsdrive/branches/etch/po/es.po
===================================================================
--- packages/gpsdrive/branches/etch/po/es.po	                        (rev 0)
+++ packages/gpsdrive/branches/etch/po/es.po	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,2462 @@
+# GpsDrive.
+# Copyright (C) 2001 Free Software Foundation, Inc.
+# Félix Martos <pakito at asinkecualo.org>, 2001.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: 1.1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-03-03 21:47+0100\n"
+"PO-Revision-Date: 2002-09-23 20:22GMT\n"
+"Last-Translator: Félix Martos <pakito at asinkecualo.org>\n"
+"Language-Team: Español <es at li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 0.9.6\n"
+
+#: src/gpsdrive.c:2179
+msgid "/_Misc. Menu"
+msgstr ""
+
+#: src/gpsdrive.c:2180
+msgid "/_Misc. Menu/Maps"
+msgstr ""
+
+#: src/gpsdrive.c:2181
+#, fuzzy
+msgid "/_Misc. Menu/Maps/_Import map"
+msgstr "i    : Importar mapa\n"
+
+#: src/gpsdrive.c:2185
+msgid "/_Misc. Menu/Maps/_Map Manager"
+msgstr ""
+
+#: src/gpsdrive.c:2187
+msgid "/_Misc. Menu/_Waypoint Manager"
+msgstr ""
+
+#: src/gpsdrive.c:2189
+#, fuzzy
+msgid "/_Misc. Menu/_Load track file"
+msgstr "Seleccione un fichero de track"
+
+#: src/gpsdrive.c:2193
+#, fuzzy
+msgid "/_Misc. Menu/Messages"
+msgstr "Seleccione un fichero de track"
+
+#: src/gpsdrive.c:2194
+msgid "/_Misc. Menu/Messages/Send message to mobile target"
+msgstr ""
+
+#: src/gpsdrive.c:2199
+msgid "/_Misc. Menu/Help"
+msgstr ""
+
+#: src/gpsdrive.c:2200
+msgid "/_Misc. Menu/Help/About"
+msgstr ""
+
+#: src/gpsdrive.c:2202
+msgid "/_Misc. Menu/Help/Topics"
+msgstr ""
+
+#: src/gpsdrive.c:2271
+msgid "  Message  "
+msgstr "  Mensaje  "
+
+#: src/gpsdrive.c:2315 src/gpsdrive.c:12145
+#, fuzzy
+msgid "Stop GPSD"
+msgstr "Lanzar GPSD"
+
+#: src/gpsdrive.c:2317 src/gpsdrive.c:12147
+#, fuzzy
+msgid "Stop GPSD and switch to simulation mode"
+msgstr "p    : cambia a modo posición\n"
+
+#: src/gpsdrive.c:2339 src/gpsdrive.c:11261
+msgid "Start GPSD"
+msgstr "Lanzar GPSD"
+
+#: src/gpsdrive.c:2341 src/gpsdrive.c:12153
+msgid "Starts GPSD for NMEA mode"
+msgstr "Lanzar GPSD para modo NMEA"
+
+#. displays zoom factor of map
+#: src/gpsdrive.c:2354 src/gpsdrive.c:2355 src/gpsdrive.c:2356
+#: src/gpsdrive.c:6264 src/gpsdrive.c:6273 src/gpsdrive.c:11484
+#: src/gpsdrive.c:11491 src/gpsdrive.c:11498 src/gpsdrive.c:11555
+#: src/gpsdrive.c:11560 src/gpsdrive.c:11566 src/gpsdrive.c:11602
+#: src/gpsdrive.c:11609 src/settings.c:1425 src/settings.c:1434
+#: src/settings.c:1443 src/settings.c:1468 src/settings.c:1478
+#: src/settings.c:1487 src/settings.c:1498 src/settings.c:1507
+#: src/settings.c:1517
+msgid "n/a"
+msgstr "n/d"
+
+#: src/gpsdrive.c:2366 src/gpsdrive.c:10245
+msgid ""
+"\n"
+"no garmin support compiled in\n"
+msgstr ""
+"\n"
+"no se ha compilado con soporte Garmin\n"
+
+#: src/gpsdrive.c:2387 src/gpsdrive.c:3136
+msgid "Simulation mode"
+msgstr "Modo: simulación"
+
+#: src/gpsdrive.c:2409
+msgid "got RMC data, using it\n"
+msgstr ""
+
+#: src/gpsdrive.c:2498 src/gpsdrive.c:11936
+msgid "Map"
+msgstr "Plano"
+
+#. if (debug)
+#: src/gpsdrive.c:2661
+msgid "got no RMC data, using GGA data\n"
+msgstr ""
+
+#: src/gpsdrive.c:2912
+msgid "Timeout getting data from GPS-Receiver!"
+msgstr "Tiempo de espera excedido obteniendo datos"
+
+#: src/gpsdrive.c:2959 src/gpsdrive.c:3008 src/gpsdrive.c:3113
+#: src/gpsdrive.c:3199 src/gpsdrive.c:3324
+msgid "Press middle mouse button for navigation"
+msgstr "Presiona el botón central para navegar"
+
+#: src/gpsdrive.c:2963
+#, fuzzy, c-format
+msgid "Direct serial connection to %s"
+msgstr "Conectado a %s"
+
+#: src/gpsdrive.c:3013 src/gpsdrive.c:3045 src/gpsdrive.c:3205
+#: src/gpsdrive.c:3330
+msgid "Not enough satellites in view!"
+msgstr "No hay suficientes satélites a la vista"
+
+#: src/gpsdrive.c:3117
+msgid "GARMIN Mode"
+msgstr "Modo Garmin"
+
+#: src/gpsdrive.c:3134
+msgid "No GPS used"
+msgstr "Ningún GPS usado"
+
+#: src/gpsdrive.c:3138
+msgid "Press middle mouse button for sim mode"
+msgstr "Presiona el botón central para navegar"
+
+#: src/gpsdrive.c:3477
+#, c-format
+msgid "Distance to HomeBase: %.1fkm, max. allowed: %.1fkm\n"
+msgstr ""
+
+#: src/gpsdrive.c:3554 src/gpsdrive.c:3784 src/gpsdrive.c:6665
+#: src/gpsdrive.c:8534 src/gpsdrive.c:9000
+msgid "To"
+msgstr ""
+
+#: src/gpsdrive.c:3866
+msgid "Error in line "
+msgstr "Error en la línea"
+
+#: src/gpsdrive.c:3868
+msgid ""
+"I have found filenames in map_koord.txt which are\n"
+"not map_* or top_* files. Please rename them and change the entries in\n"
+"map_koord.txt.  Use map_* for street maps and top_* for topographical\n"
+"maps.  Otherwise, the maps will not be displayed!"
+msgstr ""
+"¡He encontrado nombres de archivos en tu\n"
+" archivo map_koord.txt,\n"
+"que no son archivos map_* o top_*!\n"
+"Por favor renómbralos y cambia las entradas\n"
+" en map_koord.txt, si no estos mapas\n"
+" podrían no mostrarse.\n"
+"\n"
+"Usa map_* para planos de calles y\n"
+"top_* para mapas topográficos."
+
+#: src/gpsdrive.c:4229
+msgid "Auto"
+msgstr "Automático"
+
+#: src/gpsdrive.c:4440
+#, fuzzy
+msgid "Warning!"
+msgstr "Rumbo"
+
+#: src/gpsdrive.c:4441
+msgid "You should not start GpsDrive as user root!!!"
+msgstr ""
+
+#: src/gpsdrive.c:4756 src/gpsdrive.c:8145 src/gpsdrive.c:8154
+#: src/gpsdrive.c:11661 src/gpsdrive.c:11670
+msgid "mi/h"
+msgstr "mi/h"
+
+#: src/gpsdrive.c:4758 src/gpsdrive.c:8147 src/gpsdrive.c:8156
+#: src/gpsdrive.c:11663 src/gpsdrive.c:11672
+msgid "knots"
+msgstr "nudos"
+
+#: src/gpsdrive.c:4760 src/gpsdrive.c:8149 src/gpsdrive.c:8158
+#: src/gpsdrive.c:11665 src/gpsdrive.c:11674
+msgid "km/h"
+msgstr "km/h"
+
+#: src/gpsdrive.c:5088
+msgid ""
+"\n"
+"Warning: unable to load gpsdriveanim.gif!\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+
+#. This string means North,East,South,West -- please translate the letters
+#: src/gpsdrive.c:5896
+msgid "NESW"
+msgstr "NESW"
+
+#: src/gpsdrive.c:6064
+msgid "No map available for this position!"
+msgstr "El plano adecuado para su posición no está disponible"
+
+#: src/gpsdrive.c:6258
+#, fuzzy
+msgid "unused"
+msgstr "Ocaso"
+
+#: src/gpsdrive.c:6362
+msgid "can't open NMEA output file"
+msgstr "no se pudo abrir archivo para salida NMEA"
+
+#: src/gpsdrive.c:6473
+msgid " Mapfile could not be loaded:"
+msgstr "Imposible cargar los datos de imagen:"
+
+#: src/gpsdrive.c:6517
+msgid "Map found!"
+msgstr ""
+
+#: src/gpsdrive.c:6552
+msgid " Friendsicon could not be loaded:"
+msgstr "Imposible cargar icono de amigo:"
+
+#: src/gpsdrive.c:6555
+msgid ""
+"\n"
+"Warning: unable to load friendsicon!\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+
+#: src/gpsdrive.c:6843
+msgid "Select coordinates and scale"
+msgstr "Selecciona las coordenadas y la escala"
+
+#: src/gpsdrive.c:6846
+msgid "Download map"
+msgstr "Descargar mapa"
+
+#: src/gpsdrive.c:6872 src/gpsdrive.c:7911 src/gpsdrive.c:9209
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/gpsdrive.c:11792
+msgid "Latitude"
+msgstr "Latitud"
+
+#: src/gpsdrive.c:6874 src/gpsdrive.c:7913 src/gpsdrive.c:9203
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/gpsdrive.c:11793
+msgid "Longitude"
+msgstr "Longitud"
+
+#: src/gpsdrive.c:6876
+msgid "Map covers"
+msgstr "El mapa cubre"
+
+#: src/gpsdrive.c:6880
+msgid "Scale"
+msgstr "Escala"
+
+#: src/gpsdrive.c:6882
+msgid "Map file name"
+msgstr "Nombre del archivo"
+
+#: src/gpsdrive.c:6922 src/settings.c:958
+msgid "Expedia Germany"
+msgstr ""
+
+#: src/gpsdrive.c:6928 src/settings.c:964
+msgid "Expedia USA"
+msgstr ""
+
+#: src/gpsdrive.c:6934
+msgid "TopoZone(US Only)"
+msgstr ""
+
+#: src/gpsdrive.c:6943
+msgid ""
+"If selected, you download the map from the german expedia server (expedia.de)"
+msgstr ""
+
+#: src/gpsdrive.c:6947
+msgid ""
+"If selected, you download the map from the U.S. expedia server (expedia.com)"
+msgstr ""
+
+#: src/gpsdrive.c:6951
+msgid ""
+"If selected, you download the map from the TopoZone Server (US maps only)"
+msgstr ""
+
+#: src/gpsdrive.c:6977 src/gpsdrive.c:6981
+msgid ""
+"You can also select the position\n"
+"with a mouse click on the map."
+msgstr ""
+"Puedes también seleccionar la posición\n"
+"pulsando con el ratón en el mapa. "
+
+#: src/gpsdrive.c:6983
+msgid "Using Proxy and port:"
+msgstr "Usar proxy y puerto: "
+
+#: src/gpsdrive.c:7280 src/gpsdrive.c:7397
+msgid "can't open socket for port 80"
+msgstr "no se puede abrir un socket en el puerto 80"
+
+#: src/gpsdrive.c:7282 src/gpsdrive.c:7285 src/gpsdrive.c:7309
+#: src/gpsdrive.c:7312 src/gpsdrive.c:7327 src/gpsdrive.c:7330
+#: src/gpsdrive.c:7399 src/gpsdrive.c:7404 src/gpsdrive.c:7407
+#: src/gpsdrive.c:7411 src/gpsdrive.c:7446 src/gpsdrive.c:7451
+#: src/gpsdrive.c:7454 src/gpsdrive.c:7458 src/gpsdrive.c:7473
+#: src/gpsdrive.c:7478 src/gpsdrive.c:7481 src/gpsdrive.c:7485
+#, c-format
+msgid "Connecting to %s FAILED!"
+msgstr "La conexión con %s ha FALLADO."
+
+#: src/gpsdrive.c:7307 src/gpsdrive.c:7444
+msgid "Can't resolve webserver address"
+msgstr "No se puede resolver la dirección del servidor web"
+
+#: src/gpsdrive.c:7325 src/gpsdrive.c:7471
+msgid "unable to connect to Website"
+msgstr "incapaz de conectar con el sitio web"
+
+#: src/gpsdrive.c:7353 src/gpsdrive.c:7542
+msgid "read from Webserver"
+msgstr "leído del servidor web"
+
+#: src/gpsdrive.c:7380 src/gpsdrive.c:7384 src/gpsdrive.c:7386
+#: src/gpsdrive.c:7389
+#, c-format
+msgid "Connecting to %s"
+msgstr "Conectado a %s"
+
+#: src/gpsdrive.c:7499 src/gpsdrive.c:7503 src/gpsdrive.c:7505
+#: src/gpsdrive.c:7508
+#, c-format
+msgid "Now connected to %s"
+msgstr "Conectado a %s"
+
+#: src/gpsdrive.c:7585
+#, c-format
+msgid "Downloaded %d kBytes"
+msgstr "Descargados %d KBytes"
+
+#: src/gpsdrive.c:7599
+msgid "Download FAILED!"
+msgstr "¡Falló la descarga!"
+
+#: src/gpsdrive.c:7601
+#, c-format
+msgid "Download finished, got %dkB"
+msgstr "La descarga ha terminado, se descargaron %dKB"
+
+#: src/gpsdrive.c:7772
+msgid "Select a map file"
+msgstr "Seleccione un mapa"
+
+#: src/gpsdrive.c:7837
+msgid ""
+"How to calibrate your own maps? First, the map file\n"
+"must be copied into the"
+msgstr ""
+
+#: src/gpsdrive.c:7839
+#, fuzzy
+msgid ""
+"\n"
+"directory as .gif, .jpg or .png file and must have\n"
+"the size 1280x1024. The file names must be\n"
+"map_* for street maps or top_* for topographical maps!\n"
+"Load the file, select coordinates from waypoint list or\n"
+"type them in. Then click on the accept button."
+msgstr ""
+"CÓMO calibrar tus propios mapas\n"
+"\n"
+"Primero, el mapa debe estar copiado en el directorio ~/.gpsdrive directory."
+"como archivo .gif, .jpg o .png y debe tener un tamaño 1280x1024. El nombre "
+"del archivo debe ser map_* para planos de calles o top_* para mapas "
+"topográficos.\n"
+"Carga el archivo, selecciona las coordenadas\n"
+"de la lista de waypoints o escríbelas.\n"
+"Entonces presiona Aceptar."
+
+#: src/gpsdrive.c:7846
+#, fuzzy
+msgid ""
+"Now do the same for your second point and click on the\n"
+"finish button. The map can be used now."
+msgstr ""
+"Ahora haz lo mismo para el segundo punto y presionat el boton de Terminar. "
+"El mapa ya puede ser usado."
+
+#: src/gpsdrive.c:7851
+msgid "Import Assistant. Step 1"
+msgstr "Asistente de Importación. Paso 1"
+
+#: src/gpsdrive.c:7853
+msgid "Import Assistant. Step 2"
+msgstr "Asistente de Importación. Paso 2"
+
+#: src/gpsdrive.c:7858
+msgid "Accept first point"
+msgstr "Aceptar primer punto"
+
+#: src/gpsdrive.c:7860
+msgid "Finish"
+msgstr "Terminar"
+
+#: src/gpsdrive.c:7881
+msgid "Go up"
+msgstr "Ir arriba"
+
+#: src/gpsdrive.c:7884
+msgid "Go left"
+msgstr "Ir a la izquierda"
+
+#: src/gpsdrive.c:7887
+msgid "Go right"
+msgstr "Ir a la derecha"
+
+#: src/gpsdrive.c:7890
+msgid "Go down"
+msgstr "Ir abajo"
+
+#: src/gpsdrive.c:7893
+msgid "Zoom in"
+msgstr "Ampliar"
+
+#: src/gpsdrive.c:7896
+msgid "Zoom out"
+msgstr "Reducir"
+
+#: src/gpsdrive.c:7915
+msgid "Screen X"
+msgstr "Posición X"
+
+#: src/gpsdrive.c:7917
+msgid "Screen Y"
+msgstr "Posición Y"
+
+#: src/gpsdrive.c:7919
+msgid "Browse waypoint"
+msgstr "Buscar waypoints"
+
+#: src/gpsdrive.c:7950
+msgid "Browse filename"
+msgstr "Nombre del archivo"
+
+#: src/gpsdrive.c:8043
+msgid "GpsDrive Control"
+msgstr "Panel de Control"
+
+#: src/gpsdrive.c:8154 src/gpsdrive.c:8156 src/gpsdrive.c:8158
+#: src/gpsdrive.c:11670 src/gpsdrive.c:11672 src/gpsdrive.c:11674
+#: src/settings.c:1025
+msgid "Speed"
+msgstr "Velocidad"
+
+#: src/gpsdrive.c:8375
+msgid ""
+"\n"
+"distance jump is more then 1000km/h speed, ignoring\n"
+msgstr ""
+
+#: src/gpsdrive.c:8597 src/friends.c:348
+#, fuzzy
+msgid "/Misc. Menu/Messages"
+msgstr "Seleccione un fichero de track"
+
+#: src/gpsdrive.c:8600
+msgid "Sending message to friends server..."
+msgstr ""
+
+#: src/gpsdrive.c:8673
+#, fuzzy
+msgid "Message for:"
+msgstr "  Mensaje  "
+
+#: src/gpsdrive.c:8714
+#, c-format
+msgid "Date: %s"
+msgstr ""
+
+#: src/gpsdrive.c:8727
+msgid "Sends your text to to selected computer using the friends server"
+msgstr ""
+
+#: src/gpsdrive.c:8999
+msgid "SELECTED"
+msgstr "SELECCIONADO"
+
+#: src/gpsdrive.c:9172
+msgid "Add waypoint name"
+msgstr "Añadir nombre de waypoint"
+
+#: src/gpsdrive.c:9231
+msgid " Waypoint name: "
+msgstr "Nombre de Waypoint"
+
+#: src/gpsdrive.c:9244
+#, fuzzy
+msgid " Waypoint type: "
+msgstr "Nombre de Waypoint"
+
+#: src/gpsdrive.c:9489
+msgid "Name"
+msgstr ""
+
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/settings.c:1018
+msgid "Distance"
+msgstr "Distancia"
+
+#: src/gpsdrive.c:9499
+#, fuzzy
+msgid "Please select message recipient"
+msgstr "Seleccioner un destino"
+
+#: src/gpsdrive.c:9568 src/gpsdrive.c:9715
+msgid "Waypoint"
+msgstr "Waypoint"
+
+#: src/gpsdrive.c:9587
+msgid "Select reference point"
+msgstr "Seleccionar punto de referencia"
+
+#: src/gpsdrive.c:9591
+msgid "Please select your destination"
+msgstr "Seleccioner un destino"
+
+#: src/gpsdrive.c:9620
+msgid "Edit route"
+msgstr "Editar ruta"
+
+#: src/gpsdrive.c:9622
+msgid "Create route"
+msgstr "Crear ruta"
+
+#: src/gpsdrive.c:9693
+msgid "Create a route using some waypoints from this list"
+msgstr "Crear una ruta usando waypoints de esta lista"
+
+#: src/gpsdrive.c:9698
+msgid "Delete the selected waypoint from the waypoint list"
+msgstr "Borrar el waypoint seleccionado de la lista"
+
+#: src/gpsdrive.c:9702
+#, fuzzy
+msgid "Jump to the selected waypoint"
+msgstr ""
+"Click sobre un elemento de la lista\n"
+"para seleccionar siguiente waypoint"
+
+#: src/gpsdrive.c:9729
+msgid "Define route"
+msgstr "Definir ruta"
+
+#: src/gpsdrive.c:9737
+msgid "Start route"
+msgstr "Comenzar ruta"
+
+#: src/gpsdrive.c:9746
+msgid "Take all WP as route"
+msgstr "Tomar todos los WP como ruta"
+
+#: src/gpsdrive.c:9751
+msgid "Abort route"
+msgstr "Detener ruta"
+
+#: src/gpsdrive.c:9795
+msgid ""
+"Click on waypoints list\n"
+"to add waypoints"
+msgstr ""
+"Click sobre un waypoint en la lista\n"
+"para añadirlo"
+
+#: src/gpsdrive.c:9797
+msgid ""
+"Click on list item\n"
+"to select next waypoint"
+msgstr ""
+"Click sobre un elemento de la lista\n"
+"para seleccionar siguiente waypoint"
+
+#: src/gpsdrive.c:9838
+msgid ""
+"Create a route from all waypoints. Sorted with order in file, not distance."
+msgstr ""
+"Crear una ruta con todos los waypoints. Por orden de aparición, no distancia."
+
+#: src/gpsdrive.c:9842
+msgid ""
+"Click here to start your journey. GpsDrive guides you through the waypoints "
+"in this list."
+msgstr ""
+"Click aquí para comenzar la ruta. GpsDrive te guiará a través de los "
+"waypoints de esta lista."
+
+#: src/gpsdrive.c:9845
+msgid "Abort your journey"
+msgstr "Detener ruta"
+
+#: src/gpsdrive.c:9862
+msgid "-v    show version\n"
+msgstr "-v    muestra número de versión\n"
+
+#: src/gpsdrive.c:9863
+msgid "-h    print this help\n"
+msgstr "-h    muestra archivo de ayuda\n"
+
+#: src/gpsdrive.c:9864
+msgid "-d    turn on debug info\n"
+msgstr "-d    activa mostrar información de depuración\n"
+
+#: src/gpsdrive.c:9865
+msgid "-D    turn on lot of debug info\n"
+msgstr "-d    activa mostrar más información de depuración\n"
+
+#: src/gpsdrive.c:9866
+msgid "-e    use Festival-Lite (flite) for speech output\n"
+msgstr "- e    usar Fextival-Lite (flite) para salida de voz\n"
+
+#: src/gpsdrive.c:9867
+msgid "-t    set serial device for GPS i.e. /dev/ttyS1\n"
+msgstr "-t    ajusta dispositivo serie para el GPS p.ej. /dev/ttyS1\n"
+
+#: src/gpsdrive.c:9868
+msgid "-o    serial device, pty master, or file for NMEA *output*\n"
+msgstr "-o    dispositivo serie, terminal, o archivo para *salida* NMEA\n"
+
+#: src/gpsdrive.c:9869
+#, fuzzy
+msgid "-f X  Select friends server, X is i.e. www.gpsdrive.cc\n"
+msgstr "-f X  Selecciona servidor de amigos, X es p.ej. linux.quant-x.at\n"
+
+#: src/gpsdrive.c:9870
+msgid "-n    Disable use of direct serial connection\n"
+msgstr ""
+
+#: src/gpsdrive.c:9871
+msgid ""
+"-l X  Select language of the voice,\n"
+"      X may be english, spanish or german\n"
+msgstr ""
+"-l X  Seleccionar idioma para la voz,\n"
+"      X puede ser english, spanish o german\n"
+
+#: src/gpsdrive.c:9873
+msgid ""
+"-s X  set height of the screen, if autodetection\n"
+"      don't satisfy you, X is i.e. 768,600,480,200\n"
+msgstr ""
+"-s X ajusta el tamaño de la pantalla, si la autodetección,\n"
+" no te satisface, X es p. ej. 768,600,480,200\n"
+
+#. ** Mod by Arms
+#: src/gpsdrive.c:9876
+msgid "-r X  set width of the screen, only with -s\n"
+msgstr "-r X fijar ancho de la pantalla, sólo con -s\n"
+
+#: src/gpsdrive.c:9878
+msgid "-1    have only 1 button mouse, for example using touchscreen\n"
+msgstr ""
+"-1    tener sólo 1 botón de ratón, por ejemplo usando una pantalla táctil\n"
+
+#: src/gpsdrive.c:9879
+msgid "-a    don't display battery status (i.e. broken APM)\n"
+msgstr "-a    no mostrar estado de las baterías (con APM defectuoso)\n"
+
+#: src/gpsdrive.c:9881
+msgid "-b X  Servername for NMEA server (if gpsd runs on another host)\n"
+msgstr "-b X  Nombre para servidor NMEA (si gpsd se ejecuta en otra máquina)\n"
+
+#: src/gpsdrive.c:9883
+msgid "-c X  set start position in simulation mode to waypoint name X\n"
+msgstr ""
+"-c X  ajusta posición de comienzo en el modo de simulación al waypoint de "
+"nombre X\n"
+
+#: src/gpsdrive.c:9884
+msgid "-x    create separate window for menu\n"
+msgstr "-x    crear una ventana separada para el menú\n"
+
+#: src/gpsdrive.c:9885
+msgid "-p    set settings for PDA (iPAQ, Yopy...)\n"
+msgstr "-p    hacer ajustes para PDA (iPAQ, Yopy...)\n"
+
+#: src/gpsdrive.c:9887
+msgid "-i    ignore NMEA checksum (risky, only for broken GPS receivers\n"
+msgstr ""
+"-i    ignorar comprobación de errores NMEA (arriesgado, sólo para GPS que no "
+"funcionen de otra forma)\n"
+
+#: src/gpsdrive.c:9888
+msgid "-q    disable SQL support\n"
+msgstr ""
+
+#: src/gpsdrive.c:9889
+msgid "-F    force display of position even it is invalid\n"
+msgstr ""
+
+#: src/gpsdrive.c:9890
+msgid "-S    don't show splash screen\n"
+msgstr ""
+
+#: src/gpsdrive.c:9891
+msgid "-E    print out data received from direct serial connection\n"
+msgstr ""
+
+#: src/gpsdrive.c:9893
+msgid "-W x  set x to 1 to switch WAAS/EGNOS on, set to 0 to switch off\n"
+msgstr ""
+
+#: src/gpsdrive.c:9894
+msgid "-H X  correct altitude, adding this value to altitude\n"
+msgstr ""
+
+#: src/gpsdrive.c:9895
+msgid ""
+"-z    don't display zoom factor and scale\n"
+"\n"
+msgstr ""
+"-z    no mostrar el factor de zoom y la escala\n"
+"\n"
+
+#: src/gpsdrive.c:10001
+msgid "Select a track file"
+msgstr "Seleccione un fichero de track"
+
+#: src/gpsdrive.c:10179 src/gpskismet.c:380
+msgid "can't open socket for port "
+msgstr "no se puede abrir socket en el puerto "
+
+#: src/gpsdrive.c:10200
+#, c-format
+msgid ""
+"\n"
+"Cannot connect to %s: unknown host\n"
+msgstr ""
+
+#: src/gpsdrive.c:10221
+msgid "NMEA Mode, Port 2222"
+msgstr "Modo NMEA, puerto 2222"
+
+#: src/gpsdrive.c:10230
+msgid "NMEA Mode, Port 2947"
+msgstr "Modo NMEA, puerto 2947"
+
+#: src/gpsdrive.c:10249
+msgid ""
+"\n"
+"Garmin protocol detection disabled!\n"
+msgstr ""
+"\n"
+"detección de protocolo Garmin dehabilitad\n"
+
+#: src/gpsdrive.c:10600
+msgid ""
+"\n"
+"libmysqlclient.so not found.\n"
+msgstr ""
+
+#: src/gpsdrive.c:10606
+msgid ""
+"\n"
+"MySQL support disabled.\n"
+msgstr ""
+
+#: src/gpsdrive.c:10783
+msgid ""
+"\n"
+"You can only choose between english, spanish and german\n"
+"\n"
+msgstr ""
+"\n"
+"Sólo puedes elegir entre english, spanish y german\n"
+"\n"
+
+#: src/gpsdrive.c:10817 src/settings.c:1730
+#, fuzzy
+msgid "EnterYourName"
+msgstr "Interfaz"
+
+#: src/gpsdrive.c:10879
+#, c-format
+msgid ""
+"\n"
+"Using proxy: %s on port %d"
+msgstr ""
+"\n"
+"Usando proxy: %s en el puerto %d"
+
+#: src/gpsdrive.c:10883
+msgid ""
+"\n"
+"Invalid enviroment variable HTTP_PROXY, must be in format: http://proxy."
+"provider.de:3128"
+msgstr ""
+"\n"
+"Variable de entorno HTTP_PROXY no válida, debe estar en formato: http://"
+"proxy.proveedor.com:3128"
+
+#: src/gpsdrive.c:11073
+#, fuzzy
+msgid "Gpsdrive-2 (c)2001-2004 F.Ganter"
+msgstr "(c)2001,2002 F.Ganter"
+
+#: src/gpsdrive.c:11081
+msgid "Using speech output"
+msgstr "Usando salida de voz"
+
+#: src/gpsdrive.c:11115
+#, fuzzy
+msgid "/Misc. Menu/Maps/Map Manager"
+msgstr "Seleccione un fichero de track"
+
+#: src/gpsdrive.c:11119
+#, fuzzy
+msgid "/Misc. Menu/Waypoint Manager"
+msgstr "Seleccione un fichero de track"
+
+#. download map button
+#: src/gpsdrive.c:11123
+#, fuzzy
+msgid "_Download map"
+msgstr "Descargar mapa"
+
+#: src/gpsdrive.c:11142
+#, fuzzy
+msgid "M_ute"
+msgstr "Mute"
+
+#: src/gpsdrive.c:11152
+msgid "Use SQ_L"
+msgstr ""
+
+#: src/gpsdrive.c:11162
+#, fuzzy
+msgid "Show _WP"
+msgstr "Mostrar WP"
+
+#: src/gpsdrive.c:11189
+msgid "HomeBase"
+msgstr ""
+
+#: src/gpsdrive.c:11197
+#, fuzzy
+msgid "Pos. _mode"
+msgstr "Modo pos."
+
+#: src/gpsdrive.c:11203
+#, fuzzy
+msgid "Show _Track"
+msgstr "Mostrar Track"
+
+#: src/gpsdrive.c:11246
+msgid "_Navigation"
+msgstr ""
+
+#: src/gpsdrive.c:11265
+#, fuzzy
+msgid "Auto _best map"
+msgstr "Mejor mapa auto."
+
+#: src/gpsdrive.c:11275
+msgid "Save track"
+msgstr "Guardar track"
+
+#: src/gpsdrive.c:11286
+msgid "Shown map type"
+msgstr "Mostrar tipo de mapa"
+
+#: src/gpsdrive.c:11297
+msgid "Street map"
+msgstr "Plano callejero"
+
+#: src/gpsdrive.c:11304
+msgid "Topo map"
+msgstr "Mapa topográfico"
+
+#: src/gpsdrive.c:11386
+msgid ""
+"\n"
+"kismet server found\n"
+msgstr ""
+
+#: src/gpsdrive.c:11447 src/gpsdrive.c:11797
+msgid "Bearing"
+msgstr "Rumbo"
+
+#: src/gpsdrive.c:11468
+#, fuzzy
+msgid "GPS Info"
+msgstr "Info Geo"
+
+#: src/gpsdrive.c:11519
+msgid "Bat."
+msgstr "Batería"
+
+#: src/gpsdrive.c:11534
+#, fuzzy
+msgid "TC"
+msgstr "UTC "
+
+#. displays speed over ground
+#: src/gpsdrive.c:11552 src/gpsdrive.c:11807 src/gpsdrive.c:11809
+#: src/gpsdrive.c:11815 src/gpsdrive.c:11817
+msgid "---"
+msgstr "---"
+
+#: src/gpsdrive.c:11632 src/gpsdrive.c:11639
+#, fuzzy
+msgid "Selected:"
+msgstr "Seleccionar destino"
+
+#: src/gpsdrive.c:11632 src/gpsdrive.c:11639
+msgid "within"
+msgstr ""
+
+#. create frames for labels
+#: src/gpsdrive.c:11647
+msgid "Distance to target"
+msgstr "Distancia al destino"
+
+#. ** Mod by Arms
+#. if (!pdamode)
+#. gtk_box_pack_start (GTK_BOX (hbox2), frame_speed, TRUE, TRUE,
+#. 1 * PADDING);
+#: src/gpsdrive.c:11683
+msgid "Altitude"
+msgstr "Altitud"
+
+#. ** Mod by Arms
+#. if (!pdamode)
+#. gtk_box_pack_start (GTK_BOX (hbox2), frame_altitude, FALSE, TRUE,
+#. 1 * PADDING);
+#: src/gpsdrive.c:11690 src/settings.c:681
+msgid "Waypoints"
+msgstr "Waypoints"
+
+#: src/gpsdrive.c:11794
+msgid "Map file"
+msgstr "Nombre "
+
+#: src/gpsdrive.c:11795
+msgid "Map scale"
+msgstr "Escala"
+
+#: src/gpsdrive.c:11796
+msgid "Heading"
+msgstr "Dirección"
+
+#: src/gpsdrive.c:11798
+msgid "Time at Dest."
+msgstr "Tiempo de llegada"
+
+#: src/gpsdrive.c:11799
+msgid "Pref. scale"
+msgstr "Escala preferida"
+
+#: src/gpsdrive.c:11803
+msgid "000,00000N"
+msgstr ""
+
+#: src/gpsdrive.c:11805
+msgid "000,00000E"
+msgstr ""
+
+#: src/gpsdrive.c:11811 src/gpsdrive.c:11813
+msgid "0000"
+msgstr ""
+
+#. gdk_window_lower((GdkWindow *)menuwin);
+#: src/gpsdrive.c:11886 src/gpsdrive.c:11937
+msgid "Menu"
+msgstr "Menú"
+
+#. gdk_window_lower((GdkWindow *)menuwin2);
+#: src/gpsdrive.c:11895 src/gpsdrive.c:11938
+msgid "Status"
+msgstr "Estado"
+
+#: src/gpsdrive.c:12089
+msgid ""
+"Click here to switch betwen satetellite level and satellite position "
+"display. A rotating globe is shown in simulation mode"
+msgstr ""
+
+#: src/gpsdrive.c:12093
+#, fuzzy
+msgid "Number of used satellites/satellites in view"
+msgstr "No hay suficientes satélites a la vista"
+
+#: src/gpsdrive.c:12096
+msgid "EPE (Estimated Precision Error), if available"
+msgstr ""
+
+#: src/gpsdrive.c:12100
+msgid ""
+"PDOP (Position Dilution Of Precision). PDOP less than 4 gives the best "
+"accuracy, between 4 and 8 gives acceptable accuracy and greater than 8 gives "
+"unacceptable poor accuracy. "
+msgstr ""
+
+#: src/gpsdrive.c:12105
+msgid ""
+"On top of the compass you see the direction to which you move. The pointer "
+"shows the target direction on the compass."
+msgstr ""
+
+#: src/gpsdrive.c:12108
+msgid "/Misc. Menu"
+msgstr ""
+
+#: src/gpsdrive.c:12111
+msgid "Here you find extra functions for maps, tracks and messages"
+msgstr ""
+
+#: src/gpsdrive.c:12115
+msgid "Download map from Internet"
+msgstr "Descargar mapa de Internet"
+
+#: src/gpsdrive.c:12117
+msgid "Leave the program"
+msgstr "Abandonar el programa"
+
+#: src/gpsdrive.c:12120
+msgid "Disable output of speech"
+msgstr "Desactivar salida de voz"
+
+#: src/gpsdrive.c:12123
+msgid "Use SQL server for waypoints"
+msgstr ""
+
+#: src/gpsdrive.c:12126
+msgid "Show waypoints on the map"
+msgstr "Mostrar waypoints en el mapa"
+
+#: src/gpsdrive.c:12129
+msgid ""
+"Turn position mode on. You can move on the map with the left mouse button "
+"click. Clicking near the border switches to the proximate map."
+msgstr ""
+"Activar modo posición. Puedes mover el mapa con el botón izquierdo del "
+"ratón . Hacer click sobre el borde cambia al mapa próximo."
+
+#: src/gpsdrive.c:12132
+msgid "Show tracking on the map"
+msgstr "Mostrar track en el mapa"
+
+#: src/gpsdrive.c:12137
+msgid "Opens the help window"
+msgstr "Abre la ventana de ayuda"
+
+#: src/gpsdrive.c:12140
+msgid "Navigation menu. Enter here your destination."
+msgstr ""
+
+#: src/gpsdrive.c:12156
+msgid "Settings for GpsDrive"
+msgstr "Ajustes de GpsDrive"
+
+#: src/gpsdrive.c:12158
+msgid "Zoom into the current map"
+msgstr "Zoom en el mapa actual"
+
+#: src/gpsdrive.c:12160
+msgid "Zooms out off the current map"
+msgstr "Zoom fuera del mapa actual"
+
+#: src/gpsdrive.c:12162
+msgid "Select the next more detailed map"
+msgstr "Selecciona el siguiente mapa más detallado"
+
+#: src/gpsdrive.c:12164
+msgid "Select the next less detailed map"
+msgstr "Selecciona el siguiente mapa menos detallado"
+
+#: src/gpsdrive.c:12169
+msgid "Select here a destination from the waypoint list"
+msgstr "Selecciona aquí un destino de la lista de waypoints"
+
+#: src/gpsdrive.c:12173
+msgid "Select the map scale of avail. maps."
+msgstr "Selecciona la escala de los mapas disponibles."
+
+#: src/gpsdrive.c:12178
+msgid "Always select the most detailed map available"
+msgstr "Selecciona siempre el mapa mas detallado disponible"
+
+#: src/gpsdrive.c:12181
+msgid "Save the track to given filename at program exit"
+msgstr "Guardar el track con el nombre dado al salir del programa"
+
+#: src/gpsdrive.c:12187
+msgid "Number of waypoints selected from SQL server"
+msgstr ""
+
+#: src/gpsdrive.c:12191
+msgid "Number of selected waypoints, which are in range"
+msgstr ""
+
+#: src/gpsdrive.c:12195
+msgid "Range for waypoint selection in kilometers"
+msgstr ""
+
+#: src/gpsdrive.c:12198
+msgid "This shows the time from your GPS receiver"
+msgstr ""
+
+#: src/gpsdrive.c:12201
+msgid ""
+"Number of mobile targets within timeframe/total received from friendsserver"
+msgstr ""
+
+#: src/gpsdrive.c:12275
+msgid ""
+"\n"
+"\n"
+"Thank you for using GpsDrive!\n"
+"\n"
+msgstr ""
+"\n"
+"\n"
+"Gracias por usar GpsDrive\n"
+"\n"
+
+#: src/splash.c:543
+#, fuzzy
+msgid "GpsDrive v"
+msgstr "Ayuda de GpsDrive"
+
+#: src/splash.c:549
+msgid ""
+"\n"
+"\n"
+"You find new versions on http://www.gpsdrive.cc\n"
+msgstr ""
+
+#: src/splash.c:553
+msgid ""
+"Disclaimer: Please do not use for navigation. \n"
+"\n"
+msgstr ""
+"Renuncia de responsabilidades: Por favor no lo utilices para navegar. \n"
+"\n"
+
+#: src/splash.c:558
+#, fuzzy
+msgid "Please have a look into the manpage (man gpsdrive) for program details!"
+msgstr ""
+"Ver la página de manual para detalles sobre el programa\n"
+"\n"
+
+#: src/splash.c:563
+msgid "Mouse control (clicking on the map):\n"
+msgstr "Control con el ratón (haciendo click sobre el mapa):\n"
+
+#: src/splash.c:569
+msgid ""
+"Left mouse button         : Set position (usefull in simulation mode)\n"
+"Right mouse button        : Set target directly on the map\n"
+"Middle mouse button       : Display position again\n"
+"Shift left mouse button   : smaller map\n"
+"Shift right mouse button  : larger map\n"
+"Control left mouse button : Set a waypoint (mouse position) on the map\n"
+"Control right mouse button: Set a waypoint at current position on the map\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:577
+msgid ""
+"j    : switch to next waypoint in route mode\n"
+"x    : add waypoint at current position\n"
+"y    : add waypoint at mouse cursor position\n"
+msgstr ""
+
+#: src/splash.c:583
+msgid "Short cuts:\n"
+msgstr "Atajos de teclado:\n"
+
+#: src/splash.c:590
+msgid "The other key shortcuts are marked as "
+msgstr ""
+
+#: src/splash.c:591
+msgid "underlined"
+msgstr ""
+
+#: src/splash.c:593
+msgid " letters in the button text.\n"
+msgstr ""
+
+#: src/splash.c:596
+msgid ""
+"Press the underlined key together with the ALT-key.\n"
+"\n"
+"You can move on the map by selecting the Position-Mode in the menu. A blue "
+"rectangle shows this mode, you can set this cursor by clicking on the map. "
+"If you click on the border of the map (the outer 20%) then the map switches "
+"to the next area.\n"
+"\n"
+"Suggestions welcome.\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:603
+#, fuzzy
+msgid "Have a lot of fun!"
+msgstr ""
+"¡Diviértete!\n"
+"\n"
+
+#: src/splash.c:734
+msgid "Please donate to GpsDrive"
+msgstr ""
+
+#: src/splash.c:740
+msgid ""
+"\n"
+"\n"
+"GpsDrive is a project with no comercial background. \n"
+"\n"
+"It would be nice if you can give a donation to help me pay the costs for "
+"hardware and the webserver.\n"
+"\n"
+"To do so, just go to"
+msgstr ""
+
+#: src/splash.c:744
+msgid " http://www.gpsdrive.cc "
+msgstr ""
+
+#: src/splash.c:747
+msgid ""
+"and click on the PayPal button.\n"
+"\n"
+"Thank you very much for your donation!\n"
+"\n"
+"This message is only displayed once when you start an new version of "
+"GpsDrive.\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:780
+#, fuzzy
+msgid "About GpsDrive donation"
+msgstr "Panel de Control"
+
+#: src/splash.c:859
+msgid "From:"
+msgstr ""
+
+#: src/splash.c:928
+#, c-format
+msgid ""
+"You received a message from\n"
+"the friends server (%s)\n"
+msgstr ""
+
+#: src/splash.c:938
+msgid "You received a message through the friends server from:\n"
+msgstr ""
+
+#: src/splash.c:948
+#, fuzzy
+msgid "Message text:\n"
+msgstr "  Mensaje  "
+
+#: src/splash.c:1004
+msgid "Error saving config file ~/.gpsdrive/gpsdriverc"
+msgstr "Error guardando dichero de configuración ~/.gpsdrive/gpsdriverc"
+
+#: src/splash.c:1519 src/splash.c:1578
+msgid ""
+"\n"
+"Warning: unable to open splash picture\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:1562
+#, fuzzy
+msgid "About GpsDrive"
+msgstr "Panel de Control"
+
+#: src/settings.c:438
+msgid "Setting WP label font"
+msgstr ""
+
+#: src/settings.c:440
+msgid "Setting big display font"
+msgstr ""
+
+#: src/settings.c:507
+msgid "Setting big display color"
+msgstr ""
+
+#: src/settings.c:545
+msgid "Setting track color"
+msgstr ""
+
+#: src/settings.c:587
+msgid "Setting friends label color"
+msgstr ""
+
+#: src/settings.c:668
+msgid ""
+"Don't use more than\n"
+"100 waypoint(way*.txt) files!"
+msgstr ""
+"No uses más de\n"
+"100 ficheros de waypoint (way*.txt)"
+
+#: src/settings.c:679
+msgid "Waypoint files to use"
+msgstr "Fichero de waypoints a usar"
+
+#: src/settings.c:704 src/settings.c:709
+msgid "Settings"
+msgstr "Opciones"
+
+#. misc area
+#: src/settings.c:716
+msgid "Misc settings"
+msgstr "Opciones varias"
+
+#: src/settings.c:720
+msgid "Show Shadows"
+msgstr "Mostrar sombras"
+
+#: src/settings.c:727
+msgid "Etched frames"
+msgstr ""
+
+#: src/settings.c:735
+msgid "Simulation: Follow target"
+msgstr "Simulación: seguir destino"
+
+#: src/settings.c:742
+msgid "Maximum CPU load"
+msgstr ""
+
+#: src/settings.c:752
+#, fuzzy
+msgid "Track"
+msgstr "Mostrar Track"
+
+#: src/settings.c:767
+msgid "Maps directory"
+msgstr "Directorio de mapas"
+
+#: src/settings.c:773
+msgid "Automatic"
+msgstr "Automático"
+
+#: src/settings.c:779
+msgid "On"
+msgstr "On"
+
+#: src/settings.c:784
+msgid "Off"
+msgstr "Off"
+
+#. gtk_table_attach_defaults (GTK_TABLE (misctable), label2, 0, 2, 3, 4);
+#. gtk_table_attach_defaults (GTK_TABLE (misctable), mapdirbt, 0, 2, 4, 5);
+#. GPS settings area
+#: src/settings.c:808
+msgid "GPS settings"
+msgstr "Opciones del GPS"
+
+#. gtk_container_add (GTK_CONTAINER (f4), gpstable);
+#: src/settings.c:822
+msgid "Test for GARMIN"
+msgstr "Probar Garmin"
+
+#: src/settings.c:833
+msgid "Use DGPS-IP"
+msgstr "Usar DGPS-IP"
+
+#: src/settings.c:843
+msgid "GPS is Earthmate"
+msgstr ""
+
+#: src/settings.c:853
+msgid "Use serial conn."
+msgstr ""
+
+#: src/settings.c:868
+msgid "Interface"
+msgstr "Interfaz"
+
+#: src/settings.c:869
+msgid "Baudrate"
+msgstr ""
+
+#. units area
+#: src/settings.c:904
+msgid "Units"
+msgstr "Unidades"
+
+#: src/settings.c:910
+msgid "Miles"
+msgstr "Millas"
+
+#: src/settings.c:915
+msgid "Metric"
+msgstr "Métrico"
+
+#: src/settings.c:920 src/nautic.c:106
+msgid "Nautic"
+msgstr "Náutico"
+
+#: src/settings.c:930
+msgid "Decimal position"
+msgstr "Posición decimal"
+
+#. gtk_box_pack_start (GTK_BOX (v2), miles, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), metric, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), nautic, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), minsecbt, TRUE, FALSE, 2 * PADDING);
+#.
+#. default download server
+#: src/settings.c:948
+msgid "Default map server"
+msgstr "Servidor predeterminado"
+
+#. Night light mode
+#: src/settings.c:981
+msgid "Night light mode"
+msgstr "Modo de luz nocturna"
+
+#.  gtk_table_attach_defaults (GTK_TABLE (table), f5, 0, 2, 2, 3);
+#. Sound settings
+#: src/settings.c:999
+#, fuzzy
+msgid "Speech output settings"
+msgstr "Opciones aeronáuticas"
+
+#.
+#. set following sounds
+#. sound_direction ... say direction to target
+#. sound_distance  ... say distance to target
+#. sound_speed     ... say your current speed
+#. sound_gps       ... say GPS status
+#.
+#.
+#: src/settings.c:1011
+msgid "Direction"
+msgstr ""
+
+#: src/settings.c:1032
+#, fuzzy
+msgid "GPS Status"
+msgstr "Estado"
+
+#: src/settings.c:1046
+msgid "Switch on for speech output of the direction to the target"
+msgstr ""
+
+#: src/settings.c:1051
+msgid "Switch on for speech output of the distance to the target"
+msgstr ""
+
+#: src/settings.c:1056
+msgid "Switch on for speech output of your current speed"
+msgstr ""
+
+#: src/settings.c:1061
+msgid "Switch on for speech output of the status of your GPS signal"
+msgstr ""
+
+#. Font settings
+#: src/settings.c:1066
+#, fuzzy
+msgid "Font and color settings"
+msgstr "Opciones del GPS"
+
+#. gtk_box_pack_start (GTK_BOX (h1), f5, TRUE, FALSE, 2 * PADDING);
+#: src/settings.c:1071
+msgid "WP Label"
+msgstr ""
+
+#: src/settings.c:1072
+msgid "Big display"
+msgstr ""
+
+#: src/settings.c:1073
+msgid "Display color"
+msgstr ""
+
+#: src/settings.c:1101
+msgid "Switch units to statute miles"
+msgstr "Cambiar unidades a millas"
+
+#: src/settings.c:1103
+msgid "Switch units to nautical miles"
+msgstr "Cambiar unidades a millas náuticas"
+
+#: src/settings.c:1105
+msgid "Switch units to metric system (Kilometers)"
+msgstr "Cambiar unidades a sistema métrico"
+
+#: src/settings.c:1110
+msgid ""
+"If selected display latitude and longitude in decimal degrees, otherwise in "
+"degree, minutes and seconds notation"
+msgstr ""
+"Activado muestra la latitud y la longitud en decimales de grados, si no en "
+"la notación grados, minutos y segundos"
+
+#: src/settings.c:1115
+#, fuzzy
+msgid ""
+"Set the german expedia server(expedia.de) as default download server. Use "
+"this if you are in Europe"
+msgstr "Usar Expedia como servidor predeterminado"
+
+#: src/settings.c:1119
+msgid "Set Expedia as default download server"
+msgstr "Usar Expedia como servidor predeterminado"
+
+#: src/settings.c:1122
+msgid "Switches shadows on map on or off"
+msgstr "Activar/desactivar sombras en el mapa"
+
+#: src/settings.c:1126
+msgid "Switches between different type of frame ornaments"
+msgstr ""
+
+#: src/settings.c:1131
+#, c-format
+msgid ""
+"Select the approx. maximum CPU load, use 20-30% on notebooks while on "
+"battery to save battery power. This effects the refresh rate of the map "
+"screen"
+msgstr ""
+
+#: src/settings.c:1136
+msgid "If activated, pointer moves to target in simulation mode"
+msgstr ""
+"Si está activado, el puntero se mueve hacia el destino en modo simulación"
+
+#: src/settings.c:1140
+msgid "Set here the color of the drawn track"
+msgstr ""
+
+#: src/settings.c:1144
+msgid ""
+"Path to your map files. In the specified directory also the index file "
+"map_koord.txt must be present."
+msgstr ""
+"Ruta a tus ficheros de mapas. En el directorio especificado también debe "
+"estar presente el fichero índice map_koord.txt."
+
+#: src/settings.c:1149
+msgid ""
+"If selected, gpsdrive try to use GARMIN mode if possible. Unselect if you "
+"only have a NMEA device."
+msgstr ""
+"Si se ha seleccionado, gpsdrive intenta usar el modo GARMIN si es posible. "
+"No lo selecciones si tienes un dispositivo sólo NMEA."
+
+#: src/settings.c:1154
+msgid ""
+"Set here the baud rate of your GPS device, NMEA devices usually have a speed "
+"of 4800 baud"
+msgstr ""
+
+#: src/settings.c:1159
+msgid ""
+"If selected, gpsdrive try to use differential GPS over IP. You must have an "
+"internet connection and a DGPS capable GPS receiver. Works only in NMEA mode!"
+msgstr ""
+"Si se ha seleccionado, gpsdrive intenta usar GPS diferencial sobre IP. Debes "
+"tener conexión a internet y un receptor GPS compatible DGPS. Sólo funciona "
+"en modo NMEA."
+
+#: src/settings.c:1164
+msgid ""
+"Select this if you have a DeLorme Earthmate GPS receiver. The StartGPSD "
+"button will provide gpsd with the needed additional parameters"
+msgstr ""
+
+#: src/settings.c:1169
+msgid ""
+"Select this if you want to use of the direct serial connection. If disabled, "
+"you can use the receiver only through gpsd. On the other hand, the direct "
+"serial connection needs no gpsd running and detects the working receiver on "
+"startup"
+msgstr ""
+
+#: src/settings.c:1174
+msgid "Specify the serial interface where the GPS is connected"
+msgstr "Especifica el interfaz serie al que el GPS está conectado"
+
+#: src/settings.c:1179
+msgid ""
+"Switches automagically to night mode if it is dark outside. Press 'N' key to "
+"turn off nightmode."
+msgstr ""
+"Cambia automáticamente al modo nocturno si está oscuro fuera. Presiona la "
+"tecla 'N'para apagar el modo nocturno."
+
+#: src/settings.c:1183
+msgid "Switches night mode on. Press 'N' key to turn off nightmode."
+msgstr ""
+"Cambia a modo nocturno activo. Presiona la tecla 'N' para apagar el modo "
+"nocturno."
+
+#: src/settings.c:1186
+msgid "Switches night mode off"
+msgstr "Activar/desactivar modo nocturno"
+
+#: src/settings.c:1190
+#, fuzzy
+msgid "Here you can set the font for the waypoint labels"
+msgstr "Borrar el waypoint seleccionado de la lista"
+
+#: src/settings.c:1195
+msgid "Here you can set the font for the big display for Speed and Distance"
+msgstr ""
+
+#: src/settings.c:1199
+#, fuzzy
+msgid ""
+"Here you can set the color for the big display for speed, distance and "
+"altitude"
+msgstr "Borrar el waypoint seleccionado de la lista"
+
+#: src/settings.c:1377
+msgid "Geo information"
+msgstr "Informaciones geográficas "
+
+#: src/settings.c:1379
+msgid "Geo info"
+msgstr "Info Geo"
+
+#: src/settings.c:1390
+msgid "Sunrise"
+msgstr "Amanecer"
+
+#: src/settings.c:1392
+msgid "Sunset"
+msgstr "Ocaso"
+
+#: src/settings.c:1395
+msgid "Standard"
+msgstr "Estándar"
+
+#: src/settings.c:1397
+msgid "Transit"
+msgstr "Mediodía"
+
+#: src/settings.c:1399
+msgid "GPS-Time"
+msgstr ""
+
+#: src/settings.c:1401
+msgid "Astro."
+msgstr "Astro."
+
+#: src/settings.c:1403
+msgid "Naut."
+msgstr "Náut."
+
+#: src/settings.c:1405
+msgid "Civil"
+msgstr "Civil"
+
+#: src/settings.c:1407
+msgid "Timezone"
+msgstr "Zona horaria"
+
+#: src/settings.c:1409
+msgid "Store TZ"
+msgstr ""
+
+#: src/settings.c:1419
+msgid ""
+"If selected, the timezone is stored, otherwise your actual timezone will "
+"automatically used"
+msgstr ""
+
+#: src/settings.c:1453
+msgid "Night"
+msgstr "Noche"
+
+#: src/settings.c:1455
+msgid "Day"
+msgstr "Día"
+
+#: src/settings.c:1592 src/settings.c:1594 src/settings.c:1597
+msgid "Unit:"
+msgstr "Unidades"
+
+#: src/settings.c:1592
+msgid "miles"
+msgstr "Millas"
+
+#: src/settings.c:1595
+msgid "nautic miles/knots"
+msgstr "millas náuticas/nudos"
+
+#: src/settings.c:1597
+msgid "kilometers"
+msgstr "kilómetros"
+
+#: src/settings.c:1612
+msgid "Trip information"
+msgstr "Información de viaje"
+
+#: src/settings.c:1614
+msgid "Trip info"
+msgstr "Información de viaje"
+
+#: src/settings.c:1628
+msgid "Odometer"
+msgstr "Odómetro"
+
+#: src/settings.c:1630
+msgid "Total time"
+msgstr "Tiempo total"
+
+#: src/settings.c:1632
+msgid "Av. speed"
+msgstr "Vel. media"
+
+#: src/settings.c:1634
+msgid "Max. speed"
+msgstr "Vel. máx"
+
+#: src/settings.c:1658
+msgid "Reset"
+msgstr ""
+
+#: src/settings.c:1663
+msgid "Resets the trip values to zero"
+msgstr ""
+
+#: src/settings.c:1732
+msgid "You should change your name in the first field!"
+msgstr ""
+
+#: src/settings.c:1918
+#, fuzzy
+msgid "Show position newer as"
+msgstr "Mostrar waypoints en el mapa"
+
+#: src/settings.c:1920
+msgid "Friends server setup"
+msgstr ""
+
+#: src/settings.c:1921
+#, fuzzy
+msgid "Friends"
+msgstr "Terminar"
+
+#: src/settings.c:1933
+#, fuzzy
+msgid "Days"
+msgstr "Día"
+
+#: src/settings.c:1934
+msgid "Hours"
+msgstr ""
+
+#: src/settings.c:1935
+#, fuzzy
+msgid "Minutes"
+msgstr "Millas"
+
+#: src/settings.c:1941
+msgid "Your name"
+msgstr ""
+
+#: src/settings.c:1946
+msgid ""
+"Set here your name which should be shown near your vehicle. You may use "
+"spaces here!"
+msgstr ""
+
+#: src/settings.c:1958
+msgid "Server name"
+msgstr ""
+
+#: src/settings.c:1963
+msgid ""
+"Set here the full qualified host name (i.e. www.gpsdrive.cc) of your friends "
+"server, then you have to press the \"Lookup\" button!"
+msgstr ""
+
+#: src/settings.c:1972
+msgid "Lookup"
+msgstr ""
+
+#: src/settings.c:1980
+msgid ""
+"You have to press the \"Lookup\" button to resolve the friends server name!"
+msgstr ""
+
+#: src/settings.c:1991
+msgid "Set here the color of the label displayed at friends position"
+msgstr ""
+
+#: src/settings.c:1997
+msgid "Friends server IP"
+msgstr ""
+
+#: src/settings.c:2002
+msgid ""
+"Set here the IP adress (i.e. 127.0.0.1) if you don't set the hostname above"
+msgstr ""
+
+#: src/settings.c:2007 src/settings.c:2012 src/settings.c:2016
+msgid ""
+"Set here the time limit in which the friends position is shown. Older "
+"positions are not shown."
+msgstr ""
+
+#: src/settings.c:2028
+msgid "Use friends server"
+msgstr ""
+
+#: src/settings.c:2036
+msgid ""
+"Enable/disable use of friends server. You must enter a Username, don't use "
+"the default name!"
+msgstr ""
+
+#: src/settings.c:2039
+msgid ""
+"If you enable the friendsserver mode,\n"
+"<span color=\"red\">everyone</span> using the same server\n"
+"can see your position!"
+msgstr ""
+
+#: src/settings.c:2094
+msgid "SQL selection criterias"
+msgstr ""
+
+#: src/settings.c:2095
+msgid "SQL"
+msgstr ""
+
+#: src/settings.c:2121
+msgid "Dist. limit[km] "
+msgstr ""
+
+#: src/settings.c:2126
+msgid "If enabled, show waypoints only within this distance"
+msgstr ""
+
+#: src/settings.c:2142
+msgid "Enable/disable distance selection"
+msgstr ""
+
+#: src/settings.c:2151
+#, fuzzy
+msgid "Show no_ssid "
+msgstr "Mostrar WP"
+
+#: src/settings.c:2162
+msgid ""
+"If enabled, WLANs with no SSID are shown, because this is perhaps useless, "
+"you can disable it here"
+msgstr ""
+
+#: src/settings.c:2168
+#, fuzzy
+msgid "Selection mode"
+msgstr "Modo: simulación"
+
+#: src/settings.c:2170
+msgid "include"
+msgstr ""
+
+#: src/settings.c:2173
+msgid "exclude"
+msgstr ""
+
+#: src/settings.c:2177
+msgid ""
+"Show only waypoints where the type field contains one of the selected words"
+msgstr ""
+
+#: src/settings.c:2181
+msgid ""
+"Show only waypoints where the type field doesn't contain any the selected "
+"words"
+msgstr ""
+
+#: src/fly.c:149
+msgid "Aeronautical settings"
+msgstr "Opciones aeronáuticas"
+
+#: src/fly.c:151
+msgid "Fly"
+msgstr "Vuelo"
+
+#: src/fly.c:158
+msgid "Plane mode"
+msgstr "Modo avión"
+
+#: src/fly.c:165
+msgid "Use VFR"
+msgstr "Usar VFR"
+
+#: src/fly.c:171
+msgid "Use IFR"
+msgstr "Usar IFR"
+
+#: src/fly.c:181
+msgid "max. horizontal deviation "
+msgstr "desviación máx. horizontal"
+
+#: src/fly.c:183
+msgid "max. vertical deviation "
+msgstr "desviación máx. vertical"
+
+#: src/fly.c:198
+msgid "disable vert. deviation warning above 5000ft MSL"
+msgstr "desactivar aviso de desviación vert. por encima de 5000ft MSL"
+
+#: src/nautic.c:103
+msgid "Nautic settings"
+msgstr "Opciones náuticas"
+
+#. if (debug)
+#: src/gpssql.c:215
+#, c-format
+msgid ""
+"\n"
+"SQL: connected to %s as %s using %s\n"
+msgstr ""
+
+#: src/gpssql.c:278
+#, c-format
+msgid "rows inserted: %d\n"
+msgstr ""
+
+#: src/gpssql.c:293
+#, c-format
+msgid "last index: %d\n"
+msgstr ""
+
+#: src/gpssql.c:314
+#, c-format
+msgid "rows deleted: %d\n"
+msgstr ""
+
+#: src/gpssql.c:366 src/gpssql.c:372
+#, c-format
+msgid "Loaded user defined icon %s\n"
+msgstr ""
+
+#: src/gpssql.c:455
+#, c-format
+msgid "%d(%d) rows read in %.2f seconds\n"
+msgstr ""
+
+#: src/friends.c:363
+#, fuzzy
+msgid "unknown"
+msgstr "Desconocido"
+
+#: src/friendsd.c:472
+msgid "server: please don't run me as root\n"
+msgstr ""
+
+#: src/friendsd.c:484
+#, c-format
+msgid ""
+"\n"
+"Usage:\n"
+"   %s -n servername\n"
+"provides a name for your server\n"
+msgstr ""
+
+#: src/gpsnasamap.c:189
+#, c-format
+msgid "could not create output map file %s!\n"
+msgstr ""
+
+#. g_signal_connect (window, "destroy",
+#. G_CALLBACK (gtk_widget_destroyed), &window);
+#: src/gpsnasamap.c:204
+msgid "Creating map..."
+msgstr ""
+
+#: src/gpsnasamap.c:212
+msgid "Creating a temporary map from NASA satellite images"
+msgstr ""
+
+#: src/gpsnasamap.c:219
+#, c-format
+msgid "converting map for latitude: %f and longitude: %f ...\n"
+msgstr ""
+
+#: src/gpsnasamap.c:324
+msgid ""
+"\n"
+"You can permanently add this map file with following line in your\n"
+"map_koord.txt (rename the file!):\n"
+msgstr ""
+
+#: src/gpsserial.c:252
+msgid "waiting for thread to stop\n"
+msgstr ""
+
+#: src/gpsserial.c:275
+#, c-format
+msgid ""
+"\n"
+"error opening %s(%d)\n"
+msgstr ""
+
+#: src/gpsserial.c:278
+#, c-format
+msgid "successfull opened %s\n"
+msgstr ""
+
+#: src/gpsserial.c:284
+msgid "switching WAAS/EGNOS on\n"
+msgstr ""
+
+#: src/gpsserial.c:290
+msgid "switching WAAS/EGNOS off\n"
+msgstr ""
+
+#~ msgid "Set Mapblast as default download server"
+#~ msgstr "Usar Mapblast como servidor predeterminado"
+
+#~ msgid "Sat level"
+#~ msgstr "Nivel de asiento"
+
+#, fuzzy
+#~ msgid "Simulation"
+#~ msgstr "Modo: simulación"
+
+#, fuzzy
+#~ msgid "Sim.mode"
+#~ msgstr "Modo: simulación"
+
+#~ msgid "Yes, please start gpsd"
+#~ msgstr "Si, por favor lanza gpsd"
+
+#~ msgid "No, start simulation"
+#~ msgstr "No, comienza simulación"
+
+#~ msgid ""
+#~ "Neither gpsd nor GARMIN device detected!\n"
+#~ "Should I start gpsd (NMEA mode) for you?"
+#~ msgstr ""
+#~ "No se ha detectado gpsd ni un dispositivo GARMIN\n"
+#~ "Lanzo gpsd (modo NMEA) por ti?"
+
+#~ msgid "-n X  Select display name on friends server, X is i.e. Fritz\n"
+#~ msgstr ""
+#~ "-n X  Selecciona nombre a mostrar en el servidor de amigos, X es p.ej. "
+#~ "Fritz\n"
+
+#~ msgid "UTC "
+#~ msgstr "UTC "
+
+#~ msgid "Cancel"
+#~ msgstr "Cancelar"
+
+#, fuzzy
+#~ msgid "/Misc. Menu/Maps"
+#~ msgstr "Seleccione un fichero de track"
+
+#~ msgid "Import"
+#~ msgstr "Importar"
+
+#~ msgid "Let you import and calibrate your own map"
+#~ msgstr "Te permite importar y calibrar tus propios mapas"
+
+#~ msgid ""
+#~ "Left mouse button         : Set position (usefull in simulation mode)\n"
+#~ msgstr ""
+#~ "Boton Izquierdo           : Fijar posición (útil en el modo simulación)\n"
+
+#~ msgid "Right mouse button        : Set target directly on the map\n"
+#~ msgstr ""
+#~ "Botón Derecho             : Fijar destino directamente sobre el mapa\n"
+
+#~ msgid "Middle mouse button       : Display position again\n"
+#~ msgstr "Botón central             : Mostrar posición de nuevo\n"
+
+#~ msgid "Shift left mouse button   : smaller map\n"
+#~ msgstr "May + botón izquierdo     : Mapa más pequeño\n"
+
+#~ msgid "Shift right mouse button  : larger map\n"
+#~ msgstr "May + botón derecho       : Mapa más grande\n"
+
+#~ msgid ""
+#~ "Control left mouse button : Set a waypoint (mouse position) on the map\n"
+#~ msgstr ""
+#~ "Control + botón izquierdo        : Fijar un waypoint sobre el mapa "
+#~ "(posicióndel ratón)\n"
+
+#~ msgid ""
+#~ "Control right mouse button: Set a waypoint at current position on the "
+#~ "map\n"
+#~ "\n"
+#~ msgstr ""
+#~ "Control + botón derecho:  Fijar un waypoint sobre el mapa (posición "
+#~ "actual)\n"
+#~ "\n"
+
+#~ msgid "j    : switch to next waypoint in route mode\n"
+#~ msgstr "j    : cambia al siguiente waypoint en modo ruta\n"
+
+#, fuzzy
+#~ msgid "x    : add waypoint at current position\n"
+#~ msgstr ""
+#~ "x    : añadir waypoint en la posición actual\n"
+#~ "\n"
+
+#, fuzzy
+#~ msgid ""
+#~ "y    : add waypoint at mouse cursor position\n"
+#~ "\n"
+#~ msgstr ""
+#~ "x    : añadir waypoint en la posición actual\n"
+#~ "\n"
+
+#~ msgid ""
+#~ "Suggestions welcome!\n"
+#~ "\n"
+#~ msgstr ""
+#~ "¡Se admiten sugerencias!\n"
+#~ "\n"
+
+#, fuzzy
+#~ msgid "/Operations Menu"
+#~ msgstr "Seleccione un fichero de track"
+
+#, fuzzy
+#~ msgid "/ Messages"
+#~ msgstr "  Mensaje  "
+
+#, fuzzy
+#~ msgid "/ Help"
+#~ msgstr "Ayuda"
+
+#~ msgid "Load and display a previous stored track file"
+#~ msgstr "Cargar y mostrar un fichero de track previo"
+
+#~ msgid "Distance to "
+#~ msgstr "Distancia a "
+
+#, fuzzy
+#~ msgid "Sel:"
+#~ msgstr "Seleccionar destino"
+
+#, fuzzy
+#~ msgid "Time"
+#~ msgstr "Zona horaria"
+
+#~ msgid "Friendsicon loaded"
+#~ msgstr "Icono de amigo cargado"
+
+#~ msgid "Menu window"
+#~ msgstr "Ventana de menó"
+
+#~ msgid "Status window"
+#~ msgstr "Ventana de estado"
+
+#, fuzzy
+#~ msgid "can't open socket for friendsserver "
+#~ msgstr "no se puede abrir socket en el puerto "
+
+#~ msgid "Slow CPU"
+#~ msgstr "CPU lenta"
+
+#~ msgid ""
+#~ "Select, if your CPU is very slow ( < PII MMX/233MHz). This reduces the "
+#~ "framerate to 1 frame/second."
+#~ msgstr ""
+#~ "Selecciónalo si tu CPU es muy lenta ( < PII MMX/233MHz). Reduceel "
+#~ "refresco a 1 cuadro/segundo"
+
+#~ msgid "UTC (GPS)"
+#~ msgstr "UTC (GPS)"
+
+#~ msgid "Ok"
+#~ msgstr "Aceptar"
+
+#~ msgid "Delete WP"
+#~ msgstr "Borrar WP"
+
+#~ msgid ""
+#~ "GpsDrive Help\n"
+#~ "\n"
+#~ msgstr ""
+#~ "Ayuda de GpsDrive\n"
+#~ "\n"
+
+#, fuzzy
+#~ msgid ""
+#~ "GPSDRIVE (c) 2001-2003 Fritz Ganter <ganter at ganter.at>\n"
+#~ "\n"
+#~ msgstr ""
+#~ "GPSDRIVE (c) 2001,2002 Fritz Ganter <ganter at ganter.at>\n"
+#~ "Traducción: Félix Martos <pakito at asinkecualo.org>\n"
+#~ "\n"
+
+#~ msgid "Website: www.kraftvoll.at/software\n"
+#~ msgstr "Website: www.kraftvoll.at/software\n"
+
+#~ msgid "+    : Zoom in\n"
+#~ msgstr "+    : Aumentar zoom\n"
+
+#~ msgid "-    : Zoom out\n"
+#~ msgstr "-    : Disminuir zoom\n"
+
+#~ msgid "s    : larger map\n"
+#~ msgstr "s    : Mapa mayor\n"
+
+#~ msgid "a    : smaller map\n"
+#~ msgstr "a    : Mapa más pequeño\n"
+
+#~ msgid "t    : select target\n"
+#~ msgstr "t    : Seleccionar destino\n"
+
+#~ msgid "d    : download map\n"
+#~ msgstr "d    : Descargar mapa\n"
+
+#~ msgid "l    : load track\n"
+#~ msgstr "l    : Cargar track\n"
+
+#~ msgid "h    : show help\n"
+#~ msgstr "h    : Muestra ayuda\n"
+
+#~ msgid "q    : quit program\n"
+#~ msgstr "q:   : Salir del programa\n"
+
+#~ msgid "b    : toggle auto best map\n"
+#~ msgstr "b    : Conmutar mejor mapa auto\n"
+
+#~ msgid "w    : toggle show waypoints\n"
+#~ msgstr "w    : Conmutar mostrar waypoints\n"
+
+#~ msgid "o    : toggle show tracks\n"
+#~ msgstr "o    : Conmutar mostrar tracks\n"
+
+#~ msgid "u    : enter setup menu\n"
+#~ msgstr "u    : Entrar en el menú de configuración\n"
+
+#~ msgid "n    : in nightmode: toogles night display on/off\n"
+#~ msgstr "n    : en modo nocturno: cambia display nocturno on/off\n"
+
+#~ msgid "   Ok   "
+#~ msgstr " Aceptar "
+
+#~ msgid "Close"
+#~ msgstr "Cerrar"
+
+#~ msgid "OK"
+#~ msgstr "Aceptar"
+
+#~ msgid "Quit"
+#~ msgstr "Salir"
+
+#~ msgid "Load track"
+#~ msgstr "Cargar track"
+
+#~ msgid "Setup"
+#~ msgstr "Configurar"
+
+#, fuzzy
+#~ msgid "not"
+#~ msgstr "nudos"
+
+#~ msgid "-------------------------------------------------\n"
+#~ msgstr "-------------------------------------------------\n"
+
+#~ msgid ""
+#~ "*************************************************\n"
+#~ "\n"
+#~ msgstr ""
+#~ "*************************************************\n"
+#~ "\n"
+
+#~ msgid "===================================\n"
+#~ msgstr "===================================\n"
+
+#~ msgid ""
+#~ "GpsDrive Help\n"
+#~ "\n"
+#~ "GPSDRIVE (c) 2001,2002 Fritz Ganter <ganter at ganter.at>\n"
+#~ "\n"
+#~ "-------------------------------------------------\n"
+#~ "Website: www.kraftvoll.at/software\n"
+#~ "Disclaimer: Please do not use for navigation. \n"
+#~ "\n"
+#~ "*************************************************\n"
+#~ "\n"
+#~ "See the manpage for program details\n"
+#~ "\n"
+#~ "Mouse control (clicking on the map):\n"
+#~ "===================================\n"
+#~ "Left mouse button         : Set position (usefull in simulation mode)\n"
+#~ "Right mouse button        : Set target directly on the map\n"
+#~ "Middle mouse button       : Display position again\n"
+#~ "Shift left mouse button   : smaller map\n"
+#~ "Shift right mouse button  : larger map\n"
+#~ "Control left mouse button : Set a waypoint (mouse position) on the map\n"
+#~ "Control right mouse button: Set a waypoint at current position on the "
+#~ "map\n"
+#~ "\n"
+#~ "Short cuts:\n"
+#~ "===================================\n"
+#~ "+                         : Zoom in\n"
+#~ "-                         : Zoom out\n"
+#~ "s                         : larger map\n"
+#~ "a                         : smaller map\n"
+#~ "t                         : select target\n"
+#~ "d                         : download map\n"
+#~ "i                         : import map\n"
+#~ "l                         : load track\n"
+#~ "h                         : show help\n"
+#~ "q                         : quit program\n"
+#~ "b                         : toggle auto best map\n"
+#~ "w                         : toggle show waypoints\n"
+#~ "o                         : toggle show tracks\n"
+#~ "u                         : enter setup menu\n"
+#~ "n                         : in nightmode: toogles night display on/off\n"
+#~ "j                         : switch to next waypoint in route mode\n"
+#~ "p                         : switch to position mode\n"
+#~ "x                         : add waypoint at current position\n"
+#~ "\n"
+#~ "Suggestions welcome!\n"
+#~ "\n"
+#~ "Have a lot of fun!\n"
+#~ "\n"
+#~ msgstr ""
+#~ "Ayuda de GpsDrive\n"
+#~ "\n"
+#~ "GPSDRIVE (c) 2001,2002 Fritz Ganter <ganter at ganter.at>\n"
+#~ "Traducción: Félix Martos <pakito at asinkecualo.org>\n"
+#~ "\n"
+#~ "-------------------------------------------------\n"
+#~ "Website: www.kraftvoll.at/software\n"
+#~ "Renuncia de responsabilidades: Por favor no lo utilices para navegar. \n"
+#~ "\n"
+#~ "*************************************************\n"
+#~ "\n"
+#~ "Ver la página de manual para detalles sobre el programa\n"
+#~ "\n"
+#~ "Control con el ratón (haciendo click sobre el mapa):\n"
+#~ "===================================\n"
+#~ "Boton Izquierdo          : Fijar posición (útil en el modo simulación)\n"
+#~ "Botón Derecho            : Fijar destino directamente sobre el mapa\n"
+#~ "Botón central            : Mostrar posición de nuevo\n"
+#~ "Shif + botón izquierdo   : Mapa más pequeño\n"
+#~ "Shift + botón derecho    : Mapa más grande\n"
+#~ "Control + botón izquierdo: Fijar un waypoint sobre el mapa (posición del "
+#~ "ratón)\n"
+#~ "Control + botón derecho:  Fijar un waypoint sobre el mapa (posición "
+#~ "actual)\n"
+#~ "\n"
+#~ "Atajos de teclado:\n"
+#~ "===================================\n"
+#~ "+                         : aumentar zoom\n"
+#~ "-                         : disminuir zoom\n"
+#~ "s                         : mapa mayor\n"
+#~ "a                         : mapa más pequeño\n"
+#~ "t                         : seleccionar destino\n"
+#~ "d                         : descargar mapa\n"
+#~ "i                         : importar mapa\n"
+#~ "l                         : cargar track\n"
+#~ "h                         : mostrar ayuda\n"
+#~ "q                         : salir del programa\n"
+#~ "b                         : conmutar mejor mapa automático\n"
+#~ "w                         : conmutar mostrar waypoints\n"
+#~ "o                         : conmutar mostrar tracks\n"
+#~ "u                         : entrar en menú de configuración\n"
+#~ "n                         : en modo nocturno: cambia display nocturno on/"
+#~ "off\n"
+#~ "j                         : cambia al siguiente waypoint en modo ruta\n"
+#~ "p                         : cambia a modo posición\n"
+#~ "x                         : añadir waypoint en la posición actual\n"
+#~ "\n"
+#~ "¡Se admiten sugerencias!\n"
+#~ "\n"
+#~ "¡Diviértete!\n"
+#~ "\n"
+
+#~ msgid "No GPS Fix found!"
+#~ msgstr "Ningún GPS usado"
+
+#~ msgid "Waypoint files"
+#~ msgstr "Ficheros de waypoints"
+
+#~ msgid "Nightmode on"
+#~ msgstr "Modo nocturno activo"
+
+#~ msgid "Nightmode off"
+#~ msgstr "Modo nocturno inactivo"
+
+#~ msgid "Day/Night"
+#~ msgstr "Día/Noche"
+
+#~ msgid "Decimal lat/long display"
+#~ msgstr "Mostrar lat/long decimal"
+
+#~ msgid "Astro. dusk"
+#~ msgstr "Anochecer astro."
+
+#~ msgid "Naut. dawn"
+#~ msgstr "Orto náutico"
+
+#~ msgid "Naut. dusk"
+#~ msgstr "Ocaso náutico"
+
+#~ msgid "Civil dawn"
+#~ msgstr "Orto civil"
+
+#~ msgid "I'm sitting in a plane"
+#~ msgstr "Estoy en un avión"
+
+#~ msgid "GpsDrive Menu"
+#~ msgstr "Menú GpsDrive"
+
+#~ msgid "GpsDrive Status"
+#~ msgstr "Estado GpsDrive"

Added: packages/gpsdrive/branches/etch/po/fr.gmo
===================================================================
(Binary files differ)


Property changes on: packages/gpsdrive/branches/etch/po/fr.gmo
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: packages/gpsdrive/branches/etch/po/fr.po
===================================================================
--- packages/gpsdrive/branches/etch/po/fr.po	                        (rev 0)
+++ packages/gpsdrive/branches/etch/po/fr.po	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,2176 @@
+# translation of fr.po to Deutsch
+# Copyright (C) 2003,2004 Free Software Foundation, Inc.
+# Fritz Ganter <ganter at ganter.at>, 2003,2004
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: fr\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-03-03 21:47+0100\n"
+"PO-Revision-Date: 2004-02-19 19:04+0100\n"
+"Last-Translator: Fritz Ganter <ganter at ganter.at>\n"
+"Language-Team: Deutsch <de at li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.0.1\n"
+
+#: src/gpsdrive.c:2179
+msgid "/_Misc. Menu"
+msgstr "/_Misc. Menu"
+
+#: src/gpsdrive.c:2180
+msgid "/_Misc. Menu/Maps"
+msgstr "/_Misc. Menu/Cartes"
+
+#: src/gpsdrive.c:2181
+msgid "/_Misc. Menu/Maps/_Import map"
+msgstr "/_Misc. Menu/Maps/_importer une carte"
+
+#: src/gpsdrive.c:2185
+msgid "/_Misc. Menu/Maps/_Map Manager"
+msgstr "/_Misc. Menu/Maps/_Gestionnaire de cartes"
+
+#: src/gpsdrive.c:2187
+msgid "/_Misc. Menu/_Waypoint Manager"
+msgstr "/_Misc. Menu/_Gestionnaire de Waypoint "
+
+#: src/gpsdrive.c:2189
+msgid "/_Misc. Menu/_Load track file"
+msgstr "Choisissez une route"
+
+#: src/gpsdrive.c:2193
+msgid "/_Misc. Menu/Messages"
+msgstr "/_Misc. Menu/Messages"
+
+#: src/gpsdrive.c:2194
+msgid "/_Misc. Menu/Messages/Send message to mobile target"
+msgstr "/_Misc. Menu/Messages/Envoyer un message à une cible mobile"
+
+#: src/gpsdrive.c:2199
+msgid "/_Misc. Menu/Help"
+msgstr "/_Misc. Menu/Aide"
+
+#: src/gpsdrive.c:2200
+msgid "/_Misc. Menu/Help/About"
+msgstr "/_Misc. Menu/Aide/A propos"
+
+#: src/gpsdrive.c:2202
+msgid "/_Misc. Menu/Help/Topics"
+msgstr "/_Misc. Menu/Aide/Index"
+
+# src/gpsdrive.c:1057:  src/gpsdrive.c:1124
+#: src/gpsdrive.c:2271
+msgid "  Message  "
+msgstr "  Message  "
+
+#: src/gpsdrive.c:2315 src/gpsdrive.c:12145
+#, fuzzy
+msgid "Stop GPSD"
+msgstr "Lancer GPSD"
+
+#: src/gpsdrive.c:2317 src/gpsdrive.c:12147
+msgid "Stop GPSD and switch to simulation mode"
+msgstr ""
+
+#: src/gpsdrive.c:2339 src/gpsdrive.c:11261
+msgid "Start GPSD"
+msgstr "Lancer GPSD"
+
+#: src/gpsdrive.c:2341 src/gpsdrive.c:12153
+msgid "Starts GPSD for NMEA mode"
+msgstr "Lance GPSD pour le mode NMEA"
+
+#  displays zoom factor of map
+#. displays zoom factor of map
+#: src/gpsdrive.c:2354 src/gpsdrive.c:2355 src/gpsdrive.c:2356
+#: src/gpsdrive.c:6264 src/gpsdrive.c:6273 src/gpsdrive.c:11484
+#: src/gpsdrive.c:11491 src/gpsdrive.c:11498 src/gpsdrive.c:11555
+#: src/gpsdrive.c:11560 src/gpsdrive.c:11566 src/gpsdrive.c:11602
+#: src/gpsdrive.c:11609 src/settings.c:1425 src/settings.c:1434
+#: src/settings.c:1443 src/settings.c:1468 src/settings.c:1478
+#: src/settings.c:1487 src/settings.c:1498 src/settings.c:1507
+#: src/settings.c:1517
+msgid "n/a"
+msgstr "n/a"
+
+#: src/gpsdrive.c:2366 src/gpsdrive.c:10245
+msgid ""
+"\n"
+"no garmin support compiled in\n"
+msgstr ""
+"\n"
+"Compilé sans support du mode garmin.\n"
+
+#: src/gpsdrive.c:2387 src/gpsdrive.c:3136
+msgid "Simulation mode"
+msgstr "Mode simulation"
+
+#: src/gpsdrive.c:2409
+msgid "got RMC data, using it\n"
+msgstr ""
+
+#: src/gpsdrive.c:2498 src/gpsdrive.c:11936
+msgid "Map"
+msgstr "Carte"
+
+#. if (debug)
+#: src/gpsdrive.c:2661
+msgid "got no RMC data, using GGA data\n"
+msgstr ""
+
+#: src/gpsdrive.c:2912
+msgid "Timeout getting data from GPS-Receiver!"
+msgstr "Plus de données provenant du récepteur GPS depuis trop longtemps!"
+
+#: src/gpsdrive.c:2959 src/gpsdrive.c:3008 src/gpsdrive.c:3113
+#: src/gpsdrive.c:3199 src/gpsdrive.c:3324
+msgid "Press middle mouse button for navigation"
+msgstr "Bouton du milieu pour lancer la navigation"
+
+#: src/gpsdrive.c:2963
+#, fuzzy, c-format
+msgid "Direct serial connection to %s"
+msgstr "Connexion à %s"
+
+#: src/gpsdrive.c:3013 src/gpsdrive.c:3045 src/gpsdrive.c:3205
+#: src/gpsdrive.c:3330
+msgid "Not enough satellites in view!"
+msgstr "Pas assez de satellites détectés!"
+
+#: src/gpsdrive.c:3117
+msgid "GARMIN Mode"
+msgstr "Mode Garmin"
+
+#: src/gpsdrive.c:3134
+msgid "No GPS used"
+msgstr "Aucun GPS n'est utilisé"
+
+#: src/gpsdrive.c:3138
+msgid "Press middle mouse button for sim mode"
+msgstr "Bouton du milieu pour lancer la simulation "
+
+#: src/gpsdrive.c:3477
+#, c-format
+msgid "Distance to HomeBase: %.1fkm, max. allowed: %.1fkm\n"
+msgstr "Distance au point de départ: %.1fkm, max. allowed: %.1fkm\n"
+
+#: src/gpsdrive.c:3554 src/gpsdrive.c:3784 src/gpsdrive.c:6665
+#: src/gpsdrive.c:8534 src/gpsdrive.c:9000
+msgid "To"
+msgstr "Vers"
+
+#: src/gpsdrive.c:3866
+msgid "Error in line "
+msgstr "Erreur à la ligne "
+
+#: src/gpsdrive.c:3868
+msgid ""
+"I have found filenames in map_koord.txt which are\n"
+"not map_* or top_* files. Please rename them and change the entries in\n"
+"map_koord.txt.  Use map_* for street maps and top_* for topographical\n"
+"maps.  Otherwise, the maps will not be displayed!"
+msgstr ""
+"J'ai trouvé des noms de fichier\n"
+"dans map_koord.txt\n"
+"qui ne commencent ni par map_ ni par top_\n"
+"Veuillez renommer ces fichiers ainsi que votre\n"
+"map_koord.txt afin que ces cartes puissent être\n"
+"prises en compte.\n"
+"\n"
+"Les noms des plans doivent débuter par map_\n"
+"et ceux des cartes topographiques par top_"
+
+#: src/gpsdrive.c:4229
+msgid "Auto"
+msgstr "Automatique"
+
+#: src/gpsdrive.c:4440
+#, fuzzy
+msgid "Warning!"
+msgstr "Bearing"
+
+#: src/gpsdrive.c:4441
+msgid "You should not start GpsDrive as user root!!!"
+msgstr ""
+
+#: src/gpsdrive.c:4756 src/gpsdrive.c:8145 src/gpsdrive.c:8154
+#: src/gpsdrive.c:11661 src/gpsdrive.c:11670
+msgid "mi/h"
+msgstr "mph"
+
+#: src/gpsdrive.c:4758 src/gpsdrive.c:8147 src/gpsdrive.c:8156
+#: src/gpsdrive.c:11663 src/gpsdrive.c:11672
+msgid "knots"
+msgstr "noeuds"
+
+#: src/gpsdrive.c:4760 src/gpsdrive.c:8149 src/gpsdrive.c:8158
+#: src/gpsdrive.c:11665 src/gpsdrive.c:11674
+msgid "km/h"
+msgstr "km/h"
+
+#: src/gpsdrive.c:5088
+#, fuzzy
+msgid ""
+"\n"
+"Warning: unable to load gpsdriveanim.gif!\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+"\n"
+"Attention: impossible de charger l'icone Friend!\n"
+"Veuillez installer le programme en tant que Root avec:\n"
+"make install\n"
+"\n"
+
+#. This string means North,East,South,West -- please translate the letters
+#: src/gpsdrive.c:5896
+msgid "NESW"
+msgstr "NESO"
+
+#: src/gpsdrive.c:6064
+msgid "No map available for this position!"
+msgstr "Aucune carte n'est disponible pour cette position!"
+
+#: src/gpsdrive.c:6258
+msgid "unused"
+msgstr "non utilisé"
+
+#: src/gpsdrive.c:6362
+msgid "can't open NMEA output file"
+msgstr "impossible d'ouvrir le fichier de sortie NMEA"
+
+#: src/gpsdrive.c:6473
+msgid " Mapfile could not be loaded:"
+msgstr "Impossible d'ouvrir le fichier contenant la carte:"
+
+#: src/gpsdrive.c:6517
+msgid "Map found!"
+msgstr ""
+
+#: src/gpsdrive.c:6552
+msgid " Friendsicon could not be loaded:"
+msgstr "Impossible de charger Friendsicon:"
+
+#: src/gpsdrive.c:6555
+msgid ""
+"\n"
+"Warning: unable to load friendsicon!\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+"\n"
+"Attention: impossible de charger l'icone Friend!\n"
+"Veuillez installer le programme en tant que Root avec:\n"
+"make install\n"
+"\n"
+
+#: src/gpsdrive.c:6843
+msgid "Select coordinates and scale"
+msgstr "Indiquez les coordonnées et l'échelle souhaitées"
+
+#: src/gpsdrive.c:6846
+msgid "Download map"
+msgstr "Télécharger"
+
+#: src/gpsdrive.c:6872 src/gpsdrive.c:7911 src/gpsdrive.c:9209
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/gpsdrive.c:11792
+msgid "Latitude"
+msgstr "Latitude"
+
+#: src/gpsdrive.c:6874 src/gpsdrive.c:7913 src/gpsdrive.c:9203
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/gpsdrive.c:11793
+msgid "Longitude"
+msgstr "Longitude"
+
+#: src/gpsdrive.c:6876
+msgid "Map covers"
+msgstr "La carte couvre"
+
+#: src/gpsdrive.c:6880
+msgid "Scale"
+msgstr "Échelle"
+
+#: src/gpsdrive.c:6882
+msgid "Map file name"
+msgstr "Nom de la carte"
+
+#: src/gpsdrive.c:6922 src/settings.c:958
+msgid "Expedia Germany"
+msgstr ""
+
+#: src/gpsdrive.c:6928 src/settings.c:964
+msgid "Expedia USA"
+msgstr ""
+
+#: src/gpsdrive.c:6934
+msgid "TopoZone(US Only)"
+msgstr ""
+
+#: src/gpsdrive.c:6943
+msgid ""
+"If selected, you download the map from the german expedia server (expedia.de)"
+msgstr ""
+
+#: src/gpsdrive.c:6947
+msgid ""
+"If selected, you download the map from the U.S. expedia server (expedia.com)"
+msgstr ""
+
+#: src/gpsdrive.c:6951
+msgid ""
+"If selected, you download the map from the TopoZone Server (US maps only)"
+msgstr ""
+
+#: src/gpsdrive.c:6977 src/gpsdrive.c:6981
+msgid ""
+"You can also select the position\n"
+"with a mouse click on the map."
+msgstr ""
+"Vous pouvez également choisir les\n"
+"coordonnées en cliquant sur la carte."
+
+#: src/gpsdrive.c:6983
+msgid "Using Proxy and port:"
+msgstr "Proxy et port utilisés:"
+
+#: src/gpsdrive.c:7280 src/gpsdrive.c:7397
+msgid "can't open socket for port 80"
+msgstr "impossible d'ouvrir le socket pour le port 80"
+
+#: src/gpsdrive.c:7282 src/gpsdrive.c:7285 src/gpsdrive.c:7309
+#: src/gpsdrive.c:7312 src/gpsdrive.c:7327 src/gpsdrive.c:7330
+#: src/gpsdrive.c:7399 src/gpsdrive.c:7404 src/gpsdrive.c:7407
+#: src/gpsdrive.c:7411 src/gpsdrive.c:7446 src/gpsdrive.c:7451
+#: src/gpsdrive.c:7454 src/gpsdrive.c:7458 src/gpsdrive.c:7473
+#: src/gpsdrive.c:7478 src/gpsdrive.c:7481 src/gpsdrive.c:7485
+#, c-format
+msgid "Connecting to %s FAILED!"
+msgstr "La connexion à %s a ÉCHOUÉ!"
+
+#: src/gpsdrive.c:7307 src/gpsdrive.c:7444
+msgid "Can't resolve webserver address"
+msgstr "Le site web n'est pas accessible"
+
+#: src/gpsdrive.c:7325 src/gpsdrive.c:7471
+msgid "unable to connect to Website"
+msgstr "Impossible de se connecter au site web"
+
+#: src/gpsdrive.c:7353 src/gpsdrive.c:7542
+msgid "read from Webserver"
+msgstr "téléchargé du serveur web"
+
+#: src/gpsdrive.c:7380 src/gpsdrive.c:7384 src/gpsdrive.c:7386
+#: src/gpsdrive.c:7389
+#, c-format
+msgid "Connecting to %s"
+msgstr "Connexion à %s"
+
+#: src/gpsdrive.c:7499 src/gpsdrive.c:7503 src/gpsdrive.c:7505
+#: src/gpsdrive.c:7508
+#, c-format
+msgid "Now connected to %s"
+msgstr "Connexion à %s établie"
+
+#: src/gpsdrive.c:7585
+#, c-format
+msgid "Downloaded %d kBytes"
+msgstr "%d ko téléchargés"
+
+#: src/gpsdrive.c:7599
+msgid "Download FAILED!"
+msgstr "Le téléchargement a échoué!"
+
+#: src/gpsdrive.c:7601
+#, c-format
+msgid "Download finished, got %dkB"
+msgstr "Le téléchargement est terminé, %dkB reçus"
+
+#: src/gpsdrive.c:7772
+msgid "Select a map file"
+msgstr "Choisissez la carte"
+
+#: src/gpsdrive.c:7837
+msgid ""
+"How to calibrate your own maps? First, the map file\n"
+"must be copied into the"
+msgstr ""
+
+#: src/gpsdrive.c:7839
+#, fuzzy
+msgid ""
+"\n"
+"directory as .gif, .jpg or .png file and must have\n"
+"the size 1280x1024. The file names must be\n"
+"map_* for street maps or top_* for topographical maps!\n"
+"Load the file, select coordinates from waypoint list or\n"
+"type them in. Then click on the accept button."
+msgstr ""
+"Comment étalonner vos propres cartes:\n"
+"\n"
+"La carte doit être au format gif, jpg ou png et avoir une résolution de "
+"1280x1024. Elle doit également se trouver dans votre répertoire ~/.gpsdrive. "
+"Pour les plans de ville le nom du fichier doit débuter par map_ et par top_ "
+"pour les cartes topographiques.\n"
+"Chargez la carte et sélectionnez ses coordonnées dans les listes des "
+"waypoints ou entrez-les manuellement. \n"
+"Pour finir cliquez sur le bouton: Valider le premier point. "
+
+#: src/gpsdrive.c:7846
+#, fuzzy
+msgid ""
+"Now do the same for your second point and click on the\n"
+"finish button. The map can be used now."
+msgstr ""
+"Faites maintenant de même pour votre second point et cliquez sur le bouton "
+"Terminer. La carte est maintenant utilisable."
+
+#: src/gpsdrive.c:7851
+msgid "Import Assistant. Step 1"
+msgstr "Assistant d'importation. Première étape"
+
+#: src/gpsdrive.c:7853
+msgid "Import Assistant. Step 2"
+msgstr "Assistant d'importation. Deuxième étape"
+
+#: src/gpsdrive.c:7858
+msgid "Accept first point"
+msgstr "Valider le premier point"
+
+#: src/gpsdrive.c:7860
+msgid "Finish"
+msgstr "Terminer"
+
+#: src/gpsdrive.c:7881
+msgid "Go up"
+msgstr "Monter"
+
+#: src/gpsdrive.c:7884
+msgid "Go left"
+msgstr "Aller à gauche"
+
+#: src/gpsdrive.c:7887
+msgid "Go right"
+msgstr "Aller à droite"
+
+#: src/gpsdrive.c:7890
+msgid "Go down"
+msgstr "Descendre"
+
+#: src/gpsdrive.c:7893
+msgid "Zoom in"
+msgstr "Zoom avant"
+
+#: src/gpsdrive.c:7896
+msgid "Zoom out"
+msgstr "Zoom arrière"
+
+#: src/gpsdrive.c:7915
+msgid "Screen X"
+msgstr "Abscisse"
+
+#: src/gpsdrive.c:7917
+msgid "Screen Y"
+msgstr "Ordonnée"
+
+#: src/gpsdrive.c:7919
+msgid "Browse waypoint"
+msgstr "Liste des waypoints"
+
+#: src/gpsdrive.c:7950
+msgid "Browse filename"
+msgstr "Sélectionner un fichier"
+
+#: src/gpsdrive.c:8043
+msgid "GpsDrive Control"
+msgstr "Contrôle de GpsDrive"
+
+#: src/gpsdrive.c:8154 src/gpsdrive.c:8156 src/gpsdrive.c:8158
+#: src/gpsdrive.c:11670 src/gpsdrive.c:11672 src/gpsdrive.c:11674
+#: src/settings.c:1025
+msgid "Speed"
+msgstr "Vitesse"
+
+#: src/gpsdrive.c:8375
+msgid ""
+"\n"
+"distance jump is more then 1000km/h speed, ignoring\n"
+msgstr ""
+"\n"
+"distance jump is more then 1000km/h speed, ignoring\n"
+
+#: src/gpsdrive.c:8597 src/friends.c:348
+msgid "/Misc. Menu/Messages"
+msgstr "/Misc. Menu/Messages"
+
+#: src/gpsdrive.c:8600
+msgid "Sending message to friends server..."
+msgstr "Envoi du message au Friendserver"
+
+# src/gpsdrive.c:1057:  src/gpsdrive.c:1124
+#: src/gpsdrive.c:8673
+msgid "Message for:"
+msgstr "Message pour:"
+
+#: src/gpsdrive.c:8714
+#, c-format
+msgid "Date: %s"
+msgstr "Date: %s"
+
+#: src/gpsdrive.c:8727
+msgid "Sends your text to to selected computer using the friends server"
+msgstr ""
+"Envoi votre texte à l'ordinateur sélectionné en utilisant le serveur d'amis"
+
+#: src/gpsdrive.c:8999
+msgid "SELECTED"
+msgstr "point sélectionné"
+
+#: src/gpsdrive.c:9172
+msgid "Add waypoint name"
+msgstr "Ajoutez le nom du waypoint"
+
+#: src/gpsdrive.c:9231
+msgid " Waypoint name: "
+msgstr " Nom du waypoint:"
+
+#: src/gpsdrive.c:9244
+msgid " Waypoint type: "
+msgstr "Type de waypoints:"
+
+#: src/gpsdrive.c:9489
+msgid "Name"
+msgstr "Nom"
+
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/settings.c:1018
+msgid "Distance"
+msgstr "Distance"
+
+#: src/gpsdrive.c:9499
+msgid "Please select message recipient"
+msgstr "Choisissez le destinataire du message"
+
+#: src/gpsdrive.c:9568 src/gpsdrive.c:9715
+msgid "Waypoint"
+msgstr "Waypoint"
+
+#: src/gpsdrive.c:9587
+msgid "Select reference point"
+msgstr "Sélectionnez le point de référence"
+
+#: src/gpsdrive.c:9591
+msgid "Please select your destination"
+msgstr "Veuillez choisir votre destination"
+
+#: src/gpsdrive.c:9620
+msgid "Edit route"
+msgstr "Editer une route"
+
+#: src/gpsdrive.c:9622
+msgid "Create route"
+msgstr "Créer une route"
+
+#: src/gpsdrive.c:9693
+msgid "Create a route using some waypoints from this list"
+msgstr "Crée une route en utilsant des waypoints parmis ceux de la liste"
+
+#: src/gpsdrive.c:9698
+msgid "Delete the selected waypoint from the waypoint list"
+msgstr "Supprime le waypoint sélectionné de la liste des waypoints"
+
+#: src/gpsdrive.c:9702
+msgid "Jump to the selected waypoint"
+msgstr "va directement au waypoint choisi"
+
+#: src/gpsdrive.c:9729
+msgid "Define route"
+msgstr "Définissez la route"
+
+#: src/gpsdrive.c:9737
+msgid "Start route"
+msgstr "Débuter la route"
+
+#: src/gpsdrive.c:9746
+msgid "Take all WP as route"
+msgstr "Prendre tous les WP"
+
+#: src/gpsdrive.c:9751
+msgid "Abort route"
+msgstr "Abandonner"
+
+#: src/gpsdrive.c:9795
+msgid ""
+"Click on waypoints list\n"
+"to add waypoints"
+msgstr ""
+"Cliquez dans la liste des waypoints\n"
+"pour les intégrer à la route"
+
+#: src/gpsdrive.c:9797
+msgid ""
+"Click on list item\n"
+"to select next waypoint"
+msgstr ""
+"Cliquez dans la liste pour\n"
+"sélectionner le waypoint suivant"
+
+#: src/gpsdrive.c:9838
+msgid ""
+"Create a route from all waypoints. Sorted with order in file, not distance."
+msgstr ""
+"Crée une route avec tous les waypoints, dans l'orde dans lequel ils figurent "
+"dans le fichier et non pas en fonction de la distance."
+
+#: src/gpsdrive.c:9842
+msgid ""
+"Click here to start your journey. GpsDrive guides you through the waypoints "
+"in this list."
+msgstr ""
+"Cliquer ici pour débuter votre parcours. GpsDrive vous guide d'un waypoint à "
+"l'autre dans cette liste."
+
+#: src/gpsdrive.c:9845
+msgid "Abort your journey"
+msgstr "Abandonne votre parcours"
+
+#: src/gpsdrive.c:9862
+msgid "-v    show version\n"
+msgstr "-v    affiche le numero de version\n"
+
+#: src/gpsdrive.c:9863
+msgid "-h    print this help\n"
+msgstr "-h    imprime cette aide\n"
+
+#: src/gpsdrive.c:9864
+msgid "-d    turn on debug info\n"
+msgstr "-d    affiche les informations de débuguage\n"
+
+#: src/gpsdrive.c:9865
+msgid "-D    turn on lot of debug info\n"
+msgstr "-D    affiche de nombreuses informations de débuguage\n"
+
+#: src/gpsdrive.c:9866
+msgid "-e    use Festival-Lite (flite) for speech output\n"
+msgstr "-e    utilise Festival-Lite (flite) pour l'interface vocale\n"
+
+#: src/gpsdrive.c:9867
+msgid "-t    set serial device for GPS i.e. /dev/ttyS1\n"
+msgstr "-t    spécifie le fichier du GPS ex: /dev/ttyS1\n"
+
+#: src/gpsdrive.c:9868
+msgid "-o    serial device, pty master, or file for NMEA *output*\n"
+msgstr "-o    périphérique série, pty maitre ou fichier pour *sortie* NMEA\n"
+
+#: src/gpsdrive.c:9869
+msgid "-f X  Select friends server, X is i.e. www.gpsdrive.cc\n"
+msgstr "-f X  Choisi un serveur ami, X est par exemple www.gpsdrive.cc\n"
+
+#: src/gpsdrive.c:9870
+msgid "-n    Disable use of direct serial connection\n"
+msgstr ""
+
+#: src/gpsdrive.c:9871
+msgid ""
+"-l X  Select language of the voice,\n"
+"      X may be english, spanish or german\n"
+msgstr ""
+"-l X  sélectionne la langue de l'interace vocale, X peut être\n"
+"      english, spanish ou german\n"
+
+#: src/gpsdrive.c:9873
+msgid ""
+"-s X  set height of the screen, if autodetection\n"
+"      don't satisfy you, X is i.e. 768,600,480,200\n"
+msgstr ""
+"-s X  sélectionne la hauteur de l'écran, si l'autodétection\n"
+"      ne vous convient pas. X peut par exemple valoir 768,600,480 ou 200.\n"
+
+#. ** Mod by Arms
+#: src/gpsdrive.c:9876
+msgid "-r X  set width of the screen, only with -s\n"
+msgstr ""
+"-r X  spécifie la taille de l'écran, uniquement si -s est aussi utilisé\n"
+
+#: src/gpsdrive.c:9878
+msgid "-1    have only 1 button mouse, for example using touchscreen\n"
+msgstr "-1    pour une souris à un bouton, par exemple un écran tactile\n"
+
+#: src/gpsdrive.c:9879
+msgid "-a    don't display battery status (i.e. broken APM)\n"
+msgstr "-a    n'affiche pas l'indicateur de batterie\n"
+
+#: src/gpsdrive.c:9881
+msgid "-b X  Servername for NMEA server (if gpsd runs on another host)\n"
+msgstr ""
+"-b X  Nom de serveur pour serveur NMEA ( si gpsd tourne sur un hôte "
+"distant)\n"
+
+#: src/gpsdrive.c:9883
+msgid "-c X  set start position in simulation mode to waypoint name X\n"
+msgstr ""
+"-c X  configure le waypoint X comme position initiale en mode simulation\n"
+
+#: src/gpsdrive.c:9884
+msgid "-x    create separate window for menu\n"
+msgstr ""
+"-x    crée une fenêtre indépendante pour le menu\n"
+"\n"
+
+#: src/gpsdrive.c:9885
+msgid "-p    set settings for PDA (iPAQ, Yopy...)\n"
+msgstr "-p    paramètres pour PDA (iPAQ, Yopi...)\n"
+
+#: src/gpsdrive.c:9887
+msgid "-i    ignore NMEA checksum (risky, only for broken GPS receivers\n"
+msgstr ""
+"-i    ignore le checksum NMEA ( risqué, uniquement pour récepteurs "
+"GPSendommagés\n"
+
+#: src/gpsdrive.c:9888
+msgid "-q    disable SQL support\n"
+msgstr "-q    désactive le support SQL\n"
+
+#: src/gpsdrive.c:9889
+msgid "-F    force display of position even it is invalid\n"
+msgstr "-F    force l'affichage de la position même si elle est invalide\n"
+
+#: src/gpsdrive.c:9890
+msgid "-S    don't show splash screen\n"
+msgstr ""
+
+#: src/gpsdrive.c:9891
+msgid "-E    print out data received from direct serial connection\n"
+msgstr ""
+
+#: src/gpsdrive.c:9893
+msgid "-W x  set x to 1 to switch WAAS/EGNOS on, set to 0 to switch off\n"
+msgstr ""
+
+#: src/gpsdrive.c:9894
+msgid "-H X  correct altitude, adding this value to altitude\n"
+msgstr "-H X  altitude correcte, ajout de cette valeur à l'altitude\n"
+
+#: src/gpsdrive.c:9895
+msgid ""
+"-z    don't display zoom factor and scale\n"
+"\n"
+msgstr ""
+"-z     n'affiche pas le niveau de zoom ni l'échelle\n"
+"\n"
+
+#: src/gpsdrive.c:10001
+msgid "Select a track file"
+msgstr "Choisissez un fichier de route"
+
+#: src/gpsdrive.c:10179 src/gpskismet.c:380
+msgid "can't open socket for port "
+msgstr "impossible d'ouvrir le socket pour le port "
+
+#: src/gpsdrive.c:10200
+#, c-format
+msgid ""
+"\n"
+"Cannot connect to %s: unknown host\n"
+msgstr ""
+
+#: src/gpsdrive.c:10221
+msgid "NMEA Mode, Port 2222"
+msgstr "Mode NMEA, port 2222"
+
+#: src/gpsdrive.c:10230
+msgid "NMEA Mode, Port 2947"
+msgstr "Mode NMEA, port 2947"
+
+#: src/gpsdrive.c:10249
+msgid ""
+"\n"
+"Garmin protocol detection disabled!\n"
+msgstr ""
+"\n"
+"La détection du protocole Garmin est désactivée.\n"
+
+#: src/gpsdrive.c:10600
+msgid ""
+"\n"
+"libmysqlclient.so not found.\n"
+msgstr ""
+"\n"
+"libmysqlclient.so introuvable.\n"
+
+#: src/gpsdrive.c:10606
+msgid ""
+"\n"
+"MySQL support disabled.\n"
+msgstr ""
+"\n"
+"Support de MySQL désactivé.\n"
+
+#: src/gpsdrive.c:10783
+msgid ""
+"\n"
+"You can only choose between english, spanish and german\n"
+"\n"
+msgstr ""
+"\n"
+"Vous pouvez choisir uniquement 'english', 'spanish' ou 'german'\n"
+"\n"
+
+#: src/gpsdrive.c:10817 src/settings.c:1730
+msgid "EnterYourName"
+msgstr "Saisissez votre nom"
+
+#: src/gpsdrive.c:10879
+#, c-format
+msgid ""
+"\n"
+"Using proxy: %s on port %d"
+msgstr ""
+"\n"
+"Utilisation du proxy: %s sur le port %d"
+
+#: src/gpsdrive.c:10883
+msgid ""
+"\n"
+"Invalid enviroment variable HTTP_PROXY, must be in format: http://proxy."
+"provider.de:3128"
+msgstr ""
+"\n"
+"La variable d'environnement HTTP_PROXY est non valide. Elle doit être de la "
+"forme http://proxy.provider.fr:3128"
+
+#: src/gpsdrive.c:11073
+msgid "Gpsdrive-2 (c)2001-2004 F.Ganter"
+msgstr "Gpsdrive-2 (c)2001-2003 F.Ganter"
+
+#: src/gpsdrive.c:11081
+msgid "Using speech output"
+msgstr "Interface vocale activée"
+
+#: src/gpsdrive.c:11115
+#, fuzzy
+msgid "/Misc. Menu/Maps/Map Manager"
+msgstr "/_Misc. Menu/Maps/_Gestionnaire de cartes"
+
+#: src/gpsdrive.c:11119
+#, fuzzy
+msgid "/Misc. Menu/Waypoint Manager"
+msgstr "/_Misc. Menu/_Gestionnaire de Waypoint "
+
+#  download map button
+#. download map button
+#: src/gpsdrive.c:11123
+msgid "_Download map"
+msgstr "_Télécharger une carte"
+
+#: src/gpsdrive.c:11142
+msgid "M_ute"
+msgstr "Mode muet"
+
+#: src/gpsdrive.c:11152
+msgid "Use SQ_L"
+msgstr "Utiliser SQL"
+
+#: src/gpsdrive.c:11162
+msgid "Show _WP"
+msgstr "Afficher les WP"
+
+#: src/gpsdrive.c:11189
+msgid "HomeBase"
+msgstr "Point de départ"
+
+#: src/gpsdrive.c:11197
+msgid "Pos. _mode"
+msgstr "Mode position"
+
+#: src/gpsdrive.c:11203
+msgid "Show _Track"
+msgstr "Afficher la route"
+
+#: src/gpsdrive.c:11246
+msgid "_Navigation"
+msgstr ""
+
+#: src/gpsdrive.c:11265
+msgid "Auto _best map"
+msgstr "résolution auto"
+
+#: src/gpsdrive.c:11275
+msgid "Save track"
+msgstr "Enr. la route"
+
+#: src/gpsdrive.c:11286
+msgid "Shown map type"
+msgstr "Carte affichée"
+
+#: src/gpsdrive.c:11297
+msgid "Street map"
+msgstr "Plan de ville"
+
+#: src/gpsdrive.c:11304
+msgid "Topo map"
+msgstr "Carte topo"
+
+#: src/gpsdrive.c:11386
+msgid ""
+"\n"
+"kismet server found\n"
+msgstr ""
+"\n"
+"Serveur kismet détecté\n"
+
+#: src/gpsdrive.c:11447 src/gpsdrive.c:11797
+msgid "Bearing"
+msgstr "Bearing"
+
+#: src/gpsdrive.c:11468
+#, fuzzy
+msgid "GPS Info"
+msgstr "Ephémérides"
+
+#: src/gpsdrive.c:11519
+msgid "Bat."
+msgstr "Bat."
+
+#: src/gpsdrive.c:11534
+msgid "TC"
+msgstr "TC"
+
+#. displays speed over ground
+#: src/gpsdrive.c:11552 src/gpsdrive.c:11807 src/gpsdrive.c:11809
+#: src/gpsdrive.c:11815 src/gpsdrive.c:11817
+msgid "---"
+msgstr "---"
+
+#: src/gpsdrive.c:11632 src/gpsdrive.c:11639
+msgid "Selected:"
+msgstr "Choix destination:"
+
+#: src/gpsdrive.c:11632 src/gpsdrive.c:11639
+msgid "within"
+msgstr "entre"
+
+#. create frames for labels
+#: src/gpsdrive.c:11647
+msgid "Distance to target"
+msgstr "Distance de la destination"
+
+#. ** Mod by Arms
+#. if (!pdamode)
+#. gtk_box_pack_start (GTK_BOX (hbox2), frame_speed, TRUE, TRUE,
+#. 1 * PADDING);
+#: src/gpsdrive.c:11683
+msgid "Altitude"
+msgstr "Altitude"
+
+#. ** Mod by Arms
+#. if (!pdamode)
+#. gtk_box_pack_start (GTK_BOX (hbox2), frame_altitude, FALSE, TRUE,
+#. 1 * PADDING);
+#: src/gpsdrive.c:11690 src/settings.c:681
+msgid "Waypoints"
+msgstr "Waypoints"
+
+#: src/gpsdrive.c:11794
+msgid "Map file"
+msgstr "Carte"
+
+#: src/gpsdrive.c:11795
+msgid "Map scale"
+msgstr "Échelle de la carte"
+
+#: src/gpsdrive.c:11796
+msgid "Heading"
+msgstr "Cap"
+
+#: src/gpsdrive.c:11798
+msgid "Time at Dest."
+msgstr "Temps dest."
+
+#: src/gpsdrive.c:11799
+msgid "Pref. scale"
+msgstr "Echelle preférée"
+
+#: src/gpsdrive.c:11803
+msgid "000,00000N"
+msgstr ""
+
+#: src/gpsdrive.c:11805
+msgid "000,00000E"
+msgstr ""
+
+#: src/gpsdrive.c:11811 src/gpsdrive.c:11813
+msgid "0000"
+msgstr ""
+
+#. gdk_window_lower((GdkWindow *)menuwin);
+#: src/gpsdrive.c:11886 src/gpsdrive.c:11937
+msgid "Menu"
+msgstr "Menu"
+
+#. gdk_window_lower((GdkWindow *)menuwin2);
+#: src/gpsdrive.c:11895 src/gpsdrive.c:11938
+msgid "Status"
+msgstr "Status"
+
+#: src/gpsdrive.c:12089
+#, fuzzy
+msgid ""
+"Click here to switch betwen satetellite level and satellite position "
+"display. A rotating globe is shown in simulation mode"
+msgstr ""
+"Cliquez ici pour basculer entre le niveau de réception satellite et la "
+"position des satellites"
+
+#: src/gpsdrive.c:12093
+#, fuzzy
+msgid "Number of used satellites/satellites in view"
+msgstr "Pas assez de satellites détectés!"
+
+#: src/gpsdrive.c:12096
+msgid "EPE (Estimated Precision Error), if available"
+msgstr ""
+
+#: src/gpsdrive.c:12100
+msgid ""
+"PDOP (Position Dilution Of Precision). PDOP less than 4 gives the best "
+"accuracy, between 4 and 8 gives acceptable accuracy and greater than 8 gives "
+"unacceptable poor accuracy. "
+msgstr ""
+
+#: src/gpsdrive.c:12105
+msgid ""
+"On top of the compass you see the direction to which you move. The pointer "
+"shows the target direction on the compass."
+msgstr ""
+
+#: src/gpsdrive.c:12108
+msgid "/Misc. Menu"
+msgstr "/Misc. Menu"
+
+#: src/gpsdrive.c:12111
+msgid "Here you find extra functions for maps, tracks and messages"
+msgstr "Fonctions supplémentaires pour les cartes, les routes et les messages"
+
+#: src/gpsdrive.c:12115
+msgid "Download map from Internet"
+msgstr "Télécharge une carte sur Internet"
+
+#: src/gpsdrive.c:12117
+msgid "Leave the program"
+msgstr "Quitte le programme"
+
+#: src/gpsdrive.c:12120
+msgid "Disable output of speech"
+msgstr "Désactive l'interface vocale"
+
+#: src/gpsdrive.c:12123
+msgid "Use SQL server for waypoints"
+msgstr "Utilise le serveur SQL pour les waypoints"
+
+#: src/gpsdrive.c:12126
+msgid "Show waypoints on the map"
+msgstr "Affiche les waypoints sur la carte"
+
+#: src/gpsdrive.c:12129
+msgid ""
+"Turn position mode on. You can move on the map with the left mouse button "
+"click. Clicking near the border switches to the proximate map."
+msgstr ""
+"Active le mode position. Dans ce mode vous pouvez déplacer le curseur en "
+"cliquant avec le bouton gauche de la souris. Une carte plus adaptée est "
+"sélectionnée si vous cliquez au bord de la carte utilisée."
+
+#: src/gpsdrive.c:12132
+msgid "Show tracking on the map"
+msgstr "Affiche la route sur la carte"
+
+#: src/gpsdrive.c:12137
+msgid "Opens the help window"
+msgstr "Affiche l'aide"
+
+#: src/gpsdrive.c:12140
+msgid "Navigation menu. Enter here your destination."
+msgstr ""
+
+#: src/gpsdrive.c:12156
+msgid "Settings for GpsDrive"
+msgstr "Paramètres de GpsDrive"
+
+#: src/gpsdrive.c:12158
+msgid "Zoom into the current map"
+msgstr "Zoom avant sur la carte"
+
+#: src/gpsdrive.c:12160
+msgid "Zooms out off the current map"
+msgstr "Zoom arrière sur la carte"
+
+#: src/gpsdrive.c:12162
+msgid "Select the next more detailed map"
+msgstr "Sélectionne la carte à l'échelle inférieure parmi celles disponibles"
+
+#: src/gpsdrive.c:12164
+msgid "Select the next less detailed map"
+msgstr "Sélectionne la carte à l'échelle supérieure parmi celles disponibles"
+
+#: src/gpsdrive.c:12169
+msgid "Select here a destination from the waypoint list"
+msgstr "Permet de sélectionner une destination dans la liste des waypoints"
+
+#: src/gpsdrive.c:12173
+msgid "Select the map scale of avail. maps."
+msgstr "Sélectionner l'échelle pour les cartes disponibles"
+
+#: src/gpsdrive.c:12178
+msgid "Always select the most detailed map available"
+msgstr ""
+"Sélectionne automatiquement la carte la plus détaillée parmi celles "
+"disponibles"
+
+#: src/gpsdrive.c:12181
+msgid "Save the track to given filename at program exit"
+msgstr ""
+"Enregistre la route dans le ficher spécifié quand vous quittez le programme"
+
+#: src/gpsdrive.c:12187
+msgid "Number of waypoints selected from SQL server"
+msgstr "Nombre de Waypoints sélectionner dans le serveur SQL"
+
+#: src/gpsdrive.c:12191
+msgid "Number of selected waypoints, which are in range"
+msgstr "Nombre de Waypoints sélectionnés qui sont à portée"
+
+#: src/gpsdrive.c:12195
+msgid "Range for waypoint selection in kilometers"
+msgstr "Distance au Waypoint sélectionné en kilomètres"
+
+#: src/gpsdrive.c:12198
+msgid "This shows the time from your GPS receiver"
+msgstr "Affiche l'heure du GPS"
+
+#: src/gpsdrive.c:12201
+msgid ""
+"Number of mobile targets within timeframe/total received from friendsserver"
+msgstr ""
+
+#: src/gpsdrive.c:12275
+msgid ""
+"\n"
+"\n"
+"Thank you for using GpsDrive!\n"
+"\n"
+msgstr ""
+"\n"
+"\n"
+"Merci d'utiliser GpsDrive.\n"
+"\n"
+
+#: src/splash.c:543
+msgid "GpsDrive v"
+msgstr "GpsDrive v"
+
+#: src/splash.c:549
+msgid ""
+"\n"
+"\n"
+"You find new versions on http://www.gpsdrive.cc\n"
+msgstr ""
+"\n"
+"\n"
+"Nouvelle version sur http://www.gpsdrive.cc\n"
+
+#: src/splash.c:553
+msgid ""
+"Disclaimer: Please do not use for navigation. \n"
+"\n"
+msgstr ""
+"Avertissement: ne pas utliser pour la navigation. \n"
+"\n"
+
+#: src/splash.c:558
+msgid "Please have a look into the manpage (man gpsdrive) for program details!"
+msgstr "Consultez la page man (man gpsdrive) pour de plus amples détails!"
+
+#: src/splash.c:563
+msgid "Mouse control (clicking on the map):\n"
+msgstr "Commandes à la souris (en cliquant sur la carte):\n"
+
+#: src/splash.c:569
+msgid ""
+"Left mouse button         : Set position (usefull in simulation mode)\n"
+"Right mouse button        : Set target directly on the map\n"
+"Middle mouse button       : Display position again\n"
+"Shift left mouse button   : smaller map\n"
+"Shift right mouse button  : larger map\n"
+"Control left mouse button : Set a waypoint (mouse position) on the map\n"
+"Control right mouse button: Set a waypoint at current position on the map\n"
+"\n"
+msgstr ""
+"Bouton gauche de la souris         : Détermine la position (pratique en mode "
+"simulation )\n"
+"Bouton droit de la souris         : Détermine la cible sur la carte\n"
+"Bouton central de la souris        : Affiche à nouveau la position\n"
+"Shift Bouton gauche de la souris        : Plus petite carte\n"
+"Shift Bouton droit de la souris        : plus grande carte\n"
+"Control Bouton gauche de la souris        : Détermine un Waypoint (la "
+"position de la souris) sur la carte\n"
+"Control Bouton droit de la souris        : Détermine un Waypoint à la "
+"position actuelle sur la carte\n"
+"\n"
+
+#: src/splash.c:577
+msgid ""
+"j    : switch to next waypoint in route mode\n"
+"x    : add waypoint at current position\n"
+"y    : add waypoint at mouse cursor position\n"
+msgstr ""
+"j    : Passe au waypoint suivant en mode route\n"
+"x    : ajoute un waypoint à l'emplacement en cours\n"
+"y    : ajoute un waypoint à l'emplacement du curseur\n"
+
+#: src/splash.c:583
+msgid "Short cuts:\n"
+msgstr "Raccourcis clavier:\n"
+
+#: src/splash.c:590
+msgid "The other key shortcuts are marked as "
+msgstr "Les autres raccourcis clavier sont notés "
+
+#: src/splash.c:591
+msgid "underlined"
+msgstr "Souligné"
+
+#: src/splash.c:593
+msgid " letters in the button text.\n"
+msgstr "Lettres dans le bouton texte\n"
+
+#: src/splash.c:596
+msgid ""
+"Press the underlined key together with the ALT-key.\n"
+"\n"
+"You can move on the map by selecting the Position-Mode in the menu. A blue "
+"rectangle shows this mode, you can set this cursor by clicking on the map. "
+"If you click on the border of the map (the outer 20%) then the map switches "
+"to the next area.\n"
+"\n"
+"Suggestions welcome.\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:603
+msgid "Have a lot of fun!"
+msgstr "Amusez-vous bien!"
+
+#: src/splash.c:734
+msgid "Please donate to GpsDrive"
+msgstr "Merci de faire une donnation à GpsDrive"
+
+#: src/splash.c:740
+msgid ""
+"\n"
+"\n"
+"GpsDrive is a project with no comercial background. \n"
+"\n"
+"It would be nice if you can give a donation to help me pay the costs for "
+"hardware and the webserver.\n"
+"\n"
+"To do so, just go to"
+msgstr ""
+"\n"
+"\n"
+"GpsDrive est un projet sans but commercial. \n"
+"\n"
+"Toute donnation est bienvenue pour faire face aux coûts d'hébergement du "
+"site web.\n"
+"\n"
+"Pour cela, allez simplement à"
+
+#: src/splash.c:744
+msgid " http://www.gpsdrive.cc "
+msgstr " http://www.gpsdrive.cc "
+
+#: src/splash.c:747
+msgid ""
+"and click on the PayPal button.\n"
+"\n"
+"Thank you very much for your donation!\n"
+"\n"
+"This message is only displayed once when you start an new version of "
+"GpsDrive.\n"
+"\n"
+msgstr ""
+"et cliquez le bouton PayPal.\n"
+"\n"
+"Merci beaucoup pour votre donnation!\n"
+"\n"
+"The message s'affiche une seule fois lorsque vous lancez une nouvelle "
+"version de GpsDrive.\n"
+"\n"
+
+#: src/splash.c:780
+msgid "About GpsDrive donation"
+msgstr "A propos des donation pour GpsDrive"
+
+#: src/splash.c:859
+msgid "From:"
+msgstr "De:"
+
+#: src/splash.c:928
+#, fuzzy, c-format
+msgid ""
+"You received a message from\n"
+"the friends server (%s)\n"
+msgstr "Vous avez reçu, via le serveur d'ami, un message de :\n"
+
+#: src/splash.c:938
+#, fuzzy
+msgid "You received a message through the friends server from:\n"
+msgstr "Vous avez reçu, via le serveur d'ami, un message de :\n"
+
+# src/gpsdrive.c:1057:  src/gpsdrive.c:1124
+#: src/splash.c:948
+msgid "Message text:\n"
+msgstr "Texte du message:\n"
+
+#: src/splash.c:1004
+msgid "Error saving config file ~/.gpsdrive/gpsdriverc"
+msgstr ""
+"Une erreur est survenue lors de l'enregistrement du fichier ~/.gpsdrive/"
+"gpsdriverc"
+
+#: src/splash.c:1519 src/splash.c:1578
+msgid ""
+"\n"
+"Warning: unable to open splash picture\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+"\n"
+"Attention: impossible d'afficher l'écran de démarrage\n"
+"Merci d'installer le programme en tant que root avec:\n"
+"make install\n"
+"\n"
+
+#: src/splash.c:1562
+msgid "About GpsDrive"
+msgstr "A propos de GpsDrive"
+
+#: src/settings.c:438
+msgid "Setting WP label font"
+msgstr "Choix de la police des WP"
+
+#: src/settings.c:440
+msgid "Setting big display font"
+msgstr "Choix de la police grand fomat"
+
+#: src/settings.c:507
+msgid "Setting big display color"
+msgstr "Choix de la couleur grand format"
+
+#: src/settings.c:545
+msgid "Setting track color"
+msgstr "Choix de la couleur du chemin"
+
+#: src/settings.c:587
+#, fuzzy
+msgid "Setting friends label color"
+msgstr "Choix de la couleur grand format"
+
+#: src/settings.c:668
+msgid ""
+"Don't use more than\n"
+"100 waypoint(way*.txt) files!"
+msgstr ""
+"N'utilisez pas plus de\n"
+"100 fichers de waypoints (way*.txt)!"
+
+#: src/settings.c:679
+msgid "Waypoint files to use"
+msgstr "Fichiers de waypoint à utiliser"
+
+#: src/settings.c:704 src/settings.c:709
+msgid "Settings"
+msgstr "Paramètres"
+
+#. misc area
+#: src/settings.c:716
+msgid "Misc settings"
+msgstr "Paramètres divers"
+
+#: src/settings.c:720
+msgid "Show Shadows"
+msgstr "Afficher les ombres"
+
+#: src/settings.c:727
+msgid "Etched frames"
+msgstr ""
+
+#: src/settings.c:735
+msgid "Simulation: Follow target"
+msgstr "Simulation: Aller à dest."
+
+#: src/settings.c:742
+msgid "Maximum CPU load"
+msgstr "Charge processeur maximum"
+
+#: src/settings.c:752
+msgid "Track"
+msgstr "Route"
+
+#: src/settings.c:767
+msgid "Maps directory"
+msgstr "Cartes dans:"
+
+#: src/settings.c:773
+msgid "Automatic"
+msgstr "Automatique"
+
+#: src/settings.c:779
+msgid "On"
+msgstr "Actif"
+
+#: src/settings.c:784
+msgid "Off"
+msgstr "Inactif"
+
+#. gtk_table_attach_defaults (GTK_TABLE (misctable), label2, 0, 2, 3, 4);
+#. gtk_table_attach_defaults (GTK_TABLE (misctable), mapdirbt, 0, 2, 4, 5);
+#. GPS settings area
+#: src/settings.c:808
+msgid "GPS settings"
+msgstr "Config GPS"
+
+#. gtk_container_add (GTK_CONTAINER (f4), gpstable);
+#: src/settings.c:822
+msgid "Test for GARMIN"
+msgstr "Mode GARMIN"
+
+#: src/settings.c:833
+msgid "Use DGPS-IP"
+msgstr "DGPS-IP"
+
+#: src/settings.c:843
+msgid "GPS is Earthmate"
+msgstr "Récepteur GPS Earthmate"
+
+#: src/settings.c:853
+msgid "Use serial conn."
+msgstr ""
+
+#: src/settings.c:868
+msgid "Interface"
+msgstr "Interface"
+
+#: src/settings.c:869
+msgid "Baudrate"
+msgstr ""
+
+#. units area
+#: src/settings.c:904
+msgid "Units"
+msgstr "Unités"
+
+#: src/settings.c:910
+msgid "Miles"
+msgstr "Miles"
+
+#: src/settings.c:915
+msgid "Metric"
+msgstr "Métrique"
+
+#: src/settings.c:920 src/nautic.c:106
+msgid "Nautic"
+msgstr "Nautique"
+
+#: src/settings.c:930
+msgid "Decimal position"
+msgstr "Position décimale"
+
+#. gtk_box_pack_start (GTK_BOX (v2), miles, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), metric, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), nautic, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), minsecbt, TRUE, FALSE, 2 * PADDING);
+#.
+#. default download server
+#: src/settings.c:948
+msgid "Default map server"
+msgstr "Serveur de carte par défaut"
+
+#. Night light mode
+#: src/settings.c:981
+msgid "Night light mode"
+msgstr "Mode nocturne"
+
+#.  gtk_table_attach_defaults (GTK_TABLE (table), f5, 0, 2, 2, 3);
+#. Sound settings
+#: src/settings.c:999
+#, fuzzy
+msgid "Speech output settings"
+msgstr "Paramètres aéronautiques"
+
+#.
+#. set following sounds
+#. sound_direction ... say direction to target
+#. sound_distance  ... say distance to target
+#. sound_speed     ... say your current speed
+#. sound_gps       ... say GPS status
+#.
+#.
+#: src/settings.c:1011
+msgid "Direction"
+msgstr ""
+
+#: src/settings.c:1032
+#, fuzzy
+msgid "GPS Status"
+msgstr "Status"
+
+#: src/settings.c:1046
+msgid "Switch on for speech output of the direction to the target"
+msgstr ""
+
+#: src/settings.c:1051
+msgid "Switch on for speech output of the distance to the target"
+msgstr ""
+
+#: src/settings.c:1056
+msgid "Switch on for speech output of your current speed"
+msgstr ""
+
+#: src/settings.c:1061
+msgid "Switch on for speech output of the status of your GPS signal"
+msgstr ""
+
+#   gtk_table_attach_defaults (GTK_TABLE (table), f5, 0, 2, 2, 3);
+#  Font settings
+#. Font settings
+#: src/settings.c:1066
+msgid "Font and color settings"
+msgstr "Réglages de couleurs et de police"
+
+#  gtk_box_pack_start (GTK_BOX (h1), f5, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (h1), f5, TRUE, FALSE, 2 * PADDING);
+#: src/settings.c:1071
+msgid "WP Label"
+msgstr "Nom WP"
+
+#: src/settings.c:1072
+msgid "Big display"
+msgstr "Grand format"
+
+#: src/settings.c:1073
+msgid "Display color"
+msgstr "Couleur de l'affichage"
+
+#: src/settings.c:1101
+msgid "Switch units to statute miles"
+msgstr "Système de mesure américain"
+
+#: src/settings.c:1103
+msgid "Switch units to nautical miles"
+msgstr "Système de mesure nautique"
+
+#: src/settings.c:1105
+msgid "Switch units to metric system (Kilometers)"
+msgstr "Système de mesure métrique"
+
+#: src/settings.c:1110
+msgid ""
+"If selected display latitude and longitude in decimal degrees, otherwise in "
+"degree, minutes and seconds notation"
+msgstr ""
+"Cette option affiche les latitudes et longitudes en degrés décimaux, "
+"autrement elles sont affichées en degrés, minutes et secondes."
+
+#: src/settings.c:1115
+#, fuzzy
+msgid ""
+"Set the german expedia server(expedia.de) as default download server. Use "
+"this if you are in Europe"
+msgstr "Configure Expedia comme le serveur par défaut"
+
+#: src/settings.c:1119
+msgid "Set Expedia as default download server"
+msgstr "Configure Expedia comme le serveur par défaut"
+
+#: src/settings.c:1122
+msgid "Switches shadows on map on or off"
+msgstr "Permet d'afficher ou de cacher les ombres sur la carte"
+
+#: src/settings.c:1126
+msgid "Switches between different type of frame ornaments"
+msgstr "Bascule entre différents styles de fenêtres"
+
+#: src/settings.c:1131
+#, c-format
+msgid ""
+"Select the approx. maximum CPU load, use 20-30% on notebooks while on "
+"battery to save battery power. This effects the refresh rate of the map "
+"screen"
+msgstr ""
+"Détermine la charge CPU maximum, 20-30% pour les PC portables sur batterie "
+"augmente l'autonomie. Cela influe sur le rafraichissement de la carte"
+
+#: src/settings.c:1136
+msgid "If activated, pointer moves to target in simulation mode"
+msgstr ""
+"Avec cette option le pointeur se déplace vers la destination dans le mode "
+"simulation"
+
+#: src/settings.c:1140
+msgid "Set here the color of the drawn track"
+msgstr "Déterminez ici la couleur du chemin"
+
+#: src/settings.c:1144
+msgid ""
+"Path to your map files. In the specified directory also the index file "
+"map_koord.txt must be present."
+msgstr ""
+"Répertoire contenant vos cartes. Le fichier map_koord.txt doit également "
+"figurer dans ce répertoire."
+
+#: src/settings.c:1149
+msgid ""
+"If selected, gpsdrive try to use GARMIN mode if possible. Unselect if you "
+"only have a NMEA device."
+msgstr ""
+"Si cette option est sélectionnée, gpsdrive tente d'utiliser le mode Garmin. "
+"Ne sélectionnez pas ce mode si vous utilisez un appareil NMEA"
+
+#: src/settings.c:1154
+msgid ""
+"Set here the baud rate of your GPS device, NMEA devices usually have a speed "
+"of 4800 baud"
+msgstr ""
+
+#: src/settings.c:1159
+msgid ""
+"If selected, gpsdrive try to use differential GPS over IP. You must have an "
+"internet connection and a DGPS capable GPS receiver. Works only in NMEA mode!"
+msgstr ""
+"Si cette option est sélectionnée, gpsdrive tente d'utiliser le GPS "
+"différentiel sur couche IP. Vous devez avoir une connexion internet et un "
+"recepteur GPS gérant le DGPS. Cette option fonctionne uniquement en mode "
+"NMEA."
+
+#: src/settings.c:1164
+msgid ""
+"Select this if you have a DeLorme Earthmate GPS receiver. The StartGPSD "
+"button will provide gpsd with the needed additional parameters"
+msgstr ""
+"Sélectionnez ceci si votre récepteur GPS est un DeLorme Earthmate. Le bouton "
+"Lancer GPSD lancera gpsd avec les paramètres supplémentaires requis. "
+
+#: src/settings.c:1169
+msgid ""
+"Select this if you want to use of the direct serial connection. If disabled, "
+"you can use the receiver only through gpsd. On the other hand, the direct "
+"serial connection needs no gpsd running and detects the working receiver on "
+"startup"
+msgstr ""
+
+#: src/settings.c:1174
+msgid "Specify the serial interface where the GPS is connected"
+msgstr "Spécifie l'interface série à laquelle le GPS est connecté"
+
+#: src/settings.c:1179
+msgid ""
+"Switches automagically to night mode if it is dark outside. Press 'N' key to "
+"turn off nightmode."
+msgstr ""
+"Active automatiquement le mode nocturne lorsque la nuit est tombée. Appuyez "
+"sur la touche 'N' pour désactiver ce mode."
+
+#: src/settings.c:1183
+msgid "Switches night mode on. Press 'N' key to turn off nightmode."
+msgstr ""
+"Active le mode nocturne. Appuyez sur la touche 'N' pour désactiver ce mode."
+
+#: src/settings.c:1186
+msgid "Switches night mode off"
+msgstr "Désactive le mode nocturne"
+
+#: src/settings.c:1190
+msgid "Here you can set the font for the waypoint labels"
+msgstr "Choix de la police et du nom du waypoint"
+
+#: src/settings.c:1195
+msgid "Here you can set the font for the big display for Speed and Distance"
+msgstr ""
+"Sélectionnez la police pour l'affichage en grande taille de la Vitesse et la "
+"Distance"
+
+#: src/settings.c:1199
+msgid ""
+"Here you can set the color for the big display for speed, distance and "
+"altitude"
+msgstr ""
+"Choix de la couleur pour l'affichage en grand de la vitesse, la distance et "
+"l'altitude"
+
+#: src/settings.c:1377
+msgid "Geo information"
+msgstr "Ephémérides"
+
+#: src/settings.c:1379
+msgid "Geo info"
+msgstr "Ephémérides"
+
+#: src/settings.c:1390
+msgid "Sunrise"
+msgstr "Lever"
+
+#: src/settings.c:1392
+msgid "Sunset"
+msgstr "Coucher"
+
+#: src/settings.c:1395
+msgid "Standard"
+msgstr "Standard"
+
+#: src/settings.c:1397
+msgid "Transit"
+msgstr "Méridien"
+
+#: src/settings.c:1399
+msgid "GPS-Time"
+msgstr "Heure GPS"
+
+#: src/settings.c:1401
+msgid "Astro."
+msgstr "Astro."
+
+#: src/settings.c:1403
+msgid "Naut."
+msgstr "Naut."
+
+#: src/settings.c:1405
+msgid "Civil"
+msgstr "Civil"
+
+#: src/settings.c:1407
+msgid "Timezone"
+msgstr "Fuseau horaire"
+
+#: src/settings.c:1409
+msgid "Store TZ"
+msgstr ""
+
+#: src/settings.c:1419
+msgid ""
+"If selected, the timezone is stored, otherwise your actual timezone will "
+"automatically used"
+msgstr ""
+
+#: src/settings.c:1453
+msgid "Night"
+msgstr "Nuit"
+
+#: src/settings.c:1455
+msgid "Day"
+msgstr "Jour"
+
+#: src/settings.c:1592 src/settings.c:1594 src/settings.c:1597
+msgid "Unit:"
+msgstr "Unité:"
+
+#: src/settings.c:1592
+msgid "miles"
+msgstr "miles"
+
+#: src/settings.c:1595
+msgid "nautic miles/knots"
+msgstr "miles nautiques/noeuds"
+
+#: src/settings.c:1597
+msgid "kilometers"
+msgstr "kilomètres"
+
+#: src/settings.c:1612
+msgid "Trip information"
+msgstr "Information parcours"
+
+#: src/settings.c:1614
+msgid "Trip info"
+msgstr "Info parcours"
+
+#: src/settings.c:1628
+msgid "Odometer"
+msgstr "Vitesse"
+
+#: src/settings.c:1630
+msgid "Total time"
+msgstr "Durée totale"
+
+#: src/settings.c:1632
+msgid "Av. speed"
+msgstr "Vit. moy."
+
+#: src/settings.c:1634
+msgid "Max. speed"
+msgstr "Vit. max."
+
+#: src/settings.c:1658
+msgid "Reset"
+msgstr "Réinitialisation"
+
+#: src/settings.c:1663
+msgid "Resets the trip values to zero"
+msgstr "Remets les valeurs du voyage à zéro"
+
+#: src/settings.c:1732
+msgid "You should change your name in the first field!"
+msgstr "Vous devriez changer votre nom dans le premier champ!"
+
+#: src/settings.c:1918
+msgid "Show position newer as"
+msgstr "Affiche la plus récente position comme"
+
+#: src/settings.c:1920
+msgid "Friends server setup"
+msgstr "Paramètre du serveur ami"
+
+#: src/settings.c:1921
+msgid "Friends"
+msgstr "Amis"
+
+#: src/settings.c:1933
+msgid "Days"
+msgstr "Jours"
+
+#: src/settings.c:1934
+msgid "Hours"
+msgstr "Heures"
+
+#: src/settings.c:1935
+msgid "Minutes"
+msgstr "Minutes"
+
+#: src/settings.c:1941
+msgid "Your name"
+msgstr "Votre nom"
+
+#: src/settings.c:1946
+msgid ""
+"Set here your name which should be shown near your vehicle. You may use "
+"spaces here!"
+msgstr ""
+"Entrez ici votre nom qui sera utilisé près de votre véhicule. Vous pouvez "
+"utiliser des espaces!"
+
+#: src/settings.c:1958
+msgid "Server name"
+msgstr "Nom du serveur"
+
+#: src/settings.c:1963
+msgid ""
+"Set here the full qualified host name (i.e. www.gpsdrive.cc) of your friends "
+"server, then you have to press the \"Lookup\" button!"
+msgstr ""
+"Entrez ici le nom complet du Friendserver (par ex: www.gpsdrive.cc), puis "
+"pressez le boutton \"recherche\"!"
+
+#: src/settings.c:1972
+msgid "Lookup"
+msgstr "Recherche"
+
+#: src/settings.c:1980
+msgid ""
+"You have to press the \"Lookup\" button to resolve the friends server name!"
+msgstr ""
+"Vous devez appuyer sur le bouton \"Recherche\" pour résoudre le nom du "
+"Friendserver"
+
+#: src/settings.c:1991
+#, fuzzy
+msgid "Set here the color of the label displayed at friends position"
+msgstr "Déterminez ici la couleur du chemin"
+
+#: src/settings.c:1997
+msgid "Friends server IP"
+msgstr "IP du serveur ami"
+
+#: src/settings.c:2002
+msgid ""
+"Set here the IP adress (i.e. 127.0.0.1) if you don't set the hostname above"
+msgstr ""
+"Entrez l'adresse IP ici (par ex: 127.0.0.1) si vous n'avez pas saisi le nom "
+"au dessus"
+
+#: src/settings.c:2007 src/settings.c:2012 src/settings.c:2016
+msgid ""
+"Set here the time limit in which the friends position is shown. Older "
+"positions are not shown."
+msgstr ""
+"Déterminez la limite de temps pendant laquelle la position des amis est "
+"donnée. Les positions plus anciennes ne sont pas affichées."
+
+#: src/settings.c:2028
+msgid "Use friends server"
+msgstr "Utiliser le serveur ami"
+
+#: src/settings.c:2036
+msgid ""
+"Enable/disable use of friends server. You must enter a Username, don't use "
+"the default name!"
+msgstr ""
+"Active/désactive l'utilisation d'un serveur ami. Vous devez entrer un nom "
+"d'utilisateur, n'utilisez pas le nom par défaut!"
+
+#: src/settings.c:2039
+msgid ""
+"If you enable the friendsserver mode,\n"
+"<span color=\"red\">everyone</span> using the same server\n"
+"can see your position!"
+msgstr ""
+"Si vous activez le mode serveur ami,,\n"
+"<span color=\"red\">tout le monde </span> utilisant le même serveur\n"
+"peut voir votre position!"
+
+#: src/settings.c:2094
+msgid "SQL selection criterias"
+msgstr "Critères de sélection SQL"
+
+#: src/settings.c:2095
+msgid "SQL"
+msgstr "SQL"
+
+#: src/settings.c:2121
+msgid "Dist. limit[km] "
+msgstr "Dist. limite[km] "
+
+#: src/settings.c:2126
+msgid "If enabled, show waypoints only within this distance"
+msgstr ""
+"Si cette option est activée, seuls les waypoints dans le rayon sélectionné "
+"sont affichés"
+
+#: src/settings.c:2142
+msgid "Enable/disable distance selection"
+msgstr "Activer/désactiver le paramètre distance"
+
+#: src/settings.c:2151
+msgid "Show no_ssid "
+msgstr ""
+
+#: src/settings.c:2162
+msgid ""
+"If enabled, WLANs with no SSID are shown, because this is perhaps useless, "
+"you can disable it here"
+msgstr ""
+
+#: src/settings.c:2168
+msgid "Selection mode"
+msgstr "Mode sélection"
+
+#: src/settings.c:2170
+msgid "include"
+msgstr "inclure"
+
+#: src/settings.c:2173
+msgid "exclude"
+msgstr "exclure"
+
+#: src/settings.c:2177
+msgid ""
+"Show only waypoints where the type field contains one of the selected words"
+msgstr ""
+"Afficher uniquement les waypoints pour lesquels le champs type contient un "
+"des termes sélectionnés"
+
+#: src/settings.c:2181
+msgid ""
+"Show only waypoints where the type field doesn't contain any the selected "
+"words"
+msgstr ""
+"Afficher uniquement les waypoints pour lesquels le champs type ne contient "
+"aucun des termes sélectionnés"
+
+#: src/fly.c:149
+msgid "Aeronautical settings"
+msgstr "Paramètres aéronautiques"
+
+#: src/fly.c:151
+msgid "Fly"
+msgstr "Vol"
+
+#: src/fly.c:158
+msgid "Plane mode"
+msgstr "Mode aviation"
+
+#: src/fly.c:165
+msgid "Use VFR"
+msgstr "VFR"
+
+#: src/fly.c:171
+msgid "Use IFR"
+msgstr "IFR"
+
+#: src/fly.c:181
+msgid "max. horizontal deviation "
+msgstr "Déviation horizontale max."
+
+#: src/fly.c:183
+msgid "max. vertical deviation "
+msgstr "Déviation verticale max."
+
+#: src/fly.c:198
+msgid "disable vert. deviation warning above 5000ft MSL"
+msgstr "pas d'avert. de dév. vert. si alt > 5000ft MSL"
+
+#: src/nautic.c:103
+msgid "Nautic settings"
+msgstr "Paramètres nautiques"
+
+#  if (debug)
+#. if (debug)
+#: src/gpssql.c:215
+#, c-format
+msgid ""
+"\n"
+"SQL: connected to %s as %s using %s\n"
+msgstr ""
+"\n"
+"SQL: connecté à %s en tant que %s sur la base de donnée %s\n"
+
+#: src/gpssql.c:278
+#, c-format
+msgid "rows inserted: %d\n"
+msgstr "lignes insérées: %d\n"
+
+#: src/gpssql.c:293
+#, c-format
+msgid "last index: %d\n"
+msgstr "Identique au dernier index: %d\n"
+
+#: src/gpssql.c:314
+#, c-format
+msgid "rows deleted: %d\n"
+msgstr "lignes effacées: %d\n"
+
+#: src/gpssql.c:366 src/gpssql.c:372
+#, c-format
+msgid "Loaded user defined icon %s\n"
+msgstr ""
+
+#: src/gpssql.c:455
+#, c-format
+msgid "%d(%d) rows read in %.2f seconds\n"
+msgstr "%d(%d) lignes lues en %.2f secondes\n"
+
+#: src/friends.c:363
+msgid "unknown"
+msgstr "Inconnu"
+
+#: src/friendsd.c:472
+msgid "server: please don't run me as root\n"
+msgstr ""
+
+#: src/friendsd.c:484
+#, c-format
+msgid ""
+"\n"
+"Usage:\n"
+"   %s -n servername\n"
+"provides a name for your server\n"
+msgstr ""
+
+#: src/gpsnasamap.c:189
+#, fuzzy, c-format
+msgid "could not create output map file %s!\n"
+msgstr "Impossible de trouver le fichier pixmap: %s"
+
+#. g_signal_connect (window, "destroy",
+#. G_CALLBACK (gtk_widget_destroyed), &window);
+#: src/gpsnasamap.c:204
+msgid "Creating map..."
+msgstr ""
+
+#: src/gpsnasamap.c:212
+msgid "Creating a temporary map from NASA satellite images"
+msgstr ""
+
+#: src/gpsnasamap.c:219
+#, c-format
+msgid "converting map for latitude: %f and longitude: %f ...\n"
+msgstr ""
+
+#: src/gpsnasamap.c:324
+msgid ""
+"\n"
+"You can permanently add this map file with following line in your\n"
+"map_koord.txt (rename the file!):\n"
+msgstr ""
+
+#: src/gpsserial.c:252
+msgid "waiting for thread to stop\n"
+msgstr ""
+
+#: src/gpsserial.c:275
+#, c-format
+msgid ""
+"\n"
+"error opening %s(%d)\n"
+msgstr ""
+
+#: src/gpsserial.c:278
+#, c-format
+msgid "successfull opened %s\n"
+msgstr ""
+
+#: src/gpsserial.c:284
+msgid "switching WAAS/EGNOS on\n"
+msgstr ""
+
+#: src/gpsserial.c:290
+msgid "switching WAAS/EGNOS off\n"
+msgstr ""
+
+#~ msgid "Set Mapblast as default download server"
+#~ msgstr "Configure Mapblast comme le serveur par défaut"
+
+#~ msgid "Yes, please start gpsd"
+#~ msgstr "Oui, lancer gpsd"
+
+#~ msgid "No, start simulation"
+#~ msgstr "Non, lancer le mode simulation"
+
+#~ msgid ""
+#~ "Neither gpsd nor GARMIN device detected!\n"
+#~ "Should I start gpsd (NMEA mode) for you?"
+#~ msgstr ""
+#~ "Ni gpsd ni un appareil Garmin n'ont été trouvés\n"
+#~ "Dois-je lancer gpsd (mode NMEA)?"
+
+#~ msgid "UTC "
+#~ msgstr "UTC "
+
+#~ msgid "Cancel"
+#~ msgstr "Annuler"
+
+#~ msgid "-n X  Select display name on friends server, X is i.e. Fritz\n"
+#~ msgstr "-n X  où X est le nom du serveur ami, par exemple Fritz\n"
+
+#~ msgid ""
+#~ "\n"
+#~ "This parameter is obsolet, use settings menu\n"
+#~ msgstr ""
+#~ "\n"
+#~ "Ce paramètre est obsolète, utilisez le menu paramètre\n"
+
+#~ msgid "Import"
+#~ msgstr "Importer"
+
+#~ msgid "Sat level"
+#~ msgstr "Signal sat."
+
+#~ msgid "Let you import and calibrate your own map"
+#~ msgstr "Vous permet d'importer et d'étalonner vos propres cartes"
+
+#~ msgid "Enable?"
+#~ msgstr "Activer?"

Added: packages/gpsdrive/branches/etch/po/gpsdrive.pot
===================================================================
--- packages/gpsdrive/branches/etch/po/gpsdrive.pot	                        (rev 0)
+++ packages/gpsdrive/branches/etch/po/gpsdrive.pot	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,1932 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-03-03 21:47+0100\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"Language-Team: LANGUAGE <LL at li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: src/gpsdrive.c:2179
+msgid "/_Misc. Menu"
+msgstr ""
+
+#: src/gpsdrive.c:2180
+msgid "/_Misc. Menu/Maps"
+msgstr ""
+
+#: src/gpsdrive.c:2181
+msgid "/_Misc. Menu/Maps/_Import map"
+msgstr ""
+
+#: src/gpsdrive.c:2185
+msgid "/_Misc. Menu/Maps/_Map Manager"
+msgstr ""
+
+#: src/gpsdrive.c:2187
+msgid "/_Misc. Menu/_Waypoint Manager"
+msgstr ""
+
+#: src/gpsdrive.c:2189
+msgid "/_Misc. Menu/_Load track file"
+msgstr ""
+
+#: src/gpsdrive.c:2193
+msgid "/_Misc. Menu/Messages"
+msgstr ""
+
+#: src/gpsdrive.c:2194
+msgid "/_Misc. Menu/Messages/Send message to mobile target"
+msgstr ""
+
+#: src/gpsdrive.c:2199
+msgid "/_Misc. Menu/Help"
+msgstr ""
+
+#: src/gpsdrive.c:2200
+msgid "/_Misc. Menu/Help/About"
+msgstr ""
+
+#: src/gpsdrive.c:2202
+msgid "/_Misc. Menu/Help/Topics"
+msgstr ""
+
+#: src/gpsdrive.c:2271
+msgid "  Message  "
+msgstr ""
+
+#: src/gpsdrive.c:2315 src/gpsdrive.c:12145
+msgid "Stop GPSD"
+msgstr ""
+
+#: src/gpsdrive.c:2317 src/gpsdrive.c:12147
+msgid "Stop GPSD and switch to simulation mode"
+msgstr ""
+
+#: src/gpsdrive.c:2339 src/gpsdrive.c:11261
+msgid "Start GPSD"
+msgstr ""
+
+#: src/gpsdrive.c:2341 src/gpsdrive.c:12153
+msgid "Starts GPSD for NMEA mode"
+msgstr ""
+
+#. displays zoom factor of map
+#: src/gpsdrive.c:2354 src/gpsdrive.c:2355 src/gpsdrive.c:2356
+#: src/gpsdrive.c:6264 src/gpsdrive.c:6273 src/gpsdrive.c:11484
+#: src/gpsdrive.c:11491 src/gpsdrive.c:11498 src/gpsdrive.c:11555
+#: src/gpsdrive.c:11560 src/gpsdrive.c:11566 src/gpsdrive.c:11602
+#: src/gpsdrive.c:11609 src/settings.c:1425 src/settings.c:1434
+#: src/settings.c:1443 src/settings.c:1468 src/settings.c:1478
+#: src/settings.c:1487 src/settings.c:1498 src/settings.c:1507
+#: src/settings.c:1517
+msgid "n/a"
+msgstr ""
+
+#: src/gpsdrive.c:2366 src/gpsdrive.c:10245
+msgid ""
+"\n"
+"no garmin support compiled in\n"
+msgstr ""
+
+#: src/gpsdrive.c:2387 src/gpsdrive.c:3136
+msgid "Simulation mode"
+msgstr ""
+
+#: src/gpsdrive.c:2409
+msgid "got RMC data, using it\n"
+msgstr ""
+
+#: src/gpsdrive.c:2498 src/gpsdrive.c:11936
+msgid "Map"
+msgstr ""
+
+#. if (debug)
+#: src/gpsdrive.c:2661
+msgid "got no RMC data, using GGA data\n"
+msgstr ""
+
+#: src/gpsdrive.c:2912
+msgid "Timeout getting data from GPS-Receiver!"
+msgstr ""
+
+#: src/gpsdrive.c:2959 src/gpsdrive.c:3008 src/gpsdrive.c:3113
+#: src/gpsdrive.c:3199 src/gpsdrive.c:3324
+msgid "Press middle mouse button for navigation"
+msgstr ""
+
+#: src/gpsdrive.c:2963
+#, c-format
+msgid "Direct serial connection to %s"
+msgstr ""
+
+#: src/gpsdrive.c:3013 src/gpsdrive.c:3045 src/gpsdrive.c:3205
+#: src/gpsdrive.c:3330
+msgid "Not enough satellites in view!"
+msgstr ""
+
+#: src/gpsdrive.c:3117
+msgid "GARMIN Mode"
+msgstr ""
+
+#: src/gpsdrive.c:3134
+msgid "No GPS used"
+msgstr ""
+
+#: src/gpsdrive.c:3138
+msgid "Press middle mouse button for sim mode"
+msgstr ""
+
+#: src/gpsdrive.c:3477
+#, c-format
+msgid "Distance to HomeBase: %.1fkm, max. allowed: %.1fkm\n"
+msgstr ""
+
+#: src/gpsdrive.c:3554 src/gpsdrive.c:3784 src/gpsdrive.c:6665
+#: src/gpsdrive.c:8534 src/gpsdrive.c:9000
+msgid "To"
+msgstr ""
+
+#: src/gpsdrive.c:3866
+msgid "Error in line "
+msgstr ""
+
+#: src/gpsdrive.c:3868
+msgid ""
+"I have found filenames in map_koord.txt which are\n"
+"not map_* or top_* files. Please rename them and change the entries in\n"
+"map_koord.txt.  Use map_* for street maps and top_* for topographical\n"
+"maps.  Otherwise, the maps will not be displayed!"
+msgstr ""
+
+#: src/gpsdrive.c:4229
+msgid "Auto"
+msgstr ""
+
+#: src/gpsdrive.c:4440
+msgid "Warning!"
+msgstr ""
+
+#: src/gpsdrive.c:4441
+msgid "You should not start GpsDrive as user root!!!"
+msgstr ""
+
+#: src/gpsdrive.c:4756 src/gpsdrive.c:8145 src/gpsdrive.c:8154
+#: src/gpsdrive.c:11661 src/gpsdrive.c:11670
+msgid "mi/h"
+msgstr ""
+
+#: src/gpsdrive.c:4758 src/gpsdrive.c:8147 src/gpsdrive.c:8156
+#: src/gpsdrive.c:11663 src/gpsdrive.c:11672
+msgid "knots"
+msgstr ""
+
+#: src/gpsdrive.c:4760 src/gpsdrive.c:8149 src/gpsdrive.c:8158
+#: src/gpsdrive.c:11665 src/gpsdrive.c:11674
+msgid "km/h"
+msgstr ""
+
+#: src/gpsdrive.c:5088
+msgid ""
+"\n"
+"Warning: unable to load gpsdriveanim.gif!\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+
+#. This string means North,East,South,West -- please translate the letters
+#: src/gpsdrive.c:5896
+msgid "NESW"
+msgstr ""
+
+#: src/gpsdrive.c:6064
+msgid "No map available for this position!"
+msgstr ""
+
+#: src/gpsdrive.c:6258
+msgid "unused"
+msgstr ""
+
+#: src/gpsdrive.c:6362
+msgid "can't open NMEA output file"
+msgstr ""
+
+#: src/gpsdrive.c:6473
+msgid " Mapfile could not be loaded:"
+msgstr ""
+
+#: src/gpsdrive.c:6517
+msgid "Map found!"
+msgstr ""
+
+#: src/gpsdrive.c:6552
+msgid " Friendsicon could not be loaded:"
+msgstr ""
+
+#: src/gpsdrive.c:6555
+msgid ""
+"\n"
+"Warning: unable to load friendsicon!\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+
+#: src/gpsdrive.c:6843
+msgid "Select coordinates and scale"
+msgstr ""
+
+#: src/gpsdrive.c:6846
+msgid "Download map"
+msgstr ""
+
+#: src/gpsdrive.c:6872 src/gpsdrive.c:7911 src/gpsdrive.c:9209
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/gpsdrive.c:11792
+msgid "Latitude"
+msgstr ""
+
+#: src/gpsdrive.c:6874 src/gpsdrive.c:7913 src/gpsdrive.c:9203
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/gpsdrive.c:11793
+msgid "Longitude"
+msgstr ""
+
+#: src/gpsdrive.c:6876
+msgid "Map covers"
+msgstr ""
+
+#: src/gpsdrive.c:6880
+msgid "Scale"
+msgstr ""
+
+#: src/gpsdrive.c:6882
+msgid "Map file name"
+msgstr ""
+
+#: src/gpsdrive.c:6922 src/settings.c:958
+msgid "Expedia Germany"
+msgstr ""
+
+#: src/gpsdrive.c:6928 src/settings.c:964
+msgid "Expedia USA"
+msgstr ""
+
+#: src/gpsdrive.c:6934
+msgid "TopoZone(US Only)"
+msgstr ""
+
+#: src/gpsdrive.c:6943
+msgid ""
+"If selected, you download the map from the german expedia server (expedia.de)"
+msgstr ""
+
+#: src/gpsdrive.c:6947
+msgid ""
+"If selected, you download the map from the U.S. expedia server (expedia.com)"
+msgstr ""
+
+#: src/gpsdrive.c:6951
+msgid ""
+"If selected, you download the map from the TopoZone Server (US maps only)"
+msgstr ""
+
+#: src/gpsdrive.c:6977 src/gpsdrive.c:6981
+msgid ""
+"You can also select the position\n"
+"with a mouse click on the map."
+msgstr ""
+
+#: src/gpsdrive.c:6983
+msgid "Using Proxy and port:"
+msgstr ""
+
+#: src/gpsdrive.c:7280 src/gpsdrive.c:7397
+msgid "can't open socket for port 80"
+msgstr ""
+
+#: src/gpsdrive.c:7282 src/gpsdrive.c:7285 src/gpsdrive.c:7309
+#: src/gpsdrive.c:7312 src/gpsdrive.c:7327 src/gpsdrive.c:7330
+#: src/gpsdrive.c:7399 src/gpsdrive.c:7404 src/gpsdrive.c:7407
+#: src/gpsdrive.c:7411 src/gpsdrive.c:7446 src/gpsdrive.c:7451
+#: src/gpsdrive.c:7454 src/gpsdrive.c:7458 src/gpsdrive.c:7473
+#: src/gpsdrive.c:7478 src/gpsdrive.c:7481 src/gpsdrive.c:7485
+#, c-format
+msgid "Connecting to %s FAILED!"
+msgstr ""
+
+#: src/gpsdrive.c:7307 src/gpsdrive.c:7444
+msgid "Can't resolve webserver address"
+msgstr ""
+
+#: src/gpsdrive.c:7325 src/gpsdrive.c:7471
+msgid "unable to connect to Website"
+msgstr ""
+
+#: src/gpsdrive.c:7353 src/gpsdrive.c:7542
+msgid "read from Webserver"
+msgstr ""
+
+#: src/gpsdrive.c:7380 src/gpsdrive.c:7384 src/gpsdrive.c:7386
+#: src/gpsdrive.c:7389
+#, c-format
+msgid "Connecting to %s"
+msgstr ""
+
+#: src/gpsdrive.c:7499 src/gpsdrive.c:7503 src/gpsdrive.c:7505
+#: src/gpsdrive.c:7508
+#, c-format
+msgid "Now connected to %s"
+msgstr ""
+
+#: src/gpsdrive.c:7585
+#, c-format
+msgid "Downloaded %d kBytes"
+msgstr ""
+
+#: src/gpsdrive.c:7599
+msgid "Download FAILED!"
+msgstr ""
+
+#: src/gpsdrive.c:7601
+#, c-format
+msgid "Download finished, got %dkB"
+msgstr ""
+
+#: src/gpsdrive.c:7772
+msgid "Select a map file"
+msgstr ""
+
+#: src/gpsdrive.c:7837
+msgid ""
+"How to calibrate your own maps? First, the map file\n"
+"must be copied into the"
+msgstr ""
+
+#: src/gpsdrive.c:7839
+msgid ""
+"\n"
+"directory as .gif, .jpg or .png file and must have\n"
+"the size 1280x1024. The file names must be\n"
+"map_* for street maps or top_* for topographical maps!\n"
+"Load the file, select coordinates from waypoint list or\n"
+"type them in. Then click on the accept button."
+msgstr ""
+
+#: src/gpsdrive.c:7846
+msgid ""
+"Now do the same for your second point and click on the\n"
+"finish button. The map can be used now."
+msgstr ""
+
+#: src/gpsdrive.c:7851
+msgid "Import Assistant. Step 1"
+msgstr ""
+
+#: src/gpsdrive.c:7853
+msgid "Import Assistant. Step 2"
+msgstr ""
+
+#: src/gpsdrive.c:7858
+msgid "Accept first point"
+msgstr ""
+
+#: src/gpsdrive.c:7860
+msgid "Finish"
+msgstr ""
+
+#: src/gpsdrive.c:7881
+msgid "Go up"
+msgstr ""
+
+#: src/gpsdrive.c:7884
+msgid "Go left"
+msgstr ""
+
+#: src/gpsdrive.c:7887
+msgid "Go right"
+msgstr ""
+
+#: src/gpsdrive.c:7890
+msgid "Go down"
+msgstr ""
+
+#: src/gpsdrive.c:7893
+msgid "Zoom in"
+msgstr ""
+
+#: src/gpsdrive.c:7896
+msgid "Zoom out"
+msgstr ""
+
+#: src/gpsdrive.c:7915
+msgid "Screen X"
+msgstr ""
+
+#: src/gpsdrive.c:7917
+msgid "Screen Y"
+msgstr ""
+
+#: src/gpsdrive.c:7919
+msgid "Browse waypoint"
+msgstr ""
+
+#: src/gpsdrive.c:7950
+msgid "Browse filename"
+msgstr ""
+
+#: src/gpsdrive.c:8043
+msgid "GpsDrive Control"
+msgstr ""
+
+#: src/gpsdrive.c:8154 src/gpsdrive.c:8156 src/gpsdrive.c:8158
+#: src/gpsdrive.c:11670 src/gpsdrive.c:11672 src/gpsdrive.c:11674
+#: src/settings.c:1025
+msgid "Speed"
+msgstr ""
+
+#: src/gpsdrive.c:8375
+msgid ""
+"\n"
+"distance jump is more then 1000km/h speed, ignoring\n"
+msgstr ""
+
+#: src/gpsdrive.c:8597 src/friends.c:348
+msgid "/Misc. Menu/Messages"
+msgstr ""
+
+#: src/gpsdrive.c:8600
+msgid "Sending message to friends server..."
+msgstr ""
+
+#: src/gpsdrive.c:8673
+msgid "Message for:"
+msgstr ""
+
+#: src/gpsdrive.c:8714
+#, c-format
+msgid "Date: %s"
+msgstr ""
+
+#: src/gpsdrive.c:8727
+msgid "Sends your text to to selected computer using the friends server"
+msgstr ""
+
+#: src/gpsdrive.c:8999
+msgid "SELECTED"
+msgstr ""
+
+#: src/gpsdrive.c:9172
+msgid "Add waypoint name"
+msgstr ""
+
+#: src/gpsdrive.c:9231
+msgid " Waypoint name: "
+msgstr ""
+
+#: src/gpsdrive.c:9244
+msgid " Waypoint type: "
+msgstr ""
+
+#: src/gpsdrive.c:9489
+msgid "Name"
+msgstr ""
+
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/settings.c:1018
+msgid "Distance"
+msgstr ""
+
+#: src/gpsdrive.c:9499
+msgid "Please select message recipient"
+msgstr ""
+
+#: src/gpsdrive.c:9568 src/gpsdrive.c:9715
+msgid "Waypoint"
+msgstr ""
+
+#: src/gpsdrive.c:9587
+msgid "Select reference point"
+msgstr ""
+
+#: src/gpsdrive.c:9591
+msgid "Please select your destination"
+msgstr ""
+
+#: src/gpsdrive.c:9620
+msgid "Edit route"
+msgstr ""
+
+#: src/gpsdrive.c:9622
+msgid "Create route"
+msgstr ""
+
+#: src/gpsdrive.c:9693
+msgid "Create a route using some waypoints from this list"
+msgstr ""
+
+#: src/gpsdrive.c:9698
+msgid "Delete the selected waypoint from the waypoint list"
+msgstr ""
+
+#: src/gpsdrive.c:9702
+msgid "Jump to the selected waypoint"
+msgstr ""
+
+#: src/gpsdrive.c:9729
+msgid "Define route"
+msgstr ""
+
+#: src/gpsdrive.c:9737
+msgid "Start route"
+msgstr ""
+
+#: src/gpsdrive.c:9746
+msgid "Take all WP as route"
+msgstr ""
+
+#: src/gpsdrive.c:9751
+msgid "Abort route"
+msgstr ""
+
+#: src/gpsdrive.c:9795
+msgid ""
+"Click on waypoints list\n"
+"to add waypoints"
+msgstr ""
+
+#: src/gpsdrive.c:9797
+msgid ""
+"Click on list item\n"
+"to select next waypoint"
+msgstr ""
+
+#: src/gpsdrive.c:9838
+msgid ""
+"Create a route from all waypoints. Sorted with order in file, not distance."
+msgstr ""
+
+#: src/gpsdrive.c:9842
+msgid ""
+"Click here to start your journey. GpsDrive guides you through the waypoints "
+"in this list."
+msgstr ""
+
+#: src/gpsdrive.c:9845
+msgid "Abort your journey"
+msgstr ""
+
+#: src/gpsdrive.c:9862
+msgid "-v    show version\n"
+msgstr ""
+
+#: src/gpsdrive.c:9863
+msgid "-h    print this help\n"
+msgstr ""
+
+#: src/gpsdrive.c:9864
+msgid "-d    turn on debug info\n"
+msgstr ""
+
+#: src/gpsdrive.c:9865
+msgid "-D    turn on lot of debug info\n"
+msgstr ""
+
+#: src/gpsdrive.c:9866
+msgid "-e    use Festival-Lite (flite) for speech output\n"
+msgstr ""
+
+#: src/gpsdrive.c:9867
+msgid "-t    set serial device for GPS i.e. /dev/ttyS1\n"
+msgstr ""
+
+#: src/gpsdrive.c:9868
+msgid "-o    serial device, pty master, or file for NMEA *output*\n"
+msgstr ""
+
+#: src/gpsdrive.c:9869
+msgid "-f X  Select friends server, X is i.e. www.gpsdrive.cc\n"
+msgstr ""
+
+#: src/gpsdrive.c:9870
+msgid "-n    Disable use of direct serial connection\n"
+msgstr ""
+
+#: src/gpsdrive.c:9871
+msgid ""
+"-l X  Select language of the voice,\n"
+"      X may be english, spanish or german\n"
+msgstr ""
+
+#: src/gpsdrive.c:9873
+msgid ""
+"-s X  set height of the screen, if autodetection\n"
+"      don't satisfy you, X is i.e. 768,600,480,200\n"
+msgstr ""
+
+#. ** Mod by Arms
+#: src/gpsdrive.c:9876
+msgid "-r X  set width of the screen, only with -s\n"
+msgstr ""
+
+#: src/gpsdrive.c:9878
+msgid "-1    have only 1 button mouse, for example using touchscreen\n"
+msgstr ""
+
+#: src/gpsdrive.c:9879
+msgid "-a    don't display battery status (i.e. broken APM)\n"
+msgstr ""
+
+#: src/gpsdrive.c:9881
+msgid "-b X  Servername for NMEA server (if gpsd runs on another host)\n"
+msgstr ""
+
+#: src/gpsdrive.c:9883
+msgid "-c X  set start position in simulation mode to waypoint name X\n"
+msgstr ""
+
+#: src/gpsdrive.c:9884
+msgid "-x    create separate window for menu\n"
+msgstr ""
+
+#: src/gpsdrive.c:9885
+msgid "-p    set settings for PDA (iPAQ, Yopy...)\n"
+msgstr ""
+
+#: src/gpsdrive.c:9887
+msgid "-i    ignore NMEA checksum (risky, only for broken GPS receivers\n"
+msgstr ""
+
+#: src/gpsdrive.c:9888
+msgid "-q    disable SQL support\n"
+msgstr ""
+
+#: src/gpsdrive.c:9889
+msgid "-F    force display of position even it is invalid\n"
+msgstr ""
+
+#: src/gpsdrive.c:9890
+msgid "-S    don't show splash screen\n"
+msgstr ""
+
+#: src/gpsdrive.c:9891
+msgid "-E    print out data received from direct serial connection\n"
+msgstr ""
+
+#: src/gpsdrive.c:9893
+msgid "-W x  set x to 1 to switch WAAS/EGNOS on, set to 0 to switch off\n"
+msgstr ""
+
+#: src/gpsdrive.c:9894
+msgid "-H X  correct altitude, adding this value to altitude\n"
+msgstr ""
+
+#: src/gpsdrive.c:9895
+msgid ""
+"-z    don't display zoom factor and scale\n"
+"\n"
+msgstr ""
+
+#: src/gpsdrive.c:10001
+msgid "Select a track file"
+msgstr ""
+
+#: src/gpsdrive.c:10179 src/gpskismet.c:380
+msgid "can't open socket for port "
+msgstr ""
+
+#: src/gpsdrive.c:10200
+#, c-format
+msgid ""
+"\n"
+"Cannot connect to %s: unknown host\n"
+msgstr ""
+
+#: src/gpsdrive.c:10221
+msgid "NMEA Mode, Port 2222"
+msgstr ""
+
+#: src/gpsdrive.c:10230
+msgid "NMEA Mode, Port 2947"
+msgstr ""
+
+#: src/gpsdrive.c:10249
+msgid ""
+"\n"
+"Garmin protocol detection disabled!\n"
+msgstr ""
+
+#: src/gpsdrive.c:10600
+msgid ""
+"\n"
+"libmysqlclient.so not found.\n"
+msgstr ""
+
+#: src/gpsdrive.c:10606
+msgid ""
+"\n"
+"MySQL support disabled.\n"
+msgstr ""
+
+#: src/gpsdrive.c:10783
+msgid ""
+"\n"
+"You can only choose between english, spanish and german\n"
+"\n"
+msgstr ""
+
+#: src/gpsdrive.c:10817 src/settings.c:1730
+msgid "EnterYourName"
+msgstr ""
+
+#: src/gpsdrive.c:10879
+#, c-format
+msgid ""
+"\n"
+"Using proxy: %s on port %d"
+msgstr ""
+
+#: src/gpsdrive.c:10883
+msgid ""
+"\n"
+"Invalid enviroment variable HTTP_PROXY, must be in format: http://proxy."
+"provider.de:3128"
+msgstr ""
+
+#: src/gpsdrive.c:11073
+msgid "Gpsdrive-2 (c)2001-2004 F.Ganter"
+msgstr ""
+
+#: src/gpsdrive.c:11081
+msgid "Using speech output"
+msgstr ""
+
+#: src/gpsdrive.c:11115
+msgid "/Misc. Menu/Maps/Map Manager"
+msgstr ""
+
+#: src/gpsdrive.c:11119
+msgid "/Misc. Menu/Waypoint Manager"
+msgstr ""
+
+#. download map button
+#: src/gpsdrive.c:11123
+msgid "_Download map"
+msgstr ""
+
+#: src/gpsdrive.c:11142
+msgid "M_ute"
+msgstr ""
+
+#: src/gpsdrive.c:11152
+msgid "Use SQ_L"
+msgstr ""
+
+#: src/gpsdrive.c:11162
+msgid "Show _WP"
+msgstr ""
+
+#: src/gpsdrive.c:11189
+msgid "HomeBase"
+msgstr ""
+
+#: src/gpsdrive.c:11197
+msgid "Pos. _mode"
+msgstr ""
+
+#: src/gpsdrive.c:11203
+msgid "Show _Track"
+msgstr ""
+
+#: src/gpsdrive.c:11246
+msgid "_Navigation"
+msgstr ""
+
+#: src/gpsdrive.c:11265
+msgid "Auto _best map"
+msgstr ""
+
+#: src/gpsdrive.c:11275
+msgid "Save track"
+msgstr ""
+
+#: src/gpsdrive.c:11286
+msgid "Shown map type"
+msgstr ""
+
+#: src/gpsdrive.c:11297
+msgid "Street map"
+msgstr ""
+
+#: src/gpsdrive.c:11304
+msgid "Topo map"
+msgstr ""
+
+#: src/gpsdrive.c:11386
+msgid ""
+"\n"
+"kismet server found\n"
+msgstr ""
+
+#: src/gpsdrive.c:11447 src/gpsdrive.c:11797
+msgid "Bearing"
+msgstr ""
+
+#: src/gpsdrive.c:11468
+msgid "GPS Info"
+msgstr ""
+
+#: src/gpsdrive.c:11519
+msgid "Bat."
+msgstr ""
+
+#: src/gpsdrive.c:11534
+msgid "TC"
+msgstr ""
+
+#. displays speed over ground
+#: src/gpsdrive.c:11552 src/gpsdrive.c:11807 src/gpsdrive.c:11809
+#: src/gpsdrive.c:11815 src/gpsdrive.c:11817
+msgid "---"
+msgstr ""
+
+#: src/gpsdrive.c:11632 src/gpsdrive.c:11639
+msgid "Selected:"
+msgstr ""
+
+#: src/gpsdrive.c:11632 src/gpsdrive.c:11639
+msgid "within"
+msgstr ""
+
+#. create frames for labels
+#: src/gpsdrive.c:11647
+msgid "Distance to target"
+msgstr ""
+
+#. ** Mod by Arms
+#. if (!pdamode)
+#. gtk_box_pack_start (GTK_BOX (hbox2), frame_speed, TRUE, TRUE,
+#. 1 * PADDING);
+#: src/gpsdrive.c:11683
+msgid "Altitude"
+msgstr ""
+
+#. ** Mod by Arms
+#. if (!pdamode)
+#. gtk_box_pack_start (GTK_BOX (hbox2), frame_altitude, FALSE, TRUE,
+#. 1 * PADDING);
+#: src/gpsdrive.c:11690 src/settings.c:681
+msgid "Waypoints"
+msgstr ""
+
+#: src/gpsdrive.c:11794
+msgid "Map file"
+msgstr ""
+
+#: src/gpsdrive.c:11795
+msgid "Map scale"
+msgstr ""
+
+#: src/gpsdrive.c:11796
+msgid "Heading"
+msgstr ""
+
+#: src/gpsdrive.c:11798
+msgid "Time at Dest."
+msgstr ""
+
+#: src/gpsdrive.c:11799
+msgid "Pref. scale"
+msgstr ""
+
+#: src/gpsdrive.c:11803
+msgid "000,00000N"
+msgstr ""
+
+#: src/gpsdrive.c:11805
+msgid "000,00000E"
+msgstr ""
+
+#: src/gpsdrive.c:11811 src/gpsdrive.c:11813
+msgid "0000"
+msgstr ""
+
+#. gdk_window_lower((GdkWindow *)menuwin);
+#: src/gpsdrive.c:11886 src/gpsdrive.c:11937
+msgid "Menu"
+msgstr ""
+
+#. gdk_window_lower((GdkWindow *)menuwin2);
+#: src/gpsdrive.c:11895 src/gpsdrive.c:11938
+msgid "Status"
+msgstr ""
+
+#: src/gpsdrive.c:12089
+msgid ""
+"Click here to switch betwen satetellite level and satellite position "
+"display. A rotating globe is shown in simulation mode"
+msgstr ""
+
+#: src/gpsdrive.c:12093
+msgid "Number of used satellites/satellites in view"
+msgstr ""
+
+#: src/gpsdrive.c:12096
+msgid "EPE (Estimated Precision Error), if available"
+msgstr ""
+
+#: src/gpsdrive.c:12100
+msgid ""
+"PDOP (Position Dilution Of Precision). PDOP less than 4 gives the best "
+"accuracy, between 4 and 8 gives acceptable accuracy and greater than 8 gives "
+"unacceptable poor accuracy. "
+msgstr ""
+
+#: src/gpsdrive.c:12105
+msgid ""
+"On top of the compass you see the direction to which you move. The pointer "
+"shows the target direction on the compass."
+msgstr ""
+
+#: src/gpsdrive.c:12108
+msgid "/Misc. Menu"
+msgstr ""
+
+#: src/gpsdrive.c:12111
+msgid "Here you find extra functions for maps, tracks and messages"
+msgstr ""
+
+#: src/gpsdrive.c:12115
+msgid "Download map from Internet"
+msgstr ""
+
+#: src/gpsdrive.c:12117
+msgid "Leave the program"
+msgstr ""
+
+#: src/gpsdrive.c:12120
+msgid "Disable output of speech"
+msgstr ""
+
+#: src/gpsdrive.c:12123
+msgid "Use SQL server for waypoints"
+msgstr ""
+
+#: src/gpsdrive.c:12126
+msgid "Show waypoints on the map"
+msgstr ""
+
+#: src/gpsdrive.c:12129
+msgid ""
+"Turn position mode on. You can move on the map with the left mouse button "
+"click. Clicking near the border switches to the proximate map."
+msgstr ""
+
+#: src/gpsdrive.c:12132
+msgid "Show tracking on the map"
+msgstr ""
+
+#: src/gpsdrive.c:12137
+msgid "Opens the help window"
+msgstr ""
+
+#: src/gpsdrive.c:12140
+msgid "Navigation menu. Enter here your destination."
+msgstr ""
+
+#: src/gpsdrive.c:12156
+msgid "Settings for GpsDrive"
+msgstr ""
+
+#: src/gpsdrive.c:12158
+msgid "Zoom into the current map"
+msgstr ""
+
+#: src/gpsdrive.c:12160
+msgid "Zooms out off the current map"
+msgstr ""
+
+#: src/gpsdrive.c:12162
+msgid "Select the next more detailed map"
+msgstr ""
+
+#: src/gpsdrive.c:12164
+msgid "Select the next less detailed map"
+msgstr ""
+
+#: src/gpsdrive.c:12169
+msgid "Select here a destination from the waypoint list"
+msgstr ""
+
+#: src/gpsdrive.c:12173
+msgid "Select the map scale of avail. maps."
+msgstr ""
+
+#: src/gpsdrive.c:12178
+msgid "Always select the most detailed map available"
+msgstr ""
+
+#: src/gpsdrive.c:12181
+msgid "Save the track to given filename at program exit"
+msgstr ""
+
+#: src/gpsdrive.c:12187
+msgid "Number of waypoints selected from SQL server"
+msgstr ""
+
+#: src/gpsdrive.c:12191
+msgid "Number of selected waypoints, which are in range"
+msgstr ""
+
+#: src/gpsdrive.c:12195
+msgid "Range for waypoint selection in kilometers"
+msgstr ""
+
+#: src/gpsdrive.c:12198
+msgid "This shows the time from your GPS receiver"
+msgstr ""
+
+#: src/gpsdrive.c:12201
+msgid ""
+"Number of mobile targets within timeframe/total received from friendsserver"
+msgstr ""
+
+#: src/gpsdrive.c:12275
+msgid ""
+"\n"
+"\n"
+"Thank you for using GpsDrive!\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:543
+msgid "GpsDrive v"
+msgstr ""
+
+#: src/splash.c:549
+msgid ""
+"\n"
+"\n"
+"You find new versions on http://www.gpsdrive.cc\n"
+msgstr ""
+
+#: src/splash.c:553
+msgid ""
+"Disclaimer: Please do not use for navigation. \n"
+"\n"
+msgstr ""
+
+#: src/splash.c:558
+msgid "Please have a look into the manpage (man gpsdrive) for program details!"
+msgstr ""
+
+#: src/splash.c:563
+msgid "Mouse control (clicking on the map):\n"
+msgstr ""
+
+#: src/splash.c:569
+msgid ""
+"Left mouse button         : Set position (usefull in simulation mode)\n"
+"Right mouse button        : Set target directly on the map\n"
+"Middle mouse button       : Display position again\n"
+"Shift left mouse button   : smaller map\n"
+"Shift right mouse button  : larger map\n"
+"Control left mouse button : Set a waypoint (mouse position) on the map\n"
+"Control right mouse button: Set a waypoint at current position on the map\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:577
+msgid ""
+"j    : switch to next waypoint in route mode\n"
+"x    : add waypoint at current position\n"
+"y    : add waypoint at mouse cursor position\n"
+msgstr ""
+
+#: src/splash.c:583
+msgid "Short cuts:\n"
+msgstr ""
+
+#: src/splash.c:590
+msgid "The other key shortcuts are marked as "
+msgstr ""
+
+#: src/splash.c:591
+msgid "underlined"
+msgstr ""
+
+#: src/splash.c:593
+msgid " letters in the button text.\n"
+msgstr ""
+
+#: src/splash.c:596
+msgid ""
+"Press the underlined key together with the ALT-key.\n"
+"\n"
+"You can move on the map by selecting the Position-Mode in the menu. A blue "
+"rectangle shows this mode, you can set this cursor by clicking on the map. "
+"If you click on the border of the map (the outer 20%) then the map switches "
+"to the next area.\n"
+"\n"
+"Suggestions welcome.\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:603
+msgid "Have a lot of fun!"
+msgstr ""
+
+#: src/splash.c:734
+msgid "Please donate to GpsDrive"
+msgstr ""
+
+#: src/splash.c:740
+msgid ""
+"\n"
+"\n"
+"GpsDrive is a project with no comercial background. \n"
+"\n"
+"It would be nice if you can give a donation to help me pay the costs for "
+"hardware and the webserver.\n"
+"\n"
+"To do so, just go to"
+msgstr ""
+
+#: src/splash.c:744
+msgid " http://www.gpsdrive.cc "
+msgstr ""
+
+#: src/splash.c:747
+msgid ""
+"and click on the PayPal button.\n"
+"\n"
+"Thank you very much for your donation!\n"
+"\n"
+"This message is only displayed once when you start an new version of "
+"GpsDrive.\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:780
+msgid "About GpsDrive donation"
+msgstr ""
+
+#: src/splash.c:859
+msgid "From:"
+msgstr ""
+
+#: src/splash.c:928
+#, c-format
+msgid ""
+"You received a message from\n"
+"the friends server (%s)\n"
+msgstr ""
+
+#: src/splash.c:938
+msgid "You received a message through the friends server from:\n"
+msgstr ""
+
+#: src/splash.c:948
+msgid "Message text:\n"
+msgstr ""
+
+#: src/splash.c:1004
+msgid "Error saving config file ~/.gpsdrive/gpsdriverc"
+msgstr ""
+
+#: src/splash.c:1519 src/splash.c:1578
+msgid ""
+"\n"
+"Warning: unable to open splash picture\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:1562
+msgid "About GpsDrive"
+msgstr ""
+
+#: src/settings.c:438
+msgid "Setting WP label font"
+msgstr ""
+
+#: src/settings.c:440
+msgid "Setting big display font"
+msgstr ""
+
+#: src/settings.c:507
+msgid "Setting big display color"
+msgstr ""
+
+#: src/settings.c:545
+msgid "Setting track color"
+msgstr ""
+
+#: src/settings.c:587
+msgid "Setting friends label color"
+msgstr ""
+
+#: src/settings.c:668
+msgid ""
+"Don't use more than\n"
+"100 waypoint(way*.txt) files!"
+msgstr ""
+
+#: src/settings.c:679
+msgid "Waypoint files to use"
+msgstr ""
+
+#: src/settings.c:704 src/settings.c:709
+msgid "Settings"
+msgstr ""
+
+#. misc area
+#: src/settings.c:716
+msgid "Misc settings"
+msgstr ""
+
+#: src/settings.c:720
+msgid "Show Shadows"
+msgstr ""
+
+#: src/settings.c:727
+msgid "Etched frames"
+msgstr ""
+
+#: src/settings.c:735
+msgid "Simulation: Follow target"
+msgstr ""
+
+#: src/settings.c:742
+msgid "Maximum CPU load"
+msgstr ""
+
+#: src/settings.c:752
+msgid "Track"
+msgstr ""
+
+#: src/settings.c:767
+msgid "Maps directory"
+msgstr ""
+
+#: src/settings.c:773
+msgid "Automatic"
+msgstr ""
+
+#: src/settings.c:779
+msgid "On"
+msgstr ""
+
+#: src/settings.c:784
+msgid "Off"
+msgstr ""
+
+#. gtk_table_attach_defaults (GTK_TABLE (misctable), label2, 0, 2, 3, 4);
+#. gtk_table_attach_defaults (GTK_TABLE (misctable), mapdirbt, 0, 2, 4, 5);
+#. GPS settings area
+#: src/settings.c:808
+msgid "GPS settings"
+msgstr ""
+
+#. gtk_container_add (GTK_CONTAINER (f4), gpstable);
+#: src/settings.c:822
+msgid "Test for GARMIN"
+msgstr ""
+
+#: src/settings.c:833
+msgid "Use DGPS-IP"
+msgstr ""
+
+#: src/settings.c:843
+msgid "GPS is Earthmate"
+msgstr ""
+
+#: src/settings.c:853
+msgid "Use serial conn."
+msgstr ""
+
+#: src/settings.c:868
+msgid "Interface"
+msgstr ""
+
+#: src/settings.c:869
+msgid "Baudrate"
+msgstr ""
+
+#. units area
+#: src/settings.c:904
+msgid "Units"
+msgstr ""
+
+#: src/settings.c:910
+msgid "Miles"
+msgstr ""
+
+#: src/settings.c:915
+msgid "Metric"
+msgstr ""
+
+#: src/settings.c:920 src/nautic.c:106
+msgid "Nautic"
+msgstr ""
+
+#: src/settings.c:930
+msgid "Decimal position"
+msgstr ""
+
+#. gtk_box_pack_start (GTK_BOX (v2), miles, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), metric, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), nautic, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), minsecbt, TRUE, FALSE, 2 * PADDING);
+#.
+#. default download server
+#: src/settings.c:948
+msgid "Default map server"
+msgstr ""
+
+#. Night light mode
+#: src/settings.c:981
+msgid "Night light mode"
+msgstr ""
+
+#.  gtk_table_attach_defaults (GTK_TABLE (table), f5, 0, 2, 2, 3);
+#. Sound settings
+#: src/settings.c:999
+msgid "Speech output settings"
+msgstr ""
+
+#.
+#. set following sounds
+#. sound_direction ... say direction to target
+#. sound_distance  ... say distance to target
+#. sound_speed     ... say your current speed
+#. sound_gps       ... say GPS status
+#.
+#.
+#: src/settings.c:1011
+msgid "Direction"
+msgstr ""
+
+#: src/settings.c:1032
+msgid "GPS Status"
+msgstr ""
+
+#: src/settings.c:1046
+msgid "Switch on for speech output of the direction to the target"
+msgstr ""
+
+#: src/settings.c:1051
+msgid "Switch on for speech output of the distance to the target"
+msgstr ""
+
+#: src/settings.c:1056
+msgid "Switch on for speech output of your current speed"
+msgstr ""
+
+#: src/settings.c:1061
+msgid "Switch on for speech output of the status of your GPS signal"
+msgstr ""
+
+#. Font settings
+#: src/settings.c:1066
+msgid "Font and color settings"
+msgstr ""
+
+#. gtk_box_pack_start (GTK_BOX (h1), f5, TRUE, FALSE, 2 * PADDING);
+#: src/settings.c:1071
+msgid "WP Label"
+msgstr ""
+
+#: src/settings.c:1072
+msgid "Big display"
+msgstr ""
+
+#: src/settings.c:1073
+msgid "Display color"
+msgstr ""
+
+#: src/settings.c:1101
+msgid "Switch units to statute miles"
+msgstr ""
+
+#: src/settings.c:1103
+msgid "Switch units to nautical miles"
+msgstr ""
+
+#: src/settings.c:1105
+msgid "Switch units to metric system (Kilometers)"
+msgstr ""
+
+#: src/settings.c:1110
+msgid ""
+"If selected display latitude and longitude in decimal degrees, otherwise in "
+"degree, minutes and seconds notation"
+msgstr ""
+
+#: src/settings.c:1115
+msgid ""
+"Set the german expedia server(expedia.de) as default download server. Use "
+"this if you are in Europe"
+msgstr ""
+
+#: src/settings.c:1119
+msgid "Set Expedia as default download server"
+msgstr ""
+
+#: src/settings.c:1122
+msgid "Switches shadows on map on or off"
+msgstr ""
+
+#: src/settings.c:1126
+msgid "Switches between different type of frame ornaments"
+msgstr ""
+
+#: src/settings.c:1131
+#, c-format
+msgid ""
+"Select the approx. maximum CPU load, use 20-30% on notebooks while on "
+"battery to save battery power. This effects the refresh rate of the map "
+"screen"
+msgstr ""
+
+#: src/settings.c:1136
+msgid "If activated, pointer moves to target in simulation mode"
+msgstr ""
+
+#: src/settings.c:1140
+msgid "Set here the color of the drawn track"
+msgstr ""
+
+#: src/settings.c:1144
+msgid ""
+"Path to your map files. In the specified directory also the index file "
+"map_koord.txt must be present."
+msgstr ""
+
+#: src/settings.c:1149
+msgid ""
+"If selected, gpsdrive try to use GARMIN mode if possible. Unselect if you "
+"only have a NMEA device."
+msgstr ""
+
+#: src/settings.c:1154
+msgid ""
+"Set here the baud rate of your GPS device, NMEA devices usually have a speed "
+"of 4800 baud"
+msgstr ""
+
+#: src/settings.c:1159
+msgid ""
+"If selected, gpsdrive try to use differential GPS over IP. You must have an "
+"internet connection and a DGPS capable GPS receiver. Works only in NMEA mode!"
+msgstr ""
+
+#: src/settings.c:1164
+msgid ""
+"Select this if you have a DeLorme Earthmate GPS receiver. The StartGPSD "
+"button will provide gpsd with the needed additional parameters"
+msgstr ""
+
+#: src/settings.c:1169
+msgid ""
+"Select this if you want to use of the direct serial connection. If disabled, "
+"you can use the receiver only through gpsd. On the other hand, the direct "
+"serial connection needs no gpsd running and detects the working receiver on "
+"startup"
+msgstr ""
+
+#: src/settings.c:1174
+msgid "Specify the serial interface where the GPS is connected"
+msgstr ""
+
+#: src/settings.c:1179
+msgid ""
+"Switches automagically to night mode if it is dark outside. Press 'N' key to "
+"turn off nightmode."
+msgstr ""
+
+#: src/settings.c:1183
+msgid "Switches night mode on. Press 'N' key to turn off nightmode."
+msgstr ""
+
+#: src/settings.c:1186
+msgid "Switches night mode off"
+msgstr ""
+
+#: src/settings.c:1190
+msgid "Here you can set the font for the waypoint labels"
+msgstr ""
+
+#: src/settings.c:1195
+msgid "Here you can set the font for the big display for Speed and Distance"
+msgstr ""
+
+#: src/settings.c:1199
+msgid ""
+"Here you can set the color for the big display for speed, distance and "
+"altitude"
+msgstr ""
+
+#: src/settings.c:1377
+msgid "Geo information"
+msgstr ""
+
+#: src/settings.c:1379
+msgid "Geo info"
+msgstr ""
+
+#: src/settings.c:1390
+msgid "Sunrise"
+msgstr ""
+
+#: src/settings.c:1392
+msgid "Sunset"
+msgstr ""
+
+#: src/settings.c:1395
+msgid "Standard"
+msgstr ""
+
+#: src/settings.c:1397
+msgid "Transit"
+msgstr ""
+
+#: src/settings.c:1399
+msgid "GPS-Time"
+msgstr ""
+
+#: src/settings.c:1401
+msgid "Astro."
+msgstr ""
+
+#: src/settings.c:1403
+msgid "Naut."
+msgstr ""
+
+#: src/settings.c:1405
+msgid "Civil"
+msgstr ""
+
+#: src/settings.c:1407
+msgid "Timezone"
+msgstr ""
+
+#: src/settings.c:1409
+msgid "Store TZ"
+msgstr ""
+
+#: src/settings.c:1419
+msgid ""
+"If selected, the timezone is stored, otherwise your actual timezone will "
+"automatically used"
+msgstr ""
+
+#: src/settings.c:1453
+msgid "Night"
+msgstr ""
+
+#: src/settings.c:1455
+msgid "Day"
+msgstr ""
+
+#: src/settings.c:1592 src/settings.c:1594 src/settings.c:1597
+msgid "Unit:"
+msgstr ""
+
+#: src/settings.c:1592
+msgid "miles"
+msgstr ""
+
+#: src/settings.c:1595
+msgid "nautic miles/knots"
+msgstr ""
+
+#: src/settings.c:1597
+msgid "kilometers"
+msgstr ""
+
+#: src/settings.c:1612
+msgid "Trip information"
+msgstr ""
+
+#: src/settings.c:1614
+msgid "Trip info"
+msgstr ""
+
+#: src/settings.c:1628
+msgid "Odometer"
+msgstr ""
+
+#: src/settings.c:1630
+msgid "Total time"
+msgstr ""
+
+#: src/settings.c:1632
+msgid "Av. speed"
+msgstr ""
+
+#: src/settings.c:1634
+msgid "Max. speed"
+msgstr ""
+
+#: src/settings.c:1658
+msgid "Reset"
+msgstr ""
+
+#: src/settings.c:1663
+msgid "Resets the trip values to zero"
+msgstr ""
+
+#: src/settings.c:1732
+msgid "You should change your name in the first field!"
+msgstr ""
+
+#: src/settings.c:1918
+msgid "Show position newer as"
+msgstr ""
+
+#: src/settings.c:1920
+msgid "Friends server setup"
+msgstr ""
+
+#: src/settings.c:1921
+msgid "Friends"
+msgstr ""
+
+#: src/settings.c:1933
+msgid "Days"
+msgstr ""
+
+#: src/settings.c:1934
+msgid "Hours"
+msgstr ""
+
+#: src/settings.c:1935
+msgid "Minutes"
+msgstr ""
+
+#: src/settings.c:1941
+msgid "Your name"
+msgstr ""
+
+#: src/settings.c:1946
+msgid ""
+"Set here your name which should be shown near your vehicle. You may use "
+"spaces here!"
+msgstr ""
+
+#: src/settings.c:1958
+msgid "Server name"
+msgstr ""
+
+#: src/settings.c:1963
+msgid ""
+"Set here the full qualified host name (i.e. www.gpsdrive.cc) of your friends "
+"server, then you have to press the \"Lookup\" button!"
+msgstr ""
+
+#: src/settings.c:1972
+msgid "Lookup"
+msgstr ""
+
+#: src/settings.c:1980
+msgid ""
+"You have to press the \"Lookup\" button to resolve the friends server name!"
+msgstr ""
+
+#: src/settings.c:1991
+msgid "Set here the color of the label displayed at friends position"
+msgstr ""
+
+#: src/settings.c:1997
+msgid "Friends server IP"
+msgstr ""
+
+#: src/settings.c:2002
+msgid ""
+"Set here the IP adress (i.e. 127.0.0.1) if you don't set the hostname above"
+msgstr ""
+
+#: src/settings.c:2007 src/settings.c:2012 src/settings.c:2016
+msgid ""
+"Set here the time limit in which the friends position is shown. Older "
+"positions are not shown."
+msgstr ""
+
+#: src/settings.c:2028
+msgid "Use friends server"
+msgstr ""
+
+#: src/settings.c:2036
+msgid ""
+"Enable/disable use of friends server. You must enter a Username, don't use "
+"the default name!"
+msgstr ""
+
+#: src/settings.c:2039
+msgid ""
+"If you enable the friendsserver mode,\n"
+"<span color=\"red\">everyone</span> using the same server\n"
+"can see your position!"
+msgstr ""
+
+#: src/settings.c:2094
+msgid "SQL selection criterias"
+msgstr ""
+
+#: src/settings.c:2095
+msgid "SQL"
+msgstr ""
+
+#: src/settings.c:2121
+msgid "Dist. limit[km] "
+msgstr ""
+
+#: src/settings.c:2126
+msgid "If enabled, show waypoints only within this distance"
+msgstr ""
+
+#: src/settings.c:2142
+msgid "Enable/disable distance selection"
+msgstr ""
+
+#: src/settings.c:2151
+msgid "Show no_ssid "
+msgstr ""
+
+#: src/settings.c:2162
+msgid ""
+"If enabled, WLANs with no SSID are shown, because this is perhaps useless, "
+"you can disable it here"
+msgstr ""
+
+#: src/settings.c:2168
+msgid "Selection mode"
+msgstr ""
+
+#: src/settings.c:2170
+msgid "include"
+msgstr ""
+
+#: src/settings.c:2173
+msgid "exclude"
+msgstr ""
+
+#: src/settings.c:2177
+msgid ""
+"Show only waypoints where the type field contains one of the selected words"
+msgstr ""
+
+#: src/settings.c:2181
+msgid ""
+"Show only waypoints where the type field doesn't contain any the selected "
+"words"
+msgstr ""
+
+#: src/fly.c:149
+msgid "Aeronautical settings"
+msgstr ""
+
+#: src/fly.c:151
+msgid "Fly"
+msgstr ""
+
+#: src/fly.c:158
+msgid "Plane mode"
+msgstr ""
+
+#: src/fly.c:165
+msgid "Use VFR"
+msgstr ""
+
+#: src/fly.c:171
+msgid "Use IFR"
+msgstr ""
+
+#: src/fly.c:181
+msgid "max. horizontal deviation "
+msgstr ""
+
+#: src/fly.c:183
+msgid "max. vertical deviation "
+msgstr ""
+
+#: src/fly.c:198
+msgid "disable vert. deviation warning above 5000ft MSL"
+msgstr ""
+
+#: src/nautic.c:103
+msgid "Nautic settings"
+msgstr ""
+
+#. if (debug)
+#: src/gpssql.c:215
+#, c-format
+msgid ""
+"\n"
+"SQL: connected to %s as %s using %s\n"
+msgstr ""
+
+#: src/gpssql.c:278
+#, c-format
+msgid "rows inserted: %d\n"
+msgstr ""
+
+#: src/gpssql.c:293
+#, c-format
+msgid "last index: %d\n"
+msgstr ""
+
+#: src/gpssql.c:314
+#, c-format
+msgid "rows deleted: %d\n"
+msgstr ""
+
+#: src/gpssql.c:366 src/gpssql.c:372
+#, c-format
+msgid "Loaded user defined icon %s\n"
+msgstr ""
+
+#: src/gpssql.c:455
+#, c-format
+msgid "%d(%d) rows read in %.2f seconds\n"
+msgstr ""
+
+#: src/friends.c:363
+msgid "unknown"
+msgstr ""
+
+#: src/friendsd.c:472
+msgid "server: please don't run me as root\n"
+msgstr ""
+
+#: src/friendsd.c:484
+#, c-format
+msgid ""
+"\n"
+"Usage:\n"
+"   %s -n servername\n"
+"provides a name for your server\n"
+msgstr ""
+
+#: src/gpsnasamap.c:189
+#, c-format
+msgid "could not create output map file %s!\n"
+msgstr ""
+
+#. g_signal_connect (window, "destroy",
+#. G_CALLBACK (gtk_widget_destroyed), &window);
+#: src/gpsnasamap.c:204
+msgid "Creating map..."
+msgstr ""
+
+#: src/gpsnasamap.c:212
+msgid "Creating a temporary map from NASA satellite images"
+msgstr ""
+
+#: src/gpsnasamap.c:219
+#, c-format
+msgid "converting map for latitude: %f and longitude: %f ...\n"
+msgstr ""
+
+#: src/gpsnasamap.c:324
+msgid ""
+"\n"
+"You can permanently add this map file with following line in your\n"
+"map_koord.txt (rename the file!):\n"
+msgstr ""
+
+#: src/gpsserial.c:252
+msgid "waiting for thread to stop\n"
+msgstr ""
+
+#: src/gpsserial.c:275
+#, c-format
+msgid ""
+"\n"
+"error opening %s(%d)\n"
+msgstr ""
+
+#: src/gpsserial.c:278
+#, c-format
+msgid "successfull opened %s\n"
+msgstr ""
+
+#: src/gpsserial.c:284
+msgid "switching WAAS/EGNOS on\n"
+msgstr ""
+
+#: src/gpsserial.c:290
+msgid "switching WAAS/EGNOS off\n"
+msgstr ""

Added: packages/gpsdrive/branches/etch/po/gr.gmo
===================================================================
(Binary files differ)


Property changes on: packages/gpsdrive/branches/etch/po/gr.gmo
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: packages/gpsdrive/branches/etch/po/gr.po
===================================================================
--- packages/gpsdrive/branches/etch/po/gr.po	                        (rev 0)
+++ packages/gpsdrive/branches/etch/po/gr.po	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,2359 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-03-03 21:47+0100\n"
+"PO-Revision-Date: 2003-01-21 19:11+0200\n"
+"Last-Translator: Yiannis Pailas <johntop at pathfinder.gr>\n"
+"Language-Team: Greek <el at li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 0.9.6\n"
+
+#: src/gpsdrive.c:2179
+msgid "/_Misc. Menu"
+msgstr ""
+
+#: src/gpsdrive.c:2180
+msgid "/_Misc. Menu/Maps"
+msgstr ""
+
+#: src/gpsdrive.c:2181
+#, fuzzy
+msgid "/_Misc. Menu/Maps/_Import map"
+msgstr "i    : εισαγωγή χάρτη\n"
+
+#: src/gpsdrive.c:2185
+msgid "/_Misc. Menu/Maps/_Map Manager"
+msgstr ""
+
+#: src/gpsdrive.c:2187
+msgid "/_Misc. Menu/_Waypoint Manager"
+msgstr ""
+
+#: src/gpsdrive.c:2189
+#, fuzzy
+msgid "/_Misc. Menu/_Load track file"
+msgstr "Επιλέξτε αρχείο διαδρομής"
+
+#: src/gpsdrive.c:2193
+#, fuzzy
+msgid "/_Misc. Menu/Messages"
+msgstr "Επιλέξτε αρχείο διαδρομής"
+
+#: src/gpsdrive.c:2194
+msgid "/_Misc. Menu/Messages/Send message to mobile target"
+msgstr ""
+
+#: src/gpsdrive.c:2199
+msgid "/_Misc. Menu/Help"
+msgstr ""
+
+#: src/gpsdrive.c:2200
+msgid "/_Misc. Menu/Help/About"
+msgstr ""
+
+#: src/gpsdrive.c:2202
+msgid "/_Misc. Menu/Help/Topics"
+msgstr ""
+
+#: src/gpsdrive.c:2271
+msgid "  Message  "
+msgstr "  Μύνημα  "
+
+#: src/gpsdrive.c:2315 src/gpsdrive.c:12145
+#, fuzzy
+msgid "Stop GPSD"
+msgstr "Έναρξη GPSD"
+
+#: src/gpsdrive.c:2317 src/gpsdrive.c:12147
+#, fuzzy
+msgid "Stop GPSD and switch to simulation mode"
+msgstr "p    : μεταβαίνει σε κατάσταση θέσης\n"
+
+#: src/gpsdrive.c:2339 src/gpsdrive.c:11261
+msgid "Start GPSD"
+msgstr "Έναρξη GPSD"
+
+#: src/gpsdrive.c:2341 src/gpsdrive.c:12153
+msgid "Starts GPSD for NMEA mode"
+msgstr "Ξεκινά το GPSD σε κατάσταση NMEA"
+
+#. displays zoom factor of map
+#: src/gpsdrive.c:2354 src/gpsdrive.c:2355 src/gpsdrive.c:2356
+#: src/gpsdrive.c:6264 src/gpsdrive.c:6273 src/gpsdrive.c:11484
+#: src/gpsdrive.c:11491 src/gpsdrive.c:11498 src/gpsdrive.c:11555
+#: src/gpsdrive.c:11560 src/gpsdrive.c:11566 src/gpsdrive.c:11602
+#: src/gpsdrive.c:11609 src/settings.c:1425 src/settings.c:1434
+#: src/settings.c:1443 src/settings.c:1468 src/settings.c:1478
+#: src/settings.c:1487 src/settings.c:1498 src/settings.c:1507
+#: src/settings.c:1517
+msgid "n/a"
+msgstr "μη διαθέσιμο"
+
+#: src/gpsdrive.c:2366 src/gpsdrive.c:10245
+msgid ""
+"\n"
+"no garmin support compiled in\n"
+msgstr ""
+"\n"
+"δεν έχει εγκατασταθεί υποστήριξη garmin\n"
+
+#: src/gpsdrive.c:2387 src/gpsdrive.c:3136
+msgid "Simulation mode"
+msgstr "Κατάσταση προσομείωσης"
+
+#: src/gpsdrive.c:2409
+msgid "got RMC data, using it\n"
+msgstr ""
+
+#: src/gpsdrive.c:2498 src/gpsdrive.c:11936
+msgid "Map"
+msgstr "Χάρτης"
+
+#. if (debug)
+#: src/gpsdrive.c:2661
+msgid "got no RMC data, using GGA data\n"
+msgstr ""
+
+#: src/gpsdrive.c:2912
+msgid "Timeout getting data from GPS-Receiver!"
+msgstr "Λήξη χρόνου κατά τη λήψη δεδομένων από τον Δέκτη-GPS!"
+
+#: src/gpsdrive.c:2959 src/gpsdrive.c:3008 src/gpsdrive.c:3113
+#: src/gpsdrive.c:3199 src/gpsdrive.c:3324
+msgid "Press middle mouse button for navigation"
+msgstr "Πατήστε το μεσαίο κουμπί του ποντικιού για πλοήγηση"
+
+#: src/gpsdrive.c:2963
+#, fuzzy, c-format
+msgid "Direct serial connection to %s"
+msgstr "Σύνδεση με %s"
+
+#: src/gpsdrive.c:3013 src/gpsdrive.c:3045 src/gpsdrive.c:3205
+#: src/gpsdrive.c:3330
+msgid "Not enough satellites in view!"
+msgstr "Δεν υπάρχουν αρκετοί δορυφόροι σε θέαση"
+
+#: src/gpsdrive.c:3117
+msgid "GARMIN Mode"
+msgstr "Κατάσταση GARMIN"
+
+#: src/gpsdrive.c:3134
+msgid "No GPS used"
+msgstr "Δεν χρησιμοποιείται GPS"
+
+#: src/gpsdrive.c:3138
+msgid "Press middle mouse button for sim mode"
+msgstr "Πατήστε το μεσαίο κουμπί του ποντικιού για κατάσταση προσομείωσης"
+
+#: src/gpsdrive.c:3477
+#, c-format
+msgid "Distance to HomeBase: %.1fkm, max. allowed: %.1fkm\n"
+msgstr ""
+
+#: src/gpsdrive.c:3554 src/gpsdrive.c:3784 src/gpsdrive.c:6665
+#: src/gpsdrive.c:8534 src/gpsdrive.c:9000
+msgid "To"
+msgstr ""
+
+#: src/gpsdrive.c:3866
+msgid "Error in line "
+msgstr "Σφάλμα στη γραμμή "
+
+#: src/gpsdrive.c:3868
+msgid ""
+"I have found filenames in map_koord.txt which are\n"
+"not map_* or top_* files. Please rename them and change the entries in\n"
+"map_koord.txt.  Use map_* for street maps and top_* for topographical\n"
+"maps.  Otherwise, the maps will not be displayed!"
+msgstr ""
+"Βρέθηκαν ονόματα αρχείων στο map_koord.txt που\n"
+"δεν είναι αρχείου του τύπου map_* ή top_* . Παρακαλώ, μετονομάστετα\n"
+"και διορθώστε τις εγγραφές στο map_koord.txt. Χρησιμοποιήστε map_* για "
+"οδικούς\n"
+"χάρτες και top_* για τοπογραφικούς χάρτες. Διαφορετικά οι χάρτες δεν θα "
+"εμφανιστούν!"
+
+#: src/gpsdrive.c:4229
+msgid "Auto"
+msgstr "Αυτόματο"
+
+#: src/gpsdrive.c:4440
+#, fuzzy
+msgid "Warning!"
+msgstr "Προσανατολισμός"
+
+#: src/gpsdrive.c:4441
+msgid "You should not start GpsDrive as user root!!!"
+msgstr ""
+
+#: src/gpsdrive.c:4756 src/gpsdrive.c:8145 src/gpsdrive.c:8154
+#: src/gpsdrive.c:11661 src/gpsdrive.c:11670
+msgid "mi/h"
+msgstr "mi/h"
+
+#: src/gpsdrive.c:4758 src/gpsdrive.c:8147 src/gpsdrive.c:8156
+#: src/gpsdrive.c:11663 src/gpsdrive.c:11672
+msgid "knots"
+msgstr "κόμβοι"
+
+#: src/gpsdrive.c:4760 src/gpsdrive.c:8149 src/gpsdrive.c:8158
+#: src/gpsdrive.c:11665 src/gpsdrive.c:11674
+msgid "km/h"
+msgstr "km/h"
+
+#: src/gpsdrive.c:5088
+msgid ""
+"\n"
+"Warning: unable to load gpsdriveanim.gif!\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+
+#. This string means North,East,South,West -- please translate the letters
+#: src/gpsdrive.c:5896
+msgid "NESW"
+msgstr "ΒΑΝΔ"
+
+#: src/gpsdrive.c:6064
+msgid "No map available for this position!"
+msgstr "Δεν υπάρχει διαθέσιμος χάρτης γι' αυτή τη θέση!"
+
+#: src/gpsdrive.c:6258
+#, fuzzy
+msgid "unused"
+msgstr "Δύση"
+
+#: src/gpsdrive.c:6362
+msgid "can't open NMEA output file"
+msgstr "Μη δυνατή πρόσβαση στο αρχείο εξαγωγής NMEA"
+
+#: src/gpsdrive.c:6473
+msgid " Mapfile could not be loaded:"
+msgstr " Το αρχείο του χάρτη δεν μπορεί να φορτωθεί:"
+
+#: src/gpsdrive.c:6517
+msgid "Map found!"
+msgstr ""
+
+#: src/gpsdrive.c:6552
+msgid " Friendsicon could not be loaded:"
+msgstr " Το εικονίδιο του φίλου δεν μπορεί να φορτωθεί:"
+
+#: src/gpsdrive.c:6555
+msgid ""
+"\n"
+"Warning: unable to load friendsicon!\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+
+#: src/gpsdrive.c:6843
+msgid "Select coordinates and scale"
+msgstr "Επιλέξτε συντεταγμένες και κλίμακα"
+
+#: src/gpsdrive.c:6846
+msgid "Download map"
+msgstr "Μεταφόρτωση χάρτη"
+
+#: src/gpsdrive.c:6872 src/gpsdrive.c:7911 src/gpsdrive.c:9209
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/gpsdrive.c:11792
+msgid "Latitude"
+msgstr "Γεωγραφικό Πλάτος"
+
+#: src/gpsdrive.c:6874 src/gpsdrive.c:7913 src/gpsdrive.c:9203
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/gpsdrive.c:11793
+msgid "Longitude"
+msgstr "Γεωγραφικό Μήκος"
+
+#: src/gpsdrive.c:6876
+msgid "Map covers"
+msgstr "Καλύμματα χαρτών"
+
+#: src/gpsdrive.c:6880
+msgid "Scale"
+msgstr "Κλίμακα"
+
+#: src/gpsdrive.c:6882
+msgid "Map file name"
+msgstr "Όνομα αρχείου χάρτη"
+
+#: src/gpsdrive.c:6922 src/settings.c:958
+msgid "Expedia Germany"
+msgstr ""
+
+#: src/gpsdrive.c:6928 src/settings.c:964
+msgid "Expedia USA"
+msgstr ""
+
+#: src/gpsdrive.c:6934
+msgid "TopoZone(US Only)"
+msgstr ""
+
+#: src/gpsdrive.c:6943
+msgid ""
+"If selected, you download the map from the german expedia server (expedia.de)"
+msgstr ""
+
+#: src/gpsdrive.c:6947
+msgid ""
+"If selected, you download the map from the U.S. expedia server (expedia.com)"
+msgstr ""
+
+#: src/gpsdrive.c:6951
+msgid ""
+"If selected, you download the map from the TopoZone Server (US maps only)"
+msgstr ""
+
+#: src/gpsdrive.c:6977 src/gpsdrive.c:6981
+msgid ""
+"You can also select the position\n"
+"with a mouse click on the map."
+msgstr ""
+"Μπορείτε να επιλέξετε θέση με ένα\n"
+"κλικ του ποντικιού πάνω στον χάρτη."
+
+#: src/gpsdrive.c:6983
+msgid "Using Proxy and port:"
+msgstr "Χρησιμοποιώντας το διαμεσολαβητή και τη θύρα:"
+
+#: src/gpsdrive.c:7280 src/gpsdrive.c:7397
+msgid "can't open socket for port 80"
+msgstr "δεν μπορεί να ανοιχτεί υποδοχέας για σύνδεση στη θύρα 80"
+
+#: src/gpsdrive.c:7282 src/gpsdrive.c:7285 src/gpsdrive.c:7309
+#: src/gpsdrive.c:7312 src/gpsdrive.c:7327 src/gpsdrive.c:7330
+#: src/gpsdrive.c:7399 src/gpsdrive.c:7404 src/gpsdrive.c:7407
+#: src/gpsdrive.c:7411 src/gpsdrive.c:7446 src/gpsdrive.c:7451
+#: src/gpsdrive.c:7454 src/gpsdrive.c:7458 src/gpsdrive.c:7473
+#: src/gpsdrive.c:7478 src/gpsdrive.c:7481 src/gpsdrive.c:7485
+#, c-format
+msgid "Connecting to %s FAILED!"
+msgstr "ΑΠΟΤΥΧΗΜΕΝΗ σύνδεση με %s!"
+
+#: src/gpsdrive.c:7307 src/gpsdrive.c:7444
+msgid "Can't resolve webserver address"
+msgstr "Δεν μπόρεσε να βρεθεί η διεύθυνση του εξυπηρετητή Ιστού"
+
+#: src/gpsdrive.c:7325 src/gpsdrive.c:7471
+msgid "unable to connect to Website"
+msgstr "μη δυνατή σύνδεση με τοποθεσία Ιστού"
+
+#: src/gpsdrive.c:7353 src/gpsdrive.c:7542
+msgid "read from Webserver"
+msgstr "μεταφορά από τον εξυπηρετητή Ιστού"
+
+#: src/gpsdrive.c:7380 src/gpsdrive.c:7384 src/gpsdrive.c:7386
+#: src/gpsdrive.c:7389
+#, c-format
+msgid "Connecting to %s"
+msgstr "Σύνδεση με %s"
+
+#: src/gpsdrive.c:7499 src/gpsdrive.c:7503 src/gpsdrive.c:7505
+#: src/gpsdrive.c:7508
+#, c-format
+msgid "Now connected to %s"
+msgstr "Συνδέθηκα με %s"
+
+#: src/gpsdrive.c:7585
+#, c-format
+msgid "Downloaded %d kBytes"
+msgstr "Μεταφορτώθηκαν %d kBytes"
+
+#: src/gpsdrive.c:7599
+msgid "Download FAILED!"
+msgstr "ΑΠΕΤΥΧΗ η μεταφόρτωση!"
+
+#: src/gpsdrive.c:7601
+#, c-format
+msgid "Download finished, got %dkB"
+msgstr "Η μεταφόρτωση τελείωσε, λήφθηκαν %dkB"
+
+#: src/gpsdrive.c:7772
+msgid "Select a map file"
+msgstr "Επιλέξτε αρχείο χάρτη"
+
+#: src/gpsdrive.c:7837
+msgid ""
+"How to calibrate your own maps? First, the map file\n"
+"must be copied into the"
+msgstr ""
+
+#: src/gpsdrive.c:7839
+#, fuzzy
+msgid ""
+"\n"
+"directory as .gif, .jpg or .png file and must have\n"
+"the size 1280x1024. The file names must be\n"
+"map_* for street maps or top_* for topographical maps!\n"
+"Load the file, select coordinates from waypoint list or\n"
+"type them in. Then click on the accept button."
+msgstr ""
+"Πώς να ρυθμίσετε τους χάρτες σας;\n"
+"\n"
+"Πρώτα το αρχείο του χάρτη πρέπει να αντιγραφεί στον κατάλογο ~/.gpsdrive με "
+"την επέκταση .gif, .jpg ή .png και χρειάζεται να έχει ανάλυση 1280x1024. Τα "
+"ονόματα των αρχείων πρέπει να ξεκινούν με map_* για οδικούς χάρτες και με "
+"top_* για τοπογραφικούς χάρτες!\n"
+"Φορτώστε το αρχείο, επιλέξτε συντεταγμένες\n"
+"από τη λίστα των σημείων μετάβασης ή πληκτρολογήσετέ τις εσείς.\n"
+"Μετά επιλέξτε το κουμπί αποδοχής."
+
+#: src/gpsdrive.c:7846
+#, fuzzy
+msgid ""
+"Now do the same for your second point and click on the\n"
+"finish button. The map can be used now."
+msgstr ""
+"Τώρα κάντε το ίδιο για το δεύτερο σημείο και επιλέξτε το κουμπί τέλος. Ο "
+"χάρτης τώρα μπορεί να χρησιμοποιηθεί μπορεί να χρησιμοποιηθεί."
+
+#: src/gpsdrive.c:7851
+msgid "Import Assistant. Step 1"
+msgstr "Βοηθός εισαγωγής. Βήμα 1"
+
+#: src/gpsdrive.c:7853
+msgid "Import Assistant. Step 2"
+msgstr "Βοηθός εισαγωγής. Βήμα 2"
+
+#: src/gpsdrive.c:7858
+msgid "Accept first point"
+msgstr "Αποδοχή πρώτου σημείου"
+
+#: src/gpsdrive.c:7860
+msgid "Finish"
+msgstr "Τέλος"
+
+#: src/gpsdrive.c:7881
+msgid "Go up"
+msgstr "Πήγαινε πάνω"
+
+#: src/gpsdrive.c:7884
+msgid "Go left"
+msgstr "Πήγαινε αριστερά"
+
+#: src/gpsdrive.c:7887
+msgid "Go right"
+msgstr "Πήγαινε δεξιά"
+
+#: src/gpsdrive.c:7890
+msgid "Go down"
+msgstr "Πήγαινε κάτω"
+
+#: src/gpsdrive.c:7893
+msgid "Zoom in"
+msgstr "Μεγέθυνση"
+
+#: src/gpsdrive.c:7896
+msgid "Zoom out"
+msgstr "Σμίκρυνση"
+
+#: src/gpsdrive.c:7915
+msgid "Screen X"
+msgstr "Οθόνη Χ"
+
+#: src/gpsdrive.c:7917
+msgid "Screen Y"
+msgstr "Οθόνη Υ"
+
+#: src/gpsdrive.c:7919
+msgid "Browse waypoint"
+msgstr "Αναζήτηση σημείου μετάβασης"
+
+#: src/gpsdrive.c:7950
+msgid "Browse filename"
+msgstr "Αναζήτση ονόματος αρχείου"
+
+#: src/gpsdrive.c:8043
+msgid "GpsDrive Control"
+msgstr "Έλεγχος GpsDrive"
+
+#: src/gpsdrive.c:8154 src/gpsdrive.c:8156 src/gpsdrive.c:8158
+#: src/gpsdrive.c:11670 src/gpsdrive.c:11672 src/gpsdrive.c:11674
+#: src/settings.c:1025
+msgid "Speed"
+msgstr "Ταχύτητα"
+
+#: src/gpsdrive.c:8375
+msgid ""
+"\n"
+"distance jump is more then 1000km/h speed, ignoring\n"
+msgstr ""
+
+#: src/gpsdrive.c:8597 src/friends.c:348
+#, fuzzy
+msgid "/Misc. Menu/Messages"
+msgstr "Επιλέξτε αρχείο διαδρομής"
+
+#: src/gpsdrive.c:8600
+#, fuzzy
+msgid "Sending message to friends server..."
+msgstr "Ενεργοποιή/απενεργοποιεί την επιλογή απόστασης"
+
+#: src/gpsdrive.c:8673
+#, fuzzy
+msgid "Message for:"
+msgstr "  Μύνημα  "
+
+#: src/gpsdrive.c:8714
+#, c-format
+msgid "Date: %s"
+msgstr ""
+
+#: src/gpsdrive.c:8727
+msgid "Sends your text to to selected computer using the friends server"
+msgstr ""
+
+#: src/gpsdrive.c:8999
+msgid "SELECTED"
+msgstr "ΕΠΙΛΕΧΘΗΚΕ"
+
+#: src/gpsdrive.c:9172
+msgid "Add waypoint name"
+msgstr "Προσθήκη ονόματος σημείου μετάβασης"
+
+#: src/gpsdrive.c:9231
+msgid " Waypoint name: "
+msgstr " Όνομα σημείου μετάβασης: "
+
+#: src/gpsdrive.c:9244
+msgid " Waypoint type: "
+msgstr " Τύπος σημείου μετάβασης: "
+
+#: src/gpsdrive.c:9489
+msgid "Name"
+msgstr ""
+
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/settings.c:1018
+msgid "Distance"
+msgstr "Απόσταση"
+
+#: src/gpsdrive.c:9499
+#, fuzzy
+msgid "Please select message recipient"
+msgstr "Παρακαλώ επιλέξτε τον προορισμό σας"
+
+#: src/gpsdrive.c:9568 src/gpsdrive.c:9715
+msgid "Waypoint"
+msgstr "Σημείο Μετάβασης"
+
+#: src/gpsdrive.c:9587
+msgid "Select reference point"
+msgstr "Επιλογή σημείου αναφοράς"
+
+#: src/gpsdrive.c:9591
+msgid "Please select your destination"
+msgstr "Παρακαλώ επιλέξτε τον προορισμό σας"
+
+#: src/gpsdrive.c:9620
+msgid "Edit route"
+msgstr "Επεξεργασία δρομολογίου"
+
+#: src/gpsdrive.c:9622
+msgid "Create route"
+msgstr "Δημιουργία δρομολογίου"
+
+#: src/gpsdrive.c:9693
+msgid "Create a route using some waypoints from this list"
+msgstr ""
+"Δημιουργία δρομολόγιου χρησιμοποιώντας σημεία μετάβασης από αυτή τη λίστα"
+
+#: src/gpsdrive.c:9698
+msgid "Delete the selected waypoint from the waypoint list"
+msgstr ""
+"Διαγράψτε το επιλεγμένο σημείο μετάβασης από τη λίστα των σημείων μετάβασης"
+
+#: src/gpsdrive.c:9702
+#, fuzzy
+msgid "Jump to the selected waypoint"
+msgstr ""
+"Κάντε κλικ σε ένα αντικείμενο της λίστας\n"
+"για να επιλέξτε το επόμενο σημείο μετάβασης"
+
+#: src/gpsdrive.c:9729
+msgid "Define route"
+msgstr "Ορίστε δρομολόγιο"
+
+#: src/gpsdrive.c:9737
+msgid "Start route"
+msgstr "Εκκίνηση δρομολογίου"
+
+#: src/gpsdrive.c:9746
+msgid "Take all WP as route"
+msgstr "Θεώρησε όλα τα σημεία μετάβασης σαν δρομολόγιο"
+
+#: src/gpsdrive.c:9751
+msgid "Abort route"
+msgstr "Απόρριψη δρομολογίου"
+
+#: src/gpsdrive.c:9795
+msgid ""
+"Click on waypoints list\n"
+"to add waypoints"
+msgstr ""
+"Κάντε κλικ στη λίστα των σημείων μετάβασης\n"
+"για προσθήκη σημείου μετάβασης"
+
+#: src/gpsdrive.c:9797
+msgid ""
+"Click on list item\n"
+"to select next waypoint"
+msgstr ""
+"Κάντε κλικ σε ένα αντικείμενο της λίστας\n"
+"για να επιλέξτε το επόμενο σημείο μετάβασης"
+
+#: src/gpsdrive.c:9838
+msgid ""
+"Create a route from all waypoints. Sorted with order in file, not distance."
+msgstr ""
+"Δημιουργήστε ένα δρομολόγιο από όλα τα σημεία μετάβασης. Είναι ταξινομημένα "
+"κατά τάξη στο αρχείο και όχι κατά απόσταση."
+
+#: src/gpsdrive.c:9842
+msgid ""
+"Click here to start your journey. GpsDrive guides you through the waypoints "
+"in this list."
+msgstr ""
+"Κάντε κλικ εδώ για να ξεκινήσετε το ταξίδι σας. Το GpsDrive σας καθοδηγεί "
+"μέσω των σημείων μετάβασης αυτής της λίστας."
+
+#: src/gpsdrive.c:9845
+msgid "Abort your journey"
+msgstr "Ακυρώστε το ταξίδι σας"
+
+#: src/gpsdrive.c:9862
+msgid "-v    show version\n"
+msgstr "-v    δείχνει την έκδοση\n"
+
+#: src/gpsdrive.c:9863
+msgid "-h    print this help\n"
+msgstr "-h    δείχνει αυτή τη βοήθεια\n"
+
+#: src/gpsdrive.c:9864
+msgid "-d    turn on debug info\n"
+msgstr "-d    ενεργοποιεί τις πληροφορίες αποσφαλμάτωσης\n"
+
+#: src/gpsdrive.c:9865
+msgid "-D    turn on lot of debug info\n"
+msgstr "-D    ενεργοποιεί πολλές πληροφορίες αποσφαλμάτωσης\n"
+
+#: src/gpsdrive.c:9866
+msgid "-e    use Festival-Lite (flite) for speech output\n"
+msgstr "-e    χρησιμοποιεί το Festival-Lite (flite) για εξαγωγή φωνής\n"
+
+#: src/gpsdrive.c:9867
+msgid "-t    set serial device for GPS i.e. /dev/ttyS1\n"
+msgstr "-t    ορισμός σειριακής συσκευής για το GPS π.χ. /dev/ttyS1\n"
+
+#: src/gpsdrive.c:9868
+msgid "-o    serial device, pty master, or file for NMEA *output*\n"
+msgstr "-o    σειριακή συσκευή, κύρια pty, ή αρχείο για *εξαγωγή* NMEA\n"
+
+#: src/gpsdrive.c:9869
+#, fuzzy
+msgid "-f X  Select friends server, X is i.e. www.gpsdrive.cc\n"
+msgstr ""
+"-f X  Επιλέγει τον εξυπηρετητή του φίλου σας, όπου X είναι το όνομα του "
+"εξυπηρετητή π.χ. linux.quant-x.at\n"
+
+#: src/gpsdrive.c:9870
+msgid "-n    Disable use of direct serial connection\n"
+msgstr ""
+
+#: src/gpsdrive.c:9871
+msgid ""
+"-l X  Select language of the voice,\n"
+"      X may be english, spanish or german\n"
+msgstr ""
+"-l X  Επιλέγει γλώσσα για τη φωνή που θα ακούγεται,\n"
+"      το X μπορεί να είναι english για αγγλικά, spanish για ισπανικά ή "
+"german για γερμανικά\n"
+
+#: src/gpsdrive.c:9873
+msgid ""
+"-s X  set height of the screen, if autodetection\n"
+"      don't satisfy you, X is i.e. 768,600,480,200\n"
+msgstr ""
+"-s X  ορίζει το ύψος της οθόνης, αν η αυτόματη ρύθμιση\n"
+"      δεν σας ικανοποιεί, όπου X είναι π.χ. 768,600,480,200\n"
+
+#. ** Mod by Arms
+#: src/gpsdrive.c:9876
+msgid "-r X  set width of the screen, only with -s\n"
+msgstr ""
+"-r X  ορίζει το πλάτος της οθόνης, χρησιμοποιείται μόνο με το διακόπτη -s\n"
+
+#: src/gpsdrive.c:9878
+msgid "-1    have only 1 button mouse, for example using touchscreen\n"
+msgstr ""
+"-1    αρκεί ένα (1) μόνο κλικ του ποντικιού, χρησιμοποιείται κυρίως με οθόνη "
+"αφής\n"
+
+#: src/gpsdrive.c:9879
+msgid "-a    don't display battery status (i.e. broken APM)\n"
+msgstr "-a    δεν εμφανίζει την κατάσταση των μπαταριών (π.χ. χαλασμένο APM)\n"
+
+#: src/gpsdrive.c:9881
+msgid "-b X  Servername for NMEA server (if gpsd runs on another host)\n"
+msgstr ""
+"-b X  όνομα για τον εξυπηρετητή NMEA (αν το gpsd τρέχει σε άλλο σύστημα)\n"
+
+#: src/gpsdrive.c:9883
+msgid "-c X  set start position in simulation mode to waypoint name X\n"
+msgstr ""
+"-c X  ορίζει το σημείο έναρξης σε κατάσταση προσομείωσης για το σημείο "
+"μετάβασης με όνομα X\n"
+
+#: src/gpsdrive.c:9884
+msgid "-x    create separate window for menu\n"
+msgstr "-x    δημιουργεί ξεχωριστό παράθυρο για το μενού\n"
+
+#: src/gpsdrive.c:9885
+msgid "-p    set settings for PDA (iPAQ, Yopy...)\n"
+msgstr "-p    ορίζει ρυθμίσεις για τον υπολογιστή παλάμης (iPAQ, Yopy...)\n"
+
+#: src/gpsdrive.c:9887
+msgid "-i    ignore NMEA checksum (risky, only for broken GPS receivers\n"
+msgstr ""
+"-i    αγνοεί το άθροισμα ελέγχου - checksum του NMEA (επικίνδυνο, να "
+"χρησιμοποιείται μόνο για χαλασμένους δέκτες GPS\n"
+
+#: src/gpsdrive.c:9888
+msgid "-q    disable SQL support\n"
+msgstr "-q    απενεργοποιεί την υποστήριξη SQL\n"
+
+#: src/gpsdrive.c:9889
+msgid "-F    force display of position even it is invalid\n"
+msgstr ""
+
+#: src/gpsdrive.c:9890
+msgid "-S    don't show splash screen\n"
+msgstr ""
+
+#: src/gpsdrive.c:9891
+msgid "-E    print out data received from direct serial connection\n"
+msgstr ""
+
+#: src/gpsdrive.c:9893
+msgid "-W x  set x to 1 to switch WAAS/EGNOS on, set to 0 to switch off\n"
+msgstr ""
+
+#: src/gpsdrive.c:9894
+msgid "-H X  correct altitude, adding this value to altitude\n"
+msgstr ""
+
+#: src/gpsdrive.c:9895
+msgid ""
+"-z    don't display zoom factor and scale\n"
+"\n"
+msgstr ""
+"-z    δεν εμφανίζει το ποσοστό μεγέθυνσης και κλίμακας\n"
+"\n"
+
+#: src/gpsdrive.c:10001
+msgid "Select a track file"
+msgstr "Επιλέξτε αρχείο διαδρομής"
+
+#: src/gpsdrive.c:10179 src/gpskismet.c:380
+msgid "can't open socket for port "
+msgstr "δεν μπορεί να ανοιχτεί υποδοχέας για τη θύρα "
+
+#: src/gpsdrive.c:10200
+#, c-format
+msgid ""
+"\n"
+"Cannot connect to %s: unknown host\n"
+msgstr ""
+
+#: src/gpsdrive.c:10221
+msgid "NMEA Mode, Port 2222"
+msgstr "Κατάσταση NMEA, Θύρα 2222"
+
+#: src/gpsdrive.c:10230
+msgid "NMEA Mode, Port 2947"
+msgstr "Κατάσταση NMEA, Θύρα 2222"
+
+#: src/gpsdrive.c:10249
+msgid ""
+"\n"
+"Garmin protocol detection disabled!\n"
+msgstr ""
+"\n"
+"Απενεργοποιήθηκε η ανίχνευση του πρωτοκόλλου Garmin!\n"
+
+#: src/gpsdrive.c:10600
+msgid ""
+"\n"
+"libmysqlclient.so not found.\n"
+msgstr ""
+"\n"
+"Δεν βρέθηκε το libmysqlclient.so.\n"
+
+#: src/gpsdrive.c:10606
+msgid ""
+"\n"
+"MySQL support disabled.\n"
+msgstr ""
+"\n"
+"Απενεργοποιήθηκε η υποστήριξη για τη MySQL.\n"
+
+#: src/gpsdrive.c:10783
+msgid ""
+"\n"
+"You can only choose between english, spanish and german\n"
+"\n"
+msgstr ""
+"\n"
+"Μπορούν να επιλεχθού μόνο τα english, spanish german\n"
+"\n"
+
+#: src/gpsdrive.c:10817 src/settings.c:1730
+#, fuzzy
+msgid "EnterYourName"
+msgstr "Διεπαφή"
+
+#: src/gpsdrive.c:10879
+#, c-format
+msgid ""
+"\n"
+"Using proxy: %s on port %d"
+msgstr ""
+"\n"
+"Χρησιμοποιώντας το διαμεσολαβητή: %s στη θύρα %d"
+
+#: src/gpsdrive.c:10883
+msgid ""
+"\n"
+"Invalid enviroment variable HTTP_PROXY, must be in format: http://proxy."
+"provider.de:3128"
+msgstr ""
+"\n"
+"Μη έγκυρη μεταβλητή περιβάλλοντος HTTP_PROXY, πρέπει να είναι της μορφής: "
+"http://proxy.provider.gr:3128"
+
+#: src/gpsdrive.c:11073
+#, fuzzy
+msgid "Gpsdrive-2 (c)2001-2004 F.Ganter"
+msgstr "(c)2001-2003 F.Ganter"
+
+#: src/gpsdrive.c:11081
+msgid "Using speech output"
+msgstr "Χρησιμοποίηση εξαγωγής φωνής"
+
+#: src/gpsdrive.c:11115
+#, fuzzy
+msgid "/Misc. Menu/Maps/Map Manager"
+msgstr "Επιλέξτε αρχείο διαδρομής"
+
+#: src/gpsdrive.c:11119
+#, fuzzy
+msgid "/Misc. Menu/Waypoint Manager"
+msgstr "Επιλέξτε αρχείο διαδρομής"
+
+#. download map button
+#: src/gpsdrive.c:11123
+#, fuzzy
+msgid "_Download map"
+msgstr "Μεταφόρτωση χάρτη"
+
+#: src/gpsdrive.c:11142
+#, fuzzy
+msgid "M_ute"
+msgstr "Σίγαση"
+
+#: src/gpsdrive.c:11152
+#, fuzzy
+msgid "Use SQ_L"
+msgstr "Χρησιμοποίηση SQL"
+
+#: src/gpsdrive.c:11162
+#, fuzzy
+msgid "Show _WP"
+msgstr "Εμφάνισε σημείο μετάβασης"
+
+#: src/gpsdrive.c:11189
+msgid "HomeBase"
+msgstr ""
+
+#: src/gpsdrive.c:11197
+#, fuzzy
+msgid "Pos. _mode"
+msgstr "Κατάσταση θέσης"
+
+#: src/gpsdrive.c:11203
+#, fuzzy
+msgid "Show _Track"
+msgstr "Δείξε Track"
+
+#: src/gpsdrive.c:11246
+msgid "_Navigation"
+msgstr ""
+
+#: src/gpsdrive.c:11265
+#, fuzzy
+msgid "Auto _best map"
+msgstr "Αυτόματα ο καλύτερος χάρτης"
+
+#: src/gpsdrive.c:11275
+msgid "Save track"
+msgstr "Αποθήκευση track"
+
+#: src/gpsdrive.c:11286
+msgid "Shown map type"
+msgstr "Τύπος προβαλλόμενου χάρτη"
+
+#: src/gpsdrive.c:11297
+msgid "Street map"
+msgstr "Οδικός χάρτης"
+
+#: src/gpsdrive.c:11304
+msgid "Topo map"
+msgstr "Τοπογραφικός χάρτης"
+
+#: src/gpsdrive.c:11386
+msgid ""
+"\n"
+"kismet server found\n"
+msgstr ""
+"\n"
+"ευρέθη εξυπηρετητής kismet\n"
+
+#: src/gpsdrive.c:11447 src/gpsdrive.c:11797
+msgid "Bearing"
+msgstr "Προσανατολισμός"
+
+#: src/gpsdrive.c:11468
+#, fuzzy
+msgid "GPS Info"
+msgstr "Γεωλογικές πληροφορίες"
+
+#: src/gpsdrive.c:11519
+msgid "Bat."
+msgstr "Μπαταρία"
+
+#: src/gpsdrive.c:11534
+#, fuzzy
+msgid "TC"
+msgstr "UTC "
+
+#. displays speed over ground
+#: src/gpsdrive.c:11552 src/gpsdrive.c:11807 src/gpsdrive.c:11809
+#: src/gpsdrive.c:11815 src/gpsdrive.c:11817
+msgid "---"
+msgstr "---"
+
+#: src/gpsdrive.c:11632 src/gpsdrive.c:11639
+#, fuzzy
+msgid "Selected:"
+msgstr "Επιλέξτε προορισμό"
+
+#: src/gpsdrive.c:11632 src/gpsdrive.c:11639
+msgid "within"
+msgstr ""
+
+#. create frames for labels
+#: src/gpsdrive.c:11647
+msgid "Distance to target"
+msgstr "Απόσταση μέχρι προορισμό"
+
+#. ** Mod by Arms
+#. if (!pdamode)
+#. gtk_box_pack_start (GTK_BOX (hbox2), frame_speed, TRUE, TRUE,
+#. 1 * PADDING);
+#: src/gpsdrive.c:11683
+msgid "Altitude"
+msgstr "Υψόμετρο"
+
+#. ** Mod by Arms
+#. if (!pdamode)
+#. gtk_box_pack_start (GTK_BOX (hbox2), frame_altitude, FALSE, TRUE,
+#. 1 * PADDING);
+#: src/gpsdrive.c:11690 src/settings.c:681
+msgid "Waypoints"
+msgstr "Σημεία μετάβασης"
+
+#: src/gpsdrive.c:11794
+msgid "Map file"
+msgstr "Όνομα χάρτη"
+
+#: src/gpsdrive.c:11795
+msgid "Map scale"
+msgstr "Κλίμακα χάρτη"
+
+#: src/gpsdrive.c:11796
+msgid "Heading"
+msgstr "Κατεύθυνση"
+
+#: src/gpsdrive.c:11798
+msgid "Time at Dest."
+msgstr "Ώρα άφιξης"
+
+#: src/gpsdrive.c:11799
+msgid "Pref. scale"
+msgstr "Προτιμόμενη κλίμακα"
+
+#: src/gpsdrive.c:11803
+msgid "000,00000N"
+msgstr ""
+
+#: src/gpsdrive.c:11805
+msgid "000,00000E"
+msgstr ""
+
+#: src/gpsdrive.c:11811 src/gpsdrive.c:11813
+msgid "0000"
+msgstr ""
+
+#. gdk_window_lower((GdkWindow *)menuwin);
+#: src/gpsdrive.c:11886 src/gpsdrive.c:11937
+msgid "Menu"
+msgstr "Μενού"
+
+#. gdk_window_lower((GdkWindow *)menuwin2);
+#: src/gpsdrive.c:11895 src/gpsdrive.c:11938
+msgid "Status"
+msgstr "Κατάσταση"
+
+#: src/gpsdrive.c:12089
+msgid ""
+"Click here to switch betwen satetellite level and satellite position "
+"display. A rotating globe is shown in simulation mode"
+msgstr ""
+
+#: src/gpsdrive.c:12093
+#, fuzzy
+msgid "Number of used satellites/satellites in view"
+msgstr "Δεν υπάρχουν αρκετοί δορυφόροι σε θέαση"
+
+#: src/gpsdrive.c:12096
+msgid "EPE (Estimated Precision Error), if available"
+msgstr ""
+
+#: src/gpsdrive.c:12100
+msgid ""
+"PDOP (Position Dilution Of Precision). PDOP less than 4 gives the best "
+"accuracy, between 4 and 8 gives acceptable accuracy and greater than 8 gives "
+"unacceptable poor accuracy. "
+msgstr ""
+
+#: src/gpsdrive.c:12105
+msgid ""
+"On top of the compass you see the direction to which you move. The pointer "
+"shows the target direction on the compass."
+msgstr ""
+
+#: src/gpsdrive.c:12108
+msgid "/Misc. Menu"
+msgstr ""
+
+#: src/gpsdrive.c:12111
+msgid "Here you find extra functions for maps, tracks and messages"
+msgstr ""
+
+#: src/gpsdrive.c:12115
+msgid "Download map from Internet"
+msgstr "Μεταφόρτωση χάρτη από το Internet"
+
+#: src/gpsdrive.c:12117
+msgid "Leave the program"
+msgstr "Έξοδος από το πρόγραμμα"
+
+#: src/gpsdrive.c:12120
+msgid "Disable output of speech"
+msgstr "Απενεργοποίηση έξοδος της φωνής"
+
+#: src/gpsdrive.c:12123
+msgid "Use SQL server for waypoints"
+msgstr "Χρησιμοποίηση εξυπηρετητή SQL για τα σημεία μετάβασης"
+
+#: src/gpsdrive.c:12126
+msgid "Show waypoints on the map"
+msgstr "Εμφάνισε τα σημεία μετάβασης στο χάρτη"
+
+#: src/gpsdrive.c:12129
+msgid ""
+"Turn position mode on. You can move on the map with the left mouse button "
+"click. Clicking near the border switches to the proximate map."
+msgstr ""
+"Ενεργοποιήστε την Κατάσταση Θέσης. Μπορείτε να μετακινηθείτε πάνω στον χάρτη "
+"κάνοντας κλικ στο αριστερό κουμπί του ποντικιού. Κάνοντας κλικ κοντά στα "
+"όρια  εμφανίζει τον σχετικό χάρτη."
+
+#: src/gpsdrive.c:12132
+msgid "Show tracking on the map"
+msgstr "Εμφάνιση της διαδρομής πάνω στον χάρτη"
+
+#: src/gpsdrive.c:12137
+msgid "Opens the help window"
+msgstr "Ανοίγει το αρχείο βοήθειας"
+
+#: src/gpsdrive.c:12140
+msgid "Navigation menu. Enter here your destination."
+msgstr ""
+
+#: src/gpsdrive.c:12156
+msgid "Settings for GpsDrive"
+msgstr "Ρυθμίσεις για το GpsDrive"
+
+#: src/gpsdrive.c:12158
+msgid "Zoom into the current map"
+msgstr "Μεγέθυνση στον τρέχον χάρτη"
+
+#: src/gpsdrive.c:12160
+msgid "Zooms out off the current map"
+msgstr "Σμίκρυση στον τρέχον χάρτη"
+
+#: src/gpsdrive.c:12162
+msgid "Select the next more detailed map"
+msgstr "Επιλέξτε τον επόμενο με τη μεγαλύτερη ευκρίνεια χάρτη"
+
+#: src/gpsdrive.c:12164
+msgid "Select the next less detailed map"
+msgstr "Επιλέξτε τον επόμενο με τη μικρότερη ευκρίνεια χάρτη"
+
+#: src/gpsdrive.c:12169
+msgid "Select here a destination from the waypoint list"
+msgstr "Επιλέξτε εδώ προορισμό από τη λίστα των σημείων μετάβασης"
+
+#: src/gpsdrive.c:12173
+msgid "Select the map scale of avail. maps."
+msgstr "Επιλέξτε την κλίμακα των διαθέσιμων χαρτών."
+
+#: src/gpsdrive.c:12178
+msgid "Always select the most detailed map available"
+msgstr "Πάντα να επιλέγετε τον χάρτη με τη μεγαλύτερη λεπτομέρεια"
+
+#: src/gpsdrive.c:12181
+msgid "Save the track to given filename at program exit"
+msgstr ""
+"Σώστε τη διαδρομή σε αρχείο με το προτεινόμενο όνομα κατά την έξοδο από το "
+"πρόγραμμα"
+
+#: src/gpsdrive.c:12187
+msgid "Number of waypoints selected from SQL server"
+msgstr ""
+
+#: src/gpsdrive.c:12191
+msgid "Number of selected waypoints, which are in range"
+msgstr ""
+
+#: src/gpsdrive.c:12195
+msgid "Range for waypoint selection in kilometers"
+msgstr ""
+
+#: src/gpsdrive.c:12198
+msgid "This shows the time from your GPS receiver"
+msgstr ""
+
+#: src/gpsdrive.c:12201
+msgid ""
+"Number of mobile targets within timeframe/total received from friendsserver"
+msgstr ""
+
+#: src/gpsdrive.c:12275
+msgid ""
+"\n"
+"\n"
+"Thank you for using GpsDrive!\n"
+"\n"
+msgstr ""
+"\n"
+"\n"
+"Ευχαριστούμε που χρησιμοποιείτε το GpsDrive!\n"
+"\n"
+
+#: src/splash.c:543
+#, fuzzy
+msgid "GpsDrive v"
+msgstr "Βοήθεια GpsDrive"
+
+#: src/splash.c:549
+msgid ""
+"\n"
+"\n"
+"You find new versions on http://www.gpsdrive.cc\n"
+msgstr ""
+
+#: src/splash.c:553
+msgid ""
+"Disclaimer: Please do not use for navigation. \n"
+"\n"
+msgstr ""
+"Αποποίηση ευθύνης: Παρακαλώ να μην χρησιμοποιηθεί για πλοήγηση. \n"
+"\n"
+
+#: src/splash.c:558
+#, fuzzy
+msgid "Please have a look into the manpage (man gpsdrive) for program details!"
+msgstr ""
+"Κοιτάξτε τη σελίδα οδηγιών (manpage) για λεπτομέρειες σχετικά με το "
+"πρόγραμμα\n"
+"\n"
+"\n"
+"\n"
+
+#: src/splash.c:563
+msgid "Mouse control (clicking on the map):\n"
+msgstr "Έλεγχος ποντικιού (κλικ πάνω στον χάρτη):\n"
+
+#: src/splash.c:569
+msgid ""
+"Left mouse button         : Set position (usefull in simulation mode)\n"
+"Right mouse button        : Set target directly on the map\n"
+"Middle mouse button       : Display position again\n"
+"Shift left mouse button   : smaller map\n"
+"Shift right mouse button  : larger map\n"
+"Control left mouse button : Set a waypoint (mouse position) on the map\n"
+"Control right mouse button: Set a waypoint at current position on the map\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:577
+msgid ""
+"j    : switch to next waypoint in route mode\n"
+"x    : add waypoint at current position\n"
+"y    : add waypoint at mouse cursor position\n"
+msgstr ""
+
+#: src/splash.c:583
+msgid "Short cuts:\n"
+msgstr "Συντομεύσεις:\n"
+
+#: src/splash.c:590
+msgid "The other key shortcuts are marked as "
+msgstr ""
+
+#: src/splash.c:591
+msgid "underlined"
+msgstr ""
+
+#: src/splash.c:593
+msgid " letters in the button text.\n"
+msgstr ""
+
+#: src/splash.c:596
+msgid ""
+"Press the underlined key together with the ALT-key.\n"
+"\n"
+"You can move on the map by selecting the Position-Mode in the menu. A blue "
+"rectangle shows this mode, you can set this cursor by clicking on the map. "
+"If you click on the border of the map (the outer 20%) then the map switches "
+"to the next area.\n"
+"\n"
+"Suggestions welcome.\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:603
+#, fuzzy
+msgid "Have a lot of fun!"
+msgstr ""
+"Καλή διασκέδαση!\n"
+"\n"
+
+#: src/splash.c:734
+msgid "Please donate to GpsDrive"
+msgstr ""
+
+#: src/splash.c:740
+msgid ""
+"\n"
+"\n"
+"GpsDrive is a project with no comercial background. \n"
+"\n"
+"It would be nice if you can give a donation to help me pay the costs for "
+"hardware and the webserver.\n"
+"\n"
+"To do so, just go to"
+msgstr ""
+
+#: src/splash.c:744
+msgid " http://www.gpsdrive.cc "
+msgstr ""
+
+#: src/splash.c:747
+msgid ""
+"and click on the PayPal button.\n"
+"\n"
+"Thank you very much for your donation!\n"
+"\n"
+"This message is only displayed once when you start an new version of "
+"GpsDrive.\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:780
+#, fuzzy
+msgid "About GpsDrive donation"
+msgstr "Έλεγχος GpsDrive"
+
+#: src/splash.c:859
+msgid "From:"
+msgstr ""
+
+#: src/splash.c:928
+#, fuzzy, c-format
+msgid ""
+"You received a message from\n"
+"the friends server (%s)\n"
+msgstr "Ενεργοποιή/απενεργοποιεί την επιλογή απόστασης"
+
+#: src/splash.c:938
+#, fuzzy
+msgid "You received a message through the friends server from:\n"
+msgstr "Ενεργοποιή/απενεργοποιεί την επιλογή απόστασης"
+
+#: src/splash.c:948
+#, fuzzy
+msgid "Message text:\n"
+msgstr "  Μύνημα  "
+
+#: src/splash.c:1004
+msgid "Error saving config file ~/.gpsdrive/gpsdriverc"
+msgstr "Σφάλμα κατά το σώσιμο του αρχείου ρυθμίσεων ~/.gpsdrive/gpsdriverc"
+
+#: src/splash.c:1519 src/splash.c:1578
+msgid ""
+"\n"
+"Warning: unable to open splash picture\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:1562
+#, fuzzy
+msgid "About GpsDrive"
+msgstr "Έλεγχος GpsDrive"
+
+#: src/settings.c:438
+msgid "Setting WP label font"
+msgstr ""
+
+#: src/settings.c:440
+msgid "Setting big display font"
+msgstr ""
+
+#: src/settings.c:507
+msgid "Setting big display color"
+msgstr ""
+
+#: src/settings.c:545
+msgid "Setting track color"
+msgstr ""
+
+#: src/settings.c:587
+msgid "Setting friends label color"
+msgstr ""
+
+#: src/settings.c:668
+msgid ""
+"Don't use more than\n"
+"100 waypoint(way*.txt) files!"
+msgstr ""
+"Μην χρησιμοποιείτε περισσότερα από\n"
+"100 αρχεία σημείων μετάβασης (way*.txt)!"
+
+#: src/settings.c:679
+msgid "Waypoint files to use"
+msgstr "Αρχεία σημείων μετάβασης που θα χρησιμοποιηθούν"
+
+#: src/settings.c:704 src/settings.c:709
+msgid "Settings"
+msgstr "Ρυθμίσεις"
+
+#. misc area
+#: src/settings.c:716
+msgid "Misc settings"
+msgstr "Άλλες ρυθμίσεις"
+
+#: src/settings.c:720
+msgid "Show Shadows"
+msgstr "Εμφάνιση Σκιών"
+
+#: src/settings.c:727
+msgid "Etched frames"
+msgstr ""
+
+#: src/settings.c:735
+msgid "Simulation: Follow target"
+msgstr "Προσομείωση: Ακολούθηση προορισμού-στόχου"
+
+#: src/settings.c:742
+msgid "Maximum CPU load"
+msgstr ""
+
+#: src/settings.c:752
+#, fuzzy
+msgid "Track"
+msgstr "Δείξε Track"
+
+#: src/settings.c:767
+msgid "Maps directory"
+msgstr "Κατάλογος χαρτών"
+
+#: src/settings.c:773
+msgid "Automatic"
+msgstr "Αυτόματο"
+
+#: src/settings.c:779
+msgid "On"
+msgstr "Ενεργό"
+
+#: src/settings.c:784
+msgid "Off"
+msgstr "Κλειστό"
+
+#. gtk_table_attach_defaults (GTK_TABLE (misctable), label2, 0, 2, 3, 4);
+#. gtk_table_attach_defaults (GTK_TABLE (misctable), mapdirbt, 0, 2, 4, 5);
+#. GPS settings area
+#: src/settings.c:808
+msgid "GPS settings"
+msgstr "Ρυθμίσεις GPS"
+
+#. gtk_container_add (GTK_CONTAINER (f4), gpstable);
+#: src/settings.c:822
+msgid "Test for GARMIN"
+msgstr "Έλεγχος για GARMIN"
+
+#: src/settings.c:833
+msgid "Use DGPS-IP"
+msgstr "Χρησιμοποίηση DGPS-IP"
+
+#: src/settings.c:843
+msgid "GPS is Earthmate"
+msgstr "Το GPS είναι Earthmate"
+
+#: src/settings.c:853
+msgid "Use serial conn."
+msgstr ""
+
+#: src/settings.c:868
+msgid "Interface"
+msgstr "Διεπαφή"
+
+#: src/settings.c:869
+msgid "Baudrate"
+msgstr ""
+
+#. units area
+#: src/settings.c:904
+msgid "Units"
+msgstr "Μονάδες"
+
+#: src/settings.c:910
+msgid "Miles"
+msgstr "Μίλια"
+
+#: src/settings.c:915
+msgid "Metric"
+msgstr "Μετρικό"
+
+#: src/settings.c:920 src/nautic.c:106
+msgid "Nautic"
+msgstr "Ναυτικά"
+
+#: src/settings.c:930
+msgid "Decimal position"
+msgstr "Δεκαδική θέση"
+
+#. gtk_box_pack_start (GTK_BOX (v2), miles, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), metric, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), nautic, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), minsecbt, TRUE, FALSE, 2 * PADDING);
+#.
+#. default download server
+#: src/settings.c:948
+msgid "Default map server"
+msgstr "Προκαθορισμένος εξυπηρέτης χαρτών"
+
+#. Night light mode
+#: src/settings.c:981
+msgid "Night light mode"
+msgstr "Κατάσταση νυχτερινού φωτισμού"
+
+#.  gtk_table_attach_defaults (GTK_TABLE (table), f5, 0, 2, 2, 3);
+#. Sound settings
+#: src/settings.c:999
+#, fuzzy
+msgid "Speech output settings"
+msgstr "Αεροναυτικές ρυθμίσεις"
+
+#.
+#. set following sounds
+#. sound_direction ... say direction to target
+#. sound_distance  ... say distance to target
+#. sound_speed     ... say your current speed
+#. sound_gps       ... say GPS status
+#.
+#.
+#: src/settings.c:1011
+msgid "Direction"
+msgstr ""
+
+#: src/settings.c:1032
+#, fuzzy
+msgid "GPS Status"
+msgstr "Κατάσταση"
+
+#: src/settings.c:1046
+msgid "Switch on for speech output of the direction to the target"
+msgstr ""
+
+#: src/settings.c:1051
+msgid "Switch on for speech output of the distance to the target"
+msgstr ""
+
+#: src/settings.c:1056
+msgid "Switch on for speech output of your current speed"
+msgstr ""
+
+#: src/settings.c:1061
+msgid "Switch on for speech output of the status of your GPS signal"
+msgstr ""
+
+#. Font settings
+#: src/settings.c:1066
+#, fuzzy
+msgid "Font and color settings"
+msgstr "Ρυθμίσεις GPS"
+
+#. gtk_box_pack_start (GTK_BOX (h1), f5, TRUE, FALSE, 2 * PADDING);
+#: src/settings.c:1071
+msgid "WP Label"
+msgstr ""
+
+#: src/settings.c:1072
+msgid "Big display"
+msgstr ""
+
+#: src/settings.c:1073
+msgid "Display color"
+msgstr ""
+
+#: src/settings.c:1101
+msgid "Switch units to statute miles"
+msgstr "Μετάβαση σε μονάδες κανονικών μιλίων"
+
+#: src/settings.c:1103
+msgid "Switch units to nautical miles"
+msgstr "Μετάβαση σε μονάδες ναυτικών μιλίων"
+
+#: src/settings.c:1105
+msgid "Switch units to metric system (Kilometers)"
+msgstr "Μετάβαση σε μονάδες μετρικού συστήματος (Χιλιόμετρα)"
+
+#: src/settings.c:1110
+msgid ""
+"If selected display latitude and longitude in decimal degrees, otherwise in "
+"degree, minutes and seconds notation"
+msgstr ""
+"Αν επιλεγεί, εμφανίζεται το γεωγραφικό πλάτος και μήκος σε δεκαδικούς "
+"βαθμούς, αλλιώς εμφανίζονται τα λεπτά και τα δευτερόλεπτα"
+
+#: src/settings.c:1115
+#, fuzzy
+msgid ""
+"Set the german expedia server(expedia.de) as default download server. Use "
+"this if you are in Europe"
+msgstr "Ορίζει τον Expedia σαν τον καθορισμένο εξυπηρέτη μεταφόρτωσης"
+
+#: src/settings.c:1119
+msgid "Set Expedia as default download server"
+msgstr "Ορίζει τον Expedia σαν τον καθορισμένο εξυπηρέτη μεταφόρτωσης"
+
+#: src/settings.c:1122
+msgid "Switches shadows on map on or off"
+msgstr "Ενεροποιεί ή απενεργοποιεί τις σκιές στο χάρτη"
+
+#: src/settings.c:1126
+msgid "Switches between different type of frame ornaments"
+msgstr ""
+
+#: src/settings.c:1131
+#, c-format
+msgid ""
+"Select the approx. maximum CPU load, use 20-30% on notebooks while on "
+"battery to save battery power. This effects the refresh rate of the map "
+"screen"
+msgstr ""
+
+#: src/settings.c:1136
+msgid "If activated, pointer moves to target in simulation mode"
+msgstr ""
+"Αν ενεργοποιηθεί, ο δείκτης μετακινείται στον προορισμό-στόχο σε κατάσταση "
+"προσομείωσης"
+
+#: src/settings.c:1140
+msgid "Set here the color of the drawn track"
+msgstr ""
+
+#: src/settings.c:1144
+msgid ""
+"Path to your map files. In the specified directory also the index file "
+"map_koord.txt must be present."
+msgstr ""
+"Το μονοπάτι για τα αρχεία χαρτών. Στον καθορισμένο κατάλγο πρέπει επίσς να "
+"υπάρχει και το αρχείο map_koord.txt ."
+
+#: src/settings.c:1149
+msgid ""
+"If selected, gpsdrive try to use GARMIN mode if possible. Unselect if you "
+"only have a NMEA device."
+msgstr ""
+"Αν επιλεγεί, το gpsdrive προσπαθεί να χρησιμοποιήσει την κατάσταση GARMIN αν "
+"είναι δυνατόν. Απεπιλέξτε το αν έχετε απλά μια συσκευή ."
+
+#: src/settings.c:1154
+msgid ""
+"Set here the baud rate of your GPS device, NMEA devices usually have a speed "
+"of 4800 baud"
+msgstr ""
+
+#: src/settings.c:1159
+msgid ""
+"If selected, gpsdrive try to use differential GPS over IP. You must have an "
+"internet connection and a DGPS capable GPS receiver. Works only in NMEA mode!"
+msgstr ""
+"Αν επιλεγεί, το gpsdrive προσπαθεί να χρησιμοποιήσει διαφορικό GPS πάνω από "
+"το IP. Πρέπει να έχετε μια σύνδεση διαδικτύου και ένα GPS δέκτη ικανό για "
+"DGPS. Δουλεύει μόνο σε κατάσταση NMEA!"
+
+#: src/settings.c:1164
+msgid ""
+"Select this if you have a DeLorme Earthmate GPS receiver. The StartGPSD "
+"button will provide gpsd with the needed additional parameters"
+msgstr ""
+"Επιλέξτε το αν έχετε δέκτη GPS της DeLorme Earthmate. Το κουμπί StartGPSD θα "
+"προμηθεύσει το gpsd με τις επιπλέον παραμέτρους"
+
+#: src/settings.c:1169
+msgid ""
+"Select this if you want to use of the direct serial connection. If disabled, "
+"you can use the receiver only through gpsd. On the other hand, the direct "
+"serial connection needs no gpsd running and detects the working receiver on "
+"startup"
+msgstr ""
+
+#: src/settings.c:1174
+msgid "Specify the serial interface where the GPS is connected"
+msgstr "Καθορίζει τη σειριακή διεπαφή (RS232) όπου το GPS είναι συνδεδεμένο"
+
+#: src/settings.c:1179
+msgid ""
+"Switches automagically to night mode if it is dark outside. Press 'N' key to "
+"turn off nightmode."
+msgstr ""
+"Μεταβαίνει αυτόματα σε κατάσταση νυκτός αν είναι νύκτα στην πραγματικότητα. "
+"Πατήστε το κουμπί 'N' για να απενεργοποιήσετε την κατάσταση νυκτός."
+
+#: src/settings.c:1183
+msgid "Switches night mode on. Press 'N' key to turn off nightmode."
+msgstr ""
+"Ενεργοποιεί την κατάσταση νυκτός. Πατήστε το κουμπί 'N'  για να "
+"απενεργοποιήσετε την κατάσταση νυκτός."
+
+#: src/settings.c:1186
+msgid "Switches night mode off"
+msgstr "Απενεργοποιεί την κατάσταση νυκτός"
+
+#: src/settings.c:1190
+#, fuzzy
+msgid "Here you can set the font for the waypoint labels"
+msgstr ""
+"Διαγράψτε το επιλεγμένο σημείο μετάβασης από τη λίστα των σημείων μετάβασης"
+
+#: src/settings.c:1195
+msgid "Here you can set the font for the big display for Speed and Distance"
+msgstr ""
+
+#: src/settings.c:1199
+#, fuzzy
+msgid ""
+"Here you can set the color for the big display for speed, distance and "
+"altitude"
+msgstr ""
+"Διαγράψτε το επιλεγμένο σημείο μετάβασης από τη λίστα των σημείων μετάβασης"
+
+#: src/settings.c:1377
+msgid "Geo information"
+msgstr "Γεωλογικές πληροφορίες"
+
+#: src/settings.c:1379
+msgid "Geo info"
+msgstr "Γεωλογικές πληροφορίες"
+
+#: src/settings.c:1390
+msgid "Sunrise"
+msgstr "Ανατολή"
+
+#: src/settings.c:1392
+msgid "Sunset"
+msgstr "Δύση"
+
+#: src/settings.c:1395
+msgid "Standard"
+msgstr "Τυποποιημένο"
+
+#: src/settings.c:1397
+msgid "Transit"
+msgstr "Μεταβατικό / Transin"
+
+#: src/settings.c:1399
+msgid "GPS-Time"
+msgstr ""
+
+#: src/settings.c:1401
+msgid "Astro."
+msgstr "Αστρ."
+
+#: src/settings.c:1403
+msgid "Naut."
+msgstr "Ναυτ."
+
+#: src/settings.c:1405
+msgid "Civil"
+msgstr "Αστικός (Civil)"
+
+#: src/settings.c:1407
+msgid "Timezone"
+msgstr "Ζώνη ώρας"
+
+#: src/settings.c:1409
+msgid "Store TZ"
+msgstr ""
+
+#: src/settings.c:1419
+msgid ""
+"If selected, the timezone is stored, otherwise your actual timezone will "
+"automatically used"
+msgstr ""
+
+#: src/settings.c:1453
+msgid "Night"
+msgstr "Νύχτα"
+
+#: src/settings.c:1455
+msgid "Day"
+msgstr "Ημέρα"
+
+#: src/settings.c:1592 src/settings.c:1594 src/settings.c:1597
+msgid "Unit:"
+msgstr "Μονάδα:"
+
+#: src/settings.c:1592
+msgid "miles"
+msgstr "μίλια"
+
+#: src/settings.c:1595
+msgid "nautic miles/knots"
+msgstr "ναυτικά μίλια/κόμβοι"
+
+#: src/settings.c:1597
+msgid "kilometers"
+msgstr "χιλιόμετρα"
+
+#: src/settings.c:1612
+msgid "Trip information"
+msgstr "Πληροφορίες ταξιδιού"
+
+#: src/settings.c:1614
+msgid "Trip info"
+msgstr "Πληροφ. Ταξιδιού"
+
+#: src/settings.c:1628
+msgid "Odometer"
+msgstr "Οδόμετρο"
+
+#: src/settings.c:1630
+msgid "Total time"
+msgstr "Συνολικός χρόνος"
+
+#: src/settings.c:1632
+msgid "Av. speed"
+msgstr "Μεση ταχύτητα"
+
+#: src/settings.c:1634
+msgid "Max. speed"
+msgstr "Μέγιστη ταχύτητα"
+
+#: src/settings.c:1658
+msgid "Reset"
+msgstr ""
+
+#: src/settings.c:1663
+msgid "Resets the trip values to zero"
+msgstr ""
+
+#: src/settings.c:1732
+msgid "You should change your name in the first field!"
+msgstr ""
+
+#: src/settings.c:1918
+#, fuzzy
+msgid "Show position newer as"
+msgstr "Εμφάνισε τα σημεία μετάβασης στο χάρτη"
+
+#: src/settings.c:1920
+#, fuzzy
+msgid "Friends server setup"
+msgstr ""
+"\n"
+"ευρέθη εξυπηρετητής kismet\n"
+
+#: src/settings.c:1921
+#, fuzzy
+msgid "Friends"
+msgstr "Τέλος"
+
+#: src/settings.c:1933
+#, fuzzy
+msgid "Days"
+msgstr "Ημέρα"
+
+#: src/settings.c:1934
+msgid "Hours"
+msgstr ""
+
+#: src/settings.c:1935
+#, fuzzy
+msgid "Minutes"
+msgstr "Μίλια"
+
+#: src/settings.c:1941
+msgid "Your name"
+msgstr ""
+
+#: src/settings.c:1946
+msgid ""
+"Set here your name which should be shown near your vehicle. You may use "
+"spaces here!"
+msgstr ""
+
+#: src/settings.c:1958
+msgid "Server name"
+msgstr ""
+
+#: src/settings.c:1963
+msgid ""
+"Set here the full qualified host name (i.e. www.gpsdrive.cc) of your friends "
+"server, then you have to press the \"Lookup\" button!"
+msgstr ""
+
+#: src/settings.c:1972
+msgid "Lookup"
+msgstr ""
+
+#: src/settings.c:1980
+msgid ""
+"You have to press the \"Lookup\" button to resolve the friends server name!"
+msgstr ""
+
+#: src/settings.c:1991
+msgid "Set here the color of the label displayed at friends position"
+msgstr ""
+
+#: src/settings.c:1997
+#, fuzzy
+msgid "Friends server IP"
+msgstr ""
+"\n"
+"ευρέθη εξυπηρετητής kismet\n"
+
+#: src/settings.c:2002
+msgid ""
+"Set here the IP adress (i.e. 127.0.0.1) if you don't set the hostname above"
+msgstr ""
+
+#: src/settings.c:2007 src/settings.c:2012 src/settings.c:2016
+msgid ""
+"Set here the time limit in which the friends position is shown. Older "
+"positions are not shown."
+msgstr ""
+
+#: src/settings.c:2028
+#, fuzzy
+msgid "Use friends server"
+msgstr ""
+"\n"
+"ευρέθη εξυπηρετητής kismet\n"
+
+#: src/settings.c:2036
+msgid ""
+"Enable/disable use of friends server. You must enter a Username, don't use "
+"the default name!"
+msgstr ""
+
+#: src/settings.c:2039
+msgid ""
+"If you enable the friendsserver mode,\n"
+"<span color=\"red\">everyone</span> using the same server\n"
+"can see your position!"
+msgstr ""
+
+#: src/settings.c:2094
+msgid "SQL selection criterias"
+msgstr "Κριτήρια επιλογής SQL"
+
+#: src/settings.c:2095
+msgid "SQL"
+msgstr "SQL"
+
+#: src/settings.c:2121
+msgid "Dist. limit[km] "
+msgstr "Όριο απόστασης[km] "
+
+#: src/settings.c:2126
+msgid "If enabled, show waypoints only within this distance"
+msgstr ""
+"Αν ενεργοποιηθεί, εμφανίζει τα σημεία μετάβασης μόνο σε αυτή την απόσταση"
+
+#: src/settings.c:2142
+msgid "Enable/disable distance selection"
+msgstr "Ενεργοποιή/απενεργοποιεί την επιλογή απόστασης"
+
+#: src/settings.c:2151
+#, fuzzy
+msgid "Show no_ssid "
+msgstr "Εμφάνισε σημείο μετάβασης"
+
+#: src/settings.c:2162
+msgid ""
+"If enabled, WLANs with no SSID are shown, because this is perhaps useless, "
+"you can disable it here"
+msgstr ""
+
+#: src/settings.c:2168
+msgid "Selection mode"
+msgstr "Κατάσταση επιλογής"
+
+#: src/settings.c:2170
+msgid "include"
+msgstr "Συμπεριλαμβανομένων"
+
+#: src/settings.c:2173
+msgid "exclude"
+msgstr "Αποκλειωμένων"
+
+#: src/settings.c:2177
+msgid ""
+"Show only waypoints where the type field contains one of the selected words"
+msgstr ""
+"Εμφανίζει μόνο τα σημεία μετάβασης όπου ο τύπος πεδίου περιέχει μια από τις "
+"επιλεγμένες λέξεις"
+
+#: src/settings.c:2181
+msgid ""
+"Show only waypoints where the type field doesn't contain any the selected "
+"words"
+msgstr ""
+"Εμφανίζει μόνο τα σημεία μετάβασης όπου ο τύπος πεδίου δεν περιέχει μια από "
+"τις επιλεγμένες λέξεις"
+
+#: src/fly.c:149
+msgid "Aeronautical settings"
+msgstr "Αεροναυτικές ρυθμίσεις"
+
+#: src/fly.c:151
+msgid "Fly"
+msgstr "Πτήση"
+
+#: src/fly.c:158
+msgid "Plane mode"
+msgstr "Κατάσταση αεροπλάνου"
+
+#: src/fly.c:165
+msgid "Use VFR"
+msgstr "Χρήση VFR"
+
+#: src/fly.c:171
+msgid "Use IFR"
+msgstr "Χρήση IFR"
+
+#: src/fly.c:181
+msgid "max. horizontal deviation "
+msgstr "μέγιστη οριζόντια απόκλιση "
+
+#: src/fly.c:183
+msgid "max. vertical deviation "
+msgstr "μέγιστη κατακόρυφη απόκλιση "
+
+#: src/fly.c:198
+msgid "disable vert. deviation warning above 5000ft MSL"
+msgstr ""
+"απενεργοποιεί την προειδοποίηση κατακόρυφης απόκλισης πάνω από τα 5000 πόδια "
+"MSL"
+
+#: src/nautic.c:103
+msgid "Nautic settings"
+msgstr "Ναυτικές ρυθμίσεις"
+
+#. if (debug)
+#: src/gpssql.c:215
+#, c-format
+msgid ""
+"\n"
+"SQL: connected to %s as %s using %s\n"
+msgstr ""
+"\n"
+"SQL: Σύνδεση στο %s σαν %s χρησιμοποιώντας %s\n"
+
+#: src/gpssql.c:278
+#, c-format
+msgid "rows inserted: %d\n"
+msgstr "γραμμές που εισήχθηκαν: %d\n"
+
+#: src/gpssql.c:293
+#, c-format
+msgid "last index: %d\n"
+msgstr "τελευταίος δείκτης: %d\n"
+
+#: src/gpssql.c:314
+#, c-format
+msgid "rows deleted: %d\n"
+msgstr "γραμμές που διαγράφηκαν: %d\n"
+
+#: src/gpssql.c:366 src/gpssql.c:372
+#, c-format
+msgid "Loaded user defined icon %s\n"
+msgstr ""
+
+#: src/gpssql.c:455
+#, c-format
+msgid "%d(%d) rows read in %.2f seconds\n"
+msgstr "%d(%d) γραμμές που διαβάστηκαν σε %.2f δευτερόλεπτα\n"
+
+#: src/friends.c:363
+#, fuzzy
+msgid "unknown"
+msgstr "Άγνωστος"
+
+#: src/friendsd.c:472
+msgid "server: please don't run me as root\n"
+msgstr ""
+
+#: src/friendsd.c:484
+#, c-format
+msgid ""
+"\n"
+"Usage:\n"
+"   %s -n servername\n"
+"provides a name for your server\n"
+msgstr ""
+
+#: src/gpsnasamap.c:189
+#, c-format
+msgid "could not create output map file %s!\n"
+msgstr ""
+
+#. g_signal_connect (window, "destroy",
+#. G_CALLBACK (gtk_widget_destroyed), &window);
+#: src/gpsnasamap.c:204
+msgid "Creating map..."
+msgstr ""
+
+#: src/gpsnasamap.c:212
+msgid "Creating a temporary map from NASA satellite images"
+msgstr ""
+
+#: src/gpsnasamap.c:219
+#, c-format
+msgid "converting map for latitude: %f and longitude: %f ...\n"
+msgstr ""
+
+#: src/gpsnasamap.c:324
+msgid ""
+"\n"
+"You can permanently add this map file with following line in your\n"
+"map_koord.txt (rename the file!):\n"
+msgstr ""
+
+#: src/gpsserial.c:252
+msgid "waiting for thread to stop\n"
+msgstr ""
+
+#: src/gpsserial.c:275
+#, c-format
+msgid ""
+"\n"
+"error opening %s(%d)\n"
+msgstr ""
+
+#: src/gpsserial.c:278
+#, c-format
+msgid "successfull opened %s\n"
+msgstr ""
+
+#: src/gpsserial.c:284
+msgid "switching WAAS/EGNOS on\n"
+msgstr ""
+
+#: src/gpsserial.c:290
+msgid "switching WAAS/EGNOS off\n"
+msgstr ""
+
+#~ msgid "Set Mapblast as default download server"
+#~ msgstr "Ορίζει τον Mapblast σαν τον καθορισμένο εξυπηρέτη μεταφόρτωσης"
+
+#~ msgid "Enable?"
+#~ msgstr "Ενεργοποίηση;"
+
+#~ msgid "Sat level"
+#~ msgstr "Επίπεδο δορυφόρου"
+
+#, fuzzy
+#~ msgid "Simulation"
+#~ msgstr "Κατάσταση προσομείωσης"
+
+#, fuzzy
+#~ msgid "Sim.mode"
+#~ msgstr "Κατάσταση προσομείωσης"
+
+#~ msgid "Yes, please start gpsd"
+#~ msgstr "Ναι, παρακαλώ να ξεκινήσει το gpsd"
+
+#~ msgid "No, start simulation"
+#~ msgstr "Όχι, εκκίνηση προσομείωσης"
+
+#~ msgid ""
+#~ "Neither gpsd nor GARMIN device detected!\n"
+#~ "Should I start gpsd (NMEA mode) for you?"
+#~ msgstr ""
+#~ "Δεν ανιχνεύθηκε συσκευή gpsd ή GARMIN!\n"
+#~ "Να εκκινήσω το gpsd (σε κατάσταση NMEA) ;"
+
+#~ msgid "-n X  Select display name on friends server, X is i.e. Fritz\n"
+#~ msgstr ""
+#~ "-n X  Επιλέγει το όνομα με το οποίου θα εμφανίζεται ο εξυπηρετητής του "
+#~ "φίλου σας, όπου X είναι το όνομα του εξυπηρετητή π.χ. Fritz\n"
+
+#~ msgid "UTC "
+#~ msgstr "UTC "
+
+#, fuzzy
+#~ msgid "Your friendsserver: %s"
+#~ msgstr ""
+#~ "\n"
+#~ "ευρέθη εξυπηρετητής kismet\n"
+
+#~ msgid "Cancel"
+#~ msgstr "Άκυρο"
+
+#, fuzzy
+#~ msgid "/Misc. Menu/Maps"
+#~ msgstr "Επιλέξτε αρχείο διαδρομής"
+
+#~ msgid "Import"
+#~ msgstr "Εισαγωγή"
+
+#~ msgid "Let you import and calibrate your own map"
+#~ msgstr "Σας επιτρέπει να εισάγετε και ρυθμίσετε τον δικό σας χάρτη"
+
+#~ msgid ""
+#~ "Left mouse button         : Set position (usefull in simulation mode)\n"
+#~ msgstr ""
+#~ "Αριστερό κλικ του ποντικιού         : Ορίζει τη θέση (χρήσιμο σε "
+#~ "κατάσταση προσομείωσης)\n"
+
+#~ msgid "Right mouse button        : Set target directly on the map\n"
+#~ msgstr ""
+#~ "Δεξί κλικ του ποντικιού         : Ορίζει τον προορισμό-στόχο απ' ευθείας "
+#~ "στον χάρτη\n"
+
+#~ msgid "Middle mouse button       : Display position again\n"
+#~ msgstr "Μεσαίο κλικ του ποντικιού       : Εμφανίζει τη θέση ξανά\n"
+
+#~ msgid "Shift left mouse button   : smaller map\n"
+#~ msgstr "Shift + αριστερό κλικ του ποντικιού   : μικρότερος χάρτης\n"
+
+#~ msgid "Shift right mouse button  : larger map\n"
+#~ msgstr "Shift + δεξί κλικ του ποντικιού   : μεγαλύτερος χάρτης\n"
+
+#~ msgid ""
+#~ "Control left mouse button : Set a waypoint (mouse position) on the map\n"
+#~ msgstr ""
+#~ "Control + αριστερό κλικ του ποντικιού : Ορίζει ένα σημείο μετάβασης (στη "
+#~ "θέση του δείκτη) στον χάρτη\n"
+
+#~ msgid ""
+#~ "Control right mouse button: Set a waypoint at current position on the "
+#~ "map\n"
+#~ "\n"
+#~ msgstr ""
+#~ "Control + δεξί κλικ του ποντικιού : Ορίζει ένα σημείο μετάβασης στην "
+#~ "τρέχουσα θέση στον χάρτη\n"
+
+#~ msgid "j    : switch to next waypoint in route mode\n"
+#~ msgstr ""
+#~ "j    : μεταβαίνει στο επόμενο σημείο μετάβασης σε κατάσταση διαδρομής\n"
+
+#, fuzzy
+#~ msgid "x    : add waypoint at current position\n"
+#~ msgstr ""
+#~ "x    : προσθέτει σημείο μετάβασης στην τρέχουσα θέση\n"
+#~ "\n"
+
+#, fuzzy
+#~ msgid ""
+#~ "y    : add waypoint at mouse cursor position\n"
+#~ "\n"
+#~ msgstr ""
+#~ "x    : προσθέτει σημείο μετάβασης στην τρέχουσα θέση\n"
+#~ "\n"
+
+#~ msgid ""
+#~ "Suggestions welcome!\n"
+#~ "\n"
+#~ msgstr ""
+#~ "Προτάσεις δεκτές!\n"
+#~ "\n"
+
+#, fuzzy
+#~ msgid "/Operations Menu"
+#~ msgstr "Επιλέξτε αρχείο διαδρομής"
+
+#, fuzzy
+#~ msgid "/ Messages"
+#~ msgstr "  Μύνημα  "
+
+#, fuzzy
+#~ msgid "/ Help"
+#~ msgstr "Βοήθεια"
+
+#~ msgid "Load and display a previous stored track file"
+#~ msgstr "Φορτώστε και εμφανίστε ένα προηγούμενα αποθηκευμένο αρχείο"
+
+#~ msgid "Distance to "
+#~ msgstr "Απόσταση μέχρι το "
+
+#, fuzzy
+#~ msgid "Sel:"
+#~ msgstr "Επιλέξτε προορισμό"
+
+#, fuzzy
+#~ msgid "Time"
+#~ msgstr "Ζώνη ώρας"
+
+#~ msgid "Friendsicon loaded"
+#~ msgstr "Το εικονίδιο του φίλου φορτώθηκε"
+
+#~ msgid "Menu window"
+#~ msgstr "Παράθυρο μενού"
+
+#~ msgid "Status window"
+#~ msgstr "Παράθυρο κατάστασης"
+
+#, fuzzy
+#~ msgid "can't open socket for friendsserver "
+#~ msgstr "δεν μπορεί να ανοιχτεί υποδοχέας για τη θύρα "
+
+#~ msgid "Slow CPU"
+#~ msgstr "Αργός επεξεργαστής (CPU)"
+
+#~ msgid ""
+#~ "Select, if your CPU is very slow ( < PII MMX/233MHz). This reduces the "
+#~ "framerate to 1 frame/second."
+#~ msgstr ""
+#~ "Επιλέξτε το αν ο επεξεργαστής σας (CPU) είναι πολύ αργος ( < PII "
+#~ "MMX/233MHz). Αυτό μειώνει το λόγο εμφάνισης πλαισίων στην οθόνη σας κατά "
+#~ "1 πλαίσιο/δευτερόλεπτο."
+
+#~ msgid "UTC (GPS)"
+#~ msgstr "UTC (GPS)"
+
+#~ msgid "Ok"
+#~ msgstr "Εντάξει"
+
+#~ msgid "Delete WP"
+#~ msgstr "Διαγραφή σημείου μετάβασης"
+
+#~ msgid ""
+#~ "GpsDrive Help\n"
+#~ "\n"
+#~ msgstr ""
+#~ "Βοήθεια για το GpsDrive\n"
+#~ "\n"
+
+#~ msgid ""
+#~ "GPSDRIVE (c) 2001-2003 Fritz Ganter <ganter at ganter.at>\n"
+#~ "\n"
+#~ msgstr ""
+#~ "GPSDRIVE (c) 2001-2003 Fritz Ganter <ganter at ganter.at>\n"
+#~ "\n"
+
+#~ msgid "Website: www.kraftvoll.at/software\n"
+#~ msgstr "Τοποθεσία Ιστού: www.kraftvoll.at/software\n"
+
+#~ msgid "+    : Zoom in\n"
+#~ msgstr "+    : Μεγέθυνση\n"
+
+#~ msgid "-    : Zoom out\n"
+#~ msgstr "+    : Σμίκρυνση\n"
+
+#~ msgid "s    : larger map\n"
+#~ msgstr "s    : μεγαλύτερος χάρτης\n"
+
+#~ msgid "a    : smaller map\n"
+#~ msgstr "a    : μικρότερος χάρτης\n"
+
+#~ msgid "t    : select target\n"
+#~ msgstr "t    : επιλέγει προορισμό-στόχο\n"
+
+#~ msgid "d    : download map\n"
+#~ msgstr "d    : μεταφόρτωση χάρτη\n"
+
+#~ msgid "l    : load track\n"
+#~ msgstr "l    : φόρτωση χάρτη\n"
+
+#~ msgid "h    : show help\n"
+#~ msgstr "h    : εμφάνιση βοήθειας\n"
+
+#~ msgid "q    : quit program\n"
+#~ msgstr "q    : έξοδος από το πρόγραμμα\n"
+
+#~ msgid "b    : toggle auto best map\n"
+#~ msgstr "b    : αυτόματη μετάβαση στον καλύτερο χάρτη\n"
+
+#~ msgid "w    : toggle show waypoints\n"
+#~ msgstr "w    : μετάβαση στην εμφάνιση των σημείων μετάβασης\n"
+
+#~ msgid "o    : toggle show tracks\n"
+#~ msgstr "o    : μετάβαση στην εμφάνιση διαδρομών\n"
+
+#~ msgid "u    : enter setup menu\n"
+#~ msgstr "u    : εισαγωγή στο μενού των ρυθμίσεων\n"
+
+#~ msgid "n    : in nightmode: toogles night display on/off\n"
+#~ msgstr ""
+#~ "n    : σε κατάσταση νυκτός: μεταβαίνει σε εμφάνιση της νύχτας ή σε "
+#~ "απόκρυψη της\n"
+
+#~ msgid "   Ok   "
+#~ msgstr "   Εντάξει   "
+
+#~ msgid "Close"
+#~ msgstr "Κλείσιμο"
+
+#~ msgid "OK"
+#~ msgstr "Εντάξει"
+
+#~ msgid "Quit"
+#~ msgstr "Έξοδος"
+
+#~ msgid "Load track"
+#~ msgstr "Φόρτωση track"
+
+#~ msgid "Setup"
+#~ msgstr "Ρυθμίσεις"

Added: packages/gpsdrive/branches/etch/po/hu.gmo
===================================================================
(Binary files differ)


Property changes on: packages/gpsdrive/branches/etch/po/hu.gmo
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: packages/gpsdrive/branches/etch/po/hu.po
===================================================================
--- packages/gpsdrive/branches/etch/po/hu.po	                        (rev 0)
+++ packages/gpsdrive/branches/etch/po/hu.po	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,2324 @@
+# Hungarian Translation of GpsDrive.
+# Copyright (C) 2002 Free Software Foundation, Inc.
+# Emese Kovács <emese at gnome.hu>, 2002.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: gpsdrive 1.21\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-03-03 21:47+0100\n"
+"PO-Revision-Date: 2002-05-14 16:04+0200\n"
+"Last-Translator: Emese Kovács <emese at gnome.hu>\n"
+"Language-Team: Hungarian <translation-team-hu at lists.sourceforge.net>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=iso-8859-2\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: src/gpsdrive.c:2179
+msgid "/_Misc. Menu"
+msgstr ""
+
+#: src/gpsdrive.c:2180
+msgid "/_Misc. Menu/Maps"
+msgstr ""
+
+#: src/gpsdrive.c:2181
+msgid "/_Misc. Menu/Maps/_Import map"
+msgstr ""
+
+#: src/gpsdrive.c:2185
+msgid "/_Misc. Menu/Maps/_Map Manager"
+msgstr ""
+
+#: src/gpsdrive.c:2187
+msgid "/_Misc. Menu/_Waypoint Manager"
+msgstr ""
+
+#: src/gpsdrive.c:2189
+#, fuzzy
+msgid "/_Misc. Menu/_Load track file"
+msgstr "Útvonalfájl kiválasztása"
+
+#: src/gpsdrive.c:2193
+#, fuzzy
+msgid "/_Misc. Menu/Messages"
+msgstr "Útvonalfájl kiválasztása"
+
+#: src/gpsdrive.c:2194
+msgid "/_Misc. Menu/Messages/Send message to mobile target"
+msgstr ""
+
+#: src/gpsdrive.c:2199
+msgid "/_Misc. Menu/Help"
+msgstr ""
+
+#: src/gpsdrive.c:2200
+msgid "/_Misc. Menu/Help/About"
+msgstr ""
+
+#: src/gpsdrive.c:2202
+msgid "/_Misc. Menu/Help/Topics"
+msgstr ""
+
+#: src/gpsdrive.c:2271
+msgid "  Message  "
+msgstr "  Üzenet  "
+
+#: src/gpsdrive.c:2315 src/gpsdrive.c:12145
+#, fuzzy
+msgid "Stop GPSD"
+msgstr "GPSD indítása"
+
+#: src/gpsdrive.c:2317 src/gpsdrive.c:12147
+msgid "Stop GPSD and switch to simulation mode"
+msgstr ""
+
+#: src/gpsdrive.c:2339 src/gpsdrive.c:11261
+msgid "Start GPSD"
+msgstr "GPSD indítása"
+
+#: src/gpsdrive.c:2341 src/gpsdrive.c:12153
+msgid "Starts GPSD for NMEA mode"
+msgstr "Elindítja a GPSD-t NMEA módhoz"
+
+#. displays zoom factor of map
+#: src/gpsdrive.c:2354 src/gpsdrive.c:2355 src/gpsdrive.c:2356
+#: src/gpsdrive.c:6264 src/gpsdrive.c:6273 src/gpsdrive.c:11484
+#: src/gpsdrive.c:11491 src/gpsdrive.c:11498 src/gpsdrive.c:11555
+#: src/gpsdrive.c:11560 src/gpsdrive.c:11566 src/gpsdrive.c:11602
+#: src/gpsdrive.c:11609 src/settings.c:1425 src/settings.c:1434
+#: src/settings.c:1443 src/settings.c:1468 src/settings.c:1478
+#: src/settings.c:1487 src/settings.c:1498 src/settings.c:1507
+#: src/settings.c:1517
+msgid "n/a"
+msgstr "n/a"
+
+#: src/gpsdrive.c:2366 src/gpsdrive.c:10245
+msgid ""
+"\n"
+"no garmin support compiled in\n"
+msgstr ""
+"\n"
+"nincs garmin támogatás a programba fordítva\n"
+
+#: src/gpsdrive.c:2387 src/gpsdrive.c:3136
+msgid "Simulation mode"
+msgstr "Szimuláció mód"
+
+#: src/gpsdrive.c:2409
+msgid "got RMC data, using it\n"
+msgstr ""
+
+#: src/gpsdrive.c:2498 src/gpsdrive.c:11936
+msgid "Map"
+msgstr "Térkép"
+
+#. if (debug)
+#: src/gpsdrive.c:2661
+msgid "got no RMC data, using GGA data\n"
+msgstr ""
+
+#: src/gpsdrive.c:2912
+#, fuzzy
+msgid "Timeout getting data from GPS-Receiver!"
+msgstr "Nincs kapcsolat a GPS vevõvel!"
+
+#: src/gpsdrive.c:2959 src/gpsdrive.c:3008 src/gpsdrive.c:3113
+#: src/gpsdrive.c:3199 src/gpsdrive.c:3324
+msgid "Press middle mouse button for navigation"
+msgstr "A navigációhoz használd a középsõ egérgombot"
+
+#: src/gpsdrive.c:2963
+#, fuzzy, c-format
+msgid "Direct serial connection to %s"
+msgstr "Csatlakozás a következõhöz: %s"
+
+#: src/gpsdrive.c:3013 src/gpsdrive.c:3045 src/gpsdrive.c:3205
+#: src/gpsdrive.c:3330
+msgid "Not enough satellites in view!"
+msgstr ""
+
+#: src/gpsdrive.c:3117
+msgid "GARMIN Mode"
+msgstr "GARMIN mód"
+
+#: src/gpsdrive.c:3134
+msgid "No GPS used"
+msgstr "Nincs GPS használatban"
+
+#: src/gpsdrive.c:3138
+msgid "Press middle mouse button for sim mode"
+msgstr "A szimuláció módhoz használd a középsõ egérgombot"
+
+#: src/gpsdrive.c:3477
+#, c-format
+msgid "Distance to HomeBase: %.1fkm, max. allowed: %.1fkm\n"
+msgstr ""
+
+#: src/gpsdrive.c:3554 src/gpsdrive.c:3784 src/gpsdrive.c:6665
+#: src/gpsdrive.c:8534 src/gpsdrive.c:9000
+msgid "To"
+msgstr ""
+
+#: src/gpsdrive.c:3866
+msgid "Error in line "
+msgstr "Hiba a következõ sorban: "
+
+#: src/gpsdrive.c:3868
+msgid ""
+"I have found filenames in map_koord.txt which are\n"
+"not map_* or top_* files. Please rename them and change the entries in\n"
+"map_koord.txt.  Use map_* for street maps and top_* for topographical\n"
+"maps.  Otherwise, the maps will not be displayed!"
+msgstr ""
+"A ~/.gpsdrive/map_koord.txt fájlban találtam olyan fályneveket,\n"
+"amelyek nem illeszkednek a map_* és top_* mintákra!\n"
+"Kérlek nevezd át a fájlokat és írd át a bejegyzést a map_koord.txt\n"
+"fájlban, különben ezek a térképek nem jelennek meg!\n"
+"\n"
+"Használj map_* típusú fájlneveket az utca térképekhez és top_*\n"
+"típusú fájlneveket a topológiai térképekhez."
+
+#: src/gpsdrive.c:4229
+msgid "Auto"
+msgstr "Auto"
+
+#: src/gpsdrive.c:4440
+#, fuzzy
+msgid "Warning!"
+msgstr "Bearing"
+
+#: src/gpsdrive.c:4441
+msgid "You should not start GpsDrive as user root!!!"
+msgstr ""
+
+#: src/gpsdrive.c:4756 src/gpsdrive.c:8145 src/gpsdrive.c:8154
+#: src/gpsdrive.c:11661 src/gpsdrive.c:11670
+#, fuzzy
+msgid "mi/h"
+msgstr "km/h"
+
+#: src/gpsdrive.c:4758 src/gpsdrive.c:8147 src/gpsdrive.c:8156
+#: src/gpsdrive.c:11663 src/gpsdrive.c:11672
+msgid "knots"
+msgstr "csomó"
+
+#: src/gpsdrive.c:4760 src/gpsdrive.c:8149 src/gpsdrive.c:8158
+#: src/gpsdrive.c:11665 src/gpsdrive.c:11674
+msgid "km/h"
+msgstr "km/h"
+
+#: src/gpsdrive.c:5088
+msgid ""
+"\n"
+"Warning: unable to load gpsdriveanim.gif!\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+
+#. This string means North,East,South,West -- please translate the letters
+#: src/gpsdrive.c:5896
+msgid "NESW"
+msgstr ""
+
+#: src/gpsdrive.c:6064
+msgid "No map available for this position!"
+msgstr "Nincs elérhetõ térkép ehhez a helyhez!"
+
+#: src/gpsdrive.c:6258
+msgid "unused"
+msgstr ""
+
+#: src/gpsdrive.c:6362
+msgid "can't open NMEA output file"
+msgstr "NMEA kimeneti fájl megnyitása sikertelen"
+
+#: src/gpsdrive.c:6473
+msgid " Mapfile could not be loaded:"
+msgstr " A térképfájl betöltése sikertelen:"
+
+#: src/gpsdrive.c:6517
+msgid "Map found!"
+msgstr ""
+
+#: src/gpsdrive.c:6552
+msgid " Friendsicon could not be loaded:"
+msgstr " Az ikon betöltése sikertelen:"
+
+#: src/gpsdrive.c:6555
+msgid ""
+"\n"
+"Warning: unable to load friendsicon!\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+
+#: src/gpsdrive.c:6843
+msgid "Select coordinates and scale"
+msgstr "Válassz koordinátát és léptéket"
+
+#: src/gpsdrive.c:6846
+msgid "Download map"
+msgstr "Térkép letöltése"
+
+#: src/gpsdrive.c:6872 src/gpsdrive.c:7911 src/gpsdrive.c:9209
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/gpsdrive.c:11792
+msgid "Latitude"
+msgstr "Szélesség"
+
+#: src/gpsdrive.c:6874 src/gpsdrive.c:7913 src/gpsdrive.c:9203
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/gpsdrive.c:11793
+msgid "Longitude"
+msgstr "Hosszúság"
+
+#: src/gpsdrive.c:6876
+msgid "Map covers"
+msgstr "Térkép lefedi"
+
+#: src/gpsdrive.c:6880
+msgid "Scale"
+msgstr "Lépték"
+
+#: src/gpsdrive.c:6882
+msgid "Map file name"
+msgstr "Térképfájl neve"
+
+#: src/gpsdrive.c:6922 src/settings.c:958
+msgid "Expedia Germany"
+msgstr ""
+
+#: src/gpsdrive.c:6928 src/settings.c:964
+msgid "Expedia USA"
+msgstr ""
+
+#: src/gpsdrive.c:6934
+msgid "TopoZone(US Only)"
+msgstr ""
+
+#: src/gpsdrive.c:6943
+msgid ""
+"If selected, you download the map from the german expedia server (expedia.de)"
+msgstr ""
+
+#: src/gpsdrive.c:6947
+msgid ""
+"If selected, you download the map from the U.S. expedia server (expedia.com)"
+msgstr ""
+
+#: src/gpsdrive.c:6951
+msgid ""
+"If selected, you download the map from the TopoZone Server (US maps only)"
+msgstr ""
+
+#: src/gpsdrive.c:6977 src/gpsdrive.c:6981
+msgid ""
+"You can also select the position\n"
+"with a mouse click on the map."
+msgstr ""
+"A hely megadásához kattinthat\n"
+"a térképre is."
+
+#: src/gpsdrive.c:6983
+msgid "Using Proxy and port:"
+msgstr "Proxy és port:"
+
+#: src/gpsdrive.c:7280 src/gpsdrive.c:7397
+msgid "can't open socket for port 80"
+msgstr "socket megnyitása a 80-as porthoz sikertlen"
+
+#: src/gpsdrive.c:7282 src/gpsdrive.c:7285 src/gpsdrive.c:7309
+#: src/gpsdrive.c:7312 src/gpsdrive.c:7327 src/gpsdrive.c:7330
+#: src/gpsdrive.c:7399 src/gpsdrive.c:7404 src/gpsdrive.c:7407
+#: src/gpsdrive.c:7411 src/gpsdrive.c:7446 src/gpsdrive.c:7451
+#: src/gpsdrive.c:7454 src/gpsdrive.c:7458 src/gpsdrive.c:7473
+#: src/gpsdrive.c:7478 src/gpsdrive.c:7481 src/gpsdrive.c:7485
+#, c-format
+msgid "Connecting to %s FAILED!"
+msgstr "Csatlkozás sikertelen a következõhöz: %s"
+
+#: src/gpsdrive.c:7307 src/gpsdrive.c:7444
+msgid "Can't resolve webserver address"
+msgstr "A webkiszolgáló nevének feloldása sikertelen"
+
+#: src/gpsdrive.c:7325 src/gpsdrive.c:7471
+msgid "unable to connect to Website"
+msgstr "Sikertelen csatlakozási kísérlet a webhelyhez"
+
+#: src/gpsdrive.c:7353 src/gpsdrive.c:7542
+msgid "read from Webserver"
+msgstr "olvasás a webkiszolgálóról"
+
+#: src/gpsdrive.c:7380 src/gpsdrive.c:7384 src/gpsdrive.c:7386
+#: src/gpsdrive.c:7389
+#, c-format
+msgid "Connecting to %s"
+msgstr "Csatlakozás a következõhöz: %s"
+
+#: src/gpsdrive.c:7499 src/gpsdrive.c:7503 src/gpsdrive.c:7505
+#: src/gpsdrive.c:7508
+#, c-format
+msgid "Now connected to %s"
+msgstr "Csatlakozva a következõhöz: %s"
+
+#: src/gpsdrive.c:7585
+#, c-format
+msgid "Downloaded %d kBytes"
+msgstr "Letöltés: %d kB"
+
+#: src/gpsdrive.c:7599
+msgid "Download FAILED!"
+msgstr "Letöltés sikertelen!"
+
+#: src/gpsdrive.c:7601
+#, c-format
+msgid "Download finished, got %dkB"
+msgstr "A letöltés befejezõdött: %d kB"
+
+#: src/gpsdrive.c:7772
+msgid "Select a map file"
+msgstr "Válassz térképfájlt"
+
+#: src/gpsdrive.c:7837
+msgid ""
+"How to calibrate your own maps? First, the map file\n"
+"must be copied into the"
+msgstr ""
+
+#: src/gpsdrive.c:7839
+#, fuzzy
+msgid ""
+"\n"
+"directory as .gif, .jpg or .png file and must have\n"
+"the size 1280x1024. The file names must be\n"
+"map_* for street maps or top_* for topographical maps!\n"
+"Load the file, select coordinates from waypoint list or\n"
+"type them in. Then click on the accept button."
+msgstr ""
+"Hogyan kalibrálhatod a saját térképeidet?\n"
+"\n"
+"Elõszöb be kell másolnod a térképet (.gif, .png vagy .jpg fájlt) a ~/."
+"gpsdrive könyvtárba. A térkép mérete 1280x1024 kell legyen. A fájl neve "
+"map_* kell legyen várostérképnél vagy top_* domborzati térképnél.\n"
+"Töltsd be a fájlt, válaszd ki a koordinátákat \n"
+"az útvonalpont listából, vagy gépeld be ezeket.\n"
+"Végül kattints az \"Elfogadás\" gombra."
+
+#: src/gpsdrive.c:7846
+#, fuzzy
+msgid ""
+"Now do the same for your second point and click on the\n"
+"finish button. The map can be used now."
+msgstr ""
+"Most tedd ugyanezt a második ponttal és kattints a befejezés gombra. A "
+"térkép most már használható!"
+
+#: src/gpsdrive.c:7851
+msgid "Import Assistant. Step 1"
+msgstr "Importálási segéd, 1. lépés"
+
+#: src/gpsdrive.c:7853
+msgid "Import Assistant. Step 2"
+msgstr "Importálási segéd, 2. lépés"
+
+#: src/gpsdrive.c:7858
+msgid "Accept first point"
+msgstr "Elsõ pont elfogadása"
+
+#: src/gpsdrive.c:7860
+msgid "Finish"
+msgstr "Befejezés"
+
+#: src/gpsdrive.c:7881
+msgid "Go up"
+msgstr "Fel"
+
+#: src/gpsdrive.c:7884
+msgid "Go left"
+msgstr "Balra"
+
+#: src/gpsdrive.c:7887
+msgid "Go right"
+msgstr "Jobbra"
+
+#: src/gpsdrive.c:7890
+msgid "Go down"
+msgstr "Le"
+
+#: src/gpsdrive.c:7893
+msgid "Zoom in"
+msgstr "Nagyítás"
+
+#: src/gpsdrive.c:7896
+msgid "Zoom out"
+msgstr "Kicsinyítés"
+
+#: src/gpsdrive.c:7915
+msgid "Screen X"
+msgstr "Képernyõ X"
+
+#: src/gpsdrive.c:7917
+msgid "Screen Y"
+msgstr "Képernyõ Y"
+
+#: src/gpsdrive.c:7919
+msgid "Browse waypoint"
+msgstr "Útvonalpont beállítása"
+
+#: src/gpsdrive.c:7950
+msgid "Browse filename"
+msgstr "Fájlnév beállítása"
+
+#: src/gpsdrive.c:8043
+#, fuzzy
+msgid "GpsDrive Control"
+msgstr "GpsDrive menü"
+
+#: src/gpsdrive.c:8154 src/gpsdrive.c:8156 src/gpsdrive.c:8158
+#: src/gpsdrive.c:11670 src/gpsdrive.c:11672 src/gpsdrive.c:11674
+#: src/settings.c:1025
+msgid "Speed"
+msgstr "Sebesség"
+
+#: src/gpsdrive.c:8375
+msgid ""
+"\n"
+"distance jump is more then 1000km/h speed, ignoring\n"
+msgstr ""
+
+#: src/gpsdrive.c:8597 src/friends.c:348
+#, fuzzy
+msgid "/Misc. Menu/Messages"
+msgstr "Útvonalfájl kiválasztása"
+
+#: src/gpsdrive.c:8600
+msgid "Sending message to friends server..."
+msgstr ""
+
+#: src/gpsdrive.c:8673
+#, fuzzy
+msgid "Message for:"
+msgstr "  Üzenet  "
+
+#: src/gpsdrive.c:8714
+#, c-format
+msgid "Date: %s"
+msgstr ""
+
+#: src/gpsdrive.c:8727
+msgid "Sends your text to to selected computer using the friends server"
+msgstr ""
+
+#: src/gpsdrive.c:8999
+msgid "SELECTED"
+msgstr "KIJELÖLT"
+
+#: src/gpsdrive.c:9172
+msgid "Add waypoint name"
+msgstr "Útvonalpont nevének megadása"
+
+#: src/gpsdrive.c:9231
+msgid " Waypoint name: "
+msgstr " Útvonalpont neve: "
+
+#: src/gpsdrive.c:9244
+#, fuzzy
+msgid " Waypoint type: "
+msgstr " Útvonalpont neve: "
+
+#: src/gpsdrive.c:9489
+msgid "Name"
+msgstr ""
+
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/settings.c:1018
+msgid "Distance"
+msgstr "Távolság"
+
+#: src/gpsdrive.c:9499
+#, fuzzy
+msgid "Please select message recipient"
+msgstr "Cél kijelölése"
+
+#: src/gpsdrive.c:9568 src/gpsdrive.c:9715
+msgid "Waypoint"
+msgstr "Útvonalpont"
+
+#: src/gpsdrive.c:9587
+msgid "Select reference point"
+msgstr "Referenciapont kijelölése"
+
+#: src/gpsdrive.c:9591
+msgid "Please select your destination"
+msgstr "Cél kijelölése"
+
+#: src/gpsdrive.c:9620
+msgid "Edit route"
+msgstr "Útvonal szerkesztése"
+
+#: src/gpsdrive.c:9622
+msgid "Create route"
+msgstr "Útvonal létrehozása"
+
+#: src/gpsdrive.c:9693
+msgid "Create a route using some waypoints from this list"
+msgstr "Útvonal létrehozása a listában található pontok segítségével"
+
+#: src/gpsdrive.c:9698
+msgid "Delete the selected waypoint from the waypoint list"
+msgstr "A kijelölt útvonalpont törlése a listából"
+
+#: src/gpsdrive.c:9702
+#, fuzzy
+msgid "Jump to the selected waypoint"
+msgstr ""
+"A következõ útvonalpont\n"
+"kiválasztásához kattints\n"
+"egy listaelemre!"
+
+#: src/gpsdrive.c:9729
+msgid "Define route"
+msgstr "Útvonal definiálása"
+
+#: src/gpsdrive.c:9737
+msgid "Start route"
+msgstr "Útvonal indítása"
+
+#: src/gpsdrive.c:9746
+msgid "Take all WP as route"
+msgstr "Útvonal az összes pontból"
+
+#: src/gpsdrive.c:9751
+msgid "Abort route"
+msgstr "Útvonal megszakítása"
+
+#: src/gpsdrive.c:9795
+msgid ""
+"Click on waypoints list\n"
+"to add waypoints"
+msgstr ""
+"Útvonalpont hozzáadásához\n"
+"kattints a listára!"
+
+#: src/gpsdrive.c:9797
+msgid ""
+"Click on list item\n"
+"to select next waypoint"
+msgstr ""
+"A következõ útvonalpont\n"
+"kiválasztásához kattints\n"
+"egy listaelemre!"
+
+#: src/gpsdrive.c:9838
+msgid ""
+"Create a route from all waypoints. Sorted with order in file, not distance."
+msgstr ""
+"Útvonalat készít az összes pontból. A sorrendet a fájlban lévõ sorrend "
+"határozza meg, nem a távolság."
+
+#: src/gpsdrive.c:9842
+msgid ""
+"Click here to start your journey. GpsDrive guides you through the waypoints "
+"in this list."
+msgstr ""
+"Kattints ide az útazás megkezdéséhez. A GpsDrive végigvezet a listában "
+"található útvonalpontokon."
+
+#: src/gpsdrive.c:9845
+msgid "Abort your journey"
+msgstr "Út megszakítása"
+
+#: src/gpsdrive.c:9862
+msgid "-v    show version\n"
+msgstr "-v    kiírja a program nevét és változatát\n"
+
+#: src/gpsdrive.c:9863
+msgid "-h    print this help\n"
+msgstr "-h    emlékeztetõt ír ki\n"
+
+#: src/gpsdrive.c:9864
+#, fuzzy
+msgid "-d    turn on debug info\n"
+msgstr "-d    bekapcsolaja a hibakeresést\n"
+
+#: src/gpsdrive.c:9865
+#, fuzzy
+msgid "-D    turn on lot of debug info\n"
+msgstr "-d    bekapcsolaja a hibakeresést\n"
+
+#: src/gpsdrive.c:9866
+msgid "-e    use Festival-Lite (flite) for speech output\n"
+msgstr ""
+
+#: src/gpsdrive.c:9867
+msgid "-t    set serial device for GPS i.e. /dev/ttyS1\n"
+msgstr ""
+"-t    soros interfész megadása, ahova a GPS csatlakozik (pl. /dev/ttyS1)\n"
+
+#: src/gpsdrive.c:9868
+msgid "-o    serial device, pty master, or file for NMEA *output*\n"
+msgstr "-o    soros eszköz, pty master, vagy fájl az NMEA *kimenethez*\n"
+
+#: src/gpsdrive.c:9869
+#, fuzzy
+msgid "-f X  Select friends server, X is i.e. www.gpsdrive.cc\n"
+msgstr "-f X  Barátod szerverének kiválasztása, X lehet pl. linux.quant-x.at\n"
+
+#: src/gpsdrive.c:9870
+msgid "-n    Disable use of direct serial connection\n"
+msgstr ""
+
+#: src/gpsdrive.c:9871
+msgid ""
+"-l X  Select language of the voice,\n"
+"      X may be english, spanish or german\n"
+msgstr ""
+"-l X  Hang nyelvének kiválasztása,\n"
+"      X lehet angol, spanyol vagy német\n"
+
+#: src/gpsdrive.c:9873
+msgid ""
+"-s X  set height of the screen, if autodetection\n"
+"      don't satisfy you, X is i.e. 768,600,480,200\n"
+msgstr ""
+"-s X  a képernyõ magasságának beállítása, ha nem vagy megelégedve\n"
+"      az automatikus felismerésseli. X lehet pl. 768,600,480,200\n"
+
+#. ** Mod by Arms
+#: src/gpsdrive.c:9876
+msgid "-r X  set width of the screen, only with -s\n"
+msgstr "-r X  képernyõ szélességének beállítása, csak -s kapcsolóval együtt\n"
+
+#: src/gpsdrive.c:9878
+msgid "-1    have only 1 button mouse, for example using touchscreen\n"
+msgstr "-1    egy bombos egér, pl. érintõképernyõ\n"
+
+#: src/gpsdrive.c:9879
+msgid "-a    don't display battery status (i.e. broken APM)\n"
+msgstr "-a    nem mutatja a telep töltöttségét (pl. rossz APM)\n"
+
+#: src/gpsdrive.c:9881
+msgid "-b X  Servername for NMEA server (if gpsd runs on another host)\n"
+msgstr "-b X  az NMEA kiszolgáló neve (ha a gpsd másik gépen fut)\n"
+
+#: src/gpsdrive.c:9883
+msgid "-c X  set start position in simulation mode to waypoint name X\n"
+msgstr "-c X  a szimulációs mód kiindulópontja legyen X útvonalpont\n"
+
+#: src/gpsdrive.c:9884
+#, fuzzy
+msgid "-x    create separate window for menu\n"
+msgstr ""
+"-x    menü külön ablakban\n"
+"\n"
+
+#: src/gpsdrive.c:9885
+msgid "-p    set settings for PDA (iPAQ, Yopy...)\n"
+msgstr ""
+
+#: src/gpsdrive.c:9887
+msgid "-i    ignore NMEA checksum (risky, only for broken GPS receivers\n"
+msgstr ""
+
+#: src/gpsdrive.c:9888
+msgid "-q    disable SQL support\n"
+msgstr ""
+
+#: src/gpsdrive.c:9889
+msgid "-F    force display of position even it is invalid\n"
+msgstr ""
+
+#: src/gpsdrive.c:9890
+msgid "-S    don't show splash screen\n"
+msgstr ""
+
+#: src/gpsdrive.c:9891
+msgid "-E    print out data received from direct serial connection\n"
+msgstr ""
+
+#: src/gpsdrive.c:9893
+msgid "-W x  set x to 1 to switch WAAS/EGNOS on, set to 0 to switch off\n"
+msgstr ""
+
+#: src/gpsdrive.c:9894
+msgid "-H X  correct altitude, adding this value to altitude\n"
+msgstr ""
+
+#: src/gpsdrive.c:9895
+msgid ""
+"-z    don't display zoom factor and scale\n"
+"\n"
+msgstr ""
+
+#: src/gpsdrive.c:10001
+msgid "Select a track file"
+msgstr "Útvonalfájl kiválasztása"
+
+#: src/gpsdrive.c:10179 src/gpskismet.c:380
+msgid "can't open socket for port "
+msgstr "socket megnyitása sikertelen a következõ porthoz: "
+
+#: src/gpsdrive.c:10200
+#, c-format
+msgid ""
+"\n"
+"Cannot connect to %s: unknown host\n"
+msgstr ""
+
+#: src/gpsdrive.c:10221
+msgid "NMEA Mode, Port 2222"
+msgstr "NMEA mód, 2222-es port"
+
+#: src/gpsdrive.c:10230
+msgid "NMEA Mode, Port 2947"
+msgstr "NMEA Mód, 2947-es port"
+
+#: src/gpsdrive.c:10249
+msgid ""
+"\n"
+"Garmin protocol detection disabled!\n"
+msgstr ""
+"\n"
+"Garmin protokollfelismerés kikapcsolva!!\n"
+
+#: src/gpsdrive.c:10600
+msgid ""
+"\n"
+"libmysqlclient.so not found.\n"
+msgstr ""
+
+#: src/gpsdrive.c:10606
+msgid ""
+"\n"
+"MySQL support disabled.\n"
+msgstr ""
+
+#: src/gpsdrive.c:10783
+msgid ""
+"\n"
+"You can only choose between english, spanish and german\n"
+"\n"
+msgstr ""
+"\n"
+"Csak angol, spanyol vagy német választható!\n"
+"\n"
+
+#: src/gpsdrive.c:10817 src/settings.c:1730
+#, fuzzy
+msgid "EnterYourName"
+msgstr "Interfész"
+
+#: src/gpsdrive.c:10879
+#, c-format
+msgid ""
+"\n"
+"Using proxy: %s on port %d"
+msgstr ""
+"\n"
+"Használt proxy: %s, a port: %d"
+
+#: src/gpsdrive.c:10883
+msgid ""
+"\n"
+"Invalid enviroment variable HTTP_PROXY, must be in format: http://proxy."
+"provider.de:3128"
+msgstr ""
+"\n"
+"HTTP_PROXY: érvénytelen környezeti változó. A formátum http://proxy."
+"szolgáltato.hu:3128 kell legyen!"
+
+#: src/gpsdrive.c:11073
+#, fuzzy
+msgid "Gpsdrive-2 (c)2001-2004 F.Ganter"
+msgstr "(c) 2001,2002 F.Ganter"
+
+#: src/gpsdrive.c:11081
+msgid "Using speech output"
+msgstr "Navigációs beszéd használata"
+
+#: src/gpsdrive.c:11115
+#, fuzzy
+msgid "/Misc. Menu/Maps/Map Manager"
+msgstr "Útvonalfájl kiválasztása"
+
+#: src/gpsdrive.c:11119
+#, fuzzy
+msgid "/Misc. Menu/Waypoint Manager"
+msgstr "Útvonalfájl kiválasztása"
+
+#. download map button
+#: src/gpsdrive.c:11123
+#, fuzzy
+msgid "_Download map"
+msgstr "Térkép letöltése"
+
+#: src/gpsdrive.c:11142
+#, fuzzy
+msgid "M_ute"
+msgstr "Elnémítás"
+
+#: src/gpsdrive.c:11152
+msgid "Use SQ_L"
+msgstr ""
+
+#: src/gpsdrive.c:11162
+#, fuzzy
+msgid "Show _WP"
+msgstr "ÚP-k mutatása"
+
+#: src/gpsdrive.c:11189
+msgid "HomeBase"
+msgstr ""
+
+#: src/gpsdrive.c:11197
+#, fuzzy
+msgid "Pos. _mode"
+msgstr "Poz. mód"
+
+#: src/gpsdrive.c:11203
+#, fuzzy
+msgid "Show _Track"
+msgstr "Útvonal mutatása"
+
+#: src/gpsdrive.c:11246
+msgid "_Navigation"
+msgstr ""
+
+#: src/gpsdrive.c:11265
+#, fuzzy
+msgid "Auto _best map"
+msgstr "Legjobb térkép"
+
+#: src/gpsdrive.c:11275
+msgid "Save track"
+msgstr "Útvonal mentése"
+
+#: src/gpsdrive.c:11286
+msgid "Shown map type"
+msgstr "Térképtípus mutatása"
+
+#: src/gpsdrive.c:11297
+msgid "Street map"
+msgstr "Utca térkép"
+
+#: src/gpsdrive.c:11304
+msgid "Topo map"
+msgstr "Dombor térkép"
+
+#: src/gpsdrive.c:11386
+msgid ""
+"\n"
+"kismet server found\n"
+msgstr ""
+
+#: src/gpsdrive.c:11447 src/gpsdrive.c:11797
+msgid "Bearing"
+msgstr "Bearing"
+
+#: src/gpsdrive.c:11468
+msgid "GPS Info"
+msgstr ""
+
+#: src/gpsdrive.c:11519
+msgid "Bat."
+msgstr "Telep"
+
+#: src/gpsdrive.c:11534
+#, fuzzy
+msgid "TC"
+msgstr "UTC "
+
+#. displays speed over ground
+#: src/gpsdrive.c:11552 src/gpsdrive.c:11807 src/gpsdrive.c:11809
+#: src/gpsdrive.c:11815 src/gpsdrive.c:11817
+msgid "---"
+msgstr "---"
+
+#: src/gpsdrive.c:11632 src/gpsdrive.c:11639
+#, fuzzy
+msgid "Selected:"
+msgstr "Cél kijelölése"
+
+#: src/gpsdrive.c:11632 src/gpsdrive.c:11639
+msgid "within"
+msgstr ""
+
+#. create frames for labels
+#: src/gpsdrive.c:11647
+msgid "Distance to target"
+msgstr "A cél távolsága"
+
+#. ** Mod by Arms
+#. if (!pdamode)
+#. gtk_box_pack_start (GTK_BOX (hbox2), frame_speed, TRUE, TRUE,
+#. 1 * PADDING);
+#: src/gpsdrive.c:11683
+msgid "Altitude"
+msgstr "Magasság"
+
+#. ** Mod by Arms
+#. if (!pdamode)
+#. gtk_box_pack_start (GTK_BOX (hbox2), frame_altitude, FALSE, TRUE,
+#. 1 * PADDING);
+#: src/gpsdrive.c:11690 src/settings.c:681
+#, fuzzy
+msgid "Waypoints"
+msgstr "Útvonalpont"
+
+#: src/gpsdrive.c:11794
+msgid "Map file"
+msgstr "Térképfájl"
+
+#: src/gpsdrive.c:11795
+msgid "Map scale"
+msgstr "Lépték"
+
+#: src/gpsdrive.c:11796
+msgid "Heading"
+msgstr "Heading"
+
+#: src/gpsdrive.c:11798
+msgid "Time at Dest."
+msgstr "Hátralévõ idõ"
+
+#: src/gpsdrive.c:11799
+msgid "Pref. scale"
+msgstr "Kedvenc lépték"
+
+#: src/gpsdrive.c:11803
+msgid "000,00000N"
+msgstr ""
+
+#: src/gpsdrive.c:11805
+msgid "000,00000E"
+msgstr ""
+
+#: src/gpsdrive.c:11811 src/gpsdrive.c:11813
+msgid "0000"
+msgstr ""
+
+#. gdk_window_lower((GdkWindow *)menuwin);
+#: src/gpsdrive.c:11886 src/gpsdrive.c:11937
+msgid "Menu"
+msgstr ""
+
+#. gdk_window_lower((GdkWindow *)menuwin2);
+#: src/gpsdrive.c:11895 src/gpsdrive.c:11938
+msgid "Status"
+msgstr ""
+
+#: src/gpsdrive.c:12089
+msgid ""
+"Click here to switch betwen satetellite level and satellite position "
+"display. A rotating globe is shown in simulation mode"
+msgstr ""
+
+#: src/gpsdrive.c:12093
+msgid "Number of used satellites/satellites in view"
+msgstr ""
+
+#: src/gpsdrive.c:12096
+msgid "EPE (Estimated Precision Error), if available"
+msgstr ""
+
+#: src/gpsdrive.c:12100
+msgid ""
+"PDOP (Position Dilution Of Precision). PDOP less than 4 gives the best "
+"accuracy, between 4 and 8 gives acceptable accuracy and greater than 8 gives "
+"unacceptable poor accuracy. "
+msgstr ""
+
+#: src/gpsdrive.c:12105
+msgid ""
+"On top of the compass you see the direction to which you move. The pointer "
+"shows the target direction on the compass."
+msgstr ""
+
+#: src/gpsdrive.c:12108
+msgid "/Misc. Menu"
+msgstr ""
+
+#: src/gpsdrive.c:12111
+msgid "Here you find extra functions for maps, tracks and messages"
+msgstr ""
+
+#: src/gpsdrive.c:12115
+msgid "Download map from Internet"
+msgstr "Térkép letöltése az internetrõl"
+
+#: src/gpsdrive.c:12117
+msgid "Leave the program"
+msgstr "Kilépés a programból"
+
+#: src/gpsdrive.c:12120
+msgid "Disable output of speech"
+msgstr "Beszéd kikapcsolása"
+
+#: src/gpsdrive.c:12123
+msgid "Use SQL server for waypoints"
+msgstr ""
+
+#: src/gpsdrive.c:12126
+msgid "Show waypoints on the map"
+msgstr "Útvonalpontok mutatása a térképen"
+
+#: src/gpsdrive.c:12129
+msgid ""
+"Turn position mode on. You can move on the map with the left mouse button "
+"click. Clicking near the border switches to the proximate map."
+msgstr ""
+"Pozíció mód bekapcsolása. Bal egérgombbal mozoghatsz a térképen.Ha a "
+"képernyõ szélére kattintassz, megjelenik a következõ térkép."
+
+#: src/gpsdrive.c:12132
+msgid "Show tracking on the map"
+msgstr "Megtett útvonal mutatása a térképen"
+
+#: src/gpsdrive.c:12137
+msgid "Opens the help window"
+msgstr "Megnyitja a súgóablakot"
+
+#: src/gpsdrive.c:12140
+msgid "Navigation menu. Enter here your destination."
+msgstr ""
+
+#: src/gpsdrive.c:12156
+msgid "Settings for GpsDrive"
+msgstr "A GpsDrive beállításai"
+
+#: src/gpsdrive.c:12158
+msgid "Zoom into the current map"
+msgstr "Jelenlegi térkép nagyítása"
+
+#: src/gpsdrive.c:12160
+msgid "Zooms out off the current map"
+msgstr "Jelenlegi térkép kicsinyítése"
+
+#: src/gpsdrive.c:12162
+msgid "Select the next more detailed map"
+msgstr "A következõ, részletesebb térkép kiválasztása"
+
+#: src/gpsdrive.c:12164
+msgid "Select the next less detailed map"
+msgstr "A következõ, kevésbe részletes térkép kiválasztása"
+
+#: src/gpsdrive.c:12169
+msgid "Select here a destination from the waypoint list"
+msgstr "Cél kiválasztása az útvonlapont listából"
+
+#: src/gpsdrive.c:12173
+msgid "Select the map scale of avail. maps."
+msgstr "Az elérhetõ térképek léptékének kiválasztása"
+
+#: src/gpsdrive.c:12178
+msgid "Always select the most detailed map available"
+msgstr "Mindíg a legrészletesebb térkép mutatása"
+
+#: src/gpsdrive.c:12181
+msgid "Save the track to given filename at program exit"
+msgstr "Kilépéskor a track elmentése adott fájlnéven"
+
+#: src/gpsdrive.c:12187
+msgid "Number of waypoints selected from SQL server"
+msgstr ""
+
+#: src/gpsdrive.c:12191
+msgid "Number of selected waypoints, which are in range"
+msgstr ""
+
+#: src/gpsdrive.c:12195
+msgid "Range for waypoint selection in kilometers"
+msgstr ""
+
+#: src/gpsdrive.c:12198
+msgid "This shows the time from your GPS receiver"
+msgstr ""
+
+#: src/gpsdrive.c:12201
+msgid ""
+"Number of mobile targets within timeframe/total received from friendsserver"
+msgstr ""
+
+#: src/gpsdrive.c:12275
+msgid ""
+"\n"
+"\n"
+"Thank you for using GpsDrive!\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:543
+#, fuzzy
+msgid "GpsDrive v"
+msgstr "GpsDrive súgó"
+
+#: src/splash.c:549
+msgid ""
+"\n"
+"\n"
+"You find new versions on http://www.gpsdrive.cc\n"
+msgstr ""
+
+#: src/splash.c:553
+msgid ""
+"Disclaimer: Please do not use for navigation. \n"
+"\n"
+msgstr ""
+
+#: src/splash.c:558
+msgid "Please have a look into the manpage (man gpsdrive) for program details!"
+msgstr ""
+
+#: src/splash.c:563
+#, fuzzy
+msgid "Mouse control (clicking on the map):\n"
+msgstr "Megtett útvonal mutatása a térképen"
+
+#: src/splash.c:569
+msgid ""
+"Left mouse button         : Set position (usefull in simulation mode)\n"
+"Right mouse button        : Set target directly on the map\n"
+"Middle mouse button       : Display position again\n"
+"Shift left mouse button   : smaller map\n"
+"Shift right mouse button  : larger map\n"
+"Control left mouse button : Set a waypoint (mouse position) on the map\n"
+"Control right mouse button: Set a waypoint at current position on the map\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:577
+msgid ""
+"j    : switch to next waypoint in route mode\n"
+"x    : add waypoint at current position\n"
+"y    : add waypoint at mouse cursor position\n"
+msgstr ""
+
+#: src/splash.c:583
+msgid "Short cuts:\n"
+msgstr ""
+
+#: src/splash.c:590
+msgid "The other key shortcuts are marked as "
+msgstr ""
+
+#: src/splash.c:591
+msgid "underlined"
+msgstr ""
+
+#: src/splash.c:593
+msgid " letters in the button text.\n"
+msgstr ""
+
+#: src/splash.c:596
+msgid ""
+"Press the underlined key together with the ALT-key.\n"
+"\n"
+"You can move on the map by selecting the Position-Mode in the menu. A blue "
+"rectangle shows this mode, you can set this cursor by clicking on the map. "
+"If you click on the border of the map (the outer 20%) then the map switches "
+"to the next area.\n"
+"\n"
+"Suggestions welcome.\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:603
+msgid "Have a lot of fun!"
+msgstr ""
+
+#: src/splash.c:734
+msgid "Please donate to GpsDrive"
+msgstr ""
+
+#: src/splash.c:740
+msgid ""
+"\n"
+"\n"
+"GpsDrive is a project with no comercial background. \n"
+"\n"
+"It would be nice if you can give a donation to help me pay the costs for "
+"hardware and the webserver.\n"
+"\n"
+"To do so, just go to"
+msgstr ""
+
+#: src/splash.c:744
+msgid " http://www.gpsdrive.cc "
+msgstr ""
+
+#: src/splash.c:747
+msgid ""
+"and click on the PayPal button.\n"
+"\n"
+"Thank you very much for your donation!\n"
+"\n"
+"This message is only displayed once when you start an new version of "
+"GpsDrive.\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:780
+#, fuzzy
+msgid "About GpsDrive donation"
+msgstr "GpsDrive menü"
+
+#: src/splash.c:859
+msgid "From:"
+msgstr ""
+
+#: src/splash.c:928
+#, c-format
+msgid ""
+"You received a message from\n"
+"the friends server (%s)\n"
+msgstr ""
+
+#: src/splash.c:938
+msgid "You received a message through the friends server from:\n"
+msgstr ""
+
+#: src/splash.c:948
+#, fuzzy
+msgid "Message text:\n"
+msgstr "  Üzenet  "
+
+#: src/splash.c:1004
+msgid "Error saving config file ~/.gpsdrive/gpsdriverc"
+msgstr "Hiba a fájl mentésekor: ~/.gpsdrive/gpsdriverc"
+
+#: src/splash.c:1519 src/splash.c:1578
+msgid ""
+"\n"
+"Warning: unable to open splash picture\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:1562
+#, fuzzy
+msgid "About GpsDrive"
+msgstr "GpsDrive menü"
+
+#: src/settings.c:438
+msgid "Setting WP label font"
+msgstr ""
+
+#: src/settings.c:440
+msgid "Setting big display font"
+msgstr ""
+
+#: src/settings.c:507
+msgid "Setting big display color"
+msgstr ""
+
+#: src/settings.c:545
+msgid "Setting track color"
+msgstr ""
+
+#: src/settings.c:587
+msgid "Setting friends label color"
+msgstr ""
+
+#: src/settings.c:668
+#, fuzzy
+msgid ""
+"Don't use more than\n"
+"100 waypoint(way*.txt) files!"
+msgstr ""
+"Ne használj több mint\n"
+"30 útvonalpont (way*.txt) fájlt!"
+
+#: src/settings.c:679
+#, fuzzy
+msgid "Waypoint files to use"
+msgstr "Használandó útvonalpont fájlok"
+
+#: src/settings.c:704 src/settings.c:709
+#, fuzzy
+msgid "Settings"
+msgstr "GPS beállítások"
+
+#. misc area
+#: src/settings.c:716
+msgid "Misc settings"
+msgstr "Egyéb beállítások"
+
+#: src/settings.c:720
+msgid "Show Shadows"
+msgstr "Árnyékok mutatása"
+
+#: src/settings.c:727
+msgid "Etched frames"
+msgstr ""
+
+#: src/settings.c:735
+msgid "Simulation: Follow target"
+msgstr "Szimuláció: cél követése"
+
+#: src/settings.c:742
+msgid "Maximum CPU load"
+msgstr ""
+
+#: src/settings.c:752
+#, fuzzy
+msgid "Track"
+msgstr "Útvonal mutatása"
+
+#: src/settings.c:767
+msgid "Maps directory"
+msgstr "Térképkönyvtár"
+
+#: src/settings.c:773
+#, fuzzy
+msgid "Automatic"
+msgstr "Automatikus éjszakai mód"
+
+#: src/settings.c:779
+msgid "On"
+msgstr ""
+
+#: src/settings.c:784
+msgid "Off"
+msgstr ""
+
+#. gtk_table_attach_defaults (GTK_TABLE (misctable), label2, 0, 2, 3, 4);
+#. gtk_table_attach_defaults (GTK_TABLE (misctable), mapdirbt, 0, 2, 4, 5);
+#. GPS settings area
+#: src/settings.c:808
+msgid "GPS settings"
+msgstr "GPS beállítások"
+
+#. gtk_container_add (GTK_CONTAINER (f4), gpstable);
+#: src/settings.c:822
+msgid "Test for GARMIN"
+msgstr "GARMIN próba"
+
+#: src/settings.c:833
+msgid "Use DGPS-IP"
+msgstr "DGPS-IP használata"
+
+#: src/settings.c:843
+msgid "GPS is Earthmate"
+msgstr ""
+
+#: src/settings.c:853
+msgid "Use serial conn."
+msgstr ""
+
+#: src/settings.c:868
+msgid "Interface"
+msgstr "Interfész"
+
+#: src/settings.c:869
+msgid "Baudrate"
+msgstr ""
+
+#. units area
+#: src/settings.c:904
+msgid "Units"
+msgstr "Mértékegység"
+
+#: src/settings.c:910
+msgid "Miles"
+msgstr "Mérföld"
+
+#: src/settings.c:915
+msgid "Metric"
+msgstr "Metrikus"
+
+#: src/settings.c:920 src/nautic.c:106
+msgid "Nautic"
+msgstr "Tengeri"
+
+#: src/settings.c:930
+msgid "Decimal position"
+msgstr ""
+
+#. gtk_box_pack_start (GTK_BOX (v2), miles, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), metric, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), nautic, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), minsecbt, TRUE, FALSE, 2 * PADDING);
+#.
+#. default download server
+#: src/settings.c:948
+msgid "Default map server"
+msgstr "Alapértelmezett térképkiszolgáló"
+
+#. Night light mode
+#: src/settings.c:981
+msgid "Night light mode"
+msgstr "Éjszakai világítási mód"
+
+#.  gtk_table_attach_defaults (GTK_TABLE (table), f5, 0, 2, 2, 3);
+#. Sound settings
+#: src/settings.c:999
+#, fuzzy
+msgid "Speech output settings"
+msgstr "Egyéb beállítások"
+
+#.
+#. set following sounds
+#. sound_direction ... say direction to target
+#. sound_distance  ... say distance to target
+#. sound_speed     ... say your current speed
+#. sound_gps       ... say GPS status
+#.
+#.
+#: src/settings.c:1011
+msgid "Direction"
+msgstr ""
+
+#: src/settings.c:1032
+#, fuzzy
+msgid "GPS Status"
+msgstr "GpsDrive állapot"
+
+#: src/settings.c:1046
+msgid "Switch on for speech output of the direction to the target"
+msgstr ""
+
+#: src/settings.c:1051
+msgid "Switch on for speech output of the distance to the target"
+msgstr ""
+
+#: src/settings.c:1056
+msgid "Switch on for speech output of your current speed"
+msgstr ""
+
+#: src/settings.c:1061
+msgid "Switch on for speech output of the status of your GPS signal"
+msgstr ""
+
+#. Font settings
+#: src/settings.c:1066
+#, fuzzy
+msgid "Font and color settings"
+msgstr "GPS beállítások"
+
+#. gtk_box_pack_start (GTK_BOX (h1), f5, TRUE, FALSE, 2 * PADDING);
+#: src/settings.c:1071
+msgid "WP Label"
+msgstr ""
+
+#: src/settings.c:1072
+msgid "Big display"
+msgstr ""
+
+#: src/settings.c:1073
+msgid "Display color"
+msgstr ""
+
+#: src/settings.c:1101
+msgid "Switch units to statute miles"
+msgstr "Mértékegység átállítása mérföldre"
+
+#: src/settings.c:1103
+msgid "Switch units to nautical miles"
+msgstr "Mértékegység átállítása tengeri mérföldre"
+
+#: src/settings.c:1105
+msgid "Switch units to metric system (Kilometers)"
+msgstr "Mértékegység átállítása metrikus rendszerre (kilométer)"
+
+#: src/settings.c:1110
+msgid ""
+"If selected display latitude and longitude in decimal degrees, otherwise in "
+"degree, minutes and seconds notation"
+msgstr ""
+"Ha ki van jelölve, a hosszúsági és szélességi fokok tizedestötrekként "
+"jelennek meg, egyébként fok, perc, másodpercben"
+
+#: src/settings.c:1115
+#, fuzzy
+msgid ""
+"Set the german expedia server(expedia.de) as default download server. Use "
+"this if you are in Europe"
+msgstr "Expedia használata alapértelmezett térképkiszolgálóként"
+
+#: src/settings.c:1119
+msgid "Set Expedia as default download server"
+msgstr "Expedia használata alapértelmezett térképkiszolgálóként"
+
+#: src/settings.c:1122
+msgid "Switches shadows on map on or off"
+msgstr "Árnyékok ki- vagy bekapcsolása a térképen"
+
+#: src/settings.c:1126
+msgid "Switches between different type of frame ornaments"
+msgstr ""
+
+#: src/settings.c:1131
+#, c-format
+msgid ""
+"Select the approx. maximum CPU load, use 20-30% on notebooks while on "
+"battery to save battery power. This effects the refresh rate of the map "
+"screen"
+msgstr ""
+
+#: src/settings.c:1136
+msgid "If activated, pointer moves to target in simulation mode"
+msgstr "Az mutató követi a célt szimuláció mód esetén"
+
+#: src/settings.c:1140
+msgid "Set here the color of the drawn track"
+msgstr ""
+
+#: src/settings.c:1144
+msgid ""
+"Path to your map files. In the specified directory also the index file "
+"map_koord.txt must be present."
+msgstr ""
+"A térképfájlok elérési útvonala. A könyvtárban kell legyen egy map_koord.txt "
+"fájl."
+
+#: src/settings.c:1149
+msgid ""
+"If selected, gpsdrive try to use GARMIN mode if possible. Unselect if you "
+"only have a NMEA device."
+msgstr ""
+"Ha ez ki van jelölve, a GpsDrive GARMIN módot próbál használni, ha "
+"lehetséges. Ne válaszd ezt, ha csak NMEA eszközöd van."
+
+#: src/settings.c:1154
+msgid ""
+"Set here the baud rate of your GPS device, NMEA devices usually have a speed "
+"of 4800 baud"
+msgstr ""
+
+#: src/settings.c:1159
+msgid ""
+"If selected, gpsdrive try to use differential GPS over IP. You must have an "
+"internet connection and a DGPS capable GPS receiver. Works only in NMEA mode!"
+msgstr ""
+"Ha ki van jelölve, megpróbál differenciális GPS-t használni IP-n keresztül. "
+"Kell hozzá internetes kapcsolat és egy DGPS képes GPS vevõ. Csak NMEA módban "
+"mûködik!"
+
+#: src/settings.c:1164
+msgid ""
+"Select this if you have a DeLorme Earthmate GPS receiver. The StartGPSD "
+"button will provide gpsd with the needed additional parameters"
+msgstr ""
+
+#: src/settings.c:1169
+msgid ""
+"Select this if you want to use of the direct serial connection. If disabled, "
+"you can use the receiver only through gpsd. On the other hand, the direct "
+"serial connection needs no gpsd running and detects the working receiver on "
+"startup"
+msgstr ""
+
+#: src/settings.c:1174
+msgid "Specify the serial interface where the GPS is connected"
+msgstr "Soros interfész megadása (amelyre a GPS csatlakozik)"
+
+#: src/settings.c:1179
+#, fuzzy
+msgid ""
+"Switches automagically to night mode if it is dark outside. Press 'N' key to "
+"turn off nightmode."
+msgstr ""
+"Automatikusan bekapcsolaja az éjszakai módot, ha kint sötét van. Nyomd meg "
+"az 'N' billentyût az éjszakai mód 30 másodperces kikapcsolásához."
+
+#: src/settings.c:1183
+#, fuzzy
+msgid "Switches night mode on. Press 'N' key to turn off nightmode."
+msgstr ""
+"Bekapcsolja az éjszakai módot. Nyomd meg az 'N' billentyût az éjszakai mód "
+"30 másodperces kikapcsolásához."
+
+#: src/settings.c:1186
+msgid "Switches night mode off"
+msgstr "Éjszakai mód ki- vagy bekapcsolása"
+
+#: src/settings.c:1190
+#, fuzzy
+msgid "Here you can set the font for the waypoint labels"
+msgstr "A kijelölt útvonalpont törlése a listából"
+
+#: src/settings.c:1195
+msgid "Here you can set the font for the big display for Speed and Distance"
+msgstr ""
+
+#: src/settings.c:1199
+#, fuzzy
+msgid ""
+"Here you can set the color for the big display for speed, distance and "
+"altitude"
+msgstr "A kijelölt útvonalpont törlése a listából"
+
+#: src/settings.c:1377
+msgid "Geo information"
+msgstr ""
+
+#: src/settings.c:1379
+msgid "Geo info"
+msgstr ""
+
+#: src/settings.c:1390
+msgid "Sunrise"
+msgstr ""
+
+#: src/settings.c:1392
+msgid "Sunset"
+msgstr ""
+
+#: src/settings.c:1395
+msgid "Standard"
+msgstr ""
+
+#: src/settings.c:1397
+msgid "Transit"
+msgstr ""
+
+#: src/settings.c:1399
+msgid "GPS-Time"
+msgstr ""
+
+#: src/settings.c:1401
+#, fuzzy
+msgid "Astro."
+msgstr "Auto"
+
+#: src/settings.c:1403
+#, fuzzy
+msgid "Naut."
+msgstr "Tengeri"
+
+#: src/settings.c:1405
+msgid "Civil"
+msgstr ""
+
+#: src/settings.c:1407
+msgid "Timezone"
+msgstr ""
+
+#: src/settings.c:1409
+msgid "Store TZ"
+msgstr ""
+
+#: src/settings.c:1419
+msgid ""
+"If selected, the timezone is stored, otherwise your actual timezone will "
+"automatically used"
+msgstr ""
+
+#: src/settings.c:1453
+#, fuzzy
+msgid "Night"
+msgstr "Jobbra"
+
+#: src/settings.c:1455
+msgid "Day"
+msgstr ""
+
+#: src/settings.c:1592 src/settings.c:1594 src/settings.c:1597
+#, fuzzy
+msgid "Unit:"
+msgstr "Mértékegység"
+
+#: src/settings.c:1592
+#, fuzzy
+msgid "miles"
+msgstr "Mérföld"
+
+#: src/settings.c:1595
+msgid "nautic miles/knots"
+msgstr ""
+
+#: src/settings.c:1597
+msgid "kilometers"
+msgstr ""
+
+#: src/settings.c:1612
+msgid "Trip information"
+msgstr ""
+
+#: src/settings.c:1614
+msgid "Trip info"
+msgstr ""
+
+#: src/settings.c:1628
+msgid "Odometer"
+msgstr ""
+
+#: src/settings.c:1630
+msgid "Total time"
+msgstr ""
+
+#: src/settings.c:1632
+msgid "Av. speed"
+msgstr ""
+
+#: src/settings.c:1634
+msgid "Max. speed"
+msgstr ""
+
+#: src/settings.c:1658
+msgid "Reset"
+msgstr ""
+
+#: src/settings.c:1663
+msgid "Resets the trip values to zero"
+msgstr ""
+
+#: src/settings.c:1732
+msgid "You should change your name in the first field!"
+msgstr ""
+
+#: src/settings.c:1918
+#, fuzzy
+msgid "Show position newer as"
+msgstr "Útvonalpontok mutatása a térképen"
+
+#: src/settings.c:1920
+msgid "Friends server setup"
+msgstr ""
+
+#: src/settings.c:1921
+#, fuzzy
+msgid "Friends"
+msgstr "Befejezés"
+
+#: src/settings.c:1933
+msgid "Days"
+msgstr ""
+
+#: src/settings.c:1934
+msgid "Hours"
+msgstr ""
+
+#: src/settings.c:1935
+#, fuzzy
+msgid "Minutes"
+msgstr "Mérföld"
+
+#: src/settings.c:1941
+msgid "Your name"
+msgstr ""
+
+#: src/settings.c:1946
+msgid ""
+"Set here your name which should be shown near your vehicle. You may use "
+"spaces here!"
+msgstr ""
+
+#: src/settings.c:1958
+msgid "Server name"
+msgstr ""
+
+#: src/settings.c:1963
+msgid ""
+"Set here the full qualified host name (i.e. www.gpsdrive.cc) of your friends "
+"server, then you have to press the \"Lookup\" button!"
+msgstr ""
+
+#: src/settings.c:1972
+msgid "Lookup"
+msgstr ""
+
+#: src/settings.c:1980
+msgid ""
+"You have to press the \"Lookup\" button to resolve the friends server name!"
+msgstr ""
+
+#: src/settings.c:1991
+msgid "Set here the color of the label displayed at friends position"
+msgstr ""
+
+#: src/settings.c:1997
+msgid "Friends server IP"
+msgstr ""
+
+#: src/settings.c:2002
+msgid ""
+"Set here the IP adress (i.e. 127.0.0.1) if you don't set the hostname above"
+msgstr ""
+
+#: src/settings.c:2007 src/settings.c:2012 src/settings.c:2016
+msgid ""
+"Set here the time limit in which the friends position is shown. Older "
+"positions are not shown."
+msgstr ""
+
+#: src/settings.c:2028
+msgid "Use friends server"
+msgstr ""
+
+#: src/settings.c:2036
+msgid ""
+"Enable/disable use of friends server. You must enter a Username, don't use "
+"the default name!"
+msgstr ""
+
+#: src/settings.c:2039
+msgid ""
+"If you enable the friendsserver mode,\n"
+"<span color=\"red\">everyone</span> using the same server\n"
+"can see your position!"
+msgstr ""
+
+#: src/settings.c:2094
+msgid "SQL selection criterias"
+msgstr ""
+
+#: src/settings.c:2095
+msgid "SQL"
+msgstr ""
+
+#: src/settings.c:2121
+msgid "Dist. limit[km] "
+msgstr ""
+
+#: src/settings.c:2126
+msgid "If enabled, show waypoints only within this distance"
+msgstr ""
+
+#: src/settings.c:2142
+msgid "Enable/disable distance selection"
+msgstr ""
+
+#: src/settings.c:2151
+#, fuzzy
+msgid "Show no_ssid "
+msgstr "ÚP-k mutatása"
+
+#: src/settings.c:2162
+msgid ""
+"If enabled, WLANs with no SSID are shown, because this is perhaps useless, "
+"you can disable it here"
+msgstr ""
+
+#: src/settings.c:2168
+#, fuzzy
+msgid "Selection mode"
+msgstr "Szimuláció mód"
+
+#: src/settings.c:2170
+msgid "include"
+msgstr ""
+
+#: src/settings.c:2173
+msgid "exclude"
+msgstr ""
+
+#: src/settings.c:2177
+msgid ""
+"Show only waypoints where the type field contains one of the selected words"
+msgstr ""
+
+#: src/settings.c:2181
+msgid ""
+"Show only waypoints where the type field doesn't contain any the selected "
+"words"
+msgstr ""
+
+#: src/fly.c:149
+#, fuzzy
+msgid "Aeronautical settings"
+msgstr "Egyéb beállítások"
+
+#: src/fly.c:151
+msgid "Fly"
+msgstr ""
+
+#: src/fly.c:158
+#, fuzzy
+msgid "Plane mode"
+msgstr "Szimuláció mód"
+
+#: src/fly.c:165
+msgid "Use VFR"
+msgstr ""
+
+#: src/fly.c:171
+msgid "Use IFR"
+msgstr ""
+
+#: src/fly.c:181
+msgid "max. horizontal deviation "
+msgstr ""
+
+#: src/fly.c:183
+msgid "max. vertical deviation "
+msgstr ""
+
+#: src/fly.c:198
+msgid "disable vert. deviation warning above 5000ft MSL"
+msgstr ""
+
+#: src/nautic.c:103
+#, fuzzy
+msgid "Nautic settings"
+msgstr "Egyéb beállítások"
+
+#. if (debug)
+#: src/gpssql.c:215
+#, c-format
+msgid ""
+"\n"
+"SQL: connected to %s as %s using %s\n"
+msgstr ""
+
+#: src/gpssql.c:278
+#, c-format
+msgid "rows inserted: %d\n"
+msgstr ""
+
+#: src/gpssql.c:293
+#, c-format
+msgid "last index: %d\n"
+msgstr ""
+
+#: src/gpssql.c:314
+#, c-format
+msgid "rows deleted: %d\n"
+msgstr ""
+
+#: src/gpssql.c:366 src/gpssql.c:372
+#, c-format
+msgid "Loaded user defined icon %s\n"
+msgstr ""
+
+#: src/gpssql.c:455
+#, c-format
+msgid "%d(%d) rows read in %.2f seconds\n"
+msgstr ""
+
+#: src/friends.c:363
+#, fuzzy
+msgid "unknown"
+msgstr "Ismeretlen"
+
+#: src/friendsd.c:472
+msgid "server: please don't run me as root\n"
+msgstr ""
+
+#: src/friendsd.c:484
+#, c-format
+msgid ""
+"\n"
+"Usage:\n"
+"   %s -n servername\n"
+"provides a name for your server\n"
+msgstr ""
+
+#: src/gpsnasamap.c:189
+#, c-format
+msgid "could not create output map file %s!\n"
+msgstr ""
+
+#. g_signal_connect (window, "destroy",
+#. G_CALLBACK (gtk_widget_destroyed), &window);
+#: src/gpsnasamap.c:204
+msgid "Creating map..."
+msgstr ""
+
+#: src/gpsnasamap.c:212
+msgid "Creating a temporary map from NASA satellite images"
+msgstr ""
+
+#: src/gpsnasamap.c:219
+#, c-format
+msgid "converting map for latitude: %f and longitude: %f ...\n"
+msgstr ""
+
+#: src/gpsnasamap.c:324
+msgid ""
+"\n"
+"You can permanently add this map file with following line in your\n"
+"map_koord.txt (rename the file!):\n"
+msgstr ""
+
+#: src/gpsserial.c:252
+msgid "waiting for thread to stop\n"
+msgstr ""
+
+#: src/gpsserial.c:275
+#, c-format
+msgid ""
+"\n"
+"error opening %s(%d)\n"
+msgstr ""
+
+#: src/gpsserial.c:278
+#, c-format
+msgid "successfull opened %s\n"
+msgstr ""
+
+#: src/gpsserial.c:284
+msgid "switching WAAS/EGNOS on\n"
+msgstr ""
+
+#: src/gpsserial.c:290
+msgid "switching WAAS/EGNOS off\n"
+msgstr ""
+
+#~ msgid "Set Mapblast as default download server"
+#~ msgstr "Mapblast használata alapértelmezett térképkiszolgálóként"
+
+#~ msgid "Sat level"
+#~ msgstr "Mûholdak"
+
+#, fuzzy
+#~ msgid "Simulation"
+#~ msgstr "Szimuláció mód"
+
+#, fuzzy
+#~ msgid "Sim.mode"
+#~ msgstr "Szimuláció mód"
+
+#~ msgid "Yes, please start gpsd"
+#~ msgstr "Igen, kérlek indítsd el a gpsd-t"
+
+#~ msgid "No, start simulation"
+#~ msgstr "Nem, indítsd a szimulációt"
+
+#~ msgid ""
+#~ "Neither gpsd nor GARMIN device detected!\n"
+#~ "Should I start gpsd (NMEA mode) for you?"
+#~ msgstr ""
+#~ "Sem gpsd sem GARMIN eszköz nem található!\n"
+#~ "Indítsam el a gpsd-t (NMEA módban)?"
+
+#~ msgid "-n X  Select display name on friends server, X is i.e. Fritz\n"
+#~ msgstr ""
+#~ "-n X  A barátod szerverén található display neve, X lehet pl. Fritz\n"
+
+#~ msgid "UTC "
+#~ msgstr "UTC "
+
+#~ msgid "Cancel"
+#~ msgstr "Mégse"
+
+#, fuzzy
+#~ msgid "/Misc. Menu/Maps"
+#~ msgstr "Útvonalfájl kiválasztása"
+
+#~ msgid "Import"
+#~ msgstr "Importálás"
+
+#~ msgid "Let you import and calibrate your own map"
+#~ msgstr "Itt importálhatod és kalibrálhatod a saját térképeidet"
+
+#, fuzzy
+#~ msgid "/Operations Menu"
+#~ msgstr "Útvonalfájl kiválasztása"
+
+#, fuzzy
+#~ msgid "/ Messages"
+#~ msgstr "  Üzenet  "
+
+#, fuzzy
+#~ msgid "/ Help"
+#~ msgstr "Súgó"
+
+#~ msgid "Load and display a previous stored track file"
+#~ msgstr "Elõzõleg eltárolt track fájl betöltése és megmutatása"
+
+#~ msgid "Distance to "
+#~ msgstr "Távolság "
+
+#, fuzzy
+#~ msgid "Sel:"
+#~ msgstr "Cél kijelölése"
+
+#~ msgid "Friendsicon loaded"
+#~ msgstr "Ikon betöltve"
+
+#, fuzzy
+#~ msgid "Status window"
+#~ msgstr "GPS beállítások"
+
+#, fuzzy
+#~ msgid "can't open socket for friendsserver "
+#~ msgstr "socket megnyitása sikertelen a következõ porthoz: "
+
+#, fuzzy
+#~ msgid "Slow CPU"
+#~ msgstr "ÚP-k mutatása"
+
+#, fuzzy
+#~ msgid "UTC (GPS)"
+#~ msgstr "UTC "
+
+#~ msgid "Ok"
+#~ msgstr "Ok"
+
+#~ msgid "Delete WP"
+#~ msgstr "Útvonalpont törlése"
+
+#, fuzzy
+#~ msgid ""
+#~ "GpsDrive Help\n"
+#~ "\n"
+#~ msgstr "GpsDrive súgó"
+
+#, fuzzy
+#~ msgid "+    : Zoom in\n"
+#~ msgstr "Nagyítás"
+
+#, fuzzy
+#~ msgid "-    : Zoom out\n"
+#~ msgstr "Kicsinyítés"
+
+#, fuzzy
+#~ msgid "t    : select target\n"
+#~ msgstr "Cél kijelölése"
+
+#, fuzzy
+#~ msgid "d    : download map\n"
+#~ msgstr "Térkép letöltése"
+
+#, fuzzy
+#~ msgid "l    : load track\n"
+#~ msgstr "Útvonal betöltése"
+
+#, fuzzy
+#~ msgid "h    : show help\n"
+#~ msgstr "-h    emlékeztetõt ír ki\n"
+
+#~ msgid "   Ok   "
+#~ msgstr "   Ok   "
+
+#~ msgid "Close"
+#~ msgstr "Bezárás"
+
+#~ msgid "OK"
+#~ msgstr "OK"
+
+#~ msgid "Quit"
+#~ msgstr "Kilépés"
+
+#~ msgid "Load track"
+#~ msgstr "Útvonal betöltése"
+
+#~ msgid "Setup"
+#~ msgstr "Beállítás"
+
+#, fuzzy
+#~ msgid "not"
+#~ msgstr "csomó"
+
+#, fuzzy
+#~ msgid ""
+#~ "GpsDrive Help\n"
+#~ "\n"
+#~ "GPSDRIVE (c) 2001,2002 Fritz Ganter <ganter at ganter.at>\n"
+#~ "\n"
+#~ "-------------------------------------------------\n"
+#~ "Website: www.kraftvoll.at/software\n"
+#~ "Disclaimer: Please do not use for navigation. \n"
+#~ "\n"
+#~ "*************************************************\n"
+#~ "\n"
+#~ "See the manpage for program details\n"
+#~ "\n"
+#~ "Mouse control (clicking on the map):\n"
+#~ "===================================\n"
+#~ "Left mouse button         : Set position (usefull in simulation mode)\n"
+#~ "Right mouse button        : Set target directly on the map\n"
+#~ "Middle mouse button       : Display position again\n"
+#~ "Shift left mouse button   : smaller map\n"
+#~ "Shift right mouse button  : larger map\n"
+#~ "Control left mouse button : Set a waypoint (mouse position) on the map\n"
+#~ "Control right mouse button: Set a waypoint at current position on the "
+#~ "map\n"
+#~ "\n"
+#~ "Short cuts:\n"
+#~ "===================================\n"
+#~ "+                         : Zoom in\n"
+#~ "-                         : Zoom out\n"
+#~ "s                         : larger map\n"
+#~ "a                         : smaller map\n"
+#~ "t                         : select target\n"
+#~ "d                         : download map\n"
+#~ "i                         : import map\n"
+#~ "l                         : load track\n"
+#~ "h                         : show help\n"
+#~ "q                         : quit program\n"
+#~ "b                         : toggle auto best map\n"
+#~ "w                         : toggle show waypoints\n"
+#~ "o                         : toggle show tracks\n"
+#~ "u                         : enter setup menu\n"
+#~ "n                         : in nightmode: toogles night display on/off\n"
+#~ "j                         : switch to next waypoint in route mode\n"
+#~ "p                         : switch to position mode\n"
+#~ "x                         : add waypoint at current position\n"
+#~ "\n"
+#~ "Suggestions welcome!\n"
+#~ "\n"
+#~ "Have a lot of fun!\n"
+#~ "\n"
+#~ msgstr ""
+#~ "GpsDrive Súgó\n"
+#~ "\n"
+#~ "GPSDRIVE (c) 2001,2002 Fritz Ganter <ganter at ganter.at>\n"
+#~ "\n"
+#~ "-------------------------------------------------\n"
+#~ "Weblap: www.kraftvoll.at/software\n"
+#~ "Figyelem: Ne használd navigációhoz! \n"
+#~ "\n"
+#~ "*************************************************\n"
+#~ "\n"
+#~ "A részletesebb leírást megtalálod a man oldalon.\n"
+#~ "\n"
+#~ "Egér (kattintás a térképen):\n"
+#~ "===================================\n"
+#~ "Bal egérgomb              : Helyzet beállítása (hasznos szimuláció "
+#~ "módnál)\n"
+#~ "Jobb egérgomb             : Célpont beállítása a térképen\n"
+#~ "Középsõ egérgomb          : Újra megmutatja a helyzetet\n"
+#~ "Shift-bal egérgomb        : Kisebb térkép\n"
+#~ "Shift-jobb egérgomb       : Nagyobb térkép\n"
+#~ "Control-bal egérgomb      : Útvonalpont beállítása a térképen\n"
+#~ "Control-jobb egérgomb     : Útvonalpont beállítása a jelenlegi "
+#~ "helyzethez\n"
+#~ "\n"
+#~ "Forróbillentyûk:\n"
+#~ "===================================\n"
+#~ "+                         : Nagyítás\n"
+#~ "-                         : Kicsinyítés\n"
+#~ "s                         : Nagyobb térkép\n"
+#~ "a                         : Kisebb térkép\n"
+#~ "t                         : Célpont kiválasztás\n"
+#~ "d                         : Térkép letöltése\n"
+#~ "i                         : Térkép importálása\n"
+#~ "l                         : Útvonal betöltése\n"
+#~ "h                         : Súgó mutatása\n"
+#~ "q                         : Kilépés\n"
+#~ "b                         : Automatikus legjobb térkép ki-/bekapcsolása\n"
+#~ "w                         : Útvonalpontok láthatósága ki/be\n"
+#~ "o                         : Útvonalak láthatósága ki/be\n"
+#~ "u                         : Beállítások menü\n"
+#~ "n                         : Éjszakai mód ki 30 másodpercig\n"
+#~ "x                         : Útvonalpont hozzáadása az aktuális helyen\n"
+#~ "\n"
+#~ "Minden javaslatot szívesen fogadunk!\n"
+#~ "\n"
+#~ "Jó szórakozást!\n"
+#~ "\n"
+
+#~ msgid "No GPS Fix found!"
+#~ msgstr "GPS Fix nem található!"
+
+#, fuzzy
+#~ msgid "Waypoint files"
+#~ msgstr "Használandó útvonalpont fájlok"
+
+#~ msgid "Nightmode on"
+#~ msgstr "Éjszakai mód be"
+
+#~ msgid "Nightmode off"
+#~ msgstr "Éjszakai mód ki"
+
+#~ msgid "Decimal lat/long display"
+#~ msgstr "Hossz. és széless. tizedesekkel"
+
+#~ msgid "GpsDrive Settings"
+#~ msgstr "GpsDrive beállítások"

Added: packages/gpsdrive/branches/etch/po/it.gmo
===================================================================
(Binary files differ)


Property changes on: packages/gpsdrive/branches/etch/po/it.gmo
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: packages/gpsdrive/branches/etch/po/it.po
===================================================================
--- packages/gpsdrive/branches/etch/po/it.po	                        (rev 0)
+++ packages/gpsdrive/branches/etch/po/it.po	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,2617 @@
+# translation of it.po to Italiano
+# GpsDrive.
+# Copyright (C) 2002,2003, 2004 Free Software Foundation, Inc.
+# Manfred Caruso <bertoz at bertoz.com>, 2002,2003, 2004.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: it\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-03-03 21:47+0100\n"
+"PO-Revision-Date: 2004-01-13 11:53+0100\n"
+"Last-Translator: Manfred Caruso <bertoz at bertoz.com>\n"
+"Language-Team: Italiano <it at li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.0.2\n"
+
+#: src/gpsdrive.c:2179
+msgid "/_Misc. Menu"
+msgstr ""
+
+#: src/gpsdrive.c:2180
+msgid "/_Misc. Menu/Maps"
+msgstr ""
+
+#: src/gpsdrive.c:2181
+#, fuzzy
+msgid "/_Misc. Menu/Maps/_Import map"
+msgstr "/ File/Importa mappa"
+
+#: src/gpsdrive.c:2185
+msgid "/_Misc. Menu/Maps/_Map Manager"
+msgstr ""
+
+#: src/gpsdrive.c:2187
+msgid "/_Misc. Menu/_Waypoint Manager"
+msgstr ""
+
+#: src/gpsdrive.c:2189
+#, fuzzy
+msgid "/_Misc. Menu/_Load track file"
+msgstr "/ File/Carica tracciato"
+
+#: src/gpsdrive.c:2193
+#, fuzzy
+msgid "/_Misc. Menu/Messages"
+msgstr "/ Messaggi"
+
+#: src/gpsdrive.c:2194
+#, fuzzy
+msgid "/_Misc. Menu/Messages/Send message to mobile target"
+msgstr "/ Messaggi/Invia messaggio a obiettivo mobile"
+
+#: src/gpsdrive.c:2199
+msgid "/_Misc. Menu/Help"
+msgstr ""
+
+#: src/gpsdrive.c:2200
+#, fuzzy
+msgid "/_Misc. Menu/Help/About"
+msgstr "/ Help/Informazioni"
+
+#: src/gpsdrive.c:2202
+#, fuzzy
+msgid "/_Misc. Menu/Help/Topics"
+msgstr "/ Help/Argomenti"
+
+#: src/gpsdrive.c:2271
+msgid "  Message  "
+msgstr "  Messaggio  "
+
+#: src/gpsdrive.c:2315 src/gpsdrive.c:12145
+#, fuzzy
+msgid "Stop GPSD"
+msgstr "Avvia GPSD"
+
+#: src/gpsdrive.c:2317 src/gpsdrive.c:12147
+#, fuzzy
+msgid "Stop GPSD and switch to simulation mode"
+msgstr "p    : passa alla modalità posizione\n"
+
+#: src/gpsdrive.c:2339 src/gpsdrive.c:11261
+msgid "Start GPSD"
+msgstr "Avvia GPSD"
+
+#: src/gpsdrive.c:2341 src/gpsdrive.c:12153
+msgid "Starts GPSD for NMEA mode"
+msgstr "Avvia GPSD in modalità NMEA"
+
+#. displays zoom factor of map
+#: src/gpsdrive.c:2354 src/gpsdrive.c:2355 src/gpsdrive.c:2356
+#: src/gpsdrive.c:6264 src/gpsdrive.c:6273 src/gpsdrive.c:11484
+#: src/gpsdrive.c:11491 src/gpsdrive.c:11498 src/gpsdrive.c:11555
+#: src/gpsdrive.c:11560 src/gpsdrive.c:11566 src/gpsdrive.c:11602
+#: src/gpsdrive.c:11609 src/settings.c:1425 src/settings.c:1434
+#: src/settings.c:1443 src/settings.c:1468 src/settings.c:1478
+#: src/settings.c:1487 src/settings.c:1498 src/settings.c:1507
+#: src/settings.c:1517
+msgid "n/a"
+msgstr "n/a"
+
+#: src/gpsdrive.c:2366 src/gpsdrive.c:10245
+msgid ""
+"\n"
+"no garmin support compiled in\n"
+msgstr ""
+"\n"
+"supporto garmin non compilato\n"
+
+#: src/gpsdrive.c:2387 src/gpsdrive.c:3136
+msgid "Simulation mode"
+msgstr "Modalità simulazione"
+
+#: src/gpsdrive.c:2409
+msgid "got RMC data, using it\n"
+msgstr ""
+
+#: src/gpsdrive.c:2498 src/gpsdrive.c:11936
+msgid "Map"
+msgstr "Mappa"
+
+#. if (debug)
+#: src/gpsdrive.c:2661
+msgid "got no RMC data, using GGA data\n"
+msgstr ""
+
+#: src/gpsdrive.c:2912
+msgid "Timeout getting data from GPS-Receiver!"
+msgstr "Ricezione dati dal ricevitore GPS in timeout!"
+
+#: src/gpsdrive.c:2959 src/gpsdrive.c:3008 src/gpsdrive.c:3113
+#: src/gpsdrive.c:3199 src/gpsdrive.c:3324
+msgid "Press middle mouse button for navigation"
+msgstr "Premi il tasto centrale del mouse per la navigazione"
+
+#: src/gpsdrive.c:2963
+#, fuzzy, c-format
+msgid "Direct serial connection to %s"
+msgstr "Connessione a %s"
+
+#: src/gpsdrive.c:3013 src/gpsdrive.c:3045 src/gpsdrive.c:3205
+#: src/gpsdrive.c:3330
+msgid "Not enough satellites in view!"
+msgstr "Non ci sono sufficienti satelliti in vista!"
+
+#: src/gpsdrive.c:3117
+msgid "GARMIN Mode"
+msgstr "Modalità GARMIN"
+
+#: src/gpsdrive.c:3134
+msgid "No GPS used"
+msgstr "Nessun GPS utilizzato"
+
+#: src/gpsdrive.c:3138
+msgid "Press middle mouse button for sim mode"
+msgstr "Premi il tasto centrale del mouse per la simulazione"
+
+#: src/gpsdrive.c:3477
+#, c-format
+msgid "Distance to HomeBase: %.1fkm, max. allowed: %.1fkm\n"
+msgstr "Distanza a HomeBase: %.1fkm, max. consentito: %.1fkm\n"
+
+#: src/gpsdrive.c:3554 src/gpsdrive.c:3784 src/gpsdrive.c:6665
+#: src/gpsdrive.c:8534 src/gpsdrive.c:9000
+msgid "To"
+msgstr "Verso"
+
+#: src/gpsdrive.c:3866
+msgid "Error in line "
+msgstr "Errore alla linea "
+
+#: src/gpsdrive.c:3868
+msgid ""
+"I have found filenames in map_koord.txt which are\n"
+"not map_* or top_* files. Please rename them and change the entries in\n"
+"map_koord.txt.  Use map_* for street maps and top_* for topographical\n"
+"maps.  Otherwise, the maps will not be displayed!"
+msgstr ""
+"Ho trovato che il nome di un file in\n"
+"map_koord.txt che non\n"
+"inizia per map_* o top_* !\n"
+"Per favore, rinominali e cambia i riferimenti\n"
+"nel file map_koord.txt, altrimenti questa mappa\n"
+"non potrà essere visualizzata!\n"
+"\n"
+"Utilizza map_* per le mappe stradali e\n"
+"top_* per le mappe topografiche."
+
+#: src/gpsdrive.c:4229
+msgid "Auto"
+msgstr "Auto"
+
+#: src/gpsdrive.c:4440
+#, fuzzy
+msgid "Warning!"
+msgstr "Bearing"
+
+#: src/gpsdrive.c:4441
+msgid "You should not start GpsDrive as user root!!!"
+msgstr ""
+
+#: src/gpsdrive.c:4756 src/gpsdrive.c:8145 src/gpsdrive.c:8154
+#: src/gpsdrive.c:11661 src/gpsdrive.c:11670
+msgid "mi/h"
+msgstr "mi/h"
+
+#: src/gpsdrive.c:4758 src/gpsdrive.c:8147 src/gpsdrive.c:8156
+#: src/gpsdrive.c:11663 src/gpsdrive.c:11672
+msgid "knots"
+msgstr "nodi"
+
+#: src/gpsdrive.c:4760 src/gpsdrive.c:8149 src/gpsdrive.c:8158
+#: src/gpsdrive.c:11665 src/gpsdrive.c:11674
+msgid "km/h"
+msgstr "km/h"
+
+#: src/gpsdrive.c:5088
+#, fuzzy
+msgid ""
+"\n"
+"Warning: unable to load gpsdriveanim.gif!\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+"\n"
+"Attenzione: non riesco a caricare friendsicon!\n"
+"Installa il programma come utente root con:\n"
+"make install\n"
+"\n"
+
+#. This string means North,East,South,West -- please translate the letters
+#: src/gpsdrive.c:5896
+msgid "NESW"
+msgstr "NESO"
+
+#: src/gpsdrive.c:6064
+msgid "No map available for this position!"
+msgstr "Nessuna mappa disponibile per questa posizione!"
+
+#: src/gpsdrive.c:6258
+msgid "unused"
+msgstr "Non utilizzato"
+
+#: src/gpsdrive.c:6362
+msgid "can't open NMEA output file"
+msgstr "non posso aprire il file output NMEA"
+
+#: src/gpsdrive.c:6473
+msgid " Mapfile could not be loaded:"
+msgstr " La mappa non può essere caricata:"
+
+#: src/gpsdrive.c:6517
+msgid "Map found!"
+msgstr ""
+
+#: src/gpsdrive.c:6552
+msgid " Friendsicon could not be loaded:"
+msgstr " Friendsicon non può essere caricato:"
+
+#: src/gpsdrive.c:6555
+msgid ""
+"\n"
+"Warning: unable to load friendsicon!\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+"\n"
+"Attenzione: non riesco a caricare friendsicon!\n"
+"Installa il programma come utente root con:\n"
+"make install\n"
+"\n"
+
+#: src/gpsdrive.c:6843
+msgid "Select coordinates and scale"
+msgstr "Seleziona coordinate e scala"
+
+#: src/gpsdrive.c:6846
+msgid "Download map"
+msgstr "Scarica mappa"
+
+#: src/gpsdrive.c:6872 src/gpsdrive.c:7911 src/gpsdrive.c:9209
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/gpsdrive.c:11792
+msgid "Latitude"
+msgstr "Latitudine"
+
+#: src/gpsdrive.c:6874 src/gpsdrive.c:7913 src/gpsdrive.c:9203
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/gpsdrive.c:11793
+msgid "Longitude"
+msgstr "Longitudine"
+
+#: src/gpsdrive.c:6876
+msgid "Map covers"
+msgstr "Copertura mappa"
+
+#: src/gpsdrive.c:6880
+msgid "Scale"
+msgstr "Scala"
+
+#: src/gpsdrive.c:6882
+msgid "Map file name"
+msgstr "Nome file"
+
+#: src/gpsdrive.c:6922 src/settings.c:958
+msgid "Expedia Germany"
+msgstr ""
+
+#: src/gpsdrive.c:6928 src/settings.c:964
+msgid "Expedia USA"
+msgstr ""
+
+#: src/gpsdrive.c:6934
+msgid "TopoZone(US Only)"
+msgstr ""
+
+#: src/gpsdrive.c:6943
+msgid ""
+"If selected, you download the map from the german expedia server (expedia.de)"
+msgstr ""
+
+#: src/gpsdrive.c:6947
+msgid ""
+"If selected, you download the map from the U.S. expedia server (expedia.com)"
+msgstr ""
+
+#: src/gpsdrive.c:6951
+msgid ""
+"If selected, you download the map from the TopoZone Server (US maps only)"
+msgstr ""
+
+#: src/gpsdrive.c:6977 src/gpsdrive.c:6981
+msgid ""
+"You can also select the position\n"
+"with a mouse click on the map."
+msgstr ""
+"Puoi selezionare la posizione\n"
+"cliccando sulla mappa."
+
+#: src/gpsdrive.c:6983
+msgid "Using Proxy and port:"
+msgstr "Utilizza proxy e porta:"
+
+#: src/gpsdrive.c:7280 src/gpsdrive.c:7397
+msgid "can't open socket for port 80"
+msgstr "non posso aprire un socket per la porta 80"
+
+#: src/gpsdrive.c:7282 src/gpsdrive.c:7285 src/gpsdrive.c:7309
+#: src/gpsdrive.c:7312 src/gpsdrive.c:7327 src/gpsdrive.c:7330
+#: src/gpsdrive.c:7399 src/gpsdrive.c:7404 src/gpsdrive.c:7407
+#: src/gpsdrive.c:7411 src/gpsdrive.c:7446 src/gpsdrive.c:7451
+#: src/gpsdrive.c:7454 src/gpsdrive.c:7458 src/gpsdrive.c:7473
+#: src/gpsdrive.c:7478 src/gpsdrive.c:7481 src/gpsdrive.c:7485
+#, c-format
+msgid "Connecting to %s FAILED!"
+msgstr "Connessione a %s FALLITA!"
+
+#: src/gpsdrive.c:7307 src/gpsdrive.c:7444
+msgid "Can't resolve webserver address"
+msgstr "Non posso risolvere l'indirizzo del webserver"
+
+#: src/gpsdrive.c:7325 src/gpsdrive.c:7471
+msgid "unable to connect to Website"
+msgstr "Non posso connettermi al sito web"
+
+#: src/gpsdrive.c:7353 src/gpsdrive.c:7542
+msgid "read from Webserver"
+msgstr "lettura dal server web"
+
+#: src/gpsdrive.c:7380 src/gpsdrive.c:7384 src/gpsdrive.c:7386
+#: src/gpsdrive.c:7389
+#, c-format
+msgid "Connecting to %s"
+msgstr "Connessione a %s"
+
+#: src/gpsdrive.c:7499 src/gpsdrive.c:7503 src/gpsdrive.c:7505
+#: src/gpsdrive.c:7508
+#, c-format
+msgid "Now connected to %s"
+msgstr "Connesso a %s"
+
+#: src/gpsdrive.c:7585
+#, c-format
+msgid "Downloaded %d kBytes"
+msgstr "Trasferiti %d kBytes"
+
+#: src/gpsdrive.c:7599
+msgid "Download FAILED!"
+msgstr "Download FALLITO!"
+
+#: src/gpsdrive.c:7601
+#, c-format
+msgid "Download finished, got %dkB"
+msgstr "Download terminato, trasferiti %dkB"
+
+#: src/gpsdrive.c:7772
+msgid "Select a map file"
+msgstr "Seleziona una mappa"
+
+#: src/gpsdrive.c:7837
+msgid ""
+"How to calibrate your own maps? First, the map file\n"
+"must be copied into the"
+msgstr ""
+
+#: src/gpsdrive.c:7839
+#, fuzzy
+msgid ""
+"\n"
+"directory as .gif, .jpg or .png file and must have\n"
+"the size 1280x1024. The file names must be\n"
+"map_* for street maps or top_* for topographical maps!\n"
+"Load the file, select coordinates from waypoint list or\n"
+"type them in. Then click on the accept button."
+msgstr ""
+"Come calibrare le tue mappe?\n"
+"\n"
+"La mappa deve essere copiata nella directory ~/.gpsdrive nei formati .gif, ."
+"jpg o .png e devono avere la risoluzione di 1280x1024. Il nome del file "
+"deveessere map_* per le mappe stradali e top_* per le mappe topografiche!\n"
+"Carica il file, seleziona le coordinate\n"
+"dalla lista dei waypoint o digitale.\n"
+"Poi clicca il pulsante accetta."
+
+#: src/gpsdrive.c:7846
+#, fuzzy
+msgid ""
+"Now do the same for your second point and click on the\n"
+"finish button. The map can be used now."
+msgstr ""
+"Ora fai la stessa cosa per il secondo punto e clicca sul pulsante fine. La "
+"mappa può essere utilizzata ora."
+
+#: src/gpsdrive.c:7851
+msgid "Import Assistant. Step 1"
+msgstr "Assistente importazione. Passo 1"
+
+#: src/gpsdrive.c:7853
+msgid "Import Assistant. Step 2"
+msgstr "Assistente importazione. Passo 2"
+
+#: src/gpsdrive.c:7858
+msgid "Accept first point"
+msgstr "Primo punto"
+
+#: src/gpsdrive.c:7860
+msgid "Finish"
+msgstr "Fine"
+
+#: src/gpsdrive.c:7881
+msgid "Go up"
+msgstr "Vai su"
+
+#: src/gpsdrive.c:7884
+msgid "Go left"
+msgstr "Vai a sinistra"
+
+#: src/gpsdrive.c:7887
+msgid "Go right"
+msgstr "Vai a destra"
+
+#: src/gpsdrive.c:7890
+msgid "Go down"
+msgstr "Vai giù"
+
+#: src/gpsdrive.c:7893
+msgid "Zoom in"
+msgstr "Più grande"
+
+#: src/gpsdrive.c:7896
+msgid "Zoom out"
+msgstr "Più piccolo"
+
+#: src/gpsdrive.c:7915
+msgid "Screen X"
+msgstr "Schermo X"
+
+#: src/gpsdrive.c:7917
+msgid "Screen Y"
+msgstr "Schermo Y"
+
+#: src/gpsdrive.c:7919
+msgid "Browse waypoint"
+msgstr "Mostra i waypoint"
+
+#: src/gpsdrive.c:7950
+msgid "Browse filename"
+msgstr "Mostra i files"
+
+#: src/gpsdrive.c:8043
+msgid "GpsDrive Control"
+msgstr "Controllo GpsDrive"
+
+#: src/gpsdrive.c:8154 src/gpsdrive.c:8156 src/gpsdrive.c:8158
+#: src/gpsdrive.c:11670 src/gpsdrive.c:11672 src/gpsdrive.c:11674
+#: src/settings.c:1025
+msgid "Speed"
+msgstr "Velocità"
+
+#: src/gpsdrive.c:8375
+msgid ""
+"\n"
+"distance jump is more then 1000km/h speed, ignoring\n"
+msgstr ""
+"\n"
+"la distanza del salto è maggiore di 1000km/h, ignoro\n"
+
+#: src/gpsdrive.c:8597 src/friends.c:348
+#, fuzzy
+msgid "/Misc. Menu/Messages"
+msgstr "/ Messaggi"
+
+#: src/gpsdrive.c:8600
+#, fuzzy
+msgid "Sending message to friends server..."
+msgstr "Abilita/disabilita il friends server"
+
+#: src/gpsdrive.c:8673
+msgid "Message for:"
+msgstr "Messaggio per:"
+
+#: src/gpsdrive.c:8714
+#, c-format
+msgid "Date: %s"
+msgstr ""
+
+#: src/gpsdrive.c:8727
+msgid "Sends your text to to selected computer using the friends server"
+msgstr ""
+
+#: src/gpsdrive.c:8999
+msgid "SELECTED"
+msgstr "SELEZIONATO"
+
+#: src/gpsdrive.c:9172
+msgid "Add waypoint name"
+msgstr "Aggiungi un waypoint"
+
+#: src/gpsdrive.c:9231
+msgid " Waypoint name: "
+msgstr " Nome waypoint: "
+
+#: src/gpsdrive.c:9244
+msgid " Waypoint type: "
+msgstr " Tipo di waypoint: "
+
+#: src/gpsdrive.c:9489
+msgid "Name"
+msgstr ""
+
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/settings.c:1018
+msgid "Distance"
+msgstr "Distanza"
+
+#: src/gpsdrive.c:9499
+msgid "Please select message recipient"
+msgstr "Seleziona il destinatario del messaggio"
+
+#: src/gpsdrive.c:9568 src/gpsdrive.c:9715
+msgid "Waypoint"
+msgstr "Waypoint"
+
+#: src/gpsdrive.c:9587
+msgid "Select reference point"
+msgstr "Seleziona un punto di riferimento"
+
+#: src/gpsdrive.c:9591
+msgid "Please select your destination"
+msgstr "Seleziona la destinazione"
+
+#: src/gpsdrive.c:9620
+msgid "Edit route"
+msgstr "Edita percorso"
+
+#: src/gpsdrive.c:9622
+msgid "Create route"
+msgstr "Crea percorso"
+
+#: src/gpsdrive.c:9693
+msgid "Create a route using some waypoints from this list"
+msgstr "Seleziona un percorso utilizzando i waypoint di questa lista"
+
+#: src/gpsdrive.c:9698
+msgid "Delete the selected waypoint from the waypoint list"
+msgstr "Cancella il waypoint selezionato dalla lista  dei waypoint"
+
+#: src/gpsdrive.c:9702
+#, fuzzy
+msgid "Jump to the selected waypoint"
+msgstr ""
+"Clicca sulla lista per\n"
+"selezionare il waypoint successivo"
+
+#: src/gpsdrive.c:9729
+msgid "Define route"
+msgstr "Definisci percorso"
+
+#: src/gpsdrive.c:9737
+msgid "Start route"
+msgstr "Avvia percorso"
+
+#: src/gpsdrive.c:9746
+msgid "Take all WP as route"
+msgstr "Usa tutti i WP come percorso"
+
+#: src/gpsdrive.c:9751
+msgid "Abort route"
+msgstr "Annulla percorso"
+
+#: src/gpsdrive.c:9795
+msgid ""
+"Click on waypoints list\n"
+"to add waypoints"
+msgstr ""
+"Clicca sulla lista dei waypoint\n"
+"per aggiungere un waypoint"
+
+#: src/gpsdrive.c:9797
+msgid ""
+"Click on list item\n"
+"to select next waypoint"
+msgstr ""
+"Clicca sulla lista per\n"
+"selezionare il waypoint successivo"
+
+#: src/gpsdrive.c:9838
+msgid ""
+"Create a route from all waypoints. Sorted with order in file, not distance."
+msgstr ""
+"Crea un percorso da tutti i waypoints. Ordinato come nel file, non per "
+"distanza."
+
+#: src/gpsdrive.c:9842
+msgid ""
+"Click here to start your journey. GpsDrive guides you through the waypoints "
+"in this list."
+msgstr ""
+"Clicca qui per far partire il tuo viaggio. GpsDrive ti guida attraverso i "
+"waypoints in questa lista"
+
+#: src/gpsdrive.c:9845
+msgid "Abort your journey"
+msgstr "Annulla il viaggio"
+
+#: src/gpsdrive.c:9862
+msgid "-v    show version\n"
+msgstr "-v    visualizza la versione\n"
+
+#: src/gpsdrive.c:9863
+msgid "-h    print this help\n"
+msgstr "-h    mostra questo aiuto\n"
+
+#: src/gpsdrive.c:9864
+msgid "-d    turn on debug info\n"
+msgstr "-d    attiva info debug\n"
+
+#: src/gpsdrive.c:9865
+msgid "-D    turn on lot of debug info\n"
+msgstr "-D    attiva molte info di debug\n"
+
+#: src/gpsdrive.c:9866
+msgid "-e    use Festival-Lite (flite) for speech output\n"
+msgstr "-e    utilizza Festival-Lite (flite) per la sintesi vocale\n"
+
+#: src/gpsdrive.c:9867
+msgid "-t    set serial device for GPS i.e. /dev/ttyS1\n"
+msgstr "-t    imposta la seriale per il GPS es. /dev/ttyS1\n"
+
+#: src/gpsdrive.c:9868
+msgid "-o    serial device, pty master, or file for NMEA *output*\n"
+msgstr "-o    seriale, pty o file per l'output NMEA\n"
+
+#: src/gpsdrive.c:9869
+msgid "-f X  Select friends server, X is i.e. www.gpsdrive.cc\n"
+msgstr "-f X  Seleziona server friends, X es: www.gpsdrive.cc\n"
+
+#: src/gpsdrive.c:9870
+msgid "-n    Disable use of direct serial connection\n"
+msgstr ""
+
+#: src/gpsdrive.c:9871
+msgid ""
+"-l X  Select language of the voice,\n"
+"      X may be english, spanish or german\n"
+msgstr ""
+"-l X  Seleziona il linguaggio della voce,\n"
+"      X deve essere english, spanish o german\n"
+
+#: src/gpsdrive.c:9873
+msgid ""
+"-s X  set height of the screen, if autodetection\n"
+"      don't satisfy you, X is i.e. 768,600,480,200\n"
+msgstr ""
+"-s X  imposta l'altezza dello schermo, se il rilevamento      automatico non "
+"ti soddisfa, X = 768,600,480,200\n"
+
+#. ** Mod by Arms
+#: src/gpsdrive.c:9876
+msgid "-r X  set width of the screen, only with -s\n"
+msgstr "-r X  imposta la larghezza dello schermo, solo con -s\n"
+
+#: src/gpsdrive.c:9878
+msgid "-1    have only 1 button mouse, for example using touchscreen\n"
+msgstr "-1    utilizza solo 1 pulsante del mouse, per esempio un touchscreen\n"
+
+#: src/gpsdrive.c:9879
+msgid "-a    don't display battery status (i.e. broken APM)\n"
+msgstr ""
+"-a    non visualizza lo stato della batteria (es. APM non funzionante)\n"
+
+#: src/gpsdrive.c:9881
+msgid "-b X  Servername for NMEA server (if gpsd runs on another host)\n"
+msgstr "-b X  Servername per il server NMEA (se gpsd è su un altro host)\n"
+
+#: src/gpsdrive.c:9883
+msgid "-c X  set start position in simulation mode to waypoint name X\n"
+msgstr ""
+"-c X  imposta la posizione di partenza in modalità simulazione in un nome "
+"waypoint\n"
+
+#: src/gpsdrive.c:9884
+msgid "-x    create separate window for menu\n"
+msgstr "-x    crea finestre separate per i menu\n"
+
+#: src/gpsdrive.c:9885
+msgid "-p    set settings for PDA (iPAQ, Yopy...)\n"
+msgstr "-p    imposta i settaggi per i PDA (iPAQ, Yopy...)\n"
+
+#: src/gpsdrive.c:9887
+msgid "-i    ignore NMEA checksum (risky, only for broken GPS receivers\n"
+msgstr ""
+"-i    ignora i checksum NMEA (rischioso, solo per ricevitori GPS guasti\n"
+
+#: src/gpsdrive.c:9888
+msgid "-q    disable SQL support\n"
+msgstr "-q    disabilita il support SQL\n"
+
+#: src/gpsdrive.c:9889
+msgid "-F    force display of position even it is invalid\n"
+msgstr "-F    forza la visualizzazione della posizione anche se non valida\n"
+
+#: src/gpsdrive.c:9890
+msgid "-S    don't show splash screen\n"
+msgstr ""
+
+#: src/gpsdrive.c:9891
+msgid "-E    print out data received from direct serial connection\n"
+msgstr ""
+
+#: src/gpsdrive.c:9893
+msgid "-W x  set x to 1 to switch WAAS/EGNOS on, set to 0 to switch off\n"
+msgstr ""
+
+#: src/gpsdrive.c:9894
+msgid "-H X  correct altitude, adding this value to altitude\n"
+msgstr "-H X  corregge altitudine, aggiungendo questo valore\n"
+
+#: src/gpsdrive.c:9895
+msgid ""
+"-z    don't display zoom factor and scale\n"
+"\n"
+msgstr ""
+"-z    non visualizza zoom e scala\n"
+"\n"
+
+#: src/gpsdrive.c:10001
+msgid "Select a track file"
+msgstr "Seleziona un file traccia"
+
+#: src/gpsdrive.c:10179 src/gpskismet.c:380
+msgid "can't open socket for port "
+msgstr "non posso aprire un socket per la porta "
+
+#: src/gpsdrive.c:10200
+#, c-format
+msgid ""
+"\n"
+"Cannot connect to %s: unknown host\n"
+msgstr ""
+
+#: src/gpsdrive.c:10221
+msgid "NMEA Mode, Port 2222"
+msgstr "Modalità NMEA, porta 2222"
+
+#: src/gpsdrive.c:10230
+msgid "NMEA Mode, Port 2947"
+msgstr "Modalità NMEA, porta 2947"
+
+#: src/gpsdrive.c:10249
+msgid ""
+"\n"
+"Garmin protocol detection disabled!\n"
+msgstr ""
+"\n"
+"Rilevazione protocollo Garmin disattivata!\n"
+
+#: src/gpsdrive.c:10600
+msgid ""
+"\n"
+"libmysqlclient.so not found.\n"
+msgstr ""
+"\n"
+"libmysqlclient.so non trovata.\n"
+
+#: src/gpsdrive.c:10606
+msgid ""
+"\n"
+"MySQL support disabled.\n"
+msgstr ""
+"\n"
+"Supporto MySQL disabilitato.\n"
+
+#: src/gpsdrive.c:10783
+msgid ""
+"\n"
+"You can only choose between english, spanish and german\n"
+"\n"
+msgstr ""
+"\n"
+"Puoi scegliere solo fra inglese, spagnolo e tedesco\n"
+"\n"
+
+#: src/gpsdrive.c:10817 src/settings.c:1730
+msgid "EnterYourName"
+msgstr "Inserisci il tuo nome"
+
+#: src/gpsdrive.c:10879
+#, c-format
+msgid ""
+"\n"
+"Using proxy: %s on port %d"
+msgstr ""
+"\n"
+"Utilizzo proxy: %s e porta %d"
+
+#: src/gpsdrive.c:10883
+msgid ""
+"\n"
+"Invalid enviroment variable HTTP_PROXY, must be in format: http://proxy."
+"provider.de:3128"
+msgstr ""
+"\n"
+"Variabile d'ambiente HTTP_PROXY non valida, deve essere nel formato: http://"
+"proxy.provider.it:3128"
+
+#: src/gpsdrive.c:11073
+msgid "Gpsdrive-2 (c)2001-2004 F.Ganter"
+msgstr "Gpsdrive-2 (c)2001-2004 F.Ganter"
+
+#: src/gpsdrive.c:11081
+msgid "Using speech output"
+msgstr "Utilizza l'output vocale"
+
+#: src/gpsdrive.c:11115
+#, fuzzy
+msgid "/Misc. Menu/Maps/Map Manager"
+msgstr "/ Messaggi"
+
+#: src/gpsdrive.c:11119
+#, fuzzy
+msgid "/Misc. Menu/Waypoint Manager"
+msgstr "/ Messaggi"
+
+#. download map button
+#: src/gpsdrive.c:11123
+msgid "_Download map"
+msgstr "_Scarica mappa"
+
+#: src/gpsdrive.c:11142
+msgid "M_ute"
+msgstr "S_ilenziamento"
+
+#: src/gpsdrive.c:11152
+msgid "Use SQ_L"
+msgstr "Usa SQ_L"
+
+#: src/gpsdrive.c:11162
+msgid "Show _WP"
+msgstr "Mostra _WP"
+
+#: src/gpsdrive.c:11189
+msgid "HomeBase"
+msgstr "HomeBase"
+
+#: src/gpsdrive.c:11197
+msgid "Pos. _mode"
+msgstr "Modo _posizione"
+
+#: src/gpsdrive.c:11203
+msgid "Show _Track"
+msgstr "Mostra _traccia"
+
+#: src/gpsdrive.c:11246
+msgid "_Navigation"
+msgstr ""
+
+#: src/gpsdrive.c:11265
+msgid "Auto _best map"
+msgstr "Mappa _migliore"
+
+#: src/gpsdrive.c:11275
+msgid "Save track"
+msgstr "Salva traccia"
+
+#: src/gpsdrive.c:11286
+msgid "Shown map type"
+msgstr "Tipo mappa"
+
+#: src/gpsdrive.c:11297
+msgid "Street map"
+msgstr "Mappa stradale"
+
+#: src/gpsdrive.c:11304
+msgid "Topo map"
+msgstr "Mappa topografica"
+
+#: src/gpsdrive.c:11386
+msgid ""
+"\n"
+"kismet server found\n"
+msgstr ""
+"\n"
+"server kismet trovato\n"
+
+#: src/gpsdrive.c:11447 src/gpsdrive.c:11797
+msgid "Bearing"
+msgstr "Bearing"
+
+#: src/gpsdrive.c:11468
+#, fuzzy
+msgid "GPS Info"
+msgstr "Geo info"
+
+#: src/gpsdrive.c:11519
+msgid "Bat."
+msgstr "Bat."
+
+#: src/gpsdrive.c:11534
+msgid "TC"
+msgstr "TC "
+
+#. displays speed over ground
+#: src/gpsdrive.c:11552 src/gpsdrive.c:11807 src/gpsdrive.c:11809
+#: src/gpsdrive.c:11815 src/gpsdrive.c:11817
+msgid "---"
+msgstr "---"
+
+#: src/gpsdrive.c:11632 src/gpsdrive.c:11639
+msgid "Selected:"
+msgstr "Selezionato:"
+
+#: src/gpsdrive.c:11632 src/gpsdrive.c:11639
+msgid "within"
+msgstr "entro"
+
+#. create frames for labels
+#: src/gpsdrive.c:11647
+msgid "Distance to target"
+msgstr "Distanza dall'obiettivo"
+
+#. ** Mod by Arms
+#. if (!pdamode)
+#. gtk_box_pack_start (GTK_BOX (hbox2), frame_speed, TRUE, TRUE,
+#. 1 * PADDING);
+#: src/gpsdrive.c:11683
+msgid "Altitude"
+msgstr "Altitudine"
+
+#. ** Mod by Arms
+#. if (!pdamode)
+#. gtk_box_pack_start (GTK_BOX (hbox2), frame_altitude, FALSE, TRUE,
+#. 1 * PADDING);
+#: src/gpsdrive.c:11690 src/settings.c:681
+msgid "Waypoints"
+msgstr "Waypoints"
+
+#: src/gpsdrive.c:11794
+msgid "Map file"
+msgstr "File mappa"
+
+#: src/gpsdrive.c:11795
+msgid "Map scale"
+msgstr "Scala "
+
+#: src/gpsdrive.c:11796
+msgid "Heading"
+msgstr "Heading"
+
+#: src/gpsdrive.c:11798
+msgid "Time at Dest."
+msgstr "Arrivo in:"
+
+#: src/gpsdrive.c:11799
+msgid "Pref. scale"
+msgstr "Scala pref."
+
+#: src/gpsdrive.c:11803
+msgid "000,00000N"
+msgstr ""
+
+#: src/gpsdrive.c:11805
+msgid "000,00000E"
+msgstr ""
+
+#: src/gpsdrive.c:11811 src/gpsdrive.c:11813
+msgid "0000"
+msgstr ""
+
+#. gdk_window_lower((GdkWindow *)menuwin);
+#: src/gpsdrive.c:11886 src/gpsdrive.c:11937
+msgid "Menu"
+msgstr "Menu"
+
+#. gdk_window_lower((GdkWindow *)menuwin2);
+#: src/gpsdrive.c:11895 src/gpsdrive.c:11938
+msgid "Status"
+msgstr "Stato"
+
+#: src/gpsdrive.c:12089
+#, fuzzy
+msgid ""
+"Click here to switch betwen satetellite level and satellite position "
+"display. A rotating globe is shown in simulation mode"
+msgstr ""
+"Clicca qui per passare alla visualizzazione livello satelliti o alla "
+"posizione satelliti"
+
+#: src/gpsdrive.c:12093
+#, fuzzy
+msgid "Number of used satellites/satellites in view"
+msgstr "Non ci sono sufficienti satelliti in vista!"
+
+#: src/gpsdrive.c:12096
+msgid "EPE (Estimated Precision Error), if available"
+msgstr ""
+
+#: src/gpsdrive.c:12100
+msgid ""
+"PDOP (Position Dilution Of Precision). PDOP less than 4 gives the best "
+"accuracy, between 4 and 8 gives acceptable accuracy and greater than 8 gives "
+"unacceptable poor accuracy. "
+msgstr ""
+
+#: src/gpsdrive.c:12105
+msgid ""
+"On top of the compass you see the direction to which you move. The pointer "
+"shows the target direction on the compass."
+msgstr ""
+
+#: src/gpsdrive.c:12108
+msgid "/Misc. Menu"
+msgstr ""
+
+#: src/gpsdrive.c:12111
+msgid "Here you find extra functions for maps, tracks and messages"
+msgstr ""
+
+#: src/gpsdrive.c:12115
+msgid "Download map from Internet"
+msgstr "Scarica mappa da Internet"
+
+#: src/gpsdrive.c:12117
+msgid "Leave the program"
+msgstr "Esci dal programma"
+
+#: src/gpsdrive.c:12120
+msgid "Disable output of speech"
+msgstr "Disabilita la sintesi vocale"
+
+#: src/gpsdrive.c:12123
+msgid "Use SQL server for waypoints"
+msgstr "Usa SQL server per i waypoints"
+
+#: src/gpsdrive.c:12126
+msgid "Show waypoints on the map"
+msgstr "Mostra i waypoints sulla mappa"
+
+#: src/gpsdrive.c:12129
+msgid ""
+"Turn position mode on. You can move on the map with the left mouse button "
+"click. Clicking near the border switches to the proximate map."
+msgstr ""
+"Attiva la modalità posizione. Cliccando il tasto sinistro puoi muoverti "
+"sulla mappa. Cliccando vicino al bordo passa alla mappa più vicina."
+
+#: src/gpsdrive.c:12132
+msgid "Show tracking on the map"
+msgstr "Mostra la traccia sulla mappa"
+
+#: src/gpsdrive.c:12137
+msgid "Opens the help window"
+msgstr "Apri la finestra di aiuto"
+
+#: src/gpsdrive.c:12140
+msgid "Navigation menu. Enter here your destination."
+msgstr ""
+
+#: src/gpsdrive.c:12156
+msgid "Settings for GpsDrive"
+msgstr "Impostazioni GpsDrive"
+
+#: src/gpsdrive.c:12158
+msgid "Zoom into the current map"
+msgstr "Ingrandisci la mappa corrente"
+
+#: src/gpsdrive.c:12160
+msgid "Zooms out off the current map"
+msgstr "Rimpicciolisci la mappa corrente"
+
+#: src/gpsdrive.c:12162
+msgid "Select the next more detailed map"
+msgstr "Seleziona una mappa più dettagliata"
+
+#: src/gpsdrive.c:12164
+msgid "Select the next less detailed map"
+msgstr "Seleziona una mappa meno dettagliata"
+
+#: src/gpsdrive.c:12169
+msgid "Select here a destination from the waypoint list"
+msgstr "Seleziona una destinazione dalla lista dei waypoint"
+
+#: src/gpsdrive.c:12173
+msgid "Select the map scale of avail. maps."
+msgstr "Seleziona la scala delle mappe disponibili"
+
+#: src/gpsdrive.c:12178
+msgid "Always select the most detailed map available"
+msgstr "Mostra sempre la mappa più dettagliata disponibile"
+
+#: src/gpsdrive.c:12181
+msgid "Save the track to given filename at program exit"
+msgstr "Salva la traccia con un nome all'uscita dal programma"
+
+#: src/gpsdrive.c:12187
+msgid "Number of waypoints selected from SQL server"
+msgstr "Numero di waypoints selezionati dal server SQL"
+
+#: src/gpsdrive.c:12191
+msgid "Number of selected waypoints, which are in range"
+msgstr "Numero di waypoints selezionati che sono nel range"
+
+#: src/gpsdrive.c:12195
+msgid "Range for waypoint selection in kilometers"
+msgstr "Range per la selezione di waypoint in kilometri"
+
+#: src/gpsdrive.c:12198
+msgid "This shows the time from your GPS receiver"
+msgstr "Questo mostra il tempo del tuo ricevitore GPS"
+
+#: src/gpsdrive.c:12201
+#, fuzzy
+msgid ""
+"Number of mobile targets within timeframe/total received from friendsserver"
+msgstr "Numero di waypoints selezionati dal server SQL"
+
+#: src/gpsdrive.c:12275
+msgid ""
+"\n"
+"\n"
+"Thank you for using GpsDrive!\n"
+"\n"
+msgstr ""
+"\n"
+"\n"
+"Grazie per aver utilizzato GpsDrive!\n"
+"\n"
+
+#: src/splash.c:543
+#, fuzzy
+msgid "GpsDrive v"
+msgstr "Aiuto GpsDrive"
+
+#: src/splash.c:549
+#, fuzzy
+msgid ""
+"\n"
+"\n"
+"You find new versions on http://www.gpsdrive.cc\n"
+msgstr " http://www.gpsdrive.cc "
+
+#: src/splash.c:553
+msgid ""
+"Disclaimer: Please do not use for navigation. \n"
+"\n"
+msgstr "Avvertenza: Non usare per la navigazione. \n"
+
+#: src/splash.c:558
+#, fuzzy
+msgid "Please have a look into the manpage (man gpsdrive) for program details!"
+msgstr "Guarda il manpage per dettagli del programma\n"
+
+#: src/splash.c:563
+msgid "Mouse control (clicking on the map):\n"
+msgstr "Controllo mouse (cliccando sulla mappa):\n"
+
+#: src/splash.c:569
+msgid ""
+"Left mouse button         : Set position (usefull in simulation mode)\n"
+"Right mouse button        : Set target directly on the map\n"
+"Middle mouse button       : Display position again\n"
+"Shift left mouse button   : smaller map\n"
+"Shift right mouse button  : larger map\n"
+"Control left mouse button : Set a waypoint (mouse position) on the map\n"
+"Control right mouse button: Set a waypoint at current position on the map\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:577
+msgid ""
+"j    : switch to next waypoint in route mode\n"
+"x    : add waypoint at current position\n"
+"y    : add waypoint at mouse cursor position\n"
+msgstr ""
+
+#: src/splash.c:583
+msgid "Short cuts:\n"
+msgstr "Scorciatoie:\n"
+
+#: src/splash.c:590
+msgid "The other key shortcuts are marked as "
+msgstr "Gli altri shortcuts sono marcati come "
+
+#: src/splash.c:591
+msgid "underlined"
+msgstr "sottolineato"
+
+#: src/splash.c:593
+msgid " letters in the button text.\n"
+msgstr ""
+
+#: src/splash.c:596
+#, fuzzy
+msgid ""
+"Press the underlined key together with the ALT-key.\n"
+"\n"
+"You can move on the map by selecting the Position-Mode in the menu. A blue "
+"rectangle shows this mode, you can set this cursor by clicking on the map. "
+"If you click on the border of the map (the outer 20%) then the map switches "
+"to the next area.\n"
+"\n"
+"Suggestions welcome.\n"
+"\n"
+msgstr ""
+" nel menu. Un rettangolo blu mostra questa moalità, puoi settare questo "
+"cursore cliccando sulla mappa. Se clicchi sul bordo della mappa (il 20% "
+"esterno) la mappa passerà all'area successiva."
+
+#: src/splash.c:603
+msgid "Have a lot of fun!"
+msgstr "Buon divertimento!"
+
+#: src/splash.c:734
+msgid "Please donate to GpsDrive"
+msgstr "Per favore, fai una donazione a GpsDrive"
+
+#: src/splash.c:740
+#, fuzzy
+msgid ""
+"\n"
+"\n"
+"GpsDrive is a project with no comercial background. \n"
+"\n"
+"It would be nice if you can give a donation to help me pay the costs for "
+"hardware and the webserver.\n"
+"\n"
+"To do so, just go to"
+msgstr ""
+"Sarebbe bello se tu potessi fare una donazione per aiutarmi a sostenere i "
+"costi per l'hardware e per il mantenimento del webserver.\n"
+"\n"
+
+#: src/splash.c:744
+msgid " http://www.gpsdrive.cc "
+msgstr " http://www.gpsdrive.cc "
+
+#: src/splash.c:747
+#, fuzzy
+msgid ""
+"and click on the PayPal button.\n"
+"\n"
+"Thank you very much for your donation!\n"
+"\n"
+"This message is only displayed once when you start an new version of "
+"GpsDrive.\n"
+"\n"
+msgstr ""
+"Questo messaggio è visualizzato solamente quando avvii una versione nuova di "
+"GpsDrive.\n"
+"\n"
+
+#: src/splash.c:780
+msgid "About GpsDrive donation"
+msgstr "Informazioni sulla donazione a GpsDrive"
+
+#: src/splash.c:859
+msgid "From:"
+msgstr "Da:"
+
+#: src/splash.c:928
+#, fuzzy, c-format
+msgid ""
+"You received a message from\n"
+"the friends server (%s)\n"
+msgstr ""
+"Hai ricevuto un messaggio dal friends server da:\n"
+"\n"
+
+#: src/splash.c:938
+#, fuzzy
+msgid "You received a message through the friends server from:\n"
+msgstr ""
+"Hai ricevuto un messaggio dal friends server da:\n"
+"\n"
+
+#: src/splash.c:948
+msgid "Message text:\n"
+msgstr " Messaggio di testo:\n"
+
+#: src/splash.c:1004
+msgid "Error saving config file ~/.gpsdrive/gpsdriverc"
+msgstr "Errore durante il salvataggio del file ~/.gpsdrive/gpsdriverc"
+
+#: src/splash.c:1519 src/splash.c:1578
+msgid ""
+"\n"
+"Warning: unable to open splash picture\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+"\n"
+"Attenzione: non posso aprire l'immagine di splash\n"
+"Installa il programma come utente root, con:\n"
+"make install\n"
+"\n"
+
+#: src/splash.c:1562
+msgid "About GpsDrive"
+msgstr " Informazioni su GpsDrive"
+
+#: src/settings.c:438
+msgid "Setting WP label font"
+msgstr "Setta il font per le etichette WP"
+
+#: src/settings.c:440
+msgid "Setting big display font"
+msgstr "Setta i font grandi"
+
+#: src/settings.c:507
+msgid "Setting big display color"
+msgstr "Setta display grande"
+
+#: src/settings.c:545
+#, fuzzy
+msgid "Setting track color"
+msgstr "Setta display grande"
+
+#: src/settings.c:587
+#, fuzzy
+msgid "Setting friends label color"
+msgstr "Setta display grande"
+
+#: src/settings.c:668
+msgid ""
+"Don't use more than\n"
+"100 waypoint(way*.txt) files!"
+msgstr ""
+"Non utilizzare più di\n"
+"100 files waypoint!(way*.txt)"
+
+#: src/settings.c:679
+msgid "Waypoint files to use"
+msgstr "File waypoint da utilizzare"
+
+#: src/settings.c:704 src/settings.c:709
+msgid "Settings"
+msgstr "Settaggi"
+
+#. misc area
+#: src/settings.c:716
+msgid "Misc settings"
+msgstr "Settaggi vari"
+
+#: src/settings.c:720
+msgid "Show Shadows"
+msgstr "Mostra ombre"
+
+#: src/settings.c:727
+msgid "Etched frames"
+msgstr "Etched frames"
+
+#: src/settings.c:735
+msgid "Simulation: Follow target"
+msgstr "Simulazione: Segui obiettivo"
+
+#: src/settings.c:742
+msgid "Maximum CPU load"
+msgstr "Massimo carico CPU"
+
+#: src/settings.c:752
+#, fuzzy
+msgid "Track"
+msgstr "Mostra _traccia"
+
+#: src/settings.c:767
+msgid "Maps directory"
+msgstr "Directory mappe"
+
+#: src/settings.c:773
+msgid "Automatic"
+msgstr "Automatico"
+
+#: src/settings.c:779
+msgid "On"
+msgstr "On"
+
+#: src/settings.c:784
+msgid "Off"
+msgstr "Off"
+
+#. gtk_table_attach_defaults (GTK_TABLE (misctable), label2, 0, 2, 3, 4);
+#. gtk_table_attach_defaults (GTK_TABLE (misctable), mapdirbt, 0, 2, 4, 5);
+#. GPS settings area
+#: src/settings.c:808
+msgid "GPS settings"
+msgstr "Settaggi GPS"
+
+#. gtk_container_add (GTK_CONTAINER (f4), gpstable);
+#: src/settings.c:822
+msgid "Test for GARMIN"
+msgstr "Test per GARMIN"
+
+#: src/settings.c:833
+msgid "Use DGPS-IP"
+msgstr "Usa DGPS-IP"
+
+#: src/settings.c:843
+msgid "GPS is Earthmate"
+msgstr "Il GPS è un Earthmate"
+
+#: src/settings.c:853
+msgid "Use serial conn."
+msgstr ""
+
+#: src/settings.c:868
+msgid "Interface"
+msgstr "Interfaccia"
+
+#: src/settings.c:869
+msgid "Baudrate"
+msgstr ""
+
+#. units area
+#: src/settings.c:904
+msgid "Units"
+msgstr "Unità"
+
+#: src/settings.c:910
+msgid "Miles"
+msgstr "Miglia"
+
+#: src/settings.c:915
+msgid "Metric"
+msgstr "Sistema metrico"
+
+#: src/settings.c:920 src/nautic.c:106
+msgid "Nautic"
+msgstr "Miglia nautiche"
+
+#: src/settings.c:930
+msgid "Decimal position"
+msgstr "Posizione decimale"
+
+#. gtk_box_pack_start (GTK_BOX (v2), miles, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), metric, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), nautic, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), minsecbt, TRUE, FALSE, 2 * PADDING);
+#.
+#. default download server
+#: src/settings.c:948
+msgid "Default map server"
+msgstr "Server mappe predefinito"
+
+#. Night light mode
+#: src/settings.c:981
+msgid "Night light mode"
+msgstr "Modalità luce notturna"
+
+#.  gtk_table_attach_defaults (GTK_TABLE (table), f5, 0, 2, 2, 3);
+#. Sound settings
+#: src/settings.c:999
+#, fuzzy
+msgid "Speech output settings"
+msgstr "Settaggi aereonautici"
+
+#.
+#. set following sounds
+#. sound_direction ... say direction to target
+#. sound_distance  ... say distance to target
+#. sound_speed     ... say your current speed
+#. sound_gps       ... say GPS status
+#.
+#.
+#: src/settings.c:1011
+msgid "Direction"
+msgstr ""
+
+#: src/settings.c:1032
+#, fuzzy
+msgid "GPS Status"
+msgstr "Stato"
+
+#: src/settings.c:1046
+msgid "Switch on for speech output of the direction to the target"
+msgstr ""
+
+#: src/settings.c:1051
+msgid "Switch on for speech output of the distance to the target"
+msgstr ""
+
+#: src/settings.c:1056
+msgid "Switch on for speech output of your current speed"
+msgstr ""
+
+#: src/settings.c:1061
+msgid "Switch on for speech output of the status of your GPS signal"
+msgstr ""
+
+#. Font settings
+#: src/settings.c:1066
+#, fuzzy
+msgid "Font and color settings"
+msgstr "Settaggi font"
+
+#. gtk_box_pack_start (GTK_BOX (h1), f5, TRUE, FALSE, 2 * PADDING);
+#: src/settings.c:1071
+msgid "WP Label"
+msgstr "Etichetta WP"
+
+#: src/settings.c:1072
+msgid "Big display"
+msgstr "Schermo grande"
+
+#: src/settings.c:1073
+msgid "Display color"
+msgstr "Schermo a colori"
+
+#: src/settings.c:1101
+msgid "Switch units to statute miles"
+msgstr "Utilizza miglia"
+
+#: src/settings.c:1103
+msgid "Switch units to nautical miles"
+msgstr "Utilizza miglia nautiche"
+
+#: src/settings.c:1105
+msgid "Switch units to metric system (Kilometers)"
+msgstr "Utilizza il sistema metrico (Kilometri)"
+
+#: src/settings.c:1110
+msgid ""
+"If selected display latitude and longitude in decimal degrees, otherwise in "
+"degree, minutes and seconds notation"
+msgstr ""
+"Se selezionato, mostra lalitudine e longitudine in gradi decimali altrimenti "
+"nella notazione gradi, minuti, secondi"
+
+#: src/settings.c:1115
+#, fuzzy
+msgid ""
+"Set the german expedia server(expedia.de) as default download server. Use "
+"this if you are in Europe"
+msgstr "Imposta Expedia come server predefinito"
+
+#: src/settings.c:1119
+msgid "Set Expedia as default download server"
+msgstr "Imposta Expedia come server predefinito"
+
+#: src/settings.c:1122
+msgid "Switches shadows on map on or off"
+msgstr "Attiva o disattiva le ombre sulla mappa"
+
+#: src/settings.c:1126
+msgid "Switches between different type of frame ornaments"
+msgstr "Passa fra differenti tipi di ornamenti della cornice"
+
+#: src/settings.c:1131
+#, c-format
+msgid ""
+"Select the approx. maximum CPU load, use 20-30% on notebooks while on "
+"battery to save battery power. This effects the refresh rate of the map "
+"screen"
+msgstr ""
+"Seleziona approssimativamente il massimo carico CPU, utilizza 20-30% su "
+"notebooks per risparmiare la batteria. Questa impostazione ha effetto sull' "
+"aggiornamento della mappa a video"
+
+#: src/settings.c:1136
+msgid "If activated, pointer moves to target in simulation mode"
+msgstr ""
+"Se attivato, il puntatore si sposta sull'obiettivo nella modalità simulazione"
+
+#: src/settings.c:1140
+msgid "Set here the color of the drawn track"
+msgstr ""
+
+#: src/settings.c:1144
+msgid ""
+"Path to your map files. In the specified directory also the index file "
+"map_koord.txt must be present."
+msgstr ""
+"Percorso dei files mappe. Nella directory specificata deve essere presente "
+"anche il file map_koord.txt."
+
+#: src/settings.c:1149
+msgid ""
+"If selected, gpsdrive try to use GARMIN mode if possible. Unselect if you "
+"only have a NMEA device."
+msgstr ""
+"Se selezionato, gpsdrive tenta di utilizzare la modalità GARMIN se "
+"possibile. Non selezionarlo se hai una unità NMEA."
+
+#: src/settings.c:1154
+msgid ""
+"Set here the baud rate of your GPS device, NMEA devices usually have a speed "
+"of 4800 baud"
+msgstr ""
+
+#: src/settings.c:1159
+msgid ""
+"If selected, gpsdrive try to use differential GPS over IP. You must have an "
+"internet connection and a DGPS capable GPS receiver. Works only in NMEA mode!"
+msgstr ""
+"Se selezionato, gpsdrive tenta di utilizzare il GPS differenziale over IP. "
+"Devi avere una connessione ad internet e un ricevitore GPS DGPS. Funziona "
+"solo in modalità NMEA!"
+
+#: src/settings.c:1164
+msgid ""
+"Select this if you have a DeLorme Earthmate GPS receiver. The StartGPSD "
+"button will provide gpsd with the needed additional parameters"
+msgstr ""
+"Seleziona questo se hai un GPS DeLorme Earthmate. Il pulsante Avvia "
+"GPSDavvierà gpsd con i parametri necessari"
+
+#: src/settings.c:1169
+msgid ""
+"Select this if you want to use of the direct serial connection. If disabled, "
+"you can use the receiver only through gpsd. On the other hand, the direct "
+"serial connection needs no gpsd running and detects the working receiver on "
+"startup"
+msgstr ""
+
+#: src/settings.c:1174
+msgid "Specify the serial interface where the GPS is connected"
+msgstr "Specifica la porta seriale a cui è collegato il GPS"
+
+#: src/settings.c:1179
+msgid ""
+"Switches automagically to night mode if it is dark outside. Press 'N' key to "
+"turn off nightmode."
+msgstr ""
+"Passa automaticamente alla modalità notturna quando è buio. Premi il tasto "
+"'N' per uscire dalla modalità notturna."
+
+#: src/settings.c:1183
+msgid "Switches night mode on. Press 'N' key to turn off nightmode."
+msgstr ""
+"Attiva la modalità notturna. Premi il tasto 'N' per uscire dalla modalità "
+"notturna."
+
+#: src/settings.c:1186
+msgid "Switches night mode off"
+msgstr "Disattiva la modalità notturna"
+
+#: src/settings.c:1190
+msgid "Here you can set the font for the waypoint labels"
+msgstr "Qui puoi impostare i font delle etichette waypoint"
+
+#: src/settings.c:1195
+msgid "Here you can set the font for the big display for Speed and Distance"
+msgstr ""
+"Qui puoi impostare il font per la visualizzazione di Velocità e Distanza"
+
+#: src/settings.c:1199
+#, fuzzy
+msgid ""
+"Here you can set the color for the big display for speed, distance and "
+"altitude"
+msgstr ""
+"Qui puoi impostare il font per la visualizzazione di Velocità e Distanza"
+
+#: src/settings.c:1377
+msgid "Geo information"
+msgstr "Informazioni geografiche"
+
+#: src/settings.c:1379
+msgid "Geo info"
+msgstr "Geo info"
+
+#: src/settings.c:1390
+msgid "Sunrise"
+msgstr "Alba"
+
+#: src/settings.c:1392
+msgid "Sunset"
+msgstr "Tramonto"
+
+#: src/settings.c:1395
+msgid "Standard"
+msgstr "Standard"
+
+#: src/settings.c:1397
+msgid "Transit"
+msgstr "Transito"
+
+#: src/settings.c:1399
+msgid "GPS-Time"
+msgstr "Tempo-GPS"
+
+#: src/settings.c:1401
+msgid "Astro."
+msgstr "Astro."
+
+#: src/settings.c:1403
+msgid "Naut."
+msgstr "Naut."
+
+#: src/settings.c:1405
+msgid "Civil"
+msgstr "Civile"
+
+#: src/settings.c:1407
+msgid "Timezone"
+msgstr "Timezone"
+
+#: src/settings.c:1409
+msgid "Store TZ"
+msgstr ""
+
+#: src/settings.c:1419
+msgid ""
+"If selected, the timezone is stored, otherwise your actual timezone will "
+"automatically used"
+msgstr ""
+
+#: src/settings.c:1453
+msgid "Night"
+msgstr "Notte"
+
+#: src/settings.c:1455
+msgid "Day"
+msgstr "Giorno"
+
+#: src/settings.c:1592 src/settings.c:1594 src/settings.c:1597
+msgid "Unit:"
+msgstr "Unità:"
+
+#: src/settings.c:1592
+msgid "miles"
+msgstr "miglia"
+
+#: src/settings.c:1595
+msgid "nautic miles/knots"
+msgstr "miglia nautiche/nodi"
+
+#: src/settings.c:1597
+msgid "kilometers"
+msgstr "kilometri"
+
+#: src/settings.c:1612
+msgid "Trip information"
+msgstr "Informazioni percorso"
+
+#: src/settings.c:1614
+msgid "Trip info"
+msgstr "Info percorso"
+
+#: src/settings.c:1628
+msgid "Odometer"
+msgstr "Odometro"
+
+#: src/settings.c:1630
+msgid "Total time"
+msgstr "Tempo totale"
+
+#: src/settings.c:1632
+msgid "Av. speed"
+msgstr "Vel. media"
+
+#: src/settings.c:1634
+msgid "Max. speed"
+msgstr "Vel. max"
+
+#: src/settings.c:1658
+msgid "Reset"
+msgstr "Reset"
+
+#: src/settings.c:1663
+msgid "Resets the trip values to zero"
+msgstr "Resetta l'odometro a zero"
+
+#: src/settings.c:1732
+msgid "You should change your name in the first field!"
+msgstr "Devi cambiare il tuo nome del primo campo!"
+
+#: src/settings.c:1918
+msgid "Show position newer as"
+msgstr "Mostra posizione più nuova di"
+
+#: src/settings.c:1920
+msgid "Friends server setup"
+msgstr "Settaggi friends server"
+
+#: src/settings.c:1921
+msgid "Friends"
+msgstr "Friends"
+
+#: src/settings.c:1933
+msgid "Days"
+msgstr "Giorni"
+
+#: src/settings.c:1934
+msgid "Hours"
+msgstr "Ore"
+
+#: src/settings.c:1935
+msgid "Minutes"
+msgstr "Minuti"
+
+#: src/settings.c:1941
+msgid "Your name"
+msgstr "Tuo nome"
+
+#: src/settings.c:1946
+msgid ""
+"Set here your name which should be shown near your vehicle. You may use "
+"spaces here!"
+msgstr ""
+"Imposta qui il nome che vuoi che sia mostrato accanto al tuo veicolo. Puoi "
+"utilizzare gli spazi qui!"
+
+#: src/settings.c:1958
+msgid "Server name"
+msgstr "Nome server"
+
+#: src/settings.c:1963
+msgid ""
+"Set here the full qualified host name (i.e. www.gpsdrive.cc) of your friends "
+"server, then you have to press the \"Lookup\" button!"
+msgstr ""
+"Setta qui il full qualified name (es: www.gpsdrive.cc) del tuo friends "
+"server, poi premi il pulsante \"Lookup\"!"
+
+#: src/settings.c:1972
+msgid "Lookup"
+msgstr "Lookup"
+
+#: src/settings.c:1980
+msgid ""
+"You have to press the \"Lookup\" button to resolve the friends server name!"
+msgstr ""
+"Devi premere il pulsante \"Lookup\" per risolvere il nome del friends server!"
+
+#: src/settings.c:1991
+msgid "Set here the color of the label displayed at friends position"
+msgstr ""
+
+#: src/settings.c:1997
+msgid "Friends server IP"
+msgstr "IP del friends server"
+
+#: src/settings.c:2002
+msgid ""
+"Set here the IP adress (i.e. 127.0.0.1) if you don't set the hostname above"
+msgstr ""
+"Imposta qui l'indirizzo IP (es: 127.0.0.1) se non hai impostato l'hostname "
+"sopra"
+
+#: src/settings.c:2007 src/settings.c:2012 src/settings.c:2016
+msgid ""
+"Set here the time limit in which the friends position is shown. Older "
+"positions are not shown."
+msgstr ""
+"Imposta il tempo limite nel quale la posizione viene mostrata. Le posizioni "
+"vecchie non sono mostrate"
+
+#: src/settings.c:2028
+msgid "Use friends server"
+msgstr "Utilizza friends server"
+
+#: src/settings.c:2036
+msgid ""
+"Enable/disable use of friends server. You must enter a Username, don't use "
+"the default name!"
+msgstr ""
+"Ebilita/disabilita l'utilizzo del friends server. Devi inserire un nome "
+"utente, non utilizzare il nome di default!"
+
+#: src/settings.c:2039
+msgid ""
+"If you enable the friendsserver mode,\n"
+"<span color=\"red\">everyone</span> using the same server\n"
+"can see your position!"
+msgstr ""
+"Se abiliti la modalità friendserver,\n"
+"<span color=\"red\">tutti</span> quelli che utilizzeranno lo \n"
+"stesso server, potranno vedere la tua posizione!"
+
+#: src/settings.c:2094
+msgid "SQL selection criterias"
+msgstr "SQL criteri di selezione"
+
+#: src/settings.c:2095
+msgid "SQL"
+msgstr "SQL"
+
+#: src/settings.c:2121
+msgid "Dist. limit[km] "
+msgstr "Dist. limite[km]"
+
+#: src/settings.c:2126
+msgid "If enabled, show waypoints only within this distance"
+msgstr "Se abilitato, mostra i waypoint solo in questa distanza"
+
+#: src/settings.c:2142
+msgid "Enable/disable distance selection"
+msgstr "Abilita/disabilita selezione distanza"
+
+#: src/settings.c:2151
+#, fuzzy
+msgid "Show no_ssid "
+msgstr "Mostra _WP"
+
+#: src/settings.c:2162
+msgid ""
+"If enabled, WLANs with no SSID are shown, because this is perhaps useless, "
+"you can disable it here"
+msgstr ""
+
+#: src/settings.c:2168
+msgid "Selection mode"
+msgstr "Selezione modalità"
+
+#: src/settings.c:2170
+msgid "include"
+msgstr "includi"
+
+#: src/settings.c:2173
+msgid "exclude"
+msgstr "escludi"
+
+#: src/settings.c:2177
+msgid ""
+"Show only waypoints where the type field contains one of the selected words"
+msgstr ""
+"Mostra solo waypoint dove il campo del tipo contiene una delle parole "
+"selezionate"
+
+#: src/settings.c:2181
+msgid ""
+"Show only waypoints where the type field doesn't contain any the selected "
+"words"
+msgstr ""
+"Mostra solo waypoint dove il campo del tipo non contiene una delle parole "
+"selezionate"
+
+#: src/fly.c:149
+msgid "Aeronautical settings"
+msgstr "Settaggi aereonautici"
+
+#: src/fly.c:151
+msgid "Fly"
+msgstr "Volo"
+
+#: src/fly.c:158
+msgid "Plane mode"
+msgstr "Modalità aereo"
+
+#: src/fly.c:165
+msgid "Use VFR"
+msgstr "Usa VFR"
+
+#: src/fly.c:171
+msgid "Use IFR"
+msgstr "Usa IFR"
+
+#: src/fly.c:181
+msgid "max. horizontal deviation "
+msgstr "max deviazione orizzontale"
+
+#: src/fly.c:183
+msgid "max. vertical deviation "
+msgstr "Max deviazione verticale"
+
+#: src/fly.c:198
+msgid "disable vert. deviation warning above 5000ft MSL"
+msgstr "disabilita allarme deviazione vert. sotto i 5000ft MSL"
+
+#: src/nautic.c:103
+msgid "Nautic settings"
+msgstr "Settaggi nautici"
+
+#. if (debug)
+#: src/gpssql.c:215
+#, c-format
+msgid ""
+"\n"
+"SQL: connected to %s as %s using %s\n"
+msgstr ""
+"\n"
+"SQL: connesso a %s come %s usando %s\n"
+
+#: src/gpssql.c:278
+#, c-format
+msgid "rows inserted: %d\n"
+msgstr "righe inserite: %d\n"
+
+#: src/gpssql.c:293
+#, c-format
+msgid "last index: %d\n"
+msgstr "ultimo indice: %d\n"
+
+#: src/gpssql.c:314
+#, c-format
+msgid "rows deleted: %d\n"
+msgstr "righe cancellate: %d\n"
+
+#: src/gpssql.c:366 src/gpssql.c:372
+#, c-format
+msgid "Loaded user defined icon %s\n"
+msgstr ""
+
+#: src/gpssql.c:455
+#, c-format
+msgid "%d(%d) rows read in %.2f seconds\n"
+msgstr "%d(%d) righe lette in %.2f secondi\n"
+
+#: src/friends.c:363
+msgid "unknown"
+msgstr "sconosciuto"
+
+#: src/friendsd.c:472
+msgid "server: please don't run me as root\n"
+msgstr ""
+
+#: src/friendsd.c:484
+#, c-format
+msgid ""
+"\n"
+"Usage:\n"
+"   %s -n servername\n"
+"provides a name for your server\n"
+msgstr ""
+
+#: src/gpsnasamap.c:189
+#, c-format
+msgid "could not create output map file %s!\n"
+msgstr ""
+
+#. g_signal_connect (window, "destroy",
+#. G_CALLBACK (gtk_widget_destroyed), &window);
+#: src/gpsnasamap.c:204
+msgid "Creating map..."
+msgstr ""
+
+#: src/gpsnasamap.c:212
+msgid "Creating a temporary map from NASA satellite images"
+msgstr ""
+
+#: src/gpsnasamap.c:219
+#, c-format
+msgid "converting map for latitude: %f and longitude: %f ...\n"
+msgstr ""
+
+#: src/gpsnasamap.c:324
+msgid ""
+"\n"
+"You can permanently add this map file with following line in your\n"
+"map_koord.txt (rename the file!):\n"
+msgstr ""
+
+#: src/gpsserial.c:252
+msgid "waiting for thread to stop\n"
+msgstr ""
+
+#: src/gpsserial.c:275
+#, c-format
+msgid ""
+"\n"
+"error opening %s(%d)\n"
+msgstr ""
+
+#: src/gpsserial.c:278
+#, c-format
+msgid "successfull opened %s\n"
+msgstr ""
+
+#: src/gpsserial.c:284
+msgid "switching WAAS/EGNOS on\n"
+msgstr ""
+
+#: src/gpsserial.c:290
+msgid "switching WAAS/EGNOS off\n"
+msgstr ""
+
+#~ msgid "Set Mapblast as default download server"
+#~ msgstr "Imposta Mapblast come server predefinito"
+
+#~ msgid "Enable?"
+#~ msgstr "Abilito?"
+
+#~ msgid "Sat level"
+#~ msgstr "Liv. Sat"
+
+#, fuzzy
+#~ msgid "Simulation"
+#~ msgstr "Modalità simulazione"
+
+#, fuzzy
+#~ msgid "Sim.mode"
+#~ msgstr "Modalità simulazione"
+
+#~ msgid "Yes, please start gpsd"
+#~ msgstr "Si, avvia gpsd"
+
+#~ msgid "No, start simulation"
+#~ msgstr "No, avvia la simulazione"
+
+#~ msgid ""
+#~ "Neither gpsd nor GARMIN device detected!\n"
+#~ "Should I start gpsd (NMEA mode) for you?"
+#~ msgstr ""
+#~ "Non ho rilevato nessuna periferica GARMIN o gpsd!\n"
+#~ "Devo avviare gpsd? (modalità NMEA)"
+
+#~ msgid "-n X  Select display name on friends server, X is i.e. Fritz\n"
+#~ msgstr "-n X  Seleziona un nome sul friends server, es: Fritz\n"
+
+#~ msgid ""
+#~ "\n"
+#~ "This parameter is obsolet, use settings menu\n"
+#~ msgstr ""
+#~ "\n"
+#~ "Questo parametro è obsoleto, usa il menu settaggi\n"
+
+#~ msgid "UTC "
+#~ msgstr "UTC "
+
+#, fuzzy
+#~ msgid "Your friendsserver: %s"
+#~ msgstr "Utilizza friends server"
+
+#~ msgid "Cancel"
+#~ msgstr "Annulla"
+
+#, fuzzy
+#~ msgid "/Misc. Menu/Maps"
+#~ msgstr "/ Messaggi"
+
+#~ msgid "Import"
+#~ msgstr "Importa"
+
+#~ msgid "Let you import and calibrate your own map"
+#~ msgstr "Importa e calibra la tua mappa"
+
+#~ msgid ""
+#~ "Left mouse button         : Set position (usefull in simulation mode)\n"
+#~ msgstr ""
+#~ "Pulsante sinistro mouse   : Setta la posizione (utile in modalità "
+#~ "simulazione)\n"
+
+#~ msgid "Right mouse button        : Set target directly on the map\n"
+#~ msgstr ""
+#~ "Pulsante destro mouse     : Setta l'obiettivo direttamente sulla mappa\n"
+
+#~ msgid "Middle mouse button       : Display position again\n"
+#~ msgstr "Pulsante centrale mouse   : Visualizza la posizione\n"
+
+#~ msgid "Shift left mouse button   : smaller map\n"
+#~ msgstr "Shift + pulsante mouse sx : mappa più piccola\n"
+
+#~ msgid "Shift right mouse button  : larger map\n"
+#~ msgstr "Shift + pulsante mouse dx : Mappa più grande\n"
+
+#~ msgid ""
+#~ "Control left mouse button : Set a waypoint (mouse position) on the map\n"
+#~ msgstr ""
+#~ "Ctrl + pulsante mouse sx  : Imposta un waypoint (posizione mouse) sulla "
+#~ "mappa\n"
+
+#~ msgid ""
+#~ "Control right mouse button: Set a waypoint at current position on the "
+#~ "map\n"
+#~ "\n"
+#~ msgstr ""
+#~ "Ctrl + pulsante mouse dx  : Imposta un waypoint alla posizione corrente "
+#~ "sulla mappa\n"
+#~ "\n"
+
+#~ msgid "j    : switch to next waypoint in route mode\n"
+#~ msgstr "j    : passa al waypoint successivo in modalità waypoint\n"
+
+#~ msgid "x    : add waypoint at current position\n"
+#~ msgstr "x    : aggiungi un waypoint alla posizione corrente\n"
+
+#~ msgid ""
+#~ "y    : add waypoint at mouse cursor position\n"
+#~ "\n"
+#~ msgstr ""
+#~ "y   : aggiungi un waypoint alla posizione corrente\n"
+#~ "\n"
+
+#~ msgid ""
+#~ " letter in the button text. Press the underlined key together with the "
+#~ msgstr " lettera nel pulsante. Premi il tasto sottolineato con il "
+
+#~ msgid "ALT-key"
+#~ msgstr "tasto ALT"
+
+#~ msgid "."
+#~ msgstr "."
+
+#~ msgid "You can move on the map by selecting the "
+#~ msgstr "Puoi muoverti nella mappa selezionando "
+
+#~ msgid "Position-Mode"
+#~ msgstr "Modo posizione"
+
+#~ msgid ""
+#~ "Suggestions welcome!\n"
+#~ "\n"
+#~ msgstr ""
+#~ "Sono benvenuti i suggerimenti!\n"
+#~ "\n"
+
+#~ msgid ""
+#~ "\n"
+#~ "\n"
+#~ "GpsDrive is a project with no comercial background. \n"
+#~ "\n"
+#~ msgstr ""
+#~ "\n"
+#~ "\n"
+#~ "GpsDrive è un progetto senza fini commerciali. \n"
+#~ "\n"
+
+#~ msgid "To do so, just go to"
+#~ msgstr "Per farlo, vai su"
+
+#~ msgid "and click on the"
+#~ msgstr "e clicca su"
+
+#~ msgid " PayPal "
+#~ msgstr " PayPal "
+
+#~ msgid ""
+#~ "button.\n"
+#~ "\n"
+#~ msgstr ".\n"
+
+#~ msgid ""
+#~ "Thank you very much for your donation!\n"
+#~ "\n"
+#~ msgstr ""
+#~ "Grazie mille per la tua donazione!\n"
+#~ "\n"
+
+#~ msgid "/ File"
+#~ msgstr "/ File"
+
+#~ msgid "/ File/Quit"
+#~ msgstr "/ File/Esci"
+
+#~ msgid "/ Help"
+#~ msgstr "/ Aiuto"
+
+#~ msgid "Load and display a previous stored track file"
+#~ msgstr "Carica e visualizza una traccia precedentemente salvata"
+
+#~ msgid "Font3"
+#~ msgstr "Font3"
+
+#~ msgid "Distance to "
+#~ msgstr "Distanza a "
+
+#, fuzzy
+#~ msgid "Sel:"
+#~ msgstr "Selezionato:"
+
+#~ msgid "Time"
+#~ msgstr "Tempo"
+
+#~ msgid "Friendsicon loaded"
+#~ msgstr "Friendsicon caricato"
+
+#~ msgid "Menu window"
+#~ msgstr "Finestra di menu"
+
+#~ msgid "Status window"
+#~ msgstr "Finestra di stato"
+
+#, fuzzy
+#~ msgid "can't open socket for friendsserver "
+#~ msgstr "non posso aprire un socket per la porta "
+
+#~ msgid "Slow CPU"
+#~ msgstr "CPU lenta"
+
+#~ msgid ""
+#~ "Select, if your CPU is very slow ( < PII MMX/233MHz). This reduces the "
+#~ "framerate to 1 frame/second."
+#~ msgstr ""
+#~ "Selezionalo se la tua cpu è molto lenta ( < PII MMX/223MHz). Riduce "
+#~ "l'aggiornamento ad 1 al secondo"
+
+#~ msgid "UTC (GPS)"
+#~ msgstr "UTC (GPS)"
+
+#~ msgid "Ok"
+#~ msgstr "Ok"
+
+#~ msgid "Delete WP"
+#~ msgstr "Cancella WP"
+
+#~ msgid ""
+#~ "GpsDrive Help\n"
+#~ "\n"
+#~ msgstr ""
+#~ "Aiuto di GpsDrive\n"
+#~ "\n"
+
+#~ msgid "Website: www.kraftvoll.at/software\n"
+#~ msgstr "Sito Web: www.kraftvoll.at/software\n"
+
+#~ msgid "+    : Zoom in\n"
+#~ msgstr "+    : Zoom in\n"
+
+#~ msgid "-    : Zoom out\n"
+#~ msgstr "-    : Zoom out\n"
+
+#~ msgid "s    : larger map\n"
+#~ msgstr "s    : mappa più grande\n"
+
+#~ msgid "a    : smaller map\n"
+#~ msgstr "a    : mappa più piccola\n"
+
+#~ msgid "t    : select target\n"
+#~ msgstr "t    : seleziona obiettivo\n"
+
+#~ msgid "d    : download map\n"
+#~ msgstr "d    : scarica mappa\n"
+
+#~ msgid "l    : load track\n"
+#~ msgstr "l    : carica traccia\n"
+
+#~ msgid "h    : show help\n"
+#~ msgstr "h    :mostra aiuto\n"
+
+#~ msgid "q    : quit program\n"
+#~ msgstr "q    : esci dal programma\n"
+
+#~ msgid "b    : toggle auto best map\n"
+#~ msgstr "b    : attiva o disattiva mappa migliore\n"
+
+#~ msgid "w    : toggle show waypoints\n"
+#~ msgstr "w    : attiva o disattiva mostra waypoints\n"
+
+#~ msgid "o    : toggle show tracks\n"
+#~ msgstr "o    : attiva o disattiva mostra traccia\n"
+
+#~ msgid "u    : enter setup menu\n"
+#~ msgstr "u    : entra nel menu di setup\n"
+
+#~ msgid "n    : in nightmode: toogles night display on/off\n"
+#~ msgstr "n    : in modalità notturna, attiva o disattiva display notturno\n"
+
+#~ msgid "   Ok   "
+#~ msgstr "   Ok   "
+
+#~ msgid "Close"
+#~ msgstr "Chiudi"
+
+#~ msgid "OK"
+#~ msgstr "OK"
+
+#~ msgid "Quit"
+#~ msgstr "Esci"
+
+#~ msgid "Load track"
+#~ msgstr "Carica traccia"
+
+#~ msgid "Setup"
+#~ msgstr "Impostazioni"
+
+#, fuzzy
+#~ msgid "not"
+#~ msgstr "Nodi"
+
+#, fuzzy
+#~ msgid ""
+#~ "GpsDrive Help\n"
+#~ "\n"
+#~ "GPSDRIVE (c) 2001,2002 Fritz Ganter <ganter at ganter.at>\n"
+#~ "\n"
+#~ "-------------------------------------------------\n"
+#~ "Website: www.kraftvoll.at/software\n"
+#~ "Disclaimer: Please do not use for navigation. \n"
+#~ "\n"
+#~ "*************************************************\n"
+#~ "\n"
+#~ "See the manpage for program details\n"
+#~ "\n"
+#~ "Mouse control (clicking on the map):\n"
+#~ "===================================\n"
+#~ "Left mouse button         : Set position (usefull in simulation mode)\n"
+#~ "Right mouse button        : Set target directly on the map\n"
+#~ "Middle mouse button       : Display position again\n"
+#~ "Shift left mouse button   : smaller map\n"
+#~ "Shift right mouse button  : larger map\n"
+#~ "Control left mouse button : Set a waypoint (mouse position) on the map\n"
+#~ "Control right mouse button: Set a waypoint at current position on the "
+#~ "map\n"
+#~ "\n"
+#~ "Short cuts:\n"
+#~ "===================================\n"
+#~ "+                         : Zoom in\n"
+#~ "-                         : Zoom out\n"
+#~ "s                         : larger map\n"
+#~ "a                         : smaller map\n"
+#~ "t                         : select target\n"
+#~ "d                         : download map\n"
+#~ "i                         : import map\n"
+#~ "l                         : load track\n"
+#~ "h                         : show help\n"
+#~ "q                         : quit program\n"
+#~ "b                         : toggle auto best map\n"
+#~ "w                         : toggle show waypoints\n"
+#~ "o                         : toggle show tracks\n"
+#~ "u                         : enter setup menu\n"
+#~ "n                         : in nightmode: toogles night display on/off\n"
+#~ "j                         : switch to next waypoint in route mode\n"
+#~ "p                         : switch to position mode\n"
+#~ "x                         : add waypoint at current position\n"
+#~ "\n"
+#~ "Suggestions welcome!\n"
+#~ "\n"
+#~ "Have a lot of fun!\n"
+#~ "\n"
+#~ msgstr ""
+#~ "GpsDrive Help\n"
+#~ "\n"
+#~ "GPSDRIVE (c) 2001,2002 Fritz Ganter <ganter at ganter.at>\n"
+#~ "\n"
+#~ "-------------------------------------------------\n"
+#~ "Sito web: www.kraftvoll.at/software\n"
+#~ "Avvertenza: Non utilizzare per la navigazione. \n"
+#~ "\n"
+#~ "*************************************************\n"
+#~ "\n"
+#~ "Vedere la manpage per i dettagli sul programma\n"
+#~ "\n"
+#~ "Controllo da mouse (click sulla mappa):\n"
+#~ "===================================\n"
+#~ "Bottone sinistro mouse      : Imposta posizione (utile in modalità "
+#~ "simulazione)\n"
+#~ "Bottone destro mouse        : Imposta l'obiettivo sulla mappa\n"
+#~ "Bottone centrale mouse      : Visualizza posizione\n"
+#~ "Shift + bottone sinistro    : Mappa più piccola\n"
+#~ "Shift + bottone destro      : Mappa più grande\n"
+#~ "Control + bottone sinistro  : Imposta un waypoint (alla posizione del "
+#~ "mouse) sulla mappa\n"
+#~ "Control + bottone destro    : Imposta un waypoint alla posizione corrente "
+#~ "sulla mappa\n"
+#~ "\n"
+#~ "Scorciatoie:\n"
+#~ "===================================\n"
+#~ "+                         : Zoom in\n"
+#~ "-                         : Zoom out\n"
+#~ "s                         : mappa più grande\n"
+#~ "a                         : mappa più piccola\n"
+#~ "t                         : seleziona obiettivo\n"
+#~ "d                         : scarica mappa\n"
+#~ "i                         : importa mappa\n"
+#~ "l                         : carica traccia\n"
+#~ "h                         : visualizza aiuto\n"
+#~ "q                         : esci dal programma\n"
+#~ "b                         : mappa migliore (On/Off)\n"
+#~ "w                         : mostra waypoints (On/Off)\n"
+#~ "o                         : mostra traccia (On/Off)\n"
+#~ "u                         : menu dei settaggi\n"
+#~ "x                         : aggiungi waypoint alla posizione corrente\n"
+#~ "\n"
+#~ "Si accettano suggerimenti!\n"
+#~ "\n"
+#~ "Buon divertimento!\n"
+#~ "\n"
+
+#~ msgid "No GPS Fix found!"
+#~ msgstr "Nessun Fix GPS trovato!"
+
+#~ msgid "Waypoint files"
+#~ msgstr "Files waypoint"
+
+#~ msgid "Nightmode on"
+#~ msgstr "Modalità notturna on"
+
+#~ msgid "Nightmode off"
+#~ msgstr "Modalità notturna off"
+
+#~ msgid "Day/Night"
+#~ msgstr "Giorno/Notte"
+
+#~ msgid "Decimal lat/long display"
+#~ msgstr "Visualizzazione decimale lat/long"
+
+#~ msgid "Astro. dusk"
+#~ msgstr "Tram. astron."
+
+#~ msgid "Naut. dawn"
+#~ msgstr "Alba naut."
+
+#~ msgid "Naut. dusk"
+#~ msgstr "Tram. naut."
+
+#~ msgid "Civil dawn"
+#~ msgstr "Alba civile"
+
+#~ msgid "I'm sitting in a plane"
+#~ msgstr "Sono in un aereoplano"
+
+#~ msgid "GpsDrive Menu"
+#~ msgstr "Menu GpsDrive"
+
+#~ msgid "GpsDrive Status"
+#~ msgstr "Stato GpsDrive"
+
+#~ msgid "GpsDrive Settings"
+#~ msgstr "Impostazioni GpsDrive"
+
+#, fuzzy
+#~ msgid "Starting point"
+#~ msgstr "Avvia percorso"
+
+#~ msgid "Daheim"
+#~ msgstr "Home"
+
+#, fuzzy
+#~ msgid "Select waypoints for a route"
+#~ msgstr "Mostra i waypoints sulla mappa"
+
+#~ msgid ""
+#~ "Wrong format in line %d\n"
+#~ "in your ~/.gpsdrive/way.txt file,\n"
+#~ "Format must be:\n"
+#~ "LABEL xxx.xxx yyy.yyy\n"
+#~ "where xxx.xxx is the is the latitude \n"
+#~ "and yyy.yyy is the longitude\n"
+#~ " of your waypoints.\n"
+#~ "Be sure to have a dot\n"
+#~ " for the decimal point!\n"
+#~ "\n"
+#~ "No waypoints loaded!"
+#~ msgstr ""
+#~ "Formato errato alla linea %d\n"
+#~ "nel file ~/.gpsdrive/way.txt.\n"
+#~ "Il formato deve essere:\n"
+#~ "LABEL xxx.xxx yyy.yyy\n"
+#~ "dove xxx.xxx è la latitudine\n"
+#~ "e yyy.yyy è la longitudine\n"
+#~ "dei tuoi waipoints.\n"
+#~ "Accertati di utilizzare i punti\n"
+#~ "per i decimali!\n"
+#~ "\n"
+#~ "Nessun waypoint caricato!"
+
+#~ msgid "---km"
+#~ msgstr "---km"
+
+#~ msgid "---km/h"
+#~ msgstr "---km/h"
+
+#~ msgid "--x"
+#~ msgstr "--x"
+
+#~ msgid "Zoom"
+#~ msgstr "Zoom"
+
+#~ msgid ""
+#~ "-t    serial device for GARMIN transfer mode only!\n"
+#~ "      Default is /dev/gps\n"
+#~ msgstr "-f    modalità GARMIN. Non usare il gpsd! \n"
+
+#~ msgid ""
+#~ "Please create an entry:\n"
+#~ "\n"
+#~ "DEFAULT xxx yyy\n"
+#~ "\n"
+#~ "in your ~/.gpsdrive/way.txt file,\n"
+#~ " where xxx is the latitude \n"
+#~ "and yyy is the longitude\n"
+#~ " of your startpoint. Be sure to have a map\n"
+#~ " for these coordinates!"
+#~ msgstr ""
+#~ "Crea una voce:\n"
+#~ "\n"
+#~ "DEFAULT xxx yyy\n"
+#~ "\n"
+#~ "nel tuo file ~/.gpsdrive/way.txt,\n"
+#~ "dove xxx è la latitudine\n"
+#~ "e yyy e' la longitudine\n"
+#~ "del tuo punto di partenza. Accertati di\n"
+#~ "avere una mappa per queste coordinate!"

Added: packages/gpsdrive/branches/etch/po/ja.gmo
===================================================================
(Binary files differ)


Property changes on: packages/gpsdrive/branches/etch/po/ja.gmo
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: packages/gpsdrive/branches/etch/po/ja.po
===================================================================
--- packages/gpsdrive/branches/etch/po/ja.po	                        (rev 0)
+++ packages/gpsdrive/branches/etch/po/ja.po	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,2432 @@
+# Japanese translations for gpsdrive package.
+# Copyright (C) 2003 THE gpsdrive'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the gpsdrive package.
+#  <maruyama at sh.rim.or.jp>, 2003.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: gpsdrive 1.32\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-03-03 21:47+0100\n"
+"PO-Revision-Date: 2003-02-03 20:08+0900\n"
+"Last-Translator:  <maruyama at sh.rim.or.jp>\n"
+"Language-Team: Japanese <ja at li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+
+#: src/gpsdrive.c:2179
+msgid "/_Misc. Menu"
+msgstr ""
+
+#: src/gpsdrive.c:2180
+msgid "/_Misc. Menu/Maps"
+msgstr ""
+
+#: src/gpsdrive.c:2181
+#, fuzzy
+msgid "/_Misc. Menu/Maps/_Import map"
+msgstr "i    : 地図インポート\n"
+
+#: src/gpsdrive.c:2185
+msgid "/_Misc. Menu/Maps/_Map Manager"
+msgstr ""
+
+#: src/gpsdrive.c:2187
+msgid "/_Misc. Menu/_Waypoint Manager"
+msgstr ""
+
+#: src/gpsdrive.c:2189
+#, fuzzy
+msgid "/_Misc. Menu/_Load track file"
+msgstr "トラックファイルを選ぶ"
+
+#: src/gpsdrive.c:2193
+#, fuzzy
+msgid "/_Misc. Menu/Messages"
+msgstr "トラックファイルを選ぶ"
+
+#: src/gpsdrive.c:2194
+msgid "/_Misc. Menu/Messages/Send message to mobile target"
+msgstr ""
+
+#: src/gpsdrive.c:2199
+msgid "/_Misc. Menu/Help"
+msgstr ""
+
+#: src/gpsdrive.c:2200
+msgid "/_Misc. Menu/Help/About"
+msgstr ""
+
+#: src/gpsdrive.c:2202
+msgid "/_Misc. Menu/Help/Topics"
+msgstr ""
+
+#: src/gpsdrive.c:2271
+msgid "  Message  "
+msgstr "  Message  "
+
+#: src/gpsdrive.c:2315 src/gpsdrive.c:12145
+#, fuzzy
+msgid "Stop GPSD"
+msgstr "GPSDèµ·å‹•"
+
+#: src/gpsdrive.c:2317 src/gpsdrive.c:12147
+#, fuzzy
+msgid "Stop GPSD and switch to simulation mode"
+msgstr "p    : ポジションモードへ切替\n"
+
+#: src/gpsdrive.c:2339 src/gpsdrive.c:11261
+msgid "Start GPSD"
+msgstr "GPSDèµ·å‹•"
+
+#: src/gpsdrive.c:2341 src/gpsdrive.c:12153
+msgid "Starts GPSD for NMEA mode"
+msgstr "NMEAモード用にGPSDを起動する"
+
+#. displays zoom factor of map
+#: src/gpsdrive.c:2354 src/gpsdrive.c:2355 src/gpsdrive.c:2356
+#: src/gpsdrive.c:6264 src/gpsdrive.c:6273 src/gpsdrive.c:11484
+#: src/gpsdrive.c:11491 src/gpsdrive.c:11498 src/gpsdrive.c:11555
+#: src/gpsdrive.c:11560 src/gpsdrive.c:11566 src/gpsdrive.c:11602
+#: src/gpsdrive.c:11609 src/settings.c:1425 src/settings.c:1434
+#: src/settings.c:1443 src/settings.c:1468 src/settings.c:1478
+#: src/settings.c:1487 src/settings.c:1498 src/settings.c:1507
+#: src/settings.c:1517
+msgid "n/a"
+msgstr "n/a"
+
+#: src/gpsdrive.c:2366 src/gpsdrive.c:10245
+msgid ""
+"\n"
+"no garmin support compiled in\n"
+msgstr ""
+"\n"
+"Garmin プロトコル機能はコンパイルされていません\n"
+
+#: src/gpsdrive.c:2387 src/gpsdrive.c:3136
+msgid "Simulation mode"
+msgstr "シミュレーションモード"
+
+#: src/gpsdrive.c:2409
+msgid "got RMC data, using it\n"
+msgstr ""
+
+#: src/gpsdrive.c:2498 src/gpsdrive.c:11936
+msgid "Map"
+msgstr "地図"
+
+#. if (debug)
+#: src/gpsdrive.c:2661
+msgid "got no RMC data, using GGA data\n"
+msgstr ""
+
+#: src/gpsdrive.c:2912
+msgid "Timeout getting data from GPS-Receiver!"
+msgstr "GPS受信機からのデータ受信がタイムアウトしました!"
+
+#: src/gpsdrive.c:2959 src/gpsdrive.c:3008 src/gpsdrive.c:3113
+#: src/gpsdrive.c:3199 src/gpsdrive.c:3324
+msgid "Press middle mouse button for navigation"
+msgstr "中ボタンを押すとナビゲーションを開始します"
+
+#: src/gpsdrive.c:2963
+#, fuzzy, c-format
+msgid "Direct serial connection to %s"
+msgstr "%s に接続します"
+
+#: src/gpsdrive.c:3013 src/gpsdrive.c:3045 src/gpsdrive.c:3205
+#: src/gpsdrive.c:3330
+msgid "Not enough satellites in view!"
+msgstr "視界に入る衛星の数が不足しています!"
+
+#: src/gpsdrive.c:3117
+msgid "GARMIN Mode"
+msgstr "GARMIN モード"
+
+#: src/gpsdrive.c:3134
+msgid "No GPS used"
+msgstr "GPSを使いません"
+
+#: src/gpsdrive.c:3138
+msgid "Press middle mouse button for sim mode"
+msgstr "中ボタンを押すとシミュレーションを開始します"
+
+#: src/gpsdrive.c:3477
+#, c-format
+msgid "Distance to HomeBase: %.1fkm, max. allowed: %.1fkm\n"
+msgstr "ホームへの距離: %.1fkm, max. 最大許容誤差: %.1fkm\n"
+
+#: src/gpsdrive.c:3554 src/gpsdrive.c:3784 src/gpsdrive.c:6665
+#: src/gpsdrive.c:8534 src/gpsdrive.c:9000
+msgid "To"
+msgstr "To"
+
+#: src/gpsdrive.c:3866
+msgid "Error in line "
+msgstr "Error in line "
+
+#: src/gpsdrive.c:3868
+msgid ""
+"I have found filenames in map_koord.txt which are\n"
+"not map_* or top_* files. Please rename them and change the entries in\n"
+"map_koord.txt.  Use map_* for street maps and top_* for topographical\n"
+"maps.  Otherwise, the maps will not be displayed!"
+msgstr ""
+"map=koord.txtファイルにmap_*でもtop_*でもないファイル名があります。\n"
+"そのファイル名を変更し、map_koord.txtファイルを書き換えてください。\n"
+"map_*ファイルは道路地図、市街地図などのファイル名です。\n"
+"top_*ファイルは地形図のファイル名です。\n"
+"変更しないと、地図の表示はできません。"
+
+#: src/gpsdrive.c:4229
+msgid "Auto"
+msgstr "自動"
+
+#: src/gpsdrive.c:4440
+#, fuzzy
+msgid "Warning!"
+msgstr "方角"
+
+#: src/gpsdrive.c:4441
+msgid "You should not start GpsDrive as user root!!!"
+msgstr ""
+
+#: src/gpsdrive.c:4756 src/gpsdrive.c:8145 src/gpsdrive.c:8154
+#: src/gpsdrive.c:11661 src/gpsdrive.c:11670
+msgid "mi/h"
+msgstr "mi/h"
+
+#: src/gpsdrive.c:4758 src/gpsdrive.c:8147 src/gpsdrive.c:8156
+#: src/gpsdrive.c:11663 src/gpsdrive.c:11672
+msgid "knots"
+msgstr "knots"
+
+#: src/gpsdrive.c:4760 src/gpsdrive.c:8149 src/gpsdrive.c:8158
+#: src/gpsdrive.c:11665 src/gpsdrive.c:11674
+msgid "km/h"
+msgstr "km/h"
+
+#: src/gpsdrive.c:5088
+#, fuzzy
+msgid ""
+"\n"
+"Warning: unable to load gpsdriveanim.gif!\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+"\n"
+"警告: フレンズアイコンがロードできません!\n"
+"rootで下記のようにプログラムをインストールして下さい:\n"
+"make install\n"
+"\n"
+
+#. This string means North,East,South,West -- please translate the letters
+#: src/gpsdrive.c:5896
+msgid "NESW"
+msgstr "NESW"
+
+#: src/gpsdrive.c:6064
+msgid "No map available for this position!"
+msgstr "この地点の地図データがありません!"
+
+#: src/gpsdrive.c:6258
+msgid "unused"
+msgstr "未使用"
+
+#: src/gpsdrive.c:6362
+msgid "can't open NMEA output file"
+msgstr "NMEA出力ファイルをオープンできません"
+
+#: src/gpsdrive.c:6473
+msgid " Mapfile could not be loaded:"
+msgstr "地図ファイルがロードされていません:"
+
+#: src/gpsdrive.c:6517
+msgid "Map found!"
+msgstr ""
+
+#: src/gpsdrive.c:6552
+msgid " Friendsicon could not be loaded:"
+msgstr "フレンズアイコンがロードできませんでした:"
+
+#: src/gpsdrive.c:6555
+msgid ""
+"\n"
+"Warning: unable to load friendsicon!\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+"\n"
+"警告: フレンズアイコンがロードできません!\n"
+"rootで下記のようにプログラムをインストールして下さい:\n"
+"make install\n"
+"\n"
+
+#: src/gpsdrive.c:6843
+msgid "Select coordinates and scale"
+msgstr "座標と縮尺を選んでください"
+
+#: src/gpsdrive.c:6846
+msgid "Download map"
+msgstr "地図ダウンロード"
+
+#: src/gpsdrive.c:6872 src/gpsdrive.c:7911 src/gpsdrive.c:9209
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/gpsdrive.c:11792
+msgid "Latitude"
+msgstr "緯度"
+
+#: src/gpsdrive.c:6874 src/gpsdrive.c:7913 src/gpsdrive.c:9203
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/gpsdrive.c:11793
+msgid "Longitude"
+msgstr "経度"
+
+#: src/gpsdrive.c:6876
+msgid "Map covers"
+msgstr "地図範囲"
+
+#: src/gpsdrive.c:6880
+msgid "Scale"
+msgstr "縮尺"
+
+#: src/gpsdrive.c:6882
+msgid "Map file name"
+msgstr "地図ファイル名"
+
+#: src/gpsdrive.c:6922 src/settings.c:958
+msgid "Expedia Germany"
+msgstr ""
+
+#: src/gpsdrive.c:6928 src/settings.c:964
+msgid "Expedia USA"
+msgstr ""
+
+#: src/gpsdrive.c:6934
+msgid "TopoZone(US Only)"
+msgstr ""
+
+#: src/gpsdrive.c:6943
+msgid ""
+"If selected, you download the map from the german expedia server (expedia.de)"
+msgstr ""
+
+#: src/gpsdrive.c:6947
+msgid ""
+"If selected, you download the map from the U.S. expedia server (expedia.com)"
+msgstr ""
+
+#: src/gpsdrive.c:6951
+msgid ""
+"If selected, you download the map from the TopoZone Server (US maps only)"
+msgstr ""
+
+#: src/gpsdrive.c:6977 src/gpsdrive.c:6981
+msgid ""
+"You can also select the position\n"
+"with a mouse click on the map."
+msgstr ""
+"地図上でマウスクリックすると\n"
+"現在地点を指定できます。"
+
+#: src/gpsdrive.c:6983
+msgid "Using Proxy and port:"
+msgstr "Using Proxy and port:"
+
+#: src/gpsdrive.c:7280 src/gpsdrive.c:7397
+msgid "can't open socket for port 80"
+msgstr "port 80のソケットをオープンできません"
+
+#: src/gpsdrive.c:7282 src/gpsdrive.c:7285 src/gpsdrive.c:7309
+#: src/gpsdrive.c:7312 src/gpsdrive.c:7327 src/gpsdrive.c:7330
+#: src/gpsdrive.c:7399 src/gpsdrive.c:7404 src/gpsdrive.c:7407
+#: src/gpsdrive.c:7411 src/gpsdrive.c:7446 src/gpsdrive.c:7451
+#: src/gpsdrive.c:7454 src/gpsdrive.c:7458 src/gpsdrive.c:7473
+#: src/gpsdrive.c:7478 src/gpsdrive.c:7481 src/gpsdrive.c:7485
+#, c-format
+msgid "Connecting to %s FAILED!"
+msgstr "%s への接続に失敗しました!"
+
+#: src/gpsdrive.c:7307 src/gpsdrive.c:7444
+msgid "Can't resolve webserver address"
+msgstr "サーバアドレスが参照できません"
+
+#: src/gpsdrive.c:7325 src/gpsdrive.c:7471
+msgid "unable to connect to Website"
+msgstr "Websiteに接続できません"
+
+#: src/gpsdrive.c:7353 src/gpsdrive.c:7542
+msgid "read from Webserver"
+msgstr "Webサーバから読み込み中"
+
+#: src/gpsdrive.c:7380 src/gpsdrive.c:7384 src/gpsdrive.c:7386
+#: src/gpsdrive.c:7389
+#, c-format
+msgid "Connecting to %s"
+msgstr "%s に接続します"
+
+#: src/gpsdrive.c:7499 src/gpsdrive.c:7503 src/gpsdrive.c:7505
+#: src/gpsdrive.c:7508
+#, c-format
+msgid "Now connected to %s"
+msgstr "%s に接続中"
+
+#: src/gpsdrive.c:7585
+#, c-format
+msgid "Downloaded %d kBytes"
+msgstr "%d バイトダウンロードしました"
+
+#: src/gpsdrive.c:7599
+msgid "Download FAILED!"
+msgstr "ダウンロードに失敗しました!"
+
+#: src/gpsdrive.c:7601
+#, c-format
+msgid "Download finished, got %dkB"
+msgstr "%dkB ダウンロードしました。"
+
+#: src/gpsdrive.c:7772
+msgid "Select a map file"
+msgstr "地図ファイルを選んでください"
+
+#: src/gpsdrive.c:7837
+msgid ""
+"How to calibrate your own maps? First, the map file\n"
+"must be copied into the"
+msgstr ""
+
+#: src/gpsdrive.c:7839
+#, fuzzy
+msgid ""
+"\n"
+"directory as .gif, .jpg or .png file and must have\n"
+"the size 1280x1024. The file names must be\n"
+"map_* for street maps or top_* for topographical maps!\n"
+"Load the file, select coordinates from waypoint list or\n"
+"type them in. Then click on the accept button."
+msgstr ""
+"カスタム地図を設定する方法?\n"
+"\n"
+"まず、地図ファイルを ~/.gpsdrive ディレクトリに .gif、.jpg、.png のいずれかの"
+"形式でコピーします。画像サイズは 1280x1024にします。ファイル名は道路地図・市"
+"街地図なら map_*、地形図なら top_* にして下さい!\n"
+"ファイルをロードして、座標を選びます。\n"
+"座標はwaypoint一覧から選ぶか、入力して下さい\n"
+"そして OK ボタンをクリックして下さい"
+
+# ;;; ???
+#: src/gpsdrive.c:7846
+#, fuzzy
+msgid ""
+"Now do the same for your second point and click on the\n"
+"finish button. The map can be used now."
+msgstr ""
+"そして同じようにして、2番目の地点を選び、終了ボタンをクリックして下さい\n"
+"地図はもう使えます"
+
+# ;;; ???
+#: src/gpsdrive.c:7851
+msgid "Import Assistant. Step 1"
+msgstr "インポートアシスタント Step 1"
+
+#: src/gpsdrive.c:7853
+msgid "Import Assistant. Step 2"
+msgstr "インポートアシスタント Step 2"
+
+#: src/gpsdrive.c:7858
+msgid "Accept first point"
+msgstr "最初の地点を決定する"
+
+# ;;; ???
+#: src/gpsdrive.c:7860
+msgid "Finish"
+msgstr "終了"
+
+#: src/gpsdrive.c:7881
+msgid "Go up"
+msgstr "上"
+
+#: src/gpsdrive.c:7884
+msgid "Go left"
+msgstr "å·¦"
+
+#: src/gpsdrive.c:7887
+msgid "Go right"
+msgstr "右"
+
+#: src/gpsdrive.c:7890
+msgid "Go down"
+msgstr "下"
+
+#: src/gpsdrive.c:7893
+msgid "Zoom in"
+msgstr "拡大"
+
+#: src/gpsdrive.c:7896
+msgid "Zoom out"
+msgstr "縮小"
+
+#: src/gpsdrive.c:7915
+msgid "Screen X"
+msgstr "Screen X"
+
+#: src/gpsdrive.c:7917
+msgid "Screen Y"
+msgstr "Screen Y"
+
+#: src/gpsdrive.c:7919
+msgid "Browse waypoint"
+msgstr "waypoint一覧"
+
+#: src/gpsdrive.c:7950
+msgid "Browse filename"
+msgstr "filename一覧"
+
+#: src/gpsdrive.c:8043
+msgid "GpsDrive Control"
+msgstr "GpsDrive Control"
+
+#: src/gpsdrive.c:8154 src/gpsdrive.c:8156 src/gpsdrive.c:8158
+#: src/gpsdrive.c:11670 src/gpsdrive.c:11672 src/gpsdrive.c:11674
+#: src/settings.c:1025
+msgid "Speed"
+msgstr "速度"
+
+#: src/gpsdrive.c:8375
+msgid ""
+"\n"
+"distance jump is more then 1000km/h speed, ignoring\n"
+msgstr ""
+"\n"
+"1000km/h以上の移動速度が検出されました、無視します\n"
+
+#: src/gpsdrive.c:8597 src/friends.c:348
+#, fuzzy
+msgid "/Misc. Menu/Messages"
+msgstr "トラックファイルを選ぶ"
+
+# ;;; ???
+#: src/gpsdrive.c:8600
+#, fuzzy
+msgid "Sending message to friends server..."
+msgstr "距離選択を有効/無効にする"
+
+#: src/gpsdrive.c:8673
+#, fuzzy
+msgid "Message for:"
+msgstr "  Message  "
+
+#: src/gpsdrive.c:8714
+#, c-format
+msgid "Date: %s"
+msgstr ""
+
+#: src/gpsdrive.c:8727
+msgid "Sends your text to to selected computer using the friends server"
+msgstr ""
+
+#: src/gpsdrive.c:8999
+msgid "SELECTED"
+msgstr "選択"
+
+#: src/gpsdrive.c:9172
+msgid "Add waypoint name"
+msgstr "waypoint名追加"
+
+#: src/gpsdrive.c:9231
+msgid " Waypoint name: "
+msgstr " Waypoint 名: "
+
+#: src/gpsdrive.c:9244
+msgid " Waypoint type: "
+msgstr " Waypoint type: "
+
+#: src/gpsdrive.c:9489
+msgid "Name"
+msgstr ""
+
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/settings.c:1018
+msgid "Distance"
+msgstr "距離"
+
+# ;;; ???
+#: src/gpsdrive.c:9499
+#, fuzzy
+msgid "Please select message recipient"
+msgstr "目的地を選んでください"
+
+#: src/gpsdrive.c:9568 src/gpsdrive.c:9715
+msgid "Waypoint"
+msgstr "Waypoint"
+
+#: src/gpsdrive.c:9587
+msgid "Select reference point"
+msgstr "参照地点選択"
+
+# ;;; ???
+#: src/gpsdrive.c:9591
+msgid "Please select your destination"
+msgstr "目的地を選んでください"
+
+#: src/gpsdrive.c:9620
+msgid "Edit route"
+msgstr "ルート編集"
+
+#: src/gpsdrive.c:9622
+msgid "Create route"
+msgstr "ルート作成"
+
+#: src/gpsdrive.c:9693
+msgid "Create a route using some waypoints from this list"
+msgstr "一覧にあるwaypointを使ってルートを作成してください"
+
+#: src/gpsdrive.c:9698
+msgid "Delete the selected waypoint from the waypoint list"
+msgstr "一覧から選択されたwaypointを削除します"
+
+#: src/gpsdrive.c:9702
+#, fuzzy
+msgid "Jump to the selected waypoint"
+msgstr ""
+"一覧をクリックして\n"
+"次のwaypointを選んで下さい"
+
+#: src/gpsdrive.c:9729
+msgid "Define route"
+msgstr "ルート定義"
+
+#: src/gpsdrive.c:9737
+msgid "Start route"
+msgstr "ルート開始"
+
+#: src/gpsdrive.c:9746
+msgid "Take all WP as route"
+msgstr "全WPからルートを作る"
+
+#: src/gpsdrive.c:9751
+msgid "Abort route"
+msgstr "ルート中止"
+
+#: src/gpsdrive.c:9795
+msgid ""
+"Click on waypoints list\n"
+"to add waypoints"
+msgstr ""
+"waypoint一覧をクリックして\n"
+"waypointを追加して下さい"
+
+#: src/gpsdrive.c:9797
+msgid ""
+"Click on list item\n"
+"to select next waypoint"
+msgstr ""
+"一覧をクリックして\n"
+"次のwaypointを選んで下さい"
+
+#: src/gpsdrive.c:9838
+msgid ""
+"Create a route from all waypoints. Sorted with order in file, not distance."
+msgstr ""
+"全waypointからのルートを作成する。距離順でなく、ファイル順のルートになる"
+
+# ;;; ???
+#: src/gpsdrive.c:9842
+msgid ""
+"Click here to start your journey. GpsDrive guides you through the waypoints "
+"in this list."
+msgstr ""
+"ここをクリックして移動を開始してください。GpsDriveは一覧のwaypointを順番に案"
+"内します"
+
+#: src/gpsdrive.c:9845
+msgid "Abort your journey"
+msgstr "ルート作成を中止する"
+
+# ;;; ???
+#: src/gpsdrive.c:9862
+msgid "-v    show version\n"
+msgstr "-v    バージョン表示\n"
+
+#: src/gpsdrive.c:9863
+msgid "-h    print this help\n"
+msgstr "-h    ヘルプ表示\n"
+
+#: src/gpsdrive.c:9864
+msgid "-d    turn on debug info\n"
+msgstr "-d    デバッグ情報表示\n"
+
+#: src/gpsdrive.c:9865
+msgid "-D    turn on lot of debug info\n"
+msgstr "-D    詳細デバッグ情報表示\n"
+
+#: src/gpsdrive.c:9866
+msgid "-e    use Festival-Lite (flite) for speech output\n"
+msgstr "-e    音声出力にFestival-Lite (flite)を使用する\n"
+
+#: src/gpsdrive.c:9867
+msgid "-t    set serial device for GPS i.e. /dev/ttyS1\n"
+msgstr "-t    GPSのシリアルデバイスをセット 例)/dev/ttyS1\n"
+
+#: src/gpsdrive.c:9868
+msgid "-o    serial device, pty master, or file for NMEA *output*\n"
+msgstr "-o    NMEAを出力するシリアルデバイス、pty masterまたはファイル名\n"
+
+#: src/gpsdrive.c:9869
+msgid "-f X  Select friends server, X is i.e. www.gpsdrive.cc\n"
+msgstr "-f X  フレンズサーバ選択、Xは例えば、 www.gpsdrive.cc\n"
+
+#: src/gpsdrive.c:9870
+msgid "-n    Disable use of direct serial connection\n"
+msgstr ""
+
+# ;;; ???
+#: src/gpsdrive.c:9871
+msgid ""
+"-l X  Select language of the voice,\n"
+"      X may be english, spanish or german\n"
+msgstr ""
+"-l X  音声出力の言語を選択,\n"
+"        Xはenglish(英語)、spanish(スペイン語)、またはgerman(ドイツ語)\n"
+
+#: src/gpsdrive.c:9873
+msgid ""
+"-s X  set height of the screen, if autodetection\n"
+"      don't satisfy you, X is i.e. 768,600,480,200\n"
+msgstr ""
+"-s X  画面の縦サイズを強制指定でセットする\n"
+"      X は例えば 768,600,480,200\n"
+
+#. ** Mod by Arms
+#: src/gpsdrive.c:9876
+msgid "-r X  set width of the screen, only with -s\n"
+msgstr "-r X  画面の横サイズをセットする。 -sと一緒でないと無効\n"
+
+#: src/gpsdrive.c:9878
+msgid "-1    have only 1 button mouse, for example using touchscreen\n"
+msgstr "-1    1ボタンマウスを使っている時指定する(タッチパネルなど)\n"
+
+#: src/gpsdrive.c:9879
+msgid "-a    don't display battery status (i.e. broken APM)\n"
+msgstr "-a    バッテリー状態を表示しない (APMが正しく動かない時など)\n"
+
+#: src/gpsdrive.c:9881
+msgid "-b X  Servername for NMEA server (if gpsd runs on another host)\n"
+msgstr ""
+"-b X  NMEA サーバのサーバ名 (gpsdが別のリモートホストで動作している時)\n"
+
+#: src/gpsdrive.c:9883
+msgid "-c X  set start position in simulation mode to waypoint name X\n"
+msgstr "-c X  シミュレーションモードをwaypoint X から開始する\n"
+
+#: src/gpsdrive.c:9884
+msgid "-x    create separate window for menu\n"
+msgstr "-x    メニューを別ウィンドウに開く\n"
+
+#: src/gpsdrive.c:9885
+msgid "-p    set settings for PDA (iPAQ, Yopy...)\n"
+msgstr "-p    PDA使用の時指定する (iPAQ, Yopy...)\n"
+
+#: src/gpsdrive.c:9887
+msgid "-i    ignore NMEA checksum (risky, only for broken GPS receivers\n"
+msgstr ""
+"-i    NMEAチェックサムを無視する (危険、GPS受信機が壊れた時のみ指定する)\n"
+
+#: src/gpsdrive.c:9888
+msgid "-q    disable SQL support\n"
+msgstr "-q    SQL機能を無効にする\n"
+
+#: src/gpsdrive.c:9889
+msgid "-F    force display of position even it is invalid\n"
+msgstr "-F    不正な位置でも位置表示を強行する\n"
+
+#: src/gpsdrive.c:9890
+msgid "-S    don't show splash screen\n"
+msgstr ""
+
+#: src/gpsdrive.c:9891
+msgid "-E    print out data received from direct serial connection\n"
+msgstr ""
+
+#: src/gpsdrive.c:9893
+msgid "-W x  set x to 1 to switch WAAS/EGNOS on, set to 0 to switch off\n"
+msgstr ""
+
+#: src/gpsdrive.c:9894
+msgid "-H X  correct altitude, adding this value to altitude\n"
+msgstr "-H X  指定の値を高度に加算して高度を補正する\n"
+
+#: src/gpsdrive.c:9895
+msgid ""
+"-z    don't display zoom factor and scale\n"
+"\n"
+msgstr ""
+"-z    ズームと縮尺を表示しない\n"
+"\n"
+
+#: src/gpsdrive.c:10001
+msgid "Select a track file"
+msgstr "トラックファイルを選ぶ"
+
+#: src/gpsdrive.c:10179 src/gpskismet.c:380
+msgid "can't open socket for port "
+msgstr "can't open socket for port "
+
+#: src/gpsdrive.c:10200
+#, c-format
+msgid ""
+"\n"
+"Cannot connect to %s: unknown host\n"
+msgstr ""
+
+#: src/gpsdrive.c:10221
+msgid "NMEA Mode, Port 2222"
+msgstr "NMEA Mode, Port 2222"
+
+#: src/gpsdrive.c:10230
+msgid "NMEA Mode, Port 2947"
+msgstr "NMEA Mode, Port 2947"
+
+#: src/gpsdrive.c:10249
+msgid ""
+"\n"
+"Garmin protocol detection disabled!\n"
+msgstr ""
+"\n"
+"Garminプロトコルの検出が無効です!\n"
+
+# ##;;;english below
+#: src/gpsdrive.c:10600
+msgid ""
+"\n"
+"libmysqlclient.so not found.\n"
+msgstr ""
+"\n"
+"libmysqlclient.so がありません\n"
+
+#: src/gpsdrive.c:10606
+msgid ""
+"\n"
+"MySQL support disabled.\n"
+msgstr ""
+"\n"
+"MySQL サポート機能が無効です\n"
+
+#: src/gpsdrive.c:10783
+msgid ""
+"\n"
+"You can only choose between english, spanish and german\n"
+"\n"
+msgstr ""
+"\n"
+"english、spanishまたはgermanしか選択できません\n"
+"\n"
+
+# ;;; ???
+#: src/gpsdrive.c:10817 src/settings.c:1730
+msgid "EnterYourName"
+msgstr "氏名入力"
+
+#: src/gpsdrive.c:10879
+#, c-format
+msgid ""
+"\n"
+"Using proxy: %s on port %d"
+msgstr ""
+"\n"
+"Using proxy: %s on port %d"
+
+#: src/gpsdrive.c:10883
+msgid ""
+"\n"
+"Invalid enviroment variable HTTP_PROXY, must be in format: http://proxy."
+"provider.de:3128"
+msgstr ""
+"\n"
+"環境変数 HTTP_PROXYは、次の形式にして下さい: http://proxy.provider.de:3128"
+
+#: src/gpsdrive.c:11073
+msgid "Gpsdrive-2 (c)2001-2004 F.Ganter"
+msgstr "Gpsdrive-2 (c)2001-2004 F.Ganter"
+
+#: src/gpsdrive.c:11081
+msgid "Using speech output"
+msgstr "音声出力使用中"
+
+#: src/gpsdrive.c:11115
+#, fuzzy
+msgid "/Misc. Menu/Maps/Map Manager"
+msgstr "トラックファイルを選ぶ"
+
+#: src/gpsdrive.c:11119
+#, fuzzy
+msgid "/Misc. Menu/Waypoint Manager"
+msgstr "トラックファイルを選ぶ"
+
+#. download map button
+#: src/gpsdrive.c:11123
+msgid "_Download map"
+msgstr "地図ダウンロード"
+
+#: src/gpsdrive.c:11142
+msgid "M_ute"
+msgstr "消音"
+
+#: src/gpsdrive.c:11152
+msgid "Use SQ_L"
+msgstr "SQL利用"
+
+#: src/gpsdrive.c:11162
+msgid "Show _WP"
+msgstr "WP表示"
+
+#: src/gpsdrive.c:11189
+msgid "HomeBase"
+msgstr "ホーム"
+
+#: src/gpsdrive.c:11197
+msgid "Pos. _mode"
+msgstr "Pos. mode"
+
+#: src/gpsdrive.c:11203
+msgid "Show _Track"
+msgstr "軌跡表示"
+
+#: src/gpsdrive.c:11246
+msgid "_Navigation"
+msgstr ""
+
+#: src/gpsdrive.c:11265
+msgid "Auto _best map"
+msgstr "最良地図自動選択"
+
+#: src/gpsdrive.c:11275
+msgid "Save track"
+msgstr "軌跡保存"
+
+#: src/gpsdrive.c:11286
+msgid "Shown map type"
+msgstr "表示地図形式"
+
+#: src/gpsdrive.c:11297
+msgid "Street map"
+msgstr "道路地図"
+
+#: src/gpsdrive.c:11304
+msgid "Topo map"
+msgstr "地形図"
+
+#: src/gpsdrive.c:11386
+msgid ""
+"\n"
+"kismet server found\n"
+msgstr ""
+"\n"
+"kismet server found\n"
+
+#: src/gpsdrive.c:11447 src/gpsdrive.c:11797
+msgid "Bearing"
+msgstr "方角"
+
+# ;;; ???
+#: src/gpsdrive.c:11468
+#, fuzzy
+msgid "GPS Info"
+msgstr "Geo info"
+
+# ;;; ???
+#: src/gpsdrive.c:11519
+msgid "Bat."
+msgstr "電池"
+
+#: src/gpsdrive.c:11534
+msgid "TC"
+msgstr "TC"
+
+# ;;; ???
+#. displays speed over ground
+#: src/gpsdrive.c:11552 src/gpsdrive.c:11807 src/gpsdrive.c:11809
+#: src/gpsdrive.c:11815 src/gpsdrive.c:11817
+msgid "---"
+msgstr "---"
+
+#: src/gpsdrive.c:11632 src/gpsdrive.c:11639
+#, fuzzy
+msgid "Selected:"
+msgstr "目標選択"
+
+#: src/gpsdrive.c:11632 src/gpsdrive.c:11639
+msgid "within"
+msgstr "within"
+
+#. create frames for labels
+#: src/gpsdrive.c:11647
+msgid "Distance to target"
+msgstr "目標迄の距離"
+
+#. ** Mod by Arms
+#. if (!pdamode)
+#. gtk_box_pack_start (GTK_BOX (hbox2), frame_speed, TRUE, TRUE,
+#. 1 * PADDING);
+#: src/gpsdrive.c:11683
+msgid "Altitude"
+msgstr "高度"
+
+# ;;; ???
+#. ** Mod by Arms
+#. if (!pdamode)
+#. gtk_box_pack_start (GTK_BOX (hbox2), frame_altitude, FALSE, TRUE,
+#. 1 * PADDING);
+#: src/gpsdrive.c:11690 src/settings.c:681
+msgid "Waypoints"
+msgstr "Waypoints"
+
+#: src/gpsdrive.c:11794
+msgid "Map file"
+msgstr "地図ファイル"
+
+#: src/gpsdrive.c:11795
+msgid "Map scale"
+msgstr "地図縮尺"
+
+#: src/gpsdrive.c:11796
+msgid "Heading"
+msgstr "進行方向"
+
+#: src/gpsdrive.c:11798
+msgid "Time at Dest."
+msgstr "到達所要時間"
+
+# ;;; ???
+#: src/gpsdrive.c:11799
+msgid "Pref. scale"
+msgstr "縮尺設定"
+
+#: src/gpsdrive.c:11803
+msgid "000,00000N"
+msgstr ""
+
+#: src/gpsdrive.c:11805
+msgid "000,00000E"
+msgstr ""
+
+#: src/gpsdrive.c:11811 src/gpsdrive.c:11813
+msgid "0000"
+msgstr ""
+
+# ;;; ???
+#. gdk_window_lower((GdkWindow *)menuwin);
+#: src/gpsdrive.c:11886 src/gpsdrive.c:11937
+msgid "Menu"
+msgstr "Menu"
+
+# ;;; ???
+#. gdk_window_lower((GdkWindow *)menuwin2);
+#: src/gpsdrive.c:11895 src/gpsdrive.c:11938
+msgid "Status"
+msgstr "Status"
+
+#: src/gpsdrive.c:12089
+#, fuzzy
+msgid ""
+"Click here to switch betwen satetellite level and satellite position "
+"display. A rotating globe is shown in simulation mode"
+msgstr "衛星レベル表示と衛星位置表示の切替えは、ここをクリックして下さい"
+
+#: src/gpsdrive.c:12093
+#, fuzzy
+msgid "Number of used satellites/satellites in view"
+msgstr "視界に入る衛星の数が不足しています!"
+
+#: src/gpsdrive.c:12096
+msgid "EPE (Estimated Precision Error), if available"
+msgstr ""
+
+#: src/gpsdrive.c:12100
+msgid ""
+"PDOP (Position Dilution Of Precision). PDOP less than 4 gives the best "
+"accuracy, between 4 and 8 gives acceptable accuracy and greater than 8 gives "
+"unacceptable poor accuracy. "
+msgstr ""
+
+#: src/gpsdrive.c:12105
+msgid ""
+"On top of the compass you see the direction to which you move. The pointer "
+"shows the target direction on the compass."
+msgstr ""
+
+#: src/gpsdrive.c:12108
+msgid "/Misc. Menu"
+msgstr ""
+
+#: src/gpsdrive.c:12111
+msgid "Here you find extra functions for maps, tracks and messages"
+msgstr ""
+
+# ;;; ???
+#: src/gpsdrive.c:12115
+msgid "Download map from Internet"
+msgstr "地図をネットからダウンロード"
+
+#: src/gpsdrive.c:12117
+msgid "Leave the program"
+msgstr "プログラム終了"
+
+#: src/gpsdrive.c:12120
+msgid "Disable output of speech"
+msgstr "音声出力停止"
+
+#: src/gpsdrive.c:12123
+msgid "Use SQL server for waypoints"
+msgstr "waypoint保存にをSQLサーバを利用"
+
+#: src/gpsdrive.c:12126
+msgid "Show waypoints on the map"
+msgstr "地図上にwaypointを表示"
+
+#: src/gpsdrive.c:12129
+msgid ""
+"Turn position mode on. You can move on the map with the left mouse button "
+"click. Clicking near the border switches to the proximate map."
+msgstr ""
+"ポジションモードをONにします。マウスの左クリックで地図上を移動できます。地図"
+"の端でクリックすると、隣の地図に切り替わります"
+
+#: src/gpsdrive.c:12132
+msgid "Show tracking on the map"
+msgstr "地図上に軌跡を表示"
+
+# ;;; ???
+#: src/gpsdrive.c:12137
+msgid "Opens the help window"
+msgstr "ヘルプ画面を開く"
+
+#: src/gpsdrive.c:12140
+msgid "Navigation menu. Enter here your destination."
+msgstr ""
+
+#: src/gpsdrive.c:12156
+msgid "Settings for GpsDrive"
+msgstr "GpsDriveの設定"
+
+# ;;; ???
+#: src/gpsdrive.c:12158
+msgid "Zoom into the current map"
+msgstr "地図を拡大する"
+
+#: src/gpsdrive.c:12160
+msgid "Zooms out off the current map"
+msgstr "地図を縮小する"
+
+#: src/gpsdrive.c:12162
+msgid "Select the next more detailed map"
+msgstr "1段階拡大した地図を表示する"
+
+#: src/gpsdrive.c:12164
+msgid "Select the next less detailed map"
+msgstr "1段階縮小した地図を表示する"
+
+#: src/gpsdrive.c:12169
+msgid "Select here a destination from the waypoint list"
+msgstr "waypoint一覧から目的地を選ぶ"
+
+#: src/gpsdrive.c:12173
+msgid "Select the map scale of avail. maps."
+msgstr "利用可能な地図の縮尺を選ぶ"
+
+#: src/gpsdrive.c:12178
+msgid "Always select the most detailed map available"
+msgstr "自動的に利用可能な最も詳細な地図を選ぶ"
+
+#: src/gpsdrive.c:12181
+msgid "Save the track to given filename at program exit"
+msgstr "プログラム終了時に軌跡を指定ファイルに保存する"
+
+#: src/gpsdrive.c:12187
+msgid "Number of waypoints selected from SQL server"
+msgstr "SQL serverで選択されているwaypointの数"
+
+#: src/gpsdrive.c:12191
+msgid "Number of selected waypoints, which are in range"
+msgstr "領域範囲内にある選択されたwaypointの数"
+
+#: src/gpsdrive.c:12195
+msgid "Range for waypoint selection in kilometers"
+msgstr "kilometers単位のwaypoint選択範囲半径"
+
+#: src/gpsdrive.c:12198
+msgid "This shows the time from your GPS receiver"
+msgstr "GPS受信機からの時間がここに表示される"
+
+#: src/gpsdrive.c:12201
+#, fuzzy
+msgid ""
+"Number of mobile targets within timeframe/total received from friendsserver"
+msgstr "SQL serverで選択されているwaypointの数"
+
+#: src/gpsdrive.c:12275
+msgid ""
+"\n"
+"\n"
+"Thank you for using GpsDrive!\n"
+"\n"
+msgstr ""
+"\n"
+"\n"
+"\n"
+"Thank you for using GpsDrive!\n"
+"\n"
+
+#: src/splash.c:543
+#, fuzzy
+msgid "GpsDrive v"
+msgstr "GpsDriveヘルプ"
+
+#: src/splash.c:549
+msgid ""
+"\n"
+"\n"
+"You find new versions on http://www.gpsdrive.cc\n"
+msgstr ""
+
+#: src/splash.c:553
+msgid ""
+"Disclaimer: Please do not use for navigation. \n"
+"\n"
+msgstr ""
+"使用上の注意: 航海/航空ナビゲーションには使用しないで下さい \n"
+"\n"
+
+#: src/splash.c:558
+#, fuzzy
+msgid "Please have a look into the manpage (man gpsdrive) for program details!"
+msgstr ""
+"機能詳細はマニュアルを参照してください\n"
+"\n"
+
+#: src/splash.c:563
+msgid "Mouse control (clicking on the map):\n"
+msgstr "マウスコントロール(地図をクリックする):\n"
+
+#: src/splash.c:569
+msgid ""
+"Left mouse button         : Set position (usefull in simulation mode)\n"
+"Right mouse button        : Set target directly on the map\n"
+"Middle mouse button       : Display position again\n"
+"Shift left mouse button   : smaller map\n"
+"Shift right mouse button  : larger map\n"
+"Control left mouse button : Set a waypoint (mouse position) on the map\n"
+"Control right mouse button: Set a waypoint at current position on the map\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:577
+msgid ""
+"j    : switch to next waypoint in route mode\n"
+"x    : add waypoint at current position\n"
+"y    : add waypoint at mouse cursor position\n"
+msgstr ""
+
+#: src/splash.c:583
+msgid "Short cuts:\n"
+msgstr "ショートカット\n"
+
+#: src/splash.c:590
+msgid "The other key shortcuts are marked as "
+msgstr "他のショートカットキーには"
+
+#: src/splash.c:591
+msgid "underlined"
+msgstr "下線付"
+
+#: src/splash.c:593
+msgid " letters in the button text.\n"
+msgstr ""
+
+#: src/splash.c:596
+#, fuzzy
+msgid ""
+"Press the underlined key together with the ALT-key.\n"
+"\n"
+"You can move on the map by selecting the Position-Mode in the menu. A blue "
+"rectangle shows this mode, you can set this cursor by clicking on the map. "
+"If you click on the border of the map (the outer 20%) then the map switches "
+"to the next area.\n"
+"\n"
+"Suggestions welcome.\n"
+"\n"
+msgstr ""
+"を選択すると地図上を移動できます。青の矩形がこのモードを示し、カーソルを地図"
+"上でクリックするとセットできます。 地図の端(外側の20%の場所)でクリックする"
+"と、 次の地図に切り替わります。"
+
+#: src/splash.c:603
+msgid "Have a lot of fun!"
+msgstr "Have a lot of fun!"
+
+#: src/splash.c:734
+msgid "Please donate to GpsDrive"
+msgstr "GpsDriveにご寄付をお願いします"
+
+#: src/splash.c:740
+#, fuzzy
+msgid ""
+"\n"
+"\n"
+"GpsDrive is a project with no comercial background. \n"
+"\n"
+"It would be nice if you can give a donation to help me pay the costs for "
+"hardware and the webserver.\n"
+"\n"
+"To do so, just go to"
+msgstr ""
+"私が負担しているハードウェアとウェブサーバのコストを助けるために、寄付を頂け"
+"ると大変助かります。\n"
+"\n"
+
+#: src/splash.c:744
+msgid " http://www.gpsdrive.cc "
+msgstr ""
+
+#: src/splash.c:747
+#, fuzzy
+msgid ""
+"and click on the PayPal button.\n"
+"\n"
+"Thank you very much for your donation!\n"
+"\n"
+"This message is only displayed once when you start an new version of "
+"GpsDrive.\n"
+"\n"
+msgstr ""
+"このメッセージは、GpsDriveの新しいバージョンの開始時に、一回だけ表示されま"
+"す。\n"
+"\n"
+
+#: src/splash.c:780
+msgid "About GpsDrive donation"
+msgstr "GpsDriveへの寄付について"
+
+#: src/splash.c:859
+msgid "From:"
+msgstr ""
+
+# ;;; ???
+#: src/splash.c:928
+#, fuzzy, c-format
+msgid ""
+"You received a message from\n"
+"the friends server (%s)\n"
+msgstr "距離選択を有効/無効にする"
+
+# ;;; ???
+#: src/splash.c:938
+#, fuzzy
+msgid "You received a message through the friends server from:\n"
+msgstr "距離選択を有効/無効にする"
+
+#: src/splash.c:948
+#, fuzzy
+msgid "Message text:\n"
+msgstr "  Message  "
+
+#: src/splash.c:1004
+msgid "Error saving config file ~/.gpsdrive/gpsdriverc"
+msgstr "Error saving config file ~/.gpsdrive/gpsdriverc"
+
+#: src/splash.c:1519 src/splash.c:1578
+msgid ""
+"\n"
+"Warning: unable to open splash picture\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+"\n"
+"警告: スプラッシュ画面を開けません\n"
+"rootでプログラムをインストールして下さい:\n"
+"make install\n"
+"\n"
+
+#: src/splash.c:1562
+#, fuzzy
+msgid "About GpsDrive"
+msgstr "GpsDriveへの寄付について"
+
+#: src/settings.c:438
+msgid "Setting WP label font"
+msgstr "WPラベルのフォント設定"
+
+#: src/settings.c:440
+msgid "Setting big display font"
+msgstr "拡大文字フォント設定"
+
+#: src/settings.c:507
+#, fuzzy
+msgid "Setting big display color"
+msgstr "拡大文字フォント設定"
+
+#: src/settings.c:545
+#, fuzzy
+msgid "Setting track color"
+msgstr "拡大文字フォント設定"
+
+#: src/settings.c:587
+#, fuzzy
+msgid "Setting friends label color"
+msgstr "拡大文字フォント設定"
+
+#: src/settings.c:668
+msgid ""
+"Don't use more than\n"
+"100 waypoint(way*.txt) files!"
+msgstr ""
+"waypointファイル(way*.txt)個数制限\n"
+"100個以上は使用できません!"
+
+#: src/settings.c:679
+msgid "Waypoint files to use"
+msgstr "使用するWaypointファイル"
+
+#: src/settings.c:704 src/settings.c:709
+msgid "Settings"
+msgstr "設定"
+
+#. misc area
+#: src/settings.c:716
+msgid "Misc settings"
+msgstr "その他各種設定"
+
+#: src/settings.c:720
+msgid "Show Shadows"
+msgstr "陰影付き表示"
+
+#: src/settings.c:727
+msgid "Etched frames"
+msgstr ""
+
+# ;;; ???
+#: src/settings.c:735
+msgid "Simulation: Follow target"
+msgstr "シミュレーション: 目標へ移動"
+
+#: src/settings.c:742
+msgid "Maximum CPU load"
+msgstr "最大CPUロード"
+
+#: src/settings.c:752
+#, fuzzy
+msgid "Track"
+msgstr "軌跡表示"
+
+#: src/settings.c:767
+msgid "Maps directory"
+msgstr "地図ディレクトリ"
+
+#: src/settings.c:773
+msgid "Automatic"
+msgstr "自動"
+
+#: src/settings.c:779
+msgid "On"
+msgstr "On"
+
+#: src/settings.c:784
+msgid "Off"
+msgstr "Off"
+
+#. gtk_table_attach_defaults (GTK_TABLE (misctable), label2, 0, 2, 3, 4);
+#. gtk_table_attach_defaults (GTK_TABLE (misctable), mapdirbt, 0, 2, 4, 5);
+#. GPS settings area
+#: src/settings.c:808
+msgid "GPS settings"
+msgstr "GPS 設定"
+
+#. gtk_container_add (GTK_CONTAINER (f4), gpstable);
+#: src/settings.c:822
+msgid "Test for GARMIN"
+msgstr "GARMINテスト用"
+
+# ;;; ???
+#: src/settings.c:833
+msgid "Use DGPS-IP"
+msgstr "DGPS-IP利用"
+
+#: src/settings.c:843
+msgid "GPS is Earthmate"
+msgstr "GPSはEarthmate"
+
+#: src/settings.c:853
+msgid "Use serial conn."
+msgstr ""
+
+# ;;; ???
+#: src/settings.c:868
+msgid "Interface"
+msgstr "Interface"
+
+#: src/settings.c:869
+msgid "Baudrate"
+msgstr ""
+
+#. units area
+#: src/settings.c:904
+msgid "Units"
+msgstr "単位"
+
+#: src/settings.c:910
+msgid "Miles"
+msgstr "Miles"
+
+#: src/settings.c:915
+msgid "Metric"
+msgstr "Km"
+
+#: src/settings.c:920 src/nautic.c:106
+msgid "Nautic"
+msgstr "Nautic"
+
+# ;;; ???
+#: src/settings.c:930
+msgid "Decimal position"
+msgstr "Decimal position"
+
+# ;;; ???
+#. gtk_box_pack_start (GTK_BOX (v2), miles, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), metric, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), nautic, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), minsecbt, TRUE, FALSE, 2 * PADDING);
+#.
+#. default download server
+#: src/settings.c:948
+msgid "Default map server"
+msgstr "Default地図サーバ"
+
+#. Night light mode
+#: src/settings.c:981
+msgid "Night light mode"
+msgstr "夜間照明モード"
+
+#.  gtk_table_attach_defaults (GTK_TABLE (table), f5, 0, 2, 2, 3);
+#. Sound settings
+#: src/settings.c:999
+#, fuzzy
+msgid "Speech output settings"
+msgstr "航空関連設定"
+
+#.
+#. set following sounds
+#. sound_direction ... say direction to target
+#. sound_distance  ... say distance to target
+#. sound_speed     ... say your current speed
+#. sound_gps       ... say GPS status
+#.
+#.
+#: src/settings.c:1011
+msgid "Direction"
+msgstr ""
+
+# ;;; ???
+#: src/settings.c:1032
+#, fuzzy
+msgid "GPS Status"
+msgstr "Status"
+
+#: src/settings.c:1046
+msgid "Switch on for speech output of the direction to the target"
+msgstr ""
+
+#: src/settings.c:1051
+msgid "Switch on for speech output of the distance to the target"
+msgstr ""
+
+#: src/settings.c:1056
+msgid "Switch on for speech output of your current speed"
+msgstr ""
+
+#: src/settings.c:1061
+msgid "Switch on for speech output of the status of your GPS signal"
+msgstr ""
+
+#. Font settings
+#: src/settings.c:1066
+#, fuzzy
+msgid "Font and color settings"
+msgstr "GPS 設定"
+
+#. gtk_box_pack_start (GTK_BOX (h1), f5, TRUE, FALSE, 2 * PADDING);
+#: src/settings.c:1071
+msgid "WP Label"
+msgstr "Waypointラベル"
+
+#: src/settings.c:1072
+msgid "Big display"
+msgstr "拡大表示"
+
+#: src/settings.c:1073
+msgid "Display color"
+msgstr ""
+
+#: src/settings.c:1101
+msgid "Switch units to statute miles"
+msgstr "単位をstatute milesに切替"
+
+# ;;; ???
+#: src/settings.c:1103
+msgid "Switch units to nautical miles"
+msgstr "単位をnautical milesに切替"
+
+# ;;; ???
+#: src/settings.c:1105
+msgid "Switch units to metric system (Kilometers)"
+msgstr "単位をKm(キロメーター)に切替"
+
+#: src/settings.c:1110
+msgid ""
+"If selected display latitude and longitude in decimal degrees, otherwise in "
+"degree, minutes and seconds notation"
+msgstr ""
+"選択すると、緯度経度を小数度数で表示する(例N45.50°)選択しないと、度、分、秒で"
+"表示する(例N45°30′00″)"
+
+#: src/settings.c:1115
+#, fuzzy
+msgid ""
+"Set the german expedia server(expedia.de) as default download server. Use "
+"this if you are in Europe"
+msgstr "地図ダウンロードサーバにExpediaを設定"
+
+#: src/settings.c:1119
+msgid "Set Expedia as default download server"
+msgstr "地図ダウンロードサーバにExpediaを設定"
+
+#: src/settings.c:1122
+msgid "Switches shadows on map on or off"
+msgstr "地図の陰影付き表示のON/OFF"
+
+#: src/settings.c:1126
+msgid "Switches between different type of frame ornaments"
+msgstr "ウィンドウフレーム装飾の切替え"
+
+#: src/settings.c:1131
+#, c-format
+msgid ""
+"Select the approx. maximum CPU load, use 20-30% on notebooks while on "
+"battery to save battery power. This effects the refresh rate of the map "
+"screen"
+msgstr ""
+"概算最大CPUロードを選択して下さい。ノートPCの場合、バッテリーの節約のため20-"
+"30%の値を使って下さい。 この設定は地図画面のリフレッシュレートに影響します"
+
+#: src/settings.c:1136
+msgid "If activated, pointer moves to target in simulation mode"
+msgstr "設定すると、シミュレーションモードで現在位置が目標へ移動する"
+
+#: src/settings.c:1140
+msgid "Set here the color of the drawn track"
+msgstr ""
+
+#: src/settings.c:1144
+msgid ""
+"Path to your map files. In the specified directory also the index file "
+"map_koord.txt must be present."
+msgstr ""
+"カスタム地図ファイルのあるディレクトリパス名。 指定ディレクトリにはインデック"
+"スファイルmap_koord.txtも必要"
+
+#: src/settings.c:1149
+msgid ""
+"If selected, gpsdrive try to use GARMIN mode if possible. Unselect if you "
+"only have a NMEA device."
+msgstr ""
+"これが選択されると、gpsdriveはGARMINモードでの通信を試す。NMEA機器しかない時"
+"は選択しない"
+
+#: src/settings.c:1154
+msgid ""
+"Set here the baud rate of your GPS device, NMEA devices usually have a speed "
+"of 4800 baud"
+msgstr ""
+
+#: src/settings.c:1159
+msgid ""
+"If selected, gpsdrive try to use differential GPS over IP. You must have an "
+"internet connection and a DGPS capable GPS receiver. Works only in NMEA mode!"
+msgstr ""
+"選択されると、gpsdriveはdifferentialGpsOverIPを利用しようとする。インターネッ"
+"ト接続がありDGPSが利用可能なGPS受信機専用。NMEAモードだけ!"
+
+#: src/settings.c:1164
+msgid ""
+"Select this if you have a DeLorme Earthmate GPS receiver. The StartGPSD "
+"button will provide gpsd with the needed additional parameters"
+msgstr ""
+"DeLormeEarthmateGPS受信機を使用するときはこれを選択する。GPSD起動ボタンは、必"
+"要な付加パラメータを渡してgpsdを起動する"
+
+#: src/settings.c:1169
+msgid ""
+"Select this if you want to use of the direct serial connection. If disabled, "
+"you can use the receiver only through gpsd. On the other hand, the direct "
+"serial connection needs no gpsd running and detects the working receiver on "
+"startup"
+msgstr ""
+
+#: src/settings.c:1174
+msgid "Specify the serial interface where the GPS is connected"
+msgstr "GPSが接続されているシリアルインターフェースを指定する"
+
+#: src/settings.c:1179
+msgid ""
+"Switches automagically to night mode if it is dark outside. Press 'N' key to "
+"turn off nightmode."
+msgstr ""
+"周囲が暗くなったら、自動的に夜間照明モードになる。ライトを消すには'N'キーを押"
+"す。"
+
+#: src/settings.c:1183
+msgid "Switches night mode on. Press 'N' key to turn off nightmode."
+msgstr "夜間照明モードをONに切替。OFFに戻すには'N'キーを押す。"
+
+#: src/settings.c:1186
+msgid "Switches night mode off"
+msgstr "夜間照明モードをOFFに切替"
+
+#: src/settings.c:1190
+msgid "Here you can set the font for the waypoint labels"
+msgstr "一覧から選択されたwaypointを削除します"
+
+#: src/settings.c:1195
+msgid "Here you can set the font for the big display for Speed and Distance"
+msgstr "ここで速度と距離の拡大表示用のフォントを設定できます"
+
+#: src/settings.c:1199
+#, fuzzy
+msgid ""
+"Here you can set the color for the big display for speed, distance and "
+"altitude"
+msgstr "ここで速度と距離の拡大表示用のフォントを設定できます"
+
+#: src/settings.c:1377
+msgid "Geo information"
+msgstr "Geo information"
+
+# ;;; ???
+#: src/settings.c:1379
+msgid "Geo info"
+msgstr "Geo info"
+
+# ;;; ???
+#: src/settings.c:1390
+msgid "Sunrise"
+msgstr "日の出"
+
+#: src/settings.c:1392
+msgid "Sunset"
+msgstr "日没"
+
+#: src/settings.c:1395
+msgid "Standard"
+msgstr "標準"
+
+#: src/settings.c:1397
+msgid "Transit"
+msgstr "通過"
+
+#: src/settings.c:1399
+msgid "GPS-Time"
+msgstr ""
+
+#: src/settings.c:1401
+msgid "Astro."
+msgstr "Astro."
+
+# ;;; ???
+#: src/settings.c:1403
+msgid "Naut."
+msgstr "Naut."
+
+#: src/settings.c:1405
+msgid "Civil"
+msgstr "Civil"
+
+#: src/settings.c:1407
+msgid "Timezone"
+msgstr "Timezone"
+
+#: src/settings.c:1409
+msgid "Store TZ"
+msgstr ""
+
+#: src/settings.c:1419
+msgid ""
+"If selected, the timezone is stored, otherwise your actual timezone will "
+"automatically used"
+msgstr ""
+
+#: src/settings.c:1453
+msgid "Night"
+msgstr "夜間"
+
+#: src/settings.c:1455
+msgid "Day"
+msgstr "日中"
+
+#: src/settings.c:1592 src/settings.c:1594 src/settings.c:1597
+msgid "Unit:"
+msgstr "Unit:"
+
+#: src/settings.c:1592
+msgid "miles"
+msgstr "miles"
+
+#: src/settings.c:1595
+msgid "nautic miles/knots"
+msgstr "nautic miles/knots"
+
+#: src/settings.c:1597
+msgid "kilometers"
+msgstr "Km(kilometers)"
+
+#: src/settings.c:1612
+msgid "Trip information"
+msgstr "Trip information"
+
+#: src/settings.c:1614
+msgid "Trip info"
+msgstr "Trip info"
+
+#: src/settings.c:1628
+msgid "Odometer"
+msgstr "移動距離"
+
+#: src/settings.c:1630
+msgid "Total time"
+msgstr "経過時間"
+
+#: src/settings.c:1632
+msgid "Av. speed"
+msgstr "平均速度"
+
+#: src/settings.c:1634
+msgid "Max. speed"
+msgstr "最高速度"
+
+#: src/settings.c:1658
+msgid "Reset"
+msgstr "Reset"
+
+#: src/settings.c:1663
+msgid "Resets the trip values to zero"
+msgstr "移動距離をゼロにリセットします"
+
+#: src/settings.c:1732
+msgid "You should change your name in the first field!"
+msgstr "最初のフィールドの貴方の名前を変更して下さい"
+
+#: src/settings.c:1918
+msgid "Show position newer as"
+msgstr "地図上にwaypointを表示"
+
+#: src/settings.c:1920
+msgid "Friends server setup"
+msgstr "フレンズサーバの設定"
+
+# ;;; ???
+#: src/settings.c:1921
+msgid "Friends"
+msgstr "フレンズ"
+
+#: src/settings.c:1933
+msgid "Days"
+msgstr "日中"
+
+#: src/settings.c:1934
+msgid "Hours"
+msgstr "時間"
+
+#: src/settings.c:1935
+msgid "Minutes"
+msgstr "分"
+
+#: src/settings.c:1941
+msgid "Your name"
+msgstr "氏名"
+
+#: src/settings.c:1946
+msgid ""
+"Set here your name which should be shown near your vehicle. You may use "
+"spaces here!"
+msgstr ""
+"貴方の車のそばに表示される名前をここにセットして下さい。空白を使うこともでき"
+"ます!"
+
+#: src/settings.c:1958
+msgid "Server name"
+msgstr "サーバ名"
+
+#: src/settings.c:1963
+msgid ""
+"Set here the full qualified host name (i.e. www.gpsdrive.cc) of your friends "
+"server, then you have to press the \"Lookup\" button!"
+msgstr ""
+"フレンズサーバの完全正規化ホスト名 (i.e. www.gpsdrive.cc) をここにセットして "
+"ください、その後 \"Lookup\" ボタンを押して下さい!"
+
+#: src/settings.c:1972
+msgid "Lookup"
+msgstr "Lookup"
+
+#: src/settings.c:1980
+msgid ""
+"You have to press the \"Lookup\" button to resolve the friends server name!"
+msgstr "フレンズサーバ名の解決には、\"Lookup\" ボタンを押す必要があります!"
+
+#: src/settings.c:1991
+msgid "Set here the color of the label displayed at friends position"
+msgstr ""
+
+#: src/settings.c:1997
+msgid "Friends server IP"
+msgstr "フレンズサーバのIP"
+
+#: src/settings.c:2002
+msgid ""
+"Set here the IP adress (i.e. 127.0.0.1) if you don't set the hostname above"
+msgstr ""
+"上のホスト名をセットしていない時は、ここにIPアドレス (例 127.0.0.1)をセットし"
+"て下さい"
+
+#: src/settings.c:2007 src/settings.c:2012 src/settings.c:2016
+msgid ""
+"Set here the time limit in which the friends position is shown. Older "
+"positions are not shown."
+msgstr ""
+"フレンズ位置表示のタイムリミットをセットして下さい。それより古い位置データは"
+"表示されません。"
+
+#: src/settings.c:2028
+msgid "Use friends server"
+msgstr "フレンズサーバ使用"
+
+#: src/settings.c:2036
+msgid ""
+"Enable/disable use of friends server. You must enter a Username, don't use "
+"the default name!"
+msgstr ""
+"フレンズサーバの使用を有効/無効にする。 Usernameは入力して下さい、デフォルト"
+"の名前を使用しないように!"
+
+#: src/settings.c:2039
+msgid ""
+"If you enable the friendsserver mode,\n"
+"<span color=\"red\">everyone</span> using the same server\n"
+"can see your position!"
+msgstr ""
+"フレンドサーバモードを有効にすると、\n"
+"その同じサーバを使っている<span color=\"red\">誰も</span> が\n"
+"あなたの位置を知ることになります!"
+
+#: src/settings.c:2094
+msgid "SQL selection criterias"
+msgstr "SQL選択基準"
+
+# ;;; ???
+#: src/settings.c:2095
+msgid "SQL"
+msgstr "SQL"
+
+#: src/settings.c:2121
+msgid "Dist. limit[km] "
+msgstr "制限距離[Km]"
+
+#: src/settings.c:2126
+msgid "If enabled, show waypoints only within this distance"
+msgstr "選択すると、指定距離以内のwaypointだけ表示する"
+
+# ;;; ???
+#: src/settings.c:2142
+msgid "Enable/disable distance selection"
+msgstr "距離選択を有効/無効にする"
+
+#: src/settings.c:2151
+#, fuzzy
+msgid "Show no_ssid "
+msgstr "WP表示"
+
+#: src/settings.c:2162
+msgid ""
+"If enabled, WLANs with no SSID are shown, because this is perhaps useless, "
+"you can disable it here"
+msgstr ""
+
+#: src/settings.c:2168
+msgid "Selection mode"
+msgstr "選択モード"
+
+#: src/settings.c:2170
+msgid "include"
+msgstr "include"
+
+# ;;; ???
+#: src/settings.c:2173
+msgid "exclude"
+msgstr "exclude"
+
+# ;;; ???
+#: src/settings.c:2177
+msgid ""
+"Show only waypoints where the type field contains one of the selected words"
+msgstr "型フィールドに指定ワードを含むwaypointだけ表示する"
+
+#: src/settings.c:2181
+msgid ""
+"Show only waypoints where the type field doesn't contain any the selected "
+"words"
+msgstr "型フィールドに指定ワードを含まないwaypointだけ表示する"
+
+#: src/fly.c:149
+msgid "Aeronautical settings"
+msgstr "航空関連設定"
+
+#: src/fly.c:151
+msgid "Fly"
+msgstr "飛行"
+
+#: src/fly.c:158
+msgid "Plane mode"
+msgstr "飛行機モード"
+
+#: src/fly.c:165
+msgid "Use VFR"
+msgstr "Use VFR"
+
+#: src/fly.c:171
+msgid "Use IFR"
+msgstr "Use IFR"
+
+#: src/fly.c:181
+msgid "max. horizontal deviation "
+msgstr "最大水平偏差 "
+
+#: src/fly.c:183
+msgid "max. vertical deviation "
+msgstr "最大垂直偏差"
+
+#: src/fly.c:198
+msgid "disable vert. deviation warning above 5000ft MSL"
+msgstr "5000ft MSL以上では垂直偏差警告を行わない"
+
+#: src/nautic.c:103
+msgid "Nautic settings"
+msgstr "航海関連設定"
+
+#. if (debug)
+#: src/gpssql.c:215
+#, c-format
+msgid ""
+"\n"
+"SQL: connected to %s as %s using %s\n"
+msgstr ""
+"\n"
+"SQL: connected to %s as %s using %s\n"
+
+#: src/gpssql.c:278
+#, c-format
+msgid "rows inserted: %d\n"
+msgstr "rows inserted: %d\n"
+
+#: src/gpssql.c:293
+#, c-format
+msgid "last index: %d\n"
+msgstr "last index: %d\n"
+
+#: src/gpssql.c:314
+#, c-format
+msgid "rows deleted: %d\n"
+msgstr "rows deleted: %d\n"
+
+#: src/gpssql.c:366 src/gpssql.c:372
+#, c-format
+msgid "Loaded user defined icon %s\n"
+msgstr ""
+
+#: src/gpssql.c:455
+#, c-format
+msgid "%d(%d) rows read in %.2f seconds\n"
+msgstr "%d(%d) rows read in %.2f seconds\n"
+
+#: src/friends.c:363
+#, fuzzy
+msgid "unknown"
+msgstr "Unknown"
+
+#: src/friendsd.c:472
+msgid "server: please don't run me as root\n"
+msgstr ""
+
+#: src/friendsd.c:484
+#, c-format
+msgid ""
+"\n"
+"Usage:\n"
+"   %s -n servername\n"
+"provides a name for your server\n"
+msgstr ""
+
+#: src/gpsnasamap.c:189
+#, c-format
+msgid "could not create output map file %s!\n"
+msgstr ""
+
+#. g_signal_connect (window, "destroy",
+#. G_CALLBACK (gtk_widget_destroyed), &window);
+#: src/gpsnasamap.c:204
+msgid "Creating map..."
+msgstr ""
+
+#: src/gpsnasamap.c:212
+msgid "Creating a temporary map from NASA satellite images"
+msgstr ""
+
+#: src/gpsnasamap.c:219
+#, c-format
+msgid "converting map for latitude: %f and longitude: %f ...\n"
+msgstr ""
+
+#: src/gpsnasamap.c:324
+msgid ""
+"\n"
+"You can permanently add this map file with following line in your\n"
+"map_koord.txt (rename the file!):\n"
+msgstr ""
+
+#: src/gpsserial.c:252
+msgid "waiting for thread to stop\n"
+msgstr ""
+
+#: src/gpsserial.c:275
+#, c-format
+msgid ""
+"\n"
+"error opening %s(%d)\n"
+msgstr ""
+
+#: src/gpsserial.c:278
+#, c-format
+msgid "successfull opened %s\n"
+msgstr ""
+
+#: src/gpsserial.c:284
+msgid "switching WAAS/EGNOS on\n"
+msgstr ""
+
+#: src/gpsserial.c:290
+msgid "switching WAAS/EGNOS off\n"
+msgstr ""
+
+#~ msgid "Set Mapblast as default download server"
+#~ msgstr "地図ダウンロードサーバにMapblastを設定"
+
+#~ msgid "Enable?"
+#~ msgstr "有効?"
+
+#~ msgid "Sat level"
+#~ msgstr "電波強度"
+
+#, fuzzy
+#~ msgid "Simulation"
+#~ msgstr "シミュレーションモード"
+
+#, fuzzy
+#~ msgid "Sim.mode"
+#~ msgstr "シミュレーションモード"
+
+#~ msgid "Yes, please start gpsd"
+#~ msgstr "gpsdèµ·å‹•"
+
+#~ msgid "No, start simulation"
+#~ msgstr "シミュレーションモード"
+
+#~ msgid ""
+#~ "Neither gpsd nor GARMIN device detected!\n"
+#~ "Should I start gpsd (NMEA mode) for you?"
+#~ msgstr ""
+#~ "gpsdもGARMINデバイスもみつかりません!\n"
+#~ "gpsd (NMEA mode) を起動しますか?"
+
+# ;;; ???
+#~ msgid "-n X  Select display name on friends server, X is i.e. Fritz\n"
+#~ msgstr "-n X  フレンズサーバでの表示名選択、Xは例えば、 Fritz\n"
+
+#~ msgid ""
+#~ "\n"
+#~ "This parameter is obsolet, use settings menu\n"
+#~ msgstr ""
+#~ "\n"
+#~ "指定されたパラメータは古い形式です。設定メニューを使って下さい\n"
+
+#~ msgid "UTC "
+#~ msgstr "UTC"
+
+#, fuzzy
+#~ msgid "Your friendsserver: %s"
+#~ msgstr "フレンズサーバ使用"
+
+#~ msgid "Cancel"
+#~ msgstr "中止"
+
+#, fuzzy
+#~ msgid "/Misc. Menu/Maps"
+#~ msgstr "トラックファイルを選ぶ"
+
+#~ msgid "Import"
+#~ msgstr "インポート"
+
+#~ msgid "Let you import and calibrate your own map"
+#~ msgstr "カスタム地図をインポートする"
+
+#~ msgid ""
+#~ "Left mouse button         : Set position (usefull in simulation mode)\n"
+#~ msgstr ""
+#~ "左ボタンクリック   : 現在位置をセット (シミュレーションモードで便利)\n"
+
+#~ msgid "Right mouse button        : Set target directly on the map\n"
+#~ msgstr "右ボタンクリック   : 地図上で目標をせっト\n"
+
+#~ msgid "Middle mouse button       : Display position again\n"
+#~ msgstr "中ボタンクリック   : 現在位置を再表示する\n"
+
+#~ msgid "Shift left mouse button   : smaller map\n"
+#~ msgstr "シフトキーと左ボタンクリック   : 地図を縮小\n"
+
+# ;;; ???
+#~ msgid "Shift right mouse button  : larger map\n"
+#~ msgstr "シフトキーと右ボタンクリック   : 地図を拡大\n"
+
+# ;;; ???
+#~ msgid ""
+#~ "Control left mouse button : Set a waypoint (mouse position) on the map\n"
+#~ msgstr "Cntlキーと左ボタンクリック   : マウス位置にwaypointをセット\n"
+
+#~ msgid ""
+#~ "Control right mouse button: Set a waypoint at current position on the "
+#~ "map\n"
+#~ "\n"
+#~ msgstr ""
+#~ "Cntlキーと右ボタンクリック   : 現在位置にwaypointをセット\n"
+#~ "\n"
+
+#~ msgid "j    : switch to next waypoint in route mode\n"
+#~ msgstr "j    : ルートモードで次のwaypointへ切替\n"
+
+# ;;; ???
+#~ msgid "x    : add waypoint at current position\n"
+#~ msgstr "x    : 現在位置にwaypointを追加\n"
+
+# ;;; ???
+#~ msgid ""
+#~ "y    : add waypoint at mouse cursor position\n"
+#~ "\n"
+#~ msgstr ""
+#~ "y    : 現在位置にwaypointを追加\n"
+#~ "\n"
+
+#~ msgid ""
+#~ " letter in the button text. Press the underlined key together with the "
+#~ msgstr "の文字がボタンに書かれる。下線付の文字のキーを"
+
+#~ msgid "ALT-key"
+#~ msgstr "ALT-キーと一緒に押す"
+
+#~ msgid "."
+#~ msgstr "。"
+
+#~ msgid "You can move on the map by selecting the "
+#~ msgstr "メニュー上で"
+
+#~ msgid "Position-Mode"
+#~ msgstr "Position-Mode"
+
+#~ msgid ""
+#~ "Suggestions welcome!\n"
+#~ "\n"
+#~ msgstr ""
+#~ "ご意見、ご助言お待ちしてます!\n"
+#~ "\n"
+
+#~ msgid ""
+#~ "\n"
+#~ "\n"
+#~ "GpsDrive is a project with no comercial background. \n"
+#~ "\n"
+#~ msgstr ""
+#~ "\n"
+#~ "\n"
+#~ "GpsDriveは商業的背景をもたないプロジェクトです。 \n"
+#~ "\n"
+
+#~ msgid "To do so, just go to"
+#~ msgstr "そのためには、ただ"
+
+#~ msgid "and click on the"
+#~ msgstr "へ行って"
+
+#~ msgid ""
+#~ "button.\n"
+#~ "\n"
+#~ msgstr "ボタンをクリックするだけです。\n"
+
+#~ msgid ""
+#~ "Thank you very much for your donation!\n"
+#~ "\n"
+#~ msgstr ""
+#~ "皆様の御寄付に感謝致します!\n"
+#~ "\n"
+
+#, fuzzy
+#~ msgid "/Operations Menu"
+#~ msgstr "トラックファイルを選ぶ"
+
+#, fuzzy
+#~ msgid "/ Messages"
+#~ msgstr "  Message  "
+
+#, fuzzy
+#~ msgid "/ Help"
+#~ msgstr "ヘルプ"
+
+#~ msgid "Load and display a previous stored track file"
+#~ msgstr "前回の軌跡ファイルから軌跡をロードし表示する"
+
+#~ msgid "Font3"
+#~ msgstr "フォント3"
+
+#~ msgid "Distance to "
+#~ msgstr "地点への距離 "
+
+#, fuzzy
+#~ msgid "Sel:"
+#~ msgstr "目標選択"
+
+#, fuzzy
+#~ msgid "Time"
+#~ msgstr "Timezone"
+
+#~ msgid "Friendsicon loaded"
+#~ msgstr "フレンズアイコンがロードされました"
+
+# ;;; ???
+#~ msgid "Menu window"
+#~ msgstr "Menu window"
+
+# ;;; ???
+#~ msgid "Status window"
+#~ msgstr "Status window"
+
+#, fuzzy
+#~ msgid "can't open socket for friendsserver "
+#~ msgstr "can't open socket for port "
+
+#~ msgid "Slow CPU"
+#~ msgstr "低速 CPU"
+
+#~ msgid ""
+#~ "Select, if your CPU is very slow ( < PII MMX/233MHz). This reduces the "
+#~ "framerate to 1 frame/second."
+#~ msgstr ""
+#~ "低速CPU(<PII_MMX/233MHz)の時これを設定する。フレームレートを毎秒1フレーム"
+#~ "に減速する"
+
+#~ msgid "UTC (GPS)"
+#~ msgstr "UTC (GPS)"
+
+#~ msgid "Ok"
+#~ msgstr "Ok"
+
+# ;;; ???
+#~ msgid "Close"
+#~ msgstr "閉じる"
+
+#~ msgid "OK"
+#~ msgstr "OK"
+
+#~ msgid "Delete WP"
+#~ msgstr "WP削除"
+
+#~ msgid "Quit"
+#~ msgstr "終了"
+
+#~ msgid "Load track"
+#~ msgstr "軌跡ロード"
+
+#~ msgid "Setup"
+#~ msgstr "設定"
+
+#~ msgid ""
+#~ "GpsDrive Help\n"
+#~ "\n"
+#~ msgstr ""
+#~ "GpsDriveヘルプ\n"
+#~ "\n"
+
+#~ msgid ""
+#~ "GPSDRIVE (c) 2001-2003 Fritz Ganter <ganter at ganter.at>\n"
+#~ "\n"
+#~ msgstr ""
+#~ "GPSDRIVE (c) 2001-2003 Fritz Ganter <ganter at ganter.at>\n"
+#~ "\n"
+
+#~ msgid "Website: www.kraftvoll.at/software\n"
+#~ msgstr "Website: www.kraftvoll.at/software\n"
+
+#~ msgid "+    : Zoom in\n"
+#~ msgstr "+    : 拡大\n"
+
+#~ msgid "-    : Zoom out\n"
+#~ msgstr "-    : 縮小\n"
+
+#~ msgid "s    : larger map\n"
+#~ msgstr "s    : 縮尺の大きい地図に切替\n"
+
+# ;;; ???
+#~ msgid "a    : smaller map\n"
+#~ msgstr "a    : 縮尺の小さい地図に切替\n"
+
+# ;;; ???
+#~ msgid "t    : select target\n"
+#~ msgstr "t    : 目標選択\n"
+
+#~ msgid "d    : download map\n"
+#~ msgstr "d    : 地図ダウンロード\n"
+
+#~ msgid "l    : load track\n"
+#~ msgstr "l    : 軌跡ロード\n"
+
+#~ msgid "h    : show help\n"
+#~ msgstr "h    : ヘルプ表示\n"
+
+#~ msgid "q    : quit program\n"
+#~ msgstr "q    : プログラム終了\n"
+
+#~ msgid "b    : toggle auto best map\n"
+#~ msgstr "b    : 最良地図自動選択ON/OFF\n"
+
+#~ msgid "w    : toggle show waypoints\n"
+#~ msgstr "w    : waypoint表示ON/OFF\n"
+
+#~ msgid "o    : toggle show tracks\n"
+#~ msgstr "o    : 軌跡表示ON/OFF\n"
+
+#~ msgid "u    : enter setup menu\n"
+#~ msgstr "u    : 設定メニューへ\n"
+
+#~ msgid "n    : in nightmode: toogles night display on/off\n"
+#~ msgstr "n    : 夜間照明モード: ディスプレー照明ON/OFF\n"
+
+#~ msgid "   Ok   "
+#~ msgstr "   Ok   "

Added: packages/gpsdrive/branches/etch/po/nl.gmo
===================================================================
(Binary files differ)


Property changes on: packages/gpsdrive/branches/etch/po/nl.gmo
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: packages/gpsdrive/branches/etch/po/nl.po
===================================================================
--- packages/gpsdrive/branches/etch/po/nl.po	                        (rev 0)
+++ packages/gpsdrive/branches/etch/po/nl.po	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,2602 @@
+# Deutsch translation of PACKAGE.
+# Copyright (C) 2001 Free Software Foundation, Inc.
+# Fritz Ganter <ganter at ganter.at>, 2001.
+# Fritz Ganter <ganter at ganter.at>, 2001.
+# Fritz Ganter <ganter at ganter.at>, 2001.
+# Fritz Ganter <ganter at ganter.at>, 2002.
+# Fritz Ganter <ganter at ganter.at>, 2002.
+# Fritz Ganter <ganter at ganter.at>, 2002.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-03-03 21:47+0100\n"
+"PO-Revision-Date: 2004-01-13 22:39+0100\n"
+"Last-Translator: \n"
+"Language-Team:  <en at li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-15\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 0.9.6\n"
+
+#: src/gpsdrive.c:2179
+msgid "/_Misc. Menu"
+msgstr "/_Misc. Menu"
+
+#: src/gpsdrive.c:2180
+msgid "/_Misc. Menu/Maps"
+msgstr "/_Misc. Menu/Kaarten"
+
+#: src/gpsdrive.c:2181
+msgid "/_Misc. Menu/Maps/_Import map"
+msgstr "/_Misc. Menu/Kaarten/_Kaart importeren"
+
+#: src/gpsdrive.c:2185
+msgid "/_Misc. Menu/Maps/_Map Manager"
+msgstr "/_Misc. Menu/Kaarten/_Kaart Manager"
+
+#: src/gpsdrive.c:2187
+msgid "/_Misc. Menu/_Waypoint Manager"
+msgstr "/_Misc. Menu/_Markeringen Manager"
+
+#: src/gpsdrive.c:2189
+msgid "/_Misc. Menu/_Load track file"
+msgstr "/_Misc. Menu/_Selecteer een route bestand"
+
+#: src/gpsdrive.c:2193
+msgid "/_Misc. Menu/Messages"
+msgstr "/_Misc. Menu/Berichten"
+
+#: src/gpsdrive.c:2194
+msgid "/_Misc. Menu/Messages/Send message to mobile target"
+msgstr "/_Misc. Menu/Berichten/Stuur bericht naar ander voertuig"
+
+#: src/gpsdrive.c:2199
+msgid "/_Misc. Menu/Help"
+msgstr "/_Misc. Menu/Help"
+
+#: src/gpsdrive.c:2200
+msgid "/_Misc. Menu/Help/About"
+msgstr "/_Misc. Menu/Help/Over"
+
+#: src/gpsdrive.c:2202
+msgid "/_Misc. Menu/Help/Topics"
+msgstr "/_Misc. Menu/Help/Onderwerpen"
+
+#: src/gpsdrive.c:2271
+msgid "  Message  "
+msgstr "  Bericht  "
+
+#: src/gpsdrive.c:2315 src/gpsdrive.c:12145
+#, fuzzy
+msgid "Stop GPSD"
+msgstr "Start GPSD"
+
+#: src/gpsdrive.c:2317 src/gpsdrive.c:12147
+msgid "Stop GPSD and switch to simulation mode"
+msgstr ""
+
+#: src/gpsdrive.c:2339 src/gpsdrive.c:11261
+msgid "Start GPSD"
+msgstr "Start GPSD"
+
+#: src/gpsdrive.c:2341 src/gpsdrive.c:12153
+msgid "Starts GPSD for NMEA mode"
+msgstr "Start GPSD voor NMEA modus"
+
+#. displays zoom factor of map
+#: src/gpsdrive.c:2354 src/gpsdrive.c:2355 src/gpsdrive.c:2356
+#: src/gpsdrive.c:6264 src/gpsdrive.c:6273 src/gpsdrive.c:11484
+#: src/gpsdrive.c:11491 src/gpsdrive.c:11498 src/gpsdrive.c:11555
+#: src/gpsdrive.c:11560 src/gpsdrive.c:11566 src/gpsdrive.c:11602
+#: src/gpsdrive.c:11609 src/settings.c:1425 src/settings.c:1434
+#: src/settings.c:1443 src/settings.c:1468 src/settings.c:1478
+#: src/settings.c:1487 src/settings.c:1498 src/settings.c:1507
+#: src/settings.c:1517
+msgid "n/a"
+msgstr "n/b"
+
+#: src/gpsdrive.c:2366 src/gpsdrive.c:10245
+msgid ""
+"\n"
+"no garmin support compiled in\n"
+msgstr ""
+"\n"
+"Geen garmin ondersteuning meegecompileerd\n"
+
+#: src/gpsdrive.c:2387 src/gpsdrive.c:3136
+msgid "Simulation mode"
+msgstr "Simulatie modus"
+
+#: src/gpsdrive.c:2409
+msgid "got RMC data, using it\n"
+msgstr ""
+
+#: src/gpsdrive.c:2498 src/gpsdrive.c:11936
+msgid "Map"
+msgstr "Kaart"
+
+#. if (debug)
+#: src/gpsdrive.c:2661
+msgid "got no RMC data, using GGA data\n"
+msgstr ""
+
+#: src/gpsdrive.c:2912
+#, fuzzy
+msgid "Timeout getting data from GPS-Receiver!"
+msgstr "Geen connectie met GPS-ontvanger!"
+
+#: src/gpsdrive.c:2959 src/gpsdrive.c:3008 src/gpsdrive.c:3113
+#: src/gpsdrive.c:3199 src/gpsdrive.c:3324
+msgid "Press middle mouse button for navigation"
+msgstr "Druk op de middelste muis knop voor navigatie"
+
+#: src/gpsdrive.c:2963
+#, fuzzy, c-format
+msgid "Direct serial connection to %s"
+msgstr "Verbinding met %s"
+
+#: src/gpsdrive.c:3013 src/gpsdrive.c:3045 src/gpsdrive.c:3205
+#: src/gpsdrive.c:3330
+msgid "Not enough satellites in view!"
+msgstr "Niet genoeg satelieten in zicht!"
+
+#: src/gpsdrive.c:3117
+msgid "GARMIN Mode"
+msgstr "GARMIN Modus"
+
+#: src/gpsdrive.c:3134
+msgid "No GPS used"
+msgstr "Geen GPS in gebruik"
+
+#: src/gpsdrive.c:3138
+msgid "Press middle mouse button for sim mode"
+msgstr "Klik op de middelste muis knop voor simulatie modus"
+
+#: src/gpsdrive.c:3477
+#, c-format
+msgid "Distance to HomeBase: %.1fkm, max. allowed: %.1fkm\n"
+msgstr "Afstand naar Thuisbasis: %.1fkm, max. toegestaan: %.1fkm\n"
+
+#: src/gpsdrive.c:3554 src/gpsdrive.c:3784 src/gpsdrive.c:6665
+#: src/gpsdrive.c:8534 src/gpsdrive.c:9000
+msgid "To"
+msgstr "Naar"
+
+#: src/gpsdrive.c:3866
+msgid "Error in line "
+msgstr "Fout in regel "
+
+#: src/gpsdrive.c:3868
+msgid ""
+"I have found filenames in map_koord.txt which are\n"
+"not map_* or top_* files. Please rename them and change the entries in\n"
+"map_koord.txt.  Use map_* for street maps and top_* for topographical\n"
+"maps.  Otherwise, the maps will not be displayed!"
+msgstr ""
+"Ik vond een bestandsnaam in het\n"
+"map_koord.txt bestand,\n"
+"welke geen map_* of top_* bestand is!\n"
+"Hernoem deze a.u.b. en verander de\n"
+"verwijzing in de map_koord.txt file.\n"
+"Anders kunnen deze kaarten niet getoond\n"
+"worden!\n"
+"\n"
+"Gebruik map_* voor stratenkaarten en \n"
+"top_* voor topografische kaarten."
+
+#: src/gpsdrive.c:4229
+msgid "Auto"
+msgstr "Automatisch"
+
+#: src/gpsdrive.c:4440
+#, fuzzy
+msgid "Warning!"
+msgstr "Bearing"
+
+#: src/gpsdrive.c:4441
+msgid "You should not start GpsDrive as user root!!!"
+msgstr ""
+
+#: src/gpsdrive.c:4756 src/gpsdrive.c:8145 src/gpsdrive.c:8154
+#: src/gpsdrive.c:11661 src/gpsdrive.c:11670
+#, fuzzy
+msgid "mi/h"
+msgstr "mi/h"
+
+#: src/gpsdrive.c:4758 src/gpsdrive.c:8147 src/gpsdrive.c:8156
+#: src/gpsdrive.c:11663 src/gpsdrive.c:11672
+msgid "knots"
+msgstr "knopen"
+
+#: src/gpsdrive.c:4760 src/gpsdrive.c:8149 src/gpsdrive.c:8158
+#: src/gpsdrive.c:11665 src/gpsdrive.c:11674
+msgid "km/h"
+msgstr "km/h"
+
+#: src/gpsdrive.c:5088
+#, fuzzy
+msgid ""
+"\n"
+"Warning: unable to load gpsdriveanim.gif!\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+"\n"
+"Waarschuwing: Vriendicoon kon niet worden geladen!\n"
+"Installeer het programma als root met:\n"
+"make install\n"
+"\n"
+
+#. This string means North,East,South,West -- please translate the letters
+#: src/gpsdrive.c:5896
+msgid "NESW"
+msgstr "NOZW"
+
+#: src/gpsdrive.c:6064
+msgid "No map available for this position!"
+msgstr "Geen kaart beschikbaar voor deze positie!"
+
+#: src/gpsdrive.c:6258
+msgid "unused"
+msgstr "ongebruikt"
+
+#: src/gpsdrive.c:6362
+msgid "can't open NMEA output file"
+msgstr "Kan NMEA output file niet openen"
+
+#: src/gpsdrive.c:6473
+msgid " Mapfile could not be loaded:"
+msgstr " Kaart bestand kon niet worden geladen:"
+
+#: src/gpsdrive.c:6517
+msgid "Map found!"
+msgstr ""
+
+#: src/gpsdrive.c:6552
+msgid " Friendsicon could not be loaded:"
+msgstr "Vriendicoon kon niet worden geladen:"
+
+#: src/gpsdrive.c:6555
+msgid ""
+"\n"
+"Warning: unable to load friendsicon!\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+"\n"
+"Waarschuwing: Vriendicoon kon niet worden geladen!\n"
+"Installeer het programma als root met:\n"
+"make install\n"
+"\n"
+
+#: src/gpsdrive.c:6843
+msgid "Select coordinates and scale"
+msgstr "Selecteer coordinaten en schaal"
+
+#: src/gpsdrive.c:6846
+msgid "Download map"
+msgstr "Download kaart"
+
+#: src/gpsdrive.c:6872 src/gpsdrive.c:7911 src/gpsdrive.c:9209
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/gpsdrive.c:11792
+msgid "Latitude"
+msgstr "Breedtegraad"
+
+#: src/gpsdrive.c:6874 src/gpsdrive.c:7913 src/gpsdrive.c:9203
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/gpsdrive.c:11793
+msgid "Longitude"
+msgstr "Lengtegraad"
+
+#: src/gpsdrive.c:6876
+msgid "Map covers"
+msgstr "Kaart bereik"
+
+#: src/gpsdrive.c:6880
+msgid "Scale"
+msgstr "Schaal"
+
+#: src/gpsdrive.c:6882
+msgid "Map file name"
+msgstr "Kaart bestands naam"
+
+#: src/gpsdrive.c:6922 src/settings.c:958
+msgid "Expedia Germany"
+msgstr ""
+
+#: src/gpsdrive.c:6928 src/settings.c:964
+msgid "Expedia USA"
+msgstr ""
+
+#: src/gpsdrive.c:6934
+msgid "TopoZone(US Only)"
+msgstr ""
+
+#: src/gpsdrive.c:6943
+msgid ""
+"If selected, you download the map from the german expedia server (expedia.de)"
+msgstr ""
+
+#: src/gpsdrive.c:6947
+msgid ""
+"If selected, you download the map from the U.S. expedia server (expedia.com)"
+msgstr ""
+
+#: src/gpsdrive.c:6951
+msgid ""
+"If selected, you download the map from the TopoZone Server (US maps only)"
+msgstr ""
+
+#: src/gpsdrive.c:6977 src/gpsdrive.c:6981
+msgid ""
+"You can also select the position\n"
+"with a mouse click on the map."
+msgstr ""
+"Het is ook mogelijk de positie te selecteren door\n"
+"met de muis op de kaart te klikken."
+
+#: src/gpsdrive.c:6983
+msgid "Using Proxy and port:"
+msgstr "Gebruik maken van proxy en poort:"
+
+#: src/gpsdrive.c:7280 src/gpsdrive.c:7397
+msgid "can't open socket for port 80"
+msgstr "Kan socket voor poort 80 niet openen"
+
+#: src/gpsdrive.c:7282 src/gpsdrive.c:7285 src/gpsdrive.c:7309
+#: src/gpsdrive.c:7312 src/gpsdrive.c:7327 src/gpsdrive.c:7330
+#: src/gpsdrive.c:7399 src/gpsdrive.c:7404 src/gpsdrive.c:7407
+#: src/gpsdrive.c:7411 src/gpsdrive.c:7446 src/gpsdrive.c:7451
+#: src/gpsdrive.c:7454 src/gpsdrive.c:7458 src/gpsdrive.c:7473
+#: src/gpsdrive.c:7478 src/gpsdrive.c:7481 src/gpsdrive.c:7485
+#, c-format
+msgid "Connecting to %s FAILED!"
+msgstr "Verbinding met %s MISLUKT!"
+
+#: src/gpsdrive.c:7307 src/gpsdrive.c:7444
+msgid "Can't resolve webserver address"
+msgstr "Kan het adres van de webserver niet resolven"
+
+#: src/gpsdrive.c:7325 src/gpsdrive.c:7471
+msgid "unable to connect to Website"
+msgstr "Verbinding maken met website mislukt"
+
+#: src/gpsdrive.c:7353 src/gpsdrive.c:7542
+msgid "read from Webserver"
+msgstr "Lees van webserver"
+
+#: src/gpsdrive.c:7380 src/gpsdrive.c:7384 src/gpsdrive.c:7386
+#: src/gpsdrive.c:7389
+#, c-format
+msgid "Connecting to %s"
+msgstr "Verbinding met %s"
+
+#: src/gpsdrive.c:7499 src/gpsdrive.c:7503 src/gpsdrive.c:7505
+#: src/gpsdrive.c:7508
+#, c-format
+msgid "Now connected to %s"
+msgstr "Nu verbinding maken met %s"
+
+#: src/gpsdrive.c:7585
+#, c-format
+msgid "Downloaded %d kBytes"
+msgstr "%d kBytes gedownload"
+
+#: src/gpsdrive.c:7599
+msgid "Download FAILED!"
+msgstr "Downloaden MISLUKT!"
+
+#: src/gpsdrive.c:7601
+#, c-format
+msgid "Download finished, got %dkB"
+msgstr "Download, ter grootte van %dkB, geslaagd"
+
+#: src/gpsdrive.c:7772
+msgid "Select a map file"
+msgstr "Selecteer een kaart bestand"
+
+#: src/gpsdrive.c:7837
+msgid ""
+"How to calibrate your own maps? First, the map file\n"
+"must be copied into the"
+msgstr ""
+
+#: src/gpsdrive.c:7839
+#, fuzzy
+msgid ""
+"\n"
+"directory as .gif, .jpg or .png file and must have\n"
+"the size 1280x1024. The file names must be\n"
+"map_* for street maps or top_* for topographical maps!\n"
+"Load the file, select coordinates from waypoint list or\n"
+"type them in. Then click on the accept button."
+msgstr ""
+"Hoe calibreer ik mijn eigen kaarten?\n"
+"\n"
+"Allereerst moet de kaart in de ~/.gpsdrive directory gekopieerd worden als ."
+"gif, .jpg of ..png file en moet de grootte hebben van 1280x1024. De filenaam "
+"moet zijn: map_* voor stratenkaarten of top_* voor topografische kaarten!\n"
+"Laad het bestand in, selecteer de coordinaten van de waypoint lijst of type "
+"het in.\n"
+"Klik vervolgens op de accepteer knop."
+
+#: src/gpsdrive.c:7846
+#, fuzzy
+msgid ""
+"Now do the same for your second point and click on the\n"
+"finish button. The map can be used now."
+msgstr ""
+"Doe nu hetzelfde voor het tweede punt en klik op de \"einde\" knop. De kaart "
+"kan vervolgens gebruikt worden."
+
+#: src/gpsdrive.c:7851
+msgid "Import Assistant. Step 1"
+msgstr "Import assistent. Stap 1"
+
+#: src/gpsdrive.c:7853
+msgid "Import Assistant. Step 2"
+msgstr "Import assistent. Stap 2"
+
+#: src/gpsdrive.c:7858
+msgid "Accept first point"
+msgstr "Accepteer eerste punt"
+
+#: src/gpsdrive.c:7860
+msgid "Finish"
+msgstr "Einde"
+
+#: src/gpsdrive.c:7881
+msgid "Go up"
+msgstr "Naar boven"
+
+#: src/gpsdrive.c:7884
+msgid "Go left"
+msgstr "Naar links"
+
+#: src/gpsdrive.c:7887
+msgid "Go right"
+msgstr "Naar rechts"
+
+#: src/gpsdrive.c:7890
+msgid "Go down"
+msgstr "Naar beneden"
+
+#: src/gpsdrive.c:7893
+msgid "Zoom in"
+msgstr "Zoom in"
+
+#: src/gpsdrive.c:7896
+msgid "Zoom out"
+msgstr "Zoom uit"
+
+#: src/gpsdrive.c:7915
+msgid "Screen X"
+msgstr "Scherm X"
+
+#: src/gpsdrive.c:7917
+msgid "Screen Y"
+msgstr "Scherm Y"
+
+#: src/gpsdrive.c:7919
+msgid "Browse waypoint"
+msgstr "Zoek waypoint"
+
+#: src/gpsdrive.c:7950
+msgid "Browse filename"
+msgstr "Zoek bestandsnaam"
+
+#: src/gpsdrive.c:8043
+#, fuzzy
+msgid "GpsDrive Control"
+msgstr "GpsDrive Menu"
+
+#: src/gpsdrive.c:8154 src/gpsdrive.c:8156 src/gpsdrive.c:8158
+#: src/gpsdrive.c:11670 src/gpsdrive.c:11672 src/gpsdrive.c:11674
+#: src/settings.c:1025
+msgid "Speed"
+msgstr "Snelheid"
+
+#: src/gpsdrive.c:8375
+msgid ""
+"\n"
+"distance jump is more then 1000km/h speed, ignoring\n"
+msgstr ""
+"\n"
+"Snelheid verschil meer dan 1000 km/h, wordt genegeerd \n"
+
+#: src/gpsdrive.c:8597 src/friends.c:348
+#, fuzzy
+msgid "/Misc. Menu/Messages"
+msgstr "/Misc. Menu/Berichten"
+
+#: src/gpsdrive.c:8600
+#, fuzzy
+msgid "Sending message to friends server..."
+msgstr "Bericht wordt verstuurd vrienden server"
+
+#: src/gpsdrive.c:8673
+#, fuzzy
+msgid "Message for:"
+msgstr "Bericht voor:"
+
+#: src/gpsdrive.c:8714
+#, c-format
+msgid "Date: %s"
+msgstr ""
+
+#: src/gpsdrive.c:8727
+msgid "Sends your text to to selected computer using the friends server"
+msgstr ""
+
+#: src/gpsdrive.c:8999
+msgid "SELECTED"
+msgstr "GESELECTEERD"
+
+#: src/gpsdrive.c:9172
+msgid "Add waypoint name"
+msgstr "Toevoegen naam waypoint"
+
+#: src/gpsdrive.c:9231
+msgid " Waypoint name: "
+msgstr "Wegmarkering naam: "
+
+#: src/gpsdrive.c:9244
+#, fuzzy
+msgid " Waypoint type: "
+msgstr "Wegmarkering type: "
+
+#: src/gpsdrive.c:9489
+msgid "Name"
+msgstr "Naam"
+
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/settings.c:1018
+msgid "Distance"
+msgstr "Afstand"
+
+#: src/gpsdrive.c:9499
+#, fuzzy
+msgid "Please select message recipient"
+msgstr "Selecteer a.u.b. de ontvanger van het bericht"
+
+#: src/gpsdrive.c:9568 src/gpsdrive.c:9715
+msgid "Waypoint"
+msgstr "Wegmarkering"
+
+#: src/gpsdrive.c:9587
+msgid "Select reference point"
+msgstr "Selecteer uw referentie punt"
+
+#: src/gpsdrive.c:9591
+msgid "Please select your destination"
+msgstr "Selecteer a.u.b. uw bestemming"
+
+#: src/gpsdrive.c:9620
+msgid "Edit route"
+msgstr "Aanpassen route"
+
+#: src/gpsdrive.c:9622
+msgid "Create route"
+msgstr "Aanmaken route"
+
+#: src/gpsdrive.c:9693
+msgid "Create a route using some waypoints from this list"
+msgstr ""
+"Creeer een route door gebruik te maken van de wegmakeringen uit deze lijst"
+
+#: src/gpsdrive.c:9698
+msgid "Delete the selected waypoint from the waypoint list"
+msgstr "Wis de geselecteerde wegmarkering uit de lijst met wegmarkeringen"
+
+#: src/gpsdrive.c:9702
+#, fuzzy
+msgid "Jump to the selected waypoint"
+msgstr ""
+"Klik op item lijst om\n"
+"volgend waypoint te selecteren"
+
+#: src/gpsdrive.c:9729
+msgid "Define route"
+msgstr "Definieren route"
+
+#: src/gpsdrive.c:9737
+msgid "Start route"
+msgstr "Route beginnen"
+
+#: src/gpsdrive.c:9746
+msgid "Take all WP as route"
+msgstr "Gebruik alle WP als route"
+
+#: src/gpsdrive.c:9751
+msgid "Abort route"
+msgstr "Route afbreken"
+
+#: src/gpsdrive.c:9795
+msgid ""
+"Click on waypoints list\n"
+"to add waypoints"
+msgstr ""
+"Klik op waypoint lijst om\n"
+"waypoints toe te voegen"
+
+#: src/gpsdrive.c:9797
+msgid ""
+"Click on list item\n"
+"to select next waypoint"
+msgstr ""
+"Klik op item lijst om\n"
+"volgend waypoint te selecteren"
+
+#: src/gpsdrive.c:9838
+msgid ""
+"Create a route from all waypoints. Sorted with order in file, not distance."
+msgstr ""
+"Maak een route van alle wegmarkeringen. Sorteer met volgorde in bestand, "
+"niet in afstand."
+
+#: src/gpsdrive.c:9842
+msgid ""
+"Click here to start your journey. GpsDrive guides you through the waypoints "
+"in this list."
+msgstr ""
+"Klik hier om de reis te beginnen. GpsDrive navigeert u via de wegmarkeringen "
+"in deze lijst"
+
+#: src/gpsdrive.c:9845
+msgid "Abort your journey"
+msgstr "Reis afbreken"
+
+#: src/gpsdrive.c:9862
+msgid "-v    show version\n"
+msgstr "-v   geef versie informatie weer\n"
+
+#: src/gpsdrive.c:9863
+msgid "-h    print this help\n"
+msgstr "-h    Deze help pagina\n"
+
+#: src/gpsdrive.c:9864
+#, fuzzy
+msgid "-d    turn on debug info\n"
+msgstr "-d    Start in debug mode\n"
+
+#: src/gpsdrive.c:9865
+#, fuzzy
+msgid "-D    turn on lot of debug info\n"
+msgstr "-D    Start in maximale debug mode\n"
+
+#: src/gpsdrive.c:9866
+msgid "-e    use Festival-Lite (flite) for speech output\n"
+msgstr "-e    gebruik Festival-Lite (file) voor spraak uitvoer\n"
+
+#: src/gpsdrive.c:9867
+msgid "-t    set serial device for GPS i.e. /dev/ttyS1\n"
+msgstr "-t    instellen van de serieele poort van de GPS, b.v. /dev/ttyS1\n"
+
+#: src/gpsdrive.c:9868
+msgid "-o    serial device, pty master, or file for NMEA *output*\n"
+msgstr "-o    serieel apparaat, pty master, of bestand voor NMEA *output*\n"
+
+#: src/gpsdrive.c:9869
+#, fuzzy
+msgid "-f X  Select friends server, X is i.e. www.gpsdrive.cc\n"
+msgstr "-f X  Selecteer vrienden server, X is b.v. linux.quant-x.at\n"
+
+#: src/gpsdrive.c:9870
+msgid "-n    Disable use of direct serial connection\n"
+msgstr ""
+
+#: src/gpsdrive.c:9871
+msgid ""
+"-l X  Select language of the voice,\n"
+"      X may be english, spanish or german\n"
+msgstr ""
+"-l X Selecteer de taal van de stem,\n"
+"        X kan 'english', 'spanish' of 'german' zijn.\n"
+
+#: src/gpsdrive.c:9873
+msgid ""
+"-s X  set height of the screen, if autodetection\n"
+"      don't satisfy you, X is i.e. 768,600,480,200\n"
+msgstr ""
+"-s X de hoogte van het scherm instellen voor als de autodetectie\n"
+"     niet bevalt. X is b.v. 768,600,480,200\n"
+
+#. ** Mod by Arms
+#: src/gpsdrive.c:9876
+msgid "-r X  set width of the screen, only with -s\n"
+msgstr "-r X instellen breedte van het scherm, werkt enkel met -s\n"
+
+#: src/gpsdrive.c:9878
+msgid "-1    have only 1 button mouse, for example using touchscreen\n"
+msgstr "-1    werk met een knops muis, b.v. bij gebruik van touchscreen\n"
+
+#: src/gpsdrive.c:9879
+msgid "-a    don't display battery status (i.e. broken APM)\n"
+msgstr ""
+"-a    de batterij status niet laten zien (b.v. indien APM niet werkt)\n"
+
+#: src/gpsdrive.c:9881
+msgid "-b X  Servername for NMEA server (if gpsd runs on another host)\n"
+msgstr ""
+"-b X  Servernaam vor NMEA server (indien gpsd op een andere host draait)\n"
+
+#: src/gpsdrive.c:9883
+msgid "-c X  set start position in simulation mode to waypoint name X\n"
+msgstr "-c X  instellen aanvangspositie in simulatie modus op wegmarkering X\n"
+
+#: src/gpsdrive.c:9884
+#, fuzzy
+msgid "-x    create separate window for menu\n"
+msgstr "-x   open apart venster voor het menu\n"
+
+#: src/gpsdrive.c:9885
+msgid "-p    set settings for PDA (iPAQ, Yopy...)\n"
+msgstr "-p    gebruik instellingen voor PDA (iPAQ, Yopy, ...)\n"
+
+#: src/gpsdrive.c:9887
+msgid "-i    ignore NMEA checksum (risky, only for broken GPS receivers\n"
+msgstr ""
+"-i    negeer NMEA controlegetal (alleen voor GPS ontvangers \n"
+"      die niet voldoen aan NMEA standaard)\n"
+
+#: src/gpsdrive.c:9888
+msgid "-q    disable SQL support\n"
+msgstr "-q    SQL support uitschakelen\n"
+
+#: src/gpsdrive.c:9889
+msgid "-F    force display of position even it is invalid\n"
+msgstr "-F    forceer tonen van (niet geldige) positie\n"
+
+#: src/gpsdrive.c:9890
+msgid "-S    don't show splash screen\n"
+msgstr ""
+
+#: src/gpsdrive.c:9891
+msgid "-E    print out data received from direct serial connection\n"
+msgstr ""
+
+#: src/gpsdrive.c:9893
+msgid "-W x  set x to 1 to switch WAAS/EGNOS on, set to 0 to switch off\n"
+msgstr ""
+
+#: src/gpsdrive.c:9894
+msgid "-H X  correct altitude, adding this value to altitude\n"
+msgstr "-H X  corrigeer hoogte door de waarde X erbij op te tellen\n"
+
+#: src/gpsdrive.c:9895
+msgid ""
+"-z    don't display zoom factor and scale\n"
+"\n"
+msgstr ""
+"-z    toon geen zoom factor en schaal\n"
+"\n"
+
+#: src/gpsdrive.c:10001
+msgid "Select a track file"
+msgstr "Selecteer een route bestand"
+
+#: src/gpsdrive.c:10179 src/gpskismet.c:380
+msgid "can't open socket for port "
+msgstr "Kan socket voor poort niet openen"
+
+#: src/gpsdrive.c:10200
+#, c-format
+msgid ""
+"\n"
+"Cannot connect to %s: unknown host\n"
+msgstr ""
+
+#: src/gpsdrive.c:10221
+msgid "NMEA Mode, Port 2222"
+msgstr "NMEA Modus, poort 2222"
+
+#: src/gpsdrive.c:10230
+msgid "NMEA Mode, Port 2947"
+msgstr "NMEA Modus, poort 2947"
+
+#: src/gpsdrive.c:10249
+msgid ""
+"\n"
+"Garmin protocol detection disabled!\n"
+msgstr ""
+"\n"
+"Garmin protocol detectie uitgeschakeld!\n"
+
+#: src/gpsdrive.c:10600
+msgid ""
+"\n"
+"libmysqlclient.so not found.\n"
+msgstr ""
+"\n"
+"libmysqlclient.so niet gevonden.\n"
+
+#: src/gpsdrive.c:10606
+msgid ""
+"\n"
+"MySQL support disabled.\n"
+msgstr ""
+"\n"
+"MySQL ondersteuning uitgeschakeld.\n"
+
+#: src/gpsdrive.c:10783
+msgid ""
+"\n"
+"You can only choose between english, spanish and german\n"
+"\n"
+msgstr ""
+"\n"
+"Er is enkel keuze tussen 'english', 'spanish' en 'german'\n"
+
+#: src/gpsdrive.c:10817 src/settings.c:1730
+#, fuzzy
+msgid "EnterYourName"
+msgstr "VulHierJeNaamIn"
+
+#: src/gpsdrive.c:10879
+#, c-format
+msgid ""
+"\n"
+"Using proxy: %s on port %d"
+msgstr ""
+"\n"
+"Gebruik van proxy: %s met poort %d"
+
+#: src/gpsdrive.c:10883
+msgid ""
+"\n"
+"Invalid enviroment variable HTTP_PROXY, must be in format: http://proxy."
+"provider.de:3128"
+msgstr ""
+"\n"
+"Verkeerde omgevings variabele HTTP_PROXY. Het dient in het volgende formaat "
+"te zijn: http://proxy.provider.nl:3128"
+
+#: src/gpsdrive.c:11073
+#, fuzzy
+msgid "Gpsdrive-2 (c)2001-2004 F.Ganter"
+msgstr "(c)2001,2002 F.Ganter"
+
+#: src/gpsdrive.c:11081
+msgid "Using speech output"
+msgstr "Gebruik spraak"
+
+#: src/gpsdrive.c:11115
+#, fuzzy
+msgid "/Misc. Menu/Maps/Map Manager"
+msgstr "/_Misc. Menu/Kaarten/_Kaart Manager"
+
+#: src/gpsdrive.c:11119
+#, fuzzy
+msgid "/Misc. Menu/Waypoint Manager"
+msgstr "/_Misc. Menu/_Markeringen Manager"
+
+#. download map button
+#: src/gpsdrive.c:11123
+#, fuzzy
+msgid "_Download map"
+msgstr "Download kaart"
+
+#: src/gpsdrive.c:11142
+#, fuzzy
+msgid "M_ute"
+msgstr "Uitschakelen"
+
+#: src/gpsdrive.c:11152
+msgid "Use SQ_L"
+msgstr "Gebruik SQL"
+
+#: src/gpsdrive.c:11162
+#, fuzzy
+msgid "Show _WP"
+msgstr "Laat WP zien"
+
+#: src/gpsdrive.c:11189
+msgid "HomeBase"
+msgstr "ThuisBasis"
+
+#: src/gpsdrive.c:11197
+#, fuzzy
+msgid "Pos. _mode"
+msgstr "Pos. modus"
+
+#: src/gpsdrive.c:11203
+#, fuzzy
+msgid "Show _Track"
+msgstr "Laat route zien"
+
+#: src/gpsdrive.c:11246
+msgid "_Navigation"
+msgstr ""
+
+#: src/gpsdrive.c:11265
+#, fuzzy
+msgid "Auto _best map"
+msgstr "Beste kaart"
+
+#: src/gpsdrive.c:11275
+msgid "Save track"
+msgstr "Route opslaan"
+
+#: src/gpsdrive.c:11286
+msgid "Shown map type"
+msgstr "Laat kaarttype zien"
+
+#: src/gpsdrive.c:11297
+msgid "Street map"
+msgstr "Straat kaart"
+
+#: src/gpsdrive.c:11304
+msgid "Topo map"
+msgstr "Topografische kaart"
+
+#: src/gpsdrive.c:11386
+msgid ""
+"\n"
+"kismet server found\n"
+msgstr ""
+"\n"
+"kismet server gevonden\n"
+
+#: src/gpsdrive.c:11447 src/gpsdrive.c:11797
+msgid "Bearing"
+msgstr "Bearing"
+
+#: src/gpsdrive.c:11468
+#, fuzzy
+msgid "GPS Info"
+msgstr "Geo info"
+
+#: src/gpsdrive.c:11519
+msgid "Bat."
+msgstr "Bat."
+
+#: src/gpsdrive.c:11534
+#, fuzzy
+msgid "TC"
+msgstr "TC"
+
+#. displays speed over ground
+#: src/gpsdrive.c:11552 src/gpsdrive.c:11807 src/gpsdrive.c:11809
+#: src/gpsdrive.c:11815 src/gpsdrive.c:11817
+msgid "---"
+msgstr "---"
+
+#: src/gpsdrive.c:11632 src/gpsdrive.c:11639
+#, fuzzy
+msgid "Selected:"
+msgstr "geselecteerd:"
+
+#: src/gpsdrive.c:11632 src/gpsdrive.c:11639
+msgid "within"
+msgstr "binnen"
+
+#. create frames for labels
+#: src/gpsdrive.c:11647
+msgid "Distance to target"
+msgstr "Afstand tot doel"
+
+#. ** Mod by Arms
+#. if (!pdamode)
+#. gtk_box_pack_start (GTK_BOX (hbox2), frame_speed, TRUE, TRUE,
+#. 1 * PADDING);
+#: src/gpsdrive.c:11683
+msgid "Altitude"
+msgstr "Breedtegraad"
+
+#. ** Mod by Arms
+#. if (!pdamode)
+#. gtk_box_pack_start (GTK_BOX (hbox2), frame_altitude, FALSE, TRUE,
+#. 1 * PADDING);
+#: src/gpsdrive.c:11690 src/settings.c:681
+#, fuzzy
+msgid "Waypoints"
+msgstr "Wegmarkering"
+
+#: src/gpsdrive.c:11794
+msgid "Map file"
+msgstr "Kaart bestand"
+
+#: src/gpsdrive.c:11795
+msgid "Map scale"
+msgstr "Kaart schaal"
+
+#: src/gpsdrive.c:11796
+msgid "Heading"
+msgstr "Richting"
+
+#: src/gpsdrive.c:11798
+msgid "Time at Dest."
+msgstr "Aankomsttijd."
+
+#: src/gpsdrive.c:11799
+msgid "Pref. scale"
+msgstr "Voorkeurs schaal"
+
+#: src/gpsdrive.c:11803
+msgid "000,00000N"
+msgstr ""
+
+#: src/gpsdrive.c:11805
+msgid "000,00000E"
+msgstr ""
+
+#: src/gpsdrive.c:11811 src/gpsdrive.c:11813
+msgid "0000"
+msgstr ""
+
+#. gdk_window_lower((GdkWindow *)menuwin);
+#: src/gpsdrive.c:11886 src/gpsdrive.c:11937
+msgid "Menu"
+msgstr "Menu"
+
+#. gdk_window_lower((GdkWindow *)menuwin2);
+#: src/gpsdrive.c:11895 src/gpsdrive.c:11938
+msgid "Status"
+msgstr "Status"
+
+#: src/gpsdrive.c:12089
+#, fuzzy
+msgid ""
+"Click here to switch betwen satetellite level and satellite position "
+"display. A rotating globe is shown in simulation mode"
+msgstr ""
+"Klik kier om te schakelen tussen satelliet-signaal en -positie weergave"
+
+#: src/gpsdrive.c:12093
+#, fuzzy
+msgid "Number of used satellites/satellites in view"
+msgstr "Niet genoeg satelieten in zicht!"
+
+#: src/gpsdrive.c:12096
+msgid "EPE (Estimated Precision Error), if available"
+msgstr ""
+
+#: src/gpsdrive.c:12100
+msgid ""
+"PDOP (Position Dilution Of Precision). PDOP less than 4 gives the best "
+"accuracy, between 4 and 8 gives acceptable accuracy and greater than 8 gives "
+"unacceptable poor accuracy. "
+msgstr ""
+
+#: src/gpsdrive.c:12105
+msgid ""
+"On top of the compass you see the direction to which you move. The pointer "
+"shows the target direction on the compass."
+msgstr ""
+
+#: src/gpsdrive.c:12108
+msgid "/Misc. Menu"
+msgstr "/Misc. Menu"
+
+#: src/gpsdrive.c:12111
+msgid "Here you find extra functions for maps, tracks and messages"
+msgstr "Hier vind je extra funkties voor kaarten, tracks en berichten"
+
+#: src/gpsdrive.c:12115
+msgid "Download map from Internet"
+msgstr "Download kaart van Internet"
+
+#: src/gpsdrive.c:12117
+msgid "Leave the program"
+msgstr "Verlaat het programma"
+
+#: src/gpsdrive.c:12120
+msgid "Disable output of speech"
+msgstr "Spraak uitschakelen"
+
+#: src/gpsdrive.c:12123
+msgid "Use SQL server for waypoints"
+msgstr "Gebruik SQL server voor wegmarkeringen"
+
+#: src/gpsdrive.c:12126
+msgid "Show waypoints on the map"
+msgstr "Laat waypoints op de kaart zien"
+
+#: src/gpsdrive.c:12129
+msgid ""
+"Turn position mode on. You can move on the map with the left mouse button "
+"click. Clicking near the border switches to the proximate map."
+msgstr ""
+"Inschakelen positie modus. Verplaatsen op de kaart gaat dmv klikken met de "
+"linker muis knop. Klikken bij de rand zorgt voor het schakelen naar de "
+"volgende kaart."
+
+#: src/gpsdrive.c:12132
+msgid "Show tracking on the map"
+msgstr "Laat route op de kaart zien"
+
+#: src/gpsdrive.c:12137
+msgid "Opens the help window"
+msgstr "Opent het hulp venster"
+
+#: src/gpsdrive.c:12140
+msgid "Navigation menu. Enter here your destination."
+msgstr ""
+
+#: src/gpsdrive.c:12156
+msgid "Settings for GpsDrive"
+msgstr "Instellingen voor GpsDrive"
+
+#: src/gpsdrive.c:12158
+msgid "Zoom into the current map"
+msgstr "Inzoomen van huidige kaart"
+
+#: src/gpsdrive.c:12160
+msgid "Zooms out off the current map"
+msgstr "Uitzoomen van huidige kaart"
+
+#: src/gpsdrive.c:12162
+msgid "Select the next more detailed map"
+msgstr "Selecteer de kaart met meer detail"
+
+#: src/gpsdrive.c:12164
+msgid "Select the next less detailed map"
+msgstr "Selecteer de kaart met minder detail"
+
+#: src/gpsdrive.c:12169
+msgid "Select here a destination from the waypoint list"
+msgstr "Selecteer een doel uit de lijst met wegmarkeringen"
+
+#: src/gpsdrive.c:12173
+msgid "Select the map scale of avail. maps."
+msgstr "Selecteer de schaal van beschikbare kaarten"
+
+#: src/gpsdrive.c:12178
+msgid "Always select the most detailed map available"
+msgstr ""
+"Selecteer altijd de meest gedetailleerde versie van de beschikbare kaarten"
+
+#: src/gpsdrive.c:12181
+msgid "Save the track to given filename at program exit"
+msgstr "De route als gegeven naam opslaan bij het afsluiten van het programma"
+
+#: src/gpsdrive.c:12187
+msgid "Number of waypoints selected from SQL server"
+msgstr "Aantal wegmarkeringen geselecteerd van SQL server"
+
+#: src/gpsdrive.c:12191
+msgid "Number of selected waypoints, which are in range"
+msgstr "Aantal geselecteerde wegmarkeringen in het bereik"
+
+#: src/gpsdrive.c:12195
+msgid "Range for waypoint selection in kilometers"
+msgstr "Bereik voor wegmarkeringen in kilometers"
+
+#: src/gpsdrive.c:12198
+msgid "This shows the time from your GPS receiver"
+msgstr "Hier wordt de tijd van de gps ontvanger getoond"
+
+#: src/gpsdrive.c:12201
+#, fuzzy
+msgid ""
+"Number of mobile targets within timeframe/total received from friendsserver"
+msgstr "Aantal wegmarkeringen geselecteerd van SQL server"
+
+#: src/gpsdrive.c:12275
+msgid ""
+"\n"
+"\n"
+"Thank you for using GpsDrive!\n"
+"\n"
+msgstr ""
+"\n"
+"\n"
+"Bedankt voor het gebruiken van GpsDrive!\n"
+"\n"
+
+#: src/splash.c:543
+#, fuzzy
+msgid "GpsDrive v"
+msgstr "GpsDrive Help"
+
+#: src/splash.c:549
+#, fuzzy
+msgid ""
+"\n"
+"\n"
+"You find new versions on http://www.gpsdrive.cc\n"
+msgstr " http://www.gpsdrive.cc "
+
+#: src/splash.c:553
+msgid ""
+"Disclaimer: Please do not use for navigation. \n"
+"\n"
+msgstr ""
+"Waarschuwing: Niet voor navigatie doeleinden \n"
+"\n"
+
+#: src/splash.c:558
+#, fuzzy
+msgid "Please have a look into the manpage (man gpsdrive) for program details!"
+msgstr ""
+"Lees de manpage voor meer details\n"
+"\n"
+
+#: src/splash.c:563
+#, fuzzy
+msgid "Mouse control (clicking on the map):\n"
+msgstr "Muis besturing (klik op the kaart):\n"
+
+#: src/splash.c:569
+msgid ""
+"Left mouse button         : Set position (usefull in simulation mode)\n"
+"Right mouse button        : Set target directly on the map\n"
+"Middle mouse button       : Display position again\n"
+"Shift left mouse button   : smaller map\n"
+"Shift right mouse button  : larger map\n"
+"Control left mouse button : Set a waypoint (mouse position) on the map\n"
+"Control right mouse button: Set a waypoint at current position on the map\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:577
+msgid ""
+"j    : switch to next waypoint in route mode\n"
+"x    : add waypoint at current position\n"
+"y    : add waypoint at mouse cursor position\n"
+msgstr ""
+
+#: src/splash.c:583
+msgid "Short cuts:\n"
+msgstr "Sneltoetsen:\n"
+
+#: src/splash.c:590
+msgid "The other key shortcuts are marked as "
+msgstr "De andere sneltoetsen worden aangegeven met "
+
+#: src/splash.c:591
+msgid "underlined"
+msgstr "onderstreepte"
+
+#: src/splash.c:593
+msgid " letters in the button text.\n"
+msgstr ""
+
+#: src/splash.c:596
+#, fuzzy
+msgid ""
+"Press the underlined key together with the ALT-key.\n"
+"\n"
+"You can move on the map by selecting the Position-Mode in the menu. A blue "
+"rectangle shows this mode, you can set this cursor by clicking on the map. "
+"If you click on the border of the map (the outer 20%) then the map switches "
+"to the next area.\n"
+"\n"
+"Suggestions welcome.\n"
+"\n"
+msgstr ""
+" te selecteren in het menu. Een blauw vierkant verschijnt, wat  "
+"verplaatsbaar is door op de kaart te klikken. Als je aan de rand van de  "
+"kaart klikt, zal de kaart veranderen naar het aangrenzende gebied"
+
+#: src/splash.c:603
+msgid "Have a lot of fun!"
+msgstr "Veel plezier!"
+
+#: src/splash.c:734
+msgid "Please donate to GpsDrive"
+msgstr "Wilt u AUB aan GpsDrive doneren ?"
+
+#: src/splash.c:740
+#, fuzzy
+msgid ""
+"\n"
+"\n"
+"GpsDrive is a project with no comercial background. \n"
+"\n"
+"It would be nice if you can give a donation to help me pay the costs for "
+"hardware and the webserver.\n"
+"\n"
+"To do so, just go to"
+msgstr ""
+"Donaties, om te helpen de kosten voor de webserver en hardware te "
+"betalenworden zeer op prijs gesteld.\n"
+"\n"
+
+#: src/splash.c:744
+msgid " http://www.gpsdrive.cc "
+msgstr " http://www.gpsdrive.cc "
+
+#: src/splash.c:747
+#, fuzzy
+msgid ""
+"and click on the PayPal button.\n"
+"\n"
+"Thank you very much for your donation!\n"
+"\n"
+"This message is only displayed once when you start an new version of "
+"GpsDrive.\n"
+"\n"
+msgstr ""
+"Deze melding wordt slechts eenmaal weergegeven bij het starten van een "
+"nieuwe versie van GpsDrive.\n"
+"\n"
+
+#: src/splash.c:780
+#, fuzzy
+msgid "About GpsDrive donation"
+msgstr "GpsDrive donaties"
+
+#: src/splash.c:859
+msgid "From:"
+msgstr "Van:"
+
+#: src/splash.c:928
+#, fuzzy, c-format
+msgid ""
+"You received a message from\n"
+"the friends server (%s)\n"
+msgstr ""
+"Je hebt via de vrienden-server een bericht ontvangen van: \n"
+"\n"
+
+#: src/splash.c:938
+#, fuzzy
+msgid "You received a message through the friends server from:\n"
+msgstr ""
+"Je hebt via de vrienden-server een bericht ontvangen van: \n"
+"\n"
+
+#: src/splash.c:948
+#, fuzzy
+msgid "Message text:\n"
+msgstr "  Bericht  "
+
+#: src/splash.c:1004
+msgid "Error saving config file ~/.gpsdrive/gpsdriverc"
+msgstr "Fout bij opslaan configuratie file ~/.gpsdrive/gpsdriverc"
+
+#: src/splash.c:1519 src/splash.c:1578
+msgid ""
+"\n"
+"Warning: unable to open splash picture\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+"\n"
+"Waarschuwing: kan splash afbeelding niet openen\n"
+"Installeer het programma als root met:\n"
+"make install\n"
+"\n"
+
+#: src/splash.c:1562
+#, fuzzy
+msgid "About GpsDrive"
+msgstr "GpsDrive donaties"
+
+#: src/settings.c:438
+msgid "Setting WP label font"
+msgstr "Kies WP label font"
+
+#: src/settings.c:440
+msgid "Setting big display font"
+msgstr "Kies font voor status vensters"
+
+#: src/settings.c:507
+#, fuzzy
+msgid "Setting big display color"
+msgstr "Kies font voor status vensters"
+
+#: src/settings.c:545
+#, fuzzy
+msgid "Setting track color"
+msgstr "Kies font voor status vensters"
+
+#: src/settings.c:587
+#, fuzzy
+msgid "Setting friends label color"
+msgstr "Kies font voor status vensters"
+
+#: src/settings.c:668
+#, fuzzy
+msgid ""
+"Don't use more than\n"
+"100 waypoint(way*.txt) files!"
+msgstr ""
+"Gebruik niet meer dan 100 \n"
+"wegmarkings (way*.txt) bestanden!"
+
+#: src/settings.c:679
+#, fuzzy
+msgid "Waypoint files to use"
+msgstr "Wegmarkerings file"
+
+#: src/settings.c:704 src/settings.c:709
+#, fuzzy
+msgid "Settings"
+msgstr "GPS instelingen"
+
+#. misc area
+#: src/settings.c:716
+msgid "Misc settings"
+msgstr "Instellingen"
+
+#: src/settings.c:720
+msgid "Show Shadows"
+msgstr "Laat schaduw zien"
+
+#: src/settings.c:727
+msgid "Etched frames"
+msgstr "Verzonken vensters"
+
+#: src/settings.c:735
+msgid "Simulation: Follow target"
+msgstr "Simulatie: Volg doel"
+
+#: src/settings.c:742
+msgid "Maximum CPU load"
+msgstr "Maximale CPU belasting"
+
+#: src/settings.c:752
+#, fuzzy
+msgid "Track"
+msgstr "Laat route zien"
+
+#: src/settings.c:767
+msgid "Maps directory"
+msgstr "Kaarten directory"
+
+#: src/settings.c:773
+#, fuzzy
+msgid "Automatic"
+msgstr "Automatisch"
+
+#: src/settings.c:779
+msgid "On"
+msgstr "Aan"
+
+#: src/settings.c:784
+msgid "Off"
+msgstr "Uit"
+
+#. gtk_table_attach_defaults (GTK_TABLE (misctable), label2, 0, 2, 3, 4);
+#. gtk_table_attach_defaults (GTK_TABLE (misctable), mapdirbt, 0, 2, 4, 5);
+#. GPS settings area
+#: src/settings.c:808
+msgid "GPS settings"
+msgstr "GPS instellingen"
+
+#. gtk_container_add (GTK_CONTAINER (f4), gpstable);
+#: src/settings.c:822
+msgid "Test for GARMIN"
+msgstr "Test voor GARMIN"
+
+#: src/settings.c:833
+msgid "Use DGPS-IP"
+msgstr "Gebruik DGPS-IP"
+
+#: src/settings.c:843
+msgid "GPS is Earthmate"
+msgstr "GPS is Earthmate"
+
+#: src/settings.c:853
+msgid "Use serial conn."
+msgstr ""
+
+#: src/settings.c:868
+msgid "Interface"
+msgstr "Interface"
+
+#: src/settings.c:869
+msgid "Baudrate"
+msgstr ""
+
+#. units area
+#: src/settings.c:904
+msgid "Units"
+msgstr "Eenheden"
+
+#: src/settings.c:910
+msgid "Miles"
+msgstr "Mijlen"
+
+#: src/settings.c:915
+msgid "Metric"
+msgstr "Metrisch"
+
+#: src/settings.c:920 src/nautic.c:106
+msgid "Nautic"
+msgstr "Zeevaart"
+
+#: src/settings.c:930
+msgid "Decimal position"
+msgstr "Decimale positie"
+
+#. gtk_box_pack_start (GTK_BOX (v2), miles, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), metric, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), nautic, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), minsecbt, TRUE, FALSE, 2 * PADDING);
+#.
+#. default download server
+#: src/settings.c:948
+msgid "Default map server"
+msgstr "Standaard kaart server"
+
+#. Night light mode
+#: src/settings.c:981
+#, fuzzy
+msgid "Night light mode"
+msgstr "Nacht modus"
+
+#.  gtk_table_attach_defaults (GTK_TABLE (table), f5, 0, 2, 2, 3);
+#. Sound settings
+#: src/settings.c:999
+#, fuzzy
+msgid "Speech output settings"
+msgstr "Luchtvaart Instellingen"
+
+#.
+#. set following sounds
+#. sound_direction ... say direction to target
+#. sound_distance  ... say distance to target
+#. sound_speed     ... say your current speed
+#. sound_gps       ... say GPS status
+#.
+#.
+#: src/settings.c:1011
+msgid "Direction"
+msgstr ""
+
+#: src/settings.c:1032
+#, fuzzy
+msgid "GPS Status"
+msgstr "Status"
+
+#: src/settings.c:1046
+msgid "Switch on for speech output of the direction to the target"
+msgstr ""
+
+#: src/settings.c:1051
+msgid "Switch on for speech output of the distance to the target"
+msgstr ""
+
+#: src/settings.c:1056
+msgid "Switch on for speech output of your current speed"
+msgstr ""
+
+#: src/settings.c:1061
+msgid "Switch on for speech output of the status of your GPS signal"
+msgstr ""
+
+#. Font settings
+#: src/settings.c:1066
+#, fuzzy
+msgid "Font and color settings"
+msgstr "Font instellingen"
+
+#. gtk_box_pack_start (GTK_BOX (h1), f5, TRUE, FALSE, 2 * PADDING);
+#: src/settings.c:1071
+msgid "WP Label"
+msgstr "WP Label"
+
+#: src/settings.c:1072
+msgid "Big display"
+msgstr "Status vensters"
+
+#: src/settings.c:1073
+msgid "Display color"
+msgstr "Beeld kleur"
+
+#: src/settings.c:1101
+msgid "Switch units to statute miles"
+msgstr "Maak gebruik van landmijlen"
+
+#: src/settings.c:1103
+msgid "Switch units to nautical miles"
+msgstr "Maak gebruik van zeemijlen"
+
+#: src/settings.c:1105
+msgid "Switch units to metric system (Kilometers)"
+msgstr "Maak gebruik van kilometer aanduiding"
+
+#: src/settings.c:1110
+msgid ""
+"If selected display latitude and longitude in decimal degrees, otherwise in "
+"degree, minutes and seconds notation"
+msgstr ""
+"Indien geselecteerd geef lengte- en breedtegraad in decimale graden weer, "
+"anders in graden, minuten en seconden notatie"
+
+#: src/settings.c:1115
+#, fuzzy
+msgid ""
+"Set the german expedia server(expedia.de) as default download server. Use "
+"this if you are in Europe"
+msgstr "Expedia als default kaartserver instellen"
+
+#: src/settings.c:1119
+msgid "Set Expedia as default download server"
+msgstr "Expedia als default kaartserver instellen"
+
+#: src/settings.c:1122
+msgid "Switches shadows on map on or off"
+msgstr "In- of uitschakelen van schaduw op kaart"
+
+#: src/settings.c:1126
+msgid "Switches between different type of frame ornaments"
+msgstr "Schakelt tussen verschillende types weergave van vensters"
+
+#: src/settings.c:1131
+#, c-format
+msgid ""
+"Select the approx. maximum CPU load, use 20-30% on notebooks while on "
+"battery to save battery power. This effects the refresh rate of the map "
+"screen"
+msgstr ""
+"Selecteer ongeveer de maximale CPU belasting. Gebruik 20-30% op laptop "
+"computers om batterij verbruik te beperken. Dit beinvloed de verversings-"
+"frequentie van het kaart scherm"
+
+#: src/settings.c:1136
+msgid "If activated, pointer moves to target in simulation mode"
+msgstr "Indien geactiveerd, wijzer beweegt richting doel in simulatie modus"
+
+#: src/settings.c:1140
+msgid "Set here the color of the drawn track"
+msgstr "Stel hier de kleur van de route op de kaart in"
+
+#: src/settings.c:1144
+msgid ""
+"Path to your map files. In the specified directory also the index file "
+"map_koord.txt must be present."
+msgstr ""
+"Pad naar de kaarten bestanden. in de gespecificeerde directory dient ook de "
+"index file map_koord.txt aanwezig te zijn."
+
+#: src/settings.c:1149
+msgid ""
+"If selected, gpsdrive try to use GARMIN mode if possible. Unselect if you "
+"only have a NMEA device."
+msgstr ""
+"Indien geselecteerd probeert gpsdrive de GARMIN mode als dat mogelijk is. "
+"Schakel uit bij gebruik van een NMEA gps."
+
+#: src/settings.c:1154
+msgid ""
+"Set here the baud rate of your GPS device, NMEA devices usually have a speed "
+"of 4800 baud"
+msgstr ""
+
+#: src/settings.c:1159
+msgid ""
+"If selected, gpsdrive try to use differential GPS over IP. You must have an "
+"internet connection and a DGPS capable GPS receiver. Works only in NMEA mode!"
+msgstr ""
+"Indien geselecteerd probeert gpsdrive GPS over IP. Een Internetverbinding is "
+"hiervoor noodzakellijk, net als een DGPS geschikte GPS ontvanger. Werkt "
+"enkel in de NMEA modus!"
+
+#: src/settings.c:1164
+msgid ""
+"Select this if you have a DeLorme Earthmate GPS receiver. The StartGPSD "
+"button will provide gpsd with the needed additional parameters"
+msgstr ""
+"Selekteer dit als je een DeLorme Earthmate GPS ontvanger hebt. De StartGPSD "
+"knop zal gpsd starten met de noodzakelijke extra parameters"
+
+#: src/settings.c:1169
+msgid ""
+"Select this if you want to use of the direct serial connection. If disabled, "
+"you can use the receiver only through gpsd. On the other hand, the direct "
+"serial connection needs no gpsd running and detects the working receiver on "
+"startup"
+msgstr ""
+
+#: src/settings.c:1174
+msgid "Specify the serial interface where the GPS is connected"
+msgstr "Instellen van de serieele interface waarop de GPS is aangesloten"
+
+#: src/settings.c:1179
+msgid ""
+"Switches automagically to night mode if it is dark outside. Press 'N' key to "
+"turn off nightmode."
+msgstr ""
+"Schakelt automatisch naar nacht modus wanneer het buiten donker isDruk op "
+"'N' om nacht modus uit te schakelen."
+
+#: src/settings.c:1183
+msgid "Switches night mode on. Press 'N' key to turn off nightmode."
+msgstr "Schakelt nacht modus in. Druk op 'N' om nacht modus uit te schakelen."
+
+#: src/settings.c:1186
+#, fuzzy
+msgid "Switches night mode off"
+msgstr "Schakelt nacht modus uit"
+
+#: src/settings.c:1190
+#, fuzzy
+msgid "Here you can set the font for the waypoint labels"
+msgstr "Hier kun je het font voor de wegmarkeringen instellen"
+
+#: src/settings.c:1195
+msgid "Here you can set the font for the big display for Speed and Distance"
+msgstr "Hier kun je het font voor de vensters Snelheid en Afstand instellen"
+
+#: src/settings.c:1199
+#, fuzzy
+msgid ""
+"Here you can set the color for the big display for speed, distance and "
+"altitude"
+msgstr "Hier kun je het font voor de vensters Snelheid en Afstand instellen"
+
+#: src/settings.c:1377
+msgid "Geo information"
+msgstr "Geo informatie"
+
+#: src/settings.c:1379
+msgid "Geo info"
+msgstr "Geo info"
+
+#: src/settings.c:1390
+msgid "Sunrise"
+msgstr "Zonsopgang"
+
+#: src/settings.c:1392
+msgid "Sunset"
+msgstr "Zonsondergang"
+
+#: src/settings.c:1395
+msgid "Standard"
+msgstr "Standaard"
+
+#: src/settings.c:1397
+msgid "Transit"
+msgstr "Transit"
+
+#: src/settings.c:1399
+msgid "GPS-Time"
+msgstr "GPS-Tijd"
+
+#: src/settings.c:1401
+#, fuzzy
+msgid "Astro."
+msgstr "Astro."
+
+#: src/settings.c:1403
+#, fuzzy
+msgid "Naut."
+msgstr "Zeevaart"
+
+#: src/settings.c:1405
+msgid "Civil"
+msgstr "Civiel"
+
+#: src/settings.c:1407
+msgid "Timezone"
+msgstr "Tijdzone"
+
+#: src/settings.c:1409
+msgid "Store TZ"
+msgstr ""
+
+#: src/settings.c:1419
+msgid ""
+"If selected, the timezone is stored, otherwise your actual timezone will "
+"automatically used"
+msgstr ""
+
+#: src/settings.c:1453
+#, fuzzy
+msgid "Night"
+msgstr "Nacht"
+
+#: src/settings.c:1455
+msgid "Day"
+msgstr "Dag"
+
+#: src/settings.c:1592 src/settings.c:1594 src/settings.c:1597
+#, fuzzy
+msgid "Unit:"
+msgstr "Eenheden"
+
+#: src/settings.c:1592
+#, fuzzy
+msgid "miles"
+msgstr "Mijlen"
+
+#: src/settings.c:1595
+msgid "nautic miles/knots"
+msgstr "Zeemijlen/knopen"
+
+#: src/settings.c:1597
+msgid "kilometers"
+msgstr "kilometers"
+
+#: src/settings.c:1612
+msgid "Trip information"
+msgstr "Trip informatie"
+
+#: src/settings.c:1614
+msgid "Trip info"
+msgstr "Trip info"
+
+#: src/settings.c:1628
+msgid "Odometer"
+msgstr "Kilometerteller"
+
+#: src/settings.c:1630
+msgid "Total time"
+msgstr "Totale tijd"
+
+#: src/settings.c:1632
+msgid "Av. speed"
+msgstr "Gem. snelheid"
+
+#: src/settings.c:1634
+msgid "Max. speed"
+msgstr "Max. snelheid"
+
+#: src/settings.c:1658
+msgid "Reset"
+msgstr "Reset"
+
+#: src/settings.c:1663
+msgid "Resets the trip values to zero"
+msgstr "Reset de waarden terug naar nul"
+
+#: src/settings.c:1732
+msgid "You should change your name in the first field!"
+msgstr "Verander je naam in het eerste veld"
+
+#: src/settings.c:1918
+#, fuzzy
+msgid "Show position newer as"
+msgstr "Toon positie indien nieuwer als"
+
+#: src/settings.c:1920
+msgid "Friends server setup"
+msgstr "Vriend server instellingen"
+
+#: src/settings.c:1921
+#, fuzzy
+msgid "Friends"
+msgstr "Vrienden"
+
+#: src/settings.c:1933
+msgid "Days"
+msgstr "Dagen"
+
+#: src/settings.c:1934
+msgid "Hours"
+msgstr "Uren"
+
+#: src/settings.c:1935
+#, fuzzy
+msgid "Minutes"
+msgstr "Minuten"
+
+#: src/settings.c:1941
+msgid "Your name"
+msgstr "Je naam"
+
+#: src/settings.c:1946
+msgid ""
+"Set here your name which should be shown near your vehicle. You may use "
+"spaces here!"
+msgstr ""
+"Geef hier de naam in die getoond wordt bij jouw positie. Je mag er spaties "
+"in gebruiken"
+
+#: src/settings.c:1958
+msgid "Server name"
+msgstr "Server naam"
+
+#: src/settings.c:1963
+msgid ""
+"Set here the full qualified host name (i.e. www.gpsdrive.cc) of your friends "
+"server, then you have to press the \"Lookup\" button!"
+msgstr ""
+"Geef hier de volledige naam (bijv www.gpsdrive.cc) van je vrienden server en "
+"druk daarna op de 'Zoeken' knop!"
+
+#: src/settings.c:1972
+msgid "Lookup"
+msgstr "Zoeken"
+
+#: src/settings.c:1980
+msgid ""
+"You have to press the \"Lookup\" button to resolve the friends server name!"
+msgstr ""
+"Je moet op de 'Zoeken' knop drukken om de naam van de vrienden server te "
+"resolven!"
+
+#: src/settings.c:1991
+#, fuzzy
+msgid "Set here the color of the label displayed at friends position"
+msgstr "Stel hier de kleur van de route op de kaart in"
+
+#: src/settings.c:1997
+msgid "Friends server IP"
+msgstr "Vrienden server IP"
+
+#: src/settings.c:2002
+msgid ""
+"Set here the IP adress (i.e. 127.0.0.1) if you don't set the hostname above"
+msgstr ""
+"Geef hier het IP adres (bijv 127.0.0.1) indien de naam hierboven niet is "
+"ingesteld is"
+
+#: src/settings.c:2007 src/settings.c:2012 src/settings.c:2016
+msgid ""
+"Set here the time limit in which the friends position is shown. Older "
+"positions are not shown."
+msgstr ""
+"Geef hier de tijdslimiet in waarin posities van vrienden worden getoond. "
+"Oudere posities worden niet weergegeven."
+
+#: src/settings.c:2028
+msgid "Use friends server"
+msgstr "Gebruik vrienden server"
+
+#: src/settings.c:2036
+msgid ""
+"Enable/disable use of friends server. You must enter a Username, don't use "
+"the default name!"
+msgstr ""
+"Schakel gebruik vrienden server aan/uit. Je moet een gebruikersnaam opgeven, "
+"gebruik niet de default naam!"
+
+#: src/settings.c:2039
+msgid ""
+"If you enable the friendsserver mode,\n"
+"<span color=\"red\">everyone</span> using the same server\n"
+"can see your position!"
+msgstr ""
+"Als je de vrienden server modus inschakelt,\n"
+"kan <span color=\"red\">iedereen</span> die dezelfde server gebruikt\n"
+"je positie zien!"
+
+#: src/settings.c:2094
+msgid "SQL selection criterias"
+msgstr "SQL selectie criteria"
+
+#: src/settings.c:2095
+msgid "SQL"
+msgstr "SQL"
+
+#: src/settings.c:2121
+msgid "Dist. limit[km] "
+msgstr "Max. Afstand[km]"
+
+#: src/settings.c:2126
+msgid "If enabled, show waypoints only within this distance"
+msgstr "Indien ingeschakeld, toon alleen markeringen binnen deze afstand"
+
+#: src/settings.c:2142
+msgid "Enable/disable distance selection"
+msgstr "In/Uit schakelen afstand selectie"
+
+#: src/settings.c:2151
+#, fuzzy
+msgid "Show no_ssid "
+msgstr "Laat WP zien"
+
+#: src/settings.c:2162
+msgid ""
+"If enabled, WLANs with no SSID are shown, because this is perhaps useless, "
+"you can disable it here"
+msgstr ""
+
+#: src/settings.c:2168
+#, fuzzy
+msgid "Selection mode"
+msgstr "Selectie modus"
+
+#: src/settings.c:2170
+msgid "include"
+msgstr "include"
+
+#: src/settings.c:2173
+msgid "exclude"
+msgstr "exclude"
+
+#: src/settings.c:2177
+msgid ""
+"Show only waypoints where the type field contains one of the selected words"
+msgstr "Toon alleen markeringen van het geselecteerde type"
+
+#: src/settings.c:2181
+msgid ""
+"Show only waypoints where the type field doesn't contain any the selected "
+"words"
+msgstr ""
+"Toon alleen markeringen waarvan het type niet de geselcteerde woorden bevat"
+
+#: src/fly.c:149
+#, fuzzy
+msgid "Aeronautical settings"
+msgstr "Luchtvaart Instellingen"
+
+#: src/fly.c:151
+msgid "Fly"
+msgstr "Luchtvaart"
+
+#: src/fly.c:158
+#, fuzzy
+msgid "Plane mode"
+msgstr "Plane modus"
+
+#: src/fly.c:165
+msgid "Use VFR"
+msgstr "Gebruik VFR"
+
+#: src/fly.c:171
+msgid "Use IFR"
+msgstr "Gebruik IFR"
+
+#: src/fly.c:181
+msgid "max. horizontal deviation "
+msgstr "max. horizontale afwijking"
+
+#: src/fly.c:183
+msgid "max. vertical deviation "
+msgstr "max. verticale afwijking"
+
+#: src/fly.c:198
+msgid "disable vert. deviation warning above 5000ft MSL"
+msgstr "schakel waarschuwingssignaal voor vert. afwijking uit boven 5000ft MSL"
+
+#: src/nautic.c:103
+#, fuzzy
+msgid "Nautic settings"
+msgstr "Zeevaart Instellingen"
+
+#. if (debug)
+#: src/gpssql.c:215
+#, c-format
+msgid ""
+"\n"
+"SQL: connected to %s as %s using %s\n"
+msgstr ""
+"\n"
+"SQL: verbonden met %s als %s gebruik makend van %s\n"
+
+#: src/gpssql.c:278
+#, c-format
+msgid "rows inserted: %d\n"
+msgstr "rijen ingevoegd: %d\n"
+
+#: src/gpssql.c:293
+#, c-format
+msgid "last index: %d\n"
+msgstr "laatste index: %d\n"
+
+#: src/gpssql.c:314
+#, c-format
+msgid "rows deleted: %d\n"
+msgstr "rijen verwijderd: %d\n"
+
+#: src/gpssql.c:366 src/gpssql.c:372
+#, c-format
+msgid "Loaded user defined icon %s\n"
+msgstr ""
+
+#: src/gpssql.c:455
+#, c-format
+msgid "%d(%d) rows read in %.2f seconds\n"
+msgstr "%d(%d) rijen gelezen in %.2f seconden\n"
+
+#: src/friends.c:363
+#, fuzzy
+msgid "unknown"
+msgstr "Onbekend"
+
+#: src/friendsd.c:472
+msgid "server: please don't run me as root\n"
+msgstr ""
+
+#: src/friendsd.c:484
+#, c-format
+msgid ""
+"\n"
+"Usage:\n"
+"   %s -n servername\n"
+"provides a name for your server\n"
+msgstr ""
+
+#: src/gpsnasamap.c:189
+#, c-format
+msgid "could not create output map file %s!\n"
+msgstr ""
+
+#. g_signal_connect (window, "destroy",
+#. G_CALLBACK (gtk_widget_destroyed), &window);
+#: src/gpsnasamap.c:204
+msgid "Creating map..."
+msgstr ""
+
+#: src/gpsnasamap.c:212
+msgid "Creating a temporary map from NASA satellite images"
+msgstr ""
+
+#: src/gpsnasamap.c:219
+#, c-format
+msgid "converting map for latitude: %f and longitude: %f ...\n"
+msgstr ""
+
+#: src/gpsnasamap.c:324
+msgid ""
+"\n"
+"You can permanently add this map file with following line in your\n"
+"map_koord.txt (rename the file!):\n"
+msgstr ""
+
+#: src/gpsserial.c:252
+msgid "waiting for thread to stop\n"
+msgstr ""
+
+#: src/gpsserial.c:275
+#, c-format
+msgid ""
+"\n"
+"error opening %s(%d)\n"
+msgstr ""
+
+#: src/gpsserial.c:278
+#, c-format
+msgid "successfull opened %s\n"
+msgstr ""
+
+#: src/gpsserial.c:284
+msgid "switching WAAS/EGNOS on\n"
+msgstr ""
+
+#: src/gpsserial.c:290
+msgid "switching WAAS/EGNOS off\n"
+msgstr ""
+
+#~ msgid "Set Mapblast as default download server"
+#~ msgstr "Mapblast als default kaartserver instellen"
+
+#~ msgid "Enable?"
+#~ msgstr "Inschakelen?"
+
+#~ msgid "Sat level"
+#~ msgstr "Sateliet ontvangst"
+
+#, fuzzy
+#~ msgid "Simulation"
+#~ msgstr "Simulatie modus"
+
+#, fuzzy
+#~ msgid "Sim.mode"
+#~ msgstr "Simulatie modus"
+
+#~ msgid "Yes, please start gpsd"
+#~ msgstr "Ja, start gpsd op"
+
+#~ msgid "No, start simulation"
+#~ msgstr "Nee, start simulatie"
+
+#~ msgid ""
+#~ "Neither gpsd nor GARMIN device detected!\n"
+#~ "Should I start gpsd (NMEA mode) for you?"
+#~ msgstr ""
+#~ "Geen gpsd of GARMIN apparaat gevonden!\n"
+#~ "Zal ik gpsd (NMEA modus) voor u starten?"
+
+#~ msgid "-n X  Select display name on friends server, X is i.e. Fritz\n"
+#~ msgstr "-n X  Selecteer display naam op vrienden server, X is b.v. Fritz\n"
+
+#~ msgid ""
+#~ "\n"
+#~ "This parameter is obsolet, use settings menu\n"
+#~ msgstr ""
+#~ "\n"
+#~ "Deze parameter wordt niet meer gebruikt, gebruik het instellingen menu\n"
+
+#~ msgid "UTC "
+#~ msgstr "UTC"
+
+#, fuzzy
+#~ msgid "Your friendsserver: %s"
+#~ msgstr "Gebruik vrienden server"
+
+#~ msgid "Cancel"
+#~ msgstr "Afbreken"
+
+#, fuzzy
+#~ msgid "/Misc. Menu/Maps"
+#~ msgstr "/_Misc. Menu/Kaarten"
+
+#~ msgid "Import"
+#~ msgstr "Importeren"
+
+#~ msgid "Let you import and calibrate your own map"
+#~ msgstr "Importeer en calibreer uw eigen kaart"
+
+#~ msgid ""
+#~ "Left mouse button         : Set position (usefull in simulation mode)\n"
+#~ msgstr ""
+#~ "Linker muisknop           : Stel positie in (handig in simulatie modus)\n"
+
+#~ msgid "Right mouse button        : Set target directly on the map\n"
+#~ msgstr "Rechter muisknop          : Stel doel in op deze kaart positie\n"
+
+#~ msgid "Middle mouse button       : Display position again\n"
+#~ msgstr "Middelste muisknop        : Terug naar positie weergave\n"
+
+#~ msgid "Shift left mouse button   : smaller map\n"
+#~ msgstr "Shift Linker muisknop     : kleinere kaart\n"
+
+#~ msgid "Shift right mouse button  : larger map\n"
+#~ msgstr "Shift Rechter muisknop    : grotere kaart\n"
+
+#~ msgid ""
+#~ "Control left mouse button : Set a waypoint (mouse position) on the map\n"
+#~ msgstr "Control Linker muisknop   : Zet een markering op de muis positie\n"
+
+#~ msgid ""
+#~ "Control right mouse button: Set a waypoint at current position on the "
+#~ "map\n"
+#~ "\n"
+#~ msgstr ""
+#~ "Control Rechter muisknop  : Zet een markering op huidige kaart positie\n"
+#~ "\n"
+
+#~ msgid "j    : switch to next waypoint in route mode\n"
+#~ msgstr "j    : ga naar volgende markering in route \n"
+
+#~ msgid "x    : add waypoint at current position\n"
+#~ msgstr "x    : voeg markering toe op huidige positie\n"
+
+#~ msgid ""
+#~ "y    : add waypoint at mouse cursor position\n"
+#~ "\n"
+#~ msgstr ""
+#~ "y    : voeg markering toe op muis positie\n"
+#~ "\n"
+
+#~ msgid ""
+#~ " letter in the button text. Press the underlined key together with the "
+#~ msgstr " letters in de tekst op de knop. Druk op deze letter samen met de "
+
+#~ msgid "ALT-key"
+#~ msgstr "ALT-toets"
+
+#~ msgid "."
+#~ msgstr "."
+
+#~ msgid "You can move on the map by selecting the "
+#~ msgstr "Je kunt op de kaart verplaatsen door de "
+
+#~ msgid "Position-Mode"
+#~ msgstr "Positie-Modus"
+
+#~ msgid ""
+#~ "Suggestions welcome!\n"
+#~ "\n"
+#~ msgstr ""
+#~ " Suggesties zijn welkom!\n"
+#~ "\n"
+
+#~ msgid ""
+#~ "\n"
+#~ "\n"
+#~ "GpsDrive is a project with no comercial background. \n"
+#~ "\n"
+#~ msgstr ""
+#~ "\n"
+#~ "\n"
+#~ "GpsDrive is een projekt zonder commerciele achtergrond. \n"
+#~ "\n"
+
+#~ msgid "To do so, just go to"
+#~ msgstr "Om dit te doen, ga naar:"
+
+#~ msgid "and click on the"
+#~ msgstr "en klik op de"
+
+#~ msgid " PayPal "
+#~ msgstr " PayPal "
+
+#~ msgid ""
+#~ "button.\n"
+#~ "\n"
+#~ msgstr ""
+#~ "knop. \n"
+#~ "\n"
+
+#~ msgid ""
+#~ "Thank you very much for your donation!\n"
+#~ "\n"
+#~ msgstr " Dank u voor uw donatie !\n"
+
+#, fuzzy
+#~ msgid "/Operations Menu"
+#~ msgstr "Selecteer een route bestand"
+
+#, fuzzy
+#~ msgid "/ Messages"
+#~ msgstr "  Bericht  "
+
+#, fuzzy
+#~ msgid "/ Help"
+#~ msgstr "Help"
+
+#~ msgid "Load and display a previous stored track file"
+#~ msgstr "Opvragen en tonen van een eerder opgeslagen route"
+
+#~ msgid "Distance to "
+#~ msgstr "Afstand tot"
+
+#, fuzzy
+#~ msgid "Sel:"
+#~ msgstr "Selecteer doel"
+
+#~ msgid "Friendsicon loaded"
+#~ msgstr "Vriendicoon geladen"
+
+#, fuzzy
+#~ msgid "Status window"
+#~ msgstr "Status venster"
+
+#, fuzzy
+#~ msgid "can't open socket for friendsserver "
+#~ msgstr "Kan socket voor poort niet openen"
+
+#, fuzzy
+#~ msgid "Slow CPU"
+#~ msgstr "Laat WP zien"
+
+#, fuzzy
+#~ msgid "UTC (GPS)"
+#~ msgstr "UTC"
+
+#~ msgid "Ok"
+#~ msgstr "Ok"
+
+#~ msgid "Delete WP"
+#~ msgstr "Wis WP"
+
+#, fuzzy
+#~ msgid ""
+#~ "GpsDrive Help\n"
+#~ "\n"
+#~ msgstr "GpsDrive Help"
+
+#, fuzzy
+#~ msgid "+    : Zoom in\n"
+#~ msgstr "+    : Zoom in\n"
+
+#, fuzzy
+#~ msgid "-    : Zoom out\n"
+#~ msgstr "-    : Zoom uit\n"
+
+#, fuzzy
+#~ msgid "t    : select target\n"
+#~ msgstr "t    : Selecteer doel\n"
+
+#, fuzzy
+#~ msgid "d    : download map\n"
+#~ msgstr "d    : Download kaart\n"
+
+#, fuzzy
+#~ msgid "l    : load track\n"
+#~ msgstr "l    : Route opvragen\n"
+
+#, fuzzy
+#~ msgid "h    : show help\n"
+#~ msgstr "h    : Deze help pagina\n"
+
+#~ msgid "   Ok   "
+#~ msgstr "Ok"
+
+#~ msgid "Close"
+#~ msgstr "Sluiten"
+
+#~ msgid "OK"
+#~ msgstr "OK"
+
+#~ msgid "Quit"
+#~ msgstr "Sluiten"
+
+#~ msgid "Load track"
+#~ msgstr "Route opvragen"
+
+#~ msgid "Setup"
+#~ msgstr "Instellingen"
+
+#, fuzzy
+#~ msgid "not"
+#~ msgstr "niet"
+
+#, fuzzy
+#~ msgid ""
+#~ "GpsDrive Help\n"
+#~ "\n"
+#~ "GPSDRIVE (c) 2001,2002 Fritz Ganter <ganter at ganter.at>\n"
+#~ "\n"
+#~ "-------------------------------------------------\n"
+#~ "Website: www.kraftvoll.at/software\n"
+#~ "Disclaimer: Please do not use for navigation. \n"
+#~ "\n"
+#~ "*************************************************\n"
+#~ "\n"
+#~ "See the manpage for program details\n"
+#~ "\n"
+#~ "Mouse control (clicking on the map):\n"
+#~ "===================================\n"
+#~ "Left mouse button         : Set position (usefull in simulation mode)\n"
+#~ "Right mouse button        : Set target directly on the map\n"
+#~ "Middle mouse button       : Display position again\n"
+#~ "Shift left mouse button   : smaller map\n"
+#~ "Shift right mouse button  : larger map\n"
+#~ "Control left mouse button : Set a waypoint (mouse position) on the map\n"
+#~ "Control right mouse button: Set a waypoint at current position on the "
+#~ "map\n"
+#~ "\n"
+#~ "Short cuts:\n"
+#~ "===================================\n"
+#~ "+                         : Zoom in\n"
+#~ "-                         : Zoom out\n"
+#~ "s                         : larger map\n"
+#~ "a                         : smaller map\n"
+#~ "t                         : select target\n"
+#~ "d                         : download map\n"
+#~ "i                         : import map\n"
+#~ "l                         : load track\n"
+#~ "h                         : show help\n"
+#~ "q                         : quit program\n"
+#~ "b                         : toggle auto best map\n"
+#~ "w                         : toggle show waypoints\n"
+#~ "o                         : toggle show tracks\n"
+#~ "u                         : enter setup menu\n"
+#~ "n                         : in nightmode: toogles night display on/off\n"
+#~ "j                         : switch to next waypoint in route mode\n"
+#~ "p                         : switch to position mode\n"
+#~ "x                         : add waypoint at current position\n"
+#~ "\n"
+#~ "Suggestions welcome!\n"
+#~ "\n"
+#~ "Have a lot of fun!\n"
+#~ "\n"
+#~ msgstr ""
+#~ "GpsDrive Help\n"
+#~ "\n"
+#~ "GPSDRIVE (c) 2001,2002 Fritz Ganter <ganter at ganter.at>\n"
+#~ "\n"
+#~ "-------------------------------------------------\n"
+#~ "Website: www.kraftvoll.at/software\n"
+#~ "Disclaimer: Deze software niet gebruiken voor navigatie\n"
+#~ "\n"
+#~ "*************************************************\n"
+#~ "\n"
+#~ "Zie de gebruikershandleiding voor programma details\n"
+#~ "\n"
+#~ "Muis controle (klikken op de kaart):\n"
+#~ "===================================\n"
+#~ "Linker muis knop        : Instellen positie (handig in simulatie modus)\n"
+#~ "Rechter muis knop       : Instellen doel direct op de kaart\n"
+#~ "Middelste muis knop      : Positie nogmaals laten zien\n"
+#~ "Shift + linker muis knop  : kleinere kaart\n"
+#~ "Shift + rechter muis knop : grotere kaart\n"
+#~ "Control + linker muis knop: Wegmarkering instellen op de kaart\n"
+#~ "Control right mouse button: Zet een wegmarkering op huidige positie op de "
+#~ "kaart\n"
+#~ "\n"
+#~ "Short cuts:\n"
+#~ "===================================\n"
+#~ "+                         : Zoom in\n"
+#~ "-                         : Zoom uit\n"
+#~ "s                         : grotere kaart\n"
+#~ "a                         : kleinere kaart\n"
+#~ "t                         : selecteer doel\n"
+#~ "d                         : download kaart\n"
+#~ "i                         : importeer kaart\n"
+#~ "l                         : laad route\n"
+#~ "h                         : toon help\n"
+#~ "q                         : verlaat programma\n"
+#~ "b                         : beste kaart selectie aan-/uitscakelen\n"
+#~ "w                         : wegmarkeringen aan-/uitschakelen\n"
+#~ "o                         : routes aan-/uitschakelen\n"
+#~ "u                         : ga naar instellingen menu\n"
+#~ "x                         : voeg wegmerkering toe aan huidige positie\n"
+#~ "\n"
+#~ "Suggesties zijn van harte welkom!\n"
+#~ "\n"
+#~ "Veel plezier!\n"
+
+#~ msgid "No GPS Fix found!"
+#~ msgstr "Geen GPS fix gevonden!"
+
+#, fuzzy
+#~ msgid "Waypoint files"
+#~ msgstr "Wegmarkerings file"
+
+#, fuzzy
+#~ msgid "Nightmode off"
+#~ msgstr "In- of uitschakelen van schaduw op kaart"
+
+#~ msgid "Decimal lat/long display"
+#~ msgstr "Decimale lengte/breedte weergave"
+
+#~ msgid "GpsDrive Menu"
+#~ msgstr "GpsDrive Menu"
+
+#~ msgid "GpsDrive Status"
+#~ msgstr "GpsDrive Status"
+
+#~ msgid "GpsDrive Settings"
+#~ msgstr "GpsDrive Instellingen"
+
+#~ msgid "Starting point"
+#~ msgstr "Beginpunt "
+
+#~ msgid "Daheim"
+#~ msgstr "Daheim"
+
+#~ msgid "Select waypoints for a route"
+#~ msgstr "Selecteer wegmarkeringen voor een route"
+
+#~ msgid ""
+#~ "Wrong format in line %d\n"
+#~ "in your ~/.gpsdrive/way.txt file,\n"
+#~ "Format must be:\n"
+#~ "LABEL xxx.xxx yyy.yyy\n"
+#~ "where xxx.xxx is the is the latitude \n"
+#~ "and yyy.yyy is the longitude\n"
+#~ " of your waypoints.\n"
+#~ "Be sure to have a dot\n"
+#~ " for the decimal point!\n"
+#~ "\n"
+#~ "No waypoints loaded!"
+#~ msgstr ""
+#~ "Verkeerd formaat in regel %d\n"
+#~ "van het bestand ~/.gpsdrive/way.txt.\n"
+#~ "Het formaat dient er uit te zien als:\n"
+#~ "LABEL xxx.xxx yyy.yyy\n"
+#~ "waar xxx.xxx breedtegraad is en\n"
+#~ "yyy.yyy de lengtegraad van de\n"
+#~ "wegmarkeringen.\n"
+#~ "Zorg er voor dat er een punt staat\n"
+#~ "tussen de getallen!\n"
+#~ "\n"
+#~ "Geen wegmarkeringen geladen!"
+
+#~ msgid "---km"
+#~ msgstr "---km"
+
+#~ msgid "---km/h"
+#~ msgstr "---km/h"
+
+#~ msgid "--x"
+#~ msgstr "--x"
+
+#~ msgid "Zoom"
+#~ msgstr "Zoom"
+
+#~ msgid ""
+#~ "-t    serial device for GARMIN transfer mode only!\n"
+#~ "      Default is /dev/gps\n"
+#~ msgstr ""
+#~ "-t serieel apparaat voor GARMIN verzend mode!\n"
+#~ "    standaard \n"
+
+#~ msgid ""
+#~ "Please create an entry:\n"
+#~ "\n"
+#~ "DEFAULT xxx yyy\n"
+#~ "\n"
+#~ "in your ~/.gpsdrive/way.txt file,\n"
+#~ " where xxx is the latitude \n"
+#~ "and yyy is the longitude\n"
+#~ " of your startpoint. Be sure to have a map\n"
+#~ " for these coordinates!"
+#~ msgstr ""
+#~ "Maak a.u.b. een regel met:\n"
+#~ "\n"
+#~ "DEFAULT xxx.xxx yyy.yyy\n"
+#~ "\n"
+#~ "aan in het bestand ~/.gpsdrive/way.txt,\n"
+#~ "waarbij xxx.xxx de breedtegraad en \n"
+#~ "yyy.yyy de lengtegraad van uw \n"
+#~ "beginpositie is.\n"
+#~ "Zorg ervoor dat er een kaart beschikbaar\n"
+#~ "is voor deze positie!"

Added: packages/gpsdrive/branches/etch/po/no.gmo
===================================================================
(Binary files differ)


Property changes on: packages/gpsdrive/branches/etch/po/no.gmo
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: packages/gpsdrive/branches/etch/po/no.po
===================================================================
--- packages/gpsdrive/branches/etch/po/no.po	                        (rev 0)
+++ packages/gpsdrive/branches/etch/po/no.po	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,2341 @@
+# Norwegian messages for gpsdrive
+# Copyright (C) 2002 Free Software Foundation, Inc.
+# This file is distributed under the same license as the gpsdrive package.
+# Alexander Wigen <wigen at c2i.net>, 2002.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: gpsdrive 1.30\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-03-03 21:47+0100\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: Alexander Wigen <EMAIL at ADDRESS>\n"
+"Language-Team: Norwegian <LL at li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=iso-8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: src/gpsdrive.c:2179
+msgid "/_Misc. Menu"
+msgstr ""
+
+#: src/gpsdrive.c:2180
+msgid "/_Misc. Menu/Maps"
+msgstr ""
+
+#: src/gpsdrive.c:2181
+#, fuzzy
+msgid "/_Misc. Menu/Maps/_Import map"
+msgstr "i    : importer kart\n"
+
+#: src/gpsdrive.c:2185
+msgid "/_Misc. Menu/Maps/_Map Manager"
+msgstr ""
+
+#: src/gpsdrive.c:2187
+msgid "/_Misc. Menu/_Waypoint Manager"
+msgstr ""
+
+#: src/gpsdrive.c:2189
+#, fuzzy
+msgid "/_Misc. Menu/_Load track file"
+msgstr "Velg sporfil"
+
+#: src/gpsdrive.c:2193
+#, fuzzy
+msgid "/_Misc. Menu/Messages"
+msgstr "Velg sporfil"
+
+#: src/gpsdrive.c:2194
+msgid "/_Misc. Menu/Messages/Send message to mobile target"
+msgstr ""
+
+#: src/gpsdrive.c:2199
+msgid "/_Misc. Menu/Help"
+msgstr ""
+
+#: src/gpsdrive.c:2200
+msgid "/_Misc. Menu/Help/About"
+msgstr ""
+
+#: src/gpsdrive.c:2202
+msgid "/_Misc. Menu/Help/Topics"
+msgstr ""
+
+#: src/gpsdrive.c:2271
+#, fuzzy
+msgid "  Message  "
+msgstr "  Melding  "
+
+#: src/gpsdrive.c:2315 src/gpsdrive.c:12145
+#, fuzzy
+msgid "Stop GPSD"
+msgstr "Start GPSD"
+
+#: src/gpsdrive.c:2317 src/gpsdrive.c:12147
+#, fuzzy
+msgid "Stop GPSD and switch to simulation mode"
+msgstr "p    : veksle til posisjons modus\n"
+
+#: src/gpsdrive.c:2339 src/gpsdrive.c:11261
+msgid "Start GPSD"
+msgstr "Start GPSD"
+
+#: src/gpsdrive.c:2341 src/gpsdrive.c:12153
+msgid "Starts GPSD for NMEA mode"
+msgstr "Start GPSD i NMEA modus"
+
+#. displays zoom factor of map
+#: src/gpsdrive.c:2354 src/gpsdrive.c:2355 src/gpsdrive.c:2356
+#: src/gpsdrive.c:6264 src/gpsdrive.c:6273 src/gpsdrive.c:11484
+#: src/gpsdrive.c:11491 src/gpsdrive.c:11498 src/gpsdrive.c:11555
+#: src/gpsdrive.c:11560 src/gpsdrive.c:11566 src/gpsdrive.c:11602
+#: src/gpsdrive.c:11609 src/settings.c:1425 src/settings.c:1434
+#: src/settings.c:1443 src/settings.c:1468 src/settings.c:1478
+#: src/settings.c:1487 src/settings.c:1498 src/settings.c:1507
+#: src/settings.c:1517
+msgid "n/a"
+msgstr "i/m"
+
+#: src/gpsdrive.c:2366 src/gpsdrive.c:10245
+msgid ""
+"\n"
+"no garmin support compiled in\n"
+msgstr ""
+"\n"
+"støtte for garmin er ikke kompilert inn\n"
+
+#: src/gpsdrive.c:2387 src/gpsdrive.c:3136
+msgid "Simulation mode"
+msgstr "Simulerings modus"
+
+#: src/gpsdrive.c:2409
+msgid "got RMC data, using it\n"
+msgstr ""
+
+#: src/gpsdrive.c:2498 src/gpsdrive.c:11936
+msgid "Map"
+msgstr "Kart"
+
+#. if (debug)
+#: src/gpsdrive.c:2661
+msgid "got no RMC data, using GGA data\n"
+msgstr ""
+
+#: src/gpsdrive.c:2912
+msgid "Timeout getting data from GPS-Receiver!"
+msgstr "Fikk time-out ved venting på GPS-mottager"
+
+#: src/gpsdrive.c:2959 src/gpsdrive.c:3008 src/gpsdrive.c:3113
+#: src/gpsdrive.c:3199 src/gpsdrive.c:3324
+msgid "Press middle mouse button for navigation"
+msgstr "Trykk midt-knappen på musen for navigering"
+
+#: src/gpsdrive.c:2963
+#, fuzzy, c-format
+msgid "Direct serial connection to %s"
+msgstr "Kobler til %s"
+
+#: src/gpsdrive.c:3013 src/gpsdrive.c:3045 src/gpsdrive.c:3205
+#: src/gpsdrive.c:3330
+msgid "Not enough satellites in view!"
+msgstr "Ikke nok satelitter i sikte!"
+
+#: src/gpsdrive.c:3117
+msgid "GARMIN Mode"
+msgstr "GARMIN Modus"
+
+#: src/gpsdrive.c:3134
+msgid "No GPS used"
+msgstr "Ingen GPS brukt"
+
+#: src/gpsdrive.c:3138
+msgid "Press middle mouse button for sim mode"
+msgstr "Trykk midt-knappen på musen for simuleringsmodus"
+
+#: src/gpsdrive.c:3477
+#, c-format
+msgid "Distance to HomeBase: %.1fkm, max. allowed: %.1fkm\n"
+msgstr ""
+
+#: src/gpsdrive.c:3554 src/gpsdrive.c:3784 src/gpsdrive.c:6665
+#: src/gpsdrive.c:8534 src/gpsdrive.c:9000
+msgid "To"
+msgstr ""
+
+#: src/gpsdrive.c:3866
+msgid "Error in line "
+msgstr "Feil på linje "
+
+#: src/gpsdrive.c:3868
+#, fuzzy
+msgid ""
+"I have found filenames in map_koord.txt which are\n"
+"not map_* or top_* files. Please rename them and change the entries in\n"
+"map_koord.txt.  Use map_* for street maps and top_* for topographical\n"
+"maps.  Otherwise, the maps will not be displayed!"
+msgstr ""
+"Jeg har funnet filnavn i map_koord.txt som ikke er map_*\n"
+"eller top_* filer. Venligst bytt navn på disse og forandre\n"
+"linjene i map_koord.txt. Bruk map_* for gate kart og\n"
+"top_* for topologiske kart, ellers vil ikke kartene bli vist!"
+
+#: src/gpsdrive.c:4229
+msgid "Auto"
+msgstr "Auto"
+
+#: src/gpsdrive.c:4440
+#, fuzzy
+msgid "Warning!"
+msgstr "Rettning"
+
+#: src/gpsdrive.c:4441
+msgid "You should not start GpsDrive as user root!!!"
+msgstr ""
+
+#: src/gpsdrive.c:4756 src/gpsdrive.c:8145 src/gpsdrive.c:8154
+#: src/gpsdrive.c:11661 src/gpsdrive.c:11670
+msgid "mi/h"
+msgstr "mi/h"
+
+#: src/gpsdrive.c:4758 src/gpsdrive.c:8147 src/gpsdrive.c:8156
+#: src/gpsdrive.c:11663 src/gpsdrive.c:11672
+msgid "knots"
+msgstr "knop"
+
+#: src/gpsdrive.c:4760 src/gpsdrive.c:8149 src/gpsdrive.c:8158
+#: src/gpsdrive.c:11665 src/gpsdrive.c:11674
+msgid "km/h"
+msgstr "km/h"
+
+#: src/gpsdrive.c:5088
+msgid ""
+"\n"
+"Warning: unable to load gpsdriveanim.gif!\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+
+#. This string means North,East,South,West -- please translate the letters
+#: src/gpsdrive.c:5896
+msgid "NESW"
+msgstr "NØSV"
+
+#: src/gpsdrive.c:6064
+msgid "No map available for this position!"
+msgstr "Ingen kart tilgjengelig for denne posisjon!"
+
+#: src/gpsdrive.c:6258
+#, fuzzy
+msgid "unused"
+msgstr "Solnedgang"
+
+#: src/gpsdrive.c:6362
+msgid "can't open NMEA output file"
+msgstr "kan ikke åpne NMEA ut fil"
+
+#: src/gpsdrive.c:6473
+msgid " Mapfile could not be loaded:"
+msgstr "Kart fil kunne ikke lastes"
+
+#: src/gpsdrive.c:6517
+msgid "Map found!"
+msgstr ""
+
+#: src/gpsdrive.c:6552
+msgid " Friendsicon could not be loaded:"
+msgstr " Friendsicon kunne ikke lastes"
+
+#: src/gpsdrive.c:6555
+msgid ""
+"\n"
+"Warning: unable to load friendsicon!\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+
+#: src/gpsdrive.c:6843
+msgid "Select coordinates and scale"
+msgstr "Velg koordinater og skala"
+
+#: src/gpsdrive.c:6846
+msgid "Download map"
+msgstr "Henter kart"
+
+#: src/gpsdrive.c:6872 src/gpsdrive.c:7911 src/gpsdrive.c:9209
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/gpsdrive.c:11792
+msgid "Latitude"
+msgstr "Breddegrad"
+
+#: src/gpsdrive.c:6874 src/gpsdrive.c:7913 src/gpsdrive.c:9203
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/gpsdrive.c:11793
+msgid "Longitude"
+msgstr "Lengdegrad"
+
+#: src/gpsdrive.c:6876
+msgid "Map covers"
+msgstr "Kart dekker"
+
+#: src/gpsdrive.c:6880
+msgid "Scale"
+msgstr "Skala"
+
+#: src/gpsdrive.c:6882
+msgid "Map file name"
+msgstr "Kart fil navn"
+
+#: src/gpsdrive.c:6922 src/settings.c:958
+msgid "Expedia Germany"
+msgstr ""
+
+#: src/gpsdrive.c:6928 src/settings.c:964
+msgid "Expedia USA"
+msgstr ""
+
+#: src/gpsdrive.c:6934
+msgid "TopoZone(US Only)"
+msgstr ""
+
+#: src/gpsdrive.c:6943
+msgid ""
+"If selected, you download the map from the german expedia server (expedia.de)"
+msgstr ""
+
+#: src/gpsdrive.c:6947
+msgid ""
+"If selected, you download the map from the U.S. expedia server (expedia.com)"
+msgstr ""
+
+#: src/gpsdrive.c:6951
+msgid ""
+"If selected, you download the map from the TopoZone Server (US maps only)"
+msgstr ""
+
+#: src/gpsdrive.c:6977 src/gpsdrive.c:6981
+msgid ""
+"You can also select the position\n"
+"with a mouse click on the map."
+msgstr ""
+"Du kan også velge posisjonen\n"
+"med ett museklikk på kartet."
+
+#: src/gpsdrive.c:6983
+msgid "Using Proxy and port:"
+msgstr "Bruker Proxy og port:"
+
+#: src/gpsdrive.c:7280 src/gpsdrive.c:7397
+msgid "can't open socket for port 80"
+msgstr "kan ikke åpne uttak (socket) for port 80"
+
+#: src/gpsdrive.c:7282 src/gpsdrive.c:7285 src/gpsdrive.c:7309
+#: src/gpsdrive.c:7312 src/gpsdrive.c:7327 src/gpsdrive.c:7330
+#: src/gpsdrive.c:7399 src/gpsdrive.c:7404 src/gpsdrive.c:7407
+#: src/gpsdrive.c:7411 src/gpsdrive.c:7446 src/gpsdrive.c:7451
+#: src/gpsdrive.c:7454 src/gpsdrive.c:7458 src/gpsdrive.c:7473
+#: src/gpsdrive.c:7478 src/gpsdrive.c:7481 src/gpsdrive.c:7485
+#, c-format
+msgid "Connecting to %s FAILED!"
+msgstr "Tilkobling til %s var MISLYKKET!"
+
+#: src/gpsdrive.c:7307 src/gpsdrive.c:7444
+msgid "Can't resolve webserver address"
+msgstr "Kan ikke slå opp webserverens adresse"
+
+#: src/gpsdrive.c:7325 src/gpsdrive.c:7471
+msgid "unable to connect to Website"
+msgstr "kan ikke koble til Web-plassen"
+
+#: src/gpsdrive.c:7353 src/gpsdrive.c:7542
+msgid "read from Webserver"
+msgstr "lest fra Webserver"
+
+#: src/gpsdrive.c:7380 src/gpsdrive.c:7384 src/gpsdrive.c:7386
+#: src/gpsdrive.c:7389
+#, c-format
+msgid "Connecting to %s"
+msgstr "Kobler til %s"
+
+#: src/gpsdrive.c:7499 src/gpsdrive.c:7503 src/gpsdrive.c:7505
+#: src/gpsdrive.c:7508
+#, c-format
+msgid "Now connected to %s"
+msgstr "Koblet til %s"
+
+#: src/gpsdrive.c:7585
+#, c-format
+msgid "Downloaded %d kBytes"
+msgstr "Hentet %d kilobyte"
+
+#: src/gpsdrive.c:7599
+msgid "Download FAILED!"
+msgstr "Nedlasting MISLYKTES"
+
+#: src/gpsdrive.c:7601
+#, c-format
+msgid "Download finished, got %dkB"
+msgstr "Nedlasting ferdig, hentet %dKb"
+
+#: src/gpsdrive.c:7772
+msgid "Select a map file"
+msgstr "Velg en kartfil"
+
+#: src/gpsdrive.c:7837
+msgid ""
+"How to calibrate your own maps? First, the map file\n"
+"must be copied into the"
+msgstr ""
+
+#: src/gpsdrive.c:7839
+#, fuzzy
+msgid ""
+"\n"
+"directory as .gif, .jpg or .png file and must have\n"
+"the size 1280x1024. The file names must be\n"
+"map_* for street maps or top_* for topographical maps!\n"
+"Load the file, select coordinates from waypoint list or\n"
+"type them in. Then click on the accept button."
+msgstr ""
+"Hvordan kalibrere dine egne kart?\n"
+"\n"
+"Først, kart filen må være i ~/.gpsdrive katalogen som en .gif, .jpg eller ."
+"png fil og må ha størrelsen 1280x1024. Filene må hete map_* for gate kart "
+"eller top_* for topologiske kart!\n"
+"Last filen, velg koordinatene fra\n"
+"waypoint listen eller skriv dem inn.\n"
+"Så klikker du på Aksepter knappen."
+
+#: src/gpsdrive.c:7846
+#, fuzzy
+msgid ""
+"Now do the same for your second point and click on the\n"
+"finish button. The map can be used now."
+msgstr ""
+"Gjør det samme for det andre waypointet og klikk på Ferdig. Kartet kan nå "
+"brukes."
+
+#: src/gpsdrive.c:7851
+msgid "Import Assistant. Step 1"
+msgstr "Import Assistent Steg 1"
+
+#: src/gpsdrive.c:7853
+msgid "Import Assistant. Step 2"
+msgstr "Import Assistent Steg 2"
+
+#: src/gpsdrive.c:7858
+msgid "Accept first point"
+msgstr "Godta første punkt"
+
+#: src/gpsdrive.c:7860
+msgid "Finish"
+msgstr "Ferdig"
+
+#: src/gpsdrive.c:7881
+msgid "Go up"
+msgstr "Gå opp"
+
+#: src/gpsdrive.c:7884
+msgid "Go left"
+msgstr "Gå til venstre"
+
+#: src/gpsdrive.c:7887
+msgid "Go right"
+msgstr "Gå til Høyre"
+
+#: src/gpsdrive.c:7890
+msgid "Go down"
+msgstr "Gå ned"
+
+#: src/gpsdrive.c:7893
+msgid "Zoom in"
+msgstr "Zoom inn"
+
+#: src/gpsdrive.c:7896
+msgid "Zoom out"
+msgstr "Zoom out"
+
+#: src/gpsdrive.c:7915
+msgid "Screen X"
+msgstr "Skjerm X"
+
+#: src/gpsdrive.c:7917
+msgid "Screen Y"
+msgstr "Skjerm Y"
+
+#: src/gpsdrive.c:7919
+msgid "Browse waypoint"
+msgstr "Let frem waypoint"
+
+#: src/gpsdrive.c:7950
+msgid "Browse filename"
+msgstr "Let frem fil"
+
+#: src/gpsdrive.c:8043
+msgid "GpsDrive Control"
+msgstr "GpsDrive-meny"
+
+#: src/gpsdrive.c:8154 src/gpsdrive.c:8156 src/gpsdrive.c:8158
+#: src/gpsdrive.c:11670 src/gpsdrive.c:11672 src/gpsdrive.c:11674
+#: src/settings.c:1025
+msgid "Speed"
+msgstr "Fart"
+
+#: src/gpsdrive.c:8375
+msgid ""
+"\n"
+"distance jump is more then 1000km/h speed, ignoring\n"
+msgstr ""
+
+#: src/gpsdrive.c:8597 src/friends.c:348
+#, fuzzy
+msgid "/Misc. Menu/Messages"
+msgstr "Velg sporfil"
+
+#: src/gpsdrive.c:8600
+#, fuzzy
+msgid "Sending message to friends server..."
+msgstr "Slå Av/På distanse velging"
+
+#: src/gpsdrive.c:8673
+#, fuzzy
+msgid "Message for:"
+msgstr "  Melding  "
+
+#: src/gpsdrive.c:8714
+#, c-format
+msgid "Date: %s"
+msgstr ""
+
+#: src/gpsdrive.c:8727
+msgid "Sends your text to to selected computer using the friends server"
+msgstr ""
+
+#: src/gpsdrive.c:8999
+msgid "SELECTED"
+msgstr "VALGT"
+
+#: src/gpsdrive.c:9172
+msgid "Add waypoint name"
+msgstr "Legg til waypoiont navn"
+
+#: src/gpsdrive.c:9231
+msgid " Waypoint name: "
+msgstr " Waypoint navn: "
+
+#: src/gpsdrive.c:9244
+msgid " Waypoint type: "
+msgstr " Waypoint type: "
+
+#: src/gpsdrive.c:9489
+msgid "Name"
+msgstr ""
+
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/settings.c:1018
+msgid "Distance"
+msgstr "Avstand"
+
+#: src/gpsdrive.c:9499
+#, fuzzy
+msgid "Please select message recipient"
+msgstr "Velg din destinasjon"
+
+#: src/gpsdrive.c:9568 src/gpsdrive.c:9715
+msgid "Waypoint"
+msgstr "Waypoint"
+
+#: src/gpsdrive.c:9587
+msgid "Select reference point"
+msgstr "Velg refferansepunkt"
+
+#: src/gpsdrive.c:9591
+msgid "Please select your destination"
+msgstr "Velg din destinasjon"
+
+#: src/gpsdrive.c:9620
+msgid "Edit route"
+msgstr "Endre rute"
+
+#: src/gpsdrive.c:9622
+msgid "Create route"
+msgstr "Ny rute"
+
+#: src/gpsdrive.c:9693
+msgid "Create a route using some waypoints from this list"
+msgstr "Lag en rute med noen wapoints fra listen"
+
+#: src/gpsdrive.c:9698
+msgid "Delete the selected waypoint from the waypoint list"
+msgstr "Slett det valgte waypointen fra waypoint listen"
+
+#: src/gpsdrive.c:9702
+#, fuzzy
+msgid "Jump to the selected waypoint"
+msgstr ""
+"Klikk på waypoint listen\n"
+"for å legge til waypoints"
+
+#: src/gpsdrive.c:9729
+msgid "Define route"
+msgstr "Definer rute"
+
+#: src/gpsdrive.c:9737
+msgid "Start route"
+msgstr "Start rute"
+
+#: src/gpsdrive.c:9746
+msgid "Take all WP as route"
+msgstr "Bruk alle WP som en rute"
+
+#: src/gpsdrive.c:9751
+msgid "Abort route"
+msgstr "Avbryt rute"
+
+#: src/gpsdrive.c:9795
+msgid ""
+"Click on waypoints list\n"
+"to add waypoints"
+msgstr ""
+"Klikk på waypoint listen\n"
+"for å legge til waypoints"
+
+#: src/gpsdrive.c:9797
+#, fuzzy
+msgid ""
+"Click on list item\n"
+"to select next waypoint"
+msgstr ""
+"Klikk på waypoint listen\n"
+"for å legge til waypoints"
+
+#: src/gpsdrive.c:9838
+msgid ""
+"Create a route from all waypoints. Sorted with order in file, not distance."
+msgstr ""
+"Lag en rute med alle waypoints. Sortert etter rekkefølgen i filen, ikke "
+"avstand"
+
+#: src/gpsdrive.c:9842
+msgid ""
+"Click here to start your journey. GpsDrive guides you through the waypoints "
+"in this list."
+msgstr ""
+"Klikk her for å starte din ferd. GpsDrive leder deg igjennom vært waypoint i "
+"denne listen."
+
+#: src/gpsdrive.c:9845
+msgid "Abort your journey"
+msgstr "Avbryt din ferd"
+
+#: src/gpsdrive.c:9862
+#, fuzzy
+msgid "-v    show version\n"
+msgstr "-v    vis versjon\n"
+
+#: src/gpsdrive.c:9863
+#, fuzzy
+msgid "-h    print this help\n"
+msgstr "-h   vis denne hjelpen\n"
+
+#: src/gpsdrive.c:9864
+#, fuzzy
+msgid "-d    turn on debug info\n"
+msgstr "-d    skru på debug info\n"
+
+#: src/gpsdrive.c:9865
+#, fuzzy
+msgid "-D    turn on lot of debug info\n"
+msgstr "-D    skru på masse debug info\n"
+
+#: src/gpsdrive.c:9866
+#, fuzzy
+msgid "-e    use Festival-Lite (flite) for speech output\n"
+msgstr "-e    bruk Festival-Lite (flite) for tekst opplesing\n"
+
+#: src/gpsdrive.c:9867
+#, fuzzy
+msgid "-t    set serial device for GPS i.e. /dev/ttyS1\n"
+msgstr "-t    angi seriell port for GPS f.eks. /dev/ttyS1\n"
+
+#: src/gpsdrive.c:9868
+#, fuzzy
+msgid "-o    serial device, pty master, or file for NMEA *output*\n"
+msgstr "-o    seriell enhet, pty master, eller fil for NMEA *utdata*\n"
+
+#: src/gpsdrive.c:9869
+#, fuzzy
+msgid "-f X  Select friends server, X is i.e. www.gpsdrive.cc\n"
+msgstr "-f X  Velg en friends server, X er f.eks. linux.quant-x.at\n"
+
+#: src/gpsdrive.c:9870
+msgid "-n    Disable use of direct serial connection\n"
+msgstr ""
+
+#: src/gpsdrive.c:9871
+#, fuzzy
+msgid ""
+"-l X  Select language of the voice,\n"
+"      X may be english, spanish or german\n"
+msgstr ""
+"-l X  Velg språk for stemmen,\n"
+"      X kan være english, spanish or german\n"
+
+#: src/gpsdrive.c:9873
+msgid ""
+"-s X  set height of the screen, if autodetection\n"
+"      don't satisfy you, X is i.e. 768,600,480,200\n"
+msgstr ""
+
+#. ** Mod by Arms
+#: src/gpsdrive.c:9876
+#, fuzzy
+msgid "-r X  set width of the screen, only with -s\n"
+msgstr "-r X  Set bredde på skjermen, bare med -s\n"
+
+#: src/gpsdrive.c:9878
+#, fuzzy
+msgid "-1    have only 1 button mouse, for example using touchscreen\n"
+msgstr "-1    bruk kun en knapps mus, f.eks. ved touchscreen\n"
+
+#: src/gpsdrive.c:9879
+#, fuzzy
+msgid "-a    don't display battery status (i.e. broken APM)\n"
+msgstr "-a    ikke vis batteri status (f.eks. hvis APM krasjer)\n"
+
+#: src/gpsdrive.c:9881
+#, fuzzy
+msgid "-b X  Servername for NMEA server (if gpsd runs on another host)\n"
+msgstr ""
+"-b X  Servernavn for NMEA server (hvis gpsd kjører på en annen maskin)\n"
+
+#: src/gpsdrive.c:9883
+#, fuzzy
+msgid "-c X  set start position in simulation mode to waypoint name X\n"
+msgstr "-c X  sett start posisjon i simulterings modus til waypoint navn\n"
+
+#: src/gpsdrive.c:9884
+#, fuzzy
+msgid "-x    create separate window for menu\n"
+msgstr "-x    lag et eget vindu for menyen\n"
+
+#: src/gpsdrive.c:9885
+#, fuzzy
+msgid "-p    set settings for PDA (iPAQ, Yopy...)\n"
+msgstr "-p    sett instillinger for PDA (iPAQ, Yopy...)\n"
+
+#: src/gpsdrive.c:9887
+#, fuzzy
+msgid "-i    ignore NMEA checksum (risky, only for broken GPS receivers\n"
+msgstr ""
+"-i    ignorer NMEA checksum (risikabelt, bare for ødelakte GPS-motakere)\n"
+
+#: src/gpsdrive.c:9888
+#, fuzzy
+msgid "-q    disable SQL support\n"
+msgstr "-q    slå av SQL støtte\n"
+
+#: src/gpsdrive.c:9889
+msgid "-F    force display of position even it is invalid\n"
+msgstr ""
+
+#: src/gpsdrive.c:9890
+msgid "-S    don't show splash screen\n"
+msgstr ""
+
+#: src/gpsdrive.c:9891
+msgid "-E    print out data received from direct serial connection\n"
+msgstr ""
+
+#: src/gpsdrive.c:9893
+msgid "-W x  set x to 1 to switch WAAS/EGNOS on, set to 0 to switch off\n"
+msgstr ""
+
+#: src/gpsdrive.c:9894
+msgid "-H X  correct altitude, adding this value to altitude\n"
+msgstr ""
+
+#: src/gpsdrive.c:9895
+#, fuzzy
+msgid ""
+"-z    don't display zoom factor and scale\n"
+"\n"
+msgstr "-z    ikke vis zoom faktor og skalan\n"
+
+#: src/gpsdrive.c:10001
+msgid "Select a track file"
+msgstr "Velg sporfil"
+
+#: src/gpsdrive.c:10179 src/gpskismet.c:380
+msgid "can't open socket for port "
+msgstr "kan ikke åpne uttak (socket) for port "
+
+#: src/gpsdrive.c:10200
+#, c-format
+msgid ""
+"\n"
+"Cannot connect to %s: unknown host\n"
+msgstr ""
+
+#: src/gpsdrive.c:10221
+msgid "NMEA Mode, Port 2222"
+msgstr "NMEA Modus, Port 2222"
+
+#: src/gpsdrive.c:10230
+msgid "NMEA Mode, Port 2947"
+msgstr "NMEA Modus, Port 2947"
+
+#: src/gpsdrive.c:10249
+msgid ""
+"\n"
+"Garmin protocol detection disabled!\n"
+msgstr ""
+"\n"
+"Garmin protokoll deteksjon avslått!\n"
+
+#: src/gpsdrive.c:10600
+msgid ""
+"\n"
+"libmysqlclient.so not found.\n"
+msgstr ""
+
+#: src/gpsdrive.c:10606
+msgid ""
+"\n"
+"MySQL support disabled.\n"
+msgstr ""
+
+#: src/gpsdrive.c:10783
+msgid ""
+"\n"
+"You can only choose between english, spanish and german\n"
+"\n"
+msgstr ""
+"\n"
+"Du kan kun velge mellom \"english\", \"spanish\" og \"german\"\n"
+"\n"
+
+#: src/gpsdrive.c:10817 src/settings.c:1730
+#, fuzzy
+msgid "EnterYourName"
+msgstr "Interface"
+
+#: src/gpsdrive.c:10879
+#, c-format
+msgid ""
+"\n"
+"Using proxy: %s on port %d"
+msgstr ""
+"\n"
+"Bruker proxy: %s på port %d"
+
+#: src/gpsdrive.c:10883
+msgid ""
+"\n"
+"Invalid enviroment variable HTTP_PROXY, must be in format: http://proxy."
+"provider.de:3128"
+msgstr ""
+"\n"
+"Feil på formatet til variabel HTTP_PROXY, må være i dette formatet: http://"
+"proxy.tjener.no:3128"
+
+#: src/gpsdrive.c:11073
+#, fuzzy
+msgid "Gpsdrive-2 (c)2001-2004 F.Ganter"
+msgstr "(c)2001,2002 F.Ganter"
+
+#: src/gpsdrive.c:11081
+msgid "Using speech output"
+msgstr "Stemme aktivert"
+
+#: src/gpsdrive.c:11115
+#, fuzzy
+msgid "/Misc. Menu/Maps/Map Manager"
+msgstr "Velg sporfil"
+
+#: src/gpsdrive.c:11119
+#, fuzzy
+msgid "/Misc. Menu/Waypoint Manager"
+msgstr "Velg sporfil"
+
+#. download map button
+#: src/gpsdrive.c:11123
+#, fuzzy
+msgid "_Download map"
+msgstr "Henter kart"
+
+#: src/gpsdrive.c:11142
+#, fuzzy
+msgid "M_ute"
+msgstr "Stille"
+
+#: src/gpsdrive.c:11152
+#, fuzzy
+msgid "Use SQ_L"
+msgstr "Bruk SQL"
+
+#: src/gpsdrive.c:11162
+#, fuzzy
+msgid "Show _WP"
+msgstr "Vis WP"
+
+#: src/gpsdrive.c:11189
+msgid "HomeBase"
+msgstr ""
+
+#: src/gpsdrive.c:11197
+#, fuzzy
+msgid "Pos. _mode"
+msgstr "Pos. modus"
+
+#: src/gpsdrive.c:11203
+#, fuzzy
+msgid "Show _Track"
+msgstr "Vis spor"
+
+#: src/gpsdrive.c:11246
+msgid "_Navigation"
+msgstr ""
+
+#: src/gpsdrive.c:11265
+#, fuzzy
+msgid "Auto _best map"
+msgstr "Auto beste kart"
+
+#: src/gpsdrive.c:11275
+msgid "Save track"
+msgstr "Lagre spor"
+
+#: src/gpsdrive.c:11286
+msgid "Shown map type"
+msgstr "Vis kart type"
+
+#: src/gpsdrive.c:11297
+msgid "Street map"
+msgstr "Gate kart"
+
+#: src/gpsdrive.c:11304
+msgid "Topo map"
+msgstr "Topo. kart"
+
+#: src/gpsdrive.c:11386
+msgid ""
+"\n"
+"kismet server found\n"
+msgstr ""
+"\n"
+"fant kismet server\n"
+
+#: src/gpsdrive.c:11447 src/gpsdrive.c:11797
+msgid "Bearing"
+msgstr "Rettning"
+
+#: src/gpsdrive.c:11468
+#, fuzzy
+msgid "GPS Info"
+msgstr "Geo info"
+
+#: src/gpsdrive.c:11519
+msgid "Bat."
+msgstr "Bat."
+
+#: src/gpsdrive.c:11534
+#, fuzzy
+msgid "TC"
+msgstr "UTC"
+
+#. displays speed over ground
+#: src/gpsdrive.c:11552 src/gpsdrive.c:11807 src/gpsdrive.c:11809
+#: src/gpsdrive.c:11815 src/gpsdrive.c:11817
+msgid "---"
+msgstr "---"
+
+#: src/gpsdrive.c:11632 src/gpsdrive.c:11639
+#, fuzzy
+msgid "Selected:"
+msgstr "Velg mål"
+
+#: src/gpsdrive.c:11632 src/gpsdrive.c:11639
+msgid "within"
+msgstr ""
+
+#. create frames for labels
+#: src/gpsdrive.c:11647
+msgid "Distance to target"
+msgstr "Avstand til målet"
+
+#. ** Mod by Arms
+#. if (!pdamode)
+#. gtk_box_pack_start (GTK_BOX (hbox2), frame_speed, TRUE, TRUE,
+#. 1 * PADDING);
+#: src/gpsdrive.c:11683
+msgid "Altitude"
+msgstr "Høyde"
+
+#. ** Mod by Arms
+#. if (!pdamode)
+#. gtk_box_pack_start (GTK_BOX (hbox2), frame_altitude, FALSE, TRUE,
+#. 1 * PADDING);
+#: src/gpsdrive.c:11690 src/settings.c:681
+msgid "Waypoints"
+msgstr "Waypoints"
+
+#: src/gpsdrive.c:11794
+msgid "Map file"
+msgstr "Kart fil"
+
+#: src/gpsdrive.c:11795
+msgid "Map scale"
+msgstr "Kart skala"
+
+#: src/gpsdrive.c:11796
+msgid "Heading"
+msgstr "Rettning"
+
+#: src/gpsdrive.c:11798
+msgid "Time at Dest."
+msgstr "Ankomsttid"
+
+#: src/gpsdrive.c:11799
+msgid "Pref. scale"
+msgstr "Foretruk. skala"
+
+#: src/gpsdrive.c:11803
+msgid "000,00000N"
+msgstr ""
+
+#: src/gpsdrive.c:11805
+msgid "000,00000E"
+msgstr ""
+
+#: src/gpsdrive.c:11811 src/gpsdrive.c:11813
+msgid "0000"
+msgstr ""
+
+#. gdk_window_lower((GdkWindow *)menuwin);
+#: src/gpsdrive.c:11886 src/gpsdrive.c:11937
+msgid "Menu"
+msgstr "Meny"
+
+#. gdk_window_lower((GdkWindow *)menuwin2);
+#: src/gpsdrive.c:11895 src/gpsdrive.c:11938
+msgid "Status"
+msgstr "Status"
+
+#: src/gpsdrive.c:12089
+msgid ""
+"Click here to switch betwen satetellite level and satellite position "
+"display. A rotating globe is shown in simulation mode"
+msgstr ""
+
+#: src/gpsdrive.c:12093
+#, fuzzy
+msgid "Number of used satellites/satellites in view"
+msgstr "Ikke nok satelitter i sikte!"
+
+#: src/gpsdrive.c:12096
+msgid "EPE (Estimated Precision Error), if available"
+msgstr ""
+
+#: src/gpsdrive.c:12100
+msgid ""
+"PDOP (Position Dilution Of Precision). PDOP less than 4 gives the best "
+"accuracy, between 4 and 8 gives acceptable accuracy and greater than 8 gives "
+"unacceptable poor accuracy. "
+msgstr ""
+
+#: src/gpsdrive.c:12105
+msgid ""
+"On top of the compass you see the direction to which you move. The pointer "
+"shows the target direction on the compass."
+msgstr ""
+
+#: src/gpsdrive.c:12108
+msgid "/Misc. Menu"
+msgstr ""
+
+#: src/gpsdrive.c:12111
+msgid "Here you find extra functions for maps, tracks and messages"
+msgstr ""
+
+#: src/gpsdrive.c:12115
+msgid "Download map from Internet"
+msgstr "Hent kart fra internett"
+
+#: src/gpsdrive.c:12117
+msgid "Leave the program"
+msgstr "Avslutt programmet"
+
+#: src/gpsdrive.c:12120
+msgid "Disable output of speech"
+msgstr "Slå av tale"
+
+#: src/gpsdrive.c:12123
+msgid "Use SQL server for waypoints"
+msgstr "Bruk SQL server for waypoints"
+
+#: src/gpsdrive.c:12126
+msgid "Show waypoints on the map"
+msgstr "Vis waypoints på kartet"
+
+#: src/gpsdrive.c:12129
+msgid ""
+"Turn position mode on. You can move on the map with the left mouse button "
+"click. Clicking near the border switches to the proximate map."
+msgstr ""
+"Skru på posisjons modus. Du kan flytte på kartet med den venstre muse knapp. "
+"Klikk nær kanten skifter til neste kart."
+
+#: src/gpsdrive.c:12132
+msgid "Show tracking on the map"
+msgstr "Vis spor på kart"
+
+#: src/gpsdrive.c:12137
+msgid "Opens the help window"
+msgstr "Åpner hjelpe vindu"
+
+#: src/gpsdrive.c:12140
+msgid "Navigation menu. Enter here your destination."
+msgstr ""
+
+#: src/gpsdrive.c:12156
+msgid "Settings for GpsDrive"
+msgstr "Instillinger"
+
+#: src/gpsdrive.c:12158
+msgid "Zoom into the current map"
+msgstr "Zoom inn i kartet"
+
+#: src/gpsdrive.c:12160
+msgid "Zooms out off the current map"
+msgstr "Zoom ut av kartet"
+
+#: src/gpsdrive.c:12162
+msgid "Select the next more detailed map"
+msgstr "Velger den neste mer detaljerte kartet"
+
+#: src/gpsdrive.c:12164
+msgid "Select the next less detailed map"
+msgstr "Velger det neste mindre detaljerte kartet"
+
+#: src/gpsdrive.c:12169
+msgid "Select here a destination from the waypoint list"
+msgstr "Velg en destinasjon fra waypoint listen"
+
+#: src/gpsdrive.c:12173
+msgid "Select the map scale of avail. maps."
+msgstr "Velg kart skala fra tilgjengelige kart."
+
+#: src/gpsdrive.c:12178
+msgid "Always select the most detailed map available"
+msgstr "Altid velg det mest detaljerte kartet"
+
+#: src/gpsdrive.c:12181
+msgid "Save the track to given filename at program exit"
+msgstr "Lagre sporet til fil ved avsluttning"
+
+#: src/gpsdrive.c:12187
+msgid "Number of waypoints selected from SQL server"
+msgstr ""
+
+#: src/gpsdrive.c:12191
+msgid "Number of selected waypoints, which are in range"
+msgstr ""
+
+#: src/gpsdrive.c:12195
+msgid "Range for waypoint selection in kilometers"
+msgstr ""
+
+#: src/gpsdrive.c:12198
+msgid "This shows the time from your GPS receiver"
+msgstr ""
+
+#: src/gpsdrive.c:12201
+msgid ""
+"Number of mobile targets within timeframe/total received from friendsserver"
+msgstr ""
+
+#: src/gpsdrive.c:12275
+msgid ""
+"\n"
+"\n"
+"Thank you for using GpsDrive!\n"
+"\n"
+msgstr ""
+"\n"
+"\n"
+"Takk for at du bruker GpsDrive!\n"
+"\n"
+
+#: src/splash.c:543
+#, fuzzy
+msgid "GpsDrive v"
+msgstr "GpsDrive Hjelp"
+
+#: src/splash.c:549
+msgid ""
+"\n"
+"\n"
+"You find new versions on http://www.gpsdrive.cc\n"
+msgstr ""
+
+#: src/splash.c:553
+msgid ""
+"Disclaimer: Please do not use for navigation. \n"
+"\n"
+msgstr ""
+"Advarsel: Ikke stol på programmet til navigasjon. \n"
+"\n"
+
+#: src/splash.c:558
+#, fuzzy
+msgid "Please have a look into the manpage (man gpsdrive) for program details!"
+msgstr ""
+"Se 'man gpsdrive' for flere detaljer\n"
+"\n"
+
+#: src/splash.c:563
+msgid "Mouse control (clicking on the map):\n"
+msgstr "Mus kontroll (klikk på kartet):\n"
+
+#: src/splash.c:569
+msgid ""
+"Left mouse button         : Set position (usefull in simulation mode)\n"
+"Right mouse button        : Set target directly on the map\n"
+"Middle mouse button       : Display position again\n"
+"Shift left mouse button   : smaller map\n"
+"Shift right mouse button  : larger map\n"
+"Control left mouse button : Set a waypoint (mouse position) on the map\n"
+"Control right mouse button: Set a waypoint at current position on the map\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:577
+msgid ""
+"j    : switch to next waypoint in route mode\n"
+"x    : add waypoint at current position\n"
+"y    : add waypoint at mouse cursor position\n"
+msgstr ""
+
+#: src/splash.c:583
+msgid "Short cuts:\n"
+msgstr "Hurtigknapper:\n"
+
+#: src/splash.c:590
+msgid "The other key shortcuts are marked as "
+msgstr ""
+
+#: src/splash.c:591
+msgid "underlined"
+msgstr ""
+
+#: src/splash.c:593
+msgid " letters in the button text.\n"
+msgstr ""
+
+#: src/splash.c:596
+msgid ""
+"Press the underlined key together with the ALT-key.\n"
+"\n"
+"You can move on the map by selecting the Position-Mode in the menu. A blue "
+"rectangle shows this mode, you can set this cursor by clicking on the map. "
+"If you click on the border of the map (the outer 20%) then the map switches "
+"to the next area.\n"
+"\n"
+"Suggestions welcome.\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:603
+#, fuzzy
+msgid "Have a lot of fun!"
+msgstr ""
+"Ha en masse gøy!\n"
+"\n"
+
+#: src/splash.c:734
+msgid "Please donate to GpsDrive"
+msgstr ""
+
+#: src/splash.c:740
+msgid ""
+"\n"
+"\n"
+"GpsDrive is a project with no comercial background. \n"
+"\n"
+"It would be nice if you can give a donation to help me pay the costs for "
+"hardware and the webserver.\n"
+"\n"
+"To do so, just go to"
+msgstr ""
+
+#: src/splash.c:744
+msgid " http://www.gpsdrive.cc "
+msgstr ""
+
+#: src/splash.c:747
+msgid ""
+"and click on the PayPal button.\n"
+"\n"
+"Thank you very much for your donation!\n"
+"\n"
+"This message is only displayed once when you start an new version of "
+"GpsDrive.\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:780
+#, fuzzy
+msgid "About GpsDrive donation"
+msgstr "GpsDrive-meny"
+
+#: src/splash.c:859
+msgid "From:"
+msgstr ""
+
+#: src/splash.c:928
+#, fuzzy, c-format
+msgid ""
+"You received a message from\n"
+"the friends server (%s)\n"
+msgstr "Slå Av/På distanse velging"
+
+#: src/splash.c:938
+#, fuzzy
+msgid "You received a message through the friends server from:\n"
+msgstr "Slå Av/På distanse velging"
+
+#: src/splash.c:948
+#, fuzzy
+msgid "Message text:\n"
+msgstr "  Melding  "
+
+#: src/splash.c:1004
+msgid "Error saving config file ~/.gpsdrive/gpsdriverc"
+msgstr "Feil under lagring av ~/.gpsdrive/gpsdriverc"
+
+#: src/splash.c:1519 src/splash.c:1578
+msgid ""
+"\n"
+"Warning: unable to open splash picture\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:1562
+#, fuzzy
+msgid "About GpsDrive"
+msgstr "GpsDrive-meny"
+
+#: src/settings.c:438
+msgid "Setting WP label font"
+msgstr ""
+
+#: src/settings.c:440
+msgid "Setting big display font"
+msgstr ""
+
+#: src/settings.c:507
+msgid "Setting big display color"
+msgstr ""
+
+#: src/settings.c:545
+msgid "Setting track color"
+msgstr ""
+
+#: src/settings.c:587
+msgid "Setting friends label color"
+msgstr ""
+
+#: src/settings.c:668
+msgid ""
+"Don't use more than\n"
+"100 waypoint(way*.txt) files!"
+msgstr ""
+"Benytt ikke mer en\n"
+"100 waypoint(way*.txt) filer!"
+
+#: src/settings.c:679
+msgid "Waypoint files to use"
+msgstr "Benytt Waypoint fil"
+
+#: src/settings.c:704 src/settings.c:709
+msgid "Settings"
+msgstr "Instillinger"
+
+#. misc area
+#: src/settings.c:716
+msgid "Misc settings"
+msgstr "Div instillinger"
+
+#: src/settings.c:720
+msgid "Show Shadows"
+msgstr "Vis skygge"
+
+#: src/settings.c:727
+msgid "Etched frames"
+msgstr ""
+
+#: src/settings.c:735
+msgid "Simulation: Follow target"
+msgstr "Simulasjon: Følg mål"
+
+#: src/settings.c:742
+msgid "Maximum CPU load"
+msgstr ""
+
+#: src/settings.c:752
+#, fuzzy
+msgid "Track"
+msgstr "Vis spor"
+
+#: src/settings.c:767
+msgid "Maps directory"
+msgstr "Kart mappe"
+
+#: src/settings.c:773
+msgid "Automatic"
+msgstr "Automatisk"
+
+#: src/settings.c:779
+msgid "On"
+msgstr "På"
+
+#: src/settings.c:784
+msgid "Off"
+msgstr "Av"
+
+#. gtk_table_attach_defaults (GTK_TABLE (misctable), label2, 0, 2, 3, 4);
+#. gtk_table_attach_defaults (GTK_TABLE (misctable), mapdirbt, 0, 2, 4, 5);
+#. GPS settings area
+#: src/settings.c:808
+msgid "GPS settings"
+msgstr "GPS instillinger"
+
+#. gtk_container_add (GTK_CONTAINER (f4), gpstable);
+#: src/settings.c:822
+msgid "Test for GARMIN"
+msgstr "Søk etter GARMIN"
+
+#: src/settings.c:833
+msgid "Use DGPS-IP"
+msgstr "Bruk DPGS-IP"
+
+#: src/settings.c:843
+msgid "GPS is Earthmate"
+msgstr ""
+
+#: src/settings.c:853
+msgid "Use serial conn."
+msgstr ""
+
+#: src/settings.c:868
+msgid "Interface"
+msgstr "Interface"
+
+#: src/settings.c:869
+msgid "Baudrate"
+msgstr ""
+
+#. units area
+#: src/settings.c:904
+msgid "Units"
+msgstr "Enheter"
+
+#: src/settings.c:910
+msgid "Miles"
+msgstr "Miles"
+
+#: src/settings.c:915
+msgid "Metric"
+msgstr "Metrisk"
+
+#: src/settings.c:920 src/nautic.c:106
+msgid "Nautic"
+msgstr "Nautisk"
+
+#: src/settings.c:930
+msgid "Decimal position"
+msgstr "Desimal posisjon"
+
+#. gtk_box_pack_start (GTK_BOX (v2), miles, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), metric, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), nautic, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), minsecbt, TRUE, FALSE, 2 * PADDING);
+#.
+#. default download server
+#: src/settings.c:948
+msgid "Default map server"
+msgstr "Standart kart server"
+
+#. Night light mode
+#: src/settings.c:981
+msgid "Night light mode"
+msgstr "Natt modus"
+
+#.  gtk_table_attach_defaults (GTK_TABLE (table), f5, 0, 2, 2, 3);
+#. Sound settings
+#: src/settings.c:999
+#, fuzzy
+msgid "Speech output settings"
+msgstr "Aeronautiske innstillinger"
+
+#.
+#. set following sounds
+#. sound_direction ... say direction to target
+#. sound_distance  ... say distance to target
+#. sound_speed     ... say your current speed
+#. sound_gps       ... say GPS status
+#.
+#.
+#: src/settings.c:1011
+msgid "Direction"
+msgstr ""
+
+#: src/settings.c:1032
+#, fuzzy
+msgid "GPS Status"
+msgstr "Status"
+
+#: src/settings.c:1046
+msgid "Switch on for speech output of the direction to the target"
+msgstr ""
+
+#: src/settings.c:1051
+msgid "Switch on for speech output of the distance to the target"
+msgstr ""
+
+#: src/settings.c:1056
+msgid "Switch on for speech output of your current speed"
+msgstr ""
+
+#: src/settings.c:1061
+msgid "Switch on for speech output of the status of your GPS signal"
+msgstr ""
+
+#. Font settings
+#: src/settings.c:1066
+#, fuzzy
+msgid "Font and color settings"
+msgstr "GPS instillinger"
+
+#. gtk_box_pack_start (GTK_BOX (h1), f5, TRUE, FALSE, 2 * PADDING);
+#: src/settings.c:1071
+msgid "WP Label"
+msgstr ""
+
+#: src/settings.c:1072
+msgid "Big display"
+msgstr ""
+
+#: src/settings.c:1073
+msgid "Display color"
+msgstr ""
+
+#: src/settings.c:1101
+msgid "Switch units to statute miles"
+msgstr "Skift enhet til miles"
+
+#: src/settings.c:1103
+msgid "Switch units to nautical miles"
+msgstr "Skift enhet til nautiske mil"
+
+#: src/settings.c:1105
+msgid "Switch units to metric system (Kilometers)"
+msgstr "Skift enhet til metrisk system (Kilometer)"
+
+#: src/settings.c:1110
+msgid ""
+"If selected display latitude and longitude in decimal degrees, otherwise in "
+"degree, minutes and seconds notation"
+msgstr ""
+"Hvis valgt, vis bredde og lengdegrad i grader. Ellers som grader, minutter "
+"og sekunder"
+
+#: src/settings.c:1115
+#, fuzzy
+msgid ""
+"Set the german expedia server(expedia.de) as default download server. Use "
+"this if you are in Europe"
+msgstr "Sett Expedia som standard kart server"
+
+#: src/settings.c:1119
+msgid "Set Expedia as default download server"
+msgstr "Sett Expedia som standard kart server"
+
+#: src/settings.c:1122
+msgid "Switches shadows on map on or off"
+msgstr "Veksler mellom skygger på kart"
+
+#: src/settings.c:1126
+msgid "Switches between different type of frame ornaments"
+msgstr ""
+
+#: src/settings.c:1131
+#, c-format
+msgid ""
+"Select the approx. maximum CPU load, use 20-30% on notebooks while on "
+"battery to save battery power. This effects the refresh rate of the map "
+"screen"
+msgstr ""
+
+#: src/settings.c:1136
+msgid "If activated, pointer moves to target in simulation mode"
+msgstr "Hvis aktivert, vil viser bevege seg mot mål i sim. modus"
+
+#: src/settings.c:1140
+msgid "Set here the color of the drawn track"
+msgstr ""
+
+#: src/settings.c:1144
+msgid ""
+"Path to your map files. In the specified directory also the index file "
+"map_koord.txt must be present."
+msgstr ""
+"Bane til dine kart filer. I den spesifiserte banen må også indeks filen "
+"map_koord.txt befinne seg."
+
+#: src/settings.c:1149
+msgid ""
+"If selected, gpsdrive try to use GARMIN mode if possible. Unselect if you "
+"only have a NMEA device."
+msgstr ""
+"Hvis valgt vil gpsdrive prøve å bruke GARMIN modus hvis mulig. Fjern "
+"markering hvis du kun har en NMEA enhet."
+
+#: src/settings.c:1154
+msgid ""
+"Set here the baud rate of your GPS device, NMEA devices usually have a speed "
+"of 4800 baud"
+msgstr ""
+
+#: src/settings.c:1159
+msgid ""
+"If selected, gpsdrive try to use differential GPS over IP. You must have an "
+"internet connection and a DGPS capable GPS receiver. Works only in NMEA mode!"
+msgstr ""
+"Hvis valgt vil gpsdrive forsøke å bruke differensial GPS via IP. Du må ha en "
+"forbinnelse med internett og en DPGS GPS motaker. Virker kun i NMEA modus!"
+
+#: src/settings.c:1164
+msgid ""
+"Select this if you have a DeLorme Earthmate GPS receiver. The StartGPSD "
+"button will provide gpsd with the needed additional parameters"
+msgstr ""
+
+#: src/settings.c:1169
+msgid ""
+"Select this if you want to use of the direct serial connection. If disabled, "
+"you can use the receiver only through gpsd. On the other hand, the direct "
+"serial connection needs no gpsd running and detects the working receiver on "
+"startup"
+msgstr ""
+
+#: src/settings.c:1174
+msgid "Specify the serial interface where the GPS is connected"
+msgstr "Spesifiser hvilken seriel enhet GPS'en er tilkoblet"
+
+#: src/settings.c:1179
+msgid ""
+"Switches automagically to night mode if it is dark outside. Press 'N' key to "
+"turn off nightmode."
+msgstr ""
+"Bytter automagisk til natt modus hvis det er mørkt ute. Trykk 'N' for å slå "
+"av natt modus."
+
+#: src/settings.c:1183
+msgid "Switches night mode on. Press 'N' key to turn off nightmode."
+msgstr "Slår natt modus på. Trykk 'N' for å slå av natt modus."
+
+#: src/settings.c:1186
+msgid "Switches night mode off"
+msgstr "Slår natt modus av"
+
+#: src/settings.c:1190
+#, fuzzy
+msgid "Here you can set the font for the waypoint labels"
+msgstr "Slett det valgte waypointen fra waypoint listen"
+
+#: src/settings.c:1195
+msgid "Here you can set the font for the big display for Speed and Distance"
+msgstr ""
+
+#: src/settings.c:1199
+#, fuzzy
+msgid ""
+"Here you can set the color for the big display for speed, distance and "
+"altitude"
+msgstr "Slett det valgte waypointen fra waypoint listen"
+
+#: src/settings.c:1377
+msgid "Geo information"
+msgstr "Geo informasjon"
+
+#: src/settings.c:1379
+msgid "Geo info"
+msgstr "Geo info"
+
+#: src/settings.c:1390
+msgid "Sunrise"
+msgstr "Soloppgang"
+
+#: src/settings.c:1392
+msgid "Sunset"
+msgstr "Solnedgang"
+
+#: src/settings.c:1395
+msgid "Standard"
+msgstr "Standard"
+
+#: src/settings.c:1397
+msgid "Transit"
+msgstr "Transit"
+
+#: src/settings.c:1399
+msgid "GPS-Time"
+msgstr ""
+
+#: src/settings.c:1401
+msgid "Astro."
+msgstr "Astro."
+
+#: src/settings.c:1403
+msgid "Naut."
+msgstr "Naut."
+
+#: src/settings.c:1405
+msgid "Civil"
+msgstr "Sivil"
+
+#: src/settings.c:1407
+msgid "Timezone"
+msgstr "Tidssone"
+
+#: src/settings.c:1409
+msgid "Store TZ"
+msgstr ""
+
+#: src/settings.c:1419
+msgid ""
+"If selected, the timezone is stored, otherwise your actual timezone will "
+"automatically used"
+msgstr ""
+
+#: src/settings.c:1453
+msgid "Night"
+msgstr "Natt"
+
+#: src/settings.c:1455
+msgid "Day"
+msgstr "Dag"
+
+#: src/settings.c:1592 src/settings.c:1594 src/settings.c:1597
+msgid "Unit:"
+msgstr "Enhet:"
+
+#: src/settings.c:1592
+msgid "miles"
+msgstr "miles"
+
+#: src/settings.c:1595
+msgid "nautic miles/knots"
+msgstr "nautiske mil/knop"
+
+#: src/settings.c:1597
+msgid "kilometers"
+msgstr "kilometer"
+
+#: src/settings.c:1612
+msgid "Trip information"
+msgstr "Tur informasjon"
+
+#: src/settings.c:1614
+msgid "Trip info"
+msgstr "Tur info"
+
+#: src/settings.c:1628
+msgid "Odometer"
+msgstr "Odometer"
+
+#: src/settings.c:1630
+msgid "Total time"
+msgstr "Total tid"
+
+#: src/settings.c:1632
+msgid "Av. speed"
+msgstr "Gj. fart"
+
+#: src/settings.c:1634
+msgid "Max. speed"
+msgstr "Maks fart"
+
+#: src/settings.c:1658
+msgid "Reset"
+msgstr ""
+
+#: src/settings.c:1663
+msgid "Resets the trip values to zero"
+msgstr ""
+
+#: src/settings.c:1732
+msgid "You should change your name in the first field!"
+msgstr ""
+
+#: src/settings.c:1918
+#, fuzzy
+msgid "Show position newer as"
+msgstr "Vis waypoints på kartet"
+
+#: src/settings.c:1920
+#, fuzzy
+msgid "Friends server setup"
+msgstr ""
+"\n"
+"fant kismet server\n"
+
+#: src/settings.c:1921
+#, fuzzy
+msgid "Friends"
+msgstr "Ferdig"
+
+#: src/settings.c:1933
+#, fuzzy
+msgid "Days"
+msgstr "Dag"
+
+#: src/settings.c:1934
+msgid "Hours"
+msgstr ""
+
+#: src/settings.c:1935
+#, fuzzy
+msgid "Minutes"
+msgstr "Miles"
+
+#: src/settings.c:1941
+msgid "Your name"
+msgstr ""
+
+#: src/settings.c:1946
+msgid ""
+"Set here your name which should be shown near your vehicle. You may use "
+"spaces here!"
+msgstr ""
+
+#: src/settings.c:1958
+msgid "Server name"
+msgstr ""
+
+#: src/settings.c:1963
+msgid ""
+"Set here the full qualified host name (i.e. www.gpsdrive.cc) of your friends "
+"server, then you have to press the \"Lookup\" button!"
+msgstr ""
+
+#: src/settings.c:1972
+msgid "Lookup"
+msgstr ""
+
+#: src/settings.c:1980
+msgid ""
+"You have to press the \"Lookup\" button to resolve the friends server name!"
+msgstr ""
+
+#: src/settings.c:1991
+msgid "Set here the color of the label displayed at friends position"
+msgstr ""
+
+#: src/settings.c:1997
+#, fuzzy
+msgid "Friends server IP"
+msgstr ""
+"\n"
+"fant kismet server\n"
+
+#: src/settings.c:2002
+msgid ""
+"Set here the IP adress (i.e. 127.0.0.1) if you don't set the hostname above"
+msgstr ""
+
+#: src/settings.c:2007 src/settings.c:2012 src/settings.c:2016
+msgid ""
+"Set here the time limit in which the friends position is shown. Older "
+"positions are not shown."
+msgstr ""
+
+#: src/settings.c:2028
+#, fuzzy
+msgid "Use friends server"
+msgstr ""
+"\n"
+"fant kismet server\n"
+
+#: src/settings.c:2036
+msgid ""
+"Enable/disable use of friends server. You must enter a Username, don't use "
+"the default name!"
+msgstr ""
+
+#: src/settings.c:2039
+msgid ""
+"If you enable the friendsserver mode,\n"
+"<span color=\"red\">everyone</span> using the same server\n"
+"can see your position!"
+msgstr ""
+
+#: src/settings.c:2094
+msgid "SQL selection criterias"
+msgstr "SQL velge kriteria"
+
+#: src/settings.c:2095
+msgid "SQL"
+msgstr "SQL"
+
+#: src/settings.c:2121
+msgid "Dist. limit[km] "
+msgstr "Dist. grense[km]"
+
+#: src/settings.c:2126
+msgid "If enabled, show waypoints only within this distance"
+msgstr "Hvis på, vis waypoints kun innenfor denne distansen"
+
+#: src/settings.c:2142
+msgid "Enable/disable distance selection"
+msgstr "Slå Av/På distanse velging"
+
+#: src/settings.c:2151
+#, fuzzy
+msgid "Show no_ssid "
+msgstr "Vis WP"
+
+#: src/settings.c:2162
+msgid ""
+"If enabled, WLANs with no SSID are shown, because this is perhaps useless, "
+"you can disable it here"
+msgstr ""
+
+#: src/settings.c:2168
+msgid "Selection mode"
+msgstr "Velge modus"
+
+#: src/settings.c:2170
+msgid "include"
+msgstr "inkluder"
+
+#: src/settings.c:2173
+msgid "exclude"
+msgstr "ekskluder"
+
+#: src/settings.c:2177
+msgid ""
+"Show only waypoints where the type field contains one of the selected words"
+msgstr "Vis kun waypoints der type feltet inneholder et av de valgte ordene"
+
+#: src/settings.c:2181
+msgid ""
+"Show only waypoints where the type field doesn't contain any the selected "
+"words"
+msgstr ""
+"Vis kun waypoints der type feltet ikke inneholder et av de valgte ordene"
+
+#: src/fly.c:149
+msgid "Aeronautical settings"
+msgstr "Aeronautiske innstillinger"
+
+#: src/fly.c:151
+msgid "Fly"
+msgstr "Fly"
+
+#: src/fly.c:158
+msgid "Plane mode"
+msgstr "Fly modus"
+
+#: src/fly.c:165
+msgid "Use VFR"
+msgstr "Bruk VFR"
+
+#: src/fly.c:171
+msgid "Use IFR"
+msgstr "Bruk IFR"
+
+#: src/fly.c:181
+msgid "max. horizontal deviation "
+msgstr "max. horisontalt avvik"
+
+#: src/fly.c:183
+msgid "max. vertical deviation "
+msgstr "max. vertikalt avvik"
+
+#: src/fly.c:198
+msgid "disable vert. deviation warning above 5000ft MSL"
+msgstr "skru av vert. avviks-advarsel over 5000ft MSL"
+
+#: src/nautic.c:103
+msgid "Nautic settings"
+msgstr "Nautiske instillinger"
+
+#. if (debug)
+#: src/gpssql.c:215
+#, c-format
+msgid ""
+"\n"
+"SQL: connected to %s as %s using %s\n"
+msgstr ""
+"\n"
+"SQL: koblet til %s som %s med %s\n"
+
+#: src/gpssql.c:278
+#, c-format
+msgid "rows inserted: %d\n"
+msgstr "rader satt inn: %d\n"
+
+#: src/gpssql.c:293
+#, c-format
+msgid "last index: %d\n"
+msgstr "siste index: %d\n"
+
+#: src/gpssql.c:314
+#, fuzzy, c-format
+msgid "rows deleted: %d\n"
+msgstr "rader satt inn: %d\n"
+
+#: src/gpssql.c:366 src/gpssql.c:372
+#, c-format
+msgid "Loaded user defined icon %s\n"
+msgstr ""
+
+#: src/gpssql.c:455
+#, c-format
+msgid "%d(%d) rows read in %.2f seconds\n"
+msgstr "%d(%d) rader lest på %.2f sekund\n"
+
+#: src/friends.c:363
+#, fuzzy
+msgid "unknown"
+msgstr "Ukjent"
+
+#: src/friendsd.c:472
+msgid "server: please don't run me as root\n"
+msgstr ""
+
+#: src/friendsd.c:484
+#, c-format
+msgid ""
+"\n"
+"Usage:\n"
+"   %s -n servername\n"
+"provides a name for your server\n"
+msgstr ""
+
+#: src/gpsnasamap.c:189
+#, c-format
+msgid "could not create output map file %s!\n"
+msgstr ""
+
+#. g_signal_connect (window, "destroy",
+#. G_CALLBACK (gtk_widget_destroyed), &window);
+#: src/gpsnasamap.c:204
+msgid "Creating map..."
+msgstr ""
+
+#: src/gpsnasamap.c:212
+msgid "Creating a temporary map from NASA satellite images"
+msgstr ""
+
+#: src/gpsnasamap.c:219
+#, c-format
+msgid "converting map for latitude: %f and longitude: %f ...\n"
+msgstr ""
+
+#: src/gpsnasamap.c:324
+msgid ""
+"\n"
+"You can permanently add this map file with following line in your\n"
+"map_koord.txt (rename the file!):\n"
+msgstr ""
+
+#: src/gpsserial.c:252
+msgid "waiting for thread to stop\n"
+msgstr ""
+
+#: src/gpsserial.c:275
+#, c-format
+msgid ""
+"\n"
+"error opening %s(%d)\n"
+msgstr ""
+
+#: src/gpsserial.c:278
+#, c-format
+msgid "successfull opened %s\n"
+msgstr ""
+
+#: src/gpsserial.c:284
+msgid "switching WAAS/EGNOS on\n"
+msgstr ""
+
+#: src/gpsserial.c:290
+msgid "switching WAAS/EGNOS off\n"
+msgstr ""
+
+#~ msgid "Set Mapblast as default download server"
+#~ msgstr "Sett Mapblast som standard kart server"
+
+#~ msgid "Enable?"
+#~ msgstr "Slå på?"
+
+#~ msgid "Sat level"
+#~ msgstr "Sat nivå"
+
+#, fuzzy
+#~ msgid "Simulation"
+#~ msgstr "Simulerings modus"
+
+#, fuzzy
+#~ msgid "Sim.mode"
+#~ msgstr "Simulerings modus"
+
+#~ msgid "Yes, please start gpsd"
+#~ msgstr "Ja, start gpsd"
+
+#~ msgid "No, start simulation"
+#~ msgstr "Nei, start simulering"
+
+#~ msgid ""
+#~ "Neither gpsd nor GARMIN device detected!\n"
+#~ "Should I start gpsd (NMEA mode) for you?"
+#~ msgstr ""
+#~ "Verken gpsd eller GARMIN-enhet funnet\n"
+#~ "Skal jeg starte gpsd (NMEA modus) for deg?"
+
+#, fuzzy
+#~ msgid "-n X  Select display name on friends server, X is i.e. Fritz\n"
+#~ msgstr "-n X  Velg navn på friends server, X er f.eks. Fritz\n"
+
+#~ msgid "UTC "
+#~ msgstr "UTC"
+
+#, fuzzy
+#~ msgid "Your friendsserver: %s"
+#~ msgstr ""
+#~ "\n"
+#~ "fant kismet server\n"
+
+#~ msgid "Cancel"
+#~ msgstr "Avbryt"
+
+#, fuzzy
+#~ msgid "/Misc. Menu/Maps"
+#~ msgstr "Velg sporfil"
+
+#~ msgid "Import"
+#~ msgstr "Importer"
+
+#~ msgid "Let you import and calibrate your own map"
+#~ msgstr "Importer og kalibrer ditt eget kart"
+
+#, fuzzy
+#~ msgid ""
+#~ "Left mouse button         : Set position (usefull in simulation mode)\n"
+#~ msgstr "Venstre musknapp         : Velg posisjon (i simulerings modus)\n"
+
+#, fuzzy
+#~ msgid "Right mouse button        : Set target directly on the map\n"
+#~ msgstr "Høyre musknapp           : Velg mål direkte på kartet\n"
+
+#, fuzzy
+#~ msgid "Middle mouse button       : Display position again\n"
+#~ msgstr "Midtre musknapp          : Vis posisjonen igjen\n"
+
+#, fuzzy
+#~ msgid "Shift left mouse button   : smaller map\n"
+#~ msgstr "Shift + venstre musknapp : mindre kart\n"
+
+#, fuzzy
+#~ msgid "Shift right mouse button  : larger map\n"
+#~ msgstr "Shift + høyre musknapp   : større kart\n"
+
+#~ msgid ""
+#~ "Control left mouse button : Set a waypoint (mouse position) on the map\n"
+#~ msgstr "CTRL + venstre musknapp   : Lag waypoint på kartet der musen er\n"
+
+#~ msgid ""
+#~ "Control right mouse button: Set a waypoint at current position on the "
+#~ "map\n"
+#~ "\n"
+#~ msgstr ""
+#~ "CTRL + høyre musknapp     : Lag waypoint på nåværende posisjon\n"
+#~ "\n"
+
+#, fuzzy
+#~ msgid "j    : switch to next waypoint in route mode\n"
+#~ msgstr "j    : gå til neste waypoint i rute modus\n"
+
+#, fuzzy
+#~ msgid "x    : add waypoint at current position\n"
+#~ msgstr ""
+#~ "x    : legg til waypoint på nåværende posisjon\n"
+#~ "\n"
+
+#, fuzzy
+#~ msgid ""
+#~ "y    : add waypoint at mouse cursor position\n"
+#~ "\n"
+#~ msgstr ""
+#~ "x    : legg til waypoint på nåværende posisjon\n"
+#~ "\n"
+
+#, fuzzy
+#~ msgid "/Operations Menu"
+#~ msgstr "Velg sporfil"
+
+#, fuzzy
+#~ msgid "/ Messages"
+#~ msgstr "  Melding  "
+
+#, fuzzy
+#~ msgid "/ Help"
+#~ msgstr "Hjelp"
+
+#~ msgid "Load and display a previous stored track file"
+#~ msgstr "Last inn og vis en tidligere lagret spor fil"
+
+#~ msgid "Distance to "
+#~ msgstr "Avstand til "
+
+#, fuzzy
+#~ msgid "Sel:"
+#~ msgstr "Velg mål"
+
+#, fuzzy
+#~ msgid "Time"
+#~ msgstr "Tidssone"
+
+#~ msgid "Friendsicon loaded"
+#~ msgstr "Freindsicon lastet"
+
+#~ msgid "Menu window"
+#~ msgstr "Meny vindu"
+
+#~ msgid "Status window"
+#~ msgstr "Status vindu"
+
+#, fuzzy
+#~ msgid "can't open socket for friendsserver "
+#~ msgstr "kan ikke åpne uttak (socket) for port "
+
+#~ msgid "Slow CPU"
+#~ msgstr "Langsom CPU"
+
+#~ msgid ""
+#~ "Select, if your CPU is very slow ( < PII MMX/233MHz). This reduces the "
+#~ "framerate to 1 frame/second."
+#~ msgstr ""
+#~ "Velges hvis CPU'en er sen (< PII MMX/233Mhz). Dette reduserer "
+#~ "antallbilder til 1 pr. sekund."
+
+#~ msgid "UTC (GPS)"
+#~ msgstr "UTC (GPS)"
+
+#~ msgid "Ok"
+#~ msgstr "Ok"
+
+#~ msgid "Delete WP"
+#~ msgstr "Slett WP"
+
+#~ msgid ""
+#~ "GpsDrive Help\n"
+#~ "\n"
+#~ msgstr ""
+#~ "GpsDrive Hjelp\n"
+#~ "\n"
+
+#, fuzzy
+#~ msgid ""
+#~ "GPSDRIVE (c) 2001-2003 Fritz Ganter <ganter at ganter.at>\n"
+#~ "\n"
+#~ msgstr ""
+#~ "GPSDRIVE (c) 2001,2002 Fritz Ganter <ganter at ganter.at>\n"
+#~ "\n"
+
+#~ msgid "Website: www.kraftvoll.at/software\n"
+#~ msgstr "Webside: www.kraftvoll.at/software\n"
+
+#, fuzzy
+#~ msgid "+    : Zoom in\n"
+#~ msgstr "+    : Zoom inn\n"
+
+#, fuzzy
+#~ msgid "-    : Zoom out\n"
+#~ msgstr "-    : Zoom ut\n"
+
+#, fuzzy
+#~ msgid "s    : larger map\n"
+#~ msgstr "s    : større kart\n"
+
+#, fuzzy
+#~ msgid "a    : smaller map\n"
+#~ msgstr "a    : mindre kart\n"
+
+#, fuzzy
+#~ msgid "t    : select target\n"
+#~ msgstr "t    : velg mål\n"
+
+#, fuzzy
+#~ msgid "d    : download map\n"
+#~ msgstr "d    : last ned kart\n"
+
+#, fuzzy
+#~ msgid "l    : load track\n"
+#~ msgstr "l    : last spor\n"
+
+#, fuzzy
+#~ msgid "h    : show help\n"
+#~ msgstr "h    : vis hjelp\n"
+
+#, fuzzy
+#~ msgid "q    : quit program\n"
+#~ msgstr "q    : avslutt programm\n"
+
+#, fuzzy
+#~ msgid "b    : toggle auto best map\n"
+#~ msgstr "b    : veksle auto beste kart\n"
+
+#, fuzzy
+#~ msgid "w    : toggle show waypoints\n"
+#~ msgstr "w    : veksle vis waypoints\n"
+
+#, fuzzy
+#~ msgid "o    : toggle show tracks\n"
+#~ msgstr "o    : veksle vis spor\n"
+
+#, fuzzy
+#~ msgid "u    : enter setup menu\n"
+#~ msgstr "u    : instillinger"
+
+#, fuzzy
+#~ msgid "n    : in nightmode: toogles night display on/off\n"
+#~ msgstr "n    : veksler natt modus (sparer nattsynet)"
+
+#, fuzzy
+#~ msgid "   Ok   "
+#~ msgstr "   Ok   "
+
+#~ msgid "Close"
+#~ msgstr "Lukk"
+
+#~ msgid "OK"
+#~ msgstr "OK"
+
+#~ msgid "Quit"
+#~ msgstr "Avslutt"
+
+#~ msgid "Load track"
+#~ msgstr "Last spor"
+
+#~ msgid "Setup"
+#~ msgstr "Oppsett"

Added: packages/gpsdrive/branches/etch/po/pt_BR.gmo
===================================================================
(Binary files differ)


Property changes on: packages/gpsdrive/branches/etch/po/pt_BR.gmo
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: packages/gpsdrive/branches/etch/po/pt_BR.po
===================================================================
--- packages/gpsdrive/branches/etch/po/pt_BR.po	                        (rev 0)
+++ packages/gpsdrive/branches/etch/po/pt_BR.po	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,1935 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Free Software Foundation, Inc.
+# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-03-03 21:47+0100\n"
+"PO-Revision-Date: 2002-09-12 11:57+0200\n"
+"Last-Translator: Fritz Ganter <ganter at ganter.at>\n"
+"Language-Team: german <de at li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 0.9.6\n"
+
+#: src/gpsdrive.c:2179
+msgid "/_Misc. Menu"
+msgstr ""
+
+#: src/gpsdrive.c:2180
+msgid "/_Misc. Menu/Maps"
+msgstr ""
+
+#: src/gpsdrive.c:2181
+msgid "/_Misc. Menu/Maps/_Import map"
+msgstr ""
+
+#: src/gpsdrive.c:2185
+msgid "/_Misc. Menu/Maps/_Map Manager"
+msgstr ""
+
+#: src/gpsdrive.c:2187
+msgid "/_Misc. Menu/_Waypoint Manager"
+msgstr ""
+
+#: src/gpsdrive.c:2189
+msgid "/_Misc. Menu/_Load track file"
+msgstr ""
+
+#: src/gpsdrive.c:2193
+msgid "/_Misc. Menu/Messages"
+msgstr ""
+
+#: src/gpsdrive.c:2194
+msgid "/_Misc. Menu/Messages/Send message to mobile target"
+msgstr ""
+
+#: src/gpsdrive.c:2199
+msgid "/_Misc. Menu/Help"
+msgstr ""
+
+#: src/gpsdrive.c:2200
+msgid "/_Misc. Menu/Help/About"
+msgstr ""
+
+#: src/gpsdrive.c:2202
+msgid "/_Misc. Menu/Help/Topics"
+msgstr ""
+
+#: src/gpsdrive.c:2271
+msgid "  Message  "
+msgstr ""
+
+#: src/gpsdrive.c:2315 src/gpsdrive.c:12145
+msgid "Stop GPSD"
+msgstr ""
+
+#: src/gpsdrive.c:2317 src/gpsdrive.c:12147
+msgid "Stop GPSD and switch to simulation mode"
+msgstr ""
+
+#: src/gpsdrive.c:2339 src/gpsdrive.c:11261
+msgid "Start GPSD"
+msgstr ""
+
+#: src/gpsdrive.c:2341 src/gpsdrive.c:12153
+msgid "Starts GPSD for NMEA mode"
+msgstr ""
+
+#. displays zoom factor of map
+#: src/gpsdrive.c:2354 src/gpsdrive.c:2355 src/gpsdrive.c:2356
+#: src/gpsdrive.c:6264 src/gpsdrive.c:6273 src/gpsdrive.c:11484
+#: src/gpsdrive.c:11491 src/gpsdrive.c:11498 src/gpsdrive.c:11555
+#: src/gpsdrive.c:11560 src/gpsdrive.c:11566 src/gpsdrive.c:11602
+#: src/gpsdrive.c:11609 src/settings.c:1425 src/settings.c:1434
+#: src/settings.c:1443 src/settings.c:1468 src/settings.c:1478
+#: src/settings.c:1487 src/settings.c:1498 src/settings.c:1507
+#: src/settings.c:1517
+msgid "n/a"
+msgstr ""
+
+#: src/gpsdrive.c:2366 src/gpsdrive.c:10245
+msgid ""
+"\n"
+"no garmin support compiled in\n"
+msgstr ""
+
+#: src/gpsdrive.c:2387 src/gpsdrive.c:3136
+msgid "Simulation mode"
+msgstr ""
+
+#: src/gpsdrive.c:2409
+msgid "got RMC data, using it\n"
+msgstr ""
+
+#: src/gpsdrive.c:2498 src/gpsdrive.c:11936
+msgid "Map"
+msgstr ""
+
+#. if (debug)
+#: src/gpsdrive.c:2661
+msgid "got no RMC data, using GGA data\n"
+msgstr ""
+
+#: src/gpsdrive.c:2912
+msgid "Timeout getting data from GPS-Receiver!"
+msgstr ""
+
+#: src/gpsdrive.c:2959 src/gpsdrive.c:3008 src/gpsdrive.c:3113
+#: src/gpsdrive.c:3199 src/gpsdrive.c:3324
+msgid "Press middle mouse button for navigation"
+msgstr ""
+
+#: src/gpsdrive.c:2963
+#, c-format
+msgid "Direct serial connection to %s"
+msgstr ""
+
+#: src/gpsdrive.c:3013 src/gpsdrive.c:3045 src/gpsdrive.c:3205
+#: src/gpsdrive.c:3330
+msgid "Not enough satellites in view!"
+msgstr ""
+
+#: src/gpsdrive.c:3117
+msgid "GARMIN Mode"
+msgstr ""
+
+#: src/gpsdrive.c:3134
+msgid "No GPS used"
+msgstr ""
+
+#: src/gpsdrive.c:3138
+msgid "Press middle mouse button for sim mode"
+msgstr ""
+
+#: src/gpsdrive.c:3477
+#, c-format
+msgid "Distance to HomeBase: %.1fkm, max. allowed: %.1fkm\n"
+msgstr ""
+
+#: src/gpsdrive.c:3554 src/gpsdrive.c:3784 src/gpsdrive.c:6665
+#: src/gpsdrive.c:8534 src/gpsdrive.c:9000
+msgid "To"
+msgstr ""
+
+#: src/gpsdrive.c:3866
+msgid "Error in line "
+msgstr ""
+
+#: src/gpsdrive.c:3868
+msgid ""
+"I have found filenames in map_koord.txt which are\n"
+"not map_* or top_* files. Please rename them and change the entries in\n"
+"map_koord.txt.  Use map_* for street maps and top_* for topographical\n"
+"maps.  Otherwise, the maps will not be displayed!"
+msgstr ""
+
+#: src/gpsdrive.c:4229
+msgid "Auto"
+msgstr ""
+
+#: src/gpsdrive.c:4440
+msgid "Warning!"
+msgstr ""
+
+#: src/gpsdrive.c:4441
+msgid "You should not start GpsDrive as user root!!!"
+msgstr ""
+
+#: src/gpsdrive.c:4756 src/gpsdrive.c:8145 src/gpsdrive.c:8154
+#: src/gpsdrive.c:11661 src/gpsdrive.c:11670
+msgid "mi/h"
+msgstr ""
+
+#: src/gpsdrive.c:4758 src/gpsdrive.c:8147 src/gpsdrive.c:8156
+#: src/gpsdrive.c:11663 src/gpsdrive.c:11672
+msgid "knots"
+msgstr ""
+
+#: src/gpsdrive.c:4760 src/gpsdrive.c:8149 src/gpsdrive.c:8158
+#: src/gpsdrive.c:11665 src/gpsdrive.c:11674
+msgid "km/h"
+msgstr ""
+
+#: src/gpsdrive.c:5088
+msgid ""
+"\n"
+"Warning: unable to load gpsdriveanim.gif!\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+
+#. This string means North,East,South,West -- please translate the letters
+#: src/gpsdrive.c:5896
+msgid "NESW"
+msgstr ""
+
+#: src/gpsdrive.c:6064
+msgid "No map available for this position!"
+msgstr ""
+
+#: src/gpsdrive.c:6258
+msgid "unused"
+msgstr ""
+
+#: src/gpsdrive.c:6362
+msgid "can't open NMEA output file"
+msgstr ""
+
+#: src/gpsdrive.c:6473
+msgid " Mapfile could not be loaded:"
+msgstr ""
+
+#: src/gpsdrive.c:6517
+msgid "Map found!"
+msgstr ""
+
+#: src/gpsdrive.c:6552
+msgid " Friendsicon could not be loaded:"
+msgstr ""
+
+#: src/gpsdrive.c:6555
+msgid ""
+"\n"
+"Warning: unable to load friendsicon!\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+
+#: src/gpsdrive.c:6843
+msgid "Select coordinates and scale"
+msgstr ""
+
+#: src/gpsdrive.c:6846
+msgid "Download map"
+msgstr ""
+
+#: src/gpsdrive.c:6872 src/gpsdrive.c:7911 src/gpsdrive.c:9209
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/gpsdrive.c:11792
+msgid "Latitude"
+msgstr ""
+
+#: src/gpsdrive.c:6874 src/gpsdrive.c:7913 src/gpsdrive.c:9203
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/gpsdrive.c:11793
+msgid "Longitude"
+msgstr ""
+
+#: src/gpsdrive.c:6876
+msgid "Map covers"
+msgstr ""
+
+#: src/gpsdrive.c:6880
+msgid "Scale"
+msgstr ""
+
+#: src/gpsdrive.c:6882
+msgid "Map file name"
+msgstr ""
+
+#: src/gpsdrive.c:6922 src/settings.c:958
+msgid "Expedia Germany"
+msgstr ""
+
+#: src/gpsdrive.c:6928 src/settings.c:964
+msgid "Expedia USA"
+msgstr ""
+
+#: src/gpsdrive.c:6934
+msgid "TopoZone(US Only)"
+msgstr ""
+
+#: src/gpsdrive.c:6943
+msgid ""
+"If selected, you download the map from the german expedia server (expedia.de)"
+msgstr ""
+
+#: src/gpsdrive.c:6947
+msgid ""
+"If selected, you download the map from the U.S. expedia server (expedia.com)"
+msgstr ""
+
+#: src/gpsdrive.c:6951
+msgid ""
+"If selected, you download the map from the TopoZone Server (US maps only)"
+msgstr ""
+
+#: src/gpsdrive.c:6977 src/gpsdrive.c:6981
+msgid ""
+"You can also select the position\n"
+"with a mouse click on the map."
+msgstr ""
+
+#: src/gpsdrive.c:6983
+msgid "Using Proxy and port:"
+msgstr ""
+
+#: src/gpsdrive.c:7280 src/gpsdrive.c:7397
+msgid "can't open socket for port 80"
+msgstr ""
+
+#: src/gpsdrive.c:7282 src/gpsdrive.c:7285 src/gpsdrive.c:7309
+#: src/gpsdrive.c:7312 src/gpsdrive.c:7327 src/gpsdrive.c:7330
+#: src/gpsdrive.c:7399 src/gpsdrive.c:7404 src/gpsdrive.c:7407
+#: src/gpsdrive.c:7411 src/gpsdrive.c:7446 src/gpsdrive.c:7451
+#: src/gpsdrive.c:7454 src/gpsdrive.c:7458 src/gpsdrive.c:7473
+#: src/gpsdrive.c:7478 src/gpsdrive.c:7481 src/gpsdrive.c:7485
+#, c-format
+msgid "Connecting to %s FAILED!"
+msgstr ""
+
+#: src/gpsdrive.c:7307 src/gpsdrive.c:7444
+msgid "Can't resolve webserver address"
+msgstr ""
+
+#: src/gpsdrive.c:7325 src/gpsdrive.c:7471
+msgid "unable to connect to Website"
+msgstr ""
+
+#: src/gpsdrive.c:7353 src/gpsdrive.c:7542
+msgid "read from Webserver"
+msgstr ""
+
+#: src/gpsdrive.c:7380 src/gpsdrive.c:7384 src/gpsdrive.c:7386
+#: src/gpsdrive.c:7389
+#, c-format
+msgid "Connecting to %s"
+msgstr ""
+
+#: src/gpsdrive.c:7499 src/gpsdrive.c:7503 src/gpsdrive.c:7505
+#: src/gpsdrive.c:7508
+#, c-format
+msgid "Now connected to %s"
+msgstr ""
+
+#: src/gpsdrive.c:7585
+#, c-format
+msgid "Downloaded %d kBytes"
+msgstr ""
+
+#: src/gpsdrive.c:7599
+msgid "Download FAILED!"
+msgstr ""
+
+#: src/gpsdrive.c:7601
+#, c-format
+msgid "Download finished, got %dkB"
+msgstr ""
+
+#: src/gpsdrive.c:7772
+msgid "Select a map file"
+msgstr ""
+
+#: src/gpsdrive.c:7837
+msgid ""
+"How to calibrate your own maps? First, the map file\n"
+"must be copied into the"
+msgstr ""
+
+#: src/gpsdrive.c:7839
+msgid ""
+"\n"
+"directory as .gif, .jpg or .png file and must have\n"
+"the size 1280x1024. The file names must be\n"
+"map_* for street maps or top_* for topographical maps!\n"
+"Load the file, select coordinates from waypoint list or\n"
+"type them in. Then click on the accept button."
+msgstr ""
+
+#: src/gpsdrive.c:7846
+msgid ""
+"Now do the same for your second point and click on the\n"
+"finish button. The map can be used now."
+msgstr ""
+
+#: src/gpsdrive.c:7851
+msgid "Import Assistant. Step 1"
+msgstr ""
+
+#: src/gpsdrive.c:7853
+msgid "Import Assistant. Step 2"
+msgstr ""
+
+#: src/gpsdrive.c:7858
+msgid "Accept first point"
+msgstr ""
+
+#: src/gpsdrive.c:7860
+msgid "Finish"
+msgstr ""
+
+#: src/gpsdrive.c:7881
+msgid "Go up"
+msgstr ""
+
+#: src/gpsdrive.c:7884
+msgid "Go left"
+msgstr ""
+
+#: src/gpsdrive.c:7887
+msgid "Go right"
+msgstr ""
+
+#: src/gpsdrive.c:7890
+msgid "Go down"
+msgstr ""
+
+#: src/gpsdrive.c:7893
+msgid "Zoom in"
+msgstr ""
+
+#: src/gpsdrive.c:7896
+msgid "Zoom out"
+msgstr ""
+
+#: src/gpsdrive.c:7915
+msgid "Screen X"
+msgstr ""
+
+#: src/gpsdrive.c:7917
+msgid "Screen Y"
+msgstr ""
+
+#: src/gpsdrive.c:7919
+msgid "Browse waypoint"
+msgstr ""
+
+#: src/gpsdrive.c:7950
+msgid "Browse filename"
+msgstr ""
+
+#: src/gpsdrive.c:8043
+msgid "GpsDrive Control"
+msgstr ""
+
+#: src/gpsdrive.c:8154 src/gpsdrive.c:8156 src/gpsdrive.c:8158
+#: src/gpsdrive.c:11670 src/gpsdrive.c:11672 src/gpsdrive.c:11674
+#: src/settings.c:1025
+msgid "Speed"
+msgstr ""
+
+#: src/gpsdrive.c:8375
+msgid ""
+"\n"
+"distance jump is more then 1000km/h speed, ignoring\n"
+msgstr ""
+
+#: src/gpsdrive.c:8597 src/friends.c:348
+msgid "/Misc. Menu/Messages"
+msgstr ""
+
+#: src/gpsdrive.c:8600
+msgid "Sending message to friends server..."
+msgstr ""
+
+#: src/gpsdrive.c:8673
+msgid "Message for:"
+msgstr ""
+
+#: src/gpsdrive.c:8714
+#, c-format
+msgid "Date: %s"
+msgstr ""
+
+#: src/gpsdrive.c:8727
+msgid "Sends your text to to selected computer using the friends server"
+msgstr ""
+
+#: src/gpsdrive.c:8999
+msgid "SELECTED"
+msgstr ""
+
+#: src/gpsdrive.c:9172
+msgid "Add waypoint name"
+msgstr ""
+
+#: src/gpsdrive.c:9231
+msgid " Waypoint name: "
+msgstr ""
+
+#: src/gpsdrive.c:9244
+msgid " Waypoint type: "
+msgstr ""
+
+#: src/gpsdrive.c:9489
+msgid "Name"
+msgstr ""
+
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/settings.c:1018
+msgid "Distance"
+msgstr ""
+
+#: src/gpsdrive.c:9499
+msgid "Please select message recipient"
+msgstr ""
+
+#: src/gpsdrive.c:9568 src/gpsdrive.c:9715
+msgid "Waypoint"
+msgstr ""
+
+#: src/gpsdrive.c:9587
+msgid "Select reference point"
+msgstr ""
+
+#: src/gpsdrive.c:9591
+msgid "Please select your destination"
+msgstr ""
+
+#: src/gpsdrive.c:9620
+msgid "Edit route"
+msgstr ""
+
+#: src/gpsdrive.c:9622
+msgid "Create route"
+msgstr ""
+
+#: src/gpsdrive.c:9693
+msgid "Create a route using some waypoints from this list"
+msgstr ""
+
+#: src/gpsdrive.c:9698
+msgid "Delete the selected waypoint from the waypoint list"
+msgstr ""
+
+#: src/gpsdrive.c:9702
+msgid "Jump to the selected waypoint"
+msgstr ""
+
+#: src/gpsdrive.c:9729
+msgid "Define route"
+msgstr ""
+
+#: src/gpsdrive.c:9737
+msgid "Start route"
+msgstr ""
+
+#: src/gpsdrive.c:9746
+msgid "Take all WP as route"
+msgstr ""
+
+#: src/gpsdrive.c:9751
+msgid "Abort route"
+msgstr ""
+
+#: src/gpsdrive.c:9795
+msgid ""
+"Click on waypoints list\n"
+"to add waypoints"
+msgstr ""
+
+#: src/gpsdrive.c:9797
+msgid ""
+"Click on list item\n"
+"to select next waypoint"
+msgstr ""
+
+#: src/gpsdrive.c:9838
+msgid ""
+"Create a route from all waypoints. Sorted with order in file, not distance."
+msgstr ""
+
+#: src/gpsdrive.c:9842
+msgid ""
+"Click here to start your journey. GpsDrive guides you through the waypoints "
+"in this list."
+msgstr ""
+
+#: src/gpsdrive.c:9845
+msgid "Abort your journey"
+msgstr ""
+
+#: src/gpsdrive.c:9862
+msgid "-v    show version\n"
+msgstr ""
+
+#: src/gpsdrive.c:9863
+msgid "-h    print this help\n"
+msgstr ""
+
+#: src/gpsdrive.c:9864
+msgid "-d    turn on debug info\n"
+msgstr ""
+
+#: src/gpsdrive.c:9865
+msgid "-D    turn on lot of debug info\n"
+msgstr ""
+
+#: src/gpsdrive.c:9866
+msgid "-e    use Festival-Lite (flite) for speech output\n"
+msgstr ""
+
+#: src/gpsdrive.c:9867
+msgid "-t    set serial device for GPS i.e. /dev/ttyS1\n"
+msgstr ""
+
+#: src/gpsdrive.c:9868
+msgid "-o    serial device, pty master, or file for NMEA *output*\n"
+msgstr ""
+
+#: src/gpsdrive.c:9869
+msgid "-f X  Select friends server, X is i.e. www.gpsdrive.cc\n"
+msgstr ""
+
+#: src/gpsdrive.c:9870
+msgid "-n    Disable use of direct serial connection\n"
+msgstr ""
+
+#: src/gpsdrive.c:9871
+msgid ""
+"-l X  Select language of the voice,\n"
+"      X may be english, spanish or german\n"
+msgstr ""
+
+#: src/gpsdrive.c:9873
+msgid ""
+"-s X  set height of the screen, if autodetection\n"
+"      don't satisfy you, X is i.e. 768,600,480,200\n"
+msgstr ""
+
+#. ** Mod by Arms
+#: src/gpsdrive.c:9876
+msgid "-r X  set width of the screen, only with -s\n"
+msgstr ""
+
+#: src/gpsdrive.c:9878
+msgid "-1    have only 1 button mouse, for example using touchscreen\n"
+msgstr ""
+
+#: src/gpsdrive.c:9879
+msgid "-a    don't display battery status (i.e. broken APM)\n"
+msgstr ""
+
+#: src/gpsdrive.c:9881
+msgid "-b X  Servername for NMEA server (if gpsd runs on another host)\n"
+msgstr ""
+
+#: src/gpsdrive.c:9883
+msgid "-c X  set start position in simulation mode to waypoint name X\n"
+msgstr ""
+
+#: src/gpsdrive.c:9884
+msgid "-x    create separate window for menu\n"
+msgstr ""
+
+#: src/gpsdrive.c:9885
+msgid "-p    set settings for PDA (iPAQ, Yopy...)\n"
+msgstr ""
+
+#: src/gpsdrive.c:9887
+msgid "-i    ignore NMEA checksum (risky, only for broken GPS receivers\n"
+msgstr ""
+
+#: src/gpsdrive.c:9888
+msgid "-q    disable SQL support\n"
+msgstr ""
+
+#: src/gpsdrive.c:9889
+msgid "-F    force display of position even it is invalid\n"
+msgstr ""
+
+#: src/gpsdrive.c:9890
+msgid "-S    don't show splash screen\n"
+msgstr ""
+
+#: src/gpsdrive.c:9891
+msgid "-E    print out data received from direct serial connection\n"
+msgstr ""
+
+#: src/gpsdrive.c:9893
+msgid "-W x  set x to 1 to switch WAAS/EGNOS on, set to 0 to switch off\n"
+msgstr ""
+
+#: src/gpsdrive.c:9894
+msgid "-H X  correct altitude, adding this value to altitude\n"
+msgstr ""
+
+#: src/gpsdrive.c:9895
+msgid ""
+"-z    don't display zoom factor and scale\n"
+"\n"
+msgstr ""
+
+#: src/gpsdrive.c:10001
+msgid "Select a track file"
+msgstr ""
+
+#: src/gpsdrive.c:10179 src/gpskismet.c:380
+msgid "can't open socket for port "
+msgstr ""
+
+#: src/gpsdrive.c:10200
+#, c-format
+msgid ""
+"\n"
+"Cannot connect to %s: unknown host\n"
+msgstr ""
+
+#: src/gpsdrive.c:10221
+msgid "NMEA Mode, Port 2222"
+msgstr ""
+
+#: src/gpsdrive.c:10230
+msgid "NMEA Mode, Port 2947"
+msgstr ""
+
+#: src/gpsdrive.c:10249
+msgid ""
+"\n"
+"Garmin protocol detection disabled!\n"
+msgstr ""
+
+#: src/gpsdrive.c:10600
+msgid ""
+"\n"
+"libmysqlclient.so not found.\n"
+msgstr ""
+
+#: src/gpsdrive.c:10606
+msgid ""
+"\n"
+"MySQL support disabled.\n"
+msgstr ""
+
+#: src/gpsdrive.c:10783
+msgid ""
+"\n"
+"You can only choose between english, spanish and german\n"
+"\n"
+msgstr ""
+
+#: src/gpsdrive.c:10817 src/settings.c:1730
+msgid "EnterYourName"
+msgstr ""
+
+#: src/gpsdrive.c:10879
+#, c-format
+msgid ""
+"\n"
+"Using proxy: %s on port %d"
+msgstr ""
+
+#: src/gpsdrive.c:10883
+msgid ""
+"\n"
+"Invalid enviroment variable HTTP_PROXY, must be in format: http://proxy."
+"provider.de:3128"
+msgstr ""
+
+#: src/gpsdrive.c:11073
+msgid "Gpsdrive-2 (c)2001-2004 F.Ganter"
+msgstr ""
+
+#: src/gpsdrive.c:11081
+msgid "Using speech output"
+msgstr ""
+
+#: src/gpsdrive.c:11115
+msgid "/Misc. Menu/Maps/Map Manager"
+msgstr ""
+
+#: src/gpsdrive.c:11119
+msgid "/Misc. Menu/Waypoint Manager"
+msgstr ""
+
+#. download map button
+#: src/gpsdrive.c:11123
+msgid "_Download map"
+msgstr ""
+
+#: src/gpsdrive.c:11142
+msgid "M_ute"
+msgstr ""
+
+#: src/gpsdrive.c:11152
+msgid "Use SQ_L"
+msgstr ""
+
+#: src/gpsdrive.c:11162
+msgid "Show _WP"
+msgstr ""
+
+#: src/gpsdrive.c:11189
+msgid "HomeBase"
+msgstr ""
+
+#: src/gpsdrive.c:11197
+msgid "Pos. _mode"
+msgstr ""
+
+#: src/gpsdrive.c:11203
+msgid "Show _Track"
+msgstr ""
+
+#: src/gpsdrive.c:11246
+msgid "_Navigation"
+msgstr ""
+
+#: src/gpsdrive.c:11265
+msgid "Auto _best map"
+msgstr ""
+
+#: src/gpsdrive.c:11275
+msgid "Save track"
+msgstr ""
+
+#: src/gpsdrive.c:11286
+msgid "Shown map type"
+msgstr ""
+
+#: src/gpsdrive.c:11297
+msgid "Street map"
+msgstr ""
+
+#: src/gpsdrive.c:11304
+msgid "Topo map"
+msgstr ""
+
+#: src/gpsdrive.c:11386
+msgid ""
+"\n"
+"kismet server found\n"
+msgstr ""
+
+#: src/gpsdrive.c:11447 src/gpsdrive.c:11797
+msgid "Bearing"
+msgstr ""
+
+#: src/gpsdrive.c:11468
+msgid "GPS Info"
+msgstr ""
+
+#: src/gpsdrive.c:11519
+msgid "Bat."
+msgstr ""
+
+#: src/gpsdrive.c:11534
+msgid "TC"
+msgstr ""
+
+#. displays speed over ground
+#: src/gpsdrive.c:11552 src/gpsdrive.c:11807 src/gpsdrive.c:11809
+#: src/gpsdrive.c:11815 src/gpsdrive.c:11817
+msgid "---"
+msgstr ""
+
+#: src/gpsdrive.c:11632 src/gpsdrive.c:11639
+msgid "Selected:"
+msgstr ""
+
+#: src/gpsdrive.c:11632 src/gpsdrive.c:11639
+msgid "within"
+msgstr ""
+
+#. create frames for labels
+#: src/gpsdrive.c:11647
+msgid "Distance to target"
+msgstr ""
+
+#. ** Mod by Arms
+#. if (!pdamode)
+#. gtk_box_pack_start (GTK_BOX (hbox2), frame_speed, TRUE, TRUE,
+#. 1 * PADDING);
+#: src/gpsdrive.c:11683
+msgid "Altitude"
+msgstr ""
+
+#. ** Mod by Arms
+#. if (!pdamode)
+#. gtk_box_pack_start (GTK_BOX (hbox2), frame_altitude, FALSE, TRUE,
+#. 1 * PADDING);
+#: src/gpsdrive.c:11690 src/settings.c:681
+msgid "Waypoints"
+msgstr ""
+
+#: src/gpsdrive.c:11794
+msgid "Map file"
+msgstr ""
+
+#: src/gpsdrive.c:11795
+msgid "Map scale"
+msgstr ""
+
+#: src/gpsdrive.c:11796
+msgid "Heading"
+msgstr ""
+
+#: src/gpsdrive.c:11798
+msgid "Time at Dest."
+msgstr ""
+
+#: src/gpsdrive.c:11799
+msgid "Pref. scale"
+msgstr ""
+
+#: src/gpsdrive.c:11803
+msgid "000,00000N"
+msgstr ""
+
+#: src/gpsdrive.c:11805
+msgid "000,00000E"
+msgstr ""
+
+#: src/gpsdrive.c:11811 src/gpsdrive.c:11813
+msgid "0000"
+msgstr ""
+
+#. gdk_window_lower((GdkWindow *)menuwin);
+#: src/gpsdrive.c:11886 src/gpsdrive.c:11937
+msgid "Menu"
+msgstr ""
+
+#. gdk_window_lower((GdkWindow *)menuwin2);
+#: src/gpsdrive.c:11895 src/gpsdrive.c:11938
+msgid "Status"
+msgstr ""
+
+#: src/gpsdrive.c:12089
+msgid ""
+"Click here to switch betwen satetellite level and satellite position "
+"display. A rotating globe is shown in simulation mode"
+msgstr ""
+
+#: src/gpsdrive.c:12093
+msgid "Number of used satellites/satellites in view"
+msgstr ""
+
+#: src/gpsdrive.c:12096
+msgid "EPE (Estimated Precision Error), if available"
+msgstr ""
+
+#: src/gpsdrive.c:12100
+msgid ""
+"PDOP (Position Dilution Of Precision). PDOP less than 4 gives the best "
+"accuracy, between 4 and 8 gives acceptable accuracy and greater than 8 gives "
+"unacceptable poor accuracy. "
+msgstr ""
+
+#: src/gpsdrive.c:12105
+msgid ""
+"On top of the compass you see the direction to which you move. The pointer "
+"shows the target direction on the compass."
+msgstr ""
+
+#: src/gpsdrive.c:12108
+msgid "/Misc. Menu"
+msgstr ""
+
+#: src/gpsdrive.c:12111
+msgid "Here you find extra functions for maps, tracks and messages"
+msgstr ""
+
+#: src/gpsdrive.c:12115
+msgid "Download map from Internet"
+msgstr ""
+
+#: src/gpsdrive.c:12117
+msgid "Leave the program"
+msgstr ""
+
+#: src/gpsdrive.c:12120
+msgid "Disable output of speech"
+msgstr ""
+
+#: src/gpsdrive.c:12123
+msgid "Use SQL server for waypoints"
+msgstr ""
+
+#: src/gpsdrive.c:12126
+msgid "Show waypoints on the map"
+msgstr ""
+
+#: src/gpsdrive.c:12129
+msgid ""
+"Turn position mode on. You can move on the map with the left mouse button "
+"click. Clicking near the border switches to the proximate map."
+msgstr ""
+
+#: src/gpsdrive.c:12132
+msgid "Show tracking on the map"
+msgstr ""
+
+#: src/gpsdrive.c:12137
+msgid "Opens the help window"
+msgstr ""
+
+#: src/gpsdrive.c:12140
+msgid "Navigation menu. Enter here your destination."
+msgstr ""
+
+#: src/gpsdrive.c:12156
+msgid "Settings for GpsDrive"
+msgstr ""
+
+#: src/gpsdrive.c:12158
+msgid "Zoom into the current map"
+msgstr ""
+
+#: src/gpsdrive.c:12160
+msgid "Zooms out off the current map"
+msgstr ""
+
+#: src/gpsdrive.c:12162
+msgid "Select the next more detailed map"
+msgstr ""
+
+#: src/gpsdrive.c:12164
+msgid "Select the next less detailed map"
+msgstr ""
+
+#: src/gpsdrive.c:12169
+msgid "Select here a destination from the waypoint list"
+msgstr ""
+
+#: src/gpsdrive.c:12173
+msgid "Select the map scale of avail. maps."
+msgstr ""
+
+#: src/gpsdrive.c:12178
+msgid "Always select the most detailed map available"
+msgstr ""
+
+#: src/gpsdrive.c:12181
+msgid "Save the track to given filename at program exit"
+msgstr ""
+
+#: src/gpsdrive.c:12187
+msgid "Number of waypoints selected from SQL server"
+msgstr ""
+
+#: src/gpsdrive.c:12191
+msgid "Number of selected waypoints, which are in range"
+msgstr ""
+
+#: src/gpsdrive.c:12195
+msgid "Range for waypoint selection in kilometers"
+msgstr ""
+
+#: src/gpsdrive.c:12198
+msgid "This shows the time from your GPS receiver"
+msgstr ""
+
+#: src/gpsdrive.c:12201
+msgid ""
+"Number of mobile targets within timeframe/total received from friendsserver"
+msgstr ""
+
+#: src/gpsdrive.c:12275
+msgid ""
+"\n"
+"\n"
+"Thank you for using GpsDrive!\n"
+"\n"
+msgstr ""
+"\n"
+"\n"
+"Thank you for using GpsDrive!\n"
+"\n"
+
+#: src/splash.c:543
+msgid "GpsDrive v"
+msgstr ""
+
+#: src/splash.c:549
+msgid ""
+"\n"
+"\n"
+"You find new versions on http://www.gpsdrive.cc\n"
+msgstr ""
+
+#: src/splash.c:553
+msgid ""
+"Disclaimer: Please do not use for navigation. \n"
+"\n"
+msgstr ""
+
+#: src/splash.c:558
+msgid "Please have a look into the manpage (man gpsdrive) for program details!"
+msgstr ""
+
+#: src/splash.c:563
+msgid "Mouse control (clicking on the map):\n"
+msgstr ""
+
+#: src/splash.c:569
+msgid ""
+"Left mouse button         : Set position (usefull in simulation mode)\n"
+"Right mouse button        : Set target directly on the map\n"
+"Middle mouse button       : Display position again\n"
+"Shift left mouse button   : smaller map\n"
+"Shift right mouse button  : larger map\n"
+"Control left mouse button : Set a waypoint (mouse position) on the map\n"
+"Control right mouse button: Set a waypoint at current position on the map\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:577
+msgid ""
+"j    : switch to next waypoint in route mode\n"
+"x    : add waypoint at current position\n"
+"y    : add waypoint at mouse cursor position\n"
+msgstr ""
+
+#: src/splash.c:583
+msgid "Short cuts:\n"
+msgstr ""
+
+#: src/splash.c:590
+msgid "The other key shortcuts are marked as "
+msgstr ""
+
+#: src/splash.c:591
+msgid "underlined"
+msgstr ""
+
+#: src/splash.c:593
+msgid " letters in the button text.\n"
+msgstr ""
+
+#: src/splash.c:596
+msgid ""
+"Press the underlined key together with the ALT-key.\n"
+"\n"
+"You can move on the map by selecting the Position-Mode in the menu. A blue "
+"rectangle shows this mode, you can set this cursor by clicking on the map. "
+"If you click on the border of the map (the outer 20%) then the map switches "
+"to the next area.\n"
+"\n"
+"Suggestions welcome.\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:603
+msgid "Have a lot of fun!"
+msgstr ""
+
+#: src/splash.c:734
+msgid "Please donate to GpsDrive"
+msgstr ""
+
+#: src/splash.c:740
+msgid ""
+"\n"
+"\n"
+"GpsDrive is a project with no comercial background. \n"
+"\n"
+"It would be nice if you can give a donation to help me pay the costs for "
+"hardware and the webserver.\n"
+"\n"
+"To do so, just go to"
+msgstr ""
+
+#: src/splash.c:744
+msgid " http://www.gpsdrive.cc "
+msgstr ""
+
+#: src/splash.c:747
+msgid ""
+"and click on the PayPal button.\n"
+"\n"
+"Thank you very much for your donation!\n"
+"\n"
+"This message is only displayed once when you start an new version of "
+"GpsDrive.\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:780
+msgid "About GpsDrive donation"
+msgstr ""
+
+#: src/splash.c:859
+msgid "From:"
+msgstr ""
+
+#: src/splash.c:928
+#, c-format
+msgid ""
+"You received a message from\n"
+"the friends server (%s)\n"
+msgstr ""
+
+#: src/splash.c:938
+msgid "You received a message through the friends server from:\n"
+msgstr ""
+
+#: src/splash.c:948
+msgid "Message text:\n"
+msgstr ""
+
+#: src/splash.c:1004
+msgid "Error saving config file ~/.gpsdrive/gpsdriverc"
+msgstr ""
+
+#: src/splash.c:1519 src/splash.c:1578
+msgid ""
+"\n"
+"Warning: unable to open splash picture\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:1562
+msgid "About GpsDrive"
+msgstr ""
+
+#: src/settings.c:438
+msgid "Setting WP label font"
+msgstr ""
+
+#: src/settings.c:440
+msgid "Setting big display font"
+msgstr ""
+
+#: src/settings.c:507
+msgid "Setting big display color"
+msgstr ""
+
+#: src/settings.c:545
+msgid "Setting track color"
+msgstr ""
+
+#: src/settings.c:587
+msgid "Setting friends label color"
+msgstr ""
+
+#: src/settings.c:668
+msgid ""
+"Don't use more than\n"
+"100 waypoint(way*.txt) files!"
+msgstr ""
+
+#: src/settings.c:679
+msgid "Waypoint files to use"
+msgstr ""
+
+#: src/settings.c:704 src/settings.c:709
+msgid "Settings"
+msgstr ""
+
+#. misc area
+#: src/settings.c:716
+msgid "Misc settings"
+msgstr ""
+
+#: src/settings.c:720
+msgid "Show Shadows"
+msgstr ""
+
+#: src/settings.c:727
+msgid "Etched frames"
+msgstr ""
+
+#: src/settings.c:735
+msgid "Simulation: Follow target"
+msgstr ""
+
+#: src/settings.c:742
+msgid "Maximum CPU load"
+msgstr ""
+
+#: src/settings.c:752
+msgid "Track"
+msgstr ""
+
+#: src/settings.c:767
+msgid "Maps directory"
+msgstr ""
+
+#: src/settings.c:773
+msgid "Automatic"
+msgstr ""
+
+#: src/settings.c:779
+msgid "On"
+msgstr ""
+
+#: src/settings.c:784
+msgid "Off"
+msgstr ""
+
+#. gtk_table_attach_defaults (GTK_TABLE (misctable), label2, 0, 2, 3, 4);
+#. gtk_table_attach_defaults (GTK_TABLE (misctable), mapdirbt, 0, 2, 4, 5);
+#. GPS settings area
+#: src/settings.c:808
+msgid "GPS settings"
+msgstr ""
+
+#. gtk_container_add (GTK_CONTAINER (f4), gpstable);
+#: src/settings.c:822
+msgid "Test for GARMIN"
+msgstr ""
+
+#: src/settings.c:833
+msgid "Use DGPS-IP"
+msgstr ""
+
+#: src/settings.c:843
+msgid "GPS is Earthmate"
+msgstr ""
+
+#: src/settings.c:853
+msgid "Use serial conn."
+msgstr ""
+
+#: src/settings.c:868
+msgid "Interface"
+msgstr ""
+
+#: src/settings.c:869
+msgid "Baudrate"
+msgstr ""
+
+#. units area
+#: src/settings.c:904
+msgid "Units"
+msgstr ""
+
+#: src/settings.c:910
+msgid "Miles"
+msgstr ""
+
+#: src/settings.c:915
+msgid "Metric"
+msgstr ""
+
+#: src/settings.c:920 src/nautic.c:106
+msgid "Nautic"
+msgstr ""
+
+#: src/settings.c:930
+msgid "Decimal position"
+msgstr ""
+
+#. gtk_box_pack_start (GTK_BOX (v2), miles, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), metric, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), nautic, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), minsecbt, TRUE, FALSE, 2 * PADDING);
+#.
+#. default download server
+#: src/settings.c:948
+msgid "Default map server"
+msgstr ""
+
+#. Night light mode
+#: src/settings.c:981
+msgid "Night light mode"
+msgstr ""
+
+#.  gtk_table_attach_defaults (GTK_TABLE (table), f5, 0, 2, 2, 3);
+#. Sound settings
+#: src/settings.c:999
+msgid "Speech output settings"
+msgstr ""
+
+#.
+#. set following sounds
+#. sound_direction ... say direction to target
+#. sound_distance  ... say distance to target
+#. sound_speed     ... say your current speed
+#. sound_gps       ... say GPS status
+#.
+#.
+#: src/settings.c:1011
+msgid "Direction"
+msgstr ""
+
+#: src/settings.c:1032
+msgid "GPS Status"
+msgstr ""
+
+#: src/settings.c:1046
+msgid "Switch on for speech output of the direction to the target"
+msgstr ""
+
+#: src/settings.c:1051
+msgid "Switch on for speech output of the distance to the target"
+msgstr ""
+
+#: src/settings.c:1056
+msgid "Switch on for speech output of your current speed"
+msgstr ""
+
+#: src/settings.c:1061
+msgid "Switch on for speech output of the status of your GPS signal"
+msgstr ""
+
+#. Font settings
+#: src/settings.c:1066
+msgid "Font and color settings"
+msgstr ""
+
+#. gtk_box_pack_start (GTK_BOX (h1), f5, TRUE, FALSE, 2 * PADDING);
+#: src/settings.c:1071
+msgid "WP Label"
+msgstr ""
+
+#: src/settings.c:1072
+msgid "Big display"
+msgstr ""
+
+#: src/settings.c:1073
+msgid "Display color"
+msgstr ""
+
+#: src/settings.c:1101
+msgid "Switch units to statute miles"
+msgstr ""
+
+#: src/settings.c:1103
+msgid "Switch units to nautical miles"
+msgstr ""
+
+#: src/settings.c:1105
+msgid "Switch units to metric system (Kilometers)"
+msgstr ""
+
+#: src/settings.c:1110
+msgid ""
+"If selected display latitude and longitude in decimal degrees, otherwise in "
+"degree, minutes and seconds notation"
+msgstr ""
+
+#: src/settings.c:1115
+msgid ""
+"Set the german expedia server(expedia.de) as default download server. Use "
+"this if you are in Europe"
+msgstr ""
+
+#: src/settings.c:1119
+msgid "Set Expedia as default download server"
+msgstr ""
+
+#: src/settings.c:1122
+msgid "Switches shadows on map on or off"
+msgstr ""
+
+#: src/settings.c:1126
+msgid "Switches between different type of frame ornaments"
+msgstr ""
+
+#: src/settings.c:1131
+#, c-format
+msgid ""
+"Select the approx. maximum CPU load, use 20-30% on notebooks while on "
+"battery to save battery power. This effects the refresh rate of the map "
+"screen"
+msgstr ""
+
+#: src/settings.c:1136
+msgid "If activated, pointer moves to target in simulation mode"
+msgstr ""
+
+#: src/settings.c:1140
+msgid "Set here the color of the drawn track"
+msgstr ""
+
+#: src/settings.c:1144
+msgid ""
+"Path to your map files. In the specified directory also the index file "
+"map_koord.txt must be present."
+msgstr ""
+
+#: src/settings.c:1149
+msgid ""
+"If selected, gpsdrive try to use GARMIN mode if possible. Unselect if you "
+"only have a NMEA device."
+msgstr ""
+
+#: src/settings.c:1154
+msgid ""
+"Set here the baud rate of your GPS device, NMEA devices usually have a speed "
+"of 4800 baud"
+msgstr ""
+
+#: src/settings.c:1159
+msgid ""
+"If selected, gpsdrive try to use differential GPS over IP. You must have an "
+"internet connection and a DGPS capable GPS receiver. Works only in NMEA mode!"
+msgstr ""
+
+#: src/settings.c:1164
+msgid ""
+"Select this if you have a DeLorme Earthmate GPS receiver. The StartGPSD "
+"button will provide gpsd with the needed additional parameters"
+msgstr ""
+
+#: src/settings.c:1169
+msgid ""
+"Select this if you want to use of the direct serial connection. If disabled, "
+"you can use the receiver only through gpsd. On the other hand, the direct "
+"serial connection needs no gpsd running and detects the working receiver on "
+"startup"
+msgstr ""
+
+#: src/settings.c:1174
+msgid "Specify the serial interface where the GPS is connected"
+msgstr ""
+
+#: src/settings.c:1179
+msgid ""
+"Switches automagically to night mode if it is dark outside. Press 'N' key to "
+"turn off nightmode."
+msgstr ""
+
+#: src/settings.c:1183
+msgid "Switches night mode on. Press 'N' key to turn off nightmode."
+msgstr ""
+
+#: src/settings.c:1186
+msgid "Switches night mode off"
+msgstr ""
+
+#: src/settings.c:1190
+msgid "Here you can set the font for the waypoint labels"
+msgstr ""
+
+#: src/settings.c:1195
+msgid "Here you can set the font for the big display for Speed and Distance"
+msgstr ""
+
+#: src/settings.c:1199
+msgid ""
+"Here you can set the color for the big display for speed, distance and "
+"altitude"
+msgstr ""
+
+#: src/settings.c:1377
+msgid "Geo information"
+msgstr ""
+
+#: src/settings.c:1379
+msgid "Geo info"
+msgstr ""
+
+#: src/settings.c:1390
+msgid "Sunrise"
+msgstr ""
+
+#: src/settings.c:1392
+msgid "Sunset"
+msgstr ""
+
+#: src/settings.c:1395
+msgid "Standard"
+msgstr ""
+
+#: src/settings.c:1397
+msgid "Transit"
+msgstr ""
+
+#: src/settings.c:1399
+msgid "GPS-Time"
+msgstr ""
+
+#: src/settings.c:1401
+msgid "Astro."
+msgstr ""
+
+#: src/settings.c:1403
+msgid "Naut."
+msgstr ""
+
+#: src/settings.c:1405
+msgid "Civil"
+msgstr ""
+
+#: src/settings.c:1407
+msgid "Timezone"
+msgstr ""
+
+#: src/settings.c:1409
+msgid "Store TZ"
+msgstr ""
+
+#: src/settings.c:1419
+msgid ""
+"If selected, the timezone is stored, otherwise your actual timezone will "
+"automatically used"
+msgstr ""
+
+#: src/settings.c:1453
+msgid "Night"
+msgstr ""
+
+#: src/settings.c:1455
+msgid "Day"
+msgstr ""
+
+#: src/settings.c:1592 src/settings.c:1594 src/settings.c:1597
+msgid "Unit:"
+msgstr ""
+
+#: src/settings.c:1592
+msgid "miles"
+msgstr ""
+
+#: src/settings.c:1595
+msgid "nautic miles/knots"
+msgstr ""
+
+#: src/settings.c:1597
+msgid "kilometers"
+msgstr ""
+
+#: src/settings.c:1612
+msgid "Trip information"
+msgstr ""
+
+#: src/settings.c:1614
+msgid "Trip info"
+msgstr ""
+
+#: src/settings.c:1628
+msgid "Odometer"
+msgstr ""
+
+#: src/settings.c:1630
+msgid "Total time"
+msgstr ""
+
+#: src/settings.c:1632
+msgid "Av. speed"
+msgstr ""
+
+#: src/settings.c:1634
+msgid "Max. speed"
+msgstr ""
+
+#: src/settings.c:1658
+msgid "Reset"
+msgstr ""
+
+#: src/settings.c:1663
+msgid "Resets the trip values to zero"
+msgstr ""
+
+#: src/settings.c:1732
+msgid "You should change your name in the first field!"
+msgstr ""
+
+#: src/settings.c:1918
+msgid "Show position newer as"
+msgstr ""
+
+#: src/settings.c:1920
+msgid "Friends server setup"
+msgstr ""
+
+#: src/settings.c:1921
+msgid "Friends"
+msgstr ""
+
+#: src/settings.c:1933
+msgid "Days"
+msgstr ""
+
+#: src/settings.c:1934
+msgid "Hours"
+msgstr ""
+
+#: src/settings.c:1935
+msgid "Minutes"
+msgstr ""
+
+#: src/settings.c:1941
+msgid "Your name"
+msgstr ""
+
+#: src/settings.c:1946
+msgid ""
+"Set here your name which should be shown near your vehicle. You may use "
+"spaces here!"
+msgstr ""
+
+#: src/settings.c:1958
+msgid "Server name"
+msgstr ""
+
+#: src/settings.c:1963
+msgid ""
+"Set here the full qualified host name (i.e. www.gpsdrive.cc) of your friends "
+"server, then you have to press the \"Lookup\" button!"
+msgstr ""
+
+#: src/settings.c:1972
+msgid "Lookup"
+msgstr ""
+
+#: src/settings.c:1980
+msgid ""
+"You have to press the \"Lookup\" button to resolve the friends server name!"
+msgstr ""
+
+#: src/settings.c:1991
+msgid "Set here the color of the label displayed at friends position"
+msgstr ""
+
+#: src/settings.c:1997
+msgid "Friends server IP"
+msgstr ""
+
+#: src/settings.c:2002
+msgid ""
+"Set here the IP adress (i.e. 127.0.0.1) if you don't set the hostname above"
+msgstr ""
+
+#: src/settings.c:2007 src/settings.c:2012 src/settings.c:2016
+msgid ""
+"Set here the time limit in which the friends position is shown. Older "
+"positions are not shown."
+msgstr ""
+
+#: src/settings.c:2028
+msgid "Use friends server"
+msgstr ""
+
+#: src/settings.c:2036
+msgid ""
+"Enable/disable use of friends server. You must enter a Username, don't use "
+"the default name!"
+msgstr ""
+
+#: src/settings.c:2039
+msgid ""
+"If you enable the friendsserver mode,\n"
+"<span color=\"red\">everyone</span> using the same server\n"
+"can see your position!"
+msgstr ""
+
+#: src/settings.c:2094
+msgid "SQL selection criterias"
+msgstr ""
+
+#: src/settings.c:2095
+msgid "SQL"
+msgstr ""
+
+#: src/settings.c:2121
+msgid "Dist. limit[km] "
+msgstr ""
+
+#: src/settings.c:2126
+msgid "If enabled, show waypoints only within this distance"
+msgstr ""
+
+#: src/settings.c:2142
+msgid "Enable/disable distance selection"
+msgstr ""
+
+#: src/settings.c:2151
+msgid "Show no_ssid "
+msgstr ""
+
+#: src/settings.c:2162
+msgid ""
+"If enabled, WLANs with no SSID are shown, because this is perhaps useless, "
+"you can disable it here"
+msgstr ""
+
+#: src/settings.c:2168
+msgid "Selection mode"
+msgstr ""
+
+#: src/settings.c:2170
+msgid "include"
+msgstr ""
+
+#: src/settings.c:2173
+msgid "exclude"
+msgstr ""
+
+#: src/settings.c:2177
+msgid ""
+"Show only waypoints where the type field contains one of the selected words"
+msgstr ""
+
+#: src/settings.c:2181
+msgid ""
+"Show only waypoints where the type field doesn't contain any the selected "
+"words"
+msgstr ""
+
+#: src/fly.c:149
+msgid "Aeronautical settings"
+msgstr ""
+
+#: src/fly.c:151
+msgid "Fly"
+msgstr ""
+
+#: src/fly.c:158
+msgid "Plane mode"
+msgstr ""
+
+#: src/fly.c:165
+msgid "Use VFR"
+msgstr ""
+
+#: src/fly.c:171
+msgid "Use IFR"
+msgstr ""
+
+#: src/fly.c:181
+msgid "max. horizontal deviation "
+msgstr ""
+
+#: src/fly.c:183
+msgid "max. vertical deviation "
+msgstr ""
+
+#: src/fly.c:198
+msgid "disable vert. deviation warning above 5000ft MSL"
+msgstr ""
+
+#: src/nautic.c:103
+msgid "Nautic settings"
+msgstr ""
+
+#. if (debug)
+#: src/gpssql.c:215
+#, c-format
+msgid ""
+"\n"
+"SQL: connected to %s as %s using %s\n"
+msgstr ""
+
+#: src/gpssql.c:278
+#, c-format
+msgid "rows inserted: %d\n"
+msgstr ""
+
+#: src/gpssql.c:293
+#, c-format
+msgid "last index: %d\n"
+msgstr ""
+
+#: src/gpssql.c:314
+#, c-format
+msgid "rows deleted: %d\n"
+msgstr ""
+
+#: src/gpssql.c:366 src/gpssql.c:372
+#, c-format
+msgid "Loaded user defined icon %s\n"
+msgstr ""
+
+#: src/gpssql.c:455
+#, c-format
+msgid "%d(%d) rows read in %.2f seconds\n"
+msgstr ""
+
+#: src/friends.c:363
+msgid "unknown"
+msgstr ""
+
+#: src/friendsd.c:472
+msgid "server: please don't run me as root\n"
+msgstr ""
+
+#: src/friendsd.c:484
+#, c-format
+msgid ""
+"\n"
+"Usage:\n"
+"   %s -n servername\n"
+"provides a name for your server\n"
+msgstr ""
+
+#: src/gpsnasamap.c:189
+#, c-format
+msgid "could not create output map file %s!\n"
+msgstr ""
+
+#. g_signal_connect (window, "destroy",
+#. G_CALLBACK (gtk_widget_destroyed), &window);
+#: src/gpsnasamap.c:204
+msgid "Creating map..."
+msgstr ""
+
+#: src/gpsnasamap.c:212
+msgid "Creating a temporary map from NASA satellite images"
+msgstr ""
+
+#: src/gpsnasamap.c:219
+#, c-format
+msgid "converting map for latitude: %f and longitude: %f ...\n"
+msgstr ""
+
+#: src/gpsnasamap.c:324
+msgid ""
+"\n"
+"You can permanently add this map file with following line in your\n"
+"map_koord.txt (rename the file!):\n"
+msgstr ""
+
+#: src/gpsserial.c:252
+msgid "waiting for thread to stop\n"
+msgstr ""
+
+#: src/gpsserial.c:275
+#, c-format
+msgid ""
+"\n"
+"error opening %s(%d)\n"
+msgstr ""
+
+#: src/gpsserial.c:278
+#, c-format
+msgid "successfull opened %s\n"
+msgstr ""
+
+#: src/gpsserial.c:284
+msgid "switching WAAS/EGNOS on\n"
+msgstr ""
+
+#: src/gpsserial.c:290
+msgid "switching WAAS/EGNOS off\n"
+msgstr ""

Added: packages/gpsdrive/branches/etch/po/sk.gmo
===================================================================
(Binary files differ)


Property changes on: packages/gpsdrive/branches/etch/po/sk.gmo
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: packages/gpsdrive/branches/etch/po/sk.po
===================================================================
--- packages/gpsdrive/branches/etch/po/sk.po	                        (rev 0)
+++ packages/gpsdrive/branches/etch/po/sk.po	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,2420 @@
+# gpsdrive sk.po
+# Copyright (C) 2002 Free Software Foundation, Inc.
+# Zdenko Podobný <zdpo at mailbox.sk>, 2002.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: gpsdrive 1.30pre5\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-03-03 21:47+0100\n"
+"PO-Revision-Date: 2002-12-31 09:30+0100\n"
+"Last-Translator: Zdenko Podobný <zdpo at mailbox.sk>\n"
+"Language-Team: Slovak <sk-i18n at lists.linux.sk>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-2\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 0.9.6\n"
+
+#: src/gpsdrive.c:2179
+msgid "/_Misc. Menu"
+msgstr ""
+
+#: src/gpsdrive.c:2180
+msgid "/_Misc. Menu/Maps"
+msgstr ""
+
+#: src/gpsdrive.c:2181
+#, fuzzy
+msgid "/_Misc. Menu/Maps/_Import map"
+msgstr "i    : importovanie mapy\n"
+
+#: src/gpsdrive.c:2185
+msgid "/_Misc. Menu/Maps/_Map Manager"
+msgstr ""
+
+#: src/gpsdrive.c:2187
+msgid "/_Misc. Menu/_Waypoint Manager"
+msgstr ""
+
+#: src/gpsdrive.c:2189
+#, fuzzy
+msgid "/_Misc. Menu/_Load track file"
+msgstr "Výber súboru so stopou"
+
+#: src/gpsdrive.c:2193
+#, fuzzy
+msgid "/_Misc. Menu/Messages"
+msgstr "Výber súboru so stopou"
+
+#: src/gpsdrive.c:2194
+msgid "/_Misc. Menu/Messages/Send message to mobile target"
+msgstr ""
+
+#: src/gpsdrive.c:2199
+msgid "/_Misc. Menu/Help"
+msgstr ""
+
+#: src/gpsdrive.c:2200
+msgid "/_Misc. Menu/Help/About"
+msgstr ""
+
+#: src/gpsdrive.c:2202
+msgid "/_Misc. Menu/Help/Topics"
+msgstr ""
+
+#: src/gpsdrive.c:2271
+msgid "  Message  "
+msgstr "  Správa  "
+
+#: src/gpsdrive.c:2315 src/gpsdrive.c:12145
+#, fuzzy
+msgid "Stop GPSD"
+msgstr "Spusti» GPSD"
+
+#: src/gpsdrive.c:2317 src/gpsdrive.c:12147
+#, fuzzy
+msgid "Stop GPSD and switch to simulation mode"
+msgstr "p    : prepne do pozièného módu\n"
+
+#: src/gpsdrive.c:2339 src/gpsdrive.c:11261
+msgid "Start GPSD"
+msgstr "Spusti» GPSD"
+
+#: src/gpsdrive.c:2341 src/gpsdrive.c:12153
+msgid "Starts GPSD for NMEA mode"
+msgstr "Spustí GPSD v re¾ime NMEA"
+
+#. displays zoom factor of map
+#: src/gpsdrive.c:2354 src/gpsdrive.c:2355 src/gpsdrive.c:2356
+#: src/gpsdrive.c:6264 src/gpsdrive.c:6273 src/gpsdrive.c:11484
+#: src/gpsdrive.c:11491 src/gpsdrive.c:11498 src/gpsdrive.c:11555
+#: src/gpsdrive.c:11560 src/gpsdrive.c:11566 src/gpsdrive.c:11602
+#: src/gpsdrive.c:11609 src/settings.c:1425 src/settings.c:1434
+#: src/settings.c:1443 src/settings.c:1468 src/settings.c:1478
+#: src/settings.c:1487 src/settings.c:1498 src/settings.c:1507
+#: src/settings.c:1517
+msgid "n/a"
+msgstr "nie"
+
+#: src/gpsdrive.c:2366 src/gpsdrive.c:10245
+msgid ""
+"\n"
+"no garmin support compiled in\n"
+msgstr ""
+"\n"
+"podpora pre garmin nebola zakompilovaná\n"
+
+#: src/gpsdrive.c:2387 src/gpsdrive.c:3136
+msgid "Simulation mode"
+msgstr "Simulaèný re¾im"
+
+#: src/gpsdrive.c:2409
+msgid "got RMC data, using it\n"
+msgstr ""
+
+#: src/gpsdrive.c:2498 src/gpsdrive.c:11936
+msgid "Map"
+msgstr "Mapa"
+
+#. if (debug)
+#: src/gpsdrive.c:2661
+msgid "got no RMC data, using GGA data\n"
+msgstr ""
+
+#: src/gpsdrive.c:2912
+msgid "Timeout getting data from GPS-Receiver!"
+msgstr "Vypr¹al èasový limit pre získanie dát z GPS prijímaèa!"
+
+#: src/gpsdrive.c:2959 src/gpsdrive.c:3008 src/gpsdrive.c:3113
+#: src/gpsdrive.c:3199 src/gpsdrive.c:3324
+msgid "Press middle mouse button for navigation"
+msgstr "Pre navigáciu stlaète stredné tlaèítko na my¹i"
+
+#: src/gpsdrive.c:2963
+#, fuzzy, c-format
+msgid "Direct serial connection to %s"
+msgstr "Pripájam sa na %s"
+
+#: src/gpsdrive.c:3013 src/gpsdrive.c:3045 src/gpsdrive.c:3205
+#: src/gpsdrive.c:3330
+msgid "Not enough satellites in view!"
+msgstr "Nedostatoèné mno¾stvo videteµných satelitov!"
+
+#: src/gpsdrive.c:3117
+msgid "GARMIN Mode"
+msgstr "Re¾im GARMIN"
+
+#: src/gpsdrive.c:3134
+msgid "No GPS used"
+msgstr "GPS nebolo pou¾ité"
+
+#: src/gpsdrive.c:3138
+msgid "Press middle mouse button for sim mode"
+msgstr "Pre sim re¾im stlaète stredné tlaèítko na my¹i"
+
+#: src/gpsdrive.c:3477
+#, c-format
+msgid "Distance to HomeBase: %.1fkm, max. allowed: %.1fkm\n"
+msgstr ""
+
+#: src/gpsdrive.c:3554 src/gpsdrive.c:3784 src/gpsdrive.c:6665
+#: src/gpsdrive.c:8534 src/gpsdrive.c:9000
+msgid "To"
+msgstr ""
+
+#: src/gpsdrive.c:3866
+msgid "Error in line "
+msgstr "Chyba na riadku"
+
+#: src/gpsdrive.c:3868
+msgid ""
+"I have found filenames in map_koord.txt which are\n"
+"not map_* or top_* files. Please rename them and change the entries in\n"
+"map_koord.txt.  Use map_* for street maps and top_* for topographical\n"
+"maps.  Otherwise, the maps will not be displayed!"
+msgstr ""
+"Vo va¹om súbore  ~/.gpsdrive/map_koord.txt\n"
+"sú názvy súborov, ktoré nie sú map_* alebo top_* súbory!\n"
+"Premenujte ich prosím a zameòte tieto polo¾ky\n"
+"v súbore map_koord.txt. Pre mapy s ulicami pou¾ite map_*\n"
+"a top_* pre topografické mapy.  Inak tieto mapy nebudú zobrazené!"
+
+#: src/gpsdrive.c:4229
+msgid "Auto"
+msgstr "Automaticky"
+
+#: src/gpsdrive.c:4440
+#, fuzzy
+msgid "Warning!"
+msgstr "Azimut"
+
+#: src/gpsdrive.c:4441
+msgid "You should not start GpsDrive as user root!!!"
+msgstr ""
+
+#: src/gpsdrive.c:4756 src/gpsdrive.c:8145 src/gpsdrive.c:8154
+#: src/gpsdrive.c:11661 src/gpsdrive.c:11670
+msgid "mi/h"
+msgstr "mi/h"
+
+#: src/gpsdrive.c:4758 src/gpsdrive.c:8147 src/gpsdrive.c:8156
+#: src/gpsdrive.c:11663 src/gpsdrive.c:11672
+msgid "knots"
+msgstr "uzlov"
+
+#: src/gpsdrive.c:4760 src/gpsdrive.c:8149 src/gpsdrive.c:8158
+#: src/gpsdrive.c:11665 src/gpsdrive.c:11674
+msgid "km/h"
+msgstr "km/h"
+
+#: src/gpsdrive.c:5088
+msgid ""
+"\n"
+"Warning: unable to load gpsdriveanim.gif!\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+
+#. This string means North,East,South,West -- please translate the letters
+#: src/gpsdrive.c:5896
+msgid "NESW"
+msgstr "NESW"
+
+#: src/gpsdrive.c:6064
+msgid "No map available for this position!"
+msgstr "Pre túto pozíciu nie je dostupná mapa!"
+
+#: src/gpsdrive.c:6258
+#, fuzzy
+msgid "unused"
+msgstr "Západ slnka"
+
+#: src/gpsdrive.c:6362
+msgid "can't open NMEA output file"
+msgstr "nie je mo¾né otvori» NMEA výstupný súbor"
+
+#: src/gpsdrive.c:6473
+msgid " Mapfile could not be loaded:"
+msgstr " Súbor s mapou nie je mo¾né naèíta»:"
+
+#: src/gpsdrive.c:6517
+msgid "Map found!"
+msgstr ""
+
+#: src/gpsdrive.c:6552
+msgid " Friendsicon could not be loaded:"
+msgstr " Nie je mo¾né naèíta» Friendsicon:"
+
+#: src/gpsdrive.c:6555
+msgid ""
+"\n"
+"Warning: unable to load friendsicon!\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+
+#: src/gpsdrive.c:6843
+msgid "Select coordinates and scale"
+msgstr "Výber súradníc a mierky"
+
+#: src/gpsdrive.c:6846
+msgid "Download map"
+msgstr "Stiahnu» mapu"
+
+#: src/gpsdrive.c:6872 src/gpsdrive.c:7911 src/gpsdrive.c:9209
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/gpsdrive.c:11792
+msgid "Latitude"
+msgstr "Zemepisná ¹írka"
+
+#: src/gpsdrive.c:6874 src/gpsdrive.c:7913 src/gpsdrive.c:9203
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/gpsdrive.c:11793
+msgid "Longitude"
+msgstr "Zemepisná då¾ka"
+
+#: src/gpsdrive.c:6876
+msgid "Map covers"
+msgstr "Mapa pokrýva"
+
+#: src/gpsdrive.c:6880
+msgid "Scale"
+msgstr "Veµkos»"
+
+#: src/gpsdrive.c:6882
+msgid "Map file name"
+msgstr "Názov súboru mapy"
+
+#: src/gpsdrive.c:6922 src/settings.c:958
+msgid "Expedia Germany"
+msgstr ""
+
+#: src/gpsdrive.c:6928 src/settings.c:964
+msgid "Expedia USA"
+msgstr ""
+
+#: src/gpsdrive.c:6934
+msgid "TopoZone(US Only)"
+msgstr ""
+
+#: src/gpsdrive.c:6943
+msgid ""
+"If selected, you download the map from the german expedia server (expedia.de)"
+msgstr ""
+
+#: src/gpsdrive.c:6947
+msgid ""
+"If selected, you download the map from the U.S. expedia server (expedia.com)"
+msgstr ""
+
+#: src/gpsdrive.c:6951
+msgid ""
+"If selected, you download the map from the TopoZone Server (US maps only)"
+msgstr ""
+
+#: src/gpsdrive.c:6977 src/gpsdrive.c:6981
+msgid ""
+"You can also select the position\n"
+"with a mouse click on the map."
+msgstr ""
+"Pozíciu mô¾ete tie¾ vybra»\n"
+"pomocou kliknutia my¹ou na mapu."
+
+#: src/gpsdrive.c:6983
+msgid "Using Proxy and port:"
+msgstr "Pou¾ívam proxy a port:"
+
+#: src/gpsdrive.c:7280 src/gpsdrive.c:7397
+msgid "can't open socket for port 80"
+msgstr "nie je mo¾né otvori» soket pre port 80"
+
+#: src/gpsdrive.c:7282 src/gpsdrive.c:7285 src/gpsdrive.c:7309
+#: src/gpsdrive.c:7312 src/gpsdrive.c:7327 src/gpsdrive.c:7330
+#: src/gpsdrive.c:7399 src/gpsdrive.c:7404 src/gpsdrive.c:7407
+#: src/gpsdrive.c:7411 src/gpsdrive.c:7446 src/gpsdrive.c:7451
+#: src/gpsdrive.c:7454 src/gpsdrive.c:7458 src/gpsdrive.c:7473
+#: src/gpsdrive.c:7478 src/gpsdrive.c:7481 src/gpsdrive.c:7485
+#, c-format
+msgid "Connecting to %s FAILED!"
+msgstr "Pripojenie k %s ZLYHALO!"
+
+#: src/gpsdrive.c:7307 src/gpsdrive.c:7444
+msgid "Can't resolve webserver address"
+msgstr "Nie je mo¾né rozlú¹ti» adresu webserveru"
+
+#: src/gpsdrive.c:7325 src/gpsdrive.c:7471
+msgid "unable to connect to Website"
+msgstr "nie je mo¾né sa pripoji» k Website"
+
+#: src/gpsdrive.c:7353 src/gpsdrive.c:7542
+msgid "read from Webserver"
+msgstr "èíta» z Webservera"
+
+#: src/gpsdrive.c:7380 src/gpsdrive.c:7384 src/gpsdrive.c:7386
+#: src/gpsdrive.c:7389
+#, c-format
+msgid "Connecting to %s"
+msgstr "Pripájam sa na %s"
+
+#: src/gpsdrive.c:7499 src/gpsdrive.c:7503 src/gpsdrive.c:7505
+#: src/gpsdrive.c:7508
+#, c-format
+msgid "Now connected to %s"
+msgstr "Teraz pripojené k %s"
+
+#: src/gpsdrive.c:7585
+#, c-format
+msgid "Downloaded %d kBytes"
+msgstr "Stiahnuté %d kB"
+
+#: src/gpsdrive.c:7599
+msgid "Download FAILED!"
+msgstr "S»ahovanie zlyhalo"
+
+#: src/gpsdrive.c:7601
+#, c-format
+msgid "Download finished, got %dkB"
+msgstr "S»ahovanie dokonèené, prijatých %dkB"
+
+#: src/gpsdrive.c:7772
+msgid "Select a map file"
+msgstr "Výber súboru s mapou"
+
+#: src/gpsdrive.c:7837
+msgid ""
+"How to calibrate your own maps? First, the map file\n"
+"must be copied into the"
+msgstr ""
+
+#: src/gpsdrive.c:7839
+#, fuzzy
+msgid ""
+"\n"
+"directory as .gif, .jpg or .png file and must have\n"
+"the size 1280x1024. The file names must be\n"
+"map_* for street maps or top_* for topographical maps!\n"
+"Load the file, select coordinates from waypoint list or\n"
+"type them in. Then click on the accept button."
+msgstr ""
+"Ako kalibrova» va¹e mapy?\n"
+"\n"
+"Najprv va¹a mapa musí by» skopírovaná do prieèinka ~/.gpsdrive ako grafický "
+"súbor .gif, .jpg alebo .png a musí ma» veµkos» 1280x1024. Názov súboru musí "
+"by» map_* pre mapy s ulicami a top_* pre topografické mapy!\n"
+"Otvorte súbor, zvoµte koordináty\n"
+"zo zoznamu bodov trasy alebo ich napí¹te.\n"
+"Potom kliknite na tlaèítko Akceptova»."
+
+#: src/gpsdrive.c:7846
+#, fuzzy
+msgid ""
+"Now do the same for your second point and click on the\n"
+"finish button. The map can be used now."
+msgstr ""
+"Teraz urobte to isté aj pre vá¹ druhý bod a kliknite na tlaèítko dokonèi». "
+"Teraz bude mapa pou¾itá."
+
+#: src/gpsdrive.c:7851
+msgid "Import Assistant. Step 1"
+msgstr "Asistent importom. Krok 1"
+
+#: src/gpsdrive.c:7853
+msgid "Import Assistant. Step 2"
+msgstr "Asistent importom. Krok 2"
+
+#: src/gpsdrive.c:7858
+msgid "Accept first point"
+msgstr "Akceptova» prvý bod"
+
+#: src/gpsdrive.c:7860
+msgid "Finish"
+msgstr "Ukonèi»"
+
+#: src/gpsdrive.c:7881
+msgid "Go up"
+msgstr "Prejs» vy¹¹ie"
+
+#: src/gpsdrive.c:7884
+msgid "Go left"
+msgstr "Ís» doµava"
+
+#: src/gpsdrive.c:7887
+msgid "Go right"
+msgstr "Ís» doprava"
+
+#: src/gpsdrive.c:7890
+msgid "Go down"
+msgstr "Prejs» dole"
+
+#: src/gpsdrive.c:7893
+msgid "Zoom in"
+msgstr "Zväè¹i»"
+
+#: src/gpsdrive.c:7896
+msgid "Zoom out"
+msgstr "Zmen¹i»"
+
+#: src/gpsdrive.c:7915
+msgid "Screen X"
+msgstr "Obrazovka X"
+
+#: src/gpsdrive.c:7917
+msgid "Screen Y"
+msgstr "Obrazovka Y"
+
+#: src/gpsdrive.c:7919
+msgid "Browse waypoint"
+msgstr "Prezeranie bodov trasy"
+
+#: src/gpsdrive.c:7950
+msgid "Browse filename"
+msgstr "Prezeranie názvov súborov"
+
+#: src/gpsdrive.c:8043
+msgid "GpsDrive Control"
+msgstr "Ovládanie GpsDrive"
+
+#: src/gpsdrive.c:8154 src/gpsdrive.c:8156 src/gpsdrive.c:8158
+#: src/gpsdrive.c:11670 src/gpsdrive.c:11672 src/gpsdrive.c:11674
+#: src/settings.c:1025
+msgid "Speed"
+msgstr "Rýchlos»"
+
+#: src/gpsdrive.c:8375
+msgid ""
+"\n"
+"distance jump is more then 1000km/h speed, ignoring\n"
+msgstr ""
+
+#: src/gpsdrive.c:8597 src/friends.c:348
+#, fuzzy
+msgid "/Misc. Menu/Messages"
+msgstr "Výber súboru so stopou"
+
+#: src/gpsdrive.c:8600
+#, fuzzy
+msgid "Sending message to friends server..."
+msgstr "Povoli»/nepovoli» výber vzdialenosti"
+
+#: src/gpsdrive.c:8673
+#, fuzzy
+msgid "Message for:"
+msgstr "  Správa  "
+
+#: src/gpsdrive.c:8714
+#, c-format
+msgid "Date: %s"
+msgstr ""
+
+#: src/gpsdrive.c:8727
+msgid "Sends your text to to selected computer using the friends server"
+msgstr ""
+
+#: src/gpsdrive.c:8999
+msgid "SELECTED"
+msgstr "ZVOLENÉMU"
+
+#: src/gpsdrive.c:9172
+msgid "Add waypoint name"
+msgstr "Prida» názov bodu trasy"
+
+#: src/gpsdrive.c:9231
+msgid " Waypoint name: "
+msgstr " Názov bodu trasy: "
+
+#: src/gpsdrive.c:9244
+msgid " Waypoint type: "
+msgstr " Typ bodu trasy: "
+
+#: src/gpsdrive.c:9489
+msgid "Name"
+msgstr ""
+
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/settings.c:1018
+msgid "Distance"
+msgstr "Vzdialenos»"
+
+#: src/gpsdrive.c:9499
+#, fuzzy
+msgid "Please select message recipient"
+msgstr "Zvoµte si prosím vá¹ cieµ cesty"
+
+#: src/gpsdrive.c:9568 src/gpsdrive.c:9715
+msgid "Waypoint"
+msgstr "Bod trasy"
+
+#: src/gpsdrive.c:9587
+msgid "Select reference point"
+msgstr "Výber referenèného bodu"
+
+#: src/gpsdrive.c:9591
+msgid "Please select your destination"
+msgstr "Zvoµte si prosím vá¹ cieµ cesty"
+
+#: src/gpsdrive.c:9620
+msgid "Edit route"
+msgstr "Upravi» trasu"
+
+#: src/gpsdrive.c:9622
+msgid "Create route"
+msgstr "Vytvori» trasu"
+
+#: src/gpsdrive.c:9693
+msgid "Create a route using some waypoints from this list"
+msgstr "Vytvorenie trasy s pou¾itím niekoµkých bodov zo zoznamu"
+
+#: src/gpsdrive.c:9698
+msgid "Delete the selected waypoint from the waypoint list"
+msgstr "Zmazanie zvoleného bodu zo zoznamu"
+
+#: src/gpsdrive.c:9702
+#, fuzzy
+msgid "Jump to the selected waypoint"
+msgstr ""
+"Kliknite na zoznam polo¾iek\n"
+"a zvoµte nasledujúci bod trasy"
+
+#: src/gpsdrive.c:9729
+msgid "Define route"
+msgstr "Definova» trasu"
+
+#: src/gpsdrive.c:9737
+msgid "Start route"
+msgstr "Zaèa» cestu"
+
+#: src/gpsdrive.c:9746
+msgid "Take all WP as route"
+msgstr "Pou¾i» v¹etky body ako trasu"
+
+#: src/gpsdrive.c:9751
+msgid "Abort route"
+msgstr "Preru¹i» cestu"
+
+#: src/gpsdrive.c:9795
+msgid ""
+"Click on waypoints list\n"
+"to add waypoints"
+msgstr ""
+"Kliknite na zoznam bodov trasy\n"
+"na pridanie bodov."
+
+#: src/gpsdrive.c:9797
+msgid ""
+"Click on list item\n"
+"to select next waypoint"
+msgstr ""
+"Kliknite na zoznam polo¾iek\n"
+"a zvoµte nasledujúci bod trasy"
+
+#: src/gpsdrive.c:9838
+msgid ""
+"Create a route from all waypoints. Sorted with order in file, not distance."
+msgstr ""
+"Vytvorí cestu zo v¹etkých bodov. Poradie bude urèené pola ich usporiadania v "
+"súbore a nie podµa vzdialenosti."
+
+#: src/gpsdrive.c:9842
+msgid ""
+"Click here to start your journey. GpsDrive guides you through the waypoints "
+"in this list."
+msgstr ""
+"Kliknite sem, aby sa zaèala va¹a cesta. GpsDrive vás prevedie cez jednotlivé "
+"body trasy v tomto zozname."
+
+#: src/gpsdrive.c:9845
+msgid "Abort your journey"
+msgstr "Preru¹í va¹u cestu"
+
+#: src/gpsdrive.c:9862
+msgid "-v    show version\n"
+msgstr "-v    zobrazí verziu\n"
+
+#: src/gpsdrive.c:9863
+msgid "-h    print this help\n"
+msgstr "-h    zobrazí tohoto pomocníka\n"
+
+#: src/gpsdrive.c:9864
+msgid "-d    turn on debug info\n"
+msgstr "-d    zapne ladenie\n"
+
+#: src/gpsdrive.c:9865
+msgid "-D    turn on lot of debug info\n"
+msgstr "-d    zapne podrobné ladenie\n"
+
+#: src/gpsdrive.c:9866
+msgid "-e    use Festival-Lite (flite) for speech output\n"
+msgstr "-e    pou¾i» Festival-Lite (flite) pre reèový výstup\n"
+
+#: src/gpsdrive.c:9867
+msgid "-t    set serial device for GPS i.e. /dev/ttyS1\n"
+msgstr "-t    nastaví seriálové zariadenia na GPS t.j. /dev/ttyS1\n"
+
+#: src/gpsdrive.c:9868
+msgid "-o    serial device, pty master, or file for NMEA *output*\n"
+msgstr "-o    sériové zariadenie, pty master, alebo súbor pre NMEA *výstup*\n"
+
+#: src/gpsdrive.c:9869
+#, fuzzy
+msgid "-f X  Select friends server, X is i.e. www.gpsdrive.cc\n"
+msgstr "-f X  Výber priateµského servera, t.j. X je linux.quant-x.at\n"
+
+#: src/gpsdrive.c:9870
+msgid "-n    Disable use of direct serial connection\n"
+msgstr ""
+
+#: src/gpsdrive.c:9871
+msgid ""
+"-l X  Select language of the voice,\n"
+"      X may be english, spanish or german\n"
+msgstr ""
+"-l X  Výber jazyka hlasu, kde X mô¾e by» english pre angliètinu, spanish\n"
+"      pre ¹panielèinu alebo german pre nemèinu\n"
+
+#: src/gpsdrive.c:9873
+msgid ""
+"-s X  set height of the screen, if autodetection\n"
+"      don't satisfy you, X is i.e. 768,600,480,200\n"
+msgstr ""
+"-s X  nastavenie vý¹ky obrazovky, ak výsledky autodetekcie vás\n"
+"      neuspokojujú; t.j. X mô¾e by» 768, 600, 480, 200\n"
+
+#. ** Mod by Arms
+#: src/gpsdrive.c:9876
+msgid "-r X  set width of the screen, only with -s\n"
+msgstr "-r X  nastavenie vý¹ky obrazovky, iba s prepínaèom -s \n"
+
+#: src/gpsdrive.c:9878
+msgid "-1    have only 1 button mouse, for example using touchscreen\n"
+msgstr "-1    pre 1 tlaèítkovú my¹, ako je napr. dotyková obrazovka\n"
+
+#: src/gpsdrive.c:9879
+msgid "-a    don't display battery status (i.e. broken APM)\n"
+msgstr "-a    nezobrazi» stav batérie (t.j. po¹kodené APM)\n"
+
+#: src/gpsdrive.c:9881
+msgid "-b X  Servername for NMEA server (if gpsd runs on another host)\n"
+msgstr "-b X  Názov NMEA servera (ak gpsd je spustené alebo iný hostiteµ)\n"
+
+#: src/gpsdrive.c:9883
+msgid "-c X  set start position in simulation mode to waypoint name X\n"
+msgstr ""
+"-c X  nastavenie ¹tartovacej pozície v simulaènom re¾ime na bod trasy X\n"
+
+#: src/gpsdrive.c:9884
+msgid "-x    create separate window for menu\n"
+msgstr "-x    vytvorí oddelené okno pre ponuku\n"
+
+#: src/gpsdrive.c:9885
+msgid "-p    set settings for PDA (iPAQ, Yopy...)\n"
+msgstr "-p    nastaví mo¾nosti pre PDA (iPAQ, Yopy...)\n"
+
+#: src/gpsdrive.c:9887
+msgid "-i    ignore NMEA checksum (risky, only for broken GPS receivers\n"
+msgstr ""
+"-i    ignorova» NMEA kontrolný súèet (riskantné, iba pre po¹kodené GPS "
+"prijímaèe\n"
+
+#: src/gpsdrive.c:9888
+msgid "-q    disable SQL support\n"
+msgstr "-q    nepovoli» SQL podporu\n"
+
+#: src/gpsdrive.c:9889
+msgid "-F    force display of position even it is invalid\n"
+msgstr ""
+
+#: src/gpsdrive.c:9890
+msgid "-S    don't show splash screen\n"
+msgstr ""
+
+#: src/gpsdrive.c:9891
+msgid "-E    print out data received from direct serial connection\n"
+msgstr ""
+
+#: src/gpsdrive.c:9893
+msgid "-W x  set x to 1 to switch WAAS/EGNOS on, set to 0 to switch off\n"
+msgstr ""
+
+#: src/gpsdrive.c:9894
+msgid "-H X  correct altitude, adding this value to altitude\n"
+msgstr ""
+
+#: src/gpsdrive.c:9895
+msgid ""
+"-z    don't display zoom factor and scale\n"
+"\n"
+msgstr ""
+"-z    nezobrazi» faktor zväè¹enia a mierku\n"
+"\n"
+
+#: src/gpsdrive.c:10001
+msgid "Select a track file"
+msgstr "Výber súboru so stopou"
+
+#: src/gpsdrive.c:10179 src/gpskismet.c:380
+msgid "can't open socket for port "
+msgstr "nie je mo¾né otvori» soket pre port "
+
+#: src/gpsdrive.c:10200
+#, c-format
+msgid ""
+"\n"
+"Cannot connect to %s: unknown host\n"
+msgstr ""
+
+#: src/gpsdrive.c:10221
+msgid "NMEA Mode, Port 2222"
+msgstr "Re¾im NMEA, Port 2222"
+
+#: src/gpsdrive.c:10230
+msgid "NMEA Mode, Port 2947"
+msgstr "Re¾im NMEA, Port 2947"
+
+#: src/gpsdrive.c:10249
+msgid ""
+"\n"
+"Garmin protocol detection disabled!\n"
+msgstr ""
+"\n"
+"Detekcia protokolu Garmin detekcia nie je povolená!\n"
+
+#: src/gpsdrive.c:10600
+msgid ""
+"\n"
+"libmysqlclient.so not found.\n"
+msgstr ""
+
+#: src/gpsdrive.c:10606
+msgid ""
+"\n"
+"MySQL support disabled.\n"
+msgstr ""
+
+#: src/gpsdrive.c:10783
+msgid ""
+"\n"
+"You can only choose between english, spanish and german\n"
+"\n"
+msgstr ""
+"\n"
+"Mô¾ete si zvoli» iba medzi angliètinou, ¹panielèinou a nemèinou\n"
+"\n"
+
+#: src/gpsdrive.c:10817 src/settings.c:1730
+#, fuzzy
+msgid "EnterYourName"
+msgstr "Rozhranie"
+
+#: src/gpsdrive.c:10879
+#, c-format
+msgid ""
+"\n"
+"Using proxy: %s on port %d"
+msgstr ""
+"\n"
+"Pou¾ívam proxy: %s na porte %d"
+
+#: src/gpsdrive.c:10883
+msgid ""
+"\n"
+"Invalid enviroment variable HTTP_PROXY, must be in format: http://proxy."
+"provider.de:3128"
+msgstr ""
+"\n"
+"Neplatná premenná prostredia HTTP_PROXY, musí by» vo formáte: http://proxy."
+"provider.de:3128"
+
+#: src/gpsdrive.c:11073
+#, fuzzy
+msgid "Gpsdrive-2 (c)2001-2004 F.Ganter"
+msgstr "(c)2001,2002 F.Ganter"
+
+#: src/gpsdrive.c:11081
+msgid "Using speech output"
+msgstr "Pou¾ívam reèový výstup"
+
+#: src/gpsdrive.c:11115
+#, fuzzy
+msgid "/Misc. Menu/Maps/Map Manager"
+msgstr "Výber súboru so stopou"
+
+#: src/gpsdrive.c:11119
+#, fuzzy
+msgid "/Misc. Menu/Waypoint Manager"
+msgstr "Výber súboru so stopou"
+
+#. download map button
+#: src/gpsdrive.c:11123
+#, fuzzy
+msgid "_Download map"
+msgstr "Stiahnu» mapu"
+
+#: src/gpsdrive.c:11142
+#, fuzzy
+msgid "M_ute"
+msgstr "Potichu"
+
+#: src/gpsdrive.c:11152
+#, fuzzy
+msgid "Use SQ_L"
+msgstr "Pou¾i» SQL"
+
+#: src/gpsdrive.c:11162
+#, fuzzy
+msgid "Show _WP"
+msgstr "Zobrazi» body trasy"
+
+#: src/gpsdrive.c:11189
+msgid "HomeBase"
+msgstr ""
+
+#: src/gpsdrive.c:11197
+#, fuzzy
+msgid "Pos. _mode"
+msgstr "Pos. re¾im"
+
+#: src/gpsdrive.c:11203
+#, fuzzy
+msgid "Show _Track"
+msgstr "Zobrazi» stopu"
+
+#: src/gpsdrive.c:11246
+msgid "_Navigation"
+msgstr ""
+
+#: src/gpsdrive.c:11265
+#, fuzzy
+msgid "Auto _best map"
+msgstr "Auto najlep¹ia mapa"
+
+#: src/gpsdrive.c:11275
+msgid "Save track"
+msgstr "Ulo¾i» stopu"
+
+#: src/gpsdrive.c:11286
+msgid "Shown map type"
+msgstr "Zobrazi» typ mapy"
+
+#: src/gpsdrive.c:11297
+msgid "Street map"
+msgstr "Mapa ulíc"
+
+#: src/gpsdrive.c:11304
+msgid "Topo map"
+msgstr "Topo mapa"
+
+#: src/gpsdrive.c:11386
+msgid ""
+"\n"
+"kismet server found\n"
+msgstr ""
+"\n"
+"nájdený kismet server\n"
+
+#: src/gpsdrive.c:11447 src/gpsdrive.c:11797
+msgid "Bearing"
+msgstr "Azimut"
+
+#: src/gpsdrive.c:11468
+#, fuzzy
+msgid "GPS Info"
+msgstr "Geo info"
+
+#: src/gpsdrive.c:11519
+msgid "Bat."
+msgstr "Bat."
+
+#: src/gpsdrive.c:11534
+#, fuzzy
+msgid "TC"
+msgstr "UTC "
+
+#. displays speed over ground
+#: src/gpsdrive.c:11552 src/gpsdrive.c:11807 src/gpsdrive.c:11809
+#: src/gpsdrive.c:11815 src/gpsdrive.c:11817
+msgid "---"
+msgstr "---"
+
+#: src/gpsdrive.c:11632 src/gpsdrive.c:11639
+#, fuzzy
+msgid "Selected:"
+msgstr "Vybra» cieµ"
+
+#: src/gpsdrive.c:11632 src/gpsdrive.c:11639
+msgid "within"
+msgstr ""
+
+#. create frames for labels
+#: src/gpsdrive.c:11647
+msgid "Distance to target"
+msgstr "Vzdialenos» k cieµu"
+
+#. ** Mod by Arms
+#. if (!pdamode)
+#. gtk_box_pack_start (GTK_BOX (hbox2), frame_speed, TRUE, TRUE,
+#. 1 * PADDING);
+#: src/gpsdrive.c:11683
+msgid "Altitude"
+msgstr "Kóta"
+
+#. ** Mod by Arms
+#. if (!pdamode)
+#. gtk_box_pack_start (GTK_BOX (hbox2), frame_altitude, FALSE, TRUE,
+#. 1 * PADDING);
+#: src/gpsdrive.c:11690 src/settings.c:681
+msgid "Waypoints"
+msgstr "Body trasy"
+
+#: src/gpsdrive.c:11794
+msgid "Map file"
+msgstr "Súbor s mapou"
+
+#: src/gpsdrive.c:11795
+msgid "Map scale"
+msgstr "Mierka mapy"
+
+#: src/gpsdrive.c:11796
+msgid "Heading"
+msgstr "Kurz"
+
+#: src/gpsdrive.c:11798
+msgid "Time at Dest."
+msgstr "Èas v cieli"
+
+#: src/gpsdrive.c:11799
+msgid "Pref. scale"
+msgstr "Pref. mierka"
+
+#: src/gpsdrive.c:11803
+msgid "000,00000N"
+msgstr ""
+
+#: src/gpsdrive.c:11805
+msgid "000,00000E"
+msgstr ""
+
+#: src/gpsdrive.c:11811 src/gpsdrive.c:11813
+msgid "0000"
+msgstr ""
+
+#. gdk_window_lower((GdkWindow *)menuwin);
+#: src/gpsdrive.c:11886 src/gpsdrive.c:11937
+msgid "Menu"
+msgstr "Ponuka"
+
+#. gdk_window_lower((GdkWindow *)menuwin2);
+#: src/gpsdrive.c:11895 src/gpsdrive.c:11938
+msgid "Status"
+msgstr "Stav"
+
+#: src/gpsdrive.c:12089
+msgid ""
+"Click here to switch betwen satetellite level and satellite position "
+"display. A rotating globe is shown in simulation mode"
+msgstr ""
+
+#: src/gpsdrive.c:12093
+#, fuzzy
+msgid "Number of used satellites/satellites in view"
+msgstr "Nedostatoèné mno¾stvo videteµných satelitov!"
+
+#: src/gpsdrive.c:12096
+msgid "EPE (Estimated Precision Error), if available"
+msgstr ""
+
+#: src/gpsdrive.c:12100
+msgid ""
+"PDOP (Position Dilution Of Precision). PDOP less than 4 gives the best "
+"accuracy, between 4 and 8 gives acceptable accuracy and greater than 8 gives "
+"unacceptable poor accuracy. "
+msgstr ""
+
+#: src/gpsdrive.c:12105
+msgid ""
+"On top of the compass you see the direction to which you move. The pointer "
+"shows the target direction on the compass."
+msgstr ""
+
+#: src/gpsdrive.c:12108
+msgid "/Misc. Menu"
+msgstr ""
+
+#: src/gpsdrive.c:12111
+msgid "Here you find extra functions for maps, tracks and messages"
+msgstr ""
+
+#: src/gpsdrive.c:12115
+msgid "Download map from Internet"
+msgstr "Stiahnu» mapu z Internetu"
+
+#: src/gpsdrive.c:12117
+msgid "Leave the program"
+msgstr "Odís» z programu"
+
+#: src/gpsdrive.c:12120
+msgid "Disable output of speech"
+msgstr "Zakáza» reèový výstup"
+
+#: src/gpsdrive.c:12123
+msgid "Use SQL server for waypoints"
+msgstr "Pou¾i» SQL server pre body trasy"
+
+#: src/gpsdrive.c:12126
+msgid "Show waypoints on the map"
+msgstr "Zobrazi» body trasy na mape"
+
+#: src/gpsdrive.c:12129
+msgid ""
+"Turn position mode on. You can move on the map with the left mouse button "
+"click. Clicking near the border switches to the proximate map."
+msgstr ""
+"Zapnite pozièný re¾im. Po mape sa mô¾ete pohybova» pomocou kliknutia s µavým "
+"tlaèítko my¹i. Kliknutie do blízkosti okraja prepne na najbli¾¹iu mapu."
+
+#: src/gpsdrive.c:12132
+msgid "Show tracking on the map"
+msgstr "Zobrazi» stopovanie na mape"
+
+#: src/gpsdrive.c:12137
+msgid "Opens the help window"
+msgstr "Otvorí pomocníka"
+
+#: src/gpsdrive.c:12140
+msgid "Navigation menu. Enter here your destination."
+msgstr ""
+
+#: src/gpsdrive.c:12156
+msgid "Settings for GpsDrive"
+msgstr "Nastavenia pre GpsDrive"
+
+#: src/gpsdrive.c:12158
+msgid "Zoom into the current map"
+msgstr "Zväè¹enie aktuálnej mapy"
+
+#: src/gpsdrive.c:12160
+msgid "Zooms out off the current map"
+msgstr "Zmen¹enie aktuálnej mapy"
+
+#: src/gpsdrive.c:12162
+msgid "Select the next more detailed map"
+msgstr "Výber nasledujúcej detailnej¹ej mapy"
+
+#: src/gpsdrive.c:12164
+msgid "Select the next less detailed map"
+msgstr "Výber nasledujúcej menej detailnej mapy"
+
+#: src/gpsdrive.c:12169
+msgid "Select here a destination from the waypoint list"
+msgstr "Výber cieµa zo zoznamu bodov trasy"
+
+#: src/gpsdrive.c:12173
+msgid "Select the map scale of avail. maps."
+msgstr "Výber mierky mapy dostupných máp."
+
+#: src/gpsdrive.c:12178
+msgid "Always select the most detailed map available"
+msgstr "V¾dy zvoli» najdetailnej¹iu dostupnú mapu"
+
+#: src/gpsdrive.c:12181
+msgid "Save the track to given filename at program exit"
+msgstr "Ulo¾i» stopu pod zadaným názvom a ukonèi» program"
+
+#: src/gpsdrive.c:12187
+msgid "Number of waypoints selected from SQL server"
+msgstr ""
+
+#: src/gpsdrive.c:12191
+msgid "Number of selected waypoints, which are in range"
+msgstr ""
+
+#: src/gpsdrive.c:12195
+msgid "Range for waypoint selection in kilometers"
+msgstr ""
+
+#: src/gpsdrive.c:12198
+msgid "This shows the time from your GPS receiver"
+msgstr ""
+
+#: src/gpsdrive.c:12201
+msgid ""
+"Number of mobile targets within timeframe/total received from friendsserver"
+msgstr ""
+
+#: src/gpsdrive.c:12275
+msgid ""
+"\n"
+"\n"
+"Thank you for using GpsDrive!\n"
+"\n"
+msgstr ""
+"\n"
+"\n"
+"Vïaka za pou¾ívanie GpsDrive!\n"
+"\n"
+
+#: src/splash.c:543
+#, fuzzy
+msgid "GpsDrive v"
+msgstr "GpsDrive pomocník"
+
+#: src/splash.c:549
+msgid ""
+"\n"
+"\n"
+"You find new versions on http://www.gpsdrive.cc\n"
+msgstr ""
+
+#: src/splash.c:553
+msgid ""
+"Disclaimer: Please do not use for navigation. \n"
+"\n"
+msgstr ""
+"Prehlásenie: Nepou¾ívajte prosím na navigáciu. \n"
+"\n"
+
+#: src/splash.c:558
+#, fuzzy
+msgid "Please have a look into the manpage (man gpsdrive) for program details!"
+msgstr ""
+"Pozrite si manuálovú stránku programu, kde sú detaily\n"
+"\n"
+
+#: src/splash.c:563
+msgid "Mouse control (clicking on the map):\n"
+msgstr "Ovládanie my¹ou (kliknutím na mapu):\n"
+
+#: src/splash.c:569
+msgid ""
+"Left mouse button         : Set position (usefull in simulation mode)\n"
+"Right mouse button        : Set target directly on the map\n"
+"Middle mouse button       : Display position again\n"
+"Shift left mouse button   : smaller map\n"
+"Shift right mouse button  : larger map\n"
+"Control left mouse button : Set a waypoint (mouse position) on the map\n"
+"Control right mouse button: Set a waypoint at current position on the map\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:577
+msgid ""
+"j    : switch to next waypoint in route mode\n"
+"x    : add waypoint at current position\n"
+"y    : add waypoint at mouse cursor position\n"
+msgstr ""
+
+#: src/splash.c:583
+msgid "Short cuts:\n"
+msgstr "Klávesové skratky:\n"
+
+#: src/splash.c:590
+msgid "The other key shortcuts are marked as "
+msgstr ""
+
+#: src/splash.c:591
+msgid "underlined"
+msgstr ""
+
+#: src/splash.c:593
+msgid " letters in the button text.\n"
+msgstr ""
+
+#: src/splash.c:596
+msgid ""
+"Press the underlined key together with the ALT-key.\n"
+"\n"
+"You can move on the map by selecting the Position-Mode in the menu. A blue "
+"rectangle shows this mode, you can set this cursor by clicking on the map. "
+"If you click on the border of the map (the outer 20%) then the map switches "
+"to the next area.\n"
+"\n"
+"Suggestions welcome.\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:603
+#, fuzzy
+msgid "Have a lot of fun!"
+msgstr ""
+"Prajeme vám veµa zábavy!\n"
+"\n"
+
+#: src/splash.c:734
+msgid "Please donate to GpsDrive"
+msgstr ""
+
+#: src/splash.c:740
+msgid ""
+"\n"
+"\n"
+"GpsDrive is a project with no comercial background. \n"
+"\n"
+"It would be nice if you can give a donation to help me pay the costs for "
+"hardware and the webserver.\n"
+"\n"
+"To do so, just go to"
+msgstr ""
+
+#: src/splash.c:744
+msgid " http://www.gpsdrive.cc "
+msgstr ""
+
+#: src/splash.c:747
+msgid ""
+"and click on the PayPal button.\n"
+"\n"
+"Thank you very much for your donation!\n"
+"\n"
+"This message is only displayed once when you start an new version of "
+"GpsDrive.\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:780
+#, fuzzy
+msgid "About GpsDrive donation"
+msgstr "Ovládanie GpsDrive"
+
+#: src/splash.c:859
+msgid "From:"
+msgstr ""
+
+#: src/splash.c:928
+#, fuzzy, c-format
+msgid ""
+"You received a message from\n"
+"the friends server (%s)\n"
+msgstr "Povoli»/nepovoli» výber vzdialenosti"
+
+#: src/splash.c:938
+#, fuzzy
+msgid "You received a message through the friends server from:\n"
+msgstr "Povoli»/nepovoli» výber vzdialenosti"
+
+#: src/splash.c:948
+#, fuzzy
+msgid "Message text:\n"
+msgstr "  Správa  "
+
+#: src/splash.c:1004
+msgid "Error saving config file ~/.gpsdrive/gpsdriverc"
+msgstr "Chyba poèas ukladania konfiguraèného súboru ~/.gpsdrive/gpsdriverc"
+
+#: src/splash.c:1519 src/splash.c:1578
+msgid ""
+"\n"
+"Warning: unable to open splash picture\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:1562
+#, fuzzy
+msgid "About GpsDrive"
+msgstr "Ovládanie GpsDrive"
+
+#: src/settings.c:438
+msgid "Setting WP label font"
+msgstr ""
+
+#: src/settings.c:440
+msgid "Setting big display font"
+msgstr ""
+
+#: src/settings.c:507
+msgid "Setting big display color"
+msgstr ""
+
+#: src/settings.c:545
+msgid "Setting track color"
+msgstr ""
+
+#: src/settings.c:587
+msgid "Setting friends label color"
+msgstr ""
+
+#: src/settings.c:668
+msgid ""
+"Don't use more than\n"
+"100 waypoint(way*.txt) files!"
+msgstr ""
+"Nepou¾ívajte viac ako\n"
+"100 súborov(way*.txt) s bodmi trasy!"
+
+#: src/settings.c:679
+msgid "Waypoint files to use"
+msgstr "Súbory s bodmi trasy, ktoré sa majú pou¾i»"
+
+#: src/settings.c:704 src/settings.c:709
+msgid "Settings"
+msgstr "Nastavenia"
+
+#. misc area
+#: src/settings.c:716
+msgid "Misc settings"
+msgstr "Ostatné nastavenia"
+
+#: src/settings.c:720
+msgid "Show Shadows"
+msgstr "Zobrazi» tiene"
+
+#: src/settings.c:727
+msgid "Etched frames"
+msgstr ""
+
+#: src/settings.c:735
+msgid "Simulation: Follow target"
+msgstr "Simulácia: Nasledova» cieµ"
+
+#: src/settings.c:742
+msgid "Maximum CPU load"
+msgstr ""
+
+#: src/settings.c:752
+#, fuzzy
+msgid "Track"
+msgstr "Zobrazi» stopu"
+
+#: src/settings.c:767
+msgid "Maps directory"
+msgstr "Prieèinok s mapami"
+
+#: src/settings.c:773
+msgid "Automatic"
+msgstr "Automatické"
+
+#: src/settings.c:779
+msgid "On"
+msgstr "Zapnuté"
+
+#: src/settings.c:784
+msgid "Off"
+msgstr "Vypnuté"
+
+#. gtk_table_attach_defaults (GTK_TABLE (misctable), label2, 0, 2, 3, 4);
+#. gtk_table_attach_defaults (GTK_TABLE (misctable), mapdirbt, 0, 2, 4, 5);
+#. GPS settings area
+#: src/settings.c:808
+msgid "GPS settings"
+msgstr "GPS nastavenia"
+
+#. gtk_container_add (GTK_CONTAINER (f4), gpstable);
+#: src/settings.c:822
+msgid "Test for GARMIN"
+msgstr "Test na GARMIN"
+
+#: src/settings.c:833
+msgid "Use DGPS-IP"
+msgstr "Pou¾i» DGPS-IP"
+
+#: src/settings.c:843
+msgid "GPS is Earthmate"
+msgstr ""
+
+#: src/settings.c:853
+msgid "Use serial conn."
+msgstr ""
+
+#: src/settings.c:868
+msgid "Interface"
+msgstr "Rozhranie"
+
+#: src/settings.c:869
+msgid "Baudrate"
+msgstr ""
+
+#. units area
+#: src/settings.c:904
+msgid "Units"
+msgstr "Jednotky"
+
+#: src/settings.c:910
+msgid "Miles"
+msgstr "Míle"
+
+#: src/settings.c:915
+msgid "Metric"
+msgstr "Metrické"
+
+#: src/settings.c:920 src/nautic.c:106
+msgid "Nautic"
+msgstr "Námorné"
+
+#: src/settings.c:930
+msgid "Decimal position"
+msgstr "Desatinná pozícia"
+
+#. gtk_box_pack_start (GTK_BOX (v2), miles, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), metric, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), nautic, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), minsecbt, TRUE, FALSE, 2 * PADDING);
+#.
+#. default download server
+#: src/settings.c:948
+msgid "Default map server"
+msgstr "©tandardný map server"
+
+#. Night light mode
+#: src/settings.c:981
+msgid "Night light mode"
+msgstr "Re¾im noèného svetla"
+
+#.  gtk_table_attach_defaults (GTK_TABLE (table), f5, 0, 2, 2, 3);
+#. Sound settings
+#: src/settings.c:999
+#, fuzzy
+msgid "Speech output settings"
+msgstr "Leteckonavigaèné nastavenia"
+
+#.
+#. set following sounds
+#. sound_direction ... say direction to target
+#. sound_distance  ... say distance to target
+#. sound_speed     ... say your current speed
+#. sound_gps       ... say GPS status
+#.
+#.
+#: src/settings.c:1011
+msgid "Direction"
+msgstr ""
+
+#: src/settings.c:1032
+#, fuzzy
+msgid "GPS Status"
+msgstr "Stav"
+
+#: src/settings.c:1046
+msgid "Switch on for speech output of the direction to the target"
+msgstr ""
+
+#: src/settings.c:1051
+msgid "Switch on for speech output of the distance to the target"
+msgstr ""
+
+#: src/settings.c:1056
+msgid "Switch on for speech output of your current speed"
+msgstr ""
+
+#: src/settings.c:1061
+msgid "Switch on for speech output of the status of your GPS signal"
+msgstr ""
+
+#. Font settings
+#: src/settings.c:1066
+#, fuzzy
+msgid "Font and color settings"
+msgstr "GPS nastavenia"
+
+#. gtk_box_pack_start (GTK_BOX (h1), f5, TRUE, FALSE, 2 * PADDING);
+#: src/settings.c:1071
+msgid "WP Label"
+msgstr ""
+
+#: src/settings.c:1072
+msgid "Big display"
+msgstr ""
+
+#: src/settings.c:1073
+msgid "Display color"
+msgstr ""
+
+#: src/settings.c:1101
+msgid "Switch units to statute miles"
+msgstr "Prepnutie jednotiek na uzákonené míle"
+
+#: src/settings.c:1103
+msgid "Switch units to nautical miles"
+msgstr "Prepnutie jednotiek na námorné míle"
+
+#: src/settings.c:1105
+msgid "Switch units to metric system (Kilometers)"
+msgstr "Prepnutie jednotiek na metrický systém (kilometre)"
+
+#: src/settings.c:1110
+msgid ""
+"If selected display latitude and longitude in decimal degrees, otherwise in "
+"degree, minutes and seconds notation"
+msgstr ""
+"Ak je zvolené, tak sa zemepisná ¹írka a då¾ka zobrazí v desatinách stupòov, "
+"inak sa zobrazí ako stupne, minúty a sekundy."
+
+#: src/settings.c:1115
+#, fuzzy
+msgid ""
+"Set the german expedia server(expedia.de) as default download server. Use "
+"this if you are in Europe"
+msgstr "Nastavi» Expedia ako ¹tandardný server pre s»ahovanie"
+
+#: src/settings.c:1119
+msgid "Set Expedia as default download server"
+msgstr "Nastavi» Expedia ako ¹tandardný server pre s»ahovanie"
+
+#: src/settings.c:1122
+msgid "Switches shadows on map on or off"
+msgstr "Prepína zobrazovanie tieòov na mape"
+
+#: src/settings.c:1126
+msgid "Switches between different type of frame ornaments"
+msgstr ""
+
+#: src/settings.c:1131
+#, c-format
+msgid ""
+"Select the approx. maximum CPU load, use 20-30% on notebooks while on "
+"battery to save battery power. This effects the refresh rate of the map "
+"screen"
+msgstr ""
+
+#: src/settings.c:1136
+msgid "If activated, pointer moves to target in simulation mode"
+msgstr ""
+"Ak je aktivované, ukazovateµ sa pohybuje smerom k cieµu v simulaènom re¾ime"
+
+#: src/settings.c:1140
+msgid "Set here the color of the drawn track"
+msgstr ""
+
+#: src/settings.c:1144
+msgid ""
+"Path to your map files. In the specified directory also the index file "
+"map_koord.txt must be present."
+msgstr ""
+"Cesta k va¹im súborom s mapami. V urèenom prieèinku musí by» tie¾ prítomný "
+"indexový súbor map_koord.txt."
+
+#: src/settings.c:1149
+msgid ""
+"If selected, gpsdrive try to use GARMIN mode if possible. Unselect if you "
+"only have a NMEA device."
+msgstr ""
+"Ak je oznaèené, gpsdrive sa pokúsi ak je to mo¾né pou¾i» re¾im GARMIN. "
+"Odznaète, ak máte iba NMEA zariadenie."
+
+#: src/settings.c:1154
+msgid ""
+"Set here the baud rate of your GPS device, NMEA devices usually have a speed "
+"of 4800 baud"
+msgstr ""
+
+#: src/settings.c:1159
+msgid ""
+"If selected, gpsdrive try to use differential GPS over IP. You must have an "
+"internet connection and a DGPS capable GPS receiver. Works only in NMEA mode!"
+msgstr ""
+"Ak je oznaèené, gpsdrive sa pokúsi pou¾i» diferenciálne GPS cez IP. Musíte "
+"ma» pripojenie k internetu a GPS prijímaè spôsobilý pre DGPS. Pracuje iba v "
+"NMEA re¾ime."
+
+#: src/settings.c:1164
+msgid ""
+"Select this if you have a DeLorme Earthmate GPS receiver. The StartGPSD "
+"button will provide gpsd with the needed additional parameters"
+msgstr ""
+
+#: src/settings.c:1169
+msgid ""
+"Select this if you want to use of the direct serial connection. If disabled, "
+"you can use the receiver only through gpsd. On the other hand, the direct "
+"serial connection needs no gpsd running and detects the working receiver on "
+"startup"
+msgstr ""
+
+#: src/settings.c:1174
+msgid "Specify the serial interface where the GPS is connected"
+msgstr "Urèite seriálové rozhranie, ku ktorému je GPS pripojené"
+
+#: src/settings.c:1179
+msgid ""
+"Switches automagically to night mode if it is dark outside. Press 'N' key to "
+"turn off nightmode."
+msgstr ""
+"Automaticky prepne do noèného re¾imu, ak je vonku tma. stlaète klávesu 'N' "
+"na vypnutie noèného re¾imu."
+
+#: src/settings.c:1183
+msgid "Switches night mode on. Press 'N' key to turn off nightmode."
+msgstr "Prepnutie noèného re¾imu. Klávesou 'N' vypnete noèný re¾im."
+
+#: src/settings.c:1186
+msgid "Switches night mode off"
+msgstr "Vypína noèný re¾im"
+
+#: src/settings.c:1190
+#, fuzzy
+msgid "Here you can set the font for the waypoint labels"
+msgstr "Zmazanie zvoleného bodu zo zoznamu"
+
+#: src/settings.c:1195
+msgid "Here you can set the font for the big display for Speed and Distance"
+msgstr ""
+
+#: src/settings.c:1199
+#, fuzzy
+msgid ""
+"Here you can set the color for the big display for speed, distance and "
+"altitude"
+msgstr "Zmazanie zvoleného bodu zo zoznamu"
+
+#: src/settings.c:1377
+msgid "Geo information"
+msgstr "Geo informácie"
+
+#: src/settings.c:1379
+msgid "Geo info"
+msgstr "Geo info"
+
+#: src/settings.c:1390
+msgid "Sunrise"
+msgstr "Východ slnka"
+
+#: src/settings.c:1392
+msgid "Sunset"
+msgstr "Západ slnka"
+
+#: src/settings.c:1395
+msgid "Standard"
+msgstr "©tandardný"
+
+#: src/settings.c:1397
+msgid "Transit"
+msgstr "Doprava"
+
+#: src/settings.c:1399
+msgid "GPS-Time"
+msgstr ""
+
+#: src/settings.c:1401
+msgid "Astro."
+msgstr "Astro."
+
+#: src/settings.c:1403
+msgid "Naut."
+msgstr "Námor."
+
+#: src/settings.c:1405
+msgid "Civil"
+msgstr "Civilné"
+
+#: src/settings.c:1407
+msgid "Timezone"
+msgstr "Èasová zóna"
+
+#: src/settings.c:1409
+msgid "Store TZ"
+msgstr ""
+
+#: src/settings.c:1419
+msgid ""
+"If selected, the timezone is stored, otherwise your actual timezone will "
+"automatically used"
+msgstr ""
+
+#: src/settings.c:1453
+msgid "Night"
+msgstr "Noc"
+
+#: src/settings.c:1455
+msgid "Day"
+msgstr "Deò"
+
+#: src/settings.c:1592 src/settings.c:1594 src/settings.c:1597
+msgid "Unit:"
+msgstr "Jednotky:"
+
+#: src/settings.c:1592
+msgid "miles"
+msgstr "míle"
+
+#: src/settings.c:1595
+msgid "nautic miles/knots"
+msgstr "námorné míle/uzly"
+
+#: src/settings.c:1597
+msgid "kilometers"
+msgstr "kilometrov"
+
+#: src/settings.c:1612
+msgid "Trip information"
+msgstr "Informácie o výlete"
+
+#: src/settings.c:1614
+msgid "Trip info"
+msgstr "Info o výlete"
+
+#: src/settings.c:1628
+msgid "Odometer"
+msgstr "Odometer"
+
+#: src/settings.c:1630
+msgid "Total time"
+msgstr "Celkový èas"
+
+#: src/settings.c:1632
+msgid "Av. speed"
+msgstr "Priem. rýchlos»"
+
+#: src/settings.c:1634
+msgid "Max. speed"
+msgstr "Max. rýchlos»"
+
+#: src/settings.c:1658
+msgid "Reset"
+msgstr ""
+
+#: src/settings.c:1663
+msgid "Resets the trip values to zero"
+msgstr ""
+
+#: src/settings.c:1732
+msgid "You should change your name in the first field!"
+msgstr ""
+
+#: src/settings.c:1918
+#, fuzzy
+msgid "Show position newer as"
+msgstr "Zobrazi» body trasy na mape"
+
+#: src/settings.c:1920
+#, fuzzy
+msgid "Friends server setup"
+msgstr ""
+"\n"
+"nájdený kismet server\n"
+
+#: src/settings.c:1921
+#, fuzzy
+msgid "Friends"
+msgstr "Ukonèi»"
+
+#: src/settings.c:1933
+#, fuzzy
+msgid "Days"
+msgstr "Deò"
+
+#: src/settings.c:1934
+msgid "Hours"
+msgstr ""
+
+#: src/settings.c:1935
+#, fuzzy
+msgid "Minutes"
+msgstr "Míle"
+
+#: src/settings.c:1941
+msgid "Your name"
+msgstr ""
+
+#: src/settings.c:1946
+msgid ""
+"Set here your name which should be shown near your vehicle. You may use "
+"spaces here!"
+msgstr ""
+
+#: src/settings.c:1958
+msgid "Server name"
+msgstr ""
+
+#: src/settings.c:1963
+msgid ""
+"Set here the full qualified host name (i.e. www.gpsdrive.cc) of your friends "
+"server, then you have to press the \"Lookup\" button!"
+msgstr ""
+
+#: src/settings.c:1972
+msgid "Lookup"
+msgstr ""
+
+#: src/settings.c:1980
+msgid ""
+"You have to press the \"Lookup\" button to resolve the friends server name!"
+msgstr ""
+
+#: src/settings.c:1991
+msgid "Set here the color of the label displayed at friends position"
+msgstr ""
+
+#: src/settings.c:1997
+#, fuzzy
+msgid "Friends server IP"
+msgstr ""
+"\n"
+"nájdený kismet server\n"
+
+#: src/settings.c:2002
+msgid ""
+"Set here the IP adress (i.e. 127.0.0.1) if you don't set the hostname above"
+msgstr ""
+
+#: src/settings.c:2007 src/settings.c:2012 src/settings.c:2016
+msgid ""
+"Set here the time limit in which the friends position is shown. Older "
+"positions are not shown."
+msgstr ""
+
+#: src/settings.c:2028
+#, fuzzy
+msgid "Use friends server"
+msgstr ""
+"\n"
+"nájdený kismet server\n"
+
+#: src/settings.c:2036
+msgid ""
+"Enable/disable use of friends server. You must enter a Username, don't use "
+"the default name!"
+msgstr ""
+
+#: src/settings.c:2039
+msgid ""
+"If you enable the friendsserver mode,\n"
+"<span color=\"red\">everyone</span> using the same server\n"
+"can see your position!"
+msgstr ""
+
+#: src/settings.c:2094
+msgid "SQL selection criterias"
+msgstr "Kritéria výberu SQL"
+
+#: src/settings.c:2095
+msgid "SQL"
+msgstr "SQL"
+
+#: src/settings.c:2121
+msgid "Dist. limit[km] "
+msgstr "Limit vzdial.[km] "
+
+#: src/settings.c:2126
+msgid "If enabled, show waypoints only within this distance"
+msgstr "Ak je povolené, tak zobrazí iba body trasy v tejto vzdialenosti"
+
+#: src/settings.c:2142
+msgid "Enable/disable distance selection"
+msgstr "Povoli»/nepovoli» výber vzdialenosti"
+
+#: src/settings.c:2151
+#, fuzzy
+msgid "Show no_ssid "
+msgstr "Zobrazi» body trasy"
+
+#: src/settings.c:2162
+msgid ""
+"If enabled, WLANs with no SSID are shown, because this is perhaps useless, "
+"you can disable it here"
+msgstr ""
+
+#: src/settings.c:2168
+msgid "Selection mode"
+msgstr "Simulaèný re¾im"
+
+#: src/settings.c:2170
+msgid "include"
+msgstr "zahrnú»"
+
+#: src/settings.c:2173
+msgid "exclude"
+msgstr "vylúèi»"
+
+#: src/settings.c:2177
+msgid ""
+"Show only waypoints where the type field contains one of the selected words"
+msgstr ""
+"Zobrazi» iba body trasy, ktorých políèko typu obsahuje jedno zo zvolených "
+"slov"
+
+#: src/settings.c:2181
+msgid ""
+"Show only waypoints where the type field doesn't contain any the selected "
+"words"
+msgstr ""
+"Zobrazi» iba body trasy, ktorých políèko typu neobsahuje ¾iadne zo zvolených "
+"slov"
+
+#: src/fly.c:149
+msgid "Aeronautical settings"
+msgstr "Leteckonavigaèné nastavenia"
+
+#: src/fly.c:151
+msgid "Fly"
+msgstr "Let"
+
+#: src/fly.c:158
+msgid "Plane mode"
+msgstr "Re¾im lietadla"
+
+#: src/fly.c:165
+msgid "Use VFR"
+msgstr "Pou¾i» VFR"
+
+#: src/fly.c:171
+msgid "Use IFR"
+msgstr "Pou¾i» IFR"
+
+#: src/fly.c:181
+msgid "max. horizontal deviation "
+msgstr "max. vodorovná odchýlka"
+
+#: src/fly.c:183
+msgid "max. vertical deviation "
+msgstr "max. zvislá odchýlka"
+
+#: src/fly.c:198
+msgid "disable vert. deviation warning above 5000ft MSL"
+msgstr "zaká¾e varovanie o vertikálnej odchýlke nad 5000stôp MSL"
+
+#: src/nautic.c:103
+msgid "Nautic settings"
+msgstr "Navigaèné nastavenia"
+
+#. if (debug)
+#: src/gpssql.c:215
+#, c-format
+msgid ""
+"\n"
+"SQL: connected to %s as %s using %s\n"
+msgstr ""
+"\n"
+"SQL: pripojené k %s ako %s s pou¾itím %s\n"
+
+#: src/gpssql.c:278
+#, c-format
+msgid "rows inserted: %d\n"
+msgstr "vlo¾ené riadky: %d\n"
+
+#: src/gpssql.c:293
+#, c-format
+msgid "last index: %d\n"
+msgstr "posledný index: %d\n"
+
+#: src/gpssql.c:314
+#, fuzzy, c-format
+msgid "rows deleted: %d\n"
+msgstr "vlo¾ené riadky: %d\n"
+
+#: src/gpssql.c:366 src/gpssql.c:372
+#, c-format
+msgid "Loaded user defined icon %s\n"
+msgstr ""
+
+#: src/gpssql.c:455
+#, c-format
+msgid "%d(%d) rows read in %.2f seconds\n"
+msgstr "%d(%d) preèítaných riadkov za %.2f sekúnd\n"
+
+#: src/friends.c:363
+#, fuzzy
+msgid "unknown"
+msgstr "Neznámy"
+
+#: src/friendsd.c:472
+msgid "server: please don't run me as root\n"
+msgstr ""
+
+#: src/friendsd.c:484
+#, c-format
+msgid ""
+"\n"
+"Usage:\n"
+"   %s -n servername\n"
+"provides a name for your server\n"
+msgstr ""
+
+#: src/gpsnasamap.c:189
+#, c-format
+msgid "could not create output map file %s!\n"
+msgstr ""
+
+#. g_signal_connect (window, "destroy",
+#. G_CALLBACK (gtk_widget_destroyed), &window);
+#: src/gpsnasamap.c:204
+msgid "Creating map..."
+msgstr ""
+
+#: src/gpsnasamap.c:212
+msgid "Creating a temporary map from NASA satellite images"
+msgstr ""
+
+#: src/gpsnasamap.c:219
+#, c-format
+msgid "converting map for latitude: %f and longitude: %f ...\n"
+msgstr ""
+
+#: src/gpsnasamap.c:324
+msgid ""
+"\n"
+"You can permanently add this map file with following line in your\n"
+"map_koord.txt (rename the file!):\n"
+msgstr ""
+
+#: src/gpsserial.c:252
+msgid "waiting for thread to stop\n"
+msgstr ""
+
+#: src/gpsserial.c:275
+#, c-format
+msgid ""
+"\n"
+"error opening %s(%d)\n"
+msgstr ""
+
+#: src/gpsserial.c:278
+#, c-format
+msgid "successfull opened %s\n"
+msgstr ""
+
+#: src/gpsserial.c:284
+msgid "switching WAAS/EGNOS on\n"
+msgstr ""
+
+#: src/gpsserial.c:290
+msgid "switching WAAS/EGNOS off\n"
+msgstr ""
+
+#~ msgid "Set Mapblast as default download server"
+#~ msgstr "Nastavi» Mapblast ako ¹tandardný server pre s»ahovanie"
+
+#~ msgid "Enable?"
+#~ msgstr "Povoli»?"
+
+#~ msgid "Sat level"
+#~ msgstr "Sat úroveò"
+
+#, fuzzy
+#~ msgid "Simulation"
+#~ msgstr "Simulaèný re¾im"
+
+#, fuzzy
+#~ msgid "Sim.mode"
+#~ msgstr "Simulaèný re¾im"
+
+#~ msgid "Yes, please start gpsd"
+#~ msgstr "Áno, spustite prosím gpsd"
+
+#~ msgid "No, start simulation"
+#~ msgstr "Nie, spustite simuláciu"
+
+#~ msgid ""
+#~ "Neither gpsd nor GARMIN device detected!\n"
+#~ "Should I start gpsd (NMEA mode) for you?"
+#~ msgstr ""
+#~ "Nebolo detekované ani gpsd ani GARMIN zariadenie!\n"
+#~ "Mám spusti» gpsd (v re¾ime NMEA)?"
+
+#~ msgid "-n X  Select display name on friends server, X is i.e. Fritz\n"
+#~ msgstr ""
+#~ "-n X  Výber zobrazenia mena na priateµskom servery, t.j X je Fritz\n"
+
+#~ msgid "UTC "
+#~ msgstr "UTC "
+
+#, fuzzy
+#~ msgid "Your friendsserver: %s"
+#~ msgstr ""
+#~ "\n"
+#~ "nájdený kismet server\n"
+
+#~ msgid "Cancel"
+#~ msgstr "Zru¹i»"
+
+#, fuzzy
+#~ msgid "/Misc. Menu/Maps"
+#~ msgstr "Výber súboru so stopou"
+
+#~ msgid "Import"
+#~ msgstr "Import"
+
+#~ msgid "Let you import and calibrate your own map"
+#~ msgstr "Dovolí vám importova» a kalibrova» va¹u vlastnú mapu"
+
+#~ msgid ""
+#~ "Left mouse button         : Set position (usefull in simulation mode)\n"
+#~ msgstr ""
+#~ "¥avé tlaèítko my¹i        : Nastaví pozíciu (u¾itoène v simulaènom móde)\n"
+
+#~ msgid "Right mouse button        : Set target directly on the map\n"
+#~ msgstr "Pravé tlaèítko my¹i       : Nastaví cieµ priamo na mape\n"
+
+#~ msgid "Middle mouse button       : Display position again\n"
+#~ msgstr "Stredné tlaèítko my¹i     : Opä» zobrazí pozíciu\n"
+
+#~ msgid "Shift left mouse button   : smaller map\n"
+#~ msgstr "Shift µavé tlaèítko my¹i  : zmen¹í mapu\n"
+
+#~ msgid "Shift right mouse button  : larger map\n"
+#~ msgstr "Shift pravé tlaèítko my¹i : zväè¹í mapu\n"
+
+#~ msgid ""
+#~ "Control left mouse button : Set a waypoint (mouse position) on the map\n"
+#~ msgstr ""
+#~ "Control µavé tlaèítko my¹i: Nastaví bod cesty (pozícia my¹i) na mape\n"
+
+#~ msgid ""
+#~ "Control right mouse button: Set a waypoint at current position on the "
+#~ "map\n"
+#~ "\n"
+#~ msgstr ""
+#~ "Control pravé tlaèítko my¹i: Nastaví bod cesty na aktuálnu pozíciu na "
+#~ "mape\n"
+
+#~ msgid "j    : switch to next waypoint in route mode\n"
+#~ msgstr "j    : prepne na nasledujúci bod cesty v cestovnom re¾ime\n"
+
+#, fuzzy
+#~ msgid "x    : add waypoint at current position\n"
+#~ msgstr ""
+#~ "x    : pridá bod cesty na aktuálnej pozícií\n"
+#~ "\n"
+
+#, fuzzy
+#~ msgid ""
+#~ "y    : add waypoint at mouse cursor position\n"
+#~ "\n"
+#~ msgstr ""
+#~ "x    : pridá bod cesty na aktuálnej pozícií\n"
+#~ "\n"
+
+#~ msgid ""
+#~ "Suggestions welcome!\n"
+#~ "\n"
+#~ msgstr ""
+#~ "Návrhy sú vítané!\n"
+#~ "\n"
+
+#, fuzzy
+#~ msgid "/Operations Menu"
+#~ msgstr "Výber súboru so stopou"
+
+#, fuzzy
+#~ msgid "/ Messages"
+#~ msgstr "  Správa  "
+
+#, fuzzy
+#~ msgid "/ Help"
+#~ msgstr "Pomocník"
+
+#~ msgid "Load and display a previous stored track file"
+#~ msgstr "Naèíta a zobrazí predchádzajúci ulo¾ený súbor so stopou"
+
+#~ msgid "Distance to "
+#~ msgstr "Vzdialenos» k"
+
+#, fuzzy
+#~ msgid "Sel:"
+#~ msgstr "Vybra» cieµ"
+
+#, fuzzy
+#~ msgid "Time"
+#~ msgstr "Èasová zóna"
+
+#~ msgid "Friendsicon loaded"
+#~ msgstr "Friendsicon naèítaný"
+
+#~ msgid "Menu window"
+#~ msgstr "Ponuka"
+
+#~ msgid "Status window"
+#~ msgstr "Stav"
+
+#, fuzzy
+#~ msgid "can't open socket for friendsserver "
+#~ msgstr "nie je mo¾né otvori» soket pre port "
+
+#~ msgid "Slow CPU"
+#~ msgstr "Pomalé CPU"
+
+#~ msgid ""
+#~ "Select, if your CPU is very slow ( < PII MMX/233MHz). This reduces the "
+#~ "framerate to 1 frame/second."
+#~ msgstr ""
+#~ "Oznaète, ak máte veµmi pomalé CPU ( < PII MMX/233MHz). Frekvencia snímok "
+#~ "sa zní¾i na 1 za sekundu."
+
+#~ msgid "UTC (GPS)"
+#~ msgstr "UTC (GPS)"
+
+#~ msgid "Ok"
+#~ msgstr "OK"
+
+#~ msgid "Delete WP"
+#~ msgstr "Zmaza» BT"
+
+#~ msgid ""
+#~ "GpsDrive Help\n"
+#~ "\n"
+#~ msgstr ""
+#~ "GpsDrive pomocník\n"
+#~ "\n"
+
+#, fuzzy
+#~ msgid ""
+#~ "GPSDRIVE (c) 2001-2003 Fritz Ganter <ganter at ganter.at>\n"
+#~ "\n"
+#~ msgstr ""
+#~ "GPSDRIVE (c) 2001,2002 Fritz Ganter <ganter at ganter.at>\n"
+#~ "\n"
+
+#~ msgid "Website: www.kraftvoll.at/software\n"
+#~ msgstr "Websídlo: www.kraftvoll.at/software\n"
+
+#~ msgid "+    : Zoom in\n"
+#~ msgstr "+    : Zväè¹i»\n"
+
+#~ msgid "-    : Zoom out\n"
+#~ msgstr "-    : Zmen¹i»\n"
+
+#~ msgid "s    : larger map\n"
+#~ msgstr "s    : zväè¹enie mapy\n"
+
+#~ msgid "a    : smaller map\n"
+#~ msgstr "a    : zmen¹enie mapy\n"
+
+#~ msgid "t    : select target\n"
+#~ msgstr "t    : Vybra» cieµ\n"
+
+#~ msgid "d    : download map\n"
+#~ msgstr "d    : Stiahnu» mapu\n"
+
+#~ msgid "l    : load track\n"
+#~ msgstr "l    :Naèíta» stopu\n"
+
+#~ msgid "h    : show help\n"
+#~ msgstr "h    : zobrazí pomocníka\n"
+
+#~ msgid "q    : quit program\n"
+#~ msgstr "q    : ukonèenie programu\n"
+
+#~ msgid "b    : toggle auto best map\n"
+#~ msgstr "b    : automatické prepnutie do najlep¹ej mapy\n"
+
+#~ msgid "w    : toggle show waypoints\n"
+#~ msgstr "w    : prepnutie zobrazovania bodov cesty\n"
+
+#~ msgid "o    : toggle show tracks\n"
+#~ msgstr "o    : prepnutie zobrazovania stôp\n"
+
+#~ msgid "u    : enter setup menu\n"
+#~ msgstr "u    : vstup do ponuky nastavenia\n"
+
+#~ msgid "n    : in nightmode: toogles night display on/off\n"
+#~ msgstr "n    : v noènom re¾ime: prepínanie noèného zobrazenia\n"
+
+#~ msgid "   Ok   "
+#~ msgstr "   OK   "
+
+#~ msgid "Close"
+#~ msgstr "Zavrie»"
+
+#~ msgid "OK"
+#~ msgstr "OK"
+
+#~ msgid "Quit"
+#~ msgstr "Koniec"
+
+#~ msgid "Load track"
+#~ msgstr "Naèíta» stopu"
+
+#~ msgid "Setup"
+#~ msgstr "Nastavenie"
+
+#~ msgid "No GPS Fix found!"
+#~ msgstr "Nebola nájdená GPS pozícia!"
+
+#~ msgid ""
+#~ "GpsDrive Help\n"
+#~ "\n"
+#~ "GPSDRIVE (c) 2001,2002 Fritz Ganter <ganter at ganter.at>\n"
+#~ "\n"
+#~ "-------------------------------------------------\n"
+#~ "Website: www.kraftvoll.at/software\n"
+#~ "Disclaimer: Please do not use for navigation. \n"
+#~ "\n"
+#~ "*************************************************\n"
+#~ "\n"
+#~ "See the manpage for program details\n"
+#~ "\n"
+#~ "Mouse control (clicking on the map):\n"
+#~ "===================================\n"
+#~ "Left mouse button         : Set position (usefull in simulation mode)\n"
+#~ "Right mouse button        : Set target directly on the map\n"
+#~ "Middle mouse button       : Display position again\n"
+#~ "Shift left mouse button   : smaller map\n"
+#~ "Shift right mouse button  : larger map\n"
+#~ "Control left mouse button : Set a waypoint (mouse position) on the map\n"
+#~ "Control right mouse button: Set a waypoint at current position on the "
+#~ "map\n"
+#~ "\n"
+#~ "Short cuts:\n"
+#~ "===================================\n"
+#~ "+                         : Zoom in\n"
+#~ "-                         : Zoom out\n"
+#~ "s                         : larger map\n"
+#~ "a                         : smaller map\n"
+#~ "t                         : select target\n"
+#~ "d                         : download map\n"
+#~ "i                         : import map\n"
+#~ "l                         : load track\n"
+#~ "h                         : show help\n"
+#~ "q                         : quit program\n"
+#~ "b                         : toggle auto best map\n"
+#~ "w                         : toggle show waypoints\n"
+#~ "o                         : toggle show tracks\n"
+#~ "u                         : enter setup menu\n"
+#~ "n                         : in nightmode: toogles night display on/off\n"
+#~ "p                         : switch to position mode\n"
+#~ "x                         : add waypoint at current position\n"
+#~ "\n"
+#~ "Suggestions welcome!\n"
+#~ "\n"
+#~ "Have a lot of fun!\n"
+#~ "\n"
+#~ msgstr ""
+#~ "Pomocník ku GpsDrive\n"
+#~ "\n"
+#~ "GPSDRIVE (c) 2001,2002 Fritz Ganter <ganter at ganter.at>\n"
+#~ "\n"
+#~ "-------------------------------------------------\n"
+#~ "Website: www.kraftvoll.at/software\n"
+#~ "Disclaimer: Nepou¾ívajte prosím na navigáciu. \n"
+#~ "\n"
+#~ "*************************************************\n"
+#~ "\n"
+#~ "Pozrite si manuálovú stránku, kde je viac detailov\n"
+#~ "\n"
+#~ "Ovládanie my¹ou (kliknutím na mapu):\n"
+#~ "===================================\n"
+#~ "¥avé tlaèítko my¹i        : Nastaví pozíciu (u¾itoèné v simulaènom "
+#~ "re¾ime)\n"
+#~ "Pravé tlaèítko my¹i       : Nastaví cieµ priamo na mape\n"
+#~ "Stredné tlaèítko my¹i     : Opä» zobrazí pozíciu\n"
+#~ "Shift+µavé tlaèítko my¹i  : men¹ia mapa\n"
+#~ "Shift+pravé tlaèítko my¹i : väè¹ia mapa\n"
+#~ "Ctrl+µavé tlaèítko my¹i   : Nastavi» bod trasy (pozícia my¹i) na mape\n"
+#~ "Ctrl+pravé tlaèítko my¹i  : Nastavi» bod trasy na aktuálnej pozícií na "
+#~ "mape\n"
+#~ "\n"
+#~ "Klávesové skratky:\n"
+#~ "===================================\n"
+#~ "+                         : zväè¹enie\n"
+#~ "-                         : zmen¹enie\n"
+#~ "s                         : väè¹ia mapa\n"
+#~ "a                         : men¹ia mapa\n"
+#~ "t                         : výber cieµa\n"
+#~ "d                         : stiahnutie mapy\n"
+#~ "i                         : import mapy\n"
+#~ "l                         : naèítanie stopy\n"
+#~ "h                         : zobrazí pomocníka\n"
+#~ "q                         : ukonèí program\n"
+#~ "b                         : prepne auto najlep¹iu mapu\n"
+#~ "w                         : prepne zobrazenie bodov trasy\n"
+#~ "o                         : prepne zobrazenie stopy\n"
+#~ "u                         : vstúpi do ponuky nastavenie\n"
+#~ "n                         : v noènom re¾ime: prepína zapnutie/vypnutie "
+#~ "noèného zobrazenia\n"
+#~ "p                         : prepína pozièný mód\n"
+#~ "x                         : pridá bod trasy z aktuálnej pozície\n"
+#~ "\n"
+#~ "Návrhy sú vítané!\n"
+#~ "\n"
+#~ "Veµa zábavy!\n"
+#~ "\n"

Added: packages/gpsdrive/branches/etch/po/sv.gmo
===================================================================
(Binary files differ)


Property changes on: packages/gpsdrive/branches/etch/po/sv.gmo
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: packages/gpsdrive/branches/etch/po/sv.po
===================================================================
--- packages/gpsdrive/branches/etch/po/sv.po	                        (rev 0)
+++ packages/gpsdrive/branches/etch/po/sv.po	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,2444 @@
+# translation of sv.po to Deutsch
+# Swedish messages for gpsdrive
+# Copyright (C) 2002,2004 Free Software Foundation, Inc.
+# Martin Sjögren <md9ms at mdstud.chalmers.se>, 2002.
+# Fritz Ganter <ganter at ganter.at>, 2004
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: sv\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-03-03 21:47+0100\n"
+"PO-Revision-Date: 2004-01-25 00:27+0100\n"
+"Last-Translator: Fritz Ganter <ganter at ganter.at>\n"
+"Language-Team: Deutsch <de at li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.0.1\n"
+
+#: src/gpsdrive.c:2179
+msgid "/_Misc. Menu"
+msgstr ""
+
+#: src/gpsdrive.c:2180
+msgid "/_Misc. Menu/Maps"
+msgstr ""
+
+#: src/gpsdrive.c:2181
+#, fuzzy
+msgid "/_Misc. Menu/Maps/_Import map"
+msgstr "i    : importera karta\n"
+
+#: src/gpsdrive.c:2185
+msgid "/_Misc. Menu/Maps/_Map Manager"
+msgstr ""
+
+#: src/gpsdrive.c:2187
+msgid "/_Misc. Menu/_Waypoint Manager"
+msgstr ""
+
+#: src/gpsdrive.c:2189
+#, fuzzy
+msgid "/_Misc. Menu/_Load track file"
+msgstr "Välj en spårfil"
+
+#: src/gpsdrive.c:2193
+#, fuzzy
+msgid "/_Misc. Menu/Messages"
+msgstr "Välj en spårfil"
+
+#: src/gpsdrive.c:2194
+msgid "/_Misc. Menu/Messages/Send message to mobile target"
+msgstr ""
+
+#: src/gpsdrive.c:2199
+msgid "/_Misc. Menu/Help"
+msgstr ""
+
+#: src/gpsdrive.c:2200
+msgid "/_Misc. Menu/Help/About"
+msgstr ""
+
+#: src/gpsdrive.c:2202
+msgid "/_Misc. Menu/Help/Topics"
+msgstr ""
+
+#: src/gpsdrive.c:2271
+msgid "  Message  "
+msgstr "  Meddelande  "
+
+#: src/gpsdrive.c:2315 src/gpsdrive.c:12145
+#, fuzzy
+msgid "Stop GPSD"
+msgstr "Starta GPSD"
+
+#: src/gpsdrive.c:2317 src/gpsdrive.c:12147
+#, fuzzy
+msgid "Stop GPSD and switch to simulation mode"
+msgstr "p    : växla till positionsläge\n"
+
+#: src/gpsdrive.c:2339 src/gpsdrive.c:11261
+msgid "Start GPSD"
+msgstr "Starta GPSD"
+
+#: src/gpsdrive.c:2341 src/gpsdrive.c:12153
+msgid "Starts GPSD for NMEA mode"
+msgstr "Startar GPSD för NMEA-läge"
+
+#. displays zoom factor of map
+#: src/gpsdrive.c:2354 src/gpsdrive.c:2355 src/gpsdrive.c:2356
+#: src/gpsdrive.c:6264 src/gpsdrive.c:6273 src/gpsdrive.c:11484
+#: src/gpsdrive.c:11491 src/gpsdrive.c:11498 src/gpsdrive.c:11555
+#: src/gpsdrive.c:11560 src/gpsdrive.c:11566 src/gpsdrive.c:11602
+#: src/gpsdrive.c:11609 src/settings.c:1425 src/settings.c:1434
+#: src/settings.c:1443 src/settings.c:1468 src/settings.c:1478
+#: src/settings.c:1487 src/settings.c:1498 src/settings.c:1507
+#: src/settings.c:1517
+msgid "n/a"
+msgstr "-"
+
+#: src/gpsdrive.c:2366 src/gpsdrive.c:10245
+msgid ""
+"\n"
+"no garmin support compiled in\n"
+msgstr ""
+"\n"
+"inget garmin-stöd inkompilerat\n"
+
+#: src/gpsdrive.c:2387 src/gpsdrive.c:3136
+msgid "Simulation mode"
+msgstr "Simuleringsläge"
+
+#: src/gpsdrive.c:2409
+msgid "got RMC data, using it\n"
+msgstr ""
+
+#: src/gpsdrive.c:2498 src/gpsdrive.c:11936
+msgid "Map"
+msgstr "Karta"
+
+#. if (debug)
+#: src/gpsdrive.c:2661
+msgid "got no RMC data, using GGA data\n"
+msgstr ""
+
+#: src/gpsdrive.c:2912
+msgid "Timeout getting data from GPS-Receiver!"
+msgstr "Gjorde time-out vid väntan på data från GPS-mottagaren!"
+
+#: src/gpsdrive.c:2959 src/gpsdrive.c:3008 src/gpsdrive.c:3113
+#: src/gpsdrive.c:3199 src/gpsdrive.c:3324
+msgid "Press middle mouse button for navigation"
+msgstr "Tryck på mittenknappen på musen för navigering"
+
+#: src/gpsdrive.c:2963
+#, fuzzy, c-format
+msgid "Direct serial connection to %s"
+msgstr "Ansluter till %s"
+
+#: src/gpsdrive.c:3013 src/gpsdrive.c:3045 src/gpsdrive.c:3205
+#: src/gpsdrive.c:3330
+msgid "Not enough satellites in view!"
+msgstr "Inte tillräckligt många satelliter i sikte!"
+
+#: src/gpsdrive.c:3117
+msgid "GARMIN Mode"
+msgstr "GARMIN-läge"
+
+#: src/gpsdrive.c:3134
+msgid "No GPS used"
+msgstr "Ingen GPS används"
+
+#: src/gpsdrive.c:3138
+msgid "Press middle mouse button for sim mode"
+msgstr "Tryck på mittenknappen på musen för simuleringsläge"
+
+#: src/gpsdrive.c:3477
+#, c-format
+msgid "Distance to HomeBase: %.1fkm, max. allowed: %.1fkm\n"
+msgstr ""
+
+#: src/gpsdrive.c:3554 src/gpsdrive.c:3784 src/gpsdrive.c:6665
+#: src/gpsdrive.c:8534 src/gpsdrive.c:9000
+msgid "To"
+msgstr ""
+
+#: src/gpsdrive.c:3866
+msgid "Error in line "
+msgstr "Fel på rad "
+
+#: src/gpsdrive.c:3868
+msgid ""
+"I have found filenames in map_koord.txt which are\n"
+"not map_* or top_* files. Please rename them and change the entries in\n"
+"map_koord.txt.  Use map_* for street maps and top_* for topographical\n"
+"maps.  Otherwise, the maps will not be displayed!"
+msgstr ""
+"Jag har hittat filnamn i map_koord.txt som inte är\n"
+"map_*- eller top_*-filer. Byt namn på dem och ändra posterna i\n"
+"map_koord.txt. Använd map_* för vägkartor och top_* för topografiska\n"
+"kartor. Annars kommer inte kartorna visas!"
+
+#: src/gpsdrive.c:4229
+msgid "Auto"
+msgstr "Auto"
+
+#: src/gpsdrive.c:4440
+#, fuzzy
+msgid "Warning!"
+msgstr "Riktning"
+
+#: src/gpsdrive.c:4441
+msgid "You should not start GpsDrive as user root!!!"
+msgstr ""
+
+#: src/gpsdrive.c:4756 src/gpsdrive.c:8145 src/gpsdrive.c:8154
+#: src/gpsdrive.c:11661 src/gpsdrive.c:11670
+msgid "mi/h"
+msgstr "eng. mil/h"
+
+#: src/gpsdrive.c:4758 src/gpsdrive.c:8147 src/gpsdrive.c:8156
+#: src/gpsdrive.c:11663 src/gpsdrive.c:11672
+msgid "knots"
+msgstr "knop"
+
+#: src/gpsdrive.c:4760 src/gpsdrive.c:8149 src/gpsdrive.c:8158
+#: src/gpsdrive.c:11665 src/gpsdrive.c:11674
+msgid "km/h"
+msgstr "km/h"
+
+#: src/gpsdrive.c:5088
+msgid ""
+"\n"
+"Warning: unable to load gpsdriveanim.gif!\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+
+#. This string means North,East,South,West -- please translate the letters
+#: src/gpsdrive.c:5896
+msgid "NESW"
+msgstr "NÖSV"
+
+#: src/gpsdrive.c:6064
+msgid "No map available for this position!"
+msgstr "Ingen karta tillgänglig för den här positionen!"
+
+#: src/gpsdrive.c:6258
+#, fuzzy
+msgid "unused"
+msgstr "Solnedgång"
+
+#: src/gpsdrive.c:6362
+msgid "can't open NMEA output file"
+msgstr "kan inte öppna NMEA-utdatafil"
+
+#: src/gpsdrive.c:6473
+msgid " Mapfile could not be loaded:"
+msgstr " Kartfilen kunde inte laddas:"
+
+#: src/gpsdrive.c:6517
+msgid "Map found!"
+msgstr ""
+
+#: src/gpsdrive.c:6552
+msgid " Friendsicon could not be loaded:"
+msgstr " Friendsicon kunde inte laddas:"
+
+#: src/gpsdrive.c:6555
+msgid ""
+"\n"
+"Warning: unable to load friendsicon!\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+
+#: src/gpsdrive.c:6843
+msgid "Select coordinates and scale"
+msgstr "Välj koordinater och skala"
+
+#: src/gpsdrive.c:6846
+msgid "Download map"
+msgstr "Hämta karta"
+
+#: src/gpsdrive.c:6872 src/gpsdrive.c:7911 src/gpsdrive.c:9209
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/gpsdrive.c:11792
+msgid "Latitude"
+msgstr "Latitud"
+
+#: src/gpsdrive.c:6874 src/gpsdrive.c:7913 src/gpsdrive.c:9203
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/gpsdrive.c:11793
+msgid "Longitude"
+msgstr "Longitud"
+
+#: src/gpsdrive.c:6876
+msgid "Map covers"
+msgstr "Kartomslag"
+
+#: src/gpsdrive.c:6880
+msgid "Scale"
+msgstr "Skala"
+
+#: src/gpsdrive.c:6882
+msgid "Map file name"
+msgstr "Kartfilnamn"
+
+#: src/gpsdrive.c:6922 src/settings.c:958
+msgid "Expedia Germany"
+msgstr ""
+
+#: src/gpsdrive.c:6928 src/settings.c:964
+msgid "Expedia USA"
+msgstr ""
+
+#: src/gpsdrive.c:6934
+msgid "TopoZone(US Only)"
+msgstr ""
+
+#: src/gpsdrive.c:6943
+msgid ""
+"If selected, you download the map from the german expedia server (expedia.de)"
+msgstr ""
+
+#: src/gpsdrive.c:6947
+msgid ""
+"If selected, you download the map from the U.S. expedia server (expedia.com)"
+msgstr ""
+
+#: src/gpsdrive.c:6951
+msgid ""
+"If selected, you download the map from the TopoZone Server (US maps only)"
+msgstr ""
+
+#: src/gpsdrive.c:6977 src/gpsdrive.c:6981
+msgid ""
+"You can also select the position\n"
+"with a mouse click on the map."
+msgstr ""
+"Du kan också välja positionen\n"
+"med ett musklick på kartan."
+
+#: src/gpsdrive.c:6983
+msgid "Using Proxy and port:"
+msgstr "Använder proxyserver och port:"
+
+#: src/gpsdrive.c:7280 src/gpsdrive.c:7397
+msgid "can't open socket for port 80"
+msgstr "kan inte öppna uttag (socket) för port 80"
+
+#: src/gpsdrive.c:7282 src/gpsdrive.c:7285 src/gpsdrive.c:7309
+#: src/gpsdrive.c:7312 src/gpsdrive.c:7327 src/gpsdrive.c:7330
+#: src/gpsdrive.c:7399 src/gpsdrive.c:7404 src/gpsdrive.c:7407
+#: src/gpsdrive.c:7411 src/gpsdrive.c:7446 src/gpsdrive.c:7451
+#: src/gpsdrive.c:7454 src/gpsdrive.c:7458 src/gpsdrive.c:7473
+#: src/gpsdrive.c:7478 src/gpsdrive.c:7481 src/gpsdrive.c:7485
+#, c-format
+msgid "Connecting to %s FAILED!"
+msgstr "Anslutning till %s MISSLYCKADES!"
+
+#: src/gpsdrive.c:7307 src/gpsdrive.c:7444
+msgid "Can't resolve webserver address"
+msgstr "Kan inte slå upp webbserverns adress"
+
+#: src/gpsdrive.c:7325 src/gpsdrive.c:7471
+msgid "unable to connect to Website"
+msgstr "kunde inte ansluta till webbplatsen"
+
+#: src/gpsdrive.c:7353 src/gpsdrive.c:7542
+msgid "read from Webserver"
+msgstr "läsning från webbserver"
+
+#: src/gpsdrive.c:7380 src/gpsdrive.c:7384 src/gpsdrive.c:7386
+#: src/gpsdrive.c:7389
+#, c-format
+msgid "Connecting to %s"
+msgstr "Ansluter till %s"
+
+#: src/gpsdrive.c:7499 src/gpsdrive.c:7503 src/gpsdrive.c:7505
+#: src/gpsdrive.c:7508
+#, c-format
+msgid "Now connected to %s"
+msgstr "Ansluten till %s"
+
+#: src/gpsdrive.c:7585
+#, c-format
+msgid "Downloaded %d kBytes"
+msgstr "Hämtade %d kilobyte"
+
+#: src/gpsdrive.c:7599
+msgid "Download FAILED!"
+msgstr "Hämtning MISSLYCKADES!"
+
+#: src/gpsdrive.c:7601
+#, c-format
+msgid "Download finished, got %dkB"
+msgstr "Hämtning klar, fick %d kB"
+
+#: src/gpsdrive.c:7772
+msgid "Select a map file"
+msgstr "Välj en kartfil"
+
+#: src/gpsdrive.c:7837
+msgid ""
+"How to calibrate your own maps? First, the map file\n"
+"must be copied into the"
+msgstr ""
+
+#: src/gpsdrive.c:7839
+#, fuzzy
+msgid ""
+"\n"
+"directory as .gif, .jpg or .png file and must have\n"
+"the size 1280x1024. The file names must be\n"
+"map_* for street maps or top_* for topographical maps!\n"
+"Load the file, select coordinates from waypoint list or\n"
+"type them in. Then click on the accept button."
+msgstr ""
+"Hur kalibrerar man egna kartor?\n"
+"\n"
+"Först måste kartfilen kopieras till katalogen ~/.gpsdrive som en .gif-, ."
+"jpg- eller .png-fil och den måste ha storleken 1280×1024. Filnamnen måste "
+"vara map_* för vägkartor eller top_* för topografiska kartor!\n"
+"Ladda filen, välj koordinater\n"
+"från vägpunktslistan eller skriv in dem.\n"
+"Klicka sedan på Acceptera-knappen."
+
+#: src/gpsdrive.c:7846
+#, fuzzy
+msgid ""
+"Now do the same for your second point and click on the\n"
+"finish button. The map can be used now."
+msgstr ""
+"Gör nu likadant för din andra punkt och klicka på Slutför-knappen. Kartan "
+"kan nu användas."
+
+#: src/gpsdrive.c:7851
+msgid "Import Assistant. Step 1"
+msgstr "Importassistent. Steg 1"
+
+#: src/gpsdrive.c:7853
+msgid "Import Assistant. Step 2"
+msgstr "Importassistent. Steg 2"
+
+#: src/gpsdrive.c:7858
+msgid "Accept first point"
+msgstr "Acceptera första punkt"
+
+#: src/gpsdrive.c:7860
+msgid "Finish"
+msgstr "Slutför"
+
+#: src/gpsdrive.c:7881
+msgid "Go up"
+msgstr "Gå uppåt"
+
+#: src/gpsdrive.c:7884
+msgid "Go left"
+msgstr "Gå åt vänster"
+
+#: src/gpsdrive.c:7887
+msgid "Go right"
+msgstr "Gå åt höger"
+
+#: src/gpsdrive.c:7890
+msgid "Go down"
+msgstr "Gå nedåt"
+
+#: src/gpsdrive.c:7893
+msgid "Zoom in"
+msgstr "Zooma in"
+
+#: src/gpsdrive.c:7896
+msgid "Zoom out"
+msgstr "Zooma ut"
+
+#: src/gpsdrive.c:7915
+msgid "Screen X"
+msgstr "Skärm-X"
+
+#: src/gpsdrive.c:7917
+msgid "Screen Y"
+msgstr "Skärm-Y"
+
+#: src/gpsdrive.c:7919
+msgid "Browse waypoint"
+msgstr "Bläddra bland vägpunkter"
+
+#: src/gpsdrive.c:7950
+msgid "Browse filename"
+msgstr "Bläddra bland filnamn"
+
+#: src/gpsdrive.c:8043
+msgid "GpsDrive Control"
+msgstr "GpsDrive-meny"
+
+#: src/gpsdrive.c:8154 src/gpsdrive.c:8156 src/gpsdrive.c:8158
+#: src/gpsdrive.c:11670 src/gpsdrive.c:11672 src/gpsdrive.c:11674
+#: src/settings.c:1025
+msgid "Speed"
+msgstr "Fart"
+
+#: src/gpsdrive.c:8375
+msgid ""
+"\n"
+"distance jump is more then 1000km/h speed, ignoring\n"
+msgstr ""
+
+#: src/gpsdrive.c:8597 src/friends.c:348
+#, fuzzy
+msgid "/Misc. Menu/Messages"
+msgstr "Välj en spårfil"
+
+#: src/gpsdrive.c:8600
+msgid "Sending message to friends server..."
+msgstr ""
+
+#: src/gpsdrive.c:8673
+#, fuzzy
+msgid "Message for:"
+msgstr "  Meddelande  "
+
+#: src/gpsdrive.c:8714
+#, c-format
+msgid "Date: %s"
+msgstr ""
+
+#: src/gpsdrive.c:8727
+msgid "Sends your text to to selected computer using the friends server"
+msgstr ""
+
+#: src/gpsdrive.c:8999
+msgid "SELECTED"
+msgstr "VALD"
+
+#: src/gpsdrive.c:9172
+msgid "Add waypoint name"
+msgstr "Lägg till vägpunktsnamn"
+
+#: src/gpsdrive.c:9231
+msgid " Waypoint name: "
+msgstr " Vägpunktsnamn: "
+
+#: src/gpsdrive.c:9244
+#, fuzzy
+msgid " Waypoint type: "
+msgstr " Vägpunktsnamn: "
+
+#: src/gpsdrive.c:9489
+msgid "Name"
+msgstr ""
+
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/settings.c:1018
+msgid "Distance"
+msgstr "Avstånd"
+
+#: src/gpsdrive.c:9499
+#, fuzzy
+msgid "Please select message recipient"
+msgstr "Välj din destination"
+
+#: src/gpsdrive.c:9568 src/gpsdrive.c:9715
+msgid "Waypoint"
+msgstr "Vägpunkt"
+
+#: src/gpsdrive.c:9587
+msgid "Select reference point"
+msgstr "Välj referenspunkt"
+
+#: src/gpsdrive.c:9591
+msgid "Please select your destination"
+msgstr "Välj din destination"
+
+#: src/gpsdrive.c:9620
+msgid "Edit route"
+msgstr "Ändra rutt"
+
+#: src/gpsdrive.c:9622
+msgid "Create route"
+msgstr "Skapa rutt"
+
+#: src/gpsdrive.c:9693
+msgid "Create a route using some waypoints from this list"
+msgstr "Skapa en rutt med några vägpunkter från den här listan"
+
+#: src/gpsdrive.c:9698
+msgid "Delete the selected waypoint from the waypoint list"
+msgstr "Ta bort den valda vägpunkten från vägpunktslistan"
+
+#: src/gpsdrive.c:9702
+#, fuzzy
+msgid "Jump to the selected waypoint"
+msgstr ""
+"Klicka på listelement\n"
+"för att välja nästa vägpunkt"
+
+#: src/gpsdrive.c:9729
+msgid "Define route"
+msgstr "Definiera rutt"
+
+#: src/gpsdrive.c:9737
+msgid "Start route"
+msgstr "Starta rutt"
+
+#: src/gpsdrive.c:9746
+msgid "Take all WP as route"
+msgstr "Ta alla VP som rutt"
+
+#: src/gpsdrive.c:9751
+msgid "Abort route"
+msgstr "Avbryt rutt"
+
+#: src/gpsdrive.c:9795
+msgid ""
+"Click on waypoints list\n"
+"to add waypoints"
+msgstr ""
+"Klicka på vägpunktslistan\n"
+"för att lägga till vägpunkter"
+
+#: src/gpsdrive.c:9797
+msgid ""
+"Click on list item\n"
+"to select next waypoint"
+msgstr ""
+"Klicka på listelement\n"
+"för att välja nästa vägpunkt"
+
+#: src/gpsdrive.c:9838
+msgid ""
+"Create a route from all waypoints. Sorted with order in file, not distance."
+msgstr ""
+"Skapa en rutt från alla vägpunkter. Sorterad efter ordningen i filen, inte "
+"avstånd."
+
+#: src/gpsdrive.c:9842
+msgid ""
+"Click here to start your journey. GpsDrive guides you through the waypoints "
+"in this list."
+msgstr ""
+"Klicka här för att påbörja din resa. GpsDrive leder dig genom vägpunkterna i "
+"den här listan."
+
+#: src/gpsdrive.c:9845
+msgid "Abort your journey"
+msgstr "Avbryt din resa"
+
+#: src/gpsdrive.c:9862
+msgid "-v    show version\n"
+msgstr "-v    visa version\n"
+
+#: src/gpsdrive.c:9863
+msgid "-h    print this help\n"
+msgstr "-h    visa denna hjälptext\n"
+
+#: src/gpsdrive.c:9864
+msgid "-d    turn on debug info\n"
+msgstr "-d    sätt på felsökningsinformation\n"
+
+#: src/gpsdrive.c:9865
+msgid "-D    turn on lot of debug info\n"
+msgstr "-D    sätt på mycket felsökningsinformation\n"
+
+#: src/gpsdrive.c:9866
+msgid "-e    use Festival-Lite (flite) for speech output\n"
+msgstr "-e    använd Festival-Lite (flite) för textuppläsning\n"
+
+#: src/gpsdrive.c:9867
+msgid "-t    set serial device for GPS i.e. /dev/ttyS1\n"
+msgstr "-t    sätt seriell port för GPS t.ex. /dev/ttyS1\n"
+
+#: src/gpsdrive.c:9868
+msgid "-o    serial device, pty master, or file for NMEA *output*\n"
+msgstr "-o    seriell enhet, pty-master, eller fil för NMEA-*utdata*\n"
+
+#: src/gpsdrive.c:9869
+#, fuzzy
+msgid "-f X  Select friends server, X is i.e. www.gpsdrive.cc\n"
+msgstr "-f X  Välj kompisserver, X är t.ex. linux.quant-x.at\n"
+
+#: src/gpsdrive.c:9870
+msgid "-n    Disable use of direct serial connection\n"
+msgstr ""
+
+#: src/gpsdrive.c:9871
+msgid ""
+"-l X  Select language of the voice,\n"
+"      X may be english, spanish or german\n"
+msgstr ""
+"-l X  Välj språk för rösten,\n"
+"      X kan vara \"english\" (engelska), \"spanish\" (spanska) eller\n"
+"      \"german\" (tyska)\n"
+
+#: src/gpsdrive.c:9873
+msgid ""
+"-s X  set height of the screen, if autodetection\n"
+"      don't satisfy you, X is i.e. 768,600,480,200\n"
+msgstr ""
+"-s X  sätt skärmhöjd, om automatisk igenkänning\n"
+"      inte duger. X är t.ex. 768,600,480,200\n"
+
+#. ** Mod by Arms
+#: src/gpsdrive.c:9876
+msgid "-r X  set width of the screen, only with -s\n"
+msgstr "-r X  sätt skärmbredd, bara med -s\n"
+
+#: src/gpsdrive.c:9878
+msgid "-1    have only 1 button mouse, for example using touchscreen\n"
+msgstr "-1    bara enknappsmus, t.ex. för touchscreen\n"
+
+#: src/gpsdrive.c:9879
+msgid "-a    don't display battery status (i.e. broken APM)\n"
+msgstr "-a    visa inte batteristatus (t.ex. trasig APM)\n"
+
+#: src/gpsdrive.c:9881
+msgid "-b X  Servername for NMEA server (if gpsd runs on another host)\n"
+msgstr "-b X  Värdnamn för NMEA-server (om gpsd kör på en annan värd)\n"
+
+#: src/gpsdrive.c:9883
+msgid "-c X  set start position in simulation mode to waypoint name X\n"
+msgstr ""
+"-c X  sätt startpositionen i simuleringsläge till vägpunkten med namn X\n"
+
+#: src/gpsdrive.c:9884
+msgid "-x    create separate window for menu\n"
+msgstr "-x    skapa separat fönster för meny\n"
+
+#: src/gpsdrive.c:9885
+msgid "-p    set settings for PDA (iPAQ, Yopy...)\n"
+msgstr "-p    sätt inställningar för handdator (iPAQ, Yopy...)\n"
+
+#: src/gpsdrive.c:9887
+msgid "-i    ignore NMEA checksum (risky, only for broken GPS receivers\n"
+msgstr ""
+"-i    ignorera NMEA-kontrollsumman (farligt, bara för trasiga GPS-"
+"mottagare)\n"
+
+#: src/gpsdrive.c:9888
+msgid "-q    disable SQL support\n"
+msgstr ""
+
+#: src/gpsdrive.c:9889
+msgid "-F    force display of position even it is invalid\n"
+msgstr ""
+
+#: src/gpsdrive.c:9890
+msgid "-S    don't show splash screen\n"
+msgstr ""
+
+#: src/gpsdrive.c:9891
+msgid "-E    print out data received from direct serial connection\n"
+msgstr ""
+
+#: src/gpsdrive.c:9893
+msgid "-W x  set x to 1 to switch WAAS/EGNOS on, set to 0 to switch off\n"
+msgstr ""
+
+#: src/gpsdrive.c:9894
+msgid "-H X  correct altitude, adding this value to altitude\n"
+msgstr ""
+
+#: src/gpsdrive.c:9895
+msgid ""
+"-z    don't display zoom factor and scale\n"
+"\n"
+msgstr ""
+"-z    visa inte zoomfaktor och skala\n"
+"\n"
+
+#: src/gpsdrive.c:10001
+msgid "Select a track file"
+msgstr "Välj en spårfil"
+
+#: src/gpsdrive.c:10179 src/gpskismet.c:380
+msgid "can't open socket for port "
+msgstr "kan inte öppna uttag (socket) för port "
+
+#: src/gpsdrive.c:10200
+#, c-format
+msgid ""
+"\n"
+"Cannot connect to %s: unknown host\n"
+msgstr ""
+
+#: src/gpsdrive.c:10221
+msgid "NMEA Mode, Port 2222"
+msgstr "NMEA-läge, port 2222"
+
+#: src/gpsdrive.c:10230
+msgid "NMEA Mode, Port 2947"
+msgstr "NMEA-läge, port 2947"
+
+#: src/gpsdrive.c:10249
+msgid ""
+"\n"
+"Garmin protocol detection disabled!\n"
+msgstr ""
+"\n"
+"Igenkänning av Garminprotokoll avstängt!\n"
+
+#: src/gpsdrive.c:10600
+msgid ""
+"\n"
+"libmysqlclient.so not found.\n"
+msgstr ""
+
+#: src/gpsdrive.c:10606
+msgid ""
+"\n"
+"MySQL support disabled.\n"
+msgstr ""
+
+#: src/gpsdrive.c:10783
+msgid ""
+"\n"
+"You can only choose between english, spanish and german\n"
+"\n"
+msgstr ""
+"\n"
+"Du kan bara välja mellan \"english\" (engelska), \"spanish\" (spanska) och "
+"\"german\" (tyska)\n"
+"\n"
+
+#: src/gpsdrive.c:10817 src/settings.c:1730
+#, fuzzy
+msgid "EnterYourName"
+msgstr "Gränssnitt"
+
+#: src/gpsdrive.c:10879
+#, c-format
+msgid ""
+"\n"
+"Using proxy: %s on port %d"
+msgstr ""
+"\n"
+"Använder proxyserver: %s på port %d"
+
+#: src/gpsdrive.c:10883
+msgid ""
+"\n"
+"Invalid enviroment variable HTTP_PROXY, must be in format: http://proxy."
+"provider.de:3128"
+msgstr ""
+"\n"
+"Ogiltig miljövariabel HTTP_PROXY, måste vara på formatet http://proxy."
+"leverantör.se:3128"
+
+#: src/gpsdrive.c:11073
+#, fuzzy
+msgid "Gpsdrive-2 (c)2001-2004 F.Ganter"
+msgstr "© 2001, 2002 F.Ganter"
+
+#: src/gpsdrive.c:11081
+msgid "Using speech output"
+msgstr "Använder talutdata"
+
+#: src/gpsdrive.c:11115
+#, fuzzy
+msgid "/Misc. Menu/Maps/Map Manager"
+msgstr "Välj en spårfil"
+
+#: src/gpsdrive.c:11119
+#, fuzzy
+msgid "/Misc. Menu/Waypoint Manager"
+msgstr "Välj en spårfil"
+
+#. download map button
+#: src/gpsdrive.c:11123
+#, fuzzy
+msgid "_Download map"
+msgstr "Hämta karta"
+
+#: src/gpsdrive.c:11142
+#, fuzzy
+msgid "M_ute"
+msgstr "Tysta"
+
+#: src/gpsdrive.c:11152
+msgid "Use SQ_L"
+msgstr ""
+
+#: src/gpsdrive.c:11162
+#, fuzzy
+msgid "Show _WP"
+msgstr "Visa VP"
+
+#: src/gpsdrive.c:11189
+msgid "HomeBase"
+msgstr ""
+
+#: src/gpsdrive.c:11197
+#, fuzzy
+msgid "Pos. _mode"
+msgstr "Pos.-läge"
+
+#: src/gpsdrive.c:11203
+#, fuzzy
+msgid "Show _Track"
+msgstr "Visa spår"
+
+#: src/gpsdrive.c:11246
+msgid "_Navigation"
+msgstr ""
+
+#: src/gpsdrive.c:11265
+#, fuzzy
+msgid "Auto _best map"
+msgstr "Auto. bäst karta"
+
+#: src/gpsdrive.c:11275
+msgid "Save track"
+msgstr "Spara spår"
+
+#: src/gpsdrive.c:11286
+msgid "Shown map type"
+msgstr "Visad karttyp"
+
+#: src/gpsdrive.c:11297
+msgid "Street map"
+msgstr "Vägkarta"
+
+#: src/gpsdrive.c:11304
+msgid "Topo map"
+msgstr "Topologisk karta"
+
+#: src/gpsdrive.c:11386
+msgid ""
+"\n"
+"kismet server found\n"
+msgstr ""
+
+#: src/gpsdrive.c:11447 src/gpsdrive.c:11797
+msgid "Bearing"
+msgstr "Riktning"
+
+#: src/gpsdrive.c:11468
+#, fuzzy
+msgid "GPS Info"
+msgstr "Geoinfo"
+
+#: src/gpsdrive.c:11519
+msgid "Bat."
+msgstr "Batt."
+
+#: src/gpsdrive.c:11534
+#, fuzzy
+msgid "TC"
+msgstr "UTC "
+
+#. displays speed over ground
+#: src/gpsdrive.c:11552 src/gpsdrive.c:11807 src/gpsdrive.c:11809
+#: src/gpsdrive.c:11815 src/gpsdrive.c:11817
+msgid "---"
+msgstr "---"
+
+#: src/gpsdrive.c:11632 src/gpsdrive.c:11639
+#, fuzzy
+msgid "Selected:"
+msgstr "Välj mål"
+
+#: src/gpsdrive.c:11632 src/gpsdrive.c:11639
+msgid "within"
+msgstr ""
+
+#. create frames for labels
+#: src/gpsdrive.c:11647
+msgid "Distance to target"
+msgstr "Avstånd till målet"
+
+#. ** Mod by Arms
+#. if (!pdamode)
+#. gtk_box_pack_start (GTK_BOX (hbox2), frame_speed, TRUE, TRUE,
+#. 1 * PADDING);
+#: src/gpsdrive.c:11683
+msgid "Altitude"
+msgstr "Höjd"
+
+#. ** Mod by Arms
+#. if (!pdamode)
+#. gtk_box_pack_start (GTK_BOX (hbox2), frame_altitude, FALSE, TRUE,
+#. 1 * PADDING);
+#: src/gpsdrive.c:11690 src/settings.c:681
+msgid "Waypoints"
+msgstr "Vägpunkter"
+
+#: src/gpsdrive.c:11794
+msgid "Map file"
+msgstr "Kartfil"
+
+#: src/gpsdrive.c:11795
+msgid "Map scale"
+msgstr "Kartskala"
+
+#: src/gpsdrive.c:11796
+msgid "Heading"
+msgstr "Kurs"
+
+#: src/gpsdrive.c:11798
+msgid "Time at Dest."
+msgstr "Tid vid mål"
+
+#: src/gpsdrive.c:11799
+msgid "Pref. scale"
+msgstr "Föredragen skala"
+
+#: src/gpsdrive.c:11803
+msgid "000,00000N"
+msgstr ""
+
+#: src/gpsdrive.c:11805
+msgid "000,00000E"
+msgstr ""
+
+#: src/gpsdrive.c:11811 src/gpsdrive.c:11813
+msgid "0000"
+msgstr ""
+
+#. gdk_window_lower((GdkWindow *)menuwin);
+#: src/gpsdrive.c:11886 src/gpsdrive.c:11937
+msgid "Menu"
+msgstr "Meny"
+
+#. gdk_window_lower((GdkWindow *)menuwin2);
+#: src/gpsdrive.c:11895 src/gpsdrive.c:11938
+msgid "Status"
+msgstr "Status"
+
+#: src/gpsdrive.c:12089
+msgid ""
+"Click here to switch betwen satetellite level and satellite position "
+"display. A rotating globe is shown in simulation mode"
+msgstr ""
+
+#: src/gpsdrive.c:12093
+#, fuzzy
+msgid "Number of used satellites/satellites in view"
+msgstr "Inte tillräckligt många satelliter i sikte!"
+
+#: src/gpsdrive.c:12096
+msgid "EPE (Estimated Precision Error), if available"
+msgstr ""
+
+#: src/gpsdrive.c:12100
+msgid ""
+"PDOP (Position Dilution Of Precision). PDOP less than 4 gives the best "
+"accuracy, between 4 and 8 gives acceptable accuracy and greater than 8 gives "
+"unacceptable poor accuracy. "
+msgstr ""
+
+#: src/gpsdrive.c:12105
+msgid ""
+"On top of the compass you see the direction to which you move. The pointer "
+"shows the target direction on the compass."
+msgstr ""
+
+#: src/gpsdrive.c:12108
+msgid "/Misc. Menu"
+msgstr ""
+
+#: src/gpsdrive.c:12111
+msgid "Here you find extra functions for maps, tracks and messages"
+msgstr ""
+
+#: src/gpsdrive.c:12115
+msgid "Download map from Internet"
+msgstr "Hämta karta från Internet"
+
+#: src/gpsdrive.c:12117
+msgid "Leave the program"
+msgstr "Lämna programmet"
+
+#: src/gpsdrive.c:12120
+msgid "Disable output of speech"
+msgstr "Stäng av röstutdata"
+
+#: src/gpsdrive.c:12123
+msgid "Use SQL server for waypoints"
+msgstr ""
+
+#: src/gpsdrive.c:12126
+msgid "Show waypoints on the map"
+msgstr "Visa vägpunkter på kartan"
+
+#: src/gpsdrive.c:12129
+msgid ""
+"Turn position mode on. You can move on the map with the left mouse button "
+"click. Clicking near the border switches to the proximate map."
+msgstr ""
+"Sätt på positionsläge. Du kan flytta på kartan med vänster musknapp. Klickar "
+"du nära kanten flyttas du till den närmaste kartan."
+
+#: src/gpsdrive.c:12132
+msgid "Show tracking on the map"
+msgstr "Visa spår på kartan"
+
+#: src/gpsdrive.c:12137
+msgid "Opens the help window"
+msgstr "Öppnar hjälpfönstret"
+
+#: src/gpsdrive.c:12140
+msgid "Navigation menu. Enter here your destination."
+msgstr ""
+
+#: src/gpsdrive.c:12156
+msgid "Settings for GpsDrive"
+msgstr "Inställningar för GpsDrive"
+
+#: src/gpsdrive.c:12158
+msgid "Zoom into the current map"
+msgstr "Zooma in i den nuvarande kartan"
+
+#: src/gpsdrive.c:12160
+msgid "Zooms out off the current map"
+msgstr "Zooma ut ur den nuvarande kartan"
+
+#: src/gpsdrive.c:12162
+msgid "Select the next more detailed map"
+msgstr "Välj nästa mer detaljerade karta"
+
+#: src/gpsdrive.c:12164
+msgid "Select the next less detailed map"
+msgstr "Välj nästa mindre detaljerade karta"
+
+#: src/gpsdrive.c:12169
+msgid "Select here a destination from the waypoint list"
+msgstr "Välj en destination från listan med vägpunkter"
+
+#: src/gpsdrive.c:12173
+msgid "Select the map scale of avail. maps."
+msgstr "Välj skala på tillgängliga kartor."
+
+#: src/gpsdrive.c:12178
+msgid "Always select the most detailed map available"
+msgstr "Välj alltid den mest detaljerade tillgängliga kartan"
+
+#: src/gpsdrive.c:12181
+msgid "Save the track to given filename at program exit"
+msgstr "Spara spåret till givet filnamn vid programslut"
+
+#: src/gpsdrive.c:12187
+msgid "Number of waypoints selected from SQL server"
+msgstr ""
+
+#: src/gpsdrive.c:12191
+msgid "Number of selected waypoints, which are in range"
+msgstr ""
+
+#: src/gpsdrive.c:12195
+msgid "Range for waypoint selection in kilometers"
+msgstr ""
+
+#: src/gpsdrive.c:12198
+msgid "This shows the time from your GPS receiver"
+msgstr ""
+
+#: src/gpsdrive.c:12201
+msgid ""
+"Number of mobile targets within timeframe/total received from friendsserver"
+msgstr ""
+
+#: src/gpsdrive.c:12275
+msgid ""
+"\n"
+"\n"
+"Thank you for using GpsDrive!\n"
+"\n"
+msgstr ""
+"\n"
+"\n"
+"Tack för att du använder GpsDrive!\n"
+"\n"
+
+#: src/splash.c:543
+#, fuzzy
+msgid "GpsDrive v"
+msgstr "GpsDrive-hjälp"
+
+#: src/splash.c:549
+msgid ""
+"\n"
+"\n"
+"You find new versions on http://www.gpsdrive.cc\n"
+msgstr ""
+
+#: src/splash.c:553
+msgid ""
+"Disclaimer: Please do not use for navigation. \n"
+"\n"
+msgstr ""
+"Använd inte för navigation.\n"
+"\n"
+
+#: src/splash.c:558
+#, fuzzy
+msgid "Please have a look into the manpage (man gpsdrive) for program details!"
+msgstr ""
+"See manualbladet för detaljer om programmet\n"
+"\n"
+
+#: src/splash.c:563
+msgid "Mouse control (clicking on the map):\n"
+msgstr "Muskontroll (klickande på kartan):\n"
+
+#: src/splash.c:569
+msgid ""
+"Left mouse button         : Set position (usefull in simulation mode)\n"
+"Right mouse button        : Set target directly on the map\n"
+"Middle mouse button       : Display position again\n"
+"Shift left mouse button   : smaller map\n"
+"Shift right mouse button  : larger map\n"
+"Control left mouse button : Set a waypoint (mouse position) on the map\n"
+"Control right mouse button: Set a waypoint at current position on the map\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:577
+msgid ""
+"j    : switch to next waypoint in route mode\n"
+"x    : add waypoint at current position\n"
+"y    : add waypoint at mouse cursor position\n"
+msgstr ""
+
+#: src/splash.c:583
+msgid "Short cuts:\n"
+msgstr "Snabbtangenter:\n"
+
+#: src/splash.c:590
+msgid "The other key shortcuts are marked as "
+msgstr ""
+
+#: src/splash.c:591
+msgid "underlined"
+msgstr ""
+
+#: src/splash.c:593
+msgid " letters in the button text.\n"
+msgstr ""
+
+#: src/splash.c:596
+msgid ""
+"Press the underlined key together with the ALT-key.\n"
+"\n"
+"You can move on the map by selecting the Position-Mode in the menu. A blue "
+"rectangle shows this mode, you can set this cursor by clicking on the map. "
+"If you click on the border of the map (the outer 20%) then the map switches "
+"to the next area.\n"
+"\n"
+"Suggestions welcome.\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:603
+#, fuzzy
+msgid "Have a lot of fun!"
+msgstr ""
+"Ha det så kul!\n"
+"\n"
+
+#: src/splash.c:734
+msgid "Please donate to GpsDrive"
+msgstr ""
+
+#: src/splash.c:740
+msgid ""
+"\n"
+"\n"
+"GpsDrive is a project with no comercial background. \n"
+"\n"
+"It would be nice if you can give a donation to help me pay the costs for "
+"hardware and the webserver.\n"
+"\n"
+"To do so, just go to"
+msgstr ""
+
+#: src/splash.c:744
+msgid " http://www.gpsdrive.cc "
+msgstr ""
+
+#: src/splash.c:747
+msgid ""
+"and click on the PayPal button.\n"
+"\n"
+"Thank you very much for your donation!\n"
+"\n"
+"This message is only displayed once when you start an new version of "
+"GpsDrive.\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:780
+#, fuzzy
+msgid "About GpsDrive donation"
+msgstr "GpsDrive-meny"
+
+#: src/splash.c:859
+msgid "From:"
+msgstr ""
+
+#: src/splash.c:928
+#, c-format
+msgid ""
+"You received a message from\n"
+"the friends server (%s)\n"
+msgstr ""
+
+#: src/splash.c:938
+msgid "You received a message through the friends server from:\n"
+msgstr ""
+
+#: src/splash.c:948
+#, fuzzy
+msgid "Message text:\n"
+msgstr "  Meddelande  "
+
+#: src/splash.c:1004
+msgid "Error saving config file ~/.gpsdrive/gpsdriverc"
+msgstr "Fel vid sparande av konfigurationsfilen ~/.gpsdrive/gpsdriverc"
+
+#: src/splash.c:1519 src/splash.c:1578
+msgid ""
+"\n"
+"Warning: unable to open splash picture\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:1562
+#, fuzzy
+msgid "About GpsDrive"
+msgstr "GpsDrive-meny"
+
+#: src/settings.c:438
+msgid "Setting WP label font"
+msgstr ""
+
+#: src/settings.c:440
+msgid "Setting big display font"
+msgstr ""
+
+#: src/settings.c:507
+msgid "Setting big display color"
+msgstr ""
+
+#: src/settings.c:545
+msgid "Setting track color"
+msgstr ""
+
+#: src/settings.c:587
+msgid "Setting friends label color"
+msgstr ""
+
+#: src/settings.c:668
+msgid ""
+"Don't use more than\n"
+"100 waypoint(way*.txt) files!"
+msgstr ""
+"Använd inte mer än\n"
+"100 vägpunktsfiler (way*.txt)!"
+
+#: src/settings.c:679
+msgid "Waypoint files to use"
+msgstr "Vägpunktsfiler att använda"
+
+#: src/settings.c:704 src/settings.c:709
+msgid "Settings"
+msgstr "Inställningar"
+
+#. misc area
+#: src/settings.c:716
+msgid "Misc settings"
+msgstr "Diverse inställningar"
+
+#: src/settings.c:720
+msgid "Show Shadows"
+msgstr "Visa skuggor"
+
+#: src/settings.c:727
+msgid "Etched frames"
+msgstr ""
+
+#: src/settings.c:735
+msgid "Simulation: Follow target"
+msgstr "Simulering: Följ mål"
+
+#: src/settings.c:742
+msgid "Maximum CPU load"
+msgstr ""
+
+#: src/settings.c:752
+#, fuzzy
+msgid "Track"
+msgstr "Visa spår"
+
+#: src/settings.c:767
+msgid "Maps directory"
+msgstr "Kartkatalog"
+
+#: src/settings.c:773
+msgid "Automatic"
+msgstr "Automatiskt"
+
+#: src/settings.c:779
+msgid "On"
+msgstr "PÃ¥"
+
+#: src/settings.c:784
+msgid "Off"
+msgstr "Av"
+
+#. gtk_table_attach_defaults (GTK_TABLE (misctable), label2, 0, 2, 3, 4);
+#. gtk_table_attach_defaults (GTK_TABLE (misctable), mapdirbt, 0, 2, 4, 5);
+#. GPS settings area
+#: src/settings.c:808
+msgid "GPS settings"
+msgstr "Inställningar för GPS"
+
+#. gtk_container_add (GTK_CONTAINER (f4), gpstable);
+#: src/settings.c:822
+msgid "Test for GARMIN"
+msgstr "Leta efter GARMIN"
+
+#: src/settings.c:833
+msgid "Use DGPS-IP"
+msgstr "Använd DGPS-IP"
+
+#: src/settings.c:843
+msgid "GPS is Earthmate"
+msgstr ""
+
+#: src/settings.c:853
+msgid "Use serial conn."
+msgstr ""
+
+#: src/settings.c:868
+msgid "Interface"
+msgstr "Gränssnitt"
+
+#: src/settings.c:869
+msgid "Baudrate"
+msgstr ""
+
+#. units area
+#: src/settings.c:904
+msgid "Units"
+msgstr "Enheter"
+
+#: src/settings.c:910
+msgid "Miles"
+msgstr "Engelska mil"
+
+#: src/settings.c:915
+msgid "Metric"
+msgstr "Metriskt"
+
+#: src/settings.c:920 src/nautic.c:106
+msgid "Nautic"
+msgstr "Nautiskt"
+
+#: src/settings.c:930
+msgid "Decimal position"
+msgstr "Decimalposition"
+
+#. gtk_box_pack_start (GTK_BOX (v2), miles, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), metric, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), nautic, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), minsecbt, TRUE, FALSE, 2 * PADDING);
+#.
+#. default download server
+#: src/settings.c:948
+msgid "Default map server"
+msgstr "Standardkartserver"
+
+#. Night light mode
+#: src/settings.c:981
+msgid "Night light mode"
+msgstr "Nattläge"
+
+#.  gtk_table_attach_defaults (GTK_TABLE (table), f5, 0, 2, 2, 3);
+#. Sound settings
+#: src/settings.c:999
+#, fuzzy
+msgid "Speech output settings"
+msgstr "Flyginställningar"
+
+#.
+#. set following sounds
+#. sound_direction ... say direction to target
+#. sound_distance  ... say distance to target
+#. sound_speed     ... say your current speed
+#. sound_gps       ... say GPS status
+#.
+#.
+#: src/settings.c:1011
+msgid "Direction"
+msgstr ""
+
+#: src/settings.c:1032
+#, fuzzy
+msgid "GPS Status"
+msgstr "Status"
+
+#: src/settings.c:1046
+msgid "Switch on for speech output of the direction to the target"
+msgstr ""
+
+#: src/settings.c:1051
+msgid "Switch on for speech output of the distance to the target"
+msgstr ""
+
+#: src/settings.c:1056
+msgid "Switch on for speech output of your current speed"
+msgstr ""
+
+#: src/settings.c:1061
+msgid "Switch on for speech output of the status of your GPS signal"
+msgstr ""
+
+#. Font settings
+#: src/settings.c:1066
+#, fuzzy
+msgid "Font and color settings"
+msgstr "Inställningar för GPS"
+
+#. gtk_box_pack_start (GTK_BOX (h1), f5, TRUE, FALSE, 2 * PADDING);
+#: src/settings.c:1071
+msgid "WP Label"
+msgstr ""
+
+#: src/settings.c:1072
+msgid "Big display"
+msgstr ""
+
+#: src/settings.c:1073
+msgid "Display color"
+msgstr ""
+
+#: src/settings.c:1101
+msgid "Switch units to statute miles"
+msgstr "Ändra enheter till engelska mil"
+
+#: src/settings.c:1103
+msgid "Switch units to nautical miles"
+msgstr "Ändra enheter till sjömil"
+
+#: src/settings.c:1105
+msgid "Switch units to metric system (Kilometers)"
+msgstr "Ändra enheter till metriskt system (kilometer)"
+
+#: src/settings.c:1110
+msgid ""
+"If selected display latitude and longitude in decimal degrees, otherwise in "
+"degree, minutes and seconds notation"
+msgstr ""
+"Om vald, visa latitud och longitud i decimala grader, annars i grader, "
+"minuter och sekunder"
+
+#: src/settings.c:1115
+#, fuzzy
+msgid ""
+"Set the german expedia server(expedia.de) as default download server. Use "
+"this if you are in Europe"
+msgstr "Välj Expedia som server för hämtning av kartor"
+
+#: src/settings.c:1119
+msgid "Set Expedia as default download server"
+msgstr "Välj Expedia som server för hämtning av kartor"
+
+#: src/settings.c:1122
+msgid "Switches shadows on map on or off"
+msgstr "Växlar kartskuggor av och på"
+
+#: src/settings.c:1126
+msgid "Switches between different type of frame ornaments"
+msgstr ""
+
+#: src/settings.c:1131
+#, c-format
+msgid ""
+"Select the approx. maximum CPU load, use 20-30% on notebooks while on "
+"battery to save battery power. This effects the refresh rate of the map "
+"screen"
+msgstr ""
+
+#: src/settings.c:1136
+msgid "If activated, pointer moves to target in simulation mode"
+msgstr "Om aktiverad flyttar pekaren till målet i simuleringsläge"
+
+#: src/settings.c:1140
+msgid "Set here the color of the drawn track"
+msgstr ""
+
+#: src/settings.c:1144
+msgid ""
+"Path to your map files. In the specified directory also the index file "
+"map_koord.txt must be present."
+msgstr ""
+"Sökväg till dina kartfiler. I katalogen måste också indexfilen map_koord.txt "
+"finnas."
+
+#: src/settings.c:1149
+msgid ""
+"If selected, gpsdrive try to use GARMIN mode if possible. Unselect if you "
+"only have a NMEA device."
+msgstr ""
+"Om vald försöker gpsdrive använda GARMIN-läge om möjligt. Välj bort om du "
+"bara har en NMEA-enhet."
+
+#: src/settings.c:1154
+msgid ""
+"Set here the baud rate of your GPS device, NMEA devices usually have a speed "
+"of 4800 baud"
+msgstr ""
+
+#: src/settings.c:1159
+msgid ""
+"If selected, gpsdrive try to use differential GPS over IP. You must have an "
+"internet connection and a DGPS capable GPS receiver. Works only in NMEA mode!"
+msgstr ""
+"Om vald försöker gpsdrive använda differentiell GPS över IP. Du måste ha en "
+"internetanslutning och en DGPS-kapabel GPS-mottagare. Fungerar bara i NMEA-"
+"läge!"
+
+#: src/settings.c:1164
+msgid ""
+"Select this if you have a DeLorme Earthmate GPS receiver. The StartGPSD "
+"button will provide gpsd with the needed additional parameters"
+msgstr ""
+
+#: src/settings.c:1169
+msgid ""
+"Select this if you want to use of the direct serial connection. If disabled, "
+"you can use the receiver only through gpsd. On the other hand, the direct "
+"serial connection needs no gpsd running and detects the working receiver on "
+"startup"
+msgstr ""
+
+#: src/settings.c:1174
+msgid "Specify the serial interface where the GPS is connected"
+msgstr "Välj den seriella porten där GPS-enheten är inkopplad"
+
+#: src/settings.c:1179
+msgid ""
+"Switches automagically to night mode if it is dark outside. Press 'N' key to "
+"turn off nightmode."
+msgstr ""
+"Växlar automagiskt till nattläge om det är mörkt ute. Tryck \"N\"-tangenten "
+"för att stänga av nattläge."
+
+#: src/settings.c:1183
+msgid "Switches night mode on. Press 'N' key to turn off nightmode."
+msgstr "Sätter på nattläge. Tryck \"N\"-tangenten för att stänga av nattläge."
+
+#: src/settings.c:1186
+msgid "Switches night mode off"
+msgstr "Stänger av nattläge"
+
+#: src/settings.c:1190
+#, fuzzy
+msgid "Here you can set the font for the waypoint labels"
+msgstr "Ta bort den valda vägpunkten från vägpunktslistan"
+
+#: src/settings.c:1195
+msgid "Here you can set the font for the big display for Speed and Distance"
+msgstr ""
+
+#: src/settings.c:1199
+#, fuzzy
+msgid ""
+"Here you can set the color for the big display for speed, distance and "
+"altitude"
+msgstr "Ta bort den valda vägpunkten från vägpunktslistan"
+
+#: src/settings.c:1377
+msgid "Geo information"
+msgstr "Geoinformation"
+
+#: src/settings.c:1379
+msgid "Geo info"
+msgstr "Geoinfo"
+
+#: src/settings.c:1390
+msgid "Sunrise"
+msgstr "Soluppgång"
+
+#: src/settings.c:1392
+msgid "Sunset"
+msgstr "Solnedgång"
+
+#: src/settings.c:1395
+msgid "Standard"
+msgstr "Standard"
+
+#: src/settings.c:1397
+msgid "Transit"
+msgstr "Meridianpassage"
+
+#: src/settings.c:1399
+msgid "GPS-Time"
+msgstr ""
+
+#: src/settings.c:1401
+msgid "Astro."
+msgstr "Astronomisk"
+
+#: src/settings.c:1403
+msgid "Naut."
+msgstr "Nautisk"
+
+#: src/settings.c:1405
+msgid "Civil"
+msgstr "Borgerlig"
+
+#: src/settings.c:1407
+msgid "Timezone"
+msgstr "Tidszon"
+
+#: src/settings.c:1409
+msgid "Store TZ"
+msgstr ""
+
+#: src/settings.c:1419
+msgid ""
+"If selected, the timezone is stored, otherwise your actual timezone will "
+"automatically used"
+msgstr ""
+
+#: src/settings.c:1453
+msgid "Night"
+msgstr "Natt"
+
+#: src/settings.c:1455
+msgid "Day"
+msgstr "Dag"
+
+#: src/settings.c:1592 src/settings.c:1594 src/settings.c:1597
+msgid "Unit:"
+msgstr "Enhet:"
+
+#: src/settings.c:1592
+msgid "miles"
+msgstr "engelska mil"
+
+#: src/settings.c:1595
+msgid "nautic miles/knots"
+msgstr "sjömil/knop"
+
+#: src/settings.c:1597
+msgid "kilometers"
+msgstr "kilometer"
+
+#: src/settings.c:1612
+msgid "Trip information"
+msgstr "Reseinformation"
+
+#: src/settings.c:1614
+msgid "Trip info"
+msgstr "Reseinfo"
+
+#: src/settings.c:1628
+msgid "Odometer"
+msgstr "Trippmätare"
+
+#: src/settings.c:1630
+msgid "Total time"
+msgstr "Total tid"
+
+#: src/settings.c:1632
+msgid "Av. speed"
+msgstr "Medelfart"
+
+#: src/settings.c:1634
+msgid "Max. speed"
+msgstr "Maxfart"
+
+#: src/settings.c:1658
+msgid "Reset"
+msgstr ""
+
+#: src/settings.c:1663
+msgid "Resets the trip values to zero"
+msgstr ""
+
+#: src/settings.c:1732
+msgid "You should change your name in the first field!"
+msgstr ""
+
+#: src/settings.c:1918
+#, fuzzy
+msgid "Show position newer as"
+msgstr "Visa vägpunkter på kartan"
+
+#: src/settings.c:1920
+msgid "Friends server setup"
+msgstr ""
+
+#: src/settings.c:1921
+#, fuzzy
+msgid "Friends"
+msgstr "Slutför"
+
+#: src/settings.c:1933
+#, fuzzy
+msgid "Days"
+msgstr "Dag"
+
+#: src/settings.c:1934
+msgid "Hours"
+msgstr ""
+
+#: src/settings.c:1935
+#, fuzzy
+msgid "Minutes"
+msgstr "Engelska mil"
+
+#: src/settings.c:1941
+msgid "Your name"
+msgstr ""
+
+#: src/settings.c:1946
+msgid ""
+"Set here your name which should be shown near your vehicle. You may use "
+"spaces here!"
+msgstr ""
+
+#: src/settings.c:1958
+msgid "Server name"
+msgstr ""
+
+#: src/settings.c:1963
+msgid ""
+"Set here the full qualified host name (i.e. www.gpsdrive.cc) of your friends "
+"server, then you have to press the \"Lookup\" button!"
+msgstr ""
+
+#: src/settings.c:1972
+msgid "Lookup"
+msgstr ""
+
+#: src/settings.c:1980
+msgid ""
+"You have to press the \"Lookup\" button to resolve the friends server name!"
+msgstr ""
+
+#: src/settings.c:1991
+msgid "Set here the color of the label displayed at friends position"
+msgstr ""
+
+#: src/settings.c:1997
+msgid "Friends server IP"
+msgstr ""
+
+#: src/settings.c:2002
+msgid ""
+"Set here the IP adress (i.e. 127.0.0.1) if you don't set the hostname above"
+msgstr ""
+
+#: src/settings.c:2007 src/settings.c:2012 src/settings.c:2016
+msgid ""
+"Set here the time limit in which the friends position is shown. Older "
+"positions are not shown."
+msgstr ""
+
+#: src/settings.c:2028
+msgid "Use friends server"
+msgstr ""
+
+#: src/settings.c:2036
+msgid ""
+"Enable/disable use of friends server. You must enter a Username, don't use "
+"the default name!"
+msgstr ""
+
+#: src/settings.c:2039
+msgid ""
+"If you enable the friendsserver mode,\n"
+"<span color=\"red\">everyone</span> using the same server\n"
+"can see your position!"
+msgstr ""
+
+#: src/settings.c:2094
+msgid "SQL selection criterias"
+msgstr ""
+
+#: src/settings.c:2095
+msgid "SQL"
+msgstr ""
+
+#: src/settings.c:2121
+msgid "Dist. limit[km] "
+msgstr ""
+
+#: src/settings.c:2126
+msgid "If enabled, show waypoints only within this distance"
+msgstr ""
+
+#: src/settings.c:2142
+msgid "Enable/disable distance selection"
+msgstr ""
+
+#: src/settings.c:2151
+#, fuzzy
+msgid "Show no_ssid "
+msgstr "Visa VP"
+
+#: src/settings.c:2162
+msgid ""
+"If enabled, WLANs with no SSID are shown, because this is perhaps useless, "
+"you can disable it here"
+msgstr ""
+
+#: src/settings.c:2168
+#, fuzzy
+msgid "Selection mode"
+msgstr "Simuleringsläge"
+
+#: src/settings.c:2170
+msgid "include"
+msgstr ""
+
+#: src/settings.c:2173
+msgid "exclude"
+msgstr ""
+
+#: src/settings.c:2177
+msgid ""
+"Show only waypoints where the type field contains one of the selected words"
+msgstr ""
+
+#: src/settings.c:2181
+msgid ""
+"Show only waypoints where the type field doesn't contain any the selected "
+"words"
+msgstr ""
+
+#: src/fly.c:149
+msgid "Aeronautical settings"
+msgstr "Flyginställningar"
+
+#: src/fly.c:151
+msgid "Fly"
+msgstr "Flyg"
+
+#: src/fly.c:158
+msgid "Plane mode"
+msgstr "Flygplansläge"
+
+#: src/fly.c:165
+msgid "Use VFR"
+msgstr "Använd VFR"
+
+#: src/fly.c:171
+msgid "Use IFR"
+msgstr "Använd IFR"
+
+#: src/fly.c:181
+msgid "max. horizontal deviation "
+msgstr "maximal horisontell avvikelse "
+
+#: src/fly.c:183
+msgid "max. vertical deviation "
+msgstr "maximal vertikal avvikelse "
+
+#: src/fly.c:198
+msgid "disable vert. deviation warning above 5000ft MSL"
+msgstr "stäng av varning för vertikal avvikelse över 5000 fot MSL"
+
+#: src/nautic.c:103
+msgid "Nautic settings"
+msgstr "Sjöinställningar"
+
+#. if (debug)
+#: src/gpssql.c:215
+#, c-format
+msgid ""
+"\n"
+"SQL: connected to %s as %s using %s\n"
+msgstr ""
+
+#: src/gpssql.c:278
+#, c-format
+msgid "rows inserted: %d\n"
+msgstr ""
+
+#: src/gpssql.c:293
+#, c-format
+msgid "last index: %d\n"
+msgstr ""
+
+#: src/gpssql.c:314
+#, c-format
+msgid "rows deleted: %d\n"
+msgstr ""
+
+#: src/gpssql.c:366 src/gpssql.c:372
+#, c-format
+msgid "Loaded user defined icon %s\n"
+msgstr ""
+
+#: src/gpssql.c:455
+#, c-format
+msgid "%d(%d) rows read in %.2f seconds\n"
+msgstr ""
+
+#: src/friends.c:363
+#, fuzzy
+msgid "unknown"
+msgstr "Okänt"
+
+#: src/friendsd.c:472
+msgid "server: please don't run me as root\n"
+msgstr ""
+
+#: src/friendsd.c:484
+#, c-format
+msgid ""
+"\n"
+"Usage:\n"
+"   %s -n servername\n"
+"provides a name for your server\n"
+msgstr ""
+
+#: src/gpsnasamap.c:189
+#, c-format
+msgid "could not create output map file %s!\n"
+msgstr ""
+
+#. g_signal_connect (window, "destroy",
+#. G_CALLBACK (gtk_widget_destroyed), &window);
+#: src/gpsnasamap.c:204
+msgid "Creating map..."
+msgstr ""
+
+#: src/gpsnasamap.c:212
+msgid "Creating a temporary map from NASA satellite images"
+msgstr ""
+
+#: src/gpsnasamap.c:219
+#, c-format
+msgid "converting map for latitude: %f and longitude: %f ...\n"
+msgstr ""
+
+#: src/gpsnasamap.c:324
+msgid ""
+"\n"
+"You can permanently add this map file with following line in your\n"
+"map_koord.txt (rename the file!):\n"
+msgstr ""
+
+#: src/gpsserial.c:252
+msgid "waiting for thread to stop\n"
+msgstr ""
+
+#: src/gpsserial.c:275
+#, c-format
+msgid ""
+"\n"
+"error opening %s(%d)\n"
+msgstr ""
+
+#: src/gpsserial.c:278
+#, c-format
+msgid "successfull opened %s\n"
+msgstr ""
+
+#: src/gpsserial.c:284
+msgid "switching WAAS/EGNOS on\n"
+msgstr ""
+
+#: src/gpsserial.c:290
+msgid "switching WAAS/EGNOS off\n"
+msgstr ""
+
+#~ msgid "Set Mapblast as default download server"
+#~ msgstr "Välj Mapblast som server för hämtning av kartor"
+
+#~ msgid "Sat level"
+#~ msgstr "Sat.-nivå"
+
+#, fuzzy
+#~ msgid "Simulation"
+#~ msgstr "Simuleringsläge"
+
+#, fuzzy
+#~ msgid "Sim.mode"
+#~ msgstr "Simuleringsläge"
+
+#~ msgid "Yes, please start gpsd"
+#~ msgstr "Ja, starta gpsd"
+
+#~ msgid "No, start simulation"
+#~ msgstr "Nej, starta simulering"
+
+#~ msgid ""
+#~ "Neither gpsd nor GARMIN device detected!\n"
+#~ "Should I start gpsd (NMEA mode) for you?"
+#~ msgstr ""
+#~ "Varken gpsd eller GARMIN-enhet hittad!\n"
+#~ "Ska jag starta gpsd (NMEA-läge) åt dig?"
+
+#~ msgid "-n X  Select display name on friends server, X is i.e. Fritz\n"
+#~ msgstr "-n X  Välj skärmnamn på kompisserver, X är t.ex. Martin\n"
+
+#~ msgid "UTC "
+#~ msgstr "UTC "
+
+#~ msgid "Cancel"
+#~ msgstr "Avbryt"
+
+#, fuzzy
+#~ msgid "/Misc. Menu/Maps"
+#~ msgstr "Välj en spårfil"
+
+#~ msgid "Import"
+#~ msgstr "Importera"
+
+#~ msgid "Let you import and calibrate your own map"
+#~ msgstr "LÃ¥ter dig importera och kalibrera din egen karta"
+
+#~ msgid ""
+#~ "Left mouse button         : Set position (usefull in simulation mode)\n"
+#~ msgstr ""
+#~ "Vänster musknapp           : Välj position (bra i simuleringsläge)\n"
+
+#~ msgid "Right mouse button        : Set target directly on the map\n"
+#~ msgstr "Höger musknapp             : Välj mål direkt på kartan\n"
+
+#~ msgid "Middle mouse button       : Display position again\n"
+#~ msgstr "Mittenmusknappen           : Visa position igen\n"
+
+#~ msgid "Shift left mouse button   : smaller map\n"
+#~ msgstr "Skift + vänster musknapp   : mindre karta\n"
+
+#~ msgid "Shift right mouse button  : larger map\n"
+#~ msgstr "Skift + höger musknapp     : större karta\n"
+
+#~ msgid ""
+#~ "Control left mouse button : Set a waypoint (mouse position) on the map\n"
+#~ msgstr ""
+#~ "Kontroll + vänster musknapp: Sätt en vägpunkt (muspositionen) på kartan\n"
+
+#~ msgid ""
+#~ "Control right mouse button: Set a waypoint at current position on the "
+#~ "map\n"
+#~ "\n"
+#~ msgstr ""
+#~ "Kontroll + höger musknapp  : Sätt en vägpunkt på nuvarande position på "
+#~ "kartan\n"
+#~ "\n"
+
+#~ msgid "j    : switch to next waypoint in route mode\n"
+#~ msgstr "j    : växla till nästa vägpunkt i ruttläge\n"
+
+#, fuzzy
+#~ msgid "x    : add waypoint at current position\n"
+#~ msgstr ""
+#~ "x    : lägg till vägpunkt vid nuvarande position\n"
+#~ "\n"
+
+#, fuzzy
+#~ msgid ""
+#~ "y    : add waypoint at mouse cursor position\n"
+#~ "\n"
+#~ msgstr ""
+#~ "x    : lägg till vägpunkt vid nuvarande position\n"
+#~ "\n"
+
+#~ msgid ""
+#~ "Suggestions welcome!\n"
+#~ "\n"
+#~ msgstr ""
+#~ "Förslag välkomnas!\n"
+#~ "Skicka synpunkter på översättningen till <sv at li.org>.\n"
+#~ "\n"
+
+#, fuzzy
+#~ msgid "/Operations Menu"
+#~ msgstr "Välj en spårfil"
+
+#, fuzzy
+#~ msgid "/ Messages"
+#~ msgstr "  Meddelande  "
+
+#, fuzzy
+#~ msgid "/ Help"
+#~ msgstr "Hjälp"
+
+#~ msgid "Load and display a previous stored track file"
+#~ msgstr "Ladda och visa en tidigare sparad spårfil"
+
+#~ msgid "Distance to "
+#~ msgstr "Avstånd till "
+
+#, fuzzy
+#~ msgid "Sel:"
+#~ msgstr "Välj mål"
+
+#, fuzzy
+#~ msgid "Time"
+#~ msgstr "Tidszon"
+
+#~ msgid "Friendsicon loaded"
+#~ msgstr " Friendsicon laddad"
+
+#~ msgid "Menu window"
+#~ msgstr "Menyfönster"
+
+#~ msgid "Status window"
+#~ msgstr "Statusfönster"
+
+#, fuzzy
+#~ msgid "can't open socket for friendsserver "
+#~ msgstr "kan inte öppna uttag (socket) för port "
+
+#~ msgid "Slow CPU"
+#~ msgstr "LÃ¥ngsam processor"
+
+#~ msgid ""
+#~ "Select, if your CPU is very slow ( < PII MMX/233MHz). This reduces the "
+#~ "framerate to 1 frame/second."
+#~ msgstr ""
+#~ "Välj det här om din processor är mycket långsam (<PII MMX/233MHz). Det "
+#~ "reducerar uppdateringsfrekvensen till en bildruta per sekund."
+
+#~ msgid "UTC (GPS)"
+#~ msgstr "UTC (GPS)"
+
+#~ msgid "Ok"
+#~ msgstr "OK"
+
+#~ msgid "Delete WP"
+#~ msgstr "Ta bort VP"
+
+#~ msgid ""
+#~ "GpsDrive Help\n"
+#~ "\n"
+#~ msgstr ""
+#~ "GpsDrive-hjälp\n"
+#~ "\n"
+
+#, fuzzy
+#~ msgid ""
+#~ "GPSDRIVE (c) 2001-2003 Fritz Ganter <ganter at ganter.at>\n"
+#~ "\n"
+#~ msgstr ""
+#~ "GPSDRIVE © 2001,2002 Fritz Ganter <ganter at ganter.at>\n"
+#~ "\n"
+
+#~ msgid "Website: www.kraftvoll.at/software\n"
+#~ msgstr "Hemsida: www.kraftvoll.at/software\n"
+
+#~ msgid "+    : Zoom in\n"
+#~ msgstr "+    : Zooma in\n"
+
+#~ msgid "-    : Zoom out\n"
+#~ msgstr "-    : Zooma ut\n"
+
+#~ msgid "s    : larger map\n"
+#~ msgstr "s    : större karta\n"
+
+#~ msgid "a    : smaller map\n"
+#~ msgstr "a    : mindre karta\n"
+
+#~ msgid "t    : select target\n"
+#~ msgstr "t    : välj mål\n"
+
+#~ msgid "d    : download map\n"
+#~ msgstr "d    : hämta karta\n"
+
+#~ msgid "l    : load track\n"
+#~ msgstr "l    : ladda spår\n"
+
+#~ msgid "h    : show help\n"
+#~ msgstr "h    : visa hjälp\n"
+
+#~ msgid "q    : quit program\n"
+#~ msgstr "q    : avsluta programmet\n"
+
+#~ msgid "b    : toggle auto best map\n"
+#~ msgstr "b    : växla auto. bäst karta\n"
+
+#~ msgid "w    : toggle show waypoints\n"
+#~ msgstr "w    : växla visning av vägpunkter\n"
+
+#~ msgid "o    : toggle show tracks\n"
+#~ msgstr "o    : växla visning av spår\n"
+
+#~ msgid "u    : enter setup menu\n"
+#~ msgstr "u    : inställningsmenyn\n"
+
+#~ msgid "n    : in nightmode: toogles night display on/off\n"
+#~ msgstr "n    : i nattläge: växlar nattläge på/av\n"
+
+#~ msgid "   Ok   "
+#~ msgstr "   OK   "
+
+#~ msgid "Close"
+#~ msgstr "Stäng"
+
+#~ msgid "OK"
+#~ msgstr "OK"
+
+#~ msgid "Quit"
+#~ msgstr "Avsluta"
+
+#~ msgid "Load track"
+#~ msgstr "Ladda spår"
+
+#~ msgid "Setup"
+#~ msgstr "Konfiguration"
+
+#, fuzzy
+#~ msgid "not"
+#~ msgstr "knop"
+
+#~ msgid "-------------------------------------------------\n"
+#~ msgstr "-------------------------------------------------\n"
+
+#~ msgid ""
+#~ "*************************************************\n"
+#~ "\n"
+#~ msgstr ""
+#~ "*************************************************\n"
+#~ "\n"
+
+#~ msgid "===================================\n"
+#~ msgstr "===================================\n"
+
+#~ msgid ""
+#~ "GpsDrive Help\n"
+#~ "\n"
+#~ "GPSDRIVE (c) 2001,2002 Fritz Ganter <ganter at ganter.at>\n"
+#~ "\n"
+#~ "-------------------------------------------------\n"
+#~ "Website: www.kraftvoll.at/software\n"
+#~ "Disclaimer: Please do not use for navigation. \n"
+#~ "\n"
+#~ "*************************************************\n"
+#~ "\n"
+#~ "See the manpage for program details\n"
+#~ "\n"
+#~ "Mouse control (clicking on the map):\n"
+#~ "===================================\n"
+#~ "Left mouse button         : Set position (usefull in simulation mode)\n"
+#~ "Right mouse button        : Set target directly on the map\n"
+#~ "Middle mouse button       : Display position again\n"
+#~ "Shift left mouse button   : smaller map\n"
+#~ "Shift right mouse button  : larger map\n"
+#~ "Control left mouse button : Set a waypoint (mouse position) on the map\n"
+#~ "Control right mouse button: Set a waypoint at current position on the "
+#~ "map\n"
+#~ "\n"
+#~ "Short cuts:\n"
+#~ "===================================\n"
+#~ "+                         : Zoom in\n"
+#~ "-                         : Zoom out\n"
+#~ "s                         : larger map\n"
+#~ "a                         : smaller map\n"
+#~ "t                         : select target\n"
+#~ "d                         : download map\n"
+#~ "i                         : import map\n"
+#~ "l                         : load track\n"
+#~ "h                         : show help\n"
+#~ "q                         : quit program\n"
+#~ "b                         : toggle auto best map\n"
+#~ "w                         : toggle show waypoints\n"
+#~ "o                         : toggle show tracks\n"
+#~ "u                         : enter setup menu\n"
+#~ "n                         : in nightmode: toogles night display on/off\n"
+#~ "j                         : switch to next waypoint in route mode\n"
+#~ "p                         : switch to position mode\n"
+#~ "x                         : add waypoint at current position\n"
+#~ "\n"
+#~ "Suggestions welcome!\n"
+#~ "\n"
+#~ "Have a lot of fun!\n"
+#~ "\n"
+#~ msgstr ""
+#~ "Hjälp för GpsDrive\n"
+#~ "\n"
+#~ "GPSDRIVE © 2001, 2002 Fritz Ganter <ganter at ganter.at>\n"
+#~ "\n"
+#~ "-------------------------------------------------\n"
+#~ "Hemsida: www.kraftvoll.at/software\n"
+#~ "Använd inte för navigation. \n"
+#~ "\n"
+#~ "*************************************************\n"
+#~ "\n"
+#~ "Se mansidan för detaljer om programmet\n"
+#~ "\n"
+#~ "Muskontroll (klickande på kartan):\n"
+#~ "===================================\n"
+#~ "Vänster musknapp           : Välj position (bra i simuleringsläge)\n"
+#~ "Höger musknapp             : Välj mål direkt på kartan\n"
+#~ "Mittenmusknappen           : Visa position igen\n"
+#~ "Skift + vänster musknapp   : mindre karta\n"
+#~ "Skift + höger musknapp     : större karta\n"
+#~ "Kontroll + vänster musknapp: Sätt en vägpunkt (muspositionen) på kartan\n"
+#~ "Kontroll + höger musknapp  : Sätt en vägpunkt på nuvarande position på "
+#~ "kartan\n"
+#~ "\n"
+#~ "Snabbtangenter:\n"
+#~ "===================================\n"
+#~ "+                          : Zooma in\n"
+#~ "-                          : Zooma ut\n"
+#~ "s                          : större karta\n"
+#~ "a                          : mindre karta\n"
+#~ "t                          : välj mål\n"
+#~ "d                          : hämta karta\n"
+#~ "i                          : importera karta\n"
+#~ "l                          : ladda spår\n"
+#~ "h                          : visa hjälp\n"
+#~ "q                          : avsluta programmet\n"
+#~ "b                          : växla auto. bäst karta\n"
+#~ "w                          : växla visning av vägpunkter\n"
+#~ "o                          : växla visning av spår\n"
+#~ "u                          : inställningsmenyn\n"
+#~ "n                          : i nattläge: växlar nattläge på/av\n"
+#~ "j                          : växla till nästa vägpunkt i ruttläge\n"
+#~ "p                          : växla till positionsläge\n"
+#~ "x                          : lägg till vägpunkt vid nuvarande position\n"
+#~ "\n"
+#~ "Förslag välkomnas!\n"
+#~ "Skicka synpunkter på översättningen till <sv at li.org>.\n"
+#~ "\n"
+#~ "Ha det så kul!\n"
+#~ "\n"
+
+#~ msgid "No GPS Fix found!"
+#~ msgstr "Ingen GPS-fix hittad!"
+
+#~ msgid "Waypoint files"
+#~ msgstr "Vägpunktsfiler"
+
+#~ msgid "Nightmode on"
+#~ msgstr "Nattläge på"
+
+#~ msgid "Nightmode off"
+#~ msgstr "Nattläge av"
+
+#~ msgid "Decimal lat/long display"
+#~ msgstr "Decimal lat/long-visare"
+
+#~ msgid "Day/Night"
+#~ msgstr "Dag/natt"
+
+#~ msgid "Astro. dusk"
+#~ msgstr "Astronomisk skymning"
+
+#~ msgid "Naut. dawn"
+#~ msgstr "Nautisk gryning"
+
+#~ msgid "Naut. dusk"
+#~ msgstr "Nautisk skymning"
+
+#~ msgid "Civil dawn"
+#~ msgstr "Gryning"
+
+#~ msgid "I'm sitting in a plane"
+#~ msgstr "Jag sitter i ett flygplan"

Added: packages/gpsdrive/branches/etch/po/tr.gmo
===================================================================
(Binary files differ)


Property changes on: packages/gpsdrive/branches/etch/po/tr.gmo
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: packages/gpsdrive/branches/etch/po/tr.po
===================================================================
--- packages/gpsdrive/branches/etch/po/tr.po	                        (rev 0)
+++ packages/gpsdrive/branches/etch/po/tr.po	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,2321 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Free Software Foundation, Inc.
+# FIRST AUTHOR <ilgici at ttnet.net.tr>, 2002.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: gpsdrive\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-03-03 21:47+0100\n"
+"PO-Revision-Date: 2002-04-17 11:45 GMT+2\n"
+"Last-Translator: A. Burak Ilgicioglu <ilgici at ttnet.net.tr>\n"
+"Language-Team: LANGUAGE <tr at li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: src/gpsdrive.c:2179
+msgid "/_Misc. Menu"
+msgstr ""
+
+#: src/gpsdrive.c:2180
+msgid "/_Misc. Menu/Maps"
+msgstr ""
+
+#: src/gpsdrive.c:2181
+msgid "/_Misc. Menu/Maps/_Import map"
+msgstr ""
+
+#: src/gpsdrive.c:2185
+msgid "/_Misc. Menu/Maps/_Map Manager"
+msgstr ""
+
+#: src/gpsdrive.c:2187
+msgid "/_Misc. Menu/_Waypoint Manager"
+msgstr ""
+
+#: src/gpsdrive.c:2189
+#, fuzzy
+msgid "/_Misc. Menu/_Load track file"
+msgstr "Bir yol dosyas sein"
+
+#: src/gpsdrive.c:2193
+#, fuzzy
+msgid "/_Misc. Menu/Messages"
+msgstr "Bir yol dosyas sein"
+
+#: src/gpsdrive.c:2194
+msgid "/_Misc. Menu/Messages/Send message to mobile target"
+msgstr ""
+
+#: src/gpsdrive.c:2199
+msgid "/_Misc. Menu/Help"
+msgstr ""
+
+#: src/gpsdrive.c:2200
+msgid "/_Misc. Menu/Help/About"
+msgstr ""
+
+#: src/gpsdrive.c:2202
+msgid "/_Misc. Menu/Help/Topics"
+msgstr ""
+
+#: src/gpsdrive.c:2271
+msgid "  Message  "
+msgstr "  leti  "
+
+#: src/gpsdrive.c:2315 src/gpsdrive.c:12145
+#, fuzzy
+msgid "Stop GPSD"
+msgstr "GPSD'yi balat"
+
+#: src/gpsdrive.c:2317 src/gpsdrive.c:12147
+msgid "Stop GPSD and switch to simulation mode"
+msgstr ""
+
+#: src/gpsdrive.c:2339 src/gpsdrive.c:11261
+msgid "Start GPSD"
+msgstr "GPSD'yi balat"
+
+#: src/gpsdrive.c:2341 src/gpsdrive.c:12153
+msgid "Starts GPSD for NMEA mode"
+msgstr "NMEA modu iin GPSD'yi balatr"
+
+#. displays zoom factor of map
+#: src/gpsdrive.c:2354 src/gpsdrive.c:2355 src/gpsdrive.c:2356
+#: src/gpsdrive.c:6264 src/gpsdrive.c:6273 src/gpsdrive.c:11484
+#: src/gpsdrive.c:11491 src/gpsdrive.c:11498 src/gpsdrive.c:11555
+#: src/gpsdrive.c:11560 src/gpsdrive.c:11566 src/gpsdrive.c:11602
+#: src/gpsdrive.c:11609 src/settings.c:1425 src/settings.c:1434
+#: src/settings.c:1443 src/settings.c:1468 src/settings.c:1478
+#: src/settings.c:1487 src/settings.c:1498 src/settings.c:1507
+#: src/settings.c:1517
+msgid "n/a"
+msgstr "n/a"
+
+#: src/gpsdrive.c:2366 src/gpsdrive.c:10245
+msgid ""
+"\n"
+"no garmin support compiled in\n"
+msgstr ""
+"\n"
+"Garmin destei ile derlenmemi\n"
+
+#: src/gpsdrive.c:2387 src/gpsdrive.c:3136
+msgid "Simulation mode"
+msgstr "Simulasyon modu"
+
+#: src/gpsdrive.c:2409
+msgid "got RMC data, using it\n"
+msgstr ""
+
+#: src/gpsdrive.c:2498 src/gpsdrive.c:11936
+msgid "Map"
+msgstr "Harita"
+
+#. if (debug)
+#: src/gpsdrive.c:2661
+msgid "got no RMC data, using GGA data\n"
+msgstr ""
+
+#: src/gpsdrive.c:2912
+#, fuzzy
+msgid "Timeout getting data from GPS-Receiver!"
+msgstr "GPS Alcs ile balant yok!"
+
+#: src/gpsdrive.c:2959 src/gpsdrive.c:3008 src/gpsdrive.c:3113
+#: src/gpsdrive.c:3199 src/gpsdrive.c:3324
+msgid "Press middle mouse button for navigation"
+msgstr "Hareket iin farenizin orta tuunu kullann"
+
+#: src/gpsdrive.c:2963
+#, fuzzy, c-format
+msgid "Direct serial connection to %s"
+msgstr "%s ile balant"
+
+#: src/gpsdrive.c:3013 src/gpsdrive.c:3045 src/gpsdrive.c:3205
+#: src/gpsdrive.c:3330
+msgid "Not enough satellites in view!"
+msgstr ""
+
+#: src/gpsdrive.c:3117
+msgid "GARMIN Mode"
+msgstr "GARMIN Modu"
+
+#: src/gpsdrive.c:3134
+msgid "No GPS used"
+msgstr "GPS kullanlmad"
+
+#: src/gpsdrive.c:3138
+msgid "Press middle mouse button for sim mode"
+msgstr "Simulasyon modu iin orta fare tuuna basn"
+
+#: src/gpsdrive.c:3477
+#, c-format
+msgid "Distance to HomeBase: %.1fkm, max. allowed: %.1fkm\n"
+msgstr ""
+
+#: src/gpsdrive.c:3554 src/gpsdrive.c:3784 src/gpsdrive.c:6665
+#: src/gpsdrive.c:8534 src/gpsdrive.c:9000
+msgid "To"
+msgstr ""
+
+#: src/gpsdrive.c:3866
+msgid "Error in line "
+msgstr "izgide hata var"
+
+#: src/gpsdrive.c:3868
+#, fuzzy
+msgid ""
+"I have found filenames in map_koord.txt which are\n"
+"not map_* or top_* files. Please rename them and change the entries in\n"
+"map_koord.txt.  Use map_* for street maps and top_* for topographical\n"
+"maps.  Otherwise, the maps will not be displayed!"
+msgstr ""
+" ~/.gpsdrive/map_koord.txt dosyasnda,\n"
+"map_* veya top_* dosyas olmayan\n"
+"bir dosya buldum! Ltfen map_koord.txt dosyasndakileri\n"
+"yeniden adlandrn ve girdileri deitirin.\n"
+"Yoksa bu haritalar gsterilemeyecek!\n"
+"\n"
+"Sokak haritalar iin map_* ve\n"
+"topografik haritalar iin top_* kullann."
+
+#: src/gpsdrive.c:4229
+msgid "Auto"
+msgstr "Otomatik"
+
+#: src/gpsdrive.c:4440
+#, fuzzy
+msgid "Warning!"
+msgstr "Gsteren"
+
+#: src/gpsdrive.c:4441
+msgid "You should not start GpsDrive as user root!!!"
+msgstr ""
+
+#: src/gpsdrive.c:4756 src/gpsdrive.c:8145 src/gpsdrive.c:8154
+#: src/gpsdrive.c:11661 src/gpsdrive.c:11670
+#, fuzzy
+msgid "mi/h"
+msgstr "km/s"
+
+#: src/gpsdrive.c:4758 src/gpsdrive.c:8147 src/gpsdrive.c:8156
+#: src/gpsdrive.c:11663 src/gpsdrive.c:11672
+msgid "knots"
+msgstr "knots"
+
+#: src/gpsdrive.c:4760 src/gpsdrive.c:8149 src/gpsdrive.c:8158
+#: src/gpsdrive.c:11665 src/gpsdrive.c:11674
+msgid "km/h"
+msgstr "km/s"
+
+#: src/gpsdrive.c:5088
+msgid ""
+"\n"
+"Warning: unable to load gpsdriveanim.gif!\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+
+#. This string means North,East,South,West -- please translate the letters
+#: src/gpsdrive.c:5896
+msgid "NESW"
+msgstr ""
+
+#: src/gpsdrive.c:6064
+msgid "No map available for this position!"
+msgstr "Bu pozisyon iin uygun bir harita yok"
+
+#: src/gpsdrive.c:6258
+msgid "unused"
+msgstr ""
+
+#: src/gpsdrive.c:6362
+msgid "can't open NMEA output file"
+msgstr "NMEA kt dosyas alamad"
+
+#: src/gpsdrive.c:6473
+msgid " Mapfile could not be loaded:"
+msgstr " Harita dosyas yklenemedi:"
+
+#: src/gpsdrive.c:6517
+msgid "Map found!"
+msgstr ""
+
+#: src/gpsdrive.c:6552
+msgid " Friendsicon could not be loaded:"
+msgstr " Friendsicon yklenemedi:"
+
+#: src/gpsdrive.c:6555
+msgid ""
+"\n"
+"Warning: unable to load friendsicon!\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+
+#: src/gpsdrive.c:6843
+msgid "Select coordinates and scale"
+msgstr "Koordinatlar ve lei sein"
+
+#: src/gpsdrive.c:6846
+msgid "Download map"
+msgstr "Harita indir"
+
+#: src/gpsdrive.c:6872 src/gpsdrive.c:7911 src/gpsdrive.c:9209
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/gpsdrive.c:11792
+msgid "Latitude"
+msgstr "Enlem"
+
+#: src/gpsdrive.c:6874 src/gpsdrive.c:7913 src/gpsdrive.c:9203
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/gpsdrive.c:11793
+msgid "Longitude"
+msgstr "Boylam"
+
+#: src/gpsdrive.c:6876
+#, fuzzy
+msgid "Map covers"
+msgstr "Harita lei"
+
+#: src/gpsdrive.c:6880
+msgid "Scale"
+msgstr "lek"
+
+#: src/gpsdrive.c:6882
+msgid "Map file name"
+msgstr "Harita dosyasnn ad"
+
+#: src/gpsdrive.c:6922 src/settings.c:958
+msgid "Expedia Germany"
+msgstr ""
+
+#: src/gpsdrive.c:6928 src/settings.c:964
+msgid "Expedia USA"
+msgstr ""
+
+#: src/gpsdrive.c:6934
+msgid "TopoZone(US Only)"
+msgstr ""
+
+#: src/gpsdrive.c:6943
+msgid ""
+"If selected, you download the map from the german expedia server (expedia.de)"
+msgstr ""
+
+#: src/gpsdrive.c:6947
+msgid ""
+"If selected, you download the map from the U.S. expedia server (expedia.com)"
+msgstr ""
+
+#: src/gpsdrive.c:6951
+msgid ""
+"If selected, you download the map from the TopoZone Server (US maps only)"
+msgstr ""
+
+#: src/gpsdrive.c:6977 src/gpsdrive.c:6981
+msgid ""
+"You can also select the position\n"
+"with a mouse click on the map."
+msgstr ""
+"Pozisyonu harita zerinde \n"
+"fare tklamas ile seebilirsiniz."
+
+#: src/gpsdrive.c:6983
+msgid "Using Proxy and port:"
+msgstr "Kullanlacak proxy ve port:"
+
+#: src/gpsdrive.c:7280 src/gpsdrive.c:7397
+msgid "can't open socket for port 80"
+msgstr "Port 80 iin socket alamad"
+
+#: src/gpsdrive.c:7282 src/gpsdrive.c:7285 src/gpsdrive.c:7309
+#: src/gpsdrive.c:7312 src/gpsdrive.c:7327 src/gpsdrive.c:7330
+#: src/gpsdrive.c:7399 src/gpsdrive.c:7404 src/gpsdrive.c:7407
+#: src/gpsdrive.c:7411 src/gpsdrive.c:7446 src/gpsdrive.c:7451
+#: src/gpsdrive.c:7454 src/gpsdrive.c:7458 src/gpsdrive.c:7473
+#: src/gpsdrive.c:7478 src/gpsdrive.c:7481 src/gpsdrive.c:7485
+#, c-format
+msgid "Connecting to %s FAILED!"
+msgstr "%s ile balant salanamad."
+
+#: src/gpsdrive.c:7307 src/gpsdrive.c:7444
+msgid "Can't resolve webserver address"
+msgstr "Web sunucusunun adresi bulunamad"
+
+#: src/gpsdrive.c:7325 src/gpsdrive.c:7471
+msgid "unable to connect to Website"
+msgstr "Web sitesine balanlamad"
+
+#: src/gpsdrive.c:7353 src/gpsdrive.c:7542
+msgid "read from Webserver"
+msgstr "Web sunucusunda okunuyor"
+
+#: src/gpsdrive.c:7380 src/gpsdrive.c:7384 src/gpsdrive.c:7386
+#: src/gpsdrive.c:7389
+#, c-format
+msgid "Connecting to %s"
+msgstr "%s ile balant"
+
+#: src/gpsdrive.c:7499 src/gpsdrive.c:7503 src/gpsdrive.c:7505
+#: src/gpsdrive.c:7508
+#, c-format
+msgid "Now connected to %s"
+msgstr "%s ile balant kuruldu"
+
+#: src/gpsdrive.c:7585
+#, c-format
+msgid "Downloaded %d kBytes"
+msgstr "%d KB indirildi."
+
+#: src/gpsdrive.c:7599
+msgid "Download FAILED!"
+msgstr "ndirme baarsz oldu!"
+
+#: src/gpsdrive.c:7601
+#, c-format
+msgid "Download finished, got %dkB"
+msgstr "ndirme ilemi bitti, toplam %d KB"
+
+#: src/gpsdrive.c:7772
+msgid "Select a map file"
+msgstr "Bir harita dosyas sein"
+
+#: src/gpsdrive.c:7837
+msgid ""
+"How to calibrate your own maps? First, the map file\n"
+"must be copied into the"
+msgstr ""
+
+#: src/gpsdrive.c:7839
+#, fuzzy
+msgid ""
+"\n"
+"directory as .gif, .jpg or .png file and must have\n"
+"the size 1280x1024. The file names must be\n"
+"map_* for street maps or top_* for topographical maps!\n"
+"Load the file, select coordinates from waypoint list or\n"
+"type them in. Then click on the accept button."
+msgstr ""
+"Kendi haritalarnz nasl ayarlarsnz?\n"
+"\n"
+"ncelikle harita dosyas gif,jpg veya png olarak ~/.gpsdrive dizinine "
+"kopyalanmalve 1024x768 llerinde olmal. Dosya sokak haritalar iin map_* veya "
+"topografik haritalar iin map_* olmal.\n"
+"Dosyay ykleyin, yol noktalar listesinden koordinatlar sein\n"
+"veya yazn ve \n"
+"Kabul tuuna tklayn."
+
+#: src/gpsdrive.c:7846
+#, fuzzy
+msgid ""
+"Now do the same for your second point and click on the\n"
+"finish button. The map can be used now."
+msgstr ""
+"imdi ayn eyi ikinci noktanz iin yapn ve Bitir butonunu tklayn Artk haritay "
+"kullanabilirsiniz."
+
+#: src/gpsdrive.c:7851
+msgid "Import Assistant. Step 1"
+msgstr "Dardan Veri Alma Yardmcs. Birinci Adm"
+
+#: src/gpsdrive.c:7853
+msgid "Import Assistant. Step 2"
+msgstr "Dardan Veri Alma Yardmcs. kinci Adm"
+
+#: src/gpsdrive.c:7858
+msgid "Accept first point"
+msgstr "lk noktay kabul et"
+
+#: src/gpsdrive.c:7860
+msgid "Finish"
+msgstr "Bitir"
+
+#: src/gpsdrive.c:7881
+msgid "Go up"
+msgstr "Yukar k"
+
+#: src/gpsdrive.c:7884
+msgid "Go left"
+msgstr "Sola git"
+
+#: src/gpsdrive.c:7887
+msgid "Go right"
+msgstr "Saa git"
+
+#: src/gpsdrive.c:7890
+msgid "Go down"
+msgstr "Aa in"
+
+#: src/gpsdrive.c:7893
+msgid "Zoom in"
+msgstr "Yaknlatr"
+
+#: src/gpsdrive.c:7896
+msgid "Zoom out"
+msgstr "Uzaklatr"
+
+#: src/gpsdrive.c:7915
+msgid "Screen X"
+msgstr "Ekran X"
+
+#: src/gpsdrive.c:7917
+msgid "Screen Y"
+msgstr "Ekran Y"
+
+#: src/gpsdrive.c:7919
+msgid "Browse waypoint"
+msgstr "Yol Noktasn Aratr"
+
+#: src/gpsdrive.c:7950
+msgid "Browse filename"
+msgstr "Dosya adn aratr"
+
+#: src/gpsdrive.c:8043
+#, fuzzy
+msgid "GpsDrive Control"
+msgstr "GpsDrive Mens"
+
+#: src/gpsdrive.c:8154 src/gpsdrive.c:8156 src/gpsdrive.c:8158
+#: src/gpsdrive.c:11670 src/gpsdrive.c:11672 src/gpsdrive.c:11674
+#: src/settings.c:1025
+msgid "Speed"
+msgstr "Hz"
+
+#: src/gpsdrive.c:8375
+msgid ""
+"\n"
+"distance jump is more then 1000km/h speed, ignoring\n"
+msgstr ""
+
+#: src/gpsdrive.c:8597 src/friends.c:348
+#, fuzzy
+msgid "/Misc. Menu/Messages"
+msgstr "Bir yol dosyas sein"
+
+#: src/gpsdrive.c:8600
+msgid "Sending message to friends server..."
+msgstr ""
+
+#: src/gpsdrive.c:8673
+#, fuzzy
+msgid "Message for:"
+msgstr "  leti  "
+
+#: src/gpsdrive.c:8714
+#, c-format
+msgid "Date: %s"
+msgstr ""
+
+#: src/gpsdrive.c:8727
+msgid "Sends your text to to selected computer using the friends server"
+msgstr ""
+
+#: src/gpsdrive.c:8999
+msgid "SELECTED"
+msgstr "SEL"
+
+#: src/gpsdrive.c:9172
+msgid "Add waypoint name"
+msgstr "Yolnoktas ad ekle"
+
+#: src/gpsdrive.c:9231
+msgid " Waypoint name: "
+msgstr "Yolnoktas ad:"
+
+#: src/gpsdrive.c:9244
+#, fuzzy
+msgid " Waypoint type: "
+msgstr "Yolnoktas ad:"
+
+#: src/gpsdrive.c:9489
+msgid "Name"
+msgstr ""
+
+#: src/gpsdrive.c:9489 src/gpsdrive.c:9568 src/gpsdrive.c:9715
+#: src/settings.c:1018
+msgid "Distance"
+msgstr "Uzaklk"
+
+#: src/gpsdrive.c:9499
+#, fuzzy
+msgid "Please select message recipient"
+msgstr "Ltfen hedefinizi sein"
+
+#: src/gpsdrive.c:9568 src/gpsdrive.c:9715
+msgid "Waypoint"
+msgstr "Yolnoktas"
+
+#: src/gpsdrive.c:9587
+msgid "Select reference point"
+msgstr "Referans noktas sein"
+
+#: src/gpsdrive.c:9591
+msgid "Please select your destination"
+msgstr "Ltfen hedefinizi sein"
+
+#: src/gpsdrive.c:9620
+msgid "Edit route"
+msgstr "Rotay dzenle"
+
+#: src/gpsdrive.c:9622
+msgid "Create route"
+msgstr "Rota yarat"
+
+#: src/gpsdrive.c:9693
+#, fuzzy
+msgid "Create a route using some waypoints from this list"
+msgstr "Yolnoktas listesinden buray hedef olarak se"
+
+#: src/gpsdrive.c:9698
+#, fuzzy
+msgid "Delete the selected waypoint from the waypoint list"
+msgstr "Yolnoktas listesinden buray hedef olarak se"
+
+#: src/gpsdrive.c:9702
+#, fuzzy
+msgid "Jump to the selected waypoint"
+msgstr ""
+"Bir sonraki yolnoktasn semek iin\n"
+"listeye tklayn"
+
+#: src/gpsdrive.c:9729
+msgid "Define route"
+msgstr "Rota tanmla"
+
+#: src/gpsdrive.c:9737
+msgid "Start route"
+msgstr "Rotay balat"
+
+#: src/gpsdrive.c:9746
+msgid "Take all WP as route"
+msgstr ""
+
+#: src/gpsdrive.c:9751
+msgid "Abort route"
+msgstr "Rotay durdur"
+
+#: src/gpsdrive.c:9795
+msgid ""
+"Click on waypoints list\n"
+"to add waypoints"
+msgstr ""
+"Yolnoktas eklemek iin\n"
+"yolnoktas listesine tklayn"
+
+#: src/gpsdrive.c:9797
+msgid ""
+"Click on list item\n"
+"to select next waypoint"
+msgstr ""
+"Bir sonraki yolnoktasn semek iin\n"
+"listeye tklayn"
+
+#: src/gpsdrive.c:9838
+msgid ""
+"Create a route from all waypoints. Sorted with order in file, not distance."
+msgstr ""
+
+#: src/gpsdrive.c:9842
+msgid ""
+"Click here to start your journey. GpsDrive guides you through the waypoints "
+"in this list."
+msgstr ""
+
+#: src/gpsdrive.c:9845
+#, fuzzy
+msgid "Abort your journey"
+msgstr "Rotay durdur"
+
+#: src/gpsdrive.c:9862
+msgid "-v    show version\n"
+msgstr "-v    srm bilgisi\n"
+
+#: src/gpsdrive.c:9863
+msgid "-h    print this help\n"
+msgstr "-h    bu yardm gsterir\n"
+
+#: src/gpsdrive.c:9864
+#, fuzzy
+msgid "-d    turn on debug info\n"
+msgstr "-d    hata ayklama etkin\n"
+
+#: src/gpsdrive.c:9865
+#, fuzzy
+msgid "-D    turn on lot of debug info\n"
+msgstr "-d    hata ayklama etkin\n"
+
+#: src/gpsdrive.c:9866
+msgid "-e    use Festival-Lite (flite) for speech output\n"
+msgstr ""
+
+#: src/gpsdrive.c:9867
+msgid "-t    set serial device for GPS i.e. /dev/ttyS1\n"
+msgstr "-t    GPS iin seri aleti ayarla. rnein /dev/ttyS1\n"
+
+#: src/gpsdrive.c:9868
+msgid "-o    serial device, pty master, or file for NMEA *output*\n"
+msgstr "-o    NMEA *kts* iin seri alet, pty master, veya dosya \n"
+
+#: src/gpsdrive.c:9869
+#, fuzzy
+msgid "-f X  Select friends server, X is i.e. www.gpsdrive.cc\n"
+msgstr "-f X  Arkadalar sunucusunu se, X rnein linux.quant-x.at 'dir\n"
+
+#: src/gpsdrive.c:9870
+msgid "-n    Disable use of direct serial connection\n"
+msgstr ""
+
+#: src/gpsdrive.c:9871
+msgid ""
+"-l X  Select language of the voice,\n"
+"      X may be english, spanish or german\n"
+msgstr ""
+"-l X  Sesin dilini sein,\n"
+"      X ingilizce, almanca veya ispanyolca olabilir\n"
+
+#: src/gpsdrive.c:9873
+msgid ""
+"-s X  set height of the screen, if autodetection\n"
+"      don't satisfy you, X is i.e. 768,600,480,200\n"
+msgstr ""
+"-s X  ekrann yksekliini ayarlar, eer otomatik\n"
+"      tannandan memnun kalmazsanz, X rnein 768,600,480,200 olabilir\n"
+
+#. ** Mod by Arms
+#: src/gpsdrive.c:9876
+msgid "-r X  set width of the screen, only with -s\n"
+msgstr "-r X  ekrann geniliini ayarlar, sadece -s ile\n"
+
+#: src/gpsdrive.c:9878
+msgid "-1    have only 1 button mouse, for example using touchscreen\n"
+msgstr "-1    sadece bir fare butonu, rnein touchscreen kullanrken\n"
+
+#: src/gpsdrive.c:9879
+msgid "-a    don't display battery status (i.e. broken APM)\n"
+msgstr "-a    pil durumunu gsterme (rnein APM almyorsa)\n"
+
+#: src/gpsdrive.c:9881
+msgid "-b X  Servername for NMEA server (if gpsd runs on another host)\n"
+msgstr "-b X  NMEA sunucusu iin sunucu (eer gpsd baka bir makinada alyorsa)\n"
+
+#: src/gpsdrive.c:9883
+msgid "-c X  set start position in simulation mode to waypoint name X\n"
+msgstr "-c X  simulasyon modunda yolnoktas ismi iin balang noktasn ayarla X\n"
+
+#: src/gpsdrive.c:9884
+#, fuzzy
+msgid "-x    create separate window for menu\n"
+msgstr ""
+"-x    men iin ayr bir pencere yarat\n"
+"\n"
+
+#: src/gpsdrive.c:9885
+msgid "-p    set settings for PDA (iPAQ, Yopy...)\n"
+msgstr ""
+
+#: src/gpsdrive.c:9887
+msgid "-i    ignore NMEA checksum (risky, only for broken GPS receivers\n"
+msgstr ""
+
+#: src/gpsdrive.c:9888
+msgid "-q    disable SQL support\n"
+msgstr ""
+
+#: src/gpsdrive.c:9889
+msgid "-F    force display of position even it is invalid\n"
+msgstr ""
+
+#: src/gpsdrive.c:9890
+msgid "-S    don't show splash screen\n"
+msgstr ""
+
+#: src/gpsdrive.c:9891
+msgid "-E    print out data received from direct serial connection\n"
+msgstr ""
+
+#: src/gpsdrive.c:9893
+msgid "-W x  set x to 1 to switch WAAS/EGNOS on, set to 0 to switch off\n"
+msgstr ""
+
+#: src/gpsdrive.c:9894
+msgid "-H X  correct altitude, adding this value to altitude\n"
+msgstr ""
+
+#: src/gpsdrive.c:9895
+msgid ""
+"-z    don't display zoom factor and scale\n"
+"\n"
+msgstr ""
+
+#: src/gpsdrive.c:10001
+msgid "Select a track file"
+msgstr "Bir yol dosyas sein"
+
+#: src/gpsdrive.c:10179 src/gpskismet.c:380
+msgid "can't open socket for port "
+msgstr "port iin socket alamad "
+
+#: src/gpsdrive.c:10200
+#, c-format
+msgid ""
+"\n"
+"Cannot connect to %s: unknown host\n"
+msgstr ""
+
+#: src/gpsdrive.c:10221
+msgid "NMEA Mode, Port 2222"
+msgstr "NMEA Modu, Port 2222"
+
+#: src/gpsdrive.c:10230
+msgid "NMEA Mode, Port 2947"
+msgstr "NMEA Modu, Port 2947"
+
+#: src/gpsdrive.c:10249
+msgid ""
+"\n"
+"Garmin protocol detection disabled!\n"
+msgstr ""
+"\n"
+"Garmin protokol alglamas etkin deil!\n"
+
+#: src/gpsdrive.c:10600
+msgid ""
+"\n"
+"libmysqlclient.so not found.\n"
+msgstr ""
+
+#: src/gpsdrive.c:10606
+msgid ""
+"\n"
+"MySQL support disabled.\n"
+msgstr ""
+
+#: src/gpsdrive.c:10783
+msgid ""
+"\n"
+"You can only choose between english, spanish and german\n"
+"\n"
+msgstr ""
+"\n"
+"Sadece ingilizce, almanca veya ispanyolca arasndan seebilirsiniz\n"
+"\n"
+
+#: src/gpsdrive.c:10817 src/settings.c:1730
+#, fuzzy
+msgid "EnterYourName"
+msgstr "Arayz"
+
+#: src/gpsdrive.c:10879
+#, c-format
+msgid ""
+"\n"
+"Using proxy: %s on port %d"
+msgstr ""
+"\n"
+"Proxy: %s %d no.lu portta"
+
+#: src/gpsdrive.c:10883
+msgid ""
+"\n"
+"Invalid enviroment variable HTTP_PROXY, must be in format: http://proxy."
+"provider.de:3128"
+msgstr ""
+"\n"
+"Geersiz evresel deiken HTTP_PROXY, http://proxy formatnda olmalsaglayici.net."
+"tr:3128"
+
+#: src/gpsdrive.c:11073
+#, fuzzy
+msgid "Gpsdrive-2 (c)2001-2004 F.Ganter"
+msgstr "(c)2001,2002 F.Ganter"
+
+#: src/gpsdrive.c:11081
+msgid "Using speech output"
+msgstr "Konuma kts kullanlyor"
+
+#: src/gpsdrive.c:11115
+#, fuzzy
+msgid "/Misc. Menu/Maps/Map Manager"
+msgstr "Bir yol dosyas sein"
+
+#: src/gpsdrive.c:11119
+#, fuzzy
+msgid "/Misc. Menu/Waypoint Manager"
+msgstr "Bir yol dosyas sein"
+
+#. download map button
+#: src/gpsdrive.c:11123
+#, fuzzy
+msgid "_Download map"
+msgstr "Harita indir"
+
+#: src/gpsdrive.c:11142
+msgid "M_ute"
+msgstr ""
+
+#: src/gpsdrive.c:11152
+msgid "Use SQ_L"
+msgstr ""
+
+#: src/gpsdrive.c:11162
+#, fuzzy
+msgid "Show _WP"
+msgstr "WP'yi gster"
+
+#: src/gpsdrive.c:11189
+msgid "HomeBase"
+msgstr ""
+
+#: src/gpsdrive.c:11197
+#, fuzzy
+msgid "Pos. _mode"
+msgstr "Pos. modu"
+
+#: src/gpsdrive.c:11203
+#, fuzzy
+msgid "Show _Track"
+msgstr "Yolu gster"
+
+#: src/gpsdrive.c:11246
+msgid "_Navigation"
+msgstr ""
+
+#: src/gpsdrive.c:11265
+#, fuzzy
+msgid "Auto _best map"
+msgstr "Otomatik en iyi harita"
+
+#: src/gpsdrive.c:11275
+msgid "Save track"
+msgstr "Yolu kaydet"
+
+#: src/gpsdrive.c:11286
+msgid "Shown map type"
+msgstr "Gsterilen harita tipi"
+
+#: src/gpsdrive.c:11297
+msgid "Street map"
+msgstr "Sokak haritas"
+
+#: src/gpsdrive.c:11304
+msgid "Topo map"
+msgstr "Topo haritas"
+
+#: src/gpsdrive.c:11386
+msgid ""
+"\n"
+"kismet server found\n"
+msgstr ""
+
+#: src/gpsdrive.c:11447 src/gpsdrive.c:11797
+msgid "Bearing"
+msgstr "Gsteren"
+
+#: src/gpsdrive.c:11468
+msgid "GPS Info"
+msgstr ""
+
+#: src/gpsdrive.c:11519
+msgid "Bat."
+msgstr "Bat."
+
+#: src/gpsdrive.c:11534
+#, fuzzy
+msgid "TC"
+msgstr "UTC"
+
+#. displays speed over ground
+#: src/gpsdrive.c:11552 src/gpsdrive.c:11807 src/gpsdrive.c:11809
+#: src/gpsdrive.c:11815 src/gpsdrive.c:11817
+msgid "---"
+msgstr "---"
+
+#: src/gpsdrive.c:11632 src/gpsdrive.c:11639
+#, fuzzy
+msgid "Selected:"
+msgstr "Hedefi sein"
+
+#: src/gpsdrive.c:11632 src/gpsdrive.c:11639
+msgid "within"
+msgstr ""
+
+#. create frames for labels
+#: src/gpsdrive.c:11647
+msgid "Distance to target"
+msgstr "Hedefe uzaklk"
+
+#. ** Mod by Arms
+#. if (!pdamode)
+#. gtk_box_pack_start (GTK_BOX (hbox2), frame_speed, TRUE, TRUE,
+#. 1 * PADDING);
+#: src/gpsdrive.c:11683
+msgid "Altitude"
+msgstr "Ykseklik"
+
+#. ** Mod by Arms
+#. if (!pdamode)
+#. gtk_box_pack_start (GTK_BOX (hbox2), frame_altitude, FALSE, TRUE,
+#. 1 * PADDING);
+#: src/gpsdrive.c:11690 src/settings.c:681
+#, fuzzy
+msgid "Waypoints"
+msgstr "Yolnoktas"
+
+#: src/gpsdrive.c:11794
+msgid "Map file"
+msgstr "Harita dosyas"
+
+#: src/gpsdrive.c:11795
+msgid "Map scale"
+msgstr "Harita lei"
+
+#: src/gpsdrive.c:11796
+msgid "Heading"
+msgstr "Balk"
+
+#: src/gpsdrive.c:11798
+msgid "Time at Dest."
+msgstr "Hedef noktadaki zaman"
+
+#: src/gpsdrive.c:11799
+msgid "Pref. scale"
+msgstr "Pref. lek"
+
+#: src/gpsdrive.c:11803
+msgid "000,00000N"
+msgstr ""
+
+#: src/gpsdrive.c:11805
+msgid "000,00000E"
+msgstr ""
+
+#: src/gpsdrive.c:11811 src/gpsdrive.c:11813
+msgid "0000"
+msgstr ""
+
+#. gdk_window_lower((GdkWindow *)menuwin);
+#: src/gpsdrive.c:11886 src/gpsdrive.c:11937
+msgid "Menu"
+msgstr ""
+
+#. gdk_window_lower((GdkWindow *)menuwin2);
+#: src/gpsdrive.c:11895 src/gpsdrive.c:11938
+msgid "Status"
+msgstr ""
+
+#: src/gpsdrive.c:12089
+msgid ""
+"Click here to switch betwen satetellite level and satellite position "
+"display. A rotating globe is shown in simulation mode"
+msgstr ""
+
+#: src/gpsdrive.c:12093
+msgid "Number of used satellites/satellites in view"
+msgstr ""
+
+#: src/gpsdrive.c:12096
+msgid "EPE (Estimated Precision Error), if available"
+msgstr ""
+
+#: src/gpsdrive.c:12100
+msgid ""
+"PDOP (Position Dilution Of Precision). PDOP less than 4 gives the best "
+"accuracy, between 4 and 8 gives acceptable accuracy and greater than 8 gives "
+"unacceptable poor accuracy. "
+msgstr ""
+
+#: src/gpsdrive.c:12105
+msgid ""
+"On top of the compass you see the direction to which you move. The pointer "
+"shows the target direction on the compass."
+msgstr ""
+
+#: src/gpsdrive.c:12108
+msgid "/Misc. Menu"
+msgstr ""
+
+#: src/gpsdrive.c:12111
+msgid "Here you find extra functions for maps, tracks and messages"
+msgstr ""
+
+#: src/gpsdrive.c:12115
+msgid "Download map from Internet"
+msgstr "nternetten harita indir"
+
+#: src/gpsdrive.c:12117
+msgid "Leave the program"
+msgstr "Programdan k"
+
+#: src/gpsdrive.c:12120
+msgid "Disable output of speech"
+msgstr "Ses ktsn iptal et"
+
+#: src/gpsdrive.c:12123
+msgid "Use SQL server for waypoints"
+msgstr ""
+
+#: src/gpsdrive.c:12126
+msgid "Show waypoints on the map"
+msgstr "Haritada yolnoktalarn gster"
+
+#: src/gpsdrive.c:12129
+msgid ""
+"Turn position mode on. You can move on the map with the left mouse button "
+"click. Clicking near the border switches to the proximate map."
+msgstr ""
+"Pozisyon modunu a. Sol fare tuu ile haritay hareket ettirebilirsiniz.Snr "
+"yaknna tklama en yakn haritaya balanr."
+
+#: src/gpsdrive.c:12132
+msgid "Show tracking on the map"
+msgstr "Haritada yollar gster"
+
+#: src/gpsdrive.c:12137
+msgid "Opens the help window"
+msgstr "Yardm penceresini aar"
+
+#: src/gpsdrive.c:12140
+msgid "Navigation menu. Enter here your destination."
+msgstr ""
+
+#: src/gpsdrive.c:12156
+msgid "Settings for GpsDrive"
+msgstr "GpsDrive iin ayarlar"
+
+#: src/gpsdrive.c:12158
+msgid "Zoom into the current map"
+msgstr "Aktif haritay yaknlatr"
+
+#: src/gpsdrive.c:12160
+msgid "Zooms out off the current map"
+msgstr "Aktif haritay uzaklatr"
+
+#: src/gpsdrive.c:12162
+msgid "Select the next more detailed map"
+msgstr "Bir sonraki daha detayl haritay se"
+
+#: src/gpsdrive.c:12164
+msgid "Select the next less detailed map"
+msgstr "Bir sonraki daha az detayl makineyi se"
+
+#: src/gpsdrive.c:12169
+msgid "Select here a destination from the waypoint list"
+msgstr "Yolnoktas listesinden buray hedef olarak se"
+
+#: src/gpsdrive.c:12173
+msgid "Select the map scale of avail. maps."
+msgstr "Uygun haritalardan harita lei se"
+
+#: src/gpsdrive.c:12178
+msgid "Always select the most detailed map available"
+msgstr "Herzaman en detayl haritay se"
+
+#: src/gpsdrive.c:12181
+msgid "Save the track to given filename at program exit"
+msgstr "Yolu verilen dosya ad ile kaydet ve programdan k"
+
+#: src/gpsdrive.c:12187
+msgid "Number of waypoints selected from SQL server"
+msgstr ""
+
+#: src/gpsdrive.c:12191
+msgid "Number of selected waypoints, which are in range"
+msgstr ""
+
+#: src/gpsdrive.c:12195
+msgid "Range for waypoint selection in kilometers"
+msgstr ""
+
+#: src/gpsdrive.c:12198
+msgid "This shows the time from your GPS receiver"
+msgstr ""
+
+#: src/gpsdrive.c:12201
+msgid ""
+"Number of mobile targets within timeframe/total received from friendsserver"
+msgstr ""
+
+#: src/gpsdrive.c:12275
+msgid ""
+"\n"
+"\n"
+"Thank you for using GpsDrive!\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:543
+#, fuzzy
+msgid "GpsDrive v"
+msgstr "GpsDrive Mens"
+
+#: src/splash.c:549
+msgid ""
+"\n"
+"\n"
+"You find new versions on http://www.gpsdrive.cc\n"
+msgstr ""
+
+#: src/splash.c:553
+msgid ""
+"Disclaimer: Please do not use for navigation. \n"
+"\n"
+msgstr ""
+
+#: src/splash.c:558
+msgid "Please have a look into the manpage (man gpsdrive) for program details!"
+msgstr ""
+
+#: src/splash.c:563
+#, fuzzy
+msgid "Mouse control (clicking on the map):\n"
+msgstr "Haritada yollar gster"
+
+#: src/splash.c:569
+msgid ""
+"Left mouse button         : Set position (usefull in simulation mode)\n"
+"Right mouse button        : Set target directly on the map\n"
+"Middle mouse button       : Display position again\n"
+"Shift left mouse button   : smaller map\n"
+"Shift right mouse button  : larger map\n"
+"Control left mouse button : Set a waypoint (mouse position) on the map\n"
+"Control right mouse button: Set a waypoint at current position on the map\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:577
+msgid ""
+"j    : switch to next waypoint in route mode\n"
+"x    : add waypoint at current position\n"
+"y    : add waypoint at mouse cursor position\n"
+msgstr ""
+
+#: src/splash.c:583
+msgid "Short cuts:\n"
+msgstr ""
+
+#: src/splash.c:590
+msgid "The other key shortcuts are marked as "
+msgstr ""
+
+#: src/splash.c:591
+msgid "underlined"
+msgstr ""
+
+#: src/splash.c:593
+msgid " letters in the button text.\n"
+msgstr ""
+
+#: src/splash.c:596
+msgid ""
+"Press the underlined key together with the ALT-key.\n"
+"\n"
+"You can move on the map by selecting the Position-Mode in the menu. A blue "
+"rectangle shows this mode, you can set this cursor by clicking on the map. "
+"If you click on the border of the map (the outer 20%) then the map switches "
+"to the next area.\n"
+"\n"
+"Suggestions welcome.\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:603
+msgid "Have a lot of fun!"
+msgstr ""
+
+#: src/splash.c:734
+msgid "Please donate to GpsDrive"
+msgstr ""
+
+#: src/splash.c:740
+msgid ""
+"\n"
+"\n"
+"GpsDrive is a project with no comercial background. \n"
+"\n"
+"It would be nice if you can give a donation to help me pay the costs for "
+"hardware and the webserver.\n"
+"\n"
+"To do so, just go to"
+msgstr ""
+
+#: src/splash.c:744
+msgid " http://www.gpsdrive.cc "
+msgstr ""
+
+#: src/splash.c:747
+msgid ""
+"and click on the PayPal button.\n"
+"\n"
+"Thank you very much for your donation!\n"
+"\n"
+"This message is only displayed once when you start an new version of "
+"GpsDrive.\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:780
+#, fuzzy
+msgid "About GpsDrive donation"
+msgstr "GpsDrive Mens"
+
+#: src/splash.c:859
+msgid "From:"
+msgstr ""
+
+#: src/splash.c:928
+#, c-format
+msgid ""
+"You received a message from\n"
+"the friends server (%s)\n"
+msgstr ""
+
+#: src/splash.c:938
+msgid "You received a message through the friends server from:\n"
+msgstr ""
+
+#: src/splash.c:948
+#, fuzzy
+msgid "Message text:\n"
+msgstr "  leti  "
+
+#: src/splash.c:1004
+msgid "Error saving config file ~/.gpsdrive/gpsdriverc"
+msgstr "Konfigurasyon dosyas ~/.gpsdrive/gpsdriverc' kaydederken hata olutu"
+
+#: src/splash.c:1519 src/splash.c:1578
+msgid ""
+"\n"
+"Warning: unable to open splash picture\n"
+"Please install the program as root with:\n"
+"make install\n"
+"\n"
+msgstr ""
+
+#: src/splash.c:1562
+#, fuzzy
+msgid "About GpsDrive"
+msgstr "GpsDrive Mens"
+
+#: src/settings.c:438
+msgid "Setting WP label font"
+msgstr ""
+
+#: src/settings.c:440
+msgid "Setting big display font"
+msgstr ""
+
+#: src/settings.c:507
+msgid "Setting big display color"
+msgstr ""
+
+#: src/settings.c:545
+msgid "Setting track color"
+msgstr ""
+
+#: src/settings.c:587
+msgid "Setting friends label color"
+msgstr ""
+
+#: src/settings.c:668
+#, fuzzy
+msgid ""
+"Don't use more than\n"
+"100 waypoint(way*.txt) files!"
+msgstr ""
+"30 yolnoktas (way*.txt)\n"
+"dosyasndan fazlasn kullanmayn!"
+
+#: src/settings.c:679
+#, fuzzy
+msgid "Waypoint files to use"
+msgstr "Kullanlacak yolnoktas dosyas"
+
+#: src/settings.c:704 src/settings.c:709
+#, fuzzy
+msgid "Settings"
+msgstr "GPS ayarlar"
+
+#. misc area
+#: src/settings.c:716
+msgid "Misc settings"
+msgstr "eitli ayarlar"
+
+#: src/settings.c:720
+msgid "Show Shadows"
+msgstr "Glgeleri gster"
+
+#: src/settings.c:727
+msgid "Etched frames"
+msgstr ""
+
+#: src/settings.c:735
+msgid "Simulation: Follow target"
+msgstr "Simulasyon: Hedefi takip et"
+
+#: src/settings.c:742
+msgid "Maximum CPU load"
+msgstr ""
+
+#: src/settings.c:752
+#, fuzzy
+msgid "Track"
+msgstr "Yolu gster"
+
+#: src/settings.c:767
+msgid "Maps directory"
+msgstr "Haritalar dizini"
+
+#: src/settings.c:773
+#, fuzzy
+msgid "Automatic"
+msgstr "Otomatik"
+
+#: src/settings.c:779
+msgid "On"
+msgstr ""
+
+#: src/settings.c:784
+msgid "Off"
+msgstr ""
+
+#. gtk_table_attach_defaults (GTK_TABLE (misctable), label2, 0, 2, 3, 4);
+#. gtk_table_attach_defaults (GTK_TABLE (misctable), mapdirbt, 0, 2, 4, 5);
+#. GPS settings area
+#: src/settings.c:808
+msgid "GPS settings"
+msgstr "GPS ayarlar"
+
+#. gtk_container_add (GTK_CONTAINER (f4), gpstable);
+#: src/settings.c:822
+msgid "Test for GARMIN"
+msgstr "GARMIN testi"
+
+#: src/settings.c:833
+msgid "Use DGPS-IP"
+msgstr "DGPS-IP'yi kullan"
+
+#: src/settings.c:843
+msgid "GPS is Earthmate"
+msgstr ""
+
+#: src/settings.c:853
+msgid "Use serial conn."
+msgstr ""
+
+#: src/settings.c:868
+msgid "Interface"
+msgstr "Arayz"
+
+#: src/settings.c:869
+msgid "Baudrate"
+msgstr ""
+
+#. units area
+#: src/settings.c:904
+msgid "Units"
+msgstr "Birim"
+
+#: src/settings.c:910
+msgid "Miles"
+msgstr "Mil"
+
+#: src/settings.c:915
+msgid "Metric"
+msgstr "Metrik"
+
+#: src/settings.c:920 src/nautic.c:106
+msgid "Nautic"
+msgstr "Denizcilikle ilgili"
+
+#: src/settings.c:930
+msgid "Decimal position"
+msgstr ""
+
+#. gtk_box_pack_start (GTK_BOX (v2), miles, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), metric, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), nautic, TRUE, FALSE, 2 * PADDING);
+#. gtk_box_pack_start (GTK_BOX (v2), minsecbt, TRUE, FALSE, 2 * PADDING);
+#.
+#. default download server
+#: src/settings.c:948
+msgid "Default map server"
+msgstr "ntanml harita sunucusu"
+
+#. Night light mode
+#: src/settings.c:981
+#, fuzzy
+msgid "Night light mode"
+msgstr "Haritadaki glgeleri etkin yapar veya kaldrr"
+
+#.  gtk_table_attach_defaults (GTK_TABLE (table), f5, 0, 2, 2, 3);
+#. Sound settings
+#: src/settings.c:999
+#, fuzzy
+msgid "Speech output settings"
+msgstr "eitli ayarlar"
+
+#.
+#. set following sounds
+#. sound_direction ... say direction to target
+#. sound_distance  ... say distance to target
+#. sound_speed     ... say your current speed
+#. sound_gps       ... say GPS status
+#.
+#.
+#: src/settings.c:1011
+msgid "Direction"
+msgstr ""
+
+#: src/settings.c:1032
+#, fuzzy
+msgid "GPS Status"
+msgstr "GpsDrive Durumu"
+
+#: src/settings.c:1046
+msgid "Switch on for speech output of the direction to the target"
+msgstr ""
+
+#: src/settings.c:1051
+msgid "Switch on for speech output of the distance to the target"
+msgstr ""
+
+#: src/settings.c:1056
+msgid "Switch on for speech output of your current speed"
+msgstr ""
+
+#: src/settings.c:1061
+msgid "Switch on for speech output of the status of your GPS signal"
+msgstr ""
+
+#. Font settings
+#: src/settings.c:1066
+#, fuzzy
+msgid "Font and color settings"
+msgstr "GPS ayarlar"
+
+#. gtk_box_pack_start (GTK_BOX (h1), f5, TRUE, FALSE, 2 * PADDING);
+#: src/settings.c:1071
+msgid "WP Label"
+msgstr ""
+
+#: src/settings.c:1072
+msgid "Big display"
+msgstr ""
+
+#: src/settings.c:1073
+msgid "Display color"
+msgstr ""
+
+#: src/settings.c:1101
+msgid "Switch units to statute miles"
+msgstr "Statue mili birimlerine ge"
+
+#: src/settings.c:1103
+msgid "Switch units to nautical miles"
+msgstr "Deniz mili birimlerine ge"
+
+#: src/settings.c:1105
+msgid "Switch units to metric system (Kilometers)"
+msgstr "Metrik sistem (Kilometre) birimilerine ge"
+
+#: src/settings.c:1110
+msgid ""
+"If selected display latitude and longitude in decimal degrees, otherwise in "
+"degree, minutes and seconds notation"
+msgstr ""
+
+#: src/settings.c:1115
+#, fuzzy
+msgid ""
+"Set the german expedia server(expedia.de) as default download server. Use "
+"this if you are in Europe"
+msgstr "Expedia'y ntanml sunucu yap"
+
+#: src/settings.c:1119
+msgid "Set Expedia as default download server"
+msgstr "Expedia'y ntanml sunucu yap"
+
+#: src/settings.c:1122
+msgid "Switches shadows on map on or off"
+msgstr "Haritadaki glgeleri etkin yapar veya kaldrr"
+
+#: src/settings.c:1126
+msgid "Switches between different type of frame ornaments"
+msgstr ""
+
+#: src/settings.c:1131
+#, c-format
+msgid ""
+"Select the approx. maximum CPU load, use 20-30% on notebooks while on "
+"battery to save battery power. This effects the refresh rate of the map "
+"screen"
+msgstr ""
+
+#: src/settings.c:1136
+msgid "If activated, pointer moves to target in simulation mode"
+msgstr ""
+"Etkinletirildii takdirde simulasyon modunda pointer hedefe doru hareket eder"
+
+#: src/settings.c:1140
+msgid "Set here the color of the drawn track"
+msgstr ""
+
+#: src/settings.c:1144
+msgid ""
+"Path to your map files. In the specified directory also the index file "
+"map_koord.txt must be present."
+msgstr ""
+"Harita dosyalarnzn yolu. Belirlenen dizindemap_koord.txt dosyas yer almal."
+
+#: src/settings.c:1149
+msgid ""
+"If selected, gpsdrive try to use GARMIN mode if possible. Unselect if you "
+"only have a NMEA device."
+msgstr ""
+"Seildii takdirde eer mmknse gpsdrive GARMIN modunu kullanmaya alr.  Eer "
+"sadece NMEA aletiniz varsa semeyin."
+
+#: src/settings.c:1154
+msgid ""
+"Set here the baud rate of your GPS device, NMEA devices usually have a speed "
+"of 4800 baud"
+msgstr ""
+
+#: src/settings.c:1159
+msgid ""
+"If selected, gpsdrive try to use differential GPS over IP. You must have an "
+"internet connection and a DGPS capable GPS receiver. Works only in NMEA mode!"
+msgstr ""
+"Seildii takdirde gpsdrive IP zerinden deiken GPS kullanmaya alr.Kullanmak "
+"iin internet balantnz ve DGPS uyumlu GPS alcnz olmal. Sadece NMEA modunda "
+"alr!"
+
+#: src/settings.c:1164
+msgid ""
+"Select this if you have a DeLorme Earthmate GPS receiver. The StartGPSD "
+"button will provide gpsd with the needed additional parameters"
+msgstr ""
+
+#: src/settings.c:1169
+msgid ""
+"Select this if you want to use of the direct serial connection. If disabled, "
+"you can use the receiver only through gpsd. On the other hand, the direct "
+"serial connection needs no gpsd running and detects the working receiver on "
+"startup"
+msgstr ""
+
+#: src/settings.c:1174
+msgid "Specify the serial interface where the GPS is connected"
+msgstr "GPS'nin bal olduu seri arayz sein"
+
+#: src/settings.c:1179
+msgid ""
+"Switches automagically to night mode if it is dark outside. Press 'N' key to "
+"turn off nightmode."
+msgstr ""
+
+#: src/settings.c:1183
+msgid "Switches night mode on. Press 'N' key to turn off nightmode."
+msgstr ""
+
+#: src/settings.c:1186
+#, fuzzy
+msgid "Switches night mode off"
+msgstr "Haritadaki glgeleri etkin yapar veya kaldrr"
+
+#: src/settings.c:1190
+#, fuzzy
+msgid "Here you can set the font for the waypoint labels"
+msgstr "Yolnoktas listesinden buray hedef olarak se"
+
+#: src/settings.c:1195
+msgid "Here you can set the font for the big display for Speed and Distance"
+msgstr ""
+
+#: src/settings.c:1199
+#, fuzzy
+msgid ""
+"Here you can set the color for the big display for speed, distance and "
+"altitude"
+msgstr "Yolnoktas listesinden buray hedef olarak se"
+
+#: src/settings.c:1377
+msgid "Geo information"
+msgstr ""
+
+#: src/settings.c:1379
+msgid "Geo info"
+msgstr ""
+
+#: src/settings.c:1390
+msgid "Sunrise"
+msgstr ""
+
+#: src/settings.c:1392
+msgid "Sunset"
+msgstr ""
+
+#: src/settings.c:1395
+msgid "Standard"
+msgstr ""
+
+#: src/settings.c:1397
+msgid "Transit"
+msgstr ""
+
+#: src/settings.c:1399
+msgid "GPS-Time"
+msgstr ""
+
+#: src/settings.c:1401
+#, fuzzy
+msgid "Astro."
+msgstr "Otomatik"
+
+#: src/settings.c:1403
+#, fuzzy
+msgid "Naut."
+msgstr "Denizcilikle ilgili"
+
+#: src/settings.c:1405
+msgid "Civil"
+msgstr ""
+
+#: src/settings.c:1407
+msgid "Timezone"
+msgstr ""
+
+#: src/settings.c:1409
+msgid "Store TZ"
+msgstr ""
+
+#: src/settings.c:1419
+msgid ""
+"If selected, the timezone is stored, otherwise your actual timezone will "
+"automatically used"
+msgstr ""
+
+#: src/settings.c:1453
+#, fuzzy
+msgid "Night"
+msgstr "Saa git"
+
+#: src/settings.c:1455
+msgid "Day"
+msgstr ""
+
+#: src/settings.c:1592 src/settings.c:1594 src/settings.c:1597
+#, fuzzy
+msgid "Unit:"
+msgstr "Birim"
+
+#: src/settings.c:1592
+#, fuzzy
+msgid "miles"
+msgstr "Mil"
+
+#: src/settings.c:1595
+msgid "nautic miles/knots"
+msgstr ""
+
+#: src/settings.c:1597
+msgid "kilometers"
+msgstr ""
+
+#: src/settings.c:1612
+msgid "Trip information"
+msgstr ""
+
+#: src/settings.c:1614
+msgid "Trip info"
+msgstr ""
+
+#: src/settings.c:1628
+msgid "Odometer"
+msgstr ""
+
+#: src/settings.c:1630
+msgid "Total time"
+msgstr ""
+
+#: src/settings.c:1632
+msgid "Av. speed"
+msgstr ""
+
+#: src/settings.c:1634
+msgid "Max. speed"
+msgstr ""
+
+#: src/settings.c:1658
+msgid "Reset"
+msgstr ""
+
+#: src/settings.c:1663
+msgid "Resets the trip values to zero"
+msgstr ""
+
+#: src/settings.c:1732
+msgid "You should change your name in the first field!"
+msgstr ""
+
+#: src/settings.c:1918
+#, fuzzy
+msgid "Show position newer as"
+msgstr "Haritada yolnoktalarn gster"
+
+#: src/settings.c:1920
+msgid "Friends server setup"
+msgstr ""
+
+#: src/settings.c:1921
+#, fuzzy
+msgid "Friends"
+msgstr "Bitir"
+
+#: src/settings.c:1933
+msgid "Days"
+msgstr ""
+
+#: src/settings.c:1934
+msgid "Hours"
+msgstr ""
+
+#: src/settings.c:1935
+#, fuzzy
+msgid "Minutes"
+msgstr "Mil"
+
+#: src/settings.c:1941
+msgid "Your name"
+msgstr ""
+
+#: src/settings.c:1946
+msgid ""
+"Set here your name which should be shown near your vehicle. You may use "
+"spaces here!"
+msgstr ""
+
+#: src/settings.c:1958
+msgid "Server name"
+msgstr ""
+
+#: src/settings.c:1963
+msgid ""
+"Set here the full qualified host name (i.e. www.gpsdrive.cc) of your friends "
+"server, then you have to press the \"Lookup\" button!"
+msgstr ""
+
+#: src/settings.c:1972
+msgid "Lookup"
+msgstr ""
+
+#: src/settings.c:1980
+msgid ""
+"You have to press the \"Lookup\" button to resolve the friends server name!"
+msgstr ""
+
+#: src/settings.c:1991
+msgid "Set here the color of the label displayed at friends position"
+msgstr ""
+
+#: src/settings.c:1997
+msgid "Friends server IP"
+msgstr ""
+
+#: src/settings.c:2002
+msgid ""
+"Set here the IP adress (i.e. 127.0.0.1) if you don't set the hostname above"
+msgstr ""
+
+#: src/settings.c:2007 src/settings.c:2012 src/settings.c:2016
+msgid ""
+"Set here the time limit in which the friends position is shown. Older "
+"positions are not shown."
+msgstr ""
+
+#: src/settings.c:2028
+msgid "Use friends server"
+msgstr ""
+
+#: src/settings.c:2036
+msgid ""
+"Enable/disable use of friends server. You must enter a Username, don't use "
+"the default name!"
+msgstr ""
+
+#: src/settings.c:2039
+msgid ""
+"If you enable the friendsserver mode,\n"
+"<span color=\"red\">everyone</span> using the same server\n"
+"can see your position!"
+msgstr ""
+
+#: src/settings.c:2094
+msgid "SQL selection criterias"
+msgstr ""
+
+#: src/settings.c:2095
+msgid "SQL"
+msgstr ""
+
+#: src/settings.c:2121
+msgid "Dist. limit[km] "
+msgstr ""
+
+#: src/settings.c:2126
+msgid "If enabled, show waypoints only within this distance"
+msgstr ""
+
+#: src/settings.c:2142
+msgid "Enable/disable distance selection"
+msgstr ""
+
+#: src/settings.c:2151
+#, fuzzy
+msgid "Show no_ssid "
+msgstr "WP'yi gster"
+
+#: src/settings.c:2162
+msgid ""
+"If enabled, WLANs with no SSID are shown, because this is perhaps useless, "
+"you can disable it here"
+msgstr ""
+
+#: src/settings.c:2168
+#, fuzzy
+msgid "Selection mode"
+msgstr "Simulasyon modu"
+
+#: src/settings.c:2170
+msgid "include"
+msgstr ""
+
+#: src/settings.c:2173
+msgid "exclude"
+msgstr ""
+
+#: src/settings.c:2177
+msgid ""
+"Show only waypoints where the type field contains one of the selected words"
+msgstr ""
+
+#: src/settings.c:2181
+msgid ""
+"Show only waypoints where the type field doesn't contain any the selected "
+"words"
+msgstr ""
+
+#: src/fly.c:149
+#, fuzzy
+msgid "Aeronautical settings"
+msgstr "eitli ayarlar"
+
+#: src/fly.c:151
+msgid "Fly"
+msgstr ""
+
+#: src/fly.c:158
+#, fuzzy
+msgid "Plane mode"
+msgstr "Simulasyon modu"
+
+#: src/fly.c:165
+msgid "Use VFR"
+msgstr ""
+
+#: src/fly.c:171
+msgid "Use IFR"
+msgstr ""
+
+#: src/fly.c:181
+msgid "max. horizontal deviation "
+msgstr ""
+
+#: src/fly.c:183
+msgid "max. vertical deviation "
+msgstr ""
+
+#: src/fly.c:198
+msgid "disable vert. deviation warning above 5000ft MSL"
+msgstr ""
+
+#: src/nautic.c:103
+#, fuzzy
+msgid "Nautic settings"
+msgstr "eitli ayarlar"
+
+#. if (debug)
+#: src/gpssql.c:215
+#, c-format
+msgid ""
+"\n"
+"SQL: connected to %s as %s using %s\n"
+msgstr ""
+
+#: src/gpssql.c:278
+#, c-format
+msgid "rows inserted: %d\n"
+msgstr ""
+
+#: src/gpssql.c:293
+#, c-format
+msgid "last index: %d\n"
+msgstr ""
+
+#: src/gpssql.c:314
+#, c-format
+msgid "rows deleted: %d\n"
+msgstr ""
+
+#: src/gpssql.c:366 src/gpssql.c:372
+#, c-format
+msgid "Loaded user defined icon %s\n"
+msgstr ""
+
+#: src/gpssql.c:455
+#, c-format
+msgid "%d(%d) rows read in %.2f seconds\n"
+msgstr ""
+
+#: src/friends.c:363
+#, fuzzy
+msgid "unknown"
+msgstr "Bilinmeyen"
+
+#: src/friendsd.c:472
+msgid "server: please don't run me as root\n"
+msgstr ""
+
+#: src/friendsd.c:484
+#, c-format
+msgid ""
+"\n"
+"Usage:\n"
+"   %s -n servername\n"
+"provides a name for your server\n"
+msgstr ""
+
+#: src/gpsnasamap.c:189
+#, c-format
+msgid "could not create output map file %s!\n"
+msgstr ""
+
+#. g_signal_connect (window, "destroy",
+#. G_CALLBACK (gtk_widget_destroyed), &window);
+#: src/gpsnasamap.c:204
+msgid "Creating map..."
+msgstr ""
+
+#: src/gpsnasamap.c:212
+msgid "Creating a temporary map from NASA satellite images"
+msgstr ""
+
+#: src/gpsnasamap.c:219
+#, c-format
+msgid "converting map for latitude: %f and longitude: %f ...\n"
+msgstr ""
+
+#: src/gpsnasamap.c:324
+msgid ""
+"\n"
+"You can permanently add this map file with following line in your\n"
+"map_koord.txt (rename the file!):\n"
+msgstr ""
+
+#: src/gpsserial.c:252
+msgid "waiting for thread to stop\n"
+msgstr ""
+
+#: src/gpsserial.c:275
+#, c-format
+msgid ""
+"\n"
+"error opening %s(%d)\n"
+msgstr ""
+
+#: src/gpsserial.c:278
+#, c-format
+msgid "successfull opened %s\n"
+msgstr ""
+
+#: src/gpsserial.c:284
+msgid "switching WAAS/EGNOS on\n"
+msgstr ""
+
+#: src/gpsserial.c:290
+msgid "switching WAAS/EGNOS off\n"
+msgstr ""
+
+#~ msgid "Set Mapblast as default download server"
+#~ msgstr "Mapblast' ntanml sunucu yap"
+
+#~ msgid "Sat level"
+#~ msgstr "Sat seviyesi"
+
+#, fuzzy
+#~ msgid "Simulation"
+#~ msgstr "Simulasyon modu"
+
+#, fuzzy
+#~ msgid "Sim.mode"
+#~ msgstr "Simulasyon modu"
+
+#~ msgid "Yes, please start gpsd"
+#~ msgstr "Evet ltfen gpsd'yi balat"
+
+#~ msgid "No, start simulation"
+#~ msgstr "Hayr, simulasyonu balat"
+
+#~ msgid ""
+#~ "Neither gpsd nor GARMIN device detected!\n"
+#~ "Should I start gpsd (NMEA mode) for you?"
+#~ msgstr ""
+#~ "gpsd veya GARMIN aleti alglanamad!\n"
+#~ "gpsd'yi (NMEA modunda) balataym m?"
+
+#~ msgid "-n X  Select display name on friends server, X is i.e. Fritz\n"
+#~ msgstr "-n X  Arkadalar sunucusundaki isminizi sein, X rnein Fritz'tir\n"
+
+#~ msgid "UTC "
+#~ msgstr "UTC"
+
+#~ msgid "Cancel"
+#~ msgstr "ptal"
+
+#, fuzzy
+#~ msgid "/Misc. Menu/Maps"
+#~ msgstr "Bir yol dosyas sein"
+
+#~ msgid "Import"
+#~ msgstr "Dardan veri al"
+
+#~ msgid "Let you import and calibrate your own map"
+#~ msgstr "Dardan harita almana ve dzenlemene izin ver"
+
+#, fuzzy
+#~ msgid "/Operations Menu"
+#~ msgstr "Bir yol dosyas sein"
+
+#, fuzzy
+#~ msgid "/ Messages"
+#~ msgstr "  leti  "
+
+#, fuzzy
+#~ msgid "/ Help"
+#~ msgstr "YArdm"
+
+#~ msgid "Load and display a previous stored track file"
+#~ msgstr "Bir nceki kaydedilmi yol dosyasn ykle ve gster"
+
+#~ msgid "Distance to "
+#~ msgstr "Uzaklk"
+
+#, fuzzy
+#~ msgid "Sel:"
+#~ msgstr "Hedefi sein"
+
+#~ msgid "Friendsicon loaded"
+#~ msgstr " Friendsicon yklendi:"
+
+#, fuzzy
+#~ msgid "Status window"
+#~ msgstr "GPS ayarlar"
+
+#, fuzzy
+#~ msgid "can't open socket for friendsserver "
+#~ msgstr "port iin socket alamad "
+
+#, fuzzy
+#~ msgid "Slow CPU"
+#~ msgstr "WP'yi gster"
+
+#, fuzzy
+#~ msgid "UTC (GPS)"
+#~ msgstr "UTC"
+
+#~ msgid "Ok"
+#~ msgstr "Tamam"
+
+#, fuzzy
+#~ msgid ""
+#~ "GpsDrive Help\n"
+#~ "\n"
+#~ msgstr "GpsDrive Mens"
+
+#, fuzzy
+#~ msgid "+    : Zoom in\n"
+#~ msgstr "Yaknlatr"
+
+#, fuzzy
+#~ msgid "-    : Zoom out\n"
+#~ msgstr "Uzaklatr"
+
+#, fuzzy
+#~ msgid "t    : select target\n"
+#~ msgstr "Hedefi sein"
+
+#, fuzzy
+#~ msgid "d    : download map\n"
+#~ msgstr "Harita indir"
+
+#, fuzzy
+#~ msgid "l    : load track\n"
+#~ msgstr "Yol ykle"
+
+#, fuzzy
+#~ msgid "h    : show help\n"
+#~ msgstr "-h    bu yardm gsterir\n"
+
+#~ msgid "   Ok   "
+#~ msgstr "  Tamam  "
+
+#~ msgid "Close"
+#~ msgstr "Kapat"
+
+#~ msgid "OK"
+#~ msgstr "Tamam"
+
+#~ msgid "Quit"
+#~ msgstr "k"
+
+#~ msgid "Load track"
+#~ msgstr "Yol ykle"
+
+#~ msgid "Setup"
+#~ msgstr "Kur"
+
+#, fuzzy
+#~ msgid "not"
+#~ msgstr "knots"
+
+#, fuzzy
+#~ msgid ""
+#~ "GpsDrive Help\n"
+#~ "\n"
+#~ "GPSDRIVE (c) 2001,2002 Fritz Ganter <ganter at ganter.at>\n"
+#~ "\n"
+#~ "-------------------------------------------------\n"
+#~ "Website: www.kraftvoll.at/software\n"
+#~ "Disclaimer: Please do not use for navigation. \n"
+#~ "\n"
+#~ "*************************************************\n"
+#~ "\n"
+#~ "See the manpage for program details\n"
+#~ "\n"
+#~ "Mouse control (clicking on the map):\n"
+#~ "===================================\n"
+#~ "Left mouse button         : Set position (usefull in simulation mode)\n"
+#~ "Right mouse button        : Set target directly on the map\n"
+#~ "Middle mouse button       : Display position again\n"
+#~ "Shift left mouse button   : smaller map\n"
+#~ "Shift right mouse button  : larger map\n"
+#~ "Control left mouse button : Set a waypoint (mouse position) on the map\n"
+#~ "Control right mouse button: Set a waypoint at current position on the "
+#~ "map\n"
+#~ "\n"
+#~ "Short cuts:\n"
+#~ "===================================\n"
+#~ "+                         : Zoom in\n"
+#~ "-                         : Zoom out\n"
+#~ "s                         : larger map\n"
+#~ "a                         : smaller map\n"
+#~ "t                         : select target\n"
+#~ "d                         : download map\n"
+#~ "i                         : import map\n"
+#~ "l                         : load track\n"
+#~ "h                         : show help\n"
+#~ "q                         : quit program\n"
+#~ "b                         : toggle auto best map\n"
+#~ "w                         : toggle show waypoints\n"
+#~ "o                         : toggle show tracks\n"
+#~ "u                         : enter setup menu\n"
+#~ "n                         : in nightmode: toogles night display on/off\n"
+#~ "j                         : switch to next waypoint in route mode\n"
+#~ "p                         : switch to position mode\n"
+#~ "x                         : add waypoint at current position\n"
+#~ "\n"
+#~ "Suggestions welcome!\n"
+#~ "\n"
+#~ "Have a lot of fun!\n"
+#~ "\n"
+#~ msgstr ""
+#~ "GpsDrive Yardm\n"
+#~ "\n"
+#~ "GPSDRIVE (c) 2001,2002 Fritz Ganter <ganter at ganter.at>\n"
+#~ "\n"
+#~ "-------------------------------------------------\n"
+#~ "Websitesi: www.kraftvoll.at/software\n"
+#~ "Disclaimer: Please do not use for navigation. \n"
+#~ "\n"
+#~ "*************************************************\n"
+#~ "\n"
+#~ "Programn detaylar iin man dosyasna baknz\n"
+#~ "\n"
+#~ "Fare kontrolleri (haritay tklarken):\n"
+#~ "===================================\n"
+#~ "Sol fare tuu\t         : Pozisyonu ayarla (simulasyon modunda faydaldr)\n"
+#~ "Sa fare tuu\t         : Hedefi dorudanharitada ayarla\n"
+#~ "Orta fare tuu\t \t   : Pozisyonu tekrar gster\n"
+#~ "Shift sol fare tuu\t   : daha kk harita\n"
+#~ "Shift sa fare tuu\t   : daha byk harita\n"
+#~ "Control sol fare tuu\t   : Haritada bir yol noktas ayarla (fare "
+#~ "pozisyonu) \n"
+#~ "Control sa fare tuu\t   : Haritadaki mevcut pozisyon bir yol noktas "
+#~ "ayarla\n"
+#~ "\n"
+#~ "Ksayollar:\n"
+#~ "===================================\n"
+#~ "+                         : Yaknlatr\n"
+#~ "-                         : Uzaklatr\n"
+#~ "s                         : daha byk harita\n"
+#~ "a                         : daha kk harita\n"
+#~ "t                         : hedef se\n"
+#~ "d                         : harita indir\n"
+#~ "i                         : dardan harita al\n"
+#~ "l                         : yol ykle\n"
+#~ "h                         : yardm gster\n"
+#~ "q                         : programdan k\n"
+#~ "b                         : toggle auto best map\n"
+#~ "w                         : toggle show waypoints\n"
+#~ "o                         : toggle show tracks\n"
+#~ "u                         : ayar mensne gir\n"
+#~ "x                         : mevcut pozisyonda yolnoktas ekle\n"
+#~ "\n"
+#~ "nerilerinizi bekliyoruz!\n"
+#~ "\n"
+#~ "yi elenceler!\n"
+#~ "\n"
+
+#~ msgid "No GPS Fix found!"
+#~ msgstr "GPS sabitlenmesi bulunamad"
+
+#, fuzzy
+#~ msgid "Waypoint files"
+#~ msgstr "Kullanlacak yolnoktas dosyas"
+
+#, fuzzy
+#~ msgid "Nightmode off"
+#~ msgstr "Haritadaki glgeleri etkin yapar veya kaldrr"
+
+#~ msgid "GpsDrive Menu"
+#~ msgstr "GpsDrive Mens"
+
+#~ msgid "GpsDrive Settings"
+#~ msgstr "GpsDrive Ayarlar"
+
+#, fuzzy
+#~ msgid "Starting point"
+#~ msgstr "Rotay balat"
+
+#~ msgid "Daheim"
+#~ msgstr "Daheim"
+
+#, fuzzy
+#~ msgid "Select waypoints for a route"
+#~ msgstr "Haritada yolnoktalarn gster"

Added: packages/gpsdrive/branches/etch/src/LatLong-UTMconversion.c
===================================================================
--- packages/gpsdrive/branches/etch/src/LatLong-UTMconversion.c	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/LatLong-UTMconversion.c	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,135 @@
+//LatLong- UTM conversion.cpp
+//Lat Long - UTM, UTM - Lat Long conversions
+//This file originated from http://www.gpsy.com/gpsinfo/geotoutm/
+// converted to C code by Russell Harding Jan, 2004  -- hardingr at cunap dot com
+
+
+#include <math.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include "LatLong-UTMconversion.h"
+
+
+/*Reference ellipsoids derived from Peter H. Dana's website- 
+http://www.utexas.edu/depts/grg/gcraft/notes/datum/elist.html
+Department of Geography, University of Texas at Austin
+Internet: pdana at mail.utexas.edu
+3/22/95
+
+Source
+Defense Mapping Agency. 1987b. DMA Technical Report: Supplement to Department of Defense World Geodetic System
+1984 Technical Report. Part I and II. Washington, DC: Defense Mapping Agency
+*/
+const double PI = 3.14159265;
+const double FOURTHPI = 3.14159265 / 4.0;
+const double deg2rad = 3.14159265 / 180.0;
+const double rad2deg = 180.0 / 3.14159265;
+
+
+
+
+void LLtoUTM(const float Lat, const float Long, 
+			 float *UTMNorthing, float *UTMEasting, int* UTMZone)
+{
+//converts lat/long to UTM coords.  Equations from USGS Bulletin 1532 
+//East Longitudes are positive, West longitudes are negative. 
+//North latitudes are positive, South latitudes are negative
+//Lat and Long are in decimal degrees
+	//Written by Chuck Gantz- chuck.gantz at globalstar.com
+
+  //	float a = ellipsoid[ReferenceEllipsoid].EquatorialRadius;
+  float a = 6378137.0;
+  //    float eccSquared = ellipsoid[ReferenceEllipsoid].eccentricitySquared;
+  float eccSquared = 0.00669438;
+	float k0 = 0.9996;
+
+	float LongOrigin;
+	float eccPrimeSquared;
+	float N, T, C, A, M;
+	
+//Make sure the longitude is between -180.00 .. 179.9
+	float LongTemp = (Long+180)-(int)((Long+180)/360)*360-180; // -180.00 .. 179.9;
+
+	float LatRad = Lat*deg2rad;
+	float LongRad = LongTemp*deg2rad;
+	float LongOriginRad;
+	float Test;
+	int    ZoneNumber;
+
+	ZoneNumber = (int)((LongTemp + 180)/6) + 1;
+  
+	if( Lat >= 56.0 && Lat < 64.0 && LongTemp >= 3.0 && LongTemp < 12.0 )
+		ZoneNumber = 32;
+
+  // Special zones for Svalbard
+	if( Lat >= 72.0 && Lat < 84.0 ) 
+	{
+	  if(      LongTemp >= 0.0  && LongTemp <  9.0 ) ZoneNumber = 31;
+	  else if( LongTemp >= 9.0  && LongTemp < 21.0 ) ZoneNumber = 33;
+	  else if( LongTemp >= 21.0 && LongTemp < 33.0 ) ZoneNumber = 35;
+	  else if( LongTemp >= 33.0 && LongTemp < 42.0 ) ZoneNumber = 37;
+	 }
+	LongOrigin = (ZoneNumber - 1)*6 - 180 + 3;  //+3 puts origin in middle of zone
+	LongOriginRad = LongOrigin * deg2rad;
+
+	//compute the UTM Zone from the latitude and longitude
+	//	sprintf(UTMZone, "%f%c", ZoneNumber, UTMLetterDesignator(Lat));
+	
+	*UTMZone=ZoneNumber;
+
+	eccPrimeSquared = (eccSquared)/(1-eccSquared);
+
+	N = a/sqrt(1-eccSquared*sin(LatRad)*sin(LatRad));
+	T = tan(LatRad)*tan(LatRad);
+	C = eccPrimeSquared*cos(LatRad)*cos(LatRad);
+	A = cos(LatRad)*(LongRad-LongOriginRad);
+
+	M = a*((1-eccSquared/4 - 3*eccSquared*eccSquared/64 - 5*eccSquared*eccSquared*eccSquared/256)*LatRad 
+	    - (3*eccSquared/8 + 3*eccSquared*eccSquared/32 + 45*eccSquared*eccSquared*eccSquared/1024)*sin(2*LatRad)
+	    + (15*eccSquared*eccSquared/256 + 45*eccSquared*eccSquared*eccSquared/1024)*sin(4*LatRad) 
+	    - (35*eccSquared*eccSquared*eccSquared/3072)*sin(6*LatRad));
+	
+	*UTMEasting = (float)(k0*N*(A+(1-T+C)*A*A*A/6
+			     + (5-18*T+T*T+72*C-58*eccPrimeSquared)*A*A*A*A*A/120)
+			     + 500000.0);
+
+	Test = (float)(k0*(M+N*tan(LatRad)*(A*A/2+(5-T+9*C+4*C*C)*A*A*A*A/24
+				 + (61-58*T+T*T+600*C-330*eccPrimeSquared)*A*A*A*A*A*A/720)));
+	//	*UTMNorthing = (float)(k0*(M+N*tan(LatRad)*(A*A/2+(5-T+9*C+4*C*C)*A*A*A*A/24
+	//				 + (61-58*T+T*T+600*C-330*eccPrimeSquared)*A*A*A*A*A*A/720)));
+	*UTMNorthing = Test;
+	if(Lat < 0)
+		 *UTMNorthing += 10000000.0; //10000000 meter offset for southern hemisphere
+}
+
+char UTMLetterDesignator(float Lat)
+{
+//This routine determines the correct UTM letter designator for the given latitude
+//returns 'Z' if latitude is outside the UTM limits of 84N to 80S
+	//Written by Chuck Gantz- chuck.gantz at globalstar.com
+	char LetterDesignator;
+
+	if((84 >= Lat) && (Lat >= 72)) LetterDesignator = 'X';
+	else if((72 > Lat) && (Lat >= 64)) LetterDesignator = 'W';
+	else if((64 > Lat) && (Lat >= 56)) LetterDesignator = 'V';
+	else if((56 > Lat) && (Lat >= 48)) LetterDesignator = 'U';
+	else if((48 > Lat) && (Lat >= 40)) LetterDesignator = 'T';
+	else if((40 > Lat) && (Lat >= 32)) LetterDesignator = 'S';
+	else if((32 > Lat) && (Lat >= 24)) LetterDesignator = 'R';
+	else if((24 > Lat) && (Lat >= 16)) LetterDesignator = 'Q';
+	else if((16 > Lat) && (Lat >= 8)) LetterDesignator = 'P';
+	else if(( 8 > Lat) && (Lat >= 0)) LetterDesignator = 'N';
+	else if(( 0 > Lat) && (Lat >= -8)) LetterDesignator = 'M';
+	else if((-8> Lat) && (Lat >= -16)) LetterDesignator = 'L';
+	else if((-16 > Lat) && (Lat >= -24)) LetterDesignator = 'K';
+	else if((-24 > Lat) && (Lat >= -32)) LetterDesignator = 'J';
+	else if((-32 > Lat) && (Lat >= -40)) LetterDesignator = 'H';
+	else if((-40 > Lat) && (Lat >= -48)) LetterDesignator = 'G';
+	else if((-48 > Lat) && (Lat >= -56)) LetterDesignator = 'F';
+	else if((-56 > Lat) && (Lat >= -64)) LetterDesignator = 'E';
+	else if((-64 > Lat) && (Lat >= -72)) LetterDesignator = 'D';
+	else if((-72 > Lat) && (Lat >= -80)) LetterDesignator = 'C';
+	else LetterDesignator = 'Z'; //This is here as an error flag to show that the Latitude is outside the UTM limits
+
+	return LetterDesignator;
+}

Added: packages/gpsdrive/branches/etch/src/LatLong-UTMconversion.h
===================================================================
--- packages/gpsdrive/branches/etch/src/LatLong-UTMconversion.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/LatLong-UTMconversion.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,15 @@
+//LatLong- UTM conversion..h
+//definitions for lat/long to UTM and UTM to lat/lng conversions
+//This file originated from http://www.gpsy.com/gpsinfo/geotoutm/
+// converted to C code by Russell Harding Jan, 2004  -- hardingr at cunap dot com
+
+
+
+#ifndef LATLONGCONV
+#define LATLONGCONV
+
+void LLtoUTM(const float Lat, const float Long, 
+			 float *UTMNorthing, float *UTMEasting, int* UTMZone);
+char UTMLetterDesignator(float Lat);
+
+#endif

Added: packages/gpsdrive/branches/etch/src/Makefile.am
===================================================================
--- packages/gpsdrive/branches/etch/src/Makefile.am	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/Makefile.am	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,67 @@
+DEFS=@DEFS@ -I. -I$(srcdir) -I.. -DLOCALEDIR=\"${localedir}\" -DDATADIR=\"${datadir}\" -DLIBDIR=\"${libdir}\" -DFRIENDSSERVERVERSION=\"${FRIENDSSERVERVERSION}\" ${NOGARMIN} ${NOPLUGINS} ${USETELEATLAS}
+
+# DEFS=@DEFS@ -I. -I$(srcdir) -I.. -DLOCALEDIR=\"${localedir}\" -DDATADIR=\"${datadir}\" -DLIBDIR=\"${libdir}\" -DFRIENDSSERVERVERSION=\"${FRIENDSSERVERVERSION}\" ${NOGARMIN} ${NOPLUGINS} -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED 
+
+includedir = mysql
+
+if DISABLEGARMIN
+PRG1=
+else 
+PRG1=garble
+endif
+bin_PROGRAMS = $(PRG1) gpsdrive gpsd  friendsd2 
+LIBS=
+
+if ENABLETELEATLAS
+GPSNAVLIB=-lgpsnavlib
+else
+GPSNAVLIB=
+endif
+
+# gpsdrive_LDADD= $(GLIB_LIBS) $(GTK_LIBS) $(PIXLIBS)
+#gpsdrive_LDADD=@LIBS@
+gpsdrive_LDADD=@LIBS@ $(LIBADD_DL) $(GPSNAVLIB)
+#gpsdrive_LDADD= @XLIBS@
+# gpsdrive_CFLAGS=@CFLAGS@
+# libgpsd_a_CFLAGS=@CFLAGS@
+# CFLAGS=
+noinst_LIBRARIES = libgpsd.a
+if DISABLEPLUGINS
+else
+lib_LTLIBRARIES =libfly.la libnautic.la
+libfly_la_SOURCES=fly.c
+libfly_la_LDFLAGS = -version-info 2:0:0
+libnautic_la_SOURCES=nautic.c
+libnautic_la_LDFLAGS = -version-info 2:0:0
+endif
+
+libgpsd_a_SOURCES=netlib.c nmea_parse.c serial.c  tm.c em.c  \
+	gps.h version.h 
+gpsd_SOURCES= gpsd.c  gpsd.h nmea.h version.h
+gpsd_LDADD= -lgpsd -lm
+gpsd_LDFLAGS = -L. 
+
+
+bin_SCRIPTS=wpcvt wpget  gpsfetchmap.pl gpspoint2gpsdrive.pl geo-nearest geocache2way geo-code gpssql_backup.sh gpssql_restore.sh gpsreplay gpssmswatch
+
+if DISABLEGARMIN
+PRGS = gpsdrive.c splash.c navigation.c speech_out.c friends.c battery.c track.c settings.c  power.h battery.h track.h gpsdrive.h gpssql.c gpskismet.c ../config.h icons.h gettext.h LatLong-UTMconversion.c LatLong-UTMconversion.h compass.h gpsserial.c gpsnasamap.c gpsmisc.c gpsproto.h talogo.h
+else 
+PRGS = gpsdrive.c splash.c navigation.c speech_out.c friends.c battery.c track.c settings.c  power.h battery.h track.h gpsdrive.h garmin_data.cpp garmin_serial_unix.cpp garmin_application.cpp garmin_link.cpp garmin_util.cpp gpsdrivegarble.cpp garmin_legacy.cpp garmin_link.h    garmin_serial_unix.h garmin_application.h garmin_packet.h  garmin_types.h garmin_command.h garmin_phys.h garmin_util.h garmin_error.h garmin_serial.h gpssql.c gpskismet.c ../config.h icons.h garmin_legacy.h garmin_data.h gettext.h LatLong-UTMconversion.c LatLong-UTMconversion.h compass.h gpsserial.c gpsnasamap.c gpsmisc.c gpsproto.h talogo.h
+endif
+gpsdrive_SOURCES= $(PRGS)
+
+
+if DISABLEGARMIN
+else
+garble_SOURCES=garble.cpp garmin_legacy.cpp garmin_data.cpp garmin_serial_unix.cpp garmin_application.cpp garmin_link.cpp garmin_util.cpp
+endif
+
+friendsd2_SOURCES=friendsd.c
+friendsd2_LDADD = @LIBS@ $(LDADD) $(LIBINTL)
+EXTRA_DIST = mysql wpcvt wpget  gpsfetchmap.pl gpsdrive.spec gpsdrive-nosql.spec map_koord.txt gpsdrivesplash.png gpsicon.png  gpsiconbt.png gpsdrivemini.png friendsicon.png  gpspoint2gpsdrive.pl  geo-nearest geocache2way geo-code gpssql_backup.sh gpssql_restore.sh  top_GPSWORLD.jpg gpsreplay gpssmswatch gpsdriveanim.gif
+gpsdrivedir = $(datadir)/gpsdrive
+gpsdrive_DATA = gpsdrivesplash.png friendsicon.png top_GPSWORLD.jpg gpsdrivemini.png gpsicon.png  gpsiconbt.png gpsdriveanim.gif
+
+distpixmapdir = $(datadir)/pixmaps
+distpixmap_DATA = gpsicon.png

Added: packages/gpsdrive/branches/etch/src/Makefile.in
===================================================================
--- packages/gpsdrive/branches/etch/src/Makefile.in	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/Makefile.in	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,797 @@
+# Makefile.in generated by automake 1.7.6 from Makefile.am.
+# @configure_input@
+
+# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
+# 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.
+
+ at 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 = :
+host_triplet = @host@
+ACLOCAL = @ACLOCAL@
+AMDEP_FALSE = @AMDEP_FALSE@
+AMDEP_TRUE = @AMDEP_TRUE@
+AMTAR = @AMTAR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+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@
+DEFS = @DEFS@ -I. -I$(srcdir) -I.. -DLOCALEDIR=\"${localedir}\" -DDATADIR=\"${datadir}\" -DLIBDIR=\"${libdir}\" -DFRIENDSSERVERVERSION=\"${FRIENDSSERVERVERSION}\" ${NOGARMIN} ${NOPLUGINS} ${USETELEATLAS}
+DEPDIR = @DEPDIR@
+DISABLEGARMIN_FALSE = @DISABLEGARMIN_FALSE@
+DISABLEGARMIN_TRUE = @DISABLEGARMIN_TRUE@
+DISABLEPLUGINS_FALSE = @DISABLEPLUGINS_FALSE@
+DISABLEPLUGINS_TRUE = @DISABLEPLUGINS_TRUE@
+ECHO = @ECHO@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+ENABLETELEATLAS_FALSE = @ENABLETELEATLAS_FALSE@
+ENABLETELEATLAS_TRUE = @ENABLETELEATLAS_TRUE@
+EXEEXT = @EXEEXT@
+FRIENDSSERVERVERSION = @FRIENDSSERVERVERSION@
+GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
+GMOFILES = @GMOFILES@
+GMSGFMT = @GMSGFMT@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INSTOBJEXT = @INSTOBJEXT@
+INTLLIBS = @INTLLIBS@
+LDFLAGS = @LDFLAGS@
+LIBADD_DL = @LIBADD_DL@
+LIBOBJS = @LIBOBJS@
+LIBS = 
+LIBTOOL = @LIBTOOL@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MKINSTALLDIRS = @MKINSTALLDIRS@
+MSGFMT = @MSGFMT@
+MSGMERGE = @MSGMERGE@
+NOGARMIN = @NOGARMIN@
+NOPLUGINS = @NOPLUGINS@
+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@
+PCRE_CONFIG = @PCRE_CONFIG@
+PKGCONFIG_CFLAGS = @PKGCONFIG_CFLAGS@
+PKGCONFIG_LIBS = @PKGCONFIG_LIBS@
+PKG_CONFIG = @PKG_CONFIG@
+POFILES = @POFILES@
+POSUB = @POSUB@
+PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
+PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
+RANLIB = @RANLIB@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+USETELEATLAS = @USETELEATLAS@
+USE_NLS = @USE_NLS@
+VERSION = @VERSION@
+XGETTEXT = @XGETTEXT@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_RANLIB = @ac_ct_RANLIB@
+ac_ct_STRIP = @ac_ct_STRIP@
+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 = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+datadir = @datadir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+
+
+# DEFS=@DEFS@ -I. -I$(srcdir) -I.. -DLOCALEDIR=\"${localedir}\" -DDATADIR=\"${datadir}\" -DLIBDIR=\"${libdir}\" -DFRIENDSSERVERVERSION=\"${FRIENDSSERVERVERSION}\" ${NOGARMIN} ${NOPLUGINS} -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED 
+includedir = mysql
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+oldincludedir = @oldincludedir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+ at DISABLEGARMIN_FALSE@PRG1 = garble
+
+ at DISABLEGARMIN_TRUE@PRG1 = 
+bin_PROGRAMS = $(PRG1) gpsdrive gpsd  friendsd2 
+ at ENABLETELEATLAS_FALSE@GPSNAVLIB = 
+
+ at ENABLETELEATLAS_TRUE@GPSNAVLIB = -lgpsnavlib
+
+# gpsdrive_LDADD= $(GLIB_LIBS) $(GTK_LIBS) $(PIXLIBS)
+#gpsdrive_LDADD=@LIBS@
+gpsdrive_LDADD = @LIBS@ $(LIBADD_DL) $(GPSNAVLIB)
+#gpsdrive_LDADD= @XLIBS@
+# gpsdrive_CFLAGS=@CFLAGS@
+# libgpsd_a_CFLAGS=@CFLAGS@
+# CFLAGS=
+noinst_LIBRARIES = libgpsd.a
+ at DISABLEPLUGINS_FALSE@lib_LTLIBRARIES = libfly.la libnautic.la
+ at DISABLEPLUGINS_FALSE@libfly_la_SOURCES = fly.c
+ at DISABLEPLUGINS_FALSE@libfly_la_LDFLAGS = -version-info 2:0:0
+ at DISABLEPLUGINS_FALSE@libnautic_la_SOURCES = nautic.c
+ at DISABLEPLUGINS_FALSE@libnautic_la_LDFLAGS = -version-info 2:0:0
+
+libgpsd_a_SOURCES = netlib.c nmea_parse.c serial.c  tm.c em.c  \
+	gps.h version.h 
+
+gpsd_SOURCES = gpsd.c  gpsd.h nmea.h version.h
+gpsd_LDADD = -lgpsd -lm
+gpsd_LDFLAGS = -L. 
+
+bin_SCRIPTS = wpcvt wpget  gpsfetchmap.pl gpspoint2gpsdrive.pl geo-nearest geocache2way geo-code gpssql_backup.sh gpssql_restore.sh gpsreplay gpssmswatch
+ at DISABLEGARMIN_FALSE@PRGS = gpsdrive.c splash.c navigation.c speech_out.c friends.c battery.c track.c settings.c  power.h battery.h track.h gpsdrive.h garmin_data.cpp garmin_serial_unix.cpp garmin_application.cpp garmin_link.cpp garmin_util.cpp gpsdrivegarble.cpp garmin_legacy.cpp garmin_link.h    garmin_serial_unix.h garmin_application.h garmin_packet.h  garmin_types.h garmin_command.h garmin_phys.h garmin_util.h garmin_error.h garmin_serial.h gpssql.c gpskismet.c ../config.h icons.h garmin_legacy.h garmin_data.h gettext.h LatLong-UTMconversion.c LatLong-UTMconversion.h compass.h gpsserial.c gpsnasamap.c gpsmisc.c gpsproto.h talogo.h
+
+ at DISABLEGARMIN_TRUE@PRGS = gpsdrive.c splash.c navigation.c speech_out.c friends.c battery.c track.c settings.c  power.h battery.h track.h gpsdrive.h gpssql.c gpskismet.c ../config.h icons.h gettext.h LatLong-UTMconversion.c LatLong-UTMconversion.h compass.h gpsserial.c gpsnasamap.c gpsmisc.c gpsproto.h talogo.h
+gpsdrive_SOURCES = $(PRGS)
+
+ at DISABLEGARMIN_FALSE@garble_SOURCES = garble.cpp garmin_legacy.cpp garmin_data.cpp garmin_serial_unix.cpp garmin_application.cpp garmin_link.cpp garmin_util.cpp
+
+friendsd2_SOURCES = friendsd.c
+friendsd2_LDADD = @LIBS@ $(LDADD) $(LIBINTL)
+EXTRA_DIST = mysql wpcvt wpget  gpsfetchmap.pl gpsdrive.spec gpsdrive-nosql.spec map_koord.txt gpsdrivesplash.png gpsicon.png  gpsiconbt.png gpsdrivemini.png friendsicon.png  gpspoint2gpsdrive.pl  geo-nearest geocache2way geo-code gpssql_backup.sh gpssql_restore.sh  top_GPSWORLD.jpg gpsreplay gpssmswatch gpsdriveanim.gif
+gpsdrivedir = $(datadir)/gpsdrive
+gpsdrive_DATA = gpsdrivesplash.png friendsicon.png top_GPSWORLD.jpg gpsdrivemini.png gpsicon.png  gpsiconbt.png gpsdriveanim.gif
+
+distpixmapdir = $(datadir)/pixmaps
+distpixmap_DATA = gpsicon.png
+subdir = src
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+LIBRARIES = $(noinst_LIBRARIES)
+
+libgpsd_a_AR = $(AR) cru
+libgpsd_a_LIBADD =
+am_libgpsd_a_OBJECTS = netlib.$(OBJEXT) nmea_parse.$(OBJEXT) \
+	serial.$(OBJEXT) tm.$(OBJEXT) em.$(OBJEXT)
+libgpsd_a_OBJECTS = $(am_libgpsd_a_OBJECTS)
+LTLIBRARIES = $(lib_LTLIBRARIES)
+
+libfly_la_LIBADD =
+am__libfly_la_SOURCES_DIST = fly.c
+ at DISABLEPLUGINS_FALSE@am_libfly_la_OBJECTS = fly.lo
+libfly_la_OBJECTS = $(am_libfly_la_OBJECTS)
+libnautic_la_LIBADD =
+am__libnautic_la_SOURCES_DIST = nautic.c
+ at DISABLEPLUGINS_FALSE@am_libnautic_la_OBJECTS = nautic.lo
+libnautic_la_OBJECTS = $(am_libnautic_la_OBJECTS)
+ at DISABLEGARMIN_TRUE@bin_PROGRAMS = gpsdrive$(EXEEXT) gpsd$(EXEEXT) \
+ at DISABLEGARMIN_TRUE@	friendsd2$(EXEEXT)
+ at DISABLEGARMIN_FALSE@bin_PROGRAMS = garble$(EXEEXT) gpsdrive$(EXEEXT) \
+ at DISABLEGARMIN_FALSE@	gpsd$(EXEEXT) friendsd2$(EXEEXT)
+PROGRAMS = $(bin_PROGRAMS)
+
+am_friendsd2_OBJECTS = friendsd.$(OBJEXT)
+friendsd2_OBJECTS = $(am_friendsd2_OBJECTS)
+friendsd2_DEPENDENCIES =
+friendsd2_LDFLAGS =
+am__garble_SOURCES_DIST = garble.cpp garmin_legacy.cpp garmin_data.cpp \
+	garmin_serial_unix.cpp garmin_application.cpp garmin_link.cpp \
+	garmin_util.cpp
+ at DISABLEGARMIN_FALSE@am_garble_OBJECTS = garble.$(OBJEXT) \
+ at DISABLEGARMIN_FALSE@	garmin_legacy.$(OBJEXT) \
+ at DISABLEGARMIN_FALSE@	garmin_data.$(OBJEXT) \
+ at DISABLEGARMIN_FALSE@	garmin_serial_unix.$(OBJEXT) \
+ at DISABLEGARMIN_FALSE@	garmin_application.$(OBJEXT) \
+ at DISABLEGARMIN_FALSE@	garmin_link.$(OBJEXT) \
+ at DISABLEGARMIN_FALSE@	garmin_util.$(OBJEXT)
+garble_OBJECTS = $(am_garble_OBJECTS)
+garble_LDADD = $(LDADD)
+garble_LDFLAGS =
+am_gpsd_OBJECTS = gpsd.$(OBJEXT)
+gpsd_OBJECTS = $(am_gpsd_OBJECTS)
+gpsd_DEPENDENCIES =
+am__gpsdrive_SOURCES_DIST = gpsdrive.c splash.c navigation.c \
+	speech_out.c friends.c battery.c track.c settings.c power.h \
+	battery.h track.h gpsdrive.h garmin_data.cpp \
+	garmin_serial_unix.cpp garmin_application.cpp garmin_link.cpp \
+	garmin_util.cpp gpsdrivegarble.cpp garmin_legacy.cpp \
+	garmin_link.h garmin_serial_unix.h garmin_application.h \
+	garmin_packet.h garmin_types.h garmin_command.h garmin_phys.h \
+	garmin_util.h garmin_error.h garmin_serial.h gpssql.c \
+	gpskismet.c ../config.h icons.h garmin_legacy.h garmin_data.h \
+	gettext.h LatLong-UTMconversion.c LatLong-UTMconversion.h \
+	compass.h gpsserial.c gpsnasamap.c gpsmisc.c gpsproto.h \
+	talogo.h
+ at DISABLEGARMIN_TRUE@am__objects_1 = gpsdrive.$(OBJEXT) splash.$(OBJEXT) \
+ at DISABLEGARMIN_TRUE@	navigation.$(OBJEXT) speech_out.$(OBJEXT) \
+ at DISABLEGARMIN_TRUE@	friends.$(OBJEXT) battery.$(OBJEXT) \
+ at DISABLEGARMIN_TRUE@	track.$(OBJEXT) settings.$(OBJEXT) \
+ at DISABLEGARMIN_TRUE@	gpssql.$(OBJEXT) gpskismet.$(OBJEXT) \
+ at DISABLEGARMIN_TRUE@	LatLong-UTMconversion.$(OBJEXT) \
+ at DISABLEGARMIN_TRUE@	gpsserial.$(OBJEXT) gpsnasamap.$(OBJEXT) \
+ at DISABLEGARMIN_TRUE@	gpsmisc.$(OBJEXT)
+ at DISABLEGARMIN_FALSE@am__objects_1 = gpsdrive.$(OBJEXT) splash.$(OBJEXT) \
+ at DISABLEGARMIN_FALSE@	navigation.$(OBJEXT) speech_out.$(OBJEXT) \
+ at DISABLEGARMIN_FALSE@	friends.$(OBJEXT) battery.$(OBJEXT) \
+ at DISABLEGARMIN_FALSE@	track.$(OBJEXT) settings.$(OBJEXT) \
+ at DISABLEGARMIN_FALSE@	garmin_data.$(OBJEXT) \
+ at DISABLEGARMIN_FALSE@	garmin_serial_unix.$(OBJEXT) \
+ at DISABLEGARMIN_FALSE@	garmin_application.$(OBJEXT) \
+ at DISABLEGARMIN_FALSE@	garmin_link.$(OBJEXT) \
+ at DISABLEGARMIN_FALSE@	garmin_util.$(OBJEXT) \
+ at DISABLEGARMIN_FALSE@	gpsdrivegarble.$(OBJEXT) \
+ at DISABLEGARMIN_FALSE@	garmin_legacy.$(OBJEXT) gpssql.$(OBJEXT) \
+ at DISABLEGARMIN_FALSE@	gpskismet.$(OBJEXT) \
+ at DISABLEGARMIN_FALSE@	LatLong-UTMconversion.$(OBJEXT) \
+ at DISABLEGARMIN_FALSE@	gpsserial.$(OBJEXT) gpsnasamap.$(OBJEXT) \
+ at DISABLEGARMIN_FALSE@	gpsmisc.$(OBJEXT)
+am_gpsdrive_OBJECTS = $(am__objects_1)
+gpsdrive_OBJECTS = $(am_gpsdrive_OBJECTS)
+ at ENABLETELEATLAS_TRUE@gpsdrive_DEPENDENCIES =
+ at ENABLETELEATLAS_FALSE@gpsdrive_DEPENDENCIES =
+gpsdrive_LDFLAGS =
+SCRIPTS = $(bin_SCRIPTS)
+
+
+DEFAULT_INCLUDES =  -I. -I$(srcdir) -I$(top_builddir)
+depcomp = $(SHELL) $(top_srcdir)/depcomp
+am__depfiles_maybe = depfiles
+ at AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/LatLong-UTMconversion.Po \
+ at AMDEP_TRUE@	./$(DEPDIR)/battery.Po ./$(DEPDIR)/em.Po \
+ at AMDEP_TRUE@	./$(DEPDIR)/fly.Plo ./$(DEPDIR)/friends.Po \
+ at AMDEP_TRUE@	./$(DEPDIR)/friendsd.Po ./$(DEPDIR)/garble.Po \
+ at AMDEP_TRUE@	./$(DEPDIR)/garmin_application.Po \
+ at AMDEP_TRUE@	./$(DEPDIR)/garmin_data.Po \
+ at AMDEP_TRUE@	./$(DEPDIR)/garmin_legacy.Po \
+ at AMDEP_TRUE@	./$(DEPDIR)/garmin_link.Po \
+ at AMDEP_TRUE@	./$(DEPDIR)/garmin_serial_unix.Po \
+ at AMDEP_TRUE@	./$(DEPDIR)/garmin_util.Po ./$(DEPDIR)/gpsd.Po \
+ at AMDEP_TRUE@	./$(DEPDIR)/gpsdrive.Po \
+ at AMDEP_TRUE@	./$(DEPDIR)/gpsdrivegarble.Po \
+ at AMDEP_TRUE@	./$(DEPDIR)/gpskismet.Po ./$(DEPDIR)/gpsmisc.Po \
+ at AMDEP_TRUE@	./$(DEPDIR)/gpsnasamap.Po ./$(DEPDIR)/gpsserial.Po \
+ at AMDEP_TRUE@	./$(DEPDIR)/gpssql.Po ./$(DEPDIR)/nautic.Plo \
+ at AMDEP_TRUE@	./$(DEPDIR)/navigation.Po ./$(DEPDIR)/netlib.Po \
+ at AMDEP_TRUE@	./$(DEPDIR)/nmea_parse.Po ./$(DEPDIR)/serial.Po \
+ at AMDEP_TRUE@	./$(DEPDIR)/settings.Po ./$(DEPDIR)/speech_out.Po \
+ at AMDEP_TRUE@	./$(DEPDIR)/splash.Po ./$(DEPDIR)/tm.Po \
+ at AMDEP_TRUE@	./$(DEPDIR)/track.Po
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
+	$(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+CCLD = $(CC)
+LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+	$(AM_LDFLAGS) $(LDFLAGS) -o $@
+CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+	$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
+LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) \
+	$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
+	$(AM_CXXFLAGS) $(CXXFLAGS)
+CXXLD = $(CXX)
+CXXLINK = $(LIBTOOL) --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \
+	$(AM_LDFLAGS) $(LDFLAGS) -o $@
+DIST_SOURCES = $(libgpsd_a_SOURCES) $(am__libfly_la_SOURCES_DIST) \
+	$(am__libnautic_la_SOURCES_DIST) $(friendsd2_SOURCES) \
+	$(am__garble_SOURCES_DIST) $(gpsd_SOURCES) \
+	$(am__gpsdrive_SOURCES_DIST)
+DATA = $(distpixmap_DATA) $(gpsdrive_DATA)
+
+DIST_COMMON = Makefile.am Makefile.in
+SOURCES = $(libgpsd_a_SOURCES) $(libfly_la_SOURCES) $(libnautic_la_SOURCES) $(friendsd2_SOURCES) $(garble_SOURCES) $(gpsd_SOURCES) $(gpsdrive_SOURCES)
+
+all: all-am
+
+.SUFFIXES:
+.SUFFIXES: .c .cpp .lo .o .obj
+$(srcdir)/Makefile.in:  Makefile.am  $(top_srcdir)/configure.ac $(ACLOCAL_M4)
+	cd $(top_srcdir) && \
+	  $(AUTOMAKE) --gnu  src/Makefile
+Makefile:  $(srcdir)/Makefile.in  $(top_builddir)/config.status
+	cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
+
+AR = ar
+
+clean-noinstLIBRARIES:
+	-test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
+libgpsd.a: $(libgpsd_a_OBJECTS) $(libgpsd_a_DEPENDENCIES) 
+	-rm -f libgpsd.a
+	$(libgpsd_a_AR) libgpsd.a $(libgpsd_a_OBJECTS) $(libgpsd_a_LIBADD)
+	$(RANLIB) libgpsd.a
+libLTLIBRARIES_INSTALL = $(INSTALL)
+install-libLTLIBRARIES: $(lib_LTLIBRARIES)
+	@$(NORMAL_INSTALL)
+	$(mkinstalldirs) $(DESTDIR)$(libdir)
+	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
+	  if test -f $$p; then \
+	    f="`echo $$p | sed -e 's|^.*/||'`"; \
+	    echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(libdir)/$$f"; \
+	    $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(libdir)/$$f; \
+	  else :; fi; \
+	done
+
+uninstall-libLTLIBRARIES:
+	@$(NORMAL_UNINSTALL)
+	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
+	    p="`echo $$p | sed -e 's|^.*/||'`"; \
+	  echo " $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p"; \
+	  $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
+	done
+
+clean-libLTLIBRARIES:
+	-test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
+	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
+	  dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
+	  test "$$dir" = "$$p" && dir=.; \
+	  echo "rm -f \"$${dir}/so_locations\""; \
+	  rm -f "$${dir}/so_locations"; \
+	done
+libfly.la: $(libfly_la_OBJECTS) $(libfly_la_DEPENDENCIES) 
+	$(LINK) -rpath $(libdir) $(libfly_la_LDFLAGS) $(libfly_la_OBJECTS) $(libfly_la_LIBADD) $(LIBS)
+libnautic.la: $(libnautic_la_OBJECTS) $(libnautic_la_DEPENDENCIES) 
+	$(LINK) -rpath $(libdir) $(libnautic_la_LDFLAGS) $(libnautic_la_OBJECTS) $(libnautic_la_LIBADD) $(LIBS)
+binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
+install-binPROGRAMS: $(bin_PROGRAMS)
+	@$(NORMAL_INSTALL)
+	$(mkinstalldirs) $(DESTDIR)$(bindir)
+	@list='$(bin_PROGRAMS)'; for p in $$list; do \
+	  p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
+	  if test -f $$p \
+	     || test -f $$p1 \
+	  ; then \
+	    f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
+	   echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f"; \
+	   $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(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:
+	@list='$(bin_PROGRAMS)'; for p in $$list; do \
+	  f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
+	  echo " rm -f $$p $$f"; \
+	  rm -f $$p $$f ; \
+	done
+friendsd2$(EXEEXT): $(friendsd2_OBJECTS) $(friendsd2_DEPENDENCIES) 
+	@rm -f friendsd2$(EXEEXT)
+	$(LINK) $(friendsd2_LDFLAGS) $(friendsd2_OBJECTS) $(friendsd2_LDADD) $(LIBS)
+garble$(EXEEXT): $(garble_OBJECTS) $(garble_DEPENDENCIES) 
+	@rm -f garble$(EXEEXT)
+	$(CXXLINK) $(garble_LDFLAGS) $(garble_OBJECTS) $(garble_LDADD) $(LIBS)
+gpsd$(EXEEXT): $(gpsd_OBJECTS) $(gpsd_DEPENDENCIES) 
+	@rm -f gpsd$(EXEEXT)
+	$(LINK) $(gpsd_LDFLAGS) $(gpsd_OBJECTS) $(gpsd_LDADD) $(LIBS)
+gpsdrive$(EXEEXT): $(gpsdrive_OBJECTS) $(gpsdrive_DEPENDENCIES) 
+	@rm -f gpsdrive$(EXEEXT)
+	$(CXXLINK) $(gpsdrive_LDFLAGS) $(gpsdrive_OBJECTS) $(gpsdrive_LDADD) $(LIBS)
+binSCRIPT_INSTALL = $(INSTALL_SCRIPT)
+install-binSCRIPTS: $(bin_SCRIPTS)
+	@$(NORMAL_INSTALL)
+	$(mkinstalldirs) $(DESTDIR)$(bindir)
+	@list='$(bin_SCRIPTS)'; for p in $$list; do \
+	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+	  if test -f $$d$$p; then \
+	    f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
+	    echo " $(binSCRIPT_INSTALL) $$d$$p $(DESTDIR)$(bindir)/$$f"; \
+	    $(binSCRIPT_INSTALL) $$d$$p $(DESTDIR)$(bindir)/$$f; \
+	  else :; fi; \
+	done
+
+uninstall-binSCRIPTS:
+	@$(NORMAL_UNINSTALL)
+	@list='$(bin_SCRIPTS)'; for p in $$list; do \
+	  f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
+	  echo " rm -f $(DESTDIR)$(bindir)/$$f"; \
+	  rm -f $(DESTDIR)$(bindir)/$$f; \
+	done
+
+mostlyclean-compile:
+	-rm -f *.$(OBJEXT) core *.core
+
+distclean-compile:
+	-rm -f *.tab.c
+
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/LatLong-UTMconversion.Po at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/battery.Po at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/em.Po at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/fly.Plo at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/friends.Po at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/friendsd.Po at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/garble.Po at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/garmin_application.Po at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/garmin_data.Po at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/garmin_legacy.Po at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/garmin_link.Po at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/garmin_serial_unix.Po at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/garmin_util.Po at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/gpsd.Po at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/gpsdrive.Po at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/gpsdrivegarble.Po at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/gpskismet.Po at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/gpsmisc.Po at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/gpsnasamap.Po at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/gpsserial.Po at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/gpssql.Po at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/nautic.Plo at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/navigation.Po at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/netlib.Po at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/nmea_parse.Po at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/serial.Po at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/settings.Po at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/speech_out.Po at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/splash.Po at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/tm.Po at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/track.Po at am__quote@
+
+distclean-depend:
+	-rm -rf ./$(DEPDIR)
+
+.c.o:
+ at am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
+ at am__fastdepCC_TRUE@	  -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
+ at am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
+ at am__fastdepCC_TRUE@	else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
+ at am__fastdepCC_TRUE@	fi
+ at AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+ at AMDEP_TRUE@@am__fastdepCC_FALSE@	depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
+ at AMDEP_TRUE@@am__fastdepCC_FALSE@	$(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+ at am__fastdepCC_FALSE@	$(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$<
+
+.c.obj:
+ at am__fastdepCC_TRUE@	if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
+ at am__fastdepCC_TRUE@	  -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`; \
+ at am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
+ at am__fastdepCC_TRUE@	else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
+ at am__fastdepCC_TRUE@	fi
+ at AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+ at AMDEP_TRUE@@am__fastdepCC_FALSE@	depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
+ at AMDEP_TRUE@@am__fastdepCC_FALSE@	$(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+ at am__fastdepCC_FALSE@	$(COMPILE) -c `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`
+
+.c.lo:
+ at am__fastdepCC_TRUE@	if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
+ at am__fastdepCC_TRUE@	  -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
+ at am__fastdepCC_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; \
+ at am__fastdepCC_TRUE@	else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
+ at am__fastdepCC_TRUE@	fi
+ at AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+ at AMDEP_TRUE@@am__fastdepCC_FALSE@	depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@
+ at AMDEP_TRUE@@am__fastdepCC_FALSE@	$(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+ at am__fastdepCC_FALSE@	$(LTCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
+
+.cpp.o:
+ at am__fastdepCXX_TRUE@	if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
+ at am__fastdepCXX_TRUE@	  -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
+ at am__fastdepCXX_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
+ at am__fastdepCXX_TRUE@	else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
+ at am__fastdepCXX_TRUE@	fi
+ at AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+ at AMDEP_TRUE@@am__fastdepCXX_FALSE@	depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
+ at AMDEP_TRUE@@am__fastdepCXX_FALSE@	$(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+ at am__fastdepCXX_FALSE@	$(CXXCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
+
+.cpp.obj:
+ at am__fastdepCXX_TRUE@	if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
+ at am__fastdepCXX_TRUE@	  -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`; \
+ at am__fastdepCXX_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
+ at am__fastdepCXX_TRUE@	else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
+ at am__fastdepCXX_TRUE@	fi
+ at AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+ at AMDEP_TRUE@@am__fastdepCXX_FALSE@	depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
+ at AMDEP_TRUE@@am__fastdepCXX_FALSE@	$(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+ at am__fastdepCXX_FALSE@	$(CXXCOMPILE) -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`
+
+.cpp.lo:
+ at am__fastdepCXX_TRUE@	if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
+ at am__fastdepCXX_TRUE@	  -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
+ at am__fastdepCXX_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; \
+ at am__fastdepCXX_TRUE@	else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
+ at am__fastdepCXX_TRUE@	fi
+ at AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+ at AMDEP_TRUE@@am__fastdepCXX_FALSE@	depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@
+ at AMDEP_TRUE@@am__fastdepCXX_FALSE@	$(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+ at am__fastdepCXX_FALSE@	$(LTCXXCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+
+distclean-libtool:
+	-rm -f libtool
+uninstall-info-am:
+distpixmapDATA_INSTALL = $(INSTALL_DATA)
+install-distpixmapDATA: $(distpixmap_DATA)
+	@$(NORMAL_INSTALL)
+	$(mkinstalldirs) $(DESTDIR)$(distpixmapdir)
+	@list='$(distpixmap_DATA)'; for p in $$list; do \
+	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+	  f="`echo $$p | sed -e 's|^.*/||'`"; \
+	  echo " $(distpixmapDATA_INSTALL) $$d$$p $(DESTDIR)$(distpixmapdir)/$$f"; \
+	  $(distpixmapDATA_INSTALL) $$d$$p $(DESTDIR)$(distpixmapdir)/$$f; \
+	done
+
+uninstall-distpixmapDATA:
+	@$(NORMAL_UNINSTALL)
+	@list='$(distpixmap_DATA)'; for p in $$list; do \
+	  f="`echo $$p | sed -e 's|^.*/||'`"; \
+	  echo " rm -f $(DESTDIR)$(distpixmapdir)/$$f"; \
+	  rm -f $(DESTDIR)$(distpixmapdir)/$$f; \
+	done
+gpsdriveDATA_INSTALL = $(INSTALL_DATA)
+install-gpsdriveDATA: $(gpsdrive_DATA)
+	@$(NORMAL_INSTALL)
+	$(mkinstalldirs) $(DESTDIR)$(gpsdrivedir)
+	@list='$(gpsdrive_DATA)'; for p in $$list; do \
+	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+	  f="`echo $$p | sed -e 's|^.*/||'`"; \
+	  echo " $(gpsdriveDATA_INSTALL) $$d$$p $(DESTDIR)$(gpsdrivedir)/$$f"; \
+	  $(gpsdriveDATA_INSTALL) $$d$$p $(DESTDIR)$(gpsdrivedir)/$$f; \
+	done
+
+uninstall-gpsdriveDATA:
+	@$(NORMAL_UNINSTALL)
+	@list='$(gpsdrive_DATA)'; for p in $$list; do \
+	  f="`echo $$p | sed -e 's|^.*/||'`"; \
+	  echo " rm -f $(DESTDIR)$(gpsdrivedir)/$$f"; \
+	  rm -f $(DESTDIR)$(gpsdrivedir)/$$f; \
+	done
+
+ETAGS = etags
+ETAGSFLAGS =
+
+CTAGS = ctags
+CTAGSFLAGS =
+
+tags: TAGS
+
+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:  $(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 "$(ETAGS_ARGS)$$tags$$unique" \
+	  || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+	     $$tags $$unique
+
+ctags: CTAGS
+CTAGS:  $(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
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+
+top_distdir = ..
+distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
+
+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"; \
+	    $(mkinstalldirs) "$(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 $(LIBRARIES) $(LTLIBRARIES) $(PROGRAMS) $(SCRIPTS) \
+		$(DATA)
+install-binPROGRAMS: install-libLTLIBRARIES
+
+
+installdirs:
+	$(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(bindir) $(DESTDIR)$(bindir) $(DESTDIR)$(distpixmapdir) $(DESTDIR)$(gpsdrivedir)
+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_STRIP_FLAG=-s \
+	  `test -z '$(STRIP)' || \
+	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-rm -f Makefile $(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-binPROGRAMS clean-generic clean-libLTLIBRARIES \
+	clean-libtool clean-noinstLIBRARIES mostlyclean-am
+
+distclean: distclean-am
+
+distclean-am: clean-am distclean-compile distclean-depend \
+	distclean-generic distclean-libtool distclean-tags
+
+dvi: dvi-am
+
+dvi-am:
+
+info: info-am
+
+info-am:
+
+install-data-am: install-distpixmapDATA install-gpsdriveDATA
+
+install-exec-am: install-binPROGRAMS install-binSCRIPTS \
+	install-libLTLIBRARIES
+
+install-info: install-info-am
+
+install-man:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
+	mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am: uninstall-binPROGRAMS uninstall-binSCRIPTS \
+	uninstall-distpixmapDATA uninstall-gpsdriveDATA \
+	uninstall-info-am uninstall-libLTLIBRARIES
+
+.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
+	clean-generic clean-libLTLIBRARIES clean-libtool \
+	clean-noinstLIBRARIES ctags distclean distclean-compile \
+	distclean-depend distclean-generic distclean-libtool \
+	distclean-tags distdir dvi dvi-am info info-am install \
+	install-am install-binPROGRAMS install-binSCRIPTS install-data \
+	install-data-am install-distpixmapDATA install-exec \
+	install-exec-am install-gpsdriveDATA install-info \
+	install-info-am install-libLTLIBRARIES install-man \
+	install-strip installcheck installcheck-am installdirs \
+	maintainer-clean maintainer-clean-generic mostlyclean \
+	mostlyclean-compile mostlyclean-generic mostlyclean-libtool pdf \
+	pdf-am ps ps-am tags uninstall uninstall-am \
+	uninstall-binPROGRAMS uninstall-binSCRIPTS \
+	uninstall-distpixmapDATA uninstall-gpsdriveDATA \
+	uninstall-info-am uninstall-libLTLIBRARIES
+
+# 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:

Added: packages/gpsdrive/branches/etch/src/battery.c
===================================================================
--- packages/gpsdrive/branches/etch/src/battery.c	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/battery.c	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,783 @@
+/***********************************************************************
+
+Copyright (c) 2001-2004 Fritz Ganter <ganter at ganter.at>
+
+Website: www.gpsdrive.de
+
+Disclaimer: Please do not use for navigation.
+
+    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
+
+*********************************************************************/
+/*
+$Log: battery.c,v $
+Revision 1.37  2004/02/08 18:37:39  ganter
+autsch, fn string in battery.c was too short
+still 2.08pre12
+
+Revision 1.36  2004/02/08 17:16:25  ganter
+replacing all strcat with g_strlcat to avoid buffer overflows
+
+Revision 1.35  2004/02/02 03:38:31  ganter
+code cleanup
+
+Revision 1.34  2004/01/18 20:01:23  ganter
+fixed bug for GTK<2.2.x
+
+Revision 1.33  2004/01/18 16:09:37  ganter
+fixed last memleak in battery.c (I hope)
+
+Revision 1.32  2004/01/17 18:12:17  ganter
+fixed some memory leaks
+
+Revision 1.31  2004/01/17 17:49:38  ganter
+no need to create batimage always new, made it static
+
+Revision 1.30  2004/01/17 17:41:48  ganter
+replaced all gdk_pixbuf_render_to_drawable (obsolet) with gdk_draw_pixbuf
+
+Revision 1.29  2004/01/15 22:02:40  ganter
+added openbsd patches
+real 2.07pre9
+
+Revision 1.28  2004/01/01 09:07:31  ganter
+v2.06
+trip info is now live updated
+added cpu temperature display for acpi
+added tooltips for battery and temperature
+
+Revision 1.27  2003/12/28 23:33:48  ganter
+...
+
+Revision 1.26  2003/12/28 23:29:15  ganter
+added battery tooltip
+
+Revision 1.25  2003/12/28 23:19:45  ganter
+tooltip for temperature
+
+Revision 1.24  2003/12/28 22:58:05  ganter
+...
+
+Revision 1.23  2003/12/28 22:53:49  ganter
+...
+
+Revision 1.22  2003/12/28 22:29:26  ganter
+...
+
+Revision 1.21  2003/12/28 21:19:28  ganter
+working on temperature
+
+Revision 1.20  2003/12/28 20:18:51  ganter
+...
+
+Revision 1.19  2003/12/28 20:12:29  ganter
+better acpi-temperature support
+
+Revision 1.18  2003/12/28 19:48:01  ganter
+added patch from Jaap Hogenberg for temperature display
+
+Revision 1.17  2003/12/27 23:22:24  ganter
+...
+
+Revision 1.16  2003/12/27 23:11:36  ganter
+battery.c now reads all batteries
+
+Revision 1.15  2003/12/17 21:30:02  ganter
+acpi battery status works now again (tested with 2.4.22ac4)
+
+Revision 1.14  2003/06/08 13:31:49  ganter
+release 2.0pre9
+Added setting of timeperiod in friends mode (see settings menu)
+
+Revision 1.13  2003/01/15 19:09:07  ganter
+v1.32pre4
+
+Revision 1.12  2003/01/15 15:30:28  ganter
+before dynamically loading mysql
+
+Revision 1.11  2002/12/30 17:58:06  molter
+APM is i386 only, allow compilation on FreeBSD alpha too
+
+Revision 1.10  2002/11/02 12:38:55  ganter
+changed website to www.gpsdrive.de
+
+Revision 1.9  2002/09/01 18:30:06  ganter
+fixed segfault on no apm computers
+
+Revision 1.8  2002/08/31 13:10:51  ganter
+v1.26 release
+
+Mapblast server works again (they changed the URL).
+Bugfix for -a option.
+Added -i option to ignore NMEA checksum (for broken GPS receivers).
+Added "j" key to switch to next waypoint on route mode.
+Added support for festival lite (flite) speech output.
+
+Revision 1.7  2002/07/30 20:49:54  ganter
+1.26pre3
+added support for festival lite (flite)
+changed http request to HTTP1.1 and added correct servername
+
+Revision 1.6  2002/07/01 00:45:00  ganter
+added trip info (in settings menu)
+ACPI fixes (close battery fd)
+
+Revision 1.5  2002/06/29 21:47:38  ganter
+v1.23
+
+Revision 1.4  2002/06/29 00:23:17  ganter
+added ACPI support for battery meter
+
+Revision 1.3  2002/06/23 17:09:34  ganter
+v1.23pre9
+now PDA mode looks good.
+
+Revision 1.2  2002/05/23 09:12:13  ganter
+added  Marco Molteni
+
+*/
+
+/*
+ *
+ * Power-related (battery, APM) functions.
+ *
+ * This module exports an interface that is operating system independent.
+ * The supported OSes are Linux, FreeBSD and NetBSD.
+ *
+ * Code modularization and support for FreeBSD by Marco Molteni
+ * <molter at gufi.org>.
+ *
+ * NetBSD support by Berndt Josef Wulf
+ * <wulf at netbsd.org>
+ */
+
+
+#include <stdio.h>
+#include <string.h>
+#include <unistd.h>
+#include <errno.h>
+#include <gpsdrive.h>
+#include <config.h>
+
+/* APM is i386-specific. */
+#if defined(__FreeBSD__) && defined(__i386__)
+#include <fcntl.h>
+#include <machine/apm_bios.h>
+#endif /* __FreeBSD__ && __i386__ */
+
+#if defined (__NetBSD__) || (__OpenBSD__)
+#include <fcntl.h>
+#include <machine/apmvar.h>
+#include <sys/ioctl.h>
+#endif /* __NetBSD__ */
+
+
+#include "battery.h"
+#include "power.h"
+#include <sys/types.h>
+#include <dirent.h>
+#include <sys/stat.h>
+
+#if GTK_MINOR_VERSION < 2
+#define gdk_draw_pixbuf _gdk_draw_pixbuf
+#endif
+
+extern gint debug;
+extern enum
+{ english, german, spanish }
+voicelang;
+
+extern gint havebattery, havetemperature;
+gint batlevel, batlevel_old = 125;	/* battery level, range 0..100 */
+gint batloading, batloading_old = FALSE;	/* is the battery charging? */
+gint batcharge = FALSE;
+gint cputemp;
+gchar cputempstring[20], batstring[20];
+static gchar gradsym[] = "\xc2\xb0";
+extern GtkWidget *tempeventbox, *batteventbox;
+extern GtkTooltips *temptooltips;
+static GdkPixbuf *img_powercharges = NULL, *img_powercord =
+  NULL, *img_battery = NULL;
+
+#ifdef __linux__
+/*
+ * Return TRUE on success, FALSE on error.
+ */
+static int
+battery_get_values_linux (int *blevel, int *bloading, int *bcharge,
+			  int *temper)
+{
+  FILE *battery = NULL;
+  FILE *temperature = NULL;
+  gint i, e, e1, ret, v1, v2, vtemp;
+  gchar b[200], t[200], t2[200], t3[200];
+  DIR *dir;
+  struct dirent *ent;
+  struct stat buf;
+  char fn[200];
+  *bcharge = FALSE;
+  *bloading = FALSE;
+
+  ret = FALSE;
+  battery = fopen ("/proc/apm", "r");
+  if (battery != NULL)
+    {
+      fscanf (battery, "%s %s %s %x %s %x %d%% %s %s",
+	      b, b, b, bloading, b, &i, blevel, b, b);
+      /*     1.16 1.2 0x03 0x01      0x00 0x01 99%      -1  ?    */
+      fclose (battery);
+
+      /*
+       * Bit 7 is set if we have a battery (laptop). If it isn't set,
+       * (desktop) then we don't want to display the battery.
+       */
+      if ((i & 0x80) != 0)
+	ret = FALSE;
+
+      return ret;
+    }
+  else
+    {
+/* we try if we have acpi */
+      v1 = v2 = 0;
+
+      battery = fopen ("/proc/acpi/battery/0/info", "r");
+      if (battery == NULL)
+	{
+/* search for info file */
+	  dir = opendir ("/proc/acpi/battery/");
+	  if (dir == NULL)
+	    {
+	      ret = FALSE;
+	      return ret;
+	    }
+	  while ((ent = readdir (dir)) != NULL)
+	    {
+	      if (ent->d_name[0] != '.')
+		{
+		  g_snprintf (fn, sizeof (fn), "/proc/acpi/battery/");
+		  g_strlcat (fn, ent->d_name, sizeof (fn));
+		  g_strlcat (fn, "/info", sizeof (fn));
+		  stat (fn, &buf);
+		  if (S_ISREG (buf.st_mode) == TRUE)
+		    {
+		      if (debug)
+			fprintf (stderr, "\nfound file %s\n", fn);
+		      battery = fopen (fn, "r");
+		      if (battery != NULL)
+			do
+			  {
+			    e =
+			      fscanf (battery, "%s %s %s %s %[^\n]", t, t2, b,
+				      t3, b);
+			    if (e != EOF)
+			      {
+				if (((strstr (t, "ast")) != NULL)
+				    && ((strstr (t2, "ull")) != NULL))
+				  {
+				    e1 = sscanf (t3, "\n%d\n", &vtemp);
+				    if (e1 == 1)
+				      v1 += vtemp;
+				    ret = TRUE;
+				  }
+			      }
+			  }
+			while (e != EOF);
+		      if (battery != NULL)
+			fclose (battery);
+
+		    }
+		}
+	    }
+	  closedir (dir);
+	}
+
+/*       v1 = 3400; */
+
+      battery = fopen ("/proc/acpi/battery/0/status", "r");
+      if (battery == NULL)
+	{
+/* search for info file */
+	  dir = opendir ("/proc/acpi/battery/");
+	  if (dir == NULL)
+	    {
+	      ret = FALSE;
+	      return ret;
+	    }
+	  while ((ent = readdir (dir)) != NULL)
+	    {
+	      if (ent->d_name[0] != '.')
+		{
+		  g_snprintf (fn, sizeof (fn), "/proc/acpi/battery/");
+		  g_strlcat (fn, ent->d_name, sizeof (fn));
+		  g_strlcat (fn, "/state", sizeof (fn));
+		  stat (fn, &buf);
+		  if (S_ISREG (buf.st_mode) == TRUE)
+		    {
+		      if (debug)
+			fprintf (stderr, "\nfound file %s\n", fn);
+		      battery = fopen (fn, "r");
+		      if (battery == NULL)
+			{
+			  closedir (dir);
+			  ret = FALSE;
+			  return ret;
+			}
+
+		      do
+			{
+			  e =
+			    fscanf (battery, "%s %s %s %s %[^\n]", t, t2, t3,
+				    b, b);
+			  if (e != EOF)
+			    {
+			      if (((strstr (t, "emaining")) != NULL)
+				  && ((strstr (t2, "apacity")) != NULL))
+				{
+				  e1 = sscanf (t3, "\n%d\n", &vtemp);
+				  if (e1 == 1)
+				    v2 += vtemp;
+				  ret = TRUE;
+				}
+			    }
+			}
+		      while (e != EOF);
+		      fseek (battery, 0, SEEK_SET);
+		      do
+			{
+			  e = fscanf (battery, "%s%[^\n]", t, t2);
+			  if (debug)
+			    fprintf (stderr, "t: %s, t2: %s\n", t, t2);
+			  if ((strstr (t, "Status:")) != NULL)
+			    {
+			      if ((strstr (t2, "on-line")) != NULL)
+				*bloading = TRUE;
+			      else
+				*bloading = FALSE;
+			      ret = TRUE;
+			    }
+			  if ((strstr (t, "charging")) != NULL)
+			    {
+			      /*  assume we are charging, unless
+			         discharging or unknown. */
+			      *bloading = TRUE;
+			      *bcharge = TRUE;
+			      if ((strstr (t2, "discharging")) != NULL)
+				{
+				  *bcharge = FALSE;
+				  *bloading = FALSE;
+				}
+			      if ((strstr (t2, "unknown")) != NULL)
+				*bcharge = FALSE;
+			      ret = TRUE;
+			    }
+			}
+		      while (e != EOF);
+		      fclose (battery);
+
+		    }
+		}
+	    }
+	  closedir (dir);
+
+	}
+
+      if (debug)
+	fprintf (stderr, "v1: %d, v2:%d\n", v1, v2);
+      if (v2 != 0)
+	*blevel = (int) (((double) v2 / v1) * 100.0);
+/*       fprintf(stderr,"blevel: %d\n",*blevel); */
+    }
+
+
+/*  JH Added temperature readout code here  */
+
+/* search for temperature file */
+  temperature = NULL;
+  dir = opendir ("/proc/acpi/thermal_zone/");
+  if (dir != NULL)
+    {
+      while ((ent = readdir (dir)) != NULL)
+	{
+	  if (ent->d_name[0] != '.')
+	    {
+	      g_snprintf (fn, sizeof (fn), "/proc/acpi/thermal_zone/");
+	      g_strlcat (fn, ent->d_name, sizeof (fn));
+	      g_strlcat (fn, "/temperature", sizeof (fn));
+	      stat (fn, &buf);
+	      if (S_ISREG (buf.st_mode) == TRUE)
+		{
+		  if (debug)
+		    fprintf (stderr, "\nfound file %s\n", fn);
+		  temperature = fopen (fn, "r");
+		  if (temperature != NULL)
+		    havetemperature = TRUE;
+		}
+	    }
+	}
+      closedir (dir);
+      if (havetemperature)
+	{
+	  fscanf (temperature, "%s %d %s", b, temper, b);
+	  fclose (temperature);
+	}
+    }
+
+
+  return ret;
+}
+#endif /* Linux */
+
+
+#if defined(__FreeBSD__) && defined(__i386__)
+/*
+ * Return TRUE on success, FALSE on error.
+ */
+static int
+battery_get_values_fbsd (int *blevel, int *bloading)
+{
+  int fd;
+  struct apm_info ai;
+
+  *blevel = -1;
+  *bloading = FALSE;
+
+  if ((fd = open ("/dev/apm", O_RDONLY)) == -1)
+    {
+      if (debug)
+	fprintf (stderr, "gpsdrive: open(/dev/apm): %s\n", strerror (errno));
+      return FALSE;
+    }
+  if (ioctl (fd, APMIO_GETINFO, &ai) == -1)
+    {
+      if (debug)
+	fprintf (stderr, "gpsdrive: ioctl(APMIO_GETINFO): %s\n",
+		 strerror (errno));
+      close (fd);
+      return FALSE;
+    }
+
+  /*
+   * Battery level. If unknown or error we fail.
+   */
+  if (ai.ai_batt_life >= 0 && ai.ai_batt_life <= 100)
+    {
+      *blevel = ai.ai_batt_life;
+    }
+  else
+    {
+      if (ai.ai_batt_life == 255)
+	{
+	  fprintf (stderr, "gpsdrive: battery level is unknown\n");
+	}
+      else
+	{
+	  fprintf (stderr, "gpsdrive: battery level is invalid\n");
+	}
+      close (fd);
+      return FALSE;
+    }
+
+  /*
+   * Is the battery charging? If unknown or error we fail.
+   */
+  if (ai.ai_acline == 1)
+    {				/* on-line */
+      *bloading = TRUE;
+    }
+  else if (ai.ai_acline == 0)
+    {				/* off-line */
+      *bloading = FALSE;
+    }
+  else
+    {
+      if (ai.ai_acline == 255)
+	{			/* unknown */
+	  fprintf (stderr, "gpsdrive: battery charging status is unknown\n");
+	}
+      else
+	{			/* error */
+	  fprintf (stderr, "gpsdrive: battery charging status is invalid\n");
+	}
+      close (fd);
+      return FALSE;
+    }
+  close (fd);
+  return TRUE;
+}
+#endif /* __FreeBSD__ && __i386__ */
+
+#if defined( __NetBSD__ ) || defined (__OpenBSD__)
+/*
+ * Return TRUE on success, FALSE on error.
+ */
+static int
+battery_get_values_nbsd (int *blevel, int *bloading)
+{
+  int fd;
+  struct apm_power_info ai;
+
+  memset (&ai, 0, sizeof (ai));
+
+  *blevel = -1;
+  *bloading = FALSE;
+
+  if ((fd = open ("/dev/apm", O_RDONLY)) == -1)
+    {
+      if (debug)
+	fprintf (stderr, "gpsdrive: open(/dev/apm): %s\n", strerror (errno));
+      return FALSE;
+    }
+  if (ioctl (fd, APM_IOC_GETPOWER, &ai) == -1)
+    {
+      if (debug)
+	fprintf (stderr, "gpsdrive: ioctl(APM_IOC_GETPOWER): %s\n",
+		 strerror (errno));
+      close (fd);
+      return FALSE;
+    }
+
+  /*
+   * Battery level. If unknown or error we fail.
+   */
+  if (ai.battery_life <= 100)
+    {
+      *blevel = ai.battery_life;
+    }
+  else
+    {
+      if (ai.battery_life == 255)
+	{
+	  fprintf (stderr, "gpsdrive: battery level is unknown\n");
+	}
+      else
+	{
+	  fprintf (stderr, "gpsdrive: battery level is invalid\n");
+	}
+      close (fd);
+      return FALSE;
+    }
+
+  /*
+   * Is the battery charging? If unknown or error we fail.
+   */
+  if (ai.ac_state == APM_AC_ON)
+    {				/* on-line */
+      *bloading = TRUE;
+    }
+  else if (ai.ac_state == APM_AC_OFF)
+    {				/* off-line */
+      *bloading = FALSE;
+    }
+  else
+    {
+      if (ai.ac_state == APM_AC_UNKNOWN)
+	{			/* unknown */
+	  fprintf (stderr, "gpsdrive: battery charging status is unknown\n");
+	}
+      else
+	{			/* error */
+	  fprintf (stderr, "gpsdrive: battery charging status is invalid\n");
+	}
+      close (fd);
+      return FALSE;
+    }
+  close (fd);
+  return TRUE;
+}
+#endif /* __NetBSD__ */
+
+/*
+ * Return TRUE on success, FALSE on error.
+ */
+int
+battery_get_values (void)
+{
+  int ret;
+  if (disableapm)
+    {
+      return FALSE;
+    }
+#if defined(__linux__)
+  ret = battery_get_values_linux (&batlevel, &batloading, &batcharge,
+				  &cputemp);
+  if (havetemperature)
+    {
+      g_snprintf (cputempstring, sizeof (cputempstring), "%s %d%sC",
+		  "CPU-Temp", cputemp, gradsym);
+      if (temptooltips != NULL)
+	gtk_tooltips_set_tip (GTK_TOOLTIPS (temptooltips), tempeventbox,
+			      cputempstring, NULL);
+      if (debug)
+	fprintf (stderr, "cputempstring %s\n", cputempstring);
+    }
+  if (havebattery)
+    {
+      g_snprintf (batstring, sizeof (batstring), "%s %d%%", "Batt", batlevel);
+      if (temptooltips != NULL)
+	gtk_tooltips_set_tip (GTK_TOOLTIPS (temptooltips), batteventbox,
+			      batstring, NULL);
+      if (debug)
+	fprintf (stderr, "batstring %s\n", batstring);
+    }
+  return ret;
+
+#elif defined(__FreeBSD__) && defined(__i386__)
+  return battery_get_values_fbsd (&batlevel, &batloading);
+#elif defined(__NetBSD__) || defined(__OpenBSD__)
+  return battery_get_values_nbsd (&batlevel, &batloading);
+#else
+  /* add support for your favourite OS here */
+  return FALSE;
+#endif
+}
+
+
+/*
+ * display battery meter
+ */
+int
+expose_display_battery ()
+{
+  gchar bbuf[200];
+  static GdkGC *battkontext = NULL, *temkontext = NULL;
+  GdkDrawable *mydrawable;
+
+  extern GtkWidget *drawing_battery, *drawing_temp;
+  extern GdkColor mygray;
+  extern GdkColor black;
+  extern GdkColor green;
+  extern GdkColor yellow;
+  extern GdkColor orange;
+  extern GdkColor red;
+  extern GdkPixbuf *batimage;
+
+  extern GdkPixbuf *temimage;
+
+  if (!(havebattery || havetemperature))
+    return FALSE;
+  /* XXX What to do if the reading fails? */
+  battery_get_values ();
+
+  if (havebattery)
+    {
+      mydrawable = drawing_battery->window;
+      if (battkontext == NULL)
+	battkontext = gdk_gc_new (mydrawable);
+
+      gdk_gc_set_foreground (battkontext, &mygray);
+      gdk_draw_rectangle (mydrawable, battkontext, 1, 0, 0, 25, 50);
+      gdk_gc_set_foreground (battkontext, &black);
+      gdk_draw_rectangle (mydrawable, battkontext, 0, 19, 0, 6, 50);
+
+/* JH added limit to batlevel  */
+      if (batlevel > 99)
+	batlevel = 99;
+      if (batlevel > 40)
+	gdk_gc_set_foreground (battkontext, &green);
+      else
+	{
+	  if (batlevel > 25)
+	    gdk_gc_set_foreground (battkontext, &yellow);
+	  else
+	    {
+	      if (batlevel > 15)
+		gdk_gc_set_foreground (battkontext, &orange);
+	      else
+		gdk_gc_set_foreground (battkontext, &red);
+	    }
+	}
+      gdk_draw_rectangle (mydrawable, battkontext, 1, 20, 50 - batlevel / 2,
+			  5, batlevel / 2);
+
+      if (img_powercharges == NULL)
+	{
+	  img_powercharges =
+	    gdk_pixbuf_new_from_xpm_data ((const char **) powercharges_xpm);
+	  img_powercord =
+	    gdk_pixbuf_new_from_xpm_data ((const char **) powercord_xpm);
+	  img_battery =
+	    gdk_pixbuf_new_from_xpm_data ((const char **) battery_xpm);
+	}
+
+      if (batcharge)
+	batimage = img_powercharges;
+/* 	  gdk_pixbuf_new_from_xpm_data ((const char **) powercharges_xpm); */
+      else
+	{
+	  if (batloading)
+	    batimage = img_powercord;
+/* 	      gdk_pixbuf_new_from_xpm_data ((const char **) powercord_xpm); */
+	  else
+	    batimage = img_battery;
+/* 	      gdk_pixbuf_new_from_xpm_data ((const char **) battery_xpm); */
+	}
+
+
+      gdk_gc_set_function (battkontext, GDK_AND);
+      gdk_draw_pixbuf (mydrawable, battkontext, batimage, 0, 0, 0, 0,
+		       17, 50, GDK_RGB_DITHER_NONE, 0, 0);
+      gdk_gc_set_function (battkontext, GDK_COPY);
+
+/*       gdk_pixbuf_unref (batimage); */
+    }
+/*  JH  code to display temperature meter   */
+  if (havetemperature)
+    {
+      mydrawable = drawing_temp->window;
+      if (temkontext == NULL)
+	temkontext = gdk_gc_new (mydrawable);
+      gdk_gc_set_foreground (temkontext, &mygray);
+      gdk_draw_rectangle (mydrawable, temkontext, 1, 0, 0, 25, 50);
+      if (temimage == NULL)
+	temimage = gdk_pixbuf_new_from_xpm_data ((const char **) gauge_xpm);
+      gdk_gc_set_function (temkontext, GDK_AND);
+      gdk_draw_pixbuf (mydrawable, temkontext, temimage, 0, 0, 0, 0,
+		       17, 50, GDK_RGB_DITHER_NONE, 0, 0);
+      gdk_gc_set_function (temkontext, GDK_COPY);
+/*       gdk_pixbuf_unref (temimage); */
+      gdk_gc_set_foreground (temkontext, &mygray);
+/* We want to limit cputemp (79<cputemp< 40)    */
+      if (cputemp > 79)
+	cputemp = 79;
+      if (cputemp < 40)
+	cputemp = 40;
+      gdk_draw_rectangle (mydrawable, temkontext, 1, 6, 1, 5, 79 - cputemp);
+    }
+
+  if (((batlevel - 1) / 10 != (batlevel_old - 1) / 10) && (!batloading))
+    {
+      if (debug)
+	g_print ("\nBattery: %d%%\n", batlevel);
+
+      /* This is for Festival, so we cannot use gettext() for i18n */
+      switch (voicelang)
+	{
+	case english:
+	  g_snprintf (bbuf, sizeof (bbuf), "Remaining battery: %d%%",
+		      batlevel);
+	  break;
+	case spanish:
+	  g_snprintf (bbuf, sizeof (bbuf), "Batería restante: %d%%",
+		      batlevel);
+	  break;
+	case german:
+	  g_snprintf (bbuf, sizeof (bbuf), "Batterieladung: %d%%", batlevel);
+	}
+      speech_out_speek (bbuf);
+      batlevel_old = batlevel;
+    }
+  return TRUE;
+}

Added: packages/gpsdrive/branches/etch/src/battery.h
===================================================================
--- packages/gpsdrive/branches/etch/src/battery.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/battery.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,39 @@
+/***********************************************************************
+
+Copyright (c) 2001,2002 Fritz Ganter <ganter at ganter.at>
+
+Website: www.gpsdrive.de
+
+Disclaimer: Please do not use for navigation.
+
+    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 GPSDRIVE_BATTERY_H
+#define GPSDRIVE_BATTERY_H
+
+/*
+ * See battery.c for details.
+ */
+
+
+extern int disableapm;
+
+int battery_get_values(void);
+int expose_display_battery();
+
+#endif /* GPSDRIVE_BATTERY_H */

Added: packages/gpsdrive/branches/etch/src/compass.h
===================================================================
--- packages/gpsdrive/branches/etch/src/compass.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/compass.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,821 @@
+/* XPM */
+static char * compass_xpm[] = {
+"50 50 768 2",
+"  	c None",
+". 	c #AC956C",
+"+ 	c #A59267",
+"@ 	c #9F8C61",
+"# 	c #9A8563",
+"$ 	c #998367",
+"% 	c #947C60",
+"& 	c #D4B97D",
+"* 	c #CEB478",
+"= 	c #D1B173",
+"- 	c #CEAA6C",
+"; 	c #C8A265",
+"> 	c #C39E60",
+", 	c #BF995B",
+"' 	c #B89356",
+") 	c #B38B56",
+"! 	c #AB8553",
+"~ 	c #A27D4F",
+"{ 	c #9A774C",
+"] 	c #95734D",
+"^ 	c #8E6D4A",
+"/ 	c #886A4E",
+"( 	c #866C57",
+"_ 	c #DFC57F",
+": 	c #E7CA7A",
+"< 	c #E8C878",
+"[ 	c #E6C375",
+"} 	c #DFBC6D",
+"| 	c #D7B368",
+"1 	c #C9A664",
+"2 	c #C09B5F",
+"3 	c #B5915B",
+"4 	c #B08A58",
+"5 	c #A58554",
+"6 	c #A38351",
+"7 	c #A2804D",
+"8 	c #A07B49",
+"9 	c #9B7548",
+"0 	c #967148",
+"a 	c #8F6C48",
+"b 	c #896547",
+"c 	c #826148",
+"d 	c #80634F",
+"e 	c #CDB178",
+"f 	c #E1C17B",
+"g 	c #E7C677",
+"h 	c #EDCE77",
+"i 	c #E7C973",
+"j 	c #D5B66A",
+"k 	c #C7A768",
+"l 	c #BE9C65",
+"m 	c #BF9F66",
+"n 	c #C1A068",
+"o 	c #BFA169",
+"p 	c #BD9E6A",
+"q 	c #BB9E68",
+"r 	c #BC9B64",
+"s 	c #B99760",
+"t 	c #AF8C59",
+"u 	c #A38253",
+"v 	c #9B794A",
+"w 	c #916F42",
+"x 	c #8D6A45",
+"y 	c #8A6547",
+"z 	c #856044",
+"A 	c #7D5D42",
+"B 	c #78604C",
+"C 	c #BDA371",
+"D 	c #CCAF71",
+"E 	c #DBB970",
+"F 	c #E0BC6F",
+"G 	c #D9B66E",
+"H 	c #C8A765",
+"I 	c #C4A567",
+"J 	c #C3A86F",
+"K 	c #C9B27F",
+"L 	c #C8B88F",
+"M 	c #D2C7B4",
+"N 	c #E3DDD0",
+"O 	c #E9E3D6",
+"P 	c #EAE5D9",
+"Q 	c #E9E5D9",
+"R 	c #E8E3D6",
+"S 	c #E1DACB",
+"T 	c #D2C8B1",
+"U 	c #CBBF93",
+"V 	c #C2B07E",
+"W 	c #B69E6B",
+"X 	c #9C7D51",
+"Y 	c #8C6C44",
+"Z 	c #86643F",
+"` 	c #865E3E",
+" .	c #81593E",
+"..	c #7C5943",
+"+.	c #765E4E",
+"@.	c #BA9A6A",
+"#.	c #CAA669",
+"$.	c #D3AD6C",
+"%.	c #CFAA63",
+"&.	c #C3A058",
+"*.	c #C2A663",
+"=.	c #BDAD76",
+"-.	c #CABB8F",
+";.	c #E0DDCC",
+">.	c #EEEBE5",
+",.	c #FBFBFC",
+"'.	c #FDFDFD",
+").	c #FDFCFC",
+"!.	c #FEFEFE",
+"~.	c #FCFCFD",
+"{.	c #FCFDFE",
+"].	c #FAF9FA",
+"^.	c #ECE9E3",
+"/.	c #E0D9CC",
+"(.	c #CEBF90",
+"_.	c #C2AA72",
+":.	c #9C7B49",
+"<.	c #8C633F",
+"[.	c #845E3E",
+"}.	c #7F5B41",
+"|.	c #785741",
+"1.	c #7B5E4A",
+"2.	c #B29063",
+"3.	c #C69C64",
+"4.	c #C9A062",
+"5.	c #BE9960",
+"6.	c #B99960",
+"7.	c #C3AD7B",
+"8.	c #C9BF96",
+"9.	c #E4E2DE",
+"0.	c #FEFEFD",
+"a.	c #FFFFFF",
+"b.	c #FCFDFC",
+"c.	c #FAFBFB",
+"d.	c #E1D8CD",
+"e.	c #CCBA97",
+"f.	c #BAA46D",
+"g.	c #927449",
+"h.	c #805E3D",
+"i.	c #7F5A3B",
+"j.	c #78563B",
+"k.	c #78604D",
+"l.	c #AC8A5D",
+"m.	c #BD925D",
+"n.	c #C3955F",
+"o.	c #B38F53",
+"p.	c #C2A76B",
+"q.	c #C4B384",
+"r.	c #DDD5C9",
+"s.	c #FBFBFD",
+"t.	c #FDFDFE",
+"u.	c #F9F9F9",
+"v.	c #D9D0B9",
+"w.	c #C4AF7D",
+"x.	c #AF9055",
+"y.	c #816039",
+"z.	c #7E5C3C",
+"A.	c #79583E",
+"B.	c #76574B",
+"C.	c #A7825B",
+"D.	c #B5895C",
+"E.	c #B38855",
+"F.	c #AE8B51",
+"G.	c #C8AE72",
+"H.	c #CBBCA0",
+"I.	c #F4F1ED",
+"J.	c #FFFFFE",
+"K.	c #EAE8E1",
+"L.	c #C5B786",
+"M.	c #BAA969",
+"N.	c #816048",
+"O.	c #7E593C",
+"P.	c #7B573D",
+"Q.	c #735A4B",
+"R.	c #9E7955",
+"S.	c #AE7F53",
+"T.	c #AD7F52",
+"U.	c #AE8959",
+"V.	c #CABB71",
+"W.	c #CCC9B3",
+"X.	c #F7F5F7",
+"Y.	c #F1EFEC",
+"Z.	c #BCB589",
+"`.	c #BFB55D",
+" +	c #826048",
+".+	c #7E593A",
+"++	c #78573B",
+"@+	c #78614D",
+"#+	c #987355",
+"$+	c #A2754F",
+"%+	c #A77751",
+"&+	c #A98153",
+"*+	c #C5B472",
+"=+	c #D1CCBC",
+"-+	c #F9F8F8",
+";+	c #F0EEEA",
+">+	c #B6B07E",
+",+	c #B29F5E",
+"'+	c #7F593E",
+")+	c #7F593B",
+"!+	c #78573D",
+"~+	c #725B4A",
+"{+	c #97775E",
+"]+	c #A07555",
+"^+	c #A27350",
+"/+	c #9D754A",
+"(+	c #C7AF6F",
+"_+	c #D2C3B6",
+":+	c #EBE9E4",
+"<+	c #B0A27B",
+"[+	c #AD8A57",
+"}+	c #7E5838",
+"|+	c #7B5A3E",
+"1+	c #74583F",
+"2+	c #A68260",
+"3+	c #A67B55",
+"4+	c #9D714E",
+"5+	c #BA9B62",
+"6+	c #C5AF94",
+"7+	c #F7F6F1",
+"8+	c #FEFDFD",
+"9+	c #DFD9D2",
+"0+	c #B0966A",
+"a+	c #957249",
+"b+	c #7D5D3E",
+"c+	c #7E5A3C",
+"d+	c #745B43",
+"e+	c #A58868",
+"f+	c #AF855C",
+"g+	c #A97C4F",
+"h+	c #A9865A",
+"i+	c #BBA277",
+"j+	c #EBECE5",
+"k+	c #FDFEFD",
+"l+	c #FBFAFB",
+"m+	c #B8B5A5",
+"n+	c #AA915A",
+"o+	c #84613E",
+"p+	c #845C3F",
+"q+	c #795A3A",
+"r+	c #725D50",
+"s+	c #B18E5F",
+"t+	c #B58959",
+"u+	c #AA7F4D",
+"v+	c #AF9365",
+"w+	c #CCBDAE",
+"x+	c #F1F0F3",
+"y+	c #998B67",
+"z+	c #97724C",
+"A+	c #866141",
+"B+	c #825F3F",
+"C+	c #785C45",
+"D+	c #B39268",
+"E+	c #BE965B",
+"F+	c #B68C56",
+"G+	c #A68250",
+"H+	c #AF9E71",
+"I+	c #F4F3F0",
+"J+	c #FEFDFE",
+"K+	c #FCFCFC",
+"L+	c #C7BFB9",
+"M+	c #9D7C57",
+"N+	c #866641",
+"O+	c #876242",
+"P+	c #7E5F41",
+"Q+	c #827261",
+"R+	c #BD9B69",
+"S+	c #C49C5F",
+"T+	c #AF884E",
+"U+	c #A7875D",
+"V+	c #CCC7BB",
+"W+	c #FBFCFA",
+"X+	c #F5F6F6",
+"Y+	c #907D65",
+"Z+	c #946B49",
+"`+	c #8A643E",
+" @	c #846542",
+".@	c #775F47",
+"+@	c #CAA56B",
+"@@	c #C6A162",
+"#@	c #A5804B",
+"$@	c #AA916D",
+"%@	c #F2F1EC",
+"&@	c #BBB3A7",
+"*@	c #926C52",
+"=@	c #8A6540",
+"-@	c #8A6943",
+";@	c #7E654C",
+">@	c #BCA470",
+",@	c #D7AE6B",
+"'@	c #C29D5E",
+")@	c #9B7D50",
+"!@	c #BDA994",
+"~@	c #F9F8F7",
+"{@	c #D6D2CE",
+"]@	c #8B6D5C",
+"^@	c #886441",
+"/@	c #8F6B43",
+"(@	c #86674A",
+"_@	c #816D5F",
+":@	c #C7AB6F",
+"<@	c #DEB36C",
+"[@	c #BD985F",
+"}@	c #947651",
+"|@	c #D7CBBD",
+"1@	c #FBFAFA",
+"2@	c #F2F2F2",
+"3@	c #91786C",
+"4@	c #886547",
+"5@	c #956D43",
+"6@	c #916E4D",
+"7@	c #836C59",
+"8@	c #DDBA73",
+"9@	c #E2B96D",
+"0@	c #AA8857",
+"a@	c #9E8367",
+"b@	c #EAE7E2",
+"c@	c #FBF8ED",
+"d@	c #F0DEAE",
+"e@	c #E7C979",
+"f@	c #9C9694",
+"g@	c #886549",
+"h@	c #986D43",
+"i@	c #9C744D",
+"j@	c #7D684C",
+"k@	c #E5C374",
+"l@	c #E7C272",
+"m@	c #A07C4F",
+"n@	c #A58973",
+"o@	c #F6F4F3",
+"p@	c #F7EDD4",
+"q@	c #E6C671",
+"r@	c #B2B0AC",
+"s@	c #8B6D50",
+"t@	c #997347",
+"u@	c #A37A4E",
+"v@	c #836F4C",
+"w@	c #EBCB78",
+"x@	c #E8C675",
+"y@	c #98794C",
+"z@	c #AB9381",
+"A@	c #FBFAF8",
+"B@	c #CBC6C1",
+"C@	c #8B7355",
+"D@	c #987649",
+"E@	c #A7804F",
+"F@	c #937752",
+"G@	c #EDCE7A",
+"H@	c #9D7F58",
+"I@	c #B39F91",
+"J@	c #FDFDFC",
+"K@	c #D3D0C9",
+"L@	c #8E7A5A",
+"M@	c #957A4B",
+"N@	c #AE844F",
+"O@	c #9D7C53",
+"P@	c #7C705B",
+"Q@	c #EECE78",
+"R@	c #E3C071",
+"S@	c #A2825A",
+"T@	c #BBAA9D",
+"U@	c #F7F9F9",
+"V@	c #D8D5D0",
+"W@	c #937E5C",
+"X@	c #987E50",
+"Y@	c #B78C52",
+"Z@	c #A98555",
+"`@	c #696757",
+" #	c #EDCA77",
+".#	c #DFBA6C",
+"+#	c #A78559",
+"@#	c #BDAB97",
+"##	c #E3E6E6",
+"$#	c #D8D4CF",
+"%#	c #967F60",
+"&#	c #A08354",
+"*#	c #BC9357",
+"=#	c #AC8B58",
+"-#	c #6B6B5C",
+";#	c #ECC879",
+">#	c #E3C06E",
+",#	c #AA8B5B",
+"'#	c #BFAE95",
+")#	c #F8FAF9",
+"!#	c #D4D1CA",
+"~#	c #9C8460",
+"{#	c #AB8D56",
+"]#	c #C0995A",
+"^#	c #AE8D5C",
+"/#	c #7C7E6A",
+"(#	c #EAC67A",
+"_#	c #E8C673",
+":#	c #AB8F5D",
+"<#	c #B9A889",
+"[#	c #F7F9F7",
+"}#	c #FDFEFE",
+"|#	c #FBFBFB",
+"1#	c #C7C7C1",
+"2#	c #A48B60",
+"3#	c #B7975B",
+"4#	c #C6A15D",
+"5#	c #AE925F",
+"6#	c #8C8471",
+"7#	c #E6C479",
+"8#	c #EBC979",
+"9#	c #AE925B",
+"0#	c #B9A780",
+"a#	c #F7F6F6",
+"b#	c #B9B4B1",
+"c#	c #AB945F",
+"d#	c #BF9D5F",
+"e#	c #CFA861",
+"f#	c #AE9361",
+"g#	c #918877",
+"h#	c #DFC07A",
+"i#	c #EDC97A",
+"j#	c #B69C5E",
+"k#	c #B7A175",
+"l#	c #EFE9E8",
+"m#	c #A89B91",
+"n#	c #B69E5E",
+"o#	c #C8A561",
+"p#	c #D9B267",
+"q#	c #A68C62",
+"r#	c #CBB27A",
+"s#	c #ECC77E",
+"t#	c #C9AC6B",
+"u#	c #B79D70",
+"v#	c #DCD5CD",
+"w#	c #F0F0F0",
+"x#	c #A49479",
+"y#	c #C1A865",
+"z#	c #D5B56A",
+"A#	c #DBB76C",
+"B#	c #9F8766",
+"C#	c #B9A179",
+"D#	c #E9C482",
+"E#	c #D6B571",
+"F#	c #B99B66",
+"G#	c #D0C2AA",
+"H#	c #FAF8FA",
+"I#	c #D5D4D1",
+"J#	c #AA986A",
+"K#	c #C5AC66",
+"L#	c #E2C56F",
+"M#	c #D8B76E",
+"N#	c #93886B",
+"O#	c #B59E7C",
+"P#	c #E2BF7E",
+"Q#	c #DFBD74",
+"R#	c #C3A567",
+"S#	c #BEAF82",
+"T#	c #F6F4F6",
+"U#	c #B2ADAC",
+"V#	c #C3AE6A",
+"W#	c #CFB367",
+"X#	c #EACF73",
+"Y#	c #D5B96E",
+"Z#	c #867E6D",
+"`#	c #D6B97B",
+" $	c #E7C377",
+".$	c #C7A96C",
+"+$	c #C6B26F",
+"@$	c #DED3C9",
+"#$	c #FDFCFD",
+"$$	c #F4F2EF",
+"%$	c #A1916F",
+"&$	c #C2A65C",
+"*$	c #DDBD6F",
+"=$	c #EECE77",
+"-$	c #AFA46F",
+";$	c #BCA678",
+">$	c #E3C080",
+",$	c #DBB975",
+"'$	c #C2A968",
+")$	c #C1B888",
+"!$	c #F8F6FB",
+"~$	c #FCFCFE",
+"{$	c #C4BDBF",
+"]$	c #AC976A",
+"^$	c #C09F5D",
+"/$	c #E6C670",
+"($	c #E0C478",
+"_$	c #958C66",
+":$	c #AEA17B",
+"<$	c #D3B681",
+"[$	c #E3C07C",
+"}$	c #C2A569",
+"|$	c #BFB26B",
+"1$	c #D5CFC8",
+"2$	c #FCFBFB",
+"3$	c #F3F3F4",
+"4$	c #99896A",
+"5$	c #B19366",
+"6$	c #D1AE60",
+"7$	c #E4C273",
+"8$	c #BFA96F",
+"9$	c #868370",
+"0$	c #BDAB78",
+"a$	c #DEC080",
+"b$	c #D6B57F",
+"c$	c #BAA259",
+"d$	c #BAA582",
+"e$	c #F1F0F2",
+"f$	c #FAFAFC",
+"g$	c #B5B3AD",
+"h$	c #A38A5E",
+"i$	c #B69459",
+"j$	c #DBB36A",
+"k$	c #DAB66F",
+"l$	c #9C8E6D",
+"m$	c #8B8A84",
+"n$	c #D6B47F",
+"o$	c #E0BE82",
+"p$	c #C2A267",
+"q$	c #B69960",
+"r$	c #C0B8A4",
+"s$	c #DEDCD1",
+"t$	c #937E61",
+"u$	c #A58755",
+"v$	c #CCA25E",
+"w$	c #D9AE6C",
+"x$	c #B59868",
+"y$	c #8F8572",
+"z$	c #B59D78",
+"A$	c #DEBB7E",
+"B$	c #E3BD80",
+"C$	c #B7985E",
+"D$	c #A5916A",
+"E$	c #D0C7B7",
+"F$	c #FBFAF9",
+"G$	c #EAE8E8",
+"H$	c #958774",
+"I$	c #9C7952",
+"J$	c #B7905B",
+"K$	c #CFA662",
+"L$	c #C2A166",
+"M$	c #92836D",
+"N$	c #C6A77A",
+"O$	c #E2BC7E",
+"P$	c #D6B378",
+"Q$	c #A68B51",
+"R$	c #A18C68",
+"S$	c #D9CEC3",
+"T$	c #FAFAF9",
+"U$	c #F0EFEF",
+"V$	c #A09388",
+"W$	c #917454",
+"X$	c #A67C4E",
+"Y$	c #C59861",
+"Z$	c #C8A367",
+"`$	c #9A8660",
+" %	c #8B827D",
+".%	c #D0B17A",
+"+%	c #E4BD7E",
+"@%	c #D4AE72",
+"#%	c #A18151",
+"$%	c #A38967",
+"%%	c #D2CBC2",
+"&%	c #FCFCFB",
+"*%	c #F0F0EF",
+"=%	c #9C9487",
+"-%	c #866C4C",
+";%	c #997447",
+">%	c #BA905B",
+",%	c #BF945F",
+"'%	c #A38764",
+")%	c #897E76",
+"!%	c #A19672",
+"~%	c #D8B57F",
+"{%	c #E6BF7F",
+"]%	c #D0B072",
+"^%	c #987E53",
+"/%	c #968163",
+"(%	c #C3B9AD",
+"_%	c #F9FAF8",
+":%	c #E5E1DD",
+"<%	c #928177",
+"[%	c #846448",
+"}%	c #936D46",
+"|%	c #AE8352",
+"1%	c #B88C5A",
+"2%	c #A5845D",
+"3%	c #87766B",
+"4%	c #8E888D",
+"5%	c #A39A7C",
+"6%	c #DBB57B",
+"7%	c #E0BE7E",
+"8%	c #D4B475",
+"9%	c #9D8251",
+"0%	c #887252",
+"a%	c #AD9A88",
+"b%	c #E7E5E1",
+"c%	c #FEFFFF",
+"d%	c #C4BFBC",
+"e%	c #816C5B",
+"f%	c #806147",
+"g%	c #916644",
+"h%	c #A8784E",
+"i%	c #AF8356",
+"j%	c #9D7C56",
+"k%	c #887867",
+"l%	c #8C857F",
+"m%	c #A69873",
+"n%	c #D7B57D",
+"o%	c #E2BD7D",
+"p%	c #D8BB7C",
+"q%	c #AC905E",
+"r%	c #886C46",
+"s%	c #8A745A",
+"t%	c #BAB0A6",
+"u%	c #F6F1EF",
+"v%	c #FCFDFD",
+"w%	c #FFFEFE",
+"x%	c #FBFBFA",
+"y%	c #DAD6D3",
+"z%	c #8E8277",
+"A%	c #765D49",
+"B%	c #7B5C3D",
+"C%	c #8F6844",
+"D%	c #A1734F",
+"E%	c #A7764F",
+"F%	c #9A7651",
+"G%	c #7E7466",
+"H%	c #888481",
+"I%	c #9A886C",
+"J%	c #CCAF7E",
+"K%	c #DCBD7F",
+"L%	c #DDBD7D",
+"M%	c #C9A76D",
+"N%	c #9B7A4E",
+"O%	c #7C6142",
+"P%	c #89735D",
+"Q%	c #B5B0A4",
+"R%	c #DCD6CE",
+"S%	c #F8F7F7",
+"T%	c #EDEBEA",
+"U%	c #CAC4BE",
+"V%	c #988575",
+"W%	c #77614D",
+"X%	c #74573F",
+"Y%	c #8E6845",
+"Z%	c #9F744B",
+"`%	c #A1764F",
+" &	c #9B7251",
+".&	c #8C6D50",
+"+&	c #837467",
+"@&	c #888686",
+"#&	c #9A8D73",
+"$&	c #C1A579",
+"%&	c #D7BA7C",
+"&&	c #E0BF7E",
+"*&	c #DDB778",
+"=&	c #C4A168",
+"-&	c #94774A",
+";&	c #7E6240",
+">&	c #7C6347",
+",&	c #8B7865",
+"'&	c #9E9087",
+")&	c #C6C0B9",
+"!&	c #D4CDC7",
+"~&	c #D9D3CE",
+"{&	c #DBD6D2",
+"]&	c #DBD5D2",
+"^&	c #D7D1CD",
+"/&	c #D0C8C4",
+"(&	c #B4B0AB",
+"_&	c #8E8175",
+":&	c #7F6C5C",
+"<&	c #735643",
+"[&	c #7E5A3E",
+"}&	c #926A49",
+"|&	c #AB8157",
+"1&	c #B28454",
+"2&	c #AC8055",
+"3&	c #9D7554",
+"4&	c #876E57",
+"5&	c #83786F",
+"6&	c #8A888C",
+"7&	c #A99874",
+"8&	c #CAAE7B",
+"9&	c #DEBB7C",
+"0&	c #E5C07C",
+"a&	c #E3C07B",
+"b&	c #CEAD70",
+"c&	c #B39160",
+"d&	c #91714E",
+"e&	c #846346",
+"f&	c #78593B",
+"g&	c #74573A",
+"h&	c #72573E",
+"i&	c #705842",
+"j&	c #6F5A43",
+"k&	c #70583F",
+"l&	c #72563C",
+"m&	c #7A5A3E",
+"n&	c #83643F",
+"o&	c #8E6E49",
+"p&	c #AD8757",
+"q&	c #BB955C",
+"r&	c #C39A61",
+"s&	c #BF935F",
+"t&	c #B1875A",
+"u&	c #98795B",
+"v&	c #827263",
+"w&	c #817D7B",
+"x&	c #998A76",
+"y&	c #AA9672",
+"z&	c #C8AE76",
+"A&	c #DDBE7F",
+"B&	c #E6C180",
+"C&	c #E8C37D",
+"D&	c #EBC477",
+"E&	c #E4BF71",
+"F&	c #D4B36D",
+"G&	c #C6A565",
+"H&	c #C1A163",
+"I&	c #C0A163",
+"J&	c #C1A365",
+"K&	c #C4A665",
+"L&	c #C8A763",
+"M&	c #D3B065",
+"N&	c #DCB46E",
+"O&	c #DCB46B",
+"P&	c #D6AE63",
+"Q&	c #CDA462",
+"R&	c #BE965F",
+"S&	c #A2875E",
+"T&	c #8D7A68",
+"U&	c #837D79",
+"V&	c #888C8F",
+"W&	c #908373",
+"X&	c #A59370",
+"Y&	c #B5A273",
+"Z&	c #D6B87E",
+"`&	c #E4C283",
+" *	c #E6C57E",
+".*	c #E8CB7D",
+"+*	c #EBCD7C",
+"@*	c #EECF7B",
+"#*	c #F0CF7B",
+"$*	c #F3D07B",
+"%*	c #F5D07B",
+"&*	c #F2CD78",
+"**	c #EBC572",
+"=*	c #E1BC6E",
+"-*	c #D7B669",
+";*	c #BDA168",
+">*	c #A28769",
+",*	c #8A7F6A",
+"'*	c #848275",
+")*	c #8B8689",
+"!*	c #8B8472",
+"~*	c #978C6E",
+"{*	c #AD996F",
+"]*	c #B6A06B",
+"^*	c #BEA86E",
+"/*	c #C5AE78",
+"(*	c #D0B378",
+"_*	c #C9B675",
+":*	c #C2AF71",
+"<*	c #BCA86B",
+"[*	c #B49F68",
+"}*	c #9C906B",
+"|*	c #8D7F70",
+"1*	c #8A807C",
+"2*	c #8C8582",
+"3*	c #8E8A8A",
+"                                            . + @ # $ %                                             ",
+"                                  & * = - ; > , ' ) ! ~ { ] ^ / (                                   ",
+"                              _ : < [ } | 1 2 3 4 5 6 7 8 9 0 a b c d                               ",
+"                          e f g h i j k l m n o p q r s t u v w x y z A B                           ",
+"                      C D E F G H I J K L M N O P Q R S T U V W X Y Z `  ...+.                      ",
+"                    @.#.$.%.&.*.=.-.;.>.,.'.).'.!.!.'.~.{.].^./.(._.:.<.[.}.|.1.                    ",
+"                  2.3.4.5.6.7.8.9.,.0.!.!.!.!.a.a.a.a.!.!.!.!.b.c.d.e.f.g.h.i.j.k.                  ",
+"                l.m.n.o.p.q.r.s.t.!.!.!.a.a.a.a.a.a.a.a.a.a.!.!.!.0.u.v.w.x.y.z.A.B.                ",
+"              C.D.E.F.G.H.I.'.!.!.J.a.a.a.a.a.a.a.a.a.a.a.a.a.a.!.!.!.'.K.L.M.N.O.P.Q.              ",
+"            R.S.T.U.V.W.X.t.!.!.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.!.'.Y.Z.`. +.+++ at +            ",
+"          #+$+%+&+*+=+-+0.!.!.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.!.!.!.;+>+,+'+)+!+~+          ",
+"        {+]+^+/+(+_+-+!.!.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.!.!.:+<+[+}+|+1+          ",
+"        2+3+4+5+6+7+8+!.!.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.!.!.~.9+0+a+b+c+d+        ",
+"      e+f+g+h+i+j+k+!.J.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.!.!.l+m+n+o+p+q+r+      ",
+"      s+t+u+v+w+b.!.!.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.!.!.x+y+z+A+B+C+      ",
+"    D+E+F+G+H+I+J+!.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.!.K+L+M+N+O+P+Q+    ",
+"    R+S+T+U+V+W+!.!.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.!.!.X+Y+Z+`+ @.@    ",
+"    +@@@#@$@%@'.!.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.!.K+&@*@=@-@;@    ",
+"  >@,@'@)@!@~@!.!.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.!.0.{@]@^@/@(@_@  ",
+"  :@<@[@}@|@1@!.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.!.2 at 3@4 at 5@6 at 7@  ",
+"  8 at 9@0 at a@b at K+!.a.a.a.a.a.a.a.a.a.a.a.a.a.a.c at d@e@%+%+c at a.a.a.a.a.a.a.a.a.a.a.a.a.a.!.K+f at g@h at i@j@  ",
+"  k at l@m at n@o@'.!.a.a.a.a.a.a.a.a.a.a.a.a.a.p at q@q@| | %+%+p at a.a.a.a.a.a.a.a.a.a.a.a.a.!.'.r at s@t at u@v@  ",
+"  w at x@y at z@A@!.a.a.a.a.a.a.a.a.a.a.a.a.a.c at q@q at q@q@| %+%+%+c at a.a.a.a.a.a.a.a.a.a.a.a.a.K+B@C at D@E at F@  ",
+"  G at q@H at I@J@!.a.a.a.a.a.a.a.a.a.a.a.a.a.d at q@q at h q@| | | %+| a.a.a.a.a.a.a.a.a.a.a.a.a.'.K at L@M at N@O at P@",
+"  Q at R@S at T@U@!.a.a.a.a.a.a.a.a.a.a.a.a.a.e at i i h q at q@| | %+%+a.a.a.a.a.a.a.a.a.a.a.a.a.!.V at W@X at Y@Z@`@",
+"   #.#+#@###!.a.a.a.a.a.a.a.a.a.a.a.a.a.e at q@i q at q@| | | %+%+a.a.a.a.a.a.a.a.a.a.a.a.a.!.$#%#&#*#=#-#",
+"  ;#>#,#'#)#!.a.a.a.a.a.a.a.a.a.a.a.a.a.d at q@i h q at q@| %+%+%+a.a.a.a.a.a.a.a.a.a.a.a.a.'.!#~#{#]#^#/#",
+"  (#_#:#<#[#}#a.a.a.a.a.a.a.a.a.a.a.a.a.c at q@q at q@| | | %+%+c at a.a.a.a.a.a.a.a.a.a.a.a.a.|#1#2#3#4#5#6#",
+"  7#8#9#0#a#}#!.a.a.a.a.a.a.a.a.a.a.a.a.a.p at q@| | | %+%+p at a.a.a.a.a.a.a.a.a.a.a.a.a.!.|#b#c#d#e#f#g#",
+"  h#i#j#k#l#'.!.a.a.a.a.a.a.a.a.a.a.a.a.a.a.c at d@e@%+%+c at a.a.a.a.a.a.a.a.a.a.a.a.a.a.!.|#m#n#o#p#q#  ",
+"  r#s#t#u#v#|#!.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.!.w#x#y#z#A#B#  ",
+"  C#D#E#F#G#H#!.!.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.!.'.I#J#K#L#M#N#  ",
+"  O#P#Q#R#S#T#t.!.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.!.K+U#V#W#X#Y#Z#  ",
+"    `# $.$+$@$#$!.!.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.!.!.$$%$&$*$=$-$    ",
+"    ;$>$,$'$)$!$!.!.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.!.~${$]$^$/$($_$    ",
+"    :$<$[$}$|$1$2$!.!.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.!.!.3$4$5$6$7$8$9$    ",
+"      0$a$b$c$d$e$t.!.!.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.!.!.f$g$h$i$j$k$l$m$    ",
+"        n$o$p$q$r$-+!.!.!.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.!.!.~.s$t$u$v$w$x$y$      ",
+"        z$A$B$C$D$E$F$!.!.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.!.!.G$H$I$J$K$L$M$        ",
+"          N$O$P$Q$R$S$T$!.!.!.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.!.!.!.U$V$W$X$Y$Z$`$ %        ",
+"            .%+%@%#%$%%%&%!.!.!.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.!.'.*%=%-%;%>%,%'%)%          ",
+"            !%~%{%]%^%/%(%_%!.!.!.!.a.a.a.a.a.a.a.a.a.a.a.a.a.a.!.!.!.'.:%<%[%}%|%1%2%3%4%          ",
+"              5%6%7%8%9%0%a%b%8+!.!.!.c%a.a.a.a.a.a.a.a.a.a.!.!.!.!.2$d%e%f%g%h%i%j%k%l%            ",
+"                m%n%o%p%q%r%s%t%u%v%0.!.!.!.w%a.a.a.a.!.!.!.!.'.x%y%z%A%B%C%D%E%F%G%H%              ",
+"                  I%J%K%L%M%N%O%P%Q%R%S%'.K+'.!.!.!.!.'.'.&%T%U%V%W%X%Y%Z%`% &.&+&@&                ",
+"                    #&$&%&&&*&=&-&;&>&,&'&)&!&~&{&]&^&/&(&_&:&<&[&}&|&1&2&3&4&5&6&                  ",
+"                        7&8&9&0&a&b&c&d&e&f&g&h&i&j&k&l&m&n&o&p&q&r&s&t&u&v&w&                      ",
+"                          x&y&z&A&B&C&D&E&F&G&H&I&J&K&L&M&N&O&P&Q&R&S&T&U&V&                        ",
+"                              W&X&Y&Z&`& *.*+*@*#*$*%*&***=*-*;*>*,*'*)*                            ",
+"                                    !*~*{*]*^*/*(*_*:*<*[*}*|*1*2*3*                                "};

Added: packages/gpsdrive/branches/etch/src/em.c
===================================================================
--- packages/gpsdrive/branches/etch/src/em.c	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/em.c	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,593 @@
+#include "config.h"
+#include <stdio.h>
+#include <stdlib.h>
+#include <math.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <sys/socket.h>
+#include <time.h>
+#include <fcntl.h>
+#include <netinet/in.h>
+#include <syslog.h>
+#include <unistd.h>
+#include <string.h>
+
+#include "gpsd.h"
+#include "nmea.h"
+#define BUFSIZE 4096
+
+extern int debug;
+extern char *latitude;
+extern char *longitude;
+extern char latd;
+extern char lond;
+
+
+#define PI 3.14159265358979323846
+
+enum
+{
+  EM_HUNT_FF, EM_HUNT_81, EM_HUNT_ID, EM_HUNT_WC,
+  EM_HUNT_FLAGS, EM_HUNT_CS, EM_HUNT_DATA, EM_HUNT_A
+};
+
+#define O(x) (x-6)
+
+static unsigned short sn = 0;
+static int eminit;
+
+struct header
+{
+  unsigned short sync;
+  unsigned short id;
+  unsigned short ndata;
+  unsigned short flags;
+  unsigned short csum;
+};
+
+static void analyze (struct header *, unsigned short *, fd_set *, fd_set *);
+
+unsigned short
+em_checksum (unsigned short *w, int n)
+{
+  unsigned short csum = 0;
+
+  while (n--)
+    csum += *(w++);
+  csum = -csum;
+  return csum;
+}
+
+/* em_spew - Takes a message type, an array of data words, and a length
+   for the array, and prepends a 5 word header (including checksum).
+   The data words are expected to be checksummed */
+
+static void
+em_spew (int type, void *dat, int dlen)
+{
+  struct header h;
+
+  h.flags = 0;
+
+  h.sync = 0x81ff;
+  h.id = type;
+  h.ndata = dlen - 1;
+  h.csum = em_checksum ((unsigned short *) &h, 4);
+
+  write (gNMEAdata.fdout, &h, sizeof (h));
+  write (gNMEAdata.fdout, dat, sizeof (unsigned short) * dlen);
+}
+
+static long
+putlong (char *dm, int sign)
+{
+  double tmpl;
+  long rad;
+
+  tmpl = fabs (atof (dm));
+
+  rad =
+    (floor (tmpl / 100) + (fmod (tmpl, 100.0) / 60)) * 100000000 * PI / 180;
+
+  if (sign)
+    rad = -rad;
+
+  return rad;
+}
+
+static void
+em_init ()
+{
+  unsigned short data[22];
+  time_t t;
+  struct tm *tm;
+
+  eminit = 0;
+
+  if (latitude && longitude)
+    {
+      t = time (NULL);
+      tm = gmtime (&t);
+
+      if (sn++ > 32767)
+	sn = 0;
+
+      memset (data, 0, sizeof (data));
+
+      data[0] = sn;		/* sequence number */
+
+      data[1] = (1 << 2) | (1 << 3);
+      data[2] = data[3] = data[4] = 0;
+      data[5] = tm->tm_mday;
+      data[6] = tm->tm_mon + 1;
+      data[7] = tm->tm_year + 1900;
+      data[8] = tm->tm_hour;
+      data[9] = tm->tm_min;
+      data[10] = tm->tm_sec;
+      *(long *) (data + 11) = putlong (latitude, (latd == 'S') ? 1 : 0);
+      *(long *) (data + 13) = putlong (longitude, (lond == 'W') ? 1 : 0);
+      data[15] = data[16] = 0;
+      data[17] = data[18] = data[19] = data[20] = 0;
+      data[21] = em_checksum (data, 21);
+
+      em_spew (1200, &data, 22);
+    }
+}
+
+void
+em_send_rtcm (unsigned short *rtcmbuf, int rtcmbytes)
+{
+  unsigned short data[34];
+  int n = 1 + (rtcmbytes / 2 + rtcmbytes % 2);
+
+  if (sn++ > 32767)
+    sn = 0;
+
+  memset (data, 0, sizeof (data));
+
+  data[0] = sn;			/* sequence number */
+  memcpy (&data[1], rtcmbuf, rtcmbytes * (sizeof (char)));
+  data[n] = em_checksum (data, n);
+
+  em_spew (1351, &data, n + 1);
+}
+
+void
+do_eminit ()
+{
+  /* Make sure these are zero before 1002 handler called */
+  gNMEAdata.pdop = gNMEAdata.hdop = gNMEAdata.vdop = 0;
+  eminit = 1;
+}
+
+static long
+getlong (void *p)
+{
+  return *(long *) p;
+}
+
+
+static unsigned long
+getulong (void *p)
+{
+  return *(unsigned long *) p;
+}
+
+
+static double
+degtodm (double a)
+{
+  double d, m, t;
+
+  d = floor (a);
+  m = modf (a, &t);
+  t = d * 100 + m * 60;
+  return t;
+}
+
+static void
+handle1000 (unsigned short *p)
+{
+#if 0
+  fprintf (stderr, "date: %d %d %d  %d:%d:%d\n",
+	   p[O (19)], p[O (20)], p[O (21)], p[O (22)], p[O (23)], p[O (24)]);
+
+  fprintf (stderr, "  solution invalid:\n");
+  fprintf (stderr, "    altitude: %d\n", (p[O (10)] & 1) ? 1 : 0);
+  fprintf (stderr, "    no diff gps: %d\n", (p[O (10)] & 2) ? 1 : 0);
+  fprintf (stderr, "    not enough satellites: %d\n",
+	   (p[O (10)] & 4) ? 1 : 0);
+  fprintf (stderr, "    exceed max EHPE: %d\n", (p[O (10)] & 8) ? 1 : 0);
+  fprintf (stderr, "    exceed max EVPE: %d\n", (p[O (10)] & 16) ? 1 : 0);
+  fprintf (stderr, "  solution type:\n");
+  fprintf (stderr, "    propagated: %d\n", (p[O (11)] & 1) ? 1 : 0);
+  fprintf (stderr, "    altitude: %d\n", (p[O (11)] & 2) ? 1 : 0);
+  fprintf (stderr, "    differential: %d\n", (p[O (11)] & 4) ? 1 : 0);
+  fprintf (stderr, "Number of measurements in solution: %d\n", p[O (12)]);
+  fprintf (stderr, "Lat: %f\n",
+	   180.0 / (PI / ((double) getlong (p + O (27)) / 100000000)));
+  fprintf (stderr, "Lon: %f\n",
+	   180.0 / (PI / ((double) getlong (p + O (29)) / 100000000)));
+  fprintf (stderr, "Alt: %f\n", (double) getlong (p + O (31)) / 100.0);
+  fprintf (stderr, "Speed: %f\n",
+	   (double) getlong (p + O (34)) / 100.0) * 1.94387;
+  fprintf (stderr, "Map datum: %d\n", p[O (39)]);
+  fprintf (stderr, "Magnetic variation: %f\n",
+	   p[O (37)] * 180 / (PI * 10000));
+  fprintf (stderr, "Course: %f\n", (p[O (36)] * 180 / (PI * 1000)));
+  fprintf (stderr, "Separation: %f\n", (p[O (33)] / 100));
+#endif
+
+  sprintf (gNMEAdata.utc, "%02d/%02d/%d %02d:%02d:%02d",
+	   p[O (19)], p[O (20)], p[O (21)], p[O (22)], p[O (23)], p[O (24)]);
+
+  gNMEAdata.mag_var = p[O (37)] * 180 / (PI * 10000);	/* degrees */
+
+  gNMEAdata.course = p[O (36)] * 180 / (PI * 1000);	/* degrees */
+
+  gNMEAdata.satellites = p[O (12)];
+
+  gNMEAdata.hours = p[O (22)];
+
+  gNMEAdata.minutes = p[O (23)];
+
+  gNMEAdata.seconds = p[O (24)];
+
+  gNMEAdata.year = p[O (21)];
+
+  gNMEAdata.month = p[O (20)];
+
+  gNMEAdata.day = p[O (19)];
+
+  gNMEAdata.latitude =
+    180.0 / (PI / ((double) getlong (p + O (27)) / 100000000));
+  gNMEAdata.longitude =
+    180.0 / (PI / ((double) getlong (p + O (29)) / 100000000));
+  gNMEAdata.speed = ((double) getulong (p + O (34)) / 100.0) * 1.94387;
+  gNMEAdata.altitude = (double) getlong (p + O (31)) / 100.0;
+
+  gNMEAdata.status = (p[O (10)] & 0x1c) ? 0 : 1;
+
+  if (gNMEAdata.status)
+    {
+      gNMEAdata.mode = (p[O (10)] & 1) ? 2 : 3;
+      if (p[O(11)] & 0x4) gNMEAdata.status = 2;
+    }
+  else
+    {
+      gNMEAdata.mode = 1;
+    }
+
+  gNMEAdata.separation = p[O (33)] / 100;	/* meters */
+
+}
+
+static void
+handle1002 (unsigned short *p)
+{
+  int i, j;
+
+  gNMEAdata.ZCHseen = 1;
+  for (j = 0; j < 12; j++)
+    {
+      gNMEAdata.used[j] = 0;
+    }
+  for (i = 0; i < 12; i++)
+    {
+      gNMEAdata.Zs[i] = p[O (16 + (3 * i))];
+      gNMEAdata.Zv[i] = (p[O (15 + (3 * i))] & 0xf);
+#if 0
+      fprintf (stderr, "Sat%02d:", i);
+      fprintf (stderr, " used:%d", (p[O (15 + (3 * i))] & 1) ? 1 : 0);
+      fprintf (stderr, " eph:%d", (p[O (15 + (3 * i))] & 2) ? 1 : 0);
+      fprintf (stderr, " val:%d", (p[O (15 + (3 * i))] & 4) ? 1 : 0);
+      fprintf (stderr, " dgps:%d", (p[O (15 + (3 * i))] & 8) ? 1 : 0);
+      fprintf (stderr, " PRN:%d", p[O (16 + (3 * i))]);
+      fprintf (stderr, " C/No:%d\n", p[O (17 + (3 * i))]);
+#endif
+      for (j = 0; j < 12; j++)
+	{
+	  if (gNMEAdata.PRN[j] != p[O (16 + (3 * i))])
+	    continue;
+	  gNMEAdata.used[j] = (p[O (15 + (3 * i))] & 1);
+	  gNMEAdata.ss[j] = p[O (17 + (3 * i))];
+	  break;
+	}
+    }
+}
+
+static void
+handle1003 (unsigned short *p)
+{
+  int  j;
+
+  gNMEAdata.pdop = p[O (10)];
+  gNMEAdata.hdop = p[O (11)];
+  gNMEAdata.vdop = p[O (12)];
+  gNMEAdata.in_view = p[O (14)];
+
+  for (j = 0; j < 12; j++)
+    {
+      if (j < gNMEAdata.in_view)
+	{
+	  gNMEAdata.PRN[j] = p[O (15 + (3 * j))];
+	  gNMEAdata.azimuth[j] = p[O (16 + (3 * j))] * 180 / (PI * 10000);
+	  gNMEAdata.elevation[j] = p[O (17 + (3 * j))] * 180 / (PI * 10000);
+#if 0
+	  fprintf (stderr, "Sat%02d:", i);
+	  fprintf (stderr, " PRN:%d", p[O (15 + (3 * i))]);
+	  fprintf (stderr, " az:%d", p[O (16 + (3 * i))]);
+	  fprintf (stderr, " el:%d", p[O (17 + (3 * i))]);
+	  fprintf (stderr, "\n");
+#endif
+	}
+      else
+	{
+	  gNMEAdata.PRN[j] = 0;
+	  gNMEAdata.azimuth[j] = 0.0;
+	  gNMEAdata.elevation[j] = 0.0;
+	}
+    }
+}
+
+static void
+handle1005 (unsigned short *p)
+{
+  int i;
+  int numcorrections = p[O (12)];
+#if 1
+  fprintf (stderr, "Station bad: %d\n", (p[O (9)] & 1) ? 1 : 0);
+  fprintf (stderr, "User disabled: %d\n", (p[O (9)] & 2) ? 1 : 0);
+  fprintf (stderr, "Station ID: %d\n", p[O (10)]);
+  fprintf (stderr, "Age of last correction in seconds: %d\n", p[O (11)]);
+  fprintf (stderr, "Number of corrections: %d\n", p[O (12)]);
+  for (i = 0; i < numcorrections; i++)
+    {
+      fprintf (stderr, "Sat%02d:", p[O (13 + i)] & 0x3f);
+      fprintf (stderr, "ephemeris:%d", (p[O (13 + i)] & 64) ? 1 : 0);
+      fprintf (stderr, "rtcm corrections:%d", (p[O (13 + i)] & 128) ? 1 : 0);
+      fprintf (stderr, "rtcm udre:%d", (p[O (13 + i)] & 256) ? 1 : 0);
+      fprintf (stderr, "sat health:%d", (p[O (13 + i)] & 512) ? 1 : 0);
+      fprintf (stderr, "rtcm sat health:%d", (p[O (13 + i)] & 1024) ? 1 : 0);
+      fprintf (stderr, "corrections state:%d",
+	       (p[O (13 + i)] & 2048) ? 1 : 0);
+      fprintf (stderr, "iode mismatch:%d", (p[O (13 + i)] & 4096) ? 1 : 0);
+    }
+#endif
+}
+
+static void
+analyze (struct header *h, unsigned short *p, fd_set * afds,
+	 fd_set * nmea_fds)
+{
+  unsigned char buf[BUFSIZE];
+  char *bufp;
+  char *bufp2;
+  int i = 0, j = 0,  nmea = 0;
+  int fd;
+  extern int nfds;
+
+  if (p[h->ndata] == em_checksum (p, h->ndata))
+    {
+      if (debug > 5)
+	fprintf (stderr, "id %d\n", h->id);
+      switch (h->id)
+	{
+	case 1000:
+	  handle1000 (p);
+	  bufp = buf;
+	  if (gNMEAdata.mode > 1)
+	    {
+	      sprintf (bufp,
+			"$GPGGA,%02d%02d%02d,%09.4lf,%c,%010.4lf,%c,%d,%02d,%.2f,%.1f,%c,%f,%c,%s,%s*",
+		       gNMEAdata.hours, gNMEAdata.minutes, gNMEAdata.seconds,
+		       degtodm (fabs (gNMEAdata.latitude)),
+		       ((gNMEAdata.latitude > 0) ? 'N' : 'S'),
+		       degtodm (fabs (gNMEAdata.longitude)),
+		       ((gNMEAdata.longitude > 0) ? 'E' : 'W'),
+		    gNMEAdata.status, gNMEAdata.satellites, gNMEAdata.hdop,
+		       gNMEAdata.altitude, 'M', gNMEAdata.separation, 'M', "",
+		       "");
+	      add_checksum (bufp + 1);
+	      bufp = bufp + strlen (bufp);
+	    }
+	  sprintf (bufp,
+		    "$GPRMC,%02d%02d%02d,%c,%09.4lf,%c,%010.4lf,%c,%f,%f,%02d%02d%02d,%02f,%c*",
+		   gNMEAdata.hours, gNMEAdata.minutes, gNMEAdata.seconds,
+		   gNMEAdata.status ? 'A' : 'V',
+		   degtodm (fabs (gNMEAdata.latitude)),
+		   ((gNMEAdata.latitude > 0) ? 'N' : 'S'),
+		   degtodm (fabs (gNMEAdata.longitude)),
+		   ((gNMEAdata.longitude > 0) ? 'E' : 'W'), gNMEAdata.speed,
+		   gNMEAdata.course, gNMEAdata.day, gNMEAdata.month,
+		   (gNMEAdata.year % 100), gNMEAdata.mag_var,
+		   (gNMEAdata.mag_var > 0) ? 'E' : 'W');
+	  add_checksum (bufp + 1);
+	  nmea = 1000;
+	  break;
+	case 1002:
+	  handle1002 (p);
+	  bufp2 = bufp = buf;
+	  sprintf (bufp, "$GPGSA,%c,%d,", 'A', gNMEAdata.mode);
+	  j = 0;
+	  for (i = 0; i < 12; i++)
+	    {
+	      if (gNMEAdata.used[i])
+		{
+		  bufp = bufp + strlen (bufp);
+		  sprintf (bufp, "%02d,", gNMEAdata.PRN[i]);
+		  j++;
+		}
+	    }
+	  for (i = j; i < 12; i++)
+	    {
+	      bufp = bufp + strlen (bufp);
+	      sprintf (bufp, ",");
+	    }
+	  bufp = bufp + strlen (bufp);
+	  sprintf (bufp, "%.2f,%.2f,%.2f*", gNMEAdata.pdop, gNMEAdata.hdop,
+		   gNMEAdata.vdop);
+	  add_checksum (bufp2 + 1);
+	  bufp2 = bufp = bufp + strlen (bufp);
+	  sprintf (bufp, "$PRWIZCH");
+	  bufp = bufp + strlen (bufp);
+	  for (i = 0; i < 12; i++)
+	    {
+	      sprintf (bufp, ",%02d,%X", gNMEAdata.Zs[i], gNMEAdata.Zv[i]);
+	      bufp = bufp + strlen (bufp);
+	    }
+	  sprintf (bufp, "*");
+	  bufp = bufp + strlen (bufp);
+	  add_checksum (bufp2 + 1);
+	  nmea = 1002;
+	  break;
+	case 1003:
+	  handle1003 (p);
+	  bufp2 = bufp = buf;
+	  j =
+	    (gNMEAdata.in_view / 4) + (((gNMEAdata.in_view % 4) > 0) ? 1 : 0);
+	  while (i < 12)
+	    {
+	      if (i % 4 == 0)
+		sprintf (bufp, "$GPGSV,%d,%d,%02d", j, (i / 4) + 1,
+			 gNMEAdata.in_view);
+	      bufp += strlen (bufp);
+	      if (i <= gNMEAdata.in_view && gNMEAdata.elevation[i])
+		sprintf (bufp, ",%02d,%02d,%03d,%02d", gNMEAdata.PRN[i],
+			 gNMEAdata.elevation[i], gNMEAdata.azimuth[i],
+			 gNMEAdata.ss[i]);
+	      else
+		sprintf (bufp, ",%02d,00,000,%02d,", gNMEAdata.PRN[i],
+			 gNMEAdata.ss[i]);
+	      bufp += strlen (bufp);
+	      if (i % 4 == 3)
+		{
+		  sprintf (bufp, "*");
+		  add_checksum (bufp2 + 1);
+		  bufp += strlen (bufp);
+		  bufp2 = bufp;
+		}
+	      i++;
+	    }
+	  nmea = 1003;
+	  break;
+	case 1005:
+	  handle1005 (p);
+	  break;
+	}
+    }
+  if (nmea > 0)
+    {
+      if (debug > 4)
+	fprintf (stderr, "%s", buf);
+      for (fd = 0; fd < nfds; fd++)
+	if (FD_ISSET (fd, nmea_fds))
+	  if (write (fd, buf, strlen (buf)) < 0)
+	    {
+	      FD_CLR (fd, afds);
+	      FD_CLR (fd, nmea_fds);
+	    }
+    }
+  if (eminit)
+    em_init ();
+}
+
+
+static int
+putword (unsigned short *p, unsigned char c, unsigned int n)
+{
+  *(((unsigned char *) p) + n) = c;
+  if (n == 0)
+    return 1;
+  else
+    return 0;
+}
+
+
+static void
+em_eat (unsigned char c, fd_set * afds, fd_set * nmea_fds)
+{
+  static int state = EM_HUNT_FF;
+  static struct header h;
+
+  static unsigned int byte;
+  static unsigned int words;
+  static unsigned short *data;
+
+  switch (state)
+    {
+
+    case EM_HUNT_FF:
+      if (c == 0xff)
+	state = EM_HUNT_81;
+      if (c == 'E')
+	state = EM_HUNT_A;
+      break;
+
+    case EM_HUNT_A:
+      /* A better be right after E */
+      if (c == 'A')
+	write (gNMEAdata.fdout, "EARTHA\r\n", 8);
+      state = EM_HUNT_FF;
+      break;
+
+    case EM_HUNT_81:
+      if (c == 0x81)
+	state = EM_HUNT_ID;
+      h.sync = 0x81ff;
+      byte = 0;
+      break;
+
+    case EM_HUNT_ID:
+      if (!(byte = putword (&(h.id), c, byte)))
+	state = EM_HUNT_WC;
+      break;
+
+    case EM_HUNT_WC:
+      if (!(byte = putword (&(h.ndata), c, byte)))
+	state = EM_HUNT_FLAGS;
+      break;
+
+    case EM_HUNT_FLAGS:
+      if (!(byte = putword (&(h.flags), c, byte)))
+	state = EM_HUNT_CS;
+      break;
+
+    case EM_HUNT_CS:
+      if (!(byte = putword (&(h.csum), c, byte)))
+	{
+
+	  if (h.csum == em_checksum ((unsigned short *) &h, 4))
+	    {
+	      state = EM_HUNT_DATA;
+	      data = (unsigned short *) malloc ((h.ndata + 1) * 2);
+	      words = 0;
+	    }
+	  else
+	    state = EM_HUNT_FF;
+	}
+      break;
+
+    case EM_HUNT_DATA:
+      if (!(byte = putword (data + words, c, byte)))
+	words++;
+      if (words == h.ndata + 1)
+	{
+	  analyze (&h, data, afds, nmea_fds);
+	  free (data);
+	  state = EM_HUNT_FF;
+	}
+      break;
+    }
+}
+
+int
+handle_EMinput (int input, fd_set * afds, fd_set * nmea_fds)
+{
+  unsigned char c;
+
+  if (read (input, &c, 1) != 1)
+    return 1;
+  em_eat (c, afds, nmea_fds);
+  return 0;
+}

Added: packages/gpsdrive/branches/etch/src/fly.c
===================================================================
--- packages/gpsdrive/branches/etch/src/fly.c	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/fly.c	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,256 @@
+/****************************************************************
+
+Copyright (c) 2001-2004 Fritz Ganter <ganter at ganter.at>
+
+Website: www.gpsdrive.de
+
+Disclaimer: Please do not use for navigation. 
+
+    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
+
+    *********************************************************************
+
+
+$Log: fly.c,v $
+Revision 1.18  2004/02/08 17:16:25  ganter
+replacing all strcat with g_strlcat to avoid buffer overflows
+
+Revision 1.17  2004/02/02 03:38:31  ganter
+code cleanup
+
+Revision 1.16  2004/01/01 09:07:31  ganter
+v2.06
+trip info is now live updated
+added cpu temperature display for acpi
+added tooltips for battery and temperature
+
+Revision 1.15  2003/09/17 20:18:01  ganter
+...
+
+Revision 1.14  2003/05/11 21:15:46  ganter
+v2.0pre7
+added script convgiftopng
+This script converts .gif into .png files, which reduces CPU load
+run this script in your maps directory, you need "convert" from ImageMagick
+
+Friends mode runs fine now
+Added parameter -H to correct the alitude
+
+Revision 1.13  2003/01/15 15:30:28  ganter
+before dynamically loading mysql
+
+Revision 1.12  2002/11/02 12:38:55  ganter
+changed website to www.gpsdrive.de
+
+Revision 1.11  2002/06/23 17:09:34  ganter
+v1.23pre9
+now PDA mode looks good.
+
+Revision 1.10  2002/06/16 17:50:34  ganter
+working on PDA screen
+
+Revision 1.9  2002/06/02 20:54:09  ganter
+added navigation.c and copyrights
+
+Revision 1.8  2002/06/01 15:42:31  ganter
+fixed bug for little screens
+added new wpget from Miguel Angelo Rozsas <miguel at rozsas.xx.nom.br>
+
+Revision 1.7  2002/05/20 20:40:23  ganter
+v1.22
+
+Revision 1.6  2002/05/20 10:02:48  ganter
+v1.22pre7
+
+Revision 1.5  2002/05/19 19:25:16  ganter
+fly and nautic loading works
+
+Revision 1.4  2002/04/14 15:25:56  ganter
+v1.17pre3
+added simulaton follow switch in setup menu
+
+Revision 1.3  2002/04/13 17:33:29  ganter
+...
+
+Revision 1.2  2002/04/13 17:30:35  ganter
+v1.17pre2
+
+Revision 1.1  2002/04/07 00:47:42  ganter
+added fly.c
+added more GPS-receivers
+
+
+fly.c -- routines specific for aeronautical usage
+
+at the moment, there is no functionality except creating a settings
+menu entry
+
+*****************************************************************/
+
+#include <unistd.h>
+#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
+#include <gpsdrive.h>
+#include <config.h>
+
+
+/*  Defines for gettext I18n */
+# include <libintl.h>
+# define _(String) gettext(String)
+# ifdef gettext_noop
+#  define N_(String) gettext_noop(String)
+# else
+#  define N_(String) (String)
+# endif
+
+#define PADDING int_padding
+
+extern GtkWidget *hauptfenster;
+GtkWidget *splash_window;
+extern gchar homedir[500], mapdir[500];
+extern gint wpflag, trackflag, muteflag, displaymap_top, displaymap_map;
+extern gint scaleprefered, milesflag, nauticflag, metricflag;
+extern gint debug, scalewanted, savetrack, defaultserver;
+extern gchar serialdev[80];
+extern gdouble current_long, current_lat, old_long, old_lat, groundspeed;
+extern gint setdefaultpos, shadow, testgarmin, needtosave, usedgps;
+extern gchar activewpfile[200];
+extern gint mod_setupcounter;
+extern GtkWidget *setupentry[50], *setupentrylabel[50];
+void (*setupfunction[50]) ();
+
+static gint myplace;
+gint moduleversion = 2;
+gint flymode = FALSE, vfr = 1,disdevwarn=TRUE;
+extern gint real_screen_x, real_screen_y, real_psize, real_smallmenu, int_padding;
+
+
+/*  this inits the additional functions for fly */
+gint
+modulesetup ()
+{
+  GtkWidget *mainbox, *table, *flymodebt,*disdevbt;
+  GtkWidget *l3, *l4, *vfr1, *vfr2,*e1,*e2;
+  gchar text[100];
+
+  setupentry[myplace] = gtk_frame_new (_("Aeronautical settings"));
+  gtk_container_set_border_width (GTK_CONTAINER (setupentry[myplace]), 5* PADDING);
+  setupentrylabel[myplace] = gtk_label_new (_("Fly"));
+  mainbox = gtk_vbox_new (FALSE, 15* PADDING);
+  gtk_container_add (GTK_CONTAINER (setupentry[myplace]), mainbox);
+
+  table = gtk_table_new (7, 2, FALSE);
+  gtk_box_pack_start (GTK_BOX (mainbox), table, FALSE, FALSE, 10* PADDING);
+
+  flymodebt = gtk_check_button_new_with_label (_("Plane mode"));
+  if (flymode)
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (flymodebt), TRUE);
+
+  gtk_signal_connect (GTK_OBJECT (flymodebt),
+		      "clicked", GTK_SIGNAL_FUNC (flymode_cb), (gpointer) 1);
+
+  vfr1 = gtk_radio_button_new_with_label (NULL, _("Use VFR"));
+  gtk_signal_connect (GTK_OBJECT (vfr1),
+		      "clicked", GTK_SIGNAL_FUNC (vfr_cb), (gpointer) 1);
+
+  vfr2 =
+    gtk_radio_button_new_with_label (gtk_radio_button_group
+				     (GTK_RADIO_BUTTON (vfr1)), _("Use IFR"));
+  gtk_signal_connect (GTK_OBJECT (vfr2), "clicked",
+		      GTK_SIGNAL_FUNC (vfr_cb), (gpointer) 2);
+
+
+  gtk_table_attach_defaults (GTK_TABLE (table), flymodebt, 0, 2, 0, 1);
+
+  gtk_table_attach_defaults (GTK_TABLE (table), vfr1, 0, 1, 2, 3);
+  gtk_table_attach_defaults (GTK_TABLE (table), vfr2, 1, 2, 2, 3);
+
+  l3 = gtk_label_new (_("max. horizontal deviation "));
+  gtk_table_attach_defaults (GTK_TABLE (table), l3, 0, 1, 4, 5);
+  l4 = gtk_label_new (_("max. vertical deviation "));
+  gtk_table_attach_defaults (GTK_TABLE (table), l4, 0, 1, 5, 6);
+
+  e1 = gtk_entry_new ();
+  g_snprintf (text, sizeof(text),"%d", (int) 500);
+  gtk_entry_set_text (GTK_ENTRY (e1), text);
+  gtk_table_attach_defaults (GTK_TABLE (table), e1, 1, 2, 4, 5);
+  e2 = gtk_entry_new ();
+  g_snprintf (text, sizeof(text), "%d", (int) 1000);
+  gtk_entry_set_text (GTK_ENTRY (e2), text);
+  gtk_table_attach_defaults (GTK_TABLE (table), e2, 1, 2, 5, 6);
+
+  gtk_widget_set_usize (e1, 20, 22);
+  gtk_widget_set_usize (e2, 20, 22);
+
+  disdevbt = gtk_check_button_new_with_label (_("disable vert. deviation warning above 5000ft MSL"));
+  if (disdevwarn)
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (disdevbt), TRUE);
+
+  gtk_signal_connect (GTK_OBJECT (disdevbt),
+		      "clicked", GTK_SIGNAL_FUNC (disdev_cb), (gpointer) 1);
+  gtk_table_attach_defaults (GTK_TABLE (table), disdevbt, 0, 2, 6, 7);
+
+
+  if (debug)
+    g_print ("\nCreated fly setup window. %d\n", myplace);
+  return 0;
+}
+
+gint
+g_module_check_init ()
+{
+  myplace = mod_setupcounter + 1;
+  g_print ("\nModule fly loaded");
+  return 0;
+}
+
+/*  switching nightmode */
+gint
+vfr_cb (GtkWidget *widget, guint datum)
+{
+
+  switch (datum)
+    {
+    case 1:
+      vfr = 1;
+      break;
+    case 2:
+      vfr = 2;
+      break;
+
+    }
+  needtosave = TRUE;
+  return TRUE;
+}
+
+/*  switching flymode on/off */
+gint
+flymode_cb (GtkWidget *widget, guint datum)
+{
+  flymode = !flymode;
+  needtosave = TRUE;
+  return TRUE;
+}
+
+/*  switching flymode on/off */
+gint
+disdev_cb (GtkWidget *widget, guint datum)
+{
+  disdevwarn = !disdevwarn;
+  needtosave = TRUE;
+  return TRUE;
+}
+

Added: packages/gpsdrive/branches/etch/src/friends.c
===================================================================
--- packages/gpsdrive/branches/etch/src/friends.c	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/friends.c	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,454 @@
+/* friendsd client
+ * Copyright (c) 2001-2004 Fritz Ganter <ganter at ganter.at>
+ * 
+ * Website: www.gpsdrive.de
+ * 
+ * 
+ * 
+ *     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
+ * 
+ *     *********************************************************************
+ $Log: friends.c,v $
+ Revision 1.37  2004/02/08 16:35:10  ganter
+ replacing all sprintf with g_snprintf to avoid buffer overflows
+
+ Revision 1.36  2004/02/07 15:53:38  ganter
+ replacing strcpy with g_strlcpy to avoid bufferoverflows
+
+ Revision 1.35  2004/02/02 03:38:31  ganter
+ code cleanup
+
+ Revision 1.34  2004/01/28 15:31:43  ganter
+ initialize FDs to -1
+
+ Revision 1.33  2004/01/28 09:32:57  ganter
+ tested for memory leaks with valgrind, looks good :-)
+
+ Revision 1.32  2004/01/26 11:55:19  ganter
+ just indented some files
+
+ Revision 1.31  2004/01/22 07:13:27  ganter
+ ...
+
+ Revision 1.30  2004/01/22 06:44:12  ganter
+ ...
+
+ Revision 1.29  2004/01/22 06:38:02  ganter
+ working on friendsd
+
+ Revision 1.28  2004/01/15 22:02:40  ganter
+ added openbsd patches
+ real 2.07pre9
+
+ Revision 1.27  2004/01/14 03:47:36  ganter
+ removed some debug output
+
+ Revision 1.26  2004/01/14 03:31:37  ganter
+ now message acknoledge is done to and from friendsserver
+
+ Revision 1.25  2004/01/14 00:48:49  ganter
+ fixed bug if no crypt is avail.
+
+ Revision 1.24  2004/01/14 00:06:27  ganter
+ ...
+
+ Revision 1.23  2004/01/13 23:38:30  ganter
+ added new field in waypoints display for number of friends received
+
+ Revision 1.22  2004/01/13 19:30:41  ganter
+ changed "operations menu" do "Misc. menu"
+
+ Revision 1.21  2004/01/13 14:31:31  ganter
+ status bar
+
+ Revision 1.20  2004/01/13 14:09:43  ganter
+ ...
+
+ Revision 1.19  2004/01/13 00:31:41  ganter
+ fixed multiline message bug
+
+ Revision 1.18  2004/01/12 23:53:08  ganter
+ grrrrrrrrrrrr
+
+ Revision 1.17  2004/01/12 23:52:15  ganter
+ grrr
+
+ Revision 1.16  2004/01/12 23:41:34  ganter
+ fixed name bug again, upload tar and cvs again
+
+ Revision 1.15  2004/01/12 23:22:34  ganter
+ fixed wrong sender name in message
+
+ Revision 1.14  2004/01/12 22:22:06  ganter
+ make message menu entry insensitive if message is not yet send
+
+ Revision 1.13  2004/01/12 21:52:02  ganter
+ added friends message service
+
+ Revision 1.12  2004/01/01 09:07:31  ganter
+ v2.06
+ trip info is now live updated
+ added cpu temperature display for acpi
+ added tooltips for battery and temperature
+
+ Revision 1.11  2003/10/04 17:43:58  ganter
+ translations don't need to be utf-8, but the .po files must specify the
+ correct coding (ie, UTF-8, iso8859-15)
+
+ Revision 1.10  2003/08/12 12:47:15  ganter
+ v2.03 workaround for missing crypt()
+
+ Revision 1.9  2003/07/25 12:17:14  ganter
+ 2.00
+
+ Revision 1.8  2003/06/08 13:31:49  ganter
+ release 2.0pre9
+ Added setting of timeperiod in friends mode (see settings menu)
+
+ Revision 1.7  2003/05/31 20:32:01  ganter
+ friendsd2 works fine with sven's server
+
+ Revision 1.4  2003/05/31 18:25:57  ganter
+ starting buildin new server and client
+
+ Revision 1.3  2003/05/30 18:59:15  ganter
+ client server working, but not perfectly
+
+ Revision 1.2  2003/05/30 15:35:16  ganter
+ testing
+
+ */
+
+
+/*
+ * inet.h - Definitions for TCP and UDP client/server programs.
+ */
+#include <config.h>
+#include <stdio.h>
+#include <errno.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
+#include <stdio.h>
+#include <errno.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
+#ifdef HAVE_CRYPT_H
+#include <crypt.h>
+#endif
+
+#include <sys/stat.h>
+#include <fcntl.h>
+#ifdef HAVE_LINUX_INET_H
+#include "linux/inet.h"
+#endif
+#include <unistd.h>
+#include <time.h>
+#include <gpsdrive.h>
+
+#define	SERV_UDP_PORT	50123
+/*  Defines for gettext I18n */
+# include <libintl.h>
+# define _(String) gettext(String)
+# ifdef gettext_noop
+#  define N_(String) gettext_noop(String)
+# else
+#  define N_(String) (String)
+# endif
+
+/* #define	SERV_HOST_ADDR	"213.203.231.23"   */
+#define	SERV_HOST_ADDR	"127.0.0.1"
+
+extern char friendsidstring[40], friendsname[40];
+extern int needtosave, maxfriends, statusid;
+extern friendsstruct *friends, *fserver;
+/*
+ * conn.c
+ */
+int sockfd = -1;
+int pleasepollme = 0;
+extern GtkItemFactory *item_factory;
+extern int debug, statuslock;
+extern GtkWidget *status;
+extern int errno;
+extern gchar messagename[40], messagesendtext[1024], messageack[100];
+
+#define MAXLINE 512
+
+void
+setnonblocking (int sock)
+{
+  int opts;
+
+  opts = fcntl (sock, F_GETFL);
+  if (opts < 0)
+    {
+      perror ("fcntl(F_GETFL)");
+      exit (EXIT_FAILURE);
+    }
+  opts = (opts | O_NONBLOCK);
+  if (fcntl (sock, F_SETFL, opts) < 0)
+    {
+      perror ("fcntl(F_SETFL)");
+      exit (EXIT_FAILURE);
+    }
+  return;
+}
+
+int
+friends_sendmsg (char *serverip, char *message)
+{
+  int n, nosent, endflag, e;
+  char recvline[MAXLINE + 1];
+  int i, fc;
+  struct sockaddr_in cli_addr;
+  struct sockaddr_in serv_addr;
+  struct sockaddr *pserv_addr;
+  socklen_t servlen;
+  friendsstruct *f;
+  char msgname[40], msgid[40], msgtext[1024];
+  GtkWidget *wi;
+
+  if (serverip == NULL)
+    {
+      fprintf (stderr, "error in friends_sendmsg: serverip=NULL\n");
+      return 0;
+    }
+
+  if (message != NULL)
+    if (strlen (message) == 0)
+      {
+	fprintf (stderr, "error in friends_sendmsg: message=empty\n");
+	return 0;
+      }
+
+  f = friends;
+  g_strlcpy (msgname, "", sizeof (msgname));
+  g_strlcpy (msgtext, "", sizeof (msgtext));
+
+/*   skip if we already have an sockfd  */
+  if (message != NULL)
+    if (sockfd == -1)
+      {
+	bzero ((char *) &serv_addr, sizeof (serv_addr));
+	serv_addr.sin_family = AF_INET;
+
+	serv_addr.sin_addr.s_addr = inet_addr (serverip);
+	serv_addr.sin_port = htons (SERV_UDP_PORT);
+	pserv_addr = (struct sockaddr *) &serv_addr;
+
+	if ((sockfd = socket (AF_INET, SOCK_DGRAM, 0)) < 0)
+	  {
+	    perror ("friendsclient local socket");
+	    return (1);
+	  }
+	setnonblocking (sockfd);
+
+	servlen = sizeof (serv_addr);
+	bzero ((char *) &cli_addr, sizeof (cli_addr));
+
+	cli_addr.sin_family = AF_INET;
+	cli_addr.sin_addr.s_addr = htons (INADDR_ANY);
+	cli_addr.sin_port = htons (0);
+
+	if (bind (sockfd, (struct sockaddr *) &cli_addr, sizeof (cli_addr)) <
+	    0)
+	  {
+	    perror ("friendsclient bind local address");
+	    return (2);
+	  }
+
+	n = strlen (message);
+/*   printf ("sending...\n");  */
+	if ((nosent =
+	     sendto (sockfd, message, n, 0, pserv_addr, servlen)) != n)
+	  {
+	    perror ("friendsclient sendto");
+	    return (3);
+	  }
+	else
+	  {
+	    pleasepollme = TRUE;
+	  }
+
+/*     end skip if we already have an sockfd  */
+
+/*       return, so we read the next time */
+	return 0;
+      }
+  endflag = i = 0;
+
+  fc = 0;
+  do
+    {
+      n = recvfrom (sockfd, recvline, MAXLINE, 0 /* MSG_WAITALL */ ,
+		    (struct sockaddr *) 0, (int *) 0);
+      if (n < 0)
+	{
+	  i++;
+	  usleep (100000);
+	  fprintf (stderr, "errno %d:", errno);
+	  perror ("recv");
+	}
+      else
+	i = 0;
+      if (n > 0)
+	{
+	  if ((strncmp (recvline, "$END:$", 6)) == 0)
+	    endflag = 1;
+	  recvline[n] = 0;
+/* 	  if (debug) */
+/* 	    printf ("received...%d bytes: %s\n=======\n", n, recvline); */
+/* scanning reply  */
+	  if ((strncmp (recvline, "POS: ", 5)) == 0)
+	    {
+	      e =
+		sscanf (recvline, "POS: %s %s %s %s %s %s %s", (f + fc)->id,
+			(f + fc)->name, (f + fc)->lat, (f + fc)->longi,
+			(f + fc)->timesec, (f + fc)->speed,
+			(f + fc)->heading);
+/* 		    printf("\nreceived %d arguments\n",e);  */
+	      fc++;
+	    }
+	  if ((strncmp (recvline, "SRV: ", 5)) == 0)
+	    {
+	      e =
+		sscanf (recvline, "SRV: %s %s %s %s %s %s %s", fserver->id,
+			fserver->name, fserver->lat, fserver->longi,
+			fserver->timesec, fserver->speed, fserver->heading);
+/* 		    printf("\nreceived %d arguments\n",e);  */
+	    }
+	  if ((strncmp (recvline, "SND: ", 5)) == 0)
+	    {
+	      if ((strlen (messageack) > 0)
+		  && (strncmp (recvline, messageack, strlen (messageack)) ==
+		      0))
+		{
+		  g_strlcpy (messagename, "", sizeof (messagename));
+		  g_strlcpy (messageack, "", sizeof (messageack));
+		  g_strlcpy (messagesendtext, "", sizeof (messagesendtext));
+		  wi =
+		    gtk_item_factory_get_item (item_factory,
+					       N_("/Misc. Menu/Messages"));
+		  gtk_widget_set_sensitive (wi, TRUE);
+		  gtk_statusbar_pop (GTK_STATUSBAR (status), statusid);
+		  statuslock = FALSE;
+		}
+	      else
+		{
+		  e =
+		    sscanf (recvline, "SND: %s %s %[^\n]", msgid, msgname,
+			    msgtext);
+		  if (e == 3)
+		    if (strcmp ((msgname), (friendsname)) == 0)
+		      {
+			int j, k = 0, fsmessage = 0;
+
+			g_strlcpy (msgname, _("unknown"), sizeof (msgname));
+			if (strcmp ((msgid + 5), ((fserver->id) + 5)) == 0)
+			  {
+			    g_snprintf (msgname, sizeof (msgname),
+					fserver->name);
+			    fsmessage = TRUE;
+			  }
+			for (j = 0; j < fc; j++)
+			  if (strcmp ((msgid + 5), (((f + j)->id) + 5)) == 0)
+			    g_strlcpy (msgname, (f + j)->name,
+				       sizeof (msgname));
+			for (j = 0; j < (int) strlen (recvline); j++)
+			  {
+			    if (*(recvline + j) == ' ')
+			      k++;
+			    if (k >= 3)
+			      break;
+			  }
+			g_strlcpy (msgtext, (recvline + j + 1),
+				   sizeof (msgtext));
+/* 			if (debug) */
+/* 			  fprintf (stderr, "\ne: %d, received from %s: %s\n", */
+/* 				   e, msgname, msgtext); */
+			message_cb (msgid, msgname, msgtext, fsmessage);
+		      }
+		}
+	    }
+
+	  if (debug)
+	    fprintf (stderr, recvline);
+
+	}
+/*  	printf("\ni: %d, endflag: %d\n",i,endflag);   */
+    }
+  while ((n > 0) && (!endflag));
+
+/* printf("\nafter while i: %d, endflag: %d\n",i,endflag);  */
+  if (endflag)
+    {
+      close (sockfd);
+      sockfd = -1;
+      pleasepollme = FALSE;
+      if (fc != 0)
+	maxfriends = fc;
+    }
+
+
+  return 0;
+}
+
+
+int
+friendsinit ()
+{
+
+  char *key, buf2[20];
+  int f;
+  long int r;
+  time_t ti, tii;
+
+  if ((strcmp (friendsidstring, "XXX")) == 0)
+    {
+      r = 0x12345678;
+      f = open ("/dev/random", O_RDONLY);
+      if (f >= 0)
+	{
+	  read (f, &r, 4);
+	  close (f);
+	}
+      tii = ti = time (NULL);
+      ti = ti & 0xffffff;
+      r += ti;
+
+      g_snprintf (buf2, sizeof (buf2), "$1$%08lx$", r);
+      key = "havenocrypt";
+#ifdef HAVE_CRYPT_H
+      key = crypt ("fritz", buf2);
+      g_strlcpy (friendsidstring, (key + 12), sizeof (friendsidstring));
+#else
+      r = r * r;
+      g_snprintf (friendsidstring, sizeof (friendsidstring), "nocrypt%015ld",
+		  labs (r));
+#endif
+      printf ("\nKey: %s,id: %s %d bytes, time: %ld\n", key,
+	      friendsidstring, strlen (friendsidstring), ti);
+      needtosave = 1;
+    }
+  friends = malloc (MAXLISTENTRIES * sizeof (friendsstruct));
+  fserver = malloc (1 * sizeof (friendsstruct));
+
+  return (0);
+}

Added: packages/gpsdrive/branches/etch/src/friendsd.c
===================================================================
--- packages/gpsdrive/branches/etch/src/friendsd.c	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/friendsd.c	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,533 @@
+/* friendsd server
+ * Copyright (c) 2001-2004 Fritz Ganter <ganter at ganter.at>
+ * 
+ * Website: www.gpsdrive.de
+ * 
+ * 
+ * 
+ *     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
+ * 
+ *     *********************************************************************
+ $Log: friendsd.c,v $
+ Revision 1.21  2004/02/08 17:16:25  ganter
+ replacing all strcat with g_strlcat to avoid buffer overflows
+
+ Revision 1.20  2004/02/08 16:35:10  ganter
+ replacing all sprintf with g_snprintf to avoid buffer overflows
+
+ Revision 1.19  2004/02/06 22:29:24  ganter
+ updated README and man page
+
+ Revision 1.18  2004/01/26 11:55:19  ganter
+ just indented some files
+
+ Revision 1.17  2004/01/22 07:13:27  ganter
+ ...
+
+ Revision 1.16  2004/01/22 06:44:12  ganter
+ ...
+
+ Revision 1.15  2004/01/22 06:38:02  ganter
+ working on friendsd
+
+ Revision 1.14  2004/01/22 05:49:22  ganter
+ friendsd now sends a receiving acknoledge
+
+ Revision 1.13  2004/01/12 21:52:02  ganter
+ added friends message service
+
+ Revision 1.12  2004/01/11 17:35:48  ganter
+ drop entries which are older than 1 week
+
+ Revision 1.11  2004/01/01 09:07:31  ganter
+ v2.06
+ trip info is now live updated
+ added cpu temperature display for acpi
+ added tooltips for battery and temperature
+
+ Revision 1.10  2003/10/10 06:50:53  ganter
+ added security patch for friendsd
+
+ Revision 1.9  2003/09/17 12:05:14  ganter
+ 2.05pre1
+ fixed malloc problem in friends server
+ force name in friendsmode to replace space with underscore
+
+ Revision 1.8  2003/07/25 12:17:14  ganter
+ 2.00
+
+ Revision 1.7  2003/06/01 17:27:33  ganter
+ v2.0pre8
+ friendsmode works fine and can be set in settings menu
+
+ Revision 1.6  2003/05/31 20:12:35  ganter
+ new UDP friendsserver build in, needs some work
+
+ Revision 1.3  2003/05/31 18:25:57  ganter
+ starting buildin new server and client
+
+ Revision 1.2  2003/05/30 15:35:16  ganter
+ testing
+
+ */
+
+
+#include "../config.h"
+#include <stdio.h>
+#include <errno.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
+#include <unistd.h>
+#include <time.h>
+#ifdef HAVE_CRYPT_H
+#include <crypt.h>
+#endif
+
+
+/*  Defines for gettext I18n */
+# include <libintl.h>
+# define _(String) gettext(String)
+# ifdef gettext_noop
+#  define N_(String) gettext_noop(String)
+# else
+#  define N_(String) (String)
+# endif
+
+#define	SERV_UDP_PORT	50123
+
+/* maximum age of data (1 week) */
+#define MAXSEC 7*24*3600
+
+/* max age of messages (2 days) */
+#define MAXMSGTIME 48*3600
+
+char *pname;
+
+/*
+ * conn.c
+ */
+
+#include <stdio.h>
+#include <errno.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <stdlib.h>
+#include <string.h>
+#include <signal.h>
+#ifdef HAVE_LINUX_INET_H
+#include "linux/inet.h"
+#endif
+#include <fcntl.h>
+#include <netdb.h>
+#include <gpsdrive.h>
+
+
+
+struct
+{
+  char id[31];
+  char txt[1024];
+  long int times;
+} *list;
+
+static int listnum = 0, messagecounter = 0;
+char serverid[31];
+char serverstring[40];
+
+void
+dg_echo (int sockfd, struct sockaddr *pcli_addr, int maxclilen)
+{
+  int n, e, i, nosent, l, newclient;
+  char mesg[MAXMESG], txt[MAXMESG + 20];
+  char *fromaddr, hname[256];
+  struct in_addr iaddr;
+  socklen_t clilen;
+  struct hostent *hostname;
+  struct sockaddr_in sin;
+  char id[31], name[41], lat[41], longi[41], timesec[41], speed[11],
+    heading[11];
+  char msgname[40], msgtext[1024], ackid[40];
+
+  for (;;)
+    {
+      clilen = maxclilen;
+      memset (mesg, 0, MAXMESG);
+      n = recvfrom (sockfd, mesg, MAXMESG, 0, pcli_addr, &clilen);
+
+      if (n < 0)
+	{
+	  perror ("recvfrom");
+	}
+      else
+	{
+/* 	got string  */
+	  g_strlcpy (msgname, "", sizeof (msgname));
+	  g_strlcpy (msgtext, "", sizeof (msgtext));
+	  newclient = 1;
+
+	  if ((strncmp (mesg, "SND: ", 5)) == 0)
+	    {
+	      e = sscanf (mesg, "SND: %s %s %[^\n]", id, msgname, msgtext);
+	      if (e == 3)
+		{
+		  fprintf (stderr, "\ne: %d received for %s: %s\n", e,
+			   msgname, msgtext);
+		  for (i = 0; i < listnum; i++)
+		    {
+/* 	id is already here  */
+		      if ((strcmp ((list + i)->id, id)) == 0)
+			{
+			  newclient = 0;
+			  strncpy ((list + i)->txt, mesg, MAXMESG - 1);
+			  (list + i)->times =
+			    time (NULL) - MAXSEC + MAXMSGTIME;
+			}
+		    }
+		  if (newclient)
+		    {
+/* new id found  */
+		      listnum++;
+		      if (listnum >= MAXLISTENTRIES)
+			listnum = 0;
+		      strncpy ((list + i)->txt, mesg, MAXMESG - 1);
+		      strncpy ((list + i)->id, id, 30);
+		      (list + i)->times = time (NULL) - MAXSEC + MAXMSGTIME;
+		    }
+		}
+	    }
+	  if ((strncmp (mesg, "POS: ", 5)) == 0)
+	    {
+/* 	found POS string  */
+
+	      e =
+		sscanf (mesg, "POS: %30s %40s %40s %40s %40s %10s %10s", id,
+			name, lat, longi, timesec, speed, heading);
+/* 		    printf("\nGot %d arguments\n",e);  */
+	      if ((e == 7) && (strstr (id, "queryqueryqueryqueryqu") == NULL))
+		{
+/* string is a POS string  */
+		  for (i = 0; i < listnum; i++)
+		    {
+/* 	id is already here  */
+		      if ((strcmp ((list + i)->id, id)) == 0)
+			{
+			  newclient = 0;
+			  strncpy ((list + i)->txt, mesg, 200);
+			  (list + i)->times = atol (timesec);
+			}
+		    }
+
+		  if (newclient)
+		    {
+/* new id found  */
+		      listnum++;
+		      if (listnum >= MAXLISTENTRIES)
+			listnum = 0;
+		      strncpy ((list + i)->txt, mesg, 200);
+		      strncpy ((list + i)->id, id, 30);
+		      (list + i)->times = atol (timesec);
+		    }
+		}
+	    }
+/* send ack message to sender and delete messages where we got an ACK */
+	  if ((strncmp (mesg, "ACK: ", 5)) == 0)
+	    {
+	      char recname[80], tmp[80], msgname[80];
+	      g_strlcpy (recname, "", sizeof (recname));
+	      e = sscanf (mesg, "ACK: %s ", ackid);
+	      if (e == 1)
+		for (i = 0; i < listnum; i++)
+		  {
+		    if ((strcmp ((list + i)->id, ackid)) == 0)
+		      {
+			int j, own;
+			char sid[40];
+/* find sender of orig message (msgname)*/
+			if (strcmp ((ackid + 5), (serverid + 5)) == 0)
+			  own = 1;
+			else
+			  own = 0;
+
+			if (own)
+			  {
+/* 			    its the ack for myself, delete from list */
+			    for (j = i; j < listnum; j++)
+			      *(list + j) = *(list + j + 1);
+			    listnum--;
+			    fprintf (stderr,
+				     "ack for my OWN msg %s, deleting entry\n",
+				     ackid);
+			    break;
+			  }
+			else
+			  {
+			    for (j = 0; j < listnum; j++)
+			      if (strcmp ((ackid + 5), (((list + j)->id) + 5))
+				  == 0)
+				{
+				  e =
+				    sscanf ((list + j)->txt, "POS: %s %s",
+					    tmp, msgname);
+				  break;
+				}
+/* find receiver of message (recname) */
+			    e =
+			      sscanf ((list + i)->txt, "SND: %s %s", tmp,
+				      recname);
+			    g_snprintf (sid, sizeof (sid), "MSG%02d%s",
+					messagecounter++, (serverid + 5));
+			    g_snprintf ((list + i)->id, sizeof (list->id),
+					sid);
+			    g_snprintf ((list + i)->txt, sizeof (list->txt),
+					"SND: %s %s \nConfirmation:\n The user %s has read your message!",
+					sid, msgname, recname);
+			    (list + i)->times =
+			      time (NULL) - MAXSEC + MAXMSGTIME;
+			    fprintf (stderr,
+				     "received acknoledge for msg %s, deleting entry\n",
+				     ackid);
+			  }
+
+		      }
+		  }
+	    }
+
+/* sort out entries older than MAXSEC seconds */
+	  for (i = 0; i < listnum; i++)
+	    {
+	      time_t tii;
+
+	      if ((strncmp ((list + i)->txt, "SRV:", 4)) != 0)
+		{
+		  tii = time (NULL);
+		  if ((tii - (list + i)->times) > MAXSEC)
+		    {
+		      int j;
+		      for (j = i; j < listnum; j++)
+			*(list + j) = *(list + j + 1);
+		      listnum--;
+		    }
+		}
+	    }
+	}
+
+      memcpy (&iaddr, (pcli_addr->sa_data + 2), 4);
+      fromaddr = inet_ntoa (iaddr);
+
+      bzero ((caddr_t *) & sin, sizeof (sin));	/* clear out the structure */
+      sin.sin_family = AF_INET;
+
+      sin.sin_addr.s_addr = inet_addr (fromaddr);
+
+
+
+      hostname = gethostbyaddr ((char *) &(sin.sin_addr),
+				sizeof (sin.sin_addr), (int) sin.sin_family);
+
+
+      if (hostname == NULL)
+	{
+	  perror ("hostname");
+	  g_strlcpy (hname, "unknown", sizeof (hname));
+	}
+      else
+	g_strlcpy (hname, hostname->h_name, sizeof (hname));
+
+      mesg[n - 1] = 0;
+
+      for (i = -1; i <= listnum; i++)
+	{
+	  if (i == -1)
+	    g_strlcpy (txt, "$START:$", sizeof (txt));
+	  else if (i == listnum)
+	    g_strlcpy (txt, "$END:$", sizeof (txt));
+	  else
+	    g_strlcpy (txt, (list + i)->txt, sizeof (txt));
+
+	  g_strlcat (txt, "\n", sizeof (txt));
+	  l = strlen (txt);
+	  if (i == -1)
+	    fprintf (stderr, "%d clients, last: %s[%s]:\n",
+		     listnum, hname, fromaddr);
+
+	  fprintf (stderr, txt);
+/*       printf ("sende\n%s, Länge %d, clilen %d", txt, l,clilen);  */
+	  if ((nosent = sendto (sockfd, txt, l, 0, pcli_addr, clilen)) != l)
+	    {
+	      perror ("sendto");
+	      return;
+	    }
+	}
+      fprintf (stderr, "\n");
+    }
+}
+
+
+
+/*
+ * server.c
+ */
+
+
+
+
+void
+ignore_pipe (void)
+{
+  struct sigaction sig;
+
+  sig.sa_handler = SIG_IGN;
+  sig.sa_flags = 0;
+  sigemptyset (&sig.sa_mask);
+  sigaction (SIGPIPE, &sig, NULL);
+}
+
+void
+setnonblocking (int sock)
+{
+  int opts;
+
+  opts = fcntl (sock, F_GETFL);
+  if (opts < 0)
+    {
+      perror ("fcntl(F_GETFL)");
+      exit (EXIT_FAILURE);
+    }
+  opts = (opts | O_NONBLOCK);
+  if (fcntl (sock, F_SETFL, opts) < 0)
+    {
+      perror ("fcntl(F_SETFL)");
+      exit (EXIT_FAILURE);
+    }
+  return;
+}
+
+int
+friendsinit ()
+{
+
+  char *key, buf2[20];
+  int f;
+  long int r;
+  time_t ti, tii;
+  char friendsidstring[31];
+  r = 0x12345678;
+  f = open ("/dev/random", O_RDONLY);
+  if (f >= 0)
+    {
+      read (f, &r, 4);
+      close (f);
+    }
+  tii = ti = time (NULL);
+  ti = ti & 0xffffff;
+  r += ti;
+
+  g_snprintf (buf2, sizeof (buf2), "$1$%08lx$", r);
+  key = "havenocrypt";
+#ifdef HAVE_CRYPT_H
+  key = crypt ("servr", buf2);
+  g_strlcpy (friendsidstring, (key + 12), sizeof (friendsidstring));
+#else
+  r = r * r;
+  g_snprintf (friendsidstring, sizeof (friendsidstring), "nocrypt%015ld",
+	      labs (r));
+#endif
+  printf ("\nKey: %s,id: %s %d bytes, time: %ld\n", key,
+	  friendsidstring, strlen (friendsidstring), ti);
+
+  g_strlcpy (serverid, friendsidstring, sizeof (serverid));
+  return (0);
+}
+
+int
+main (int argc, char *argv[])
+{
+  int sockfd, bindno, i;
+  struct sockaddr_in serv_addr, cli_addr;
+
+
+  bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
+  bind_textdomain_codeset (PACKAGE, "utf8");
+  textdomain (GETTEXT_PACKAGE);
+  textdomain (NULL);
+  pname = argv[0];
+  g_strlcpy (serverstring, "Friendsserver", sizeof (serverstring));
+
+  if (geteuid () == 0)
+    {
+      fprintf (stderr, _("server: please don't run me as root\n"));
+      exit (1);
+    }
+  i = getopt (argc, argv, "n:h?");
+  switch (i)
+    {
+    case 'n':
+      g_strlcpy (serverstring, optarg, sizeof (serverstring));
+      break;
+    case 'h':
+    case '?':
+      printf (_
+	      ("\nUsage:\n   %s -n servername\nprovides a name for your server\n"),
+	      pname);
+      exit (0);
+      break;
+    }
+  fprintf
+    (stderr,
+     "\nGpsDrive v%s friendsd server Version 2, listening on UDP port %d...\n",
+     VERSION, SERV_UDP_PORT);
+  ignore_pipe ();
+
+  friendsinit ();
+  list = malloc (MAXLISTENTRIES * sizeof (*list));
+
+/* make the first entry */
+  g_snprintf ((list + listnum)->id, sizeof (list->id), serverid);
+  g_snprintf ((list + listnum)->txt, sizeof (list->txt),
+	      "SRV: %s %s 53.566593   9.948155 %d 0 0", serverid,
+	      serverstring, (int) time (NULL));
+  (list + listnum)->times = time (NULL);
+  listnum++;
+
+/*   printf ("\nsizeoflist: %d\n", sizeof (*list)); */
+  if ((sockfd = socket (AF_INET, SOCK_DGRAM, 0)) < 0)
+    {
+      fprintf (stderr, "server: errno = %d\n", errno);
+      fprintf (stderr, "server: can't open datagram socket\n");
+      exit (1);
+    }
+/*  setnonblocking(sockfd);  */
+
+  fprintf (stderr, "server: sockfd = %d\n", sockfd);
+  bzero ((char *) &serv_addr, sizeof (serv_addr));
+  serv_addr.sin_family = AF_INET;
+  serv_addr.sin_addr.s_addr = htonl (INADDR_ANY);
+  serv_addr.sin_port = htons (SERV_UDP_PORT);
+
+  if ((bindno =
+       bind (sockfd, (struct sockaddr *) &serv_addr, sizeof (serv_addr))) < 0)
+    {
+      fprintf (stderr, "server: errno = %d\n", errno);
+      fprintf (stderr, "server: can't bind local address\n");
+      exit (2);
+    }
+
+  fprintf (stderr, "server: bindno = %d\n", bindno);
+
+  dg_echo (sockfd, (struct sockaddr *) &cli_addr, sizeof (cli_addr));
+  return 0;
+}

Added: packages/gpsdrive/branches/etch/src/friendsicon.png
===================================================================
(Binary files differ)


Property changes on: packages/gpsdrive/branches/etch/src/friendsicon.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: packages/gpsdrive/branches/etch/src/garble.cpp
===================================================================
--- packages/gpsdrive/branches/etch/src/garble.cpp	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/garble.cpp	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,589 @@
+// $Id: garble.cpp,v 1.5 2003/04/28 15:42:38 ganter Exp $
+// garble.cp
+// Douglas S. J. De Couto
+// 17 February 2000
+
+// Copyright (C) 2000 Douglas S. J. De Couto
+// <decouto at lcs.mit.edu>
+//
+// Copyright (C) 2002 Edouard Lafargue
+// <elafargue at hotmail.com>
+// 
+// Revision History:
+// 2002-08-04: Added support for waypoint type D109 (newest Garmin GPSes)
+//             Extended waypoint listing with symbol codes and altitude
+//
+//
+// 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.
+
+// $Id: garble.cpp,v 1.5 2003/04/28 15:42:38 ganter Exp $
+
+static const char *garble_version = "Garble v1.0.2 04 Aug 2002";
+
+#include <getopt.h>
+
+#include <iostream>
+#include <string>
+#include <cstdlib>
+//  #include <ctime>
+ 
+using namespace std;
+ 
+
+#include "garmin_serial_unix.h"
+#include "garmin_link.h"
+#include "garmin_application.h"
+#include "garmin_util.h"
+#include <assert.h>
+
+static const char *default_dev = "/dev/gps";
+static const int default_timeout = 1500; // milliseconds
+int garble_precision = 8; // sig figs
+int xplanet = 0; // xplanet format for waypoint export
+
+static bool verbose = false;
+
+enum garble_action_t {
+  get_routes,
+  get_waypoints,
+  get_proximity_waypoints,
+  get_tracks,
+  get_product_info,
+  turn_off_gps,
+  get_time,
+  get_position,
+  get_screenshot,
+  no_action
+};
+
+char *action_to_name(garble_action_t act) {
+  switch (act) {
+  case get_routes: return "download routes"; break;
+  case get_waypoints: return "download waypoints"; break;
+  case get_proximity_waypoints: return "download proximity waypoints"; break;
+  case get_tracks: return "download tracks"; break;
+  case get_product_info: return "get GPS product info"; break;
+  case turn_off_gps: return "turn off GPS"; break;
+  case get_time: return "get time"; break;
+  case get_position: return "get position"; break;
+  case no_action: return "none"; break;
+  default: 
+    ; // punt
+  }
+  assert(0);
+}
+
+
+static struct option long_options[] = {
+  { "echo", 0, 0, 'e' },
+  { "device", 1, 0, 'd' },
+  { "get-routes", 0, 0, 'r' }, 
+  { "get-waypoints", 0, 0, 'w' },
+  { "get-proximity-waypoints", 0, 0, 'x' },
+  { "get-tracks", 0, 0, 't' }, 
+  { "get-gps-info", 0, 0, 'i' }, 
+  { "turn-off", 0, 0, 'o' },
+  { "get-time", 0, 0, 'z' },
+  { "get-pos", 0, 0, 'p' }, 
+  { "version", 0, 0, 'v' }, 
+  { "help", 0, 0, 'h' },
+  { "timeout", 1, 0, 'm' },
+  { "precision", 1, 0, 's' }, 
+  { "verbose", 0, 0, 'l' },
+  { "waypoint-symbols", 0, 0, 'W' },
+  { "get-screenshot", 1, 0, 'S' },
+  { "xplanet-format", 0, 0, 'X' },
+  { 0, 0, 0, 0 }
+};
+
+static const char *short_options = "rwxtiozpvhd:m:elWSX";
+
+void
+usage(void) {
+  cerr << "usage: " << endl 
+       << "All data is sent to standard out.  Only the last GPS action option is used." << endl
+       << "-d, --device dev-name             use device specified by dev-name, defaults to " << default_dev << endl
+       << "-m, --timeout t                   wait up to t milliseconds to receive data, 0 means wait forever, defaults to " << default_timeout << endl
+       << "-s, --precision p                 ouput precision (number of digits), defaults to " << garble_precision << endl
+       << "-r, --get-routes                  download routes" << endl
+       << "-w, --get-waypoints               download waypoints" << endl
+       << "-x, --get-proximity-waypoints     download proximity waypoints" << endl
+       << "-t, --get-tracks                  download tracks" << endl
+       << "-i, --get-gps-info                get GPS product info" << endl
+       << "-o, --turn-off                    turn off GPS" << endl
+       << "-z, --get-time                    get time from the GPS" << endl
+       << "-p, --get-pos                     get the current position" << endl
+       << "-v, --version                     current version of Garble" << endl
+       << "-e, --echo                        echo parameters and quit" << endl
+       << "-l, --verbose                     use verbose error messages" << endl
+       << "-h, --help                        print this message" << endl
+       << "-W, --waypoint-symbols            prints a list of all waypoint symbol codes" << endl
+       << "-S, --get-screenshot filename     saves a screendump of the GPS into file 'filename'" << endl
+       << "-X, --xplanet-format              saves waypoints in a format compatible with xplanet's markerfile" << endl;
+}
+
+void
+list_symbols(void) {
+  cout << 
+      "#---------------------------------------------------------------"  << endl <<
+      "# Symbols for marine (group 0...0-8191...bits 15-13=000)." << endl <<
+      "#---------------------------------------------------------------" << endl <<
+      "   0, white anchor" << endl <<
+      "   1, white bell" << endl <<
+      "   2, green diamond" << endl <<
+      "   3, red diamond" << endl <<
+"   4, diver down flag 1" << endl <<
+"   5, diver down flag 2" << endl <<
+"   6, white dollar " << endl <<
+"   7, white fish " << endl <<
+"   8, white fuel" << endl <<
+"   9, white horn" << endl <<
+"  10, white house" << endl <<
+"  11, white knife & fork" << endl <<
+"  12, white light" << endl <<
+"  13, white mug" << endl <<
+"  14, white skull and crossbones" << endl <<
+"  15, green square" << endl <<
+"  16, red square" << endl <<
+"  17, white buoy waypoint" << endl <<
+"  18, waypoint dot" << endl <<
+"  19, white wreck" << endl <<
+"  20, null symbol (transparent)" << endl <<
+"  21, man overboard" << endl <<
+"#------------------------------------------------------" << endl <<
+"# Marine navaid symbols" << endl <<
+"#------------------------------------------------------" << endl <<
+"  22, amber map buoy" << endl <<
+"  23, black map buoy " << endl <<
+"  24, blue map buoy " << endl <<
+"  25, green map buoy " << endl <<
+"  26, green/red map buoy " << endl <<
+"  27, green/white map buoy " << endl <<
+"  28, orange map buoy " << endl <<
+"  29, red map buoy " << endl <<
+"  30, red/green map buoy " << endl <<
+"  31, red/white map buoy " << endl <<
+"  32, violet map buoy " << endl <<
+"  33, white map buoy  " << endl <<
+"  34, white/green map buoy " << endl <<
+"  35, white/red map buoy  " << endl <<
+"  36, white dot " << endl <<
+"  37, radio beacon " << endl <<
+"#------------------------------------------------------ " << endl <<
+"# leave space for more navaids (up to 128 total)" << endl <<
+"#------------------------------------------------------" << endl <<
+" 150, boat ramp " << endl <<
+" 151, campground " << endl <<
+" 152, restrooms " << endl <<
+" 153, shower " << endl <<
+" 154, drinking water " << endl <<
+" 155, telephone " << endl <<
+" 156, first aid " << endl <<
+" 157, information " << endl <<
+" 158, parking " << endl <<
+" 159, park " << endl <<
+" 160, picnic " << endl <<
+" 161, scenic area " << endl <<
+" 162, skiing " << endl <<
+" 163, swimming " << endl <<
+" 164, dam " << endl <<
+" 165, controlled area " << endl <<
+" 166, danger " << endl <<
+" 167, restricted area " << endl <<
+" 168, null " << endl <<
+" 169, ball " << endl <<
+" 170, car " << endl <<
+" 171, deer " << endl <<
+" 172, shopping cart " << endl <<
+" 173, lodging " << endl <<
+" 174, mine " << endl <<
+" 175, trail head " << endl <<
+" 176, truck stop " << endl <<
+" 177, user exit  " << endl <<
+" 178, flag " << endl <<
+" 179, circle with x in the center" << endl <<
+"#---------------------------------------------------------------" << endl <<
+"# Symbols for land (group 1...8192-16383...bits 15-13=001)." << endl <<
+"# ---------------------------------------------------------------" << endl <<
+"8192, interstate hwy " << endl <<
+"8193, us hwy " << endl <<
+"8194, state hwy " << endl <<
+"8195, mile marker " << endl <<
+"8196, TracBack (feet) " << endl <<
+"8197, golf " << endl <<
+"8198, small city " << endl <<
+"8199, medium city " << endl <<
+"8200, large city " << endl <<
+"8201, intl freeway hwy " << endl <<
+"8202, intl national hwy " << endl <<
+"8203, capitol city symbol (star)" << endl <<
+"8204, amusement park " << endl <<
+"8205, bowling " << endl <<
+"8206, car rental " << endl <<
+"8207, car repair " << endl <<
+"8208, fast food " << endl <<
+"8209, fitness " << endl <<
+"8210, movie " << endl <<
+"8211, museum " << endl <<
+"8212, pharmacy " << endl <<
+"8213, pizza " << endl <<
+"8214, post office  " << endl <<
+"8215, RV park " << endl <<
+"8216, school " << endl <<
+"8217, stadium " << endl <<
+"8218, dept. store " << endl <<
+"8219, zoo " << endl <<
+"8220, convenience store " << endl <<
+"8221, live theater " << endl <<
+"8222, ramp intersection " << endl <<
+"8223, street intersection " << endl <<
+"8226, inspection/weigh station " << endl <<
+"8227, toll booth " << endl <<
+"8228, elevation point " << endl <<
+"8229, exit without services " << endl <<
+"8230, Geographic place name, man-made" << endl <<
+"8231, Geographic place name, water" << endl <<
+"8232, Geographic place name, land" << endl <<
+"8233, bridge " << endl <<
+"8234, building " << endl <<
+"8235, cemetery " << endl <<
+"8236, church " << endl <<
+"8237, civil location " << endl <<
+"8238, crossing " << endl <<
+"8239, historical town " << endl <<
+"8240, levee " << endl <<
+"8241, military location " << endl <<
+"8242, oil field" << endl <<
+"8243, tunnel" << endl <<
+"8244, beach" << endl <<
+"8245, forest" << endl <<
+"8246, summit" << endl <<
+"8247, large ramp intersection" << endl <<
+"8248, large exit without services smbl" << endl <<
+"8249, police/official badge" << endl <<
+"8250, gambling/casino" << endl <<
+"8251, snow skiing" << endl <<
+"8252, ice skating" << endl <<
+"8253, tow truck (wrecker)" << endl <<
+"8254, border crossing (port of entry)" << endl <<
+"#---------------------------------------------------------------" << endl <<
+"# Symbols for aviation (group 2...16383-24575...bits 15-13=010)." << endl <<
+"#---------------------------------------------------------------" << endl <<
+"16384, airport " << endl <<
+"16385, intersection " << endl <<
+"16386, non-directional beacon " << endl <<
+"16387, VHF omni-range " << endl <<
+"16388, heliport " << endl <<
+"16389, private field " << endl <<
+"16390, soft field " << endl <<
+"16391, tall tower " << endl <<
+"16392, short tower " << endl <<
+"16393, glider " << endl <<
+"16394, ultralight " << endl <<
+"16395, parachute " << endl <<
+"16396, VOR/TACAN " << endl <<
+"16397, VOR-DME " << endl <<
+"16398, first approach fix" << endl <<
+"16399, localizer outer marker" << endl <<
+"16400, missed approach point" << endl <<
+"16401, TACAN " << endl <<
+"16402, Seaplane Base" << endl;
+
+}  
+
+// Note: the application layer object must be passed by reference, as
+// we do not allow copying of the protocol layer object!
+void
+do_get_product_info(garmin::application_layer &al) {
+  garmin::product_data_type pd = al.get_product_data();
+  cout << "GPS product ID: " << pd.product_id << endl
+       << "Software version: " << pd.software_version << endl
+       << "Product description: " << pd.product_description << endl;
+}
+
+void
+do_get_routes(garmin::application_layer &al) {
+  garmin::route_list_t *rl = al.get_routes();
+  garmin::route_list_t::const_iterator rli;
+  for (rli = rl->begin(); rli != rl->end(); rli++) {
+    garmin::route_t::const_iterator ri;
+    for (ri = rli->begin(); ri != rli->end(); ri++) {
+      garmin::basic_waypt_type waypt = *ri;
+      garmin::degree_type pos = garmin::semicircle2degree(waypt.pos);
+      cout << waypt.id << " / ";
+      streamsize p = cout.precision();
+      cout.precision(garble_precision);
+      cout << pos.lat << ", " << pos.lon;
+      cout.precision(p);
+      cout << " / " << waypt.comment << endl;
+    }
+    cout << endl;
+  }
+  delete rl;
+}
+
+void
+do_get_waypoints(garmin::application_layer &al) {
+  garmin::waypt_vec_t *wv = al.get_waypoints();
+  garmin::waypt_vec_t::const_iterator wvi;
+    cout << "# Name, Symbol, Description, Latitude, Longitude, Altitude, Depth" << endl;
+    for (wvi = wv->begin(); wvi != wv->end(); wvi++) {
+      garmin::basic_waypt_type waypt = *wvi;
+      garmin::degree_type pos = garmin::semicircle2degree(waypt.pos);
+      if (xplanet == 1) {
+	streamsize p = cout.precision();
+	cout.precision(garble_precision);
+	cout << pos.lat << "    " << pos.lon;
+	cout << "   \"" << waypt.id << "\"";
+	cout << endl;
+	cout.precision(p);
+      } else {
+	cout << waypt.id << ", ";
+	cout << waypt.symbol;
+	cout << ", " << waypt.comment << ", ";
+	streamsize p = cout.precision();
+	cout.precision(garble_precision);
+	cout << pos.lat << ", " << pos.lon;
+	cout << ", " << waypt.altitude;
+	cout << endl;
+	cout.precision(p);
+      }
+    }
+    
+  
+  delete wv;
+}
+
+void
+do_get_proximity_waypoints(garmin::application_layer &al) {
+  garmin::prox_waypt_vec_t *wv = al.get_proximity_waypoints();
+  garmin::prox_waypt_vec_t::const_iterator wvi;
+  for (wvi = wv->begin(); wvi != wv->end(); wvi++) {
+    garmin::basic_waypt_type waypt = wvi->waypt;
+    garmin::degree_type pos = garmin::semicircle2degree(waypt.pos);
+    cout << waypt.id << " / ";
+      streamsize p = cout.precision();
+      cout.precision(garble_precision);
+      cout << wvi->dist << " / " << pos.lat << ", " << pos.lon;
+      cout.precision(p);
+      cout << " / " << waypt.comment << endl;
+  }
+  delete wv;
+}
+
+void
+do_get_tracks(garmin::application_layer &al) {
+  garmin::track_list_t *tl = al.get_track_logs();
+  garmin::track_list_t::const_iterator tli;
+  for (tli = tl->begin(); tli != tl->end(); tli++) {
+    garmin::track_t::const_iterator ti;
+    for (ti = tli->begin(); ti != tli->end(); ti++) {
+      garmin::track_point_type trackpt = *ti;
+      garmin::degree_type pos = garmin::semicircle2degree(trackpt.pos);
+      // ctime() includes "\n" at end of string, omit endl
+      streamsize p = cout.precision();
+      cout.precision(garble_precision);
+      cout << pos.lat << ", " << pos.lon;
+      cout.precision(p);
+      cout << " / " << ctime(&trackpt.time);
+    }
+    cout << endl;
+  }
+  delete tl;
+}
+
+void
+do_get_position(garmin::application_layer &al) {
+  garmin::degree_type pos = garmin::radian2degree(al.get_position());
+  streamsize p = cout.precision();
+  cout.precision(garble_precision);
+  cout << pos.lat << ", " << pos.lon << endl;
+  cout.precision(p);
+}
+
+void
+do_get_time(garmin::application_layer &al) {
+  // ctime includes "\n", omit endl
+  time_t t = al.get_date_time();
+  cout << ctime(&t);
+}
+
+void
+do_turn_off_gps(garmin::application_layer &al) {
+  al.turn_off_gps();
+}
+
+void
+do_get_screenshot(garmin::application_layer &al) {
+  al.get_display_bitmap();
+}
+
+
+//////////////////////////////////////////
+
+int
+main(int argc, char **argv) {
+  
+  string *dev_name = new string(default_dev);
+  garble_action_t action = no_action;
+  int timeout = default_timeout;
+  bool echo_params = false;
+
+  while (true) {
+    int opt_index;
+    int opt = getopt_long(argc, argv, short_options, long_options, &opt_index);
+    if (opt == -1)
+      break;
+    
+    switch (opt) {
+    case 0: // is a long option
+      cout << long_options[opt_index].name << endl;
+      break;
+    case 'd':
+      delete dev_name;
+      dev_name = new string(optarg);
+      break;
+    case 's':
+      garble_precision = atoi(optarg);
+      if (garble_precision < 1) {
+	cerr << "Precision must be greater than 0" << endl;
+	exit(-1);
+      }
+      break;
+    case 'm':
+      timeout = atoi(optarg);
+      if (timeout < 0) {
+	cerr << "Timeout must be 0 or greater" << endl;
+	exit(-1);
+      }
+      break;
+    case 'X':
+      xplanet=1;
+      break;
+    case 'r':
+      action = get_routes;
+      break;
+    case 'S':
+      action = get_screenshot;
+      break;
+    case 'e':
+      echo_params = true;
+      break;
+    case 'w':
+      action = get_waypoints;
+      break;
+    case 'W':
+      list_symbols();
+      exit(0);
+    case 'x':
+      action = get_proximity_waypoints;
+      break;
+    case 't':
+      action = get_tracks;
+      break;
+    case 'i':
+      action = get_product_info;
+      break;
+    case 'o':
+      action = turn_off_gps;
+      break;
+    case 'z':
+      action = get_time;
+      break;
+    case 'p':
+      action = get_position;
+      break;
+    case 'v':
+      cerr << garble_version << endl;
+      exit(0);
+      break;
+    case 'l':
+      verbose = true;
+      break;
+    case 'h':
+      // fall through to default
+    default:
+      usage();
+      exit(-1);
+    }
+  }
+
+  if (echo_params) {
+    cout << "Using the following parameters:" << endl
+	 << "Device name: " << *dev_name << endl
+	 << "Timeout (milliseconds): " << timeout << endl
+      	 << "Precision (digits): " << garble_precision << endl
+	 << "Action: " << action_to_name(action) << endl
+	 << "Verbose: " << (verbose ? "yes" : "no") << endl;
+    exit(0);
+  }
+
+  // setup the serial port etc.
+  garmin_serial gs;
+  try {
+    gs.init(*dev_name, timeout);
+  }
+  catch (garmin::not_possible &ex) {
+    cerr << "Unable to open the serial port" << endl;
+    if (verbose) 
+      cerr << ex.m_msg << endl;
+    exit(-1);
+  }
+
+  garmin::link_layer ll(&gs);
+  garmin::application_layer al(&ll);
+  
+  try {
+    switch (action) {
+    case get_product_info: do_get_product_info(al); break;
+    case get_routes: do_get_routes(al); break;
+    case get_waypoints: do_get_waypoints(al); break;
+    case get_proximity_waypoints: do_get_proximity_waypoints(al); break;
+    case get_tracks: do_get_tracks(al); break;
+    case get_position: do_get_position(al); break;
+    case get_time: do_get_time(al); break;
+    case turn_off_gps: do_turn_off_gps(al); break;
+    case get_screenshot: do_get_screenshot(al); break;
+    case no_action:
+      cerr << "No action specified." << endl;
+      usage();
+      exit(-1);
+      break;
+    default:
+      cerr << "logic error" << endl;
+      assert(0);
+    }  
+  }
+  catch (garmin::timeout &ex) {
+    cerr << "Timeout before getting data from the GPS" << endl;
+    if (verbose) 
+      cerr << ex.m_msg << endl;
+    exit(-1);
+  }
+  catch (garmin::not_possible &ex) {
+    cerr << "Error getting data from the GPS" << endl;
+    if (verbose) 
+      cerr << ex.m_msg << endl;
+    exit(-1);
+  }
+  catch (garmin::unsupported_protocol &ex) {
+    cerr << "Operation was not possible in current configuration" << endl;
+    if (verbose) 
+      cerr << ex.m_msg << endl;
+    exit(-1);
+  }
+
+  exit(0);
+}

Added: packages/gpsdrive/branches/etch/src/garmin_application.cpp
===================================================================
--- packages/gpsdrive/branches/etch/src/garmin_application.cpp	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/garmin_application.cpp	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,1220 @@
+// -*- mode: c++; c-basic-offset: 8; -*-
+// $Id: garmin_application.cpp,v 1.4 2003/04/28 15:42:38 ganter Exp $
+// garmin_application.cp
+// Douglas S. J. De Couto
+// September 9, 1998
+
+// Copyright (C) 1998 Douglas S. J. De Couto
+// <decouto at lcs.mit.edu>
+//
+// 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.
+
+
+#include "garmin_application.h"
+#include "garmin_command.h"
+#include "garmin_util.h"
+#include "garmin_data.h"
+#include "garmin_legacy.h"
+
+#include <iostream>
+
+#include <cctype>
+#include <algorithm>
+#include <stdio.h>
+#include <assert.h>
+
+namespace garmin 
+{
+using namespace std;
+
+#define check_init() if (!m_init) throw not_possible("The garmin application layer is not initialized")
+
+
+/////
+// Aborts any pending transfer
+////
+void
+application_layer::abort_transfer(void) throw (timeout)
+{
+	check_init();
+
+	//	uint8 sz;
+	sint16 *buf16 = (sint16 *) m_buf;
+	//packet_id pid;
+
+	buf16[0] = host2garmin16((sint16) cmnd_abort_transfer);
+	m_ll->put_packet(pid_command_data, m_buf, 2);
+	
+}
+
+//////////////////
+
+product_data_type
+application_layer::get_product_data(void) throw (not_possible, timeout)
+{
+	check_init();
+	
+	uint8 sz;
+	packet_id pid;
+
+
+	// First, abort any pending transfer:
+	abort_transfer();
+	
+	m_ll->put_packet(pid_product_rqst, m_buf, 0);
+	pid = m_ll->get_packet(m_buf, sz);
+	
+	if (pid != pid_product_data) {
+		throw not_possible("GPS did not reply with product data packet");
+	}
+	
+	if (sz < 5) {
+		throw not_possible("Product data packet is too small");
+	}
+
+	product_data_type pd;	
+	sint16 *buf16 = (sint16 *) m_buf;
+	pd.product_id = garmin2host16(buf16[0]);
+	pd.software_version = garmin2host16(buf16[1]);
+	pd.product_description = &((char *) m_buf)[4];
+	
+	// get capability protocol info... (A001),
+	// but not supported on all units!
+	try {
+		pid = m_ll->get_packet(m_buf, sz);
+	}
+	catch (timeout &ex) {
+		// timeout indicates gps is not sending capability protocol info
+		m_got_protocol_info = false;
+
+		// we should compose our own capability info from the device id 
+		for (int i = 0; legacy_devices[i].id; i++)
+		{
+			legacy_device *ldp = &legacy_devices[i];
+
+			if (	ldp->id == pd.product_id && 
+				ldp->version_min <= pd.software_version &&
+				ldp->version_max >= pd.software_version)
+			{
+				// found it, creating capability info
+				for (int j = 0; ldp->protocols[j].tag ; j++)
+				{
+					protocol_datatypes_t x;
+					for (int k = 0; ldp->protocols[j].types[k] != type_end; k++)
+					{
+						x.push_back(ldp->protocols[j].types[k]);
+					}
+					pd.protocol_info[(ldp->protocols[j].id << 8) | ((unsigned char)ldp->protocols[j].tag)] =  x;			   
+				}
+
+			
+				break;	
+			}
+		}
+		return pd;
+	}
+	m_got_protocol_info = true;
+	if (pid != pid_protocol_array) {
+		throw not_possible("Product data packet followed by some packet besides capability protocol");
+	}
+	if ((sz % 3) != 0) {
+		throw not_possible("Capability protocol packet is strange size");
+	}
+
+
+	// we store now the protocols support by the device and the
+	// associated data types 
+
+	int lastdata(-1);
+	// contains the last found protocol id
+	// used to known where to store the datatype infos
+ 
+	for (sint16 i = 0; i < sz; i +=3) {
+		char tag = (char) m_buf[i];
+		uint16 data = garmin2host16(*(uint16 *) (m_buf + i + 1));
+		
+		if ( tag != 'D' )
+		{
+			// is a protocol info
+			protocol_datatypes_t x;
+			lastdata = (data << 8) | ((unsigned char)tag);
+			pd.protocol_info[lastdata] =  x;
+		}
+		else
+		{
+			// is a protocol data type
+			assert(lastdata != -1);
+			pd.protocol_info[lastdata].push_back(data);
+		}
+		
+				
+	}
+	return pd;
+}
+
+
+//////
+// This reads the display bitmap on GPS models that support this.
+// Saves the bitmap into a BMP file
+//
+//
+// Screen data is stored as unsigned long format, each long (32 bits)
+// contains 16 pixels, with 2 bits per pixel.
+//
+//  0= white, 1=Light grey, 2=dark grey, 3=black
+//
+// Please note that display is actually mirrored! We would need to put everything
+// into a table in memory before flushing it to disk if we wanted to have the right
+// display.
+/////
+void
+application_layer::get_display_bitmap(void) throw (not_possible, timeout)
+{
+	check_init();
+	product_data_type pd = get_product_data();
+
+	uint8 sz;
+	uint16 width, height;
+	sint16 *buf16 = (sint16 *) m_buf;
+	uint32 tlong,q,ptr;
+	FILE *outfile;
+	// I'm using the BMP format because it's the one used by g7to and I don't
+	// have enough time to create PNG or something fancy like this.
+	// This is a standard BMP header adapted to our purpose:
+	unsigned char bmh[118] = {
+		66,  77, 182,  31,   0,   0,   0,   0,   0,   0, 118,   0,   0, 
+		0,  40,   0,   0,   0, 160,   0,   0,   0, 100,   0,   0,   0, 
+		1,   0,   4,   0,   0,   0,   0,   0,  64,  31,   0,   0,   0, 
+		0,   0,   0,   0,   0,   0,   0,  16,   0,   0,   0,  16,   0, 
+		0,   0,   0,   0,   0,   0,  99,  99,  99,   0, 181, 181, 181, 
+		0, 255, 255, 255,   0, 255, 255, 255,   0, 255, 255, 255,   0, 
+		255, 255, 255,   0, 255, 255, 255,   0, 255, 255, 255,   0, 255, 
+		255, 255,   0, 255, 255, 255,   0, 255, 255, 255,   0, 255, 255, 
+		255,   0, 255, 255, 255,   0, 255, 255, 255,   0, 255, 255, 255,   0 
+	}; // bmh[118]
+
+	// Abort any pending/failed transfer:
+	abort_transfer();
+
+	buf16[0] = host2garmin16((sint16) cmnd_transfer_screenbitmap);
+	m_ll->put_packet(pid_command_data, m_buf, 2);
+	
+	packet_id pid = m_ll->get_packet(m_buf, sz);
+	
+	if (pid != pid_display_data) {
+		throw not_possible("GPS did not reply with start of screen bitmap data packet");
+	}
+
+	// First packet contains screen width and lenght at the following offsets:
+	// 16: width
+	// 20: height (number of lines)
+	width = *(uint16 *) (m_buf + 16);
+	height =*(uint16 *) (m_buf + 20);
+	cout << "Screen size: " << width << "x" << height << endl;
+	
+	// Open the screen.bmp file and write the header
+	bmh[18]= width;
+	bmh[22]= height;
+	outfile = fopen("screenshot.bmp","w");
+        tlong=width*height/2;
+        memcpy(&bmh[34],&tlong,4);
+        tlong+=118;
+        memcpy(&bmh[2],&tlong,4);
+        fwrite(bmh,118,1,outfile);
+
+	// Then parse each subsequent packet and
+	// write the data into the BMP file after parsing.
+	int pixnum = 0;
+	for (int i=0; i< height; i++) {
+		// Get next packet with screen line
+		pid = m_ll->get_packet(m_buf, sz);
+		if (pid != pid_display_data) throw not_possible("GPS did not reply with screen bitmap data packet");		       
+		q = 8;
+		ptr = *(uint32*) (m_buf+q);
+		// Offset 4 is the pixel number starting the line
+		pixnum = *(uint32*) (m_buf + 4);
+		cout << "Line number " << i << "\r" << flush;
+		// Add the pixels to the new pixel bitmap:
+		uint32 mask = 0x3;
+		uint32 ptr;
+		uint16 bit_shift;
+		uint8 a,b,c;
+		for (int j=0; j< width / 16; j++) {
+			mask=0x3L;
+			bit_shift=0;
+			for(int j=1;j<5;j++) {              // for each byte in long
+				for(int k=1;k<3;k++) {      // for each pixel in the byte
+					//
+					// Our bmp output file has one nibble per pixel
+					// first nibble of byte
+					//
+					ptr = *(uint32*)(m_buf+q);
+					a = (~(uint8)(((ptr) & mask) >> bit_shift)) & 3;
+					bit_shift += 2;
+					mask=mask << 2;
+					//
+					// second nibble of byte
+					//
+					b= (~(uint8)(((ptr)&mask)>>bit_shift))&3;
+					bit_shift += 2;
+					mask=mask << 2;
+					//
+					// Write line into file:
+					//
+					c = (a<<4)|b;
+					fwrite(&c,1,1,outfile);
+				}
+			}
+			q +=4;  // index pointer to next 4 bytes (unsigned long)
+		}
+	}
+	fclose(outfile);
+}
+
+/////////////////
+
+radian_type
+application_layer::get_pvt(void) throw (not_possible, timeout)
+{
+        check_init();
+                                                                                                                      
+        sint16 *sbuf16 = (sint16 *) m_buf;
+                                                                                                                      
+        sbuf16[0] = host2garmin16((sint16) cmnd_start_pvt_data);
+        m_ll->put_packet(pid_command_data, m_buf, 2);
+                                                                                                                      
+        uint8 sz;
+        packet_id pid = m_ll->get_packet(m_buf, sz);
+                                                                                                                      
+        if (pid != pid_pvt_data) {
+                throw not_possible("GPS did not respond with position packet");
+        }
+        if (sz != 16) {
+                throw not_possible("Position packet is the wrong size");
+        }
+                                                                                                                      
+        double64 *dbuf = (double64 *) m_buf;
+        radian_type retval;
+        retval.lat = garmin2host64(dbuf[0]);
+        retval.lon = garmin2host64(dbuf[1]);
+ 
+        return retval;
+}
+
+///////////////////
+
+
+
+
+
+waypt_vec_t *
+application_layer::get_waypoints(void) throw (not_possible, timeout, unsupported_protocol)
+{
+	check_init();
+
+	product_data_type pd = get_product_data();
+
+	if (!pd.protocol_info.empty() && !pd.has_protocol('A',100))
+	{
+		throw unsupported_protocol("GPS does not support selected protocol");
+	}
+	
+	uint8 sz;
+	sint16 *buf16 = (sint16 *) m_buf;
+	char ident[7];
+	char cmnt[41];
+	ident[6] = cmnt[40] = 0;
+	
+	buf16[0] = host2garmin16((sint16) cmnd_transfer_wpt);
+	m_ll->put_packet(pid_command_data, m_buf, 2);
+	
+	packet_id pid = m_ll->get_packet(m_buf, sz);
+	
+	if (pid != pid_records) {
+		throw not_possible("GPS did not reply with start of records data packet for waypoint data");
+	}
+	if (sz != 2) {
+		throw not_possible("Waypoint data start of records packet is wrong size");
+	}
+	
+	sint16 num_recs = garmin2host16(buf16[0]);
+	waypt_vec_t *waypts = new waypt_vec_t(num_recs);
+	bool unsupp = false;
+		
+	for (sint16 i = 0; i < num_recs; i++) {
+		basic_waypt_type &waypt = (*waypts)[i];
+		
+		pid = m_ll->get_packet(m_buf, sz);
+		
+		if (pid != pid_wpt_data) {
+			delete waypts;
+			throw not_possible("GPS did not send waypoint data packet");
+		}
+		/*
+		if (sz < (6 + 8 + 4 + 40)) {
+			delete waypts;
+			throw not_possible("Waypoint data packet is too small");
+		}
+		*/
+		switch (pd.protocol_datatype('A',100,0))
+		{
+  		        case 108:
+		        case 109:
+			{
+				D108 my_d108(m_buf);
+				waypt << my_d108;
+				break;
+			}
+				
+			case 103:
+			{
+				uint32 *buf32 = (uint32 *) (m_buf + 6);
+				waypt.pos.lat = garmin2host32(buf32[0]);
+				waypt.pos.lon = garmin2host32(buf32[1]);
+
+				strncpy(ident, (char *) m_buf, 6);
+				waypt.id = string(ident);
+	
+				strncpy(cmnt, (char *) (m_buf + 18), 40);
+				waypt.comment = string(cmnt);
+				break;
+			}
+			default:
+				unsupp = true; // Cannot just bail out, otherwise the GPS is confused
+		}
+	}
+	if (unsupp)  throw unsupported_protocol("Waypoint Datatype of GPS not supported");
+
+	pid = m_ll->get_packet(m_buf, sz);
+	if (pid != pid_xfer_cmplt) {
+		delete waypts;
+		throw not_possible("GPS did not terminate waypoint data with end of records packet");
+	}
+	if (garmin2host16(buf16[0]) != cmnd_transfer_wpt) {
+		delete waypts;
+		throw not_possible("End of records packet does not match original waypoint transfer command");
+	}
+		
+	return waypts;
+		
+}
+
+/////////////////////
+
+void 
+application_layer::send_waypoints(waypt_vec_t *waypts) throw (not_possible, timeout)
+{
+	check_init();
+	
+	const	int d103_sz = 6 + 8 + 4 + 40 + 2;
+
+	product_data_type pd = get_product_data();
+
+	if (!(pd.has_protocol('A',100) && pd.protocol_datatype('A',100,0) == 103))
+		{
+		throw not_possible("Waypoint download not supported for this GPS");
+	}
+
+	sint16 *buf16 = (sint16 *) m_buf;
+	buf16[0] = host2garmin16(waypts->size());
+	
+	m_ll->put_packet(pid_records, m_buf, 2);
+	
+	for (unsigned int i = 0; i < waypts->size(); i++) {
+		basic_waypt_type &w = (*waypts)[i];
+		
+		// clear all fields
+		memset(m_buf, 0, d103_sz);
+		// set all waypt strings to blank spaces
+		memset(m_buf, ' ', 6);
+		memset(m_buf + 18, ' ', 40);
+		
+		// copy in strings, fixing up for GPS; leave bad characters as spaces
+		for (size_t j = 0; j < min<size_t>(6, w.id.size()); j++) {
+			char c = w.id[j];
+			if (isalnum(c)) {
+				m_buf[j] = toupper(c);
+			}
+		}
+		for (size_t j = 0; j < min<size_t>(40, w.comment.length()); j++) {
+			char c = w.comment[j];
+			if (isalnum(c) || c == '-') {
+				m_buf[j + 18] = toupper(c);
+			}
+		}
+		
+		// copy in position data
+		uint32 *buf32 = (uint32 *) (m_buf + 6);
+		buf32[0] = host2garmin32(w.pos.lat);
+		buf32[1] = host2garmin32(w.pos.lon);
+		
+		m_ll->put_packet(pid_wpt_data, m_buf, d103_sz);
+	}
+	
+	buf16[0] = host2garmin16(cmnd_transfer_wpt);
+	m_ll->put_packet(pid_xfer_cmplt, m_buf, 2);
+}
+
+/////////////////////
+
+route_list_t *
+application_layer::get_routes() throw (not_possible, timeout)
+{
+	check_init();
+	pd = get_product_data();
+
+	if (!pd.protocol_info.empty() && pd.has_protocol('A',201))
+	{
+		return get_routes_201();	
+	}
+
+	if (!pd.protocol_info.empty() && pd.has_protocol('A',200))
+	{
+		return get_routes_200();	
+	}
+
+	return get_routes_200();
+	// give it a try
+}
+		
+
+
+route_list_t *
+application_layer::get_routes_201() throw (not_possible, timeout, unsupported_protocol)
+{
+	check_init();
+
+	if (!pd.protocol_info.empty() && !pd.has_protocol('A',201))
+	{
+		throw unsupported_protocol("GPS does not support selected protocol");
+	}
+		
+
+	uint16 *buf16 = (uint16 *) m_buf;
+	buf16[0] = host2garmin16((sint16) cmnd_transfer_rte);
+	m_ll->put_packet(pid_command_data, m_buf, 2);
+	uint8 sz;
+
+	packet_id pid = m_ll->get_packet(m_buf, sz);
+	if (pid != pid_records) {
+		throw not_possible("GPS did not reply with start of records data packet for route data");
+	}
+	if (sz != 2) {
+		throw not_possible("Route data start of records packet is wrong size");
+	}
+	sint16 num_packets = garmin2host16(buf16[0]);
+
+	// create route list with no routes
+	route_list_t *retval = new route_list_t(0);
+	
+	bool curr_rt_exists = false;
+	for (sint16 i = 0; i < num_packets; i++) {
+		pid = m_ll->get_packet(m_buf, sz);
+		if (pid == pid_rte_hdr) {
+			// start new route
+			retval->push_back(list<basic_waypt_type>());
+			curr_rt_exists = true;
+			continue;
+		}
+		if (pid == pid_rte_link_data) {
+			curr_rt_exists = true;
+			continue;
+		}
+		
+		if (pid != pid_rte_wpt_data) {
+			delete retval;
+			throw not_possible("Packet is not route waypoint data or route header");
+		}
+		if (!curr_rt_exists) {
+			delete retval;
+			throw not_possible("Route waypoint data packet was not preceded by a route header packet");
+		}
+		if (sz < (6 + 8 + 2 + 40)) {
+			delete retval;
+			throw not_possible("Route waypoint data packet is too small");
+		}
+
+		basic_waypt_type waypt;
+
+		D108 my_d108(m_buf);
+		waypt << my_d108;
+		
+		// add this waypoint to end of last route in route list.
+		retval->back().push_back(waypt);
+		
+	}
+	
+	pid = m_ll->get_packet(m_buf, sz);
+	if (pid != pid_xfer_cmplt) {
+		delete retval;
+		throw not_possible("GPS did not terminate route data with end of records packet");
+	}
+	if (garmin2host16(buf16[0]) != cmnd_transfer_rte) {
+		delete retval;
+		throw not_possible("End of records packet does not match original route transfer command");
+	}
+		
+	return retval;
+		
+}
+/////////////////////
+
+route_list_t *
+application_layer::get_routes_200(void) throw (not_possible, timeout, unsupported_protocol)
+{
+	check_init();
+
+	product_data_type pd = get_product_data();
+
+	if (!pd.protocol_info.empty() && !pd.has_protocol('A',200))
+	{
+		throw unsupported_protocol("GPS does not support selected protocol");
+	}
+
+	uint16 *buf16 = (uint16 *) m_buf;
+	buf16[0] = host2garmin16((sint16) cmnd_transfer_rte);
+	m_ll->put_packet(pid_command_data, m_buf, 2);
+	uint8 sz;
+
+	packet_id pid = m_ll->get_packet(m_buf, sz);
+	if (pid != pid_records) {
+		throw not_possible("GPS did not reply with start of records data packet for route data");
+	}
+	if (sz != 2) {
+		throw not_possible("Route data start of records packet is wrong size");
+	}
+	sint16 num_packets = garmin2host16(buf16[0]);
+
+	// create route list with no routes
+	route_list_t *retval = new route_list_t(0);
+	
+	bool curr_rt_exists = false;
+	for (sint16 i = 0; i < num_packets; i++) {
+		pid = m_ll->get_packet(m_buf, sz);
+		if (pid == pid_rte_hdr) {
+			// start new route
+			retval->push_back(list<basic_waypt_type>());
+			curr_rt_exists = true;
+			continue;
+		}
+		
+		if (pid != pid_rte_wpt_data) {
+			delete retval;
+			throw not_possible("Packet is not route waypoint data or route header");
+		}
+		if (!curr_rt_exists) {
+			delete retval;
+			throw not_possible("Route waypoint data packet was not preceded by a route header packet");
+		}
+		if (sz < (6 + 8 + 2 + 40)) {
+			delete retval;
+			throw not_possible("Route waypoint data packet is too small");
+		}
+		
+		semicircle_type *sp = (semicircle_type *) (m_buf + 6);
+		sp->lat = garmin2host32(sp->lat);
+		sp->lon = garmin2host32(sp->lon);
+
+		basic_waypt_type waypt;
+
+		char ident[7], cmnt[41];
+		ident[6] = cmnt[40] = 0;
+		strncpy(ident, (char *) m_buf, 6);
+		waypt.id = string(ident);
+
+		waypt.pos = *sp;
+		
+		strncpy(cmnt, (char *) m_buf + 14, 40);
+		waypt.comment = string(cmnt);
+		
+		// add this waypoint to end of last route in route list.
+		retval->back().push_back(waypt);
+		
+	}
+	
+	pid = m_ll->get_packet(m_buf, sz);
+	if (pid != pid_xfer_cmplt) {
+		delete retval;
+		throw not_possible("GPS did not terminate route data with end of records packet");
+	}
+	if (garmin2host16(buf16[0]) != cmnd_transfer_rte) {
+		delete retval;
+		throw not_possible("End of records packet does not match original route transfer command");
+	}
+		
+	return retval;
+		
+}
+
+/////////////////////
+
+void 
+application_layer::send_routes(route_list_t *routes) throw (not_possible, timeout)
+{
+	check_init();
+		
+	product_data_type pd = get_product_data();
+
+	if (!(pd.has_protocol('A',200) && pd.protocol_datatype('A',200,1) == 103))
+	{
+		throw not_possible("Waypoint download not supported for this GPS");
+	}
+
+	const	int d103_sz = 6 + 8 + 4 + 40 + 2;
+	
+	// how many data packets?
+	sint16 num_recs = 0;
+	route_list_t::const_iterator llw;
+	for (llw = routes->begin(); llw != routes->end(); llw++) {
+		num_recs += llw->size();
+	}
+	num_recs += routes->size(); // plus 1 header packet for each route
+	
+	sint16 *buf16 = (sint16 *) m_buf;
+	buf16[0] = host2garmin16(num_recs);
+	
+	m_ll->put_packet(pid_records, m_buf, 2);
+	
+	for (llw = routes->begin(); llw != routes->end(); llw++) {
+		
+		// put route header
+		m_buf[0] = 10;
+		char *test = "TESTING COMMENT     "; 
+		for (int k = 0; k < 20; k++) {
+			m_buf[k + 1] = test[k];
+		}
+		m_ll->put_packet(pid_rte_hdr, m_buf, 21);
+		
+		// put route waypoints
+		route_t::const_iterator lw;
+		for (lw = llw->begin(); lw != llw->end(); lw++) {
+			memset(m_buf, 0, d103_sz);
+			// set all waypt strings to blank spaces
+			memset(m_buf, ' ', 6);
+			memset(m_buf + 18, ' ', 40);
+		
+			// copy in strings, fixing up for GPS; leave bad characters as spaces
+			for (size_t j = 0; j < min<size_t>(6, lw->id.size()); j++) {
+				char c = lw->id[j];
+				if (isalnum(c)) {
+					m_buf[j] = toupper(c);
+				}
+			}
+			for (size_t j = 0; j < min<size_t>(40, lw->comment.length()); j++) {
+				char c = lw->comment[j];
+				if (isalnum(c) || c == '-') {
+					m_buf[j + 18] = toupper(c);
+				}
+			}
+		
+			// copy in position data
+			uint32 *buf32 = (uint32 *) (m_buf + 6);
+			buf32[0] = host2garmin32(lw->pos.lat);
+			buf32[1] = host2garmin32(lw->pos.lon);
+		
+			m_ll->put_packet(pid_rte_wpt_data, m_buf, d103_sz);
+		}
+	}
+	buf16[0] = host2garmin16(cmnd_transfer_rte);
+	m_ll->put_packet(pid_xfer_cmplt, m_buf, 2);
+}
+	
+/////////////////////
+
+void
+application_layer::send_track_logs(track_list_t *tracks) throw (not_possible, timeout)
+{
+	check_init();
+
+	// how many track points?
+	sint16 num_recs = 0;
+	track_list_t::const_iterator llti;
+	for (llti = tracks->begin(); llti != tracks->end(); llti++) {
+		num_recs += llti->size();
+	}
+	
+	sint16 *sbuf16 = (sint16 *) m_buf;
+	sbuf16[0] = host2garmin16(num_recs);
+		
+	m_ll->put_packet(pid_records, m_buf, 2);
+	
+	for (llti = tracks->begin(); llti != tracks->end(); llti++) {
+		track_t::const_iterator lti;
+		bool first = true;
+		m_buf[8 + 4] = 1;
+		for (lti = llti->begin(); lti != llti->end(); lti++, first = false) {
+		
+			uint32 *buf32 = (uint32 *) m_buf;
+			buf32[0] = host2garmin32(lti->pos.lat);
+			buf32[1] = host2garmin32(lti->pos.lon);
+			
+			// GPS ignores time field, leave it as 0 
+			
+			m_ll->put_packet(pid_trk_data, m_buf, 16);
+			
+			// set new_track element at first point of each segment, but not for other
+			// points in track segment
+			if (first) {
+				m_buf[8 + 4] = 0;
+			}
+		}
+	}
+	
+	sbuf16[0] = host2garmin16(cmnd_transfer_trk);
+	m_ll->put_packet(pid_xfer_cmplt, m_buf, 2);
+}
+
+/////////////////////
+
+track_list_t *
+application_layer::get_track_logs(void) throw (not_possible, timeout, unsupported_protocol)
+{
+	check_init();
+	product_data_type pd = get_product_data();
+
+	if (!pd.protocol_info.empty() && pd.has_protocol('A',301))
+	{
+		return get_track_logs_301();	
+	}
+
+	if (!pd.protocol_info.empty() && pd.has_protocol('A',300))
+	{
+		return get_track_logs_300();	
+	}
+
+	return get_track_logs_300();	
+	// give it a try
+}
+
+track_list_t *
+application_layer::get_track_logs_300(void) throw (not_possible, timeout, unsupported_protocol)
+{
+	check_init();
+
+	product_data_type pd = get_product_data();
+
+	if (!pd.protocol_info.empty() && !pd.has_protocol('A',300))
+	{
+		throw unsupported_protocol("GPS does not support selected protocol");
+	}
+	
+	uint8 sz;
+	sint16 *buf16 = (sint16 *) m_buf;
+	
+	buf16[0] = host2garmin16((sint16) cmnd_transfer_trk);
+	m_ll->put_packet(pid_command_data, m_buf, 2);
+	
+	packet_id pid = m_ll->get_packet(m_buf, sz);
+	
+	if (pid != pid_records) {
+		throw not_possible("GPS did not reply with start of records data packet for track log data");
+	}
+	if (sz != 2) {
+		throw not_possible("Track log data start of records packet is wrong size");
+	}
+	
+	sint16 num_recs = garmin2host16(buf16[0]);
+	track_list_t *tracks = new track_list_t(0);
+		
+	for (sint16 i = 0; i < num_recs; i++) {
+		pid = m_ll->get_packet(m_buf, sz);
+		
+		if (pid != pid_trk_data) {
+			delete tracks;
+			throw not_possible("GPS did not send track point data packet");
+		}
+
+		if (sz < (8 + 4 + 1)) {
+			delete tracks;
+			throw not_possible("Track point data packet is too small");
+		}
+		
+		bool new_trk = m_buf[8 + 4];
+		if (new_trk || i == 0) {
+			tracks->push_back(list<track_point_type>());
+		}		
+		
+		semicircle_type *sp = (semicircle_type *) m_buf;
+		sp->lat = garmin2host32(sp->lat);
+		sp->lon = garmin2host32(sp->lon);
+
+		track_point_type track_point;
+		track_point.pos = *sp;
+		track_point.new_track = new_trk;
+		uint32 *buf32 = (uint32 *) m_buf;
+		
+		struct tm my_tm;
+		memset(&my_tm, 0, sizeof(struct tm));
+		my_tm.tm_sec = garmin2host32(buf32[2]);
+		my_tm.tm_year = 89;
+		my_tm.tm_mday = 31; // 1 based counting
+		my_tm.tm_mon  = 11; // 0 based counting
+		my_tm.tm_isdst = -1; // unknown
+		
+		track_point.time = mktime(&my_tm);
+		
+		tracks->back().push_back(track_point);
+	}
+	
+	pid = m_ll->get_packet(m_buf, sz);
+	if (pid != pid_xfer_cmplt) {
+		delete tracks;
+		throw not_possible("GPS did not terminate track log data with end of records packet");
+	}
+	if (garmin2host16(buf16[0]) != cmnd_transfer_trk) {
+		delete tracks;
+		throw not_possible("End of records packet does not match original track log transfer command");
+	}
+		
+	return tracks;
+}
+
+track_list_t *
+application_layer::get_track_logs_301(void) throw (not_possible, timeout, unsupported_protocol)
+{
+	check_init();
+
+	product_data_type pd = get_product_data();
+
+	if (!pd.protocol_info.empty() && !pd.has_protocol('A',301))
+	{
+		throw unsupported_protocol("GPS does not support selected protocol");
+	}
+	
+	uint8 sz;
+	sint16 *buf16 = (sint16 *) m_buf;
+	
+	buf16[0] = host2garmin16((sint16) cmnd_transfer_trk);
+	m_ll->put_packet(pid_command_data, m_buf, 2);
+	
+	packet_id pid = m_ll->get_packet(m_buf, sz);
+	
+	if (pid != pid_records) {
+		throw not_possible("GPS did not reply with start of records data packet for track log data");
+	}
+	if (sz != 2) {
+		throw not_possible("Track log data start of records packet is wrong size");
+	}
+	
+	sint16 num_recs = garmin2host16(buf16[0]);
+	track_list_t *tracks = new track_list_t(0);
+
+		
+	for (sint16 i = 0; i < num_recs; i++) {
+		pid = m_ll->get_packet(m_buf, sz);
+
+		
+		if (pid == pid_trk_hdr) {
+			cout << "New track: " << m_buf + 2 << endl;
+			continue;
+		}
+
+		if (pid != pid_trk_data) {
+			delete tracks;
+			throw not_possible("GPS did not send track point data packet");
+		}
+
+		if (sz < (8 + 4 + 1)) {
+			delete tracks;
+			throw not_possible("Track point data packet is too small");
+		}
+		
+		bool new_trk = m_buf[8 + 4 + 8];
+		if (new_trk || i == 0) {
+			tracks->push_back(list<track_point_type>());
+		}		
+	
+		track_point_type track_point;
+		D301 my_d301(m_buf);	
+
+		track_point << my_d301;
+		tracks->back().push_back(track_point);
+	}
+	
+	pid = m_ll->get_packet(m_buf, sz);
+	if (pid != pid_xfer_cmplt) {
+		delete tracks;
+		throw not_possible("GPS did not terminate track log data with end of records packet");
+	}
+	if (garmin2host16(buf16[0]) != cmnd_transfer_trk) {
+		delete tracks;
+		throw not_possible("End of records packet does not match original track log transfer command");
+	}
+		
+	return tracks;
+}
+
+/////////////////
+
+prox_waypt_vec_t *
+application_layer::get_proximity_waypoints(void) throw (not_possible, timeout, unsupported_protocol)
+{
+	check_init();
+
+	product_data_type pd = get_product_data();
+
+	if (!pd.protocol_info.empty() && !pd.has_protocol('A',400))
+	{
+		throw unsupported_protocol("GPS does not support selected protocol");
+	}
+	
+	uint8 sz;
+	sint16 *buf16 = (sint16 *) m_buf;
+	
+	char ident[7];
+	char cmnt[41];
+	ident[6] = cmnt[40] = 0;
+	
+	buf16[0] = host2garmin16((sint16) cmnd_transfer_prx);
+	m_ll->put_packet(pid_command_data, m_buf, 2);
+	
+	packet_id pid = m_ll->get_packet(m_buf, sz);
+	
+	if (pid != pid_records) {
+		throw not_possible("GPS did not reply with start of records data packet for proximity waypoint data");
+	}
+	if (sz != 2) {
+		throw not_possible("Proximity waypoint data start of records packet is wrong size");
+	}
+	
+	sint16 num_recs = garmin2host16(buf16[0]);
+	prox_waypt_vec_t *waypts = new prox_waypt_vec_t(num_recs);
+		
+	for (sint16 i = 0; i < num_recs; i++) {
+		proximity_waypt_type &waypt = (*waypts)[i];
+		
+		pid = m_ll->get_packet(m_buf, sz);
+		
+		if (pid != pid_prx_wpt_data) {
+			delete waypts;
+			throw not_possible("GPS did not send proximity waypoint data packet");
+		}
+		if (sz < (6 + 8 + 4 + 40 + 2 + 4)) {
+			delete waypts;
+			throw not_possible("Proximity waypoint data packet is too small");
+		}
+		
+		uint32 *buf32 = (uint32 *) (m_buf + 6);
+		waypt.waypt.pos.lat = garmin2host32(buf32[0]);
+		waypt.waypt.pos.lon = garmin2host32(buf32[1]);
+
+		strncpy(ident, (char *) m_buf, 6);
+		waypt.waypt.id = string(ident);
+		
+		strncpy(cmnt, (char *) m_buf + 18, 40);
+		waypt.waypt.comment = string(cmnt);
+		
+		buf32 = (uint32 *) (m_buf + sz - 4);
+		*buf32 = garmin2host32(buf32[0]);
+		float32 *dist = (float32 *) buf32;
+		waypt.dist = *dist;
+	}
+	
+	pid = m_ll->get_packet(m_buf, sz);
+	if (pid != pid_xfer_cmplt) {
+		delete waypts;
+		throw not_possible("GPS did not terminate proximity waypoint data with end of records packet");
+	}
+	if (garmin2host16(buf16[0]) != cmnd_transfer_prx) {
+		delete waypts;
+		throw not_possible("End of records packet does not match original proximity waypoint transfer command");
+	}
+		
+	return waypts;
+		
+}
+
+/////////////////////
+
+void
+application_layer::send_proximity_waypoints(prox_waypt_vec_t *prx_waypts) throw (not_possible, timeout)
+{
+	check_init();
+	
+	product_data_type pd = get_product_data();
+
+	if (!(pd.has_protocol('A',400) && pd.protocol_datatype('A',400,0) == 403))
+	{
+		throw not_possible("Waypoint download not supported for this GPS");
+	}
+	const	int d103_sz = 6 + 8 + 4 + 40 + 2;
+	
+	sint16 *buf16 = (sint16 *) m_buf;
+	buf16[0] = host2garmin16(prx_waypts->size());
+	
+	m_ll->put_packet(pid_records, m_buf, 2);
+	
+	for (unsigned int i = 0; i < prx_waypts->size(); i++) {
+		basic_waypt_type &w = (*prx_waypts)[i].waypt;
+		
+		// clear all fields
+		memset(m_buf, 0, d103_sz + 4);
+		// set all waypt strings to blank spaces
+		memset(m_buf, ' ', 6);
+		memset(m_buf + 18, ' ', 40);
+		
+		// copy in strings, fixing up for GPS; leave bad characters as spaces
+		for (size_t j = 0; j < min<size_t>(6, w.id.size()); j++) {
+			char c = w.id[j];
+			if (isalnum(c)) {
+				m_buf[j] = toupper(c);
+			}
+		}
+		for (size_t j = 0; j < min<size_t>(40, w.comment.length()); j++) {
+			char c = w.comment[j];
+			if (isalnum(c) || c == '-') {
+				m_buf[j + 18] = toupper(c);
+			}
+		}
+		
+		// copy in position data
+		uint32 *buf32 = (uint32 *) (m_buf + 6);
+		buf32[0] = host2garmin32(w.pos.lat);
+		buf32[1] = host2garmin32(w.pos.lon);
+		
+		// copy in proximity distance
+		buf32 = (uint32 *) (m_buf + d103_sz);
+		float32 d = (*prx_waypts)[i].dist;
+		uint32 *t32 = (uint32 *) &d;
+		*buf32 = host2garmin32(*t32);
+		
+		m_ll->put_packet(pid_prx_wpt_data, m_buf, d103_sz + 4);
+	}
+	
+	buf16[0] = host2garmin16(cmnd_transfer_prx);
+	m_ll->put_packet(pid_xfer_cmplt, m_buf, 2);
+
+}
+
+
+/////////////////////
+
+void
+application_layer::turn_off_gps(void) throw (not_possible, timeout)
+{
+	check_init();
+	
+	sint16 *buf16 = (sint16 *) m_buf;
+	
+	buf16[0] = host2garmin16((sint16) cmnd_turn_off_pwr);
+	m_ll->put_packet(pid_command_data, m_buf, 2);
+	
+}
+
+/////////////////
+
+time_t 
+application_layer::get_date_time(void) throw (not_possible, timeout)
+{
+	check_init();
+
+	sint16 *sbuf16 = (sint16 *) m_buf;
+	
+	sbuf16[0] = host2garmin16((sint16) cmnd_transfer_time);
+	m_ll->put_packet(pid_command_data, m_buf, 2);
+	
+	uint8 sz;
+	packet_id pid = m_ll->get_packet(m_buf, sz);
+	
+	if (pid != pid_date_time_data) {
+		throw not_possible("GPS did not respond with date and time packet");
+	}
+	if (sz != 8) {
+		throw not_possible("Date and time packet is the wrong size");
+	}
+	
+	struct tm my_tm;
+	memset(&my_tm, 0, sizeof(struct tm));
+	
+	my_tm.tm_mon = m_buf[0] - 1;
+	my_tm.tm_mday = m_buf[1];
+	uint16 *ubuf16 = (uint16 *) m_buf;
+	my_tm.tm_year = garmin2host16(ubuf16[1]) - 1900;
+	my_tm.tm_hour = garmin2host16(sbuf16[2]);
+	my_tm.tm_min = m_buf[6];
+	my_tm.tm_sec = m_buf[7];
+	
+	my_tm.tm_isdst = -1;
+	
+	return mktime(&my_tm);
+}
+
+/////////////////////
+
+void 
+application_layer::send_date_time(time_t t) throw (bad_time, not_possible, timeout)
+{
+	check_init();
+
+	struct tm my_tm = *gmtime(&t);
+	if (my_tm.tm_year < 90) {
+		throw bad_time();
+	}
+	
+	m_buf[0] = my_tm.tm_mon + 1;
+	m_buf[1] = my_tm.tm_mday;
+	uint16 *buf16 = (uint16 *) m_buf;;
+	buf16[1] = host2garmin16(my_tm.tm_year + 1900);
+	sint16 *sbuf16 = (sint16 *) buf16;
+	sbuf16[2] = host2garmin16(my_tm.tm_hour);
+	m_buf[6] = my_tm.tm_min;
+	m_buf[8] = my_tm.tm_sec;
+	
+	m_ll->put_packet(pid_date_time_data, m_buf, 8);
+}
+
+//////////////////
+
+radian_type
+application_layer::get_position(void) throw (not_possible, timeout)
+{
+	check_init();
+
+	sint16 *sbuf16 = (sint16 *) m_buf;
+	
+	sbuf16[0] = host2garmin16((sint16) cmnd_transfer_posn);
+	m_ll->put_packet(pid_command_data, m_buf, 2);
+	
+	uint8 sz;
+	packet_id pid = m_ll->get_packet(m_buf, sz);
+	
+	if (pid != pid_position_data) {
+		throw not_possible("GPS did not respond with position packet");
+	}
+	if (sz != 16) {
+		throw not_possible("Position packet is the wrong size");
+	}
+	
+	double64 *dbuf = (double64 *) m_buf;
+	radian_type retval;
+	retval.lat = garmin2host64(dbuf[0]);
+	retval.lon = garmin2host64(dbuf[1]);
+	
+	return retval;
+}
+
+/////////////////////
+
+void 
+application_layer::send_position(radian_type pos) throw (not_possible, timeout)
+{
+	check_init();
+
+	double64 *dbuf = (double64 *) m_buf;
+	dbuf[0] = host2garmin64(pos.lat);
+	dbuf[1] = host2garmin64(pos.lon);
+	
+	m_ll->put_packet(pid_position_data, m_buf, 16);
+}
+
+//////////////////
+
+} // namespace

Added: packages/gpsdrive/branches/etch/src/garmin_application.h
===================================================================
--- packages/gpsdrive/branches/etch/src/garmin_application.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/garmin_application.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,176 @@
+// $Id: garmin_application.h,v 1.3 2003/04/28 15:10:03 ganter Exp $
+// garmin_application.h
+// Douglas S. J. De Couto
+// September 9, 1998
+
+// Copyright (C) 1998 Douglas S. J. De Couto
+// <decouto at lcs.mit.edu>
+//
+// 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.
+
+#ifndef _garapph
+#define _garapph
+
+#include "garmin_link.h"
+#include "garmin_types.h"
+#include <vector>
+#include <list>
+
+namespace garmin {
+
+  typedef std::vector<basic_waypt_type> waypt_vec_t;
+
+  typedef std::vector<proximity_waypt_type> prox_waypt_vec_t;
+
+  typedef std::list<basic_waypt_type> route_t;
+  typedef std::list<route_t> route_list_t;
+
+  typedef std::list<track_point_type> track_t;
+  typedef std::list<track_t> track_list_t;
+
+class application_layer 
+{
+  // NOTE: for routines which return a pointer to a list or vector,
+  // the user is responsible for deleting that list or vector.
+public:
+
+	application_layer() : m_init(false), m_ll(0) { }
+	application_layer(const application_layer &) : m_init(false), m_ll(0) { }
+	
+	application_layer(link_layer *ll) : m_init(true), m_ll(ll) { }
+	
+	void 
+	init(link_layer *ll)
+	{ m_init = true; m_ll = ll; }
+	
+	// protocol A000 -- product data (protocol A001 is
+	// automatically initiated by GPS after protocol A000 in
+	// products which support A001, and is partially implemented
+	// here, i.e. we expect A001).
+	product_data_type 
+	get_product_data(void) throw (not_possible, timeout);
+	
+	
+	// protocol A100 -- waypoints
+	waypt_vec_t *
+	get_waypoints(void) throw (not_possible, timeout, unsupported_protocol);
+	
+	void 
+	send_waypoints(waypt_vec_t *waypts) throw (not_possible, timeout);
+	// only works on units that use the D103 waypoint type (GPS 12, GPS 12 XL, GPS 48, 
+	// GPS II Plus, GPS 128).
+	
+	
+	// protocol A2xx -- routes
+	// although the GPS may identify routes with a number, this function returns
+	// a list of anonymous routes, where each route is a list of waypoints.
+	// it checks which protocol type the device supports and choose the right 
+	// protocol method
+	route_list_t *
+	get_routes(void) throw (not_possible, timeout);
+
+	// protocol A200 -- routes
+	// although the GPS may identify routes with a number, this function returns
+	// a list of anonymous routes, where each route is a list of waypoints.
+	route_list_t *
+	get_routes_200(void) throw (not_possible, timeout, unsupported_protocol);
+	
+	// protocol A201 -- routes
+	// although the GPS may identify routes with a number, this function returns
+	// a list of anonymous routes, where each route is a list of waypoints.
+	route_list_t *
+	get_routes_201(void) throw (not_possible, timeout, unsupported_protocol);
+
+	void 
+	send_routes(route_list_t *routes) throw (not_possible, timeout); 
+	// only works on same units as send_waypoints
+	
+	// protocol A3xx -- track logs
+	// returns list of track log sengments, where each track log segment is a list 
+	// of track points.
+	track_list_t *
+	get_track_logs(void) throw (not_possible, timeout, unsupported_protocol);
+
+	// protocol A300 -- track logs
+	// returns list of track log sengments, where each track log segment is a list 
+	// of track points.
+	track_list_t *
+	get_track_logs_300(void) throw (not_possible, timeout, unsupported_protocol);
+	
+	// protocol A301 -- track logs
+	// returns list of track log sengments, where each track log segment is a list 
+	// of track points.
+	track_list_t *
+	get_track_logs_301(void) throw (not_possible, timeout, unsupported_protocol);
+
+	void
+	send_track_logs(track_list_t *tracks) throw (not_possible, timeout); 
+	
+	
+	// protocol A400 -- proximity waypoints
+	prox_waypt_vec_t *
+	get_proximity_waypoints(void) throw (not_possible, timeout, unsupported_protocol);
+	
+	void
+	send_proximity_waypoints(prox_waypt_vec_t *prx_waypts) throw (not_possible, timeout);
+	// only works on same units as send_waypoints
+	
+	
+	// protocol A500 -- almanac
+	
+	
+	// protocol A600 -- date/time
+	std::time_t 
+	get_date_time(void) throw (not_possible, timeout);
+	// returns UTC time_t of current GPS time
+	
+	void 
+	send_date_time(std::time_t t) throw (bad_time, not_possible, timeout); // buggy?
+	// expects local time_t
+	// initialize GPS time
+	
+	
+	// protocol A700 -- position
+	radian_type 
+	get_position(void) throw (not_possible, timeout);
+	// get current GPS position
+	
+	void 
+	send_position(radian_type pos) throw (not_possible, timeout);
+	// initialize GPS with current position
+	
+	// protocol A800 -- realtime position, velocity, time
+//Fritz works on it
+        radian_type
+        get_pvt(void) throw (not_possible, timeout);
+
+	
+	// misc	
+	void 
+	turn_off_gps(void) throw (not_possible, timeout);
+
+	void
+	  get_display_bitmap(void) throw (not_possible, timeout);
+
+	void
+	  abort_transfer(void) throw (timeout);
+
+private:
+	bool m_init;
+	bool m_got_protocol_info;
+	product_data_type pd;
+	link_layer *m_ll;
+	uint8 m_buf[255];
+};
+
+} // namespace
+
+#endif // _garapph

Added: packages/gpsdrive/branches/etch/src/garmin_command.h
===================================================================
--- packages/gpsdrive/branches/etch/src/garmin_command.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/garmin_command.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,53 @@
+// $Id: garmin_command.h,v 1.2 2003/04/28 15:10:03 ganter Exp $
+// garmin_command.h
+// Douglas S. J. De Couto
+// September 9, 1998
+
+// Copyright (C) 1998 Douglas S. J. De Couto
+// <decouto at lcs.mit.edu>
+//
+// 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.
+
+#ifndef _garcmdh
+#define _garcmdh
+
+// garmin command protocol codes
+
+namespace garmin
+{
+
+enum device_cmnd {
+	// protocol A010
+	cmnd_abort_transfer = 0,
+	cmnd_transfer_alm = 1,
+	cmnd_transfer_posn = 2,
+	cmnd_transfer_prx = 3, 
+	cmnd_transfer_rte = 4,
+	cmnd_transfer_time = 5,
+	cmnd_transfer_trk = 6,
+	cmnd_transfer_wpt = 7,
+	cmnd_turn_off_pwr = 8,
+	cmnd_start_pvt_data = 49,
+	cmnd_stop_pvt_data = 50,
+	cmnd_transfer_screenbitmap = 32,
+	
+	// protocol A011
+	cmnd_abort_transfer011 = 0,
+	cmnd_transfer_alm011 = 4,
+	cmnd_transfer_rte011 = 8,
+	cmnd_transfer_time011 = 20,
+	cmnd_transfer_wpt011 = 21,
+	cmnd_turn_off_pwr011 = 26
+};
+
+} // namespace
+
+#endif // _garcmdh

Added: packages/gpsdrive/branches/etch/src/garmin_data.cpp
===================================================================
--- packages/gpsdrive/branches/etch/src/garmin_data.cpp	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/garmin_data.cpp	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,65 @@
+// -*- mode: c++; c-basic-offset: 8; -*-
+// $Id: garmin_data.cpp,v 1.1 2003/04/28 15:57:33 ganter Exp $
+// garmin_d108.cp
+// Danilo Beuche
+
+// Copyright (C) 2000	Danilo Beuche 
+// <danilo at topmail.de>
+//
+// 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.
+
+#include "garmin_data.h" 
+#include "garmin_util.h" 
+
+namespace garmin {
+
+using namespace std;
+
+
+semicircle_type D108::Wpt_position	() const { semicircle_type ret = *(semicircle_type*)(buf + posn);
+						   ret.lat = garmin2host32(ret.lat);
+						   ret.lon = garmin2host32(ret.lon);
+						   return ret; }
+
+semicircle_type D301::Trk_position	() const { semicircle_type ret = *(semicircle_type*)(buf + posn);
+						   ret.lat = garmin2host32(ret.lat);
+						   ret.lon = garmin2host32(ret.lon);
+						   return ret; }
+
+
+basic_waypt_type& operator<<(basic_waypt_type& out, const D108& in)
+{
+	out.id = string(in.Wpt_ident());
+	out.pos = in.Wpt_position();
+	out.comment = string(in.Wpt_comment());
+	out.symbol = in.Wpt_symbol();
+	out.altitude = in.Wpt_altitude();
+	return out;
+}
+	
+track_point_type& operator<<(track_point_type& out, const D301& in)
+{
+	out.pos = in.Trk_position();
+	out.new_track = in.Trk_newtrack();
+
+	struct tm my_tm;
+	memset(&my_tm, 0, sizeof(struct tm));
+	my_tm.tm_sec = garmin2host32(in.Trk_time());
+	my_tm.tm_year = 89;
+	my_tm.tm_mday = 31; // 1 based counting
+	my_tm.tm_mon = 11; // 1 based counting
+	my_tm.tm_isdst = -1; // unknown
+		
+	out.time = mktime(&my_tm);
+	return out;
+}
+	
+} // namespace

Added: packages/gpsdrive/branches/etch/src/garmin_data.h
===================================================================
--- packages/gpsdrive/branches/etch/src/garmin_data.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/garmin_data.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,89 @@
+// -*- mode: c++; c-basic-offset: 8; -*-
+// $Id: garmin_data.h,v 1.1 2003/04/28 15:57:33 ganter Exp $
+// garmin_data.h
+// Danilo Beuche
+
+// Copyright (C) 2000 Danilo Beuche
+// <danilo at topmail.de>
+//
+// 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.
+
+#ifndef _garmin_data
+#define _garmin_data
+
+#include "garmin_types.h"
+
+namespace garmin {
+
+class D108 {
+	unsigned char *buf;
+public:
+	enum offsets {
+		wpt_class 	= 0,
+		color 		= 1,
+		dspl  		= 2,
+		attr  		= 3,
+		smbl  		= 4,
+		subclass 	= 6,
+		posn     	= 24,
+		alt		= 32,
+		dpth		= 36,
+		dist		= 40,
+		state		= 44,
+		cc		= 46,
+		ident		= 52
+	};
+
+	enum WaypointClass { USER_WPT = 0x00 };
+	enum Color { Black };
+
+	D108(unsigned char *nbuf): buf(nbuf) {}
+
+	WaypointClass 	Wpt_class	() const { return (WaypointClass)buf[wpt_class]; }
+	Color         	Wpt_color    	() const { return (Color)buf[color]; }
+	float	      	Wpt_altitude	() const { float alti;
+                                                   alti = *(float*)(buf + alt);
+						   if (alti > 1.0e20) // a GPS will never go that high
+							   return 0;
+	                                           else return alti;}
+	semicircle_type Wpt_position	() const;
+	symbol_type     Wpt_symbol      () const { return (symbol_type)buf[smbl]; };
+	char *		Wpt_ident	() const { return (char*)buf + ident; }	
+	char *		Wpt_comment	() const { return Wpt_ident() + strlen(Wpt_ident()) + 1 ; }
+};
+
+basic_waypt_type& operator<<(basic_waypt_type& , const D108&); 
+	
+class D301 {
+	unsigned char *buf;
+public:
+	enum offsets {
+		posn     	= 0,
+		time		= 8,
+		alt		= 12,
+		dpth		= 16,
+		new_trk 	= 20
+	};
+
+	D301(unsigned char *nbuf): buf(nbuf) {}
+
+	float	      	Trk_altitude	() const { return *(float*)(buf + alt); }
+	float	      	Trk_depth	() const { return *(float*)(buf + dpth); }
+	semicircle_type Trk_position	() const;
+	uint32		Trk_time	() const { return *(uint32*)(buf + time); }
+	bool		Trk_newtrack	() const { return buf[new_trk]; }	
+};
+
+track_point_type& operator<<(track_point_type& , const D301&); 
+
+} // namespace
+
+#endif // _garmin_data

Added: packages/gpsdrive/branches/etch/src/garmin_error.h
===================================================================
--- packages/gpsdrive/branches/etch/src/garmin_error.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/garmin_error.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,78 @@
+// $Id: garmin_error.h,v 1.2 2003/04/28 15:10:03 ganter Exp $
+// garmin_error.h
+// Douglas S. J. De Couto
+// September 9, 1998
+
+// Copyright (C) 1998 Douglas S. J. De Couto
+// <decouto at lcs.mit.edu>
+//
+// 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.
+
+#ifndef _garerrh
+#define _garerrh
+
+#include <string>
+
+namespace garmin {
+
+class error 
+{
+public:
+	error() : m_msg("<no msg>") { }
+	error(const error &err) : m_msg(err.m_msg) { }
+	error(const std::string &msg) : m_msg(msg) { }
+	
+	std::string m_msg;
+};
+
+class not_possible : public error 
+{
+public:
+	not_possible() : error("The operation was not possible") { }
+	not_possible(const not_possible &err) : error(err) { }
+	not_possible(const std::string &msg) : error(msg) { }
+};
+
+class timeout : public error 
+{
+public:
+	timeout() : error("The operation timed out") { }
+	timeout(const timeout &err) : error(err) { }
+	timeout(const std::string &msg) : error(msg) { }
+};
+
+class bad_time : public error 
+{
+public:
+	bad_time() : error("The supplied time value is invalid") { }
+	bad_time(const bad_time &err) : error(err) { }
+	bad_time(const std::string &msg) : error(msg) { }
+};
+
+
+class unsupported_protocol : public error 
+{
+public:
+	unsupported_protocol() : error("The selected protocol is not supported") { }
+	unsupported_protocol(const unsupported_protocol &err) : error(err) { }
+	unsupported_protocol(const std::string &msg) : error(msg) { }
+};
+
+class unsupported_datatype : public error 
+{
+public:
+	unsupported_datatype() : error("The required datatype is not supported") { }
+	unsupported_datatype(const unsupported_protocol &err) : error(err) { }
+	unsupported_datatype(const std::string &msg) : error(msg) { }
+};
+} // namespace
+
+#endif // _garerrh

Added: packages/gpsdrive/branches/etch/src/garmin_legacy.cpp
===================================================================
--- packages/gpsdrive/branches/etch/src/garmin_legacy.cpp	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/garmin_legacy.cpp	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,88 @@
+// -*- mode: c++; c-basic-offset: 8; -*-
+// $Id: garmin_legacy.cpp,v 1.1 2003/04/28 15:57:33 ganter Exp $
+// garmin_legacy.cp
+// Danilo Beuche
+// May 26, 1998
+
+// Copyright (C) 2000 Danilo Beuche
+// <danilo at topmail.de>
+//
+// 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.
+
+#include "garmin_legacy.h"
+
+namespace garmin {
+
+	legacy_protocols dev73 =
+	{
+		{ 'L', 	1, { type_end } },
+		{ 'A', 10, { type_end } },
+		{ 'A', 100, { 103, type_end } },
+		{ 'A', 200, { 201, 103, type_end } },
+		{ 'A', 300, { 301, type_end } },
+		{ 'A', 500, { 501, type_end } },
+		{ 'A', 600, { 600, type_end } },
+		{ 'A', 700, { 700, type_end } },
+		{ 'A', 000, { type_end } },
+		{ 'P', 000, { type_end } },
+		{  0, 000, { 0 } },
+	};
+	legacy_protocols dev96 =
+	{
+		{ 'L', 	1, { type_end } },
+		{ 'A', 10, { type_end } },
+		{ 'A', 100, { 103, type_end } },
+		{ 'A', 200, { 201, 103, type_end } },
+		{ 'A', 300, { 301, type_end } },
+		{ 'A', 400, { 403, type_end } },
+		{ 'A', 500, { 501, type_end } },
+		{ 'A', 600, { 600, type_end } },
+		{ 'A', 700, { 700, type_end } },
+		{ 'A', 000, { type_end } },
+		{ 'P', 000, { type_end } },
+		{  0, 000, { 0 } },
+	};
+
+	// Below is am example from a capability return device
+	// it is an eTrex version 2.06
+	legacy_protocols dev130 =
+	{
+		{ 'L', 	1, { type_end } },
+		{ 'A', 10, { type_end } },
+		{ 'A', 100, { 108, type_end } },
+		{ 'A', 201, { 202, 108, 201, type_end } },
+		{ 'A', 301, { 310, 301, type_end } },
+		{ 'A', 500, { 501, type_end } },
+		{ 'A', 600, { 600, type_end } },
+		{ 'A', 700, { 700, type_end } },
+		{ 'A', 800, { 800, type_end } },
+		{ 'A', 000, { type_end } },
+		{ 'P', 000, { type_end } },
+		{  0, 000, { 0 } },
+	};
+
+
+	struct legacy_device legacy_devices[11] =
+	{
+		{ 73, min_version, max_version, dev73 },
+		{ 77, 301, 349, dev96 },
+		{ 77, 361, max_version, dev96 },
+		{ 87, min_version, max_version, dev96 },
+		{ 95, min_version, max_version, dev96 },
+		{ 96, min_version, max_version, dev96 },
+		{ 100, min_version, max_version, dev96 },
+		{ 105, min_version, max_version, dev96 },
+		{ 106, min_version, max_version, dev96 },
+		{ 130, min_version, max_version, dev130 },
+		{ 0, 0, 0 , 0 }
+	};
+
+} // namespace

Added: packages/gpsdrive/branches/etch/src/garmin_legacy.h
===================================================================
--- packages/gpsdrive/branches/etch/src/garmin_legacy.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/garmin_legacy.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,53 @@
+// -*- mode: c++; c-basic-offset: 8; -*-
+// $Id: garmin_legacy.h,v 1.1 2003/04/28 15:57:33 ganter Exp $
+// garmin_legacy.h
+// Douglas S. J. De Couto
+// May 26, 1998
+
+// Copyright (C) 1998 Douglas S. J. De Couto
+// <decouto at lcs.mit.edu>
+//
+// 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.
+
+#ifndef _garmin_legacy
+#define _garmin_legacy
+
+#include "garmin_types.h"
+
+namespace garmin {
+
+	struct legacy_protocol
+	{
+		char 	tag;
+		uint16  id;
+		uint16  types[4];
+		// legacy has maximum of 2/3 datatypes per protocol
+		// a 0xffff marks end
+	};
+
+	typedef legacy_protocol legacy_protocols[12];
+
+	const uint16 type_end =0xffff;
+	const uint16 max_version =0xffff;
+	const uint16 min_version = 0;
+	
+	struct legacy_device 
+	{
+		uint16 id;
+		uint16 version_min;
+		uint16 version_max;
+		legacy_protocol* protocols;
+	} ;
+
+	extern legacy_device legacy_devices[];
+} // namespace
+
+#endif // _garmin_legacy

Added: packages/gpsdrive/branches/etch/src/garmin_link.cpp
===================================================================
--- packages/gpsdrive/branches/etch/src/garmin_link.cpp	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/garmin_link.cpp	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,405 @@
+// $Id: garmin_link.cpp,v 1.2 2003/04/28 15:10:03 ganter Exp $
+// garmin_link.cp
+// Douglas S. J. De Couto
+// May 28, 1998
+
+// Copyright (C) 1998 Douglas S. J. De Couto
+// <decouto at lcs.mit.edu>
+//
+// 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.
+
+#include "garmin_link.h"
+
+#include <cassert>
+#ifdef DBUG
+#include <iostream>
+using namespace std;
+#endif
+
+namespace garmin {
+
+  const uint8 dle = 16;
+  const uint8 etx = 3;
+
+  const int max_random_bytes = 255; 
+  // max number of bytes to scan trying to sync to a packet frame
+
+  /////////////////////
+
+  packet_id
+    link_layer::get_packet(uint8 *data, uint8 &sz) throw (not_possible, timeout)
+    {
+      if (!m_init) {
+	throw not_possible("The garmin link layer is not initialized");
+      }
+  
+      try {
+    
+	int curr_try = 0;
+	while (true) { 
+	  // loop until we get a good packet...
+      
+	  curr_try++;
+	  if (curr_try > m_retries) {
+	    throw not_possible("Too many bad packets encountered  while waiting for a good packet");
+	  }
+      
+	  uint8 id;
+	  int bytes_scanned = 0;
+	  while (true) {
+	    if (bytes_scanned > max_random_bytes) {
+	      throw not_possible("Too many random bytes encountered while waiting for a packet");
+	    }
+			
+	    // scan until we get first byte of a packet...
+	    id = m_pl->getbyte();
+	    bytes_scanned++;
+	    if (id == dle) {
+	      // could be it, but could be dle in chunk of leftover packet...
+	      id = m_pl->getbyte();
+	      bytes_scanned++;
+	      // valid packet start dle is never followed by dle or etx
+	      if (id == dle) {
+		// ``dle stuffing'' in packet data, ignore...
+		continue;
+	      }
+	      if (id == etx) {
+		// end of old packet frame, ignore...
+		continue;
+	      } 
+	      break;
+	    }
+	  }
+		
+	  sz = m_pl->getbyte();
+	  if (sz == dle) {
+	    sz = m_pl->getbyte();
+	    if (sz != dle) {
+#ifdef DBUG
+	      cerr << "link_layer::get_packet -- missing dle stuffing in packet size" << endl;
+#endif
+	      goto bad_packet;
+	    }
+	  }
+	  uint8 cksum;
+	  cksum = id + sz;
+	  for (uint8 i = 0; i < sz; i++) {
+	    data[i] = m_pl->getbyte();
+	    cksum += data[i];
+	    if (data[i] == dle) {
+	      // check for and ignore correct dle stuffing byte
+	      uint8 b = m_pl->getbyte();
+	      if (b != dle) {
+#ifdef DBUG
+		cerr << "link_layer::get_packet -- missing dle stuffing in packet data" << endl;
+#endif	
+		goto bad_packet;
+	      }
+	    }
+	  }
+		
+	  cksum = 256 - cksum;
+	  uint8 packet_cksum;
+	  packet_cksum = m_pl->getbyte();
+	  if (packet_cksum == dle) {
+	    packet_cksum = m_pl->getbyte();
+	    if (packet_cksum != dle) {
+#ifdef DBUG
+	      cerr << "link_layer::get_packet -- missing dle stuffing in packet cksum" << endl;
+#endif
+	      goto bad_packet;
+	    }
+	  }
+	
+	  if (cksum != packet_cksum) {
+#ifdef DBUG
+	    cerr << "link_layer::get_packet -- bad checksum" << endl;
+#endif	
+	    goto bad_packet;
+	  }
+		
+	  uint8 b1, b2;
+	  b1 = m_pl->getbyte();
+	  b2 = m_pl->getbyte();
+	  if (b1 != dle || b2 != etx) {
+#ifdef DBUG
+	    cerr << "link_layer::get_packet -- bad packet framing" << endl;
+	    cerr << "link_layer::get_packet -- id is " << id << endl;
+	    cerr << "link_layer::get_packet -- sz is " << sz << endl;
+	    cerr << "link_layer::get_packet -- data is: ";
+	    for (int i = 0; i < sz; i++) {
+	      cerr << data[i] << " ";
+	    }
+	    cerr << endl;
+	    cerr << "link_layer::get_packet -- cksum is " << packet_cksum << endl;
+	    cerr << "link_layer::get_packet -- dle byte is " << b1 << endl;
+	    cerr << "link_layer::get_packet -- etx byte is " << b2 << endl;
+#endif	
+	    goto bad_packet;
+	  }
+		
+	  // if we got this far, we got the packet ok, so send ACK
+	  m_pl->putbyte(dle);
+	  m_pl->putbyte(pid_ack_byte);
+	  m_pl->putbyte(2);
+	  m_pl->putbyte(id);
+	  m_pl->putbyte(0); // msb of 16 bit id must be 0, since all ids are only one byte... 
+	  uint8 ack_cksum;
+	  ack_cksum = 256 - (pid_ack_byte + 2 + id);
+	  if (ack_cksum == dle) {
+	    m_pl->putbyte(dle);
+	  }
+	  m_pl->putbyte(ack_cksum);
+	  m_pl->putbyte(dle);
+	  m_pl->putbyte(etx);
+	
+	  // should check that we recognize the id of the packet we just received....
+	  // *** fill in later ***
+	  return (packet_id) id; 
+		
+	bad_packet:
+#ifdef DBUG
+	  cerr << "link_layer::get_packet -- sending NAK" << endl;
+#endif
+	  // send NAK and loop again
+	  m_pl->putbyte(dle);
+	  m_pl->putbyte(pid_nack_byte);
+	  m_pl->putbyte(2);
+	  m_pl->putbyte(id); // what if we didn't get the id right?
+	  m_pl->putbyte(0);
+	  uint8 nack_cksum = 256 - (pid_nack_byte + 2 + id);
+	  if (nack_cksum == dle) {
+	    m_pl->putbyte(dle);
+	  }
+	  m_pl->putbyte(nack_cksum);
+	  m_pl->putbyte(dle);
+	  m_pl->putbyte(etx);
+
+	}
+      } // try
+      catch (not_possible &ex) {
+	throw;
+      }
+      catch (timeout &ex) {
+	throw;
+      }
+      return (packet_id) 0;
+    }
+
+  /////////////////////
+
+  void
+    link_layer::put_packet(packet_id id, uint8 *data, uint8 sz) throw (not_possible, timeout)
+    {
+      if (!m_init) {
+	throw not_possible("The garmin link layer is not initialized");
+      }
+
+      try {
+		
+	int curr_try = 0;
+	while (true) {
+	  curr_try++;
+	  if (curr_try > m_retries) {
+	    throw not_possible("Too many retries while sending packet");
+	  }
+			
+	  // try to send packet...			
+	  // put packet header
+	  m_pl->putbyte(dle);
+	  m_pl->putbyte((uint8) id);
+	  if (sz == dle) {
+	    m_pl->putbyte(dle);
+	  }
+	  m_pl->putbyte(sz);
+		
+	  uint8 cksum = id + sz;
+		
+	  // put data
+	  for (uint8 i = 0; i < sz; i++) {
+	    if (data[i] == dle) {
+	      m_pl->putbyte(dle);
+	    }
+	    m_pl->putbyte(data[i]);
+	    cksum += data[i];
+	  }
+		
+	  cksum = 256 - cksum;
+		
+	  // trailer
+	  m_pl->putbyte(cksum);
+	  if (cksum == dle) {
+	    m_pl->putbyte(dle);
+	  }
+	  m_pl->putbyte(dle);
+	  m_pl->putbyte(etx);
+		
+	  // wait for ack.
+	  // assume all packets are delivered in order, and that an ack/nak follows each 
+	  // packet received by the gps.  i.e. next incoming packet is our ACK or NACK.
+	  uint8 rcv_id;
+	  int bytes_scanned = 0;
+	  while (true) {
+	    if (bytes_scanned > max_random_bytes) {
+	      throw not_possible("Too many random bytes encountered while waiting for ack packet");
+	    }
+	    rcv_id = m_pl->getbyte();
+	    bytes_scanned++;
+	    if (rcv_id == dle) {
+	      rcv_id = m_pl->getbyte();
+	      bytes_scanned++;
+	      if (rcv_id == dle) {
+		continue;
+	      }
+	      if (rcv_id == etx) {
+		continue;
+	      } 
+	      break;
+	    }
+				// should check for a timeout here, in case of garbage data stream...
+	  }
+		
+	  uint8 rcv_sz = m_pl->getbyte();
+	  if (rcv_sz == dle) {
+	    rcv_sz = m_pl->getbyte();
+	    if (rcv_sz != dle) {
+#ifdef DBUG
+	      cerr << "link_layer::put_packet -- missing dle stuffing in reply packet size" << endl;
+#endif
+	      goto bad_packet;
+	    }
+	  }
+			
+		
+	  uint8 rcv_cksum;
+	  rcv_cksum = rcv_id + rcv_sz;
+	
+	  for (uint8 i = 0; i < rcv_sz; i++) {
+	    uint8 b = m_pl->getbyte();
+	    if (b == dle) {
+	      b = m_pl->getbyte();
+	      if (b != dle) {
+#ifdef DBUG
+		cerr << "link_layer::put_packet -- missing dle stuffing in reply packet data" << endl;
+#endif
+		goto bad_packet;			
+	      }
+	    }
+	    rcv_cksum += b;
+	    m_buf[i] = b;
+	  }
+		
+	  rcv_cksum = 256 - rcv_cksum;
+	  uint8 b;
+	  b = m_pl->getbyte();
+	  if (b == dle) {
+	    b = m_pl->getbyte();
+	    if (b != dle) {
+#ifdef DBUG
+	      cerr << "link_layer::put_packet -- missing dle stuffing in reply packet cksum" << endl;
+#endif
+	      goto bad_packet;
+	    }
+	  }
+	  if (b != rcv_cksum) {
+#ifdef DBUG
+	    cerr << "link_layer::put_packet -- bad cksum in reply packet" << endl;
+#endif
+	    goto bad_packet;
+	  }
+	  uint8 b1, b2;
+	  b1 = m_pl->getbyte();
+	  b2 = m_pl->getbyte();			
+	  if (b1 != dle || b2 != etx) {
+#ifdef DBUG
+	    cerr << "link_layer::put_packet -- bad packet framing in reply packet" << endl;
+	    cerr << "link_layer::put_packet -- id is " << rcv_id << endl;
+	    cerr << "link_layer::put_packet -- sz is " << rcv_sz << endl;
+	    cerr << "link_layer::put_packet -- data is: ";
+	    for (int i = 0; i < rcv_sz; i++) {
+	      cerr << m_buf[i] << " ";
+	    }
+	    cerr << endl;
+	    cerr << "link_layer::put_packet -- cksum is " << rcv_cksum << endl;
+	    cerr << "link_layer::put_packet -- dle byte is " << b1 << endl;
+	    cerr << "link_layer::put_packet -- etx byte is " << b2 << endl;
+#endif	
+	    goto bad_packet;
+	  }
+	  if (rcv_id == pid_nack_byte || rcv_id == pid_ack_byte) {
+				// check packet size and data
+	    if (rcv_sz != 2) {
+#ifdef DBUG
+	      cerr << "link_layer::put_packet -- ack/nack packet has bad size" << endl;
+#endif
+	      goto bad_packet;
+	    }
+	    if (m_buf[0] != (uint8) id) {
+	      // this ack/nack is not for what we just transmitted, resend our packet.
+#ifdef DBUG
+	      cerr << "link_layer::put_packet -- ack/nack packet is for some other packet id" << endl;
+#endif
+	      continue;
+	    }
+	    if (rcv_id == pid_ack_byte) {
+	      break;
+	    }
+	    if (rcv_id == pid_nack_byte) {
+#ifdef DBUG
+	      cerr << "link_layer::put_packet -- got nack, retransmitting" << endl;
+#endif
+	      continue; // retransmit...
+	    }
+	  }
+	  else {
+				// not an ack or nack reply, send our packet again...
+#ifdef DBUG
+	    cerr << "link_layer::put_packet -- got some packet besides ack/nack (" 
+		 << (unsigned int) rcv_id << "), retransmitting" << endl;
+	    /*	if (rcv_id == 10) {
+		sint16 *buf16 = (sint16 *) m_buf;
+		cout << "cmnd == " << buf16[0] << endl;
+		} */
+#endif
+	    continue;
+	  }
+			
+	bad_packet:
+	  // send NACK for bad reply packet; the garmin 12XL seems to implement this, the 
+	  // garmin spec is not clear to me.
+	  m_pl->putbyte(dle);
+	  m_pl->putbyte(pid_nack_byte);
+	  m_pl->putbyte(2);
+	  m_pl->putbyte(rcv_id);
+	  m_pl->putbyte(0); 
+	  uint8 nack_cksum = 256 - (pid_nack_byte + 2 + id);
+	  if (nack_cksum == dle) {
+	    m_pl->putbyte(dle);
+	  }
+	  m_pl->putbyte(nack_cksum); 
+	  m_pl->putbyte(dle);
+	  m_pl->putbyte(etx);
+			
+	  // loop again to retransmit original packet
+	} // while
+      } // try
+      catch (not_possible) {
+	throw;
+      }
+      catch (timeout) {
+	throw;
+      }
+	
+    }
+
+  ///////////////////
+
+} // namespace

Added: packages/gpsdrive/branches/etch/src/garmin_link.h
===================================================================
--- packages/gpsdrive/branches/etch/src/garmin_link.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/garmin_link.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,65 @@
+// $Id: garmin_link.h,v 1.2 2003/04/28 15:10:03 ganter Exp $
+// garmin_link.h
+// Douglas S. J. De Couto
+// May 26, 1998
+
+// Copyright (C) 1998 Douglas S. J. De Couto
+// <decouto at lcs.mit.edu>
+//
+// 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.
+
+// Class for handling garmin link level protocol L000/1 for gps receivers
+// Based on information in ``Garmin GPS Interface Specification'' , from 
+// Garmin tech support, May 6 1998.  Handles handshaking, checksumming, 
+// and data escaping.
+
+#ifndef _garlink
+#define _garlink
+
+#include "garmin_phys.h"
+#include "garmin_packet.h"
+#include "garmin_types.h"
+
+namespace garmin {
+	
+class link_layer 
+{
+public:
+	
+	link_layer() : m_init(false) { }
+	link_layer(const link_layer &) : m_init(false) { }
+	
+	link_layer(physical_layer *pl, int retries = 3) 
+	: m_init(true), m_pl(pl), m_retries(retries) { }
+	
+	void init(physical_layer *pl, int retries = 5) 
+	{ m_init = true, m_pl = pl; m_retries = retries; }
+	
+	packet_id get_packet(uint8 *data, uint8 &sz) throw (not_possible, timeout);
+	// return the packet ID of the next available packet; packet
+	// payload goes into DATA, which must point to at least 255 bytes
+	// of storage.  The number of data bytes goes into SZ.
+	
+	void put_packet(packet_id id, uint8 *data, uint8 sz) throw (not_possible, timeout);
+	// send a packet.
+	
+private:
+	
+	bool m_init;
+	physical_layer *m_pl;
+	uint8 m_buf[256];
+	int m_retries;
+
+};
+
+} // namespace
+
+#endif // _garlink

Added: packages/gpsdrive/branches/etch/src/garmin_packet.h
===================================================================
--- packages/gpsdrive/branches/etch/src/garmin_packet.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/garmin_packet.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,71 @@
+// $Id: garmin_packet.h,v 1.2 2003/04/28 15:10:03 ganter Exp $
+// garmin_packet.h
+// Douglas S. J. De Couto
+// May 26, 1998
+
+// Copyright (C) 1998 Douglas S. J. De Couto
+// <decouto at lcs.mit.edu>
+//
+// 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.
+
+// garmin packet IDs
+
+#ifndef _garpack
+#define _garpack
+
+namespace garmin {
+
+enum packet_id {
+	// my temporary pid
+	pid_no_packet = 0,
+
+	// protocol L000
+	pid_ack_byte = 6,
+	pid_nack_byte = 21,
+	pid_protocol_array = 253,
+	pid_product_rqst = 254,
+	pid_product_data = 255,
+	
+	// protocol L001
+	pid_command_data = 10,
+	pid_xfer_cmplt = 12,
+	pid_date_time_data = 14,
+	pid_position_data = 17,
+	pid_prx_wpt_data = 19,
+	pid_records = 27,
+	pid_rte_hdr = 29,
+	pid_rte_wpt_data = 30,
+	pid_almanac_data = 31,
+	pid_trk_data = 34,
+	pid_wpt_data = 35,
+	pid_pvt_data = 51,
+	pid_rte_link_data = 98,
+	pid_trk_hdr = 99,
+	pid_display_data = 69,
+	
+	// protocol L002
+	// Note: some packet ids are duplicated from L002, and some
+	// ids are the same name but different values from L001.
+	pid_almanac_data002 = 4,
+	pid_command_data002 = 10,
+	pid_xfer_cmplt002 = 12,
+	pid_date_time_data002 = 14,
+	pid_position_data002 = 17,
+	pid_records002 = 35,
+	pid_rte_hdr002 = 37,
+	pid_rte_wpt_data002 = 39,
+	pid_wpt_data002 = 43
+	
+};
+
+} // namespace
+
+#endif // _garpack

Added: packages/gpsdrive/branches/etch/src/garmin_phys.h
===================================================================
--- packages/gpsdrive/branches/etch/src/garmin_phys.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/garmin_phys.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,38 @@
+// $Id: garmin_phys.h,v 1.2 2003/04/28 15:10:03 ganter Exp $
+// garmin_phys.h
+// Douglas S. J. De Couto
+// May 26, 1998
+
+// Copyright (C) 1998 Douglas S. J. De Couto
+// <decouto at lcs.mit.edu>
+//
+// 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.
+
+#ifndef _garphys
+#define _garphys
+
+#include "garmin_types.h"
+#include "garmin_error.h"
+
+// interface to serial ports or whatever for garmin data transfer
+
+namespace garmin {
+
+class physical_layer 
+{
+public:
+	virtual void putbyte(const uint8 c) throw (not_possible, timeout) = 0;
+	virtual uint8 getbyte(void) throw (not_possible, timeout) = 0;
+};
+
+} // namespace
+
+#endif // _garphys

Added: packages/gpsdrive/branches/etch/src/garmin_serial.h
===================================================================
--- packages/gpsdrive/branches/etch/src/garmin_serial.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/garmin_serial.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,43 @@
+// $Id: garmin_serial.h,v 1.2 2003/04/28 15:10:03 ganter Exp $
+// garmin_serial.h
+// Douglas S. J. De Couto
+// September 7, 1998
+
+// Copyright (C) 1998 Douglas S. J. De Couto
+// <decouto at lcs.mit.edu>
+//
+// 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.
+
+#ifndef _garserh
+#define _garserh
+
+#include "garmin_phys.h"
+#include "serial.h"
+
+// adapter class to use serial port object for garmin physical layer
+
+class garmin_serial : public garmin::physical_layer 
+{
+public:	
+	garmin_serial() : m_init(false) { }
+	garmin_serial(garmin_serial &) : m_init(false) { }
+	garmin_serial(serial_port *s) : m_init(true), m_port(s) { }
+	void init(serial_port *s) { m_port = s; m_init = true; }
+
+	void putbyte(const garmin::uint8 c) throw (garmin::not_possible);
+	garmin::uint8 getbyte(void) throw (garmin::not_possible, garmin::timeout);
+
+private:
+	bool m_init;
+	serial_port *m_port;
+};
+
+#endif // _garserh

Added: packages/gpsdrive/branches/etch/src/garmin_serial_unix.cpp
===================================================================
--- packages/gpsdrive/branches/etch/src/garmin_serial_unix.cpp	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/garmin_serial_unix.cpp	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,180 @@
+// $Id: garmin_serial_unix.cpp,v 1.4 2004/01/15 22:02:40 ganter Exp $
+// garmin_serial_unix.cp
+// Douglas S. J. De Couto
+// February 13, 2000
+
+// Copyright (C) 2000 Douglas S. J. De Couto
+// <decouto at lcs.mit.edu>
+//
+// 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.
+
+#include "garmin_serial_unix.h"
+
+#include <sys/time.h>
+#include <sys/types.h>
+#include <fcntl.h>
+#include <unistd.h>
+#include <errno.h>
+#include <string.h>
+
+garmin_serial::garmin_serial(std::string port_dev, int timeout) 
+  : m_init(false), m_port_dev(port_dev), m_timeout(timeout)
+{
+  try {
+    init(m_port_dev, m_timeout);
+  }
+  catch (garmin::not_possible &ex) {
+    // fail silently
+  }
+}
+
+std::string
+garmin_serial::m_build_err_string(char *msg) 
+{
+  std::string s(msg);
+  s += m_port_dev;
+  s += ": ";
+  s += strerror(errno);
+  return s;
+}
+
+void
+garmin_serial::init(std::string port_dev, int timeout) throw (garmin::not_possible)
+{
+  if (m_init) {
+    int err = close(m_fd);
+    if (err == -1) 
+      throw garmin::not_possible(m_build_err_string("Unable to close current serial port device "));
+    m_init = false;
+  }
+  m_timeout = timeout;
+  m_port_dev = port_dev;
+#if defined (__OpenBSD__)
+  m_fd = open(m_port_dev.c_str(), O_RDWR | O_NONBLOCK);
+#else
+  m_fd = open(m_port_dev.c_str(), O_RDWR | O_NOCTTY);
+#endif
+  if (m_fd == -1)
+    throw garmin::not_possible(m_build_err_string("Unable to open serial port device "));
+
+  // set proper speed, parity, char size
+  int err;
+  err = tcgetattr(m_fd, &m_old_options);
+  if (err == -1)
+    throw garmin::not_possible(m_build_err_string("Unable to get old device options for "));
+
+  struct termios options;
+  memset(&options, 0, sizeof(options));
+  
+  options.c_cflag |= (CLOCAL | CREAD); // enable local mode, reading characters
+  
+  // speed, 9600 bps for garmin physical layer
+  err = cfsetispeed(&options, B9600);
+  if (err == -1)
+    throw garmin::not_possible(m_build_err_string("Unable to set input speed to 9600 bps for "));
+
+  err = cfsetospeed(&options, B9600);
+  if (err == -1)
+    throw garmin::not_possible(m_build_err_string("Unable to set output speed to 9600 bps for "));
+  
+  // parity -- none
+  options.c_cflag &= ~PARENB;
+  // char size -- 8 bits
+  options.c_cflag &= ~CSIZE;
+  options.c_cflag |= CS8;
+  
+  // set one stop bit
+  options.c_cflag &= ~CSTOPB; // NOT two stop bits
+  
+  // set the new options
+  err = tcsetattr(m_fd, TCSADRAIN, &options);
+  if (err == -1)
+    throw garmin::not_possible(m_build_err_string("Unable to set device options for "));
+
+  m_init = true;  
+}
+
+void 
+garmin_serial::putbyte(const garmin::uint8 c) throw (garmin::not_possible)
+{
+  if (!m_init) {
+    throw garmin::not_possible("The serial port is not initialized");
+  }
+
+  int err = write(m_fd, &c, 1);
+  if (err == -1) 
+    throw garmin::not_possible(m_build_err_string("Unable to write to "));
+  if (err != 1)
+    throw garmin::not_possible(m_build_err_string("Couldn't write enough bytes to ") + m_port_dev);      
+}
+
+
+
+garmin::uint8 
+garmin_serial::getbyte(void) throw (garmin::not_possible, garmin::timeout)
+{
+  if (!m_init) {
+    throw garmin::not_possible("The serial port is not initialized");
+  }
+
+  fd_set the_set;
+  struct timeval tv;
+  
+  // set up the data for the read select call
+  FD_ZERO(&the_set);
+  FD_SET(m_fd, &the_set);
+  
+  struct timeval *tvp = &tv;
+  if (m_timeout == 0) {
+    tvp = 0; // so select() will block
+  }
+  else { // fill in the timeval struct
+    int usecs = m_timeout * 1000;
+    tv.tv_sec = usecs / 1000000;
+    tv.tv_usec = usecs % 1000000;
+  }
+
+  int err = select(m_fd + 1, &the_set, 0, 0, tvp); 
+  if (err == -1)
+    throw garmin::not_possible(m_build_err_string("Error waiting for data on "));
+
+  if (!FD_ISSET(m_fd, &the_set))
+    throw garmin::timeout(std::string("Timeout waiting for data on ") + m_port_dev);
+
+  garmin::uint8 b;
+  err = read(m_fd, &b, 1);
+  if (err == -1) 
+    throw garmin::not_possible(m_build_err_string("Unable to read from "));    
+  if (err != 1)
+    throw garmin::not_possible(std::string("Couldn't read enough bytes from ") + m_port_dev);    
+
+  return b;
+}
+
+
+garmin_serial::~garmin_serial()
+{
+  if (m_init) {
+    // reset port to how we found it
+    int err = tcsetattr(m_fd, TCSADRAIN, &m_old_options);
+    if (err == -1) {
+      // too bad, what are we going to do?
+    }
+    err = close(m_fd);
+    if (err == -1) {
+      // punt
+    }
+  }
+}

Added: packages/gpsdrive/branches/etch/src/garmin_serial_unix.h
===================================================================
--- packages/gpsdrive/branches/etch/src/garmin_serial_unix.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/garmin_serial_unix.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,60 @@
+// $Id: garmin_serial_unix.h,v 1.2 2003/04/28 15:10:03 ganter Exp $
+// garmin_serial_unix.h
+// Douglas S. J. De Couto
+// Feburary 13, 2000
+// adapted from garmin_serial.h
+
+// Copyright (C) 2000 Douglas S. J. De Couto
+// <decouto at lcs.mit.edu>
+//
+// 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.
+
+#ifndef _garserunixh
+#define _garserunixh
+
+#include <string>
+
+#include <termios.h>
+
+#include "garmin_phys.h"
+
+// adapter class to use unix serial port for garmin physical layer
+
+class garmin_serial : public garmin::physical_layer 
+{
+public:	
+  garmin_serial() : m_init(false) { }
+  // can't copy serial ports
+  garmin_serial(garmin_serial &) : m_init(false) { }
+  // port_dev: device name, e.g. /dev/stty0; timeout in millisecs
+  // 0 timeout means blobk indefinitely
+  // this constructor may fail silently, should use init() instead
+  garmin_serial(std::string port_dev, int timeout = 25);
+  // can init more than once
+  void init(std::string port_dev, int timeout = 25) throw (garmin::not_possible);
+
+  void putbyte(const garmin::uint8 c) throw (garmin::not_possible);
+  garmin::uint8 getbyte(void) throw (garmin::not_possible, garmin::timeout);
+
+  virtual ~garmin_serial();
+
+private:
+  std::string m_build_err_string(char * msg);
+
+  struct termios m_old_options;
+  bool m_init; // true iff succesfully initialized port
+  std::string m_port_dev; // name of serial port device
+  int m_fd; // serial port file descriptor
+  int m_timeout; // timeout in milisecs
+
+};
+
+#endif // _garserunixh

Added: packages/gpsdrive/branches/etch/src/garmin_types.h
===================================================================
--- packages/gpsdrive/branches/etch/src/garmin_types.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/garmin_types.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,290 @@
+// -*- mode: c++; c-basic-offset: 8; -*-
+// $Id: garmin_types.h,v 1.4 2004/01/15 22:02:40 ganter Exp $
+// garmin_types.h
+// Douglas S. J. De Couto
+// May 26, 1998
+
+// Copyright (C) 1998 Douglas S. J. De Couto
+// <decouto at lcs.mit.edu>
+//
+// 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.
+
+#ifndef _gartype
+#define _gartype
+
+#include <string>
+#include <vector>
+#include <map>
+#include <ctime>
+
+namespace garmin {
+
+#if linux // yeah at least this will work on my i386
+#include <linux/types.h>
+#endif
+
+#if macintosh
+#include <MacTypes.h>
+
+typedef UInt8 uint8; // garmin char
+typedef SInt8 sint8;
+
+typedef UInt16 uint16; // garmin int
+typedef SInt16 sint16;
+
+typedef UInt32 uint32; // garmin long
+typedef SInt32 sint32;
+
+typedef Float32 float32; // garmin float
+typedef Float64 double64; // garmin double
+
+#else
+
+typedef unsigned char uint8; // garmin char
+typedef char sint8;
+
+typedef unsigned short uint16; // garmin int
+typedef short sint16;
+
+typedef unsigned long uint32; // garmin long
+typedef long sint32;
+
+typedef float float32; // garmin float
+typedef double double64; // garmin double
+
+#endif
+
+// position in semicircles; 2^31 semicircles == 180 degrees.
+// north, east are positive; south, west negative.
+class semicircle_type {
+public:
+	sint32 lat;
+	sint32 lon;
+};
+
+// position in radians, sign conventions as above.
+struct radian_type {
+	double64 lat; 
+	double64 lon;
+};
+
+// for convenience
+struct degree_type {
+	double64 lat;
+	double64 lon;
+};
+
+
+typedef std::vector<uint16> protocol_datatypes_t;
+struct product_data_type {
+	sint16 product_id;
+	sint16 software_version;
+	std::string product_description;
+	std::map<uint32,protocol_datatypes_t> protocol_info; 
+
+	bool has_protocol(const unsigned char tag, uint16 id) { return protocol_info.find( (id << 8) | tag) != protocol_info.end(); }  
+	uint16 protocol_datatype(const unsigned tag, uint16 id, uint16 idx) { return (protocol_info[(id << 8)|tag])[idx]; }
+	
+};
+
+enum symbol_type {
+	/*---------------------------------------------------------------
+	  Symbols for marine (group 0...0-8191...bits 15-13=000).
+	  ---------------------------------------------------------------*/
+	sym_anchor = 0, /* white anchor symbol */
+	sym_bell = 1, /* white bell symbol */
+	sym_diamond_grn = 2, /* green diamond symbol */
+	sym_diamond_red = 3, /* red diamond symbol */
+	sym_dive1 = 4, /* diver down flag 1 */
+	sym_dive2 = 5, /* diver down flag 2 */
+	sym_dollar = 6, /* white dollar symbol */ 
+	sym_fish = 7, /* white fish symbol */ 
+	sym_fuel = 8, /* white fuel symbol */
+	sym_horn = 9, /* white horn symbol */
+	sym_house = 10, /* white house symbol */
+	sym_knife = 11, /* white knife & fork symbol */
+	sym_light = 12, /* white light symbol */
+	sym_mug = 13, /* white mug symbol */
+	sym_skull = 14, /* white skull and crossbones symbol*/
+	sym_square_grn = 15, /* green square symbol */
+	sym_square_red = 16, /* red square symbol */
+	sym_wbuoy = 17, /* white buoy waypoint symbol */
+	sym_wpt_dot = 18, /* waypoint dot */
+	sym_wreck = 19, /* white wreck symbol */
+	sym_null = 20, /* null symbol (transparent) */
+	sym_mob = 21, /* man overboard symbol */
+	/*------------------------------------------------------
+	  marine navaid symbols
+	  ------------------------------------------------------*/
+	sym_buoy_ambr = 22, /* amber map buoy symbol */
+	sym_buoy_blck = 23, /* black map buoy symbol */
+	sym_buoy_blue = 24, /* blue map buoy symbol */
+	sym_buoy_grn = 25, /* green map buoy symbol */
+	sym_buoy_grn_red = 26, /* green/red map buoy symbol */
+	sym_buoy_grn_wht = 27, /* green/white map buoy symbol */
+	sym_buoy_orng = 28, /* orange map buoy symbol */
+	sym_buoy_red = 29, /* red map buoy symbol */
+	sym_buoy_red_grn = 30, /* red/green map buoy symbol */
+	sym_buoy_red_wht = 31, /* red/white map buoy symbol */
+	sym_buoy_violet = 32, /* violet map buoy symbol */
+	sym_buoy_wht = 33, /* white map buoy symbol */ 
+	sym_buoy_wht_grn = 34, /* white/green map buoy symbol */
+	sym_buoy_wht_red = 35, /* white/red map buoy symbol */ 
+	sym_dot = 36, /* white dot symbol */
+	sym_rbcn = 37, /* radio beacon symbol */
+	/*------------------------------------------------------ 
+	  leave space for more navaids (up to 128 total)
+	  ------------------------------------------------------*/
+	sym_boat_ramp = 150, /* boat ramp symbol */
+	sym_camp = 151, /* campground symbol */
+	sym_restrooms = 152, /* restrooms symbol */
+	sym_showers = 153, /* shower symbol */
+	sym_drinking_wtr = 154, /* drinking water symbol */
+	sym_phone = 155, /* telephone symbol */
+	sym_1st_aid = 156, /* first aid symbol */
+	sym_info = 157, /* information symbol */
+	sym_parking = 158, /* parking symbol */
+	sym_park = 159, /* park symbol */
+	sym_picnic = 160, /* picnic symbol */
+	sym_scenic = 161, /* scenic area symbol */
+	sym_skiing = 162, /* skiing symbol */
+	sym_swimming = 163, /* swimming symbol */
+	sym_dam = 164, /* dam symbol */
+	sym_controlled = 165, /* controlled area symbol */
+	sym_danger = 166, /* danger symbol */
+	sym_restricted = 167, /* restricted area symbol */
+	sym_null_2 = 168, /* null symbol */
+	sym_ball = 169, /* ball symbol */
+	sym_car = 170, /* car symbol */
+	sym_deer = 171, /* deer symbol */
+	sym_shpng_cart = 172, /* shopping cart symbol */
+	sym_lodging = 173, /* lodging symbol */
+	sym_mine = 174, /* mine symbol */
+	sym_trail_head = 175, /* trail head symbol */
+	sym_truck_stop = 176, /* truck stop symbol */
+	sym_user_exit = 177, /* user exit symbol */ 
+	sym_flag = 178, /* flag symbol */
+	sym_circle_x = 179, /* circle with x in the center */
+	/*---------------------------------------------------------------
+	  Symbols for land (group 1...8192-16383...bits 15-13=001).
+	  ---------------------------------------------------------------*/
+	sym_is_hwy = 8192, /* interstate hwy symbol */
+	sym_us_hwy = 8193, /* us hwy symbol */
+	sym_st_hwy = 8194, /* state hwy symbol */
+	sym_mi_mrkr = 8195, /* mile marker symbol */
+	sym_trcbck = 8196, /* TracBack (feet) symbol */
+	sym_golf = 8197, /* golf symbol */
+	sym_sml_cty = 8198, /* small city symbol */
+	sym_med_cty = 8199, /* medium city symbol */
+	sym_lrg_cty = 8200, /* large city symbol */
+	sym_freeway = 8201, /* intl freeway hwy symbol */
+	sym_ntl_hwy = 8202, /* intl national hwy symbol */
+	sym_cap_cty = 8203, /* capitol city symbol (star) */
+	sym_amuse_pk = 8204, /* amusement park symbol */
+	sym_bowling = 8205, /* bowling symbol */
+	sym_car_rental = 8206, /* car rental symbol */
+	sym_car_repair = 8207, /* car repair symbol */
+	sym_fastfood = 8208, /* fast food symbol */
+	sym_fitness = 8209, /* fitness symbol */
+	sym_movie = 8210, /* movie symbol */
+	sym_museum = 8211, /* museum symbol */
+	sym_pharmacy = 8212, /* pharmacy symbol */
+	sym_pizza = 8213, /* pizza symbol */
+	sym_post_ofc = 8214, /* post office symbol */ 
+	sym_rv_park = 8215, /* RV park symbol */
+	sym_school = 8216, /* school symbol */
+	sym_stadium = 8217, /* stadium symbol */
+	sym_store = 8218, /* dept. store symbol */
+	sym_zoo = 8219, /* zoo symbol */
+	sym_gas_plus = 8220, /* convenience store symbol */
+	sym_faces = 8221, /* live theater symbol */
+	sym_ramp_int = 8222, /* ramp intersection symbol */
+	sym_st_int = 8223, /* street intersection symbol */
+	sym_weigh_sttn = 8226, /* inspection/weigh station symbol */
+	sym_toll_booth = 8227, /* toll booth symbol */
+	sym_elev_pt = 8228, /* elevation point symbol */
+	sym_ex_no_srvc = 8229, /* exit without services symbol */
+	sym_geo_place_mm = 8230, /* Geographic place name, man-made */
+	sym_geo_place_wtr = 8231, /* Geographic place name, water */
+	sym_geo_place_lnd = 8232, /* Geographic place name, land */
+	sym_bridge = 8233, /* bridge symbol */
+	sym_building = 8234, /* building symbol */
+	sym_cemetery = 8235, /* cemetery symbol */
+	sym_church = 8236, /* church symbol */
+	sym_civil = 8237, /* civil location symbol */
+	sym_crossing = 8238, /* crossing symbol */
+	sym_hist_town = 8239, /* historical town symbol */
+	sym_levee = 8240, /* levee symbol */
+	sym_military = 8241, /* military location symbol */
+	sym_oil_field = 8242, /* oil field symbol */
+	sym_tunnel = 8243, /* tunnel symbol */
+	sym_beach = 8244, /* beach symbol */
+	sym_forest = 8245, /* forest symbol */
+	sym_summit = 8246, /* summit symbol */
+	sym_lrg_ramp_int = 8247, /* large ramp intersection symbol */
+	sym_lrg_ex_no_srvc = 8248, /* large exit without services smbl */
+	sym_badge = 8249, /* police/official badge symbol */
+	sym_cards = 8250, /* gambling/casino symbol */
+	sym_snowski = 8251, /* snow skiing symbol */
+	sym_iceskate = 8252, /* ice skating symbol */
+	sym_wrecker = 8253, /* tow truck (wrecker) symbol */
+	sym_border = 8254, /* border crossing (port of entry) */
+	/*---------------------------------------------------------------
+	  Symbols for aviation (group 2...16383-24575...bits 15-13=010).
+	  ---------------------------------------------------------------*/
+	sym_airport = 16384, /* airport symbol */
+	sym_int = 16385, /* intersection symbol */
+	sym_ndb = 16386, /* non-directional beacon symbol */
+	sym_vor = 16387, /* VHF omni-range symbol */
+	sym_heliport = 16388, /* heliport symbol */
+	sym_private = 16389, /* private field symbol */
+	sym_soft_fld = 16390, /* soft field symbol */
+	sym_tall_tower = 16391, /* tall tower symbol */
+	sym_short_tower = 16392, /* short tower symbol */
+	sym_glider = 16393, /* glider symbol */
+	sym_ultralight = 16394, /* ultralight symbol */
+	sym_parachute = 16395, /* parachute symbol */
+	sym_vortac = 16396, /* VOR/TACAN symbol */
+	sym_vordme = 16397, /* VOR-DME symbol */
+	sym_faf = 16398, /* first approach fix */
+	sym_lom = 16399, /* localizer outer marker */
+	sym_map = 16400, /* missed approach point */
+	sym_tacan = 16401, /* TACAN symbol */
+	sym_seaplane = 16402, /* Seaplane Base */
+};
+
+
+// each product has its own specific, more extensive waypoint type.  
+// this type is the lowest common denominator of those types, except 
+// for the D105 and D160 waypoint types.
+struct basic_waypt_type {
+	std::string id;
+	semicircle_type pos;
+	std::string comment;
+	float altitude;
+	symbol_type symbol;
+};
+
+struct track_point_type {
+	semicircle_type pos;
+	std::time_t time;
+	bool new_track;
+};
+
+struct proximity_waypt_type {
+	basic_waypt_type waypt;
+	float32 dist; // meters
+};
+
+
+} // namespace
+
+#endif // _gartype

Added: packages/gpsdrive/branches/etch/src/garmin_util.cpp
===================================================================
--- packages/gpsdrive/branches/etch/src/garmin_util.cpp	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/garmin_util.cpp	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,210 @@
+// -*- mode: c++; c-basic-offset: 8; -*-
+// $Id: garmin_util.cpp,v 1.5 2004/01/15 22:02:40 ganter Exp $
+// garmin_util.cp
+// Douglas S. J. De Couto
+// May 26, 1998
+
+// Copyright (C) 1998 Douglas S. J. De Couto
+// <decouto at lcs.mit.edu>
+//
+// 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.
+
+#include "garmin_types.h"
+#include "garmin_util.h"
+#include <cmath>
+
+#include <iostream>
+
+#if macintosh
+#include <limits>
+namespace garmin {
+static const garmin::double64 pi = M_PI; // ???
+static const garmin::double64 maxval_sint32 = (garmin::double64) std::numeric_limits<garmin::sint32>::max();
+}
+#else
+#include <limits.h> // g++ has no <limits> header?
+namespace garmin {
+static const garmin::double64 pi = M_PI;
+static const garmin::double64 maxval_sint32 = INT_MAX;
+}
+#endif
+
+namespace garmin {
+
+#ifdef DO_BYTE_SWAP // big-endian, garmin wants little-endian
+
+uint16
+garmin2host16(uint16 x)
+{ return host2garmin16(x); }
+
+uint16
+host2garmin16(uint16 x)
+{
+	union {
+		struct {
+			uint8 lo;
+			uint8 hi;
+		} s;
+		uint16 i;
+	} u;
+	
+	u.i = x;
+	uint8 t = u.s.lo;
+	u.s.lo = u.s.hi;
+	u.s.hi = t;
+	
+	return u.i;
+}
+
+uint32
+garmin2host32(uint32 x)
+{ return host2garmin32(x); }
+
+uint32
+host2garmin32(uint32 x)
+{
+	union {
+		struct {
+			uint16 lo;
+			uint16 hi;
+		} s;
+		uint32 i;
+	} u;
+	
+	u.i = x;
+	uint16 t = u.s.lo;
+	u.s.lo = host2garmin16(u.s.hi);
+	u.s.hi = host2garmin16(t);
+	
+	return u.i;
+}
+
+double64
+garmin2host64(double64 x)
+{ return host2garmin64(x); }
+
+double64
+host2garmin64(double64 x)
+{
+	union {
+		struct {
+			uint32 lo;
+			uint32 hi;
+		} s;
+		double64 d;
+	} u;
+	
+	u.d = x;
+	uint32 t = u.s.lo;
+	u.s.lo = host2garmin32(u.s.hi);
+	u.s.hi = host2garmin32(t);
+	
+	return u.d;
+}
+
+#else
+
+uint16
+garmin2host16(uint16 x) { return x; }
+
+uint16
+host2garmin16(uint16 x) { return x; }
+
+uint32
+garmin2host32(uint32 x) { return x; }
+
+uint32
+host2garmin32(uint32 x) { return x; }
+
+double64
+host2garmin64(double64 x) { return x; }
+
+double64
+garmin2host64(double64 x) { return x; }
+
+#endif  // DO_BYTE_SWAP
+
+////////////////
+
+radian_type
+semicircle2radian(semicircle_type pos)
+{
+	radian_type d;
+	d.lat = pi * (pos.lat / maxval_sint32);
+	d.lon = pi * (pos.lon / maxval_sint32);
+
+	return d;
+}
+
+
+degree_type
+semicircle2degree(semicircle_type pos)
+{
+	radian_type d = semicircle2radian(pos);
+	degree_type d2;
+	d2.lat = rad2deg(d.lat);
+	d2.lon = rad2deg(d.lon);
+	return d2;
+}
+
+semicircle_type
+radian2semicircle(radian_type pos)
+{
+	semicircle_type s;
+	s.lat = (sint32) ((pos.lat / pi) * maxval_sint32);
+	s.lon = (sint32) ((pos.lon / pi) * maxval_sint32);
+
+	return s;
+}
+
+semicircle_type
+degree2semicircle(degree_type pos)
+{
+	radian_type d;
+	d.lat = deg2rad(pos.lat);
+	d.lon = deg2rad(pos.lon);
+	return radian2semicircle(d);
+}
+
+degree_type
+radian2degree(radian_type pos)
+{
+	degree_type p2;
+	p2.lat = rad2deg(pos.lat);
+	p2.lon = rad2deg(pos.lon);
+	return p2;
+}
+
+radian_type
+degree2radian(degree_type pos)
+{
+	radian_type p2;
+	p2.lat = rad2deg(pos.lat);
+	p2.lon = rad2deg(pos.lon);
+	return p2;
+}
+
+////////////////
+
+double64
+rad2deg(double64 r)
+{
+	return r * 180 / pi;
+}
+
+double64
+deg2rad(double64 d)
+{
+	return d * pi / 180;
+}
+
+//////////////////
+} // namespace

Added: packages/gpsdrive/branches/etch/src/garmin_util.h
===================================================================
--- packages/gpsdrive/branches/etch/src/garmin_util.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/garmin_util.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,71 @@
+// $Id: garmin_util.h,v 1.2 2003/04/28 15:10:03 ganter Exp $
+// garmin_util.h
+// Douglas S. J. De Couto
+// May 26, 1998
+
+// Copyright (C) 1998 Douglas S. J. De Couto
+// <decouto at lcs.mit.edu>
+//
+// 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.
+
+#ifndef _garmutil
+#define _garmutil
+
+namespace garmin {
+
+// byte swap routines
+uint16
+host2garmin16(uint16 x);
+
+uint16
+garmin2host16(uint16 x);
+
+uint32
+host2garmin32(uint32 x);
+
+uint32
+garmin2host32(uint32 x);
+
+double64
+host2garmin64(double64 x);
+
+double64
+garmin2host64(double64 x);
+
+
+// position unit conversions
+radian_type
+semicircle2radian(semicircle_type pos);
+
+degree_type
+semicircle2degree(semicircle_type pos);
+
+semicircle_type
+radian2semicircle(radian_type pos);
+
+semicircle_type
+degree2semicircle(degree_type pos);
+
+degree_type
+radian2degree(radian_type pos);
+
+radian_type
+degree2radian(degree_type pos);
+
+double64
+rad2deg(double64 r);
+
+double64
+deg2rad(double64 d);
+
+} // namespace
+
+#endif // _garmutil

Added: packages/gpsdrive/branches/etch/src/geo-code
===================================================================
--- packages/gpsdrive/branches/etch/src/geo-code	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/geo-code	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,410 @@
+#!/bin/sh
+
+#
+#	geo-code: Convert a street address into a latitude/longitude
+#
+#	Requires: curl; gpsbabel; bash or ksh;
+#		  mysql (if using the gpsdrive.sql output option)
+#
+#	Donated to the public domain by Rick Richardson <rickr at mn.rr.com>
+#		http://home.mn.rr.com/richardsons/sw/geo-code
+#
+#	Use at your own risk.  Not suitable for any purpose.  Not legal tender.
+#
+#
+
+PROGNAME="$0"
+
+usage() {
+	cat <<EOF
+Usage:
+	`basename $PROGNAME` [options] address citystate_or_zip [country]
+
+		Convert (geocode) a street address into a latitude/longitude.
+
+	`basename $PROGNAME` [options] tele-phone-number
+
+		Convert (geocode) a phone number into a latitude/longitude.
+
+	In either case, the output can be formatted to any of the output
+	file types that gpsbabel supports, or directly imported into the
+	GpsDrive MySQL waypoint database.
+
+Requires:
+	curl		http://curl.haxx.se/
+	gpsbabel	http://gpsbabel.sourceforge.net/
+
+Options:
+	-o format	Output format, -o? for possibilities [$OUTFMT]
+			plus "gpsdrive.sql" for direct insertion into MySQL DB
+			plus "latlon" for just Lat<tab>Long.
+			plus "map" to display a map.
+	-n name		The waypoint name, e.g. Bob's House.  The default
+			is the street address.
+	-s		Output shortened names (a gpsbabel option)
+	-t type		The waypoint type, e.g. house, cache, bar [$CODETYPE]
+	-q		Quiet. Do not output address confirmation on stderr.
+	-S		Alias for -o gpsdrive.sql
+	-a		For SQL, delete existing record only if it matches
+			all fields.  Otherwise, delete it if it matches
+			just the name and the type. 
+	-D level	Debug level
+	-U		Retrieve latest version of this script
+
+Countries:
+	us, ca, fr, de, it, es, uk
+
+Examples:
+	\$ geo-code "123 AnyStreet" 12345 
+	123AnyStreet 42.81020 -73.95070 new
+
+	\$ geo-code -t house "123 AnyStreet" 12345 
+	123AnyStreet 42.81020 -73.95070 house
+
+	\$ geo-code -n "Bob's House" -t house "123 AnyStreet" 12345 
+	BobsHouse 42.81020 -73.95070 house
+
+	\$ geo-code -S -n "Bob" -t house "123 AnyStreet" 12345 
+	[waypoint is added to GpsDrive MySQL database]
+
+	\$ geo-code 901-555-1212 
+	123AnyStreet 42.81020 -73.95070 new
+
+See Also:
+	geo-nearest	http://home.mn.rr.com/richardsons/sw/geo-nearest
+	geo-pg		http://home.mn.rr.com/richardsons/sw/geo-pg
+EOF
+
+	exit 1
+}
+
+#
+#       Report an error and exit
+#
+error() {
+	echo "`basename $PROGNAME`: $1" >&2
+	exit 1
+}
+
+#
+#       Set default options, can be overriden on command line or in rc file
+#
+DEBUG=0
+OUTFMT=gpsdrive
+COUNTRY=us	# us, ca, fr, de, it,es, uk
+SQLUSER=gast	# For -o gpsdrive.sql
+SQLPASS=gast	# For -o gpsdrive.sql
+SQLDB=geoinfo	# For -o gpsdrive.sql
+CODETYPE=new
+UPDATEcodeURL=http://home.mn.rr.com/richardsons/sw/geo-code
+UPDATEcodeFILE=geo-code.new
+
+#
+#	Read RC file, if there is one
+#
+if [ -f $HOME/.georc ]; then
+	. $HOME/.georc
+fi
+
+#
+#       Process the options
+#
+ADDRESS=
+CSZ=
+MODE=babel
+SQL=0
+NAME=
+GURL=
+QUIET=0
+SQLMATCH=type_name
+unset OPTIND
+while getopts "an:o:qSs:t:D:Uh?" opt
+do
+	case $opt in
+	n)	NAME="$OPTARG";;
+	o)	OUTFMT="$OPTARG";;
+	s)	BABELFLAGS="$BABELFLAGS -s";;
+	S)	OUTFMT="gpsdrive.sql";;
+	t)	CODETYPE="$OPTARG";;
+	q)	QUIET=1;;
+	a)	SQLMATCH=all;;
+	D)	DEBUG="$OPTARG";;
+	U)	echo "Getting latest version of this script..."
+		curl -o$UPDATEcodeFILE "$UPDATEcodeURL"
+		echo "Latest version is in $UPDATEcodeFILE"
+		exit
+		;;
+	h|\?)	usage;;
+	esac
+done
+shift `expr $OPTIND - 1`
+
+case "$OUTFMT" in
+map)
+	MODE=map
+	;;
+latlon)
+	MODE=latlon
+	;;
+gpsdrive)
+	BABELFLAGS=-s
+	;;
+gpsdrive.sql)
+	BABELFLAGS=-s
+	OUTFMT=gpsdrive
+	MODE=sql
+	# DEBUG=1
+	;;
+\?)
+	gpsbabel -? | sed '1,/File Types/d'
+	echo	"	gpsdrive.sql         " \
+		"GpsDrive direct MySQL database insertion"
+	echo	"	latlon               " \
+		"Just latitude and longitude, thank you"
+	exit
+	;;
+esac
+
+case "$#" in
+3)
+	#
+	#	street_address citystate_or_zip country
+	#
+	ADDRESS=$1
+	CSZ=$2
+	COUNTRY=$3
+	address=`echo $ADDRESS | tr ' ' '+'`
+	csz=`echo $CSZ | tr ' ' '+'`
+	country=`echo $COUNTRY | tr '[A-Z]' '[a-z]'`
+	case "$country" in
+	us|usa)		country=us;;
+	ca)		country=ca;;
+	fr)		country=fr;;
+	de)		country=de;;
+	it)		country=it;;
+	es)		country=es;;
+	uk)		country=uk;;
+	*)		error "Unknown country '$3'";;
+	esac
+	;;
+2)
+	#
+	#	street-address citystate_or_zip
+	#
+	ADDRESS=$1
+	CSZ=$2
+	address=`echo $ADDRESS | tr ' ' '+'`
+	csz=`echo $CSZ | tr ' ' '+'`
+	country=$COUNTRY
+	;;
+1)
+	#
+	# Google-able_phone_or_name
+	#
+	# first name (or first initial), last name, city (state is optional)
+	# first name (or first initial), last name, state
+	# first name (or first initial), last name, area code
+	# first name (or first initial), last name, zip code
+	# phone number, including area code
+	# last name, city, state
+	# last name, zip code
+	#
+	ADDRESS=$1
+	GURL="http://www.google.com/search?q=$1"
+	;;
+*)
+	usage
+esac
+
+if [ "$NAME" = "" ]; then
+	NAME="$ADDRESS"
+fi
+
+#
+#	procedure to make a gpsbabel style file
+#
+make_style() {
+	cat <<EOF
+FIELD_DELIMITER		TAB
+RECORD_DELIMITER	NEWLINE
+BADCHARS		TAB
+IFIELD	LAT_DECIMAL, "", "%08.5f"
+IFIELD	LON_DECIMAL, "", "%08.5f"
+IFIELD	DESCRIPTION, "", "%s"
+IFIELD	ICON_DESCR, "", "%s"
+EOF
+}
+
+#
+#	procedure to remove cruft files
+#
+remove_cruft() {
+	for i in $STYLE $COORDS $OUTWAY $MAP
+	do
+		[ -f $i ] && rm -f $i
+	done
+}
+
+#
+#	Main Program
+#
+TMP=/tmp/geo$$
+STYLE=${TMP}.style
+COORDS=${TMP}.coords
+OUTWAY=${TMP}.way
+MAP=${TMP}.gif
+UA="Mozilla/5.0"
+
+if [ "$GURL" != "" ]; then
+	#
+	# Treat a single command line argument as a phone number and use
+	# Google to look up the Yahoo maps link
+	#	
+	if [ $DEBUG -gt 0 ]; then
+		echo "curl $GURL"
+	fi
+	URL=`   curl -s -A "$UA" "$GURL" \
+		| tee $COORDS \
+		| sed -n 's#.*href=http://maps.yahoo.com/\([^>]*\)>.*#\1#p' \
+		| head -n1 \
+		`
+	if [ "$URL" = "" ]; then
+		cp $COORDS /tmp/geo.google
+		error "Unable to lookup telephone number or name with Google"
+	else
+		URL="http://maps.yahoo.com/$URL"
+	fi
+else
+	#
+	#	Fetch a web page which geocode's the lat/lon
+	#
+	#	<input type=hidden name=slt value="44.496478">
+	#	<input type=hidden name=sln value="-93.941013">
+	#
+	URL="http://maps.yahoo.com/py/maps.py"
+	URL="$URL?BFCat="
+	URL="$URL&Pyt=Tmap"
+	URL="$URL&addr=$address"
+	URL="$URL&csz=$csz"
+	URL="$URL&country=$country"	# us, ca, fr, de, it,es, uk
+	URL="$URL&Get&nbsp;Map=Get+Map"
+fi
+
+if [ $DEBUG -gt 0 ]; then
+	echo "curl $URL"
+fi
+
+if [ $DEBUG -gt 0 ]; then
+    filter="tee /tmp/geo.yahoo"
+else
+    filter=cat
+fi
+curl -L -s -A "$UA" "$URL" \
+| $filter \
+| sed -n \
+	-e 's/<title>Yahoo! Maps - \([^<]*\)<.*/\1/p' \
+	-e 's/.*slt=\([^%]*\).*sln=\([^%]*\).*Create.*/\1 \2/p' \
+> $COORDS
+
+if [ $DEBUG -gt 0 ]; then
+	cp $COORDS /tmp/geo.coords
+fi
+
+#
+#	Convert the coords, address, and type to the desired
+#	output format.
+#
+get_latlon() {
+	read title
+	read lat lon
+}
+
+get_latlon < $COORDS;
+
+if [ "$title" != ""  -a "$QUIET" != 1 ]; then
+	echo "$title" >&2
+fi
+if [ "$lat" = "" -o "$lon" = "" ]; then
+	error "Cannot determine coordinates of that address"
+	remove_cruft
+	exit
+fi
+
+case "$MODE" in
+map)
+	echo "$lat	$lon"
+	scale=10000
+	URL="http://www.vicinity.com/gif"
+	URL="$URL?&CT=$lat:$lon:$scale&IC=&W=1280&H=1024&FAM=myblast&LB="
+	curl -L -s -A "$UA" "$URL" > $MAP
+	xv $MAP
+	remove_cruft
+	exit
+	;;
+latlon)
+	echo "$lat	$lon"
+	remove_cruft
+	exit
+	;;
+esac
+
+make_style > $STYLE
+
+echo "$lat	$lon	$NAME	$CODETYPE" \
+| gpsbabel $BABELFLAGS -i xcsv,style=$STYLE -f /dev/fd/0 -o $OUTFMT -F $OUTWAY
+
+#
+#	Output the data or add it to the MySQL database
+#
+gpsdrive_add() {
+	delcmd="delete from waypoints"
+	addcmd="insert into waypoints (name,lat,lon,type,comment)"
+
+	read _name _lat _lon _type
+
+	COMMENT="$ADDRESS"
+	if [ "$CSZ" != "" ]; then
+		COMMENT="$COMMENT, $CSZ"
+	fi
+
+	echo "use $SQLDB;"
+	case "$SQLMATCH" in
+	all)
+		# Must be a complete match to delete existing record
+		echo "$delcmd where name='$_name' and type='$_type'"
+		echo "and lat='$_lat' and lon='$_lon';"
+		;;
+	*)
+		# Must match only name and type
+		echo "$delcmd where name='$_name' and type='$_type';"
+		;;
+	esac
+	echo "$addcmd values ('$_name','$_lat','$_lon','$_type',"
+	echo "'$COMMENT');"
+}
+
+if [ -f $OUTWAY ]; then
+	case "$MODE" in
+	sql)
+		#
+		# add it via mysql
+		#
+		if [ $QUIET != 1 ]; then
+			echo "$NAME $lat $lon $CODETYPE" >&2
+		fi
+		if [ $DEBUG -gt 0 ]; then
+			gpsdrive_add <$OUTWAY
+		else
+			gpsdrive_add <$OUTWAY | mysql -u$SQLUSER -p$SQLPASS
+		fi
+		;;
+	*)
+		#
+		# output to stdout
+		#
+		cat $OUTWAY
+		;;
+	esac
+fi
+
+remove_cruft


Property changes on: packages/gpsdrive/branches/etch/src/geo-code
___________________________________________________________________
Name: svn:executable
   + *

Added: packages/gpsdrive/branches/etch/src/geo-nearest
===================================================================
--- packages/gpsdrive/branches/etch/src/geo-nearest	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/geo-nearest	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,361 @@
+#!/bin/sh
+
+#
+#	geo-nearest: Fetch list of nearest geocaches.
+#
+#	Requires: curl; gpsbabel; bash or ksh;
+#		  mysql (if using the gpsdrive.sql output option)
+#
+#	Donated to the public domain by Rick Richardson <rickr at mn.rr.com>
+#	Use at your own risk.  Not suitable for any purpose.  Not legal tender.
+#		http://home.mn.rr.com/richardsons/sw/geo-nearest
+#
+#
+#
+
+PROGNAME="$0"
+
+usage() {
+	cat <<EOF
+Usage:
+	`basename $PROGNAME` [options]
+	`basename $PROGNAME` [options] latitude longitude
+	`basename $PROGNAME` [options] zipcode
+
+	Fetch a list of nearest geocaches.
+
+Requires:
+	A free login at http://www.geocaching.com.  Visit a cache page
+	and click the "Download to EasyGPS" link at least once so you can
+	read and agree to the license terms.  Otherwise, you will not get
+	any waypoint data.
+
+	curl		http://curl.haxx.se/
+	gpsbabel	http://gpsbabel.sourceforge.net/
+
+Options:
+	-c		Remove cookie file when done
+	-f              Do not report any found or unavailable caches
+	-n num		Return "num" caches [$NUM]
+	-s		Output short names for the caches (gpsbabel option)
+	-u username	Username for http://www.geocaching.com
+	-p password	Password for http://www.geocaching.com
+	-o format	Output format, -o? for possibilities [$OUTFMT]
+			plus "gpsdrive.sql" for direct insertion into MySQL DB
+	-S              Alias for -o gpsdrive.sql
+        -d              For -S, just delete selected records\n"
+	-t type		For -ogpsdrive.sql, the waypoint type [$SQLTAG]
+	-D lvl		Debug level [$DEBUG]
+	-U		Retrieve latest version of this script
+
+Defaults can also be set with variables in file \$HOME/.georc:
+	PASSWORD=password;  USERNAME=username;
+	LAT=latitude;       LON=logitude;
+	NUM=num;            OUTFMT=format;       BABELFLAGS=-s
+	SQLUSER=gast;       SQLPASS=gast;        SQLDB=geoinfo;
+
+Examples:
+	Add nearest 50 caches to a GpsDrive SQL database
+
+	    geo-nearest -n50 -f -s -S
+
+See Also:
+	geo-code	http://home.mn.rr.com/richardsons/sw/geo-code
+EOF
+
+	exit 1
+}
+
+#
+#       Report an error and exit
+#
+error() {
+	echo "`basename $PROGNAME`: $1" >&2
+	exit 1
+}
+
+#
+#       Set default options, can be overriden on command line or in rc file
+#
+DEBUG=0
+COOKIE_FILE=$HOME/.geocookies
+PASSWORD=dummy
+USERNAME=dummy
+LAT=44.9472
+LON=-93.4914
+ZIP=
+OUTFMT=gpsdrive
+NOCOOKIES=0
+BABELFLAGS=
+NUM=25
+SQLUSER=gast	# For -o gpsdrive.sql
+SQLPASS=gast	# For -o gpsdrive.sql
+SQLDB=geoinfo	# For -o gpsdrive.sql
+SQLTAG=Geocache	# For -o gpsdrive.sql
+UPDATEnearestURL=http://home.mn.rr.com/richardsons/sw/geo-nearest
+UPDATEnearestFILE=geo-nearest.new
+NOFOUND=0
+
+#
+#	Read RC file, if there is one
+#
+if [ -f $HOME/.georc ]; then
+	. $HOME/.georc
+fi
+
+#
+#       Process the options
+#
+DELETE=0
+SQL=0
+unset OPTIND
+while getopts "cdfn:o:p:sSt:u:D:Uh?-" opt
+do
+	case $opt in
+	c)	NOCOOKIES=1;;
+	d)	DELETE=1;;
+	f)	NOFOUND=1;;
+	n)	NUM="$OPTARG";;
+	s)	BABELFLAGS="$BABELFLAGS -s";;
+	S)      OUTFMT="gpsdrive.sql";;
+	t)	SQLTAG="$OPTARG";;
+	u)	USERNAME="$OPTARG";;
+	p)	PASSWORD="$OPTARG";;
+	o)	OUTFMT="$OPTARG";;
+	D)	DEBUG="$OPTARG";;
+	U)	echo "Getting latest version of this script..."
+		curl -o$UPDATEnearestFILE "$UPDATEnearestURL"
+		echo "Latest version is in $UPDATEnearestFILE"
+		exit
+		;;
+	h|\?|-)	usage;;
+	esac
+done
+shift `expr $OPTIND - 1`
+
+case "$NOFOUND" in
+1)	NOFOUND='/Caches you found:/,$d';;
+*)	NOFOUND=s/Z/Z/;;
+esac
+
+case "$OUTFMT" in
+gpsdrive.sql)
+	OUTFMT=gpsdrive
+	SQL=1
+	# DEBUG=1
+	;;
+\?)
+	gpsbabel -? | sed '1,/File Types/d'
+	echo	"	gpsdrive.sql         " \
+		"GpsDrive direct MySQL database insertion"
+	exit
+	;;
+esac
+
+case "$#" in
+2)
+	LAT="$1"
+	LON="$2"
+	SEARCH="?origin_lat=$LAT&origin_long=$LON"
+	;;
+1)
+	ZIP=$1
+	SEARCH="?zip=$ZIP"
+	;;
+0)
+	SEARCH="?origin_lat=$LAT&origin_long=$LON"
+	;;
+*)
+	usage
+	;;
+esac
+
+[ "$USERNAME" != dummy ] || error "You need a www.geocaching.com username"
+[ "$PASSWORD" != dummy ] || error "You need a www.geocaching.com password"
+
+#
+#	Main Program
+#
+
+if [ $DEBUG -gt 0 ]; then
+    TMP=/tmp/geo
+else
+    TMP=/tmp/geo$$
+fi
+TIMESTAMP=${TMP}.timestamp
+GEOWAY=${TMP}.geocaching.loc
+OUTWAY=${TMP}.way
+CIDS=${TMP}.cids
+
+UA="Mozilla/5.0"
+GEO="http://www.geocaching.com"
+
+#
+# If the username/password doesn't match whats in the cookie file,
+# remove the cookie file
+#
+if ! grep -q -s "username=$USERNAME" $COOKIE_FILE; then
+	rm -f $COOKIE_FILE
+fi
+if ! grep -q -s "password=$PASSWORD" $COOKIE_FILE; then
+	rm -f $COOKIE_FILE
+fi
+
+#
+# Go to the cookie store if our cookie's expired.
+#
+if [ $NOCOOKIES = 1 ]; then
+	touch $TIMESTAMP
+else
+	touch -d "30 minutes ago" $TIMESTAMP
+fi
+if [ $COOKIE_FILE -ot $TIMESTAMP ]; then
+	URL="$GEO/login/default.asp"
+	URL="$URL?username=$USERNAME&password=$PASSWORD"
+	if [ $DEBUG -ge 1 ]; then
+		echo "curl $URL" >&2
+	fi
+	curl -s -D$COOKIE_FILE -A $UA -o /dev/null -L "$URL"
+fi
+rm -f $TIMESTAMP
+
+#
+#	procedure to remove cruft files
+#
+remove_cruft() {
+	if [ $DEBUG = 0 ]; then
+	    for i in $TIMESTAMP $CIDS $GEOWAY $OUTWAY
+	    do
+		    [ -f $i ] && rm -f $i
+	    done
+	fi
+	if [ $NOCOOKIES = 1 ]; then
+		[ -f $COOKIE_FILE ] && rm -f $COOKIE_FILE
+	fi
+}
+
+#
+#	procedure to nag about agreeing to EasyGps download license
+#
+easy_warning() {
+	cat <<-EOF
+	You have not agreed to the EasyGPS download license at $GEO
+
+	Click one of the Download to EasyGPS links at $GEO,
+	read and agree to the license terms, then try this program again.
+	EOF
+}
+
+#
+#	We might combine one or more pages into a single XML, so cobble
+#	up a header with the ?xml and loc tags.
+#	
+cat <<EOF > $GEOWAY
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<loc version="1.0" src="EasyGPS">
+EOF
+
+#
+# Loop, getting at least "NUM" locations
+#
+if [ $DEBUG -gt 0 ]; then
+    filter1="tee $TMP.page"
+    filter2="tee $TMP.bulk"
+else
+    filter1=cat
+    filter2=cat
+fi
+((start=0))
+while ((start < NUM)); do
+	#
+	# Fetch the page of closest caches and scrape the cache ID's
+	#
+	URL="$GEO/seek/nearest_cache.asp"
+	URL="$URL$SEARCH"
+	URL="$URL&start=$start"
+	if [ $DEBUG -ge 1 ]; then
+		echo "curl $URL" >&2
+	fi
+	curl -s -b $COOKIE_FILE -A $UA "$URL" \
+	| $filter1 \
+	| sed -n \
+		-e "$NOFOUND" \
+		-e 's/.*name=CID value="\([0-9]*\)".*/-dCID=\1/p' \
+	> $CIDS
+
+	#
+	# Fetch the waypoints, rip out the ?xml and loc tags, and
+	# append to the $GEOWAY file.
+	#
+	URL="$GEO/waypoints/bulk_waypoints.asp"
+	if [ $DEBUG -ge 1 ]; then
+		echo "curl $URL" >&2
+	fi
+	curl -s -b $COOKIE_FILE -A $UA \
+		`cat $CIDS` -d "image1.x=71" -d "image1.y=9" "$URL" \
+	| $filter2 \
+	| sed -e 's/^<?xml [^>]*>//' \
+		-e 's/<loc [^>]*>//' \
+		-e 's#</loc>##' \
+	>> $GEOWAY
+
+	#
+	# Check to see if the user hasn't agreed to license terms
+	#
+	if grep -s -q "STEP2=NO" $GEOWAY; then
+		easy_warning >&2
+		remove_cruft
+		exit
+	fi
+
+	((start=start+25))
+done
+
+#
+# Convert to desired format
+#
+echo "</loc>" >> $GEOWAY
+
+if [ $DEBUG -gt 0 ]; then
+	cp $GEOWAY /tmp/geocaching.loc
+fi
+
+gpsbabel $BABELFLAGS -i geo -f $GEOWAY -o $OUTFMT -F $OUTWAY
+
+gpsdrive_add() {
+	delcmd="delete from waypoints"
+	addcmd="insert into waypoints (name,lat,lon,type)"
+	echo "use $SQLDB;"
+	while read name lat lon type extra
+	do
+		name=`echo "$name" | tr -d "'"`
+		# Primary key is autoincrementing id number, so delete
+		# the old record (if any) by name and type
+		echo "$delcmd where name='$name' and type='$SQLTAG';"
+
+		if [ $DELETE = 0 ]; then
+		    # Add the new record
+		    echo "$addcmd values ('$name','$lat','$lon','$SQLTAG');"
+		fi
+	done
+}
+
+if [ -f $OUTWAY ]; then
+	if [ $SQL = 1 ]; then
+		#
+		# add it via mysql
+		#
+		if [ $DEBUG -gt 0 ]; then
+			gpsdrive_add <$OUTWAY
+		else
+			gpsdrive_add <$OUTWAY | mysql -u$SQLUSER -p$SQLPASS
+		fi
+	else
+		#
+		# output to stdout
+		#
+		cat $OUTWAY
+	fi
+fi
+
+remove_cruft


Property changes on: packages/gpsdrive/branches/etch/src/geo-nearest
___________________________________________________________________
Name: svn:executable
   + *

Added: packages/gpsdrive/branches/etch/src/geocache2way
===================================================================
--- packages/gpsdrive/branches/etch/src/geocache2way	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/geocache2way	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,82 @@
+#!/usr/bin/perl
+
+#
+# geocache2way - Kevin Stephens
+# 04/30/02
+#
+# Script to read .loc files from geocaching.com, parse it and add it onto the end of way.txt.
+#
+
+use strict;
+use XML::Simple;
+use Data::Dumper;
+use Getopt::Long;
+
+# Open the XML file
+my $FILE 	= 'geocaching.loc';
+my $OUTFILE = "$ENV{'HOME'}/.gpsdrive/way.txt";
+my ($DEBUG,$verbose);
+GetOptions ('debug' => \$DEBUG,'file=s' => \$FILE,'output=s' => \$OUTFILE,'verbose' => \$verbose, 'help' => \&usage);
+
+# Setup the XML object
+my $xs = new XML::Simple(keyattr => "id");
+my $location = $xs->XMLin($FILE);
+
+if ($DEBUG) {
+   print Dumper($location);
+} else {
+   # Check if it is single listing or multiple
+   if ($location->{'waypoint'}{'name'}) {
+      print_it($location->{'waypoint'});
+   } else {
+      foreach my $point (@{$location->{'waypoint'}}) {
+         print_it($point);
+      }
+   }
+}
+
+sub print_it {
+   my ($CACHE_ref) = @_;
+   my $id      = $CACHE_ref->{'name'}{'id'};
+   my $lat     = $CACHE_ref->{'coord'}{'lat'};
+   my $lon     = $CACHE_ref->{'coord'}{'lon'};
+   my $name    = $CACHE_ref->{'name'}{'content'};
+
+# These are here for future expansion.
+# Waiting for changes to gpsdrive way.txt.
+#    my $type    = $CACHE_ref->{'type'};
+#    my $URL     = $CACHE_ref->{'link'}{'content'};
+
+   # Clean out extra space
+    $name =~ s/^\s*//;
+    $name =~ s/\s*$//;
+#    $URL  =~ s/\s//g;
+   
+   if ($verbose) {
+      print "$id $lat $lon\n";
+   } else {
+      open(OUTFILE,">>$OUTFILE") || die "Can't open $OUTFILE\n";
+      print OUTFILE "$id $lat $lon\n";
+      close(OUTFILE);
+      
+      # Now change the filename for the dsc file
+      my $DSCFILE = $OUTFILE;
+      $DSCFILE =~ s/\..*$//;
+      open(OUTFILE,">>$DSCFILE.dsc") || die "Can't open $DSCFILE\n";
+      print OUTFILE "\$$id\n$name\n\n";
+      close(OUTFILE);
+   }      
+}
+
+sub usage {
+   print <<EOP;
+Usage:   geoparse.pl [-f | --file <filename>] [-o | --output <filename>] [-v | --verbose] 
+                     [-d | --debug] [-h | --help]
+   
+      -f | --file    = File to parse, takes a filename
+      -o | --output  = File to write to. Default: \$HOME/.gpsdrive/way.txt 
+      -v | --verbose = Print output to STDOUT instead of a file
+      -d | --debug   = Debug
+      -h | --help    = This usage screen
+EOP
+}


Property changes on: packages/gpsdrive/branches/etch/src/geocache2way
___________________________________________________________________
Name: svn:executable
   + *

Added: packages/gpsdrive/branches/etch/src/gettext.h
===================================================================
--- packages/gpsdrive/branches/etch/src/gettext.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/gettext.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,69 @@
+/* Convenience header for conditional use of GNU <libintl.h>.
+   Copyright (C) 1995-1998, 2000-2002 Free Software Foundation, Inc.
+
+   This program is free software; you can redistribute it and/or modify it
+   under the terms of the GNU Library General Public License as published
+   by the Free Software Foundation; either version 2, or (at your option)
+   any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Library General Public License for more details.
+
+   You should have received a copy of the GNU Library General Public
+   License along with this program; if not, write to the Free Software
+   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+   USA.  */
+
+#ifndef _LIBGETTEXT_H
+#define _LIBGETTEXT_H 1
+
+/* NLS can be disabled through the configure --disable-nls option.  */
+#if ENABLE_NLS
+
+/* Get declarations of GNU message catalog functions.  */
+# include <libintl.h>
+
+#else
+
+/* Solaris /usr/include/locale.h includes /usr/include/libintl.h, which
+   chokes if dcgettext is defined as a macro.  So include it now, to make
+   later inclusions of <locale.h> a NOP.  We don't include <libintl.h>
+   as well because people using "gettext.h" will not include <libintl.h>,
+   and also including <libintl.h> would fail on SunOS 4, whereas <locale.h>
+   is OK.  */
+#if defined(__sun)
+# include <locale.h>
+#endif
+
+/* Disabled NLS.
+   The casts to 'const char *' serve the purpose of producing warnings
+   for invalid uses of the value returned from these functions.
+   On pre-ANSI systems without 'const', the config.h file is supposed to
+   contain "#define const".  */
+# define gettext(Msgid) ((const char *) (Msgid))
+# define dgettext(Domainname, Msgid) ((const char *) (Msgid))
+# define dcgettext(Domainname, Msgid, Category) ((const char *) (Msgid))
+# define ngettext(Msgid1, Msgid2, N) \
+    ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2))
+# define dngettext(Domainname, Msgid1, Msgid2, N) \
+    ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2))
+# define dcngettext(Domainname, Msgid1, Msgid2, N, Category) \
+    ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2))
+# define textdomain(Domainname) ((const char *) (Domainname))
+# define bindtextdomain(Domainname, Dirname) ((const char *) (Dirname))
+# define bind_textdomain_codeset(Domainname, Codeset) ((const char *) (Codeset))
+
+#endif
+
+/* A pseudo function call that serves as a marker for the automated
+   extraction of messages, but does not call gettext().  The run-time
+   translation is done at a different place in the code.
+   The argument, String, should be a literal string.  Concatenated strings
+   and other string expressions won't work.
+   The macro's expansion is not parenthesized, so that it is suitable as
+   initializer for static 'char[]' or 'const char[]' variables.  */
+#define gettext_noop(String) String
+
+#endif /* _LIBGETTEXT_H */

Added: packages/gpsdrive/branches/etch/src/gps.h
===================================================================
--- packages/gpsdrive/branches/etch/src/gps.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/gps.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,4 @@
+
+#include "gpsd.h"
+extern void register_canvas(Widget w, GC gc);
+extern void draw_graphics();

Added: packages/gpsdrive/branches/etch/src/gpsd.c
===================================================================
--- packages/gpsdrive/branches/etch/src/gpsd.c	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/gpsd.c	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,830 @@
+/****************************************************************************
+COPYRIGHT
+=========
+
+This software (gpsd) is Copyrighted 1997, 1998, 1999, 2000 by Remco Treffkorn,
+I am releasing it under the terms and conditions of the
+
+        GNU GENERAL PUBLIC LICENSE Version 2, June 1991
+
+or later. A copy off which is included in the file COPYING.
+
+
+Patch for file input: Iwo Mergler <Iwo.Mergler at soton.sc.philips.com>
+
+****************************************************************************/
+
+/*
+$Log: gpsd.c,v $
+Revision 1.16  2004/02/03 08:34:16  ganter
+added gpsd patches from David Clayton which fixes some bufferoverflows
+and added support for GPGLL sentence
+
+Revision 1.15  2003/12/28 00:15:47  ganter
+added gpsd patch from Mina Naguib <webmaster at topfx.com>
+that allows GPSD to accept serial speeds up to 115200 via the -s commandline
+switch.
+
+Revision 1.14  2003/01/23 14:05:34  ganter
+added greek translation
+added geocache scripts
+added geocache icon
+improved search for libmysqlclient.so
+
+Revision 1.13  2002/11/06 05:29:14  ganter
+fixed most warnings
+
+Revision 1.12  2002/10/14 08:38:59  ganter
+v1.29pre3
+added SQL support
+
+Revision 1.11  2002/09/19 07:33:36  ganter
+added FAQ
+
+Revision 1.10  2002/09/17 20:57:58  ganter
+added copyright and README for gpsd
+v1.27
+
+Revision 1.9  2002/09/12 10:10:14  ganter
+v1.27pre2
+
+Revision 1.7  2002/06/27 19:51:28  ganter
+patches from Marco Molteni <molter at tin.it>
+
+Revision 1.6  2002/04/19 18:26:14  ganter
+Thanks to the patch of Derrick J Brashear now some more receivers
+are providing the altitude.
+
+Revision 1.5  2002/04/18 22:50:37  ganter
+added turkish translation
+added display number of satellites
+v1.18pre2
+
+Revision 1.4  2002/04/06 17:08:56  ganter
+v1.16pre8
+cleanup of gpsd files
+
+Revision 1.3  2002/04/06 00:36:01  ganter
+changing filelist
+
+Revision 1.2  2002/04/05 19:08:29  ganter
+added comment
+
+Version modified by Fritz Ganter <ganter at ganter.at>
+
+ */
+
+#include "config.h"
+#include <unistd.h>
+#include <stdlib.h>
+#include <ctype.h>
+#include <syslog.h>
+#include <signal.h>
+#include <errno.h>
+#include <fcntl.h>
+#include <string.h>
+
+#if defined (HAVE_PATH_H)
+#include <paths.h>
+#else
+#if !defined (_PATH_DEVNULL)
+#define _PATH_DEVNULL    "/dev/null"
+#endif
+#endif
+
+#if defined (HAVE_STRINGS_H)
+#include <strings.h>
+#endif
+
+
+#if defined (HAVE_SYS_TERMIOS_H)
+#include <sys/termios.h>
+#else
+#if defined (HAVE_TERMIOS_H)
+#include <termios.h>
+#endif
+#endif
+
+#if defined (HAVE_SYS_SELECT_H)
+#include <sys/select.h>
+#endif
+
+#if defined (HAVE_NETDB_H)
+#include <netdb.h>
+#endif
+
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <sys/time.h>
+#include <netinet/in.h>
+#include <stdio.h>
+
+#include "nmea.h"
+#include "gpsd.h"
+#include "version.h"
+
+#define QLEN		5
+#define BUFSIZE		4096
+#define GPS_TIMEOUT	5	/* Consider GPS connection loss after 5 sec */
+
+int debug = 0;
+int device_speed = B4800;
+int device_type;
+int nfds;  /* number of file descriptors to select() for */
+char *device_name = 0;
+char *latitude = 0;
+char *longitude = 0;
+char latd = 'N';
+char lond = 'W';
+int  keep_gps = 0;	/* If non-zero, don't close gps device ever */
+
+/* File input stuff */
+char   *infile_name = 0;
+int    infile = 0;
+double InfileLineTime = 0.2;
+
+/* command line option defaults */
+static char *default_device_name = "/dev/gps";
+static char *default_latitude = "3600.000";
+static char *default_longitude = "-12300.000";
+
+static int dsock; /* socket to dpgs server */
+
+/* If set, close (and reopen?) the serial interface. Triggered by SIGUSR1. */
+static int reopen = 0;
+
+
+static int handle_input (int input, fd_set * afds, fd_set * nmea_fds);
+static int handle_request (int fd, fd_set * fds);
+
+extern int handle_EMinput (int input, fd_set * afds, fd_set * nmea_fds);
+extern int connectsock (char *host, char *service, char *protocol);
+extern void em_send_rtcm (unsigned short *rtcmbuf, int rtcmbytes);
+
+
+static void
+onsig (int sig)
+{
+  serial_close ();
+  close (dsock);
+  syslog (LOG_NOTICE, "Received signal %d. Exiting...", sig);
+  exit (10 + sig);
+}
+
+static void
+sigusr1 (int sig)
+{
+  reopen = 1;
+}
+
+int
+daemonize ()
+{
+  int fd;
+  pid_t pid;
+
+  pid = fork ();
+
+  switch (pid)
+    {
+    case -1:
+      return -1;
+    case 0:
+      break;
+    default:
+      _exit (pid);
+    }
+
+  if (setsid () == -1)
+    return -1;
+  chdir ("/");
+  fd = open (_PATH_DEVNULL, O_RDWR, 0);
+  if (fd != -1)
+    {
+      dup2 (fd, STDIN_FILENO);
+      dup2 (fd, STDOUT_FILENO);
+      dup2 (fd, STDERR_FILENO);
+      if (fd > 2)
+	close (fd);
+    }
+  return 0;
+}
+
+void
+send_dgps ()
+{
+  char buf[BUFSIZE];
+
+  sprintf (buf, "R %0.2f %0.2f %0.2f\r\n", gNMEAdata.latitude,
+	   gNMEAdata.longitude, gNMEAdata.altitude);
+  write (dsock, buf, strlen (buf));
+}
+
+int
+main (int argc, char *argv[])
+{
+  char *default_service = "gpsd";
+  char *default_dgpsserver = "dgps.wsrcc.com";
+  char *default_dgpsport = "rtcm-sc104";
+  char *service = 0; /* port number to listen to */
+  char *dgpsport = 0;
+  char *dgpsserver = 0;
+  struct sockaddr_in fsin;
+  int msock; /* listening socket fd */
+  fd_set rfds;
+  fd_set afds;
+  fd_set nmea_fds;
+  int alen;
+  int fd;
+  int input; /* GPS device fd */
+  int need_gps, need_dgps = 0, need_init = 1;
+  extern char *optarg;
+  int option;
+  double baud;
+  char buf[BUFSIZE];
+  int sentdgps = 0, fixcnt = 0;
+  time_t curtime;
+
+  while ((option = getopt (argc, argv, "D:L:S:T:hncl:p:s:d:r:F:f:K")) != -1)
+    {
+      switch (option)
+	{
+	case 'T':
+	  switch (*optarg)
+	    {
+	    case 't':
+	      device_type = DEVICE_TRIPMATE;
+	      break;
+	    case 'e':
+	      device_type = DEVICE_EARTHMATE;
+	      break;
+	    default:
+	      fprintf (stderr, "Invalid device type \"%s\"\n"
+		       "Using GENERIC instead\n", optarg);
+	      break;
+	    }
+	  break;
+	case 'D':
+	  debug = (int) strtol (optarg, 0, 0);
+	  break;
+	case 'd':
+	  dgpsserver = optarg;
+	  break;
+	case 'L':
+	  if (optarg[strlen (optarg) - 1] == 'W'
+	      || optarg[strlen (optarg) - 1] == 'w'
+	      || optarg[strlen (optarg) - 1] == 'E'
+	      || optarg[strlen (optarg) - 1] == 'e')
+	    {
+	      lond = toupper (optarg[strlen (optarg) - 1]);
+	      longitude = optarg;
+	      longitude[strlen (optarg) - 1] = '\0';
+	    }
+	  else
+	    fprintf (stderr,
+		     "skipping invalid longitude (-L) option;  %s must end in W or E\n",
+		     optarg);
+	  break;
+	case 'S':
+	  service = optarg;
+	  break;
+	case 'r':
+	  dgpsport = optarg;
+	  break;
+	case 'l':
+	  if (optarg[strlen (optarg) - 1] == 'N'
+	      || optarg[strlen (optarg) - 1] == 'n'
+	      || optarg[strlen (optarg) - 1] == 'S'
+	      || optarg[strlen (optarg) - 1] == 's')
+	    {
+	      latd = toupper (optarg[strlen (optarg) - 1]);
+	      latitude = optarg;
+	      latitude[strlen (optarg) - 1] = '\0';
+	    }
+	  else
+	    fprintf (stderr,
+		     "skipping invalid latitude (-l) option;  %s must end in N or S\n",
+		     optarg);
+	  break;
+	case 'p':
+	  device_name = optarg;
+	  break;
+	case 's':
+	  baud = strtod (optarg, 0);
+	  if (baud < 200)
+	    baud *= 1000;
+	  if (baud < 2400)
+	    device_speed = B1200;
+	  else if (baud < 4800)
+	    device_speed = B2400;
+	  else if (baud < 9600)
+	    device_speed = B4800;
+	  else if (baud < 19200)
+	    device_speed = B9600;
+	  else if (baud < 38400)
+	    device_speed = B19200;
+	  else if (baud < 57600)
+	    device_speed = B38400;
+	  else if (baud < 115200)
+	    device_speed = B57600;
+	  else
+	    device_speed = B115200;
+	  break;
+	case 'c':
+	  need_dgps = 1;
+	  break;
+	case 'n':
+	  need_init = 0;
+	  break;
+        case 'F':
+          infile_name = optarg;
+          infile = 1;
+          break;
+        case 'f':
+          InfileLineTime = strtod (optarg, NULL);
+          break;
+	case 'K':
+	  keep_gps = 1;
+	  break;
+	case 'h':
+	case '?':
+	default:
+	  fputs ("usage:  gpsd [options] \n\
+  options include: \n\
+  -D level     [ set debug level. If >= 2, remain in foreground ] \n\
+  -L longitude [ set longitude ] \n\
+  -l latitude  [ set latitude ] \n\
+  -S port      [ set gpsd listening port ] \n\
+  -T type      [ set DeLorme models. e = Earthmate, t = Tripmate ] \n\
+  -h           [ help message ] \n\
+  -p path      [ set gps device pathname ] \n\
+  -s baud_rate [ set baud rate on gps device ] \n\
+  -c           [ use dgps service for corrections ] \n\
+  -d host      [ set dgps server hostname] \n\
+  -r port      [ set dgps server port ] \n\
+  -n           [ disable setting default values for longitute and latitute ] \n\
+  -F filename  [ read input from file ] \n\
+  -f seconds   [ delay per input file line in seconds (default=0.2)] \n\
+  -K           [ keep gps device open all the time (linux USB workaround) ] \n\
+", stderr);
+	  exit (0);
+	}
+    }
+  if (!device_name)
+    device_name = default_device_name;
+  if (need_init && !latitude)
+    latitude = default_latitude;
+  if (need_init && !longitude)
+    longitude = default_longitude;
+  if (!service)
+    {
+      if (!getservbyname (default_service, "tcp"))
+	{
+	  service = "2947";
+	}
+      else
+	{
+	  service = default_service;
+	}
+    }
+  if (need_dgps && !dgpsserver)
+    dgpsserver = default_dgpsserver;
+  if (need_dgps && !dgpsport)
+    dgpsport = default_dgpsport;
+  if (debug > 0)
+    {
+      fprintf (stderr, "command line options:\n");
+      fprintf (stderr, "  debug level:        %d\n", debug);
+      if (infile)
+        {
+          fprintf (stderr, "  gps file name:      %s\n", infile_name);
+          fprintf (stderr, "  file line timing:   %.3f sec\n",InfileLineTime);
+        }
+      else
+        {
+          fprintf (stderr, "  gps device name:    %s\n", device_name);
+          fprintf (stderr, "  gps device speed:   %d\n", device_speed);
+        }
+      fprintf (stderr, "  gpsd port:          %s\n", service);
+      if (need_dgps)
+	{
+	  fprintf (stderr, "  dgps server:        %s\n", dgpsserver);
+	  fprintf (stderr, "  dgps port:        %s\n", dgpsport);
+	}
+      fprintf (stderr, "  latitude:           %s%c\n", latitude, latd);
+      fprintf (stderr, "  longitude:          %s%c\n", longitude, lond);
+    }
+  if (debug < 2)
+    daemonize ();
+
+  /* Handle some signals */
+  signal (SIGUSR1, sigusr1);
+  signal (SIGINT, onsig);
+  signal (SIGHUP, onsig);
+  signal (SIGTERM, onsig);
+  signal (SIGQUIT, onsig);
+
+  openlog ("gpsd", LOG_PID, LOG_USER);
+  syslog (LOG_NOTICE, "Gpsd started (Version %s)", GPSDVERSION);
+  if (need_dgps)
+    syslog (LOG_NOTICE, "Gpsd in DGPS-IP mode");
+
+  syslog (LOG_NOTICE, "Gpsd listening on port %s", service);
+
+  msock = passiveTCP (service, QLEN);
+
+  if (need_dgps)
+    {
+      if (!getservbyname (dgpsport, "tcp"))
+	dgpsport = "2101";
+      dsock = connectsock (dgpsserver, dgpsport, "tcp");
+      if (dsock < 0)
+	{
+	  fprintf (stderr, "Can't connect to dgps server\n");
+	  need_dgps = 0;
+	}
+    }
+#ifndef min
+#define min(a, b) (((a) < (b)) ? (a) : (b))
+#endif
+  /* still wrong, but at least do not coredump */
+  nfds = min (getdtablesize (), FD_SETSIZE);
+
+  FD_ZERO (&afds);
+  FD_ZERO (&nmea_fds);
+  FD_SET (msock, &afds);
+  if (need_dgps)
+    {
+      char hn[256];
+      gethostname (hn, sizeof (hn));
+
+      sprintf (buf, "HELO %s gpsdrive-%s/gpsd %s\r\nR\r\n", hn, VERSION,
+	       GPSDVERSION);
+      write (dsock, buf, strlen (buf));
+      FD_SET (dsock, &afds);
+    }
+
+  input = -1;
+
+  while (1)
+    {
+      memcpy (&rfds, &afds, sizeof (rfds));
+
+      if (select (nfds, &rfds, NULL, NULL, NULL) < 0)
+	{
+	  if (errno == EINTR)
+	    continue;
+	  errexit ("select");
+	}
+      curtime = time(NULL);
+      if (curtime > gNMEAdata.last_update + GPS_TIMEOUT) {
+        gNMEAdata.mode = 0;
+        gNMEAdata.status = 0;
+      }
+      /* data received on dgps socket */
+      if (FD_ISSET (dsock, &rfds))
+	{
+	  int rtcmbytes, cnt;
+	  char *ptr;
+
+	  rtcmbytes = read (dsock, buf, BUFSIZE);
+
+	  if (device_type == DEVICE_EARTHMATEb)
+	    {
+	      ptr = buf;
+	      while (rtcmbytes > 0)
+		{
+		  cnt = (rtcmbytes < 65) ? rtcmbytes : 64;
+		  em_send_rtcm ((unsigned short *)buf, cnt);
+		  rtcmbytes -= cnt;
+		  ptr += cnt;
+		}
+	    }
+	  else
+	    {
+	      /*
+	       * device must need generic RTCM-104 serial data.
+	       * We can send these one character at a time. 
+	       */
+	      if (rtcmbytes > 0)
+		{
+#if 0
+		  fprintf (stderr, "\n\nSending %d rtcm bytes out\n",
+			   rtcmbytes);
+		  for (cnt = 0; cnt < rtcmbytes; cnt++)
+		    fprintf (stderr, "%x", (unsigned char) buf[cnt]);
+		  fprintf (stderr, "\n");
+#endif
+		  ptr = buf;
+		  while (rtcmbytes > 0)
+		    {
+		      cnt = write (gNMEAdata.fdout, ptr, rtcmbytes);
+		      if (cnt == rtcmbytes)
+			rtcmbytes = 0;	/* stops the loop */
+
+		      if (cnt > 0)
+			{
+			  /* Set up for next iteration */
+			  rtcmbytes -= cnt;
+			  ptr += cnt;
+			}
+		    }
+		  rtcmbytes = 0;
+		}
+	    }
+	}
+      /* data received on client socket */
+      if (FD_ISSET (msock, &rfds))
+	{
+	  int ssock;
+
+	  alen = sizeof (fsin);
+	  ssock = accept (msock, (struct sockaddr *) &fsin, &alen);
+
+	  if (ssock < 0)
+	    errexit ("accept");
+
+	  FD_SET (ssock, &afds);
+	}
+      /* data available on serial port */
+      if (input >= 0 && FD_ISSET (input, &rfds))
+	{
+	  if (device_type == DEVICE_EARTHMATEb)
+	    handle_EMinput (input, &afds, &nmea_fds);
+	  else
+	    handle_input (input, &afds, &nmea_fds);
+	}
+      /* misc gps stuff ... */
+      if (gNMEAdata.status > 0)
+	fixcnt++;
+      if (fixcnt > 10)
+	if (!sentdgps)
+	  {
+	    sentdgps++;
+	    if (need_dgps)
+	      send_dgps ();
+	  }
+      need_gps = keep_gps;
+      if (reopen)
+	{
+	  FD_CLR (input, &afds);
+	  input = -1;
+	  gNMEAdata.fdin = input;
+	  gNMEAdata.fdout = input;
+	  serial_close ();
+	  if (device_type == DEVICE_EARTHMATEb)
+	    device_type = DEVICE_EARTHMATE;
+	  syslog (LOG_NOTICE, "Closed gps");
+	  gNMEAdata.mode = 1;
+	  gNMEAdata.status = 0;
+	  need_gps++;
+	}
+      for (fd = 0; fd < nfds; fd++)
+	{
+	  if (fd != msock && fd != input && fd != dsock &&
+	      FD_ISSET (fd, &rfds))
+	    {
+	      if (input == -1)
+		{
+		  if (infile)
+                    {
+                       input = open(infile_name,O_RDONLY);
+                       if (input < 0)
+                         errexit ("File open: ");
+                    }
+                  else
+                    {
+                      if ((input = serial_open ()) < 0)
+		        errexit ("serial open: ");
+                    }
+		  syslog (LOG_NOTICE, "Opened gps");
+		  FD_SET (input, &afds);
+		  gNMEAdata.fdin = input;
+		  gNMEAdata.fdout = input;
+		}
+	      if (handle_request (fd, &nmea_fds) == 0)
+		{
+		  (void) close (fd);
+		  FD_CLR (fd, &afds);
+		  FD_CLR (fd, &nmea_fds);
+		}
+	    }
+	  if (fd != msock && fd != input && FD_ISSET (fd, &afds))
+	    {
+	      need_gps++;
+	    }
+	}
+
+      if (!need_gps && input != -1)
+	{
+	  FD_CLR (input, &afds);
+	  input = -1;
+	  gNMEAdata.fdin = input;
+	  gNMEAdata.fdout = input;
+	  serial_close ();
+	  if (device_type == DEVICE_EARTHMATEb)
+	    device_type = DEVICE_EARTHMATE;
+	  syslog (LOG_NOTICE, "Closed gps");
+	  gNMEAdata.mode = 1;
+	  gNMEAdata.status = 0;
+	}
+    }
+}
+
+static int
+handle_request (int fd, fd_set * fds)
+{
+  char buf[BUFSIZE];
+  char reply[BUFSIZE];
+  char *p;
+  int cc;
+
+  cc = read (fd, buf, sizeof (buf) - 1);
+  if (cc < 0)
+    return 0;
+
+  buf[cc] = '\0';
+
+  sprintf (reply, "GPSD");
+  p = buf;
+  while (*p)
+    {
+      switch (*p)
+	{
+	case 'P':
+	case 'p':
+	  sprintf (reply + strlen (reply),
+		   ",P=%f %f", gNMEAdata.latitude, gNMEAdata.longitude);
+	  break;
+	case 'D':
+	case 'd':
+	  sprintf (reply + strlen (reply), ",D=%s", gNMEAdata.utc);
+	  break;
+	case 'A':
+	case 'a':
+	  sprintf (reply + strlen (reply), ",A=%f", gNMEAdata.altitude);
+	  break;
+	case 'V':
+	case 'v':
+	  sprintf (reply + strlen (reply), ",V=%f", gNMEAdata.speed);
+	  break;
+	case 'R':
+	case 'r':
+	  if (FD_ISSET (fd, fds))
+	    {
+	      FD_CLR (fd, fds);
+	      sprintf (reply + strlen (reply), ",R=0");
+	    }
+	  else
+	    {
+	      FD_SET (fd, fds);
+	      sprintf (reply + strlen (reply), ",R=1");
+	    }
+	  break;
+	case 'S':
+	case 's':
+	  sprintf (reply + strlen (reply), ",S=%d", gNMEAdata.status);
+	  break;
+	case 'M':
+	case 'm':
+	  sprintf (reply + strlen (reply), ",M=%d", gNMEAdata.mode);
+	  break;
+	case '\r':
+	case '\n':
+	  *p = '\0';		/* ignore the rest */
+	  break;
+
+	}
+      p++;
+    }
+  strcat (reply, "\r\n");
+
+  if (cc && write (fd, reply, strlen (reply) + 1) < 0)
+    return 0;
+
+  return cc;
+}
+
+/* Returns time difference in seconds (accurate to 10^-3) */
+static double
+time_diff(struct timeval start,struct timeval end) 
+{
+  double retval;
+  
+  retval = (double)(end.tv_sec - start.tv_sec);
+  
+  retval += (double)((end.tv_usec - start.tv_usec)/1000)/1000.0;
+  
+  return(retval);
+}
+
+static int
+handle_input (int input, fd_set * afds, fd_set * nmea_fds)
+{
+  static unsigned char buf[BUFSIZE];	/* that is more then a sentence */
+  static int offset = 0;
+  static int bincount;
+  int fd;
+  
+  /* Reading from file. */
+  static struct timeval Msg_Time = {0,0}; /* Occurence of last line */
+  struct timeval time;
+  
+  while (offset < BUFSIZE)
+    {
+    
+      /* This delays the reading of another line from file */
+      if (infile)
+        {    
+          gettimeofday(&time,NULL);
+          if (time_diff(Msg_Time,time) < InfileLineTime )
+            {
+              usleep(1);
+              return 1;
+            }
+        }
+    
+      if (read (input, buf + offset, 1) != 1)
+        {
+          /* In case of file input, we must sleep for a while,
+          otherwise gpsd runs the CPU at full tilt when the file is finished. */
+          if (infile)
+            {
+              usleep(1000);
+            }
+	  return 1;
+        }
+
+      if (buf[offset] == '\n' || buf[offset] == '\r')
+	{
+	  buf[offset] = '\0';
+	  if (strlen (buf))
+	      {
+	        handle_message (buf);
+                 
+                /* A new line arrived, remember time */
+                if (infile)
+                 {
+                   gettimeofday(&time,NULL);
+                   Msg_Time = time;
+                 }
+                   
+	      strcat (buf, "\r\n");
+	      for (fd = 0; fd < nfds; fd++)
+		{
+		  if (FD_ISSET (fd, nmea_fds))
+		    {
+		      if (write (fd, buf, strlen (buf)) < 0)
+			{
+			  syslog (LOG_NOTICE, "Raw write: %s",
+				  strerror (errno));
+			  FD_CLR (fd, afds);
+			  FD_CLR (fd, nmea_fds);
+			}
+		    }
+		}
+	    }
+	  offset = 0;
+	  return 1;
+	}
+      /*
+         The following tries to recognise if the EarthMate is
+         in binary mode. If so, it will switch to EarthMate mode.
+
+         Tf.20000105: this block does not serve any purpose.
+         Please look it over, and delete it if you agree.
+       */
+
+      if (device_type == DEVICE_EARTHMATE)
+	{
+	  if (offset)
+	    {
+	      if (buf[offset - 1] == (unsigned char) 0xff)
+		{
+		  if (buf[offset] == (unsigned char) 0x81)
+		    {
+		      if (bincount++ == 5)
+			{
+			  syslog (LOG_NOTICE, "Found an EarthMate (syn).");
+			  device_type = DEVICE_EARTHMATEb;
+			  return 0;
+			}
+		    }
+		}
+	    }
+	}
+      offset++;
+      buf[offset] = '\0';
+    }
+  offset = 0;			/* discard input ! */
+  return 1;
+}
+
+int
+errexit (char *s)
+{
+  syslog (LOG_ERR, "%s: %s\nExit now...\n", s, strerror (errno));
+  serial_close ();
+  close (dsock);
+  exit (2);
+}

Added: packages/gpsdrive/branches/etch/src/gpsd.h
===================================================================
--- packages/gpsdrive/branches/etch/src/gpsd.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/gpsd.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,10 @@
+
+
+enum { DEVICE_GENERIC, DEVICE_TRIPMATE, DEVICE_EARTHMATE, DEVICE_EARTHMATEb };
+
+extern int serial_open();
+extern void serial_close();
+extern void handle_message(char *sentence);
+extern int errexit(char *s);
+extern int passiveTCP(char *service, int qlen);
+extern int connectTCP(char *host, char *service);

Added: packages/gpsdrive/branches/etch/src/gpsdrive-nosql.spec
===================================================================
--- packages/gpsdrive/branches/etch/src/gpsdrive-nosql.spec	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/gpsdrive-nosql.spec	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,46 @@
+#
+#
+#
+Summary: gpsdrive is a GPS based navigation tool 
+Name: gpsdrive
+Version: 1.31
+Release: 1
+Copyright: GPL
+Group: Tools 
+Source: %{name}-%{version}.tar.gz
+Vendor: Fritz Ganter <ganter at ganter.at>
+Packager: Fritz Ganter <ganter at ganter.at>
+BuildRoot: %{_builddir}/%{name}-root
+%define _prefix /usr
+%description
+Gpsdrive is a map-based navigation system. It displays your position on a zoomable map provided from a NMEA-capable GPS receiver. The maps are autoselected for the best resolution, depending of your position, and the displayed image can be zoomed. Maps can be downloaded from the Internet with one mouse click. The program provides information about speed, direction, bearing, arrival time, actual position, and target position. Speech output is also available.
+See http://gpsdrive.kraftvoll.at for new releases.
+%prep
+%setup
+CFLAGS="$RPM_OPT_FLAGS" ./configure --disable-mysql --prefix=%{_prefix} --mandir=%{_mandir}
+
+
+%build
+make
+%install
+rm -rf $RPM_BUILD_ROOT
+make DESTDIR=$RPM_BUILD_ROOT install-strip
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+rm -rf %{_builddir}/%{name}-%{version}
+%files
+%defattr (-,root,root)
+%doc GPS-receivers INSTALL AUTHORS COPYING  TODO README LEEME LISEZMOI README.FreeBSD  README.gpspoint2gspdrive FAQ.gpsdrive FAQ.gpsdrive.fr  README.SQL create.sql NMEA.txt wp2sql README.kismet
+%doc %{_mandir}/de/man1/gpsdrive.1.gz
+%doc %{_mandir}/es/man1/gpsdrive.1.gz
+%doc %{_mandir}/man1/gpsdrive.1.gz
+
+%{_libdir}/*
+%{_bindir}/*
+
+%dir %{_prefix}/share/gpsdrive
+%{_prefix}/share/gpsdrive/gpsdrivesplash.png
+%{_prefix}/share/gpsdrive/friendsicon.png
+%{_prefix}/share/locale/*/LC_MESSAGES/*
+

Added: packages/gpsdrive/branches/etch/src/gpsdrive.c
===================================================================
--- packages/gpsdrive/branches/etch/src/gpsdrive.c	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/gpsdrive.c	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,12277 @@
+/***********************************************************************
+
+Copyright (c) 2001-2004 Fritz Ganter <ganter at ganter.at>
+
+Website: www.gpsdrive.de
+
+Disclaimer: Please do not use for navigation. 
+
+    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
+
+    *********************************************************************
+
+$Log: gpsdrive.c,v $
+Revision 1.525  2004/03/03 20:46:47  ganter
+fixed big bug in waypoint list if format not set to decimal display
+
+Revision 1.524  2004/03/02 01:52:47  ganter
+changed expedia tooltips
+yes, this is the real 2.09pre1 :-)
+
+Revision 1.523  2004/03/02 01:36:04  ganter
+added German Expedia map server (expedia.de),
+this should be used for european users
+this is the real 2.09pre1 beta
+
+Revision 1.522  2004/03/02 00:53:35  ganter
+v2.09pre1
+added new gpsfetchmap.pl (works again with Expedia)
+added sound settings in settings menu
+max serial device string is now 40 char
+
+Revision 1.521  2004/02/24 16:59:14  ganter
+fixed segfault if expedia could not resolved or reached.
+upload new 2.08
+
+Revision 1.520  2004/02/18 13:24:18  ganter
+navigation
+
+Revision 1.519  2004/02/16 23:15:20  ganter
+activated navigation.c for teleatlas street maps, need some months of work to
+get it functional.
+
+Revision 1.518  2004/02/12 17:42:53  ganter
+added -W switch for enable/disable WAAS/EGNOS (for SiRF II only?)
+
+Revision 1.517  2004/02/11 21:59:22  ganter
+max. number of sats is now MAXSATS
+
+Revision 1.516  2004/02/11 21:01:53  ganter
+added debug output for satellites
+
+Revision 1.515  2004/02/11 20:27:40  ganter
+increased max satellite number from 40 to 80
+
+Revision 1.514  2004/02/11 11:25:45  ganter
+added patch from Johnny Cache <johnycsh at hick.org>, dbname is now configurable
+in gpsdriverc
+additional search path for libmysql for cygwin
+
+Revision 1.513  2004/02/09 23:34:30  ganter
+fixed topomap bug
+
+Revision 1.512  2004/02/09 17:06:39  ganter
+fixed timeout behavior for direct serial connection
+
+Revision 1.511  2004/02/08 17:16:25  ganter
+replacing all strcat with g_strlcat to avoid buffer overflows
+
+Revision 1.510  2004/02/08 16:35:10  ganter
+replacing all sprintf with g_snprintf to avoid buffer overflows
+
+Revision 1.509  2004/02/08 12:44:10  ganter
+replacing all sprintf with g_snprintf to avoid buffer overflows
+
+Revision 1.508  2004/02/07 17:46:09  ganter
+...
+
+Revision 1.507  2004/02/07 09:25:42  ganter
+changed status string
+
+Revision 1.506  2004/02/07 00:02:16  ganter
+added "store timezone" button in settings menu
+
+Revision 1.505  2004/02/06 17:11:14  ganter
+disabled mapblast server
+
+Revision 1.504  2004/02/06 16:41:40  ganter
+added -E parameter, which prints out the NMEA messages received
+
+Revision 1.503  2004/02/06 14:55:54  ganter
+added support for user-defined icons
+create the directory: $HOME/.gpsdrive/icons
+place your icons (type must be png) into this directory, with the name of
+the waypoint type, filename must be lowercase
+i.e. for waypoint type "HOTEL" the file must have the name "hotel.png"
+
+Revision 1.502  2004/02/05 19:47:31  ganter
+replacing strcpy with g_strlcpy to avoid bufferoverflows
+USB receiver does not send sentences in direct serial mode,
+so I first send a "\n" to it
+
+Revision 1.501  2004/02/05 08:04:01  ganter
+if no sat fix, satdisplay is red, otherwise green
+
+Revision 1.500  2004/02/04 20:27:47  ganter
+adjust sat level bars
+
+Revision 1.499  2004/02/04 14:47:09  ganter
+added GPGSA sentence for PDOP (Position Dilution Of Precision).
+
+Revision 1.498  2004/02/03 23:19:27  ganter
+fixed wrong string size
+
+Revision 1.497  2004/02/03 08:20:49  ganter
+night mode works fine
+map handling for new users also
+fixed bug: you was unable to edit the name in friends menu
+
+Revision 1.496  2004/02/03 07:11:20  ganter
+working on problems if gpsdrive is not installed
+
+Revision 1.495  2004/02/03 06:17:52  ganter
+nightmode sets background to red
+
+Revision 1.494  2004/02/02 17:54:14  ganter
+new, self rendered earth animation
+
+Revision 1.493  2004/02/02 09:03:42  ganter
+2.08pre10
+
+Revision 1.492  2004/02/02 08:23:10  ganter
+in "Search" window and in "Send message" window you can sort the entries
+by clicking on the column label
+
+Revision 1.491  2004/02/02 07:12:57  ganter
+inserted function calcxytopos, key x,y and right mouseclick are now correct in topomaps
+
+Revision 1.490  2004/02/02 03:38:31  ganter
+code cleanup
+
+Revision 1.489  2004/02/01 01:57:02  ganter
+it seems that nasamaps now working fine
+
+Revision 1.488  2004/01/31 14:48:03  ganter
+pre8
+
+Revision 1.487  2004/01/31 13:43:56  ganter
+nasamaps are working better, but still bugs
+
+Revision 1.486  2004/01/31 06:24:21  ganter
+nasa maps at lon=0 works now
+
+Revision 1.485  2004/01/31 04:43:04  ganter
+...
+
+Revision 1.484  2004/01/31 03:33:11  ganter
+nasa map loading seems to work
+bug: it would not work around 0 meridian
+
+Revision 1.483  2004/01/30 22:20:44  ganter
+convnasamap creates mapfiles from the big nasa map files
+
+Revision 1.482  2004/01/30 17:54:57  ganter
+i have to add gdk_threads_enter()/gdk_threads_leave() into all timeouts :-(
+
+Revision 1.481  2004/01/30 02:58:04  ganter
+new splash picture
+
+Revision 1.480  2004/01/29 05:11:33  ganter
+v2.08pre6
+changed sat level to GPS info
+
+Revision 1.479  2004/01/29 04:42:17  ganter
+after valgrind
+
+Revision 1.478  2004/01/29 02:32:58  ganter
+changed layout of sats display
+
+Revision 1.477  2004/01/28 15:31:43  ganter
+initialize FDs to -1
+
+Revision 1.476  2004/01/28 14:46:02  ganter
+fixed silly  if (sock == 0) bug
+
+Revision 1.475  2004/01/28 12:33:45  ganter
+...
+
+Revision 1.474  2004/01/28 10:14:31  ganter
+replaced earth with a better one
+
+Revision 1.473  2004/01/28 09:32:57  ganter
+tested for memory leaks with valgrind, looks good :-)
+
+Revision 1.472  2004/01/28 04:04:38  ganter
+new animation
+
+Revision 1.471  2004/01/28 03:20:16  ganter
+moved tooltip
+
+Revision 1.470  2004/01/28 03:13:57  ganter
+...
+
+Revision 1.469  2004/01/28 03:11:11  ganter
+added gpsdriveanim.gif handling
+
+Revision 1.468  2004/01/28 02:59:18  ganter
+added animated icon
+you can now switch between gpsd and sim mode
+
+Revision 1.467  2004/01/27 22:51:56  ganter
+added "direct serial connection" button in settings menu
+
+Revision 1.466  2004/01/27 08:29:57  ganter
+fixed bug of not working simulation mode
+
+Revision 1.465  2004/01/27 06:59:14  ganter
+The baudrate is now selectable in settings menu
+GpsDrive now connects to the GPS receiver in following order:
+Try to connect to gpsd
+Try to find Garble-mode Garmin
+Try to read data directly from serial port
+
+If this all fails, it falls back into simulation mode
+
+Revision 1.464  2004/01/27 05:25:59  ganter
+added gpsserial.c
+
+gpsdrive now detects a running gps receiver
+You don't need to start gpsd now, serial connection is handled by GpsDrive directly
+
+Revision 1.463  2004/01/25 05:58:41  ganter
+...
+
+Revision 1.462  2004/01/25 05:51:48  ganter
+added alignments for battery and temperature
+
+Revision 1.461  2004/01/25 01:11:34  ganter
+...
+
+Revision 1.460  2004/01/25 00:16:23  ganter
+centered compass and satlevel display
+
+Revision 1.459  2004/01/24 23:52:35  ganter
+fixed bug in NESW (north,east,south,west compass label) string handling with
+unicode
+
+Revision 1.458  2004/01/24 22:51:55  ganter
+set transient for file dialogs
+
+Revision 1.457  2004/01/24 03:27:50  ganter
+friends label color is now changeable in settings menu
+
+Revision 1.456  2004/01/22 06:38:02  ganter
+working on friendsd
+
+Revision 1.455  2004/01/22 05:49:22  ganter
+friendsd now sends a receiving acknoledge
+
+Revision 1.454  2004/01/21 06:37:54  ganter
+added compass image
+
+Revision 1.453  2004/01/20 21:50:36  ganter
+...
+
+Revision 1.452  2004/01/20 21:35:51  ganter
+import maps is working again
+
+Revision 1.451  2004/01/20 17:39:18  ganter
+working on import function
+
+Revision 1.450  2004/01/20 06:25:18  ganter
+fixed N/S bug in display
+disabled non-working menu entries
+
+Revision 1.449  2004/01/18 20:01:23  ganter
+fixed bug for GTK<2.2.x
+
+Revision 1.448  2004/01/18 19:37:24  ganter
+this is the nice 2.07 release
+
+Revision 1.447  2004/01/18 06:34:54  ganter
+button for reminder window
+
+Revision 1.446  2004/01/18 05:53:35  ganter
+try to find the problem that x-server eats cpu after 5 hours
+
+Revision 1.445  2004/01/18 05:28:02  ganter
+changed all popups to gtk_dialog instead of a toplevel window
+cosmetic changes in settings menu
+
+Revision 1.444  2004/01/17 18:12:17  ganter
+fixed some memory leaks
+
+Revision 1.443  2004/01/17 17:41:48  ganter
+replaced all gdk_pixbuf_render_to_drawable (obsolet) with gdk_draw_pixbuf
+
+Revision 1.442  2004/01/17 06:11:04  ganter
+added color setting for track color
+
+Revision 1.441  2004/01/17 03:42:13  ganter
+added better icon
+
+Revision 1.440  2004/01/17 00:58:09  ganter
+randomize the startposition and set it the hamburg cementry :-)
+
+Revision 1.439  2004/01/16 19:49:30  ganter
+added new icon
+
+Revision 1.438  2004/01/16 13:19:59  ganter
+update targetlist if goto button pressed
+
+Revision 1.437  2004/01/15 22:10:11  ganter
+changed waypoint layout
+
+Revision 1.436  2004/01/15 21:57:43  ganter
+v2.07pre9
+
+Revision 1.435  2004/01/15 16:00:21  ganter
+added gpssmswatch
+
+Revision 1.434  2004/01/14 04:26:24  ganter
+indent
+
+Revision 1.433  2004/01/14 04:25:17  ganter
+cosmetic changes in sendname selection
+
+Revision 1.432  2004/01/14 03:47:36  ganter
+removed some debug output
+
+Revision 1.431  2004/01/14 03:31:37  ganter
+now message acknoledge is done to and from friendsserver
+
+Revision 1.430  2004/01/14 01:20:28  ganter
+added a Goto button in search menu, now you can jump to your waypoints
+
+Revision 1.429  2004/01/14 00:48:49  ganter
+fixed bug if no crypt is avail.
+
+Revision 1.428  2004/01/14 00:06:27  ganter
+...
+
+Revision 1.427  2004/01/13 23:38:30  ganter
+added new field in waypoints display for number of friends received
+
+Revision 1.426  2004/01/13 20:16:07  ganter
+smaller message compose window
+
+Revision 1.425  2004/01/13 19:43:50  ganter
+removed old GTK1.x accelerators
+
+Revision 1.424  2004/01/13 19:30:41  ganter
+changed "operations menu" do "Misc. menu"
+
+Revision 1.423  2004/01/13 14:31:31  ganter
+status bar
+
+Revision 1.422  2004/01/13 14:09:43  ganter
+...
+
+Revision 1.421  2004/01/13 12:52:54  ganter
+added patch from Russell Harding <hardingr at billingside.com> for better menu bar
+
+Revision 1.420  2004/01/13 00:31:41  ganter
+fixed multiline message bug
+
+Revision 1.419  2004/01/12 22:22:06  ganter
+make message menu entry insensitive if message is not yet send
+
+Revision 1.418  2004/01/12 22:00:18  ganter
+changed "Chat" to "Messages"
+
+Revision 1.417  2004/01/12 21:52:02  ganter
+added friends message service
+
+Revision 1.416  2004/01/11 13:55:22  ganter
+...
+
+Revision 1.415  2004/01/11 13:54:15  ganter
+reduce height
+
+Revision 1.414  2004/01/11 13:48:28  ganter
+added about screen
+added menubar
+
+Revision 1.413  2004/01/10 10:06:00  ganter
+make select target popup larger
+
+Revision 1.412  2004/01/10 09:59:56  ganter
+avoid NAN in calcdist if position is exactly the same as destination
+
+Revision 1.411  2004/01/10 09:54:16  ganter
+autsch, big mistake in drawfriends
+
+Revision 1.410  2004/01/10 09:38:47  ganter
+some changes in friendsmode settings menu
+
+Revision 1.409  2004/01/09 13:14:08  ganter
+fixed locale bug for topo maps
+
+Revision 1.408  2004/01/09 10:32:24  ganter
+...
+
+Revision 1.407  2004/01/09 00:00:43  ganter
+added topomap download patch from Russell Harding <hardingr at billingside.com>
+Thanks for the lot of work!
+
+Revision 1.406  2004/01/06 09:26:37  ganter
+...
+
+Revision 1.405  2004/01/06 08:46:16  ganter
+changed target text to the shorter form: "To:" instead of "Distance to"
+
+Revision 1.404  2004/01/06 07:50:51  ganter
+friendsmode: displays selected unit instead of km/h, displayed time now respects timezone setting.
+
+Revision 1.403  2004/01/05 05:52:58  ganter
+changed all frames to respect setting
+
+Revision 1.402  2004/01/04 17:05:15  ganter
+display SQL waypoint fields only if SQL is used
+
+Revision 1.401  2004/01/03 03:39:52  ganter
+added settings switch for etched frames
+
+Revision 1.400  2004/01/03 02:08:02  ganter
+...
+
+Revision 1.399  2004/01/02 10:15:05  ganter
+changed back Geschw. to Geschwindigkeit (in german translation)
+
+Revision 1.398  2004/01/02 09:42:35  ganter
+...
+
+Revision 1.397  2004/01/02 09:19:23  ganter
+...
+
+Revision 1.396  2004/01/02 09:07:00  ganter
+translated
+
+Revision 1.395  2004/01/02 08:58:23  ganter
+working on wplabels
+
+Revision 1.394  2004/01/02 08:37:18  ganter
+nicer waypoint info
+
+Revision 1.393  2004/01/01 09:07:31  ganter
+v2.06
+trip info is now live updated
+added cpu temperature display for acpi
+added tooltips for battery and temperature
+
+Revision 1.392  2003/12/28 23:33:48  ganter
+...
+
+Revision 1.391  2003/12/28 23:29:15  ganter
+added battery tooltip
+
+Revision 1.390  2003/12/28 23:19:45  ganter
+tooltip for temperature
+
+Revision 1.389  2003/12/28 22:58:05  ganter
+...
+
+Revision 1.388  2003/12/28 22:29:26  ganter
+...
+
+Revision 1.387  2003/12/28 22:20:23  ganter
+temp tooltip
+
+Revision 1.386  2003/12/28 22:16:20  ganter
+...
+
+Revision 1.385  2003/12/28 21:35:34  ganter
+temp...
+
+Revision 1.384  2003/12/28 21:32:52  ganter
+...
+
+Revision 1.383  2003/12/28 21:19:28  ganter
+working on temperature
+
+Revision 1.382  2003/12/28 20:12:29  ganter
+better acpi-temperature support
+
+Revision 1.381  2003/12/28 19:48:01  ganter
+added patch from Jaap Hogenberg for temperature display
+
+Revision 1.380  2003/12/28 08:49:35  ganter
+...
+
+Revision 1.379  2003/12/28 08:44:11  ganter
+distance display changes
+
+Revision 1.378  2003/12/28 08:21:19  ganter
+new gpsreplay version
+
+Revision 1.377  2003/12/28 08:14:37  ganter
+cosmetic changes in distance and altitude display
+
+Revision 1.376  2003/12/28 07:47:24  ganter
+...
+
+Revision 1.375  2003/12/28 07:44:16  ganter
+removed some warnings
+
+Revision 1.373  2003/12/28 06:04:54  ganter
+new version 1.20 of gpsreplay
+
+Revision 1.372  2003/12/23 23:33:51  ganter
+release 2.06pre2
+
+Revision 1.371  2003/12/23 23:27:29  ganter
+fix bug (download button was not sensitive after download)
+
+Revision 1.370  2003/12/23 21:00:27  ganter
+v2.06pre2
+disable multiple popups
+
+Revision 1.369  2003/12/22 19:33:34  ganter
+better test if image has alpha
+
+Revision 1.368  2003/12/21 17:31:32  ganter
+error handling for not installed program
+real v2.05 :-)
+
+Revision 1.367  2003/12/21 16:59:03  ganter
+fixed bug in timezone setting
+timezone will be stored now
+
+Revision 1.366  2003/12/17 21:30:02  ganter
+acpi battery status works now again (tested with 2.4.22ac4)
+
+Revision 1.365  2003/12/17 20:32:31  ganter
+now CPU load is reduced heavily through removing alpha channel from image
+
+Revision 1.364  2003/12/17 02:17:56  ganter
+added donation window
+waypoint describtion (.dsc files) works again
+added dist_alarm ...
+
+Revision 1.363  2003/10/23 17:39:26  ganter
+changes for cygwin
+
+Revision 1.362  2003/10/04 17:43:58  ganter
+translations don't need to be utf-8, but the .po files must specify the
+correct coding (ie, UTF-8, iso8859-15)
+
+Revision 1.361  2003/10/01 23:42:30  ganter
+specfile patched
+
+Revision 1.360  2003/09/18 10:33:40  ganter
+changed orange color
+
+Revision 1.359  2003/09/17 19:31:47  ganter
+cvs test
+
+Revision 1.358  2003/09/17 12:05:14  ganter
+2.05pre1
+fixed malloc problem in friends server
+force name in friendsmode to replace space with underscore
+
+Revision 1.357  2003/08/12 14:21:18  ganter
+v2.03
+fixed kismet bug (wrong GPS position)
+compiles also on SuSE 8.1
+compiles on GTK+ >= 2.0.6
+fixed wrong font (Sans 10 Bold 10 message)
+
+Revision 1.356  2003/08/12 12:21:19  ganter
+fixed bugs of PDA patch
+
+Revision 1.355  2003/07/25 23:28:34  ganter
+2.01
+expedia works again
+
+Revision 1.354  2003/07/25 12:17:14  ganter
+2.00
+
+Revision 1.353  2003/06/08 13:31:49  ganter
+release 2.0pre9
+Added setting of timeperiod in friends mode (see settings menu)
+
+Revision 1.352  2003/06/01 17:27:33  ganter
+v2.0pre8
+friendsmode works fine and can be set in settings menu
+
+Revision 1.351  2003/05/31 23:39:41  ganter
+...
+
+Revision 1.350  2003/05/31 20:32:01  ganter
+friendsd2 works fine with sven's server
+
+Revision 1.348  2003/05/29 19:26:19  ganter
+testing...
+
+Revision 1.346  2003/05/11 21:15:46  ganter
+v2.0pre7
+added script convgiftopng
+This script converts .gif into .png files, which reduces CPU load
+run this script in your maps directory, you need "convert" from ImageMagick
+
+Friends mode runs fine now
+Added parameter -H to correct the alitude
+
+Revision 1.345  2003/05/11 11:17:53  ganter
+friendsmode is now working fine
+
+Revision 1.344  2003/05/08 21:18:04  ganter
+added settings menu entry for fonts setting
+made a new cool splash screen
+updated da and it translations
+v2.0-pre6
+
+Revision 1.343  2003/05/07 22:50:08  ganter
+als functions are working (except import)
+ready for 2.0pre4
+
+Revision 1.342  2003/05/07 19:27:13  ganter
+replaced degree symbol with unicode string
+gpsdrive should now be unicode clean
+
+Revision 1.341  2003/05/07 10:52:23  ganter
+...
+
+Revision 1.340  2003/05/06 17:49:11  ganter
+wp label text is now pango
+
+Revision 1.339  2003/05/03 18:59:47  ganter
+shortcuts are now working
+
+Revision 1.338  2003/05/03 03:03:30  ganter
+added help window
+
+Revision 1.337  2003/05/02 19:40:43  ganter
+changed location of datadir files
+
+Revision 1.336  2003/05/02 18:27:18  ganter
+porting to GTK+-2.2
+GpsDrive Version 2.0pre3
+
+Revision 1.335  2003/04/28 21:11:03  ganter
+1.33pre1
+
+Revision 1.334  2003/04/28 15:42:38  ganter
+compiles now with gcc 3.3
+
+Revision 1.333  2003/04/28 15:10:03  ganter
+...
+
+Revision 1.332  2003/01/26 20:27:46  ganter
+v1.32
+
+Revision 1.331  2003/01/23 14:05:34  ganter
+added greek translation
+added geocache scripts
+added geocache icon
+improved search for libmysqlclient.so
+
+Revision 1.330  2003/01/15 19:09:07  ganter
+v1.32pre4
+
+Revision 1.329  2003/01/15 17:03:16  ganter
+MySQL is now loaded dynamically on runtime, no mysql needed for compile.
+Needs only libmysqlclient.so now.
+
+Revision 1.328  2003/01/15 15:30:28  ganter
+before dynamically loading mysql
+
+Revision 1.327  2002/12/24 01:46:00  ganter
+FAQ
+
+Revision 1.326  2002/12/23 18:39:47  ganter
+...
+
+Revision 1.325  2002/12/08 03:18:26  ganter
+shortly before 1.31
+
+Revision 1.324  2002/12/08 01:38:26  ganter
+perhaps fix for systems without glib-locale installed.
+added "y" key to create waypoint at current mouse position.
+
+Revision 1.323  2002/12/07 21:38:46  ganter
+delete wp now also works in sqlmode
+
+Revision 1.322  2002/11/29 15:33:45  ganter
+v1.31pre3
+
+Revision 1.321  2002/11/27 00:02:27  ganter
+1.31pre2
+
+Revision 1.320  2002/11/25 21:56:23  ganter
+added icons
+
+Revision 1.319  2002/11/25 20:30:22  ganter
+added airport icon
+
+Revision 1.318  2002/11/24 23:36:17  ganter
+added icon
+
+Revision 1.317  2002/11/24 17:10:46  ganter
+radar R- works again
+
+Revision 1.316  2002/11/24 16:56:29  ganter
+speedtrap works now with sql
+
+Revision 1.315  2002/11/24 16:01:32  ganter
+added speedtrap icon, thanks to Sven Fichtner
+
+Revision 1.314  2002/11/19 14:49:39  ganter
+...
+
+Revision 1.313  2002/11/16 20:23:44  ganter
+bugfixes for 1.30
+
+Revision 1.312  2002/11/14 00:05:55  ganter
+added README.kismet
+v 1.30pre5
+
+Revision 1.311  2002/11/13 18:20:41  ganter
+fixed buffer overflow in gpssql.c
+
+Revision 1.310  2002/11/13 17:31:57  ganter
+added display of number of waypoints
+
+Revision 1.309  2002/11/12 20:37:15  ganter
+v30pre4
+added more icons, fix for kismet w/o mysql
+
+Revision 1.308  2002/11/08 23:35:19  ganter
+v1.30pre3
+
+Revision 1.307  2002/11/08 22:08:10  ganter
+...
+
+Revision 1.306  2002/11/06 05:29:14  ganter
+fixed most warnings
+
+Revision 1.305  2002/11/06 01:44:15  ganter
+v1.30pre2
+
+Revision 1.304  2002/11/05 17:04:04  ganter
+...
+
+Revision 1.303  2002/11/05 00:00:14  ganter
+gpskismet seems to work
+
+Revision 1.302  2002/11/02 12:38:55  ganter
+changed website to www.gpsdrive.de
+
+Revision 1.301  2002/10/30 09:32:49  ganter
+v1.29pre9
+hopefully removed all gtk-warnings
+
+Revision 1.300  2002/10/29 16:42:03  ganter
+improved configure.in (sql can be disabled)
+v1.29pre9
+
+Revision 1.299  2002/10/27 10:51:29  ganter
+1.28pre8
+
+Revision 1.298  2002/10/24 08:44:09  ganter
+...
+
+Revision 1.297  2002/10/16 14:16:13  ganter
+working on SQL gui
+
+Revision 1.296  2002/10/15 07:44:11  ganter
+...
+
+Revision 1.295  2002/10/14 08:38:59  ganter
+v1.29pre3
+added SQL support
+
+Revision 1.294  2002/09/24 08:51:55  ganter
+updated translations
+changed gpsdrive.spec
+
+Revision 1.293  2002/09/18 13:42:52  ganter
+mapblast url changed again
+v1.28pre1
+
+Revision 1.292  2002/09/17 20:57:58  ganter
+added copyright and README for gpsd
+v1.27
+
+Revision 1.291  2002/09/12 10:05:21  ganter
+fixed Timeout if getting only GGA data
+
+Revision 1.290  2002/09/10 12:55:25  ganter
+v1.27pre1
+set battery status update to 5 seconds
+added portuguese translation
+
+Revision 1.289  2002/09/01 18:30:06  ganter
+fixed segfault on no apm computers
+
+Revision 1.288  2002/08/31 13:10:52  ganter
+v1.26 release
+
+Mapblast server works again (they changed the URL).
+Bugfix for -a option.
+Added -i option to ignore NMEA checksum (for broken GPS receivers).
+Added "j" key to switch to next waypoint on route mode.
+Added support for festival lite (flite) speech output.
+
+Revision 1.287  2002/08/29 15:20:51  ganter
+timezone in settings/geoinfo works, but window must be refreshed
+
+Revision 1.286  2002/08/29 13:11:05  ganter
+1.26pre65
+Mapblast works again.
+Download between 0E and 1W works now in non-degree display mode.
+Current speed speech output only when driving faster than 20km/h
+
+Revision 1.285  2002/08/29 11:17:40  ganter
+will change mapblast URL
+
+Revision 1.284  2002/08/05 19:16:27  ganter
+fixed bug in mapdownload (triggered thru change to HTTP1.1)
+
+Revision 1.283  2002/08/04 12:24:57  ganter
+Current speed speech output only when driving faster than 20km/h
+
+Revision 1.282  2002/07/30 21:33:53  ganter
+added "J" key to switch to next waypoint
+
+Revision 1.281  2002/07/30 21:01:30  ganter
+added patches from Marco Molteni for separate track.c
+
+Revision 1.280  2002/07/30 20:49:54  ganter
+1.26pre3
+added support for festival lite (flite)
+changed http request to HTTP1.1 and added correct servername
+
+Revision 1.279  2002/07/17 12:31:54  ganter
+v1.25
+
+Revision 1.278  2002/07/14 18:22:19  ganter
+v1.25pre1
+
+Revision 1.277  2002/07/14 14:23:34  ganter
+testnewmap works now again, but w/o new algorithmus
+
+Revision 1.276  2002/07/13 23:40:17  ganter
+changed testnewmap algorithmus
+
+Revision 1.275  2002/07/13 13:31:41  ganter
+in download menu the download area is now marked
+
+Revision 1.274  2002/07/02 12:12:55  ganter
+v1.24
+
+Revision 1.273  2002/07/01 00:45:00  ganter
+added trip info (in settings menu)
+ACPI fixes (close battery fd)
+
+Revision 1.272  2002/06/30 11:32:28  ganter
+fix convertRMC
+new arrows
+
+Revision 1.271  2002/06/30 09:38:17  ganter
+make fields in convertXXX larger, earthmate seems to send larger GPGSV
+v1.24pre1
+
+Revision 1.270  2002/06/29 21:47:38  ganter
+v1.23
+
+Revision 1.269  2002/06/29 00:28:21  ganter
+v1.23pre10
+
+Revision 1.268  2002/06/29 00:23:18  ganter
+added ACPI support for battery meter
+
+Revision 1.267  2002/06/23 17:09:35  ganter
+v1.23pre9
+now PDA mode looks good.
+
+Revision 1.266  2002/06/23 08:57:50  ganter
+changed menu look for -x
+
+Revision 1.265  2002/06/16 21:35:08  ganter
+got settings smaller
+
+Revision 1.264  2002/06/16 17:50:34  ganter
+working on PDA screen
+
+Revision 1.263  2002/06/12 10:58:49  ganter
+v1.23pre7
+
+Revision 1.262  2002/06/10 18:04:22  ganter
+added compass
+
+Revision 1.261  2002/06/02 20:54:09  ganter
+added navigation.c and copyrights
+
+Revision 1.260  2002/06/02 18:46:30  ganter
+v1.23pre6
+did lot of bug fixing for small displays.
+
+Revision 1.259  2002/06/01 15:42:31  ganter
+fixed bug for little screens
+added new wpget from Miguel Angelo Rozsas <miguel at rozsas.xx.nom.br>
+
+Revision 1.258  2002/06/01 15:24:42  ganter
+working on bugfix for small screens
+
+Revision 1.257  2002/05/30 19:10:55  ganter
+v1.23pre4
+use GPGGA if no GPRMC is available
+
+Revision 1.256  2002/05/29 20:41:41  ganter
+added swedish translation
+
+Revision 1.255  2002/05/29 19:21:01  ganter
+added gpsfetchmap.pl and geocache2way
+
+Revision 1.254  2002/05/23 09:07:37  ganter
+v1.23pre1
+added new BSD battery stuff
+
+Revision 1.253  2002/05/20 22:41:02  ganter
+removed race condition in setutc()
+new 1.22
+
+Revision 1.252  2002/05/20 20:40:23  ganter
+v1.22
+
+Revision 1.251  2002/05/20 10:02:48  ganter
+v1.22pre7
+
+Revision 1.250  2002/05/19 19:25:16  ganter
+fly and nautic loading works
+
+Revision 1.249  2002/05/18 20:58:53  ganter
+finished geo infos
+v1.22pre5
+
+Revision 1.248  2002/05/17 23:22:25  ganter
+added sunrise,sunset in settings menu
+
+Revision 1.247  2002/05/17 20:05:23  ganter
+changed settings menu to notebook widget
+
+Revision 1.246  2002/05/15 19:05:31  ganter
+created settings.c
+
+Revision 1.245  2002/05/13 10:01:47  ganter
+fixed bug in downloadsetparm if not decimal notation
+new v1.21
+
+Revision 1.244  2002/05/12 23:14:53  ganter
+new 1.21
+changed B to N key.
+
+Revision 1.243  2002/05/12 20:54:08  ganter
+v1.21
+
+Revision 1.242  2002/05/12 19:52:39  ganter
+added nightmode. See settings menu.
+
+Revision 1.241  2002/05/11 15:45:31  ganter
+v1.21pre1
+degree,minutes,seconds should work now
+
+Revision 1.240  2002/05/10 00:20:14  ganter
+display of lat/long is switchable between decimal and degree,minutes
+and seconds display
+added display of radar warning as scrolling text
+distance to recognize arriving of the destination is now speed
+depending
+added check of the checksum of the NMEA sentences to avoid crashes if
+invalid NMEA sentences are received
+
+Revision 1.239  2002/05/04 09:17:36  ganter
+added new intl subdir
+
+Revision 1.238  2002/05/02 01:34:11  ganter
+added speech output of waypoint description
+
+Revision 1.237  2002/05/02 00:31:21  ganter
+speech output: say reached target also if not in route mode
+
+Revision 1.236  2002/05/01 21:44:38  ganter
+added README.FreeBSD
+
+Revision 1.235  2002/04/29 02:52:18  ganter
+v1.20pre1
+added display of sat position
+
+Revision 1.234  2002/04/28 22:21:13  ganter
+new 1.19 ;-)
+
+Revision 1.233  2002/04/28 21:54:20  ganter
+v1.19
+
+Revision 1.232  2002/04/28 11:53:43  ganter
+v1.19pre2
+button to delete waypoint
+fixed miles distance on startup in miles mode
+new sat level display colors
+
+Revision 1.231  2002/04/21 13:29:30  ganter
+fixed bug in downloadsetparms (longitude comparision)
+
+Revision 1.230  2002/04/21 13:15:02  ganter
+Now getting good maps for USA from expedia server works: I changed in
+the URL EUR0809 to USA0409 if longitude is west of 30ÂŽ°W. If anyone
+have found a system for this EUR0809,USA0409 strings in the URL,
+please inform me.
+
+Revision 1.229  2002/04/21 00:27:22  ganter
+v1.18pre3
+much more precise calculation of distance (uses WGS84 elipsoid)
+
+Revision 1.228  2002/04/18 22:50:37  ganter
+added turkish translation
+added display number of satellites
+v1.18pre2
+
+Revision 1.227  2002/04/16 21:08:50  ganter
+...
+
+Revision 1.226  2002/04/14 23:06:26  ganter
+v1.17
+
+Revision 1.225  2002/04/14 15:25:56  ganter
+v1.17pre3
+added simulaton follow switch in setup menu
+
+Revision 1.224  2002/04/13 18:08:30  ganter
+added comment
+
+Revision 1.223  2002/04/13 17:49:44  ganter
+...
+
+Revision 1.222  2002/04/13 17:30:35  ganter
+v1.17pre2
+
+Revision 1.221  2002/04/12 14:10:19  ganter
+removed way.txt checking and popup, if there are wrong entries, the
+entries are ignored, not the whole file.
+
+Revision 1.220  2002/04/10 21:32:55  ganter
+sometimes wrong coordinates in download map window, fixed.
+
+Revision 1.219  2002/04/07 19:55:54  ganter
+bugfix in gpsdrive.c and gpsfetchmap
+
+Revision 1.218  2002/04/07 17:15:31  ganter
+v1.16
+
+Revision 1.217  2002/04/07 12:23:41  ganter
+v1.16pre9
+
+Revision 1.216  2002/04/07 00:47:42  ganter
+added fly.c
+added more GPS-receivers
+
+Revision 1.215  2002/04/06 19:14:42  ganter
+I found a better documentation for GARMIN receivers. So I removed DOP
+and added EPE (estimated position error). Sorry, if you have no
+GARMIN. The used NMEA sentence is $PGRME.
+
+Revision 1.214  2002/04/06 17:12:11  ganter
+changed #elif to #else
+
+Revision 1.213  2002/04/06 17:08:56  ganter
+v1.16pre8
+cleanup of gpsd files
+
+Revision 1.212  2002/04/06 13:14:04  ganter
+removed feature to set posmode on with left mouseclick in the map
+window. It has to switched on with the toogle button in the menu.
+
+Revision 1.211  2002/04/06 00:36:01  ganter
+changing filelist
+
+Revision 1.210  2002/04/05 23:20:51  ganter
+added DGPS displaying
+added DOP (DILUTION OF PRECISION):
+A measure of the GPS receiver-satellite geometry. A low DOP value
+indicates better relative geometry and correspondingly higher
+accuracy.
+
+Revision 1.209  2002/04/05 19:05:48  ganter
+changed to Remco Treffkorn's gpsd
+
+Revision 1.208  2002/04/04 22:34:07  ganter
+v1.16pre7
+added altitude in stored tracks
+added zoom factor display on map
+
+Revision 1.207  2002/04/03 10:20:31  ganter
+added altitude display
+
+Revision 1.206  2002/04/03 08:57:25  ganter
+trying to get out altitude
+
+Revision 1.205  2002/04/02 19:46:15  ganter
+v1.16pre4
+you can type in coordinates in the "Add waypoint" window (x-key)
+Autosave of configuration
+update spanish translation (translater had holiday)
+
+Revision 1.204  2002/04/01 22:39:04  ganter
+v1.16pre3
+
+Revision 1.203  2002/04/01 22:32:04  ganter
+added garmin and serialdevice in setup
+
+Revision 1.202  2002/04/01 14:38:13  ganter
+really upload new 1.15 and v1.16-pre2
+added penguin
+fixed gpsd detection
+variable testgarmin inserted, set it to FALSE if you have problems with your
+NMEA receiver detection.
+don't forget to call "gpsdrive -t /dev/ttySx" the first time, where x is
+your port number (0=COM1:)
+
+Revision 1.201  2002/04/01 14:13:38  ganter
+v1.16-pre2
+serialdev fix was not good enough
+
+Revision 1.200  2002/04/01 12:55:45  ganter
+I decided to create a new 1.15 from 1.16-pre1 because if the serialdev bug.
+
+Revision 1.199  2002/04/01 12:43:12  ganter
+v1.16-pre1 bugfix for serialdev if no gpsdriverc exists yet
+
+Revision 1.198  2002/04/01 02:35:13  ganter
+added -b parameter for NMEA server
+added -c parameter to set position in simulation mode to waypoint name
+
+Revision 1.197  2002/03/31 20:42:55  ganter
+v1.15 Summary:
+You can select your "way*.txt" file in setup menu.
+	   The DEFAUL entry in way.txt is now obsolet.
+	   The "setdefaultpos" entry in gpsdricerc in now obsolet.
+	   Added battery meter, shows battery capacity and battery/plugged mode
+	   (only shown on notebooks).
+	   Removed command line parameter: -w.
+	   Added command line parameter: -a , use it if gpsdrive
+	   crashes (happens on broken apm BIOSes).
+	   Removed popup to start GPSD, its now a button.
+	   Added new unit "nautical miles".
+	   Moved buttons to setup menu, setup menu with new options.
+
+Revision 1.196  2002/03/31 18:11:06  ganter
+v1.15-pre5
+you can select your "way*.txt" file in setup menu
+The DEFAUL entry in way.txt is now obsolet
+The "setdefaultpos" entry in gpsdricerc in now obsolet
+
+Revision 1.195  2002/03/31 16:41:25  ganter
+The "DEFAULT" waypoint is now obsolet. All references to it will now
+be removed.
+
+Revision 1.194  2002/03/31 14:30:23  ganter
+working on chooseable waypoint files
+
+Revision 1.193  2002/03/30 20:07:33  ganter
+2nd pre 1.15
+
+Revision 1.192  2002/03/30 10:37:43  ganter
+pre 1.15
+
+Revision 1.191  2002/03/30 00:42:58  ganter
+created setup menu
+
+Revision 1.190  2002/03/29 23:09:06  ganter
+added battery meter, shows battery capacity and battery/plugged mode
+
+Revision 1.189  2002/03/24 17:45:26  ganter
+v1.14 some cosmetic changes
+
+Revision 1.188  2002/03/23 18:38:38  ganter
+v1.13
+
+Revision 1.187  2002/03/23 18:34:02  ganter
+added better background for waypoint text, wp text has now a bold font
+
+Revision 1.186  2002/03/22 00:36:40  ganter
+bugfix for late gpsd start
+remembering last position if setdefaultpos = 0 in gpsdriverc
+
+Revision 1.185  2002/03/21 21:49:08  ganter
+added question if gpsd should be started.
+Thanks to daZwerg(gEb-Dude) for suggestion.
+
+Revision 1.184  2002/03/17 23:14:06  ganter
+v1.12
+
+Revision 1.183  2002/03/17 19:13:15  ganter
+added route
+v1.12 preview
+
+Revision 1.182  2002/03/16 20:21:07  ganter
+fixed segfault if no gpsdriverc exists. New v1.11
+
+Revision 1.181  2002/03/16 19:17:59  ganter
+v1.11
+
+Revision 1.180  2002/03/16 19:15:10  ganter
+added gpsdriverc file to save and restore settings
+added shadow to all drawn elements on map
+removed -m flag for setting miles because it is saved in gpsdriverc
+
+Revision 1.179  2002/03/14 23:54:16  ganter
+added speech output of target set
+use HTTP_PROXY or http_proxy for enviroment variable to set proxy server
+
+Revision 1.178  2002/03/10 18:50:52  ganter
+minimap is now clickable for switch to position mode
+parameter -1 for 1 button mouse, i.e. touchpads
+viewable satellites with 0db Signal are shown als short red bar
+
+Revision 1.177  2002/03/03 15:31:52  ganter
+posmode is switched off after 10 seconds automatically
+
+Revision 1.176  2002/02/27 12:00:13  ganter
+download default is now expedia server
+
+Revision 1.175  2002/02/26 15:34:17  ganter
+added x key for set waypoint on actual position
+
+Revision 1.174  2002/02/25 01:45:38  ganter
+bugfix for loading tracks. now date/time is also loaded
+
+Revision 1.173  2002/02/24 22:26:41  ganter
+new v1.9, added shortcuts
+
+Revision 1.172  2002/02/24 20:15:05  ganter
+prevent to call target window more than once
+
+Revision 1.171  2002/02/24 19:38:44  ganter
+Real, real v1.9, fixed division by zero handling
+
+Revision 1.170  2002/02/24 19:16:27  ganter
+Real v1.9, added  -ffast-math because of better DIVZERO handling in code
+
+Revision 1.169  2002/02/24 16:46:04  ganter
+v1.9
+
+Revision 1.168  2002/02/24 15:58:24  ganter
+the "select waypoint" window is now auto-updated and shows every 5
+seconds the true distance to the waypoints.
+
+Revision 1.167  2002/02/23 23:47:55  ganter
+added set waypoint at current position by CTRL-right mouse click
+
+Revision 1.166  2002/02/18 01:37:18  ganter
+added set waypoint by CTRL-left mouse click and storing into way.txt
+
+Revision 1.165  2002/02/17 23:35:29  ganter
+perhaps bugfix for black maps
+added reread of way.txt if file is changed
+
+Revision 1.164  2002/01/11 16:38:14  ganter
+Changed URL for map webservers. A lot of thanks to Oliver Kuehlert <Oliver.Kuehlert at mpi-hd.mpg.de>!
+
+Revision 1.163  2001/12/12 23:06:48  ganter
+added changes from Richard Scheffenegger <rscheff at chello.at>
+
+Revision 1.162  2001/12/02 21:41:44  ganter
+fixed bug in setlocale
+
+Revision 1.161  2001/12/02 17:40:37  ganter
+friends mode bugfix. Enhanced -x option
+
+Revision 1.160  2001/11/16 20:12:19  ganter
+v1.5
+
+Revision 1.159  2001/11/16 18:00:54  ganter
+tcpserver/client works
+
+Revision 1.158  2001/11/13 18:37:46  ganter
+v1.4 enhanced friends functions
+
+Revision 1.157  2001/11/12 19:55:47  ganter
+v1.3
+
+Revision 1.156  2001/11/12 19:11:53  ganter
+friends server and client starting to work
+
+Revision 1.155  2001/11/11 17:25:34  ganter
+added friendsd
+
+Revision 1.154  2001/11/04 19:38:32  ganter
+autodetects setting for voice output, cosmetic changes
+
+Revision 1.153  2001/11/03 23:27:00  ganter
+moved manpages to man directory
+
+Revision 1.152  2001/11/03 19:22:07  ganter
+next public v1.1, made testnewmap more accurate
+
+Revision 1.151  2001/11/03 19:10:05  ganter
+new layout, some buttons are now checkboxes
+
+Revision 1.150  2001/11/03 12:52:12  ganter
+v1.1, added best map button and next more/less detailed map button
+
+Revision 1.149  2001/11/02 00:42:32  ganter
+real v1.0, changed manpage
+
+Revision 1.148  2001/11/02 00:10:02  ganter
+v1.0 for public
+
+Revision 1.147  2001/11/01 20:17:58  ganter
+v1.0 added spanish voice output
+
+Revision 1.146  2001/11/01 11:36:39  ganter
+added festival init for german and english. See manpage
+
+Revision 1.145  2001/10/29 15:26:20  ganter
+added -o
+
+Revision 1.144  2001/10/29 12:43:23  ganter
+added -o option to output NMEA sentences. Written by Dan Egnor <egnor at ofb.net>
+
+Revision 1.143  2001/10/28 17:17:38  ganter
+v0.35
+
+Revision 1.142  2001/10/28 15:54:56  ganter
+v0.35 added load and store track
+
+Revision 1.141  2001/10/27 16:05:03  ganter
+autodetected screen size
+
+Revision 1.140  2001/10/26 17:58:09  ganter
+added auto detecting screen size
+
+Revision 1.139  2001/10/22 23:37:23  ganter
+v 0.34 added proxy server
+
+Revision 1.138  2001/10/21 18:12:51  ganter
+v0.33
+
+Revision 1.137  2001/10/21 16:44:10  ganter
+bugfix in position calculation for big maps.
+pre 0.33
+
+Revision 1.136  2001/10/21 14:38:09  ganter
+found buffer overflow in get_position_data_cb only in NMEA mode, result was wrong text translations.
+
+Revision 1.135  2001/10/21 03:06:30  ganter
+new position calculation looks good, but in progress...
+
+Revision 1.134  2001/10/19 23:30:11  ganter
+track parts are not drawn if no GPS Fix is avail. Should work...
+
+Revision 1.133  2001/10/16 14:11:40  ganter
+added po files
+
+Revision 1.132  2001/10/14 14:35:38  ganter
+really V0.32 expedia server works now
+
+Revision 1.131  2001/10/14 13:09:11  ganter
+working on expedia scaling
+
+Revision 1.130  2001/10/14 11:26:04  ganter
+Program now creates a ~/.gpsdrive directory if it was not found. Also
+it creates a map_koord.txt in it.
+
+Revision 1.129  2001/10/14 10:41:59  ganter
+v0.32 correct path for prefix other than /usr/local
+
+Revision 1.128  2001/10/13 23:04:56  ganter
+corrected paths for locale and pixmap, ./configure --prefix= works now as
+expected
+
+Revision 1.127  2001/10/13 15:33:18  ganter
+test
+
+Revision 1.126  2001/10/09 13:14:02  ganter
+v0.31
+
+Revision 1.125  2001/10/08 23:36:17  ganter
+added download from expedia.com, but it don't work yet.
+Reason: Server don't send CONTENT-LENGTH
+
+Revision 1.124  2001/10/08 12:14:05  ganter
+radar detection stopped working, runs now again
+
+Revision 1.123  2001/10/08 02:24:39  ganter
+fixed bug in testconfig_cb
+
+Revision 1.122  2001/10/07 20:06:08  ganter
+detects wrong names in map_koord.txt
+
+Revision 1.121  2001/10/07 16:30:09  ganter
+v0.30
+
+Revision 1.120  2001/10/07 15:19:55  ganter
+removed some debugging lines
+
+Revision 1.119  2001/10/07 15:17:29  ganter
+import seems to work
+
+Revision 1.118  2001/10/07 00:59:13  ganter
+map import nearly finished
+
+Revision 1.117  2001/10/04 19:26:59  ganter
+added rectangle on minimap
+working on map import
+
+Revision 1.116  2001/09/30 18:45:27  ganter
+v0.29
+added choice of map type
+
+Revision 1.115  2001/09/30 15:54:32  ganter
+added minimap, removed gpsdrivelogo
+
+Revision 1.114  2001/09/30 12:08:11  ganter
+added parameter -x to use a seperate window for the menu
+some changes in speech output
+added help button
+
+Revision 1.113  2001/09/28 15:43:56  ganter
+v0.28 changed layout, some bugfixes
+
+Revision 1.112  2001/09/27 16:52:29  ganter
+....
+
+Revision 1.111  2001/09/25 23:49:43  ganter
+v 0.27
+
+Revision 1.110  2001/09/25 23:32:59  ganter
+some bugfixes for tracking
+
+Revision 1.109  2001/09/25 20:58:13  ganter
+tracking is working
+
+Revision 1.108  2001/09/25 17:00:32  ganter
+fallback font strings corrected
+
+Revision 1.107  2001/09/24 19:42:20  ganter
+removed -s -g -f command line options. GpsDrive tries first port 2222,
+then port 2947 and if not found the GARMIN mode. If this is also not
+found it switches to simulation mode.
+
+Revision 1.106  2001/09/24 19:00:46  ganter
+added support for gpsd by  Remco Treffkorn using port 2947
+
+Revision 1.105  2001/09/23 22:31:13  ganter
+v0.26
+
+Revision 1.104  2001/09/23 22:04:03  ganter
+Added -t and -l command line switches, see gpsdrive -h
+Added german speech texts.
+Bugfix in radar detection. Only the nearest Radar gives speech output.
+Cosmetic changes for markers.
+#define MAXSHOWNWP 100 for max. shown waypoints. Tested with list of
+30000 waypoints. If gpsdrive hangs, reduce number of waypoints in
+file.
+Better fallbacks for fonts. I prefer an arial truetype font. Helvetica
+is used if no arial font is found.
+
+Revision 1.103  2001/09/23 15:06:32  ganter
+....
+
+Revision 1.102  2001/09/23 00:58:59  ganter
+....
+
+Revision 1.101  2001/09/22 23:35:00  ganter
+Added program icon. Added check for way.txt format errors.
+
+Revision 1.100  2001/09/22 16:22:47  ganter
+solved this intl compile problem
+
+Revision 1.99  2001/09/21 23:16:20  ganter
+v0.25
+
+Revision 1.98  2001/09/21 23:11:07  ganter
+added error message for not existent DEFAULT waypoint
+added popup error window
+
+Revision 1.97  2001/09/21 21:32:20  ganter
+In the way.txt waypoint file the waypoint
+named "DEFAULT" is the start position of the program,
+important if you start it in simulation mode.
+So not everybody in the world need to start at my
+house in Austria! ;-)
+Bugfix if at start no map is found.
+
+Revision 1.96  2001/09/21 10:47:06  ganter
+V0.24: bugfix for displays which have not 16 bit colordepth
+
+Revision 1.95  2001/09/20 15:07:44  ganter
+added Radar warning. If you store the radars as waypoints named R-XXXX where
+XXXX can be a incremented number. You hear radar warning as voice message and
+a red/black blinking Bearing pointer.
+
+Revision 1.94  2001/09/18 23:02:03  ganter
+v0.22
+
+Revision 1.93  2001/09/18 22:56:10  ganter
+If you click with the left mouse button on the map you are in "Display
+mode" where a rectangle is the cursor and no position is shown. If you
+zoom or select another map scale, this is done for the position of the
+rectangle-cursor in the same manner as it would be your actual
+position.
+
+The middle mouse button switches back to normal mode. The same if you
+select a target with the right mouse button.  Shift-left-mouse-button
+and shift-right-mouse-button changes the map scale.
+
+Revision 1.92  2001/09/18 21:44:42  ganter
+testnewmap is not o.k.
+
+Revision 1.91  2001/09/18 13:40:13  ganter
+v0.21 using double buffering to avoid flicker.
+
+Revision 1.90  2001/09/18 05:33:06  ganter
+...
+
+Revision 1.89  2001/09/17 19:03:54  ganter
+changed speech text
+
+Revision 1.88  2001/09/17 00:29:38  ganter
+added speech output of bearing
+
+Revision 1.87  2001/09/16 21:36:05  ganter
+speech output is working
+
+Revision 1.86  2001/09/16 19:12:35  ganter
+....
+
+Revision 1.84  2001/09/16 18:42:32  ganter
+now we work on speech output
+
+Revision 1.83  2001/09/09 17:31:36  ganter
+v0.18 added defines to make it possible to define smaller screen sizes
+this is the way to porting for iPaq
+
+Revision 1.82  2001/09/09 15:30:39  ganter
+numbers changed to SCREEN_X and SCREEN_Y, but doesn't work yet
+
+Revision 1.81  2001/09/09 14:54:44  ganter
+beginning rewrite source to set screenwidth and height as define
+
+Revision 1.80  2001/09/09 08:07:11  ganter
+v0.17
+
+Revision 1.79  2001/09/08 18:49:11  ganter
+added + sign as marker for the selected target
+
+Revision 1.78  2001/09/08 13:20:58  ganter
+added tooltips
+
+Revision 1.77  2001/09/06 22:00:53  ganter
+added: click with right mouse button on map sets the target waypoint
+
+Revision 1.76  2001/09/06 12:19:43  ganter
+changed strings
+
+Revision 1.75  2001/09/06 08:51:57  ganter
+changed label order, now really v0.15
+
+Revision 1.74  2001/09/06 08:46:35  ganter
+some string changes, really v0.15
+
+Revision 1.73  2001/09/06 00:16:02  ganter
+display_status
+
+Revision 1.72  2001/09/06 00:05:50  ganter
+new fields layout
+
+Revision 1.71  2001/09/05 22:03:26  ganter
+scaler works
+
+Revision 1.70  2001/09/05 19:33:06  ganter
+created scaler for map scale selection
+
+Revision 1.69  2001/09/04 22:15:59  ganter
+....
+
+Revision 1.68  2001/09/04 21:30:48  ganter
+added time to destination. I didn't calculate with bearing.
+
+Revision 1.67  2001/09/04 19:55:40  ganter
+moved progress bar into the download window
+download window is only removed after download
+added delete_event handler for download_cb
+
+Revision 1.66  2001/09/04 12:43:15  ganter
+added progress bar for download status
+
+Revision 1.65  2001/09/04 01:20:23  ganter
+restore cursor on end of download
+
+Revision 1.64  2001/09/04 00:39:57  ganter
+added cool cursor for map position selection
+
+Revision 1.63  2001/09/03 23:51:11  ganter
+....
+
+Revision 1.62  2001/09/03 23:48:16  ganter
+translations
+
+Revision 1.61  2001/09/03 23:32:34  ganter
+public v0.13
+
+Revision 1.60  2001/09/03 23:04:53  ganter
+map is now clickable for selection of the download position.
+yardstick is fixed for m/yards display.
+
+Revision 1.59  2001/09/03 15:42:56  ganter
+missing translation
+
+Revision 1.58  2001/09/03 15:36:39  ganter
+added scale marker on map
+
+Revision 1.57  2001/09/03 01:20:32  ganter
+added scale line, it's not perfect yet
+
+Revision 1.56  2001/09/02 18:48:11  ganter
+near to v0.12
+
+Revision 1.55  2001/09/02 17:09:32  ganter
+download of gif doesn't work correctly sometimes
+
+Revision 1.54  2001/09/02 14:39:15  ganter
+....
+
+Revision 1.53  2001/09/01 18:15:57  ganter
+download in a non-blocking timeout routine
+
+Revision 1.52  2001/09/01 15:50:43  ganter
+working on downloading maps from internet
+
+Revision 1.51  2001/08/31 19:53:48  ganter
+rearranged calls of draw_marker.
+fixed little bug in zoom-out, works now like expected.
+
+Revision 1.50  2001/08/31 09:56:11  ganter
+fixed bug if you are West or South. Thanks to Jason Aras.
+
+Revision 1.49  2001/08/31 01:29:43  ganter
+version 0.10
+
+Revision 1.48  2001/08/30 01:24:43  ganter
+better simulator
+
+Revision 1.47  2001/08/30 00:08:01  ganter
+more beautifully indent. Thanks to timecop at japan.co.jp
+
+Revision 1.46  2001/08/29 23:13:44  ganter
+version 0.9
+
+Revision 1.45  2001/08/29 21:58:13  ganter
+code cleanup, translated to english
+
+Revision 1.44  2001/08/29 19:07:08  ganter
+main() code rewritten for better readability because japanese people
+complained about bad style coding.
+Also translate all variable and messages to english.
+
+Revision 1.43  2001/08/29 14:00:42  ganter
+changed variable names to english
+
+Revision 1.42  2001/08/27 21:40:46  ganter
+get groundspeed to zero if no movement
+
+Revision 1.41  2001/08/27 13:24:37  ganter
+bugfix: . or , should be set depending on  LC_NUMERIC
+
+Revision 1.40  2001/08/27 02:57:18  ganter
+Version 0.7
+
+Revision 1.39  2001/08/27 01:03:24  ganter
+Version 0.7 added experimental -f flag for direct use of GARMIN format
+no gpsd must be started!
+
+Revision 1.38  2001/08/26 23:40:10  ganter
+added garble sources to included in gpsdrive
+
+Revision 1.37  2001/08/26 19:33:45  ganter
+indent
+
+Revision 1.36  2001/08/26 19:31:53  ganter
+"distance to" frame label shows target name
+
+Revision 1.35  2001/08/26 17:46:57  ganter
+changed usage, still v0.6
+
+Revision 1.34  2001/08/26 17:38:12  ganter
+Version 0.6
+
+Revision 1.33  2001/08/26 17:24:09  ganter
+added big zoom field, set refresh rate to 500ms
+
+Revision 1.32  2001/08/26 15:49:40  ganter
+indent
+
+Revision 1.31  2001/08/26 15:47:45  ganter
+added splash(), coooool!
+
+Revision 1.30  2001/08/25 13:39:33  ganter
+*** empty log message ***
+
+Revision 1.29  2001/08/25 12:53:09  ganter
+pre v0.5
+
+Revision 1.28  2001/08/25 08:56:53  ganter
+added frames for fields
+
+Revision 1.27  2001/08/24 21:34:43  ganter
+simulator mode: pointer moves to selected destination
+
+Revision 1.26  2001/08/24 16:56:17  ganter
+working on satellites
+
+Revision 1.25  2001/08/24 09:58:57  ganter
+course pointer is something ugly
+
+Revision 1.24  2001/08/24 00:25:29  ganter
+corrected angel values, 0ÂŽ° is on top (north) and angel is counting clockwise
+
+Revision 1.23  2001/08/23 00:08:11  ganter
+added pointer to destination
+
+Revision 1.22  2001/08/22 09:31:37  ganter
+changes to way.txt handling
+
+Revision 1.21  2001/08/22 08:45:58  ganter
+version 0.4 for public
+
+Revision 1.20  2001/08/22 00:10:19  ganter
+distance measurment adjusted
+
+Revision 1.19  2001/08/21 23:19:00  ganter
+destination selection added
+
+Revision 1.18  2001/08/20 15:35:45  ganter
+little bug in zoom out found, xoff and yoff was not updated.
+
+Revision 1.17  2001/08/19 16:17:08  ganter
+Version 0.3 ready for public
+
+Revision 1.16  2001/08/19 15:17:31  ganter
+some cleanups
+
+Revision 1.15  2001/08/19 14:26:19  ganter
+fixed offset=0 when new map loaded.
+
+Revision 1.14  2001/08/19 13:55:01  ganter
+found this little bug (x instead of y in line 469).
+Am I too old for programming?
+
+Revision 1.13  2001/08/19 11:58:44  ganter
+there is only a big bug in the y direction.
+
+Revision 1.12  2001/08/19 00:34:01  ganter
+working hard on zooming...
+
+Revision 1.11  2001/08/18 20:28:02  ganter
+working on zooming
+
+Revision 1.10  2001/08/18 15:35:03  ganter
+added command line options
+
+Revision 1.9  2001/08/18 03:58:12  ganter
+map switching works (theroretical, I need a testdrive, now at 6.00am localtime)
+
+Revision 1.8  2001/08/18 00:08:12  ganter
+"big" image is working, simulated_pos() simulates moving of map.
+
+Revision 1.7  2001/08/16 23:17:42  ganter
+displaying position on map is working and tested through test drive ;-)
+
+Revision 1.6  2001/08/16 20:03:49  ganter
+should work
+
+Revision 1.5  2001/08/15 22:39:45  ganter
+new version
+
+Revision 1.4  2001/08/15 12:06:03  ganter
+data conversion for statusline works
+
+Revision 1.3  2001/08/15 00:45:24  ganter
+get GPS data and display in statusbar is working
+
+Revision 1.2  2001/08/14 18:53:37  ganter
+first version running
+
+Revision 1.1.1.1  2001/08/14 13:52:20  ganter
+gpsdrive started
+
+***********************************************************************/
+
+/*  Include Dateien */
+#include "../config.h"
+#include <stdlib.h>
+#include <string.h>
+#include <time.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <netdb.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <stdio.h>
+#include <signal.h>
+#include <termios.h>
+#include <unistd.h>
+#include <math.h>
+#include <ctype.h>
+#include <sys/time.h>
+#include <compass.h>
+#include <errno.h>
+
+#if HAVE_LOCALE_H
+#include <locale.h>
+#else
+# define setlocale(Category, Locale)
+#endif
+#include "gettext.h"
+
+
+#include "LatLong-UTMconversion.h"
+#include "gpsdrive.h"
+#include <dirent.h>
+#include "battery.h"
+#include "track.h"
+#include "icons.h"
+#include <dlfcn.h>
+#include <pthread.h>
+#include <semaphore.h>
+
+#ifndef NOPLUGINS
+#include "gmodule.h"
+#endif
+#ifdef USETELEATLAS
+#include "gpsnavlib.h"
+#endif
+
+/*  Defines for gettext I18n */
+# include <libintl.h>
+# define _(String) gettext(String)
+# ifdef gettext_noop
+#  define N_(String) gettext_noop(String)
+# else
+#  define N_(String) (String)
+# endif
+
+
+#if GTK_MINOR_VERSION < 2
+#define gdk_draw_pixbuf _gdk_draw_pixbuf
+#endif
+
+/***************************************************************************/
+/***************************************************************************/
+/***************************************************************************/
+
+/*  global variables */
+gint statusid, messagestatusbarid, timeoutcount;
+GtkWidget *mainwindow, *status, *messagestatusbar, *pixmapwidget, *gotowindow,
+  *messagewindow, *routewindow, *downloadbt;
+extern GtkWidget *splash_window;
+gint sock = -1, dlsock = -1, bigp = 0, bigpGSV = 0, bigpGGA = 0, bigpRME =
+  0, bigpGSA = 0;
+gint lastpRME = 0, lastpGSA = 0, lastp = 0, lastpGSV = 0, lastpGGA =
+  0, debug = 0;
+FILE *nmeaout = NULL;
+gchar *buffer = NULL, *big = NULL;
+fd_set readmask;
+struct timeval timeout;
+gchar targetname[40];
+gdouble current_long, current_lat, old_long, old_lat, groundspeed;
+gdouble zero_long, zero_lat, target_long, target_lat, dist;
+gdouble long_diff = 0, lat_diff = 0;
+GdkGC *kontext;
+GdkColor red = { 0, 0xFF00, 0x00, 0x00 };
+GdkColor black = { 0, 0x00, 0x00, 0x00 };
+GdkColor white = { 0, 0xFFFF, 0xFFFF, 0xFFFF };
+GdkColor blue = { 0, 0x00, 0x00, 0xff00 };
+
+//GdkColor nightcolor = { 0, 0x0000, 0xa000, 0x0000 };
+
+GdkColor nightcolor = { 0, 0xa000, 0x0000, 0x0000 };
+GdkColor lcd = { 0, 0x8b00, 0x9500, 0x8b00 };
+GdkColor lcd2 = { 0, 0x7300, 0x7d00, 0x6a00 };
+GdkColor yellow = { 0, 0xff00, 0xff00, 0x00 };
+GdkColor green = { 0, 0x0000, 0xb000, 0x0000 };
+GdkColor green2 = { 0, 0x0000, 0xff00, 0x0000 };
+GdkColor mygray = { 0, 0xd500, 0xd600, 0xd500 };
+GdkColor textback = { 0, 0xa500, 0xa600, 0xa500 };
+GdkColor textbacknew = { 0, 0x4000, 0x7600, 0xcf00 };
+GdkColor grey = { 0, 0xC000, 0xC000, 0xC000 };
+GdkColor defaultcolor;
+
+/* GdkColor orange = { 0, 0xfb00, 0x8d00, 0x0a00 }; */
+GdkColor orange = { 0, 0xf000, 0x6000, 0x0000 };
+GdkColor darkgrey = { 0, SHADOWGREY, SHADOWGREY, SHADOWGREY };
+
+GtkWidget *drawing_area, *drawing_bearing, *drawing_sats, *drawing_miniimage;
+GdkColor orange2 = { 0, 0xff00, 0x8000, 0x0000 };
+GtkWidget *drawing_battery, *drawing_temp;
+GtkWidget *distlabel, *speedlabel, *altilabel, *miles, *startgpsbt;
+GdkDrawable *drawable, *drawable_bearing, *drawable_sats;
+gint havepos, haveposcount, blink, gblink, xoff, yoff, crosstoogle = 0;
+gdouble pixelfact, posx, posy, angle_to_destination, direction, bearing;
+GdkPixbuf *image = NULL, *friendsimage = NULL, *tempimage =
+  NULL, *friendspixbuf = NULL, *miniimage = NULL;
+typedef struct
+{
+  gchar filename[200];
+  gdouble lat;
+  gdouble longitude;
+  glong scale;
+}
+mapsstruct;
+mapsstruct *maps = NULL;
+
+/* action=1: radar (speedtrap) */
+
+typedef struct
+{
+  gchar name[40];
+  gdouble lat;
+  gdouble longitude;
+  gdouble dist;
+  gchar typ[40];
+  gint wlan;
+  gint action;
+  gint sqlnr;
+}
+wpstruct;
+wpstruct *wayp, *routelist;
+friendsstruct *friends, *fserver;
+char friendsserverip[20], friendsname[40], friendsidstring[40],
+  friendsserverfqn[255];
+
+
+gchar *dlpstart;
+gchar oldfilename[200];
+GString *tempmapfile;
+gint nrmaps = 0, dldiff;
+gdouble earthr;
+/*Earth radius calibrated with GARMIN III */
+/*  gdouble R = 6383254.445; */
+
+
+#define R earthr
+
+
+/*  if we get data from gpsd in NMEA format haveNMEA is TRUE */
+/*  haveGARMIN is TRUE if we get data from program garble in GARMIN we get only long and lat */
+gint haveNMEA, haveGARMIN;
+
+gint maploaded, simmode, zoom, iszoomed;
+gchar homedir[500], mapdir[500];
+static gchar const rcsid[] =
+  "$Id: gpsdrive.c,v 1.525 2004/03/03 20:46:47 ganter Exp $";
+gint thisline, thisrouteline = 0, routeitems = 0, routepointer = 0;
+gint maxwp, maxfriends = 0;
+GtkStyle *style = NULL;
+GtkRcStyle *mainstyle;
+gint satlist[MAXSATS][4], satlistdisp[MAXSATS][4], satbit = 0;
+GtkWidget *mylist, *myroutelist, *destframe;
+gchar mapfilename[200];
+gdouble gbreit, glang, milesconv, olddist = 99999.0;
+GTimer *timer, *disttimer;
+gint gcount, milesflag, downloadwindowactive;
+gint metricflag, nauticflag;
+struct lconv *mylocale;
+gchar *dlbuff, downloadfilename[512], localedecimal;
+gint scaleprefered = 1, scalewanted = 100000;
+gint dlcount, downloadactive, importactive, downloadfilelen;
+glong mapscale;
+GtkWidget *dltext1, *dltext2, *dltext3, *dltext4, *wptext1, *wptext2;
+gdouble wplat, wplon;
+GtkWidget *dltext5, *dltext6, *dltext7, *myprogress;
+GtkWidget *scaler, *downloadwindow;
+gchar writebuff[2000];
+gchar newmaplat[100], newmaplongi[100], newmapsc[100], oldangle[100];
+GdkCursor *cursor;
+gchar *slist[] = { "1000", "1500", "2000", "3000", "5000", "7500",
+  "10000", "15000", "20000", "30000", "50000", "75000",
+  "100000", "150000", "200000", "300000", "500000", "750000",
+  "1000000", "1500000", "2000000", "3000000", "5000000", "7500000",
+  "10000000", "15000000", "20000000", "30000000", "50000000", "75000000"
+};
+gint nlist[] = { 1000, 1500, 2000, 3000, 5000, 7500,
+  10000, 15000, 20000, 30000, 50000, 75000,
+  100000, 150000, 200000, 300000, 500000, 750000,
+  1000000, 1500000, 2000000, 3000000, 5000000, 7500000,
+  10000000, 15000000, 20000000, 30000000, 50000000, 75000000
+};
+GtkWidget *l1, *l2, *l3, *l4, *l5, *l6, *l7, *l8, *mutebt, *sqlbt;
+GtkWidget *trackbt, *wpbt;
+GtkWidget *bestmapbt, *maptogglebt, *topotogglebt, *savetrackbt;
+GtkWidget *loadtrackbt, *radio1, *radio2, *radio3, *scalerlbt, *scalerrbt;
+GtkWidget *setupbt;
+gint savetrack = 0, havespeechout, hours, minutes, speechcount = 0;
+gint muteflag = 0, sqlflag = 0, trackflag = 1, wpflag = TRUE;
+gint displaymap_top = TRUE, displaymap_map = TRUE;
+gint posmode = 0;
+gdouble posmode_x, posmode_y;
+GtkObject *adj;
+gchar lastradar[40], lastradar2[40], nmeamodeandport[50], importfilename[80];
+gint foundradar, messageshown = FALSE;
+gdouble radarbearing;
+gint errortextmode = TRUE;
+enum
+{ english, german, spanish }
+voicelang;
+gchar serialdev[80];
+GdkSegment *track, *trackshadow;
+glong tracknr;
+trackcoordstruct *trackcoord;
+glong trackcoordnr, tracklimit, trackcoordlimit;
+gint extrawinmenu = FALSE, expedia = TRUE, topozone = FALSE;
+typedef struct
+{
+  gdouble lon;
+  gdouble lat;
+  gint x;
+  gint y;
+}
+impstruct;
+impstruct imports[3];
+gdouble Ra[201];
+gint haveproxy, proxyport;
+gchar proxy[256], hostname[256], savetrackfn[256];
+
+/*** Mod by Arms */
+gint real_screen_x, real_screen_y, real_psize, real_smallmenu, int_padding;
+gint SCREEN_X_2, SCREEN_Y_2;
+gint havefriends = 0;
+time_t waytxtstamp = 0;
+gint showallmaps = TRUE;
+/* guint selwptimeout; */
+gint dontsetwp = FALSE;
+gint setwpactive = FALSE;
+gint onemousebutton = FALSE;
+gint shadow = TRUE, createroute = FALSE, routemode = FALSE;
+gdouble routenearest = 9999999999.0;
+GtkWidget *askwindow;
+gint simpos_timeout = 0;
+gint setdefaultpos = TRUE;
+GtkWidget *create_route_button, *create_route2_button, *select_route_button;
+gint markwaypoint = FALSE;
+GtkWidget *addwaypointwindow, *setupfn[30];
+gint oldbat = 125, oldloading = FALSE;
+gint bat, loading, havebattery, havetemperature = FALSE;	/* Battery level and loading flag */
+gint defaultserver = 0, disableapm = FALSE;
+typedef struct
+{
+  gchar n[200];
+}
+namesstruct;
+namesstruct *names;
+gchar activewpfile[200], gpsdservername[200], setpositionname[80];
+gint newsatslevel = TRUE, testgarmin = TRUE, needtosave = FALSE;
+GtkWidget *serialbt, *mapdirbt, *addwaypoint1, *addwaypoint2, *frame_speed,
+  *frame_sats, *slowcpubt;
+gdouble altitude = 0.0, precision = (-1.0), gsaprecision = (-1.0);
+gint oldsatfix = 0, oldsatsanz = -1, havealtitude = FALSE;
+gint wpsize = 1000, satfix = 0, usedgps = FALSE;
+gchar dgpsserver[80], dgpsport[10];
+GtkWidget *posbt, *cover;
+gint needreloadmapconfig = FALSE, simfollow = TRUE;
+GdkPixbuf *batimage = NULL;
+GdkPixbuf *temimage = NULL;
+GdkPixbuf *satsimage = NULL;
+gint numsats = 0, satsavail = 0;
+gint drawgrid = TRUE, numgrids = 4, scroll = TRUE, deleteline = 0;
+gint satposmode = FALSE;
+gint saytarget = FALSE, printoutsats = FALSE;
+extern gchar *displaytext;
+extern gint do_display_dsc, textcount;
+gint minsecmode = FALSE, nightmode = FALSE, isnight = FALSE, disableisnight;
+gint nighttimer;
+GtkWidget *setupentry[50], *setupentrylabel[50];
+void (*setupfunction[50]) ();
+gchar utctime[20], loctime[20];
+gint mod_setupcounter = 4;
+gint cpuload = 40, redrawtimeout;
+gint haveRMCsentence = FALSE;
+gdouble NMEAsecs = 0.0;
+gint NMEAoldsecs = 0;
+gint borderlimit;
+gint zoomscale = TRUE;
+gint pdamode = FALSE;
+gint exposecounter = 0, exposed = FALSE;
+gint useplugins = FALSE;
+gdouble tripodometer, tripavspeed, triptime, tripmaxspeed, triptmp;
+gint tripavspeedcount;
+gdouble trip_long, trip_lat;
+gint lastnotebook = 0;
+GtkWidget *settingsnotebook;
+gint useflite = FALSE, forcenextroutepoint = FALSE;
+extern gint zone;
+gint ignorechecksum = FALSE;
+GdkColor trackcolorv;
+
+/* Give more debug informations */
+gint mydebug = FALSE;
+#define MAXDBNAME 30
+char dbhost[MAXDBNAME], dbuser[MAXDBNAME], dbpass[MAXDBNAME];
+char dbtable[MAXDBNAME], dbname[MAXDBNAME];
+char dbtypelist[100][40];
+int dbtypelistcount;
+char dbwherestring[5000];
+double dbdistance;
+gint usesql = FALSE, dbusedist = FALSE;
+extern gint sqlselects[100], sqlplace, friendsplace, kismetsock, havekismet;
+GdkPixbuf *kismetpixbuf, *openwlanpixbuf, *closedwlanpixbuf, *iconpixbuf[50];
+gint earthmate = FALSE;
+/* gchar *p_1, *p_2, *p_3;
+ * gsize *size_1;
+ * gchar s_1[100], s_2[100];
+ */
+extern gint wptotal, wpselected;
+gchar wplabelfont[100], bigfont[100];
+gint showroute = TRUE;
+extern gint zone;
+/* gchar gradsym[]="\302\260";  */
+static gchar gradsym[] = "\xc2\xb0";
+gdouble normalnull = 0;
+gint etch = 1;
+gint drawmarkercounter = 0, loadpercent = 10, globruntime = 30;
+extern int pleasepollme;
+/* socket for friends  */
+extern int sockfd;
+extern long int maxfriendssecs;
+gint forcehavepos = FALSE, needreminder = TRUE;
+char actualhostname[200];
+gdouble alarm_lat = 53.583033, alarm_long = 9.969533, alarm_dist = 9999999.0;
+extern gchar cputempstring[20], batstring[20];
+GtkTooltips *temptooltips = NULL;
+GtkWidget *tempeventbox = NULL, *batteventbox = NULL, *sateventbox =
+  NULL, *compasseventbox = NULL;
+GtkWidget *wplabel1, *wplabel2, *wplabel3, *wplabel4, *wplabel5;
+GtkWidget *wp1eventbox, *wp2eventbox, *wp3eventbox, *wp4eventbox,
+  *wp5eventbox, *satsvbox, *satshbox, *satslabel1eventbox,
+  *satslabel2eventbox, *satslabel3eventbox;
+GtkWidget *satslabel1, *satslabel2, *satslabel3;
+GtkWidget *lf1, *lf2, *lf3, *lf4, *lf5, *lf6, *lf7, *lf8;
+GtkWidget *dframe, *frame_bearing, *frame_target, *frame_altitude,
+  *frame_wp, *frame_maptype, *frame_toogles, *lab1, *fbat, *ftem;
+GtkWidget *menubar;
+gchar bluecolor[40], trackcolor[40], friendscolor[40];
+gchar messagename[40], messagesendtext[1024], messageack[100];
+GtkItemFactory *item_factory;
+gint statuslock = 0, gpson = FALSE;
+int messagenumber = 0, actualfriends = 0, didrootcheck = 0, haveserial = 0;
+int gotneverserial = TRUE, timerto = 0, serialspeed = 1;
+int disableserial = 1, disableserialcl = 0;
+GtkTextBuffer *getmessagebuffer;
+GdkColormap *cmap;
+extern int newdata;
+extern unsigned char serialdata[4096];
+extern pthread_mutex_t mutex;
+int mapistopo = FALSE;
+int havenasa = -1, nosplash = FALSE, sortcolumn = 4, sortflag = 0;
+int havedefaultmap = TRUE, alreadydaymode = FALSE, alreadynightmode = FALSE;
+int nmeaverbose = 0, storetz = FALSE;
+int egnoson = 0, egnosoff = 0;
+extern char actualstreetname[200];
+int sound_direction = 1, sound_distance = 1, sound_speed = 1, sound_gps = 1;
+int expedia_de = 0;
+
+static GtkItemFactoryEntry main_menu[] = {
+  {N_("/_Misc. Menu"), NULL, NULL, 0, "<Branch>"},
+  {N_("/_Misc. Menu/Maps"), NULL, NULL, 0, "<Branch>"},
+  {N_("/_Misc. Menu/Maps/_Import map"), NULL,
+   (gpointer) import1_cb,
+   1,
+   NULL},
+  {N_("/_Misc. Menu/Maps/_Map Manager"), NULL,
+   (gpointer) about_cb, 0, NULL},
+  {N_("/_Misc. Menu/_Waypoint Manager"), NULL,
+   (gpointer) sel_target_cb, 0, NULL},
+  {N_("/_Misc. Menu/_Load track file"), NULL,
+   (gpointer) loadtrack_cb, 0,
+   "<StockItem>", GTK_STOCK_OPEN},
+
+  {N_("/_Misc. Menu/Messages"), NULL, NULL, 0, "<Branch>"},
+  {N_("/_Misc. Menu/Messages/Send message to mobile target"),
+   NULL,
+   (gpointer) sel_message_cb,
+   0,
+   NULL},
+  {N_("/_Misc. Menu/Help"), NULL, NULL, 0, "<LastBranch>"},
+  {N_("/_Misc. Menu/Help/About"), NULL, (gpointer) about_cb, 0,
+   "<StockItem>", GTK_STOCK_DIALOG_INFO},
+  {N_("/_Misc. Menu/Help/Topics"), NULL, (gpointer) help_cb, 0,
+   "<StockItem>",
+   GTK_STOCK_HELP}
+};
+
+
+
+
+
+/*  stolen from bluefish, translates the menu */
+gchar *
+menu_translate (const gchar * path, gpointer data)
+{
+  static gchar *menupath = NULL;
+
+  gchar *retval;
+  gchar *factory;
+
+  factory = (gchar *) data;
+
+  if (menupath)
+    g_free (menupath);
+
+  menupath = g_strdup (path);
+
+  if ((strstr (path, "/tearoff1") != NULL) || (strstr (path, "/---") != NULL)
+      || (strstr (path, "/MRU") != NULL))
+    return menupath;
+
+  retval = _(menupath);
+
+  return retval;
+}
+
+
+
+
+/*  quit the program */
+gint
+quit_program (GtkWidget * widget, gpointer datum)
+{
+  gtk_main_quit ();
+  return (TRUE);
+}
+
+gint
+error_popup (gpointer datum)
+{
+  GtkWidget *popup;
+  GtkWidget *knopf2;
+  GtkWidget *knopf3;
+  GtkWidget *image;
+
+
+  if (errortextmode)
+    {
+      g_print ("\nError: %s\n", (char *) datum);
+      return (FALSE);
+    }
+  popup = gtk_dialog_new ();
+  gtk_window_set_transient_for (GTK_WINDOW (popup), GTK_WINDOW (mainwindow));
+
+  image =
+    gtk_image_new_from_stock (GTK_STOCK_DIALOG_ERROR, GTK_ICON_SIZE_DIALOG);
+
+  gtk_box_pack_start (GTK_BOX (GTK_DIALOG (popup)->vbox), image,
+		      FALSE, FALSE, 10);
+  gtk_container_set_border_width (GTK_CONTAINER (popup), 5);
+
+  gtk_window_set_title (GTK_WINDOW (popup), _("  Message  "));
+  knopf2 = gtk_button_new_from_stock (GTK_STOCK_OK);
+  GTK_WIDGET_SET_FLAGS (knopf2, GTK_HAS_FOCUS);
+
+  gtk_signal_connect_object (GTK_OBJECT (knopf2), "clicked",
+			     GTK_SIGNAL_FUNC (gtk_widget_destroy),
+			     GTK_OBJECT (popup));
+
+  gdk_beep ();
+  gtk_box_pack_start (GTK_BOX (GTK_DIALOG (popup)->action_area), knopf2, TRUE,
+		      TRUE, 20);
+  knopf3 = gtk_label_new (datum);
+  gtk_label_set_use_markup (GTK_LABEL (knopf3), TRUE);
+
+  gtk_box_pack_start (GTK_BOX (GTK_DIALOG (popup)->vbox), knopf3, FALSE,
+		      FALSE, 10);
+
+
+  gtk_window_set_position (GTK_WINDOW (popup), GTK_WIN_POS_CENTER);
+  gtk_widget_show (image);
+  gtk_widget_show_all (popup);
+
+  return (FALSE);
+
+}
+
+
+void
+startgpsd (guint datum)
+{
+  gchar s[200], s2[10];
+  int t[] = { 2400, 4800, 9600, 19200, 38400 };
+
+  if (gpson == FALSE)
+    {
+      g_snprintf (s2, sizeof (s2), "%d", t[serialspeed]);
+      if (usedgps)
+	g_snprintf (s, sizeof (s), "gpsd -p %s -c -d %s -s %s -r %s",
+		    serialdev, dgpsserver, s2, dgpsport);
+      else
+	g_snprintf (s, sizeof (s), "gpsd -p %s -s %s", serialdev, s2);
+      if (earthmate)
+	g_strlcat (s, " -T e -s 9600", sizeof (s));
+      system (s);
+      gtk_button_set_label (GTK_BUTTON (startgpsbt), _("Stop GPSD"));
+      gtk_tooltips_set_tip (GTK_TOOLTIPS (temptooltips), startgpsbt,
+			    _("Stop GPSD and switch to simulation mode"),
+			    NULL);
+      g_strlcpy (gpsdservername, "127.0.0.1", sizeof (gpsdservername));
+      if (sock != -1)
+	{
+	  close (sock);
+	  sock = -1;
+	}
+      gtk_timeout_add (1000, (GtkFunction) initgps, 0);
+      simmode = FALSE;
+      gpson = TRUE;
+      if (satsimage != NULL)
+	g_object_unref (satsimage);
+      satsimage = NULL;
+
+      gtk_widget_draw (drawing_sats, NULL);	/* this  calls expose handler */
+    }
+  else
+    {
+/* stop gpsd and go to simulation mode */
+      system ("killall gpsd");
+      gpson = FALSE;
+      gtk_button_set_label (GTK_BUTTON (startgpsbt), _("Start GPSD"));
+      gtk_tooltips_set_tip (GTK_TOOLTIPS (temptooltips), startgpsbt,
+			    _("Starts GPSD for NMEA mode"), NULL);
+      simmode = TRUE;
+      haveNMEA = FALSE;
+      newsatslevel = TRUE;
+      if (simpos_timeout == 0)
+	simpos_timeout =
+	  gtk_timeout_add (300, (GtkFunction) simulated_pos, 0);
+      memset (satlist, 0, sizeof (satlist));
+      memset (satlistdisp, 0, sizeof (satlist));
+      numsats = satsavail = 0;
+      if (satsimage != NULL)
+	g_object_unref (satsimage);
+      satsimage = NULL;
+      gtk_entry_set_text (GTK_ENTRY (satslabel1), _("n/a"));
+      gtk_entry_set_text (GTK_ENTRY (satslabel2), _("n/a"));
+      gtk_entry_set_text (GTK_ENTRY (satslabel3), _("n/a"));
+      gtk_widget_draw (drawing_sats, NULL);	/* this  calls expose handler */
+    }
+}
+
+
+#ifdef NOGARMIN
+int
+garblemain (int argc, char **argv)
+{
+  g_print (_("\nno garmin support compiled in\n"));
+  return -2;
+}
+#endif
+
+
+
+
+void
+convertRMC (char *f)
+{
+  gchar field[50][100], b[100];
+  gint start = 0;
+  gint longdegree, latdegree;
+  gchar langri, breitri;
+  size_t i, j = 0;
+  memset (b, 0, 100);
+
+/*  if simulation mode we display status and return */
+  if (simmode && maploaded && !posmode)
+    {
+      display_status (_("Simulation mode"));
+      return;
+    }
+
+/*  get fields delimited with ',' */
+  for (i = 0; i < strlen (f); i++)
+    {
+      if (f[i] == ',')
+	{
+	  g_strlcpy (field[j], (f + start), 100);
+	  field[j][i - start] = 0;
+	  start = i + 1;
+	  j++;
+	}
+    }
+  if ((j != 11) && (j != 12))
+    {
+      g_print ("\nGPRMC: wrong number of fields (%d)", (int) j);
+      return;
+    }
+  if (!haveRMCsentence)
+    {
+      g_print (_("got RMC data, using it\n"));
+      haveRMCsentence = TRUE;
+    }
+
+  if (debug)
+    {
+      g_print ("\nRMC Fields:\n");
+      for (i = 0; i < j; i++)
+	g_print ("\n%d:%s", (int) i, field[i]);
+    }
+  g_snprintf (b, sizeof (b), "%c%c:%c%c.%c%c ", field[1][0], field[1][1],
+	      field[1][2], field[1][3], field[1][4], field[1][5]);
+  g_strlcpy (utctime, b, sizeof (utctime));
+  if (debug)
+    g_print ("\nutctime: %s", utctime);
+  if ((field[2][0] != 'A') || forcehavepos)
+    {
+      havepos = FALSE;
+      haveposcount = 0;
+      return;
+    }
+  else
+    {
+      havepos = TRUE;
+      haveposcount++;
+      if (haveposcount == 3)
+	rebuildtracklist ();
+    }
+/*  Latitude North / South */
+  b[0] = field[3][0];
+  b[1] = field[3][1];
+  b[2] = 0;
+  latdegree = atoi (b);
+
+
+  b[0] = field[3][2];
+  b[1] = field[3][3];
+  b[2] = localedecimal;
+  b[3] = field[3][5];
+  b[4] = field[3][6];
+  b[5] = field[3][7];
+  b[6] = 0;
+  if (!posmode)
+    {
+      gdouble cl;
+      cl = latdegree + atof (b) / 60.0;
+      if (field[4][0] == 'S')
+	cl = cl * -1;
+      if ((cl >= -90.0) && (cl <= 90.0))
+	current_lat = cl;
+      breitri = field[4][0];
+      g_snprintf (b, sizeof (b), " %8.5f%s%c", current_lat, gradsym, breitri);
+    }
+
+/*  Longitude East / West */
+  b[0] = field[5][0];
+  b[1] = field[5][1];
+  b[2] = field[5][2];
+  b[3] = 0;
+  longdegree = atoi (b);
+
+  b[0] = field[5][3];
+  b[1] = field[5][4];
+  b[2] = localedecimal;
+  b[3] = field[5][6];
+  b[4] = field[5][7];
+  b[5] = field[5][8];
+  b[6] = 0;
+  if (!posmode)
+    {
+      gdouble cl;
+      cl = longdegree + atof (b) / 60.0;
+      if (field[6][0] == 'W')
+	cl = cl * -1;
+      if ((cl >= -180.0) && (cl <= 180.0))
+	current_long = cl;
+
+      langri = field[6][0];
+      g_snprintf (b, sizeof (b), " %8.5f%s%c", current_long, gradsym, langri);
+    }
+
+/*  speed */
+  b[0] = field[7][0];
+  b[1] = field[7][1];
+  b[2] = field[7][2];
+  b[3] = localedecimal;
+  b[4] = field[7][4];
+  b[5] = 0;
+  groundspeed = atof (b) * 1.852 * milesconv;
+  g_snprintf (b, sizeof (b), " %s: %s", _("Map"), mapfilename);
+/*    g_print("Field %s\n",field[8]); */
+  b[0] = field[8][0];
+  b[1] = field[8][1];
+  b[2] = field[8][2];
+  b[3] = localedecimal;
+  b[4] = field[8][4];
+  b[5] = 0;
+/*  direction is the course we are driving */
+  direction = atof (b);
+  direction = direction * M_PI / 180;
+
+  {
+    int h, m, s;
+    h = m = s = 0;
+    if (strcmp (utctime, "n/a") != 0)
+      {
+	sscanf (utctime, "%d:%d.%d", &h, &m, &s);
+	h += zone;
+	if (h > 23)
+	  h -= 24;
+	if (h < 0)
+	  h += 24;
+	g_snprintf (loctime, sizeof (loctime), "%d:%02d.%02d", h, m, s);
+      }
+    else
+      g_strlcpy (loctime, "n/a", sizeof (loctime));
+  }
+
+}
+
+/*  show satellites signal level */
+gint
+convertGSV (char *f)
+{
+  gchar field[50][100], b[500];
+  gint i, l, i2, j = 0, start = 0, n, db, anz, az, el;
+
+  memset (b, 0, 100);
+  l = strlen (f);
+  for (i = 0; i < l; i++)
+    {
+      if ((f[i] == ',') || (f[i] == '*'))
+	{
+	  g_strlcpy (field[j], (f + start), 100);
+	  field[j][i - start] = 0;
+	  start = i + 1;
+	  j++;
+	}
+    }
+  if (debug)
+    {
+      g_print ("\nGSV Fields:\n");
+      for (i = 0; i < j; i++)
+	g_print ("%d:%s$", i, field[i]);
+    }
+  if (j > 40)
+    {
+      g_print ("\nGPGSV: wrong number of fields (%d)", j);
+      return FALSE;
+    }
+
+  if (field[2][0] == '1')
+    satbit = satbit | 1;
+  if (field[2][0] == '2')
+    satbit = satbit | 2;
+  if (field[2][0] == '3')
+    satbit = satbit | 4;
+
+  anz = atoi (field[3]);
+  b[0] = field[1][0];
+  b[1] = 0;
+  i2 = atof (b);
+  if (mydebug)
+    g_print ("\nbits should be:%d  is: %d", i2, satbit);
+  g_snprintf (b, sizeof (b), "\nSatellites: %d ", anz);
+  if (anz != oldsatsanz)
+    newsatslevel = TRUE;
+  oldsatsanz = anz;
+
+  for (i = 4; i < j; i += 4)
+    {
+      n = atoi (field[i]);
+      if (n > MAXSATS)
+	{
+	  fprintf (stderr, "illegal satellite number: %d, ignoring\n", n);
+	  continue;
+	}
+      db = atoi (field[i + 3]);
+      el = atoi (field[i + 1]);
+      az = atoi (field[i + 2]);
+      if (debug)
+	fprintf (stderr,
+		 "satnumber: %2d elev: %3d azimut: %3d signal %3ddb\n", n, el,
+		 az, db);
+
+      satlist[n][0] = n;
+      satlist[n][1] = db;
+      satlist[n][2] = el;
+      satlist[n][3] = az;
+    }
+
+  if (((pow (2, i2)) - 1) == satbit)
+    {
+      satsavail = 0;
+      for (i = 0; i < MAXSATS; i++)
+	if (satlist[i][0] != 0)
+	  {
+	    g_snprintf (b, sizeof (b), "% 2d: % 2ddb   ", satlist[i][0],
+			satlist[i][1]);
+	    satsavail++;
+	  }
+      satbit = 0;
+
+      memcpy (satlistdisp, satlist, sizeof (satlist));
+      memset (satlist, 0, sizeof (satlist));
+      newsatslevel = TRUE;
+      return TRUE;
+    }
+  return FALSE;
+}
+
+
+/*  show altitude and satfix */
+void
+convertGGA (char *f)
+{
+  gchar field[50][100], b[500];
+  gint i, l, j = 0, start = 0;
+  gint longdegree, latdegree;
+  gchar langri, breitri;
+
+  memset (b, 0, 100);
+  l = strlen (f);
+  for (i = 0; i < l; i++)
+    {
+      if ((f[i] == ',') || (f[i] == '*'))
+	{
+	  g_strlcpy (field[j], (f + start), 100);
+	  field[j][i - start] = 0;
+	  start = i + 1;
+	  j++;
+	}
+    }
+  if (debug)
+    {
+      g_print ("\nGGA Fields:\n");
+      for (i = 0; i < j; i++)
+	g_print ("%d:%s$", i, field[i]);
+    }
+
+  if (j != 15)
+    {
+      g_print ("\nGPGGA: wrong number of fields (%d)", j);
+      return;
+    }
+
+/*   the receiver sends no GPRMC, so we get the data from here */
+  if (!haveRMCsentence)
+    {
+      gint mysecs;
+
+/*       if (debug) */
+      g_print (_("got no RMC data, using GGA data\n"));
+      g_snprintf (b, sizeof (b), "%c%c", field[1][4], field[1][5]);
+      sscanf (b, "%d", &mysecs);
+      if (mysecs != NMEAoldsecs)
+	{
+	  NMEAsecs = mysecs - NMEAoldsecs;
+	  if (NMEAsecs < 0)
+	    NMEAsecs += 60;
+	  NMEAoldsecs = mysecs;
+	}
+/*       g_print ("\nnmeasecs: %.2f mysecs: %d, nmeaoldsecs: %d", NMEAsecs, */
+/* 	       mysecs, NMEAoldsecs); */
+      g_snprintf (b, sizeof (b), "%c%c:%c%c.%c%c ", field[1][0], field[1][1],
+		  field[1][2], field[1][3], field[1][4], field[1][5]);
+      g_strlcpy (utctime, b, sizeof (utctime));
+
+      if (field[6][0] == '0')
+	{
+	  havepos = FALSE;
+	  haveposcount = 0;
+	  return;
+	}
+      else
+	{
+	  havepos = TRUE;
+	  haveposcount++;
+	  if (haveposcount == 3)
+	    rebuildtracklist ();
+	}
+
+/*  Latitude North / South */
+      b[0] = field[2][0];
+      b[1] = field[2][1];
+      b[2] = 0;
+      latdegree = atoi (b);
+
+
+      b[0] = field[2][2];
+      b[1] = field[2][3];
+      b[2] = localedecimal;
+      b[3] = field[2][5];
+      b[4] = field[2][6];
+      b[5] = field[2][7];
+      b[6] = 0;
+/*       fprintf(stderr,"\nposmode: %d\n",posmode); */
+      if (!posmode)
+	{
+	  gdouble cl;
+	  cl = latdegree + atof (b) / 60.0;
+	  if (field[3][0] == 'S')
+	    cl = cl * -1;
+	  if ((cl >= -90.0) && (cl <= 90.0))
+	    current_lat = cl;
+
+	  breitri = field[3][0];
+/* 	  fprintf (stderr, "%8.5f%s%c cl:%f\n", current_lat, gradsym, breitri,cl); */
+	}
+
+/*  Longitude East / West */
+      b[0] = field[4][0];
+      b[1] = field[4][1];
+      b[2] = field[4][2];
+      b[3] = 0;
+      longdegree = atoi (b);
+
+      b[0] = field[4][3];
+      b[1] = field[4][4];
+      b[2] = localedecimal;
+      b[3] = field[4][6];
+      b[4] = field[4][7];
+      b[5] = field[4][8];
+      b[6] = 0;
+
+      if (!posmode)
+	{
+	  gdouble cl;
+	  cl = longdegree + atof (b) / 60.0;
+	  if (field[5][0] == 'W')
+	    cl = cl * -1;
+	  if ((cl >= -180.0) && (cl <= 180.0))
+	    current_long = cl;
+
+	  langri = field[5][0];
+/* 	  fprintf (stderr, "%8.5f%s%c cl:%f\n", current_long, gradsym, langri,cl); */
+	}
+
+      if (debug)
+	g_print ("\nGGA pos: %f %f\n", current_lat, current_long);
+    }
+
+  satfix = g_strtod (field[6], 0);
+  numsats = g_strtod (field[7], 0);
+  if (havepos)
+    {
+      havealtitude = TRUE;
+      altitude = g_strtod (field[9], 0);
+      if (debug)
+	{
+	  g_print ("\nAltitude: %.1f, Fix: %d", altitude, satfix);
+	}
+    }
+  else
+    {
+      groundspeed = 0;
+      numsats = 0;
+    }
+  {
+    int h, m, s;
+    h = m = s = 0;
+    if (strcmp (utctime, "n/a") != 0)
+      {
+	sscanf (utctime, "%d:%d.%d", &h, &m, &s);
+	h += zone;
+	if (h > 23)
+	  h -= 24;
+	if (h < 0)
+	  h += 24;
+	g_snprintf (loctime, sizeof (loctime), "%d:%02d.%02d", h, m, s);
+      }
+    else
+      g_strlcpy (loctime, "n/a", sizeof (loctime));
+  }
+}
+
+
+/*  show estimated position error $PGRME (Garmin only)  */
+void
+convertRME (char *f)
+{
+  gchar field[50][100], b[500];
+  gint i, l, j = 0, start = 0;
+
+  memset (b, 0, 100);
+  l = strlen (f);
+  for (i = 0; i < l; i++)
+    {
+      if ((f[i] == ',') || (f[i] == '*'))
+	{
+	  g_strlcpy (field[j], (f + start), 100);
+	  field[j][i - start] = 0;
+	  start = i + 1;
+	  j++;
+	}
+    }
+  if (debug)
+    {
+      g_print ("\nRME Fields:\n");
+      for (i = 0; i < j; i++)
+	g_print ("%d:%s$", i, field[i]);
+    }
+  if (havepos)
+    {
+
+      precision = g_strtod (field[1], 0);
+      if (debug)
+	{
+	  g_print ("\nRME precision: %.1f", precision);
+	}
+    }
+}
+
+/*  show  HDOP in meters */
+void
+convertGSA (char *f)
+{
+  gchar field[50][100], b[500];
+  gint i, l, j = 0, start = 0;
+
+  memset (b, 0, 100);
+  l = strlen (f);
+  for (i = 0; i < l; i++)
+    {
+      if ((f[i] == ',') || (f[i] == '*'))
+	{
+	  g_strlcpy (field[j], (f + start), 100);
+	  field[j][i - start] = 0;
+	  start = i + 1;
+	  j++;
+	}
+    }
+  if (debug)
+    {
+      g_print ("\nGSA Fields:\n");
+      for (i = 0; i < j; i++)
+	g_print ("%d:%s$", i, field[i]);
+    }
+  if (havepos)
+    {
+
+      gsaprecision = g_strtod (field[15], 0);
+      if (debug)
+	{
+	  g_print ("\nGSA PDOP: %.1f", gsaprecision);
+	}
+    }
+}
+
+
+
+void
+display_status (char *message)
+{
+  gchar tok[200];
+
+  if (downloadactive == TRUE)
+    return;
+  if (importactive == TRUE)
+    return;
+  if (statuslock)
+    return;
+  g_snprintf (tok, sizeof (tok), "%s", message);
+  gtk_statusbar_pop (GTK_STATUSBAR (status), statusid);
+  gtk_statusbar_push (GTK_STATUSBAR (status), statusid, tok);
+}
+
+
+gint
+get_position_data_cb (GtkWidget * widget, guint * datum)
+{
+  gint e = 0, j = 0, i = 0, found = 0, foundGSV = 0, foundGGA = 0, foundGSA =
+    0, foundRME = 0;
+  gdouble secs = 0, tx, ty, lastdirection;
+  typedef struct
+  {
+    gchar *a1;
+    gchar *a2;
+    gchar *a3;
+  }
+  argument;
+  argument *argumente;
+  char data[4096], tok[1000];
+  static int serialtimeoutcount = 0;
+  int tilimit;
+
+  if (importactive)
+    return TRUE;
+
+
+  if ((timeoutcount > 3) && (debug))
+    g_print ("*** %d. timeout getting data from GPS-Receiver!\n",
+	     timeoutcount);
+
+  if (haveserial)
+    tilimit = 5;
+  else
+    tilimit = 10;
+
+  if (timeoutcount > tilimit)
+    {
+      gtk_statusbar_pop (GTK_STATUSBAR (status), statusid);
+      gtk_statusbar_push (GTK_STATUSBAR (status), statusid,
+			  _("Timeout getting data from GPS-Receiver!"));
+      havepos = FALSE;
+      haveposcount = 0;
+      memset (satlist, 0, sizeof (satlist));
+      memset (satlistdisp, 0, sizeof (satlist));
+      if (numsats != 0)
+	{
+	  numsats = 0;
+	  gtk_widget_draw (drawing_sats, NULL);	/* this  calls expose handler */
+	}
+    }
+
+  if (haveserial)
+    {
+      if ((timeoutcount > 8) && gotneverserial)
+	{
+	  havepos = FALSE;
+	  haveposcount = 0;
+	  haveserial = FALSE;
+	  simmode = TRUE;
+	  haveNMEA = FALSE;
+	  newsatslevel = TRUE;
+	  if (simpos_timeout == 0)
+	    simpos_timeout =
+	      gtk_timeout_add (300, (GtkFunction) simulated_pos, 0);
+	  gtk_timeout_remove (timerto);
+	  timerto =
+	    gtk_timeout_add (TIMER, (GtkFunction) get_position_data_cb, NULL);
+
+	  gtk_widget_set_sensitive (startgpsbt, TRUE);
+	  gtk_widget_draw (drawing_sats, NULL);	/* this  calls expose handler */
+/* 	  expose_sats_cb (NULL, 0); */
+
+	  return TRUE;
+	}
+
+/*       getserialdata(); */
+      if (newdata == TRUE)
+	{
+	  pthread_mutex_lock (&mutex);
+	  g_strlcpy (data, serialdata, sizeof (data));
+/* 	  fprintf (stderr, "#########:%s\n", data); */
+	  newdata = FALSE;
+	  pthread_mutex_unlock (&mutex);
+	  timeoutcount = 0;
+
+	  if (posmode)
+	    display_status (_("Press middle mouse button for navigation"));
+	  else
+	    {
+	      g_snprintf (nmeamodeandport, sizeof (nmeamodeandport),
+			  _("Direct serial connection to %s"), serialdev);
+	    }
+	  if ((strncmp ((data + 3), "RMC", 3) == 0) && (data[0] == '$'))
+	    {
+	      havepos = TRUE;
+	      gotneverserial = FALSE;
+/*  we have the $GPRMC string completed, now parse it */
+	      if (checksum (data) == TRUE)
+		convertRMC (data);
+	    }
+
+	  if ((strncmp ((data + 3), "GSV", 3) == 0) && (data[0] == '$'))
+	    {
+	      gotneverserial = FALSE;
+	      if (checksum (data) == TRUE)
+		convertGSV (data);
+	    }
+
+	  if ((strncmp ((data + 3), "GGA", 3) == 0) && (data[0] == '$'))
+	    {
+	      gotneverserial = FALSE;
+	      if (checksum (data) == TRUE)
+		convertGGA (data);
+	    }
+
+	  if ((strncmp ((data + 3), "RME", 3) == 0) && (data[0] == '$'))
+	    {
+	      gotneverserial = FALSE;
+	      if (checksum (data) == TRUE)
+		convertRME (data);
+	    }
+
+	  if ((strncmp ((data + 3), "GSA", 3) == 0) && (data[0] == '$'))
+	    {
+	      gotneverserial = FALSE;
+	      if (checksum (data) == TRUE)
+		convertGSA (data);
+	    }
+
+
+/*  display the position and map in the statusline */
+	  if (havepos)
+	    {
+	      if (posmode)
+		display_status (_
+				("Press middle mouse button for navigation"));
+	      else
+		display_status (nmeamodeandport);
+	    }
+	  else
+	    display_status (_("Not enough satellites in view!"));
+	}
+      else
+	{
+	  serialtimeoutcount++;
+	  if (serialtimeoutcount > (1000.0 / TIMERSERIAL))
+	    {
+	      timeoutcount++;
+	      serialtimeoutcount = 0;
+	      if (debug)
+		fprintf (stderr, "timeout: %d\n", timeoutcount);
+	    }
+	}
+
+      return TRUE;
+    }
+
+
+  argumente = NULL;
+  if ((haveGARMIN) || (!haveRMCsentence))
+    {
+      if (haveGARMIN)
+	{
+	  argumente = g_new (argument, 1);
+	  argumente->a1 = "-p";
+	  argumente->a2 = "-p";
+	  argumente->a3 = 0;
+
+	  e = garblemain (1, (char **) argumente);
+	  if (e == -2)
+	    {
+	      havepos = FALSE;
+	      display_status (_("Not enough satellites in view!"));
+	      haveposcount = 0;
+
+	      return TRUE;
+	    }
+	  else
+	    {
+	      havepos = TRUE;
+	      haveposcount++;
+	    }
+	  if (!posmode)
+	    {
+	      current_long = glang;
+	      current_lat = gbreit;
+	    }
+
+	}
+      if (haveGARMIN)
+	secs = g_timer_elapsed (timer, 0);
+      else
+	secs = NMEAsecs;
+
+      if (secs >= 1.0)
+	{
+	  tx =
+	    (2 * R * M_PI / 360) * cos (M_PI * current_lat / 180.0) *
+	    (current_long - old_long);
+	  ty = (2 * R * M_PI / 360) * (current_lat - old_lat);
+#define MINMOVE 4.0
+	  if (((fabs (tx)) > MINMOVE) || (((fabs (ty)) > MINMOVE)))
+	    {
+	      if (haveGARMIN)
+		{
+		  g_timer_stop (timer);
+		  g_timer_start (timer);
+		}
+
+	      lastdirection = direction;
+	      if (ty == 0)
+		direction = 0.0;
+	      else
+		direction = atan (tx / ty);
+	      if (!finite (direction))
+		direction = lastdirection;
+	      if (ty < 0)
+		direction = M_PI + direction;
+	      if (direction >= (2 * M_PI))
+		direction -= 2 * M_PI;
+	      if (direction < 0)
+		direction += 2 * M_PI;
+
+	      groundspeed = milesconv * sqrt (tx * tx + ty * ty) * 3.6 / secs;
+	      old_lat = current_lat;
+	      old_long = current_long;
+	    }
+	  else if (secs > 4.0)
+	    groundspeed = 0.0;
+
+	  if (groundspeed > 2000)
+	    groundspeed = 0;
+	  if (groundspeed < 3.6)
+	    groundspeed = 0;
+
+	  if (mydebug)
+	    g_print ("\nTime: %f", secs);
+	}
+/*  display status line */
+      if (posmode)
+	display_status (_("Press middle mouse button for navigation"));
+      else
+	{
+	  if (haveGARMIN)
+	    display_status (_("GARMIN Mode"));
+	}
+
+      if (haveGARMIN)
+	{
+	  g_free (argumente);
+/*  return if in GARMIN mode */
+
+	  return TRUE;
+	}
+    }
+
+/*    only if we have neither NMEA nor GARMIN, means no measured position */
+  if (!haveNMEA)
+    {
+/*  display status line */
+      if (!simmode)
+	display_status (_("No GPS used"));
+      else if (maploaded && !posmode)
+	display_status (_("Simulation mode"));
+      else if (posmode)
+	display_status (_("Press middle mouse button for sim mode"));
+
+
+      return TRUE;
+    }
+
+/*  this is the NMEA reading part. data comes from port 2222 served by gpsd */
+  FD_ZERO (&readmask);
+  FD_SET (sock, &readmask);
+  timeout.tv_sec = 0;
+  timeout.tv_usec = 100000;
+  if (select (FD_SETSIZE, &readmask, NULL, NULL, &timeout) < 0)
+    {
+      perror ("select() call");
+    }
+  if (FD_ISSET (sock, &readmask))
+    {
+      if ((e = read (sock, buffer, 2000)) < 0)
+	perror ("read from gpsd connection");
+      buffer[e] = 0;
+      if ((bigp + e) < MAXBIG)
+	{
+	  if (mydebug)
+	    g_print ("\n!!bigp:%d, e: %d!!", bigp, e);
+	  g_strlcat (big, buffer, MAXBIG);
+	  if (mydebug)
+	    g_print (", strlen big:%d", strlen (big));
+	  bigp += e;
+	  bigpGSA = bigpRME = bigpGSV = bigpGGA = bigp;
+
+	  for (i = bigp; i > lastp; i--)
+	    {
+	      if (big[i] == '$')
+		{
+/*  collect string for position data $GPRMC */
+		  if ((big[i + 3] == 'R') && (big[i + 4] == 'M')
+		      && (big[i + 5] == 'C'))
+		    {
+		      found = 0;
+		      if (debug)
+			g_print ("\n found #RMC#");
+		      for (j = i; j <= bigp; j++)
+			if (big[j] == 13)
+			  {
+			    found = j;
+			    break;
+			  }
+		      if (found != 0)
+			{
+			  strncpy (tok, (big + i), found - i);
+			  tok[found - i] = 0;
+			  lastp = found;
+			  timeoutcount = 0;
+/*  we have the $GPRMC string completed, now parse it */
+			  if (checksum (tok) == TRUE)
+			    convertRMC (tok);
+/*  display the position and map in the statusline */
+			  if (havepos)
+			    {
+			      if (posmode)
+				display_status (_
+						("Press middle mouse button for navigation"));
+			      else
+				display_status (nmeamodeandport);
+			    }
+			  else
+			    display_status (_
+					    ("Not enough satellites in view!"));
+			}
+		    }
+
+		}
+	    }
+
+/*  collect string for satellite data $GPGSV */
+
+	  for (i = bigpGSV; i > lastpGSV; i--)
+	    {
+	      if (big[i] == '$')
+		{
+
+		  if ((big[i + 3] == 'G') && (big[i + 4] == 'S')
+		      && (big[i + 5] == 'V'))
+		    {
+		      foundGSV = 0;
+		      if (debug)
+			g_print ("\n found #GSV#, bigpGSV: %d", bigpGSV);
+		      for (j = i; j <= bigpGSV; j++)
+			if (big[j] == 13)
+			  {
+			    foundGSV = j;
+			    break;
+			  }
+		      if (foundGSV != 0)
+			{
+			  gint lenstr;
+			  lenstr = foundGSV - i;
+			  if ((lenstr) > 200)
+			    {
+			      g_print
+				("\nError in line %d, foundGSV=%d,i=%d, diff=%d\n",
+				 __LINE__, foundGSV, i, lenstr);
+			      lenstr = 200;
+			    }
+			  if (i > foundGSV)
+			    {
+			      g_print
+				("\nError in line %d, foundGSV=%d,i=%d, diff=%d\n",
+				 __LINE__, foundGSV, i, lenstr);
+			      lenstr = 0;
+			    }
+			  if (lenstr < 0)
+			    {
+			      g_print
+				("\nError in line %d, foundGSV=%d,i=%d, lenstr=%d\n",
+				 __LINE__, foundGSV, i, lenstr);
+			      lenstr = 0;
+			    }
+			  if (lenstr != 0)
+			    {
+			      strncpy (tok, (big + i), lenstr);
+			      tok[lenstr] = 0;
+
+			      if (checksum (tok) == TRUE)
+				{
+				  if ((convertGSV (tok)) == TRUE)
+				    lastpGSV = foundGSV;
+				}
+			    }
+			}
+		    }
+		}
+	    }
+
+
+/*  collect string for altitude from  $GPGGA if available*/
+
+	  for (i = bigpGGA; i > lastpGGA; i--)
+	    {
+	      if (big[i] == '$')
+		{
+
+		  if ((big[i + 3] == 'G') && (big[i + 4] == 'G')
+		      && (big[i + 5] == 'A'))
+		    {
+		      foundGGA = 0;
+		      if (debug)
+			g_print ("\n found #GGA#");
+		      timeoutcount = 0;
+
+		      for (j = i; j <= bigpGGA; j++)
+			if (big[j] == 13)
+			  {
+			    foundGGA = j;
+			    break;
+			  }
+		      if (foundGGA != 0)
+			{
+			  gint lenstr;
+			  lenstr = foundGGA - i;
+			  if ((lenstr) > 200)
+			    {
+			      g_print
+				("\nError in line %d, foundGGA=%d,i=%d, diff=%d\n",
+				 __LINE__, foundGGA, i, lenstr);
+			      lenstr = 200;
+			    }
+			  if (i > foundGGA)
+			    {
+			      g_print
+				("\nError in line %d, foundGGA=%d,i=%d, diff=%d\n",
+				 __LINE__, foundGGA, i, lenstr);
+			      lenstr = 0;
+			    }
+			  if (lenstr != 0)
+			    {
+			      strncpy (tok, (big + i), lenstr);
+			      tok[lenstr] = 0;
+			      lastpGGA = foundGGA;
+
+			      if (checksum (tok) == TRUE)
+				convertGGA (tok);
+			      if (havepos)
+				{
+				  if (posmode)
+				    display_status (_
+						    ("Press middle mouse button for navigation"));
+				  else
+				    display_status (nmeamodeandport);
+				}
+			      else
+				display_status (_
+						("Not enough satellites in view!"));
+
+			    }
+			}
+		    }
+		}
+	    }
+
+/*  collect string for precision from  $PGRME if available*/
+
+	  for (i = bigpRME; i > lastpRME; i--)
+	    {
+	      if (big[i] == '$')
+		{
+
+		  if ((big[i + 1] == 'P') && (big[i + 2] == 'G')
+		      && (big[i + 3] == 'R') && (big[i + 4] == 'M')
+		      && (big[i + 5] == 'E'))
+		    {
+		      foundRME = 0;
+		      if (debug)
+			g_print ("\n found #RME#");
+		      for (j = i; j <= bigpRME; j++)
+			if (big[j] == 13)
+			  {
+			    foundRME = j;
+			    break;
+			  }
+		      if (foundRME != 0)
+			{
+			  gint lenstr;
+			  lenstr = foundRME - i;
+			  if ((lenstr) > 200)
+			    {
+			      g_print
+				("\nError in line %d, foundRME=%d,i=%d, diff=%d\n",
+				 __LINE__, foundRME, i, lenstr);
+			      lenstr = 200;
+			    }
+			  if (i > foundRME)
+			    {
+			      g_print
+				("\nError in line %d, foundRME=%d,i=%d, diff=%d\n",
+				 __LINE__, foundRME, i, lenstr);
+			      lenstr = 0;
+			    }
+			  if (lenstr != 0)
+			    {
+			      strncpy (tok, (big + i), lenstr);
+			      tok[lenstr] = 0;
+			      lastpRME = foundRME;
+
+			      if (checksum (tok) == TRUE)
+				convertRME (tok);
+			    }
+			}
+		    }
+		}
+	    }
+
+/*  collect string for precision from  $GPGSA if available*/
+
+	  for (i = bigpGSA; i > lastpGSA; i--)
+	    {
+	      if (big[i] == '$')
+		{
+
+		  if ((big[i + 1] == 'G') && (big[i + 2] == 'P')
+		      && (big[i + 3] == 'G') && (big[i + 4] == 'S')
+		      && (big[i + 5] == 'A'))
+		    {
+		      foundGSA = 0;
+		      if (debug)
+			g_print ("\n found #GSA#");
+		      for (j = i; j <= bigpGSA; j++)
+			if (big[j] == 13)
+			  {
+			    foundGSA = j;
+			    break;
+			  }
+		      if (foundGSA != 0)
+			{
+			  gint lenstr;
+			  lenstr = foundGSA - i;
+			  if ((lenstr) > 200)
+			    {
+			      g_print
+				("\nError in line %d, foundGSA=%d,i=%d, diff=%d\n",
+				 __LINE__, foundGSA, i, lenstr);
+			      lenstr = 200;
+			    }
+			  if (i > foundGSA)
+			    {
+			      g_print
+				("\nError in line %d, foundGSA=%d,i=%d, diff=%d\n",
+				 __LINE__, foundGSA, i, lenstr);
+			      lenstr = 0;
+			    }
+			  if (lenstr != 0)
+			    {
+			      strncpy (tok, (big + i), lenstr);
+			      tok[lenstr] = 0;
+			      lastpGSA = foundGSA;
+
+			      if (checksum (tok) == TRUE)
+				convertGSA (tok);
+			    }
+			}
+		    }
+		}
+	    }
+
+
+
+	  if (mydebug)
+	    g_print ("\nsize:%d lastp: %d \n%s", e, lastp, buffer);
+
+	}
+      else
+	{
+	  lastp = lastpGGA = lastpGSV = lastpRME = lastpGSA = 0;
+	  bigp = e;
+	  g_strlcpy (big, buffer, MAXBIG);
+	}
+
+    }
+  else
+    {
+      timeoutcount++;
+    }
+
+
+
+  return (TRUE);
+}
+
+int
+checkalarm (void)
+{
+  gdouble d;
+  FILE *f;
+  int pid, e;
+
+  d = calcdist (alarm_long, alarm_lat);
+  if (d < alarm_dist)
+    return 0;
+
+  fprintf (stderr, _("Distance to HomeBase: %.1fkm, max. allowed: %.1fkm\n"),
+	   d, alarm_dist);
+  f = fopen ("/tmp/cammain.pid", "r");
+  if (f <= 0)
+    {
+      fprintf (stderr, "no cammain running!\n");
+      return -1;
+    }
+  fscanf (f, "%d", &pid);
+  e = kill (pid, SIGUSR1);
+  if (e != 0)
+    fprintf (stderr, "sending signal failed!\n");
+  return 0;
+}
+
+/*  test if we need to load another map */
+void
+testnewmap ()
+{
+  long long best = 1000000000LL;
+  gdouble posx, posy;
+  long long bestmap = 9999999999LL;
+  gdouble pixelfactloc, bestscale = 1000000000.0, fact;
+  gint i, j, skip, istopo, ncount = 0;
+  gchar str[100], buf[200], mappath[500];
+  gdouble dif;
+  gchar nasaname[255];
+  static int nasaisvalid = FALSE;
+
+  if (importactive)
+    return;
+
+  if (posmode)
+    {
+      current_long = posmode_x;
+      current_lat = posmode_y;
+    }
+  else
+    {
+      gdouble d;
+/*  test for new route point */
+      if (strcmp (targetname, "     "))
+	{
+	  if (routemode)
+	    d =
+	      calcdist ((routelist + routepointer)->longitude,
+			(routelist + routepointer)->lat);
+	  else
+	    d = calcdist (target_long, target_lat);
+
+	  if (d < routenearest)
+	    {
+	      routenearest = d;
+	    }
+/* 	  g_print */
+/* 	    ("\nroutepointer: %d d: %.1f routenearest: %.1f routereach: %0.3f", */
+/* 	     routepointer, d, routenearest, ROUTEREACH); */
+	  if ((d <= ROUTEREACH) || (d > (ROUTEREACHFACT * routenearest))
+	      || forcenextroutepoint)
+	    {
+	      forcenextroutepoint = FALSE;
+	      if ((routepointer != (routeitems - 1)) && (routemode))
+		{
+		  routenearest = 9999999999.0;
+		  routepointer++;
+/* let's say the waypoint description */
+		  g_strlcpy (mappath, homedir, sizeof (mappath));
+		  g_strlcat (mappath, activewpfile, sizeof (mappath));
+		  saytargettext (mappath, targetname);
+
+		  setroutetarget (NULL, -1);
+		}
+	      else
+		{
+/*  route endpoint reached */
+		  if (saytarget)
+		    {
+		      g_snprintf (str, sizeof (str), "%s: %s", _("To"),
+				  targetname);
+		      gtk_frame_set_label (GTK_FRAME (destframe), str);
+		      createroute = FALSE;
+		      routemode = FALSE;
+		      saytarget = FALSE;
+		      routepointer = routeitems = 0;
+		      switch (voicelang)
+			{
+			case english:
+			  g_snprintf (buf, sizeof (buf),
+				      "You reached the target %s",
+				      targetname);
+			  break;
+			case spanish:
+			  g_snprintf (buf, sizeof (buf),
+				      "usted ha llegado a %s", targetname);
+			  break;
+			case german:
+			  g_snprintf (buf, sizeof (buf),
+				      "Sie haben das Ziel %s erreicht",
+				      targetname);
+			}
+		      speech_out_speek (buf);
+/* let's say the waypoint description */
+		      g_strlcpy (mappath, homedir, sizeof (mappath));
+		      g_strlcat (mappath, activewpfile, sizeof (mappath));
+		      saytargettext (mappath, targetname);
+		    }
+		}
+	    }
+	}
+    }
+
+
+/* search for suitable maps */
+  if (displaymap_top)
+    if ((havenasa < 0) || (!nasaisvalid))
+      {
+
+/* delete nasamaps entries from maps list */
+	for (i = 0; i < nrmaps; i++)
+	  {
+	    if ((strcmp ((maps + i)->filename, "top_NASA_IMAGE.ppm")) == 0)
+	      {
+		for (j = i; j < (nrmaps - 1); j++)
+		  *(maps + j) = *(maps + j + 1);
+		nrmaps--;
+		continue;
+	      }
+	  }
+
+	havenasa =
+	  create_nasa_mapfile (current_lat, current_long, TRUE, nasaname);
+	if (havenasa > 0)
+	  {
+	    skip = FALSE;
+	    i = nrmaps;
+	    nrmaps++;
+	    maps = g_renew (mapsstruct, maps, (nrmaps + 2));
+	    havenasa =
+	      create_nasa_mapfile (current_lat, current_long, FALSE,
+				   nasaname);
+	    (maps + i)->lat = current_lat;
+	    (maps + i)->longitude = current_long;
+	    (maps + i)->scale = havenasa;
+	    g_strlcpy ((maps + i)->filename, nasaname, 200);
+	    if ((strcmp (oldfilename, "top_NASA_IMAGE.ppm")) == 0)
+	      g_strlcpy (oldfilename, "XXXOLDMAPXXX.ppm",
+			 sizeof (oldfilename));
+	  }
+      }
+
+  nasaisvalid = FALSE;
+
+  for (i = 0; i < nrmaps; i++)
+    {
+      skip = TRUE;
+      if (displaymap_map)
+	if (!(strncmp ((maps + i)->filename, "map_", 4)))
+	  skip = FALSE;
+      if (displaymap_top)
+	if (!(strncmp ((maps + i)->filename, "top_", 4)))
+	  skip = FALSE;
+
+      if (skip)
+	continue;
+      if (!(strncmp ((maps + i)->filename, "top_", 4)))
+	istopo = TRUE;
+      else
+	istopo = FALSE;
+
+/*        calcxy (&posx, &posy, (maps + i)->longitude, (maps + i)->lat,1); */
+/*  Longitude */
+      if (istopo == FALSE)
+	posx =
+	  (Ra[(int) (100 + (maps + i)->lat)] * M_PI / 180) * cos (M_PI *
+								  (maps +
+								   i)->lat /
+								  180.0) *
+	  (current_long - (maps + i)->longitude);
+      else
+	posx =
+	  (Ra[(int) (100 + 0)] * M_PI / 180) * (current_long -
+						(maps + i)->longitude);
+
+
+/*  latitude */
+
+      if (istopo == FALSE)
+	{
+	  posy =
+	    (Ra[(int) (100 + (maps + i)->lat)] * M_PI / 180) * (current_lat -
+								(maps +
+								 i)->lat);
+	  dif =
+	    Ra[(int) (100 + (maps + i)->lat)] * (1 -
+						 (cos
+						  ((M_PI *
+						    (current_long -
+						     (maps +
+						      i)->longitude)) /
+						   180.0)));
+	  posy = posy + dif / 2.0;
+	}
+      else
+	posy =
+	  (Ra[(int) (100 + 0)] * M_PI / 180) * (current_lat -
+						(maps + i)->lat);
+
+
+      pixelfactloc = (maps + i)->scale / PIXELFACT;
+      posx = posx / pixelfactloc;
+      posy = posy / pixelfactloc;
+
+      if (strcmp ("top_NASA_IMAGE.ppm", (maps + i)->filename) == 0)
+	{
+	  ncount++;
+	}
+
+      if ((posx > -(640 - borderlimit)) && (posx < (640 - borderlimit)))
+	{
+	  if (((posy - borderlimit) > -512) && ((posy + borderlimit) < 512))
+	    {
+
+
+	      if (displaymap_top)
+		if (strcmp ("top_NASA_IMAGE.ppm", (maps + i)->filename) == 0)
+		  {
+/* nasa map is in range */
+		    nasaisvalid = TRUE;
+		  }
+
+	      if (scaleprefered)
+		{
+		  if (scalewanted > (maps + i)->scale)
+		    fact = (gdouble) scalewanted / (maps + i)->scale;
+		  else
+		    fact = (maps + i)->scale / (gdouble) scalewanted;
+
+		  if (fact < bestscale)
+		    {
+		      bestscale = fact;
+		      bestmap = i;
+/* 			  bestcentereddist = centereddist; */
+		    }
+		}
+	      else		/* autobestmap */
+		{
+		  if ((maps + i)->scale < best)
+		    {
+		      bestmap = i;
+		      best = (maps + i)->scale;
+		    }
+		}
+	    }			/*  End of if posy> ... */
+	}
+
+    }
+  if (bestmap != 9999999999LL)
+    {
+      g_strlcpy (mapfilename, (maps + bestmap)->filename,
+		 sizeof (mapfilename));
+      if ((strcmp (oldfilename, mapfilename)) != 0)
+	{
+	  g_strlcpy (oldfilename, mapfilename, sizeof (oldfilename));
+	  if (debug)
+	    g_print ("\nNew map: %s\n", mapfilename);
+	  pixelfact = (maps + bestmap)->scale / PIXELFACT;
+	  zero_long = (maps + bestmap)->longitude;
+	  zero_lat = (maps + bestmap)->lat;
+	  mapscale = (maps + bestmap)->scale;
+	  xoff = yoff = 0;
+	  if (nrmaps > 0)
+	    loadmap (mapfilename);
+	}
+    }
+  else
+    {
+      if (((strcmp (oldfilename, mapfilename)) != 0) && (havedefaultmap))
+	{
+	  g_strlcpy (oldfilename, mapfilename, sizeof (oldfilename));
+	  g_strlcpy (mapfilename, "top_GPSWORLD.jpg", sizeof (mapfilename));
+	  pixelfact = 88226037.0 / PIXELFACT;
+	  zero_long = 0;
+	  zero_lat = 0;
+	  mapscale = 88226037;
+	  xoff = yoff = 0;
+	  loadmap (mapfilename);
+	}
+    }
+
+/*     fprintf (stderr, "nrmaps: %d, nasa: %d\n", nrmaps, ncount); */
+
+}
+
+/*  set the target in routemode */
+void
+setroutetarget (GtkWidget * widget, gint datum)
+{
+  gchar buf[1000], buf2[1000], str[200], *tn;
+
+  if (datum != -1)
+    routepointer = datum;
+
+  routenearest = 9999999;
+  g_strlcpy (targetname, (routelist + routepointer)->name,
+	     sizeof (targetname));
+  target_lat = (routelist + routepointer)->lat;
+  target_long = (routelist + routepointer)->longitude;
+  g_snprintf (str, sizeof (str), "%s: %s[%d/%d]", _("To"), targetname,
+	      routepointer + 1, routeitems);
+  gtk_frame_set_label (GTK_FRAME (destframe), str);
+  tn = g_strdelimit (targetname, "_", ' ');
+  g_strlcpy (buf2, "", sizeof (buf2));
+  if (tn[0] == '*')
+    {
+      g_strlcpy (buf2, "das mobile Ziel ", sizeof (buf2));
+      g_strlcat (buf2, (tn + 1), sizeof (buf2));
+    }
+  else
+    g_strlcat (buf2, tn, sizeof (buf2));
+
+  switch (voicelang)
+    {
+    case english:
+      g_snprintf (buf, sizeof (buf), "New target is %s", buf2);
+      break;
+    case spanish:
+      g_snprintf (buf, sizeof (buf), "DestinaciÂŽón definida: %s", buf2);
+      break;
+    case german:
+      g_snprintf (buf, sizeof (buf), "Neues Ziel ist %s ", buf2);
+    }
+  speech_out_speek (buf);
+  speechcount = 0;
+  g_strlcpy (oldangle, "XXX", sizeof (oldangle));
+  saytarget = TRUE;
+}
+
+
+gint
+posmodeoff_cb (GtkWidget * widget, guint * datum)
+{
+  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (posbt), FALSE);
+  return FALSE;
+}
+
+gint
+lightoff (GtkWidget * widget, guint * datum)
+{
+  disableisnight = FALSE;
+/* gtk_widget_modify_bg (mainwindow, GTK_STATE_NORMAL, &nightcolor); */
+  return FALSE;
+}
+
+gint
+lighton (void)
+{
+  disableisnight = TRUE;
+/*   nighttimer = gtk_timeout_add (30000, (GtkFunction) lightoff, 0); */
+
+/*   gtk_widget_restore_default_style(mainwindow); */
+  return TRUE;
+}
+
+gint
+tripreset ()
+{
+
+  tripodometer = tripavspeed = triptime = tripmaxspeed = triptmp = 0.0;
+  tripavspeedcount = 0;
+  trip_lat = current_lat;
+  trip_long = current_long;
+  triptime = time (NULL);
+
+  return TRUE;
+}
+
+/* map_koord.txt is in mappath! */
+gint
+testconfig_cb (GtkWidget * widget, guint * datum)
+{
+#ifdef MAKETHISTEST
+  gint i;
+  for (i = 0; i < nrmaps; i++)
+    {
+      if ((strncmp ((maps + i)->filename, "map_", 4)))
+	if ((strncmp ((maps + i)->filename, "top_", 4)))
+	  {
+	    GString *error;
+	    error = g_string_new (NULL);
+	    g_string_printf (error, "\n%s%d\n%s", _("Error in line "), i + 1,
+			     _
+			     ("I have found filenames in map_koord.txt which are\n"
+			      "not map_* or top_* files. Please rename them and change the entries in\n"
+			      "map_koord.txt.  Use map_* for street maps and top_* for topographical\n"
+			      "maps.  Otherwise, the maps will not be displayed!"));
+	    error_popup ((gpointer *) error->str);
+	    g_string_free (error, TRUE);
+	    messageshown = TRUE;
+	    return FALSE;
+	  }
+    }
+#endif
+
+  friendsagent_cb (NULL, 0);
+  tripreset ();
+  gtk_timeout_add (TRIPMETERTIMEOUT * 1000, (GtkFunction) dotripmeter, NULL);
+
+  return FALSE;
+}
+
+gint
+watchwp_cb (GtkWidget * widget, guint * datum)
+{
+  gint angle, i, radarnear;
+  gdouble d;
+  gchar buf[400], lname[200], l2name[200];
+  gdouble ldist = 9999.0, l2dist = 9999.0;
+  gdouble tx, ty, lastbearing;
+
+/*  calculate new earth radius */
+  earthr = calcR (current_lat);
+
+  if (importactive)
+    return TRUE;
+
+  foundradar = FALSE;
+  radarnear = FALSE;
+
+
+  for (i = 0; i < maxwp; i++)
+    {
+/*  test for radar */
+      if (((wayp + i)->action) == 1)
+	{
+	  d = calcdist2 ((wayp + i)->longitude, (wayp + i)->lat);
+	  if (d < 0.6)
+	    {
+	      lastbearing = radarbearing;
+	      tx = -current_long + (wayp + i)->longitude;
+	      ty = -current_lat + (wayp + i)->lat;
+	      radarbearing = atan (tx / ty);
+	      if (!finite (radarbearing))
+		radarbearing = lastbearing;
+
+	      if (ty < 0)
+		radarbearing = M_PI + radarbearing;
+	      radarbearing -= direction;
+	      if (radarbearing >= (2 * M_PI))
+		radarbearing -= 2 * M_PI;
+	      if (radarbearing < 0)
+		radarbearing += 2 * M_PI;
+	      if (radarbearing < 0)
+		radarbearing += 2 * M_PI;
+	      angle = radarbearing * 180.0 / M_PI;
+
+	      if ((angle < 40) || (angle > 320))
+		{
+		  foundradar = TRUE;
+		  if (d < ldist)
+		    {
+		      ldist = d;
+		      g_strlcpy (lname, (wayp + i)->name, sizeof (lname));
+		    }
+		  if (d < 0.2)
+		    {
+		      foundradar = TRUE;
+		      radarnear = TRUE;
+		      if (d < l2dist)
+			{
+			  l2dist = d;
+			  g_strlcpy (l2name, (wayp + i)->name,
+				     sizeof (l2name));
+			}
+		    }
+		}
+
+	    }
+
+	}
+    }
+  if (!foundradar)
+    {
+      g_strlcpy (lastradar, "----", sizeof (lastradar));
+      g_strlcpy (lastradar2, "----", sizeof (lastradar2));
+    }
+  else
+    {
+      if ((strcmp (lname, lastradar)) != 0)
+	{
+	  g_strlcpy (lastradar, lname, sizeof (lastradar));
+	  switch (voicelang)
+	    {
+	    case english:
+	      g_snprintf (buf, sizeof (buf),
+			  "Danger, Danger, Radar in %d meters, Your speed is %d",
+			  (int) (ldist * 1000.0), (int) groundspeed);
+	      break;
+	    case spanish:
+	      g_snprintf (buf, sizeof (buf),
+			  "Atención Atención, control de  velocidad en %d metros, Su velocidad es %d",
+			  (int) (ldist * 1000.0), (int) groundspeed);
+	      break;
+	    case german:
+	      g_snprintf (buf, sizeof (buf),
+			  "Achtung, Achtung, Radar in %d metern, Ihre Geschwindigkeit ist %d",
+			  (int) (ldist * 1000.0), (int) groundspeed);
+	    }
+	  if (displaytext != NULL)
+	    free (displaytext);
+	  displaytext = strdup (buf + 10);
+	  displaytext = g_strdelimit (displaytext, "\n", ' ');
+	  displaytext = g_strdelimit (displaytext, "\")", ' ');
+
+	  do_display_dsc = TRUE;
+	  textcount = 0;
+
+	  speech_out_speek (buf);
+	}
+
+      if (radarnear)
+	if ((strcmp (l2name, lastradar2)) != 0)
+	  {
+	    g_strlcpy (lastradar2, l2name, sizeof (lastradar2));
+	    switch (voicelang)
+	      {
+	      case english:
+		g_snprintf (buf, sizeof (buf),
+			    "Information, Radar in %d meters",
+			    (int) (ldist * 1000.0));
+		break;
+	      case spanish:
+		g_snprintf (buf, sizeof (buf),
+			    "InformaciÂŽón, control de  velocidad en %d metros",
+			    (int) (ldist * 1000.0));
+		break;
+	      case german:
+		g_snprintf (buf, sizeof (buf),
+			    "Information, Radar in %d meter",
+			    (int) (ldist * 1000.0));
+	      }
+	    speech_out_speek (buf);
+	  }
+
+    }
+
+  return TRUE;
+}
+
+void
+checkinput (gchar * text)
+{
+  if ((strstr (text, "'")) != NULL)
+    mintodecimal (text);
+}
+
+void
+decimaltomin (gchar * text, gint islat)
+{
+  gint grad, min, minus = FALSE;
+  gdouble dec, rest, minf, sec;
+  dec = g_strtod (text, NULL);
+  if (dec < 0)
+    {
+      minus = TRUE;
+      dec *= -1.0;
+    }
+  grad = dec;
+  rest = dec - grad;
+
+  minf = (60.0 * rest);
+  min = minf;
+  rest = minf - min;
+  sec = 60.0 * rest;
+#if PREFER_MinDec
+  /* Hack alert: there should be a 3-way lat/lon format selection in the GUI */
+  if (islat)
+    g_snprintf (text,100, "%d%s%.3f'%c", grad, gradsym, minf,
+		(minus) ? 'S' : 'N');
+  else
+    g_snprintf (text, 100, "%d%s%.3f'%c", grad, gradsym, minf,
+		(minus) ? 'W' : 'E');
+#else
+  if (islat)
+    g_snprintf (text, 100, "%d%s%.2d'%05.2f''%c", grad, gradsym,
+		min, sec, (minus) ? 'S' : 'N');
+  else
+    g_snprintf (text, 100, "%d%s%.2d'%05.2f''%c", grad, gradsym,
+		min, sec, (minus) ? 'W' : 'E');
+#endif
+
+}
+
+void
+mintodecimal (gchar * text)
+{
+  gint grad, minus = FALSE;
+  gdouble sec;
+  gint min;
+  gdouble dec;
+  gchar s2;
+  gint rc;
+
+  /*
+   * Handle either DMS or MinDec formats
+   */
+  rc = sscanf (text, "%d\xc2\xb0%d'%lf''%c", &grad, &min, &sec, &s2);
+  if (rc == 4)
+    {
+      /*   g_strdelimit (s1, ",", '.'); */
+      /*   sscanf(s1,"%f",&sec); */
+      dec = grad + min / 60.0 + sec / 3600.0;
+    }
+  else
+    {
+      gdouble fmin;
+      rc = sscanf (text, "%d\xc2\xb0%lf'%c", &grad, &fmin, &s2);
+      if (rc != 3)
+	{
+	  /* TODO: handle bad format gracefully */
+	}
+      dec = grad + fmin / 60.0;
+    }
+  if (s2 == 'W')
+    minus = TRUE;
+  if (s2 == 'S')
+    minus = TRUE;
+  if (minus)
+    dec *= -1.0;
+  g_snprintf (text, 100, "%.6f", dec);
+/*   g_print ("%s\n", text); */
+}
+
+/*  display upper status line */
+void
+display_status2 ()
+{
+  gchar s2[100], buf[200], mf[50];
+  gint h, m;
+  gdouble secs, v;
+  if (downloadactive == TRUE)
+    return;
+  if (importactive == TRUE)
+    return;
+  secs = g_timer_elapsed (disttimer, 0);
+  h = hours;
+  m = minutes;
+  if (secs >= 300.0)
+    {
+      g_timer_stop (disttimer);
+      g_timer_start (disttimer);
+      v = 3600.0 * (olddist - dist) / secs;
+      h = dist / v;
+      m = 60 * (dist / v - h);
+      if (mydebug)
+	g_print ("\nsecs: %.0fs,v:%.0f,h:%d,m:%d", secs, v, h, m);
+      if ((m < 0) || (h > 99))
+	{
+	  h = 99;
+	  m = 99;
+	}
+      olddist = dist;
+      hours = h;
+      minutes = m;
+      if (!muteflag)
+	if (hours < 99)
+	  {
+	    switch (voicelang)
+	      {
+	      case english:
+		if (hours > 0)
+		  g_snprintf (buf, sizeof (buf),
+			      "Arrival in approximatly %d hours and %d minutes",
+			      hours, minutes);
+		else
+		  g_snprintf (buf, sizeof (buf),
+			      "Arrival in approximatly %d minutes", minutes);
+		break;
+	      case spanish:
+		if (hours > 0)
+		  g_snprintf (buf, sizeof (buf),
+			      "Llegada en %d horas y %d minutos",
+			      hours, minutes);
+		else
+		  g_snprintf (buf, sizeof (buf), "Llegada en %d minutos",
+			      minutes);
+		break;
+	      case german:
+		if (hours > 0)
+		  {
+		    if (hours == 1)
+		      g_snprintf (buf, sizeof (buf),
+				  "Ankunft in circa einer Stunde und %d minuten",
+				  minutes);
+		    else
+		      g_snprintf (buf, sizeof (buf),
+				  "Ankunft in circa %d Stunden und %d minuten",
+				  hours, minutes);
+		  }
+		else
+		  g_snprintf (buf, sizeof (buf),
+			      "Ankunft in zirca %d minuten", minutes);
+		speech_out_speek (buf);
+	      }
+	  }
+
+    }
+
+  if (minsecmode)
+    {
+      g_snprintf (s2, sizeof (s2), "%8.5f", current_lat);
+      decimaltomin (s2, 1);
+    }
+  else
+    {
+      g_snprintf (s2, sizeof (s2), "%8.5f", fabs (current_lat));
+      if (current_lat >= 0)
+	g_strlcat (s2, "N", sizeof (s2));
+      else
+	g_strlcat (s2, "S", sizeof (s2));
+    }
+  gtk_label_set_text (GTK_LABEL (l1), s2);
+  if (minsecmode)
+    {
+      g_snprintf (s2, sizeof (s2), "%8.5f", current_long);
+      decimaltomin (s2, 0);
+    }
+  else
+    {
+      g_snprintf (s2, sizeof (s2), "%8.5f", fabs (current_long));
+      if (current_long >= 0)
+	g_strlcat (s2, "E", sizeof (s2));
+      else
+	g_strlcat (s2, "W", sizeof (s2));
+    }
+
+  gtk_label_set_text (GTK_LABEL (l2), s2);
+  strncpy (mf, mapfilename, 18);
+  mf[17] = 0;
+  gtk_label_set_text (GTK_LABEL (l3), mf);
+  g_snprintf (s2, sizeof (s2), "1:%ld", mapscale);
+  gtk_label_set_text (GTK_LABEL (l4), s2);
+  g_snprintf (s2, sizeof (s2), "%3.0f%s", direction * 180.0 / M_PI, gradsym);
+
+  gtk_label_set_text (GTK_LABEL (l5), s2);
+  g_snprintf (s2, sizeof (s2), "%3.0f%s", bearing * 180.0 / M_PI, gradsym);
+
+  gtk_label_set_text (GTK_LABEL (l6), s2);
+  g_snprintf (s2, sizeof (s2), "%2d:%02dh", h, m);
+  gtk_label_set_text (GTK_LABEL (l7), s2);
+  if (scaleprefered)
+    g_snprintf (s2, sizeof (s2), "1:%d", scalewanted);
+  else
+    g_snprintf (s2, sizeof (s2), _("Auto"));
+  gtk_label_set_text (GTK_LABEL (l8), s2);
+  if (debug)
+    {
+      if (havepos)
+	g_print ("\n***Position: %f %f***\n", current_lat, current_long);
+      else
+	g_print ("\n***no valid Position:\n");
+    }
+}
+
+
+/* draw the marker on the map */
+gint
+drawmarker_cb (GtkWidget * widget, guint * datum)
+{
+  static struct timeval tv1, tv2;
+  struct timezone tz;
+  long runtime, runtime2;
+
+  if (importactive)
+    return TRUE;
+
+  if ((!disableisnight) && (!downloadwindowactive))
+    {
+      if (((nightmode == 1) || ((nightmode == 2) && isnight))
+	  && (!alreadynightmode))
+	{
+	  gtk_widget_modify_bg (mainwindow, GTK_STATE_NORMAL, &nightcolor);
+	  alreadydaymode = FALSE;
+	  alreadynightmode = TRUE;
+	  if (debug)
+	    fprintf (stderr, "setting to night view\n");
+	}
+    }
+  if (((nightmode == 0) || disableisnight || downloadwindowactive)
+      && (!alreadydaymode))
+    {
+      gtk_widget_modify_bg (mainwindow, GTK_STATE_NORMAL, &defaultcolor);
+      if (debug)
+	fprintf (stderr, "setting to daylight view\n");
+      alreadydaymode = TRUE;
+      alreadynightmode = FALSE;
+    }
+
+
+  gettimeofday (&tv1, &tz);
+  runtime2 = tv1.tv_usec - tv2.tv_usec;
+  if (tv1.tv_sec != tv2.tv_sec)
+    runtime2 += 1000000l * (tv1.tv_sec - tv2.tv_sec);
+/*  we test if we have to load a new map because we are outside 
+the currently loaded map */
+  testnewmap ();
+/*   g_print("\ndrawmarker_cb %d",drawmarkercounter++); */
+  exposed = FALSE;
+/* The position calculation is made in expose_cb() */
+  gtk_widget_draw (drawing_area, NULL);	/* this  calls expose handler */
+  if (!exposed)
+    expose_cb (NULL, 0);
+  expose_compass (NULL, 0);
+  gettimeofday (&tv2, &tz);
+  runtime = tv2.tv_usec - tv1.tv_usec;
+  if (tv2.tv_sec != tv1.tv_sec)
+    runtime += 1000000l * (tv2.tv_sec - tv1.tv_sec);
+  globruntime = runtime / 1000;
+  loadpercent = (int) (100.0 * (float) runtime / (runtime + runtime2));
+/*   if (debug) */
+/*     g_print ("Rechenzeit: %dms, %d%%\n", (int) (runtime / 1000), loadpercent); */
+
+  return FALSE;
+}
+
+/* Try to produce only given CPU load  */
+
+gint
+calldrawmarker_cb (GtkWidget * widget, guint * datum)
+{
+  gint period;
+
+  if (cpuload < 1)
+    cpuload = 1;
+  if (cpuload > 95)
+    cpuload = 95;
+  if (!haveNMEA)
+    expose_sats_cb (NULL, 0);
+  if (pleasepollme)
+    {
+      pleasepollme++;
+      if (pleasepollme > 10)
+	{
+	  pleasepollme = 1;
+	  friends_sendmsg (friendsserverip, NULL);
+	}
+    }
+  period = 10 * globruntime / (10 * cpuload);
+  drawmarkercounter++;
+/*   g_print ("period: %d, drawmarkercounter %d\n", period, drawmarkercounter);  */
+
+  if (((drawmarkercounter > period) || (drawmarkercounter > 50))
+      && (drawmarkercounter >= 3))
+    {
+      drawmarkercounter = 0;
+      drawmarker_cb (NULL, NULL);
+    }
+  return TRUE;
+}
+
+
+/* Friends agent */
+gint
+friendsagent_cb (GtkWidget * widget, guint * datum)
+{
+  time_t tii;
+  gchar buf[MAXMESG], buf2[40], la[20], lo[20], num[5];
+  gint i;
+
+/* typedef struct
+ * {
+ * 	  char id[30], name[40], lat[40], longi[40], timesec[40], speed[10],
+ *     heading[10];
+ * }
+ * friendsstruct;
+ */
+
+/* Don't allow spaces in name */
+  for (i = 0; (size_t) i < strlen (friendsname); i++)
+    if (friendsname[i] == ' ')
+      friendsname[i] = '_';
+
+/*  send position to friendsserver */
+
+  if (havefriends)
+    {
+      if (strlen (messagesendtext) > 0)
+	{
+/* send message to server */
+	  if (messagenumber < 99)
+	    messagenumber++;
+	  else
+	    messagenumber = 0;
+	  needtosave = TRUE;
+	  g_snprintf (num, sizeof (num), "%02d", messagenumber);
+	  g_strlcpy (buf2, friendsidstring, sizeof (buf2));
+	  buf2[0] = 'M';
+	  buf2[1] = 'S';
+	  buf2[2] = 'G';
+	  buf2[3] = num[0];
+	  buf2[4] = num[1];
+	  g_snprintf (buf, sizeof (buf), "SND: %s %s %s", buf2, messagename,
+		      messagesendtext);
+	  if (debug)
+	    fprintf (stderr, "\nsending to %s:\n%s\n", friendsserverip, buf);
+	  if (sockfd != -1)
+	    close (sockfd);
+	  sockfd = -1;
+	  friends_sendmsg (friendsserverip, buf);
+	  g_snprintf (messageack, sizeof (messageack), "SND: %s", buf2);
+	}
+      else
+	{
+/* send position to server */
+	  g_snprintf (la, sizeof (la), "%10.6f", current_lat);
+	  g_snprintf (lo, sizeof (lo), "%10.6f", current_long);
+	  g_strdelimit (la, ",", '.');
+	  g_strdelimit (lo, ",", '.');
+	  tii = time (NULL);
+	  g_snprintf (buf, sizeof (buf), "POS: %s %s %s %s %ld %.0f %.0f",
+		      friendsidstring, friendsname, la, lo, tii,
+		      groundspeed / milesconv, 180.0 * direction / M_PI);
+	  if (debug)
+	    fprintf (stderr, "\nsending to %s:\n%s\n", friendsserverip, buf);
+	  if (sockfd != -1)
+	    close (sockfd);
+	  sockfd = -1;
+	  friends_sendmsg (friendsserverip, buf);
+	}
+    }
+
+  return TRUE;
+}
+
+
+
+/* Master agent */
+gint
+masteragent_cb (GtkWidget * widget, guint * datum)
+{
+  gchar mappath[400];
+  gint f;
+  struct stat buf;
+  gchar buffer[200];
+
+  if (needtosave)
+    writeconfig ();
+  if (needreloadmapconfig)
+    loadmapconfig ();
+
+  if (needreminder)
+    {
+      reminder_cb (NULL, 0);
+      needreminder = FALSE;
+    }
+  checkalarm ();
+
+  testifnight ();
+
+
+  if (!didrootcheck)
+    if (getuid () == 0)
+      {
+	g_snprintf (buffer, sizeof (buffer),
+		    "<span  weight=\"bold\">%s</span>\n%s", _("Warning!"),
+		    _("You should not start GpsDrive as user root!!!"));
+	error_popup (buffer);
+	didrootcheck = TRUE;
+      }
+
+/* Check for changed way.txt and reload if changed */
+  g_strlcpy (mappath, homedir, sizeof (mappath));
+
+  if (!sqlflag)
+    g_strlcat (mappath, activewpfile, sizeof (mappath));
+  else
+    g_strlcat (mappath, "way-SQLRESULT.txt", sizeof (mappath));
+
+  f = stat (mappath, &buf);
+  if (buf.st_mtime != waytxtstamp)
+    {
+      loadwaypoints ();
+      iszoomed = FALSE;
+      if (!sqlflag)
+	g_print ("\n%s reloaded\n", activewpfile);
+      else
+	g_print ("\n%s reloaded\n", "way-SQLRESULT.txt");
+    }
+  if (tracknr > (tracklimit - 1000))
+    {
+      g_print ("tracklimit: %ld", tracklimit);
+      track = g_renew (GdkSegment, track, tracklimit + 100000);
+      trackshadow = g_renew (GdkSegment, trackshadow, tracklimit + 100000);
+      tracklimit += 100000;
+    }
+  if (trackcoordnr > (trackcoordlimit - 1000))
+    {
+      trackcoord =
+	g_renew (trackcoordstruct, trackcoord, trackcoordlimit + 100000);
+      trackcoordlimit += 100000;
+    }
+
+
+
+  return TRUE;
+}
+
+/* draw track on image */
+gint
+storetrack_cb (GtkWidget * widget, guint * datum)
+{
+  gint i, so;
+  gchar buf3[35];
+  time_t t;
+  struct tm *ts;
+
+/*    if (posmode) */
+/*      return TRUE; */
+  if (posmode)
+    i = 1;
+  else
+    i = 2;
+
+/*    g_print ("\nHavepos: %d", havepos); */
+  if ((!simmode && !havepos) || posmode /*  ||((!simmode &&haveposcount<3)) */ )	/* we have no valid position */
+    {
+      (trackcoord + trackcoordnr)->longi = 1001.0;
+      (trackcoord + trackcoordnr)->lat = 1001.0;
+      (trackcoord + trackcoordnr)->alt = 1001.0;
+    }
+  else
+    {
+      (trackcoord + trackcoordnr)->longi = current_long;
+      (trackcoord + trackcoordnr)->lat = current_lat;
+      (trackcoord + trackcoordnr)->alt = altitude;
+    }
+
+
+/*  The double storage seems to be silly, but I have to use  */
+/*  gdk_draw_segments instead of gdk_draw_lines.   */
+/*  gkd_draw_lines is dog slow because of a gdk-bug. */
+
+  if (tracknr == 0)
+    {
+      if ((trackcoord + trackcoordnr)->longi < 1000.0)
+	{
+	  (track + tracknr)->x1 = posx;
+	  (track + tracknr)->y1 = posy;
+	  (trackshadow + tracknr)->x1 = posx + SHADOWOFFSET;
+	  (trackshadow + tracknr)->y1 = posy + SHADOWOFFSET;
+	  tracknr++;
+	}
+    }
+  else
+    {
+      if ((trackcoord + trackcoordnr)->longi < 1000.0)
+	{
+	  if ((posx != (track + tracknr - 1)->x2)
+	      || (posy != (track + tracknr - 1)->y2))
+	    {
+/*  		so=(int)(((trackcoord + trackcoordnr)->alt))>>5; */
+	      so = SHADOWOFFSET;
+	      (track + tracknr)->x1 = (track + tracknr - 1)->x2 = posx;
+	      (track + tracknr)->y1 = (track + tracknr - 1)->y2 = posy;
+	      (trackshadow + tracknr)->x1 = (trackshadow + tracknr - 1)->x2 =
+		posx + so;
+	      (trackshadow + tracknr)->y1 = (trackshadow + tracknr - 1)->y2 =
+		posy + so;
+	      tracknr += 1;
+	    }
+	}
+      else
+	tracknr = tracknr & ((glong) - 2);
+    }
+  time (&t);
+  ts = localtime (&t);
+  strncpy (buf3, asctime (ts), 32);
+  buf3[strlen (buf3) - 1] = '\0';	/* get rid of \n */
+  g_strlcpy ((trackcoord + trackcoordnr)->postime, buf3, 30);
+  trackcoordnr++;
+
+  return TRUE;
+}
+
+void
+drawwlan (gint posxdest, gint posydest, gint wlan)
+{
+  /*  wlan=0: no wlan, 1:open wlan, 2:WEP crypted wlan */
+
+  if (wlan == 0)
+    return;
+
+  if ((posxdest >= 0) && (posxdest < SCREEN_X))
+    {
+      if ((posydest >= 0) && (posydest < SCREEN_Y))
+	{
+	  if (wlan == 1)
+	    gdk_draw_pixbuf (drawable, kontext, openwlanpixbuf, 0, 0,
+			     posxdest - 14, posydest - 12, 24, 24,
+			     GDK_RGB_DITHER_NONE, 0, 0);
+	  else
+	    gdk_draw_pixbuf (drawable, kontext, closedwlanpixbuf, 0, 0,
+			     posxdest - 14, posydest - 12, 24, 24,
+			     GDK_RGB_DITHER_NONE, 0, 0);
+	}
+    }
+}
+
+int
+drawicon (gint posxdest, gint posydest, char *ic)
+{
+  int symbol = 0, aux = -1, i, x, y;
+  gchar icon[80];
+
+
+  g_strlcpy (icon, ic, sizeof (icon));
+  if (!sqlflag)
+    g_strup (icon);
+
+  if ((strcmp (icon, "REST")) == 0)
+    symbol = 1;
+  else if ((strcmp (icon, "MCDONALDS")) == 0)
+    symbol = 2;
+  else if ((strcmp (icon, "HOTEL")) == 0)
+    symbol = 3;
+  else if ((strcmp (icon, "BURGERKING")) == 0)
+    symbol = 4;
+  else if ((strcmp (icon, "SHOP")) == 0)
+    symbol = 5;
+  else if ((strcmp (icon, "MONU")) == 0)
+    symbol = 6;
+  else if ((strcmp (icon, "NIGHTCLUB")) == 0)
+    symbol = 7;
+  else if ((strcmp (icon, "SPEEDTRAP")) == 0)
+    symbol = 8;
+  else if ((strcmp (icon, "AIRPORT")) == 0)
+    symbol = 9;
+  else if ((strcmp (icon, "GOLF")) == 0)
+    symbol = 10;
+  else if ((strcmp (icon, "GASSTATION")) == 0)
+    symbol = 11;
+  else if ((strcmp (icon, "CAFE")) == 0)
+    symbol = 12;
+  else if ((strcmp (icon, "GEOCACHE")) == 0)
+    symbol = 13;
+
+  for (i = 0; i < lastauxicon; i++)
+    if ((strcmp (icon, (auxicons + i)->name)) == 0)
+      {
+	if ((posxdest >= 0) && (posxdest < SCREEN_X))
+	  {
+
+	    if ((posydest >= 0) && (posydest < SCREEN_Y))
+	      {
+		x = gdk_pixbuf_get_width ((auxicons + i)->icon);
+		y = gdk_pixbuf_get_width ((auxicons + i)->icon);
+		gdk_draw_pixbuf (drawable, kontext, (auxicons + i)->icon,
+				 0, 0,
+				 posxdest - x / 2,
+				 posydest - y / 2, x, y, GDK_RGB_DITHER_NONE,
+				 0, 0);
+		aux = i;
+	      }
+	  }
+	return 99999;
+      }
+
+  if (symbol == 0)
+    return 0;
+
+  if ((posxdest >= 0) && (posxdest < SCREEN_X))
+    {
+
+      if ((posydest >= 0) && (posydest < SCREEN_Y))
+	{
+	  gdk_draw_pixbuf (drawable, kontext, iconpixbuf[symbol - 1],
+			   0, 0,
+			   posxdest - 12,
+			   posydest - 12, 24, 24, GDK_RGB_DITHER_NONE, 0, 0);
+	}
+    }
+  return symbol;
+}
+
+void
+drawfriends (void)
+{
+  gint i;
+  gdouble posxdest, posydest, clong, clat, direction;
+  gint width, height;
+  gdouble w;
+  GdkPoint poly[16];
+  struct tm *t;
+  time_t ti, tif;
+#define PFSIZE 55
+
+  actualfriends = 0;
+/*   g_print ("Maxfriends: %d\n",maxfriends); */
+  for (i = 0; i < maxfriends; i++)
+    {
+
+/* 	    return if too old  */
+      ti = time (NULL);
+      tif = atol ((friends + i)->timesec);
+      if (!(tif > 1000000000))
+	fprintf (stderr, "Format error! timesec: %s, Name: %s, i: %d\n",
+		 (friends + i)->timesec, (friends + i)->name, i);
+      if ((ti - maxfriendssecs) > tif)
+	continue;
+      actualfriends++;
+      clong = g_strtod ((friends + i)->longi, NULL);
+      clat = g_strtod ((friends + i)->lat, NULL);
+
+
+      calcxy (&posxdest, &posydest, clong, clat, zoom);
+
+      if ((posxdest >= 0) && (posxdest < SCREEN_X))
+	{
+
+	  if ((posydest >= 0) && (posydest < SCREEN_Y))
+	    {
+
+	      gdk_draw_pixbuf (drawable, kontext, friendspixbuf, 0, 0,
+			       posxdest - 18,
+			       posydest - 12, 39, 24,
+			       GDK_RGB_DITHER_NONE, 0, 0);
+	      gdk_gc_set_line_attributes (kontext, 4, 0, 0, 0);
+/*  draw pointer to direction */
+	      direction =
+		strtod ((friends + i)->heading, NULL) * M_PI / 180.0;
+	      w = direction + M_PI;
+	      gdk_gc_set_line_attributes (kontext, 2, 0, 0, 0);
+	      poly[0].x = posxdest + (PFSIZE) / 2.3 * (cos (w + M_PI_2));
+	      poly[0].y = posydest + (PFSIZE) / 2.3 * (sin (w + M_PI_2));
+	      poly[1].x = posxdest + (PFSIZE) / 9 * (cos (w + M_PI));
+	      poly[1].y = posydest + (PFSIZE) / 9 * (sin (w + M_PI));
+	      poly[2].x = posxdest + PFSIZE / 10 * (cos (w + M_PI_2));
+	      poly[2].y = posydest + PFSIZE / 10 * (sin (w + M_PI_2));
+	      poly[3].x = posxdest - (PFSIZE) / 9 * (cos (w + M_PI));
+	      poly[3].y = posydest - (PFSIZE) / 9 * (sin (w + M_PI));
+	      poly[4].x = poly[0].x;
+	      poly[4].y = poly[0].y;
+	      gdk_gc_set_foreground (kontext, &blue);
+	      gdk_draw_polygon (drawable, kontext, 0, (GdkPoint *) poly, 5);
+	      gdk_draw_arc (drawable, kontext, 0, posxdest + 2 - 7,
+			    posydest + 2 - 7, 10, 10, 0, 360 * 64);
+
+/*   draw + sign at destination   */
+	      gdk_gc_set_foreground (kontext, &red);
+	      gdk_draw_line (drawable, kontext, posxdest + 1,
+			     posydest + 1 - 5, posxdest + 1,
+			     posydest + 1 + 5);
+	      gdk_draw_line (drawable, kontext, posxdest + 1 + 5,
+			     posydest + 1, posxdest + 1 - 5, posydest + 1);
+	      {
+		/* prints in pango */
+		PangoFontDescription *pfd;
+		PangoLayout *wplabellayout;
+		gchar txt[200], txt2[100], s1[10];
+		time_t sec;
+		char *as, day[20], dispname[40];
+		int speed, ii;
+
+		sec = atol ((friends + i)->timesec);
+		sec += 3600 * zone;
+		t = gmtime (&sec);
+
+		as = asctime (t);
+		sscanf (as, "%s", day);
+		sscanf ((friends + i)->speed, "%d", &speed);
+
+		/* replace _ with  spaces in name */
+		g_strlcpy (dispname, (friends + i)->name, sizeof (dispname));
+		for (ii = 0; (size_t) ii < strlen (dispname); ii++)
+		  if (dispname[ii] == '_')
+		    dispname[ii] = ' ';
+
+		g_snprintf (txt, sizeof (txt), "%s,%d", dispname,
+			    (int) (speed * milesconv));
+		if (milesflag)
+		  g_snprintf (s1, sizeof (s1), "%s", _("mi/h"));
+		else if (nauticflag)
+		  g_snprintf (s1, sizeof (s1), "%s", _("knots"));
+		else
+		  g_snprintf (s1, sizeof (s1), "%s", _("km/h"));
+		g_strlcat (txt, s1, sizeof (txt));
+		g_snprintf (txt2, sizeof (txt2), "\n%s, %2d:%02d", day,
+			    t->tm_hour, t->tm_min);
+		g_strlcat (txt, txt2, sizeof (txt));
+		wplabellayout =
+		  gtk_widget_create_pango_layout (drawing_area, txt);
+//KCFX  
+		if (pdamode)
+		  pfd = pango_font_description_from_string ("Sans 8");
+		else
+		  pfd = pango_font_description_from_string ("Sans bold 11");
+		pango_layout_set_font_description (wplabellayout, pfd);
+		pango_layout_get_pixel_size (wplabellayout, &width, &height);
+		gdk_gc_set_foreground (kontext, &textbacknew);
+/* 		gdk_draw_rectangle (drawable, kontext, 1, posxdest + 18,
+ * 				    posydest - height/2 , width + 2,
+ * 				    height + 2);
+ */
+
+		gdk_draw_layout_with_colors (drawable, kontext, posxdest + 21,
+					     posydest - height / 2 + 1,
+					     wplabellayout, &black, NULL);
+		gdk_draw_layout_with_colors (drawable, kontext, posxdest + 20,
+					     posydest - height / 2,
+					     wplabellayout, &orange, NULL);
+
+		if (wplabellayout != NULL)
+		  g_object_unref (G_OBJECT (wplabellayout));
+		/* freeing PangoFontDescription, cause it has been copied by prev. call */
+		pango_font_description_free (pfd);
+
+	      }
+
+
+	    }
+	}
+    }
+
+
+
+}
+
+
+gint
+expose_sats_cb (GtkWidget * widget, guint * datum)
+{
+  gint k, i, yabs, h, j, l;
+  static GdkGC *mykontext = NULL;
+  gchar t[10], t1[20], buf[300], txt[10];
+  static GdkPixbufAnimation *anim = NULL;
+  static GdkPixbufAnimationIter *animiter = NULL;
+  GTimeVal timeresult;
+#define SATX 5
+/*  draw satellite level (field strength) only in NMEA modus*/
+
+  if (haveNMEA)
+    {
+      gdk_gc_set_foreground (kontext, &lcd);
+
+      gdk_draw_rectangle (drawable_sats, kontext, 1, 3, 0, PSIZE + 2,
+			  PSIZE + 5);
+      gdk_gc_set_line_attributes (kontext, 1, 0, 0, 0);
+      gdk_gc_set_foreground (kontext, &black);
+      gdk_draw_rectangle (drawable_sats, kontext, 0, 3, 0, PSIZE + 2,
+			  PSIZE + 5);
+
+      gdk_gc_set_foreground (kontext, &lcd);
+
+      if (!satposmode)
+	{
+	  if (havepos)
+	    gdk_gc_set_foreground (kontext, &green);
+	  else
+	    gdk_gc_set_foreground (kontext, &red);
+	  gdk_gc_set_line_attributes (kontext, 2, 0, 0, 0);
+	  for (i = 3; i < (PSIZE + 5); i += 3)
+	    gdk_draw_line (drawable_sats, kontext, 4, i, PSIZE + 4, i);
+
+
+	  gdk_gc_set_foreground (kontext, &lcd2);
+	  gdk_gc_set_line_attributes (kontext, 5, 0, 0, 0);
+	  k = 0;
+	  for (i = 0; i < 16; i++)
+	    {
+	      if (i > 5)
+		yabs = 2 + PSIZE;
+	      else
+		yabs = 1 + PSIZE / 2;
+	      h = PSIZE / 2 - 2;
+	      gdk_draw_line (drawable_sats, kontext, 6 + 7 * k + SATX, yabs,
+			     6 + 7 * k + SATX, yabs - h);
+	      k++;
+	      if (k > 5)
+		k = 0;
+	    }
+	}
+      if (satfix == 1)		/* normal Fix */
+	gdk_gc_set_foreground (kontext, &black);
+      else
+	{
+	  if (satfix == 0)	/* no Fix */
+	    gdk_gc_set_foreground (kontext, &textback);
+	  else			/* Differntial Fix */
+	    gdk_gc_set_foreground (kontext, &blue);
+	}
+      j = k = 0;
+#define DEG2RAD M_PI/180.0
+      if (satposmode)
+	{
+	  gdk_gc_set_line_attributes (kontext, 1, 0, 0, 0);
+	  gdk_gc_set_foreground (kontext, &lcd2);
+	  gdk_draw_arc (drawable_sats, kontext, 0, 4,
+			4, PSIZE, PSIZE, 105 * 64, 330 * 64);
+	  gdk_draw_arc (drawable_sats, kontext, 0, 5 + PSIZE / 4,
+			4 + PSIZE / 4, PSIZE / 2, PSIZE / 2, 0, 360 * 64);
+	  gdk_gc_set_foreground (kontext, &darkgrey);
+	  {
+	    /* prints in pango */
+	    PangoFontDescription *pfd;
+	    PangoLayout *wplabellayout;
+	    gint width;
+
+	    wplabellayout =
+	      gtk_widget_create_pango_layout (drawing_sats, "N");
+//KCFX  
+	    if (pdamode)
+	      pfd = pango_font_description_from_string ("Sans 7");
+	    else
+	      pfd = pango_font_description_from_string ("Sans bold 10");
+	    pango_layout_set_font_description (wplabellayout, pfd);
+
+	    gdk_draw_layout_with_colors (drawable_sats, kontext,
+					 0 + (PSIZE) / 2, -2, wplabellayout,
+					 &grey, NULL);
+	    pango_layout_get_pixel_size (wplabellayout, &width, NULL);
+/* 	    printf ("\nw: %d", width);  */
+	    if (wplabellayout != NULL)
+	      g_object_unref (G_OBJECT (wplabellayout));
+	    /* freeing PangoFontDescription, cause it has been copied by prev. call */
+	    pango_font_description_free (pfd);
+
+	  }
+
+/* 	  gdk_draw_text (drawable_sats, verysmalltextfont, kontext,
+ * 			 2 + (PSIZE) / 2, 9, "N", 1);
+ */
+	  gdk_gc_set_foreground (kontext, &lcd2);
+
+	}
+
+      for (i = 0; i < MAXSATS; i++)
+	if (satlistdisp[i][0] != 0)
+	  {
+	    if ((satlistdisp[i][1] > 30) && (printoutsats))
+	      g_print ("%d %d\n", satlistdisp[i][3], satlistdisp[i][2]);
+	    if (satposmode)
+	      {
+		gint x, y;
+		gdouble el, az;
+		el = (90.0 - satlistdisp[i][2]);
+		az = satlistdisp[i][3] * DEG2RAD;
+
+		x = (PSIZE / 2) + sin (az) * (el / 90.0) * (PSIZE / 2);
+		y = (PSIZE / 2) - cos (az) * (el / 90.0) * (PSIZE / 2);
+		l = (satlistdisp[i][1] / 6);
+		if (l > 7)
+		  l = 7;
+		switch (l & 7)
+		  {
+		  case 0:
+		  case 1:
+		    gdk_gc_set_foreground (kontext, &textback);
+		    break;
+		  case 2:
+		  case 3:
+		    gdk_gc_set_foreground (kontext, &red);
+		    break;
+		  case 4:
+		  case 5:
+		  case 6:
+		    gdk_gc_set_foreground (kontext, &yellow);
+		    break;
+		  case 7:
+		    gdk_gc_set_foreground (kontext, &green2);
+		    break;
+		  }
+		gdk_draw_arc (drawable_sats, kontext, 1, 2 + x,
+			      2 + y, 5, 5, 0, 360 * 64);
+
+	      }
+	    else
+	      {
+		if (j > 5)
+		  yabs = PSIZE + 2;
+		else
+		  yabs = 1 + PSIZE / 2;
+		h = satlistdisp[i][1] - 30;
+		if (h < 0)
+		  h = 1;
+		if (h > 19)
+		  h = 19;
+		gdk_draw_line (drawable_sats, kontext, 6 + 7 * k + SATX, yabs,
+			       6 + 7 * k + SATX,
+			       yabs - (PSIZE / 2) * h / (PSIZE / 2 - 5));
+		k++;
+		if (k > 5)
+		  k = 0;
+		j++;
+	      }
+	  }
+      newsatslevel = FALSE;
+      g_snprintf (txt, sizeof (txt), "%d/%d", numsats, satsavail);
+      gtk_entry_set_text (GTK_ENTRY (satslabel1), txt);
+      if ((precision > 0.0) && (satfix != 0))
+	{
+	  if (milesflag || nauticflag)
+	    g_snprintf (t1, sizeof (t1), "%.0fft", precision * 3.2808399);
+	  else
+	    g_snprintf (t1, sizeof (t1), "%.0fm", precision);
+	  g_snprintf (t, sizeof (t), "%s", t1);
+	}
+      else
+	g_snprintf (t, sizeof (t), "n/a");
+
+      gtk_entry_set_text (GTK_ENTRY (satslabel2), t);
+      if ((gsaprecision > 0.0) && (satfix != 0))
+	{
+	  g_snprintf (t1, sizeof (t1), "%.1f", gsaprecision);
+	  g_snprintf (t, sizeof (t), "%s", t1);
+	}
+      else
+	g_snprintf (t, sizeof (t), "n/a");
+      gtk_entry_set_text (GTK_ENTRY (satslabel3), t);
+
+      g_strlcpy (buf, "", sizeof (buf));
+      if (debug)
+	g_print ("\nSatfix: %d", satfix);
+      if (satfix != oldsatfix)
+	{
+	  if (satfix == 2)
+	    {
+	      switch (voicelang)
+		{
+		case english:
+		  g_snprintf (buf, sizeof (buf),
+			      "Differential GPS signal found");
+		  break;
+		case spanish:
+		  g_snprintf (buf, sizeof (buf), "Destinación definida: ");
+		  break;
+		case german:
+		  g_snprintf (buf, sizeof (buf),
+			      "Ein differenzielles GPS Signal wurde gefunden");
+		}
+	    }
+	  else if ((satfix == 1) && (oldsatfix == 2))
+	    {
+	      switch (voicelang)
+		{
+		case english:
+		  g_snprintf (buf, sizeof (buf),
+			      "No differential GPS signal detected");
+		  break;
+		case spanish:
+		  g_snprintf (buf, sizeof (buf),
+			      "No differential GPS signal detected ");
+		  break;
+		case german:
+		  g_snprintf (buf, sizeof (buf),
+			      "Kein differenzielles GPS Signal vorhanden");
+		}
+	    }
+
+	  if (satfix == 0)
+	    {
+	      switch (voicelang)
+		{
+		case english:
+		  g_snprintf (buf, sizeof (buf), "No sufficent GPS signal");
+		  break;
+		case spanish:
+		  g_snprintf (buf, sizeof (buf),
+			      "No sufficent GPS signal detected ");
+		  break;
+		case german:
+		  g_snprintf (buf, sizeof (buf),
+			      "Kein ausreichendes GPS Signal vorhanden");
+		}
+	    }
+	  if (satfix == 1)
+	    {
+	      switch (voicelang)
+		{
+		case english:
+		  g_snprintf (buf, sizeof (buf), "GPS signal good");
+		  break;
+		case spanish:
+		  g_snprintf (buf, sizeof (buf), "GPS signal bueno ");
+		  break;
+		case german:
+		  g_snprintf (buf, sizeof (buf),
+			      "Gutes GPS Signal vorhanden");
+		}
+	    }
+
+
+
+
+	  oldsatfix = satfix;
+	  if (!muteflag && sound_gps)
+	    speech_out_speek (buf);
+	}
+    }
+  else
+    {
+      if (mykontext == NULL)
+	mykontext = gdk_gc_new (drawable_sats);
+      if (satsimage == NULL)
+	{
+	  gchar mappath[400];
+
+	  g_snprintf (mappath, sizeof (mappath), "%s/gpsdrive/%s", DATADIR,
+		      "gpsdriveanim.gif");
+/* 	satsimage = */
+/* 	  gdk_pixbuf_new_from_xpm_data ((const char **) pinguin_xpm); */
+	  anim = gdk_pixbuf_animation_new_from_file (mappath, NULL);
+	  if (anim == NULL)
+	    fprintf (stderr, _("\nWarning: unable to load gpsdriveanim.gif!\n"
+			       "Please install the program as root with:\nmake install\n\n"));
+	  g_get_current_time (&timeresult);
+	  if (animiter != NULL)
+	    g_object_unref (animiter);
+	  animiter = gdk_pixbuf_animation_get_iter (anim, &timeresult);
+	  satsimage = gdk_pixbuf_animation_iter_get_pixbuf (animiter);
+	}
+      if (gdk_pixbuf_animation_iter_advance (animiter, NULL))
+	satsimage = gdk_pixbuf_animation_iter_get_pixbuf (animiter);
+      gdk_gc_set_function (mykontext, GDK_AND);
+      gdk_draw_pixbuf (drawable_sats, kontext, satsimage, 0, 0,
+		       SATX, 0, 50, 50, GDK_RGB_DITHER_NONE, 0, 0);
+      gdk_gc_set_function (mykontext, GDK_COPY);
+    }
+  return TRUE;
+}
+
+void
+drawdownloadrectangle (gint big)
+{
+/*   draw downloadrectangle */
+  if (downloadwindowactive)
+    {
+      gdouble x, y, la, lo;
+      gchar longi[100], lat[100], sc[20];
+      gint scale, xo, yo;
+
+      g_strlcpy (lat, newmaplat, sizeof (lat));
+      g_strdelimit (lat, ",", '.');
+      la = g_strtod (lat, NULL);
+
+      g_strlcpy (longi, newmaplongi, sizeof (longi));
+      g_strdelimit (longi, ",", '.');
+      lo = g_strtod (longi, NULL);
+
+      g_strlcpy (sc, newmapsc, sizeof (sc));
+      g_strdelimit (sc, ",", '.');
+      scale = g_strtod (sc, NULL);
+
+      gdk_gc_set_foreground (kontext, &yellow);
+      gdk_gc_set_function (kontext, GDK_AND);
+      gdk_gc_set_line_attributes (kontext, 2, 0, 0, 0);
+      if (big)
+	{
+	  calcxy (&x, &y, lo, la, zoom);
+	  xo = 1280.0 * zoom * scale / mapscale;
+	  yo = 1024.0 * zoom * scale / mapscale;
+	  gdk_draw_rectangle (drawable, kontext, 1, x - xo / 2, y - yo / 2,
+			      xo, yo);
+	}
+      else
+	{
+	  calcxymini (&x, &y, lo, la, 1);
+	  xo = 128.0 * scale / mapscale;
+	  yo = 102.0 * scale / mapscale;
+	  gdk_draw_rectangle (drawing_miniimage->window, kontext, 1,
+			      x - xo / 2, y - yo / 2, xo, yo);
+	}
+
+      gdk_gc_set_function (kontext, GDK_COPY);
+    }
+
+}
+
+
+
+
+/* draw the marker on the map */
+gint
+drawmarker (GtkWidget * widget, guint * datum)
+{
+  gdouble posxdest, posydest, posxmarker, posymarker;
+  gchar s2[100], s3[200], txt[200], s2a[20];
+  gdouble w;
+  GdkPoint poly[16];
+  gint k, k2, i, shownwp = 0;
+
+  gblink = !gblink;
+/*    g_print("\nsimmode: %d, nmea %d garmin %d",simmode,haveNMEA,haveGARMIN); */
+
+  if (importactive)
+    return TRUE;
+
+  if (drawgrid)
+    {
+
+    }
+  drawtracks ();
+
+
+  if (wpflag)
+    {
+/*  draw waypoints */
+      for (i = 0; i < maxwp; i++)
+	{
+	  calcxy (&posxdest, &posydest, (wayp + i)->longitude,
+		  (wayp + i)->lat, zoom);
+
+	  if ((posxdest >= 0) && (posxdest < SCREEN_X)
+	      && (shownwp < MAXSHOWNWP))
+	    {
+	      gdk_gc_set_line_attributes (kontext, 2, 0, 0, 0);
+
+	      if ((posydest >= 0) && (posydest < SCREEN_Y))
+		{
+		  shownwp++;
+		  g_strlcpy (txt, (wayp + i)->name, sizeof (txt));
+
+		  if ((wayp + i)->wlan > 0)
+		    drawwlan (posxdest, posydest, (wayp + i)->wlan);
+		  else
+		    if ((drawicon (posxdest, posydest, (wayp + i)->typ)) == 0)
+		    {
+		      if (shadow)
+			{
+/*  draw shadow of + sign */
+			  gdk_gc_set_foreground (kontext, &darkgrey);
+			  gdk_gc_set_function (kontext, GDK_AND);
+			  gdk_draw_line (drawable, kontext,
+					 posxdest + 1 + SHADOWOFFSET,
+					 posydest + 1 - 5 + SHADOWOFFSET,
+					 posxdest + 1 + SHADOWOFFSET,
+					 posydest + 1 + 5 + SHADOWOFFSET);
+			  gdk_draw_line (drawable, kontext,
+					 posxdest + 1 + 5 + SHADOWOFFSET,
+					 posydest + 1 + SHADOWOFFSET,
+					 posxdest + 1 - 5 + SHADOWOFFSET,
+					 posydest + 1 + SHADOWOFFSET);
+			  gdk_gc_set_function (kontext, GDK_COPY);
+			}
+
+/*  draw + sign at destination */
+		      gdk_gc_set_foreground (kontext, &red);
+		      gdk_draw_line (drawable, kontext, posxdest + 1,
+				     posydest + 1 - 5, posxdest + 1,
+				     posydest + 1 + 5);
+		      gdk_draw_line (drawable, kontext, posxdest + 1 + 5,
+				     posydest + 1, posxdest + 1 - 5,
+				     posydest + 1);
+		    }
+
+/*  draw shadow of text */
+		  {
+		    /* prints in pango */
+		    PangoFontDescription *pfd;
+		    PangoLayout *wplabellayout;
+		    gint width, height;
+		    gchar *tn;
+
+		    gdk_gc_set_foreground (kontext, &darkgrey);
+		    gdk_gc_set_function (kontext, GDK_AND);
+		    tn = g_strdelimit (txt, "_", ' ');
+
+		    wplabellayout =
+		      gtk_widget_create_pango_layout (drawing_area, tn);
+		    pfd = pango_font_description_from_string (wplabelfont);
+		    pango_layout_set_font_description (wplabellayout, pfd);
+		    pango_layout_get_pixel_size (wplabellayout, &width,
+						 &height);
+/* 		  printf("\nj: %d",height);    */
+		    k = width + 4;
+		    k2 = height;
+		    if (shadow)
+		      {
+
+			gdk_draw_layout_with_colors (drawable, kontext,
+						     posxdest + 15 +
+						     SHADOWOFFSET,
+						     posydest - k2 / 2 +
+						     SHADOWOFFSET,
+						     wplabellayout, &darkgrey,
+						     NULL);
+		      }
+		    if (wplabellayout != NULL)
+		      g_object_unref (G_OBJECT (wplabellayout));
+		    /* freeing PangoFontDescription, cause it has been copied by prev. call */
+		    pango_font_description_free (pfd);
+
+		  }
+		  gdk_gc_set_function (kontext, GDK_COPY);
+
+
+		  gdk_gc_set_function (kontext, GDK_AND);
+
+		  gdk_gc_set_foreground (kontext, &textbacknew);
+		  gdk_draw_rectangle (drawable, kontext, 1, posxdest + 13,
+				      posydest - k2 / 2, k + 1, k2);
+		  gdk_gc_set_function (kontext, GDK_COPY);
+		  gdk_gc_set_foreground (kontext, &black);
+		  gdk_gc_set_line_attributes (kontext, 1, 0, 0, 0);
+		  gdk_draw_rectangle (drawable, kontext, 0, posxdest + 12,
+				      posydest - k2 / 2 - 1, k + 2, k2);
+
+/* 		  gdk_gc_set_foreground (kontext, &yellow);  */
+		  {
+		    /* prints in pango */
+		    PangoFontDescription *pfd;
+		    PangoLayout *wplabellayout;
+
+		    wplabellayout =
+		      gtk_widget_create_pango_layout (drawing_area, txt);
+		    pfd = pango_font_description_from_string (wplabelfont);
+		    pango_layout_set_font_description (wplabellayout, pfd);
+
+		    gdk_draw_layout_with_colors (drawable, kontext,
+						 posxdest + 15,
+						 posydest - k2 / 2,
+						 wplabellayout, &white, NULL);
+		    if (wplabellayout != NULL)
+		      g_object_unref (G_OBJECT (wplabellayout));
+		    /* freeing PangoFontDescription, cause it has been copied by prev. call */
+		    pango_font_description_free (pfd);
+
+		  }
+
+/* 		    gdk_draw_text (drawable, smalltextfont, kontext,
+ * 				 posxdest + 13, posydest + 6, txt,
+ * 				 strlen (txt));
+ */
+		}
+	    }
+	}
+    }
+
+  if (havefriends)
+    drawfriends ();
+
+  if (havekismet)
+    readkismet ();
+
+/*  draw scale */
+  if (zoomscale)
+    {
+      gint pixels;
+      gint m, l;
+      gchar txt[100];
+      pixels = 141 / milesconv;
+      m = mapscale / (20 * zoom);
+      if (m < 1000)
+	{
+	  if (!nauticflag)
+	    g_snprintf (txt, sizeof (txt), "%d%s", m,
+			(milesflag) ? "yrds" : "m");
+	  else
+	    g_snprintf (txt, sizeof (txt), "%.3f%s", m / 1000.0,
+			(milesflag) ? "mi" : ((metricflag) ? "km" : "nmi"));
+
+	  if (!metricflag)
+	    pixels = pixels * milesconv * 0.9144;
+	}
+      else
+	g_snprintf (txt, sizeof (txt), "%.1f%s", m / 1000.0,
+		    (milesflag) ? "mi" : ((metricflag) ? "km" : "nmi"));
+/*       l =
+ * 	(SCREEN_X - 20) - pixels + (pixels -
+ * 				    gdk_text_width (smalltextfont, txt,
+ * 						    strlen (txt))) / 2;
+ */
+      l = (SCREEN_X - 40) - pixels + (pixels - strlen (txt) * 15);
+
+/*       if (debug) */
+/* 	g_print ("%d\n", m); */
+
+      gdk_gc_set_function (kontext, GDK_OR);
+      gdk_gc_set_foreground (kontext, &textback);
+      gdk_draw_rectangle (drawable, kontext, 1, (SCREEN_X - 20) - pixels - 5,
+			  SCREEN_Y - 35, pixels + 10, 30);
+      gdk_gc_set_function (kontext, GDK_COPY);
+
+      gdk_gc_set_foreground (kontext, &black);
+
+/* 	  gdk_draw_text (drawable, smalltextfont, kontext, l, SCREEN_Y - 20, txt,
+ * 		     strlen (txt));
+ */
+      {
+	/* prints in pango */
+	PangoFontDescription *pfd;
+	PangoLayout *wplabellayout;
+
+	wplabellayout = gtk_widget_create_pango_layout (drawing_area, txt);
+//KCFX  
+	if (pdamode)
+	  pfd = pango_font_description_from_string ("Sans 8");
+	else
+	  pfd = pango_font_description_from_string ("Sans 11");
+	pango_layout_set_font_description (wplabellayout, pfd);
+
+	gdk_draw_layout_with_colors (drawable, kontext,
+				     l, SCREEN_Y - 33,
+				     wplabellayout, &black, NULL);
+	if (wplabellayout != NULL)
+	  g_object_unref (G_OBJECT (wplabellayout));
+	/* freeing PangoFontDescription, cause it has been copied by prev. call */
+	pango_font_description_free (pfd);
+
+      }
+
+      gdk_gc_set_line_attributes (kontext, 2, 0, 0, 0);
+      gdk_draw_line (drawable, kontext, (SCREEN_X - 20) - pixels,
+		     SCREEN_Y - 20 + 5, (SCREEN_X - 20), SCREEN_Y - 20 + 5);
+      gdk_draw_line (drawable, kontext, (SCREEN_X - 20) - pixels,
+		     SCREEN_Y - 20, (SCREEN_X - 20) - pixels,
+		     SCREEN_Y - 20 + 10);
+      gdk_draw_line (drawable, kontext, (SCREEN_X - 20),
+		     SCREEN_Y - 20, (SCREEN_X - 20), SCREEN_Y - 20 + 10);
+
+#ifdef USETELEATLAS
+/* display the streetname */
+      ta_displaystreetname (actualstreetname);
+#endif
+
+
+/*  draw zoom factor */
+      g_snprintf (txt, sizeof (txt), "%dx", zoom);
+/*       l = (SCREEN_X - 15) - gdk_text_width (textfont, txt, strlen (txt)) / 2;  */
+
+      l = (SCREEN_X - 15) - 14 - strlen (txt) * 2;
+
+      gdk_gc_set_function (kontext, GDK_OR);
+
+      gdk_gc_set_foreground (kontext, &mygray);
+      gdk_draw_rectangle (drawable, kontext, 1, (SCREEN_X - 30), 0, 30, 30);
+      gdk_gc_set_function (kontext, GDK_COPY);
+
+      gdk_gc_set_foreground (kontext, &blue);
+
+/*       gdk_draw_text (drawable, textfont, kontext, l, 22, txt, strlen (txt));  */
+      {
+	/* prints in pango */
+	PangoFontDescription *pfd;
+	PangoLayout *wplabellayout;
+
+	wplabellayout = gtk_widget_create_pango_layout (drawing_area, txt);
+//KCFX  
+	if (pdamode)
+	  pfd = pango_font_description_from_string ("Sans 9");
+	else
+	  pfd = pango_font_description_from_string ("Sans 14");
+	pango_layout_set_font_description (wplabellayout, pfd);
+
+	gdk_draw_layout_with_colors (drawable, kontext,
+				     l, 2, wplabellayout, &blue, NULL);
+	if (wplabellayout != NULL)
+	  g_object_unref (G_OBJECT (wplabellayout));
+	/* freeing PangoFontDescription, cause it has been copied by prev. call */
+	pango_font_description_free (pfd);
+
+      }
+
+      if (havekismet)
+	gdk_draw_pixbuf (drawable, kontext, kismetpixbuf, 0, 0,
+			 10, SCREEN_Y - 42,
+			 36, 20, GDK_RGB_DITHER_NONE, 0, 0);
+
+      if (savetrack)
+	{
+/* 	  k =
+ * 	    gdk_text_width (smalltextfont, savetrackfn, strlen (savetrackfn));
+ */
+	  k = 100;
+	  gdk_gc_set_foreground (kontext, &white);
+	  gdk_draw_rectangle (drawable, kontext, 1, 10,
+			      SCREEN_Y - 21, k + 3, 14);
+	  gdk_gc_set_foreground (kontext, &red);
+	  {
+	    /* prints in pango */
+	    PangoFontDescription *pfd;
+	    PangoLayout *wplabellayout;
+
+	    wplabellayout =
+	      gtk_widget_create_pango_layout (drawing_area, savetrackfn);
+//KCFX  
+	    if (pdamode)
+	      pfd = pango_font_description_from_string ("Sans 7");
+	    else
+	      pfd = pango_font_description_from_string ("Sans 10");
+	    pango_layout_set_font_description (wplabellayout, pfd);
+
+	    gdk_draw_layout_with_colors (drawable, kontext,
+					 14, SCREEN_Y - 22,
+					 wplabellayout, &red, NULL);
+	    if (wplabellayout != NULL)
+	      g_object_unref (G_OBJECT (wplabellayout));
+	    /* freeing PangoFontDescription, cause it has been copied by prev. call */
+	    pango_font_description_free (pfd);
+
+	  }
+
+
+/* 	  gdk_draw_text (drawable, smalltextfont, kontext,
+ * 			 11, SCREEN_Y - 10, savetrackfn,
+ * 			 strlen (savetrackfn));
+ */
+
+/*      gdk_draw_text (drawable, textfont, kontext, 10, */
+/*  		   SCREEN_Y - 10, savetrackfn, strlen (savetrackfn)); */
+	}
+    }
+
+
+  if (posmode)
+    {
+      blink = TRUE;
+    }
+#define PFSIZE 55
+#define PFSIZE2 45
+
+
+  if (havepos || blink)
+    {
+      if (posmode)
+	{
+	  gdk_gc_set_foreground (kontext, &blue);
+	  gdk_gc_set_line_attributes (kontext, 4, 0, 0, 0);
+	  gdk_draw_rectangle (drawable, kontext, 0, posx - 10,
+			      posy - 10, 20, 20);
+	}
+      else
+	{
+	  if (shadow)
+	    {
+/*  draw shadow of  position marker */
+	      gdk_gc_set_foreground (kontext, &darkgrey);
+	      gdk_gc_set_line_attributes (kontext, 3, 0, 0, 0);
+	      gdk_gc_set_function (kontext, GDK_AND);
+	      gdk_draw_arc (drawable, kontext, 0, posx - 7 + SHADOWOFFSET,
+			    posy - 7 + SHADOWOFFSET, 14, 14, 0, 360 * 64);
+/*  draw pointer to destination */
+	      gdk_gc_set_line_attributes (kontext, 4, 0, 0, 0);
+/* 	      gdk_draw_line (drawable, kontext, */
+/* 			     posx + 4 * sin (angle_to_destination) + */
+/* 			     SHADOWOFFSET, */
+/* 			     posy - 4 * cos (angle_to_destination) + */
+/* 			     SHADOWOFFSET, */
+/* 			     posx + 20 * sin (angle_to_destination) + */
+/* 			     SHADOWOFFSET, */
+/* 			     posy - 20 * cos (angle_to_destination) + */
+/* 			     SHADOWOFFSET); */
+	      w = angle_to_destination + M_PI;
+	      poly[0].x =
+		posx + SHADOWOFFSET + (PFSIZE) / 2.3 * (cos (w + M_PI_2));
+	      poly[0].y =
+		posy + SHADOWOFFSET + (PFSIZE) / 2.3 * (sin (w + M_PI_2));
+	      poly[1].x =
+		posx + SHADOWOFFSET + (PFSIZE) / 9 * (cos (w + M_PI));
+	      poly[1].y =
+		posy + SHADOWOFFSET + (PFSIZE) / 9 * (sin (w + M_PI));
+	      poly[2].x =
+		posx + SHADOWOFFSET + PFSIZE / 10 * (cos (w + M_PI_2));
+	      poly[2].y =
+		posy + SHADOWOFFSET + PFSIZE / 10 * (sin (w + M_PI_2));
+	      poly[3].x =
+		posx + SHADOWOFFSET - (PFSIZE) / 9 * (cos (w + M_PI));
+	      poly[3].y =
+		posy + SHADOWOFFSET - (PFSIZE) / 9 * (sin (w + M_PI));
+	      poly[4].x = poly[0].x;
+	      poly[4].y = poly[0].y;
+	      gdk_draw_polygon (drawable, kontext, 1, (GdkPoint *) poly, 5);
+
+/*  draw pointer to direction */
+/* 	      gdk_draw_line (drawable, kontext, */
+/* 			     posx + 4 * sin (direction) + SHADOWOFFSET, */
+/* 			     posy - 4 * cos (direction) + SHADOWOFFSET, */
+/* 			     posx + 20 * sin (direction) + SHADOWOFFSET, */
+/* 			     posy - 20 * cos (direction) + SHADOWOFFSET); */
+	      gdk_gc_set_line_attributes (kontext, 2, 0, 0, 0);
+	      gdk_draw_arc (drawable, kontext, 0, posx + 2 - 7 + SHADOWOFFSET,
+			    posy + 2 - 7 + SHADOWOFFSET, 10, 10, 0, 360 * 64);
+
+	      w = direction + M_PI;
+	      poly[0].x =
+		posx + SHADOWOFFSET + (PFSIZE2) / 2.3 * (cos (w + M_PI_2));
+	      poly[0].y =
+		posy + SHADOWOFFSET + (PFSIZE2) / 2.3 * (sin (w + M_PI_2));
+	      poly[1].x =
+		posx + SHADOWOFFSET + (PFSIZE2) / 9 * (cos (w + M_PI));
+	      poly[1].y =
+		posy + SHADOWOFFSET + (PFSIZE2) / 9 * (sin (w + M_PI));
+	      poly[2].x =
+		posx + SHADOWOFFSET + PFSIZE2 / 10 * (cos (w + M_PI_2));
+	      poly[2].y =
+		posy + SHADOWOFFSET + PFSIZE2 / 10 * (sin (w + M_PI_2));
+	      poly[3].x =
+		posx + SHADOWOFFSET - (PFSIZE2) / 9 * (cos (w + M_PI));
+	      poly[3].y =
+		posy + SHADOWOFFSET - (PFSIZE2) / 9 * (sin (w + M_PI));
+	      poly[4].x = poly[0].x;
+	      poly[4].y = poly[0].y;
+	      gdk_draw_polygon (drawable, kontext, 0, (GdkPoint *) poly, 5);
+	      gdk_gc_set_function (kontext, GDK_COPY);
+	    }
+/*  draw real position marker */
+
+	  gdk_gc_set_foreground (kontext, &black);
+	  gdk_gc_set_line_attributes (kontext, 3, 0, 0, 0);
+	  gdk_draw_arc (drawable, kontext, 0, posx - 7, posy - 7, 14,
+			14, 0, 360 * 64);
+/*  draw pointer to destination */
+
+	  w = angle_to_destination + M_PI;
+
+	  poly[0].x = posx + (PFSIZE) / 2.3 * (cos (w + M_PI_2));
+	  poly[0].y = posy + (PFSIZE) / 2.3 * (sin (w + M_PI_2));
+	  poly[1].x = posx + (PFSIZE) / 9 * (cos (w + M_PI));
+	  poly[1].y = posy + (PFSIZE) / 9 * (sin (w + M_PI));
+	  poly[2].x = posx + PFSIZE / 10 * (cos (w + M_PI_2));
+	  poly[2].y = posy + PFSIZE / 10 * (sin (w + M_PI_2));
+	  poly[3].x = posx - (PFSIZE) / 9 * (cos (w + M_PI));
+	  poly[3].y = posy - (PFSIZE) / 9 * (sin (w + M_PI));
+	  poly[4].x = poly[0].x;
+	  poly[4].y = poly[0].y;
+	  gdk_draw_polygon (drawable, kontext, 1, (GdkPoint *) poly, 5);
+
+/*  draw pointer to direction */
+	  gdk_gc_set_foreground (kontext, &red);
+	  gdk_draw_arc (drawable, kontext, 0, posx + 2 - 7,
+			posy + 2 - 7, 10, 10, 0, 360 * 64);
+	  w = direction + M_PI;
+	  poly[0].x = posx + (PFSIZE2) / 2.3 * (cos (w + M_PI_2));
+	  poly[0].y = posy + (PFSIZE2) / 2.3 * (sin (w + M_PI_2));
+	  poly[1].x = posx + (PFSIZE2) / 9 * (cos (w + M_PI));
+	  poly[1].y = posy + (PFSIZE2) / 9 * (sin (w + M_PI));
+	  poly[2].x = posx + PFSIZE2 / 10 * (cos (w + M_PI_2));
+	  poly[2].y = posy + PFSIZE2 / 10 * (sin (w + M_PI_2));
+	  poly[3].x = posx - (PFSIZE2) / 9 * (cos (w + M_PI));
+	  poly[3].y = posy - (PFSIZE2) / 9 * (sin (w + M_PI));
+	  poly[4].x = poly[0].x;
+	  poly[4].y = poly[0].y;
+	  gdk_draw_polygon (drawable, kontext, 0, (GdkPoint *) poly, 5);
+	}
+      if (markwaypoint)
+	{
+	  calcxy (&posxmarker, &posymarker, wplon, wplat, zoom);
+
+	  gdk_gc_set_foreground (kontext, &green);
+	  gdk_gc_set_line_attributes (kontext, 5, 0, 0, 0);
+	  gdk_draw_arc (drawable, kontext, 0, posxmarker - 10,
+			posymarker - 10, 20, 20, 0, 360 * 64);
+	}
+/*  If we are in position mode we set direction to zero to see where is the  */
+/*  target  */
+      if (posmode)
+	direction = 0;
+
+      bearing = angle_to_destination - direction;
+      if (bearing < 0)
+	bearing += 2 * M_PI;
+      if (bearing > (2 * M_PI))
+	bearing -= 2 * M_PI;
+      display_status2 ();
+
+    }
+
+
+
+/*  now draw marker for destination point */
+
+  calcxy (&posxdest, &posydest, target_long, target_lat, zoom);
+
+  gdk_gc_set_line_attributes (kontext, 4, 0, 0, 0);
+  if (shadow)
+    {
+/*  draw + sign at destination */
+      gdk_gc_set_foreground (kontext, &darkgrey);
+      gdk_gc_set_function (kontext, GDK_AND);
+      gdk_draw_line (drawable, kontext, posxdest + 1 + SHADOWOFFSET,
+		     posydest + 1 - 10 + SHADOWOFFSET,
+		     posxdest + 1 + SHADOWOFFSET,
+		     posydest + 1 - 2 + SHADOWOFFSET);
+      gdk_draw_line (drawable, kontext, posxdest + 1 + SHADOWOFFSET,
+		     posydest + 1 + 2 + SHADOWOFFSET,
+		     posxdest + 1 + SHADOWOFFSET,
+		     posydest + 1 + 10 + SHADOWOFFSET);
+      gdk_draw_line (drawable, kontext, posxdest + 1 + 10 + SHADOWOFFSET,
+		     posydest + 1 + SHADOWOFFSET,
+		     posxdest + 1 + 2 + SHADOWOFFSET,
+		     posydest + 1 + SHADOWOFFSET);
+      gdk_draw_line (drawable, kontext, posxdest + 1 - 2 + SHADOWOFFSET,
+		     posydest + 1 + SHADOWOFFSET,
+		     posxdest + 1 - 10 + SHADOWOFFSET,
+		     posydest + 1 + SHADOWOFFSET);
+      gdk_gc_set_function (kontext, GDK_COPY);
+    }
+
+  if (crosstoogle)
+    gdk_gc_set_foreground (kontext, &blue);
+  else
+    gdk_gc_set_foreground (kontext, &red);
+  crosstoogle = !crosstoogle;
+/*  draw + sign at destination */
+  gdk_draw_line (drawable, kontext, posxdest + 1,
+		 posydest + 1 - 10, posxdest + 1, posydest + 1 - 2);
+  gdk_draw_line (drawable, kontext, posxdest + 1,
+		 posydest + 1 + 2, posxdest + 1, posydest + 1 + 10);
+  gdk_draw_line (drawable, kontext, posxdest + 1 + 10,
+		 posydest + 1, posxdest + 1 + 2, posydest + 1);
+  gdk_draw_line (drawable, kontext, posxdest + 1 - 2,
+		 posydest + 1, posxdest + 1 - 10, posydest + 1);
+
+
+/* display messages on map */
+  display_dsc ();
+/*  if distance is less then 1 km show meters */
+  if (milesflag)
+    {
+      if (dist <= 1.0)
+	{
+	  g_snprintf (s2, sizeof (s2), "%.0f", dist * 1760.0);
+	  g_strlcpy (s2a, "yrds", sizeof (s2a));
+	}
+      else
+	{
+	  if (dist <= 10.0)
+	    {
+	      g_snprintf (s2, sizeof (s2), "%.2f", dist);
+	      g_strlcpy (s2a, "mi", sizeof (s2a));
+	    }
+	  else
+	    {
+	      g_snprintf (s2, sizeof (s2), "%.1f", dist);
+	      g_strlcpy (s2a, "mi", sizeof (s2a));
+	    }
+	}
+    }
+  if (metricflag)
+    {
+      if (dist <= 1.0)
+	{
+	  g_snprintf (s2, sizeof (s2), "%.0f", dist * 1000.0);
+	  g_strlcpy (s2a, "m", sizeof (s2a));
+	}
+      else
+	{
+	  if (dist <= 10.0)
+	    {
+	      g_snprintf (s2, sizeof (s2), "%.2f", dist);
+	      g_strlcpy (s2a, "km", sizeof (s2a));
+	    }
+	  else
+	    {
+	      g_snprintf (s2, sizeof (s2), "%.1f", dist);
+	      g_strlcpy (s2a, "km", sizeof (s2a));
+	    }
+	}
+    }
+  if (nauticflag)
+    {
+      if (dist <= 1.0)
+	{
+	  g_snprintf (s2, sizeof (s2), "%.3f", dist);
+	  g_strlcpy (s2a, "nmi", sizeof (s2a));
+	}
+      else
+	{
+	  if (dist <= 10.0)
+	    {
+	      g_snprintf (s2, sizeof (s2), "%.2f", dist);
+	      g_strlcpy (s2a, "nmi", sizeof (s2a));
+	    }
+	  else
+	    {
+	      g_snprintf (s2, sizeof (s2), "%.1f", dist);
+	      g_strlcpy (s2a, "nmi", sizeof (s2a));
+	    }
+	}
+    }
+/*    display distance, speed and zoom */
+/*   g_snprintf (s3, */
+/* 	   "<span color=\"%s\" font_desc=\"%s\">%s</span><span color=\"%s\" font_desc=\"%s\">%s</span>", */
+/* 	   bluecolor, bigfont, s2, bluecolor, "sans bold 18", s2a); */
+  g_snprintf (s3, sizeof (s3),
+	      "<span color=\"%s\" font_desc=\"%s\">%s<span size=\"16000\">%s</span></span>",
+	      bluecolor, bigfont, s2, s2a);
+  gtk_label_set_markup (GTK_LABEL (distlabel), s3);
+/*    gtk_label_set_text (GTK_LABEL (distlabel), s2);  */
+  if (milesflag)
+    g_snprintf (s2, sizeof (s2), "%3.1f", groundspeed);
+  if (metricflag)
+    g_snprintf (s2, sizeof (s2), "%3.1f", groundspeed);
+  if (nauticflag)
+    g_snprintf (s2, sizeof (s2), "%3.1f", groundspeed);
+  g_snprintf (s3, sizeof (s3),
+	      "<span color=\"%s\" font_desc=\"%s\">%s</span>", bluecolor,
+	      bigfont, s2);
+  gtk_label_set_markup (GTK_LABEL (speedlabel), s3);
+
+/*   gtk_label_set_text (GTK_LABEL (speedlabel), s2); */
+
+  if (havealtitude)
+    {
+      if (milesflag || nauticflag)
+	{
+	  g_snprintf (s2, sizeof (s2), "%.0f",
+		      altitude * 3.2808399 + normalnull);
+	  g_strlcpy (s2a, "ft", sizeof (s2a));
+	}
+      else
+	{
+	  g_snprintf (s2, sizeof (s2), "%.0f", altitude + normalnull);
+	  g_strlcpy (s2a, "m", sizeof (s2a));
+	}
+      gtk_label_set_text (GTK_LABEL (altilabel), s2);
+
+      if (pdamode)
+	{
+	  if (normalnull == 0.0)
+
+	    g_snprintf (s3, sizeof (s3),
+			"<span color=\"%s\" font_family=\"Arial\" size=\"10000\">%s</span><span color=\"%s\" font_family=\"Arial\" size=\"5000\">%s</span>",
+			bluecolor, s2, bluecolor, s2a);
+	  else
+	    g_snprintf (s3, sizeof (s3),
+			"<span color=\"%s\" font_family=\"Arial\" size=\"10000\">%s</span><span color=\"%s\" font_family=\"Arial\" size=\"5000\">%s</span>"
+			"<span color=\"red\" font_family=\"Arial\" size=\"5000\">\nNN %+.1f</span>",
+			bluecolor, s2, bluecolor, s2a, normalnull);
+	}
+      else
+	{
+	  if (normalnull == 0.0)
+
+	    g_snprintf (s3, sizeof (s3),
+			"<span color=\"%s\" font_family=\"Arial\" weight=\"bold\" size=\"15000\">%s</span><span color=\"%s\" font_family=\"Arial\" weight=\"bold\" size=\"10000\">%s</span>",
+			bluecolor, s2, bluecolor, s2a);
+	  else
+	    g_snprintf (s3, sizeof (s3),
+			"<span color=\"%s\" font_family=\"Arial\" weight=\"bold\" size=\"15000\">%s</span><span color=\"%s\" font_family=\"Arial\" weight=\"bold\" size=\"10000\">%s</span>"
+			"<span color=\"red\" font_family=\"Arial\" weight=\"bold\" size=\"8000\">\nNN %+.1f</span>",
+			bluecolor, s2, bluecolor, s2a, normalnull);
+	}
+      gtk_label_set_markup (GTK_LABEL (altilabel), s3);
+    }
+  if (simmode)
+    blink = TRUE;
+  else
+    {
+      if (!havepos)
+	blink = !blink;
+    }
+
+  if (newsatslevel)
+    expose_sats_cb (NULL, 0);
+
+  if (downloadwindowactive)
+    {
+      drawdownloadrectangle (1);
+      expose_mini_cb (NULL, 0);
+    }
+
+/* force to say new direction */
+  if (!strcmp (oldangle, "XXX"))
+    speech_out_cb (NULL, 0);
+
+  return (TRUE);
+}
+
+
+
+
+/* Copy Image from loaded map */
+gint
+expose_mini_cb (GtkWidget * widget, guint * datum)
+{
+/*  draw the minimap */
+  if (!miniimage)
+    return TRUE;
+
+/*   g_print ("\nin expose_mini_cb"); */
+  if (SMALLMENU == 0)
+    {
+      gdk_draw_pixbuf (drawing_miniimage->window,
+		       kontext, miniimage, 0, 0, 0, 0, 128, 103,
+		       GDK_RGB_DITHER_NONE, 0, 0);
+
+/*       if ((nightmode == 1) || ((nightmode == 2) && (isnight&& !disableisnight)) */
+/* 	{ */
+/* 	  gdk_gc_set_function (kontext, GDK_AND); */
+/* 	  gdk_gc_set_foreground (kontext, &nightcolor); */
+/* 	  gdk_draw_rectangle (drawing_miniimage->window, kontext, 1, 0, 0, 128, */
+/* 			      103); */
+/* 	  gdk_gc_set_function (kontext, GDK_COPY); */
+/* 	} */
+      gdk_gc_set_foreground (kontext, &red);
+      gdk_gc_set_line_attributes (kontext, 1, 0, 0, 0);
+
+      gdk_draw_rectangle (drawing_miniimage->window, kontext, 0,
+			  (64 - (SCREEN_X_2 / 10) / zoom) +
+			  xoff / (zoom * 10),
+			  (50 - (SCREEN_Y_2 / 10) / zoom) +
+			  yoff / (zoom * 10), SCREEN_X / (zoom * 10),
+			  SCREEN_Y / (zoom * 10));
+      drawdownloadrectangle (0);
+    }
+  return TRUE;
+}
+
+gint
+expose_compass (GtkWidget * widget, guint * datum)
+{
+  static GdkGC *compasskontext = NULL;
+  gint l, l2, j;
+  gint line_count;
+  gchar txt[10], txt2[10], *txtp;
+  gdouble w, kurz;
+  GdkPoint poly[16];
+  static GdkPixbuf *compassimage = NULL;
+
+/*   This string means North,East,South,West -- please translate the letters */
+  g_strlcpy (txt2, _("NESW"), sizeof (txt2));
+
+  txtp = txt2;
+
+  if (compasskontext == NULL)
+    compasskontext = gdk_gc_new (drawable_bearing);
+  if (compassimage == NULL)
+    compassimage = gdk_pixbuf_new_from_xpm_data ((const char **) compass_xpm);
+
+
+  gdk_draw_pixbuf (drawable_bearing, compasskontext, compassimage, 0, 0,
+		   0, 0, PSIZE, PSIZE, GDK_RGB_DITHER_NONE, 0, 0);
+
+
+  if (foundradar)
+    {
+      gdk_gc_set_foreground (kontext, &red);
+      gdk_gc_set_line_attributes (kontext, 1, 0, 0, 0);
+      w = radarbearing + M_PI;
+      if (w < 0)
+	w += 2 * M_PI;
+      if (w > (2 * M_PI))
+	w -= 2 * M_PI;
+/*  	  g_print ("\nRadarbearing: %g w: %g", radarbearing, w); */
+#define KURZW 1.2
+      kurz = cos (KURZW);
+      poly[0].x = PSIZE / 2 + PSIZE / 2.5 * cos (w);	/* x */
+      poly[0].y = PSIZE / 2 + PSIZE / 2.5 * sin (w);	/* y */
+      poly[1].x = PSIZE / 2 + PSIZE / 2 * cos (w + M_PI_2);
+      poly[1].y = PSIZE / 2 + PSIZE / 2 * sin (w + M_PI_2);
+      poly[2].x = PSIZE / 2 + PSIZE / 2.5 * cos (w + M_PI);
+      poly[2].y = PSIZE / 2 + PSIZE / 2.5 * sin (w + M_PI);
+      poly[3].x = PSIZE / 2 + PSIZE / 2 * kurz * cos (w + M_PI);
+      poly[3].y = PSIZE / 2 + PSIZE / 2 * kurz * sin (w + M_PI);
+      poly[4].x = PSIZE / 2 + PSIZE / 2 * cos (w + M_PI + KURZW);
+      poly[4].y = PSIZE / 2 + PSIZE / 2 * sin (w + M_PI + KURZW);
+      poly[5].x = PSIZE / 2 + PSIZE / 2 * cos (w + 2 * M_PI - KURZW);
+      poly[5].y = PSIZE / 2 + PSIZE / 2 * sin (w + 2 * M_PI - KURZW);
+      poly[6].x = PSIZE / 2 + PSIZE / 2 * kurz * cos (w);
+      poly[6].y = PSIZE / 2 + PSIZE / 2 * kurz * sin (w);
+      poly[7].x = poly[0].x;
+      poly[7].y = poly[0].y;
+      gdk_draw_polygon (drawable_bearing, kontext, 1, (GdkPoint *) poly, 8);
+    }
+
+  gdk_gc_set_foreground (kontext, &black);
+
+/* compass */
+//      /* added by zwerg (Daniel Wernle)
+  w = -direction + M_PI;
+
+  j = 0;
+
+  for (line_count = 0; line_count < 12; line_count++)
+    {
+      gdk_gc_set_foreground (compasskontext, &red);
+
+      if (!(line_count % 3))
+	{
+	  gdk_gc_set_line_attributes (compasskontext, 2, 0, 0, 0);
+
+
+	  l = 10;
+	  l2 = -18;
+	  {
+	    /* prints in pango */
+	    PangoFontDescription *pfd;
+	    PangoLayout *wplabellayout;
+	    g_utf8_strncpy (txt, txtp, 1);
+	    txtp = g_utf8_next_char (txtp);
+	    wplabellayout =
+	      gtk_widget_create_pango_layout (drawing_bearing, txt);
+//KCFX  
+	    if (pdamode)
+	      pfd = pango_font_description_from_string ("Sans 7");
+	    else
+	      pfd = pango_font_description_from_string ("Sans 10");
+	    pango_layout_set_font_description (wplabellayout, pfd);
+
+	    gdk_draw_layout_with_colors (drawable_bearing, compasskontext,
+					 (PSIZE / 2.0 +
+					  (PSIZE) / 3.5 *
+					  (cos (w + M_PI_2))) - l / 2,
+					 (PSIZE / 2.0 +
+					  (PSIZE) / 3.5 *
+					  (sin (w + M_PI_2))) + l2 / 2,
+					 wplabellayout, &black, NULL);
+	    if (wplabellayout != NULL)
+	      g_object_unref (G_OBJECT (wplabellayout));
+	    /* freeing PangoFontDescription, cause it has been copied by prev. call */
+	    pango_font_description_free (pfd);
+
+	  }
+	  gdk_gc_set_foreground (compasskontext, &red);
+	}
+      else
+	{
+	  gdk_gc_set_foreground (compasskontext, &black);
+	  gdk_gc_set_line_attributes (compasskontext, 1, 0, 0, 0);
+	}
+
+/*       gdk_draw_line (drawable_bearing, compasskontext, */
+/* 		     PSIZE / 2.0 + (PSIZE) / 2.75 * (cos (w + M_PI_2)), */
+/* 		     PSIZE / 2.0 + (PSIZE) / 2.75 * (sin (w + M_PI_2)), */
+/* 		     PSIZE / 2.0 + (PSIZE) / 2.0 * (cos (w + M_PI_2)), */
+/* 		     PSIZE / 2.0 + (PSIZE) / 2.0 * (sin (w + M_PI_2))); */
+
+      w = w + M_PI / 6.0;
+
+    }
+
+  w = bearing + M_PI;
+
+#define TRIANGLEFACTOR 0.75
+  gdk_gc_set_foreground (compasskontext, &black);
+
+  gdk_gc_set_line_attributes (compasskontext, 1, 0, 0, 0);
+/*   gdk_draw_arc (drawable_bearing, compasskontext, 0, 0, 0, PSIZE, PSIZE, */
+/* 		0, 360 * 64); */
+
+  poly[0].x = PSIZE / 2 + (PSIZE) / 2.3 * (cos (w + M_PI_2));
+  poly[0].y = PSIZE / 2 + (PSIZE) / 2.3 * (sin (w + M_PI_2));
+  poly[1].x = PSIZE / 2 + (PSIZE) / 9 * (cos (w + M_PI));
+  poly[1].y = PSIZE / 2 + (PSIZE) / 9 * (sin (w + M_PI));
+  poly[2].x = PSIZE / 2 + PSIZE / 10 * (cos (w + M_PI_2));
+  poly[2].y = PSIZE / 2 + PSIZE / 10 * (sin (w + M_PI_2));
+  poly[3].x = PSIZE / 2 - (PSIZE) / 9 * (cos (w + M_PI));
+  poly[3].y = PSIZE / 2 - (PSIZE) / 9 * (sin (w + M_PI));
+  poly[4].x = poly[0].x;
+  poly[4].y = poly[0].y;
+
+  gdk_gc_set_foreground (compasskontext, &black);
+  gdk_gc_set_line_attributes (compasskontext, 2, 0, 0, 0);
+
+  gdk_draw_polygon (drawable_bearing, compasskontext, 1,
+		    (GdkPoint *) poly, 5);
+
+  gdk_gc_set_foreground (kontext, &black);
+
+
+//  von Zwerg eingefügt ende
+
+
+  return TRUE;
+
+}
+
+/* Copy Image from loaded map */
+gint
+expose_cb (GtkWidget * widget, guint * datum)
+{
+  gint x, y, i, oldxoff, oldyoff, xoffmax, yoffmax, ok, okcount;
+  gdouble tx, ty, lastangle;
+  gchar name[40], s1[40], *tn;
+/*    g_print("\nexpose_cb %d",exposecounter++);   */
+
+/*   fprintf (stderr, "lat: %f long: %f\n", current_lat, current_long); */
+  if (exposed && pdamode)
+    return TRUE;
+
+
+
+  errortextmode = FALSE;
+  if (!importactive)
+    {
+/*  We don't need to draw anything if there is no map yet */
+      if (!maploaded)
+	{
+	  display_status (_("No map available for this position!"));
+/*        return TRUE; */
+	}
+
+      if (posmode)
+	{
+	  current_long = posmode_x;
+	  current_lat = posmode_y;
+	}
+
+
+/*  get pos for current position */
+      calcxy (&posx, &posy, current_long, current_lat, zoom);
+/*  do this because calcxy already substracted xoff and yoff */
+      posx = posx + xoff;
+      posy = posy + yoff;
+/*  Calculate Angle to destination */
+      tx =
+	(2 * R * M_PI / 360) * cos (M_PI * current_lat / 180.0) *
+	(target_long - current_long);
+      ty = (2 * R * M_PI / 360) * (target_lat - current_lat);
+      lastangle = angle_to_destination;
+      angle_to_destination = atan (tx / ty);
+/*        g_print ("\ntx: %f, ty:%f angle_to_dest: %f", tx, ty, */
+/*  	       angle_to_destination); */
+      if (!finite (angle_to_destination))
+	angle_to_destination = lastangle;
+      else
+	{
+/*  correct the value to be < 2*PI */
+	  if (ty < 0)
+	    angle_to_destination = M_PI + angle_to_destination;
+	  if (angle_to_destination >= (2 * M_PI))
+	    angle_to_destination -= 2 * M_PI;
+	  if (angle_to_destination < 0)
+	    angle_to_destination += 2 * M_PI;
+	}
+      if (mydebug)
+	g_print ("\nAngle_To_Destination: %.0fÂŽ°",
+		 angle_to_destination * 180 / M_PI);
+
+      if (havefriends && targetname[0] == '*')
+	for (i = 0; i < maxfriends; i++)
+	  {
+	    g_strlcpy (name, "*", sizeof (name));
+
+	    g_strlcat (name, (friends + i)->name, sizeof (name));
+	    tn = g_strdelimit (name, "_", ' ');
+	    if ((strcmp (targetname, tn)) == 0)
+	      {
+		target_lat = g_strtod ((friends + i)->lat, NULL);
+		target_long = g_strtod ((friends + i)->longi, NULL);
+	      }
+	  }
+
+/*  Calculate distance to destination */
+      dist = calcdist (target_long, target_lat);
+/*  correct the shift of the map */
+      oldxoff = xoff;
+      oldyoff = yoff;
+/*  now we test if the marker fits into the map and set the shift of the 
+little SCREEN_XxSCREEN_Y region in relation to the real 1280x1024 map */
+      okcount = 0;
+      do
+	{
+	  ok = TRUE;
+	  okcount++;
+	  x = posx - xoff;
+	  y = posy - yoff;
+
+	  if (x < borderlimit)
+	    xoff -= 2 * borderlimit;
+	  if (x > (SCREEN_X - borderlimit))
+	    xoff += 2 * borderlimit;
+	  if (y < borderlimit)
+	    yoff -= 2 * borderlimit;
+	  if (y > (SCREEN_Y - borderlimit))
+	    yoff += 2 * borderlimit;
+
+	  if (x < borderlimit)
+	    ok = FALSE;
+	  if (x > (SCREEN_X - borderlimit))
+	    ok = FALSE;
+	  if (y < borderlimit)
+	    ok = FALSE;
+	  if (y > (SCREEN_Y - borderlimit))
+	    ok = FALSE;
+	  if (okcount > 20000)
+	    {
+	      g_print ("\nloop detected, please report!\n");
+	      ok = TRUE;
+	    }
+	}
+      while (!ok);
+
+      xoffmax = (640 * zoom) - SCREEN_X_2;
+      yoffmax = (512 * zoom) - SCREEN_Y_2;
+      if (xoff > xoffmax)
+	xoff = xoffmax;
+      if (xoff < -xoffmax)
+	xoff = -xoffmax;
+      if (yoff > yoffmax)
+	yoff = yoffmax;
+      if (yoff < -yoffmax)
+	yoff = -yoffmax;
+
+/*       if ((xoff - 640) / zoom < -1280) */
+/* 	xoff = -1280 * zoom + 640; */
+/*       if ((xoff + 640) / zoom > 1280) */
+/* 	xoff = 1280 * zoom - 640; */
+
+/*       if ((yoff - 512) / zoom < -1024) */
+/* 	yoff = -1024 * zoom + 512; */
+/*       if ((yoff + 512) / zoom > 1024) */
+/* 	yoff = 1024 * zoom - 512; */
+
+/*  we only need to create a new region if the shift is not changed */
+      if ((oldxoff != xoff) || (oldyoff != yoff))
+	iszoomed = FALSE;
+
+      if (mydebug)
+	g_print ("\nx: %d  xoff: %d oldxoff: %d Zoom: %d xoffmax: %d\n", x,
+		 xoff, oldxoff, zoom, xoffmax);
+      if (mydebug)
+	g_print ("\ny: %d  yoff: %d oldyoff: %d Zoom: %d yoffmax: %d\n", y,
+		 yoff, oldyoff, zoom, yoffmax);
+      posx = posx - xoff;
+      posy = posy - yoff;
+    }
+
+/*       if (scroll) */
+/*       { */
+/* 	  xoff=posx+640; */
+/* 	  posx=320; */
+/* 	  yoff=posy+512; */
+/* 	  posx=256; */
+/*       } */
+
+
+/*  zoom from to 1280x1024 map to the SCREEN_XxSCREEN_Y region */
+  if (!iszoomed)
+    {
+      rebuildtracklist ();
+
+      if (tempimage == NULL)
+	tempimage = gdk_pixbuf_new (GDK_COLORSPACE_RGB, 0, 8, 1280, 1024);
+
+      if (maploaded)
+	{
+/* 	  g_print ("\nmap loaded, do gdk_pixbuf_scale\n");  */
+	  gdk_pixbuf_scale (image, tempimage, 0, 0, 1280, 1024,
+			    640 - xoff - 640 * zoom,
+			    512 - yoff - 512 * zoom, zoom, zoom,
+			    GDK_INTERP_BILINEAR);
+
+/*       image=gdk_pixbuf_scale_simple(tempimage,640 - xoff - 640 * zoom,
+ *   			  512 - yoff - 512 * zoom, 
+ *   			  GDK_INTERP_BILINEAR);
+ */
+
+	}
+
+      if (debug)
+	g_print ("\nmap zoomed!\n");
+      iszoomed = TRUE;
+      expose_mini_cb (NULL, 0);
+
+    }
+
+  gdk_draw_pixbuf (drawable, kontext, tempimage,
+		   640 - SCREEN_X_2,
+		   512 - SCREEN_Y_2, 0, 0,
+		   SCREEN_X, SCREEN_Y, GDK_RGB_DITHER_NONE, 0, 0);
+
+  if ((!disableisnight) && (!downloadwindowactive))
+    {
+      if ((nightmode == 1) || ((nightmode == 2) && isnight))
+	{
+	  gdk_gc_set_function (kontext, GDK_AND);
+	  gdk_gc_set_foreground (kontext, &nightcolor);
+	  gdk_draw_rectangle (drawable, kontext, 1, 0, 0, SCREEN_X, SCREEN_Y);
+	  gdk_gc_set_function (kontext, GDK_COPY);
+	}
+    }
+
+  if (sqlflag)
+    {
+      g_snprintf (s1, sizeof (s1), "%d", wptotal);
+      gtk_entry_set_text (GTK_ENTRY (wplabel1), s1);
+      g_snprintf (s1, sizeof (s1), "%d", wpselected);
+      gtk_entry_set_text (GTK_ENTRY (wplabel2), s1);
+      if (dbusedist)
+	g_snprintf (s1, sizeof (s1), "%.1f km", dbdistance);
+      else
+	g_snprintf (s1, sizeof (s1), _("unused"));
+      gtk_entry_set_text (GTK_ENTRY (wplabel3), s1);
+      gtk_entry_set_text (GTK_ENTRY (wplabel4), loctime);
+    }
+  else
+    {
+      g_strlcpy (s1, _("n/a"), sizeof (s1));
+      gtk_entry_set_text (GTK_ENTRY (wplabel1), s1);
+      gtk_entry_set_text (GTK_ENTRY (wplabel2), s1);
+      gtk_entry_set_text (GTK_ENTRY (wplabel3), s1);
+      gtk_entry_set_text (GTK_ENTRY (wplabel4), loctime);
+    }
+  if (havefriends)
+    g_snprintf (s1, sizeof (s1), "%d/%d", actualfriends, maxfriends);
+  else
+    g_strlcpy (s1, _("n/a"), sizeof (s1));
+  gtk_entry_set_text (GTK_ENTRY (wplabel5), s1);
+
+  drawmarker (0, 0);
+
+  gdk_draw_pixmap (drawing_area->window, kontext, drawable, 0,
+		   0, 0, 0, SCREEN_X, SCREEN_Y);
+  exposed = TRUE;
+  return TRUE;
+}
+
+/*  This is called in simulation mode, it moves the position to the  */
+/*  selected destination */
+gint
+simulated_pos (GtkWidget * widget, guint * datum)
+{
+  gdouble ACCELMAX, ACCEL;
+  gdouble secs, tx, ty, lastdirection;
+
+
+  if (!simfollow)
+    return TRUE;
+
+  ACCELMAX = 0.00002 + dist / 30000.0;
+  ACCEL = ACCELMAX / 20.0;
+  long_diff += ACCEL * sin (angle_to_destination);
+  lat_diff += ACCEL * cos (angle_to_destination);
+  if (long_diff > ACCELMAX)
+    long_diff = ACCELMAX;
+  if (long_diff < -ACCELMAX)
+    long_diff = -ACCELMAX;
+  if (lat_diff > ACCELMAX)
+    lat_diff = ACCELMAX;
+  if (lat_diff < -ACCELMAX)
+    lat_diff = -ACCELMAX;
+
+
+  current_lat += lat_diff;
+  current_long += long_diff;
+  secs = g_timer_elapsed (timer, 0);
+  if (secs >= 1.0)
+    {
+      g_timer_stop (timer);
+      g_timer_start (timer);
+      tx =
+	(2 * R * M_PI / 360) * cos (M_PI * current_lat / 180.0) *
+	(current_long - old_long);
+      ty = (2 * R * M_PI / 360) * (current_lat - old_lat);
+#define MINSPEED 1.0
+      if (((fabs (tx)) > MINSPEED) || (((fabs (ty)) > MINSPEED)))
+	{
+	  lastdirection = direction;
+	  if (ty == 0)
+	    direction = 0.0;
+	  else
+	    direction = atan (tx / ty);
+	  if (!finite (direction))
+	    direction = lastdirection;
+
+	  if (ty < 0)
+	    direction = M_PI + direction;
+	  if (direction >= (2 * M_PI))
+	    direction -= 2 * M_PI;
+	  if (direction < 0)
+	    direction += 2 * M_PI;
+	  groundspeed = milesconv * sqrt (tx * tx + ty * ty) * 3.6 / secs;
+	}
+      else
+	groundspeed = 0.0;
+      if (groundspeed > 999)
+	groundspeed = 999;
+      old_lat = current_lat;
+      old_long = current_long;
+      if (mydebug)
+	g_print ("\nTime: %f", secs);
+    }
+
+  return TRUE;
+}
+
+
+/*  open serial port or pty master or file for NMEA output */
+FILE *
+opennmea (const char *name)
+{
+  struct termios tios;
+  FILE *const out = fopen (name, "w");
+  if (out == NULL)
+    {
+      perror (_("can't open NMEA output file"));
+      exit (1);
+    }
+
+  if (tcgetattr (fileno (out), &tios))
+    return out;			/* not a terminal, oh well */
+
+  tios.c_iflag = 0;
+  tios.c_oflag = 0;
+  tios.c_cflag = CS8 | CLOCAL;
+  tios.c_lflag = 0;
+  tios.c_cc[VMIN] = 1;
+  tios.c_cc[VTIME] = 0;
+  cfsetospeed (&tios, B4800);
+  tcsetattr (fileno (out), TCSAFLUSH, &tios);
+  return out;
+}
+
+void
+write_nmea_line (const char *line)
+{
+  int checksum = 0;
+  fprintf (nmeaout, "$%s*", line);
+  while ('\0' != *line)
+    checksum = checksum ^ *line++;
+  fprintf (nmeaout, "%02X\r\n", checksum);
+  fflush (nmeaout);
+}
+
+void
+gen_nmea_coord (char *out)
+{
+  gdouble lat = fabs (current_lat), lon = fabs (current_long);
+  g_snprintf (out, sizeof (out), ",%02d%07.5f,%c,%03d%07.5f,%c",
+	      (int) floor (lat), 60 * (lat - floor (lat)),
+	      (current_lat < 0 ? 'S' : 'N'),
+	      (int) floor (lon), 60 * (lon - floor (lon)),
+	      (current_long < 0 ? 'W' : 'E'));
+}
+
+gint
+write_nmea_cb (GtkWidget * widget, guint * datum)
+{
+  char buffer[180];
+  time_t now = time (NULL);
+  struct tm *st = gmtime (&now);
+
+  strftime (buffer, sizeof (buffer), "GPGGA,%H%M%S.000", st);
+  gen_nmea_coord (buffer + strlen (buffer));
+  g_strlcpy (buffer + strlen (buffer), ",1,00,0.0,,M,,,,0000",
+	     sizeof (buffer) - strlen (buffer));
+  write_nmea_line (buffer);
+
+  g_strlcpy (buffer, "GPGLL", sizeof (buffer));
+  gen_nmea_coord (buffer + strlen (buffer));
+  strftime (buffer + strlen (buffer), 80, ",%H%M%S.000,A", st);
+  write_nmea_line (buffer);
+
+  strftime (buffer, sizeof (buffer), "GPRMC,%H%M%S.000,A", st);
+  gen_nmea_coord (buffer + strlen (buffer));
+  g_snprintf (buffer + strlen (buffer), sizeof (buffer), ",%.2f,%.2f",
+	      groundspeed / milesconv / 1.852, direction * 180.0 / M_PI);
+  strftime (buffer + strlen (buffer), 80, ",%d%m%y,,", st);
+  write_nmea_line (buffer);
+
+  g_snprintf (buffer, sizeof (buffer), "GPVTG,%.2f,T,,M,%.2f,N,%.2f,K",
+	      direction * 180.0 / M_PI,
+	      groundspeed / milesconv / 1.852, groundspeed / milesconv);
+  write_nmea_line (buffer);
+
+  return TRUE;
+}
+
+
+/*  We load the map */
+void
+loadmap (char *filename)
+{
+  gchar mappath[600];
+  GdkPixbuf *limage;
+  guchar *lpixels, *pixels;
+  int i, j, k;
+
+  if (maploaded)
+    gdk_pixbuf_unref (image);
+
+  if (!(strncmp (filename, "top_", 4)))
+    mapistopo = TRUE;
+  else
+    mapistopo = FALSE;
+
+  if ((strcmp (filename, "top_GPSWORLD.jpg")) == 0)
+    {
+      g_snprintf (mappath, sizeof (mappath), "%s/gpsdrive/%s", DATADIR,
+		  "top_GPSWORLD.jpg");
+      limage = gdk_pixbuf_new_from_file (mappath, NULL);
+      if (limage == NULL)
+	havedefaultmap = FALSE;
+    }
+  else
+    {
+      g_strlcpy (mappath, mapdir, sizeof (mappath));
+      g_strlcat (mappath, filename, sizeof (mappath));
+      limage = gdk_pixbuf_new_from_file (mappath, NULL);
+    }
+
+  if (limage == NULL)
+    {
+      GString *error;
+      error = g_string_new (NULL);
+      g_string_sprintf (error, "\n%s\n%s\n",
+			_(" Mapfile could not be loaded:"), mappath);
+      error_popup ((gpointer *) error->str);
+      g_string_free (error, TRUE);
+      maploaded = FALSE;
+      return;
+    }
+
+
+  if (!gdk_pixbuf_get_has_alpha (limage))
+    image = limage;
+  else
+    {
+      image = gdk_pixbuf_new (GDK_COLORSPACE_RGB, 0, 8, 1280, 1024);
+      if (image == NULL)
+	{
+	  fprintf (stderr,
+		   "can't get image  gdk_pixbuf_new (GDK_COLORSPACE_RGB, 0, 8, 1280, 1024)\n");
+	  exit (1);
+	}
+      lpixels = gdk_pixbuf_get_pixels (limage);
+      pixels = gdk_pixbuf_get_pixels (image);
+      if (pixels == NULL)
+	{
+	  fprintf (stderr,
+		   "can't get pixels pixels = gdk_pixbuf_get_pixels (image);\n");
+	  exit (1);
+	}
+      j = k = 0;
+      for (i = 0; i < (1280 * 1024); i++)
+	{
+	  memcpy ((pixels + j), (lpixels + k), 3);
+	  j += 3;
+	  k += 4;
+	}
+      gdk_pixbuf_unref (limage);
+
+    }
+
+  expose_cb (NULL, NULL);
+  iszoomed = FALSE;
+/*        zoom = 1; */
+  xoff = yoff = 0;
+  rebuildtracklist ();
+  if (!maploaded)
+    display_status (_("Map found!"));
+
+  maploaded = TRUE;
+/*  draw minimap */
+  if (miniimage)
+    gdk_pixbuf_unref (miniimage);
+
+  miniimage = gdk_pixbuf_new (GDK_COLORSPACE_RGB, 0, 8, 128, 103);
+
+  gdk_pixbuf_scale (image, miniimage, 0, 0, 128, 103,
+		    0, 0, 0.1, 0.10, GDK_INTERP_TILES);
+  expose_mini_cb (NULL, 0);
+
+
+
+}
+
+
+void
+loadfriendsicon (void)
+{
+  gchar mappath[400];
+
+  g_snprintf (mappath, sizeof (mappath), "%s/gpsdrive/%s", DATADIR,
+	      "friendsicon.png");
+  friendsimage = gdk_pixbuf_new_from_file (mappath, NULL);
+  if (friendsimage == NULL)
+    {
+      friendsimage = gdk_pixbuf_new_from_file ("friendsicon.png", NULL);
+    }
+  if (friendsimage == NULL)
+    {
+      GString *error;
+      error = g_string_new (NULL);
+      g_string_sprintf (error, "\n%s\n%s\n",
+			_(" Friendsicon could not be loaded:"), mappath);
+      fprintf (stderr,
+	       _
+	       ("\nWarning: unable to load friendsicon!\nPlease install the program as root with:\nmake install\n\n"));
+
+      error_popup ((gpointer *) error->str);
+      g_string_free (error, TRUE);
+    }
+  friendspixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, 1, 8, 39, 24);
+  gdk_pixbuf_scale (friendsimage, friendspixbuf, 0, 0, 39, 24,
+		    0, 0, 1, 1, GDK_INTERP_BILINEAR);
+
+}
+
+gint
+zoom_cb (GtkWidget * widget, guint datum)
+{
+
+  if (iszoomed == FALSE)	/* needed to be sure the old zoom is made */
+    return TRUE;
+  iszoomed = FALSE;
+  if (datum == 1)
+    {
+      if (zoom >= 16)
+	{
+	  iszoomed = TRUE;
+	  return TRUE;
+	}
+      zoom *= 2;
+      xoff *= 2;
+      yoff *= 2;
+    }
+  else
+    {
+      if (zoom <= 1)
+	{
+	  zoom = 1;
+	  iszoomed = TRUE;
+	}
+      else
+	{
+	  zoom /= 2;
+	  xoff /= 2;
+	  yoff /= 2;
+	}
+    }
+  if (importactive)
+    {
+      expose_cb (NULL, 0);
+      expose_mini_cb (NULL, 0);
+    }
+  return TRUE;
+}
+
+
+gint
+scalerbt_cb (GtkWidget * widget, guint datum)
+{
+  gint val, oldval, old2val;
+  gchar oldfilename[200];
+
+  g_strlcpy (oldfilename, mapfilename, sizeof (oldfilename));
+  val = (GTK_ADJUSTMENT (adj)->value);
+  old2val = val;
+
+  do
+    {
+      oldval = val;
+      if (datum == 1)
+	{
+	  gtk_adjustment_set_value (GTK_ADJUSTMENT (adj), val + 1);
+	}
+      else
+	{
+	  gtk_adjustment_set_value (GTK_ADJUSTMENT (adj), val - 1);
+	}
+      val = (GTK_ADJUSTMENT (adj)->value);
+
+      testnewmap ();
+    }
+  while (((strcmp (oldfilename, mapfilename)) == 0) && (val != oldval));
+
+  if ((strcmp (oldfilename, mapfilename)) == 0)
+    val = old2val;
+  gtk_adjustment_set_value (GTK_ADJUSTMENT (adj), val);
+  expose_cb (NULL, 0);
+  expose_mini_cb (NULL, 0);
+
+  needtosave = TRUE;
+
+  return TRUE;
+}
+
+/*  destroy sel_target window */
+gint
+sel_targetweg_cb (GtkWidget * widget, guint datum)
+{
+/*   gtk_timeout_remove (selwptimeout); */
+  gtk_widget_destroy (GTK_WIDGET (gotowindow));
+  setwpactive = FALSE;
+
+  return FALSE;
+}
+
+/*  cancel sel_route window */
+gint
+sel_routecancel_cb (GtkWidget * widget, guint datum)
+{
+  gchar str[200];
+
+
+  gtk_widget_destroy (GTK_WIDGET (routewindow));
+
+  g_snprintf (str, sizeof (str), "%s: %s", _("To"), targetname);
+  gtk_frame_set_label (GTK_FRAME (destframe), str);
+  createroute = FALSE;
+  routemode = FALSE;
+  routepointer = routeitems = 0;
+  gtk_widget_set_sensitive (create_route_button, TRUE);
+  return FALSE;
+}
+
+/*  destroy sel_route window but continue routing*/
+gint
+sel_routeclose_cb (GtkWidget * widget, guint datum)
+{
+  gtk_widget_destroy (GTK_WIDGET (routewindow));
+  gtk_widget_set_sensitive (create_route_button, TRUE);
+  return FALSE;
+}
+
+gint
+do_route_cb (GtkWidget * widget, guint datum)
+{
+
+  gtk_widget_destroy (GTK_WIDGET (routewindow));
+  gtk_widget_set_sensitive (create_route_button, TRUE);
+  createroute = FALSE;
+  routemode = TRUE;
+  setroutetarget (NULL, -1);
+  return FALSE;
+}
+
+gint
+dlstatusaway_cb (GtkWidget * widget, guint datum)
+{
+
+
+  downloadwindowactive = downloadactive = FALSE;
+  gtk_widget_set_sensitive (downloadbt, TRUE);
+
+  return FALSE;
+}
+
+gint
+importaway_cb (GtkWidget * widget, guint datum)
+{
+  importactive = FALSE;
+  gtk_widget_destroy (widget);
+  g_strlcpy (oldfilename, "XXXXXXXXXXXXXXXXXX", sizeof (oldfilename));
+  return FALSE;
+}
+
+/*  cancel button pressed or widget destroy in download_cb */
+gint
+downloadaway_cb (GtkWidget * widget, guint datum)
+{
+  downloadwindowactive = downloadactive = FALSE;
+  gtk_widget_destroy (widget);
+  expose_mini_cb (NULL, 0);
+  gtk_widget_set_sensitive (downloadbt, TRUE);
+
+/*    gdk_window_set_cursor (drawing_area->window, 0); */
+/*    gdk_cursor_destroy (cursor); */
+  return FALSE;
+}
+
+#ifdef DONTKNOWWHATTHISSHITWAS
+gint
+testnewwp_cb (GtkWidget * widget, guint datum)
+{
+  gint e;
+  e = kill (datum, 0);
+  if (e != 0)
+    {
+      loadwaypoints ();
+      return FALSE;
+    }
+  return TRUE;
+}
+
+#endif
+
+gint
+other_select_cb (GtkWidget * widget, guint datum)
+{
+  gint i, e;
+  gchar buff[300], mappath[500];
+  struct stat buf;
+
+  i = 0;
+  do
+    {
+      if (mapdir[strlen (mapdir) - 1] != '/')
+	g_strlcat (mapdir, "/", sizeof (mapdir));
+
+      g_strlcpy (mappath, mapdir, sizeof (mappath));
+
+      g_snprintf (downloadfilename, sizeof (downloadfilename),
+		  "%smap_file%04d.gif", mappath, i++);
+      e = stat (downloadfilename, &buf);
+    }
+  while (e == 0);
+  g_snprintf (buff, sizeof (buff), "map_file%04d.gif", i - 1);
+  gtk_entry_set_text (GTK_ENTRY (dltext4), buff);
+
+  return TRUE;
+}
+
+gint
+topoz_select_cb (GtkWidget * widget, guint datum)
+{
+  gint i, e;
+  gchar buff[300], mappath[500];
+  struct stat buf;
+
+  i = 0;
+  do
+    {
+      if (mapdir[strlen (mapdir) - 1] != '/')
+	g_strlcat (mapdir, "/", sizeof (mapdir));
+
+      g_strlcpy (mappath, mapdir, sizeof (mappath));
+
+      g_snprintf (downloadfilename, sizeof (downloadfilename),
+		  "%stop_file%04d.png", mappath, i++);
+      e = stat (downloadfilename, &buf);
+    }
+  while (e == 0);
+  g_snprintf (buff, sizeof (buff), "top_file%04d.png", i - 1);
+  gtk_entry_set_text (GTK_ENTRY (dltext4), buff);
+
+  return TRUE;
+}
+
+gint
+dlscale_cb (GtkWidget * widget, guint datum)
+{
+  G_CONST_RETURN gchar *sc;
+  gchar t[100], t2[10];
+  gdouble f;
+/* PORTING */
+  sc = gtk_entry_get_text (GTK_ENTRY (GTK_COMBO (dltext3)->entry));
+
+  f = g_strtod (sc, NULL);
+
+  g_strlcpy (t2, "km", sizeof (t2));
+
+  if (milesflag)
+    g_strlcpy (t2, "mi", sizeof (t2));
+  if (nauticflag)
+    g_strlcpy (t2, "nmi", sizeof (t2));
+
+  g_snprintf (t, sizeof (t), "%.3f x %.3f %s",
+	      milesconv * 1.280 * f / PIXELFACT,
+	      milesconv * 1.024 * f / PIXELFACT, t2);
+  gtk_entry_set_text (GTK_ENTRY (cover), t);
+  return TRUE;
+}
+
+
+gint
+download_cb (GtkWidget * widget, guint datum)
+{
+  GtkWidget *mainbox;
+  GtkWidget *knopf2, *knopf, *knopf3, *knopf4, *knopf5, *knopf6, *knopf7;
+  GtkWidget *table, *table2, *knopf8;
+  gchar buff[300], mappath[500];
+  GList *list = NULL;
+  GSList *gr;
+  gint i, e;
+  struct stat buf;
+  gchar scalewanted_str[100];
+  GtkTooltips *tooltips;
+
+  gtk_widget_set_sensitive (downloadbt, FALSE);
+
+  for (i = 0; i < 30; i++)
+    list = g_list_append (list, slist[i]);
+  downloadwindow = gtk_dialog_new ();
+  gtk_window_set_title (GTK_WINDOW (downloadwindow),
+			_("Select coordinates and scale"));
+  gtk_container_set_border_width (GTK_CONTAINER (downloadwindow), 5);
+  mainbox = gtk_vbox_new (TRUE, 2);
+  knopf = gtk_button_new_with_label (_("Download map"));
+  gtk_signal_connect (GTK_OBJECT (knopf), "clicked",
+		      GTK_SIGNAL_FUNC (downloadsetparm), (gpointer) 1);
+  knopf2 = gtk_button_new_from_stock (GTK_STOCK_CANCEL);
+  gtk_signal_connect_object (GTK_OBJECT (knopf2), "clicked",
+			     GTK_SIGNAL_FUNC
+			     (downloadaway_cb), GTK_OBJECT (downloadwindow));
+  gtk_signal_connect_object (GTK_OBJECT (downloadwindow), "delete_event",
+			     GTK_SIGNAL_FUNC (downloadaway_cb),
+			     GTK_OBJECT (downloadwindow));
+  cover = gtk_entry_new ();
+  gtk_editable_set_editable (GTK_EDITABLE (cover), FALSE);
+  gtk_signal_connect (GTK_OBJECT (cover), "changed",
+		      GTK_SIGNAL_FUNC (downloadsetparm), (gpointer) 0);
+  gtk_box_pack_start (GTK_BOX
+		      (GTK_DIALOG (downloadwindow)->
+		       action_area), knopf, TRUE, TRUE, 2);
+  gtk_box_pack_start (GTK_BOX
+		      (GTK_DIALOG (downloadwindow)->
+		       action_area), knopf2, TRUE, TRUE, 2);
+  GTK_WIDGET_SET_FLAGS (knopf, GTK_CAN_DEFAULT);
+  GTK_WIDGET_SET_FLAGS (knopf2, GTK_CAN_DEFAULT);
+  table = gtk_table_new (8, 2, FALSE);
+  gtk_box_pack_start (GTK_BOX
+		      (GTK_DIALOG (downloadwindow)->vbox),
+		      table, TRUE, TRUE, 2);
+  knopf3 = gtk_label_new (_("Latitude"));
+  gtk_table_attach_defaults (GTK_TABLE (table), knopf3, 0, 1, 0, 1);
+  knopf4 = gtk_label_new (_("Longitude"));
+  gtk_table_attach_defaults (GTK_TABLE (table), knopf4, 0, 1, 1, 2);
+  knopf8 = gtk_label_new (_("Map covers"));
+  gtk_table_attach_defaults (GTK_TABLE (table), knopf8, 0, 1, 2, 3);
+  gtk_table_attach_defaults (GTK_TABLE (table), cover, 1, 2, 2, 3);
+
+  knopf5 = gtk_label_new (_("Scale"));
+  gtk_table_attach_defaults (GTK_TABLE (table), knopf5, 0, 1, 3, 4);
+  knopf6 = gtk_label_new (_("Map file name"));
+  gtk_table_attach_defaults (GTK_TABLE (table), knopf6, 0, 1, 4, 5);
+  dltext1 = gtk_entry_new ();
+  gtk_signal_connect (GTK_OBJECT (dltext1), "changed",
+		      GTK_SIGNAL_FUNC (downloadsetparm), (gpointer) 0);
+
+  gtk_table_attach_defaults (GTK_TABLE (table), dltext1, 1, 2, 0, 1);
+  g_snprintf (buff, sizeof (buff), "%.5f", current_lat);
+  if (minsecmode)
+    decimaltomin (buff, 1);
+
+  gtk_entry_set_text (GTK_ENTRY (dltext1), buff);
+  dltext2 = gtk_entry_new ();
+  gtk_signal_connect (GTK_OBJECT (dltext2), "changed",
+		      GTK_SIGNAL_FUNC (downloadsetparm), (gpointer) 0);
+  gtk_table_attach_defaults (GTK_TABLE (table), dltext2, 1, 2, 1, 2);
+  g_snprintf (buff, sizeof (buff), "%.5f", current_long);
+  if (minsecmode)
+    decimaltomin (buff, 0);
+  gtk_entry_set_text (GTK_ENTRY (dltext2), buff);
+  dltext3 = gtk_combo_new ();
+  gtk_table_attach_defaults (GTK_TABLE (table), dltext3, 1, 2, 3, 4);
+  gtk_combo_set_popdown_strings (GTK_COMBO (dltext3), (GList *) list);
+  g_snprintf (scalewanted_str, sizeof (scalewanted_str), "%d", scalewanted);
+  gtk_entry_set_text (GTK_ENTRY (GTK_COMBO (dltext3)->entry),
+		      scalewanted_str);
+  gtk_signal_connect (GTK_OBJECT (GTK_COMBO (dltext3)->entry), "changed",
+		      GTK_SIGNAL_FUNC (downloadsetparm), (gpointer) 0);
+
+  dltext4 = gtk_entry_new ();
+  gtk_table_attach_defaults (GTK_TABLE (table), dltext4, 1, 2, 4, 5);
+  gtk_signal_connect (GTK_OBJECT (GTK_COMBO (dltext3)->entry), "changed",
+		      GTK_SIGNAL_FUNC (dlscale_cb), 0);
+  gtk_signal_connect (GTK_OBJECT (dltext4), "changed",
+		      GTK_SIGNAL_FUNC (dlscale_cb), 0);
+
+  table2 = gtk_table_new (3, 1, FALSE);	//nested table w/ three columns
+  gtk_table_attach_defaults (GTK_TABLE (table), table2, 0, 3, 5, 6);
+  gtk_widget_show (table2);
+
+  radio1 = gtk_radio_button_new_with_label (NULL, _("Expedia Germany"));
+  gtk_table_attach_defaults (GTK_TABLE (table2), radio1, 0, 1, 0, 1);
+  gr = gtk_radio_button_group (GTK_RADIO_BUTTON (radio1));
+  gtk_signal_connect (GTK_OBJECT (radio1), "clicked",
+		      GTK_SIGNAL_FUNC (other_select_cb), 0);
+
+  radio2 = gtk_radio_button_new_with_label (gr, _("Expedia USA"));
+  gtk_table_attach_defaults (GTK_TABLE (table2), radio2, 1, 2, 0, 1);
+  gr = gtk_radio_button_group (GTK_RADIO_BUTTON (radio2));
+  gtk_signal_connect (GTK_OBJECT (radio2), "clicked",
+		      GTK_SIGNAL_FUNC (other_select_cb), 0);
+
+  radio3 = gtk_radio_button_new_with_label (gr, _("TopoZone(US Only)"));
+  gtk_table_attach_defaults (GTK_TABLE (table2), radio3, 2, 3, 0, 1);
+  gr = gtk_radio_button_group (GTK_RADIO_BUTTON (radio3));
+  gtk_signal_connect (GTK_OBJECT (radio3), "clicked",
+		      GTK_SIGNAL_FUNC (topoz_select_cb), 0);
+
+  tooltips = gtk_tooltips_new ();
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), radio1,
+			_
+			("If selected, you download the map from the german expedia server (expedia.de)"),
+			NULL);
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), radio2,
+			_
+			("If selected, you download the map from the U.S. expedia server (expedia.com)"),
+			NULL);
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), radio3,
+			_
+			("If selected, you download the map from the TopoZone Server (US maps only)"),
+			NULL);
+
+/* disable mapblast */
+/*   gtk_widget_set_sensitive (radio1, FALSE); */
+/*   defaultserver = 1; */
+
+/*   gtk_table_attach_defaults (GTK_TABLE (table), radio2, 1, 2, 5, 6); */
+  switch (defaultserver)
+    {
+    case 0:
+      gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (radio1), TRUE);
+      other_select_cb (NULL, 0);
+      break;
+    case 1:
+      gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (radio2), TRUE);
+      other_select_cb (NULL, 0);
+      break;
+    case 2:
+      gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (radio3), TRUE);
+      topoz_select_cb (NULL, 0);
+      break;
+    }
+
+  if (!haveproxy)
+    g_snprintf (buff, sizeof (buff), "%s",
+		_("You can also select the position\n"
+		  "with a mouse click on the map."));
+  else
+    g_snprintf (buff, sizeof (buff), "%s\n\n%s    %s %d",
+		_("You can also select the position\n"
+		  "with a mouse click on the map."),
+		_("Using Proxy and port:"), proxy, proxyport);
+  knopf7 = gtk_label_new (buff);
+  gtk_table_attach_defaults (GTK_TABLE (table), knopf7, 0, 2, 6, 7);
+  myprogress = gtk_progress_bar_new ();
+  gtk_progress_set_format_string (GTK_PROGRESS (myprogress), "%p%%");
+  gtk_progress_set_show_text (GTK_PROGRESS (myprogress), TRUE);
+  gtk_progress_bar_update (GTK_PROGRESS_BAR (myprogress), 0.0);
+  gtk_table_attach_defaults (GTK_TABLE (table), myprogress, 0, 2, 7, 8);
+  gtk_label_set_justify (GTK_LABEL (knopf6), GTK_JUSTIFY_RIGHT);
+  gtk_label_set_justify (GTK_LABEL (knopf3), GTK_JUSTIFY_RIGHT);
+  gtk_label_set_justify (GTK_LABEL (knopf4), GTK_JUSTIFY_RIGHT);
+  gtk_label_set_justify (GTK_LABEL (knopf5), GTK_JUSTIFY_RIGHT);
+  gtk_label_set_justify (GTK_LABEL (knopf6), GTK_JUSTIFY_RIGHT);
+  i = 0;
+  do
+    {
+      if (mapdir[strlen (mapdir) - 1] != '/')
+	g_strlcat (mapdir, "/", sizeof (mapdir));
+
+      g_strlcpy (mappath, mapdir, sizeof (mappath));
+
+      g_snprintf (downloadfilename, sizeof (downloadfilename),
+		  "%smap_file%04d.gif", mappath, i++);
+      e = stat (downloadfilename, &buf);
+    }
+  while (e == 0);
+  g_snprintf (buff, sizeof (buff), "map_file%04d.gif", i - 1);
+  gtk_entry_set_text (GTK_ENTRY (dltext4), buff);
+  gtk_window_set_default (GTK_WINDOW (downloadwindow), knopf);
+  gtk_window_set_transient_for (GTK_WINDOW (downloadwindow),
+				GTK_WINDOW (mainwindow));
+  gtk_window_set_position (GTK_WINDOW (downloadwindow), GTK_WIN_POS_CENTER);
+  gtk_widget_show_all (downloadwindow);
+  downloadwindowactive = TRUE;
+  downloadsetparm (NULL, 0);
+
+/*    cursor = gdk_cursor_new (GDK_CROSS); */
+/*    gdk_window_set_cursor (drawing_area->window, cursor); */
+  return TRUE;
+}
+
+gint
+downloadsetparm (GtkWidget * widget, guint datum)
+{
+  G_CONST_RETURN gchar *s, *sc;
+  gchar longi[100], lat[100], hostname[100], region[10];
+  gdouble f, nlongi;
+  gint ns;
+
+  float Lat1, Long1, Lat2, Long2, Lat, Long, scale_f;
+  float *UTMNorthing, *UTMEasting;
+  int *UTMZone;
+  char s_zone[6], typ[8], sctext[40];
+  char Lat1S[20], Long1S[20], Lat2S[20], Long2S[20];
+
+  if (!downloadwindowactive)
+    return TRUE;
+
+  expedia_de = FALSE;
+
+  if (GTK_TOGGLE_BUTTON (radio2)->active)
+    expedia = TRUE;
+  else
+    expedia = FALSE;
+  if (GTK_TOGGLE_BUTTON (radio1)->active)
+    {
+      expedia = TRUE;
+      expedia_de = TRUE;
+    }
+
+  if (GTK_TOGGLE_BUTTON (radio3)->active)
+    topozone = TRUE;
+  else
+    topozone = FALSE;
+
+
+  s = gtk_entry_get_text (GTK_ENTRY (dltext1));
+  g_strlcpy (lat, s, sizeof (lat));
+  checkinput (lat);
+  g_strlcpy (newmaplat, lat, sizeof (newmaplat));
+  g_strdelimit (lat, ",", '.');
+  Lat = atof (lat);
+  s = gtk_entry_get_text (GTK_ENTRY (dltext2));
+  g_strlcpy (longi, s, sizeof (longi));
+  checkinput (longi);
+  nlongi = g_strtod (longi, NULL);
+  Long = atof (longi);
+
+  g_strlcpy (newmaplongi, longi, sizeof (newmaplongi));
+  g_strdelimit (longi, ",", '.');
+  sc = gtk_entry_get_text (GTK_ENTRY (GTK_COMBO (dltext3)->entry));
+  g_strlcpy (sctext, sc, sizeof (sctext));
+  g_strlcpy (newmapsc, sctext, sizeof (newmapsc));
+
+/*   g_print ("\nnewmaplat: %s, newmaplongi: %s newmapsc: %s", newmaplat, */
+/* 	   newmaplongi, newmapsc); */
+
+  if (datum == 0)
+    return TRUE;
+  if (expedia)
+    {
+      if (expedia_de)
+	g_snprintf (hostname, sizeof (hostname), "%s", WEBSERVER4);
+      else
+	g_snprintf (hostname, sizeof (hostname), "%s", WEBSERVER2);
+    }
+  if (topozone)
+    g_snprintf (hostname, sizeof (hostname), "%s", WEBSERVER3);
+  if (!expedia && !topozone)
+    g_snprintf (hostname, sizeof (hostname), "%s", WEBSERVER);
+
+/*   if (expedia) */
+/*     { */
+/*       f = g_strtod (sc, NULL); */
+/*       ns = f / EXPEDIAFACT; */
+/*       g_snprintf ((char *) sc, "%d", ns); */
+/*       g_snprintf (newmapsc, "%d", (int) (ns * EXPEDIAFACT)); */
+/*     } */
+  if (expedia)
+    {
+      int scales[11] = { 1, 3, 6, 12, 25, 50, 150, 800, 2000, 7000, 12000 };
+      int i, found = 5;
+      double di = 999999;
+      f = g_strtod (sctext, NULL);
+      ns = f / EXPEDIAFACT;
+      for (i = 0; i < 11; i++)
+	if (abs (ns - scales[i]) < di)
+	  {
+	    di = abs (ns - scales[i]);
+	    found = i;
+	  }
+      ns = scales[found];
+      g_snprintf (sctext, sizeof (sctext), "%d", ns);
+      g_snprintf (newmapsc, sizeof (newmapsc), "%d",
+		  (int) (ns * EXPEDIAFACT));
+    }
+  if (debug)
+    printf ("\nsctext: %s,newmapsc: %s\n", sctext, newmapsc);
+
+/*   new URL (08/28/2002) */
+/* http://www.mapblast.com/myblastd/MakeMap.d?&CT=48.0:12.2:100000&IC=&W=1280&H=1024&FAM=myblast&LB= */
+/*   new URL (April 2003)
+ *   http://www.vicinity.com/gif?&CT=45:-93:10000&IC=&W=1024&H=800&FAM=myblast&LB=
+ */
+
+  if (topozone)			//TopoZone.com supported Added by Russell Harding Jan, 2004
+    {				//<hardingr at cunap dot com>
+      UTMNorthing = malloc (sizeof (float));
+      UTMEasting = malloc (sizeof (float));
+      UTMZone = malloc (sizeof (int));
+      scale_f = atof (sctext);
+
+      LLtoUTM (Lat, Long, UTMNorthing, UTMEasting, UTMZone);
+
+      Lat1 = *UTMNorthing - (1024 * scale_f / PIXELFACT) / 2;
+      Lat2 = *UTMNorthing + (1024 * scale_f / PIXELFACT) / 2;
+      Long1 = *UTMEasting - (1280 * scale_f / PIXELFACT) / 2;
+      Long2 = *UTMEasting + (1280 * scale_f / PIXELFACT) / 2;
+
+      if (*UTMZone >= 10)
+	g_snprintf (s_zone, sizeof (s_zone), "269%i", *UTMZone);
+      else
+	g_snprintf (s_zone, sizeof (s_zone), "2690%i", *UTMZone);
+
+      if (Lat > 50)		//Maps in Alaska have different scales
+	{
+	  if (scale_f <= 75000)
+	    g_snprintf (typ, sizeof (typ), "DRG50");
+	  else
+	    g_snprintf (typ, sizeof (typ), "DRG250");
+	}
+      else			//Continental U.S.
+	{
+	  if (scale_f <= 30000)
+	    g_snprintf (typ, sizeof (typ), "DRG25");
+	  if (scale_f > 30000 && scale_f <= 75000)
+	    g_snprintf (typ, sizeof (typ), "DRG100");
+	  if (scale_f > 75000)
+	    g_snprintf (typ, sizeof (typ), "DRG250");
+	}
+      g_snprintf (Long1S, sizeof (Long1S), "%f", Long1);
+      g_strdelimit (Long1S, ",", '.');
+      g_snprintf (Lat1S, sizeof (Lat1S), "%f", Lat1);
+      g_strdelimit (Lat1S, ",", '.');
+      g_snprintf (Long2S, sizeof (Long2S), "%f", Long2);
+      g_strdelimit (Long2S, ",", '.');
+      g_snprintf (Lat2S, sizeof (Lat2S), "%f", Lat2);
+      g_strdelimit (Lat2S, ",", '.');
+
+      g_snprintf (writebuff, sizeof (writebuff),
+		  "GET http://%s/map.php?map=PNG8|4|%s|%s|%s,%s,%s,%s|1280|1024 HTTP/1.0\r\nUser-Agent: Wget/1.6\r\nHost: %s\r\nAccept: */*\r\nConnection: Keep-Alive\r\n\r\n",
+		  WEBSERVER3, typ, s_zone, Long1S, Lat1S, Long2S, Lat2S,
+		  hostname);
+
+      free (UTMNorthing);
+      free (UTMEasting);
+      free (UTMZone);
+    }
+
+  if (!expedia && !topozone)
+    g_snprintf (writebuff, sizeof (writebuff),
+		"GET http://%s/gif?&CT=%s:%s:%s&IC=&W=1280&H=1024&FAM=myblast&LB= HTTP/1.0\r\nUser-Agent: Wget/1.6\r\nHost: %s\r\nAccept: */*\r\nConnection: Keep-Alive\r\n\r\n",
+		WEBSERVER, lat, longi, sctext, hostname);
+  if (expedia)
+    {
+      if (nlongi > (-30))
+	g_strlcpy (region, "EUR0809", sizeof (region));
+      else
+	g_strlcpy (region, "USA0409", sizeof (region));
+
+      if (expedia_de)
+	g_snprintf (writebuff, sizeof (writebuff),
+		    "GET http://%s/pub/agent.dll?qscr=mrdt&ID=3XNsF.&CenP=%s,%s&Lang=%s&Alti=%s&Size=1280,1024&Offs=0.000000,0.000000& HTTP/1.1\r\nUser-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)\r\nHost: %s\r\nAccept: */*\r\nCookie: jscript=1\r\n\r\n",
+		    WEBSERVER4, lat, longi, region, sctext, hostname);
+      else
+	g_snprintf (writebuff, sizeof (writebuff),
+		    "GET http://%s/pub/agent.dll?qscr=mrdt&ID=3XNsF.&CenP=%s,%s&Lang=%s&Alti=%s&Size=1280,1024&Offs=0.000000,0.000000& HTTP/1.1\r\nUser-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)\r\nHost: %s\r\nAccept: */*\r\nCookie: jscript=1\r\n\r\n",
+		    WEBSERVER2, lat, longi, region, sctext, hostname);
+    }
+
+  if (debug)
+    g_print ("\nDownload URL: %s\n", writebuff);
+
+  if (!expedia)
+    downloadstart_cb (widget, 0);
+  else
+    {
+      char url[2000], url2[2000], hn[200], *p;
+
+      p = getexpediaurl (widget);
+      if (p == NULL)
+	{
+	  return FALSE;
+	}
+
+      g_strlcpy (url, p, sizeof (url));
+      if (debug)
+	printf ("\n%s\n", url);
+      p = strstr (url, "Location: ");
+      g_strlcpy (url2, (p + 10), sizeof (url2));
+      p = strstr (url2, "\n");
+      url2[p - url2] = 0;
+      if (debug)
+	printf ("\n**********\n%s\n", url2);
+      g_strlcpy (hn, (url2 + 7), sizeof (hn));
+      p = strstr (hn, "/");
+      hn[p - hn] = 0;
+      g_strlcpy (url, (url2 + strlen (hn) + 7), sizeof (url));
+      url[strlen (url) - 1] = 0;
+      g_strlcpy (actualhostname, hn, sizeof (actualhostname));
+      if (debug)
+	printf ("\nhn: %s, url: %s", hn, url);
+      g_snprintf (url2, sizeof (url2), "GET %s HTTP/1.1\r\n", url);
+      g_strlcat (url2, "Host: ", sizeof (url2));
+      g_strlcat (url2, hn, sizeof (url2));
+      g_strlcat (url2, "\r\n", sizeof (url2));
+      g_strlcat (url2,
+		 "User-Agent: Mozilla/5.0 Galeon/1.2.8 (X11; Linux i686; U;) Gecko/20030317\r\n",
+		 sizeof (url2));
+      g_strlcat (url2,
+		 "Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,text/css,*/*;q=0.1\r\n",
+		 sizeof (url2));
+      g_strlcat (url2, "Accept-Language: de, en;q=0.50\r\n", sizeof (url2));
+      g_strlcat (url2, "Accept-Encoding: gzip, deflate, compress;q=0.9\r\n",
+		 sizeof (url2));
+      g_strlcat (url2,
+		 "Accept-Charset: ISO-8859-15, utf-8;q=0.66, *;q=0.66\r\n",
+		 sizeof (url2));
+      g_strlcat (url2, "Keep-Alive: 300\r\n", sizeof (url2));
+      g_strlcat (url2, "Connection: keep-alive\r\n\r\n", sizeof (url2));
+
+      g_strlcpy (writebuff, url2, sizeof (writebuff));
+      if (debug)
+	printf ("\nurl2:\n%s\n**********\n\n%s\n-----------------\n", url2,
+		writebuff);
+
+      downloadstart_cb (widget, 0);
+
+/*       exit (1); */
+    }
+  return TRUE;
+}
+
+
+char *
+getexpediaurl (GtkWidget * widget)
+{
+  struct sockaddr_in server;
+  struct hostent *server_data;
+  gchar str[100], sn[1000];
+  gchar tmpbuff[9000];
+  gint e;
+  static char url[8000];
+
+/*  open socket to port80 */
+  if ((dlsock = socket (AF_INET, SOCK_STREAM, 0)) < 0)
+    {
+      perror (_("can't open socket for port 80"));
+      if (expedia_de)
+	g_snprintf (str, sizeof (str), _("Connecting to %s FAILED!"),
+		    (expedia) ? WEBSERVER4 : WEBSERVER);
+      else
+	g_snprintf (str, sizeof (str), _("Connecting to %s FAILED!"),
+		    (expedia) ? WEBSERVER2 : WEBSERVER);
+      gtk_statusbar_pop (GTK_STATUSBAR (status), statusid);
+      gtk_statusbar_push (GTK_STATUSBAR (status), statusid, str);
+      gtk_widget_destroy (downloadwindow);
+      gtk_timeout_add (3000, (GtkFunction) dlstatusaway_cb, widget);
+      return (NULL);
+    }
+
+  server.sin_family = AF_INET;
+/*  We retrieve the IP address of the server from its name: */
+  if (haveproxy)
+    g_strlcpy (sn, proxy, sizeof (sn));
+  else
+    {
+      if (expedia_de)
+	g_strlcpy (sn, (expedia) ? WEBSERVER4 : WEBSERVER, sizeof (sn));
+      else
+	g_strlcpy (sn, (expedia) ? WEBSERVER2 : WEBSERVER, sizeof (sn));
+    }
+  if ((server_data = gethostbyname (sn)) == NULL)
+    {
+      perror (_("Can't resolve webserver address"));
+      if (expedia_de)
+	g_snprintf (str, sizeof (str), _("Connecting to %s FAILED!"),
+		    (expedia) ? WEBSERVER4 : WEBSERVER);
+      else
+	g_snprintf (str, sizeof (str), _("Connecting to %s FAILED!"),
+		    (expedia) ? WEBSERVER2 : WEBSERVER);
+      gtk_statusbar_pop (GTK_STATUSBAR (status), statusid);
+      gtk_statusbar_push (GTK_STATUSBAR (status), statusid, str);
+      gtk_widget_destroy (downloadwindow);
+      gtk_timeout_add (3000, (GtkFunction) dlstatusaway_cb, widget);
+      return (NULL);
+    }
+  memcpy (&server.sin_addr, server_data->h_addr, server_data->h_length);
+  server.sin_port = htons (proxyport);
+/*  We initiate the connection  */
+  if (connect (dlsock, (struct sockaddr *) &server, sizeof server) < 0)
+    {
+      perror (_("unable to connect to Website"));
+      if (expedia_de)
+	g_snprintf (str, sizeof (str), _("Connecting to %s FAILED!"),
+		    (expedia) ? WEBSERVER4 : WEBSERVER);
+      else
+	g_snprintf (str, sizeof (str), _("Connecting to %s FAILED!"),
+		    (expedia) ? WEBSERVER2 : WEBSERVER);
+      gtk_statusbar_pop (GTK_STATUSBAR (status), statusid);
+      gtk_statusbar_push (GTK_STATUSBAR (status), statusid, str);
+      gtk_widget_destroy (downloadwindow);
+      gtk_timeout_add (3000, (GtkFunction) dlstatusaway_cb, widget);
+      return (NULL);
+    }
+
+  write (dlsock, writebuff, strlen (writebuff));
+
+  FD_ZERO (&readmask);
+  FD_SET (dlsock, &readmask);
+  timeout.tv_sec = 0;
+  timeout.tv_usec = 100000;
+  if (select (FD_SETSIZE, &readmask, NULL, NULL, &timeout) < 0)
+    {
+      perror ("select() call");
+    }
+
+  g_strlcpy (url, "Fehler!!!!", sizeof (url));
+  memset (tmpbuff, 0, 8192);
+  if ((e = read (dlsock, tmpbuff, 8000)) < 0)
+    perror (_("read from Webserver"));
+  if (debug)
+    g_print ("\nLoaded %d Bytes\n", e);
+  if (e > 0)
+    g_strlcpy (url, tmpbuff, sizeof (url));
+  else
+    {
+      perror ("getexpediaurl");
+      fprintf (stderr, "error while reading from exedia\n");
+      exit (1);
+    }
+  close (dlsock);
+  return url;
+
+}
+
+gint
+downloadstart_cb (GtkWidget * widget, guint datum)
+{
+  struct sockaddr_in server;
+  struct hostent *server_data;
+  gchar str[100], sn[1000];
+
+
+  downloadfilelen = 0;
+  downloadactive = TRUE;
+  if (!expedia && !topozone)
+    g_snprintf (str, sizeof (str), _("Connecting to %s"), WEBSERVER);
+  if (expedia)
+    {
+      if (expedia_de)
+	g_snprintf (str, sizeof (str), _("Connecting to %s"), WEBSERVER4);
+      else
+	g_snprintf (str, sizeof (str), _("Connecting to %s"), WEBSERVER2);
+    }
+  if (topozone)
+    g_snprintf (str, sizeof (str), _("Connecting to %s"), WEBSERVER3);
+  gtk_statusbar_pop (GTK_STATUSBAR (status), statusid);
+  gtk_statusbar_push (GTK_STATUSBAR (status), statusid, str);
+  while (gtk_events_pending ())
+    gtk_main_iteration ();
+/*  open socket to port80 */
+  if ((dlsock = socket (AF_INET, SOCK_STREAM, 0)) < 0)
+    {
+      perror (_("can't open socket for port 80"));
+      if (!expedia && !topozone)
+	g_snprintf (str, sizeof (str), _("Connecting to %s FAILED!"),
+		    WEBSERVER);
+      if (expedia)
+	{
+	  if (expedia_de)
+	    g_snprintf (str, sizeof (str), _("Connecting to %s FAILED!"),
+			WEBSERVER4);
+	  else
+	    g_snprintf (str, sizeof (str), _("Connecting to %s FAILED!"),
+			WEBSERVER2);
+	}
+      if (topozone)
+	g_snprintf (str, sizeof (str), _("Connecting to %s FAILED!"),
+		    WEBSERVER3);
+      gtk_statusbar_pop (GTK_STATUSBAR (status), statusid);
+      gtk_statusbar_push (GTK_STATUSBAR (status), statusid, str);
+      gtk_widget_destroy (downloadwindow);
+      gtk_timeout_add (6000, (GtkFunction) dlstatusaway_cb, widget);
+      return (FALSE);
+    }
+
+  server.sin_family = AF_INET;
+/*  We retrieve the IP address of the server from its name: */
+  if (haveproxy)
+    g_strlcpy (sn, proxy, sizeof (sn));
+  else
+    {
+      if (expedia)
+	{
+	  if (expedia_de)
+	    g_strlcpy (sn, WEBSERVER4, sizeof (sn));
+	  else
+	    g_strlcpy (sn, WEBSERVER2, sizeof (sn));
+	}
+      if (topozone)
+	g_strlcpy (sn, WEBSERVER3, sizeof (sn));
+      if (!expedia && !topozone)
+	g_strlcpy (sn, WEBSERVER, sizeof (sn));
+    }
+
+  if (expedia)
+    g_strlcpy (sn, actualhostname, sizeof (sn));
+
+  if ((server_data = gethostbyname (sn)) == NULL)
+    {
+      perror (_("Can't resolve webserver address"));
+      if (!expedia && !topozone)
+	g_snprintf (str, sizeof (str), _("Connecting to %s FAILED!"),
+		    WEBSERVER);
+      if (expedia)
+	{
+	  if (expedia_de)
+	    g_snprintf (str, sizeof (str), _("Connecting to %s FAILED!"),
+			WEBSERVER4);
+	  else
+	    g_snprintf (str, sizeof (str), _("Connecting to %s FAILED!"),
+			WEBSERVER2);
+	}
+      if (topozone)
+	g_snprintf (str, sizeof (str), _("Connecting to %s FAILED!"),
+		    WEBSERVER3);
+      gtk_statusbar_pop (GTK_STATUSBAR (status), statusid);
+      gtk_statusbar_push (GTK_STATUSBAR (status), statusid, str);
+      gtk_widget_destroy (downloadwindow);
+      gtk_timeout_add (3000, (GtkFunction) dlstatusaway_cb, widget);
+      return (FALSE);
+    }
+  memcpy (&server.sin_addr, server_data->h_addr, server_data->h_length);
+  server.sin_port = htons (proxyport);
+/*  We initiate the connection  */
+  if (connect (dlsock, (struct sockaddr *) &server, sizeof server) < 0)
+    {
+      perror (_("unable to connect to Website"));
+      if (!expedia && !topozone)
+	g_snprintf (str, sizeof (str), _("Connecting to %s FAILED!"),
+		    WEBSERVER);
+      if (expedia)
+	{
+	  if (expedia_de)
+	    g_snprintf (str, sizeof (str), _("Connecting to %s FAILED!"),
+			WEBSERVER4);
+	  else
+	    g_snprintf (str, sizeof (str), _("Connecting to %s FAILED!"),
+			WEBSERVER2);
+	}
+      if (topozone)
+	g_snprintf (str, sizeof (str), _("Connecting to %s FAILED!"),
+		    WEBSERVER3);
+      gtk_statusbar_pop (GTK_STATUSBAR (status), statusid);
+      gtk_statusbar_push (GTK_STATUSBAR (status), statusid, str);
+      gtk_widget_destroy (downloadwindow);
+      gtk_timeout_add (3000, (GtkFunction) dlstatusaway_cb, widget);
+      return (FALSE);
+    }
+
+  write (dlsock, writebuff, strlen (writebuff));
+  dlbuff = g_new0 (gchar, 8192);
+  dlpstart = NULL;
+  dldiff = dlcount = 0;
+  if (!expedia && !topozone)
+    g_snprintf (str, sizeof (str), _("Now connected to %s"), WEBSERVER);
+  if (expedia)
+    {
+      if (expedia_de)
+	g_snprintf (str, sizeof (str), _("Now connected to %s"), WEBSERVER4);
+      else
+	g_snprintf (str, sizeof (str), _("Now connected to %s"), WEBSERVER2);
+    }
+  if (topozone)
+    g_snprintf (str, sizeof (str), _("Now connected to %s"), WEBSERVER3);
+  gtk_statusbar_pop (GTK_STATUSBAR (status), statusid);
+  gtk_statusbar_push (GTK_STATUSBAR (status), statusid, str);
+  gtk_timeout_add (100, (GtkFunction) downloadslave_cb, widget);
+  return TRUE;
+}
+
+gint
+downloadslave_cb (GtkWidget * widget, guint datum)
+{
+  gchar tmpbuff[9000], str[100], *p;
+  gint e, fd;
+  gchar nn[] = "\r\n\r\n";
+  gdouble f;
+  G_CONST_RETURN gchar *s;
+
+  if (!downloadwindowactive)
+    return FALSE;
+
+
+  FD_ZERO (&readmask);
+  FD_SET (dlsock, &readmask);
+  timeout.tv_sec = 0;
+  timeout.tv_usec = 100000;
+  if (select (FD_SETSIZE, &readmask, NULL, NULL, &timeout) < 0)
+    {
+      perror ("select() call");
+    }
+
+  if (FD_ISSET (dlsock, &readmask))
+    {
+
+      memset (tmpbuff, 0, 8192);
+      if ((e = read (dlsock, tmpbuff, 8000)) < 0)
+	perror (_("read from Webserver"));
+      if (debug)
+	g_print ("\nLoaded %d Bytes\n", e);
+      if (e > 0)
+	{
+/*  in dlbuff we have all download data */
+	  memcpy ((dlbuff + dlcount), tmpbuff, e);
+/*  in dlcount we have the number of download bytes */
+	  dlcount += e;
+/* now we try to get the filelength and begin of the gif image data */
+	  if (dlpstart == NULL)
+	    {
+/*  CONTENT-LENGTH string should hopefully be in the first 4kB */
+	      memcpy (tmpbuff, dlbuff, 4096);
+/*  We make of this a null terminated string */
+	      tmpbuff[4096] = 0;
+	      g_strup (tmpbuff);
+	      p = strstr (tmpbuff, "CONTENT-LENGTH:");
+	      if (p != NULL)
+		{
+		  sscanf (p, "%s %d", str, &downloadfilelen);
+/*  now we look for 2 cr/lf which is the end of the header */
+		  dlpstart = strstr (tmpbuff, nn);
+		  dldiff = dlpstart - tmpbuff + 4;
+/* 		  g_print ("\ncontent-length: %d", downloadfilelen); */
+		}
+	      else if (dlcount > 1000)
+		{
+/*  Seems there is no CONTENT-LENGTH field in expedia.com*/
+		  dlpstart = strstr (tmpbuff, nn);
+		  dldiff = dlpstart - tmpbuff + 4;
+		  downloadfilelen = 200000;
+/* 		  g_print ("\ncontent-length: %d", downloadfilelen); */
+		}
+	    }
+/*  Now we have the length and begin of the gif image data */
+	  if ((downloadfilelen != 0) && (dlpstart != NULL))
+	    {
+	      dlbuff = g_renew (gchar, dlbuff, dlcount + 8192);
+	      f = (dlcount - dldiff) / (gdouble) downloadfilelen;
+	      if (f > 1.0)
+		f = 1.0;
+	      gtk_progress_bar_update (GTK_PROGRESS_BAR (myprogress), f);
+	      g_snprintf (str, sizeof (str), _("Downloaded %d kBytes"),
+			  (dlcount - dldiff) / 1024);
+	      gtk_statusbar_pop (GTK_STATUSBAR (status), statusid);
+	      gtk_statusbar_push (GTK_STATUSBAR (status), statusid, str);
+	      while (gtk_events_pending ())
+		gtk_main_iteration ();
+	    }
+
+	}
+      if ((e == 0) || ((downloadfilelen + dldiff) == dlcount))
+	{
+	  if (topozone && dlcount < 10000)
+	    downloadfilelen = 0;	//Data Unavailable
+	  if (downloadfilelen == 0)
+	    g_snprintf (str, sizeof (str), _("Download FAILED!"));
+	  else
+	    g_snprintf (str, sizeof (str), _("Download finished, got %dkB"),
+			dlcount / 1024);
+	  gtk_statusbar_pop (GTK_STATUSBAR (status), statusid);
+	  gtk_statusbar_push (GTK_STATUSBAR (status), statusid, str);
+	  close (dlsock);
+	  if (downloadfilelen != 0)
+	    {
+	      s = gtk_entry_get_text (GTK_ENTRY (dltext4));
+	      if (mapdir[strlen (mapdir) - 1] != '/')
+		g_strlcat (mapdir, "/", sizeof (mapdir));
+
+	      g_strlcpy (downloadfilename, mapdir, sizeof (downloadfilename));
+
+	      g_strlcat (downloadfilename, s, sizeof (downloadfilename));
+	      fd = open (downloadfilename, O_RDWR | O_TRUNC | O_CREAT, 0644);
+	      if (fd < 1)
+		{
+		  perror (downloadfilename);
+		  gtk_timeout_add (3000, (GtkFunction) dlstatusaway_cb,
+				   widget);
+
+		  return FALSE;
+		}
+	      write (fd, dlbuff + dldiff, dlcount - dldiff);
+	      close (fd);
+/* 	      g_free (maps); */
+	      loadmapconfig ();
+	      maps = g_renew (mapsstruct, maps, (nrmaps + 2));
+	      g_strlcpy ((maps + nrmaps)->filename,
+			 g_basename (downloadfilename), 200);
+	      (maps + nrmaps)->lat = g_strtod (newmaplat, NULL);
+	      (maps + nrmaps)->longitude = g_strtod (newmaplongi, NULL);
+	      (maps + nrmaps)->scale = strtol (newmapsc, NULL, 0);
+	      nrmaps++;
+	      havenasa = -1;
+	      savemapconfig ();
+	    }
+	  downloadwindowactive = FALSE;
+	  gtk_widget_set_sensitive (downloadbt, TRUE);
+	  gtk_widget_destroy (downloadwindow);
+	  gtk_timeout_add (3000, (GtkFunction) dlstatusaway_cb, widget);
+
+	  return FALSE;
+	}
+    }
+  else
+    {
+
+      return TRUE;
+    }
+
+
+  return TRUE;
+}
+
+gint
+import2_cb (GtkWidget * widget, gpointer datum)
+{
+  G_CONST_RETURN gchar *s;
+
+  s = gtk_entry_get_text (GTK_ENTRY (dltext1));
+  checkinput ((gchar *) s);
+  imports[0].lat = g_strtod (s, NULL);
+  s = gtk_entry_get_text (GTK_ENTRY (dltext2));
+  checkinput ((gchar *) s);
+  imports[0].lon = g_strtod (s, NULL);
+  s = gtk_entry_get_text (GTK_ENTRY (dltext5));
+  imports[0].x = strtol (s, NULL, 0);
+  s = gtk_entry_get_text (GTK_ENTRY (dltext6));
+  imports[0].y = strtol (s, NULL, 0);
+
+  gtk_widget_destroy (widget);
+  import1_cb (NULL, 2);
+
+  return TRUE;
+}
+
+gint
+import3_cb (GtkWidget * widget, gpointer datum)
+{
+  G_CONST_RETURN gchar *s;
+  gdouble tx, ty, scale, latmax, latmin, latcenter, longmax, longmin;
+  gdouble longcenter;
+  gdouble px, py;
+
+  s = gtk_entry_get_text (GTK_ENTRY (dltext1));
+  checkinput ((gchar *) s);
+  imports[1].lat = g_strtod (s, NULL);
+  s = gtk_entry_get_text (GTK_ENTRY (dltext2));
+  checkinput ((gchar *) s);
+  imports[1].lon = g_strtod (s, NULL);
+  s = gtk_entry_get_text (GTK_ENTRY (dltext5));
+  imports[1].x = strtol (s, NULL, 0);
+  s = gtk_entry_get_text (GTK_ENTRY (dltext6));
+  imports[1].y = strtol (s, NULL, 0);
+  gtk_widget_destroy (widget);
+
+/*  Calc coordinates and scale */
+
+  tx =
+    (2 * R * M_PI / 360) * cos (M_PI * imports[0].lat / 180.0) *
+    (imports[0].lon - imports[1].lon);
+  ty = (2 * R * M_PI / 360) * (imports[0].lat - imports[1].lat);
+/*  ty is meter */
+  px = abs (imports[0].x - imports[1].x);
+  py = abs (imports[0].y - imports[1].y);
+  if (px > py)
+    scale = fabs (tx) * PIXELFACT / px;
+  else
+    scale = fabs (ty) * PIXELFACT / py;
+  px = imports[0].x - imports[1].x;
+  py = imports[0].y - imports[1].y;
+  py = -py;
+
+  latmin =
+    imports[0].lat - (imports[0].lat - imports[1].lat) * (1024 -
+							  imports[0].y) / py;
+  latmax = latmin + (imports[0].lat - imports[1].lat) * 1024.0 / py;
+  latcenter = (latmax + latmin) / 2.0;
+
+  longmin =
+    imports[0].lon - imports[0].x * (imports[0].lon - imports[1].lon) / px;
+
+  longmax = longmin + 1280.0 * (imports[0].lon - imports[1].lon) / px;
+  longcenter = (longmax + longmin) / 2.0;
+
+  if (debug)
+    g_print
+      ("\nImport: scale: %g, latmitte: %g, latmin: %g, "
+       "latmax: %g\n longmin: %g, longmax: %g, longmitte: %g\n",
+       scale, latcenter, latmin, latmax, longmin, longmax, longcenter);
+
+  if (strlen (importfilename) > 4)
+    {
+      maps = g_renew (mapsstruct, maps, (nrmaps + 2));
+      g_strlcpy ((maps + nrmaps)->filename, importfilename, 200);
+      (maps + nrmaps)->lat = latcenter;
+      (maps + nrmaps)->longitude = longcenter;
+      (maps + nrmaps)->scale = scale;
+      nrmaps++;
+      havenasa = -1;
+
+      savemapconfig ();
+    }
+
+  importactive = FALSE;
+  g_strlcpy (oldfilename, "XXXAFHSGFAERGXXXXXX", sizeof (oldfilename));
+
+  return TRUE;
+}
+
+
+gint
+nimmfile (GtkWidget * widget, gpointer datum)
+{
+  G_CONST_RETURN gchar *buf;
+
+  buf = gtk_file_selection_get_filename (datum);
+  gtk_entry_set_text (GTK_ENTRY (dltext7), g_basename (buf));
+  g_strlcpy (importfilename, g_basename (buf), sizeof (importfilename));
+
+  gtk_widget_destroy (datum);
+  loadmap ((char *) g_basename (buf));
+  return (TRUE);
+}
+
+gint
+importfb_cb (GtkWidget * widget, guint datum)
+{
+  GtkWidget *fdialog;
+  gchar buf[1000];
+  fdialog = gtk_file_selection_new (_("Select a map file"));
+  gtk_window_set_modal (GTK_WINDOW (fdialog), TRUE);
+  gtk_window_set_transient_for (GTK_WINDOW (fdialog),
+				GTK_WINDOW (mainwindow));
+
+  gtk_signal_connect (GTK_OBJECT
+		      (GTK_FILE_SELECTION (fdialog)->ok_button),
+		      "clicked", GTK_SIGNAL_FUNC (nimmfile),
+		      GTK_OBJECT (fdialog));
+  gtk_signal_connect_object (GTK_OBJECT
+			     (GTK_FILE_SELECTION (fdialog)->
+			      cancel_button), "clicked",
+			     GTK_SIGNAL_FUNC (gtk_widget_destroy),
+			     GTK_OBJECT (fdialog));
+
+
+  g_strlcpy (buf, homedir, sizeof (buf));
+
+  gtk_file_selection_complete (GTK_FILE_SELECTION (fdialog), buf);
+  gtk_widget_show (fdialog);
+  xoff = 0;
+  yoff = 0;
+  zoom = 1;
+  iszoomed = FALSE;
+
+  return TRUE;
+}
+
+
+gint
+importshift_cb (GtkWidget * widget, guint datum)
+{
+  switch (datum)
+    {
+    case 1:
+      yoff -= SCREEN_Y_2;
+      break;
+    case 4:
+      yoff += SCREEN_Y_2;
+      break;
+    case 2:
+      xoff -= SCREEN_X_2;
+      break;
+    case 3:
+      xoff += SCREEN_X_2;
+      break;
+    }
+  iszoomed = FALSE;
+  expose_cb (NULL, 0);
+  expose_mini_cb (NULL, 0);
+
+  return TRUE;
+}
+
+
+gint
+import1_cb (GtkWidget * widget, guint datum)
+{
+  GtkWidget *mainbox, *window;
+  GtkWidget *knopf2, *knopf, *knopf3, *knopf4, *knopf6;
+  GtkWidget *table, *knopf9, *knopf10, *knopf11, *s1, *s2, *s3, *s4;
+  GtkWidget *s5, *s6;
+  gchar buff[1300];
+  GtkWidget *text;
+  GtkWidget *hbox;
+  gchar *thetext1 = _("How to calibrate your own maps? "
+		      "First, the map file\nmust be copied into the");
+  gchar *thetext1a = _("\ndirectory as .gif, .jpg or .png file "
+		       "and must have\nthe size 1280x1024. The file names must be\n"
+		       "map_* for street maps or top_* for topographical maps!\n"
+		       "Load the file, select coordinates "
+		       "from waypoint list or\ntype them in. "
+		       "Then click on the accept button.");
+  gchar *thetext2 =
+    _("Now do the same for your second point and click on the\n"
+      "finish button. The map can be used now.");
+
+  window = gtk_dialog_new ();
+  if (datum == 1)
+    gtk_window_set_title (GTK_WINDOW (window), _("Import Assistant. Step 1"));
+  else
+    gtk_window_set_title (GTK_WINDOW (window), _("Import Assistant. Step 2"));
+
+  gtk_container_set_border_width (GTK_CONTAINER (window), 5);
+  mainbox = gtk_vbox_new (TRUE, 2);
+  if (datum == 1)
+    knopf = gtk_button_new_with_label (_("Accept first point"));
+  else
+    knopf = gtk_button_new_with_label (_("Finish"));
+  if (datum == 1)
+    gtk_signal_connect_object (GTK_OBJECT (knopf), "clicked",
+			       GTK_SIGNAL_FUNC (import2_cb),
+			       GTK_OBJECT (window));
+  else
+    {
+      gtk_signal_connect_object (GTK_OBJECT (knopf), "clicked",
+				 GTK_SIGNAL_FUNC (import3_cb),
+				 GTK_OBJECT (window));
+    }
+
+  knopf2 = gtk_button_new_from_stock (GTK_STOCK_CANCEL);
+  gtk_signal_connect_object (GTK_OBJECT (knopf2), "clicked",
+			     GTK_SIGNAL_FUNC
+			     (importaway_cb), GTK_OBJECT (window));
+  gtk_signal_connect_object (GTK_OBJECT (window),
+			     "delete_event",
+			     GTK_SIGNAL_FUNC
+			     (importaway_cb), GTK_OBJECT (window));
+
+  s1 = gtk_button_new_with_label (_("Go up"));
+  gtk_signal_connect (GTK_OBJECT (s1), "clicked",
+		      GTK_SIGNAL_FUNC (importshift_cb), (gpointer) 1);
+  s2 = gtk_button_new_with_label (_("Go left"));
+  gtk_signal_connect (GTK_OBJECT (s2), "clicked",
+		      GTK_SIGNAL_FUNC (importshift_cb), (gpointer) 2);
+  s3 = gtk_button_new_with_label (_("Go right"));
+  gtk_signal_connect (GTK_OBJECT (s3), "clicked",
+		      GTK_SIGNAL_FUNC (importshift_cb), (gpointer) 3);
+  s4 = gtk_button_new_with_label (_("Go down"));
+  gtk_signal_connect (GTK_OBJECT (s4), "clicked",
+		      GTK_SIGNAL_FUNC (importshift_cb), (gpointer) 4);
+  s5 = gtk_button_new_with_label (_("Zoom in"));
+  gtk_signal_connect (GTK_OBJECT (s5), "clicked",
+		      GTK_SIGNAL_FUNC (zoom_cb), (gpointer) 1);
+  s6 = gtk_button_new_with_label (_("Zoom out"));
+  gtk_signal_connect (GTK_OBJECT (s6), "clicked",
+		      GTK_SIGNAL_FUNC (zoom_cb), (gpointer) 2);
+
+  gtk_box_pack_start (GTK_BOX
+		      (GTK_DIALOG (window)->
+		       action_area), knopf, TRUE, TRUE, 2);
+  gtk_box_pack_start (GTK_BOX
+		      (GTK_DIALOG (window)->
+		       action_area), knopf2, TRUE, TRUE, 2);
+  GTK_WIDGET_SET_FLAGS (knopf, GTK_CAN_DEFAULT);
+  GTK_WIDGET_SET_FLAGS (knopf2, GTK_CAN_DEFAULT);
+  table = gtk_table_new (6, 4, TRUE);
+  gtk_box_pack_start (GTK_BOX
+		      (GTK_DIALOG (window)->vbox), table, TRUE, TRUE, 2);
+  knopf3 = gtk_label_new (_("Latitude"));
+  gtk_table_attach_defaults (GTK_TABLE (table), knopf3, 0, 1, 0, 1);
+  knopf4 = gtk_label_new (_("Longitude"));
+  gtk_table_attach_defaults (GTK_TABLE (table), knopf4, 0, 1, 1, 2);
+  knopf9 = gtk_label_new (_("Screen X"));
+  gtk_table_attach_defaults (GTK_TABLE (table), knopf9, 2, 3, 0, 1);
+  knopf10 = gtk_label_new (_("Screen Y"));
+  gtk_table_attach_defaults (GTK_TABLE (table), knopf10, 2, 3, 1, 2);
+  knopf6 = gtk_button_new_with_label (_("Browse waypoint"));
+  gtk_signal_connect (GTK_OBJECT (knopf6), "clicked",
+		      GTK_SIGNAL_FUNC (sel_target_cb), (gpointer) 1);
+
+  gtk_table_attach_defaults (GTK_TABLE (table), knopf6, 0, 1, 2, 3);
+  dltext1 = gtk_entry_new ();
+  gtk_table_attach_defaults (GTK_TABLE (table), dltext1, 1, 2, 0, 1);
+  g_snprintf (buff, sizeof (buff), "%.5f", current_lat);
+  if (minsecmode)
+    decimaltomin (buff, 1);
+  gtk_entry_set_text (GTK_ENTRY (dltext1), buff);
+  dltext2 = gtk_entry_new ();
+  gtk_table_attach_defaults (GTK_TABLE (table), dltext2, 1, 2, 1, 2);
+  g_snprintf (buff, sizeof (buff), "%.5f", current_long);
+  if (minsecmode)
+    decimaltomin (buff, 0);
+  gtk_entry_set_text (GTK_ENTRY (dltext2), buff);
+
+  dltext5 = gtk_entry_new ();
+  gtk_table_attach_defaults (GTK_TABLE (table), dltext5, 3, 4, 0, 1);
+
+  dltext6 = gtk_entry_new ();
+  gtk_table_attach_defaults (GTK_TABLE (table), dltext6, 3, 4, 1, 2);
+
+  dltext4 = gtk_entry_new ();
+  gtk_table_attach_defaults (GTK_TABLE (table), dltext4, 1, 2, 2, 3);
+  dltext7 = gtk_entry_new ();
+  gtk_table_attach_defaults (GTK_TABLE (table), dltext7, 3, 4, 2, 3);
+
+  if (datum == 1)
+    {
+      knopf11 = gtk_button_new_with_label (_("Browse filename"));
+      gtk_signal_connect_object (GTK_OBJECT (knopf11), "clicked",
+				 GTK_SIGNAL_FUNC (importfb_cb), 0);
+      gtk_table_attach_defaults (GTK_TABLE (table), knopf11, 2, 3, 2, 3);
+    }
+  else
+    gtk_entry_set_text (GTK_ENTRY (dltext7), importfilename);
+
+
+  gtk_entry_set_editable (GTK_ENTRY (dltext7), FALSE);
+  gtk_entry_set_editable (GTK_ENTRY (dltext4), FALSE);
+  gtk_entry_set_editable (GTK_ENTRY (dltext5), FALSE);
+  gtk_entry_set_editable (GTK_ENTRY (dltext6), FALSE);
+
+  text = gtk_label_new ("");
+
+
+  if (datum == 1)
+    g_snprintf (buff, sizeof (buff),
+		"<span font_family=\"Arial\" size=\"10000\">%s <span color=\"red\"> %s</span> %s</span>",
+		thetext1, mapdir, thetext1a);
+  else
+    g_snprintf (buff, sizeof (buff),
+		"<span font_family=\"Arial\" size=\"10000\">%s</span>",
+		thetext2);
+
+  gtk_label_set_text (GTK_LABEL (text), buff);
+  gtk_label_set_use_markup (GTK_LABEL (text), TRUE);
+
+  hbox = gtk_hbox_new (FALSE, 3);
+  gtk_box_pack_start (GTK_BOX (hbox), text, TRUE, TRUE, 0);
+/*   gtk_box_pack_start (GTK_BOX (hbox), scrollbar, FALSE, FALSE, 0); */
+
+  gtk_table_attach_defaults (GTK_TABLE (table), hbox, 2, 4, 3, 6);
+  gtk_table_attach_defaults (GTK_TABLE (table), s1, 0, 1, 3, 4);
+  gtk_table_attach_defaults (GTK_TABLE (table), s5, 1, 2, 3, 4);
+  gtk_table_attach_defaults (GTK_TABLE (table), s2, 0, 1, 4, 5);
+  gtk_table_attach_defaults (GTK_TABLE (table), s3, 1, 2, 4, 5);
+  gtk_table_attach_defaults (GTK_TABLE (table), s4, 0, 1, 5, 6);
+  gtk_table_attach_defaults (GTK_TABLE (table), s6, 1, 2, 5, 6);
+  gtk_table_set_row_spacings (GTK_TABLE (table), 3);
+  gtk_table_set_col_spacings (GTK_TABLE (table), 3);
+/*    gtk_label_set_justify (GTK_LABEL (knopf6), GTK_JUSTIFY_RIGHT); */
+/*    gtk_label_set_justify (GTK_LABEL (knopf3), GTK_JUSTIFY_RIGHT); */
+/*    gtk_label_set_justify (GTK_LABEL (knopf4), GTK_JUSTIFY_RIGHT); */
+/*    gtk_label_set_justify (GTK_LABEL (knopf6), GTK_JUSTIFY_RIGHT); */
+  gtk_window_set_default (GTK_WINDOW (window), knopf);
+  gtk_window_set_transient_for (GTK_WINDOW (window), GTK_WINDOW (mainwindow));
+  gtk_window_set_position (GTK_WINDOW (window), GTK_WIN_POS_CENTER);
+  gtk_widget_show_all (window);
+  importactive = TRUE;
+
+  return TRUE;
+}
+
+gint
+setup2_cb (GtkWidget * widget, guint datum)
+{
+  gtk_widget_destroy (GTK_WIDGET (datum));
+  return TRUE;
+}
+
+gint
+wpfileselect_cb (GtkWidget * widget, guint datum)
+{
+  if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (setupfn[datum])))
+    if ((strcmp (activewpfile, (names + datum)->n)))
+      {
+	g_strlcpy (activewpfile, (names + datum)->n, sizeof (activewpfile));
+	if (debug)
+	  g_print ("\nactivewpfile: %s", activewpfile);
+	loadwaypoints ();
+	iszoomed = FALSE;
+      }
+  needtosave = TRUE;
+  return TRUE;
+}
+
+
+gint
+setup_cb (GtkWidget * widget, guint datum)
+{
+  GtkWidget *notebook, *vbox, *cancel;
+  GtkWidget *window = NULL;
+  gint i;
+
+  gtk_widget_set_sensitive (setupbt, FALSE);
+
+  mainsetup ();
+  infos ();
+  trip ();
+
+  window = gtk_dialog_new ();
+  gtk_window_set_title (GTK_WINDOW (window), _("GpsDrive Control"));
+  gtk_window_set_position (GTK_WINDOW (window), GTK_WIN_POS_CENTER);
+  gtk_window_set_transient_for (GTK_WINDOW (window), GTK_WINDOW (mainwindow));
+
+  cancel = gtk_button_new_from_stock (GTK_STOCK_CLOSE);
+  GTK_WIDGET_SET_FLAGS (cancel, GTK_CAN_DEFAULT);
+  gtk_window_set_default (GTK_WINDOW (window), cancel);
+/*   GTK_WIDGET_SET_FLAGS (cancel, GTK_HAS_FOCUS); */
+
+
+  gtk_signal_connect ((GTK_OBJECT (window)), "delete_event",
+		      GTK_SIGNAL_FUNC (removesetutc), 0);
+  gtk_signal_connect_object ((GTK_OBJECT (window)), "delete_event",
+			     GTK_SIGNAL_FUNC (gtk_widget_destroy),
+			     GTK_OBJECT (window));
+  gtk_signal_connect ((GTK_OBJECT (window)), "destroy",
+		      GTK_SIGNAL_FUNC (removesetutc), 0);
+  gtk_signal_connect_object ((GTK_OBJECT (window)), "destroy",
+			     GTK_SIGNAL_FUNC (gtk_widget_destroy),
+			     GTK_OBJECT (window));
+
+
+
+  gtk_signal_connect ((GTK_OBJECT (cancel)), "clicked",
+		      GTK_SIGNAL_FUNC (removesetutc), 0);
+
+  gtk_signal_connect_object ((GTK_OBJECT (cancel)), "clicked",
+			     GTK_SIGNAL_FUNC (gtk_widget_destroy),
+			     GTK_OBJECT (window));
+
+  gtk_container_border_width (GTK_CONTAINER (window), 2 * PADDING);
+  vbox = gtk_vbox_new (FALSE, 2 * PADDING);
+/*     table = gtk_table_new(2,1,TRUE); */
+/*   gtk_container_add (GTK_CONTAINER (window), vbox); */
+  gtk_box_pack_start (GTK_BOX
+		      (GTK_DIALOG (window)->vbox), vbox, TRUE, TRUE, 2);
+
+  /* Create a new notebook, place the position of the tabs */
+  settingsnotebook = notebook = gtk_notebook_new ();
+  gtk_notebook_set_scrollable (GTK_NOTEBOOK (notebook), TRUE);
+  gtk_notebook_set_tab_pos (GTK_NOTEBOOK (notebook), GTK_POS_TOP);
+  gtk_notebook_set_show_border (GTK_NOTEBOOK (notebook), TRUE);
+  gtk_notebook_popup_enable (GTK_NOTEBOOK (notebook));
+/*     gtk_table_attach_defaults(GTK_TABLE(table), notebook, 0,1,0,1); */
+  gtk_box_pack_start (GTK_BOX (vbox), notebook, TRUE, TRUE, 2 * PADDING);
+/*   gtk_box_pack_start (GTK_BOX (vbox), cancel, FALSE, FALSE, 2 * PADDING); */
+  gtk_box_pack_start (GTK_BOX
+		      (GTK_DIALOG (window)->action_area),
+		      cancel, TRUE, TRUE, 2);
+
+  gtk_widget_show (notebook);
+/*   g_print("\nmod_setupcounter: %d",mod_setupcounter); */
+//KCFX
+  for (i = 0; i <= mod_setupcounter; i++)
+    {
+      if (i > 4)
+	setupfunction[i] ();
+
+      gtk_widget_show_all (setupentry[i]);
+      gtk_notebook_append_page (GTK_NOTEBOOK (notebook), setupentry[i],
+				setupentrylabel[i]);
+    }
+  gtk_notebook_set_page (GTK_NOTEBOOK (notebook), lastnotebook);
+  gtk_widget_show_all (window);
+
+  return TRUE;
+}
+
+
+
+/*  switching between kilometers and miles */
+gint
+miles_cb (GtkWidget * widget, guint datum)
+{
+  gchar s1[80];
+/*      1=miles, 2=metric, 3=nautic */
+  switch (datum)
+    {
+    case 1:
+      milesconv = KM2MILES;
+      milesflag = TRUE;
+      nauticflag = FALSE;
+      metricflag = FALSE;
+      break;
+    case 2:
+      milesconv = 1.0;
+      milesflag = FALSE;
+      nauticflag = FALSE;
+      metricflag = TRUE;
+      break;
+    case 3:
+      milesconv = KM2NAUTIC;
+      milesflag = FALSE;
+      nauticflag = TRUE;
+      metricflag = FALSE;
+      break;
+
+    }
+  needtosave = TRUE;
+  if (pdamode)
+    {
+      if (milesflag)
+	g_snprintf (s1, sizeof (s1), "[%s]", _("mi/h"));
+      else if (nauticflag)
+	g_snprintf (s1, sizeof (s1), "[%s]", _("knots"));
+      else
+	g_snprintf (s1, sizeof (s1), "[%s]", _("km/h"));
+    }
+  else
+    {
+      if (milesflag)
+	g_snprintf (s1, sizeof (s1), "%s [%s]", _("Speed"), _("mi/h"));
+      else if (nauticflag)
+	g_snprintf (s1, sizeof (s1), "%s [%s]", _("Speed"), _("knots"));
+      else
+	g_snprintf (s1, sizeof (s1), "%s [%s]", _("Speed"), _("km/h"));
+    }
+
+  gtk_frame_set_label (GTK_FRAME (frame_speed), s1);
+  return TRUE;
+}
+
+/*  switching nightmode */
+gint
+night_cb (GtkWidget * widget, guint datum)
+{
+
+  switch (datum)
+    {
+    case 0:
+      nightmode = 0;
+      break;
+    case 1:
+      nightmode = 1;
+      break;
+    case 2:
+      nightmode = 2;
+      break;
+
+    }
+
+  needtosave = TRUE;
+  return TRUE;
+}
+
+
+
+gint
+defaultserver_cb (GtkWidget * widget, guint datum)
+{
+
+  expedia_de = FALSE;
+  switch (datum)
+    {
+    case 1:
+      expedia_de = TRUE;
+      defaultserver = 0;
+      break;
+    case 2:
+      defaultserver = 1;
+      break;
+    }
+  needtosave = TRUE;
+  return TRUE;
+}
+
+
+/*  switching shadow on/off */
+gint
+shadow_cb (GtkWidget * widget, guint datum)
+{
+  shadow = !shadow;
+  needtosave = TRUE;
+  return TRUE;
+}
+
+/*  switching shadow on/off */
+gint
+etch_cb (GtkWidget * widget, guint datum)
+{
+  int stype;
+  etch = !etch;
+  if (etch)
+    stype = GTK_SHADOW_IN;
+  else
+    stype = GTK_SHADOW_ETCHED_OUT;
+  gtk_frame_set_shadow_type (GTK_FRAME (frame_bearing), stype);
+  gtk_frame_set_shadow_type (GTK_FRAME (frame_target), stype);
+  gtk_frame_set_shadow_type (GTK_FRAME (frame_speed), stype);
+  gtk_frame_set_shadow_type (GTK_FRAME (frame_altitude), stype);
+  gtk_frame_set_shadow_type (GTK_FRAME (frame_wp), stype);
+  gtk_frame_set_shadow_type (GTK_FRAME (frame_sats), stype);
+  gtk_frame_set_shadow_type (GTK_FRAME (lf1), stype);
+  gtk_frame_set_shadow_type (GTK_FRAME (lf2), stype);
+  gtk_frame_set_shadow_type (GTK_FRAME (lf3), stype);
+  gtk_frame_set_shadow_type (GTK_FRAME (lf4), stype);
+  gtk_frame_set_shadow_type (GTK_FRAME (lf5), stype);
+  gtk_frame_set_shadow_type (GTK_FRAME (lf6), stype);
+  gtk_frame_set_shadow_type (GTK_FRAME (lf7), stype);
+  gtk_frame_set_shadow_type (GTK_FRAME (lf8), stype);
+  gtk_frame_set_shadow_type (GTK_FRAME (frame_toogles), stype);
+  gtk_frame_set_shadow_type (GTK_FRAME (frame_maptype), stype);
+
+  if (havebattery)
+    gtk_frame_set_shadow_type (GTK_FRAME (fbat), stype);
+  if (havetemperature)
+    gtk_frame_set_shadow_type (GTK_FRAME (ftem), stype);
+
+  needtosave = TRUE;
+  return TRUE;
+}
+
+/*  switching slow cpu on/off */
+gint
+slowcpu_cb (GtkWidget * widget, guint datum)
+{
+  G_CONST_RETURN gchar *sc;
+  gchar dummy[100];
+  sc = gtk_entry_get_text (GTK_ENTRY (GTK_COMBO (slowcpubt)->entry));
+  sscanf (sc, "%d%s", &cpuload, dummy);
+  if (cpuload == 0)
+    cpuload = 40;
+
+
+  needtosave = TRUE;
+  return TRUE;
+}
+
+/*  switching decimal or degree, minutes, seconds mode */
+gint
+minsec_cb (GtkWidget * widget, guint datum)
+{
+  minsecmode = !minsecmode;
+  needtosave = TRUE;
+  return TRUE;
+}
+
+/*  switching sat level/sat position display */
+gint
+satpos_cb (GtkWidget * widget, guint datum)
+{
+  satposmode = !satposmode;
+  needtosave = TRUE;
+  expose_sats_cb (NULL, 0);
+  return TRUE;
+}
+
+/*  switching simfollow on/off */
+gint
+simfollow_cb (GtkWidget * widget, guint datum)
+{
+  simfollow = !simfollow;
+  needtosave = TRUE;
+  return TRUE;
+}
+
+/*  switching testgarmin on/off */
+gint
+testgarmin_cb (GtkWidget * widget, guint datum)
+{
+  testgarmin = !testgarmin;
+  needtosave = TRUE;
+  return TRUE;
+}
+
+/*  should I use DGPS-IP? */
+gint
+usedgps_cb (GtkWidget * widget, guint datum)
+{
+  usedgps = !usedgps;
+  needtosave = TRUE;
+  return TRUE;
+}
+
+gint
+earthmate_cb (GtkWidget * widget, guint datum)
+{
+  earthmate = !earthmate;
+  needtosave = TRUE;
+  return TRUE;
+}
+
+
+gint
+serialdev_cb (GtkWidget * widget, guint datum)
+{
+  G_CONST_RETURN gchar *s;
+
+  s = g_strstrip ((char *) gtk_entry_get_text (GTK_ENTRY (serialbt)));
+  g_strlcpy (serialdev, s, sizeof (serialdev));
+  needtosave = TRUE;
+  return TRUE;
+}
+
+
+gint
+mapdir_cb (GtkWidget * widget, guint datum)
+{
+  G_CONST_RETURN gchar *s;
+
+  s = g_strstrip ((char *) gtk_entry_get_text (GTK_ENTRY (mapdirbt)));
+  g_strlcpy (mapdir, s, sizeof (mapdir));
+  needtosave = TRUE;
+  needreloadmapconfig = TRUE;
+  gtk_timeout_add (2000, (GtkFunction) loadmapconfig, 0);
+  return TRUE;
+}
+
+
+gint
+maptoggle_cb (GtkWidget * widget, guint datum)
+{
+  displaymap_map = !displaymap_map;
+  if (displaymap_map)
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (maptogglebt), TRUE);
+  else
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (maptogglebt), FALSE);
+  needtosave = TRUE;
+  return TRUE;
+}
+
+gint
+dotripmeter (GtkWidget * widget, guint datum)
+{
+  gdouble d;
+
+  d = calcdist (trip_long, trip_lat);
+  trip_long = current_long;
+  trip_lat = current_lat;
+  if (!((d >= 0.0) && (d < (1000.0 * TRIPMETERTIMEOUT / 3600.0))))
+    {
+      fprintf (stderr,
+	       _("\ndistance jump is more then 1000km/h speed, ignoring\n"));
+      return TRUE;
+    }
+/* we want always have metric system stored */
+  d /= milesconv;
+  tripodometer += d;
+  if (groundspeed * milesconv > tripmaxspeed)
+    tripmaxspeed = groundspeed / milesconv;
+  tripavspeedcount++;
+  tripavspeed += groundspeed / milesconv;
+  return TRUE;
+}
+
+gint
+bestmap_cb (GtkWidget * widget, guint datum)
+{
+  if (datum == 1)
+    scaleprefered = !scaleprefered;
+  if (!scaleprefered)
+    {
+      gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (bestmapbt), TRUE);
+      gtk_widget_set_sensitive (scalerrbt, FALSE);
+      gtk_widget_set_sensitive (scalerlbt, FALSE);
+      if (scaler)
+	gtk_widget_set_sensitive (scaler, FALSE);
+    }
+  else
+    {
+      gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (bestmapbt), FALSE);
+      gtk_widget_set_sensitive (scalerrbt, TRUE);
+      gtk_widget_set_sensitive (scalerlbt, TRUE);
+      if (scaler)
+	gtk_widget_set_sensitive (scaler, TRUE);
+    }
+  needtosave = TRUE;
+  return TRUE;
+}
+
+gint
+savetrack_cb (GtkWidget * widget, guint datum)
+{
+  savetrack = !savetrack;
+  if (savetrack)
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (savetrackbt), TRUE);
+  else
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (savetrackbt), FALSE);
+  needtosave = TRUE;
+  return TRUE;
+}
+
+gint
+topotoggle_cb (GtkWidget * widget, guint datum)
+{
+  displaymap_top = !displaymap_top;
+  if (displaymap_top)
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (topotogglebt), TRUE);
+  else
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (topotogglebt), FALSE);
+  needtosave = TRUE;
+  return TRUE;
+}
+
+
+gint
+mute_cb (GtkWidget * widget, guint datum)
+{
+  muteflag = !muteflag;
+  if (muteflag)
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (mutebt), TRUE);
+  else
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (mutebt), FALSE);
+  needtosave = TRUE;
+  return TRUE;
+}
+
+gint
+sql_cb (GtkWidget * widget, guint datum)
+{
+  sqlflag = !sqlflag;
+  if (sqlflag)
+    {
+      gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (sqlbt), TRUE);
+      getsqltypelist ();
+      getsqldata ();
+    }
+  else
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (sqlbt), FALSE);
+  needtosave = TRUE;
+  loadwaypoints ();
+  return TRUE;
+}
+
+gint
+track_cb (GtkWidget * widget, guint datum)
+{
+  trackflag = !trackflag;
+  if (trackflag)
+    {
+      gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (trackbt), TRUE);
+      rebuildtracklist ();
+    }
+  else
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (trackbt), FALSE);
+  needtosave = TRUE;
+  return TRUE;
+}
+
+gint
+wp_cb (GtkWidget * widget, guint datum)
+{
+  wpflag = !wpflag;
+  if (wpflag)
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (wpbt), TRUE);
+  else
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (wpbt), FALSE);
+  needtosave = TRUE;
+  return TRUE;
+}
+
+gint
+pos_cb (GtkWidget * widget, guint datum)
+{
+  posmode = !posmode;
+  if (posmode)
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (posbt), TRUE);
+  else
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (posbt), FALSE);
+  posmode_x = current_long;
+  posmode_y = current_lat;
+
+  return TRUE;
+}
+
+/*  if a waypoint is selected set the target_* variables */
+gint
+setwp_cb (GtkWidget * widget, guint datum)
+{
+  gchar b[100], str[200], buf[1000], buf2[1000];
+  gchar *p, *tn;
+  p = b;
+
+  deleteline = datum;
+  if (dontsetwp)
+    return TRUE;
+
+  gtk_clist_get_text (GTK_CLIST (mylist), datum, 0, &p);
+  if (createroute)
+    {
+/*        g_print ("\nroute: %s", p); */
+      thisrouteline = atol (p) - 1;
+      insertroutepoints ();
+      return TRUE;
+    }
+  thisline = atol (p);
+/*    g_print ("%d\n", thisline); */
+  gtk_clist_get_text (GTK_CLIST (mylist), datum, 1, &p);
+  g_strlcpy (targetname, p, sizeof (targetname));
+
+
+  g_snprintf (str, sizeof (str), "%s: %s", _("To"), targetname);
+  tn = g_strdelimit (str, "_", ' ');
+  gtk_frame_set_label (GTK_FRAME (destframe), tn);
+  gtk_clist_get_text (GTK_CLIST (mylist), datum, 2, &p);
+  checkinput (p);
+  target_lat = atof (p);
+  gtk_clist_get_text (GTK_CLIST (mylist), datum, 3, &p);
+  checkinput (p);
+  target_long = atof (p);
+/*    gtk_timeout_add (5000, (GtkFunction) sel_targetweg_cb, widget); */
+  g_timer_stop (disttimer);
+  g_timer_start (disttimer);
+  olddist = dist;
+/*   posmode = FALSE; */
+  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (posbt), FALSE);
+
+  tn = g_strdelimit (targetname, "_", ' ');
+  g_strlcpy (buf2, "", sizeof (buf2));
+  if (tn[0] == '*')
+    {
+      g_strlcpy (buf2, "das mobile Ziel ", sizeof (buf2));
+      g_strlcat (buf2, (tn + 1), sizeof (buf2));
+    }
+  else
+    g_strlcat (buf2, tn, sizeof (buf2));
+
+  switch (voicelang)
+    {
+    case english:
+      g_snprintf (buf, sizeof (buf), "New target is %s", buf2);
+      break;
+    case spanish:
+      g_snprintf (buf, sizeof (buf), "Destinación definida: %s", buf2);
+      break;
+    case german:
+      g_snprintf (buf, sizeof (buf), "Neues Ziel ist %s", buf2);
+    }
+  speech_out_speek (buf);
+  saytarget = TRUE;
+  routenearest = 9999999;
+
+  return TRUE;
+}
+
+gint
+accepttext (GtkWidget * widget, gpointer data)
+{
+  GtkTextIter start, end;
+  gchar *p;
+  GtkWidget *wi;
+
+  gtk_text_buffer_get_bounds (getmessagebuffer, &start, &end);
+
+  gtk_text_buffer_apply_tag_by_name (getmessagebuffer, "word_wrap", &start,
+				     &end);
+
+  p = gtk_text_buffer_get_text (getmessagebuffer, &start, &end, FALSE);
+
+  strncpy (messagesendtext, p, 300);
+  messagesendtext[301] = 0;
+  if (debug)
+    fprintf (stderr, "\nmessage:\n%s\n", messagesendtext);
+  gtk_widget_destroy (widget);
+  wi = gtk_item_factory_get_item (item_factory, N_("/Misc. Menu/Messages"));
+  statuslock = TRUE;
+  gtk_statusbar_push (GTK_STATUSBAR (status), statusid,
+		      _("Sending message to friends server..."));
+  gtk_widget_set_sensitive (wi, FALSE);
+  return TRUE;
+}
+
+gint
+textstatus (GtkWidget * widget, gpointer * datum)
+{
+  gint i;
+  GtkTextIter start, end;
+  gchar str[20];
+
+  gtk_text_buffer_get_bounds (getmessagebuffer, &start, &end);
+  gtk_text_buffer_apply_tag_by_name (getmessagebuffer, "word_wrap", &start,
+				     &end);
+  i = gtk_text_iter_get_offset (&end);
+  if (i >= 300)
+    {
+      gdk_beep ();
+/* gtk_text_buffer_delete (getmessagebuffer, &end-1, &end); */
+    }
+  g_snprintf (str, sizeof (str), "%d/300", i);
+
+  gtk_statusbar_pop (GTK_STATUSBAR (messagestatusbar), messagestatusbarid);
+  gtk_statusbar_push (GTK_STATUSBAR (messagestatusbar), messagestatusbarid,
+		      str);
+  return TRUE;
+}
+
+gint
+setmessage_cb (GtkWidget * widget, guint datum)
+{
+  gchar b[100];
+  gchar *p;
+  int i;
+  gchar titlestr[60];
+  static GtkWidget *window = NULL;
+  GtkWidget *ok, *cancel;
+  GtkWidget *vpaned;
+  GtkWidget *view1;
+  GtkWidget *sw, *hbox, *vbox;
+  GtkTextIter iter;
+  gchar pre[180];
+  time_t t;
+  struct tm *ts;
+  GtkTooltips *tooltips;
+
+  p = b;
+
+  gtk_clist_get_text (GTK_CLIST (mylist), datum, 0, &p);
+  g_strlcpy (messagename, p, sizeof (messagename));
+  for (i = 0; (size_t) i < strlen (messagename); i++)
+    if (messagename[i] == ' ')
+      messagename[i] = '_';
+
+  gtk_widget_destroy (GTK_WIDGET (messagewindow));
+
+
+/* create window to enter text */
+
+  window = gtk_dialog_new ();
+  gtk_window_set_transient_for (GTK_WINDOW (window), GTK_WINDOW (mainwindow));
+
+  cancel = gtk_button_new_from_stock (GTK_STOCK_CANCEL);
+  gtk_signal_connect_object ((GTK_OBJECT (window)), "delete_event",
+			     GTK_SIGNAL_FUNC (gtk_widget_destroy),
+			     GTK_OBJECT (window));
+  gtk_signal_connect_object ((GTK_OBJECT (window)), "destroy",
+			     GTK_SIGNAL_FUNC (gtk_widget_destroy),
+			     GTK_OBJECT (window));
+
+  ok = gtk_button_new_from_stock (GTK_STOCK_APPLY);
+  gtk_window_set_default_size (GTK_WINDOW (window), 320, 240);
+  g_snprintf (titlestr, sizeof (titlestr), "%s %s", _("Message for:"),
+	      messagename);
+  gtk_window_set_title (GTK_WINDOW (window), titlestr);
+  gtk_container_set_border_width (GTK_CONTAINER (window), 0);
+  vpaned = gtk_vpaned_new ();
+  gtk_container_set_border_width (GTK_CONTAINER (vpaned), 5);
+
+  vbox = gtk_vbox_new (FALSE, 3);
+  hbox = gtk_hbutton_box_new ();
+
+  messagestatusbar = gtk_statusbar_new ();
+  messagestatusbarid =
+    gtk_statusbar_get_context_id (GTK_STATUSBAR (messagestatusbar),
+				  "message");
+
+  gtk_box_pack_start (GTK_BOX
+		      (GTK_DIALOG (window)->vbox), vbox, TRUE, TRUE, 2);
+  gtk_box_pack_start (GTK_BOX (vbox), vpaned, TRUE, TRUE, 3);
+  gtk_box_pack_start (GTK_BOX (vbox), messagestatusbar, FALSE, FALSE, 3);
+/*   gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 3); */
+  gtk_box_pack_start (GTK_BOX
+		      (GTK_DIALOG (window)->action_area),
+		      hbox, TRUE, TRUE, 2);
+
+  gtk_box_pack_start (GTK_BOX (hbox), ok, TRUE, TRUE, 3);
+  gtk_box_pack_start (GTK_BOX (hbox), cancel, TRUE, TRUE, 3);
+  view1 = gtk_text_view_new ();
+
+  getmessagebuffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (view1));
+  g_signal_connect (GTK_TEXT_BUFFER (getmessagebuffer),
+		    "changed", G_CALLBACK (textstatus), status);
+
+  gtk_text_buffer_get_iter_at_offset (getmessagebuffer, &iter, 0);
+
+  gtk_text_buffer_create_tag (getmessagebuffer, "word_wrap",
+			      "wrap_mode", GTK_WRAP_WORD, NULL);
+  gtk_text_buffer_insert_with_tags_by_name (getmessagebuffer, &iter,
+					    "", -1, "word_wrap", NULL);
+
+  time (&t);
+  ts = localtime (&t);
+  g_snprintf (pre, sizeof (pre), _("Date: %s"), asctime (ts));
+  gtk_text_buffer_insert (getmessagebuffer, &iter, pre, -1);
+
+  gtk_signal_connect_object ((GTK_OBJECT (ok)), "clicked",
+			     GTK_SIGNAL_FUNC (accepttext),
+			     GTK_OBJECT (window));
+
+  gtk_signal_connect_object ((GTK_OBJECT (cancel)), "clicked",
+			     GTK_SIGNAL_FUNC (gtk_widget_destroy),
+			     GTK_OBJECT (window));
+  tooltips = gtk_tooltips_new ();
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), ok,
+			_
+			("Sends your text to to selected computer using the friends server"),
+			NULL);
+
+  sw = gtk_scrolled_window_new (NULL, NULL);
+  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw),
+				  GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
+  gtk_paned_add1 (GTK_PANED (vpaned), sw);
+
+  gtk_container_add (GTK_CONTAINER (sw), view1);
+
+  sw = gtk_scrolled_window_new (NULL, NULL);
+  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw),
+				  GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
+  gtk_widget_show_all (window);
+
+
+  return TRUE;
+}
+
+
+gint
+delwp_cb (GtkWidget * widget, guint datum)
+{
+  gint i, j;
+  gchar *p;
+
+  i = deleteline;
+  if (debug)
+    g_print ("\nremove line %d", i);
+  gtk_clist_get_text (GTK_CLIST (mylist), i, 0, &p);
+  j = atol (p) - 1;
+  gtk_clist_remove (GTK_CLIST (mylist), i);
+  if (debug)
+    g_print ("\nremove entry %d", j);
+
+  deletesqldata ((wayp + j)->sqlnr);
+  for (i = j; i < (maxwp - 1); i++)
+    *(wayp + i) = *(wayp + i + 1);
+  maxwp--;
+  savewaypoints ();
+  gtk_clist_get_text (GTK_CLIST (mylist), deleteline, 0, &p);
+  thisline = atol (p);
+
+  return TRUE;
+}
+
+gint
+jumpwp_cb (GtkWidget * widget, guint datum)
+{
+  gint i;
+  gchar *p;
+
+  i = deleteline;
+  gtk_clist_get_text (GTK_CLIST (mylist), i, 2, &p);
+  current_lat = atof (p);
+  gtk_clist_get_text (GTK_CLIST (mylist), i, 3, &p);
+  current_long = atof (p);
+
+  if ((!posmode) && (!simmode))
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (posbt), TRUE);
+  getsqldata ();
+  reinsertwp_cb (NULL, 0);
+  sel_targetweg_cb (NULL, 0);
+  return TRUE;
+}
+
+
+/*  set reference point for map calibration */
+gint
+setrefpoint_cb (GtkWidget * widget, guint datum)
+{
+  gchar b[100];
+  gchar *p;
+  p = b;
+  gtk_clist_get_text (GTK_CLIST (mylist), datum, 1, &p);
+  gtk_entry_set_text (GTK_ENTRY (dltext4), p);
+  gtk_clist_get_text (GTK_CLIST (mylist), datum, 2, &p);
+  gtk_entry_set_text (GTK_ENTRY (dltext1), p);
+
+  gtk_clist_get_text (GTK_CLIST (mylist), datum, 3, &p);
+  gtk_entry_set_text (GTK_ENTRY (dltext2), p);
+
+  return TRUE;
+}
+
+
+
+gint
+scaler_cb (GtkAdjustment * adj, gdouble * datum)
+{
+  gchar s2[100];
+  scalewanted = nlist[(gint) rint (adj->value)];
+  g_snprintf (s2, sizeof (s2), "1:%d", scalewanted);
+  gtk_label_set_text (GTK_LABEL (l8), s2);
+  if (debug)
+    g_print ("\nScaler: %d", scalewanted);
+  needtosave = TRUE;
+
+  return TRUE;
+}
+
+/*  Let user select a destination from the waypoint list */
+
+gint
+key_cb (GtkWidget * widget, GdkEventKey * event)
+{
+  gdouble lat, lon;
+  gint x, y;
+  GdkModifierType state;
+
+/*    g_print ("\nevent:%x key:%c\n",event->keyval,event->keyval); */
+  if ((toupper (event->keyval)) == 'X')
+    {
+      wplat = current_lat;
+      wplon = current_long;
+      addwaypoint_cb (NULL, NULL);
+    }
+
+// xxxxxxxxxxxxxxxxxxxxxxxxxxx
+
+  if ((toupper (event->keyval)) == 'Y')
+    {
+
+      gdk_window_get_pointer (drawing_area->window, &x, &y, &state);
+
+      calcxytopos (x, y, &lat, &lon, zoom);
+
+
+/*  Add mouse position as waypoint */
+      wplat = lat;
+      wplon = lon;
+      addwaypoint_cb (NULL, 0);
+
+
+    }
+// xxxxxxxxxxxxxxxxxxxxxxxxxx
+
+  if (((toupper (event->keyval)) == 'J') && routemode)
+    {
+      forcenextroutepoint = TRUE;
+    }
+
+  if ((toupper (event->keyval)) == 'N')
+    {
+      if (nightmode != 0)
+	{
+/*  light on for 30 seconds  */
+	  if (disableisnight == TRUE)
+	    {
+/* 	      gtk_timeout_remove (nighttimer); */
+	      disableisnight = FALSE;
+	    }
+	  else
+	    lighton ();
+	}
+    }
+
+  return 0;
+}
+
+/* does not work */
+gint
+mapclick_cb (GtkWidget * widget, GdkEventMotion * event)
+{
+  gint x, y;
+  gdouble lon, lat, vali;
+  GdkModifierType state;
+  gchar s[200];
+
+/*   printf("\n bin in mapclick\n"); */
+
+  if (event->is_hint)
+    gdk_window_get_pointer (event->window, &x, &y, &state);
+  else
+    {
+      x = event->x;
+      y = event->y;
+      state = event->state;
+    }
+  if (state == 0)
+    return 0;
+  calcxytopos (x, y, &lat, &lon, zoom);
+
+  if (downloadwindowactive || importactive)
+    {
+      if (downloadwindowactive)
+	{
+	  g_snprintf (s, sizeof (s), "%.5f", lat);
+	  if (minsecmode)
+	    decimaltomin (s, 1);
+	  gtk_entry_set_text (GTK_ENTRY (dltext1), s);
+	  g_snprintf (s, sizeof (s), "%.5f", lon);
+	  if (minsecmode)
+	    decimaltomin (s, 0);
+	  gtk_entry_set_text (GTK_ENTRY (dltext2), s);
+	  downloadsetparm (NULL, 0);
+	}
+      else
+	{
+	  g_snprintf (s, sizeof (s), "%d", x + SCREEN_X_2 + xoff);
+	  gtk_entry_set_text (GTK_ENTRY (dltext5), s);
+	  g_snprintf (s, sizeof (s), "%d", y + SCREEN_Y_2 + yoff);
+	  gtk_entry_set_text (GTK_ENTRY (dltext6), s);
+
+	}
+    }
+  else
+    {
+/*        g_print ("\nstate: %x x:%d y:%d", state, x, y); */
+      vali = (GTK_ADJUSTMENT (adj)->value);
+/*  Left mouse button + shift key */
+      if ((state & (GDK_BUTTON1_MASK | GDK_SHIFT_MASK)) ==
+	  (GDK_BUTTON1_MASK | GDK_SHIFT_MASK))
+	{
+	  scalerbt_cb (NULL, 2);
+	  return TRUE;
+	}
+/*  Add mouse position as waypoint */
+/*  Left mouse button + control key */
+      if ((state & (GDK_BUTTON1_MASK | GDK_CONTROL_MASK)) ==
+	  (GDK_BUTTON1_MASK | GDK_CONTROL_MASK))
+	{
+	  wplat = lat;
+	  wplon = lon;
+	  addwaypoint_cb (NULL, 0);
+	  return TRUE;
+	}
+/*  Add current position as waypoint */
+/*  Right mouse button + control key */
+      if ((state & (GDK_BUTTON3_MASK | GDK_CONTROL_MASK)) ==
+	  (GDK_BUTTON3_MASK | GDK_CONTROL_MASK))
+	{
+	  wplat = current_lat;
+	  wplon = current_long;
+
+	  addwaypoint_cb (NULL, 0);
+	  return TRUE;
+	}
+/*  Right mouse button + shift key */
+      if ((state & (GDK_BUTTON3_MASK | GDK_SHIFT_MASK)) ==
+	  (GDK_BUTTON3_MASK | GDK_SHIFT_MASK))
+	{
+	  scalerbt_cb (NULL, 1);
+	  return TRUE;
+	}
+
+/*  Left mouse button */
+      if ((state & GDK_BUTTON1_MASK) == GDK_BUTTON1_MASK)
+	{
+	  if (posmode)
+	    {
+	      posmode_x = lon;
+	      posmode_y = lat;
+	      rebuildtracklist ();
+	      if (onemousebutton)
+		gtk_timeout_add (10000, (GtkFunction) posmodeoff_cb, 0);
+	    }
+	}
+/*  Middle mouse button */
+      if ((state & GDK_BUTTON2_MASK) == GDK_BUTTON2_MASK)
+	{
+	  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (posbt), FALSE);
+
+	  rebuildtracklist ();
+	}
+/*  Right mouse button */
+      if ((state & GDK_BUTTON3_MASK) == GDK_BUTTON3_MASK)
+	{
+/* set  as target */
+/* only if RIGHT mouse button clicked */
+	  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (posbt), FALSE);
+	  rebuildtracklist ();
+	  g_strlcpy (targetname, _("SELECTED"), sizeof (targetname));
+	  g_snprintf (s, sizeof (s), "%s: %s", _("To"), targetname);
+	  gtk_frame_set_label (GTK_FRAME (destframe), s);
+	  target_lat = lat;
+	  target_long = lon;
+	  g_timer_stop (disttimer);
+	  g_timer_start (disttimer);
+	  olddist = dist;
+	}
+    }
+
+/*    g_print ("\nx: %d, y: %d", x, y); */
+  return TRUE;
+}
+
+
+gint
+minimapclick_cb (GtkWidget * widget, GdkEventMotion * event)
+{
+  gint x, y, px, py;
+  gdouble dif, lon, lat;
+  GdkModifierType state;
+
+  if (event->is_hint)
+    gdk_window_get_pointer (event->window, &x, &y, &state);
+  else
+    {
+      x = event->x;
+      y = event->y;
+      state = event->state;
+    }
+  if (state == 0)
+    return 0;
+#define MINISCREEN_X_2 64
+#define MINISCREEN_Y_2 51
+  px = (MINISCREEN_X_2 - x) * 10 * pixelfact;
+  py = (-MINISCREEN_Y_2 + y) * 10 * pixelfact;
+  lat = zero_lat - py / (Ra[(int) (100 + current_lat)] * M_PI / 180.0);
+  lat = zero_lat - py / (Ra[(int) (100 + lat)] * M_PI / 180.0);
+  lon =
+    zero_long -
+    px / ((Ra[(int) (100 + lat)] * M_PI / 180.0) * cos (M_PI * lat / 180.0));
+
+  if (mapistopo == FALSE)
+    {
+      dif = lat * (1 - (cos ((M_PI * fabs (lon - zero_long)) / 180.0)));
+      lat = lat - dif / 1.5;
+    }
+  else
+    dif = 0;
+  lon =
+    zero_long -
+    px / ((Ra[(int) (100 + lat)] * M_PI / 180.0) * cos (M_PI * lat / 180.0));
+
+
+/*        g_print ("\nstate: %x x:%d y:%d", state, x, y); */
+
+/*  Left mouse button */
+  if ((state & GDK_BUTTON1_MASK) == GDK_BUTTON1_MASK)
+    {
+      if (posmode)
+	{
+	  posmode_x = lon;
+	  posmode_y = lat;
+	  rebuildtracklist ();
+	  if (onemousebutton)
+	    gtk_timeout_add (10000, (GtkFunction) posmodeoff_cb, 0);
+	}
+    }
+/*  Middle mouse button */
+  if ((state & GDK_BUTTON2_MASK) == GDK_BUTTON2_MASK)
+    {
+      gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (posbt), FALSE);
+      rebuildtracklist ();
+    }
+
+/*    g_print ("\nx: %d, y: %d", x, y); */
+  return TRUE;
+}
+
+
+gint
+addwaypointchange_cb (GtkWidget * widget, guint datum)
+{
+  gchar *s;
+  gdouble lo, la;
+
+  s = g_strstrip ((char *) gtk_entry_get_text (GTK_ENTRY (addwaypoint1)));
+  checkinput (s);
+  lo = g_strtod (s, NULL);
+  if ((lo > -181) && (lo < 181))
+    wplon = lo;
+  s = g_strstrip ((char *) gtk_entry_get_text (GTK_ENTRY (addwaypoint2)));
+  checkinput (s);
+  la = g_strtod (s, NULL);
+  if ((la > -181) && (la < 181))
+    wplat = la;
+
+  return TRUE;
+}
+
+gint
+addwaypoint (GtkWidget * widget, guint datum)
+{
+  gint i;
+  G_CONST_RETURN gchar *s, *s2;
+
+  s = gtk_entry_get_text (GTK_ENTRY (wptext1));
+  s2 = gtk_entry_get_text (GTK_ENTRY (GTK_COMBO (wptext2)->entry));
+  if (sqlflag)
+    {
+      insertsqldata (wplat, wplon, (char *) s, (char *) s2);
+      getsqltypelist ();
+      getsqldata ();
+    }
+  else
+    {
+      i = maxwp;
+      (wayp + i)->lat = wplat;
+      (wayp + i)->longitude = wplon;
+      g_strdelimit ((char *) s, " ", '_');
+/*  limit waypoint name to 20 chars */
+      g_strlcpy ((wayp + i)->name, s, 40);
+      (wayp + i)->name[20] = 0;
+      g_strlcpy ((wayp + i)->typ, s2, 40);
+      (wayp + i)->wlan = 0;
+
+      maxwp++;
+      if (maxwp >= wpsize)
+	{
+	  wpsize += 1000;
+	  wayp = g_renew (wpstruct, wayp, wpsize);
+	}
+      savewaypoints ();
+    }
+  gtk_widget_destroy (GTK_WIDGET (datum));
+  markwaypoint = FALSE;
+  return TRUE;
+}
+
+/*  destroy sel_target window */
+gint
+addwaypointdestroy_cb (GtkWidget * widget, guint datum)
+{
+
+  gtk_widget_destroy (GTK_WIDGET (addwaypointwindow));
+  markwaypoint = FALSE;
+
+  return FALSE;
+}
+
+gint
+addwaypoint_cb (GtkWidget * widget, gpointer datum)
+{
+  GtkWidget *window, *l1, *l2, *t1, *t2, *hbox3, *hbox4, *hbox5;
+  GtkWidget *vbox, *hbox, *hbox2, *button, *button2, *label, *label2;
+  gchar buff[40];
+  GList *list = NULL;
+  gint i;
+
+  if (sqlflag)
+    {
+      getsqltypelist ();
+      for (i = 0; i < dbtypelistcount; i++)
+	list = g_list_append (list, dbtypelist[i]);
+    }
+
+  addwaypointwindow = window = gtk_dialog_new ();
+  gtk_window_set_transient_for (GTK_WINDOW (window), GTK_WINDOW (mainwindow));
+  gotowindow = window;
+  markwaypoint = TRUE;
+
+  gtk_window_set_modal (GTK_WINDOW (window), TRUE);
+  gtk_window_set_title (GTK_WINDOW (window), _("Add waypoint name"));
+
+
+
+  button = gtk_button_new_from_stock (GTK_STOCK_APPLY);
+  button2 = gtk_button_new_from_stock (GTK_STOCK_CANCEL);
+
+  GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
+  GTK_WIDGET_SET_FLAGS (button2, GTK_CAN_DEFAULT);
+  gtk_signal_connect (GTK_OBJECT (button), "clicked",
+		      GTK_SIGNAL_FUNC (addwaypoint), GTK_OBJECT (window));
+  gtk_signal_connect (GTK_OBJECT (button2), "clicked",
+		      GTK_SIGNAL_FUNC (addwaypointdestroy_cb), 0);
+  gtk_signal_connect (GTK_OBJECT (window),
+		      "delete_event",
+		      GTK_SIGNAL_FUNC (addwaypointdestroy_cb), 0);
+
+  vbox = gtk_vbox_new (TRUE, 2);
+  gtk_box_pack_start (GTK_BOX
+		      (GTK_DIALOG (window)->vbox), vbox, TRUE, TRUE, 2);
+
+  hbox = gtk_hbox_new (TRUE, 2);
+  hbox2 = gtk_hbox_new (TRUE, 2);
+  gtk_box_pack_start (GTK_BOX (hbox), button, TRUE, TRUE, 2);
+  gtk_box_pack_start (GTK_BOX (hbox), button2, TRUE, TRUE, 2);
+
+  addwaypoint1 = t1 = gtk_entry_new_with_max_length (20);
+  g_snprintf (buff, sizeof (buff), "%.5f", wplon);
+  if (minsecmode)
+    decimaltomin (buff, 0);
+  gtk_entry_set_text (GTK_ENTRY (t1), buff);
+  l1 = gtk_label_new (_("Longitude"));
+  addwaypoint2 = t2 = gtk_entry_new_with_max_length (20);
+  g_snprintf (buff, sizeof (buff), "%.5f", wplat);
+  if (minsecmode)
+    decimaltomin (buff, 1);
+  gtk_entry_set_text (GTK_ENTRY (t2), buff);
+  l2 = gtk_label_new (_("Latitude"));
+
+  gtk_signal_connect (GTK_OBJECT (t1),
+		      "changed", GTK_SIGNAL_FUNC (addwaypointchange_cb),
+		      (gpointer) 1);
+  gtk_signal_connect (GTK_OBJECT (t2),
+		      "changed", GTK_SIGNAL_FUNC (addwaypointchange_cb),
+		      (gpointer) 2);
+
+  hbox3 = gtk_hbox_new (TRUE, 2);
+  hbox4 = gtk_hbox_new (TRUE, 2);
+  hbox5 = gtk_hbox_new (TRUE, 2);
+
+  gtk_box_pack_start (GTK_BOX (hbox3), l2, TRUE, TRUE, 2);
+  gtk_box_pack_start (GTK_BOX (hbox3), t2, TRUE, TRUE, 2);
+  gtk_box_pack_start (GTK_BOX (hbox4), l1, TRUE, TRUE, 2);
+  gtk_box_pack_start (GTK_BOX (hbox4), t1, TRUE, TRUE, 2);
+  gtk_box_pack_start (GTK_BOX (vbox), hbox3, TRUE, TRUE, 2);
+  gtk_box_pack_start (GTK_BOX (vbox), hbox4, TRUE, TRUE, 2);
+
+
+  wptext1 = gtk_entry_new ();
+  label = gtk_label_new (_(" Waypoint name: "));
+  gtk_window_set_default (GTK_WINDOW (window), button);
+  gtk_window_set_focus (GTK_WINDOW (window), wptext1);
+
+  gtk_box_pack_start (GTK_BOX (hbox2), label, TRUE, TRUE, 2);
+  gtk_box_pack_start (GTK_BOX (hbox2), wptext1, TRUE, TRUE, 2);
+  gtk_box_pack_start (GTK_BOX (vbox), hbox2, TRUE, TRUE, 2);
+
+
+/*   wptext2 = gtk_entry_new (); */
+  wptext2 = gtk_combo_new ();
+  gtk_combo_set_popdown_strings (GTK_COMBO (wptext2), (GList *) list);
+
+  label2 = gtk_label_new (_(" Waypoint type: "));
+
+  gtk_box_pack_start (GTK_BOX (hbox5), label2, TRUE, TRUE, 2);
+  gtk_box_pack_start (GTK_BOX (hbox5), wptext2, TRUE, TRUE, 2);
+  gtk_box_pack_start (GTK_BOX (vbox), hbox5, TRUE, TRUE, 2);
+
+/*   gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 2); */
+  gtk_box_pack_start (GTK_BOX
+		      (GTK_DIALOG (window)->action_area),
+		      hbox, TRUE, TRUE, 2);
+
+
+  gtk_window_set_position (GTK_WINDOW (window), GTK_WIN_POS_CENTER);
+  gtk_widget_show_all (window);
+  return TRUE;
+}
+
+
+void
+insertwaypoints (gint mobile)
+{
+  gint i, j;
+  gchar *text[5], text0[20], text1[20], text2[20], text3[20], name[40];
+  gdouble la, lo, dist;
+  time_t ti, tif;
+
+/*  insert waypoint into the clist */
+
+  if (!mobile)
+    for (i = 0; i < maxwp; i++)
+      {
+	(wayp + i)->dist = calcdist ((wayp + i)->longitude, (wayp + i)->lat);
+
+	text[1] = (wayp + i)->name;
+
+	g_snprintf (text0, sizeof (text0), "%02d", i + 1);
+	g_snprintf (text1, sizeof (text1), "%8.5f", (wayp + i)->lat);
+	if (minsecmode)
+	  decimaltomin (text1, 1);
+	g_snprintf (text2, sizeof (text2), "%8.5f", (wayp + i)->longitude);
+	if (minsecmode)
+	  decimaltomin (text2, 0);
+	g_snprintf (text3, sizeof (text3), "%9.3f", (wayp + i)->dist);
+	text[0] = text0;
+	text[2] = text1;
+	text[3] = text2;
+	text[4] = text3;
+	j = gtk_clist_append (GTK_CLIST (mylist), (gchar **) text);
+	gtk_clist_set_foreground (GTK_CLIST (mylist), j, &black);
+      }
+
+  for (i = 0; i < maxfriends; i++)
+    {
+      ti = time (NULL);
+      tif = atol ((friends + i)->timesec);
+      if ((ti - maxfriendssecs) > tif)
+	continue;
+
+      if (mobile)
+	g_strlcpy (name, "", sizeof (name));
+      else
+	g_strlcpy (name, "*", sizeof (name));
+      g_strlcat (name, (friends + i)->name, sizeof (name));
+      g_snprintf (text0, sizeof (text0), "%d", i + maxwp + 1);
+      la = g_strtod ((friends + i)->lat, NULL);
+      lo = g_strtod ((friends + i)->longi, NULL);
+      g_snprintf (text1, sizeof (text1), "%8.5f", la);
+      g_snprintf (text2, sizeof (text2), "%8.5f", lo);
+      if (minsecmode)
+	decimaltomin (text1, 1);
+
+      if (minsecmode)
+	decimaltomin (text2, 0);
+
+      if (!mobile)
+	{
+	  text[0] = text0;
+	  text[1] = name;
+	  text[2] = text1;
+	  text[3] = text2;
+	  dist = calcdist (lo, la);
+	  g_snprintf (text3, sizeof (text3), "%9.3f", dist);
+	  text[4] = text3;
+	}
+      else
+	{
+	  text[0] = name;
+	  text[1] = text1;
+	  text[2] = text2;
+	  dist = calcdist (lo, la);
+	  g_snprintf (text3, sizeof (text3), "%9.3f", dist);
+	  text[3] = text3;
+	}
+
+      j = gtk_clist_append (GTK_CLIST (mylist), (gchar **) text);
+      if (mobile)
+	gtk_clist_set_foreground (GTK_CLIST (mylist), j, &black);
+      else
+	gtk_clist_set_foreground (GTK_CLIST (mylist), j, &red);
+    }
+
+/*  we want te columns sorted by distance from current position */
+  gtk_clist_set_sort_column (GTK_CLIST (mylist), (gint) sortcolumn);
+  gtk_clist_sort (GTK_CLIST (mylist));
+}
+
+gint
+setsortcolumn (GtkWidget * w, gpointer datum)
+{
+  sortflag = !sortflag;
+  sortcolumn = (gint) datum;
+
+  if (sortflag)
+    gtk_clist_set_sort_type (GTK_CLIST (mylist), GTK_SORT_ASCENDING);
+  else
+    gtk_clist_set_sort_type (GTK_CLIST (mylist), GTK_SORT_DESCENDING);
+
+  if (w != messagewindow)
+    reinsertwp_cb (NULL, 0);
+  else
+    {
+      gtk_clist_set_sort_column (GTK_CLIST (mylist), (gint) sortcolumn);
+      gtk_clist_sort (GTK_CLIST (mylist));
+    }
+  return TRUE;
+}
+
+
+void
+insertroutepoints ()
+{
+  gint i, j;
+  gchar *text[5], text0[20], text1[20], text2[20], text3[20];
+
+  i = thisrouteline;
+  (wayp + i)->dist = calcdist ((wayp + i)->longitude, (wayp + i)->lat);
+  text[1] = (wayp + i)->name;
+  g_snprintf (text0, sizeof (text0), "%d", i + 1);
+  g_snprintf (text1, sizeof (text1), "%8.5f", (wayp + i)->lat);
+  if (minsecmode)
+    decimaltomin (text1, 1);
+  g_snprintf (text2, sizeof (text2), "%8.5f", (wayp + i)->longitude);
+  if (minsecmode)
+    decimaltomin (text2, 0);
+  g_snprintf (text3, sizeof (text3), "%9.3f", (wayp + i)->dist);
+  text[0] = text0;
+  text[2] = text1;
+  text[3] = text2;
+  text[4] = text3;
+  j = gtk_clist_append (GTK_CLIST (myroutelist), (gchar **) text);
+  gtk_clist_set_foreground (GTK_CLIST (myroutelist), j, &black);
+  g_strlcpy ((routelist + routeitems)->name, (wayp + i)->name, 40);
+  (routelist + routeitems)->lat = (wayp + i)->lat;
+  (routelist + routeitems)->longitude = (wayp + i)->longitude;
+  routeitems++;
+  gtk_widget_set_sensitive (select_route_button, TRUE);
+
+}
+
+void
+insertallroutepoints ()
+{
+  gint i, j;
+  gchar *text[5], text0[20], text1[20], text2[20], text3[20];
+
+  for (i = 0; i < maxwp; i++)
+    {
+      (wayp + i)->dist = calcdist ((wayp + i)->longitude, (wayp + i)->lat);
+      text[1] = (wayp + i)->name;
+      g_snprintf (text0, sizeof (text0), "%d", i + 1);
+      g_snprintf (text1, sizeof (text1), "%8.5f", (wayp + i)->lat);
+      if (minsecmode)
+	decimaltomin (text1, 1);
+      g_snprintf (text2, sizeof (text2), "%8.5f", (wayp + i)->longitude);
+      if (minsecmode)
+	decimaltomin (text2, 0);
+      g_snprintf (text3, sizeof (text3), "%9.3f", (wayp + i)->dist);
+      text[0] = text0;
+      text[2] = text1;
+      text[3] = text2;
+      text[4] = text3;
+      j = gtk_clist_append (GTK_CLIST (myroutelist), (gchar **) text);
+      gtk_clist_set_foreground (GTK_CLIST (myroutelist), j, &black);
+      g_strlcpy ((routelist + routeitems)->name, (wayp + i)->name, 40);
+      (routelist + routeitems)->lat = (wayp + i)->lat;
+      (routelist + routeitems)->longitude = (wayp + i)->longitude;
+      routeitems++;
+    }
+  gtk_widget_set_sensitive (select_route_button, TRUE);
+
+}
+
+gint
+reinsertwp_cb (GtkWidget * widget, guint datum)
+{
+  gint i, j, k, val;
+  gchar *p;
+  GtkAdjustment *ad;
+
+/*  update routine for select target window */
+  k = 0;
+  ad = gtk_clist_get_vadjustment (GTK_CLIST (mylist));
+  val = (GTK_ADJUSTMENT (ad)->value);
+
+  gtk_clist_freeze (GTK_CLIST (mylist));
+  gtk_clist_clear (GTK_CLIST (mylist));
+  insertwaypoints (FALSE);
+  for (i = 0; i < maxwp; i++)
+    {
+      gtk_clist_get_text (GTK_CLIST (mylist), i, 0, &p);
+      j = atol (p);
+      if (thisline == j)
+	{
+	  k = i;
+	  break;
+	}
+    }
+  gtk_adjustment_set_value (GTK_ADJUSTMENT (ad), val);
+  dontsetwp = TRUE;
+  gtk_clist_select_row (GTK_CLIST (mylist), k, 0);
+  dontsetwp = FALSE;
+  gtk_clist_thaw (GTK_CLIST (mylist));
+  return TRUE;
+}
+
+gint
+click_clist (GtkWidget * widget, GdkEventButton * event, gpointer data)
+{
+
+  g_print ("\nclist: %d, data: %d", event->button, thisline);
+  if ((event->button == 3))
+    {
+
+      return TRUE;
+    }
+
+  return FALSE;
+
+}
+
+gint
+sel_message_cb (GtkWidget * widget, guint datum)
+{
+  GtkWidget *window;
+  gchar *tabeltitel1[] = {
+    _("Name"), _("Latitude"), _("Longitude"), _("Distance"),
+    NULL
+  };
+  GtkWidget *scrwindow, *vbox, *button;
+
+  window = gtk_dialog_new ();
+/*    gtk_window_set_policy(GTK_WINDOW(window), TRUE, TRUE, TRUE); */
+  gtk_window_set_transient_for (GTK_WINDOW (window), GTK_WINDOW (mainwindow));
+  messagewindow = window;
+  gtk_window_set_title (GTK_WINDOW (window),
+			_("Please select message recipient"));
+
+  gtk_window_set_position (GTK_WINDOW (window), GTK_WIN_POS_CENTER);
+
+  if (pdamode)
+    gtk_window_set_default_size (GTK_WINDOW (window), real_screen_x,
+				 real_screen_y);
+  else
+    gtk_window_set_default_size (GTK_WINDOW (window), 400, 360);
+
+  mylist = gtk_clist_new_with_titles (4, tabeltitel1);
+
+  gtk_signal_connect_object (GTK_OBJECT
+			     (GTK_CLIST (mylist)),
+			     "click-column", GTK_SIGNAL_FUNC (setsortcolumn),
+			     GTK_OBJECT (window));
+
+  gtk_signal_connect (GTK_OBJECT (GTK_CLIST (mylist)),
+		      "select-row",
+		      GTK_SIGNAL_FUNC (setmessage_cb), GTK_OBJECT (mylist));
+
+
+  button = gtk_button_new_from_stock (GTK_STOCK_CANCEL);
+  GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
+  gtk_window_set_default (GTK_WINDOW (window), button);
+  gtk_signal_connect_object (GTK_OBJECT (button), "clicked",
+			     GTK_SIGNAL_FUNC
+			     (gtk_widget_destroy), GTK_OBJECT (window));
+  gtk_signal_connect_object (GTK_OBJECT (window),
+			     "delete_event",
+			     GTK_SIGNAL_FUNC
+			     (gtk_widget_destroy), GTK_OBJECT (window));
+
+  insertwaypoints (TRUE);
+  gtk_clist_set_column_justification (GTK_CLIST (mylist), 3,
+				      GTK_JUSTIFY_RIGHT);
+  gtk_clist_set_column_auto_resize (GTK_CLIST (mylist), 0, TRUE);
+  gtk_clist_set_column_auto_resize (GTK_CLIST (mylist), 1, TRUE);
+  gtk_clist_set_column_auto_resize (GTK_CLIST (mylist), 2, TRUE);
+  gtk_clist_set_column_auto_resize (GTK_CLIST (mylist), 3, TRUE);
+
+
+  scrwindow = gtk_scrolled_window_new (NULL, NULL);
+  gtk_container_add (GTK_CONTAINER (scrwindow), mylist);
+  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW
+				  (scrwindow),
+				  (GtkPolicyType)
+				  GTK_POLICY_AUTOMATIC,
+				  (GtkPolicyType) GTK_POLICY_AUTOMATIC);
+  vbox = gtk_vbox_new (FALSE, 2 * PADDING);
+  gtk_box_pack_start (GTK_BOX
+		      (GTK_DIALOG (window)->vbox), vbox, TRUE, TRUE, 2);
+  gtk_box_pack_start (GTK_BOX (vbox), scrwindow, TRUE, TRUE, 2 * PADDING);
+
+  gtk_box_pack_start (GTK_BOX
+		      (GTK_DIALOG (window)->action_area),
+		      button, TRUE, TRUE, 2);
+
+  gtk_widget_show_all (window);
+  return TRUE;
+}
+
+
+
+gint
+sel_target_cb (GtkWidget * widget, guint datum)
+{
+  GtkWidget *window;
+  gchar *tabeltitel1[] = { "#",
+    _("Waypoint"), _("Latitude"), _("Longitude"), _("Distance"),
+    NULL
+  };
+  GtkWidget *scrwindow, *vbox, *button, *hbox, *deletebt, *gotobt;
+  GtkTooltips *tooltips;
+
+  if (setwpactive)
+    return TRUE;
+
+
+  setwpactive = TRUE;
+  window = gtk_dialog_new ();
+/*    gtk_window_set_policy(GTK_WINDOW(window), TRUE, TRUE, TRUE); */
+  gotowindow = window;
+  gtk_window_set_transient_for (GTK_WINDOW (window), GTK_WINDOW (mainwindow));
+
+  if (datum == 1)
+    {
+      gtk_window_set_modal (GTK_WINDOW (window), TRUE);
+      gtk_window_set_title (GTK_WINDOW (window), _("Select reference point"));
+    }
+  else
+    gtk_window_set_title (GTK_WINDOW (window),
+			  _("Please select your destination"));
+  if (pdamode)
+    gtk_window_set_default_size (GTK_WINDOW (window), real_screen_x,
+				 real_screen_y);
+  else
+    gtk_window_set_default_size (GTK_WINDOW (window), 400, 360);
+
+  mylist = gtk_clist_new_with_titles (5, tabeltitel1);
+  if (datum == 1)
+    gtk_signal_connect (GTK_OBJECT (GTK_CLIST (mylist)),
+			"select-row",
+			GTK_SIGNAL_FUNC (setrefpoint_cb),
+			GTK_OBJECT (mylist));
+  else
+    {
+      gtk_signal_connect (GTK_OBJECT (GTK_CLIST (mylist)),
+			  "select-row",
+			  GTK_SIGNAL_FUNC (setwp_cb), GTK_OBJECT (mylist));
+/*       gtk_signal_connect (GTK_OBJECT (mylist), "button-release-event", */
+/* 			  GTK_SIGNAL_FUNC (click_clist), NULL); */
+    }
+
+  gtk_signal_connect (GTK_OBJECT
+		      (GTK_CLIST (mylist)),
+		      "click-column", GTK_SIGNAL_FUNC (setsortcolumn), 0);
+
+  if (datum != 1)
+    {
+      if (routemode)
+	create_route_button = gtk_button_new_with_label (_("Edit route"));
+      else
+	create_route_button = gtk_button_new_with_label (_("Create route"));
+      GTK_WIDGET_SET_FLAGS (create_route_button, GTK_CAN_DEFAULT);
+      gtk_signal_connect (GTK_OBJECT (create_route_button), "clicked",
+			  GTK_SIGNAL_FUNC (create_route_cb), 0);
+    }
+
+  deletebt = gtk_button_new_from_stock (GTK_STOCK_DELETE);
+  GTK_WIDGET_SET_FLAGS (deletebt, GTK_CAN_DEFAULT);
+  gtk_signal_connect (GTK_OBJECT (deletebt), "clicked",
+		      GTK_SIGNAL_FUNC (delwp_cb), 0);
+
+  gotobt = gtk_button_new_from_stock (GTK_STOCK_JUMP_TO);
+  GTK_WIDGET_SET_FLAGS (gotobt, GTK_CAN_DEFAULT);
+  gtk_signal_connect (GTK_OBJECT (gotobt), "clicked",
+		      GTK_SIGNAL_FUNC (jumpwp_cb), 0);
+
+/*   button = gtk_button_new_with_label (_("Close")); */
+  button = gtk_button_new_from_stock (GTK_STOCK_CLOSE);
+  GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
+  gtk_window_set_default (GTK_WINDOW (window), button);
+  gtk_signal_connect_object (GTK_OBJECT (button), "clicked",
+			     GTK_SIGNAL_FUNC
+			     (sel_targetweg_cb), GTK_OBJECT (window));
+  gtk_signal_connect_object (GTK_OBJECT (window),
+			     "delete_event",
+			     GTK_SIGNAL_FUNC
+			     (sel_targetweg_cb), GTK_OBJECT (window));
+
+  insertwaypoints (FALSE);
+  gtk_clist_set_column_justification (GTK_CLIST (mylist), 4,
+				      GTK_JUSTIFY_RIGHT);
+  gtk_clist_set_column_justification (GTK_CLIST (mylist), 0,
+				      GTK_JUSTIFY_RIGHT);
+  gtk_clist_set_column_auto_resize (GTK_CLIST (mylist), 0, TRUE);
+  gtk_clist_set_column_auto_resize (GTK_CLIST (mylist), 1, TRUE);
+  gtk_clist_set_column_auto_resize (GTK_CLIST (mylist), 2, TRUE);
+  gtk_clist_set_column_auto_resize (GTK_CLIST (mylist), 3, TRUE);
+  gtk_clist_set_column_auto_resize (GTK_CLIST (mylist), 4, TRUE);
+
+  scrwindow = gtk_scrolled_window_new (NULL, NULL);
+  gtk_container_add (GTK_CONTAINER (scrwindow), mylist);
+  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW
+				  (scrwindow),
+				  (GtkPolicyType)
+				  GTK_POLICY_AUTOMATIC,
+				  (GtkPolicyType) GTK_POLICY_AUTOMATIC);
+  vbox = gtk_vbox_new (FALSE, 2 * PADDING);
+  gtk_box_pack_start (GTK_BOX
+		      (GTK_DIALOG (window)->vbox), vbox, TRUE, TRUE, 2);
+  gtk_box_pack_start (GTK_BOX (vbox), scrwindow, TRUE, TRUE, 2 * PADDING);
+  hbox = gtk_hbutton_box_new ();
+  gtk_box_pack_start (GTK_BOX
+		      (GTK_DIALOG (window)->action_area),
+		      hbox, TRUE, TRUE, 2);
+
+  if (datum != 1)
+    {
+      gtk_box_pack_start (GTK_BOX (hbox), create_route_button, TRUE, TRUE,
+			  2 * PADDING);
+      gtk_box_pack_start (GTK_BOX (hbox), deletebt, TRUE, TRUE, 2 * PADDING);
+      gtk_box_pack_start (GTK_BOX (hbox), gotobt, TRUE, TRUE, 2 * PADDING);
+    }
+  gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, TRUE, 2 * PADDING);
+/*    gtk_window_set_position (GTK_WINDOW (window), GTK_WIN_POS_CENTER); */
+
+/*   I remove this, because you can sort by mouseclick now */
+/*   selwptimeout = gtk_timeout_add (30000, (GtkFunction) reinsertwp_cb, 0); */
+  tooltips = gtk_tooltips_new ();
+  if (!createroute)
+    gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), create_route_button,
+			  _
+			  ("Create a route using some waypoints from this list"),
+			  NULL);
+  if (setwpactive)
+    gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), deletebt,
+			  _
+			  ("Delete the selected waypoint from the waypoint list"),
+			  NULL);
+  if (setwpactive)
+    gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), gotobt,
+			  _("Jump to the selected waypoint"), NULL);
+
+  gtk_widget_show_all (window);
+
+  return TRUE;
+}
+
+
+gint
+create_route_cb (GtkWidget * widget, guint datum)
+{
+  GtkWidget *window;
+  gchar *tabeltitel1[] = { "#",
+    _("Waypoint"), _("Latitude"), _("Longitude"), _("Distance"),
+    NULL
+  };
+  GtkWidget *scrwindow, *vbox, *button, *button3, *hbox, *hbox2, *l1;
+  gint i, j;
+  gchar *text[5], text0[20], text1[20], text2[20], text3[20];
+  GtkTooltips *tooltips;
+
+  createroute = TRUE;
+  window = gtk_dialog_new ();
+  routewindow = window;
+/*    gtk_window_set_policy(GTK_WINDOW(window), TRUE, TRUE, TRUE); */
+  gtk_window_set_transient_for (GTK_WINDOW (window), GTK_WINDOW (mainwindow));
+
+  gtk_window_set_title (GTK_WINDOW (window), _("Define route"));
+  gtk_window_set_default_size (GTK_WINDOW (window), 320, 320);
+  myroutelist = gtk_clist_new_with_titles (5, tabeltitel1);
+  gtk_signal_connect (GTK_OBJECT (GTK_CLIST (myroutelist)),
+		      "select-row",
+		      GTK_SIGNAL_FUNC (setroutetarget),
+		      GTK_OBJECT (myroutelist));
+
+  select_route_button = gtk_button_new_with_label (_("Start route"));
+  gtk_widget_set_sensitive (select_route_button, FALSE);
+
+  GTK_WIDGET_SET_FLAGS (select_route_button, GTK_CAN_DEFAULT);
+  gtk_signal_connect (GTK_OBJECT (select_route_button), "clicked",
+		      GTK_SIGNAL_FUNC (do_route_cb), 0);
+  gtk_window_set_default (GTK_WINDOW (window), select_route_button);
+
+  create_route2_button =
+    gtk_button_new_with_label (_("Take all WP as route"));
+  GTK_WIDGET_SET_FLAGS (create_route2_button, GTK_CAN_DEFAULT);
+  gtk_signal_connect (GTK_OBJECT (create_route2_button), "clicked",
+		      GTK_SIGNAL_FUNC (insertallroutepoints), 0);
+
+  button = gtk_button_new_with_label (_("Abort route"));
+  GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
+  gtk_signal_connect_object (GTK_OBJECT (button), "clicked",
+			     GTK_SIGNAL_FUNC
+			     (sel_routecancel_cb), GTK_OBJECT (window));
+  gtk_signal_connect_object (GTK_OBJECT (window),
+			     "delete_event",
+			     GTK_SIGNAL_FUNC
+			     (sel_routeclose_cb), GTK_OBJECT (window));
+
+/*   button3 = gtk_button_new_with_label (_("Close")); */
+  button3 = gtk_button_new_from_stock (GTK_STOCK_CLOSE);
+  GTK_WIDGET_SET_FLAGS (button3, GTK_CAN_DEFAULT);
+  gtk_signal_connect_object (GTK_OBJECT (button3), "clicked",
+			     GTK_SIGNAL_FUNC
+			     (sel_routeclose_cb), GTK_OBJECT (window));
+
+
+  gtk_clist_set_column_justification (GTK_CLIST (myroutelist), 4,
+				      GTK_JUSTIFY_RIGHT);
+  gtk_clist_set_column_justification (GTK_CLIST (myroutelist), 0,
+				      GTK_JUSTIFY_RIGHT);
+  gtk_clist_set_column_auto_resize (GTK_CLIST (myroutelist), 0, TRUE);
+  gtk_clist_set_column_auto_resize (GTK_CLIST (myroutelist), 1, TRUE);
+  gtk_clist_set_column_auto_resize (GTK_CLIST (myroutelist), 2, TRUE);
+  gtk_clist_set_column_auto_resize (GTK_CLIST (myroutelist), 3, TRUE);
+  gtk_clist_set_column_auto_resize (GTK_CLIST (myroutelist), 4, TRUE);
+
+  scrwindow = gtk_scrolled_window_new (NULL, NULL);
+  gtk_container_add (GTK_CONTAINER (scrwindow), myroutelist);
+  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW
+				  (scrwindow),
+				  (GtkPolicyType)
+				  GTK_POLICY_AUTOMATIC,
+				  (GtkPolicyType) GTK_POLICY_AUTOMATIC);
+  vbox = gtk_vbox_new (FALSE, 2);
+/*   gtk_container_add (GTK_CONTAINER (window), vbox); */
+  gtk_box_pack_start (GTK_BOX
+		      (GTK_DIALOG (window)->vbox), vbox, TRUE, TRUE, 2);
+
+  gtk_box_pack_start (GTK_BOX (vbox), scrwindow, TRUE, TRUE, 2);
+  hbox = gtk_hbox_new (TRUE, 2);
+  hbox2 = gtk_hbox_new (TRUE, 2);
+  if (!routemode)
+    l1 = gtk_label_new (_("Click on waypoints list\nto add waypoints"));
+  else
+    l1 = gtk_label_new (_("Click on list item\nto select next waypoint"));
+  gtk_box_pack_start (GTK_BOX (vbox), l1, FALSE, FALSE, 2);
+/*   gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 2); */
+  gtk_box_pack_start (GTK_BOX
+		      (GTK_DIALOG (window)->action_area),
+		      hbox, TRUE, TRUE, 2);
+
+  gtk_box_pack_start (GTK_BOX (hbox), select_route_button, TRUE, TRUE, 2);
+  gtk_box_pack_start (GTK_BOX (hbox), create_route2_button, TRUE, TRUE, 2);
+  gtk_box_pack_start (GTK_BOX (hbox), button, TRUE, TRUE, 2);
+  gtk_box_pack_start (GTK_BOX (vbox), hbox2, FALSE, FALSE, 2);
+  gtk_box_pack_start (GTK_BOX (hbox), button3, TRUE, TRUE, 2);
+  gtk_widget_set_sensitive (create_route_button, FALSE);
+
+  if (routemode)
+    {
+      gtk_widget_set_sensitive (select_route_button, FALSE);
+      gtk_clist_clear (GTK_CLIST (myroutelist));
+      for (i = 0; i < routeitems; i++)
+	{
+	  (routelist + i)->dist =
+	    calcdist ((routelist + i)->longitude, (routelist + i)->lat);
+	  text[1] = (routelist + i)->name;
+	  g_snprintf (text0, sizeof (text0), "%d", i + 1);
+	  g_snprintf (text1, sizeof (text1), "%8.5f", (routelist + i)->lat);
+	  g_snprintf (text2, sizeof (text2), "%8.5f",
+		      (routelist + i)->longitude);
+	  g_snprintf (text3, sizeof (text3), "%9.3f", (routelist + i)->dist);
+	  text[0] = text0;
+	  text[2] = text1;
+	  text[3] = text2;
+	  text[4] = text3;
+	  j = gtk_clist_append (GTK_CLIST (myroutelist), (gchar **) text);
+	  gtk_clist_set_foreground (GTK_CLIST (myroutelist), j, &black);
+	}
+    }
+  else
+    routeitems = 0;
+  tooltips = gtk_tooltips_new ();
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), create_route2_button,
+			_
+			("Create a route from all waypoints. Sorted with order in file, not distance."),
+			NULL);
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), select_route_button,
+			_
+			("Click here to start your journey. GpsDrive guides you through the waypoints in this list."),
+			NULL);
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), button,
+			_("Abort your journey"), NULL);
+
+  gtk_widget_show_all (window);
+
+  return TRUE;
+}
+
+
+
+void
+usage ()
+{
+
+/*** Mod by Arms */
+  g_print ("%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s",
+	   "\nCopyright (c) 2001-2004 Fritz Ganter <ganter at ganter.at>"
+	   "\n              Website: http://www.gpsdrive.de\n\n",
+	   _("-v    show version\n"),
+	   _("-h    print this help\n"),
+	   _("-d    turn on debug info\n"),
+	   _("-D    turn on lot of debug info\n"),
+	   _("-e    use Festival-Lite (flite) for speech output\n"),
+	   _("-t    set serial device for GPS i.e. /dev/ttyS1\n"),
+	   _("-o    serial device, pty master, or file for NMEA *output*\n"),
+	   _("-f X  Select friends server, X is i.e. www.gpsdrive.cc\n"),
+	   _("-n    Disable use of direct serial connection\n"),
+	   _("-l X  Select language of the voice,\n"
+	     "      X may be english, spanish or german\n"),
+	   _("-s X  set height of the screen, if autodetection\n"
+	     "      don't satisfy you, X is i.e. 768,600,480,200\n"),
+/*** Mod by Arms */
+	   _("-r X  set width of the screen, only with -s\n"),
+	   _
+	   ("-1    have only 1 button mouse, for example using touchscreen\n"),
+	   _("-a    don't display battery status (i.e. broken APM)\n"),
+	   _
+	   ("-b X  Servername for NMEA server (if gpsd runs on another host)\n"),
+	   _
+	   ("-c X  set start position in simulation mode to waypoint name X\n"),
+	   _("-x    create separate window for menu\n"),
+	   _("-p    set settings for PDA (iPAQ, Yopy...)\n"),
+	   _
+	   ("-i    ignore NMEA checksum (risky, only for broken GPS receivers\n"),
+	   _("-q    disable SQL support\n"),
+	   _("-F    force display of position even it is invalid\n"),
+	   _("-S    don't show splash screen\n"),
+	   _("-E    print out data received from direct serial connection\n"),
+	   _
+	   ("-W x  set x to 1 to switch WAAS/EGNOS on, set to 0 to switch off\n"),
+	   _("-H X  correct altitude, adding this value to altitude\n"),
+	   _("-z    don't display zoom factor and scale\n\n"));
+
+}
+
+/*  load the definitions of the map files */
+
+gint
+loadmapconfig ()
+{
+  gchar mappath[400];
+  FILE *st;
+  gint i;
+  gchar buf[1512], s1[40], s2[40], s3[40], filename[100];
+  gint p, e;
+
+  init_nasa_mapfile ();
+  if (mapdir[strlen (mapdir) - 1] != '/')
+    g_strlcat (mapdir, "/", sizeof (mapdir));
+
+  g_strlcpy (mappath, mapdir, sizeof (mappath));
+  g_strlcat (mappath, "map_koord.txt", sizeof (mappath));
+  st = fopen (mappath, "r");
+  if (st == NULL)
+    {
+      mkdir (homedir, 0777);
+      st = fopen (mappath, "w+");
+      if (st == NULL)
+	{
+	  perror (mappath);
+	  return FALSE;
+	}
+      st = freopen (mappath, "r", st);
+      if (st == NULL)
+	{
+	  perror (mappath);
+	  return FALSE;
+	}
+
+    }
+  if (nrmaps > 0)
+    g_free (maps);
+
+  maps = g_new (mapsstruct, 1);
+  i = nrmaps = 0;
+  havenasa = -1;
+  while ((p = fgets (buf, 1512, st) != 0))
+    {
+      e = sscanf (buf, "%s %s %s %s", filename, s1, s2, s3);
+      if (e == 4)
+	{
+	  g_strdelimit (s1, ",", '.');
+	  g_strdelimit (s2, ",", '.');
+	  g_strdelimit (s3, ",", '.');
+	  g_strlcpy ((maps + i)->filename, filename, 200);
+	  (maps + i)->lat = g_strtod (s1, NULL);
+	  (maps + i)->longitude = g_strtod (s2, NULL);
+	  (maps + i)->scale = strtol (s3, NULL, 0);
+	  i++;
+	  nrmaps = i;
+	  havenasa = -1;
+	  maps = g_renew (mapsstruct, maps, (i + 2));
+	}
+    }
+  fclose (st);
+  needreloadmapconfig = FALSE;
+  return FALSE;
+}
+
+/*  write the definitions of the map files */
+/* Attention! program  writes decimal point as set in locale
+   i.eg 4.678 is in Germany 4,678 !!! */
+void
+savemapconfig ()
+{
+  gchar mappath[400];
+  FILE *st;
+  gint i;
+
+  if (mapdir[strlen (mapdir) - 1] != '/')
+    g_strlcat (mapdir, "/", sizeof (mapdir));
+
+  g_strlcpy (mappath, mapdir, sizeof (mappath));
+  g_strlcat (mappath, "map_koord.txt", sizeof (mappath));
+  st = fopen (mappath, "w");
+  if (st == NULL)
+    {
+      perror (mappath);
+      exit (2);
+    }
+
+  for (i = 0; i < nrmaps; i++)
+    {
+      fprintf (st, "%s %.5f %.5f %ld\n", (maps + i)->filename,
+	       (maps + i)->lat, (maps + i)->longitude, (maps + i)->scale);
+    }
+
+  fclose (st);
+}
+
+
+/* Load track file and displays it */
+gint
+loadtrack_cb (GtkWidget * widget, gpointer datum)
+{
+  GtkWidget *fdialog;
+  gchar buf[1000];
+  fdialog = gtk_file_selection_new (_("Select a track file"));
+  gtk_window_set_modal (GTK_WINDOW (fdialog), TRUE);
+  gtk_window_set_transient_for (GTK_WINDOW (fdialog),
+				GTK_WINDOW (mainwindow));
+
+  gtk_signal_connect (GTK_OBJECT
+		      (GTK_FILE_SELECTION (fdialog)->ok_button),
+		      "clicked", GTK_SIGNAL_FUNC (gettrackfile),
+		      GTK_OBJECT (fdialog));
+  gtk_signal_connect_object (GTK_OBJECT
+			     (GTK_FILE_SELECTION (fdialog)->
+			      cancel_button), "clicked",
+			     GTK_SIGNAL_FUNC (gtk_widget_destroy),
+			     GTK_OBJECT (fdialog));
+
+
+  g_strlcpy (buf, homedir, sizeof (buf));
+  g_strlcat (buf, "track*.sav", sizeof (buf));
+  gtk_file_selection_complete (GTK_FILE_SELECTION (fdialog), buf);
+  gtk_widget_show (fdialog);
+
+  return TRUE;
+}
+
+
+
+/*  load the waypoint from way.txt, if success we display the sel target window */
+void
+savewaypoints ()
+{
+  gchar mappath[400], la[20], lo[20];
+  FILE *st;
+  gint i, e;
+
+
+  g_strlcpy (mappath, homedir, sizeof (mappath));
+  g_strlcat (mappath, activewpfile, sizeof (mappath));
+
+  st = fopen (mappath, "w+");
+  if (st == NULL)
+    {
+      perror (mappath);
+    }
+  else
+    {
+      for (i = 0; i < maxwp; i++)
+	{
+	  g_snprintf (la, sizeof (la), "%10.6f", (wayp + i)->lat);
+	  g_snprintf (lo, sizeof (lo), "%10.6f", (wayp + i)->longitude);
+	  g_strdelimit (la, ",", '.');
+	  g_strdelimit (lo, ",", '.');
+
+	  e =
+	    fprintf (st, "%-22s %10s %11s %s\n", (wayp + i)->name, la, lo,
+		     (wayp + i)->typ);
+	}
+      fclose (st);
+    }
+
+}
+
+
+/*  load the waypoint from way.txt, if success we display the sel target window */
+void
+loadwaypoints ()
+{
+  gchar mappath[400];
+  FILE *st;
+  gint i, e, p, wlan, action, sqlnr;
+  gchar buf[512], slat[80], slong[80], typ[40];
+  struct stat buf2;
+
+  if (waytxtstamp == 0)
+    wayp = g_new (wpstruct, wpsize);
+
+  g_strlcpy (mappath, homedir, sizeof (mappath));
+  if (!sqlflag)
+    g_strlcat (mappath, activewpfile, sizeof (mappath));
+  else
+    g_strlcat (mappath, "way-SQLRESULT.txt", sizeof (mappath));
+
+  maxwp = 0;
+  sqlnr = -1;
+  st = fopen (mappath, "r");
+  if (st == NULL)
+    {
+      perror (mappath);
+    }
+  else
+    {
+      if (debug)
+	g_print ("\nsqlflag: %d, load waypoint file %s\n", sqlflag, mappath);
+
+      i = 0;
+      while ((p = fgets (buf, 512, st) != 0))
+	{
+	  e =
+	    sscanf (buf, "%s %s %s %s %d %d %d\n", (wayp + i)->name, slat,
+		    slong, typ, &wlan, &action, &sqlnr);
+	  (wayp + i)->lat = g_strtod (slat, NULL);
+	  (wayp + i)->longitude = g_strtod (slong, NULL);
+/*  limit waypoint name to 20 chars */
+	  (wayp + i)->name[20] = 0;
+	  g_strlcpy ((wayp + i)->typ, "", 40);
+	  (wayp + i)->wlan = 0;
+	  (wayp + i)->action = 0;
+	  (wayp + i)->sqlnr = -1;
+
+	  if (e >= 3)
+	    {
+	      (wayp + i)->dist = 0;
+
+	      if (e >= 4)
+		g_strlcpy ((wayp + i)->typ, typ, 40);
+
+	      if (e >= 5)
+		(wayp + i)->wlan = wlan;
+	      if (e >= 6)
+		(wayp + i)->action = action;
+	      if (e >= 7)
+		(wayp + i)->sqlnr = sqlnr;
+
+
+	      if (!sqlflag)
+		{
+		  if ((strncmp ((wayp + i)->name, "R-", 2)) == 0)
+		    (wayp + i)->action = 1;
+		}
+
+	      i++;
+	      maxwp = i;
+/*
+	      if (!sqlflag)
+		{
+		  g_snprintf (s, sizeof(s), "%s %d", _("Show _WP"), maxwp);
+		  if (GTK_IS_BUTTON (GTK_BUTTON (wpbt)))
+		    gtk_button_set_label (GTK_BUTTON (wpbt), s);
+		  else
+		    g_print ("kein button!\n");
+		}
+*/
+	      if (maxwp >= wpsize)
+		{
+		  wpsize += 1000;
+		  wayp = g_renew (wpstruct, wayp, wpsize);
+		}
+
+	    }
+	}
+      fclose (st);
+
+/* Check for changed way.txt file */
+      stat (mappath, &buf2);
+      waytxtstamp = buf2.st_mtime;
+
+    }
+
+}
+
+
+
+gint
+initgps ()
+{
+  struct sockaddr_in server;
+  struct hostent *server_data;
+
+/*  We test for gpsd serving */
+  {
+/*  open socket to port */
+    if (sock != -1)
+      {
+	close (sock);
+	sock = -1;
+      }
+    sock = socket (AF_INET, SOCK_STREAM, 0);
+    if (sock < 0)
+      {
+	perror (_("can't open socket for port "));
+	fprintf (stderr, "error: %d\n", errno);
+	simmode = TRUE;
+	haveNMEA = FALSE;
+	newsatslevel = TRUE;
+	if (simpos_timeout == 0)
+	  simpos_timeout =
+	    gtk_timeout_add (300, (GtkFunction) simulated_pos, 0);
+	memset (satlist, 0, sizeof (satlist));
+	memset (satlistdisp, 0, sizeof (satlist));
+	numsats = satsavail = 0;
+	if (satsimage != NULL)
+	  g_object_unref (satsimage);
+	satsimage = NULL;
+	gtk_widget_draw (drawing_sats, NULL);	/* this  calls expose handler */
+	return 0;
+      }
+    server.sin_family = AF_INET;
+/*  We retrieve the IP address of the server from its name: */
+    if ((server_data = gethostbyname (SERVERNAME)) == NULL)
+      {
+	fprintf (stderr, _("\nCannot connect to %s: unknown host\n"),
+		 SERVERNAME);
+	exit (1);
+      }
+    memcpy (&server.sin_addr, server_data->h_addr, server_data->h_length);
+    server.sin_port = htons (SERVERPORT2);
+
+/*  We initiate the connection  */
+    if (connect (sock, (struct sockaddr *) &server, sizeof server) < 0)
+      {
+	server.sin_port = htons (SERVERPORT);	/* We try second port */
+/*  We initiate the connection  */
+	if (connect (sock, (struct sockaddr *) &server, sizeof server) < 0)
+	  {
+	    haveNMEA = FALSE;
+	    simmode = TRUE;
+	  }
+	else
+	  {
+	    haveNMEA = TRUE;
+	    simmode = FALSE;
+	    g_strlcpy (nmeamodeandport, _("NMEA Mode, Port 2222"),
+		       sizeof (nmeamodeandport));
+	    g_strlcat (nmeamodeandport, "/", sizeof (nmeamodeandport));
+	    g_strlcat (nmeamodeandport, gpsdservername,
+		       sizeof (nmeamodeandport));
+	  }
+      }
+    else
+      {
+	g_strlcpy (nmeamodeandport, _("NMEA Mode, Port 2947"),
+		   sizeof (nmeamodeandport));
+	g_strlcat (nmeamodeandport, "/", sizeof (nmeamodeandport));
+	g_strlcat (nmeamodeandport, gpsdservername, sizeof (nmeamodeandport));
+	write (sock, "R\n", 2);
+	haveNMEA = TRUE;
+	simmode = FALSE;
+      }
+
+
+  }
+
+  haveGARMIN = FALSE;
+
+#ifdef NOGARMIN
+  g_print (_("\nno garmin support compiled in\n"));
+  testgarmin = FALSE;
+#else
+  if (!testgarmin)
+    g_print (_("\nGarmin protocol detection disabled!\n"));
+#endif
+
+  if ((!haveNMEA) && (testgarmin))
+    {
+      typedef struct
+      {
+	gchar *a1;
+	gchar *a2;
+	gchar *a3;
+      }
+      argument;
+      argument *argumente;
+      gint e;
+
+      argumente = g_new (argument, 1);
+      argumente->a1 = "-p";
+      argumente->a2 = "-p";
+      argumente->a3 = 0;
+
+      e = garblemain (1, (char **) argumente);
+
+      if (e == -2)
+	{
+	  e = garblemain (1, (char **) argumente);
+	  if (e == -2)
+	    {
+	      haveGARMIN = FALSE;
+	      simmode = TRUE;
+	    }
+	  else
+	    {
+	      haveGARMIN = TRUE;
+	      simmode = FALSE;
+	    }
+	}
+      else
+	{
+	  haveGARMIN = TRUE;
+	  simmode = FALSE;
+	}
+      g_free (argumente);
+
+      if (haveGARMIN)		/* test it again */
+	{
+	  argumente = g_new (argument, 1);
+	  argumente->a1 = "-p";
+	  argumente->a2 = "-p";
+	  argumente->a3 = 0;
+
+	  e = garblemain (1, (char **) argumente);
+	  if (e == -1)
+	    {
+	      haveGARMIN = FALSE;
+	      simmode = TRUE;
+	    }
+	}
+      if (haveGARMIN)
+	g_print
+	  ("\nAutomatic Garmin detection found GARMIN-mode receiver \n");
+      else
+	g_print ("\nno GARMIN-mode receiver found\n");
+
+    }
+  if (haveGARMIN || haveNMEA)
+    {
+      simmode = FALSE;
+      if (simpos_timeout != 0)
+	{
+	  gtk_timeout_remove (simpos_timeout);
+	  simpos_timeout = 0;
+	}
+    }
+  return FALSE;			/* to remove timer */
+}
+
+
+/*  on a USR2 signal, re-start the GPS connection  */
+
+void
+usr2handler (int sig)
+{
+  g_print ("\ngot SIGUSR2\n");
+  initgps ();
+}
+
+
+/*  Main program */
+int
+main (int argc, char *argv[])
+{
+  GtkWidget *vbig, *vbig1, *vbox, *vbox2, *vbox3, *vbox4, *hbig, *hbox2,
+    *hbox2a, *hbox2b, *vmenubig;
+  GtkWidget *quit, *zoomin, *hbox3, *vboxlow, *hboxlow;
+  GtkWidget *menuwin = NULL, *menuwin2 = NULL;
+  GtkWidget *zoomout, *sel_target, *vtable, *wplabeltable, *alignment1;
+  GtkWidget *alignment2, *alignment3, *alignment4;
+  gchar maintitle[100];
+/*   GdkColor farbe;   */
+  GdkRectangle rectangle = {
+    0, 0, SCREEN_X, SCREEN_Y
+  };
+  const gchar *hd, *pro;
+  gchar buf[500];
+
+/*** Mod by Arms */
+  gint i, h, w;
+  GtkWidget *table1, *wi;
+  GtkTooltips *tooltips;
+  gchar s1[100], s2[100], *p, *localestring, **lstr, lstr2[200];
+  /*** Mod by Arms */
+  GtkRequisition requ, *reqptr;
+  GtkWidget *mainnotebook;
+#ifndef NOPLUGINS
+  GModule *mod1;
+  void (*modulefunction) ();
+  gchar *modpath;
+#endif
+  void *handle;
+  char *error, s3[200];
+  struct tm *lt;
+  time_t local_time, gmt_time;
+/*   GtkAccelGroup *accel_group; */
+  gint nmenu_items = sizeof (main_menu) / sizeof (main_menu[0]);
+  GdkPixbuf *mainwindow_icon_pixbuf;
+  gdouble f;
+#ifdef USETELEATLAS
+  GtkWidget *navibt;
+#else
+  GtkWidget *helpbt;
+#endif
+
+  tzset ();
+  gmt_time = time (NULL);
+
+/*   printf("dbtypelist: %d, auxicons.name: %d\n",sizeof(dbtypelist[0]),sizeof(auxicons->name)); */
+/*   exit(0); */
+
+  lt = gmtime (&gmt_time);
+  local_time = mktime (lt);
+  zone = (gmt_time - local_time) / 3600;
+/*   fprintf(stderr,"\n zeitzone: %d\n",zone); */
+
+/*   zone = st->tm_gmtoff / 3600; */
+/*  initialize variables */
+/*  Hamburg */
+  srand (gmt_time);
+  f = 0.02 * (0.5 - rand () / (RAND_MAX + 1.0));
+  current_lat = zero_lat = 53.623672 + f;
+  f = 0.02 * (0.5 - rand () / (RAND_MAX + 1.0));
+  current_long = zero_long = 10.055441 + f;
+/*    zero_lat and zero_long are overwritten by gpsdriverc,  */
+  tripreset ();
+
+  g_strlcpy (cputempstring, "??", sizeof (cputempstring));
+  g_strlcpy (dgpsserver, "dgps.wsrcc.com", sizeof (dgpsserver));
+  g_strlcpy (dgpsport, "2104", sizeof (dgpsport));
+  g_strlcpy (gpsdservername, "127.0.0.1", sizeof (gpsdservername));
+  direction = angle_to_destination = 0;
+  g_strlcpy (targetname, "     ", sizeof (targetname));
+  g_strlcpy (utctime, "n/a", sizeof (utctime));
+  g_strlcpy (oldangle, "none", sizeof (oldangle));
+  pixelfact = MAPSCALE / PIXELFACT;
+  g_strlcpy (oldfilename, "", sizeof (oldfilename));
+  simmode = maploaded = FALSE;
+  haveNMEA = FALSE;
+  havepos = gblink = blink = FALSE;
+  haveposcount = haveGARMIN = debug = 0;
+  zoom = 1;
+  milesflag = iszoomed = FALSE;
+  sel_target = NULL;
+  g_strlcpy (wplabelfont, "Sans 11", sizeof (wplabelfont));
+  g_strlcpy (bigfont, "Sans bold 26", sizeof (bigfont));
+  g_strlcpy (friendsserverip, "127.0.0.1", sizeof (friendsserverip));
+  g_strlcpy (friendsserverfqn, "www.gpsdrive.cc", sizeof (friendsserverfqn));
+  g_strlcpy (friendsidstring, "XXX", sizeof (friendsidstring));
+
+  signal (SIGUSR2, usr2handler);
+  timer = g_timer_new ();
+  disttimer = g_timer_new ();
+  g_timer_start (timer);
+  g_timer_start (disttimer);
+  memset (satlist, 0, sizeof (satlist));
+  memset (satlistdisp, 0, sizeof (satlist));
+  buffer = g_new (char, 2010);
+  big = g_new (char, MAXBIG + 10);
+
+
+  timeoutcount = lastp = bigp = bigpRME = bigpGSA = bigpGSV = bigpGGA = 0;
+  lastp = lastpGGA = lastpGSV = lastpRME = lastpGSA = 0;
+  downloadfilelen = gcount = xoff = yoff = 0;
+  hours = minutes = 99;
+  milesconv = 1.0;
+/* set default color to navyblue */
+  g_strlcpy (bluecolor, "navyblue", sizeof (bluecolor));
+  g_strlcpy (trackcolor, "green3", sizeof (trackcolor));
+  g_strlcpy (friendscolor, "orange", sizeof (friendscolor));
+  g_strlcpy (messagename, "", sizeof (messagename));
+  g_strlcpy (messageack, "", sizeof (messageack));
+  g_strlcpy (messagesendtext, "", sizeof (messagesendtext));
+
+  downloadwindowactive = downloadactive = importactive = FALSE;
+  g_strlcpy (lastradar, "", sizeof (lastradar));
+  g_strlcpy (lastradar2, "", sizeof (lastradar2));
+  g_strlcpy (activewpfile, "way.txt", sizeof (activewpfile));
+  g_strlcpy (dbhost, "localhost", sizeof (dbhost));
+  g_strlcpy (dbuser, "gast", sizeof (dbuser));
+  g_strlcpy (dbpass, "gast", sizeof (dbpass));
+  g_strlcpy (dbname, "geoinfo", sizeof (dbname));
+  g_strlcpy (dbtable, "waypoints", sizeof (dbtable));
+  dbdistance = 2000.0;
+  dbusedist = TRUE;
+  g_strlcpy (loctime, "n/a", sizeof (loctime));
+  voicelang = english;
+  track = g_new0 (GdkSegment, 100000);
+  trackshadow = g_new0 (GdkSegment, 100000);
+  tracknr = 0;
+  trackcoord = g_new0 (trackcoordstruct, 100000);
+  trackcoordnr = 0;
+  tracklimit = trackcoordlimit = 100000;
+  routelist = g_new0 (wpstruct, 100);
+
+
+
+  earthr = calcR (current_lat);
+/*    homedir is the directory where the maps and other  */
+/*  files are stored (~/.gpsdrive) */
+  hd = g_get_home_dir ();
+  g_strlcpy (homedir, hd, sizeof (homedir));
+  g_strlcat (homedir, "/.gpsdrive/", sizeof (homedir));
+  g_strlcpy (mapdir, homedir, sizeof (mapdir));
+
+/*  all default values must be set BEFORE readconfig! */
+  g_strlcpy (setpositionname, "", sizeof (setpositionname));
+  g_strlcpy (serialdev, "/dev/ttyS3", sizeof (serialdev));
+
+/* setup signal handler */
+  signal (SIGUSR1, signalposreq);
+
+  usesql = TRUE;
+// It seems like this doesnt work on cygwin unless the dlopen comes first..-jc
+  if (usesql)
+    {
+      handle = dlopen ("/usr/local/lib/libmysqlclient.dll", RTLD_LAZY);
+      if (!handle)
+	handle =
+	  dlopen ("@PREFIX@/lib/mysql/libmysqlclient.10.dylib", RTLD_LAZY);
+      if (!handle)
+	handle = dlopen ("libmysqlclient.so", RTLD_LAZY);
+      if (!handle)
+	handle = dlopen ("libmysqlclient.so.10", RTLD_LAZY);
+      if (!handle)
+	handle = dlopen ("/opt/lib/mysql/libmysqlclient.so.10", RTLD_LAZY);
+      if (!handle)
+	handle = dlopen ("/opt/mysql/lib/libmysqlclient.so.10", RTLD_LAZY);
+      if (!handle)
+	handle = dlopen ("/usr/lib/mysql/libmysqlclient.so.10", RTLD_LAZY);
+      if (!handle)
+	handle = dlopen ("/usr/lib/libmysqlclient.so.10", RTLD_LAZY);
+      if (!handle)
+	handle =
+	  dlopen ("/usr/local/lib/mysql/libmysqlclient.so.10", RTLD_LAZY);
+      if (!handle)
+	handle = dlopen ("/usr/local/mysql/libmysqlclient.so.10", RTLD_LAZY);
+      if (!handle)
+	handle = dlopen ("/usr/local/lib/libmysqlclient.so.10", RTLD_LAZY);
+      if (!handle)
+	handle = dlopen ("/sw/lib/libmysqlclient.dylib", RTLD_LAZY);
+
+      if (handle)
+	{
+	  dl_mysql_error = dlsym (handle, "mysql_error");
+	  if ((error = dlerror ()) != NULL)
+	    {
+	      fprintf (stderr, "%s\n", error);
+	      usesql = FALSE;
+	    }
+
+	  dl_mysql_init = dlsym (handle, "mysql_init");
+	  if ((error = dlerror ()) != NULL)
+	    {
+	      fprintf (stderr, "%s\n", error);
+	      usesql = FALSE;
+	    }
+
+
+	  dl_mysql_real_connect = dlsym (handle, "mysql_real_connect");
+	  if ((error = dlerror ()) != NULL)
+	    {
+	      fprintf (stderr, "%s\n", error);
+	      usesql = FALSE;
+	    }
+
+
+	  dl_mysql_close = dlsym (handle, "mysql_close");
+	  if ((error = dlerror ()) != NULL)
+	    {
+	      fprintf (stderr, "%s\n", error);
+	      usesql = FALSE;
+	    }
+
+
+	  dl_mysql_query = dlsym (handle, "mysql_query");
+	  if ((error = dlerror ()) != NULL)
+	    {
+	      fprintf (stderr, "%s\n", error);
+	      usesql = FALSE;
+	    }
+
+
+	  dl_mysql_affected_rows = dlsym (handle, "mysql_affected_rows");
+	  if ((error = dlerror ()) != NULL)
+	    {
+	      fprintf (stderr, "%s\n", error);
+	      usesql = FALSE;
+	    }
+
+
+	  dl_mysql_store_result = dlsym (handle, "mysql_store_result");
+	  if ((error = dlerror ()) != NULL)
+	    {
+	      fprintf (stderr, "%s\n", error);
+	      usesql = FALSE;
+	    }
+
+
+	  dl_mysql_fetch_row = dlsym (handle, "mysql_fetch_row");
+	  if ((error = dlerror ()) != NULL)
+	    {
+	      fprintf (stderr, "%s\n", error);
+	      usesql = FALSE;
+	    }
+
+
+	  dl_mysql_free_result = dlsym (handle, "mysql_free_result");
+	  if ((error = dlerror ()) != NULL)
+	    {
+	      fprintf (stderr, "%s\n", error);
+	      usesql = FALSE;
+	    }
+
+
+	  dl_mysql_eof = dlsym (handle, "mysql_eof");
+	  if ((error = dlerror ()) != NULL)
+	    {
+	      fprintf (stderr, "%s\n", error);
+	      usesql = FALSE;
+	    }
+	}
+      else if ((error = dlerror ()) != NULL)
+	{
+	  fprintf (stderr, _("\nlibmysqlclient.so not found.\n"));
+	  usesql = FALSE;
+	}
+/*       dlclose(handle); */
+    }
+  if (!usesql)
+    fprintf (stderr, _("\nMySQL support disabled.\n"));
+
+/*  I18l */
+
+/*  Detect the language for voice output */
+  localestring = setlocale (LC_ALL, "");
+  if (localestring == NULL)
+    localestring = setlocale (LC_MESSAGES, "");
+  if (localestring != NULL)
+    {
+      lstr = g_strsplit (localestring, ";", 50);
+      g_strlcpy (lstr2, "", 50);
+      for (i = 0; i < 50; i++)
+	if (lstr[i] != NULL)
+	  {
+	    if ((strstr (lstr[i], "LC_MESSAGES")) != NULL)
+	      {
+		g_strlcpy (lstr2, lstr[i], 50);
+		break;
+	      }
+	  }
+	else
+	  {
+	    g_strlcpy (lstr2, lstr[i - 1], 50);
+	    break;
+	  }
+      g_strfreev (lstr);
+    }
+  if ((strstr (lstr2, "de_")) != NULL)
+    voicelang = german;
+  else if ((strstr (lstr2, "es_")) != NULL)
+    voicelang = spanish;
+  else
+    voicelang = english;
+
+  g_strlcpy (friendsname, "", sizeof (friendsname));
+
+
+
+  readconfig ();
+
+/*   we have to set expedia to false, because its not working anymore */
+/*   expedia=FALSE; */
+/*   defaultserver=0; */
+
+  real_screen_x = 640;
+  real_screen_y = 512;
+  target_long = current_long + 0.00001;
+  target_lat = current_lat + 0.00001;
+  gdk_color_parse (trackcolor, &trackcolorv);
+  gdk_color_parse (friendscolor, &orange);
+
+/*  load waypoints before locale is set! */
+/*  Attention! In this file the decimal point is always a '.' !! */
+
+/*  setting defaults if setting is not yet in configuraton file */
+  if ((milesflag + metricflag + nauticflag) == 0)
+    metricflag = TRUE;
+
+
+
+/*  load mapfile configurations */
+/*  Attention! In this file the decimal point is that what locale says, 
+i.e. '.' in english, ',' in german!! */
+  loadmapconfig ();
+
+/* PORTING */
+  p = bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
+  bind_textdomain_codeset (PACKAGE, "utf8");
+  p = textdomain (GETTEXT_PACKAGE);
+  p = textdomain (NULL);
+/*    needed for right decimal delimiter ('.' or ',') */
+  mylocale = NULL;
+  localedecimal = '.';
+  mylocale = localeconv ();
+  if (mylocale != NULL)
+    localedecimal = (char) mylocale->decimal_point[0];
+
+/*    Setting locale for correct Umlauts */
+  gtk_set_locale ();
+/*  initialization for GTK+ */
+
+
+  gtk_init (&argc, &argv);
+/* Needed 4 hours to find out that this is IMPORTANT!!!! */
+  gdk_rgb_init ();
+  h = gdk_screen_height ();
+  w = gdk_screen_width ();
+
+  /* parse cmd args */
+  do
+    {
+/*** Mod by Arms */
+      i = getopt (argc, argv, "W:ESA:ab:c:zx1qivdDFepH:hnf:l:t:s:o:r:?");
+      switch (i)
+	{
+	case 'a':
+	  disableapm = TRUE;
+	  break;
+	case 'S':
+	  nosplash = TRUE;
+	  break;
+	case 'E':
+	  nmeaverbose = TRUE;
+	  break;
+	case 'q':
+	  usesql = FALSE;
+	  break;
+	case 'd':
+	  debug = TRUE;
+	  break;
+	case 'D':
+	  mydebug = TRUE;
+	  debug = TRUE;
+	  break;
+	case 'e':
+	  useflite = TRUE;
+	  break;
+	case 'i':
+	  ignorechecksum = TRUE;
+	  g_print ("\nWARNING: NMEA checksum test switched off!\n\n");
+	  break;
+	case 'x':
+	  extrawinmenu = TRUE;
+	  break;
+	case 'p':
+	  pdamode = TRUE;
+	  break;
+	case '1':
+	  onemousebutton = TRUE;
+	  break;
+	case 'v':
+	  printf ("\ngpsdrive (c) 2001-2004 Fritz Ganter <ganter at ganter.at>\n"
+		  "\nVersion %s\n%s\n\n", VERSION, rcsid);
+	  exit (0);
+	  break;
+	case 't':
+	  g_strlcpy (serialdev, optarg, sizeof (serialdev));
+	  break;
+	case 'A':
+	  alarm_dist = strtod (optarg, NULL);
+	  break;
+	case 'b':
+	  g_strlcpy (gpsdservername, optarg, sizeof (gpsdservername));
+	  break;
+	case 'c':
+	  g_strlcpy (setpositionname, optarg, sizeof (setpositionname));
+	  break;
+	case 'f':
+	case 'n':
+	  disableserialcl = TRUE;
+	  break;
+	case 's':
+	  h = strtol (optarg, NULL, 0);
+	  break;
+	case 'W':
+	  switch (strtol (optarg, NULL, 0))
+	    {
+	    case 0:
+	      egnosoff = TRUE;
+	      break;
+	    case 1:
+	      egnoson = TRUE;
+	      break;
+	    }
+	  break;
+	case 'l':
+	  if (!strcmp (optarg, "english"))
+	    voicelang = english;
+	  else if (!strcmp (optarg, "german"))
+	    voicelang = german;
+	  else if (!strcmp (optarg, "spanish"))
+	    voicelang = spanish;
+	  else
+	    {
+	      usage ();
+	      g_print (_
+		       ("\nYou can only choose between english, spanish and german\n\n"));
+	      exit (0);
+	    }
+	  break;
+	case 'o':
+	  nmeaout = opennmea (optarg);
+	  break;
+	case 'h':
+	  usage ();
+	  exit (0);
+	  break;
+	case 'H':
+	  normalnull = strtol (optarg, NULL, 0);
+	  break;
+	case '?':
+	  usage ();
+	  exit (0);
+	  break;
+/*** Mod by Arms */
+	case 'r':
+	  w = strtol (optarg, NULL, 0);
+	  break;
+	case 'z':
+	  zoomscale = FALSE;
+	  break;
+	case 'F':
+	  forcehavepos = TRUE;
+	  break;
+
+	}
+    }
+  while (i != -1);
+
+  if ((strlen (friendsname) == 0))
+    g_strlcpy (friendsname, _("EnterYourName"), sizeof (friendsname));
+
+
+  kismetpixbuf = gdk_pixbuf_new_from_xpm_data ((const char **) kismet_xpm);
+  openwlanpixbuf = gdk_pixbuf_new_from_xpm_data ((const char **) open_xpm);
+
+  closedwlanpixbuf =
+    gdk_pixbuf_new_from_xpm_data ((const char **) closed_xpm);
+
+  iconpixbuf[0] = gdk_pixbuf_new_from_xpm_data ((const char **) rest_xpm);
+  iconpixbuf[1] =
+    gdk_pixbuf_new_from_xpm_data ((const char **) mcdonalds_xpm);
+  iconpixbuf[2] = gdk_pixbuf_new_from_xpm_data ((const char **) hotel_xpm);
+  iconpixbuf[3] =
+    gdk_pixbuf_new_from_xpm_data ((const char **) burgerking_xpm);
+  iconpixbuf[4] = gdk_pixbuf_new_from_xpm_data ((const char **) shop_xpm);
+  iconpixbuf[5] = gdk_pixbuf_new_from_xpm_data ((const char **) monu_xpm);
+  iconpixbuf[6] = gdk_pixbuf_new_from_xpm_data ((const char **) girls_xpm);
+  iconpixbuf[7] =
+    gdk_pixbuf_new_from_xpm_data ((const char **) speedtrap_xpm);
+  iconpixbuf[8] = gdk_pixbuf_new_from_xpm_data ((const char **) airport_xpm);
+  iconpixbuf[9] = gdk_pixbuf_new_from_xpm_data ((const char **) golf_xpm);
+  iconpixbuf[10] = gdk_pixbuf_new_from_xpm_data ((const char **) fuel_xpm);
+  iconpixbuf[11] = gdk_pixbuf_new_from_xpm_data ((const char **) cafe_xpm);
+  iconpixbuf[12] =
+    gdk_pixbuf_new_from_xpm_data ((const char **) geocache_xpm);
+
+
+
+/*  Build array for earth radii */
+  for (i = -100; i <= 100; i++)
+    Ra[i + 100] = calcR (i);
+
+/*** Mod by Arms (move) */
+/*    g_print ("\nHÂŽöhe: %d\n", h); */
+
+
+/* parse args moved up */
+
+  gethostname (hostname, 256);
+  proxyport = 80;
+  haveproxy = FALSE;
+
+  pro = g_getenv ("HTTP_PROXY");
+  if (pro == NULL)
+    pro = g_getenv ("http_proxy");
+
+  if (debug)
+    printf ("\ngpsdrive (c) 2001-2004 Fritz Ganter <ganter at ganter.at>\n"
+	    "\nVersion %s\n%s\n\n", VERSION, rcsid);
+
+  if (pro)
+    {
+      p = (char *) pro;
+      g_strdelimit (p, ":/", ' ');
+
+      i = sscanf (p, "%s %s %d", s1, s2, &proxyport);
+      if (i == 3)
+	{
+	  haveproxy = TRUE;
+	  g_strlcpy (proxy, s2, sizeof (proxy));
+	  if (debug)
+	    g_print (_("\nUsing proxy: %s on port %d"), proxy, proxyport);
+	}
+      else
+	{
+	  g_print (_("\nInvalid enviroment variable HTTP_PROXY, "
+		     "must be in format: http://proxy.provider.de:3128"));
+	}
+    }
+
+  if (debug)
+    g_print ("\nGpsDrive version %s\n%s\n", VERSION, rcsid);
+
+/*  show splash screen */
+  if (!nosplash)
+    splash ();
+
+/* init sql support */
+  if (usesql)
+    usesql = sqlinit ();
+
+  if (!usesql)
+    sqlflag = FALSE;
+
+/* loadwaypoints moved down */
+
+
+/* Create toplevel window */
+
+  PSIZE = 50;
+  SMALLMENU = 0;
+/*** Mod by Arms */
+  PADDING = 1;
+  if (h >= 1024)		/* 1280x1024 */
+    {
+      real_screen_x = 840;
+      real_screen_y = 600;
+    }
+  else if (h >= 768)		/* 1024x768 */
+    {
+      real_screen_x = 800;
+      real_screen_y = 540;
+    }
+  else if (h >= 600)		/* 800x600 */
+    {
+      real_screen_x = 690;
+      real_screen_y = 455;
+      PADDING = 0;
+    }
+  else if (h >= 480)		/* 640x480 */
+    {
+/*** Mod by Arms */
+      if (w == 0)
+	real_screen_x = 630;
+      else
+	real_screen_x = w - XMINUS;
+      real_screen_y = h - YMINUS;
+    }
+  else if (h < 480)
+    {
+/*** Mod by Arms */
+      if (w == 0)
+	real_screen_x = 220;
+      else
+	real_screen_x = w - XMINUS;
+      real_screen_y = h - YMINUS;
+      PSIZE = 25;
+      SMALLMENU = 1;
+/*** Mod by Arms */
+      PADDING = 0;
+    }
+
+  if ((extrawinmenu) && (w != 0))
+    {
+      real_screen_x += XMINUS - 10;
+      real_screen_y += YMINUS - 30;
+    }
+
+/*   g_print ("\nx: %d, y:%d", h, w); */
+  if (((w == 240) && (h == 320)) || ((h == 240) && (w == 320)))
+    {
+      pdamode = TRUE;
+/*       SMALLMENU = 1; */
+      real_screen_x = w - 8;
+      real_screen_y = h - 70;
+    }
+  if (pdamode)
+    {
+      extrawinmenu = TRUE;
+      PADDING = 0;
+//KCFX          
+      g_strlcpy (wplabelfont, "Sans 8", sizeof (wplabelfont));
+      g_strlcpy (bigfont, "Sans bold 16", sizeof (bigfont));
+      g_print ("\nPDA mode\n");
+    }
+
+  if (real_screen_x < real_screen_y)
+    borderlimit = real_screen_x / 5;
+  else
+    borderlimit = real_screen_y / 5;
+
+  if (borderlimit < 30)
+    borderlimit = 30;
+
+  SCREEN_X_2 = SCREEN_X / 2;
+  SCREEN_Y_2 = SCREEN_Y / 2;
+  PSIZE = 50;
+  posx = SCREEN_X_2;
+  posy = SCREEN_Y_2;
+
+//KCFX
+/*   if (pdamode) mod_setupcounter++;  */
+// Fritz commented out above line
+#ifndef NOPLUGINS
+  useplugins = TRUE;
+#endif
+  if (pdamode)
+    useplugins = FALSE;
+
+  if (usesql)
+    {
+      mod_setupcounter++;
+      setupfunction[mod_setupcounter] = &(sqlsetup);
+      sqlplace = mod_setupcounter;
+    }
+  mod_setupcounter++;
+  setupfunction[mod_setupcounter] = &(friendssetup);
+  friendsplace = mod_setupcounter;
+
+#ifndef NOPLUGINS
+  if (useplugins)
+    {
+/*  fly module */
+      modpath = g_module_build_path (LIBDIR, "libfly.so");
+      mod1 = g_module_open (".libs/libfly.so", 0);
+      if (mod1 == NULL)
+	mod1 = g_module_open (modpath, 0);
+      if (mod1 != NULL)
+	{
+	  gint *modulever;
+	  mod_setupcounter++;
+
+	  i =
+	    g_module_symbol (mod1, "moduleversion", (gpointer *) & modulever);
+	  g_print (" (Version %d)", *modulever);
+	  i =
+	    g_module_symbol (mod1, "modulesetup",
+			     (gpointer *) & modulefunction);
+	  setupfunction[mod_setupcounter] = modulefunction;
+	}
+
+/*  nautic module */
+      modpath = g_module_build_path (LIBDIR, "libnautic.so");
+      mod1 = g_module_open (".libs/libnautic.so", 0);
+      if (mod1 == NULL)
+	mod1 = g_module_open (modpath, 0);
+      if (mod1 != NULL)
+	{
+	  gint *modulever;
+	  mod_setupcounter++;
+	  i =
+	    g_module_symbol (mod1, "moduleversion", (gpointer *) & modulever);
+	  g_print (" (Version %d)", *modulever);
+	  i =
+	    g_module_symbol (mod1, "modulesetup",
+			     (gpointer *) & modulefunction);
+	  setupfunction[mod_setupcounter] = modulefunction;
+	}
+    }
+#endif
+  fprintf (stderr, "\n");
+
+  mainwindow = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+  if (!nosplash)
+    gtk_window_set_transient_for (GTK_WINDOW (splash_window),
+				  GTK_WINDOW (mainwindow));
+
+
+
+  g_snprintf (maintitle, sizeof (maintitle),
+	      "%s v%s  \xc2\xa9 2001-2004 Fritz Ganter", "GpsDrive", VERSION);
+
+  gtk_window_set_title (GTK_WINDOW (mainwindow), maintitle);
+  gtk_container_set_border_width (GTK_CONTAINER (mainwindow), 0);
+  gtk_window_set_position (GTK_WINDOW (mainwindow), GTK_WIN_POS_CENTER);
+  gtk_signal_connect (GTK_OBJECT (mainwindow), "delete_event",
+		      GTK_SIGNAL_FUNC (quit_program), NULL);
+
+  gtk_signal_connect (GTK_OBJECT (mainwindow), "key_press_event",
+		      GTK_SIGNAL_FUNC (key_cb), NULL);
+
+  status = gtk_statusbar_new ();
+  statusid = gtk_statusbar_get_context_id (GTK_STATUSBAR (status), "main");
+
+  gtk_statusbar_push (GTK_STATUSBAR (status), statusid,
+		      _("Gpsdrive-2 (c)2001-2004 F.Ganter"));
+  if (!useflite)
+    havespeechout = speech_out_init ();
+  else
+    havespeechout = TRUE;
+
+  if (havespeechout)
+    gtk_statusbar_push (GTK_STATUSBAR (status), statusid,
+			_("Using speech output"));
+  if (!useflite)
+    switch (voicelang)
+      {
+      case english:
+	speech_out_speek_raw (FESTIVAL_ENGLISH_INIT);
+	break;
+      case spanish:
+	speech_out_speek_raw (FESTIVAL_SPANISH_INIT);
+	break;
+      case german:
+	speech_out_speek_raw (FESTIVAL_GERMAN_INIT);
+	break;
+      }
+
+/*** Mod by Arms */
+  vbig = gtk_vbox_new (FALSE, 0 * PADDING);
+  vmenubig = gtk_vbox_new (FALSE, 0 * PADDING);
+/*** Mod by Arms */
+  hbig = gtk_hbox_new (FALSE, 0 * PADDING);
+/*   accel_group = gtk_accel_group_new (); */
+  item_factory = gtk_item_factory_new (GTK_TYPE_MENU_BAR, "<main>", NULL);
+/*  ÂŽÜbersetzen laut Bluefish Code */
+  gtk_item_factory_set_translate_func (item_factory, menu_translate, "<main>",
+				       NULL);
+  gtk_item_factory_create_items (item_factory, nmenu_items, main_menu, NULL);
+/*   gtk_accel_group_attach (accel_group, GTK_OBJECT (hauptfenster)); */
+//gtk_accel_group_attach (accel_group, GTK_OBJECT (mainwindow));
+//HRM: above must be new in GTK 2.0!
+
+  menubar = gtk_item_factory_get_widget (item_factory, "<main>");
+
+  wi =
+    gtk_item_factory_get_item (item_factory,
+			       N_("/Misc. Menu/Maps/Map Manager"));
+  gtk_widget_set_sensitive (wi, FALSE);
+  wi =
+    gtk_item_factory_get_item (item_factory,
+			       N_("/Misc. Menu/Waypoint Manager"));
+  gtk_widget_set_sensitive (wi, FALSE);
+
+/*  download map button */
+  downloadbt = gtk_button_new_with_mnemonic (_("_Download map"));
+/*   gtk_button_set_use_underline (GTK_BUTTON(downloadbt),TRUE); */
+/*   gtk_label_set_text_with_mnemonic(GTK_LABEL(downloadbt),_("Karte __Download")); */
+/*    gtk_label_set_mnemonic_widget(GTK_LABEL(GTK_BUTTON(downloadbt)),GTK_WIDGET (downloadbt));    */
+
+  gtk_signal_connect (GTK_OBJECT (downloadbt),
+		      "clicked", G_CALLBACK (download_cb), (gpointer) 1);
+/*  Quit button */
+/* PORTING */
+/*   quit = gtk_button_new_with_label (_("Quit")); */
+  quit = gtk_button_new_from_stock (GTK_STOCK_QUIT);
+  gtk_button_set_use_underline (GTK_BUTTON (quit), TRUE);
+
+  gtk_signal_connect (GTK_OBJECT (quit),
+		      "clicked", GTK_SIGNAL_FUNC (quit_program), 0);
+/*    GTK_WIDGET_SET_FLAGS (quit, GTK_CAN_DEFAULT); */
+
+  if (havespeechout)
+    {
+      mutebt = gtk_check_button_new_with_label (_("M_ute"));
+      gtk_button_set_use_underline (GTK_BUTTON (mutebt), TRUE);
+      if (muteflag)
+	gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (mutebt), TRUE);
+
+      gtk_signal_connect (GTK_OBJECT (mutebt),
+			  "clicked", GTK_SIGNAL_FUNC (mute_cb), (gpointer) 1);
+    }
+  if (usesql)
+    {
+      sqlbt = gtk_check_button_new_with_label (_("Use SQ_L"));
+      gtk_button_set_use_underline (GTK_BUTTON (sqlbt), TRUE);
+      if (sqlflag)
+	gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (sqlbt), TRUE);
+
+      gtk_signal_connect (GTK_OBJECT (sqlbt),
+			  "clicked", GTK_SIGNAL_FUNC (sql_cb), (gpointer) 1);
+    }
+
+
+  wpbt = gtk_check_button_new_with_label (_("Show _WP"));
+  gtk_button_set_use_underline (GTK_BUTTON (wpbt), TRUE);
+  if (wpflag)
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (wpbt), TRUE);
+  gtk_signal_connect (GTK_OBJECT (wpbt),
+		      "clicked", GTK_SIGNAL_FUNC (wp_cb), (gpointer) 1);
+
+
+  if (sqlflag)
+    {
+      getsqltypelist ();
+      getsqldata ();
+    }
+  else
+    loadwaypoints ();
+
+  for (i = 0; i < maxwp; i++)
+    {
+      if (strlen (setpositionname) > 0)
+	{
+	  if (!(strcasecmp ((wayp + i)->name, setpositionname)))
+	    {
+	      current_lat = (wayp + i)->lat;
+	      current_long = (wayp + i)->longitude;
+	      target_long = current_long + 0.00001;
+	      target_lat = current_lat + 0.00001;
+	    }
+	  if (!(strcasecmp ((wayp + i)->name, _("HomeBase"))))
+	    {
+	      alarm_lat = (wayp + i)->lat;
+	      alarm_long = (wayp + i)->longitude;
+	    }
+	}
+    }
+
+  posbt = gtk_check_button_new_with_label (_("Pos. _mode"));
+  gtk_button_set_use_underline (GTK_BUTTON (posbt), TRUE);
+
+  gtk_signal_connect (GTK_OBJECT (posbt),
+		      "clicked", GTK_SIGNAL_FUNC (pos_cb), (gpointer) 1);
+
+  trackbt = gtk_check_button_new_with_label (_("Show _Track"));
+  gtk_button_set_use_underline (GTK_BUTTON (trackbt), TRUE);
+  if (trackflag)
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (trackbt), TRUE);
+  gtk_signal_connect (GTK_OBJECT (trackbt),
+		      "clicked", GTK_SIGNAL_FUNC (track_cb), (gpointer) 1);
+
+/*   importbt = gtk_button_new_with_label (_("Import")); */
+/*   gtk_signal_connect (GTK_OBJECT (importbt), */
+/* 		      "clicked", GTK_SIGNAL_FUNC (import1_cb), (gpointer) 1); */
+/*    GTK_WIDGET_SET_FLAGS (importbt, GTK_CAN_DEFAULT); */
+
+/*   loadtrackbt = gtk_button_new_from_stock (GTK_STOCK_OPEN); */
+/*   gtk_signal_connect (GTK_OBJECT (loadtrackbt), */
+/* 		      "clicked", GTK_SIGNAL_FUNC (loadtrack_cb), */
+/* 		      (gpointer) 1); */
+/*    GTK_WIDGET_SET_FLAGS (loadtrackbt, GTK_CAN_DEFAULT); */
+
+#ifndef USETELEATLAS
+  helpbt = gtk_button_new_from_stock (GTK_STOCK_HELP);
+  gtk_signal_connect (GTK_OBJECT (helpbt),
+		      "clicked", GTK_SIGNAL_FUNC (help_cb), (gpointer) 1);
+#else
+  {
+    GtkWidget *image3, *hbox3, *alignment3, *label;
+
+    ta_init ();
+    navibt = gtk_button_new ();
+    gtk_signal_connect (GTK_OBJECT (navibt),
+			"clicked", GTK_SIGNAL_FUNC (navi_cb), (gpointer) 1);
+    gtk_widget_show (navibt);
+    alignment3 = gtk_alignment_new (0.5, 0.5, 0.0, 0.0);
+    gtk_widget_show (alignment3);
+    gtk_container_add (GTK_CONTAINER (navibt), alignment3);
+
+
+    hbox3 = gtk_hbox_new (FALSE, 0);
+    gtk_widget_show (hbox3);
+    gtk_container_add (GTK_CONTAINER (alignment3), hbox3);
+
+    image3 = create_pixmap (mainwindow, "gpsiconbt.png");
+    gtk_widget_show (image3);
+    gtk_box_pack_start (GTK_BOX (hbox3), image3, FALSE, FALSE, 0);
+    label = gtk_label_new_with_mnemonic (_("_Navigation"));
+    gtk_box_pack_start (GTK_BOX (hbox3), label, FALSE, FALSE, 0);
+    gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_LEFT);
+
+
+  }
+#endif
+
+/* PORTING */
+/*   setupbt = gtk_button_new_with_label (_("Setup")); */
+  setupbt = gtk_button_new_from_stock (GTK_STOCK_PREFERENCES);
+
+  gtk_signal_connect (GTK_OBJECT (setupbt),
+		      "clicked", GTK_SIGNAL_FUNC (setup_cb), (gpointer) 0);
+
+  startgpsbt = gtk_button_new_with_label (_("Start GPSD"));
+  gtk_signal_connect (GTK_OBJECT (startgpsbt),
+		      "clicked", GTK_SIGNAL_FUNC (startgpsd), (gpointer) 0);
+
+  bestmapbt = gtk_check_button_new_with_label (_("Auto _best map"));
+  gtk_button_set_use_underline (GTK_BUTTON (bestmapbt), TRUE);
+
+  if (!scaleprefered)
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (bestmapbt), TRUE);
+  gtk_signal_connect (GTK_OBJECT (bestmapbt),
+		      "clicked", GTK_SIGNAL_FUNC (bestmap_cb), (gpointer) 1);
+
+
+  savetrackfile (TRUE);
+  g_snprintf (s1, sizeof (s1), "%s", _("Save track"));
+  savetrackbt = gtk_check_button_new_with_label (s1);
+  if (savetrack)
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (savetrackbt), TRUE);
+  gtk_signal_connect (GTK_OBJECT (savetrackbt),
+		      "clicked", GTK_SIGNAL_FUNC (savetrack_cb),
+		      (gpointer) 1);
+
+  g_snprintf (s1, sizeof (s1), "%s", savetrackfn);
+  lab1 = gtk_label_new (s1);
+
+  frame_maptype = gtk_frame_new (_("Shown map type"));
+/*** Mod by Arms */
+  vbox3 = gtk_vbox_new (TRUE, 1 * PADDING);
+  gtk_container_add (GTK_CONTAINER (frame_maptype), vbox3);
+
+  frame_toogles = gtk_frame_new (NULL);
+/*** Mod by Arms */
+  vbox4 = gtk_vbox_new (TRUE, 1 * PADDING);
+  gtk_container_add (GTK_CONTAINER (frame_toogles), vbox4);
+
+
+  maptogglebt = gtk_check_button_new_with_label (_("Street map"));
+  if (displaymap_map)
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (maptogglebt), TRUE);
+
+  gtk_signal_connect (GTK_OBJECT (maptogglebt),
+		      "clicked", GTK_SIGNAL_FUNC (maptoggle_cb),
+		      (gpointer) 1);
+  topotogglebt = gtk_check_button_new_with_label (_("Topo map"));
+  if (displaymap_top)
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (topotogglebt), TRUE);
+
+  gtk_signal_connect (GTK_OBJECT (topotogglebt),
+		      "clicked", GTK_SIGNAL_FUNC (topotoggle_cb),
+		      (gpointer) 1);
+/*** Mod by Arms */
+  gtk_box_pack_start (GTK_BOX (vbox3), maptogglebt, FALSE, FALSE,
+		      0 * PADDING);
+/*** Mod by Arms */
+  gtk_box_pack_start (GTK_BOX (vbox3), topotogglebt, FALSE, FALSE,
+		      0 * PADDING);
+
+
+
+/*  Zoom in button */
+  zoomin = gtk_button_new_from_stock (GTK_STOCK_ZOOM_IN);
+  gtk_signal_connect (GTK_OBJECT (zoomin),
+		      "clicked", GTK_SIGNAL_FUNC (zoom_cb), (gpointer) 1);
+/*    GTK_WIDGET_SET_FLAGS (zoomin, GTK_CAN_DEFAULT); */
+/*  Zoom out button */
+  zoomout = gtk_button_new_from_stock (GTK_STOCK_ZOOM_OUT);
+  gtk_signal_connect (GTK_OBJECT (zoomout),
+		      "clicked", GTK_SIGNAL_FUNC (zoom_cb), (gpointer) 2);
+/*    GTK_WIDGET_SET_FLAGS (zoomout, GTK_CAN_DEFAULT); */
+
+
+  scalerrbt = gtk_button_new_with_label (">>");
+  gtk_signal_connect (GTK_OBJECT (scalerrbt),
+		      "clicked", GTK_SIGNAL_FUNC (scalerbt_cb), (gpointer) 1);
+/*    GTK_WIDGET_SET_FLAGS (scalerrbt, GTK_CAN_DEFAULT); */
+  scalerlbt = gtk_button_new_with_label ("<<");
+  gtk_signal_connect (GTK_OBJECT (scalerlbt),
+		      "clicked", GTK_SIGNAL_FUNC (scalerbt_cb), (gpointer) 2);
+/*    GTK_WIDGET_SET_FLAGS (scalerlbt, GTK_CAN_DEFAULT); */
+
+/*  Select target button */
+/*    if (maxwp > 0) */
+  {
+/* PORTING */
+/*     sel_target = gtk_button_new_with_label (_("Select target")); */
+    sel_target = gtk_button_new_from_stock (GTK_STOCK_FIND);
+/*     gtk_label_set_text(GTK_BUTTON(sel_target),_("Select target")); */
+    gtk_signal_connect (GTK_OBJECT (sel_target),
+			"clicked",
+			GTK_SIGNAL_FUNC (sel_target_cb), (gpointer) 2);
+/*        GTK_WIDGET_SET_FLAGS (sel_target, GTK_CAN_DEFAULT); */
+  }
+
+
+
+
+/*    gtk_window_set_default (GTK_WINDOW (mainwindow), zoomin); */
+/*    if we want NMEA mode, gpsd must be running and we connect to port 2222 */
+/*    An alternate gpsd server may be on 2947, we try it also */
+
+  initgps ();
+  if (simmode)
+    {
+      if ((!disableserial) && (!disableserialcl))
+	{
+	  haveserial = gpsserialinit ();
+	  if (haveserial)
+	    {
+	      simmode = FALSE;
+	      haveNMEA = TRUE;
+	      gtk_widget_set_sensitive (startgpsbt, FALSE);
+	    }
+	}
+    }
+
+  if (haveGARMIN)
+    gtk_widget_set_sensitive (startgpsbt, FALSE);
+
+  friendsinit ();
+
+
+  if (usesql)
+    initkismet ();
+  if (havekismet)
+    {
+      g_print (_("\nkismet server found\n"));
+      switch (voicelang)
+	{
+	case english:
+	  g_snprintf (buf, sizeof (buf), "Found kismet. Happy wardriving");
+	  break;
+	case spanish:
+	  g_snprintf (buf, sizeof (buf), "Found kismet. Happy wardriving");
+	  break;
+	case german:
+	  g_snprintf (buf, sizeof (buf),
+		      "Kismet gefunden. Viel Spass beim wordreifing");
+	}
+      speech_out_speek (buf);
+    }
+
+  loadfriendsicon ();
+
+  /*  Area for map */
+  dframe = gtk_frame_new (NULL);
+  gtk_frame_set_shadow_type (GTK_FRAME (dframe), GTK_SHADOW_IN);
+  drawing_area = gtk_drawing_area_new ();
+  gtk_drawing_area_size (GTK_DRAWING_AREA (drawing_area), SCREEN_X, SCREEN_Y);
+/*** Mod by Arms */
+  gtk_container_add (GTK_CONTAINER (dframe), drawing_area);
+
+  gtk_box_pack_start (GTK_BOX (vbig), dframe, TRUE, TRUE, 0 * PADDING);
+  gtk_widget_add_events (GTK_WIDGET (drawing_area), GDK_BUTTON_PRESS_MASK);
+  gtk_signal_connect_object (GTK_OBJECT (drawing_area),
+			     "button-press-event",
+			     GTK_SIGNAL_FUNC (mapclick_cb),
+			     GTK_OBJECT (drawing_area));
+/* Area for navigation pointer */
+  drawing_bearing = gtk_drawing_area_new ();
+  gtk_drawing_area_size (GTK_DRAWING_AREA (drawing_bearing), PSIZE + 2,
+			 PSIZE + 2);
+  gtk_signal_connect (GTK_OBJECT (drawing_bearing),
+		      "expose_event", GTK_SIGNAL_FUNC (expose_compass), NULL);
+/* Area for mini map */
+/*** Mod by Arms */
+/* With small displays, this isn't really necessary! */
+  if (SMALLMENU == 0)
+    {
+      drawing_miniimage = gtk_drawing_area_new ();
+      gtk_drawing_area_size (GTK_DRAWING_AREA (drawing_miniimage), 128, 103);
+      gtk_signal_connect (GTK_OBJECT (drawing_miniimage),
+			  "expose_event", GTK_SIGNAL_FUNC (expose_mini_cb),
+			  NULL);
+      gtk_widget_add_events (GTK_WIDGET (drawing_miniimage),
+			     GDK_BUTTON_PRESS_MASK);
+      gtk_signal_connect_object (GTK_OBJECT (drawing_miniimage),
+				 "button-press-event",
+				 GTK_SIGNAL_FUNC (minimapclick_cb),
+				 GTK_OBJECT (drawing_miniimage));
+    }
+/*** Mod by Arms */
+  hbox2 = gtk_hbox_new (FALSE, 1 * PADDING);
+  hbox2a = gtk_hbox_new (FALSE, 1 * PADDING);
+  hbox2b = gtk_vbox_new (FALSE, 1 * PADDING);
+/*** Mod by Arms */
+  hbox3 = gtk_hbox_new (FALSE, 1 * PADDING);
+  frame_bearing = gtk_frame_new (_("Bearing"));
+/*   gtk_container_add (GTK_CONTAINER (frame_bearing), drawing_bearing); */
+  compasseventbox = gtk_event_box_new ();
+  gtk_container_add (GTK_CONTAINER (compasseventbox), drawing_bearing);
+  alignment1 = gtk_alignment_new (0.6, 0.5, 0, 0);
+  gtk_container_add (GTK_CONTAINER (alignment1), compasseventbox);
+  gtk_container_add (GTK_CONTAINER (frame_bearing), alignment1);
+
+/*** Mod by Arms */
+  gtk_box_pack_start (GTK_BOX (hbox2), frame_bearing, FALSE, FALSE,
+		      1 * PADDING);
+/* Area for field strength, we have data only in NMEA mode */
+  drawing_sats = gtk_drawing_area_new ();
+  gtk_drawing_area_size (GTK_DRAWING_AREA (drawing_sats), PSIZE + 10,
+			 PSIZE + 6);
+  gtk_signal_connect (GTK_OBJECT (drawing_sats), "expose_event",
+		      GTK_SIGNAL_FUNC (expose_sats_cb), NULL);
+  gtk_widget_add_events (GTK_WIDGET (drawing_sats), GDK_BUTTON_PRESS_MASK);
+  gtk_signal_connect (GTK_OBJECT (drawing_sats),
+		      "button-press-event",
+		      GTK_SIGNAL_FUNC (satpos_cb), NULL);
+  frame_sats = gtk_frame_new (_("GPS Info"));
+  sateventbox = gtk_event_box_new ();
+  gtk_container_add (GTK_CONTAINER (sateventbox), drawing_sats);
+  alignment2 = gtk_alignment_new (0.5, 0.5, 0, 0);
+  gtk_container_add (GTK_CONTAINER (alignment2), sateventbox);
+  satsvbox = gtk_vbox_new (FALSE, 1 * PADDING);
+  satshbox = gtk_hbox_new (FALSE, 1 * PADDING);
+  gtk_container_add (GTK_CONTAINER (frame_sats), satshbox);
+  gtk_box_pack_start (GTK_BOX (satshbox), alignment2, FALSE, FALSE,
+		      1 * PADDING);
+  gtk_box_pack_start (GTK_BOX (satshbox), satsvbox, FALSE, FALSE,
+		      1 * PADDING);
+
+  satslabel1 = gtk_entry_new ();
+  satslabel1eventbox = gtk_event_box_new ();
+  gtk_container_add (GTK_CONTAINER (satslabel1eventbox), satslabel1);
+  gtk_entry_set_text (GTK_ENTRY (satslabel1), _("n/a"));
+  gtk_box_pack_start (GTK_BOX (satsvbox), satslabel1eventbox, TRUE, FALSE,
+		      0 * PADDING);
+
+  satslabel2 = gtk_entry_new ();
+  satslabel2eventbox = gtk_event_box_new ();
+  gtk_container_add (GTK_CONTAINER (satslabel2eventbox), satslabel2);
+  gtk_entry_set_text (GTK_ENTRY (satslabel2), _("n/a"));
+  gtk_box_pack_start (GTK_BOX (satsvbox), satslabel2eventbox, TRUE, FALSE,
+		      0 * PADDING);
+
+  satslabel3 = gtk_entry_new ();
+  satslabel3eventbox = gtk_event_box_new ();
+  gtk_container_add (GTK_CONTAINER (satslabel3eventbox), satslabel3);
+  gtk_entry_set_text (GTK_ENTRY (satslabel3), _("n/a"));
+  gtk_box_pack_start (GTK_BOX (satsvbox), satslabel3eventbox, TRUE, FALSE,
+		      0 * PADDING);
+
+  gtk_entry_set_editable (GTK_ENTRY (satslabel1), FALSE);
+  gtk_widget_set_usize (satslabel1, 38, 20);
+  gtk_entry_set_editable (GTK_ENTRY (satslabel2), FALSE);
+  gtk_widget_set_usize (satslabel2, 38, 20);
+  gtk_entry_set_editable (GTK_ENTRY (satslabel3), FALSE);
+  gtk_widget_set_usize (satslabel3, 38, 20);
+
+/*** Mod by Arms */
+  gtk_box_pack_start (GTK_BOX (hbox2), frame_sats, FALSE, FALSE, 1 * PADDING);
+
+  havebattery = battery_get_values ();
+  if (debug)
+    fprintf (stderr, "batt: %d, temp: %d", havebattery, havetemperature);
+  if (havebattery)
+    {
+      drawing_battery = gtk_drawing_area_new ();
+      gtk_drawing_area_size (GTK_DRAWING_AREA (drawing_battery), 27, 52);
+      fbat = gtk_frame_new (_("Bat."));
+      batteventbox = gtk_event_box_new ();
+      gtk_container_add (GTK_CONTAINER (batteventbox), drawing_battery);
+      alignment3 = gtk_alignment_new (0.5, 0.5, 0, 0);
+      gtk_container_add (GTK_CONTAINER (alignment3), batteventbox);
+      gtk_container_add (GTK_CONTAINER (fbat), alignment3);
+      gtk_box_pack_start (GTK_BOX (hbox2), fbat, FALSE, FALSE, 1 * PADDING);
+    }
+
+/* JH added drawing area for cpu temp meter  */
+
+  if (havetemperature)
+    {
+      drawing_temp = gtk_drawing_area_new ();
+      gtk_drawing_area_size (GTK_DRAWING_AREA (drawing_temp), 15, 52);
+      ftem = gtk_frame_new (_("TC"));
+      tempeventbox = gtk_event_box_new ();
+      gtk_container_add (GTK_CONTAINER (tempeventbox), drawing_temp);
+      alignment4 = gtk_alignment_new (0.5, 0.5, 0, 0);
+      gtk_container_add (GTK_CONTAINER (alignment4), tempeventbox);
+      gtk_container_add (GTK_CONTAINER (ftem), alignment4);
+      gtk_box_pack_start (GTK_BOX (hbox2), ftem, FALSE, FALSE, 1 * PADDING);
+    }
+
+
+  if (pdamode)
+    gtk_box_pack_start (GTK_BOX (hbox2), hbox2b, TRUE, TRUE, 1 * PADDING);
+
+/*  displays distance to destination */
+  distlabel = gtk_label_new ("---");
+  gtk_label_set_use_markup (GTK_LABEL (distlabel), TRUE);
+  gtk_label_set_justify (GTK_LABEL (distlabel), GTK_JUSTIFY_RIGHT);
+/*  displays speed over ground */
+  speedlabel = gtk_label_new (_("---"));
+  gtk_label_set_justify (GTK_LABEL (speedlabel), GTK_JUSTIFY_RIGHT);
+/*  displays zoom factor of map */
+  altilabel = gtk_label_new (_("n/a"));
+  if (pdamode)
+    {
+      g_snprintf (s3, sizeof (s3),
+		  "<span color=\"%s\" font_family=\"Arial\" weight=\"bold\" size=\"5000\">%s</span>",
+		  bluecolor, _("n/a"));
+    }
+  else
+    {
+      g_snprintf (s3, sizeof (s3),
+		  "<span color=\"%s\" font_family=\"Arial\" weight=\"bold\" size=\"10000\">%s</span>",
+		  bluecolor, _("n/a"));
+    }
+  gtk_label_set_markup (GTK_LABEL (altilabel), s3);
+  gtk_label_set_justify (GTK_LABEL (altilabel), GTK_JUSTIFY_RIGHT);
+
+/*  displays waypoints number */
+  wplabeltable = gtk_table_new (2, 6, TRUE);
+
+/* selected waypoints */
+  wplabel1 = gtk_entry_new ();
+  wp1eventbox = gtk_event_box_new ();
+  gtk_container_add (GTK_CONTAINER (wp1eventbox), wplabel1);
+  gtk_entry_set_text (GTK_ENTRY (wplabel1), "--");
+  gtk_table_attach_defaults (GTK_TABLE (wplabeltable), wp1eventbox, 0, 2, 0,
+			     1);
+
+/* waypoints in range */
+  wplabel2 = gtk_entry_new ();
+  wp2eventbox = gtk_event_box_new ();
+  gtk_container_add (GTK_CONTAINER (wp2eventbox), wplabel2);
+  gtk_entry_set_text (GTK_ENTRY (wplabel2), "--");
+  gtk_table_attach_defaults (GTK_TABLE (wplabeltable), wp2eventbox, 2, 4, 0,
+			     1);
+
+/* range in km */
+  wplabel3 = gtk_entry_new ();
+  wp3eventbox = gtk_event_box_new ();
+  gtk_container_add (GTK_CONTAINER (wp3eventbox), wplabel3);
+  gtk_entry_set_text (GTK_ENTRY (wplabel3), "--");
+  gtk_table_attach_defaults (GTK_TABLE (wplabeltable), wp3eventbox, 0, 3, 1,
+			     2);
+
+/* gps time */
+  wplabel4 = gtk_entry_new ();
+  wp4eventbox = gtk_event_box_new ();
+  gtk_container_add (GTK_CONTAINER (wp4eventbox), wplabel4);
+  gtk_entry_set_text (GTK_ENTRY (wplabel4), _("n/a"));
+  gtk_table_attach_defaults (GTK_TABLE (wplabeltable), wp4eventbox, 3, 6, 1,
+			     2);
+
+  wplabel5 = gtk_entry_new ();
+  wp5eventbox = gtk_event_box_new ();
+  gtk_container_add (GTK_CONTAINER (wp5eventbox), wplabel5);
+  gtk_entry_set_text (GTK_ENTRY (wplabel5), _("n/a"));
+  gtk_table_attach_defaults (GTK_TABLE (wplabeltable), wp5eventbox, 4, 6, 0,
+			     1);
+
+
+  gtk_entry_set_editable (GTK_ENTRY (wplabel1), FALSE);
+  gtk_entry_set_editable (GTK_ENTRY (wplabel2), FALSE);
+  gtk_entry_set_editable (GTK_ENTRY (wplabel3), FALSE);
+  gtk_entry_set_editable (GTK_ENTRY (wplabel4), FALSE);
+  gtk_entry_set_editable (GTK_ENTRY (wplabel5), FALSE);
+  gtk_widget_set_usize (wplabel1, USIZE_X, USIZE_Y);
+  gtk_widget_set_usize (wplabel2, USIZE_X, USIZE_Y);
+  gtk_widget_set_usize (wplabel3, USIZE_X, USIZE_Y);
+  gtk_widget_set_usize (wplabel4, USIZE_X, USIZE_Y);
+  gtk_widget_set_usize (wplabel5, USIZE_X, USIZE_Y);
+
+
+
+#ifdef AFDAFDA
+  if (pdamode)
+    {
+      g_snprintf (s3, sizeof (s3),
+		  "<span color=\"%s\" font_family=\"Sans\"  size=\"7000\">%s %d\n%d %s %.1fkm</span>",
+		  bluecolor, _("Selected:"), wptotal, wpselected, _("within"),
+		  dbdistance);
+    }
+  else
+    {
+      g_snprintf (s3, sizeof (s3),
+		  "<span color=\"%s\" font_family=\"Sans\"  size=\"10000\">%s %d\n%d %s %.1fkm</span>",
+		  bluecolor, _("Selected:"), wptotal, wpselected, _("within"),
+		  dbdistance);
+    }
+  gtk_label_set_markup (GTK_LABEL (wplabel), s3);
+  gtk_label_set_justify (GTK_LABEL (wplabel), GTK_JUSTIFY_LEFT);
+#endif
+
+/*  create frames for labels */
+  frame_target = gtk_frame_new (_("Distance to target"));
+  destframe = frame_target;
+  gtk_container_add (GTK_CONTAINER (frame_target), distlabel);
+/*** Mod by Arms */
+/*   if (!pdamode) */
+/*     gtk_box_pack_start (GTK_BOX (hbox2a), frame_target, TRUE, TRUE, */
+/* 			2 * PADDING); */
+/*     ; */
+/*   else */
+/*     gtk_box_pack_start (GTK_BOX (hbox2a), frame_target, TRUE, TRUE, */
+/* 			2 * PADDING); */
+  if (pdamode)
+    {
+      if (milesflag)
+	g_snprintf (s1, sizeof (s1), "[%s]", _("mi/h"));
+      else if (nauticflag)
+	g_snprintf (s1, sizeof (s1), "[%s]", _("knots"));
+      else
+	g_snprintf (s1, sizeof (s1), "[%s]", _("km/h"));
+    }
+  else
+    {
+      if (milesflag)
+	g_snprintf (s1, sizeof (s1), "%s [%s]", _("Speed"), _("mi/h"));
+      else if (nauticflag)
+	g_snprintf (s1, sizeof (s1), "%s [%s]", _("Speed"), _("knots"));
+      else
+	g_snprintf (s1, sizeof (s1), "%s [%s]", _("Speed"), _("km/h"));
+    }
+  frame_speed = gtk_frame_new (s1);
+  gtk_container_add (GTK_CONTAINER (frame_speed), speedlabel);
+/*** Mod by Arms */
+/*   if (!pdamode) */
+/*     gtk_box_pack_start (GTK_BOX (hbox2), frame_speed, TRUE, TRUE, */
+/* 			1 * PADDING); */
+
+  frame_altitude = gtk_frame_new (_("Altitude"));
+  gtk_container_add (GTK_CONTAINER (frame_altitude), altilabel);
+/*** Mod by Arms */
+/*   if (!pdamode) */
+/*     gtk_box_pack_start (GTK_BOX (hbox2), frame_altitude, FALSE, TRUE, */
+/* 			1 * PADDING); */
+
+  frame_wp = gtk_frame_new (_("Waypoints"));
+/*   gtk_container_add (GTK_CONTAINER (frame_wp), wplabel); */
+/*** Mod by Arms */
+/*   if (!pdamode) */
+/*     gtk_box_pack_start (GTK_BOX (hbox2), frame_wp, FALSE, TRUE, 1 * PADDING); */
+
+  vtable = gtk_table_new (1, 20, TRUE);
+  gtk_table_attach_defaults (GTK_TABLE (vtable), frame_target, 0, 6, 0, 1);
+  gtk_table_attach_defaults (GTK_TABLE (vtable), frame_speed, 6, 12, 0, 1);
+  gtk_table_attach_defaults (GTK_TABLE (vtable), frame_altitude, 12, 15, 0,
+			     1);
+  gtk_table_attach_defaults (GTK_TABLE (vtable), frame_wp, 15, 20, 0, 1);
+  gtk_box_pack_start (GTK_BOX (hbox2), vtable, TRUE, TRUE, 2 * PADDING);
+  gtk_container_add (GTK_CONTAINER (frame_wp), wplabeltable);
+
+
+
+
+/*    gtk_box_pack_start (GTK_BOX (vbig), hbox2, TRUE, TRUE, 2); */
+/*** Lots of Mods by Arms */
+  vbox = gtk_vbox_new (TRUE, 3 * PADDING);
+  gtk_box_pack_start (GTK_BOX (vbox), menubar, FALSE, FALSE, 1 * PADDING);
+  gtk_box_pack_start (GTK_BOX (vbox), zoomin, FALSE, FALSE, 1 * PADDING);
+  gtk_box_pack_start (GTK_BOX (vbox), zoomout, FALSE, FALSE, 1 * PADDING);
+  gtk_box_pack_start (GTK_BOX (vbox), hbox3, FALSE, FALSE, 1 * PADDING);
+  gtk_box_pack_start (GTK_BOX (hbox3), scalerlbt, TRUE, TRUE, 1 * PADDING);
+  gtk_box_pack_start (GTK_BOX (hbox3), scalerrbt, TRUE, TRUE, 1 * PADDING);
+/*  only if we have read in waypoints we have the select target button */
+/*    if (maxwp > 0) */
+  gtk_box_pack_start (GTK_BOX (vbox), sel_target, FALSE, FALSE, 1 * PADDING);
+  gtk_box_pack_start (GTK_BOX (vbox), downloadbt, FALSE, FALSE, 1 * PADDING);
+/*   gtk_box_pack_start (GTK_BOX (vbox), importbt, FALSE, FALSE, 1 * PADDING);  */
+/*   gtk_box_pack_start (GTK_BOX (vbox), loadtrackbt, FALSE, FALSE, 1 * PADDING); */
+  gtk_box_pack_start (GTK_BOX (vbox), startgpsbt, FALSE, FALSE, 1 * PADDING);
+  gtk_box_pack_start (GTK_BOX (vbox), setupbt, FALSE, FALSE, 1 * PADDING);
+#ifndef USETELEATLAS
+  gtk_box_pack_start (GTK_BOX (vbox), helpbt, FALSE, FALSE, 1 * PADDING);
+#else
+  gtk_box_pack_start (GTK_BOX (vbox), navibt, FALSE, FALSE, 1 * PADDING);
+#endif
+  gtk_box_pack_start (GTK_BOX (vbox), quit, FALSE, FALSE, 1 * PADDING);
+  hboxlow = vbox2 = NULL;
+  if (!extrawinmenu)
+    {
+      vbox2 = gtk_vbox_new (FALSE, 0 * PADDING);
+      gtk_box_pack_start (GTK_BOX (vbox2), vbox, TRUE, TRUE, 1 * PADDING);
+      gtk_box_pack_start (GTK_BOX (vbox2), frame_toogles, TRUE, TRUE,
+			  1 * PADDING);
+      gtk_box_pack_start (GTK_BOX (vbox2), frame_maptype, TRUE, TRUE,
+			  1 * PADDING);
+      if (SMALLMENU == 0)
+	gtk_box_pack_start (GTK_BOX (vbox2), GTK_WIDGET (drawing_miniimage),
+			    TRUE, FALSE, 0 * PADDING);
+    }
+  else
+    {
+      vboxlow = gtk_vbox_new (FALSE, 0 * PADDING);
+      hboxlow = gtk_hbox_new (FALSE, 0 * PADDING);
+      gtk_box_pack_start (GTK_BOX (vboxlow), frame_toogles, TRUE, TRUE,
+			  1 * PADDING);
+      gtk_box_pack_start (GTK_BOX (vboxlow), frame_maptype, TRUE, TRUE,
+			  1 * PADDING);
+      if (SMALLMENU == 0)
+	gtk_box_pack_start (GTK_BOX (vboxlow), GTK_WIDGET (drawing_miniimage),
+			    TRUE, FALSE, 0 * PADDING);
+      gtk_box_pack_start (GTK_BOX (hboxlow), vbox, TRUE, TRUE, 1 * PADDING);
+      gtk_box_pack_start (GTK_BOX (hboxlow), vboxlow, TRUE, TRUE,
+			  1 * PADDING);
+
+    }
+
+
+  if (havespeechout)
+    gtk_box_pack_start (GTK_BOX (vbox4), mutebt, FALSE, FALSE, 0 * PADDING);
+  if (usesql)
+    gtk_box_pack_start (GTK_BOX (vbox4), sqlbt, FALSE, FALSE, 0 * PADDING);
+/*    if (maxwp > 0) */
+  gtk_box_pack_start (GTK_BOX (vbox4), wpbt, FALSE, FALSE, 0 * PADDING);
+  gtk_box_pack_start (GTK_BOX (vbox4), posbt, FALSE, FALSE, 0 * PADDING);
+  gtk_box_pack_start (GTK_BOX (vbox4), trackbt, FALSE, FALSE, 0 * PADDING);
+  gtk_box_pack_start (GTK_BOX (vbox4), bestmapbt, FALSE, FALSE, 0 * PADDING);
+  gtk_box_pack_start (GTK_BOX (vbox4), savetrackbt, FALSE, FALSE,
+		      0 * PADDING);
+//KCFX
+/*   if (!pdamode) */
+  {
+    adj = gtk_adjustment_new (12, 0, 29, 1, 4, 0.034);
+    scaler = gtk_hscale_new (GTK_ADJUSTMENT (adj));
+    gtk_signal_connect (GTK_OBJECT (adj), "value_changed",
+			GTK_SIGNAL_FUNC (scaler_cb), NULL);
+    gtk_scale_set_draw_value (GTK_SCALE (scaler), FALSE);
+  }
+
+  if (pdamode)
+    table1 = gtk_table_new (5, 3, FALSE);
+  else
+    {
+      if (SMALLMENU)
+	table1 = gtk_table_new (4, 3, FALSE);
+      else
+	table1 = gtk_table_new (8, 2, FALSE);
+    }
+  lf1 = gtk_frame_new (_("Latitude"));
+  lf2 = gtk_frame_new (_("Longitude"));
+  lf3 = gtk_frame_new (_("Map file"));
+  lf4 = gtk_frame_new (_("Map scale"));
+  lf5 = gtk_frame_new (_("Heading"));
+  lf6 = gtk_frame_new (_("Bearing"));
+  lf7 = gtk_frame_new (_("Time at Dest."));
+  lf8 = gtk_frame_new (_("Pref. scale"));
+
+  etch = !etch;
+  etch_cb (NULL, 0);
+  l1 = gtk_label_new (_("000,00000N"));
+  gtk_container_add (GTK_CONTAINER (lf1), l1);
+  l2 = gtk_label_new (_("000,00000E"));
+  gtk_container_add (GTK_CONTAINER (lf2), l2);
+  l3 = gtk_label_new (_("---"));
+  gtk_container_add (GTK_CONTAINER (lf3), l3);
+  l4 = gtk_label_new (_("---"));
+  gtk_container_add (GTK_CONTAINER (lf4), l4);
+  l5 = gtk_label_new (_("0000"));
+  gtk_container_add (GTK_CONTAINER (lf5), l5);
+  l6 = gtk_label_new (_("0000"));
+  gtk_container_add (GTK_CONTAINER (lf6), l6);
+  l7 = gtk_label_new (_("---"));
+  gtk_container_add (GTK_CONTAINER (lf7), l7);
+  l8 = gtk_label_new (_("---"));
+  gtk_container_add (GTK_CONTAINER (lf8), l8);
+
+  if (pdamode)
+    {
+      gtk_table_attach_defaults (GTK_TABLE (table1), lf6, 0, 1, 0, 1);
+      gtk_table_attach_defaults (GTK_TABLE (table1), lf5, 1, 2, 0, 1);
+      gtk_table_attach_defaults (GTK_TABLE (table1), lf4, 2, 3, 0, 1);
+
+      gtk_table_attach_defaults (GTK_TABLE (table1), lf1, 0, 1, 1, 2);
+      gtk_table_attach_defaults (GTK_TABLE (table1), lf2, 1, 2, 1, 2);
+      gtk_table_attach_defaults (GTK_TABLE (table1), lf8, 2, 3, 1, 2);
+
+      gtk_table_attach_defaults (GTK_TABLE (table1), lf7, 0, 1, 2, 3);
+      gtk_table_attach_defaults (GTK_TABLE (table1), lf3, 1, 3, 2, 3);
+//KCFX
+      gtk_table_attach_defaults (GTK_TABLE (table1), scaler, 0, 3, 3, 4);
+      gtk_table_attach_defaults (GTK_TABLE (table1), status, 0, 3, 4, 5);
+    }
+  else
+    {
+      if (SMALLMENU)
+	{
+	  gtk_table_attach_defaults (GTK_TABLE (table1), lf6, 0, 1, 0, 1);
+	  gtk_table_attach_defaults (GTK_TABLE (table1), lf5, 1, 2, 0, 1);
+	  gtk_table_attach_defaults (GTK_TABLE (table1), lf1, 2, 3, 0, 1);
+	  gtk_table_attach_defaults (GTK_TABLE (table1), lf2, 3, 4, 0, 1);
+	  gtk_table_attach_defaults (GTK_TABLE (table1), lf7, 0, 1, 1, 2);
+	  gtk_table_attach_defaults (GTK_TABLE (table1), lf3, 1, 2, 1, 2);
+	  gtk_table_attach_defaults (GTK_TABLE (table1), lf4, 2, 3, 1, 2);
+	  gtk_table_attach_defaults (GTK_TABLE (table1), lf8, 3, 4, 1, 2);
+	  gtk_table_attach_defaults (GTK_TABLE (table1), status, 0, 4, 3, 4);
+	  gtk_table_attach_defaults (GTK_TABLE (table1), scaler, 0, 4, 2, 3);
+	}
+      else
+	{
+	  gtk_table_attach_defaults (GTK_TABLE (table1), lf6, 0, 1, 0, 1);
+	  gtk_table_attach_defaults (GTK_TABLE (table1), lf5, 1, 2, 0, 1);
+	  gtk_table_attach_defaults (GTK_TABLE (table1), lf1, 2, 3, 0, 1);
+	  gtk_table_attach_defaults (GTK_TABLE (table1), lf2, 3, 4, 0, 1);
+	  gtk_table_attach_defaults (GTK_TABLE (table1), lf7, 4, 5, 0, 1);
+	  gtk_table_attach_defaults (GTK_TABLE (table1), lf3, 5, 6, 0, 1);
+	  gtk_table_attach_defaults (GTK_TABLE (table1), lf4, 6, 7, 0, 1);
+	  gtk_table_attach_defaults (GTK_TABLE (table1), lf8, 7, 8, 0, 1);
+	  gtk_table_attach_defaults (GTK_TABLE (table1), status, 0, 4, 1, 2);
+	  gtk_table_attach_defaults (GTK_TABLE (table1), scaler, 4, 8, 1, 2);
+	}
+    }
+/*    gtk_box_pack_start (GTK_BOX (vbig), table1, FALSE, FALSE, 1); */
+/*  all position calculations are made in the expose callback */
+/*   if (!pdamode) */
+  gtk_signal_connect (GTK_OBJECT (drawing_area),
+		      "expose_event", GTK_SIGNAL_FUNC (expose_cb), NULL);
+  if (havebattery)
+    gtk_signal_connect (GTK_OBJECT (drawing_battery),
+			"expose_event",
+			GTK_SIGNAL_FUNC (expose_display_battery), NULL);
+  if (havetemperature)
+    gtk_signal_connect (GTK_OBJECT (drawing_temp),
+			"expose_event",
+			GTK_SIGNAL_FUNC (expose_display_battery), NULL);
+
+  if (!pdamode)
+    {
+      if (extrawinmenu)
+	{
+	  menuwin = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+/*       gdk_window_lower((GdkWindow *)menuwin); */
+
+	  gtk_window_set_title (GTK_WINDOW (menuwin), _("Menu"));
+/*** Mod by Arms */
+	  gtk_container_set_border_width (GTK_CONTAINER (menuwin),
+					  2 * PADDING);
+	  gtk_container_add (GTK_CONTAINER (menuwin), hboxlow);
+	  gtk_signal_connect (GTK_OBJECT (menuwin), "delete_event",
+			      GTK_SIGNAL_FUNC (quit_program), NULL);
+	  menuwin2 = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+/*       gdk_window_lower((GdkWindow *)menuwin2); */
+	  gtk_window_set_title (GTK_WINDOW (menuwin2), _("Status"));
+/*** Mod by Arms */
+	  gtk_container_set_border_width (GTK_CONTAINER (menuwin2),
+					  2 * PADDING);
+	  vbig1 = gtk_vbox_new (FALSE, 2);
+	  gtk_container_add (GTK_CONTAINER (menuwin2), vbig1);
+/*** Mod by Arms */
+	  gtk_box_pack_start (GTK_BOX (vbig1), hbox2, TRUE, TRUE,
+			      2 * PADDING);
+	  if (pdamode)
+	    gtk_box_pack_start (GTK_BOX (vbig1), hbox2a, TRUE, TRUE,
+				2 * PADDING);
+/*** Mod by Arms */
+	  gtk_box_pack_start (GTK_BOX (vbig1), table1, TRUE, TRUE,
+			      2 * PADDING);
+	  gtk_signal_connect (GTK_OBJECT (menuwin2), "delete_event",
+			      GTK_SIGNAL_FUNC (quit_program), NULL);
+	}
+      else
+	{
+/*** Mod by Arms */
+//        gtk_box_pack_start (GTK_BOX (vmenubig), menubar, TRUE, TRUE,
+//                            2 * PADDING);
+//        gtk_box_pack_start (GTK_BOX (vmenubig), hbig, TRUE, TRUE,
+//                            2 * PADDING);
+
+	  gtk_box_pack_start (GTK_BOX (hbig), vbox2, TRUE, TRUE, 1 * PADDING);
+/*** Mod by Arms */
+	  gtk_box_pack_start (GTK_BOX (vbig), hbox2, TRUE, TRUE, 2 * PADDING);
+/*** Mod by Arms */
+	  gtk_box_pack_start (GTK_BOX (vbig), table1, FALSE, FALSE,
+			      1 * PADDING);
+	}
+    }
+
+/*   if pdamode is set, we use gtk-notebook add arrange the elements */
+/*   in pdamode, extrawinmenu is also set! */
+  mainnotebook = NULL;
+  if (pdamode)
+    {
+      GtkWidget *l1, *l2, *l3;
+      l1 = gtk_label_new (_("Map"));
+      l2 = gtk_label_new (_("Menu"));
+      l3 = gtk_label_new (_("Status"));
+//KCFX
+      vbig1 = gtk_vbox_new (FALSE, 2);
+//      gtk_container_add (GTK_CONTAINER (menuwin2), vbig1);
+      gtk_box_pack_start (GTK_BOX (vbig1), hbox2, TRUE, TRUE, 2 * PADDING);
+      gtk_box_pack_start (GTK_BOX (vbig1), hbox2a, TRUE, TRUE, 2 * PADDING);
+      gtk_box_pack_start (GTK_BOX (vbig1), hbox2b, TRUE, TRUE, 2 * PADDING);
+      gtk_box_pack_start (GTK_BOX (hbox2b), frame_speed, TRUE, TRUE,
+			  1 * PADDING);
+      gtk_box_pack_start (GTK_BOX (hbox2b), frame_altitude, TRUE, TRUE,
+			  1 * PADDING);
+//KCFX          
+      gtk_box_pack_start (GTK_BOX (hbox2a), frame_wp, TRUE, TRUE,
+			  1 * PADDING);
+
+      gtk_box_pack_start (GTK_BOX (vbig1), table1, TRUE, TRUE, 2 * PADDING);
+
+      mainnotebook = gtk_notebook_new ();
+      gtk_notebook_set_tab_pos (GTK_NOTEBOOK (mainnotebook), GTK_POS_TOP);
+      gtk_box_pack_start (GTK_BOX (hbig), vbig, TRUE, TRUE, 1 * PADDING);
+      gtk_container_add (GTK_CONTAINER (mainwindow), mainnotebook);
+      gtk_widget_show_all (hboxlow);
+      gtk_widget_show_all (vbig1);
+      gtk_widget_show_all (hbig);
+      gtk_widget_show_all (vbig);
+      gtk_notebook_append_page (GTK_NOTEBOOK (mainnotebook), hbig, l1);
+      gtk_notebook_append_page (GTK_NOTEBOOK (mainnotebook), hboxlow, l2);
+      gtk_notebook_append_page (GTK_NOTEBOOK (mainnotebook), vbig1, l3);
+      gtk_notebook_set_page (GTK_NOTEBOOK (mainnotebook), 0);
+      gtk_widget_show_all (mainnotebook);
+    }
+  else
+    {
+      gtk_box_pack_start (GTK_BOX (hbig), vbig, TRUE, TRUE, 1 * PADDING);
+      //      gtk_container_add (GTK_CONTAINER (mainwindow), vmenubig);
+      gtk_container_add (GTK_CONTAINER (mainwindow), hbig);
+    }
+
+/*** Mod by Arms */
+/* This one should position the windows in the corners, */
+/* so that gpsdrive can be run w/o a xwm (stand-alone mode) */
+/* With a xwm, you should be able to reposition the */
+/* windows afterwards... */
+  if (extrawinmenu && SMALLMENU && !pdamode)
+    {
+      reqptr = &requ;
+      gtk_widget_size_request (GTK_WIDGET (menuwin2), reqptr);
+      gtk_widget_set_uposition (GTK_WIDGET (menuwin2), gdk_screen_width () - requ.width, gdk_screen_height () - requ.height);	/* rechts unten */
+      gtk_widget_size_request (GTK_WIDGET (mainwindow), reqptr);
+      gtk_widget_set_uposition (GTK_WIDGET (mainwindow), gdk_screen_width () - requ.width, 0);	/* rechts oben */
+      gtk_widget_size_request (GTK_WIDGET (menuwin), reqptr);
+      gtk_widget_set_uposition (GTK_WIDGET (menuwin), 0, 0);	/* links oben */
+    }
+
+/*  Now show all Widgets */
+//KCFX
+  if ((extrawinmenu) && (!pdamode))
+    {
+      gtk_widget_show_all (menuwin);
+      gtk_widget_show_all (menuwin2);
+
+    }
+  gtk_widget_show_all (mainwindow);
+
+  mainwindow_icon_pixbuf = create_pixbuf ("gpsicon.png");
+  if (mainwindow_icon_pixbuf)
+    {
+      gtk_window_set_icon (GTK_WINDOW (mainwindow), mainwindow_icon_pixbuf);
+      gdk_pixbuf_unref (mainwindow_icon_pixbuf);
+    }
+
+
+/*  now we know the drawables */
+  if (pdamode)
+    gtk_notebook_set_page (GTK_NOTEBOOK (mainnotebook), 0);
+
+  drawable = gdk_pixmap_new (mainwindow->window, SCREEN_X, SCREEN_Y, -1);
+/* gtk_widget_set_double_buffered(drawable, FALSE);  */
+/*    drawable = drawing_area->window; */
+  if (pdamode)
+    gtk_notebook_set_page (GTK_NOTEBOOK (mainnotebook), 2);
+
+  drawable_sats = drawing_sats->window;
+  drawable_bearing = drawing_bearing->window;
+/*  gtk_widget_set_double_buffered(GTK_WIDGET(drawable_sats), TRUE);   */
+/*  gtk_widget_set_double_buffered(GTK_WIDGET(drawable_bearing), TRUE);   */
+
+//KCFX
+  // if (!pdamode) 
+  kontext = gdk_gc_new (mainwindow->window);
+  //  else 
+  //    kontext = gdk_gc_new (mainnotebook->window); 
+
+  gdk_gc_set_clip_origin (kontext, 0, 0);
+  rectangle.width = SCREEN_X;
+  rectangle.height = SCREEN_Y;
+
+  gdk_gc_set_clip_rectangle (kontext, &rectangle);
+  cmap = gdk_colormap_get_system ();
+  gdk_color_alloc (cmap, &red);
+  gdk_color_alloc (cmap, &black);
+  gdk_color_alloc (cmap, &blue);
+  gdk_color_alloc (cmap, &nightcolor);
+  gdk_color_alloc (cmap, &lcd);
+  gdk_color_alloc (cmap, &lcd2);
+  gdk_color_alloc (cmap, &green);
+  gdk_color_alloc (cmap, &green2);
+  gdk_color_alloc (cmap, &white);
+  gdk_color_alloc (cmap, &mygray);
+  gdk_color_alloc (cmap, &yellow);
+  gdk_color_alloc (cmap, &darkgrey);
+  gdk_color_alloc (cmap, &grey);
+  gdk_color_alloc (cmap, &textback);
+  gdk_color_alloc (cmap, &textbacknew);
+  gdk_color_alloc (cmap, &orange2);
+  gdk_color_alloc (cmap, &orange);
+  gdk_color_alloc (cmap, &trackcolorv);
+
+/* fill window with color */
+  gdk_gc_set_function (kontext, GDK_COPY);
+  gdk_gc_set_foreground (kontext, &lcd2);
+  gdk_draw_rectangle (drawing_area->window, kontext, 1, 0, 0, SCREEN_X,
+		      SCREEN_Y);
+  {
+    GtkStyle *style;
+    style = gtk_rc_get_style (mainwindow);
+    defaultcolor = style->bg[GTK_STATE_NORMAL];
+  }
+
+  if (pdamode)
+    gtk_notebook_set_page (GTK_NOTEBOOK (mainnotebook), 1);
+  if (SMALLMENU == 0)
+    gdk_window_set_cursor (drawing_miniimage->window, cursor);
+
+  cursor = gdk_cursor_new (GDK_CROSS);
+  if (pdamode)
+    gtk_notebook_set_page (GTK_NOTEBOOK (mainnotebook), 0);
+  gdk_window_set_cursor (drawing_area->window, cursor);
+
+/*  Tooltips */
+  temptooltips = tooltips = gtk_tooltips_new ();
+
+  if (havetemperature)
+    gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), tempeventbox,
+			  cputempstring, NULL);
+  if (havebattery)
+    gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), batteventbox,
+			  batstring, NULL);
+
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), sateventbox,
+			_
+			("Click here to switch betwen satetellite level and satellite position display. A rotating globe is shown in simulation mode"),
+			NULL);
+
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), satslabel1eventbox,
+			_("Number of used satellites/satellites in view"),
+			NULL);
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), satslabel2eventbox,
+			_("EPE (Estimated Precision Error), if available"),
+			NULL);
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), satslabel3eventbox,
+			_
+			("PDOP (Position Dilution Of Precision). PDOP less than 4 gives the best accuracy, between 4 and 8 gives acceptable accuracy and greater than 8 gives unacceptable poor accuracy. "),
+			NULL);
+
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), compasseventbox,
+			_
+			("On top of the compass you see the direction to which you move. The pointer shows the target direction on the compass."),
+			NULL);
+  wi = NULL;
+  wi = gtk_item_factory_get_item (item_factory, N_("/Misc. Menu"));
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), wi,
+			_
+			("Here you find extra functions for maps, tracks and messages"),
+			NULL);
+
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), downloadbt,
+			_("Download map from Internet"), NULL);
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), quit,
+			_("Leave the program"), NULL);
+  if (havespeechout)
+    gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), mutebt,
+			  _("Disable output of speech"), NULL);
+  if (usesql)
+    gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), sqlbt,
+			  _("Use SQL server for waypoints"), NULL);
+/*    if (maxwp > 0) */
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), wpbt,
+			_("Show waypoints on the map"), NULL);
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), posbt,
+			_
+			("Turn position mode on. You can move on the map with the left mouse button click. Clicking near the border switches to the proximate map."),
+			NULL);
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), trackbt,
+			_("Show tracking on the map"), NULL);
+/*   gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), importbt, */
+/* 			_("Let you import and calibrate your own map"), NULL); */
+#ifndef USETELEATLAS
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), helpbt,
+			_("Opens the help window"), NULL);
+#else
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), navibt,
+			_("Navigation menu. Enter here your destination."),
+			NULL);
+#endif
+  if (haveNMEA)
+    {
+      gtk_button_set_label (GTK_BUTTON (startgpsbt), _("Stop GPSD"));
+      gtk_tooltips_set_tip (GTK_TOOLTIPS (temptooltips), startgpsbt,
+			    _("Stop GPSD and switch to simulation mode"),
+			    NULL);
+      gpson = TRUE;
+    }
+  else
+    gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), startgpsbt,
+			  _("Starts GPSD for NMEA mode"), NULL);
+
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), setupbt,
+			_("Settings for GpsDrive"), NULL);
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), zoomin,
+			_("Zoom into the current map"), NULL);
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), zoomout,
+			_("Zooms out off the current map"), NULL);
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), scalerlbt,
+			_("Select the next more detailed map"), NULL);
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), scalerrbt,
+			_("Select the next less detailed map"), NULL);
+/*    if (maxwp > 0) */
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips),
+			sel_target,
+			_
+			("Select here a destination from the waypoint list"),
+			NULL);
+  if (scaler)
+    gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), scaler,
+			  _("Select the map scale of avail. maps."), NULL);
+/*   gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), loadtrackbt, */
+/* 			_("Load and display a previous stored track file"), */
+/* 			NULL); */
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), bestmapbt,
+			_("Always select the most detailed map available"),
+			NULL);
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), savetrackbt,
+			_("Save the track to given filename at program exit"),
+			NULL);
+
+
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), wp1eventbox,
+			_
+			("Number of waypoints selected from SQL server"),
+			NULL);
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), wp2eventbox,
+			_
+			("Number of selected waypoints, which are in range"),
+			NULL);
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), wp3eventbox,
+			_
+			("Range for waypoint selection in kilometers"), NULL);
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), wp4eventbox,
+			_
+			("This shows the time from your GPS receiver"), NULL);
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), wp5eventbox,
+			_
+			("Number of mobile targets within timeframe/total received from friendsserver"),
+			NULL);
+
+
+/*    gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips),,_(""),NULL); */
+  gtk_tooltips_set_delay (GTK_TOOLTIPS (tooltips), 1000);
+  g_strlcpy (mapfilename, "***", sizeof (mapfilename));
+/*  set the timers */
+  if (haveserial)
+    timerto =
+      gtk_timeout_add (TIMERSERIAL, (GtkFunction) get_position_data_cb, NULL);
+  else
+    timerto =
+      gtk_timeout_add (TIMER, (GtkFunction) get_position_data_cb, NULL);
+  gtk_timeout_add (WATCHWPTIMER, (GtkFunction) watchwp_cb, NULL);
+
+
+  redrawtimeout =
+    gtk_timeout_add (100, (GtkFunction) calldrawmarker_cb, NULL);
+
+/*  if we started in simulator mode we have a little move roboter */
+
+  if (simmode)
+    simpos_timeout = gtk_timeout_add (300, (GtkFunction) simulated_pos, 0);
+  if (nmeaout)
+    gtk_timeout_add (1000, (GtkFunction) write_nmea_cb, NULL);
+  gtk_timeout_add (10000, (GtkFunction) testconfig_cb, 0);
+  gtk_timeout_add (600000, (GtkFunction) speech_saytime_cb, 0);
+  gtk_timeout_add (1000, (GtkFunction) storetrack_cb, 0);
+  gtk_timeout_add (10000, (GtkFunction) masteragent_cb, 0);
+  gtk_timeout_add (15000, (GtkFunction) getsqldata, 0);
+  gtk_timeout_add (2000, (GtkFunction) nav_doit, NULL);
+  if (havebattery)
+    gtk_timeout_add (5000, (GtkFunction) expose_display_battery, NULL);
+
+  gtk_timeout_add (15000, (GtkFunction) friendsagent_cb, 0);
+
+  if (havespeechout)
+    {
+      speech_saytime_cb (NULL, 1);
+      gtk_timeout_add (SPEECHOUTINTERVAL, (GtkFunction) speech_out_cb, 0);
+    }
+/*  To set the right sensitive flags */
+  bestmap_cb (NULL, 0);
+  needtosave = FALSE;
+
+  /*  Mainloop */
+
+  gtk_main ();
+
+
+  g_timer_destroy (timer);
+  writeconfig ();
+  gdk_pixbuf_unref (friendspixbuf);
+
+
+  gpsserialquit ();
+  unlink ("/tmp/cammain.pid");
+  unlink ("/tmp/gpsdrivetext.out");
+  unlink ("/tmp/gpsdrivepos");
+  if (savetrack)
+    savetrackfile (FALSE);
+  sqlend ();
+  free (friends);
+  free (fserver);
+  g_free (routelist);
+  if (kismetsock != -1)
+    close (kismetsock);
+  if (sock != -1)
+    close (sock);
+  if (sockfd != -1)
+    close (sockfd);
+  speech_out_close ();
+  cleanup_nasa_mapfile ();
+  fprintf (stderr, _("\n\nThank you for using GpsDrive!\n\n"));
+  return 0;
+}

Added: packages/gpsdrive/branches/etch/src/gpsdrive.h
===================================================================
--- packages/gpsdrive/branches/etch/src/gpsdrive.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/gpsdrive.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,256 @@
+/***********************************************************************
+
+Copyright (c) 2001,2002 Fritz Ganter <ganter at ganter.at>
+
+Website: www.gpsdrive.de
+
+Disclaimer: Please do not use for navigation.
+
+    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
+
+    *********************************************************************
+$Log: gpsdrive.h,v $
+Revision 1.29  2004/03/02 01:36:04  ganter
+added German Expedia map server (expedia.de),
+this should be used for european users
+this is the real 2.09pre1 beta
+
+Revision 1.28  2004/02/12 17:42:53  ganter
+added -W switch for enable/disable WAAS/EGNOS (for SiRF II only?)
+
+Revision 1.27  2004/02/11 21:59:22  ganter
+max. number of sats is now MAXSATS
+
+Revision 1.26  2004/02/06 14:55:54  ganter
+added support for user-defined icons
+create the directory: $HOME/.gpsdrive/icons
+place your icons (type must be png) into this directory, with the name of
+the waypoint type, filename must be lowercase
+i.e. for waypoint type "HOTEL" the file must have the name "hotel.png"
+
+Revision 1.25  2004/02/05 19:47:31  ganter
+replacing strcpy with g_strlcpy to avoid bufferoverflows
+USB receiver does not send sentences in direct serial mode,
+so I first send a "\n" to it
+
+Revision 1.24  2004/02/04 14:47:10  ganter
+added GPGSA sentence for PDOP (Position Dilution Of Precision).
+
+Revision 1.23  2004/02/03 23:19:27  ganter
+fixed wrong string size
+
+Revision 1.22  2004/02/02 03:38:32  ganter
+code cleanup
+
+Revision 1.21  2004/01/27 05:25:59  ganter
+added gpsserial.c
+
+gpsdrive now detects a running gps receiver
+You don't need to start gpsd now, serial connection is handled by GpsDrive directly
+
+Revision 1.20  2004/01/12 21:52:02  ganter
+added friends message service
+
+Revision 1.19  2004/01/09 00:00:43  ganter
+added topomap download patch from Russell Harding <hardingr at billingside.com>
+Thanks for the lot of work!
+
+Revision 1.18  2004/01/03 04:32:18  ganter
+translations
+
+
+***********************************************************************/
+
+#ifndef GPSDRIVE_GPSDRIVE_H
+#define GPSDRIVE_GPSDRIVE_H
+
+#include <gmodule.h>
+#include <gdk/gdktypes.h>
+#include "gtk/gtk.h"
+#include "mysql.h"
+#include "gpsproto.h"
+
+/*  adapt this section for the size of your screen */
+
+/*  width of the map on screen, default is 640 */
+#define SCREEN_X real_screen_x
+/*  height of the map on screen, default is 512 */
+#define SCREEN_Y real_screen_y
+
+/*  set this to 0 for normal use, 1 for small screens */
+#define SMALLMENU real_smallmenu
+/*** Mod by Arms */
+#define PADDING int_padding
+/*** Mod by Arms */
+#define XMINUS 60
+/*** Mod by Arms (move) */
+#define YMINUS 67
+
+/*
+ * Mod by Rick Richardson:
+ *
+ * There ought to be a 3-way selection for lat/lon display:
+ * 	DMS	DD MM SS.SS	(quaint, but is it useful?)
+ * 	MinDec	DD MM.MMM	(e.g. Geocaching)
+ * 	DegDec	DD.DDDDDD
+ * But the current gpsdrive GUI has only a 2-way toggle.
+ *
+ * Set this to 1 to prefer MinDec vs. DMS
+ */
+#define PREFER_MinDec	0
+
+/*  size of the bearing pointer, default is 50 */
+#define PSIZE real_psize
+
+/***************************************************************************/
+/***************************************************************************/
+/***************************************************************************/
+
+#define MAXBIG 50000
+
+/*  How oft do we redraw the screen (in milliseconds) */
+#define REDRAWTIMER 300
+/*  How often do we ask for positioning data */
+#define TIMER 500
+#define TIMERSERIAL 50
+
+#define MAXSHOWNWP 100
+
+/*  timer for watching waypoints (Radar) */
+#define WATCHWPTIMER 2000
+
+/*  If speech output is used, the intervall of spoken messages in milliseconds */
+#define SPEECHOUTINTERVAL 10000
+
+/*  defines offset and color of the shadows */
+#define SHADOWOFFSET 7
+
+/* #define SHADOWGREY 0xD000  */
+#define SHADOWGREY 0xA000 
+
+#define ROUTEREACH (0.02+10*groundspeed/(3600*milesconv))
+/* #define ROUTEREACH 0.05 */
+#define ROUTEREACHFACT 10
+
+#define SERVERNAME gpsdservername
+
+#define SERVERPORT 2222
+#define SERVERPORT2 2947
+
+
+#define MAPSCALE 20000
+/* Mapscale / pixelfact is meter / pixel */
+#define PIXELFACT 2817.947378
+#define KM2MILES 0.62137119
+#define KM2NAUTIC  0.54
+
+#define MAXMESG 8192
+
+
+#define LOCALTESTXXX
+#ifdef LOCALTEST
+#define WEBSERVER "wuffi.ganter.at"
+#else
+// R.I.P. Borged by Microsoft, April, 2003:
+// #define WEBSERVER "www.mapblast.com"
+#define WEBSERVER "www.vicinity.com"
+#endif
+/* #define WEBSERVER2 "msrvmaps.mappoint.net" */
+#define WEBSERVER2 "www.expedia.com"
+#define WEBSERVER3 "host21.216.235.245.nedatavault.net"
+#define WEBSERVER4 "www.expedia.de"
+
+#define FESTIVAL_ENGLISH_INIT "(voice_ked_diphone)\n"
+#define FESTIVAL_GERMAN_INIT "(voice_german_de3_os)\n"
+#define FESTIVAL_SPANISH_INIT "(voice_el_diphone)\n"
+#define EXPEDIAFACT 3950
+/* #define EXPEDIAFACT 1378.6 */
+#define MAXLISTENTRIES 500
+#define TRIPMETERTIMEOUT 5
+
+#define USIZE_X 15
+#define USIZE_Y 24
+
+/* 
+$PSRF103,05,00,00,01*21  VTG off 
+$PSRF103,05,00,01,01*20  VTG on
+$PSRF108,1*33            WAAS/EGNOS on
+$PSRF108,0*32            WAAS/EGNOS off
+
+*/
+#define EGNOSON  "$PSRF108,1*33\r\n"
+#define EGNOSOFF "$PSRF108,0*32\r\n"
+
+
+/* highest satellite number */
+#define MAXSATS 80
+
+
+/* Maximum number of waypoint types and also userdefined icons  */
+#define MAXWPTYPES 100
+
+/*
+ * Declarations.
+ */
+typedef struct
+{
+    GdkPixbuf *icon;
+    char name[40];
+}
+auxiconsstruct;
+
+extern  auxiconsstruct auxicons[MAXWPTYPES];
+extern int lastauxicon;
+
+extern gchar homedir[500];
+extern gchar savetrackfn[256];
+
+extern gint real_screen_x;
+extern gint real_screen_y;
+extern gint shadow;
+
+extern GdkGC *kontext;
+extern GdkColor darkgrey;
+extern GdkColor green;
+extern GdkDrawable *drawable;
+extern GtkWidget *trackbt;
+
+
+
+char *  (*dl_mysql_error)(MYSQL *mysql);
+MYSQL * (*dl_mysql_init)(MYSQL *mysql);
+MYSQL * (*dl_mysql_real_connect)(MYSQL *mysql, const char *host,
+                                           const char *user,
+                                           const char *passwd,
+                                           const char *db,
+                                           unsigned int port,
+                                           const char *unix_socket,
+                                           unsigned int clientflag);
+void    (*dl_mysql_close)(MYSQL *sock);
+int     (*dl_mysql_query)(MYSQL *mysql, const char *q);
+my_ulonglong (*dl_mysql_affected_rows)(MYSQL *mysql);
+MYSQL_RES * (*dl_mysql_store_result)(MYSQL *mysql);
+MYSQL_ROW   (*dl_mysql_fetch_row)(MYSQL_RES *result);
+void        (*dl_mysql_free_result)(MYSQL_RES *result);
+my_bool (*dl_mysql_eof)(MYSQL_RES *res);
+
+typedef struct
+{
+	  char id[30], name[40], lat[40], longi[40], timesec[40], speed[10],
+    heading[10];
+}
+friendsstruct;
+
+#endif /* GPSDRIVE_GPSDRIVE_H */

Added: packages/gpsdrive/branches/etch/src/gpsdrive.spec
===================================================================
--- packages/gpsdrive/branches/etch/src/gpsdrive.spec	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/gpsdrive.spec	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,74 @@
+#
+#
+#
+Summary: gpsdrive is a GPS based navigation tool 
+Name: gpsdrive
+Version: 2.09
+Release: 1
+Copyright: GPL
+Group: Tools 
+Source: %{name}-%{version}.tar.gz
+Vendor: Fritz Ganter <ganter at ganter.at>
+Packager: Fritz Ganter <ganter at ganter.at>
+BuildRoot: %{_tmppath}/%{name}-root
+%define _prefix /usr
+%description
+Gpsdrive is a map-based navigation system. It displays your position on a zoomable map provided from a NMEA-capable GPS receiver. The maps are autoselected for the best resolution, depending of your position, and the displayed image can be zoomed. Maps can be downloaded from the Internet with one mouse click. The program provides information about speed, direction, bearing, arrival time, actual position, and target position. Speech output is also available. MySQL is supported.
+See http://www.gpsdrive.cc for new releases.
+%prep
+%setup
+
+
+%build
+export CFLAGS="$RPM_OPT_FLAGS"
+export CXXFLAGS="$RPM_OPT_FLAGS"
+./configure --prefix=%{_prefix} --mandir=%{_mandir}
+make
+%install
+rm -rf $RPM_BUILD_ROOT
+make DESTDIR=$RPM_BUILD_ROOT install-strip
+
+%clean
+if [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ]; then
+rm -rf $RPM_BUILD_ROOT
+fi
+rm -rf %{_builddir}/%{name}-%{version}
+
+%files
+%defattr (-,root,root)
+%doc GPS-receivers INSTALL AUTHORS COPYING  TODO README LEEME LISEZMOI README.FreeBSD README.gpspoint2gspdrive FAQ.gpsdrive FAQ.gpsdrive.fr  README.SQL create.sql  NMEA.txt wp2sql README.kismet  LISEZMOI.kismet LISEZMOI.SQL
+%doc %{_mandir}/de/man1/gpsdrive.1.gz
+%doc %{_mandir}/es/man1/gpsdrive.1.gz
+%doc %{_mandir}/man1/gpsdrive.1.gz
+
+%{_libdir}/*
+%{_bindir}/*
+
+%dir %{_prefix}/share/gpsdrive
+%{_prefix}/share/gpsdrive/gpsdrivesplash.png
+%{_prefix}/share/gpsdrive/gpsdrivemini.png
+%{_prefix}/share/gpsdrive/friendsicon.png
+%{_prefix}/share/gpsdrive/gpsicon.png
+%{_prefix}/share/gpsdrive/gpsiconbt.png
+%{_prefix}/share/gpsdrive/gpsdriveanim.gif
+%{_prefix}/share/gpsdrive/top_GPSWORLD.jpg
+%{_prefix}/share/locale/*/LC_MESSAGES/*
+%{_prefix}/share/gpsdrive/AUTHORS
+%{_prefix}/share/gpsdrive/CREDITS
+%{_prefix}/share/gpsdrive/FAQ.gpsdrive
+%{_prefix}/share/gpsdrive/FAQ.gpsdrive.fr
+%{_prefix}/share/gpsdrive/GPS-receivers
+%{_prefix}/share/gpsdrive/LEEME
+%{_prefix}/share/gpsdrive/LISEZMOI
+%{_prefix}/share/gpsdrive/NMEA.txt
+%{_prefix}/share/gpsdrive/README
+%{_prefix}/share/gpsdrive/README.FreeBSD
+%{_prefix}/share/gpsdrive/README.SQL
+%{_prefix}/share/gpsdrive/README.gpspoint2gspdrive
+%{_prefix}/share/gpsdrive/README.kismet
+%{_prefix}/share/gpsdrive/TODO
+%{_prefix}/share/gpsdrive/README.nasamaps
+%{_prefix}/share/gpsdrive/create.sql
+%{_prefix}/share/gpsdrive/wp2sql
+%{_datadir}/applications/gpsdrive.desktop
+%{_prefix}/share/pixmaps/gpsicon.png

Added: packages/gpsdrive/branches/etch/src/gpsdriveanim.gif
===================================================================
(Binary files differ)


Property changes on: packages/gpsdrive/branches/etch/src/gpsdriveanim.gif
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: packages/gpsdrive/branches/etch/src/gpsdrivegarble.cpp
===================================================================
--- packages/gpsdrive/branches/etch/src/gpsdrivegarble.cpp	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/gpsdrivegarble.cpp	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,466 @@
+// $Id: gpsdrivegarble.cpp,v 1.11 2003/04/28 15:42:38 ganter Exp $
+// garble.cp
+// Douglas S. J. De Couto
+// 17 February 2000
+
+// Copyright (C) 2000 Douglas S. J. De Couto
+// <decouto at lcs.mit.edu>
+//
+// 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.
+
+// $Id: gpsdrivegarble.cpp,v 1.11 2003/04/28 15:42:38 ganter Exp $
+
+// $Log: gpsdrivegarble.cpp,v $
+// Revision 1.11  2003/04/28 15:42:38  ganter
+// compiles now with gcc 3.3
+//
+// Revision 1.10  2002/11/06 05:29:15  ganter
+// fixed most warnings
+//
+// Revision 1.9  2001/11/16 18:00:54  ganter
+// tcpserver/client works
+//
+// Revision 1.8  2001/10/09 07:18:55  ganter
+// updated spanish translation, radar works, fix for g++ 3.x compilers
+// updated wpcvt added expedia.com mapserver, but not working yet
+//
+// Revision 1.7  2001/09/25 23:49:43  ganter
+// v 0.27
+//
+// Revision 1.6  2001/09/23 22:31:13  ganter
+// v0.26
+//
+// Revision 1.5  2001/08/29 23:13:44  ganter
+// version 0.9
+//
+// Revision 1.4  2001/08/27 02:57:19  ganter
+// Version 0.7
+//
+// Revision 1.3  2001/08/27 01:03:24  ganter
+// Version 0.7 added experimental -f flag for direct use of GARMIN format
+// no gpsd must be started!
+//
+// Revision 1.2  2001/08/26 23:41:55  ganter
+// changed for gpsdrive
+//
+// This version is adapted for use in gpsdrive by ganter at ganter.at
+
+//static const char *garble_version = "Garble v1.0.1 29 May 2000";
+
+#include <getopt.h>
+
+#include <iostream>
+#include <string>
+#include <cstdlib>
+//  #include <ctime>
+
+using namespace std;
+
+#include "garmin_serial_unix.h"
+#include "garmin_link.h"
+#include "garmin_application.h"
+#include "garmin_util.h"
+#include <assert.h>
+
+static const char *default_dev = "/dev/gps";
+static const int default_timeout = 200;	// milliseconds
+
+static bool verbose = false;
+
+extern "C" double glang, gbreit;
+extern "C" char serialdev[80];
+
+enum garble_action_t
+{
+  get_routes,
+  get_waypoints,
+  get_proximity_waypoints,
+  get_tracks,
+  get_product_info,
+  turn_off_gps,
+  get_time,
+  get_position,
+  get_pvt,
+  no_action
+};
+
+char *
+action_to_name (garble_action_t act)
+{
+  switch (act)
+    {
+    case get_routes:
+      return "download routes";
+      break;
+    case get_waypoints:
+      return "download waypoints";
+      break;
+    case get_proximity_waypoints:
+      return "download proximity waypoints";
+      break;
+    case get_tracks:
+      return "download tracks";
+      break;
+    case get_product_info:
+      return "get GPS product info";
+      break;
+    case turn_off_gps:
+      return "turn off GPS";
+      break;
+    case get_time:
+      return "get time";
+      break;
+    case get_position:
+      return "get position";
+      break;
+    case get_pvt:
+      return "get pvt";
+      break;
+    case no_action:
+      return "none";
+      break;
+    default:
+      ;				// punt
+    }
+  assert (0);
+}
+
+#ifdef THISISUSED
+static struct option long_options[] = {
+  {"echo", 0, 0, 'e'},
+  {"device", 1, 0, 'd'},
+  {"get-routes", 0, 0, 'r'},
+  {"get-waypoints", 0, 0, 'w'},
+  {"get-proximity-waypoints", 0, 0, 'x'},
+  {"get-tracks", 0, 0, 't'},
+  {"get-gps-info", 0, 0, 'i'},
+  {"turn-off", 0, 0, 'o'},
+  {"get-time", 0, 0, 'z'},
+  {"get-pos", 0, 0, 'p'},
+  {"version", 0, 0, 'v'},
+  {"help", 0, 0, 'h'},
+  {"timeout", 1, 0, 'm'},
+  {"verbose", 0, 0, 'l'},
+  {0, 0, 0, 0}
+};
+
+static const char *short_options = "rwxtiozpvhd:m:el";
+#endif
+
+void
+usage (void)
+{
+  cerr << "usage: " << endl
+    <<
+    "All data is sent to standard out.  Only the last GPS action option is used."
+    << endl <<
+    "-d, --device dev-name             use device specified by dev-name, defaults to "
+    << default_dev << endl <<
+    "-m, --timeout t                   wait up to t milliseconds to receive data, defaults to "
+    << default_timeout << endl <<
+    "-r, --get-routes                  download routes" << endl <<
+    "-w, --get-waypoints               download waypoints" << endl <<
+    "-x, --get-proximity-waypoints     download proximity waypoints" << endl
+    << "-t, --get-tracks                  download tracks" << endl <<
+    "-i, --get-gps-info                get GPS product info" << endl <<
+    "-o, --turn-off                    turn off GPS" << endl <<
+    "-z, --get-time                    get time from the GPS" << endl <<
+    "-p, --get-pos                     get the current position" << endl <<
+    "-v, --version                     current version of Garble" << endl <<
+    "-e, --echo                        echo parameters and quit" << endl <<
+    "-l, --verbose                     use verbose error messages" << endl <<
+    "-h, --help                        print this message" << endl;
+}
+
+
+// not: the application layer object must be passed by reference, as
+// we do not allow copying of the protocol layer object!
+void
+do_get_product_info (garmin::application_layer & al)
+{
+  garmin::product_data_type pd = al.get_product_data ();
+  cout << "GPS product ID: " << pd.product_id << endl
+    << "Software version: " << pd.software_version << endl
+    << "Product description: " << pd.product_description << endl;
+}
+
+void
+do_get_routes (garmin::application_layer & al)
+{
+  garmin::route_list_t * rl = al.get_routes ();
+  garmin::route_list_t::const_iterator rli;
+  for (rli = rl->begin (); rli != rl->end (); rli++)
+    {
+      garmin::route_t::const_iterator ri;
+      for (ri = rli->begin (); ri != rli->end (); ri++)
+	{
+	  garmin::basic_waypt_type waypt = *ri;
+	  garmin::degree_type pos = garmin::semicircle2degree (waypt.pos);
+	  cout << waypt.id << " / " << pos.lat << ", " << pos.lon << " / "
+	    << waypt.comment << endl;
+	}
+      cout << endl;
+    }
+  delete rl;
+}
+
+void
+do_get_waypoints (garmin::application_layer & al)
+{
+  garmin::waypt_vec_t * wv = al.get_waypoints ();
+  garmin::waypt_vec_t::const_iterator wvi;
+  for (wvi = wv->begin (); wvi != wv->end (); wvi++)
+    {
+      garmin::basic_waypt_type waypt = *wvi;
+      garmin::degree_type pos = garmin::semicircle2degree (waypt.pos);
+      cout << waypt.id << " / " << pos.lat << ", " << pos.lon << " / "
+	<< waypt.comment << endl;
+    }
+  delete wv;
+}
+
+void
+do_get_proximity_waypoints (garmin::application_layer & al)
+{
+  garmin::prox_waypt_vec_t * wv = al.get_proximity_waypoints ();
+  garmin::prox_waypt_vec_t::const_iterator wvi;
+  for (wvi = wv->begin (); wvi != wv->end (); wvi++)
+    {
+      garmin::basic_waypt_type waypt = wvi->waypt;
+      garmin::degree_type pos = garmin::semicircle2degree (waypt.pos);
+      cout << waypt.id << " / " << wvi->dist << " / "
+	<< pos.lat << ", " << pos.lon << " / " << waypt.comment << endl;
+    }
+  delete wv;
+}
+
+void
+do_get_tracks (garmin::application_layer & al)
+{
+  garmin::track_list_t * tl = al.get_track_logs ();
+  garmin::track_list_t::const_iterator tli;
+  for (tli = tl->begin (); tli != tl->end (); tli++)
+    {
+      garmin::track_t::const_iterator ti;
+      for (ti = tli->begin (); ti != tli->end (); ti++)
+	{
+	  garmin::track_point_type trackpt = *ti;
+	  garmin::degree_type pos = garmin::semicircle2degree (trackpt.pos);
+	  // ctime() includes "\n" at end of string, omit endl
+	  cout << pos.lat << ", " << pos.lon << " / " << ctime (&trackpt.
+								time);
+	}
+      cout << endl;
+    }
+  delete tl;
+}
+
+void
+do_get_position (garmin::application_layer & al)
+{
+  garmin::degree_type pos = garmin::radian2degree (al.get_position ());
+//  cout << pos.lat << ", " << pos.lon << endl;
+  gbreit = pos.lat;
+  glang = pos.lon;
+}
+
+void
+do_get_pvt (garmin::application_layer & al)
+{
+  garmin::degree_type pos = garmin::radian2degree (al.get_pvt ());
+//  cout << pos.lat << ", " << pos.lon << endl;
+  gbreit = pos.lat;
+  glang = pos.lon;
+}
+
+void
+do_get_time (garmin::application_layer & al)
+{
+  // ctime includes "\n", omit endl
+  time_t t = al.get_date_time ();
+  cout << ctime (&t);
+}
+
+void
+do_turn_off_gps (garmin::application_layer & al)
+{
+  al.turn_off_gps ();
+}
+
+
+//////////////////////////////////////////
+
+extern "C" int
+garblemain (int argc, char **argv)
+{
+    int meinargc;
+  string *dev_name = new string (default_dev);
+  garble_action_t action = no_action;
+  int timeout = default_timeout;
+  bool echo_params = false;
+
+  meinargc=argc;
+//    while (true) {
+//      int opt_index;
+//      int opt = getopt_long(argc, argv, short_options, long_options, &opt_index);
+//      if (opt == -1)
+//        break;
+
+//      switch (opt) {
+//      case 0: // is a long option
+//        cout << long_options[opt_index].name << endl;
+//        break;
+//      case 'd':
+//        delete dev_name;
+//        dev_name = new string(optarg);
+//        break;
+//      case 'm':
+//        timeout = atoi(optarg);
+//        break;
+//      case 'r':
+//        action = get_routes;
+//        break;
+//      case 'e':
+//        echo_params = true;
+//        break;
+//      case 'w':
+//        action = get_waypoints;
+//        break;
+//      case 'x':
+//        action = get_proximity_waypoints;
+//        break;
+//      case 't':
+//        action = get_tracks;
+//        break;
+//      case 'i':
+//        action = get_product_info;
+//        break;
+//      case 'o':
+//        action = turn_off_gps;
+//        break;
+//      case 'z':
+//        action = get_time;
+//        break;
+//      case 'p':
+//        action = get_position;
+//        break;
+//      case 'v':
+//        cerr << garble_version << endl;
+//        exit(0);
+//        break;
+//      case 'l':
+//        verbose = true;
+//        break;
+//      case 'h':
+//        // fall through to default
+//      default:
+//        usage();
+//        exit(-1);
+//      }
+//    }
+
+  if (meinargc == 1)
+    action = get_position;
+  if (meinargc == 2)
+    action = get_pvt;
+
+  *dev_name=serialdev;
+
+  if (echo_params)
+    {
+      cout << "Using the following parameters:" << endl
+	<< "Device name: " << *dev_name << endl
+	<< "Timeout (milliseconds): " << timeout << endl
+	<< "Action: " << action_to_name (action) << endl
+	<< "Verbose: " << (verbose ? "yes" : "no") << endl;
+      exit (0);
+    }
+
+  // setup the serial port etc.
+  garmin_serial gs;
+  try
+  {
+    gs.init (*dev_name, timeout);
+  }
+  catch (garmin::not_possible & ex)
+  {
+//    cerr << "Unable to open the serial port" << endl;
+    if (verbose)
+      cerr << ex.m_msg << endl;
+    return (-2);
+  }
+
+  garmin::link_layer ll (&gs);
+  garmin::application_layer al (&ll);
+
+  try
+  {
+    switch (action)
+      {
+      case get_product_info:
+	do_get_product_info (al);
+	break;
+      case get_routes:
+	do_get_routes (al);
+	break;
+      case get_waypoints:
+	do_get_waypoints (al);
+	break;
+      case get_proximity_waypoints:
+	do_get_proximity_waypoints (al);
+	break;
+      case get_tracks:
+	do_get_tracks (al);
+	break;
+      case get_position:
+	do_get_position (al);
+	break;
+      case get_pvt:
+	do_get_pvt (al);
+	break;
+      case get_time:
+	do_get_time (al);
+	break;
+      case turn_off_gps:
+	do_turn_off_gps (al);
+	break;
+      case no_action:
+	cerr << "No action specified." << endl;
+	usage ();
+	exit (-1);
+	break;
+      default:
+	cerr << "logic error" << endl;
+	assert (0);
+      }
+  }
+  catch (garmin::timeout & ex)
+  {
+//    cerr << "Timeout before getting data from the GPS" << endl;
+    if (verbose)
+      cerr << ex.m_msg << endl;
+// set havepos to FALSE in gpsdrive.c
+    return (-2);
+  }
+  catch (garmin::not_possible & ex)
+  {
+    cerr << "Error getting data from the GPS" << endl;
+    if (verbose)
+      cerr << ex.m_msg << endl;
+    return (-1);
+  }
+
+  return 0;
+}

Added: packages/gpsdrive/branches/etch/src/gpsdrivemini.png
===================================================================
(Binary files differ)


Property changes on: packages/gpsdrive/branches/etch/src/gpsdrivemini.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: packages/gpsdrive/branches/etch/src/gpsdrivesplash.png
===================================================================
(Binary files differ)


Property changes on: packages/gpsdrive/branches/etch/src/gpsdrivesplash.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: packages/gpsdrive/branches/etch/src/gpsfetchmap.pl
===================================================================
--- packages/gpsdrive/branches/etch/src/gpsfetchmap.pl	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/gpsfetchmap.pl	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,539 @@
+#!/usr/bin/perl
+
+# gpsfetchmap
+#
+# Kevin Stephens
+# Based on shell script by: Fritz Ganter and Manfred Carus
+#
+# Nov 29, 2003 <camel\@insecure.at>:
+# ive "fixed" the following issues ...
+#
+# .) previous authors forgot to reset "$long = $slon;" after each "$lat" loop
+#    resulting in a non rectangular area of map pieces becaus after each row
+#    the column doesnt get reset to the starting-value $slon and so the $lon
+#    variable is only increased but never reset ...
+#  .) russian style fix so the map pieces of an area do actually overlap vertically.
+#     this fix results in ugly after-comma numbers but hey ... at least i do get
+#     a real area and not "interlaced" maps with gaps ...
+#
+#  do a /CAMEL in vi to see all the changes ...
+#
+#  regards, camel
+# 
+# Feb 27, 2004 Sorted out expedia downloading (Robin Cornelius)
+
+my $VERSION =<<EOP;
+gpsfetchmap (c) 2002 Kevin Stephens <gps\@suburbialost.com>
+modified (Sept 06, 2002) by Sven Fichtner <sven.fichtner\@flugfunk.de>
+modified (Sept 18, 2002) by Sven Fichtner <sven.fichtner\@flugfunk.de>
+modified (Nov 21, 2002) by Magnus Månsson <ganja\@0x63.nu>
+modified (Nov 29, 2003) by camel <camel\@insecure.at>
+modified (Feb 27,2004) by Robin Cornelius <robin\@cornelius.demon.co.uk>
+Version 1.05
+EOP
+
+use strict;
+use Getopt::Long;
+use Pod::Usage;
+
+# Setup possible scales
+my @SCALES = (1000,1500,2000,3000,5000,7500,10000,15000,20000,30000,50000,75000,
+              100000,150000,200000,300000,500000,750000,1000000,1500000,2000000,3000000,
+              5000000,7500000,10000000,15000000,20000000,30000000,50000000,75000000);
+
+my @EXPEDIAALTS = ( 1, 3, 6, 12, 25, 50, 150, 800, 2000, 7000, 12000);
+
+# Set defaults and get options from command line
+Getopt::Long::Configure('no_ignore_case');
+my ($lat,$lon,$slat,$endlat,$slon,$endlon,$waypoint,$area,$unit,$mapdir,$debug,$force,$version,$man,$help);
+my $failcount = 0;
+my $polite = 'yes';
+my $scale = '100000';
+my $CONFIG_DIR    = "$ENV{'HOME'}/.gpsdrive"; # Should we allow config of this?
+my $CONFIG_FILE   = "$CONFIG_DIR/gpsdriverc";
+my $WAYPT_FILE    = "$CONFIG_DIR/way.txt";
+my $KOORD_FILE    = 'map_koord.txt'; # Should we allow config of this?
+my $FILEPREFIX    = 'map_';
+my $mapserver     = 'expedia';
+
+GetOptions ('lat=f' => \$lat, 'lon=f' => \$lon, 'start-lat=f' => \$slat, 'end-lat=f' => \$endlat, 'start-lon=f' => \$slon, 'end-lon=f' => \$endlon, 'scale=s' => \$scale, 'mapserver=s' => \$mapserver, 
+            'waypoint=s' =>, \$waypoint, 'area=s' => \$area, 'unit=s' => \$unit,'mapdir=s' => \$mapdir, 'polite:i' => \$polite,
+            'WAYPOINT=s' => \$WAYPT_FILE, 'CONFIG=s' => \$CONFIG_FILE, 'PREFIX=s' => \$FILEPREFIX,
+            'FORCE' => \$force, 'debug' => \$debug, 'MAN' => \$man, 'help|x' => \$help, 'version' => \$version)
+   or pod2usage(1);
+
+pod2usage(1) if $help;
+pod2usage(-verbose=>2) if $man;
+
+# Print version
+if ($version) {
+   print $VERSION, "\n";
+   exit();
+}
+
+# Verify that we have the options that we need 
+pod2usage(1) if (&error_check);
+
+
+# Setup up some constants
+my $EXPEDIAFACT   = 3950;
+my $DIFF          = 0.0000028;
+my $RADIUS_KM     = 6371.01;
+my $LAT_DIST_KM   = 110.87;
+my $KM2NAUTICAL   = 0.54;
+my $KM2MILES      = 0.62137119;
+my $polite = 'yes';
+
+
+# Get the list of scales we need
+my $SCALES_TO_GET_ref = get_scales(\$scale);
+print "Scale to download: ", join(",",sort {$a <=> $b} @{$SCALES_TO_GET_ref}), "\n" if ($debug);
+
+# Get the center waypoint if they want one
+if ($waypoint) {
+   ($lat,$lon) = get_waypoint(\$waypoint);
+}
+print "Centerpoint: $lat,$lon\n" if ($debug);
+
+# Get unit from config file, unless they override with command line
+$unit = &get_unit unless ($unit);
+
+# Get mapdir from config file, unless they override with command line
+$mapdir = &get_mapdir unless ($mapdir);
+
+# Now get the start and end coordinates
+unless ($slat && $slon && $endlat && $endlon) {
+   ($slat,$slon,$endlat,$endlon) = get_coords(\$lat,\$lon,\$area,\$unit); 
+}
+print "Upper left: $slat $slon, Lower Right: $endlat, $endlon\n" if ($debug);
+
+unless ($force) {
+   my $count = file_count(\($slat,$slon,$endlat,$endlon));
+   print "You are about to download $count file(s).\nYou are violating the map servers copyright!\nAre you sure you want to continue? [y|n] ";
+   my $answer = <STDIN>;
+   exit if ($answer !~ /^[yY]/);    
+}
+
+print "\nDownloading files:\n";
+
+# Change into the gpsdrive maps directory 
+chdir($CONFIG_DIR);
+chdir($mapdir);
+
+# Ok start getting the maps
+foreach my $scale (@{$SCALES_TO_GET_ref}) {
+   # Setup k
+   my $k = $DIFF * $scale;
+   my $klat = $k - ($k / 2); ### FIX BY CAMEL
+   my $klon = $k - ($k / 6); ### FIX BY CAMEL
+   my $lati = $slat;   
+   my $mapscale=0;
+   while ($lati < $endlat) {
+      my $long = $slon;
+      while ($long < $endlon) {
+         my $filename = "$FILEPREFIX$scale-$lati-$long.gif";
+ 	         
+	if (! -s $filename) {
+            LOOP: {
+               if ($mapserver eq 'expedia') {
+                  next LOOP if ($scale <=1000);
+                  my $ns = $scale/$EXPEDIAFACT;
+		  my $di = 999999;
+	 	  my $found=0;			
+	          my $i=0;
+
+    	          for($i=0;$i<11;$i=$i+1)
+		  {              
+		   if(abs($ns-$EXPEDIAALTS[$i]) < $di)
+		   {
+			$di=$ns-$EXPEDIAALTS[$i];
+			$found=$i;
+		   }
+		  }
+		  my $alti=0;
+		  $alti=$EXPEDIAALTS[$found];
+  		  $mapscale= sprintf("%d",$alti * $EXPEDIAFACT);		  		  
+		  print "Using expedia altitude ", $alti, " for requested scale ", $scale, ":1 actual scale ", $mapscale, ":1\n"
+			if ($debug);
+        	
+		  my $where;
+                  if ($lon < -30) {
+                     $where = 'USA0409';
+                  } else {
+                     $where = 'EUR0809';
+                  }
+                   print "http://www.expedia.com/pub/agent.dll?qscr=mrdt&ID=3XNsF.\&CenP=$lati,$long\&Lang=$where\&Alti=$alti\&Size=1280,1024\&Offs=0.000000,0.000000"
+                     if ($debug);
+                   `wget -nd -q -O tmpmap.gif "http://www.expedia.com/pub/agent.dll?qscr=mrdt&ID=3XNsF.\&CenP=$lati,$long\&Lang=$where\&Alti=$alti\&Size=1280,1024\&Offs=0.000000,0.000000"`;
+              } 
+	       else {
+		   print "Unknown map sever :", $mapserver, "\n"; 
+	           }
+               
+	       if (-s 'tmpmap.gif') {
+                  open(KOORD,">>$KOORD_FILE") || die "Can't open: $KOORD_FILE"; 
+	          print KOORD "$filename $lati $long $mapscale\n";
+                  rename('tmpmap.gif',$filename);
+                  print ".";
+                  print "\nWrote $filename\n" if ($debug);
+               } else {
+                  $failcount++;
+                  print ",";
+               }
+            }
+            # sleep if polite is turned on to be nice to the webserver of the mapserver
+	      sleep($polite) if ($polite =~ /\d+/);
+	    sleep(1) if (!$polite);
+         }
+         $long += $klon; ### FIX BY CAMEL
+      }
+      $lati += $klat; ### FIX BY CAMEL
+      $long = $slon; ### FIX BY CAMEL
+   }
+}
+print "Failcount: $failcount\n";
+print "\n";
+
+################################################################################
+#
+# Subroutines
+#
+################################################################################
+
+sub error_check {
+   my $status;
+   
+   # Check for a centerpoint
+   unless (($waypoint) || ($lat && $lon) || ($slat && $endlat && $slon && $endlon)) {
+      print "ERROR: You must supply a waypoint, latitude and longitude coordinates or starting and ending coordinates for both latitude and longiture\n\n";
+      $status++;
+   }
+   
+   # Check for area
+   unless ($area || ($slat && $endlat && $slon && $endlon)) {
+      print "ERROR: You must define an area to cover or starting and ending coordinates for both latitude and longiture\n\n";
+      $status++;
+   }
+   
+   return $status;
+}
+
+sub get_scales {
+   my ($scale_ref) = @_;
+   # OK lets figure out what scales they want
+   #
+   # '####'  - just that scale
+   # '>####' - scales above and including the number given
+   # '<####' - scales below and including the number given
+   # '####,####,####' - a list of scales to download
+   # '####-####' - scales from first to last
+   # 
+   my @SCALES_TO_GET;
+   for my $temp_scale (split /,/, $$scale_ref) {
+      if ($temp_scale =~ /^\d+$/) {
+         pod2usage(1) unless (grep (/$temp_scale/, @SCALES));
+         push(@SCALES_TO_GET,$temp_scale);
+      } elsif ($temp_scale =~ /^>\d+$/) {
+         $temp_scale =~ s/>//;
+         push(@SCALES_TO_GET, grep ($_ >= $temp_scale, @SCALES)); 
+      } elsif ($temp_scale =~ /^<\d+$/) {
+         $temp_scale =~ s/<//;
+         push(@SCALES_TO_GET, grep ($_ <= $temp_scale, @SCALES)); 
+      } elsif ($temp_scale =~  /-/) {
+         my(@NUMS) = split(/-/,$temp_scale);
+         @NUMS = sort {$a <=> $b} @NUMS;
+         push(@SCALES_TO_GET, grep (($_ >= $NUMS[0]) && ($_ <= $NUMS[1]), @SCALES));
+      } else {
+         pod2usage(1);
+      }
+   }
+   return \@SCALES_TO_GET;
+} #End get_scales
+
+sub file_count {
+   my ($slat,$slon,$endlat,$endlon) = @_;
+   my $count;
+   foreach my $scale (@{$SCALES_TO_GET_ref}) {
+      my $k = $DIFF * $scale;
+      my $klat = $k - ($k / 2); ### FIX BY CAMEL
+      my $klon = $k - ($k / 6); ### FIX BY CAMEL
+      my $lati = $$slat;   
+      while ($lati < $$endlat) {
+         my $long = $$slon;
+         while ($long < $$endlon) {
+            $long += $klon; ### FIX BY CAMEL
+            $count++;
+         }
+         $lati += $klat; ### FIX BY CAMEL
+         $long = $slon; ### FIX BY CAMEL
+      }
+   }
+   return($count);
+} #end file_count
+
+sub get_waypoint {
+   my ($waypoint_ref) = @_;
+
+   # If they give just a filename, we should assume they meant the CONFIG_DIR
+   $WAYPT_FILE = "$CONFIG_DIR/$WAYPT_FILE" unless ($WAYPT_FILE =~ /\//);
+   
+   open(WAYPT,"$WAYPT_FILE") || die "ERROR: Can't open: $WAYPT_FILE\n";
+   my ($name,$lat,$lon);
+   while (<WAYPT>) {
+      chomp;
+      next unless (/$$waypoint_ref/);
+      ($name,$lat,$lon) = split(/\s+/);
+   }
+   close(WAYPT);
+   unless (($lat) && ($lon)) {
+      print "Unable to find waypoint '$$waypoint_ref' in '$WAYPT_FILE'\n";
+      exit;
+   }
+   return($lat,$lon);
+} #End get_waypoint
+
+sub get_unit {
+   # If they give just a filename, we should assume they meant the CONFIG_DIR
+   $CONFIG_FILE = "$CONFIG_DIR/$CONFIG_FILE" unless ($CONFIG_FILE =~ /\//);
+   
+   # If not specified on the command line, we read from the config file
+   open(CONFIG,"$CONFIG_FILE") || die "Can't open $CONFIG_FILE\n";
+   my $unit;
+   while (<CONFIG>) {
+      next unless (/units\s=/);
+      chomp;
+      $unit = $_;
+      $unit =~ s/units\s=\s//;
+   }   
+   close(CONFIG);
+   return $unit;
+} #End get_unit
+
+sub get_mapdir {
+   # If they give just a filename, we should assume they meant the CONFIG_DIR  
+   $CONFIG_FILE = "$CONFIG_DIR/$CONFIG_FILE" unless ($CONFIG_FILE =~ /\//);
+
+   # If not specified on the command line, we read from the config file
+   open(CONFIG,"$CONFIG_FILE") || die "Can't open $CONFIG_FILE\n";
+   my $mapdir;
+   while (<CONFIG>) {
+      next unless (/mapdir\s=/);
+      chomp;
+      $mapdir = $_;
+      $mapdir =~ s/mapdir\s=\s//;
+   }
+   close(CONFIG);
+   return $mapdir;
+
+} #End get_mapdir
+
+sub get_coords {
+   my ($lat_ref,$lon_ref,$area_ref,$unit_ref) = @_;
+
+   # Figure out if we are doing square area or a rectangle
+   my ($lat_dist,$lon_dist);
+   if ($$area_ref =~ /x/i) {
+      ($lat_dist,$lon_dist) = split(/x/i,$$area_ref);
+   } else {
+      $lat_dist = $$area_ref;
+      $lon_dist = $$area_ref;
+   }
+   print "Latitude distance: $lat_dist, Longitude distance: $lon_dist\n" if ($debug); 
+
+   my $lon_dist_km = calc_lon_dist($lat_ref);
+   my $lat_offset  = calc_offset($unit_ref,\($lat_dist,$LAT_DIST_KM));
+   my $lon_offset  = calc_offset($unit_ref,\($lon_dist,$lon_dist_km));   
+
+   print "LAT_OFFSET = $$lat_offset LON_OFFSET = $$lon_offset \n" if ($debug);
+   
+   # Ok subtract the offset for the start point
+   my $slat = $$lat_ref - $$lat_offset;
+   my $slon = $$lon_ref - $$lon_offset;
+   
+   # Ok add the offset for the start point
+   my $elat = $$lat_ref + $$lat_offset;   
+   my $elon = $$lon_ref + $$lon_offset;   
+    
+   return ($slat,$slon,$elat,$elon);
+} #End get_coords
+
+sub calc_offset {
+   my($unit_ref,$area_ref,$dist_per_degree) = @_;
+   
+   # Adjust the dist_per_degree for the unit chosen by the user
+   if ($$unit_ref =~ /miles/) {
+      $$dist_per_degree *= $KM2MILES;   
+   } elsif ($$unit_ref =~ /nautic/) {
+      $$dist_per_degree *= $KM2NAUTICAL;
+   }
+   
+   # The offset for the coordinate is the distance to travel divided by 
+   # the dist per degree   
+   my $offset = sprintf("%.7f", ($$area_ref / 2) / $$dist_per_degree);
+   
+   return(\$offset);
+} #End calc_offset
+
+sub calc_lon_dist {
+   my ($lat) = @_;
+   my $PI  = 3.141592654;
+   my $dr = $PI / 180;
+   
+   # calculate the circumference of the small circle at latitude 
+   my $cos = cos($$lat * $dr); # convert degrees to radians
+   my $circ_km = sprintf("%.2f",($PI * 2 * $RADIUS_KM * $cos));
+   
+   # divide that by 360 and you have kilometers per degree
+   my $km_deg = sprintf("%.2f",($circ_km / 360));
+   
+   return ($km_deg);
+} #End calc_longitude_dist
+
+__END__
+
+=head1 NAME
+
+B<gpsfetchmap> Version 1.04
+
+=head1 DESCRIPTION
+
+B<gpsfetchmap> is a program to download maps from a mapserver for use with gpsdrive. 
+
+=head1 SYNOPSIS
+
+B<Common usages:>
+
+gpsfetchmap -w <WAYPOINT NAME> -sc <SCALE> -a <#> -p
+
+gpsfetchmap -la <latitude MM.DDDD> -lo <latitude MM.DDDD> -sc <SCALE> -a <#> -p
+
+gpsfetchmap -sla <start latitude MM.DDDD> -endla <end latitude MM.DDDD> -slo <start longitude MM.DDDD> -endlo <end longitude MM.DDDD> -sc <SCALE> -a <#> -p
+
+B<All options:>
+
+gpsfetchmap [-w <WAYPOINT NAME>]
+            [-la <latitude DD.MMMM>] [-lo <longitude DD.MMMM>] 
+            [-sla <start latitude DD.MMMM>] [-endla <end latitude DD.MMMM>]
+            [-slo <start longitude DD.MMMM>] [-endlo <end longitude DD.MMMM>]
+            [-sc <SCALE>] [-a <#>] [-p] [-m <MAPSERVER>]
+            [-u <UNIT>] [-md <DIR>] [-W <FILE>]
+            [-C <FILE>] [-P <PREFIX>] [-F] [-d] [-v] [-h] [-M]
+
+=head1 OPTIONS
+
+=over 8
+
+=item B<-w, --waypoint <WAYPOINT NAME>>
+   
+Takes a waypoint name and uses the latitude and longitude for that waypoint as the centerpoint
+of the area to be covered. Waypoints are read from 'way.txt', or file defined by '-W'. This, '-la' and '-lo' or '-sla', '-ela', '-slo', '-elo' is required. 
+
+=item B<-la,  --lat <latitude DD.MMMM>>
+
+Takes a latitude in format DD.MMMM and uses that as the latitude for the centerpoint of the area
+to be covered. Will be overriden by the latitude of waypoint if '-w' is used. This and '-lo', '-w' or '-sla', '-ela', '-slo', '-elo' is required.
+
+=item B<-lo, --lon <longitude DD.MMMM>>
+
+Takes a longitude in format DD.MMMM and uses that as the longitude for the centerpoint of the area
+to be covered. Will be overriden by the longitude of waypoint if '-w' is used. This and '-la', '-w' or '-sla', '-ela', '-slo', '-elo' is required.
+
+=item B<-sla --start-lat <start latitude DD.MMMM>>
+
+Takes a latitude in format DD.MMMM and uses that as the start latitude for the area to be covered. Will override '-la' and '-lo' but will be overriden by '-w'. This, '-ela', '-slo' and '-elo' or '-w' or '-la' and '-lo' is required.
+
+=item B<-ela --end-lat <end latitude DD.MMMM>>
+
+Takes a latitude in format DD.MMMM and uses that as the end latitude for the area to be covered. Will override '-la' and '-lo' but will be overriden by '-w'. 
+This, '-sla', '-slo' and '-elo' or '-w' or '-la' and '-lo' is required.
+
+=item B<-slo --start-lon <start longitude DD.MMMM>>
+
+Takes a longitude in format DD.MMMM and uses that as the start longitude for the area to be covered. Will override '-la' and '-lo' but will be overriden by '-w'. This, '-sla', '-ela' and '-elo' or '-w' or '-la' and '-lo' is required.
+
+=item B<-elo --end-lon <end longitude DD.MMMM>>
+
+Takes a longitude in format DD.MMMM and uses that as the end longitude for the area to be covered. Will override '-la' and '-lo' but will be overriden by '-w'. This, '-sla', '-ela' and '-slo' or '-w' or '-la' and '-lo' is required.
+
+=item B<-sc, --scale <SCALE>>
+
+Scales of map(s) to download. Default: 50000.
+
+Formats:
+
+   '####'
+   - Just this scale.   
+
+   '####,####,####'  
+   - All scales in the list. May be combined with other formats.
+
+   '>####'          
+   - All scales above and including the number given.
+
+   '<####'           
+   - All scales below and including the number given.
+
+   '####-####'       
+   - All scales from first to last number given.
+
+=item B<-a, --area <#>>
+
+Area to cover. # of 'units' size square around the centerpoint. You can use a single number
+for square area. Or you can use '#x#' to do a rectangle, where the first number is distance
+latitude and the second number is distance of longitude. 'units' is read from the configuration 
+file (-C) or as defined by (-u).
+
+=item B<-p, --polite>
+
+This causes the program to sleep one second between downloads to be polite to the mapserver. 
+Takes an optional value of number of seconds to sleep.
+
+=item B<-m, --mapserver <MAPSERVER>>
+
+Mapserver to download from. Currently can use: 'mapblast' or 'expedia'.Default: 'mapblast'. 
+
+=item B<-u, --unit <UNIT>>
+
+The measurement system to use. Default is read from configuration file <-C>. Possibles are: 
+miles, nautical, kilometers.
+
+=item B<-md --mapdir <DIR>>
+
+Override the configfiles mapdir with this value.
+
+=item B<-W, --WAYPOINT <FILE>>
+
+File to read waypoints from. Default: '~/.gpsdrive/way.txt'. 
+
+=item B<-C, --CONFIG>
+
+File to read for GPSDrive configuration information. Default: '~/.gpsdrive/gpsdriverc'.
+
+=item B<-P, --PREFIX <PREFIX>>
+
+Takes a prefix string to be used as the start of all saved map files. Default: "map_".
+
+=item B<-F, --FORCE>
+
+Force program to download maps without asking you to confirm the download.
+
+=item B<-d, --debug>
+
+Prints debugging information.
+
+=item B<-v, --version>
+
+Prints version information and exits.
+
+=item B<--help -h -x>
+
+Prints the usage page and exits.
+
+=item B<--MAN -M>
+
+Prints the manual page and exits.
+
+=back
+
+=cut
+

Added: packages/gpsdrive/branches/etch/src/gpsicon.png
===================================================================
(Binary files differ)


Property changes on: packages/gpsdrive/branches/etch/src/gpsicon.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: packages/gpsdrive/branches/etch/src/gpsiconbt.png
===================================================================
(Binary files differ)


Property changes on: packages/gpsdrive/branches/etch/src/gpsiconbt.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: packages/gpsdrive/branches/etch/src/gpskismet.c
===================================================================
--- packages/gpsdrive/branches/etch/src/gpskismet.c	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/gpskismet.c	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,410 @@
+/****************************************************************
+
+Copyright (c) 2001-2004 Fritz Ganter <ganter at ganter.at>
+
+Website: www.gpsdrive.de
+
+Disclaimer: Please do not use for navigation. 
+
+    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
+
+    *********************************************************************
+
+$Log: gpskismet.c,v $
+Revision 1.23  2004/02/08 17:16:25  ganter
+replacing all strcat with g_strlcat to avoid buffer overflows
+
+Revision 1.22  2004/02/08 16:35:10  ganter
+replacing all sprintf with g_snprintf to avoid buffer overflows
+
+Revision 1.21  2004/02/07 15:53:38  ganter
+replacing strcpy with g_strlcpy to avoid bufferoverflows
+
+Revision 1.20  2004/02/02 03:38:32  ganter
+code cleanup
+
+Revision 1.19  2004/01/28 15:31:43  ganter
+initialize FDs to -1
+
+Revision 1.18  2004/01/28 09:32:57  ganter
+tested for memory leaks with valgrind, looks good :-)
+
+Revision 1.17  2004/01/05 05:52:58  ganter
+changed all frames to respect setting
+
+Revision 1.16  2004/01/01 09:07:33  ganter
+v2.06
+trip info is now live updated
+added cpu temperature display for acpi
+added tooltips for battery and temperature
+
+Revision 1.15  2003/08/31 17:37:58  ganter
+v 2.04: better Kismet support, read end of README.kismet
+
+Revision 1.14  2003/08/12 14:21:18  ganter
+v2.03
+fixed kismet bug (wrong GPS position)
+compiles also on SuSE 8.1
+compiles on GTK+ >= 2.0.6
+fixed wrong font (Sans 10 Bold 10 message)
+
+Revision 1.13  2003/01/15 17:03:17  ganter
+MySQL is now loaded dynamically on runtime, no mysql needed for compile.
+Needs only libmysqlclient.so now.
+
+Revision 1.12  2003/01/15 15:30:28  ganter
+before dynamically loading mysql
+
+Revision 1.11  2002/12/08 03:18:26  ganter
+shortly before 1.31
+
+Revision 1.10  2002/11/27 00:02:27  ganter
+1.31pre2
+
+Revision 1.9  2002/11/14 00:05:55  ganter
+added README.kismet
+v 1.30pre5
+
+Revision 1.8  2002/11/12 20:37:15  ganter
+v30pre4
+added more icons, fix for kismet w/o mysql
+
+Revision 1.7  2002/11/06 05:29:15  ganter
+fixed most warnings
+
+Revision 1.6  2002/11/06 01:44:15  ganter
+v1.30pre2
+
+Revision 1.5  2002/11/05 17:04:04  ganter
+...
+
+Revision 1.4  2002/11/05 02:29:59  ganter
+bugfixes for kismet mode
+
+Revision 1.3  2002/11/05 00:02:42  ganter
+...
+
+Revision 1.2  2002/11/05 00:00:14  ganter
+gpskismet seems to work
+
+Revision 1.1  2002/11/04 18:01:53  ganter
+added gpskismet.c
+
+
+reads info from kismet server and insert waypoints into database
+
+*****************************************************************/
+
+#include "config.h"
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <netdb.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <string.h>
+#include <sys/time.h>
+#include <gpsdrive.h>
+
+
+#define MAXDBNAME 30
+extern char dbhost[MAXDBNAME], dbuser[MAXDBNAME], dbpass[MAXDBNAME];
+extern char dbtable[MAXDBNAME], dbname[MAXDBNAME];
+extern char dbwherestring[5000];
+extern char dbtypelist[100][40];
+extern double dbdistance;
+extern int dbtypelistcount;
+extern int usesql;
+extern int debug, dbusedist;
+extern gchar homedir[500], mapdir[500];
+
+extern MYSQL mysql;
+MYSQL_RES *res;
+MYSQL_ROW row;
+
+static char macaddr[30], name[80], tbuf[500], lastmacaddr[30];
+static int nettype, channel, wep;
+
+/*  Defines for gettext I18n */
+# include <libintl.h>
+# define _(String) gettext(String)
+# ifdef gettext_noop
+#  define N_(String) gettext_noop(String)
+# else
+#  define N_(String) (String)
+# endif
+
+/* variables */
+extern gdouble current_long, current_lat, old_long, old_lat, groundspeed;
+extern gdouble zero_long, zero_lat, target_long, target_lat, dist;
+int kismetsock = -1, havekismet;
+static char kbuffer[20010];
+static int bc = 0;
+fd_set kismetreadmask;
+struct timeval kismettimeout;
+static char lat[30], lon[30], bestlat[30], bestlon[30];
+enum
+{ english, german, spanish }
+voicelang;
+
+#define KISMETSERVERNAME "localhost"
+
+
+int
+readkismet (void)
+{
+  signed char c;
+  char q[1200], buf[300], tname[80], sqllat[30], sqllon[30];
+  int e, r, have, i, j, sqlid = 0;
+
+  e = 0;
+  FD_ZERO (&kismetreadmask);
+  FD_SET (kismetsock, &kismetreadmask);
+  kismettimeout.tv_sec = 0;
+  kismettimeout.tv_usec = 10000;
+
+  do
+    {
+      if (select (FD_SETSIZE, &kismetreadmask, NULL, NULL, &kismettimeout) <
+	  0)
+	{
+	  perror ("select() call");
+	}
+
+      if ((have = FD_ISSET (kismetsock, &kismetreadmask)))
+	{
+	  while ((e = read (kismetsock, &c, 1)) > 0)
+	    {
+	      if (c != '\n')
+		*(kbuffer + bc++) = c;
+	      else
+		{
+		  c = -1;
+		  g_strlcat (kbuffer, "\n", sizeof(kbuffer));
+/* 	g_print("\nfinished: %d",bc); */
+		  break;
+		}
+	      if (bc > 20000)
+		{
+		  bc = 0;
+		  g_print ("kbuffer overflow!\n");
+		}
+
+	    }
+	}
+
+
+      if (c == -1)
+	{
+/* have read a line */
+	  bc = c = 0;
+	  if ((strstr (kbuffer, "*NETWORK:")) == kbuffer)
+	    {
+	      if (debug)
+		g_print ("\nkbuffer:%s\n", kbuffer);
+	      e =
+		sscanf (kbuffer,
+			"%s %s %d \001%255[^\001]\001 %d"
+			" %d  %s %s %s %s %[^\n]", tbuf, macaddr, &nettype,
+			name, &channel, &wep, lat, lon, bestlat, bestlon,
+			tbuf);
+
+	    }
+	  if (e == 10)
+	    {
+	      if (debug)
+		g_print
+		  ("\ne: %d mac: %s nettype: %d name: %s channel: %d wep: %d "
+		   "lat: %s lon: %s bestlat: %s bestlon: %s\n", e, macaddr,
+		   nettype, name, channel, wep, lat, lon, bestlat, bestlon);
+
+/* insert waypoint only if we had not just inserted it */
+/* 	      if ((strcmp (lastmacaddr, macaddr)) != 0) */
+	      {
+/* 		  g_strlcpy (lastmacaddr, macaddr); */
+		g_snprintf (q, sizeof (q),
+			    "select id,lat,lon from %s where macaddr='%s'",
+			    dbtable, macaddr);
+		if (debug)
+		  g_print ("\nquery: %s\n", q);
+		if (dl_mysql_query (&mysql, q))
+		  exiterr (3);
+		if (!(res = dl_mysql_store_result (&mysql)))
+		  exiterr (4);
+		r = 0;
+		while ((row = dl_mysql_fetch_row (res)))
+		  {
+		    sqlid = atol (row[0]);
+		    g_strlcpy (sqllat, row[1], sizeof (sqllat));
+		    g_strlcpy (sqllon, row[2], sizeof (sqllon));
+
+		    r++;
+		  }
+
+		if (r > 1)
+		  g_print
+		    ("\n\a\a*** ERROR: duplicate macaddr in database ***\n");
+
+		dl_mysql_free_result (res);
+		if (debug)
+		  g_print ("\nnum fields: %d", r);
+
+		if ((strcmp (name, "<no ssid>")) == 0)
+		  g_strlcpy (name, "no_ssid", sizeof (name));
+		g_strdelimit (name, " ", '_');
+/* escape ' */
+		j = 0;
+		for (i = 0; i <= (int) strlen (name); i++)
+		  {
+		    if (name[i] != '\'')
+		      tname[j++] = name[i];
+		    else
+		      {
+			tname[j++] = '\\';
+			tname[j++] = '\'';
+		      }
+		  }
+
+
+/* 		  we have it in the database, but update bestlat and bestlong */
+		if (r > 0)
+		  if ((strcmp (sqllat, lat) != 0) &&
+		      (strcmp (sqllon, lon) != 0))
+		    {
+		      if ((atol (bestlat) != 0.0) && (atol (bestlon) != 0))
+			if ((strcmp (lat, "90.000000") != 0) &&
+			    (strcmp (lon, "180.000000") != 0))
+			  {
+			    if (debug)
+			      g_print
+				("*** This is a changed waypoint: %s [%s]\n",
+				 name, macaddr);
+
+			    g_snprintf (q, sizeof (q),
+					"UPDATE %s SET name='%s',macaddr='%s',nettype='%d',lat='%s',lon='%s',type='%s',wep='%d' WHERE id='%d'",
+					dbtable, tname, macaddr, nettype,
+					bestlat, bestlon,
+					(wep) ? "WLAN-WEP" : "WLAN", wep,
+					sqlid);
+			    if (debug)
+			      printf ("\nquery: %s\n", q);
+			    if (dl_mysql_query (&mysql, q))
+			      exiterr (3);
+			  }
+		    }
+
+
+/* 		  this is a new network, we store it in the database */
+		if ((r == 0) && (strcmp (lat, "90.000000") != 0) &&
+		    (strcmp (lon, "180.000000") != 0))
+		  {
+		    g_strlcpy (lastmacaddr, macaddr, sizeof (lastmacaddr));
+		    if (debug)
+		      g_print ("*** This is a new waypoint: %s [%s]\n", name,
+			       macaddr);
+
+		    g_snprintf (q, sizeof (q),
+				"INSERT INTO %s (name,macaddr,nettype,lat,lon,type,wep)"
+				" VALUES ('%s','%s','%d','%s','%s','%s','%d')",
+				dbtable, tname, macaddr, nettype, lat, lon,
+				(wep) ? "WLAN-WEP" : "WLAN", wep);
+		    if (debug)
+		      printf ("\nquery: %s\n", q);
+		    if (dl_mysql_query (&mysql, q))
+		      exiterr (3);
+
+		    g_strdelimit (name, "_", ' ');
+		    switch (voicelang)
+		      {
+		      case english:
+			g_snprintf (buf, sizeof (buf),
+				    "Found new %s access point: %s",
+				    (wep) ? "crypted" : "open", name);
+			break;
+		      case spanish:
+			g_snprintf (buf, sizeof (buf),
+				    "Found new %s access point: %s",
+				    (wep) ? "closed" : "open", name);
+			break;
+		      case german:
+			g_snprintf (buf, sizeof (buf),
+				    "Es wurde ein neuer  %s exses point gefunden: %s",
+				    (wep) ? "verschlüsselter" : "offener",
+				    name);
+			break;
+		      }
+		    speech_out_speek (buf);
+		    /* if (debug) */
+/* 		    printf (_("rows inserted: %d\n"), r); */
+		    getsqldata ();
+		  }
+	      }
+	    }
+
+	  memset (kbuffer, 0, 20000);
+	  g_strlcpy (kbuffer, "", sizeof (kbuffer));
+	}
+
+    }
+  while (have != 0);
+
+  return TRUE;
+}
+
+int
+initkismet (void)
+{
+  struct sockaddr_in server;
+  struct hostent *server_data;
+  char buf[180];
+
+  g_strlcpy (lastmacaddr, "", sizeof (lastmacaddr));
+/*  open socket to port */
+  if ((kismetsock = socket (AF_INET, SOCK_STREAM, 0)) < 0)
+    {
+      perror (_("can't open socket for port "));
+      return -1;
+    }
+  server.sin_family = AF_INET;
+/*  We retrieve the IP address of the server from its name: */
+  if ((server_data = gethostbyname (KISMETSERVERNAME)) == NULL)
+    {
+      fprintf (stderr, "%s: unknown host", KISMETSERVERNAME);
+      close (kismetsock);
+      return -1;
+    }
+  memcpy (&server.sin_addr, server_data->h_addr, server_data->h_length);
+  server.sin_port = htons (2501);
+/*  We initiate the connection  */
+  if (connect (kismetsock, (struct sockaddr *) &server, sizeof server) < 0)
+    {
+      close (kismetsock);
+
+      return -1;
+    }
+  else
+    {
+      havekismet = TRUE;
+      g_strlcpy (buf,
+		 "!0 ENABLE NETWORK bssid,type,ssid,channel,wep,minlat,minlon,bestlat,bestlon\n",
+		 sizeof (buf));
+      write (kismetsock, buf, strlen (buf));
+    }
+
+  return TRUE;
+}

Added: packages/gpsdrive/branches/etch/src/gpsmisc.c
===================================================================
--- packages/gpsdrive/branches/etch/src/gpsmisc.c	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/gpsmisc.c	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,402 @@
+/***********************************************************************
+
+Copyright (c) 2001-2004 Fritz Ganter <ganter at ganter.at>
+
+Website: www.gpsdrive.de
+
+Disclaimer: Please do not use for navigation. 
+
+    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
+
+    *********************************************************************
+
+$Log: gpsmisc.c,v $
+Revision 1.5  2004/02/18 13:24:19  ganter
+navigation
+
+Revision 1.4  2004/02/07 15:53:38  ganter
+replacing strcpy with g_strlcpy to avoid bufferoverflows
+
+Revision 1.3  2004/02/02 09:03:42  ganter
+2.08pre10
+
+Revision 1.2  2004/02/02 07:12:57  ganter
+inserted function calcxytopos, key x,y and right mouseclick are now correct in topomaps
+
+Revision 1.1  2004/02/02 03:38:32  ganter
+code cleanup
+
+*/
+
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <stdio.h>
+#include <math.h>
+#include <unistd.h>
+#include <stdlib.h>
+#include <string.h>
+#include <gpsdrive.h>
+#include <config.h>
+#include <math.h>
+
+/*  Defines for gettext I18n */
+# include <libintl.h>
+# define _(String) gettext(String)
+# ifdef gettext_noop
+#  define N_(String) gettext_noop(String)
+# else
+#  define N_(String) (String)
+# endif
+
+
+
+/* variables */
+extern gint ignorechecksum, debug, mapistopo;
+extern gdouble Ra[201];
+extern gdouble zero_long, zero_lat, target_long, target_lat, dist;
+extern gint real_screen_x, real_screen_y, real_psize, real_smallmenu,
+  int_padding;
+extern gint SCREEN_X_2, SCREEN_Y_2;
+extern gdouble pixelfact, posx, posy, angle_to_destination, direction,
+  bearing;
+extern gint havepos, haveposcount, blink, gblink, xoff, yoff, crosstoogle;
+extern gdouble current_long, current_lat, old_long, old_lat, groundspeed,
+  milesconv;
+
+
+
+gint
+checksum (gchar * text)
+{
+  gchar t[120], t2[10];
+  gint i = 1, checksum = 0, j, orig;
+
+  if (ignorechecksum)
+    return TRUE;
+
+  strncpy (t, text, 100);
+  t[100] = 0;
+  j = strlen (t) - 3;
+  while (('\0' != t[i]) && (i < j))
+    checksum = checksum ^ t[i++];
+  g_strlcpy (t2, (t + j + 1),sizeof(t2));
+  sscanf (t2, "%X", &orig);
+  if (debug)
+    g_print ("\n%s\norigchecksum: %X,my:%X", t, orig, checksum);
+
+  if (orig == checksum)
+    {
+      g_strlcpy (text, t,1000);
+      return TRUE;
+    }
+  else
+    {
+      g_print
+	("\n*** NMEA checksum error!\nNMEA: %s\n is: %X, should be: %X\n", t,
+	 orig, checksum);
+      return FALSE;
+    }
+}
+
+/* calculates lat and lon for the given position on the screen */
+void
+calcxytopos (int posx, int posy, gdouble * mylat, gdouble * mylon, gint zoom)
+{
+  int x, y, px, py;
+  gdouble dif, lat, lon;
+
+  x = posx;
+  y = posy;
+  px = (SCREEN_X_2 - x - xoff) * pixelfact / zoom;
+  py = (-SCREEN_Y_2 + y + yoff) * pixelfact / zoom;
+
+
+  if (mapistopo == FALSE)
+    {
+      lat = zero_lat - py / (Ra[(int) (100 + current_lat)] * M_PI / 180.0);
+      lat = zero_lat - py / (Ra[(int) (100 + lat)] * M_PI / 180.0);
+      lon =
+	zero_long -
+	px / ((Ra[(int) (100 + lat)] * M_PI / 180.0) *
+	      cos (M_PI * lat / 180.0));
+
+      dif = lat * (1 - (cos ((M_PI * fabs (lon - zero_long)) / 180.0)));
+      lat = lat - dif / 1.5;
+      lon =
+	zero_long -
+	px / ((Ra[(int) (100 + lat)] * M_PI / 180.0) *
+	      cos (M_PI * lat / 180.0));
+    }
+  else
+    {
+      lat = zero_lat - py / (Ra[(int) (100 + 0)] * M_PI / 180.0);
+
+      lon = zero_long - px / ((Ra[(int) (100 + 0)] * M_PI / 180.0));
+    }
+
+  *mylat = lat;
+  *mylon = lon;
+
+}
+
+void
+calcxy (gdouble * posx, gdouble * posy, gdouble lon, gdouble lat, gint zoom)
+{
+  gdouble dif;
+
+  if (mapistopo == FALSE)
+    *posx =
+      (Ra[(int) (100 + lat)] * M_PI / 180.0) * cos (M_PI * lat / 180.0) *
+      (lon - zero_long);
+  else
+    *posx = (Ra[(int) (100 + 0.0)] * M_PI / 180.0) * (lon - zero_long);
+
+  *posx = SCREEN_X_2 + *posx * zoom / pixelfact;
+  *posx = *posx - xoff;
+
+
+  if (mapistopo == FALSE)
+    {
+      *posy = (Ra[(int) (100 + lat)] * M_PI / 180.0) * (lat - zero_lat);
+      dif =
+	Ra[(int) (100 + lat)] * (1 -
+				 (cos ((M_PI * (lon - zero_long)) / 180.0)));
+      *posy = *posy + dif / 1.85;
+    }
+  else
+    *posy = (Ra[(int) (100 + lat)] * M_PI / 180.0) * (lat - zero_lat);
+
+  *posy = SCREEN_Y_2 - *posy * zoom / pixelfact;
+  *posy = *posy - yoff;
+}
+
+void
+calcxymini (gdouble * posx, gdouble * posy, gdouble lon, gdouble lat,
+	    gint zoom)
+{
+  gdouble dif;
+
+  if (mapistopo == FALSE)
+    *posx =
+      (Ra[(int) (100 + lat)] * M_PI / 180.0) * cos (M_PI * lat / 180.0) *
+      (lon - zero_long);
+  else
+    *posx = (Ra[(int) (100 + 0)] * M_PI / 180.0) * (lon - zero_long);
+
+  *posx = 64 + *posx * zoom / (10 * pixelfact);
+  *posx = *posx;
+
+  *posy = (Ra[(int) (100 + lat)] * M_PI / 180.0) * (lat - zero_lat);
+  if (mapistopo == FALSE)
+    {
+      dif =
+	Ra[(int) (100 + lat)] * (1 -
+				 (cos ((M_PI * (lon - zero_long)) / 180.0)));
+      *posy = *posy + dif / 1.85;
+    }
+  *posy = 51 - *posy * zoom / (10 * pixelfact);
+  *posy = *posy;
+}
+
+
+gdouble
+calcR (gdouble lat)
+{
+  gdouble a = 6378.137, r, sc, x, y, z;
+  gdouble e2 = 0.081082 * 0.081082;
+/*
+the radius of curvature of an ellipsoidal Earth in the plane of the 
+meridian is given by 
+
+ R' = a * (1 - e^2) / (1 - e^2 * (sin(lat))^2)^(3/2) 
+
+ where a is the equatorial radius, 
+b is the polar radius, and 
+e is the eccentricity of the ellipsoid = sqrt(1 - b^2/a^2) 
+
+a = 6378 km (3963 mi) Equatorial radius (surface to center distance) 
+b = 6356.752 km (3950 mi) Polar radius (surface to center distance) 
+e = 0.081082 Eccentricity 
+*/
+
+  lat = lat * M_PI / 180.0;
+  sc = sin (lat);
+  x = a * (1.0 - e2);
+  z = 1.0 - e2 * sc * sc;
+  y = pow (z, 1.5);
+  r = x / y;
+
+  r = r * 1000.0;
+/*      g_print("\nR=%f",r); */
+  return r;
+}
+
+
+gdouble
+calcdist2 (gdouble longi, gdouble lati)
+{
+  double a, a1, a2, c, d, dlon, dlat, sa, radiant = M_PI / 180;
+
+
+  dlon = radiant * (current_long - longi);
+  dlat = radiant * (current_lat - lati);
+
+  if ((dlon == 0.0) && (dlat == 0.0))
+    return 0.0;
+
+  a1 = sin (dlat / 2);
+  a2 = sin (dlon / 2);
+  a =
+    (a1 * a1) + cos (lati * radiant) * cos (current_lat * radiant) * a2 * a2;
+  sa = sqrt (a);
+  if (sa <= 1.0)
+    c = 2 * asin (sa);
+  else
+    c = 2 * asin (1.0);
+  d = (Ra[(int) (100 + current_lat)] + Ra[(int) (100 + lati)]) * c / 2.0;
+  return milesconv * d / 1000.0;
+}
+
+/*  same as calcdist2, but much more precise */
+gdouble
+calcdist (gdouble longi, gdouble lati)
+{
+  gdouble a = 6378137.0;
+  gdouble f = 1.0 / 298.25722210088;
+  gdouble glat1, glat2, glon1, glon2;
+  gdouble radiant = M_PI / 180;
+  gdouble r, tu1, tu2, cu1, su1, cu2, s, baz, faz, x, sx, cx, sy, cy, y;
+  gdouble sa, c2a, cz, e, c, d;
+  gdouble eps = 0.5e-13;
+
+/*   if (cpuload<10)
+ *     {
+ *       r = calcdist2 (longi, lati);
+ *       return r;
+ *     }
+ */
+  if (((lati - current_lat) == 0.0) && ((longi - current_long) == 0.0))
+    return 0.0;
+
+  glat1 = radiant * current_lat;
+  glat2 = radiant * lati;
+  glon1 = radiant * current_long;
+  glon2 = radiant * longi;
+
+  r = 1.0 - f;
+  tu1 = r * sin (glat1) / cos (glat1);
+  tu2 = r * sin (glat2) / cos (glat2);
+  cu1 = 1.0 / sqrt (tu1 * tu1 + 1.0);
+  su1 = cu1 * tu1;
+
+  cu2 = 1.0 / sqrt (tu2 * tu2 + 1.0);
+  s = cu1 * cu2;
+  baz = s * tu2;
+  faz = baz * tu1;
+  x = glon2 - glon1;
+
+  do
+    {
+      sx = sin (x);
+      cx = cos (x);
+      tu1 = cu2 * sx;
+      tu2 = baz - su1 * cu2 * cx;
+      sy = sqrt (tu1 * tu1 + tu2 * tu2);
+
+      cy = s * cx + faz;
+      y = atan2 (sy, cy);
+      sa = s * sx / sy;
+      c2a = -sa * sa + 1.0;
+      cz = faz + faz;
+
+      if (c2a > 0)
+	cz = -cz / c2a + cy;
+      e = cz * cz * 2.0 - 1.0;
+      c = ((-3.0 * c2a + 4.0) * f + 4.0) * c2a * f / 16.0;
+      d = x;
+
+      x = ((e * cy * c + cz) * sy * c + y) * sa;
+      x = (1.0 - c) * x * f + glon2 - glon1;
+    }
+  while (fabs (d - x) > eps);
+
+  faz = atan2 (tu1, tu2);
+  baz = atan2 (cu1 * sx, baz * cx - su1 * cu2) + M_PI;
+  x = sqrt ((1.0 / r / r - 1.0) * c2a + 1.0) + 1.0;
+  x = (x - 2.0) / x;
+  c = 1.0 - x;
+  c = (x * x / 4.0 + 1.0) / c;
+  d = (0.375 * x * x - 1.0) * x;
+  x = e * cy;
+  s = 1.0 - e - e;
+  s =
+    ((((sy * sy * 4.0 - 3.0) * s * cz * d / 6.0 - x) * d / 4.0 +
+      cz) * sy * d + y) * c * a * r;
+
+  return milesconv * s / 1000.0;
+}
+
+/* This is an internally used function to create pixmaps. */
+GdkPixbuf *
+create_pixbuf (const gchar * filename)
+{
+  gchar pathname[200];
+  GdkPixbuf *pixbuf;
+  GError *error = NULL;
+
+  if (!filename || !filename[0])
+    return NULL;
+
+
+  g_snprintf (pathname, sizeof (pathname), "%s/gpsdrive/%s", DATADIR,
+	      filename);
+  if (!pathname)
+    {
+      g_warning (_("Couldn't find pixmap file: %s"), pathname);
+      return NULL;
+    }
+
+  pixbuf = gdk_pixbuf_new_from_file (pathname, &error);
+  if (!pixbuf)
+    {
+      fprintf (stderr, "Failed to load pixbuf file: %s: %s\n",
+	       pathname, error->message);
+    }
+  return pixbuf;
+}
+
+GtkWidget* create_pixmap(GtkWidget *widget, const gchar     *filename)
+{
+  gchar pathname[200];
+  GtkWidget *pixmap=NULL;
+ 
+  if (!filename || !filename[0])
+      return gtk_image_new ();
+ 
+   g_snprintf (pathname, sizeof (pathname), "%s/gpsdrive/%s", DATADIR,
+	      filename);
+
+ 
+  pixmap = gtk_image_new_from_file (pathname);
+  if (!pixmap)
+    {
+      g_warning (_("Couldn't find pixmap file: %s"), pathname);
+      return gtk_image_new ();
+    }
+
+  return pixmap;
+}
+

Added: packages/gpsdrive/branches/etch/src/gpsnasamap.c
===================================================================
--- packages/gpsdrive/branches/etch/src/gpsnasamap.c	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/gpsnasamap.c	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,331 @@
+/***********************************************************************
+
+Copyright (c) 2001-2004 Fritz Ganter <ganter at ganter.at>
+
+Website: www.gpsdrive.de
+
+Disclaimer: Please do not use for navigation. 
+
+    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
+
+    *********************************************************************
+
+$Log: gpsnasamap.c,v $
+Revision 1.15  2004/02/08 17:16:25  ganter
+replacing all strcat with g_strlcat to avoid buffer overflows
+
+Revision 1.14  2004/02/08 16:35:10  ganter
+replacing all sprintf with g_snprintf to avoid buffer overflows
+
+Revision 1.13  2004/02/06 22:29:24  ganter
+updated README and man page
+
+Revision 1.12  2004/02/04 14:47:10  ganter
+added GPGSA sentence for PDOP (Position Dilution Of Precision).
+
+Revision 1.11  2004/02/03 07:11:21  ganter
+working on problems if gpsdrive is not installed
+
+Revision 1.10  2004/02/01 22:48:01  ganter
+added output to gpsnasamap.c
+
+Revision 1.9  2004/02/01 05:24:59  ganter
+missing nasamaps should now really work!
+upload again 2.08pre9!
+
+Revision 1.8  2004/02/01 05:10:12  ganter
+fixed bug if 1 nasamap is missing
+
+Revision 1.7  2004/02/01 01:57:03  ganter
+it seems that nasamaps now working fine
+
+Revision 1.6  2004/01/31 14:48:03  ganter
+pre8
+
+Revision 1.5  2004/01/31 13:43:57  ganter
+nasamaps are working better, but still bugs
+
+Revision 1.4  2004/01/31 08:27:22  ganter
+i hope the nasa maps work all over the world
+I expect it works not in australia, will see after i get a little bit sleep
+
+Revision 1.3  2004/01/31 06:24:21  ganter
+nasa maps at lon=0 works now
+
+Revision 1.2  2004/01/31 04:16:49  ganter
+...
+
+Revision 1.1  2004/01/31 04:11:01  ganter
+oh, forgot to add to CVS
+
+Revision 1.1  2004/01/30 22:20:44  ganter
+convnasamap creates mapfiles from the big nasa map files
+
+
+*/
+
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <stdio.h>
+#include <math.h>
+#include <unistd.h>
+#include <stdlib.h>
+#include <string.h>
+#include <gpsdrive.h>
+
+/*  Defines for gettext I18n */
+# include <libintl.h>
+# define _(String) gettext(String)
+# ifdef gettext_noop
+#  define N_(String) gettext_noop(String)
+# else
+#  define N_(String) (String)
+# endif
+
+static char mybuffer[10000];
+extern char homedir[500], mapdir[500];
+extern GtkWidget *mainwindow;
+static GtkWidget *nasawindow = NULL;
+extern int debug;
+static int fdin_w, fdin_e;
+static char outfilename[100], inputfilename_e[255], inputfilename_w[255];
+static int havenasamaps;
+int
+init_nasa_mapfile ()
+{
+
+  havenasamaps = FALSE;
+
+  if (mapdir[strlen (mapdir) - 1] != '/')
+    g_strlcat (mapdir, "/", sizeof(mapdir));
+
+
+  g_snprintf (outfilename, sizeof (outfilename), "%stop_NASA_IMAGE.ppm",
+	      mapdir);
+
+  g_snprintf (inputfilename_e, sizeof (inputfilename_e),
+	      "%snasamaps/top_nasamap_east.raw", homedir);
+
+  g_snprintf (inputfilename_w, sizeof (inputfilename_w),
+	      "%snasamaps/top_nasamap_west.raw", homedir);
+
+  fdin_e = open (inputfilename_e, O_RDONLY);
+  if (fdin_e >= 0)
+    havenasamaps = TRUE;
+  fdin_w = open (inputfilename_w, O_RDONLY);
+  if (fdin_w >= 0)
+    havenasamaps = TRUE;
+
+  return 0;
+}
+
+void
+cleanup_nasa_mapfile ()
+{
+  if (fdin_w >= 0)
+    close (fdin_w);
+  if (fdin_e >= 0)
+    close (fdin_e);
+}
+
+int
+create_nasa_mapfile (double lat, double lon, int test, char *fn)
+{
+/*     lat,lon= koordinates */
+/* test= test if maps are present */
+/* fn = filename of the generated file */
+  int fdout, uc = 0;
+  int scale, e, xsize_e, xsize_w;
+  int xstart, ystart, y, x_w, x_e;
+  double mylon;
+  GtkWidget *myprogress, *text, *vbox;
+  char textbuf[40];
+
+  if (!havenasamaps)
+    return -1;
+
+  scale = 2614061;
+  mylon = lon;
+
+  g_strlcpy (fn, "nofile.sorry", 255);
+
+/* return if no map found */
+  if (lon > 0)
+    {
+      xstart = (int) (21600.0 * (lon / 180.0));
+      if (((xstart < 1280) || (xstart > 20320)) && (fdin_w < 0))
+	return -1;
+      if (fdin_e < 0)
+	return -1;
+    }
+  else
+    {
+      lon = 180.0 + lon;
+      xstart = (int) (21600.0 * (lon / 180.0));
+      if (((xstart < 1280) || (xstart > 20320)) && (fdin_e < 0))
+	return -1;
+      if (fdin_w < 0)
+	return -1;
+    }
+
+  if (!test)
+    {
+      fdout = open (outfilename, O_RDWR | O_TRUNC | O_CREAT, 0644);
+      if (fdout < 0)
+	{
+	  fprintf (stderr, _("could not create output map file %s!\n"),
+		   outfilename);
+	  return -1;
+	}
+
+      nasawindow = gtk_window_new (GTK_WINDOW_POPUP);
+      vbox = gtk_vbox_new (FALSE, 6);
+      gtk_container_add (GTK_CONTAINER (nasawindow), vbox);
+/*       gtk_window_set_transient_for (GTK_WINDOW (nasawindow), */
+/* 				    GTK_WINDOW (mainwindow)); */
+      gtk_window_set_position (GTK_WINDOW (nasawindow), GTK_WIN_POS_CENTER);
+
+/*   g_signal_connect (window, "destroy", */
+/* 		    G_CALLBACK (gtk_widget_destroyed), &window); */
+
+      gtk_window_set_title (GTK_WINDOW (nasawindow), _("Creating map..."));
+      gtk_container_set_border_width (GTK_CONTAINER (nasawindow), 20);
+
+      myprogress = gtk_progress_bar_new ();
+      gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (myprogress), 0.0);
+      gtk_box_pack_start (GTK_BOX (vbox), myprogress, TRUE, TRUE, 2);
+      text =
+	gtk_label_new (_
+		       ("Creating a temporary map from NASA satellite images"));
+      gtk_box_pack_start (GTK_BOX (vbox), text, TRUE, TRUE, 2);
+
+/*       gtk_widget_show_all (nasawindow); */
+      gtk_widget_show_all (nasawindow);
+      if (debug)
+	fprintf (stdout,
+		 _("converting map for latitude: %f and longitude: %f ...\n"),
+		 lat, lon);
+
+/*       if (lon < 0.0) */
+/* 	lon = 180.0 + lon; */
+      g_strlcpy (fn, "top_NASA_IMAGE.ppm", 255);
+
+
+      g_snprintf (mybuffer, sizeof (mybuffer),
+		  "P6\n# CREATOR: GpsDrive\n1280 1024\n255\n");
+
+      e = write (fdout, mybuffer, strlen (mybuffer));
+      uc = e;
+      lon = mylon;
+      xstart = (int) (21600.0 * (lon / 180.0));
+
+      ystart = 3 * 21600 * (int) (10800 - 10800.0 * (lat / 90.0));
+
+/*    fprintf (stdout, "xstart: %d, ystart: %d\n", xstart, ystart);  */
+      xstart -= 640;
+      ystart = ystart - 512 * 21600 * 3;
+
+      x_w = x_e = -1;
+      xsize_w = xsize_e = 1280;
+
+      if (xstart < 0)
+	{
+	  x_w = 21600 + xstart;
+	  x_e = 1280 - x_w;
+
+	  if (x_e < -20320)
+	    x_e = -1;
+	  else if (x_e < 0)
+	    x_e = 0;
+
+	  if (x_w < -20320)
+	    x_w = -1;
+	  else if (x_w < 0)
+	    x_w = 0;
+	  xsize_w = 21600 - x_w;
+	  xsize_e = 1280 - xsize_w;
+	}
+      else if (xstart > 20320)
+	{
+	  x_w = (xstart + 1280) - 21600;
+	  x_e = 1280 - x_w;
+	  if (x_e < 20320)
+	    x_e = -1;
+	  if (x_e < 0)
+	    x_e = 0;
+	  xsize_w = x_w;
+	  xsize_e = 1280 - xsize_w;
+	}
+      else
+	{
+	  if (mylon >= 0.0)
+	    x_e = xstart;
+	  else
+	    x_w = xstart;
+	}
+      if (xsize_w > 1280)
+	xsize_w = 1280;
+      if (xsize_e > 1280)
+	xsize_e = 1280;
+      x_w *= 3;
+      x_e *= 3;
+
+      for (y = 0; y < 1024; y++)
+	{
+	  if ((y % 32) == 0)
+	    {
+	      gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (myprogress),
+					     y / 1024.0);
+	      g_snprintf (textbuf, sizeof (textbuf), "%d%%",
+			  (int) (100.0 * y / 1024));
+	      gtk_progress_bar_set_text (GTK_PROGRESS_BAR (myprogress),
+					 textbuf);
+	      while (gtk_events_pending ())
+		gtk_main_iteration ();
+
+	    }
+
+	  if (x_w != -3)
+	    {
+	      e = lseek (fdin_w, x_w + ystart + y * 21600 * 3, SEEK_SET);
+	      e = read (fdin_w, mybuffer, xsize_w * 3);
+	      e = write (fdout, mybuffer, xsize_w * 3);
+	      uc += e;
+	    }
+	  if (x_e != -3)
+	    {
+	      e = lseek (fdin_e, x_e + ystart + y * 21600 * 3, SEEK_SET);
+	      e = read (fdin_e, mybuffer, xsize_e * 3);
+	      e = write (fdout, mybuffer, xsize_e * 3);
+	      uc += e;
+	    }
+	}
+/*       fprintf (stderr, "wrote %d bytes (%.1f MB) to mapfile\n", uc, */
+/* 	       uc / (1024.0 * 1024.0)); */
+
+      gtk_widget_destroy (GTK_WIDGET (nasawindow));
+      close (fdout);
+      g_strlcpy (mybuffer, g_basename (outfilename), sizeof (mybuffer));
+      fprintf (stdout,
+	       _
+	       ("\nYou can permanently add this map file with following line in your\nmap_koord.txt (rename the file!):\n"));
+      fprintf (stdout, "\n%s %f %f %d\n", mybuffer, lat, lon, scale);
+
+    }				/* End of if !test */
+
+
+  return scale;
+}

Added: packages/gpsdrive/branches/etch/src/gpspoint2gpsdrive.pl
===================================================================
--- packages/gpsdrive/branches/etch/src/gpspoint2gpsdrive.pl	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/gpspoint2gpsdrive.pl	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,204 @@
+#!/usr/bin/perl -w
+#
+# gpspoint2gpsdrive.pl
+#
+# Convert gpspoint track file to gpsdrive track file(s)
+#
+# Copyleft 2002 Stephen Merrony <steveATcygnetDOTcoDOTuk>
+#
+#    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
+#
+# Change log:
+#
+# Author         Version       Details
+#---------------------------------------------------------------------------------
+# S.Merrony       0.0.2        Fix bogus track extraction, add waypoint extraction
+# S.Merrony       0.0.3        Fix case where no altitude, add version number to help
+
+use strict;
+
+my %opts;
+use Getopt::Std;
+getopts('hf:wv', \%opts);
+
+$opts{h} = 0 if (!defined( $opts{h} ));
+$opts{w} = 0 if (!defined( $opts{w} ));
+$opts{v} = 0 if (!defined( $opts{v} ));
+
+my $trackfnprefix = "track";
+my $trackfnext    = ".sav";
+my $pointformat   = "%10.6f %10.6f %10.0d %s\n";  # <=== This is the gpsdrive track format ===
+my $wayptfilename = "way.txt";
+my $wayptformat   = "%s %10.6f %10.6f\n";      # <=== This is the gpsdrive waypoint format ===
+
+my $wayptcnt      = 0;
+my $trackcount    = 0;
+
+# Help!
+if ($opts{h} ) {
+  my $help = <<'ENDOFHELP';
+
+gpspoint2gpsdrive.pl:
+=====================
+
+Extract gpsdrive-compatible track file(s) from a gpspoint file.
+Optionally also extracts waypoints and appends them to way.txt.
+
+ -h                     This help message - you guessed that!
+ -f <gpspointfilename>  The file to extract tracks from.
+ -w                     Extract waypoints and append to way.txt
+ -v                     Verbose mode - yada yada yada
+
+Version 0.0.3 (August 2002)
+
+ENDOFHELP
+  print $help;
+  exit;
+}
+
+if (!$opts{f} or $opts{f} eq "" ) {
+  print "Error: You must enter a filename via the -f switch.\n";
+  exit;
+}
+
+use FileHandle;
+
+my $infile;
+
+# open the file for reading if we can - else bail out
+$infile = new FileHandle "< $opts{f}";
+if (!defined( $infile )) {
+  print "Error: Unable to open file '$opts{f}' for input\n";
+  exit;
+}
+
+my $am_writing = 0;
+
+my ($latitude, $longitude,  $timestamp, $wayptname);
+my $altitude = 1.0;
+my $thisline;
+my $trackfilename;
+my $trackfile = new FileHandle;
+my $wayptfile = new FileHandle;
+my $blocktype;
+my $dummytime = 0;
+
+# plough through the file
+while (<$infile>) {
+
+  $thisline = $_;
+  chomp( $thisline ); # remove newline
+
+  # Gpspoint files contain comments starting with a # symbol, blank lines
+  # and lines with comma separated lists of values and name-value pairs
+  # We only want certain name-value pairs...
+
+  # ignore comments and blank or very short lines
+  if ( (substr( $thisline, 0, 1 ) ne "#") &&
+       (length( $thisline ) > 5 ) ) {
+    
+    my (@pairs, $pair);
+
+    @pairs = split( ' ', $thisline );
+    foreach $pair ( @pairs ) {
+      my $name = "";
+      my $value = "";
+      ($name, $value) = split( '=', $pair );
+      if (defined( $name ) && defined( $value )) { # only process pairs
+	$value = substr( $value, 1, length( $value ) - 2 );  # remove quotes
+
+	# starting a new track?
+	if (($name eq "type") && ($value eq "track" )) {
+	  # $trackfile->close if ($am_writing);
+	  $am_writing = 0;
+	  $blocktype = "TRACK";
+	  print "Info: Found start of track\n" if ($opts{v} eq 1);
+	}
+	# new set of waypoints?
+	elsif (($name eq "type") && ($value eq "waypointlist") && $opts{w}) {
+	  $am_writing = 0;
+	  $blocktype = "WAYPOINTS";
+	  print "Info: Found start of waypoint list\n" if ($opts{v} eq 1);
+	  if (!$wayptfile->open( ">> $wayptfilename" )) {
+	    print "Error: Unable to append to waypoint file '$wayptfilename'\n";
+	    exit;
+	  }
+	  $am_writing = 1;
+	  print "Info: Starting writing waypoint s to '$wayptfilename'\n" if ($opts{v} eq 1);
+	}
+	elsif (($name eq "type") && ($value eq "route")) {
+	  # not interested in routes at this stage
+	  $blocktype = "";
+	  $am_writing = 0;
+	}
+     
+	# trap other info types here?
+
+	# name of a new track
+	if (defined( $name ) && ($name eq "name") && defined( $blocktype ) && ($blocktype eq "TRACK")) {
+	  $trackfilename = $trackfnprefix . $value . $trackfnext;
+	  if (!$trackfile->open("> $trackfilename" )) {
+	    print "Error: Unable to open track output file '$trackfilename'\n";
+	    exit;
+	  }
+	  $am_writing = 1;
+	  $trackcount++;
+	  print "Info: Starting to write track '$trackfilename'\n" if ($opts{v} eq 1);
+	}
+
+	# name of a new waypoint
+	if (($opts{w} eq 1) && ($blocktype eq "WAYPOINTS") && ($name eq "name")) {
+	  $wayptname = $value;
+	  $wayptcnt++;
+	}
+
+	if ($name eq "latitude" ) {
+	  $latitude  = $value;
+	}
+	if ($name eq "longitude" ) {
+	  $longitude = $value;
+	}
+	if ($name eq "altitude" ) {
+	  $altitude  = $value;
+	}
+	if ($name eq "unixtime" ) {
+	  $timestamp = localtime( $value );
+	}
+      }
+	
+    } # end of name-value pair loop
+    #print $thisline;
+  } #end if
+
+  # done with this line - write out a trackfile line if we have one
+  if ($am_writing && defined( $longitude )  && ($blocktype eq "TRACK")) {
+    # some tracks have no time info - so we'll insert an early timestamp
+    $timestamp = localtime(0) if (!defined( $timestamp ));
+    printf $trackfile $pointformat, ($latitude, $longitude, $altitude, $timestamp);
+  }
+
+  # done with this line - write out a waypoint line if we have one
+  if ($am_writing && defined( $latitude )  && ($blocktype eq "WAYPOINTS")) {
+    printf $wayptfile $wayptformat, ($wayptname, $latitude, $longitude);
+  }
+
+} # end of per-line loop
+ 
+# clean up nicely
+$infile->close;
+$trackfile->close if ($opts{w} eq 1);
+
+print "Info: All done.\n" if ($opts{v} eq 1);
+print "$trackcount tracks and $wayptcnt waypoints extracted\n";

Added: packages/gpsdrive/branches/etch/src/gpsproto.h
===================================================================
--- packages/gpsdrive/branches/etch/src/gpsproto.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/gpsproto.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,119 @@
+/* ***********************************************************************  */
+/*  Prototypes */
+int initkismet (void);
+int readkismet (void);
+int getsqltypelist (void);
+int deletesqldata (int index);
+int insertsqldata (double lat, double lon, char *name, char *typ);
+int sqlinit (void);
+void sqlend (void);
+int getsqldata ();
+void loadmap (char *filename);
+gint zoom_cb (GtkWidget * widget, guint datum);
+void splash (void);
+int garblemain (int argc, char **argv);
+void display_status (char *message);
+gint drawmarker (GtkWidget * widget, guint * datum);
+gint downloadslave_cb (GtkWidget * widget, guint datum);
+gint downloadstart_cb (GtkWidget * widget, guint datum);
+gint downloadsetparm (GtkWidget * widget, guint datum);
+void savemapconfig ();
+gint loadmapconfig ();
+void loadwaypoints ();
+void savewaypoints ();
+gint speech_out_speek (char *text);
+gint speech_out_init ();
+gdouble calcdist (gdouble longi, gdouble lati);
+gdouble calcdist2 (gdouble longi, gdouble lati);
+gint speech_saytime_cb (GtkWidget * widget, guint datum);
+gint help_cb (GtkWidget * widget, guint datum);
+gint sel_target_cb (GtkWidget * widget, guint datum);
+gint import1_cb (GtkWidget * widget, guint datum);
+
+gint friendsagent_cb (GtkWidget * widget, guint * datum);
+gint addwaypoint_cb (GtkWidget * widget, gpointer datum);
+void writeconfig ();
+void readconfig ();
+gint create_route_cb (GtkWidget * widget, guint datum);
+void insertroutepoints ();
+void setroutetarget ();
+gint initgps ();
+gint miles_cb (GtkWidget * widget, guint datum);
+gint shadow_cb (GtkWidget * widget, guint datum);
+gint etch_cb (GtkWidget * widget, guint datum);
+gint defaultserver_cb (GtkWidget * widget, guint datum);
+gint expose_sats_cb (GtkWidget * widget, guint * datum);
+gint testgarmin_cb (GtkWidget * widget, guint datum);
+gint serialdev_cb (GtkWidget * widget, guint datum);
+gint usedgps_cb (GtkWidget * widget, guint datum);
+gint mapdir_cb (GtkWidget * widget, guint datum);
+gint simfollow_cb (GtkWidget * widget, guint datum);
+void saytargettext (gchar * filename, gchar * target);
+void display_dsc (void);
+void decimaltomin (gchar * text, gint islat);
+gint minsec_cb (GtkWidget * widget, guint datum);
+void checkinput (gchar * text);
+void mintodecimal (gchar * text);
+gint night_cb (GtkWidget * widget, guint datum);
+void mainsetup (void);
+void testifnight (void);
+void infos (void);
+gint removesetutc (GtkWidget * widget, guint datum);
+gint nav_doit (GtkWidget * widget, guint * datum);
+gint expose_cb (GtkWidget * widget, guint * datum);
+gint expose_compass (GtkWidget * widget, guint * datum);
+gint dotripmeter (GtkWidget * widget, guint datum);
+void trip (void);
+gint expose_mini_cb (GtkWidget * widget, guint * datum);
+gint speech_out_speek_raw (char *text);
+void sqlsetup (void);
+gint tripreset ();
+int friends_sendmsg (char *serverip, char *message);
+int friendsinit ();
+void friendssetup (void);
+char *getexpediaurl ();
+gint reminder_cb (GtkWidget * widget, guint datum);
+gint quit_program (GtkWidget * widget, gpointer datum);
+gint loadtrack_cb (GtkWidget * widget, gpointer datum);
+gint about_cb (GtkWidget * widget, guint datum);
+gint sel_message_cb (GtkWidget * widget, guint datum);
+gint setmessage_cb (GtkWidget * widget, guint datum);
+void signalposreq ();
+gint reinsertwp_cb (GtkWidget * widget, guint datum);
+GdkPixbuf *create_pixbuf (const gchar * filename);
+int gpsserialinit (void);
+void gpsserialquit ();
+gint simulated_pos (GtkWidget * widget, guint * datum);
+void speech_out_close (void);
+int create_nasa_mapfile (double lat, double lon, int test, char *fn);
+int init_nasa_mapfile ();
+void cleanup_nasa_mapfile ();
+gint checksum (gchar * text);
+gint wpfileselect_cb (GtkWidget * widget, guint datum);
+gint slowcpu_cb (GtkWidget * widget, guint datum);
+gint earthmate_cb (GtkWidget * widget, guint datum);
+gint noserial_cb (GtkWidget * widget, guint datum);
+void daylights (void);
+gint setutc (GtkWidget * widget, guint datum);
+gint callsqlupdateonce_cb (GtkWidget * widget, guint datum);
+gint dbbuildquery_cb (GtkWidget * widget, guint datum);
+G_MODULE_EXPORT gint modulesetup ();
+gint vfr_cb (GtkWidget *widget, guint datum);
+gint flymode_cb (GtkWidget *widget, guint datum);
+gint disdev_cb (GtkWidget *widget, guint datum);
+gint message_cb (char *msgid, char *name, char *text, int fs);
+void exiterr (int exitcode);
+void *getserialdata (void *);
+int gpsserialinit (void);
+void calcxy (gdouble * posx, gdouble * posy, gdouble lon, gdouble lat, gint zoom);
+void rebuildtracklist (void);
+gint error_popup (gpointer datum);
+void calcxymini (gdouble * posx, gdouble * posy, gdouble lon, gdouble lat,
+	    gint zoom);
+gdouble calcR (gdouble lat);
+void calcxytopos (int , int , gdouble *, gdouble *, int );
+gint navi_cb (GtkWidget * widget, guint datum);
+GtkWidget* create_pixmap(GtkWidget *widget, const gchar *filename);
+gint speech_out_cb (GtkWidget * widget, guint * datum);
+
+

Added: packages/gpsdrive/branches/etch/src/gpsreplay
===================================================================
--- packages/gpsdrive/branches/etch/src/gpsreplay	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/gpsreplay	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,705 @@
+#!/usr/bin/perl -w
+
+# @(#)$Id: gpsreplay,v 1.5 2004/01/18 19:37:24 ganter Exp $
+
+# Copyright (C) 2002 - 2003 Tim Witham <twitham at surewest.net>
+
+# (see the files README and COPYING for more details)
+
+# replay track logs for gpsdrive by pretending to be a GPS (gpsd)
+
+use strict;
+use vars qw/*Server *Client/;	# socket handles
+use Socket;
+use Tk qw(MainLoop Ev DoOneEvent);
+use Time::Local;
+use POSIX qw(strftime);
+
+# this should be calculated based on position but gpsdrive doesn't need it:
+my $variation = 0;		# degrees magnetic deviation, negative for west
+my $filter = 5.0002;		# ignore points < seconds.latlon from last
+my $rate = 4;			# update rate, times per second
+my $timescale = 1;		# speed up time by this factor
+my $format = "%a %b %e %H:%M:%S %Y"; # strftime format for clocks
+my $font = '7x13bold';		# font for the input/output text
+my $port = 2947;		# port to listen on for gpsdrive (like gpsd)
+my $connected = 0;		# whether gpsdrive is connected
+my $paused;			# whether replay is paused
+my $doc = [];			# documentation defines the bindings!
+my $unit = 'nm';		# preferred units display
+my $leglabel = '';		# label for the leg
+my $alt = 0;			# current altitude
+
+chdir "$ENV{HOME}/.gpsdrive" or warn "can't cd $ENV{HOME}/.gpsdrive: $!\n";
+if (open FILE, "gpsdriverc") {
+    while (<FILE>) {		# snag units from gpsdrive, if possible
+	$unit = $1 if /units = (\S+)/;
+    }
+    close FILE;
+}
+$unit =~ s/miles/mi/;		# convert to my format
+$unit =~ s/metric/km/;
+$unit =~ s/nautic/nm/;
+
+{				# listen for gpsdrive on the gpsd socket
+    my $proto = getprotobyname('tcp');
+    socket(Server, PF_INET, SOCK_STREAM, $proto) || die "socket: $!";
+    setsockopt(Server, SOL_SOCKET, SO_REUSEADDR, pack("l", 1))
+	|| die "setsockopt: $!";
+    bind(Server, sockaddr_in($port, INADDR_ANY)) || die "bind: $!";
+    listen(Server,SOMAXCONN) || die "listen: $!";
+}
+
+my $main = MainWindow->new;	# Tk window setup starts here
+
+$main->fileevent(\*Server, 'readable', \&accept); # socket handlers
+$SIG{PIPE} = \&close;
+
+my($file, $log, $p, $time, $leg); # all reset by readfile
+&readfile;			# initially with DATA below _END_, then
+my $tmp = shift @ARGV;		# re-set with command-line or file-open
+&readfile($tmp) if $tmp && -s $tmp;
+
+my $top = $main->Frame->pack(qw/-fill x/);
+my $canvas = $main->Canvas(qw/-width 800 -height 50 -highlightthickness 0
+			   -scrollregion/, [0, 0, 800, 50])->pack;
+my $scale = $main->Scale(qw/-orient horizontal -length 800 -variable/
+			 => \$time)->pack;
+
+my $bot = $main->Frame->pack(qw/-fill x/);
+my $inlabel = $bot->Label(-font => $font)->pack(qw/-side left/);
+my $in = $bot->Label(-font => $font)->pack(qw/-side right/);
+$bot = $main->Frame->pack(qw/-fill x/);
+my $outlabel = $bot->Label(-font => $font)->pack(qw/-side left/);
+my $out = $bot->Label(-font => $font)->pack(qw/-side right/);
+
+my $h = $top->Button(qw/-text Help -underline 0 -command/ => \&help
+		     )->pack(qw/-side right/);
+my $utctime = $top->Label->pack(qw/-side right/);
+my $loctime = $top->Label(qw/-relief raised/)->pack(qw/-side right/);
+my $menu = $top->Menubutton(qw/-underline 0 -relief raised
+			    -text File -direction below/
+			    )->pack(qw/-side left/);
+$menu->command(qw/-label ~Open... -command/ => sub {
+    my $tmp; &readfile($tmp) if $tmp = &fileDialog($main) });
+$menu->command(qw/-label ~Filter -command/ => sub {
+    &readfile('-reload') if $file});
+$menu->separator;
+my $rc = $menu->cascade(-label => '~Units');
+map {$rc->radiobutton(-label => "~$_", -value => $_, -variable => \$unit,
+		      -command => [\&updatelabels]) } qw/nm mi km/;
+$menu->command(-label => '~Run gpsdrive', -command
+	       => sub { fork || exec 'gpsdrive' });
+$menu->separator;
+$menu->command(qw/-label ~Quit -command/ => [$main => 'destroy']);
+$top->Entry(-textvariable => \$filter, -width => 0)->pack(qw/-side left/);
+$top->Button(qw/-text << -command/ => sub { $leg-- }  )->pack(qw/-side left/);
+$top->Button(qw/-text  < -command/ => [\&speed, 0, -1])->pack(qw/-side left/);
+$top->Button(qw/-text  > -command/ => [\&speed, 0,  1])->pack(qw/-side left/);
+$top->Button(qw/-text >> -command/ => sub { $leg++ }  )->pack(qw/-side left/);
+my $speedlabel = $top->Label->pack(qw/-side left/);
+my $space = $top->Checkbutton(qw/-text Pause -underline 0 -variable/
+			      => \$paused)->pack(qw/-side left/);
+
+my $bindings = [[sub {}],	# bindings for the POD =items, in order
+		[sub { $time -= 60}],
+		[sub { $time += 60 unless $_[1]}, Ev('%s')],
+		[sub { $time--}],
+		[sub { $time++}],
+		[sub { $leg--}],
+		[sub { $leg++}],
+		[\&speed, -1],
+		[\&speed,  1],
+		[sub { $space->toggle }],
+		[sub { $h->configure(qw/-relief sunken/); DoOneEvent;
+		       $h->invoke;
+		       $h->configure(qw/-relief raised/) }],
+		[$main => 'destroy'],
+		];
+
+for (@$doc) {			# cool hack gets bindings from POD below!
+    my $binding = shift @$bindings;
+    last unless $binding;
+    s/E<[^>]+>//g;
+    while (m/B(<\S+>)/g) {
+	$main->bind($1, $binding);
+    }
+}
+#$main->bind('<KeyPress>' => [ sub { print "$_[1]\n" }, Ev('%K') ]); # key debgr
+
+$main->repeat(1000 / $rate, \&update);
+MainLoop;			# no return, we're done!
+
+sub reset {			# reset scale for new leg
+    $leg = shift || 1;
+    $leg = 1 if $leg < 1 || $leg >= @{$log->{leg}};
+    $p = $log->{$log->{leg}[$leg]{begin}};
+    $scale->configure(-from => $p->{time}, -to => $log->{leg}[$leg]{end});
+    $time = $p->{time};
+    $canvas->delete('all');	# draw new speed spectrum graph
+    my $q = $p;
+    my $maxspeed = $log->{leg}[$leg]{max};
+    my $maxalt = $log->{leg}[$leg]{alt} || 1;
+    while ($q->{leg} == $leg) {
+	my $fast = $q->{speed} / $maxspeed;
+	my $color = sprintf "#%02X%02X00", 255 - 255 * $fast, 255 * $fast;
+	my $begin = ($scale->coords($q->{time}))[0];
+	my $end = ($scale->coords($q->{time} + $q->{diff}))[0];
+	$canvas->createRectangle($begin, 45 - 45 * $fast, $end, 49,
+				 -fill => $color, -outline => undef);
+	my $alt = 45 - 45 * ($q->{alt} / $maxalt);
+	$canvas->createLine($begin, $alt, $end, $alt, -fill => '#000000');
+	$q = $q->{n};
+	last if $q == $p;
+    }
+    $canvas->createLine(qw/0 45 800 45 -fill black/); # time axis
+    my $inc = 1;
+    my $max = $scale->get(799, 0);
+    for (my $i = $scale->get(0, 0); $i <= $max; $i += $inc) {
+	my($s, $m, $h) = localtime $i;
+	unless ($s || $m % 5) { # do every 5 minutes at 0 seconds
+	    my $x = ($scale->coords($i))[0];
+	    if ($m % 60) {	# each 5 minutes
+		$canvas->createLine($x, 0, $x, 5, qw/-fill blue/);
+	    } elsif ($x > 50 and $x < 750) { # each hour
+		$canvas->createText($x, 0,
+				    qw/-anchor n -fill red -text/ => $h);
+	    }
+	    $canvas->createLine($x, 5, $x, 49, # each 15 minutes
+				qw/-fill blue -dash/ => [1, 5])
+		unless $m % 15;
+	    $inc = 300;		# 5 minutes: be more efficient from now on
+	}
+    }
+    $canvas->createText(qw/  0 45 -anchor sw -text/	=> sprintf "%02d:%02d",
+			(localtime $log->{leg}[$leg]{begin})[2,1]);
+    $canvas->createText(qw/800 45 -anchor se -text/	=> sprintf "%02d:%02d",
+			(localtime $log->{leg}[$leg]{end})[2,1]);
+    &updatelabels;
+}
+
+sub units {			# format distance or speed
+    my $nm = shift;
+    $nm *= 1.852		if $unit eq 'km';
+    $nm *= 1.15077944802	if $unit eq 'mi';
+    return $nm;
+}
+
+sub updatelabels {		# update only when needed for efficiency
+    $inlabel->configure(-text => sprintf
+			"%.1f %s in leg %d/%d, segment %d/%d for %2d seconds:",
+			&units($log->{leg}[$leg]{dist}), $unit,
+			$leg, @{$log->{leg}} - 1, $p->{point},
+			$log->{leg}[$leg]{point} - 1, $p->{diff});
+    $in->configure(-text => $p->{in});
+    $outlabel->configure(-text => (qw/Listening Connected/)[$connected]
+			 . " port $port, NMEA OUTPUT:");
+}
+
+sub update {			# all the real work is done here, often
+    $time += $timescale / $rate unless $paused;
+    &reset($leg) unless $leg == $p->{leg};
+    unless ($p->{time} <= $time && $time < $p->{n}{time}) { # find line seg
+	if ($time >= $log->{end}) {
+	    &reset(1);
+	} else {
+	    $p = $log->{$log->{begin}} if $time < $p->{time};
+	    until ($time < $p->{n}{time}) {
+		$p = $p->{n};	# find line segment that time is on
+	    }
+	    &reset($p->{leg}) unless $leg == $p->{leg};
+	}
+	&updatelabels;
+    }
+    &reset($p->{leg}) unless $leg == $p->{leg};
+    my $pos = ($scale->coords)[0]; # time/speed marker
+    $canvas->delete('marker');
+    $canvas->createLine($pos, 0, $pos, 49, qw/-tags marker -fill white/);
+    $canvas->createText($pos, 25, qw/-tags marker -text/ =>
+			sprintf "%.1f", &units($p->{speed}));
+    $canvas->createText(qw/  0 5 -anchor nw -tags marker -text/
+			=> &hms($time - $log->{leg}[$leg]{begin}));
+    $canvas->createText(qw/800 5 -anchor ne -tags marker -text/
+			=> &hms($log->{leg}[$leg]{end} - $time));
+    $utctime->configure(-text => strftime "  $format UTC  ",
+			my($s, $m, $h, $day, $mon, $y) = gmtime $time);
+    $loctime->configure(-text => strftime "  $format %Z  ",
+			localtime $time);
+
+    my $offset = $time - $p->{time}; # NMEA output to gpsdrive
+    my $nmea;
+    if ($alt != $p->{alt}) {	# altitude!
+	$nmea = sprintf "GPGGA,,,,,,,99,,%05.1f,M,,,,", $p->{alt};
+	$nmea = "\$" . $nmea . '*' . &cksum($nmea) . "\r\n";
+	print Client $nmea or &close if $connected;	# to gpsdrive
+	$alt = $p->{alt};
+    }
+    $nmea = sprintf "GPRMC,%02d%02d%02d,A,%02d%07.4f,%s,%03d%07.4f,%s,"
+	. "%05.1f,%05.1f,%02d%02d%02d,%05.1f,%s", $h, $m, $s,
+	&d2dm($p->{lat} + $p->{latinc} * $offset, qw(N S)),
+	&d2dm($p->{lon} + $p->{loninc} * $offset, qw(E W)),
+	$p->{speed}, $p->{dir}, $day, $mon + 1, $y % 100,
+	(&d2dm($variation, qw(E W)))[0,2];
+    $nmea = "\$" . $nmea . '*' . &cksum($nmea) . "\r\n";
+    print Client $nmea or &close if $connected;	# to gpsdrive
+    chomp $nmea;
+    $speedlabel->configure(-text => sprintf "%dx", $timescale);
+    $out->configure(-text => $nmea);
+    $p = $p->{n} and &reset($p->{leg}) if $p->{leg} != $p->{n}{leg}; # skip gaps
+}
+
+sub help {
+    my $help = $main->Toplevel(qw/-title gpsreplay(1)/);;
+    my $t = $help->Scrolled(qw/Text -setgrid true -width  80 -height 32
+			    -font normal -wrap none -scrollbars se/)->pack;
+    $help->Button(qw/-text Dismiss -command/ => [$help => 'destroy'])->pack;
+    $help->bind('<Button-4>', sub { $t->yviewScroll(-5, 'units') });
+    $help->bind('<Button-5>', sub { $t->yviewScroll( 5, 'units') });
+    $t->pack(qw/-expand yes -fill both/);
+    $t->tag(qw/configure bold -foreground blue/);
+    $t->tag(qw/configure underline -underline on/);
+    $ENV{TERM} = 'xterm';	# get formatted output!
+    open PIPE, "perldoc $0 |" or warn "can't run perldoc $0: $!\n";
+    while(<PIPE>) {
+	while (length $_) {
+	    if (!/\010/) {	# backspace
+		$t->insert('end', $_);
+		$_ = '';
+	    } elsif (s/^((.)\010)+\2//) {
+		$t->insert ('end', $2, 'bold');
+	    } elsif (s/^_\010(.)//) {
+		$t->insert ('end', $1, 'underline');
+	    } else {
+		$t->insert('end', $1) if s/^(.)//s;
+	    }
+	}
+    }
+    close PIPE;
+}
+
+sub hms {			# return given time formatted as h:m:s
+    my $time = shift;
+    return sprintf "%02d:%02d:%02d",
+    $time / 3600, $time % 3600 / 60, $time % 60;
+}
+
+BEGIN {				# tried to pick time scales that make sense:
+    my @speed = (1,		#   1 second per second (real time default)
+		 2,		#   2 seconds
+		 5,		#   5 seconds
+		 10,		#  10 seconds
+		 15,		# 1/4 minute
+		 30,		# 1/2 minute
+		 60,		#   1 minute
+		 120,		#   2 minutes
+		 300,		#   5 minutes
+		 600,		#  10 minutes
+		 900,		# 1/4 hour
+		 1800,		# 1/2 hour
+		 );
+    my $index = 0;
+    sub speed {
+	my($w, $accel) = @_;
+	if ($accel > 0) {
+	    $timescale = $speed[++$index] unless $index >= $#speed;
+	} else {
+	    $timescale = $speed[--$index] if $index;
+	}
+    }
+}
+
+sub accept {			# accept connection from gpsdrive
+    my $paddr;
+    $paddr = accept(Client,Server);
+    my($port,$iaddr) = sockaddr_in($paddr);
+    my $name = gethostbyaddr($iaddr,AF_INET);
+    select Client; $| = 1; select STDOUT;
+    $connected = 1;
+    &updatelabels;
+}
+
+sub close {			# close connection from gpsdrive
+    close Client;
+    $connected = 0;
+    &updatelabels;
+}
+
+sub fileDialog {		# file open dialog
+    my $w = shift;
+    my @types = (
+		 ["Track Logs", ['.sav', 'track*']],
+		 ["All files", '*']);
+    return $w->getOpenFile(-filetypes => \@types);
+}
+
+# Take a filename of log content and reset global variables.  Good formats:
+# gpstrans -m:	1 38.5116076 -121.4091825 34.0 0 12/17/2002 20:26:53
+# gpsdrive:	38.376603 -121.963256          0 Tue Dec 24 20:37:54 2002
+# garble:	38.7005, -121.257 / Mon Dec 23 05:40:43 2002
+sub readfile {			# read GPS tracklog file
+    $file = shift unless $_[0] && $_[0] eq '-reload';
+    my $self = {};
+    my $legp = {};
+    my $prev = 0;
+    my $reset = 1;
+    my $i = 1;
+    my $legn = 0;		# leg index
+    my @leg = ();
+    my %MON;
+    map { $MON{$_} = $i++ } qw(Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec);
+
+    my $fh;
+    if ($file) {
+	open $fh, $file or warn "can't open $file: $!" and return;
+    } else {
+	$fh = \*DATA;
+    }
+    while (<$fh>) {
+	chomp;
+	if (/__END__/) {	# snag wanted bindings from my documentation!
+	    while (<$fh>) {
+		push @$doc, $_ if /^=item(.+)/;
+	    }
+	    last;
+	}
+	s/^\d?\s+//;
+	next if /^\#/;		# allow comments
+	next if /^\w+log/;	# mayko xmap/hugo header
+	unless ($_) {
+	    $reset = 1;
+	    next;
+	}
+	my($lat, $lon, $alt, $dt) = split /,?\s+/, $_, 4;
+	next if $lat > 90;	# invalid?  1001 == gpsdrive lost GPS signal
+	next unless $dt;
+	my($i, $mon, $day, $h, $m, $s, $y) = split /[\s:]+/, $dt;
+	$mon = $MON{$mon};
+	if ($dt =~ s/^(\d+)\s+//) { # gpstrans -m format
+	    $alt = $1;
+	    ($mon, $day, $y, $h, $m, $s) = split '[\s:/]', $dt;
+	}
+	my $time = &timegm($s, $m, $h, $day, $mon - 1, $y - 1900);
+	if ($prev) {		# filter too much detail
+	    next if $time - $prev->{time} < int($filter);
+	    next if abs($prev->{lat} - $lat) < ($filter - int($filter))
+		&& abs($prev->{lon} - $lon) < ($filter - int($filter))
+	    }
+	$self->{begin} = $time unless $self->{begin};
+	$self->{end} = $time;
+	if ($reset) {		# new leg
+	    $legp = $self->{leg}[++$legn] = {
+		begin	=> $time,
+		end	=> $time,
+		point	=> 0,	# logged points
+		dist	=> 0,	# total distance
+		max	=> 1,	# max speed
+		alt	=> 0,	# max altitude
+	    };
+	}
+	$reset = 0;
+	my $this = $self->{$time} = { # one point record...
+	    in		=> $_,
+	    time	=> $time,
+	    lat		=> $lat,
+	    lon		=> $lon,
+	    alt		=> $alt,
+	    leg		=> $legn,
+	    dir		=> 0,	# these are overwritten when
+	    dist	=> 0,	# calculated from the next point
+	    diff	=> 1,
+	    speed	=> 0,
+	    latinc	=> 0,
+	    loninc	=> 0,
+	    point	=> ++$legp->{point},
+	    n		=> $self->{$self->{begin}}, # pointer to the next point
+	};
+	$prev = $this unless $prev;
+	$prev->{n} = $this;	# calculate segment between last and this
+	my $dir = &direction($this->{lat}, $this->{lon},
+			     $prev->{lat}, $prev->{lon});
+	my $dist = &distance($this->{lat}, $this->{lon},
+			     $prev->{lat}, $prev->{lon})  / 1.852; # knots?
+	my $diff = ($time - $prev->{time}) || 1;
+	my $speed = $dist / $diff * 3600;
+	my $latinc = ($this->{lat} - $prev->{lat}) / $diff; # change per second
+	my $loninc = ($this->{lon} - $prev->{lon}) / $diff;
+	$prev->{dir} = $dir;
+	$prev->{dist} = $dist;	# update the segment
+	$prev->{diff} = $diff;
+	$prev->{speed} = $speed;
+	$prev->{latinc} = $latinc;
+	$prev->{loninc} = $loninc;
+	$legp->{end} = $time;	# update leg stats
+	$legp->{dist} += $dist;
+	$legp->{max} = $speed if $speed > $legp->{max};
+	$legp->{alt} = $alt if $alt > $legp->{alt};
+	$prev = $this;
+    }
+    return unless @{$self->{leg}} > 1; # ignore if no legs
+    $log = $self;		# reset global variables to new values
+    $p = $self->{$self->{begin}};
+    $leg = $time = 0;
+    $file = '' unless $file;
+    $main->configure(-title => "Gpsreplay: $file");
+}
+
+sub asin { atan2($_[0], sqrt(1 - $_[0] * $_[0])) }
+
+BEGIN {
+    my $PI = 3.14159265358979323846;
+    my $DEG2RAD = $PI / 180.0;
+    sub distance {		# from gpstrans-0.36/gps/getgpsinfo.c (nautical)
+	my($lata, $lona, $latb, $lonb) = @_;
+	my $l0 = $lona * $DEG2RAD;
+	my $l1 = $lonb * $DEG2RAD;
+	my $b0 = $lata * $DEG2RAD;
+	my $b1 = $latb * $DEG2RAD;
+
+	return 6371 * 2 * asin(sqrt(cos($b1) * cos($b0)
+				    * sin(0.5 * ($l1 - $l0))
+				    * sin(0.5 * ($l1 - $l0))
+				    + sin(0.5 * ($b1 - $b0))
+				    * sin(0.5 * ($b1 - $b0))));
+    }
+    sub direction {		# compass direction
+	my($lata, $lona, $latb, $lonb) = @_; # current, old
+	my $dir = atan2($lonb - $lona, $lata - $latb);
+	$dir += 2 * $PI if $dir <= 0;
+	$dir -= 2 * $PI if $dir > 2 * $PI;
+	return 360 - $dir * 180 / $PI;
+    }
+}
+
+sub cksum {			# NMEA checksum is exclusive or
+    my $cksum = 0;
+    for (split //, shift) {
+	$cksum ^= ord($_);
+    }
+    return sprintf "%02X", $cksum;
+}
+
+sub d2dm {			# number, positive label, negative label
+    my($n, @dir) = @_;		# output: degrees, minutes, label
+    my $dir = $dir[$n < 0];
+    $n = abs($n);
+    my $d = int($n);
+    return $d, ($n - $d) * 60, $dir;
+}
+# Default log populates the data structures before a real file is
+# opened.  This is 2 legs with gap, good for testing (sitting in USA).
+__END__
+1 38.000 -100.000 0 0 01/01/2003 00:00:00
+1 38.002 -100.002 0 0 01/01/2003 00:15:00
+
+1 38.002 -100.002 0 0 01/01/2003 00:30:00
+1 38.000 -100.000 0 0 01/01/2003 01:00:00
+__END__
+
+=head1 NAME
+
+gpsreplay - replay GPS track logs for gpsdrive
+
+=head1 SYNOPSIS
+
+gpsreplay [track log file]
+
+=head1 DESCRIPTION
+
+I<gpsreplay> reads GPS track log files and plays them back for
+I<gpsdrive>.  This allows you to re-live a trip or examine it in
+detail to answer questions like "where did I go?" or "how long was I
+there?".
+
+All speeds are graphed on a "ruler" of time so you can easily locate
+stops and movement.  Time can be set to any position in the leg by
+dragging the slider with B<Button-1>.  The complete list of keyboard
+and mouse controls are listed below.  Moving time beyond the end of a
+leg moves to the next leg and redraws the time scale.  When the trip
+is complete, it starts over from the beginning, looping forever.
+
+Two clocks are displayed above the time scale.  These show the current
+simulated GPS time in the I<LOCAL> and I<UTC> timezones.
+
+=head1 ARGUMENTS
+
+=over 8
+
+=item B<track log file>
+
+GPS track log file to initially load.  If none is given, a built-in
+default is used.  B<File->>B<Open> can be used to open a new log file
+at any time, replacing the current log.  I<gpsreplay> understands
+I<gpstrans -m>, I<garble> and I<gpsdrive> track log formats.  Blank
+lines are used to split a log into multiple legs.  This may be done
+automatically when you turn your GPS off and back on.
+
+=back
+
+The file is filtered according to the number next to the B<File> menu.
+A value of 0 will do no filtering.  Increased filtering can be used to
+throw out some positional detail while smoothing out speed and
+heading.  The current file can be refiltered by adjusting this number
+and selecting B<File->>B<Filter>.
+
+=over 8
+
+The B<integer part> of this number indicates the quickest update time
+to accept.  Points less than this many seconds since the last point
+are ignored.
+
+The B<fractional part> of this number indicates the minimum latitude
+or logitude change distance to accept.  Points less than this far from
+the last point are ignored.
+
+=back
+
+=head1 CONTROLS
+
+The time-line can be completely controlled by the keyboard and/or
+mouse.  All control bindings are listed here including some emacs and
+vi-like key bindings.  The Button-4 and Button-5 ones may be the most
+convenient if you have a working wheel mouse.
+
+=over 8
+
+=item B<Button-4>, B<Left>, B<b>, B<h>
+
+Move back in time one minute.
+
+=item B<Button-5>, B<Right>, B<f>, B<l>
+
+Move forward in time one minute.
+
+=item B<Shift-Button-4>, B<Shift-Left>, B<Control-b>
+
+Move back in time one second.
+
+=item B<Shift-Button-5>, B<Shift-Right>, B<Control-f>
+
+Move forward in time one second.
+
+=item [B<E<lt>E<lt>>], B<Control-Button-4>, B<Control-Left>, B<less>, B<p>, B<k>
+
+Move to the beginning of the previous leg or the beginning of the log.
+The leg number is displayed below the time scale.
+
+=item [B<E<gt>E<gt>>], B<Control-Button-5>, B<Control-Right>, B<greater>, B<n>, B<j>
+
+Move to the beginning of the next leg.  Wraps around to the first leg
+after the last leg.
+
+=item [B<E<lt>>], B<Alt-Button-4>, B<Alt-Left>, B<Down>, B<comma>
+
+Slow down playback speed.  The playback speed is displayed below the
+time scale.  The slowest speed is 1x (real time) and this is also the
+initial default speed.
+
+=item [B<E<gt>>], B<Alt-Button-5>, B<Alt-Right>, B<Up>, B<period>
+
+Increase playback speed.
+
+=item [B<Pause>], B<space>, B<Alt-p>
+
+Pause automatic playback at the current point in time.  Time can still
+be moved manually while paused.
+
+=item [B<Help>], B<Alt-h>, B<Control-h>
+
+Open this documentation in a window.
+
+=item B<Escape>, B<q>
+
+Quit the program.
+
+=back
+
+=head1 FOOTER
+
+The footer displays the following information on two lines below the
+time scale.
+
+=head2 INPUT
+
+=over 2
+
+=item *
+
+Distance traveled in the current leg
+
+=item *
+
+Current leg number / total legs in the file
+
+=item *
+
+Current line segment / total segments in the leg
+
+=item *
+
+Real time duration of the current line segment
+
+=item *
+
+Log file input line of the last point passed
+
+=back
+
+=head2 OUTPUT
+
+=over 2
+
+=item *
+
+Whether I<Listening> for or I<Connected> to I<gpsdrive> on the given
+port number.
+
+=item *
+
+NMEA output being made available to I<gpsdrive>.  Speed and heading
+are calculated between two log points and assumed constant for the
+segment.  Position is updated linearly between the two points.
+
+=back
+
+=head1 BUGS
+
+I<gpsreplay> assumes logged timestamps are UTC as recorded by the GPS.
+But currently, I<gpsdrive> logs local computer time rather than GPS
+time.  This causes the clocks to be off.  As a workaround, you can
+consider the UTC clock to be local time and ignore the other one.
+
+I consider this to be a bug in I<gpsdrive>.  UTC is the only way to
+log a time in an unambiguous way without specifying a timezone.  Also,
+GPS time is more precise than some computer time.
+
+=head1 LIMITATIONS
+
+Because of the above bug, it is not valid to re-save a replayed track
+log from I<gpsdrive>.  Even if you ignore the wrong timestamps, the
+speeds will be wrong if the playback speed was anything other than 1x.
+Re-saving a replay is a bad idea anyway because it loses detail.
+
+Since I<gpsreplay> makes it possible to "teleport" rapidly from one
+point to another, or even travel backward in time, you may need to
+turn off B<Show Track> in I<gpsdrive>.  In order for the track to look
+right in I<gpsdrive>, you must not jump around on the time line or
+playback at a speed too fast for the map scale.
+
+I<gpsreplay> replaces I<gpsd> to appear like a real GPS to
+I<gpsdrive>.  Because of this, only one of the two can be running at
+the same time.  I<gpsreplay> must be started before I<gpsdrive>.
+I<gpsreplay> can only support one I<gpsdrive> connection at a time.
+
+=head1 AUTHOR
+
+Tim Witham <twitham at surewest.net>
+
+=head1 COPYRIGHT
+
+Copyright (C) 2002 - 2003 Tim Witham <twitham at surewest.net>
+
+I<gpsreplay> is released under the conditions of the GNU General
+Public License.  See the files README and COPYING in the distribution
+for details.
+
+=cut


Property changes on: packages/gpsdrive/branches/etch/src/gpsreplay
___________________________________________________________________
Name: svn:executable
   + *

Added: packages/gpsdrive/branches/etch/src/gpsserial.c
===================================================================
--- packages/gpsdrive/branches/etch/src/gpsserial.c	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/gpsserial.c	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,402 @@
+/*
+
+Copyright (c) 2001-2004 Fritz Ganter <ganter at ganter.at>
+
+Website: www.gpsdrive.de
+
+Disclaimer: Please do not use for navigation. 
+
+    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
+
+    *********************************************************************
+
+
+gpsserial.c 
+
+routines to read GPS data from serial device
+
+*/
+
+/*
+$Log: gpsserial.c,v $
+Revision 1.21  2004/02/12 17:42:53  ganter
+added -W switch for enable/disable WAAS/EGNOS (for SiRF II only?)
+
+Revision 1.20  2004/02/09 17:06:40  ganter
+fixed timeout behavior for direct serial connection
+
+Revision 1.19  2004/02/08 17:39:46  ganter
+v2.08pre12
+
+Revision 1.18  2004/02/08 16:35:10  ganter
+replacing all sprintf with g_snprintf to avoid buffer overflows
+
+Revision 1.17  2004/02/07 17:46:10  ganter
+...
+
+Revision 1.16  2004/02/07 15:53:38  ganter
+replacing strcpy with g_strlcpy to avoid bufferoverflows
+
+Revision 1.15  2004/02/07 00:02:16  ganter
+added "store timezone" button in settings menu
+
+Revision 1.14  2004/02/06 16:41:40  ganter
+added -E parameter, which prints out the NMEA messages received
+
+Revision 1.13  2004/02/06 12:09:31  ganter
+added select again, so we can check if data is coming
+
+Revision 1.12  2004/02/05 22:15:53  ganter
+code in gpsserial.c didn't work with USB receivers, because the send characters too fast
+this code now should be ok
+
+Revision 1.11  2004/02/05 19:47:31  ganter
+replacing strcpy with g_strlcpy to avoid bufferoverflows
+USB receiver does not send sentences in direct serial mode,
+so I first send a "\n" to it
+
+Revision 1.10  2004/02/02 18:20:00  ganter
+..
+
+Revision 1.9  2004/02/02 03:38:32  ganter
+code cleanup
+
+Revision 1.8  2004/01/31 13:43:57  ganter
+nasamaps are working better, but still bugs
+
+Revision 1.7  2004/01/30 17:54:57  ganter
+i have to add gdk_threads_enter()/gdk_threads_leave() into all timeouts :-(
+
+Revision 1.6  2004/01/28 09:32:57  ganter
+tested for memory leaks with valgrind, looks good :-)
+
+Revision 1.5  2004/01/28 05:36:29  ganter
+added #include <sys/select.h>
+to gpsserial.c
+
+Revision 1.4  2004/01/27 22:51:59  ganter
+added "direct serial connection" button in settings menu
+
+Revision 1.3  2004/01/27 09:44:29  ganter
+removed double defines
+
+Revision 1.2  2004/01/27 06:59:14  ganter
+The baudrate is now selectable in settings menu
+GpsDrive now connects to the GPS receiver in following order:
+Try to connect to gpsd
+Try to find Garble-mode Garmin
+Try to read data directly from serial port
+
+If this all fails, it falls back into simulation mode
+
+Revision 1.1  2004/01/27 05:25:59  ganter
+added gpsserial.c
+
+gpsdrive now detects a running gps receiver
+You don't need to start gpsd now, serial connection is handled by GpsDrive directly
+
+*/
+
+
+
+#include <unistd.h>
+#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
+#include <config.h>
+#include <time.h>
+#include <pthread.h>
+#include <semaphore.h>
+#include <errno.h>
+#include <signal.h>
+#include <termios.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <sys/select.h>
+#include <gpsdrive.h>
+
+/*  Defines for gettext I18n */
+# include <libintl.h>
+# define _(String) gettext(String)
+# ifdef gettext_noop
+#  define N_(String) gettext_noop(String)
+# else
+#  define N_(String) (String)
+# endif
+
+
+
+/* variables */
+
+pthread_t threadid = 0;
+extern char serialdev[80];
+static int fd, didinit = 0;
+int newdata = FALSE;
+unsigned char serialdata[4096];
+pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
+static struct termios oldtio, newtio;
+extern int timeoutcount, debug, haveserial, serialspeed, nmeaverbose;
+extern int egnoson, egnosoff;
+
+int
+readinput_init (void)
+{
+/* 
+  Open modem device for reading and writing and not as controlling tty
+  because we don't want to get killed if linenoise sends CTRL-C.
+*/
+
+  fd = open (serialdev, O_RDWR | O_NOCTTY);
+
+  if (fd < 0)
+    {
+      perror (serialdev);
+      return FALSE;
+    }
+  didinit = TRUE;
+  tcgetattr (fd, &oldtio);	/* save current serial port settings */
+  bzero (&newtio, sizeof (newtio));	/* clear struct for new port settings */
+
+/* 
+  BAUDRATE: Set bps rate. You could also use cfsetispeed and cfsetospeed.
+  CRTSCTS : output hardware flow control (only used if the cable has
+            all necessary lines. See sect. 7 of Serial-HOWTO)
+  CS8     : 8n1 (8bit,no parity,1 stopbit)
+  CLOCAL  : local connection, no modem contol
+  CREAD   : enable receiving characters
+*/
+  newtio.c_cflag = (11 + serialspeed) | CS8 | CLOCAL | CREAD;
+  newtio.c_cflag &= ~(PARENB | CRTSCTS);
+/*
+  IGNPAR  : ignore bytes with parity errors
+  ICRNL   : map CR to NL (otherwise a CR input on the other computer
+            will not terminate input)
+  otherwise make device raw (no other input processing)
+*/
+  newtio.c_iflag = IGNPAR | ICRNL;
+
+/*
+ Raw output.
+*/
+/*   newtio.c_oflag = 0; */
+  newtio.c_iflag = newtio.c_oflag = newtio.c_lflag = (tcflag_t) 0;
+  newtio.c_oflag = (ONLCR);
+/*
+  ICANON  : enable canonical input
+  disable all echo functionality, and don't send signals to calling program
+*/
+/*    newtio.c_lflag = ICANON;  */
+
+/* 
+  initialize all control characters 
+  default values can be found in /usr/include/termios.h, and are given
+  in the comments, but we don't need them here
+*/
+  newtio.c_cc[VINTR] = 0;	/* Ctrl-c */
+  newtio.c_cc[VQUIT] = 0;	/* Ctrl-\ */
+  newtio.c_cc[VERASE] = 0;	/* del */
+  newtio.c_cc[VKILL] = 0;	/* @ */
+  newtio.c_cc[VEOF] = 4;	/* Ctrl-d */
+  newtio.c_cc[VTIME] = 0;	/* inter-character timer unused */
+  newtio.c_cc[VMIN] = 1;	/* blocking read until 1 character arrives */
+  newtio.c_cc[VSTART] = 0;	/* Ctrl-q */
+  newtio.c_cc[VSTOP] = 0;	/* Ctrl-s */
+  newtio.c_cc[VSUSP] = 0;	/* Ctrl-z */
+  newtio.c_cc[VEOL] = 0;	/* '\0' */
+  newtio.c_cc[VREPRINT] = 0;	/* Ctrl-r */
+  newtio.c_cc[VDISCARD] = 0;	/* Ctrl-u */
+  newtio.c_cc[VWERASE] = 0;	/* Ctrl-w */
+  newtio.c_cc[VLNEXT] = 0;	/* Ctrl-v */
+  newtio.c_cc[VEOL2] = 0;	/* '\0' */
+
+/* 
+  now clean the modem line and activate the settings for the port
+*/
+  tcflush (fd, TCIFLUSH);
+  tcsetattr (fd, TCSANOW, &newtio);
+
+
+/*
+  terminal settings done, now handle input
+  In this example, inputting a 'z' at the beginning of a line will 
+  exit the program.
+*/
+
+
+  /* restore the old port settings */
+/*  tcsetattr (fd, TCSANOW, &oldtio); */
+  return TRUE;
+}
+
+void
+gpsserialquit ()
+{
+  haveserial = FALSE;
+  if (threadid != 0)
+    {
+      pthread_kill (threadid, SIGCHLD);
+
+      fprintf (stderr, _("waiting for thread to stop\n"));
+      fflush (stderr);
+      pthread_join (threadid, NULL);
+    }
+  /* restore the old port settings */
+  if (didinit)
+    tcsetattr (fd, TCSANOW, &oldtio);
+  if (fd >= 0)
+    close (fd);
+
+}
+
+int
+gpsserialinit (void)
+{
+  int e;
+  sigset_t newmask;
+  pthread_attr_t attr;
+  char buf[40];
+
+  e = readinput_init ();
+  if (!e)
+    {
+      fprintf (stderr, _("\nerror opening %s(%d)\n"), serialdev, e);
+      return FALSE;
+    }
+  fprintf (stderr, _("successfull opened %s\n"), serialdev);
+
+  if (egnoson)
+    {
+      g_snprintf (buf, sizeof (buf), "%s", EGNOSON);
+      write (fd, buf, sizeof (buf));
+      fprintf(stderr,_("switching WAAS/EGNOS on\n"));
+    }
+  if (egnosoff)
+    {
+      g_snprintf (buf, sizeof (buf), "%s", EGNOSOFF);
+      write (fd, buf, sizeof (buf));
+      fprintf(stderr,_("switching WAAS/EGNOS off\n"));
+    }
+
+  memset (serialdata, 0, 4096);
+  sigemptyset (&newmask);
+/*   sigaddset(&newmask, TEST_SIGNAL); */
+/*   sigaddset (&newmask, SIGCHLD); */
+  sigaddset (&newmask, SIGHUP);
+  sigaddset (&newmask, SIGPIPE);
+/*   sigaddset (&newmask, SIGINT); */
+/*   sigaddset (&newmask, SIGTERM); */
+  pthread_sigmask (SIG_BLOCK, &newmask, NULL);
+
+  pthread_attr_init (&attr);
+  pthread_attr_setscope (&attr, PTHREAD_SCOPE_SYSTEM);
+  pthread_mutex_init (&mutex, NULL);
+
+  pthread_create (&threadid, NULL, getserialdata, NULL);
+
+  return TRUE;
+}
+
+void *
+getserialdata (void *data)
+{
+  static int count = 0;
+  unsigned char buf[4096];
+  int e, ill, i, cc;
+  char c;
+  static fd_set readfs;
+  struct timeval timeout;
+  static int tidshown = FALSE;
+
+  memset (buf, 0, 4095);
+  do
+    {
+      if (!tidshown)
+	if (threadid != 0)
+	  {
+	    fprintf (stderr, "new thread started: %d\n", (int) threadid);
+	    tidshown = TRUE;
+	  }
+
+      FD_ZERO (&readfs);
+      FD_SET (fd, &readfs);
+      /* block until input becomes available */
+      timeout.tv_sec = 1;
+      timeout.tv_usec = 0;
+      select (FD_SETSIZE, &readfs, NULL, NULL, &timeout);
+      if (FD_ISSET (fd, &readfs))
+	{
+
+	  do
+	    {
+	      e = read (fd, &c, 1);
+	    }
+	  while (c != '$');
+
+	  cc = 0;
+	  buf[cc++] = c;
+	  do
+	    {
+	      e = read (fd, &c, 1);
+	      buf[cc++] = c;
+	    }
+	  while (c != 10);
+
+	  buf[cc - 2] = 0;
+	  ill = 0;
+/* test for illegal characters */
+	  for (i = 0; i < e; i++)
+	    {
+	      if ((buf[i] > 127) || (buf[i] < 10))
+		{
+		  if (debug)
+		    fprintf (stderr, "illegal char(%i): %c\n", i, buf[i]);
+		  ill = 1;
+		}
+	      if ((buf[i] == 13) || (buf[i] == 10))
+		buf[i] = 0;
+	    }
+	  if (ill == 1)
+	    fprintf (stderr, "illegal data(%d)\n", e);
+	  else
+	    {
+	      if (debug)
+		fprintf (stderr, "data(%d):%s===\n", e, buf);
+	      count = 0;
+	      pthread_mutex_lock (&mutex);
+	      g_strlcpy (serialdata, buf, sizeof (serialdata));
+	      if (nmeaverbose)
+		fprintf (stderr, "%s\n", buf);
+/* 	      timeoutcount = 0; */
+	      newdata = TRUE;
+	      pthread_mutex_unlock (&mutex);
+
+	    }
+	}
+      else
+	{
+	  timeoutcount++;
+	  if (debug)
+	    fprintf (stderr, "getserialdata: %d failed getting data\n",
+		     count++);
+	}
+
+    }
+  while (haveserial);
+  threadid = 0;
+  fprintf (stderr, "leaving thread\n");
+
+  return 0;
+}

Added: packages/gpsdrive/branches/etch/src/gpssmswatch
===================================================================
--- packages/gpsdrive/branches/etch/src/gpssmswatch	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/gpssmswatch	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,56 @@
+#!/bin/bash
+# gpssmswatch (c) 2004 Fritz Ganter <ganter at ganter.at>
+# $Log: gpssmswatch,v $
+# Revision 1.6  2004/01/15 22:46:23  ganter
+# ...
+#
+# Revision 1.5  2004/01/15 21:18:51  ganter
+# changed SECONDS to SECS
+#
+# Revision 1.4  2004/01/15 21:09:20  ganter
+# added warning about deleting SMS from phone
+#
+# Revision 1.3  2004/01/15 16:48:32  ganter
+# added log entry
+#
+
+SECS=30
+echo -e ""
+echo -e "gpssmswatch\n"
+echo -e "polls every $SECS seconds the mobile phone and send position to the"
+echo -e "number which sent a SMS with the text: PLSSENDPOS"
+echo -e "This program requires a working gnokii\n"
+echo -e "================================================"
+echo -e "WARNING  WARNING WARNING WARNING WARNING WARNING\n"
+echo -e "This program will DELETE all your incoming SMS"
+echo -e "If you don't want this, stop program with CTRL-C now\n"
+echo -e "WARNING  WARNING WARNING WARNING WARNING WARNING"
+echo -e "================================================"
+sleep 10
+
+FILE=/tmp/.smswatch
+while [ 1 = 1 ]
+do
+gnokii --getsms SM 1 > $FILE
+if [ $? = "0" ];then
+gnokii --deletesms SM 1
+fi
+grep PLSSENDPOS $FILE
+if [ $? = "0" ];then
+echo -e "position request found\n"
+NUMBER=`grep Sender /tmp/.smswatch|awk '{print $2}'`
+killall -USR1 gpsdrive
+
+echo "sending "
+cat /tmp/gpsdrivepos
+echo -e "to number $NUMBER\n"
+gnokii --sendsms $NUMBER < /tmp/gpsdrivepos
+else
+echo -e "no request\n"
+fi
+echo -e "Sleeping $SECS seconds"
+sleep $SECS
+
+done
+
+ 


Property changes on: packages/gpsdrive/branches/etch/src/gpssmswatch
___________________________________________________________________
Name: svn:executable
   + *

Added: packages/gpsdrive/branches/etch/src/gpssql.c
===================================================================
--- packages/gpsdrive/branches/etch/src/gpssql.c	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/gpssql.c	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,463 @@
+/***********************************************************************
+
+Copyright (c) 2001-2004 Fritz Ganter <ganter at ganter.at>
+
+Website: www.gpsdrive.de
+
+Disclaimer: Please do not use for navigation. 
+
+    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
+
+    *********************************************************************
+
+$Log: gpssql.c,v $
+Revision 1.33  2004/02/08 20:37:49  ganter
+handle user-defined icons for open and closed wlans
+the filename should be:
+for open wlan:  wlan.png
+for crypted wlan: wlan-wep.png
+
+Revision 1.32  2004/02/08 17:16:25  ganter
+replacing all strcat with g_strlcat to avoid buffer overflows
+
+Revision 1.31  2004/02/08 16:35:10  ganter
+replacing all sprintf with g_snprintf to avoid buffer overflows
+
+Revision 1.30  2004/02/07 00:02:16  ganter
+added "store timezone" button in settings menu
+
+Revision 1.29  2004/02/06 15:13:15  ganter
+...
+
+Revision 1.28  2004/02/06 15:11:21  ganter
+updated translation
+
+Revision 1.27  2004/02/06 14:55:54  ganter
+added support for user-defined icons
+create the directory: $HOME/.gpsdrive/icons
+place your icons (type must be png) into this directory, with the name of
+the waypoint type, filename must be lowercase
+i.e. for waypoint type "HOTEL" the file must have the name "hotel.png"
+
+Revision 1.26  2004/02/02 03:38:32  ganter
+code cleanup
+
+Revision 1.25  2004/01/05 05:52:58  ganter
+changed all frames to respect setting
+
+Revision 1.24  2004/01/01 09:07:33  ganter
+v2.06
+trip info is now live updated
+added cpu temperature display for acpi
+added tooltips for battery and temperature
+
+Revision 1.23  2003/05/07 19:27:13  ganter
+replaced degree symbol with unicode string
+gpsdrive should now be unicode clean
+
+Revision 1.22  2003/05/03 18:59:47  ganter
+shortcuts are now working
+
+Revision 1.21  2003/05/02 18:27:18  ganter
+porting to GTK+-2.2
+GpsDrive Version 2.0pre3
+
+Revision 1.20  2003/01/15 17:03:17  ganter
+MySQL is now loaded dynamically on runtime, no mysql needed for compile.
+Needs only libmysqlclient.so now.
+
+Revision 1.19  2003/01/15 15:30:28  ganter
+before dynamically loading mysql
+
+Revision 1.18  2002/12/08 03:18:26  ganter
+shortly before 1.31
+
+Revision 1.17  2002/11/27 00:02:27  ganter
+1.31pre2
+
+Revision 1.16  2002/11/24 16:56:30  ganter
+speedtrap works now with sql
+
+Revision 1.15  2002/11/24 16:01:32  ganter
+added speedtrap icon, thanks to Sven Fichtner
+
+Revision 1.14  2002/11/13 18:20:42  ganter
+fixed buffer overflow in gpssql.c
+
+Revision 1.13  2002/11/13 17:31:57  ganter
+added display of number of waypoints
+
+Revision 1.12  2002/11/09 00:09:57  ganter
+bugfix in gpssql.c
+
+Revision 1.11  2002/11/08 23:35:20  ganter
+v1.30pre3
+
+Revision 1.10  2002/11/08 22:08:11  ganter
+...
+
+Revision 1.9  2002/11/06 05:29:15  ganter
+fixed most warnings
+
+Revision 1.8  2002/11/06 01:44:15  ganter
+v1.30pre2
+
+Revision 1.7  2002/11/02 12:38:55  ganter
+changed website to www.gpsdrive.de
+
+Revision 1.6  2002/10/27 10:51:30  ganter
+1.28pre8
+
+Revision 1.5  2002/10/24 08:44:09  ganter
+...
+
+Revision 1.4  2002/10/17 15:55:45  ganter
+wp2sql added
+
+Revision 1.3  2002/10/16 14:16:13  ganter
+working on SQL gui
+
+Revision 1.2  2002/10/15 07:44:11  ganter
+...
+
+Revision 1.1  2002/10/14 08:38:59  ganter
+v1.29pre3
+added SQL support
+
+*/
+
+#include "../config.h"
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <string.h>
+#include <sys/time.h>
+#include <gpsdrive.h>
+#include <ctype.h>
+
+#define MAXDBNAME 30
+extern char dbhost[MAXDBNAME], dbuser[MAXDBNAME], dbpass[MAXDBNAME];
+extern char dbtable[MAXDBNAME], dbname[MAXDBNAME];
+extern char dbwherestring[5000];
+extern char dbtypelist[100][40];
+extern double dbdistance;
+extern int dbtypelistcount;
+extern int usesql;
+extern int debug, dbusedist;
+extern gchar homedir[500], mapdir[500];
+extern GtkWidget *trackbt, *wpbt;
+extern GdkPixbuf *openwlanpixbuf, *closedwlanpixbuf;
+
+gint wptotal = 0, wpselected = 0;
+
+gint maxauxicons = MAXWPTYPES, lastauxicon = 0;
+auxiconsstruct auxicons[MAXWPTYPES];
+
+
+/*  Defines for gettext I18n */
+# include <libintl.h>
+# define _(String) gettext(String)
+# ifdef gettext_noop
+#  define N_(String) gettext_noop(String)
+# else
+#  define N_(String) (String)
+# endif
+
+
+/*****************************************************************
+change this functions if you want to implement another database
+******************************************************************/
+
+
+#include "mysql.h"
+
+
+
+MYSQL mysql;
+MYSQL_RES *res;
+MYSQL_ROW row;
+
+void
+exiterr (int exitcode)
+{
+  fprintf (stderr, "%s\n", dl_mysql_error (&mysql));
+  exit (exitcode);
+}
+
+int
+sqlinit (void)
+{
+  if (!usesql)
+    return 0;
+
+  if (!(dl_mysql_init (&mysql)))
+    exiterr (1);
+  if (!
+      (dl_mysql_real_connect
+       (&mysql, dbhost, dbuser, dbpass, dbname, 0, NULL, 0)))
+    {
+      fprintf (stderr, "%s\n", dl_mysql_error (&mysql));
+      return FALSE;
+    }
+/*   if (debug) */
+  printf (_("\nSQL: connected to %s as %s using %s\n"), dbhost, dbuser,
+	  dbname);
+  return TRUE;
+}
+
+void
+sqlend (void)
+{
+  if (!usesql)
+    return;
+  dl_mysql_close (&mysql);
+}
+
+
+int
+insertsqldata (double lat, double lon, char *name, char *typ)
+{
+  char q[200], lats[20], lons[20], tname[500], ttyp[50];
+  int r, j, i;
+
+  if (!usesql)
+    return 0;
+  g_snprintf (lats, sizeof (lats), "%.6f", lat);
+  g_strdelimit (lats, ",", '.');
+  g_snprintf (lons, sizeof (lons), "%.6f", lon);
+  g_strdelimit (lons, ",", '.');
+  g_strdelimit (name, " ", '_');
+  g_strdelimit (typ, " ", '_');
+
+/* escape ' */
+  j = 0;
+  for (i = 0; i <= (int) strlen (name); i++)
+    {
+      if (name[i] != '\'')
+	tname[j++] = name[i];
+      else
+	{
+	  tname[j++] = '\\';
+	  tname[j++] = '\'';
+	}
+    }
+
+  j = 0;
+  for (i = 0; i <= (int) strlen (typ); i++)
+    {
+      if (typ[i] != '\'')
+	ttyp[j++] = typ[i];
+      else
+	{
+	  ttyp[j++] = '\\';
+	  ttyp[j++] = '\'';
+	}
+    }
+
+  g_snprintf (q, sizeof (q),
+	      "INSERT INTO %s (name,lat,lon,type) VALUES ('%s','%s','%s','%s')",
+	      dbtable, tname, lats, lons, ttyp);
+  if (debug)
+    printf ("\nquery: %s\n", q);
+  if (dl_mysql_query (&mysql, q))
+    exiterr (3);
+  r = dl_mysql_affected_rows (&mysql);
+  if (debug)
+    printf (_("rows inserted: %d\n"), r);
+
+  g_snprintf (q, sizeof (q), "SELECT LAST_INSERT_ID()");
+/*   printf ("\nquery: %s\n", q); */
+  if (dl_mysql_query (&mysql, q))
+    exiterr (3);
+  if (!(res = dl_mysql_store_result (&mysql)))
+    exiterr (4);
+  r = 0;
+  while ((row = dl_mysql_fetch_row (res)))
+    {
+      r = strtol (row[0], NULL, 10);	/* last index */
+    }
+
+  if (debug)
+    printf (_("last index: %d\n"), r);
+  return r;
+}
+
+
+int
+deletesqldata (int index)
+{
+  char q[200];
+  int r;
+
+  if (!usesql)
+    return 0;
+  g_snprintf (q, sizeof (q), "DELETE FROM %s  WHERE id='%d'", dbtable, index);
+  if (debug)
+    g_print ("\nquery: %s\n", q);
+
+  if (dl_mysql_query (&mysql, q))
+    exiterr (3);
+  r = dl_mysql_affected_rows (&mysql);
+  if (debug)
+    g_print (_("rows deleted: %d\n"), r);
+  return 0;
+}
+
+int
+getsqltypelist (void)
+{
+  char q[200], temp[200], path[1024];
+  int r, i;
+  static int usericonsloaded = FALSE;
+
+  if (!usesql)
+    return FALSE;
+
+
+/* make list of possible type entries */
+  g_snprintf (q, sizeof (q), "select distinct upper(type) from %s", dbtable);
+  if (dl_mysql_query (&mysql, q))
+    exiterr (3);
+  if (!(res = dl_mysql_store_result (&mysql)))
+    exiterr (4);
+  r = 0;
+  while ((row = dl_mysql_fetch_row (res)))
+    {
+      g_strlcpy (temp, row[0], sizeof (temp));
+      for (i = 0; i < (int) strlen (temp); i++)
+	temp[i] = toupper (temp[i]);
+      g_strlcpy (dbtypelist[r++], temp, sizeof (dbtypelist[0]));
+      if (r >= MAXWPTYPES)
+	{
+	  printf ("\nSQL: too many waypoint types!\n");
+	  break;
+	}
+/* load user defined icons */
+      if (usericonsloaded == FALSE)
+	{
+	  for (i = 0; i < (int) strlen (temp); i++)
+	    temp[i] = tolower (temp[i]);
+	  g_snprintf (path, sizeof (path), "%sicons/%s.png", homedir, temp);
+	  (auxicons + lastauxicon)->icon =
+	    gdk_pixbuf_new_from_file (path, NULL);
+	  if ((auxicons + lastauxicon)->icon != NULL)
+	    {
+	      for (i = 0; i < (int) strlen (temp); i++)
+		temp[i] = toupper (temp[i]);
+	      if ((strcmp (temp, "WLAN") == 0)
+		  || (strcmp (temp, "WLAN-WEP") == 0))
+		{
+		  if (strcmp (temp, "WLAN") == 0)
+		    openwlanpixbuf = (auxicons + lastauxicon)->icon;
+		  if (strcmp (temp, "WLAN-WEP") == 0)
+		    closedwlanpixbuf = (auxicons + lastauxicon)->icon;
+		  fprintf (stderr, _("Loaded user defined icon %s\n"), path);
+		}
+	      else
+		{
+		  g_strlcpy ((auxicons + lastauxicon)->name, temp,
+			     sizeof (auxicons->name));
+		  fprintf (stderr, _("Loaded user defined icon %s\n"), path);
+		  lastauxicon++;
+		}
+	    }
+	}
+    }
+  dl_mysql_free_result (res);
+  dbtypelistcount = r;
+  usericonsloaded = TRUE;
+  return r;
+}
+
+int
+getsqldata ()
+{
+  char q[5000];
+  int r, rges, wlan, action, sqlnr;
+  gchar mappath[400];
+  FILE *st;
+  double lat, lon, l, ti;
+  struct timeval t;
+  if (!usesql)
+    return FALSE;
+  gettimeofday (&t, NULL);
+  ti = t.tv_sec + t.tv_usec / 1000000.0;
+  g_strlcpy (mappath, homedir, sizeof (mappath));
+  g_strlcat (mappath, "way-SQLRESULT.txt", sizeof (mappath));
+  st = fopen (mappath, "w+");
+  if (st == NULL)
+    {
+      perror (mappath);
+      return 1;
+    }
+
+
+  g_snprintf (q, sizeof (q),
+	      "SELECT name,lat,lon,upper(type),id FROM %s %s order by name",
+	      dbtable, dbwherestring);
+  if (debug)
+    printf ("\nquery: %s\n", q);
+  if (dl_mysql_query (&mysql, q))
+    exiterr (3);
+  if (!(res = dl_mysql_store_result (&mysql)))
+    exiterr (4);
+  rges = r = wlan = 0;
+  while ((row = dl_mysql_fetch_row (res)))
+    {
+      rges++;
+      /*  wlan=0: no wlan, 1:open wlan, 2:WEP crypted wlan */
+      if ((strcmp (row[3], "WLAN")) == 0)
+	wlan = 1;
+      else if ((strcmp (row[3], "WLAN-WEP")) == 0)
+	wlan = 2;
+      else
+	wlan = 0;
+      action = 0;
+      if ((strcmp (row[3], "SPEEDTRAP")) == 0)
+	action = 1;
+      sqlnr = atol (row[4]);
+      if (dbusedist)
+	{
+	  lat = g_strtod (row[1], NULL);
+	  lon = g_strtod (row[2], NULL);
+	  l = calcdist (lon, lat);
+	  if (l < dbdistance)
+	    {
+	      fprintf (st, "%-22s %10s %11s %20s %d %d %d\n", row[0],
+		       row[1], row[2], row[3], wlan, action, sqlnr);
+	      r++;
+	    }
+	}
+      else
+	{
+	  fprintf (st, "%-22s %10s %11s %20s %d %d %d\n", row[0],
+		   row[1], row[2], row[3], wlan, action, sqlnr);
+	  r++;
+	}
+    }
+  fclose (st);
+
+  gettimeofday (&t, NULL);
+  ti = (t.tv_sec + t.tv_usec / 1000000.0) - ti;
+  if (debug)
+    printf (_("%d(%d) rows read in %.2f seconds\n"), r, rges, ti);
+  wptotal = rges;
+  wpselected = r;
+  loadwaypoints ();
+  if (!dl_mysql_eof (res))
+    return FALSE;
+  dl_mysql_free_result (res);
+  return TRUE;
+}

Added: packages/gpsdrive/branches/etch/src/gpssql_backup.sh
===================================================================
--- packages/gpsdrive/branches/etch/src/gpssql_backup.sh	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/gpssql_backup.sh	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,15 @@
+#!/bin/sh
+# This script takes a snapshot of the database used by GpsDrive.
+# The backed up file can be found in your ~/.gpsdrive/ directory and
+# contains a time stamp for better separation in its name.
+# Example: ~/.gpsdrive/sqldump.02.12.20_00:30.gz was created on Dec, 20th at
+# 00:30am.
+# As this script requires no user interaction it might be used in your crontab.
+# If you ever need to restore your database, simply run gpssql_restore.sh
+# followed by the full path to your backup.
+# Usage: gpssql_backup.sh
+# Copyleft 2002 by Sven Fichtner <sven.fichtner at flugfunk.de>
+
+mysqldump -ugast -pgast geoinfo | gzip \
+	>~/.gpsdrive/sqldump.`date +%y.%m.%d_%k:%M`.gz
+	

Added: packages/gpsdrive/branches/etch/src/gpssql_restore.sh
===================================================================
--- packages/gpsdrive/branches/etch/src/gpssql_restore.sh	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/gpssql_restore.sh	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,17 @@
+#!/bin/sh
+# This script uses a database snapshot if you ever need to restore your
+# database.
+# Usage: gpssql_restore.sh /path/to/your/backup/file
+# Example: gpssql_restore.sh ~/.gpsdrive/sqldump.02.12.20_00:30.gz
+# Copyleft 2002 by Sven Fichtner <sven.fichtner at flugfunk.de>
+
+if [ "$1" = "" ]; then
+	echo "Usage: gpssql_restore.sh /path/to/your/backup/file"
+	echo "Example: gpssql_restore.sh ~/.gpsdrive/sqldump.02.12.20_00:30.gz"
+	exit 0
+fi
+
+echo "drop database geoinfo;"| mysql -ugast -pgast
+echo "create database geoinfo;"| mysql -ugast -pgast
+gunzip < $1 | mysql -ugast -pgast geoinfo
+

Added: packages/gpsdrive/branches/etch/src/icons.h
===================================================================
--- packages/gpsdrive/branches/etch/src/icons.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/icons.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,2180 @@
+/* XPM */
+static char * closed_xpm[] = {
+"24 24 154 2",
+"  	c None",
+". 	c #000000",
+"+ 	c #828282",
+"@ 	c #EEEEEE",
+"# 	c #E6E6E6",
+"$ 	c #B5B5B5",
+"% 	c #949494",
+"& 	c #D4D4D4",
+"* 	c #E8E8E8",
+"= 	c #BCBCBC",
+"- 	c #DFDFDF",
+"; 	c #A4A4A4",
+"> 	c #747474",
+", 	c #ADADAD",
+"' 	c #EDEDED",
+") 	c #E2E2E2",
+"! 	c #DCDCDC",
+"~ 	c #E5E5E5",
+"{ 	c #F7F0E4",
+"] 	c #EEDBC3",
+"^ 	c #E6CFB2",
+"/ 	c #E4CAAD",
+"( 	c #E1C8A7",
+"_ 	c #DDC3A1",
+": 	c #DBC09E",
+"< 	c #DCC09E",
+"[ 	c #D9BE9A",
+"} 	c #D7B994",
+"| 	c #D5B28B",
+"1 	c #D1AC83",
+"2 	c #BF9A71",
+"3 	c #F3E1CC",
+"4 	c #E4C6A0",
+"5 	c #D6AF80",
+"6 	c #D3AC7B",
+"7 	c #D0A570",
+"8 	c #C99F68",
+"9 	c #C69B64",
+"0 	c #C69C64",
+"a 	c #C89D66",
+"b 	c #C79C65",
+"c 	c #C39860",
+"d 	c #C09256",
+"e 	c #BC8645",
+"f 	c #B67C36",
+"g 	c #985E1A",
+"h 	c #F1E0CA",
+"i 	c #E3C39C",
+"j 	c #D3AA7B",
+"k 	c #CFA670",
+"l 	c #CA9F68",
+"m 	c #4B3B26",
+"n 	c #4C3C27",
+"o 	c #D4B387",
+"p 	c #C49961",
+"q 	c #C09358",
+"r 	c #BC8746",
+"s 	c #B77D39",
+"t 	c #9A5E1B",
+"u 	c #F1E0C9",
+"v 	c #E2C29B",
+"w 	c #D6AE7F",
+"x 	c #D2A97A",
+"y 	c #CEA46E",
+"z 	c #C89E66",
+"A 	c #D6B994",
+"B 	c #C2945A",
+"C 	c #BE8E50",
+"D 	c #BA8442",
+"E 	c #B47834",
+"F 	c #975C1A",
+"G 	c #F2E1CB",
+"H 	c #E4C49D",
+"I 	c #D7B080",
+"J 	c #D4AC79",
+"K 	c #CDA570",
+"L 	c #4B3A24",
+"M 	c #726655",
+"N 	c #D6B891",
+"O 	c #C19458",
+"P 	c #BE8C4E",
+"Q 	c #B9813F",
+"R 	c #B37834",
+"S 	c #975D1A",
+"T 	c #F2E0C9",
+"U 	c #E0C199",
+"V 	c #D3AA7A",
+"W 	c #D0A774",
+"X 	c #CBA26B",
+"Y 	c #C59A62",
+"Z 	c #C3975E",
+"` 	c #D0AF83",
+" .	c #C39861",
+"..	c #C09257",
+"+.	c #BA833F",
+"@.	c #B37934",
+"#.	c #9B601E",
+"$.	c #E3C29C",
+"%.	c #D2AA78",
+"&.	c #CDA36C",
+"*.	c #775D3A",
+"=.	c #85745E",
+"-.	c #C19257",
+";.	c #BD8C4C",
+">.	c #BA813E",
+",.	c #B27733",
+"'.	c #A36B2F",
+").	c #F0DEC7",
+"!.	c #E1BD94",
+"~.	c #D1A874",
+"{.	c #CEA46D",
+"].	c #C1935A",
+"^.	c #48361F",
+"/.	c #483821",
+"(.	c #CDA97C",
+"_.	c #BE8E51",
+":.	c #B67D3A",
+"<.	c #B07530",
+"[.	c #A67137",
+"}.	c #F1E0C8",
+"|.	c #E0C099",
+"1.	c #D1A973",
+"2.	c #BD8C4E",
+"3.	c #B9803D",
+"4.	c #B67D38",
+"5.	c #AB783F",
+"6.	c #F1DDC6",
+"7.	c #DFC096",
+"8.	c #D2A776",
+"9.	c #C89D65",
+"0.	c #C49960",
+"a.	c #CEAC7F",
+"b.	c #D8BB96",
+"c.	c #D9BF9B",
+"d.	c #C9A26F",
+"e.	c #C09155",
+"f.	c #BC8A4B",
+"g.	c #BE8A4C",
+"h.	c #A9773C",
+"i.	c #DDBF99",
+"j.	c #CFA772",
+"k.	c #C49256",
+"l.	c #C08D51",
+"m.	c #BA8849",
+"n.	c #B78342",
+"o.	c #B48240",
+"p.	c #B68241",
+"q.	c #B88544",
+"r.	c #BB8949",
+"s.	c #BC8748",
+"t.	c #BA874A",
+"u.	c #B98548",
+"v.	c #B27B3B",
+"w.	c #88521A",
+"                                                ",
+"                                                ",
+"                . . . . . . .                   ",
+"              . + @ # # # $ % .                 ",
+"            . & * $ = = = - # = .               ",
+"          . ; * > . . . . . , # % .             ",
+"          . ' % .           . # = .             ",
+"          . ) % .           . # = .             ",
+"          . ! % .           . ~ = .             ",
+"        . . . . . . . . . . . . . . .           ",
+"      . { ] ^ / ( _ : : < : [ } | 1 2 .         ",
+"      . 3 4 5 6 7 8 9 0 a b c d e f g .         ",
+"      . h i 5 j k l m . n o p q r s t .         ",
+"      . u v w x y z . . . A B C D E F .         ",
+"      . G H I J K z L . M N O P Q R S .         ",
+"      . T U V W X Y Z . `  ...P +. at .#..         ",
+"      . h $.w %.&.b *.. =.c -.;.>.,.'..         ",
+"      . ).!.~.{.0 ].^.. /.(._.r :.<.[..         ",
+"      . }.|.j 1.X 9 . . . ` ..2.3.4.5..         ",
+"      . 6.7.8.y 9.0.a.b.c.d.e.f.D g.h..         ",
+"      . i.j.k.l.m.n.o.p.q.r.s.t.u.v.w..         ",
+"        . . . . . . . . . . . . . . .           ",
+"                                                ",
+"                                                "};
+
+/* XPM */
+static char * open_xpm[] = {
+"24 24 104 2",
+"  	c None",
+". 	c #000000",
+"+ 	c #828282",
+"@ 	c #EEEEEE",
+"# 	c #949494",
+"$ 	c #D4D4D4",
+"% 	c #E8E8E8",
+"& 	c #B5B5B5",
+"* 	c #E6E6E6",
+"= 	c #BCBCBC",
+"- 	c #A4A4A4",
+"; 	c #747474",
+"> 	c #ADADAD",
+", 	c #EDEDED",
+"' 	c #E2E2E2",
+") 	c #DCDCDC",
+"! 	c #B4B4B4",
+"~ 	c #E6ECF3",
+"{ 	c #C9D7E6",
+"] 	c #B8CBDF",
+"^ 	c #B3C7DC",
+"/ 	c #AEC3D9",
+"( 	c #A7BED6",
+"_ 	c #A3BBD4",
+": 	c #A4BCD5",
+"< 	c #9EB8D3",
+"[ 	c #99B4D0",
+"} 	c #92AFCD",
+"| 	c #8AA9C9",
+"1 	c #7197BE",
+"2 	c #D3DEEA",
+"3 	c #ABC1D8",
+"4 	c #8BAACA",
+"5 	c #86A6C7",
+"6 	c #7C9FC3",
+"7 	c #6D94BC",
+"8 	c #7096BD",
+"9 	c #6E95BD",
+"0 	c #6890B9",
+"a 	c #5F8AB6",
+"b 	c #507FAF",
+"c 	c #4A75A1",
+"d 	c #37587A",
+"e 	c #D0DCE9",
+"f 	c #7B9EC2",
+"g 	c #7398BF",
+"h 	c #23374C",
+"i 	c #23384E",
+"j 	c #8EACCB",
+"k 	c #6991BA",
+"l 	c #618BB6",
+"m 	c #5280AF",
+"n 	c #4B77A4",
+"o 	c #38597B",
+"p 	c #A5BDD6",
+"q 	c #84A5C7",
+"r 	c #799DC2",
+"s 	c #638DB8",
+"t 	c #5A86B3",
+"u 	c #4F7DAC",
+"v 	c #48739F",
+"w 	c #375778",
+"x 	c #D1DDEA",
+"y 	c #A8BFD7",
+"z 	c #22364B",
+"A 	c #3E6287",
+"B 	c #96B2CF",
+"C 	c #5885B3",
+"D 	c #4D7BAA",
+"E 	c #48729D",
+"F 	c #7FA1C4",
+"G 	c #759AC0",
+"H 	c #6A92BB",
+"I 	c #668FB9",
+"J 	c #88A8C9",
+"K 	c #395B7E",
+"L 	c #83A4C6",
+"M 	c #779BC0",
+"N 	c #46709B",
+"O 	c #5683B1",
+"P 	c #47719C",
+"Q 	c #416890",
+"R 	c #CDDAE8",
+"S 	c #A0B9D3",
+"T 	c #789CC1",
+"U 	c #628CB7",
+"V 	c #1F3246",
+"W 	c #203347",
+"X 	c #82A3C5",
+"Y 	c #466F99",
+"Z 	c #456D96",
+"` 	c #CEDBE9",
+" .	c #5784B2",
+"..	c #4D7AA8",
+"+.	c #4A76A3",
+"@.	c #4974A0",
+"#.	c #9CB6D1",
+"$.	c #5E89B5",
+"%.	c #5482B1",
+"&.	c #A1BAD4",
+"*.	c #5B87B4",
+"=.	c #4C79A7",
+"-.	c #5381B0",
+";.	c #32506F",
+"                                                ",
+"                              . . . . . .       ",
+"                            . + @ @ @ @ # .     ",
+"                          . $ % & & & & * = .   ",
+"                        . - % ; . . . . > * # . ",
+"                        . , # .         . * = . ",
+"                        . ' # .         . * = . ",
+"                        . ' # .         . * = . ",
+"                        . ) # .         . * = . ",
+"    . . . . . . . . . . . . . . .       . ! ; . ",
+"  . ~ { ] ^ / ( _ _ : _ < [ } | 1 .       . .   ",
+"  . 2 3 4 5 6 1 7 7 8 9 0 a b c d .             ",
+"  . e ( 4 5 f g h . i j k l m n o .             ",
+"  . e p | q r 8 . . . [ s t u v w .             ",
+"  . x y 4 q r 8 z . A B l C D E w .             ",
+"  . e _ q F G H I . J k a C D E K .             ",
+"  . e ( | L M 9 w . N 0 l O D P Q .             ",
+"  . R S F T 7 U V . W X t m n Y Z .             ",
+"  . ` _ 5 F G 7 . . . J a  ...+. at ..             ",
+"  . R S X r 9 k q #.S M $.%.u  .P .             ",
+"  . &.6 U *.m D =...u -.-.-.b c ;..             ",
+"    . . . . . . . . . . . . . . .               ",
+"                                                ",
+"                                                "};
+
+
+/* XPM */
+static char * rest_xpm[] = {
+"24 24 30 1",
+" 	c None",
+".	c #1593A5",
+"+	c #7CC3CE",
+"@	c #F7FBFC",
+"#	c #A8D7DF",
+"$	c #47AAB9",
+"%	c #EEF7F9",
+"&	c #4FADBC",
+"*	c #40A6B6",
+"=	c #078C9F",
+"-	c #9FD3DB",
+";	c #39A3B3",
+">	c #0E90A2",
+",	c #C2E3E8",
+"'	c #B0DBE2",
+")	c #6BBBC7",
+"!	c #85C7D2",
+"~	c #2B9DAE",
+"{	c #64B8C4",
+"]	c #8DCBD5",
+"^	c #D4EBEF",
+"/	c #32A0B0",
+"(	c #DCEFF2",
+"_	c #00889E",
+":	c #96CFD8",
+"<	c #B9DFE5",
+"[	c #56B0BF",
+"}	c #1C96A8",
+"|	c #FFFFFF",
+"1	c #73BFCB",
+"____.}}}}}}}}}}}}}}}=___",
+"__}{11111111111111111*=_",
+"_.1111<1:1-11111#]1111&_",
+"_[1111<1<1,1111-|:11111}",
+">11111(1(1(1111%|:11111$",
+"}11111|1(!(111+||:11111[",
+"}11111|+@:@111:||:11111[",
+"}11111||||@1111||:11111[",
+"}11111#|||:1111||:11111[",
+"}111111<|<11111%|:11111[",
+"}111111<|<11111(|:11111[",
+"}111111<|<11111(|:11111[",
+"}111111<|<11111(|:11111[",
+"}111111<|<11111(|:11111[",
+"}111111<|<11111(|:11111[",
+"}111111<|<11111(|:11111[",
+"}111111<|<11111(|:11111[",
+"}111111<|<11111(|:11111[",
+"}111111<|<11111(|:11111[",
+".111111<|<11111(|:11111[",
+"_)11111<|<11111(|:11111&",
+"_/11111<|<11111^|:11111~",
+"__*1111+#111111+'11111$_",
+"___.;[[[[[[[[[[[[[[$;.__"};
+
+
+/* XPM */
+static char * mcdonalds_xpm[] = {
+"24 24 74 1",
+" 	c None",
+".	c #FFFFFF",
+"+	c #FFFF99",
+"@	c #FFFF66",
+"#	c #FFFF33",
+"$	c #FFFF00",
+"%	c #FFCCCC",
+"&	c #FFCC99",
+"*	c #FFCC66",
+"=	c #FFCC33",
+"-	c #FFCC00",
+";	c #FF9933",
+">	c #CCCCCC",
+",	c #CCCC00",
+"'	c #CC9999",
+")	c #CC9933",
+"!	c #CC9900",
+"~	c #CC6666",
+"{	c #CC6600",
+"]	c #CC3333",
+"^	c #CC3300",
+"/	c #999900",
+"(	c #996633",
+"_	c #996600",
+":	c #993300",
+"<	c #990000",
+"[	c #666633",
+"}	c #666600",
+"|	c #663333",
+"1	c #663300",
+"2	c #660033",
+"3	c #660000",
+"4	c #333333",
+"5	c #330033",
+"6	c #330000",
+"7	c #C0C0C0",
+"8	c #A91718",
+"9	c #B70A13",
+"0	c #910814",
+"a	c #A30119",
+"b	c #FCFCF8",
+"c	c #F8ED02",
+"d	c #A89B0C",
+"e	c #F1D205",
+"f	c #CEB605",
+"g	c #F9E229",
+"h	c #FBE653",
+"i	c #836F15",
+"j	c #774427",
+"k	c #F9F0ED",
+"l	c #AE2100",
+"m	c #D04B30",
+"n	c #C42D13",
+"o	c #CA3921",
+"p	c #DE8171",
+"q	c #F6DCD7",
+"r	c #C81C01",
+"s	c #8D1301",
+"t	c #D55A47",
+"u	c #EFBEB6",
+"v	c #C91600",
+"w	c #C61600",
+"x	c #A71401",
+"y	c #B71503",
+"z	c #BE210F",
+"A	c #55211B",
+"B	c #E59D94",
+"C	c #7E1D17",
+"D	c #B50802",
+"E	c #C11E17",
+"F	c #A70301",
+"G	c #810503",
+"H	c #942121",
+"I	c #A53232",
+"                        ",
+"       rCdi   rC,|      ",
+"       Aeege  /hee}     ",
+"      xcef$exxgeAgc     ",
+"     xAhcGA=djhcGdej    ",
+"     xceAsGhecefsChc    ",
+"    Ds at eDxGge+ejxGgeC   ",
+"    x|@cyDsc=&cCxsegd   ",
+"    xfg,yysfh at cyys}hcy  ",
+"    seedwxs/@hewys5&c0  ",
+"   ys at ejw sA+g,vys3 at ej  ",
+"   xs at e0wys4@eiv xChef  ",
+"  rx3&e wysAhe}wwxG at ec  ",
+"  sp~+e~ppp~@epppp~heepI",
+" x|l:+essssxgc^^^^mgeem3",
+" sAsGeeGGGDyD9yzznngecmA",
+" xGa0p~GGt~DGssyspxmxzuC",
+" xs0:u%bDuGBG%bFbqFtqtm ",
+" xs6e<<G<D<Dyzzxyomotzor",
+" ls4 at FFFFFDDyyyzznnoooy ",
+" lsC9FFFDDDDyyyyzEnnoo< ",
+"  ssAAAAAAAAAAAAAAAAAAC ",
+"  lxxxxxxxx:xxxxxxxxxl  ",
+"                        "};
+
+
+/* XPM */
+static char * burgerking_xpm[] = {
+"24 24 333 2",
+"  	c None",
+". 	c #84A3C5",
+"+ 	c #AEC3D9",
+"@ 	c #C4D1DD",
+"# 	c #D6DCDF",
+"$ 	c #E1E2E1",
+"% 	c #EAEDEE",
+"& 	c #F5F7FA",
+"* 	c #38659D",
+"= 	c #8DA8C8",
+"- 	c #EBEBE8",
+"; 	c #FFDFA9",
+"> 	c #FFC35C",
+", 	c #FFB12B",
+"' 	c #FFAF23",
+") 	c #FEBA44",
+"! 	c #FECF7D",
+"~ 	c #FFD58D",
+"{ 	c #FFEFD3",
+"] 	c #FFFFFE",
+"^ 	c #4773A6",
+"/ 	c #DAE2ED",
+"( 	c #FEEAC6",
+"_ 	c #FEC155",
+": 	c #FFA405",
+"< 	c #FFA302",
+"[ 	c #FFA70F",
+"} 	c #FEE3B5",
+"| 	c #FFAC1F",
+"1 	c #FFDCA1",
+"2 	c #FFFFFF",
+"3 	c #4671A5",
+"4 	c #E6ECF3",
+"5 	c #FEE4B5",
+"6 	c #FEC665",
+"7 	c #FFA202",
+"8 	c #FFA813",
+"9 	c #FEBC48",
+"0 	c #FED48B",
+"a 	c #FEDB9E",
+"b 	c #FDE8CF",
+"c 	c #F8CCCE",
+"d 	c #F6BBBE",
+"e 	c #FDF2F3",
+"f 	c #2E609A",
+"g 	c #DCE4EE",
+"h 	c #FFF8EC",
+"i 	c #FECB73",
+"j 	c #FFAD1E",
+"k 	c #FFA70D",
+"l 	c #FFB940",
+"m 	c #FFCF7D",
+"n 	c #FEE8C3",
+"o 	c #F8C9C3",
+"p 	c #F7C2C4",
+"q 	c #F19599",
+"r 	c #E7444B",
+"s 	c #EC747A",
+"t 	c #E42229",
+"u 	c #E62F37",
+"v 	c #F4ACAF",
+"w 	c #38679F",
+"x 	c #91ABCA",
+"y 	c #FFD896",
+"z 	c #FEB73E",
+"A 	c #FFBF52",
+"B 	c #FEDDA6",
+"C 	c #FCE4DB",
+"D 	c #F4ABAE",
+"E 	c #F8C7C9",
+"F 	c #EF8085",
+"G 	c #E52A33",
+"H 	c #EC686E",
+"I 	c #E84D55",
+"J 	c #E95259",
+"K 	c #F09498",
+"L 	c #E31C24",
+"M 	c #E52630",
+"N 	c #FADCDD",
+"O 	c #2F609B",
+"P 	c #F1F4F8",
+"Q 	c #FEF4E1",
+"R 	c #FBDAD0",
+"S 	c #FBE5E6",
+"T 	c #EB6168",
+"U 	c #E7434B",
+"V 	c #EA5D63",
+"W 	c #E52F38",
+"X 	c #E31D25",
+"Y 	c #F19296",
+"Z 	c #E74047",
+"` 	c #E73E46",
+" .	c #ED6F75",
+"..	c #F3A8AB",
+"+.	c #E53339",
+"@.	c #E8454C",
+"#.	c #F29B9F",
+"$.	c #5980AF",
+"%.	c #6E91B9",
+"&.	c #FCEDEE",
+"*.	c #F3A3A7",
+"=.	c #F3A2A5",
+"-.	c #E6363E",
+";.	c #F3A5A8",
+">.	c #E4222C",
+",.	c #E63D45",
+"'.	c #E6353E",
+").	c #EE7A80",
+"!.	c #E4252D",
+"~.	c #EF7F84",
+"{.	c #E52E36",
+"].	c #F09194",
+"^.	c #ED7277",
+"/.	c #F0888C",
+"(.	c #FDF4F5",
+"_.	c #3668A0",
+":.	c #B0C4DA",
+"<.	c #ED6B70",
+"[.	c #EA5B62",
+"}.	c #E6343D",
+"|.	c #F2A0A4",
+"1.	c #E4222B",
+"2.	c #E52D35",
+"3.	c #F7C3C5",
+"4.	c #EE747A",
+"5.	c #F4ACB0",
+"6.	c #F08F93",
+"7.	c #FADADC",
+"8.	c #EB6066",
+"9.	c #E20A15",
+"0.	c #E42029",
+"a.	c #E31C25",
+"b.	c #F7C8CA",
+"c.	c #194F90",
+"d.	c #D1DCE9",
+"e.	c #EC646B",
+"f.	c #E6343E",
+"g.	c #E62F39",
+"h.	c #E5313B",
+"i.	c #E94B53",
+"j.	c #E83D46",
+"k.	c #F08C8F",
+"l.	c #F8CED0",
+"m.	c #F3A7AA",
+"n.	c #EB5F66",
+"o.	c #FAD9DA",
+"p.	c #F5B5B7",
+"q.	c #E20711",
+"r.	c #EE7C82",
+"s.	c #E20713",
+"t.	c #EE7D82",
+"u.	c #F8CDCF",
+"v.	c #0B468A",
+"w.	c #D7E2EC",
+"x.	c #EC636A",
+"y.	c #EC666D",
+"z.	c #E4202A",
+"A.	c #F6BABD",
+"B.	c #EF7F85",
+"C.	c #F8C8CA",
+"D.	c #E4282F",
+"E.	c #EB6067",
+"F.	c #E20814",
+"G.	c #E52933",
+"H.	c #F09195",
+"I.	c #E95158",
+"J.	c #E1050F",
+"K.	c #F6C2C5",
+"L.	c #E3141E",
+"M.	c #F5B8BB",
+"N.	c #0A458A",
+"O.	c #D2DDE9",
+"P.	c #EE7379",
+"Q.	c #EB6369",
+"R.	c #F3A6A9",
+"S.	c #E6333C",
+"T.	c #E8444B",
+"U.	c #E7333C",
+"V.	c #E42128",
+"W.	c #EB6068",
+"X.	c #E20A16",
+"Y.	c #E20B16",
+"Z.	c #E3111D",
+"`.	c #EA5E65",
+" +	c #EF8086",
+".+	c #F08A8F",
+"++	c #F6BFC2",
+"@+	c #154E8F",
+"#+	c #B3C5DB",
+"$+	c #FEFBFB",
+"%+	c #E9545B",
+"&+	c #E4212B",
+"*+	c #F0898E",
+"=+	c #F5B2B5",
+"-+	c #E7333D",
+";+	c #E31521",
+">+	c #EE7E83",
+",+	c #F5B0B4",
+"'+	c #E6313A",
+")+	c #E20C18",
+"!+	c #E2111B",
+"~+	c #EB6268",
+"{+	c #FEF6F6",
+"]+	c #3C6CA2",
+"^+	c #7597BD",
+"/+	c #E73B44",
+"(+	c #E3131F",
+"_+	c #E3131E",
+":+	c #EA535A",
+"<+	c #E6323C",
+"[+	c #E31520",
+"}+	c #FCEEEF",
+"|+	c #EE7B80",
+"1+	c #E52730",
+"2+	c #FBE2E2",
+"3+	c #FDEDE0",
+"4+	c #FABF95",
+"5+	c #FAC594",
+"6+	c #FFFDFD",
+"7+	c #F7CACC",
+"8+	c #F7C9CB",
+"9+	c #6B8FB8",
+"0+	c #235896",
+"a+	c #F0F4F8",
+"b+	c #E20F1B",
+"c+	c #E30F1B",
+"d+	c #E41B26",
+"e+	c #F6B9BC",
+"f+	c #E6333D",
+"g+	c #E4252E",
+"h+	c #EC6A70",
+"i+	c #EC646A",
+"j+	c #FEFAF6",
+"k+	c #FEE9C7",
+"l+	c #FDC578",
+"m+	c #FFBA45",
+"n+	c #FFAA19",
+"o+	c #FFC054",
+"p+	c #FED58F",
+"q+	c #A4B9D3",
+"r+	c #B8AFC3",
+"s+	c #F8DFE0",
+"t+	c #0E498C",
+"u+	c #8EA9C9",
+"v+	c #F3A4A8",
+"w+	c #E20E19",
+"x+	c #E73840",
+"y+	c #EB6269",
+"z+	c #F4AAAA",
+"A+	c #FDDFBB",
+"B+	c #FECB76",
+"C+	c #FFB029",
+"D+	c #FFA407",
+"E+	c #FFC664",
+"F+	c #FEC96D",
+"G+	c #E7E8E6",
+"H+	c #1D5594",
+"I+	c #054288",
+"J+	c #99B2CF",
+"K+	c #507AAB",
+"L+	c #185091",
+"M+	c #D8313E",
+"N+	c #E42730",
+"O+	c #F9C7B5",
+"P+	c #FECD7C",
+"Q+	c #FFAE22",
+"R+	c #FFA305",
+"S+	c #FFB332",
+"T+	c #FECA6E",
+"U+	c #FCEDD1",
+"V+	c #5780AF",
+"W+	c #004087",
+"X+	c #195292",
+"Y+	c #33639C",
+"Z+	c #B66479",
+"`+	c #D5B3BE",
+" @	c #FFF1D8",
+".@	c #FFA815",
+"+@	c #FEAC1E",
+"@@	c #FECF7E",
+"#@	c #FDF4E4",
+"$@	c #7799BF",
+"%@	c #074589",
+"&@	c #82A2C4",
+"*@	c #A4BBD3",
+"=@	c #175090",
+"-@	c #185191",
+";@	c #A8BDD5",
+">@	c #F8FAFC",
+",@	c #FFF3DF",
+"'@	c #FFD48C",
+")@	c #FFC157",
+"!@	c #FFB73E",
+"~@	c #FFC259",
+"{@	c #FFD388",
+"]@	c #FFF0D5",
+"^@	c #E7EDF3",
+"/@	c #5F86B3",
+"(@	c #044288",
+"_@	c #6C8FB9",
+":@	c #95AFCC",
+"<@	c #1D5593",
+"[@	c #014187",
+"}@	c #396AA1",
+"|@	c #A2B9D3",
+"1@	c #DDE6EF",
+"2@	c #FCFDFD",
+"3@	c #FCFDFE",
+"4@	c #D9E3ED",
+"5@	c #8AA7C7",
+"6@	c #1E5694",
+"7@	c #004187",
+"8@	c #0A478B",
+"9@	c #668BB6",
+"0@	c #4773A7",
+"a@	c #07458A",
+"b@	c #004086",
+"c@	c #09468A",
+"d@	c #1A5393",
+"e@	c #2A609B",
+"f@	c #2A609A",
+"g@	c #08458A",
+"h@	c #014087",
+"i@	c #2C609B",
+"j@	c #8DAAC9",
+"k@	c #5A82B0",
+"l@	c #31649D",
+"m@	c #0F4A8D",
+"n@	c #014288",
+"o@	c #09478A",
+"p@	c #255A97",
+"q@	c #4C78AA",
+"r@	c #7496BC",
+"                                                ",
+"                  . + @ # $ % &                 ",
+"            * = - ; > , ' ) ! ~ { ]             ",
+"          ^ / ( _ : < < < < [ } | 1 2           ",
+"        3 4 5 6 : < < < 7 8 9 0 a b c d e       ",
+"      f g h i j < k l m n o p q r s t u v       ",
+"    w x 2 y z A B C D E F G H I J K L M N 2     ",
+"    O P 2 Q R S T U V W X Y Z `  ...+. at .#.2 2   ",
+"  $.%.&.*.=.-.;.>.,.'.).!.~.{.J @.].^./.Y (.2   ",
+"  _.:.<.[.{.}.|.1.,.^.2.3.4.5.6.7.8.9.0.a.b.2   ",
+"  c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.t.u.q o.2 2 ",
+"  v.w.x.y.z.A.B.C.^.D.E.F.G.H.q.I.J.K.L.s.M.2 2 ",
+"  N.O.P.Q.R.(.S.T.U.V.W.X.Y.Z.F.`.s. +.+s.++2 2 ",
+"  @+#+$+%+&+*+Y.=+-+V.W.;+>+9.F.,+'+)+!+~+{+2 2 ",
+"  ]+^+2 /+(+_+:+$+<+V.W.[+}+|+1+2+3+4+5+6+7+8+  ",
+"  9+0+a+/+b+c+d+e+f+g+h+i+j+k+l+m+n+o+p+q+r+s+  ",
+"    t+u+/+&+v+w+x+y+z+A+B+C+D+< < E+F+G+H+I+J+  ",
+"    K+L+M+N+] C.O+P+Q+R+< < < < S+T+U+V+W+X+    ",
+"      Y+Z+`+2  @.@< < < < < < +@@@#@$@W+%@&@    ",
+"      *@=@-@;@>@,@'@)@!@!@~@{@]@^@/@W+(@_@      ",
+"        :@<@[@}@|@1 at P 2 at 3@P 4 at 5@6 at 7@8 at 9@        ",
+"            0 at a@b at c@d at e@f at d@g at W+h@i at j@          ",
+"                k at l@m at n@7 at o@p at q@r@              ",
+"                                                "};
+
+
+/* XPM */
+static char * shop_xpm[] = {
+"24 24 293 2",
+"  	c None",
+". 	c #B3B4B8",
+"+ 	c #E3E6E9",
+"@ 	c #D4D9E2",
+"# 	c #9FA1A5",
+"$ 	c #9B9C9E",
+"% 	c #C2C3C5",
+"& 	c #D1D4DB",
+"* 	c #CAD4E7",
+"= 	c #B2BEDB",
+"- 	c #C2CEE7",
+"; 	c #8898B9",
+"> 	c #F1FFFF",
+", 	c #ABB8CA",
+"' 	c #798399",
+") 	c #BEBFC4",
+"! 	c #E1E7F1",
+"~ 	c #C6CEE0",
+"{ 	c #D3DBEA",
+"] 	c #ABBAD8",
+"^ 	c #A2B1D4",
+"/ 	c #A3B5DE",
+"( 	c #535B72",
+"_ 	c #CCD5E5",
+": 	c #AEB3BD",
+"< 	c #B9BFCA",
+"[ 	c #E8F0FA",
+"} 	c #778093",
+"| 	c #3F4149",
+"1 	c #545454",
+"2 	c #636363",
+"3 	c #BCC0C6",
+"4 	c #B7C2D9",
+"5 	c #A1B0CE",
+"6 	c #A9B8DB",
+"7 	c #7F8AA5",
+"8 	c #A6B4D1",
+"9 	c #90A1CA",
+"0 	c #4F566B",
+"a 	c #BBC5DA",
+"b 	c #B8C0D2",
+"c 	c #BAC2D0",
+"d 	c #A3B1D0",
+"e 	c #D5DAE3",
+"f 	c #7E88A1",
+"g 	c #4B4E59",
+"h 	c #494848",
+"i 	c #595959",
+"j 	c #C2C5CB",
+"k 	c #ACB5CA",
+"l 	c #A9B3C9",
+"m 	c #A7B3CE",
+"n 	c #B4B8BF",
+"o 	c #D7DADE",
+"p 	c #C2C7D3",
+"q 	c #7E8493",
+"r 	c #A9B4C9",
+"s 	c #AAB4CB",
+"t 	c #AFBACE",
+"u 	c #8B94AA",
+"v 	c #818285",
+"w 	c #8E9CB7",
+"x 	c #5D667F",
+"y 	c #35363C",
+"z 	c #4E4E4E",
+"A 	c #5E5E5E",
+"B 	c #CAD2E1",
+"C 	c #CED6E6",
+"D 	c #CCD3E3",
+"E 	c #CCD2E2",
+"F 	c #909DBA",
+"G 	c #5B6276",
+"H 	c #3C3E44",
+"I 	c #535353",
+"J 	c #626262",
+"K 	c #6C7792",
+"L 	c #94A1C0",
+"M 	c #51619B",
+"N 	c #8694B4",
+"O 	c #7986A4",
+"P 	c #596275",
+"Q 	c #36373B",
+"R 	c #565656",
+"S 	c #474C5B",
+"T 	c #485169",
+"U 	c #8A95AF",
+"V 	c #484B54",
+"W 	c #3E434E",
+"X 	c #4D5569",
+"Y 	c #4D5773",
+"Z 	c #353D5E",
+"` 	c #757D8D",
+" .	c #667086",
+"..	c #636E84",
+"+.	c #515A72",
+"@.	c #3F465A",
+"#.	c #57617C",
+"$.	c #4E5872",
+"%.	c #313746",
+"&.	c #959FB0",
+"*.	c #32353C",
+"=.	c #5A606B",
+"-.	c #313132",
+";.	c #5F626B",
+">.	c #32394E",
+",.	c #808CA8",
+"'.	c #747E94",
+").	c #4A4C51",
+"!.	c #707784",
+"~.	c #72798B",
+"{.	c #3E4457",
+"].	c #98A6C1",
+"^.	c #8593B3",
+"/.	c #7986A8",
+"(.	c #616C8B",
+"_.	c #55607A",
+":.	c #67759A",
+"<.	c #5E6A89",
+"[.	c #474E60",
+"}.	c #8E97AC",
+"|.	c #35363D",
+"1.	c #505560",
+"2.	c #343434",
+"3.	c #5A5A5A",
+"4.	c #636364",
+"5.	c #535966",
+"6.	c #475065",
+"7.	c #7B86A0",
+"8.	c #798397",
+"9.	c #696C72",
+"0.	c #9CA8BE",
+"a.	c #8591A7",
+"b.	c #8593AD",
+"c.	c #8998BD",
+"d.	c #8C9ABC",
+"e.	c #55638F",
+"f.	c #7380A5",
+"g.	c #8290B3",
+"h.	c #525E85",
+"i.	c #676E7C",
+"j.	c #777D8F",
+"k.	c #44464D",
+"l.	c #4D505C",
+"m.	c #3C3B3C",
+"n.	c #5C5D5E",
+"o.	c #5F5F5F",
+"p.	c #3C455E",
+"q.	c #7884A0",
+"r.	c #5D6373",
+"s.	c #616469",
+"t.	c #8896B2",
+"u.	c #7683A1",
+"v.	c #5C677F",
+"w.	c #394255",
+"x.	c #384261",
+"y.	c #323B5B",
+"z.	c #596796",
+"A.	c #566597",
+"B.	c #2E3759",
+"C.	c #404249",
+"D.	c #5E636F",
+"E.	c #6D7076",
+"F.	c #464A52",
+"G.	c #464646",
+"H.	c #616161",
+"I.	c #515662",
+"J.	c #56617A",
+"K.	c #7F8BA8",
+"L.	c #A7A8AB",
+"M.	c #A5A9B2",
+"N.	c #989CA2",
+"O.	c #A5A9B3",
+"P.	c #ACB2C1",
+"Q.	c #A7ADBE",
+"R.	c #9498A3",
+"S.	c #A8AEC8",
+"T.	c #A5ACC6",
+"U.	c #9398A7",
+"V.	c #8E9299",
+"W.	c #4D535E",
+"X.	c #93979F",
+"Y.	c #4D4D4D",
+"Z.	c #646464",
+"`.	c #5F6164",
+" +	c #444A5B",
+".+	c #8592B0",
+"++	c #B8C4DE",
+"@+	c #B0BBD1",
+"#+	c #717584",
+"$+	c #919AA7",
+"%+	c #272729",
+"&+	c #505050",
+"*+	c #484B55",
+"=+	c #474E5C",
+"-+	c #3D4A7C",
+";+	c #3C497A",
+">+	c #3C487A",
+",+	c #3B487A",
+"'+	c #3B4879",
+")+	c #646F93",
+"!+	c #7C7F8F",
+"~+	c #777E8E",
+"{+	c #242324",
+"]+	c #545353",
+"^+	c #5C5C5C",
+"/+	c #4F4F4F",
+"(+	c #4C4C4C",
+"_+	c #4A4949",
+":+	c #474747",
+"<+	c #454545",
+"[+	c #444444",
+"}+	c #424242",
+"|+	c #585C65",
+"1+	c #51555F",
+"2+	c #6B7184",
+"3+	c #2C2C2F",
+"4+	c #ABABAB",
+"5+	c #D3D3D3",
+"6+	c #D2D2D2",
+"7+	c #D1D1D1",
+"8+	c #D0D0D0",
+"9+	c #8E9199",
+"0+	c #6F7480",
+"a+	c #5A606E",
+"b+	c #3A3B3C",
+"c+	c #737A8A",
+"d+	c #888F9F",
+"e+	c #606674",
+"f+	c #707B94",
+"g+	c #3E424C",
+"h+	c #5B5B5C",
+"i+	c #CCD0D8",
+"j+	c #97A2B9",
+"k+	c #7480A1",
+"l+	c #66739E",
+"m+	c #707C9E",
+"n+	c #BAC2D5",
+"o+	c #8C9299",
+"p+	c #656970",
+"q+	c #5B5C5C",
+"r+	c #D0D5D8",
+"s+	c #5B5D5F",
+"t+	c #586278",
+"u+	c #586077",
+"v+	c #353949",
+"w+	c #3C4151",
+"x+	c #3F4353",
+"y+	c #404455",
+"z+	c #3D4152",
+"A+	c #9094A0",
+"B+	c #CFD7DE",
+"C+	c #46494E",
+"D+	c #687288",
+"E+	c #5E6167",
+"F+	c #7E8186",
+"G+	c #040506",
+"H+	c #292E38",
+"I+	c #5F6574",
+"J+	c #454444",
+"K+	c #5B5B5B",
+"L+	c #585858",
+"M+	c #9EA0A2",
+"N+	c #4F5258",
+"O+	c #030304",
+"P+	c #484F60",
+"Q+	c #5A5D64",
+"R+	c #606061",
+"S+	c #71798A",
+"T+	c #484F5F",
+"U+	c #5A6479",
+"V+	c #565960",
+"W+	c #555555",
+"X+	c #666767",
+"Y+	c #6E6E6E",
+"Z+	c #6F6F6F",
+"`+	c #6A6A6A",
+" @	c #75787D",
+".@	c #727A8E",
+"+@	c #5E6679",
+"@@	c #545559",
+"#@	c #616162",
+"$@	c #636469",
+"%@	c #60636A",
+"&@	c #595B60",
+"*@	c #737373",
+"=@	c #787878",
+"-@	c #797979",
+";@	c #767676",
+">@	c #6D6D6D",
+",@	c #636569",
+"'@	c #5F6269",
+")@	c #56585B",
+"!@	c #575757",
+"                                                ",
+"                                                ",
+"                . + @ #                         ",
+"          $ %   & * = - ;             > , '     ",
+"          ) ! ~ { ] ^ / ( _ :       < [ } | 1 2 ",
+"          3 4 5 6 7 8 9 0 a b c d   e f g h i   ",
+"          j k l m n o p q r s t u v w x y z A   ",
+"  B C D D D D D D D D D D D D D D E F G H I J   ",
+"  K L M M M M M M M M M M M M M M N O P Q R     ",
+"  S T U V W X Y Z `  ...+. at .#.$.%.&.*.=.-.i     ",
+"  ;.>.,.'.).!.~.{.].^./.(._.:.<.[.}.|.1.2.3.    ",
+"  4.5.6.7.8.9.0.a.b.c.d.e.f.g.h.i.j.k.l.m.n.    ",
+"    o.p.q.r.s.t.u.v.w.x.y.z.A.B.C.D.E.F.G.H.    ",
+"      I.J.K.L.M.N.O.P.Q.R.S.T.U.V.W.X.H Y.Z.    ",
+"      `. +.+++++++++++++++++++++ at +#+$+%+&+      ",
+"        *+=+-+;+;+;+>+,+,+,+,+'+)+!+~+{+]+      ",
+"          ^+I /+(+_+:+<+[+[+[+}+|+1+2+3+R       ",
+"                4+5+6+7+7+7+7+8+9+0+a+b+i       ",
+"                c+d+d+d+d+d+d+d+e+f+g+[+h+      ",
+"                i+j+k+l+l+l+l+l+m+n+o+p+q+      ",
+"              r+s+t+u+v+w+x+y+z+A+B+C+D+E+      ",
+"              F+G+H+I+J+1 K+^+L+M+N+O+P+Q+R+    ",
+"              S+T+U+V+W+X+Y+Z+`+ @. at P++@@@#@    ",
+"              $@%@&@1 Z.*@=@-@;@>@,@'@)@!@      "};
+
+/* XPM */
+static char * monu_xpm[] = {
+"24 24 29 1",
+" 	c None",
+".	c #FFFFFF",
+"+	c #F7F7F7",
+"@	c #EFEFEF",
+"#	c #E7E7E7",
+"$	c #DFDFDF",
+"%	c #D5D5D5",
+"&	c #CCCCCC",
+"*	c #C5C5C5",
+"=	c #BEBEBE",
+"-	c #B4B4B4",
+";	c #ADADAD",
+">	c #A2A2A2",
+",	c #999999",
+"'	c #8B8B8B",
+")	c #848484",
+"!	c #7B7B7B",
+"~	c #757575",
+"{	c #666666",
+"]	c #5A5A5A",
+"^	c #525252",
+"/	c #494949",
+"(	c #404040",
+"_	c #3B3B3B",
+":	c #333333",
+"<	c #202020",
+"[	c #191919",
+"}	c #101010",
+"|	c #000000",
+"..%%%%%%%%%%%%%%%%%%%%..",
+"........................",
+".......................!",
+"...........>}..........)",
+"..........||||.........)",
+"........|||=.|||$......)",
+"......^|||....:|||.....)",
+"...!!|||!!!!!!!!|||!!..)",
+"...||||||||||||||||||..)",
+".......................)",
+"....|||.)|||.|||.|||...)",
+".....||..||..||..)|....)",
+".....||..||..||..)|....)",
+".....||..||..||..(|....)",
+".....||..||..||..||....)",
+".....||..||..||..||....)",
+".....||..||..||..||....)",
+".....||..||..||..||=...)",
+"....(||.(||(>||(.||:...)",
+".......................)",
+"...||||||||||||||||||..)",
+".......................)",
+".......................&",
+".@(((((/______________,."};
+
+/* XPM */
+static char * hotel_xpm[] = {
+"24 24 111 2",
+"  	c None",
+". 	c #66777A",
+"+ 	c #7FB5BD",
+"@ 	c #85BFC8",
+"# 	c #7AABB3",
+"$ 	c #555D5E",
+"% 	c #78B2BB",
+"& 	c #73BFCB",
+"* 	c #6C949A",
+"= 	c #73ADB6",
+"- 	c #6F969D",
+"; 	c #98BBC1",
+"> 	c #ADC8CD",
+", 	c #99BDC2",
+"' 	c #76B6C0",
+") 	c #F4F6F6",
+"! 	c #FFFFFF",
+"~ 	c #F6F8F8",
+"{ 	c #79B8C2",
+"] 	c #A5CACF",
+"^ 	c #A9CDD3",
+"/ 	c #73BECA",
+"( 	c #B9D4D9",
+"_ 	c #D8EDF0",
+": 	c #E2EDEF",
+"< 	c #E6F1F3",
+"[ 	c #BBD6DA",
+"} 	c #97BEC4",
+"| 	c #A7CED5",
+"1 	c #72BDC9",
+"2 	c #73B6C1",
+"3 	c #72B9C4",
+"4 	c #E0E0E0",
+"5 	c #9BBCC2",
+"6 	c #74BDC8",
+"7 	c #8FC1C9",
+"8 	c #79B2BB",
+"9 	c #74B7C1",
+"0 	c #EFEFEF",
+"a 	c #A2C3C8",
+"b 	c #B6CFD3",
+"c 	c #F4F4F4",
+"d 	c #80B9C2",
+"e 	c #D5DDDE",
+"f 	c #9EC9D0",
+"g 	c #82BBC5",
+"h 	c #71ABB4",
+"i 	c #6FB5C0",
+"j 	c #BACED1",
+"k 	c #9AB6BB",
+"l 	c #E1E4E4",
+"m 	c #C5D4D6",
+"n 	c #ABC2C5",
+"o 	c #787878",
+"p 	c #898989",
+"q 	c #FCFCFC",
+"r 	c #EAEAEA",
+"s 	c #D6D8D8",
+"t 	c #D7E9EC",
+"u 	c #C1D3D6",
+"v 	c #B5D0D4",
+"w 	c #ACC8CC",
+"x 	c #99B4B9",
+"y 	c #94C7CF",
+"z 	c #75B7C2",
+"A 	c #989898",
+"B 	c #7F7F7F",
+"C 	c #AFC0C3",
+"D 	c #79B6BF",
+"E 	c #9D9FA0",
+"F 	c #000000",
+"G 	c #555555",
+"H 	c #DEE5E6",
+"I 	c #73BAC5",
+"J 	c #6F6F6F",
+"K 	c #1F1F1F",
+"L 	c #BEBEBE",
+"M 	c #585858",
+"N 	c #B2B2B2",
+"O 	c #F7F7F7",
+"P 	c #7CBFCA",
+"Q 	c #CDD3D3",
+"R 	c #AAB6B8",
+"S 	c #CAD6D8",
+"T 	c #B4C0C2",
+"U 	c #ABB7B9",
+"V 	c #E3EFF1",
+"W 	c #E9F5F7",
+"X 	c #E2EEF0",
+"Y 	c #7BBFCA",
+"Z 	c #DEE0E1",
+"` 	c #C6CCCD",
+" .	c #C1C7C8",
+"..	c #77BBC6",
+"+.	c #C6D7DA",
+"@.	c #C3DEE2",
+"#.	c #A0D3DC",
+"$.	c #72BAC6",
+"%.	c #82B3BA",
+"&.	c #76B3BD",
+"*.	c #79BCC7",
+"=.	c #84B5BC",
+"-.	c #73BCC8",
+";.	c #76B0B9",
+">.	c #70989E",
+",.	c #617275",
+"'.	c #7EB4BC",
+").	c #81BAC4",
+"!.	c #80BAC3",
+"~.	c #7CADB5",
+"{.	c #535A5C",
+". + @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ # $ ",
+"% & & & & & & & & & & & & & & & & & & & & & & * ",
+"= & & & & & & & & & & & & & & & & & & & & & & - ",
+"= & & & & & & & & & & & & & & & ; > > , & & & - ",
+"= & & & & & & & & & & & & & & ' ) ! ! ~ { & & - ",
+"= & & & & & & & & & & & & & & ] ! ! ! ! ^ & & - ",
+"= & & & & & & & & & & & & & / ( _ : < _ [ / & - ",
+"= & & & & & & & & & & & & & & & & } | & & & & - ",
+"= & 1 2 3 & & & & & & & & & & & & } | & & & & - ",
+"= & 2 4 5 6 7 8 & & & & & & & & & } | & & & & - ",
+"= & 9 0 a b ! c d & & & & & & & & } | & & & & - ",
+"= & 9 0 a e ! ! f g h i & & & & & } | & & & & - ",
+"= & 9 0 j k l m n o p q r s t u v w x y z & & - ",
+"= & 9 0 A B C D E F G ! ! ! ! ! ! ! ! ! H I & - ",
+"= & 9 0 J F K L M F N ! ! ! ! ! ! ! ! ! O P & - ",
+"= & 9 0 Q R R S T U V W W W W W W W W W X Y & - ",
+"= & 9 0 Z ` ` ` ` ` ` ` ` ` ` ` ` ` ` `  ...& - ",
+"= & 9 0 ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! O P & - ",
+"= & 9 0 +.| | | | | | | | | | | | | | @.O P & - ",
+"= & 9 0 a & & & & & & & & & & & & & & #.O P & - ",
+"= & 9 0 a & & & & & & & & & & & & & & #.O P & - ",
+"= & $.%.&.& & & & & & & & & & & & & & *.=.-.& - ",
+";.& & & & & & & & & & & & & & & & & & & & & & >.",
+",.'.).).).).).).!.).).).).).).).).).).).).).~.{."};
+
+
+/* XPM */
+static char * speedtrap_xpm[] = {
+"24 24 29 1",
+" 	c None",
+".	c #DB4E66",
+"+	c #D65E70",
+"@	c #F20A2E",
+"#	c #EE0E32",
+"$	c #EA1236",
+"%	c #F20E32",
+"&	c #EEEAEB",
+"*	c #EE0A2E",
+"=	c #FCF6F6",
+"-	c #FEEEF2",
+";	c #FEFEFE",
+">	c #DB3E5A",
+",	c #020202",
+"'	c #DC425A",
+")	c #DA5269",
+"!	c #F53E5A",
+"~	c #F23251",
+"{	c #DA465E",
+"]	c #EE1235",
+"^	c #FEF2F4",
+"/	c #060606",
+"(	c #767676",
+"_	c #EB1636",
+":	c #FAFAFA",
+"<	c #9E9E9E",
+"[	c #EE0E36",
+"}	c #EB163A",
+"|	c #EE0A32",
+"           .+           ",
+"           @@           ",
+"          #@@$          ",
+"          @@@@          ",
+"         %@@@@$         ",
+"        &**#@**         ",
+"        #**=-@@$        ",
+"        ***;;@@@        ",
+"       >@@;;;;@@.       ",
+"       @*#;,,;#*@       ",
+"      '*@;;,,;;@*)      ",
+"      @@!;;,,;;~*@      ",
+"     {**;;;,,;;;@*)     ",
+"     @@*;;;,,;;;@@@     ",
+"    ]**^;;;,,;;;^**$    ",
+"    @*@;;;;,,;;;;***    ",
+"   #@@^;;;;,,;;;;-@@_   ",
+"   **@;;;;;;;;;;;;***   ",
+"  [@@^;;;;;,,:;;;;-**}  ",
+"  ***;;;;;;,,;;;;;;@*@  ",
+" @@@;;;;;;;;;;;;;;;;*@* ",
+" @@********@**@*@****** ",
+"@@@@@*******************",
+"|**********************@"};
+
+
+/* XPM */
+static char * girls_xpm[] = {
+"24 24 33 1",
+" 	c None",
+".	c #060404",
+"+	c #2C3224",
+"@	c #4A5F49",
+"#	c #667A56",
+"$	c #A6AC9C",
+"%	c #ECE2C3",
+"&	c #A78651",
+"*	c #372210",
+"=	c #BEAE76",
+"-	c #6E6044",
+";	c #C78540",
+">	c #DAC99F",
+",	c #593919",
+"'	c #241F15",
+")	c #C1995F",
+"!	c #C6AE6A",
+"~	c #93612B",
+"{	c #F0C27B",
+"]	c #1E0F06",
+"^	c #DC9346",
+"/	c #424C40",
+"(	c #E4B780",
+"_	c #12130B",
+":	c #6A5030",
+"<	c #EEB15D",
+"[	c #CFA05D",
+"}	c #E6B670",
+"|	c #F5C792",
+"1	c #B66A22",
+"2	c #93723B",
+"3	c #DEA14E",
+"4	c #150B07",
+"                        ",
+"            #/@         ",
+"           $_..+        ",
+"          +*,'..+       ",
+"         /'[}}~4./      ",
+"         +-}||}:..      ",
+"         *))|}}2..      ",
+"         :{[|);;..@     ",
+"         2|{{{};..+     ",
+"         >{<<{{~4._     ",
+"          (1^<[*...     ",
+"          ><<^~....     ",
+"           }^;,..._#    ",
+"          %}3;,]...     ",
+"        >((}3:^~4.4     ",
+"       >)[(}:3^;:._     ",
+"      %&:{[':<3<^*]     ",
+"      (*&)']3<<<<,.     ",
+"     %24='.,}<<<3,.     ",
+"     =''-..,<<<<^,.     ",
+"    >/..4..2<<<33*4     ",
+"    &.....'3<<<3[]/     ",
+"   >^_..._~<}<<<!$      ",
+"   [;,...*^<<<3(%       "};
+
+/* XPM */
+static char * airport_xpm[] = {
+"24 24 152 2",
+"  	c None",
+". 	c #BCBCBC",
+"+ 	c #919191",
+"@ 	c #909090",
+"# 	c #959595",
+"$ 	c #C8C8C8",
+"% 	c #D0D2D0",
+"& 	c #657665",
+"* 	c #122F12",
+"= 	c #0F2C0F",
+"- 	c #0E2C0E",
+"; 	c #183518",
+"> 	c #7C8A7C",
+", 	c #DBDCDB",
+"' 	c #B0B0B0",
+") 	c #536053",
+"! 	c #208820",
+"~ 	c #01B101",
+"{ 	c #00B300",
+"] 	c #01B301",
+"^ 	c #04AE04",
+"/ 	c #287D28",
+"( 	c #616661",
+"_ 	c #C3C3C3",
+": 	c #132613",
+"< 	c #009500",
+"[ 	c #00FA00",
+"} 	c #00FF00",
+"| 	c #00FE00",
+"1 	c #01FE01",
+"2 	c #01ED01",
+"3 	c #01BC01",
+"4 	c #00C500",
+"5 	c #00F300",
+"6 	c #00FD00",
+"7 	c #00F100",
+"8 	c #007900",
+"9 	c #232B23",
+"0 	c #ABABAB",
+"a 	c #132713",
+"b 	c #01D001",
+"c 	c #025002",
+"d 	c #016801",
+"e 	c #00E200",
+"f 	c #142714",
+"g 	c #01CC01",
+"h 	c #023E02",
+"i 	c #015801",
+"j 	c #00E000",
+"k 	c #019501",
+"l 	c #01F901",
+"m 	c #01E201",
+"n 	c #01A801",
+"o 	c #023402",
+"p 	c #014901",
+"q 	c #00BA00",
+"r 	c #00E600",
+"s 	c #00FB00",
+"t 	c #01FD01",
+"u 	c #01FB01",
+"v 	c #01E901",
+"w 	c #018401",
+"x 	c #023002",
+"y 	c #020F02",
+"z 	c #021502",
+"A 	c #013901",
+"B 	c #009900",
+"C 	c #00F200",
+"D 	c #00FC00",
+"E 	c #01DC01",
+"F 	c #01A001",
+"G 	c #019101",
+"H 	c #023902",
+"I 	c #030403",
+"J 	c #030303",
+"K 	c #020202",
+"L 	c #020702",
+"M 	c #008B00",
+"N 	c #009100",
+"O 	c #00A900",
+"P 	c #00E700",
+"Q 	c #01F401",
+"R 	c #01E801",
+"S 	c #019F01",
+"T 	c #022C02",
+"U 	c #020E02",
+"V 	c #030703",
+"W 	c #020802",
+"X 	c #013F01",
+"Y 	c #00B400",
+"Z 	c #00EB00",
+"` 	c #00EE00",
+" .	c #00DB00",
+"..	c #017C01",
+"+.	c #023602",
+"@.	c #020D02",
+"#.	c #020302",
+"$.	c #021302",
+"%.	c #013E01",
+"&.	c #008F00",
+"*.	c #00DD00",
+"=.	c #008400",
+"-.	c #014701",
+";.	c #011701",
+">.	c #012001",
+",.	c #014E01",
+"'.	c #015901",
+").	c #009600",
+"!.	c #00E100",
+"~.	c #00F500",
+"{.	c #00EC00",
+"].	c #015001",
+"^.	c #00CC00",
+"/.	c #00EF00",
+"(.	c #00F900",
+"_.	c #00F700",
+":.	c #00D600",
+"<.	c #012F01",
+"[.	c #014201",
+"}.	c #00EA00",
+"|.	c #007F00",
+"1.	c #012A01",
+"2.	c #021702",
+"3.	c #013201",
+"4.	c #00F400",
+"5.	c #008800",
+"6.	c #008600",
+"7.	c #00C100",
+"8.	c #00F800",
+"9.	c #A3A3A3",
+"0.	c #3A4A3A",
+"a.	c #138D13",
+"b.	c #00CD00",
+"c.	c #00D000",
+"d.	c #00CF00",
+"e.	c #00CB00",
+"f.	c #02C802",
+"g.	c #197B19",
+"h.	c #494F49",
+"i.	c #BABABA",
+"j.	c #E4E4E4",
+"k.	c #BBBFBB",
+"l.	c #557555",
+"m.	c #073D07",
+"n.	c #043A04",
+"o.	c #0E410E",
+"p.	c #6B846B",
+"q.	c #C7C9C7",
+"r.	c #AAAAAA",
+"s.	c #727272",
+"t.	c #707070",
+"u.	c #777777",
+"                                                ",
+"    . + @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ # $     ",
+"  % & * = = = = = = = = - - - - - - - - ; > ,   ",
+"' ) ! ~ { { { ] ] ] ] ] { { { { { { { { ^ / ( _ ",
+"@ : < [ } } | | 1 1 2 3 4 5 6 6 6 6 6 6 7 8 9 0 ",
+"@ a < [ } } | | 1 1 b c d e 6 6 6 6 6 6 7 8 9 0 ",
+"@ f < [ } } | | 1 1 g h i j 6 6 6 6 6 6 7 8 9 0 ",
+"@ f < [ } } | | 1 1 g h i j 6 6 6 6 6 6 7 8 9 0 ",
+"@ f < [ | | | | 1 1 g h i j 6 6 6 6 6 6 7 8 9 0 ",
+"@ f k l 1 1 1 1 1 1 g h i j 6 6 6 6 6 6 7 8 9 0 ",
+"@ f k l 1 1 1 1 l m n o p q r s 6 6 6 6 7 8 9 0 ",
+"@ f k l t t u u v w x y z A B C [ s D 6 7 8 9 0 ",
+"@ f k l t E F G w H I J K L p M N O P 6 7 8 9 0 ",
+"@ f k Q R S T y U V J J K K W U U X Y Z ` 8 9 0 ",
+"@ a k  ...+. at .#.#.#.K K K K K K K $.%.&.j 8 9 0 ",
+"@ : < *.=.i i i i i -.;.>.,.i i i i '.).!.8 9 0 ",
+"@ : < ~.{.r r r r r q A ].^.r r r r r /./.8 9 0 ",
+"@ : < (.6 6 6 6 6 6 ^.%.i j 6 6 6 6 6 6 7 8 9 0 ",
+"@ : < (.6 6 6 6 _.:.B <.[.O *.[ 6 6 6 6 7 8 9 0 ",
+"@ : < (.6 6 6 6 }.|.1.$.2.3.< 4.6 6 6 6 7 8 9 0 ",
+"@ : < (.6 6 6 6 C Y 5.6.6.M 7.8.6 6 6 6 7 8 9 0 ",
+"9.0.a.b.c.c.c.c.d.b.e.e.e.e.b.c.c.c.c.c.f.g.h.i.",
+"j.k.l.m.n.n.n.n.n.n.n.n.n.n.n.n.n.n.n.n.o.p.q.  ",
+"    r.s.t.t.t.t.t.t.t.t.t.t.t.t.t.t.t.t.u.i.    "};
+
+
+/* XPM */
+static char * golf_xpm[] = {
+"24 24 9 1",
+" 	c None",
+".	c #E20404",
+"+	c #CBB399",
+"@	c #FFFFFF",
+"#	c #000000",
+"$	c #D8C6B2",
+"%	c #00FF00",
+"&	c #577900",
+"*	c #459400",
+"                        ",
+"          ...           ",
+"          .++@@@@@@@@@  ",
+"          .@@@@###@@@@  ",
+"          @@@@@#@#@@@@  ",
+"          @@@@@###@@@@  ",
+"          @@@@@@@#@@@@  ",
+"          @@@@@###@@@@  ",
+"          .$$@@@@@@@@@  ",
+"          ...           ",
+"          ...           ",
+"          ...           ",
+"          @@@           ",
+"          @@@           ",
+"          @@@           ",
+"     %%%%&@@@%%%%%%     ",
+"   %%%%%%&...%%%%%%%%   ",
+"  %%%%%%%&...%%%%%%%%%  ",
+" %%%%%%%%&...%%%%%%%%%% ",
+" %%%%%%%%*...%%%%%%%%%% ",
+" %%%%%%%%%%%%%%%%%%%%%  ",
+"   %%%%%%%%%%%%%%%%%%   ",
+"     %%%%%%%%%%%%%%     ",
+"          %%%%          "};
+
+
+/* XPM */
+static char * fuel_xpm[] = {
+"24 24 10 1",
+" 	c None",
+".	c #000000",
+"+	c #3F3F3F",
+"@	c #7F7F7F",
+"#	c #262626",
+"$	c #FFFFFF",
+"%	c #4C4C4C",
+"&	c #727272",
+"*	c #E5E5E5",
+"=	c #444444",
+"                        ",
+"                        ",
+"                        ",
+"                        ",
+"                        ",
+"                        ",
+"                        ",
+"          .....         ",
+"         .......        ",
+"         ........       ",
+"         ..+@@#...      ",
+"         ..@$$%....     ",
+"         ..&**=.. .     ",
+"         ........  ..   ",
+"         ........  ..   ",
+"         ........  ..   ",
+"         ........    .  ",
+"         ........    .  ",
+"         ........    .  ",
+"         ........    .  ",
+"         ........    .  ",
+"         ............   ",
+"                        ",
+"                        "};
+
+/* XPM */
+static char * cafe_xpm[] = {
+"24 24 260 2",
+"  	c None",
+". 	c #010000",
+"+ 	c #070506",
+"@ 	c #0A0907",
+"# 	c #030000",
+"$ 	c #161211",
+"% 	c #080405",
+"& 	c #090806",
+"* 	c #080403",
+"= 	c #FFFDFD",
+"- 	c #F9F3F3",
+"; 	c #FFF9FA",
+"> 	c #FFFCFD",
+", 	c #ECE2E3",
+"' 	c #FFFBFD",
+") 	c #F5EBEC",
+"! 	c #010002",
+"~ 	c #040500",
+"{ 	c #12110D",
+"] 	c #F4EFEC",
+"^ 	c #FFFDFB",
+"/ 	c #FFFCFB",
+"( 	c #FFFBFB",
+"_ 	c #FFEFF0",
+": 	c #FEEBED",
+"< 	c #FFF9FB",
+"[ 	c #FFEDF0",
+"} 	c #FEEEF1",
+"| 	c #FEF8FA",
+"1 	c #F0EEF1",
+"2 	c #020003",
+"3 	c #080609",
+"4 	c #030104",
+"5 	c #FEFCFF",
+"6 	c #000000",
+"7 	c #FAF6F3",
+"8 	c #FAF2F0",
+"9 	c #D8CACA",
+"0 	c #CEBEBF",
+"a 	c #F6E2E4",
+"b 	c #FAE4E7",
+"c 	c #F6DBE0",
+"d 	c #E7CACF",
+"e 	c #FDE0E5",
+"f 	c #F3DCE2",
+"g 	c #CEC5C8",
+"h 	c #E4E2E5",
+"i 	c #FFFEFF",
+"j 	c #EAE8EB",
+"k 	c #B6B4B7",
+"l 	c #DBD9DC",
+"m 	c #CCC0C0",
+"n 	c #CCBCBD",
+"o 	c #A89496",
+"p 	c #5B4548",
+"q 	c #482D32",
+"r 	c #52353A",
+"s 	c #5E3D44",
+"t 	c #5E3B42",
+"u 	c #4A252D",
+"v 	c #4F3139",
+"w 	c #DBD0D4",
+"x 	c #BCBABD",
+"y 	c #C5C3C6",
+"z 	c #545255",
+"A 	c #9C9A9D",
+"B 	c #F3E7E7",
+"C 	c #DECECF",
+"D 	c #5C494B",
+"E 	c #4B3538",
+"F 	c #2A1115",
+"G 	c #2F1217",
+"H 	c #2F1016",
+"I 	c #2F0C13",
+"J 	c #361119",
+"K 	c #370F18",
+"L 	c #41222A",
+"M 	c #54484C",
+"N 	c #89878A",
+"O 	c #C7C5C8",
+"P 	c #918F92",
+"Q 	c #FFFAFD",
+"R 	c #B4A1A5",
+"S 	c #442D33",
+"T 	c #361D23",
+"U 	c #3A1C24",
+"V 	c #2F1018",
+"W 	c #290811",
+"X 	c #36121C",
+"Y 	c #2F0B15",
+"Z 	c #25070F",
+"` 	c #B8ADB1",
+" .	c #F8F6F9",
+"..	c #BDBBBE",
+"+.	c #060407",
+"@.	c #E1DFE2",
+"#.	c #0B090C",
+"$.	c #0B0004",
+"%.	c #F4E5EA",
+"&.	c #FFF6F9",
+"*.	c #FFF9FF",
+"=.	c #FFF2F7",
+"-.	c #FFF2FA",
+";.	c #FFEFF5",
+">.	c #FFEFF8",
+",.	c #FFF5FD",
+"'.	c #FFF5FF",
+").	c #FFECF4",
+"!.	c #FFFCFF",
+"~.	c #F4F2F5",
+"{.	c #1A181B",
+"].	c #211F22",
+"^.	c #F7F5F8",
+"/.	c #C4C2C5",
+"(.	c #110B0F",
+"_.	c #D6D0D2",
+":.	c #FFFBFF",
+"<.	c #FFF8FE",
+"[.	c #FFF5F9",
+"}.	c #FFF0F8",
+"|.	c #FEEBF1",
+"1.	c #FFF7FF",
+"2.	c #FFFAFF",
+"3.	c #E5DFE3",
+"4.	c #ADABAE",
+"5.	c #A5A3A6",
+"6.	c #E9E7EA",
+"7.	c #E6E4E7",
+"8.	c #171518",
+"9.	c #F2EDF1",
+"0.	c #D0CBCF",
+"a.	c #FAF5F9",
+"b.	c #E9E3E7",
+"c.	c #DAD4D8",
+"d.	c #E3DADF",
+"e.	c #D6CDD2",
+"f.	c #C1B8BD",
+"g.	c #C6BDC2",
+"h.	c #BFB6BB",
+"i.	c #AFAAAE",
+"j.	c #CAC8CB",
+"k.	c #959396",
+"l.	c #0A080B",
+"m.	c #000004",
+"n.	c #F9FAFE",
+"o.	c #FEFFFF",
+"p.	c #F7F8FC",
+"q.	c #E2E3E7",
+"r.	c #C9CACE",
+"s.	c #D6D7DB",
+"t.	c #D5D6DA",
+"u.	c #C6C7CB",
+"v.	c #B1B0B5",
+"w.	c #A4A2A5",
+"x.	c #AAA8AB",
+"y.	c #A6A4A7",
+"z.	c #09070A",
+"A.	c #4D4E52",
+"B.	c #DFE3E6",
+"C.	c #E0E4E7",
+"D.	c #D1D5D8",
+"E.	c #D4D8DB",
+"F.	c #C2C6C9",
+"G.	c #B1B5B8",
+"H.	c #BDC1C4",
+"I.	c #ADAEB0",
+"J.	c #ABABAD",
+"K.	c #A2A0A3",
+"L.	c #7F7D80",
+"M.	c #0C0A0D",
+"N.	c #010103",
+"O.	c #D3D3D5",
+"P.	c #EDEDEF",
+"Q.	c #FDFDFF",
+"R.	c #525254",
+"S.	c #FFFFFF",
+"T.	c #DCDCDE",
+"U.	c #D7D7D9",
+"V.	c #DFDFE1",
+"W.	c #DDDDDF",
+"X.	c #C2C2C4",
+"Y.	c #CBCBCD",
+"Z.	c #ACACAE",
+"`.	c #B8B8BA",
+" +	c #B3B3B5",
+".+	c #848484",
+"++	c #3A3A3A",
+"@+	c #C9C9C9",
+"#+	c #C6C6C6",
+"$+	c #FDFBFE",
+"%+	c #EBE9EC",
+"&+	c #F5F3F6",
+"*+	c #F1EFF2",
+"=+	c #FFFDFF",
+"-+	c #CECCCF",
+";+	c #C3C1C4",
+">+	c #ABA9AC",
+",+	c #9B9B9B",
+"'+	c #5F5F5F",
+")+	c #4A4A4A",
+"!+	c #999999",
+"~+	c #D2D2D2",
+"{+	c #E3E3E3",
+"]+	c #F3F3F3",
+"^+	c #040205",
+"/+	c #E3E1E4",
+"(+	c #FCFAFD",
+"_+	c #5D5B5E",
+":+	c #D1CFD2",
+"<+	c #E8E6E9",
+"[+	c #DFDDE0",
+"}+	c #C0BEC1",
+"|+	c #B2B0B3",
+"1+	c #A9A7AA",
+"2+	c #8E8E8E",
+"3+	c #404040",
+"4+	c #939393",
+"5+	c #C3C3C3",
+"6+	c #F4F4F4",
+"7+	c #FBFBFB",
+"8+	c #CCCCCC",
+"9+	c #0A0A0A",
+"0+	c #EEECEF",
+"a+	c #FBF9FC",
+"b+	c #E5E3E6",
+"c+	c #5C5A5D",
+"d+	c #5E5C5F",
+"e+	c #565457",
+"f+	c #3B393C",
+"g+	c #424043",
+"h+	c #4F4D50",
+"i+	c #383639",
+"j+	c #9D9D9D",
+"k+	c #F0F0F0",
+"l+	c #F9F9F9",
+"m+	c #FCFCFC",
+"n+	c #C7C7C7",
+"o+	c #110F12",
+"p+	c #C1BFC2",
+"q+	c #DAD8DB",
+"r+	c #D4D2D5",
+"s+	c #F8F8F8",
+"t+	c #DBDBDB",
+"u+	c #BCBCBC",
+"v+	c #D8D6D9",
+"w+	c #EDEBEE",
+"x+	c #F3F1F4",
+"y+	c #F2F0F3",
+"z+	c #F1F1F1",
+"A+	c #E1E1E1",
+"B+	c #121013",
+"C+	c #B8B6B9",
+"D+	c #D2D0D3",
+"E+	c #B4B2B5",
+"F+	c #B9B7BA",
+"G+	c #949295",
+"H+	c #0B0B0B",
+"I+	c #0D0B0E",
+"J+	c #252326",
+"K+	c #242225",
+"                                                ",
+"                                                ",
+"                                                ",
+"                                                ",
+"                  . + @ # $ % #                 ",
+"              & * = - ; > , ' ) % !             ",
+"          ~ { ] ^ / ( _ : < [ } | 1 2   3 ! 4 5 ",
+"        6 7 8 / 9 0 a b c d e f g h i 6 j k l 6 ",
+"        # ^ m n o p q r s t u v w x y i z ! A 6 ",
+"        # B C D E F G H I J K L M N O i ! i P 6 ",
+"        # ' Q R S T U V W X Y Z ` i  ...! +. at .#.",
+"        $.' %.&.*.=.-.;.>.,.'.).!.~.i {.].^./.! ",
+"        (._.!.:.<.[.*.*.}.|.1.2.3.4.5.! 6.7.!   ",
+"          8.9.0.a.b.c.d.e.f.g.h.i.j.k.! l.6     ",
+"          m.n.o.p.q.r.s.t.u.u.v.w.x.y.z.        ",
+"      # m.A.q.p.B.C.D.E.F.G.H.I.J.K.L.M.! i     ",
+"  N.# O.P.Q.R.S.T.U.V.W.X.Y.Z.`. +.+++ at +#+# 6   ",
+"z.$+%+1 &+*+6 1 =+i -+;+k >+..>+,+'+)+!+~+{+]+6 ",
+"^+i j  ./+%+(+_+7.:+<+[+}+|+k 1+2+3+4+5+6+7+8+9+",
+"M.K.<+(+0+a+b+i 6 c+d+e+f+g+h+i+6 j+S.k+l+m+n+6 ",
+"  o+p+}+i  .[+^.i q+ at .i (+r+i (+S.7+S.s+t+u+6   ",
+"    ! #.# v+w+x+ .i y+x+i =+x+ .z+S.A+# # 6     ",
+"          l.3 B+5.C+D+E+>+F+G+|+6 H+6           ",
+"                I+! ! J+4 o+K+! S.]+            "};
+
+
+/* XPM */
+static char * kismet_xpm[] = {
+"36 20 101 2",
+"  	c None",
+". 	c #C7C8EA",
+"+ 	c #C4C5E9",
+"@ 	c #C6C7EA",
+"# 	c #C5C6EA",
+"$ 	c #C3C4E9",
+"% 	c #C8C9EB",
+"& 	c #C9CAEB",
+"* 	c #C4C5EA",
+"= 	c #C7C8EB",
+"- 	c #B8B8E4",
+"; 	c #A1A1DB",
+"> 	c #B8B9E4",
+", 	c #BCBDE6",
+"' 	c #BEBFE7",
+") 	c #BDBEE7",
+"! 	c #413DB3",
+"~ 	c #231FA7",
+"{ 	c #2D2AAB",
+"] 	c #3835B0",
+"^ 	c #4743B6",
+"/ 	c #2A26AA",
+"( 	c #2420A7",
+"_ 	c #2623A9",
+": 	c #8E8ED3",
+"< 	c #B9B9E5",
+"[ 	c #2925AA",
+"} 	c #2420A8",
+"| 	c #7674C9",
+"1 	c #4946B7",
+"2 	c #2320A8",
+"3 	c #4C49B8",
+"4 	c #514EB9",
+"5 	c #504DB9",
+"6 	c #504CB9",
+"7 	c #2825A9",
+"8 	c #4D4AB8",
+"9 	c #322FAD",
+"0 	c #8180CE",
+"a 	c #6361C2",
+"b 	c #2926AA",
+"c 	c #5D5CBF",
+"d 	c #3632AF",
+"e 	c #514DB9",
+"f 	c #231FA8",
+"g 	c #4E4BB9",
+"h 	c #2F2CAC",
+"i 	c #3A37B1",
+"j 	c #413EB3",
+"k 	c #332FAD",
+"l 	c #2521A8",
+"m 	c #4643B5",
+"n 	c #4A47B7",
+"o 	c #9E9EDA",
+"p 	c #B9BAE5",
+"q 	c #2824A9",
+"r 	c #3F3CB3",
+"s 	c #2C28AB",
+"t 	c #6966C3",
+"u 	c #4946B6",
+"v 	c #413EB4",
+"w 	c #2D29AB",
+"x 	c #5856BD",
+"y 	c #2C29AB",
+"z 	c #9B9BD9",
+"A 	c #3D3AB2",
+"B 	c #322EAD",
+"C 	c #3834B0",
+"D 	c #4D49B8",
+"E 	c #514EBA",
+"F 	c #3B38B1",
+"G 	c #7876CA",
+"H 	c #6D6CC6",
+"I 	c #5250BB",
+"J 	c #524FBB",
+"K 	c #2622A8",
+"L 	c #4C48B7",
+"M 	c #3C39B1",
+"N 	c #4542B5",
+"O 	c #4945B6",
+"P 	c #4743B5",
+"Q 	c #4E4BB8",
+"R 	c #8685D0",
+"S 	c #4340B4",
+"T 	c #5D5BBF",
+"U 	c #6765C3",
+"V 	c #5552BB",
+"W 	c #4F4CB9",
+"X 	c #312DAD",
+"Y 	c #4D4BB8",
+"Z 	c #2B27AB",
+"` 	c #615FC1",
+" .	c #4643B6",
+"..	c #716FC7",
+"+.	c #BABBE5",
+"@.	c #A9A9DE",
+"#.	c #B3B3E2",
+"$.	c #BABAE5",
+"%.	c #B8B9E5",
+"&.	c #B7B8E4",
+"*.	c #C9C9EB",
+"                            . . + + @ @                                 ",
+"                        # $ $ $ $ $ $ $ $ +                             ",
+"                    % $ $ $ # . . . @ $ $ $ $ &                         ",
+"                    + $ * = # $ $ $ + . # $ $ @                         ",
+"                      # @ $ $ $ $ $ $ $ # @ *                           ",
+"                      % $ $ $ + . # $ $ $ @                             ",
+"                        - ; > @ $ + , > ' )                             ",
+"! ~   { ]     ^ ~       / ( _ : $ < [ } | 1 2 3     4 ~ ~ 5   6 ~ ~ ~ 7 ",
+"! ~ 1 ~ 8     ^ ~     9 } 0 } a $ < b } c d ~ 8     e f g       h ~ i   ",
+"j } k l       ^ ~     m 2 n o p $ < [ q r s q 8     5 ~ t         ~ u   ",
+"v ~ ~ w       ^ ~       x ( y z = p [ A l B C D     E ~ ~         2 1   ",
+"! ~ F ~       ^ ~       G H } I   p [ J K L M 8     E ~           ~ 1   ",
+"j ~ N ~ O     P ~     Q ~ R [ S     b T B U M 8     5 ~ V         ~ 1   ",
+"! ~ W q X     m ~       h l l Y     Z `  ...i 3     E ~ ~ ~       ~ u   ",
+"                      # +.o @.      #.$.%., &.                          ",
+"                      $ $ $           + $ $ *                           ",
+"                    + $ $ %           *.$ $ $ @                         ",
+"                    % $ $ #           @ $ $ $ &                         ",
+"                        # $ $ # % . # $ $ +                             ",
+"                            . . + + @ @                                 "};
+
+/* XPM */
+static char *geocache_xpm[]={
+"24 24 6 1",
+"  c None",
+"a c #00c000",
+"b c #303030",
+"c c #58a8ff",
+". c #c0c000",
+"d c #ff0000",
+"...........  aaaaaaaaaaa",
+"..........bbbbaaaaaaaaaa",
+"........bb.  abbaaaaaaaa",
+"......bb...  aaabbaaaaaa",
+"......bb...  aaabbaaaaaa",
+"......b.bb.  abbabaaaaaa",
+"......b...bbbbaaabaaaaaa",
+"......b....  aaaabaaaaaa",
+"......b....  aaaabaaaaaa",
+"......b....  aaaabaaaaaa",
+"......b....  aaaabaaaaaa",
+"      b          b      ",
+"      b          b      ",
+"ccccccbcccc  ddddbdddddd",
+"ccccccbcccc  ddddbdddddd",
+"ccccccbcccc  ddddbdddddd",
+"ccccccbcccc  ddddbdddddd",
+"ccccccbcccc  ddddbdddddd",
+"ccccccbcccc  ddddbdddddd",
+"ccccccbbccc  dddbbdddddd",
+"ccccccccbbc  dbbdddddddd",
+"ccccccccccbbbbdddddddddd",
+"ccccccccccc  ddddddddddd",
+"ccccccccccc  ddddddddddd"};

Added: packages/gpsdrive/branches/etch/src/map_koord.txt
===================================================================
--- packages/gpsdrive/branches/etch/src/map_koord.txt	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/map_koord.txt	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,2 @@
+map_europe.gif        47.08 15.45 10000000
+

Added: packages/gpsdrive/branches/etch/src/mysql/CVS/Entries
===================================================================
--- packages/gpsdrive/branches/etch/src/mysql/CVS/Entries	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/mysql/CVS/Entries	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,27 @@
+/Makefile.am~/1.1/Mon Mar 31 11:32:11 2003//
+/chardefs.h/1.1/Mon Mar 31 11:32:11 2003//
+/dbug.h/1.1/Mon Mar 31 11:32:11 2003//
+/errmsg.h/1.1/Mon Mar 31 11:32:11 2003//
+/history.h/1.1/Mon Mar 31 11:32:11 2003//
+/keymaps.h/1.1/Mon Mar 31 11:32:11 2003//
+/m_ctype.h/1.1/Mon Mar 31 11:32:11 2003//
+/m_string.h/1.1/Mon Mar 31 11:32:11 2003//
+/my_config.h/1.1/Mon Mar 31 11:32:11 2003//
+/my_global.h/1.1/Mon Mar 31 11:32:11 2003//
+/my_list.h/1.1/Mon Mar 31 11:32:11 2003//
+/my_net.h/1.1/Mon Mar 31 11:32:11 2003//
+/my_no_pthread.h/1.1/Mon Mar 31 11:32:11 2003//
+/my_pthread.h/1.1/Mon Mar 31 11:32:11 2003//
+/my_sys.h/1.1/Mon Mar 31 11:32:11 2003//
+/mysql.h/1.1/Mon Mar 31 11:32:11 2003//
+/mysql_com.h/1.1/Mon Mar 31 11:32:11 2003//
+/mysql_version.h/1.1/Mon Mar 31 11:32:11 2003//
+/mysqld_error.h/1.1/Mon Mar 31 11:32:11 2003//
+/raid.h/1.1/Mon Mar 31 11:32:11 2003//
+/readline.h/1.1/Mon Mar 31 11:32:11 2003//
+/sslopt-case.h/1.1/Mon Mar 31 11:32:11 2003//
+/sslopt-longopts.h/1.1/Mon Mar 31 11:32:11 2003//
+/sslopt-usage.h/1.1/Mon Mar 31 11:32:11 2003//
+/sslopt-vars.h/1.1/Mon Mar 31 11:32:11 2003//
+/tilde.h/1.1/Mon Mar 31 11:32:11 2003//
+D

Added: packages/gpsdrive/branches/etch/src/mysql/CVS/Repository
===================================================================
--- packages/gpsdrive/branches/etch/src/mysql/CVS/Repository	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/mysql/CVS/Repository	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1 @@
+gpsdrive/src/mysql

Added: packages/gpsdrive/branches/etch/src/mysql/CVS/Root
===================================================================
--- packages/gpsdrive/branches/etch/src/mysql/CVS/Root	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/mysql/CVS/Root	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1 @@
+:pserver:ganter at www.ganter.at:/usr/local/cvsroot

Added: packages/gpsdrive/branches/etch/src/mysql/chardefs.h
===================================================================
--- packages/gpsdrive/branches/etch/src/mysql/chardefs.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/mysql/chardefs.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,142 @@
+/* chardefs.h -- Character definitions for readline. */
+
+/* Copyright (C) 1994 Free Software Foundation, Inc.
+
+   This file is part of the GNU Readline Library, a library for
+   reading lines of text with interactive input and history editing.
+
+   The GNU Readline Library 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 1, or
+   (at your option) any later version.
+
+   The GNU Readline Library is distributed in the hope that it will be
+   useful, but WITHOUT ANY WARRANTY; without even the implied warranty
+   of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   The GNU General Public License is often shipped with GNU software, and
+   is generally kept in a file called COPYING or LICENSE.  If you do not
+   have a copy of the license, write to the Free Software Foundation,
+   675 Mass Ave, Cambridge, MA 02139, USA. */
+
+#ifndef _CHARDEFS_H_
+#define _CHARDEFS_H_
+
+#ifndef _m_ctype_h
+#include <ctype.h>
+#endif
+
+#if defined (HAVE_CONFIG_H)
+#  if defined (HAVE_STRING_H)
+#    include <string.h>
+#  else
+#    include <strings.h>
+#  endif /* HAVE_STRING_H */
+#else
+#  include <string.h>
+#endif /* !HAVE_CONFIG_H */
+
+#ifndef whitespace
+#define whitespace(c) (((c) == ' ') || ((c) == '\t'))
+#endif
+
+#ifdef CTRL
+#undef CTRL
+#endif
+
+/* Some character stuff. */
+#define control_character_threshold 0x020   /* Smaller than this is control. */
+#define control_character_mask 0x1f	    /* 0x20 - 1 */
+#define meta_character_threshold 0x07f	    /* Larger than this is Meta. */
+#define control_character_bit 0x40	    /* 0x000000, must be off. */
+#define meta_character_bit 0x080	    /* x0000000, must be on. */
+#define largest_char 255		    /* Largest character value. */
+
+#define CTRL_CHAR(c) ((c) < control_character_threshold && (c) >= 0)
+#define META_CHAR(c) ((c) > meta_character_threshold && (c) <= largest_char)
+
+#define CTRL(c) ((c) & control_character_mask)
+#define META(c) ((c) | meta_character_bit)
+
+#define UNMETA(c) ((c) & (~meta_character_bit))
+#define UNCTRL(c) _rl_to_upper(((c)|control_character_bit))
+
+/* Old versions
+#define _rl_lowercase_p(c) (((c) > ('a' - 1) && (c) < ('z' + 1)))
+#define _rl_uppercase_p(c) (((c) > ('A' - 1) && (c) < ('Z' + 1)))
+#define _rl_digit_p(c)  ((c) >= '0' && (c) <= '9')
+*/
+
+#define _rl_lowercase_p(c) (islower(c))
+#define _rl_uppercase_p(c) (isupper(c))
+#define _rl_digit_p(x)  (isdigit (x))
+
+#define _rl_pure_alphabetic(c) (_rl_lowercase_p(c) || _rl_uppercase_p(c))
+#define ALPHABETIC(c)	(_rl_lowercase_p(c) || _rl_uppercase_p(c) || _rl_digit_p(c))
+
+/* Old versions
+#  define _rl_to_upper(c) (_rl_lowercase_p(c) ? ((c) - 32) : (c))
+#  define _rl_to_lower(c) (_rl_uppercase_p(c) ? ((c) + 32) : (c))
+*/
+
+#ifndef _rl_to_upper
+#  define _rl_to_upper(c) (islower(c) ? toupper(c) : (c))
+#  define _rl_to_lower(c) (isupper(c) ? tolower(c) : (c))
+#endif
+
+#ifndef _rl_digit_value
+#define _rl_digit_value(x) ((x) - '0')
+#endif
+
+#ifndef NEWLINE
+#define NEWLINE '\n'
+#endif
+
+#ifndef RETURN
+#define RETURN CTRL('M')
+#endif
+
+#ifndef RUBOUT
+#define RUBOUT 0x7f
+#endif
+
+#ifndef TAB
+#define TAB '\t'
+#endif
+
+#ifdef ABORT_CHAR
+#undef ABORT_CHAR
+#endif
+#define ABORT_CHAR CTRL('G')
+
+#ifdef PAGE
+#undef PAGE
+#endif
+#define PAGE CTRL('L')
+
+#ifdef SPACE
+#undef SPACE
+#endif
+#define SPACE ' '	/* XXX - was 0x20 */
+
+#ifdef ESC
+#undef ESC
+#endif
+#define ESC CTRL('[')
+
+#ifndef ISOCTAL
+#define ISOCTAL(c)      ((c) >= '0' && (c) <= '7')
+#endif
+#define OCTVALUE(c)     ((c) - '0')
+
+#ifndef isxdigit
+#  define isxdigit(c)   (isdigit((c)) || ((c) >= 'a' && (c) <= 'f') || ((c) >= 'A' && (c) <= 'F'))
+#endif
+
+#define HEXVALUE(c) \
+  (((c) >= 'a' && (c) <= 'f') \
+  	? (c)-'a'+10 \
+  	: (c) >= 'A' && (c) <= 'F' ? (c)-'A'+10 : (c)-'0')
+
+#endif  /* _CHARDEFS_H_ */

Added: packages/gpsdrive/branches/etch/src/mysql/dbug.h
===================================================================
--- packages/gpsdrive/branches/etch/src/mysql/dbug.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/mysql/dbug.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,94 @@
+/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
+   
+   This library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Library General Public
+   License as published by the Free Software Foundation; either
+   version 2 of the License, or (at your option) any later version.
+   
+   This library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Library General Public License for more details.
+   
+   You should have received a copy of the GNU Library General Public
+   License along with this library; if not, write to the Free
+   Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+   MA 02111-1307, USA */
+
+#ifndef _dbug_h
+#define _dbug_h
+#ifdef	__cplusplus
+extern "C" {
+#endif
+#if !defined(DBUG_OFF) && !defined(_lint)
+extern	int _db_on_,_no_db_;
+extern	FILE *_db_fp_;
+extern	char *_db_process_;
+extern	int _db_keyword_(const char *keyword);
+extern	void _db_setjmp_(void);
+extern	void _db_longjmp_(void);
+extern	void _db_push_(const char *control);
+extern	void _db_pop_(void);
+extern	void _db_enter_(const char *_func_,const char *_file_,uint _line_,
+			const char **_sfunc_,const char **_sfile_,
+			uint *_slevel_, char ***);
+extern	void _db_return_(uint _line_,const char **_sfunc_,const char **_sfile_,
+			 uint *_slevel_);
+extern	void _db_pargs_(uint _line_,const char *keyword);
+extern	void _db_doprnt_ _VARARGS((const char *format,...));
+extern	void _db_dump_(uint _line_,const char *keyword,const char *memory,
+		       uint length);
+extern	void _db_lock_file();
+extern	void _db_unlock_file();
+
+#define DBUG_ENTER(a) const char *_db_func_, *_db_file_; uint _db_level_; \
+	char **_db_framep_; \
+	_db_enter_ (a,__FILE__,__LINE__,&_db_func_,&_db_file_,&_db_level_, \
+		    &_db_framep_)
+#define DBUG_LEAVE \
+	(_db_return_ (__LINE__, &_db_func_, &_db_file_, &_db_level_))
+#define DBUG_RETURN(a1) {DBUG_LEAVE; return(a1);}
+#define DBUG_VOID_RETURN {DBUG_LEAVE; return;}
+#define DBUG_EXECUTE(keyword,a1) \
+	{if (_db_on_) {if (_db_keyword_ (keyword)) { a1 }}}
+#define DBUG_PRINT(keyword,arglist) \
+	{if (_db_on_) {_db_pargs_(__LINE__,keyword); _db_doprnt_ arglist;}}
+#define DBUG_PUSH(a1) _db_push_ (a1)
+#define DBUG_POP() _db_pop_ ()
+#define DBUG_PROCESS(a1) (_db_process_ = a1)
+#define DBUG_FILE (_db_fp_)
+#define DBUG_SETJMP(a1) (_db_setjmp_ (), setjmp (a1))
+#define DBUG_LONGJMP(a1,a2) (_db_longjmp_ (), longjmp (a1, a2))
+#define DBUG_DUMP(keyword,a1,a2)\
+	{if (_db_on_) {_db_dump_(__LINE__,keyword,a1,a2);}}
+#define DBUG_IN_USE (_db_fp_ && _db_fp_ != stderr)
+#define DEBUGGER_OFF _no_db_=1;_db_on_=0;
+#define DEBUGGER_ON  _no_db_=0
+#define DBUG_LOCK_FILE { _db_lock_file(); }
+#define DBUG_UNLOCK_FILE { _db_unlock_file(); }
+#define DBUG_ASSERT(A) assert(A)
+#else						/* No debugger */
+
+#define DBUG_ENTER(a1)
+#define DBUG_RETURN(a1) return(a1)
+#define DBUG_VOID_RETURN return
+#define DBUG_EXECUTE(keyword,a1) {}
+#define DBUG_PRINT(keyword,arglist) {}
+#define DBUG_PUSH(a1) {}
+#define DBUG_POP() {}
+#define DBUG_PROCESS(a1) {}
+#define DBUG_FILE (stderr)
+#define DBUG_SETJMP setjmp
+#define DBUG_LONGJMP longjmp
+#define DBUG_DUMP(keyword,a1,a2) {}
+#define DBUG_IN_USE 0
+#define DEBUGGER_OFF
+#define DEBUGGER_ON
+#define DBUG_LOCK_FILE
+#define DBUG_UNLOCK_FILE
+#define DBUG_ASSERT(A) {}
+#endif
+#ifdef	__cplusplus
+}
+#endif
+#endif

Added: packages/gpsdrive/branches/etch/src/mysql/errmsg.h
===================================================================
--- packages/gpsdrive/branches/etch/src/mysql/errmsg.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/mysql/errmsg.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,59 @@
+/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
+   
+   This library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Library General Public
+   License as published by the Free Software Foundation; either
+   version 2 of the License, or (at your option) any later version.
+   
+   This library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Library General Public License for more details.
+   
+   You should have received a copy of the GNU Library General Public
+   License along with this library; if not, write to the Free
+   Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+   MA 02111-1307, USA */
+
+/* Error messages for mysql clients */
+/* error messages for the demon is in share/language/errmsg.sys */
+
+#ifdef	__cplusplus
+extern "C" {
+#endif
+void	init_client_errs(void);
+extern const char *client_errors[];	/* Error messages */
+#ifdef	__cplusplus
+}
+#endif
+
+#define CR_MIN_ERROR		2000	/* For easier client code */
+#define CR_MAX_ERROR		2999
+#if defined(OS2) && defined( MYSQL_SERVER)
+#define CER(X) client_errors[(X)-CR_MIN_ERROR]
+#else
+#define ER(X) client_errors[(X)-CR_MIN_ERROR]
+#endif
+#define CLIENT_ERRMAP		2	/* Errormap used by my_error() */
+
+#define CR_UNKNOWN_ERROR	2000
+#define CR_SOCKET_CREATE_ERROR	2001
+#define CR_CONNECTION_ERROR	2002
+#define CR_CONN_HOST_ERROR	2003
+#define CR_IPSOCK_ERROR		2004
+#define CR_UNKNOWN_HOST		2005
+#define CR_SERVER_GONE_ERROR	2006
+#define CR_VERSION_ERROR	2007
+#define CR_OUT_OF_MEMORY	2008
+#define CR_WRONG_HOST_INFO	2009
+#define CR_LOCALHOST_CONNECTION 2010
+#define CR_TCP_CONNECTION	2011
+#define CR_SERVER_HANDSHAKE_ERR 2012
+#define CR_SERVER_LOST		2013
+#define CR_COMMANDS_OUT_OF_SYNC 2014
+#define CR_NAMEDPIPE_CONNECTION 2015
+#define CR_NAMEDPIPEWAIT_ERROR 2016
+#define CR_NAMEDPIPEOPEN_ERROR 2017
+#define CR_NAMEDPIPESETSTATE_ERROR 2018
+#define CR_CANT_READ_CHARSET	2019
+#define CR_NET_PACKET_TOO_LARGE 2020

Added: packages/gpsdrive/branches/etch/src/mysql/history.h
===================================================================
--- packages/gpsdrive/branches/etch/src/mysql/history.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/mysql/history.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,248 @@
+/* History.h -- the names of functions that you can call in history. */
+/* Copyright (C) 1989, 1992 Free Software Foundation, Inc.
+
+   This file contains the GNU History Library (the Library), a set of
+   routines for managing the text of previously typed lines.
+
+   The Library 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 1, or (at your option)
+   any later version.
+
+   The Library is distributed in the hope that it will be useful, but
+   WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   General Public License for more details.
+
+   The GNU General Public License is often shipped with GNU software, and
+   is generally kept in a file called COPYING or LICENSE.  If you do not
+   have a copy of the license, write to the Free Software Foundation,
+   675 Mass Ave, Cambridge, MA 02139, USA. */
+
+#ifndef _HISTORY_H_
+#define _HISTORY_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#if defined READLINE_LIBRARY
+#  include "rlstdc.h"
+#else
+#  include <readline/rlstdc.h>
+#endif
+
+#if !defined (_FUNCTION_DEF)
+#  define _FUNCTION_DEF
+typedef int Function ();
+typedef void VFunction ();
+typedef char *CPFunction ();
+typedef char **CPPFunction ();
+#endif
+
+#ifdef __STDC__
+typedef void *histdata_t;
+#else
+typedef char *histdata_t;
+#endif
+
+/* The structure used to store a history entry. */
+typedef struct _hist_entry {
+  char *line;
+  histdata_t data;
+} HIST_ENTRY;
+
+/* A structure used to pass the current state of the history stuff around. */
+typedef struct _hist_state {
+  HIST_ENTRY **entries;		/* Pointer to the entries themselves. */
+  int offset;			/* The location pointer within this array. */
+  int length;			/* Number of elements within this array. */
+  int size;			/* Number of slots allocated to this array. */
+  int flags;
+} HISTORY_STATE;
+
+/* Flag values for the `flags' member of HISTORY_STATE. */
+#define HS_STIFLED	0x01
+
+/* Initialization and state management. */
+
+/* Begin a session in which the history functions might be used.  This
+   just initializes the interactive variables. */
+extern void using_history __P((void));
+
+/* Return the current HISTORY_STATE of the history. */
+extern HISTORY_STATE *history_get_history_state __P((void));
+
+/* Set the state of the current history array to STATE. */
+extern void history_set_history_state __P((HISTORY_STATE *));
+
+/* Manage the history list. */
+
+/* Place STRING at the end of the history list.
+   The associated data field (if any) is set to NULL. */
+extern void add_history __P((char *));
+
+/* A reasonably useless function, only here for completeness.  WHICH
+   is the magic number that tells us which element to delete.  The
+   elements are numbered from 0. */
+extern HIST_ENTRY *remove_history __P((int));
+
+/* Make the history entry at WHICH have LINE and DATA.  This returns
+   the old entry so you can dispose of the data.  In the case of an
+   invalid WHICH, a NULL pointer is returned. */
+extern HIST_ENTRY *replace_history_entry __P((int, char *, histdata_t));
+
+/* Clear the history list and start over. */
+extern void clear_history __P((void));
+
+/* Stifle the history list, remembering only MAX number of entries. */
+extern void stifle_history __P((int));
+
+/* Stop stifling the history.  This returns the previous amount the
+   history was stifled by.  The value is positive if the history was
+   stifled, negative if it wasn't. */
+extern int unstifle_history __P((void));
+
+/* Return 1 if the history is stifled, 0 if it is not. */
+extern int history_is_stifled __P((void));
+
+/* Information about the history list. */
+
+/* Return a NULL terminated array of HIST_ENTRY which is the current input
+   history.  Element 0 of this list is the beginning of time.  If there
+   is no history, return NULL. */
+extern HIST_ENTRY **history_list __P((void));
+
+/* Returns the number which says what history element we are now
+   looking at.  */
+extern int where_history __P((void));
+  
+/* Return the history entry at the current position, as determined by
+   history_offset.  If there is no entry there, return a NULL pointer. */
+HIST_ENTRY *current_history __P((void));
+
+/* Return the history entry which is logically at OFFSET in the history
+   array.  OFFSET is relative to history_base. */
+extern HIST_ENTRY *history_get __P((int));
+
+/* Return the number of bytes that the primary history entries are using.
+   This just adds up the lengths of the_history->lines. */
+extern int history_total_bytes __P((void));
+
+/* Moving around the history list. */
+
+/* Set the position in the history list to POS. */
+int history_set_pos __P((int));
+
+/* Back up history_offset to the previous history entry, and return
+   a pointer to that entry.  If there is no previous entry, return
+   a NULL pointer. */
+extern HIST_ENTRY *previous_history __P((void));
+
+/* Move history_offset forward to the next item in the input_history,
+   and return the a pointer to that entry.  If there is no next entry,
+   return a NULL pointer. */
+extern HIST_ENTRY *next_history __P((void));
+
+/* Searching the history list. */
+
+/* Search the history for STRING, starting at history_offset.
+   If DIRECTION < 0, then the search is through previous entries,
+   else through subsequent.  If the string is found, then
+   current_history () is the history entry, and the value of this function
+   is the offset in the line of that history entry that the string was
+   found in.  Otherwise, nothing is changed, and a -1 is returned. */
+extern int history_search __P((char *, int));
+
+/* Search the history for STRING, starting at history_offset.
+   The search is anchored: matching lines must begin with string.
+   DIRECTION is as in history_search(). */
+extern int history_search_prefix __P((char *, int));
+
+/* Search for STRING in the history list, starting at POS, an
+   absolute index into the list.  DIR, if negative, says to search
+   backwards from POS, else forwards.
+   Returns the absolute index of the history element where STRING
+   was found, or -1 otherwise. */
+extern int history_search_pos __P((char *, int, int));
+
+/* Managing the history file. */
+
+/* Add the contents of FILENAME to the history list, a line at a time.
+   If FILENAME is NULL, then read from ~/.history.  Returns 0 if
+   successful, or errno if not. */
+extern int read_history __P((char *));
+
+/* Read a range of lines from FILENAME, adding them to the history list.
+   Start reading at the FROM'th line and end at the TO'th.  If FROM
+   is zero, start at the beginning.  If TO is less than FROM, read
+   until the end of the file.  If FILENAME is NULL, then read from
+   ~/.history.  Returns 0 if successful, or errno if not. */
+extern int read_history_range __P((char *, int, int));
+
+/* Write the current history to FILENAME.  If FILENAME is NULL,
+   then write the history list to ~/.history.  Values returned
+   are as in read_history ().  */
+extern int write_history __P((char *));
+
+/* Append NELEMENT entries to FILENAME.  The entries appended are from
+   the end of the list minus NELEMENTs up to the end of the list. */
+int append_history __P((int, char *));
+
+/* Truncate the history file, leaving only the last NLINES lines. */
+extern int history_truncate_file __P((char *, int));
+
+/* History expansion. */
+
+/* Expand the string STRING, placing the result into OUTPUT, a pointer
+   to a string.  Returns:
+
+   0) If no expansions took place (or, if the only change in
+      the text was the de-slashifying of the history expansion
+      character)
+   1) If expansions did take place
+  -1) If there was an error in expansion.
+   2) If the returned line should just be printed.
+
+  If an error ocurred in expansion, then OUTPUT contains a descriptive
+  error message. */
+extern int history_expand __P((char *, char **));
+
+/* Extract a string segment consisting of the FIRST through LAST
+   arguments present in STRING.  Arguments are broken up as in
+   the shell. */
+extern char *history_arg_extract __P((int, int, char *));
+
+/* Return the text of the history event beginning at the current
+   offset into STRING.  Pass STRING with *INDEX equal to the
+   history_expansion_char that begins this specification.
+   DELIMITING_QUOTE is a character that is allowed to end the string
+   specification for what to search for in addition to the normal
+   characters `:', ` ', `\t', `\n', and sometimes `?'. */
+extern char *get_history_event __P((char *, int *, int));
+
+/* Return an array of tokens, much as the shell might.  The tokens are
+   parsed out of STRING. */
+extern char **history_tokenize __P((char *));
+
+/* Exported history variables. */
+extern int history_base;
+extern int history_length;
+extern int max_input_history;
+extern char history_expansion_char;
+extern char history_subst_char;
+extern char history_comment_char;
+extern char *history_no_expand_chars;
+extern char *history_search_delimiter_chars;
+extern int history_quotes_inhibit_expansion;
+
+/* If set, this function is called to decide whether or not a particular
+   history expansion should be treated as a special case for the calling
+   application and not expanded. */
+extern Function *history_inhibit_expansion_function;
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* !_HISTORY_H_ */

Added: packages/gpsdrive/branches/etch/src/mysql/keymaps.h
===================================================================
--- packages/gpsdrive/branches/etch/src/mysql/keymaps.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/mysql/keymaps.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,100 @@
+/* keymaps.h -- Manipulation of readline keymaps. */
+
+/* Copyright (C) 1987, 1989, 1992 Free Software Foundation, Inc.
+
+   This file is part of the GNU Readline Library, a library for
+   reading lines of text with interactive input and history editing.
+
+   The GNU Readline Library 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 1, or
+   (at your option) any later version.
+
+   The GNU Readline Library is distributed in the hope that it will be
+   useful, but WITHOUT ANY WARRANTY; without even the implied warranty
+   of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   The GNU General Public License is often shipped with GNU software, and
+   is generally kept in a file called COPYING or LICENSE.  If you do not
+   have a copy of the license, write to the Free Software Foundation,
+   675 Mass Ave, Cambridge, MA 02139, USA. */
+
+#ifndef _KEYMAPS_H_
+#define _KEYMAPS_H_
+
+#if defined (READLINE_LIBRARY)
+#  include "rlstdc.h"
+#  include "chardefs.h"
+#else
+#  include <readline/rlstdc.h>
+#  include <readline/chardefs.h>
+#endif
+
+#if !defined (_FUNCTION_DEF)
+#  define _FUNCTION_DEF
+typedef int Function ();
+typedef void VFunction ();
+typedef char *CPFunction ();
+typedef char **CPPFunction ();
+#endif
+
+/* A keymap contains one entry for each key in the ASCII set.
+   Each entry consists of a type and a pointer.
+   FUNCTION is the address of a function to run, or the
+   address of a keymap to indirect through.
+   TYPE says which kind of thing FUNCTION is. */
+typedef struct _keymap_entry {
+  char type;
+  Function *function;
+} KEYMAP_ENTRY;
+
+/* This must be large enough to hold bindings for all of the characters
+   in a desired character set (e.g, 128 for ASCII, 256 for ISO Latin-x,
+   and so on). */
+#define KEYMAP_SIZE 256
+
+/* I wanted to make the above structure contain a union of:
+   union { Function *function; struct _keymap_entry *keymap; } value;
+   but this made it impossible for me to create a static array.
+   Maybe I need C lessons. */
+
+typedef KEYMAP_ENTRY KEYMAP_ENTRY_ARRAY[KEYMAP_SIZE];
+typedef KEYMAP_ENTRY *Keymap;
+
+/* The values that TYPE can have in a keymap entry. */
+#define ISFUNC 0
+#define ISKMAP 1
+#define ISMACR 2
+
+extern KEYMAP_ENTRY_ARRAY emacs_standard_keymap, emacs_meta_keymap, emacs_ctlx_keymap;
+extern KEYMAP_ENTRY_ARRAY vi_insertion_keymap, vi_movement_keymap;
+
+/* Return a new, empty keymap.
+   Free it with free() when you are done. */
+extern Keymap rl_make_bare_keymap __P((void));
+
+/* Return a new keymap which is a copy of MAP. */
+extern Keymap rl_copy_keymap __P((Keymap));
+
+/* Return a new keymap with the printing characters bound to rl_insert,
+   the lowercase Meta characters bound to run their equivalents, and
+   the Meta digits bound to produce numeric arguments. */
+extern Keymap rl_make_keymap __P((void));
+
+/* Free the storage associated with a keymap. */
+extern void rl_discard_keymap __P((Keymap));
+
+/* These functions actually appear in bind.c */
+
+/* Return the keymap corresponding to a given name.  Names look like
+   `emacs' or `emacs-meta' or `vi-insert'.  */
+extern Keymap rl_get_keymap_by_name __P((char *));
+
+/* Return the current keymap. */
+extern Keymap rl_get_keymap __P((void));
+
+/* Set the current keymap to MAP. */
+extern void rl_set_keymap __P((Keymap));
+
+#endif /* _KEYMAPS_H_ */

Added: packages/gpsdrive/branches/etch/src/mysql/m_ctype.h
===================================================================
--- packages/gpsdrive/branches/etch/src/mysql/m_ctype.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/mysql/m_ctype.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,158 @@
+/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
+   
+   This library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Library General Public
+   License as published by the Free Software Foundation; either
+   version 2 of the License, or (at your option) any later version.
+   
+   This library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Library General Public License for more details.
+   
+   You should have received a copy of the GNU Library General Public
+   License along with this library; if not, write to the Free
+   Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+   MA 02111-1307, USA */
+
+/*
+  A better inplementation of the UNIX ctype(3) library.
+  Notes:   global.h should be included before ctype.h
+*/
+
+#ifndef _m_ctype_h
+#define _m_ctype_h
+
+#ifdef	__cplusplus
+extern "C" {
+#endif
+
+#define CHARSET_DIR	"charsets/"
+
+typedef struct charset_info_st
+{
+    uint      number;
+    const char *name;
+    uchar    *ctype;
+    uchar    *to_lower;
+    uchar    *to_upper;
+    uchar    *sort_order;
+
+    uint      strxfrm_multiply;
+    int     (*strcoll)(const uchar *, const uchar *);
+    int     (*strxfrm)(uchar *, const uchar *, int);
+    int     (*strnncoll)(const uchar *, int, const uchar *, int);
+    int     (*strnxfrm)(uchar *, const uchar *, int, int);
+    my_bool (*like_range)(const char *, uint, pchar, uint,
+                          char *, char *, uint *, uint *);
+
+    uint      mbmaxlen;
+    int     (*ismbchar)(const char *, const char *);
+    my_bool (*ismbhead)(uint);
+    int     (*mbcharlen)(uint);
+} CHARSET_INFO;
+
+/* strings/ctype.c */
+extern CHARSET_INFO *default_charset_info;
+extern CHARSET_INFO *find_compiled_charset(uint cs_number);
+extern CHARSET_INFO *find_compiled_charset_by_name(const char *name);
+extern CHARSET_INFO  compiled_charsets[];
+
+#define MY_CHARSET_UNDEFINED 0
+#define MY_CHARSET_CURRENT (default_charset_info->number)
+
+#ifdef __WIN__
+#include <ctype.h>
+#endif
+/* Don't include std ctype.h when this is included */
+#define _CTYPE_H
+#define _CTYPE_H_
+#define _CTYPE_INCLUDED
+#define __CTYPE_INCLUDED
+#define _CTYPE_USING   /* Don't put names in global namespace. */
+
+#define	_U	01	/* Upper case */
+#define	_L	02	/* Lower case */
+#define	_N	04	/* Numeral (digit) */
+#define	_S	010	/* Spacing character */
+#define	_P	020	/* Punctuation */
+#define	_C	040	/* Control character */
+#define	_B	0100	/* Blank */
+#define	_X	0200	/* heXadecimal digit */
+
+#define my_ctype	(default_charset_info->ctype)
+#define my_to_upper	(default_charset_info->to_upper)
+#define my_to_lower	(default_charset_info->to_lower)
+#define my_sort_order	(default_charset_info->sort_order)
+
+#ifndef __WIN__
+#define	_toupper(c)	(char) my_to_upper[(uchar) (c)]
+#define	_tolower(c)	(char) my_to_lower[(uchar) (c)]
+#define toupper(c)	(char) my_to_upper[(uchar) (c)]
+#define tolower(c)	(char) my_to_lower[(uchar) (c)]
+
+#define	isalpha(c)	((my_ctype+1)[(uchar) (c)] & (_U | _L))
+#define	isupper(c)	((my_ctype+1)[(uchar) (c)] & _U)
+#define	islower(c)	((my_ctype+1)[(uchar) (c)] & _L)
+#define	isdigit(c)	((my_ctype+1)[(uchar) (c)] & _N)
+#define	isxdigit(c)	((my_ctype+1)[(uchar) (c)] & _X)
+#define	isalnum(c)	((my_ctype+1)[(uchar) (c)] & (_U | _L | _N))
+#define	isspace(c)	((my_ctype+1)[(uchar) (c)] & _S)
+#define	ispunct(c)	((my_ctype+1)[(uchar) (c)] & _P)
+#define	isprint(c)	((my_ctype+1)[(uchar) (c)] & (_P | _U | _L | _N | _B))
+#define	isgraph(c)	((my_ctype+1)[(uchar) (c)] & (_P | _U | _L | _N))
+#define	iscntrl(c)	((my_ctype+1)[(uchar) (c)] & _C)
+#define	isascii(c)	(!((c) & ~0177))
+#define	toascii(c)	((c) & 0177)
+
+#ifdef ctype
+#undef ctype
+#endif /* ctype */
+
+#endif	/* __WIN__ */
+
+#define	my_isalpha(s, c)  (((s)->ctype+1)[(uchar) (c)] & (_U | _L))
+#define	my_isupper(s, c)  (((s)->ctype+1)[(uchar) (c)] & _U)
+#define	my_islower(s, c)  (((s)->ctype+1)[(uchar) (c)] & _L)
+#define	my_isdigit(s, c)  (((s)->ctype+1)[(uchar) (c)] & _N)
+#define	my_isxdigit(s, c) (((s)->ctype+1)[(uchar) (c)] & _X)
+#define	my_isalnum(s, c)  (((s)->ctype+1)[(uchar) (c)] & (_U | _L | _N))
+#define	my_isspace(s, c)  (((s)->ctype+1)[(uchar) (c)] & _S)
+#define	my_ispunct(s, c)  (((s)->ctype+1)[(uchar) (c)] & _P)
+#define	my_isprint(s, c)  (((s)->ctype+1)[(uchar) (c)] & (_P | _U | _L | _N | _B))
+#define	my_isgraph(s, c)  (((s)->ctype+1)[(uchar) (c)] & (_P | _U | _L | _N))
+#define	my_iscntrl(s, c)  (((s)->ctype+1)[(uchar) (c)] & _C)
+
+#define use_strcoll(s)                ((s)->strcoll != NULL)
+#define MY_STRXFRM_MULTIPLY           (default_charset_info->strxfrm_multiply)
+#define my_strnxfrm(s, a, b, c, d)    ((s)->strnxfrm((a), (b), (c), (d)))
+#define my_strnncoll(s, a, b, c, d)   ((s)->strnncoll((a), (b), (c), (d)))
+#define my_strxfrm(s, a, b, c, d)     ((s)->strnxfrm((a), (b), (c)))
+#define my_strcoll(s, a, b)           ((s)->strcoll((a), (b)))
+#define my_like_range(s, a, b, c, d, e, f, g, h) \
+                ((s)->like_range((a), (b), (c), (d), (e), (f), (g), (h)))
+
+#define use_mb(s)                     ((s)->ismbchar != NULL)
+#define MBMAXLEN                      (default_charset_info->mbmaxlen)
+#define my_ismbchar(s, a, b)          ((s)->ismbchar((a), (b)))
+#define my_ismbhead(s, a)             ((s)->ismbhead((a)))
+#define my_mbcharlen(s, a)            ((s)->mbcharlen((a)))
+
+/* Some macros that should be cleaned up a little */
+#define isvar(c)	(isalnum(c) || (c) == '_')
+#define isvar_start(c)	(isalpha(c) || (c) == '_')
+#define tocntrl(c)	((c) & 31)
+#define toprint(c)	((c) | 64)
+
+/* XXX: still need to take care of this one */
+#ifdef MY_CHARSET_TIS620
+#error The TIS620 charset is broken at the moment.  Tell tim to fix it.
+#define USE_TIS620
+#include "t_ctype.h"
+#endif
+
+#ifdef	__cplusplus
+}
+#endif
+
+#endif /* _m_ctype_h */

Added: packages/gpsdrive/branches/etch/src/mysql/m_string.h
===================================================================
--- packages/gpsdrive/branches/etch/src/mysql/m_string.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/mysql/m_string.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,244 @@
+/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
+   
+   This library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Library General Public
+   License as published by the Free Software Foundation; either
+   version 2 of the License, or (at your option) any later version.
+   
+   This library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Library General Public License for more details.
+   
+   You should have received a copy of the GNU Library General Public
+   License along with this library; if not, write to the Free
+   Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+   MA 02111-1307, USA */
+
+/* There may be prolems include all of theese. Try to test in
+   configure with ones are needed? */
+
+/*  This is needed for the definitions of strchr... on solaris */
+
+#ifndef _m_string_h
+#define _m_string_h
+#ifndef __USE_GNU
+#define __USE_GNU				/* We want to use stpcpy */
+#endif
+#if defined(HAVE_STRINGS_H)
+#include <strings.h>
+#endif
+#if defined(HAVE_STRING_H)
+#include <string.h>
+#endif
+
+/* Correct some things for UNIXWARE7 */
+#ifdef HAVE_UNIXWARE7_THREADS
+#undef HAVE_STRINGS_H
+#undef HAVE_MEMORY_H
+#define HAVE_MEMCPY
+#ifndef HAVE_MEMMOVE
+#define HAVE_MEMMOVE
+#endif
+#undef HAVE_BCMP
+#undef bcopy
+#undef bcmp
+#undef bzero
+#endif /* HAVE_UNIXWARE7_THREADS */
+#ifdef _AIX
+#undef HAVE_BCMP
+#endif
+
+/*  This is needed for the definitions of bzero... on solaris */
+#if defined(HAVE_STRINGS_H) && !defined(HAVE_mit_thread)
+#include <strings.h>
+#endif
+
+/*  This is needed for the definitions of memcpy... on solaris */
+#if defined(HAVE_MEMORY_H) && !defined(__cplusplus)
+#include <memory.h>
+#endif
+
+#if !defined(HAVE_MEMCPY) && !defined(HAVE_MEMMOVE)
+# define memcpy(d, s, n)	bcopy ((s), (d), (n))
+# define memset(A,C,B)		bfill((A),(B),(C))
+# define memmove(d, s, n)	bmove ((d), (s), (n))
+#elif defined(HAVE_MEMMOVE)
+# define bmove(d, s, n)		memmove((d), (s), (n))
+#else
+# define memmove(d, s, n)	bmove((d), (s), (n)) /* our bmove */
+#endif
+
+/* Unixware 7 */
+#if !defined(HAVE_BFILL)
+# define bfill(A,B,C)           memset((A),(C),(B))
+# define bmove_allign(A,B,C)    memcpy((A),(B),(C))
+#endif
+
+#if !defined(HAVE_BCMP)
+# define bcopy(s, d, n)		memcpy((d), (s), (n))
+# define bcmp(A,B,C)		memcmp((A),(B),(C))
+# define bzero(A,B)		memset((A),0,(B))
+# define bmove_allign(A,B,C)    memcpy((A),(B),(C))
+#endif
+
+#if defined(__cplusplus) && !defined(OS2)
+extern "C" {
+#endif
+
+#if defined(HAVE_STPCPY) && !defined(HAVE_mit_thread)
+#define strmov(A,B) stpcpy((A),(B))
+#ifndef stpcpy
+extern char *stpcpy(char *, const char *);	/* For AIX with gcc 2.95.3 */
+#endif
+#endif
+
+extern char NEAR _dig_vec[];		/* Declared in int2str() */
+
+#ifdef BAD_STRING_COMPILER
+#define strmov(A,B)  (memccpy(A,B,0,INT_MAX)-1)
+#else
+#define strmov_overlapp(A,B) strmov(A,B)
+#define strmake_overlapp(A,B,C) strmake(A,B,C)
+#endif
+
+#ifdef BAD_MEMCPY			/* Problem with gcc on Alpha */
+#define memcpy_fixed(A,B,C) bmove((A),(B),(C))
+#else
+#define memcpy_fixed(A,B,C) memcpy((A),(B),(C))
+#endif
+
+#ifdef MSDOS
+#undef bmove_allign
+#define bmove512(A,B,C) bmove_allign(A,B,C)
+#define my_itoa(A,B,C) itoa(A,B,C)
+#define my_ltoa(A,B,C) ltoa(A,B,C)
+extern	void bmove_allign(gptr dst,const gptr src,uint len);
+#endif
+
+#if (!defined(USE_BMOVE512) || defined(HAVE_purify)) && !defined(bmove512)
+#define bmove512(A,B,C) memcpy(A,B,C)
+#endif
+
+	/* Prototypes for string functions */
+
+#if !defined(bfill) && !defined(HAVE_BFILL)
+extern	void bfill(gptr dst,uint len,pchar fill);
+#endif
+
+#if !defined(bzero) && !defined(HAVE_BZERO)
+extern	void bzero(gptr dst,uint len);
+#endif
+
+#if !defined(bcmp) && !defined(HAVE_BCMP)
+extern	int bcmp(const char *s1,const char *s2,uint len);
+#ifdef HAVE_purify
+extern	int my_bcmp(const char *s1,const char *s2,uint len);
+#define bcmp(A,B,C) my_bcmp((A),(B),(C))
+#endif
+#endif
+
+#ifndef bmove512
+extern	void bmove512(gptr dst,const gptr src,uint len);
+#endif
+
+#if !defined(HAVE_BMOVE) && !defined(bmove)
+extern	void bmove(char *dst, const char *src,uint len);
+#endif
+
+extern	void bmove_upp(char *dst,const char *src,uint len);
+extern	void bchange(char *dst,uint old_len,const char *src,
+		     uint new_len,uint tot_len);
+extern	void strappend(char *s,uint len,pchar fill);
+extern	char *strend(const char *s);
+extern  char *strcend(const char *, pchar);
+extern	char *strfield(char *src,int fields,int chars,int blanks,
+			   int tabch);
+extern	char *strfill(my_string s,uint len,pchar fill);
+extern	uint strinstr(const char *str,const char *search);
+extern  uint r_strinstr(reg1 my_string str,int from, reg4 my_string search);
+extern	char *strkey(char *dst,char *head,char *tail,char *flags);
+extern	char *strmake(char *dst,const char *src,uint length);
+#ifndef strmake_overlapp
+extern	char *strmake_overlapp(char *dst,const char *src, uint length);
+#endif
+
+#ifndef strmov
+extern	char *strmov(char *dst,const char *src);
+#endif
+extern	char *strnmov(char *dst,const char *src,uint n);
+extern	char *strsuff(const char *src,const char *suffix);
+extern	char *strcont(const char *src,const char *set);
+extern	char *strxcat _VARARGS((char *dst,const char *src, ...));
+extern	char *strxmov _VARARGS((char *dst,const char *src, ...));
+extern	char *strxcpy _VARARGS((char *dst,const char *src, ...));
+extern	char *strxncat _VARARGS((char *dst,uint len, const char *src, ...));
+extern	char *strxnmov _VARARGS((char *dst,uint len, const char *src, ...));
+extern	char *strxncpy _VARARGS((char *dst,uint len, const char *src, ...));
+
+/* Prototypes of normal stringfunctions (with may ours) */
+
+#ifdef WANT_STRING_PROTOTYPES
+extern char *strcat(char *, const char *);
+extern char *strchr(const char *, pchar);
+extern char *strrchr(const char *, pchar);
+extern char *strcpy(char *, const char *);
+extern int strcmp(const char *, const char *);
+#ifndef __GNUC__
+extern size_t strlen(const char *);
+#endif
+#endif
+#ifndef HAVE_STRNLEN 
+extern uint strnlen(const char *s, uint n);
+#endif
+
+#if !defined(__cplusplus)
+#ifndef HAVE_STRPBRK
+extern char *strpbrk(const char *, const char *);
+#endif
+#ifndef HAVE_STRSTR
+extern char *strstr(const char *, const char *);
+#endif
+#endif
+extern int is_prefix(const char *, const char *);
+
+/* Conversion rutins */
+
+#ifdef USE_MY_ITOA
+extern char *my_itoa(int val,char *dst,int radix);
+extern char *my_ltoa(long val,char *dst,int radix);
+#endif
+
+extern char *llstr(longlong value,char *buff);
+#ifndef HAVE_STRTOUL
+extern long strtol(const char *str, char **ptr, int base);
+extern ulong strtoul(const char *str, char **ptr, int base);
+#endif
+
+extern char *int2str(long val,char *dst,int radix);
+extern char *int10_to_str(long val,char *dst,int radix);
+extern char *str2int(const char *src,int radix,long lower,long upper,
+			 long *val);
+#if SIZEOF_LONG == SIZEOF_LONG_LONG
+#define longlong2str(A,B,C) int2str((A),(B),(C))
+#define longlong10_to_str(A,B,C) int10_to_str((A),(B),(C))
+#define strtoll(A,B,C) strtol((A),(B),(C))
+#define strtoull(A,B,C) strtoul((A),(B),(C))
+#ifndef HAVE_STRTOULL
+#define HAVE_STRTOULL
+#endif
+#else
+#ifdef HAVE_LONG_LONG
+extern char *longlong2str(longlong val,char *dst,int radix);
+extern char *longlong10_to_str(longlong val,char *dst,int radix);
+#if (!defined(HAVE_STRTOULL) || defined(HAVE_mit_thread)) || defined(NO_STRTOLL_PROTO)
+extern longlong strtoll(const char *str, char **ptr, int base);
+extern ulonglong strtoull(const char *str, char **ptr, int base);
+#endif
+#endif
+#endif
+
+#if defined(__cplusplus) && !defined(OS2)
+}
+#endif
+#endif

Added: packages/gpsdrive/branches/etch/src/mysql/my_config.h
===================================================================
--- packages/gpsdrive/branches/etch/src/mysql/my_config.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/mysql/my_config.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,810 @@
+/* config.h.  Generated by configure.  */
+/* config.h.in.  Generated automatically from configure.in by autoheader.  */
+/* acconfig.h
+   This file is in the public domain.
+
+   Descriptive text for the C preprocessor macros that
+   the distributed Autoconf macros can define.
+   No software package will use all of them; autoheader copies the ones
+   your configure.in uses into your configuration header file templates.
+
+   The entries are in sort -df order: alphabetical, case insensitive,
+   ignoring punctuation (such as underscores).  Although this order
+   can split up related entries, it makes it easier to check whether
+   a given entry is in the file.
+
+   Leave the following blank line there!!  Autoheader needs it.  */
+
+
+/* #undef C_ALLOCA */
+
+/* #undef CRAY_STACKSEG_END */
+
+/* Version of .frm files */
+#define DOT_FRM_VERSION 6
+
+/* If LOAD DATA LOCAL INFILE should be enabled by default */
+/* #undef ENABLED_LOCAL_INFILE */
+
+/* READLINE: */
+#define FIONREAD_IN_SYS_IOCTL 1
+
+/* READLINE: Define if your system defines TIOCGWINSZ in sys/ioctl.h.  */
+#define GWINSZ_IN_SYS_IOCTL 1
+
+/* Handing of large files on Solaris 2.6 */
+#define _FILE_OFFSET_BITS 64
+
+/* Do we have FIONREAD */
+#define FIONREAD_IN_SYS_IOCTL 1
+
+/* Do we need to define _GNU_SOURCE */
+/* #undef _GNU_SOURCE */
+
+/* atomic_add() from <asm/atomic.h> (Linux only) */
+#define HAVE_ATOMIC_ADD 1
+
+/* atomic_sub() from <asm/atomic.h> (Linux only) */
+#define HAVE_ATOMIC_SUB 1
+
+/* If we have a working alloca() implementation */
+#define HAVE_ALLOCA 1
+
+/* bool is not defined by all C++ compilators */
+#define HAVE_BOOL 1
+
+/* Have berkeley db installed */
+/* #undef HAVE_BERKELEY_DB */
+
+/* DSB style signals ? */
+/* #undef HAVE_BSD_SIGNALS */
+
+/* Can netinet be included */
+/* #undef HAVE_BROKEN_NETINET_INCLUDES */
+
+/* READLINE: */
+/* #undef HAVE_BSD_SIGNALS */
+
+/* ZLIB and compress: */
+#define HAVE_COMPRESS 1
+
+/* Define if we are using OSF1 DEC threads */
+/* #undef HAVE_DEC_THREADS */
+
+/* Define if we are using OSF1 DEC threads on 3.2 */
+/* #undef HAVE_DEC_3_2_THREADS */
+
+/* fp_except from ieeefp.h */
+/* #undef HAVE_FP_EXCEPT */
+
+/* READLINE: */
+/* #undef HAVE_GETPW_DECLS */
+
+/* Solaris define gethostbyname_r with 5 arguments. glibc2 defines
+   this with 6 arguments */
+#define HAVE_GETHOSTBYNAME_R_GLIBC2_STYLE 1
+
+/* In OSF 4.0f the 3'd argument to gethostname_r is hostent_data * */
+/* #undef HAVE_GETHOSTBYNAME_R_RETURN_INT */
+
+/* Define if int8, int16 and int32 types exist */
+/* #undef HAVE_INT_8_16_32 */
+
+/* Using Innobase DB */
+/* #undef HAVE_INNOBASE_DB */
+
+/* Define if we have GNU readline */
+/* #undef HAVE_LIBREADLINE */
+
+/* Define if have -lwrap */
+#define HAVE_LIBWRAP 1
+
+/* Define if we are using Xavier Leroy's LinuxThreads */
+#define HAVE_LINUXTHREADS 1
+
+/* Do we have lstat */
+#define HAVE_LSTAT 1
+
+/* Do we use user level threads */
+/* #undef HAVE_mit_thread */
+
+/* For some non posix threads */
+/* #undef HAVE_NONPOSIX_PTHREAD_GETSPECIFIC */
+
+/* For some non posix threads */
+/* #undef HAVE_NONPOSIX_PTHREAD_MUTEX_INIT */
+
+/* READLINE: */
+#define HAVE_POSIX_SIGNALS 1
+
+/* Well.. */
+/* #undef HAVE_POSIX_SIGSETJMP */
+
+/* sigwait with one argument */
+/* #undef HAVE_NONPOSIX_SIGWAIT */
+
+/* pthread_attr_setscope */
+#define HAVE_PTHREAD_ATTR_SETSCOPE 1
+
+/* pthread_yield that doesn't take any arguments */
+#define HAVE_PTHREAD_YIELD_ZERO_ARG 1
+
+/* pthread_yield function with one argument */
+/* #undef HAVE_PTHREAD_YIELD_ONE_ARG */
+
+/* POSIX readdir_r */
+#define HAVE_READDIR_R 1
+
+/* Have Gemini db installed */
+/* #undef HAVE_GEMINI_DB */
+
+/* POSIX sigwait */
+#define HAVE_SIGWAIT 1
+
+/* crypt */
+#define HAVE_CRYPT 1
+
+/* Solaris define gethostbyaddr_r with 7 arguments. glibc2 defines
+   this with 8 arguments */
+/* #undef HAVE_SOLARIS_STYLE_GETHOST */
+
+/* MIT pthreads does not support connecting with unix sockets */
+/* #undef HAVE_THREADS_WITHOUT_SOCKETS */
+
+/* Timespec has a ts_sec instead of tv_sev  */
+/* #undef HAVE_TIMESPEC_TS_SEC */
+
+/* Have the tzname variable */
+#define HAVE_TZNAME 1
+
+/* Define if the system files define uchar */
+/* #undef HAVE_UCHAR */
+
+/* Define if the system files define uint */
+#define HAVE_UINT 1
+
+/* Define if the system files define ulong */
+#define HAVE_ULONG 1
+
+/* UNIXWARE7 threads are not posix */
+/* #undef HAVE_UNIXWARE7_THREADS */
+
+/* new UNIXWARE7 threads that are not yet posix */
+/* #undef HAVE_UNIXWARE7_POSIX */
+
+/* READLINE: */
+/* #undef HAVE_USG_SIGHOLD */
+
+/* Handling of large files on Solaris 2.6 */
+/* #undef _LARGEFILE_SOURCE */
+
+/* Handling of large files on Solaris 2.6 */
+/* #undef _LARGEFILE64_SOURCE */
+
+/* Define if want -lwrap */
+#define LIBWRAP 1
+
+/* Define to machine type name eg sun10 */
+#define MACHINE_TYPE "i686"
+
+/* #undef MUST_REINSTALL_SIGHANDLERS */
+
+/* Defined to used character set */
+/* #undef MY_CHARSET_CURRENT */
+
+/* READLINE: no sys file*/
+/* #undef NO_SYS_FILE */
+
+/* Program name */
+#define PACKAGE "mysql"
+
+/* mysql client protocoll version */
+#define PROTOCOL_VERSION 10
+
+/* Define if qsort returns void */
+#define QSORT_TYPE_IS_VOID 1
+
+/* Define as the return type of qsort (int or void). */
+#define RETQSORTTYPE void
+
+/* Size of off_t */
+#define SIZEOF_OFF_T 8
+
+/* Define as the base type of the last arg to accept */
+#define SOCKET_SIZE_TYPE socklen_t
+
+/* Last argument to get/setsockopt */
+/* #undef SOCKOPT_OPTLEN_TYPE */
+
+/* #undef SPEED_T_IN_SYS_TYPES */
+/* #undef SPRINTF_RETURNS_PTR */
+#define SPRINTF_RETURNS_INT 1
+/* #undef SPRINTF_RETURNS_GARBAGE */
+
+/* Needed to get large file supportat HPUX 10.20 */
+/* #undef __STDC_EXT__ */
+
+#define STACK_DIRECTION -1
+
+/* #undef STRCOLL_BROKEN */
+
+/* #undef STRUCT_DIRENT_HAS_D_FILENO */
+#define STRUCT_DIRENT_HAS_D_INO 1
+
+/* #undef STRUCT_WINSIZE_IN_SYS_IOCTL */
+/* #undef STRUCT_WINSIZE_IN_TERMIOS */
+
+/* Define to name of system eg solaris*/
+#define SYSTEM_TYPE "suse-linux"
+
+/* Define if you want to have threaded code. This may be undef on client code */
+#define THREAD 1
+
+/* Should be client be thread safe */
+/* #undef THREAD_SAFE_CLIENT */
+
+/* READLINE: */
+/* #undef TIOCSTAT_IN_SYS_IOCTL */
+
+/* Use multi-byte character routines */
+#define USE_MB 1
+#define USE_MB_IDENT 1
+
+/* Use MySQL RAID */
+/* #undef USE_RAID */
+
+/* Use strcoll() functions when comparing and sorting. */
+#define USE_STRCOLL 1
+
+/* Program version */
+#define VERSION "3.23.52"
+
+/* READLINE: */
+#define VOID_SIGHANDLER 1
+
+
+/* Leave that blank line there!!  Autoheader needs it.
+   If you're adding to this file, keep in mind:
+   The entries are in sort -df order: alphabetical, case insensitive,
+   ignoring punctuation (such as underscores).  */
+
+/* Define if you have the `alarm' function. */
+#define HAVE_ALARM 1
+
+/* Define if you have the <alloca.h> header file. */
+#define HAVE_ALLOCA_H 1
+
+/* Define if you have the <arpa/inet.h> header file. */
+#define HAVE_ARPA_INET_H 1
+
+/* Define if you have the <asm/termbits.h> header file. */
+#define HAVE_ASM_TERMBITS_H 1
+
+/* Define if you have the `atod' function. */
+/* #undef HAVE_ATOD */
+
+/* Define if you have the `bcmp' function. */
+#define HAVE_BCMP 1
+
+/* Define if you have the `bfill' function. */
+/* #undef HAVE_BFILL */
+
+/* Define if you have the `bmove' function. */
+/* #undef HAVE_BMOVE */
+
+/* Define if you have the `bzero' function. */
+#define HAVE_BZERO 1
+
+/* Define if you have the `chsize' function. */
+/* #undef HAVE_CHSIZE */
+
+/* Define if you have the <crypt.h> header file. */
+#define HAVE_CRYPT_H 1
+
+/* Define if you have the <curses.h> header file. */
+#define HAVE_CURSES_H 1
+
+/* Define if you have the `cuserid' function. */
+#define HAVE_CUSERID 1
+
+/* Define if you have the <dirent.h> header file. */
+#define HAVE_DIRENT_H 1
+
+/* Define if you have the `dlerror' function. */
+#define HAVE_DLERROR 1
+
+/* Define if you have the `dlopen' function. */
+#define HAVE_DLOPEN 1
+
+/* Define if you don't have `vprintf' but do have `_doprnt.' */
+/* #undef HAVE_DOPRNT */
+
+/* Define if you have the `fchmod' function. */
+#define HAVE_FCHMOD 1
+
+/* Define if you have the `fcntl' function. */
+#define HAVE_FCNTL 1
+
+/* Define if you have the <fcntl.h> header file. */
+#define HAVE_FCNTL_H 1
+
+/* Define if you have the `fconvert' function. */
+/* #undef HAVE_FCONVERT */
+
+/* Define if you have the `finite' function. */
+#define HAVE_FINITE 1
+
+/* Define if you have the <floatingpoint.h> header file. */
+/* #undef HAVE_FLOATINGPOINT_H */
+
+/* Define if you have the <float.h> header file. */
+#define HAVE_FLOAT_H 1
+
+/* Define if you have the `fpresetsticky' function. */
+/* #undef HAVE_FPRESETSTICKY */
+
+/* Define if you have the `fpsetmask' function. */
+/* #undef HAVE_FPSETMASK */
+
+/* Define if you have the `fseeko' function. */
+#define HAVE_FSEEKO 1
+
+/* Define if you have the `ftruncate' function. */
+#define HAVE_FTRUNCATE 1
+
+/* Define if you have the `getcwd' function. */
+#define HAVE_GETCWD 1
+
+/* Define if you have the `gethostbyaddr_r' function. */
+#define HAVE_GETHOSTBYADDR_R 1
+
+/* Define if you have the `gethostbyname_r' function. */
+#define HAVE_GETHOSTBYNAME_R 1
+
+/* Define if you have the `getpagesize' function. */
+#define HAVE_GETPAGESIZE 1
+
+/* Define if you have the `getpass' function. */
+#define HAVE_GETPASS 1
+
+/* Define if you have the `getpassphrase' function. */
+/* #undef HAVE_GETPASSPHRASE */
+
+/* Define if you have the `getpwnam' function. */
+#define HAVE_GETPWNAM 1
+
+/* Define if you have the `getpwuid' function. */
+#define HAVE_GETPWUID 1
+
+/* Define if you have the `getrlimit' function. */
+#define HAVE_GETRLIMIT 1
+
+/* Define if you have the `getrusage' function. */
+#define HAVE_GETRUSAGE 1
+
+/* Define if you have the `getwd' function. */
+#define HAVE_GETWD 1
+
+/* Define if you have the <grp.h> header file. */
+#define HAVE_GRP_H 1
+
+/* Define if you have the <ieeefp.h> header file. */
+/* #undef HAVE_IEEEFP_H */
+
+/* Define if you have the `index' function. */
+#define HAVE_INDEX 1
+
+/* Define if you have the `initgroups' function. */
+#define HAVE_INITGROUPS 1
+
+/* Define if you have the <inttypes.h> header file. */
+#define HAVE_INTTYPES_H 1
+
+/* Define if you have the `isnan' function. */
+#define HAVE_ISNAN 1
+
+/* Define if you have the `bind' library (-lbind). */
+/* #undef HAVE_LIBBIND */
+
+/* Define if you have the `compat' library (-lcompat). */
+/* #undef HAVE_LIBCOMPAT */
+
+/* Define if you have the `crypt' library (-lcrypt). */
+#define HAVE_LIBCRYPT 1
+
+/* Define if you have the `c_r' library (-lc_r). */
+/* #undef HAVE_LIBC_R */
+
+/* Define if you have the `dl' library (-ldl). */
+#define HAVE_LIBDL 1
+
+/* Define if you have the `gen' library (-lgen). */
+/* #undef HAVE_LIBGEN */
+
+/* Define if you have the `m' library (-lm). */
+#define HAVE_LIBM 1
+
+/* Define if you have the `nsl' library (-lnsl). */
+#define HAVE_LIBNSL 1
+
+/* Define if you have the `nsl_r' library (-lnsl_r). */
+/* #undef HAVE_LIBNSL_R */
+
+/* Define if you have the `pthread' library (-lpthread). */
+#define HAVE_LIBPTHREAD 1
+
+/* Define if you have the `socket' library (-lsocket). */
+/* #undef HAVE_LIBSOCKET */
+
+/* Define if you have the <limits.h> header file. */
+#define HAVE_LIMITS_H 1
+
+/* Define if you have the <locale.h> header file. */
+#define HAVE_LOCALE_H 1
+
+/* Define if you have the `localtime_r' function. */
+#define HAVE_LOCALTIME_R 1
+
+/* Define if you have the `locking' function. */
+/* #undef HAVE_LOCKING */
+
+/* Define if you have the `longjmp' function. */
+#define HAVE_LONGJMP 1
+
+/* Define if you have the `lrand48' function. */
+#define HAVE_LRAND48 1
+
+/* Define if you have the `lstat' function. */
+#define HAVE_LSTAT 1
+
+/* Define if you have the `madvise' function. */
+#define HAVE_MADVISE 1
+
+/* Define if you have the `memcpy' function. */
+#define HAVE_MEMCPY 1
+
+/* Define if you have the `memmove' function. */
+#define HAVE_MEMMOVE 1
+
+/* Define if you have the <memory.h> header file. */
+#define HAVE_MEMORY_H 1
+
+/* Define if you have the `mkstemp' function. */
+#define HAVE_MKSTEMP 1
+
+/* Define if you have the `mlockall' function. */
+#define HAVE_MLOCKALL 1
+
+/* Define if you have a working `mmap' system call. */
+#define HAVE_MMAP 1
+
+/* Define if you have the <ndir.h> header file. */
+/* #undef HAVE_NDIR_H */
+
+/* Define if you have the <netinet/in.h> header file. */
+#define HAVE_NETINET_IN_H 1
+
+/* Define if you have the <paths.h> header file. */
+#define HAVE_PATHS_H 1
+
+/* Define if you have the `perror' function. */
+#define HAVE_PERROR 1
+
+/* Define if you have the `poll' function. */
+#define HAVE_POLL 1
+
+/* Define if you have the `pread' function. */
+#define HAVE_PREAD 1
+
+/* Define if you have the `pthread_attr_create' function. */
+/* #undef HAVE_PTHREAD_ATTR_CREATE */
+
+/* Define if you have the `pthread_attr_setprio' function. */
+/* #undef HAVE_PTHREAD_ATTR_SETPRIO */
+
+/* Define if you have the `pthread_attr_setschedparam' function. */
+#define HAVE_PTHREAD_ATTR_SETSCHEDPARAM 1
+
+/* Define if you have the `pthread_attr_setstacksize' function. */
+#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
+
+/* Define if you have the `pthread_condattr_create' function. */
+/* #undef HAVE_PTHREAD_CONDATTR_CREATE */
+
+/* Define if you have the `pthread_getsequence_np' function. */
+/* #undef HAVE_PTHREAD_GETSEQUENCE_NP */
+
+/* Define if you have the `pthread_init' function. */
+/* #undef HAVE_PTHREAD_INIT */
+
+/* Define if you have the `pthread_rwlock_rdlock' function. */
+#define HAVE_PTHREAD_RWLOCK_RDLOCK 1
+
+/* Define if you have the `pthread_setprio' function. */
+/* #undef HAVE_PTHREAD_SETPRIO */
+
+/* Define if you have the `pthread_setprio_np' function. */
+/* #undef HAVE_PTHREAD_SETPRIO_NP */
+
+/* Define if you have the `pthread_setschedparam' function. */
+#define HAVE_PTHREAD_SETSCHEDPARAM 1
+
+/* Define if you have the `pthread_sigmask' function. */
+#define HAVE_PTHREAD_SIGMASK 1
+
+/* Define if you have the `putenv' function. */
+#define HAVE_PUTENV 1
+
+/* Define if you have the <pwd.h> header file. */
+#define HAVE_PWD_H 1
+
+/* Define if you have the `readlink' function. */
+#define HAVE_READLINK 1
+
+/* Define if you have the `realpath' function. */
+#define HAVE_REALPATH 1
+
+/* Define if you have the `rename' function. */
+#define HAVE_RENAME 1
+
+/* Define if system calls automatically restart after interruption by a
+   signal. */
+#define HAVE_RESTARTABLE_SYSCALLS 1
+
+/* Define if you have the `rint' function. */
+#define HAVE_RINT 1
+
+/* Define if you have the `rwlock_init' function. */
+/* #undef HAVE_RWLOCK_INIT */
+
+/* Define if you have the <sched.h> header file. */
+#define HAVE_SCHED_H 1
+
+/* Define if you have the `select' function. */
+#define HAVE_SELECT 1
+
+/* Define if you have the <select.h> header file. */
+/* #undef HAVE_SELECT_H */
+
+/* Define if you have the `setenv' function. */
+#define HAVE_SETENV 1
+
+/* Define if you have the `setlocale' function. */
+#define HAVE_SETLOCALE 1
+
+/* Define if you have the `setupterm' function. */
+/* #undef HAVE_SETUPTERM */
+
+/* Define if you have the `sighold' function. */
+#define HAVE_SIGHOLD 1
+
+/* Define if you have the `sigset' function. */
+#define HAVE_SIGSET 1
+
+/* Define if you have the `sigthreadmask' function. */
+/* #undef HAVE_SIGTHREADMASK */
+
+/* Define if you have the `snprintf' function. */
+#define HAVE_SNPRINTF 1
+
+/* Define if you have the `socket' function. */
+#define HAVE_SOCKET 1
+
+/* Define if you have the <stdarg.h> header file. */
+#define HAVE_STDARG_H 1
+
+/* Define if you have the <stddef.h> header file. */
+#define HAVE_STDDEF_H 1
+
+/* Define if you have the <stdint.h> header file. */
+#define HAVE_STDINT_H 1
+
+/* Define if you have the <stdlib.h> header file. */
+#define HAVE_STDLIB_H 1
+
+/* Define if you have the `stpcpy' function. */
+#define HAVE_STPCPY 1
+
+/* Define if you have the `strcasecmp' function. */
+#define HAVE_STRCASECMP 1
+
+/* Define if you have the `strcoll' function. */
+#define HAVE_STRCOLL 1
+
+/* Define if you have the `strerror' function. */
+#define HAVE_STRERROR 1
+
+/* Define if you have the <strings.h> header file. */
+#define HAVE_STRINGS_H 1
+
+/* Define if you have the <string.h> header file. */
+#define HAVE_STRING_H 1
+
+/* Define if you have the `strnlen' function. */
+#define HAVE_STRNLEN 1
+
+/* Define if you have the `strpbrk' function. */
+#define HAVE_STRPBRK 1
+
+/* Define if you have the `strstr' function. */
+#define HAVE_STRSTR 1
+
+/* Define if you have the `strtok_r' function. */
+#define HAVE_STRTOK_R 1
+
+/* Define if you have the `strtol' function. */
+#define HAVE_STRTOL 1
+
+/* Define if you have the `strtoll' function. */
+#define HAVE_STRTOLL 1
+
+/* Define if you have the `strtoul' function. */
+#define HAVE_STRTOUL 1
+
+/* Define if you have the `strtoull' function. */
+#define HAVE_STRTOULL 1
+
+/* Define if `st_rdev' is member of `struct stat'. */
+#define HAVE_STRUCT_STAT_ST_RDEV 1
+
+/* Define if your `struct stat' has `st_rdev'. Deprecated, use
+   `HAVE_STRUCT_STAT_ST_RDEV' instead. */
+#define HAVE_ST_RDEV 1
+
+/* Define if you have the <synch.h> header file. */
+/* #undef HAVE_SYNCH_H */
+
+/* Define if you have the <sys/dir.h> header file. */
+#define HAVE_SYS_DIR_H 1
+
+/* Define if you have the <sys/file.h> header file. */
+#define HAVE_SYS_FILE_H 1
+
+/* Define if you have the <sys/ioctl.h> header file. */
+#define HAVE_SYS_IOCTL_H 1
+
+/* Define if you have the <sys/mman.h> header file. */
+#define HAVE_SYS_MMAN_H 1
+
+/* Define if you have the <sys/ndir.h> header file. */
+/* #undef HAVE_SYS_NDIR_H */
+
+/* Define if you have the <sys/ptem.h> header file. */
+/* #undef HAVE_SYS_PTEM_H */
+
+/* Define if you have the <sys/pte.h> header file. */
+/* #undef HAVE_SYS_PTE_H */
+
+/* Define if you have the <sys/select.h> header file. */
+#define HAVE_SYS_SELECT_H 1
+
+/* Define if you have the <sys/socket.h> header file. */
+#define HAVE_SYS_SOCKET_H 1
+
+/* Define if you have the <sys/stat.h> header file. */
+#define HAVE_SYS_STAT_H 1
+
+/* Define if you have the <sys/stream.h> header file. */
+/* #undef HAVE_SYS_STREAM_H */
+
+/* Define if you have the <sys/timeb.h> header file. */
+#define HAVE_SYS_TIMEB_H 1
+
+/* Define if you have the <sys/types.h> header file. */
+#define HAVE_SYS_TYPES_H 1
+
+/* Define if you have the <sys/un.h> header file. */
+#define HAVE_SYS_UN_H 1
+
+/* Define if you have the <sys/utime.h> header file. */
+/* #undef HAVE_SYS_UTIME_H */
+
+/* Define if you have the <sys/vadvise.h> header file. */
+/* #undef HAVE_SYS_VADVISE_H */
+
+/* Define if you have the <sys/wait.h> header file. */
+#define HAVE_SYS_WAIT_H 1
+
+/* Define if you have the `tcgetattr' function. */
+#define HAVE_TCGETATTR 1
+
+/* Define if you have the `tell' function. */
+/* #undef HAVE_TELL */
+
+/* Define if you have the `tempnam' function. */
+#define HAVE_TEMPNAM 1
+
+/* Define if you have the <termbits.h> header file. */
+/* #undef HAVE_TERMBITS_H */
+
+/* Define if you have the <termcap.h> header file. */
+#define HAVE_TERMCAP_H 1
+
+/* Define if you have the <termios.h> header file. */
+#define HAVE_TERMIOS_H 1
+
+/* Define if you have the <termio.h> header file. */
+#define HAVE_TERMIO_H 1
+
+/* Define if you have the <term.h> header file. */
+#define HAVE_TERM_H 1
+
+/* Define if you have the `thr_setconcurrency' function. */
+/* #undef HAVE_THR_SETCONCURRENCY */
+
+/* Define if you have the <unistd.h> header file. */
+#define HAVE_UNISTD_H 1
+
+/* Define if you have the <utime.h> header file. */
+#define HAVE_UTIME_H 1
+
+/* Define if `utime(file, NULL)' sets file's timestamp to the present. */
+#define HAVE_UTIME_NULL 1
+
+/* Define if you have the <varargs.h> header file. */
+#define HAVE_VARARGS_H 1
+
+/* Define if you have the `vidattr' function. */
+/* #undef HAVE_VIDATTR */
+
+/* Define if you have the `vprintf' function. */
+#define HAVE_VPRINTF 1
+
+/* Name of package */
+#define PACKAGE "mysql"
+
+/* Define as the return type of signal handlers (`int' or `void'). */
+#define RETSIGTYPE void
+
+/* The size of a `char', as computed by sizeof. */
+#define SIZEOF_CHAR 1
+
+/* The size of a `int', as computed by sizeof. */
+#define SIZEOF_INT 4
+
+/* The size of a `long', as computed by sizeof. */
+#define SIZEOF_LONG 4
+
+/* The size of a `long long', as computed by sizeof. */
+#define SIZEOF_LONG_LONG 8
+
+/* Define if the `S_IS*' macros in <sys/stat.h> do not work properly. */
+/* #undef STAT_MACROS_BROKEN */
+
+/* Define if you have the ANSI C header files. */
+#define STDC_HEADERS 1
+
+/* Define if you can safely include both <sys/time.h> and <time.h>. */
+#define TIME_WITH_SYS_TIME 1
+
+/* Define if your <sys/time.h> declares `struct tm'. */
+/* #undef TM_IN_SYS_TIME */
+
+/* Version number of package */
+#define VERSION "3.23.52"
+
+/* Define if your processor stores words with the most significant byte first
+   (like Motorola and SPARC, unlike Intel and VAX). */
+/* #undef WORDS_BIGENDIAN */
+
+/* Number of bits in a file offset, on hosts where this is settable. */
+#define _FILE_OFFSET_BITS 64
+
+/* Define to make fseeko etc. visible, on some hosts. */
+/* #undef _LARGEFILE_SOURCE */
+
+/* Define for large files, on AIX-style hosts. */
+/* #undef _LARGE_FILES */
+
+/* Define to empty if `const' does not conform to ANSI C. */
+/* #undef const */
+
+/* Define as `__inline' if that's what the C compiler calls it, or to nothing
+   if it is not supported. */
+/* #undef inline */
+
+/* Define to `long' if <sys/types.h> does not define. */
+/* #undef off_t */
+
+/* Define to `unsigned' if <sys/types.h> does not define. */
+/* #undef size_t */

Added: packages/gpsdrive/branches/etch/src/mysql/my_global.h
===================================================================
--- packages/gpsdrive/branches/etch/src/mysql/my_global.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/mysql/my_global.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,970 @@
+/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
+   
+   This library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Library General Public
+   License as published by the Free Software Foundation; either
+   version 2 of the License, or (at your option) any later version.
+   
+   This library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Library General Public License for more details.
+   
+   You should have received a copy of the GNU Library General Public
+   License along with this library; if not, write to the Free
+   Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+   MA 02111-1307, USA */
+
+/* This is the main include file that should included 'first' in every
+   C file. */
+
+#ifndef _global_h
+#define _global_h
+
+#if defined( __EMX__) && !defined( MYSQL_SERVER)
+/* moved here to use below VOID macro redefinition */
+#define INCL_BASE
+#define INCL_NOPMAPI
+#include <os2.h>
+#endif /* __EMX__ */
+
+#ifdef __CYGWIN__
+/* We use a Unix API, so pretend it's not Windows */
+#undef WIN
+#undef WIN32
+#undef _WIN
+#undef _WIN32
+#undef _WIN64
+#undef __WIN__
+#undef __WIN32__
+#define HAVE_ERRNO_AS_DEFINE
+#endif /* __CYGWIN__ */
+
+
+#if defined(_WIN32) || defined(_WIN64) || defined(__WIN32__) || defined(WIN32)
+#include <config-win.h>
+#elif defined(OS2)
+#include <config-os2.h>
+#else
+#include <my_config.h>
+#if defined(__cplusplus) && defined(inline)
+#undef inline				/* fix configure problem */
+#endif
+#endif /* _WIN32... */
+
+/* Fix problem with S_ISLNK() on Linux */
+#if defined(HAVE_LINUXTHREADS)
+#undef  _GNU_SOURCE
+#define _GNU_SOURCE 1
+#endif
+
+/* The client defines this to avoid all thread code */
+#if defined(UNDEF_THREADS_HACK)
+#undef THREAD
+#undef HAVE_mit_thread
+#undef HAVE_LINUXTHREADS
+#undef HAVE_UNIXWARE7_THREADS
+#endif
+
+#ifdef HAVE_THREADS_WITHOUT_SOCKETS
+/* MIT pthreads does not work with unix sockets */
+#undef HAVE_SYS_UN_H
+#endif
+
+#define __EXTENSIONS__ 1	/* We want some extension */
+#ifndef __STDC_EXT__
+#define __STDC_EXT__ 1          /* To get large file support on hpux */
+#endif
+
+#if defined(THREAD) && !defined(__WIN__) && !defined(OS2)
+#ifndef _POSIX_PTHREAD_SEMANTICS
+#define _POSIX_PTHREAD_SEMANTICS /* We want posix threads */
+#endif
+/* was #if defined(HAVE_LINUXTHREADS) || defined(HAVE_DEC_THREADS) || defined(HPUX) */
+#if !defined(SCO)
+#define _REENTRANT	1	/* Some thread libraries require this */
+#endif
+#if !defined(_THREAD_SAFE) && !defined(_AIX)
+#define _THREAD_SAFE            /* Required for OSF1 */
+#endif
+#ifndef HAVE_mit_thread
+#ifdef HAVE_UNIXWARE7_THREADS
+#include <thread.h>
+#else
+#include <pthread.h>		/* AIX must have this included first */
+#endif /* HAVE_UNIXWARE7_THREADS */
+#endif /* HAVE_mit_thread */
+#if !defined(SCO) && !defined(_REENTRANT)
+#define _REENTRANT	1	/* Threads requires reentrant code */
+#endif
+#endif /* THREAD */
+
+/* Go around some bugs in different OS and compilers */
+#ifdef _AIX			/* By soren at t.dk */
+#define _H_STRINGS
+#define _SYS_STREAM_H
+#define _AIX32_CURSES
+#define longlong2double(A) my_longlong2double(A)
+double my_longlong2double(unsigned long long A);
+#endif
+
+#ifdef HAVE_BROKEN_SNPRINTF	/* HPUX 10.20 don't have this defined */
+#undef HAVE_SNPRINTF
+#endif
+#ifdef HAVE_BROKEN_PREAD	/* These doesn't work on HPUX 11.x */
+#undef HAVE_PREAD
+#undef HAVE_PWRITE
+#endif
+
+#ifdef UNDEF_HAVE_GETHOSTBYNAME_R		/* For OSF4.x */
+#undef HAVE_GETHOSTBYNAME_R
+#endif
+#ifdef UNDEF_HAVE_INITGROUPS			/* For AIX 4.3 */
+#undef HAVE_INITGROUPS
+#endif
+
+/* Fix a bug in gcc 2.8.0 on IRIX 6.2 */
+#if SIZEOF_LONG == 4 && defined(__LONG_MAX__)
+#undef __LONG_MAX__             /* Is a longlong value in gcc 2.8.0 ??? */
+#define __LONG_MAX__ 2147483647
+#endif
+
+/* egcs 1.1.2 has a problem with memcpy on Alpha */
+#if defined(__GNUC__) && defined(__alpha__) && ! (__GNUC__ > 2 || (__GNUC__ == 2 &&  __GNUC_MINOR__ >= 95))
+#define BAD_MEMCPY
+#endif
+
+/* In Linux-alpha we have atomic.h if we are using gcc */
+#if defined(HAVE_LINUXTHREADS) && defined(__GNUC__) && defined(__alpha__) && (__GNUC__ > 2 || ( __GNUC__ == 2 &&  __GNUC_MINOR__ >= 95)) && !defined(HAVE_ATOMIC_ADD)
+#define HAVE_ATOMIC_ADD
+#define HAVE_ATOMIC_SUB
+#endif
+
+/* In Linux-ia64 including atomic.h will give us an error */
+#if (defined(HAVE_LINUXTHREADS) && defined(__GNUC__) && (defined(__ia64__) || defined(__powerpc64__))) || !defined(THREAD)
+#undef HAVE_ATOMIC_ADD
+#undef HAVE_ATOMIC_SUB
+#endif
+
+#if defined(_lint) && !defined(lint)
+#define lint
+#endif
+#if SIZEOF_LONG_LONG > 4 && !defined(_LONG_LONG)
+#define _LONG_LONG 1		/* For AIX string library */
+#endif
+
+#ifndef stdin
+#include <stdio.h>
+#endif
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+#ifdef HAVE_STDDEF_H
+#include <stddef.h>
+#endif
+
+#include <math.h>
+#ifdef HAVE_LIMITS_H
+#include <limits.h>
+#endif
+#ifdef HAVE_FLOAT_H
+#include <float.h>
+#endif
+
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#ifdef HAVE_FCNTL_H
+#include <fcntl.h>
+#endif
+#ifdef HAVE_SYS_TIMEB_H
+#include <sys/timeb.h>				/* Avoid warnings on SCO */
+#endif
+#if TIME_WITH_SYS_TIME
+# include <sys/time.h>
+# include <time.h>
+#else
+# if HAVE_SYS_TIME_H
+#  include <sys/time.h>
+# else
+#  include <time.h>
+# endif
+#endif /* TIME_WITH_SYS_TIME */
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+#if defined(__cplusplus) && defined(NO_CPLUSPLUS_ALLOCA)
+#undef HAVE_ALLOCA
+#undef HAVE_ALLOCA_H
+#endif
+#ifdef HAVE_ALLOCA_H
+#include <alloca.h>
+#endif
+#ifdef HAVE_ATOMIC_ADD
+#define __SMP__
+#define CONFIG_SMP
+#include <asm/atomic.h>
+#endif
+
+/* Go around some bugs in different OS and compilers */
+#if defined(_HPUX_SOURCE) && defined(HAVE_SYS_STREAM_H)
+#include <sys/stream.h>		/* HPUX 10.20 defines ulong here. UGLY !!! */
+#define HAVE_ULONG
+#endif
+#ifdef DONT_USE_FINITE		/* HPUX 11.x has is_finite() */
+#undef HAVE_FINITE
+#endif
+#if defined(HPUX) && defined(_LARGEFILE64_SOURCE) && defined(THREAD)
+/* Fix bug in setrlimit */
+#undef setrlimit
+#define setrlimit cma_setrlimit64
+#endif
+
+/* We can not live without these */
+
+#define USE_MYFUNC 1		/* Must use syscall indirection */
+#define MASTER 1		/* Compile without unireg */
+#define ENGLISH 1		/* Messages in English */
+#define POSIX_MISTAKE 1		/* regexp: Fix stupid spec error */
+#define USE_REGEX 1		/* We want the use the regex library */
+/* Do not define for ultra sparcs */
+#ifndef OS2
+#define USE_BMOVE512 1		/* Use this unless the system bmove is faster */
+#endif
+
+/* Paranoid settings. Define I_AM_PARANOID if you are paranoid */
+#ifdef I_AM_PARANOID
+#define DONT_ALLOW_USER_CHANGE 1
+#define DONT_USE_MYSQL_PWD 1
+#endif
+
+/* #define USE_some_charset 1 was deprecated by changes to configure */
+/* my_ctype my_to_upper, my_to_lower, my_sort_order gain theit right value */
+/* automagically during configuration */
+
+/* Does the system remember a signal handler after a signal ? */
+#ifndef HAVE_BSD_SIGNALS
+#define DONT_REMEMBER_SIGNAL
+#endif
+
+/* Define void to stop lint from generating "null effekt" comments */
+#ifndef DONT_DEFINE_VOID
+#ifdef _lint
+int	__void__;
+#define VOID(X)		(__void__ = (int) (X))
+#else
+#undef VOID
+#define VOID(X)		(X)
+#endif
+#endif /* DONT_DEFINE_VOID */
+
+#if defined(_lint) || defined(FORCE_INIT_OF_VARS)
+#define LINT_INIT(var)	var=0			/* No uninitialize-warning */
+#else
+#define LINT_INIT(var)
+#endif
+
+/* Define som useful general macros */
+#if defined(__cplusplus) && defined(__GNUC__)
+#define max(a, b)	((a) >? (b))
+#define min(a, b)	((a) <? (b))
+#elif !defined(max)
+#define max(a, b)	((a) > (b) ? (a) : (b))
+#define min(a, b)	((a) < (b) ? (a) : (b))
+#endif
+
+#if defined(__EMX__) || !defined(HAVE_UINT)
+typedef unsigned int uint;
+typedef unsigned short ushort;
+#endif
+
+#define sgn(a)		(((a) < 0) ? -1 : ((a) > 0) ? 1 : 0)
+#define swap(t,a,b)	{ register t dummy; dummy = a; a = b; b = dummy; }
+#define test(a)		((a) ? 1 : 0)
+#define set_if_bigger(a,b)  { if ((a) < (b)) (a)=(b); }
+#define set_if_smaller(a,b) { if ((a) > (b)) (a)=(b); }
+#define test_all_bits(a,b) (((a) & (b)) == (b))
+#define set_bits(type, bit_count) (sizeof(type)*8 <= (bit_count) ? ~(type) 0 : ((((type) 1) << (bit_count)) - (type) 1))
+#define array_elements(A) ((uint) (sizeof(A)/sizeof(A[0])))
+#ifndef HAVE_RINT
+#define rint(A) floor((A)+0.5)
+#endif
+
+/* Define som general constants */
+#ifndef TRUE
+#define TRUE		(1)	/* Logical true */
+#define FALSE		(0)	/* Logical false */
+#endif
+
+#if defined(__GNUC__)
+#define function_volatile	volatile
+#define my_reinterpret_cast(A) reinterpret_cast<A>
+#define my_const_cast(A) const_cast<A>
+#elif !defined(my_reinterpret_cast)
+#define my_reinterpret_cast(A) (A)
+#define my_const_cast(A) (A)
+#endif
+#if !defined(__attribute__) && (defined(__cplusplus) || !defined(__GNUC__)  || __GNUC__ == 2 && __GNUC_MINOR__ < 8)
+#define __attribute__(A)
+#endif
+
+/* From old s-system.h */
+
+/* Support macros for non ansi & other old compilers. Since such
+   things are no longer supported we do nothing. We keep then since
+   some of our code may still be needed to upgrade old customers. */
+#define _VARARGS(X) X
+#define _STATIC_VARARGS(X) X
+#define _PC(X)	X
+
+#if defined(DBUG_ON) && defined(DBUG_OFF)
+#undef DBUG_OFF
+#endif
+
+#if defined(_lint) && !defined(DBUG_OFF)
+#define DBUG_OFF
+#endif
+
+#include <dbug.h>
+#ifndef DBUG_OFF
+#define dbug_assert(A) assert(A)
+#else
+#define dbug_assert(A)
+#endif
+
+#define MIN_ARRAY_SIZE	0	/* Zero or One. Gcc allows zero*/
+#define ASCII_BITS_USED 8	/* Bit char used */
+#define NEAR_F			/* No near function handling */
+
+/* Some types that is different between systems */
+
+typedef int	File;		/* File descriptor */
+#ifndef Socket_defined
+typedef int	my_socket;	/* File descriptor for sockets */
+#define INVALID_SOCKET -1
+#endif
+/* Type for fuctions that handles signals */
+#define sig_handler RETSIGTYPE
+typedef void	(*sig_return)();/* Returns type from signal */
+#if defined(__GNUC__) && !defined(_lint)
+typedef char	pchar;		/* Mixed prototypes can take char */
+typedef char	puchar;		/* Mixed prototypes can take char */
+typedef char	pbool;		/* Mixed prototypes can take char */
+typedef short	pshort;		/* Mixed prototypes can take short int */
+typedef float	pfloat;		/* Mixed prototypes can take float */
+#else
+typedef int	pchar;		/* Mixed prototypes can't take char */
+typedef uint	puchar;		/* Mixed prototypes can't take char */
+typedef int	pbool;		/* Mixed prototypes can't take char */
+typedef int	pshort;		/* Mixed prototypes can't take short int */
+typedef double	pfloat;		/* Mixed prototypes can't take float */
+#endif
+typedef int	(*qsort_cmp)(const void *,const void *);
+#ifdef HAVE_mit_thread
+#define qsort_t void
+#undef QSORT_TYPE_IS_VOID
+#define QSORT_TYPE_IS_VOID
+#else
+#define qsort_t RETQSORTTYPE	/* Broken GCC cant handle typedef !!!! */
+#endif
+#ifdef HAVE_mit_thread
+#define size_socket socklen_t	/* Type of last arg to accept */
+#else
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+typedef SOCKET_SIZE_TYPE size_socket;
+#endif
+
+#ifndef SOCKOPT_OPTLEN_TYPE
+#define SOCKOPT_OPTLEN_TYPE size_socket
+#endif
+
+/* file create flags */
+
+#ifndef O_SHARE
+#define O_SHARE		0	/* Flag to my_open for shared files */
+#ifndef O_BINARY
+#define O_BINARY	0	/* Flag to my_open for binary files */
+#endif
+#define FILE_BINARY	0	/* Flag to my_fopen for binary streams */
+#ifdef HAVE_FCNTL
+#define HAVE_FCNTL_LOCK
+#define F_TO_EOF	0L	/* Param to lockf() to lock rest of file */
+#endif
+#endif /* O_SHARE */
+#ifndef O_TEMPORARY
+#define O_TEMPORARY	0
+#endif
+#ifndef O_SHORT_LIVED
+#define O_SHORT_LIVED	0
+#endif
+
+/* #define USE_RECORD_LOCK	*/
+
+	/* Unsigned types supported by the compiler */
+#define UNSINT8			/* unsigned int8 (char) */
+#define UNSINT16		/* unsigned int16 */
+#define UNSINT32		/* unsigned int32 */
+
+	/* General constants */
+#define SC_MAXWIDTH	256	/* Max width of screen (for error messages) */
+#define FN_LEN		256	/* Max file name len */
+#define FN_HEADLEN	253	/* Max length of filepart of file name */
+#define FN_EXTLEN	20	/* Max length of extension (part of FN_LEN) */
+#define FN_REFLEN	512	/* Max length of full path-name */
+#define FN_EXTCHAR	'.'
+#define FN_HOMELIB	'~'	/* ~/ is used as abbrev for home dir */
+#define FN_CURLIB	'.'	/* ./ is used as abbrev for current dir */
+#define FN_PARENTDIR	".."	/* Parentdirectory; Must be a string */
+#define FN_DEVCHAR	':'
+
+#ifndef FN_LIBCHAR
+#ifdef __EMX__
+#define FN_LIBCHAR	'\\'
+#define FN_ROOTDIR	"\\"
+#else
+#define FN_LIBCHAR	'/'
+#define FN_ROOTDIR	"/"
+#endif
+#define MY_NFILE	1024	/* This is only used to save filenames */
+#endif
+
+/* #define EXT_IN_LIBNAME     */
+/* #define FN_NO_CASE_SENCE   */
+/* #define FN_UPPER_CASE TRUE */
+
+/* Io buffer size; Must be a power of 2 and a multiple of 512. May be
+   smaller what the disk page size. This influences the speed of the
+   isam btree library. eg to big to slow. */
+#define IO_SIZE			4096
+/* How much overhead does malloc have. The code often allocates
+   something like 1024-MALLOC_OVERHEAD bytes */
+#ifdef SAFEMALLOC
+#define MALLOC_OVERHEAD (8+24+4)
+#else
+#define MALLOC_OVERHEAD 8
+#endif
+	/* get memory in huncs */
+#define ONCE_ALLOC_INIT		(uint) (4096-MALLOC_OVERHEAD)
+	/* Typical record cash */
+#define RECORD_CACHE_SIZE	(uint) (64*1024-MALLOC_OVERHEAD)
+	/* Typical key cash */
+#define KEY_CACHE_SIZE		(uint) (8*1024*1024-MALLOC_OVERHEAD)
+
+	/* Some things that this system doesn't have */
+
+#define ONLY_OWN_DATABASES	/* We are using only databases by monty */
+#define NO_PISAM		/* Not needed anymore */
+#define NO_MISAM		/* Not needed anymore */
+#define NO_HASH			/* Not needed anymore */
+#ifdef __WIN__
+#define NO_DIR_LIBRARY		/* Not standar dir-library */
+#define USE_MY_STAT_STRUCT	/* For my_lib */
+#endif
+
+/* Some things that this system does have */
+
+#ifndef HAVE_ITOA
+#define USE_MY_ITOA		/* There is no itoa */
+#endif
+
+/* Some defines of functions for portability */
+
+#ifndef HAVE_ATOD
+#define atod		atof
+#endif
+#ifdef USE_MY_ATOF
+#define atof		my_atof
+extern void		init_my_atof(void);
+extern double		my_atof(const char*);
+#endif
+#undef remove		/* Crashes MySQL on SCO 5.0.0 */
+#ifndef __WIN__
+#ifdef OS2
+#define closesocket(A)	soclose(A)
+#else
+#define closesocket(A)	close(A)
+#endif
+#ifndef ulonglong2double
+#define ulonglong2double(A) ((double) (A))
+#define my_off_t2double(A)  ((double) (A))
+#endif
+#endif
+
+#ifndef offsetof
+#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
+#endif
+#define ulong_to_double(X) ((double) (ulong) (X))
+#define SET_STACK_SIZE(X)	/* Not needed on real machines */
+
+#if !defined(HAVE_mit_thread) && !defined(HAVE_STRTOK_R)
+#define strtok_r(A,B,C) strtok((A),(B))
+#endif
+
+#ifdef HAVE_LINUXTHREADS
+/* #define pthread_sigmask(A,B,C) sigprocmask((A),(B),(C)) */
+/* #define sigset(A,B) signal((A),(B)) */
+#endif
+
+/* Remove some things that mit_thread break or doesn't support */
+#if defined(HAVE_mit_thread) && defined(THREAD)
+#undef HAVE_PREAD
+#undef HAVE_REALPATH
+#undef HAVE_MLOCK
+#undef HAVE_TEMPNAM				/* Use ours */
+#undef HAVE_PTHREAD_SETPRIO
+#undef HAVE_FTRUNCATE
+#undef HAVE_READLINK
+#endif
+
+/* This is from the old m-machine.h file */
+
+#if SIZEOF_LONG_LONG > 4
+#define HAVE_LONG_LONG 1
+#endif
+
+#if defined(HAVE_LONG_LONG) && !defined(LONGLONG_MIN)
+#define LONGLONG_MIN	((long long) 0x8000000000000000LL)
+#define LONGLONG_MAX	((long long) 0x7FFFFFFFFFFFFFFFLL)
+#endif
+
+#if SIZEOF_LONG == 4
+#define INT_MIN32	(long) 0x80000000L
+#define INT_MAX32	(long) 0x7FFFFFFFL
+#define INT_MIN24	((long) 0xff800000L)
+#define INT_MAX24	0x007fffffL
+#define INT_MIN16	((short int) 0x8000)
+#define INT_MAX16	0x7FFF
+#define INT_MIN8	((char) 0x80)
+#define INT_MAX8	((char) 0x7F)
+#else  /* Probably Alpha */
+#define INT_MIN32	((long) (int) 0x80000000)
+#define INT_MAX32	((long) (int) 0x7FFFFFFF)
+#define INT_MIN24	((long) (int) 0xff800000)
+#define INT_MAX24	((long) (int) 0x007fffff)
+#define INT_MIN16	((short int) 0xffff8000)
+#define INT_MAX16	((short int) 0x00007FFF)
+#endif
+
+/* From limits.h instead */
+#ifndef DBL_MIN
+#define DBL_MIN		4.94065645841246544e-324
+#define FLT_MIN		((float)1.40129846432481707e-45)
+#endif
+#ifndef DBL_MAX
+#define DBL_MAX		1.79769313486231470e+308
+#define FLT_MAX		((float)3.40282346638528860e+38)
+#endif
+
+/* Max size that must be added to a so that we know Size to make
+   adressable obj. */
+typedef long		my_ptrdiff_t;
+#define MY_ALIGN(A,L)	(((A) + (L) - 1) & ~((L) - 1))
+#define ALIGN_SIZE(A)	MY_ALIGN((A),sizeof(double))
+/* Size to make adressable obj. */
+#define ALIGN_PTR(A, t) ((t*) MY_ALIGN((A),sizeof(t)))
+			 /* Offset of filed f in structure t */
+#define OFFSET(t, f)	((size_t)(char *)&((t *)0)->f)
+#define ADD_TO_PTR(ptr,size,type) (type) ((byte*) (ptr)+size)
+#define PTR_BYTE_DIFF(A,B) (my_ptrdiff_t) ((byte*) (A) - (byte*) (B))
+
+#define NullS		(char *) 0
+/* Nowdays we do not support MessyDos */
+#ifndef NEAR
+#define NEAR				/* Who needs segments ? */
+#define FAR				/* On a good machine */
+#ifndef HUGE_PTR
+#define HUGE_PTR
+#endif
+#endif
+#if defined(__IBMC__) || defined(__IBMCPP__)
+#define STDCALL _System _Export
+#elif !defined( STDCALL)
+#define STDCALL
+#endif
+
+/* Typdefs for easyier portability */
+
+#if defined(VOIDTYPE)
+typedef void	*gptr;		/* Generic pointer */
+#else
+typedef char	*gptr;		/* Generic pointer */
+#endif
+#ifndef HAVE_INT_8_16_32
+typedef char	int8;		/* Signed integer >= 8	bits */
+typedef short	int16;		/* Signed integer >= 16 bits */
+#endif
+#ifndef HAVE_UCHAR
+typedef unsigned char	uchar;	/* Short for unsigned char */
+#endif
+typedef unsigned char	uint8;	/* Short for unsigned integer >= 8  bits */
+typedef unsigned short	uint16; /* Short for unsigned integer >= 16 bits */
+
+#if SIZEOF_INT == 4
+#ifndef HAVE_INT_8_16_32
+typedef int		int32;
+#endif
+typedef unsigned int	uint32; /* Short for unsigned integer >= 32 bits */
+#elif SIZEOF_LONG == 4
+#ifndef HAVE_INT_8_16_32
+typedef long		int32;
+#endif
+typedef unsigned long	uint32; /* Short for unsigned integer >= 32 bits */
+#else
+error "Neither int or long is of 4 bytes width"
+#endif
+
+#if !defined(HAVE_ULONG) && !defined(HAVE_LINUXTHREADS) && !defined(__USE_MISC)
+typedef unsigned long	ulong;	/* Short for unsigned long */
+#endif
+#ifndef longlong_defined
+#if defined(HAVE_LONG_LONG) && SIZEOF_LONG != 8
+typedef unsigned long long int ulonglong; /* ulong or unsigned long long */
+typedef long long int longlong;
+#else
+typedef unsigned long	ulonglong;	/* ulong or unsigned long long */
+typedef long		longlong;
+#endif
+#endif
+
+#ifdef USE_RAID
+/* The following is done with a if to not get problems with pre-processors
+   with late define evaluation */
+#if SIZEOF_OFF_T == 4
+#define SYSTEM_SIZEOF_OFF_T 4
+#else
+#define SYSTEM_SIZEOF_OFF_T 8
+#endif
+#undef  SIZEOF_OFF_T
+#define SIZEOF_OFF_T	    8
+#else
+#define SYSTEM_SIZEOF_OFF_T SIZEOF_OFF_T
+#endif /* USE_RAID */
+
+#if SIZEOF_OFF_T > 4
+typedef ulonglong my_off_t;
+#else
+typedef unsigned long my_off_t;
+#endif
+#define MY_FILEPOS_ERROR	(~(my_off_t) 0)
+#if !defined(__WIN__) && !defined(OS2)
+typedef off_t os_off_t;
+#endif
+
+#if defined(__WIN__)
+#define socket_errno	WSAGetLastError()
+#define SOCKET_EINTR	WSAEINTR 
+#define SOCKET_EAGAIN	WSAEINPROGRESS
+#define SOCKET_ENFILE	ENFILE
+#define SOCKET_EMFILE	EMFILE
+#elif defined(OS2)
+#define socket_errno	sock_errno()
+#define SOCKET_EINTR	SOCEINTR 
+#define SOCKET_EAGAIN	SOCEINPROGRESS
+#define SOCKET_EWOULDBLOCK SOCEWOULDBLOCK
+#define SOCKET_ENFILE	SOCENFILE
+#define SOCKET_EMFILE	SOCEMFILE
+#define closesocket(A)	soclose(A)
+#else /* Unix */
+#define socket_errno	errno
+#define closesocket(A)	close(A)
+#define SOCKET_EINTR	EINTR
+#define SOCKET_EAGAIN	EAGAIN
+#define SOCKET_EWOULDBLOCK EWOULDBLOCK
+#define SOCKET_ENFILE	ENFILE
+#define SOCKET_EMFILE	EMFILE
+#endif
+
+typedef uint8		int7;	/* Most effective integer 0 <= x <= 127 */
+typedef short		int15;	/* Most effective integer 0 <= x <= 32767 */
+typedef char		*my_string; /* String of characters */
+typedef unsigned long	size_s; /* Size of strings (In string-funcs) */
+typedef int		myf;	/* Type of MyFlags in my_funcs */
+#ifndef byte_defined
+typedef char		byte;	/* Smallest addressable unit */
+#endif
+typedef char		my_bool; /* Small bool */
+#if !defined(bool) && !defined(bool_defined) && (!defined(HAVE_BOOL) || !defined(__cplusplus))
+typedef char		bool;	/* Ordinary boolean values 0 1 */
+#endif
+	/* Macros for converting *constants* to the right type */
+#define INT8(v)		(int8) (v)
+#define INT16(v)	(int16) (v)
+#define INT32(v)	(int32) (v)
+#define MYF(v)		(myf) (v)
+
+/* Defines to make it possible to prioritize register assignments. No
+   longer needed with moder compilers */
+#ifndef USING_X
+#define reg1 register
+#define reg2 register
+#define reg3 register
+#define reg4 register
+#define reg5 register
+#define reg6 register
+#define reg7 register
+#define reg8 register
+#define reg9 register
+#define reg10 register
+#define reg11 register
+#define reg12 register
+#define reg13 register
+#define reg14 register
+#define reg15 register
+#define reg16 register
+#endif
+
+/* Defines for time function */
+#define SCALE_SEC	100
+#define SCALE_USEC	10000
+#define MY_HOW_OFTEN_TO_ALARM	2	/* How often we want info on screen */
+#define MY_HOW_OFTEN_TO_WRITE	1000	/* How often we want info on screen */
+
+/*
+** Define-funktions for reading and storing in machine independent format
+**  (low byte first)
+*/
+
+/* Optimized store functions for Intel x86 */
+#ifdef __i386__
+#define sint2korr(A)	(*((int16 *) (A)))
+#define sint3korr(A)	((int32) ((((uchar) (A)[2]) & 128) ? \
+				  (((uint32) 255L << 24) | \
+				   (((uint32) (uchar) (A)[2]) << 16) |\
+				   (((uint32) (uchar) (A)[1]) << 8) | \
+				   ((uint32) (uchar) (A)[0])) : \
+				  (((uint32) (uchar) (A)[2]) << 16) |\
+				  (((uint32) (uchar) (A)[1]) << 8) | \
+				  ((uint32) (uchar) (A)[0])))
+#define sint4korr(A)	(*((long *) (A)))
+#define uint2korr(A)	(*((uint16 *) (A)))
+#define uint3korr(A)	(long) (*((unsigned long *) (A)) & 0xFFFFFF)
+#define uint4korr(A)	(*((unsigned long *) (A)))
+#define uint5korr(A)	((ulonglong)(((uint32) ((uchar) (A)[0])) +\
+				    (((uint32) ((uchar) (A)[1])) << 8) +\
+				    (((uint32) ((uchar) (A)[2])) << 16) +\
+				    (((uint32) ((uchar) (A)[3])) << 24)) +\
+			 	    (((ulonglong) ((uchar) (A)[4])) << 32))
+#define uint8korr(A)	(*((ulonglong *) (A)))
+#define sint8korr(A)	(*((longlong *) (A)))
+#define int2store(T,A)	*((uint16*) (T))= (uint16) (A)
+#define int3store(T,A)		{ *(T)=  (uchar) ((A));\
+				  *(T+1)=(uchar) (((uint) (A) >> 8));\
+				  *(T+2)=(uchar) (((A) >> 16)); }
+#define int4store(T,A)	*((long *) (T))= (long) (A)
+#define int5store(T,A)	{ *(T)= (uchar)((A));\
+			  *((T)+1)=(uchar) (((A) >> 8));\
+			  *((T)+2)=(uchar) (((A) >> 16));\
+			  *((T)+3)=(uchar) (((A) >> 24)); \
+			  *((T)+4)=(uchar) (((A) >> 32)); }
+#define int8store(T,A)	*((ulonglong *) (T))= (ulonglong) (A)
+
+typedef union {
+  double v;
+  long m[2];
+} doubleget_union;
+#define doubleget(V,M)	{ ((doubleget_union *)&V)->m[0] = *((long*) M); \
+			  ((doubleget_union *)&V)->m[1] = *(((long*) M)+1); }
+#define doublestore(T,V) { *((long *) T) = ((doubleget_union *)&V)->m[0]; \
+			   *(((long *) T)+1) = ((doubleget_union *)&V)->m[1]; }
+#define float4get(V,M) { *((long *) &(V)) = *((long*) (M)); }
+#define float8get(V,M) doubleget((V),(M))
+#define float4store(V,M) memcpy((byte*) V,(byte*) (&M),sizeof(float))
+#define float8store(V,M) doublestore((V),(M))
+#endif /* __i386__ */ 
+
+#ifndef sint2korr
+#define sint2korr(A)	(int16) (((int16) ((uchar) (A)[0])) +\
+				 ((int16) ((int16) (A)[1]) << 8))
+#define sint3korr(A)	((int32) ((((uchar) (A)[2]) & 128) ? \
+				  (((uint32) 255L << 24) | \
+				   (((uint32) (uchar) (A)[2]) << 16) |\
+				   (((uint32) (uchar) (A)[1]) << 8) | \
+				   ((uint32) (uchar) (A)[0])) : \
+				  (((uint32) (uchar) (A)[2]) << 16) |\
+				  (((uint32) (uchar) (A)[1]) << 8) | \
+				  ((uint32) (uchar) (A)[0])))
+#define sint4korr(A)	(int32) (((int32) ((uchar) (A)[0])) +\
+				(((int32) ((uchar) (A)[1]) << 8)) +\
+				(((int32) ((uchar) (A)[2]) << 16)) +\
+				(((int32) ((int16) (A)[3]) << 24)))
+#define sint8korr(A)	(longlong) uint8korr(A)
+#define uint2korr(A)	(uint16) (((uint16) ((uchar) (A)[0])) +\
+				  ((uint16) ((uchar) (A)[1]) << 8))
+#define uint3korr(A)	(uint32) (((uint32) ((uchar) (A)[0])) +\
+				  (((uint32) ((uchar) (A)[1])) << 8) +\
+				  (((uint32) ((uchar) (A)[2])) << 16))
+#define uint4korr(A)	(uint32) (((uint32) ((uchar) (A)[0])) +\
+				  (((uint32) ((uchar) (A)[1])) << 8) +\
+				  (((uint32) ((uchar) (A)[2])) << 16) +\
+				  (((uint32) ((uchar) (A)[3])) << 24))
+#define uint5korr(A)	((ulonglong)(((uint32) ((uchar) (A)[0])) +\
+				    (((uint32) ((uchar) (A)[1])) << 8) +\
+				    (((uint32) ((uchar) (A)[2])) << 16) +\
+				    (((uint32) ((uchar) (A)[3])) << 24)) +\
+			 	    (((ulonglong) ((uchar) (A)[4])) << 32))
+#define uint8korr(A)	((ulonglong)(((uint32) ((uchar) (A)[0])) +\
+				    (((uint32) ((uchar) (A)[1])) << 8) +\
+				    (((uint32) ((uchar) (A)[2])) << 16) +\
+				    (((uint32) ((uchar) (A)[3])) << 24)) +\
+			(((ulonglong) (((uint32) ((uchar) (A)[4])) +\
+				    (((uint32) ((uchar) (A)[5])) << 8) +\
+				    (((uint32) ((uchar) (A)[6])) << 16) +\
+				    (((uint32) ((uchar) (A)[7])) << 24))) <<\
+			 	    32))
+#define int2store(T,A)		{ uint def_temp= (uint) (A) ;\
+				  *((uchar*) (T))=  (uchar)(def_temp); \
+				  *((uchar*) (T+1))=(uchar)((def_temp >> 8)); }
+#define int3store(T,A)		{ /*lint -save -e734 */\
+				  *((T))=(char) ((A));\
+				  *((T)+1)=(char) (((A) >> 8));\
+				  *((T)+2)=(char) (((A) >> 16)); \
+				  /*lint -restore */}
+#define int4store(T,A)		{ *(T)=(char) ((A));\
+				  *((T)+1)=(char) (((A) >> 8));\
+				  *((T)+2)=(char) (((A) >> 16));\
+				  *((T)+3)=(char) (((A) >> 24)); }
+#define int5store(T,A)		{ *(T)=((A));\
+				  *((T)+1)=(((A) >> 8));\
+				  *((T)+2)=(((A) >> 16));\
+				  *((T)+3)=(((A) >> 24)); \
+				  *((T)+4)=(((A) >> 32)); }
+#define int8store(T,A)		{ uint def_temp= (uint) (A), def_temp2= (uint) ((A) >> 32); \
+				  int4store((T),def_temp); \
+				  int4store((T+4),def_temp2); \
+				}
+#ifdef WORDS_BIGENDIAN
+#define float4store(T,A)    { *(T)= ((byte *) &A)[3];\
+                              *((T)+1)=(char) ((byte *) &A)[2];\
+                              *((T)+2)=(char) ((byte *) &A)[1];\
+                              *((T)+3)=(char) ((byte *) &A)[0]; }
+
+#define float4get(V,M)      { float def_temp;\
+                              ((byte*) &def_temp)[0]=(M)[3];\
+                              ((byte*) &def_temp)[1]=(M)[2];\
+                              ((byte*) &def_temp)[2]=(M)[1];\
+                              ((byte*) &def_temp)[3]=(M)[0];\
+                              (V)=def_temp; }
+#define float8store(T,V)    { *(T)= ((byte *) &V)[7];\
+                              *((T)+1)=(char) ((byte *) &V)[6];\
+                              *((T)+2)=(char) ((byte *) &V)[5];\
+                              *((T)+3)=(char) ((byte *) &V)[4];\
+                              *((T)+4)=(char) ((byte *) &V)[3];\
+                              *((T)+5)=(char) ((byte *) &V)[2];\
+                              *((T)+6)=(char) ((byte *) &V)[1];\
+                              *((T)+7)=(char) ((byte *) &V)[0]; }
+
+#define float8get(V,M)	    { double def_temp;\
+                              ((byte*) &def_temp)[0]=(M)[7];\
+                              ((byte*) &def_temp)[1]=(M)[6];\
+                              ((byte*) &def_temp)[2]=(M)[5];\
+                              ((byte*) &def_temp)[3]=(M)[4];\
+                              ((byte*) &def_temp)[4]=(M)[3];\
+                              ((byte*) &def_temp)[5]=(M)[2];\
+                              ((byte*) &def_temp)[6]=(M)[1];\
+                              ((byte*) &def_temp)[7]=(M)[0];\
+			      (V) = def_temp; }
+#else
+#define float4get(V,M)   memcpy_fixed((byte*) &V,(byte*) (M),sizeof(float))
+#define float4store(V,M) memcpy_fixed((byte*) V,(byte*) (&M),sizeof(float))
+
+#if defined(__FLOAT_WORD_ORDER) && (__FLOAT_WORD_ORDER == __BIG_ENDIAN)
+#define doublestore(T,V)    { *(T)= ((byte *) &V)[4];\
+                              *((T)+1)=(char) ((byte *) &V)[5];\
+                              *((T)+2)=(char) ((byte *) &V)[6];\
+                              *((T)+3)=(char) ((byte *) &V)[7];\
+                              *((T)+4)=(char) ((byte *) &V)[0];\
+                              *((T)+5)=(char) ((byte *) &V)[1];\
+                              *((T)+6)=(char) ((byte *) &V)[2];\
+                              *((T)+7)=(char) ((byte *) &V)[3]; }
+#define doubleget(V,M) { double def_temp;\
+                              ((byte*) &def_temp)[0]=(M)[4];\
+                              ((byte*) &def_temp)[1]=(M)[5];\
+                              ((byte*) &def_temp)[2]=(M)[6];\
+                              ((byte*) &def_temp)[3]=(M)[7];\
+                              ((byte*) &def_temp)[4]=(M)[0];\
+                              ((byte*) &def_temp)[5]=(M)[1];\
+                              ((byte*) &def_temp)[6]=(M)[2];\
+                              ((byte*) &def_temp)[7]=(M)[3];\
+			      (V) = def_temp; }
+#endif /* __FLOAT_WORD_ORDER */
+
+#define float8get(V,M)   doubleget((V),(M))
+#define float8store(V,M) doublestore((V),(M))
+#endif /* WORDS_BIGENDIAN */
+
+#endif /* sint2korr */
+
+/* Define-funktions for reading and storing in machine format from/to
+   short/long to/from some place in memory V should be a (not
+   register) variable, M is a pointer to byte */
+
+#ifdef WORDS_BIGENDIAN
+
+#define ushortget(V,M)	{ V = (uint16) (((uint16) ((uchar) (M)[1]))+\
+					((uint16) ((uint16) (M)[0]) << 8)); }
+#define shortget(V,M)	{ V = (short) (((short) ((uchar) (M)[1]))+\
+				       ((short) ((short) (M)[0]) << 8)); }
+#define longget(V,M)	{ int32 def_temp;\
+			  ((byte*) &def_temp)[0]=(M)[0];\
+			  ((byte*) &def_temp)[1]=(M)[1];\
+			  ((byte*) &def_temp)[2]=(M)[2];\
+			  ((byte*) &def_temp)[3]=(M)[3];\
+			    (V)=def_temp; }
+#define ulongget(V,M)	{ uint32 def_temp;\
+			  ((byte*) &def_temp)[0]=(M)[0];\
+			  ((byte*) &def_temp)[1]=(M)[1];\
+			  ((byte*) &def_temp)[2]=(M)[2];\
+			  ((byte*) &def_temp)[3]=(M)[3];\
+			    (V)=def_temp; }
+#define shortstore(T,A) { uint def_temp=(uint) (A) ;\
+			  *(T+1)=(char)(def_temp); \
+			  *(T+0)=(char)(def_temp >> 8); }
+#define longstore(T,A)	{ *((T)+3)=((A));\
+			  *((T)+2)=(((A) >> 8));\
+			  *((T)+1)=(((A) >> 16));\
+			  *((T)+0)=(((A) >> 24)); }
+
+#define doubleget(V,M)	 memcpy((byte*) &V,(byte*) (M),sizeof(double))
+#define doublestore(T,V) memcpy((byte*) (T),(byte*) &V,sizeof(double))
+#define longlongget(V,M) memcpy((byte*) &V,(byte*) (M),sizeof(ulonglong))
+#define longlongstore(T,V) memcpy((byte*) (T),(byte*) &V,sizeof(ulonglong))
+
+#else
+
+#define ushortget(V,M)	{ V = uint2korr(M); }
+#define shortget(V,M)	{ V = sint2korr(M); }
+#define longget(V,M)	{ V = sint4korr(M); }
+#define ulongget(V,M)   { V = uint4korr(M); }
+#define shortstore(T,V) int2store(T,V)
+#define longstore(T,V)	int4store(T,V)
+#ifndef doubleget
+#define doubleget(V,M)	 memcpy_fixed((byte*) &V,(byte*) (M),sizeof(double))
+#define doublestore(T,V) memcpy_fixed((byte*) (T),(byte*) &V,sizeof(double))
+#endif /* doubleget */
+#define longlongget(V,M) memcpy_fixed((byte*) &V,(byte*) (M),sizeof(ulonglong))
+#define longlongstore(T,V) memcpy_fixed((byte*) (T),(byte*) &V,sizeof(ulonglong))
+
+#endif /* WORDS_BIGENDIAN */
+
+/* sprintf does not always return the number of bytes :- */
+#ifdef SPRINTF_RETURNS_INT
+#define my_sprintf(buff,args) sprintf args
+#else
+#ifdef SPRINTF_RETURNS_PTR
+#define my_sprintf(buff,args) ((int)(sprintf args - buff))
+#else
+#define my_sprintf(buff,args) sprintf args,strlen(buff)
+#endif
+#endif
+
+#ifndef THREAD
+#define thread_safe_increment(V,L) (V)++
+#define thread_safe_add(V,C,L)     (V)+=(C)
+#define thread_safe_sub(V,C,L)     (V)-=(C)
+#define statistic_increment(V,L)   (V)++
+#define statistic_add(V,C,L)       (V)+=(C)
+#endif
+
+#endif /* _global_h */

Added: packages/gpsdrive/branches/etch/src/mysql/my_list.h
===================================================================
--- packages/gpsdrive/branches/etch/src/mysql/my_list.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/mysql/my_list.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,47 @@
+/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
+   
+   This library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Library General Public
+   License as published by the Free Software Foundation; either
+   version 2 of the License, or (at your option) any later version.
+   
+   This library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Library General Public License for more details.
+   
+   You should have received a copy of the GNU Library General Public
+   License along with this library; if not, write to the Free
+   Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+   MA 02111-1307, USA */
+
+#ifndef _list_h_
+#define _list_h_
+
+#ifdef	__cplusplus
+extern "C" {
+#endif
+
+typedef struct st_list {
+  struct st_list *prev,*next;
+  void *data;
+} LIST;
+
+typedef int (*list_walk_action)(void *,void *);
+
+extern LIST *list_add(LIST *root,LIST *element);
+extern LIST *list_delete(LIST *root,LIST *element);
+extern LIST *list_cons(void *data,LIST *root);
+extern LIST *list_reverse(LIST *root);
+extern void list_free(LIST *root,pbool free_data);
+extern uint list_length(LIST *list);
+extern int list_walk(LIST *list,list_walk_action action,gptr argument);
+
+#define rest(a) ((a)->next)
+#define list_push(a,b) (a)=list_cons((b),(a))
+#define list_pop(A) {LIST *old=(A); (A)=list_delete(old,old) ; my_free((gptr) old,MYF(MY_FAE)); }
+
+#ifdef	__cplusplus
+}
+#endif
+#endif

Added: packages/gpsdrive/branches/etch/src/mysql/my_net.h
===================================================================
--- packages/gpsdrive/branches/etch/src/mysql/my_net.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/mysql/my_net.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,83 @@
+/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
+   
+   This library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Library General Public
+   License as published by the Free Software Foundation; either
+   version 2 of the License, or (at your option) any later version.
+   
+   This library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Library General Public License for more details.
+   
+   You should have received a copy of the GNU Library General Public
+   License along with this library; if not, write to the Free
+   Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+   MA 02111-1307, USA */
+
+/* thread safe version of some common functions */
+
+/* for thread safe my_inet_ntoa */
+#ifdef	__cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+#if !defined(MSDOS) && !defined(__WIN__) && !defined(__BEOS__)
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+#ifdef HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif
+#ifdef HAVE_ARPA_INET_H
+#include <arpa/inet.h>
+#endif
+#endif /* !defined(MSDOS) && !defined(__WIN__) */
+
+void my_inet_ntoa(struct in_addr in, char *buf);
+
+/*
+  Handling of gethostbyname_r()
+*/
+
+#if !defined(HPUX)
+struct hostent;
+#endif /* HPUX */
+#if !defined(HAVE_GETHOSTBYNAME_R)
+struct hostent *my_gethostbyname_r(const char *name,
+				   struct hostent *result, char *buffer,
+				   int buflen, int *h_errnop);
+void my_gethostbyname_r_free();
+#elif defined(HAVE_PTHREAD_ATTR_CREATE) || defined(_AIX) || defined(HAVE_GETHOSTBYNAME_R_GLIBC2_STYLE)
+struct hostent *my_gethostbyname_r(const char *name,
+				   struct hostent *result, char *buffer,
+				   int buflen, int *h_errnop);
+#define my_gethostbyname_r_free()
+#if !defined(HAVE_GETHOSTBYNAME_R_GLIBC2_STYLE) && !defined(HPUX)
+#define GETHOSTBYNAME_BUFF_SIZE sizeof(struct hostent_data)
+#endif /* !defined(HAVE_GETHOSTBYNAME_R_GLIBC2_STYLE) */
+
+#elif defined(HAVE_GETHOSTBYNAME_R_RETURN_INT)
+#define GETHOSTBYNAME_BUFF_SIZE sizeof(struct hostent_data)
+struct hostent *my_gethostbyname_r(const char *name,
+				   struct hostent *result, char *buffer,
+				   int buflen, int *h_errnop);
+#define my_gethostbyname_r_free()
+#else
+#define my_gethostbyname_r(A,B,C,D,E) gethostbyname_r((A),(B),(C),(D),(E))
+#define my_gethostbyname_r_free()
+#endif /* !defined(HAVE_GETHOSTBYNAME_R) */
+
+#ifndef GETHOSTBYNAME_BUFF_SIZE
+#define GETHOSTBYNAME_BUFF_SIZE 2048
+#endif
+
+/* On SCO you get a link error when refering to h_errno */
+#ifdef SCO
+#undef h_errno
+#define h_errno errno
+#endif
+
+#ifdef	__cplusplus
+}
+#endif

Added: packages/gpsdrive/branches/etch/src/mysql/my_no_pthread.h
===================================================================
--- packages/gpsdrive/branches/etch/src/mysql/my_no_pthread.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/mysql/my_no_pthread.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,32 @@
+/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
+   
+   This library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Library General Public
+   License as published by the Free Software Foundation; either
+   version 2 of the License, or (at your option) any later version.
+   
+   This library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Library General Public License for more details.
+   
+   You should have received a copy of the GNU Library General Public
+   License along with this library; if not, write to the Free
+   Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+   MA 02111-1307, USA */
+
+/*
+  This undefs some pthread mutex locks when one isn't using threads
+  to make thread safe code, that should also work in single thread
+  environment, easier to use.
+*/
+
+#if !defined(_my_no_pthread_h) && !defined(THREAD)
+#define _my_no_pthread_h
+
+#define pthread_mutex_init(A,B)
+#define pthread_mutex_lock(A)
+#define pthread_mutex_unlock(A)
+#define pthread_mutex_destroy(A)
+
+#endif

Added: packages/gpsdrive/branches/etch/src/mysql/my_pthread.h
===================================================================
--- packages/gpsdrive/branches/etch/src/mysql/my_pthread.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/mysql/my_pthread.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,619 @@
+/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
+   
+   This library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Library General Public
+   License as published by the Free Software Foundation; either
+   version 2 of the License, or (at your option) any later version.
+   
+   This library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Library General Public License for more details.
+   
+   You should have received a copy of the GNU Library General Public
+   License along with this library; if not, write to the Free
+   Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+   MA 02111-1307, USA */
+
+/* Defines to make different thread packages compatible */
+
+#ifndef _my_pthread_h
+#define _my_pthread_h
+
+#include <errno.h>
+#ifndef ETIME
+#define ETIME ETIMEDOUT				/* For FreeBSD */
+#endif
+
+#ifdef  __cplusplus
+extern "C" {
+#endif /* __cplusplus */ 
+
+#if defined(__WIN__) || defined(OS2)
+
+#ifdef OS2
+typedef ULONG     HANDLE;
+typedef ULONG     DWORD;
+typedef int sigset_t;
+#endif
+
+#ifdef OS2
+typedef HMTX             pthread_mutex_t;
+#else
+typedef CRITICAL_SECTION pthread_mutex_t;
+#endif
+typedef HANDLE		 pthread_t;
+typedef struct thread_attr {
+    DWORD dwStackSize ;
+    DWORD dwCreatingFlag ;
+    int priority ;
+} pthread_attr_t ;
+
+typedef struct { int dummy; } pthread_condattr_t;
+
+/* Implementation of posix conditions */
+
+typedef struct st_pthread_link {
+  DWORD thread_id;
+  struct st_pthread_link *next;
+} pthread_link;
+
+typedef struct {
+  uint32 waiting;
+#ifdef OS2
+  HEV    semaphore;
+#else
+  HANDLE semaphore;
+#endif
+} pthread_cond_t;
+
+
+#ifndef OS2
+struct timespec {		/* For pthread_cond_timedwait() */
+    time_t tv_sec;
+    long tv_nsec;
+};
+#endif
+
+typedef int pthread_mutexattr_t;
+#define win_pthread_self my_thread_var->pthread_self
+#ifdef OS2
+#define pthread_handler_decl(A,B) void * _Optlink A(void *B)
+typedef void * (_Optlink *pthread_handler)(void *);
+#else
+#define pthread_handler_decl(A,B) void * __cdecl A(void *B)
+typedef void * (__cdecl *pthread_handler)(void *);
+#endif
+
+void win_pthread_init(void);
+int win_pthread_setspecific(void *A,void *B,uint length);
+int pthread_create(pthread_t *,pthread_attr_t *,pthread_handler,void *);
+int pthread_cond_init(pthread_cond_t *cond, const pthread_condattr_t *attr);
+int pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex);
+int pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex,
+			   struct timespec *abstime);
+int pthread_cond_signal(pthread_cond_t *cond);
+int pthread_cond_broadcast(pthread_cond_t *cond);
+int pthread_cond_destroy(pthread_cond_t *cond);
+int pthread_attr_init(pthread_attr_t *connect_att);
+int pthread_attr_setstacksize(pthread_attr_t *connect_att,DWORD stack);
+int pthread_attr_setprio(pthread_attr_t *connect_att,int priority);
+int pthread_attr_destroy(pthread_attr_t *connect_att);
+struct tm *localtime_r(const time_t *timep,struct tm *tmp);
+
+void pthread_exit(void *a);	 /* was #define pthread_exit(A) ExitThread(A)*/
+
+#ifndef OS2
+#define ETIMEDOUT 145		    /* Win32 doesn't have this */
+#define getpid() GetCurrentThreadId()
+#endif
+#define pthread_self() win_pthread_self
+#define HAVE_LOCALTIME_R		1
+#define _REENTRANT			1
+#define HAVE_PTHREAD_ATTR_SETSTACKSIZE	1
+
+#ifdef USE_TLS					/* For LIBMYSQL.DLL */
+#undef SAFE_MUTEX				/* This will cause conflicts */
+#define pthread_key(T,V)  DWORD V
+#define pthread_key_create(A,B) ((*A=TlsAlloc())==0xFFFFFFFF)
+#define pthread_getspecific(A) (TlsGetValue(A))
+#define my_pthread_getspecific(T,A) ((T) TlsGetValue(A))
+#define my_pthread_getspecific_ptr(T,V) ((T) TlsGetValue(V))
+#define my_pthread_setspecific_ptr(T,V) (!TlsSetValue((T),(V)))
+#define pthread_setspecific(A,B) (!TlsSetValue((A),(B)))
+#else
+#define pthread_key(T,V) __declspec(thread) T V
+#define pthread_key_create(A,B) pthread_dummy(0)
+#define pthread_getspecific(A) (&(A))
+#define my_pthread_getspecific(T,A) (&(A))
+#define my_pthread_getspecific_ptr(T,V) (V)
+#define my_pthread_setspecific_ptr(T,V) ((T)=(V),0)
+#define pthread_setspecific(A,B) win_pthread_setspecific(&(A),(B),sizeof(A))
+#endif /* USE_TLS */
+
+#define pthread_equal(A,B) ((A) == (B))
+#ifdef OS2
+int pthread_mutex_init (pthread_mutex_t *, const pthread_mutexattr_t *);
+int pthread_mutex_lock (pthread_mutex_t *);
+int pthread_mutex_unlock (pthread_mutex_t *);
+int pthread_mutex_destroy (pthread_mutex_t *);
+#define my_pthread_setprio(A,B)  DosSetPriority(PRTYS_THREAD,PRTYC_NOCHANGE, B, A)
+#define pthread_kill(A,B) raise(B)
+#define pthread_exit(A) pthread_dummy()
+#else
+#define pthread_mutex_init(A,B)  InitializeCriticalSection(A)
+#define pthread_mutex_lock(A)	 (EnterCriticalSection(A),0)
+#define pthread_mutex_unlock(A)  LeaveCriticalSection(A)
+#define pthread_mutex_destroy(A) DeleteCriticalSection(A)
+#define my_pthread_setprio(A,B)  SetThreadPriority(GetCurrentThread(), (B))
+#define pthread_kill(A,B) pthread_dummy(0)
+#endif /* OS2 */
+
+/* Dummy defines for easier code */
+#define pthread_attr_setdetachstate(A,B) pthread_dummy(0)
+#define my_pthread_attr_setprio(A,B) pthread_attr_setprio(A,B)
+#define pthread_attr_setscope(A,B)
+#define pthread_detach_this_thread()
+#define pthread_condattr_init(A)
+#define pthread_condattr_destroy(A)
+
+/*Irena: compiler does not like this: */
+/*#define my_pthread_getprio(pthread_t thread_id) pthread_dummy(0) */
+#define my_pthread_getprio(thread_id) pthread_dummy(0)
+
+#elif defined(HAVE_UNIXWARE7_THREADS)
+
+#include <thread.h>
+#include <synch.h>
+
+#ifndef _REENTRANT
+#define _REENTRANT
+#endif
+
+#define HAVE_NONPOSIX_SIGWAIT
+#define pthread_t thread_t
+#define pthread_cond_t cond_t
+#define pthread_mutex_t mutex_t
+#define pthread_key_t thread_key_t
+typedef int pthread_attr_t;			/* Needed by Unixware 7.0.0 */
+
+#define pthread_key_create(A,B) thr_keycreate((A),(B))
+
+#define pthread_handler_decl(A,B) void *A(void *B)
+#define pthread_key(T,V) pthread_key_t V
+
+void *	my_pthread_getspecific_imp(pthread_key_t key);
+#define my_pthread_getspecific(A,B) ((A) my_pthread_getspecific_imp(B))
+#define my_pthread_getspecific_ptr(T,V) my_pthread_getspecific(T,V)
+
+#define pthread_setspecific(A,B) thr_setspecific(A,B)
+#define my_pthread_setspecific_ptr(T,V) pthread_setspecific(T,V)
+
+#define pthread_create(A,B,C,D) thr_create(NULL,65536L,(C),(D),THR_DETACHED,(A))
+#define pthread_cond_init(a,b) cond_init((a),USYNC_THREAD,NULL)
+#define pthread_cond_destroy(a) cond_destroy(a)
+#define pthread_cond_signal(a) cond_signal(a)
+#define pthread_cond_wait(a,b) cond_wait((a),(b))
+#define pthread_cond_timedwait(a,b,c) cond_timedwait((a),(b),(c))
+#define pthread_cond_broadcast(a) cond_broadcast(a)
+
+#define pthread_mutex_init(a,b) mutex_init((a),USYNC_THREAD,NULL)
+#define pthread_mutex_lock(a) mutex_lock(a)
+#define pthread_mutex_unlock(a) mutex_unlock(a)
+#define pthread_mutex_destroy(a) mutex_destroy(a)
+
+#define pthread_self() thr_self()
+#define pthread_exit(A) thr_exit(A)
+#define pthread_equal(A,B) (((A) == (B)) ? 1 : 0)
+#define pthread_kill(A,B) thr_kill((A),(B))
+#define HAVE_PTHREAD_KILL
+
+#define pthread_sigmask(A,B,C) thr_sigsetmask((A),(B),(C))
+
+extern int my_sigwait(const sigset_t *set,int *sig);
+
+#define pthread_detach_this_thread() pthread_dummy(0)
+
+#define pthread_attr_init(A) pthread_dummy(0)
+#define pthread_attr_destroy(A) pthread_dummy(0)
+#define pthread_attr_setscope(A,B) pthread_dummy(0)
+#define pthread_attr_setdetachstate(A,B) pthread_dummy(0)
+#define my_pthread_setprio(A,B) pthread_dummy (0)
+#define my_pthread_getprio(A) pthread_dummy (0)
+#define my_pthread_attr_setprio(A,B) pthread_dummy(0)
+
+#else /* Normal threads */
+
+#ifdef HAVE_rts_threads
+#define sigwait org_sigwait
+#include <signal.h>
+#undef sigwait
+#endif
+#undef _REENTRANT			/* Fix if _REENTRANT is in pthread.h */
+#include <pthread.h>
+#ifndef _REENTRANT
+#define _REENTRANT
+#endif
+#ifdef HAVE_THR_SETCONCURRENCY
+#include <thread.h>			/* Probably solaris */
+#endif
+#ifdef HAVE_SCHED_H
+#include <sched.h>
+#endif
+#ifdef HAVE_SYNCH_H
+#include <synch.h>
+#endif
+#if defined(__EMX__) && (!defined(EMX_PTHREAD_REV) || (EMX_PTHREAD_REV < 2))
+#error Requires at least rev 2 of EMX pthreads library.
+#endif
+
+extern int my_pthread_getprio(pthread_t thread_id);
+
+#define pthread_key(T,V) pthread_key_t V
+#define my_pthread_getspecific_ptr(T,V) my_pthread_getspecific(T,(V))
+#define my_pthread_setspecific_ptr(T,V) pthread_setspecific(T,(void*) (V))
+#define pthread_detach_this_thread()
+#define pthread_handler_decl(A,B) void *A(void *B)
+typedef void *(* pthread_handler)(void *);
+
+/* Test first for RTS or FSU threads */
+
+#if defined(PTHREAD_SCOPE_GLOBAL) && !defined(PTHREAD_SCOPE_SYSTEM)
+#define HAVE_rts_threads
+extern int my_pthread_create_detached;
+#define pthread_sigmask(A,B,C) sigprocmask((A),(B),(C))
+#define PTHREAD_CREATE_DETACHED &my_pthread_create_detached
+#define PTHREAD_SCOPE_SYSTEM  PTHREAD_SCOPE_GLOBAL
+#define PTHREAD_SCOPE_PROCESS PTHREAD_SCOPE_LOCAL
+#define USE_ALARM_THREAD
+#elif defined(HAVE_mit_thread)
+#define USE_ALARM_THREAD
+#undef	HAVE_LOCALTIME_R
+#define HAVE_LOCALTIME_R
+#undef	HAVE_PTHREAD_ATTR_SETSCOPE
+#define HAVE_PTHREAD_ATTR_SETSCOPE
+#undef HAVE_GETHOSTBYNAME_R_GLIBC2_STYLE	/* If we are running linux */
+#undef HAVE_RWLOCK_T
+#undef HAVE_RWLOCK_INIT
+#undef HAVE_PTHREAD_RWLOCK_RDLOCK
+#undef HAVE_SNPRINTF
+
+#define sigset(A,B) pthread_signal((A),(void (*)(int)) (B))
+#define signal(A,B) pthread_signal((A),(void (*)(int)) (B))
+#define my_pthread_attr_setprio(A,B)
+#endif /* defined(PTHREAD_SCOPE_GLOBAL) && !defined(PTHREAD_SCOPE_SYSTEM) */
+
+#if defined(_BSDI_VERSION) && _BSDI_VERSION < 199910
+int sigwait(sigset_t *set, int *sig);
+#endif
+
+#if defined(HAVE_UNIXWARE7_POSIX)
+#undef HAVE_NONPOSIX_SIGWAIT
+#define HAVE_NONPOSIX_SIGWAIT	/* sigwait takes only 1 argument */
+#endif
+
+#ifndef HAVE_NONPOSIX_SIGWAIT
+#define my_sigwait(A,B) sigwait((A),(B))
+#else
+int my_sigwait(const sigset_t *set,int *sig);
+#endif
+
+#ifdef HAVE_NONPOSIX_PTHREAD_MUTEX_INIT
+#ifndef SAFE_MUTEX
+#define pthread_mutex_init(a,b) my_pthread_mutex_init((a),(b))
+extern int my_pthread_mutex_init(pthread_mutex_t *mp,
+				 const pthread_mutexattr_t *attr);
+#endif /* SAFE_MUTEX */
+#define pthread_cond_init(a,b) my_pthread_cond_init((a),(b))
+extern int my_pthread_cond_init(pthread_cond_t *mp,
+				const pthread_condattr_t *attr);
+#endif /* HAVE_NONPOSIX_PTHREAD_MUTEX_INIT */
+
+#if defined(HAVE_SIGTHREADMASK) && !defined(HAVE_PTHREAD_SIGMASK)
+#define pthread_sigmask(A,B,C) sigthreadmask((A),(B),(C))
+#endif
+
+#if !defined(HAVE_SIGWAIT) && !defined(HAVE_mit_thread) && !defined(HAVE_rts_threads) && !defined(sigwait) && !defined(alpha_linux_port) && !defined(HAVE_NONPOSIX_SIGWAIT) && !defined(HAVE_DEC_3_2_THREADS) && !defined(_AIX)
+int sigwait(sigset_t *setp, int *sigp);		/* Use our implemention */
+#endif
+#if !defined(HAVE_SIGSET) && !defined(HAVE_mit_thread) && !defined(sigset)
+#define sigset(A,B) do { struct sigaction s; sigset_t set;              \
+                         sigemptyset(&set);                             \
+                         s.sa_handler = (B);                            \
+                         s.sa_mask    = set;                            \
+                         s.sa_flags   = 0;                              \
+                         sigaction((A), &s, (struct sigaction *) NULL); \
+                       } while (0)
+#endif
+
+#ifndef my_pthread_setprio
+#if defined(HAVE_PTHREAD_SETPRIO_NP)		/* FSU threads */
+#define my_pthread_setprio(A,B) pthread_setprio_np((A),(B))
+#elif defined(HAVE_PTHREAD_SETPRIO)
+#define my_pthread_setprio(A,B) pthread_setprio((A),(B))
+#else
+extern void my_pthread_setprio(pthread_t thread_id,int prior);
+#endif
+#endif
+
+#ifndef my_pthread_attr_setprio
+#ifdef HAVE_PTHREAD_ATTR_SETPRIO
+#define my_pthread_attr_setprio(A,B) pthread_attr_setprio((A),(B))
+#else
+extern void my_pthread_attr_setprio(pthread_attr_t *attr, int priority);
+#endif
+#endif
+
+#if !defined(HAVE_PTHREAD_ATTR_SETSCOPE) || defined(HAVE_DEC_3_2_THREADS)
+#define pthread_attr_setscope(A,B)
+#undef	HAVE_GETHOSTBYADDR_R			/* No definition */
+#endif
+
+#if defined(HAVE_BROKEN_PTHREAD_COND_TIMEDWAIT) && !defined(SAFE_MUTEX)
+extern int my_pthread_cond_timedwait(pthread_cond_t *cond,
+				     pthread_mutex_t *mutex,
+				     struct timespec *abstime);
+#define pthread_cond_timedwait(A,B,C) my_pthread_cond_timedwait((A),(B),(C))
+#endif
+
+#if defined(OS2)
+#define my_pthread_getspecific(T,A) ((T) &(A))
+#define pthread_setspecific(A,B) win_pthread_setspecific(&(A),(B),sizeof(A))
+#elif !defined( HAVE_NONPOSIX_PTHREAD_GETSPECIFIC)
+#define my_pthread_getspecific(A,B) ((A) pthread_getspecific(B))
+#else
+#define my_pthread_getspecific(A,B) ((A) my_pthread_getspecific_imp(B))
+void *my_pthread_getspecific_imp(pthread_key_t key);
+#endif /* OS2 */
+
+#ifndef HAVE_LOCALTIME_R
+struct tm *localtime_r(const time_t *clock, struct tm *res);
+#endif
+
+#ifdef HAVE_PTHREAD_CONDATTR_CREATE
+/* DCE threads on HPUX 10.20 */
+#define pthread_condattr_init pthread_condattr_create
+#define pthread_condattr_destroy pthread_condattr_delete
+#endif
+
+#ifdef HAVE_CTHREADS_WRAPPER			/* For MacOSX */
+#define pthread_cond_destroy(A) pthread_dummy(0)
+#define pthread_mutex_destroy(A) pthread_dummy(0)
+#define pthread_attr_delete(A) pthread_dummy(0)
+#define pthread_condattr_delete(A) pthread_dummy(0)
+#define pthread_attr_setstacksize(A,B) pthread_dummy(0)
+#define pthread_equal(A,B) ((A) == (B))
+#define pthread_cond_timedwait(a,b,c) pthread_cond_wait((a),(b))
+#define pthread_attr_init(A) pthread_attr_create(A)
+#define pthread_attr_destroy(A) pthread_attr_delete(A)
+#define pthread_attr_setdetachstate(A,B) pthread_dummy(0)
+#define pthread_create(A,B,C,D) pthread_create((A),*(B),(C),(D))
+#define pthread_sigmask(A,B,C) sigprocmask((A),(B),(C))
+#define pthread_kill(A,B) pthread_dummy(0)
+#undef	pthread_detach_this_thread
+#define pthread_detach_this_thread() { pthread_t tmp=pthread_self() ; pthread_detach(&tmp); }
+#endif
+
+#ifdef HAVE_DARWIN_THREADS
+#define pthread_sigmask(A,B,C) sigprocmask((A),(B),(C))
+#define pthread_kill(A,B) pthread_dummy(0)
+#define pthread_condattr_init(A) pthread_dummy(0)
+#define pthread_condattr_destroy(A) pthread_dummy(0)
+#define pthread_signal(A,B) pthread_dummy(0)
+#undef	pthread_detach_this_thread
+#define pthread_detach_this_thread() { pthread_t tmp=pthread_self() ; pthread_detach(tmp); }
+#undef sigset
+#define sigset(A,B) pthread_signal((A),(void (*)(int)) (B))
+#endif
+
+#if ((defined(HAVE_PTHREAD_ATTR_CREATE) && !defined(HAVE_SIGWAIT)) || defined(HAVE_DEC_3_2_THREADS)) && !defined(HAVE_CTHREADS_WRAPPER)
+/* This is set on AIX_3_2 and Siemens unix (and DEC OSF/1 3.2 too) */
+#define pthread_key_create(A,B) \
+		pthread_keycreate(A,(B) ?\
+				  (pthread_destructor_t) (B) :\
+				  (pthread_destructor_t) pthread_dummy)
+#define pthread_attr_init(A) pthread_attr_create(A)
+#define pthread_attr_destroy(A) pthread_attr_delete(A)
+#define pthread_attr_setdetachstate(A,B) pthread_dummy(0)
+#define pthread_create(A,B,C,D) pthread_create((A),*(B),(C),(D))
+#ifndef pthread_sigmask
+#define pthread_sigmask(A,B,C) sigprocmask((A),(B),(C))
+#endif
+#define pthread_kill(A,B) pthread_dummy(0)
+#undef	pthread_detach_this_thread
+#define pthread_detach_this_thread() { pthread_t tmp=pthread_self() ; pthread_detach(&tmp); }
+#else /* HAVE_PTHREAD_ATTR_CREATE && !HAVE_SIGWAIT */
+#define HAVE_PTHREAD_KILL
+#endif
+
+#endif /* defined(__WIN__) */
+
+#if defined(HPUX) && !defined(DONT_REMAP_PTHREAD_FUNCTIONS)
+#undef pthread_cond_timedwait
+#undef pthread_mutex_trylock
+#define pthread_cond_timedwait(a,b,c) my_pthread_cond_timedwait((a),(b),(c))
+#define pthread_mutex_trylock(a) my_pthread_mutex_trylock((a))
+int my_pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex,
+			      struct timespec *abstime);
+int my_pthread_mutex_trylock(pthread_mutex_t *mutex);
+#endif
+
+	/* safe_mutex adds checking to mutex for easier debugging */
+
+typedef struct st_safe_mutex_t
+{
+  pthread_mutex_t global,mutex;
+  char *file;
+  uint line,count;
+  pthread_t thread;
+} safe_mutex_t;
+
+int safe_mutex_init(safe_mutex_t *mp, const pthread_mutexattr_t *attr);
+int safe_mutex_lock(safe_mutex_t *mp,const char *file, uint line);
+int safe_mutex_unlock(safe_mutex_t *mp,const char *file, uint line);
+int safe_mutex_destroy(safe_mutex_t *mp,const char *file, uint line);
+int safe_cond_wait(pthread_cond_t *cond, safe_mutex_t *mp,const char *file,
+		   uint line);
+int safe_cond_timedwait(pthread_cond_t *cond, safe_mutex_t *mp,
+			struct timespec *abstime, const char *file, uint line);
+
+	/* Wrappers if safe mutex is actually used */
+#ifdef SAFE_MUTEX
+#undef pthread_mutex_init
+#undef pthread_mutex_lock
+#undef pthread_mutex_unlock
+#undef pthread_mutex_destroy
+#undef pthread_mutex_wait
+#undef pthread_mutex_timedwait
+#undef pthread_mutex_t
+#undef pthread_cond_wait
+#undef pthread_cond_timedwait
+#define pthread_mutex_init(A,B) safe_mutex_init((A),(B))
+#define pthread_mutex_lock(A) safe_mutex_lock((A),__FILE__,__LINE__)
+#define pthread_mutex_unlock(A) safe_mutex_unlock((A),__FILE__,__LINE__)
+#define pthread_mutex_destroy(A) safe_mutex_destroy((A),__FILE__,__LINE__)
+#define pthread_cond_wait(A,B) safe_cond_wait((A),(B),__FILE__,__LINE__)
+#define pthread_cond_timedwait(A,B,C) safe_cond_timedwait((A),(B),(C),__FILE__,__LINE__)
+#define pthread_mutex_trylock(A) pthread_mutex_lock(A)
+#define pthread_mutex_t safe_mutex_t
+#endif /* SAFE_MUTEX */
+
+	/* READ-WRITE thread locking */
+
+#if defined(USE_MUTEX_INSTEAD_OF_RW_LOCKS)
+/* use these defs for simple mutex locking */
+#define rw_lock_t pthread_mutex_t
+#define my_rwlock_init(A,B) pthread_mutex_init((A),(B))
+#define rw_rdlock(A) pthread_mutex_lock((A))
+#define rw_wrlock(A) pthread_mutex_lock((A))
+#define rw_unlock(A) pthread_mutex_unlock((A))
+#define rwlock_destroy(A) pthread_mutex_destroy((A))
+#elif defined(HAVE_PTHREAD_RWLOCK_RDLOCK)
+#define rw_lock_t pthread_rwlock_t
+#define my_rwlock_init(A,B) pthread_rwlock_init((A),(B))
+#define rw_rdlock(A) pthread_rwlock_rdlock(A)
+#define rw_wrlock(A) pthread_rwlock_wrlock(A)
+#define rw_unlock(A) pthread_rwlock_unlock(A)
+#define rwlock_destroy(A) pthread_rwlock_destroy(A)
+#elif defined(HAVE_RWLOCK_INIT)
+#ifdef HAVE_RWLOCK_T				/* For example Solaris 2.6-> */
+#define rw_lock_t rwlock_t
+#endif
+#define my_rwlock_init(A,B) rwlock_init((A),USYNC_THREAD,0)
+#else
+/* Use our own version of read/write locks */
+typedef struct _my_rw_lock_t {
+	pthread_mutex_t lock;		/* lock for structure		*/
+	pthread_cond_t	readers;	/* waiting readers		*/
+	pthread_cond_t	writers;	/* waiting writers		*/
+	int		state;		/* -1:writer,0:free,>0:readers	*/
+	int		waiters;	/* number of waiting writers	*/
+} my_rw_lock_t;
+
+#define rw_lock_t my_rw_lock_t
+#define rw_rdlock(A) my_rw_rdlock((A))
+#define rw_wrlock(A) my_rw_wrlock((A))
+#define rw_unlock(A) my_rw_unlock((A))
+#define rwlock_destroy(A) my_rwlock_destroy((A))
+
+extern	int	my_rwlock_init( my_rw_lock_t *, void * );
+extern	int	my_rwlock_destroy( my_rw_lock_t * );
+extern	int	my_rw_rdlock( my_rw_lock_t * );
+extern	int	my_rw_wrlock( my_rw_lock_t * );
+extern	int	my_rw_unlock( my_rw_lock_t * );
+#endif /* USE_MUTEX_INSTEAD_OF_RW_LOCKS */
+
+#define GETHOSTBYADDR_BUFF_SIZE 2048
+
+#ifndef HAVE_THR_SETCONCURRENCY
+#define thr_setconcurrency(A) pthread_dummy(0)
+#endif
+#if !defined(HAVE_PTHREAD_ATTR_SETSTACKSIZE) && ! defined(pthread_attr_setstacksize)
+#define pthread_attr_setstacksize(A,B) pthread_dummy(0)
+#endif
+
+/* Define mutex types */
+#define MY_MUTEX_INIT_SLOW   NULL
+#define MY_MUTEX_INIT_FAST   NULL
+#define MY_MUTEX_INIT_ERRCHK NULL
+#ifdef PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP
+extern pthread_mutexattr_t my_fast_mutexattr;
+#undef  MY_MUTEX_INIT_FAST
+#define MY_MUTEX_INIT_FAST &my_fast_mutexattr
+#endif
+#ifdef PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP
+extern pthread_mutexattr_t my_errchk_mutexattr;
+#undef MY_INIT_MUTEX_ERRCHK
+#define MY_INIT_MUTEX_ERRCHK &my_errchk_mutexattr
+#endif
+
+extern my_bool my_thread_global_init(void);
+extern void my_thread_global_end(void);
+extern my_bool my_thread_init(void);
+extern void my_thread_end(void);
+extern const char *my_thread_name(void);
+extern long my_thread_id(void);
+extern int pthread_no_free(void *);
+extern int pthread_dummy(int);
+
+/* All thread specific variables are in the following struct */
+
+#define THREAD_NAME_SIZE 10
+#if defined(__ia64__)
+#define DEFAULT_THREAD_STACK	(128*1024)
+#else
+#define DEFAULT_THREAD_STACK	(64*1024)
+#endif
+
+struct st_my_thread_var
+{
+  int thr_errno;
+  pthread_cond_t suspend;
+  pthread_mutex_t mutex;
+  pthread_mutex_t * volatile current_mutex;
+  pthread_cond_t * volatile current_cond;
+  pthread_t pthread_self;
+  long id;
+  int cmp_length;
+  int volatile abort;
+#ifndef DBUG_OFF
+  gptr dbug;
+  char name[THREAD_NAME_SIZE+1];
+#endif
+};
+
+extern struct st_my_thread_var *_my_thread_var(void) __attribute__ ((const));
+#define my_thread_var (_my_thread_var())
+#define my_errno my_thread_var->thr_errno
+
+	/* statistics_xxx functions are for not essential statistic */
+
+#ifndef thread_safe_increment
+#ifdef HAVE_ATOMIC_ADD
+#define thread_safe_increment(V,L) atomic_add(1,(atomic_t*) &V);
+#define thread_safe_add(V,C,L)     atomic_add((C),(atomic_t*) &V);
+#define thread_safe_sub(V,C,L)     atomic_sub((C),(atomic_t*) &V);
+#define statistic_increment(V,L)   thread_safe_increment((V),(L))
+#define statistic_add(V,C,L)       thread_safe_add((V),(C),(L))
+#else
+#define thread_safe_increment(V,L) \
+	pthread_mutex_lock((L)); (V)++; pthread_mutex_unlock((L));
+#define thread_safe_add(V,C,L) \
+	pthread_mutex_lock((L)); (V)+=(C); pthread_mutex_unlock((L));
+#define thread_safe_sub(V,C,L) \
+	pthread_mutex_lock((L)); (V)-=(C); pthread_mutex_unlock((L));
+#ifdef SAFE_STATISTICS
+#define statistic_increment(V,L)   thread_safe_increment((V),(L))
+#define statistic_add(V,C,L)       thread_safe_add((V),(C),(L))
+#else
+#define statistic_increment(V,L) (V)++
+#define statistic_add(V,C,L)     (V)+=(C)
+#endif /* SAFE_STATISTICS */
+#endif /* HAVE_ATOMIC_ADD */
+#endif /* thread_safe_increment */
+
+#ifdef  __cplusplus
+}
+#endif
+
+#endif /* _my_ptread_h */

Added: packages/gpsdrive/branches/etch/src/mysql/my_sys.h
===================================================================
--- packages/gpsdrive/branches/etch/src/mysql/my_sys.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/mysql/my_sys.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,624 @@
+/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
+   
+   This library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Library General Public
+   License as published by the Free Software Foundation; either
+   version 2 of the License, or (at your option) any later version.
+   
+   This library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Library General Public License for more details.
+   
+   You should have received a copy of the GNU Library General Public
+   License along with this library; if not, write to the Free
+   Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+   MA 02111-1307, USA */
+
+#ifndef _my_sys_h
+#define _my_sys_h
+#ifdef	__cplusplus
+extern "C" {
+#endif
+
+#ifdef HAVE_AIOWAIT
+#include <sys/asynch.h>			/* Used by record-cache */
+typedef struct my_aio_result {
+  aio_result_t result;
+  int	       pending;
+} my_aio_result;
+#endif
+
+#ifndef THREAD
+extern int NEAR my_errno;		/* Last error in mysys */
+#else
+#include <my_pthread.h>
+#endif
+
+#ifndef _m_ctype_h
+#include <m_ctype.h>                    /* for CHARSET_INFO */
+#endif
+
+#include <stdarg.h>  
+
+#define MYSYS_PROGRAM_USES_CURSES()  { error_handler_hook = my_message_curses;	mysys_uses_curses=1; }
+#define MYSYS_PROGRAM_DONT_USE_CURSES()  { error_handler_hook = my_message_no_curses; mysys_uses_curses=0;}
+#define MY_INIT(name);		{ my_progname= name; my_init(); }
+
+#define MAXMAPS		(4)	/* Number of error message maps */
+#define ERRMOD		(1000)	/* Max number of errors in a map */
+#define ERRMSGSIZE	(SC_MAXWIDTH)	/* Max length of a error message */
+#define NRERRBUFFS	(2)	/* Buffers for parameters */
+#define MY_FILE_ERROR	((uint) ~0)
+
+	/* General bitmaps for my_func's */
+#define MY_FFNF		1	/* Fatal if file not found */
+#define MY_FNABP	2	/* Fatal if not all bytes read/writen */
+#define MY_NABP		4	/* Error if not all bytes read/writen */
+#define MY_FAE		8	/* Fatal if any error */
+#define MY_WME		16	/* Write message on error */
+#define MY_WAIT_IF_FULL 32	/* Wait and try again if disk full error */
+#define MY_RAID         64      /* Support for RAID (not the "Johnson&Johnson"-s one ;) */
+#define MY_DONT_CHECK_FILESIZE 128	/* Option to init_io_cache() */
+#define MY_LINK_WARNING 32	/* my_redel() gives warning if links */
+#define MY_COPYTIME	64	/* my_redel() copys time */
+#define MY_DELETE_OLD	256	/* my_create_with_symlink() */
+#define MY_RESOLVE_LINK 128	/* my_realpath(); Only resolve links */
+#define MY_HOLD_ORIGINAL_MODES 128  /* my_copy() holds to file modes */
+#define MY_REDEL_MAKE_BACKUP 256
+#define MY_SEEK_NOT_DONE 32	/* my_lock may have to do a seek */
+#define MY_DONT_WAIT	64	/* my_lock() don't wait if can't lock */
+#define MY_ZEROFILL	32	/* my_malloc(), fill array with zero */
+#define MY_ALLOW_ZERO_PTR 64	/* my_realloc() ; zero ptr -> malloc */
+#define MY_FREE_ON_ERROR 128	/* my_realloc() ; Free old ptr on error */
+#define MY_HOLD_ON_ERROR 256	/* my_realloc() ; Return old ptr on error */
+#define MY_THREADSAFE	128	/* pread/pwrite:  Don't allow interrupts */
+
+#define MY_CHECK_ERROR	1	/* Params to my_end; Check open-close */
+#define MY_GIVE_INFO	2	/* Give time info about process*/
+
+#define ME_HIGHBYTE	8	/* Shift for colours */
+#define ME_NOCUR	1	/* Don't use curses message */
+#define ME_OLDWIN	2	/* Use old window */
+#define ME_BELL		4	/* Ring bell then printing message */
+#define ME_HOLDTANG	8	/* Don't delete last keys */
+#define ME_WAITTOT	16	/* Wait for errtime secs of for a action */
+#define ME_WAITTANG	32	/* Wait for a user action  */
+#define ME_NOREFRESH	64	/* Dont refresh screen */
+#define ME_NOINPUT	128	/* Dont use the input libary */
+#define ME_COLOUR1	((1 << ME_HIGHBYTE))	/* Possibly error-colours */
+#define ME_COLOUR2	((2 << ME_HIGHBYTE))
+#define ME_COLOUR3	((3 << ME_HIGHBYTE))
+
+	/* My seek flags */
+#define MY_SEEK_SET	0
+#define MY_SEEK_CUR	1
+#define MY_SEEK_END	2
+
+        /* My charsets_list flags */
+#define MY_NO_SETS       0
+#define MY_COMPILED_SETS 1      /* show compiled-in sets */
+#define MY_CONFIG_SETS   2      /* sets that have a *.conf file */
+#define MY_INDEX_SETS    4      /* all sets listed in the Index file */
+#define MY_LOADED_SETS    8      /* the sets that are currently loaded */
+
+	/* Some constants */
+#define MY_WAIT_FOR_USER_TO_FIX_PANIC	60	/* in seconds */
+#define MY_WAIT_GIVE_USER_A_MESSAGE	10	/* Every 10 times of prev */
+#define MIN_COMPRESS_LENGTH		50	/* Don't compress small bl. */
+#define KEYCACHE_BLOCK_SIZE		1024
+
+	/* root_alloc flags */
+#define MY_KEEP_PREALLOC	1
+
+	/* defines when allocating data */
+
+#ifdef SAFEMALLOC
+#define my_malloc(SZ,FLAG) _mymalloc( SZ, __FILE__, __LINE__, FLAG )
+#define my_malloc_ci(SZ,FLAG) _mymalloc( SZ, sFile, uLine, FLAG )
+#define my_realloc(PTR,SZ,FLAG) _myrealloc( PTR, SZ, __FILE__, __LINE__, FLAG )
+#define my_checkmalloc() _sanity( __FILE__, __LINE__ )
+#define my_free(PTR,FLAG) _myfree( PTR, __FILE__, __LINE__,FLAG)
+#define my_memdup(A,B,C) _my_memdup(A,B,__FILE__,__LINE__,C)
+#define my_strdup(A,C) _my_strdup(A,__FILE__,__LINE__,C)
+#define QUICK_SAFEMALLOC sf_malloc_quick=1
+#define NORMAL_SAFEMALLOC sf_malloc_quick=0
+extern uint sf_malloc_prehunc,sf_malloc_endhunc,sf_malloc_quick;
+extern ulonglong safemalloc_mem_limit;
+#define CALLER_INFO_PROTO   , const char *sFile, uint uLine
+#define CALLER_INFO         , __FILE__, __LINE__
+#define ORIG_CALLER_INFO    , sFile, uLine
+#else
+#define my_checkmalloc() (0)
+#undef TERMINATE
+#define TERMINATE(A) {}
+#define QUICK_SAFEMALLOC
+#define NORMAL_SAFEMALLOC
+extern gptr my_malloc(uint Size,myf MyFlags);
+#define my_malloc_ci(SZ,FLAG) my_malloc( SZ, FLAG )
+extern gptr my_realloc(gptr oldpoint,uint Size,myf MyFlags);
+extern void my_no_flags_free(gptr ptr);
+extern gptr my_memdup(const byte *from,uint length,myf MyFlags);
+extern my_string my_strdup(const char *from,myf MyFlags);
+#define my_free(PTR,FG) my_no_flags_free(PTR)
+#define CALLER_INFO_PROTO   /* nothing */
+#define CALLER_INFO         /* nothing */
+#define ORIG_CALLER_INFO    /* nothing */
+#endif
+
+#ifdef HAVE_ALLOCA
+#if defined(_AIX) && !defined(__GNUC__)
+#pragma alloca
+#endif /* _AIX */
+#if defined(__GNUC__) && !defined(HAVE_ALLOCA_H)
+#define alloca __builtin_alloca
+#endif /* GNUC */
+#define my_alloca(SZ) alloca((size_t) (SZ))
+#define my_afree(PTR) {}
+#else
+#define my_alloca(SZ) my_malloc(SZ,MYF(0))
+#define my_afree(PTR) my_free(PTR,MYF(MY_WME))
+#endif /* HAVE_ALLOCA */
+
+#ifdef MSDOS
+#ifdef __ZTC__
+void * __CDECL halloc(long count,size_t length);
+void   __CDECL hfree(void *ptr);
+#endif
+#if defined(USE_HALLOC)
+#if defined(_VCM_) || defined(M_IC80386)
+#undef USE_HALLOC
+#endif
+#endif
+#ifdef USE_HALLOC
+#define malloc(a) halloc((long) (a),1)
+#define free(a) hfree(a)
+#endif
+#endif /* MSDOS */
+
+#ifdef HAVE_ERRNO_AS_DEFINE
+#include <errno.h>			/* errno is a define */
+#else
+extern int errno;			/* declare errno */
+#endif
+extern const char ** NEAR my_errmsg[];
+extern char NEAR errbuff[NRERRBUFFS][ERRMSGSIZE];
+extern char *home_dir;			/* Home directory for user */
+extern char *my_progname;		/* program-name (printed in errors) */
+extern char NEAR curr_dir[];		/* Current directory for user */
+extern int (*error_handler_hook)(uint my_err, const char *str,myf MyFlags);
+extern int (*fatal_error_handler_hook)(uint my_err, const char *str,
+				       myf MyFlags);
+
+/* charsets */
+extern uint get_charset_number(const char *cs_name);
+extern const char *get_charset_name(uint cs_number);
+extern CHARSET_INFO *get_charset(uint cs_number, myf flags);
+extern my_bool set_default_charset(uint cs, myf flags);
+extern CHARSET_INFO *get_charset_by_name(const char *cs_name, myf flags);
+extern my_bool set_default_charset_by_name(const char *cs_name, myf flags);
+extern void free_charsets(void);
+extern char *list_charsets(myf want_flags); /* my_free() this string... */
+extern char *get_charsets_dir(char *buf);
+
+
+/* statistics */
+extern ulong	_my_cache_w_requests,_my_cache_write,_my_cache_r_requests,
+		_my_cache_read;
+extern ulong	 _my_blocks_used,_my_blocks_changed;
+extern ulong	my_file_opened,my_stream_opened, my_tmp_file_created;
+extern my_bool	key_cache_inited;
+
+					/* Point to current my_message() */
+extern void (*my_sigtstp_cleanup)(void),
+					/* Executed before jump to shell */
+	    (*my_sigtstp_restart)(void),
+	    (*my_abort_hook)(int);
+					/* Executed when comming from shell */
+extern int NEAR my_umask,		/* Default creation mask  */
+	   NEAR my_umask_dir,
+	   NEAR my_recived_signals,	/* Signals we have got */
+	   NEAR my_safe_to_handle_signal, /* Set when allowed to SIGTSTP */
+	   NEAR my_dont_interrupt;	/* call remember_intr when set */
+extern my_bool NEAR mysys_uses_curses, my_use_symdir;
+extern long lCurMemory,lMaxMemory;	/* from safemalloc */
+
+extern ulong	my_default_record_cache_size;
+extern my_bool NEAR my_disable_locking,NEAR my_disable_async_io,
+               NEAR my_disable_flush_key_blocks, NEAR my_disable_symlinks;
+extern char	wild_many,wild_one,wild_prefix;
+extern const char *charsets_dir;
+extern char *defaults_extra_file;
+
+typedef struct wild_file_pack	/* Struct to hold info when selecting files */
+{
+  uint		wilds;		/* How many wildcards */
+  uint		not_pos;	/* Start of not-theese-files */
+  my_string	*wild;		/* Pointer to wildcards */
+} WF_PACK;
+
+typedef struct st_typelib {	/* Different types saved here */
+  uint count;			/* How many types */
+  const char *name;			/* Name of typelib */
+  const char **type_names;
+} TYPELIB;
+
+enum cache_type {READ_CACHE,WRITE_CACHE,READ_FIFO,READ_NET,WRITE_NET};
+enum flush_type { FLUSH_KEEP, FLUSH_RELEASE, FLUSH_IGNORE_CHANGED,
+		  FLUSH_FORCE_WRITE};
+
+typedef struct st_record_cache	/* Used when cacheing records */
+{
+  File file;
+  int	rc_seek,error,inited;
+  uint	rc_length,read_length,reclength;
+  my_off_t rc_record_pos,end_of_file;
+  byte	*rc_buff,*rc_buff2,*rc_pos,*rc_end,*rc_request_pos;
+#ifdef HAVE_AIOWAIT
+  int	use_async_io;
+  my_aio_result aio_result;
+#endif
+  enum cache_type type;
+} RECORD_CACHE;
+
+enum file_type { UNOPEN = 0, FILE_BY_OPEN, FILE_BY_CREATE,
+		   STREAM_BY_FOPEN, STREAM_BY_FDOPEN, FILE_BY_MKSTEMP };
+
+extern struct my_file_info
+{
+  my_string		name;
+  enum file_type	type;
+#if defined(THREAD) && !defined(HAVE_PREAD)  
+  pthread_mutex_t	mutex;
+#endif
+} my_file_info[MY_NFILE];
+
+
+typedef struct st_dynamic_array {
+  char *buffer;
+  uint elements,max_element;
+  uint alloc_increment;
+  uint size_of_element;
+} DYNAMIC_ARRAY;
+
+typedef struct st_dynamic_string {
+  char *str;
+  uint length,max_length,alloc_increment;
+} DYNAMIC_STRING;
+
+
+typedef struct st_io_cache		/* Used when cacheing files */
+{
+  my_off_t pos_in_file,end_of_file;
+  byte	*rc_pos,*rc_end,*buffer,*rc_request_pos;
+  int (*read_function)(struct st_io_cache *,byte *,uint);
+  char *file_name;			/* if used with 'open_cached_file' */
+  char *dir,*prefix;
+  File file;
+  int	seek_not_done,error;
+  uint	buffer_length,read_length;
+  myf	myflags;			/* Flags used to my_read/my_write */
+  enum cache_type type;
+#ifdef HAVE_AIOWAIT
+  uint inited;
+  my_off_t aio_read_pos;
+  my_aio_result aio_result;
+#endif
+} IO_CACHE;
+
+typedef int (*qsort2_cmp)(const void *, const void *, const void *);
+
+	/* defines for mf_iocache */
+
+	/* Test if buffer is inited */
+#define my_b_clear(info) (info)->buffer=0
+#define my_b_inited(info) (info)->buffer
+#define my_b_EOF INT_MIN
+
+#define my_b_read(info,Buffer,Count) \
+  ((info)->rc_pos + (Count) <= (info)->rc_end ?\
+   (memcpy(Buffer,(info)->rc_pos,(size_t) (Count)), \
+    ((info)->rc_pos+=(Count)),0) :\
+   (*(info)->read_function)((info),Buffer,Count))
+
+#define my_b_get(info) \
+  ((info)->rc_pos != (info)->rc_end ?\
+   ((info)->rc_pos++, (int) (uchar) (info)->rc_pos[-1]) :\
+   _my_b_get(info))
+
+#define my_b_write(info,Buffer,Count) \
+  ((info)->rc_pos + (Count) <= (info)->rc_end ?\
+   (memcpy((info)->rc_pos,Buffer,(size_t) (Count)), \
+    ((info)->rc_pos+=(Count)),0) :\
+   _my_b_write(info,Buffer,Count))
+
+	/* my_b_write_byte dosn't have any err-check */
+#define my_b_write_byte(info,chr) \
+  (((info)->rc_pos < (info)->rc_end) ?\
+   ((*(info)->rc_pos++)=(chr)) :\
+   (_my_b_write(info,0,0) , ((*(info)->rc_pos++)=(chr))))
+
+#define my_b_fill_cache(info) \
+  (((info)->rc_end=(info)->rc_pos),(*(info)->read_function)(info,0,0))
+
+#define my_b_tell(info) ((info)->pos_in_file + \
+			 ((info)->rc_pos - (info)->rc_request_pos))
+
+#define my_b_bytes_in_cache(info) ((uint) ((info)->rc_end - (info)->rc_pos))
+
+typedef struct st_changeable_var {
+  const char *name;			/* Name of variable */
+  long *varptr;				/* Pointer to variable */
+  long def_value,			/* Default value */
+       min_value,			/* Min allowed value */
+       max_value,			/* Max allowed value */
+       sub_size,			/* Subtract this from given value */
+       block_size;			/* Value should be a mult. of this */
+} CHANGEABLE_VAR;
+
+
+/* structs for alloc_root */
+
+#ifndef ST_USED_MEM_DEFINED
+#define ST_USED_MEM_DEFINED
+typedef struct st_used_mem {			/* struct for once_alloc */
+  struct st_used_mem *next;			/* Next block in use */
+  unsigned int left;				/* memory left in block  */
+  unsigned int size;				/* Size of block */
+} USED_MEM;
+
+typedef struct st_mem_root {
+  USED_MEM *free;
+  USED_MEM *used;
+  USED_MEM *pre_alloc;
+  unsigned int	min_malloc;
+  unsigned int	block_size;
+
+  void (*error_handler)(void);
+} MEM_ROOT;
+#endif
+
+	/* Prototypes for mysys and my_func functions */
+
+extern int my_copy(const char *from,const char *to,myf MyFlags);
+extern int my_append(const char *from,const char *to,myf MyFlags);
+extern int my_delete(const char *name,myf MyFlags);
+extern int my_getwd(my_string buf,uint size,myf MyFlags);
+extern int my_setwd(const char *dir,myf MyFlags);
+extern int my_lock(File fd,int op,my_off_t start, my_off_t length,myf MyFlags);
+extern gptr my_once_alloc(uint Size,myf MyFlags);
+extern void my_once_free(void);
+extern my_string my_tempnam(const char *dir,const char *pfx,myf MyFlags);
+extern File my_open(const char *FileName,int Flags,myf MyFlags);
+extern File my_register_filename(File fd, const char *FileName,
+				 enum file_type type_of_file,
+				 uint error_message_number, myf MyFlags);
+extern File my_create(const char *FileName,int CreateFlags,
+		      int AccsesFlags, myf MyFlags);
+extern int my_close(File Filedes,myf MyFlags);
+extern int my_mkdir(const char *dir, int Flags, myf MyFlags);
+extern int my_readlink(char *to, const char *filename, myf MyFlags);
+extern int my_realpath(char *to, const char *filename, myf MyFlags);
+extern File my_create_with_symlink(const char *linkname, const char *filename,
+				   int createflags, int access_flags,
+				   myf MyFlags);
+extern int my_delete_with_symlink(const char *name, myf MyFlags);
+extern int my_rename_with_symlink(const char *from,const char *to,myf MyFlags);
+extern int my_symlink(const char *content, const char *linkname, myf MyFlags);
+extern uint my_read(File Filedes,byte *Buffer,uint Count,myf MyFlags);
+extern uint my_pread(File Filedes,byte *Buffer,uint Count,my_off_t offset,
+		     myf MyFlags);
+extern int my_rename(const char *from,const char *to,myf MyFlags);
+extern my_off_t my_seek(File fd,my_off_t pos,int whence,myf MyFlags);
+extern my_off_t my_tell(File fd,myf MyFlags);
+extern uint my_write(File Filedes,const byte *Buffer,uint Count,
+		     myf MyFlags);
+extern uint my_pwrite(File Filedes,const byte *Buffer,uint Count,
+		      my_off_t offset,myf MyFlags);
+extern uint my_fread(FILE *stream,byte *Buffer,uint Count,myf MyFlags);
+extern uint my_fwrite(FILE *stream,const byte *Buffer,uint Count,
+		      myf MyFlags);
+extern my_off_t my_fseek(FILE *stream,my_off_t pos,int whence,myf MyFlags);
+extern my_off_t my_ftell(FILE *stream,myf MyFlags);
+extern gptr _mymalloc(uint uSize,const char *sFile,
+		      uint uLine, myf MyFlag);
+extern gptr _myrealloc(gptr pPtr,uint uSize,const char *sFile,
+		       uint uLine, myf MyFlag);
+extern gptr my_multi_malloc _VARARGS((myf MyFlags, ...));
+extern void _myfree(gptr pPtr,const char *sFile,uint uLine, myf MyFlag);
+extern int _sanity(const char *sFile,unsigned int uLine);
+extern gptr _my_memdup(const byte *from,uint length,
+		       const char *sFile, uint uLine,myf MyFlag);
+extern my_string _my_strdup(const char *from, const char *sFile, uint uLine,
+			    myf MyFlag);
+#ifndef TERMINATE
+extern void TERMINATE(FILE *file);
+#endif
+extern void init_glob_errs(void);
+extern FILE *my_fopen(const char *FileName,int Flags,myf MyFlags);
+extern FILE *my_fdopen(File Filedes,const char *name, int Flags,myf MyFlags);
+extern int my_fclose(FILE *fd,myf MyFlags);
+extern int my_chsize(File fd,my_off_t newlength,myf MyFlags);
+extern int my_error _VARARGS((int nr,myf MyFlags, ...));
+extern int my_printf_error _VARARGS((uint my_err, const char *format,
+				     myf MyFlags, ...)
+				    __attribute__ ((format (printf, 2, 4))));
+extern int my_vsnprintf( char *str, size_t n,
+                                const char *format, va_list ap );
+extern int my_snprintf(char* to, size_t n, const char* fmt, ...);
+extern int my_message(uint my_err, const char *str,myf MyFlags);
+extern int my_message_no_curses(uint my_err, const char *str,myf MyFlags);
+extern int my_message_curses(uint my_err, const char *str,myf MyFlags);
+extern void my_init(void);
+extern void my_end(int infoflag);
+extern int my_redel(const char *from, const char *to, int MyFlags);
+extern int my_copystat(const char *from, const char *to, int MyFlags);
+extern my_string my_filename(File fd);
+
+#ifndef THREAD
+extern void dont_break(void);
+extern void allow_break(void);
+#else
+#define dont_break()
+#define allow_break()
+#endif
+
+extern void my_remember_signal(int signal_number,sig_handler (*func)(int));
+extern void caseup(my_string str,uint length);
+extern void casedn(my_string str,uint length);
+extern void caseup_str(my_string str);
+extern void casedn_str(my_string str);
+extern void case_sort(my_string str,uint length);
+extern uint dirname_part(my_string to,const char *name);
+extern uint dirname_length(const char *name);
+#define base_name(A) (A+dirname_length(A))
+extern int test_if_hard_path(const char *dir_name);
+extern char *convert_dirname(my_string name);
+extern void to_unix_path(my_string name);
+extern my_string fn_ext(const char *name);
+extern my_string fn_same(my_string toname,const char *name,int flag);
+extern my_string fn_format(my_string to,const char *name,const char *dsk,
+			   const char *form,int flag);
+extern size_s strlength(const char *str);
+extern void pack_dirname(my_string to,const char *from);
+extern uint unpack_dirname(my_string to,const char *from);
+extern uint cleanup_dirname(my_string to,const char *from);
+extern uint system_filename(my_string to,const char *from);
+extern my_string unpack_filename(my_string to,const char *from);
+extern my_string intern_filename(my_string to,const char *from);
+extern my_string directory_file_name(my_string dst, const char *src);
+extern int pack_filename(my_string to, const char *name, size_s max_length);
+extern my_string my_path(my_string to,const char *progname,
+			 const char *own_pathname_part);
+extern my_string my_load_path(my_string to, const char *path,
+			      const char *own_path_prefix);
+extern int wild_compare(const char *str,const char *wildstr);
+extern my_string my_strcasestr(const char *src,const char *suffix);
+extern int my_strcasecmp(const char *s,const char *t);
+extern int my_strsortcmp(const char *s,const char *t);
+extern int my_casecmp(const char *s,const char *t,uint length);
+extern int my_sortcmp(const char *s,const char *t,uint length);
+extern int my_sortncmp(const char *s,uint s_len, const char *t,uint t_len);
+extern WF_PACK *wf_comp(my_string str);
+extern int wf_test(struct wild_file_pack *wf_pack,const char *name);
+extern void wf_end(struct wild_file_pack *buffer);
+extern size_s strip_sp(my_string str);
+extern void get_date(my_string to,int timeflag,time_t use_time);
+extern void soundex(my_string out_pntr, my_string in_pntr,pbool remove_garbage);
+extern int init_record_cache(RECORD_CACHE *info,uint cachesize,File file,
+			     uint reclength,enum cache_type type,
+			     pbool use_async_io);
+extern int read_cache_record(RECORD_CACHE *info,byte *to);
+extern int end_record_cache(RECORD_CACHE *info);
+extern int write_cache_record(RECORD_CACHE *info,my_off_t filepos,
+			      const byte *record,uint length);
+extern int flush_write_cache(RECORD_CACHE *info);
+extern long my_clock(void);
+extern sig_handler sigtstp_handler(int signal_number);
+extern void handle_recived_signals(void);
+extern int init_key_cache(ulong use_mem,ulong leave_this_much_mem);
+extern byte *key_cache_read(File file,my_off_t filepos,byte* buff,uint length,
+			    uint block_length,int return_buffer);
+extern int key_cache_write(File file,my_off_t filepos,byte* buff,uint length,
+			   uint block_length,int force_write);
+extern int flush_key_blocks(int file, enum flush_type type);
+extern void end_key_cache(void);
+extern sig_handler my_set_alarm_variable(int signo);
+extern void my_string_ptr_sort(void *base,uint items,size_s size);
+extern void radixsort_for_str_ptr(uchar* base[], uint number_of_elements,
+				  size_s size_of_element,uchar *buffer[]);
+extern qsort_t qsort2(void *base_ptr, size_t total_elems, size_t size,
+		      qsort2_cmp cmp, void *cmp_argument);
+extern qsort2_cmp get_ptr_compare(uint);
+extern int init_io_cache(IO_CACHE *info,File file,uint cachesize,
+			 enum cache_type type,my_off_t seek_offset,
+			 pbool use_async_io, myf cache_myflags);
+extern my_bool reinit_io_cache(IO_CACHE *info,enum cache_type type,
+			       my_off_t seek_offset,pbool use_async_io,
+			       pbool clear_cache);
+extern int _my_b_read(IO_CACHE *info,byte *Buffer,uint Count);
+extern int _my_b_net_read(IO_CACHE *info,byte *Buffer,uint Count);
+extern int _my_b_get(IO_CACHE *info);
+extern int _my_b_async_read(IO_CACHE *info,byte *Buffer,uint Count);
+extern int _my_b_write(IO_CACHE *info,const byte *Buffer,uint Count);
+extern int my_block_write(IO_CACHE *info, const byte *Buffer,
+			  uint Count, my_off_t pos);
+extern int flush_io_cache(IO_CACHE *info);
+extern int end_io_cache(IO_CACHE *info);
+extern uint my_b_fill(IO_CACHE *info);
+extern void my_b_seek(IO_CACHE *info,my_off_t pos);
+extern uint my_b_gets(IO_CACHE *info, char *to, uint max_length);
+extern uint my_b_printf(IO_CACHE *info, const char* fmt, ...);
+extern uint my_b_vprintf(IO_CACHE *info, const char* fmt, va_list ap);
+extern my_bool open_cached_file(IO_CACHE *cache,const char *dir,
+				 const char *prefix, uint cache_size,
+				 myf cache_myflags);
+extern my_bool real_open_cached_file(IO_CACHE *cache);
+extern void close_cached_file(IO_CACHE *cache);
+File create_temp_file(char *to, const char *dir, const char *pfx,
+		      int mode, myf MyFlags);
+#define my_init_dynamic_array(A,B,C,D) init_dynamic_array(A,B,C,D CALLER_INFO)
+#define my_init_dynamic_array_ci(A,B,C,D) init_dynamic_array(A,B,C,D ORIG_CALLER_INFO)
+extern my_bool init_dynamic_array(DYNAMIC_ARRAY *array,uint element_size,
+	  uint init_alloc,uint alloc_increment CALLER_INFO_PROTO);
+extern my_bool insert_dynamic(DYNAMIC_ARRAY *array,gptr element);
+extern byte *alloc_dynamic(DYNAMIC_ARRAY *array);
+extern byte *pop_dynamic(DYNAMIC_ARRAY*);
+extern my_bool set_dynamic(DYNAMIC_ARRAY *array,gptr element,uint array_index);
+extern void get_dynamic(DYNAMIC_ARRAY *array,gptr element,uint array_index);
+extern void delete_dynamic(DYNAMIC_ARRAY *array);
+extern void delete_dynamic_element(DYNAMIC_ARRAY *array, uint array_index);
+extern void freeze_size(DYNAMIC_ARRAY *array);
+#define dynamic_array_ptr(array,array_index) ((array)->buffer+(array_index)*(array)->size_of_element)
+#define dynamic_element(array,array_index,type) ((type)((array)->buffer) +(array_index))
+#define push_dynamic(A,B) insert_dynamic(A,B)
+
+extern int find_type(my_string x,TYPELIB *typelib,uint full_name);
+extern void make_type(my_string to,uint nr,TYPELIB *typelib);
+extern const char *get_type(TYPELIB *typelib,uint nr);
+extern my_bool init_dynamic_string(DYNAMIC_STRING *str, const char *init_str,
+				   uint init_alloc,uint alloc_increment);
+extern my_bool dynstr_append(DYNAMIC_STRING *str, const char *append);
+my_bool dynstr_append_mem(DYNAMIC_STRING *str, const char *append,
+			  uint length);
+extern my_bool dynstr_set(DYNAMIC_STRING *str, const char *init_str);
+extern my_bool dynstr_realloc(DYNAMIC_STRING *str, ulong additional_size);
+extern void dynstr_free(DYNAMIC_STRING *str);
+void set_all_changeable_vars(CHANGEABLE_VAR *vars);
+my_bool set_changeable_var(my_string str,CHANGEABLE_VAR *vars);
+my_bool set_changeable_varval(const char *var, ulong val,
+			      CHANGEABLE_VAR *vars);
+#ifdef HAVE_MLOCK
+extern byte *my_malloc_lock(uint length,myf flags);
+extern void my_free_lock(byte *ptr,myf flags);
+#else
+#define my_malloc_lock(A,B) my_malloc((A),(B))
+#define my_free_lock(A,B) my_free((A),(B))
+#endif
+#define alloc_root_inited(A) ((A)->min_malloc != 0)
+void init_alloc_root(MEM_ROOT *mem_root, uint block_size, uint pre_alloc_size);
+gptr alloc_root(MEM_ROOT *mem_root,unsigned int Size);
+void free_root(MEM_ROOT *root, myf MyFLAGS);
+char *strdup_root(MEM_ROOT *root,const char *str);
+char *memdup_root(MEM_ROOT *root,const char *str,uint len);
+void load_defaults(const char *conf_file, const char **groups,
+		   int *argc, char ***argv);
+void free_defaults(char **argv);
+void print_defaults(const char *conf_file, const char **groups);
+my_bool my_compress(byte *, ulong *, ulong *);
+my_bool my_uncompress(byte *, ulong *, ulong *);
+byte *my_compress_alloc(const byte *packet, ulong *len, ulong *complen);
+ulong checksum(const byte *mem, uint count);
+
+#if defined(_MSC_VER) && !defined(__WIN__)
+extern void sleep(int sec);
+#endif
+#ifdef __WIN__
+extern my_bool have_tcpip;		/* Is set if tcpip is used */
+#endif
+
+#ifdef	__cplusplus
+}
+#endif
+#include "raid.h"
+#endif /* _my_sys_h */

Added: packages/gpsdrive/branches/etch/src/mysql/mysql.h
===================================================================
--- packages/gpsdrive/branches/etch/src/mysql/mysql.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/mysql/mysql.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,312 @@
+/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
+   
+   This library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Library General Public
+   License as published by the Free Software Foundation; either
+   version 2 of the License, or (at your option) any later version.
+   
+   This library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Library General Public License for more details.
+   
+   You should have received a copy of the GNU Library General Public
+   License along with this library; if not, write to the Free
+   Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+   MA 02111-1307, USA */
+
+/* defines for the libmysql library */
+
+#ifndef _mysql_h
+#define _mysql_h
+
+#ifdef __CYGWIN__     /* CYGWIN implements a UNIX API */
+#undef WIN
+#undef _WIN
+#undef _WIN32
+#undef _WIN64
+#undef __WIN__
+#endif
+
+#ifndef MYSQL_SERVER
+#ifdef	__cplusplus
+extern "C" {
+#endif
+#endif
+  
+#ifndef _global_h				/* If not standard header */
+#include <sys/types.h>
+#ifdef __LCC__
+#include <winsock.h>				/* For windows */
+#endif
+typedef char my_bool;
+#if (defined(_WIN32) || defined(_WIN64)) && !defined(__WIN__)
+#define __WIN__
+#endif
+#if !defined(__WIN__)
+#define STDCALL
+#else
+#define STDCALL __stdcall
+#endif
+typedef char * gptr;
+
+#ifndef ST_USED_MEM_DEFINED
+#define ST_USED_MEM_DEFINED
+typedef struct st_used_mem {			/* struct for once_alloc */
+  struct st_used_mem *next;			/* Next block in use */
+  unsigned int	left;				/* memory left in block  */
+  unsigned int	size;				/* size of block */
+} USED_MEM;
+typedef struct st_mem_root {
+  USED_MEM *free;
+  USED_MEM *used;
+  USED_MEM *pre_alloc;
+  unsigned int	min_malloc;
+  unsigned int	block_size;
+
+  void (*error_handler)(void);
+} MEM_ROOT;
+#endif
+
+#ifndef my_socket_defined
+#ifdef __WIN__
+#define my_socket SOCKET
+#else
+typedef int my_socket;
+#endif
+#endif
+#endif
+#include "mysql_com.h"
+#include "mysql_version.h"
+
+extern unsigned int mysql_port;
+extern char *mysql_unix_port;
+
+#define IS_PRI_KEY(n)	((n) & PRI_KEY_FLAG)
+#define IS_NOT_NULL(n)	((n) & NOT_NULL_FLAG)
+#define IS_BLOB(n)	((n) & BLOB_FLAG)
+#define IS_NUM(t)	((t) <= FIELD_TYPE_INT24 || (t) == FIELD_TYPE_YEAR)
+#define IS_NUM_FIELD(f)	 ((f)->flags & NUM_FLAG)
+#define INTERNAL_NUM_FIELD(f) (((f)->type <= FIELD_TYPE_INT24 && ((f)->type != FIELD_TYPE_TIMESTAMP || (f)->length == 14 || (f)->length == 8)) || (f)->type == FIELD_TYPE_YEAR)
+
+typedef struct st_mysql_field {
+  char *name;			/* Name of column */
+  char *table;			/* Table of column if column was a field */
+  char *def;			/* Default value (set by mysql_list_fields) */
+  enum enum_field_types type;	/* Type of field. Se mysql_com.h for types */
+  unsigned int length;		/* Width of column */
+  unsigned int max_length;	/* Max width of selected set */
+  unsigned int flags;		/* Div flags */
+  unsigned int decimals;	/* Number of decimals in field */
+} MYSQL_FIELD;
+
+typedef char **MYSQL_ROW;		/* return data as array of strings */
+typedef unsigned int MYSQL_FIELD_OFFSET; /* offset to current field */
+
+#if defined(NO_CLIENT_LONG_LONG)
+typedef unsigned long my_ulonglong;
+#elif defined (__WIN__)
+typedef unsigned __int64 my_ulonglong;
+#else
+typedef unsigned long long my_ulonglong;
+#endif
+
+#define MYSQL_COUNT_ERROR (~(my_ulonglong) 0)
+
+typedef struct st_mysql_rows {
+  struct st_mysql_rows *next;		/* list of rows */
+  MYSQL_ROW data;
+} MYSQL_ROWS;
+
+typedef MYSQL_ROWS *MYSQL_ROW_OFFSET;	/* offset to current row */
+
+typedef struct st_mysql_data {
+  my_ulonglong rows;
+  unsigned int fields;
+  MYSQL_ROWS *data;
+  MEM_ROOT alloc;
+} MYSQL_DATA;
+
+struct st_mysql_options {
+  unsigned int connect_timeout,client_flag;
+  my_bool compress,named_pipe;
+  unsigned int port;
+  char *host,*init_command,*user,*password,*unix_socket,*db;
+  char *my_cnf_file,*my_cnf_group, *charset_dir, *charset_name;
+  my_bool use_ssl;				/* if to use SSL or not */
+  char *ssl_key;				/* PEM key file */
+  char *ssl_cert;				/* PEM cert file */
+  char *ssl_ca;					/* PEM CA file */
+  char *ssl_capath;				/* PEM directory of CA-s? */
+};
+
+enum mysql_option { MYSQL_OPT_CONNECT_TIMEOUT, MYSQL_OPT_COMPRESS,
+		    MYSQL_OPT_NAMED_PIPE, MYSQL_INIT_COMMAND,
+		    MYSQL_READ_DEFAULT_FILE, MYSQL_READ_DEFAULT_GROUP,
+		    MYSQL_SET_CHARSET_DIR, MYSQL_SET_CHARSET_NAME,
+		    MYSQL_OPT_LOCAL_INFILE};
+
+enum mysql_status { MYSQL_STATUS_READY,MYSQL_STATUS_GET_RESULT,
+		    MYSQL_STATUS_USE_RESULT};
+
+typedef struct st_mysql {
+  NET		net;			/* Communication parameters */
+  gptr		connector_fd;		/* ConnectorFd for SSL */
+  char		*host,*user,*passwd,*unix_socket,*server_version,*host_info,
+		*info,*db;
+  unsigned int	port,client_flag,server_capabilities;
+  unsigned int	protocol_version;
+  unsigned int	field_count;
+  unsigned int 	server_status;
+  unsigned long thread_id;		/* Id for connection in server */
+  my_ulonglong affected_rows;
+  my_ulonglong insert_id;		/* id if insert on table with NEXTNR */
+  my_ulonglong extra_info;		/* Used by mysqlshow */
+  unsigned long packet_length;
+  enum mysql_status status;
+  MYSQL_FIELD	*fields;
+  MEM_ROOT	field_alloc;
+  my_bool	free_me;		/* If free in mysql_close */
+  my_bool	reconnect;		/* set to 1 if automatic reconnect */
+  struct st_mysql_options options;
+  char	        scramble_buff[9];
+  struct charset_info_st *charset;
+  unsigned int  server_language;
+} MYSQL;
+
+
+typedef struct st_mysql_res {
+  my_ulonglong row_count;
+  unsigned int	field_count, current_field;
+  MYSQL_FIELD	*fields;
+  MYSQL_DATA	*data;
+  MYSQL_ROWS	*data_cursor;
+  MEM_ROOT	field_alloc;
+  MYSQL_ROW	row;			/* If unbuffered read */
+  MYSQL_ROW	current_row;		/* buffer to current row */
+  unsigned long *lengths;		/* column lengths of current row */
+  MYSQL		*handle;		/* for unbuffered reads */
+  my_bool	eof;			/* Used my mysql_fetch_row */
+} MYSQL_RES;
+
+/* Functions to get information from the MYSQL and MYSQL_RES structures */
+/* Should definitely be used if one uses shared libraries */
+
+my_ulonglong STDCALL mysql_num_rows(MYSQL_RES *res);
+unsigned int STDCALL mysql_num_fields(MYSQL_RES *res);
+my_bool STDCALL mysql_eof(MYSQL_RES *res);
+MYSQL_FIELD *STDCALL mysql_fetch_field_direct(MYSQL_RES *res,
+					      unsigned int fieldnr);
+MYSQL_FIELD * STDCALL mysql_fetch_fields(MYSQL_RES *res);
+MYSQL_ROWS * STDCALL mysql_row_tell(MYSQL_RES *res);
+unsigned int STDCALL mysql_field_tell(MYSQL_RES *res);
+
+unsigned int STDCALL mysql_field_count(MYSQL *mysql);
+my_ulonglong STDCALL mysql_affected_rows(MYSQL *mysql);
+my_ulonglong STDCALL mysql_insert_id(MYSQL *mysql);
+unsigned int STDCALL mysql_errno(MYSQL *mysql);
+char * STDCALL mysql_error(MYSQL *mysql);
+char * STDCALL mysql_info(MYSQL *mysql);
+unsigned long STDCALL mysql_thread_id(MYSQL *mysql);
+const char * STDCALL mysql_character_set_name(MYSQL *mysql);
+
+MYSQL *		STDCALL mysql_init(MYSQL *mysql);
+#ifdef HAVE_OPENSSL
+int		STDCALL mysql_ssl_set(MYSQL *mysql, const char *key,
+				      const char *cert, const char *ca,
+				      const char *capath);
+char *		STDCALL mysql_ssl_cipher(MYSQL *mysql);
+int		STDCALL mysql_ssl_clear(MYSQL *mysql);
+#endif /* HAVE_OPENSSL */
+MYSQL *		STDCALL mysql_connect(MYSQL *mysql, const char *host,
+				      const char *user, const char *passwd);
+my_bool		STDCALL mysql_change_user(MYSQL *mysql, const char *user, 
+					  const char *passwd, const char *db);
+#if MYSQL_VERSION_ID >= 32200
+MYSQL *		STDCALL mysql_real_connect(MYSQL *mysql, const char *host,
+					   const char *user,
+					   const char *passwd,
+					   const char *db,
+					   unsigned int port,
+					   const char *unix_socket,
+					   unsigned int clientflag);
+#else
+MYSQL *		STDCALL mysql_real_connect(MYSQL *mysql, const char *host,
+					   const char *user,
+					   const char *passwd,
+					   unsigned int port,
+					   const char *unix_socket,
+					   unsigned int clientflag);
+#endif
+void		STDCALL mysql_close(MYSQL *sock);
+int		STDCALL mysql_select_db(MYSQL *mysql, const char *db);
+int		STDCALL mysql_query(MYSQL *mysql, const char *q);
+int		STDCALL mysql_send_query(MYSQL *mysql, const char *q,
+					 unsigned int length);
+int		STDCALL mysql_read_query_result(MYSQL *mysql);
+int		STDCALL mysql_real_query(MYSQL *mysql, const char *q,
+					unsigned int length);
+int		STDCALL mysql_create_db(MYSQL *mysql, const char *DB);
+int		STDCALL mysql_drop_db(MYSQL *mysql, const char *DB);
+int		STDCALL mysql_shutdown(MYSQL *mysql);
+int		STDCALL mysql_dump_debug_info(MYSQL *mysql);
+int		STDCALL mysql_refresh(MYSQL *mysql,
+				     unsigned int refresh_options);
+int		STDCALL mysql_kill(MYSQL *mysql,unsigned long pid);
+int		STDCALL mysql_ping(MYSQL *mysql);
+char *		STDCALL mysql_stat(MYSQL *mysql);
+char *		STDCALL mysql_get_server_info(MYSQL *mysql);
+char *		STDCALL mysql_get_client_info(void);
+char *		STDCALL mysql_get_host_info(MYSQL *mysql);
+unsigned int	STDCALL mysql_get_proto_info(MYSQL *mysql);
+MYSQL_RES *	STDCALL mysql_list_dbs(MYSQL *mysql,const char *wild);
+MYSQL_RES *	STDCALL mysql_list_tables(MYSQL *mysql,const char *wild);
+MYSQL_RES *	STDCALL mysql_list_fields(MYSQL *mysql, const char *table,
+					 const char *wild);
+MYSQL_RES *	STDCALL mysql_list_processes(MYSQL *mysql);
+MYSQL_RES *	STDCALL mysql_store_result(MYSQL *mysql);
+MYSQL_RES *	STDCALL mysql_use_result(MYSQL *mysql);
+int		STDCALL mysql_options(MYSQL *mysql,enum mysql_option option,
+				      const char *arg);
+void		STDCALL mysql_free_result(MYSQL_RES *result);
+void		STDCALL mysql_data_seek(MYSQL_RES *result,
+					my_ulonglong offset);
+MYSQL_ROW_OFFSET STDCALL mysql_row_seek(MYSQL_RES *result, MYSQL_ROW_OFFSET);
+MYSQL_FIELD_OFFSET STDCALL mysql_field_seek(MYSQL_RES *result,
+					   MYSQL_FIELD_OFFSET offset);
+MYSQL_ROW	STDCALL mysql_fetch_row(MYSQL_RES *result);
+unsigned long * STDCALL mysql_fetch_lengths(MYSQL_RES *result);
+MYSQL_FIELD *	STDCALL mysql_fetch_field(MYSQL_RES *result);
+unsigned long	STDCALL mysql_escape_string(char *to,const char *from,
+					    unsigned long from_length);
+unsigned long STDCALL mysql_real_escape_string(MYSQL *mysql,
+					       char *to,const char *from,
+					       unsigned long length);
+void		STDCALL mysql_debug(const char *debug);
+char *		STDCALL mysql_odbc_escape_string(MYSQL *mysql,
+						 char *to,
+						 unsigned long to_length,
+						 const char *from,
+						 unsigned long from_length,
+						 void *param,
+						 char *
+						 (*extend_buffer)
+						 (void *, char *to,
+						  unsigned long *length));
+void 		STDCALL myodbc_remove_escape(MYSQL *mysql,char *name);
+unsigned int	STDCALL mysql_thread_safe(void);
+
+  
+#define mysql_reload(mysql) mysql_refresh((mysql),REFRESH_GRANT)
+
+/* new api functions */
+
+#define HAVE_MYSQL_REAL_CONNECT
+
+#ifndef MYSQL_SERVER  
+#ifdef	__cplusplus
+}
+#endif
+#endif
+
+#endif

Added: packages/gpsdrive/branches/etch/src/mysql/mysql_com.h
===================================================================
--- packages/gpsdrive/branches/etch/src/mysql/mysql_com.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/mysql/mysql_com.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,239 @@
+/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
+   
+   This library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Library General Public
+   License as published by the Free Software Foundation; either
+   version 2 of the License, or (at your option) any later version.
+   
+   This library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Library General Public License for more details.
+   
+   You should have received a copy of the GNU Library General Public
+   License along with this library; if not, write to the Free
+   Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+   MA 02111-1307, USA */
+
+/*
+** Common definition between mysql server & client
+*/
+
+#ifndef _mysql_com_h
+#define _mysql_com_h
+
+
+#define NAME_LEN	64		/* Field/table name length */
+#define HOSTNAME_LENGTH 60
+#define USERNAME_LENGTH 16
+#define SERVER_VERSION_LENGTH 60
+
+#define LOCAL_HOST	"localhost"
+#define LOCAL_HOST_NAMEDPIPE "."
+
+#if defined(__WIN__) && !defined( _CUSTOMCONFIG_)
+#define MYSQL_NAMEDPIPE "MySQL"
+#define MYSQL_SERVICENAME "MySql"
+#endif /* __WIN__ */
+
+enum enum_server_command {COM_SLEEP,COM_QUIT,COM_INIT_DB,COM_QUERY,
+			  COM_FIELD_LIST,COM_CREATE_DB,COM_DROP_DB,COM_REFRESH,
+			  COM_SHUTDOWN,COM_STATISTICS,
+			  COM_PROCESS_INFO,COM_CONNECT,COM_PROCESS_KILL,
+			  COM_DEBUG,COM_PING,COM_TIME,COM_DELAYED_INSERT,
+			  COM_CHANGE_USER, COM_BINLOG_DUMP,
+                          COM_TABLE_DUMP, COM_CONNECT_OUT};
+
+#define NOT_NULL_FLAG	1		/* Field can't be NULL */
+#define PRI_KEY_FLAG	2		/* Field is part of a primary key */
+#define UNIQUE_KEY_FLAG 4		/* Field is part of a unique key */
+#define MULTIPLE_KEY_FLAG 8		/* Field is part of a key */
+#define BLOB_FLAG	16		/* Field is a blob */
+#define UNSIGNED_FLAG	32		/* Field is unsigned */
+#define ZEROFILL_FLAG	64		/* Field is zerofill */
+#define BINARY_FLAG	128
+/* The following are only sent to new clients */
+#define ENUM_FLAG	256		/* field is an enum */
+#define AUTO_INCREMENT_FLAG 512		/* field is a autoincrement field */
+#define TIMESTAMP_FLAG	1024		/* Field is a timestamp */
+#define SET_FLAG	2048		/* field is a set */
+#define NUM_FLAG	32768		/* Field is num (for clients) */
+#define PART_KEY_FLAG	16384		/* Intern; Part of some key */
+#define GROUP_FLAG	32768		/* Intern: Group field */
+#define UNIQUE_FLAG	65536		/* Intern: Used by sql_yacc */
+
+#define REFRESH_GRANT		1	/* Refresh grant tables */
+#define REFRESH_LOG		2	/* Start on new log file */
+#define REFRESH_TABLES		4	/* close all tables */
+#define REFRESH_HOSTS		8	/* Flush host cache */
+#define REFRESH_STATUS		16	/* Flush status variables */
+#define REFRESH_THREADS		32	/* Flush thread cache */
+#define REFRESH_SLAVE           64      /* Reset master info and restart slave
+					   thread */
+#define REFRESH_MASTER          128     /* Remove all bin logs in the index
+					   and truncate the index */
+
+/* The following can't be set with mysql_refresh() */
+#define REFRESH_READ_LOCK	16384	/* Lock tables for read */
+#define REFRESH_FAST		32768	/* Intern flag */
+
+#define CLIENT_LONG_PASSWORD	1	/* new more secure passwords */
+#define CLIENT_FOUND_ROWS	2	/* Found instead of affected rows */
+#define CLIENT_LONG_FLAG	4	/* Get all column flags */
+#define CLIENT_CONNECT_WITH_DB	8	/* One can specify db on connect */
+#define CLIENT_NO_SCHEMA	16	/* Don't allow database.table.column */
+#define CLIENT_COMPRESS		32	/* Can use compression protocol */
+#define CLIENT_ODBC		64	/* Odbc client */
+#define CLIENT_LOCAL_FILES	128	/* Can use LOAD DATA LOCAL */
+#define CLIENT_IGNORE_SPACE	256	/* Ignore spaces before '(' */
+#define CLIENT_CHANGE_USER	512	/* Support the mysql_change_user() */
+#define CLIENT_INTERACTIVE	1024	/* This is an interactive client */
+#define CLIENT_SSL              2048     /* Switch to SSL after handshake */
+#define CLIENT_IGNORE_SIGPIPE   4096     /* IGNORE sigpipes */
+#define CLIENT_TRANSACTIONS	8192	/* Client knows about transactions */
+
+#define SERVER_STATUS_IN_TRANS  1	/* Transaction has started */
+#define SERVER_STATUS_AUTOCOMMIT 2	/* Server in auto_commit mode */
+
+#define MYSQL_ERRMSG_SIZE	200
+#define NET_READ_TIMEOUT	30		/* Timeout on read */
+#define NET_WRITE_TIMEOUT	60		/* Timeout on write */
+#define NET_WAIT_TIMEOUT	8*60*60		/* Wait for new query */
+
+#ifndef Vio_defined
+#define Vio_defined
+#ifdef HAVE_VIO
+class Vio;					/* Fill Vio class in C++ */
+#else
+struct st_vio;					/* Only C */
+typedef struct st_vio Vio;
+#endif
+#endif
+
+#define MAX_CHAR_WIDTH		255	/* Max length for a CHAR colum */
+#define MAX_BLOB_WIDTH		8192	/* Default width for blob */
+
+typedef struct st_net {
+  Vio* vio;
+  my_socket fd;					/* For Perl DBI/dbd */
+  int fcntl;
+  unsigned char *buff,*buff_end,*write_pos,*read_pos;
+  char last_error[MYSQL_ERRMSG_SIZE];
+  unsigned int last_errno,max_packet,timeout,pkt_nr;
+  unsigned char error;
+  my_bool return_errno,compress;
+  my_bool no_send_ok; /* needed if we are doing several
+   queries in one command ( as in LOAD TABLE ... FROM MASTER ),
+   and do not want to confuse the client with OK at the wrong time
+		      */
+  unsigned long remain_in_buf,length, buf_length, where_b;
+  unsigned int *return_status;
+  unsigned char reading_or_writing;
+  char save_char;
+} NET;
+
+#define packet_error ((unsigned int) -1)
+
+enum enum_field_types { FIELD_TYPE_DECIMAL, FIELD_TYPE_TINY,
+			FIELD_TYPE_SHORT,  FIELD_TYPE_LONG,
+			FIELD_TYPE_FLOAT,  FIELD_TYPE_DOUBLE,
+			FIELD_TYPE_NULL,   FIELD_TYPE_TIMESTAMP,
+			FIELD_TYPE_LONGLONG,FIELD_TYPE_INT24,
+			FIELD_TYPE_DATE,   FIELD_TYPE_TIME,
+			FIELD_TYPE_DATETIME, FIELD_TYPE_YEAR,
+			FIELD_TYPE_NEWDATE,
+			FIELD_TYPE_ENUM=247,
+			FIELD_TYPE_SET=248,
+			FIELD_TYPE_TINY_BLOB=249,
+			FIELD_TYPE_MEDIUM_BLOB=250,
+			FIELD_TYPE_LONG_BLOB=251,
+			FIELD_TYPE_BLOB=252,
+			FIELD_TYPE_VAR_STRING=253,
+			FIELD_TYPE_STRING=254
+};
+
+#define FIELD_TYPE_CHAR FIELD_TYPE_TINY		/* For compability */
+#define FIELD_TYPE_INTERVAL FIELD_TYPE_ENUM	/* For compability */
+
+extern unsigned long max_allowed_packet;
+extern unsigned long net_buffer_length;
+
+#define net_new_transaction(net) ((net)->pkt_nr=0)
+
+int	my_net_init(NET *net, Vio* vio);
+void	net_end(NET *net);
+void	net_clear(NET *net);
+int	net_flush(NET *net);
+int	my_net_write(NET *net,const char *packet,unsigned long len);
+int	net_write_command(NET *net,unsigned char command,const char *packet,
+			  unsigned long len);
+int	net_real_write(NET *net,const char *packet,unsigned long len);
+unsigned int	my_net_read(NET *net);
+
+struct rand_struct {
+  unsigned long seed1,seed2,max_value;
+  double max_value_dbl;
+};
+
+  /* The following is for user defined functions */
+
+enum Item_result {STRING_RESULT,REAL_RESULT,INT_RESULT};
+
+typedef struct st_udf_args
+{
+  unsigned int arg_count;		/* Number of arguments */
+  enum Item_result *arg_type;		/* Pointer to item_results */
+  char **args;				/* Pointer to argument */
+  unsigned long *lengths;		/* Length of string arguments */
+  char *maybe_null;			/* Set to 1 for all maybe_null args */
+} UDF_ARGS;
+
+  /* This holds information about the result */
+
+typedef struct st_udf_init
+{
+  my_bool maybe_null;			/* 1 if function can return NULL */
+  unsigned int decimals;		/* for real functions */
+  unsigned int max_length;		/* For string functions */
+  char	  *ptr;				/* free pointer for function data */
+  my_bool const_item;			/* 0 if result is independent of arguments */
+} UDF_INIT;
+
+  /* Constants when using compression */
+#define NET_HEADER_SIZE 4		/* standard header size */
+#define COMP_HEADER_SIZE 3		/* compression header extra size */
+
+  /* Prototypes to password functions */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+  
+void randominit(struct rand_struct *,unsigned long seed1,
+		unsigned long seed2);
+double rnd(struct rand_struct *);
+void make_scrambled_password(char *to,const char *password);
+void get_salt_from_password(unsigned long *res,const char *password);
+void make_password_from_salt(char *to, unsigned long *hash_res);
+char *scramble(char *to,const char *message,const char *password,
+	       my_bool old_ver);
+my_bool check_scramble(const char *, const char *message,
+		       unsigned long *salt,my_bool old_ver);
+char *get_tty_password(char *opt_message);
+void hash_password(unsigned long *result, const char *password);
+
+/* Some other useful functions */
+
+void my_init(void);
+void load_defaults(const char *conf_file, const char **groups,
+		   int *argc, char ***argv);
+my_bool my_thread_init(void);
+void my_thread_end(void);
+
+#ifdef __cplusplus
+}
+#endif
+
+#define NULL_LENGTH ((unsigned long) ~0) /* For net_store_length */
+
+#endif

Added: packages/gpsdrive/branches/etch/src/mysql/mysql_version.h
===================================================================
--- packages/gpsdrive/branches/etch/src/mysql/mysql_version.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/mysql/mysql_version.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,22 @@
+/* Copyright Abandoned 1996, 1999, 2001 MySQL AB
+   This file is public domain and comes with NO WARRANTY of any kind */
+
+/* Version numbers for protocol & mysqld */
+
+#ifdef _CUSTOMCONFIG_
+#include <custom_conf.h>
+#else
+#define PROTOCOL_VERSION		10
+#define MYSQL_SERVER_VERSION		"3.23.52"
+#define MYSQL_SERVER_SUFFIX		""
+#define FRM_VER				6
+#define MYSQL_VERSION_ID		32352
+#define MYSQL_PORT			3306
+#define MYSQL_UNIX_ADDR			"/var/lib/mysql/mysql.sock"
+#define MYSQL_CONFIG_NAME		"my"
+
+/* mysqld compile time options */
+#ifndef MYSQL_CHARSET
+#define MYSQL_CHARSET			"latin1"
+#endif
+#endif

Added: packages/gpsdrive/branches/etch/src/mysql/mysqld_error.h
===================================================================
--- packages/gpsdrive/branches/etch/src/mysql/mysqld_error.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/mysql/mysqld_error.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,237 @@
+/* Copyright (C) 2000 MySQL AB
+
+   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 */
+
+/* Definefile for error messagenumbers */
+
+#define ER_HASHCHK 1000
+#define ER_NISAMCHK 1001
+#define ER_NO 1002
+#define ER_YES 1003
+#define ER_CANT_CREATE_FILE 1004
+#define ER_CANT_CREATE_TABLE 1005
+#define ER_CANT_CREATE_DB 1006
+#define ER_DB_CREATE_EXISTS 1007
+#define ER_DB_DROP_EXISTS 1008
+#define ER_DB_DROP_DELETE 1009
+#define ER_DB_DROP_RMDIR 1010
+#define ER_CANT_DELETE_FILE 1011
+#define ER_CANT_FIND_SYSTEM_REC 1012
+#define ER_CANT_GET_STAT 1013
+#define ER_CANT_GET_WD 1014
+#define ER_CANT_LOCK 1015
+#define ER_CANT_OPEN_FILE 1016
+#define ER_FILE_NOT_FOUND 1017
+#define ER_CANT_READ_DIR 1018
+#define ER_CANT_SET_WD 1019
+#define ER_CHECKREAD 1020
+#define ER_DISK_FULL 1021
+#define ER_DUP_KEY 1022
+#define ER_ERROR_ON_CLOSE 1023
+#define ER_ERROR_ON_READ 1024
+#define ER_ERROR_ON_RENAME 1025
+#define ER_ERROR_ON_WRITE 1026
+#define ER_FILE_USED 1027
+#define ER_FILSORT_ABORT 1028
+#define ER_FORM_NOT_FOUND 1029
+#define ER_GET_ERRNO 1030
+#define ER_ILLEGAL_HA 1031
+#define ER_KEY_NOT_FOUND 1032
+#define ER_NOT_FORM_FILE 1033
+#define ER_NOT_KEYFILE 1034
+#define ER_OLD_KEYFILE 1035
+#define ER_OPEN_AS_READONLY 1036
+#define ER_OUTOFMEMORY 1037
+#define ER_OUT_OF_SORTMEMORY 1038
+#define ER_UNEXPECTED_EOF 1039
+#define ER_CON_COUNT_ERROR 1040
+#define ER_OUT_OF_RESOURCES 1041
+#define ER_BAD_HOST_ERROR 1042
+#define ER_HANDSHAKE_ERROR 1043
+#define ER_DBACCESS_DENIED_ERROR 1044
+#define ER_ACCESS_DENIED_ERROR 1045
+#define ER_NO_DB_ERROR 1046
+#define ER_UNKNOWN_COM_ERROR 1047
+#define ER_BAD_NULL_ERROR 1048
+#define ER_BAD_DB_ERROR 1049
+#define ER_TABLE_EXISTS_ERROR 1050
+#define ER_BAD_TABLE_ERROR 1051
+#define ER_NON_UNIQ_ERROR 1052
+#define ER_SERVER_SHUTDOWN 1053
+#define ER_BAD_FIELD_ERROR 1054
+#define ER_WRONG_FIELD_WITH_GROUP 1055
+#define ER_WRONG_GROUP_FIELD 1056
+#define ER_WRONG_SUM_SELECT 1057
+#define ER_WRONG_VALUE_COUNT 1058
+#define ER_TOO_LONG_IDENT 1059
+#define ER_DUP_FIELDNAME 1060
+#define ER_DUP_KEYNAME 1061
+#define ER_DUP_ENTRY 1062
+#define ER_WRONG_FIELD_SPEC 1063
+#define ER_PARSE_ERROR 1064
+#define ER_EMPTY_QUERY 1065
+#define ER_NONUNIQ_TABLE 1066
+#define ER_INVALID_DEFAULT 1067
+#define ER_MULTIPLE_PRI_KEY 1068
+#define ER_TOO_MANY_KEYS 1069
+#define ER_TOO_MANY_KEY_PARTS 1070
+#define ER_TOO_LONG_KEY 1071
+#define ER_KEY_COLUMN_DOES_NOT_EXITS 1072
+#define ER_BLOB_USED_AS_KEY 1073
+#define ER_TOO_BIG_FIELDLENGTH 1074
+#define ER_WRONG_AUTO_KEY 1075
+#define ER_READY 1076
+#define ER_NORMAL_SHUTDOWN 1077
+#define ER_GOT_SIGNAL 1078
+#define ER_SHUTDOWN_COMPLETE 1079
+#define ER_FORCING_CLOSE 1080
+#define ER_IPSOCK_ERROR 1081
+#define ER_NO_SUCH_INDEX 1082
+#define ER_WRONG_FIELD_TERMINATORS 1083
+#define ER_BLOBS_AND_NO_TERMINATED 1084
+#define ER_TEXTFILE_NOT_READABLE 1085
+#define ER_FILE_EXISTS_ERROR 1086
+#define ER_LOAD_INFO 1087
+#define ER_ALTER_INFO 1088
+#define ER_WRONG_SUB_KEY 1089
+#define ER_CANT_REMOVE_ALL_FIELDS 1090
+#define ER_CANT_DROP_FIELD_OR_KEY 1091
+#define ER_INSERT_INFO 1092
+#define ER_INSERT_TABLE_USED 1093
+#define ER_NO_SUCH_THREAD 1094
+#define ER_KILL_DENIED_ERROR 1095
+#define ER_NO_TABLES_USED 1096
+#define ER_TOO_BIG_SET 1097
+#define ER_NO_UNIQUE_LOGFILE 1098
+#define ER_TABLE_NOT_LOCKED_FOR_WRITE 1099
+#define ER_TABLE_NOT_LOCKED 1100
+#define ER_BLOB_CANT_HAVE_DEFAULT 1101
+#define ER_WRONG_DB_NAME 1102
+#define ER_WRONG_TABLE_NAME 1103
+#define ER_TOO_BIG_SELECT 1104
+#define ER_UNKNOWN_ERROR 1105
+#define ER_UNKNOWN_PROCEDURE 1106
+#define ER_WRONG_PARAMCOUNT_TO_PROCEDURE 1107
+#define ER_WRONG_PARAMETERS_TO_PROCEDURE 1108
+#define ER_UNKNOWN_TABLE 1109
+#define ER_FIELD_SPECIFIED_TWICE 1110
+#define ER_INVALID_GROUP_FUNC_USE 1111
+#define ER_UNSUPPORTED_EXTENSION 1112
+#define ER_TABLE_MUST_HAVE_COLUMNS 1113
+#define ER_RECORD_FILE_FULL 1114
+#define ER_UNKNOWN_CHARACTER_SET 1115
+#define ER_TOO_MANY_TABLES 1116
+#define ER_TOO_MANY_FIELDS 1117
+#define ER_TOO_BIG_ROWSIZE 1118
+#define ER_STACK_OVERRUN 1119
+#define ER_WRONG_OUTER_JOIN 1120
+#define ER_NULL_COLUMN_IN_INDEX 1121
+#define ER_CANT_FIND_UDF 1122
+#define ER_CANT_INITIALIZE_UDF 1123
+#define ER_UDF_NO_PATHS 1124
+#define ER_UDF_EXISTS 1125
+#define ER_CANT_OPEN_LIBRARY 1126
+#define ER_CANT_FIND_DL_ENTRY 1127
+#define ER_FUNCTION_NOT_DEFINED 1128
+#define ER_HOST_IS_BLOCKED 1129
+#define ER_HOST_NOT_PRIVILEGED 1130
+#define ER_PASSWORD_ANONYMOUS_USER 1131
+#define ER_PASSWORD_NOT_ALLOWED 1132
+#define ER_PASSWORD_NO_MATCH 1133
+#define ER_UPDATE_INFO 1134
+#define ER_CANT_CREATE_THREAD 1135
+#define ER_WRONG_VALUE_COUNT_ON_ROW 1136
+#define ER_CANT_REOPEN_TABLE 1137
+#define ER_INVALID_USE_OF_NULL 1138
+#define ER_REGEXP_ERROR 1139
+#define ER_MIX_OF_GROUP_FUNC_AND_FIELDS 1140
+#define ER_NONEXISTING_GRANT 1141
+#define ER_TABLEACCESS_DENIED_ERROR 1142
+#define ER_COLUMNACCESS_DENIED_ERROR 1143
+#define ER_ILLEGAL_GRANT_FOR_TABLE 1144
+#define ER_GRANT_WRONG_HOST_OR_USER 1145
+#define ER_NO_SUCH_TABLE 1146
+#define ER_NONEXISTING_TABLE_GRANT 1147
+#define ER_NOT_ALLOWED_COMMAND 1148
+#define ER_SYNTAX_ERROR 1149
+#define ER_DELAYED_CANT_CHANGE_LOCK 1150
+#define ER_TOO_MANY_DELAYED_THREADS 1151
+#define ER_ABORTING_CONNECTION 1152
+#define ER_NET_PACKET_TOO_LARGE 1153
+#define ER_NET_READ_ERROR_FROM_PIPE 1154
+#define ER_NET_FCNTL_ERROR 1155
+#define ER_NET_PACKETS_OUT_OF_ORDER 1156
+#define ER_NET_UNCOMPRESS_ERROR 1157
+#define ER_NET_READ_ERROR 1158
+#define ER_NET_READ_INTERRUPTED 1159
+#define ER_NET_ERROR_ON_WRITE 1160
+#define ER_NET_WRITE_INTERRUPTED 1161
+#define ER_TOO_LONG_STRING 1162
+#define ER_TABLE_CANT_HANDLE_BLOB 1163
+#define ER_TABLE_CANT_HANDLE_AUTO_INCREMENT 1164
+#define ER_DELAYED_INSERT_TABLE_LOCKED 1165
+#define ER_WRONG_COLUMN_NAME 1166
+#define ER_WRONG_KEY_COLUMN 1167
+#define ER_WRONG_MRG_TABLE 1168
+#define ER_DUP_UNIQUE 1169
+#define ER_BLOB_KEY_WITHOUT_LENGTH 1170
+#define ER_PRIMARY_CANT_HAVE_NULL 1171
+#define ER_TOO_MANY_ROWS 1172
+#define ER_REQUIRES_PRIMARY_KEY 1173
+#define ER_NO_RAID_COMPILED 1174
+#define ER_UPDATE_WITHOUT_KEY_IN_SAFE_MODE 1175
+#define ER_KEY_DOES_NOT_EXITS 1176
+#define ER_CHECK_NO_SUCH_TABLE 1177
+#define ER_CHECK_NOT_IMPLEMENTED 1178
+#define ER_CANT_DO_THIS_DURING_AN_TRANSACTION 1179
+#define ER_ERROR_DURING_COMMIT 1180
+#define ER_ERROR_DURING_ROLLBACK 1181
+#define ER_ERROR_DURING_FLUSH_LOGS 1182
+#define ER_ERROR_DURING_CHECKPOINT 1183
+#define ER_NEW_ABORTING_CONNECTION 1184
+#define ER_DUMP_NOT_IMPLEMENTED    1185
+#define ER_FLUSH_MASTER_BINLOG_CLOSED 1186
+#define ER_INDEX_REBUILD  1187
+#define ER_MASTER 1188
+#define ER_MASTER_NET_READ 1189
+#define ER_MASTER_NET_WRITE 1190
+#define ER_FT_MATCHING_KEY_NOT_FOUND 1191
+#define ER_LOCK_OR_ACTIVE_TRANSACTION 1192
+#define ER_UNKNOWN_SYSTEM_VARIABLE 1193
+#define ER_CRASHED_ON_USAGE 1194
+#define ER_CRASHED_ON_REPAIR 1195
+#define ER_WARNING_NOT_COMPLETE_ROLLBACK 1196
+#define ER_TRANS_CACHE_FULL 1197
+#define ER_SLAVE_MUST_STOP 1198
+#define ER_SLAVE_NOT_RUNNING 1199
+#define ER_BAD_SLAVE 1200
+#define ER_MASTER_INFO 1201
+#define ER_SLAVE_THREAD 1202
+#define ER_TOO_MANY_USER_CONNECTIONS 1203
+#define ER_SET_CONSTANTS_ONLY 1204
+#define ER_LOCK_WAIT_TIMEOUT 1205
+#define ER_LOCK_TABLE_FULL 1206
+#define ER_READ_ONLY_TRANSACTION 1207
+#define ER_DROP_DB_WITH_READ_LOCK 1208
+#define ER_CREATE_DB_WITH_READ_LOCK 1209
+#define ER_WRONG_ARGUMENTS 1210
+#define ER_NO_PERMISSION_TO_CREATE_USER 1211
+#define ER_UNION_TABLES_IN_DIFFERENT_DIR 1212
+#define ER_LOCK_DEADLOCK 1213
+#define ER_TABLE_CANT_HANDLE_FULLTEXT 1214
+#define ER_CANNOT_ADD_FOREIGN 1215
+#define ER_NO_REFERENCED_ROW 1216
+#define ER_ROW_IS_REFERENCED 1217
+#define ER_ERROR_MESSAGES 218

Added: packages/gpsdrive/branches/etch/src/mysql/raid.h
===================================================================
--- packages/gpsdrive/branches/etch/src/mysql/raid.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/mysql/raid.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,161 @@
+/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
+
+   This library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Library General Public
+   License as published by the Free Software Foundation; either
+   version 2 of the License, or (at your option) any later version.
+
+   This library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Library General Public License for more details.
+
+   You should have received a copy of the GNU Library General Public
+   License along with this library; if not, write to the Free
+   Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+   MA 02111-1307, USA */
+
+/* Parser needs these defines  always, even if USE_RAID is not defined */
+#define RAID_TYPE_0 1       /* Striping */
+#define RAID_TYPE_x 2       /* Some new modes */
+#define RAID_TYPE_y 3
+
+#define RAID_DEFAULT_CHUNKS 4
+#define RAID_DEFAULT_CHUNKSIZE 256*1024 /* 256kB */
+
+extern const char *raid_type_string[];
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+const char *my_raid_type(int raid_type);
+#ifdef __cplusplus
+}
+#endif
+
+#if defined(USE_RAID) && !defined(DONT_USE_RAID)
+
+#ifdef __GNUC__
+#pragma interface			/* gcc class implementation */
+#endif
+#include "my_dir.h"
+
+/* Trap all occurences of my_...() in source and use our wrapper around this function */
+
+#ifdef MAP_TO_USE_RAID
+#define my_read(A,B,C,D)     my_raid_read(A,B,C,D)
+#define my_write(A,B,C,D)    my_raid_write(A,B,C,D)
+#define my_pwrite(A,B,C,D,E) my_raid_pwrite(A,B,C,D,E)
+#define my_pread(A,B,C,D,E)  my_raid_pread(A,B,C,D,E)
+#define my_chsize(A,B,C)     my_raid_chsize(A,B,C)
+#define my_close(A,B)        my_raid_close(A,B)
+#define my_tell(A,B)         my_raid_tell(A,B)
+#define my_seek(A,B,C,D)     my_raid_seek(A,B,C,D)
+#define my_lock(A,B,C,D,E)     my_raid_lock(A,B,C,D,E)
+#define my_fstat(A,B,C)     my_raid_fstat(A,B,C)
+#endif /* MAP_TO_USE_RAID */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+  void init_raid(void);
+  void end_raid(void);
+
+  bool is_raid(File fd);
+  File my_raid_create(const char *FileName, int CreateFlags, int access_flags,
+		      uint raid_type, uint raid_chunks, ulong raid_chunksize,
+		      myf MyFlags);
+  File my_raid_open(const char *FileName, int Flags,
+		    uint raid_type, uint raid_chunks, ulong raid_chunksize,
+		    myf MyFlags);
+  int my_raid_rename(const char *from, const char *to, uint raid_chunks,
+		     myf MyFlags);
+  int my_raid_delete(const char *from, uint raid_chunks, myf MyFlags);
+  int my_raid_redel(const char *old_name, const char *new_name,
+		    uint raid_chunks, myf MyFlags);
+
+  my_off_t my_raid_seek(File fd, my_off_t pos, int whence, myf MyFlags);
+  my_off_t my_raid_tell(File fd, myf MyFlags);
+
+  uint my_raid_write(File,const byte *Buffer, uint Count, myf MyFlags);
+  uint my_raid_read(File Filedes, byte *Buffer, uint Count, myf MyFlags);
+
+  uint my_raid_pread(File Filedes, byte *Buffer, uint Count, my_off_t offset,
+		     myf MyFlags);
+  uint my_raid_pwrite(int Filedes, const byte *Buffer, uint Count,
+		      my_off_t offset, myf MyFlags);
+
+  int my_raid_lock(File,int locktype, my_off_t start, my_off_t length,
+		   myf MyFlags);
+  int my_raid_chsize(File fd, my_off_t newlength, myf MyFlags);
+  int my_raid_close(File, myf MyFlags);
+  int my_raid_fstat(int Filedes, struct stat *buf,  myf MyFlags);
+
+#ifdef __cplusplus
+}
+
+class RaidName {
+  public:
+    RaidName(const char *FileName);
+    ~RaidName();
+    bool IsRaid();
+    int Rename(const char * from, const char * to, myf MyFlags);
+  private:
+    uint _raid_type;       /* RAID_TYPE_0 or RAID_TYPE_1 or RAID_TYPE_5 */
+    uint _raid_chunks;     /* 1..n */
+    ulong _raid_chunksize; /* 1..n in bytes */
+};
+
+class RaidFd {
+  public:
+    RaidFd(uint raid_type, uint raid_chunks , ulong raid_chunksize);
+    ~RaidFd();
+    File Create(const char *FileName, int CreateFlags, int access_flags,
+		myf MyFlags);
+    File Open(const char *FileName, int Flags, myf MyFlags);
+    my_off_t Seek(my_off_t pos,int whence,myf MyFlags);
+    my_off_t Tell(myf MyFlags);
+    int Write(const byte *Buffer, uint Count, myf MyFlags);
+    int Read(const byte *Buffer, uint Count, myf MyFlags);
+    int Lock(int locktype, my_off_t start, my_off_t length, myf MyFlags);
+    int Chsize(File fd, my_off_t newlength, myf MyFlags);
+    int Fstat(int fd, MY_STAT *stat_area, myf MyFlags );
+    int Close(myf MyFlags);
+    static bool IsRaid(File fd);
+    static DYNAMIC_ARRAY _raid_map;		/* Map of RaidFD* */
+  private:
+
+    uint _raid_type;       /* RAID_TYPE_0 or RAID_TYPE_1 or RAID_TYPE_5 */
+    uint _raid_chunks;     /* 1..n */
+    ulong _raid_chunksize; /* 1..n in bytes */
+
+    ulong _total_block;    /* We are operating with block no x (can be 0..many). */
+    uint _this_block;      /* can be 0.._raid_chunks */
+    uint _remaining_bytes; /* Maximum bytes that can be written in this block */
+
+    my_off_t _position;
+    my_off_t _size;        /* Cached file size for faster seek(SEEK_END) */
+    File _fd;
+    File *_fd_vector;		/* Array of File */
+    off_t *_seek_vector;	/* Array of cached seek positions */
+
+    inline void Calculate()
+    {
+      DBUG_ENTER("RaidFd::_Calculate");
+      DBUG_PRINT("info",("_position: %lu _raid_chunksize: %d, _size: %lu",
+			 (ulong) _position, _raid_chunksize, (ulong) _size));
+
+      _total_block = (ulong) (_position / _raid_chunksize);
+      _this_block = _total_block % _raid_chunks;    /* can be 0.._raid_chunks */
+      _remaining_bytes = (uint) (_raid_chunksize -
+				 (_position - _total_block * _raid_chunksize));
+      DBUG_PRINT("info",
+		 ("_total_block: %d  this_block: %d  _remaining_bytes:%d",
+		  _total_block, _this_block, _remaining_bytes));
+      DBUG_VOID_RETURN;
+    }
+};
+
+#endif /* __cplusplus */
+#endif /* USE_RAID */

Added: packages/gpsdrive/branches/etch/src/mysql/readline.h
===================================================================
--- packages/gpsdrive/branches/etch/src/mysql/readline.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/mysql/readline.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,621 @@
+/* Readline.h -- the names of functions callable from within readline. */
+
+/* Copyright (C) 1987, 1989, 1992 Free Software Foundation, Inc.
+
+   This file is part of the GNU Readline Library, a library for
+   reading lines of text with interactive input and history editing.
+
+   The GNU Readline Library 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 1, or
+   (at your option) any later version.
+
+   The GNU Readline Library is distributed in the hope that it will be
+   useful, but WITHOUT ANY WARRANTY; without even the implied warranty
+   of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   The GNU General Public License is often shipped with GNU software, and
+   is generally kept in a file called COPYING or LICENSE.  If you do not
+   have a copy of the license, write to the Free Software Foundation,
+   675 Mass Ave, Cambridge, MA 02139, USA. */
+
+#if !defined (_READLINE_H_)
+#define _READLINE_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#if defined (READLINE_LIBRARY)
+#  include "rlstdc.h"
+#  include "keymaps.h"
+#  include "tilde.h"
+#else
+#  include <readline/rlstdc.h>
+#  include <readline/keymaps.h>
+#  include <readline/tilde.h>
+#endif
+
+/* Readline data structures. */
+
+/* Maintaining the state of undo.  We remember individual deletes and inserts
+   on a chain of things to do. */
+
+/* The actions that undo knows how to undo.  Notice that UNDO_DELETE means
+   to insert some text, and UNDO_INSERT means to delete some text.   I.e.,
+   the code tells undo what to undo, not how to undo it. */
+enum undo_code { UNDO_DELETE, UNDO_INSERT, UNDO_BEGIN, UNDO_END };
+
+/* What an element of THE_UNDO_LIST looks like. */
+typedef struct undo_list {
+  struct undo_list *next;
+  int start, end;		/* Where the change took place. */
+  char *text;			/* The text to insert, if undoing a delete. */
+  enum undo_code what;		/* Delete, Insert, Begin, End. */
+} UNDO_LIST;
+
+/* The current undo list for RL_LINE_BUFFER. */
+extern UNDO_LIST *rl_undo_list;
+
+/* The data structure for mapping textual names to code addresses. */
+typedef struct _funmap {
+  char *name;
+  Function *function;
+} FUNMAP;
+
+extern FUNMAP **funmap;
+
+/* **************************************************************** */
+/*								    */
+/*	     Functions available to bind to key sequences	    */
+/*								    */
+/* **************************************************************** */
+
+/* Bindable commands for numeric arguments. */
+extern int rl_digit_argument __P((int, int));
+extern int rl_universal_argument __P((int, int));
+
+/* Bindable commands for moving the cursor. */
+extern int rl_forward __P((int, int));
+extern int rl_backward __P((int, int));
+extern int rl_beg_of_line __P((int, int));
+extern int rl_end_of_line __P((int, int));
+extern int rl_forward_word __P((int, int));
+extern int rl_backward_word __P((int, int));
+extern int rl_refresh_line __P((int, int));
+extern int rl_clear_screen __P((int, int));
+extern int rl_arrow_keys __P((int, int));
+
+/* Bindable commands for inserting and deleting text. */
+extern int rl_insert __P((int, int));
+extern int rl_quoted_insert __P((int, int));
+extern int rl_tab_insert __P((int, int));
+extern int rl_newline __P((int, int));
+extern int rl_do_lowercase_version __P((int, int));
+extern int rl_rubout __P((int, int));
+extern int rl_delete __P((int, int));
+extern int rl_rubout_or_delete __P((int, int));
+extern int rl_delete_horizontal_space __P((int, int));
+extern int rl_delete_or_show_completions __P((int, int));
+extern int rl_insert_comment __P((int, int));
+
+/* Bindable commands for changing case. */
+extern int rl_upcase_word __P((int, int));
+extern int rl_downcase_word __P((int, int));
+extern int rl_capitalize_word __P((int, int));
+
+/* Bindable commands for transposing characters and words. */
+extern int rl_transpose_words __P((int, int));
+extern int rl_transpose_chars __P((int, int));
+
+/* Bindable commands for searching within a line. */
+extern int rl_char_search __P((int, int));
+extern int rl_backward_char_search __P((int, int));
+
+/* Bindable commands for readline's interface to the command history. */
+extern int rl_beginning_of_history __P((int, int));
+extern int rl_end_of_history __P((int, int));
+extern int rl_get_next_history __P((int, int));
+extern int rl_get_previous_history __P((int, int));
+
+/* Bindable commands for managing the mark and region. */
+extern int rl_set_mark __P((int, int));
+extern int rl_exchange_point_and_mark __P((int, int));
+
+/* Bindable commands to set the editing mode (emacs or vi). */
+extern int rl_vi_editing_mode __P((int, int));
+extern int rl_emacs_editing_mode __P((int, int));
+
+/* Bindable commands for managing key bindings. */
+extern int rl_re_read_init_file __P((int, int));
+extern int rl_dump_functions __P((int, int));
+extern int rl_dump_macros __P((int, int));
+extern int rl_dump_variables __P((int, int));
+
+/* Bindable commands for word completion. */
+extern int rl_complete __P((int, int));
+extern int rl_possible_completions __P((int, int));
+extern int rl_insert_completions __P((int, int));
+extern int rl_menu_complete __P((int, int));
+
+/* Bindable commands for killing and yanking text, and managing the kill ring. */
+extern int rl_kill_word __P((int, int));
+extern int rl_backward_kill_word __P((int, int));
+extern int rl_kill_line __P((int, int));
+extern int rl_backward_kill_line __P((int, int));
+extern int rl_kill_full_line __P((int, int));
+extern int rl_unix_word_rubout __P((int, int));
+extern int rl_unix_line_discard __P((int, int));
+extern int rl_copy_region_to_kill __P((int, int));
+extern int rl_kill_region __P((int, int));
+extern int rl_copy_forward_word __P((int, int));
+extern int rl_copy_backward_word __P((int, int));
+extern int rl_yank __P((int, int));
+extern int rl_yank_pop __P((int, int));
+extern int rl_yank_nth_arg __P((int, int));
+extern int rl_yank_last_arg __P((int, int));
+/* Not available unless __CYGWIN32__ is defined. */
+#ifdef __CYGWIN32__
+extern int rl_paste_from_clipboard __P((int, int));
+#endif
+
+/* Bindable commands for incremental searching. */
+extern int rl_reverse_search_history __P((int, int));
+extern int rl_forward_search_history __P((int, int));
+
+/* Bindable keyboard macro commands. */
+extern int rl_start_kbd_macro __P((int, int));
+extern int rl_end_kbd_macro __P((int, int));
+extern int rl_call_last_kbd_macro __P((int, int));
+
+/* Bindable undo commands. */
+extern int rl_revert_line __P((int, int));
+extern int rl_undo_command __P((int, int));
+
+/* Bindable tilde expansion commands. */
+extern int rl_tilde_expand __P((int, int));
+
+/* Bindable terminal control commands. */
+extern int rl_restart_output __P((int, int));
+extern int rl_stop_output __P((int, int));
+
+/* Miscellaneous bindable commands. */
+extern int rl_abort __P((int, int));
+extern int rl_tty_status __P((int, int));
+
+/* Bindable commands for incremental and non-incremental history searching. */
+extern int rl_history_search_forward __P((int, int));
+extern int rl_history_search_backward __P((int, int));
+extern int rl_noninc_forward_search __P((int, int));
+extern int rl_noninc_reverse_search __P((int, int));
+extern int rl_noninc_forward_search_again __P((int, int));
+extern int rl_noninc_reverse_search_again __P((int, int));
+
+/* Not available unless readline is compiled -DPAREN_MATCHING. */
+extern int rl_insert_close __P((int, int));
+
+/* Not available unless READLINE_CALLBACKS is defined. */
+extern void rl_callback_handler_install __P((char *, VFunction *));
+extern void rl_callback_read_char __P((void));
+extern void rl_callback_handler_remove __P((void));
+
+/* Things for vi mode. Not available unless readline is compiled -DVI_MODE. */
+/* VI-mode bindable commands. */
+extern int rl_vi_redo __P((int, int));
+extern int rl_vi_undo __P((int, int));
+extern int rl_vi_yank_arg __P((int, int));
+extern int rl_vi_fetch_history __P((int, int));
+extern int rl_vi_search_again __P((int, int));
+extern int rl_vi_search __P((int, int));
+extern int rl_vi_complete __P((int, int));
+extern int rl_vi_tilde_expand __P((int, int));
+extern int rl_vi_prev_word __P((int, int));
+extern int rl_vi_next_word __P((int, int));
+extern int rl_vi_end_word __P((int, int));
+extern int rl_vi_insert_beg __P((int, int));
+extern int rl_vi_append_mode __P((int, int));
+extern int rl_vi_append_eol __P((int, int));
+extern int rl_vi_eof_maybe __P((int, int));
+extern int rl_vi_insertion_mode __P((int, int));
+extern int rl_vi_movement_mode __P((int, int));
+extern int rl_vi_arg_digit __P((int, int));
+extern int rl_vi_change_case __P((int, int));
+extern int rl_vi_put __P((int, int));
+extern int rl_vi_column __P((int, int));
+extern int rl_vi_delete_to __P((int, int));
+extern int rl_vi_change_to __P((int, int));
+extern int rl_vi_yank_to __P((int, int));
+extern int rl_vi_delete __P((int, int));
+extern int rl_vi_back_to_indent __P((int, int));
+extern int rl_vi_first_print __P((int, int));
+extern int rl_vi_char_search __P((int, int));
+extern int rl_vi_match __P((int, int));
+extern int rl_vi_change_char __P((int, int));
+extern int rl_vi_subst __P((int, int));
+extern int rl_vi_overstrike __P((int, int));
+extern int rl_vi_overstrike_delete __P((int, int));
+extern int rl_vi_replace __P((int, int));
+extern int rl_vi_set_mark __P((int, int));
+extern int rl_vi_goto_mark __P((int, int));
+
+/* VI-mode utility functions. */
+extern int rl_vi_check __P((void));
+extern int rl_vi_domove __P((int, int *));
+extern int rl_vi_bracktype __P((int));
+
+/* VI-mode pseudo-bindable commands, used as utility functions. */
+extern int rl_vi_fWord __P((int, int));
+extern int rl_vi_bWord __P((int, int));
+extern int rl_vi_eWord __P((int, int));
+extern int rl_vi_fword __P((int, int));
+extern int rl_vi_bword __P((int, int));
+extern int rl_vi_eword __P((int, int));
+
+/* **************************************************************** */
+/*								    */
+/*			Well Published Functions		    */
+/*								    */
+/* **************************************************************** */
+
+/* Readline functions. */
+/* Read a line of input.  Prompt with PROMPT.  A NULL PROMPT means none. */
+extern char *readline __P((char *));
+
+extern int rl_initialize __P((void));
+
+extern int rl_discard_argument __P((void));
+
+/* Utility functions to bind keys to readline commands. */
+extern int rl_add_defun __P((char *, Function *, int));
+extern int rl_bind_key __P((int, Function *));
+extern int rl_bind_key_in_map __P((int, Function *, Keymap));
+extern int rl_unbind_key __P((int));
+extern int rl_unbind_key_in_map __P((int, Keymap));
+extern int rl_unbind_function_in_map __P((Function *, Keymap));
+extern int rl_unbind_command_in_map __P((char *, Keymap));
+extern int rl_set_key __P((char *, Function *, Keymap));
+extern int rl_generic_bind __P((int, char *, char *, Keymap));
+extern int rl_variable_bind __P((char *, char *));
+
+/* Backwards compatibility, use rl_generic_bind instead. */
+extern int rl_macro_bind __P((char *, char *, Keymap));
+
+/* Undocumented in the texinfo manual; not really useful to programs. */
+extern int rl_translate_keyseq __P((char *, char *, int *));
+extern char *rl_untranslate_keyseq __P((int));
+
+extern Function *rl_named_function __P((char *));
+extern Function *rl_function_of_keyseq __P((char *, Keymap, int *));
+
+extern void rl_list_funmap_names __P((void));
+extern char **rl_invoking_keyseqs_in_map __P((Function *, Keymap));
+extern char **rl_invoking_keyseqs __P((Function *));
+ 
+extern void rl_function_dumper __P((int));
+extern void rl_macro_dumper __P((int));
+extern void rl_variable_dumper __P((int));
+
+extern int rl_read_init_file __P((char *));
+extern int rl_parse_and_bind __P((char *));
+
+/* Functions for manipulating keymaps. */
+extern Keymap rl_make_bare_keymap __P((void));
+extern Keymap rl_copy_keymap __P((Keymap));
+extern Keymap rl_make_keymap __P((void));
+extern void rl_discard_keymap __P((Keymap));
+
+extern Keymap rl_get_keymap_by_name __P((char *));
+extern char *rl_get_keymap_name __P((Keymap));
+extern void rl_set_keymap __P((Keymap));
+extern Keymap rl_get_keymap __P((void));
+extern void rl_set_keymap_from_edit_mode __P((void));
+extern char *rl_get_keymap_name_from_edit_mode __P((void));
+
+/* Functions for manipulating the funmap, which maps command names to functions. */
+extern int rl_add_funmap_entry __P((char *, Function *));
+extern void rl_initialize_funmap __P((void));
+extern char **rl_funmap_names __P((void));
+
+/* Utility functions for managing keyboard macros. */
+extern void rl_push_macro_input __P((char *));
+
+/* Functions for undoing, from undo.c */
+extern void rl_add_undo __P((enum undo_code, int, int, char *));
+extern void free_undo_list __P((void));
+extern int rl_do_undo __P((void));
+extern int rl_begin_undo_group __P((void));
+extern int rl_end_undo_group __P((void));
+extern int rl_modifying __P((int, int));
+
+/* Functions for redisplay. */
+extern void rl_redisplay __P((void));
+extern int rl_on_new_line __P((void));
+extern int rl_forced_update_display __P((void));
+extern int rl_clear_message __P((void));
+extern int rl_reset_line_state __P((void));
+
+#if defined (__STDC__) && defined (USE_VARARGS) && defined (PREFER_STDARG)
+extern int rl_message (const char *, ...);
+#else
+extern int rl_message ();
+#endif
+
+/* Undocumented in texinfo manual. */
+extern int rl_show_char __P((int));
+extern int rl_character_len __P((int, int));
+extern int crlf __P((void));
+
+/* Save and restore internal prompt redisplay information. */
+extern void rl_save_prompt __P((void));
+extern void rl_restore_prompt __P((void));
+
+/* Modifying text. */
+extern int rl_insert_text __P((char *));
+extern int rl_delete_text __P((int, int));
+extern int rl_kill_text __P((int, int));
+extern char *rl_copy_text __P((int, int));
+
+/* Terminal and tty mode management. */
+extern void rl_prep_terminal __P((int));
+extern void rl_deprep_terminal __P((void));
+extern void rltty_set_default_bindings __P((Keymap));
+
+extern int rl_reset_terminal __P((char *));
+extern void rl_resize_terminal __P((void));
+
+/* `Public' utility functions . */
+extern void rl_extend_line_buffer __P((int));
+extern int ding __P((void));
+
+/* Functions for character input. */
+extern int rl_stuff_char __P((int));
+extern int rl_execute_next __P((int));
+extern int rl_read_key __P((void));
+extern int rl_getc __P((FILE *));
+
+/* Readline signal handling, from signals.c */
+extern int rl_set_signals __P((void));
+extern int rl_clear_signals __P((void));
+extern void rl_cleanup_after_signal __P((void));
+extern void rl_reset_after_signal __P((void));
+extern void rl_free_line_state __P((void));
+ 
+/* Undocumented. */
+extern int rl_expand_prompt __P((char *));
+
+extern int maybe_save_line __P((void));
+extern int maybe_unsave_line __P((void));
+extern int maybe_replace_line __P((void));
+
+/* Completion functions. */
+extern int rl_complete_internal __P((int));
+extern void rl_display_match_list __P((char **, int, int));
+
+extern char **completion_matches __P((char *, CPFunction *));
+extern char *username_completion_function __P((char *, int));
+extern char *filename_completion_function __P((char *, int));
+
+/* **************************************************************** */
+/*								    */
+/*			Well Published Variables		    */
+/*								    */
+/* **************************************************************** */
+
+/* The version of this incarnation of the readline library. */
+extern char *rl_library_version;
+
+/* The name of the calling program.  You should initialize this to
+   whatever was in argv[0].  It is used when parsing conditionals. */
+extern char *rl_readline_name;
+
+/* The prompt readline uses.  This is set from the argument to
+   readline (), and should not be assigned to directly. */
+extern char *rl_prompt;
+
+/* The line buffer that is in use. */
+extern char *rl_line_buffer;
+
+/* The location of point, and end. */
+extern int rl_point, rl_end;
+
+/* The mark, or saved cursor position. */
+extern int rl_mark;
+
+/* Flag to indicate that readline has finished with the current input
+   line and should return it. */
+extern int rl_done;
+
+/* If set to a character value, that will be the next keystroke read. */
+extern int rl_pending_input;
+
+/* Non-zero if we called this function from _rl_dispatch().  It's present
+   so functions can find out whether they were called from a key binding
+   or directly from an application. */
+extern int rl_dispatching;
+
+/* The name of the terminal to use. */
+extern char *rl_terminal_name;
+
+/* The input and output streams. */
+extern FILE *rl_instream, *rl_outstream;
+
+/* If non-zero, then this is the address of a function to call just
+   before readline_internal () prints the first prompt. */
+extern Function *rl_startup_hook;
+
+/* If non-zero, this is the address of a function to call just before
+   readline_internal_setup () returns and readline_internal starts
+   reading input characters. */
+extern Function *rl_pre_input_hook;
+      
+/* The address of a function to call periodically while Readline is
+   awaiting character input, or NULL, for no event handling. */
+extern Function *rl_event_hook;
+
+extern Function *rl_getc_function;
+extern VFunction *rl_redisplay_function;
+extern VFunction *rl_prep_term_function;
+extern VFunction *rl_deprep_term_function;
+
+/* Dispatch variables. */
+extern Keymap rl_executing_keymap;
+extern Keymap rl_binding_keymap;
+
+/* Display variables. */
+/* If non-zero, readline will erase the entire line, including any prompt,
+   if the only thing typed on an otherwise-blank line is something bound to
+   rl_newline. */
+extern int rl_erase_empty_line;
+
+/* Variables to control readline signal handling. */
+/* If non-zero, readline will install its own signal handlers for
+   SIGINT, SIGTERM, SIGQUIT, SIGALRM, SIGTSTP, SIGTTIN, and SIGTTOU. */
+extern int rl_catch_signals;
+
+/* If non-zero, readline will install a signal handler for SIGWINCH
+   that also attempts to call any calling application's SIGWINCH signal
+   handler.  Note that the terminal is not cleaned up before the
+   application's signal handler is called; use rl_cleanup_after_signal()
+   to do that. */
+extern int rl_catch_sigwinch;
+
+/* Completion variables. */
+/* Pointer to the generator function for completion_matches ().
+   NULL means to use filename_entry_function (), the default filename
+   completer. */
+extern Function *rl_completion_entry_function;
+
+/* If rl_ignore_some_completions_function is non-NULL it is the address
+   of a function to call after all of the possible matches have been
+   generated, but before the actual completion is done to the input line.
+   The function is called with one argument; a NULL terminated array
+   of (char *).  If your function removes any of the elements, they
+   must be free()'ed. */
+extern Function *rl_ignore_some_completions_function;
+
+/* Pointer to alternative function to create matches.
+   Function is called with TEXT, START, and END.
+   START and END are indices in RL_LINE_BUFFER saying what the boundaries
+   of TEXT are.
+   If this function exists and returns NULL then call the value of
+   rl_completion_entry_function to try to match, otherwise use the
+   array of strings returned. */
+extern CPPFunction *rl_attempted_completion_function;
+
+/* The basic list of characters that signal a break between words for the
+   completer routine.  The initial contents of this variable is what
+   breaks words in the shell, i.e. "n\"\\'`@$>". */
+extern char *rl_basic_word_break_characters;
+
+/* The list of characters that signal a break between words for
+   rl_complete_internal.  The default list is the contents of
+   rl_basic_word_break_characters.  */
+extern char *rl_completer_word_break_characters;
+
+/* List of characters which can be used to quote a substring of the line.
+   Completion occurs on the entire substring, and within the substring   
+   rl_completer_word_break_characters are treated as any other character,
+   unless they also appear within this list. */
+extern char *rl_completer_quote_characters;
+
+/* List of quote characters which cause a word break. */
+extern char *rl_basic_quote_characters;
+
+/* List of characters that need to be quoted in filenames by the completer. */
+extern char *rl_filename_quote_characters;
+
+/* List of characters that are word break characters, but should be left
+   in TEXT when it is passed to the completion function.  The shell uses
+   this to help determine what kind of completing to do. */
+extern char *rl_special_prefixes;
+
+/* If non-zero, then this is the address of a function to call when
+   completing on a directory name.  The function is called with
+   the address of a string (the current directory name) as an arg. */
+extern Function *rl_directory_completion_hook;
+
+/* Backwards compatibility with previous versions of readline. */
+#define rl_symbolic_link_hook rl_directory_completion_hook
+
+/* If non-zero, then this is the address of a function to call when
+   completing a word would normally display the list of possible matches.
+   This function is called instead of actually doing the display.
+   It takes three arguments: (char **matches, int num_matches, int max_length)
+   where MATCHES is the array of strings that matched, NUM_MATCHES is the
+   number of strings in that array, and MAX_LENGTH is the length of the
+   longest string in that array. */
+extern VFunction *rl_completion_display_matches_hook;
+
+/* Non-zero means that the results of the matches are to be treated
+   as filenames.  This is ALWAYS zero on entry, and can only be changed
+   within a completion entry finder function. */
+extern int rl_filename_completion_desired;
+
+/* Non-zero means that the results of the matches are to be quoted using
+   double quotes (or an application-specific quoting mechanism) if the
+   filename contains any characters in rl_word_break_chars.  This is
+   ALWAYS non-zero on entry, and can only be changed within a completion
+   entry finder function. */
+extern int rl_filename_quoting_desired;
+
+/* Set to a function to quote a filename in an application-specific fashion.
+   Called with the text to quote, the type of match found (single or multiple)
+   and a pointer to the quoting character to be used, which the function can
+   reset if desired. */
+extern CPFunction *rl_filename_quoting_function;
+
+/* Function to call to remove quoting characters from a filename.  Called
+   before completion is attempted, so the embedded quotes do not interfere
+   with matching names in the file system. */
+extern CPFunction *rl_filename_dequoting_function;
+
+/* Function to call to decide whether or not a word break character is
+   quoted.  If a character is quoted, it does not break words for the
+   completer. */
+extern Function *rl_char_is_quoted_p;
+
+/* Non-zero means to suppress normal filename completion after the
+   user-specified completion function has been called. */
+extern int rl_attempted_completion_over;
+
+/* Set to a character describing the type of completion being attempted by
+   rl_complete_internal; available for use by application completion
+   functions. */
+extern int rl_completion_type;
+
+/* Character appended to completed words when at the end of the line.  The
+   default is a space.  Nothing is added if this is '\0'. */
+extern int rl_completion_append_character;
+
+/* Up to this many items will be displayed in response to a
+   possible-completions call.  After that, we ask the user if she
+   is sure she wants to see them all.  The default value is 100. */
+extern int rl_completion_query_items;
+
+/* If non-zero, then disallow duplicates in the matches. */
+extern int rl_ignore_completion_duplicates;
+
+/* If this is non-zero, completion is (temporarily) inhibited, and the
+   completion character will be inserted as any other. */
+extern int rl_inhibit_completion;
+   
+/* Definitions available for use by readline clients. */
+#define RL_PROMPT_START_IGNORE	'\001'
+#define RL_PROMPT_END_IGNORE	'\002'
+
+/* Possible values for do_replace argument to rl_filename_quoting_function,
+   called by rl_complete_internal. */
+#define NO_MATCH        0
+#define SINGLE_MATCH    1
+#define MULT_MATCH      2
+
+#if !defined (savestring)
+extern char *savestring ();	/* XXX backwards compatibility */
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _READLINE_H_ */

Added: packages/gpsdrive/branches/etch/src/mysql/sslopt-case.h
===================================================================
--- packages/gpsdrive/branches/etch/src/mysql/sslopt-case.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/mysql/sslopt-case.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,42 @@
+/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
+   
+   This library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Library General Public
+   License as published by the Free Software Foundation; either
+   version 2 of the License, or (at your option) any later version.
+   
+   This library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Library General Public License for more details.
+   
+   You should have received a copy of the GNU Library General Public
+   License along with this library; if not, write to the Free
+   Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+   MA 02111-1307, USA */
+
+#ifdef HAVE_OPENSSL
+    case OPT_SSL_SSL:
+      opt_use_ssl = 1;				/* true */
+      break;
+    case OPT_SSL_KEY:
+      opt_use_ssl = 1;				/* true */
+      my_free(opt_ssl_key, MYF(MY_ALLOW_ZERO_PTR));
+      opt_ssl_key = my_strdup(optarg, MYF(0));
+      break;
+    case OPT_SSL_CERT:
+      opt_use_ssl = 1;				/* true */
+      my_free(opt_ssl_cert, MYF(MY_ALLOW_ZERO_PTR));
+      opt_ssl_cert = my_strdup(optarg, MYF(0));
+      break;
+    case OPT_SSL_CA:
+      opt_use_ssl = 1;				/* true */
+      my_free(opt_ssl_ca, MYF(MY_ALLOW_ZERO_PTR));
+      opt_ssl_ca = my_strdup(optarg, MYF(0));
+      break;
+    case OPT_SSL_CAPATH:
+      opt_use_ssl = 1;				/* true */
+      my_free(opt_ssl_ca, MYF(MY_ALLOW_ZERO_PTR));
+      opt_ssl_ca = my_strdup(optarg, MYF(0));
+      break;
+#endif

Added: packages/gpsdrive/branches/etch/src/mysql/sslopt-longopts.h
===================================================================
--- packages/gpsdrive/branches/etch/src/mysql/sslopt-longopts.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/mysql/sslopt-longopts.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,31 @@
+/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
+   
+   This library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Library General Public
+   License as published by the Free Software Foundation; either
+   version 2 of the License, or (at your option) any later version.
+   
+   This library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Library General Public License for more details.
+   
+   You should have received a copy of the GNU Library General Public
+   License along with this library; if not, write to the Free
+   Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+   MA 02111-1307, USA */
+
+#ifdef HAVE_OPENSSL
+
+#define OPT_SSL_SSL	200
+#define OPT_SSL_KEY	201
+#define OPT_SSL_CERT	202
+#define OPT_SSL_CA	203
+#define OPT_SSL_CAPATH  204
+  {"ssl",           no_argument,           0, OPT_SSL_SSL},
+  {"ssl-key",       required_argument,     0, OPT_SSL_KEY},
+  {"ssl-cert",      required_argument,     0, OPT_SSL_CERT},
+  {"ssl-ca",        required_argument,     0, OPT_SSL_CA},
+  {"ssl-capath",    required_argument,     0, OPT_SSL_CAPATH},
+
+#endif /* HAVE_OPENSSL */

Added: packages/gpsdrive/branches/etch/src/mysql/sslopt-usage.h
===================================================================
--- packages/gpsdrive/branches/etch/src/mysql/sslopt-usage.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/mysql/sslopt-usage.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,25 @@
+/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
+   
+   This library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Library General Public
+   License as published by the Free Software Foundation; either
+   version 2 of the License, or (at your option) any later version.
+   
+   This library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Library General Public License for more details.
+   
+   You should have received a copy of the GNU Library General Public
+   License along with this library; if not, write to the Free
+   Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+   MA 02111-1307, USA */
+
+#ifdef HAVE_OPENSSL
+   puts("\
+   --ssl                Use SSL for connection (automatically set with other flags\n\
+   --ssl-key            X509 key in PEM format (implies --ssl)\n\
+   --ssl-cert           X509 cert in PEM format (implies --ssl)\n\
+   --ssl-ca             CA file in PEM format (check OpenSSL docs, implies --ssl)\n\
+   --ssl-capath         CA directory (check OpenSSL docs, implies --ssl)");
+#endif

Added: packages/gpsdrive/branches/etch/src/mysql/sslopt-vars.h
===================================================================
--- packages/gpsdrive/branches/etch/src/mysql/sslopt-vars.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/mysql/sslopt-vars.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,24 @@
+/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
+   
+   This library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Library General Public
+   License as published by the Free Software Foundation; either
+   version 2 of the License, or (at your option) any later version.
+   
+   This library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Library General Public License for more details.
+   
+   You should have received a copy of the GNU Library General Public
+   License along with this library; if not, write to the Free
+   Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+   MA 02111-1307, USA */
+
+#ifdef HAVE_OPENSSL
+static my_bool opt_use_ssl  = 0;
+static char *opt_ssl_key    = 0;
+static char *opt_ssl_cert   = 0;
+static char *opt_ssl_ca     = 0;
+static char *opt_ssl_capath = 0;
+#endif

Added: packages/gpsdrive/branches/etch/src/mysql/tilde.h
===================================================================
--- packages/gpsdrive/branches/etch/src/mysql/tilde.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/mysql/tilde.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,65 @@
+/* tilde.h: Externally available variables and function in libtilde.a. */
+
+/* Copyright (C) 1992 Free Software Foundation, Inc.
+
+   This file contains the Readline Library (the Library), a set of
+   routines for providing Emacs style line input to programs that ask
+   for it.
+
+   The Library 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 1, or (at your option)
+   any later version.
+
+   The Library is distributed in the hope that it will be useful, but
+   WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   General Public License for more details.
+
+   The GNU General Public License is often shipped with GNU software, and
+   is generally kept in a file called COPYING or LICENSE.  If you do not
+   have a copy of the license, write to the Free Software Foundation,
+   675 Mass Ave, Cambridge, MA 02139, USA. */
+
+#if !defined (_TILDE_H_)
+#  define _TILDE_H_
+
+/* Function pointers can be declared as (Function *)foo. */
+#if !defined (_FUNCTION_DEF)
+#  define _FUNCTION_DEF
+typedef int Function ();
+typedef void VFunction ();
+typedef char *CPFunction ();
+typedef char **CPPFunction ();
+#endif /* _FUNCTION_DEF */
+
+/* If non-null, this contains the address of a function that the application
+   wants called before trying the standard tilde expansions.  The function
+   is called with the text sans tilde, and returns a malloc()'ed string
+   which is the expansion, or a NULL pointer if the expansion fails. */
+extern CPFunction *tilde_expansion_preexpansion_hook;
+
+/* If non-null, this contains the address of a function to call if the
+   standard meaning for expanding a tilde fails.  The function is called
+   with the text (sans tilde, as in "foo"), and returns a malloc()'ed string
+   which is the expansion, or a NULL pointer if there is no expansion. */
+extern CPFunction *tilde_expansion_failure_hook;
+
+/* When non-null, this is a NULL terminated array of strings which
+   are duplicates for a tilde prefix.  Bash uses this to expand
+   `=~' and `:~'. */
+extern char **tilde_additional_prefixes;
+
+/* When non-null, this is a NULL terminated array of strings which match
+   the end of a username, instead of just "/".  Bash sets this to
+   `:' and `=~'. */
+extern char **tilde_additional_suffixes;
+
+/* Return a new string which is the result of tilde expanding STRING. */
+extern char *tilde_expand ();
+
+/* Do the work of tilde expansion on FILENAME.  FILENAME starts with a
+   tilde.  If there is no expansion, call tilde_expansion_failure_hook. */
+extern char *tilde_expand_word ();
+
+#endif /* _TILDE_H_ */

Added: packages/gpsdrive/branches/etch/src/nautic.c
===================================================================
--- packages/gpsdrive/branches/etch/src/nautic.c	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/nautic.c	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,121 @@
+/****************************************************************
+
+Copyright (c) 2001-2004 Fritz Ganter <ganter at ganter.at>
+
+Website: www.gpsdrive.de
+
+Disclaimer: Please do not use for navigation. 
+
+    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
+
+    *********************************************************************
+
+
+$Log: nautic.c,v $
+Revision 1.8  2004/02/02 03:38:32  ganter
+code cleanup
+
+Revision 1.7  2004/01/01 09:07:33  ganter
+v2.06
+trip info is now live updated
+added cpu temperature display for acpi
+added tooltips for battery and temperature
+
+Revision 1.6  2003/05/11 21:15:46  ganter
+v2.0pre7
+added script convgiftopng
+This script converts .gif into .png files, which reduces CPU load
+run this script in your maps directory, you need "convert" from ImageMagick
+
+Friends mode runs fine now
+Added parameter -H to correct the alitude
+
+Revision 1.5  2003/01/15 15:30:28  ganter
+before dynamically loading mysql
+
+Revision 1.4  2002/11/02 12:38:55  ganter
+changed website to www.gpsdrive.de
+
+Revision 1.3  2002/06/02 20:54:10  ganter
+added navigation.c and copyrights
+
+Revision 1.2  2002/05/20 20:40:23  ganter
+v1.22
+
+Revision 1.1  2002/05/19 19:25:32  ganter
+added nautic.c
+
+nautic.c -- routines specific for nautic usage
+*****************************************************************/
+
+#include <unistd.h>
+#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
+#include <config.h>
+#include <gpsdrive.h>
+
+/*  Defines for gettext I18n */
+# include <libintl.h>
+# define _(String) gettext(String)
+# ifdef gettext_noop
+#  define N_(String) gettext_noop(String)
+# else
+#  define N_(String) (String)
+# endif
+
+
+extern GtkWidget *hauptfenster;
+GtkWidget *splash_window;
+extern gchar homedir[500], mapdir[500];
+extern gint wpflag, trackflag, muteflag, displaymap_top, displaymap_map;
+extern gint scaleprefered, milesflag, nauticflag, metricflag;
+extern gint debug, scalewanted, savetrack, defaultserver;
+extern gchar serialdev[80];
+extern gdouble current_long, current_lat, old_long, old_lat, groundspeed;
+extern gint setdefaultpos, shadow, testgarmin, needtosave, usedgps;
+extern gchar activewpfile[200];
+extern gint mod_setupcounter;
+extern GtkWidget *setupentry[50], *setupentrylabel[50];
+void (*setupfunction[50])();
+static gint myplace;
+gint moduleversion = 2;
+
+/*  this inits the additional functions for fly */
+gint
+modulesetup ()
+{
+  GtkWidget *mainbox;
+
+
+  setupentry[myplace] = gtk_frame_new (_("Nautic settings"));
+  gtk_container_set_border_width (GTK_CONTAINER
+				  (setupentry[myplace]), 5);
+  setupentrylabel[myplace] = gtk_label_new (_("Nautic"));
+  mainbox = gtk_vbox_new (FALSE, 15);
+  gtk_container_add (GTK_CONTAINER (setupentry[myplace]), mainbox);
+
+  if (debug)
+  g_print ("\nCreated nautic setup window.%d\n",myplace);
+  return 0;
+}
+
+gint
+g_module_check_init ()
+{
+    myplace=mod_setupcounter+1;
+  g_print ("\nModule nautic loaded");
+  return 0;
+}

Added: packages/gpsdrive/branches/etch/src/navigation.c
===================================================================
--- packages/gpsdrive/branches/etch/src/navigation.c	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/navigation.c	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,130 @@
+/****************************************************************
+
+Copyright (c) 2001-2003 Fritz Ganter <ganter at ganter.at>
+
+Website: www.gpsdrive.de
+
+Disclaimer: Please do not use for navigation. 
+
+    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
+
+    *********************************************************************
+
+
+$Log: navigation.c,v $
+Revision 1.9  2004/02/18 13:24:19  ganter
+navigation
+
+Revision 1.8  2004/02/16 23:15:20  ganter
+activated navigation.c for teleatlas street maps, need some months of work to
+get it functional.
+
+Revision 1.7  2004/02/08 16:35:10  ganter
+replacing all sprintf with g_snprintf to avoid buffer overflows
+
+Revision 1.6  2004/02/02 03:38:32  ganter
+code cleanup
+
+Revision 1.5  2003/05/11 21:15:46  ganter
+v2.0pre7
+added script convgiftopng
+This script converts .gif into .png files, which reduces CPU load
+run this script in your maps directory, you need "convert" from ImageMagick
+
+Friends mode runs fine now
+Added parameter -H to correct the alitude
+
+Revision 1.4  2003/01/15 15:30:28  ganter
+before dynamically loading mysql
+
+Revision 1.3  2002/11/02 12:38:55  ganter
+changed website to www.gpsdrive.de
+
+Revision 1.2  2002/06/12 10:58:49  ganter
+v1.23pre7
+
+Revision 1.1  2002/06/02 20:54:10  ganter
+added navigation.c and copyrights
+
+
+navigation.c - street navigation for gpsdrive
+*****************************************************************/
+
+#include <unistd.h>
+#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
+#include <config.h>
+#include <gpsdrive.h>
+
+#ifdef USETELEATLAS
+#include "gpsnavlib.h"
+#endif
+
+/*  Defines for gettext I18n */
+# include <libintl.h>
+# define _(String) gettext(String)
+# ifdef gettext_noop
+#  define N_(String) gettext_noop(String)
+# else
+#  define N_(String) (String)
+# endif
+
+/* variables */
+extern gdouble current_long, current_lat, old_long, old_lat, groundspeed;
+extern gdouble zero_long, zero_lat, target_long, target_lat, dist;
+char actualstreetname[200], oldstreetname[200];
+extern int debug;
+
+
+gint
+nav_doit (GtkWidget * widget, guint * datum)
+{
+#ifdef USETELEATLAS
+  int e;
+  static char streetname[200], buf[220];
+
+  e =
+    ta_getstreetname (current_lat, current_long, streetname,
+		      sizeof (streetname));
+  if (e)
+    {
+      g_strlcpy (actualstreetname, streetname, sizeof (actualstreetname));
+      if (debug)
+	fprintf (stderr, "Location: %s\n", streetname);
+    }
+  else
+    {
+      g_strlcpy (actualstreetname, "---", sizeof (actualstreetname));
+      if (debug)
+	fprintf (stderr, "unknown location\n");
+    }
+  if (strcmp (actualstreetname, oldstreetname) != 0)
+    {
+      g_strlcpy (oldstreetname, actualstreetname, sizeof (oldstreetname));
+      g_snprintf (buf, sizeof (buf), "%s\n", actualstreetname);
+      speech_out_speek (buf);
+    }
+
+#endif
+  return TRUE;
+}
+
+gint
+navi_cb (GtkWidget * widget, guint datum)
+{
+
+    return TRUE;
+}

Added: packages/gpsdrive/branches/etch/src/netlib.c
===================================================================
--- packages/gpsdrive/branches/etch/src/netlib.c	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/netlib.c	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,146 @@
+/*
+$Log: netlib.c,v $
+Revision 1.4  2003/01/23 14:05:35  ganter
+added greek translation
+added geocache scripts
+added geocache icon
+improved search for libmysqlclient.so
+
+Revision 1.3  2002/07/14 18:22:19  ganter
+v1.25pre1
+
+Revision 1.2  2002/04/06 00:36:01  ganter
+changing filelist
+
+*/
+
+#include "config.h"
+#include <stdlib.h>
+#include <string.h>
+
+#if defined (HAVE_STRINGS_H)
+#include <strings.h>
+#endif
+
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <sys/time.h>
+#include <netinet/in.h>
+#include <stdarg.h>
+#include <netdb.h>
+#include <stdio.h>
+#include <arpa/inet.h>
+
+#if defined (HAVE_SYS_PARAM_H)
+#include <sys/param.h>
+#endif
+
+#include "gpsd.h"
+
+
+#if !defined (INADDR_NONE)
+#define INADDR_NONE   ((in_addr_t)-1)
+#endif
+
+static char mbuf[128];
+
+int passivesock(char *service, char *protocol, int qlen)
+{
+    struct servent *pse;
+    struct protoent *ppe;
+    struct sockaddr_in sin;
+    int s, type, i;
+
+    bzero((char *) &sin, sizeof(sin));
+    sin.sin_family = AF_INET;
+    sin.sin_addr.s_addr = INADDR_ANY;
+
+    if ( (pse = getservbyname(service, protocol)) )
+	sin.sin_port = htons(ntohs((u_short) pse->s_port));
+    else if ((sin.sin_port = htons((u_short) atoi(service))) == 0) {
+	sprintf(mbuf, "Can't get \"%s\" service entry.\n", service);
+	errexit(mbuf);
+    }
+    if ((ppe = getprotobyname(protocol)) == 0) {
+	sprintf(mbuf, "Can't get \"%s\" protocol entry.\n", protocol);
+	errexit(mbuf);
+    }
+    if (strcmp(protocol, "udp") == 0)
+	type = SOCK_DGRAM;
+    else
+	type = SOCK_STREAM;
+
+    s = socket(PF_INET, type, ppe->p_proto);
+    if (s < 0)
+	errexit("Can't create socket:");
+
+    i = 1;
+    if (setsockopt(s,  SOL_SOCKET, SO_REUSEADDR, &i, sizeof(i)) < 0) {
+       sprintf(mbuf, "Can't set SO_REUSEADDR, port %s", service);
+       errexit(mbuf);
+    }
+
+    if (bind(s, (struct sockaddr *) &sin, sizeof(sin)) < 0) {
+	sprintf(mbuf, "Can't bind to port %s", service);
+	errexit(mbuf);
+    }
+    if (type == SOCK_STREAM && listen(s, qlen) < 0) {
+	sprintf(mbuf, "Can't listen on %s port:", service);
+	errexit(mbuf);
+    }
+    return s;
+}
+
+int passiveTCP(char *service, int qlen)
+{
+    return passivesock(service, "tcp", qlen);
+}
+
+
+int connectsock(char *host, char *service, char *protocol)
+{
+    struct hostent *phe;
+    struct servent *pse;
+    struct protoent *ppe;
+    struct sockaddr_in sin;
+    int s, type;
+
+    bzero((char *) &sin, sizeof(sin));
+    sin.sin_family = AF_INET;
+
+    if ( (pse = getservbyname(service, protocol)) )
+	sin.sin_port = htons(ntohs((u_short) pse->s_port));
+    else if ((sin.sin_port = htons((u_short) atoi(service))) == 0) {
+	sprintf(mbuf, "Can't get \"%s\" service entry.\n", service);
+	errexit(mbuf);
+    }
+    if ( (phe = gethostbyname(host)) )
+	bcopy(phe->h_addr, (char *) &sin.sin_addr, phe->h_length);
+    else if ((sin.sin_addr.s_addr = inet_addr(host)) == INADDR_NONE) {
+	sprintf(mbuf, "Can't get host entry: \"%s\".\n", host);
+	errexit(mbuf);
+    }
+    if ((ppe = getprotobyname(protocol)) == 0) {
+	sprintf(mbuf, "Can't get \"%s\" protocol entry.\n", protocol);
+	errexit(mbuf);
+    }
+    if (strcmp(protocol, "udp") == 0)
+	type = SOCK_DGRAM;
+    else
+	type = SOCK_STREAM;
+
+    s = socket(PF_INET, type, ppe->p_proto);
+    if (s < 0)
+	errexit("Can't create socket:");
+
+    if (connect(s, (struct sockaddr *) &sin, sizeof(sin)) < 0) {
+	sprintf(mbuf, "Can't connect to %s.%s", host, service);
+	errexit(mbuf);
+    }
+    return s;
+}
+
+int connectTCP(char *host, char *service)
+{
+    return connectsock(host, service, "tcp");
+}

Added: packages/gpsdrive/branches/etch/src/nmea.h
===================================================================
--- packages/gpsdrive/branches/etch/src/nmea.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/nmea.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,96 @@
+#include <time.h>
+
+#define GPGGA "GPGGA"
+#define GPGLL "GPGLL"
+#define GPGSA "GPGSA"
+#define GPGSV "GPGSV"
+#define GPRMC "GPRMC"
+#define PRWIZCH "PRWIZCH"
+
+struct OUTDATA {
+    int fdin;
+    int fdout;
+
+    time_t last_update;		/* When we got last data from GPS receiver */
+
+    long cmask;
+    char utc[20];		/* UTC date / time in format "mm/dd/yy hh:mm:ss" */
+
+    double latitude;		/* Latitude and longitude in format "d.ddddd" */
+
+    double longitude;
+
+    double altitude;		/* Altitude in meters */
+
+    double speed;		/* Speed over ground, knots */
+
+    double track;		/* Track made good, degress True */
+
+    int satellites;		/* Number of satellites used in solution */
+
+    int status;			/* 0 = no fix, 1 = fix, 2 = dgps fix */
+
+    int mode;			/* 1 = no fix, 2 = 2D, 3 = 3D */
+
+    double pdop;		/* Position dilution of precision */
+
+    double hdop;		/* Horizontal dilution of precision */
+
+    double vdop;		/* Vertical dilution of precision */
+
+    int in_view;		/* # of satellites in view */
+
+    int PRN[12];		/* PRN of satellite */
+
+    int elevation[12];		/* elevation of satellite */
+
+    int azimuth[12];		/* azimuth */
+
+    int ss[12];			/* signal strength */
+
+    int used[12];		/* used in solution */
+
+    int ZCHseen;		/* flag */
+
+    int Zs[12];			/* for the rockwell PRWIZCH */
+
+    int Zv[12];			/*                  value */
+
+    int year;
+
+    int month;
+
+    int day;
+
+    int hours;
+
+    int minutes;
+
+    int seconds;
+
+    double separation;
+
+    double mag_var;
+
+    double course;
+
+    int seen[12];
+
+    int valid[12];		/* signal valid */
+};
+
+#define C_LATLON	1
+#define C_SAT		2
+#define C_ZCH		4
+
+/* prototypes */
+extern void doNMEA(short refNum);
+extern void processGPRMC(char *sentence);
+extern void processGPGGA(char *sentence);
+extern void processGPGSV(char *sentence);
+extern void processPRWIZCH(char *sentence);
+extern void processGPGSA(char *sentence);
+extern void processGPGLL(char *sentence);
+extern void add_checksum(char *sentence);
+extern int checksum(char *sentence);
+extern struct OUTDATA gNMEAdata;

Added: packages/gpsdrive/branches/etch/src/nmea_parse.c
===================================================================
--- packages/gpsdrive/branches/etch/src/nmea_parse.c	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/nmea_parse.c	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,298 @@
+#include "config.h"
+#include <stdio.h>
+#include <math.h>
+#include <string.h>
+#include "nmea.h"
+
+extern struct OUTDATA gNMEAdata;
+static void do_lat_lon(char *sentence, int begin);
+static char *field(char *sentence, short n);
+
+static void update_field_i(char *sentence, int fld, int *dest, int mask);
+#if 0
+static void update_field_f(char *sentence, int fld, double *dest, int mask);
+#endif
+/* ----------------------------------------------------------------------- */
+
+/*
+   The time field in the GPRMC sentence is in the format hhmmss;
+   the date field is in the format ddmmyy. The output will
+   be in the format:
+
+   mm/dd/yyyy hh:mm:ss
+   01234567890123456789
+ */
+
+void processGPRMC(char *sentence)
+{
+    char s[20], d[10];
+    int tmp;
+
+    sscanf(field(sentence, 9), "%s", d);	/* Date: ddmmyy */
+
+    strncpy(s, d + 2, 2);	/* copy month */
+
+    strncpy(s + 3, d, 2);	/* copy date */
+
+    sscanf((d+4), "%2d", &tmp);
+
+    /* Tf.: Window the year from 1970 to 2069. This buys us some time. */
+    if (tmp < 70) 
+      strncpy(s + 6, "20", 2);	/* 21th century */
+    else
+      strncpy(s + 6, "19", 2);	/* 20th century */
+
+    strncpy(s + 8, d + 4, 2);	/* copy year */
+
+    sscanf(field(sentence, 1), "%s", d);	/* Time: hhmmss */
+
+    strncpy(s + 11, d, 2);	/* copy hours */
+
+    strncpy(s + 14, d + 2, 2);	/* copy minutes */
+
+    strncpy(s + 17, d + 4, 2);	/* copy seconds */
+
+    s[2] = s[5] = '/';		/* add the '/'s, ':'s, ' ' and string terminator */
+
+    s[10] = ' ';
+    s[13] = s[16] = ':';
+    s[19] = '\0';
+
+    strcpy(gNMEAdata.utc, s);
+
+    /* A = valid, V = invalid */
+    if (strcmp(field(sentence, 2), "V") == 0)
+	gNMEAdata.status = 0;
+#if 0    /* Let the GGA sentence do the update so we catch diff fixes */
+    else
+	gNMEAdata.status = 0;
+#endif
+
+    sscanf(field(sentence, 7), "%lf", &gNMEAdata.speed);
+    sscanf(field(sentence, 8), "%lf", &gNMEAdata.track);
+
+    do_lat_lon(sentence, 3);
+
+}
+
+/* ----------------------------------------------------------------------- */
+
+void processGPGGA(char *sentence)
+{
+    do_lat_lon(sentence, 2);
+    /* 0 = none, 1 = normal, 2 = diff */
+    sscanf(field(sentence, 6), "%d", &gNMEAdata.status);
+    sscanf(field(sentence, 7), "%d", &gNMEAdata.satellites);
+    sscanf(field(sentence, 9), "%lf", &gNMEAdata.altitude);
+}
+
+/* ----------------------------------------------------------------------- */
+
+void processGPGSA(char *sentence)
+{
+    /* 1 = none, 2 = 2d, 3 = 3d */
+    sscanf(field(sentence, 2), "%d", &gNMEAdata.mode);
+    sscanf(field(sentence, 15), "%lf", &gNMEAdata.pdop);
+    sscanf(field(sentence, 16), "%lf", &gNMEAdata.hdop);
+    sscanf(field(sentence, 17), "%lf", &gNMEAdata.vdop);
+}
+
+/* ----------------------------------------------------------------------- */
+
+void processGPGSV(char *sentence)
+{
+    int n, m, f = 4;
+
+    sscanf(field(sentence, 2), "%d", &n);
+    update_field_i(sentence, 3, &gNMEAdata.in_view, C_SAT);
+
+    n = (n - 1) * 4;
+    m = n + 4;
+
+    while (n < gNMEAdata.in_view && n < m) {
+	update_field_i(sentence, f++, &gNMEAdata.PRN[n], C_SAT);
+	update_field_i(sentence, f++, &gNMEAdata.elevation[n], C_SAT);
+	update_field_i(sentence, f++, &gNMEAdata.azimuth[n], C_SAT);
+	if (*(field(sentence, f)))
+	    update_field_i(sentence, f, &gNMEAdata.ss[n], C_SAT);
+	f++;
+	n++;
+    }
+}
+
+/* ----------------------------------------------------------------------- */
+
+void processPRWIZCH(char *sentence)
+{
+    int i;
+
+    for (i = 0; i < 12; i++) {
+	update_field_i(sentence, 2 * i + 1, &gNMEAdata.Zs[i], C_ZCH);
+	update_field_i(sentence, 2 * i + 2, &gNMEAdata.Zv[i], C_ZCH);
+    }
+    gNMEAdata.ZCHseen = 1;
+}
+
+/* ----------------------------------------------------------------------- */
+
+void processGPGLL(char *sentence)
+{
+    do_lat_lon(sentence, 1);
+
+    /* A = valid, V = invalid */
+    if (strcmp(field(sentence, 6), "V") == 0)
+        gNMEAdata.status = 0;
+}
+
+/* ----------------------------------------------------------------------- */
+
+static void do_lat_lon(char *sentence, int begin)
+{
+    double lat, lon, d, m;
+    char str[20], *p;
+    int updated = 0;
+
+    if (*(p = field(sentence, begin + 0)) != '\0') {
+	strncpy(str, p, 20);
+	sscanf(p, "%lf", &lat);
+	m = 100.0 * modf(lat / 100.0, &d);
+	lat = d + m / 60.0;
+	p = field(sentence, begin + 1);
+	if (*p == 'S')
+	    lat = -lat;
+	if (gNMEAdata.latitude != lat) {
+	    gNMEAdata.latitude = lat;
+	    gNMEAdata.cmask |= C_LATLON;
+	}
+        updated++;
+    }
+    if (*(p = field(sentence, begin + 2)) != '\0') {
+	strncpy(str, p, 20);
+	sscanf(p, "%lf", &lon);
+	m = 100.0 * modf(lon / 100.0, &d);
+	lon = d + m / 60.0;
+
+	p = field(sentence, begin + 3);
+	if (*p == 'W')
+	    lon = -lon;
+	if (gNMEAdata.longitude != lon) {
+	    gNMEAdata.longitude = lon;
+	    gNMEAdata.cmask |= C_LATLON;
+	}
+        updated++;
+    }
+    if (updated == 2)
+        gNMEAdata.last_update = time(NULL);
+}
+
+
+static void update_field_i(char *sentence, int fld, int *dest, int mask)
+{
+    int tmp;
+
+    sscanf(field(sentence, fld), "%d", &tmp);
+
+    if (dest == NULL) return;
+    
+    if (tmp != *dest)
+    {
+        *dest = tmp;
+        gNMEAdata.cmask |= mask;
+    }
+}
+
+#if 0
+static void update_field_f(char *sentence, int fld, double *dest, int mask)
+{
+    double tmp;
+
+    scanf(field(sentence, fld), "%lf", &tmp);
+
+    if (tmp != *dest) {
+	*dest = tmp;
+	gNMEAdata.cmask |= mask;
+    }
+}
+#endif
+
+/* ----------------------------------------------------------------------- */
+
+int checksum(char *sentence)
+{
+    /* static for speed */
+    static char s[100], csum[3];
+    /* int for speed */
+    int i = 1, mesg_len, checksum = 0, csum_orig;
+
+    strncpy (s, sentence, 99);
+    s[99] = 0;
+    mesg_len = strlen (s) - 3;
+    while (('\0' != s[i]) && (i < mesg_len))
+        checksum ^= s[i++];
+
+    if (s[mesg_len] != '*')
+    {
+        fprintf(stderr, "checksum error: checksum not preceded with '*'\n");
+        return 0;
+    }
+
+    strcpy (csum, (s + mesg_len + 1));
+    sscanf (csum, "%X", &csum_orig);
+
+    /*
+    fprintf(stderr, "\n%s\norigchecksum: %0X, my:%0X\n", s, csum_orig, checksum);
+    */
+
+    if (csum_orig == checksum)
+    {
+        return 1; /* returning checksum could return 0, 1 time out of 2^8 */
+    }
+    else
+    {
+        fprintf(stderr, "checksum error: NMEA: \"%s\", read as: %#04X, calculated as: %#04X\n",
+                csum, csum_orig, checksum);
+        return 0;
+    }
+
+    //    unsigned char sum = '\0';
+    //    char c, *p = sentence, csum[3];
+
+    //    while ((c = *p++) != '*')
+    //	sum ^= c;
+
+    //    sprintf(csum, "%02X", sum);
+    //    return (strncmp(csum, p, 2) == 0);
+}
+
+void add_checksum(char *sentence)
+{
+    unsigned char sum = '\0';
+    char c, *p = sentence;
+
+    while ((c = *p++) != '*')
+	sum ^= c;
+
+    sprintf(p, "%02X\r\n", sum);
+}
+
+/* ----------------------------------------------------------------------- */
+
+/* field() returns a string containing the nth comma delimited
+   field from sentence string
+ */
+
+static char *field(char *sentence, short n)
+{
+    static char result[100];
+    char *p = sentence;
+
+    while (n-- > 0)
+	while (*p++ != ',');
+    strcpy(result, p);
+    p = result;
+    while (*p && *p != ',' && *p != '*' && *p != '\r')
+	p++;
+
+    *p = '\0';
+    return result;
+}

Added: packages/gpsdrive/branches/etch/src/power.h
===================================================================
--- packages/gpsdrive/branches/etch/src/power.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/power.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,1417 @@
+/* XPM */
+static char * battery_xpm[] = {
+"17 50 625 2",
+"  	c None",
+". 	c #CABEBE",
+"+ 	c #D3C7C8",
+"@ 	c #B59590",
+"# 	c #B09E99",
+"$ 	c #958680",
+"% 	c #D4C8C0",
+"& 	c #DBCDC5",
+"* 	c #D8CCC4",
+"= 	c #E2D5CD",
+"- 	c #A19188",
+"; 	c #B29E92",
+"> 	c #B8A091",
+", 	c #E2CFC1",
+"' 	c #C19990",
+") 	c #AF796F",
+"! 	c #A4736A",
+"~ 	c #AC8C85",
+"{ 	c #9A877C",
+"] 	c #D1C3B4",
+"^ 	c #C1B2A3",
+"/ 	c #F4E8D9",
+"( 	c #AD9C8D",
+"_ 	c #B0998A",
+": 	c #B58D7D",
+"< 	c #BD8A7A",
+"[ 	c #D4A595",
+"} 	c #B8775C",
+"| 	c #C8805E",
+"1 	c #D19C7B",
+"2 	c #E6C6AB",
+"3 	c #E2D3BE",
+"4 	c #E8DDCB",
+"5 	c #E8DFCD",
+"6 	c #E7DCCB",
+"7 	c #F0E3D3",
+"8 	c #E8D9C8",
+"9 	c #ECD7C1",
+"0 	c #E2B297",
+"a 	c #D09073",
+"b 	c #C7815D",
+"c 	c #B66B4A",
+"d 	c #C06A3C",
+"e 	c #CE8653",
+"f 	c #E1A879",
+"g 	c #DEAD7D",
+"h 	c #D5A070",
+"i 	c #D6A071",
+"j 	c #D7A071",
+"k 	c #DDA878",
+"l 	c #E9B382",
+"m 	c #E4AC7B",
+"n 	c #D8905F",
+"o 	c #C47347",
+"p 	c #BB6D41",
+"q 	c #B56A4D",
+"r 	c #BD6434",
+"s 	c #CF7F44",
+"t 	c #E8A669",
+"u 	c #E2A469",
+"v 	c #C37D49",
+"w 	c #B16835",
+"x 	c #B76F3B",
+"y 	c #CD8C56",
+"z 	c #E5AB72",
+"A 	c #E3A973",
+"B 	c #D28853",
+"C 	c #BA6939",
+"D 	c #BA6D3F",
+"E 	c #AF6852",
+"F 	c #BF693B",
+"G 	c #D1854A",
+"H 	c #EFB070",
+"I 	c #EDAD6F",
+"J 	c #CB7C46",
+"K 	c #B96430",
+"L 	c #C16D39",
+"M 	c #CF874F",
+"N 	c #EAB174",
+"O 	c #E6B481",
+"P 	c #CA8A59",
+"Q 	c #B56B3E",
+"R 	c #B86F40",
+"S 	c #B56850",
+"T 	c #C26737",
+"U 	c #D38446",
+"V 	c #F1B16F",
+"W 	c #EFAF71",
+"X 	c #CD7E4B",
+"Y 	c #BB6535",
+"Z 	c #C06C3B",
+"` 	c #CE8A53",
+" .	c #E9B67B",
+"..	c #E9B67E",
+"+.	c #D28E58",
+"@.	c #B96C39",
+"#.	c #B96E3C",
+"$.	c #B1684B",
+"%.	c #C06A34",
+"&.	c #D5884C",
+"*.	c #F4B06E",
+"=.	c #EFAB72",
+"-.	c #CC7E4B",
+";.	c #BC6636",
+">.	c #BE6A3A",
+",.	c #D28C56",
+"'.	c #EBB57B",
+").	c #ECB77D",
+"!.	c #D58E56",
+"~.	c #BD6A3A",
+"{.	c #B86C3D",
+"].	c #EDCDB0",
+"^.	c #AD694C",
+"/.	c #BD6C34",
+"(.	c #D2864C",
+"_.	c #F2AD6D",
+":.	c #EEAA73",
+"<.	c #CC7F4D",
+"[.	c #B96536",
+"}.	c #BC693A",
+"|.	c #D18B57",
+"1.	c #EBB47B",
+"2.	c #EAB67D",
+"3.	c #D48E56",
+"4.	c #C06B3D",
+"5.	c #BB6F42",
+"6.	c #EDCFB4",
+"7.	c #BE6D35",
+"8.	c #D5894F",
+"9.	c #EDA872",
+"0.	c #BB6738",
+"a.	c #D08B57",
+"b.	c #EAB47B",
+"c.	c #EAB57C",
+"d.	c #D18C54",
+"e.	c #C36F40",
+"f.	c #BE7245",
+"g.	c #ECCEB2",
+"h.	c #B06D52",
+"i.	c #BC6B33",
+"j.	c #D6894F",
+"k.	c #F5AF6F",
+"l.	c #F1AD76",
+"m.	c #C97C4A",
+"n.	c #B76434",
+"o.	c #BC6939",
+"p.	c #CF8955",
+"q.	c #EAB37A",
+"r.	c #E6B27A",
+"s.	c #CE8951",
+"t.	c #C36E3F",
+"u.	c #BE7144",
+"v.	c #B06F54",
+"w.	c #B96830",
+"x.	c #D08349",
+"y.	c #EFAA6A",
+"z.	c #EFAA74",
+"A.	c #C97D4B",
+"B.	c #B86434",
+"C.	c #ECB57C",
+"D.	c #CD8850",
+"E.	c #BD7043",
+"F.	c #B16F56",
+"G.	c #BA6733",
+"H.	c #D1854C",
+"I.	c #F0AB6C",
+"J.	c #F0AB73",
+"K.	c #C97D49",
+"L.	c #B76332",
+"M.	c #BE6B3A",
+"N.	c #D18B56",
+"O.	c #EDB67C",
+"P.	c #E8B37D",
+"Q.	c #CC8650",
+"R.	c #BA683A",
+"S.	c #BA7143",
+"T.	c #B46E59",
+"U.	c #BE693D",
+"V.	c #CD884E",
+"W.	c #EDAC6E",
+"X.	c #EEAA6D",
+"Y.	c #C77B45",
+"Z.	c #B76330",
+"`.	c #BF6C38",
+" +	c #EDB67A",
+".+	c #E5B07A",
+"++	c #D08551",
+"@+	c #BD6D3F",
+"#+	c #B77343",
+"$+	c #B47158",
+"%+	c #B96938",
+"&+	c #C68548",
+"*+	c #E9B06C",
+"=+	c #E7AB6A",
+"-+	c #C97E47",
+";+	c #D18B53",
+">+	c #EDB679",
+",+	c #E4B075",
+"'+	c #CE814B",
+")+	c #BC6538",
+"!+	c #BB6F41",
+"~+	c #E8CDAD",
+"{+	c #B67057",
+"]+	c #BB6736",
+"^+	c #CD8347",
+"/+	c #EEAE6C",
+"(+	c #EBAC6B",
+"_+	c #CA7E48",
+":+	c #BC6935",
+"<+	c #D18A52",
+"[+	c #EEB77A",
+"}+	c #E5B173",
+"|+	c #D0834C",
+"1+	c #C0683E",
+"2+	c #BC6F45",
+"3+	c #E8CDB0",
+"4+	c #AD6F5A",
+"5+	c #BA673C",
+"6+	c #D5834F",
+"7+	c #F3A970",
+"8+	c #EDAA6E",
+"9+	c #CA7E47",
+"0+	c #B96732",
+"a+	c #BB6935",
+"b+	c #D18B52",
+"c+	c #EAB375",
+"d+	c #E8B377",
+"e+	c #D08853",
+"f+	c #B76C47",
+"g+	c #B3724D",
+"h+	c #E4CCB3",
+"i+	c #7C5541",
+"j+	c #A4623B",
+"k+	c #C97E50",
+"l+	c #ECA573",
+"m+	c #E8A971",
+"n+	c #B76431",
+"o+	c #B96733",
+"p+	c #CD874F",
+"q+	c #E3AD70",
+"r+	c #E0AA73",
+"s+	c #C58355",
+"t+	c #A26747",
+"u+	c #855536",
+"v+	c #D0BEA9",
+"w+	c #291F1B",
+"x+	c #2D1706",
+"y+	c #55381C",
+"z+	c #876848",
+"A+	c #987550",
+"B+	c #8B5934",
+"C+	c #87542C",
+"D+	c #855130",
+"E+	c #92623D",
+"F+	c #9D7152",
+"G+	c #7E5E41",
+"H+	c #533B26",
+"I+	c #301E0F",
+"J+	c #311F10",
+"K+	c #222120",
+"L+	c #130F02",
+"M+	c #1A1101",
+"N+	c #291B07",
+"O+	c #332712",
+"P+	c #31271C",
+"Q+	c #564F3E",
+"R+	c #867E76",
+"S+	c #8D8577",
+"T+	c #716763",
+"U+	c #362718",
+"V+	c #21190D",
+"W+	c #141007",
+"X+	c #261E12",
+"Y+	c #201F1E",
+"Z+	c #0E0A01",
+"`+	c #170E02",
+" @	c #2A1B0D",
+".@	c #3D3025",
+"+@	c #453D3B",
+"@@	c #9F9991",
+"#@	c #CBC4C6",
+"$@	c #C8C1BE",
+"%@	c #A69DA4",
+"&@	c #382A1E",
+"*@	c #1F160B",
+"=@	c #161108",
+"-@	c #271E12",
+";@	c #110C04",
+">@	c #180E04",
+",@	c #2B1B14",
+"'@	c #3D3129",
+")@	c #282620",
+"!@	c #919184",
+"~@	c #6D6B69",
+"{@	c #6E6D66",
+"]@	c #9A9799",
+"^@	c #34281B",
+"/@	c #1F170B",
+"(@	c #120E05",
+"_@	c #21201E",
+":@	c #110C05",
+"<@	c #170D06",
+"[@	c #2A1918",
+"}@	c #3C2E2A",
+"|@	c #504845",
+"1@	c #524B43",
+"2@	c #E6E0E1",
+"3@	c #E8E3DF",
+"4@	c #675D64",
+"5@	c #37291D",
+"6@	c #22190E",
+"7@	c #141008",
+"8@	c #1E1E1D",
+"9@	c #0E0A04",
+"0@	c #170D07",
+"a@	c #2B1B1B",
+"b@	c #3C2F2C",
+"c@	c #3F3830",
+"d@	c #3C3425",
+"e@	c #AAA3A0",
+"f@	c #BEB9B0",
+"g@	c #7F7577",
+"h@	c #36271C",
+"i@	c #1F160C",
+"j@	c #130E07",
+"k@	c #271E13",
+"l@	c #1F2123",
+"m@	c #0C0B05",
+"n@	c #191309",
+"o@	c #2D211B",
+"p@	c #40372F",
+"q@	c #423B35",
+"r@	c #9F9785",
+"s@	c #B3AEAC",
+"t@	c #979490",
+"u@	c #6D6366",
+"v@	c #342320",
+"w@	c #1F140F",
+"x@	c #16110C",
+"y@	c #2A2117",
+"z@	c #1F2224",
+"A@	c #0C0B04",
+"B@	c #161006",
+"C@	c #261A13",
+"D@	c #3A3129",
+"E@	c #29231D",
+"F@	c #A9A190",
+"G@	c #867F7E",
+"H@	c #777471",
+"I@	c #61585B",
+"J@	c #33221F",
+"K@	c #2B2218",
+"L@	c #281C15",
+"M@	c #382F27",
+"N@	c #4C463F",
+"O@	c #574C3C",
+"P@	c #CDC7C5",
+"Q@	c #D5D2CF",
+"R@	c #8B8185",
+"S@	c #32211E",
+"T@	c #1E140F",
+"U@	c #15110C",
+"V@	c #2C2319",
+"W@	c #1E2022",
+"X@	c #0C0C05",
+"Y@	c #161106",
+"Z@	c #413830",
+"`@	c #4B443E",
+" #	c #877D6D",
+".#	c #D0CAC8",
+"+#	c #D4D2CF",
+"@#	c #92888C",
+"##	c #352421",
+"$#	c #1D130E",
+"%#	c #140F0A",
+"&#	c #140E04",
+"*#	c #231811",
+"=#	c #362C24",
+"-#	c #37312A",
+";#	c #564B3C",
+">#	c #A8A09D",
+",#	c #9C9A97",
+"'#	c #A39A9D",
+")#	c #352522",
+"!#	c #201611",
+"~#	c #17120D",
+"{#	c #2B2219",
+"]#	c #1E2020",
+"^#	c #0A0A02",
+"/#	c #161105",
+"(#	c #261B12",
+"_#	c #352B23",
+":#	c #3B352D",
+"<#	c #8A8173",
+"[#	c #E5E1DB",
+"}#	c #E6E4E3",
+"|#	c #978F8F",
+"1#	c #35251F",
+"2#	c #231812",
+"3#	c #18130D",
+"4#	c #2C2418",
+"5#	c #1F2220",
+"6#	c #0C0C02",
+"7#	c #171205",
+"8#	c #261A10",
+"9#	c #3D342B",
+"0#	c #3D382F",
+"a#	c #998F84",
+"b#	c #7C756E",
+"c#	c #656162",
+"d#	c #4B4241",
+"e#	c #372720",
+"f#	c #221811",
+"g#	c #18130C",
+"h#	c #2F261A",
+"i#	c #222523",
+"j#	c #0F1005",
+"k#	c #191407",
+"l#	c #271D12",
+"m#	c #3C332A",
+"n#	c #423D33",
+"o#	c #786D61",
+"p#	c #EEE9E2",
+"q#	c #E4E2E2",
+"r#	c #7C7473",
+"s#	c #21160F",
+"t#	c #17130C",
+"u#	c #322A1D",
+"v#	c #202321",
+"w#	c #0B0B02",
+"x#	c #161104",
+"y#	c #251A10",
+"z#	c #30261D",
+"A#	c #403A31",
+"B#	c #5A4E43",
+"C#	c #C6BFB8",
+"D#	c #D6D3D4",
+"E#	c #9A9290",
+"F#	c #33241D",
+"G#	c #20150F",
+"H#	c #17120B",
+"I#	c #30281B",
+"J#	c #262927",
+"K#	c #121208",
+"L#	c #1A1507",
+"M#	c #261B10",
+"N#	c #322920",
+"O#	c #413B31",
+"P#	c #A2978B",
+"Q#	c #CEC9C2",
+"R#	c #7D7A7A",
+"S#	c #403736",
+"T#	c #34241D",
+"U#	c #2F271B",
+"V#	c #262827",
+"W#	c #141309",
+"X#	c #181205",
+"Y#	c #261B11",
+"Z#	c #3D332A",
+"`#	c #474137",
+" $	c #5C5146",
+".$	c #D9D3CD",
+"+$	c #DBD9D6",
+"@$	c #605758",
+"#$	c #34251E",
+"$$	c #20160F",
+"%$	c #262122",
+"&$	c #120C04",
+"*$	c #170F03",
+"=$	c #241A0F",
+"-$	c #3B3027",
+";$	c #484137",
+">$	c #959083",
+",$	c #938C8B",
+"'$	c #989288",
+")$	c #999297",
+"!$	c #34271F",
+"~$	c #221711",
+"{$	c #19140D",
+"]$	c #31291C",
+"^$	c #262223",
+"/$	c #191105",
+"($	c #33281F",
+"_$	c #484237",
+":$	c #8F897D",
+"<$	c #534C42",
+"[$	c #898087",
+"}$	c #352820",
+"|$	c #191004",
+"1$	c #241A10",
+"2$	c #32271E",
+"3$	c #433C32",
+"4$	c #847E71",
+"5$	c #BCB6B4",
+"6$	c #C2BDB3",
+"7$	c #857C83",
+"8$	c #241912",
+"9$	c #1A150F",
+"0$	c #322A1E",
+"a$	c #262123",
+"b$	c #140D06",
+"c$	c #1B1206",
+"d$	c #261C11",
+"e$	c #271C12",
+"f$	c #221B11",
+"g$	c #A6A093",
+"h$	c #C3BCBB",
+"i$	c #CEC8BE",
+"j$	c #9D959B",
+"k$	c #33271F",
+"l$	c #251A13",
+"m$	c #1B1610",
+"n$	c #342C20",
+"o$	c #292425",
+"p$	c #150F07",
+"q$	c #1C1307",
+"r$	c #2A2015",
+"s$	c #271D13",
+"t$	c #1E170D",
+"u$	c #979185",
+"v$	c #766D6C",
+"w$	c #7A7469",
+"x$	c #867D83",
+"y$	c #372A22",
+"z$	c #251A14",
+"A$	c #352C20",
+"B$	c #252324",
+"C$	c #120E06",
+"D$	c #1B1608",
+"E$	c #2B2317",
+"F$	c #271F15",
+"G$	c #18120C",
+"H$	c #7A7066",
+"I$	c #ABA5A0",
+"J$	c #B1AEAA",
+"K$	c #807976",
+"L$	c #372D24",
+"M$	c #221C14",
+"N$	c #1C1610",
+"O$	c #382D22",
+"P$	c #232223",
+"Q$	c #0F0D05",
+"R$	c #171305",
+"S$	c #262013",
+"T$	c #231C13",
+"U$	c #17110C",
+"V$	c #A89E95",
+"W$	c #B6B0A9",
+"X$	c #9A9794",
+"Y$	c #6B645E",
+"Z$	c #33291F",
+"`$	c #211D14",
+" %	c #382B21",
+".%	c #242323",
+"+%	c #18120D",
+"@%	c #8C8279",
+"#%	c #514841",
+"$%	c #2A2724",
+"%%	c #38312B",
+"&%	c #332A1F",
+"*%	c #1F1B12",
+"=%	c #1A140E",
+"-%	c #372A1F",
+";%	c #1F1E1F",
+">%	c #0D0B03",
+",%	c #161305",
+"'%	c #241E11",
+")%	c #140F0B",
+"!%	c #877D74",
+"~%	c #C2BCB5",
+"{%	c #C8C6C3",
+"]%	c #867F79",
+"^%	c #332920",
+"/%	c #1D1910",
+"(%	c #36291F",
+"_%	c #1D1C1C",
+":%	c #151103",
+"<%	c #221C0F",
+"[%	c #211B12",
+"}%	c #130E09",
+"|%	c #A09992",
+"1%	c #8D8A87",
+"2%	c #625B56",
+"3%	c #2B2117",
+"4%	c #1A160D",
+"5%	c #1A150E",
+"6%	c #232224",
+"7%	c #0C0903",
+"8%	c #100C01",
+"9%	c #1D160A",
+"0%	c #1C150C",
+"a%	c #110B06",
+"b%	c #7B7067",
+"c%	c #453C35",
+"d%	c #4C4743",
+"e%	c #514943",
+"f%	c #281F15",
+"g%	c #1A150D",
+"h%	c #18110A",
+"i%	c #372A20",
+"j%	c #333135",
+"k%	c #090606",
+"l%	c #0C0702",
+"m%	c #150E05",
+"n%	c #181005",
+"o%	c #0E0600",
+"p%	c #160E05",
+"q%	c #1A1209",
+"r%	c #251E14",
+"s%	c #2C241A",
+"t%	c #211B13",
+"u%	c #17120A",
+"v%	c #1B1207",
+"w%	c #41342B",
+"x%	c #2C2C2F",
+"y%	c #090807",
+"z%	c #0A0601",
+"A%	c #100C02",
+"B%	c #161004",
+"C%	c #0D0601",
+"D%	c #0E0801",
+"E%	c #160F05",
+"F%	c #1F180E",
+"G%	c #16140A",
+"H%	c #392F26",
+"                                  ",
+"                . +               ",
+"        @ # $ % & * = - ; > ,     ",
+"    ' ) ! ~ { ] ] ^ / ( _ : < [   ",
+"    } | 1 2 3 4 5 6 7 8 9 0 a b   ",
+"    c d e f g h i j k l m n o p   ",
+"    q r s t u v w x y z A B C D   ",
+"    E F G H I J K L M N O P Q R   ",
+"    S T U V W X Y Z `  ...+. at .#.  ",
+"    $.%.&.*.=.-.;.>.,.'.).!.~.{.].",
+"    ^./.(._.:.<.[.}.|.1.2.3.4.5.6.",
+"    ^.7.8._.9.<.0.~.a.b.c.d.e.f.g.",
+"    h.i.j.k.l.m.n.o.p.q.r.s.t.u.  ",
+"    v.w.x.y.z.A.B.}.|.C.r.D.4.E.  ",
+"    F.G.H.I.J.K.L.M.N.O.P.Q.R.S.  ",
+"    T.U.V.W.X.Y.Z.`.d. +.+++ at +#+  ",
+"    $+%+&+*+=+-+G.`.;+>+,+'+)+!+~+",
+"    {+]+^+/+(+_+G.:+<+[+}+|+1+2+3+",
+"    4+5+6+7+8+9+0+a+b+c+d+e+f+g+h+",
+"    i+j+k+l+m+Y.n+o+p+q+r+s+t+u+v+",
+"    w+x+y+z+A+B+C+D+E+F+G+H+I+J+  ",
+"    K+L+M+N+O+P+Q+R+S+T+U+V+W+X+  ",
+"    Y+Z+`+ @. at +@@@#@$@%@&@*@=@-@  ",
+"    Y+;@>@,@'@)@!@~@{@]@^@/@(@-@  ",
+"    _@:@<@[@}@|@1 at 2@3 at 4@5 at 6@7 at X+  ",
+"    8 at 9@0 at a@b at c@d at e@f at g@h at i@j at k@  ",
+"    l at m@n at o@p at q@r at s@t at u@v at w@x at y@  ",
+"    z at A@B at C@D at E@F at G@H at I@J at w@x at K@  ",
+"    l at A@B at L@M at N@O at P@Q at R@S at T@U at V@  ",
+"    W at X@Y at C@Z@`@ #.#+#@###$#%#K@  ",
+"    l at m@&#*#=#-#;#>#,#'#)#!#~#{#  ",
+"    ]#^#/#(#_#:#<#[#}#|#1#2#3#4#  ",
+"    5#6#7#8#9#0#a#b#c#d#e#f#g#h#  ",
+"    i#j#k#l#m#n#o#p#q#r#e#s#t#u#  ",
+"    v#w#x#y#z#A#B#C#D#E#F#G#H#I#  ",
+"    J#K#L#M#N#O#P#Q#R#S#T#G#H#U#  ",
+"    V#W#X#Y#Z#`# $.$+$@$#$$$t#U#  ",
+"    %$&$*$=$-$;$>$,$'$)$!$~${$]$  ",
+"    ^$&$/$l#($_$:$d#<$[$}$*#{$]$  ",
+"    %$&$|$1$2$3$4$5$6$7$}$8$9$0$  ",
+"    a$b$c$d$e$f$g$h$i$j$k$l$m$n$  ",
+"    o$p$q$r$s$t$u$v$w$x$y$z$m$A$  ",
+"    B$C$D$E$F$G$H$I$J$K$L$M$N$O$  ",
+"    P$Q$R$S$T$U$V$W$X$Y$Z$`$m$ %  ",
+"    .%Q$R$S$T$+%@%#%$%%%&%*%=%-%  ",
+"    ;%>%,%'%T$)%!%~%{%]%^%/%9$(%  ",
+"    _%Q$:%<%[%}%V$|%1%2%3%4%5% %  ",
+"    6%7%8%9%0%a%b%c%d%e%f%g%h%i%  ",
+"    j%k%l%m%n%o%p%q%r%s%t%u%v%w%  ",
+"    x%y%z%A%B%C%D%E%F%f$*%G%9%H%  "};
+
+
+/* XPM */
+static char * powercord_xpm[] = {
+"17 50 489 2",
+"  	c None",
+". 	c #B2B6C1",
+"+ 	c #979BA3",
+"@ 	c #979CA2",
+"# 	c #91959F",
+"$ 	c #9093A1",
+"% 	c #A1A4AF",
+"& 	c #9EA2AB",
+"* 	c #979BA4",
+"= 	c #878B94",
+"- 	c #80848D",
+"; 	c #6B6E78",
+"> 	c #7C7F88",
+", 	c #A8AAB4",
+"' 	c #70747F",
+") 	c #545861",
+"! 	c #33383D",
+"~ 	c #2F3438",
+"{ 	c #2E333A",
+"] 	c #3D414C",
+"^ 	c #32373E",
+"/ 	c #3A3F45",
+"( 	c #3B4046",
+"_ 	c #34393F",
+": 	c #43484E",
+"< 	c #373C41",
+"[ 	c #373B3F",
+"} 	c #32363C",
+"| 	c #4B4E56",
+"1 	c #838590",
+"2 	c #484C56",
+"3 	c #3F434A",
+"4 	c #161B1D",
+"5 	c #060B0D",
+"6 	c #1C2125",
+"7 	c #4F535C",
+"8 	c #454A4F",
+"9 	c #3F4448",
+"0 	c #3B4043",
+"a 	c #54595D",
+"b 	c #34393D",
+"c 	c #0F1315",
+"d 	c #0B0F11",
+"e 	c #373B40",
+"f 	c #6A6C75",
+"g 	c #4D5158",
+"h 	c #52575B",
+"i 	c #2D3234",
+"j 	c #1F2525",
+"k 	c #313639",
+"l 	c #565A60",
+"m 	c #414749",
+"n 	c #1A2020",
+"o 	c #101516",
+"p 	c #2D3233",
+"q 	c #54595A",
+"r 	c #373C3D",
+"s 	c #2D3131",
+"t 	c #2B2F30",
+"u 	c #4D5155",
+"v 	c #5E6069",
+"w 	c #3E4243",
+"x 	c #414546",
+"y 	c #585C5E",
+"z 	c #5E6166",
+"A 	c #52555B",
+"B 	c #4A4E54",
+"C 	c #4A4D52",
+"D 	c #0E1116",
+"E 	c #0F1217",
+"F 	c #282B30",
+"G 	c #505358",
+"H 	c #2E3136",
+"I 	c #4D5055",
+"J 	c #5C5F64",
+"K 	c #484C4F",
+"L 	c #45494D",
+"M 	c #323637",
+"N 	c #25292A",
+"O 	c #303436",
+"P 	c #3C3F43",
+"Q 	c #43464C",
+"R 	c #474A51",
+"S 	c #3E4046",
+"T 	c #2F3237",
+"U 	c #33363B",
+"V 	c #43464B",
+"W 	c #3F4247",
+"X 	c #4C4F54",
+"Y 	c #36393D",
+"Z 	c #202427",
+"` 	c #3A3D42",
+" .	c #3D4142",
+"..	c #222627",
+"+.	c #1D2123",
+"@.	c #212428",
+"#.	c #2C2F35",
+"$.	c #363940",
+"%.	c #383B41",
+"&.	c #383B40",
+"*.	c #393C41",
+"=.	c #3B3E43",
+"-.	c #2C2F34",
+";.	c #1B1E22",
+">.	c #1F2326",
+",.	c #474B4F",
+"'.	c #3A3E3F",
+").	c #232728",
+"!.	c #1D2025",
+"~.	c #282B31",
+"{.	c #383B42",
+"].	c #3D4046",
+"^.	c #3C3F44",
+"/.	c #3E4146",
+"(.	c #272A2F",
+"_.	c #191C20",
+":.	c #1C2022",
+"<.	c #292C32",
+"[.	c #3D4045",
+"}.	c #3C4044",
+"|.	c #3A3C42",
+"1.	c #2A2C32",
+"2.	c #191C21",
+"3.	c #1D2124",
+"4.	c #464A4E",
+"5.	c #464A4B",
+"6.	c #161A1C",
+"7.	c #1A1D22",
+"8.	c #2B2E33",
+"9.	c #414449",
+"0.	c #373A3F",
+"a.	c #24282C",
+"b.	c #1D2125",
+"c.	c #3D4145",
+"d.	c #4E5253",
+"e.	c #212526",
+"f.	c #1A1E20",
+"g.	c #1C1F24",
+"h.	c #393C43",
+"i.	c #3C4045",
+"j.	c #3B4044",
+"k.	c #3C4245",
+"l.	c #3A4044",
+"m.	c #41464A",
+"n.	c #363B3F",
+"o.	c #24272F",
+"p.	c #191C22",
+"q.	c #1C2226",
+"r.	c #40474E",
+"s.	c #54585A",
+"t.	c #1B1F21",
+"u.	c #181C20",
+"v.	c #292C31",
+"w.	c #3A3D44",
+"x.	c #3C4146",
+"y.	c #3D4246",
+"z.	c #363C40",
+"A.	c #23262D",
+"B.	c #1B1E24",
+"C.	c #1D2226",
+"D.	c #3B4146",
+"E.	c #83888E",
+"F.	c #494D4F",
+"G.	c #202425",
+"H.	c #171A1F",
+"I.	c #2A2D33",
+"J.	c #3C4145",
+"K.	c #42464A",
+"L.	c #373C40",
+"M.	c #24262C",
+"N.	c #1E2025",
+"O.	c #363A3E",
+"P.	c #5A6066",
+"Q.	c #33383A",
+"R.	c #181C1D",
+"S.	c #3E4347",
+"T.	c #42474B",
+"U.	c #26262C",
+"V.	c #1F1F24",
+"W.	c #1B1D20",
+"X.	c #34373B",
+"Y.	c #70757B",
+"Z.	c #393D3F",
+"`.	c #101415",
+" +	c #171B1D",
+".+	c #3D4247",
+"++	c #3E4448",
+"@+	c #3C4246",
+"#+	c #43484C",
+"$+	c #383D41",
+"%+	c #26262B",
+"&+	c #19191C",
+"*+	c #141416",
+"=+	c #343639",
+"-+	c #424648",
+";+	c #0B0F10",
+">+	c #101416",
+",+	c #16191E",
+"'+	c #26292E",
+")+	c #3E4148",
+"!+	c #252529",
+"~+	c #131215",
+"{+	c #0D0D0D",
+"]+	c #343538",
+"^+	c #82858A",
+"/+	c #3A3C40",
+"(+	c #131418",
+"_+	c #101116",
+":+	c #14181E",
+"<+	c #2A2F36",
+"[+	c #373E46",
+"}+	c #3C414A",
+"|+	c #3C4049",
+"1+	c #3D414A",
+"2+	c #3E424B",
+"3+	c #383C45",
+"4+	c #22282F",
+"5+	c #14181C",
+"6+	c #17181B",
+"7+	c #2B2A2E",
+"8+	c #85888D",
+"9+	c #37393D",
+"0+	c #242428",
+"a+	c #383A3E",
+"b+	c #464A50",
+"c+	c #444A50",
+"d+	c #3D444C",
+"e+	c #40444D",
+"f+	c #42464F",
+"g+	c #434750",
+"h+	c #464A53",
+"i+	c #484C55",
+"j+	c #464C53",
+"k+	c #2D2D30",
+"l+	c #252428",
+"m+	c #898C91",
+"n+	c #393A3E",
+"o+	c #232428",
+"p+	c #484D52",
+"q+	c #4F545B",
+"r+	c #555C64",
+"s+	c #535861",
+"t+	c #51555E",
+"u+	c #535760",
+"v+	c #555962",
+"w+	c #454B52",
+"x+	c #4B4F53",
+"y+	c #2F3033",
+"z+	c #1F1E23",
+"A+	c #8F9297",
+"B+	c #3A3B3F",
+"C+	c #242529",
+"D+	c #3E4045",
+"E+	c #50545A",
+"F+	c #4C5258",
+"G+	c #4C535B",
+"H+	c #565B63",
+"I+	c #575B64",
+"J+	c #565A63",
+"K+	c #585C65",
+"L+	c #5A5E67",
+"M+	c #595D66",
+"N+	c #484E55",
+"O+	c #303034",
+"P+	c #222226",
+"Q+	c #93969B",
+"R+	c #1F2024",
+"S+	c #3B3D42",
+"T+	c #52565C",
+"U+	c #50555C",
+"V+	c #4E555D",
+"W+	c #4E535B",
+"X+	c #4D515A",
+"Y+	c #4E525B",
+"Z+	c #50545D",
+"`+	c #494F56",
+" @	c #2C2D30",
+".@	c #212024",
+"+@	c #96989E",
+"@@	c #3E4044",
+"#@	c #1E1F23",
+"$@	c #555A61",
+"%@	c #565D65",
+"&@	c #575C64",
+"*@	c #52565F",
+"=@	c #42494F",
+"-@	c #44484C",
+";@	c #2B2B2E",
+">@	c #201F24",
+",@	c #B9BDC9",
+"'@	c #44454B",
+")@	c #1D1E22",
+"!@	c #343539",
+"~@	c #3C3D41",
+"{@	c #313236",
+"]@	c #37383C",
+"^@	c #333438",
+"/@	c #35363A",
+"(@	c #36373B",
+"_@	c #35363B",
+":@	c #2C2D32",
+"<@	c #2F3235",
+"[@	c #191E22",
+"}@	c #35363C",
+"|@	c #222327",
+"1@	c #2D2E32",
+"2@	c #28282C",
+"3@	c #27282C",
+"4@	c #28292D",
+"5@	c #292A2E",
+"6@	c #2A2B2F",
+"7@	c #28292E",
+"8@	c #333439",
+"9@	c #292B2F",
+"0@	c #1E2326",
+"a@	c #626367",
+"b@	c #1A1B1F",
+"c@	c #2E3034",
+"d@	c #2C2D31",
+"e@	c #2B2C31",
+"f@	c #2F3034",
+"g@	c #282B2E",
+"h@	c #494E51",
+"i@	c #C9CACE",
+"j@	c #26272B",
+"k@	c #2B2C30",
+"l@	c #25262A",
+"m@	c #3B3C41",
+"n@	c #999EA1",
+"o@	c #818286",
+"p@	c #2E2F33",
+"q@	c #34353A",
+"r@	c #6A6D70",
+"s@	c #5E5F63",
+"t@	c #1C1D21",
+"u@	c #303135",
+"v@	c #6A6B6F",
+"w@	c #343839",
+"x@	c #272B2A",
+"y@	c #181C1C",
+"z@	c #25282E",
+"A@	c #3B3D48",
+"B@	c #3F424C",
+"C@	c #3C3F48",
+"D@	c #353841",
+"E@	c #393C45",
+"F@	c #383B44",
+"G@	c #151818",
+"H@	c #303131",
+"I@	c #88898C",
+"J@	c #3D4143",
+"K@	c #343837",
+"L@	c #343838",
+"M@	c #262A2F",
+"N@	c #3A3C46",
+"O@	c #3F424B",
+"P@	c #4F525A",
+"Q@	c #4D5058",
+"R@	c #3D4048",
+"S@	c #2A2C2D",
+"T@	c #2C2E2F",
+"U@	c #727377",
+"V@	c #404347",
+"W@	c #202424",
+"X@	c #363A39",
+"Y@	c #34373F",
+"Z@	c #40424A",
+"`@	c #41444B",
+" #	c #40434A",
+".#	c #42454C",
+"+#	c #55585F",
+"@#	c #4F5153",
+"##	c #1D1E21",
+"$#	c #626368",
+"%#	c #74777D",
+"&#	c #35393A",
+"*#	c #1A1E1D",
+"=#	c #161A1B",
+"-#	c #202328",
+";#	c #21242A",
+">#	c #24272C",
+",#	c #25282D",
+"'#	c #1B1E23",
+")#	c #232429",
+"!#	c #212226",
+"~#	c #808186",
+"{#	c #575B5E",
+"]#	c #4A4E4D",
+"^#	c #2F3333",
+"/#	c #383C3F",
+"(#	c #323539",
+"_#	c #44474B",
+":#	c #3F4246",
+"<#	c #383B3F",
+"[#	c #5A5B61",
+"}#	c #83838A",
+"|#	c #C1C2C7",
+"1#	c #AAAEAD",
+"2#	c #212525",
+"3#	c #232729",
+"4#	c #3C4043",
+"5#	c #43474A",
+"6#	c #2A2E31",
+"7#	c #171B1E",
+"8#	c #4E5255",
+"9#	c #C0C1C5",
+"0#	c #111214",
+"a#	c #1C1D1F",
+"b#	c #171B1C",
+"c#	c #3C3F40",
+"d#	c #212224",
+"e#	c #1D1D1F",
+"f#	c #505052",
+"g#	c #C7C8CC",
+"h#	c #17181A",
+"i#	c #18191B",
+"j#	c #0C1111",
+"k#	c #1A1E1F",
+"l#	c #2D3031",
+"m#	c #1D1E20",
+"n#	c #1F1F21",
+"o#	c #565658",
+"p#	c #C8CACE",
+"q#	c #1A1B1D",
+"r#	c #1B1C1E",
+"s#	c #202526",
+"t#	c #333738",
+"u#	c #3E4042",
+"v#	c #262729",
+"w#	c #161618",
+"x#	c #5E5E60",
+"y#	c #161719",
+"z#	c #1A1C1E",
+"A#	c #282D2D",
+"B#	c #2F3334",
+"C#	c #16191A",
+"D#	c #121315",
+"E#	c #0F0F11",
+"F#	c #68686A",
+"G#	c #D0D1D5",
+"H#	c #1C2021",
+"I#	c #323436",
+"J#	c #767678",
+"K#	c #3C3D3F",
+"L#	c #191A1C",
+"M#	c #161B1C",
+"N#	c #1B1F20",
+"O#	c #333637",
+"P#	c #151618",
+"Q#	c #272729",
+"R#	c #606062",
+"S#	c #4B4C50",
+"T#	c #25252C",
+"U#	c #4E4F53",
+"V#	c #3F4141",
+"W#	c #232524",
+"X#	c #7E7F82",
+"Y#	c #F0F1F5",
+"Z#	c #8B8C90",
+"`#	c #23232A",
+" $	c #424348",
+".$	c #363838",
+"+$	c #363837",
+"@$	c #E7E8EA",
+"#$	c #66676B",
+"$$	c #1C1C23",
+"%$	c #3E3F43",
+"&$	c #333535",
+"*$	c #303231",
+"=$	c #EEEFF1",
+"-$	c #2A2A31",
+";$	c #292B2B",
+">$	c #383A39",
+",$	c #212128",
+"'$	c #3D3E43",
+")$	c #2D2E2F",
+"!$	c #323433",
+"~$	c #8C8D91",
+"{$	c #2E2F36",
+"]$	c #2C2E2D",
+"^$	c #FAFBFD",
+"/$	c #414246",
+"($	c #242528",
+"_$	c #343537",
+":$	c #2D2E31",
+"<$	c #F9FAFF",
+"[$	c #4A4B4F",
+"}$	c #2E2F32",
+"|$	c #292A2F",
+"                                  ",
+"                                  ",
+"    . + @ # $ % & * = - - ; > ,   ",
+"  ' ) ! ~ { ] ^ / ( _ : < [ } | 1 ",
+"  2 3 4 5 6 7 8 9 0 9 a b c d e f ",
+"  g h i j k l m n o p q r s t u v ",
+"  w x y z A B C D E F G H I J K L ",
+"  M N O P Q R S F T U V W X Y Z ` ",
+"   ...+. at .#.$.%.&.*.=.` ` -.;.>.,.",
+"  '.).+.!.~.{.].W ^.V /.&.(._.>.,.",
+"   .).:.!.<.{.&.[.[.}.[.|.1.2.3.4.",
+"  5...6.7.8.$.[.^.^.*.9.0.a.b.>.c.",
+"  d.e.f.g.~.h.i.j.k.l.m.n.o.p.q.r.",
+"  s...t.u.v.w.x.j.y.j.m.z.A.B.C.D.",
+"E.F.G.+.H.I.w.i.J.y.}.K.L.M.N.3.O.",
+"P.Q.R.+.2.8.{.J.J.S.J.T.L.U.V.W.X.",
+"Y.Z.`. +_.F w..+y.++ at +#+$+%+&+*+=+",
+"E.-+;+>+,+'+)+9 y.++ at +#+$+!+~+{+]+",
+"^+/+(+_+:+<+[+}+|+1+2+|+3+4+5+6+7+",
+"8+9+0+a+b+c+d+e+f+g+h+i+h+j+4.k+l+",
+"m+n+o+a+p+q+r+s+t+t+u+v+v+w+x+y+z+",
+"A+B+C+D+E+F+G+H+I+J+K+L+M+N+,.O+P+",
+"Q+B+R+S+T+U+V+W+X+Y+Z+t+Y+`+L  @.@",
+"+@@@#@a+T+$@%@&@J+J+J+*@X+=@-@;@>@",
+",@'@)@!@~@{@]@^@^@/@(@!@^@_@:@<@[@",
+"  }@|@1@/@{@1 at 2@3 at 3@4 at 5@6 at 7@8 at 9@0@",
+"  a at b@1@!@c at 6@d at 5@5 at 5@5 at 6@e at f@g at h@",
+"  i@]@1 at f@j@^@6 at k@d at k@4 at l@R+m at g@n@",
+"    o at R+/@C+5 at 5@d at 1@p at k@4 at q@_ at r@  ",
+"    s@|@t@]@1 at d@d at 1@p at u@{@_ at C+v@  ",
+"    w at x@y at z@A at B@C at D@E at F@F at G@H at I@  ",
+"    J at K@L at M@N at O@P at Q@P at P@R at S@T at U@  ",
+"    V at W@X at a.Y@Z@`@ #.#.#+#@###$#  ",
+"    %#&#*#=#-#;#>#,#(.'#'+)#!#~#  ",
+"      {#]#^#/#(#_#:#<#X.:#[#}#|#  ",
+"        1#2#3#>.4#5#6#7#8#        ",
+"        9#0#a#b#'.c#d#e#f#        ",
+"        g#h#i#j#k#l#m#n#o#        ",
+"        p#q#r#s#t#u#v#w#x#        ",
+"        g#y#z#A#B#C#D#E#F#        ",
+"        G#m#0#H#w at I#m#*+J#        ",
+"          K#L#M#N#O#P#Q#R#        ",
+"            S#T#U#V#W#X#          ",
+"          Y#Z#`# $.$+$@$          ",
+"            #$$$%$&$*$=$          ",
+"            ~@-$~@;$>$            ",
+"            ]@,$'$)$!$            ",
+"            ~${$q@)$]$^$          ",
+"            /$($_$:$d@<$          ",
+"            [$v#I#}$|$            "};
+
+/* XPM */
+static char * gauge_xpm[] = {
+"19 50 3 1",
+" 	c none",
+".	c #000000000000",
+"X	c #FFFF00000000",
+"     ..........    ",
+"     .XXXXX.       ",
+"     .XXXXX.       ",
+"     .XXXXX.       ",
+"     .XXXXX.       ",
+"     .XXXXX..      ",
+"     .XXXXX.       ",
+"     .XXXXX.       ",
+"     .XXXXX.       ",
+"     .XXXXX.       ",
+"     .XXXXX....    ",
+"     .XXXXX.       ",
+"     .XXXXX.       ",
+"     .XXXXX.       ",
+"     .XXXXX.       ",
+"     .XXXXX..      ",
+"     .XXXXX.       ",
+"     .XXXXX.       ",
+"     .XXXXX.       ",
+"     .XXXXX.       ",
+"     .XXXXX....    ",
+"     .XXXXX.       ",
+"     .XXXXX.       ",
+"     .XXXXX.       ",
+"     .XXXXX.       ",
+"     .XXXXX..      ",
+"     .XXXXX.       ",
+"     .XXXXX.       ",
+"     .XXXXX.       ",
+"     .XXXXX.       ",
+"     .XXXXX....    ",
+"     .XXXXX.       ",
+"     .XXXXX.       ",
+"     .XXXXX.       ",
+"     .XXXXX.       ",
+"     .XXXXX..      ",
+"     .XXXXX.       ",
+"     .XXXXX.       ",
+"     .XXXXX.       ",
+"     .XXXXX.       ",
+"     .XXXXX..      ",
+"    .XXXXXXXX.     ",
+"   .XXXXXXXXXX.    ",
+"   .XXXXXXXXXX.    ",
+"   .XXXXXXXXXX.    ",
+"   .XXXXXXXXXX.    ",
+"   .XXXXXXXXXX.    ",
+"    .XXXXXXXX.     ",
+"     ..XXXX..      ",
+"       ....        "};
+
+
+/* XPM */
+static char * powercharges_xpm[] = {
+"17 50 83 1",
+" 	c none",
+".	c #90909898A0A0",
+"X	c #909090909898",
+"o	c #90909090A0A0",
+"O	c #A0A0A0A0A8A8",
+"+	c #9898A0A0A8A8",
+"@	c #808088889090",
+"#	c #808080808888",
+"$	c #686868687878",
+"%	c #787878788888",
+"&	c #A8A8A8A8B0B0",
+"*	c #707070707878",
+"=	c #505058586060",
+"-	c #303038383838",
+";	c #282830303838",
+":	c #383840404848",
+">	c #303030303838",
+",	c #383838384040",
+"<	c #383840404040",
+"1	c #404048484848",
+"2	c #303038384040",
+"3	c #484848485050",
+"4	c #808080809090",
+"5	c #101018181818",
+"6	c #000008080808",
+"7	c #181820202020",
+"8	c #484850505858",
+"9	c #505058585858",
+"0	c #080810101010",
+"q	c #080808081010",
+"w	c #686868687070",
+"e	c #505050505858",
+"r	c #282830303030",
+"t	c #404040404848",
+"y	c #FFFFFFFF0000",
+"u	c #282828283030",
+"i	c #484850505050",
+"p	c #585860606868",
+"a	c #404040404040",
+"s	c #585858585858",
+"d	c #585860606060",
+"f	c #585858586060",
+"g	c #484848484848",
+"h	c #303030303030",
+"j	c #202028282828",
+"k	c #404048485050",
+"l	c #202020202020",
+"z	c #202020202828",
+"x	c #181818182020",
+"c	c #383838383838",
+"v	c #808088888888",
+"b	c #181818181818",
+"n	c #101010101010",
+"m	c #080808080808",
+"M	c #101010101818",
+"N	c #282828282828",
+"B	c #404040405050",
+"V	c #888888889090",
+"C	c #505050506060",
+"Z	c #888890909090",
+"A	c #909098989898",
+"S	c #202018182020",
+"D	c #B8B8B8B8C8C8",
+"F	c #606060606060",
+"G	c #C8C8C8C8C8C8",
+"H	c #98989898A0A0",
+"J	c #808080808080",
+"K	c #686868686868",
+"L	c #383838384848",
+"P	c #888888888888",
+"I	c #303038383030",
+"U	c #707070707070",
+"Y	c #606060606868",
+"T	c #C0C0C0C0C0C0",
+"R	c #A8A8A8A8A8A8",
+"E	c #505050505050",
+"W	c #C0C0C8C8C8C8",
+"Q	c #D0D0D0D0D0D0",
+"!	c #787878788080",
+"~	c #F0F0F0F0F0F0",
+"^	c #E0E0E8E8E8E8",
+"/	c #E8E8E8E8F0F0",
+"(	c #F8F8F8F8F8F8",
+"                 ",
+"                 ",
+"   ..XoO+.@##$%& ",
+" *=-;;:>,<-12->34",
+" 3:56781:<:9-0q2w",
+" 8er7>=t7yr9-ruip",
+" <asde330yuerifg1",
+" hjh,tk<uy>t<3-l,",
+" <l7zu2,y,,,,ux71",
+" cz77u,<y,t<,jx71",
+" <z77u,y<<yyyux71",
+" 1l5xu2y,y,y-j77<",
+" ilxxuyyy<<y-zx7t",
+" 9lxxu,<<<yt2zx7<",
+"vgl75u,<<<yt2z77-",
+"d-b7xu,<<y<t2zxx>",
+"*cn5xu,<<y<1,zbn>",
+"vtqn5j::<y<1,znm>",
+"#,Mn5u2:::::,j55N",
+"v-zckk:ttBk3kk1uz",
+"Vczc38==eeC==k3rx",
+"Zcz<e88===fff31hl",
+"Xc7,ee8888ee831ul",
+"A<xce======e811NS",
+"Dtx>,h->>>>>>>urx",
+" >lu>huNjjNNNN>N7",
+" Fbu>rNuNNNNNurN3",
+" G-urz>NuuuNz7,NH",
+"  J7>zNNuuuuN>>w ",
+"  flx-uuuuuhh>zK ",
+"  -jbjL:L2,,,5hP ",
+"  <I-j,:8888:NNU ",
+"  al-j>ttttt9ixY ",
+"  *-b5zzzjjxjzlJ ",
+"   9grc>t<c><f#T ",
+"    Rlz7<tu5i    ",
+"    Tnb5c,lbE    ",
+"    W5b0brxxe    ",
+"    Gbbl><zMf    ",
+"    WMbNr5nqK    ",
+"    Qxn7-hxn*    ",
+"     cb5xhMzF    ",
+"      3z3<l!     ",
+"     ~Vzt-I^     ",
+"      Yx,hh/     ",
+"      ,u,Nc      ",
+"      -z,Nh      ",
+"      Vu>NN(     ",
+"      azhuu(     ",
+"      gzhuN      "};

Added: packages/gpsdrive/branches/etch/src/serial.c
===================================================================
--- packages/gpsdrive/branches/etch/src/serial.c	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/serial.c	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,136 @@
+#include "config.h"
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <string.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <fcntl.h>
+
+#if defined (HAVE_SYS_TERMIOS_H)
+#include <sys/termios.h>
+#else
+#if defined (HAVE_TERMIOS_H)
+#include <termios.h>
+#endif
+#endif
+
+#if defined (HAVE_TERMIO_H)
+#include <termio.h>
+#define USE_TERMIO 1
+#define TIOCGETA	TCGETA
+#define TIOCSETAF	TCSETAF
+
+#ifndef ONLCR
+#define ONLCR		ONLRET
+#endif
+
+#define termios		termio
+#define tcflag_t	ushort
+#endif
+
+#ifdef HAVE_SYS_IOCTL_H
+#include <sys/ioctl.h>
+#endif
+
+#include "gpsd.h"
+
+#define DEFAULTPORT "2947"
+
+extern int debug;
+extern char *device_name;
+extern int device_speed;
+
+
+/* define global variables */
+int ttyfd = -1;
+struct termios ttyset, ttyset_old;
+
+int
+serial_open ()
+{
+  char *temp;
+  char *p;
+
+  temp = malloc (strlen (device_name) + 1);
+  strcpy (temp, device_name);
+
+  if ((p = strchr (temp, ':')))
+    {
+      char *port = DEFAULTPORT;
+      int one = 1;
+
+      if (*(p + 1))
+	port = p + 1;
+      *p = '\0';
+
+      /* temp now holds the HOSTNAME portion and port the port number. */
+      if (debug > 5)
+	fprintf (stderr, "Host: %s  Port: %s\n", temp, port);
+      ttyfd = connectTCP (temp, port);
+      free (temp);
+      port = 0;
+
+      setsockopt (ttyfd, SOL_SOCKET, SO_REUSEADDR, (char *) &one,
+		  sizeof (one));
+
+      if (write (ttyfd, "r\n", 2) != 2)
+	errexit ("Can't write to socket");
+    }
+  else
+    {
+      ttyfd = open (temp, O_RDWR | O_NONBLOCK);
+      free (temp);
+
+      if (ttyfd < 0)
+	return (-1);
+
+      if (isatty (ttyfd))
+	{
+
+	  /* Save original terminal parameters */
+	  if (tcgetattr (ttyfd, &ttyset_old) != 0)
+	    return (-1);
+
+	  if (ioctl (ttyfd, TIOCGETA, &ttyset) < 0)
+	    return (-1);
+
+#if defined (USE_TERMIO)
+	  ttyset.c_cflag = CBAUD & device_speed;
+#else
+	  ttyset.c_ispeed = device_speed;
+	  ttyset.c_ospeed = device_speed;
+#endif
+	  ttyset.c_cflag &= ~(PARENB | CRTSCTS);
+	  ttyset.c_cflag |= (CSIZE & CS8) | CREAD | CLOCAL;
+	  ttyset.c_iflag = ttyset.c_oflag = ttyset.c_lflag = (tcflag_t) 0;
+	  ttyset.c_oflag = (ONLCR);
+	  if (ioctl (ttyfd, TIOCSETAF, &ttyset) < 0)
+	    return (-1);
+	}
+    }
+  return ttyfd;
+}
+
+void
+serial_close ()
+{
+  if (ttyfd != -1)
+    {
+      if (isatty (ttyfd))
+	{
+#if defined (USE_TERMIO)
+	  ttyset.c_cflag = CBAUD & B0;
+#else
+	  ttyset.c_ispeed = B0;
+	  ttyset.c_ospeed = B0;
+#endif
+	  ioctl (ttyfd, TIOCSETAF, &ttyset);
+	}
+      /* Restore original terminal parameters */
+      tcsetattr (ttyfd, TCSANOW, &ttyset_old);
+
+      close (ttyfd);
+      ttyfd = -1;
+    }
+}

Added: packages/gpsdrive/branches/etch/src/settings.c
===================================================================
--- packages/gpsdrive/branches/etch/src/settings.c	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/settings.c	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,2259 @@
+/*
+
+Copyright (c) 2001-2004 Fritz Ganter <ganter at ganter.at>
+
+Website: www.gpsdrive.de
+
+Disclaimer: Please do not use for navigation. 
+
+    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
+
+    *********************************************************************
+
+
+$Log: settings.c,v $
+Revision 1.75  2004/03/02 02:09:11  ganter
+...
+
+Revision 1.74  2004/03/02 02:06:36  ganter
+...
+
+Revision 1.73  2004/03/02 01:52:47  ganter
+changed expedia tooltips
+yes, this is the real 2.09pre1 :-)
+
+Revision 1.72  2004/03/02 01:36:04  ganter
+added German Expedia map server (expedia.de),
+this should be used for european users
+this is the real 2.09pre1 beta
+
+Revision 1.71  2004/03/02 00:53:35  ganter
+v2.09pre1
+added new gpsfetchmap.pl (works again with Expedia)
+added sound settings in settings menu
+max serial device string is now 40 char
+
+Revision 1.70  2004/02/08 17:16:25  ganter
+replacing all strcat with g_strlcat to avoid buffer overflows
+
+Revision 1.69  2004/02/08 16:35:10  ganter
+replacing all sprintf with g_snprintf to avoid buffer overflows
+
+Revision 1.68  2004/02/07 15:53:38  ganter
+replacing strcpy with g_strlcpy to avoid bufferoverflows
+
+Revision 1.67  2004/02/07 00:02:16  ganter
+added "store timezone" button in settings menu
+
+Revision 1.66  2004/02/06 17:11:14  ganter
+disabled mapblast server
+
+Revision 1.65  2004/02/03 23:19:27  ganter
+fixed wrong string size
+
+Revision 1.64  2004/02/03 08:20:50  ganter
+night mode works fine
+map handling for new users also
+fixed bug: you was unable to edit the name in friends menu
+
+Revision 1.63  2004/02/02 17:54:14  ganter
+new, self rendered earth animation
+
+Revision 1.62  2004/02/02 03:38:32  ganter
+code cleanup
+
+Revision 1.61  2004/02/01 04:51:22  ganter
+added "no_ssid" button in the SQL settings
+
+Revision 1.60  2004/01/28 09:32:57  ganter
+tested for memory leaks with valgrind, looks good :-)
+
+Revision 1.59  2004/01/27 22:51:59  ganter
+added "direct serial connection" button in settings menu
+
+Revision 1.58  2004/01/27 06:59:14  ganter
+The baudrate is now selectable in settings menu
+GpsDrive now connects to the GPS receiver in following order:
+Try to connect to gpsd
+Try to find Garble-mode Garmin
+Try to read data directly from serial port
+
+If this all fails, it falls back into simulation mode
+
+Revision 1.57  2004/01/26 11:55:19  ganter
+just indented some files
+
+Revision 1.56  2004/01/24 22:51:55  ganter
+set transient for file dialogs
+
+Revision 1.55  2004/01/24 03:27:51  ganter
+friends label color is now changeable in settings menu
+
+Revision 1.54  2004/01/18 05:28:02  ganter
+changed all popups to gtk_dialog instead of a toplevel window
+cosmetic changes in settings menu
+
+Revision 1.53  2004/01/17 17:41:48  ganter
+replaced all gdk_pixbuf_render_to_drawable (obsolet) with gdk_draw_pixbuf
+
+Revision 1.52  2004/01/17 06:11:04  ganter
+added color setting for track color
+
+Revision 1.51  2004/01/17 04:50:34  ganter
+added tooltip for color change button
+
+Revision 1.50  2004/01/14 00:48:49  ganter
+fixed bug if no crypt is avail.
+
+Revision 1.49  2004/01/11 13:48:28  ganter
+added about screen
+added menubar
+
+Revision 1.48  2004/01/10 09:38:47  ganter
+some changes in friendsmode settings menu
+
+Revision 1.47  2004/01/04 17:05:15  ganter
+display SQL waypoint fields only if SQL is used
+
+Revision 1.46  2004/01/03 03:39:52  ganter
+added settings switch for etched frames
+
+Revision 1.45  2004/01/01 09:07:33  ganter
+v2.06
+trip info is now live updated
+added cpu temperature display for acpi
+added tooltips for battery and temperature
+
+Revision 1.44  2003/12/23 21:00:27  ganter
+v2.06pre2
+disable multiple popups
+
+Revision 1.43  2003/12/21 16:59:05  ganter
+fixed bug in timezone setting
+timezone will be stored now
+
+Revision 1.42  2003/10/04 17:43:58  ganter
+translations don't need to be utf-8, but the .po files must specify the
+correct coding (ie, UTF-8, iso8859-15)
+
+Revision 1.41  2003/08/12 12:21:20  ganter
+fixed bugs of PDA patch
+
+Revision 1.40  2003/06/08 13:31:50  ganter
+release 2.0pre9
+Added setting of timeperiod in friends mode (see settings menu)
+
+Revision 1.39  2003/06/01 17:27:33  ganter
+v2.0pre8
+friendsmode works fine and can be set in settings menu
+
+Revision 1.38  2003/05/31 20:12:35  ganter
+new UDP friendsserver build in, needs some work
+
+Revision 1.37  2003/05/29 19:26:19  ganter
+testing...
+
+Revision 1.35  2003/05/11 21:15:46  ganter
+v2.0pre7
+added script convgiftopng
+This script converts .gif into .png files, which reduces CPU load
+run this script in your maps directory, you need "convert" from ImageMagick
+
+Friends mode runs fine now
+Added parameter -H to correct the alitude
+
+Revision 1.34  2003/05/08 21:18:05  ganter
+added settings menu entry for fonts setting
+made a new cool splash screen
+updated da and it translations
+v2.0-pre6
+
+Revision 1.33  2003/05/07 19:27:13  ganter
+replaced degree symbol with unicode string
+gpsdrive should now be unicode clean
+
+Revision 1.32  2003/01/15 15:30:28  ganter
+before dynamically loading mysql
+
+Revision 1.31  2002/12/24 01:46:00  ganter
+FAQ
+
+Revision 1.30  2002/11/14 00:05:55  ganter
+added README.kismet
+v 1.30pre5
+
+Revision 1.29  2002/11/12 20:37:15  ganter
+v30pre4
+added more icons, fix for kismet w/o mysql
+
+Revision 1.28  2002/11/02 12:38:55  ganter
+changed website to www.gpsdrive.de
+
+Revision 1.27  2002/10/30 09:46:47  ganter
+added tooltips in settings.c
+
+Revision 1.26  2002/10/30 09:32:49  ganter
+v1.29pre9
+hopefully removed all gtk-warnings
+
+Revision 1.25  2002/10/27 10:51:30  ganter
+1.28pre8
+
+Revision 1.24  2002/10/24 08:44:09  ganter
+...
+
+Revision 1.23  2002/10/17 15:55:45  ganter
+wp2sql added
+
+Revision 1.22  2002/10/16 14:16:13  ganter
+working on SQL gui
+
+Revision 1.21  2002/10/15 07:44:11  ganter
+...
+
+Revision 1.20  2002/10/14 08:38:59  ganter
+v1.29pre3
+added SQL support
+
+Revision 1.19  2002/08/29 15:20:51  ganter
+timezone in settings/geoinfo works, but window must be refreshed
+
+Revision 1.18  2002/07/30 20:49:55  ganter
+1.26pre3
+added support for festival lite (flite)
+changed http request to HTTP1.1 and added correct servername
+
+Revision 1.17  2002/07/17 12:24:08  ganter
+added gpspoint2gspdrive
+changed specfile, thanks to Silke Reimer
+
+Revision 1.16  2002/07/02 12:12:55  ganter
+v1.24
+
+Revision 1.15  2002/07/01 00:45:00  ganter
+added trip info (in settings menu)
+ACPI fixes (close battery fd)
+
+Revision 1.14  2002/06/23 17:09:35  ganter
+v1.23pre9
+now PDA mode looks good.
+
+Revision 1.13  2002/06/16 21:35:23  ganter
+got settings smaller
+
+Revision 1.12  2002/06/16 17:50:35  ganter
+working on PDA screen
+
+Revision 1.11  2002/06/12 10:58:49  ganter
+v1.23pre7
+
+Revision 1.10  2002/06/02 20:54:10  ganter
+added navigation.c and copyrights
+
+Revision 1.9  2002/05/23 09:07:37  ganter
+v1.23pre1
+added new BSD battery stuff
+
+Revision 1.8  2002/05/20 22:41:02  ganter
+removed race condition in setutc()
+new 1.22
+
+Revision 1.7  2002/05/20 20:40:23  ganter
+v1.22
+
+Revision 1.6  2002/05/20 10:02:48  ganter
+v1.22pre7
+
+Revision 1.5  2002/05/18 20:58:54  ganter
+finished geo infos
+v1.22pre5
+
+Revision 1.4  2002/05/18 09:09:40  ganter
+added slovak translations
+fixed segfault
+v1.22pre3
+
+Revision 1.3  2002/05/17 23:22:25  ganter
+added sunrise,sunset in settings menu
+
+Revision 1.2  2002/05/17 20:05:23  ganter
+changed settings menu to notebook widget
+
+Revision 1.1  2002/05/15 19:05:31  ganter
+created settings.c
+
+*/
+
+/*  Include Dateien */
+#include "config.h"
+#include <stdlib.h>
+#include <string.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <netdb.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <stdio.h>
+#include <signal.h>
+#include <unistd.h>
+#include <sys/mman.h>
+#include <math.h>
+#include <sys/time.h>
+#include <gpsdrive.h>
+#if HAVE_LOCALE_H
+#include <locale.h>
+#else
+# define setlocale(Category, Locale)
+#endif
+#include "gettext.h"
+
+#include <time.h>
+#include <dirent.h>
+#include <arpa/inet.h>
+
+
+/*  Defines for gettext I18n */
+# include <libintl.h>
+# define _(String) gettext(String)
+# ifdef gettext_noop
+#  define N_(String) gettext_noop(String)
+# else
+#  define N_(String) (String)
+# endif
+
+#define PADDING int_padding
+
+gchar homedir[500], mapdir[500];
+
+extern gint statusid, debug, havespeechout, posmode, muteflag, sqlflag;
+typedef struct
+{
+  gchar n[200];
+}
+namesstruct;
+extern namesstruct *names;
+extern GtkWidget *addwaypointwindow, *setupfn[30];
+extern gchar activewpfile[200], gpsdservername[200], setpositionname[80];
+extern gint shadow, createroute, routemode;
+extern gint needreloadmapconfig, simfollow;
+extern GtkWidget *serialbt, *mapdirbt, *addwaypoint1, *addwaypoint2,
+  *frame_speed, *frame_sats;
+extern gint minsecmode, nightmode, isnight, disableisnight;
+extern gint nighttimer;
+extern gint newsatslevel, testgarmin, needtosave;
+extern gint wpsize, satfix, usedgps, earthmate, disableserial;
+extern gchar serialdev[80];
+extern GtkWidget *distlabel, *speedlabel, *altilabel, *miles, *startgpsbt,
+  *setupbt;
+extern gint gcount, milesflag, downloadwindowactive;
+extern gint metricflag, nauticflag;
+extern gint defaultserver, disableapm;
+extern GtkWidget *mainwindow, *status, *pixmapwidget, *gotowindow;
+extern GtkWidget *routewindow, *setupentry[50], *setupentrylabel[50];
+extern gdouble current_long, current_lat, old_long, old_lat, groundspeed;
+static gdouble hour, sunrise, sunset, suntransit;
+static gdouble duskastro, dawnastro, dusknaut, dawnnaut, duskciv, dawnciv;
+extern gchar utctime[20], loctime[20];
+static GtkWidget *utclabel;
+static gint utctimer, triptimer = 0;
+extern gint cpuload;
+extern gint real_screen_x, real_screen_y, real_psize, real_smallmenu;
+extern gint int_padding;
+extern gdouble tripodometer, tripavspeed, triptime, tripmaxspeed, triptmp,
+  milesconv;
+extern gint tripavspeedcount;
+extern gint lastnotebook;
+extern GtkWidget *settingsnotebook, *slowcpubt;
+GtkWidget *ge12;
+static gchar *slist[] =
+  { "GMT-12", "GMT-11", "GMT-10", "GMT-9", "GMT-8", "GMT-7", "GMT-6", "GMT-5",
+  "GMT-4", "GMT-3", "GMT-2", "GMT-1", "GMT+0", "GMT+1", "GMT+2", "GMT+3",
+  "GMT+4", "GMT+5",
+  "GMT+6", "GMT+7", "GMT+8", "GMT+9", "GMT+10", "GMT+11", "GMT+12"
+};
+gint zone;
+#define MAXDBNAME 30
+extern char dbhost[MAXDBNAME], dbuser[MAXDBNAME], dbpass[MAXDBNAME];
+extern char dbtable[MAXDBNAME], dbname[MAXDBNAME];
+extern char dbwherestring[5000];
+extern char dbtypelist[100][40];
+extern int dbtypelistcount;
+extern double dbdistance;
+extern int dbusedist, havefriends, etch, serialspeed, disableserial;
+GtkWidget *sqlfn[100], *ipbt;
+gint sqlselects[100], sqlandmode = TRUE;
+static int sqldontquery = FALSE;
+int sqlplace, friendsplace;
+extern GdkColormap *cmap;
+
+
+
+extern gint mod_setupcounter, storetz;
+static gint iplock = FALSE;
+static GtkWidget *spinner1, *spinner2, *spinner3;
+long int maxfriendssecs = 86400;
+extern gchar wplabelfont[100], bigfont[100];
+extern char friendserverip[20];
+extern char friendsserverip[20], friendsname[40], friendsidstring[40],
+  friendsserverfqn[255];
+GtkWidget *entryavspeed, *entrymaxspeed, *entrytripodometer, *entrytriptime,
+  *tripunitlabel;
+extern gchar bluecolor[40], trackcolor[40], friendscolor[40];
+extern GdkColor trackcolorv, orange;
+int showsid = TRUE;
+extern int sound_direction, sound_distance, sound_speed, sound_gps;
+extern int expedia_de;
+
+static void
+baud_cb (GtkOptionMenu * button, gint data)
+{
+  serialspeed = gtk_option_menu_get_history (button);
+}
+
+
+static void
+change_font_callback (GtkWidget * button, gint data)
+{
+  GtkWidget *dialog = NULL;
+  gint response;
+  gchar *fn;
+
+  if (data == 3)
+    return;
+
+  if (data == 1)
+    dialog = gtk_font_selection_dialog_new (_("Setting WP label font"));
+  if (data == 2)
+    dialog = gtk_font_selection_dialog_new (_("Setting big display font"));
+
+  gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (mainwindow));
+
+/* 	printf("\ndata=%d\n",data);  */
+  if (data == 1)
+    gtk_font_selection_dialog_set_font_name (GTK_FONT_SELECTION_DIALOG
+					     (dialog), wplabelfont);
+  if (data == 2)
+    gtk_font_selection_dialog_set_font_name (GTK_FONT_SELECTION_DIALOG
+					     (dialog), bigfont);
+
+  response = gtk_dialog_run (GTK_DIALOG (dialog));
+
+  if (response == GTK_RESPONSE_OK)
+    {
+
+      fn =
+	gtk_font_selection_dialog_get_font_name (GTK_FONT_SELECTION_DIALOG
+						 (dialog));
+      if (debug)
+	printf ("\n New wp label font: %s\n", fn);
+      if (data == 1)
+	g_strlcpy (wplabelfont, fn, sizeof (wplabelfont));
+      if (data == 2)
+	g_strlcpy (bigfont, fn, sizeof (bigfont));
+      needtosave = TRUE;
+    }
+
+  gtk_widget_destroy (dialog);
+}
+
+
+gint
+soundsettings_cb (GtkWidget * widget, guint datum)
+{
+
+  switch (datum)
+    {
+    case 1:
+      sound_direction = !sound_direction;
+      break;
+    case 2:
+      sound_distance = !sound_distance;
+      break;
+    case 3:
+      sound_speed = !sound_speed;
+      break;
+    case 4:
+      sound_gps = !sound_gps;
+      break;
+    }
+  needtosave = TRUE;
+  return TRUE;
+}
+
+
+static void
+change_color_callback (GtkWidget * button, gint data)
+{
+  GtkWidget *dialog = NULL;
+  gint response;
+  GtkColorSelection *colorsel;
+  GdkColor color;
+
+
+  gdk_color_parse (bluecolor, &color);
+  dialog = gtk_color_selection_dialog_new (_("Setting big display color"));
+
+  gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (mainwindow));
+
+/* 	printf("\ndata=%d\n",data);  */
+
+  colorsel =
+    GTK_COLOR_SELECTION (GTK_COLOR_SELECTION_DIALOG (dialog)->colorsel);
+
+  gtk_color_selection_set_previous_color (colorsel, &color);
+  gtk_color_selection_set_current_color (colorsel, &color);
+  gtk_color_selection_set_has_palette (colorsel, TRUE);
+
+
+  response = gtk_dialog_run (GTK_DIALOG (dialog));
+
+  if (response == GTK_RESPONSE_OK)
+    {
+      gtk_color_selection_get_current_color (colorsel, &color);
+      g_snprintf (bluecolor, sizeof (bluecolor), "#%02x%02x%02x",
+		  color.red >> 8, color.green >> 8, color.blue >> 8);
+      if (debug)
+	fprintf (stderr, "\nnew color: %s\n", bluecolor);
+      needtosave = TRUE;
+    }
+
+  gtk_widget_destroy (dialog);
+}
+
+static void
+change_trackcolor_callback (GtkWidget * button, gint data)
+{
+  GtkWidget *dialog = NULL;
+  gint response;
+  GtkColorSelection *colorsel;
+  GdkColor color;
+
+  gdk_color_parse (trackcolor, &color);
+  dialog = gtk_color_selection_dialog_new (_("Setting track color"));
+
+  gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (mainwindow));
+
+/* 	printf("\ndata=%d\n",data);  */
+
+  colorsel =
+    GTK_COLOR_SELECTION (GTK_COLOR_SELECTION_DIALOG (dialog)->colorsel);
+
+  gtk_color_selection_set_previous_color (colorsel, &color);
+  gtk_color_selection_set_current_color (colorsel, &color);
+  gtk_color_selection_set_has_palette (colorsel, TRUE);
+
+
+  response = gtk_dialog_run (GTK_DIALOG (dialog));
+
+  if (response == GTK_RESPONSE_OK)
+    {
+      gtk_color_selection_get_current_color (colorsel, &color);
+      g_snprintf (trackcolor, sizeof (trackcolor), "#%02x%02x%02x",
+		  color.red >> 8, color.green >> 8, color.blue >> 8);
+      if (debug)
+	fprintf (stderr, "\nnew color: %s\n", trackcolor);
+      trackcolorv = color;
+      gdk_color_alloc (cmap, &trackcolorv);
+
+      needtosave = TRUE;
+    }
+
+  gtk_widget_destroy (dialog);
+}
+
+static void
+change_friendscolor_callback (GtkWidget * button, gint data)
+{
+  GtkWidget *dialog = NULL;
+  gint response;
+  GtkColorSelection *colorsel;
+  GdkColor color;
+
+
+  gdk_color_parse (friendscolor, &color);
+  dialog = gtk_color_selection_dialog_new (_("Setting friends label color"));
+  gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (mainwindow));
+
+
+  colorsel =
+    GTK_COLOR_SELECTION (GTK_COLOR_SELECTION_DIALOG (dialog)->colorsel);
+
+  gtk_color_selection_set_previous_color (colorsel, &color);
+  gtk_color_selection_set_current_color (colorsel, &color);
+  gtk_color_selection_set_has_palette (colorsel, TRUE);
+
+
+  response = gtk_dialog_run (GTK_DIALOG (dialog));
+
+  if (response == GTK_RESPONSE_OK)
+    {
+      gtk_color_selection_get_current_color (colorsel, &color);
+      g_snprintf (friendscolor, sizeof (friendscolor), "#%02x%02x%02x",
+		  color.red >> 8, color.green >> 8, color.blue >> 8);
+      if (debug)
+	fprintf (stderr, "\nnew color: %s\n", trackcolor);
+      orange = color;
+      gdk_color_alloc (cmap, &orange);
+
+      needtosave = TRUE;
+    }
+
+  gtk_widget_destroy (dialog);
+}
+
+
+
+void
+mainsetup (void)
+{
+  GtkWidget *mainbox, *ftable, *label1, *gpstable, *misctable, *fontbox;
+  GtkWidget *metric, *nautic, *garminbt, *dgpsbt, *earthmatebt, *minsecbt;
+  GtkWidget *table2, *shadowbt, *etchbt, *s1, *s2, *nighttable, *label1a;
+  GtkWidget *label2, *f1, *f2, *f3, *f4, *f5, *framefont, *simfollowbt;
+  GtkWidget *night1, *night2, *night3, *vbox, *font1, *font2,
+    *font3, *slowcpulabel, *trackcolorlabel, *trackcolorbt, *noserialbt;
+  GtkTooltips *tooltips;
+  GtkWidget *v2, *v3, *v4, *h1, *h2;
+  GtkWidget *mainbox2;
+  gchar path2[400], buf[20];
+  DIR *d;
+  struct dirent *dat;
+  gint dircount = 0, i;
+  GList *list = NULL;
+  static gchar *speedlist[] =
+    { "5%", "10%", "20%", "30%", "40%", "50%", "60%", "70%", "80%", "90%" };
+  GtkWidget *menu, *menu_item;
+  GtkWidget *option_menu;
+  char buf2[20];
+  int br = 2400;
+  GtkWidget *sounddirbt, *sounddistbt, *soundspeedbt, *soundgpsbt,
+    *soundtable, *framesound;
+
+  for (i = 0; i < 10; i++)
+    list = g_list_append (list, speedlist[i]);
+  g_strlcpy (path2, homedir, sizeof (path2));
+  names = g_new (namesstruct, 102);
+
+  d = opendir (path2);
+  if (d != NULL)
+    {
+      do
+	{
+	  dat = readdir (d);
+	  if (dat != NULL)
+	    {
+	      if ((strncmp (dat->d_name, "way", 3)) == 0)
+		if ((strncmp
+		     ((dat->d_name + (strlen (dat->d_name) - 4)), ".txt",
+		      4)) == 0)
+		  {
+		    g_strlcpy ((names + dircount)->n, dat->d_name, 200);
+		    dircount++;
+		    if (dircount >= 100)
+		      {
+			error_popup (_
+				     ("Don't use more than\n100 waypoint(way*.txt) files!"));
+			g_free (names);
+		      }
+		  }
+	    }
+	}
+      while (dat != NULL);
+    }
+
+  free (d);
+  table2 = gtk_table_new (1 + (dircount - 1) / 2, 2, TRUE);
+  setupentry[2] = ftable = gtk_frame_new (_("Waypoint files to use"));
+  gtk_container_set_border_width (GTK_CONTAINER (ftable), 5 * PADDING);
+  setupentrylabel[2] = gtk_label_new (_("Waypoints"));
+  vbox = gtk_vbox_new (FALSE, 2 * PADDING);
+
+  gtk_container_add (GTK_CONTAINER (ftable), vbox);
+  gtk_box_pack_start (GTK_BOX (vbox), table2, FALSE, FALSE, 10 * PADDING);
+
+  for (i = 0; i < dircount; i++)
+    {
+      if (i == 0)
+	setupfn[i] = gtk_radio_button_new_with_label (NULL, (names + i)->n);
+      else
+	setupfn[i] = gtk_radio_button_new_with_label (gtk_radio_button_group
+						      (GTK_RADIO_BUTTON
+						       (setupfn[0])),
+						      (names + i)->n);
+      gtk_signal_connect (GTK_OBJECT (setupfn[i]), "clicked",
+			  GTK_SIGNAL_FUNC (wpfileselect_cb), (gpointer) i);
+      gtk_table_attach_defaults (GTK_TABLE (table2), setupfn[i], i % 2,
+				 i % 2 + 1, i / 2, i / 2 + 1);
+      if (!(strcmp (activewpfile, (names + i)->n)))
+	gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (setupfn[i]), TRUE);
+
+    }
+  setupentrylabel[0] = gtk_label_new (_("Settings"));
+  tooltips = gtk_tooltips_new ();
+  setupentry[0] = mainbox = gtk_vbox_new (FALSE, 2 * PADDING);
+  setupentry[1] = mainbox2 = gtk_vbox_new (FALSE, 2 * PADDING);
+  setupentrylabel[1] =
+    gtk_label_new (g_strdup_printf ("%s 2", _("Settings")));
+
+  gtk_container_set_border_width (GTK_CONTAINER (mainbox), 5 * PADDING);
+  gtk_container_set_border_width (GTK_CONTAINER (mainbox2), 5 * PADDING);
+
+
+/* misc area */
+  f1 = gtk_frame_new (_("Misc settings"));
+
+  gtk_box_pack_start (GTK_BOX (mainbox), f1, FALSE, TRUE, 1 * PADDING);
+
+  shadowbt = gtk_check_button_new_with_label (_("Show Shadows"));
+  if (shadow)
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (shadowbt), TRUE);
+
+  gtk_signal_connect (GTK_OBJECT (shadowbt),
+		      "clicked", GTK_SIGNAL_FUNC (shadow_cb), (gpointer) 1);
+
+  etchbt = gtk_check_button_new_with_label (_("Etched frames"));
+  if (etch)
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (etchbt), TRUE);
+
+  gtk_signal_connect (GTK_OBJECT (etchbt),
+		      "clicked", GTK_SIGNAL_FUNC (etch_cb), (gpointer) 1);
+
+  simfollowbt =
+    gtk_check_button_new_with_label (_("Simulation: Follow target"));
+  if (simfollow)
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (simfollowbt), TRUE);
+
+  gtk_signal_connect (GTK_OBJECT (simfollowbt),
+		      "clicked", GTK_SIGNAL_FUNC (simfollow_cb),
+		      (gpointer) 1);
+  slowcpulabel = gtk_label_new (_("Maximum CPU load"));
+
+  slowcpubt = gtk_combo_new ();
+  gtk_combo_set_popdown_strings (GTK_COMBO (slowcpubt), (GList *) list);
+  g_snprintf (buf, sizeof (buf), "%d%%", cpuload);
+  gtk_entry_set_text (GTK_ENTRY (GTK_COMBO (slowcpubt)->entry), buf);
+  gtk_signal_connect (GTK_OBJECT (GTK_COMBO (slowcpubt)->entry), "changed",
+		      GTK_SIGNAL_FUNC (slowcpu_cb), (gpointer) 0);
+
+
+  trackcolorlabel = gtk_label_new (_("Track"));
+  trackcolorbt = gtk_button_new_from_stock (GTK_STOCK_SELECT_COLOR);
+/*   gtk_button_set_label(GTK_BUTTON(trackcolorbt),_("Track")); */
+  gtk_signal_connect (GTK_OBJECT (trackcolorbt), "clicked",
+		      G_CALLBACK (change_trackcolor_callback), (gpointer) 0);
+
+  misctable = gtk_table_new (4, 2, FALSE);
+  gtk_container_add (GTK_CONTAINER (f1), misctable);
+  gtk_table_set_row_spacings (GTK_TABLE (misctable), 3);
+  gtk_table_set_col_spacings (GTK_TABLE (misctable), 3);
+
+  mapdirbt = gtk_entry_new_with_max_length (490);
+
+  gtk_widget_set_size_request (mapdirbt, 20, 26);
+  gtk_entry_set_text (GTK_ENTRY (mapdirbt), mapdir);
+  label2 = gtk_label_new (_("Maps directory"));
+
+  gtk_signal_connect (GTK_OBJECT (mapdirbt),
+		      "changed", GTK_SIGNAL_FUNC (mapdir_cb), (gpointer) 1);
+
+
+  night1 = gtk_radio_button_new_with_label (NULL, _("Automatic"));
+  gtk_signal_connect (GTK_OBJECT (night1),
+		      "clicked", GTK_SIGNAL_FUNC (night_cb), (gpointer) 2);
+
+  night2 =
+    gtk_radio_button_new_with_label (gtk_radio_button_group
+				     (GTK_RADIO_BUTTON (night1)), _("On"));
+  gtk_signal_connect (GTK_OBJECT (night2), "clicked",
+		      GTK_SIGNAL_FUNC (night_cb), (gpointer) 1);
+  night3 =
+    gtk_radio_button_new_with_label (gtk_radio_button_group
+				     (GTK_RADIO_BUTTON (night1)), _("Off"));
+  gtk_signal_connect (GTK_OBJECT (night3), "clicked",
+		      GTK_SIGNAL_FUNC (night_cb), (gpointer) 0);
+  if (nightmode == 0)
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (night3), TRUE);
+  if (nightmode == 1)
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (night2), TRUE);
+  if (nightmode == 2)
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (night1), TRUE);
+
+  gtk_table_attach_defaults (GTK_TABLE (misctable), shadowbt, 0, 2, 0, 1);
+  gtk_table_attach_defaults (GTK_TABLE (misctable), simfollowbt, 0, 2, 1, 2);
+  gtk_table_attach_defaults (GTK_TABLE (misctable), etchbt, 2, 4, 0, 1);
+  gtk_table_attach_defaults (GTK_TABLE (misctable), slowcpulabel, 0, 2, 2, 3);
+  gtk_table_attach_defaults (GTK_TABLE (misctable), trackcolorlabel, 2, 4, 2,
+			     3);
+  gtk_table_attach_defaults (GTK_TABLE (misctable), slowcpubt, 0, 2, 3, 4);
+  gtk_table_attach_defaults (GTK_TABLE (misctable), trackcolorbt, 2, 4, 3, 4);
+
+/*   gtk_table_attach_defaults (GTK_TABLE (misctable), label2, 0, 2, 3, 4); */
+/*   gtk_table_attach_defaults (GTK_TABLE (misctable), mapdirbt, 0, 2, 4, 5); */
+
+
+/* GPS settings area */
+  f4 = gtk_frame_new (_("GPS settings"));
+
+  v4 = gtk_vbox_new (FALSE, 2 * PADDING);
+  gtk_container_add (GTK_CONTAINER (f4), v4);
+
+  gpstable = gtk_table_new (4, 2, TRUE);
+
+//KCFX
+  gtk_box_pack_end (GTK_BOX (mainbox2), f4, FALSE, TRUE, 1 * PADDING);
+//  gtk_table_attach_defaults (GTK_TABLE (table), f4, 1, 2, 1, 2);
+  gtk_box_pack_start (GTK_BOX (v4), gpstable, FALSE, FALSE, 1 * PADDING);
+/*   gtk_container_add (GTK_CONTAINER (f4), gpstable); */
+
+
+  garminbt = gtk_check_button_new_with_label (_("Test for GARMIN"));
+  if (testgarmin)
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (garminbt), TRUE);
+
+  gtk_signal_connect (GTK_OBJECT (garminbt),
+		      "clicked", GTK_SIGNAL_FUNC (testgarmin_cb),
+		      (gpointer) 1);
+
+  gtk_table_attach_defaults (GTK_TABLE (gpstable), garminbt, 0, 1, 0, 1);
+
+
+  dgpsbt = gtk_check_button_new_with_label (_("Use DGPS-IP"));
+  if (usedgps)
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (dgpsbt), TRUE);
+
+  gtk_signal_connect (GTK_OBJECT (dgpsbt),
+		      "clicked", GTK_SIGNAL_FUNC (usedgps_cb), (gpointer) 1);
+
+  gtk_table_attach_defaults (GTK_TABLE (gpstable), dgpsbt, 0, 1, 1, 2);
+
+
+  earthmatebt = gtk_check_button_new_with_label (_("GPS is Earthmate"));
+  if (earthmate)
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (earthmatebt), TRUE);
+
+  gtk_signal_connect (GTK_OBJECT (earthmatebt),
+		      "clicked", GTK_SIGNAL_FUNC (earthmate_cb),
+		      (gpointer) 1);
+
+  gtk_table_attach_defaults (GTK_TABLE (gpstable), earthmatebt, 1, 2, 0, 1);
+
+  noserialbt = gtk_check_button_new_with_label (_("Use serial conn."));
+  if (!disableserial)
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (noserialbt), TRUE);
+
+  gtk_signal_connect (GTK_OBJECT (noserialbt),
+		      "clicked", GTK_SIGNAL_FUNC (noserial_cb), (gpointer) 1);
+
+  gtk_table_attach_defaults (GTK_TABLE (gpstable), noserialbt, 1, 2, 1, 2);
+
+
+  serialbt = gtk_entry_new_with_max_length (20);
+  gtk_widget_set_size_request (serialbt, 20, 26);
+
+  gtk_entry_set_text (GTK_ENTRY (serialbt), serialdev);
+  gtk_entry_set_max_length (GTK_ENTRY (serialbt), 40);
+  label1 = gtk_label_new (_("Interface"));
+  label1a = gtk_label_new (_("Baudrate"));
+
+  gtk_signal_connect (GTK_OBJECT (serialbt),
+		      "changed", GTK_SIGNAL_FUNC (serialdev_cb),
+		      (gpointer) 1);
+
+  gtk_table_attach_defaults (GTK_TABLE (gpstable), label1, 0, 1, 2, 3);
+  gtk_table_attach_defaults (GTK_TABLE (gpstable), label1a, 1, 2, 2, 3);
+  gtk_table_attach_defaults (GTK_TABLE (gpstable), serialbt, 0, 1, 3, 4);
+
+
+
+
+  menu = gtk_menu_new ();
+  for (i = 0; i < 5; i++)
+    {
+      g_snprintf (buf2, sizeof (buf2), "%d", br);
+      if (i == 4)
+	br += br / 2;
+      else
+	br += br;
+      menu_item = gtk_menu_item_new_with_label (buf2);
+      gtk_widget_show (menu_item);
+      gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
+    }
+
+  option_menu = gtk_option_menu_new ();
+  gtk_option_menu_set_menu (GTK_OPTION_MENU (option_menu), menu);
+  gtk_option_menu_set_history (GTK_OPTION_MENU (option_menu), serialspeed);
+  gtk_signal_connect (GTK_OBJECT (option_menu), "changed",
+		      GTK_SIGNAL_FUNC (baud_cb), (gpointer) 0);
+
+  gtk_table_attach_defaults (GTK_TABLE (gpstable), option_menu, 1, 2, 3, 4);
+
+/*  units area */
+  f2 = gtk_frame_new (_("Units"));
+  v2 = gtk_table_new (4, 2, FALSE);
+
+  gtk_box_pack_start (GTK_BOX (mainbox), f2, FALSE, TRUE, 1 * PADDING);
+  gtk_container_add (GTK_CONTAINER (f2), v2);
+
+  miles = gtk_radio_button_new_with_label (NULL, _("Miles"));
+  gtk_signal_connect (GTK_OBJECT (miles),
+		      "clicked", GTK_SIGNAL_FUNC (miles_cb), (gpointer) 1);
+  metric =
+    gtk_radio_button_new_with_label (gtk_radio_button_group
+				     (GTK_RADIO_BUTTON (miles)), _("Metric"));
+  gtk_signal_connect (GTK_OBJECT (metric), "clicked",
+		      GTK_SIGNAL_FUNC (miles_cb), (gpointer) 2);
+  nautic =
+    gtk_radio_button_new_with_label (gtk_radio_button_group
+				     (GTK_RADIO_BUTTON (miles)), _("Nautic"));
+  gtk_signal_connect (GTK_OBJECT (nautic), "clicked",
+		      GTK_SIGNAL_FUNC (miles_cb), (gpointer) 3);
+  if (milesflag)
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (miles), TRUE);
+  if (metricflag)
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (metric), TRUE);
+  if (nauticflag)
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (nautic), TRUE);
+
+  minsecbt = gtk_check_button_new_with_label (_("Decimal position"));
+  if (!minsecmode)
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (minsecbt), TRUE);
+
+  gtk_signal_connect (GTK_OBJECT (minsecbt),
+		      "clicked", GTK_SIGNAL_FUNC (minsec_cb), (gpointer) 0);
+
+  gtk_table_attach_defaults (GTK_TABLE (v2), miles, 0, 1, 0, 1);
+  gtk_table_attach_defaults (GTK_TABLE (v2), metric, 0, 1, 1, 2);
+  gtk_table_attach_defaults (GTK_TABLE (v2), nautic, 0, 1, 2, 3);
+  gtk_table_attach_defaults (GTK_TABLE (v2), minsecbt, 1, 2, 0, 1);
+
+/*  gtk_box_pack_start (GTK_BOX (v2), miles, TRUE, FALSE, 2 * PADDING);
+  gtk_box_pack_start (GTK_BOX (v2), metric, TRUE, FALSE, 2 * PADDING);
+  gtk_box_pack_start (GTK_BOX (v2), nautic, TRUE, FALSE, 2 * PADDING);
+  gtk_box_pack_start (GTK_BOX (v2), minsecbt, TRUE, FALSE, 2 * PADDING);
+*/
+/*  default download server */
+  f3 = gtk_frame_new (_("Default map server"));
+  h1 = gtk_hbox_new (FALSE, 2 * PADDING);
+  h2 = gtk_hbox_new (FALSE, 2 * PADDING);
+  v3 = gtk_vbox_new (FALSE, 2 * PADDING);
+//KCFX
+  gtk_box_pack_start (GTK_BOX (mainbox2), f3, FALSE, TRUE, 1 * PADDING);
+//  gtk_table_attach_defaults (GTK_TABLE (table), f3, 1, 2, 0, 1);
+  gtk_container_add (GTK_CONTAINER (f3), v3);
+  gtk_box_pack_start (GTK_BOX (v3), h1, TRUE, FALSE, 2 * PADDING);
+
+  s1 = gtk_radio_button_new_with_label (NULL, _("Expedia Germany"));
+  gtk_signal_connect (GTK_OBJECT (s1),
+		      "clicked", GTK_SIGNAL_FUNC (defaultserver_cb),
+		      (gpointer) 1);
+  s2 =
+    gtk_radio_button_new_with_label (gtk_radio_button_group
+				     (GTK_RADIO_BUTTON (s1)), _("Expedia USA"));
+  gtk_signal_connect (GTK_OBJECT (s2), "clicked",
+		      GTK_SIGNAL_FUNC (defaultserver_cb), (gpointer) 2);
+
+/* disable mapblast */
+/*   gtk_widget_set_sensitive (s1, FALSE); */
+/*   defaultserver = 1; */
+
+  if (defaultserver == 0)
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (s1), TRUE);
+  else
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (s2), TRUE);
+
+  gtk_box_pack_start (GTK_BOX (h1), s1, TRUE, FALSE, 2 * PADDING);
+  gtk_box_pack_start (GTK_BOX (h1), s2, TRUE, FALSE, 2 * PADDING);
+
+/* Night light mode */
+  f5 = gtk_frame_new (_("Night light mode"));
+  nighttable = gtk_table_new (1, 3, TRUE);
+  gtk_container_add (GTK_CONTAINER (f5), nighttable);
+/*   gtk_box_pack_start (GTK_BOX (h1), f5, TRUE, FALSE, 2 * PADDING);  */
+  gtk_box_pack_start (GTK_BOX (v3), h2, TRUE, FALSE, 2 * PADDING);
+  gtk_box_pack_start (GTK_BOX (h2), label2, FALSE, FALSE, 2 * PADDING);
+  gtk_box_pack_start (GTK_BOX (h2), mapdirbt, TRUE, TRUE, 2 * PADDING);
+
+  gtk_table_attach_defaults (GTK_TABLE (nighttable), night1, 0, 1, 0, 1);
+  gtk_table_attach_defaults (GTK_TABLE (nighttable), night2, 1, 2, 0, 1);
+  gtk_table_attach_defaults (GTK_TABLE (nighttable), night3, 2, 3, 0, 1);
+
+//KCFX
+  gtk_box_pack_end (GTK_BOX (mainbox2), f5, FALSE, TRUE, 1 * PADDING);
+//  gtk_table_attach_defaults (GTK_TABLE (table), f5, 0, 2, 2, 3);
+
+/* Sound settings */
+
+  framesound = gtk_frame_new (_("Speech output settings"));
+  soundtable = gtk_table_new (2, 2, TRUE);
+  gtk_container_add (GTK_CONTAINER (framesound), soundtable);
+
+/*
+set following sounds
+sound_direction ... say direction to target
+sound_distance  ... say distance to target
+sound_speed     ... say your current speed
+sound_gps       ... say GPS status
+
+*/
+  sounddirbt = gtk_check_button_new_with_label (_("Direction"));
+  if (sound_direction)
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (sounddirbt), TRUE);
+  gtk_signal_connect (GTK_OBJECT (sounddirbt),
+		      "clicked", GTK_SIGNAL_FUNC (soundsettings_cb),
+		      (gpointer) 1);
+
+  sounddistbt = gtk_check_button_new_with_label (_("Distance"));
+  if (sound_distance)
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (sounddistbt), TRUE);
+  gtk_signal_connect (GTK_OBJECT (sounddistbt),
+		      "clicked", GTK_SIGNAL_FUNC (soundsettings_cb),
+		      (gpointer) 2);
+
+  soundspeedbt = gtk_check_button_new_with_label (_("Speed"));
+  if (sound_speed)
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (soundspeedbt), TRUE);
+  gtk_signal_connect (GTK_OBJECT (soundspeedbt),
+		      "clicked", GTK_SIGNAL_FUNC (soundsettings_cb),
+		      (gpointer) 3);
+
+  soundgpsbt = gtk_check_button_new_with_label (_("GPS Status"));
+  if (sound_gps)
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (soundgpsbt), TRUE);
+  gtk_signal_connect (GTK_OBJECT (soundgpsbt),
+		      "clicked", GTK_SIGNAL_FUNC (soundsettings_cb),
+		      (gpointer) 4);
+  gtk_table_attach_defaults (GTK_TABLE (soundtable), sounddirbt, 0, 1, 0, 1);
+  gtk_table_attach_defaults (GTK_TABLE (soundtable), sounddistbt, 0, 1, 1, 2);
+  gtk_table_attach_defaults (GTK_TABLE (soundtable), soundspeedbt, 1, 2, 0,
+			     1);
+  gtk_table_attach_defaults (GTK_TABLE (soundtable), soundgpsbt, 1, 2, 1, 2);
+
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), sounddirbt,
+			_
+			("Switch on for speech output of the direction to the target"),
+			NULL);
+
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), sounddistbt,
+			_
+			("Switch on for speech output of the distance to the target"),
+			NULL);
+
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), soundspeedbt,
+			_
+			("Switch on for speech output of your current speed"),
+			NULL);
+
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), soundgpsbt,
+			_
+			("Switch on for speech output of the status of your GPS signal"),
+			NULL);
+
+
+  /* Font settings */
+  framefont = gtk_frame_new (_("Font and color settings"));
+  fontbox = gtk_hbutton_box_new ();
+  gtk_container_add (GTK_CONTAINER (framefont), fontbox);
+/*   gtk_box_pack_start (GTK_BOX (h1), f5, TRUE, FALSE, 2 * PADDING);  */
+
+  font1 = gtk_button_new_with_label (_("WP Label"));
+  font2 = gtk_button_new_with_label (_("Big display"));
+  font3 = gtk_button_new_with_label (_("Display color"));
+/*   gtk_widget_set_sensitive (font3, FALSE); */
+
+  gtk_signal_connect (GTK_OBJECT (font1), "clicked",
+		      G_CALLBACK (change_font_callback), (gpointer) 1);
+  gtk_signal_connect (GTK_OBJECT (font2), "clicked",
+		      G_CALLBACK (change_font_callback), (gpointer) 2);
+  gtk_signal_connect (GTK_OBJECT (font3), "clicked",
+		      G_CALLBACK (change_color_callback), (gpointer) 3);
+  gtk_box_pack_start (GTK_BOX (fontbox), font1, TRUE, TRUE, 2);
+  gtk_box_pack_start (GTK_BOX (fontbox), font2, TRUE, TRUE, 2);
+  gtk_box_pack_start (GTK_BOX (fontbox), font3, TRUE, TRUE, 2);
+
+/*   gtk_table_attach_defaults (GTK_TABLE (table), framefont, 0, 2, 3, 4); */
+  gtk_box_pack_start (GTK_BOX (mainbox), framesound, FALSE, TRUE,
+		      1 * PADDING);
+  gtk_box_pack_start (GTK_BOX (mainbox), framefont, FALSE, TRUE, 1 * PADDING);
+
+/*   gtk_table_attach_defaults (GTK_TABLE (bigtable), table, 0, 1, 0, 1); */
+
+/*   gtk_table_set_row_spacings (GTK_TABLE (bigtable), 5 * PADDING); */
+/*   gtk_table_set_col_spacings (GTK_TABLE (bigtable), 5 * PADDING); */
+
+  gtk_table_set_row_spacings (GTK_TABLE (table2), 5 * PADDING);
+  gtk_table_set_col_spacings (GTK_TABLE (table2), 5 * PADDING);
+
+
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), miles,
+			_("Switch units to statute miles"), NULL);
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), nautic,
+			_("Switch units to nautical miles"), NULL);
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), metric,
+			_("Switch units to metric system (Kilometers)"),
+			NULL);
+
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), minsecbt,
+			_
+			("If selected display latitude and longitude in decimal degrees, otherwise in degree, minutes and seconds notation"),
+			NULL);
+
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), s1,
+			_
+			("Set the german expedia server(expedia.de) as default download server. Use this if you are in Europe"),
+			NULL);
+
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), s2,
+			_("Set Expedia as default download server"), NULL);
+
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), shadowbt,
+			_("Switches shadows on map on or off"), NULL);
+
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), etchbt,
+			_
+			("Switches between different type of frame ornaments"),
+			NULL);
+
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), GTK_COMBO (slowcpubt)->entry,
+			_
+			("Select the approx. maximum CPU load, use 20-30% on notebooks while on battery to save battery power. This effects the refresh rate of the map screen"),
+			NULL);
+
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), simfollowbt,
+			_
+			("If activated, pointer moves to target in simulation mode"),
+			NULL);
+
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), trackcolorbt,
+			_("Set here the color of the drawn track"), NULL);
+
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), mapdirbt,
+			_
+			("Path to your map files. In the specified directory also the index file map_koord.txt must be present."),
+			NULL);
+
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), garminbt,
+			_
+			("If selected, gpsdrive try to use GARMIN mode if possible. Unselect if you only have a NMEA device."),
+			NULL);
+
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), option_menu,
+			_
+			("Set here the baud rate of your GPS device, NMEA devices usually have a speed of 4800 baud"),
+			NULL);
+
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), dgpsbt,
+			_
+			("If selected, gpsdrive try to use differential GPS over IP. You must have an internet connection and a DGPS capable GPS receiver. Works only in NMEA mode!"),
+			NULL);
+
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), earthmatebt,
+			_
+			("Select this if you have a DeLorme Earthmate GPS receiver. The StartGPSD button will provide gpsd with the needed additional parameters"),
+			NULL);
+
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), noserialbt,
+			_
+			("Select this if you want to use of the direct serial connection. If disabled, you can use the receiver only through gpsd. On the other hand, the direct serial connection needs no gpsd running and detects the working receiver on startup"),
+			NULL);
+
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), serialbt,
+			_
+			("Specify the serial interface where the GPS is connected"),
+			NULL);
+
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), night1,
+			_
+			("Switches automagically to night mode if it is dark outside. Press 'N' key to turn off nightmode."),
+			NULL);
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), night2,
+			_
+			("Switches night mode on. Press 'N' key to turn off nightmode."),
+			NULL);
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), night3,
+			_("Switches night mode off"), NULL);
+
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), font1,
+			_
+			("Here you can set the font for the waypoint labels"),
+			NULL);
+
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), font2,
+			_
+			("Here you can set the font for the big display for Speed and Distance"),
+			NULL);
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), font3,
+			_
+			("Here you can set the color for the big display for speed, distance and altitude"),
+			NULL);
+
+
+  gtk_widget_show_all (mainbox);
+/*    g_free (names); */
+
+}
+
+void
+testifnight (void)
+{
+  daylights ();
+  isnight = FALSE;
+  if (hour > sunset)
+    isnight = TRUE;
+  if (hour < sunrise)
+    isnight = TRUE;
+
+  if (debug)
+    {
+      if (isnight)
+	g_print ("\nIt is night");
+      else
+	g_print ("\nIt is day");
+    }
+}
+
+
+void
+daylights (void)
+{
+  gint Rank, D, TZ;
+  gdouble MA, C, RR, ET, L, Dec, Ho, lat, lon;
+  time_t now = time (NULL);
+  struct tm *st = localtime (&now);
+
+  lat = M_PI * current_lat / 180.0;
+  lon = M_PI * current_long / 180.0;
+  Rank = st->tm_yday + 1;
+  D = st->tm_mday;
+  MA = 357 + 0.9856 * Rank;
+  C = 1.914 * sin (M_PI * MA / 180.0) + 0.02 * sin (2 * M_PI * MA / 180.0);
+  L = 280.0 + C + 0.9856 * Rank;
+  RR =
+    -2.466 * sin (2.0 * M_PI * L / 180.0) +
+    0.053 * sin (4 * M_PI * L / 180.0);
+  ET = (C + RR) * 4;
+  Dec = asin (0.3978 * sin (M_PI * L / 180.0));
+  Ho = acos (((-0.01454 - sin (Dec) * sin (lat)) / (cos (Dec) * cos (lat))));
+  Ho = 180.0 * Ho / M_PI;
+  Ho = Ho / 15;
+
+  TZ = zone;
+
+  sunrise = 12.0 - Ho + ET / 60.0 - current_long / 15 + TZ;
+  suntransit = 12 + ET / 60.0 - current_long / 15 + TZ;
+  sunset = 12.0 + Ho + ET / 60.0 - current_long / 15 + TZ;
+
+  if (sunrise < 0)
+    sunrise += 24;
+  if (suntransit < 0)
+    suntransit += 24;
+  if (sunset < 0)
+    sunset += 24;
+
+  if (sunrise > 24)
+    sunrise -= 24;
+  if (suntransit > 24)
+    suntransit -= 24;
+  if (sunset > 24)
+    sunset -= 24;
+
+
+  Ho = acos (((-0.309 - sin (Dec) * sin (lat)) / (cos (Dec) * cos (lat))));
+  Ho = 180.0 * Ho / M_PI;
+  Ho = Ho / 15;
+  dawnastro = 12.0 - Ho + ET / 60.0 - current_long / 15 + TZ;
+  duskastro = 12.0 + Ho + ET / 60.0 - current_long / 15 + TZ;
+
+  Ho = acos (((-0.208 - sin (Dec) * sin (lat)) / (cos (Dec) * cos (lat))));
+  Ho = 180.0 * Ho / M_PI;
+  Ho = Ho / 15;
+  dawnnaut = 12.0 - Ho + ET / 60.0 - current_long / 15 + TZ;
+  dusknaut = 12.0 + Ho + ET / 60.0 - current_long / 15 + TZ;
+
+  Ho = acos (((-0.105 - sin (Dec) * sin (lat)) / (cos (Dec) * cos (lat))));
+  Ho = 180.0 * Ho / M_PI;
+  Ho = Ho / 15;
+  dawnciv = 12.0 - Ho + ET / 60.0 - current_long / 15 + TZ;
+  duskciv = 12.0 + Ho + ET / 60.0 - current_long / 15 + TZ;
+
+  if (dawnastro < 0)
+    dawnastro += 24;
+  if (dawnnaut < 0)
+    dawnnaut += 24;
+  if (dawnciv < 0)
+    dawnciv += 24;
+  if (duskastro < 0)
+    duskastro += 24;
+  if (dusknaut < 0)
+    dusknaut += 24;
+  if (duskciv < 0)
+    duskciv += 24;
+
+  if (dawnastro > 24)
+    dawnastro -= 24;
+  if (dawnnaut > 24)
+    dawnnaut -= 24;
+  if (dawnciv > 24)
+    dawnciv -= 24;
+  if (duskastro > 24)
+    duskastro -= 24;
+  if (dusknaut > 24)
+    dusknaut -= 24;
+  if (duskciv > 24)
+    duskciv -= 24;
+
+
+  hour = st->tm_hour;
+  hour = hour + st->tm_min / 60.0;
+  if (debug)
+    {
+      g_print ("\nhour: %d:%02d, sunrise: %d:%02d ",
+	       (int) hour, (int) ((hour - (int) hour) * 60), (int) sunrise,
+	       (int) ((sunrise - (int) sunrise) * 60));
+      g_print ("\nhour: %d:%02d, transit: %d:%02d ",
+	       (int) hour, (int) ((hour - (int) hour) * 60), (int) suntransit,
+	       (int) ((suntransit - (int) suntransit) * 60));
+      g_print ("\nhour: %d:%02d, sunset: %d:%02d ",
+	       (int) hour, (int) ((hour - (int) hour) * 60), (int) sunset,
+	       (int) ((sunset - (int) sunset) * 60));
+    }
+
+/* Formulas for dawn and dusk are almost the same than sunrise and sunset. In the */
+/* formula for Cos Ho -0.01454 must be replaced by: */
+/* astronomical: -0.309 */
+/* nautical: -0.208 */
+/* civil: -0.105 */
+}
+
+gint
+infosettz (GtkWidget * widget, guint datum)
+{
+  gchar *sc;
+
+  sc = (char *) gtk_entry_get_text (GTK_ENTRY (GTK_COMBO (ge12)->entry));
+  sscanf (sc, "GMT%d", &zone);
+  needtosave = TRUE;
+  if (debug)
+    g_print ("\nTimezone: %d", zone);
+  return TRUE;
+}
+
+gint
+storetz_cb (GtkWidget * widget, guint datum)
+{
+  storetz = !storetz;
+  needtosave = TRUE;
+  fprintf (stderr, "storetz: %d\n", storetz);
+  return TRUE;
+}
+
+void
+infos (void)
+{
+  GtkWidget *mainbox, *frame, *l1, *l2, *l5, *e1, *e2;
+  GtkWidget *e3, *e4, *e5, *l6, *l8, *l9, *l10, *l11, *l12, *l13;
+  GtkWidget *e6, *e7, *e8, *e9, *e10, *e11;
+  GtkWidget *table;
+  gchar text[80];
+  GList *list = NULL;
+  gint i;
+  GtkTooltips *tooltips;
+
+  for (i = 0; i < 25; i++)
+    list = g_list_append (list, slist[i]);
+
+  setupentry[3] = frame = gtk_frame_new (_("Geo information"));
+  gtk_container_set_border_width (GTK_CONTAINER (frame), 5 * PADDING);
+  setupentrylabel[3] = gtk_label_new (_("Geo info"));
+
+  testifnight ();
+
+  mainbox = gtk_vbox_new (FALSE, 15 * PADDING);
+  gtk_container_add (GTK_CONTAINER (frame), mainbox);
+
+  table = gtk_table_new (10, 3, FALSE);
+  gtk_box_pack_start (GTK_BOX (mainbox), table, FALSE, FALSE, 10 * PADDING);
+
+
+  l11 = gtk_label_new (_("Sunrise"));
+  gtk_table_attach_defaults (GTK_TABLE (table), l11, 1, 2, 0, 1);
+  l9 = gtk_label_new (_("Sunset"));
+  gtk_table_attach_defaults (GTK_TABLE (table), l9, 2, 3, 0, 1);
+
+  l1 = gtk_label_new (_("Standard"));
+  gtk_table_attach_defaults (GTK_TABLE (table), l1, 0, 1, 1, 2);
+  l2 = gtk_label_new (_("Transit"));
+  gtk_table_attach_defaults (GTK_TABLE (table), l2, 0, 1, 6, 7);
+  l5 = gtk_label_new (_("GPS-Time"));
+  gtk_table_attach_defaults (GTK_TABLE (table), l5, 0, 1, 7, 8);
+  l6 = gtk_label_new (_("Astro."));
+  gtk_table_attach_defaults (GTK_TABLE (table), l6, 0, 1, 2, 3);
+  l8 = gtk_label_new (_("Naut."));
+  gtk_table_attach_defaults (GTK_TABLE (table), l8, 0, 1, 3, 4);
+  l10 = gtk_label_new (_("Civil"));
+  gtk_table_attach_defaults (GTK_TABLE (table), l10, 0, 1, 4, 5);
+  l12 = gtk_label_new (_("Timezone"));
+  gtk_table_attach_defaults (GTK_TABLE (table), l12, 0, 1, 9, 10);
+  l13 = gtk_check_button_new_with_label (_("Store TZ"));
+  gtk_table_attach_defaults (GTK_TABLE (table), l13, 2, 3, 9, 10);
+  if (storetz)
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (l13), TRUE);
+  gtk_signal_connect (GTK_OBJECT (l13),
+		      "clicked", GTK_SIGNAL_FUNC (storetz_cb), (gpointer) 0);
+
+  tooltips = gtk_tooltips_new ();
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), l13,
+			_
+			("If selected, the timezone is stored, otherwise your actual timezone will automatically used"),
+			NULL);
+
+
+  e1 = gtk_entry_new ();
+  if (sunrise > 24.0)
+    g_strlcpy (text, _("n/a"), sizeof (text));
+  else
+    g_snprintf (text, sizeof (text), "%02d:%02d", (int) sunrise,
+		(int) ((sunrise - (int) sunrise) * 60));
+  gtk_entry_set_text (GTK_ENTRY (e1), text);
+  gtk_table_attach_defaults (GTK_TABLE (table), e1, 1, 2, 1, 2);
+
+  e2 = gtk_entry_new ();
+  if (sunset > 24.0)
+    g_strlcpy (text, _("n/a"), sizeof (text));
+  else
+    g_snprintf (text, sizeof (text), "%02d:%02d", (int) sunset,
+		(int) ((sunset - (int) sunset) * 60));
+  gtk_entry_set_text (GTK_ENTRY (e2), text);
+  gtk_table_attach_defaults (GTK_TABLE (table), e2, 2, 3, 1, 2);
+
+  e3 = gtk_entry_new ();
+  if (suntransit > 24.0)
+    g_strlcpy (text, _("n/a"), sizeof (text));
+  else
+    g_snprintf (text, sizeof (text), "%02d:%02d:%02d", (int) suntransit,
+		(int) ((suntransit - (int) suntransit) * 60),
+		(int) ((suntransit * 60 - (int) (suntransit * 60)) * 60));
+  gtk_entry_set_text (GTK_ENTRY (e3), text);
+  gtk_table_attach_defaults (GTK_TABLE (table), e3, 1, 2, 6, 7);
+
+  e4 = gtk_entry_new ();
+  if (isnight)
+    g_snprintf (text, sizeof (text), "%s", _("Night"));
+  else
+    g_snprintf (text, sizeof (text), "%s", _("Day"));
+  gtk_entry_set_text (GTK_ENTRY (e4), text);
+  gtk_table_attach_defaults (GTK_TABLE (table), e4, 2, 3, 7, 8);
+
+  utclabel = e5 = gtk_entry_new ();
+
+
+  g_snprintf (text, sizeof (text), "%s", loctime);
+  gtk_entry_set_text (GTK_ENTRY (e5), text);
+  gtk_table_attach_defaults (GTK_TABLE (table), e5, 1, 2, 7, 8);
+
+  e6 = gtk_entry_new ();
+  if (dawnastro > 24.0)
+    g_strlcpy (text, _("n/a"), sizeof (text));
+  else
+    g_snprintf (text, sizeof (text), "%02d:%02d:%02d", (int) dawnastro,
+		(int) ((dawnastro - (int) dawnastro) * 60),
+		(int) ((dawnastro * 60 - (int) (dawnastro * 60)) * 60));
+
+  gtk_entry_set_text (GTK_ENTRY (e6), text);
+  gtk_table_attach_defaults (GTK_TABLE (table), e6, 1, 2, 2, 3);
+  e7 = gtk_entry_new ();
+  if (dawnnaut > 24.0)
+    g_strlcpy (text, _("n/a"), sizeof (text));
+  else
+    g_snprintf (text, sizeof (text), "%02d:%02d:%02d", (int) dawnnaut,
+		(int) ((dawnnaut - (int) dawnnaut) * 60),
+		(int) ((dawnnaut * 60 - (int) (dawnnaut * 60)) * 60));
+  gtk_entry_set_text (GTK_ENTRY (e7), text);
+  gtk_table_attach_defaults (GTK_TABLE (table), e7, 1, 2, 3, 4);
+  e8 = gtk_entry_new ();
+  if (dawnciv > 24.0)
+    g_strlcpy (text, _("n/a"), sizeof (text));
+  else
+    g_snprintf (text, sizeof (text), "%02d:%02d:%02d", (int) dawnciv,
+		(int) ((dawnciv - (int) dawnciv) * 60),
+		(int) ((dawnciv * 60 - (int) (dawnciv * 60)) * 60));
+
+  gtk_entry_set_text (GTK_ENTRY (e8), text);
+  gtk_table_attach_defaults (GTK_TABLE (table), e8, 1, 2, 4, 5);
+
+  e9 = gtk_entry_new ();
+  if (duskastro > 24.0)
+    g_strlcpy (text, _("n/a"), sizeof (text));
+  else
+    g_snprintf (text, sizeof (text), "%02d:%02d:%02d", (int) duskastro,
+		(int) ((duskastro - (int) duskastro) * 60),
+		(int) ((duskastro * 60 - (int) (duskastro * 60)) * 60));
+  gtk_entry_set_text (GTK_ENTRY (e9), text);
+  gtk_table_attach_defaults (GTK_TABLE (table), e9, 2, 3, 2, 3);
+  e10 = gtk_entry_new ();
+  if (dusknaut > 24.0)
+    g_strlcpy (text, _("n/a"), sizeof (text));
+  else
+    g_snprintf (text, sizeof (text), "%02d:%02d:%02d", (int) dusknaut,
+		(int) ((dusknaut - (int) dusknaut) * 60),
+		(int) ((dusknaut * 60 - (int) (dusknaut * 60)) * 60));
+
+  gtk_entry_set_text (GTK_ENTRY (e10), text);
+  gtk_table_attach_defaults (GTK_TABLE (table), e10, 2, 3, 3, 4);
+  e11 = gtk_entry_new ();
+  if (duskciv > 24.0)
+    g_strlcpy (text, _("n/a"), sizeof (text));
+  else
+    g_snprintf (text, sizeof (text), "%02d:%02d:%02d", (int) duskciv,
+		(int) ((duskciv - (int) duskciv) * 60),
+		(int) ((duskciv * 60 - (int) (duskciv * 60)) * 60));
+
+  gtk_entry_set_text (GTK_ENTRY (e11), text);
+  gtk_table_attach_defaults (GTK_TABLE (table), e11, 2, 3, 4, 5);
+  ge12 = gtk_combo_new ();
+  gtk_combo_set_popdown_strings (GTK_COMBO (ge12), (GList *) list);
+  gtk_entry_set_text (GTK_ENTRY (GTK_COMBO (ge12)->entry), slist[zone + 12]);
+  gtk_signal_connect (GTK_OBJECT (GTK_COMBO (ge12)->entry), "changed",
+		      GTK_SIGNAL_FUNC (infosettz), (gpointer) 0);
+
+  gtk_table_attach_defaults (GTK_TABLE (table), ge12, 1, 2, 9, 10);
+
+  gtk_entry_set_editable (GTK_ENTRY (e1), FALSE);
+  gtk_entry_set_editable (GTK_ENTRY (e2), FALSE);
+  gtk_entry_set_editable (GTK_ENTRY (e3), FALSE);
+  gtk_entry_set_editable (GTK_ENTRY (e4), FALSE);
+  gtk_entry_set_editable (GTK_ENTRY (e5), FALSE);
+  gtk_entry_set_editable (GTK_ENTRY (e6), FALSE);
+  gtk_entry_set_editable (GTK_ENTRY (e7), FALSE);
+  gtk_entry_set_editable (GTK_ENTRY (e8), FALSE);
+  gtk_entry_set_editable (GTK_ENTRY (e9), FALSE);
+  gtk_entry_set_editable (GTK_ENTRY (e10), FALSE);
+  gtk_entry_set_editable (GTK_ENTRY (e11), FALSE);
+  gtk_widget_set_usize (e1, USIZE_X, USIZE_Y);
+  gtk_widget_set_usize (e2, USIZE_X, USIZE_Y);
+  gtk_widget_set_usize (e3, USIZE_X, USIZE_Y);
+  gtk_widget_set_usize (e4, USIZE_X, USIZE_Y);
+  gtk_widget_set_usize (e5, USIZE_X, USIZE_Y);
+  gtk_widget_set_usize (e6, USIZE_X, USIZE_Y);
+  gtk_widget_set_usize (e7, USIZE_X, USIZE_Y);
+  gtk_widget_set_usize (e8, USIZE_X, USIZE_Y);
+  gtk_widget_set_usize (e9, USIZE_X, USIZE_Y);
+  gtk_widget_set_usize (e10, USIZE_X, USIZE_Y);
+  gtk_widget_set_usize (e11, USIZE_X, USIZE_Y);
+  gtk_widget_set_usize (ge12, USIZE_X, USIZE_Y);
+  gtk_table_set_row_spacings (GTK_TABLE (table), 5 * PADDING);
+  gtk_table_set_col_spacings (GTK_TABLE (table), 5 * PADDING);
+  utctimer = gtk_timeout_add (300, (GtkFunction) setutc, 0);
+
+  gtk_widget_show_all (frame);
+}
+
+
+
+gint
+settripvalues (GtkWidget * widget, guint datum)
+{
+  gchar text[80], s1[80];
+  gdouble f;
+
+  if ((GTK_IS_WIDGET (entrytripodometer)) == FALSE)
+    return FALSE;
+
+  g_snprintf (text, sizeof (text), "%.3f", tripodometer * milesconv);
+  gtk_entry_set_text (GTK_ENTRY (entrytripodometer), text);
+  f = (time (NULL) - triptime) / 3600.0;
+  g_snprintf (text, sizeof (text), "%02d:%02d:%02d", (int) f,
+	      (int) ((f - (int) f) * 60),
+	      (int) ((f * 60 - (int) (f * 60)) * 60));
+  gtk_entry_set_text (GTK_ENTRY (entrytriptime), text);
+  if (tripavspeedcount > 0)
+    g_snprintf (text, sizeof (text), "%.1f",
+		tripavspeed * milesconv / tripavspeedcount);
+  else
+    g_snprintf (text, sizeof (text), "---");
+  gtk_entry_set_text (GTK_ENTRY (entryavspeed), text);
+
+  g_snprintf (text, sizeof (text), "%.1f", tripmaxspeed * milesconv);
+  gtk_entry_set_text (GTK_ENTRY (entrymaxspeed), text);
+
+  if (milesflag)
+    g_snprintf (s1, sizeof (s1), "%s [%s]", _("Unit:"), _("miles"));
+  else if (nauticflag)
+    g_snprintf (s1, sizeof (s1), "%s [%s]", _("Unit:"),
+		_("nautic miles/knots"));
+  else
+    g_snprintf (s1, sizeof (s1), "%s [%s]", _("Unit:"), _("kilometers"));
+
+  gtk_label_set_text (GTK_LABEL (tripunitlabel), s1);
+  return TRUE;
+}
+
+
+void
+trip (void)
+{
+  GtkWidget *mainbox, *frame, *l1, *l2, *l5;
+  GtkWidget *l6;
+  GtkWidget *table, *knopf;
+  GtkTooltips *tooltips;
+
+  setupentry[4] = frame = gtk_frame_new (_("Trip information"));
+  gtk_container_set_border_width (GTK_CONTAINER (frame), 5 * PADDING);
+  setupentrylabel[4] = gtk_label_new (_("Trip info"));
+
+
+  mainbox = gtk_vbox_new (FALSE, 15 * PADDING);
+  gtk_container_add (GTK_CONTAINER (frame), mainbox);
+
+
+  table = gtk_table_new (6, 2, FALSE);
+  gtk_box_pack_start (GTK_BOX (mainbox), table, FALSE, FALSE, 10 * PADDING);
+
+
+  tripunitlabel = gtk_label_new ("---");
+  gtk_table_attach_defaults (GTK_TABLE (table), tripunitlabel, 0, 2, 0, 1);
+
+  l1 = gtk_label_new (_("Odometer"));
+  gtk_table_attach_defaults (GTK_TABLE (table), l1, 0, 1, 1, 2);
+  l2 = gtk_label_new (_("Total time"));
+  gtk_table_attach_defaults (GTK_TABLE (table), l2, 0, 1, 2, 3);
+  l5 = gtk_label_new (_("Av. speed"));
+  gtk_table_attach_defaults (GTK_TABLE (table), l5, 0, 1, 3, 4);
+  l6 = gtk_label_new (_("Max. speed"));
+  gtk_table_attach_defaults (GTK_TABLE (table), l6, 0, 1, 4, 5);
+
+  entrytripodometer = gtk_entry_new ();
+  gtk_entry_set_text (GTK_ENTRY (entrytripodometer), "---");
+  gtk_table_attach_defaults (GTK_TABLE (table), entrytripodometer, 1, 2, 1,
+			     2);
+
+
+  entrytriptime = gtk_entry_new ();
+  gtk_entry_set_text (GTK_ENTRY (entrytriptime), "---");
+  gtk_table_attach_defaults (GTK_TABLE (table), entrytriptime, 1, 2, 2, 3);
+
+
+  entryavspeed = gtk_entry_new ();
+
+
+  gtk_entry_set_text (GTK_ENTRY (entryavspeed), "---");
+  gtk_table_attach_defaults (GTK_TABLE (table), entryavspeed, 1, 2, 3, 4);
+
+  entrymaxspeed = gtk_entry_new ();
+  gtk_entry_set_text (GTK_ENTRY (entrymaxspeed), "---");
+  gtk_table_attach_defaults (GTK_TABLE (table), entrymaxspeed, 1, 2, 4, 5);
+
+  knopf = gtk_button_new_with_label (_("Reset"));
+  gtk_signal_connect_object (GTK_OBJECT (knopf), "clicked",
+			     GTK_SIGNAL_FUNC (tripreset), NULL);
+  tooltips = gtk_tooltips_new ();
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), knopf,
+			_("Resets the trip values to zero"), NULL);
+
+  gtk_table_attach_defaults (GTK_TABLE (table), knopf, 1, 2, 5, 6);
+
+  gtk_entry_set_editable (GTK_ENTRY (entrytripodometer), FALSE);
+  gtk_entry_set_editable (GTK_ENTRY (entryavspeed), FALSE);
+  gtk_entry_set_editable (GTK_ENTRY (entrytriptime), FALSE);
+  gtk_entry_set_editable (GTK_ENTRY (entrymaxspeed), FALSE);
+  gtk_widget_set_usize (entrytripodometer, USIZE_X, USIZE_Y);
+  gtk_widget_set_usize (entryavspeed, USIZE_X, USIZE_Y);
+  gtk_widget_set_usize (entrytriptime, USIZE_X, USIZE_Y);
+  gtk_widget_set_usize (entrymaxspeed, USIZE_X, USIZE_Y);
+  gtk_table_set_row_spacings (GTK_TABLE (table), 5 * PADDING);
+  gtk_table_set_col_spacings (GTK_TABLE (table), 5 * PADDING);
+  gtk_widget_show_all (frame);
+  triptimer = gtk_timeout_add (1000, (GtkFunction) settripvalues, 0);
+}
+
+gint
+dbdistance_cb (GtkWidget * widget, guint datum)
+{
+  gchar *s;
+
+  s = g_strstrip ((char *) gtk_entry_get_text (GTK_ENTRY (widget)));
+  dbdistance = g_strtod (s, 0);
+  needtosave = TRUE;
+  gtk_timeout_add (2000, (GtkFunction) callsqlupdateonce_cb, 0);
+  return TRUE;
+}
+
+gint
+callsqlupdateonce_cb (GtkWidget * widget, guint datum)
+{
+  getsqldata ();
+  return FALSE;
+}
+
+gint
+dbusedist_cb (GtkWidget * widget, guint datum)
+{
+  dbusedist = !dbusedist;
+  needtosave = TRUE;
+  getsqldata ();
+  return TRUE;
+}
+
+gint
+showsid_cb (GtkWidget * widget, guint datum)
+{
+  showsid = !showsid;
+  needtosave = TRUE;
+  dbbuildquery_cb (NULL, 999999);
+  getsqldata ();
+  return TRUE;
+}
+
+gint
+noserial_cb (GtkWidget * widget, guint datum)
+{
+  disableserial = !disableserial;
+  needtosave = TRUE;
+  return TRUE;
+}
+
+gint
+usefriends_cb (GtkWidget * widget, guint datum)
+{
+  if ((strcmp (friendsname, _("EnterYourName"))) == 0)
+    {
+      error_popup (_("You should change your name in the first field!"));
+      return TRUE;
+    }
+  havefriends = !havefriends;
+  needtosave = TRUE;
+  return TRUE;
+}
+
+gint
+friendsname_cb (GtkWidget * widget, guint datum)
+{
+  gchar *s;
+
+  s = (char *) gtk_entry_get_text (GTK_ENTRY (widget));
+  g_strlcpy (friendsname, s, sizeof (friendsname));
+  needtosave = TRUE;
+  return TRUE;
+}
+
+gint
+friendsserverfqn_cb (GtkWidget * widget, guint datum)
+{
+  gchar *s;
+
+  s = (char *) gtk_entry_get_text (GTK_ENTRY (widget));
+  g_strlcpy (friendsserverfqn, s, sizeof (friendsserverfqn));
+  needtosave = TRUE;
+  return TRUE;
+}
+
+gint
+friendslookup_cb (GtkWidget * widget, guint datum)
+{
+  struct hostent *hent = NULL;
+
+  char *quad;
+  struct in_addr adr;
+
+  hent = gethostbyname (friendsserverfqn);
+  if ((hent != NULL) && (AF_INET == hent->h_addrtype))
+    {
+      bcopy (hent->h_addr, &adr.s_addr, hent->h_length);
+      quad = inet_ntoa (adr);
+      g_strlcpy (friendsserverip, quad, sizeof (friendsserverip));
+    }
+  else
+    g_strlcpy (friendsserverip, "0.0.0.0", sizeof (friendsserverip));
+  iplock = TRUE;
+  gtk_entry_set_text (GTK_ENTRY (ipbt), friendsserverip);
+  iplock = FALSE;
+
+  if (debug)
+    printf ("\nserver ip: %s\n", friendsserverip);
+  return FALSE;
+}
+
+gint
+friendsserverip_cb (GtkWidget * widget, guint datum)
+{
+  gchar *s;
+
+  if (iplock == TRUE)
+    return TRUE;
+
+  s = (char *) gtk_entry_get_text (GTK_ENTRY (widget));
+  g_strlcpy (friendsserverip, s, sizeof (friendsserverip));
+  needtosave = TRUE;
+  return TRUE;
+}
+
+
+
+gint
+dbbuildquery_cb (GtkWidget * widget, guint datum)
+{
+  gint i, sel;
+  gchar s[50];
+  gint flag = 0;
+
+  if (datum != 999999)
+    {
+/*   printf ("\n%d andmode: %d\n", datum,sqlandmode); */
+      if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (widget)))
+	sqlselects[datum] = TRUE;
+      else
+	sqlselects[datum] = FALSE;
+    }
+
+  g_strlcpy (dbwherestring, "WHERE (", sizeof (dbwherestring));
+  for (i = 0; i < dbtypelistcount; i++)
+    {
+      sel = sqlselects[i];
+      if (sel)
+	{
+	  flag = TRUE;
+	  if (sqlandmode)
+	    {
+	      g_snprintf (s, sizeof (s), "type  = '%s' OR  ", dbtypelist[i]);
+	      g_strlcat (dbwherestring, s, sizeof (dbwherestring));
+	    }
+	  else
+	    {
+	      g_snprintf (s, sizeof (s), "type != '%s' AND ", dbtypelist[i]);
+	      g_strlcat (dbwherestring, s, sizeof (dbwherestring));
+	    }
+	}
+    }
+  dbwherestring[strlen (dbwherestring) - 4] = 0;
+  g_strlcat (dbwherestring, ")", sizeof (dbwherestring));
+  if (!showsid)
+    g_strlcat (dbwherestring, " AND name != 'no_ssid'",
+	       sizeof (dbwherestring));
+
+  if (!flag)
+    g_strlcpy (dbwherestring, "", sizeof (dbwherestring));
+  if (debug)
+    printf ("\n%s\n", dbwherestring);
+  if (!sqldontquery)
+    getsqldata ();
+  needtosave = TRUE;
+  return TRUE;
+}
+
+gint
+sqlselectmode_cb (GtkWidget * widget, guint datum)
+{
+  if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (widget)))
+    sqlandmode = TRUE;
+  else
+    sqlandmode = FALSE;
+  dbbuildquery_cb (NULL, 999999);
+  return TRUE;
+}
+
+gint
+grab_spinner_value (GtkSpinButton * a_spinner, gpointer user_data)
+{
+  long int secs;
+
+  secs = 60 * gtk_spin_button_get_value_as_int (GTK_SPIN_BUTTON (spinner3));
+  secs +=
+    3600 * gtk_spin_button_get_value_as_int (GTK_SPIN_BUTTON (spinner2));
+  secs +=
+    24 * 3600 * gtk_spin_button_get_value_as_int (GTK_SPIN_BUTTON (spinner1));
+  maxfriendssecs = secs;
+
+/*   printf ("\nmaxfriendssecs: %ld\n", maxfriendssecs);  */
+  needtosave = TRUE;
+  return TRUE;
+}
+
+
+void
+friendssetup (void)
+{
+  GtkWidget *mainbox, *frame, *friendscolorbt, *hbbox;
+
+  GtkWidget *table, *spintable, *sl1, *sl2, *sl3;
+  GtkWidget *d1, *d2, *d3, *d4, *d5, *d6, *d7, *d8, *look, *label, *d9;
+  GtkTooltips *tooltips;
+  GtkAdjustment *spinner1_adj, *spinner2_adj, *spinner3_adj;
+  long int d, h, m;
+
+  d = maxfriendssecs / 86400;
+  spinner1_adj =
+    (GtkAdjustment *) gtk_adjustment_new ((float) d, 0.0, 90.0, 1.0, 5.0,
+					  5.0);
+  spinner1 = gtk_spin_button_new (spinner1_adj, 1.0, 0);
+  h = (maxfriendssecs - d * 86400) / 3600;
+  spinner2_adj =
+    (GtkAdjustment *) gtk_adjustment_new ((float) h, 0.0, 23.0, 1.0, 5.0,
+					  5.0);
+  spinner2 = gtk_spin_button_new (spinner2_adj, 1.0, 0);
+  m = (maxfriendssecs - d * 86400 - h * 3600) / 60;
+  spinner3_adj =
+    (GtkAdjustment *) gtk_adjustment_new ((float) m, 0.0, 59.0, 1.0, 5.0,
+					  5.0);
+  spinner3 = gtk_spin_button_new (spinner3_adj, 1.0, 0);
+  gtk_signal_connect (GTK_OBJECT (spinner1),
+		      "changed", GTK_SIGNAL_FUNC (grab_spinner_value), NULL);
+  gtk_signal_connect (GTK_OBJECT (spinner2),
+		      "changed", GTK_SIGNAL_FUNC (grab_spinner_value), NULL);
+  gtk_signal_connect (GTK_OBJECT (spinner3),
+		      "changed", GTK_SIGNAL_FUNC (grab_spinner_value), NULL);
+
+
+  d9 = gtk_label_new (_("Show position newer as"));
+  setupentry[friendsplace] = frame =
+    gtk_frame_new (_("Friends server setup"));
+  setupentrylabel[friendsplace] = gtk_label_new (_("Friends"));
+
+  gtk_container_set_border_width (GTK_CONTAINER (frame), 5 * PADDING);
+
+
+  tooltips = gtk_tooltips_new ();
+
+  mainbox = gtk_vbox_new (FALSE, 15 * PADDING);
+
+  table = gtk_table_new (9, 2, FALSE);
+  spintable = gtk_table_new (2, 3, TRUE);
+
+  sl1 = gtk_label_new (_("Days"));
+  sl2 = gtk_label_new (_("Hours"));
+  sl3 = gtk_label_new (_("Minutes"));
+  gtk_container_add (GTK_CONTAINER (frame), mainbox);
+
+  gtk_box_pack_start (GTK_BOX (mainbox), table, FALSE, TRUE, 3 * PADDING);
+
+
+  d1 = gtk_label_new (_("Your name"));
+  d2 = gtk_entry_new ();
+
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), d2,
+			_
+			("Set here your name which should be shown near your vehicle. You may use spaces here!"),
+			NULL);
+
+  gtk_entry_set_text (GTK_ENTRY (d2), friendsname);
+  gtk_widget_set_usize (d2, USIZE_X, USIZE_Y);
+  gtk_signal_connect (GTK_OBJECT (d2),
+		      "changed", GTK_SIGNAL_FUNC (friendsname_cb), d2);
+
+
+
+
+
+  d3 = gtk_label_new (_("Server name"));
+  d4 = gtk_entry_new ();
+
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), d4,
+			_
+			("Set here the full qualified host name (i.e. www.gpsdrive.cc) of your friends server, then you have to press the \"Lookup\" button!"),
+			NULL);
+
+
+  gtk_entry_set_text (GTK_ENTRY (d4), friendsserverfqn);
+  gtk_widget_set_usize (d4, USIZE_X, USIZE_Y);
+  gtk_signal_connect (GTK_OBJECT (d4),
+		      "changed", GTK_SIGNAL_FUNC (friendsserverfqn_cb), d2);
+
+  look = gtk_button_new_with_label (_("Lookup"));
+
+  gtk_signal_connect (GTK_OBJECT (look),
+		      "clicked", GTK_SIGNAL_FUNC (friendslookup_cb), d2);
+  GTK_WIDGET_SET_FLAGS (look, GTK_CAN_DEFAULT);
+
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), look,
+			_
+			("You have to press the \"Lookup\" button to resolve the friends server name!"),
+			NULL);
+
+  friendscolorbt = gtk_button_new_from_stock (GTK_STOCK_SELECT_COLOR);
+/*   gtk_button_set_label(GTK_BUTTON(trackcolorbt),_("Track")); */
+  gtk_signal_connect (GTK_OBJECT (friendscolorbt), "clicked",
+		      G_CALLBACK (change_friendscolor_callback),
+		      (gpointer) 0);
+
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), friendscolorbt,
+			_
+			("Set here the color of the label displayed at friends position"),
+			NULL);
+  hbbox = gtk_hbutton_box_new ();
+  gtk_box_pack_start (GTK_BOX (hbbox), friendscolorbt, TRUE, TRUE, 3);
+  gtk_box_pack_start (GTK_BOX (hbbox), look, TRUE, TRUE, 3);
+
+  d5 = gtk_label_new (_("Friends server IP"));
+  ipbt = d6 = gtk_entry_new ();
+
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), d6,
+			_
+			("Set here the IP adress (i.e. 127.0.0.1) if you don't set the hostname above"),
+			NULL);
+
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), spinner1,
+			_
+			("Set here the time limit in which the friends position is shown. Older positions are not shown."),
+			NULL);
+
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), spinner2,
+			_
+			("Set here the time limit in which the friends position is shown. Older positions are not shown."),
+			NULL);
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), spinner3,
+			_
+			("Set here the time limit in which the friends position is shown. Older positions are not shown."),
+			NULL);
+
+  gtk_entry_set_text (GTK_ENTRY (d6), friendsserverip);
+  gtk_widget_set_usize (d6, USIZE_X, USIZE_Y);
+  gtk_signal_connect (GTK_OBJECT (d6),
+		      "changed", GTK_SIGNAL_FUNC (friendsserverip_cb), d2);
+
+
+
+
+
+  d7 = gtk_label_new (_("Use friends server"));
+  d8 = gtk_check_button_new ();
+  if (havefriends)
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (d8), TRUE);
+  gtk_signal_connect (GTK_OBJECT (d8),
+		      "clicked", GTK_SIGNAL_FUNC (usefriends_cb), d8);
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), d8,
+			_
+			("Enable/disable use of friends server. You must enter a Username, don't use the default name!"),
+			NULL);
+
+  label = gtk_label_new (_("If you enable the friendsserver mode,\n"
+			   "<span color=\"red\">everyone</span> using the same server\ncan see your position!"));
+  gtk_label_set_use_markup (GTK_LABEL (label), TRUE);
+
+  gtk_table_attach_defaults (GTK_TABLE (spintable), sl1, 0, 1, 0, 1);
+  gtk_table_attach_defaults (GTK_TABLE (spintable), sl2, 1, 2, 0, 1);
+  gtk_table_attach_defaults (GTK_TABLE (spintable), sl3, 2, 3, 0, 1);
+
+  gtk_table_attach_defaults (GTK_TABLE (spintable), spinner1, 0, 1, 1, 2);
+  gtk_table_attach_defaults (GTK_TABLE (spintable), spinner2, 1, 2, 1, 2);
+  gtk_table_attach_defaults (GTK_TABLE (spintable), spinner3, 2, 3, 1, 2);
+
+
+  gtk_table_attach_defaults (GTK_TABLE (table), d1, 0, 1, 0, 1);
+  gtk_table_attach_defaults (GTK_TABLE (table), d2, 1, 2, 0, 1);
+  gtk_table_attach_defaults (GTK_TABLE (table), d3, 0, 1, 1, 2);
+  gtk_table_attach_defaults (GTK_TABLE (table), d4, 1, 2, 1, 2);
+  gtk_table_attach_defaults (GTK_TABLE (table), hbbox, 0, 2, 2, 3);
+
+  gtk_table_attach_defaults (GTK_TABLE (table), d5, 0, 1, 3, 4);
+  gtk_table_attach_defaults (GTK_TABLE (table), d6, 1, 2, 3, 4);
+  gtk_table_attach_defaults (GTK_TABLE (table), d7, 0, 1, 4, 5);
+  gtk_table_attach_defaults (GTK_TABLE (table), d8, 1, 2, 4, 5);
+  gtk_table_attach_defaults (GTK_TABLE (table), d9, 0, 1, 5, 6);
+  gtk_table_attach_defaults (GTK_TABLE (table), spintable, 1, 2, 5, 6);
+
+  gtk_table_attach_defaults (GTK_TABLE (table), label, 0, 2, 6, 9);
+
+
+#define XALIGN 0.1
+#define YALIGN 0.5
+
+  gtk_misc_set_alignment (GTK_MISC (d1), XALIGN, YALIGN);
+  gtk_misc_set_alignment (GTK_MISC (d3), XALIGN, YALIGN);
+  gtk_misc_set_alignment (GTK_MISC (d5), XALIGN, YALIGN);
+  gtk_misc_set_alignment (GTK_MISC (d7), XALIGN, YALIGN);
+  gtk_misc_set_alignment (GTK_MISC (d9), XALIGN, YALIGN);
+
+  gtk_table_set_row_spacings (GTK_TABLE (table), 6 * PADDING);
+  gtk_table_set_col_spacings (GTK_TABLE (table), 6 * PADDING);
+
+  gtk_widget_show_all (frame);
+}
+
+
+void
+sqlsetup (void)
+{
+  GtkWidget *mainbox, *frame, *l[100], *scroll;
+  GtkWidget *table, *table2, *t0, *t1, *t2;
+  GtkWidget *d1, *d2, *d4, *d5, *hbox;
+  gchar text[30], temp[80], wheretemp[5000];
+  gint i;
+  GtkTooltips *tooltips;
+
+  setupentry[sqlplace] = frame = gtk_frame_new (_("SQL selection criterias"));
+  setupentrylabel[sqlplace] = gtk_label_new (_("SQL"));
+
+  gtk_container_set_border_width (GTK_CONTAINER (frame), 5 * PADDING);
+
+  g_strlcpy (wheretemp, dbwherestring, sizeof (wheretemp));
+
+  getsqltypelist ();
+
+  for (i = 0; i < dbtypelistcount; i++)
+    sqlselects[i] = 0;
+
+  tooltips = gtk_tooltips_new ();
+
+  mainbox = gtk_vbox_new (FALSE, 15 * PADDING);
+  scroll = gtk_scrolled_window_new (NULL, NULL);
+  gtk_scrolled_window_set_policy ((GtkScrolledWindow *) scroll,
+				  GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
+
+  table = gtk_table_new (4, 2, FALSE);
+  table2 = gtk_table_new (dbtypelistcount, 2, FALSE);
+
+  gtk_container_add (GTK_CONTAINER (frame), mainbox);
+
+  gtk_box_pack_start (GTK_BOX (mainbox), table, FALSE, TRUE, 3 * PADDING);
+
+
+  d1 = gtk_label_new (_("Dist. limit[km] "));
+  d2 = gtk_entry_new ();
+  g_snprintf (text, sizeof (text), "%0.1f", dbdistance);
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), d2,
+			_
+			("If enabled, show waypoints only within this distance"),
+			NULL);
+
+  gtk_entry_set_text (GTK_ENTRY (d2), text);
+  gtk_widget_set_usize (d2, USIZE_X, USIZE_Y);
+  gtk_signal_connect (GTK_OBJECT (d2),
+		      "changed", GTK_SIGNAL_FUNC (dbdistance_cb), d2);
+
+
+  d4 = gtk_check_button_new ();
+  hbox = gtk_hbox_new (FALSE, 2);
+  if (dbusedist)
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (d4), TRUE);
+  gtk_signal_connect (GTK_OBJECT (d4),
+		      "clicked", GTK_SIGNAL_FUNC (dbusedist_cb), d4);
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), d4,
+			_("Enable/disable distance selection"), NULL);
+  gtk_box_pack_start (GTK_BOX (hbox), d1, FALSE, FALSE, 0 * PADDING);
+  gtk_box_pack_start (GTK_BOX (hbox), d4, FALSE, FALSE, 0 * PADDING);
+
+  gtk_table_attach_defaults (GTK_TABLE (table), hbox, 0, 1, 0, 1);
+  gtk_table_attach_defaults (GTK_TABLE (table), d2, 1, 2, 0, 1);
+
+
+
+  d5 = gtk_check_button_new_with_label (_("Show no_ssid "));
+
+  if (showsid)
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (d5), TRUE);
+  gtk_signal_connect (GTK_OBJECT (d5),
+		      "clicked", GTK_SIGNAL_FUNC (showsid_cb), d4);
+
+  gtk_table_attach_defaults (GTK_TABLE (table), d5, 0, 1, 3, 4);
+
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), d5,
+			_
+			("If enabled, WLANs with no SSID are shown, because this is perhaps useless, you can disable it here"),
+			NULL);
+
+
+  sqldontquery = TRUE;
+
+  t0 = gtk_label_new (_("Selection mode"));
+
+  t1 = gtk_radio_button_new_with_label (NULL, _("include"));
+  t2 =
+    gtk_radio_button_new_with_label (gtk_radio_button_group
+				     (GTK_RADIO_BUTTON (t1)), _("exclude"));
+
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), t1,
+			_
+			("Show only waypoints where the type field contains one of the selected words"),
+			NULL);
+  gtk_tooltips_set_tip (GTK_TOOLTIPS (tooltips), t2,
+			_
+			("Show only waypoints where the type field doesn't contain any the selected words"),
+			NULL);
+
+  gtk_signal_connect (GTK_OBJECT (t1),
+		      "clicked", GTK_SIGNAL_FUNC (sqlselectmode_cb),
+		      (gpointer) 1);
+
+  if ((strstr (wheretemp, "type != ")) != NULL)
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (t2), TRUE);
+
+  gtk_table_attach_defaults (GTK_TABLE (table), t0, 0, 2, 1, 2);
+  gtk_table_attach_defaults (GTK_TABLE (table), t1, 0, 1, 2, 3);
+  gtk_table_attach_defaults (GTK_TABLE (table), t2, 1, 2, 2, 3);
+
+  gtk_scrolled_window_add_with_viewport ((GtkScrolledWindow *) scroll,
+					 table2);
+
+  gtk_box_pack_start (GTK_BOX (mainbox), scroll, TRUE, TRUE, 3 * PADDING);
+
+  for (i = 0; i < dbtypelistcount; i++)
+    {
+      l[i] = gtk_entry_new ();
+      gtk_entry_set_text (GTK_ENTRY (l[i]), dbtypelist[i]);
+      gtk_entry_set_editable (GTK_ENTRY (l[i]), FALSE);
+      gtk_widget_set_usize (l[i], USIZE_X, USIZE_Y);
+      gtk_table_attach_defaults (GTK_TABLE (table2), l[i], 0, 1, i, i + 1);
+
+
+      sqlfn[i] = gtk_check_button_new ();
+      gtk_signal_connect (GTK_OBJECT (sqlfn[i]),
+			  "clicked", GTK_SIGNAL_FUNC (dbbuildquery_cb),
+			  (gpointer) i);
+      g_snprintf (temp, sizeof (temp), "= '%s'", dbtypelist[i]);
+      if ((strstr (wheretemp, temp)) != NULL)
+	gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (sqlfn[i]), TRUE);
+
+      gtk_table_attach_defaults (GTK_TABLE (table2), sqlfn[i], 1, 2, i,
+				 i + 1);
+
+    }
+  sqldontquery = FALSE;
+  getsqldata ();
+  gtk_table_set_row_spacings (GTK_TABLE (table), 2 * PADDING);
+  gtk_table_set_col_spacings (GTK_TABLE (table), 2 * PADDING);
+  gtk_table_set_row_spacings (GTK_TABLE (table2), 2 * PADDING);
+  gtk_table_set_col_spacings (GTK_TABLE (table2), 2 * PADDING);
+  gtk_widget_show_all (frame);
+}
+
+
+
+
+gint
+setutc (GtkWidget * widget, guint datum)
+{
+  gchar text[20];
+  g_snprintf (text, sizeof (text), "%s", loctime);
+/*   g_print("\nwidget da: %d", GTK_IS_WIDGET(utclabel));  */
+  if (GTK_IS_WIDGET (utclabel))
+    gtk_entry_set_text (GTK_ENTRY (utclabel), text);
+
+  return TRUE;
+}
+
+gint
+removesetutc (GtkWidget * widget, guint datum)
+{
+/*   g_print ("\n\nremove timer!\n\a\n"); */
+  lastnotebook =
+    gtk_notebook_get_current_page (GTK_NOTEBOOK (settingsnotebook));
+  gtk_timeout_remove (utctimer);
+  if (triptimer != 0)
+    {
+      gtk_timeout_remove (triptimer);
+      triptimer = 0;
+    }
+  gtk_widget_set_sensitive (setupbt, TRUE);
+  return TRUE;
+}

Added: packages/gpsdrive/branches/etch/src/speech_out.c
===================================================================
--- packages/gpsdrive/branches/etch/src/speech_out.c	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/speech_out.c	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,715 @@
+/*
+
+Copyright (c) 2001-2004 Fritz Ganter <ganter at ganter.at>
+
+Website: www.gpsdrive.de
+
+Disclaimer: Please do not use for navigation. 
+
+    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
+
+    *********************************************************************
+
+
+$Log: speech_out.c,v $
+Revision 1.37  2004/03/02 00:53:35  ganter
+v2.09pre1
+added new gpsfetchmap.pl (works again with Expedia)
+added sound settings in settings menu
+max serial device string is now 40 char
+
+Revision 1.36  2004/02/08 17:16:25  ganter
+replacing all strcat with g_strlcat to avoid buffer overflows
+
+Revision 1.35  2004/02/08 16:35:10  ganter
+replacing all sprintf with g_snprintf to avoid buffer overflows
+
+Revision 1.34  2004/02/06 22:29:24  ganter
+updated README and man page
+
+Revision 1.33  2004/02/02 03:38:32  ganter
+code cleanup
+
+Revision 1.32  2004/01/29 04:42:17  ganter
+after valgrind
+
+Revision 1.31  2004/01/17 17:41:48  ganter
+replaced all gdk_pixbuf_render_to_drawable (obsolet) with gdk_draw_pixbuf
+
+Revision 1.30  2004/01/16 13:19:59  ganter
+update targetlist if goto button pressed
+
+Revision 1.29  2004/01/11 10:01:57  ganter
+gray border for .dsc file text
+
+Revision 1.28  2004/01/05 05:52:58  ganter
+changed all frames to respect setting
+
+Revision 1.27  2004/01/01 09:07:33  ganter
+v2.06
+trip info is now live updated
+added cpu temperature display for acpi
+added tooltips for battery and temperature
+
+Revision 1.26  2003/12/17 02:17:56  ganter
+added donation window
+waypoint describtion (.dsc files) works again
+added dist_alarm ...
+
+Revision 1.25  2003/10/04 17:43:58  ganter
+translations don't need to be utf-8, but the .po files must specify the
+correct coding (ie, UTF-8, iso8859-15)
+
+Revision 1.24  2003/05/11 21:15:46  ganter
+v2.0pre7
+added script convgiftopng
+This script converts .gif into .png files, which reduces CPU load
+run this script in your maps directory, you need "convert" from ImageMagick
+
+Friends mode runs fine now
+Added parameter -H to correct the alitude
+
+Revision 1.23  2003/05/07 10:52:23  ganter
+...
+
+Revision 1.22  2003/01/15 15:30:28  ganter
+before dynamically loading mysql
+
+Revision 1.21  2002/11/02 12:38:55  ganter
+changed website to www.gpsdrive.de
+
+Revision 1.20  2002/07/30 20:49:55  ganter
+1.26pre3
+added support for festival lite (flite)
+changed http request to HTTP1.1 and added correct servername
+
+Revision 1.19  2002/06/23 17:09:35  ganter
+v1.23pre9
+now PDA mode looks good.
+
+Revision 1.18  2002/06/02 20:54:10  ganter
+added navigation.c and copyrights
+
+Revision 1.17  2002/05/11 15:45:31  ganter
+v1.21pre1
+degree,minutes,seconds should work now
+
+Revision 1.16  2002/05/04 10:48:24  ganter
+v1.20pre2
+
+Revision 1.15  2002/05/04 09:17:37  ganter
+added new intl subdir
+
+Revision 1.14  2002/05/02 01:34:11  ganter
+added speech output of waypoint description
+
+Revision 1.13  2002/04/14 23:06:26  ganter
+v1.17
+
+Revision 1.12  2001/11/01 20:17:59  ganter
+v1.0 added spanish voice output
+
+Revision 1.11  2001/09/30 18:45:27  ganter
+v0.29
+added choice of map type
+
+Revision 1.10  2001/09/30 12:09:43  ganter
+added help menu
+
+Revision 1.9  2001/09/28 15:43:56  ganter
+v0.28 changed layout, some bugfixes
+
+Revision 1.8  2001/09/25 23:49:44  ganter
+v 0.27
+
+Revision 1.7  2001/09/23 22:31:14  ganter
+v0.26
+
+Revision 1.6  2001/09/18 05:33:06  ganter
+..
+
+Revision 1.5  2001/09/17 00:29:38  ganter
+added speech output of bearing
+
+Revision 1.4  2001/09/16 21:36:05  ganter
+speech output is working
+
+Revision 1.3  2001/09/16 19:12:35  ganter
+...
+
+*/
+
+
+/*  There must be the software "festival" running in server mode */
+/*  http://www.speech.cs.cmu.edu/festival */
+
+
+/*  Include Dateien */
+#include "config.h"
+#include <stdlib.h>
+#include <string.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <netdb.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <stdio.h>
+#include <signal.h>
+#include <unistd.h>
+#include <sys/mman.h>
+#include <math.h>
+#include <sys/time.h>
+#include <gpsdrive.h>
+
+#if HAVE_LOCALE_H
+#include <locale.h>
+#else
+# define setlocale(Category, Locale)
+#endif
+#include "gettext.h"
+
+#include <time.h>
+
+/*  Defines for gettext I18n */
+# include <libintl.h>
+# define _(String) gettext(String)
+# ifdef gettext_noop
+#  define N_(String) gettext_noop(String)
+# else
+#  define N_(String) (String)
+# endif
+
+extern gint statusid, debug, havespeechout, posmode, muteflag;
+gint speechsock = -1;
+gchar *displaytext = NULL;
+extern enum
+{ english, german, spanish }
+voicelang;
+extern GdkFont *textfont, *smalltextfont, *bigtextfont;
+extern GdkColor white, red, mygray, blue;
+extern GdkDrawable *drawable;
+extern gint real_screen_y, real_screen_x;
+gint do_display_dsc = FALSE, textcount;
+extern gint useflite, pdamode,milesflag,foundradar,importactive,speechcount,simmode,havepos;
+extern gchar targetname[40], oldangle[100];
+extern gdouble dist,bearing,groundspeed;
+extern GtkWidget *drawing_area;
+extern int sound_direction, sound_distance, sound_speed, sound_gps;
+
+
+#define SPEECHOUTSERVER "127.0.0.1"
+
+
+gint
+speech_out_init ()
+{
+  struct sockaddr_in server;
+  struct hostent *server_data;
+
+/*  open socket to port 1314 */
+  if ((speechsock = socket (AF_INET, SOCK_STREAM, 0)) < 0)
+    {
+      return (FALSE);
+    }
+  server.sin_family = AF_INET;
+/*  We retrieve the IP address of the server from its name: */
+  if ((server_data = gethostbyname (SPEECHOUTSERVER)) == NULL)
+    {
+      return (FALSE);
+    }
+  memcpy (&server.sin_addr, server_data->h_addr, server_data->h_length);
+  server.sin_port = htons (1314);
+/*  We initiate the connection  */
+  if (connect (speechsock, (struct sockaddr *) &server, sizeof server) < 0)
+    {
+      return (FALSE);
+    }
+
+
+  return TRUE;
+}
+
+
+gint
+speech_out_speek (char *text)
+{
+  gint e;
+  gchar out[2000];
+  gint file;
+
+  if (!havespeechout)
+    return 0;
+  if (posmode)
+    return 0;
+
+  if (debug)
+    g_print (text);
+  if (!useflite)
+    {
+      g_snprintf (out, sizeof (out), "(SayText \"%s\")\n", text);
+      e = write (speechsock, out, strlen (out));
+    }
+  else
+    {
+      file = creat ("/tmp/gpsdrivetext.out", 0666);
+      if (file == -1)
+	return 0;
+      g_strlcat (text, ".\n", sizeof (text));
+      e = write (file, text, strlen (text));
+      close (file);
+      g_snprintf (out, sizeof (out), "flite -f /tmp/gpsdrivetext.out&");
+      system (out);
+    }
+  return e;
+}
+
+gint
+speech_out_speek_raw (char *text)
+{
+  gint e;
+
+  if (!havespeechout)
+    return 0;
+  if (posmode)
+    return 0;
+
+  if (debug)
+    g_print (text);
+
+  e = write (speechsock, text, strlen (text));
+
+  return e;
+}
+
+/*  if second parameter is TRUE, then also greeting is spoken */
+gint
+speech_saytime_cb (GtkWidget * widget, guint datum)
+{
+  time_t t;
+  struct tm *ts;
+  gchar buf[200];
+
+  if (muteflag)
+    return TRUE;
+
+  time (&t);
+  ts = localtime (&t);
+
+  if (havespeechout)
+    switch (voicelang)
+      {
+      case english:
+	if (datum == 1)
+	  {
+	    if ((ts->tm_hour >= 0) && (ts->tm_hour < 12))
+	      g_snprintf (buf, sizeof (buf), "Good Morning,");
+	    if ((ts->tm_hour >= 12) && (ts->tm_hour < 18))
+	      g_snprintf (buf, sizeof (buf), "Good afternoon,");
+	    if (ts->tm_hour >= 18)
+	      g_snprintf (buf, sizeof (buf), "Good evening,");
+	    speech_out_speek (buf);
+	  }
+	g_snprintf (buf, sizeof (buf),
+		    "it is %d o clock and %d minutes.", ts->tm_hour,
+		    ts->tm_min);
+	speech_out_speek (buf);
+	break;
+      case spanish:
+	if (datum == 1)
+	  {
+	    if ((ts->tm_hour >= 0) && (ts->tm_hour < 12))
+	      g_snprintf (buf, sizeof (buf), "buenos dÂŽías.");
+	    if ((ts->tm_hour >= 12) && (ts->tm_hour < 18))
+	      g_snprintf (buf, sizeof (buf), "buenos tardes.");
+	    if (ts->tm_hour >= 18)
+	      g_snprintf (buf, sizeof (buf), "buenas noches");
+	    speech_out_speek (buf);
+	  }
+	if (ts->tm_hour == 1)
+	  g_snprintf (buf, sizeof (buf), "es la una y %d minutos.",
+		      ts->tm_min);
+	else
+	  g_snprintf (buf, sizeof (buf),
+		      "son las %d horas y %d minutos.", ts->tm_hour,
+		      ts->tm_min);
+	speech_out_speek (buf);
+	break;
+      case german:
+	if (datum == 1)
+	  {
+	    if ((ts->tm_hour >= 0) && (ts->tm_hour < 12))
+	      g_snprintf (buf, sizeof (buf), "Guten Morgen.");
+	    if ((ts->tm_hour >= 12) && (ts->tm_hour < 18))
+	      g_snprintf (buf, sizeof (buf), "Guten Tag.");
+	    if (ts->tm_hour >= 18)
+	      g_snprintf (buf, sizeof (buf), "Guten Abend.");
+	    speech_out_speek (buf);
+	  }
+	if (ts->tm_hour == 1)
+	  g_snprintf (buf, sizeof (buf), "es ist ein Uhr %d", ts->tm_min);
+	else
+	  g_snprintf (buf, sizeof (buf), "es ist %d Uhr %d", ts->tm_hour,
+		      ts->tm_min);
+	speech_out_speek (buf);
+
+      }
+
+  return TRUE;
+
+}
+
+void
+saytargettext (gchar * filename, gchar * tg)
+{
+  gchar file[500];
+  gint fd, e;
+  gchar *start, *end;
+  struct stat buf;
+  gchar *data, *b, *tg2, target[100];
+
+/* build .dsc filename */
+  g_strlcpy (file, filename, sizeof (file));
+  file[strlen (file) - 3] = 0;
+  g_strlcat (file, "dsc", sizeof (file));
+/* get size */
+  e = stat (file, &buf);
+  if (e != 0)
+    return;
+
+  fd = open (file, O_RDONLY);
+/* map +2000 bytes to get 0 at the end */
+  data = mmap (0, buf.st_size + 2000, PROT_READ, MAP_SHARED, fd, 0);
+  g_strlcpy (target, "$", sizeof (target));
+  tg2 = g_strdelimit (tg, " ", '_');
+  g_strlcat (target, tg2, sizeof (target));
+  start = strstr (data, target);
+  if (start != NULL)
+    {
+      start = strstr (start, "\n");
+      end = strstr (start, "$");
+      if (end == NULL)
+	end = start + strlen (start);
+      b = calloc (end - start + 50, 1);
+      if (displaytext != NULL)
+	free (displaytext);
+      displaytext = calloc (end - start + 50, 1);
+      strncpy (displaytext, start, end - start);
+      displaytext[end - start + 1] = 0;
+      g_strlcpy (b, displaytext, end - start + 50);
+      displaytext = g_strdelimit (displaytext, "\n", ' ');
+      do_display_dsc = TRUE;
+      textcount = 0;
+      speech_out_speek (b);
+      free (b);
+    }
+  munmap (data, buf.st_size + 2000);
+}
+
+void
+display_dsc (void)
+{
+  GdkGC *kontext;
+  gint len;
+  gchar *text;
+  PangoFontDescription *pfd;
+  PangoLayout *wplabellayout;
+
+
+  if (!do_display_dsc)
+    return;
+  if ((textcount >= (int) strlen (displaytext)))
+    {
+      do_display_dsc = FALSE;
+      free (displaytext);
+      displaytext = NULL;
+      return;
+    }
+  if (textcount > 20)
+    text = displaytext + textcount;
+  else
+    text = displaytext;
+  kontext = gdk_gc_new (drawable);
+  len = strlen (text);
+/*   if (len>10) */
+/*       len=10; */
+
+
+/*   gdk_gc_set_function (kontext, GDK_OR); */
+
+  gdk_gc_set_foreground (kontext, &mygray);
+  gdk_draw_rectangle (drawable, kontext, 1, 0, SCREEN_Y - 40, SCREEN_X, 40);
+  gdk_gc_set_function (kontext, GDK_COPY);
+/*   gdk_gc_set_foreground (kontext, &blue); */
+/*   gdk_draw_text (drawable, bigtextfont, kontext, */
+/* 		 11, SCREEN_Y - 30, text, len); */
+
+  /* prints in pango */
+
+  wplabellayout = gtk_widget_create_pango_layout (drawing_area, text);
+//KCFX  
+  if (pdamode)
+    pfd = pango_font_description_from_string ("Sans 8");
+  else
+    pfd = pango_font_description_from_string ("Sans bold 14");
+  pango_layout_set_font_description (wplabellayout, pfd);
+/* 		pango_layout_get_pixel_size (wplabellayout, &width, &height); */
+  gdk_draw_layout_with_colors (drawable, kontext, 11, SCREEN_Y - 30,
+			       wplabellayout, &blue, NULL);
+
+  if (wplabellayout != NULL)
+    g_object_unref (G_OBJECT (wplabellayout));
+  /* freeing PangoFontDescription, cause it has been copied by prev. call */
+  pango_font_description_free (pfd);
+
+
+
+  textcount += 2;
+
+}
+
+void
+speech_out_close (void)
+{
+  if (speechsock != -1)
+    close (speechsock);
+}
+
+
+gint
+speech_out_cb (GtkWidget * widget, guint * datum)
+{
+  gchar buf[500], s2[100];
+  gint angle;
+
+  if (strcmp (oldangle, "XXX"))
+    {
+      if (muteflag)
+	return TRUE;
+      if (foundradar)
+	return TRUE;
+      if (importactive)
+	return TRUE;
+    }
+
+  speechcount++;
+  angle = bearing * 180.0 / M_PI;
+
+  if (!simmode && !havepos)
+    {
+      switch (voicelang)
+	{
+	case english:
+	  g_snprintf (buf, sizeof (buf), "Not enough satellites in view");
+	  break;
+	case spanish:
+	  g_snprintf (buf, sizeof (buf), "El GPS Fix no estÂŽá disponible");
+	  break;
+	case german:
+	  g_snprintf (buf, sizeof (buf), "Zuwenig Satelliten in Sicht");
+	}
+      if ((speechcount == 1) && sound_gps)
+	speech_out_speek (buf);
+      return TRUE;
+    }
+
+
+  switch (voicelang)
+    {
+    case english:
+      if ((angle >= 338) || (angle < 22))
+	g_strlcpy (s2, "in front of you", sizeof (s2));
+      if ((angle >= 22) && (angle < 68))
+	g_strlcpy (s2, "ahead of you to the right", sizeof (s2));
+      if ((angle >= 68) && (angle < 112))
+	g_strlcpy (s2, "to your right", sizeof (s2));
+      if ((angle >= 112) && (angle < 158))
+	g_strlcpy (s2, "behind you to the right", sizeof (s2));
+      if ((angle >= 158) && (angle < 202))
+	g_strlcpy (s2, "behind you", sizeof (s2));
+      if ((angle >= 202) && (angle < 248))
+	g_strlcpy (s2, "behind you to the left", sizeof (s2));
+      if ((angle >= 248) && (angle < 292))
+	g_strlcpy (s2, "to your left", sizeof (s2));
+      if ((angle >= 292) && (angle < 338))
+	g_strlcpy (s2, "ahead of you to the left", sizeof (s2));
+      break;
+    case spanish:
+      if ((angle >= 338) || (angle < 22))
+	g_strlcpy (s2, "delante de usted", sizeof (s2));
+      if ((angle >= 22) && (angle < 68))
+	g_strlcpy (s2, "delante de usted a la derecha", sizeof (s2));
+      if ((angle >= 68) && (angle < 112))
+	g_strlcpy (s2, "a la derecha", sizeof (s2));
+      if ((angle >= 112) && (angle < 158))
+	g_strlcpy (s2, "de tras de usted a la derecha", sizeof (s2));
+      if ((angle >= 158) && (angle < 202))
+	g_strlcpy (s2, "de tras de usted", sizeof (s2));
+      if ((angle >= 202) && (angle < 248))
+	g_strlcpy (s2, "de tras de usted a la izquierda", sizeof (s2));
+      if ((angle >= 248) && (angle < 292))
+	g_strlcpy (s2, "a la izquierda", sizeof (s2));
+      if ((angle >= 292) && (angle < 338))
+	g_strlcpy (s2, "delante de usted a la izquierda", sizeof (s2));
+      break;
+    case german:
+      if ((angle >= 338) || (angle < 22))
+	g_strlcpy (s2, "vor ihnen", sizeof (s2));
+
+      if ((angle >= 22) && (angle < 68))
+	g_strlcpy (s2, "rechts vor ihnen", sizeof (s2));
+      if ((angle >= 68) && (angle < 112))
+	g_strlcpy (s2, "rechts", sizeof (s2));
+      if ((angle >= 112) && (angle < 158))
+	g_strlcpy (s2, "rechts hinter ihnen", sizeof (s2));
+      if ((angle >= 158) && (angle < 202))
+	g_strlcpy (s2, "hinter ihnen", sizeof (s2));
+      if ((angle >= 202) && (angle < 248))
+	g_strlcpy (s2, "links hinter ihnen", sizeof (s2));
+      if ((angle >= 248) && (angle < 292))
+	g_strlcpy (s2, "links", sizeof (s2));
+      if ((angle >= 292) && (angle < 338))
+	g_strlcpy (s2, "links vor ihnen", sizeof (s2));
+    }
+  if ((speechcount == 1) || (strcmp (s2, oldangle)))
+    {
+      switch (voicelang)
+	{
+	case english:
+	  g_snprintf (buf, sizeof (buf), "Destination is %s", s2);
+	  break;
+	case spanish:
+	  g_snprintf (buf, sizeof (buf), "Su destinaciÂŽón estÂŽá %s", s2);
+	  break;
+	case german:
+	  g_snprintf (buf, sizeof (buf), "Das Ziel ist %s", s2);
+	}
+      if (sound_direction)
+      speech_out_speek (buf);
+      g_strlcpy (oldangle, s2, sizeof (oldangle));
+    }
+  if (speechcount == 3 && groundspeed >= 20)
+    {
+      switch (voicelang)
+	{
+	case english:
+	  if (milesflag)
+	    g_snprintf (buf, sizeof (buf),
+			"The current speed is %d miles per hour",
+			(int) (groundspeed));
+	  else
+	    g_snprintf (buf, sizeof (buf),
+			"The current speed is %d kilometers per hour",
+			(int) groundspeed);
+	  break;
+	case spanish:
+	  if (milesflag)
+	    g_snprintf (buf, sizeof (buf),
+			"La velocidad actual es %d milla por hora",
+			(int) (groundspeed));
+	  else
+	    g_snprintf (buf, sizeof (buf),
+			"La velocidad actual es %d kilometros por hora",
+			(int) groundspeed);
+	  break;
+	case german:
+	  if (milesflag)
+	    g_snprintf (buf, sizeof (buf),
+			"Die momentane Geschwindigkeit ist %d Meilen pro Stunde",
+			(int) (groundspeed));
+	  else
+	    g_snprintf (buf, sizeof (buf),
+			"Die momentane Geschwindigkeit ist %d kmh",
+			(int) groundspeed);
+	}
+      if (sound_speed)
+      speech_out_speek (buf);
+    }
+
+  if (speechcount > 10)
+    speechcount = 0;
+
+
+  if ((speechcount == 2) || ((dist < 1.2) && (speechcount == 7)))
+    {
+      if (milesflag)
+	{
+	  switch (voicelang)
+	    {
+	    case english:
+	      if (dist <= 1.2)
+		g_snprintf (s2, sizeof (s2), "%.0f yards", dist * 1760.0);
+	      else
+		g_snprintf (s2, sizeof (s2), "%.0f miles", dist);
+	      break;
+	    case spanish:
+	      if (dist <= 1.2)
+		g_snprintf (s2, sizeof (s2), "%.0f yards", dist * 1760.0);
+	      else
+		g_snprintf (s2, sizeof (s2), "%.0f millas", dist);
+	      break;
+	    case german:
+	      if (dist <= 1.2)
+		g_snprintf (s2, sizeof (s2), "%.0f yard", dist * 1760.0);
+	      else
+		g_snprintf (s2, sizeof (s2), "%.0f Meilen", dist);
+	    }
+	}
+      else
+	{
+	  switch (voicelang)
+	    {
+	    case english:
+	      if (dist <= 1.2)
+		g_snprintf (s2, sizeof (s2), "%.0f meters", dist * 1000.0);
+	      else
+		g_snprintf (s2, sizeof (s2), "%.0f kilometers", dist);
+	      break;
+	    case spanish:
+	      if (dist <= 1.2)
+		g_snprintf (s2, sizeof (s2), "%.0f metros", dist * 1000.0);
+	      else
+		g_snprintf (s2, sizeof (s2), "%.0f kilometros", dist);
+	      break;
+	    case german:
+	      if (dist <= 1.2)
+		g_snprintf (s2, sizeof (s2), "%.0f meter", dist * 1000.0);
+	      else if ((int) dist == 1)
+		g_snprintf (s2, sizeof (s2), "ein kilometer");
+	      else
+		g_snprintf (s2, sizeof (s2), "%d kilometer", (int) dist);
+	    }
+	}
+
+      switch (voicelang)
+	{
+	case english:
+	  g_snprintf (buf, sizeof (buf), "Distance to %s is %s", targetname,
+		      s2);
+	  break;
+	case spanish:
+	  g_snprintf (buf, sizeof (buf), "La distancia a la %s es %s",
+		      targetname, s2);
+	  break;
+	case german:
+	  g_snprintf (buf, sizeof (buf), "Die Entfernung bis %s ist %s",
+		      targetname, s2);
+	}
+      if (sound_distance)
+      speech_out_speek (buf);
+    }
+
+  return TRUE;
+}

Added: packages/gpsdrive/branches/etch/src/splash.c
===================================================================
--- packages/gpsdrive/branches/etch/src/splash.c	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/splash.c	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,1648 @@
+/*
+
+Copyright (c) 2001-2004 Fritz Ganter <ganter at ganter.at>
+
+Website: www.gpsdrive.de
+
+Disclaimer: Please do not use for navigation. 
+
+    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
+
+    *********************************************************************
+
+
+$Log: splash.c,v $
+Revision 1.110  2004/03/02 03:07:17  ganter
+added speech output for received messages
+
+Revision 1.109  2004/03/02 00:53:35  ganter
+v2.09pre1
+added new gpsfetchmap.pl (works again with Expedia)
+added sound settings in settings menu
+max serial device string is now 40 char
+
+Revision 1.108  2004/02/19 18:00:27  ganter
+added Tele Atlas logo in about window
+
+Revision 1.107  2004/02/18 13:24:19  ganter
+navigation
+
+Revision 1.106  2004/02/11 11:25:46  ganter
+added patch from Johnny Cache <johnycsh at hick.org>, dbname is now configurable
+in gpsdriverc
+additional search path for libmysql for cygwin
+
+Revision 1.105  2004/02/08 17:39:46  ganter
+v2.08pre12
+
+Revision 1.104  2004/02/08 17:16:25  ganter
+replacing all strcat with g_strlcat to avoid buffer overflows
+
+Revision 1.103  2004/02/08 12:44:11  ganter
+replacing all sprintf with g_snprintf to avoid buffer overflows
+
+Revision 1.102  2004/02/07 00:02:16  ganter
+added "store timezone" button in settings menu
+
+Revision 1.101  2004/02/05 19:47:31  ganter
+replacing strcpy with g_strlcpy to avoid bufferoverflows
+USB receiver does not send sentences in direct serial mode,
+so I first send a "\n" to it
+
+Revision 1.100  2004/02/02 03:38:32  ganter
+code cleanup
+
+Revision 1.99  2004/02/01 04:51:22  ganter
+added "no_ssid" button in the SQL settings
+
+Revision 1.98  2004/02/01 02:25:56  ganter
+use dbhostname (the hostname of the SQL server) now works
+dbhostname may be edited in gpsdriverc
+
+Revision 1.97  2004/01/31 13:43:57  ganter
+nasamaps are working better, but still bugs
+
+Revision 1.96  2004/01/28 15:31:43  ganter
+initialize FDs to -1
+
+Revision 1.95  2004/01/28 09:32:57  ganter
+tested for memory leaks with valgrind, looks good :-)
+
+Revision 1.94  2004/01/27 22:51:59  ganter
+added "direct serial connection" button in settings menu
+
+Revision 1.93  2004/01/27 06:59:14  ganter
+The baudrate is now selectable in settings menu
+GpsDrive now connects to the GPS receiver in following order:
+Try to connect to gpsd
+Try to find Garble-mode Garmin
+Try to read data directly from serial port
+
+If this all fails, it falls back into simulation mode
+
+Revision 1.92  2004/01/26 11:55:19  ganter
+just indented some files
+
+Revision 1.91  2004/01/24 03:27:51  ganter
+friends label color is now changeable in settings menu
+
+Revision 1.90  2004/01/22 07:13:27  ganter
+...
+
+Revision 1.89  2004/01/18 19:37:24  ganter
+this is the nice 2.07 release
+
+Revision 1.88  2004/01/18 06:34:54  ganter
+button for reminder window
+
+Revision 1.87  2004/01/18 05:53:35  ganter
+try to find the problem that x-server eats cpu after 5 hours
+
+Revision 1.86  2004/01/18 05:28:02  ganter
+changed all popups to gtk_dialog instead of a toplevel window
+cosmetic changes in settings menu
+
+Revision 1.85  2004/01/17 06:11:04  ganter
+added color setting for track color
+
+Revision 1.84  2004/01/17 00:58:09  ganter
+randomize the startposition and set it the hamburg cementry :-)
+
+Revision 1.83  2004/01/16 19:49:30  ganter
+added new icon
+
+Revision 1.82  2004/01/15 16:00:21  ganter
+added gpssmswatch
+
+Revision 1.81  2004/01/14 00:48:49  ganter
+fixed bug if no crypt is avail.
+
+Revision 1.80  2004/01/13 23:38:30  ganter
+added new field in waypoints display for number of friends received
+
+Revision 1.79  2004/01/13 19:57:48  ganter
+added GNU license to about-popup
+
+Revision 1.78  2004/01/12 23:52:15  ganter
+grrr
+
+Revision 1.77  2004/01/12 22:38:36  ganter
+v2.07pre8
+
+Revision 1.76  2004/01/12 22:09:59  ganter
+some text changes for messages
+
+Revision 1.75  2004/01/12 21:52:02  ganter
+added friends message service
+
+Revision 1.74  2004/01/11 13:48:28  ganter
+added about screen
+added menubar
+
+Revision 1.73  2004/01/03 03:39:52  ganter
+added settings switch for etched frames
+
+Revision 1.72  2004/01/01 09:07:33  ganter
+v2.06
+trip info is now live updated
+added cpu temperature display for acpi
+added tooltips for battery and temperature
+
+Revision 1.71  2003/12/22 19:33:37  ganter
+better test if image has alpha
+
+Revision 1.70  2003/12/21 17:31:32  ganter
+error handling for not installed program
+real v2.05 :-)
+
+Revision 1.69  2003/12/21 17:08:07  ganter
+release v2.05
+
+Revision 1.68  2003/12/21 16:59:05  ganter
+fixed bug in timezone setting
+timezone will be stored now
+
+Revision 1.67  2003/12/17 02:17:56  ganter
+added donation window
+waypoint describtion (.dsc files) works again
+added dist_alarm ...
+
+Revision 1.66  2003/08/12 12:21:20  ganter
+fixed bugs of PDA patch
+
+Revision 1.65  2003/06/08 13:31:50  ganter
+release 2.0pre9
+Added setting of timeperiod in friends mode (see settings menu)
+
+Revision 1.64  2003/06/01 17:27:34  ganter
+v2.0pre8
+friendsmode works fine and can be set in settings menu
+
+Revision 1.63  2003/05/31 20:32:01  ganter
+friendsd2 works fine with sven's server
+
+Revision 1.62  2003/05/31 20:12:35  ganter
+new UDP friendsserver build in, needs some work
+
+Revision 1.61  2003/05/28 22:20:12  ganter
+added load balancer
+
+Revision 1.60  2003/05/11 21:15:46  ganter
+v2.0pre7
+added script convgiftopng
+This script converts .gif into .png files, which reduces CPU load
+run this script in your maps directory, you need "convert" from ImageMagick
+
+Friends mode runs fine now
+Added parameter -H to correct the alitude
+
+Revision 1.59  2003/05/08 21:18:05  ganter
+added settings menu entry for fonts setting
+made a new cool splash screen
+updated da and it translations
+v2.0-pre6
+
+Revision 1.58  2003/05/07 10:52:23  ganter
+...
+
+Revision 1.57  2003/05/06 17:49:11  ganter
+wp label text is now pango
+
+Revision 1.56  2003/05/03 18:59:47  ganter
+shortcuts are now working
+
+Revision 1.55  2003/05/03 03:03:30  ganter
+added help window
+
+Revision 1.54  2003/05/02 19:40:43  ganter
+changed location of datadir files
+
+Revision 1.53  2003/05/02 18:27:18  ganter
+porting to GTK+-2.2
+GpsDrive Version 2.0pre3
+
+Revision 1.52  2003/01/15 15:30:28  ganter
+before dynamically loading mysql
+
+Revision 1.51  2002/12/24 01:46:00  ganter
+FAQ
+
+Revision 1.50  2002/11/25 01:15:17  ganter
+...
+
+Revision 1.49  2002/11/24 23:36:18  ganter
+added icon
+
+Revision 1.48  2002/11/02 12:38:55  ganter
+changed website to www.gpsdrive.de
+
+Revision 1.47  2002/10/27 10:51:30  ganter
+1.28pre8
+
+Revision 1.46  2002/10/24 08:44:09  ganter
+...
+
+Revision 1.45  2002/10/16 14:16:13  ganter
+working on SQL gui
+
+Revision 1.44  2002/10/15 07:44:11  ganter
+...
+
+Revision 1.43  2002/10/14 08:38:59  ganter
+v1.29pre3
+added SQL support
+
+Revision 1.42  2002/09/24 08:51:55  ganter
+updated translations
+changed gpsdrive.spec
+
+Revision 1.41  2002/09/23 07:51:35  ganter
+splited help text in more strings
+v1.28pre2
+
+Revision 1.40  2002/07/30 21:33:53  ganter
+added "J" key to switch to next waypoint
+
+Revision 1.39  2002/06/29 00:23:18  ganter
+added ACPI support for battery meter
+
+Revision 1.38  2002/06/23 17:09:35  ganter
+v1.23pre9
+now PDA mode looks good.
+
+Revision 1.37  2002/06/02 20:54:10  ganter
+added navigation.c and copyrights
+
+Revision 1.36  2002/05/23 09:07:37  ganter
+v1.23pre1
+added new BSD battery stuff
+
+Revision 1.35  2002/05/20 20:40:23  ganter
+v1.22
+
+Revision 1.34  2002/05/20 10:02:48  ganter
+v1.22pre7
+
+Revision 1.33  2002/05/12 23:14:53  ganter
+new 1.21
+changed B to N key.
+
+Revision 1.32  2002/05/12 20:54:08  ganter
+v1.21
+
+Revision 1.31  2002/05/11 15:45:31  ganter
+v1.21pre1
+degree,minutes,seconds should work now
+
+Revision 1.30  2002/05/02 01:34:11  ganter
+added speech output of waypoint description
+
+Revision 1.29  2002/04/29 02:52:18  ganter
+v1.20pre1
+added display of sat position
+
+Revision 1.28  2002/04/28 11:53:43  ganter
+v1.19pre2
+button to delete waypoint
+fixed miles distance on startup in miles mode
+new sat level display colors
+
+Revision 1.27  2002/04/14 15:25:56  ganter
+v1.17pre3
+added simulaton follow switch in setup menu
+
+Revision 1.26  2002/04/13 17:30:35  ganter
+v1.17pre2
+
+Revision 1.25  2002/04/06 17:08:56  ganter
+v1.16pre8
+cleanup of gpsd files
+
+Revision 1.24  2002/04/02 19:46:15  ganter
+v1.16pre4
+you can type in coordinates in the "Add waypoint" window (x-key)
+Autosave of configuration
+update spanish translation (translater had holiday)
+
+Revision 1.23  2002/04/01 22:32:04  ganter
+added garmin and serialdevice in setup
+
+Revision 1.22  2002/03/31 18:11:07  ganter
+v1.15-pre5
+you can select your "way*.txt" file in setup menu
+The DEFAUL entry in way.txt is now obsolet
+The "setdefaultpos" entry in gpsdricerc in now obsolet
+
+Revision 1.21  2002/03/30 20:07:33  ganter
+2nd pre 1.15
+
+Revision 1.20  2002/03/30 10:37:43  ganter
+pre 1.15
+
+Revision 1.19  2002/03/24 17:45:26  ganter
+v1.14 some cosmetic changes
+
+Revision 1.18  2002/03/22 00:36:40  ganter
+bugfix for late gpsd start
+remembering last position if setdefaultpos = 0 in gpsdriverc
+
+Revision 1.17  2002/03/21 21:49:08  ganter
+added question if gpsd should be started.
+Thanks to daZwerg(gEb-Dude) for suggestion.
+
+Revision 1.16  2002/03/16 20:21:07  ganter
+fixed segfault if no gpsdriverc exists. New v1.11
+
+Revision 1.15  2002/03/16 19:17:59  ganter
+v1.11
+
+Revision 1.14  2002/02/26 15:34:17  ganter
+added x key for set waypoint on actual position
+
+Revision 1.13  2002/02/24 22:26:41  ganter
+new v1.9, added shortcuts
+
+Revision 1.12  2002/02/24 16:40:37  ganter
+v1.9
+
+Revision 1.11  2002/02/18 01:50:39  ganter
+changed help text
+
+Revision 1.10  2001/10/14 10:41:59  ganter
+v0.32 correct path for prefix other than /usr/local
+
+Revision 1.9  2001/10/13 23:04:56  ganter
+corrected paths for locale and pixmap, ./configure --prefix= works now as
+expected
+
+Revision 1.8  2001/09/30 18:45:27  ganter
+v0.29
+added choice of map type
+
+Revision 1.7  2001/09/30 15:54:32  ganter
+added minimap, removed gpsdrivelogo
+
+Revision 1.6  2001/09/28 15:43:56  ganter
+v0.28 changed layout, some bugfixes
+
+Revision 1.5  2001/08/29 19:05:20  ganter
+trying splashfile also in current dir
+
+Revision 1.4  2001/08/29 13:59:56  ganter
+removed large xpm file, load png instead
+
+Revision 1.3  2001/08/26 15:49:09  ganter
+indent
+
+Revision 1.2  2001/08/26 15:47:19  ganter
+works fine
+
+Revision 1.1  2001/08/26 15:03:15  ganter
+added splash.c
+
+*/
+#include <unistd.h>
+#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
+#include <config.h>
+#include <gpsdrive.h>
+#include <time.h>
+#include <talogo.h>
+
+/*  Defines for gettext I18n */
+# include <libintl.h>
+# define _(String) gettext(String)
+# ifdef gettext_noop
+#  define N_(String) gettext_noop(String)
+# else
+#  define N_(String) (String)
+# endif
+
+
+extern GtkWidget *mainwindow;
+GtkWidget *splash_window;
+extern gchar homedir[500], mapdir[500];
+extern gint wpflag, trackflag, muteflag, displaymap_top, displaymap_map;
+extern gint scaleprefered, milesflag, nauticflag, metricflag, sqlflag;
+extern gint debug, scalewanted, savetrack, defaultserver;
+extern gchar serialdev[80];
+extern gdouble current_long, current_lat, old_long, old_lat, groundspeed;
+extern gint setdefaultpos, shadow, etch, testgarmin, needtosave, usedgps,
+  simfollow;
+extern gchar activewpfile[200];
+extern gdouble milesconv;
+extern gint satposmode, printoutsats, minsecmode, nightmode, cpuload;
+/* extern gint flymode, vfr,disdevwarn; */
+gint flymode = FALSE, vfr = 1, disdevwarn = TRUE;
+extern gint pdamode;
+extern gint real_screen_x, real_screen_y, real_psize, real_smallmenu,
+  int_padding, lastnotebook;
+#define MAXDBNAME 30
+extern char dbhost[MAXDBNAME], dbuser[MAXDBNAME], dbpass[MAXDBNAME];
+extern char dbtable[MAXDBNAME], dbname[MAXDBNAME];
+extern char dbwherestring[5000];
+extern char dbtypelist[100][40];
+extern double dbdistance;
+extern int dbusedist, needreminder;
+extern gint earthmate, havefriends, zone;
+extern gchar wplabelfont[100], bigfont[100];
+extern char friendsserverip[20], friendsname[40], friendsidstring[40],
+  friendsserverfqn[255];
+extern long int maxfriendssecs;
+extern gchar bluecolor[40], trackcolor[40], friendscolor[40];
+extern int messagenumber;
+extern int sockfd, serialspeed, disableserial, showsid, storetz;
+extern int sound_direction, sound_distance, sound_speed, sound_gps;
+extern enum
+{ english, german, spanish }
+voicelang;
+
+#define KM2MILES 0.62137119
+#define KM2NAUTIC  0.54
+#define PADDING int_padding
+
+
+gint
+splashaway_cb (GtkWidget * widget, gpointer datum)
+{
+
+
+  gtk_widget_destroy (splash_window);
+
+  return (FALSE);
+}
+
+
+static void
+create_tags (GtkTextBuffer * buffer)
+{
+  gtk_text_buffer_create_tag (buffer, "heading",
+			      "weight", PANGO_WEIGHT_BOLD,
+			      "size", 12 * PANGO_SCALE, NULL);
+
+  gtk_text_buffer_create_tag (buffer, "italic",
+			      "style", PANGO_STYLE_ITALIC, NULL);
+
+  gtk_text_buffer_create_tag (buffer, "bold",
+			      "weight", PANGO_WEIGHT_BOLD, NULL);
+
+  gtk_text_buffer_create_tag (buffer, "big",
+			      /* points times the PANGO_SCALE factor */
+			      "size", 20 * PANGO_SCALE, NULL);
+
+
+  gtk_text_buffer_create_tag (buffer, "blue_foreground",
+			      "foreground", "blue", NULL);
+
+  gtk_text_buffer_create_tag (buffer, "red_foreground",
+			      "foreground", "red", NULL);
+
+  gtk_text_buffer_create_tag (buffer, "not_editable",
+			      "editable", FALSE, NULL);
+
+  gtk_text_buffer_create_tag (buffer, "word_wrap",
+			      "wrap_mode", GTK_WRAP_WORD, NULL);
+
+  gtk_text_buffer_create_tag (buffer, "center",
+			      "justification", GTK_JUSTIFY_CENTER, NULL);
+
+  gtk_text_buffer_create_tag (buffer, "underline",
+			      "underline", PANGO_UNDERLINE_SINGLE, NULL);
+
+}
+
+static void
+insert_text (GtkTextBuffer * buffer)
+{
+  GtkTextIter iter;
+  GtkTextIter start, end;
+
+  /* demo_find_file() looks in the the current directory first,
+   * so you can run gtk-demo without installing GTK, then looks
+   * in the location where the file is installed.
+   */
+  /* get start of buffer; each insertion will revalidate the
+   * iterator to point to just after the inserted text.
+   */
+  gtk_text_buffer_get_iter_at_offset (buffer, &iter, 0);
+
+
+  gtk_text_buffer_insert_with_tags_by_name (buffer, &iter, _("GpsDrive v"),
+					    -1, "heading", NULL);
+  gtk_text_buffer_insert_with_tags_by_name (buffer, &iter, VERSION, -1,
+					    "heading", NULL);
+  gtk_text_buffer_insert (buffer, &iter,
+			  _
+			  ("\n\nYou find new versions on http://www.gpsdrive.cc\n"),
+			  -1);
+  gtk_text_buffer_insert_with_tags_by_name (buffer, &iter,
+					    _
+					    ("Disclaimer: Please do not use for navigation. \n\n"),
+					    -1, "red_foreground", NULL);
+
+  gtk_text_buffer_insert_with_tags_by_name (buffer, &iter,
+					    _
+					    ("Please have a look into the manpage (man gpsdrive) for program details!"),
+					    -1, "italic", NULL);
+  gtk_text_buffer_insert (buffer, &iter, "\n\n", -1);
+  gtk_text_buffer_insert_with_tags_by_name (buffer, &iter,
+					    _
+					    ("Mouse control (clicking on the map):\n"),
+					    -1, "blue_foreground", NULL);
+
+  gtk_text_buffer_insert (buffer, &iter, "\n", -1);
+  gchar *t1 =
+    _
+    ("Left mouse button         : Set position (usefull in simulation mode)\n"
+     "Right mouse button        : Set target directly on the map\n"
+     "Middle mouse button       : Display position again\n"
+     "Shift left mouse button   : smaller map\n"
+     "Shift right mouse button  : larger map\n"
+     "Control left mouse button : Set a waypoint (mouse position) on the map\n"
+     "Control right mouse button: Set a waypoint at current position on the map\n\n");
+
+  gchar *t2 = _("j    : switch to next waypoint in route mode\n"
+		"x    : add waypoint at current position\n"
+		"y    : add waypoint at mouse cursor position\n");
+  gtk_text_buffer_insert (buffer, &iter, t1, -1);
+
+  gtk_text_buffer_insert_with_tags_by_name (buffer, &iter,
+					    _("Short cuts:\n"), -1,
+					    "blue_foreground", NULL);
+  gtk_text_buffer_insert (buffer, &iter, "\n", -1);
+  gtk_text_buffer_insert (buffer, &iter, t2, -1);
+  gtk_text_buffer_insert (buffer, &iter, "\n", -1);
+
+  gtk_text_buffer_insert (buffer, &iter,
+			  _("The other key shortcuts are marked as "), -1);
+  gtk_text_buffer_insert_with_tags_by_name (buffer, &iter, _("underlined"),
+					    -1, "underline", NULL);
+  gtk_text_buffer_insert (buffer, &iter, _(" letters in the button text.\n"),
+			  -1);
+  gchar *t3 =
+    _("Press the underlined key together with the ALT-key.\n\n"
+      "You can move on the map by selecting the Position-Mode"
+      " in the menu. A blue rectangle shows this mode, you can set this cursor by clicking on the map."
+      " If you click on the border of the map (the outer 20%) then the map switches to the next area.\n\n"
+      "Suggestions welcome.\n\n");
+  gtk_text_buffer_insert (buffer, &iter, t3, -1);
+  gtk_text_buffer_insert_with_tags_by_name (buffer, &iter,
+					    _("Have a lot of fun!"), -1,
+					    "big", NULL);
+  gtk_text_buffer_insert (buffer, &iter, "\n", -1);
+
+
+  /* Apply word_wrap tag to whole buffer */
+  gtk_text_buffer_get_bounds (buffer, &start, &end);
+  gtk_text_buffer_apply_tag_by_name (buffer, "not_editable", &start, &end);
+  gtk_text_buffer_apply_tag_by_name (buffer, "word_wrap", &start, &end);
+
+
+}
+
+
+gint
+help_cb (GtkWidget * widget, guint datum)
+{
+  static GtkWidget *window = NULL;
+  GtkWidget *vpaned, *knopf;
+  GtkWidget *view1;
+  GtkWidget *sw, *vbox;
+/*   GtkTextBuffer *buffer;  */
+  GtkTextBuffer *buffer;
+
+
+
+  window = gtk_dialog_new ();
+  gtk_window_set_default_size (GTK_WINDOW (window), 580, 570);
+  gtk_window_set_transient_for (GTK_WINDOW (window), GTK_WINDOW (mainwindow));
+
+  g_signal_connect (window, "destroy",
+		    G_CALLBACK (gtk_widget_destroyed), &window);
+
+  gtk_window_set_title (GTK_WINDOW (window), "GpsDrive Help");
+  gtk_container_set_border_width (GTK_CONTAINER (window), 5);
+
+  vpaned = gtk_vpaned_new ();
+  gtk_container_set_border_width (GTK_CONTAINER (vpaned), 5);
+
+  vbox = gtk_vbox_new (FALSE, 3);
+/*   gtk_container_add (GTK_CONTAINER (window), vbox); */
+  gtk_box_pack_start (GTK_BOX
+		      (GTK_DIALOG (window)->vbox), vbox, TRUE, TRUE, 2);
+
+  gtk_box_pack_start (GTK_BOX (vbox), vpaned, TRUE, TRUE, 3);
+
+  /* For convenience, we just use the autocreated buffer from
+   * the first text view; you could also create the buffer
+   * by itself with gtk_text_buffer_new(), then later create
+   * a view widget.
+   */
+  view1 = gtk_text_view_new ();
+  buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (view1));
+/*       view2 = gtk_text_view_new_with_buffer (buffer); */
+
+
+  sw = gtk_scrolled_window_new (NULL, NULL);
+  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw),
+				  GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
+  gtk_paned_add1 (GTK_PANED (vpaned), sw);
+
+  gtk_container_add (GTK_CONTAINER (sw), view1);
+
+  sw = gtk_scrolled_window_new (NULL, NULL);
+  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw),
+				  GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
+/*       gtk_paned_add2 (GTK_PANED (vpaned), sw); */
+
+/*       gtk_container_add (GTK_CONTAINER (sw), view2); */
+
+
+  create_tags (buffer);
+  insert_text (buffer);
+
+
+
+  knopf = gtk_button_new_from_stock (GTK_STOCK_CLOSE);
+  gtk_signal_connect_object (GTK_OBJECT (knopf), "clicked",
+			     GTK_SIGNAL_FUNC
+			     (gtk_widget_destroy), GTK_OBJECT (window));
+/*   gtk_box_pack_start (GTK_BOX (vbox), knopf, FALSE, FALSE, 5); */
+  gtk_box_pack_start (GTK_BOX
+		      (GTK_DIALOG (window)->action_area),
+		      knopf, TRUE, TRUE, 2);
+
+
+  gtk_widget_show_all (vpaned);
+
+  gtk_widget_show_all (window);
+
+  return TRUE;
+
+}
+
+
+static void
+reminder_create_tags (GtkTextBuffer * buffer)
+{
+
+  gtk_text_buffer_create_tag (buffer, "heading",
+			      "weight", PANGO_WEIGHT_BOLD,
+			      "size", 12 * PANGO_SCALE, NULL);
+
+  gtk_text_buffer_create_tag (buffer, "bold",
+			      "weight", PANGO_WEIGHT_BOLD, NULL);
+
+  gtk_text_buffer_create_tag (buffer, "not_editable",
+			      "editable", FALSE, NULL);
+
+  gtk_text_buffer_create_tag (buffer, "word_wrap",
+			      "wrap_mode", GTK_WRAP_WORD, NULL);
+
+}
+
+static void
+reminder_insert_text (GtkTextBuffer * buffer)
+{
+  GtkTextIter iter;
+  GtkTextIter start, end;
+
+  /* demo_find_file() looks in the the current directory first,
+   * so you can run gtk-demo without installing GTK, then looks
+   * in the location where the file is installed.
+   */
+  /* get start of buffer; each insertion will revalidate the
+   * iterator to point to just after the inserted text.
+   */
+  gtk_text_buffer_get_iter_at_offset (buffer, &iter, 0);
+
+
+  gtk_text_buffer_insert_with_tags_by_name (buffer, &iter,
+					    _("Please donate to GpsDrive"),
+					    -1, "heading", NULL);
+
+
+  gtk_text_buffer_insert (buffer, &iter,
+			  _
+			  ("\n\nGpsDrive is a project with no comercial background. \n\n"
+			   "It would be nice if you can give a donation to help me pay the costs for hardware and the webserver.\n\nTo do so, just go to"),
+			  -1);
+  gtk_text_buffer_insert_with_tags_by_name (buffer, &iter,
+					    _(" http://www.gpsdrive.cc "), -1,
+					    "bold", NULL);
+  gtk_text_buffer_insert (buffer, &iter,
+			  _("and click on the PayPal button.\n\n"
+			    "Thank you very much for your donation!\n\n"
+			    "This message is only displayed once when you start an new version of GpsDrive.\n\n"),
+			  -1);
+
+  /* Apply word_wrap tag to whole buffer */
+  gtk_text_buffer_get_bounds (buffer, &start, &end);
+  gtk_text_buffer_apply_tag_by_name (buffer, "not_editable", &start, &end);
+  gtk_text_buffer_apply_tag_by_name (buffer, "word_wrap", &start, &end);
+
+
+}
+
+
+gint
+reminder_cb (GtkWidget * widget, guint datum)
+{
+  static GtkWidget *window = NULL;
+  GtkWidget *vpaned, *knopf2;
+  GtkWidget *view1;
+  GtkWidget *sw;
+/*   GtkTextBuffer *buffer;  */
+  GtkTextBuffer *buffer;
+
+
+
+  window = gtk_dialog_new ();
+  gtk_window_set_default_size (GTK_WINDOW (window), 380, 380);
+  gtk_window_set_transient_for (GTK_WINDOW (window), GTK_WINDOW (mainwindow));
+
+  g_signal_connect (window, "destroy",
+		    G_CALLBACK (gtk_widget_destroyed), &window);
+
+  gtk_window_set_title (GTK_WINDOW (window), _("About GpsDrive donation"));
+  gtk_container_set_border_width (GTK_CONTAINER (window), 0);
+
+  vpaned = gtk_vpaned_new ();
+  gtk_container_set_border_width (GTK_CONTAINER (vpaned), 5);
+
+  gtk_box_pack_start (GTK_BOX
+		      (GTK_DIALOG (window)->vbox), vpaned, TRUE, TRUE, 2);
+
+  /* For convenience, we just use the autocreated buffer from
+   * the first text view; you could also create the buffer
+   * by itself with gtk_text_buffer_new(), then later create
+   * a view widget.
+   */
+  view1 = gtk_text_view_new ();
+  buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (view1));
+/*       view2 = gtk_text_view_new_with_buffer (buffer); */
+
+
+  sw = gtk_scrolled_window_new (NULL, NULL);
+  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw),
+				  GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
+  gtk_paned_add1 (GTK_PANED (vpaned), sw);
+
+  gtk_container_add (GTK_CONTAINER (sw), view1);
+
+  sw = gtk_scrolled_window_new (NULL, NULL);
+  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw),
+				  GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
+/*       gtk_paned_add2 (GTK_PANED (vpaned), sw); */
+
+/*       gtk_container_add (GTK_CONTAINER (sw), view2); */
+
+
+  reminder_create_tags (buffer);
+  reminder_insert_text (buffer);
+
+
+/*       attach_widgets (GTK_TEXT_VIEW (view1)); */
+  knopf2 = gtk_button_new_from_stock (GTK_STOCK_OK);
+  gtk_signal_connect_object (GTK_OBJECT (knopf2), "clicked",
+			     GTK_SIGNAL_FUNC
+			     (gtk_widget_destroy), GTK_OBJECT (window));
+
+/*   gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (sw), knopf2); */
+  gtk_box_pack_start (GTK_BOX
+		      (GTK_DIALOG (window)->action_area),
+		      knopf2, TRUE, TRUE, 2);
+
+
+  gtk_widget_show_all (vpaned);
+
+  gtk_widget_show_all (window);
+
+  return TRUE;
+
+}
+
+gint
+message_cb (char *msgid, char *name, char *text, int fs)
+{
+  static GtkWidget *window = NULL;
+  GtkWidget *vpaned, *knopf2;
+  GtkWidget *view1;
+  GtkWidget *sw, *knopf, *vbox;
+/*   GtkTextBuffer *buffer;  */
+  GtkTextBuffer *buffer;
+  GtkTextIter iter;
+  GtkTextIter start, end;
+  gchar titlestr[60];
+  gchar buf[MAXMESG];
+
+  window = gtk_dialog_new ();
+  gtk_window_set_default_size (GTK_WINDOW (window), 320, 240);
+  gtk_window_set_transient_for (GTK_WINDOW (window), GTK_WINDOW (mainwindow));
+
+  g_signal_connect (window, "destroy",
+		    G_CALLBACK (gtk_widget_destroyed), &window);
+
+  g_snprintf (titlestr, sizeof (titlestr), "%s %s", _("From:"), name);
+  gtk_window_set_title (GTK_WINDOW (window), titlestr);
+  gtk_container_set_border_width (GTK_CONTAINER (window), 0);
+
+  vpaned = gtk_vpaned_new ();
+  gtk_container_set_border_width (GTK_CONTAINER (vpaned), 5);
+
+  vbox = gtk_vbox_new (FALSE, 3);
+  gtk_box_pack_start (GTK_BOX
+		      (GTK_DIALOG (window)->vbox), vbox, TRUE, TRUE, 2);
+
+
+  gtk_box_pack_start (GTK_BOX (vbox), vpaned, TRUE, TRUE, 3);
+
+
+  knopf = gtk_button_new_from_stock (GTK_STOCK_CLOSE);
+  gtk_signal_connect_object (GTK_OBJECT (knopf), "clicked",
+			     GTK_SIGNAL_FUNC
+			     (gtk_widget_destroy), GTK_OBJECT (window));
+  gtk_box_pack_start (GTK_BOX
+		      (GTK_DIALOG (window)->action_area),
+		      knopf, TRUE, TRUE, 2);
+
+
+  /* For convenience, we just use the autocreated buffer from
+   * the first text view; you could also create the buffer
+   * by itself with gtk_text_buffer_new(), then later create
+   * a view widget.
+   */
+  view1 = gtk_text_view_new ();
+  buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (view1));
+/*       view2 = gtk_text_view_new_with_buffer (buffer); */
+
+
+  sw = gtk_scrolled_window_new (NULL, NULL);
+  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw),
+				  GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
+  gtk_paned_add1 (GTK_PANED (vpaned), sw);
+
+  gtk_container_add (GTK_CONTAINER (sw), view1);
+
+  sw = gtk_scrolled_window_new (NULL, NULL);
+  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw),
+				  GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
+
+/*   reminder_create_tags (buffer); */
+/*   reminder_insert_text (buffer); */
+/*       attach_widgets (GTK_TEXT_VIEW (view1)); */
+
+  gtk_text_buffer_get_iter_at_offset (buffer, &iter, 0);
+  gtk_text_buffer_create_tag (buffer, "word_wrap",
+			      "wrap_mode", GTK_WRAP_WORD, NULL);
+  gtk_text_buffer_create_tag (buffer, "heading",
+			      "weight", PANGO_WEIGHT_BOLD,
+			      "size", 10 * PANGO_SCALE, NULL);
+
+  gtk_text_buffer_create_tag (buffer, "blue_foreground",
+			      "foreground", "blue", "weight",
+			      PANGO_WEIGHT_BOLD, "size", 10 * PANGO_SCALE,
+			      NULL);
+  gtk_text_buffer_create_tag (buffer, "red_foreground",
+			      "foreground", "red", "weight",
+			      PANGO_WEIGHT_BOLD, "size", 10 * PANGO_SCALE,
+			      NULL);
+  gtk_text_buffer_create_tag (buffer, "center",
+			      "justification", GTK_JUSTIFY_CENTER, NULL);
+  if (fs)
+    {
+      g_snprintf (buf, sizeof (buf),
+		  _("You received a message from\nthe friends server (%s)\n"),
+		  name);
+      gtk_text_buffer_insert_with_tags_by_name (buffer, &iter, buf, -1,
+						"heading", "center",
+						"red_foreground", NULL);
+    }
+  else
+    {
+      gtk_text_buffer_insert_with_tags_by_name (buffer, &iter,
+						_
+						("You received a message through the friends server from:\n"),
+						-1, "heading", "center",
+						NULL);
+      gtk_text_buffer_insert_with_tags_by_name (buffer, &iter, name, -1,
+						"blue_foreground", "center",
+						NULL);
+    }
+  gtk_text_buffer_insert (buffer, &iter, "\n\n", -1);
+  gtk_text_buffer_insert_with_tags_by_name (buffer, &iter,
+					    _
+					    ("Message text:\n"),
+					    -1, "heading", NULL);
+  gtk_text_buffer_insert (buffer, &iter, text, -1);
+  gtk_text_buffer_get_bounds (buffer, &start, &end);
+  gtk_text_buffer_apply_tag_by_name (buffer, "word_wrap", &start, &end);
+/*   gtk_text_iter_can_insert (&iter, FALSE); */
+
+  knopf2 = gtk_button_new_from_stock (GTK_STOCK_OK);
+
+  gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (sw), knopf2);
+
+
+  gtk_widget_show_all (vpaned);
+
+  gtk_window_set_position (GTK_WINDOW (window), GTK_WIN_POS_CENTER);
+
+  gtk_widget_show_all (window);
+  g_snprintf (buf, sizeof (buf), "ACK: %s", msgid);
+  if (debug)
+    fprintf (stderr, "\nsending to %s:\n%s\n", friendsserverip, buf);
+  sockfd = -1;
+  friends_sendmsg (friendsserverip, buf);
+  gdk_beep ();
+  switch (voicelang)
+    {
+    case english:
+      g_snprintf (buf, sizeof (buf),
+		  "You received a message from %s\n", name);
+      break;
+    case spanish:
+      g_snprintf (buf, sizeof (buf),
+		  "You received a message from %s\n", name);
+      break;
+    case german:
+      g_snprintf (buf, sizeof (buf),
+		  "Sie haben eine Nachricht von %s erhalten", name);
+    }
+  speech_out_speek (buf);
+
+  return TRUE;
+
+}
+
+
+/*  write the configurationfile ~/.gpsdrive/gpsdriverc */
+void
+writeconfig ()
+{
+  FILE *fp;
+  gchar fname[220], str[40];
+
+  g_strlcpy (fname, homedir, sizeof (fname));
+  g_strlcat (fname, "gpsdriverc", sizeof (fname));
+  fp = fopen (fname, "w");
+  if (fp == NULL)
+    {
+      perror (_("Error saving config file ~/.gpsdrive/gpsdriverc"));
+      return;
+    }
+
+  fprintf (fp, "showwaypoints = ");
+  if (wpflag)
+    fprintf (fp, "1\n");
+  else
+    fprintf (fp, "0\n");
+
+  fprintf (fp, "showtrack = ");
+  if (trackflag)
+    fprintf (fp, "1\n");
+  else
+    fprintf (fp, "0\n");
+
+  fprintf (fp, "mutespeechoutput = ");
+  if (muteflag)
+    fprintf (fp, "1\n");
+  else
+    fprintf (fp, "0\n");
+
+  fprintf (fp, "showtopomaps = ");
+  if (displaymap_top)
+    fprintf (fp, "1\n");
+  else
+    fprintf (fp, "0\n");
+
+  fprintf (fp, "showstreetmaps = ");
+  if (displaymap_map)
+    fprintf (fp, "1\n");
+  else
+    fprintf (fp, "0\n");
+
+  fprintf (fp, "autobestmap = ");
+  if (!scaleprefered)
+    fprintf (fp, "1\n");
+  else
+    fprintf (fp, "0\n");
+
+  fprintf (fp, "units = ");
+  if (milesflag)
+    fprintf (fp, "miles\n");
+  else
+    {
+      if (metricflag)
+	fprintf (fp, "metric\n");
+      else
+	fprintf (fp, "nautic\n");
+    }
+
+  fprintf (fp, "savetrack = ");
+  if (savetrack)
+    fprintf (fp, "1\n");
+  else
+    fprintf (fp, "0\n");
+
+  fprintf (fp, "scalewanted = %d\n", scalewanted);
+
+  fprintf (fp, "serialdevice = %s\n", serialdev);
+
+  g_snprintf (str, sizeof (str), "%.6f", current_long);
+  g_strdelimit (str, ",", '.');
+  fprintf (fp, "lastlong = %s\n", str);
+
+  g_snprintf (str, sizeof (str), "%.6f", current_lat);
+  g_strdelimit (str, ",", '.');
+  fprintf (fp, "lastlat = %s\n", str);
+
+  fprintf (fp, "shadow = ");
+  if (shadow)
+    fprintf (fp, "1\n");
+  else
+    fprintf (fp, "0\n");
+
+  fprintf (fp, "defaultserver = ");
+  if (defaultserver == 0)
+    fprintf (fp, "0\n");
+  else
+    fprintf (fp, "1\n");
+
+  fprintf (fp, "testgarminmode = ");
+  if (testgarmin == 0)
+    fprintf (fp, "0\n");
+  else
+    fprintf (fp, "1\n");
+
+  fprintf (fp, "waypointfile = ");
+  fprintf (fp, "%s\n", activewpfile);
+
+  fprintf (fp, "usedgps = ");
+  if (usedgps == 0)
+    fprintf (fp, "0\n");
+  else
+    fprintf (fp, "1\n");
+
+  fprintf (fp, "mapdir = ");
+  fprintf (fp, "%s\n", mapdir);
+
+  fprintf (fp, "simfollow = ");
+  if (simfollow == 0)
+    fprintf (fp, "0\n");
+  else
+    fprintf (fp, "1\n");
+
+  fprintf (fp, "satposmode = ");
+  if (satposmode == 0)
+    fprintf (fp, "0\n");
+  else
+    fprintf (fp, "1\n");
+
+  fprintf (fp, "printoutsats = ");
+  if (printoutsats == 0)
+    fprintf (fp, "0\n");
+  else
+    fprintf (fp, "1\n");
+
+  fprintf (fp, "minsecmode = ");
+  if (minsecmode == 0)
+    fprintf (fp, "0\n");
+  else
+    fprintf (fp, "1\n");
+
+  fprintf (fp, "nightmode = ");
+  fprintf (fp, "%d\n", nightmode);
+
+  fprintf (fp, "cpuload = %d\n", cpuload);
+
+  fprintf (fp, "flymode = ");
+  if (flymode == 0)
+    fprintf (fp, "0\n");
+  else
+    fprintf (fp, "1\n");
+
+  fprintf (fp, "vfr = ");
+  fprintf (fp, "%d\n", vfr);
+
+  fprintf (fp, "disdevwarn = ");
+  if (disdevwarn == 0)
+    fprintf (fp, "0\n");
+  else
+    fprintf (fp, "1\n");
+
+  fprintf (fp, "sqlflag = ");
+  if (sqlflag == 0)
+    fprintf (fp, "0\n");
+  else
+    fprintf (fp, "1\n");
+  fprintf (fp, "lastnotebook = ");
+  fprintf (fp, "%d\n", lastnotebook);
+
+  fprintf (fp, "dbhostname = %s\n", dbhost);
+  fprintf (fp, "dbname = %s\n", dbname);
+  fprintf (fp, "dbuser = %s\n", dbuser);
+  fprintf (fp, "dbpass = %s\n", dbpass);
+  fprintf (fp, "dbtable = %s\n", dbtable);
+  fprintf (fp, "dbdistance = %.1f\n", dbdistance);
+  fprintf (fp, "dbusedist = %d\n", dbusedist);
+  fprintf (fp, "dbwherestring = %s\n", dbwherestring);
+  fprintf (fp, "earthmate = %d\n", earthmate);
+  fprintf (fp, "wplabelfont = %s\n", wplabelfont);
+  fprintf (fp, "bigfont = %s\n", bigfont);
+  fprintf (fp, "friendsserverip = %s\n", friendsserverip);
+  fprintf (fp, "friendsserverfqn = %s\n", friendsserverfqn);
+  fprintf (fp, "friendsname = %s\n", friendsname);
+  fprintf (fp, "friendsidstring = %s\n", friendsidstring);
+  fprintf (fp, "usefriendsserver = %d\n", havefriends);
+  fprintf (fp, "maxfriendssecs = %ld\n", maxfriendssecs);
+  fprintf (fp, "reminder = %s\n", VERSION);
+  fprintf (fp, "storetz = %d\n", storetz);
+  if (storetz)
+    fprintf (fp, "timezone = %d\n", zone);
+  fprintf (fp, "etch = %d\n", etch);
+  fprintf (fp, "bigcolor = %s\n", bluecolor);
+  fprintf (fp, "trackcolor = %s\n", trackcolor);
+  fprintf (fp, "friendscolor = %s\n", friendscolor);
+  fprintf (fp, "messagenumber = %d\n", messagenumber);
+  fprintf (fp, "serialspeed = %d\n", serialspeed);
+  fprintf (fp, "disableserial = %d\n", disableserial);
+  fprintf (fp, "showssid = %d\n", showsid);
+  fprintf (fp, "sound_direction = %d\n", sound_direction);
+  fprintf (fp, "sound_distance = %d\n", sound_distance);
+  fprintf (fp, "sound_speed = %d\n", sound_speed);
+  fprintf (fp, "sound_gps = %d\n", sound_gps);
+
+
+  fclose (fp);
+  needtosave = FALSE;
+}
+
+/*  read the configurationfile ~/.gpsdrive/gpsdriverc */
+void
+readconfig ()
+{
+  FILE *fp;
+  gchar fname[220], par1[40], par2[1000], buf[1000];
+  gint e;
+
+  g_strlcpy (fname, homedir, sizeof (fname));
+  g_strlcat (fname, "gpsdriverc", sizeof (fname));
+  fp = fopen (fname, "r");
+  if (fp == NULL)
+    return;
+
+  if (debug)
+    g_print ("reading config file...\n");
+
+  while ((fgets (buf, 1000, fp)) > 0)
+    {
+      g_strlcpy (par1, "", sizeof (par1));
+      g_strlcpy (par2, "", sizeof (par2));
+      e = sscanf (buf, "%s = %[^\n]", par1, par2);
+
+      if (debug)
+	g_print ("%d [%s] = [%s]\n", e, par1, par2);
+
+      if (e == 2)
+	{
+	  if ((strcmp (par1, "showwaypoints")) == 0)
+	    wpflag = atoi (par2);
+
+	  if ((strcmp (par1, "showtrack")) == 0)
+	    trackflag = atoi (par2);
+
+	  if ((strcmp (par1, "mutespeechoutput")) == 0)
+	    muteflag = atoi (par2);
+
+	  if ((strcmp (par1, "showtopomaps")) == 0)
+	    displaymap_top = atoi (par2);
+
+	  if ((strcmp (par1, "showstreetmaps")) == 0)
+	    displaymap_map = atoi (par2);
+
+/*  To set the right sensitive flags bestmap_cb is called later*/
+	  if ((strcmp (par1, "autobestmap")) == 0)
+	    scaleprefered = !(atoi (par2));
+
+
+	  if ((strcmp (par1, "units")) == 0)
+	    {
+	      milesflag = metricflag = nauticflag = FALSE;
+	      if ((strcmp (par2, "miles")) == 0)
+		{
+		  milesflag = TRUE;
+		  milesconv = KM2MILES;
+		}
+	      else
+		{
+		  if ((strcmp (par2, "metric")) == 0)
+		    {
+		      metricflag = TRUE;
+		      milesconv = 1.0;
+		    }
+		  else if ((strcmp (par2, "nautic")) == 0)
+		    {
+		      nauticflag = TRUE;
+		      milesconv = KM2NAUTIC;
+		    }
+		}
+	    }
+
+	  if ((strcmp (par1, "savetrack")) == 0)
+	    savetrack = atoi (par2);
+
+	  if ((strcmp (par1, "scalewanted")) == 0)
+	    scalewanted = atoi (par2);
+
+	  if ((strcmp (par1, "serialdevice")) == 0)
+	    g_strlcpy (serialdev, par2, sizeof (serialdev));
+
+	  if ((strcmp (par1, "lastlong")) == 0)
+	    current_long = g_strtod (par2, 0);
+
+	  if ((strcmp (par1, "lastlat")) == 0)
+	    current_lat = g_strtod (par2, 0);
+
+/*        if ((strcmp (par1, "setdefaultpos")) == 0) */
+/*  	setdefaultpos = atoi (par2); */
+
+	  if ((strcmp (par1, "shadow")) == 0)
+	    shadow = atoi (par2);
+
+	  if ((strcmp (par1, "defaultserver")) == 0)
+	    defaultserver = atoi (par2);
+
+	  if ((strcmp (par1, "waypointfile")) == 0)
+	    g_strlcpy (activewpfile, par2, sizeof (activewpfile));
+
+	  if ((strcmp (par1, "testgarminmode")) == 0)
+	    testgarmin = atoi (par2);
+
+	  if ((strcmp (par1, "usedgps")) == 0)
+	    usedgps = atoi (par2);
+
+	  if ((strcmp (par1, "mapdir")) == 0)
+	    g_strlcpy (mapdir, par2, sizeof (mapdir));
+
+	  if ((strcmp (par1, "simfollow")) == 0)
+	    simfollow = atoi (par2);
+
+	  if ((strcmp (par1, "satposmode")) == 0)
+	    satposmode = atoi (par2);
+
+	  if ((strcmp (par1, "printoutsats")) == 0)
+	    printoutsats = atoi (par2);
+
+	  if ((strcmp (par1, "minsecmode")) == 0)
+	    minsecmode = atoi (par2);
+
+	  if ((strcmp (par1, "nightmode")) == 0)
+	    nightmode = atoi (par2);
+
+	  if ((strcmp (par1, "cpuload")) == 0)
+	    cpuload = atoi (par2);
+
+	  if ((strcmp (par1, "flymode")) == 0)
+	    flymode = atoi (par2);
+
+	  if ((strcmp (par1, "vfr")) == 0)
+	    vfr = atoi (par2);
+
+	  if ((strcmp (par1, "disdevwarn")) == 0)
+	    disdevwarn = atoi (par2);
+
+	  if ((strcmp (par1, "sqlflag")) == 0)
+	    sqlflag = atoi (par2);
+
+	  if ((strcmp (par1, "lastnotebook")) == 0)
+	    lastnotebook = atoi (par2);
+
+	  if ((strcmp (par1, "dbhostname")) == 0)
+	    {
+	      g_strlcpy (dbhost, par2, sizeof (dbhost));
+	      g_strstrip (dbhost);
+	    }
+	  if ((strcmp (par1, "dbname")) == 0)
+	    g_strlcpy (dbname, par2, sizeof (dbname));
+	  if ((strcmp (par1, "dbuser")) == 0)
+	    g_strlcpy (dbuser, par2, sizeof (dbuser));
+
+	  if ((strcmp (par1, "dbpass")) == 0)
+	    g_strlcpy (dbpass, par2, sizeof (dbpass));
+
+	  if ((strcmp (par1, "dbtable")) == 0)
+	    g_strlcpy (dbtable, par2, sizeof (dbtable));
+
+	  if ((strcmp (par1, "dbname")) == 0)
+	    g_strlcpy (dbname, par2, sizeof (dbname));
+
+	  if ((strcmp (par1, "dbdistance")) == 0)
+	    dbdistance = g_strtod (par2, 0);
+
+	  if ((strcmp (par1, "dbusedist")) == 0)
+	    dbusedist = atoi (par2);
+
+	  if ((strcmp (par1, "dbwherestring")) == 0)
+	    {
+	      if (e == 2)
+		g_strlcpy (dbwherestring, par2, sizeof (dbwherestring));
+	    }
+
+	  if ((strcmp (par1, "earthmate")) == 0)
+	    earthmate = atoi (par2);
+
+	  if ((strcmp (par1, "wplabelfont")) == 0)
+	    g_strlcpy (wplabelfont, par2, sizeof (wplabelfont));
+
+	  if ((strcmp (par1, "bigfont")) == 0)
+	    g_strlcpy (bigfont, par2, sizeof (bigfont));
+	  if ((strcmp (par1, "friendsserverip")) == 0)
+	    g_strlcpy (friendsserverip, par2, sizeof (friendsserverip));
+	  if ((strcmp (par1, "friendsserverfqn")) == 0)
+	    g_strlcpy (friendsserverfqn, par2, sizeof (friendsserverfqn));
+
+	  if ((strcmp (par1, "friendsname")) == 0)
+	    g_strlcpy (friendsname, par2, sizeof (friendsname));
+	  if ((strcmp (par1, "friendsidstring")) == 0)
+	    g_strlcpy (friendsidstring, par2, sizeof (friendsidstring));
+	  if ((strcmp (par1, "usefriendsserver")) == 0)
+	    havefriends = atoi (par2);
+	  if ((strcmp (par1, "maxfriendssecs")) == 0)
+	    maxfriendssecs = atoi (par2);
+	  if ((strcmp (par1, "reminder")) == 0)
+	    if ((strcmp (par2, VERSION)) == 0)
+	      {
+		needreminder = FALSE;
+/* 		  fprintf(stderr,"needreminder false\n"); */
+	      }
+	  if ((strcmp (par1, "storetz")) == 0)
+	    storetz = atoi (par2);
+	  if (storetz)
+	    if ((strcmp (par1, "timezone")) == 0)
+	      zone = atoi (par2);
+	  if ((strcmp (par1, "etch")) == 0)
+	    etch = atoi (par2);
+	  if ((strcmp (par1, "bigcolor")) == 0)
+	    g_strlcpy (bluecolor, par2, sizeof (bluecolor));
+	  if ((strcmp (par1, "trackcolor")) == 0)
+	    g_strlcpy (trackcolor, par2, sizeof (trackcolor));
+	  if ((strcmp (par1, "friendscolor")) == 0)
+	    g_strlcpy (friendscolor, par2, sizeof (friendscolor));
+	  if ((strcmp (par1, "messagenumber")) == 0)
+	    messagenumber = atoi (par2);
+	  if ((strcmp (par1, "serialspeed")) == 0)
+	    serialspeed = atoi (par2);
+	  if ((strcmp (par1, "disableserial")) == 0)
+	    disableserial = atoi (par2);
+	  if ((strcmp (par1, "showssid")) == 0)
+	    showsid = atoi (par2);
+	  if ((strcmp (par1, "sound_direction")) == 0)
+	    sound_direction = atoi (par2);
+	  if ((strcmp (par1, "sound_distance")) == 0)
+	    sound_distance = atoi (par2);
+	  if ((strcmp (par1, "sound_speed")) == 0)
+	    sound_speed = atoi (par2);
+	  if ((strcmp (par1, "sound_gps")) == 0)
+	    sound_gps = atoi (par2);
+
+
+
+	}			/* if e==2 */
+    }
+
+  if (debug)
+    g_print ("\nreading config file finished\n");
+  fclose (fp);
+}
+
+
+GtkWidget *
+getPixmapFromFile (GtkWidget * widget, const gchar * filename)
+{
+  GtkWidget *pixmap;
+  GdkColormap *colormap;
+  GdkPixmap *gdkpixmap;
+  GdkBitmap *mask;
+
+  if (!filename || !filename[0])
+    return NULL;
+
+  colormap = gtk_widget_get_colormap (widget);
+  gdkpixmap = gdk_pixmap_colormap_create_from_xpm (NULL, colormap, &mask,
+						   NULL, filename);
+  if (gdkpixmap == NULL)
+    {
+      printf ("**** couldn't create pixmap from file: '%s'\n", filename);
+      return NULL;
+    }
+
+  pixmap = gtk_pixmap_new (gdkpixmap, mask);
+  gdk_pixmap_unref (gdkpixmap);
+  gdk_bitmap_unref (mask);
+  return pixmap;
+}
+
+
+GtkWidget *
+getPixmapFromXpm (GtkWidget * widget, gchar ** xpmname)
+{
+  GtkWidget *pixmap;
+  GdkColormap *colormap;
+  GdkPixmap *gdkpixmap;
+  GdkBitmap *mask;
+
+  if (!xpmname || !xpmname[0])
+    return NULL;
+
+  colormap = gtk_widget_get_colormap (widget);
+  gdkpixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, colormap, &mask,
+						     NULL, xpmname);
+  if (gdkpixmap == NULL)
+    {
+      printf ("**** couldn't create pixmap from xpm: '%s'\n", *xpmname);
+      return NULL;
+    }
+
+  pixmap = gtk_pixmap_new (gdkpixmap, mask);
+  gdk_pixmap_unref (gdkpixmap);
+  gdk_bitmap_unref (mask);
+  return pixmap;
+}
+
+void
+splash (void)
+{
+  gchar xpmfile[400];
+  GtkWidget *pixmap = NULL;
+
+
+  g_snprintf (xpmfile, sizeof (xpmfile), "%s/gpsdrive/%s", DATADIR,
+	      "gpsdrivesplash.png");
+
+  splash_window = gtk_window_new (GTK_WINDOW_POPUP);
+
+
+  gtk_window_set_title (GTK_WINDOW (splash_window), "gpsdrive");
+  gtk_window_set_position (GTK_WINDOW (splash_window), GTK_WIN_POS_CENTER);
+
+  gtk_widget_realize (splash_window);
+  gdk_window_set_decorations (GTK_WIDGET (splash_window)->window, 0);
+
+/*   gtk_widget_realize (splash_window);  */
+
+  /* get image */
+  pixmap = getPixmapFromFile (splash_window, xpmfile);
+
+  if (pixmap != NULL)
+    {
+      gtk_pixmap_set (GTK_PIXMAP (pixmap),
+		      GTK_PIXMAP (pixmap)->pixmap, GTK_PIXMAP (pixmap)->mask);
+    }
+  else
+    {
+      fprintf (stderr,
+	       _
+	       ("\nWarning: unable to open splash picture\nPlease install the program as root with:\nmake install\n\n"));
+      return;
+    }
+/*   gtk_widget_show (splash_window);  */
+
+
+  gtk_container_add (GTK_CONTAINER (splash_window), pixmap);
+  gtk_widget_shape_combine_mask (splash_window, GTK_PIXMAP (pixmap)->mask, 0,
+				 0);
+
+
+  gtk_widget_show (pixmap);
+  gtk_widget_show (splash_window);
+  while (gtk_events_pending ())
+    gtk_main_iteration ();
+
+  gtk_timeout_add (3000, (GtkFunction) splashaway_cb, NULL);
+}
+
+
+gint
+about_cb (GtkWidget * widget, guint datum)
+{
+  static GtkWidget *window = NULL;
+  GtkWidget *knopf, *vbox;
+  gchar xpmfile[400], s3[800];
+  GtkWidget *pixmap = NULL, *label1, *label2;
+#ifdef USETELEATLAS
+  GtkWidget *pixmap2 = NULL;
+#endif
+
+
+  g_snprintf (xpmfile, sizeof (xpmfile), "%s/gpsdrive/%s", DATADIR,
+	      "gpsdrivemini.png");
+
+
+  window = gtk_dialog_new ();
+
+  gtk_window_set_transient_for (GTK_WINDOW (window), GTK_WINDOW (mainwindow));
+
+  g_signal_connect (window, "destroy",
+		    G_CALLBACK (gtk_widget_destroyed), &window);
+
+  gtk_window_set_title (GTK_WINDOW (window), _("About GpsDrive"));
+  gtk_container_set_border_width (GTK_CONTAINER (window), 5);
+/*   gtk_window_set_position (GTK_WINDOW (window), GTK_WIN_POS_CENTER); */
+
+
+  pixmap = getPixmapFromFile (window, xpmfile);
+
+  if (pixmap != NULL)
+    {
+      gtk_pixmap_set (GTK_PIXMAP (pixmap),
+		      GTK_PIXMAP (pixmap)->pixmap, GTK_PIXMAP (pixmap)->mask);
+    }
+  else
+    {
+      fprintf (stderr,
+	       _
+	       ("\nWarning: unable to open splash picture\nPlease install the program as root with:\nmake install\n\n"));
+      return TRUE;
+    }
+
+
+  vbox = gtk_vbox_new (FALSE, 3);
+/*   gtk_container_add (GTK_CONTAINER (window), vbox); */
+  gtk_box_pack_start (GTK_BOX
+		      (GTK_DIALOG (window)->vbox), vbox, TRUE, TRUE, 2);
+
+  gtk_box_pack_start (GTK_BOX (vbox), pixmap, TRUE, TRUE, 3);
+  label1 = gtk_label_new ("");
+  g_snprintf (s3, sizeof (s3),
+	      "<span color=\"NavyBlue\" font_desc=\"%s\">GpsDrive %s\n\n</span><span color=\"black\" font_desc=\"%s\">Copyright \xc2\xa9 2001-2004\nby Fritz Ganter (ganter at ganter.at)\n\nURL: http://www.gpsdrive.cc\n</span>",
+	      "sans bold 16", VERSION, "sans italic 10");
+  gtk_label_set_markup (GTK_LABEL (label1), s3);
+  gtk_box_pack_start (GTK_BOX (vbox), label1, TRUE, TRUE, 3);
+
+#ifdef USETELEATLAS
+  pixmap2 = getPixmapFromXpm (window, logo_teleatlas_xpm);
+
+  gtk_box_pack_start (GTK_BOX (vbox), pixmap2, TRUE, TRUE, 3);
+#endif
+
+
+  label2 = gtk_label_new ("");
+  g_snprintf (s3, sizeof (s3),
+	      "<span color=\"black\" font_desc=\"%s\">This program is free software; you can redistribute\nit and/or modify it under the terms of the\nGNU General Public License as published by\nthe Free Software Foundation; either version 2\nof the License, or (at your option) any later version.\n</span>",
+	      "sans normal 8");
+
+  gtk_label_set_markup (GTK_LABEL (label2), s3);
+  gtk_box_pack_start (GTK_BOX (vbox), label2, TRUE, TRUE, 3);
+
+
+  knopf = gtk_button_new_from_stock (GTK_STOCK_CLOSE);
+  GTK_WIDGET_SET_FLAGS (knopf, GTK_CAN_DEFAULT);
+  gtk_signal_connect_object (GTK_OBJECT (knopf), "clicked",
+			     GTK_SIGNAL_FUNC
+			     (gtk_widget_destroy), GTK_OBJECT (window));
+/*   gtk_box_pack_start (GTK_BOX (vbox), knopf, FALSE, FALSE, 3); */
+  gtk_box_pack_start (GTK_BOX
+		      (GTK_DIALOG (window)->action_area),
+		      knopf, TRUE, TRUE, 2);
+
+  gtk_widget_show_all (window);
+
+  return TRUE;
+
+}
+
+/* writes time and position to /tmp/gpsdrivepos */
+
+void
+signalposreq ()
+{
+  FILE *f;
+  time_t t;
+  struct tm *ts;
+
+  f = fopen ("/tmp/gpsdrivepos", "w");
+  if (f == NULL)
+    {
+      perror ("/tmp/gpsdrivepos");
+      return;
+    }
+  time (&t);
+  ts = localtime (&t);
+  fprintf (f, asctime (ts));
+  fprintf (f, "POS %f %f\n", current_lat, current_long);
+  fclose (f);
+}

Added: packages/gpsdrive/branches/etch/src/talogo.h
===================================================================
--- packages/gpsdrive/branches/etch/src/talogo.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/talogo.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,172 @@
+/* XPM */
+static char * logo_teleatlas_xpm[] = {
+"141 53 116 2",
+"  	c None",
+". 	c #FFFFFF",
+"+ 	c #6A6A6A",
+"@ 	c #6C6C6C",
+"# 	c #828282",
+"$ 	c #C3C3C3",
+"% 	c #FEFEFE",
+"& 	c #E8E8E8",
+"* 	c #EEEEEE",
+"= 	c #959595",
+"- 	c #DEDEDE",
+"; 	c #D5D5D5",
+"> 	c #8B8B8B",
+", 	c #6E6E6E",
+"' 	c #707070",
+") 	c #939393",
+"! 	c #E1E1E1",
+"~ 	c #898989",
+"{ 	c #B2B2B2",
+"] 	c #FAFAFA",
+"^ 	c #BFBFBF",
+"/ 	c #E6E6E6",
+"( 	c #EDEDED",
+"_ 	c #F4F4F4",
+": 	c #A6A6A6",
+"< 	c #767676",
+"[ 	c #6B6B6B",
+"} 	c #818181",
+"| 	c #BEBEBE",
+"1 	c #DCDCDC",
+"2 	c #858585",
+"3 	c #D3D3D3",
+"4 	c #838383",
+"5 	c #C8C8C8",
+"6 	c #C7C7C7",
+"7 	c #848484",
+"8 	c #CDCDCD",
+"9 	c #989898",
+"0 	c #8E8E8E",
+"a 	c #BCBCBC",
+"b 	c #DBDBDB",
+"c 	c #C9C9C9",
+"d 	c #DFDFDF",
+"e 	c #717171",
+"f 	c #797979",
+"g 	c #757575",
+"h 	c #6F6F6F",
+"i 	c #E5E5E5",
+"j 	c #B1B1B1",
+"k 	c #929292",
+"l 	c #A0A0A0",
+"m 	c #C6C6C6",
+"n 	c #FCFCFC",
+"o 	c #888888",
+"p 	c #7C7C7C",
+"q 	c #8F8F8F",
+"r 	c #ADADAD",
+"s 	c #D8D8D8",
+"t 	c #727272",
+"u 	c #6D6D6D",
+"v 	c #D2D2D2",
+"w 	c #CACACA",
+"x 	c #F6F6F6",
+"y 	c #EAEAEA",
+"z 	c #737373",
+"A 	c #666666",
+"B 	c #F0F0F0",
+"C 	c #969696",
+"D 	c #919191",
+"E 	c #A2A2A2",
+"F 	c #FDFDFD",
+"G 	c #9D9D9D",
+"H 	c #DADADA",
+"I 	c #A7A7A7",
+"J 	c #A9A9A9",
+"K 	c #FBFBFB",
+"L 	c #D0D0D0",
+"M 	c #9C9C9C",
+"N 	c #8A8A8A",
+"O 	c #9B9B9B",
+"P 	c #F7F7F7",
+"Q 	c #F5F5F5",
+"R 	c #BBBBBB",
+"S 	c #F3F3F3",
+"T 	c #EBEBEB",
+"U 	c #777777",
+"V 	c #9F9F9F",
+"W 	c #7A7A7A",
+"X 	c #CFCFCF",
+"Y 	c #D7D7D7",
+"Z 	c #E9E9E9",
+"` 	c #D1D1D1",
+" .	c #B9B9B9",
+"..	c #8D8D8D",
+"+.	c #D4D4D4",
+"@.	c #C5C5C5",
+"#.	c #808080",
+"$.	c #A1A1A1",
+"%.	c #E7E7E7",
+"&.	c #AAAAAA",
+"*.	c #AEAEAE",
+"=.	c #A3A3A3",
+"-.	c #F9F9F9",
+";.	c #B6B6B6",
+">.	c #878787",
+",.	c #787878",
+"'.	c #B7B7B7",
+").	c #909090",
+"!.	c #E2E2E2",
+"~.	c #CBCBCB",
+"{.	c #BDBDBD",
+"].	c #F1F1F1",
+"^.	c #E4E4E4",
+"/.	c #B4B4B4",
+"(.	c #7D7D7D",
+"_.	c #979797",
+". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ",
+". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ",
+". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ",
+". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ",
+". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ",
+". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ",
+". . . . . . . + + + + + @ # $ % . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . & + + . . . . . . + + & . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ",
+". . . . . . . + + + + + + + + $ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . & + + . . . . . . + + & . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ",
+". . . . . . . + + & . % * = + # . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . & + + . . . . . . + + & . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ",
+". . . . . . . + + & . . . - + @ . . . ; > , ' ) ! . . ~ + { . ] @ + ^ . / + + ( _ : < [ } | % . . + + 1 = 2 . _ : < [ } | % . . . 3 4 @ 2 5 + + . . . . . . + + 6 7 @ # 8 . . 9 + 0 . . . } + a . . . . . . . . . . . . . . . . . . . . . . . b = c . . . . . . . . . . . . . . . . . . . ",
+". . . . . . . + + & . . . d + e . . 3 [ + f g + h i . j + k . - + + l . m + } n o + p q h + r . . + + 4 + 4 n o + p q h + r . . s [ + t h u + + . . . . . . + + u h t + + v . w + @ x . * + + ( . . . . . . . . . . . . . . . . . . . . . . y z A + y . . . . . . . . . . . . . . . . . . ",
+". . . . . . . + + & . % B C + D . . 7 + E F ] q + G . H + t % ^ + u } . I + J 8 + 4 K . / + [ B . + + 4 L ! 8 + 4 K . / + [ B . ~ + M K x N + + . . . . . . + + > x K O + o . P h + 8 . m + o . . . . . . . . . . . . . . . . . . . . . . . Q + A A R . . . . . . . . . . . . . . . . . . ",
+". . . . . . . + + + + + + + [ s . S + + T . . 3 + U . K ' + / V u O + P o + v J + h W W W + + X . + + Y . . J + h W W W + + X _ + + Z . . ` + + . . . . . . + + 3 . . & + + x . O + E . G +  .. . . . . . . . . . . . . . . . . . . . . . . . { A ..y . . . . . . b E ..E 3 y y . . . . . ",
+". . . . . . . + + U W W W ..+.. . & + + F . . i + [ . . = + @.#.N | + ; u @ P $.+ + + + + + + $ . + + %.. . $.+ + + + + + + $ Z + + F . . i + + . . . . . . + + i . . n + + Z . X + U F < + y . . . . . . . . . . . . . . . . . . . . . . . 3 + A E . . . . . Q J A A A A A A = . . . . . ",
+". . . . . . . + + & . . . . . . . S + + T . . 3 + < . . | + O + &.1 + O + ... *.+ $.. . . . . . . + + & . . *.+ $.. . . . . . x + + y . . 3 + + . . . . . . + + 3 . . Z + + Q . ] e + @.+ 2 . . . . . . . . . . . . . . . . . . . . . . . Q p A A A $ . . . c p A A A A A 4 8 . . . . . . ",
+". . . . . . . + + & . . . . . . . . 4 + =.% ] 0 + M . . / + @ + w -.[ @ + ;.. +.+ p x . Z >.2 ( . + + & . . +.+ p x . Z >.2 ( . >.+ G K x > + + . . . . . . + + > P K O + ~ . . . V + ,.+ '.. . . . . . . . . . . . . . . . . . . . . . * ..A + + 8 4 = $ ..A A A A 4 M 3 F . . . . . . . ",
+". . . . . . . + + & . . . . . . . . v [ + f g + ' / . . % f + + T . 7 + + - . F 0 + U ).' + I . . + + & . . F 0 + U ).' + I . . ` + + t h + + + . . . . . . + + @ h t + [ Y . . . v + + + %.. . . . . . . . . . . . . . . . . . . . . Q p A p b = E R A A A A p J y ] . . . . . . . . . . ",
+". . . . . . . + + & . . . . . . . . . +.N u h ) !.. . . . E + g % . E + z F . . x I U @ # ^ % . . + + & . . . x I U @ # ^ % . . . ~.} [ #.{.+ + . . . . . . + + m 4 [ # ` . . . . K z + 4 . . . . . . . . . . . . . . . . . F ].^.^.8 { A A { Q = A A A A p $ Q . . . . . . . . . . . . . ",
+". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 + /.. . . . . . . . . . . . . . ] b E 4 z A A A A A A z c A A A p $ ] . . . . . . . . . . . . . . . ",
+". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . n & g + ^.. . . . . . . . . . . . y { p A A A A A A A A A A A ..+ + { ] . . . . . . . . . . . . . . . . . ",
+". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E + + >.% . . . . . . . . . . b = + A A A A A A A A A A A A A A 4 ^.. . . . . . . . . . . . . . . . . . . ",
+". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . *.(._.%.. . . . . . . . . 3 ..A A A A A A A A A A A + + A A A = Q . . . . . . . . . . . . . . . . . . . . ",
+". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . b = A A A A A A A A A A A A A + $ p A M F . . . . . . . . . . . . . . . . . . . . . ",
+". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ] 3 = A A A A A A A A A A A A A A A A 4 3 { . . . . . . . . . . . . . . . . . . . . . . . ",
+". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F * b c J p A A A A A A A A A A A A A A A A A A A = . . . . . . . . . . . . . . . . . . . . . . . . ",
+". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ] M A A A A A A + ..A A A A A A A A A A A A A A A A R . . . . . . . . . . . . . . . . . . . . . . . ",
+". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . y $ { = z A A J $ + A A A A A A A A A A A A A A + y . . . . . . . . . . . . . . . . . . . . . . ",
+". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Q ^.$ $ . c A A A A A A A A A A A A A A A ..F . . . . . . . . . . . . . . . . . . . . . ",
+". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . R A A A A A A A A A A A A A A A { . . . . . . . . . . . . . . . . . . . . . ",
+". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . R A A A A A A A A A A A A A A A 3 . . . . . . . . . . . . . . . . . . . . ",
+". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 ..z A A A A A A A A A A A A z * . . . . . . . . . . . . . . . . . . . ",
+". . . . . ].* * * * * * * * * * y ] . . . . . . . . . . ] * * F . . . . . . . . . . . . . . . . . . . . . . . F * * ] . . . . . . Q y Q . . . . . F * * F . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . R A A A A A A A A A A A A A 4 ] . . . . . . . . . . . . . . . . . . ",
+". . . . . p A A A A + + + A A A A J . . . . . . . . . . 8 + + y . . . . . . . . . . . . . . . . . . . . . . . E + + M . . . . . . 4 + E . . . . . 8 + + y . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 J $ ..A + A A A A A A A A A = . . . . . . . . . . . . . . . . . . ",
+". . . . . E ........+ A z ........8 . . . . . . . . . . c A A y . . . . . . . . . . . . . . . . . . . . . . * + A A + * . . . . . p A M . . . . . 8 A A y . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . z p ..A + A A A A A A A A E . . . . . . . . . . . . . . . . . ",
+". . . . . . . . . ] z A J . . . . . . ].^.^.Q . . . . . c A A y . . . . . ].^.^.].. . . . . . . . . . . . . R A J p A R . . . ] Q p A M ] Q Q ] . 8 A A y . . . . Q * ^.^.* F . . . . . F b 8 8 b Q . . . . . . . . . . . . = R = A M A p A A A A A A A E F . . . . . . . . . . . . . . . ",
+". . . . . . . . . ].z A E . . . . b ..+ A A z = ^.. . . c A A y . . . ^.= z A A + ..b . . . . . . . . . . F p + y J A 4 F . . { z + A + z z z J . 8 A A y . . c = z A A A + 4 3 . . . b 4 A A A A z 3 . . . . . . . . . . . Q ] J z $ A { A 4 + + + A A A ..* . . . . . . . . . . . . . . ",
+". . . . . . . . . ].z A E . . . c + A 4 J E z A + b . . c A A y . . b + A p J J p A + 8 . . . . . . . . . b A 4 . 3 A A ^.. . $ ..+ A z = ....R . 8 A A y . F p A z M J E z A + y . Q z A p R R M A R . . . . . . . . . . . . . * J b A $ A E z + = A z p A z 3 . . . . . . . . . . . . . ",
+". . . . . . . . . ].z A E . . * z A { . . . Q ..A 4 ] . c A A y . ] z A M ] . . F M A z Q . . . . . . . . E A R . F z A J . . . . p A M . . . . . 8 A A y . F R 3 F . . . ^.+ A $ . 3 A A 3 . . . ^.y . . . . . . . . . . . . . . . F 4 b 4 ..J A { ..A { E A A = 3 . . . . . . . . . . . ",
+". . . . . . . . . ].z A E . . { A 4 . . . . . ^.A A b . c A A y . c A z . . . . . Q z A 8 . . . . . . . Q + + y . . J A z ] . . . p A M . . . . . 8 A A y . . . . . . . . b + A c . 8 A A E ] . . . . . . . . . . . . . . . . . . . . Q F b + b z p y p A 3 ^.= A A z J 3 Q . . . . . . . ",
+". . . . . . . . . ].z A E . . ..A z = = = = = ..A A $ . c A A y . E A z = = = = = = + A { . . . . . . . $ A = . . . y + A 8 . . . p A M . . . . . 8 A A y . . . . . ^.R 4 + A A c . ].z A A 4 8 F . . . . . . . . . . . . . . . . . . . . . ^.Q ^.z { Q = A { F * 3 { M M y . . . . . . . ",
+". . . . . . . . . ].z A E . . 4 A A A A A A A A + + R . c A A y . = A A A A A A A A + + { . . . . . . . 4 A p ........+ A = . . . p A M . . . . . 8 A A y . . F 8 4 A A z = + A c . . b p A A A 4 b . . . . . . . . . . . . . . . . . . . . . . . ] b . . b E 8 . . . . . . . . . . . . . ",
+". . . . . . . . . ].z A E . . 4 A = ^.^.^.^.^.^.^.^.] . c A A y . = A 4 ^.^.^.^.^.^.^.^.] . . . . . . ^.A A + + + + + + A + * . . p A M . . . . . 8 A A y . Q ..A A E 3 ] Q + A c . . . Q { z A A z ^.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ",
+". . . . . . . . . ].z A E . . M A p . . . . . . . . . . c A A y . J A + Q . . . . . . . . . . . . . . E A M . . . . . y + A R . . p A M . . . . . 8 A A y . { A + b . . . y + A c . . . . . Q E A A M . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ",
+". . . . . . . . . ].z A E . . 3 A A R . . . . . . ] . . c A A y . b A A E . . . . . . Q . . . . . . Q z A 3 . . . . . . ..A 4 . . p A = . . . . . 8 A A y . = A z . . . . * + A c . . . . . . . z A ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ",
+". . . . . . . . . ].z A E . . F = A A E b * ^.$ 4 M . . c A A y . . E A A M b * ^.8 ..... . . . . . c A p ] . . . . . . $ A A b . ..A + b * 3 3 . 8 A A y . J A A R y * b M A A c . $ J ^.] ] 8 + A J . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ",
+". . . . . . . . . * + A M . . . ] M A A A + A A A J . . c A A y . . F J + A A + A A A = . . . . . F 4 A J . . . . . . . ].+ A M . 3 + A A + A = . c A A y . Q ..A A + + A A A A $ . E A A p z A A p * . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ",
+". . . . . . . . . ] $ R b . . . . . ^.R E = E $ b . . . y R R Q . . . . ^.R E = E R b F . . . . . ] $ R * . . . . . . . . 8 R c F . ^.{ = M R y . y R R Q . . ] 8 J = M R ^.c R y . y { ..z z 4 { Q . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ",
+". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ",
+". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ",
+". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ",
+". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ",
+". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ",
+". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . "};

Added: packages/gpsdrive/branches/etch/src/tm.c
===================================================================
--- packages/gpsdrive/branches/etch/src/tm.c	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/tm.c	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,123 @@
+#include "config.h"
+#include <stdio.h>
+#include <unistd.h>
+#include <time.h>
+#include <fcntl.h>
+#include <string.h>
+#include <syslog.h>
+#include "gpsd.h"
+#include "nmea.h"
+
+
+struct OUTDATA gNMEAdata;
+
+extern char *latitude;
+extern char *longitude;
+
+extern int debug;
+extern int device_type;
+extern char latd;
+extern char lond;
+
+void do_eminit ();
+
+
+void process_message(char *sentence)
+{
+    char *message = sentence + 1;
+
+    if (checksum(sentence)) {
+	if (strncmp(GPGSV, message, 5) == 0) {
+	    processGPGSV(message);
+	} else if (strncmp(GPGLL, message, 5) == 0) {
+		processGPGLL(message);
+	} else if (strncmp(GPGGA, message, 5) == 0) {
+	    processGPGGA(message);
+	} else if (strncmp(GPRMC, message, 5) == 0) {
+	    processGPRMC(message);
+	} else if (strncmp(GPGSA, message, 5) == 0) {
+	    processGPGSA(message);
+	} else if (strncmp(PRWIZCH, message, 7) == 0) {
+	    processPRWIZCH(message);
+	} else {
+	    if (debug > 1) {
+		fprintf(stderr, "Unknown sentence: \"%s\"\n",
+			sentence);
+	    }
+	}
+    }
+}
+
+void send_init()
+{
+    char buf[82];
+    time_t t;
+    struct tm *tm;
+
+    if (latitude && longitude) {
+	t = time(NULL);
+	tm = gmtime(&t);
+
+	sprintf(buf,
+		"$PRWIINIT,V,,,%s,%c,%s,%c,100.0,0.0,M,0.0,T,%02d%02d%02d,%02d%02d%02d*",
+		latitude, latd, longitude, lond,
+		tm->tm_hour, tm->tm_min, tm->tm_sec,
+		tm->tm_mday, tm->tm_mon + 1, tm->tm_year);
+	add_checksum(buf + 1);	/* add c-sum + cr/lf */
+	write(gNMEAdata.fdout, buf, strlen(buf));
+	if (debug > 1) {
+	    fprintf(stderr, "Sending: %s", buf);
+	}
+    }
+}
+
+void do_init()
+{
+    static int count = 0;
+
+    count++;
+
+    if (count == 2) {
+	count = 0;
+	send_init();
+    }
+}
+
+void process_exception(char *sentence)
+{
+    if (strncmp("ASTRAL", sentence, 6) == 0 && isatty(gNMEAdata.fdout)) {
+	write(gNMEAdata.fdout, "$IIGPQ,ASTRAL*73\r\n", 18);
+	syslog(LOG_NOTICE, "Found a TripMate, initializing...");
+	do_init();
+    } else if ((strncmp("EARTHA", sentence, 6) == 0 
+		&& isatty(gNMEAdata.fdout))) {
+	write(gNMEAdata.fdout, "EARTHA\r\n", 8);
+	device_type = DEVICE_EARTHMATEb;
+	syslog(LOG_NOTICE, "Found an EarthMate (id).");
+	do_eminit();
+    } else if (debug > 1) {
+	fprintf(stderr, "Unknown exception: \"%s\"\n",
+		sentence);
+    }
+}
+
+void handle_message(char *sentence)
+{
+    if (debug > 5)
+	fprintf(stderr, "%s\n", sentence);
+    if (*sentence == '$')
+	process_message(sentence);
+    else
+	process_exception(sentence);
+
+    if (debug > 2) {
+	fprintf(stderr,
+		"Lat: %f Lon: %f Alt: %f Sat: %d Mod: %d Time: %s\n",
+		gNMEAdata.latitude,
+		gNMEAdata.longitude,
+		gNMEAdata.altitude,
+		gNMEAdata.satellites,
+		gNMEAdata.mode,
+		gNMEAdata.utc);
+    }
+}

Added: packages/gpsdrive/branches/etch/src/top_GPSWORLD.jpg
===================================================================
(Binary files differ)


Property changes on: packages/gpsdrive/branches/etch/src/top_GPSWORLD.jpg
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: packages/gpsdrive/branches/etch/src/track.c
===================================================================
--- packages/gpsdrive/branches/etch/src/track.c	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/track.c	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,375 @@
+/***********************************************************************
+
+Copyright (c) 2001-2004 Fritz Ganter <ganter at ganter.at>
+
+Website: www.gpsdrive.de
+
+Disclaimer: Please do not use for navigation.
+
+    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
+
+*********************************************************************/
+/*
+$Log: track.c,v $
+Revision 1.18  2004/02/08 17:16:25  ganter
+replacing all strcat with g_strlcat to avoid buffer overflows
+
+Revision 1.17  2004/02/07 17:46:10  ganter
+...
+
+Revision 1.16  2004/02/05 19:47:31  ganter
+replacing strcpy with g_strlcpy to avoid bufferoverflows
+USB receiver does not send sentences in direct serial mode,
+so I first send a "\n" to it
+
+Revision 1.15  2004/02/02 03:38:32  ganter
+code cleanup
+
+Revision 1.14  2004/01/20 17:39:19  ganter
+working on import function
+
+Revision 1.13  2004/01/17 06:11:04  ganter
+added color setting for track color
+
+Revision 1.12  2004/01/01 09:07:33  ganter
+v2.06
+trip info is now live updated
+added cpu temperature display for acpi
+added tooltips for battery and temperature
+
+Revision 1.11  2003/05/31 20:12:35  ganter
+new UDP friendsserver build in, needs some work
+
+*/
+
+
+/*
+ * Track support module: display, disk loading/saving.
+ */
+
+#include <stdio.h>
+#include <string.h>
+#include <sys/stat.h>
+#include "gpsdrive.h"
+#include "track.h"
+#include "config.h"
+
+extern gint maploaded;
+extern gint trackflag;
+extern gint importactive;
+extern glong tracknr, tracklimit, trackcoordlimit;
+extern glong trackcoordnr;
+extern trackcoordstruct *trackcoord;
+extern gint zoom;
+extern GdkSegment *track;
+extern GdkSegment *trackshadow;
+
+extern gint showroute, routeitems;
+typedef struct
+{
+  gchar name[40];
+  gdouble lat;
+  gdouble longitude;
+  gdouble dist;
+  gchar typ[40];
+  gint wlan;
+  gint action;
+  gint sqlnr;
+}
+wpstruct;
+
+extern wpstruct *routelist;
+extern GdkColor blue;
+extern gint nightmode, isnight, disableisnight;
+extern GdkColor red;
+extern GdkColor black;
+extern GdkColor white;
+extern GdkColor blue;
+extern GdkColor nightcolor;
+extern GdkColor trackcolorv;
+
+
+/*  if zoom, xoff, yoff or map are changed */
+void
+rebuildtracklist (void)
+{
+  gdouble posxdest, posydest;
+  gint i, so;
+
+  if (!maploaded)
+    return;
+
+  if (!trackflag)
+    return;
+  if (importactive)
+    return;
+
+  tracknr = 0;
+  for (i = 0; i < trackcoordnr; i++)
+    {
+      calcxy (&posxdest, &posydest, (trackcoord + i)->longi,
+	      (trackcoord + i)->lat, zoom);
+
+/* 	    if even  */
+/*       if ((tracknr & 1) == 0)  */
+      if (tracknr == 0)
+	{
+	  if ((trackcoord + i)->longi < 1000.0)
+	    {
+	      (track + tracknr)->x1 = posxdest;
+	      (track + tracknr)->y1 = posydest;
+	      (trackshadow + tracknr)->x1 = posxdest + SHADOWOFFSET;
+	      (trackshadow + tracknr)->y1 = posydest + SHADOWOFFSET;
+	      tracknr++;
+	    }
+	}
+      else
+	{
+	  if ((trackcoord + i)->longi < 1000.0)
+	    {
+	      if ((posxdest > -50) && (posxdest < (SCREEN_X + 50))
+		  && (posydest > -50) && (posydest < (SCREEN_Y + 50)))
+		{
+		  if ((posxdest != (track + tracknr - 1)->x2)
+		      || (posydest != (track + tracknr - 1)->y2))
+		    {
+/*  		so=(int)(((trackcoord + i)->alt))>>5; */
+		      so = SHADOWOFFSET;
+
+		      (track + tracknr)->x1 = (track + tracknr - 1)->x2 =
+			posxdest;
+		      (track + tracknr)->y1 = (track + tracknr - 1)->y2 =
+			posydest;
+		      (trackshadow + tracknr)->x1 =
+			(trackshadow + tracknr - 1)->x2 = posxdest + so;
+		      (trackshadow + tracknr)->y1 =
+			(trackshadow + tracknr - 1)->y2 = posydest + so;
+		      tracknr += 1;
+		    }
+		}
+	    }
+	  else
+	    tracknr = tracknr & ((glong) - 2);
+	}
+
+    }
+
+}
+
+
+/* draw track on image */
+void
+drawtracks (void)
+{
+  gint t;
+  GdkSegment *routes;
+
+  gdouble posxdest, posydest;
+  gint i, j;
+
+/*    if (!maploaded) */
+/*      return; */
+  if (!trackflag)
+    return;
+  if (importactive)
+    return;
+  if (showroute)
+    {
+      if (routeitems > 0)
+	{
+	  i = (routeitems + 5);
+	  routes = g_new0 (GdkSegment, i);
+
+	  for (j = 0; j <= routeitems; j++)
+	    {
+	      calcxy (&posxdest, &posydest, (routelist + j)->longitude,
+		      (routelist + j)->lat, zoom);
+
+	      if (j > 0)
+		{
+		  (routes + j - 1)->x2 = posxdest;
+		  (routes + j - 1)->y2 = posydest;
+		}
+	      (routes + j)->x1 = posxdest;
+	      (routes + j)->y1 = posydest;
+	    }
+	  t = routeitems - 1;
+	  gdk_gc_set_line_attributes (kontext, 4, GDK_LINE_ON_OFF_DASH, 0, 0);
+
+	  gdk_gc_set_foreground (kontext, &blue);
+	  gdk_draw_segments (drawable, kontext, (GdkSegment *) routes, t);
+	  g_free (routes);
+	}
+    }
+  t = 2 * (tracknr >> 1) - 1;
+/*     t=tracknr;  */
+  if (t < 1)
+    return;
+
+
+  gdk_gc_set_line_attributes (kontext, 4, 0, 0, 0);
+  if (shadow)
+    {
+      gdk_gc_set_foreground (kontext, &darkgrey);
+      gdk_gc_set_function (kontext, GDK_AND);
+      gdk_draw_segments (drawable, kontext, (GdkSegment *) trackshadow, t);
+      gdk_gc_set_function (kontext, GDK_COPY);
+    }
+  if ((!disableisnight)
+      && ((nightmode == 1) || ((nightmode == 2) && isnight)))
+    gdk_gc_set_foreground (kontext, &red);
+  else
+    gdk_gc_set_foreground (kontext, &trackcolorv);
+
+  gdk_draw_segments (drawable, kontext, (GdkSegment *) track, t);
+
+  return;
+
+}
+
+
+/* stores the track into a file, if argument testname is true, no saving is 
+   done, only savetrackfn is set */
+void
+savetrackfile (gint testname)
+{
+  struct stat sbuf;
+  gchar buff[1024];
+  gint e, i;
+  gchar mappath[400], lat[30], alt[30], longi[30];
+  FILE *st;
+
+  if (testname)
+    {
+      i = 0;
+      do
+	{
+	  g_snprintf (buff, sizeof (buff), "%strack%04d.sav", homedir, i++);
+	  e = stat (buff, &sbuf);
+	}
+      while (e == 0);
+      g_strlcpy (savetrackfn, g_basename (buff), sizeof (savetrackfn));
+      return;
+    }
+
+/* save in new file */
+  g_strlcpy (mappath, homedir, sizeof (mappath));
+  g_strlcat (mappath, savetrackfn, sizeof(mappath));
+  st = fopen (mappath, "w");
+  if (st == NULL)
+    {
+      perror (mappath);
+      return;
+    }
+
+  for (i = 0; i < trackcoordnr; i++)
+    {
+      g_snprintf (lat, sizeof (lat), "%10.6f", (trackcoord + i)->lat);
+      g_strdelimit (lat, ",", '.');
+      g_snprintf (longi, sizeof (longi), "%10.6f", (trackcoord + i)->longi);
+      g_strdelimit (longi, ",", '.');
+      g_snprintf (alt, sizeof (alt), "%10.0f", (trackcoord + i)->alt);
+
+      fprintf (st, "%s %s %s %s\n", lat, longi, alt,
+	       (trackcoord + i)->postime);
+    }
+  fclose (st);
+
+/* append to existing backup file */
+  g_strlcpy (mappath, homedir, sizeof (mappath));
+  g_strlcat (mappath, "track-ALL.sav", sizeof(mappath));
+  st = fopen (mappath, "a");
+  if (st == NULL)
+    {
+      perror (mappath);
+      return;
+    }
+
+  for (i = 0; i < trackcoordnr; i++)
+    {
+      g_snprintf (lat, sizeof (lat), "%10.6f", (trackcoord + i)->lat);
+      g_strdelimit (lat, ",", '.');
+      g_snprintf (longi, sizeof (longi), "%10.6f", (trackcoord + i)->longi);
+      g_strdelimit (longi, ",", '.');
+      g_snprintf (alt, sizeof (alt), "%10.0f", (trackcoord + i)->alt);
+
+      fprintf (st, "%s %s %s %s\n", lat, longi, alt,
+	       (trackcoord + i)->postime);
+    }
+  fclose (st);
+
+}
+
+
+gint
+gettrackfile (GtkWidget * widget, gpointer datum)
+{
+  gchar *fn, buf[520], lat[30], longi[30], alt[30], str[30];
+  FILE *st;
+  gint i;
+
+  fn = gtk_file_selection_get_filename (datum);
+  st = fopen (fn, "r");
+  if (st == NULL)
+    {
+      perror (fn);
+      return TRUE;
+    }
+  g_free (trackcoord);
+  g_free (track);
+  g_free (trackshadow);
+  track = g_new (GdkSegment, 100000);
+  trackshadow = g_new (GdkSegment, 100000);
+  tracknr = 0;
+  tracklimit = 100000;
+  trackcoord = g_new (trackcoordstruct, 100000);
+  trackcoordnr = 0;
+  trackcoordlimit = 100000;
+  i = 0;
+  while (fgets (buf, 512, st))
+    {
+      sscanf (buf, "%s %s %s %[^\n]", lat, longi, alt, str);
+      g_strlcpy ((trackcoord + i)->postime, str, 30);
+      (trackcoord + i)->lat = g_strtod (lat, NULL);
+      (trackcoord + i)->longi = g_strtod (longi, NULL);
+      (trackcoord + i)->alt = g_strtod (alt, NULL);
+      i++;
+      trackcoordnr++;
+
+      if ((trackcoordnr * 2) > (trackcoordlimit - 1000))
+	{
+	  trackcoord =
+	    g_renew (trackcoordstruct, trackcoord, trackcoordlimit + 100000);
+	  trackcoordlimit += 100000;
+	  track = g_renew (GdkSegment, track, tracklimit + 100000);
+	  trackshadow =
+	    g_renew (GdkSegment, trackshadow, tracklimit + 100000);
+	  tracklimit += 100000;
+	}
+
+
+    }
+  (trackcoord + i)->lat = 1001.0;
+  (trackcoord + i)->longi = 1001.0;
+
+  trackcoordnr++;
+
+  rebuildtracklist ();
+  fclose (st);
+  gtk_widget_destroy (datum);
+  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (trackbt), TRUE);
+
+  return TRUE;
+}

Added: packages/gpsdrive/branches/etch/src/track.h
===================================================================
--- packages/gpsdrive/branches/etch/src/track.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/track.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,58 @@
+/***********************************************************************
+
+Copyright (c) 2001,2002 Fritz Ganter <ganter at ganter.at>
+
+Website: www.kraftvoll.at/software
+
+Disclaimer: Please do not use for navigation.
+
+    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
+
+*********************************************************************/
+/*
+$Log: track.h,v $
+Revision 1.3  2003/05/31 20:12:35  ganter
+new UDP friendsserver build in, needs some work
+
+*/
+
+
+#ifndef GPSDRIVE_TRACK_H
+#define GPSDRIVE_TRACK_H
+
+/*
+ * See track.c for details.
+ */
+
+#include <gtk/gtk.h>
+
+
+
+typedef struct
+{
+  gdouble longi;
+  gdouble lat;
+  gdouble alt;
+  gchar postime[30];
+}
+trackcoordstruct;
+
+void savetrackfile (gint testname);
+void rebuildtracklist (void);
+void drawtracks (void);
+gint gettrackfile (GtkWidget *widget, gpointer datum);
+
+
+#endif /* GPSDRIVE_TRACK_H */

Added: packages/gpsdrive/branches/etch/src/version.h
===================================================================
--- packages/gpsdrive/branches/etch/src/version.h	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/version.h	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,6 @@
+#ifndef _VERSION_H
+#define _VERSION_H
+
+#define GPSDVERSION  "1.06b"
+
+#endif

Added: packages/gpsdrive/branches/etch/src/wpcvt
===================================================================
--- packages/gpsdrive/branches/etch/src/wpcvt	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/wpcvt	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,106 @@
+#!/usr/bin/perl -w
+# Converts Garmin data from garble for gpsdrive
+# by Ned Konz <ned at bike-nomad.com> 
+# Sun Feb 17 10:48:09 PST 2002
+#
+# This is licensed under the GPL
+#
+# Usage:
+# wpcvt file [...] > output
+# or:
+# wpcvt < file > output
+#
+# If converting tracks, will name output files like:
+# track2001Oct7_191800.sav
+
+# garble -r
+# four fields, last blank or comment
+# ELIOT  / 47.95, -122.31 / 
+# Routes have blank lines separating them.
+# converted to waypoint format:
+# 1_ELIOT  47.95 -122.31
+
+# garble -t
+# three fields
+# 47.8544, -122.424 / Sun Oct  7 19:18:00 2001
+# converted to track format:
+# 47.8544 -122.424 Sun Oct  7 19:18:00 2001
+# tracks have blank lines between them
+# Each separate track will be in a track file
+# named using the datestamp of the first point.
+
+# garble -w
+# four fields, last non-blank (comment)
+# 004    / 48.1638, -122.516 / 11-FEB-02 19:24
+# converted to:
+# DEFAUL    48.2893 -122.226 
+
+# garble -x
+# id / dist / lat, long / comment
+# 
+
+my $type        = undef;
+my $routeNumber = 1;
+my $lineNumber  = 0;       # within group
+
+while (<>)
+{
+	chomp;
+
+	if (/^$/)
+	{
+		$routeNumber++;
+		$lineNumber = 0;
+		next;
+	}
+
+	if ( $. == 1 )    # first line of new file?
+	{
+		print STDERR "now processing $ARGV\n";
+		$type       = undef;
+		$lineNumber = 0;
+		close OUT;
+		select STDOUT;
+	}
+
+	my @f = split ( /\s*[\/,]\s*/, $_, -1 );
+	$f[0] =~ y/ /_/;    # change spaces in names to _
+
+	if ( !$type )       # determine type, make new output file if needed
+	{
+		if    ( @f == 5 ) { $type = 'x' }
+		elsif ( @f == 3 ) { $type = 't' }
+		elsif ( $f[3] =~ /^\d+-\D+-\d+ \d+:\d+$/ ) { $type = 'w' }
+		else { $type = 'r' }
+	}
+
+	# make new output file if necessary
+	if ( $type eq 't' && $lineNumber == 0 )
+	{
+		my @d = split ( /[ :]+/, $f[2] );
+		my $fileName = "track$d[6]$d[1]$d[2]_$d[3]$d[4]$d[5].sav";
+		open OUT, ">$fileName" or die "can't open $fileName\: $!\n";
+		select OUT;
+	}
+
+	if ( $type eq 'r' )
+	{
+		print "${routeNumber}_$f[0] $f[1] $f[2]\n";
+	}
+	elsif ( $type eq 'x' )
+	{
+		print "$f[0] $f[2] $f[3]\n";
+	}
+	else    # -t or -w output
+	{
+		print "$f[0] $f[1] $f[2]\n";
+	}
+
+	$lineNumber++;
+}
+continue
+{
+	# make sure that $. gets reset
+	close ARGV if eof;
+}
+


Property changes on: packages/gpsdrive/branches/etch/src/wpcvt
___________________________________________________________________
Name: svn:executable
   + *

Added: packages/gpsdrive/branches/etch/src/wpget
===================================================================
--- packages/gpsdrive/branches/etch/src/wpget	                        (rev 0)
+++ packages/gpsdrive/branches/etch/src/wpget	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,62 @@
+#!/bin/sh
+
+PATH=/bin:/usr/bin:/usr/local/bin
+
+TEMP=`getopt -o rwtd: --long get-routes,get-waypts,get-tracks,device: \
+     -n $0 -- "$@"`
+
+if [ $? != 0 ] ; then 
+	echo "Usage: $0 [-r|--get-routes]|[-w|--get-waypts]|[-t|--get-tracks] [-d device|--device device]" >&2 ;
+	echo "defaults are: --get-waypts and --device /dev/gps" >&2 ;
+	exit 1 ; 
+fi
+
+eval set -- "$TEMP"
+
+opt="";
+device="/dev/gps";
+
+while true ; do
+	case "$1" in
+		-r|--get-routes) opt="$opt -r" ; shift ;;
+		-w|--get-waypts) opt="$opt -w" ; shift ;;
+		-t|--get-tracks) opt="$opt -t" ; shift ;;
+		-d|--device) 
+			case "$2" in 
+				"") echo "Internal error!" >&2 ; exit 1;;
+				*) device=$2 ; shift 2 ;;
+			esac ;;
+		--) shift ; break ;;
+		*) echo "Internal error!" >&2 ; exit 1 ;;
+	esac
+done
+
+opt=${opt:= -w}
+if [[ ${#opt} != "3" && ${#opt} != "12" ]]; then
+	echo "Usage: $0 [-r|--get-routes]|[-w|--get-waypts]|[-t|--get-tracks] [-d device|--device device]" >&2 ;
+	echo "defaults are: --get-waypts and --device /dev/gps" >&2 ;
+	exit 1 ; 
+fi
+
+if ! [ -c $device -o -h $device -a -r $device ]; then
+	echo "device must be a readable character device node" >&2;
+	echo "or a link to a character device node." >&2;
+	exit 1;
+fi
+
+# Create a temporary file
+TMPFILE=`mktemp -q /tmp/wpget.XXXXXX`
+           if [ $? -ne 0 ]; then
+                   echo "$0: Can't create temp file, exiting..." >&2 
+                   exit 1
+           fi
+
+case "$opt" in
+	" -r") garble -r -d $device ;;
+	" -w") garble -w -d $device $TMPFILE ; wpcvt $TMPFILE ;;
+	" -t") garble -t -d $device ;;
+	*) echo "Internal error !" >&2 ; exit 1 ;;
+esac
+
+rm $TMPFILE
+exit 0


Property changes on: packages/gpsdrive/branches/etch/src/wpget
___________________________________________________________________
Name: svn:executable
   + *

Added: packages/gpsdrive/branches/etch/wp2sql
===================================================================
--- packages/gpsdrive/branches/etch/wp2sql	                        (rev 0)
+++ packages/gpsdrive/branches/etch/wp2sql	2008-12-22 19:33:23 UTC (rev 1806)
@@ -0,0 +1,10 @@
+echo put waypoints into database
+echo "use geoinfo;" > wp.sql
+cat ~/.gpsdrive/way-*.txt|awk '{print "insert into waypoints \
+(name,lat,lon,type) values (\"" $1 "\",\"" $2  "\",\"" $3  "\",\"Own\");" }' >>wp.sql
+
+# if you have other files (i.e. WLAN Access points in way_*) use
+# the line below.
+#cat ~/.gpsdrive/way_*.txt|awk '{print "insert into waypoints \
+(name,lat,lon,type) values (\"" $1 "\",\"" $2  "\",\"" $3  "\",\"WLAN\");" }' >>wp.sql
+


Property changes on: packages/gpsdrive/branches/etch/wp2sql
___________________________________________________________________
Name: svn:executable
   + *




More information about the Pkg-grass-devel mailing list