removing unbuilt files and directories

This commit is contained in:
blizzard%redhat.com 2000-05-25 20:41:59 +00:00
parent f3debaa033
commit 50cefaf678
54 changed files with 0 additions and 20090 deletions

View File

@ -28,10 +28,6 @@ include $(DEPTH)/config/autoconf.mk
DIRS = public src
ifdef MOZ_ENABLE_GTK_MOZILLA
DIRS += embed
endif
ifdef ENABLE_TESTS
DIRS += tests
endif

View File

@ -30,26 +30,5 @@ ifdef MOZ_ENABLE_XLIB
DIRS = xlib
endif
ifdef MOZ_ENABLE_GTK_MOZILLA
all:: export install
export depend::
install::
@$(CONTINUE_ON_ERROR) \
$(MAKE) -C gtk install; \
$(EXIT_ON_ERROR)
clean clobber clobber_all realclean::
@$(CONTINUE_ON_ERROR) \
$(MAKE) -C gtk clean; \
$(EXIT_ON_ERROR)
distclean::
@$(CONTINUE_ON_ERROR) \
$(MAKE) -C gtk distclean; \
$(EXIT_ON_ERROR)
endif
include $(topsrcdir)/config/rules.mk

View File

@ -1,9 +0,0 @@
config.log
config.h
config.cache
libtool
config.status
stamp-h
Makefile
mozilla_config.mk
configure

View File

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

View File

@ -1 +0,0 @@
GtkMozilla was done by Alexander Larsson, alla@lysator.liu.se

View File

@ -1,602 +0,0 @@
MOZILLA PUBLIC LICENSE
Version 1.1
---------
1. Definitions.
1.0.1. "Commercial Use" means distribution or otherwise making
the Covered Code available to a third party.
1.1. ''Contributor'' means each entity that creates or
contributes to the creation of Modifications.
1.2. ''Contributor Version'' means the combination of the
Original Code, prior Modifications used by a Contributor, and the
Modifications made by that particular Contributor.
1.3. ''Covered Code'' means the Original Code or Modifications or
the combination
of the Original Code and Modifications, in each case including
portions thereof.
1.4. ''Electronic Distribution Mechanism'' means a mechanism
generally
accepted in the software development community for the electronic
transfer of data.
1.5. ''Executable'' means Covered Code in any form other than
Source Code.
1.6. ''Initial Developer'' means the individual or entity
identified as the Initial Developer in the Source Code
notice required by Exhibit A.
1.7. ''Larger Work'' means a work which combines Covered Code or
portions thereof with code not governed by the terms of this
License.
1.8. ''License'' means this document.
1.8.1. "Licensable" means having the right to grant, to the
maximum extent possible, whether at the time of the initial grant
or subsequently acquired, any and all of the rights conveyed
herein.
1.9. ''Modifications'' means any addition to or deletion from the
substance or structure of either the Original Code or any
previous Modifications. When Covered Code is released as a series
of files, a Modification is: A. Any addition to or deletion from
the contents of a file containing Original Code or previous
Modifications.
B. Any new file that contains any part of the Original Code
or previous Modifications.
1.10. ''Original Code'' means Source Code of computer software
code which is described in the Source Code notice required by
Exhibit A as Original Code, and which, at the time of its release
under this License is not already Covered Code governed by this
License.
1.10.1. "Patent Claims" means any patent claim(s), now owned or
hereafter acquired, including without limitation, method,
process, and apparatus claims, in any patent Licensable by
grantor.
1.11. ''Source Code'' means the preferred form of the Covered
Code for making modifications to it, including all modules it
contains, plus any associated interface definition files, scripts
used to control compilation and installation of an Executable, or
source code differential comparisons against either the Original
Code or another well known, available Covered Code of the
Contributor's choice. The Source Code can be in a compressed or
archival form, provided the appropriate decompression or
de-archiving software is widely available for no charge.
1.12. "You'' (or "Your") means an individual or a legal entity
exercising rights under, and complying with all of the terms of,
this License or a future version of this License issued under
Section 6.1. For legal entities, "You'' includes any entity which
controls, is controlled by, or is under common control with
You. For purposes of this definition, "control'' means (a) the
power, direct or indirect, to cause the direction or management
of such entity, whether by contract or otherwise, or (b)
ownership of more than fifty percent (50%) of the outstanding
shares or beneficial ownership of such entity.
2. Source Code License.
2.1. The Initial Developer Grant. The Initial Developer hereby
grants You a world-wide, royalty-free, non-exclusive license,
subject to third party intellectual property claims: (a) under
intellectual property rights (other than patent or trademark)
Licensable by Initial Developer to use, reproduce, modify,
display, perform, sublicense and distribute the Original Code (or
portions thereof) with or without Modifications, and/or as part
of a Larger Work; and
(b) under Patents Claims infringed by the making, using or
selling of Original Code, to make, have made, use, practice,
sell, and offer for sale, and/or otherwise dispose of the
Original Code (or portions thereof).
(c) the licenses granted in this Section 2.1(a) and (b) are
effective on the date Initial Developer first distributes
Original Code under the terms of this License.
(d) Notwithstanding Section 2.1(b) above, no patent license
is granted: 1) for code that You delete from the Original
Code; 2) separate from the Original Code; or 3) for
infringements caused by: i) the modification of the Original
Code or ii) the combination of the Original Code with other
software or devices.
2.2. Contributor Grant. Subject to third party intellectual
property claims, each Contributor hereby grants You a world-wide,
royalty-free, non-exclusive license
(a) under intellectual property rights (other than patent or
trademark) Licensable by Contributor, to use, reproduce,
modify, display, perform, sublicense and distribute the
Modifications created by such Contributor (or portions
thereof) either on an unmodified basis, with other
Modifications, as Covered Code and/or as part of a Larger
Work; and
(b) under Patent Claims infringed by the making, using, or
selling of Modifications made by that Contributor either
alone and/or in combination with its Contributor Version (or
portions of such combination), to make, use, sell, offer for
sale, have made, and/or otherwise dispose of: 1)
Modifications made by that Contributor (or portions
thereof); and 2) the combination of Modifications made by
that Contributor with its Contributor Version (or portions
of such combination).
(c) the licenses granted in Sections 2.2(a) and 2.2(b) are
effective on the date Contributor first makes Commercial Use
of the Covered Code.
(d) Notwithstanding Section 2.2(b) above, no patent license
is granted: 1) for any code that Contributor has deleted from the
Contributor Version; 2) separate from the Contributor Version; 3) for
infringements caused by: i) third party modifications of Contributor
Version or ii) the combination of Modifications made by that
Contributor with other software (except as part of the Contributor
Version) or other devices; or 4) under Patent Claims infringed by
Covered Code in the absence of Modifications made by that Contributor.
3. Distribution Obligations.
3.1. Application of License. The Modifications which You create
or to which You contribute are governed by the terms of this
License, including without limitation Section 2.2. The Source
Code version of Covered Code may be distributed only under the
terms of this License or a future version of this License
released under Section 6.1, and You must include a copy of this
License with every copy of the Source Code You distribute. You
may not offer or impose any terms on any Source Code version that
alters or restricts the applicable version of this License or the
recipients' rights hereunder. However, You may include an
additional document offering the additional rights described in
Section 3.5.
3.2. Availability of Source Code. Any Modification which You
create or to which You contribute must be made available in
Source Code form under the terms of this License either on the
same media as an Executable version or via an accepted Electronic
Distribution Mechanism to anyone to whom you made an Executable
version available; and if made available via Electronic
Distribution Mechanism, must remain available for at least twelve
(12) months after the date it initially became available, or at
least six (6) months after a subsequent version of that
particular Modification has been made available to such
recipients. You are responsible for ensuring that the Source Code
version remains available even if the Electronic Distribution
Mechanism is maintained by a third party.
3.3. Description of Modifications. You must cause all Covered
Code to which You contribute to contain a file documenting the
changes You made to create that Covered Code and the date of any
change. You must include a prominent statement that the
Modification is derived, directly or indirectly, from Original
Code provided by the Initial Developer and including the name of
the Initial Developer in (a) the Source Code, and (b) in any
notice in an Executable version or related documentation in which
You describe the origin or ownership of the Covered Code.
3.4. Intellectual Property Matters (a) Third Party Claims. If
Contributor has knowledge that a license under a third
party's intellectual property rights is required to exercise
the rights granted by such Contributor under Sections 2.1 or
2.2, Contributor must include a text file with the Source
Code distribution titled "LEGAL'' which describes the claim
and the party making the claim in sufficient detail that a
recipient will know whom to contact. If Contributor obtains
such knowledge after the Modification is made available as
described in Section 3.2, Contributor shall promptly modify
the LEGAL file in all copies Contributor makes available
thereafter and shall take other steps (such as notifying
appropriate mailing lists or newsgroups) reasonably
calculated to inform those who received the Covered Code
that new knowledge has been obtained.
(b) Contributor APIs. If Contributor's Modifications
include an application programming interface and Contributor
has knowledge of patent licenses which are reasonably
necessary to implement that API, Contributor must also
include this information in the LEGAL file.
(c) Representations. Contributor represents that,
except as disclosed pursuant to Section 3.4(a) above,
Contributor believes that Contributor's Modifications are
Contributor's original creation(s) and/or Contributor has
sufficient rights to grant the rights conveyed by this
License.
3.5. Required Notices. You must duplicate the notice in Exhibit
A in each file of the Source Code. If it is not possible to put
such notice in a particular Source Code file due to its
structure, then You must include such notice in a location (such
as a relevant directory) where a user would be likely to look for
such a notice. If You created one or more Modification(s) You
may add your name as a Contributor to the notice described in
Exhibit A. You must also duplicate this License in any
documentation for the Source Code where You describe recipients'
rights or ownership rights relating to Covered Code. You may
choose to offer, and to charge a fee for, warranty, support,
indemnity or liability obligations to one or more recipients of
Covered Code. However, You may do so only on Your own behalf,
and not on behalf of the Initial Developer or any
Contributor. You must make it absolutely clear than any such
warranty, support, indemnity or liability obligation is offered
by You alone, and You hereby agree to indemnify the Initial
Developer and every Contributor for any liability incurred by the
Initial Developer or such Contributor as a result of warranty,
support, indemnity or liability terms You offer.
3.6. Distribution of Executable Versions. You may distribute
Covered Code in Executable form only if the requirements of
Section 3.1-3.5 have been met for that Covered Code, and if You
include a notice stating that the Source Code version of the
Covered Code is available under the terms of this License,
including a description of how and where You have fulfilled the
obligations of Section 3.2. The notice must be conspicuously
included in any notice in an Executable version, related
documentation or collateral in which You describe recipients'
rights relating to the Covered Code. You may distribute the
Executable version of Covered Code or ownership rights under a
license of Your choice, which may contain terms different from
this License, provided that You are in compliance with the terms
of this License and that the license for the Executable version
does not attempt to limit or alter the recipient's rights in the
Source Code version from the rights set forth in this License. If
You distribute the Executable version under a different license
You must make it absolutely clear that any terms which differ
from this License are offered by You alone, not by the Initial
Developer or any Contributor. You hereby agree to indemnify the
Initial Developer and every Contributor for any liability
incurred by the Initial Developer or such Contributor as a result
of any such terms You offer.
3.7. Larger Works. You may create a Larger Work by combining
Covered Code with other code not governed by the terms of this
License and distribute the Larger Work as a single product. In
such a case, You must make sure the requirements of this License
are fulfilled for the Covered Code.
4. Inability to Comply Due to Statute or Regulation.
If it is impossible for You to comply with any of the terms of
this License with respect to some or all of the Covered Code due
to statute, judicial order, or regulation then You must: (a)
comply with the terms of this License to the maximum extent
possible; and (b) describe the limitations and the code they
affect. Such description must be included in the LEGAL file
described in Section 3.4 and must be included with all
distributions of the Source Code. Except to the extent
prohibited by statute or regulation, such description must be
sufficiently detailed for a recipient of ordinary skill to be
able to understand it.
5. Application of this License.
This License applies to code to which the Initial Developer has
attached the notice in Exhibit A and to related Covered Code.
6. Versions of the License.
6.1. New Versions. Netscape Communications Corporation
(''Netscape'') may publish revised and/or new versions of the
License from time to time. Each version will be given a
distinguishing version number.
6.2. Effect of New Versions. Once Covered Code has been
published under a particular version of the License, You may
always continue to use it under the terms of that version. You
may also choose to use such Covered Code under the terms of any
subsequent version of the License published by Netscape. No one
other than Netscape has the right to modify the terms applicable
to Covered Code created under this License.
6.3. Derivative Works. If You create or use a modified version
of this License (which you may only do in order to apply it to
code which is not already Covered Code governed by this License),
You must (a) rename Your license so that the phrases ''Mozilla'',
''MOZILLAPL'', ''MOZPL'', ''Netscape'', "MPL", ''NPL'' or any
confusingly similar phrase do not appear in your license (except
to note that your license differs from this License) and (b)
otherwise make it clear that Your version of the license contains
terms which differ from the Mozilla Public License and Netscape
Public License. (Filling in the name of the Initial Developer,
Original Code or Contributor in the notice described in Exhibit A
shall not of themselves be deemed to be modifications of this
License.)
7. DISCLAIMER OF WARRANTY.
COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS'' BASIS,
WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE
IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR
NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE
OF THE COVERED CODE IS WITH YOU. SHOULD ANY COVERED CODE PROVE
DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL DEVELOPER OR ANY
OTHER CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY SERVICING,
REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN
ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY COVERED CODE IS
AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER.
8. TERMINATION.
8.1. This License and the rights granted hereunder will
terminate automatically if You fail to comply with terms herein
and fail to cure such breach within 30 days of becoming aware of
the breach. All sublicenses to the Covered Code which are
properly granted shall survive any termination of this
License. Provisions which, by their nature, must remain in effect
beyond the termination of this License shall survive.
8.2. If You initiate litigation by asserting a patent
infringement claim (excluding declatory judgment actions) against
Initial Developer or a Contributor (the Initial Developer or
Contributor against whom You file such action is referred to as
"Participant") alleging that:
(a) such Participant's Contributor Version directly or indirectly
infringes any patent, then any and all rights granted by such
Participant to You under Sections 2.1 and/or 2.2 of this License
shall, upon 60 days notice from Participant terminate
prospectively, unless if within 60 days after receipt of notice
You either: (i) agree in writing to pay Participant a mutually
agreeable reasonable royalty for Your past and future use of
Modifications made by such Participant, or (ii) withdraw Your
litigation claim with respect to the Contributor Version against
such Participant. If within 60 days of notice, a reasonable
royalty and payment arrangement are not mutually agreed upon in
writing by the parties or the litigation claim is not withdrawn,
the rights granted by Participant to You under Sections 2.1
and/or 2.2 automatically terminate at the expiration of the 60
day notice period specified above.
(b) any software, hardware, or device, other than such
Participant's Contributor Version, directly or indirectly
infringes any patent, then any rights granted to You by such
Participant under Sections 2.1(b) and 2.2(b) are revoked
effective as of the date You first made, used, sold, distributed,
or had made, Modifications made by that Participant.
8.3. If You assert a patent infringement claim against
Participant alleging that such Participant's Contributor Version
directly or indirectly infringes any patent where such claim is
resolved (such as by license or settlement) prior to the
initiation of patent infringement litigation, then the reasonable
value of the licenses granted by such Participant under Sections
2.1 or 2.2 shall be taken into account in determining the amount
or value of any payment or license.
8.4. In the event of termination under Sections 8.1 or 8.2
above, all end user license agreements (excluding distributors
and resellers) which have been validly granted by You or any
distributor hereunder prior to termination shall survive
termination.
9. LIMITATION OF LIABILITY.
UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT
(INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE
INITIAL DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF
COVERED CODE, OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE
TO ANY PERSON FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR
CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT
LIMITATION, DAMAGES FOR LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER
FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER COMMERCIAL DAMAGES
OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE
POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF LIABILITY SHALL
NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY RESULTING
FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT APPLICABLE LAW
PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE
EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES,
SO THIS EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU.
10. U.S. GOVERNMENT END USERS.
The Covered Code is a ''commercial item,'' as that term is
defined in 48 C.F.R. 2.101 (Oct. 1995), consisting of
''commercial computer software'' and ''commercial computer
software documentation,'' as such terms are used in 48
C.F.R. 12.212 (Sept. 1995). Consistent with 48 C.F.R. 12.212 and
48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995), all
U.S. Government End Users acquire Covered Code with only those
rights set forth herein.
11. MISCELLANEOUS.
This License represents the complete agreement concerning subject
matter hereof. If any provision of this License is held to be
unenforceable, such provision shall be reformed only to the
extent necessary to make it enforceable. This License shall be
governed by California law provisions (except to the extent
applicable law, if any, provides otherwise), excluding its
conflict-of-law provisions. With respect to disputes in which at
least one party is a citizen of, or an entity chartered or
registered to do business in the United States of America, any
litigation relating to this License shall be subject to the
jurisdiction of the Federal Courts of the Northern District of
California, with venue lying in Santa Clara County, California,
with the losing party responsible for costs, including without
limitation, court costs and reasonable attorneys' fees and
expenses. The application of the United Nations Convention on
Contracts for the International Sale of Goods is expressly
excluded. Any law or regulation which provides that the language
of a contract shall be construed against the drafter shall not
apply to this License.
12. RESPONSIBILITY FOR CLAIMS.
As between Initial Developer and the Contributors, each party is
responsible for claims and damages arising, directly or
indirectly, out of its utilization of rights under this License
and You agree to work with Initial Developer and Contributors to
distribute such responsibility on an equitable basis. Nothing
herein is intended or shall be deemed to constitute any admission
of liability.
13. MULTIPLE-LICENSED CODE.
Initial Developer may designate portions of the Covered Code as
?Multiple-Licensed?. ?Multiple-Licensed? means that the Initial
Developer permits you to utilize portions of the Covered Code
under Your choice of the NPL or the alternative licenses, if any,
specified by the Initial Developer in the file described in
Exhibit A.
EXHIBIT A -Mozilla Public License.
``The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is ______________________________________.
The Initial Developer of the Original Code is
________________________. Portions created by
______________________ are Copyright (C) ______
_______________________. All Rights Reserved.
Contributor(s): ______________________________________.
Alternatively, the contents of this file may be used under the
terms of the _____ license (the ?[___] License?), in which case
the provisions of [______] License are applicable instead of
those above. If you wish to allow use of your version of this
file only under the terms of the [____] License and not to allow
others to use your version of this file under the MPL, indicate
your decision by deleting the provisions above and replace them
with the notice and other provisions required by the [___]
License. If you do not delete the provisions above, a recipient
may use your version of this file under either the MPL or the
[___] License."
[NOTE: The text of this Exhibit A may differ slightly from the
text of the notices in the Source Code files of the Original
Code. You should use the text of this Exhibit A rather than the
text found in the Original Code Source Code for Your
Modifications.]
----------------------------------------
AMENDMENTS
The Netscape Public License Version 1.1 ("NPL") consists of the
Mozilla Public License Version 1.1 with the following Amendments,
including Exhibit A-Netscape Public License. Files identified
with "Exhibit A-Netscape Public License" are governed by the
Netscape Public License Version 1.1.
Additional Terms applicable to the Netscape Public License.
I. Effect. These additional terms described in this Netscape
Public License -- Amendments shall apply to the Mozilla
Communicator client code and to all Covered Code under this
License.
II. ''Netscape's Branded Code'' means Covered Code that
Netscape distributes and/or permits others to distribute
under one or more trademark(s) which are controlled by
Netscape but which are not licensed for use under this
License.
III. Netscape and logo. This License does not grant any
rights to use the trademarks "Netscape'', the "Netscape N
and horizon'' logo or the "Netscape lighthouse" logo,
"Netcenter", "Gecko", "Java" or "JavaScript", "Smart
Browsing" even if such marks are included in the Original
Code or Modifications.
IV. Inability to Comply Due to Contractual Obligation.
Prior to licensing the Original Code under this License,
Netscape has licensed third party code for use in Netscape's
Branded Code. To the extent that Netscape is limited
contractually from making such third party code available
under this License, Netscape may choose to reintegrate such
code into Covered Code without being required to distribute
such code in Source Code form, even if such code would
otherwise be considered ''Modifications'' under this
License.
V. Use of Modifications and Covered Code by Initial
Developer. V.1. In General. The obligations of Section 3
apply to Netscape, except to the extent specified in this
Amendment, Section V.2 and V.3.
V.2. Other Products. Netscape may include Covered Code
in products other than the Netscape's Branded Code
which are released by Netscape during the two (2) years
following the release date of the Original Code,
without such additional products becoming subject to
the terms of this License, and may license such
additional products on different terms from those
contained in this License.
V.3. Alternative Licensing. Netscape may license the
Source Code of Netscape's Branded Code, including
Modifications incorporated therein, without such
Netscape Branded Code becoming subject to the terms of
this License, and may license such Netscape Branded
Code on different terms from those contained in this
License.
VI. Litigation. Notwithstanding the limitations of Section
11 above, the provisions regarding litigation in Section
11(a), (b) and (c) of the License shall apply to all
disputes relating to this License.
EXHIBIT A-Netscape Public License.
''The contents of this file are subject to the Netscape
Public License Version 1.1 (the "License"); you may not use
this file except in compliance with the License. You may
obtain a copy of the License at http://www.mozilla.org/NPL/
Software distributed under the License is distributed on an
"AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express
or implied. See the License for the specific language
governing rights and limitations under the License.
The Original Code is Mozilla Communicator client code,
released March 31, 1998.
The Initial Developer of the Original Code is Netscape
Communications Corporation. Portions created by Netscape
are Copyright (C) 1998-1999 Netscape Communications
Corporation. All Rights Reserved.
Contributor(s): ______________________________________.
Alternatively, the contents of this file may be used under
the terms of the _____ license (the ?[___] License?), in
which case the provisions of [______] License are applicable
instead of those above. If you wish to allow use of your
version of this file only under the terms of the [____]
License and not to allow others to use your version of this
file under the NPL, indicate your decision by deleting the
provisions above and replace them with the notice and other
provisions required by the [___] License. If you do not
delete the provisions above, a recipient may use your
version of this file under either the NPL or the [___]
License."
Copyright © 1998 The Mozilla Organization.

View File

