Fix obsolete warnings on bootstrap

Use AS_HELP_STRING instead of the obsolete AC_HELP_STRING and call
LT_INIT instead of AC_PROG_LIBTOOL (if available).
This commit is contained in:
Nicola Fontana 2022-06-09 22:32:00 +02:00
parent 89677140fa
commit b2f1a0b32f
1 changed files with 26 additions and 48 deletions

View File

@ -59,7 +59,8 @@ PKG_INSTALLDIR
AM_PROG_CC_C_O
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
AC_PROG_CXX
AC_PROG_LIBTOOL
dnl Use LT_INIT instead of AC_PROG_LIBTOOL, if available
m4_ifdef([LT_INIT], [LT_INIT], [AC_PROG_LIBTOOL])
#------------------------------------------------------------------------------
# Kernel modules
@ -99,10 +100,8 @@ AC_SUBST(ENABLE_KERNEL,[$enablekernel])
if test "x$enablekernel" = "x1"; then
AC_ARG_WITH([linux-dir],
AC_HELP_STRING(
[--with-linux-dir=<DIR>],
[Linux kernel sources @<:@running kernel@:>@]
),
AS_HELP_STRING([--with-linux-dir=<DIR>],
[Linux kernel sources @<:@running kernel@:>@]),
[
sourcedir=[$withval]
],
@ -161,10 +160,8 @@ fi
#------------------------------------------------------------------------------
AC_ARG_WITH([module-dir],
AC_HELP_STRING(
[--with-module-dir=<DIR>],
[Linux module installation dir. Default: ethercat]
),
AS_HELP_STRING([--with-module-dir=<DIR>],
[Linux module installation dir. Default: ethercat]),
[moddir=[$withval]],
[moddir="ethercat"]
)
@ -220,10 +217,8 @@ AM_CONDITIONAL(ENABLE_8139TOO, test "x$enable8139too" = "x1")
AC_SUBST(ENABLE_8139TOO,[$enable8139too])
AC_ARG_WITH([8139too-kernel],
AC_HELP_STRING(
[--with-8139too-kernel=<X.Y.Z>],
[8139too kernel (only if differing)]
),
AS_HELP_STRING([--with-8139too-kernel=<X.Y.Z>],
[8139too kernel (only if differing)]),
[
kernel8139too=[$withval]
],
@ -275,10 +270,8 @@ AM_CONDITIONAL(ENABLE_E100, test "x$enablee100" = "x1")
AC_SUBST(ENABLE_E100,[$enablee100])
AC_ARG_WITH([e100-kernel],
AC_HELP_STRING(
[--with-e100-kernel=<X.Y.Z>],
[e100 kernel (only if differing)]
),
AS_HELP_STRING([--with-e100-kernel=<X.Y.Z>],
[e100 kernel (only if differing)]),
[
kernele100=[$withval]
],
@ -330,10 +323,8 @@ AM_CONDITIONAL(ENABLE_E1000, test "x$enablee1000" = "x1")
AC_SUBST(ENABLE_E1000,[$enablee1000])
AC_ARG_WITH([e1000-kernel],
AC_HELP_STRING(
[--with-e1000-kernel=<X.Y.Z>],
[e1000 kernel (only if differing)]
),
AS_HELP_STRING([--with-e1000-kernel=<X.Y.Z>],
[e1000 kernel (only if differing)]),
[
kernele1000=[$withval]
],
@ -385,10 +376,8 @@ AM_CONDITIONAL(ENABLE_E1000E, test "x$enablee1000e" = "x1")
AC_SUBST(ENABLE_E1000E,[$enablee1000e])
AC_ARG_WITH([e1000e-kernel],
AC_HELP_STRING(
[--with-e1000e-kernel=<X.Y.Z>],
[e1000e kernel (only if differing)]
),
AS_HELP_STRING([--with-e1000e-kernel=<X.Y.Z>],
[e1000e kernel (only if differing)]),
[
kernele1000e=[$withval]
],
@ -460,9 +449,8 @@ AM_CONDITIONAL(ENABLE_IGB, test "x$enableigb" = "x1")
AC_SUBST(ENABLE_IGB,[$enableigb])
AC_ARG_WITH([igb-kernel],
AC_HELP_STRING(
[--with-igb-kernel=<X.Y.Z>],
[igb kernel (only if differing)]
AS_HELP_STRING([--with-igb-kernel=<X.Y.Z>],
[igb kernel (only if differing)]
),
[
kerneligb=[$withval]
@ -508,10 +496,8 @@ AM_CONDITIONAL(ENABLE_R8169, test "x$enable_r8169" = "x1")
AC_SUBST(ENABLE_R8169,[$enable_r8169])
AC_ARG_WITH([r8169-kernel],
AC_HELP_STRING(
[--with-r8169-kernel=<X.Y.Z>],
[r8169 kernel (only if differing)]
),
AS_HELP_STRING([--with-r8169-kernel=<X.Y.Z>],
[r8169 kernel (only if differing)]),
[
kernel_r8169=[$withval]
],
@ -575,10 +561,8 @@ AC_SUBST(ENABLE_CCAT,[$enableccat])
#------------------------------------------------------------------------------
AC_ARG_WITH([rtai-dir],
AC_HELP_STRING(
[--with-rtai-dir=<DIR>],
[RTAI path, for RTDM interface and RTAI examples]
),
AS_HELP_STRING([--with-rtai-dir=<DIR>],
[RTAI path, for RTDM interface and RTAI examples]),
[
rtaidir=[$withval]
rtai=1
@ -615,10 +599,8 @@ AC_SUBST(RTAI_LXRT_LDFLAGS,[$rtai_lxrt_ldflags])
#------------------------------------------------------------------------------
AC_ARG_WITH([xenomai-dir],
AC_HELP_STRING(
[--with-xenomai-dir=<DIR>],
[Xenomai path, for RTDM interface and Xenomai examples]
),
AS_HELP_STRING([--with-xenomai-dir=<DIR>],
[Xenomai path, for RTDM interface and Xenomai examples]),
[
xenomaidir=[$withval]
xeno=1
@ -663,10 +645,8 @@ AC_SUBST(XENOMAI_RTDM_LDFLAGS,[$xeno_rtdm_ldflags])
#------------------------------------------------------------------------------
AC_ARG_ENABLE([rtdm],
AC_HELP_STRING(
[--enable-rtdm],
[Enable RTDM interface, depends on RTAI or Xenomai]
),
AS_HELP_STRING([--enable-rtdm],
[Enable RTDM interface, depends on RTAI or Xenomai]),
[
case "${enableval}" in
yes) rtdm=1
@ -1027,10 +1007,8 @@ fi
#------------------------------------------------------------------------------
AC_ARG_WITH([devices],
AC_HELP_STRING(
[--with-devices=<NUMBER>],
[Number of Ethernet devices per master. Default: 1]
),
AS_HELP_STRING([--with-devices=<NUMBER>],
[Number of Ethernet devices per master. Default: 1]),
[
devices=[$withval]
],