wmmemload: Add version 0.1.6 to repository.
Obtained from: http://ftp.de.debian.org/debian/pool/main/w/wmmemload/wmmemload_0.1.6.orig.tar.gz
This commit is contained in:
parent
3ca8afb4af
commit
a15c2e2029
5
wmmemload/AUTHORS
Normal file
5
wmmemload/AUTHORS
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
Main Author:
|
||||||
|
Mark Staggs <me@markstaggs.net>
|
||||||
|
|
||||||
|
Based largely on work on WMMemMon and WMCPULoad done by:
|
||||||
|
Seiichi SATO <ssato@sh.rim.or.jp>
|
340
wmmemload/COPYING
Normal file
340
wmmemload/COPYING
Normal file
|
@ -0,0 +1,340 @@
|
||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
Version 2, June 1991
|
||||||
|
|
||||||
|
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
||||||
|
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The licenses for most software are designed to take away your
|
||||||
|
freedom to share and change it. By contrast, the GNU General Public
|
||||||
|
License is intended to guarantee your freedom to share and change free
|
||||||
|
software--to make sure the software is free for all its users. This
|
||||||
|
General Public License applies to most of the Free Software
|
||||||
|
Foundation's software and to any other program whose authors commit to
|
||||||
|
using it. (Some other Free Software Foundation software is covered by
|
||||||
|
the GNU Library General Public License instead.) You can apply it to
|
||||||
|
your programs, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
this service if you wish), that you receive source code or can get it
|
||||||
|
if you want it, that you can change the software or use pieces of it
|
||||||
|
in new free programs; and that you know you can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to make restrictions that forbid
|
||||||
|
anyone to deny you these rights or to ask you to surrender the rights.
|
||||||
|
These restrictions translate to certain responsibilities for you if you
|
||||||
|
distribute copies of the software, or if you modify it.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether
|
||||||
|
gratis or for a fee, you must give the recipients all the rights that
|
||||||
|
you have. You must make sure that they, too, receive or can get the
|
||||||
|
source code. And you must show them these terms so they know their
|
||||||
|
rights.
|
||||||
|
|
||||||
|
We protect your rights with two steps: (1) copyright the software, and
|
||||||
|
(2) offer you this license which gives you legal permission to copy,
|
||||||
|
distribute and/or modify the software.
|
||||||
|
|
||||||
|
Also, for each author's protection and ours, we want to make certain
|
||||||
|
that everyone understands that there is no warranty for this free
|
||||||
|
software. If the software is modified by someone else and passed on, we
|
||||||
|
want its recipients to know that what they have is not the original, so
|
||||||
|
that any problems introduced by others will not reflect on the original
|
||||||
|
authors' reputations.
|
||||||
|
|
||||||
|
Finally, any free program is threatened constantly by software
|
||||||
|
patents. We wish to avoid the danger that redistributors of a free
|
||||||
|
program will individually obtain patent licenses, in effect making the
|
||||||
|
program proprietary. To prevent this, we have made it clear that any
|
||||||
|
patent must be licensed for everyone's free use or not licensed at all.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||||
|
|
||||||
|
0. This License applies to any program or other work which contains
|
||||||
|
a notice placed by the copyright holder saying it may be distributed
|
||||||
|
under the terms of this General Public License. The "Program", below,
|
||||||
|
refers to any such program or work, and a "work based on the Program"
|
||||||
|
means either the Program or any derivative work under copyright law:
|
||||||
|
that is to say, a work containing the Program or a portion of it,
|
||||||
|
either verbatim or with modifications and/or translated into another
|
||||||
|
language. (Hereinafter, translation is included without limitation in
|
||||||
|
the term "modification".) Each licensee is addressed as "you".
|
||||||
|
|
||||||
|
Activities other than copying, distribution and modification are not
|
||||||
|
covered by this License; they are outside its scope. The act of
|
||||||
|
running the Program is not restricted, and the output from the Program
|
||||||
|
is covered only if its contents constitute a work based on the
|
||||||
|
Program (independent of having been made by running the Program).
|
||||||
|
Whether that is true depends on what the Program does.
|
||||||
|
|
||||||
|
1. You may copy and distribute verbatim copies of the Program's
|
||||||
|
source code as you receive it, in any medium, provided that you
|
||||||
|
conspicuously and appropriately publish on each copy an appropriate
|
||||||
|
copyright notice and disclaimer of warranty; keep intact all the
|
||||||
|
notices that refer to this License and to the absence of any warranty;
|
||||||
|
and give any other recipients of the Program a copy of this License
|
||||||
|
along with the Program.
|
||||||
|
|
||||||
|
You may charge a fee for the physical act of transferring a copy, and
|
||||||
|
you may at your option offer warranty protection in exchange for a fee.
|
||||||
|
|
||||||
|
2. You may modify your copy or copies of the Program or any portion
|
||||||
|
of it, thus forming a work based on the Program, and copy and
|
||||||
|
distribute such modifications or work under the terms of Section 1
|
||||||
|
above, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) You must cause the modified files to carry prominent notices
|
||||||
|
stating that you changed the files and the date of any change.
|
||||||
|
|
||||||
|
b) You must cause any work that you distribute or publish, that in
|
||||||
|
whole or in part contains or is derived from the Program or any
|
||||||
|
part thereof, to be licensed as a whole at no charge to all third
|
||||||
|
parties under the terms of this License.
|
||||||
|
|
||||||
|
c) If the modified program normally reads commands interactively
|
||||||
|
when run, you must cause it, when started running for such
|
||||||
|
interactive use in the most ordinary way, to print or display an
|
||||||
|
announcement including an appropriate copyright notice and a
|
||||||
|
notice that there is no warranty (or else, saying that you provide
|
||||||
|
a warranty) and that users may redistribute the program under
|
||||||
|
these conditions, and telling the user how to view a copy of this
|
||||||
|
License. (Exception: if the Program itself is interactive but
|
||||||
|
does not normally print such an announcement, your work based on
|
||||||
|
the Program is not required to print an announcement.)
|
||||||
|
|
||||||
|
These requirements apply to the modified work as a whole. If
|
||||||
|
identifiable sections of that work are not derived from the Program,
|
||||||
|
and can be reasonably considered independent and separate works in
|
||||||
|
themselves, then this License, and its terms, do not apply to those
|
||||||
|
sections when you distribute them as separate works. But when you
|
||||||
|
distribute the same sections as part of a whole which is a work based
|
||||||
|
on the Program, the distribution of the whole must be on the terms of
|
||||||
|
this License, whose permissions for other licensees extend to the
|
||||||
|
entire whole, and thus to each and every part regardless of who wrote it.
|
||||||
|
|
||||||
|
Thus, it is not the intent of this section to claim rights or contest
|
||||||
|
your rights to work written entirely by you; rather, the intent is to
|
||||||
|
exercise the right to control the distribution of derivative or
|
||||||
|
collective works based on the Program.
|
||||||
|
|
||||||
|
In addition, mere aggregation of another work not based on the Program
|
||||||
|
with the Program (or with a work based on the Program) on a volume of
|
||||||
|
a storage or distribution medium does not bring the other work under
|
||||||
|
the scope of this License.
|
||||||
|
|
||||||
|
3. You may copy and distribute the Program (or a work based on it,
|
||||||
|
under Section 2) in object code or executable form under the terms of
|
||||||
|
Sections 1 and 2 above provided that you also do one of the following:
|
||||||
|
|
||||||
|
a) Accompany it with the complete corresponding machine-readable
|
||||||
|
source code, which must be distributed under the terms of Sections
|
||||||
|
1 and 2 above on a medium customarily used for software interchange; or,
|
||||||
|
|
||||||
|
b) Accompany it with a written offer, valid for at least three
|
||||||
|
years, to give any third party, for a charge no more than your
|
||||||
|
cost of physically performing source distribution, a complete
|
||||||
|
machine-readable copy of the corresponding source code, to be
|
||||||
|
distributed under the terms of Sections 1 and 2 above on a medium
|
||||||
|
customarily used for software interchange; or,
|
||||||
|
|
||||||
|
c) Accompany it with the information you received as to the offer
|
||||||
|
to distribute corresponding source code. (This alternative is
|
||||||
|
allowed only for noncommercial distribution and only if you
|
||||||
|
received the program in object code or executable form with such
|
||||||
|
an offer, in accord with Subsection b above.)
|
||||||
|
|
||||||
|
The source code for a work means the preferred form of the work for
|
||||||
|
making modifications to it. For an executable work, complete source
|
||||||
|
code means all the source code for all modules it contains, plus any
|
||||||
|
associated interface definition files, plus the scripts used to
|
||||||
|
control compilation and installation of the executable. However, as a
|
||||||
|
special exception, the source code distributed need not include
|
||||||
|
anything that is normally distributed (in either source or binary
|
||||||
|
form) with the major components (compiler, kernel, and so on) of the
|
||||||
|
operating system on which the executable runs, unless that component
|
||||||
|
itself accompanies the executable.
|
||||||
|
|
||||||
|
If distribution of executable or object code is made by offering
|
||||||
|
access to copy from a designated place, then offering equivalent
|
||||||
|
access to copy the source code from the same place counts as
|
||||||
|
distribution of the source code, even though third parties are not
|
||||||
|
compelled to copy the source along with the object code.
|
||||||
|
|
||||||
|
4. You may not copy, modify, sublicense, or distribute the Program
|
||||||
|
except as expressly provided under this License. Any attempt
|
||||||
|
otherwise to copy, modify, sublicense or distribute the Program is
|
||||||
|
void, and will automatically terminate your rights under this License.
|
||||||
|
However, parties who have received copies, or rights, from you under
|
||||||
|
this License will not have their licenses terminated so long as such
|
||||||
|
parties remain in full compliance.
|
||||||
|
|
||||||
|
5. You are not required to accept this License, since you have not
|
||||||
|
signed it. However, nothing else grants you permission to modify or
|
||||||
|
distribute the Program or its derivative works. These actions are
|
||||||
|
prohibited by law if you do not accept this License. Therefore, by
|
||||||
|
modifying or distributing the Program (or any work based on the
|
||||||
|
Program), you indicate your acceptance of this License to do so, and
|
||||||
|
all its terms and conditions for copying, distributing or modifying
|
||||||
|
the Program or works based on it.
|
||||||
|
|
||||||
|
6. Each time you redistribute the Program (or any work based on the
|
||||||
|
Program), the recipient automatically receives a license from the
|
||||||
|
original licensor to copy, distribute or modify the Program subject to
|
||||||
|
these terms and conditions. You may not impose any further
|
||||||
|
restrictions on the recipients' exercise of the rights granted herein.
|
||||||
|
You are not responsible for enforcing compliance by third parties to
|
||||||
|
this License.
|
||||||
|
|
||||||
|
7. If, as a consequence of a court judgment or allegation of patent
|
||||||
|
infringement or for any other reason (not limited to patent issues),
|
||||||
|
conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot
|
||||||
|
distribute so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you
|
||||||
|
may not distribute the Program at all. For example, if a patent
|
||||||
|
license would not permit royalty-free redistribution of the Program by
|
||||||
|
all those who receive copies directly or indirectly through you, then
|
||||||
|
the only way you could satisfy both it and this License would be to
|
||||||
|
refrain entirely from distribution of the Program.
|
||||||
|
|
||||||
|
If any portion of this section is held invalid or unenforceable under
|
||||||
|
any particular circumstance, the balance of the section is intended to
|
||||||
|
apply and the section as a whole is intended to apply in other
|
||||||
|
circumstances.
|
||||||
|
|
||||||
|
It is not the purpose of this section to induce you to infringe any
|
||||||
|
patents or other property right claims or to contest validity of any
|
||||||
|
such claims; this section has the sole purpose of protecting the
|
||||||
|
integrity of the free software distribution system, which is
|
||||||
|
implemented by public license practices. Many people have made
|
||||||
|
generous contributions to the wide range of software distributed
|
||||||
|
through that system in reliance on consistent application of that
|
||||||
|
system; it is up to the author/donor to decide if he or she is willing
|
||||||
|
to distribute software through any other system and a licensee cannot
|
||||||
|
impose that choice.
|
||||||
|
|
||||||
|
This section is intended to make thoroughly clear what is believed to
|
||||||
|
be a consequence of the rest of this License.
|
||||||
|
|
||||||
|
8. If the distribution and/or use of the Program is restricted in
|
||||||
|
certain countries either by patents or by copyrighted interfaces, the
|
||||||
|
original copyright holder who places the Program under this License
|
||||||
|
may add an explicit geographical distribution limitation excluding
|
||||||
|
those countries, so that distribution is permitted only in or among
|
||||||
|
countries not thus excluded. In such case, this License incorporates
|
||||||
|
the limitation as if written in the body of this License.
|
||||||
|
|
||||||
|
9. The Free Software Foundation may publish revised and/or new versions
|
||||||
|
of the General Public License from time to time. Such new versions will
|
||||||
|
be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the Program
|
||||||
|
specifies a version number of this License which applies to it and "any
|
||||||
|
later version", you have the option of following the terms and conditions
|
||||||
|
either of that version or of any later version published by the Free
|
||||||
|
Software Foundation. If the Program does not specify a version number of
|
||||||
|
this License, you may choose any version ever published by the Free Software
|
||||||
|
Foundation.
|
||||||
|
|
||||||
|
10. If you wish to incorporate parts of the Program into other free
|
||||||
|
programs whose distribution conditions are different, write to the author
|
||||||
|
to ask for permission. For software which is copyrighted by the Free
|
||||||
|
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||||
|
make exceptions for this. Our decision will be guided by the two goals
|
||||||
|
of preserving the free status of all derivatives of our free software and
|
||||||
|
of promoting the sharing and reuse of software generally.
|
||||||
|
|
||||||
|
NO WARRANTY
|
||||||
|
|
||||||
|
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||||
|
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||||
|
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||||
|
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||||
|
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||||
|
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||||
|
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||||
|
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||||
|
REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||||
|
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||||
|
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||||
|
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||||
|
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||||
|
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||||
|
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||||
|
POSSIBILITY OF SUCH DAMAGES.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest
|
||||||
|
to attach them to the start of each source file to most effectively
|
||||||
|
convey the exclusion of warranty; and each file should have at least
|
||||||
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program; if not, write to the Free Software
|
||||||
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If the program is interactive, make it output a short notice like this
|
||||||
|
when it starts in an interactive mode:
|
||||||
|
|
||||||
|
Gnomovision version 69, Copyright (C) year name of author
|
||||||
|
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
|
This is free software, and you are welcome to redistribute it
|
||||||
|
under certain conditions; type `show c' for details.
|
||||||
|
|
||||||
|
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||||
|
parts of the General Public License. Of course, the commands you use may
|
||||||
|
be called something other than `show w' and `show c'; they could even be
|
||||||
|
mouse-clicks or menu items--whatever suits your program.
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or your
|
||||||
|
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||||
|
necessary. Here is a sample; alter the names:
|
||||||
|
|
||||||
|
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||||
|
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||||
|
|
||||||
|
<signature of Ty Coon>, 1 April 1989
|
||||||
|
Ty Coon, President of Vice
|
||||||
|
|
||||||
|
This General Public License does not permit incorporating your program into
|
||||||
|
proprietary programs. If your program is a subroutine library, you may
|
||||||
|
consider it more useful to permit linking proprietary applications with the
|
||||||
|
library. If this is what you want to do, use the GNU Library General
|
||||||
|
Public License instead of this License.
|
21
wmmemload/ChangeLog
Normal file
21
wmmemload/ChangeLog
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
2003 November 3
|
||||||
|
* Fixed problem with buffers/cache on Linux 2.6.*
|
||||||
|
|
||||||
|
2002 June 24
|
||||||
|
* Fixed backlight background (submitted by Pete ???)
|
||||||
|
|
||||||
|
2002 April 11
|
||||||
|
* Minor clean-up
|
||||||
|
|
||||||
|
2002 April 10
|
||||||
|
* version 0.1.2 released.
|
||||||
|
* Fixed missing middle 0 in 100% for swap and memory (found by Callum M. Duncan)
|
||||||
|
* Removed unnecessary icons directory
|
||||||
|
* Removed unnecessary stamp-h
|
||||||
|
|
||||||
|
2002 April 09
|
||||||
|
* version 0.1.1 released.
|
||||||
|
* Added doc directory to configure.ac (found by Søren Boll Overgaard)
|
||||||
|
|
||||||
|
2002 April 03
|
||||||
|
* version 0.1.0 released. (Initial Release)
|
0
wmmemload/INSTALL
Normal file
0
wmmemload/INSTALL
Normal file
2
wmmemload/Makefile.am
Normal file
2
wmmemload/Makefile.am
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
|
||||||
|
SUBDIRS = src doc
|
362
wmmemload/Makefile.in
Normal file
362
wmmemload/Makefile.in
Normal file
|
@ -0,0 +1,362 @@
|
||||||
|
# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
|
||||||
|
|
||||||
|
# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
# This Makefile.in is free software; the Free Software Foundation
|
||||||
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
|
# with or without modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||||
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
|
# PARTICULAR PURPOSE.
|
||||||
|
|
||||||
|
|
||||||
|
SHELL = @SHELL@
|
||||||
|
|
||||||
|
srcdir = @srcdir@
|
||||||
|
top_srcdir = @top_srcdir@
|
||||||
|
VPATH = @srcdir@
|
||||||
|
prefix = @prefix@
|
||||||
|
exec_prefix = @exec_prefix@
|
||||||
|
|
||||||
|
bindir = @bindir@
|
||||||
|
sbindir = @sbindir@
|
||||||
|
libexecdir = @libexecdir@
|
||||||
|
datadir = @datadir@
|
||||||
|
sysconfdir = @sysconfdir@
|
||||||
|
sharedstatedir = @sharedstatedir@
|
||||||
|
localstatedir = @localstatedir@
|
||||||
|
libdir = @libdir@
|
||||||
|
infodir = @infodir@
|
||||||
|
mandir = @mandir@
|
||||||
|
includedir = @includedir@
|
||||||
|
oldincludedir = /usr/include
|
||||||
|
|
||||||
|
DESTDIR =
|
||||||
|
|
||||||
|
pkgdatadir = $(datadir)/@PACKAGE@
|
||||||
|
pkglibdir = $(libdir)/@PACKAGE@
|
||||||
|
pkgincludedir = $(includedir)/@PACKAGE@
|
||||||
|
|
||||||
|
top_builddir = .
|
||||||
|
|
||||||
|
ACLOCAL = @ACLOCAL@
|
||||||
|
AUTOCONF = @AUTOCONF@
|
||||||
|
AUTOMAKE = @AUTOMAKE@
|
||||||
|
AUTOHEADER = @AUTOHEADER@
|
||||||
|
|
||||||
|
INSTALL = @INSTALL@
|
||||||
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
|
||||||
|
INSTALL_DATA = @INSTALL_DATA@
|
||||||
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||||
|
transform = @program_transform_name@
|
||||||
|
|
||||||
|
NORMAL_INSTALL = :
|
||||||
|
PRE_INSTALL = :
|
||||||
|
POST_INSTALL = :
|
||||||
|
NORMAL_UNINSTALL = :
|
||||||
|
PRE_UNINSTALL = :
|
||||||
|
POST_UNINSTALL = :
|
||||||
|
host_alias = @host_alias@
|
||||||
|
host_triplet = @host@
|
||||||
|
AWK = @AWK@
|
||||||
|
CC = @CC@
|
||||||
|
DFLAGS = @DFLAGS@
|
||||||
|
HEADER_SEARCH_PATH = @HEADER_SEARCH_PATH@
|
||||||
|
LIBRARY_SEARCH_PATH = @LIBRARY_SEARCH_PATH@
|
||||||
|
LIBS = @LIBS@
|
||||||
|
LN_S = @LN_S@
|
||||||
|
MAKEINFO = @MAKEINFO@
|
||||||
|
OS = @OS@
|
||||||
|
PACKAGE = @PACKAGE@
|
||||||
|
SETGID_FLAGS = @SETGID_FLAGS@
|
||||||
|
VERSION = @VERSION@
|
||||||
|
XCFLAGS = @XCFLAGS@
|
||||||
|
XLFLAGS = @XLFLAGS@
|
||||||
|
XLIBS = @XLIBS@
|
||||||
|
X_EXTRA_LIBS = @X_EXTRA_LIBS@
|
||||||
|
X_LIBRARY_PATH = @X_LIBRARY_PATH@
|
||||||
|
|
||||||
|
SUBDIRS = src doc
|
||||||
|
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||||
|
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||||
|
CONFIG_HEADER = config.h
|
||||||
|
CONFIG_CLEAN_FILES =
|
||||||
|
DIST_COMMON = ./stamp-h.in AUTHORS COPYING ChangeLog Makefile.am \
|
||||||
|
Makefile.in THANKS acinclude.m4 aclocal.m4 config.guess config.h.in \
|
||||||
|
config.sub configure configure.ac install-sh missing mkinstalldirs
|
||||||
|
|
||||||
|
|
||||||
|
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
|
|
||||||
|
TAR = gtar
|
||||||
|
GZIP_ENV = --best
|
||||||
|
all: all-redirect
|
||||||
|
.SUFFIXES:
|
||||||
|
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.ac $(ACLOCAL_M4)
|
||||||
|
cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps Makefile
|
||||||
|
|
||||||
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||||
|
cd $(top_builddir) \
|
||||||
|
&& CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||||
|
|
||||||
|
$(ACLOCAL_M4): configure.ac acinclude.m4
|
||||||
|
cd $(srcdir) && $(ACLOCAL)
|
||||||
|
|
||||||
|
config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||||
|
$(SHELL) ./config.status --recheck
|
||||||
|
$(srcdir)/configure: $(srcdir)/configure.ac $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
|
||||||
|
cd $(srcdir) && $(AUTOCONF)
|
||||||
|
|
||||||
|
config.h: stamp-h
|
||||||
|
@if test ! -f $@; then \
|
||||||
|
rm -f stamp-h; \
|
||||||
|
$(MAKE) stamp-h; \
|
||||||
|
else :; fi
|
||||||
|
stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status
|
||||||
|
cd $(top_builddir) \
|
||||||
|
&& CONFIG_FILES= CONFIG_HEADERS=config.h \
|
||||||
|
$(SHELL) ./config.status
|
||||||
|
@echo timestamp > stamp-h 2> /dev/null
|
||||||
|
$(srcdir)/config.h.in: $(srcdir)/stamp-h.in
|
||||||
|
@if test ! -f $@; then \
|
||||||
|
rm -f $(srcdir)/stamp-h.in; \
|
||||||
|
$(MAKE) $(srcdir)/stamp-h.in; \
|
||||||
|
else :; fi
|
||||||
|
$(srcdir)/stamp-h.in: $(top_srcdir)/configure.ac $(ACLOCAL_M4)
|
||||||
|
cd $(top_srcdir) && $(AUTOHEADER)
|
||||||
|
@echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null
|
||||||
|
|
||||||
|
mostlyclean-hdr:
|
||||||
|
|
||||||
|
clean-hdr:
|
||||||
|
|
||||||
|
distclean-hdr:
|
||||||
|
-rm -f config.h
|
||||||
|
|
||||||
|
maintainer-clean-hdr:
|
||||||
|
|
||||||
|
# This directory's subdirectories are mostly independent; you can cd
|
||||||
|
# into them and run `make' without going through this Makefile.
|
||||||
|
# To change the values of `make' variables: instead of editing Makefiles,
|
||||||
|
# (1) if the variable is set in `config.status', edit `config.status'
|
||||||
|
# (which will cause the Makefiles to be regenerated when you run `make');
|
||||||
|
# (2) otherwise, pass the desired values on the `make' command line.
|
||||||
|
|
||||||
|
@SET_MAKE@
|
||||||
|
|
||||||
|
all-recursive install-data-recursive install-exec-recursive \
|
||||||
|
installdirs-recursive install-recursive uninstall-recursive \
|
||||||
|
check-recursive installcheck-recursive info-recursive dvi-recursive:
|
||||||
|
@set fnord $(MAKEFLAGS); amf=$$2; \
|
||||||
|
dot_seen=no; \
|
||||||
|
target=`echo $@ | sed s/-recursive//`; \
|
||||||
|
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||||
|
echo "Making $$target in $$subdir"; \
|
||||||
|
if test "$$subdir" = "."; then \
|
||||||
|
dot_seen=yes; \
|
||||||
|
local_target="$$target-am"; \
|
||||||
|
else \
|
||||||
|
local_target="$$target"; \
|
||||||
|
fi; \
|
||||||
|
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||||
|
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
|
||||||
|
done; \
|
||||||
|
if test "$$dot_seen" = "no"; then \
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
|
||||||
|
fi; test -z "$$fail"
|
||||||
|
|
||||||
|
mostlyclean-recursive clean-recursive distclean-recursive \
|
||||||
|
maintainer-clean-recursive:
|
||||||
|
@set fnord $(MAKEFLAGS); amf=$$2; \
|
||||||
|
dot_seen=no; \
|
||||||
|
rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||||
|
rev="$$subdir $$rev"; \
|
||||||
|
test "$$subdir" != "." || dot_seen=yes; \
|
||||||
|
done; \
|
||||||
|
test "$$dot_seen" = "no" && rev=". $$rev"; \
|
||||||
|
target=`echo $@ | sed s/-recursive//`; \
|
||||||
|
for subdir in $$rev; do \
|
||||||
|
echo "Making $$target in $$subdir"; \
|
||||||
|
if test "$$subdir" = "."; then \
|
||||||
|
local_target="$$target-am"; \
|
||||||
|
else \
|
||||||
|
local_target="$$target"; \
|
||||||
|
fi; \
|
||||||
|
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||||
|
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
|
||||||
|
done && test -z "$$fail"
|
||||||
|
tags-recursive:
|
||||||
|
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||||
|
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
|
||||||
|
done
|
||||||
|
|
||||||
|
tags: TAGS
|
||||||
|
|
||||||
|
ID: $(HEADERS) $(SOURCES) $(LISP)
|
||||||
|
list='$(SOURCES) $(HEADERS)'; \
|
||||||
|
unique=`for i in $$list; do echo $$i; done | \
|
||||||
|
awk ' { files[$$0] = 1; } \
|
||||||
|
END { for (i in files) print i; }'`; \
|
||||||
|
here=`pwd` && cd $(srcdir) \
|
||||||
|
&& mkid -f$$here/ID $$unique $(LISP)
|
||||||
|
|
||||||
|
TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) $(LISP)
|
||||||
|
tags=; \
|
||||||
|
here=`pwd`; \
|
||||||
|
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||||
|
if test "$$subdir" = .; then :; else \
|
||||||
|
test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
|
||||||
|
fi; \
|
||||||
|
done; \
|
||||||
|
list='$(SOURCES) $(HEADERS)'; \
|
||||||
|
unique=`for i in $$list; do echo $$i; done | \
|
||||||
|
awk ' { files[$$0] = 1; } \
|
||||||
|
END { for (i in files) print i; }'`; \
|
||||||
|
test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
|
||||||
|
|| (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) -o $$here/TAGS)
|
||||||
|
|
||||||
|
mostlyclean-tags:
|
||||||
|
|
||||||
|
clean-tags:
|
||||||
|
|
||||||
|
distclean-tags:
|
||||||
|
-rm -f TAGS ID
|
||||||
|
|
||||||
|
maintainer-clean-tags:
|
||||||
|
|
||||||
|
distdir = $(PACKAGE)-$(VERSION)
|
||||||
|
top_distdir = $(distdir)
|
||||||
|
|
||||||
|
# This target untars the dist file and tries a VPATH configuration. Then
|
||||||
|
# it guarantees that the distribution is self-contained by making another
|
||||||
|
# tarfile.
|
||||||
|
distcheck: dist
|
||||||
|
-rm -rf $(distdir)
|
||||||
|
GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
|
||||||
|
mkdir $(distdir)/=build
|
||||||
|
mkdir $(distdir)/=inst
|
||||||
|
dc_install_base=`cd $(distdir)/=inst && pwd`; \
|
||||||
|
cd $(distdir)/=build \
|
||||||
|
&& ../configure --srcdir=.. --prefix=$$dc_install_base \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) check \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) install \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) dist
|
||||||
|
-rm -rf $(distdir)
|
||||||
|
@banner="$(distdir).tar.gz is ready for distribution"; \
|
||||||
|
dashes=`echo "$$banner" | sed s/./=/g`; \
|
||||||
|
echo "$$dashes"; \
|
||||||
|
echo "$$banner"; \
|
||||||
|
echo "$$dashes"
|
||||||
|
dist: distdir
|
||||||
|
-chmod -R a+r $(distdir)
|
||||||
|
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
|
||||||
|
-rm -rf $(distdir)
|
||||||
|
dist-all: distdir
|
||||||
|
-chmod -R a+r $(distdir)
|
||||||
|
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
|
||||||
|
-rm -rf $(distdir)
|
||||||
|
distdir: $(DISTFILES)
|
||||||
|
-rm -rf $(distdir)
|
||||||
|
mkdir $(distdir)
|
||||||
|
-chmod 777 $(distdir)
|
||||||
|
@for file in $(DISTFILES); do \
|
||||||
|
d=$(srcdir); \
|
||||||
|
if test -d $$d/$$file; then \
|
||||||
|
cp -pr $$d/$$file $(distdir)/$$file; \
|
||||||
|
else \
|
||||||
|
test -f $(distdir)/$$file \
|
||||||
|
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|
||||||
|
|| cp -p $$d/$$file $(distdir)/$$file || :; \
|
||||||
|
fi; \
|
||||||
|
done
|
||||||
|
for subdir in $(SUBDIRS); do \
|
||||||
|
if test "$$subdir" = .; then :; else \
|
||||||
|
test -d $(distdir)/$$subdir \
|
||||||
|
|| mkdir $(distdir)/$$subdir \
|
||||||
|
|| exit 1; \
|
||||||
|
chmod 777 $(distdir)/$$subdir; \
|
||||||
|
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
|
||||||
|
|| exit 1; \
|
||||||
|
fi; \
|
||||||
|
done
|
||||||
|
info-am:
|
||||||
|
info: info-recursive
|
||||||
|
dvi-am:
|
||||||
|
dvi: dvi-recursive
|
||||||
|
check-am: all-am
|
||||||
|
check: check-recursive
|
||||||
|
installcheck-am:
|
||||||
|
installcheck: installcheck-recursive
|
||||||
|
all-recursive-am: config.h
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) all-recursive
|
||||||
|
|
||||||
|
install-exec-am:
|
||||||
|
install-exec: install-exec-recursive
|
||||||
|
|
||||||
|
install-data-am:
|
||||||
|
install-data: install-data-recursive
|
||||||
|
|
||||||
|
install-am: all-am
|
||||||
|
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||||
|
install: install-recursive
|
||||||
|
uninstall-am:
|
||||||
|
uninstall: uninstall-recursive
|
||||||
|
all-am: Makefile config.h
|
||||||
|
all-redirect: all-recursive-am
|
||||||
|
install-strip:
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
|
||||||
|
installdirs: installdirs-recursive
|
||||||
|
installdirs-am:
|
||||||
|
|
||||||
|
|
||||||
|
mostlyclean-generic:
|
||||||
|
|
||||||
|
clean-generic:
|
||||||
|
|
||||||
|
distclean-generic:
|
||||||
|
-rm -f Makefile $(CONFIG_CLEAN_FILES)
|
||||||
|
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
|
||||||
|
|
||||||
|
maintainer-clean-generic:
|
||||||
|
mostlyclean-am: mostlyclean-hdr mostlyclean-tags mostlyclean-generic
|
||||||
|
|
||||||
|
mostlyclean: mostlyclean-recursive
|
||||||
|
|
||||||
|
clean-am: clean-hdr clean-tags clean-generic mostlyclean-am
|
||||||
|
|
||||||
|
clean: clean-recursive
|
||||||
|
|
||||||
|
distclean-am: distclean-hdr distclean-tags distclean-generic clean-am
|
||||||
|
|
||||||
|
distclean: distclean-recursive
|
||||||
|
-rm -f config.status
|
||||||
|
|
||||||
|
maintainer-clean-am: maintainer-clean-hdr maintainer-clean-tags \
|
||||||
|
maintainer-clean-generic distclean-am
|
||||||
|
@echo "This command is intended for maintainers to use;"
|
||||||
|
@echo "it deletes files that may require special tools to rebuild."
|
||||||
|
|
||||||
|
maintainer-clean: maintainer-clean-recursive
|
||||||
|
-rm -f config.status
|
||||||
|
|
||||||
|
.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
|
||||||
|
install-data-recursive uninstall-data-recursive install-exec-recursive \
|
||||||
|
uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \
|
||||||
|
all-recursive check-recursive installcheck-recursive info-recursive \
|
||||||
|
dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \
|
||||||
|
maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
|
||||||
|
distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
|
||||||
|
dvi-am dvi check check-am installcheck-am installcheck all-recursive-am \
|
||||||
|
install-exec-am install-exec install-data-am install-data install-am \
|
||||||
|
install uninstall-am uninstall all-redirect all-am all installdirs-am \
|
||||||
|
installdirs mostlyclean-generic distclean-generic clean-generic \
|
||||||
|
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
|
||||||
|
|
||||||
|
|
||||||
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||||
|
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||||
|
.NOEXPORT:
|
0
wmmemload/NEWS
Normal file
0
wmmemload/NEWS
Normal file
0
wmmemload/README
Normal file
0
wmmemload/README
Normal file
2
wmmemload/THANKS
Normal file
2
wmmemload/THANKS
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
For creating WMMemMon and WMCPULoad for which this is based:
|
||||||
|
Seiichi SATO <ssato@sh.rim.or.jp>
|
27
wmmemload/acinclude.m4
Normal file
27
wmmemload/acinclude.m4
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# $Id: acinclude.m4,v 1.3 1999/07/24 22:01:51 daeron Exp $
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl DA_CHECK_LIB(NAME, FUNCTION, EXTRALIBS)
|
||||||
|
dnl
|
||||||
|
AC_DEFUN(DA_CHECK_LIB,
|
||||||
|
[
|
||||||
|
LDFLAGS_old="$LDFLAGS"
|
||||||
|
LDFLAGS="$LDFLAGS $lib_search_path"
|
||||||
|
AC_CHECK_LIB([$1],[$2],yes=yes,no=no,[$3])
|
||||||
|
LDFLAGS="$LDFLAGS_old"
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl DA_CHECK_HEADER(NAME)
|
||||||
|
dnl
|
||||||
|
AC_DEFUN(DA_CHECK_HEADER,
|
||||||
|
[
|
||||||
|
CPPFLAGS_old="$CPPFLAGS"
|
||||||
|
CPPFLAGS="$CPPFLAGS $inc_search_path"
|
||||||
|
AC_CHECK_HEADER([$1])
|
||||||
|
CPPFLAGS="$CPPFLAGS_old"
|
||||||
|
])
|
||||||
|
|
155
wmmemload/aclocal.m4
vendored
Normal file
155
wmmemload/aclocal.m4
vendored
Normal file
|
@ -0,0 +1,155 @@
|
||||||
|
dnl aclocal.m4 generated automatically by aclocal 1.4-p5
|
||||||
|
|
||||||
|
dnl Copyright (C) 1994, 1995-8, 1999, 2001 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.
|
||||||
|
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# $Id: acinclude.m4,v 1.3 1999/07/24 22:01:51 daeron Exp $
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl DA_CHECK_LIB(NAME, FUNCTION, EXTRALIBS)
|
||||||
|
dnl
|
||||||
|
AC_DEFUN(DA_CHECK_LIB,
|
||||||
|
[
|
||||||
|
LDFLAGS_old="$LDFLAGS"
|
||||||
|
LDFLAGS="$LDFLAGS $lib_search_path"
|
||||||
|
AC_CHECK_LIB([$1],[$2],yes=yes,no=no,[$3])
|
||||||
|
LDFLAGS="$LDFLAGS_old"
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl DA_CHECK_HEADER(NAME)
|
||||||
|
dnl
|
||||||
|
AC_DEFUN(DA_CHECK_HEADER,
|
||||||
|
[
|
||||||
|
CPPFLAGS_old="$CPPFLAGS"
|
||||||
|
CPPFLAGS="$CPPFLAGS $inc_search_path"
|
||||||
|
AC_CHECK_HEADER([$1])
|
||||||
|
CPPFLAGS="$CPPFLAGS_old"
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
# Do all the work for Automake. This macro actually does too much --
|
||||||
|
# some checks are only needed if your package does certain things.
|
||||||
|
# But this isn't really a big deal.
|
||||||
|
|
||||||
|
# serial 1
|
||||||
|
|
||||||
|
dnl Usage:
|
||||||
|
dnl AM_INIT_AUTOMAKE(package,version, [no-define])
|
||||||
|
|
||||||
|
AC_DEFUN([AM_INIT_AUTOMAKE],
|
||||||
|
[AC_REQUIRE([AC_PROG_INSTALL])
|
||||||
|
PACKAGE=[$1]
|
||||||
|
AC_SUBST(PACKAGE)
|
||||||
|
VERSION=[$2]
|
||||||
|
AC_SUBST(VERSION)
|
||||||
|
dnl test to see if srcdir already configured
|
||||||
|
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
|
||||||
|
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
|
||||||
|
fi
|
||||||
|
ifelse([$3],,
|
||||||
|
AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
|
||||||
|
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
|
||||||
|
AC_REQUIRE([AM_SANITY_CHECK])
|
||||||
|
AC_REQUIRE([AC_ARG_PROGRAM])
|
||||||
|
dnl FIXME This is truly gross.
|
||||||
|
missing_dir=`cd $ac_aux_dir && pwd`
|
||||||
|
AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
|
||||||
|
AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
|
||||||
|
AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
|
||||||
|
AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
|
||||||
|
AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
|
||||||
|
AC_REQUIRE([AC_PROG_MAKE_SET])])
|
||||||
|
|
||||||
|
#
|
||||||
|
# Check to make sure that the build environment is sane.
|
||||||
|
#
|
||||||
|
|
||||||
|
AC_DEFUN([AM_SANITY_CHECK],
|
||||||
|
[AC_MSG_CHECKING([whether build environment is sane])
|
||||||
|
# Just in case
|
||||||
|
sleep 1
|
||||||
|
echo timestamp > conftestfile
|
||||||
|
# Do `set' in a subshell so we don't clobber the current shell's
|
||||||
|
# arguments. Must try -L first in case configure is actually a
|
||||||
|
# symlink; some systems play weird games with the mod time of symlinks
|
||||||
|
# (eg FreeBSD returns the mod time of the symlink's containing
|
||||||
|
# directory).
|
||||||
|
if (
|
||||||
|
set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
|
||||||
|
if test "[$]*" = "X"; then
|
||||||
|
# -L didn't work.
|
||||||
|
set X `ls -t $srcdir/configure conftestfile`
|
||||||
|
fi
|
||||||
|
if test "[$]*" != "X $srcdir/configure conftestfile" \
|
||||||
|
&& test "[$]*" != "X conftestfile $srcdir/configure"; then
|
||||||
|
|
||||||
|
# If neither matched, then we have a broken ls. This can happen
|
||||||
|
# if, for instance, CONFIG_SHELL is bash and it inherits a
|
||||||
|
# broken ls alias from the environment. This has actually
|
||||||
|
# happened. Such a system could not be considered "sane".
|
||||||
|
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
|
||||||
|
alias in your environment])
|
||||||
|
fi
|
||||||
|
|
||||||
|
test "[$]2" = conftestfile
|
||||||
|
)
|
||||||
|
then
|
||||||
|
# Ok.
|
||||||
|
:
|
||||||
|
else
|
||||||
|
AC_MSG_ERROR([newly created file is older than distributed files!
|
||||||
|
Check your system clock])
|
||||||
|
fi
|
||||||
|
rm -f conftest*
|
||||||
|
AC_MSG_RESULT(yes)])
|
||||||
|
|
||||||
|
dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
|
||||||
|
dnl The program must properly implement --version.
|
||||||
|
AC_DEFUN([AM_MISSING_PROG],
|
||||||
|
[AC_MSG_CHECKING(for working $2)
|
||||||
|
# Run test in a subshell; some versions of sh will print an error if
|
||||||
|
# an executable is not found, even if stderr is redirected.
|
||||||
|
# Redirect stdin to placate older versions of autoconf. Sigh.
|
||||||
|
if ($2 --version) < /dev/null > /dev/null 2>&1; then
|
||||||
|
$1=$2
|
||||||
|
AC_MSG_RESULT(found)
|
||||||
|
else
|
||||||
|
$1="$3/missing $2"
|
||||||
|
AC_MSG_RESULT(missing)
|
||||||
|
fi
|
||||||
|
AC_SUBST($1)])
|
||||||
|
|
||||||
|
# Like AC_CONFIG_HEADER, but automatically create stamp file.
|
||||||
|
|
||||||
|
AC_DEFUN([AM_CONFIG_HEADER],
|
||||||
|
[AC_PREREQ([2.12])
|
||||||
|
AC_CONFIG_HEADER([$1])
|
||||||
|
dnl When config.status generates a header, we must update the stamp-h file.
|
||||||
|
dnl This file resides in the same directory as the config header
|
||||||
|
dnl that is generated. We must strip everything past the first ":",
|
||||||
|
dnl and everything past the last "/".
|
||||||
|
AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
|
||||||
|
ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
|
||||||
|
<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
|
||||||
|
<<am_indx=1
|
||||||
|
for am_file in <<$1>>; do
|
||||||
|
case " <<$>>CONFIG_HEADERS " in
|
||||||
|
*" <<$>>am_file "*<<)>>
|
||||||
|
echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
am_indx=`expr "<<$>>am_indx" + 1`
|
||||||
|
done<<>>dnl>>)
|
||||||
|
changequote([,]))])
|
||||||
|
|
6445
wmmemload/autom4te.cache/output.0
Normal file
6445
wmmemload/autom4te.cache/output.0
Normal file
File diff suppressed because it is too large
Load diff
111
wmmemload/autom4te.cache/requests
Normal file
111
wmmemload/autom4te.cache/requests
Normal file
|
@ -0,0 +1,111 @@
|
||||||
|
# This file was created by autom4te-2.57.
|
||||||
|
# It contains the lists of macros which have been traced.
|
||||||
|
# It can be safely removed.
|
||||||
|
|
||||||
|
@request = (
|
||||||
|
bless( [
|
||||||
|
'0',
|
||||||
|
1,
|
||||||
|
[
|
||||||
|
'/usr/share/autoconf'
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'/usr/share/autoconf/autoconf/autoconf.m4f',
|
||||||
|
'aclocal.m4',
|
||||||
|
'configure.ac'
|
||||||
|
],
|
||||||
|
{
|
||||||
|
'm4_pattern_forbid' => 1,
|
||||||
|
'AC_TYPE_OFF_T' => 1,
|
||||||
|
'AC_C_VOLATILE' => 1,
|
||||||
|
'AC_FUNC_CLOSEDIR_VOID' => 1,
|
||||||
|
'AC_REPLACE_FNMATCH' => 1,
|
||||||
|
'AC_PROG_LIBTOOL' => 1,
|
||||||
|
'AC_FUNC_STAT' => 1,
|
||||||
|
'AC_HEADER_TIME' => 1,
|
||||||
|
'AC_FUNC_WAIT3' => 1,
|
||||||
|
'AM_AUTOMAKE_VERSION' => 1,
|
||||||
|
'AC_STRUCT_TM' => 1,
|
||||||
|
'AC_FUNC_LSTAT' => 1,
|
||||||
|
'AC_TYPE_MODE_T' => 1,
|
||||||
|
'AC_FUNC_GETMNTENT' => 1,
|
||||||
|
'AC_FUNC_STRTOD' => 1,
|
||||||
|
'AC_CHECK_HEADERS' => 1,
|
||||||
|
'AC_FUNC_STRNLEN' => 1,
|
||||||
|
'AC_PROG_CXX' => 1,
|
||||||
|
'AC_PATH_X' => 1,
|
||||||
|
'AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK' => 1,
|
||||||
|
'AC_PROG_AWK' => 1,
|
||||||
|
'AC_HEADER_STDC' => 1,
|
||||||
|
'AC_HEADER_MAJOR' => 1,
|
||||||
|
'AC_FUNC_ERROR_AT_LINE' => 1,
|
||||||
|
'AC_PROG_GCC_TRADITIONAL' => 1,
|
||||||
|
'AC_LIBSOURCE' => 1,
|
||||||
|
'AC_FUNC_MBRTOWC' => 1,
|
||||||
|
'AC_STRUCT_ST_BLOCKS' => 1,
|
||||||
|
'AC_TYPE_SIGNAL' => 1,
|
||||||
|
'AC_TYPE_UID_T' => 1,
|
||||||
|
'AC_CONFIG_AUX_DIR' => 1,
|
||||||
|
'AC_PROG_MAKE_SET' => 1,
|
||||||
|
'm4_pattern_allow' => 1,
|
||||||
|
'AC_DEFINE_TRACE_LITERAL' => 1,
|
||||||
|
'AC_FUNC_STRERROR_R' => 1,
|
||||||
|
'AC_PROG_CC' => 1,
|
||||||
|
'AC_DECL_SYS_SIGLIST' => 1,
|
||||||
|
'AC_FUNC_FORK' => 1,
|
||||||
|
'AC_FUNC_VPRINTF' => 1,
|
||||||
|
'AC_FUNC_STRCOLL' => 1,
|
||||||
|
'AC_PROG_YACC' => 1,
|
||||||
|
'AC_INIT' => 1,
|
||||||
|
'AC_STRUCT_TIMEZONE' => 1,
|
||||||
|
'AC_FUNC_CHOWN' => 1,
|
||||||
|
'AC_SUBST' => 1,
|
||||||
|
'AC_FUNC_ALLOCA' => 1,
|
||||||
|
'AC_CANONICAL_HOST' => 1,
|
||||||
|
'AC_FUNC_GETPGRP' => 1,
|
||||||
|
'AC_PROG_RANLIB' => 1,
|
||||||
|
'AM_INIT_AUTOMAKE' => 1,
|
||||||
|
'AC_FUNC_SETPGRP' => 1,
|
||||||
|
'AC_CONFIG_SUBDIRS' => 1,
|
||||||
|
'AC_FUNC_MMAP' => 1,
|
||||||
|
'AC_FUNC_REALLOC' => 1,
|
||||||
|
'AC_TYPE_SIZE_T' => 1,
|
||||||
|
'AC_CHECK_TYPES' => 1,
|
||||||
|
'AC_CHECK_MEMBERS' => 1,
|
||||||
|
'AM_MAINTAINER_MODE' => 1,
|
||||||
|
'AC_FUNC_UTIME_NULL' => 1,
|
||||||
|
'AC_FUNC_SELECT_ARGTYPES' => 1,
|
||||||
|
'AC_FUNC_STRFTIME' => 1,
|
||||||
|
'AC_HEADER_STAT' => 1,
|
||||||
|
'AC_C_INLINE' => 1,
|
||||||
|
'AC_PROG_CPP' => 1,
|
||||||
|
'AC_C_CONST' => 1,
|
||||||
|
'AC_PROG_LEX' => 1,
|
||||||
|
'AC_TYPE_PID_T' => 1,
|
||||||
|
'AC_CONFIG_FILES' => 1,
|
||||||
|
'include' => 1,
|
||||||
|
'AC_FUNC_SETVBUF_REVERSED' => 1,
|
||||||
|
'AC_PROG_INSTALL' => 1,
|
||||||
|
'AM_GNU_GETTEXT' => 1,
|
||||||
|
'AC_FUNC_OBSTACK' => 1,
|
||||||
|
'AC_CHECK_LIB' => 1,
|
||||||
|
'AC_FUNC_MALLOC' => 1,
|
||||||
|
'AC_FUNC_GETGROUPS' => 1,
|
||||||
|
'AC_FUNC_GETLOADAVG' => 1,
|
||||||
|
'AH_OUTPUT' => 1,
|
||||||
|
'AC_FUNC_FSEEKO' => 1,
|
||||||
|
'AM_PROG_CC_C_O' => 1,
|
||||||
|
'AM_CONDITIONAL' => 1,
|
||||||
|
'AC_CANONICAL_SYSTEM' => 1,
|
||||||
|
'AC_FUNC_MKTIME' => 1,
|
||||||
|
'AC_CONFIG_HEADERS' => 1,
|
||||||
|
'AC_HEADER_SYS_WAIT' => 1,
|
||||||
|
'AC_FUNC_MEMCMP' => 1,
|
||||||
|
'AC_PROG_LN_S' => 1,
|
||||||
|
'm4_include' => 1,
|
||||||
|
'AC_HEADER_DIRENT' => 1,
|
||||||
|
'AC_CHECK_FUNCS' => 1
|
||||||
|
}
|
||||||
|
], 'Request' )
|
||||||
|
);
|
||||||
|
|
236
wmmemload/autom4te.cache/traces.0
Normal file
236
wmmemload/autom4te.cache/traces.0
Normal file
|
@ -0,0 +1,236 @@
|
||||||
|
m4trace:configure.ac:5: -1- AC_INIT([wmmemload], [0.1.5], [me@markstaggs.net])
|
||||||
|
m4trace:configure.ac:5: -1- m4_pattern_forbid([^_?A[CHUM]_])
|
||||||
|
m4trace:configure.ac:5: -1- m4_pattern_forbid([_AC_])
|
||||||
|
m4trace:configure.ac:5: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS'])
|
||||||
|
m4trace:configure.ac:5: -1- m4_pattern_allow([^AS_FLAGS$])
|
||||||
|
m4trace:configure.ac:5: -1- m4_pattern_forbid([^_?m4_])
|
||||||
|
m4trace:configure.ac:5: -1- m4_pattern_forbid([^dnl$])
|
||||||
|
m4trace:configure.ac:5: -1- m4_pattern_forbid([^_?AS_])
|
||||||
|
m4trace:configure.ac:5: -1- AC_SUBST([SHELL], [${CONFIG_SHELL-/bin/sh}])
|
||||||
|
m4trace:configure.ac:5: -1- AC_SUBST([PATH_SEPARATOR])
|
||||||
|
m4trace:configure.ac:5: -1- AC_SUBST([PACKAGE_NAME], [m4_ifdef([AC_PACKAGE_NAME], ['AC_PACKAGE_NAME'])])
|
||||||
|
m4trace:configure.ac:5: -1- AC_SUBST([PACKAGE_TARNAME], [m4_ifdef([AC_PACKAGE_TARNAME], ['AC_PACKAGE_TARNAME'])])
|
||||||
|
m4trace:configure.ac:5: -1- AC_SUBST([PACKAGE_VERSION], [m4_ifdef([AC_PACKAGE_VERSION], ['AC_PACKAGE_VERSION'])])
|
||||||
|
m4trace:configure.ac:5: -1- AC_SUBST([PACKAGE_STRING], [m4_ifdef([AC_PACKAGE_STRING], ['AC_PACKAGE_STRING'])])
|
||||||
|
m4trace:configure.ac:5: -1- AC_SUBST([PACKAGE_BUGREPORT], [m4_ifdef([AC_PACKAGE_BUGREPORT], ['AC_PACKAGE_BUGREPORT'])])
|
||||||
|
m4trace:configure.ac:5: -1- AC_SUBST([exec_prefix], [NONE])
|
||||||
|
m4trace:configure.ac:5: -1- AC_SUBST([prefix], [NONE])
|
||||||
|
m4trace:configure.ac:5: -1- AC_SUBST([program_transform_name], [s,x,x,])
|
||||||
|
m4trace:configure.ac:5: -1- AC_SUBST([bindir], ['${exec_prefix}/bin'])
|
||||||
|
m4trace:configure.ac:5: -1- AC_SUBST([sbindir], ['${exec_prefix}/sbin'])
|
||||||
|
m4trace:configure.ac:5: -1- AC_SUBST([libexecdir], ['${exec_prefix}/libexec'])
|
||||||
|
m4trace:configure.ac:5: -1- AC_SUBST([datadir], ['${prefix}/share'])
|
||||||
|
m4trace:configure.ac:5: -1- AC_SUBST([sysconfdir], ['${prefix}/etc'])
|
||||||
|
m4trace:configure.ac:5: -1- AC_SUBST([sharedstatedir], ['${prefix}/com'])
|
||||||
|
m4trace:configure.ac:5: -1- AC_SUBST([localstatedir], ['${prefix}/var'])
|
||||||
|
m4trace:configure.ac:5: -1- AC_SUBST([libdir], ['${exec_prefix}/lib'])
|
||||||
|
m4trace:configure.ac:5: -1- AC_SUBST([includedir], ['${prefix}/include'])
|
||||||
|
m4trace:configure.ac:5: -1- AC_SUBST([oldincludedir], ['/usr/include'])
|
||||||
|
m4trace:configure.ac:5: -1- AC_SUBST([infodir], ['${prefix}/info'])
|
||||||
|
m4trace:configure.ac:5: -1- AC_SUBST([mandir], ['${prefix}/man'])
|
||||||
|
m4trace:configure.ac:5: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_NAME])
|
||||||
|
m4trace:configure.ac:5: -1- AH_OUTPUT([PACKAGE_NAME], [/* Define to the full name of this package. */
|
||||||
|
#undef PACKAGE_NAME])
|
||||||
|
m4trace:configure.ac:5: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_TARNAME])
|
||||||
|
m4trace:configure.ac:5: -1- AH_OUTPUT([PACKAGE_TARNAME], [/* Define to the one symbol short name of this package. */
|
||||||
|
#undef PACKAGE_TARNAME])
|
||||||
|
m4trace:configure.ac:5: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_VERSION])
|
||||||
|
m4trace:configure.ac:5: -1- AH_OUTPUT([PACKAGE_VERSION], [/* Define to the version of this package. */
|
||||||
|
#undef PACKAGE_VERSION])
|
||||||
|
m4trace:configure.ac:5: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_STRING])
|
||||||
|
m4trace:configure.ac:5: -1- AH_OUTPUT([PACKAGE_STRING], [/* Define to the full name and version of this package. */
|
||||||
|
#undef PACKAGE_STRING])
|
||||||
|
m4trace:configure.ac:5: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_BUGREPORT])
|
||||||
|
m4trace:configure.ac:5: -1- AH_OUTPUT([PACKAGE_BUGREPORT], [/* Define to the address where bug reports for this package should be sent. */
|
||||||
|
#undef PACKAGE_BUGREPORT])
|
||||||
|
m4trace:configure.ac:5: -1- AC_SUBST([build_alias])
|
||||||
|
m4trace:configure.ac:5: -1- AC_SUBST([host_alias])
|
||||||
|
m4trace:configure.ac:5: -1- AC_SUBST([target_alias])
|
||||||
|
m4trace:configure.ac:5: -1- AC_SUBST([DEFS])
|
||||||
|
m4trace:configure.ac:5: -1- AC_SUBST([ECHO_C])
|
||||||
|
m4trace:configure.ac:5: -1- AC_SUBST([ECHO_N])
|
||||||
|
m4trace:configure.ac:5: -1- AC_SUBST([ECHO_T])
|
||||||
|
m4trace:configure.ac:5: -1- AC_SUBST([LIBS])
|
||||||
|
m4trace:configure.ac:6: -1- AC_CANONICAL_HOST
|
||||||
|
m4trace:configure.ac:6: -1- AC_SUBST([build], [$ac_cv_build])
|
||||||
|
m4trace:configure.ac:6: -1- AC_SUBST([build_cpu], [`echo $ac_cv_build | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\1/'`])
|
||||||
|
m4trace:configure.ac:6: -1- AC_SUBST([build_vendor], [`echo $ac_cv_build | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\2/'`])
|
||||||
|
m4trace:configure.ac:6: -1- AC_SUBST([build_os], [`echo $ac_cv_build | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\3/'`])
|
||||||
|
m4trace:configure.ac:6: -1- AC_SUBST([host], [$ac_cv_host])
|
||||||
|
m4trace:configure.ac:6: -1- AC_SUBST([host_cpu], [`echo $ac_cv_host | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\1/'`])
|
||||||
|
m4trace:configure.ac:6: -1- AC_SUBST([host_vendor], [`echo $ac_cv_host | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\2/'`])
|
||||||
|
m4trace:configure.ac:6: -1- AC_SUBST([host_os], [`echo $ac_cv_host | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\3/'`])
|
||||||
|
m4trace:configure.ac:7: -1- AC_SUBST([target], [$ac_cv_target])
|
||||||
|
m4trace:configure.ac:7: -1- AC_SUBST([target_cpu], [`echo $ac_cv_target | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\1/'`])
|
||||||
|
m4trace:configure.ac:7: -1- AC_SUBST([target_vendor], [`echo $ac_cv_target | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\2/'`])
|
||||||
|
m4trace:configure.ac:7: -1- AC_SUBST([target_os], [`echo $ac_cv_target | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\3/'`])
|
||||||
|
m4trace:configure.ac:8: -1- AM_INIT_AUTOMAKE([$PACKAGE_NAME], [$PACKAGE_VERSION])
|
||||||
|
m4trace:configure.ac:8: -1- AC_PROG_INSTALL
|
||||||
|
m4trace:configure.ac:8: -1- AC_SUBST([INSTALL_PROGRAM])
|
||||||
|
m4trace:configure.ac:8: -1- AC_SUBST([INSTALL_SCRIPT])
|
||||||
|
m4trace:configure.ac:8: -1- AC_SUBST([INSTALL_DATA])
|
||||||
|
m4trace:configure.ac:8: -1- AC_SUBST([PACKAGE])
|
||||||
|
m4trace:configure.ac:8: -1- AC_SUBST([VERSION])
|
||||||
|
m4trace:configure.ac:8: -2- AC_DEFINE_TRACE_LITERAL([PACKAGE])
|
||||||
|
m4trace:configure.ac:8: -2- AH_OUTPUT([PACKAGE], [/* Name of package */
|
||||||
|
#undef PACKAGE])
|
||||||
|
m4trace:configure.ac:8: -2- AC_DEFINE_TRACE_LITERAL([VERSION])
|
||||||
|
m4trace:configure.ac:8: -2- AH_OUTPUT([VERSION], [/* Version number of package */
|
||||||
|
#undef VERSION])
|
||||||
|
m4trace:configure.ac:8: -1- AC_SUBST([ACLOCAL])
|
||||||
|
m4trace:configure.ac:8: -1- AC_SUBST([AUTOCONF])
|
||||||
|
m4trace:configure.ac:8: -1- AC_SUBST([AUTOMAKE])
|
||||||
|
m4trace:configure.ac:8: -1- AC_SUBST([AUTOHEADER])
|
||||||
|
m4trace:configure.ac:8: -1- AC_SUBST([MAKEINFO])
|
||||||
|
m4trace:configure.ac:8: -1- AC_PROG_MAKE_SET
|
||||||
|
m4trace:configure.ac:8: -1- AC_SUBST([SET_MAKE])
|
||||||
|
m4trace:configure.ac:11: -1- AC_CONFIG_HEADERS([config.h])
|
||||||
|
m4trace:configure.ac:14: -1- AC_PROG_AWK
|
||||||
|
m4trace:configure.ac:14: -1- AC_SUBST([AWK])
|
||||||
|
m4trace:configure.ac:15: -1- AC_PROG_CC
|
||||||
|
m4trace:configure.ac:15: -1- AC_SUBST([CC])
|
||||||
|
m4trace:configure.ac:15: -1- AC_SUBST([CFLAGS])
|
||||||
|
m4trace:configure.ac:15: -1- AC_SUBST([LDFLAGS])
|
||||||
|
m4trace:configure.ac:15: -1- AC_SUBST([CPPFLAGS])
|
||||||
|
m4trace:configure.ac:15: -1- AC_SUBST([CC])
|
||||||
|
m4trace:configure.ac:15: -1- AC_SUBST([ac_ct_CC])
|
||||||
|
m4trace:configure.ac:15: -1- AC_SUBST([CC])
|
||||||
|
m4trace:configure.ac:15: -1- AC_SUBST([ac_ct_CC])
|
||||||
|
m4trace:configure.ac:15: -1- AC_SUBST([CC])
|
||||||
|
m4trace:configure.ac:15: -1- AC_SUBST([CC])
|
||||||
|
m4trace:configure.ac:15: -1- AC_SUBST([ac_ct_CC])
|
||||||
|
m4trace:configure.ac:15: -1- AC_SUBST([EXEEXT], [$ac_cv_exeext])
|
||||||
|
m4trace:configure.ac:15: -1- AC_SUBST([OBJEXT], [$ac_cv_objext])
|
||||||
|
m4trace:configure.ac:16: -1- AC_PROG_INSTALL
|
||||||
|
m4trace:configure.ac:16: -1- AC_SUBST([INSTALL_PROGRAM])
|
||||||
|
m4trace:configure.ac:16: -1- AC_SUBST([INSTALL_SCRIPT])
|
||||||
|
m4trace:configure.ac:16: -1- AC_SUBST([INSTALL_DATA])
|
||||||
|
m4trace:configure.ac:17: -1- AC_PROG_LN_S
|
||||||
|
m4trace:configure.ac:17: -1- AC_SUBST([LN_S], [$as_ln_s])
|
||||||
|
m4trace:configure.ac:35: -1- AC_PATH_X
|
||||||
|
m4trace:configure.ac:35: -1- AC_PROG_CPP
|
||||||
|
m4trace:configure.ac:35: -1- AC_SUBST([CPP])
|
||||||
|
m4trace:configure.ac:35: -1- AC_SUBST([CPPFLAGS])
|
||||||
|
m4trace:configure.ac:35: -1- AC_SUBST([CPP])
|
||||||
|
m4trace:configure.ac:35: -1- AC_DEFINE_TRACE_LITERAL([X_DISPLAY_MISSING])
|
||||||
|
m4trace:configure.ac:35: -1- AH_OUTPUT([X_DISPLAY_MISSING], [/* Define to 1 if the X Window System is missing or not being used. */
|
||||||
|
#undef X_DISPLAY_MISSING])
|
||||||
|
m4trace:configure.ac:35: -1- AC_CHECK_LIB([dnet], [dnet_ntoa], [X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"])
|
||||||
|
m4trace:configure.ac:35: -1- AC_CHECK_LIB([dnet_stub], [dnet_ntoa], [X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"])
|
||||||
|
m4trace:configure.ac:35: -1- AC_CHECK_LIB([nsl], [gethostbyname], [X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"])
|
||||||
|
m4trace:configure.ac:35: -1- AC_CHECK_LIB([bsd], [gethostbyname], [X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"])
|
||||||
|
m4trace:configure.ac:35: -1- AC_CHECK_LIB([socket], [connect], [X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"], [], [$X_EXTRA_LIBS])
|
||||||
|
m4trace:configure.ac:35: -1- AC_CHECK_LIB([posix], [remove], [X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"])
|
||||||
|
m4trace:configure.ac:35: -1- AC_CHECK_LIB([ipc], [shmat], [X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"])
|
||||||
|
m4trace:configure.ac:35: -1- AC_CHECK_LIB([ICE], [IceConnectionNumber], [X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"], [], [$X_EXTRA_LIBS])
|
||||||
|
m4trace:configure.ac:35: -1- AC_SUBST([X_CFLAGS])
|
||||||
|
m4trace:configure.ac:35: -1- AC_SUBST([X_PRE_LIBS])
|
||||||
|
m4trace:configure.ac:35: -1- AC_SUBST([X_LIBS])
|
||||||
|
m4trace:configure.ac:35: -1- AC_SUBST([X_EXTRA_LIBS])
|
||||||
|
m4trace:configure.ac:48: -1- AC_SUBST([X_LIBRARY_PATH])
|
||||||
|
m4trace:configure.ac:55: -1- AC_CHECK_LIB([Xext], [XShapeCombineMask], [XLIBS="$XLIBS -lXext"], [echo "The shape extension stuff could not be found in the X client libraries"
|
||||||
|
exit 1], [$X_LIBS $X_EXTRA_LIBS -lX11])
|
||||||
|
m4trace:configure.ac:62: -1- AC_CHECK_LIB([Xpm], [XpmCreatePixmapFromData], [XLIBS="$XLIBS -lXpm"], [echo "The libXpm library was not found, but is necessary to build this library"
|
||||||
|
exit 1], [$X_LIBS $X_EXTRA_LIBS -lX11])
|
||||||
|
m4trace:configure.ac:64: -1- AC_SUBST([XCFLAGS])
|
||||||
|
m4trace:configure.ac:65: -1- AC_SUBST([XLFLAGS])
|
||||||
|
m4trace:configure.ac:66: -1- AC_SUBST([XLIBS])
|
||||||
|
m4trace:configure.ac:68: -1- AC_SUBST([X_EXTRA_LIBS])
|
||||||
|
m4trace:configure.ac:81: -1- AC_DEFINE_TRACE_LITERAL([DEBUG])
|
||||||
|
m4trace:configure.ac:81: -1- AH_OUTPUT([DEBUG], [/* use debug code */
|
||||||
|
#undef DEBUG])
|
||||||
|
m4trace:configure.ac:83: -1- AC_SUBST([DFLAGS])
|
||||||
|
m4trace:configure.ac:121: -1- AC_SUBST([OS])
|
||||||
|
m4trace:configure.ac:122: -1- AC_SUBST([SETGID_FLAGS])
|
||||||
|
m4trace:configure.ac:123: -1- AC_SUBST([LIBS])
|
||||||
|
m4trace:configure.ac:126: -1- AC_DEFINE_TRACE_LITERAL([IGNORE_BUFFERS])
|
||||||
|
m4trace:configure.ac:126: -1- AH_OUTPUT([IGNORE_BUFFERS], [/* use \'--ignore-buffers\' option */
|
||||||
|
#undef IGNORE_BUFFERS])
|
||||||
|
m4trace:configure.ac:129: -1- AC_DEFINE_TRACE_LITERAL([IGNORE_CACHED])
|
||||||
|
m4trace:configure.ac:129: -1- AH_OUTPUT([IGNORE_CACHED], [/* use \'--ignore-cached\' option */
|
||||||
|
#undef IGNORE_CACHED])
|
||||||
|
m4trace:configure.ac:132: -1- AC_DEFINE_TRACE_LITERAL([IGNORE_WIRED])
|
||||||
|
m4trace:configure.ac:132: -1- AH_OUTPUT([IGNORE_WIRED], [/* use \'--ignore-wired\' option */
|
||||||
|
#undef IGNORE_WIRED])
|
||||||
|
m4trace:configure.ac:143: -1- AC_SUBST([LIBRARY_SEARCH_PATH])
|
||||||
|
m4trace:configure.ac:144: -1- AC_SUBST([HEADER_SEARCH_PATH])
|
||||||
|
m4trace:configure.ac:147: -1- AC_HEADER_STDC
|
||||||
|
m4trace:configure.ac:147: -1- AC_SUBST([EGREP])
|
||||||
|
m4trace:configure.ac:147: -1- AC_DEFINE_TRACE_LITERAL([STDC_HEADERS])
|
||||||
|
m4trace:configure.ac:147: -1- AH_OUTPUT([STDC_HEADERS], [/* Define to 1 if you have the ANSI C header files. */
|
||||||
|
#undef STDC_HEADERS])
|
||||||
|
m4trace:configure.ac:148: -1- AC_CHECK_HEADERS([fcntl.h memory.h stddef.h stdlib.h string.h strings.h sys/param.h sys/time.h unistd.h])
|
||||||
|
m4trace:configure.ac:148: -1- AH_OUTPUT([HAVE_FCNTL_H], [/* Define to 1 if you have the <fcntl.h> header file. */
|
||||||
|
#undef HAVE_FCNTL_H])
|
||||||
|
m4trace:configure.ac:148: -1- AH_OUTPUT([HAVE_MEMORY_H], [/* Define to 1 if you have the <memory.h> header file. */
|
||||||
|
#undef HAVE_MEMORY_H])
|
||||||
|
m4trace:configure.ac:148: -1- AH_OUTPUT([HAVE_STDDEF_H], [/* Define to 1 if you have the <stddef.h> header file. */
|
||||||
|
#undef HAVE_STDDEF_H])
|
||||||
|
m4trace:configure.ac:148: -1- AH_OUTPUT([HAVE_STDLIB_H], [/* Define to 1 if you have the <stdlib.h> header file. */
|
||||||
|
#undef HAVE_STDLIB_H])
|
||||||
|
m4trace:configure.ac:148: -1- AH_OUTPUT([HAVE_STRING_H], [/* Define to 1 if you have the <string.h> header file. */
|
||||||
|
#undef HAVE_STRING_H])
|
||||||
|
m4trace:configure.ac:148: -1- AH_OUTPUT([HAVE_STRINGS_H], [/* Define to 1 if you have the <strings.h> header file. */
|
||||||
|
#undef HAVE_STRINGS_H])
|
||||||
|
m4trace:configure.ac:148: -1- AH_OUTPUT([HAVE_SYS_PARAM_H], [/* Define to 1 if you have the <sys/param.h> header file. */
|
||||||
|
#undef HAVE_SYS_PARAM_H])
|
||||||
|
m4trace:configure.ac:148: -1- AH_OUTPUT([HAVE_SYS_TIME_H], [/* Define to 1 if you have the <sys/time.h> header file. */
|
||||||
|
#undef HAVE_SYS_TIME_H])
|
||||||
|
m4trace:configure.ac:148: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the <unistd.h> header file. */
|
||||||
|
#undef HAVE_UNISTD_H])
|
||||||
|
m4trace:configure.ac:148: -1- AC_CHECK_HEADERS([sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
||||||
|
inttypes.h stdint.h unistd.h], [], [], [$ac_includes_default])
|
||||||
|
m4trace:configure.ac:148: -1- AH_OUTPUT([HAVE_SYS_TYPES_H], [/* Define to 1 if you have the <sys/types.h> header file. */
|
||||||
|
#undef HAVE_SYS_TYPES_H])
|
||||||
|
m4trace:configure.ac:148: -1- AH_OUTPUT([HAVE_SYS_STAT_H], [/* Define to 1 if you have the <sys/stat.h> header file. */
|
||||||
|
#undef HAVE_SYS_STAT_H])
|
||||||
|
m4trace:configure.ac:148: -1- AH_OUTPUT([HAVE_STDLIB_H], [/* Define to 1 if you have the <stdlib.h> header file. */
|
||||||
|
#undef HAVE_STDLIB_H])
|
||||||
|
m4trace:configure.ac:148: -1- AH_OUTPUT([HAVE_STRING_H], [/* Define to 1 if you have the <string.h> header file. */
|
||||||
|
#undef HAVE_STRING_H])
|
||||||
|
m4trace:configure.ac:148: -1- AH_OUTPUT([HAVE_MEMORY_H], [/* Define to 1 if you have the <memory.h> header file. */
|
||||||
|
#undef HAVE_MEMORY_H])
|
||||||
|
m4trace:configure.ac:148: -1- AH_OUTPUT([HAVE_STRINGS_H], [/* Define to 1 if you have the <strings.h> header file. */
|
||||||
|
#undef HAVE_STRINGS_H])
|
||||||
|
m4trace:configure.ac:148: -1- AH_OUTPUT([HAVE_INTTYPES_H], [/* Define to 1 if you have the <inttypes.h> header file. */
|
||||||
|
#undef HAVE_INTTYPES_H])
|
||||||
|
m4trace:configure.ac:148: -1- AH_OUTPUT([HAVE_STDINT_H], [/* Define to 1 if you have the <stdint.h> header file. */
|
||||||
|
#undef HAVE_STDINT_H])
|
||||||
|
m4trace:configure.ac:148: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the <unistd.h> header file. */
|
||||||
|
#undef HAVE_UNISTD_H])
|
||||||
|
m4trace:configure.ac:151: -1- AC_C_CONST
|
||||||
|
m4trace:configure.ac:151: -1- AC_DEFINE_TRACE_LITERAL([const])
|
||||||
|
m4trace:configure.ac:151: -1- AH_OUTPUT([const], [/* Define to empty if `const\' does not conform to ANSI C. */
|
||||||
|
#undef const])
|
||||||
|
m4trace:configure.ac:152: -1- AC_TYPE_SIZE_T
|
||||||
|
m4trace:configure.ac:152: -1- AC_DEFINE_TRACE_LITERAL([size_t])
|
||||||
|
m4trace:configure.ac:152: -1- AH_OUTPUT([size_t], [/* Define to `unsigned\' if <sys/types.h> does not define. */
|
||||||
|
#undef size_t])
|
||||||
|
m4trace:configure.ac:153: -1- AC_HEADER_TIME
|
||||||
|
m4trace:configure.ac:153: -1- AC_DEFINE_TRACE_LITERAL([TIME_WITH_SYS_TIME])
|
||||||
|
m4trace:configure.ac:153: -1- AH_OUTPUT([TIME_WITH_SYS_TIME], [/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
|
||||||
|
#undef TIME_WITH_SYS_TIME])
|
||||||
|
m4trace:configure.ac:156: -1- AC_FUNC_MALLOC
|
||||||
|
m4trace:configure.ac:156: -1- AC_CHECK_HEADERS([stdlib.h])
|
||||||
|
m4trace:configure.ac:156: -1- AH_OUTPUT([HAVE_STDLIB_H], [/* Define to 1 if you have the <stdlib.h> header file. */
|
||||||
|
#undef HAVE_STDLIB_H])
|
||||||
|
m4trace:configure.ac:156: -1- AC_DEFINE_TRACE_LITERAL([HAVE_MALLOC])
|
||||||
|
m4trace:configure.ac:156: -1- AH_OUTPUT([HAVE_MALLOC], [/* Define to 1 if your system has a GNU libc compatible `malloc\' function, and
|
||||||
|
to 0 otherwise. */
|
||||||
|
#undef HAVE_MALLOC])
|
||||||
|
m4trace:configure.ac:156: -1- AC_DEFINE_TRACE_LITERAL([HAVE_MALLOC])
|
||||||
|
m4trace:configure.ac:156: -1- AC_LIBSOURCE([malloc.c])
|
||||||
|
m4trace:configure.ac:156: -1- AC_SUBST([LIB@&t@OBJS])
|
||||||
|
m4trace:configure.ac:156: -1- AC_DEFINE_TRACE_LITERAL([malloc])
|
||||||
|
m4trace:configure.ac:156: -1- AH_OUTPUT([malloc], [/* Define to rpl_malloc if the replacement function should be used. */
|
||||||
|
#undef malloc])
|
||||||
|
m4trace:configure.ac:157: -1- AC_CHECK_FUNCS([select strtoul uname])
|
||||||
|
m4trace:configure.ac:157: -1- AH_OUTPUT([HAVE_SELECT], [/* Define to 1 if you have the `select\' function. */
|
||||||
|
#undef HAVE_SELECT])
|
||||||
|
m4trace:configure.ac:157: -1- AH_OUTPUT([HAVE_STRTOUL], [/* Define to 1 if you have the `strtoul\' function. */
|
||||||
|
#undef HAVE_STRTOUL])
|
||||||
|
m4trace:configure.ac:157: -1- AH_OUTPUT([HAVE_UNAME], [/* Define to 1 if you have the `uname\' function. */
|
||||||
|
#undef HAVE_UNAME])
|
||||||
|
m4trace:configure.ac:159: -1- AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile])
|
||||||
|
m4trace:configure.ac:165: -1- AC_SUBST([LIB@&t@OBJS], [$ac_libobjs])
|
||||||
|
m4trace:configure.ac:165: -1- AC_SUBST([LTLIBOBJS], [$ac_ltlibobjs])
|
1320
wmmemload/config.guess
vendored
Executable file
1320
wmmemload/config.guess
vendored
Executable file
File diff suppressed because it is too large
Load diff
100
wmmemload/config.h.in
Normal file
100
wmmemload/config.h.in
Normal file
|
@ -0,0 +1,100 @@
|
||||||
|
/* config.h.in. Generated from configure.ac by autoheader. */
|
||||||
|
|
||||||
|
/* use debug code */
|
||||||
|
#undef DEBUG
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <fcntl.h> header file. */
|
||||||
|
#undef HAVE_FCNTL_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||||
|
#undef HAVE_INTTYPES_H
|
||||||
|
|
||||||
|
/* Define to 1 if your system has a working `malloc' function. */
|
||||||
|
#undef HAVE_MALLOC
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <memory.h> header file. */
|
||||||
|
#undef HAVE_MEMORY_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `select' function. */
|
||||||
|
#undef HAVE_SELECT
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <stddef.h> header file. */
|
||||||
|
#undef HAVE_STDDEF_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <stdint.h> header file. */
|
||||||
|
#undef HAVE_STDINT_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <stdlib.h> header file. */
|
||||||
|
#undef HAVE_STDLIB_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <strings.h> header file. */
|
||||||
|
#undef HAVE_STRINGS_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <string.h> header file. */
|
||||||
|
#undef HAVE_STRING_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `strtoul' function. */
|
||||||
|
#undef HAVE_STRTOUL
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <sys/param.h> header file. */
|
||||||
|
#undef HAVE_SYS_PARAM_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <sys/stat.h> header file. */
|
||||||
|
#undef HAVE_SYS_STAT_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <sys/time.h> header file. */
|
||||||
|
#undef HAVE_SYS_TIME_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <sys/types.h> header file. */
|
||||||
|
#undef HAVE_SYS_TYPES_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `uname' function. */
|
||||||
|
#undef HAVE_UNAME
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <unistd.h> header file. */
|
||||||
|
#undef HAVE_UNISTD_H
|
||||||
|
|
||||||
|
/* use '--ignore-buffers' option */
|
||||||
|
#undef IGNORE_BUFFERS
|
||||||
|
|
||||||
|
/* use '--ignore-cached' option */
|
||||||
|
#undef IGNORE_CACHED
|
||||||
|
|
||||||
|
/* use '--ignore-wired' option */
|
||||||
|
#undef IGNORE_WIRED
|
||||||
|
|
||||||
|
/* Name of package */
|
||||||
|
#undef PACKAGE
|
||||||
|
|
||||||
|
/* Define to the address where bug reports for this package should be sent. */
|
||||||
|
#undef PACKAGE_BUGREPORT
|
||||||
|
|
||||||
|
/* Define to the full name of this package. */
|
||||||
|
#undef PACKAGE_NAME
|
||||||
|
|
||||||
|
/* Define to the full name and version of this package. */
|
||||||
|
#undef PACKAGE_STRING
|
||||||
|
|
||||||
|
/* Define to the one symbol short name of this package. */
|
||||||
|
#undef PACKAGE_TARNAME
|
||||||
|
|
||||||
|
/* Define to the version of this package. */
|
||||||
|
#undef PACKAGE_VERSION
|
||||||
|
|
||||||
|
/* Define to 1 if you have the ANSI C header files. */
|
||||||
|
#undef STDC_HEADERS
|
||||||
|
|
||||||
|
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
|
||||||
|
#undef TIME_WITH_SYS_TIME
|
||||||
|
|
||||||
|
/* Version number of package */
|
||||||
|
#undef VERSION
|
||||||
|
|
||||||
|
/* Define to 1 if the X Window System is missing or not being used. */
|
||||||
|
#undef X_DISPLAY_MISSING
|
||||||
|
|
||||||
|
/* Define to empty if `const' does not conform to ANSI C. */
|
||||||
|
#undef const
|
||||||
|
|
||||||
|
/* Define to `unsigned' if <sys/types.h> does not define. */
|
||||||
|
#undef size_t
|
1443
wmmemload/config.sub
vendored
Executable file
1443
wmmemload/config.sub
vendored
Executable file
File diff suppressed because it is too large
Load diff
6445
wmmemload/configure
vendored
Executable file
6445
wmmemload/configure
vendored
Executable file
File diff suppressed because it is too large
Load diff
165
wmmemload/configure.ac
Normal file
165
wmmemload/configure.ac
Normal file
|
@ -0,0 +1,165 @@
|
||||||
|
dnl Process this file with autoconf to produce a configure script.
|
||||||
|
AC_PREREQ(2.52)
|
||||||
|
|
||||||
|
dnl AC_INIT(src/main.c)
|
||||||
|
AC_INIT(wmmemload, 0.1.6, me@markstaggs.net)
|
||||||
|
AC_CANONICAL_HOST
|
||||||
|
AC_CANONICAL_TARGET
|
||||||
|
AM_INIT_AUTOMAKE($PACKAGE_NAME, $PACKAGE_VERSION)
|
||||||
|
|
||||||
|
AC_CONFIG_SRCDIR(src/main.c)
|
||||||
|
AM_CONFIG_HEADER(config.h)
|
||||||
|
|
||||||
|
dnl Checks for programs.
|
||||||
|
AC_PROG_AWK
|
||||||
|
AC_PROG_CC
|
||||||
|
AC_PROG_INSTALL
|
||||||
|
AC_PROG_LN_S
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl Specify paths to look for libraries and headers
|
||||||
|
dnl ===============================================
|
||||||
|
AC_ARG_WITH(libs-from,
|
||||||
|
[ --with-libs-from pass compiler flags to look for libraries],
|
||||||
|
[lib_search_path="$withval $lib_search_path"])
|
||||||
|
|
||||||
|
AC_ARG_WITH(incs-from,
|
||||||
|
[ --with-incs-from pass compiler flags to look for header files],
|
||||||
|
[inc_search_path="$withval $inc_search_path"])
|
||||||
|
|
||||||
|
|
||||||
|
dnl ===========================================
|
||||||
|
dnl Stuff that uses X
|
||||||
|
dnl ===========================================
|
||||||
|
|
||||||
|
AC_PATH_XTRA
|
||||||
|
|
||||||
|
X_LIBRARY_PATH=$x_libraries
|
||||||
|
|
||||||
|
XCFLAGS="$X_CFLAGS"
|
||||||
|
|
||||||
|
XLFLAGS="$X_LIBS"
|
||||||
|
|
||||||
|
XLIBS="-lX11 $X_EXTRA_LIBS"
|
||||||
|
|
||||||
|
lib_search_path="$lib_search_path $XLFLAGS -L/usr/local/lib"
|
||||||
|
inc_search_path="$inc_search_path $XCFLAGS -I/usr/local/include"
|
||||||
|
|
||||||
|
AC_SUBST(X_LIBRARY_PATH)
|
||||||
|
|
||||||
|
dnl Shape extension
|
||||||
|
dnl ===============
|
||||||
|
AC_CHECK_LIB(Xext, XShapeCombineMask, [XLIBS="$XLIBS -lXext"],
|
||||||
|
[echo "The shape extension stuff could not be found in the X client libraries"
|
||||||
|
exit 1],
|
||||||
|
$X_LIBS $X_EXTRA_LIBS -lX11)
|
||||||
|
|
||||||
|
dnl XPM library
|
||||||
|
dnl ===========
|
||||||
|
AC_CHECK_LIB(Xpm, XpmCreatePixmapFromData, [XLIBS="$XLIBS -lXpm"],
|
||||||
|
[echo "The libXpm library was not found, but is necessary to build this library"
|
||||||
|
exit 1],
|
||||||
|
$X_LIBS $X_EXTRA_LIBS -lX11)
|
||||||
|
|
||||||
|
AC_SUBST(XCFLAGS)
|
||||||
|
AC_SUBST(XLFLAGS)
|
||||||
|
AC_SUBST(XLIBS)
|
||||||
|
|
||||||
|
AC_SUBST(X_EXTRA_LIBS)
|
||||||
|
|
||||||
|
dnl ===============================================
|
||||||
|
dnl End of stuff that uses X
|
||||||
|
dnl ===============================================
|
||||||
|
|
||||||
|
dnl =========
|
||||||
|
dnl Debugging
|
||||||
|
dnl =========
|
||||||
|
AC_ARG_ENABLE(debug,
|
||||||
|
[ --enable-debug turn on debugging [default=on]],,enable_debug=no)
|
||||||
|
if test "$enable_debug" = yes; then
|
||||||
|
DFLAGS="-Wall -g -ansi -pedantic"
|
||||||
|
AC_DEFINE(DEBUG, 1, [use debug code])
|
||||||
|
fi
|
||||||
|
AC_SUBST(DFLAGS)
|
||||||
|
|
||||||
|
|
||||||
|
dnl ============
|
||||||
|
dnl Check for OS
|
||||||
|
dnl ============
|
||||||
|
|
||||||
|
ignore_buffers=no
|
||||||
|
ignore_cached=no
|
||||||
|
ignore_wired=no
|
||||||
|
|
||||||
|
case ${host_os} in
|
||||||
|
linux*)
|
||||||
|
OS=linux
|
||||||
|
ignore_buffers=yes
|
||||||
|
ignore_cached=yes
|
||||||
|
;;
|
||||||
|
freebsd*)
|
||||||
|
OS=freebsd
|
||||||
|
ignore_wired=yes
|
||||||
|
ignore_cached=yes
|
||||||
|
LIBS="$LIBS -lkvm"
|
||||||
|
SETGID_FLAGS="-g kmem -m 2755 -o root"
|
||||||
|
;;
|
||||||
|
openbsd*)
|
||||||
|
OS=openbsd
|
||||||
|
;;
|
||||||
|
solaris*)
|
||||||
|
OS=solaris
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo ""
|
||||||
|
echo "Sorry, ${host_os} is not supported yet"
|
||||||
|
echo ""
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
AC_SUBST(OS)
|
||||||
|
AC_SUBST(SETGID_FLAGS)
|
||||||
|
AC_SUBST(LIBS)
|
||||||
|
|
||||||
|
if test "$ignore_buffers" = yes; then
|
||||||
|
AC_DEFINE(IGNORE_BUFFERS, 1, [use '--ignore-buffers' option])
|
||||||
|
fi
|
||||||
|
if test "$ignore_cached" = yes; then
|
||||||
|
AC_DEFINE(IGNORE_CACHED, 1, [use '--ignore-cached' option])
|
||||||
|
fi
|
||||||
|
if test "$ignore_wired" = yes; then
|
||||||
|
AC_DEFINE(IGNORE_WIRED, 1, [use '--ignore-wired' option])
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
dnl =============================
|
||||||
|
dnl Checks for library functions.
|
||||||
|
dnl =============================
|
||||||
|
|
||||||
|
LIBRARY_SEARCH_PATH="$lib_search_path"
|
||||||
|
HEADER_SEARCH_PATH="$inc_search_path"
|
||||||
|
|
||||||
|
AC_SUBST(LIBRARY_SEARCH_PATH)
|
||||||
|
AC_SUBST(HEADER_SEARCH_PATH)
|
||||||
|
|
||||||
|
dnl Checks for header files.
|
||||||
|
AC_HEADER_STDC
|
||||||
|
AC_CHECK_HEADERS([fcntl.h memory.h stddef.h stdlib.h string.h strings.h sys/param.h sys/time.h unistd.h])
|
||||||
|
|
||||||
|
dnl Checks for typedefs, structures, and compiler characteristics.
|
||||||
|
AC_C_CONST
|
||||||
|
AC_TYPE_SIZE_T
|
||||||
|
AC_HEADER_TIME
|
||||||
|
|
||||||
|
dnl Checks for library functions.
|
||||||
|
AC_FUNC_MALLOC
|
||||||
|
AC_CHECK_FUNCS(select strtoul uname)
|
||||||
|
|
||||||
|
AC_CONFIG_FILES(Makefile src/Makefile doc/Makefile)
|
||||||
|
|
||||||
|
dnl icons/Makefile \
|
||||||
|
dnl contrib/Makefile \
|
||||||
|
dnl contrib/wmmemmon.spec)
|
||||||
|
|
||||||
|
AC_OUTPUT
|
423
wmmemload/depcomp
Executable file
423
wmmemload/depcomp
Executable file
|
@ -0,0 +1,423 @@
|
||||||
|
#! /bin/sh
|
||||||
|
|
||||||
|
# depcomp - compile a program generating dependencies as side-effects
|
||||||
|
# Copyright 1999, 2000 Free Software Foundation, Inc.
|
||||||
|
|
||||||
|
# This program is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
# any later version.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||||
|
# 02111-1307, USA.
|
||||||
|
|
||||||
|
# As a special exception to the GNU General Public License, if you
|
||||||
|
# distribute this file as part of a program that contains a
|
||||||
|
# configuration script generated by Autoconf, you may include it under
|
||||||
|
# the same distribution terms that you use for the rest of that program.
|
||||||
|
|
||||||
|
# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
|
||||||
|
|
||||||
|
if test -z "$depmode" || test -z "$source" || test -z "$object"; then
|
||||||
|
echo "depcomp: Variables source, object and depmode must be set" 1>&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
# `libtool' can also be set to `yes' or `no'.
|
||||||
|
|
||||||
|
if test -z "$depfile"; then
|
||||||
|
base=`echo "$object" | sed -e 's,^.*/,,' -e 's,\.\([^.]*\)$,.P\1,'`
|
||||||
|
dir=`echo "$object" | sed 's,/.*$,/,'`
|
||||||
|
if test "$dir" = "$object"; then
|
||||||
|
dir=
|
||||||
|
fi
|
||||||
|
# FIXME: should be _deps on DOS.
|
||||||
|
depfile="$dir.deps/$base"
|
||||||
|
fi
|
||||||
|
|
||||||
|
tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
|
||||||
|
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
|
||||||
|
# Some modes work just like other modes, but use different flags. We
|
||||||
|
# parameterize here, but still list the modes in the big case below,
|
||||||
|
# to make depend.m4 easier to write. Note that we *cannot* use a case
|
||||||
|
# here, because this file can only contain one case statement.
|
||||||
|
if test "$depmode" = hp; then
|
||||||
|
# HP compiler uses -M and no extra arg.
|
||||||
|
gccflag=-M
|
||||||
|
depmode=gcc
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$depmode" = dashXmstdout; then
|
||||||
|
# This is just like dashmstdout with a different argument.
|
||||||
|
dashmflag=-xM
|
||||||
|
depmode=dashmstdout
|
||||||
|
fi
|
||||||
|
|
||||||
|
case "$depmode" in
|
||||||
|
gcc3)
|
||||||
|
## gcc 3 implements dependency tracking that does exactly what
|
||||||
|
## we want. Yay! Note: for some reason libtool 1.4 doesn't like
|
||||||
|
## it if -MD -MP comes after the -MF stuff. Hmm.
|
||||||
|
"$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
|
||||||
|
stat=$?
|
||||||
|
if test $stat -eq 0; then :
|
||||||
|
else
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
exit $stat
|
||||||
|
fi
|
||||||
|
mv "$tmpdepfile" "$depfile"
|
||||||
|
;;
|
||||||
|
|
||||||
|
gcc)
|
||||||
|
## There are various ways to get dependency output from gcc. Here's
|
||||||
|
## why we pick this rather obscure method:
|
||||||
|
## - Don't want to use -MD because we'd like the dependencies to end
|
||||||
|
## up in a subdir. Having to rename by hand is ugly.
|
||||||
|
## (We might end up doing this anyway to support other compilers.)
|
||||||
|
## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
|
||||||
|
## -MM, not -M (despite what the docs say).
|
||||||
|
## - Using -M directly means running the compiler twice (even worse
|
||||||
|
## than renaming).
|
||||||
|
if test -z "$gccflag"; then
|
||||||
|
gccflag=-MD,
|
||||||
|
fi
|
||||||
|
"$@" -Wp,"$gccflag$tmpdepfile"
|
||||||
|
stat=$?
|
||||||
|
if test $stat -eq 0; then :
|
||||||
|
else
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
exit $stat
|
||||||
|
fi
|
||||||
|
rm -f "$depfile"
|
||||||
|
echo "$object : \\" > "$depfile"
|
||||||
|
alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
|
||||||
|
## The second -e expression handles DOS-style file names with drive letters.
|
||||||
|
sed -e 's/^[^:]*: / /' \
|
||||||
|
-e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
|
||||||
|
## This next piece of magic avoids the `deleted header file' problem.
|
||||||
|
## The problem is that when a header file which appears in a .P file
|
||||||
|
## is deleted, the dependency causes make to die (because there is
|
||||||
|
## typically no way to rebuild the header). We avoid this by adding
|
||||||
|
## dummy dependencies for each header file. Too bad gcc doesn't do
|
||||||
|
## this for us directly.
|
||||||
|
tr ' ' '
|
||||||
|
' < "$tmpdepfile" |
|
||||||
|
## Some versions of gcc put a space before the `:'. On the theory
|
||||||
|
## that the space means something, we add a space to the output as
|
||||||
|
## well.
|
||||||
|
## Some versions of the HPUX 10.20 sed can't process this invocation
|
||||||
|
## correctly. Breaking it into two sed invocations is a workaround.
|
||||||
|
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
;;
|
||||||
|
|
||||||
|
hp)
|
||||||
|
# This case exists only to let depend.m4 do its work. It works by
|
||||||
|
# looking at the text of this script. This case will never be run,
|
||||||
|
# since it is checked for above.
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
|
||||||
|
sgi)
|
||||||
|
if test "$libtool" = yes; then
|
||||||
|
"$@" "-Wp,-MDupdate,$tmpdepfile"
|
||||||
|
else
|
||||||
|
"$@" -MDupdate "$tmpdepfile"
|
||||||
|
fi
|
||||||
|
stat=$?
|
||||||
|
if test $stat -eq 0; then :
|
||||||
|
else
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
exit $stat
|
||||||
|
fi
|
||||||
|
rm -f "$depfile"
|
||||||
|
|
||||||
|
if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
|
||||||
|
echo "$object : \\" > "$depfile"
|
||||||
|
|
||||||
|
# Clip off the initial element (the dependent). Don't try to be
|
||||||
|
# clever and replace this with sed code, as IRIX sed won't handle
|
||||||
|
# lines with more than a fixed number of characters (4096 in
|
||||||
|
# IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
|
||||||
|
# the IRIX cc adds comments like `#:fec' to the end of the
|
||||||
|
# dependency line.
|
||||||
|
tr ' ' '
|
||||||
|
' < "$tmpdepfile" \
|
||||||
|
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
|
||||||
|
tr '
|
||||||
|
' ' ' >> $depfile
|
||||||
|
echo >> $depfile
|
||||||
|
|
||||||
|
# The second pass generates a dummy entry for each header file.
|
||||||
|
tr ' ' '
|
||||||
|
' < "$tmpdepfile" \
|
||||||
|
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
|
||||||
|
>> $depfile
|
||||||
|
else
|
||||||
|
# The sourcefile does not contain any dependencies, so just
|
||||||
|
# store a dummy comment line, to avoid errors with the Makefile
|
||||||
|
# "include basename.Plo" scheme.
|
||||||
|
echo "#dummy" > "$depfile"
|
||||||
|
fi
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
;;
|
||||||
|
|
||||||
|
aix)
|
||||||
|
# The C for AIX Compiler uses -M and outputs the dependencies
|
||||||
|
# in a .u file. This file always lives in the current directory.
|
||||||
|
# Also, the AIX compiler puts `$object:' at the start of each line;
|
||||||
|
# $object doesn't have directory information.
|
||||||
|
stripped=`echo "$object" | sed -e 's,^.*/,,' -e 's/\(.*\)\..*$/\1/'`
|
||||||
|
tmpdepfile="$stripped.u"
|
||||||
|
outname="$stripped.o"
|
||||||
|
if test "$libtool" = yes; then
|
||||||
|
"$@" -Wc,-M
|
||||||
|
else
|
||||||
|
"$@" -M
|
||||||
|
fi
|
||||||
|
|
||||||
|
stat=$?
|
||||||
|
if test $stat -eq 0; then :
|
||||||
|
else
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
exit $stat
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -f "$tmpdepfile"; then
|
||||||
|
# Each line is of the form `foo.o: dependent.h'.
|
||||||
|
# Do two passes, one to just change these to
|
||||||
|
# `$object: dependent.h' and one to simply `dependent.h:'.
|
||||||
|
sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
|
||||||
|
sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
|
||||||
|
else
|
||||||
|
# The sourcefile does not contain any dependencies, so just
|
||||||
|
# store a dummy comment line, to avoid errors with the Makefile
|
||||||
|
# "include basename.Plo" scheme.
|
||||||
|
echo "#dummy" > "$depfile"
|
||||||
|
fi
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
;;
|
||||||
|
|
||||||
|
tru64)
|
||||||
|
# The Tru64 compiler uses -MD to generate dependencies as a side
|
||||||
|
# effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
|
||||||
|
# At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
|
||||||
|
# dependencies in `foo.d' instead, so we check for that too.
|
||||||
|
# Subdirectories are respected.
|
||||||
|
dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
|
||||||
|
test "x$dir" = "x$object" && dir=
|
||||||
|
base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
|
||||||
|
|
||||||
|
if test "$libtool" = yes; then
|
||||||
|
tmpdepfile1="$dir.libs/$base.lo.d"
|
||||||
|
tmpdepfile2="$dir.libs/$base.d"
|
||||||
|
"$@" -Wc,-MD
|
||||||
|
else
|
||||||
|
tmpdepfile1="$dir$base.o.d"
|
||||||
|
tmpdepfile2="$dir$base.d"
|
||||||
|
"$@" -MD
|
||||||
|
fi
|
||||||
|
|
||||||
|
stat=$?
|
||||||
|
if test $stat -eq 0; then :
|
||||||
|
else
|
||||||
|
rm -f "$tmpdepfile1" "$tmpdepfile2"
|
||||||
|
exit $stat
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -f "$tmpdepfile1"; then
|
||||||
|
tmpdepfile="$tmpdepfile1"
|
||||||
|
else
|
||||||
|
tmpdepfile="$tmpdepfile2"
|
||||||
|
fi
|
||||||
|
if test -f "$tmpdepfile"; then
|
||||||
|
sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
|
||||||
|
# That's a space and a tab in the [].
|
||||||
|
sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
|
||||||
|
else
|
||||||
|
echo "#dummy" > "$depfile"
|
||||||
|
fi
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
;;
|
||||||
|
|
||||||
|
#nosideeffect)
|
||||||
|
# This comment above is used by automake to tell side-effect
|
||||||
|
# dependency tracking mechanisms from slower ones.
|
||||||
|
|
||||||
|
dashmstdout)
|
||||||
|
# Important note: in order to support this mode, a compiler *must*
|
||||||
|
# always write the proprocessed file to stdout, regardless of -o.
|
||||||
|
"$@" || exit $?
|
||||||
|
|
||||||
|
# Remove the call to Libtool.
|
||||||
|
if test "$libtool" = yes; then
|
||||||
|
while test $1 != '--mode=compile'; do
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
shift
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Remove `-o $object'. We will use -o /dev/null later,
|
||||||
|
# however we can't do the remplacement now because
|
||||||
|
# `-o $object' might simply not be used
|
||||||
|
IFS=" "
|
||||||
|
for arg
|
||||||
|
do
|
||||||
|
case $arg in
|
||||||
|
-o)
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
$object)
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
set fnord "$@" "$arg"
|
||||||
|
shift # fnord
|
||||||
|
shift # $arg
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
test -z "$dashmflag" && dashmflag=-M
|
||||||
|
"$@" -o /dev/null $dashmflag | sed 's:^[^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
|
||||||
|
rm -f "$depfile"
|
||||||
|
cat < "$tmpdepfile" > "$depfile"
|
||||||
|
tr ' ' '
|
||||||
|
' < "$tmpdepfile" | \
|
||||||
|
## Some versions of the HPUX 10.20 sed can't process this invocation
|
||||||
|
## correctly. Breaking it into two sed invocations is a workaround.
|
||||||
|
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
;;
|
||||||
|
|
||||||
|
dashXmstdout)
|
||||||
|
# This case only exists to satisfy depend.m4. It is never actually
|
||||||
|
# run, as this mode is specially recognized in the preamble.
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
|
||||||
|
makedepend)
|
||||||
|
"$@" || exit $?
|
||||||
|
# X makedepend
|
||||||
|
shift
|
||||||
|
cleared=no
|
||||||
|
for arg in "$@"; do
|
||||||
|
case $cleared in
|
||||||
|
no)
|
||||||
|
set ""; shift
|
||||||
|
cleared=yes ;;
|
||||||
|
esac
|
||||||
|
case "$arg" in
|
||||||
|
-D*|-I*)
|
||||||
|
set fnord "$@" "$arg"; shift ;;
|
||||||
|
-*)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
set fnord "$@" "$arg"; shift ;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
obj_suffix="`echo $object | sed 's/^.*\././'`"
|
||||||
|
touch "$tmpdepfile"
|
||||||
|
${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
|
||||||
|
rm -f "$depfile"
|
||||||
|
cat < "$tmpdepfile" > "$depfile"
|
||||||
|
sed '1,2d' "$tmpdepfile" | tr ' ' '
|
||||||
|
' | \
|
||||||
|
## Some versions of the HPUX 10.20 sed can't process this invocation
|
||||||
|
## correctly. Breaking it into two sed invocations is a workaround.
|
||||||
|
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
|
||||||
|
rm -f "$tmpdepfile" "$tmpdepfile".bak
|
||||||
|
;;
|
||||||
|
|
||||||
|
cpp)
|
||||||
|
# Important note: in order to support this mode, a compiler *must*
|
||||||
|
# always write the proprocessed file to stdout.
|
||||||
|
"$@" || exit $?
|
||||||
|
|
||||||
|
# Remove the call to Libtool.
|
||||||
|
if test "$libtool" = yes; then
|
||||||
|
while test $1 != '--mode=compile'; do
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
shift
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Remove `-o $object'.
|
||||||
|
IFS=" "
|
||||||
|
for arg
|
||||||
|
do
|
||||||
|
case $arg in
|
||||||
|
-o)
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
$object)
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
set fnord "$@" "$arg"
|
||||||
|
shift # fnord
|
||||||
|
shift # $arg
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
"$@" -E |
|
||||||
|
sed -n '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
|
||||||
|
sed '$ s: \\$::' > "$tmpdepfile"
|
||||||
|
rm -f "$depfile"
|
||||||
|
echo "$object : \\" > "$depfile"
|
||||||
|
cat < "$tmpdepfile" >> "$depfile"
|
||||||
|
sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
;;
|
||||||
|
|
||||||
|
msvisualcpp)
|
||||||
|
# Important note: in order to support this mode, a compiler *must*
|
||||||
|
# always write the proprocessed file to stdout, regardless of -o,
|
||||||
|
# because we must use -o when running libtool.
|
||||||
|
"$@" || exit $?
|
||||||
|
IFS=" "
|
||||||
|
for arg
|
||||||
|
do
|
||||||
|
case "$arg" in
|
||||||
|
"-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
|
||||||
|
set fnord "$@"
|
||||||
|
shift
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
set fnord "$@" "$arg"
|
||||||
|
shift
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
"$@" -E |
|
||||||
|
sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
|
||||||
|
rm -f "$depfile"
|
||||||
|
echo "$object : \\" > "$depfile"
|
||||||
|
. "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
|
||||||
|
echo " " >> "$depfile"
|
||||||
|
. "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
|
||||||
|
rm -f "$tmpdepfile"
|
||||||
|
;;
|
||||||
|
|
||||||
|
none)
|
||||||
|
exec "$@"
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
echo "Unknown depmode $depmode" 1>&2
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
exit 0
|
228
wmmemload/doc/Makefile
Normal file
228
wmmemload/doc/Makefile
Normal file
|
@ -0,0 +1,228 @@
|
||||||
|
# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
|
||||||
|
|
||||||
|
# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
# This Makefile.in is free software; the Free Software Foundation
|
||||||
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
|
# with or without modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||||
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
|
# PARTICULAR PURPOSE.
|
||||||
|
|
||||||
|
|
||||||
|
SHELL = /bin/sh
|
||||||
|
|
||||||
|
srcdir = .
|
||||||
|
top_srcdir = ..
|
||||||
|
|
||||||
|
prefix = /usr/local
|
||||||
|
exec_prefix = ${prefix}
|
||||||
|
|
||||||
|
bindir = ${exec_prefix}/bin
|
||||||
|
sbindir = ${exec_prefix}/sbin
|
||||||
|
libexecdir = ${exec_prefix}/libexec
|
||||||
|
datadir = ${prefix}/share
|
||||||
|
sysconfdir = ${prefix}/etc
|
||||||
|
sharedstatedir = ${prefix}/com
|
||||||
|
localstatedir = ${prefix}/var
|
||||||
|
libdir = ${exec_prefix}/lib
|
||||||
|
infodir = ${prefix}/info
|
||||||
|
mandir = ${prefix}/man
|
||||||
|
includedir = ${prefix}/include
|
||||||
|
oldincludedir = /usr/include
|
||||||
|
|
||||||
|
DESTDIR =
|
||||||
|
|
||||||
|
pkgdatadir = $(datadir)/wmmemload
|
||||||
|
pkglibdir = $(libdir)/wmmemload
|
||||||
|
pkgincludedir = $(includedir)/wmmemload
|
||||||
|
|
||||||
|
top_builddir = ..
|
||||||
|
|
||||||
|
ACLOCAL = aclocal
|
||||||
|
AUTOCONF = autoconf
|
||||||
|
AUTOMAKE = automake
|
||||||
|
AUTOHEADER = /home/mstagg/Development/markstaggs.net/wmmemload/wmmemload-0.1.4/missing autoheader
|
||||||
|
|
||||||
|
INSTALL = /usr/bin/install -c
|
||||||
|
INSTALL_PROGRAM = ${INSTALL} $(AM_INSTALL_PROGRAM_FLAGS)
|
||||||
|
INSTALL_DATA = ${INSTALL} -m 644
|
||||||
|
INSTALL_SCRIPT = ${INSTALL}
|
||||||
|
transform = s,x,x,
|
||||||
|
|
||||||
|
NORMAL_INSTALL = :
|
||||||
|
PRE_INSTALL = :
|
||||||
|
POST_INSTALL = :
|
||||||
|
NORMAL_UNINSTALL = :
|
||||||
|
PRE_UNINSTALL = :
|
||||||
|
POST_UNINSTALL = :
|
||||||
|
host_alias =
|
||||||
|
host_triplet = i686-pc-linux-gnu
|
||||||
|
AWK = mawk
|
||||||
|
CC = gcc
|
||||||
|
DFLAGS =
|
||||||
|
HEADER_SEARCH_PATH = -I/usr/X11R6/include -I/usr/local/include
|
||||||
|
LIBRARY_SEARCH_PATH = -L/usr/X11R6/lib -L/usr/local/lib
|
||||||
|
LIBS =
|
||||||
|
LN_S = ln -s
|
||||||
|
MAKEINFO = makeinfo
|
||||||
|
OS = linux
|
||||||
|
PACKAGE = wmmemload
|
||||||
|
SETGID_FLAGS =
|
||||||
|
VERSION = 0.1.4
|
||||||
|
XCFLAGS = -I/usr/X11R6/include
|
||||||
|
XLFLAGS = -L/usr/X11R6/lib
|
||||||
|
XLIBS = -lX11 -lXext -lXpm
|
||||||
|
X_EXTRA_LIBS =
|
||||||
|
X_LIBRARY_PATH = /usr/X11R6/lib
|
||||||
|
|
||||||
|
man_MANS = wmmemload.1
|
||||||
|
|
||||||
|
EXTRA_DIST = $(man_MANS)
|
||||||
|
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||||
|
CONFIG_HEADER = ../config.h
|
||||||
|
CONFIG_CLEAN_FILES =
|
||||||
|
man1dir = $(mandir)/man1
|
||||||
|
MANS = $(man_MANS)
|
||||||
|
|
||||||
|
NROFF = nroff
|
||||||
|
DIST_COMMON = Makefile.am Makefile.in
|
||||||
|
|
||||||
|
|
||||||
|
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
|
|
||||||
|
TAR = gtar
|
||||||
|
GZIP_ENV = --best
|
||||||
|
all: all-redirect
|
||||||
|
.SUFFIXES:
|
||||||
|
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.ac $(ACLOCAL_M4)
|
||||||
|
cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps doc/Makefile
|
||||||
|
|
||||||
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||||
|
cd $(top_builddir) \
|
||||||
|
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||||
|
|
||||||
|
|
||||||
|
install-man1:
|
||||||
|
$(mkinstalldirs) $(DESTDIR)$(man1dir)
|
||||||
|
@list='$(man1_MANS)'; \
|
||||||
|
l2='$(man_MANS)'; for i in $$l2; do \
|
||||||
|
case "$$i" in \
|
||||||
|
*.1*) list="$$list $$i" ;; \
|
||||||
|
esac; \
|
||||||
|
done; \
|
||||||
|
for i in $$list; do \
|
||||||
|
if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
|
||||||
|
else file=$$i; fi; \
|
||||||
|
ext=`echo $$i | sed -e 's/^.*\\.//'`; \
|
||||||
|
inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
|
||||||
|
inst=`echo $$inst | sed '$(transform)'`.$$ext; \
|
||||||
|
echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst"; \
|
||||||
|
$(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst; \
|
||||||
|
done
|
||||||
|
|
||||||
|
uninstall-man1:
|
||||||
|
@list='$(man1_MANS)'; \
|
||||||
|
l2='$(man_MANS)'; for i in $$l2; do \
|
||||||
|
case "$$i" in \
|
||||||
|
*.1*) list="$$list $$i" ;; \
|
||||||
|
esac; \
|
||||||
|
done; \
|
||||||
|
for i in $$list; do \
|
||||||
|
ext=`echo $$i | sed -e 's/^.*\\.//'`; \
|
||||||
|
inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
|
||||||
|
inst=`echo $$inst | sed '$(transform)'`.$$ext; \
|
||||||
|
echo " rm -f $(DESTDIR)$(man1dir)/$$inst"; \
|
||||||
|
rm -f $(DESTDIR)$(man1dir)/$$inst; \
|
||||||
|
done
|
||||||
|
install-man: $(MANS)
|
||||||
|
@$(NORMAL_INSTALL)
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) install-man1
|
||||||
|
uninstall-man:
|
||||||
|
@$(NORMAL_UNINSTALL)
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) uninstall-man1
|
||||||
|
tags: TAGS
|
||||||
|
TAGS:
|
||||||
|
|
||||||
|
|
||||||
|
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
|
||||||
|
|
||||||
|
subdir = doc
|
||||||
|
|
||||||
|
distdir: $(DISTFILES)
|
||||||
|
@for file in $(DISTFILES); do \
|
||||||
|
d=$(srcdir); \
|
||||||
|
if test -d $$d/$$file; then \
|
||||||
|
cp -pr $$d/$$file $(distdir)/$$file; \
|
||||||
|
else \
|
||||||
|
test -f $(distdir)/$$file \
|
||||||
|
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|
||||||
|
|| cp -p $$d/$$file $(distdir)/$$file || :; \
|
||||||
|
fi; \
|
||||||
|
done
|
||||||
|
info-am:
|
||||||
|
info: info-am
|
||||||
|
dvi-am:
|
||||||
|
dvi: dvi-am
|
||||||
|
check-am: all-am
|
||||||
|
check: check-am
|
||||||
|
installcheck-am:
|
||||||
|
installcheck: installcheck-am
|
||||||
|
install-exec-am:
|
||||||
|
install-exec: install-exec-am
|
||||||
|
|
||||||
|
install-data-am: install-man
|
||||||
|
install-data: install-data-am
|
||||||
|
|
||||||
|
install-am: all-am
|
||||||
|
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||||
|
install: install-am
|
||||||
|
uninstall-am: uninstall-man
|
||||||
|
uninstall: uninstall-am
|
||||||
|
all-am: Makefile $(MANS)
|
||||||
|
all-redirect: all-am
|
||||||
|
install-strip:
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
|
||||||
|
installdirs:
|
||||||
|
$(mkinstalldirs) $(DESTDIR)$(mandir)/man1
|
||||||
|
|
||||||
|
|
||||||
|
mostlyclean-generic:
|
||||||
|
|
||||||
|
clean-generic:
|
||||||
|
|
||||||
|
distclean-generic:
|
||||||
|
-rm -f Makefile $(CONFIG_CLEAN_FILES)
|
||||||
|
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
|
||||||
|
|
||||||
|
maintainer-clean-generic:
|
||||||
|
mostlyclean-am: mostlyclean-generic
|
||||||
|
|
||||||
|
mostlyclean: mostlyclean-am
|
||||||
|
|
||||||
|
clean-am: clean-generic mostlyclean-am
|
||||||
|
|
||||||
|
clean: clean-am
|
||||||
|
|
||||||
|
distclean-am: distclean-generic clean-am
|
||||||
|
|
||||||
|
distclean: distclean-am
|
||||||
|
|
||||||
|
maintainer-clean-am: maintainer-clean-generic distclean-am
|
||||||
|
@echo "This command is intended for maintainers to use;"
|
||||||
|
@echo "it deletes files that may require special tools to rebuild."
|
||||||
|
|
||||||
|
maintainer-clean: maintainer-clean-am
|
||||||
|
|
||||||
|
.PHONY: install-man1 uninstall-man1 install-man uninstall-man tags \
|
||||||
|
distdir info-am info dvi-am dvi check check-am installcheck-am \
|
||||||
|
installcheck install-exec-am install-exec install-data-am install-data \
|
||||||
|
install-am install uninstall-am uninstall all-redirect all-am all \
|
||||||
|
installdirs mostlyclean-generic distclean-generic clean-generic \
|
||||||
|
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
|
||||||
|
|
||||||
|
|
||||||
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||||
|
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||||
|
.NOEXPORT:
|
4
wmmemload/doc/Makefile.am
Normal file
4
wmmemload/doc/Makefile.am
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
|
||||||
|
man_MANS = wmmemload.1
|
||||||
|
|
||||||
|
EXTRA_DIST = $(man_MANS)
|
228
wmmemload/doc/Makefile.in
Normal file
228
wmmemload/doc/Makefile.in
Normal file
|
@ -0,0 +1,228 @@
|
||||||
|
# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
|
||||||
|
|
||||||
|
# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
# This Makefile.in is free software; the Free Software Foundation
|
||||||
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
|
# with or without modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||||
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
|
# PARTICULAR PURPOSE.
|
||||||
|
|
||||||
|
|
||||||
|
SHELL = @SHELL@
|
||||||
|
|
||||||
|
srcdir = @srcdir@
|
||||||
|
top_srcdir = @top_srcdir@
|
||||||
|
VPATH = @srcdir@
|
||||||
|
prefix = @prefix@
|
||||||
|
exec_prefix = @exec_prefix@
|
||||||
|
|
||||||
|
bindir = @bindir@
|
||||||
|
sbindir = @sbindir@
|
||||||
|
libexecdir = @libexecdir@
|
||||||
|
datadir = @datadir@
|
||||||
|
sysconfdir = @sysconfdir@
|
||||||
|
sharedstatedir = @sharedstatedir@
|
||||||
|
localstatedir = @localstatedir@
|
||||||
|
libdir = @libdir@
|
||||||
|
infodir = @infodir@
|
||||||
|
mandir = @mandir@
|
||||||
|
includedir = @includedir@
|
||||||
|
oldincludedir = /usr/include
|
||||||
|
|
||||||
|
DESTDIR =
|
||||||
|
|
||||||
|
pkgdatadir = $(datadir)/@PACKAGE@
|
||||||
|
pkglibdir = $(libdir)/@PACKAGE@
|
||||||
|
pkgincludedir = $(includedir)/@PACKAGE@
|
||||||
|
|
||||||
|
top_builddir = ..
|
||||||
|
|
||||||
|
ACLOCAL = @ACLOCAL@
|
||||||
|
AUTOCONF = @AUTOCONF@
|
||||||
|
AUTOMAKE = @AUTOMAKE@
|
||||||
|
AUTOHEADER = @AUTOHEADER@
|
||||||
|
|
||||||
|
INSTALL = @INSTALL@
|
||||||
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
|
||||||
|
INSTALL_DATA = @INSTALL_DATA@
|
||||||
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||||
|
transform = @program_transform_name@
|
||||||
|
|
||||||
|
NORMAL_INSTALL = :
|
||||||
|
PRE_INSTALL = :
|
||||||
|
POST_INSTALL = :
|
||||||
|
NORMAL_UNINSTALL = :
|
||||||
|
PRE_UNINSTALL = :
|
||||||
|
POST_UNINSTALL = :
|
||||||
|
host_alias = @host_alias@
|
||||||
|
host_triplet = @host@
|
||||||
|
AWK = @AWK@
|
||||||
|
CC = @CC@
|
||||||
|
DFLAGS = @DFLAGS@
|
||||||
|
HEADER_SEARCH_PATH = @HEADER_SEARCH_PATH@
|
||||||
|
LIBRARY_SEARCH_PATH = @LIBRARY_SEARCH_PATH@
|
||||||
|
LIBS = @LIBS@
|
||||||
|
LN_S = @LN_S@
|
||||||
|
MAKEINFO = @MAKEINFO@
|
||||||
|
OS = @OS@
|
||||||
|
PACKAGE = @PACKAGE@
|
||||||
|
SETGID_FLAGS = @SETGID_FLAGS@
|
||||||
|
VERSION = @VERSION@
|
||||||
|
XCFLAGS = @XCFLAGS@
|
||||||
|
XLFLAGS = @XLFLAGS@
|
||||||
|
XLIBS = @XLIBS@
|
||||||
|
X_EXTRA_LIBS = @X_EXTRA_LIBS@
|
||||||
|
X_LIBRARY_PATH = @X_LIBRARY_PATH@
|
||||||
|
|
||||||
|
man_MANS = wmmemload.1
|
||||||
|
|
||||||
|
EXTRA_DIST = $(man_MANS)
|
||||||
|
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||||
|
CONFIG_HEADER = ../config.h
|
||||||
|
CONFIG_CLEAN_FILES =
|
||||||
|
man1dir = $(mandir)/man1
|
||||||
|
MANS = $(man_MANS)
|
||||||
|
|
||||||
|
NROFF = nroff
|
||||||
|
DIST_COMMON = Makefile.am Makefile.in
|
||||||
|
|
||||||
|
|
||||||
|
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
|
|
||||||
|
TAR = gtar
|
||||||
|
GZIP_ENV = --best
|
||||||
|
all: all-redirect
|
||||||
|
.SUFFIXES:
|
||||||
|
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.ac $(ACLOCAL_M4)
|
||||||
|
cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps doc/Makefile
|
||||||
|
|
||||||
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||||
|
cd $(top_builddir) \
|
||||||
|
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||||
|
|
||||||
|
|
||||||
|
install-man1:
|
||||||
|
$(mkinstalldirs) $(DESTDIR)$(man1dir)
|
||||||
|
@list='$(man1_MANS)'; \
|
||||||
|
l2='$(man_MANS)'; for i in $$l2; do \
|
||||||
|
case "$$i" in \
|
||||||
|
*.1*) list="$$list $$i" ;; \
|
||||||
|
esac; \
|
||||||
|
done; \
|
||||||
|
for i in $$list; do \
|
||||||
|
if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
|
||||||
|
else file=$$i; fi; \
|
||||||
|
ext=`echo $$i | sed -e 's/^.*\\.//'`; \
|
||||||
|
inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
|
||||||
|
inst=`echo $$inst | sed '$(transform)'`.$$ext; \
|
||||||
|
echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst"; \
|
||||||
|
$(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst; \
|
||||||
|
done
|
||||||
|
|
||||||
|
uninstall-man1:
|
||||||
|
@list='$(man1_MANS)'; \
|
||||||
|
l2='$(man_MANS)'; for i in $$l2; do \
|
||||||
|
case "$$i" in \
|
||||||
|
*.1*) list="$$list $$i" ;; \
|
||||||
|
esac; \
|
||||||
|
done; \
|
||||||
|
for i in $$list; do \
|
||||||
|
ext=`echo $$i | sed -e 's/^.*\\.//'`; \
|
||||||
|
inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
|
||||||
|
inst=`echo $$inst | sed '$(transform)'`.$$ext; \
|
||||||
|
echo " rm -f $(DESTDIR)$(man1dir)/$$inst"; \
|
||||||
|
rm -f $(DESTDIR)$(man1dir)/$$inst; \
|
||||||
|
done
|
||||||
|
install-man: $(MANS)
|
||||||
|
@$(NORMAL_INSTALL)
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) install-man1
|
||||||
|
uninstall-man:
|
||||||
|
@$(NORMAL_UNINSTALL)
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) uninstall-man1
|
||||||
|
tags: TAGS
|
||||||
|
TAGS:
|
||||||
|
|
||||||
|
|
||||||
|
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
|
||||||
|
|
||||||
|
subdir = doc
|
||||||
|
|
||||||
|
distdir: $(DISTFILES)
|
||||||
|
@for file in $(DISTFILES); do \
|
||||||
|
d=$(srcdir); \
|
||||||
|
if test -d $$d/$$file; then \
|
||||||
|
cp -pr $$d/$$file $(distdir)/$$file; \
|
||||||
|
else \
|
||||||
|
test -f $(distdir)/$$file \
|
||||||
|
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|
||||||
|
|| cp -p $$d/$$file $(distdir)/$$file || :; \
|
||||||
|
fi; \
|
||||||
|
done
|
||||||
|
info-am:
|
||||||
|
info: info-am
|
||||||
|
dvi-am:
|
||||||
|
dvi: dvi-am
|
||||||
|
check-am: all-am
|
||||||
|
check: check-am
|
||||||
|
installcheck-am:
|
||||||
|
installcheck: installcheck-am
|
||||||
|
install-exec-am:
|
||||||
|
install-exec: install-exec-am
|
||||||
|
|
||||||
|
install-data-am: install-man
|
||||||
|
install-data: install-data-am
|
||||||
|
|
||||||
|
install-am: all-am
|
||||||
|
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||||
|
install: install-am
|
||||||
|
uninstall-am: uninstall-man
|
||||||
|
uninstall: uninstall-am
|
||||||
|
all-am: Makefile $(MANS)
|
||||||
|
all-redirect: all-am
|
||||||
|
install-strip:
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
|
||||||
|
installdirs:
|
||||||
|
$(mkinstalldirs) $(DESTDIR)$(mandir)/man1
|
||||||
|
|
||||||
|
|
||||||
|
mostlyclean-generic:
|
||||||
|
|
||||||
|
clean-generic:
|
||||||
|
|
||||||
|
distclean-generic:
|
||||||
|
-rm -f Makefile $(CONFIG_CLEAN_FILES)
|
||||||
|
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
|
||||||
|
|
||||||
|
maintainer-clean-generic:
|
||||||
|
mostlyclean-am: mostlyclean-generic
|
||||||
|
|
||||||
|
mostlyclean: mostlyclean-am
|
||||||
|
|
||||||
|
clean-am: clean-generic mostlyclean-am
|
||||||
|
|
||||||
|
clean: clean-am
|
||||||
|
|
||||||
|
distclean-am: distclean-generic clean-am
|
||||||
|
|
||||||
|
distclean: distclean-am
|
||||||
|
|
||||||
|
maintainer-clean-am: maintainer-clean-generic distclean-am
|
||||||
|
@echo "This command is intended for maintainers to use;"
|
||||||
|
@echo "it deletes files that may require special tools to rebuild."
|
||||||
|
|
||||||
|
maintainer-clean: maintainer-clean-am
|
||||||
|
|
||||||
|
.PHONY: install-man1 uninstall-man1 install-man uninstall-man tags \
|
||||||
|
distdir info-am info dvi-am dvi check check-am installcheck-am \
|
||||||
|
installcheck install-exec-am install-exec install-data-am install-data \
|
||||||
|
install-am install uninstall-am uninstall all-redirect all-am all \
|
||||||
|
installdirs mostlyclean-generic distclean-generic clean-generic \
|
||||||
|
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
|
||||||
|
|
||||||
|
|
||||||
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||||
|
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||||
|
.NOEXPORT:
|
89
wmmemload/doc/wmmemload.1
Normal file
89
wmmemload/doc/wmmemload.1
Normal file
|
@ -0,0 +1,89 @@
|
||||||
|
.\" Hey, EMACS: -*- nroff -*-
|
||||||
|
.\" First parameter, NAME, should be all caps
|
||||||
|
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
|
||||||
|
.\" other parameters are allowed: see man(7), man(1)
|
||||||
|
.TH WMMEMLOAD 1 "April 3, 2002"
|
||||||
|
.\" Please adjust this date whenever revising the manpage.
|
||||||
|
.\"
|
||||||
|
.\" Some roff macros, for reference:
|
||||||
|
.\" .nh disable hyphenation
|
||||||
|
.\" .hy enable hyphenation
|
||||||
|
.\" .ad l left justify
|
||||||
|
.\" .ad b justify to both left and right margins
|
||||||
|
.\" .nf disable filling
|
||||||
|
.\" .fi enable filling
|
||||||
|
.\" .br insert line break
|
||||||
|
.\" .sp <n> insert n+1 empty lines
|
||||||
|
.\" for manpage-specific macros, see man(7)
|
||||||
|
.SH NAME
|
||||||
|
wmmemload \- A dockapp to monitor memory/swap usages
|
||||||
|
.SH SYNOPSIS
|
||||||
|
.B wmmemload [options]
|
||||||
|
.SH DESCRIPTION
|
||||||
|
This manual page documents briefly the
|
||||||
|
.B wmmemload
|
||||||
|
command.
|
||||||
|
.PP
|
||||||
|
.\" TeX users may be more comfortable with the \fB<whatever>\fP and
|
||||||
|
.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
|
||||||
|
.\" respectively.
|
||||||
|
\fBWMMemLoad\fP is a program to monitor memory/swap usages. It is a dockapp that is supported by X window managers such as Window Maker, AfterStep, BlackBox, and
|
||||||
|
Enlightenment.
|
||||||
|
|
||||||
|
The current memory usage is displayed in the top half. The swap usage
|
||||||
|
is in the bottom half. It has an LCD look-alike user interface.
|
||||||
|
The back-light may be turned on/off by clicking the mouse button over the
|
||||||
|
appliacation. If the usage hits a certain threshold, an alarm-mode will alert
|
||||||
|
you by turning on back-light.
|
||||||
|
|
||||||
|
.SH OPTIONS
|
||||||
|
This program follows the usual GNU command line syntax, with long options
|
||||||
|
starting with two dashes (`\-'). A summary of options is included below.
|
||||||
|
.TP
|
||||||
|
.B \-d, \-\-display <string>
|
||||||
|
Attempt to open a window on the named X display. In the absence of this option,
|
||||||
|
the display specified by the
|
||||||
|
.B DISPLAY
|
||||||
|
environment variable is used.
|
||||||
|
.TP
|
||||||
|
.B \-bl, \-\-backlight
|
||||||
|
turn on back-light.
|
||||||
|
.TP
|
||||||
|
.B \-lc, \-\-light\-color <color>
|
||||||
|
back-light color. (rgb:6E/C6/3B is default)
|
||||||
|
.TP
|
||||||
|
.B \-i, \-\-interval <number>
|
||||||
|
number of secs between updates. (1 is default)
|
||||||
|
.TP
|
||||||
|
.B \-b, \-\-ignore\-buffers
|
||||||
|
ignore buffers. (GNU/Linux)
|
||||||
|
.TP
|
||||||
|
.B \-c, \-\-ignore\-cached
|
||||||
|
ignore cached pages. (GNU/Linux / FreeBSD)
|
||||||
|
.TP
|
||||||
|
.B \-c, \-\-ignore\-wired
|
||||||
|
ignore wired pages. (FreeBSD)
|
||||||
|
.TP
|
||||||
|
.B \-h, \-\-help
|
||||||
|
show help text and exit.
|
||||||
|
.TP
|
||||||
|
.B \-v, \-\-version
|
||||||
|
show program version and exit.
|
||||||
|
.TP
|
||||||
|
.B \-w, \-\-windowed
|
||||||
|
run the application in windowed mode
|
||||||
|
.TP
|
||||||
|
.B \-bw, \-\-broken\-wm
|
||||||
|
activate broken window manager fix
|
||||||
|
.TP
|
||||||
|
.B \-a, \-\-alarm\-mem <percentage>
|
||||||
|
activate alarm mode of memory. <percentage> is threshold of percentage from 0
|
||||||
|
to 100.(90 is default)
|
||||||
|
.TP
|
||||||
|
.B \-a, \-\-alarm\-swap <percentage>
|
||||||
|
activate alarm mode of swap. <percentage> is threshold of percentage from 0 to
|
||||||
|
100.(50 is default)
|
||||||
|
|
||||||
|
.SH AUTHOR
|
||||||
|
WMMemLoad was assembled by Mark Staggs <me@markstaggs.net>. It is largely based
|
||||||
|
on WMMemMon and WMCPULoad by Seiichi SATO <ssato@sh.rim.or.jp>.
|
251
wmmemload/install-sh
Executable file
251
wmmemload/install-sh
Executable file
|
@ -0,0 +1,251 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# install - install a program, script, or datafile
|
||||||
|
# This comes from X11R5 (mit/util/scripts/install.sh).
|
||||||
|
#
|
||||||
|
# Copyright 1991 by the Massachusetts Institute of Technology
|
||||||
|
#
|
||||||
|
# Permission to use, copy, modify, distribute, and sell this software and its
|
||||||
|
# documentation for any purpose is hereby granted without fee, provided that
|
||||||
|
# the above copyright notice appear in all copies and that both that
|
||||||
|
# copyright notice and this permission notice appear in supporting
|
||||||
|
# documentation, and that the name of M.I.T. not be used in advertising or
|
||||||
|
# publicity pertaining to distribution of the software without specific,
|
||||||
|
# written prior permission. M.I.T. makes no representations about the
|
||||||
|
# suitability of this software for any purpose. It is provided "as is"
|
||||||
|
# without express or implied warranty.
|
||||||
|
#
|
||||||
|
# Calling this script install-sh is preferred over install.sh, to prevent
|
||||||
|
# `make' implicit rules from creating a file called install from it
|
||||||
|
# when there is no Makefile.
|
||||||
|
#
|
||||||
|
# This script is compatible with the BSD install script, but was written
|
||||||
|
# from scratch. It can only install one file at a time, a restriction
|
||||||
|
# shared with many OS's install programs.
|
||||||
|
|
||||||
|
|
||||||
|
# set DOITPROG to echo to test this script
|
||||||
|
|
||||||
|
# Don't use :- since 4.3BSD and earlier shells don't like it.
|
||||||
|
doit="${DOITPROG-}"
|
||||||
|
|
||||||
|
|
||||||
|
# put in absolute paths if you don't have them in your path; or use env. vars.
|
||||||
|
|
||||||
|
mvprog="${MVPROG-mv}"
|
||||||
|
cpprog="${CPPROG-cp}"
|
||||||
|
chmodprog="${CHMODPROG-chmod}"
|
||||||
|
chownprog="${CHOWNPROG-chown}"
|
||||||
|
chgrpprog="${CHGRPPROG-chgrp}"
|
||||||
|
stripprog="${STRIPPROG-strip}"
|
||||||
|
rmprog="${RMPROG-rm}"
|
||||||
|
mkdirprog="${MKDIRPROG-mkdir}"
|
||||||
|
|
||||||
|
transformbasename=""
|
||||||
|
transform_arg=""
|
||||||
|
instcmd="$mvprog"
|
||||||
|
chmodcmd="$chmodprog 0755"
|
||||||
|
chowncmd=""
|
||||||
|
chgrpcmd=""
|
||||||
|
stripcmd=""
|
||||||
|
rmcmd="$rmprog -f"
|
||||||
|
mvcmd="$mvprog"
|
||||||
|
src=""
|
||||||
|
dst=""
|
||||||
|
dir_arg=""
|
||||||
|
|
||||||
|
while [ x"$1" != x ]; do
|
||||||
|
case $1 in
|
||||||
|
-c) instcmd="$cpprog"
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-d) dir_arg=true
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-m) chmodcmd="$chmodprog $2"
|
||||||
|
shift
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-o) chowncmd="$chownprog $2"
|
||||||
|
shift
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-g) chgrpcmd="$chgrpprog $2"
|
||||||
|
shift
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-s) stripcmd="$stripprog"
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-t=*) transformarg=`echo $1 | sed 's/-t=//'`
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
-b=*) transformbasename=`echo $1 | sed 's/-b=//'`
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
|
||||||
|
*) if [ x"$src" = x ]
|
||||||
|
then
|
||||||
|
src=$1
|
||||||
|
else
|
||||||
|
# this colon is to work around a 386BSD /bin/sh bug
|
||||||
|
:
|
||||||
|
dst=$1
|
||||||
|
fi
|
||||||
|
shift
|
||||||
|
continue;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ x"$src" = x ]
|
||||||
|
then
|
||||||
|
echo "install: no input file specified"
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
true
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ x"$dir_arg" != x ]; then
|
||||||
|
dst=$src
|
||||||
|
src=""
|
||||||
|
|
||||||
|
if [ -d $dst ]; then
|
||||||
|
instcmd=:
|
||||||
|
chmodcmd=""
|
||||||
|
else
|
||||||
|
instcmd=mkdir
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
|
||||||
|
# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
|
||||||
|
# might cause directories to be created, which would be especially bad
|
||||||
|
# if $src (and thus $dsttmp) contains '*'.
|
||||||
|
|
||||||
|
if [ -f $src -o -d $src ]
|
||||||
|
then
|
||||||
|
true
|
||||||
|
else
|
||||||
|
echo "install: $src does not exist"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ x"$dst" = x ]
|
||||||
|
then
|
||||||
|
echo "install: no destination specified"
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
true
|
||||||
|
fi
|
||||||
|
|
||||||
|
# If destination is a directory, append the input filename; if your system
|
||||||
|
# does not like double slashes in filenames, you may need to add some logic
|
||||||
|
|
||||||
|
if [ -d $dst ]
|
||||||
|
then
|
||||||
|
dst="$dst"/`basename $src`
|
||||||
|
else
|
||||||
|
true
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
## this sed command emulates the dirname command
|
||||||
|
dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
|
||||||
|
|
||||||
|
# Make sure that the destination directory exists.
|
||||||
|
# this part is taken from Noah Friedman's mkinstalldirs script
|
||||||
|
|
||||||
|
# Skip lots of stat calls in the usual case.
|
||||||
|
if [ ! -d "$dstdir" ]; then
|
||||||
|
defaultIFS='
|
||||||
|
'
|
||||||
|
IFS="${IFS-${defaultIFS}}"
|
||||||
|
|
||||||
|
oIFS="${IFS}"
|
||||||
|
# Some sh's can't handle IFS=/ for some reason.
|
||||||
|
IFS='%'
|
||||||
|
set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
|
||||||
|
IFS="${oIFS}"
|
||||||
|
|
||||||
|
pathcomp=''
|
||||||
|
|
||||||
|
while [ $# -ne 0 ] ; do
|
||||||
|
pathcomp="${pathcomp}${1}"
|
||||||
|
shift
|
||||||
|
|
||||||
|
if [ ! -d "${pathcomp}" ] ;
|
||||||
|
then
|
||||||
|
$mkdirprog "${pathcomp}"
|
||||||
|
else
|
||||||
|
true
|
||||||
|
fi
|
||||||
|
|
||||||
|
pathcomp="${pathcomp}/"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ x"$dir_arg" != x ]
|
||||||
|
then
|
||||||
|
$doit $instcmd $dst &&
|
||||||
|
|
||||||
|
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
|
||||||
|
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
|
||||||
|
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
|
||||||
|
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
|
||||||
|
else
|
||||||
|
|
||||||
|
# If we're going to rename the final executable, determine the name now.
|
||||||
|
|
||||||
|
if [ x"$transformarg" = x ]
|
||||||
|
then
|
||||||
|
dstfile=`basename $dst`
|
||||||
|
else
|
||||||
|
dstfile=`basename $dst $transformbasename |
|
||||||
|
sed $transformarg`$transformbasename
|
||||||
|
fi
|
||||||
|
|
||||||
|
# don't allow the sed command to completely eliminate the filename
|
||||||
|
|
||||||
|
if [ x"$dstfile" = x ]
|
||||||
|
then
|
||||||
|
dstfile=`basename $dst`
|
||||||
|
else
|
||||||
|
true
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Make a temp file name in the proper directory.
|
||||||
|
|
||||||
|
dsttmp=$dstdir/#inst.$$#
|
||||||
|
|
||||||
|
# Move or copy the file name to the temp name
|
||||||
|
|
||||||
|
$doit $instcmd $src $dsttmp &&
|
||||||
|
|
||||||
|
trap "rm -f ${dsttmp}" 0 &&
|
||||||
|
|
||||||
|
# and set any options; do chmod last to preserve setuid bits
|
||||||
|
|
||||||
|
# If any of these fail, we abort the whole thing. If we want to
|
||||||
|
# ignore errors from any of these, just make sure not to ignore
|
||||||
|
# errors from the above "$doit $instcmd $src $dsttmp" command.
|
||||||
|
|
||||||
|
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
|
||||||
|
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
|
||||||
|
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
|
||||||
|
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
|
||||||
|
|
||||||
|
# Now rename the file to the real destination.
|
||||||
|
|
||||||
|
$doit $rmcmd -f $dstdir/$dstfile &&
|
||||||
|
$doit $mvcmd $dsttmp $dstdir/$dstfile
|
||||||
|
|
||||||
|
fi &&
|
||||||
|
|
||||||
|
|
||||||
|
exit 0
|
190
wmmemload/missing
Executable file
190
wmmemload/missing
Executable file
|
@ -0,0 +1,190 @@
|
||||||
|
#! /bin/sh
|
||||||
|
# Common stub for a few missing GNU programs while installing.
|
||||||
|
# Copyright (C) 1996, 1997 Free Software Foundation, Inc.
|
||||||
|
# Franc,ois Pinard <pinard@iro.umontreal.ca>, 1996.
|
||||||
|
|
||||||
|
# This program is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
# any later version.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||||
|
# 02111-1307, USA.
|
||||||
|
|
||||||
|
if test $# -eq 0; then
|
||||||
|
echo 1>&2 "Try \`$0 --help' for more information"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
|
||||||
|
-h|--h|--he|--hel|--help)
|
||||||
|
echo "\
|
||||||
|
$0 [OPTION]... PROGRAM [ARGUMENT]...
|
||||||
|
|
||||||
|
Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
|
||||||
|
error status if there is no known handling for PROGRAM.
|
||||||
|
|
||||||
|
Options:
|
||||||
|
-h, --help display this help and exit
|
||||||
|
-v, --version output version information and exit
|
||||||
|
|
||||||
|
Supported PROGRAM values:
|
||||||
|
aclocal touch file \`aclocal.m4'
|
||||||
|
autoconf touch file \`configure'
|
||||||
|
autoheader touch file \`config.h.in'
|
||||||
|
automake touch all \`Makefile.in' files
|
||||||
|
bison create \`y.tab.[ch]', if possible, from existing .[ch]
|
||||||
|
flex create \`lex.yy.c', if possible, from existing .c
|
||||||
|
lex create \`lex.yy.c', if possible, from existing .c
|
||||||
|
makeinfo touch the output file
|
||||||
|
yacc create \`y.tab.[ch]', if possible, from existing .[ch]"
|
||||||
|
;;
|
||||||
|
|
||||||
|
-v|--v|--ve|--ver|--vers|--versi|--versio|--version)
|
||||||
|
echo "missing - GNU libit 0.0"
|
||||||
|
;;
|
||||||
|
|
||||||
|
-*)
|
||||||
|
echo 1>&2 "$0: Unknown \`$1' option"
|
||||||
|
echo 1>&2 "Try \`$0 --help' for more information"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
|
||||||
|
aclocal)
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' is missing on your system. You should only need it if
|
||||||
|
you modified \`acinclude.m4' or \`configure.in'. You might want
|
||||||
|
to install the \`Automake' and \`Perl' packages. Grab them from
|
||||||
|
any GNU archive site."
|
||||||
|
touch aclocal.m4
|
||||||
|
;;
|
||||||
|
|
||||||
|
autoconf)
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' is missing on your system. You should only need it if
|
||||||
|
you modified \`configure.in'. You might want to install the
|
||||||
|
\`Autoconf' and \`GNU m4' packages. Grab them from any GNU
|
||||||
|
archive site."
|
||||||
|
touch configure
|
||||||
|
;;
|
||||||
|
|
||||||
|
autoheader)
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' is missing on your system. You should only need it if
|
||||||
|
you modified \`acconfig.h' or \`configure.in'. You might want
|
||||||
|
to install the \`Autoconf' and \`GNU m4' packages. Grab them
|
||||||
|
from any GNU archive site."
|
||||||
|
files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' configure.in`
|
||||||
|
test -z "$files" && files="config.h"
|
||||||
|
touch_files=
|
||||||
|
for f in $files; do
|
||||||
|
case "$f" in
|
||||||
|
*:*) touch_files="$touch_files "`echo "$f" |
|
||||||
|
sed -e 's/^[^:]*://' -e 's/:.*//'`;;
|
||||||
|
*) touch_files="$touch_files $f.in";;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
touch $touch_files
|
||||||
|
;;
|
||||||
|
|
||||||
|
automake)
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' is missing on your system. You should only need it if
|
||||||
|
you modified \`Makefile.am', \`acinclude.m4' or \`configure.in'.
|
||||||
|
You might want to install the \`Automake' and \`Perl' packages.
|
||||||
|
Grab them from any GNU archive site."
|
||||||
|
find . -type f -name Makefile.am -print |
|
||||||
|
sed 's/\.am$/.in/' |
|
||||||
|
while read f; do touch "$f"; done
|
||||||
|
;;
|
||||||
|
|
||||||
|
bison|yacc)
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' is missing on your system. You should only need it if
|
||||||
|
you modified a \`.y' file. You may need the \`Bison' package
|
||||||
|
in order for those modifications to take effect. You can get
|
||||||
|
\`Bison' from any GNU archive site."
|
||||||
|
rm -f y.tab.c y.tab.h
|
||||||
|
if [ $# -ne 1 ]; then
|
||||||
|
eval LASTARG="\${$#}"
|
||||||
|
case "$LASTARG" in
|
||||||
|
*.y)
|
||||||
|
SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
|
||||||
|
if [ -f "$SRCFILE" ]; then
|
||||||
|
cp "$SRCFILE" y.tab.c
|
||||||
|
fi
|
||||||
|
SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
|
||||||
|
if [ -f "$SRCFILE" ]; then
|
||||||
|
cp "$SRCFILE" y.tab.h
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
if [ ! -f y.tab.h ]; then
|
||||||
|
echo >y.tab.h
|
||||||
|
fi
|
||||||
|
if [ ! -f y.tab.c ]; then
|
||||||
|
echo 'main() { return 0; }' >y.tab.c
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
lex|flex)
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' is missing on your system. You should only need it if
|
||||||
|
you modified a \`.l' file. You may need the \`Flex' package
|
||||||
|
in order for those modifications to take effect. You can get
|
||||||
|
\`Flex' from any GNU archive site."
|
||||||
|
rm -f lex.yy.c
|
||||||
|
if [ $# -ne 1 ]; then
|
||||||
|
eval LASTARG="\${$#}"
|
||||||
|
case "$LASTARG" in
|
||||||
|
*.l)
|
||||||
|
SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
|
||||||
|
if [ -f "$SRCFILE" ]; then
|
||||||
|
cp "$SRCFILE" lex.yy.c
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
if [ ! -f lex.yy.c ]; then
|
||||||
|
echo 'main() { return 0; }' >lex.yy.c
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
makeinfo)
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' is missing on your system. You should only need it if
|
||||||
|
you modified a \`.texi' or \`.texinfo' file, or any other file
|
||||||
|
indirectly affecting the aspect of the manual. The spurious
|
||||||
|
call might also be the consequence of using a buggy \`make' (AIX,
|
||||||
|
DU, IRIX). You might want to install the \`Texinfo' package or
|
||||||
|
the \`GNU make' package. Grab either from any GNU archive site."
|
||||||
|
file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
|
||||||
|
if test -z "$file"; then
|
||||||
|
file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
|
||||||
|
file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
|
||||||
|
fi
|
||||||
|
touch $file
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
echo 1>&2 "\
|
||||||
|
WARNING: \`$1' is needed, and you do not seem to have it handy on your
|
||||||
|
system. You might have modified some files without having the
|
||||||
|
proper tools for further handling them. Check the \`README' file,
|
||||||
|
it often tells you about the needed prerequirements for installing
|
||||||
|
this package. You may also peek at any GNU archive site, in case
|
||||||
|
some other package would contain this missing \`$1' program."
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
exit 0
|
40
wmmemload/mkinstalldirs
Executable file
40
wmmemload/mkinstalldirs
Executable file
|
@ -0,0 +1,40 @@
|
||||||
|
#! /bin/sh
|
||||||
|
# mkinstalldirs --- make directory hierarchy
|
||||||
|
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
|
||||||
|
# Created: 1993-05-16
|
||||||
|
# Public domain
|
||||||
|
|
||||||
|
# $Id: mkinstalldirs,v 1.13 1999/01/05 03:18:55 bje Exp $
|
||||||
|
|
||||||
|
errstatus=0
|
||||||
|
|
||||||
|
for file
|
||||||
|
do
|
||||||
|
set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
|
||||||
|
shift
|
||||||
|
|
||||||
|
pathcomp=
|
||||||
|
for d
|
||||||
|
do
|
||||||
|
pathcomp="$pathcomp$d"
|
||||||
|
case "$pathcomp" in
|
||||||
|
-* ) pathcomp=./$pathcomp ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if test ! -d "$pathcomp"; then
|
||||||
|
echo "mkdir $pathcomp"
|
||||||
|
|
||||||
|
mkdir "$pathcomp" || lasterr=$?
|
||||||
|
|
||||||
|
if test ! -d "$pathcomp"; then
|
||||||
|
errstatus=$lasterr
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
pathcomp="$pathcomp/"
|
||||||
|
done
|
||||||
|
done
|
||||||
|
|
||||||
|
exit $errstatus
|
||||||
|
|
||||||
|
# mkinstalldirs ends here
|
BIN
wmmemload/src/.xvpics/backlight_off.xpm
Normal file
BIN
wmmemload/src/.xvpics/backlight_off.xpm
Normal file
Binary file not shown.
BIN
wmmemload/src/.xvpics/backlight_on.xpm
Normal file
BIN
wmmemload/src/.xvpics/backlight_on.xpm
Normal file
Binary file not shown.
30
wmmemload/src/Makefile.am
Normal file
30
wmmemload/src/Makefile.am
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
bin_PROGRAMS = wmmemload
|
||||||
|
|
||||||
|
wmmemload_SOURCES = \
|
||||||
|
main.c \
|
||||||
|
mem.h \
|
||||||
|
mem_@OS@.c \
|
||||||
|
dockapp.c \
|
||||||
|
dockapp.h \
|
||||||
|
backdrop_off.xpm \
|
||||||
|
backdrop_on.xpm \
|
||||||
|
parts_mem.xpm \
|
||||||
|
parts_swap.xpm
|
||||||
|
|
||||||
|
EXTRA_wmmemload_SOURCES = \
|
||||||
|
mem_linux.c \
|
||||||
|
mem_freebsd.c \
|
||||||
|
mem_freebsd_sysctl.c \
|
||||||
|
mem_openbsd.c \
|
||||||
|
mem_solaris.c
|
||||||
|
|
||||||
|
CPPFLAGS = @CPPFLAGS@ @DFLAGS@
|
||||||
|
|
||||||
|
INCLUDES = @HEADER_SEARCH_PATH@
|
||||||
|
|
||||||
|
wmmemload_LDADD = @LIBRARY_SEARCH_PATH@ @XLIBS@
|
||||||
|
|
||||||
|
INSTALL_PROGRAM = \
|
||||||
|
@INSTALL_PROGRAM@ \
|
||||||
|
@SETGID_FLAGS@ \
|
||||||
|
$(AM_INSTALL_PROGRAM_FLAGS)
|
299
wmmemload/src/Makefile.in
Normal file
299
wmmemload/src/Makefile.in
Normal file
|
@ -0,0 +1,299 @@
|
||||||
|
# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
|
||||||
|
|
||||||
|
# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
|
||||||
|
# This Makefile.in is free software; the Free Software Foundation
|
||||||
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
|
# with or without modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||||
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
|
# PARTICULAR PURPOSE.
|
||||||
|
|
||||||
|
|
||||||
|
SHELL = @SHELL@
|
||||||
|
|
||||||
|
srcdir = @srcdir@
|
||||||
|
top_srcdir = @top_srcdir@
|
||||||
|
VPATH = @srcdir@
|
||||||
|
prefix = @prefix@
|
||||||
|
exec_prefix = @exec_prefix@
|
||||||
|
|
||||||
|
bindir = @bindir@
|
||||||
|
sbindir = @sbindir@
|
||||||
|
libexecdir = @libexecdir@
|
||||||
|
datadir = @datadir@
|
||||||
|
sysconfdir = @sysconfdir@
|
||||||
|
sharedstatedir = @sharedstatedir@
|
||||||
|
localstatedir = @localstatedir@
|
||||||
|
libdir = @libdir@
|
||||||
|
infodir = @infodir@
|
||||||
|
mandir = @mandir@
|
||||||
|
includedir = @includedir@
|
||||||
|
oldincludedir = /usr/include
|
||||||
|
|
||||||
|
DESTDIR =
|
||||||
|
|
||||||
|
pkgdatadir = $(datadir)/@PACKAGE@
|
||||||
|
pkglibdir = $(libdir)/@PACKAGE@
|
||||||
|
pkgincludedir = $(includedir)/@PACKAGE@
|
||||||
|
|
||||||
|
top_builddir = ..
|
||||||
|
|
||||||
|
ACLOCAL = @ACLOCAL@
|
||||||
|
AUTOCONF = @AUTOCONF@
|
||||||
|
AUTOMAKE = @AUTOMAKE@
|
||||||
|
AUTOHEADER = @AUTOHEADER@
|
||||||
|
|
||||||
|
INSTALL = @INSTALL@
|
||||||
|
INSTALL_DATA = @INSTALL_DATA@
|
||||||
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||||
|
transform = @program_transform_name@
|
||||||
|
|
||||||
|
NORMAL_INSTALL = :
|
||||||
|
PRE_INSTALL = :
|
||||||
|
POST_INSTALL = :
|
||||||
|
NORMAL_UNINSTALL = :
|
||||||
|
PRE_UNINSTALL = :
|
||||||
|
POST_UNINSTALL = :
|
||||||
|
host_alias = @host_alias@
|
||||||
|
host_triplet = @host@
|
||||||
|
AWK = @AWK@
|
||||||
|
CC = @CC@
|
||||||
|
DFLAGS = @DFLAGS@
|
||||||
|
HEADER_SEARCH_PATH = @HEADER_SEARCH_PATH@
|
||||||
|
LIBRARY_SEARCH_PATH = @LIBRARY_SEARCH_PATH@
|
||||||
|
LIBS = @LIBS@
|
||||||
|
LN_S = @LN_S@
|
||||||
|
MAKEINFO = @MAKEINFO@
|
||||||
|
OS = @OS@
|
||||||
|
PACKAGE = @PACKAGE@
|
||||||
|
SETGID_FLAGS = @SETGID_FLAGS@
|
||||||
|
VERSION = @VERSION@
|
||||||
|
XCFLAGS = @XCFLAGS@
|
||||||
|
XLFLAGS = @XLFLAGS@
|
||||||
|
XLIBS = @XLIBS@
|
||||||
|
X_EXTRA_LIBS = @X_EXTRA_LIBS@
|
||||||
|
X_LIBRARY_PATH = @X_LIBRARY_PATH@
|
||||||
|
|
||||||
|
bin_PROGRAMS = wmmemload
|
||||||
|
|
||||||
|
wmmemload_SOURCES = main.c mem.h mem_@OS@.c dockapp.c dockapp.h backdrop_off.xpm backdrop_on.xpm parts_mem.xpm parts_swap.xpm
|
||||||
|
|
||||||
|
|
||||||
|
EXTRA_wmmemload_SOURCES = mem_linux.c mem_freebsd.c mem_freebsd_sysctl.c mem_openbsd.c mem_solaris.c
|
||||||
|
|
||||||
|
|
||||||
|
CPPFLAGS = @CPPFLAGS@ @DFLAGS@
|
||||||
|
|
||||||
|
INCLUDES = @HEADER_SEARCH_PATH@
|
||||||
|
|
||||||
|
wmmemload_LDADD = @LIBRARY_SEARCH_PATH@ @XLIBS@
|
||||||
|
|
||||||
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@ @SETGID_FLAGS@ $(AM_INSTALL_PROGRAM_FLAGS)
|
||||||
|
|
||||||
|
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||||
|
CONFIG_HEADER = ../config.h
|
||||||
|
CONFIG_CLEAN_FILES =
|
||||||
|
PROGRAMS = $(bin_PROGRAMS)
|
||||||
|
|
||||||
|
|
||||||
|
DEFS = @DEFS@ -I. -I$(srcdir) -I..
|
||||||
|
LDFLAGS = @LDFLAGS@
|
||||||
|
X_CFLAGS = @X_CFLAGS@
|
||||||
|
X_LIBS = @X_LIBS@
|
||||||
|
X_PRE_LIBS = @X_PRE_LIBS@
|
||||||
|
wmmemload_OBJECTS = main.o mem_@OS@.o dockapp.o
|
||||||
|
wmmemload_DEPENDENCIES =
|
||||||
|
wmmemload_LDFLAGS =
|
||||||
|
CFLAGS = @CFLAGS@
|
||||||
|
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||||
|
CCLD = $(CC)
|
||||||
|
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
|
||||||
|
DIST_COMMON = Makefile.am Makefile.in
|
||||||
|
|
||||||
|
|
||||||
|
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
|
|
||||||
|
TAR = gtar
|
||||||
|
GZIP_ENV = --best
|
||||||
|
SOURCES = $(wmmemload_SOURCES) $(EXTRA_wmmemload_SOURCES)
|
||||||
|
OBJECTS = $(wmmemload_OBJECTS)
|
||||||
|
|
||||||
|
all: all-redirect
|
||||||
|
.SUFFIXES:
|
||||||
|
.SUFFIXES: .S .c .o .s
|
||||||
|
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.ac $(ACLOCAL_M4)
|
||||||
|
cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/Makefile
|
||||||
|
|
||||||
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||||
|
cd $(top_builddir) \
|
||||||
|
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||||
|
|
||||||
|
|
||||||
|
mostlyclean-binPROGRAMS:
|
||||||
|
|
||||||
|
clean-binPROGRAMS:
|
||||||
|
-test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
|
||||||
|
|
||||||
|
distclean-binPROGRAMS:
|
||||||
|
|
||||||
|
maintainer-clean-binPROGRAMS:
|
||||||
|
|
||||||
|
install-binPROGRAMS: $(bin_PROGRAMS)
|
||||||
|
@$(NORMAL_INSTALL)
|
||||||
|
$(mkinstalldirs) $(DESTDIR)$(bindir)
|
||||||
|
@list='$(bin_PROGRAMS)'; for p in $$list; do \
|
||||||
|
if test -f $$p; then \
|
||||||
|
echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
|
||||||
|
$(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
|
||||||
|
else :; fi; \
|
||||||
|
done
|
||||||
|
|
||||||
|
uninstall-binPROGRAMS:
|
||||||
|
@$(NORMAL_UNINSTALL)
|
||||||
|
list='$(bin_PROGRAMS)'; for p in $$list; do \
|
||||||
|
rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
|
||||||
|
done
|
||||||
|
|
||||||
|
.c.o:
|
||||||
|
$(COMPILE) -c $<
|
||||||
|
|
||||||
|
.s.o:
|
||||||
|
$(COMPILE) -c $<
|
||||||
|
|
||||||
|
.S.o:
|
||||||
|
$(COMPILE) -c $<
|
||||||
|
|
||||||
|
mostlyclean-compile:
|
||||||
|
-rm -f *.o core *.core
|
||||||
|
|
||||||
|
clean-compile:
|
||||||
|
|
||||||
|
distclean-compile:
|
||||||
|
-rm -f *.tab.c
|
||||||
|
|
||||||
|
maintainer-clean-compile:
|
||||||
|
|
||||||
|
wmmemload: $(wmmemload_OBJECTS) $(wmmemload_DEPENDENCIES)
|
||||||
|
@rm -f wmmemload
|
||||||
|
$(LINK) $(wmmemload_LDFLAGS) $(wmmemload_OBJECTS) $(wmmemload_LDADD) $(LIBS)
|
||||||
|
|
||||||
|
tags: TAGS
|
||||||
|
|
||||||
|
ID: $(HEADERS) $(SOURCES) $(LISP)
|
||||||
|
list='$(SOURCES) $(HEADERS)'; \
|
||||||
|
unique=`for i in $$list; do echo $$i; done | \
|
||||||
|
awk ' { files[$$0] = 1; } \
|
||||||
|
END { for (i in files) print i; }'`; \
|
||||||
|
here=`pwd` && cd $(srcdir) \
|
||||||
|
&& mkid -f$$here/ID $$unique $(LISP)
|
||||||
|
|
||||||
|
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
|
||||||
|
tags=; \
|
||||||
|
here=`pwd`; \
|
||||||
|
list='$(SOURCES) $(HEADERS)'; \
|
||||||
|
unique=`for i in $$list; do echo $$i; done | \
|
||||||
|
awk ' { files[$$0] = 1; } \
|
||||||
|
END { for (i in files) print i; }'`; \
|
||||||
|
test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
|
||||||
|
|| (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
|
||||||
|
|
||||||
|
mostlyclean-tags:
|
||||||
|
|
||||||
|
clean-tags:
|
||||||
|
|
||||||
|
distclean-tags:
|
||||||
|
-rm -f TAGS ID
|
||||||
|
|
||||||
|
maintainer-clean-tags:
|
||||||
|
|
||||||
|
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
|
||||||
|
|
||||||
|
subdir = src
|
||||||
|
|
||||||
|
distdir: $(DISTFILES)
|
||||||
|
@for file in $(DISTFILES); do \
|
||||||
|
d=$(srcdir); \
|
||||||
|
if test -d $$d/$$file; then \
|
||||||
|
cp -pr $$d/$$file $(distdir)/$$file; \
|
||||||
|
else \
|
||||||
|
test -f $(distdir)/$$file \
|
||||||
|
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|
||||||
|
|| cp -p $$d/$$file $(distdir)/$$file || :; \
|
||||||
|
fi; \
|
||||||
|
done
|
||||||
|
info-am:
|
||||||
|
info: info-am
|
||||||
|
dvi-am:
|
||||||
|
dvi: dvi-am
|
||||||
|
check-am: all-am
|
||||||
|
check: check-am
|
||||||
|
installcheck-am:
|
||||||
|
installcheck: installcheck-am
|
||||||
|
install-exec-am: install-binPROGRAMS
|
||||||
|
install-exec: install-exec-am
|
||||||
|
|
||||||
|
install-data-am:
|
||||||
|
install-data: install-data-am
|
||||||
|
|
||||||
|
install-am: all-am
|
||||||
|
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||||
|
install: install-am
|
||||||
|
uninstall-am: uninstall-binPROGRAMS
|
||||||
|
uninstall: uninstall-am
|
||||||
|
all-am: Makefile $(PROGRAMS)
|
||||||
|
all-redirect: all-am
|
||||||
|
install-strip:
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
|
||||||
|
installdirs:
|
||||||
|
$(mkinstalldirs) $(DESTDIR)$(bindir)
|
||||||
|
|
||||||
|
|
||||||
|
mostlyclean-generic:
|
||||||
|
|
||||||
|
clean-generic:
|
||||||
|
|
||||||
|
distclean-generic:
|
||||||
|
-rm -f Makefile $(CONFIG_CLEAN_FILES)
|
||||||
|
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
|
||||||
|
|
||||||
|
maintainer-clean-generic:
|
||||||
|
mostlyclean-am: mostlyclean-binPROGRAMS mostlyclean-compile \
|
||||||
|
mostlyclean-tags mostlyclean-generic
|
||||||
|
|
||||||
|
mostlyclean: mostlyclean-am
|
||||||
|
|
||||||
|
clean-am: clean-binPROGRAMS clean-compile clean-tags clean-generic \
|
||||||
|
mostlyclean-am
|
||||||
|
|
||||||
|
clean: clean-am
|
||||||
|
|
||||||
|
distclean-am: distclean-binPROGRAMS distclean-compile distclean-tags \
|
||||||
|
distclean-generic clean-am
|
||||||
|
|
||||||
|
distclean: distclean-am
|
||||||
|
|
||||||
|
maintainer-clean-am: maintainer-clean-binPROGRAMS \
|
||||||
|
maintainer-clean-compile maintainer-clean-tags \
|
||||||
|
maintainer-clean-generic distclean-am
|
||||||
|
@echo "This command is intended for maintainers to use;"
|
||||||
|
@echo "it deletes files that may require special tools to rebuild."
|
||||||
|
|
||||||
|
maintainer-clean: maintainer-clean-am
|
||||||
|
|
||||||
|
.PHONY: mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \
|
||||||
|
maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \
|
||||||
|
mostlyclean-compile distclean-compile clean-compile \
|
||||||
|
maintainer-clean-compile tags mostlyclean-tags distclean-tags \
|
||||||
|
clean-tags maintainer-clean-tags distdir info-am info dvi-am dvi check \
|
||||||
|
check-am installcheck-am installcheck install-exec-am install-exec \
|
||||||
|
install-data-am install-data install-am install uninstall-am uninstall \
|
||||||
|
all-redirect all-am all installdirs mostlyclean-generic \
|
||||||
|
distclean-generic clean-generic maintainer-clean-generic clean \
|
||||||
|
mostlyclean distclean maintainer-clean
|
||||||
|
|
||||||
|
|
||||||
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||||
|
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||||
|
.NOEXPORT:
|
71
wmmemload/src/backlight_off.xpm
Normal file
71
wmmemload/src/backlight_off.xpm
Normal file
|
@ -0,0 +1,71 @@
|
||||||
|
/* XPM */
|
||||||
|
static char * backlight_off_xpm[] = {
|
||||||
|
"58 58 10 1",
|
||||||
|
" c None",
|
||||||
|
". c #020202",
|
||||||
|
"+ c #0A0A0A",
|
||||||
|
"@ c #484C46",
|
||||||
|
"# c #DEDEDE",
|
||||||
|
"$ c #7C827C",
|
||||||
|
"% c #8E968A",
|
||||||
|
"& c #444740",
|
||||||
|
"* c #767C6F",
|
||||||
|
"= c #3E463E",
|
||||||
|
" ...................................................... ",
|
||||||
|
" .++++++++++++++++++++++++++++++++++++++++++++++++++++++. ",
|
||||||
|
".++@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.#",
|
||||||
|
".+@@$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$.#",
|
||||||
|
".+@$$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%.#",
|
||||||
|
".+@$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&&%&&%%.#",
|
||||||
|
".+@$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&&&&&%%.#",
|
||||||
|
".+@$%%%******%%%%%%******%%%%%%******%%%%%%%%%%%%&%&%&%%.#",
|
||||||
|
".+@$%*%%****%%*%%*%%****%%*%%*%%****%%*%%%%%%%%%%&%%%&%%.#",
|
||||||
|
".+@$%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%%%%%%%%%%%%%%%%.#",
|
||||||
|
".+@$%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%%%%%%%%%&&&&&%%.#",
|
||||||
|
".+@$%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%%%%%%%%%&%%%%%%.#",
|
||||||
|
".+@$%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%%%%%%%%%&&&%%%%.#",
|
||||||
|
".+@$%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%%%%%%%%%&%%%%%%.#",
|
||||||
|
".+@$%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%%%%%%%%%&&&&&%%.#",
|
||||||
|
".+@$%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%%%%%%%%%%%%%%%%.#",
|
||||||
|
".+@$%*%%****%%*%%*%%****%%*%%*%%****%%*%%%%%%%%%%&&%&&%%.#",
|
||||||
|
".+@$%%%******%%%%%%******%%%%%%******%%%%%%%%%%%%&&&&&%%.#",
|
||||||
|
".+@$%*%%%%%%%%*%%*%%%%%%%%*%%*%%%%%%%%*%%%%%%%%%%&%&%&%%.#",
|
||||||
|
".+@$%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%%%%%%%%%&%%%&%%.#",
|
||||||
|
".+@$%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%%%%%%%%%%%%%%%%.#",
|
||||||
|
".+@$%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%...%%%.%%%%%%%%.#",
|
||||||
|
".+@$%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%.%.%%.%%%%%%%%%.#",
|
||||||
|
".+@$%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%...%.%%%%%%%%%%.#",
|
||||||
|
".+@$%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%%%%.%...%%%%%%%.#",
|
||||||
|
".+@$%*%%****%%*%%*%%****%%*%%*%%****%%*%%%%.%%.%.%%%%%%%.#",
|
||||||
|
".+@$%%%******%%%%%%******%%%%%%******%%%%%.%%%...%%%%%%%.#",
|
||||||
|
".+@$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%.#",
|
||||||
|
".+@$%=================================================%%.#",
|
||||||
|
".+@$%=================================================*%.#",
|
||||||
|
".+@$%%*************************************************%.#",
|
||||||
|
".+@$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%.#",
|
||||||
|
".+@$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&&&&&%%.#",
|
||||||
|
".+@$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&%%%%%%.#",
|
||||||
|
".+@$%%%******%%%%%%******%%%%%%******%%%%%%%%%%%%&&&&&%%.#",
|
||||||
|
".+@$%*%%****%%*%%*%%****%%*%%*%%****%%*%%%%%%%%%%%%%%&%%.#",
|
||||||
|
".+@$%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%%%%%%%%%&&&&&%%.#",
|
||||||
|
".+@$%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%%%%%%%%%%%%%%%%.#",
|
||||||
|
".+@$%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%%%%%%%%%&%%%&%%.#",
|
||||||
|
".+@$%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%%%%%%%%%&%&%&%%.#",
|
||||||
|
".+@$%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%%%%%%%%%&&&&&%%.#",
|
||||||
|
".+@$%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%%%%%%%%%&&%&&%%.#",
|
||||||
|
".+@$%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%%%%%%%%%%%%%%%%.#",
|
||||||
|
".+@$%*%%****%%*%%*%%****%%*%%*%%****%%*%%%%%%%%%%&&&&&%%.#",
|
||||||
|
".+@$%%%******%%%%%%******%%%%%%******%%%%%%%%%%%%&%%%&%%.#",
|
||||||
|
".+@$%*%%%%%%%%*%%*%%%%%%%%*%%*%%%%%%%%*%%%%%%%%%%&&&&&%%.#",
|
||||||
|
".+@$%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%%%%%%%%%&%%%%%%.#",
|
||||||
|
".+@$%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%%%%%%%%%%%%%%%%.#",
|
||||||
|
".+@$%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%...%%%.%%%%%%%%.#",
|
||||||
|
".+@$%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%.%.%%.%%%%%%%%%.#",
|
||||||
|
".+@$%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%...%.%%%%%%%%%%.#",
|
||||||
|
".+@$%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%%%%.%...%%%%%%%.#",
|
||||||
|
".+@$%*%%****%%*%%*%%****%%*%%*%%****%%*%%%%.%%.%.%%%%%%%.#",
|
||||||
|
".+@$%%%******%%%%%%******%%%%%%******%%%%%.%%%...%%%%%%%.#",
|
||||||
|
".+@$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%.#",
|
||||||
|
".+@$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%..#",
|
||||||
|
" .......................................................# ",
|
||||||
|
" ###################################################### "};
|
71
wmmemload/src/backlight_on.xpm
Normal file
71
wmmemload/src/backlight_on.xpm
Normal file
|
@ -0,0 +1,71 @@
|
||||||
|
/* XPM */
|
||||||
|
static char * backlight_on_xpm[] = {
|
||||||
|
"58 58 10 1",
|
||||||
|
" c None",
|
||||||
|
". c #020202",
|
||||||
|
"+ c #0A0A0A",
|
||||||
|
"@ c #484C46 s Back1",
|
||||||
|
"# c #DEDEDE",
|
||||||
|
"$ c #779866",
|
||||||
|
"% c #6EC63B s Back0",
|
||||||
|
"& c #2E4C17 s Back1",
|
||||||
|
"* c #6CB237 s Back1",
|
||||||
|
"= c #3E463E",
|
||||||
|
" ...................................................... ",
|
||||||
|
" .%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%. ",
|
||||||
|
".%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#",
|
||||||
|
".%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#",
|
||||||
|
".%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#",
|
||||||
|
".%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&&%&&%%%#",
|
||||||
|
".%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&&&&&%%%#",
|
||||||
|
".%%%%%%******%%%%%%******%%%%%%******%%%%%%%%%%%%&%&%&%%%#",
|
||||||
|
".%%%%*%%****%%*%%*%%****%%*%%*%%****%%*%%%%%%%%%%&%%%&%%%#",
|
||||||
|
".%%%%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%%%%%%%%%%%%%%%%%#",
|
||||||
|
".%%%%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%%%%%%%%%&&&&&%%%#",
|
||||||
|
".%%%%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%%%%%%%%%&%%%%%%%#",
|
||||||
|
".%%%%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%%%%%%%%%&&&%%%%%#",
|
||||||
|
".%%%%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%%%%%%%%%&%%%%%%%#",
|
||||||
|
".%%%%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%%%%%%%%%&&&&&%%%#",
|
||||||
|
".%%%%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%%%%%%%%%%%%%%%%%#",
|
||||||
|
".%%%%*%%****%%*%%*%%****%%*%%*%%****%%*%%%%%%%%%%&&%&&%%%#",
|
||||||
|
".%%%%%%******%%%%%%******%%%%%%******%%%%%%%%%%%%&&&&&%%%#",
|
||||||
|
".%%%%*%%%%%%%%*%%*%%%%%%%%*%%*%%%%%%%%*%%%%%%%%%%&%&%&%%%#",
|
||||||
|
".%%%%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%%%%%%%%%&%%%&%%%#",
|
||||||
|
".%%%%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%%%%%%%%%%%%%%%%%#",
|
||||||
|
".%%%%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%...%%%.%%%%%%%%%#",
|
||||||
|
".%%%%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%.%.%%.%%%%%%%%%%#",
|
||||||
|
".%%%%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%...%.%%%%%%%%%%%#",
|
||||||
|
".%%%%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%%%%.%...%%%%%%%%#",
|
||||||
|
".%%%%*%%****%%*%%*%%****%%*%%*%%****%%*%%%%.%%.%.%%%%%%%%#",
|
||||||
|
".%%%%%%******%%%%%%******%%%%%%******%%%%%.%%%...%%%%%%%%#",
|
||||||
|
".%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#",
|
||||||
|
".%%%%=================================================%%%#",
|
||||||
|
".%%%%=================================================*%%#",
|
||||||
|
".%%%%%*************************************************%%#",
|
||||||
|
".%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#",
|
||||||
|
".%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&&&&&%%%#",
|
||||||
|
".%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&%%%%%%%#",
|
||||||
|
".%%%%%%******%%%%%%******%%%%%%******%%%%%%%%%%%%&&&&&%%%#",
|
||||||
|
".%%%%*%%****%%*%%*%%****%%*%%*%%****%%*%%%%%%%%%%%%%%&%%%#",
|
||||||
|
".%%%%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%%%%%%%%%&&&&&%%%#",
|
||||||
|
".%%%%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%%%%%%%%%%%%%%%%%#",
|
||||||
|
".%%%%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%%%%%%%%%&%%%&%%%#",
|
||||||
|
".%%%%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%%%%%%%%%&%&%&%%%#",
|
||||||
|
".%%%%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%%%%%%%%%&&&&&%%%#",
|
||||||
|
".%%%%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%%%%%%%%%&&%&&%%%#",
|
||||||
|
".%%%%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%%%%%%%%%%%%%%%%%#",
|
||||||
|
".%%%%*%%****%%*%%*%%****%%*%%*%%****%%*%%%%%%%%%%&&&&&%%%#",
|
||||||
|
".%%%%%%******%%%%%%******%%%%%%******%%%%%%%%%%%%&%%%&%%%#",
|
||||||
|
".%%%%*%%%%%%%%*%%*%%%%%%%%*%%*%%%%%%%%*%%%%%%%%%%&&&&&%%%#",
|
||||||
|
".%%%%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%%%%%%%%%&%%%%%%%#",
|
||||||
|
".%%%%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%%%%%%%%%%%%%%%%%#",
|
||||||
|
".%%%%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%...%%%.%%%%%%%%%#",
|
||||||
|
".%%%%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%.%.%%.%%%%%%%%%%#",
|
||||||
|
".%%%%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%...%.%%%%%%%%%%%#",
|
||||||
|
".%%%%**%%%%%%**%%**%%%%%%**%%**%%%%%%**%%%%%.%...%%%%%%%%#",
|
||||||
|
".%%%%*%%****%%*%%*%%****%%*%%*%%****%%*%%%%.%%.%.%%%%%%%%#",
|
||||||
|
".%%%%%%******%%%%%%******%%%%%%******%%%%%.%%%...%%%%%%%%#",
|
||||||
|
".%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#",
|
||||||
|
".%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#",
|
||||||
|
" .%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# ",
|
||||||
|
" ###################################################### "};
|
391
wmmemload/src/dockapp.c
Normal file
391
wmmemload/src/dockapp.c
Normal file
|
@ -0,0 +1,391 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 1999 Alfredo K. Kojima
|
||||||
|
* Copyright (c) 2001, 2002 Seiichi SATO <ssato@sh.rim.or.jp>
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in
|
||||||
|
* all copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
||||||
|
* AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||||
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
* This code is based on libdockapp-0.4.0
|
||||||
|
* modified by Seiichi SATO <ssato@sh.rim.or.jp>
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "dockapp.h"
|
||||||
|
|
||||||
|
#define WINDOWED_SIZE_W 64
|
||||||
|
#define WINDOWED_SIZE_H 64
|
||||||
|
|
||||||
|
/* global */
|
||||||
|
Display *display = NULL;
|
||||||
|
Bool dockapp_iswindowed = False;
|
||||||
|
Bool dockapp_isbrokenwm = False;
|
||||||
|
|
||||||
|
/* private */
|
||||||
|
static Window window = None;
|
||||||
|
static Window icon_window = None;
|
||||||
|
static GC gc = NULL;
|
||||||
|
static int depth = 0;
|
||||||
|
static Atom delete_win;
|
||||||
|
static int width, height;
|
||||||
|
static int offset_w, offset_h;
|
||||||
|
|
||||||
|
void
|
||||||
|
dockapp_open_window(char *display_specified, char *appname,
|
||||||
|
unsigned w, unsigned h, int argc, char **argv)
|
||||||
|
{
|
||||||
|
XClassHint *classhint;
|
||||||
|
XWMHints *wmhints;
|
||||||
|
Status stat;
|
||||||
|
XTextProperty title;
|
||||||
|
XSizeHints sizehints;
|
||||||
|
Window root;
|
||||||
|
int ww, wh;
|
||||||
|
|
||||||
|
/* Open Connection to X Server */
|
||||||
|
display = XOpenDisplay(display_specified);
|
||||||
|
if (!display) {
|
||||||
|
fprintf(stderr, "%s: could not open display %s!\n", argv[0],
|
||||||
|
XDisplayName(display_specified));
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
root = DefaultRootWindow(display);
|
||||||
|
|
||||||
|
width = w;
|
||||||
|
height = h;
|
||||||
|
|
||||||
|
if (dockapp_iswindowed) {
|
||||||
|
offset_w = (WINDOWED_SIZE_W - w) / 2;
|
||||||
|
offset_h = (WINDOWED_SIZE_H - h) / 2;
|
||||||
|
ww = WINDOWED_SIZE_W;
|
||||||
|
wh = WINDOWED_SIZE_H;
|
||||||
|
} else {
|
||||||
|
offset_w = offset_h = 0;
|
||||||
|
ww = w;
|
||||||
|
wh = h;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Create Windows */
|
||||||
|
icon_window = XCreateSimpleWindow(display, root, 0, 0, ww, wh, 0, 0, 0);
|
||||||
|
if (dockapp_isbrokenwm) {
|
||||||
|
window = XCreateSimpleWindow(display, root, 0, 0, ww, wh, 0, 0, 0);
|
||||||
|
} else {
|
||||||
|
window = XCreateSimpleWindow(display, root, 0, 0, 1, 1, 0, 0, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Set ClassHint */
|
||||||
|
classhint = XAllocClassHint();
|
||||||
|
if (classhint == NULL) {
|
||||||
|
fprintf(stderr, "%s: can't allocate memory for wm hints!\n", argv[0]);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
classhint->res_class = "DockApp";
|
||||||
|
classhint->res_name = appname;
|
||||||
|
XSetClassHint(display, window, classhint);
|
||||||
|
XFree(classhint);
|
||||||
|
|
||||||
|
/* Set WMHints */
|
||||||
|
wmhints = XAllocWMHints();
|
||||||
|
if (wmhints == NULL) {
|
||||||
|
fprintf(stderr, "%s: can't allocate memory for wm hints!\n", argv[0]);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
wmhints->flags = IconWindowHint | WindowGroupHint;
|
||||||
|
if (!dockapp_iswindowed) {
|
||||||
|
wmhints->flags |= StateHint;
|
||||||
|
wmhints->initial_state = WithdrawnState;
|
||||||
|
}
|
||||||
|
wmhints->window_group = window;
|
||||||
|
wmhints->icon_window = icon_window;
|
||||||
|
XSetWMHints(display, window, wmhints);
|
||||||
|
XFree(wmhints);
|
||||||
|
|
||||||
|
/* Set WM Protocols */
|
||||||
|
delete_win = XInternAtom(display, "WM_DELETE_WINDOW", False);
|
||||||
|
XSetWMProtocols (display, icon_window, &delete_win, 1);
|
||||||
|
|
||||||
|
/* Set Size Hints */
|
||||||
|
sizehints.flags = USSize;
|
||||||
|
if (!dockapp_iswindowed) {
|
||||||
|
sizehints.flags |= USPosition;
|
||||||
|
sizehints.x = sizehints.y = 0;
|
||||||
|
} else {
|
||||||
|
sizehints.flags |= PMinSize | PMaxSize;
|
||||||
|
sizehints.min_width = sizehints.max_width = WINDOWED_SIZE_W;
|
||||||
|
sizehints.min_height = sizehints.max_height = WINDOWED_SIZE_H;
|
||||||
|
}
|
||||||
|
sizehints.width = ww;
|
||||||
|
sizehints.height = wh;
|
||||||
|
XSetWMNormalHints(display, icon_window, &sizehints);
|
||||||
|
|
||||||
|
/* Set WindowTitle for AfterStep Wharf */
|
||||||
|
stat = XStringListToTextProperty(&appname, 1, &title);
|
||||||
|
XSetWMName(display, window, &title);
|
||||||
|
XSetWMName(display, icon_window, &title);
|
||||||
|
|
||||||
|
/* Set Command to start the app so it can be docked properly */
|
||||||
|
XSetCommand(display, window, argv, argc);
|
||||||
|
|
||||||
|
depth = DefaultDepth(display, DefaultScreen(display));
|
||||||
|
gc = DefaultGC(display, DefaultScreen(display));
|
||||||
|
|
||||||
|
XFlush(display);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
dockapp_set_eventmask(long mask)
|
||||||
|
{
|
||||||
|
XSelectInput(display, icon_window, mask);
|
||||||
|
XSelectInput(display, window, mask);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static Pixmap
|
||||||
|
create_bg_pixmap(void)
|
||||||
|
{
|
||||||
|
Pixmap bg;
|
||||||
|
|
||||||
|
bg = XCreatePixmap(display, icon_window, WINDOWED_SIZE_W, WINDOWED_SIZE_H,
|
||||||
|
depth);
|
||||||
|
XSetForeground(display, gc, dockapp_getcolor("rgb:ae/aa/ae"));
|
||||||
|
XFillRectangle(display, bg, gc, 0, 0, WINDOWED_SIZE_W, WINDOWED_SIZE_H);
|
||||||
|
XSetForeground(display, gc, dockapp_getcolor("rgb:ff/ff/ff"));
|
||||||
|
XDrawLine(display, bg, gc, 0, 0, 0, 63);
|
||||||
|
XDrawLine(display, bg, gc, 1, 0, 1, 62);
|
||||||
|
XDrawLine(display, bg, gc, 2, 0, 63, 0);
|
||||||
|
XDrawLine(display, bg, gc, 2, 1, 62, 1);
|
||||||
|
XSetForeground(display, gc, dockapp_getcolor("rgb:52/55/52"));
|
||||||
|
XDrawLine(display, bg, gc, 1, 63, 63, 63);
|
||||||
|
XDrawLine(display, bg, gc, 2, 62, 63, 62);
|
||||||
|
XDrawLine(display, bg, gc, 63, 1, 63, 61);
|
||||||
|
XDrawLine(display, bg, gc, 62, 2, 62, 61);
|
||||||
|
|
||||||
|
return bg;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
dockapp_set_background(Pixmap pixmap)
|
||||||
|
{
|
||||||
|
if (dockapp_iswindowed) {
|
||||||
|
Pixmap bg;
|
||||||
|
bg = create_bg_pixmap();
|
||||||
|
XCopyArea(display, pixmap, bg, gc, 0, 0, width, height,
|
||||||
|
offset_w, offset_w);
|
||||||
|
XSetWindowBackgroundPixmap(display, icon_window, bg);
|
||||||
|
XSetWindowBackgroundPixmap(display, window, bg);
|
||||||
|
XFreePixmap(display, bg);
|
||||||
|
} else {
|
||||||
|
XSetWindowBackgroundPixmap(display, icon_window, pixmap);
|
||||||
|
XSetWindowBackgroundPixmap(display, window, pixmap);
|
||||||
|
}
|
||||||
|
XClearWindow(display, icon_window);
|
||||||
|
XFlush(display);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
dockapp_show(void)
|
||||||
|
{
|
||||||
|
if (!dockapp_iswindowed)
|
||||||
|
XMapRaised(display, window);
|
||||||
|
else
|
||||||
|
XMapRaised(display, icon_window);
|
||||||
|
|
||||||
|
XFlush(display);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Bool
|
||||||
|
dockapp_xpm2pixmap(char **data, Pixmap *pixmap, Pixmap *mask,
|
||||||
|
XpmColorSymbol * colorSymbol, unsigned int nsymbols)
|
||||||
|
{
|
||||||
|
XpmAttributes xpmAttr;
|
||||||
|
xpmAttr.valuemask = XpmCloseness;
|
||||||
|
xpmAttr.closeness = 40000;
|
||||||
|
|
||||||
|
if (nsymbols) {
|
||||||
|
xpmAttr.colorsymbols = colorSymbol;
|
||||||
|
xpmAttr.numsymbols = nsymbols;
|
||||||
|
xpmAttr.valuemask |= XpmColorSymbols;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (XpmCreatePixmapFromData(display, icon_window, data, pixmap, mask, &xpmAttr) != 0)
|
||||||
|
return False;
|
||||||
|
|
||||||
|
return True;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Pixmap
|
||||||
|
dockapp_XCreatePixmap(int w, int h)
|
||||||
|
{
|
||||||
|
return (XCreatePixmap(display, icon_window, w, h, depth));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
dockapp_setshape(Pixmap mask, int x_ofs, int y_ofs)
|
||||||
|
{
|
||||||
|
XShapeCombineMask(display, icon_window, ShapeBounding, -x_ofs, -y_ofs,
|
||||||
|
mask, ShapeSet);
|
||||||
|
XShapeCombineMask(display, window, ShapeBounding, -x_ofs, -y_ofs,
|
||||||
|
mask, ShapeSet);
|
||||||
|
XFlush(display);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
dockapp_copyarea(Pixmap src, Pixmap dist, int x_src, int y_src, int w, int h,
|
||||||
|
int x_dist, int y_dist)
|
||||||
|
{
|
||||||
|
XCopyArea(display, src, dist, gc, x_src, y_src, w, h, x_dist, y_dist);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
dockapp_copy2window (Pixmap src)
|
||||||
|
{
|
||||||
|
if (dockapp_isbrokenwm) {
|
||||||
|
XCopyArea(display, src, window, gc, 0, 0, width, height, offset_w,
|
||||||
|
offset_h);
|
||||||
|
} else {
|
||||||
|
XCopyArea(display, src, icon_window, gc, 0, 0, width, height, offset_w,
|
||||||
|
offset_h);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Bool
|
||||||
|
dockapp_nextevent_or_timeout(XEvent *event, unsigned long miliseconds)
|
||||||
|
{
|
||||||
|
struct timeval timeout;
|
||||||
|
fd_set rset;
|
||||||
|
|
||||||
|
XSync(display, False);
|
||||||
|
if (XPending(display)) {
|
||||||
|
XNextEvent(display, event);
|
||||||
|
return True;
|
||||||
|
}
|
||||||
|
|
||||||
|
timeout.tv_sec = miliseconds / 1000;
|
||||||
|
timeout.tv_usec = (miliseconds % 1000) * 1000;
|
||||||
|
|
||||||
|
FD_ZERO(&rset);
|
||||||
|
FD_SET(ConnectionNumber(display), &rset);
|
||||||
|
if (select(ConnectionNumber(display)+1, &rset, NULL, NULL, &timeout) > 0) {
|
||||||
|
XNextEvent(display, event);
|
||||||
|
if (event->type == ClientMessage) {
|
||||||
|
if (event->xclient.data.l[0] == delete_win) {
|
||||||
|
XDestroyWindow(display,event->xclient.window);
|
||||||
|
XCloseDisplay(display);
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (dockapp_iswindowed) {
|
||||||
|
event->xbutton.x -= offset_w;
|
||||||
|
event->xbutton.y -= offset_h;
|
||||||
|
}
|
||||||
|
return True;
|
||||||
|
}
|
||||||
|
|
||||||
|
return False;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
unsigned long
|
||||||
|
dockapp_getcolor(char *color_name)
|
||||||
|
{
|
||||||
|
XColor color;
|
||||||
|
|
||||||
|
if (!XParseColor(display, DefaultColormap(display, DefaultScreen(display)),
|
||||||
|
color_name, &color))
|
||||||
|
fprintf(stderr, "can't parse color %s\n", color_name), exit(1);
|
||||||
|
|
||||||
|
if (!XAllocColor(display, DefaultColormap(display, DefaultScreen(display)),
|
||||||
|
&color)) {
|
||||||
|
fprintf(stderr, "can't allocate color %s. Using black\n", color_name);
|
||||||
|
return BlackPixel(display, DefaultScreen(display));
|
||||||
|
}
|
||||||
|
|
||||||
|
return color.pixel;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
unsigned long
|
||||||
|
dockapp_blendedcolor(char *color_name, int r, int g, int b, float fac)
|
||||||
|
{
|
||||||
|
XColor color;
|
||||||
|
|
||||||
|
if ((r < -255 || r > 255)||(g < -255 || g > 255)||(b < -255 || b > 255)){
|
||||||
|
fprintf(stderr, "r:%d,g:%d,b:%d (r,g,b must be 0 to 255)", r, g, b);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
r *= 255;
|
||||||
|
g *= 255;
|
||||||
|
b *= 255;
|
||||||
|
|
||||||
|
if (!XParseColor(display, DefaultColormap(display, DefaultScreen(display)),
|
||||||
|
color_name, &color))
|
||||||
|
fprintf(stderr, "can't parse color %s\n", color_name), exit(1);
|
||||||
|
|
||||||
|
if (!XAllocColor(display, DefaultColormap(display, DefaultScreen(display)),
|
||||||
|
&color)) {
|
||||||
|
fprintf(stderr, "can't allocate color %s. Using black\n", color_name);
|
||||||
|
return BlackPixel(display, DefaultScreen(display));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (DefaultDepth(display, DefaultScreen(display)) < 16)
|
||||||
|
return color.pixel;
|
||||||
|
|
||||||
|
/* red */
|
||||||
|
if (color.red + r > 0xffff) {
|
||||||
|
color.red = 0xffff;
|
||||||
|
} else if (color.red + r < 0) {
|
||||||
|
color.red = 0;
|
||||||
|
} else {
|
||||||
|
color.red = (unsigned short)(fac * color.red + r);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* green */
|
||||||
|
if (color.green + g > 0xffff) {
|
||||||
|
color.green = 0xffff;
|
||||||
|
} else if (color.green + g < 0) {
|
||||||
|
color.green = 0;
|
||||||
|
} else {
|
||||||
|
color.green = (unsigned short)(fac * color.green + g);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* blue */
|
||||||
|
if (color.blue + b > 0xffff) {
|
||||||
|
color.blue = 0xffff;
|
||||||
|
} else if (color.blue + b < 0) {
|
||||||
|
color.blue = 0;
|
||||||
|
} else {
|
||||||
|
color.blue = (unsigned short)(fac * color.blue + b);
|
||||||
|
}
|
||||||
|
|
||||||
|
color.flags = DoRed | DoGreen | DoBlue;
|
||||||
|
|
||||||
|
if (!XAllocColor(display, DefaultColormap(display, DefaultScreen(display)),
|
||||||
|
&color)) {
|
||||||
|
fprintf(stderr, "can't allocate color %s. Using black\n", color_name);
|
||||||
|
return BlackPixel(display, DefaultScreen(display));
|
||||||
|
}
|
||||||
|
|
||||||
|
return color.pixel;
|
||||||
|
}
|
96
wmmemload/src/dockapp.h
Normal file
96
wmmemload/src/dockapp.h
Normal file
|
@ -0,0 +1,96 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 1999 Alfredo K. Kojima
|
||||||
|
* Copyright (c) 2001, 2002 Seiichi SATO <ssato@sh.rim.or.jp>
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in
|
||||||
|
* all copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
||||||
|
* AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||||
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
* This code is based on libdockapp-0.4.0
|
||||||
|
* modified by Seiichi SATO <ssato@sh.rim.or.jp>
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include "config.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <X11/Xlib.h>
|
||||||
|
#include <X11/xpm.h>
|
||||||
|
#include <X11/extensions/shape.h>
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#if STDC_HEADERS
|
||||||
|
# include <stdlib.h>
|
||||||
|
# include <stddef.h>
|
||||||
|
#else
|
||||||
|
# if HAVE_STDLIB_H
|
||||||
|
# include <stdlib.h>
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if HAVE_STRING_H
|
||||||
|
# if !STDC_HEADERS && HAVE_MEMORY_H
|
||||||
|
# include <memory.h>
|
||||||
|
# endif
|
||||||
|
# include <string.h>
|
||||||
|
#endif
|
||||||
|
#if HAVE_STRINGS_H
|
||||||
|
# include <strings.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if HAVE_SELECT
|
||||||
|
# include <sys/select.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if TIME_WITH_SYS_TIME
|
||||||
|
# include <sys/time.h>
|
||||||
|
# include <time.h>
|
||||||
|
#else
|
||||||
|
# if HAVE_SYS_TIME_H
|
||||||
|
# include <sys/time.h>
|
||||||
|
# else
|
||||||
|
# include <time.h>
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if HAVE_UNISTD_H
|
||||||
|
# include <unistd.h>
|
||||||
|
#else
|
||||||
|
/* We are in trouble. */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
extern Display *display;
|
||||||
|
extern Bool dockapp_iswindowed;
|
||||||
|
extern Bool dockapp_isbrokenwm;
|
||||||
|
|
||||||
|
|
||||||
|
void dockapp_open_window(char *display_specified, char *appname,
|
||||||
|
unsigned w, unsigned h, int argc, char **argv);
|
||||||
|
void dockapp_set_eventmask(long mask);
|
||||||
|
void dockapp_set_background(Pixmap pixmap);
|
||||||
|
void dockapp_show(void);
|
||||||
|
Bool dockapp_xpm2pixmap(char **data, Pixmap * pixmap, Pixmap * mask,
|
||||||
|
XpmColorSymbol * colorSymbol,
|
||||||
|
unsigned int nsymbols);
|
||||||
|
Pixmap dockapp_XCreatePixmap(int w, int h);
|
||||||
|
void dockapp_setshape(Pixmap mask, int x_ofs, int y_ofs);
|
||||||
|
void dockapp_copyarea(Pixmap src, Pixmap dist, int x_src, int y_src,
|
||||||
|
int w, int h, int x_dist, int y_dist);
|
||||||
|
void dockapp_copy2window(Pixmap src);
|
||||||
|
Bool dockapp_nextevent_or_timeout(XEvent * event, unsigned long miliseconds);
|
||||||
|
unsigned long dockapp_getcolor(char *color);
|
||||||
|
unsigned long dockapp_blendedcolor(char *color, int r, int g, int b, float fac);
|
393
wmmemload/src/main.c
Normal file
393
wmmemload/src/main.c
Normal file
|
@ -0,0 +1,393 @@
|
||||||
|
/*
|
||||||
|
* WMMemLoad - A dockapp to monitor memory usage
|
||||||
|
* Copyright (C) 2002 Mark Staggs <me@markstaggs.net>
|
||||||
|
*
|
||||||
|
* Based on work by Seiichi SATO <ssato@sh.rim.or.jp>
|
||||||
|
* Copyright (C) 2001,2002 Seiichi SATO <ssato@sh.rim.or.jp>
|
||||||
|
|
||||||
|
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include "config.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "dockapp.h"
|
||||||
|
#include "mem.h"
|
||||||
|
#include "backlight_on.xpm"
|
||||||
|
#include "backlight_off.xpm"
|
||||||
|
#include "parts.xpm"
|
||||||
|
|
||||||
|
#define SIZE 58
|
||||||
|
#define WINDOWED_BG " \tc #AEAAAE"
|
||||||
|
#define MAX_HISTORY 16
|
||||||
|
#define CPUNUM_NONE -1
|
||||||
|
|
||||||
|
typedef enum { LIGHTON, LIGHTOFF } light;
|
||||||
|
|
||||||
|
Pixmap pixmap;
|
||||||
|
Pixmap backdrop_on;
|
||||||
|
Pixmap backdrop_off;
|
||||||
|
Pixmap parts;
|
||||||
|
Pixmap mask;
|
||||||
|
static char *display_name = "";
|
||||||
|
static char *light_color = NULL; /* back-light color */
|
||||||
|
static unsigned update_interval = 1;
|
||||||
|
static light backlight = LIGHTOFF;
|
||||||
|
|
||||||
|
static struct mem_options mem_opts;
|
||||||
|
static unsigned mem_usage = 0;
|
||||||
|
static unsigned swap_usage = 0;
|
||||||
|
static unsigned alarm_mem = 101;
|
||||||
|
static unsigned alarm_swap = 101;
|
||||||
|
|
||||||
|
/* prototypes */
|
||||||
|
static void update(void);
|
||||||
|
static void switch_light(void);
|
||||||
|
static void draw_memdigit(int per);
|
||||||
|
static void draw_swapdigit(int per);
|
||||||
|
static void parse_arguments(int argc, char **argv);
|
||||||
|
static void print_help(char *prog);
|
||||||
|
|
||||||
|
int main(int argc, char **argv)
|
||||||
|
{
|
||||||
|
XEvent event;
|
||||||
|
XpmColorSymbol colors[2] = { {"Back0", NULL, 0}, {"Back1", NULL, 0} };
|
||||||
|
int ncolor = 0;
|
||||||
|
|
||||||
|
/* Parse CommandLine */
|
||||||
|
mem_opts.ignore_buffers = mem_opts.ignore_cached
|
||||||
|
= mem_opts.ignore_wired = False;
|
||||||
|
parse_arguments(argc, argv);
|
||||||
|
|
||||||
|
/* Initialize Application */
|
||||||
|
mem_init();
|
||||||
|
dockapp_open_window(display_name, PACKAGE, SIZE, SIZE, argc, argv);
|
||||||
|
dockapp_set_eventmask(ButtonPressMask);
|
||||||
|
|
||||||
|
if(light_color)
|
||||||
|
{
|
||||||
|
colors[0].pixel = dockapp_getcolor(light_color);
|
||||||
|
colors[1].pixel = dockapp_blendedcolor(light_color, -24, -24, -24, 1.0);
|
||||||
|
ncolor = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* change raw xpm data to pixmap */
|
||||||
|
if(dockapp_iswindowed)
|
||||||
|
backlight_on_xpm[1] = backlight_off_xpm[1] = WINDOWED_BG;
|
||||||
|
|
||||||
|
if(!dockapp_xpm2pixmap(backlight_on_xpm, &backdrop_on, &mask, colors, ncolor))
|
||||||
|
{
|
||||||
|
fprintf(stderr, "Error initializing backlit background image.\n");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
if(!dockapp_xpm2pixmap(backlight_off_xpm, &backdrop_off, NULL, NULL, 0))
|
||||||
|
{
|
||||||
|
fprintf(stderr, "Error initializing background image.\n");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
if(!dockapp_xpm2pixmap(parts_xpm, &parts, NULL, colors, ncolor))
|
||||||
|
{
|
||||||
|
fprintf(stderr, "Error initializing parts image.\n");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* shape window */
|
||||||
|
if(!dockapp_iswindowed)
|
||||||
|
dockapp_setshape(mask, 0, 0);
|
||||||
|
if(mask) XFreePixmap(display, mask);
|
||||||
|
|
||||||
|
/* pixmap : draw area */
|
||||||
|
pixmap = dockapp_XCreatePixmap(SIZE, SIZE);
|
||||||
|
|
||||||
|
/* Initialize pixmap */
|
||||||
|
if(backlight == LIGHTON)
|
||||||
|
dockapp_copyarea(backdrop_on, pixmap, 0, 0, SIZE, SIZE, 0, 0);
|
||||||
|
else
|
||||||
|
dockapp_copyarea(backdrop_off, pixmap, 0, 0, SIZE, SIZE, 0, 0);
|
||||||
|
|
||||||
|
dockapp_set_background(pixmap);
|
||||||
|
dockapp_show();
|
||||||
|
|
||||||
|
/* Main loop */
|
||||||
|
while(1)
|
||||||
|
{
|
||||||
|
if (dockapp_nextevent_or_timeout(&event, update_interval * 1000))
|
||||||
|
{
|
||||||
|
/* Next Event */
|
||||||
|
switch(event.type)
|
||||||
|
{
|
||||||
|
case ButtonPress:
|
||||||
|
switch_light();
|
||||||
|
break;
|
||||||
|
default: /* make gcc happy */
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
/* Time Out */
|
||||||
|
update();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* called by timer */
|
||||||
|
static void update(void)
|
||||||
|
{
|
||||||
|
static light pre_backlight;
|
||||||
|
static Bool in_alarm_mode = False;
|
||||||
|
|
||||||
|
/* get current cpu usage in percent */
|
||||||
|
mem_getusage(&mem_usage, &swap_usage, &mem_opts);
|
||||||
|
|
||||||
|
/* alarm mode */
|
||||||
|
if(mem_usage >= alarm_mem || swap_usage >= alarm_swap)
|
||||||
|
{
|
||||||
|
if(!in_alarm_mode)
|
||||||
|
{
|
||||||
|
in_alarm_mode = True;
|
||||||
|
pre_backlight = backlight;
|
||||||
|
}
|
||||||
|
if(backlight == LIGHTOFF)
|
||||||
|
{
|
||||||
|
switch_light();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if(in_alarm_mode)
|
||||||
|
{
|
||||||
|
in_alarm_mode = False;
|
||||||
|
if (backlight != pre_backlight)
|
||||||
|
{
|
||||||
|
switch_light();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* all clear */
|
||||||
|
if (backlight == LIGHTON)
|
||||||
|
dockapp_copyarea(backdrop_on, pixmap, 0, 0, 58, 58, 0, 0);
|
||||||
|
else
|
||||||
|
dockapp_copyarea(backdrop_off, pixmap, 0, 0, 58, 58, 0, 0);
|
||||||
|
|
||||||
|
/* draw digit */
|
||||||
|
draw_memdigit(mem_usage);
|
||||||
|
draw_swapdigit(swap_usage);
|
||||||
|
|
||||||
|
/* show */
|
||||||
|
dockapp_copy2window(pixmap);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* called when mouse button pressed */
|
||||||
|
static void switch_light(void)
|
||||||
|
{
|
||||||
|
switch (backlight)
|
||||||
|
{
|
||||||
|
case LIGHTOFF:
|
||||||
|
backlight = LIGHTON;
|
||||||
|
dockapp_copyarea(backdrop_on, pixmap, 0, 0, 58, 58, 0, 0);
|
||||||
|
break;
|
||||||
|
case LIGHTON:
|
||||||
|
backlight = LIGHTOFF;
|
||||||
|
dockapp_copyarea(backdrop_off, pixmap, 0, 0, 58, 58, 0, 0);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* redraw digit */
|
||||||
|
mem_getusage(&mem_usage, &swap_usage, &mem_opts);
|
||||||
|
draw_memdigit(mem_usage);
|
||||||
|
draw_swapdigit(swap_usage);
|
||||||
|
|
||||||
|
/* show */
|
||||||
|
dockapp_copy2window(pixmap);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void draw_memdigit(int per)
|
||||||
|
{
|
||||||
|
int v100, v10, v1;
|
||||||
|
int y = 0;
|
||||||
|
|
||||||
|
if (per < 0) per = 0;
|
||||||
|
if (per > 100) per = 100;
|
||||||
|
|
||||||
|
v100 = per / 100;
|
||||||
|
v10 = (per - v100 * 100) / 10;
|
||||||
|
v1 = (per - v100 * 100 - v10 * 10);
|
||||||
|
|
||||||
|
if (backlight == LIGHTON) y = 20;
|
||||||
|
|
||||||
|
/* draw digit */
|
||||||
|
dockapp_copyarea(parts, pixmap, v1 * 10, y, 10, 20, 29, 7);
|
||||||
|
if (v10 != 0)
|
||||||
|
dockapp_copyarea(parts, pixmap, v10 * 10, y, 10, 20, 17, 7);
|
||||||
|
if (v100 == 1)
|
||||||
|
{
|
||||||
|
dockapp_copyarea(parts, pixmap, 10, y, 10, 20, 5, 7);
|
||||||
|
dockapp_copyarea(parts, pixmap, 0, y, 10, 20, 17, 7);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static void draw_swapdigit(int per)
|
||||||
|
{
|
||||||
|
int v100, v10, v1;
|
||||||
|
int y = 0;
|
||||||
|
|
||||||
|
if (per < 0) per = 0;
|
||||||
|
if (per > 100) per = 100;
|
||||||
|
|
||||||
|
v100 = per / 100;
|
||||||
|
v10 = (per - v100 * 100) / 10;
|
||||||
|
v1 = (per - v100 * 100 - v10 * 10);
|
||||||
|
|
||||||
|
if (backlight == LIGHTON) y = 20;
|
||||||
|
|
||||||
|
/* draw digit */
|
||||||
|
dockapp_copyarea(parts, pixmap, v1 * 10, y, 10, 20, 29, 34);
|
||||||
|
if (v10 != 0)
|
||||||
|
dockapp_copyarea(parts, pixmap, v10 * 10, y, 10, 20, 17, 34);
|
||||||
|
if (v100 == 1)
|
||||||
|
{
|
||||||
|
dockapp_copyarea(parts, pixmap, 10, y, 10, 20, 5, 34);
|
||||||
|
dockapp_copyarea(parts, pixmap, 0, y, 10, 20, 17, 34);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static void parse_arguments(int argc, char **argv)
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
int integer;
|
||||||
|
for (i = 1; i < argc; i++)
|
||||||
|
{
|
||||||
|
if (!strcmp(argv[i], "--help") || !strcmp(argv[i], "-h"))
|
||||||
|
print_help(argv[0]), exit(0);
|
||||||
|
else if (!strcmp(argv[i], "--version") || !strcmp(argv[i], "-v"))
|
||||||
|
printf("%s version %s\n", PACKAGE, VERSION), exit(0);
|
||||||
|
else if (!strcmp(argv[i], "--display") || !strcmp(argv[i], "-d"))
|
||||||
|
{
|
||||||
|
display_name = argv[i + 1];
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
else if (!strcmp(argv[i], "--alarm-mem") || !strcmp(argv[i], "-am"))
|
||||||
|
{
|
||||||
|
if (argc == i + 1)
|
||||||
|
alarm_mem = 90;
|
||||||
|
else if (sscanf(argv[i + 1], "%i", &integer) != 1)
|
||||||
|
alarm_mem = 90;
|
||||||
|
else if (integer < 0 || integer > 100)
|
||||||
|
fprintf(stderr, "%s: argument %s must be from 0 to 100\n",
|
||||||
|
argv[0], argv[i]), exit(1);
|
||||||
|
else
|
||||||
|
alarm_mem = integer, i++;
|
||||||
|
}
|
||||||
|
else if (!strcmp(argv[i], "--alarm-swap") || !strcmp(argv[i], "-as"))
|
||||||
|
{
|
||||||
|
if (argc == i + 1)
|
||||||
|
alarm_swap = 50;
|
||||||
|
else if (sscanf(argv[i + 1], "%i", &integer) != 1)
|
||||||
|
alarm_swap = 50;
|
||||||
|
else if (integer < 0 || integer > 100)
|
||||||
|
fprintf(stderr, "%s: argument %s must be from 0 to 100\n",
|
||||||
|
argv[0], argv[i]), exit(1);
|
||||||
|
else
|
||||||
|
alarm_swap = integer, i++;
|
||||||
|
}
|
||||||
|
else if (!strcmp(argv[i], "--backlight") || !strcmp(argv[i], "-bl"))
|
||||||
|
backlight = LIGHTON;
|
||||||
|
else if (!strcmp(argv[i], "--light-color") || !strcmp(argv[i], "-lc"))
|
||||||
|
{
|
||||||
|
light_color = argv[i + 1];
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
else if (!strcmp(argv[i], "--interval") || !strcmp(argv[i], "-i"))
|
||||||
|
{
|
||||||
|
if (argc == i + 1)
|
||||||
|
fprintf(stderr, "%s: error parsing argument for option %s\n",
|
||||||
|
argv[0], argv[i]), exit(1);
|
||||||
|
if (sscanf(argv[i + 1], "%i", &integer) != 1)
|
||||||
|
fprintf(stderr, "%s: error parsing argument for option %s\n",
|
||||||
|
argv[0], argv[i]), exit(1);
|
||||||
|
if (integer < 1)
|
||||||
|
fprintf(stderr, "%s: argument %s must be >=1\n",
|
||||||
|
argv[0], argv[i]), exit(1);
|
||||||
|
update_interval = integer;
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
else if (!strcmp(argv[i], "--windowed") || !strcmp(argv[i], "-w"))
|
||||||
|
dockapp_iswindowed = True;
|
||||||
|
else if (!strcmp(argv[i], "--broken-wm") || !strcmp(argv[i], "-bw"))
|
||||||
|
dockapp_isbrokenwm = True;
|
||||||
|
#ifdef IGNORE_BUFFERS
|
||||||
|
else if (!strcmp(argv[i], "--ignore-buffers") || !strcmp(argv[i], "-b"))
|
||||||
|
mem_opts.ignore_buffers = True;
|
||||||
|
#endif
|
||||||
|
#ifdef IGNORE_CACHED
|
||||||
|
else if (!strcmp(argv[i], "--ignore-cached") || !strcmp(argv[i], "-c"))
|
||||||
|
mem_opts.ignore_cached = True;
|
||||||
|
#endif
|
||||||
|
#ifdef IGNORE_WIRED
|
||||||
|
else if (!strcmp(argv[i], "--ignore-wired") || !strcmp(argv[i], "-wr"))
|
||||||
|
mem_opts.ignore_wired = True;
|
||||||
|
#endif
|
||||||
|
else
|
||||||
|
{
|
||||||
|
fprintf(stderr, "%s: unrecognized option '%s'\n", argv[0], argv[i]);
|
||||||
|
print_help(argv[0]), exit(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (alarm_mem != 101 && alarm_swap != 101)
|
||||||
|
{
|
||||||
|
fprintf(stderr,
|
||||||
|
"%s: select either '-am, --alarm-mem' or '-as, --alarm-swap'\n",
|
||||||
|
argv[0]);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static void print_help(char *prog)
|
||||||
|
{
|
||||||
|
printf("Usage : %s [OPTIONS]\n", prog);
|
||||||
|
printf("WMMemMon - Window Maker memory/swap monitor dockapp\n");
|
||||||
|
printf(" -d, --display <string> display to use\n");
|
||||||
|
printf(" -bl, --backlight turn on back-light\n");
|
||||||
|
printf(" -lc, --light-color <string> back-light color(rgb:6E/C6/3B is default)\n");
|
||||||
|
printf(" -i, --interval <number> number of secs between updates (1 is default)\n");
|
||||||
|
#ifdef IGNORE_BUFFERS
|
||||||
|
printf(" -b, --ignore-buffers ignore buffers\n");
|
||||||
|
#endif
|
||||||
|
#ifdef IGNORE_CACHED
|
||||||
|
printf(" -c, --ignore-cached ignore cached pages\n");
|
||||||
|
#endif
|
||||||
|
#ifdef IGNORE_WIRED
|
||||||
|
printf(" -wr, --ignore-wired ignore wired pages\n");
|
||||||
|
#endif
|
||||||
|
printf(" -h, --help show this help text and exit\n");
|
||||||
|
printf(" -v, --version show program version and exit\n");
|
||||||
|
printf(" -w, --windowed run the application in windowed mode\n");
|
||||||
|
printf(" -bw, --broken-wm activate broken window manager fix\n");
|
||||||
|
printf(" -am, --alarm-mem <percentage> activate alarm mode of memory. <percentage>\n");
|
||||||
|
printf(" is threshold of percentage from 0 to 100.\n");
|
||||||
|
printf(" (90 is default)\n");
|
||||||
|
printf(" -as, --alarm-swap <percentage> activate alarm mode of swap. <percentage> is\n");
|
||||||
|
printf(" threshold of percentage from 0 to 100.\n");
|
||||||
|
printf(" (50 is default)\n");
|
||||||
|
}
|
16
wmmemload/src/mem.h
Normal file
16
wmmemload/src/mem.h
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
/*
|
||||||
|
* mem.h - module to get memory/swap usages in percent
|
||||||
|
*
|
||||||
|
* Copyright (c) 2001 Seiichi SATO <ssato@sh.rim.or.jp>
|
||||||
|
*
|
||||||
|
* licensed under the GPL
|
||||||
|
*/
|
||||||
|
|
||||||
|
struct mem_options {
|
||||||
|
int ignore_buffers;
|
||||||
|
int ignore_cached;
|
||||||
|
int ignore_wired;
|
||||||
|
};
|
||||||
|
|
||||||
|
void mem_init(void);
|
||||||
|
void mem_getusage(int *per_mem, int *per_swap, const struct mem_options *opts);
|
128
wmmemload/src/mem_freebsd.c
Normal file
128
wmmemload/src/mem_freebsd.c
Normal file
|
@ -0,0 +1,128 @@
|
||||||
|
/*
|
||||||
|
* mem_freebsd.c - module to get memory/swap usages in percent, for FreeBSD
|
||||||
|
*
|
||||||
|
* Copyright(c) 2001 Seiichi SATO <ssato@sh.rim.or.jp>
|
||||||
|
*
|
||||||
|
* licensed under the GPL
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include "config.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include "mem.h"
|
||||||
|
|
||||||
|
#include <kvm.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
#include <sys/vmmeter.h>
|
||||||
|
#include <time.h>
|
||||||
|
|
||||||
|
static kvm_t *kvm_data = NULL;
|
||||||
|
static int pageshift;
|
||||||
|
static struct nlist nlst[] = { {"_cp_time"}, {"_cnt"}, {0} };
|
||||||
|
|
||||||
|
/* initialize function */
|
||||||
|
void mem_init(void)
|
||||||
|
{
|
||||||
|
int pagesize = getpagesize();
|
||||||
|
pageshift = 0;
|
||||||
|
|
||||||
|
while (pagesize > 1) {
|
||||||
|
pageshift++;
|
||||||
|
pagesize >>= 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
kvm_data = kvm_open(NULL, NULL, NULL, O_RDONLY, "kvm_open");
|
||||||
|
|
||||||
|
if (kvm_data == NULL) {
|
||||||
|
fprintf(stderr, "can't open kernel virtual memory");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
kvm_nlist(kvm_data, nlst);
|
||||||
|
|
||||||
|
if (nlst[0].n_type == 0 || nlst[1].n_type == 0) {
|
||||||
|
fprintf(stderr, "error extracting symbols");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
/* drop setgid & setuid (the latter should not be there really) */
|
||||||
|
seteuid(getuid());
|
||||||
|
setegid(getgid());
|
||||||
|
|
||||||
|
if (geteuid() != getuid() || getegid() != getgid()) {
|
||||||
|
fprintf(stderr, "unable to drop privileges");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* return mem/swap usage in percent 0 to 100 */
|
||||||
|
void mem_getusage(int *per_mem, int *per_swap, const struct mem_options *opts)
|
||||||
|
{
|
||||||
|
struct vmmeter vm;
|
||||||
|
int bufspace;
|
||||||
|
static int swap_firsttime = 1;
|
||||||
|
static int swappgsin = -1;
|
||||||
|
static int swappgsout = -1;
|
||||||
|
static int swapmax = 0, swapused = 0;
|
||||||
|
time_t cur_time;
|
||||||
|
static time_t last_time_swap = 0;
|
||||||
|
u_int mused;
|
||||||
|
|
||||||
|
/* get mem usage */
|
||||||
|
if (kvm_read(kvm_data, nlst[0].n_value, &bufspace, sizeof(bufspace)) !=
|
||||||
|
sizeof(bufspace))
|
||||||
|
exit(1);
|
||||||
|
if (kvm_read(kvm_data, nlst[1].n_value, &vm, sizeof(vm)) != sizeof(vm))
|
||||||
|
exit(1);
|
||||||
|
|
||||||
|
/* get swap usage */
|
||||||
|
/* only calculate when first time or when changes took place */
|
||||||
|
/* do not call it more than 1 time per 2 seconds */
|
||||||
|
/* otherwise it can eat up to 50% of CPU time on heavy swap activity */
|
||||||
|
cur_time = time(NULL);
|
||||||
|
if (swap_firsttime ||
|
||||||
|
(((vm.v_swappgsin > swappgsin) || (vm.v_swappgsout > swappgsout))
|
||||||
|
&& cur_time > last_time_swap + 1)) {
|
||||||
|
|
||||||
|
struct kvm_swap swap;
|
||||||
|
int n;
|
||||||
|
|
||||||
|
swapmax = 0;
|
||||||
|
swapused = 0;
|
||||||
|
|
||||||
|
n = kvm_getswapinfo(kvm_data, &swap, 1, 0);
|
||||||
|
if (n >= 0 && swap.ksw_total != 0) {
|
||||||
|
swapmax = swap.ksw_total;
|
||||||
|
swapused = swap.ksw_used;
|
||||||
|
}
|
||||||
|
|
||||||
|
swap_firsttime = 0;
|
||||||
|
last_time_swap = cur_time;
|
||||||
|
}
|
||||||
|
swappgsin = vm.v_swappgsin;
|
||||||
|
swappgsout = vm.v_swappgsout;
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
|
printf ("-------------------\n");
|
||||||
|
printf ("total:%10d\n", vm.v_page_count * vm.v_page_size);
|
||||||
|
printf ("free :%10d\n", vm.v_free_count * vm.v_page_size);
|
||||||
|
printf ("act :%10d\n", vm.v_active_count * vm.v_page_size);
|
||||||
|
printf ("inact:%10d\n", vm.v_inactive_count * vm.v_page_size);
|
||||||
|
printf ("wired:%10d\n", vm.v_wire_count * vm.v_page_size);
|
||||||
|
printf ("cache:%10d\n", vm.v_cache_count * vm.v_page_size);
|
||||||
|
printf ("-------------------\n");
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* calc mem/swap usage in percent */
|
||||||
|
mused = vm.v_page_count - vm.v_free_count;
|
||||||
|
if (opts->ignore_wired) mused -= vm.v_wire_count;
|
||||||
|
if (opts->ignore_cached) mused -= vm.v_cache_count;
|
||||||
|
|
||||||
|
*per_mem = 100 * (double) mused / (double) vm.v_page_count;
|
||||||
|
*per_swap = 100 * (double) swapused / (double) swapmax;
|
||||||
|
|
||||||
|
if (*per_mem > 97) *per_mem = 100;
|
||||||
|
}
|
63
wmmemload/src/mem_freebsd_sysctl.c
Normal file
63
wmmemload/src/mem_freebsd_sysctl.c
Normal file
|
@ -0,0 +1,63 @@
|
||||||
|
/*
|
||||||
|
* mem_freebsd.c - module to get memory/swap usages in percent, for FreeBSD
|
||||||
|
*
|
||||||
|
* Copyright (c) 2001, 2002 Seiichi SATO <ssato@sh.rim.or.jp>
|
||||||
|
*
|
||||||
|
* licensed under the GPL
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include "config.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include "mem.h"
|
||||||
|
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/sysctl.h>
|
||||||
|
#include <vm/vm_param.h>
|
||||||
|
#include <sys/vmmeter.h>
|
||||||
|
|
||||||
|
/* initialize function */
|
||||||
|
void mem_init(void)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* return mem/swap usage in percent 0 to 100 */
|
||||||
|
void mem_getusage(int *per_mem, int *per_swap, const struct mem_options *opts)
|
||||||
|
{
|
||||||
|
|
||||||
|
struct vmtotal vm;
|
||||||
|
size_t size = sizeof(vm);
|
||||||
|
static int mib[] = { CTL_VM, VM_METER };
|
||||||
|
|
||||||
|
/* get mem usage */
|
||||||
|
if (sysctl(mib, 2, &vm, &size, NULL, 0) < 0)
|
||||||
|
bzero(&vm, sizeof(vm));
|
||||||
|
|
||||||
|
/* calc mem usage in percent */
|
||||||
|
/* FIXME: the total usage(t_rm and t_free) is incorrect?? */
|
||||||
|
if (vm.t_rm > 0)
|
||||||
|
*per_mem = 100 * (double) vm.t_rm / (double) (vm.t_rm + vm.t_free);
|
||||||
|
if (*per_mem > 95)
|
||||||
|
*per_mem = 100;
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
|
printf("t_vm total virtual memory %6lu\n", vm.t_vm);
|
||||||
|
printf("t_rm total real memory in use %6lu\n", vm.t_rm);
|
||||||
|
printf("t_arm active real memory %6lu\n", vm.t_arm);
|
||||||
|
printf("t_rmshr shared real memory %6lu\n", vm.t_rmshr);
|
||||||
|
printf("t_armshr active shared real memory %6lu\n", vm.t_armshr);
|
||||||
|
printf("t_free free memory pages %6lu\n", vm.t_free);
|
||||||
|
printf("--------------------------------------------\n");
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* get swap usage */
|
||||||
|
/* not written yet.. can i get swap usage via sysctl? */
|
||||||
|
|
||||||
|
*per_swap = 0;
|
||||||
|
return;
|
||||||
|
}
|
166
wmmemload/src/mem_linux.c
Normal file
166
wmmemload/src/mem_linux.c
Normal file
|
@ -0,0 +1,166 @@
|
||||||
|
/*
|
||||||
|
* mem_linux.c - module to get memory/swap usages, for GNU/Linxu
|
||||||
|
*
|
||||||
|
* Copyright(C) 2001,2002 Seiichi SATO <ssato@sh.rim.or.jp>
|
||||||
|
* Copyright(C) 2001 John McCutchan <ttb@tentacle.dhs.org>
|
||||||
|
*
|
||||||
|
* licensed under the GPL
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include "config.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
#if defined(HAVE_STRING_H)
|
||||||
|
#include <string.h>
|
||||||
|
#elif defined(HAVE_STRINGS_H)
|
||||||
|
#include <strings.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
#include <ctype.h>
|
||||||
|
#include <sys/utsname.h>
|
||||||
|
#include "mem.h"
|
||||||
|
|
||||||
|
static int isnewformat = 0; /* for kernel 2.5.1 or later */
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
|
# define INLINE_STATIC static
|
||||||
|
#else
|
||||||
|
# define INLINE_STATIC inline static
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* initialize function */
|
||||||
|
void mem_init(void)
|
||||||
|
{
|
||||||
|
struct utsname un;
|
||||||
|
int version, patchlevel, sublevel;
|
||||||
|
|
||||||
|
/* get kernel version */
|
||||||
|
if (uname(&un) == -1)
|
||||||
|
perror ("uname()");
|
||||||
|
sscanf (un.release, "%d.%d.%d", &version, &patchlevel, &sublevel);
|
||||||
|
|
||||||
|
/* new format ? (kernel >= 2.5.1pre?) */
|
||||||
|
/* see linux/fs/proc/proc_misc.c */
|
||||||
|
if (version >= 2 && patchlevel >= 5 && sublevel >= 1 || \
|
||||||
|
version >= 2 && patchlevel >= 6 && sublevel >= 0)
|
||||||
|
isnewformat = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
INLINE_STATIC char * skip_line (const char *p)
|
||||||
|
{
|
||||||
|
while (*p != '\n') p++;
|
||||||
|
return (char *) ++p;
|
||||||
|
}
|
||||||
|
|
||||||
|
INLINE_STATIC char * skip_token (const char *p)
|
||||||
|
{
|
||||||
|
while (isspace(*p)) p++;
|
||||||
|
while (*p && !isspace(*p)) p++;
|
||||||
|
return (char *)p;
|
||||||
|
}
|
||||||
|
|
||||||
|
INLINE_STATIC char * skip_multiple_token (const char *p, int count)
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
for (i = 0; i < count; i++) p = skip_token (p);
|
||||||
|
return (char *)p;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* return mem/swap usage in percent 0 to 100 */
|
||||||
|
void mem_getusage(int *per_mem, int *per_swap, const struct mem_options *opts)
|
||||||
|
{
|
||||||
|
char buffer[BUFSIZ], *p;
|
||||||
|
int fd, len, i;
|
||||||
|
u_int64_t mtotal, mused, mfree, mbuffer, mcached;
|
||||||
|
u_int64_t stotal, sused, sfree, scached = 0;
|
||||||
|
|
||||||
|
/* read /proc/meminfo */
|
||||||
|
fd = open("/proc/meminfo", O_RDONLY);
|
||||||
|
if (fd < 0) {
|
||||||
|
perror("can't open /proc/meminfo");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
len = read(fd, buffer, BUFSIZ - 1);
|
||||||
|
if (len < 0) {
|
||||||
|
perror("can't read /proc/meminfo");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
close(fd);
|
||||||
|
|
||||||
|
buffer[len] = '\0';
|
||||||
|
p = buffer;
|
||||||
|
|
||||||
|
if (!isnewformat) {
|
||||||
|
/* skip 3 lines */
|
||||||
|
for (i = 0; i < 3; i++)
|
||||||
|
p = skip_line(p);
|
||||||
|
p = skip_token(p);
|
||||||
|
/* examine each line of file */
|
||||||
|
mtotal = strtoul(p, &p, 0); p = skip_multiple_token(p, 2);
|
||||||
|
mfree = strtoul(p, &p, 0); p = skip_multiple_token(p, 5);
|
||||||
|
mbuffer = strtoul(p, &p, 0); p = skip_multiple_token(p, 2);
|
||||||
|
mcached = strtoul(p, &p, 0); p = skip_multiple_token(p, 2);
|
||||||
|
scached = strtoul(p, &p, 0);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
p = skip_token(p);
|
||||||
|
/* examine each line of file */
|
||||||
|
mtotal = strtoul(p, &p, 0); p = skip_multiple_token(p, 2);
|
||||||
|
mfree = strtoul(p, &p, 0); p = skip_multiple_token(p, 2);
|
||||||
|
mbuffer = strtoul(p, &p, 0); p = skip_multiple_token(p, 2);
|
||||||
|
mcached = strtoul(p, &p, 0); p = skip_multiple_token(p, 2);
|
||||||
|
scached = strtoul(p, &p, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* skip N lines and examine info about swap */
|
||||||
|
/* kernel-2.4.2:N=8 2.4.16:N=7 */
|
||||||
|
while (isprint(p[0])) {
|
||||||
|
p = skip_line(p);
|
||||||
|
if (strncmp(p, "SwapTotal", 9) == 0) break;
|
||||||
|
}
|
||||||
|
|
||||||
|
p = skip_token(p);
|
||||||
|
stotal = strtoul(p, &p, 0); p = skip_multiple_token(p, 2);
|
||||||
|
sfree = strtoul(p, &p, 0);
|
||||||
|
|
||||||
|
/* calculate memory usage in percent */
|
||||||
|
mused = mtotal - mfree;
|
||||||
|
if (opts->ignore_buffers)
|
||||||
|
mused -= mbuffer;
|
||||||
|
if (opts->ignore_cached)
|
||||||
|
mused -= mcached;
|
||||||
|
*per_mem = 100 * (double) mused / (double) mtotal;
|
||||||
|
|
||||||
|
/* calculate swap usage in percent */
|
||||||
|
sused = stotal - sfree;
|
||||||
|
if(opts->ignore_cached)
|
||||||
|
sused -= scached;
|
||||||
|
if (!stotal) {
|
||||||
|
*per_swap = 0;
|
||||||
|
} else {
|
||||||
|
*per_swap = 100 * (double) sused / (double) stotal;
|
||||||
|
}
|
||||||
|
|
||||||
|
#if DEBUG
|
||||||
|
printf("-----------------------\n");
|
||||||
|
printf("MemTotal: %12ld\n", (unsigned long)mtotal);
|
||||||
|
printf("MemFree: %12ld\n", (unsigned long)mfree);
|
||||||
|
printf("Buffers: %12ld\n", (unsigned long)mbuffer);
|
||||||
|
printf("Cached: %12ld\n", (unsigned long)mcached);
|
||||||
|
printf("SwapTotal: %12ld\n", (unsigned long)stotal);
|
||||||
|
printf("SwapFree: %12ld\n", (unsigned long)sfree);
|
||||||
|
printf("SwapCached:%12ld\n", (unsigned long)scached);
|
||||||
|
printf("-----------------------\n\n");
|
||||||
|
#endif
|
||||||
|
|
||||||
|
}
|
96
wmmemload/src/mem_openbsd.c
Normal file
96
wmmemload/src/mem_openbsd.c
Normal file
|
@ -0,0 +1,96 @@
|
||||||
|
/*
|
||||||
|
* mem_openbsd.c - module to get memory/swap usages in percent, for OpenBSD
|
||||||
|
*
|
||||||
|
* Copyright (c) 2001 Seiichi SATO <ssato@sh.rim.or.jp>
|
||||||
|
*
|
||||||
|
* licensed under the GPL
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include "config.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include "mem.h"
|
||||||
|
|
||||||
|
#include <sys/param.h>
|
||||||
|
#include <sys/sysctl.h>
|
||||||
|
#include <sys/swap.h>
|
||||||
|
|
||||||
|
/* initialize function */
|
||||||
|
void
|
||||||
|
mem_init(void)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* get swap usage */
|
||||||
|
static int
|
||||||
|
get_swap_usage(void)
|
||||||
|
{
|
||||||
|
struct swapent *swap_dev;
|
||||||
|
int num_swap;
|
||||||
|
int stotal, sused, i;
|
||||||
|
|
||||||
|
stotal = sused = 0;
|
||||||
|
|
||||||
|
if ((num_swap = swapctl(SWAP_NSWAP, 0, 0)) == 0)
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
if ((swap_dev = malloc(num_swap * sizeof(*swap_dev))) == NULL)
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
if (swapctl(SWAP_STATS, swap_dev, num_swap) == -1)
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
for (i = 0; i < num_swap; i++) {
|
||||||
|
if (swap_dev[i].se_flags & SWF_ENABLE) {
|
||||||
|
stotal += swap_dev[i].se_nblks;
|
||||||
|
sused += swap_dev[i].se_inuse;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
free(swap_dev);
|
||||||
|
|
||||||
|
if (sused == 0)
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
return (100 * (double) sused / (double) stotal);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* return mem/swap usage in percent 0 to 100 */
|
||||||
|
void
|
||||||
|
mem_getusage(int *per_mem, int *per_swap, const struct mem_options *opts)
|
||||||
|
{
|
||||||
|
|
||||||
|
struct vmtotal vm;
|
||||||
|
size_t size = sizeof(vm);
|
||||||
|
static int mib[] = { CTL_VM, VM_METER };
|
||||||
|
|
||||||
|
/* get mem usage */
|
||||||
|
if (sysctl(mib, 2, &vm, &size, NULL, 0) < 0)
|
||||||
|
bzero(&vm, sizeof(vm));
|
||||||
|
|
||||||
|
/* calc mem usage in percent */
|
||||||
|
if (vm.t_rm > 0)
|
||||||
|
*per_mem = 100 * (double) vm.t_rm / (double) (vm.t_rm + vm.t_free);
|
||||||
|
|
||||||
|
if (*per_mem > 97) *per_mem = 100;
|
||||||
|
|
||||||
|
/* swap */
|
||||||
|
*per_swap = get_swap_usage();
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
|
printf("t_rm total real memory in use %6d\n", vm.t_rm);
|
||||||
|
printf("t_arm active real memory %6d\n", vm.t_arm);
|
||||||
|
printf("t_rmshr shared real memory %6d\n", vm.t_rmshr);
|
||||||
|
printf("t_armshr active shared real memory %6d\n", vm.t_armshr);
|
||||||
|
printf("t_free free memory pages %6d\n", vm.t_free);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
51
wmmemload/src/mem_solaris.c
Normal file
51
wmmemload/src/mem_solaris.c
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
/*
|
||||||
|
* mem_solaric.c - module to get memory/swap usages in percent, for Solaris
|
||||||
|
*
|
||||||
|
* Copyright (c) 2001 Jonathan Lang <lang@synopsys.com>
|
||||||
|
* Copyright (c) 2002 Seiichi SATO <ssato@sh.rim.or.jp>
|
||||||
|
*
|
||||||
|
* licensed under the GPL
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include "config.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include "mem.h"
|
||||||
|
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/swap.h>
|
||||||
|
|
||||||
|
/* initialize function */
|
||||||
|
void mem_init(void)
|
||||||
|
{
|
||||||
|
/* solaris doesn't need initialization */
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* return memory/swap usage in percent 0 to 100 */
|
||||||
|
void mem_getusage(int *per_mem, int *per_swap, const struct mem_options *opts)
|
||||||
|
{
|
||||||
|
static int mem_total;
|
||||||
|
static int mem_free;
|
||||||
|
static int swap_total;
|
||||||
|
static int swap_free;
|
||||||
|
struct anoninfo anon;
|
||||||
|
|
||||||
|
/* get mem usage */
|
||||||
|
mem_total = sysconf(_SC_PHYS_PAGES);
|
||||||
|
mem_free = sysconf(_SC_AVPHYS_PAGES);
|
||||||
|
|
||||||
|
/* get swap usage */
|
||||||
|
if (swapctl(SC_AINFO, &anon) == -1)
|
||||||
|
exit(1);
|
||||||
|
swap_total = anon.ani_max;
|
||||||
|
swap_free = anon.ani_max - anon.ani_resv;
|
||||||
|
|
||||||
|
/* calc mem/swap usage in percent */
|
||||||
|
*per_mem = 100 * (1 - ((double) mem_free / (double) mem_total));
|
||||||
|
*per_swap = 100 * (1 - ((double) swap_free / (double) swap_total));
|
||||||
|
}
|
60
wmmemload/src/parts.xpm
Normal file
60
wmmemload/src/parts.xpm
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
/* XPM */
|
||||||
|
static char * parts_xpm[] = {
|
||||||
|
"104 49 8 1",
|
||||||
|
" c None",
|
||||||
|
". c #8E968A",
|
||||||
|
"+ c #020202",
|
||||||
|
"@ c #767C6F",
|
||||||
|
"# c #6EC63B s Back0",
|
||||||
|
"$ c #6CB237 s Back1",
|
||||||
|
"% c #FFFFFF",
|
||||||
|
"& c #3E463E",
|
||||||
|
"..++++++....@@@@@@....++++++....++++++....@@@@@@....++++++....++++++....++++++....++++++....++++++..++++",
|
||||||
|
"+..++++..+@..@@@@..+@..++++..+@..++++..++..@@@@..++..++++..@+..++++..@@..++++..++..++++..++..++++..+..##",
|
||||||
|
"++......++@@......++@@......++@@......++++......++++......@@++......@@@@......++++......++++......++++++",
|
||||||
|
"++......++@@......++@@......++@@......++++......++++......@@++......@@@@......++++......++++......++..##",
|
||||||
|
"++......++@@......++@@......++@@......++++......++++......@@++......@@@@......++++......++++......++++++",
|
||||||
|
"++......++@@......++@@......++@@......++++......++++......@@++......@@@@......++++......++++......++..##",
|
||||||
|
"++......++@@......++@@......++@@......++++......++++......@@++......@@@@......++++......++++......++++++",
|
||||||
|
"++......++@@......++@@......++@@......++++......++++......@@++......@@@@......++++......++++......++..##",
|
||||||
|
"++......++@@......++@@......++@@......++++......++++......@@++......@@@@......++++......++++......++++++",
|
||||||
|
"+..@@@@..+@..@@@@..+@..++++..+@..++++..++..++++..++..++++..@+..++++..@@..@@@@..++..++++..++..++++..+..##",
|
||||||
|
"..@@@@@@....@@@@@@....++++++....++++++....++++++....++++++....++++++....@@@@@@....++++++....++++++..++++",
|
||||||
|
"+........+@........++........@@........+@........+@........++........+@........++........+@........+..##",
|
||||||
|
"++......++@@......++++......@@@@......++@@......++@@......++++......++@@......++++......++@@......++++++",
|
||||||
|
"++......++@@......++++......@@@@......++@@......++@@......++++......++@@......++++......++@@......++..##",
|
||||||
|
"++......++@@......++++......@@@@......++@@......++@@......++++......++@@......++++......++@@......++++++",
|
||||||
|
"++......++@@......++++......@@@@......++@@......++@@......++++......++@@......++++......++@@......++..##",
|
||||||
|
"++......++@@......++++......@@@@......++@@......++@@......++++......++@@......++++......++@@......++++++",
|
||||||
|
"++......++@@......++++......@@@@......++@@......++@@......++++......++@@......++++......++@@......++..##",
|
||||||
|
"+..++++..+@..@@@@..++..++++..@@..++++..+@..@@@@..+@..++++..++..++++..+@..@@@@..++..++++..+@..++++..+++++",
|
||||||
|
"..++++++....@@@@@@....++++++....++++++....@@@@@@....++++++....++++++....@@@@@@....++++++....++++++....##",
|
||||||
|
"##++++++####$$$$$$####++++++####++++++####$$$$$$####++++++####++++++####++++++####++++++####++++++##++++",
|
||||||
|
"+##++++##+$##$$$$##+$##++++##+$##++++##++##$$$$##++##++++##$+##++++##$$##++++##++##++++##++##++++##+%%%%",
|
||||||
|
"++######++$$######++$$######++$$######++++######++++######$$++######$$$$######++++######++++######++%%%%",
|
||||||
|
"++######++$$######++$$######++$$######++++######++++######$$++######$$$$######++++######++++######++%%%%",
|
||||||
|
"++######++$$######++$$######++$$######++++######++++######$$++######$$$$######++++######++++######++%%%%",
|
||||||
|
"++######++$$######++$$######++$$######++++######++++######$$++######$$$$######++++######++++######++%%%%",
|
||||||
|
"++######++$$######++$$######++$$######++++######++++######$$++######$$$$######++++######++++######++%%%%",
|
||||||
|
"++######++$$######++$$######++$$######++++######++++######$$++######$$$$######++++######++++######++%%%%",
|
||||||
|
"++######++$$######++$$######++$$######++++######++++######$$++######$$$$######++++######++++######++%%%%",
|
||||||
|
"+##$$$$##+$##$$$$##+$##++++##+$##++++##++##++++##++##++++##$+##++++##$$##$$$$##++##++++##++##++++##+%%%%",
|
||||||
|
"##$$$$$$####$$$$$$####++++++####++++++####++++++####++++++####++++++####$$$$$$####++++++####++++++##%%%%",
|
||||||
|
"+########+$########++########$$########+$########+$########++########+$########++########+$########+%%%%",
|
||||||
|
"++######++$$######++++######$$$$######++$$######++$$######++++######++$$######++++######++$$######++%%%%",
|
||||||
|
"++######++$$######++++######$$$$######++$$######++$$######++++######++$$######++++######++$$######++%%%%",
|
||||||
|
"++######++$$######++++######$$$$######++$$######++$$######++++######++$$######++++######++$$######++%%%%",
|
||||||
|
"++######++$$######++++######$$$$######++$$######++$$######++++######++$$######++++######++$$######++%%%%",
|
||||||
|
"++######++$$######++++######$$$$######++$$######++$$######++++######++$$######++++######++$$######++%%%%",
|
||||||
|
"++######++$$######++++######$$$$######++$$######++$$######++++######++$$######++++######++$$######++%%%%",
|
||||||
|
"+##++++##+$##$$$$##++##++++##$$##++++##+$##$$$$##+$##++++##++##++++##+$##$$$$##++##++++##+$##++++##+%%%%",
|
||||||
|
"##++++++####$$$$$$####++++++####++++++####$$$$$$####++++++####++++++####$$$$$$####++++++####++++++##%%%%",
|
||||||
|
".+++..@@@&.+++..+++.&@@@&&+++..+++..+++&.+++..+++.#+++##$$$&#+++##+++#&$$$&&+++##+++##+++&#+++##+++#%%%%",
|
||||||
|
"+...+@...+@...+@...++...++...@+...@@...++...++...++###+$###+$###+$###++###++###$+###$$###++###++###+%%%%",
|
||||||
|
"+...+@...+@...+@...++...++...@+...@@...++...++...++###+$###+$###+$###++###++###$+###$$###++###++###+%%%%",
|
||||||
|
"+...+@...+@...+@...++...++...@+...@@...++...++...++###+$###+$###+$###++###++###$+###$$###++###++###+%%%%",
|
||||||
|
"&@@@&.@@@&.+++..+++&&+++&&+++..+++..@@@&.+++..+++&&$$$&#$$$&#+++##+++&&+++&&+++##+++##$$$&#+++##+++&%%%%",
|
||||||
|
"+...+@...++...@@...+@...+@...++...+@...++...+@...++###+$###++###$$###+$###+$###++###+$###++###+$###+%%%%",
|
||||||
|
"+...+@...++...@@...+@...+@...++...+@...++...+@...++###+$###++###$$###+$###+$###++###+$###++###+$###+%%%%",
|
||||||
|
"+...+@...++...@@...+@...+@...++...+@...++...+@...++###+$###++###$$###+$###+$###++###+$###++###+$###+%%%%",
|
||||||
|
".+++..@@@&.+++&.+++..@@@&&+++..+++..@@@&.+++..+++.#+++##$$$&#+++&#+++##$$$&&+++##+++##$$$&#+++##+++#%%%%"};
|
Loading…
Reference in a new issue