René's URL Explorer Experiment


Title: gh-148294: Make configure find g++ correctly by sendaoYan · Pull Request #148298 · python/cpython · GitHub

Open Graph Title: gh-148294: Make configure find g++ correctly by sendaoYan · Pull Request #148298 · python/cpython

X Title: gh-148294: Make configure find g++ correctly by sendaoYan · Pull Request #148298 · python/cpython

Description: Hi all, There is a bug in configure.ac when try to find the c++ compiler. The AC_PATH_TOOL autoconf macro usage should be like below: AC_PATH_TOOL(variable, prog-to-check-for, [value-if-not-found], [path = '$PATH']) Before this PR, AC_PATH_TOOL was invoked with duplicated prog-to-check-for parameter, this will cause the forth parameter [notfound] treated as g++ search path. So configure shell script can not find the g++ through search path notfound. This PR fix the bug in configure.ac. and re-generate configure through autoconf 2.72. After this PR, the configure log snippet shows below: checking for g++... /usr/bin/g++ configure: By default, distutils will build C++ extension modules with "/usr/bin/g++". If this is not intended, then set CXX on the configure command line. This PR do not change the hehavior with native compile. This PR only avoid the annoying configure warning. Before this PR configure select g++ as c++ compiler, after this PR configure select /usr/bin/g++ as the c++ compiler. g++ and /usr/bing++ is the same binary actually on my machine. Fixes incorrect AC_PATH_TOOL usage when detecting the default C++ compiler. A duplicated program argument caused the fallback value (notfound) to be passed as the search path, so prefixed tools were not resolved from $PATH. On native builds this mainly affects configure messaging (g++ vs /usr/bin/g++). On cross-compilation builds (for example, x86_64-w64-mingw32-g++ in a Cygwin/MinGW setup, as reported by @carlo-bramini), it can prevent configure from selecting the correct cross compiler. Issue: gh-159440

