[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: gnunet-logread: install only when perl h
From: |
gnunet |
Subject: |
[gnunet] branch master updated: gnunet-logread: install only when perl has been found (avoid dysfunctional SHa-bang line. |
Date: |
Sun, 01 Dec 2019 21:41:36 +0100 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 93330d9c6 gnunet-logread: install only when perl has been found (avoid
dysfunctional SHa-bang line.
93330d9c6 is described below
commit 93330d9c6d8d5c599a2f12d641c5029aab91d3ad
Author: ng0 <address@hidden>
AuthorDate: Sun Dec 1 20:37:57 2019 +0000
gnunet-logread: install only when perl has been found (avoid dysfunctional
SHa-bang line.
---
configure.ac | 4 ++++
contrib/scripts/gnunet-logread/Makefile.am | 2 ++
2 files changed, 6 insertions(+)
diff --git a/configure.ac b/configure.ac
index 6471cb872..ad59c9231 100644
--- a/configure.ac
+++ b/configure.ac
@@ -242,10 +242,14 @@ AM_PATH_PYTHON([3.4],, [:])
AC_SUBST([PYTHON])
AM_CONDITIONAL([HAVE_PYTHON], [test "$PYTHON" != :])
+
# perl
AC_PATH_PROG( PERL, perl, ,
$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin )
AC_SUBST([PERL])
+AS_IF([test -x "$PERL"],
+ [AC_DEFINE_UNQUOTED([HAVE_PERL], [1], [Path to Perl])],
+ [AC_DEFINE_UNQUOTED([HAVE_PERL], [0], [Path to Perl])])
# should we install gnunet-logread?
AC_MSG_CHECKING(whether to install gnunet-logread)
diff --git a/contrib/scripts/gnunet-logread/Makefile.am
b/contrib/scripts/gnunet-logread/Makefile.am
index e1183a885..aa92dfe16 100644
--- a/contrib/scripts/gnunet-logread/Makefile.am
+++ b/contrib/scripts/gnunet-logread/Makefile.am
@@ -18,6 +18,7 @@ CLEANFILES= \
gnunet-logread-ipc-sdedit
if GNUNET_LOGREAD
+if HAVE_PERL
bin_SCRIPTS = \
gnunet-logread-ipc \
$(CLEANFILES)
@@ -26,6 +27,7 @@ noinst_SCRIPTS = \
gnunet-logread-ipc \
$(CLEANFILES)
endif
+endif
EXTRA_DIST = \
gnunet-logread.in \
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: gnunet-logread: install only when perl has been found (avoid dysfunctional SHa-bang line.,
gnunet <=