From: Florian Forster Date: Tue, 25 Sep 2012 10:32:50 +0000 (+0200) Subject: configure: Only set the Perl interpreter if the argument is a file. X-Git-Tag: collectd-5.0.5~3^2~1 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=aa4d1f798ab410b042330ab328cc82a458e8ea8f;p=collectd.git configure: Only set the Perl interpreter if the argument is a file. This fixes Github issue #137. --- diff --git a/configure.in b/configure.in index 43e3329b..39a99ead 100644 --- a/configure.in +++ b/configure.in @@ -2672,7 +2672,7 @@ AM_CONDITIONAL(BUILD_WITH_LIBPCAP, test "x$with_libpcap" = "xyes") perl_interpreter="perl" AC_ARG_WITH(libperl, [AS_HELP_STRING([--with-libperl@<:@=PREFIX@:>@], [Path to libperl.])], [ - if test -x "$withval" + if test -f "$withval" && test -x "$withval" then perl_interpreter="$withval" with_libperl="yes"