aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpgme-config.in
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2018-11-12 00:03:49 +0000
committerNIIBE Yutaka <[email protected]>2018-11-12 00:03:49 +0000
commitf3e60521899e6126229b6efedc9f011b84122e11 (patch)
tree6990a34876742ced477bd0937ca286b38e393c84 /src/gpgme-config.in
parentspelling: fix misspellings (diff)
downloadgpgme-f3e60521899e6126229b6efedc9f011b84122e11.tar.gz
gpgme-f3e60521899e6126229b6efedc9f011b84122e11.zip
build: Provide gpgme.pc, generated by configure.
* configure.ac: Generate src/gpgme.pc. * src/Makefile.am (pkgconfigdir, pkgconfig_DATA): New. (EXTRA_DIST): Add gpgme.pc.in. * src/gpgme.pc.in: New. * src/gpgme-config.in: Use variables. -- Some usages of gpgme-config is not compatible to pkg-config style; The --glib option and --thread option which affect the output by --cflags or --libs are not supported by gpgme.pc. gpgme-config's embedding information for gpg-error and libassuan at the build time of gpgme is considered inflexible than pkg-config style. It is now handled by dependency of gpgme.pc (Requires field). To use gpgme.pc, newer libgpg-error (>= 1.33) and libassuan (>= 2.5.3) are required, which provide gpg-error.pc and libassuan.pc respectively. Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'src/gpgme-config.in')
-rw-r--r--src/gpgme-config.in13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/gpgme-config.in b/src/gpgme-config.in
index a4d152e1..56b98f88 100644
--- a/src/gpgme-config.in
+++ b/src/gpgme-config.in
@@ -9,8 +9,11 @@
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-prefix=@prefix@
-exec_prefix=@exec_prefix@
+prefix="@prefix@"
+exec_prefix="@exec_prefix@"
+version="@PACKAGE_VERSION@"
+api_version="@GPGME_CONFIG_API_VERSION@"
+my_host="@GPGME_CONFIG_HOST@"
# Make sure that no weird locale setting messes up our sed regexps etc.
LC_COLLATE=C
@@ -96,15 +99,15 @@ while test $# -gt 0; do
with_glib=yes
;;
--version)
- echo "@VERSION@"
+ echo "$version"
exit 0
;;
--api-version)
- echo "@GPGME_CONFIG_API_VERSION@"
+ echo "$api_version"
exit 0
;;
--host)
- echo "@GPGME_CONFIG_HOST@"
+ echo "$my_host"
exit 0
;;
--cflags)