Filewatcher File Search
FTP Search
  
Directory (beta)
  
Content Search (beta)
   
pkg://jpilot-0.99-87.src.rpm:495399/jpilot-0.99.tar.gz  info  downloads

jpilot-0.99/ABOUT-NLS0100644000000000000000000002660306734345474012731 0ustar  rootrootNotes 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@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 December
1997:

     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@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@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@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 December
1997.  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 en es fi fr it ja ko nl no pl pt ru sl sv
                     .----------------------------------------------------.
     bash            |       []          []          []                   |  3
     bison           |       []          []          []                   |  3
     clisp           |       [] [] []    []                               |  4
     cpio            |       []    []    []       [] []    []             |  6
     diffutils       |       []    []    []                []          [] |  5
     enscript        |       []    [] [] []          []             []    |  6
     fileutils       | []    []    []    []       [] []    [] []    [] [] | 10
     findutils       |       []    []    [] []    [] []    []    []    [] |  9
     flex            |             []    []       []                   [] |  4
     gcal            |       []          []          []    []          [] |  5
     gettext         |    [] []    []    []       [] [] [] [] []    [] [] | 12
     grep            |       []    []    []       [] [] [] []    [] [] [] | 10
     hello           |    [] []    []    []       [] [] [] [] []    [] [] | 11
     id-utils        |       []          []                []             |  3
     indent          |    [] []                   []       []    []       |  5
     libc            |       []    []    []       [] []    []          [] |  7
     m4              |       []          []    []    []          []    [] |  6
     make            |       []    []    []       [] []    []             |  6
     music           |                   []                []             |  2
     ptx             |       []    []    []          [] [] [] []       [] |  8
     recode          |    [] []    []    []          []    [] []    [] [] |  9
     sh-utils        |       []    []    []          [] [] [] []       [] |  8
     sharutils       | []    []    []    []          []                [] |  6
     tar             | []    []          [] []    [] [] [] [] []    [] [] | 11
     texinfo         | []    []          []                               |  3
     textutils       | []    []    []    []       [] [] [] []          [] |  9
     wdiff           | []    []    []    []          [] [] []          [] |  8
                     `----------------------------------------------------'
       17 languages    cs da de en es fi fr it ja ko nl no pl pt ru sl sv
       27 packages      6  4 25  1 18  1 26  2  1 12 20  9 19  7  4  7 17  179

   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 December 1997 seems to be old, you may fetch a more recent copy
of this `ABOUT-NLS' file on most GNU archive sites.

jpilot-0.99/BUGS0100644000175000001440000000677207240052317012523 0ustar  mouseusers
If you wish to report a bug, and the bug is reproduceable it may be helpful to
me if you run jpilot -d to run in debug mode, reproduce the error and then
send me the log file from ~/.jpilot/jpilot.log

----------------------------------------------------------------------

Alarms may not work 100% right.  They should be 99% right.  Report any 
bugs, and don't blame me if you miss your own wedding, or graduation ;)

These are some of the bugs that I know about:

*Priority High:

 - Categories are one-way sync from the palm to the desktop.  It is possible
   to do things like add a record into a deleted category on the palm.
 - Palm databases aren't always detected as being changed and then aren't 
   brought into the desktop, this affects backup.
 - Small memory leaks when switching between apps.  I probably am not doing
   something right when destroying widgets.  I don't know what it is though.
 
*Priority Medium:

*Priority Low:

*Priority Who Cares?:

*Quirks (not really bugs):

 - jpilot lets you enter in blank todo's, etc.  The palm pilot will not allow
   this.

 - The palm pilot will only let you make appointments on 5 minute intervals.
   jpilot will allow 1 minute intervals.

 - The PalmOS datebook will alarm on private records even when they are hidden
   and they show up on the screen.  Right, or wrong, who knows.
   I will do the same.

*Palm OS bugs that I have found while creating J-Pilot

 - If you try to sync with a pilotrate of 0, then the palm pilot with get a
   fatal exception and reboot.  (tested on 3.1) This is a PalmOS bug.

 - The Palm pilot will let you sync (add) an appointment that repeats weekly,
   but doesn't repeat on any day.  It won't show up in the calendar, but if
   you search for it, it shows up.  When you click on it in find, a Fatal
   Exception occurs and the Pilot reboots.  This is a PalmOS bug if you ask me.

 - Empty appointments crash palmos 2.0 (I don't allow them anymore)

Syncing of categories:

I have put off allowing categories to be added on the desktop because I read
all the documentation I could find on how to sync categories and I couldn't
see how it could possibly work.  I kept thinking I was not understanding
something.

So finally, I booted into WindowsNT, after not doing so for many, many
months.  After 2 BSODs, and some hacking, I got it to boot (no joke).
I ran some experiments to see how 3com handles syncing of categories.

Just as I suspected, they don't always handle it right, just as the
documentation would suggest.

Here is just one example using memo:

 (Category IDs are all unique)

The first 2 categories I changed the name of on the handheld and on the
desktop, the last 2 are new on both.

rec-synced?   Palm cat | index | memo || Desktop cat | index | memo
(    synced)  NewPalm    4       one     NewDesk       4       one
(    synced)  NewPalm2   5       two     NewDesk2      5       two
(not-synced)  NewPalm3   6       P NP3   NewDesk3      6       D ND3
(not-synced)  NewDesk    7       P ND    NewPalm       7       D NP

Now, I do a sync and end up with:

 cat      | index | memo 
 NewDesk    4       P ND 
 NewDesk2   5        
 NewDesk3   6       D ND3
 NewPalm    7       one
                    D NP
 NewPalm2   8       two  
 NewPalm3   9       P NP3

On the palm things seem to have synced as expected.  On the desktop things
have moved between categories.  Look at items "one" and "two".  They moved
categories on the desktop.  If this were 50 items, all 50 would have moved
and possibly merged with other items.

I will duplicate this behavior.
jpilot-0.99/CHANGELOG0100644000175000001440000001513207240052366013244 0ustar  mouseusers0.99 - 02/06/01
 Alphabetized 4 main app categories and expense categories
 New calendar begin/end setting method using keyboard
 jpilot-sync program added to allow command line syncing
 Made radio buttons for which phone # shows up in addr
 Made month/week views obey categories
 Made 4 main apps+expense more user friendly by detecting changes
 Added prefs for optionally backing up DBs
 Czech character set added
 Russian character set added
 Moved output screen to bottom panel in main window
 Fixed many bugs in Expense and improved GUI
 Fixed datebook entries showing weekly repeat
 Added a large view window to the monthview
 Fixed some DateBk3 bugs (templates showing as today, etc)
 Made Address screen stay as it was last used in quick/add view mode
 Alarms
 Sorted memos if they are sorted on the handheld
 Replaced calendar buttons (array) with a gtk_calendar widget
 Made Quickview a page on the address Notebook
 Made private records hidable using palm password
 Made changes for Japanese and Chinese and Korean and multibyte characters
 Included Synctime in rpm and made it detect and avoid PalmOS 3.3
 Made the creation of ~/.jpilot and ~/.jpilot/backup* perms 0700 & ~umask
  If upgrading then you may want to change the permissions of ~/.jpilot/ for
  security reasons.
 Made completed ToDos not print if hidden
 Minor postscript improvements
 Made plugin conduits selectable wether to sync or not  

0.98 - 3/01/00
 Postscript printing support
 db3 support, datebook categories
 cleanup_pc_files improved
 Major performance increases in datebook, and other DBs
 Made DBs with slashes in them backup
 Fast sync
 Backup changes/fixes
 Made pc databases compact themselves for users without a palm
 Fixed time in week/month and daily views to use prefs
 gettext
 Made century non-leap year compliant for the year 2400 :)
 Fixed minor category problem (deleted on remote)
 Fixed redraws (menus and db3) after syncing
 Remember categories after switching apps
 ToDo: Due date disappears when "No Due Date" selected

