X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=configure.ac;h=66c531b70b698e36db0b70ad3ef3291e203049a9;hb=fa1965ea01a09ef0882814062faa0c2af1409fff;hp=c4483792b016ce3436dd3b58d44394a8c39e4a40;hpb=42a7c90f4478e98dc970927cfda7ec2e1081f364;p=collectd.git diff --git a/configure.ac b/configure.ac index c4483792..66c531b7 100644 --- a/configure.ac +++ b/configure.ac @@ -2413,17 +2413,25 @@ with_liblvm2app_cppflags="" with_liblvm2app_ldflags="" AC_ARG_WITH(liblvm2app, [AS_HELP_STRING([--with-liblvm2app@<:@=PREFIX@:>@], [Path to liblvm2app.])], [ - if test "x$withval" != "xno" && test "x$withval" != "xyes" - then - with_liblvm2app_cppflags="-I$withval/include" - with_liblvm2app_ldflags="-L$withval/lib" - with_liblvm2app="yes" - else - with_liblvm2app="$withval" + if test "x$withval" = "xno" + then + with_liblvm2app="no" + else + with_liblvm2app="yes" + if test "x$withval" != "xyes" + then + with_liblvm2app_cppflags="-I$withval/include" + with_liblvm2app_ldflags="-L$withval/lib" + fi fi ], [ - with_liblvm2app="yes" + if test "x$ac_system" = "xLinux" + then + with_liblvm2app="yes" + else + with_liblvm2app="no (Linux only library)" + fi ]) if test "x$with_liblvm2app" = "xyes" then