Autoconf 2.70 compatibility
commitfb7aa3c9b20ab2591c7063df036c0f07f3f76b1a
authorBrian Behlendorf <behlendorf1@llnl.gov>
Sun, 3 Jan 2021 00:55:55 +0000 (2 16:55 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 5 Jan 2021 18:33:55 +0000 (5 10:33 -0800)
treeea88b56ee1c71f3fc9907f2eac0c59faedf7bc75
parent4016ad705bb45d4bc8b5884ac626e4b1c433e06a
Autoconf 2.70 compatibility

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
12 files changed:
config/always-python.m4
config/always-pyzfs.m4
config/kernel.m4
config/mount-helper.m4
config/user-dracut.m4
config/user-libexec.m4
config/user-makedev.m4
config/user-systemd.m4
config/user-sysvinit.m4
config/user-udev.m4
config/zfs-build.m4
configure.ac