0.97 - 12/22/99
 Added Weekly and Monthly views.
 Multiple backups supported, selectable from preferences.
 Block reset pilots and changed user names from syncing.
 Put paned windows in 4 main apps and made them remember where set.
 Made Graffiti Shortcuts installable.
 Changed to qsort from bubblesort.
 Removed logic to make category go to ALL after add.
 Remember window size after restart.
 Changed from using HOME to using JPILOT_HOME then default to HOME.
 Fixed menu history for categories (wasn't always correct).
 Fixed Expense plugin not always showing all of the categories.
 Fixed directory for global plugins.
 Made the dialog raise less annoying.
 Work around for bug where empty appointments crash PalmOS 2.0.  An empty
  appointment description will get set to a space.

0.96 - 11/10/99
 Plugin (conduit) support added.
 Patch for reversed todo sorting.
 Timesheet plugin (not yet fully working)
 Wrote an Expense plugin for an example plugin.
 Wrote a SyncTime plugin.
 Created a User Manual.
 Created plugin programmer documentation.
 Datebook problem with GMT and repeating appts fixed (were off 1 day
  in certain cases).
 I made TAB cycle through the text boxes during data entry.
 I added validation checks to repeating appts so that invalid appointments
  can't be entered into the palm.
 I Made clists bahave more intuitively.  They stay put when changing data now.
 Week of the year numbers added on the calendar.

0.95 - 09/09/99 (This is a key Y2K date, it'll probably blow up)
 Made fixes to configure for Solaris (-lsocket).
 Removed file locking code.
 Highlighted calendar days with appointments.
 Fixed a big memory leak in addresses.
 Todos now show due date.
 Hide completed todos is stored in preferences, so it will be remembered.
 make install now installs empty DB files into share.  These are copied to
  ~/.jpilot/ the first time jpilot is ran, so that it behaves before the
  first sync.
 Replaced all C++ style comments with C style comments.
 
0.94 - 08/28/99
 Fixed up the configure script for Solaris, and Debian users.
 Minor GUI changes/improvements.
 Added an Install screen.
 0.93 Didn't show the last todo in the DB file, fixed.

0.93 - 08/10/99
 Changed vsnprintf and snprintf to g_vsnprintf and g_snprintf for portability.
 Changed flock calls to fcntl for portability.
 Changed logf to jpilot_logf because logf is a call in libm on some systems
 (portability).
 Added Menus.
 Added a quickfind in the address app.
 Put in a global search (find) window.
 Put in a preferences window and rc file support.
 Added support for different date formats (localization).
 Added support for weeks beginning on Monday (localization).
 Added support for choosing the colors file from the preferences window.
 Added a configure script.
 Added in Japanese support.
 Misc GUI improvements and code improvements.
 
0.92 - 07/18/99
 Fixed problem reading palm db files with 0 records.
 Added option for viewing only uncompleted todos.
 Fixed a GUI problem when adding an address the phone menus didn't update
  right while selecting addresses on the left pane.
 Added a window to show the syncing output.
 Added a full backup button.
 Added forking of a process to do the sync in the background.
 Fixed category label in todo, address, and memo apps.
 Added modify capability in datebook, address, todo, and memo apps.
 Added the ability to check/uncheck todos.
 When deleteing repeating appointments it will now ask if you intend to delete
  just one occurence, or all occurences.
 Added some tooltips to show how many records are in a DB.
 
0.91 - 07/03/99
 Fixed some feof() problem that caused datebook to not work on RedHat 6.0
 I rewrote the entire datebook.c file
 Put in code to create and test for writability of ~/.jpilot/
 Put it gtk_set_locale() for other language support on Solaris.
 Moved syncing code from datebook.c to sync.c
 Created a jpilot-syncd, a daemon syncing program.
 Made Feb 29th (Leap Day) yearly appointments repeat on the 28th of non-Leap
   years, just as on the palm pilot.
 Also fixed monthly repeating appointments that occur past the last day in the
  current month. These didn't use to appear in jpilot.
 Fixed a few bugs in creating new repeat monthly appointments.
 Fixed a few bugs in displaying monthly repeating appointments.
 When creating a monthly appointment that repeats "By Day":
  Added in a dialog box to ask if an appointment is intended to repeat in the
  4th occurence of that day in the a month, or the last occurence of that day
  in the month.  This is only asked when it cannot be deduced.
  The Palm Pilot will also ask this question.
 Fixed Mobile not being displayed in address app.

0.90a - 06/23/99
 Initial release.
jpilot-0.99/CREDITS0100644000175000001440000000260007240100570013035 0ustar  mouseusers* I have to give the first credit to my Wife who puts up with me programming
  stuff for free when there are more productive analog things to be doing ;)

* configure scripts were initialy done by Victor Brilon <victor@vail.net>

* Japanesation patches were provided by Hiroshi Kawashima <kei@arch.sony.co.jp>

* Alex Varju <alex@varju.bc.ca> sent me a patch for displaying due dates in
  todos, and also a fix for a small bug where I didn't sort them correctly.
  I had priority/date and date/priority reversed.

* HvR <hvrietsc@yahoo.com> sent me the jpilot-dump code.

* Jason Day sent me some log patches for plugins to log correctly.
  Also sent me some patches for plugins using rc files.

* Croation patches were provided by Dobrica Pavlinusic <dpavlin@foi.hr> 

* Options to not sync conduits patch from Eric Yeo <ttey@yeo.nu>

* David Frey <david@eos.lugs.ch> gave me some postscript patches for using
  recode and latin1 char sets.

* "Benjamin A. Kuperman" <kuperman@cs.purdue.edu> send a patch to sync.c for
  watchdog timeout on long copies, and a Makefile patch.

* "Boris O. Gagarinov" <basi@online.ru> helped with russian character set
  translations.

* "Hiroshi MIURA" <miura@da-cha.org> for i18n help on 0.99 and multibyte
  character patches.

* If you are not in this list and you should be then let me know.
  I want everyone to get a piece of the pie when I have the big jpilot IPO :)
jpilot-0.99/COPYING0100644000175000001440000004312706750677047013110 0ustar  mouseusers		    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) 19yy  <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) 19yy 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.
jpilot-0.99/Makefile.in0100644000175000001440000002202707240050371014072 0ustar  mouseusers
PACKAGE = @PACKAGE@
VERSION = @VERSION@

DISFILES="jpilot.c address_gui.c"

top_srcdir = @top_srcdir@
top_builddir = @top_srcdir@

SUBDIRS = @INTLSUB@ @POSUB@

# Install variables
prefix=@prefix@

datadir = $(prefix)/@DATADIRNAME@
localedir = $(datadir)/locale
gnulocaledir = $(prefix)/share/locale

#Pilot flags (include dir), and Libraries
PILOT_FLAGS=@PILOT_FLAGS@
PILOT_LIBS=@PILOT_LIBS@

#set CC to your compiler
CC = @CC@

DEFS = @DEFS@ 

I18NDEFS = -DLOCALEDIR=\"$(localedir)\" -DGNULOCALEDIR=\"$(gnulocaledir)\"

# CC options
# japanese support
CCDEFINES = $(DEFS) -DBASE_DIR=\"$(prefix)\"
CFLAGS = @cflags@

# CC options
OPTIONS = @ccoptions@ $(CCDEFINES) $(CFLAGS)

# GTK+ flags
GTKFLAGS = @GTK_CFLAGS@
# GTK+ libs
GTKLIBS = @GTK_LIBS@

INTLLIBS = @INTLLIBS@

# Targets
all: po_dir intl_dir jpilot jpilot-sync jpilot-dump

jpilot: jpilot.o datebook.o address.o todo.o memo.o \
	utils.o sync.o prefs.o log.o plugins.o \
	datebook_gui.o address_gui.o todo_gui.o memo_gui.o \
	prefs_gui.o search_gui.o install_gui.o weekview_gui.o \
	monthview_gui.o print_gui.o print.o alarms.o libplugin.o \
	password.o \
	japanese.o cp1250.o russian.o
	./libtool --mode=link $(CC) -export-dynamic $(OPTIONS) $(GTKFLAGS) \
	jpilot.o datebook.o address.o todo.o memo.o \
	utils.o sync.o prefs.o log.o plugins.o \
	datebook_gui.o address_gui.o todo_gui.o memo_gui.o \
	prefs_gui.o search_gui.o install_gui.o weekview_gui.o \
	monthview_gui.o print_gui.o print.o alarms.o libplugin.o \
	password.o \
	japanese.o  cp1250.o russian.o \
	$(PILOT_LIBS) $(GTKLIBS) $(INTLLIBS) \
	-o jpilot


jpilot.o: jpilot.c config.h i18n.h utils.h log.h \
	datebook.h address.h todo.h memo.h sync.h log.h prefs_gui.h prefs.h \
	plugins.h print.h datebook.xpm address.xpm todo.xpm memo.xpm \
	datebook_ncc.xpm address_ncc.xpm todo_ncc.xpm memo_ncc.xpm
	$(CC) $(I18NDEFS) $(OPTIONS) $(PILOT_FLAGS) $(GTKFLAGS) -c jpilot.c

alarms.o: alarms.c datebook.h config.h i18n.h utils.h log.h \
	prefs.h japanese.h cp1250.h russian.h
	$(CC) $(OPTIONS) $(PILOT_FLAGS) $(GTKFLAGS) -c alarms.c

datebook.o: datebook.c datebook.h config.h i18n.h utils.h log.h libplugin.h \
	prefs.h japanese.h cp1250.h russian.h
	$(CC) $(OPTIONS) $(PILOT_FLAGS) $(GTKFLAGS) -c datebook.c

address.o: address.c address.h config.h i18n.h utils.h log.h libplugin.h \
	prefs.h japanese.h cp1250.h russian.h
	$(CC) $(OPTIONS) $(PILOT_FLAGS) $(GTKFLAGS) -c address.c

todo.o: todo.c todo.h config.h i18n.h utils.h log.h libplugin.h \
	prefs.h japanese.h cp1250.h russian.h
	$(CC) $(OPTIONS) $(PILOT_FLAGS) $(GTKFLAGS) -c todo.c

memo.o: memo.c memo.h config.h i18n.h utils.h log.h libplugin.h \
	prefs.h japanese.h cp1250.h russian.h
	$(CC) $(OPTIONS) $(PILOT_FLAGS) $(GTKFLAGS) -c memo.c

datebook_gui.o: datebook_gui.c datebook.h config.h i18n.h utils.h log.h \
	print.h prefs.h utils.h
	$(CC) $(OPTIONS) $(PILOT_FLAGS) $(GTKFLAGS) -c datebook_gui.c

address_gui.o: address_gui.c address.h config.h i18n.h utils.h log.h \
	prefs.h print.h
	$(CC) $(OPTIONS) $(PILOT_FLAGS) $(GTKFLAGS) -c address_gui.c

todo_gui.o: todo_gui.c todo.h config.h i18n.h utils.h log.h \
	prefs.h print.h
	$(CC) $(OPTIONS) $(PILOT_FLAGS) $(GTKFLAGS) -c todo_gui.c

memo_gui.o: memo_gui.c memo.h config.h i18n.h utils.h log.h \
	prefs.h print.h
	$(CC) $(OPTIONS) $(PILOT_FLAGS) $(GTKFLAGS) -c memo_gui.c

search_gui.o: search_gui.c config.h i18n.h utils.h log.h \
	prefs.h datebook.h address.h todo.h todo.h memo.h plugins.h
	$(CC) $(OPTIONS) $(PILOT_FLAGS) $(GTKFLAGS) -c search_gui.c

prefs_gui.o: prefs_gui.c prefs_gui.h config.h i18n.h prefs.h utils.h log.h \
	plugins.h
	$(CC) $(OPTIONS) $(PILOT_FLAGS) $(GTKFLAGS) -c prefs_gui.c

