Skip to content

Commit

Permalink
chore(build): configure: lack of iptables, ebtables, ipset not fatal
Browse files Browse the repository at this point in the history
  • Loading branch information
erig0 committed Feb 24, 2021
1 parent 04548b4 commit 3337c9a
Showing 1 changed file with 7 additions and 28 deletions.
35 changes: 7 additions & 28 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -96,70 +96,49 @@ AC_ARG_WITH([iptables],
AS_HELP_STRING([--with-iptables], [Path to iptables executable]),
[IPTABLES=$withval
AC_MSG_NOTICE([Using for iptables: $IPTABLES])],
[AC_PATH_PROG([IPTABLES], [iptables], [], [$FW_TOOLS_PATH])])
if test "x$IPTABLES" = "x"; then
AC_MSG_ERROR([iptables was not found in $FW_TOOLS_PATH])
fi
[AC_PATH_PROG([IPTABLES], [iptables], [/bin/false], [$FW_TOOLS_PATH])])
AC_SUBST(IPTABLES)

AC_ARG_WITH([iptables-restore],
AS_HELP_STRING([--with-iptables-restore], [Path to iptables-restore executable]),
[IPTABLES_RESTORE=$withval
AC_MSG_NOTICE([Using for iptables-restore: $IPTABLES_RESTORE])],
[AC_PATH_PROG([IPTABLES_RESTORE], [iptables-restore], [], [$FW_TOOLS_PATH])])
if test "x$IPTABLES_RESTORE" = "x"; then
AC_MSG_ERROR([iptables-restore was not found in $FW_TOOLS_PATH])
fi
[AC_PATH_PROG([IPTABLES_RESTORE], [iptables-restore], [/bin/false], [$FW_TOOLS_PATH])])
AC_SUBST(IPTABLES_RESTORE)

AC_ARG_WITH([ip6tables],
AS_HELP_STRING([--with-ip6tables], [Path to ip6tables executable]),
[IP6TABLES=$withval
AC_MSG_NOTICE([Using for ip6tables: $IP6TABLES])],
[AC_PATH_PROG([IP6TABLES], [ip6tables], [], [$FW_TOOLS_PATH])])
if test "x$IP6TABLES" = "x"; then
AC_MSG_ERROR([ip6tables was not found in $FW_TOOLS_PATH])
fi
[AC_PATH_PROG([IP6TABLES], [ip6tables], [/bin/false], [$FW_TOOLS_PATH])])
AC_SUBST(IP6TABLES)

AC_ARG_WITH([ip6tables-restore],
AS_HELP_STRING([--with-ip6tables-restore], [Path to ip6tables-restore executable]),
[IP6TABLES_RESTORE=$withval
AC_MSG_NOTICE([Using for ip6tables-restore: $IP6TABLES_RESTORE])],
[AC_PATH_PROG([IP6TABLES_RESTORE], [ip6tables-restore], [], [$FW_TOOLS_PATH])])
if test "x$IP6TABLES_RESTORE" = "x"; then
AC_MSG_ERROR([ip6tables-restore was not found in $FW_TOOLS_PATH])
fi
[AC_PATH_PROG([IP6TABLES_RESTORE], [ip6tables-restore], [/bin/false], [$FW_TOOLS_PATH])])
AC_SUBST(IP6TABLES_RESTORE)

AC_ARG_WITH([ebtables],
AS_HELP_STRING([--with-ebtables], [Path to ebtables executable]),
[EBTABLES=$withval
AC_MSG_NOTICE([Using for ebtables: $EBTABLES])],
[AC_PATH_PROG([EBTABLES], [ebtables], [], [$FW_TOOLS_PATH])])
if test "x$EBTABLES" = "x"; then
AC_MSG_ERROR([ebtables was not found in $FW_TOOLS_PATH])
fi
[AC_PATH_PROG([EBTABLES], [ebtables], [/bin/false], [$FW_TOOLS_PATH])])
AC_SUBST(EBTABLES)

AC_ARG_WITH([ebtables-restore],
AS_HELP_STRING([--with-ebtables-restore], [Path to ebtables-restore executable]),
[EBTABLES_RESTORE=$withval
AC_MSG_NOTICE([Using for ebtables-restore: $EBTABLES_RESTORE])],
[AC_PATH_PROG([EBTABLES_RESTORE], [ebtables-restore], [], [$FW_TOOLS_PATH])])
if test "x$EBTABLES_RESTORE" = "x"; then
AC_MSG_ERROR([ebtables-restore was not found in $FW_TOOLS_PATH])
fi
[AC_PATH_PROG([EBTABLES_RESTORE], [ebtables-restore], [/bin/false], [$FW_TOOLS_PATH])])
AC_SUBST(EBTABLES_RESTORE)

AC_ARG_WITH([ipset],
AS_HELP_STRING([--with-ipset], [Path to ipset executable]),
[IPSET=$withval
AC_MSG_NOTICE([Using for ipset: $IPSET])],
[AC_PATH_PROG([IPSET], [ipset], [], [$FW_TOOLS_PATH])])
if test "x$IPSET" = "x"; then
AC_MSG_ERROR([ipset was not found in $FW_TOOLS_PATH])
fi
[AC_PATH_PROG([IPSET], [ipset], [/bin/false], [$FW_TOOLS_PATH])])
AC_SUBST(IPSET)

#############################################################
Expand Down

0 comments on commit 3337c9a

Please sign in to comment.