autotools: Don't link udev into everything
[petitboot] / configure.ac
index fbb6520f4c43bc851ffd621c81e0094021b0f23b..9511fefa8e14bfe659424d5ec760b5493dce9b9d 100644 (file)
@@ -51,7 +51,7 @@ if test "x$ax_cv_curses" = xyes; then
 fi
 
 AC_CHECK_LIB([udev], [udev_new],
-       [],
+       [UDEV_LIBS=-ludev],
        [AC_MSG_FAILURE([The libudev development library is required by petitboot.  Try installing the package libudev-dev or libudev-devel.])]
 )
 
@@ -257,7 +257,7 @@ AS_IF(
        ]
 )
  
-
+AC_SUBST([UDEV_LIBS])
 AC_SUBST([LIBTOOL_DEPS])
 AC_SUBST([DESTDIR])
 AC_SUBST([pkgsysconfdir], ["${sysconfdir}/${package}"])