print_gui.o: print_gui.c print.h
	$(CC) $(OPTIONS) $(PILOT_FLAGS) $(GTKFLAGS) -c print_gui.c

install_gui.o: install_gui.c config.h i18n.h utils.h prefs.h prefs_gui.h log.h
	$(CC) $(OPTIONS) $(PILOT_FLAGS) $(GTKFLAGS) -c install_gui.c

weekview_gui.o: weekview_gui.c config.h i18n.h utils.h prefs.h log.h \
	datebook.h
	$(CC) $(OPTIONS) $(PILOT_FLAGS) $(GTKFLAGS) -c weekview_gui.c

monthview_gui.o: monthview_gui.c config.h i18n.h utils.h prefs.h log.h \
	datebook.h
	$(CC) $(OPTIONS) $(PILOT_FLAGS) $(GTKFLAGS) -c monthview_gui.c

utils.o: utils.c utils.h config.h i18n.h log.h prefs.h sync.h plugins.h
	$(CC) $(OPTIONS) $(PILOT_FLAGS) $(GTKFLAGS) -c utils.c

sync.o: sync.c sync.h config.h i18n.h utils.h japanese.h cp1250.h log.h \
	prefs.h libplugin.h datebook.h plugins.h russian.h
	$(CC) $(OPTIONS) $(PILOT_FLAGS) $(GTKFLAGS) -c sync.c

log.o: log.c log.h config.h i18n.h log.h utils.h sync.h
	$(CC) $(OPTIONS) $(PILOT_FLAGS) $(GTKFLAGS) -c log.c

plugins.o: plugins.c plugins.h config.h utils.h log.h
	$(CC) $(OPTIONS) $(PILOT_FLAGS) $(GTKFLAGS) -c plugins.c

prefs.o: prefs.c prefs.h config.h i18n.h utils.h log.h
	$(CC) $(OPTIONS) $(PILOT_FLAGS) $(GTKFLAGS) -c prefs.c

print.o: print.c print.h config.h datebook.h address.h todo.h sync.h prefs.h \
	log.h
	$(CC) $(OPTIONS) $(PILOT_FLAGS) $(GTKFLAGS) -c print.c

japanese.o: japanese.c japanese.h config.h
	$(CC) $(OPTIONS) -c japanese.c

cp1250.o: cp1250.c cp1250.h config.h
	$(CC) $(OPTIONS) -c cp1250.c

password.o: password.c password.h config.h
	$(CC) $(OPTIONS) $(GTKFLAGS) -c password.c

russian.o: russian.c russian.h config.h
	$(CC) $(OPTIONS) -c russian.c

libplugin:
	echo " make libplugin is no longer a valid target."; \
	echo " The libplugin.h header file is all that is needed now."

libplugin.o: libplugin.c libplugin.h config.h
	$(CC) $(OPTIONS) $(PILOT_FLAGS) $(GTKFLAGS) -c libplugin.c

jpilot-sync: jpilot-sync.o utils.o log.o prefs.o sync.o plugins.o \
	libplugin.o password.o \
	japanese.o cp1250.o russian.o
	$(CC) $(OPTIONS) $(GTKFLAGS) \
	jpilot-sync.o utils.o log.o prefs.o sync.o plugins.o \
	libplugin.o password.o \
	japanese.o cp1250.o russian.o \
	$(PILOT_LIBS) $(GTKLIBS) $(INTLLIBS) \
	-o jpilot-sync

jpilot-sync.o: jpilot-sync.c config.h utils.h log.h prefs.h sync.h \
	libplugin.h password.h
	$(CC) $(OPTIONS) $(PILOT_FLAGS) $(GTKFLAGS) -c jpilot-sync.c

jpilot-dump: jpilot-dump.o datebook.o address.o memo.h \
	log.o utils.o prefs.o todo.o plugins.o \
	password.o \
	libplugin.o japanese.o cp1250.o russian.o
	$(CC) $(OPTIONS) $(GTKFLAGS) \
	jpilot-dump.o datebook.o address.o memo.o \
	log.o utils.o prefs.o todo.o plugins.o \
	password.o \
	libplugin.o japanese.o cp1250.o russian.o \
	$(PILOT_LIBS) $(GTKLIBS) \
	-o jpilot-dump

jpilot-dump.o: jpilot-dump.c config.h utils.h log.h prefs.h \
	datebook.h memo.h address.h todo.h password.h
	$(CC) $(OPTIONS) $(PILOT_FLAGS) $(GTKFLAGS) -c jpilot-dump.c

jpilot-upgrade-99: jpilot-upgrade-99.o utils.o libplugin.o log.o prefs.o
	$(CC) $(OPTIONS) $(GTKFLAGS) \
	jpilot-upgrade-99.o utils.o log.o prefs.o libplugin.o \
	$(PILOT_LIBS) $(GTKLIBS) \
	-o jpilot-upgrade-99

jpilot-upgrade-99.o: jpilot-upgrade-99.c config.h utils.h
	$(CC) $(OPTIONS) $(PILOT_FLAGS) $(GTKFLAGS) -c jpilot-upgrade-99.c

POFILES = @POFILES@
GMOFILES = @GMOFILES@

po_dir:
	cd po; $(MAKE)

intl_dir:
	cd intl; $(MAKE)

clean:
	rm -f *.o *~ config.cache

distclean: clean
	rm -f config.status config.h config.log Makefile \
	jpilot-sync jpilot jpilot-dump

install:
#	./install-sh -d $(prefix)/bin/
	if test -d "$(prefix)/bin" ; then \
	  ./install-sh -s -c -m 555 jpilot $(prefix)/bin/jpilot ; \
	else \
	  ./install-sh -s -c -m 555 jpilot $(prefix)/jpilot ; \
	fi
	if test -d "$(prefix)/bin" ; then \
	  ./install-sh -s -c -m 555 jpilot-sync $(prefix)/bin/jpilot-sync ; \
	else \
	  ./install-sh -s -c -m 555 jpilot-sync $(prefix)/jpilot-sync ; \
	fi
	if test -d "$(prefix)/bin" ; then \
	  ./install-sh -s -c -m 555 jpilot-dump $(prefix)/bin/jpilot-dump ; \
	else \
	  ./install-sh -s -c -m 555 jpilot-dump $(prefix)/jpilot-dump ; \
	fi
	if test -d "$(prefix)/bin" ; then \
	  ./install-sh -s -c -m 555 jpilot-dump $(prefix)/bin/jpilot-upgrade-99 ; \
	else \
	  ./install-sh -s -c -m 555 jpilot-dump $(prefix)/jpilot-upgrade-99 ; \
	fi
	./install-sh -d -m 755 $(prefix)/share/jpilot
	./install-sh -c -m 755 jpilotrc.blue $(prefix)/share/jpilot
	./install-sh -c -m 755 jpilotrc.default $(prefix)/share/jpilot/
	./install-sh -c -m 755 jpilotrc.green $(prefix)/share/jpilot/
	./install-sh -c -m 755 jpilotrc.purple $(prefix)/share/jpilot/
	./install-sh -c -m 755 jpilotrc.steel $(prefix)/share/jpilot/
	./install-sh -c -m 755 empty/DatebookDB.pdb $(prefix)/share/jpilot/
	./install-sh -c -m 755 empty/AddressDB.pdb $(prefix)/share/jpilot/
	./install-sh -c -m 755 empty/ToDoDB.pdb $(prefix)/share/jpilot/
	./install-sh -c -m 755 empty/MemoDB.pdb $(prefix)/share/jpilot/
	cd intl; $(MAKE) install
	cd po; $(MAKE) install

