2012-11-16 02:51:20 +07:00
|
|
|
|
|
|
|
AC_PREREQ([2.68])
|
2012-11-23 07:21:27 +07:00
|
|
|
AC_INIT([eudev], [0.1], [http://bugzilla.gentoo.org])
|
2012-11-16 02:51:20 +07:00
|
|
|
AC_CONFIG_SRCDIR([src/udev/udevd.c])
|
2011-10-03 05:31:59 +07:00
|
|
|
|
2011-04-26 03:00:12 +07:00
|
|
|
AC_USE_SYSTEM_EXTENSIONS
|
2011-04-26 02:50:42 +07:00
|
|
|
AC_SYS_LARGEFILE
|
2012-11-16 02:51:20 +07:00
|
|
|
|
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
|
|
AC_CONFIG_HEADERS([config.h])
|
|
|
|
|
|
|
|
AM_INIT_AUTOMAKE([foreign 1.11])
|
2012-04-04 02:24:46 +07:00
|
|
|
AM_SILENT_RULES([yes])
|
2010-02-03 20:21:48 +07:00
|
|
|
|
2012-04-04 02:24:46 +07:00
|
|
|
LT_PREREQ(2.2)
|
|
|
|
LT_INIT
|
2010-02-03 20:21:48 +07:00
|
|
|
|
2012-11-16 02:51:20 +07:00
|
|
|
# Checks for programs.
|
2010-05-16 23:34:31 +07:00
|
|
|
AC_PROG_MKDIR_P
|
|
|
|
AC_PROG_LN_S
|
|
|
|
AC_PROG_SED
|
2012-02-13 07:46:44 +07:00
|
|
|
AC_PROG_GREP
|
2011-08-01 05:43:05 +07:00
|
|
|
AC_PROG_AWK
|
2010-05-16 23:34:31 +07:00
|
|
|
|
2010-02-03 20:21:48 +07:00
|
|
|
AC_PROG_CC
|
2012-11-16 02:51:20 +07:00
|
|
|
AC_PROG_CXX
|
|
|
|
AC_PROG_CPP
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
AC_PROG_LN_S
|
|
|
|
AC_PROG_MAKE_SET
|
2010-02-03 20:21:48 +07:00
|
|
|
|
2012-11-16 09:47:20 +07:00
|
|
|
GTK_DOC_CHECK([1.18],[--flavour no-tmpl])
|
2012-11-17 22:13:59 +07:00
|
|
|
DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc
|
2012-11-16 09:47:20 +07:00
|
|
|
|
2012-04-04 02:24:46 +07:00
|
|
|
AC_PATH_PROG([M4], [m4])
|
2012-08-25 06:57:03 +07:00
|
|
|
AC_PATH_PROG([XSLTPROC], [xsltproc])
|
2012-11-16 09:47:20 +07:00
|
|
|
AC_PATH_TOOL(GPERF, gperf)
|
|
|
|
if test -z "$GPERF" ; then
|
|
|
|
AC_MSG_ERROR([*** gperf not found])
|
|
|
|
fi
|
2012-04-17 21:17:27 +07:00
|
|
|
|
2012-11-19 21:44:21 +07:00
|
|
|
PKG_CHECK_MODULES(BLKID,[blkid >= 2.20])
|
|
|
|
|
2012-11-16 02:51:20 +07:00
|
|
|
# Checks for header files.
|
|
|
|
AC_CHECK_HEADERS(
|
2012-11-18 04:22:12 +07:00
|
|
|
[arpa/inet.h fcntl.h inttypes.h langinfo.h limits.h locale.h malloc.h \
|
|
|
|
netinet/in.h stddef.h stdint.h stdlib.h string.h sys/ioctl.h sys/mount.h \
|
|
|
|
sys/param.h sys/socket.h sys/statvfs.h sys/time.h sys/vfs.h syslog.h \
|
|
|
|
termios.h unistd.h],
|
2012-11-16 02:51:20 +07:00
|
|
|
[],
|
|
|
|
[AC_MSG_ERROR([*** POSIX header not found])]
|
|
|
|
)
|
|
|
|
|
|
|
|
# Checks for typedefs, structures, and compiler characteristics.
|
|
|
|
AC_HEADER_STDBOOL
|
|
|
|
AC_TYPE_UID_T
|
|
|
|
AC_C_INLINE
|
2012-11-17 08:40:11 +07:00
|
|
|
AC_TYPE_INT32_T
|
2012-11-16 02:51:20 +07:00
|
|
|
AC_TYPE_INT64_T
|
|
|
|
AC_TYPE_MODE_T
|
2012-11-17 08:40:11 +07:00
|
|
|
AC_TYPE_OFF_T
|
2012-11-16 02:51:20 +07:00
|
|
|
AC_TYPE_PID_T
|
|
|
|
AC_TYPE_SIZE_T
|
|
|
|
AC_TYPE_SSIZE_T
|
|
|
|
AC_CHECK_MEMBERS([struct stat.st_rdev])
|
|
|
|
AC_TYPE_UINT16_T
|
|
|
|
AC_TYPE_UINT32_T
|
|
|
|
AC_TYPE_UINT64_T
|
|
|
|
AC_TYPE_UINT8_T
|
2012-11-17 08:40:11 +07:00
|
|
|
AC_CHECK_DECLS([gettid, pivot_root, name_to_handle_at], [], [], [[#include <sys/types.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <sys/mount.h>
|
|
|
|
#include <fcntl.h>]])
|
|
|
|
|
2012-11-16 02:51:20 +07:00
|
|
|
|
|
|
|
# Checks for library functions.
|
|
|
|
AC_FUNC_ALLOCA
|
|
|
|
AC_FUNC_CHOWN
|
|
|
|
AC_FUNC_FORK
|
|
|
|
AC_FUNC_FSEEKO
|
2012-11-18 04:22:12 +07:00
|
|
|
AC_FUNC_GETGROUPS
|
2012-11-16 02:51:20 +07:00
|
|
|
AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
|
|
|
|
AC_HEADER_MAJOR
|
|
|
|
AC_FUNC_MALLOC
|
2012-11-18 04:22:12 +07:00
|
|
|
AC_FUNC_MKTIME
|
2012-11-16 02:51:20 +07:00
|
|
|
AC_FUNC_MMAP
|
|
|
|
AC_FUNC_REALLOC
|
|
|
|
AC_FUNC_STRNLEN
|
|
|
|
AC_FUNC_STRTOD
|
2012-11-18 04:22:12 +07:00
|
|
|
|
2012-11-16 02:51:20 +07:00
|
|
|
AC_CHECK_FUNCS(
|
2012-11-18 04:22:12 +07:00
|
|
|
[alarm dup2 ftruncate localtime_r memchr memmove mempcpy memset \
|
|
|
|
mkdir munmap nl_langinfo rmdir setlocale socket stpcpy strcasecmp \
|
|
|
|
strchr strcspn strdup strerror strndup strpbrk strrchr strspn \
|
|
|
|
strstr strtol strtoul strtoull uname],
|
2012-11-16 02:51:20 +07:00
|
|
|
[],
|
|
|
|
[AC_MSG_ERROR([*** POSIX function not found])]
|
|
|
|
)
|
|
|
|
AC_SEARCH_LIBS([clock_gettime], [rt], [], [AC_MSG_ERROR([*** POSIX librt not found])])
|
|
|
|
AC_SEARCH_LIBS([sqrt], [m], [], [AC_MSG_ERROR([*** POSIX libm not found])])
|
2012-09-03 04:28:30 +07:00
|
|
|
|
2010-11-24 03:12:11 +07:00
|
|
|
|
2012-09-13 09:01:18 +07:00
|
|
|
# we use python to build the man page index, and for systemd-python
|
|
|
|
have_python=no
|
|
|
|
have_python_devel=no
|
2012-10-06 16:37:44 +07:00
|
|
|
|
|
|
|
AC_ARG_WITH([python],
|
|
|
|
[AS_HELP_STRING([--without-python], [Disable building the man page index and systemd-python (default: test)])])
|
|
|
|
|
|
|
|
AS_IF([test "x$with_python" != "xno"], [
|
|
|
|
AM_PATH_PYTHON(,, [:])
|
2012-11-01 14:58:13 +07:00
|
|
|
AS_IF([test "$PYTHON" != :], [have_python=yes])
|
2012-10-06 16:37:44 +07:00
|
|
|
])
|
2012-09-13 09:01:18 +07:00
|
|
|
AM_CONDITIONAL([HAVE_PYTHON], [test "$have_python" = "yes"])
|
2012-11-01 14:58:13 +07:00
|
|
|
|
|
|
|
AS_IF([test "x$with_python" != "xno"], [
|
|
|
|
AC_PATH_PROG(PYTHON_CONFIG, python${PYTHON_VERSION}-config)
|
|
|
|
AS_IF([test -n "$PYTHON_CONFIG"], [
|
|
|
|
have_python_devel=yes
|
|
|
|
PYTHON_CFLAGS="`$PYTHON_CONFIG --cflags`"
|
|
|
|
PYTHON_LIBS="`$PYTHON_CONFIG --ldflags`"
|
|
|
|
AC_SUBST(PYTHON_CFLAGS)
|
|
|
|
AC_SUBST(PYTHON_LIBS)
|
|
|
|
])
|
|
|
|
])
|
2012-09-13 09:01:18 +07:00
|
|
|
AM_CONDITIONAL([HAVE_PYTHON_DEVEL], [test "$have_python_devel" = "yes"])
|
2012-07-16 22:19:39 +07:00
|
|
|
|
2012-11-16 08:18:22 +07:00
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
have_introspection=no
|
|
|
|
AC_ARG_ENABLE([introspection],
|
|
|
|
[AS_HELP_STRING([--without-introspection], [Disable man page index and systemd-python (default: no)])])
|
|
|
|
GOBJECT_INTROSPECTION_CHECK([1.31.1])
|
|
|
|
AM_CONDITIONAL([HAVE_INTROSPECTION], [test "$have_introspection" = "yes"])
|
|
|
|
|
2012-04-04 02:24:46 +07:00
|
|
|
# ------------------------------------------------------------------------------
|
2011-02-08 17:44:38 +07:00
|
|
|
have_selinux=no
|
|
|
|
AC_ARG_ENABLE(selinux, AS_HELP_STRING([--disable-selinux], [Disable optional SELINUX support]))
|
|
|
|
if test "x$enable_selinux" != "xno"; then
|
2012-09-20 15:20:49 +07:00
|
|
|
PKG_CHECK_MODULES([SELINUX], [libselinux >= 2.1.9],
|
2011-02-08 17:44:38 +07:00
|
|
|
[AC_DEFINE(HAVE_SELINUX, 1, [Define if SELinux is available]) have_selinux=yes], have_selinux=no)
|
|
|
|
if test "x$have_selinux" = xno -a "x$enable_selinux" = xyes; then
|
|
|
|
AC_MSG_ERROR([*** SELinux support requested but libraries not found])
|
|
|
|
fi
|
Systemd is causing mislabeled devices to be created and then attempting to read them.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 07/28/2010 05:57 AM, Kay Sievers wrote:
> On Wed, Jul 28, 2010 at 11:43, Lennart Poettering
> <lennart@poettering.net> wrote:
>> On Mon, 26.07.10 16:42, Daniel J Walsh (dwalsh@redhat.com) wrote:
>>> tcontext=system_u:object_r:device_t:s0 tclass=chr_file
>>> type=1400 audit(1280174589.476:7): avc: denied { read } for pid=1
>>> comm="systemd" name="autofs" dev=devtmpfs ino=9482
>>> scontext=system_u:system_r:init_t:s0
>>> tcontext=system_u:object_r:device_t:s0 tclass=chr_file
>>> type=1400 audit(1280174589.476:8): avc: denied { read } for pid=1
>>> comm="systemd" name="autofs" dev=devtmpfs ino=9482
>>> scontext=system_u:system_r:init_t:s0
>>> tcontext=system_u:object_r:device_t:s0 tclass=chr_file
>>>
>>> Lennart, we talked about this earlier. I think this is caused by the
>>> modprobe calls to create /dev/autofs. Since udev is not created at the
>>> point that init loads the kernel modules, the devices get created with
>>> the wrong label. Once udev starts the labels get fixed.
>>>
>>> I can allow init_t to read device_t chr_files.
>>
>> Hmm, I think a cleaner fix would be to make systemd relabel this device
>> properly before accessing it? Given that this is only one device this
>> should not be a problem for us to maintain, I think? How would the
>> fixing of the label work? Would we have to spawn restorecon for this, or
>> can we actually do this in C without too much work?
>
> I guess we can just do what udev is doing, and call setfilecon(), with
> a context of an earlier matchpathcon().
>
> Kay
> _______________________________________________
> systemd-devel mailing list
> systemd-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
Here is the updated patch with a fix for the labeling of /dev/autofs
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iEYEARECAAYFAkxQMyoACgkQrlYvE4MpobNviACfWgxsjW2xzz1qznFex8RVAQHf
gIEAmwRmRcLvGqYtwQaZ3WKIg8wmrwNk
=pC2e
2010-07-28 20:39:54 +07:00
|
|
|
fi
|
2011-02-08 17:44:38 +07:00
|
|
|
AM_CONDITIONAL(HAVE_SELINUX, [test "$have_selinux" = "yes"])
|
2012-06-07 21:03:33 +07:00
|
|
|
if test "x${have_selinux}" != xno ; then
|
|
|
|
sushell=/sbin/sushell
|
|
|
|
else
|
|
|
|
sushell=/bin/bash
|
|
|
|
fi
|
|
|
|
AC_SUBST(sushell)
|
Systemd is causing mislabeled devices to be created and then attempting to read them.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 07/28/2010 05:57 AM, Kay Sievers wrote:
> On Wed, Jul 28, 2010 at 11:43, Lennart Poettering
> <lennart@poettering.net> wrote:
>> On Mon, 26.07.10 16:42, Daniel J Walsh (dwalsh@redhat.com) wrote:
>>> tcontext=system_u:object_r:device_t:s0 tclass=chr_file
>>> type=1400 audit(1280174589.476:7): avc: denied { read } for pid=1
>>> comm="systemd" name="autofs" dev=devtmpfs ino=9482
>>> scontext=system_u:system_r:init_t:s0
>>> tcontext=system_u:object_r:device_t:s0 tclass=chr_file
>>> type=1400 audit(1280174589.476:8): avc: denied { read } for pid=1
>>> comm="systemd" name="autofs" dev=devtmpfs ino=9482
>>> scontext=system_u:system_r:init_t:s0
>>> tcontext=system_u:object_r:device_t:s0 tclass=chr_file
>>>
>>> Lennart, we talked about this earlier. I think this is caused by the
>>> modprobe calls to create /dev/autofs. Since udev is not created at the
>>> point that init loads the kernel modules, the devices get created with
>>> the wrong label. Once udev starts the labels get fixed.
>>>
>>> I can allow init_t to read device_t chr_files.
>>
>> Hmm, I think a cleaner fix would be to make systemd relabel this device
>> properly before accessing it? Given that this is only one device this
>> should not be a problem for us to maintain, I think? How would the
>> fixing of the label work? Would we have to spawn restorecon for this, or
>> can we actually do this in C without too much work?
>
> I guess we can just do what udev is doing, and call setfilecon(), with
> a context of an earlier matchpathcon().
>
> Kay
> _______________________________________________
> systemd-devel mailing list
> systemd-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
Here is the updated patch with a fix for the labeling of /dev/autofs
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iEYEARECAAYFAkxQMyoACgkQrlYvE4MpobNviACfWgxsjW2xzz1qznFex8RVAQHf
gIEAmwRmRcLvGqYtwQaZ3WKIg8wmrwNk
=pC2e
2010-07-28 20:39:54 +07:00
|
|
|
|
2012-04-04 02:24:46 +07:00
|
|
|
# ------------------------------------------------------------------------------
|
2011-05-24 09:20:35 +07:00
|
|
|
AC_ARG_ENABLE([acl],
|
|
|
|
AS_HELP_STRING([--disable-acl],[Disable optional ACL support]),
|
|
|
|
[case "${enableval}" in
|
|
|
|
yes) have_acl=yes ;;
|
|
|
|
no) have_acl=no ;;
|
|
|
|
*) AC_MSG_ERROR(bad value ${enableval} for --disable-acl) ;;
|
|
|
|
esac],
|
|
|
|
[have_acl=auto])
|
|
|
|
|
|
|
|
if test "x${have_acl}" != xno ; then
|
|
|
|
AC_CHECK_HEADERS(
|
|
|
|
[sys/acl.h acl/libacl.h],
|
|
|
|
[have_acl=yes],
|
|
|
|
[if test "x$have_acl" = xyes ; then
|
|
|
|
AC_MSG_ERROR([*** ACL headers not found.])
|
|
|
|
fi])
|
|
|
|
|
|
|
|
AC_CHECK_LIB(
|
|
|
|
[acl],
|
|
|
|
[acl_get_file],
|
|
|
|
[have_acl=yes],
|
|
|
|
[if test "x$have_acl" = xyes ; then
|
|
|
|
AC_MSG_ERROR([*** libacl not found.])
|
|
|
|
fi])
|
|
|
|
|
|
|
|
if test "x$have_acl" = xyes ; then
|
|
|
|
ACL_LIBS="-lacl"
|
|
|
|
AC_DEFINE(HAVE_ACL, 1, [ACL available])
|
|
|
|
else
|
|
|
|
have_acl=no
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
ACL_LIBS=
|
|
|
|
fi
|
|
|
|
AC_SUBST(ACL_LIBS)
|
|
|
|
AM_CONDITIONAL([HAVE_ACL], [test "x$have_acl" != xno])
|
|
|
|
|
2012-11-19 09:43:35 +07:00
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
AC_CHECK_DECL([unshare],
|
|
|
|
[AC_DEFINE(HAVE_UNSHARE, 1, [Define if unshare is declared])],
|
|
|
|
[AC_CHECK_DECL([SYS_unshare],
|
|
|
|
[ ] ,
|
|
|
|
[AC_MSG_ERROR([*** unshare nor SYS_unshare found.])],
|
|
|
|
[#include <syscall.h>])],
|
|
|
|
[#include <sched.h>])
|
|
|
|
|
2012-04-04 02:24:46 +07:00
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
AC_ARG_WITH(firmware-path,
|
|
|
|
AS_HELP_STRING([--with-firmware-path=DIR[[[:DIR[...]]]]],
|
|
|
|
[Firmware search path (default=ROOTPREFIX/lib/firmware/updates:ROOTPREFIX/lib/firmware)]),
|
|
|
|
[], [with_firmware_path="$rootprefix/lib/firmware/updates:$rootprefix/lib/firmware"])
|
|
|
|
OLD_IFS=$IFS
|
|
|
|
IFS=:
|
|
|
|
for i in $with_firmware_path; do
|
|
|
|
if test "x${FIRMWARE_PATH}" = "x"; then
|
|
|
|
FIRMWARE_PATH="\\\"${i}/\\\""
|
|
|
|
else
|
|
|
|
FIRMWARE_PATH="${FIRMWARE_PATH}, \\\"${i}/\\\""
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS=$OLD_IFS
|
|
|
|
AC_SUBST([FIRMWARE_PATH], [$FIRMWARE_PATH])
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
AC_ARG_ENABLE([gudev],
|
|
|
|
AS_HELP_STRING([--disable-gudev], [disable Gobject libudev support @<:@default=enabled@:>@]),
|
|
|
|
[], [enable_gudev=yes])
|
|
|
|
AS_IF([test "x$enable_gudev" = "xyes"], [ PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.22.0 gobject-2.0 >= 2.22.0]) ])
|
|
|
|
AM_CONDITIONAL([ENABLE_GUDEV], [test "x$enable_gudev" = "xyes"])
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
AC_ARG_ENABLE([keymap],
|
|
|
|
AS_HELP_STRING([--disable-keymap], [disable keymap fixup support @<:@default=enabled@:>@]),
|
|
|
|
[], [enable_keymap=yes])
|
|
|
|
AM_CONDITIONAL([ENABLE_KEYMAP], [test "x$enable_keymap" = "xyes"])
|
|
|
|
|
2012-11-16 02:51:20 +07:00
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
AC_ARG_ENABLE(gtk-doc, AS_HELP_STRING([--disable-gtk-doc], [disable gtk-doc]))
|
|
|
|
AS_IF(
|
|
|
|
[test "x$enable_gtk_doc" = "xyes" -a "x$XSLTPROC" = x],
|
|
|
|
[AC_MSG_ERROR([*** GTK doc requested but xsltproc not found])]
|
|
|
|
)
|
|
|
|
|
2012-04-04 02:24:46 +07:00
|
|
|
# ------------------------------------------------------------------------------
|
2012-02-11 03:44:14 +07:00
|
|
|
have_manpages=no
|
2012-02-11 03:45:15 +07:00
|
|
|
AC_ARG_ENABLE(manpages, AS_HELP_STRING([--disable-manpages], [disable manpages]))
|
2012-08-25 06:57:03 +07:00
|
|
|
AS_IF([test "x$enable_manpages" != xno], [
|
|
|
|
AS_IF([test "x$enable_manpages" = xyes -a "x$XSLTPROC" = x], [
|
|
|
|
AC_MSG_ERROR([*** Manpages requested but xsltproc not found])
|
|
|
|
])
|
|
|
|
AS_IF([test "x$XSLTPROC" != x], [have_manpages=yes])
|
|
|
|
])
|
|
|
|
AM_CONDITIONAL(ENABLE_MANPAGES, [test "x$have_manpages" = "xyes"])
|
2012-02-11 03:44:14 +07:00
|
|
|
|
2012-04-04 02:24:46 +07:00
|
|
|
# ------------------------------------------------------------------------------
|
2010-05-16 04:06:41 +07:00
|
|
|
|
2012-01-05 06:40:39 +07:00
|
|
|
AC_ARG_WITH([rootprefix],
|
|
|
|
AS_HELP_STRING([--with-rootprefix=DIR], [rootfs directory prefix for config files and kernel modules]),
|
2012-01-05 10:10:59 +07:00
|
|
|
[], [with_rootprefix=${ac_default_prefix}])
|
2010-06-08 00:40:25 +07:00
|
|
|
|
2011-07-15 06:31:06 +07:00
|
|
|
AC_ARG_WITH([rootlibdir],
|
|
|
|
AS_HELP_STRING([--with-rootlibdir=DIR], [Root directory for libraries necessary for boot]),
|
|
|
|
[],
|
|
|
|
[with_rootlibdir=${libdir}])
|
|
|
|
|
2012-02-10 18:10:41 +07:00
|
|
|
AC_ARG_ENABLE([split-usr],
|
|
|
|
AS_HELP_STRING([--enable-split-usr], [Assume that /bin, /sbin aren\'t symlinks into /usr]),
|
|
|
|
[],
|
|
|
|
[AS_IF([test "x${ac_default_prefix}" != "x${with_rootprefix}"], [
|
|
|
|
enable_split_usr=yes
|
|
|
|
], [
|
|
|
|
enable_split_usr=no
|
|
|
|
])])
|
|
|
|
|
|
|
|
AS_IF([test "x${enable_split_usr}" = "xyes"], [
|
2012-02-07 21:56:28 +07:00
|
|
|
AC_DEFINE(HAVE_SPLIT_USR, 1, [Define if /bin, /sbin aren't symlinks into /usr])
|
2012-02-10 18:10:41 +07:00
|
|
|
])
|
2012-02-07 21:56:28 +07:00
|
|
|
|
2012-01-05 06:40:39 +07:00
|
|
|
AC_SUBST([rootprefix], [$with_rootprefix])
|
2011-07-15 06:31:06 +07:00
|
|
|
AC_SUBST([rootlibdir], [$with_rootlibdir])
|
2012-11-22 21:45:09 +07:00
|
|
|
AC_SUBST([udevlibexecdir], [${with_rootlibdir}/udev])
|
2010-06-02 05:35:58 +07:00
|
|
|
|
2012-11-16 02:51:20 +07:00
|
|
|
# ------------------------------------------------------------------------------
|
2012-04-04 02:24:46 +07:00
|
|
|
|
2012-11-19 23:49:42 +07:00
|
|
|
AC_ARG_ENABLE([libkmod], [AS_HELP_STRING([--enable-libkmod], [Enable module loading through kmod @<:@default=disabled@:>@])], [], [with_libkmod=no])
|
|
|
|
|
|
|
|
LIBKMOD=
|
|
|
|
AS_IF([test "x$with_libkmod" != xno],
|
|
|
|
[AC_CHECK_LIB([kmod], [main],
|
|
|
|
[PKG_CHECK_MODULES(KMOD, [libkmod >= 5])
|
|
|
|
AC_SUBST([LIBKMOD], ["-lkmod"])
|
|
|
|
AC_DEFINE([HAVE_LIBKMOD], [1],
|
|
|
|
[Define if you have libkmod])
|
|
|
|
],
|
|
|
|
[AC_MSG_FAILURE(
|
|
|
|
[--with-libkmod was given, but test for kmod failed])],
|
|
|
|
[-lkmod])])
|
|
|
|
|
|
|
|
AM_CONDITIONAL([HAVE_LIBKMOD], [test "$with_kmod" = "yes"])
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
AC_ARG_WITH([modprobe],
|
|
|
|
[AS_HELP_STRING([--with-modprobe=modprobe],
|
|
|
|
[specify location of modprobe when -- @<:@default=$sbindir/modprobe@:>@])],
|
|
|
|
[],
|
|
|
|
[with_modprobe="${sbindir}/modprobe"])
|
|
|
|
|
|
|
|
AC_SUBST([MODPROBE], ["${with_modprobe}"])
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
2012-11-16 02:51:20 +07:00
|
|
|
AC_CONFIG_FILES([Makefile
|
2012-11-16 08:18:22 +07:00
|
|
|
docs/Makefile
|
2012-11-16 02:51:20 +07:00
|
|
|
docs/gudev/Makefile
|
2012-11-18 04:22:12 +07:00
|
|
|
docs/gudev/version.xml
|
2012-11-16 08:18:22 +07:00
|
|
|
docs/libudev/Makefile
|
2012-11-18 04:22:12 +07:00
|
|
|
docs/libudev/version.xml
|
2012-11-16 08:18:22 +07:00
|
|
|
hwdb/Makefile
|
|
|
|
keymaps-force-release/Makefile
|
|
|
|
keymaps/Makefile
|
|
|
|
man/Makefile
|
|
|
|
rules/Makefile
|
|
|
|
src/Makefile
|
2012-11-18 08:29:02 +07:00
|
|
|
src/accelerometer/Makefile
|
|
|
|
src/ata_id/Makefile
|
|
|
|
src/cdrom_id/Makefile
|
|
|
|
src/collect/Makefile
|
|
|
|
src/mtd_probe/Makefile
|
|
|
|
src/scsi_id/Makefile
|
|
|
|
src/v4l_id/Makefile
|
2012-11-16 08:18:22 +07:00
|
|
|
src/gudev/Makefile
|
2012-11-18 04:22:12 +07:00
|
|
|
src/gudev/gudev-1.0.pc
|
2012-11-21 02:44:47 +07:00
|
|
|
src/keymap/Makefile
|
2012-11-23 09:51:53 +07:00
|
|
|
src/keymap/check-keymaps.sh
|
2012-11-21 02:44:47 +07:00
|
|
|
src/keymap/keyboard-force-release.sh
|
2012-11-16 08:18:22 +07:00
|
|
|
src/libudev/Makefile
|
2012-11-18 04:22:12 +07:00
|
|
|
src/libudev/libudev.pc
|
2012-11-16 08:18:22 +07:00
|
|
|
src/udev/Makefile
|
2012-11-16 11:11:59 +07:00
|
|
|
src/udev/udev.pc
|
2012-11-18 08:29:02 +07:00
|
|
|
src/test/Makefile
|
2012-11-18 04:22:12 +07:00
|
|
|
test/Makefile])
|
|
|
|
|
2012-11-23 09:51:53 +07:00
|
|
|
|
2010-06-02 23:53:19 +07:00
|
|
|
AC_OUTPUT
|
2012-11-23 09:51:53 +07:00
|
|
|
|
|
|
|
dnl Set configured scripts executable
|
|
|
|
if test -f src/keymap/check-keymaps.sh; then
|
|
|
|
chmod +x src/keymap/check-keymaps.sh
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test -f src/keymap/keyboard-force-release.sh; then
|
|
|
|
chmod +x src/keymap/keyboard-force-release.sh
|
|
|
|
fi
|