X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=configure.ac;h=990c530ed02808f14be3620f88913576f80e0ccd;hb=5bdc5d3ede2e1fad94dd7ebf6f76103201c39c3c;hp=7029e1e45a7dd3d6530075ec592c78bf5a0aed01;hpb=19a89bf824f1a984fbdbd42a68ce113faadb04ea;p=collectd.git diff --git a/configure.ac b/configure.ac index 7029e1e4..990c530e 100644 --- a/configure.ac +++ b/configure.ac @@ -3825,18 +3825,20 @@ AC_ARG_WITH(libsigrok, [AS_HELP_STRING([--with-libsigrok@<:@=PREFIX@:>@], [Path with_libsigrok_ldflags="-L$withval/lib" fi fi -],[]) +],[with_libsigrok="yes"]) # libsigrok has a glib dependency if test "x$with_libsigrok" = "xyes" then - if test -z "m4_ifdef([AM_PATH_GLIB_2_0], [yes], [])" - then - with_libsigrok="no (glib not available)" - else - AM_PATH_GLIB_2_0([2.28.0], - [with_libsigrok_cflags="$with_libsigrok_cflags $GLIB_CFLAGS"; with_libsigrok_ldflags="$with_libsigrok_ldflags $GLIB_LIBS"]) - fi +m4_ifdef([AM_PATH_GLIB_2_0], + [ + AM_PATH_GLIB_2_0([2.28.0], + [with_libsigrok_cflags="$with_libsigrok_cflags $GLIB_CFLAGS"; with_libsigrok_ldflags="$with_libsigrok_ldflags $GLIB_LIBS"]) + ], + [ + with_libsigrok="no (glib not available)" + ] +) fi # libsigrok headers