nftables: introduce experimental nftables
[openwrt/staging/chunkeey.git] / package / network / utils / nftables / patches / 100-no-interactive.patch
1 --- a/src/Makefile.in
2 +++ b/src/Makefile.in
3 @@ -3,7 +3,6 @@ PROGRAMS += nft
4 nft-destdir := @sbindir@
5
6 nft-obj += main.o
7 -nft-obj += cli.o
8 nft-obj += rule.o
9 nft-obj += statement.o
10 nft-obj += datatype.o
11 --- a/src/main.c
12 +++ b/src/main.c
13 @@ -334,7 +334,7 @@ int main(int argc, char * const *argv)
14 if (scanner_read_file(scanner, filename, &internal_location) < 0)
15 goto out;
16 } else if (interactive) {
17 - cli_init(&state);
18 + fprintf(stderr, "%s: interactive mode not supported\n", argv[0]);
19 return 0;
20 } else {
21 fprintf(stderr, "%s: no command specified\n", argv[0]);
22 --- a/configure.ac
23 +++ b/configure.ac
24 @@ -71,13 +71,11 @@ AC_CHECK_LIB([nftnl], [nft_rule_alloc],
25 AC_CHECK_LIB([gmp], [__gmpz_init], ,
26 AC_MSG_ERROR([No suitable version of libgmp found]))
27
28 -AC_CHECK_LIB([readline], [readline], ,
29 - AC_MSG_ERROR([No suitable version of libreadline found]))
30
31 # Checks for header files.
32 AC_HEADER_STDC
33 AC_HEADER_ASSERT
34 -AC_CHECK_HEADERS([arpa/inet.h fcntl.h inttypes.h libintl.h limits.h malloc.h \
35 +AC_CHECK_HEADERS([arpa/inet.h fcntl.h inttypes.h limits.h malloc.h \
36 netdb.h netinet/in.h netinet/ip.h netinet/ip6.h \
37 netinet/tcp.h netinet/udp.h netinet/ip_icmp.h \
38 stddef.h stdint.h stdlib.h string.h unistd.h], ,