Update to xload 1.1.1
This commit is contained in:
parent
6575cdb6e1
commit
dfd3e7ed0d
@ -1,12 +1,81 @@
|
||||
This is a stub file. This package has not yet had its complete licensing
|
||||
information compiled. Please see the individual source files for details on
|
||||
your rights to use and modify this software.
|
||||
Copyright (c) 1989 X Consortium
|
||||
|
||||
Please submit updated COPYING files to the Xorg bugzilla:
|
||||
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:
|
||||
|
||||
https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
|
||||
The above copyright notice and this permission notice shall be included
|
||||
in all copies or substantial portions of the Software.
|
||||
|
||||
All licensing questions regarding this software should be directed at the
|
||||
Xorg mailing list:
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
||||
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
http://lists.freedesktop.org/mailman/listinfo/xorg
|
||||
Except as contained in this notice, the name of the X Consortium shall
|
||||
not be used in advertising or otherwise to promote the sale, use or
|
||||
other dealings in this Software without prior written authorization
|
||||
from the X Consortium.
|
||||
|
||||
----------------------------------------
|
||||
|
||||
Copyright (c) 2000, Oracle and/or its affiliates. All rights reserved.
|
||||
|
||||
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 (including the next
|
||||
paragraph) 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 AUTHORS OR COPYRIGHT HOLDERS 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.
|
||||
|
||||
|
||||
----------------------------------------
|
||||
|
||||
get_rload.c (rwhod support) was added in 2001 by the XFree86 Project without
|
||||
a copyright notice, and is thus covered by this general notice:
|
||||
|
||||
XFree86 code without an explicit copyright is covered by the following copy-
|
||||
right/license:
|
||||
|
||||
Copyright (C) 1994-2003 The XFree86 Project, Inc. All Rights Reserved.
|
||||
|
||||
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 fur-
|
||||
nished 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, FIT-
|
||||
NESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CON-
|
||||
NECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
Except as contained in this notice, the name of the XFree86 Project shall not
|
||||
be used in advertising or otherwise to promote the sale, use or other deal-
|
||||
ings in this Software without prior written authorization from the XFree86
|
||||
Project.
|
||||
|
@ -1,41 +1,722 @@
|
||||
2007-03-21 Jeremy C. Reed <reed@reedmedia.net>
|
||||
commit 632b2054421d43ad8cc63203412d4ee0209f27e3
|
||||
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
Date: Thu Mar 22 22:43:58 2012 -0700
|
||||
|
||||
* configure.ac
|
||||
Update version for another release.
|
||||
xload 1.1.1
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
|
||||
2006-06-20 Matthieu Herrb <matthieu.herrb@laas.fr>
|
||||
commit c32c291c02cfd299d42e6d0b6560adcdabba7808
|
||||
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
Date: Tue Jan 17 20:21:41 2012 -0800
|
||||
|
||||
* xload.c:
|
||||
Check setuid() return value. Bugzilla #7116.
|
||||
Solaris: use getloadavg from libc instead of kstats
|
||||
|
||||
The simpler interface (based on the BSD function) has been in libc since
|
||||
Solaris 7, and avoids datasize bugs like the previous fix, so might as
|
||||
well use it.
|
||||
|
||||
Purge all the other ancient Solaris & SunOS support variants as well.
|
||||
|
||||
This does mean if you want to keep running xload on a Sun OS version from
|
||||
before 1998 you will need to use a branch of xload from before 2012 (such
|
||||
as the one included in those old releases).
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
|
||||
2005-12-20 Kevin E. Martin <kem-at-freedesktop-dot-org>
|
||||
commit 4a54dee95260d36d0c8b5f8a35ac905f36b36f17
|
||||
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
Date: Tue Jan 17 20:05:45 2012 -0800
|
||||
|
||||
* configure.ac:
|
||||
Update package version for X11R7 release.
|
||||
Solaris: Read avenrun_1min kstat as a uint32, not a long
|
||||
|
||||
Fixes garbage data & crashes when built as a 64-bit binary on
|
||||
Solaris SPARC, since the high 32-bits was being filled with randomness.
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
Reviewed-by: Arvind Umrao <arvind.umrao@oracle.com>
|
||||
Reviewed-by: Jay Cotton <jay.cotton@oracle.com>
|
||||
|
||||
2005-12-14 Kevin E. Martin <kem-at-freedesktop-dot-org>
|
||||
commit 1918be9695e0e912cb536373dd3da385473ab9e5
|
||||
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
Date: Tue Dec 20 18:35:17 2011 -0800
|
||||
|
||||
* configure.ac:
|
||||
Update package version number for final X11R7 release candidate.
|
||||
Remove DG/UX support
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
|
||||
2005-12-07 Kevin E. Martin <kem-at-freedesktop-dot-org>
|
||||
commit f2b4a35060e6ebe55846b62780ca01c6d519c84f
|
||||
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
Date: Tue Dec 20 18:26:38 2011 -0800
|
||||
|
||||
* Makefile.am:
|
||||
* configure.ac:
|
||||
Change to use the app-defaults default dir configured in libXt.
|
||||
Convert sprintf to snprintf
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
|
||||
2005-12-06 Kevin E. Martin <kem-at-freedesktop-dot-org>
|
||||
commit fad963fc4d1d8dc0a860ee3c7e3280a13124e296
|
||||
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
Date: Tue Dec 20 18:04:26 2011 -0800
|
||||
|
||||
* Makefile.am:
|
||||
Change *man_SOURCES ==> *man_PRE to fix autotools warnings.
|
||||
Mark domaindir variable as const char * for gcc -Wwrite-strings
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
|
||||
2005-12-03 Kevin E. Martin <kem-at-freedesktop-dot-org>
|
||||
commit 7cccec04962741b0d37bc92e580e1029b2d49849
|
||||
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
Date: Tue Dec 20 18:01:35 2011 -0800
|
||||
|
||||
* configure.ac:
|
||||
Update package version number for X11R7 RC3 release.
|
||||
Mark xload_error as noreturn
|
||||
|
||||
Silences a gcc warning
|
||||
Raises the minimum version of xproto needed to build to 7.0.17
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
|
||||
2005-10-18 Kevin E. Martin <kem-at-freedesktop-dot-org>
|
||||
commit 6ec57ead120a3d42afcb76da012109dd713f12d9
|
||||
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
Date: Tue Dec 20 17:55:39 2011 -0800
|
||||
|
||||
* configure.ac:
|
||||
Update package version number for RC1 release.
|
||||
Mark string arguments to xload_error as const char * for gcc -Wwrite-strings
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
|
||||
commit a53164911c182e73a03eb2eceaa5dfa81f4f98c3
|
||||
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||
Date: Wed Jan 19 10:06:56 2011 -0500
|
||||
|
||||
config: move man pages into their own directory
|
||||
|
||||
Use services provided by XORG_MANPAGE_SECTIONS.
|
||||
Use standard Makefile for man pages.
|
||||
|
||||
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
||||
|
||||
commit 822065fd4d359f0a0147168a3056ffe2acc485f7
|
||||
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||
Date: Thu Jan 13 17:15:36 2011 -0500
|
||||
|
||||
man: replace hard coded man page section with substitution strings
|
||||
|
||||
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
||||
|
||||
commit 26201189d66f48451bd6cc31288a38d8c7378720
|
||||
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||
Date: Thu Jan 13 11:15:47 2011 -0500
|
||||
|
||||
man: remove trailing spaces and tabs
|
||||
|
||||
Using s/[ \t]*$//
|
||||
|
||||
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
||||
|
||||
commit 6f4a03f20a9d268850727dc330e83978cdba2253
|
||||
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||
Date: Wed Jan 12 15:29:50 2011 -0500
|
||||
|
||||
config: replace deprecated AC_HELP_STRING with AS_HELP_STRING
|
||||
|
||||
This silences an Automake warning.
|
||||
|
||||
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
||||
|
||||
commit b6e677512cf4ef9999846492100824c9e2a68ab6
|
||||
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
Date: Sat Nov 20 19:37:11 2010 -0800
|
||||
|
||||
Purge RCS/CVS version tags
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
|
||||
commit 83746b56b235a0bc4d30dcfd470f6d536333a502
|
||||
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
Date: Sat Nov 20 19:33:28 2010 -0800
|
||||
|
||||
Remove ancient Domain/OS support (unifdef -Uapollo)
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
|
||||
commit a3725bfb525de82b7c27d02476a2486e1fe343fd
|
||||
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
Date: Sat Nov 20 19:31:32 2010 -0800
|
||||
|
||||
Remove ancient A/UX support (unifdef -UmacII)
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
|
||||
commit 5d8db8b359c13b8a48060cbaa0fda358913c8b36
|
||||
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
Date: Sat Nov 20 19:26:28 2010 -0800
|
||||
|
||||
config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERS
|
||||
|
||||
Regroup AC statements under the Autoconf initialization section.
|
||||
Regroup AM statements under the Automake initialization section.
|
||||
Add missing AC_CONFIG_SRCDIR
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
|
||||
commit e25648983336d4ed3b56ba3d295208f265f95ce2
|
||||
Author: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
|
||||
Date: Mon Oct 4 22:00:57 2010 -0500
|
||||
|
||||
Fix old-style function definitions on Cygwin
|
||||
|
||||
get_load.c: In function ‘InitLoadPoint’:
|
||||
get_load.c:74:6: warning: old-style function definition
|
||||
get_load.c: In function ‘GetLoadPoint’:
|
||||
get_load.c:92:6: warning: old-style function definition
|
||||
|
||||
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
|
||||
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
|
||||
Tested-by: Jon TURNEY <jon.turney@dronecode.org.uk>
|
||||
|
||||
commit 1652442c2f82d30d0ed4d9cfbd6d3725b09f4a29
|
||||
Author: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
|
||||
Date: Mon Oct 4 21:43:47 2010 -0500
|
||||
|
||||
Avoid excess Win32 includes on Cygwin
|
||||
|
||||
Fixes compilation errors due to recent w32api <winspool.h>, which is
|
||||
not needed to compile xload.
|
||||
|
||||
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
|
||||
Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
|
||||
Tested-by: Jon TURNEY <jon.turney@dronecode.org.uk>
|
||||
|
||||
commit 600c46eaccd89417a5e44e86d18f9c733af64dc9
|
||||
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
Date: Sun Sep 26 13:06:17 2010 -0700
|
||||
|
||||
xload 1.1.0
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
|
||||
commit 9a17373f8d3181b8dc2e86d9cadc04cd97f7b5e5
|
||||
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
Date: Thu Sep 23 20:49:06 2010 -0700
|
||||
|
||||
config: Remove unnecessary calls from configure.ac
|
||||
|
||||
AC_PROG_CC & AC_PROG_INSTALL are provided by XORG_DEFAULT_OPTIONS now
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
|
||||
commit 2e1374266ef546a77218ec9bc00e12de142d888a
|
||||
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||
Date: Tue Jul 20 18:45:18 2010 -0400
|
||||
|
||||
config: update AC_PREREQ statement to 2.60
|
||||
|
||||
Unrelated to the previous patches, the new value simply reflects
|
||||
the reality that the minimum level for autoconf to configure
|
||||
all x.org modules is 2.60 dated June 2006.
|
||||
|
||||
ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.60.tar.gz
|
||||
|
||||
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
||||
|
||||
commit f77024a7f7e25bf10b945a0240eb34b532fccbe7
|
||||
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
Date: Fri Aug 6 09:23:58 2010 -0700
|
||||
|
||||
Sun copyrights are now owned by Oracle
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
|
||||
commit f1dc039a28e15b20037fd0e3a359712cacf269c9
|
||||
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
Date: Thu Jul 1 18:14:35 2010 -0700
|
||||
|
||||
Xmu functions are called directly, so include it in PKG_CHECK_MODULES
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
|
||||
commit 4efb36a101d94b678fc1996b035038a1e03d5165
|
||||
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
Date: Thu Jul 1 18:11:32 2010 -0700
|
||||
|
||||
config: upgrade to util-macros 1.8 for additional man page support
|
||||
|
||||
Use MAN_SUBST now supplied in XORG_MANPAGE_SECTIONS
|
||||
The value of MAN_SUBST is the same for all X.Org packages.
|
||||
|
||||
Use AC_PROG_SED now supplied by XORG_DEFAULT_OPTIONS
|
||||
The existing statement can now be removed from the configuration file.
|
||||
|
||||
Use XORG_DEFAULT_OPTIONS provided $(SED)
|
||||
Use platform appropriate version of sed.
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
|
||||
commit c57e77c5620dbf2573e630a4eceec5dd5c5985d9
|
||||
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||
Date: Wed Mar 31 17:07:36 2010 -0400
|
||||
|
||||
config: ignore xload.po when using GETTEXT
|
||||
|
||||
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
||||
|
||||
commit a458825e9c6afe109460ebc1d0ca1fc08c6661a1
|
||||
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||
Date: Wed Mar 31 16:52:55 2010 -0400
|
||||
|
||||
config: update and relocate AX_DEFINE_DIR macro
|
||||
|
||||
Remove deprecated acinclude.m4 macro container file
|
||||
Use separate macro files as per autoconf recommendation
|
||||
Use the latest macro from GNU
|
||||
|
||||
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
||||
|
||||
commit 396dd7f191773a903dc13f476e0f968dc1645407
|
||||
Author: Matthieu Herrb <matthieu.herrb@laas.fr>
|
||||
Date: Sun Feb 14 15:20:30 2010 +0100
|
||||
|
||||
Let xload build on systems without gettext().
|
||||
|
||||
Signed-off-by: Matthieu Herrb <matthieu.herrb@laas.fr>
|
||||
|
||||
Reviewed-by: Julien Cristau <jcristau@debian.org>
|
||||
Reviewed-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||
|
||||
commit 36659aa666808e5b42f5d98bce8f84bf82e88c0e
|
||||
Author: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||
Date: Fri Jan 15 22:20:56 2010 -0800
|
||||
|
||||
Integrate gettext support with autotools build system
|
||||
|
||||
Mostly cribbed from prior work for libXpm
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||
|
||||
commit 6d96dd3d2df7d896a41d770ba380629948ead4d6
|
||||
Author: Jay Hobson <jay.hobson@sun.com>
|
||||
Date: Fri Aug 25 14:29:09 2000 -0700
|
||||
|
||||
Internationalize xload: Call gettext on strings printed to stderr
|
||||
|
||||
Originally done for Solaris 9 to fix Sun bug 4365629
|
||||
http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=4365629
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||
|
||||
commit d957cad1a453a84309cef3e30237c39d0541ecc4
|
||||
Author: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||
Date: Fri Jan 15 21:22:39 2010 -0800
|
||||
|
||||
Use automake silencer on man page generation too
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||
|
||||
commit 67b8eba82dba74f12f1ee4fac6f5ee8968b1f14c
|
||||
Author: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||
Date: Fri Jan 15 21:20:50 2010 -0800
|
||||
|
||||
Move CWARNFLAGS addition from configure.ac to Makefile.am
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||
|
||||
commit a6040d867412b88e0586665079b96c0725b0a42c
|
||||
Author: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||
Date: Fri Jan 15 21:16:53 2010 -0800
|
||||
|
||||
Raise xorg-macros requirement to 1.4
|
||||
|
||||
Needed since the changes in f5eb18cefb774c5a5d43923d21b61c180a96b8ad
|
||||
depend on the INSTALL file delivered in xorg-macros 1.4
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||
|
||||
commit 0ddbf8aa2a67fb7a6b06c00b5ce2a654bd41c8df
|
||||
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||
Date: Sat Dec 19 20:48:48 2009 -0500
|
||||
|
||||
configure.ac: use backticks rather than $() for cmd subs
|
||||
|
||||
Use "$PKG_CONFIG" rather than hard coded "pkg-config"
|
||||
|
||||
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
||||
|
||||
commit f8bd2a195bd12161ba1fe16ef3e8ac0013d6eec2
|
||||
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||
Date: Thu Nov 26 09:19:54 2009 -0500
|
||||
|
||||
Makefile.am: add ChangeLog and INSTALL on MAINTAINERCLEANFILES
|
||||
|
||||
Now that the INSTALL file is generated.
|
||||
Allows running make maintainer-clean.
|
||||
|
||||
commit f5eb18cefb774c5a5d43923d21b61c180a96b8ad
|
||||
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||
Date: Wed Oct 28 14:09:08 2009 -0400
|
||||
|
||||
INSTALL, NEWS, README or AUTHORS files are missing/incorrect #24206
|
||||
|
||||
Add missing INSTALL file. Use standard GNU file on building tarball
|
||||
README may have been updated
|
||||
Remove AUTHORS file as it is empty and no content available yet.
|
||||
Remove NEWS file as it is empty and no content available yet.
|
||||
|
||||
commit c9117984a135aab376978da41ea31aba3ce34f3b
|
||||
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||
Date: Tue Oct 27 15:07:25 2009 -0400
|
||||
|
||||
Deploy the new XORG_DEFAULT_OPTIONS #24242
|
||||
|
||||
This macro aggregate a number of existing macros that sets commmon
|
||||
X.Org components configuration options. It shields the configuration file from
|
||||
future changes.
|
||||
|
||||
commit 187d6b083f5ae87ce7d10ce1b263c9d32bcfaa73
|
||||
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||
Date: Mon Oct 26 22:08:39 2009 -0400
|
||||
|
||||
Makefile.am: ChangeLog not required: EXTRA_DIST or *CLEANFILES #24432
|
||||
|
||||
ChangeLog filename is known to Automake and requires no further
|
||||
coding in the makefile.
|
||||
|
||||
commit 038407d1c5f4ee08cca7c23476fd9dae06a0080f
|
||||
Author: Gaetan Nadon <memsize@videotron.ca>
|
||||
Date: Thu Oct 22 12:34:15 2009 -0400
|
||||
|
||||
.gitignore: use common defaults with custom section # 24239
|
||||
|
||||
Using common defaults will reduce errors and maintenance.
|
||||
Only the very small or inexistent custom section need periodic maintenance
|
||||
when the structure of the component changes. Do not edit defaults.
|
||||
|
||||
commit 141aa01f04e98d6e7ddf15726da85e3f2b8b71ab
|
||||
Author: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||
Date: Thu Oct 1 14:54:25 2009 -0700
|
||||
|
||||
Add README with pointers to mailing lists, bugzilla, & git
|
||||
|
||||
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||
|
||||
commit 68bad5a59d3619372cb4a48563f5c7423f54163d
|
||||
Author: Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>
|
||||
Date: Thu Jan 22 15:31:58 2009 -0200
|
||||
|
||||
Correct make distcheck and sparse warnings.
|
||||
|
||||
commit 0436471fd8007826d40a2f57710e9964c0768d50
|
||||
Author: Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>
|
||||
Date: Sun Mar 16 18:44:12 2008 -0300
|
||||
|
||||
Compile warning fixes.
|
||||
|
||||
Ansify some functions with K&R definitions.
|
||||
|
||||
commit b91f8e903b1004a35dfe01204852c628367475b7
|
||||
Author: James Cloos <cloos@jhcloos.com>
|
||||
Date: Wed Aug 20 10:32:51 2008 -0400
|
||||
|
||||
xaw8 is gone, use xaw7
|
||||
|
||||
commit 5c84833c7f383685763550a348a3493025948cba
|
||||
Author: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||
Date: Mon Jul 7 18:52:39 2008 -0700
|
||||
|
||||
Fill in COPYING file
|
||||
|
||||
commit e80401dc35403df68532b8e80c32452f7a7f02f3
|
||||
Author: Alan Coopersmith <alan.coopersmith@sun.com>
|
||||
Date: Mon Jul 7 18:43:26 2008 -0700
|
||||
|
||||
Update man page to note that /dev/kmem access is only on old platforms
|
||||
|
||||
commit 59281ce7182a7fb679339af89a1dc72e0695b7ab
|
||||
Author: Julien Cristau <jcristau@debian.org>
|
||||
Date: Fri May 16 14:20:03 2008 +0200
|
||||
|
||||
$(builddir) is the current directory
|
||||
|
||||
Apparently automake doesn't always export the builddir variable.
|
||||
This fixes my previous commit.
|
||||
|
||||
commit d6bf0deb5ad6b540246b23a46fa2b5d21cd9b02c
|
||||
Author: Jeremy Huddleston <jeremyhu@freedesktop.org>
|
||||
Date: Tue May 6 02:02:00 2008 -0700
|
||||
|
||||
__DARWIN__ -> __APPLE__
|
||||
https://bugs.freedesktop.org/show_bug.cgi?id=9017
|
||||
|
||||
commit d1e5eb3dff370bb7c65a62dbe3ba0822b86aecbc
|
||||
Author: Julien Cristau <jcristau@debian.org>
|
||||
Date: Sun Apr 20 19:20:51 2008 +0200
|
||||
|
||||
Fix build with builddir != srcdir
|
||||
|
||||
commit 5e806152643740057bd43869122ea8ff05a9d384
|
||||
Author: Julien Cristau <jcristau@debian.org>
|
||||
Date: Sun Apr 20 19:18:19 2008 +0200
|
||||
|
||||
Use AM_CFLAGS instead of xload_CFLAGS and remove AM_PROG_CC_C_O
|
||||
|
||||
commit 771817cc3923a0f142b941234047fa0020cb231d
|
||||
Author: Jeremy Huddleston <jeremyhu@freedesktop.org>
|
||||
Date: Thu Mar 27 20:27:49 2008 -0700
|
||||
|
||||
Added missing AM_PROG_CC_C_O
|
||||
|
||||
commit 9004465b586104fed48bb301de843003c1fa2ad0
|
||||
Author: Jeremy Huddleston <jeremyhu@freedesktop.org>
|
||||
Date: Thu Mar 27 20:07:47 2008 -0700
|
||||
|
||||
Build fix for file systems that are not case sensitive
|
||||
|
||||
commit 2d8250c1d56dc20f7afc3b3a155bcf8ac4cb7e9f
|
||||
Author: James Cloos <cloos@jhcloos.com>
|
||||
Date: Thu Dec 6 16:37:20 2007 -0500
|
||||
|
||||
Replace static ChangeLog with dist-hook to generate from git log
|
||||
|
||||
commit 5c043a1cec89e884593f541f59b8abd237d91e50
|
||||
Author: Peter Dyballa <Peter_Dyballa@Freenet.DE>
|
||||
Date: Mon Sep 24 14:13:39 2007 -0700
|
||||
|
||||
Bug #12534: nlist() needs to be handled differently in Mac OS X
|
||||
|
||||
X.Org Bugzilla #12534 <https://bugs.freedesktop.org/show_bug.cgi?id=12534>
|
||||
Patch #11704 <https://bugs.freedesktop.org/attachment.cgi?id=11704>
|
||||
|
||||
commit 91088ab94b28877ca85151c1d1cf241f8e775555
|
||||
Author: James Cloos <cloos@jhcloos.com>
|
||||
Date: Mon Sep 3 05:51:30 2007 -0400
|
||||
|
||||
Add *~ to .gitignore to skip patch/emacs droppings
|
||||
|
||||
commit 6d6757b2e0abe6811aeec72fc4835748801cdcd4
|
||||
Author: James Cloos <cloos@jhcloos.com>
|
||||
Date: Thu Aug 23 19:24:57 2007 -0400
|
||||
|
||||
Rename .cvsignore to .gitignore
|
||||
|
||||
commit 8a4ffe593e55cc618599fcd9d643d799debe546a
|
||||
Author: Jeremy C. Reed <reed@glacier.reedmedia.net>
|
||||
Date: Thu Mar 22 00:30:44 2007 -0500
|
||||
|
||||
Update version for another release.
|
||||
|
||||
commit 1dbb7df5ccec3e3d9fecded33850730486d6374d
|
||||
Author: Matthieu Herrb <matthieu.herrb@laas.fr>
|
||||
Date: Tue Jun 20 19:25:51 2006 +0000
|
||||
|
||||
Check setuid() return value. Bugzilla #7116.
|
||||
|
||||
commit 382ca2392d31870cfb4b8b01cd2751040c479f86
|
||||
Author: Kevin E Martin <kem@kem.org>
|
||||
Date: Wed Dec 21 02:29:51 2005 +0000
|
||||
|
||||
Update package version for X11R7 release.
|
||||
|
||||
commit 3d963be1c92843f29e331c7f4228473507f537ff
|
||||
Author: Adam Jackson <ajax@nwnk.net>
|
||||
Date: Mon Dec 19 16:22:45 2005 +0000
|
||||
|
||||
Stub COPYING files
|
||||
|
||||
commit d16274715e8f529a89d01d4be1e26e9f08a6565d
|
||||
Author: Kevin E Martin <kem@kem.org>
|
||||
Date: Thu Dec 15 00:24:08 2005 +0000
|
||||
|
||||
Update package version number for final X11R7 release candidate.
|
||||
|
||||
commit 93d83b89292b73fa6d1a48064e4730f43a6fce3e
|
||||
Author: Kevin E Martin <kem@kem.org>
|
||||
Date: Wed Dec 7 16:18:00 2005 +0000
|
||||
|
||||
Change to use the app-defaults default dir configured in libXt.
|
||||
|
||||
commit ade038820780c806a8f43fadf2f9c9f4df50478d
|
||||
Author: Kevin E Martin <kem@kem.org>
|
||||
Date: Tue Dec 6 22:48:23 2005 +0000
|
||||
|
||||
Change *man_SOURCES ==> *man_PRE to fix autotools warnings.
|
||||
|
||||
commit 3fd55a3ea19b8c09caa10b4a9134b4a18b240975
|
||||
Author: Kevin E Martin <kem@kem.org>
|
||||
Date: Sat Dec 3 05:49:25 2005 +0000
|
||||
|
||||
Update package version number for X11R7 RC3 release.
|
||||
|
||||
commit 9a3724aed228bbbd3294141d1a01c06fff6480f3
|
||||
Author: Alan Coopersmith <Alan.Coopersmith@sun.com>
|
||||
Date: Mon Nov 28 22:01:44 2005 +0000
|
||||
|
||||
Change *mandir targets to use new *_MAN_DIR variables set by xorg-macros.m4
|
||||
update to fix bug #5167 (Linux prefers *.1x man pages in man1 subdir)
|
||||
|
||||
commit b589edc59845fd9b86f825597af6bb33dec13934
|
||||
Author: Eric Anholt <anholt@freebsd.org>
|
||||
Date: Mon Nov 21 10:35:02 2005 +0000
|
||||
|
||||
Another pass at .cvsignores for apps.
|
||||
|
||||
commit dfd95c81cc88972565c79cb78b42e1780638a504
|
||||
Author: Eric Anholt <anholt@freebsd.org>
|
||||
Date: Sun Nov 20 22:08:53 2005 +0000
|
||||
|
||||
Add/improve .cvsignore files for apps.
|
||||
|
||||
commit 3fedcca82c2c9d55938928d25015720c8324e6a6
|
||||
Author: Kevin E Martin <kem@kem.org>
|
||||
Date: Wed Oct 19 02:47:55 2005 +0000
|
||||
|
||||
Update package version number for RC1 release.
|
||||
|
||||
commit d872304e1e6aab8cf83f09cc3090f45cc245e5fa
|
||||
Author: Alan Coopersmith <Alan.Coopersmith@sun.com>
|
||||
Date: Tue Oct 18 00:32:54 2005 +0000
|
||||
|
||||
Change default install dir for app-default files from
|
||||
$(sysconfdir)/X11/app-defaults to $(libdir)/X11/app-defaults to match
|
||||
the monolith & allow localization
|
||||
|
||||
commit 0620fa99ef09fb0401e842dfeb9aa76b8d403ac6
|
||||
Author: Alan Coopersmith <Alan.Coopersmith@sun.com>
|
||||
Date: Mon Oct 17 23:56:23 2005 +0000
|
||||
|
||||
Use @APP_MAN_SUFFIX@ instead of $(APP_MAN_SUFFIX) in macro substitutions to
|
||||
work better with BSD make
|
||||
|
||||
commit 90ecdb5eb628266037755e3b0be48f13d703b8e5
|
||||
Author: Alan Coopersmith <Alan.Coopersmith@sun.com>
|
||||
Date: Fri Oct 14 00:25:46 2005 +0000
|
||||
|
||||
Use sed to fill in variables in man page
|
||||
|
||||
commit 09af03bf3b2f573c0b58c8a5fd84af1772707c6f
|
||||
Author: Alan Coopersmith <Alan.Coopersmith@sun.com>
|
||||
Date: Sun Oct 2 21:17:48 2005 +0000
|
||||
|
||||
Bug #3811 <https://bugs.freedesktop.org/show_bug.cgi?id=3811> GNU/kFreeBSD
|
||||
support for xload & memleak (Robert Millan)
|
||||
|
||||
commit 80cf9497a8c7776e67377a0d1eb623739206b695
|
||||
Author: Alan Coopersmith <Alan.Coopersmith@sun.com>
|
||||
Date: Mon Aug 1 20:25:30 2005 +0000
|
||||
|
||||
Install man pages to section 1 instead of section m (Patch from Donnie
|
||||
Berkholz)
|
||||
|
||||
commit 5d24389cad4d0669e1ec109a84fb0315805c0e66
|
||||
Author: Kevin E Martin <kem@kem.org>
|
||||
Date: Fri Jul 29 21:22:35 2005 +0000
|
||||
|
||||
Various changes preparing packages for RC0:
|
||||
- Verify and update package version numbers as needed
|
||||
- Implement versioning scheme
|
||||
- Change bug address to point to bugzilla bug entry form
|
||||
- Disable loadable i18n in libX11 by default (use --enable-loadable-i18n to
|
||||
reenable it)
|
||||
- Fix makedepend to use pkgconfig and pass distcheck
|
||||
- Update build script to build macros first
|
||||
- Update modular Xorg version
|
||||
|
||||
commit 3fa36d6e984b2f5c2958d078ff19c1a3cf46f9b6
|
||||
Author: Alan Coopersmith <Alan.Coopersmith@sun.com>
|
||||
Date: Wed Jul 27 00:41:27 2005 +0000
|
||||
|
||||
Add check for libkstat to get load averages on Solaris
|
||||
|
||||
commit f61e34fce870f45136a2cfcb73133b63df5321af
|
||||
Author: Alan Coopersmith <Alan.Coopersmith@sun.com>
|
||||
Date: Wed Jul 27 00:34:57 2005 +0000
|
||||
|
||||
Switch xload on Solaris from libkvm to libkstat so it works with both
|
||||
32-bit and 64-bit kernels, and without group kmem. Add #include
|
||||
"config.h" for modularization
|
||||
|
||||
commit 662e42f98213df8dc834fa6be7b83e99cc07bacc
|
||||
Author: Alan Coopersmith <Alan.Coopersmith@sun.com>
|
||||
Date: Tue Jul 26 15:44:02 2005 +0000
|
||||
|
||||
Replace more GNU make-ism's with more portable macros
|
||||
|
||||
commit 52bbf03241ae94019be87858375b6e77b96ad3a6
|
||||
Author: Matthieu Herrb <matthieu.herrb@laas.fr>
|
||||
Date: Sat Jul 23 16:38:19 2005 +0000
|
||||
|
||||
fix GNU-make only app-default rule
|
||||
|
||||
commit 4cb25771597a2e1102bf5fd91e6cabf191eeecf2
|
||||
Author: Adam Jackson <ajax@nwnk.net>
|
||||
Date: Wed Jul 20 19:31:57 2005 +0000
|
||||
|
||||
Use a unique token for PKG_CHECK_MODULES. Otherwise, if you use a global
|
||||
configure cache, you cache it, and the cached value is probably wrong.
|
||||
|
||||
commit 62d4ea34f0fd64e258abb993004c8966eecc6cf7
|
||||
Author: Søren Sandmann Pedersen <sandmann@daimi.au.dk>
|
||||
Date: Tue Jul 5 22:36:58 2005 +0000
|
||||
|
||||
Build system for xload
|
||||
|
||||
commit f74edc7a9e0494657c36f34208141f6a2aa3e1f9
|
||||
Author: Egbert Eich <eich@suse.de>
|
||||
Date: Fri Apr 23 19:54:57 2004 +0000
|
||||
|
||||
Merging XORG-CURRENT into trunk
|
||||
|
||||
commit cc45a7487b867b181a5615eef75519d22f91d4f8
|
||||
Author: Egbert Eich <eich@suse.de>
|
||||
Date: Sun Mar 14 08:35:37 2004 +0000
|
||||
|
||||
Importing vendor version xf86-4_4_99_1 on Sun Mar 14 00:26:39 PST 2004
|
||||
|
||||
commit 89d070def1fb7c692443c9dc2aee49424193cf45
|
||||
Author: Egbert Eich <eich@suse.de>
|
||||
Date: Wed Mar 3 12:13:14 2004 +0000
|
||||
|
||||
Importing vendor version xf86-4_4_0 on Wed Mar 3 04:09:24 PST 2004
|
||||
|
||||
commit 90d8b0a47218ed5a024ac3b0cde9cc6bc0bb684a
|
||||
Author: Egbert Eich <eich@suse.de>
|
||||
Date: Thu Feb 26 13:36:26 2004 +0000
|
||||
|
||||
readding XFree86's cvs IDs
|
||||
|
||||
commit 9d4dadc605b80ae83864242fb3d997bd511c7205
|
||||
Author: Egbert Eich <eich@suse.de>
|
||||
Date: Thu Feb 26 09:24:14 2004 +0000
|
||||
|
||||
Importing vendor version xf86-4_3_99_903 on Wed Feb 26 01:21:00 PST 2004
|
||||
|
||||
commit 8c79399521f61d18280f0096d77338cfc4664490
|
||||
Author: Egbert Eich <eich@suse.de>
|
||||
Date: Thu Jan 29 08:09:16 2004 +0000
|
||||
|
||||
Importing vendor version xf86-012804-2330 on Thu Jan 29 00:06:33 PST 2004
|
||||
|
||||
commit 7cc0e6a6b51025d08ec9c6a17b3f514ebaa80fdc
|
||||
Author: Kaleb Keithley <kaleb@freedesktop.org>
|
||||
Date: Fri Dec 19 20:56:01 2003 +0000
|
||||
|
||||
XFree86 4.3.99.902 (RC 2)
|
||||
|
||||
commit 57ef7c68cb375b3361ff5381b494ff52c1e77807
|
||||
Author: Kaleb Keithley <kaleb@freedesktop.org>
|
||||
Date: Thu Dec 4 22:03:56 2003 +0000
|
||||
|
||||
XFree86 4.3.99.901 (RC 1)
|
||||
|
||||
commit c9e855362fe29db861bf847ec714f1b0ce3237a1
|
||||
Author: Kaleb Keithley <kaleb@freedesktop.org>
|
||||
Date: Tue Nov 25 19:29:14 2003 +0000
|
||||
|
||||
XFree86 4.3.99.16 Bring the tree up to date for the Cygwin folks
|
||||
|
||||
commit 346b7376f252cbab44456541dd917489b6b25d35
|
||||
Author: Kaleb Keithley <kaleb@freedesktop.org>
|
||||
Date: Fri Nov 14 16:49:23 2003 +0000
|
||||
|
||||
XFree86 4.3.0.1
|
||||
|
||||
commit 0f22ecbb798add2e02b586894434884765f7daae
|
||||
Author: Kaleb Keithley <kaleb@freedesktop.org>
|
||||
Date: Fri Nov 14 16:49:23 2003 +0000
|
||||
|
||||
Initial revision
|
||||
|
@ -1,6 +1,297 @@
|
||||
Installation Instructions
|
||||
*************************
|
||||
|
||||
Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
|
||||
2006, 2007, 2008 Free Software Foundation, Inc.
|
||||
|
||||
This file is free documentation; the Free Software Foundation gives
|
||||
unlimited permission to copy, distribute and modify it.
|
||||
|
||||
Basic Installation
|
||||
==================
|
||||
|
||||
Briefly, the shell commands `./configure; make; make install' should
|
||||
configure, build, and install this package. The following
|
||||
more-detailed instructions are generic; see the `README' file for
|
||||
instructions specific to this package.
|
||||
|
||||
The `configure' shell script attempts to guess correct values for
|
||||
various system-dependent variables used during compilation. It uses
|
||||
those values to create a `Makefile' in each directory of the package.
|
||||
It may also create one or more `.h' files containing system-dependent
|
||||
definitions. Finally, it creates a shell script `config.status' that
|
||||
you can run in the future to recreate the current configuration, and a
|
||||
file `config.log' containing compiler output (useful mainly for
|
||||
debugging `configure').
|
||||
|
||||
It can also use an optional file (typically called `config.cache'
|
||||
and enabled with `--cache-file=config.cache' or simply `-C') that saves
|
||||
the results of its tests to speed up reconfiguring. Caching is
|
||||
disabled by default to prevent problems with accidental use of stale
|
||||
cache files.
|
||||
|
||||
If you need to do unusual things to compile the package, please try
|
||||
to figure out how `configure' could check whether to do them, and mail
|
||||
diffs or instructions to the address given in the `README' so they can
|
||||
be considered for the next release. If you are using the cache, and at
|
||||
some point `config.cache' contains results you don't want to keep, you
|
||||
may remove or edit it.
|
||||
|
||||
The file `configure.ac' (or `configure.in') is used to create
|
||||
`configure' by a program called `autoconf'. You need `configure.ac' if
|
||||
you want to change it or regenerate `configure' using a newer version
|
||||
of `autoconf'.
|
||||
|
||||
The simplest way to compile this package is:
|
||||
|
||||
1. `cd' to the directory containing the package's source code and type
|
||||
`./configure' to configure the package for your system.
|
||||
|
||||
Running `configure' might take a while. While running, it prints
|
||||
some messages telling which features it is checking for.
|
||||
|
||||
2. Type `make' to compile the package.
|
||||
|
||||
3. Optionally, type `make check' to run any self-tests that come with
|
||||
the package.
|
||||
|
||||
4. Type `make install' to install the programs and any data files and
|
||||
documentation.
|
||||
|
||||
5. You can remove the program binaries and object files from the
|
||||
source code directory by typing `make clean'. To also remove the
|
||||
files that `configure' created (so you can compile the package for
|
||||
a different kind of computer), type `make distclean'. There is
|
||||
also a `make maintainer-clean' target, but that is intended mainly
|
||||
for the package's developers. If you use it, you may have to get
|
||||
all sorts of other programs in order to regenerate files that came
|
||||
with the distribution.
|
||||
|
||||
6. Often, you can also type `make uninstall' to remove the installed
|
||||
files again.
|
||||
|
||||
Compilers and Options
|
||||
=====================
|
||||
|
||||
Some systems require unusual options for compilation or linking that
|
||||
the `configure' script does not know about. Run `./configure --help'
|
||||
for details on some of the pertinent environment variables.
|
||||
|
||||
You can give `configure' initial values for configuration parameters
|
||||
by setting variables in the command line or in the environment. Here
|
||||
is an example:
|
||||
|
||||
./configure CC=c99 CFLAGS=-g LIBS=-lposix
|
||||
|
||||
*Note Defining Variables::, for more details.
|
||||
|
||||
Compiling For Multiple Architectures
|
||||
====================================
|
||||
|
||||
You can compile the package for more than one kind of computer at the
|
||||
same time, by placing the object files for each architecture in their
|
||||
own directory. To do this, you can use GNU `make'. `cd' to the
|
||||
directory where you want the object files and executables to go and run
|
||||
the `configure' script. `configure' automatically checks for the
|
||||
source code in the directory that `configure' is in and in `..'.
|
||||
|
||||
With a non-GNU `make', it is safer to compile the package for one
|
||||
architecture at a time in the source code directory. After you have
|
||||
installed the package for one architecture, use `make distclean' before
|
||||
reconfiguring for another architecture.
|
||||
|
||||
On MacOS X 10.5 and later systems, you can create libraries and
|
||||
executables that work on multiple system types--known as "fat" or
|
||||
"universal" binaries--by specifying multiple `-arch' options to the
|
||||
compiler but only a single `-arch' option to the preprocessor. Like
|
||||
this:
|
||||
|
||||
./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
|
||||
CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
|
||||
CPP="gcc -E" CXXCPP="g++ -E"
|
||||
|
||||
This is not guaranteed to produce working output in all cases, you
|
||||
may have to build one architecture at a time and combine the results
|
||||
using the `lipo' tool if you have problems.
|
||||
|
||||
Installation Names
|
||||
==================
|
||||
|
||||
By default, `make install' installs the package's commands under
|
||||
`/usr/local/bin', include files under `/usr/local/include', etc. You
|
||||
can specify an installation prefix other than `/usr/local' by giving
|
||||
`configure' the option `--prefix=PREFIX'.
|
||||
|
||||
You can specify separate installation prefixes for
|
||||
architecture-specific files and architecture-independent files. If you
|
||||
pass the option `--exec-prefix=PREFIX' to `configure', the package uses
|
||||
PREFIX as the prefix for installing programs and libraries.
|
||||
Documentation and other data files still use the regular prefix.
|
||||
|
||||
In addition, if you use an unusual directory layout you can give
|
||||
options like `--bindir=DIR' to specify different values for particular
|
||||
kinds of files. Run `configure --help' for a list of the directories
|
||||
you can set and what kinds of files go in them.
|
||||
|
||||
If the package supports it, you can cause programs to be installed
|
||||
with an extra prefix or suffix on their names by giving `configure' the
|
||||
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
|
||||
|
||||
Optional Features
|
||||
=================
|
||||
|
||||
Some packages pay attention to `--enable-FEATURE' options to
|
||||
`configure', where FEATURE indicates an optional part of the package.
|
||||
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
|
||||
is something like `gnu-as' or `x' (for the X Window System). The
|
||||
`README' should mention any `--enable-' and `--with-' options that the
|
||||
package recognizes.
|
||||
|
||||
For packages that use the X Window System, `configure' can usually
|
||||
find the X include and library files automatically, but if it doesn't,
|
||||
you can use the `configure' options `--x-includes=DIR' and
|
||||
`--x-libraries=DIR' to specify their locations.
|
||||
|
||||
Particular systems
|
||||
==================
|
||||
|
||||
On HP-UX, the default C compiler is not ANSI C compatible. If GNU
|
||||
CC is not installed, it is recommended to use the following options in
|
||||
order to use an ANSI C compiler:
|
||||
|
||||
./configure CC="cc -Ae"
|
||||
|
||||
and if that doesn't work, install pre-built binaries of GCC for HP-UX.
|
||||
|
||||
On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
|
||||
parse its `<wchar.h>' header file. The option `-nodtk' can be used as
|
||||
a workaround. If GNU CC is not installed, it is therefore recommended
|
||||
to try
|
||||
|
||||
./configure CC="cc"
|
||||
|
||||
and if that doesn't work, try
|
||||
|
||||
./configure CC="cc -nodtk"
|
||||
|
||||
Specifying the System Type
|
||||
==========================
|
||||
|
||||
There may be some features `configure' cannot figure out
|
||||
automatically, but needs to determine by the type of machine the package
|
||||
will run on. Usually, assuming the package is built to be run on the
|
||||
_same_ architectures, `configure' can figure that out, but if it prints
|
||||
a message saying it cannot guess the machine type, give it the
|
||||
`--build=TYPE' option. TYPE can either be a short name for the system
|
||||
type, such as `sun4', or a canonical name which has the form:
|
||||
|
||||
CPU-COMPANY-SYSTEM
|
||||
|
||||
where SYSTEM can have one of these forms:
|
||||
|
||||
OS KERNEL-OS
|
||||
|
||||
See the file `config.sub' for the possible values of each field. If
|
||||
`config.sub' isn't included in this package, then this package doesn't
|
||||
need to know the machine type.
|
||||
|
||||
If you are _building_ compiler tools for cross-compiling, you should
|
||||
use the option `--target=TYPE' to select the type of system they will
|
||||
produce code for.
|
||||
|
||||
If you want to _use_ a cross compiler, that generates code for a
|
||||
platform different from the build platform, you should specify the
|
||||
"host" platform (i.e., that on which the generated programs will
|
||||
eventually be run) with `--host=TYPE'.
|
||||
|
||||
Sharing Defaults
|
||||
================
|
||||
|
||||
If you want to set default values for `configure' scripts to share,
|
||||
you can create a site shell script called `config.site' that gives
|
||||
default values for variables like `CC', `cache_file', and `prefix'.
|
||||
`configure' looks for `PREFIX/share/config.site' if it exists, then
|
||||
`PREFIX/etc/config.site' if it exists. Or, you can set the
|
||||
`CONFIG_SITE' environment variable to the location of the site script.
|
||||
A warning: not all `configure' scripts look for a site script.
|
||||
|
||||
Defining Variables
|
||||
==================
|
||||
|
||||
Variables not defined in a site shell script can be set in the
|
||||
environment passed to `configure'. However, some packages may run
|
||||
configure again during the build, and the customized values of these
|
||||
variables may be lost. In order to avoid this problem, you should set
|
||||
them in the `configure' command line, using `VAR=value'. For example:
|
||||
|
||||
./configure CC=/usr/local2/bin/gcc
|
||||
|
||||
causes the specified `gcc' to be used as the C compiler (unless it is
|
||||
overridden in the site shell script).
|
||||
|
||||
Unfortunately, this technique does not work for `CONFIG_SHELL' due to
|
||||
an Autoconf bug. Until the bug is fixed you can use this workaround:
|
||||
|
||||
CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
|
||||
|
||||
`configure' Invocation
|
||||
======================
|
||||
|
||||
`configure' recognizes the following options to control how it
|
||||
operates.
|
||||
|
||||
`--help'
|
||||
`-h'
|
||||
Print a summary of all of the options to `configure', and exit.
|
||||
|
||||
`--help=short'
|
||||
`--help=recursive'
|
||||
Print a summary of the options unique to this package's
|
||||
`configure', and exit. The `short' variant lists options used
|
||||
only in the top level, while the `recursive' variant lists options
|
||||
also present in any nested packages.
|
||||
|
||||
`--version'
|
||||
`-V'
|
||||
Print the version of Autoconf used to generate the `configure'
|
||||
script, and exit.
|
||||
|
||||
`--cache-file=FILE'
|
||||
Enable the cache: use and save the results of the tests in FILE,
|
||||
traditionally `config.cache'. FILE defaults to `/dev/null' to
|
||||
disable caching.
|
||||
|
||||
`--config-cache'
|
||||
`-C'
|
||||
Alias for `--cache-file=config.cache'.
|
||||
|
||||
`--quiet'
|
||||
`--silent'
|
||||
`-q'
|
||||
Do not print messages saying which checks are being made. To
|
||||
suppress all normal output, redirect it to `/dev/null' (any error
|
||||
messages will still be shown).
|
||||
|
||||
`--srcdir=DIR'
|
||||
Look for the package's source code in directory DIR. Usually
|
||||
`configure' can determine that directory automatically.
|
||||
|
||||
`--prefix=DIR'
|
||||
Use DIR as the installation prefix. *Note Installation Names::
|
||||
for more details, including other options available for fine-tuning
|
||||
the installation locations.
|
||||
|
||||
`--no-create'
|
||||
`-n'
|
||||
Run the configure checks, but stop before creating any output
|
||||
files.
|
||||
|
||||
`configure' also accepts some other, not widely useful, options. Run
|
||||
`configure --help' for more details.
|
||||
|
||||
Installation Instructions
|
||||
*************************
|
||||
|
||||
Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free
|
||||
Software Foundation, Inc.
|
||||
|
||||
|
@ -19,67 +19,46 @@
|
||||
# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
# PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
SUBDIRS = man
|
||||
bin_PROGRAMS = xload
|
||||
|
||||
xload_CFLAGS = $(XLOAD_CFLAGS)
|
||||
AM_CFLAGS = $(CWARNFLAGS) $(XLOAD_CFLAGS)
|
||||
xload_LDADD = $(XLOAD_LIBS)
|
||||
|
||||
ACLOCAL_AMFLAGS = -I m4
|
||||
|
||||
xload_SOURCES = \
|
||||
get_load.c \
|
||||
get_rload.c \
|
||||
xload.c \
|
||||
xload.h
|
||||
|
||||
appman_PRE = \
|
||||
xload.man
|
||||
|
||||
# App default files (*.ad)
|
||||
# App default files
|
||||
DISTCHECK_CONFIGURE_FLAGS = --with-appdefaultdir=\$${datadir}/X11/app-defaults
|
||||
|
||||
appdefaultdir = @appdefaultdir@
|
||||
|
||||
dist_appdefault_DATA = \
|
||||
app-defaults/XLoad
|
||||
|
||||
APPDEFAULTFILES = \
|
||||
XLoad
|
||||
EXTRA_DIST = xload.bit
|
||||
MAINTAINERCLEANFILES = ChangeLog INSTALL
|
||||
|
||||
SUFFIXES = .ad
|
||||
.PHONY: ChangeLog INSTALL
|
||||
|
||||
.ad:
|
||||
cp $< $@
|
||||
INSTALL:
|
||||
$(INSTALL_CMD)
|
||||
|
||||
appdefault_DATA = $(APPDEFAULTFILES)
|
||||
ChangeLog:
|
||||
$(CHANGELOG_CMD)
|
||||
|
||||
EXTRA_DIST = $(APPDEFAULTFILES:%=%.ad) xload.bit
|
||||
dist-hook: ChangeLog INSTALL
|
||||
|
||||
CLEANFILES = $(APPDEFAULTFILES)
|
||||
if USE_GETTEXT
|
||||
noinst_DATA = xload.po
|
||||
|
||||
xload.po: $(xload_SOURCES:%=$(srcdir)/%)
|
||||
$(AM_V_GEN)xgettext -d xload -n $(xload_SOURCES:%=$(srcdir)/%)
|
||||
|
||||
appmandir = $(APP_MAN_DIR)
|
||||
|
||||
appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@)
|
||||
|
||||
EXTRA_DIST += $(appman_PRE)
|
||||
CLEANFILES += $(appman_DATA)
|
||||
|
||||
SED = sed
|
||||
|
||||
# Strings to replace in man pages
|
||||
XORGRELSTRING = @PACKAGE_STRING@
|
||||
XORGMANNAME = X Version 11
|
||||
|
||||
MAN_SUBSTS = \
|
||||
-e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
|
||||
-e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
|
||||
-e 's|__xservername__|Xorg|g' \
|
||||
-e 's|__xconfigfile__|xorg.conf|g' \
|
||||
-e 's|__projectroot__|$(prefix)|g' \
|
||||
-e 's|__apploaddir__|$(appdefaultdir)|' \
|
||||
-e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \
|
||||
-e 's|__libmansuffix__|$(LIB_MAN_SUFFIX)|g' \
|
||||
-e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \
|
||||
-e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \
|
||||
-e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g'
|
||||
|
||||
SUFFIXES += .$(APP_MAN_SUFFIX) .man
|
||||
|
||||
.man.$(APP_MAN_SUFFIX):
|
||||
sed $(MAN_SUBSTS) < $< > $@
|
||||
CLEANFILES = xload.po
|
||||
endif
|
||||
|
@ -45,9 +45,9 @@ pkgincludedir = $(includedir)/@PACKAGE@
|
||||
top_builddir = .
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
INSTALL = @INSTALL@
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
install_sh_DATA = ${SHELL} $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = ${SHELL} $(install_sh) -c
|
||||
install_sh_SCRIPT = ${SHELL} $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
@ -59,13 +59,15 @@ POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
bin_PROGRAMS = xload$(EXEEXT)
|
||||
DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
|
||||
$(srcdir)/Makefile.in $(srcdir)/config.h.in \
|
||||
$(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \
|
||||
compile config.guess config.sub depcomp install-sh missing
|
||||
DIST_COMMON = README $(am__configure_deps) $(dist_appdefault_DATA) \
|
||||
$(srcdir)/Makefile.am $(srcdir)/Makefile.in \
|
||||
$(srcdir)/config.h.in $(top_srcdir)/configure AUTHORS COPYING \
|
||||
ChangeLog INSTALL NEWS config.guess config.sub depcomp \
|
||||
install-sh missing
|
||||
subdir = .
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/ax_define_dir.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
|
||||
@ -73,12 +75,11 @@ am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
|
||||
mkinstalldirs = $(SHELL) $(install_sh) -d
|
||||
CONFIG_HEADER = config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(appdefaultdir)" \
|
||||
"$(DESTDIR)$(appmandir)"
|
||||
am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(appdefaultdir)"
|
||||
binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
|
||||
PROGRAMS = $(bin_PROGRAMS)
|
||||
am_xload_OBJECTS = xload-get_load.$(OBJEXT) xload-get_rload.$(OBJEXT) \
|
||||
xload-xload.$(OBJEXT)
|
||||
am_xload_OBJECTS = get_load.$(OBJEXT) get_rload.$(OBJEXT) \
|
||||
xload.$(OBJEXT)
|
||||
xload_OBJECTS = $(am_xload_OBJECTS)
|
||||
am__DEPENDENCIES_1 =
|
||||
xload_DEPENDENCIES = $(am__DEPENDENCIES_1)
|
||||
@ -91,17 +92,23 @@ CCLD = $(CC)
|
||||
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
|
||||
SOURCES = $(xload_SOURCES)
|
||||
DIST_SOURCES = $(xload_SOURCES)
|
||||
RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
|
||||
html-recursive info-recursive install-data-recursive \
|
||||
install-exec-recursive install-info-recursive \
|
||||
install-recursive installcheck-recursive installdirs-recursive \
|
||||
pdf-recursive ps-recursive uninstall-info-recursive \
|
||||
uninstall-recursive
|
||||
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
||||
am__vpath_adj = case $$p in \
|
||||
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
*) f=$$p;; \
|
||||
esac;
|
||||
am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
|
||||
appdefaultDATA_INSTALL = $(INSTALL_DATA)
|
||||
appmanDATA_INSTALL = $(INSTALL_DATA)
|
||||
DATA = $(appdefault_DATA) $(appman_DATA)
|
||||
dist_appdefaultDATA_INSTALL = $(INSTALL_DATA)
|
||||
DATA = $(dist_appdefault_DATA) $(noinst_DATA)
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
DIST_SUBDIRS = $(SUBDIRS)
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
distdir = $(PACKAGE)-$(VERSION)
|
||||
top_distdir = $(distdir)
|
||||
@ -119,6 +126,7 @@ ADMIN_MAN_SUFFIX = @ADMIN_MAN_SUFFIX@
|
||||
AMDEP_FALSE = @AMDEP_FALSE@
|
||||
AMDEP_TRUE = @AMDEP_TRUE@
|
||||
AMTAR = @AMTAR@
|
||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||
APPDEFS_CFLAGS = @APPDEFS_CFLAGS@
|
||||
APPDEFS_LIBS = @APPDEFS_LIBS@
|
||||
APP_MAN_DIR = @APP_MAN_DIR@
|
||||
@ -127,10 +135,14 @@ AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
BASE_CFLAGS = @BASE_CFLAGS@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CHANGELOG_CMD = @CHANGELOG_CMD@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CWARNFLAGS = @CWARNFLAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
@ -139,9 +151,12 @@ DRIVER_MAN_SUFFIX = @DRIVER_MAN_SUFFIX@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
FILE_MAN_DIR = @FILE_MAN_DIR@
|
||||
FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@
|
||||
GREP = @GREP@
|
||||
INSTALL_CMD = @INSTALL_CMD@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
@ -151,24 +166,13 @@ LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIB_MAN_DIR = @LIB_MAN_DIR@
|
||||
LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@
|
||||
LOCALEDIR = @LOCALEDIR@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
MAINT = @MAINT@
|
||||
MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
|
||||
MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MAN_SUBSTS = \
|
||||
-e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
|
||||
-e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
|
||||
-e 's|__xservername__|Xorg|g' \
|
||||
-e 's|__xconfigfile__|xorg.conf|g' \
|
||||
-e 's|__projectroot__|$(prefix)|g' \
|
||||
-e 's|__apploaddir__|$(appdefaultdir)|' \
|
||||
-e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \
|
||||
-e 's|__libmansuffix__|$(LIB_MAN_SUFFIX)|g' \
|
||||
-e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \
|
||||
-e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \
|
||||
-e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g'
|
||||
|
||||
MAN_SUBSTS = @MAN_SUBSTS@
|
||||
MISC_MAN_DIR = @MISC_MAN_DIR@
|
||||
MISC_MAN_SUFFIX = @MISC_MAN_SUFFIX@
|
||||
OBJEXT = @OBJEXT@
|
||||
@ -180,10 +184,13 @@ PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
SED = sed
|
||||
SED = @SED@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
STRICT_CFLAGS = @STRICT_CFLAGS@
|
||||
STRIP = @STRIP@
|
||||
USE_GETTEXT_FALSE = @USE_GETTEXT_FALSE@
|
||||
USE_GETTEXT_TRUE = @USE_GETTEXT_TRUE@
|
||||
VERSION = @VERSION@
|
||||
XLOAD_CFLAGS = @XLOAD_CFLAGS@
|
||||
XLOAD_LIBS = @XLOAD_LIBS@
|
||||
@ -196,8 +203,6 @@ am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
|
||||
# App default files (*.ad)
|
||||
appdefaultdir = @appdefaultdir@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
@ -234,50 +239,46 @@ sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
sysconfdir = @sysconfdir@
|
||||
target_alias = @target_alias@
|
||||
xload_CFLAGS = $(XLOAD_CFLAGS)
|
||||
SUBDIRS = man
|
||||
AM_CFLAGS = $(CWARNFLAGS) $(XLOAD_CFLAGS)
|
||||
xload_LDADD = $(XLOAD_LIBS)
|
||||
ACLOCAL_AMFLAGS = -I m4
|
||||
xload_SOURCES = \
|
||||
get_load.c \
|
||||
get_rload.c \
|
||||
xload.c \
|
||||
xload.h
|
||||
|
||||
appman_PRE = \
|
||||
xload.man
|
||||
|
||||
APPDEFAULTFILES = \
|
||||
XLoad
|
||||
# App default files
|
||||
DISTCHECK_CONFIGURE_FLAGS = --with-appdefaultdir=\$${datadir}/X11/app-defaults
|
||||
dist_appdefault_DATA = \
|
||||
app-defaults/XLoad
|
||||
|
||||
SUFFIXES = .ad .$(APP_MAN_SUFFIX) .man
|
||||
appdefault_DATA = $(APPDEFAULTFILES)
|
||||
EXTRA_DIST = $(APPDEFAULTFILES:%=%.ad) xload.bit $(appman_PRE)
|
||||
CLEANFILES = $(APPDEFAULTFILES) $(appman_DATA)
|
||||
appmandir = $(APP_MAN_DIR)
|
||||
appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@)
|
||||
|
||||
# Strings to replace in man pages
|
||||
XORGRELSTRING = @PACKAGE_STRING@
|
||||
XORGMANNAME = X Version 11
|
||||
EXTRA_DIST = xload.bit
|
||||
MAINTAINERCLEANFILES = ChangeLog INSTALL
|
||||
@USE_GETTEXT_TRUE@noinst_DATA = xload.po
|
||||
@USE_GETTEXT_TRUE@CLEANFILES = xload.po
|
||||
all: config.h
|
||||
$(MAKE) $(AM_MAKEFLAGS) all-am
|
||||
$(MAKE) $(AM_MAKEFLAGS) all-recursive
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .ad .$(APP_MAN_SUFFIX) .man .c .o .obj
|
||||
.SUFFIXES: .c .o .obj
|
||||
am--refresh:
|
||||
@:
|
||||
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
|
||||
cd $(srcdir) && $(AUTOMAKE) --gnu \
|
||||
echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \
|
||||
cd $(srcdir) && $(AUTOMAKE) --foreign \
|
||||
&& exit 0; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
|
||||
cd $(top_srcdir) && \
|
||||
$(AUTOMAKE) --gnu Makefile
|
||||
$(AUTOMAKE) --foreign Makefile
|
||||
.PRECIOUS: Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
@ -346,9 +347,9 @@ mostlyclean-compile:
|
||||
distclean-compile:
|
||||
-rm -f *.tab.c
|
||||
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xload-get_load.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xload-get_rload.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xload-xload.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get_load.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get_rload.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xload.Po@am__quote@
|
||||
|
||||
.c.o:
|
||||
@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
|
||||
@ -363,82 +364,94 @@ distclean-compile:
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
|
||||
|
||||
xload-get_load.o: get_load.c
|
||||
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xload_CFLAGS) $(CFLAGS) -MT xload-get_load.o -MD -MP -MF "$(DEPDIR)/xload-get_load.Tpo" -c -o xload-get_load.o `test -f 'get_load.c' || echo '$(srcdir)/'`get_load.c; \
|
||||
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/xload-get_load.Tpo" "$(DEPDIR)/xload-get_load.Po"; else rm -f "$(DEPDIR)/xload-get_load.Tpo"; exit 1; fi
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='get_load.c' object='xload-get_load.o' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xload_CFLAGS) $(CFLAGS) -c -o xload-get_load.o `test -f 'get_load.c' || echo '$(srcdir)/'`get_load.c
|
||||
|
||||
xload-get_load.obj: get_load.c
|
||||
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xload_CFLAGS) $(CFLAGS) -MT xload-get_load.obj -MD -MP -MF "$(DEPDIR)/xload-get_load.Tpo" -c -o xload-get_load.obj `if test -f 'get_load.c'; then $(CYGPATH_W) 'get_load.c'; else $(CYGPATH_W) '$(srcdir)/get_load.c'; fi`; \
|
||||
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/xload-get_load.Tpo" "$(DEPDIR)/xload-get_load.Po"; else rm -f "$(DEPDIR)/xload-get_load.Tpo"; exit 1; fi
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='get_load.c' object='xload-get_load.obj' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xload_CFLAGS) $(CFLAGS) -c -o xload-get_load.obj `if test -f 'get_load.c'; then $(CYGPATH_W) 'get_load.c'; else $(CYGPATH_W) '$(srcdir)/get_load.c'; fi`
|
||||
|
||||
xload-get_rload.o: get_rload.c
|
||||
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xload_CFLAGS) $(CFLAGS) -MT xload-get_rload.o -MD -MP -MF "$(DEPDIR)/xload-get_rload.Tpo" -c -o xload-get_rload.o `test -f 'get_rload.c' || echo '$(srcdir)/'`get_rload.c; \
|
||||
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/xload-get_rload.Tpo" "$(DEPDIR)/xload-get_rload.Po"; else rm -f "$(DEPDIR)/xload-get_rload.Tpo"; exit 1; fi
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='get_rload.c' object='xload-get_rload.o' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xload_CFLAGS) $(CFLAGS) -c -o xload-get_rload.o `test -f 'get_rload.c' || echo '$(srcdir)/'`get_rload.c
|
||||
|
||||
xload-get_rload.obj: get_rload.c
|
||||
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xload_CFLAGS) $(CFLAGS) -MT xload-get_rload.obj -MD -MP -MF "$(DEPDIR)/xload-get_rload.Tpo" -c -o xload-get_rload.obj `if test -f 'get_rload.c'; then $(CYGPATH_W) 'get_rload.c'; else $(CYGPATH_W) '$(srcdir)/get_rload.c'; fi`; \
|
||||
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/xload-get_rload.Tpo" "$(DEPDIR)/xload-get_rload.Po"; else rm -f "$(DEPDIR)/xload-get_rload.Tpo"; exit 1; fi
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='get_rload.c' object='xload-get_rload.obj' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xload_CFLAGS) $(CFLAGS) -c -o xload-get_rload.obj `if test -f 'get_rload.c'; then $(CYGPATH_W) 'get_rload.c'; else $(CYGPATH_W) '$(srcdir)/get_rload.c'; fi`
|
||||
|
||||
xload-xload.o: xload.c
|
||||
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xload_CFLAGS) $(CFLAGS) -MT xload-xload.o -MD -MP -MF "$(DEPDIR)/xload-xload.Tpo" -c -o xload-xload.o `test -f 'xload.c' || echo '$(srcdir)/'`xload.c; \
|
||||
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/xload-xload.Tpo" "$(DEPDIR)/xload-xload.Po"; else rm -f "$(DEPDIR)/xload-xload.Tpo"; exit 1; fi
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='xload.c' object='xload-xload.o' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xload_CFLAGS) $(CFLAGS) -c -o xload-xload.o `test -f 'xload.c' || echo '$(srcdir)/'`xload.c
|
||||
|
||||
xload-xload.obj: xload.c
|
||||
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xload_CFLAGS) $(CFLAGS) -MT xload-xload.obj -MD -MP -MF "$(DEPDIR)/xload-xload.Tpo" -c -o xload-xload.obj `if test -f 'xload.c'; then $(CYGPATH_W) 'xload.c'; else $(CYGPATH_W) '$(srcdir)/xload.c'; fi`; \
|
||||
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/xload-xload.Tpo" "$(DEPDIR)/xload-xload.Po"; else rm -f "$(DEPDIR)/xload-xload.Tpo"; exit 1; fi
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='xload.c' object='xload-xload.obj' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xload_CFLAGS) $(CFLAGS) -c -o xload-xload.obj `if test -f 'xload.c'; then $(CYGPATH_W) 'xload.c'; else $(CYGPATH_W) '$(srcdir)/xload.c'; fi`
|
||||
uninstall-info-am:
|
||||
install-appdefaultDATA: $(appdefault_DATA)
|
||||
install-dist_appdefaultDATA: $(dist_appdefault_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(appdefaultdir)" || $(mkdir_p) "$(DESTDIR)$(appdefaultdir)"
|
||||
@list='$(appdefault_DATA)'; for p in $$list; do \
|
||||
@list='$(dist_appdefault_DATA)'; for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
f=$(am__strip_dir) \
|
||||
echo " $(appdefaultDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(appdefaultdir)/$$f'"; \
|
||||
$(appdefaultDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(appdefaultdir)/$$f"; \
|
||||
echo " $(dist_appdefaultDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(appdefaultdir)/$$f'"; \
|
||||
$(dist_appdefaultDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(appdefaultdir)/$$f"; \
|
||||
done
|
||||
|
||||
uninstall-appdefaultDATA:
|
||||
uninstall-dist_appdefaultDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(appdefault_DATA)'; for p in $$list; do \
|
||||
@list='$(dist_appdefault_DATA)'; for p in $$list; do \
|
||||
f=$(am__strip_dir) \
|
||||
echo " rm -f '$(DESTDIR)$(appdefaultdir)/$$f'"; \
|
||||
rm -f "$(DESTDIR)$(appdefaultdir)/$$f"; \
|
||||
done
|
||||
install-appmanDATA: $(appman_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(appmandir)" || $(mkdir_p) "$(DESTDIR)$(appmandir)"
|
||||
@list='$(appman_DATA)'; for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
f=$(am__strip_dir) \
|
||||
echo " $(appmanDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(appmandir)/$$f'"; \
|
||||
$(appmanDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(appmandir)/$$f"; \
|
||||
done
|
||||
|
||||
uninstall-appmanDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(appman_DATA)'; for p in $$list; do \
|
||||
f=$(am__strip_dir) \
|
||||
echo " rm -f '$(DESTDIR)$(appmandir)/$$f'"; \
|
||||
rm -f "$(DESTDIR)$(appmandir)/$$f"; \
|
||||
# This directory's subdirectories are mostly independent; you can cd
|
||||
# into them and run `make' without going through this Makefile.
|
||||
# To change the values of `make' variables: instead of editing Makefiles,
|
||||
# (1) if the variable is set in `config.status', edit `config.status'
|
||||
# (which will cause the Makefiles to be regenerated when you run `make');
|
||||
# (2) otherwise, pass the desired values on the `make' command line.
|
||||
$(RECURSIVE_TARGETS):
|
||||
@failcom='exit 1'; \
|
||||
for f in x $$MAKEFLAGS; do \
|
||||
case $$f in \
|
||||
*=* | --[!k]*);; \
|
||||
*k*) failcom='fail=yes';; \
|
||||
esac; \
|
||||
done; \
|
||||
dot_seen=no; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
dot_seen=yes; \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| eval $$failcom; \
|
||||
done; \
|
||||
if test "$$dot_seen" = "no"; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
|
||||
fi; test -z "$$fail"
|
||||
|
||||
mostlyclean-recursive clean-recursive distclean-recursive \
|
||||
maintainer-clean-recursive:
|
||||
@failcom='exit 1'; \
|
||||
for f in x $$MAKEFLAGS; do \
|
||||
case $$f in \
|
||||
*=* | --[!k]*);; \
|
||||
*k*) failcom='fail=yes';; \
|
||||
esac; \
|
||||
done; \
|
||||
dot_seen=no; \
|
||||
case "$@" in \
|
||||
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
|
||||
*) list='$(SUBDIRS)' ;; \
|
||||
esac; \
|
||||
rev=''; for subdir in $$list; do \
|
||||
if test "$$subdir" = "."; then :; else \
|
||||
rev="$$subdir $$rev"; \
|
||||
fi; \
|
||||
done; \
|
||||
rev="$$rev ."; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
for subdir in $$rev; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| eval $$failcom; \
|
||||
done && test -z "$$fail"
|
||||
tags-recursive:
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
|
||||
done
|
||||
ctags-recursive:
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
|
||||
done
|
||||
|
||||
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||
@ -451,10 +464,23 @@ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||
mkid -fID $$unique
|
||||
tags: TAGS
|
||||
|
||||
TAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
|
||||
TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
|
||||
include_option=--etags-include; \
|
||||
empty_fix=.; \
|
||||
else \
|
||||
include_option=--include; \
|
||||
empty_fix=; \
|
||||
fi; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test ! -f $$subdir/TAGS || \
|
||||
tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
|
||||
fi; \
|
||||
done; \
|
||||
list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
@ -467,7 +493,7 @@ TAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
|
||||
$$tags $$unique; \
|
||||
fi
|
||||
ctags: CTAGS
|
||||
CTAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
|
||||
CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
@ -492,6 +518,7 @@ distclean-tags:
|
||||
distdir: $(DISTFILES)
|
||||
$(am__remove_distdir)
|
||||
mkdir $(distdir)
|
||||
$(mkdir_p) $(distdir)/app-defaults $(distdir)/m4
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
|
||||
list='$(DISTFILES)'; for file in $$list; do \
|
||||
@ -518,6 +545,24 @@ distdir: $(DISTFILES)
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test -d "$(distdir)/$$subdir" \
|
||||
|| $(mkdir_p) "$(distdir)/$$subdir" \
|
||||
|| exit 1; \
|
||||
distdir=`$(am__cd) $(distdir) && pwd`; \
|
||||
top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
|
||||
(cd $$subdir && \
|
||||
$(MAKE) $(AM_MAKEFLAGS) \
|
||||
top_distdir="$$top_distdir" \
|
||||
distdir="$$distdir/$$subdir" \
|
||||
distdir) \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
$(MAKE) $(AM_MAKEFLAGS) \
|
||||
top_distdir="$(top_distdir)" distdir="$(distdir)" \
|
||||
dist-hook
|
||||
-find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
|
||||
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
|
||||
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
|
||||
@ -616,21 +661,22 @@ distcleancheck: distclean
|
||||
$(distcleancheck_listfiles) ; \
|
||||
exit 1; } >&2
|
||||
check-am: all-am
|
||||
check: check-am
|
||||
check: check-recursive
|
||||
all-am: Makefile $(PROGRAMS) $(DATA) config.h
|
||||
installdirs:
|
||||
for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(appdefaultdir)" "$(DESTDIR)$(appmandir)"; do \
|
||||
installdirs: installdirs-recursive
|
||||
installdirs-am:
|
||||
for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(appdefaultdir)"; do \
|
||||
test -z "$$dir" || $(mkdir_p) "$$dir"; \
|
||||
done
|
||||
install: install-am
|
||||
install-exec: install-exec-am
|
||||
install-data: install-data-am
|
||||
uninstall: uninstall-am
|
||||
install: install-recursive
|
||||
install-exec: install-exec-recursive
|
||||
install-data: install-data-recursive
|
||||
uninstall: uninstall-recursive
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-am
|
||||
installcheck: installcheck-recursive
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
@ -647,80 +693,93 @@ distclean-generic:
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-am
|
||||
-test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
|
||||
clean: clean-recursive
|
||||
|
||||
clean-am: clean-binPROGRAMS clean-generic mostlyclean-am
|
||||
|
||||
distclean: distclean-am
|
||||
distclean: distclean-recursive
|
||||
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
||||
-rm -rf ./$(DEPDIR)
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-compile distclean-generic \
|
||||
distclean-hdr distclean-tags
|
||||
|
||||
dvi: dvi-am
|
||||
dvi: dvi-recursive
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-am
|
||||
html: html-recursive
|
||||
|
||||
info: info-am
|
||||
info: info-recursive
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am: install-appdefaultDATA install-appmanDATA
|
||||
install-data-am: install-dist_appdefaultDATA
|
||||
|
||||
install-exec-am: install-binPROGRAMS
|
||||
|
||||
install-info: install-info-am
|
||||
install-info: install-info-recursive
|
||||
|
||||
install-man:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-am
|
||||
maintainer-clean: maintainer-clean-recursive
|
||||
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
||||
-rm -rf $(top_srcdir)/autom4te.cache
|
||||
-rm -rf ./$(DEPDIR)
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
mostlyclean: mostlyclean-recursive
|
||||
|
||||
mostlyclean-am: mostlyclean-compile mostlyclean-generic
|
||||
|
||||
pdf: pdf-am
|
||||
pdf: pdf-recursive
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-am
|
||||
ps: ps-recursive
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am: uninstall-appdefaultDATA uninstall-appmanDATA \
|
||||
uninstall-binPROGRAMS uninstall-info-am
|
||||
uninstall-am: uninstall-binPROGRAMS uninstall-dist_appdefaultDATA \
|
||||
uninstall-info-am
|
||||
|
||||
.PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \
|
||||
clean-binPROGRAMS clean-generic ctags dist dist-all dist-bzip2 \
|
||||
dist-gzip dist-shar dist-tarZ dist-zip distcheck distclean \
|
||||
uninstall-info: uninstall-info-recursive
|
||||
|
||||
.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
|
||||
check-am clean clean-binPROGRAMS clean-generic clean-recursive \
|
||||
ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
|
||||
dist-hook dist-shar dist-tarZ dist-zip distcheck distclean \
|
||||
distclean-compile distclean-generic distclean-hdr \
|
||||
distclean-tags distcleancheck distdir distuninstallcheck dvi \
|
||||
dvi-am html html-am info info-am install install-am \
|
||||
install-appdefaultDATA install-appmanDATA install-binPROGRAMS \
|
||||
install-data install-data-am install-exec install-exec-am \
|
||||
install-info install-info-am install-man install-strip \
|
||||
installcheck installcheck-am installdirs maintainer-clean \
|
||||
maintainer-clean-generic mostlyclean mostlyclean-compile \
|
||||
mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \
|
||||
uninstall-am uninstall-appdefaultDATA uninstall-appmanDATA \
|
||||
uninstall-binPROGRAMS uninstall-info-am
|
||||
distclean-recursive distclean-tags distcleancheck distdir \
|
||||
distuninstallcheck dvi dvi-am html html-am info info-am \
|
||||
install install-am install-binPROGRAMS install-data \
|
||||
install-data-am install-dist_appdefaultDATA install-exec \
|
||||
install-exec-am install-info install-info-am install-man \
|
||||
install-strip installcheck installcheck-am installdirs \
|
||||
installdirs-am maintainer-clean maintainer-clean-generic \
|
||||
maintainer-clean-recursive mostlyclean mostlyclean-compile \
|
||||
mostlyclean-generic mostlyclean-recursive pdf pdf-am ps ps-am \
|
||||
tags tags-recursive uninstall uninstall-am \
|
||||
uninstall-binPROGRAMS uninstall-dist_appdefaultDATA \
|
||||
uninstall-info-am
|
||||
|
||||
|
||||
.ad:
|
||||
cp $< $@
|
||||
.PHONY: ChangeLog INSTALL
|
||||
|
||||
.man.$(APP_MAN_SUFFIX):
|
||||
sed $(MAN_SUBSTS) < $< > $@
|
||||
INSTALL:
|
||||
$(INSTALL_CMD)
|
||||
|
||||
ChangeLog:
|
||||
$(CHANGELOG_CMD)
|
||||
|
||||
dist-hook: ChangeLog INSTALL
|
||||
|
||||
@USE_GETTEXT_TRUE@xload.po: $(xload_SOURCES:%=$(srcdir)/%)
|
||||
@USE_GETTEXT_TRUE@ $(AM_V_GEN)xgettext -d xload -n $(xload_SOURCES:%=$(srcdir)/%)
|
||||
# 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,0 +1,25 @@
|
||||
xload displays a periodically updating histogram of the system load average.
|
||||
|
||||
All questions regarding this software should be directed at the
|
||||
Xorg mailing list:
|
||||
|
||||
http://lists.freedesktop.org/mailman/listinfo/xorg
|
||||
|
||||
Please submit bug reports to the Xorg bugzilla:
|
||||
|
||||
https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
|
||||
|
||||
The master development code repository can be found at:
|
||||
|
||||
git://anongit.freedesktop.org/git/xorg/app/xload
|
||||
|
||||
http://cgit.freedesktop.org/xorg/app/xload
|
||||
|
||||
For patch submission instructions, see:
|
||||
|
||||
http://www.x.org/wiki/Development/Documentation/SubmittingPatches
|
||||
|
||||
For more information on the git code manager, see:
|
||||
|
||||
http://wiki.x.org/wiki/GitPage
|
||||
|
860
app/xload/aclocal.m4
vendored
860
app/xload/aclocal.m4
vendored
File diff suppressed because it is too large
Load Diff
@ -1,142 +0,0 @@
|
||||
#! /bin/sh
|
||||
# Wrapper for compilers which do not understand `-c -o'.
|
||||
|
||||
scriptversion=2005-05-14.22
|
||||
|
||||
# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||
# Written by Tom Tromey <tromey@cygnus.com>.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
# As a special exception to the GNU General Public License, if you
|
||||
# distribute this file as part of a program that contains a
|
||||
# configuration script generated by Autoconf, you may include it under
|
||||
# the same distribution terms that you use for the rest of that program.
|
||||
|
||||
# This file is maintained in Automake, please report
|
||||
# bugs to <bug-automake@gnu.org> or send patches to
|
||||
# <automake-patches@gnu.org>.
|
||||
|
||||
case $1 in
|
||||
'')
|
||||
echo "$0: No command. Try \`$0 --help' for more information." 1>&2
|
||||
exit 1;
|
||||
;;
|
||||
-h | --h*)
|
||||
cat <<\EOF
|
||||
Usage: compile [--help] [--version] PROGRAM [ARGS]
|
||||
|
||||
Wrapper for compilers which do not understand `-c -o'.
|
||||
Remove `-o dest.o' from ARGS, run PROGRAM with the remaining
|
||||
arguments, and rename the output as expected.
|
||||
|
||||
If you are trying to build a whole package this is not the
|
||||
right script to run: please start by reading the file `INSTALL'.
|
||||
|
||||
Report bugs to <bug-automake@gnu.org>.
|
||||
EOF
|
||||
exit $?
|
||||
;;
|
||||
-v | --v*)
|
||||
echo "compile $scriptversion"
|
||||
exit $?
|
||||
;;
|
||||
esac
|
||||
|
||||
ofile=
|
||||
cfile=
|
||||
eat=
|
||||
|
||||
for arg
|
||||
do
|
||||
if test -n "$eat"; then
|
||||
eat=
|
||||
else
|
||||
case $1 in
|
||||
-o)
|
||||
# configure might choose to run compile as `compile cc -o foo foo.c'.
|
||||
# So we strip `-o arg' only if arg is an object.
|
||||
eat=1
|
||||
case $2 in
|
||||
*.o | *.obj)
|
||||
ofile=$2
|
||||
;;
|
||||
*)
|
||||
set x "$@" -o "$2"
|
||||
shift
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
*.c)
|
||||
cfile=$1
|
||||
set x "$@" "$1"
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
set x "$@" "$1"
|
||||
shift
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
shift
|
||||
done
|
||||
|
||||
if test -z "$ofile" || test -z "$cfile"; then
|
||||
# If no `-o' option was seen then we might have been invoked from a
|
||||
# pattern rule where we don't need one. That is ok -- this is a
|
||||
# normal compilation that the losing compiler can handle. If no
|
||||
# `.c' file was seen then we are probably linking. That is also
|
||||
# ok.
|
||||
exec "$@"
|
||||
fi
|
||||
|
||||
# Name of file we expect compiler to create.
|
||||
cofile=`echo "$cfile" | sed -e 's|^.*/||' -e 's/\.c$/.o/'`
|
||||
|
||||
# Create the lock directory.
|
||||
# Note: use `[/.-]' here to ensure that we don't use the same name
|
||||
# that we are using for the .o file. Also, base the name on the expected
|
||||
# object file name, since that is what matters with a parallel build.
|
||||
lockdir=`echo "$cofile" | sed -e 's|[/.-]|_|g'`.d
|
||||
while true; do
|
||||
if mkdir "$lockdir" >/dev/null 2>&1; then
|
||||
break
|
||||
fi
|
||||
sleep 1
|
||||
done
|
||||
# FIXME: race condition here if user kills between mkdir and trap.
|
||||
trap "rmdir '$lockdir'; exit 1" 1 2 15
|
||||
|
||||
# Run the compile.
|
||||
"$@"
|
||||
ret=$?
|
||||
|
||||
if test -f "$cofile"; then
|
||||
mv "$cofile" "$ofile"
|
||||
elif test -f "${cofile}bj"; then
|
||||
mv "${cofile}bj" "$ofile"
|
||||
fi
|
||||
|
||||
rmdir "$lockdir"
|
||||
exit $ret
|
||||
|
||||
# Local Variables:
|
||||
# mode: shell-script
|
||||
# sh-indentation: 2
|
||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||
# time-stamp-start: "scriptversion="
|
||||
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||
# time-stamp-end: "$"
|
||||
# End:
|
@ -1,7 +1,40 @@
|
||||
/* config.h.in. Generated from configure.ac by autoheader. */
|
||||
|
||||
/* Define to 1 if you have the `kstat' library (-lkstat). */
|
||||
#undef HAVE_LIBKSTAT
|
||||
/* Define to 1 if you have the `getloadavg' function. */
|
||||
#undef HAVE_GETLOADAVG
|
||||
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||
#undef HAVE_INTTYPES_H
|
||||
|
||||
/* Define to 1 if you have the <memory.h> header file. */
|
||||
#undef HAVE_MEMORY_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 <sys/loadavg.h> header file. */
|
||||
#undef HAVE_SYS_LOADAVG_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/types.h> header file. */
|
||||
#undef HAVE_SYS_TYPES_H
|
||||
|
||||
/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#undef HAVE_UNISTD_H
|
||||
|
||||
/* Location of translated messages */
|
||||
#undef LOCALEDIR
|
||||
|
||||
/* Name of package */
|
||||
#undef PACKAGE
|
||||
@ -30,5 +63,43 @@
|
||||
/* Patch version of this package */
|
||||
#undef PACKAGE_VERSION_PATCHLEVEL
|
||||
|
||||
/* Define to 1 if you have the ANSI C header files. */
|
||||
#undef STDC_HEADERS
|
||||
|
||||
/* Define to 1 if you want to use the gettext() function. */
|
||||
#undef USE_GETTEXT
|
||||
|
||||
/* Version number of package */
|
||||
#undef VERSION
|
||||
|
||||
/* Define to 1 if on MINIX. */
|
||||
#undef _MINIX
|
||||
|
||||
/* Define to 2 if the system does not provide POSIX.1 features except with
|
||||
this defined. */
|
||||
#undef _POSIX_1_SOURCE
|
||||
|
||||
/* Define to 1 if you need to in order for `stat' and other things to work. */
|
||||
#undef _POSIX_SOURCE
|
||||
|
||||
/* Enable extensions on AIX 3, Interix. */
|
||||
#ifndef _ALL_SOURCE
|
||||
# undef _ALL_SOURCE
|
||||
#endif
|
||||
/* Enable GNU extensions on systems that have them. */
|
||||
#ifndef _GNU_SOURCE
|
||||
# undef _GNU_SOURCE
|
||||
#endif
|
||||
/* Enable threading extensions on Solaris. */
|
||||
#ifndef _POSIX_PTHREAD_SEMANTICS
|
||||
# undef _POSIX_PTHREAD_SEMANTICS
|
||||
#endif
|
||||
/* Enable extensions on HP NonStop. */
|
||||
#ifndef _TANDEM_SOURCE
|
||||
# undef _TANDEM_SOURCE
|
||||
#endif
|
||||
/* Enable general extensions on Solaris. */
|
||||
#ifndef __EXTENSIONS__
|
||||
# undef __EXTENSIONS__
|
||||
#endif
|
||||
|
||||
|
12843
app/xload/configure
vendored
12843
app/xload/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -21,29 +21,65 @@ dnl PERFORMANCE OF THIS SOFTWARE.
|
||||
dnl
|
||||
dnl Process this file with autoconf to create configure.
|
||||
|
||||
AC_PREREQ([2.57])
|
||||
AC_INIT(xload,[1.0.2], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],xload)
|
||||
AM_INIT_AUTOMAKE([dist-bzip2])
|
||||
# Initialize Autoconf
|
||||
AC_PREREQ([2.60])
|
||||
AC_INIT([xload], [1.1.1],
|
||||
[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [xload])
|
||||
AC_CONFIG_MACRO_DIR([m4])
|
||||
AC_CONFIG_SRCDIR([Makefile.am])
|
||||
AC_CONFIG_HEADERS([config.h])
|
||||
AC_USE_SYSTEM_EXTENSIONS
|
||||
|
||||
# Initialize Automake
|
||||
AM_INIT_AUTOMAKE([foreign dist-bzip2])
|
||||
AM_MAINTAINER_MODE
|
||||
|
||||
AM_CONFIG_HEADER(config.h)
|
||||
# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
|
||||
m4_ifndef([XORG_MACROS_VERSION],
|
||||
[m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
|
||||
XORG_MACROS_VERSION(1.8)
|
||||
XORG_DEFAULT_OPTIONS
|
||||
|
||||
# Internationalization & localization support
|
||||
AC_SEARCH_LIBS([gettext], [intl], [USE_GETTEXT="yes"], [USE_GETTEXT="no"])
|
||||
AC_MSG_CHECKING([where to install localized messages])
|
||||
AC_ARG_WITH([localedir], AS_HELP_STRING([--with-localedir=<path>],
|
||||
[Path to install message files in (default: datadir/locale)]),
|
||||
[LOCALEDIR=${withval}], [LOCALEDIR=${datadir}/locale])
|
||||
AX_DEFINE_DIR([LOCALEDIR], [LOCALEDIR], [Location of translated messages])
|
||||
if test "x$LOCALEDIR" = "xno" -o "x$USE_GETTEXT" = "xno" ; then
|
||||
AC_MSG_RESULT([nowhere])
|
||||
USE_GETTEXT="no"
|
||||
else
|
||||
AC_MSG_RESULT([$LOCALEDIR])
|
||||
fi
|
||||
|
||||
if test "x$USE_GETTEXT" = "xyes" ; then
|
||||
AC_DEFINE([USE_GETTEXT], 1,
|
||||
[Define to 1 if you want to use the gettext() function.])
|
||||
fi
|
||||
AM_CONDITIONAL(USE_GETTEXT, test "x$USE_GETTEXT" = "xyes")
|
||||
|
||||
AC_PROG_CC
|
||||
AC_PROG_INSTALL
|
||||
|
||||
### How to check load average on various OS'es:
|
||||
|
||||
# Solaris: libkstat
|
||||
AC_CHECK_LIB([kstat], [kstat_open])
|
||||
# getloadavg: 4.3BSD-Reno & later, glibc 2.2 & later, Solaris 7 & later
|
||||
# BSD & GNU libc use <stdlib.h>, Solaris requires <sys/loadavg.h>
|
||||
AC_CHECK_FUNCS([getloadavg], [AC_CHECK_HEADERS([sys/loadavg.h])])
|
||||
|
||||
# Checks for pkg-config packages
|
||||
PKG_CHECK_MODULES(XLOAD, xaw7 xmu xt x11)
|
||||
PKG_CHECK_MODULES(XLOAD, xaw7 xmu xt x11 [xproto >= 7.0.17])
|
||||
|
||||
PKG_CHECK_MODULES(APPDEFS, xt)
|
||||
appdefaultdir=$(pkg-config --variable=appdefaultdir xt)
|
||||
xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
|
||||
AC_ARG_WITH(appdefaultdir,
|
||||
AS_HELP_STRING([--with-appdefaultdir=<pathname>],
|
||||
[specify directory for app-defaults files (default is autodetected)]),
|
||||
[appdefaultdir="$withval"], [appdefaultdir="${xt_appdefaultdir}"])
|
||||
AC_SUBST(appdefaultdir)
|
||||
|
||||
XORG_MANPAGE_SECTIONS
|
||||
XORG_RELEASE_VERSION
|
||||
|
||||
AC_OUTPUT([Makefile])
|
||||
AC_CONFIG_FILES([
|
||||
Makefile
|
||||
man/Makefile])
|
||||
AC_OUTPUT
|
||||
|
@ -1,6 +1,3 @@
|
||||
/* $XdotOrg: xc/programs/xload/get_load.c,v 1.2 2004/04/23 19:54:57 eich Exp $ */
|
||||
/* $XConsortium: get_load.c /main/37 1996/03/09 09:38:04 kaleb $ */
|
||||
/* $XFree86: xc/programs/xload/get_load.c,v 1.21tsi Exp $ */
|
||||
/*
|
||||
|
||||
Copyright (c) 1989 X Consortium
|
||||
@ -52,6 +49,7 @@ from the X Consortium.
|
||||
#include "xload.h"
|
||||
|
||||
#if defined(__CYGWIN__)
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
typedef struct {
|
||||
DWORD stat;
|
||||
@ -70,7 +68,7 @@ static long (__stdcall *pdhaddcounter)(HANDLE, LPCSTR, DWORD, HANDLE*);
|
||||
static long (__stdcall *pdhcollectquerydata)(HANDLE);
|
||||
static long (__stdcall *pdhgetformattedcountervalue)(HANDLE, DWORD, LPDWORD, COUNTER*);
|
||||
#define CYGWIN_PERF
|
||||
void InitLoadPoint()
|
||||
void InitLoadPoint(void)
|
||||
{
|
||||
long ret;
|
||||
hdll=LoadLibrary("pdh.dll");
|
||||
@ -88,10 +86,10 @@ void InitLoadPoint()
|
||||
ret = pdhaddcounter(query, "\\Processor(_Total)\\% Processor Time", 0, &counter);
|
||||
if (ret!=0) exit(-1);
|
||||
}
|
||||
void GetLoadPoint( w, closure, call_data ) /* SYSV386 version */
|
||||
Widget w; /* unused */
|
||||
XtPointer closure; /* unused */
|
||||
XtPointer call_data; /* pointer to (double) return value */
|
||||
void GetLoadPoint(
|
||||
Widget w, /* unused */
|
||||
XtPointer closure, /* unused */
|
||||
XtPointer call_data) /* pointer to (double) return value */
|
||||
{
|
||||
double *loadavg = (double *)call_data;
|
||||
COUNTER fmtvalue;
|
||||
@ -106,39 +104,20 @@ void GetLoadPoint( w, closure, call_data ) /* SYSV386 version */
|
||||
#else
|
||||
|
||||
|
||||
#if !defined(DGUX)
|
||||
#if defined(att) || defined(QNX4)
|
||||
#define LOADSTUB
|
||||
#endif
|
||||
|
||||
#ifndef macII
|
||||
#ifndef apollo
|
||||
#ifndef LOADSTUB
|
||||
#if !defined(linux) && !defined(__UNIXOS2__) && !defined(__GLIBC__)
|
||||
#include <nlist.h>
|
||||
#endif /* !linux && ... */
|
||||
#endif /* LOADSTUB */
|
||||
#endif /* apollo */
|
||||
#endif /* macII */
|
||||
|
||||
#if defined(MOTOROLA) && defined(SYSV)
|
||||
#include <sys/sysinfo.h>
|
||||
#endif
|
||||
|
||||
#ifdef sun
|
||||
# include <sys/param.h>
|
||||
# if !defined(HAVE_CONFIG_H) && defined(SVR4)
|
||||
# define HAVE_LIBKSTAT 1
|
||||
# endif
|
||||
# ifdef HAVE_LIBKSTAT
|
||||
# include <kstat.h>
|
||||
# include <errno.h>
|
||||
# elif defined(i386) && !defined(SVR4)
|
||||
# include <kvm.h>
|
||||
# define KVM_ROUTINES
|
||||
# endif /* i386 */
|
||||
#endif
|
||||
|
||||
#ifdef CSRG_BASED
|
||||
#include <sys/param.h>
|
||||
#endif
|
||||
@ -160,16 +139,6 @@ void GetLoadPoint( w, closure, call_data ) /* SYSV386 version */
|
||||
#include <sys/vm.h>
|
||||
#endif /* sequent */
|
||||
|
||||
#ifdef macII
|
||||
#include <a.out.h>
|
||||
#include <sys/var.h>
|
||||
#define X_AVENRUN 0
|
||||
#define fxtod(i) (vec[i].high+(vec[i].low/65536.0))
|
||||
struct lavnum {
|
||||
unsigned short high;
|
||||
unsigned short low;
|
||||
};
|
||||
#endif /* macII */
|
||||
|
||||
#ifdef hcx
|
||||
#include <sys/param.h>
|
||||
@ -217,69 +186,9 @@ struct lavnum {
|
||||
extern long lseek();
|
||||
#endif
|
||||
|
||||
void xload_error(char *, char *);
|
||||
static void xload_error(const char *, const char *) _X_NORETURN;
|
||||
|
||||
|
||||
#ifdef apollo
|
||||
#include <apollo/base.h>
|
||||
#include <apollo/time.h>
|
||||
typedef struct {
|
||||
short state; /* ready, waiting, etc. */
|
||||
pinteger usr; /* user sr */
|
||||
linteger upc; /* user pc */
|
||||
linteger usp; /* user stack pointer */
|
||||
linteger usb; /* user sb ptr (A6) */
|
||||
time_$clock_t cpu_total; /* cumulative cpu used by process */
|
||||
unsigned short priority; /* process priority */
|
||||
} proc1_$info_t;
|
||||
|
||||
void proc1_$get_cput(
|
||||
time_$clock_t *cput
|
||||
);
|
||||
|
||||
void proc1_$get_info(
|
||||
short &pid,
|
||||
proc1_$info_t *info,
|
||||
status_$t *sts
|
||||
);
|
||||
|
||||
static int lastNullCpu;
|
||||
static int lastClock;
|
||||
|
||||
void InitLoadPoint() /* Apollo version */
|
||||
{
|
||||
time_$clock_t timeNow;
|
||||
proc1_$info_t info;
|
||||
status_$t st;
|
||||
|
||||
proc1_$get_info( (short) 2, &info, &st );
|
||||
time_$clock( &timeNow );
|
||||
|
||||
lastClock = timeNow.low32;
|
||||
lastNullCpu = info.cpu_total.low32;
|
||||
}
|
||||
|
||||
/* ARGSUSED */
|
||||
void GetLoadPoint( w, closure, call_data ) /* Apollo version */
|
||||
Widget w; /* unused */
|
||||
XtPointer closure; /* unused */
|
||||
XtPointer call_data; /* pointer to (double) return value */
|
||||
{
|
||||
time_$clock_t timeNow;
|
||||
double temp;
|
||||
proc1_$info_t info;
|
||||
status_$t st;
|
||||
|
||||
proc1_$get_info( (short) 2, &info, &st );
|
||||
time_$clock( &timeNow );
|
||||
|
||||
temp = info.cpu_total.low32 - lastNullCpu;
|
||||
*(double *)call_data = 1.0 - temp / (timeNow.low32 - lastClock);
|
||||
|
||||
lastClock = timeNow.low32;
|
||||
lastNullCpu = info.cpu_total.low32;
|
||||
}
|
||||
#else /* not apollo */
|
||||
#if defined(SYSV) && defined(i386)
|
||||
/*
|
||||
* inspired by 'avgload' by John F. Haugh II
|
||||
@ -367,63 +276,18 @@ XtPointer call_data; /* pointer to (double) return value */
|
||||
return;
|
||||
}
|
||||
#else /* not (SYSV && i386) */
|
||||
#ifdef KVM_ROUTINES
|
||||
/*
|
||||
* Sun 386i Code - abstracted to see the wood for the trees
|
||||
*/
|
||||
|
||||
static struct nlist nl[2];
|
||||
static kvm_t *kd;
|
||||
|
||||
void
|
||||
InitLoadPoint() /* Sun 386i version */
|
||||
{
|
||||
kd = kvm_open("/vmunix", NULL, NULL, O_RDONLY, "Load Widget");
|
||||
if (kd == (kvm_t *)0) {
|
||||
xload_error("cannot get access to kernel address space", "");
|
||||
}
|
||||
|
||||
nl[0].n_name = "avenrun";
|
||||
nl[1].n_name = NULL;
|
||||
|
||||
if (kvm_nlist(kd, nl) != 0) {
|
||||
xload_error("cannot get name list", "");
|
||||
}
|
||||
|
||||
if (nl[0].n_value == 0) {
|
||||
xload_error("Cannot find address for avenrun in the kernel\n", "");
|
||||
}
|
||||
}
|
||||
|
||||
/* ARGSUSED */
|
||||
void
|
||||
GetLoadPoint( w, closure, call_data ) /* Sun 386i version */
|
||||
Widget w; /* unused */
|
||||
XtPointer closure; /* unused */
|
||||
XtPointer call_data; /* pointer to (double) return value */
|
||||
{
|
||||
double *loadavg = (double *)call_data;
|
||||
long temp;
|
||||
|
||||
if (kvm_read(kd, nl[0].n_value, (char *)&temp, sizeof (temp)) !=
|
||||
sizeof (temp)) {
|
||||
xload_error("Kernel read error", "");
|
||||
}
|
||||
*loadavg = (double)temp/FSCALE;
|
||||
}
|
||||
#else /* not KVM_ROUTINES */
|
||||
|
||||
#if defined(linux) || (defined(__FreeBSD_kernel__) && defined(__GLIBC__))
|
||||
|
||||
void InitLoadPoint()
|
||||
void InitLoadPoint(void)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
void GetLoadPoint( w, closure, call_data )
|
||||
Widget w; /* unused */
|
||||
XtPointer closure; /* unused */
|
||||
XtPointer call_data; /* pointer to (double) return value */
|
||||
void GetLoadPoint(
|
||||
Widget w, /* unused */
|
||||
XtPointer closure, /* unused */
|
||||
XtPointer call_data) /* pointer to (double) return value */
|
||||
{
|
||||
static int fd = -1;
|
||||
int n;
|
||||
@ -476,17 +340,17 @@ void GetLoadPoint( w, closure, call_data )
|
||||
|
||||
static processor_set_t default_set;
|
||||
|
||||
void InitLoadPoint()
|
||||
void InitLoadPoint(void)
|
||||
{
|
||||
if (processor_set_default (mach_host_self (), &default_set) != KERN_SUCCESS)
|
||||
xload_error("cannot get processor_set_default", "");
|
||||
}
|
||||
|
||||
/* ARGSUSED */
|
||||
void GetLoadPoint( w, closure, call_data )
|
||||
Widget w; /* unused */
|
||||
XtPointer closure; /* unused */
|
||||
XtPointer call_data; /* pointer to (double) return value */
|
||||
void GetLoadPoint(
|
||||
Widget w, /* unused */
|
||||
XtPointer closure, /* unused */
|
||||
XtPointer call_data) /* pointer to (double) return value */
|
||||
{
|
||||
host_t host;
|
||||
struct processor_set_basic_info info;
|
||||
@ -508,22 +372,22 @@ void GetLoadPoint( w, closure, call_data )
|
||||
|
||||
#else /* __GNU__ */
|
||||
|
||||
#ifdef __DARWIN__
|
||||
#ifdef __APPLE__
|
||||
|
||||
#include <mach/mach.h>
|
||||
|
||||
static mach_port_t host_priv_port;
|
||||
|
||||
void InitLoadPoint()
|
||||
void InitLoadPoint(void)
|
||||
{
|
||||
host_priv_port = mach_host_self();
|
||||
}
|
||||
|
||||
/* ARGSUSED */
|
||||
void GetLoadPoint( w, closure, call_data )
|
||||
Widget w; /* unused */
|
||||
XtPointer closure; /* unused */
|
||||
XtPointer call_data; /* pointer to (double) return value */
|
||||
void GetLoadPoint(
|
||||
Widget w, /* unused */
|
||||
XtPointer closure, /* unused */
|
||||
XtPointer call_data) /* pointer to (double) return value */
|
||||
{
|
||||
double *loadavg = (double *)call_data;
|
||||
|
||||
@ -540,7 +404,7 @@ void GetLoadPoint( w, closure, call_data )
|
||||
return;
|
||||
}
|
||||
|
||||
#else /* __DARWIN__ */
|
||||
#else /* __APPLE__ */
|
||||
|
||||
#ifdef LOADSTUB
|
||||
|
||||
@ -591,7 +455,7 @@ static int nto_idle_id;
|
||||
static struct timespec nto_now, nto_last;
|
||||
|
||||
void
|
||||
InitLoadPoint()
|
||||
InitLoadPoint(void)
|
||||
{
|
||||
nto_idle_id = ClockId(1, 1); /* Idle thread */
|
||||
ClockTime(nto_idle_id, NULL, &nto_idle_last);
|
||||
@ -600,10 +464,10 @@ InitLoadPoint()
|
||||
|
||||
/* ARGSUSED */
|
||||
void
|
||||
GetLoadPoint( w, closure, call_data ) /* QNX NTO version */
|
||||
Widget w; /* unused */
|
||||
XtPointer closure; /* unused */
|
||||
XtPointer call_data; /* pointer to (double) return value */
|
||||
GetLoadPoint( /* QNX NTO version */
|
||||
Widget w, /* unused */
|
||||
XtPointer closure, /* unused */
|
||||
XtPointer call_data) /* pointer to (double) return value */
|
||||
{
|
||||
double *loadavg = (double *)call_data;
|
||||
double timediff;
|
||||
@ -633,7 +497,7 @@ static struct nlist nl[] = {
|
||||
static kvm_t *kd;
|
||||
static int fscale;
|
||||
|
||||
void InitLoadPoint()
|
||||
void InitLoadPoint(void)
|
||||
{
|
||||
fixpt_t averunnable[3]; /* unused really */
|
||||
|
||||
@ -654,10 +518,10 @@ void InitLoadPoint()
|
||||
return;
|
||||
}
|
||||
|
||||
void GetLoadPoint(w, closure, call_data)
|
||||
Widget w; /* unused */
|
||||
XtPointer closure; /* unused */
|
||||
XtPointer call_data; /* ptr to (double) return value */
|
||||
void GetLoadPoint(
|
||||
Widget w, /* unused */
|
||||
XtPointer closure, /* unused */
|
||||
XtPointer call_data) /* ptr to (double) return value */
|
||||
{
|
||||
double *loadavg = (double *)call_data;
|
||||
fixpt_t t;
|
||||
@ -672,8 +536,11 @@ void GetLoadPoint(w, closure, call_data)
|
||||
}
|
||||
|
||||
#else /* not __bsdi__ */
|
||||
#if defined(BSD) && (BSD >= 199306)
|
||||
#if defined(HAVE_GETLOADAVG)
|
||||
#include <stdlib.h>
|
||||
#ifdef HAVE_SYS_LOADAVG_H
|
||||
#include <sys/loadavg.h> /* Solaris definition of getloadavg */
|
||||
#endif
|
||||
|
||||
void InitLoadPoint()
|
||||
{
|
||||
@ -690,37 +557,7 @@ void GetLoadPoint(w, closure, call_data)
|
||||
xload_error("couldn't obtain load average", "");
|
||||
}
|
||||
|
||||
#else /* not BSD >= 199306 */
|
||||
#if defined(sun) && defined(HAVE_LIBKSTAT)
|
||||
|
||||
static kstat_t *ksp;
|
||||
static kstat_ctl_t *kc;
|
||||
|
||||
void
|
||||
InitLoadPoint(void)
|
||||
{
|
||||
if ((kc = kstat_open()) == NULL)
|
||||
xload_error("kstat_open failed:", strerror(errno));
|
||||
|
||||
if ((ksp = kstat_lookup(kc, "unix", 0, "system_misc")) == NULL)
|
||||
xload_error("kstat_lookup failed:", strerror(errno));
|
||||
}
|
||||
|
||||
void
|
||||
GetLoadPoint(Widget w, XtPointer closure, XtPointer call_data)
|
||||
{
|
||||
kstat_named_t *vp;
|
||||
double *loadavg = (double *)call_data;
|
||||
|
||||
if (kstat_read(kc, ksp, NULL) == -1)
|
||||
xload_error("kstat_read failed:", strerror(errno));
|
||||
|
||||
if ((vp = kstat_data_lookup(ksp, "avenrun_1min")) == NULL)
|
||||
xload_error("kstat_data_lookup failed:", strerror(errno));
|
||||
|
||||
*loadavg = (double)vp->value.l / FSCALE;
|
||||
}
|
||||
#else /* not Solaris */
|
||||
#else /* not HAVE_GETLOADAVG */
|
||||
|
||||
#ifndef KMEM_FILE
|
||||
#define KMEM_FILE "/dev/kmem"
|
||||
@ -740,9 +577,6 @@ GetLoadPoint(Widget w, XtPointer closure, XtPointer call_data)
|
||||
#define KERNEL_FILE "/hp-ux"
|
||||
#endif /* hpux */
|
||||
|
||||
#ifdef macII
|
||||
#define KERNEL_FILE "/unix"
|
||||
#endif /* macII */
|
||||
|
||||
#ifdef umips
|
||||
# ifdef SYSTYPE_SYSV
|
||||
@ -772,10 +606,6 @@ GetLoadPoint(Widget w, XtPointer closure, XtPointer call_data)
|
||||
#endif
|
||||
#endif /* MOTOROLA */
|
||||
|
||||
#if defined(sun) && defined(SVR4)
|
||||
#define KERNEL_FILE "/kernel/unix"
|
||||
#endif
|
||||
|
||||
#ifdef sgi
|
||||
#if (OSMAJORVERSION > 4)
|
||||
#define KERNEL_FILE "/unix"
|
||||
@ -884,51 +714,18 @@ GetLoadPoint(Widget w, XtPointer closure, XtPointer call_data)
|
||||
# endif
|
||||
#endif /* KERNEL_LOAD_VARIABLE */
|
||||
|
||||
#ifdef macII
|
||||
static struct var v;
|
||||
static int pad[2]; /* This padding is needed if xload compiled on */
|
||||
/* a/ux 1.1 is executed on a/ux 1.0, because */
|
||||
/* the var structure had too much padding in 1.0, */
|
||||
/* so the 1.0 kernel writes past the end of the 1.1 */
|
||||
/* var structure in the uvar() call. */
|
||||
static struct nlist nl[2];
|
||||
static struct lavnum vec[3];
|
||||
#else /* not macII */
|
||||
static struct nlist namelist[] = { /* namelist for vmunix grubbing */
|
||||
#define LOADAV 0
|
||||
{KERNEL_LOAD_VARIABLE},
|
||||
{0}
|
||||
};
|
||||
#endif /* macII */
|
||||
|
||||
static int kmem;
|
||||
static long loadavg_seek;
|
||||
|
||||
void InitLoadPoint()
|
||||
{
|
||||
#ifdef macII
|
||||
extern nlist();
|
||||
|
||||
int i;
|
||||
|
||||
strcpy(nl[0].n_name, "avenrun");
|
||||
nl[1].n_name[0] = '\0';
|
||||
|
||||
kmem = open(KMEM_FILE, O_RDONLY);
|
||||
if (kmem < 0) {
|
||||
xload_error("cannot open", KMEM_FILE);
|
||||
}
|
||||
|
||||
uvar(&v);
|
||||
|
||||
if (nlist( KERNEL_FILE, nl) != 0) {
|
||||
xload_error("cannot get name list from", KERNEL_FILE);
|
||||
}
|
||||
for (i = 0; i < 2; i++) {
|
||||
nl[i].n_value = (int)nl[i].n_value - v.v_kvoffset;
|
||||
}
|
||||
#else /* not macII */
|
||||
#if !defined(SVR4) && !defined(sgi) && !defined(MOTOROLA) && !defined(AIXV5) && !(BSD >= 199103)
|
||||
#if !defined(SVR4) && !defined(sgi) && !defined(MOTOROLA) && !defined(AIXV5) && !(BSD >= 199103) && !defined(__APPLE__)
|
||||
extern void nlist();
|
||||
#endif
|
||||
|
||||
@ -962,7 +759,6 @@ void InitLoadPoint()
|
||||
#endif /* CRAY && SYSINFO */
|
||||
kmem = open(KMEM_FILE, O_RDONLY);
|
||||
if (kmem < 0) xload_error("cannot open", KMEM_FILE);
|
||||
#endif /* macII else */
|
||||
}
|
||||
|
||||
/* ARGSUSED */
|
||||
@ -973,25 +769,15 @@ void GetLoadPoint( w, closure, call_data )
|
||||
{
|
||||
double *loadavg = (double *)call_data;
|
||||
|
||||
#ifdef macII
|
||||
lseek(kmem, (long)nl[X_AVENRUN].n_value, 0);
|
||||
#else
|
||||
(void) lseek(kmem, loadavg_seek, 0);
|
||||
#endif
|
||||
|
||||
#if defined(sun) || defined (UTEK) || defined(sequent) || defined(alliant) || defined(SVR4) || defined(sgi) || defined(hcx) || (BSD >= 199103)
|
||||
#if defined (UTEK) || defined(sequent) || defined(alliant) || defined(SVR4) || defined(sgi) || defined(hcx) || (BSD >= 199103)
|
||||
{
|
||||
long temp;
|
||||
(void) read(kmem, (char *)&temp, sizeof(long));
|
||||
*loadavg = (double)temp/FSCALE;
|
||||
}
|
||||
#else /* else not sun or UTEK or sequent or alliant or SVR4 or sgi or hcx */
|
||||
# ifdef macII
|
||||
{
|
||||
read(kmem, vec, 3*sizeof(struct lavnum));
|
||||
*loadavg = fxtod(0);
|
||||
}
|
||||
# else /* else not macII */
|
||||
#else /* else not UTEK or sequent or alliant or SVR4 or sgi or hcx */
|
||||
# if defined(umips) || (defined(ultrix) && defined(mips))
|
||||
{
|
||||
fix temp;
|
||||
@ -1122,24 +908,20 @@ void GetLoadPoint( w, closure, call_data )
|
||||
# endif /* MOTOROLA else */
|
||||
# endif /* AIXV3 else */
|
||||
# endif /* umips else */
|
||||
# endif /* macII else */
|
||||
#endif /* sun or SVR4 or ... else */
|
||||
#endif /* SVR4 or ... else */
|
||||
return;
|
||||
}
|
||||
#endif /* sun else */
|
||||
#endif /* BSD >= 199306 else */
|
||||
#endif /* HAVE_GETLOADAVG else */
|
||||
#endif /* __bsdi__ else */
|
||||
#endif /* __QNXNTO__ else */
|
||||
#endif /* __osf__ else */
|
||||
#endif /* LOADSTUB else */
|
||||
#endif /* __DARWIN__ else */
|
||||
#endif /* __APPLE__ else */
|
||||
#endif /* __GNU__ else */
|
||||
#endif /* linux else */
|
||||
#endif /* KVM_ROUTINES else */
|
||||
#endif /* SYSV && i386 else */
|
||||
|
||||
void xload_error(str1, str2)
|
||||
char *str1, *str2;
|
||||
static void xload_error(const char *str1, const char *str2)
|
||||
{
|
||||
(void) fprintf(stderr,"xload: %s %s\n", str1, str2);
|
||||
#ifdef __bsdi__
|
||||
@ -1149,92 +931,4 @@ char *str1, *str2;
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
#endif /* apollo else */
|
||||
|
||||
#else /* !DGUX */
|
||||
|
||||
/* INTEL DGUX Release 4.20MU04
|
||||
* Copyright 1999 Takis Psarogiannakopoulos
|
||||
* Cambridge, UK
|
||||
* <takis@dpmms.cam.ac.uk>
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
#include <nlist.h>
|
||||
#include <sys/dg_sys_info.h>
|
||||
|
||||
static struct dg_sys_info_load_info load_info; /* DG/ux */
|
||||
|
||||
#define KERNEL_FILE "/dgux"
|
||||
#define LDAV_SYMBOL "_avenrun"
|
||||
|
||||
void InitLoadPoint()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void GetLoadPoint(w, closure, call_data)
|
||||
Widget w; /* unused */
|
||||
XtPointer closure; /* unused */
|
||||
XtPointer call_data; /* ptr to (double) return value */
|
||||
{
|
||||
double *loadavg = (double *)call_data;
|
||||
|
||||
if (getloadavg(loadavg, 1) < 0)
|
||||
xload_error("couldn't obtain load average", "");
|
||||
}
|
||||
|
||||
xload_error(str1, str2)
|
||||
char *str1, *str2;
|
||||
{
|
||||
(void) fprintf(stderr,"xload: %s %s\n", str1, str2);
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
#if !defined (LDAV_CVT) && defined (FSCALE)
|
||||
#define LDAV_CVT(n) (((double) (n)) / FSCALE)
|
||||
#endif
|
||||
#if !defined(LDAV_CVT) && defined(LOAD_AVE_CVT)
|
||||
#define LDAV_CVT(n) (LOAD_AVE_CVT (n) / 100.0)
|
||||
#endif
|
||||
#define LOAD_AVE_TYPE double
|
||||
#ifndef LDAV_CVT
|
||||
#define LDAV_CVT(n) ((double) (n))
|
||||
#endif /* !LDAV_CVT */
|
||||
static int channel;
|
||||
static int getloadavg_initialized;
|
||||
static long offset;
|
||||
static struct nlist nl[2];
|
||||
|
||||
|
||||
/* GETLOADAVG FUNCTION FOR DG/ux R4.20MU04 */
|
||||
|
||||
int
|
||||
getloadavg (double loadavg[], int nelem)
|
||||
{
|
||||
int elem = 0; /* Return value. */
|
||||
int result =0 ;
|
||||
|
||||
/* This call can return -1 for an error, but with good args
|
||||
it's not supposed to fail. The first argument is for no
|
||||
apparent reason of type `long int *'. */
|
||||
result = dg_sys_info ((long int *) &load_info,
|
||||
DG_SYS_INFO_LOAD_INFO_TYPE, DG_SYS_INFO_LOAD_VERSION_0);
|
||||
if ( result == -1)
|
||||
{
|
||||
return(-1);
|
||||
}
|
||||
if (nelem > 0)
|
||||
loadavg[elem++] = load_info.one_minute;
|
||||
if (nelem > 1)
|
||||
loadavg[elem++] = load_info.five_minute;
|
||||
if (nelem > 2)
|
||||
loadavg[elem++] = load_info.fifteen_minute;
|
||||
|
||||
return elem;
|
||||
}
|
||||
|
||||
#endif /* END OF DG/ux */
|
||||
|
||||
|
||||
#endif /* END of __CYGWIN__ */
|
||||
|
@ -1,4 +1,3 @@
|
||||
/* $XFree86: xc/programs/xload/get_rload.c,v 1.4 2002/01/07 20:38:31 dawes Exp $ */
|
||||
|
||||
#include <stdio.h>
|
||||
#include <X11/Intrinsic.h>
|
||||
@ -15,10 +14,10 @@
|
||||
#endif
|
||||
|
||||
#ifdef RLOADSTUB
|
||||
void GetRLoadPoint( w, closure, call_data )
|
||||
Widget w; /* unused */
|
||||
XtPointer closure; /* unused */
|
||||
XtPointer call_data; /* pointer to (double) return value */
|
||||
void GetRLoadPoint(
|
||||
Widget w, /* unused */
|
||||
XtPointer closure, /* unused */
|
||||
XtPointer call_data) /* pointer to (double) return value */
|
||||
|
||||
{
|
||||
*(double *)call_data = 1.0;
|
||||
@ -30,21 +29,12 @@ void GetRLoadPoint( w, closure, call_data )
|
||||
#define _PATH_RWHODIR "/var/spool/rwho"
|
||||
#endif
|
||||
|
||||
typedef struct _XLoadResources {
|
||||
Boolean show_label;
|
||||
Boolean use_lights;
|
||||
String remote;
|
||||
} XLoadResources;
|
||||
|
||||
extern XLoadResources resources ;
|
||||
|
||||
#define WHDRSIZE ((int)(sizeof (buf) - sizeof (buf.wd_we)))
|
||||
|
||||
void GetRLoadPoint( w, closure, call_data )
|
||||
Widget w; /* unused */
|
||||
XtPointer closure; /* unused */
|
||||
XtPointer call_data; /* pointer to (double) return value */
|
||||
|
||||
void GetRLoadPoint(
|
||||
Widget w, /* unused */
|
||||
XtPointer closure, /* unused */
|
||||
XtPointer call_data) /* pointer to (double) return value */
|
||||
{
|
||||
int f;
|
||||
static char *fname = NULL;
|
||||
|
49
app/xload/m4/ax_define_dir.m4
Normal file
49
app/xload/m4/ax_define_dir.m4
Normal file
@ -0,0 +1,49 @@
|
||||
# ===========================================================================
|
||||
# http://www.gnu.org/software/autoconf-archive/ax_define_dir.html
|
||||
# ===========================================================================
|
||||
#
|
||||
# SYNOPSIS
|
||||
#
|
||||
# AX_DEFINE_DIR(VARNAME, DIR [, DESCRIPTION])
|
||||
#
|
||||
# DESCRIPTION
|
||||
#
|
||||
# This macro sets VARNAME to the expansion of the DIR variable, taking
|
||||
# care of fixing up ${prefix} and such.
|
||||
#
|
||||
# VARNAME is then offered as both an output variable and a C preprocessor
|
||||
# symbol.
|
||||
#
|
||||
# Example:
|
||||
#
|
||||
# AX_DEFINE_DIR([DATADIR], [datadir], [Where data are placed to.])
|
||||
#
|
||||
# LICENSE
|
||||
#
|
||||
# Copyright (c) 2008 Stepan Kasal <kasal@ucw.cz>
|
||||
# Copyright (c) 2008 Andreas Schwab <schwab@suse.de>
|
||||
# Copyright (c) 2008 Guido U. Draheim <guidod@gmx.de>
|
||||
# Copyright (c) 2008 Alexandre Oliva
|
||||
#
|
||||
# Copying and distribution of this file, with or without modification, are
|
||||
# permitted in any medium without royalty provided the copyright notice
|
||||
# and this notice are preserved. This file is offered as-is, without any
|
||||
# warranty.
|
||||
|
||||
#serial 6
|
||||
|
||||
AU_ALIAS([AC_DEFINE_DIR], [AX_DEFINE_DIR])
|
||||
AC_DEFUN([AX_DEFINE_DIR], [
|
||||
prefix_NONE=
|
||||
exec_prefix_NONE=
|
||||
test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
|
||||
test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
|
||||
dnl In Autoconf 2.60, ${datadir} refers to ${datarootdir}, which in turn
|
||||
dnl refers to ${prefix}. Thus we have to use `eval' twice.
|
||||
eval ax_define_dir="\"[$]$2\""
|
||||
eval ax_define_dir="\"$ax_define_dir\""
|
||||
AC_SUBST($1, "$ax_define_dir")
|
||||
AC_DEFINE_UNQUOTED($1, "$ax_define_dir", [$3])
|
||||
test "$prefix_NONE" && prefix=NONE
|
||||
test "$exec_prefix_NONE" && exec_prefix=NONE
|
||||
])
|
12
app/xload/man/Makefile.am
Normal file
12
app/xload/man/Makefile.am
Normal file
@ -0,0 +1,12 @@
|
||||
|
||||
appmandir = $(APP_MAN_DIR)
|
||||
appman_PRE = xload.man
|
||||
appman_DATA = $(appman_PRE:man=$(APP_MAN_SUFFIX))
|
||||
|
||||
EXTRA_DIST = $(appman_PRE)
|
||||
CLEANFILES = $(appman_DATA)
|
||||
SUFFIXES = .$(APP_MAN_SUFFIX) .man
|
||||
|
||||
# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
|
||||
.man.$(APP_MAN_SUFFIX):
|
||||
$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
|
365
app/xload/man/Makefile.in
Normal file
365
app/xload/man/Makefile.in
Normal file
@ -0,0 +1,365 @@
|
||||
# Makefile.in generated by automake 1.9.6 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||
# 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
top_builddir = ..
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
INSTALL = @INSTALL@
|
||||
install_sh_DATA = ${SHELL} $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = ${SHELL} $(install_sh) -c
|
||||
install_sh_SCRIPT = ${SHELL} $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
subdir = man
|
||||
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/ax_define_dir.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(SHELL) $(install_sh) -d
|
||||
CONFIG_HEADER = $(top_builddir)/config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
SOURCES =
|
||||
DIST_SOURCES =
|
||||
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
||||
am__vpath_adj = case $$p in \
|
||||
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
*) f=$$p;; \
|
||||
esac;
|
||||
am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
|
||||
am__installdirs = "$(DESTDIR)$(appmandir)"
|
||||
appmanDATA_INSTALL = $(INSTALL_DATA)
|
||||
DATA = $(appman_DATA)
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
ACLOCAL = @ACLOCAL@
|
||||
ADMIN_MAN_DIR = @ADMIN_MAN_DIR@
|
||||
ADMIN_MAN_SUFFIX = @ADMIN_MAN_SUFFIX@
|
||||
AMDEP_FALSE = @AMDEP_FALSE@
|
||||
AMDEP_TRUE = @AMDEP_TRUE@
|
||||
AMTAR = @AMTAR@
|
||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||
APPDEFS_CFLAGS = @APPDEFS_CFLAGS@
|
||||
APPDEFS_LIBS = @APPDEFS_LIBS@
|
||||
APP_MAN_DIR = @APP_MAN_DIR@
|
||||
APP_MAN_SUFFIX = @APP_MAN_SUFFIX@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
BASE_CFLAGS = @BASE_CFLAGS@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CHANGELOG_CMD = @CHANGELOG_CMD@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CWARNFLAGS = @CWARNFLAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DRIVER_MAN_DIR = @DRIVER_MAN_DIR@
|
||||
DRIVER_MAN_SUFFIX = @DRIVER_MAN_SUFFIX@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
FILE_MAN_DIR = @FILE_MAN_DIR@
|
||||
FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@
|
||||
GREP = @GREP@
|
||||
INSTALL_CMD = @INSTALL_CMD@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIB_MAN_DIR = @LIB_MAN_DIR@
|
||||
LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@
|
||||
LOCALEDIR = @LOCALEDIR@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
MAINT = @MAINT@
|
||||
MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
|
||||
MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MAN_SUBSTS = @MAN_SUBSTS@
|
||||
MISC_MAN_DIR = @MISC_MAN_DIR@
|
||||
MISC_MAN_SUFFIX = @MISC_MAN_SUFFIX@
|
||||
OBJEXT = @OBJEXT@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
SED = @SED@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
STRICT_CFLAGS = @STRICT_CFLAGS@
|
||||
STRIP = @STRIP@
|
||||
USE_GETTEXT_FALSE = @USE_GETTEXT_FALSE@
|
||||
USE_GETTEXT_TRUE = @USE_GETTEXT_TRUE@
|
||||
VERSION = @VERSION@
|
||||
XLOAD_CFLAGS = @XLOAD_CFLAGS@
|
||||
XLOAD_LIBS = @XLOAD_LIBS@
|
||||
XORG_MAN_PAGE = @XORG_MAN_PAGE@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
|
||||
am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
appdefaultdir = @appdefaultdir@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
docdir = @docdir@
|
||||
dvidir = @dvidir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
htmldir = @htmldir@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
sysconfdir = @sysconfdir@
|
||||
target_alias = @target_alias@
|
||||
appmandir = $(APP_MAN_DIR)
|
||||
appman_PRE = xload.man
|
||||
appman_DATA = $(appman_PRE:man=$(APP_MAN_SUFFIX))
|
||||
EXTRA_DIST = $(appman_PRE)
|
||||
CLEANFILES = $(appman_DATA)
|
||||
SUFFIXES = .$(APP_MAN_SUFFIX) .man
|
||||
all: all-am
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .$(APP_MAN_SUFFIX) .man
|
||||
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
|
||||
&& exit 0; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign man/Makefile'; \
|
||||
cd $(top_srcdir) && \
|
||||
$(AUTOMAKE) --foreign man/Makefile
|
||||
.PRECIOUS: Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
uninstall-info-am:
|
||||
install-appmanDATA: $(appman_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(appmandir)" || $(mkdir_p) "$(DESTDIR)$(appmandir)"
|
||||
@list='$(appman_DATA)'; for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
f=$(am__strip_dir) \
|
||||
echo " $(appmanDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(appmandir)/$$f'"; \
|
||||
$(appmanDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(appmandir)/$$f"; \
|
||||
done
|
||||
|
||||
uninstall-appmanDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(appman_DATA)'; for p in $$list; do \
|
||||
f=$(am__strip_dir) \
|
||||
echo " rm -f '$(DESTDIR)$(appmandir)/$$f'"; \
|
||||
rm -f "$(DESTDIR)$(appmandir)/$$f"; \
|
||||
done
|
||||
tags: TAGS
|
||||
TAGS:
|
||||
|
||||
ctags: CTAGS
|
||||
CTAGS:
|
||||
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
|
||||
list='$(DISTFILES)'; for file in $$list; do \
|
||||
case $$file in \
|
||||
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
|
||||
esac; \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
|
||||
dir="/$$dir"; \
|
||||
$(mkdir_p) "$(distdir)$$dir"; \
|
||||
else \
|
||||
dir=''; \
|
||||
fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
|
||||
fi; \
|
||||
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
|
||||
else \
|
||||
test -f $(distdir)/$$file \
|
||||
|| cp -p $$d/$$file $(distdir)/$$file \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
check-am: all-am
|
||||
check: check-am
|
||||
all-am: Makefile $(DATA)
|
||||
installdirs:
|
||||
for dir in "$(DESTDIR)$(appmandir)"; do \
|
||||
test -z "$$dir" || $(mkdir_p) "$$dir"; \
|
||||
done
|
||||
install: install-am
|
||||
install-exec: install-exec-am
|
||||
install-data: install-data-am
|
||||
uninstall: uninstall-am
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-am
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
`test -z '$(STRIP)' || \
|
||||
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-am
|
||||
|
||||
clean-am: clean-generic mostlyclean-am
|
||||
|
||||
distclean: distclean-am
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-generic
|
||||
|
||||
dvi: dvi-am
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-am
|
||||
|
||||
info: info-am
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am: install-appmanDATA
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-info: install-info-am
|
||||
|
||||
install-man:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-am
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
|
||||
mostlyclean-am: mostlyclean-generic
|
||||
|
||||
pdf: pdf-am
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-am
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am: uninstall-appmanDATA uninstall-info-am
|
||||
|
||||
.PHONY: all all-am check check-am clean clean-generic distclean \
|
||||
distclean-generic distdir dvi dvi-am html html-am info info-am \
|
||||
install install-am install-appmanDATA install-data \
|
||||
install-data-am install-exec install-exec-am install-info \
|
||||
install-info-am install-man install-strip installcheck \
|
||||
installcheck-am installdirs maintainer-clean \
|
||||
maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
|
||||
pdf-am ps ps-am uninstall uninstall-am uninstall-appmanDATA \
|
||||
uninstall-info-am
|
||||
|
||||
|
||||
# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
|
||||
.man.$(APP_MAN_SUFFIX):
|
||||
$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
|
||||
# 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:
|
@ -1,6 +1,3 @@
|
||||
.\" $XConsortium: xload.man,v 1.29 94/04/17 20:43:44 matt Exp $
|
||||
.\"
|
||||
.\" $XFree86: xc/programs/xload/xload.man,v 1.4 2001/08/13 19:35:01 dawes Exp $
|
||||
.\"
|
||||
.TH XLOAD 1 __xorgversion__
|
||||
.SH NAME
|
||||
@ -11,19 +8,19 @@ xload \- system load average display for X
|
||||
.br
|
||||
[-jumpscroll \fIpixels\fP] [-label \fIstring\fP] [-nolabel] [-lights]
|
||||
.SH DESCRIPTION
|
||||
The
|
||||
.I xload
|
||||
The
|
||||
.I xload
|
||||
program displays a periodically updating histogram of the system load average.
|
||||
.SH OPTIONS
|
||||
.PP
|
||||
.I Xload
|
||||
accepts all of the standard X Toolkit command line options (see \fIX(__miscmansuffix__)\fP).
|
||||
The order of the options in unimportant. \fIxload also accepts the
|
||||
The order of the options is unimportant. \fIxload also accepts the
|
||||
following additional options:
|
||||
.PP
|
||||
.TP 8
|
||||
.B \-hl \fIcolor\fP or \-highlight \fIcolor\fP
|
||||
This option specifies the color of the scale lines.
|
||||
This option specifies the color of the scale lines.
|
||||
.TP 8
|
||||
.B \-jumpscroll \fPnumber of pixels\fP
|
||||
The number of pixels to shift the graph to the left when the graph
|
||||
@ -59,7 +56,7 @@ is 1 second. The default is 10.
|
||||
.B \-remote \fIhost\fP
|
||||
This option tells \fIxload\fP to display the load of \fIhost\fP instead of \fIlocalhost\fP. \fIXload\fP gets the information from the \fIrwhod\fP database and consequently requires \fIrwhod\fP to be executing both on \fIlocalhost\fP and \fIhost\fP.
|
||||
.SH RESOURCES
|
||||
In addition to the resources available to each of the widgets used by
|
||||
In addition to the resources available to each of the widgets used by
|
||||
\fIxload\fP there is one resource defined by the application itself.
|
||||
.TP 8
|
||||
.B showLabel (\fPclass\fB Boolean)
|
||||
@ -92,15 +89,15 @@ stored in the RESOURCE_MANAGER property.
|
||||
.I __apploaddir__/XLoad
|
||||
specifies required resources
|
||||
.SH SEE ALSO
|
||||
X(__miscmansuffix__), xrdb(1), mem(4), Athena StripChart Widget.
|
||||
X(__miscmansuffix__), xrdb(__appmansuffix__), mem(__drivermansuffix__), Athena StripChart Widget.
|
||||
.SH BUGS
|
||||
This program requires the ability to open and read the special system
|
||||
file \fI/dev/kmem\fP. Sites that do not allow general access to this file
|
||||
should make \fIxload\fP belong to the same group as \fI/dev/kmem\fP and
|
||||
turn on the \fIset group id\fP permission flag.
|
||||
On older platforms, this program may require the ability to open and read
|
||||
the special system file \fI/dev/kmem\fP. Sites that do not allow general
|
||||
access to this file may need to make \fIxload\fP belong to the same group
|
||||
as \fI/dev/kmem\fP and turn on the \fIset group id\fP permission flag.
|
||||
.PP
|
||||
Reading /dev/kmem is inherently non-portable. Therefore, the routine
|
||||
used to read it (get_load.c) must be ported to each new operating system.
|
||||
Reading the load average is inherently non-portable. Therefore, the routine
|
||||
used to read it (get_load.c) must be ported to each new operating system.
|
||||
.SH COPYRIGHT
|
||||
Copyright \(co X Consortium
|
||||
.br
|
||||
@ -110,4 +107,3 @@ K. Shane Hartman (MIT-LCS) and Stuart A. Malone (MIT-LCS);
|
||||
.br
|
||||
with features added by Jim Gettys (MIT-Athena), Bob Scheifler (MIT-LCS),
|
||||
Tony Della Fera (MIT-Athena), and Chris Peterson (MIT-LCS).
|
||||
DG/UX support by Takis Psarogiannakopoulos (XFree86 Project).
|
@ -1,5 +1,3 @@
|
||||
/* $XConsortium: xload.c,v 1.37 94/04/17 20:43:44 converse Exp $ */
|
||||
/* $XFree86: xc/programs/xload/xload.c,v 1.6tsi Exp $ */
|
||||
/*
|
||||
|
||||
Copyright (c) 1989 X Consortium
|
||||
@ -29,11 +27,38 @@ other dealings in this Software without prior written authorization
|
||||
from the X Consortium.
|
||||
|
||||
*/
|
||||
/*
|
||||
* Copyright (c) 2000, Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* 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 (including the next
|
||||
* paragraph) 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 AUTHORS OR COPYRIGHT HOLDERS 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.
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
* xload - display system load average in a window
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
@ -50,23 +75,21 @@ from the X Consortium.
|
||||
#include <X11/Xmu/SysUtil.h>
|
||||
#include "xload.h"
|
||||
|
||||
#ifdef USE_GETTEXT
|
||||
# include <X11/Xlocale.h>
|
||||
# include <libintl.h>
|
||||
#else
|
||||
# define gettext(a) (a)
|
||||
#endif
|
||||
|
||||
#include "xload.bit"
|
||||
|
||||
char *ProgramName;
|
||||
static char *ProgramName;
|
||||
|
||||
static void quit(Widget w, XEvent *event, String *params, Cardinal *num_params);
|
||||
static void ClearLights(Display *dpy);
|
||||
static void SetLights(XtPointer data, XtIntervalId *timer);
|
||||
|
||||
/*
|
||||
* Definition of the Application resources structure.
|
||||
*/
|
||||
|
||||
typedef struct _XLoadResources {
|
||||
Boolean show_label;
|
||||
Boolean use_lights;
|
||||
String remote;
|
||||
} XLoadResources;
|
||||
|
||||
/*
|
||||
* Command line options table. Only resources are entered here...there is a
|
||||
@ -118,32 +141,32 @@ static int light_update = 10 * 1000;
|
||||
|
||||
static void usage(void)
|
||||
{
|
||||
fprintf (stderr, "usage: %s [-options ...]\n\n", ProgramName);
|
||||
fprintf (stderr, "where options include:\n");
|
||||
fprintf (stderr,
|
||||
" -display dpy X server on which to display\n");
|
||||
fprintf (stderr,
|
||||
" -geometry geom size and location of window\n");
|
||||
fprintf (stderr,
|
||||
" -fn font font to use in label\n");
|
||||
fprintf (stderr,
|
||||
" -scale number minimum number of scale lines\n");
|
||||
fprintf (stderr,
|
||||
" -update seconds interval between updates\n");
|
||||
fprintf (stderr,
|
||||
" -label string annotation text\n");
|
||||
fprintf (stderr,
|
||||
" -bg color background color\n");
|
||||
fprintf (stderr,
|
||||
" -fg color graph color\n");
|
||||
fprintf (stderr,
|
||||
" -hl color scale and text color\n");
|
||||
fprintf (stderr,
|
||||
" -nolabel removes the label from above the chart.\n");
|
||||
fprintf (stderr,
|
||||
" -jumpscroll value number of pixels to scroll on overflow\n");
|
||||
fprintf (stderr,
|
||||
" -remote host remote host to monitor\n");
|
||||
fprintf (stderr, gettext("usage: %s [-options ...]\n\n"), ProgramName);
|
||||
fprintf (stderr, gettext("where options include:\n"));
|
||||
fprintf (stderr, " -display %s",
|
||||
gettext("display X server on which to display\n"));
|
||||
fprintf (stderr, " -geometry %s",
|
||||
gettext("geometry size and location of window\n"));
|
||||
fprintf (stderr, " -fn %s",
|
||||
gettext("font font to use in label\n"));
|
||||
fprintf (stderr, " -scale %s",
|
||||
gettext("number minimum number of scale lines\n"));
|
||||
fprintf (stderr, " -update %s",
|
||||
gettext("seconds interval between updates\n"));
|
||||
fprintf (stderr, " -label %s",
|
||||
gettext("string annotation text\n"));
|
||||
fprintf (stderr, " -bg %s",
|
||||
gettext("color background color\n"));
|
||||
fprintf (stderr, " -fg %s",
|
||||
gettext("color graph color\n"));
|
||||
fprintf (stderr, " -hl %s",
|
||||
gettext("color scale and text color\n"));
|
||||
fprintf (stderr, " -nolabel %s",
|
||||
gettext("removes the label from above the chart.\n"));
|
||||
fprintf (stderr, " -jumpscroll %s",
|
||||
gettext("value number of pixels to scroll on overflow\n"));
|
||||
fprintf (stderr, " -lights %s",
|
||||
gettext("use keyboard leds to display current load\n"));
|
||||
fprintf (stderr, "\n");
|
||||
exit(1);
|
||||
}
|
||||
@ -156,6 +179,9 @@ main(int argc, char **argv)
|
||||
Arg args[1];
|
||||
Pixmap icon_pixmap = None;
|
||||
char *label, host[256];
|
||||
const char *domaindir;
|
||||
|
||||
XtSetLanguageProc ( NULL, NULL, NULL );
|
||||
|
||||
ProgramName = argv[0];
|
||||
|
||||
@ -164,12 +190,12 @@ main(int argc, char **argv)
|
||||
InitLoadPoint();
|
||||
/* reset gid first while still (maybe) root */
|
||||
if (setgid(getgid()) == -1) {
|
||||
fprintf(stderr, "%s: setgid failed: %s\n",
|
||||
fprintf(stderr, gettext("%s: setgid failed: %s\n"),
|
||||
ProgramName, strerror(errno));
|
||||
exit(1);
|
||||
}
|
||||
if (setuid(getuid()) == -1) {
|
||||
fprintf(stderr, "%s: setuid failed: %s\n",
|
||||
fprintf(stderr, gettext("%s: setuid failed: %s\n"),
|
||||
ProgramName, strerror(errno));
|
||||
exit(1);
|
||||
}
|
||||
@ -178,6 +204,16 @@ main(int argc, char **argv)
|
||||
|
||||
toplevel = XtAppInitialize(&app_con, "XLoad", options, XtNumber(options),
|
||||
&argc, argv, NULL, NULL, (Cardinal) 0);
|
||||
|
||||
#ifdef USE_GETTEXT
|
||||
textdomain("xload");
|
||||
|
||||
if ((domaindir = getenv ( "TEXTDOMAINDIR" )) == NULL) {
|
||||
domaindir = LOCALEDIR;
|
||||
}
|
||||
bindtextdomain("xload", domaindir);
|
||||
#endif
|
||||
|
||||
if (argc != 1) usage();
|
||||
|
||||
XtGetApplicationResources( toplevel, (XtPointer) &resources,
|
||||
@ -192,7 +228,7 @@ main(int argc, char **argv)
|
||||
XrmValue int_value;
|
||||
Bool found = False;
|
||||
|
||||
(void) sprintf (name, "%s.paned.load.update", XtName(toplevel));
|
||||
snprintf (name, sizeof(name), "%s.paned.load.update", XtName(toplevel));
|
||||
found = XrmGetResource (XtScreenDatabase(XtScreen(toplevel)),
|
||||
name, "XLoad.Paned.StripChart.Interval",
|
||||
&type, &db_value);
|
||||
@ -270,8 +306,7 @@ main(int argc, char **argv)
|
||||
static unsigned long current_leds;
|
||||
|
||||
static void
|
||||
ClearLights (dpy)
|
||||
Display *dpy;
|
||||
ClearLights (Display *dpy)
|
||||
{
|
||||
XKeyboardControl cntrl;
|
||||
|
||||
@ -281,9 +316,7 @@ ClearLights (dpy)
|
||||
}
|
||||
|
||||
static void
|
||||
SetLights (data, timer)
|
||||
XtPointer data;
|
||||
XtIntervalId *timer;
|
||||
SetLights (XtPointer data, XtIntervalId *timer)
|
||||
{
|
||||
Widget toplevel;
|
||||
Display *dpy;
|
||||
@ -318,11 +351,7 @@ SetLights (data, timer)
|
||||
SetLights, data);
|
||||
}
|
||||
|
||||
static void quit (w, event, params, num_params)
|
||||
Widget w;
|
||||
XEvent *event;
|
||||
String *params;
|
||||
Cardinal *num_params;
|
||||
static void quit (Widget w, XEvent *event, String *params, Cardinal *num_params)
|
||||
{
|
||||
if (event->type == ClientMessage &&
|
||||
event->xclient.data.l[0] != wm_delete_window) {
|
||||
|
@ -1,12 +1,24 @@
|
||||
/* $XFree86: xc/programs/xload/xload.h,v 1.1 2001/08/27 23:35:14 dawes Exp $ */
|
||||
|
||||
#ifndef _XLOAD_H_
|
||||
#define _XLOAD_H_
|
||||
|
||||
#include <X11/Intrinsic.h>
|
||||
|
||||
/*
|
||||
* Definition of the Application resources structure.
|
||||
*/
|
||||
|
||||
typedef struct _XLoadResources {
|
||||
Boolean show_label;
|
||||
Boolean use_lights;
|
||||
String remote;
|
||||
} XLoadResources;
|
||||
|
||||
|
||||
extern void InitLoadPoint(void);
|
||||
extern void GetLoadPoint(Widget w, XtPointer closure, XtPointer call_data);
|
||||
extern void GetRLoadPoint(Widget w, XtPointer closure, XtPointer call_data);
|
||||
|
||||
extern XLoadResources resources;
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user