@ -1,182 +0,0 @@
Basic Installation
==================
These are generic installation instructions.
The `configure' shell script attempts to guess correct values for
various system-dependent variables used during compilation. It uses
those values to create a `Makefile' in each directory of the package.
It may also create one or more `.h' files containing system-dependent
definitions. Finally, it creates a shell script `config.status' that
you can run in the future to recreate the current configuration, a file
`config.cache' that saves the results of its tests to speed up
reconfiguring, and a file `config.log' containing compiler output
(useful mainly for debugging `configure').
If you need to do unusual things to compile the package, please try
to figure out how `configure' could check whether to do them, and mail
diffs or instructions to the address given in the `README' so they can
be considered for the next release. If at some point `config.cache'
contains results you don't want to keep, you may remove or edit it.
The file `configure.in' is used to create `configure' by a program
called `autoconf'. You only need `configure.in' if you want to change
it or regenerate `configure' using a newer version of `autoconf'.
The simplest way to compile this package is:
1. `cd' to the directory containing the package's source code and type
`./configure' to configure the package for your system. If you're
using `csh' on an old version of System V, you might need to type
`sh ./configure' instead to prevent `csh' from trying to execute
`configure' itself.
Running `configure' takes awhile. While running, it prints some
messages telling which features it is checking for.
2. Type `make' to compile the package.
3. Optionally, type `make check' to run any self-tests that come with
the package.
4. Type `make install' to install the programs and any data files and
documentation.
5. You can remove the program binaries and object files from the
source code directory by typing `make clean'. To also remove the
files that `configure' created (so you can compile the package for
a different kind of computer), type `make distclean'. There is
also a `make maintainer-clean' target, but that is intended mainly
for the package's developers. If you use it, you may have to get
all sorts of other programs in order to regenerate files that came
with the distribution.
Compilers and Options
=====================
Some systems require unusual options for compilation or linking that
the `configure' script does not know about. You can give `configure'
initial values for variables by setting them in the environment. Using
a Bourne-compatible shell, you can do that on the command line like
this:
CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
Or on systems that have the `env' program, you can do it like this:
env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
Compiling For Multiple Architectures
====================================
You can compile the package for more than one kind of computer at the
same time, by placing the object files for each architecture in their
own directory. To do this, you must use a version of `make' that
supports the `VPATH' variable, such as GNU `make'. `cd' to the
directory where you want the object files and executables to go and run
the `configure' script. `configure' automatically checks for the
source code in the directory that `configure' is in and in `..'.
If you have to use a `make' that does not supports the `VPATH'
variable, you have to compile the package for one architecture at a time
in the source code directory. After you have installed the package for
one architecture, use `make distclean' before reconfiguring for another
architecture.
Installation Names
==================
By default, `make install' will install the package's files in
`/usr/local/bin', `/usr/local/man', etc. You can specify an
installation prefix other than `/usr/local' by giving `configure' the
option `--prefix=PATH'.
You can specify separate installation prefixes for
architecture-specific files and architecture-independent files. If you
give `configure' the option `--exec-prefix=PATH', the package will use
PATH as the prefix for installing programs and libraries.
Documentation and other data files will still use the regular prefix.
In addition, if you use an unusual directory layout you can give
options like `--bindir=PATH' to specify different values for particular
kinds of files. Run `configure --help' for a list of the directories
you can set and what kinds of files go in them.
If the package supports it, you can cause programs to be installed
with an extra prefix or suffix on their names by giving `configure' the
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
Optional Features
=================
Some packages pay attention to `--enable-FEATURE' options to
`configure', where FEATURE indicates an optional part of the package.
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
is something like `gnu-as' or `x' (for the X Window System). The
`README' should mention any `--enable-' and `--with-' options that the
package recognizes.
For packages that use the X Window System, `configure' can usually
find the X include and library files automatically, but if it doesn't,
you can use the `configure' options `--x-includes=DIR' and
`--x-libraries=DIR' to specify their locations.
Specifying the System Type
==========================
There may be some features `configure' can not figure out
automatically, but needs to determine by the type of host the package
will run on. Usually `configure' can figure that out, but if it prints
a message saying it can not guess the host type, give it the
`--host=TYPE' option. TYPE can either be a short name for the system
type, such as `sun4', or a canonical name with three fields:
CPU-COMPANY-SYSTEM
See the file `config.sub' for the possible values of each field. If
`config.sub' isn't included in this package, then this package doesn't
need to know the host type.
If you are building compiler tools for cross-compiling, you can also
use the `--target=TYPE' option to select the type of system they will
produce code for and the `--build=TYPE' option to select the type of
system on which you are compiling the package.
Sharing Defaults
================
If you want to set default values for `configure' scripts to share,
you can create a site shell script called `config.site' that gives
default values for variables like `CC', `cache_file', and `prefix'.
`configure' looks for `PREFIX/share/config.site' if it exists, then
`PREFIX/etc/config.site' if it exists. Or, you can set the
`CONFIG_SITE' environment variable to the location of the site script.
A warning: not all `configure' scripts look for a site script.
Operation Controls
==================
`configure' recognizes the following options to control how it
operates.
`--cache-file=FILE'
Use and save the results of the tests in FILE instead of
`./config.cache'. Set FILE to `/dev/null' to disable caching, for
debugging `configure'.
`--help'
Print a summary of the options to `configure', and exit.
`--quiet'
`--silent'
`-q'
Do not print messages saying which checks are being made. To
suppress all normal output, redirect it to `/dev/null' (any error
messages will still be shown).
`--srcdir=DIR'
Look for the package's source code in directory DIR. Usually
`configure' can determine that directory automatically.
`--version'
Print the version of Autoconf used to generate the `configure'
script, and exit.
`configure' also accepts some other, not widely useful, options.

View File

@ -1,3 +0,0 @@
## Process this file with automake to produce Makefile.in
SUBDIRS = lib examples

View File

@ -1,375 +0,0 @@
# Makefile.in generated automatically by automake 1.4a from Makefile.am
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
SHELL = @SHELL@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
oldincludedir = /usr/include
DESTDIR =
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
top_builddir = .
ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_FLAG =
transform = @program_transform_name@
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
host_alias = @host_alias@
host_triplet = @host@
AS = @AS@
CC = @CC@
CXX = @CXX@
DEBUG_FLAGS = @DEBUG_FLAGS@
DLLTOOL = @DLLTOOL@
GTK_CFLAGS = @GTK_CFLAGS@
GTK_CONFIG = @GTK_CONFIG@
GTK_LIBS = @GTK_LIBS@
LD = @LD@
LIBPTHREAD = @LIBPTHREAD@
LIBTOOL = @LIBTOOL@
LN_S = @LN_S@
MAINT = @MAINT@
MAKEINFO = @MAKEINFO@
MOZILLA_DIR = @MOZILLA_DIR@
NM = @NM@
NSPR_DIR = @NSPR_DIR@
NSPR_VERSION = @NSPR_VERSION@
PACKAGE = @PACKAGE@
RANLIB = @RANLIB@
USE_SYMBOL_UNDERSCORE = @USE_SYMBOL_UNDERSCORE@
VERSION = @VERSION@
SUBDIRS = lib examples
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = config.h
CONFIG_CLEAN_FILES =
DIST_COMMON = README ./stamp-h.in ABOUT-NLS AUTHORS COPYING ChangeLog \
INSTALL Makefile.am Makefile.in NEWS aclocal.m4 config.guess \
config.h.in config.sub configure configure.in install-sh ltconfig \
ltmain.sh missing mkinstalldirs
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
TAR = gtar
GZIP_ENV = --best
all: all-redirect
.SUFFIXES:
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
cd $(top_builddir) \
&& CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in
cd $(srcdir) && $(ACLOCAL)
config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
$(SHELL) ./config.status --recheck
$(srcdir)/configure: @MAINTAINER_MODE_TRUE@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
cd $(srcdir) && $(AUTOCONF)
config.h: stamp-h
@if test ! -f $@; then \
rm -f stamp-h; \
$(MAKE) stamp-h; \
else :; fi
stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status
cd $(top_builddir) \
&& CONFIG_FILES= CONFIG_HEADERS=config.h \
$(SHELL) ./config.status
@echo timestamp > stamp-h 2> /dev/null
$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@$(srcdir)/stamp-h.in
@if test ! -f $@; then \
rm -f $(srcdir)/stamp-h.in; \
$(MAKE) $(srcdir)/stamp-h.in; \
else :; fi
$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4)
cd $(top_srcdir) && $(AUTOHEADER)
@echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null
mostlyclean-hdr:
clean-hdr:
distclean-hdr:
-rm -f config.h
maintainer-clean-hdr:
# This directory's subdirectories are mostly independent; you can cd
# into them and run `make' without going through this Makefile.
# To change the values of `make' variables: instead of editing Makefiles,
# (1) if the variable is set in `config.status', edit `config.status'
# (which will cause the Makefiles to be regenerated when you run `make');
# (2) otherwise, pass the desired values on the `make' command line.
@SET_MAKE@
all-recursive install-data-recursive install-exec-recursive \
installdirs-recursive install-recursive uninstall-recursive \
check-recursive installcheck-recursive info-recursive dvi-recursive:
@set fnord $(MAKEFLAGS); amf=$$2; \
dot_seen=no; \
target=`echo $@ | sed s/-recursive//`; \
list='$(SUBDIRS)'; for subdir in $$list; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
dot_seen=yes; \
local_target="$$target-am"; \
else \
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
done; \
if test "$$dot_seen" = "no"; then \
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
fi; test -z "$$fail"
mostlyclean-recursive clean-recursive distclean-recursive \
maintainer-clean-recursive:
@set fnord $(MAKEFLAGS); amf=$$2; \
dot_seen=no; \
rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
rev="$$subdir $$rev"; \
test "$$subdir" = "." && dot_seen=yes; \
done; \
test "$$dot_seen" = "no" && rev=". $$rev"; \
target=`echo $@ | sed s/-recursive//`; \
for subdir in $$rev; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
local_target="$$target-am"; \
else \
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
done && test -z "$$fail"
tags-recursive:
list='$(SUBDIRS)'; for subdir in $$list; do \
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
done
tags: TAGS
ID: $(HEADERS) $(SOURCES) $(LISP)
list='$(SOURCES) $(HEADERS)'; \
unique=`for i in $$list; do echo $$i; done | \
awk ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
here=`pwd` && cd $(srcdir) \
&& mkid -f$$here/ID $$unique $(LISP)
TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) $(LISP)
tags=; \
here=`pwd`; \
list='$(SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
fi; \
done; \
list='$(SOURCES) $(HEADERS)'; \
unique=`for i in $$list; do echo $$i; done | \
awk ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
|| (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) -o $$here/TAGS)
mostlyclean-tags:
clean-tags:
distclean-tags:
-rm -f TAGS ID
maintainer-clean-tags:
distdir = $(PACKAGE)-$(VERSION)
top_distdir = $(distdir)
# This target untars the dist file and tries a VPATH configuration. Then
# it guarantees that the distribution is self-contained by making another
# tarfile.
distcheck: dist
-rm -rf $(distdir)
GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
mkdir $(distdir)/=build
mkdir $(distdir)/=inst
dc_install_base=`cd $(distdir)/=inst && pwd`; \
cd $(distdir)/=build \
&& ../configure --srcdir=.. --prefix=$$dc_install_base \
&& $(MAKE) $(AM_MAKEFLAGS) \
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
&& $(MAKE) $(AM_MAKEFLAGS) check \
&& $(MAKE) $(AM_MAKEFLAGS) install \
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
&& $(MAKE) $(AM_MAKEFLAGS) dist
-rm -rf $(distdir)
@banner="$(distdir).tar.gz is ready for distribution"; \
dashes=`echo "$$banner" | sed s/./=/g`; \
echo "$$dashes"; \
echo "$$banner"; \
echo "$$dashes"
dist: distdir
-chmod -R a+r $(distdir)
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
-rm -rf $(distdir)
dist-all: distdir
-chmod -R a+r $(distdir)
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
-rm -rf $(distdir)
distdir: $(DISTFILES)
-rm -rf $(distdir)
mkdir $(distdir)
-chmod 777 $(distdir)
here=`cd $(top_builddir) && pwd`; \
top_distdir=`cd $(distdir) && pwd`; \
distdir=`cd $(distdir) && pwd`; \
cd $(top_srcdir) \
&& $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu Makefile
@for file in $(DISTFILES); do \
d=$(srcdir); \
if test -d $$d/$$file; then \
cp -pr $$d/$$file $(distdir)/$$file; \
else \
test -f $(distdir)/$$file \
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|| cp -p $$d/$$file $(distdir)/$$file || :; \
fi; \
done
for subdir in $(SUBDIRS); do \
if test "$$subdir" = .; then :; else \
test -d $(distdir)/$$subdir \
|| mkdir $(distdir)/$$subdir \
|| exit 1; \
chmod 777 $(distdir)/$$subdir; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
|| exit 1; \
fi; \
done
info-am:
info: info-recursive
dvi-am:
dvi: dvi-recursive
check-am: all-am
check: check-recursive
installcheck-am:
installcheck: installcheck-recursive
all-recursive-am: config.h
$(MAKE) $(AM_MAKEFLAGS) all-recursive
install-exec-am:
install-exec: install-exec-recursive
install-data-am:
install-data: install-data-recursive
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
install: install-recursive
uninstall-am:
uninstall: uninstall-recursive
all-am: Makefile config.h
all-redirect: all-recursive-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_STRIP_FLAG=-s install
installdirs: installdirs-recursive
installdirs-am:
mostlyclean-generic:
clean-generic:
distclean-generic:
-rm -f Makefile $(CONFIG_CLEAN_FILES)
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
maintainer-clean-generic:
mostlyclean-am: mostlyclean-hdr mostlyclean-tags mostlyclean-generic
mostlyclean: mostlyclean-recursive
clean-am: clean-hdr clean-tags clean-generic mostlyclean-am
clean: clean-recursive
distclean-am: distclean-hdr distclean-tags distclean-generic clean-am
-rm -f libtool
distclean: distclean-recursive
-rm -f config.status
maintainer-clean-am: maintainer-clean-hdr maintainer-clean-tags \
maintainer-clean-generic distclean-am
@echo "This command is intended for maintainers to use;"
@echo "it deletes files that may require special tools to rebuild."
maintainer-clean: maintainer-clean-recursive
-rm -f config.status
.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
install-data-recursive uninstall-data-recursive install-exec-recursive \
uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \
all-recursive check-recursive installcheck-recursive info-recursive \
dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \
maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
dvi-am dvi check check-am installcheck-am installcheck all-recursive-am \
install-exec-am install-exec install-data-am install-data install-am \
install uninstall-am uninstall all-redirect all-am all installdirs-am \
installdirs mostlyclean-generic distclean-generic clean-generic \
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

View File

@ -1,60 +0,0 @@
General
=======
Ever wanted to use html pages in your app?
Show your help-pages in a fancy way?
Now it's all possible. GtkMozilla is a widget that makes it easy
to embedd the layout engine from the Mozilla project in any Gtk+
program.
Note that Mozilla is a work in progress, and if you use a later
(or earlier) version of the Mozilla sources you might need to
do some small changes.
The tree i've been using is from cvs checked out May 18 1999.
Compilation
===========
To compile GtkMozilla you need a compiled version of the Mozilla
source tree. Then you just need to run configure and point it at
your mozilla directory.
Something like this:
./configure --with-mozilla=/dir/where/mozilla/is
This builds the basic GtkMozilla library and two examples.
Note:
If you use a later version than me you might need to update
the nsSetupRegistry.cpp file. It is just a copy of
mozilla/webshell/tests/viewer/nsSetupRegistry.cpp
in the Mozilla source tree.
Examples
========
When you compiled GtkMozilla two examples are built, simplebrowser
and helpbrowser. simplebrowser is a small app that can be used to
browse the web. helpbrowser is a small demo of how GtkMozilla could
be used to add help facilities to an app. It contains some demo
text taken from the gdb info pages.
To run the demos (or any program using GtkMozilla) you need to
set some enviroment variables. These help mozilla locating
libraries and datafiles it needs.
If you're running bash, just type something like this (replace the dir
name):
export LD_LIBRARY_PATH=/dir/where/mozilla/is/dist/bin
export MOZILLA_FIVE_HOME=/dir/where/mozilla/is/dist/bin
Then try out the examples:
examples/simplebrowser/simplebrowser
and
examples/helpbrowser/helpbrowser

View File

