projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24d9ece
)
gnunet-logread: install only when perl has been found (avoid dysfunctional SHa-bang...
author
ng0
<ng0@n0.is>
Sun, 1 Dec 2019 20:37:57 +0000
(20:37 +0000)
committer
ng0
<ng0@n0.is>
Sun, 1 Dec 2019 20:37:57 +0000
(20:37 +0000)
configure.ac
patch
|
blob
|
history
contrib/scripts/gnunet-logread/Makefile.am
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index 6471cb872c65aa8c3f87ddb702973ae74417c0e9..ad59c9231deaad9c93fc15a36dcc5bd7c8e29076 100644
(file)
--- 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 e1183a88586b221cd0513a0a9f42448ccbdca893..aa92dfe167a1cd299c32943d707daf1ddb4e8423 100644
(file)
--- 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 \