2010-08-26 22:22:58 +04:00
|
|
|
dnl #
|
|
|
|
dnl # Default ZFS user configuration
|
|
|
|
dnl #
|
|
|
|
AC_DEFUN([ZFS_AC_CONFIG_USER], [
|
2014-08-29 22:16:41 +04:00
|
|
|
ZFS_AC_CONFIG_USER_MOUNT_HELPER
|
2011-08-05 23:22:58 +04:00
|
|
|
ZFS_AC_CONFIG_USER_UDEV
|
2014-01-19 18:36:49 +04:00
|
|
|
ZFS_AC_CONFIG_USER_SYSTEMD
|
|
|
|
ZFS_AC_CONFIG_USER_SYSVINIT
|
2013-02-22 22:16:16 +04:00
|
|
|
ZFS_AC_CONFIG_USER_DRACUT
|
2010-08-26 22:22:58 +04:00
|
|
|
ZFS_AC_CONFIG_USER_ZLIB
|
|
|
|
ZFS_AC_CONFIG_USER_LIBUUID
|
2016-04-27 03:24:41 +03:00
|
|
|
ZFS_AC_CONFIG_USER_LIBTIRPC
|
2010-08-26 22:22:58 +04:00
|
|
|
ZFS_AC_CONFIG_USER_LIBBLKID
|
2015-07-02 01:23:09 +03:00
|
|
|
ZFS_AC_CONFIG_USER_LIBATTR
|
2016-10-19 22:55:59 +03:00
|
|
|
ZFS_AC_CONFIG_USER_LIBDEVMAPPER
|
2016-03-14 19:04:21 +03:00
|
|
|
ZFS_AC_CONFIG_USER_LIBUDEV
|
2010-08-26 22:22:58 +04:00
|
|
|
ZFS_AC_CONFIG_USER_FRAME_LARGER_THAN
|
Add defs for makefile installation dir vars
Add macro definitions to AM_CPPFLAGS to propagate makefile installation
directory variables for libexecdir, runstatedir, sbindir, and
sysconfdir.
https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Installation-Directory-Variables.html
A corollary is that you should not use these variables except
in makefiles. For instance, instead of trying to evaluate
datadir in configure and hard-coding it in makefiles using e.g.,
'AC_DEFINE_UNQUOTED([DATADIR], ["$datadir"], [Data directory.])',
you should add -DDATADIR='$(datadir)' to your makefile's definition
of CPPFLAGS (AM_CPPFLAGS if you are also using Automake).
The runstatedir directory is for "installing data files which the
programs modify while they run, that pertain to one specific machine,
and which need not persist longer than the execution of the program".
https://www.gnu.org/prep/standards/html_node/Directory-Variables.html
It will be defined by autoconf 2.70 or later, and default to
"$(localstatedir)/run".
http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=commit;h=a197431414088a417b407b9b20583b2e8f7363bd
Signed-off-by: Chris Dunlap <cdunlap@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #2
2014-01-07 04:15:45 +04:00
|
|
|
ZFS_AC_CONFIG_USER_RUNSTATEDIR
|
2015-07-02 01:23:09 +03:00
|
|
|
|
|
|
|
ZFS_AC_CONFIG_USER_COMMANDS
|
|
|
|
ZFS_AC_TEST_FRAMEWORK
|
|
|
|
|
2014-04-02 01:21:56 +04:00
|
|
|
AC_CHECK_FUNCS([mlockall])
|
2010-08-26 22:22:58 +04:00
|
|
|
])
|
2015-07-02 01:23:09 +03:00
|
|
|
|
|
|
|
dnl #
|
|
|
|
dnl # Setup the environment for the ZFS Test Suite. Currently only
|
|
|
|
dnl # Linux sytle systems are supported but this infrastructure can
|
|
|
|
dnl # be extended to support other platforms if needed.
|
|
|
|
dnl #
|
|
|
|
AC_DEFUN([ZFS_AC_TEST_FRAMEWORK], [
|
|
|
|
ZONENAME="echo global"
|
|
|
|
AC_SUBST(ZONENAME)
|
|
|
|
|
|
|
|
AC_SUBST(RM)
|
|
|
|
])
|