uninstall:
	rm -f $(prefix)/share/jpilot/*
	rm -f $(prefix)/bin/jpilot
	rm -f $(prefix)/bin/jpilot-sync
	rm -f $(prefix)/bin/jpilot-dump
	rm -f $(prefix)/jpilot
	cd intl; $(MAKE) uninstall
	cd po; $(MAKE) uninstall

distdir = $(PACKAGE)-$(VERSION)
dist: Makefile
	rm -fr $(distdir)
	mkdir $(distdir)
	chmod 777 $(distdir)
	for file in $(DISTFILES); do \
	  ln $$file $(distdir) 2>/dev/null || cp -p $$file $(distdir); \
	done
	for subdir in $(SUBDIRS); do \
	  mkdir $(distdir)/$$subdir || exit 1; \
	  chmod 777 $(distdir)/$$subdir; \
          (cd $$subdir && $(MAKE) $@) || exit 1; \
	done
	tar chozf $(distdir).tar.gz $(distdir)
	rm -fr $(distdir)

jpilot-0.99/TODO0100644000175000001440000000062007240053204012506 0ustar  mouseusersThese are some of the things on my list todo, mostly, but not neccesarily
in this order:

* Restore of palm
* printing of daily/weekly schedules
* import/export files (most likely in XML, ldif, and CSV).
* selective database backup
* Edit categories on the desktop
* Better daily schedule
* Archiving archived records from the palm

Done from last time:
See CHANGELOG

Big projects:

* Web Interface
jpilot-0.99/INSTALL0100644000175000001440000000513407240051500013051 0ustar  mouseusers
If you have unsynced changes sync before installing a newer version of
J-Pilot.

Be sure to read the docs in the doc directory, or if installed from the RPM
in /usr/doc/jpilot-0.97/.

To compile J-Pilot you need to have GTK+1.2 or better.
You can find out what version you have by running "gtk-config --version".
GTK+ requires glib.  The glib version probably should match the gtk version.
You can also do a "glib-config --version".
You can get these at http://www.gtk.org

Pilot link must be installed and working.
ftp://ryeham.ee.ryerson.ca/pub/PalmOS/
RedHat users must also have the pilot-link-dev rpm installed for the header
 files so that jpilot can compile.  You don't need these if you install the
RPM.

If you want i18n support you should have gettext installed.  Preferably GNU
gettext.  If you don't have or want it use "configure --disable-nls"

To compile and install do the following:
./configure
make
make install
jpilot

For Japanese support, use ./configure --with-japanese, ./configure --help
will list all the options.

See below for compiling plugins.

make uninstall is an option also.

I have included a spec file so if you want to create your own RPM all you
have to do is "rpm -tb jpilot-0.99.tar.gz"


JPilot was written in such a way that it should be very safe to sync.
There is always the possibility of something going wrong though.  As with
anything else, backup your data if you cannot afford to lose it.  Just make
sure your backup software destroy it first ;)


I have added a couple of example plugins Expense, and SyncTime.  To use them
change to the directory (Expense, SyncTime, etc.) and do
./configure
make
make install (installs the plugin system wide)
If you want to install the plugin for just 1 user you can copy the shared
library to ~/.jpilot/plugins/

--- Error Messages ---

Message:
bash$ jpilot
jpilot: error in loading shared libraries: libpisock.so.3: cannot open 
shared object file: No such file or directory
bash$

Solution:
libpisock.so is the pilot-link shared library.
J-Pilot uses this library to talk over the serial port to the palm.
You can find it by doing a "locate libpisock".
Shared libraries are loaded at runtime, not compile time.
This error is caused by ld.so not being able to find libpisock.so
You can fix this by either adding the path to libpisock.so to the environment
variable LD_LIBRARY_PATH.  Do this by
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/libpath in bash, some other shells have
different syntax.  This can be put in your .bashrc, or profile, etc.
The other way to fix it is to add the path to libpisock in /etc/ld.so.conf
and then run ldconfig.  You need root to do this.

jpilot-0.99/README0100644000175000001440000000733407127127303012715 0ustar  mouseusers
------------------------------------------------------------

J-Pilot is a palm pilot desktop for Linux/Unix written by:
Judd Montgomery, judd@engineer.com
It is very useable, but still has many planned updates to make it better.

If you like it feel to send me donations ;)
I collect coins from anywhere, anytime also.
At least send me an email and let me know you are using it.
I'd like to know how many people this is useful to.

Judd Montgomery
P.O. Box 665
Sunbury, OH 43074

------------------------------------------------------------

SERIAL PORT SETUP:

When syncing, jpilot uses the port and speed settings out of the preferences
menu.  If the port is blank then jpilot will use the PILOTPORT environment
variables, as does pilot-link.  If these are blank then jpilot will default
to /dev/pilot.

It is recommended, but not neccessay to make a link from /dev/pilot to the
correct serial port.
So, if your cradle is on COM1, this is /dev/ttyS0 under Linux.  You could
execute the command "ln -s /dev/ttyS0 /dev/pilot".  COM2 is /dev/ttyS1, and
so on.

You must also give non-root users permisions to access the serial port.
The command to do this is (as root) "chmod 666 /dev/ttyS0" for the first
serial port, ttyS1, for the second, and so on.

COLORS:

Make install will copy a few default color files to /usr/local/share/jpilot/
(unless you told configure to use another prefix).
These will be selectable from the preferences menu.  Also jpilot will look
in $HOME/.jpilot/ for colors files.  They must start with "jpilotrc".
If you want to add new ones, or modify the current ones, just put the files
in one of these directories and they will show up in the preferences menu.

If you create your own cool jpilotrc files feel free to send them
back to me and if I like it, I'll include it in the release.

HOME, JPILOT_HOME:

jpilot uses the JPILOT_HOME environment variable to make it easy to allow
multiple pilots to be synced under the same unix user.  Just set JPILOT_HOME
to the directory you want jpilot to use.  For example, I have 2 palm pilots.
I can sync the one I use all the time into /home/judd.  The other one I can
sync into /home/judd/palm2 by using this script:
#!/bin/bash
JPILOT_HOME=/home/judd/palm2
jpilot

This is also handy for syncing xcopilot into its own directory.

You don't have to set JPILOT_HOME.  If its not set then jpilot will use the
HOME env variable.


OOPS, REVERTING:

You can always make the databases revert back to the last time that the
pilot was synced.  All you have to do is "rm ~/.jpilot/*.pc".
Deleted records will come back, etc.  Nothing is permanent until the
sync/backup.  You can do this if you make a mistake, or just to play around 
with jpilot and then delete the changed records without syncing them.

Also, from the preferences menu, you can choose to show deleted records
and then click on the deleted record and use "Add" to get a copy of it back.

BACKUP and SYNC:

The Sync button will sync the 4 applications with the palm pilot.
The Backup button will backup every program and database from the palm
pilot, except for AvantGo files (these are usually big and change daily).

If you get an error saying that you have a NULL user ID, then you need to
run install-user from the pilot-link suite.
e.g.  "install-user /dev/pilot Judd 1234", of course replace "Judd" and
"1234" with you favorite name and number. 

CLOCK UPDATE and flickers:

I don't know why, but the scrollbars flicker when the clock updates.  On some
systems it is bad, others not at all.  To get rid of this, just go into
preferences and choose a time without seconds.  Then the clock will only
update every minute.

USELESS STATISTIC:

I wrote about 600 lines of this code on my Palm Pilot using memo while I was
away from my computer.
I don't recomend this ;)


jpilot-0.99/SlackBuild0100755000175000001440000000643007240154241013771 0ustar  mouseusers#!/bin/sh
# Set initial variables:
CWD=`pwd`
PKG=$CWD/package
VERSION=0.99

if [ ! -d $PKG ]; then
  mkdir -p $PKG # location to build the source
fi

echo "+======================+"
echo "| Building jpilot-0.99 |"
echo "+======================+"

#make directory structure
mkdir -p $PKG/usr/bin
mkdir -p $PKG/usr/lib/jpilot/plugins
mkdir -p $PKG/usr/man/man1
mkdir -p $PKG/usr/share/jpilot
mkdir -p $PKG/usr/share/doc/jpilot-0.99
mkdir -p $PKG/usr/share/doc/jpilot-0.99/icons

cp BUGS CHANGELOG COPYING CREDITS INSTALL README TODO UPGRADING \
  $PKG/usr/share/doc/jpilot-0.99/
#chown root.root $PKG/usr/share/doc/jpilot-0.99/*
chmod 644 $PKG/usr/share/doc/jpilot-0.99/*
chmod 755 $PKG/usr/share/doc/jpilot-0.99/icons

cp icons/jpilot-icon1.xpm icons/jpilot-icon2.xpm icons/jpilot-icon3.xpm \
 icons/README docs/manual.html docs/plugin.html \
 $PKG/usr/share/doc/jpilot-0.99/icons/
#chown root.root $PKG/usr/share/doc/jpilot-0.99/icons/*

cp empty/AddressDB.pdb \
 empty/DatebookDB.pdb \
 empty/MemoDB.pdb \
 empty/ToDoDB.pdb \
 jpilotrc.blue \
 jpilotrc.default \
 jpilotrc.green \
 jpilotrc.purple \
 jpilotrc.steel \
 $PKG/usr/share/jpilot/
#chown root.root $PKG/usr/share/jpilot/*
chmod 644 $PKG/usr/share/jpilot/*

#compile the package
./configure --prefix=/usr --with-ccoptions="-Wall -O2"
echo "+======================+"
echo "| make                 |"
echo "+======================+"
make
#Expense
echo "+======================+"
echo "| Expense plugin       |"
echo "+======================+"
cd Expense
./configure --prefix=/usr --with-ccoptions="-Wall -O2"
make
../libtool --mode=install ./install-sh libexpense.la $PKG/lib/jpilot/plugins/
cd ..
#SyncTime
echo "+======================+"
echo "| SyncTime             |"
echo "+======================+"
cd SyncTime
./configure --prefix=/usr --with-ccoptions="-Wall -O2"
make
../libtool --mode=install ./install-sh libsynctime.la $PKG/lib/jpilot/plugins/
cd ..

echo "+======================+"
echo "| Copying binaries     |"
echo "+======================+"
./install-sh -s -c -m 555 jpilot-dump $PKG/bin/jpilot
./install-sh -s -c -m 555 jpilot-dump $PKG/bin/jpilot-sync
./install-sh -s -c -m 555 jpilot-dump $PKG/bin/jpilot-dump
./install-sh -s -c -m 555 jpilot-dump $PKG/bin/jpilot-upgrade-99

echo "+======================+"
echo "| Man files            |"
echo "+======================+"
cat docs/jpilot.1 | gzip -9c > $PKG/usr/man/man1/jpilot.1.gz
cat docs/jpilot-sync.1 | gzip -9c > $PKG/usr/man/man1/jpilot-sync.1.gz
cat docs/jpilot-upgrade-99.1 | gzip -9c > $PKG/usr/man/man1/jpilot-upgrade-99.1.gz

echo "+======================+"
echo "| po files             |"
echo "+======================+"
( cd po
  for file in *.gmo ; do
    LOC=`basename $file .gmo`
    mkdir -p $PKG/usr/share/locale/$LOC/LC_MESSAGES
    cat $file > $PKG/usr/share/locale/$LOC/LC_MESSAGES/jpilot.mo
  done )

echo "+======================+"
echo "| make package         |"
echo "+======================+"
cd $PKG
tar czvf ../jpilot-0.99.slack.tgz .

# Warn of zero-length files:
for file in `find . -type f -print` ; do
 if [ "`filesize $file`" = "0" ]; then
  echo "WARNING: zero length file $file"
 fi
 if [ "`filesize $file`" = "20" ]; then
  echo "WARNING: possible empty gzipped file $file"
 fi
done

# Clean up the extra stuff:
if [ "$1" = "--cleanup" ]; then
  rm -rf $PKG/jpilot-0.99
  rm -rf $PKG
fi
jpilot-0.99/UPGRADING0100644000175000001440000000123507240051304013263 0ustar  mouseusersUpgrading to 0.99 from a pre 0.99 release:

I changed the .pc file format.
J-Pilot now uses .pc3 files to store desktop records.

This was necessary to make it machine byte order independent.  The .pc3
files should now work on NFS mounted drives from different architectures and
you can ftp them to other machines with different byte orders, etc.

This may make plugins need to be recompiled, or maybe changed, but I feel
this change had to be made before version 1.0.

You should sync before upgrading to 0.99 from an earlier version.
However if you can't or forgot, then you should sync and then run
jpilot-upgrade-99 and it will convert the .pc files to .pc3 files.
jpilot-0.99/aclocal.m40100644000175000001440000010367207041664447013711 0ustar  mouseusersdnl aclocal.m4 generated automatically by aclocal 1.4

dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.

dnl This program is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
dnl PARTICULAR PURPOSE.


# serial 39 AC_PROG_LIBTOOL
AC_DEFUN(AC_PROG_LIBTOOL,
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl

# Save cache, so that ltconfig can load it
AC_CACHE_SAVE

# Actually configure libtool.  ac_aux_dir is where install-sh is found.
CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
|| AC_MSG_ERROR([libtool configure failed])

# Reload cache, that may have been modified by ltconfig
AC_CACHE_LOAD

# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"

# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
AC_SUBST(LIBTOOL)dnl

# Redirect the config.log output again, so that the ltconfig log is not
# clobbered by the next message.
exec 5>>./config.log
])

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_RANLIB])dnl
AC_REQUIRE([AC_PROG_CC])dnl
AC_REQUIRE([AC_PROG_LD])dnl
AC_REQUIRE([AC_PROG_NM])dnl
AC_REQUIRE([AC_PROG_LN_S])dnl
dnl

# Check for any special flags to pass to ltconfig.
libtool_flags="--cache-file=$cache_file"
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN],
[libtool_flags="$libtool_flags --enable-dlopen"])
ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
[libtool_flags="$libtool_flags --enable-win32-dll"])
AC_ARG_ENABLE(libtool-lock,
  [  --disable-libtool-lock  avoid locking (might break parallel builds)])
test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"

# 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.o`" in
    *32-bit*)
      LD="${LD-ld} -32"
      ;;
    *N32*)
      LD="${LD-ld} -n32"
      ;;
    *64-bit*)
      LD="${LD-ld} -64"
      ;;
    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_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])])
  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*)
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  AC_CHECK_TOOL(AS, as, false)
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
  ;;
])
esac
])

# 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, [dnl
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, [dnl
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, [dnl
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_ENABLE_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_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_prog=ld
if test "$ac_cv_prog_gcc" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  AC_MSG_CHECKING([for ld used by GCC])
  ac_prog=`($CC -print-prog-name=ld) 2>&5`
  case "$ac_prog" in
    # Accept absolute paths.
changequote(,)dnl
    [\\/]* | [A-Za-z]:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
changequote([,])dnl
      # 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(ac_cv_path_LD,
[if test -z "$LD"; then
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      ac_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 "$ac_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
  ac_cv_path_LD="$LD" # Let the user override the test with a path.
fi])
LD="$ac_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_SUBST(LD)
AC_PROG_LD_GNU
])

AC_DEFUN(AC_PROG_LD_GNU,
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_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
  ac_cv_prog_gnu_ld=yes
else
  ac_cv_prog_gnu_ld=no
fi])
])

# AC_PROG_NM - find the path to a BSD-compatible name lister
AC_DEFUN(AC_PROG_NM,
[AC_MSG_CHECKING([for BSD-compatible nm])
AC_CACHE_VAL(ac_cv_path_NM,
[if test -n "$NM"; then
  # Let the user override the test.
  ac_cv_path_NM="$NM"
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/nm || test -f $ac_dir/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
      if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
	ac_cv_path_NM="$ac_dir/nm -B"
	break
      elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
	ac_cv_path_NM="$ac_dir/nm -p"
	break
      else
	ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/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 "$ac_cv_path_NM" && ac_cv_path_NM=nm
fi])
NM="$ac_cv_path_NM"
AC_MSG_RESULT([$NM])
AC_SUBST(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*)
  # 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, adds --enable-ltdl-convenience to
# the configure arguments.  Note that LIBLTDL is not AC_SUBSTed, nor
# is AC_CONFIG_SUBDIRS called.  If DIR is not provided, it is assumed
# to be `${top_builddir}/libltdl'.  Make sure you start DIR with
# '${top_builddir}/' (note the single quotes!) if your package is not
# flat, and, if you're not using automake, define top_builddir as
# appropriate 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=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdlc.la
])

# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
# the libltdl installable library, and adds --enable-ltdl-install to
# the configure arguments.  Note that LIBLTDL is not AC_SUBSTed, nor
# is AC_CONFIG_SUBDIRS called.  If DIR is not provided, it is assumed
# to be `${top_builddir}/libltdl'.  Make sure you start DIR with
# '${top_builddir}/' (note the single quotes!) if your package is not
# flat, and, if you're not using automake, define top_builddir as
# appropriate 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=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdl.la
  else
    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
    LIBLTDL="-lltdl"
  fi
])

dnl old names
AC_DEFUN(AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnl
AC_DEFUN(AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnl
AC_DEFUN(AM_ENABLE_STATIC, [indir([AC_ENABLE_STATIC], $@)])dnl
AC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl
AC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl
AC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnl
AC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnl

dnl This is just to quiet aclocal about the macro not being used
if(a,b,[AC_DISABLE_FAST_INSTALL])dnl

# Macro to add for using GNU gettext.
# Ulrich Drepper <drepper@cygnus.com>, 1995.
#
# 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.
# Please note that the actual code is *not* freely available.

# serial 5

AC_DEFUN(AM_WITH_NLS,
  [AC_MSG_CHECKING([whether NLS is requested])
    dnl Default is enabled NLS
    AC_ARG_ENABLE(nls,
      [  --disable-nls           do not use Native Language Support],
      USE_NLS=$enableval, USE_NLS=yes)
    AC_MSG_RESULT($USE_NLS)
    AC_SUBST(USE_NLS)

    USE_INCLUDED_LIBINTL=no

    dnl If we use NLS figure out what method
    if test "$USE_NLS" = "yes"; then
      AC_DEFINE(ENABLE_NLS)
      AC_MSG_CHECKING([whether included gettext is requested])
      AC_ARG_WITH(included-gettext,
        [  --with-included-gettext use the GNU gettext library included here],
        nls_cv_force_use_gnu_gettext=$withval,
        nls_cv_force_use_gnu_gettext=no)
      AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)

      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
        dnl User does not insist on using GNU NLS library.  Figure out what
        dnl to use.  If gettext or catgets are available (in this order) we
        dnl use this.  Else we have to fall back to GNU NLS library.
	dnl catgets is only used if permitted by option --with-catgets.
	nls_cv_header_intl=
	nls_cv_header_libgt=
	CATOBJEXT=NONE

	AC_CHECK_HEADER(libintl.h,
	  [AC_CACHE_CHECK([for gettext in libc], gt_cv_func_gettext_libc,
	    [AC_TRY_LINK([#include <libintl.h>], [return (int) gettext ("")],
	       gt_cv_func_gettext_libc=yes, gt_cv_func_gettext_libc=no)])

	   if test "$gt_cv_func_gettext_libc" != "yes"; then
	     AC_CHECK_LIB(intl, bindtextdomain,
	       [AC_CACHE_CHECK([for gettext in libintl],
		 gt_cv_func_gettext_libintl,
		 [AC_CHECK_LIB(intl, gettext,
		  gt_cv_func_gettext_libintl=yes,
		  gt_cv_func_gettext_libintl=no)],
		 gt_cv_func_gettext_libintl=no)])
	   fi

	   if test "$gt_cv_func_gettext_libc" = "yes" \
	      || test "$gt_cv_func_gettext_libintl" = "yes"; then
	      AC_DEFINE(HAVE_GETTEXT)
	      AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
		[test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
	      if test "$MSGFMT" != "no"; then
		AC_CHECK_FUNCS(dcgettext)
		AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
		AM_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],
		  [CATOBJEXT=.mo
		   DATADIRNAME=lib])
		INSTOBJEXT=.mo
	      fi
	    fi
	])

        if test "$CATOBJEXT" = "NONE"; then
	  AC_MSG_CHECKING([whether catgets can be used])
	  AC_ARG_WITH(catgets,
	    [  --with-catgets          use catgets functions if available],
	    nls_cv_use_catgets=$withval, nls_cv_use_catgets=no)
	  AC_MSG_RESULT($nls_cv_use_catgets)

	  if test "$nls_cv_use_catgets" = "yes"; then
	    dnl No gettext in C library.  Try catgets next.
	    AC_CHECK_LIB(i, main)
	    AC_CHECK_FUNC(catgets,
	      [AC_DEFINE(HAVE_CATGETS)
	       INTLOBJS="\$(CATOBJS)"
	       AC_PATH_PROG(GENCAT, gencat, no)dnl
	       if test "$GENCAT" != "no"; then
		 AC_PATH_PROG(GMSGFMT, gmsgfmt, no)
		 if test "$GMSGFMT" = "no"; then
		   AM_PATH_PROG_WITH_TEST(GMSGFMT, msgfmt,
		    [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)
		 fi
		 AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
		   [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
		 USE_INCLUDED_LIBINTL=yes
		 CATOBJEXT=.cat
		 INSTOBJEXT=.cat
		 DATADIRNAME=lib
		 INTLDEPS='$(top_builddir)/intl/libintl.a'
		 INTLLIBS=$INTLDEPS
		 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
		 nls_cv_header_intl=intl/libintl.h
		 nls_cv_header_libgt=intl/libgettext.h
	       fi])
	  fi
        fi

        if test "$CATOBJEXT" = "NONE"; then
	  dnl Neither gettext nor catgets in included in the C library.
	  dnl Fall back on GNU gettext library.
	  nls_cv_use_gnu_gettext=yes
        fi
      fi

      if test "$nls_cv_use_gnu_gettext" = "yes"; then
        dnl Mark actions used to generate GNU NLS library.
        INTLOBJS="\$(GETTOBJS)"
        AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
	  [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], msgfmt)
        AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
        AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
	  [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
        AC_SUBST(MSGFMT)
	USE_INCLUDED_LIBINTL=yes
        CATOBJEXT=.gmo
        INSTOBJEXT=.mo
        DATADIRNAME=share
	INTLDEPS='$(top_builddir)/intl/libintl.a'
	INTLLIBS=$INTLDEPS
	LIBS=`echo $LIBS | sed -e 's/-lintl//'`
        nls_cv_header_intl=intl/libintl.h
        nls_cv_header_libgt=intl/libgettext.h
      fi

      dnl Test whether we really found GNU xgettext.
      if test "$XGETTEXT" != ":"; then
	dnl If it is no 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
    else
      DATADIRNAME=share
      nls_cv_header_intl=intl/libintl.h
      nls_cv_header_libgt=intl/libgettext.h
    fi
    AC_LINK_FILES($nls_cv_header_libgt, $nls_cv_header_intl)
    AC_OUTPUT_COMMANDS(
     [case "$CONFIG_FILES" in *po/Makefile.in*)
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
      esac])


    # If this is used in GNU gettext we have to set USE_NLS to `yes'
    # because some of the sources are only built for this goal.
    if test "$PACKAGE" = gettext; then
      USE_NLS=yes
      USE_INCLUDED_LIBINTL=yes
    fi

    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(USE_INCLUDED_LIBINTL)
    AC_SUBST(CATALOGS)
    AC_SUBST(CATOBJEXT)
    AC_SUBST(DATADIRNAME)
    AC_SUBST(GMOFILES)
    AC_SUBST(INSTOBJEXT)
    AC_SUBST(INTLDEPS)
    AC_SUBST(INTLLIBS)
    AC_SUBST(INTLOBJS)
    AC_SUBST(POFILES)
    AC_SUBST(POSUB)
  ])

AC_DEFUN(AM_GNU_GETTEXT,
  [AC_REQUIRE([AC_PROG_MAKE_SET])dnl
   AC_REQUIRE([AC_PROG_CC])dnl
   AC_REQUIRE([AC_PROG_RANLIB])dnl
   AC_REQUIRE([AC_ISC_POSIX])dnl
   AC_REQUIRE([AC_HEADER_STDC])dnl
   AC_REQUIRE([AC_C_CONST])dnl
   AC_REQUIRE([AC_C_INLINE])dnl
   AC_REQUIRE([AC_TYPE_OFF_T])dnl
   AC_REQUIRE([AC_TYPE_SIZE_T])dnl
   AC_REQUIRE([AC_FUNC_ALLOCA])dnl
   AC_REQUIRE([AC_FUNC_MMAP])dnl

   AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h string.h \
unistd.h sys/param.h])
   AC_CHECK_FUNCS([getcwd munmap putenv setenv setlocale strchr strcasecmp \
strdup __argz_count __argz_stringify __argz_next])

   if test "${ac_cv_func_stpcpy+set}" != "set"; then
     AC_CHECK_FUNCS(stpcpy)
   fi
   if test "${ac_cv_func_stpcpy}" = "yes"; then
     AC_DEFINE(HAVE_STPCPY)
   fi

   AM_LC_MESSAGES
   AM_WITH_NLS

   if test "x$CATOBJEXT" != "x"; then
     if test "x$ALL_LINGUAS" = "x"; then
       LINGUAS=
     else
       AC_MSG_CHECKING(for catalogs to be installed)
       NEW_LINGUAS=
       for lang in ${LINGUAS=$ALL_LINGUAS}; do
         case "$ALL_LINGUAS" in
          *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
         esac
       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 The reference to <locale.h> in the installed <libintl.h> file
   dnl must be resolved because we cannot expect the users of this
   dnl to define HAVE_LOCALE_H.
   if test $ac_cv_header_locale_h = yes; then
     INCLUDE_LOCALE_H="#include <locale.h>"
   else
     INCLUDE_LOCALE_H="\
/* The system does not provide the header <locale.h>.  Take care yourself.  */"
   fi
   AC_SUBST(INCLUDE_LOCALE_H)

   dnl Determine which catalog format we have (if any is needed)
   dnl For now we know about two different formats:
   dnl   Linux libc-5 and the normal X/Open format
   test -d intl || mkdir intl
   if test "$CATOBJEXT" = ".cat"; then
     AC_CHECK_HEADER(linux/version.h, msgformat=linux, msgformat=xopen)

     dnl Transform the SED scripts while copying because some dumb SEDs
     dnl cannot handle comments.
     sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
   fi
   dnl po2tbl.sed is always needed.
   sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
     $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed

   dnl In the intl/Makefile.in we have a special dependency which makes
   dnl only sense for gettext.  We comment this out for non-gettext
   dnl packages.
   if test "$PACKAGE" = "gettext"; then
     GT_NO="#NO#"
     GT_YES=
   else
     GT_NO=
     GT_YES="#YES#"
   fi
   AC_SUBST(GT_NO)
   AC_SUBST(GT_YES)

   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 *** For now the libtool support in intl/Makefile is not for real.
   l=
   AC_SUBST(l)

   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
  ])

