3 [linux-hotplug@vger.kernel.org])
5 AM_INIT_AUTOMAKE([check-news foreign 1.9 dist-bzip2])
7 AC_USE_SYSTEM_EXTENSIONS
10 AC_CONFIG_MACRO_DIR([m4])
13 dnl /* prefix is /usr, exec_prefix is /, if overridden exec_prefix follows prefix */
14 AC_PREFIX_DEFAULT([/usr])
15 test "$prefix" = NONE && test "$exec_prefix" = NONE && exec_prefix=
17 dnl /* libudev version */
21 AC_SUBST(LIBUDEV_LT_CURRENT)
22 AC_SUBST(LIBUDEV_LT_REVISION)
23 AC_SUBST(LIBUDEV_LT_AGE)
25 AC_PATH_PROG([XSLTPROC], [xsltproc])
27 AC_ARG_WITH(udev-prefix,
28 AS_HELP_STRING([--with-udev-prefix=DIR], [add prefix to internal udev path names]),
29 [], [with_udev_prefix='${exec_prefix}'])
30 udev_prefix=$with_udev_prefix
33 AC_ARG_WITH(libdir-name,
34 AS_HELP_STRING([--with-libdir-name=DIR], [name of the arch lib directory]),
35 [], [with_libdir_name=lib])
36 libdir_name=$with_libdir_name
40 AS_HELP_STRING([--with-selinux], [compile with SELinux support]),
42 if test "x$with_selinux" = xyes; then
44 AC_CHECK_LIB(selinux, getprevcon,
46 AC_MSG_ERROR([SELinux selected but libselinux not found]))
48 AC_DEFINE(USE_SELINUX, [1] ,[compile with SELinux support])
49 SELINUX_LIBS="-lselinux -lsepol"
51 AC_SUBST([SELINUX_LIBS])
52 AM_CONDITIONAL(USE_SELINUX, [test "x$with_selinux" = xyes], [compile with SELinux support])
55 AS_HELP_STRING([--enable-debug], [turn on debugging]),
57 if test "x$enable_debug" = "xyes"; then
58 AC_DEFINE(DEBUG, [1] ,[Compile in debug messages])
59 DEBUG_CFLAGS="-DDEBUG"
61 AC_SUBST(DEBUG_CFLAGS)
63 AC_ARG_ENABLE(logging,
64 AS_HELP_STRING([--disable-logging], [turn off logging/syslog]),
65 [], enable_logging=yes)
66 if test "x$enable_logging" != "xno"; then
67 AC_DEFINE(USE_LOG, [1] ,[Use logging/syslog])
70 AC_CONFIG_HEADERS(config.h)
78 extras/ata_id/Makefile
79 extras/cdrom_id/Makefile
80 extras/edd_id/Makefile
81 extras/path_id/Makefile
82 extras/firmware/Makefile
83 extras/collect/Makefile
84 extras/floppy/Makefile
85 extras/fstab_import/Makefile
86 extras/rule_generator/Makefile
87 extras/scsi_id/Makefile
88 extras/usb_id/Makefile
97 exec_prefix: ${exec_prefix}
98 udev_prefix: ${udev_prefix}
99 libdir_name: ${libdir_name}
100 datarootdir: ${datarootdir}
102 includedir: ${includedir}
104 logging: ${enable_logging}
105 debug: ${enable_debug}
106 selinux: ${with_selinux}
112 xsltproc: ${XSLTPROC}