gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] 05/09: -do not build gnunet-bcd if pdflatex is missing


From: gnunet
Subject: [gnunet] 05/09: -do not build gnunet-bcd if pdflatex is missing
Date: Thu, 25 Nov 2021 20:49:14 +0100

This is an automated email from the git hooks/post-receive script.

alessio-vanni pushed a commit to branch master
in repository gnunet.

commit 7f11a3f24dd0f047b6164d4ecc2b170ca79b683e
Author: Alessio Vanni <vannilla@firemail.cc>
AuthorDate: Sun Nov 14 22:28:12 2021 +0100

    -do not build gnunet-bcd if pdflatex is missing
---
 configure.ac        | 11 +++++++++++
 src/gns/Makefile.am |  2 ++
 2 files changed, 13 insertions(+)

diff --git a/configure.ac b/configure.ac
index 5c6fedc8c..a1249d78e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -265,6 +265,10 @@ AS_IF([test -x "$AWK_BINARY"],
       [AC_DEFINE([HAVE_AWK], [1], [Define to 1 if awk is available])],
       [AC_DEFINE([HAVE_AWK], [0], [Define to 1 if awk is available])])
 
+# check for pdflatex to build gnunet-bcd
+AC_CHECK_PROG([PDFLATEX_BINARY], [pdflatex], [true], [false])
+AM_CONDITIONAL([HAVE_PDFLATEX], [$PDFLATEX_BINARY])
+
 AC_ARG_WITH([gnunet-logread],
             [AS_HELP_STRING([--with-gnunet-logread], [Install 
gnunet-logread])],
             [logread=yes],
@@ -1601,6 +1605,11 @@ AS_IF([test "x$gnutls" = "x0"],
       AC_MSG_WARN([GnuTLS lacks DANE support; validation using it will not be 
possible])],
      [gnutls_msg="yes (with DANE support)"])])
 
+# pdflatex
+AS_IF([test "x$PDFLATEX_BINARY" = "xfalse"],
+  [latex_msg="no"],
+  [latex_msg="yes"])
+
 # database backends
 features_msg=""
 
@@ -1652,6 +1661,8 @@ ifconfig:                       ${ifconfig_msg}
 UPnPc:                          ${upnpc_msg}
 GnuTLS:                         ${gnutls_msg}
 
+LaTeX:                          ${latex_msg}
+
 libextractor:                   ${libextractor_msg}
 libzbar:                        ${libzbar_msg}
 libpng:                         ${libpng_msg}
diff --git a/src/gns/Makefile.am b/src/gns/Makefile.am
index 3aaa734f2..ba46781f0 100644
--- a/src/gns/Makefile.am
+++ b/src/gns/Makefile.am
@@ -80,7 +80,9 @@ bin_PROGRAMS = \
 noinst_PROGRAMS = \
   gnunet-gns-benchmark
 
+if HAVE_PDFLATEX
 bin_PROGRAMS += gnunet-bcd
+endif
 
 REST_PLUGIN = libgnunet_plugin_rest_gns.la
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]