# Search path for a program which passes the given test.
# Ulrich Drepper <drepper@cygnus.com>, 1996.
#
# 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.
# Please note that the actual code is *not* freely available.

# serial 1

dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
AC_DEFUN(AM_PATH_PROG_WITH_TEST,
[# 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 -n "[$]$1"; then
  AC_MSG_RESULT([$]$1)
else
  AC_MSG_RESULT(no)
fi
AC_SUBST($1)dnl
])

# Check whether LC_MESSAGES is available in <locale.h>.
# Ulrich Drepper <drepper@cygnus.com>, 1995.
#
# 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.
# Please note that the actual code is *not* freely available.

# serial 1

AC_DEFUN(AM_LC_MESSAGES,
  [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)
    fi
  fi])

# Configure paths for GTK+
# Owen Taylor     97-11-3

dnl AM_PATH_GTK([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
dnl Test for GTK, and define GTK_CFLAGS and GTK_LIBS
dnl
AC_DEFUN(AM_PATH_GTK,
[dnl 
dnl Get the cflags and libraries from the gtk-config script
dnl
AC_ARG_WITH(gtk-prefix,[  --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)],
            gtk_config_prefix="$withval", gtk_config_prefix="")
AC_ARG_WITH(gtk-exec-prefix,[  --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)],
            gtk_config_exec_prefix="$withval", gtk_config_exec_prefix="")
AC_ARG_ENABLE(gtktest, [  --disable-gtktest       Do not try to compile and run a test GTK program],
		    , enable_gtktest=yes)

  for module in . $4
  do
      case "$module" in
         gthread) 
             gtk_config_args="$gtk_config_args gthread"
         ;;
      esac
  done

  if test x$gtk_config_exec_prefix != x ; then
     gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
     if test x${GTK_CONFIG+set} != xset ; then
        GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
     fi
  fi
  if test x$gtk_config_prefix != x ; then
     gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
     if test x${GTK_CONFIG+set} != xset ; then
        GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
     fi
  fi

  AC_PATH_PROG(GTK_CONFIG, gtk-config, no)
  min_gtk_version=ifelse([$1], ,0.99.7,$1)
  AC_MSG_CHECKING(for GTK - version >= $min_gtk_version)
  no_gtk=""
  if test "$GTK_CONFIG" = "no" ; then
    no_gtk=yes
  else
    GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
    GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
    gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
    gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
    gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
    if test "x$enable_gtktest" = "xyes" ; then
      ac_save_CFLAGS="$CFLAGS"
      ac_save_LIBS="$LIBS"
      CFLAGS="$CFLAGS $GTK_CFLAGS"
      LIBS="$GTK_LIBS $LIBS"
dnl
dnl Now check if the installed GTK is sufficiently new. (Also sanity
dnl checks the results of gtk-config to some extent
dnl
      rm -f conf.gtktest
      AC_TRY_RUN([
#include <gtk/gtk.h>
#include <stdio.h>
#include <stdlib.h>

int 
main ()
{
  int major, minor, micro;
  char *tmp_version;

  system ("touch conf.gtktest");

  /* HP/UX 9 (%@#!) writes to sscanf strings */
  tmp_version = g_strdup("$min_gtk_version");
  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
     printf("%s, bad version string\n", "$min_gtk_version");
     exit(1);
   }

  if ((gtk_major_version != $gtk_config_major_version) ||
      (gtk_minor_version != $gtk_config_minor_version) ||
      (gtk_micro_version != $gtk_config_micro_version))
    {
      printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
             $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
             gtk_major_version, gtk_minor_version, gtk_micro_version);
      printf ("*** was found! If gtk-config was correct, then it is best\n");
      printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
      printf("*** required on your system.\n");
      printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
      printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
      printf("*** before re-running configure\n");
    } 
#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
  else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
	   (gtk_minor_version != GTK_MINOR_VERSION) ||
           (gtk_micro_version != GTK_MICRO_VERSION))
    {
      printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
	     GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
      printf("*** library (version %d.%d.%d)\n",
	     gtk_major_version, gtk_minor_version, gtk_micro_version);
    }
#endif /* defined (GTK_MAJOR_VERSION) ... */
  else
    {
      if ((gtk_major_version > major) ||
        ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
        ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
      {
        return 0;
       }
     else
      {
        printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
               gtk_major_version, gtk_minor_version, gtk_micro_version);
        printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
	       major, minor, micro);
        printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
        printf("***\n");
        printf("*** If you have already installed a sufficiently new version, this error\n");
        printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
        printf("*** being found. The easiest way to fix this is to remove the old version\n");
        printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
        printf("*** correct copy of gtk-config. (In this case, you will have to\n");
        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
        printf("*** so that the correct libraries are found at run-time))\n");
      }
    }
  return 1;
}
],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
       CFLAGS="$ac_save_CFLAGS"
       LIBS="$ac_save_LIBS"
     fi
  fi
  if test "x$no_gtk" = x ; then
     AC_MSG_RESULT(yes)
     ifelse([$2], , :, [$2])     
  else
     AC_MSG_RESULT(no)
     if test "$GTK_CONFIG" = "no" ; then
       echo "*** The gtk-config script installed by GTK could not be found"
       echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
       echo "*** your path, or set the GTK_CONFIG environment variable to the"
       echo "*** full path to gtk-config."
     else
       if test -f conf.gtktest ; then
        :
       else
          echo "*** Could not run GTK test program, checking why..."
          CFLAGS="$CFLAGS $GTK_CFLAGS"
          LIBS="$LIBS $GTK_LIBS"
          AC_TRY_LINK([
#include <gtk/gtk.h>
#include <stdio.h>
],      [ return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ],
        [ echo "*** The test program compiled, but did not run. This usually means"
          echo "*** that the run-time linker is not finding GTK or finding the wrong"
          echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
          echo "*** is required on your system"
	  echo "***"
          echo "*** If you have an old version installed, it is best to remove it, although"
          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
          echo "***"
          echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
          echo "*** came with the system with the command"
          echo "***"
          echo "***    rpm --erase --nodeps gtk gtk-devel" ],
        [ echo "*** The test program failed to compile or link. See the file config.log for the"
          echo "*** exact error that occured. This usually means GTK was incorrectly installed"
          echo "*** or that you have moved GTK since it was installed. In the latter case, you"
          echo "*** may want to edit the gtk-config script: $GTK_CONFIG" ])
          CFLAGS="$ac_save_CFLAGS"
          LIBS="$ac_save_LIBS"
       fi
     fi
     GTK_CFLAGS=""
     GTK_LIBS=""
     ifelse([$3], , :, [$3])
  fi
  AC_SUBST(GTK_CFLAGS)
  AC_SUBST(GTK_LIBS)
  rm -f conf.gtktest
])

