From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from elaine.keithp.com (home.keithp.com [63.227.221.253]) by sourceware.org (Postfix) with ESMTPS id 689B43896816; Mon, 7 Dec 2020 18:39:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 689B43896816 Received: from localhost (localhost [127.0.0.1]) by elaine.keithp.com (Postfix) with ESMTP id EEFA73F2E1FE; Mon, 7 Dec 2020 10:39:30 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at keithp.com Received: from elaine.keithp.com ([127.0.0.1]) by localhost (elaine.keithp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id UL2qyqPFwwiz; Mon, 7 Dec 2020 10:39:30 -0800 (PST) Received: from keithp.com (koto.keithp.com [10.0.0.2]) by elaine.keithp.com (Postfix) with ESMTPSA id 9D26C3F2E1F1; Mon, 7 Dec 2020 10:39:30 -0800 (PST) Received: by keithp.com (Postfix, from userid 1000) id 6DA711582188; Mon, 7 Dec 2020 10:39:30 -0800 (PST) From: Keith Packard To: libstdc++@gcc.gnu.org Cc: gcc@gcc.gnu.org, Keith Packard Subject: [PATCH 2/2] Regenerate libstdc++-v3 autoconf files Date: Mon, 7 Dec 2020 10:39:27 -0800 Message-Id: <20201207183927.3275768-3-keithp@keithp.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201207183927.3275768-1-keithp@keithp.com> References: <20201207183927.3275768-1-keithp@keithp.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-10.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libstdc++@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++ mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Dec 2020 18:39:33 -0000 These are the changes to autoconf files for the pure-stdio patch Signed-off-by: Keith Packard --- libstdc++-v3/config.h.in | 3 +++ libstdc++-v3/configure | 23 +++++++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/libstdc++-v3/config.h.in b/libstdc++-v3/config.h.in index 72faabfb2c1..76b1c97d2b5 100644 --- a/libstdc++-v3/config.h.in +++ b/libstdc++-v3/config.h.in @@ -1022,6 +1022,9 @@ /* Define if POSIX read/write locks are available in . */ #undef _GLIBCXX_USE_PTHREAD_RWLOCK_T +/* Define to restrict code to stdio APIs. */ +#undef _GLIBCXX_USE_PURE_STDIO + /* Define if /dev/random and /dev/urandom are available for the random_device of TR1 (Chapter 5.1). */ #undef _GLIBCXX_USE_RANDOM_TR1 diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure index d128de2f186..5647c986831 100755 --- a/libstdc++-v3/configure +++ b/libstdc++-v3/configure @@ -929,6 +929,7 @@ enable_extern_template with_python_dir enable_werror enable_vtable_verify +enable_libstdcxx_pure_stdio enable_libstdcxx_time enable_tls enable_rpath @@ -1632,6 +1633,8 @@ Optional Features: enable extern template [default=yes] --enable-werror turns on -Werror [default=no] --enable-vtable-verify enable vtable verify [default=no] + --enable-libstdcxx-pure-stdio + use only stdio APIs [default=] --enable-libstdcxx-time[=KIND] use KIND for check type [default=auto] --enable-tls Use thread-local storage [default=yes] @@ -18807,6 +18810,26 @@ fi + # Check whether --enable-libstdcxx-pure-stdio was given. +if test "${enable_libstdcxx_pure_stdio+set}" = set; then : + enableval=$enable_libstdcxx_pure_stdio; + case "$enableval" in + yes|no) ;; + *) as_fn_error $? "Argument to enable/disable libstdcxx-pure-stdio must be yes or no" "$LINENO" 5 ;; + esac + +else + enable_libstdcxx_pure_stdio= +fi + + + if test $enable_libstdcxx_pure_stdio = yes; then + +$as_echo "#define _GLIBCXX_USE_PURE_STDIO 1" >>confdefs.h + + fi + + # Checks for operating systems support that doesn't require linking. -- 2.29.2