3 [kay.sievers@vrfy.org])
5 AC_CONFIG_SRCDIR([udev/udevd.c])
6 AM_INIT_AUTOMAKE([check-news foreign 1.9 dist-bzip2])
12 dnl /* libudev version */
16 AC_SUBST(LIBUDEV_LT_CURRENT)
17 AC_SUBST(LIBUDEV_LT_REVISION)
18 AC_SUBST(LIBUDEV_LT_AGE)
20 dnl /* libvolume_id version */
24 AC_SUBST(VOLID_LT_CURRENT)
25 AC_SUBST(VOLID_LT_REVISION)
26 AC_SUBST(VOLID_LT_AGE)
28 AC_PATH_PROG([XSLTPROC], [xsltproc])
30 AC_CHECK_LIB(c, inotify_init,
31 [AC_DEFINE([HAVE_INOTIFY], 1, [inotify available])],
32 [AC_MSG_WARN([inotify support disabled])])
34 AC_CHECK_LIB(c, strlcpy,
35 [AC_DEFINE([HAVE_STRLCPY], 1, [strlcpy available])],
38 AC_ARG_WITH(udev-prefix,
39 AS_HELP_STRING([--with-udev-prefix=DIR], [add prefix to internal udev path names]),
40 [], [with_udev_prefix='${exec_prefix}'])
41 udev_prefix=$with_udev_prefix
44 AC_ARG_WITH(libdir-name,
45 AS_HELP_STRING([--with-libdir-name=DIR], [name of the arch lib directory]),
46 [], [with_libdir_name=lib])
47 libdir_name=$with_libdir_name
51 AS_HELP_STRING([--with-selinux], [compile with SELinux support]),
53 if test "x$with_selinux" = xyes; then
55 AC_CHECK_LIB(selinux, getprevcon,
57 AC_MSG_ERROR([SELinux selected but libselinux not found]))
59 AC_DEFINE(USE_SELINUX, [1] ,[compile with SELinux support])
60 SELINUX_LIBS="-lselinux"
62 AC_SUBST([SELINUX_LIBS])
63 AM_CONDITIONAL(USE_SELINUX, [test "x$with_selinux" = xyes], [compile with SELinux support])
66 AS_HELP_STRING([--enable-debug], [turn on debugging]),
68 if test "x$enable_debug" = "xyes"; then
69 AC_DEFINE(DEBUG, [1] ,[Compile in debug messages])
70 DEBUG_CFLAGS="-DDEBUG"
72 AC_SUBST(DEBUG_CFLAGS)
74 AC_ARG_ENABLE(logging,
75 AS_HELP_STRING([--disable-logging], [turn off logging/syslog]),
76 [], enable_logging=yes)
77 if test "x$enable_logging" != "xno"; then
78 AC_DEFINE(USE_LOG, [1] ,[Use logging/syslog])
81 AC_CONFIG_HEADERS(config.h)
89 extras/ata_id/Makefile
90 extras/cdrom_id/Makefile
91 extras/edd_id/Makefile
92 extras/path_id/Makefile
93 extras/firmware/Makefile
94 extras/collect/Makefile
95 extras/floppy/Makefile
96 extras/fstab_import/Makefile
97 extras/rule_generator/Makefile
98 extras/scsi_id/Makefile
99 extras/usb_id/Makefile
100 extras/volume_id/Makefile
101 extras/volume_id/lib/Makefile
102 extras/volume_id/lib/libvolume_id.pc
111 exec_prefix: ${exec_prefix}
112 udev_prefix: ${udev_prefix}
113 libdir_name: ${libdir_name}
114 datarootdir: ${datarootdir}
116 includedir: ${includedir}
118 logging: ${enable_logging}
119 debug: ${enable_debug}
120 selinux: ${with_selinux}
126 xsltproc: ${XSLTPROC}