jpilot-0.99/address.c0100644000175000001440000002572407237615552013643 0ustar  mouseusers/* address.c
 *
 * Copyright (C) 1999 by Judd Montgomery
 *
 * 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; version 2 of the License.
 *
 * 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 "config.h"
#include "i18n.h"
#include <stdio.h>
#include <ctype.h>
#include <pi-source.h>
#include <pi-socket.h>
#include <pi-address.h>
#include <pi-dlp.h>
#include "address.h"
#include "utils.h"
#include "log.h"
#include "prefs.h"
#include "libplugin.h"
#include "password.h"

#include "japanese.h"
#include "cp1250.h"
#include "russian.h"

#define ADDRESS_EOF 7

static int glob_sort_by_company;
int sort_override=0;

#ifdef JPILOT_DEBUG
int print_address_list(AddressList **al)
{
   AddressList *temp_al, *prev_al, *next;

   for (prev_al=NULL, temp_al=*al; temp_al;
	prev_al=temp_al, temp_al=temp_al->next) {
      jpilot_logf(LOG_FILE | LOG_STDOUT, "entry[0]=[%s]\n", temp_al->ma.a.entry[0]);
   }
}
#endif

int address_compare(const void *v1, const void *v2)
{
   char *str1, *str2;
   int sort1, sort2, sort3;
   AddressList **al1, **al2;
   struct Address *a1, *a2;
   int i;

   al1=(AddressList **)v1;
   al2=(AddressList **)v2;
   
   a1=&((*al1)->ma.a);
   a2=&((*al2)->ma.a);

   if (glob_sort_by_company) {
      sort1=2; /*company */
      sort2=0; /*last name */
      sort3=1; /*first name */
   } else {
      sort1=0; /*last name */
      sort2=1; /*first name */
      sort3=2; /*company */
   }
   /*sort_by_company: */
   /*0 last, first or */
   /*1 company, last */
   
   str1=str2=NULL;
   
   if (a1->entry[sort1] || a1->entry[sort2]) {
      if (a1->entry[sort1] && a1->entry[sort2]) {
	 if ((str1 = (char *)malloc(strlen(a1->entry[sort1])+strlen(a1->entry[sort2])+1)) == NULL) {
	    return 0;
	 }	      
	 strcpy(str1, a1->entry[sort1]);
	 strcat(str1, a1->entry[sort2]);
      }
      if (a1->entry[sort1] && (!a1->entry[sort2])) {
	 if ((str1 = (char *)malloc(strlen(a1->entry[sort1])+1)) == NULL) {
	    return 0;
	 }
	 strcpy(str1, a1->entry[sort1]);
      }
      if ((!a1->entry[sort1]) && a1->entry[sort2]) {
	 if ((str1 = (char *)malloc(strlen(a1->entry[sort2])+1)) == NULL) {
	    return 0;
	 }
	 strcpy(str1, a1->entry[sort2]);
      }
   } else if (a1->entry[sort3]) {
      if ((str1 = (char *)malloc(strlen(a1->entry[sort3])+1)) == NULL) {
	 return 0;
      }
      strcpy(str1, a1->entry[sort3]);
   } else {
      return -1;
   }

   if (a2->entry[sort1] || a2->entry[sort2]) {
      if (a2->entry[sort1] && a2->entry[sort2]) {
	 if ((str2 = (char *)malloc(strlen(a2->entry[sort1])+strlen(a2->entry[sort2])+1)) == NULL) {
	    return 0;
	 }	      
	 strcpy(str2, a2->entry[sort1]);
	 strcat(str2, a2->entry[sort2]);
      }
      if (a2->entry[sort1] && (!a2->entry[sort2])) {
	 if ((str2 = (char *)malloc(strlen(a2->entry[sort1])+1)) == NULL) {
	    return 0;
	 }	      
	 strcpy(str2, a2->entry[sort1]);
      }
      if ((!a2->entry[sort1]) && a2->entry[sort2]) {
	 if ((str2 = (char *)malloc(strlen(a2->entry[sort2])+1)) == NULL) {
	    return 0;
	 }	      
	 strcpy(str2, a2->entry[sort2]);
      }
   } else if (a2->entry[sort3]) {
      if ((str2 = (char *)malloc(strlen(a2->entry[sort3])+1)) == NULL) {
	 return 0;
      }	      
      strcpy(str2, a2->entry[sort3]);
   } else {
      free(str1);
      return 1;
   }

   /* lower case the strings for a better compare */
   for (i=strlen(str1)-1; i >= 0; i--) {
      str1[i] = tolower(str1[i]);
   }
   for (i=strlen(str2)-1; i >= 0; i--) {
      str2[i] = tolower(str2[i]);
   }

   i = strcoll(str2, str1);
   if (str1) {
      free(str1);
   }
   if (str2) {
      free(str2);
   }
   return i;
}

