From: Alviro Iskandar Setiawan <alviro.iskandar@gnuweeb.org>
To: Ammar Faiz <ammarfaizi2@gnuweeb.org>
Cc: Alviro Iskandar Setiawan <alviro.iskandar@gnuweeb.org>,
Ahmad Gani <reyuki@gnuweeb.org>,
GNU/Weeb Mailing List <gwml@vger.gnuweeb.org>
Subject: [PATCH gwproxy v13 8/8] Makefile: Introduce --use-new-dns-resolver configure option
Date: Tue, 30 Sep 2025 15:54:28 +0700 [thread overview]
Message-ID: <20250930085428.717195-9-alviro.iskandar@gnuweeb.org> (raw)
In-Reply-To: <20250930085428.717195-1-alviro.iskandar@gnuweeb.org>
Add a configure option to enable the new DNS resolver feature.
By default it is disabled as it's still experimental.
Signed-off-by: Alviro Iskandar Setiawan <alviro.iskandar@gnuweeb.org>
---
Makefile | 6 ++++++
configure | 8 ++++++++
2 files changed, 14 insertions(+)
diff --git a/Makefile b/Makefile
index 3ac35f0..a2d1e71 100644
--- a/Makefile
+++ b/Makefile
@@ -83,6 +83,12 @@ endif
-include config.make
LIBS=$(LIB_LDFLAGS)
+ifeq ($(CONFIG_NEW_DNS_RESOLVER),y)
+GWPROXY_CC_SOURCES += \
+ $(GWPROXY_DIR)/dns_parser.c \
+ $(GWPROXY_DIR)/dns_resolver.c
+endif
+
ifeq ($(CONFIG_IO_URING),y)
GWPROXY_CC_SOURCES += $(GWPROXY_DIR)/ev/io_uring.c
ALL_GWPROXY_OBJECTS += $(LIBURING_TARGET)
diff --git a/configure b/configure
index 44c49da..6daaeb6 100755
--- a/configure
+++ b/configure
@@ -37,6 +37,9 @@ for opt do
--use-io-uring)
use_io_uring="yes";
;;
+ --use-new-dns-resolver)
+ use_new_dns_resolver="yes";
+ ;;
--sanitize)
use_sanitize="yes";
;;
@@ -88,6 +91,7 @@ Options: [defaults in brackets after descriptions]
--debug Build with debug enabled
--use-io-uring Enable io_uring support (default: no)
--sanitize Enable sanitizers (default: no)
+ --use-new-dns-resolver Use the new DNS resolver feature (default: no)
EOF
exit 0;
fi
@@ -346,6 +350,10 @@ if test "${use_sanitize}" = "yes"; then
CXXFLAGS="${CXXFLAGS} -fsanitize=address -fsanitize=undefined";
fi;
+if test "${use_new_dns_resolver}" = "yes"; then
+ add_config "CONFIG_NEW_DNS_RESOLVER";
+fi;
+
add_config "CONFIG_LINUX";
if test "${use_debug}" = "yes"; then
--
Alviro Iskandar Setiawan
next prev parent reply other threads:[~2025-09-30 8:54 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-30 8:54 [PATCH gwproxy v13 0/8] Initial work on integration of DNS parser lib in gwproxy Alviro Iskandar Setiawan
2025-09-30 8:54 ` [PATCH gwproxy v13 1/8] gwproxy: Remove 'struct gwp_dns_query' declaration Alviro Iskandar Setiawan
2025-09-30 8:54 ` [PATCH gwproxy v13 2/8] gwproxy: Introduce __unused macro Alviro Iskandar Setiawan
2025-09-30 8:54 ` [PATCH gwproxy v13 3/8] Add DNS parser code Alviro Iskandar Setiawan
2025-09-30 8:54 ` [PATCH gwproxy v13 4/8] Add DNS resolver code Alviro Iskandar Setiawan
2025-09-30 8:54 ` [PATCH gwproxy v13 5/8] dns_resolver: Add DNS resolution interface APIs Alviro Iskandar Setiawan
2025-09-30 8:54 ` [PATCH gwproxy v13 6/8] gwproxy: Introduce --dns-server and --raw-dns Alviro Iskandar Setiawan
2025-09-30 8:54 ` [PATCH gwproxy v13 7/8] epoll: Intregrate the raw DNS feature to epoll Alviro Iskandar Setiawan
2025-09-30 8:54 ` Alviro Iskandar Setiawan [this message]
2025-10-02 7:05 ` [PATCH gwproxy v13 0/8] Initial work on integration of DNS parser lib in gwproxy Ammar Faizi
2025-10-02 7:20 ` Alviro Iskandar Setiawan
2025-10-02 8:07 ` Ammar Faizi
2025-10-02 8:19 ` Alviro Iskandar Setiawan
2025-10-26 21:10 ` Ammar Faizi
2025-10-29 16:33 ` Alviro Iskandar Setiawan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250930085428.717195-9-alviro.iskandar@gnuweeb.org \
--to=alviro.iskandar@gnuweeb.org \
--cc=ammarfaizi2@gnuweeb.org \
--cc=gwml@vger.gnuweeb.org \
--cc=reyuki@gnuweeb.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox