build: When no gpg-error-config, not install gpgme-config.
* configure.ac (USE_GPGRT_CONFIG): New. * src/Makefile.am [USE_GPGRT_CONFIG]: Conditionalize the install of gpgme-config. -- When system will migrate use of gpgrt-config and removal of gpg-error-config, gpgme-config will not be installed (but use gpgme.pc by gpgrt-config). Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
aa94b4cee5
commit
02a2f35035
@ -724,6 +724,9 @@ AM_PATH_GPG_ERROR("$NEED_GPG_ERROR_VERSION",
|
|||||||
AC_DEFINE(GPG_ERR_SOURCE_DEFAULT, GPG_ERR_SOURCE_GPGME,
|
AC_DEFINE(GPG_ERR_SOURCE_DEFAULT, GPG_ERR_SOURCE_GPGME,
|
||||||
[The default error source for GPGME.])
|
[The default error source for GPGME.])
|
||||||
|
|
||||||
|
AM_CONDITIONAL(USE_GPGRT_CONFIG, [test -n "$GPGRT_CONFIG" \
|
||||||
|
-a "$ac_cv_path_GPG_ERROR_CONFIG" = no])
|
||||||
|
|
||||||
# And for libassuan.
|
# And for libassuan.
|
||||||
have_libassuan=no
|
have_libassuan=no
|
||||||
AM_PATH_LIBASSUAN("$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION",
|
AM_PATH_LIBASSUAN("$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION",
|
||||||
|
@ -26,7 +26,11 @@ EXTRA_DIST = gpgme-config.in gpgme.m4 libgpgme.vers ChangeLog-2011 \
|
|||||||
gpgme.h.in versioninfo.rc.in gpgme.def \
|
gpgme.h.in versioninfo.rc.in gpgme.def \
|
||||||
gpgme.pc.in gpgme-glib.pc.in
|
gpgme.pc.in gpgme-glib.pc.in
|
||||||
|
|
||||||
|
if USE_GPGRT_CONFIG
|
||||||
|
noinst_SCRIPTS = gpgme-config
|
||||||
|
else
|
||||||
bin_SCRIPTS = gpgme-config
|
bin_SCRIPTS = gpgme-config
|
||||||
|
endif
|
||||||
m4datadir = $(datadir)/aclocal
|
m4datadir = $(datadir)/aclocal
|
||||||
m4data_DATA = gpgme.m4
|
m4data_DATA = gpgme.m4
|
||||||
nodist_include_HEADERS = gpgme.h
|
nodist_include_HEADERS = gpgme.h
|
||||||
|
Loading…
Reference in New Issue
Block a user