/* 
 * sort_order: 0=descending,  1=ascending
 */
int address_sort(AddressList **al, int sort_order)
{
   AddressList *temp_al;
   AddressList **sort_al;
   struct AddressAppInfo ai;
   int count, i;

   /* Count the entries in the list */
   for (count=0, temp_al=*al; temp_al; temp_al=temp_al->next, count++) {
      ;
   }

   if (count<2) {
      /* We don't have to sort less than 2 items */
      return 0;
   }

   get_address_app_info(&ai);
   glob_sort_by_company = ai.sortByCompany;
   if (sort_override) {
      glob_sort_by_company = !(ai.sortByCompany & 1);
   }

   /* Allocate an array to be qsorted */
   sort_al = calloc(count, sizeof(AddressList *));
   if (!sort_al) {
      jpilot_logf(LOG_WARN, "address_sort(): Out of Memory\n");
      return 0;
   }
   
   /* Set our array to be a list of pointers to the nodes in the linked list */
   for (i=0, temp_al=*al; temp_al; temp_al=temp_al->next, i++) {
      sort_al[i] = temp_al;
   }

   /* qsort them */
   qsort(sort_al, count, sizeof(AddressList *), address_compare);

   /* Put the linked list in the order of the array */
   if (sort_order==SORT_ASCENDING) {
      for (i=count-1; i>0; i--) {
	 sort_al[i]->next=sort_al[i-1];
      }
      sort_al[0]->next = NULL;
      *al = sort_al[count-1];
   } else {
      /* Descending order */
      sort_al[count-1]->next = NULL;
      for (i=count-1; i; i--) {
	 sort_al[i-1]->next=sort_al[i];
      }
      *al = sort_al[0];
   }

   free(sort_al);

   return 0;
}

int pc_address_write(struct Address *a, PCRecType rt, unsigned char attrib,
		     unsigned int *unique_id)
{
   char record[65536];
   int rec_len;
   buf_rec br;

   rec_len = pack_Address(a, record, 65535);
   if (!rec_len) {
      PRINT_FILE_LINE;
      jpilot_logf(LOG_WARN, "pack_Address %s\n", _("error"));
      return -1;
   }
   br.rt=rt;
   br.attrib = attrib;
   br.buf = record;
   br.size = rec_len;
   
   jp_pc_write("AddressDB", &br);
   *unique_id = br.unique_id;
   
   return 0;
}

void free_AddressList(AddressList **al)
{
   AddressList *temp_al, *temp_al_next;

   for (temp_al = *al; temp_al; temp_al=temp_al_next) {
      free_Address(&(temp_al->ma.a));
      temp_al_next = temp_al->next;
      free(temp_al);
   }
   *al = NULL;
}

