diff options
author | ng0 <ng0@n0.is> | 2019-12-01 20:37:57 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-12-01 20:37:57 +0000 |
commit | 93330d9c6d8d5c599a2f12d641c5029aab91d3ad (patch) | |
tree | 47589f150fb56be88742ba48e6d589a0e105ab3f /configure.ac | |
parent | 24d9ece906cc03e80db617168c9a2d93409e4640 (diff) | |
download | gnunet-93330d9c6d8d5c599a2f12d641c5029aab91d3ad.tar.gz gnunet-93330d9c6d8d5c599a2f12d641c5029aab91d3ad.zip |
gnunet-logread: install only when perl has been found (avoid dysfunctional SHa-bang line.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 4 |
1 files changed, 4 insertions, 0 deletions
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],, [:]) | |||
242 | AC_SUBST([PYTHON]) | 242 | AC_SUBST([PYTHON]) |
243 | AM_CONDITIONAL([HAVE_PYTHON], [test "$PYTHON" != :]) | 243 | AM_CONDITIONAL([HAVE_PYTHON], [test "$PYTHON" != :]) |
244 | 244 | ||
245 | |||
245 | # perl | 246 | # perl |
246 | AC_PATH_PROG( PERL, perl, , | 247 | AC_PATH_PROG( PERL, perl, , |
247 | $PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin ) | 248 | $PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin ) |
248 | AC_SUBST([PERL]) | 249 | AC_SUBST([PERL]) |
250 | AS_IF([test -x "$PERL"], | ||
251 | [AC_DEFINE_UNQUOTED([HAVE_PERL], [1], [Path to Perl])], | ||
252 | [AC_DEFINE_UNQUOTED([HAVE_PERL], [0], [Path to Perl])]) | ||
249 | 253 | ||
250 | # should we install gnunet-logread? | 254 | # should we install gnunet-logread? |
251 | AC_MSG_CHECKING(whether to install gnunet-logread) | 255 | AC_MSG_CHECKING(whether to install gnunet-logread) |