delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/12/25/07:41:26

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 5BPCfQ1k717294
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 5BPCfQ1k717294
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=X4fPnHC2
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BF3B94BA2E35
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1766666484;
bh=dvGnpn1iIKY8dr186nyK30YwOgMsS6KGJnXMGCg3XbM=;
h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=X4fPnHC2RdZOAqrcawiaY10LcD70vB1UStRSnPX5rw5UJ919af1emkYalFM35Ab98
xBMq74aNhiNcR4rpf0TgcTCpYyzqFCyUxqV5ZW42YzhFJVtnOBBG8IsvbRbi0Uxz45
o5cxYGY9JaQ9UuDQE5x4NEi1UpwZsCiXLCmdNQHA=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5EBF44BA2E05
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 5EBF44BA2E05
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1766666434; cv=none;
b=xq9eAJmCXdYcAmyubP/hCS36d9QhD8ctPf5Og8u6v0cXXwMskUL5+1n68PFlSDogAI9M7MBQqlIQ3OOsuhnZXop1MzWIFNvR2l3wYuRk65xC4P9X61vBc8j9CIzjHYgkNrGzqb8c4Ke4G4oOvWfXgrnYLuPH610qcdZAMAmVVHY=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1766666434; c=relaxed/simple;
bh=ZE5xyME+818nmKai3PAdWjoCfb5sNJQT6ABv1jE1pHQ=;
h=DKIM-Signature:Message-ID:Date:MIME-Version:To:From:Subject;
b=Ir6jlRgLDWvCHFL25pwQIqxatzsKT0MET1rzAL3xYxjx/djWzFag+D0Lvs2Fb6UMWUQOAGKJ9y23cO1zu51ZWPYzgHY9uJ/Qr85N9bmneyxYVaCxRPtDkKoeuDJ9ESoukkTy37nvsrL1+Dz7r/YdHFx34uhSgfbi4bTjfaANuyU=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5EBF44BA2E05
X-KPN-MessageId: 478e05ed-e18f-11f0-9c78-005056ab378f
X-KPN-MID: 33|Pm1X0GKW+LRB9zYYnDoGW77y3cAiHA4sFVLeALHmkPpqf4Ukpn6ZGku5R6P1Ncw
aYDmhOs80QdC9HevbjRZRwPJ1nHoMnS7w4GqTjgHi8PI=
X-KPN-VerifiedSender: Yes
X-CMASSUN: 33|uz1+O17djF/BkwnvwDtGziIx+ffkj8BKtSFxOuaCYfjD4AyNDFKzfMw96VtKI1S
Z9ZY+8PCSkqGDvFWbOTeyXw==
X-Originating-IP: 77.173.35.122
Message-ID: <668bc7a3-c8f2-4bae-b8fc-9bb25aaa71e6@xs4all.nl>
Date: Thu, 25 Dec 2025 13:40:32 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
To: cygwin AT cygwin DOT com
Subject: winsup/configure.ac needs some TLC ...
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: "J.H. vd Water via Cygwin" <cygwin AT cygwin DOT com>
Reply-To: "J.H. vd Water" <dhr-incognito AT xs4all DOT nl>
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>

Hi,

I think winsup/configure.ac needs some TLC ...

Yes, you can specify "--without-cross-bootstrap" in order to skip building
with the MinGW toolchain, but only after the relevant macro and subsequent
test have been modified, as follows: (proof follows testfile)

Testfile: relevant part of winsup/configure.ac

AC_INIT([myproject], [123], [flameeyes AT flameeyes DOT com], [https://autotools.io/])

# Useful for bootstrapping a cross-compiler: specify --without-cross-bootstrap in order
# to NOT check for MinGW libraries (a relevant comment to be added to this file?)

# winsup/configure.ac around line 43:

AC_ARG_WITH([cross_bootstrap],
  [AS_HELP_STRING([--with-cross-bootstrap],
    [ hunt for the MinGW Toolchain ...])], # [a]
  [],
  [with_cross_bootstrap=yes]) # <==== default if no switch is specified (modified from no to yes)

# [a] to be replaced by
# [build programs using the MinGW toolchain ...])],
# OR:
# [specify --without-cross-bootstrap in order to skip building with the MinGW toolchain ...)])],
# OR:
# ... whatever you think is appropriate ...

# --with-FOO      => with_ := yes       do hunt for the mingw tools
# --with-FOO=yes  => with_ := yes       do hunt for the mingw tools
# --without-FOO   => with_ := no        do NOT hunt for the mingw tools
# --with-FOO=no   => with_ := no        do NOT hunt for the mingw tools
# --with-FOO=none => with_ := none      do hunt for the mingw tools (none = anything else than yes or no)
echo $with_cross_bootstrap

# winsup/configure.ac around line 135:

# Note: the present test is inadequate ... <==== modified test!
if test "x$with_cross_bootstrap" == "xyes" ||
   test "x$with_cross_bootstrap" != "xno"; then
  echo "... Hunt for the mingw tools"  echo "... Hunt for the mingw tools"
fi

echo "Hi"
# eof

R. Henri

Proof:

@@ rm -fr autom4te.cache configure
@@ autoconf

@@ ./configure
yes
... Hunt for the MinGW Toolchain.
Hi
@@ ./configure --without-cross-bootstrap <====
no
Hi
@@ ./configure --with-cross-bootstrap
yes
... Hunt for the MinGW Toolchain.
Hi

Argument provided to the --with-FOO switch:

@@ ./configure --with-cross-bootstrap=yes
yes
... Hunt for the MinGW Toolchain.
Hi
@@ ./configure --with-cross-bootstrap=no
no
Hi
@@ ./configure --with-cross-bootstrap=none
none
... Hunt for the MinGW Toolchain.
Hi

However:
As expected: only the --with-FOO switch accepts an argument

@@ ./configure --without-cross-bootstrap=yes
configure: error: invalid package name: cross-bootstrap=yes
# abort! (retval == 1)
@@ ./configure --without-cross-bootstrap=no
configure: error: invalid package name: cross-bootstrap=no
# abort! (retval == 1)
@@

=====

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019