From bffc02133d96f02f778dd0d44e0a5fa10157aca9 Mon Sep 17 00:00:00 2001 From: peter Date: Sat, 26 Sep 2026 12:16:31 +0000 Subject: Support cross compilation. Include AX_PROG_CC_FOR_BUILD from autoconf-archive, and use CC_FOR_BUILD to build the two generator binaries, even when a different host system is targeted using ./configure --host=... I have not yet tested that the aplwc binary works when built this way. FossilOrigin-Name: 55b2cc92bc6d0a76ac7da97ad35489d435a484d7173348eefe3499fe058e0a69 --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 9b3e9d4..155748d 100644 --- a/configure.ac +++ b/configure.ac @@ -5,8 +5,10 @@ AM_MAINTAINER_MODE([disable]) AC_CONFIG_SRCDIR([src/bin/main.c]) AC_CONFIG_HEADERS([config.h]) +AC_CONFIG_MACRO_DIRS([m4]) AC_PROG_CC +AX_PROG_CC_FOR_BUILD AC_C_FLEXIBLE_ARRAY_MEMBER AC_PROG_RANLIB AM_PROG_AR -- cgit v1.2.3