From: Edgar Fuß Date: Tue, 29 Oct 2019 17:47:55 +0000 (+0100) Subject: Fix libupsclient detection X-Git-Tag: collectd-5.11.0~59^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F3328%2Fhead;p=thirdparty%2Fcollectd.git Fix libupsclient detection Check libupsclient $withval for being a regular file in addition to being executable/searchable. The value may be a directory name. --- diff --git a/configure.ac b/configure.ac index 59a7f355c..3578f2e14 100644 --- a/configure.ac +++ b/configure.ac @@ -5518,7 +5518,7 @@ AC_ARG_WITH([libupsclient], else if test "x$withval" = "xyes"; then with_libupsclient="use_pkgconfig" else - if test -x "$withval"; then + if test -f "$withval" && test -x "$withval"; then with_libupsclient_config="$withval" with_libupsclient="use_libupsclient_config" else if test -x "$withval/bin/libupsclient-config"; then