diff options
author | Ingo Klöcker <[email protected]> | 2024-05-27 16:03:48 +0000 |
---|---|---|
committer | Ingo Klöcker <[email protected]> | 2024-08-29 11:51:38 +0000 |
commit | 569348ee84068ade5e05902dd9d670a1a30c7ca1 (patch) | |
tree | 0a66990368633880fdd55d019c79edccf2657ce9 /configure.ac | |
parent | cpp: Go with default answer on unknown question by key edit interface (diff) | |
download | gpgme-569348ee84068ade5e05902dd9d670a1a30c7ca1.tar.gz gpgme-569348ee84068ade5e05902dd9d670a1a30c7ca1.zip |
cpp: Add pkgconfig file for gpgmepp
* configure.ac: Add substitutions GPGMEPP_PKGCONFIG_LIBS,
GPGMEPP_PKGCONFIG_CFLAGS, GPGMEPP_PKGCONFIG_HOST. Apply them. Configure
gpgmepp.pc file.
* lang/cpp/src/Makefile.am (pkgconfigdir, pkgconfig_DATA): New.
(EXTRA_DIST): Add gpgmepp.pc.in.
* lang/cpp/src/gpgmepp.pc.in: New.
--
This pkgconfig file will be used, at least temporarily, by qgpgme
to find gpgmepp, but it's also useful in general for projects that
don't use cmake.
GnuPG-bug-id: 7262
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 84b993aa..c0f136e7 100644 --- a/configure.ac +++ b/configure.ac @@ -1019,12 +1019,16 @@ AH_BOTTOM([ ]) -# Substitution used for gpgme-config and gpgme.pc +# Substitution used for gpgme-config and gpgme.pc and gpgmepp.pc GPGME_CONFIG_LIBS="-lgpgme" GPGME_CONFIG_CFLAGS="" GPGME_CONFIG_HOST="$host" GPGME_CONFIG_AVAIL_LANG="$enabled_languages" +GPGMEPP_PKGCONFIG_LIBS="-lgpgmepp" +GPGMEPP_PKGCONFIG_CFLAGS="" +GPGMEPP_PKGCONFIG_HOST="$host" + case "$includedir" in /usr/include|/include) ;; '${prefix}/include') @@ -1034,6 +1038,11 @@ case "$includedir" in else GPGME_CONFIG_CFLAGS="-I\${includedir} $GPGME_CONFIG_CFLAGS" fi + if test -z "$GPGMEPP_PKGCONFIG_CFLAGS"; then + GPGMEPP_PKGCONFIG_CFLAGS="-I\${includedir}" + else + GPGMEPP_PKGCONFIG_CFLAGS="-I\${includedir} $GPGMEPP_PKGCONFIG_CFLAGS" + fi fi ;; *) @@ -1042,6 +1051,11 @@ case "$includedir" in else GPGME_CONFIG_CFLAGS="-I\${includedir} $GPGME_CONFIG_CFLAGS" fi + if test -z "$GPGMEPP_PKGCONFIG_CFLAGS"; then + GPGMEPP_PKGCONFIG_CFLAGS="-I\${includedir}" + else + GPGMEPP_PKGCONFIG_CFLAGS="-I\${includedir} $GPGMEPP_PKGCONFIG_CFLAGS" + fi ;; esac case "$libdir" in @@ -1050,12 +1064,17 @@ case "$libdir" in if test "$exec_prefix" = "NONE"; then if test "$prefix" != / -a "$prefix" != /usr; then GPGME_CONFIG_LIBS="-L\${libdir} $GPGME_CONFIG_LIBS" + GPGMEPP_PKGCONFIG_LIBS="-L\${libdir} $GPGMEPP_PKGCONFIG_LIBS" fi elif test "$exec_prefix" != / -a "$exec_prefix" != /usr; then GPGME_CONFIG_LIBS="-L\${libdir} $GPGME_CONFIG_LIBS" + GPGMEPP_PKGCONFIG_LIBS="-L\${libdir} $GPGMEPP_PKGCONFIG_LIBS" fi ;; - *) GPGME_CONFIG_LIBS="-L\${libdir} $GPGME_CONFIG_LIBS" ;; + *) + GPGME_CONFIG_LIBS="-L\${libdir} $GPGME_CONFIG_LIBS" + GPGMEPP_PKGCONFIG_LIBS="-L\${libdir} $GPGMEPP_PKGCONFIG_LIBS" + ;; esac AC_SUBST(GPGME_CONFIG_API_VERSION) @@ -1063,6 +1082,9 @@ AC_SUBST(GPGME_CONFIG_LIBS) AC_SUBST(GPGME_CONFIG_CFLAGS) AC_SUBST(GPGME_CONFIG_HOST) AC_SUBST(GPGME_CONFIG_AVAIL_LANG) +AC_SUBST(GPGMEPP_PKGCONFIG_LIBS) +AC_SUBST(GPGMEPP_PKGCONFIG_CFLAGS) +AC_SUBST(GPGMEPP_PKGCONFIG_HOST) # Frob'da Variables LTLIBOBJS=`echo "$LIB@&t@OBJS" | @@ -1131,6 +1153,7 @@ AC_CONFIG_FILES(Makefile src/Makefile AC_CONFIG_FILES(src/gpgme-config, chmod +x src/gpgme-config) AC_CONFIG_FILES(lang/cpp/Makefile lang/cpp/src/Makefile) AC_CONFIG_FILES(lang/cpp/tests/Makefile) +AC_CONFIG_FILES(lang/cpp/src/gpgmepp.pc) AC_CONFIG_FILES(lang/cpp/src/GpgmeppConfig-w32.cmake.in) AC_CONFIG_FILES(lang/cpp/src/GpgmeppConfig.cmake.in) AC_CONFIG_FILES(lang/cpp/src/GpgmeppConfigVersion.cmake) |