Given the above, it is possible that SWI-Prolog packages and extensions rely on the GPL, LGPL or other licenses. The predicates below allow for registering license requirements for Prolog files and foreign modules. The predicate license/0 reports which components from the currently configured system are distributed under non-permissive open source licenses and therefore may need to be replaced to suit your requirements.
GPL license as well as which components prohibit
the use of other license conditions. Likewise for LGPL components.
Components under a copyleft license such as the EPL are
listed separately: the copyleft of these licenses only applies to the
component itself.gpl,
lgpl, copyleft, permissive or
proprietary. The category copyleft is for
licenses whose copyleft is limited to the component itself, such as the
Eclipse Public License (EPL). The third argument is a list of
properties. Defined are comment(Text), url(URL)
and
gpl_compatible(false). The latter makes license/0
warn if the license is combined with a component in the gpl
category.
:- multifile license:license/3.
license:license(mylicense, permissive,
[ comment('My personal license'),
url('http://www.mine.org/license.html')
]).
:- license(mylicense).