From ff6fc1f8dd8c8454f18e84fd093f7d0c227d329b Mon Sep 17 00:00:00 2001 From: Darshit Shah Date: Sat, 15 Nov 2014 00:15:37 +0530 Subject: [PATCH] Add a configure option to disable assertions Adds a --disable-assert configure option. We **highly recommend** the use of this option by distro maintainers so as to ensure a smooth experience with Wget. Sometimes an assertion may fail even though Wget continues to work perfectly. In such scenarios, we do not wish for client installations of Wget to crash. Hence, for a stable experience, please use the --disable-assert configure flag. --- ChangeLog | 3 +++ NEWS | 2 ++ configure.ac | 7 +++++++ 3 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index e9595f7b..c5f2106f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2014-11-15 Darshit Shah + * configure.ac: Add AC_HEADER_ASSERT. Enables --disable-assert option + 2014-11-05 Tim Ruehsen * configure.ac: check for python3 diff --git a/NEWS b/NEWS index 547d4e01..21905ef5 100644 --- a/NEWS +++ b/NEWS @@ -9,6 +9,8 @@ Please send GNU Wget bug reports to . * Changes in Wget X.Y.Z +** Add --disable-assert configure option. Recommended for distro maintainers. + ** Use pkg-config to check for libraries presence. diff --git a/configure.ac b/configure.ac index 70284812..298aede3 100644 --- a/configure.ac +++ b/configure.ac @@ -57,6 +57,13 @@ AC_CANONICAL_HOST AC_DEFINE_UNQUOTED([OS_TYPE], "$host_os", [Define to be the name of the operating system.]) +dnl +dnl Add option to disable Assertions +dnl +dnl Adds a --disable-assert option to ./configure which can be used by distro +dnl maintainers to compile without assertions. +AC_HEADER_ASSERT + dnl dnl Process features. dnl