[linux-hotplug@vger.kernel.org])
AM_INIT_AUTOMAKE([check-news foreign 1.9 dist-bzip2])
AC_CONFIG_MACRO_DIR([m4])
dnl /* prefix is /usr, exec_prefix is /, if overridden exec_prefix follows prefix */
AC_PREFIX_DEFAULT([/usr])
test "$prefix" = NONE && test "$exec_prefix" = NONE && exec_prefix=
dnl /* libudev version */
AC_SUBST(LIBUDEV_LT_CURRENT)
AC_SUBST(LIBUDEV_LT_REVISION)
dnl /* libvolume_id version */
AC_SUBST(VOLID_LT_CURRENT)
AC_SUBST(VOLID_LT_REVISION)
AC_PATH_PROG([XSLTPROC], [xsltproc])
AC_CHECK_LIB(c, inotify_init,
[AC_DEFINE([HAVE_INOTIFY], 1, [inotify available])],
[AC_MSG_WARN([inotify support disabled])])
AS_HELP_STRING([--with-udev-prefix=DIR], [add prefix to internal udev path names]),
[], [with_udev_prefix='${exec_prefix}'])
udev_prefix=$with_udev_prefix
AS_HELP_STRING([--with-libdir-name=DIR], [name of the arch lib directory]),
[], [with_libdir_name=lib])
libdir_name=$with_libdir_name
AS_HELP_STRING([--with-selinux], [compile with SELinux support]),
if test "x$with_selinux" = xyes; then
AC_CHECK_LIB(selinux, getprevcon,
AC_MSG_ERROR([SELinux selected but libselinux not found]))
AC_DEFINE(USE_SELINUX, [1] ,[compile with SELinux support])
SELINUX_LIBS="-lselinux -lsepol"
AM_CONDITIONAL(USE_SELINUX, [test "x$with_selinux" = xyes], [compile with SELinux support])
AS_HELP_STRING([--enable-debug], [turn on debugging]),
if test "x$enable_debug" = "xyes"; then
AC_DEFINE(DEBUG, [1] ,[Compile in debug messages])
if test "x$enable_logging" != "xno"; then
exec_prefix: ${exec_prefix}
udev_prefix: ${udev_prefix}
libdir_name: ${libdir_name}
datarootdir: ${datarootdir}
includedir: ${includedir}
logging: ${enable_logging}