[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH v2] build/ac-macros/macosx.m4: workaround AC_RUN_IFELSE

From: Fabrice Fontaine <fontaine.fabrice_at_gmail.com>
Date: Sun, 30 Aug 2020 17:24:26 +0200

The SVN_LIB_MACHO_ITERATE macro contains an AC_RUN_IFELSE test that
doesn't work when cross-compiling. However, this macro is related to
testing Mac OS X APIs, so in the context of Buildroot, we don't care,
and the test program is not even going to build. So we simply
workaround this by setting the action-if-cross-compiling to :.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni_at_bootlin.com>
[Retrieved (and slightly updated following the suggestion of Nathan
Hartman) from:
https://git.buildroot.net/buildroot/tree/package/subversion/0002-workaround-ac-run-ifelse.patch]
Signed-off-by: Fabrice Fontaine <fontaine.fabrice_at_gmail.com>

---
Changes v1 -> v2 (after review of Nathan Hartamn):
 - Set action-if-cross-compiling instead of replacing AC_RUN_IFELSE by
   AC_COMPILE_IFELSE
 build/ac-macros/macosx.m4 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/build/ac-macros/macosx.m4 b/build/ac-macros/macosx.m4
index 92fa58e0bc..1f2aac5370 100644
--- a/build/ac-macros/macosx.m4
+++ b/build/ac-macros/macosx.m4
@@ -38,7 +38,7 @@ AC_DEFUN(SVN_LIB_MACHO_ITERATE,
     AC_MSG_RESULT([yes])
   ],[
     AC_MSG_RESULT([no])
-  ])
+  ],[:])
 ])
 
 dnl SVN_LIB_MACOS_PLIST
-- 
2.28.0
Received on 2020-08-30 17:31:03 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.