]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: keep libuser optional
authorKarel Zak <kzak@redhat.com>
Fri, 22 Mar 2013 11:33:27 +0000 (12:33 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 22 Mar 2013 11:33:27 +0000 (12:33 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
configure.ac

index 1d9fed08c2d9d5e1a6944c9d7536c75f0ab1b758..283ee53b8104a1e22db28696c628564a58084d11 100644 (file)
@@ -1138,7 +1138,7 @@ AC_ARG_WITH([user], AS_HELP_STRING([--without-user], [compile without libuser (r
 if test "x$with_user" = xno; then
   AM_CONDITIONAL(HAVE_USER, false)
 else
-  PKG_CHECK_MODULES(LIBUSER,[libuser >= 0.58])
+  PKG_CHECK_MODULES(LIBUSER,[libuser >= 0.58], [have_user=yes], [have_user=no])
   UL_CHECK_LIB(user, lu_start)
   case "$with_user:$have_user" in
   yes:no)