Limited line length to 78.

This commit is contained in:
Florian Pose 2024-02-01 17:44:20 +01:00
parent df3954d8ec
commit 6200ecca77
1 changed files with 67 additions and 65 deletions

View File

@ -1,4 +1,4 @@
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
# #
# Copyright (C) 2006-2023 Florian Pose, Ingenieurgemeinschaft IgH # Copyright (C) 2006-2023 Florian Pose, Ingenieurgemeinschaft IgH
# #
@ -17,7 +17,7 @@
# with the IgH EtherCAT Master; if not, write to the Free Software # with the IgH EtherCAT Master; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# #
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
AC_PREREQ(2.59) AC_PREREQ(2.59)
@ -42,18 +42,18 @@ AC_PROG_SED
PKG_PROG_PKG_CONFIG PKG_PROG_PKG_CONFIG
PKG_INSTALLDIR() PKG_INSTALLDIR()
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
# Global # Global
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
AM_PROG_CC_C_O AM_PROG_CC_C_O
m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
AC_PROG_CXX AC_PROG_CXX
AC_PROG_LIBTOOL AC_PROG_LIBTOOL
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
# Kernel modules # Kernel modules
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
AC_MSG_CHECKING([whether to build kernel modules]) AC_MSG_CHECKING([whether to build kernel modules])
@ -82,9 +82,9 @@ fi
AM_CONDITIONAL(ENABLE_KERNEL, test "x$enablekernel" = "x1") AM_CONDITIONAL(ENABLE_KERNEL, test "x$enablekernel" = "x1")
AC_SUBST(ENABLE_KERNEL,[$enablekernel]) AC_SUBST(ENABLE_KERNEL,[$enablekernel])
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
# Linux sources # Linux sources
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
if test "x$enablekernel" = "x1"; then if test "x$enablekernel" = "x1"; then
@ -146,9 +146,9 @@ AC_MSG_RESULT([$LINUX_SOURCE_DIR (Kernel $linuxversion)])
fi fi
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
# Linux module installation subdirectory # Linux module installation subdirectory
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
AC_ARG_WITH([module-dir], AC_ARG_WITH([module-dir],
AC_HELP_STRING( AC_HELP_STRING(
@ -163,9 +163,9 @@ AC_SUBST(INSTALL_MOD_DIR,[$moddir])
AC_MSG_CHECKING([for Linux modules installation directory]) AC_MSG_CHECKING([for Linux modules installation directory])
AC_MSG_RESULT([$INSTALL_MOD_DIR]) AC_MSG_RESULT([$INSTALL_MOD_DIR])
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
# Generic Ethernet driver # Generic Ethernet driver
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
AC_ARG_ENABLE([generic], AC_ARG_ENABLE([generic],
AS_HELP_STRING([--enable-generic], AS_HELP_STRING([--enable-generic],
@ -186,9 +186,9 @@ AC_ARG_ENABLE([generic],
AM_CONDITIONAL(ENABLE_GENERIC, test "x$enablegeneric" = "x1") AM_CONDITIONAL(ENABLE_GENERIC, test "x$enablegeneric" = "x1")
AC_SUBST(ENABLE_GENERIC,[$enablegeneric]) AC_SUBST(ENABLE_GENERIC,[$enablegeneric])
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
# 8139too driver # 8139too driver
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
AC_ARG_ENABLE([8139too], AC_ARG_ENABLE([8139too],
AS_HELP_STRING([--enable-8139too], AS_HELP_STRING([--enable-8139too],
@ -241,9 +241,9 @@ fi
AC_SUBST(KERNEL_8139TOO,[$kernel8139too]) AC_SUBST(KERNEL_8139TOO,[$kernel8139too])
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
# e100 driver # e100 driver
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
AC_ARG_ENABLE([e100], AC_ARG_ENABLE([e100],
AS_HELP_STRING([--enable-e100], AS_HELP_STRING([--enable-e100],
@ -296,9 +296,9 @@ fi
AC_SUBST(KERNEL_E100,[$kernele100]) AC_SUBST(KERNEL_E100,[$kernele100])
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
# e1000 driver # e1000 driver
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
AC_ARG_ENABLE([e1000], AC_ARG_ENABLE([e1000],
AS_HELP_STRING([--enable-e1000], AS_HELP_STRING([--enable-e1000],
@ -351,9 +351,9 @@ fi
AC_SUBST(KERNEL_E1000,[$kernele1000]) AC_SUBST(KERNEL_E1000,[$kernele1000])
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
# e1000e driver # e1000e driver
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
AC_ARG_ENABLE([e1000e], AC_ARG_ENABLE([e1000e],
AS_HELP_STRING([--enable-e1000e], AS_HELP_STRING([--enable-e1000e],
@ -426,9 +426,9 @@ fi
AC_SUBST(KERNEL_E1000E,[$kernele1000e]) AC_SUBST(KERNEL_E1000E,[$kernele1000e])
AC_SUBST(E1000E_LAYOUT, [$e1000elayout]) AC_SUBST(E1000E_LAYOUT, [$e1000elayout])
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
# genet driver # genet driver
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
AC_ARG_ENABLE([genet], AC_ARG_ENABLE([genet],
AS_HELP_STRING([--enable-genet], AS_HELP_STRING([--enable-genet],
@ -474,9 +474,9 @@ fi
AC_SUBST(KERNEL_GENET,[$kernelgenet]) AC_SUBST(KERNEL_GENET,[$kernelgenet])
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
# igb driver # igb driver
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
AC_ARG_ENABLE([igb], AC_ARG_ENABLE([igb],
AS_HELP_STRING([--enable-igb], AS_HELP_STRING([--enable-igb],
@ -521,9 +521,10 @@ if test "x${enableigb}" = "x1"; then
fi fi
AC_SUBST(KERNEL_IGB,[$kerneligb]) AC_SUBST(KERNEL_IGB,[$kerneligb])
#------------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# igc driver # igc driver
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
AC_ARG_ENABLE([igc], AC_ARG_ENABLE([igc],
AS_HELP_STRING([--enable-igc], AS_HELP_STRING([--enable-igc],
@ -568,9 +569,9 @@ fi
AC_SUBST(KERNEL_IGC,[$kerneligc]) AC_SUBST(KERNEL_IGC,[$kerneligc])
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
# r8169 driver # r8169 driver
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
AC_ARG_ENABLE([r8169], AC_ARG_ENABLE([r8169],
AS_HELP_STRING([--enable-r8169], AS_HELP_STRING([--enable-r8169],
@ -632,9 +633,9 @@ fi
AC_SUBST(KERNEL_R8169,[$kernel_r8169]) AC_SUBST(KERNEL_R8169,[$kernel_r8169])
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
# CCAT driver # CCAT driver
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
AC_MSG_CHECKING([whether to build the CCAT driver]) AC_MSG_CHECKING([whether to build the CCAT driver])
@ -663,9 +664,9 @@ fi
AM_CONDITIONAL(ENABLE_CCAT, test "x$enableccat" = "x1") AM_CONDITIONAL(ENABLE_CCAT, test "x$enableccat" = "x1")
AC_SUBST(ENABLE_CCAT,[$enableccat]) AC_SUBST(ENABLE_CCAT,[$enableccat])
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
# RTAI path (optional) # RTAI path (optional)
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
AC_ARG_WITH([rtai-dir], AC_ARG_WITH([rtai-dir],
AC_HELP_STRING( AC_HELP_STRING(
@ -703,9 +704,9 @@ AC_SUBST(ENABLE_RTAI,[$rtai])
AC_SUBST(RTAI_LXRT_CFLAGS,[$rtai_lxrt_cflags]) AC_SUBST(RTAI_LXRT_CFLAGS,[$rtai_lxrt_cflags])
AC_SUBST(RTAI_LXRT_LDFLAGS,[$rtai_lxrt_ldflags]) AC_SUBST(RTAI_LXRT_LDFLAGS,[$rtai_lxrt_ldflags])
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
# Xenomai path (optional) # Xenomai path (optional)
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
AC_ARG_WITH([xenomai-dir], AC_ARG_WITH([xenomai-dir],
AC_HELP_STRING( AC_HELP_STRING(
@ -751,9 +752,9 @@ AC_SUBST(XENOMAI_POSIX_LDFLAGS,[$xeno_posix_ldflags])
AC_SUBST(XENOMAI_RTDM_CFLAGS,[$xeno_rtdm_cflags]) AC_SUBST(XENOMAI_RTDM_CFLAGS,[$xeno_rtdm_cflags])
AC_SUBST(XENOMAI_RTDM_LDFLAGS,[$xeno_rtdm_ldflags]) AC_SUBST(XENOMAI_RTDM_LDFLAGS,[$xeno_rtdm_ldflags])
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
# RTDM interface (optional) # RTDM interface (optional)
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
AC_ARG_ENABLE([rtdm], AC_ARG_ENABLE([rtdm],
AC_HELP_STRING( AC_HELP_STRING(
@ -785,9 +786,9 @@ fi
AM_CONDITIONAL(ENABLE_RTDM, test "x$rtdm" = "x1") AM_CONDITIONAL(ENABLE_RTDM, test "x$rtdm" = "x1")
AC_SUBST(ENABLE_RTDM,[$rtdm]) AC_SUBST(ENABLE_RTDM,[$rtdm])
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
# Debug interface # Debug interface
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
AC_MSG_CHECKING([whether to build the debug interface]) AC_MSG_CHECKING([whether to build the debug interface])
@ -817,9 +818,9 @@ fi
AM_CONDITIONAL(ENABLE_DEBUG_IF, test "x$dbg" = "x1") AM_CONDITIONAL(ENABLE_DEBUG_IF, test "x$dbg" = "x1")
AC_SUBST(ENABLE_DEBUG_IF,[$dbg]) AC_SUBST(ENABLE_DEBUG_IF,[$dbg])
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
# Debug ring # Debug ring
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
AC_MSG_CHECKING([whether to build the debug ring]) AC_MSG_CHECKING([whether to build the debug ring])
@ -846,9 +847,9 @@ else
AC_MSG_RESULT([no]) AC_MSG_RESULT([no])
fi fi
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
# Ethernet over EtherCAT support # Ethernet over EtherCAT support
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
AC_MSG_CHECKING([whether to build with EoE support]) AC_MSG_CHECKING([whether to build with EoE support])
@ -878,9 +879,9 @@ fi
AM_CONDITIONAL(ENABLE_EOE, test "x$eoe" = "x1") AM_CONDITIONAL(ENABLE_EOE, test "x$eoe" = "x1")
AC_SUBST(ENABLE_EOE,[$eoe]) AC_SUBST(ENABLE_EOE,[$eoe])
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
# CPU timestamp counter support # CPU timestamp counter support
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
AC_MSG_CHECKING([whether to use the CPU timestamp counter]) AC_MSG_CHECKING([whether to use the CPU timestamp counter])
@ -907,9 +908,9 @@ else
AC_MSG_RESULT([no]) AC_MSG_RESULT([no])
fi fi
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
# High-resolution timer support # High-resolution timer support
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
AC_MSG_CHECKING([whether to use high-resolution timers for scheduling]) AC_MSG_CHECKING([whether to use high-resolution timers for scheduling])
@ -936,9 +937,9 @@ else
AC_MSG_RESULT([no]) AC_MSG_RESULT([no])
fi fi
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
# Read alias address from register # Read alias address from register
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
AC_MSG_CHECKING([whether to read alias addresses from registers]) AC_MSG_CHECKING([whether to read alias addresses from registers])
@ -965,7 +966,7 @@ else
AC_MSG_RESULT([no]) AC_MSG_RESULT([no])
fi fi
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
# Command-line tool # Command-line tool
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -995,9 +996,9 @@ fi
AM_CONDITIONAL(BUILD_TOOL, test "x$tool" = "x1") AM_CONDITIONAL(BUILD_TOOL, test "x$tool" = "x1")
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
# Userspace library generation # Userspace library generation
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
AC_MSG_CHECKING([whether to build the userspace library]) AC_MSG_CHECKING([whether to build the userspace library])
@ -1025,9 +1026,9 @@ fi
AM_CONDITIONAL(ENABLE_USERLIB, test "x$userlib" = "x1") AM_CONDITIONAL(ENABLE_USERLIB, test "x$userlib" = "x1")
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
# TTY driver # TTY driver
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
AC_MSG_CHECKING([whether to build the tty driver]) AC_MSG_CHECKING([whether to build the tty driver])
@ -1056,9 +1057,9 @@ fi
AM_CONDITIONAL(ENABLE_TTY, test "x$tty" = "x1") AM_CONDITIONAL(ENABLE_TTY, test "x$tty" = "x1")
AC_SUBST(ENABLE_TTY,[$tty]) AC_SUBST(ENABLE_TTY,[$tty])
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
# Slave identification wildcards # Slave identification wildcards
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
AC_MSG_CHECKING([whether to allow identification wildcards]) AC_MSG_CHECKING([whether to allow identification wildcards])
@ -1086,9 +1087,9 @@ else
AC_MSG_RESULT([no]) AC_MSG_RESULT([no])
fi fi
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
# Redundancy (number of devices) # Redundancy (number of devices)
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
AC_ARG_WITH([devices], AC_ARG_WITH([devices],
AC_HELP_STRING( AC_HELP_STRING(
@ -1118,9 +1119,9 @@ fi
AC_DEFINE_UNQUOTED([EC_MAX_NUM_DEVICES], $devices, AC_DEFINE_UNQUOTED([EC_MAX_NUM_DEVICES], $devices,
[Max. number of Ethernet devices per master]) [Max. number of Ethernet devices per master])
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
# SII assignment # SII assignment
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
AC_MSG_CHECKING([whether to assign the SII to PDI]) AC_MSG_CHECKING([whether to assign the SII to PDI])
@ -1147,9 +1148,9 @@ else
AC_MSG_RESULT([no]) AC_MSG_RESULT([no])
fi fi
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
# syslog output in realtime context # syslog output in realtime context
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
AC_MSG_CHECKING([whether to syslog in realtime context]) AC_MSG_CHECKING([whether to syslog in realtime context])
@ -1176,9 +1177,9 @@ else
AC_MSG_RESULT([no]) AC_MSG_RESULT([no])
fi fi
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
# systemd service support # systemd service support
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
AC_ARG_WITH([systemdsystemunitdir], AC_ARG_WITH([systemdsystemunitdir],
AS_HELP_STRING([--with-systemdsystemunitdir=DIR], AS_HELP_STRING([--with-systemdsystemunitdir=DIR],
@ -1205,7 +1206,7 @@ esac
AM_CONDITIONAL(HAVE_SYSTEMD, test "x$with_systemdsystemunitdir" != "x") AM_CONDITIONAL(HAVE_SYSTEMD, test "x$with_systemdsystemunitdir" != "x")
AC_SUBST(systemdsystemunitdir,[$with_systemdsystemunitdir]) AC_SUBST(systemdsystemunitdir,[$with_systemdsystemunitdir])
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------
AC_CONFIG_FILES([ AC_CONFIG_FILES([
Doxyfile Doxyfile
@ -1257,6 +1258,7 @@ AC_CONFIG_FILES([
tty/Kbuild tty/Kbuild
tty/Makefile tty/Makefile
]) ])
AC_OUTPUT AC_OUTPUT
#------------------------------------------------------------------------------ #-----------------------------------------------------------------------------