configure.ac: add --enable-gpgme-tool for installing gpgme-tool. gpgme-tool
authorW. Trevor King <wking@tremily.us>
Wed, 10 Oct 2012 15:55:50 +0000 (11:55 -0400)
committerW. Trevor King <wking@tremily.us>
Thu, 11 Oct 2012 18:12:05 +0000 (14:12 -0400)
* configure.ac (install_gpgme_tool, INSTALL_GPGME_TOOL): New.
* src/Makefile.am (bin_PROGRAMS): Add gpgme-tool if enabled.
(noinst_PROGRAMS): Add gpgme-tool if not enabled.

Signed-off-by: W. Trevor King <wking@tremily.us>
configure.ac
src/Makefile.am

index 3cac8267af0d53183b334acc742241ee5789264a..841eae231ec1608740cce58896a4cc81aa2c3120 100644 (file)
@@ -851,6 +851,11 @@ if test "$uiserver" != "no"; then
 fi
 AM_CONDITIONAL(HAVE_UISERVER, test "$uiserver" != "no")
 
+install_gpgme_tool=no
+AC_ARG_ENABLE([gpgme-tool],
+  AC_HELP_STRING([--enable-gpgme-tool], [install the gpgme-tool executable]),
+  install_gpgme_tool=$enableval)
+AM_CONDITIONAL([INSTALL_GPGME_TOOL], [test "$install_gpgme_tool" != no])
 
 # Generate values for the DLL version info
 
index e934419e317ee6c7aa0070e8dde8d9129a0411c8..d9b95c73e14b3fb67edf56ea0b9673c17c3312ee 100644 (file)
@@ -222,7 +222,12 @@ libgpgme_qt_la_LIBADD = $(gpgme_res) @LIBASSUAN_LIBS@ @LTLIBOBJS@ \
        @GPG_ERROR_LIBS@ @QT4_CORE_LIBS@
 endif
 
+if INSTALL_GPGME_TOOL
 bin_PROGRAMS = gpgme-tool
+else
+noinst_PROGRAMS = gpgme-tool
+endif
+
 gpgme_tool_LDADD = libgpgme.la @LIBASSUAN_LIBS@
 
 install-data-local: install-def-file