diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2018-09-11 08:57:23 +0900 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2018-09-11 09:32:57 +0900 |
commit | 78b679a778ddf37b8952f1808fd8c52cc8163f17 (patch) | |
tree | cd72001ae97275ef581712e4de75fc83ce539770 /src/mkheader.c | |
parent | b2aba1bec151d6e6cbf66359a30ba2ff458fc138 (diff) | |
download | libgpg-error-78b679a778ddf37b8952f1808fd8c52cc8163f17.tar.gz |
Make gpg-error-config compatible to pkg-config.
* configure.ac (AC_CONFIG_FILES): Generate src/gpg-error.pc, as well
as src/gpg-error-config-old and src/gpg-error-config-new.
* src/Makefile.am (pkgconfigdir, pkgconfig_DATA): New.
(EXTRA_DIST): Add gpg-error-config-new.in, gpg-error-config-test.sh,
and gpg-error.pc.in.
(CLEANFILES): Add gpg-error-config gpg-error-config-test.log.
(TESTS): New.
(gpg-error-config): New target.
* src/gpg-error-config-new.in: New.
* src/gpg-error-config-test.sh: New.
* src/gpg-error.pc.in: New.
* src/gpg-error.m4 (GPG_ERROR_MT_CFLAGS): Use --variable.
(GPG_ERROR_MT_LIBS, gpg_error_config_host): Likewise.
--
This change is to privide gpg-error.pc for pkg-config, so that
developers can use pkg-config to configure their applications. The
gpg-error-config script is also kept supported for applications which
want to avoid dependency of pkg-config.
Note that new gpg-error-config script uses gpg-error.pc as master
data, so that it can keep compatibility to pkg-config easily. In the
new gpg-error-config script, features are added to increase
compatibility to pkg-config, like --variable option and multiple
module support. However, it is not meant to oriented to be a
full-fledged version of pkg-config, only a small set of features is
supported.
To be conservative, new gpg-error-config is checked at build time
against old gpg-error-config. On the host which fails, old
gpg-error-config will be installed with a warning.
GnuPG-bug-id: 4085
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'src/mkheader.c')
0 files changed, 0 insertions, 0 deletions