int get_address_app_info(struct AddressAppInfo *ai)
{
   int num;
   unsigned int rec_size;
   unsigned char *buf;
   long char_set;

   bzero(ai, sizeof(*ai));

   jp_get_app_info("AddressDB", &buf, &rec_size);
   num = unpack_AddressAppInfo(ai, buf, rec_size);
   if (buf) {
      free(buf);
   }
   if (num <= 0) {
      jpilot_logf(LOG_WARN, _("Error reading"), "AddressDB.pdb");
      return -1;
   }
	 
   get_pref(PREF_CHAR_SET, &char_set, NULL);
   if (char_set==CHAR_SET_JAPANESE || 
       char_set==CHAR_SET_1250 ||
       char_set==CHAR_SET_1251 ||
       char_set==CHAR_SET_1251_B
       ) {
      /* Convert to character set */
	{
	   int i;
	   for (i = 0; i < 16; i++)
	     if (ai->category.name[i][0] != '\0') {
   		if (char_set==CHAR_SET_JAPANESE) Sjis2Euc(ai->category.name[i], 16);
   		if (char_set==CHAR_SET_1250) Win2Lat(ai->category.name[i], 16);
   		if (char_set==CHAR_SET_1251) win1251_to_koi8(ai->category.name[i], 16);
	     }
	   for (i = 0; i < 19 + 3; i++)
	     if (ai->labels[i][0] != '\0') {
   		if (char_set==CHAR_SET_JAPANESE) Sjis2Euc(ai->labels[i], 16);
   		if (char_set==CHAR_SET_1250) Win2Lat(ai->labels[i], 16);
   		if (char_set==CHAR_SET_1251) win1251_to_koi8(ai->labels[i], 16);
   		if (char_set==CHAR_SET_1251_B) koi8_to_win1251(ai->labels[i], 16);
	     }
	   for (i = 0; i < 8; i++)
	     if (ai->phoneLabels[i][0] != '\0') {
   		if (char_set==CHAR_SET_JAPANESE) Sjis2Euc(ai->phoneLabels[i], 16);
   		if (char_set==CHAR_SET_1250) Win2Lat(ai->phoneLabels[i], 16);
   		if (char_set==CHAR_SET_1251) win1251_to_koi8(ai->phoneLabels[i], 16);
   		if (char_set==CHAR_SET_1251_B) koi8_to_win1251(ai->phoneLabels[i], 16);
	     }
	}
   }

   return 0;
}

int get_addresses(AddressList **address_list, int sort_order)
{
   return get_addresses2(address_list, sort_order, 1, 1, 1, CATEGORY_ALL);
}
/* 
 * sort_order: 0=descending,  1=ascending
 * modified, deleted and private, 0 for no, 1 for yes, 2 for use prefs
 */
int get_addresses2(AddressList **address_list, int sort_order,
		  int modified, int deleted, int privates, int category)
{
   GList *records;
   GList *temp_list;
   int recs_returned, i, num;
   struct Address a;
   AddressList *temp_a_list;
   long keep_modified, keep_deleted;
   int keep_priv;
   long char_set;
   buf_rec *br;
  
   jpilot_logf(LOG_DEBUG, "get_addresses2()\n");
   if (modified==2) {
      get_pref(PREF_SHOW_MODIFIED, &keep_modified, NULL);
   } else {
      keep_modified = modified;
   }
   if (deleted==2) {
      get_pref(PREF_SHOW_DELETED, &keep_deleted, NULL);
   } else {
      keep_deleted = deleted;
   }
   if (privates==2) {
      keep_priv = show_privates(GET_PRIVATES, NULL);
   } else {
      keep_priv = privates;
   }

   *address_list=NULL;
   recs_returned = 0;

   num = jp_read_DB_files("AddressDB", &records);
   /* Go to first entry in the list */
   for (temp_list = records; temp_list; temp_list = temp_list->prev) {
      records = temp_list;
   }
   for (i=0, temp_list = records; temp_list; temp_list = temp_list->next, i++) {
      if (temp_list->data) {
	 br=temp_list->data;
      } else {
	 continue;
      }
      if (!br->buf) {
	 continue;
      }

      if ( ((br->rt==DELETED_PALM_REC) && (!keep_deleted)) ||
	  ((br->rt==MODIFIED_PALM_REC) && (!keep_modified)) ) {
	 continue;
      }
      if ((keep_priv != SHOW_PRIVATES) && 
	  (br->attrib & dlpRecAttrSecret)) {
	 continue;
      }

      num = unpack_Address(&a, br->buf, br->size);

      if (num <= 0) {
	 continue;
      }

      if ( ((br->attrib & 0x0F) != category) && category != CATEGORY_ALL) {
	 continue;
      }

      get_pref(PREF_CHAR_SET, &char_set, NULL);
      if (char_set==CHAR_SET_JAPANESE || 
	  char_set==CHAR_SET_1250 ||
	  char_set==CHAR_SET_1251 ||
	  char_set==CHAR_SET_1251_B
	  ) {
	 int i;
	 for (i = 0; i < 19; i++) {
	    if (char_set==CHAR_SET_JAPANESE) Sjis2Euc(a.entry[i], 65536);
	    if (char_set==CHAR_SET_1250) Win2Lat(a.entry[i], 65536);
	    if (char_set==CHAR_SET_1251) win1251_to_koi8(a.entry[i], 65536);
	    if (char_set==CHAR_SET_1251_B) koi8_to_win1251(a.entry[i], 65536);
	 }
      }

      temp_a_list = malloc(sizeof(AddressList));
      if (!temp_a_list) {
	 jpilot_logf(LOG_WARN, "get_addresses2(): Out of memory\n");
	 break;
      }
      memcpy(&(temp_a_list->ma.a), &a, sizeof(struct Address));
      temp_a_list->app_type = ADDRESS;
      temp_a_list->ma.rt = br->rt;
      temp_a_list->ma.attrib = br->attrib;
      temp_a_list->ma.unique_id = br->unique_id;
      temp_a_list->next = *address_list;
      *address_list = temp_a_list;
      recs_returned++;
   }

   jp_free_DB_records(&records);

#ifdef JPILOT_DEBUG
   print_address_list(address_list);
#endif
   address_sort(address_list, sort_order);

   jpilot_logf(LOG_DEBUG, "Leaving get_addresses2()\n");

   return recs_returned;
}
jpilot-0.99/address.h0100644000175000001440000000271407237614453013641 0ustar  mouseusers/* address.h
 * 
 * Copyright (C) 1999 by Judd Montgomery
 *
 * 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; version 2 of the License.
 *
 * 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 __ADDRESS_H__
#define __ADDRESS_H__

#include <pi-address.h>
#include "utils.h"

/* This flag will force sorting other than on the palm
 * 0 on palm: by lastname, first
 * 1 on palm: by company
 * 0 will sort same as on palm
 * 1 will reverse it
 */
extern int sort_override;

int get_address_app_info(struct AddressAppInfo *aai);
int pc_address_write(struct Address *a, PCRecType rt, unsigned char attrib,
		     unsigned int *unqiue_id);
void free_AddressList(AddressList **al);
/* 
 * sort_order: 0=descending,  1=ascending
 */
int get_addresses(AddressList **address_list, int sort_order);
int get_addresses2(AddressList **address_list, int sort_order,
		  int modified, int deleted, int privates, int category);

int address_print();

#endif
jpilot-0.99/address.xpm0100644000175000001440000001654707117603716014224 0ustar  mouseusers/* XPM */
static char * address_xpm[] = {
"40 40 257 2",
"  	c None",
". 	c #383638",
"+ 	c #509B9B",
"@ 	c #326A6C",
"# 	c #80CFCE",
"$ 	c #6F6969",
"% 	c #8F9C89",
"& 	c #71837A",
"* 	c #38514C",
"= 	c #A1B6B7",
"- 	c #8F8581",
"; 	c #498485",
"> 	c #94AB97",
", 	c #565254",
"' 	c #5DB7B7",
") 	c #7D8F7D",
"! 	c #566666",
"~ 	c #C4CFD2",
"{ 	c #394340",
"] 	c #737778",
"^ 	c #7A9AB4",
"/ 	c #B8B9B2",
"( 	c #D3EBEE",
"_ 	c #A89D97",
": 	c #527A7C",
"< 	c #939CA5",
"[ 	c #808381",
"} 	c #395C5D",
"| 	c #A9ABA2",
"1 	c #5A5B5E",
"2 	c #C4DEE6",
"3 	c #837972",
"4 	c #4B4649",
"5 	c #55ABAB",
"6 	c #7C90A0",
"7 	c #90908F",
"8 	c #666869",
"9 	c #5A8789",
"0 	c #B9C2BC",
"a 	c #4A353B",
"b 	c #6A5E5E",
"c 	c #B1C2C2",
"d 	c #92A391",
"e 	c #727985",
"f 	c #94ABB9",
"g 	c #4A4F4F",
"h 	c #4A9091",
"i 	c #D2D1D3",
"j 	c #79B7B4",
"k 	c #7F6E6B",
"l 	c #71838F",
"m 	c #9F9189",
"n 	c #434443",
"o 	c #6FADAE",
"p 	c #5A5E6C",
"q 	c #393C3A",
"r 	c #467879",
"s 	c #5F9C9D",
"t 	c #80858D",
"u 	c #83917F",
"v 	c #A9B6B2",
"w 	c #706F6B",
"x 	c #696F6B",
"y 	c #829A87",
"z 	c #C7C5C7",
"A 	c #C5D6DC",
"B 	c #8F929C",
"C 	c #89A290",
"D 	c #95A3AA",
"E 	c #515B53",
"F 	c #51525C",
"G 	c #7B7877",
"H 	c #A7ADB1",
"I 	c #E7EDEE",
"J 	c #68C2C6",
"K 	c #697778",
"L 	c #9D9C97",
"M 	c #635D5F",
"N 	c #57494F",
"O 	c #AEB8BE",
"P 	c #9CAB96",
"Q 	c #D8E1E3",
"R 	c #454A44",
"S 	c #B9CFD6",
"T 	c #92968F",
"U 	c #5E6F73",
"V 	c #66ABAD",
"W 	c #87919D",
"X 	c #BBC4C9&q