@ -1,966 +0,0 @@
dnl aclocal.m4 generated automatically by aclocal 1.4a
dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
dnl This program is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
dnl PARTICULAR PURPOSE.
# Do all the work for Automake. This macro actually does too much --
# some checks are only needed if your package does certain things.
# But this isn't really a big deal.
# serial 1
dnl Usage:
dnl AM_INIT_AUTOMAKE(package,version, [no-define])
AC_DEFUN(AM_INIT_AUTOMAKE,
[AC_REQUIRE([AC_PROG_INSTALL])
dnl We require 2.13 because we rely on SHELL being computed by configure.
AC_PREREQ([2.13])
PACKAGE=[$1]
AC_SUBST(PACKAGE)
VERSION=[$2]
AC_SUBST(VERSION)
dnl test to see if srcdir already configured
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
fi
ifelse([$3],,
AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
AC_REQUIRE([AM_SANITY_CHECK])
AC_REQUIRE([AC_ARG_PROGRAM])
dnl FIXME This is truly gross.
missing_dir=`cd $ac_aux_dir && pwd`
AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
AC_REQUIRE([AC_PROG_MAKE_SET])])
#
# Check to make sure that the build environment is sane.
#
AC_DEFUN(AM_SANITY_CHECK,
[AC_MSG_CHECKING([whether build environment is sane])
# Just in case
sleep 1
echo timestamp > conftestfile
# Do `set' in a subshell so we don't clobber the current shell's
# arguments. Must try -L first in case configure is actually a
# symlink; some systems play weird games with the mod time of symlinks
# (eg FreeBSD returns the mod time of the symlink's containing
# directory).
if (
set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
if test "[$]*" = "X"; then
# -L didn't work.
set X `ls -t $srcdir/configure conftestfile`
fi
if test "[$]*" != "X $srcdir/configure conftestfile" \
&& test "[$]*" != "X conftestfile $srcdir/configure"; then
# If neither matched, then we have a broken ls. This can happen
# if, for instance, CONFIG_SHELL is bash and it inherits a
# broken ls alias from the environment. This has actually
# happened. Such a system could not be considered "sane".
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
alias in your environment])
fi
test "[$]2" = conftestfile
)
then
# Ok.
:
else
AC_MSG_ERROR([newly created file is older than distributed files!
Check your system clock])
fi
rm -f conftest*
AC_MSG_RESULT(yes)])
dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
dnl The program must properly implement --version.
AC_DEFUN(AM_MISSING_PROG,
[AC_MSG_CHECKING(for working $2)
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf. Sigh.
if ($2 --version) < /dev/null > /dev/null 2>&1; then
$1=$2
AC_MSG_RESULT(found)
else
$1="$3/missing $2"
AC_MSG_RESULT(missing)
fi
AC_SUBST($1)])
# Like AC_CONFIG_HEADER, but automatically create stamp file.
AC_DEFUN(AM_CONFIG_HEADER,
[AC_PREREQ([2.12])
AC_CONFIG_HEADER([$1])
dnl When config.status generates a header, we must update the stamp-h file.
dnl This file resides in the same directory as the config header
dnl that is generated. We must strip everything past the first ":",
dnl and everything past the last "/".
AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
<<am_indx=1
for am_file in <<$1>>; do
case " <<$>>CONFIG_HEADERS " in
*" <<$>>am_file "*<<)>>
echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
;;
esac
am_indx=`expr "<<$>>am_indx" + 1`
done<<>>dnl>>)
changequote([,]))])
# Add --enable-maintainer-mode option to configure.
# From Jim Meyering
# serial 1
AC_DEFUN(AM_MAINTAINER_MODE,
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
dnl maintainer-mode is disabled by default
AC_ARG_ENABLE(maintainer-mode,
[ --enable-maintainer-mode enable make rules and dependencies not useful
(and sometimes confusing) to the casual installer],
USE_MAINTAINER_MODE=$enableval,
USE_MAINTAINER_MODE=no)
AC_MSG_RESULT($USE_MAINTAINER_MODE)
AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes)
MAINT=$MAINTAINER_MODE_TRUE
AC_SUBST(MAINT)dnl
]
)
# Define a conditional.
AC_DEFUN(AM_CONDITIONAL,
[AC_SUBST($1_TRUE)
AC_SUBST($1_FALSE)
if $2; then
$1_TRUE=
$1_FALSE='#'
else
$1_TRUE='#'
$1_FALSE=
fi])
# serial 35 AC_PROG_LIBTOOL
AC_DEFUN(AC_PROG_LIBTOOL,
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
# Save cache, so that ltconfig can load it
AC_CACHE_SAVE
# Actually configure libtool. ac_aux_dir is where install-sh is found.
CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
DLLTOOL="$DLLTOOL" AS="$AS" \
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
|| AC_MSG_ERROR([libtool configure failed])
# Reload cache, that may have been modified by ltconfig
AC_CACHE_LOAD
# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
AC_SUBST(LIBTOOL)dnl
# Redirect the config.log output again, so that the ltconfig log is not
# clobbered by the next message.
exec 5>>./config.log
])
AC_DEFUN(AC_LIBTOOL_SETUP,
[AC_PREREQ(2.13)dnl
AC_REQUIRE([AC_ENABLE_SHARED])dnl
AC_REQUIRE([AC_ENABLE_STATIC])dnl
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
AC_REQUIRE([AC_CANONICAL_HOST])dnl
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
AC_REQUIRE([AC_PROG_RANLIB])dnl
AC_REQUIRE([AC_PROG_CC])dnl
AC_REQUIRE([AC_PROG_LD])dnl
AC_REQUIRE([AC_PROG_NM])dnl
AC_REQUIRE([AC_SYS_NM_PARSE])dnl
AC_REQUIRE([AC_SYS_SYMBOL_UNDERSCORE])dnl
AC_REQUIRE([AC_PROG_LN_S])dnl
dnl
# Check for any special flags to pass to ltconfig.
#
# the following will cause an existing older ltconfig to fail, so
# we ignore this at the expense of the cache file... Checking this
# will just take longer ... bummer!
#libtool_flags="--cache-file=$cache_file"
#
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
test "$lt_dlopen" = yes && libtool_flags="$libtool_flags --enable-dlopen"
test "$silent" = yes && libtool_flags="$libtool_flags --silent"
test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
# Some flags need to be propagated to the compiler or linker for good
# libtool support.
case "$host" in
*-*-irix6*)
# Find out which ABI we are using.
echo '[#]line __oline__ "configure"' > conftest.$ac_ext
if AC_TRY_EVAL(ac_compile); then
case "`/usr/bin/file conftest.o`" in
*32-bit*)
LD="${LD-ld} -32"
;;
*N32*)
LD="${LD-ld} -n32"
;;
*64-bit*)
LD="${LD-ld} -64"
;;
esac
fi
rm -rf conftest*
;;
*-*-sco3.2v5*)
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
SAVE_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -belf"
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
[AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])])
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
CFLAGS="$SAVE_CFLAGS"
fi
;;
*-*-cygwin*)
AC_SYS_LIBTOOL_CYGWIN
;;
esac
# enable the --disable-libtool-lock switch
AC_ARG_ENABLE(libtool-lock,
[ --disable-libtool-lock force libtool not to do file locking],
need_locks=$enableval,
need_locks=yes)
if test x"$need_locks" = xno; then
libtool_flags="$libtool_flags --disable-lock"
fi
])
# AC_LIBTOOL_DLOPEN - check for dlopen support
AC_DEFUN(AC_LIBTOOL_DLOPEN, [lt_dlopen=yes])
# AC_ENABLE_SHARED - implement the --enable-shared flag
# Usage: AC_ENABLE_SHARED[(DEFAULT)]
# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
# `yes'.
AC_DEFUN(AC_ENABLE_SHARED,
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
AC_ARG_ENABLE(shared,
changequote(<<, >>)dnl
<< --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
changequote([, ])dnl
[p=${PACKAGE-default}
case "$enableval" in
yes) enable_shared=yes ;;
no) enable_shared=no ;;
*)
enable_shared=no
# Look at the argument we got. We use all the common list separators.
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
for pkg in $enableval; do
if test "X$pkg" = "X$p"; then
enable_shared=yes
fi
done
IFS="$ac_save_ifs"
;;
esac],
enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
])
# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
AC_DEFUN(AC_DISABLE_SHARED,
[AC_ENABLE_SHARED(no)])
# AC_ENABLE_STATIC - implement the --enable-static flag
# Usage: AC_ENABLE_STATIC[(DEFAULT)]
# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
# `yes'.
AC_DEFUN(AC_ENABLE_STATIC,
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
AC_ARG_ENABLE(static,
changequote(<<, >>)dnl
<< --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
changequote([, ])dnl
[p=${PACKAGE-default}
case "$enableval" in
yes) enable_static=yes ;;
no) enable_static=no ;;
*)
enable_static=no
# Look at the argument we got. We use all the common list separators.
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
for pkg in $enableval; do
if test "X$pkg" = "X$p"; then
enable_static=yes
fi
done
IFS="$ac_save_ifs"
;;
esac],
enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
])
# AC_DISABLE_STATIC - set the default static flag to --disable-static
AC_DEFUN(AC_DISABLE_STATIC,
[AC_ENABLE_STATIC(no)])
# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
# `yes'.
AC_DEFUN(AC_ENABLE_FAST_INSTALL,
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
AC_ARG_ENABLE(fast-install,
changequote(<<, >>)dnl
<< --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
changequote([, ])dnl
[p=${PACKAGE-default}
case "$enableval" in
yes) enable_fast_install=yes ;;
no) enable_fast_install=no ;;
*)
enable_fast_install=no
# Look at the argument we got. We use all the common list separators.
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
for pkg in $enableval; do
if test "X$pkg" = "X$p"; then
enable_fast_install=yes
fi
done
IFS="$ac_save_ifs"
;;
esac],
enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
])
# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
AC_DEFUN(AC_DISABLE_FAST_INSTALL,
[AC_ENABLE_FAST_INSTALL(no)])
# AC_PROG_LD - find the path to the GNU or non-GNU linker
AC_DEFUN(AC_PROG_LD,
[AC_ARG_WITH(gnu-ld,
[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
AC_REQUIRE([AC_PROG_CC])dnl
AC_REQUIRE([AC_CANONICAL_HOST])dnl
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
ac_prog=ld
if test "$ac_cv_prog_gcc" = yes; then
# Check if gcc -print-prog-name=ld gives a path.
AC_MSG_CHECKING([for ld used by GCC])
ac_prog=`($CC -print-prog-name=ld) 2>&5`
case "$ac_prog" in
# Accept absolute paths.
changequote(,)dnl
/* | [A-Za-z]:[\\/]*)
re_direlt='/[^/][^/]*/\.\./'
changequote([,])dnl
# Canonicalize the path of ld
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
done
test -z "$LD" && LD="$ac_prog"
;;
"")
# If it fails, then pretend we aren't using GCC.
ac_prog=ld
;;
*)
# If it is relative, then search for the first ld in PATH.
with_gnu_ld=unknown
;;
esac
elif test "$with_gnu_ld" = yes; then
AC_MSG_CHECKING([for GNU ld])
else
AC_MSG_CHECKING([for non-GNU ld])
fi
AC_CACHE_VAL(ac_cv_path_LD,
[if test -z "$LD"; then
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
for ac_dir in $PATH; do
test -z "$ac_dir" && ac_dir=.
if test -f "$ac_dir/$ac_prog"; then
ac_cv_path_LD="$ac_dir/$ac_prog"
# Check to see if the program is GNU ld. I'd rather use --version,
# but apparently some GNU ld's only accept -v.
# Break only if it was the GNU/non-GNU ld that we prefer.
if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
test "$with_gnu_ld" != no && break
else
test "$with_gnu_ld" != yes && break
fi
fi
done
IFS="$ac_save_ifs"
else
ac_cv_path_LD="$LD" # Let the user override the test with a path.
fi])
LD="$ac_cv_path_LD"
if test -n "$LD"; then
AC_MSG_RESULT($LD)
else
AC_MSG_RESULT(no)
fi
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
AC_SUBST(LD)
AC_PROG_LD_GNU
])
AC_DEFUN(AC_PROG_LD_GNU,
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
ac_cv_prog_gnu_ld=yes
else
ac_cv_prog_gnu_ld=no
fi])
])
# AC_PROG_NM - find the path to a BSD-compatible name lister
AC_DEFUN(AC_PROG_NM,
[AC_MSG_CHECKING([for BSD-compatible nm])
AC_CACHE_VAL(ac_cv_path_NM,
[if test -n "$NM"; then
# Let the user override the test.
ac_cv_path_NM="$NM"
else
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/nm; then
# Check to see if the nm accepts a BSD-compat flag.
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
# nm: unknown option "B" ignored
if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
ac_cv_path_NM="$ac_dir/nm -B"
break
elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
ac_cv_path_NM="$ac_dir/nm -p"
break
else
ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
continue # so that we can try to find one that supports BSD flags
fi
fi
done
IFS="$ac_save_ifs"
test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
fi])
NM="$ac_cv_path_NM"
AC_MSG_RESULT([$NM])
AC_SUBST(NM)
])
# AC_SYS_NM_PARSE - Check for command to grab the raw symbol name followed
# by C symbol name from nm.
AC_DEFUN(AC_SYS_NM_PARSE,
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
AC_REQUIRE([AC_PROG_NM])dnl
# Check for command to grab the raw symbol name followed by C symbol from nm.
AC_MSG_CHECKING([command to parse $NM output])
AC_CACHE_VAL(ac_cv_sys_global_symbol_pipe,
[# These are sane defaults that work on at least a few old systems.
# {They come from Ultrix. What could be older than Ultrix?!! ;)}
changequote(,)dnl
# Character class describing NM global symbol codes.
ac_symcode='[BCDEGRST]'
# Regexp to match symbols that can be accessed directly from C.
ac_sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
# Transform the above into a raw symbol and a C symbol.
ac_symxfrm='\1 \2\3 \3'
# Transform an extracted symbol line into a proper C declaration
ac_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
# Define system-specific variables.
case "$host_os" in
aix*)
ac_symcode='[BCDT]'
;;
cygwin* | mingw*)
ac_symcode='[ABCDGISTW]'
;;
hpux*)
ac_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
;;
irix*)
ac_symcode='[BCDEGRST]'
;;
solaris*)
ac_symcode='[BDT]'
;;
esac
# If we're using GNU nm, then use its standard symbol codes.
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
ac_symcode='[ABCDGISTW]'
fi
changequote([,])dnl
# Try without a prefix undercore, then with it.
for ac_symprfx in "" "_"; do
ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($ac_symcode\)[ ][ ]*\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'"
# Check to see that the pipe works correctly.
ac_pipe_works=no
rm -f conftest.$ac_ext
cat > conftest.$ac_ext <<EOF
#ifdef __cplusplus
extern "C" {
#endif
char nm_test_var;
void nm_test_func(){}
#ifdef __cplusplus
}
#endif
int main(){nm_test_var='a';nm_test_func;return 0;}
EOF
if AC_TRY_EVAL(ac_compile); then
# Now try to grab the symbols.
ac_nlist=conftest.nm
if AC_TRY_EVAL(NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) && test -s "$ac_nlist"; then
# Try sorting and uniquifying the output.
if sort "$ac_nlist" | uniq > "$ac_nlist"T; then
mv -f "$ac_nlist"T "$ac_nlist"
else
rm -f "$ac_nlist"T
fi
# Make sure that we snagged all the symbols we need.
if egrep ' nm_test_var$' "$ac_nlist" >/dev/null; then
if egrep ' nm_test_func$' "$ac_nlist" >/dev/null; then
cat <<EOF > conftest.c
#ifdef __cplusplus
extern "C" {
#endif
EOF
# Now generate the symbol file.
eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c'
cat <<EOF >> conftest.c
#if defined (__STDC__) && __STDC__
# define lt_ptr_t void *
#else
# define lt_ptr_t char *
# define const
#endif
/* The mapping between symbol names and symbols. */
const struct {
const char *name;
lt_ptr_t address;
}
changequote(,)dnl
lt_preloaded_symbols[] =
changequote([,])dnl
{
EOF
sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
cat <<\EOF >> conftest.c
{0, (lt_ptr_t) 0}
};
#ifdef __cplusplus
}
#endif
EOF
# Now try linking the two files.
mv conftest.$ac_objext conftestm.$ac_objext
ac_save_LIBS="$LIBS"
ac_save_CFLAGS="$CFLAGS"
LIBS="conftestm.$ac_objext"
CFLAGS="$CFLAGS$no_builtin_flag"
if AC_TRY_EVAL(ac_link) && test -s conftest; then
ac_pipe_works=yes
else
echo "configure: failed program was:" >&AC_FD_CC
cat conftest.c >&AC_FD_CC
fi
LIBS="$ac_save_LIBS"
CFLAGS="$ac_save_CFLAGS"
else
echo "cannot find nm_test_func in $ac_nlist" >&AC_FD_CC
fi
else
echo "cannot find nm_test_var in $ac_nlist" >&AC_FD_CC
fi
else
echo "cannot run $ac_cv_sys_global_symbol_pipe" >&AC_FD_CC
fi
else
echo "$progname: failed program was:" >&AC_FD_CC
cat conftest.c >&AC_FD_CC
fi
rm -rf conftest*
# Do not use the global_symbol_pipe unless it works.
if test "$ac_pipe_works" = yes; then
if test x"$ac_symprfx" = x"_"; then
ac_cv_sys_symbol_underscore=yes
else
ac_cv_sys_symbol_underscore=no
fi
break
else
ac_cv_sys_global_symbol_pipe=
fi
done
])
ac_result=yes
if test -z "$ac_cv_sys_global_symbol_pipe"; then
ac_result=no
fi
AC_MSG_RESULT($ac_result)
])
# AC_SYS_LIBTOOL_CYGWIN - find tools needed on cygwin
AC_DEFUN(AC_SYS_LIBTOOL_CYGWIN,
[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
AC_CHECK_TOOL(AS, as, false)
])
# AC_SYS_SYMBOL_UNDERSCORE - does the compiler prefix global symbols
# with an underscore?
AC_DEFUN(AC_SYS_SYMBOL_UNDERSCORE,
[AC_REQUIRE([AC_PROG_NM])dnl
AC_REQUIRE([AC_SYS_NM_PARSE])dnl
AC_MSG_CHECKING([for _ prefix in compiled symbols])
AC_CACHE_VAL(ac_cv_sys_symbol_underscore,
[ac_cv_sys_symbol_underscore=no
cat > conftest.$ac_ext <<EOF
void nm_test_func(){}
int main(){nm_test_func;return 0;}
EOF
if AC_TRY_EVAL(ac_compile); then
# Now try to grab the symbols.
ac_nlist=conftest.nm
if AC_TRY_EVAL(NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) && test -s "$ac_nlist"; then
# See whether the symbols have a leading underscore.
if egrep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
ac_cv_sys_symbol_underscore=yes
else
if egrep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
:
else
echo "configure: cannot find nm_test_func in $ac_nlist" >&AC_FD_CC
fi
fi
else
echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&AC_FD_CC
fi
else
echo "configure: failed program was:" >&AC_FD_CC
cat conftest.c >&AC_FD_CC
fi
rm -rf conftest*
])
AC_MSG_RESULT($ac_cv_sys_symbol_underscore)
USE_SYMBOL_UNDERSCORE=${ac_cv_sys_symbol_underscore=no}
AC_SUBST(USE_SYMBOL_UNDERSCORE)dnl
])
# AC_CHECK_LIBM - check for math library
AC_DEFUN(AC_CHECK_LIBM, [
AC_CHECK_LIB(mw, _mwvalidcheckl)
AC_CHECK_LIB(m, cos)
])
# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
# the libltdl convenience library, adds --enable-ltdl-convenience to
# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
# to be `${top_builddir}/libltdl'. Make sure you start DIR with
# '${top_builddir}/' (note the single quotes!) if your package is not
# flat, and, if you're not using automake, define top_builddir as
# appropriate in the Makefiles.
AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [
case "$enable_ltdl_convenience" in
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
"") enable_ltdl_convenience=yes
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
esac
LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdlc.la
])
# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
# the libltdl installable library, and adds --enable-ltdl-install to
# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
# to be `${top_builddir}/libltdl'. Make sure you start DIR with
# '${top_builddir}/' (note the single quotes!) if your package is not
# flat, and, if you're not using automake, define top_builddir as
# appropriate in the Makefiles.
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [
AC_CHECK_LIB(ltdl, main, LIBLTDL="-lltdl", [
case "$enable_ltdl_install" in
no) AC_MSG_WARN([libltdl not installed, but installation disabled]) ;;
"") enable_ltdl_install=yes
ac_configure_args="$ac_configure_args --enable-ltdl-install" ;;
esac
])
if test x"$enable_ltdl_install" != x"no"; then
LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdl.la
fi
])
dnl old names
AC_DEFUN(AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnl
AC_DEFUN(AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnl
AC_DEFUN(AM_ENABLE_STATIC, [indir([AC_ENABLE_STATIC], $@)])dnl
AC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl
AC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl
AC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnl
AC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnl
AC_DEFUN(AM_SYS_NM_PARSE, [indir([AC_SYS_NM_PARSE])])dnl
AC_DEFUN(AM_SYS_SYMBOL_UNDERSCORE, [indir([AC_SYS_SYMBOL_UNDERSCORE])])dnl
AC_DEFUN(AM_SYS_LIBTOOL_CYGWIN, [indir([AC_SYS_LIBTOOL_CYGWIN])])dnl
# Configure paths for GTK+
# Owen Taylor 97-11-3
dnl AM_PATH_GTK([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
dnl Test for GTK, and define GTK_CFLAGS and GTK_LIBS
dnl
AC_DEFUN(AM_PATH_GTK,
[dnl
dnl Get the cflags and libraries from the gtk-config script
dnl
AC_ARG_WITH(gtk-prefix,[ --with-gtk-prefix=PFX Prefix where GTK is installed (optional)],
gtk_config_prefix="$withval", gtk_config_prefix="")
AC_ARG_WITH(gtk-exec-prefix,[ --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)],
gtk_config_exec_prefix="$withval", gtk_config_exec_prefix="")
AC_ARG_ENABLE(gtktest, [ --disable-gtktest Do not try to compile and run a test GTK program],
, enable_gtktest=yes)
for module in . $4
do
case "$module" in
gthread)
gtk_config_args="$gtk_config_args gthread"
;;
esac
done
if test x$gtk_config_exec_prefix != x ; then
gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
if test x${GTK_CONFIG+set} != xset ; then
GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
fi
fi
if test x$gtk_config_prefix != x ; then
gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
if test x${GTK_CONFIG+set} != xset ; then
GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
fi
fi
AC_PATH_PROG(GTK_CONFIG, gtk-config, no)
min_gtk_version=ifelse([$1], ,0.99.7,$1)
AC_MSG_CHECKING(for GTK - version >= $min_gtk_version)
no_gtk=""
if test "$GTK_CONFIG" = "no" ; then
no_gtk=yes
else
GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
if test "x$enable_gtktest" = "xyes" ; then
ac_save_CFLAGS="$CFLAGS"
ac_save_LIBS="$LIBS"
CFLAGS="$CFLAGS $GTK_CFLAGS"
LIBS="$GTK_LIBS $LIBS"
dnl
dnl Now check if the installed GTK is sufficiently new. (Also sanity
dnl checks the results of gtk-config to some extent
dnl
rm -f conf.gtktest
AC_TRY_RUN([
#include <gtk/gtk.h>
#include <stdio.h>
#include <stdlib.h>
int
main ()
{
int major, minor, micro;
char *tmp_version;
system ("touch conf.gtktest");
/* HP/UX 9 (%@#!) writes to sscanf strings */
tmp_version = g_strdup("$min_gtk_version");
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
printf("%s, bad version string\n", "$min_gtk_version");
exit(1);
}
if ((gtk_major_version != $gtk_config_major_version) ||
(gtk_minor_version != $gtk_config_minor_version) ||
(gtk_micro_version != $gtk_config_micro_version))
{
printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
$gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
gtk_major_version, gtk_minor_version, gtk_micro_version);
printf ("*** was found! If gtk-config was correct, then it is best\n");
printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
printf("*** required on your system.\n");
printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
printf("*** before re-running configure\n");
}
#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
(gtk_minor_version != GTK_MINOR_VERSION) ||
(gtk_micro_version != GTK_MICRO_VERSION))
{
printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
printf("*** library (version %d.%d.%d)\n",
gtk_major_version, gtk_minor_version, gtk_micro_version);
}
#endif /* defined (GTK_MAJOR_VERSION) ... */
else
{
if ((gtk_major_version > major) ||
((gtk_major_version == major) && (gtk_minor_version > minor)) ||
((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
{
return 0;
}
else
{
printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
gtk_major_version, gtk_minor_version, gtk_micro_version);
printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
major, minor, micro);
printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
printf("***\n");
printf("*** If you have already installed a sufficiently new version, this error\n");
printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
printf("*** being found. The easiest way to fix this is to remove the old version\n");
printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
printf("*** correct copy of gtk-config. (In this case, you will have to\n");
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
printf("*** so that the correct libraries are found at run-time))\n");
}
}
return 1;
}
],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
CFLAGS="$ac_save_CFLAGS"
LIBS="$ac_save_LIBS"
fi
fi
if test "x$no_gtk" = x ; then
AC_MSG_RESULT(yes)
ifelse([$2], , :, [$2])
else
AC_MSG_RESULT(no)
if test "$GTK_CONFIG" = "no" ; then
echo "*** The gtk-config script installed by GTK could not be found"
echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
echo "*** your path, or set the GTK_CONFIG environment variable to the"
echo "*** full path to gtk-config."
else
if test -f conf.gtktest ; then
:
else
echo "*** Could not run GTK test program, checking why..."
CFLAGS="$CFLAGS $GTK_CFLAGS"
LIBS="$LIBS $GTK_LIBS"
AC_TRY_LINK([
#include <gtk/gtk.h>
#include <stdio.h>
], [ return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ],
[ echo "*** The test program compiled, but did not run. This usually means"
echo "*** that the run-time linker is not finding GTK or finding the wrong"
echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
echo "*** to the installed location Also, make sure you have run ldconfig if that"
echo "*** is required on your system"
echo "***"
echo "*** If you have an old version installed, it is best to remove it, although"
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
echo "***"
echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
echo "*** came with the system with the command"
echo "***"
echo "*** rpm --erase --nodeps gtk gtk-devel" ],
[ echo "*** The test program failed to compile or link. See the file config.log for the"
echo "*** exact error that occured. This usually means GTK was incorrectly installed"
echo "*** or that you have moved GTK since it was installed. In the latter case, you"
echo "*** may want to edit the gtk-config script: $GTK_CONFIG" ])
CFLAGS="$ac_save_CFLAGS"
LIBS="$ac_save_LIBS"
fi
fi
GTK_CFLAGS=""
GTK_LIBS=""
ifelse([$3], , :, [$3])
fi
AC_SUBST(GTK_CFLAGS)
AC_SUBST(GTK_LIBS)
rm -f conf.gtktest
])

File diff suppressed because it is too large Load Diff

View File

@ -1,14 +0,0 @@
/* config.h.in. Generated automatically from configure.in by autoheader. */
/* Define to empty if the keyword does not work. */
#undef const
/* Define if you need to in order for stat and other things to work. */
#undef _POSIX_SOURCE
/* Name of package */
#undef PACKAGE
/* Version number of package */
#undef VERSION

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,141 +0,0 @@
AC_INIT(lib/gtkmozilla.h)
AM_INIT_AUTOMAKE(gtkmozilla, 0.1)
dnl Specify a header configuration file
AM_CONFIG_HEADER(config.h)
dnl Initialize maintainer mode
AM_MAINTAINER_MODE
dnl Initialize libtool
AM_DISABLE_STATIC
AM_PROG_LIBTOOL
dnl Build time sanity check
AM_SANITY_CHECK
dnl Checks for programs.
AC_PROG_CC
AC_PROG_CXX
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_ISC_POSIX
dnl Checks for libraries.
AM_PATH_GTK(1.2.0)
AC_CHECK_LIB(pthread, pthread_attr_init,
USE_PTHREADS=1 LIBPTHREAD="-lpthread")
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_ARG_ENABLE(debug,
[ --enable-debug=[no/minimum/yes] turn on debugging [default=minimum]],
,
enable_debug=minimum)
if test "x$enable_debug" = "xyes"; then
DEBUG_FLAGS="-g -DENABLE_DEBUG"
else
if test "x$enable_debug" = "xno"; then
DEBUG_FLAGS=""
else
DEBUG_FLAGS=""
fi
fi
AC_SUBST(DEBUG_FLAGS)
dnl Check for Mozilla.
dnl ========================================================
AC_ARG_WITH(mozilla,
[ --with-mozilla=\$dir location of mozilla directory],
MOZ_DIR=$withval,
AC_MSG_ERROR(You must specify where mozilla lives with --with-mozilla.))
MOZILLA_DIR="${MOZ_DIR}"
AC_ARG_WITH(nspr,
[ --with-nspr=\$dir location of nspr headers and libs],
NSPR_DIR=$withval, NSPR_DIR=)
if test -z "$NSPR_DIR"; then
NSPR_DIR=$MOZILLA_DIR/dist
fi
NSPR_VERSION=0
AC_ARG_WITH(nspr-version,
[ --with-nspr-version=\$version
version of nspr to link against],
NSPR_VERSION=$withval)
dnl ========================================================
dnl By default, turn rtti and exceptions off on g++/egcs
dnl ========================================================
if test "$GXX" = "yes"; then
_MOZ_RTTI_FLAGS=${_COMPILER_PREFIX}-fno-rtti
AC_MSG_CHECKING(for C++ exceptions flag)
dnl They changed -f[no-]handle-exceptions to -f[no-]exceptions in g++ 2.8
AC_CACHE_VAL(ac_cv_cxx_exceptions_flags,
[echo "int main() { return 0; }" | cat > conftest.C
${CXX-g++} -c -fno-handle-exceptions conftest.C > conftest.out 2>&1
if egrep "warning.*renamed" conftest.out >/dev/null; then
ac_cv_cxx_exceptions_flags=${_COMPILER_PREFIX}-fno-exceptions
else
ac_cv_cxx_exceptions_flags=${_COMPILER_PREFIX}-fno-handle-exceptions
fi
rm -f conftest*])
AC_MSG_RESULT($ac_cv_cxx_exceptions_flags)
_MOZ_EXCEPTIONS_FLAGS=$ac_cv_cxx_exceptions_flags
fi
dnl C++ rtti (g++/egcs only - for now)
dnl Should be smarter and check that the compiler does indeed have rtti
AC_ARG_ENABLE(cpp-rtti,
[ --enable-cpp-rtti Enable C++ RTTI ],
[if test "$enableval" = "yes"; then
_MOZ_RTTI_FLAGS=${_COMPILER_PREFIX}-frtti
fi])
dnl C++ exceptions (g++/egcs only - for now)
dnl Should be smarter and check that the compiler does indeed have exceptions
AC_ARG_ENABLE(cpp-exceptions,
[ --enable-cpp-exceptions Enable C++ exceptions ],
[if test "$enableval" = "yes"; then
_MOZ_EXCEPTIONS_FLAGS=${_COMPILER_PREFIX}-fexceptions
fi])
AC_ARG_WITH(pthreads,
[ --with-pthreads use system pthread library ],
[if test "$withval" = "yes"; then
if test -z "$USE_PTHREADS"; then
AC_MSG_ERROR([ --with-pthreads specified for a system without pthread support]);
fi
else
USE_PTHREADS=
LIBPTHREAD=
fi])
CXXFLAGS="$CXXFLAGS $_MOZ_RTTI_FLAGS $_MOZ_EXCEPTIONS_FLAGS"
AC_SUBST(MOZILLA_DIR)
AC_SUBST(NSPR_DIR)
AC_SUBST(NSPR_VERSION)
AC_SUBST(LIBPTHREAD)
AC_OUTPUT(
Makefile
lib/Makefile
examples/Makefile
examples/simplebrowser/Makefile
examples/helpbrowser/Makefile
examples/helpbrowser/help_data/Makefile
)

View File

@ -1 +0,0 @@
Makefile

View File

@ -1,3 +0,0 @@
## Process this file with automake to produce Makefile.in
SUBDIRS = simplebrowser helpbrowser

View File

@ -1,298 +0,0 @@
# Makefile.in generated automatically by automake 1.4a from Makefile.am
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
SHELL = @SHELL@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
oldincludedir = /usr/include
DESTDIR =
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
top_builddir = ..
ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_FLAG =
transform = @program_transform_name@
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
host_alias = @host_alias@
host_triplet = @host@
AS = @AS@
CC = @CC@
CXX = @CXX@
DEBUG_FLAGS = @DEBUG_FLAGS@
DLLTOOL = @DLLTOOL@
GTK_CFLAGS = @GTK_CFLAGS@
GTK_CONFIG = @GTK_CONFIG@
GTK_LIBS = @GTK_LIBS@
LD = @LD@
LIBPTHREAD = @LIBPTHREAD@
LIBTOOL = @LIBTOOL@
LN_S = @LN_S@
MAINT = @MAINT@
MAKEINFO = @MAKEINFO@
MOZILLA_DIR = @MOZILLA_DIR@
NM = @NM@
NSPR_DIR = @NSPR_DIR@
NSPR_VERSION = @NSPR_VERSION@
PACKAGE = @PACKAGE@
RANLIB = @RANLIB@
USE_SYMBOL_UNDERSCORE = @USE_SYMBOL_UNDERSCORE@
VERSION = @VERSION@
SUBDIRS = simplebrowser helpbrowser
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../config.h
CONFIG_CLEAN_FILES =
DIST_COMMON = Makefile.am Makefile.in
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
TAR = gtar
GZIP_ENV = --best
all: all-redirect
.SUFFIXES:
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
cd $(top_builddir) \
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
# This directory's subdirectories are mostly independent; you can cd
# into them and run `make' without going through this Makefile.
# To change the values of `make' variables: instead of editing Makefiles,
# (1) if the variable is set in `config.status', edit `config.status'
# (which will cause the Makefiles to be regenerated when you run `make');
# (2) otherwise, pass the desired values on the `make' command line.
@SET_MAKE@
all-recursive install-data-recursive install-exec-recursive \
installdirs-recursive install-recursive uninstall-recursive \
check-recursive installcheck-recursive info-recursive dvi-recursive:
@set fnord $(MAKEFLAGS); amf=$$2; \
dot_seen=no; \
target=`echo $@ | sed s/-recursive//`; \
list='$(SUBDIRS)'; for subdir in $$list; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
dot_seen=yes; \
local_target="$$target-am"; \
else \
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
done; \
if test "$$dot_seen" = "no"; then \
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
fi; test -z "$$fail"
mostlyclean-recursive clean-recursive distclean-recursive \
maintainer-clean-recursive:
@set fnord $(MAKEFLAGS); amf=$$2; \
dot_seen=no; \
rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
rev="$$subdir $$rev"; \
test "$$subdir" = "." && dot_seen=yes; \
done; \
test "$$dot_seen" = "no" && rev=". $$rev"; \
target=`echo $@ | sed s/-recursive//`; \
for subdir in $$rev; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
local_target="$$target-am"; \
else \
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
done && test -z "$$fail"
tags-recursive:
list='$(SUBDIRS)'; for subdir in $$list; do \
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
done
tags: TAGS
ID: $(HEADERS) $(SOURCES) $(LISP)
list='$(SOURCES) $(HEADERS)'; \
unique=`for i in $$list; do echo $$i; done | \
awk ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
here=`pwd` && cd $(srcdir) \
&& mkid -f$$here/ID $$unique $(LISP)
TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
tags=; \
here=`pwd`; \
list='$(SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
fi; \
done; \
list='$(SOURCES) $(HEADERS)'; \
unique=`for i in $$list; do echo $$i; done | \
awk ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
|| (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
mostlyclean-tags:
clean-tags:
distclean-tags:
-rm -f TAGS ID
maintainer-clean-tags:
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
subdir = examples
distdir: $(DISTFILES)
here=`cd $(top_builddir) && pwd`; \
top_distdir=`cd $(top_distdir) && pwd`; \
distdir=`cd $(distdir) && pwd`; \
cd $(top_srcdir) \
&& $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu examples/Makefile
@for file in $(DISTFILES); do \
d=$(srcdir); \
if test -d $$d/$$file; then \
cp -pr $$d/$$file $(distdir)/$$file; \
else \
test -f $(distdir)/$$file \
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|| cp -p $$d/$$file $(distdir)/$$file || :; \
fi; \
done
for subdir in $(SUBDIRS); do \
if test "$$subdir" = .; then :; else \
test -d $(distdir)/$$subdir \
|| mkdir $(distdir)/$$subdir \
|| exit 1; \
chmod 777 $(distdir)/$$subdir; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(top_distdir) distdir=../$(distdir)/$$subdir distdir) \
|| exit 1; \
fi; \
done
info-am:
info: info-recursive
dvi-am:
dvi: dvi-recursive
check-am: all-am
check: check-recursive
installcheck-am:
installcheck: installcheck-recursive
install-exec-am:
install-exec: install-exec-recursive
install-data-am:
install-data: install-data-recursive
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
install: install-recursive
uninstall-am:
uninstall: uninstall-recursive
all-am: Makefile
all-redirect: all-recursive
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_STRIP_FLAG=-s install
installdirs: installdirs-recursive
installdirs-am:
mostlyclean-generic:
clean-generic:
distclean-generic:
-rm -f Makefile $(CONFIG_CLEAN_FILES)
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
maintainer-clean-generic:
mostlyclean-am: mostlyclean-tags mostlyclean-generic
mostlyclean: mostlyclean-recursive
clean-am: clean-tags clean-generic mostlyclean-am
clean: clean-recursive
distclean-am: distclean-tags distclean-generic clean-am
-rm -f libtool
distclean: distclean-recursive
maintainer-clean-am: maintainer-clean-tags maintainer-clean-generic \
distclean-am
@echo "This command is intended for maintainers to use;"
@echo "it deletes files that may require special tools to rebuild."
maintainer-clean: maintainer-clean-recursive
.PHONY: install-data-recursive uninstall-data-recursive \
install-exec-recursive uninstall-exec-recursive installdirs-recursive \
uninstalldirs-recursive all-recursive check-recursive \
installcheck-recursive info-recursive dvi-recursive \
mostlyclean-recursive distclean-recursive clean-recursive \
maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
install-exec install-data-am install-data install-am install \
uninstall-am uninstall all-redirect all-am all installdirs-am \
installdirs mostlyclean-generic distclean-generic clean-generic \
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

View File

@ -1,4 +0,0 @@
Makefile
.libs
helpbrowser
default_prefs.js

View File

@ -1,20 +0,0 @@
## Process this file with automake to produce Makefile.in
SUBDIRS = help_data
bin_PROGRAMS = helpbrowser
helpbrowser_SOURCES = \
helpbrowser.c
helpbrowser_LDADD = ../../lib/libgtkmozilla.la @GTK_LIBS@
INCLUDES = \
-I$(top_srcdir)/lib \
@DEBUG_FLAGS@ \
@GTK_CFLAGS@
HELPDATA = -DHELPDATADIR=\"`cd "$(srcdir)/help_data" && pwd`\"
CPPFLAGS = $(HELPDATA)
LDFLAGS = --export-dynamic

View File

@ -1,438 +0,0 @@
# Makefile.in generated automatically by automake 1.4a from Makefile.am
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
SHELL = @SHELL@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
oldincludedir = /usr/include
DESTDIR =
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
top_builddir = ../..
ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_FLAG =
transform = @program_transform_name@
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
host_alias = @host_alias@
host_triplet = @host@
AS = @AS@
CC = @CC@
CXX = @CXX@
DEBUG_FLAGS = @DEBUG_FLAGS@
DLLTOOL = @DLLTOOL@
GTK_CFLAGS = @GTK_CFLAGS@
GTK_CONFIG = @GTK_CONFIG@
GTK_LIBS = @GTK_LIBS@
LD = @LD@
LIBPTHREAD = @LIBPTHREAD@
LIBTOOL = @LIBTOOL@
LN_S = @LN_S@
MAINT = @MAINT@
MAKEINFO = @MAKEINFO@
MOZILLA_DIR = @MOZILLA_DIR@
NM = @NM@
NSPR_DIR = @NSPR_DIR@
NSPR_VERSION = @NSPR_VERSION@
PACKAGE = @PACKAGE@
RANLIB = @RANLIB@
USE_SYMBOL_UNDERSCORE = @USE_SYMBOL_UNDERSCORE@
VERSION = @VERSION@
SUBDIRS = help_data
bin_PROGRAMS = helpbrowser
helpbrowser_SOURCES = helpbrowser.c
helpbrowser_LDADD = ../../lib/libgtkmozilla.la @GTK_LIBS@
INCLUDES = -I$(top_srcdir)/lib @DEBUG_FLAGS@ @GTK_CFLAGS@
HELPDATA = -DHELPDATADIR=\"`cd "$(srcdir)/help_data" && pwd`\"
CPPFLAGS = $(HELPDATA)
LDFLAGS = --export-dynamic
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../../config.h
CONFIG_CLEAN_FILES =
PROGRAMS = $(bin_PROGRAMS)
DEFS = @DEFS@ -I. -I$(srcdir) -I../..
LIBS = @LIBS@
helpbrowser_OBJECTS = helpbrowser.o
helpbrowser_DEPENDENCIES = ../../lib/libgtkmozilla.la
helpbrowser_LDFLAGS =
CFLAGS = @CFLAGS@
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
DIST_COMMON = Makefile.am Makefile.in
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
TAR = gtar
GZIP_ENV = --best
DEP_FILES = .deps/helpbrowser.P
SOURCES = $(helpbrowser_SOURCES)
OBJECTS = $(helpbrowser_OBJECTS)
all: all-redirect
.SUFFIXES:
.SUFFIXES: .S .c .lo .o .s
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/helpbrowser/Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
cd $(top_builddir) \
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
mostlyclean-binPROGRAMS:
clean-binPROGRAMS:
-test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
distclean-binPROGRAMS:
maintainer-clean-binPROGRAMS:
install-binPROGRAMS: $(bin_PROGRAMS)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(bindir)
@list='$(bin_PROGRAMS)'; for p in $$list; do \
if test -f $$p; then \
echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
else :; fi; \
done
uninstall-binPROGRAMS:
@$(NORMAL_UNINSTALL)
list='$(bin_PROGRAMS)'; for p in $$list; do \
rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
done
.s.o:
$(COMPILE) -c $<
.S.o:
$(COMPILE) -c $<
mostlyclean-compile:
-rm -f *.o core *.core
clean-compile:
distclean-compile:
-rm -f *.tab.c
maintainer-clean-compile:
.s.lo:
$(LIBTOOL) --mode=compile $(COMPILE) -c $<
.S.lo:
$(LIBTOOL) --mode=compile $(COMPILE) -c $<
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
distclean-libtool:
maintainer-clean-libtool:
helpbrowser: $(helpbrowser_OBJECTS) $(helpbrowser_DEPENDENCIES)
@rm -f helpbrowser
$(LINK) $(helpbrowser_LDFLAGS) $(helpbrowser_OBJECTS) $(helpbrowser_LDADD) $(LIBS)
# This directory's subdirectories are mostly independent; you can cd
# into them and run `make' without going through this Makefile.
# To change the values of `make' variables: instead of editing Makefiles,
# (1) if the variable is set in `config.status', edit `config.status'
# (which will cause the Makefiles to be regenerated when you run `make');
# (2) otherwise, pass the desired values on the `make' command line.
@SET_MAKE@
all-recursive install-data-recursive install-exec-recursive \
installdirs-recursive install-recursive uninstall-recursive \
check-recursive installcheck-recursive info-recursive dvi-recursive:
@set fnord $(MAKEFLAGS); amf=$$2; \
dot_seen=no; \
target=`echo $@ | sed s/-recursive//`; \
list='$(SUBDIRS)'; for subdir in $$list; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
dot_seen=yes; \
local_target="$$target-am"; \
else \
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
done; \
if test "$$dot_seen" = "no"; then \
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
fi; test -z "$$fail"
mostlyclean-recursive clean-recursive distclean-recursive \
maintainer-clean-recursive:
@set fnord $(MAKEFLAGS); amf=$$2; \
dot_seen=no; \
rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
rev="$$subdir $$rev"; \
test "$$subdir" = "." && dot_seen=yes; \
done; \
test "$$dot_seen" = "no" && rev=". $$rev"; \
target=`echo $@ | sed s/-recursive//`; \
for subdir in $$rev; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
local_target="$$target-am"; \
else \
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
done && test -z "$$fail"
tags-recursive:
list='$(SUBDIRS)'; for subdir in $$list; do \
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
done
tags: TAGS
ID: $(HEADERS) $(SOURCES) $(LISP)
list='$(SOURCES) $(HEADERS)'; \
unique=`for i in $$list; do echo $$i; done | \
awk ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
here=`pwd` && cd $(srcdir) \
&& mkid -f$$here/ID $$unique $(LISP)
TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
tags=; \
here=`pwd`; \
list='$(SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
fi; \
done; \
list='$(SOURCES) $(HEADERS)'; \
unique=`for i in $$list; do echo $$i; done | \
awk ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
|| (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
mostlyclean-tags:
clean-tags:
distclean-tags:
-rm -f TAGS ID
maintainer-clean-tags:
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
subdir = examples/helpbrowser
distdir: $(DISTFILES)
here=`cd $(top_builddir) && pwd`; \
top_distdir=`cd $(top_distdir) && pwd`; \
distdir=`cd $(distdir) && pwd`; \
cd $(top_srcdir) \
&& $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu examples/helpbrowser/Makefile
@for file in $(DISTFILES); do \
d=$(srcdir); \
if test -d $$d/$$file; then \
cp -pr $$d/$$file $(distdir)/$$file; \
else \
test -f $(distdir)/$$file \
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|| cp -p $$d/$$file $(distdir)/$$file || :; \
fi; \
done
for subdir in $(SUBDIRS); do \
if test "$$subdir" = .; then :; else \
test -d $(distdir)/$$subdir \
|| mkdir $(distdir)/$$subdir \
|| exit 1; \
chmod 777 $(distdir)/$$subdir; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(top_distdir) distdir=../$(distdir)/$$subdir distdir) \
|| exit 1; \
fi; \
done
DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
-include $(DEP_FILES)
mostlyclean-depend:
clean-depend:
distclean-depend:
-rm -rf .deps
maintainer-clean-depend:
%.o: %.c
@echo '$(COMPILE) -c $<'; \
$(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
@-cp .deps/$(*F).pp .deps/$(*F).P; \
tr ' ' '\012' < .deps/$(*F).pp \
| sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
>> .deps/$(*F).P; \
rm .deps/$(*F).pp
%.lo: %.c
@echo '$(LTCOMPILE) -c $<'; \
$(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
@-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
< .deps/$(*F).pp > .deps/$(*F).P; \
tr ' ' '\012' < .deps/$(*F).pp \
| sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
>> .deps/$(*F).P; \
rm -f .deps/$(*F).pp
info-am:
info: info-recursive
dvi-am:
dvi: dvi-recursive
check-am: all-am
check: check-recursive
installcheck-am:
installcheck: installcheck-recursive
install-exec-am: install-binPROGRAMS
install-exec: install-exec-recursive
install-data-am:
install-data: install-data-recursive
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
install: install-recursive
uninstall-am: uninstall-binPROGRAMS
uninstall: uninstall-recursive
all-am: Makefile $(PROGRAMS)
all-redirect: all-recursive
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_STRIP_FLAG=-s install
installdirs: installdirs-recursive
installdirs-am:
$(mkinstalldirs) $(DESTDIR)$(bindir)
mostlyclean-generic:
clean-generic:
distclean-generic:
-rm -f Makefile $(CONFIG_CLEAN_FILES)
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
maintainer-clean-generic:
mostlyclean-am: mostlyclean-binPROGRAMS mostlyclean-compile \
mostlyclean-libtool mostlyclean-tags mostlyclean-depend \
mostlyclean-generic
mostlyclean: mostlyclean-recursive
clean-am: clean-binPROGRAMS clean-compile clean-libtool clean-tags \
clean-depend clean-generic mostlyclean-am
clean: clean-recursive
distclean-am: distclean-binPROGRAMS distclean-compile distclean-libtool \
distclean-tags distclean-depend distclean-generic \
clean-am
-rm -f libtool
distclean: distclean-recursive
maintainer-clean-am: maintainer-clean-binPROGRAMS \
maintainer-clean-compile maintainer-clean-libtool \
maintainer-clean-tags maintainer-clean-depend \
maintainer-clean-generic distclean-am
@echo "This command is intended for maintainers to use;"
@echo "it deletes files that may require special tools to rebuild."
maintainer-clean: maintainer-clean-recursive
.PHONY: mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \
maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \
mostlyclean-compile distclean-compile clean-compile \
maintainer-clean-compile mostlyclean-libtool distclean-libtool \
clean-libtool maintainer-clean-libtool install-data-recursive \
uninstall-data-recursive install-exec-recursive \
uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \
all-recursive check-recursive installcheck-recursive info-recursive \
dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \
maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
distclean-tags clean-tags maintainer-clean-tags distdir \
mostlyclean-depend distclean-depend clean-depend \
maintainer-clean-depend info-am info dvi-am dvi check check-am \
installcheck-am installcheck install-exec-am install-exec \
install-data-am install-data install-am install uninstall-am uninstall \
all-redirect all-am all installdirs-am installdirs mostlyclean-generic \
distclean-generic clean-generic maintainer-clean-generic clean \
mostlyclean distclean maintainer-clean
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

View File

@ -1,3 +0,0 @@
## Process this file with automake to produce Makefile.in
EXTRA_DIST = content.html index.html summary.html nopage.html

View File

@ -1,194 +0,0 @@
# Makefile.in generated automatically by automake 1.4a from Makefile.am
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
SHELL = @SHELL@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
oldincludedir = /usr/include
DESTDIR =
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
top_builddir = ../../..
ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_FLAG =
transform = @program_transform_name@
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
host_alias = @host_alias@
host_triplet = @host@
AS = @AS@
CC = @CC@
CXX = @CXX@
DEBUG_FLAGS = @DEBUG_FLAGS@
DLLTOOL = @DLLTOOL@
GTK_CFLAGS = @GTK_CFLAGS@
GTK_CONFIG = @GTK_CONFIG@
GTK_LIBS = @GTK_LIBS@
LD = @LD@
LIBPTHREAD = @LIBPTHREAD@
LIBTOOL = @LIBTOOL@
LN_S = @LN_S@
MAINT = @MAINT@
MAKEINFO = @MAKEINFO@
MOZILLA_DIR = @MOZILLA_DIR@
NM = @NM@
NSPR_DIR = @NSPR_DIR@
NSPR_VERSION = @NSPR_VERSION@
PACKAGE = @PACKAGE@
RANLIB = @RANLIB@
USE_SYMBOL_UNDERSCORE = @USE_SYMBOL_UNDERSCORE@
VERSION = @VERSION@
EXTRA_DIST = content.html index.html summary.html nopage.html
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../../../config.h
CONFIG_CLEAN_FILES =
DIST_COMMON = Makefile.am Makefile.in
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
TAR = gtar
GZIP_ENV = --best
all: all-redirect
.SUFFIXES:
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/helpbrowser/help_data/Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
cd $(top_builddir) \
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
tags: TAGS
TAGS:
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
subdir = examples/helpbrowser/help_data
distdir: $(DISTFILES)
here=`cd $(top_builddir) && pwd`; \
top_distdir=`cd $(top_distdir) && pwd`; \
distdir=`cd $(distdir) && pwd`; \
cd $(top_srcdir) \
&& $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu examples/helpbrowser/help_data/Makefile
@for file in $(DISTFILES); do \
d=$(srcdir); \
if test -d $$d/$$file; then \
cp -pr $$d/$$file $(distdir)/$$file; \
else \
test -f $(distdir)/$$file \
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|| cp -p $$d/$$file $(distdir)/$$file || :; \
fi; \
done
info-am:
info: info-am
dvi-am:
dvi: dvi-am
check-am: all-am
check: check-am
installcheck-am:
installcheck: installcheck-am
install-exec-am:
install-exec: install-exec-am
install-data-am:
install-data: install-data-am
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
install: install-am
uninstall-am:
uninstall: uninstall-am
all-am: Makefile
all-redirect: all-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_STRIP_FLAG=-s install
installdirs:
mostlyclean-generic:
clean-generic:
distclean-generic:
-rm -f Makefile $(CONFIG_CLEAN_FILES)
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
maintainer-clean-generic:
mostlyclean-am: mostlyclean-generic
mostlyclean: mostlyclean-am
clean-am: clean-generic mostlyclean-am
clean: clean-am
distclean-am: distclean-generic clean-am
-rm -f libtool
distclean: distclean-am
maintainer-clean-am: maintainer-clean-generic distclean-am
@echo "This command is intended for maintainers to use;"
@echo "it deletes files that may require special tools to rebuild."
maintainer-clean: maintainer-clean-am
.PHONY: tags distdir info-am info dvi-am dvi check check-am \
installcheck-am installcheck install-exec-am install-exec \
install-data-am install-data install-am install uninstall-am uninstall \
all-redirect all-am all installdirs mostlyclean-generic \
distclean-generic clean-generic maintainer-clean-generic clean \
mostlyclean distclean maintainer-clean
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

View File

@ -1,55 +0,0 @@
<html>
<head>
</head>
<body>
<h3>Debugging with GDB</h3>
<h4>This file describes GDB, the GNU symbolic debugger.</h4>
<h4>This is the Fifth Edition, April 1998, for GDB Version 4.17.</h4>
<h4>Menu:</h4>
<ul>
<li> <a href="summary.html">Summary</a>: Summary of GDB
</ul>
<ul>
<li> <a href="nopage.html">Sample Session</a>: A sample GDB session
</ul>
<ul>
<li> <a href="nopage.html">Invocation</a>: Getting in and out of GDB
<li> <a href="nopage.html">Commands</a>: GDB commands
<li> <a href="nopage.html">Running</a>: Running programs under GDB
<li> <a href="nopage.html">Stopping</a>: Stopping and continuing
<li> <a href="nopage.html">Stack</a>: Examining the stack
<li> <a href="nopage.html">Source</a>: Examining source files
<li> <a href="nopage.html">Data</a>: Examining data
</ul>
<ul>
<li> <a href="nopage.html">Languages</a>: Using GDB with different languages
</ul>
<ul>
<li> <a href="nopage.html">Symbols</a>: Examining the symbol table
<li> <a href="nopage.html">Altering</a>: Altering execution
<li> <a href="nopage.html">GDB Files</a>: GDB files
<li> <a href="nopage.html">Targets</a>: Specifying a debugging target
<li> <a href="nopage.html">Controlling GDB</a>: Controlling GDB
<li> <a href="nopage.html">Sequences</a>: Canned sequences of commands
</ul>
<ul>
<li> <a href="nopage.html">Emacs</a>: Using GDB under GNU Emacs
</ul>
<ul>
<li> <a href="nopage.html">GDB Bugs</a>: Reporting bugs in GDB
<li> <a href="nopage.html">Command Line Editing</a>: Facilities of the readline library
<li> <a href="nopage.html">Using History Interactively</a>:
</ul>
<ul>
<li> <a href="nopage.html">Formatting Documentation</a>: How to format and print GDB documentation
<li> <a href="nopage.html">Installing GDB</a>: Installing GDB
</ul>
<ul>
<li> <a href="index.html">Index</a>: Index
</ul>
</body>
</html>

View File

@ -1,692 +0,0 @@
<html>
<head>
</head>
<body>
<h3>Index</h3>
<h4>Menu:</h4>
<ul>
<li> #: Command Syntax.
<li> # in Modula-2: GDB/M2.
<li> $: Value History.
<li> $$: Value History.
<li> $_: Convenience Vars.
<li> $_ and info breakpoints: Set Breaks.
<li> $_ and info line: Machine Code.
<li> $_, $__, and value history: Memory.
<li> $__: Convenience Vars.
<li> $_exitcode: Convenience Vars.
<li> $bpnum: Set Breaks.
<li> $cdir: Source Path.
<li> $cwd: Source Path.
<li> .: M2 Scope.
<li> .esgdbinit: Command Files.
<li> .gdbinit: Command Files.
<li> .os68gdbinit: Command Files.
<li> .vxgdbinit: Command Files.
<li> /proc: Process Information.
<li> @: Arrays.
<li> AMD 29K register stack: Registers.
<li> AMD EB29K: Target Commands.
<li> AMD29K via UDI: UDI29K Remote.
<li> C and C++: C.
<li> C and C++ checks: C Checks.
<li> C and C++ constants: C Operators.
<li> C and C++ defaults: C Defaults.
<li> C and C++ operators: C.
<li> C++: C.
<li> C++ and object formats: Cplus expressions.
<li> C++ exception handling: Debugging C plus plus.
<li> C++ scope resolution: Variables.
<li> C++ support, not in COFF: Cplus expressions.
<li> C++ symbol decoding style: Print Settings.
<li> C++ symbol display: Debugging C plus plus.
<li> COFF versus C++: Cplus expressions.
<li> CPU simulator: Simulator.
<li> Compiling: Sparclet Remote.
<li> EB29K board: EB29K Remote.
<li> EBMON: Comms (EB29K).
<li> ECOFF and C++: Cplus expressions.
<li> ELF/DWARF and C++: Cplus expressions.
<li> ELF/stabs and C++: Cplus expressions.
<li> Emacs: Emacs.
<li> <a href="summary.html">Fortran:</a> Summary.
<li> Fujitsu: Remote Serial.
<li> GDB bugs, reporting: Bug Reporting.
<li> GDB reference card: Formatting Documentation.
<li> GDBHISTFILE: History.
<li> GNU C++: C.
<li> GNU Emacs: Emacs.
<li> H8/300 or H8/500 download: Files.
<li> H8/300 or H8/500 simulator: Simulator.
<li> Hitachi: Remote Serial.
<li> Hitachi SH download: Files.
<li> Hitachi SH simulator: Simulator.
<li> INCLUDE_RDB: VxWorks Remote.
<li> Intel: Remote Serial.
<li> MIPS boards: MIPS Remote.
<li> MIPS remote floating point: MIPS Remote.
<li> MIPS remotedebug protocol: MIPS Remote.
<li> MIPS stack: MIPS Stack.
<li> Modula-2: Modula-2.
<li> Modula-2 built-ins: M2 Operators.
<li> Modula-2 checks: M2 Checks.
<li> Modula-2 constants: Built-In Func/Proc.
<li> Modula-2 defaults: M2 Defaults.
<li> Modula-2 operators: M2 Operators.
<li> Modula-2, deviations from: Deviations.
<li> Motorola 680x0: Remote Serial.
<li> New SYSTAG: Threads.
<li> Nindy: i960-Nindy Remote.
<li> RET: Command Syntax.
<li> Running: Sparclet Remote.
<li> SH: Remote Serial.
<li> ST2000 auxiliary commands: ST2000 Remote.
<li> STDBUG commands (ST2000): ST2000 Remote.
<li> Sparc: Remote Serial.
<li> SparcLite: Remote Serial.
<li> Sparclet: Sparclet Remote.
<li> TCP port, target remote: Debug Session.
<li> UDI: UDI29K Remote.
<li> VxWorks: VxWorks Remote.
<li> XCOFF and C++: Cplus expressions.
<li> Z8000 simulator: Simulator.
<li> a.out and C++: Cplus expressions.
<li> abbreviation: Command Syntax.
<li> active targets: Active Targets.
<li> add-shared-symbol-file: Files.
<li> add-symbol-file: Files.
<li> arguments (to your program): Arguments.
<li> artificial array: Arrays.
<li> assembly instructions: Machine Code.
<li> assignment: Assignment.
<li> attach: Attach.
<li> automatic display: Auto Display.
<li> automatic thread selection: Threads.
<li> awatch: Set Watchpoints.
<li> b: Set Breaks.
<li> backtrace: Backtrace.
<li> break: Set Breaks.
<li> break ... thread THREADNO: Thread Stops.
<li> break in overloaded functions: Debugging C plus plus.
<li> breakpoint commands: Break Commands.
<li> breakpoint conditions: Conditions.
<li> breakpoint numbers: Breakpoints.
<li> breakpoint on memory address: Breakpoints.
<li> breakpoint on variable modification: Breakpoints.
<li> breakpoint subroutine, remote: Stub Contents.
<li> breakpoints: Breakpoints.
<li> breakpoints and threads: Thread Stops.
<li> bt: Backtrace.
<li> bug criteria: Bug Criteria.
<li> bug reports: Bug Reporting.
<li> bugs in GDB: GDB Bugs.
<li> c: Continuing and Stepping.
<li> call: Calling.
<li> call overloaded functions: Cplus expressions.
<li> call stack: Stack.
<li> calling functions: Calling.
<li> calling make: Shell Commands.
<li> casts, to view memory: Expressions.
<li> catch: Exception Handling.
<li> catch exceptions: Frame Info.
<li> cd: Working Directory.
<li> cdir: Source Path.
<li> checks, range: Type Checking.
<li> checks, type: Checks.
<li> checksum, for GDB remote: Protocol.
<li> choosing target byte order: Target Commands.
<li> clear: Delete Breaks.
<li> clearing breakpoints, watchpoints: Delete Breaks.
<li> colon, doubled as scope operator: M2 Scope.
<li> colon-colon <1>: M2 Scope.
<li> colon-colon: Variables.
<li> command files <1>: Command Files.
<li> command files: Hooks.
<li> command line editing: Editing.
<li> commands: Break Commands.
<li> commands for C++: Debugging C plus plus.
<li> commands to STDBUG (ST2000): ST2000 Remote.
<li> comment: Command Syntax.
<li> compilation directory: Source Path.
<li> complete: Help.
<li> completion: Completion.
<li> completion of quoted strings: Completion.
<li> condition: Conditions.
<li> conditional breakpoints: Conditions.
<li> configuring GDB: Installing GDB.
<li> confirmation: Messages/Warnings.
<li> connect (to STDBUG): ST2000 Remote.
<li> continue: Continuing and Stepping.
<li> continuing: Continuing and Stepping.
<li> continuing threads: Thread Stops.
<li> control C, and remote debugging: Bootstrapping.
<li> controlling terminal: Input/Output.
<li> convenience variables: Convenience Vars.
<li> core: Files.
<li> core dump file: Files.
<li> core-file: Files.
<li> crash of debugger: Bug Criteria.
<li> current directory: Source Path.
<li> current thread: Threads.
<li> cwd: Source Path.
<li> d: Delete Breaks.
<li> debugger crash: Bug Criteria.
<li> debugging optimized code: Compilation.
<li> debugging stub, example: Protocol.
<li> debugging target: Targets.
<li> define: Define.
<li> delete: Delete Breaks.
<li> delete breakpoints: Delete Breaks.
<li> delete display: Auto Display.
<li> deleting breakpoints, watchpoints: Delete Breaks.
<li> demangling: Print Settings.
<li> detach: Attach.
<li> device: Hitachi Boards.
<li> dir: Source Path.
<li> directories for source files: Source Path.
<li> directory: Source Path.
<li> directory, compilation: Source Path.
<li> directory, current: Source Path.
<li> dis: Disabling.
<li> disable: Disabling.
<li> disable breakpoints: Disabling.
<li> disable display: Auto Display.
<li> disassemble: Machine Code.
<li> display: Auto Display.
<li> display of expressions: Auto Display.
<li> do: Selection.
<li> document: Define.
<li> documentation: Formatting Documentation.
<li> down: Selection.
<li> down-silently: Selection.
<li> download to H8/300 or H8/500: Files.
<li> download to Hitachi SH: Files.
<li> download to Nindy-960: Files.
<li> download to Sparclet: Sparclet Download.
<li> download to VxWorks: VxWorks Download.
<li> dynamic linking: Files.
<li> eb.log: Remote Log.
<li> echo: Output.
<li> editing: Editing.
<li> editing-mode: Readline Init Syntax.
<li> else: Define.
<li> enable: Disabling.
<li> enable breakpoints: Disabling.
<li> enable display: Auto Display.
<li> end: Break Commands.
<li> entering numbers: Numbers.
<li> environment (of your program): Environment.
<li> error on valid input: Bug Criteria.
<li> event designators: Event Designators.
<li> examining data: Data.
<li> examining memory: Memory.
<li> exception handlers <1>: Frame Info.
<li> exception handlers: Exception Handling.
<li> exceptionHandler: Bootstrapping.
<li> exec-file: Files.
<li> executable file: Files.
<li> exiting GDB: Quitting GDB.
<li> expansion: History Interaction.
<li> expressions: Expressions.
<li> expressions in C or C++: C.
<li> expressions in C++: Cplus expressions.
<li> expressions in Modula-2: Modula-2.
<li> f: Selection.
<li> fatal signal: Bug Criteria.
<li> fatal signals: Signals.
<li> fg: Continuing and Stepping.
<li> file: Files.
<li> finish: Continuing and Stepping.
<li> flinching: Messages/Warnings.
<li> floating point: Floating Point Hardware.
<li> floating point registers: Registers.
<li> floating point, MIPS remote: MIPS Remote.
<li> flush_i_cache: Bootstrapping.
<li> focus of debugging: Threads.
<li> foo: Symbol Errors.
<li> fork, debugging programs which call: Processes.
<li> format options: Print Settings.
<li> formatted output: Output Formats.
<li> forward-search: Search.
<li> frame <1>: Selection.
<li> frame: Frames.
<li> frame number: Frames.
<li> frame pointer: Frames.
<li> frameless execution: Frames.
<li> g++: C.
<li> gdbserve.nlm: NetWare.
<li> gdbserver: Server.
<li> getDebugChar: Bootstrapping.
<li> h: Help.
<li> handle: Signals.
<li> handle_exception: Stub Contents.
<li> handling signals: Signals.
<li> hbreak: Set Breaks.
<li> help: Help.
<li> help target: Target Commands.
<li> help user-defined: Define.
<li> heuristic-fence-post (MIPS): MIPS Stack.
<li> history expansion: History.
<li> history file: History.
<li> history number: Value History.
<li> history save: History.
<li> history size: History.
<li> history substitution: History.
<li> horizontal-scroll-mode: Readline Init Syntax.
<li> i: Help.
<li> i/o: Input/Output.
<li> i386: Remote Serial.
<li> i386-stub.c: Remote Serial.
<li> i960: i960-Nindy Remote.
<li> if: Define.
<li> ignore: Conditions.
<li> ignore count (of breakpoint): Conditions.
<li> info: Help.
<li> info address: Symbols.
<li> info all-registers: Registers.
<li> info args: Frame Info.
<li> info breakpoints: Set Breaks.
<li> info catch: Frame Info.
<li> info display: Auto Display.
<li> info f: Frame Info.
<li> info files: Files.
<li> info float: Floating Point Hardware.
<li> info frame <1>: Show.
<li> info frame: Frame Info.
<li> info functions: Symbols.
<li> info line: Machine Code.
<li> info locals: Frame Info.
<li> info proc: Process Information.
<li> info proc id: Process Information.
<li> info proc mappings: Process Information.
<li> info proc status: Process Information.
<li> info proc times: Process Information.
<li> info program: Stopping.
<li> info registers: Registers.
<li> info s: Backtrace.
<li> info set: Help.
<li> info share: Files.
<li> info sharedlibrary: Files.
<li> info signals: Signals.
<li> info source <1>: Symbols.
<li> info source: Show.
<li> info sources: Symbols.
<li> info stack: Backtrace.
<li> info target: Files.
<li> info terminal: Input/Output.
<li> info threads: Threads.
<li> info types: Symbols.
<li> info variables: Symbols.
<li> info watchpoints: Set Watchpoints.
<li> inheritance: Debugging C plus plus.
<li> init file: Command Files.
<li> init file name: Command Files.
<li> initial frame: Frames.
<li> innermost frame: Frames.
<li> inspect: Data.
<li> installation: Installing GDB.
<li> instructions, assembly: Machine Code.
<li> interaction, readline: Readline Interaction.
<li> internal GDB breakpoints: Set Breaks.
<li> interrupt: Quitting GDB.
<li> interrupting remote programs: Debug Session.
<li> interrupting remote targets: Bootstrapping.
<li> invalid input: Bug Criteria.
<li> jump: Jumping.
<li> kill: Kill Process.
<li> l: List.
<li> languages: Languages.
<li> latest breakpoint: Set Breaks.
<li> leaving GDB: Quitting GDB.
<li> linespec: List.
<li> list: List.
<li> listing machine instructions: Machine Code.
<li> load FILENAME: Files.
<li> log file for EB29K: Remote Log.
<li> m680x0: Remote Serial.
<li> m68k-stub.c: Remote Serial.
<li> machine instructions: Machine Code.
<li> maint info breakpoints: Set Breaks.
<li> maint print psymbols: Symbols.
<li> maint print symbols: Symbols.
<li> make: Shell Commands.
<li> mapped: Files.
<li> mark-modified-lines: Readline Init Syntax.
<li> member functions: Cplus expressions.
<li> memory models, H8/500: Hitachi Special.
<li> memory tracing: Breakpoints.
<li> memory, viewing as typed object: Expressions.
<li> memory-mapped symbol file: Files.
<li> memset: Bootstrapping.
<li> multiple processes: Processes.
<li> multiple targets: Active Targets.
<li> multiple threads: Threads.
<li> n: Continuing and Stepping.
<li> names of symbols: Symbols.
<li> namespace in C++: Cplus expressions.
<li> negative breakpoint numbers: Set Breaks.
<li> next: Continuing and Stepping.
<li> nexti: Continuing and Stepping.
<li> ni: Continuing and Stepping.
<li> number representation: Numbers.
<li> numbers for breakpoints: Breakpoints.
<li> object formats and C++: Cplus expressions.
<li> online documentation: Help.
<li> optimized code, debugging: Compilation.
<li> outermost frame: Frames.
<li> output: Output.
<li> output formats: Output Formats.
<li> overloading: Breakpoint Menus.
<li> overloading in C++: Debugging C plus plus.
<li> packets, reporting on stdout: Protocol.
<li> partial symbol dump: Symbols.
<li> patching binaries: Patching.
<li> path: Environment.
<li> pauses in output: Screen Size.
<li> pipes: Starting.
<li> pointer, finding referent: Print Settings.
<li> prefer-visible-bell: Readline Init Syntax.
<li> print: Data.
<li> print settings: Print Settings.
<li> printf: Output.
<li> printing data: Data.
<li> process image: Process Information.
<li> processes, multiple: Processes.
<li> prompt: Prompt.
<li> protocol, GDB remote serial: Protocol.
<li> ptype: Symbols.
<li> putDebugChar: Bootstrapping.
<li> pwd: Working Directory.
<li> q: Quitting GDB.
<li> quit [EXPRESSION]: Quitting GDB.
<li> quotes in commands: Completion.
<li> quoting names: Symbols.
<li> raise exceptions: Exception Handling.
<li> range checking: Type Checking.
<li> rbreak: Set Breaks.
<li> reading symbols immediately: Files.
<li> readline: Editing.
<li> readnow: Files.
<li> redirection: Input/Output.
<li> reference card: Formatting Documentation.
<li> reference declarations: Cplus expressions.
<li> register stack, AMD29K: Registers.
<li> registers: Registers.
<li> regular expression: Set Breaks.
<li> reloading symbols: Symbols.
<li> remote connection without stubs: Server.
<li> remote debugging: Remote.
<li> remote programs, interrupting: Debug Session.
<li> remote serial debugging summary: Debug Session.
<li> remote serial debugging, overview: Remote Serial.
<li> remote serial protocol: Protocol.
<li> remote serial stub: Stub Contents.
<li> remote serial stub list: Remote Serial.
<li> remote serial stub, initialization: Stub Contents.
<li> remote serial stub, main routine: Stub Contents.
<li> remote stub, example: Protocol.
<li> remote stub, support routines: Bootstrapping.
<li> remotedebug, MIPS protocol: MIPS Remote.
<li> remotetimeout: Sparclet Remote.
<li> repeating commands: Command Syntax.
<li> reporting bugs in GDB: GDB Bugs.
<li> reset: Nindy Reset.
<li> response time, MIPS debugging: MIPS Stack.
<li> resuming execution: Continuing and Stepping.
<li> retransmit-timeout, MIPS protocol: MIPS Remote.
<li> return: Returning.
<li> returning from a function: Returning.
<li> reverse-search: Search.
<li> run: Starting.
<li> running: Starting.
<li> running 29K programs: EB29K Remote.
<li> running VxWorks tasks: VxWorks Attach.
<li> running and debugging Sparclet programs: Sparclet Execution.
<li> rwatch: Set Watchpoints.
<li> s: Continuing and Stepping.
<li> saving symbol table: Files.
<li> scope: M2 Scope.
<li> search: Search.
<li> searching: Search.
<li> section: Files.
<li> select-frame: Frames.
<li> selected frame: Stack.
<li> serial connections, debugging: Protocol.
<li> serial device, Hitachi micros: Hitachi Boards.
<li> serial line speed, Hitachi micros: Hitachi Boards.
<li> serial line, target remote: Debug Session.
<li> serial protocol, GDB remote: Protocol.
<li> set: Help.
<li> set args: Arguments.
<li> set assembly-language: Machine Code.
<li> set check <1>: Range Checking.
<li> set check: Type Checking.
<li> set check range: Range Checking.
<li> set check type: Type Checking.
<li> set complaints: Messages/Warnings.
<li> set confirm: Messages/Warnings.
<li> set demangle-style: Print Settings.
<li> set editing: Editing.
<li> set endian auto: Target Commands.
<li> set endian big: Target Commands.
<li> set endian little: Target Commands.
<li> set environment: Environment.
<li> set gnutarget: Target Commands.
<li> set height: Screen Size.
<li> set history expansion: History.
<li> set history filename: History.
<li> set history save: History.
<li> set history size: History.
<li> set input-radix: Numbers.
<li> set language: Manually.
<li> set listsize: List.
<li> set machine: Hitachi Special.
<li> set memory MOD: Hitachi Special.
<li> set mipsfpu: MIPS Remote.
<li> set output-radix: Numbers.
<li> set print address: Print Settings.
<li> set print array: Print Settings.
<li> set print asm-demangle: Print Settings.
<li> set print demangle: Print Settings.
<li> set print elements: Print Settings.
<li> set print max-symbolic-offset: Print Settings.
<li> set print null-stop: Print Settings.
<li> set print object: Print Settings.
<li> set print pretty: Print Settings.
<li> set print sevenbit-strings: Print Settings.
<li> set print static-members: Print Settings.
<li> set print symbol-filename: Print Settings.
<li> set print union: Print Settings.
<li> set print vtbl: Print Settings.
<li> set processor ARGS: MIPS Remote.
<li> set prompt: Prompt.
<li> set remotedebug <1>: MIPS Remote.
<li> set remotedebug: Protocol.
<li> set retransmit-timeout: MIPS Remote.
<li> set rstack_high_address: Registers.
<li> set symbol-reloading: Symbols.
<li> set timeout: MIPS Remote.
<li> set variable: Assignment.
<li> set verbose: Messages/Warnings.
<li> set width: Screen Size.
<li> set write: Patching.
<li> set_debug_traps: Stub Contents.
<li> setting variables: Assignment.
<li> setting watchpoints: Set Watchpoints.
<li> sh-stub.c: Remote Serial.
<li> share: Files.
<li> shared libraries: Files.
<li> sharedlibrary: Files.
<li> shell: Shell Commands.
<li> shell escape: Shell Commands.
<li> show: Help.
<li> show args: Arguments.
<li> show check range: Range Checking.
<li> show check type: Type Checking.
<li> show commands: History.
<li> show complaints: Messages/Warnings.
<li> show confirm: Messages/Warnings.
<li> show convenience: Convenience Vars.
<li> show copying: Help.
<li> show demangle-style: Print Settings.
<li> show directories: Source Path.
<li> show editing: Editing.
<li> show endian: Target Commands.
<li> show environment: Environment.
<li> show gnutarget: Target Commands.
<li> show height: Screen Size.
<li> show history: History.
<li> show input-radix: Numbers.
<li> show language: Show.
<li> show listsize: List.
<li> show machine: Hitachi Special.
<li> show mipsfpu: MIPS Remote.
<li> show output-radix: Numbers.
<li> show paths: Environment.
<li> show print address: Print Settings.
<li> show print array: Print Settings.
<li> show print asm-demangle: Print Settings.
<li> show print demangle: Print Settings.
<li> show print elements: Print Settings.
<li> show print max-symbolic-offset: Print Settings.
<li> show print object: Print Settings.
<li> show print pretty: Print Settings.
<li> show print sevenbit-strings: Print Settings.
<li> show print static-members: Print Settings.
<li> show print symbol-filename: Print Settings.
<li> show print union: Print Settings.
<li> show print vtbl: Print Settings.
<li> show processor: MIPS Remote.
<li> show prompt: Prompt.
<li> show remotedebug <1>: MIPS Remote.
<li> show remotedebug: Protocol.
<li> show retransmit-timeout: MIPS Remote.
<li> show rstack_high_address: Registers.
<li> show symbol-reloading: Symbols.
<li> show timeout: MIPS Remote.
<li> show user: Define.
<li> show values: Value History.
<li> show verbose: Messages/Warnings.
<li> show version: Help.
<li> show warranty: Help.
<li> show width: Screen Size.
<li> show write: Patching.
<li> si: Continuing and Stepping.
<li> signal: Signaling.
<li> signals: Signals.
<li> silent: Break Commands.
<li> sim: Simulator.
<li> simulator: Simulator.
<li> simulator, H8/300 or H8/500: Simulator.
<li> simulator, Hitachi SH: Simulator.
<li> simulator, Z8000: Simulator.
<li> size of screen: Screen Size.
<li> source: Command Files.
<li> source path: Source Path.
<li> sparc-stub.c: Remote Serial.
<li> sparcl-stub.c: Remote Serial.
<li> speed: Hitachi Boards.
<li> st2000 CMD: ST2000 Remote.
<li> stack frame: Frames.
<li> stack on MIPS: MIPS Stack.
<li> stacking targets: Active Targets.
<li> starting: Starting.
<li> step: Continuing and Stepping.
<li> stepi: Continuing and Stepping.
<li> stepping: Continuing and Stepping.
<li> stopped threads: Thread Stops.
<li> stub example, remote debugging: Protocol.
<li> stupid questions: Messages/Warnings.
<li> switching threads: Threads.
<li> switching threads automatically: Threads.
<li> symbol decoding style, C++: Print Settings.
<li> symbol dump: Symbols.
<li> symbol names: Symbols.
<li> symbol overloading: Breakpoint Menus.
<li> symbol table: Files.
<li> symbol-file: Files.
<li> symbols, reading immediately: Files.
<li> target: Targets.
<li> target amd-eb: Target Commands.
<li> target array: Target Commands.
<li> target bug: Target Commands.
<li> target byte order: Target Commands.
<li> target core: Target Commands.
<li> target cpu32bug: Target Commands.
<li> target ddb PORT: MIPS Remote.
<li> target e7000: Hitachi ICE.
<li> target est: Target Commands.
<li> target exec: Target Commands.
<li> target hms: Target Commands.
<li> target lsi PORT: MIPS Remote.
<li> target mips PORT: MIPS Remote.
<li> target nindy: Target Commands.
<li> target op50n: Target Commands.
<li> target pmon PORT: MIPS Remote.
<li> target remote: Target Commands.
<li> target rom68k: Target Commands.
<li> target sim <1>: Simulator.
<li> target sim: Target Commands.
<li> target sparclite: Target Commands.
<li> target st2000: Target Commands.
<li> target udi: Target Commands.
<li> target vxworks: Target Commands.
<li> target w89k: Target Commands.
<li> tbreak: Set Breaks.
<li> terminal: Input/Output.
<li> thbreak: Set Breaks.
<li> this: Cplus expressions.
<li> thread THREADNO: Threads.
<li> thread apply: Threads.
<li> thread breakpoints: Thread Stops.
<li> thread identifier (GDB): Threads.
<li> thread identifier (system): Threads.
<li> thread number: Threads.
<li> threads and watchpoints: Set Watchpoints.
<li> threads of execution: Threads.
<li> threads, automatic switching: Threads.
<li> threads, continuing: Thread Stops.
<li> threads, stopped: Thread Stops.
<li> timeout, MIPS protocol: MIPS Remote.
<li> toggle-editing-mode: Readline vi Mode.
<li> tty: Input/Output.
<li> type casting memory: Expressions.
<li> type checking: Checks.
<li> type conversions in C++: Cplus expressions.
<li> u: Continuing and Stepping.
<li> udi: UDI29K Remote.
<li> undisplay: Auto Display.
<li> unknown address, locating: Output Formats.
<li> unset environment: Environment.
<li> until: Continuing and Stepping.
<li> up: Selection.
<li> up-silently: Selection.
<li> user-defined command: Define.
<li> value history: Value History.
<li> variable name conflict: Variables.
<li> variable values, wrong: Variables.
<li> variables, setting: Assignment.
<li> version number: Help.
<li> vi style command editing: Readline vi Mode.
<li> vxworks-timeout: VxWorks Remote.
<li> watch: Set Watchpoints.
<li> watchpoints: Breakpoints.
<li> watchpoints and threads: Set Watchpoints.
<li> whatis: Symbols.
<li> where: Backtrace.
<li> while: Define.
<li> wild pointer, interpreting: Print Settings.
<li> word completion: Completion.
<li> working directory: Source Path.
<li> working directory (of your program): Working Directory.
<li> working language: Languages.
<li> writing into corefiles: Patching.
<li> writing into executables: Patching.
<li> wrong values: Variables.
<li> x: Memory.
<li> {TYPE}: Expressions.
</ul>
</body>
</html>

View File

@ -1,11 +0,0 @@
<html>
<head>
</head>
<body>
<h3>No page</h3>
This is just a demonstration. Just the content, index and summary page
exist.
</body>
</html>

View File

@ -1,50 +0,0 @@
<html>
<head>
</head>
<body>
<h3>Summary of GDB</h3>
The purpose of a debugger such as GDB is to allow you to see what is
going on "inside" another program while it executes--or what another
program was doing at the moment it crashed.
<p>
GDB can do four main kinds of things (plus other things in support of
these) to help you catch bugs in the act:
<p>
<ul>
<li> Start your program, specifying anything that might affect its
behavior.
<li> Make your program stop on specified conditions.
<li> Examine what has happened, when your program has stopped.
<li> Change things in your program, so you can experiment with
correcting the effects of one bug and go on to learn about another.
</ul>
You can use GDB to debug programs written in C or C++. For more
information, see <a href="nopage.html">*Note C and C++: C</a>.
<p>
Support for Modula-2 and Chill is partial. For information on
Modula-2, see <a href="nopage.html">*Note Modula-2: Modula-2</a>. There is no further
documentation on Chill yet.
<p>
Debugging Pascal programs which use sets, subranges, file variables,
or nested functions does not currently work. GDB does not support
entering expressions, printing values, or similar features using Pascal
syntax.
<p>
GDB can be used to debug programs written in Fortran, although it
does not yet support entering expressions, printing values, or similar
features using Fortran syntax. It may be necessary to refer to some
variables with a trailing underscore.
<p>
<h4>Menu:</h4>
<ul>
<li> <a href="nopage.html">Free Software</a>: Freely redistributable software
<li> <a href="nopage.html">Contributors</a>: Contributors to GDB
</ul>
</body>
</html>

View File

@ -1,213 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is this file, released
* May 28, 1999.
*
* The Initial Developer of the Original Code is Alexander
* Larsson. Portions created by Alexander Larsson are
* Copyright (C) 1999 Alexander Larsson. All
* Rights Reserved.
*
* Contributor(s):
*/
#include <gtk/gtk.h>
#include <gtkmozilla.h>
struct browser {
GtkMozilla *mozilla;
GtkWidget *window;
GtkWidget *back_button;
GtkWidget *forward_button;
GtkWidget *content_button;
GtkWidget *index_button;
GtkWidget *search_button;
};
static void
set_buttons(struct browser *browser)
{
gtk_widget_set_sensitive(browser->back_button,
gtk_mozilla_can_back(browser->mozilla));
gtk_widget_set_sensitive(browser->forward_button,
gtk_mozilla_can_forward(browser->mozilla));
}
static void begin_load_url(GtkWidget *mozilla,
const char *url,
struct browser *browser)
{
printf("begin_load_url(%s)\n", url);
set_buttons(browser);
}
static gint configure_event_after(GtkWidget *window,
GdkEvent *event,
GtkMozilla *moz)
{
GtkAllocation *alloc;
alloc = &GTK_WIDGET(moz)->allocation;
gtk_mozilla_resize(moz, alloc->width, alloc->height);
return 1;
}
static void back_clicked(GtkWidget *button,
gpointer arg)
{
GtkMozilla *moz = GTK_MOZILLA(arg);
gtk_mozilla_back(moz);
}
static void forward_clicked(GtkWidget *button,
gpointer arg)
{
GtkMozilla *moz = GTK_MOZILLA(arg);
gtk_mozilla_forward(moz);
}
static void content_clicked(GtkWidget *button,
gpointer arg)
{
GtkMozilla *moz = GTK_MOZILLA(arg);
printf("index_clicked()\n");
printf("loading: " "file://" HELPDATADIR "/content.html\n");
gtk_mozilla_load_url(moz, "file://" HELPDATADIR "/content.html");
}
static void index_clicked(GtkWidget *button,
gpointer arg)
{
GtkMozilla *moz = GTK_MOZILLA(arg);
printf("index_clicked()\n");
printf("loading: " "file://" HELPDATADIR "/index.html\n");
gtk_mozilla_load_url(moz, "file://" HELPDATADIR "/index.html");
}
static void search_clicked(GtkWidget *button,
gpointer arg)
{
GtkMozilla *moz = GTK_MOZILLA(arg);
}
int main( int argc,
char *argv[] )
{
static GtkWidget *window = NULL;
GtkWidget *hbox;
GtkWidget *vbox;
GtkWidget *back_button;
GtkWidget *forward_button;
GtkWidget *content_button;
GtkWidget *index_button;
GtkWidget *search_button;
GtkWidget *mozilla;
struct browser browser;
/* Initialise GTK */
gtk_set_locale ();
gtk_init (&argc, &argv);
gdk_rgb_init();
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_window_set_default_size( GTK_WINDOW(window), 500, 400);
gtk_window_set_title(GTK_WINDOW(window), "Help Browser");
gtk_signal_connect (GTK_OBJECT (window), "destroy",
GTK_SIGNAL_FUNC(gtk_main_quit),
NULL);
vbox = gtk_vbox_new (FALSE, 5);
gtk_container_add (GTK_CONTAINER (window), vbox);
gtk_widget_show(vbox);
hbox = gtk_hbox_new (FALSE, 5);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
back_button = gtk_button_new_with_label("Back");
gtk_box_pack_start (GTK_BOX (hbox), back_button, FALSE, FALSE, 0);
gtk_widget_show(back_button);
forward_button = gtk_button_new_with_label("Forward");
gtk_box_pack_start (GTK_BOX (hbox), forward_button, FALSE, FALSE, 0);
gtk_widget_show(forward_button);
content_button = gtk_button_new_with_label("Content");
gtk_box_pack_start (GTK_BOX (hbox), content_button, FALSE, FALSE, 0);
gtk_widget_show(content_button);
index_button = gtk_button_new_with_label("Index");
gtk_box_pack_start (GTK_BOX (hbox), index_button, FALSE, FALSE, 0);
gtk_widget_show(index_button);
search_button = gtk_button_new_with_label("Search");
gtk_box_pack_start (GTK_BOX (hbox), search_button, FALSE, FALSE, 0);
gtk_widget_show(search_button);
gtk_widget_show(hbox);
mozilla = gtk_mozilla_new();
gtk_box_pack_start (GTK_BOX (vbox), mozilla, TRUE, TRUE, 0);
gtk_widget_show_all(mozilla);
gtk_widget_show(window);
browser.mozilla = GTK_MOZILLA(mozilla);
browser.window = window;
browser.back_button = back_button;
browser.forward_button = forward_button;
browser.content_button = content_button;
browser.index_button = index_button;
browser.search_button = search_button;
gtk_signal_connect_after(GTK_OBJECT (window), "configure_event",
(GtkSignalFunc) configure_event_after,
mozilla);
gtk_signal_connect(GTK_OBJECT (back_button), "clicked",
(GtkSignalFunc) back_clicked,
mozilla);
gtk_signal_connect(GTK_OBJECT (forward_button), "clicked",
(GtkSignalFunc) forward_clicked,
mozilla);
gtk_signal_connect(GTK_OBJECT (mozilla), "begin_load_url",
(GtkSignalFunc) begin_load_url,
&browser);
gtk_signal_connect(GTK_OBJECT (content_button), "clicked",
(GtkSignalFunc) content_clicked,
mozilla);
gtk_signal_connect(GTK_OBJECT (index_button), "clicked",
(GtkSignalFunc) index_clicked,
mozilla);
gtk_signal_connect(GTK_OBJECT (search_button), "clicked",
(GtkSignalFunc) search_clicked,
mozilla);
set_buttons(&browser);
gtk_main ();
return(0);
}

View File

@ -1,5 +0,0 @@
Makefile
.libs
simplebrowser
default_prefs.js

View File

@ -1,14 +0,0 @@
## Process this file with automake to produce Makefile.in
bin_PROGRAMS = simplebrowser
simplebrowser_SOURCES = \
simplebrowser.c
simplebrowser_LDADD = ../../lib/libgtkmozilla.la @GTK_LIBS@
INCLUDES = \
-I$(top_srcdir)/lib \
@DEBUG_FLAGS@ \
@GTK_CFLAGS@
LDFLAGS = --export-dynamic

View File

@ -1,357 +0,0 @@
# Makefile.in generated automatically by automake 1.4a from Makefile.am
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
SHELL = @SHELL@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
oldincludedir = /usr/include
DESTDIR =
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
top_builddir = ../..
ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_FLAG =
transform = @program_transform_name@
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
host_alias = @host_alias@
host_triplet = @host@
AS = @AS@
CC = @CC@
CXX = @CXX@
DEBUG_FLAGS = @DEBUG_FLAGS@
DLLTOOL = @DLLTOOL@
GTK_CFLAGS = @GTK_CFLAGS@
GTK_CONFIG = @GTK_CONFIG@
GTK_LIBS = @GTK_LIBS@
LD = @LD@
LIBPTHREAD = @LIBPTHREAD@
LIBTOOL = @LIBTOOL@
LN_S = @LN_S@
MAINT = @MAINT@
MAKEINFO = @MAKEINFO@
MOZILLA_DIR = @MOZILLA_DIR@
NM = @NM@
NSPR_DIR = @NSPR_DIR@
NSPR_VERSION = @NSPR_VERSION@
PACKAGE = @PACKAGE@
RANLIB = @RANLIB@
USE_SYMBOL_UNDERSCORE = @USE_SYMBOL_UNDERSCORE@
VERSION = @VERSION@
bin_PROGRAMS = simplebrowser
simplebrowser_SOURCES = simplebrowser.c
simplebrowser_LDADD = ../../lib/libgtkmozilla.la @GTK_LIBS@
INCLUDES = -I$(top_srcdir)/lib @DEBUG_FLAGS@ @GTK_CFLAGS@
LDFLAGS = --export-dynamic
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../../config.h
CONFIG_CLEAN_FILES =
PROGRAMS = $(bin_PROGRAMS)
DEFS = @DEFS@ -I. -I$(srcdir) -I../..
CPPFLAGS = @CPPFLAGS@
LIBS = @LIBS@
simplebrowser_OBJECTS = simplebrowser.o
simplebrowser_DEPENDENCIES = ../../lib/libgtkmozilla.la
simplebrowser_LDFLAGS =
CFLAGS = @CFLAGS@
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
DIST_COMMON = Makefile.am Makefile.in
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
TAR = gtar
GZIP_ENV = --best
DEP_FILES = .deps/simplebrowser.P
SOURCES = $(simplebrowser_SOURCES)
OBJECTS = $(simplebrowser_OBJECTS)
all: all-redirect
.SUFFIXES:
.SUFFIXES: .S .c .lo .o .s
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/simplebrowser/Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
cd $(top_builddir) \
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
mostlyclean-binPROGRAMS:
clean-binPROGRAMS:
-test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
distclean-binPROGRAMS:
maintainer-clean-binPROGRAMS:
install-binPROGRAMS: $(bin_PROGRAMS)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(bindir)
@list='$(bin_PROGRAMS)'; for p in $$list; do \
if test -f $$p; then \
echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
else :; fi; \
done
uninstall-binPROGRAMS:
@$(NORMAL_UNINSTALL)
list='$(bin_PROGRAMS)'; for p in $$list; do \
rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
done
.s.o:
$(COMPILE) -c $<
.S.o:
$(COMPILE) -c $<
mostlyclean-compile:
-rm -f *.o core *.core
clean-compile:
distclean-compile:
-rm -f *.tab.c
maintainer-clean-compile:
.s.lo:
$(LIBTOOL) --mode=compile $(COMPILE) -c $<
.S.lo:
$(LIBTOOL) --mode=compile $(COMPILE) -c $<
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
distclean-libtool:
maintainer-clean-libtool:
simplebrowser: $(simplebrowser_OBJECTS) $(simplebrowser_DEPENDENCIES)
@rm -f simplebrowser
$(LINK) $(simplebrowser_LDFLAGS) $(simplebrowser_OBJECTS) $(simplebrowser_LDADD) $(LIBS)
tags: TAGS
ID: $(HEADERS) $(SOURCES) $(LISP)
list='$(SOURCES) $(HEADERS)'; \
unique=`for i in $$list; do echo $$i; done | \
awk ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
here=`pwd` && cd $(srcdir) \
&& mkid -f$$here/ID $$unique $(LISP)
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
tags=; \
here=`pwd`; \
list='$(SOURCES) $(HEADERS)'; \
unique=`for i in $$list; do echo $$i; done | \
awk ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
|| (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
mostlyclean-tags:
clean-tags:
distclean-tags:
-rm -f TAGS ID
maintainer-clean-tags:
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
subdir = examples/simplebrowser
distdir: $(DISTFILES)
here=`cd $(top_builddir) && pwd`; \
top_distdir=`cd $(top_distdir) && pwd`; \
distdir=`cd $(distdir) && pwd`; \
cd $(top_srcdir) \
&& $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu examples/simplebrowser/Makefile
@for file in $(DISTFILES); do \
d=$(srcdir); \
if test -d $$d/$$file; then \
cp -pr $$d/$$file $(distdir)/$$file; \
else \
test -f $(distdir)/$$file \
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|| cp -p $$d/$$file $(distdir)/$$file || :; \
fi; \
done
DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
-include $(DEP_FILES)
mostlyclean-depend:
clean-depend:
distclean-depend:
-rm -rf .deps
maintainer-clean-depend:
%.o: %.c
@echo '$(COMPILE) -c $<'; \
$(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
@-cp .deps/$(*F).pp .deps/$(*F).P; \
tr ' ' '\012' < .deps/$(*F).pp \
| sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
>> .deps/$(*F).P; \
rm .deps/$(*F).pp
%.lo: %.c
@echo '$(LTCOMPILE) -c $<'; \
$(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
@-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
< .deps/$(*F).pp > .deps/$(*F).P; \
tr ' ' '\012' < .deps/$(*F).pp \
| sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
>> .deps/$(*F).P; \
rm -f .deps/$(*F).pp
info-am:
info: info-am
dvi-am:
dvi: dvi-am
check-am: all-am
check: check-am
installcheck-am:
installcheck: installcheck-am
install-exec-am: install-binPROGRAMS
install-exec: install-exec-am
install-data-am:
install-data: install-data-am
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
install: install-am
uninstall-am: uninstall-binPROGRAMS
uninstall: uninstall-am
all-am: Makefile $(PROGRAMS)
all-redirect: all-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_STRIP_FLAG=-s install
installdirs:
$(mkinstalldirs) $(DESTDIR)$(bindir)
mostlyclean-generic:
clean-generic:
distclean-generic:
-rm -f Makefile $(CONFIG_CLEAN_FILES)
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
maintainer-clean-generic:
mostlyclean-am: mostlyclean-binPROGRAMS mostlyclean-compile \
mostlyclean-libtool mostlyclean-tags mostlyclean-depend \
mostlyclean-generic
mostlyclean: mostlyclean-am
clean-am: clean-binPROGRAMS clean-compile clean-libtool clean-tags \
clean-depend clean-generic mostlyclean-am
clean: clean-am
distclean-am: distclean-binPROGRAMS distclean-compile distclean-libtool \
distclean-tags distclean-depend distclean-generic \
clean-am
-rm -f libtool
distclean: distclean-am
maintainer-clean-am: maintainer-clean-binPROGRAMS \
maintainer-clean-compile maintainer-clean-libtool \
maintainer-clean-tags maintainer-clean-depend \
maintainer-clean-generic distclean-am
@echo "This command is intended for maintainers to use;"
@echo "it deletes files that may require special tools to rebuild."
maintainer-clean: maintainer-clean-am
.PHONY: mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \
maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \
mostlyclean-compile distclean-compile clean-compile \
maintainer-clean-compile mostlyclean-libtool distclean-libtool \
clean-libtool maintainer-clean-libtool tags mostlyclean-tags \
distclean-tags clean-tags maintainer-clean-tags distdir \
mostlyclean-depend distclean-depend clean-depend \
maintainer-clean-depend info-am info dvi-am dvi check check-am \
installcheck-am installcheck install-exec-am install-exec \
install-data-am install-data install-am install uninstall-am uninstall \
all-redirect all-am all installdirs mostlyclean-generic \
distclean-generic clean-generic maintainer-clean-generic clean \
mostlyclean distclean maintainer-clean
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

View File

@ -1,231 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is this file, released
* May 28, 1999.
*
* The Initial Developer of the Original Code is Alexander
* Larsson. Portions created by Alexander Larsson are
* Copyright (C) 1999 Alexander Larsson. All
* Rights Reserved.
*
* Contributor(s):
*/
#include <gtk/gtk.h>
#include <gtkmozilla.h>
struct browser {
GtkMozilla *mozilla;
GtkWidget *window;
GtkWidget *back_button;
GtkWidget *forward_button;
GtkWidget *url_entry;
};
static void
set_buttons(struct browser *browser)
{
gtk_widget_set_sensitive(browser->back_button,
gtk_mozilla_can_back(browser->mozilla));
gtk_widget_set_sensitive(browser->forward_button,
gtk_mozilla_can_forward(browser->mozilla));
}
static gint configure_event_after(GtkWidget *window,
GdkEvent *event,
GtkMozilla *moz)
{
GtkAllocation *alloc;
alloc = &GTK_WIDGET(moz)->allocation;
gtk_mozilla_resize(moz, alloc->width, alloc->height);
return 1;
}
static gint will_load_url(GtkWidget *mozilla,
const char *url,
GtkMozillaLoadType load_type,
struct browser *browser)
{
printf("will_load_url(%s, %d)\n", url, load_type);
return 1; /* Return 0 if you don't want to load this url */
}
static void begin_load_url(GtkWidget *mozilla,
const char *url,
struct browser *browser)
{
printf("begin_load_url(%s)\n", url);
gtk_entry_set_text(GTK_ENTRY(browser->url_entry), url);
set_buttons(browser);
}
static void end_load_url(GtkMozilla *mozilla,
const gchar *url,
gint status)
{
printf("end_load_url(%s, %d)\n", url, status);
}
static void back_clicked(GtkWidget *button,
gpointer arg)
{
GtkMozilla *moz = GTK_MOZILLA(arg);
gtk_mozilla_back(moz);
}
static void forward_clicked(GtkWidget *button,
gpointer arg)
{
GtkMozilla *moz = GTK_MOZILLA(arg);
gtk_mozilla_forward(moz);
}
static void stream_clicked(GtkWidget *button,
gpointer arg)
{
char buf[] = "<html><body>testing <a href=\"test.html\">HTML</a> streaming...</body></html>";
GtkMozilla *moz = GTK_MOZILLA(arg);
int c,i,size;
gtk_mozilla_stream_start_html(moz, "file://dummy/url/");
size = sizeof(buf);
i = 0;
while (size>0) {
c = gtk_mozilla_stream_write(moz, &buf[i], 0, size-1);
size -= c;
i += c;
}
gtk_mozilla_stream_end(moz);
}
static void url_activate(GtkWidget *entry,
gpointer arg)
{
const char *str;
GtkMozilla *moz = GTK_MOZILLA(arg);
str = gtk_entry_get_text(GTK_ENTRY(entry));
printf("url_activate: %s\n", str);
gtk_mozilla_load_url(moz, str);
}
int main( int argc,
char *argv[] )
{
static GtkWidget *window = NULL;
GtkWidget *hbox;
GtkWidget *vbox;
GtkWidget *back_button;
GtkWidget *forward_button;
GtkWidget *url_entry;
GtkWidget *stream_button;
GtkWidget *mozilla;
struct browser browser;
/* Initialise GTK */
gtk_set_locale ();
gtk_init (&argc, &argv);
gdk_rgb_init();
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_window_set_default_size( GTK_WINDOW(window), 300, 300);
gtk_window_set_title(GTK_WINDOW(window), "Simple GtkMozilla browser");
gtk_signal_connect (GTK_OBJECT (window), "destroy",
GTK_SIGNAL_FUNC(gtk_main_quit),
NULL);
vbox = gtk_vbox_new (FALSE, 5);
gtk_container_add (GTK_CONTAINER (window), vbox);
gtk_widget_show(vbox);
hbox = gtk_hbox_new (FALSE, 5);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
back_button = gtk_button_new_with_label("Back");
gtk_box_pack_start (GTK_BOX (hbox), back_button, FALSE, FALSE, 0);
gtk_widget_show(back_button);
forward_button = gtk_button_new_with_label("Forward");
gtk_box_pack_start (GTK_BOX (hbox), forward_button, FALSE, FALSE, 0);
gtk_widget_show(forward_button);
url_entry = gtk_entry_new();
gtk_box_pack_start (GTK_BOX (hbox), url_entry, TRUE, TRUE, 0);
gtk_widget_show(url_entry);
stream_button = gtk_button_new_with_label("Test Stream");
gtk_box_pack_start (GTK_BOX (hbox), stream_button, FALSE, FALSE, 0);
gtk_widget_show(stream_button);
gtk_widget_show(hbox);
mozilla = gtk_mozilla_new();
gtk_box_pack_start (GTK_BOX (vbox), mozilla, TRUE, TRUE, 0);
gtk_widget_show_all(mozilla);
gtk_widget_show(window);
browser.mozilla = GTK_MOZILLA(mozilla);
browser.window = window;
browser.back_button = back_button;
browser.forward_button = forward_button;
browser.url_entry = url_entry;
gtk_signal_connect_after(GTK_OBJECT (window), "configure_event",
(GtkSignalFunc) configure_event_after,
mozilla);
gtk_signal_connect(GTK_OBJECT (mozilla), "will_load_url",
(GtkSignalFunc) will_load_url,
&browser);
gtk_signal_connect(GTK_OBJECT (mozilla), "begin_load_url",
(GtkSignalFunc) begin_load_url,
&browser);
gtk_signal_connect(GTK_OBJECT (mozilla), "end_load_url",
(GtkSignalFunc) end_load_url,
&browser);
gtk_signal_connect(GTK_OBJECT (back_button), "clicked",
(GtkSignalFunc) back_clicked,
mozilla);
gtk_signal_connect(GTK_OBJECT (url_entry), "activate",
(GtkSignalFunc) url_activate,
mozilla);
gtk_signal_connect(GTK_OBJECT (forward_button), "clicked",
(GtkSignalFunc) forward_clicked,
mozilla);
gtk_signal_connect(GTK_OBJECT (stream_button), "clicked",
(GtkSignalFunc) stream_clicked,
mozilla);
set_buttons(&browser);
gtk_main ();
return(0);
}

View File

@ -1,251 +0,0 @@
#!/bin/sh
#
# install - install a program, script, or datafile
# This comes from X11R5 (mit/util/scripts/install.sh).
#
# Copyright 1991 by the Massachusetts Institute of Technology
#
# Permission to use, copy, modify, distribute, and sell this software and its
# documentation for any purpose is hereby granted without fee, provided that
# the above copyright notice appear in all copies and that both that
# copyright notice and this permission notice appear in supporting
# documentation, and that the name of M.I.T. not be used in advertising or
# publicity pertaining to distribution of the software without specific,
# written prior permission. M.I.T. makes no representations about the
# suitability of this software for any purpose. It is provided "as is"
# without express or implied warranty.
#
# Calling this script install-sh is preferred over install.sh, to prevent
# `make' implicit rules from creating a file called install from it
# when there is no Makefile.
#
# This script is compatible with the BSD install script, but was written
# from scratch. It can only install one file at a time, a restriction
# shared with many OS's install programs.
# set DOITPROG to echo to test this script
# Don't use :- since 4.3BSD and earlier shells don't like it.
doit="${DOITPROG-}"
# put in absolute paths if you don't have them in your path; or use env. vars.
mvprog="${MVPROG-mv}"
cpprog="${CPPROG-cp}"
chmodprog="${CHMODPROG-chmod}"
chownprog="${CHOWNPROG-chown}"
chgrpprog="${CHGRPPROG-chgrp}"
stripprog="${STRIPPROG-strip}"
rmprog="${RMPROG-rm}"
mkdirprog="${MKDIRPROG-mkdir}"
transformbasename=""
transform_arg=""
instcmd="$mvprog"
chmodcmd="$chmodprog 0755"
chowncmd=""
chgrpcmd=""
stripcmd=""
rmcmd="$rmprog -f"
mvcmd="$mvprog"
src=""
dst=""
dir_arg=""
while [ x"$1" != x ]; do
case $1 in
-c) instcmd="$cpprog"
shift
continue;;
-d) dir_arg=true
shift
continue;;
-m) chmodcmd="$chmodprog $2"
shift
shift
continue;;
-o) chowncmd="$chownprog $2"
shift
shift
continue;;
-g) chgrpcmd="$chgrpprog $2"
shift
shift
continue;;
-s) stripcmd="$stripprog"
shift
continue;;
-t=*) transformarg=`echo $1 | sed 's/-t=//'`
shift
continue;;
-b=*) transformbasename=`echo $1 | sed 's/-b=//'`
shift
continue;;
*) if [ x"$src" = x ]
then
src=$1
else
# this colon is to work around a 386BSD /bin/sh bug
:
dst=$1
fi
shift
continue;;
esac
done
if [ x"$src" = x ]
then
echo "install: no input file specified"
exit 1
else
true
fi
if [ x"$dir_arg" != x ]; then
dst=$src
src=""
if [ -d $dst ]; then
instcmd=:
chmodcmd=""
else
instcmd=mkdir
fi
else
# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
# might cause directories to be created, which would be especially bad
# if $src (and thus $dsttmp) contains '*'.
if [ -f $src -o -d $src ]
then
true
else
echo "install: $src does not exist"
exit 1
fi
if [ x"$dst" = x ]
then
echo "install: no destination specified"
exit 1
else
true
fi
# If destination is a directory, append the input filename; if your system
# does not like double slashes in filenames, you may need to add some logic
if [ -d $dst ]
then
dst="$dst"/`basename $src`
else
true
fi
fi
## this sed command emulates the dirname command
dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
# Make sure that the destination directory exists.
# this part is taken from Noah Friedman's mkinstalldirs script
# Skip lots of stat calls in the usual case.
if [ ! -d "$dstdir" ]; then
defaultIFS='
'
IFS="${IFS-${defaultIFS}}"
oIFS="${IFS}"
# Some sh's can't handle IFS=/ for some reason.
IFS='%'
set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
IFS="${oIFS}"
pathcomp=''
while [ $# -ne 0 ] ; do
pathcomp="${pathcomp}${1}"
shift
if [ ! -d "${pathcomp}" ] ;
then
$mkdirprog "${pathcomp}"
else
true
fi
pathcomp="${pathcomp}/"
done
fi
if [ x"$dir_arg" != x ]
then
$doit $instcmd $dst &&
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
else
# If we're going to rename the final executable, determine the name now.
if [ x"$transformarg" = x ]
then
dstfile=`basename $dst`
else
dstfile=`basename $dst $transformbasename |
sed $transformarg`$transformbasename
fi
# don't allow the sed command to completely eliminate the filename
if [ x"$dstfile" = x ]
then
dstfile=`basename $dst`
else
true
fi
# Make a temp file name in the proper directory.
dsttmp=$dstdir/#inst.$$#
# Move or copy the file name to the temp name
$doit $instcmd $src $dsttmp &&
trap "rm -f ${dsttmp}" 0 &&
# and set any options; do chmod last to preserve setuid bits
# If any of these fail, we abort the whole thing. If we want to
# ignore errors from any of these, just make sure not to ignore
# errors from the above "$doit $instcmd $src $dsttmp" command.
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
# Now rename the file to the real destination.
$doit $rmcmd -f $dstdir/$dstfile &&
$doit $mvcmd $dsttmp $dstdir/$dstfile
fi &&
exit 0

View File

@ -1,8 +0,0 @@
Makefile
gtkmozilla.lo
GtkMozillaContainer.lo
GtkMozillaInputStream.lo
nsSetupRegistry.lo
.libs
libgtkmozilla.la
nsNewTimer.lo

View File

@ -1,624 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "MPL"); you may not use this file except in
* compliance with the MPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of the Original Code is Alexander. Portions
* created by Alexander Larsson are Copyright (C) 1999
* Alexander Larsson. All Rights Reserved.
*/
#include "GtkMozillaContainer.h"
#include "nsRepository.h"
#include "nsIBaseWindow.h"
#include "nsIWebShell.h"
#include "nsIWebNavigation.h"
#include "nsIURL.h"
#include "nsIIOService.h"
#include "nsIServiceManager.h"
#include "nsNetUtil.h"
#include "nsFileSpec.h"
#include "nsIDocumentLoader.h"
#include "nsIDocumentLoaderFactory.h"
#include "nsIContentViewer.h"
#include "prprf.h"
#include "nsIPref.h"
static NS_DEFINE_CID(kWebShellCID, NS_WEB_SHELL_CID);
static NS_DEFINE_CID(kIOServiceCID, NS_IOSERVICE_CID);
GtkMozillaContainer::GtkMozillaContainer(GtkMozilla *moz, nsIPref * aPrefs)
{
mWebShell = nsnull;
width = height = 0;
mStream = nsnull;
mChannel = nsnull;
mLoadGroup = nsnull;
mContext = nsnull;
mMozArea = nsnull;
mSuperWin = nsnull;
mozilla = moz;
gtk_widget_set_app_paintable(GTK_WIDGET(moz), PR_TRUE);
mPrefs = aPrefs;
NS_IF_ADDREF(mPrefs);
}
GtkMozillaContainer::~GtkMozillaContainer(void)
{
NS_IF_RELEASE(mWebShell);
NS_IF_RELEASE(mPrefs);
}
void
GtkMozillaContainer::Show()
{
GtkAllocation *alloc = &GTK_WIDGET(mozilla)->allocation;
// g_print("GtkMozillaContainer::Show\n");
nsresult rv = nsRepository::CreateInstance(kWebShellCID,
nsnull,
NS_GET_IID(nsIWebShell),
(void**) &mWebShell);
if (NS_FAILED(rv) || !mWebShell)
{
printf("Cannot create WebShell!\n");
return;
}
if (mozilla)
{
width = alloc->width;
height = alloc->height;
// we need to create the mozbox here that will shim
// between the superwin and the widget.
mMozArea = gtk_mozarea_new();
gtk_container_add(GTK_CONTAINER(mozilla), mMozArea);
gtk_widget_realize(mMozArea);
gtk_widget_show(mMozArea);
mSuperWin = GTK_MOZAREA(mMozArea)->superwin;
#ifdef TRAVIS_FIX_ME
//printf("Init, size: %d, %d\n", width, height);
mWebShell->Init((nsNativeWidget *)mSuperWin,
0,
0,
width,
height);
#endif
mWebShell->SetContainer(this);
}
gdk_window_show(mSuperWin->bin_window);
gdk_window_show(mSuperWin->shell_window);
if (mWebShell)
{
nsCOMPtr<nsIBaseWindow> window = do_QueryInterface(mWebShell);
if (window) {
window->SetVisibility(PR_TRUE);
}
}
}
void
GtkMozillaContainer::Resize(gint w, gint h)
{
GtkAllocation alloc;
// g_print("GtkMozillaContainer::Resize called width: %d, %d\n", w, h);
if (mWebShell) {
width = w;
height = h;
//printf("GtkMozillaContainer::Resize setting to: %d, %d\n", width, height);
alloc.x = GTK_WIDGET(mozilla)->allocation.x;
alloc.y = GTK_WIDGET(mozilla)->allocation.y;
alloc.width = w;
alloc.height = h;
// gtk_widget_size_allocate(GTK_WIDGET(mozilla), &alloc);
gdk_superwin_resize(mSuperWin, width, height);
nsCOMPtr<nsIBaseWindow> window = do_QueryInterface(mWebShell);
if (window) {
window->SetPositionAndSize(0, 0, width, height, PR_FALSE);
}
}
}
void
GtkMozillaContainer::LoadURL(const gchar *url)
{
PRUnichar *u_url;
int len, i;
len = strlen(url);
u_url = new (PRUnichar)[len+1];
for (i=0;i<len;i++)
u_url[i] = (PRUnichar) url[i];
u_url[len] = 0;
mWebShell->LoadURL(u_url);
delete [] u_url;
}
void
GtkMozillaContainer::Stop()
{
nsCOMPtr<nsIWebNavigation> webNav(do_QueryInterface(mWebShell));
webNav->Stop();
}
void
GtkMozillaContainer::Reload(GtkMozillaReloadType type)
{
nsCOMPtr<nsIWebNavigation> webNav(do_QueryInterface(mWebShell));
webNav->Reload(nsIWebNavigation::reloadNormal);
}
gint
GtkMozillaContainer::Back()
{
#ifdef TRAVIS_FIX_ME
return NS_SUCCEEDED(mWebShell->Back());
#else
return 0;
#endif
}
gint
GtkMozillaContainer::CanBack()
{
#ifdef TRAVIS_FIX_ME
return mWebShell->CanBack()==NS_OK;
#else
return 0;
#endif
}
gint
GtkMozillaContainer::Forward()
{
#ifdef TRAVIS_FIX_ME
return NS_SUCCEEDED(mWebShell->Forward());
#else
return 0;
#endif
}
gint
GtkMozillaContainer::CanForward()
{
#ifdef TRAVIS_FIX_ME
return mWebShell->CanForward()==NS_OK;
#else
return 0;
#endif
}
gint
GtkMozillaContainer::GoTo(gint history_index)
{
return NS_SUCCEEDED(mWebShell->GoTo((PRInt32)history_index));
}
gint
GtkMozillaContainer::GetHistoryLength()
{
PRInt32 Result;
if (NS_SUCCEEDED(mWebShell->GetHistoryLength(Result)))
return (gint) Result;
else
return 0;
}
gint
GtkMozillaContainer::GetHistoryIndex()
{
PRInt32 Result;
if (NS_SUCCEEDED(mWebShell->GetHistoryIndex(Result)))
return (gint) Result;
else
return 0;
}
NS_IMETHODIMP
GtkMozillaContainer::QueryInterface(REFNSIID aIID, void** aInstancePtr)
{
if (NULL == aInstancePtr) {
return NS_ERROR_NULL_POINTER;
}
nsISupports *ifp = nsnull;
if (aIID.Equals(NS_GET_IID(nsIWebShellContainer))) {
ifp = (nsIWebShellContainer*)this;
} else if(aIID.Equals(NS_GET_IID(nsISupports))) {
ifp = this;
} else {
*aInstancePtr = 0;
return NS_NOINTERFACE;
}
*aInstancePtr = (void *)ifp;
NS_ADDREF(ifp);
return NS_OK;
}
nsrefcnt
GtkMozillaContainer::AddRef()
{
// This object is not reference counted so we just return a number > 0
return 3;
}
nsrefcnt
GtkMozillaContainer::Release()
{
// This object is not reference counted so we just return a number > 0
return 2;
}
static char *simple_unicode_to_char(const PRUnichar* aURL)
{
int i;
int len=0;
const PRUnichar* ptr;
char *str;
ptr=aURL;
while (*ptr++)
len++;
str = (char *)malloc(len+1);
if (str==NULL)
return NULL;
for (i=0;i<len;i++) {
if (aURL[i]<127)
str[i] = (char) aURL[i]&0xff;
else
str[i] = '_';
}
str[len] = 0;
return str;
}
NS_IMETHODIMP
GtkMozillaContainer::WillLoadURL(nsIWebShell* aShell,
const PRUnichar* aURL,
nsLoadType aReason)
{
gint result = 1;
char *url = simple_unicode_to_char(aURL);
gtk_signal_emit_by_name(GTK_OBJECT(mozilla), "will_load_url",
url, (gint) aReason, &result);
if (url)
free(url);
return (result)?NS_OK:NS_ERROR_FAILURE;
}
NS_IMETHODIMP
GtkMozillaContainer::BeginLoadURL(nsIWebShell* aShell, const PRUnichar* aURL)
{
char *url = simple_unicode_to_char(aURL);
gtk_signal_emit_by_name(GTK_OBJECT(mozilla), "begin_load_url", url);
if (url)
free(url);
return NS_OK;
}
NS_IMETHODIMP
GtkMozillaContainer::EndLoadURL(nsIWebShell* aShell,
const PRUnichar* aURL,
nsresult aStatus)
{
char *url = simple_unicode_to_char(aURL);
gtk_signal_emit_by_name(GTK_OBJECT(mozilla), "end_load_url",
url, (gint) aStatus);
if (url)
free(url);
return NS_OK;
}
nsresult
GtkMozillaContainer::CreateContentViewer(const char *aCommand,
nsIChannel *aChannel,
nsILoadGroup *aLoadGroup,
const char *aContentType,
nsIContentViewerContainer* aContainer,
nsISupports* aExtraInfo,
nsIStreamListener** aDocListenerResult,
nsIContentViewer** aDocViewerResult)
{
// Lookup class-id for the command plus content-type combination
nsCID cid;
char id[500];
PR_snprintf(id, sizeof(id),
NS_DOCUMENT_LOADER_FACTORY_PROGID_PREFIX "%s/%s",
aCommand, aContentType);
nsresult rv = nsComponentManager::ProgIDToClassID(id, &cid);
if (NS_FAILED(rv)) {
return rv;
}
// Create an instance of the document-loader-factory object
nsIDocumentLoaderFactory* factory;
rv = nsComponentManager::CreateInstance(cid, (nsISupports *)nsnull,
NS_GET_IID(nsIDocumentLoaderFactory),
(void **)&factory);
if (NS_FAILED(rv)) {
return rv;
}
// Now create an instance of the content viewer
rv = factory->CreateInstance(aCommand,
aChannel,
aLoadGroup,
aContentType,
aContainer,
aExtraInfo,
aDocListenerResult,
aDocViewerResult);
NS_RELEASE(factory);
return rv;
}
NS_IMETHODIMP
GtkMozillaContainer::ProgressLoadURL(nsIWebShell* aShell, const PRUnichar* aURL, PRInt32 aProgress,
PRInt32 aProgressMax)
{
printf("Progress: %d (0..%d)\n", aProgress, aProgressMax);
return NS_OK;
}
NS_IMETHODIMP
GtkMozillaContainer::NewWebShell(PRUint32 aChromeMask, PRBool aVisible, nsIWebShell *&aNewWebShell)
{
printf("NewWebShell\n");
aNewWebShell = nsnull;
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP
GtkMozillaContainer::FindWebShellWithName(const PRUnichar* aName, nsIWebShell*& aResult)
{
printf("FindWebShellWithName\n");
aResult = nsnull;
#ifdef TRAVIS_FIX_ME
if (NS_OK == mWebShell->FindChildWithName(aName, aResult)) {
if (nsnull != aResult) {
return NS_OK;
}
}
#endif
return NS_OK;
}
NS_IMETHODIMP
GtkMozillaContainer::ContentShellAdded(nsIWebShell* aChildShell, nsIContent* frameNode)
{
printf("ContentShellAdded\n");
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP
GtkMozillaContainer::CreatePopup(nsIDOMElement* aElement, nsIDOMElement* aPopupContent,
PRInt32 aXPos, PRInt32 aYPos,
const nsString& aPopupType,
const nsString& anAnchorAlignment,
const nsString& aPopupAlignment,
nsIDOMWindow* aWindow,
nsIDOMWindow** outPopup)
{
printf("CreatePopup\n");
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP
GtkMozillaContainer::CanCreateNewWebShell(PRBool& aResult)
{
printf("CanCreateNewWebShell\n");
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP
GtkMozillaContainer::SetNewWebShellInfo(const nsString& aName, const nsString& anURL,
nsIWebShell* aOpenerShell, PRUint32 aChromeMask,
nsIWebShell** aNewShell, nsIWebShell** anInnerShell)
{
printf("SetNewWebShellInfo\n");
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP
GtkMozillaContainer::ChildShellAdded(nsIWebShell** aChildShell, nsIContent* frameNode)
{
printf("ChildShellAdded\n");
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP
GtkMozillaContainer::FocusAvailable(nsIWebShell* aFocusedWebShell, PRBool& aFocusTaken)
{
printf("FocusAvailable\n");
return NS_ERROR_FAILURE;
}
gint
GtkMozillaContainer::StartStream(const char *base_url,
const char *action,
nsISupports * ctxt,
const char *content_type)
{
nsresult rv = NS_OK;
nsIURI* url = nsnull;
nsIContentViewer* viewer = nsnull;
nsString url_str(base_url);
nsIInputStream *istream = NULL;
mStream = new GtkMozillaInputStream();
if (mStream == nsnull)
goto error;
NS_ADDREF(mStream); /* Own this */
rv = CallQueryInterface(mStream, &istream);
if (NS_FAILED(rv))
goto error;
rv = NS_NewURI(&url, url_str, NULL);
if (NS_FAILED(rv))
goto error;
rv = NS_NewLoadGroup(&mLoadGroup, nsnull);
if (NS_FAILED(rv))
goto error;
rv = NS_NewInputStreamChannel(&mChannel, url, istream, content_type,
1024/*len*/);
if (NS_FAILED(rv))
goto error;
rv = mChannel->SetLoadGroup(mLoadGroup);
if (NS_FAILED(rv))
goto error;
NS_RELEASE(istream);
rv = CreateContentViewer(action, mChannel, mLoadGroup, content_type,
mWebShell, nsnull, &mListener, &viewer);
if (NS_FAILED(rv)) {
printf("GtkMozillaContainer: Unable to create ContentViewer for action=%s, content-type=%s\n", action, content_type);
goto error;
}
rv = viewer->SetContainer((nsIContentViewerContainer*)mWebShell);
if (NS_FAILED(rv))
goto error;
rv = mWebShell->Embed(viewer, action, nsnull);
if (NS_FAILED(rv))
goto error;
/*
* Pass the OnStartRequest(...) notification out to the document
* IStreamListener.
*/
rv = mListener->OnStartRequest(mChannel, ctxt);
if (NS_FAILED(rv))
goto error;
mContext = ctxt;
NS_IF_RELEASE(viewer);
if (NS_SUCCEEDED(rv))
return 0;
else
return -1;
error:
if (mStream != NULL) {
delete mStream;
mStream = NULL;
}
NS_IF_RELEASE(istream);
NS_IF_RELEASE(url);
NS_IF_RELEASE(mLoadGroup);
NS_IF_RELEASE(mChannel);
NS_IF_RELEASE(viewer);
NS_IF_RELEASE(mListener);
return -1;
}
gint
GtkMozillaContainer::WriteStream(const char *data,
gint offset,
gint len)
{
nsresult rv = NS_OK;
PRUint32 Count;
mStream->Fill(data, len);
rv = mListener->OnDataAvailable(mChannel,
mContext,
mStream,
offset,
len);
if (NS_FAILED(rv))
return 0;
// Busted in NECKO
// rv = mListener->OnProgress(mChannel, len, len+1);
if (NS_FAILED(rv))
return 0;
mStream->FillResult(&Count);
return (gint) Count;
}
void
GtkMozillaContainer::EndStream(void)
{
nsresult rv = NS_OK;
mStream->Fill(NULL, 0);
rv = mListener->OnDataAvailable(mChannel,
mContext,
mStream,
0,
0);
if (NS_FAILED(rv))
return;
rv = mListener->OnStopRequest(mChannel,
mContext,
NS_OK,
NULL);
if (NS_FAILED(rv))
return;
// Busted in NECKO
// rv = mListener->OnProgress(mChannel, 10, 10);
if (NS_FAILED(rv))
return;
NS_IF_RELEASE(mChannel);
NS_IF_RELEASE(mLoadGroup);
NS_IF_RELEASE(mListener);
NS_IF_RELEASE(mStream);
}

View File

@ -1,128 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "MPL"); you may not use this file except in
* compliance with the MPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of the Original Code is Alexander. Portions
* created by Alexander Larsson are Copyright (C) 1999
* Alexander Larsson. All Rights Reserved.
*/
#ifndef GTKMOZILLACONTAINER_H
#define GTKMOZILLACONTAINER_H
#include <gtk/gtk.h>
#include "nsIWebShell.h"
#include "GtkMozillaInputStream.h"
#include "gtkmozilla.h"
#include "gdksuperwin.h"
#include "gtkmozarea.h"
class nsIWebShell;
class nsIPref;
class GtkMozillaContainer : public nsIWebShellContainer
{
public:
// nsISupports interface declaration
NS_DECL_ISUPPORTS
// nsIWebShellContainer
NS_IMETHOD WillLoadURL(nsIWebShell* aShell, const PRUnichar* aURL, nsLoadType aReason);
NS_IMETHOD BeginLoadURL(nsIWebShell* aShell, const PRUnichar* aURL);
NS_IMETHOD ProgressLoadURL(nsIWebShell* aShell, const PRUnichar* aURL, PRInt32 aProgress, PRInt32 aProgressMax);
NS_IMETHOD EndLoadURL(nsIWebShell* aShell, const PRUnichar* aURL, nsresult aStatus);
NS_IMETHOD NewWebShell(PRUint32 aChromeMask, PRBool aVisible,
nsIWebShell *&aNewWebShell);
NS_IMETHOD FocusAvailable(nsIWebShell* aFocusedWebShell,
PRBool& aFocusTaken);
NS_IMETHOD CanCreateNewWebShell(PRBool& aResult);
NS_IMETHOD SetNewWebShellInfo(const nsString& aName, const nsString& anURL,
nsIWebShell* aOpenerShell, PRUint32 aChromeMask,
nsIWebShell** aNewShell, nsIWebShell** anInnerShell);
NS_IMETHOD FindWebShellWithName(const PRUnichar* aName,
nsIWebShell*& aResult);
NS_IMETHOD ContentShellAdded(nsIWebShell* aChildShell,
nsIContent* frameNode);
NS_IMETHOD CreatePopup(nsIDOMElement* aElement, nsIDOMElement* aPopupContent,
PRInt32 aXPos, PRInt32 aYPos,
const nsString& aPopupType, const nsString& anAnchorAlignment,
const nsString& aPopupAlignment,
nsIDOMWindow* aWindow, nsIDOMWindow** outPopup);
NS_IMETHOD ChildShellAdded(nsIWebShell** aChildShell, nsIContent* frameNode);
// Construction
GtkMozillaContainer(GtkMozilla *moz, nsIPref * aPrefs); // standard constructor
virtual ~GtkMozillaContainer();
void Show();
void Resize(gint w, gint h);
void LoadURL(const char *url);
void Stop();
void Reload(GtkMozillaReloadType type);
gint Back();
gint CanBack();
gint Forward();
gint CanForward();
gint GoTo(gint history_index);
gint GetHistoryLength();
gint GetHistoryIndex();
/* Stream stuff: */
gint StartStream(const char *base_url,
const char *action,
nsISupports * ctxt,
const char *content_type);
gint WriteStream(const char *data,
gint offset,
gint len);
void EndStream(void);
protected:
nsresult CreateContentViewer(const char *aCommand,
nsIChannel * aChannel,
nsILoadGroup * aLoadGroup,
const char* aContentType,
nsIContentViewerContainer* aContainer,
nsISupports* aExtraInfo,
nsIStreamListener** aDocListenerResult,
nsIContentViewer** aDocViewerResult);
nsIWebShell *mWebShell;
nsIPref *mPrefs;
GtkMozilla *mozilla;
int width, height;
GtkWidget *mMozArea;
GdkSuperWin *mSuperWin;
/* Stream stuff: */
GtkMozillaInputStream *mStream;
nsIChannel *mChannel;
nsILoadGroup *mLoadGroup;
nsISupports *mContext;
nsIStreamListener *mListener;
};
#endif /* GTKMOZILLACONTAINER_H */

View File

@ -1,110 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "MPL"); you may not use this file except in
* compliance with the MPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of the Original Code is Alexander. Portions
* created by Alexander Larsson are Copyright (C) 1999
* Alexander Larsson. All Rights Reserved.
*/
#include "nscore.h"
#include "GtkMozillaInputStream.h"
#include "stdio.h"
GtkMozillaInputStream::GtkMozillaInputStream(void)
{
mBuffer = nsnull;
}
GtkMozillaInputStream::~GtkMozillaInputStream(void)
{
}
NS_IMETHODIMP
GtkMozillaInputStream::QueryInterface(REFNSIID aIID, void** aInstancePtr)
{
if (NULL == aInstancePtr) {
return NS_ERROR_NULL_POINTER;
}
nsISupports *ifp = nsnull;
if (aIID.Equals(NS_GET_IID(nsIInputStream))) {
ifp = (nsIInputStream*)this;
} else if(aIID.Equals(NS_GET_IID(nsIBaseStream))) {
ifp = (nsIBaseStream*)this;;
} else if(aIID.Equals(NS_GET_IID(nsISupports))) {
ifp = this;
} else {
*aInstancePtr = 0;
return NS_NOINTERFACE;
}
*aInstancePtr = (void *)ifp;
NS_ADDREF(ifp);
return NS_OK;
}
NS_IMPL_RELEASE(GtkMozillaInputStream)
NS_IMPL_ADDREF(GtkMozillaInputStream)
// nsIInputStream interface
NS_IMETHODIMP
GtkMozillaInputStream::Available(PRUint32 *aLength)
{
*aLength = mCount;
return NS_OK;
}
NS_IMETHODIMP
GtkMozillaInputStream::Read(char* aBuf, PRUint32 aCount, PRUint32 *aReadCount)
{
if (mCount<aCount)
mReadCount = mCount;
else
mReadCount = aCount;
memcpy(aBuf, mBuffer, mReadCount);
*aReadCount = mReadCount;
mBuffer = nsnull;
mCount = 0;
return NS_OK;
}
// nsIBaseStream interface
NS_IMETHODIMP
GtkMozillaInputStream::Close(void)
{
printf("GtkMozillaInputStream::Close() called.\n");
return NS_OK;
}
// Specific interface
NS_IMETHODIMP
GtkMozillaInputStream::Fill(const char *aBuffer, PRUint32 aCount)
{
mBuffer = aBuffer;
mCount = aCount;
return NS_OK;
}
NS_IMETHODIMP
GtkMozillaInputStream::FillResult(PRUint32 *aReadCount)
{
*aReadCount = mReadCount;
return NS_OK;
}

View File

@ -1,47 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "MPL"); you may not use this file except in
* compliance with the MPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of the Original Code is Alexander. Portions
* created by Alexander Larsson are Copyright (C) 1999
* Alexander Larsson. All Rights Reserved.
*/
#ifndef GTKMOZILLAINPUTSTREAM_H
#define GTKMOZILLAINPUTSTREAM_H
#include "nsIInputStream.h"
class GtkMozillaInputStream : public nsIInputStream {
public:
GtkMozillaInputStream(void);
~GtkMozillaInputStream(void);
// nsISupports interface
NS_DECL_ISUPPORTS
// nsIInputStream interface
NS_DECL_NSIINPUTSTREAM
// nsIBaseStream interface
NS_DECL_NSIBASESTREAM
// Specific interface
NS_IMETHOD Fill(const char *buffer, PRUint32 aCount);
NS_IMETHOD FillResult(PRUint32 *aReadCount);
protected:
PRUint32 mReadCount;
PRUint32 mCount;
const char *mBuffer;
};
#endif /* GTKMOZILLAINPUTSTREAM_H */

View File

@ -1,49 +0,0 @@
## Process this file with automake to produce Makefile.in
lib_LTLIBRARIES = libgtkmozilla.la
include_HEADERS = gtkmozilla.h
libgtkmozilla_la_SOURCES = \
gtkmozilla.cpp \
gtkmozilla.h \
GtkMozillaContainer.h \
GtkMozillaContainer.cpp \
GtkMozillaInputStream.h \
GtkMozillaInputStream.cpp \
nsNewTimer.cpp \
nsSetupRegistry.cpp
MOZILLA_INCLUDES = -I@MOZILLA_DIR@/include -I@NSPR_DIR@/include
# Mozilla libs:
NULL =
NSPR_LIBS = -L@NSPR_DIR@/lib -lplds$(NSPR_VERSION) -lplc$(NSPR_VERSION) -lnspr$(NSPR_VERSION) @LIBPTHREAD@
BASE_LIBS = \
-lmozjs \
-lxpcom \
$(NULL)
GECKO_LIBS =\
-lraptorgfx \
$(NULL)
JSJ_LIB =
TK_LIBS =
ALL_MOZ_LIBS = \
$(GECKO_LIBS) \
$(BASE_LIBS) \
$(JSJ_LIB) \
$(NSPR_LIBS) \
$(TK_LIBS) \
-lgtksuperwin \
$(NULL)
MOZILLA_LIBS=-L$(MOZILLA_DIR)/lib \
$(ALL_MOZ_LIBS)
INCLUDES = $(MOZILLA_INCLUDES) @GTK_CFLAGS@ @DEBUG_FLAGS@
CPPFLAGS = `$(MOZILLA_DIR)/bin/mozilla-config --cflags`
libgtkmozilla_la_LIBADD = $(MOZILLA_LIBS) @GTK_LIBS@

View File

@ -1,425 +0,0 @@
# Makefile.in generated automatically by automake 1.4a from Makefile.am
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
SHELL = @SHELL@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
oldincludedir = /usr/include
DESTDIR =
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
top_builddir = ..
ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_FLAG =
transform = @program_transform_name@
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
host_alias = @host_alias@
host_triplet = @host@
AS = @AS@
CC = @CC@
CXX = @CXX@
DEBUG_FLAGS = @DEBUG_FLAGS@
DLLTOOL = @DLLTOOL@
GTK_CFLAGS = @GTK_CFLAGS@
GTK_CONFIG = @GTK_CONFIG@
GTK_LIBS = @GTK_LIBS@
LD = @LD@
LIBPTHREAD = @LIBPTHREAD@
LIBTOOL = @LIBTOOL@
LN_S = @LN_S@
MAINT = @MAINT@
MAKEINFO = @MAKEINFO@
MOZILLA_DIR = @MOZILLA_DIR@
NM = @NM@
NSPR_DIR = @NSPR_DIR@
NSPR_VERSION = @NSPR_VERSION@
PACKAGE = @PACKAGE@
RANLIB = @RANLIB@
USE_SYMBOL_UNDERSCORE = @USE_SYMBOL_UNDERSCORE@
VERSION = @VERSION@
lib_LTLIBRARIES = libgtkmozilla.la
include_HEADERS = gtkmozilla.h
libgtkmozilla_la_SOURCES = gtkmozilla.cpp gtkmozilla.h GtkMozillaContainer.h GtkMozillaContainer.cpp GtkMozillaInputStream.h GtkMozillaInputStream.cpp nsNewTimer.cpp nsSetupRegistry.cpp
MOZILLA_INCLUDES = -I@MOZILLA_DIR@/include -I@NSPR_DIR@/include
# Mozilla libs:
NULL =
NSPR_LIBS = -L@NSPR_DIR@/lib -lplds$(NSPR_VERSION) -lplc$(NSPR_VERSION) -lnspr$(NSPR_VERSION) @LIBPTHREAD@
BASE_LIBS = $(MOZ_JS_LIBS) $(XPCOM_LIBS) $(NULL)
GECKO_LIBS = -lraptorgfx $(NULL)
JSJ_LIB =
TK_LIBS =
ALL_MOZ_LIBS = $(GECKO_LIBS) $(BASE_LIBS) $(JSJ_LIB) $(NSPR_LIBS) $(TK_LIBS) -lgtksuperwin $(NULL)
MOZILLA_LIBS = -L$(MOZILLA_DIR)/lib $(ALL_MOZ_LIBS)
INCLUDES = $(MOZILLA_INCLUDES) @GTK_CFLAGS@ @DEBUG_FLAGS@
CPPFLAGS = `$(MOZILLA_DIR)/bin/mozilla-config --cflags`
libgtkmozilla_la_LIBADD = $(MOZILLA_LIBS) @GTK_LIBS@
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../config.h
CONFIG_CLEAN_FILES =
LTLIBRARIES = $(lib_LTLIBRARIES)
DEFS = @DEFS@ -I. -I$(srcdir) -I..
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
libgtkmozilla_la_LDFLAGS =
libgtkmozilla_la_DEPENDENCIES =
libgtkmozilla_la_OBJECTS = gtkmozilla.lo GtkMozillaContainer.lo \
GtkMozillaInputStream.lo nsNewTimer.lo nsSetupRegistry.lo
CXXFLAGS = @CXXFLAGS@
CXXCOMPILE = $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
CXXLD = $(CXX)
CXXLINK = $(LIBTOOL) --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@
CFLAGS = @CFLAGS@
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
HEADERS = $(include_HEADERS)
DIST_COMMON = Makefile.am Makefile.in
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
TAR = gtar
GZIP_ENV = --best
DEP_FILES = .deps/GtkMozillaContainer.P .deps/GtkMozillaInputStream.P \
.deps/gtkmozilla.P .deps/nsNewTimer.P .deps/nsSetupRegistry.P
SOURCES = $(libgtkmozilla_la_SOURCES)
OBJECTS = $(libgtkmozilla_la_OBJECTS)
all: all-redirect
.SUFFIXES:
.SUFFIXES: .S .c .cpp .lo .o .s
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
cd $(top_srcdir) && $(AUTOMAKE) --gnu lib/Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
cd $(top_builddir) \
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
mostlyclean-libLTLIBRARIES:
clean-libLTLIBRARIES:
-test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
distclean-libLTLIBRARIES:
maintainer-clean-libLTLIBRARIES:
install-libLTLIBRARIES: $(lib_LTLIBRARIES)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(libdir)
@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
if test -f $$p; then \
echo "$(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(libdir)/$$p"; \
$(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(libdir)/$$p; \
else :; fi; \
done
uninstall-libLTLIBRARIES:
@$(NORMAL_UNINSTALL)
list='$(lib_LTLIBRARIES)'; for p in $$list; do \
$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
done
.s.o:
$(COMPILE) -c $<
.S.o:
$(COMPILE) -c $<
mostlyclean-compile:
-rm -f *.o core *.core
clean-compile:
distclean-compile:
-rm -f *.tab.c
maintainer-clean-compile:
.s.lo:
$(LIBTOOL) --mode=compile $(COMPILE) -c $<
.S.lo:
$(LIBTOOL) --mode=compile $(COMPILE) -c $<
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
distclean-libtool:
maintainer-clean-libtool:
libgtkmozilla.la: $(libgtkmozilla_la_OBJECTS) $(libgtkmozilla_la_DEPENDENCIES)
$(CXXLINK) -rpath $(libdir) $(libgtkmozilla_la_LDFLAGS) $(libgtkmozilla_la_OBJECTS) $(libgtkmozilla_la_LIBADD) $(LIBS)
.cpp.o:
$(CXXCOMPILE) -c $<
.cpp.lo:
$(LTCXXCOMPILE) -c $<
install-includeHEADERS: $(include_HEADERS)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(includedir)
@list='$(include_HEADERS)'; for p in $$list; do \
if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \
echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p"; \
$(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p; \
done
uninstall-includeHEADERS:
@$(NORMAL_UNINSTALL)
list='$(include_HEADERS)'; for p in $$list; do \
rm -f $(DESTDIR)$(includedir)/$$p; \
done
tags: TAGS
ID: $(HEADERS) $(SOURCES) $(LISP)
list='$(SOURCES) $(HEADERS)'; \
unique=`for i in $$list; do echo $$i; done | \
awk ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
here=`pwd` && cd $(srcdir) \
&& mkid -f$$here/ID $$unique $(LISP)
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
tags=; \
here=`pwd`; \
list='$(SOURCES) $(HEADERS)'; \
unique=`for i in $$list; do echo $$i; done | \
awk ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
|| (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
mostlyclean-tags:
clean-tags:
distclean-tags:
-rm -f TAGS ID
maintainer-clean-tags:
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
subdir = lib
distdir: $(DISTFILES)
here=`cd $(top_builddir) && pwd`; \
top_distdir=`cd $(top_distdir) && pwd`; \
distdir=`cd $(distdir) && pwd`; \
cd $(top_srcdir) \
&& $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu lib/Makefile
@for file in $(DISTFILES); do \
d=$(srcdir); \
if test -d $$d/$$file; then \
cp -pr $$d/$$file $(distdir)/$$file; \
else \
test -f $(distdir)/$$file \
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|| cp -p $$d/$$file $(distdir)/$$file || :; \
fi; \
done
DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
-include $(DEP_FILES)
mostlyclean-depend:
clean-depend:
distclean-depend:
-rm -rf .deps
maintainer-clean-depend:
%.o: %.c
@echo '$(COMPILE) -c $<'; \
$(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
@-cp .deps/$(*F).pp .deps/$(*F).P; \
tr ' ' '\012' < .deps/$(*F).pp \
| sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
>> .deps/$(*F).P; \
rm .deps/$(*F).pp
%.lo: %.c
@echo '$(LTCOMPILE) -c $<'; \
$(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
@-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
< .deps/$(*F).pp > .deps/$(*F).P; \
tr ' ' '\012' < .deps/$(*F).pp \
| sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
>> .deps/$(*F).P; \
rm -f .deps/$(*F).pp
%.o: %.cpp
@echo '$(CXXCOMPILE) -c $<'; \
$(CXXCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
@-cp .deps/$(*F).pp .deps/$(*F).P; \
tr ' ' '\012' < .deps/$(*F).pp \
| sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
>> .deps/$(*F).P; \
rm .deps/$(*F).pp
%.lo: %.cpp
@echo '$(LTCXXCOMPILE) -c $<'; \
$(LTCXXCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
@-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
< .deps/$(*F).pp > .deps/$(*F).P; \
tr ' ' '\012' < .deps/$(*F).pp \
| sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
>> .deps/$(*F).P; \
rm -f .deps/$(*F).pp
info-am:
info: info-am
dvi-am:
dvi: dvi-am
check-am: all-am
check: check-am
installcheck-am:
installcheck: installcheck-am
install-exec-am: install-libLTLIBRARIES
install-exec: install-exec-am
install-data-am: install-includeHEADERS
install-data: install-data-am
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
install: install-am
uninstall-am: uninstall-libLTLIBRARIES uninstall-includeHEADERS
uninstall: uninstall-am
all-am: Makefile $(LTLIBRARIES) $(HEADERS)
all-redirect: all-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_STRIP_FLAG=-s install
installdirs:
$(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir)
mostlyclean-generic:
clean-generic:
distclean-generic:
-rm -f Makefile $(CONFIG_CLEAN_FILES)
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
maintainer-clean-generic:
mostlyclean-am: mostlyclean-libLTLIBRARIES mostlyclean-compile \
mostlyclean-libtool mostlyclean-tags mostlyclean-depend \
mostlyclean-generic
mostlyclean: mostlyclean-am
clean-am: clean-libLTLIBRARIES clean-compile clean-libtool clean-tags \
clean-depend clean-generic mostlyclean-am
clean: clean-am
distclean-am: distclean-libLTLIBRARIES distclean-compile \
distclean-libtool distclean-tags distclean-depend \
distclean-generic clean-am
-rm -f libtool
distclean: distclean-am
maintainer-clean-am: maintainer-clean-libLTLIBRARIES \
maintainer-clean-compile maintainer-clean-libtool \
maintainer-clean-tags maintainer-clean-depend \
maintainer-clean-generic distclean-am
@echo "This command is intended for maintainers to use;"
@echo "it deletes files that may require special tools to rebuild."
maintainer-clean: maintainer-clean-am
.PHONY: mostlyclean-libLTLIBRARIES distclean-libLTLIBRARIES \
clean-libLTLIBRARIES maintainer-clean-libLTLIBRARIES \
uninstall-libLTLIBRARIES install-libLTLIBRARIES mostlyclean-compile \
distclean-compile clean-compile maintainer-clean-compile \
mostlyclean-libtool distclean-libtool clean-libtool \
maintainer-clean-libtool uninstall-includeHEADERS \
install-includeHEADERS tags mostlyclean-tags distclean-tags clean-tags \
maintainer-clean-tags distdir mostlyclean-depend distclean-depend \
clean-depend maintainer-clean-depend info-am info dvi-am dvi check \
check-am installcheck-am installcheck install-exec-am install-exec \
install-data-am install-data install-am install uninstall-am uninstall \
all-redirect all-am all installdirs mostlyclean-generic \
distclean-generic clean-generic maintainer-clean-generic clean \
mostlyclean distclean maintainer-clean
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

View File

@ -1,435 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "MPL"); you may not use this file except in
* compliance with the MPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of the Original Code is Alexander. Portions
* created by Alexander Larsson are Copyright (C) 1999
* Alexander Larsson. All Rights Reserved.
*/
#include <gtk/gtk.h>
#include "gtkmozilla.h"
#include "GtkMozillaContainer.h"
#include "nsIServiceManager.h"
#include "nsIEventQueueService.h"
#include "nsIPref.h"
#include "nsIThread.h"
#include "nsIIOService.h"
static NS_DEFINE_CID(kEventQueueServiceCID,NS_EVENTQUEUESERVICE_CID);
static NS_DEFINE_CID(kPrefCID, NS_PREF_CID);
extern "C" void NS_SetupRegistry();
static void gtk_mozilla_realize(GtkWidget *widget);
static void gtk_mozilla_finalize (GtkObject *object);
static void gtk_mozilla_size_allocate (GtkWidget *widget, GtkAllocation *allocation);
typedef gboolean (*GtkSignal_BOOL__POINTER_INT) (GtkObject * object,
gpointer arg1,
gint arg2,
gpointer user_data);
extern "C" void
gtk_mozilla_marshal_BOOL__POINTER_INT (GtkObject * object,
GtkSignalFunc func,
gpointer func_data,
GtkArg * args)
{
GtkSignal_BOOL__POINTER_INT rfunc;
gboolean *return_val;
return_val = GTK_RETLOC_BOOL (args[2]);
rfunc = (GtkSignal_BOOL__POINTER_INT) func;
*return_val = (*rfunc) (object,
GTK_VALUE_POINTER (args[0]),
GTK_VALUE_INT (args[1]),
func_data);
}
enum {
WILL_LOAD_URL,
BEGIN_LOAD_URL,
END_LOAD_URL,
LAST_SIGNAL
};
static guint mozilla_signals[LAST_SIGNAL] = { 0 };
static GtkFixedClass *parent_class = NULL;
static void
gtk_mozilla_class_init (GtkMozillaClass *klass)
{
GtkObjectClass *object_class;
GtkWidgetClass *widget_class;
object_class = (GtkObjectClass*) klass;
widget_class = (GtkWidgetClass*) klass;
parent_class = (GtkFixedClass *)gtk_type_class (GTK_TYPE_FIXED);
mozilla_signals[WILL_LOAD_URL] =
gtk_signal_new ("will_load_url",
GTK_RUN_LAST,
object_class->type,
GTK_SIGNAL_OFFSET (GtkMozillaClass, will_load_url),
gtk_mozilla_marshal_BOOL__POINTER_INT,
GTK_TYPE_BOOL, 2,
GTK_TYPE_STRING,
GTK_TYPE_INT);
mozilla_signals[BEGIN_LOAD_URL] =
gtk_signal_new ("begin_load_url",
GTK_RUN_FIRST,
object_class->type,
GTK_SIGNAL_OFFSET (GtkMozillaClass, begin_load_url),
gtk_marshal_NONE__POINTER,
GTK_TYPE_NONE, 1,
GTK_TYPE_STRING);
mozilla_signals[END_LOAD_URL] =
gtk_signal_new ("end_load_url",
GTK_RUN_FIRST,
object_class->type,
GTK_SIGNAL_OFFSET (GtkMozillaClass, end_load_url),
gtk_marshal_NONE__POINTER_INT,
GTK_TYPE_NONE, 2,
GTK_TYPE_STRING,
GTK_TYPE_INT);
gtk_object_class_add_signals (object_class, mozilla_signals, LAST_SIGNAL);
object_class->finalize = gtk_mozilla_finalize;
widget_class->realize = gtk_mozilla_realize;
widget_class->size_allocate = gtk_mozilla_size_allocate;
klass->will_load_url = NULL;
klass->begin_load_url = NULL;
klass->end_load_url = NULL;
}
static void
gtk_mozilla_realize (GtkWidget *widget)
{
//printf("gtk_mozilla_realize()\n");
GtkMozilla *moz = GTK_MOZILLA(widget);
class GtkMozillaContainer *moz_container;
if (GTK_WIDGET_CLASS (parent_class)->realize)
(* GTK_WIDGET_CLASS (parent_class)->realize) (widget);
moz_container = (class GtkMozillaContainer *)moz->mozilla_container;
moz_container->Show();
}
static void
gtk_mozilla_size_allocate (GtkWidget *widget, GtkAllocation *allocation)
{
g_return_if_fail(widget != NULL);
g_return_if_fail(GTK_IS_WIDGET(widget));
g_return_if_fail(GTK_IS_MOZILLA(widget));
if (GTK_WIDGET_CLASS(parent_class)->size_allocate)
(*GTK_WIDGET_CLASS(parent_class)->size_allocate)(widget, allocation);
gtk_mozilla_resize(GTK_MOZILLA(widget), allocation->width, allocation->height);
}
// THIS is a total hack. Needed cause mozilla wont work without prefs
// no more. Having the prefs be static over here is bad and a better
// fix is to make them members of some kind of structure which gets
// cleaned up at shutdown time.
static nsIPref * sPrefs = nsnull;
static void
gtk_mozilla_init (GtkMozilla *moz)
{
//printf("gtk_mozilla_init()\n");
moz->mozilla_container = NULL;
GTK_WIDGET_SET_FLAGS (GTK_WIDGET(moz), GTK_CAN_FOCUS);
moz->mozilla_container = new GtkMozillaContainer(moz,sPrefs);
}
static void event_processor_callback(gpointer data,
gint source,
GdkInputCondition condition)
{
// printf("event_processor_callback()\n");
nsIEventQueue *eventQueue = (nsIEventQueue*)data;
eventQueue->ProcessPendingEvents();
}
GtkType
gtk_mozilla_get_type (void)
{
static GtkType mozilla_type = 0;
nsresult rv;
if (!mozilla_type) {
static const GtkTypeInfo mozilla_info = {
"GtkMozilla",
sizeof (GtkMozilla),
sizeof (GtkMozillaClass),
(GtkClassInitFunc) gtk_mozilla_class_init,
(GtkObjectInitFunc) gtk_mozilla_init,
0,
0
};
mozilla_type = gtk_type_unique (GTK_TYPE_FIXED, &mozilla_info);
//printf("Setting up registry.\n");
NS_SetupRegistry();
//printf("Creating event queue.\n");
nsIEventQueueService *aEventQService = nsnull;
// Create the Event Queue for the UI thread...
rv = nsServiceManager::GetService(kEventQueueServiceCID,
NS_GET_IID(nsIEventQueueService),
(nsISupports **)&aEventQService);
if (!NS_SUCCEEDED(rv)) {
printf("Could not obtain the event queue service\n");
return rv;
}
// Create the event queue
rv = aEventQService->CreateThreadEventQueue();
if (!NS_SUCCEEDED(rv)) {
printf("Could not create the event queue for the the thread");
return rv;
}
nsIEventQueue * EQueue = nsnull;
rv = aEventQService->GetThreadEventQueue(NS_CURRENT_THREAD, &EQueue);
if (!NS_SUCCEEDED(rv)) {
printf("Could not get the newly created thread event queue.\n");
return rv;
}
NS_RELEASE(aEventQService);
// Prefs
rv = nsComponentManager::CreateInstance(kPrefCID,
NULL,
NS_GET_IID(nsIPref),
(void **) & sPrefs);
if (NS_OK != rv)
{
printf("Could not create the pref thing.\n");
return rv;
}
printf("prefs created ok.\n");
sPrefs->StartUp();
sPrefs->ReadUserPrefs();
gdk_input_add(EQueue->GetEventQueueSelectFD(),
GDK_INPUT_READ,
event_processor_callback,
EQueue);
// XXX chris this is generating a bad warning.
// nsIThread::SetMainThread();
}
return mozilla_type;
}
GtkWidget*
gtk_mozilla_new (void)
{
GtkMozilla *moz;
moz = GTK_MOZILLA(gtk_type_new(GTK_TYPE_MOZILLA));
return GTK_WIDGET (moz);
}
static void
gtk_mozilla_finalize (GtkObject *object)
{
GtkMozilla *moz;
class GtkMozillaContainer *moz_container;
//printf("gtk_mozilla_finalize()\n");
g_return_if_fail(object != NULL);
g_return_if_fail(GTK_IS_MOZILLA(object));
moz = GTK_MOZILLA(object);
moz_container = (class GtkMozillaContainer *)moz->mozilla_container;
moz->mozilla_container = NULL;
if (moz_container) {
delete moz_container;
}
GTK_OBJECT_CLASS(parent_class)->finalize (object);
}
void
gtk_mozilla_resize(GtkMozilla *moz, gint width, gint height)
{
//printf("gtk_mozilla_resize()\n");
class GtkMozillaContainer *moz_container;
moz_container = (class GtkMozillaContainer *)moz->mozilla_container;
moz_container->Resize(width, height);
}
void
gtk_mozilla_load_url(GtkMozilla *moz, const char *url)
{
//printf("gtk_mozilla_load_url()\n");
class GtkMozillaContainer *moz_container;
moz_container = (class GtkMozillaContainer *)moz->mozilla_container;
moz_container->LoadURL(url);
}
void
gtk_mozilla_stop(GtkMozilla *moz)
{
class GtkMozillaContainer *moz_container;
moz_container = (class GtkMozillaContainer *)moz->mozilla_container;
moz_container->Stop();
}
void
gtk_mozilla_reload(GtkMozilla *moz, GtkMozillaReloadType reload_type)
{
class GtkMozillaContainer *moz_container;
moz_container = (class GtkMozillaContainer *)moz->mozilla_container;
moz_container->Reload(reload_type);
}
void
gtk_mozilla_back(GtkMozilla *moz)
{
class GtkMozillaContainer *moz_container;
moz_container = (class GtkMozillaContainer *)moz->mozilla_container;
moz_container->Back();
}
void
gtk_mozilla_forward(GtkMozilla *moz)
{
class GtkMozillaContainer *moz_container;
moz_container = (class GtkMozillaContainer *)moz->mozilla_container;
moz_container->Forward();
}
gint
gtk_mozilla_can_back(GtkMozilla *moz)
{
class GtkMozillaContainer *moz_container;
moz_container = (class GtkMozillaContainer *)moz->mozilla_container;
return moz_container->CanBack();
}
gint
gtk_mozilla_can_forward(GtkMozilla *moz)
{
class GtkMozillaContainer *moz_container;
moz_container = (class GtkMozillaContainer *)moz->mozilla_container;
return moz_container->CanForward();
}
void
gtk_mozilla_goto_history(GtkMozilla *moz, gint index)
{
class GtkMozillaContainer *moz_container;
moz_container = (class GtkMozillaContainer *)moz->mozilla_container;
moz_container->GoTo(index);
}
gint
gtk_mozilla_get_history_length(GtkMozilla *moz)
{
class GtkMozillaContainer *moz_container;
moz_container = (class GtkMozillaContainer *)moz->mozilla_container;
return moz_container->GetHistoryLength();
}
gint
gtk_mozilla_get_history_index(GtkMozilla *moz)
{
class GtkMozillaContainer *moz_container;
moz_container = (class GtkMozillaContainer *)moz->mozilla_container;
return moz_container->GetHistoryIndex();
}
gint
gtk_mozilla_stream_start(GtkMozilla *moz,
const char *base_url,
const char *action,
const char *content_type)
{
class GtkMozillaContainer *moz_container;
moz_container = (class GtkMozillaContainer *)moz->mozilla_container;
return moz_container->StartStream(base_url, action, NULL, content_type);
}
gint
gtk_mozilla_stream_start_html(GtkMozilla *moz,
const char *base_url)
{
gtk_mozilla_stream_start(moz, base_url, "view", "text/html");
}
gint
gtk_mozilla_stream_write(GtkMozilla *moz,
const char *data,
gint offset,
gint len)
{
class GtkMozillaContainer *moz_container;
moz_container = (class GtkMozillaContainer *)moz->mozilla_container;
// Returns the number of bytes written!
return moz_container->WriteStream(data, offset, len);
}
void
gtk_mozilla_stream_end(GtkMozilla *moz)
{
class GtkMozillaContainer *moz_container;
moz_container = (class GtkMozillaContainer *)moz->mozilla_container;
moz_container->EndStream();
}

View File

@ -1,109 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is this file, released
* May 28, 1999.
*
* The Initial Developer of the Original Code is Alexander
* Larsson. Portions created by Alexander Larsson are
* Copyright (C) 1999 Alexander Larsson. All
* Rights Reserved.
*
* Contributor(s):
*/
#ifndef GTKMOZILLA_H
#define GTKMOZILLA_H
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#define GTK_TYPE_MOZILLA (gtk_mozilla_get_type ())
#define GTK_MOZILLA(obj) GTK_CHECK_CAST ((obj), GTK_TYPE_MOZILLA, GtkMozilla)
#define GTK_MOZILLA_CLASS(klass) GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_MOZILLA, GtkMozillaClass)
#define GTK_IS_MOZILLA(obj) GTK_CHECK_TYPE ((obj), GTK_TYPE_MOZILLA)
#define GTK_IS_MOZILLA_CLASS(klass) GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_MOZILLA)
typedef enum GtkMozillaReloadType {
GTK_URL_RELOAD = 0,
GTK_URL_RELOAD_BYPASS_CACHE,
GTK_URL_RELOAD_BYPASS_PROXY,
GTK_URL_RELOAD_BYPASS_CACHE_AND_PROXY,
GTK_URL_RELOAD_MAX
} GtkMozillaReloadType;
typedef enum GtkMozillaLoadType {
GTK_LOAD_URL,
GTK_LOAD_HISTORY,
GTK_LOAD_LINK,
GTK_LOAD_REFRESH
} GtkMozillaLoadType;
typedef struct _GtkMozilla GtkMozilla;
typedef struct _GtkMozillaClass GtkMozillaClass;
struct _GtkMozilla
{
GtkFixed fixed;
void *mozilla_container;
};
struct _GtkMozillaClass
{
GtkFixedClass parent_class;
gint (*will_load_url) (GtkMozilla *mozilla,
const gchar *url,
GtkMozillaLoadType load_type);
void (*begin_load_url) (GtkMozilla *mozilla,
const gchar *url);
void (*end_load_url) (GtkMozilla *mozilla,
const gchar *url,
gint status);
};
extern GtkType gtk_mozilla_get_type(void);
extern GtkWidget* gtk_mozilla_new(void);
extern void gtk_mozilla_load_url(GtkMozilla *moz, const char *url);
extern void gtk_mozilla_stop(GtkMozilla *moz);
extern void gtk_mozilla_reload(GtkMozilla *moz, GtkMozillaReloadType reload_type);
extern void gtk_mozilla_resize(GtkMozilla *moz, gint width, gint height);
extern void gtk_mozilla_back(GtkMozilla *moz);
extern void gtk_mozilla_forward(GtkMozilla *moz);
extern gint gtk_mozilla_can_back(GtkMozilla *moz);
extern gint gtk_mozilla_can_forward(GtkMozilla *moz);
extern void gtk_mozilla_goto_history(GtkMozilla *moz, gint index);
extern gint gtk_mozilla_get_history_length(GtkMozilla *moz);
extern gint gtk_mozilla_get_history_index(GtkMozilla *moz);
extern gint gtk_mozilla_stream_start(GtkMozilla *moz,
const char *base_url,
const char *action,
const char *content_type);
extern gint gtk_mozilla_stream_start_html(GtkMozilla *moz,
const char *base_url);
extern gint gtk_mozilla_stream_write(GtkMozilla *moz,
const char *data,
gint offset,
gint len);
extern void gtk_mozilla_stream_end(GtkMozilla *moz);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* GTKMOZILLA_H */

View File

@ -1,66 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "nsITimer.h"
#include "nsUnixTimerCIID.h"
#include "nsIComponentManager.h"
static NS_DEFINE_CID(kCTimerGtkCID, NS_TIMER_GTK_CID);
//////////////////////////////////////////////////////////////////////////
nsresult NS_NewTimer(nsITimer ** aInstancePtrResult)
{
NS_PRECONDITION(nsnull != aInstancePtrResult, "null ptr");
if (nsnull == aInstancePtrResult)
return NS_ERROR_NULL_POINTER;
nsresult rv = NS_ERROR_FAILURE;
nsITimer * timer = nsnull;
static nsIFactory * factory = nsnull;
if (nsnull == factory)
{
nsresult frv = nsComponentManager::FindFactory(kCTimerGtkCID,&factory);
NS_ASSERTION(NS_SUCCEEDED(frv),"Could not find timer factory.");
NS_ASSERTION(nsnull != factory,"Could not instanciate timer factory.");
if (NS_FAILED(frv))
return frv;
}
rv = factory->CreateInstance(NULL,
NS_GET_IID(nsITimer),
(void **)& timer);
NS_ASSERTION(NS_SUCCEEDED(rv),"Could not instanciate a timer.");
if (nsnull == timer)
return NS_ERROR_OUT_OF_MEMORY;
*aInstancePtrResult = timer;
return rv;
}
//////////////////////////////////////////////////////////////////////////

View File

@ -1,24 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Mozilla Communicator client code.
*
* The Initial Developer of the Original Code is Netscape Communications
* Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "../../../../webshell/tests/viewer/nsSetupRegistry.cpp"

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,190 +0,0 @@
#! /bin/sh
# Common stub for a few missing GNU programs while installing.
# Copyright (C) 1996, 1997 Free Software Foundation, Inc.
# Franc,ois Pinard <pinard@iro.umontreal.ca>, 1996.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
if test $# -eq 0; then
echo 1>&2 "Try \`$0 --help' for more information"
exit 1
fi
case "$1" in
-h|--h|--he|--hel|--help)
echo "\
$0 [OPTION]... PROGRAM [ARGUMENT]...
Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
error status if there is no known handling for PROGRAM.
Options:
-h, --help display this help and exit
-v, --version output version information and exit
Supported PROGRAM values:
aclocal touch file \`aclocal.m4'
autoconf touch file \`configure'
autoheader touch file \`config.h.in'
automake touch all \`Makefile.in' files
bison create \`y.tab.[ch]', if possible, from existing .[ch]
flex create \`lex.yy.c', if possible, from existing .c
lex create \`lex.yy.c', if possible, from existing .c
makeinfo touch the output file
yacc create \`y.tab.[ch]', if possible, from existing .[ch]"
;;
-v|--v|--ve|--ver|--vers|--versi|--versio|--version)
echo "missing - GNU libit 0.0"
;;
-*)
echo 1>&2 "$0: Unknown \`$1' option"
echo 1>&2 "Try \`$0 --help' for more information"
exit 1
;;
aclocal)
echo 1>&2 "\
WARNING: \`$1' is missing on your system. You should only need it if
you modified \`acinclude.m4' or \`configure.in'. You might want
to install the \`Automake' and \`Perl' packages. Grab them from
any GNU archive site."
touch aclocal.m4
;;
autoconf)
echo 1>&2 "\
WARNING: \`$1' is missing on your system. You should only need it if
you modified \`configure.in'. You might want to install the
\`Autoconf' and \`GNU m4' packages. Grab them from any GNU
archive site."
touch configure
;;
autoheader)
echo 1>&2 "\
WARNING: \`$1' is missing on your system. You should only need it if
you modified \`acconfig.h' or \`configure.in'. You might want
to install the \`Autoconf' and \`GNU m4' packages. Grab them
from any GNU archive site."
files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' configure.in`
test -z "$files" && files="config.h"
touch_files=
for f in $files; do
case "$f" in
*:*) touch_files="$touch_files "`echo "$f" |
sed -e 's/^[^:]*://' -e 's/:.*//'`;;
*) touch_files="$touch_files $f.in";;
esac
done
touch $touch_files
;;
automake)
echo 1>&2 "\
WARNING: \`$1' is missing on your system. You should only need it if
you modified \`Makefile.am', \`acinclude.m4' or \`configure.in'.
You might want to install the \`Automake' and \`Perl' packages.
Grab them from any GNU archive site."
find . -type f -name Makefile.am -print |
sed 's/\.am$/.in/' |
while read f; do touch "$f"; done
;;
bison|yacc)
echo 1>&2 "\
WARNING: \`$1' is missing on your system. You should only need it if
you modified a \`.y' file. You may need the \`Bison' package
in order for those modifications to take effect. You can get
\`Bison' from any GNU archive site."
rm -f y.tab.c y.tab.h
if [ $# -ne 1 ]; then
eval LASTARG="\${$#}"
case "$LASTARG" in
*.y)
SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
if [ -f "$SRCFILE" ]; then
cp "$SRCFILE" y.tab.c
fi
SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
if [ -f "$SRCFILE" ]; then
cp "$SRCFILE" y.tab.h
fi
;;
esac
fi
if [ ! -f y.tab.h ]; then
echo >y.tab.h
fi
if [ ! -f y.tab.c ]; then
echo 'main() { return 0; }' >y.tab.c
fi
;;
lex|flex)
echo 1>&2 "\
WARNING: \`$1' is missing on your system. You should only need it if
you modified a \`.l' file. You may need the \`Flex' package
in order for those modifications to take effect. You can get
\`Flex' from any GNU archive site."
rm -f lex.yy.c
if [ $# -ne 1 ]; then
eval LASTARG="\${$#}"
case "$LASTARG" in
*.l)
SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
if [ -f "$SRCFILE" ]; then
cp "$SRCFILE" lex.yy.c
fi
;;
esac
fi
if [ ! -f lex.yy.c ]; then
echo 'main() { return 0; }' >lex.yy.c
fi
;;
makeinfo)
echo 1>&2 "\
WARNING: \`$1' is missing on your system. You should only need it if
you modified a \`.texi' or \`.texinfo' file, or any other file
indirectly affecting the aspect of the manual. The spurious
call might also be the consequence of using a buggy \`make' (AIX,
DU, IRIX). You might want to install the \`Texinfo' package or
the \`GNU make' package. Grab either from any GNU archive site."
file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
if test -z "$file"; then
file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
fi
touch $file
;;
*)
echo 1>&2 "\
WARNING: \`$1' is needed, and you do not seem to have it handy on your
system. You might have modified some files without having the
proper tools for further handling them. Check the \`README' file,
it often tells you about the needed prerequirements for installing
this package. You may also peek at any GNU archive site, in case
some other package would contain this missing \`$1' program."
exit 1
;;
esac
exit 0

View File

@ -1,40 +0,0 @@
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Public domain
# $Id: mkinstalldirs,v 1.1 1999/05/28 11:34:08 ramiro%netscape.com Exp $
errstatus=0
for file
do
set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
shift
pathcomp=
for d
do
pathcomp="$pathcomp$d"
case "$pathcomp" in
-* ) pathcomp=./$pathcomp ;;
esac
if test ! -d "$pathcomp"; then
echo "mkdir $pathcomp"
mkdir "$pathcomp" || lasterr=$?
if test ! -d "$pathcomp"; then
errstatus=$lasterr
fi
fi
pathcomp="$pathcomp/"
done
done
exit $errstatus
# mkinstalldirs ends here

View File

@ -1,22 +0,0 @@
#
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/NPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#

View File

@ -1 +0,0 @@
timestamp