Skip to contentSkip to conversation

Replace obsolete AC_CANONICAL_SYSTEM macro

PATCH Applied [email protected] 2 participants 2 messages Aug 22, 2025

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Replace obsolete AC_CANONICAL_SYSTEM macro

From: wang <[email protected]>

The macro AC_CANONICAL_SYSTEM is obsolete and triggers warnings in modern autoconf.
This patch replaces it with the recommended macros to silence these warnings.

---

Patch v2:
- Using AC_CANONICAL_TARGET is enough. Delete AC_CANONICAL_BUILD and AC_CANONICAL_HOST.

---

Changes in v2:
- Fold in previous discussion from:
https://lore.kernel.org/xenomai/[email protected]/T/#t

---
 config/ac_prog_cc_for_build.m4 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
config/ac_prog_cc_for_build.m4 +1 -1
index 8cba24927..731de2b22 100644
@@ -5,7 +5,7 @@ AC_DEFUN([AC_PROG_CC_FOR_BUILD], [dnl
 AC_REQUIRE([AC_PROG_CC])dnl
 AC_REQUIRE([AC_PROG_CPP])dnl
 AC_REQUIRE([AC_EXEEXT])dnl
-AC_REQUIRE([AC_CANONICAL_SYSTEM])dnl
+AC_REQUIRE([AC_CANONICAL_TARGET])dnl
 dnl
 pushdef([AC_TRY_COMPILER], [
 cat > conftest.$ac_ext << EOF
Signature · 1 line
2.34.1
Applied
#1 lore raw
Quoted 28 lines · On 22.08.25 06:20, [email protected] wrote:

From: wang <[email protected]>

The macro AC_CANONICAL_SYSTEM is obsolete and triggers warnings in modern autoconf.
This patch replaces it with the recommended macros to silence these warnings.

---

Patch v2:
- Using AC_CANONICAL_TARGET is enough. Delete AC_CANONICAL_BUILD and AC_CANONICAL_HOST.

---

Changes in v2:
- Fold in previous discussion from:
https://lore.kernel.org/xenomai/[email protected]/T/#t

---
 config/ac_prog_cc_for_build.m4 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
config/ac_prog_cc_for_build.m4 +0 -0
index 8cba24927..731de2b22 100644

config/ac_prog_cc_for_build.m4 AC_DEFUN([AC_PROG_CC_FOR_BUILD], [dnl · line 11

Quoted 8 lines
config/ac_prog_cc_for_build.m4 +1 -1
@@ -5,7 +5,7 @@ AC_DEFUN([AC_PROG_CC_FOR_BUILD], [dnl
 AC_REQUIRE([AC_PROG_CC])dnl
 AC_REQUIRE([AC_PROG_CPP])dnl
 AC_REQUIRE([AC_EXEEXT])dnl
-AC_REQUIRE([AC_CANONICAL_SYSTEM])dnl
+AC_REQUIRE([AC_CANONICAL_TARGET])dnl
 dnl
 pushdef([AC_TRY_COMPILER], [
 cat > conftest.$ac_ext << EOF

Thanks, applied.

Jan

Signature · 2 lines
Siemens AG, Foundational Technologies
Linux Expert Center