Code

Merge branch 'collectd-5.0' into collectd-5.1
[collectd.git] / configure.in
index 50f5fd5a124c87b5aa411be265a19748112224d2..f1235867cfe421e30afe082c50dc3de89fff4178 100644 (file)
@@ -2986,7 +2986,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"