mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-27 03:19:35 +03:00
06346cc5b5
Several m4 macros have been retired in autoconf 2.70. Update the the build system to use the new macros provided to replace them. * Replaced AC_HELP_STRING with AS_HELP_STRING. * Replaced AC_TRY_COMPILE with AC_COMPILE_IFELSE/AC_LANG_PROGRAM. * Replaced AC_CANONICAL_SYSTEM with AC_CANONICAL_TARGET * Replaced AC_PROG_LIBTOOL with LT_INIT * $CPP is not defined in ZFS_AC_KERNEL and really shouldn't be directly used like this. Replace it with an $AWK command to extract the kernel source version. Reviewed-by: Eli Schwartz <eschwartz@archlinux.org> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Issue #11413 Closes #11419
23 lines
545 B
Plaintext
23 lines
545 B
Plaintext
AC_DEFUN([ZFS_AC_CONFIG_USER_DRACUT], [
|
|
AC_MSG_CHECKING(for dracut directory)
|
|
AC_ARG_WITH([dracutdir],
|
|
AS_HELP_STRING([--with-dracutdir=DIR],
|
|
[install dracut helpers @<:@default=check@:>@]),
|
|
[dracutdir=$withval],
|
|
[dracutdir=check])
|
|
|
|
AS_IF([test "x$dracutdir" = xcheck], [
|
|
path1=/usr/share/dracut
|
|
path2=/usr/lib/dracut
|
|
default=$path2
|
|
|
|
AS_IF([test -d "$path1"], [dracutdir="$path1"], [
|
|
AS_IF([test -d "$path2"], [dracutdir="$path2"],
|
|
[dracutdir="$default"])
|
|
])
|
|
])
|
|
|
|
AC_SUBST(dracutdir)
|
|
AC_MSG_RESULT([$dracutdir])
|
|
])
|