From: Edgar Fuß Date: Tue, 29 Oct 2019 17:47:55 +0000 (+0100) Subject: Fix libupsclient detection X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=6616302fb8dbbca4eddc11a756ed4843bd0bf61a 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 59a7f355..3578f2e1 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