Open Graph Description: Hi all, There is a bug in configure.ac when try to find the c++ compiler. The AC_PATH_TOOL autoconf macro usage should be like below: AC_PATH_TOOL(variable, prog-to-check-for, [value-if-not-found],...

X Description: Hi all, There is a bug in configure.ac when try to find the c++ compiler. The AC_PATH_TOOL autoconf macro usage should be like below: AC_PATH_TOOL(variable, prog-to-check-for, [value-if-not-found],...

Opengraph URL: https://github.com/python/cpython/pull/148298

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:9fdd537b-3cb6-5ac4-ee09-970ebb6831c3
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id91FE:26B498:4E15D3:6CFD70:6AFEA43F
html-safe-nonce75fa585f7c681cdac42f8057ae9945166dd27232cd502ae9f5dbd55d70f7dd88
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MUZFOjI2QjQ5ODo0RTE1RDM6NkNGRDcwOjZBRkVBNDNGIiwidmlzaXRvcl9pZCI6IjgwODc2ODc2MTY0ODYzNTE5MzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb2760072e66dfde2ea862ce0fe57281f84a517ebb6c70f3b3e47fd2948ffa902
hovercard-subject-tagpull_request:3508967674
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/148298/files
twitter:imagehttps://avatars.githubusercontent.com/u/24123821?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/24123821?s=400&v=4
og:image:altHi all, There is a bug in configure.ac when try to find the c++ compiler. The AC_PATH_TOOL autoconf macro usage should be like below: AC_PATH_TOOL(variable, prog-to-check-for, [value-if-not-found],...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None95b2753c978240785d6cca00783c00a371b2d7d9879bb32e305170a1b19bd28e
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release3f25273206cd841171bca0002261ae4c9757d934
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/148298/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F148298%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F148298%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/148298/files
Reloadhttps://github.com/python/cpython/pull/148298/files
Reloadhttps://github.com/python/cpython/pull/148298/files
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
zwarehttps://github.com/zware
python:mainhttps://github.com/python/cpython/tree/main
sendaoYan:issue-148294https://github.com/sendaoYan/cpython-ysd/tree/issue-148294
Conversation 19 https://github.com/python/cpython/pull/148298
Commits 6 https://github.com/python/cpython/pull/148298/commits
Checks 60 https://github.com/python/cpython/pull/148298/checks
Files changed https://github.com/python/cpython/pull/148298/files
Please reload this pagehttps://github.com/python/cpython/pull/148298/files
gh-148294: Make configure find g++ correctly https://github.com/python/cpython/pull/148298/files#top
Show all changes 6 commits https://github.com/python/cpython/pull/148298/files
4f8cf05 Make configure found g++ correctly sendaoYan Apr 9, 2026 https://github.com/python/cpython/pull/148298/commits/4f8cf05371f1635c9124b3999f9042e3007dd900
4ebeba6 Merge branch 'main' into issue-148294 sendaoYan Apr 9, 2026 https://github.com/python/cpython/pull/148298/commits/4ebeba6ec948ebc0455ce129498dc9bdefcd22ad
4cf1a8b Merge branch 'python:main' into issue-148294 sendaoYan May 18, 2026 https://github.com/python/cpython/pull/148298/commits/4cf1a8b5080a8a663c0c67e0a6e18d8f7936d79a
f9f7365 Add blurb zware May 21, 2026 https://github.com/python/cpython/pull/148298/commits/f9f736519c99e29b71183c86b6896af1818d4652
24abb04 Merge branch 'main' into issue-148294 zware May 21, 2026 https://github.com/python/cpython/pull/148298/commits/24abb049c1dbaee2d47aea9fba00a2c4ce36a419
ea0aec4 fixup! Add blurb zware May 21, 2026 https://github.com/python/cpython/pull/148298/commits/ea0aec4398c08abdcd83ba1d8918e808176274a4
Clear filters https://github.com/python/cpython/pull/148298/files
Please reload this pagehttps://github.com/python/cpython/pull/148298/files
Please reload this pagehttps://github.com/python/cpython/pull/148298/files
2026-05-21-15-14-59.gh-issue-148294.VtFaW4.rst https://github.com/python/cpython/pull/148298/files#diff-60fe31de6fa7d29e87ef2bb8c474decfb1b38bf6a70517955aa3a076122efc2c
configure https://github.com/python/cpython/pull/148298/files#diff-90d08e583c4c9c6f391b2ae90f819f600a6326928ea9512c9e0c6d98e9f29ac2
configure.ac https://github.com/python/cpython/pull/148298/files#diff-49473dca262eeab3b4a43002adb08b4db31020d190caaad1594b47f1d5daa810
Misc/NEWS.d/next/Build/2026-05-21-15-14-59.gh-issue-148294.VtFaW4.rsthttps://github.com/python/cpython/pull/148298/files#diff-60fe31de6fa7d29e87ef2bb8c474decfb1b38bf6a70517955aa3a076122efc2c
View file https://github.com/sendaoYan/cpython-ysd/blob/ea0aec4398c08abdcd83ba1d8918e808176274a4/Misc/NEWS.d/next/Build/2026-05-21-15-14-59.gh-issue-148294.VtFaW4.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/148298/{{ revealButtonHref }}
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L84
configurehttps://github.com/python/cpython/pull/148298/files#diff-90d08e583c4c9c6f391b2ae90f819f600a6326928ea9512c9e0c6d98e9f29ac2
View file https://github.com/sendaoYan/cpython-ysd/blob/ea0aec4398c08abdcd83ba1d8918e808176274a4/configure
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/python/cpython/pull/148298/files
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L84
configure.achttps://github.com/python/cpython/pull/148298/files#diff-49473dca262eeab3b4a43002adb08b4db31020d190caaad1594b47f1d5daa810
View file https://github.com/sendaoYan/cpython-ysd/blob/ea0aec4398c08abdcd83ba1d8918e808176274a4/configure.ac
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/148298/{{ revealButtonHref }}
https://github.com/python/cpython/pull/148298/files#diff-49473dca262eeab3b4a43002adb08b4db31020d190caaad1594b47f1d5daa810
https://github.com/python/cpython/pull/148298/files#diff-49473dca262eeab3b4a43002adb08b4db31020d190caaad1594b47f1d5daa810
Please reload this pagehttps://github.com/python/cpython/pull/148298/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.