From 4bbee2c3b5d208e6cce2f0ad80d8ceb90a7b30a8 Mon Sep 17 00:00:00 2001 From: Hamish Coleman Date: Thu, 22 Jun 2023 10:43:36 +0100 Subject: [PATCH] Use the standard autoconf macros to help with cross-compile --- configure.ac | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/configure.ac b/configure.ac index 997c378..93da2a2 100644 --- a/configure.ac +++ b/configure.ac @@ -4,19 +4,11 @@ dnl> Do not add anything above AC_DEFINE([PACKAGE_BUILDDATE], "[m4_esyscmd([scripts/version.sh date | tr -d '\n'])]", [Last change date]) -if test "${CC+set}" != set; then - CC=gcc -fi -if test "${AR+set}" != set; then - AR=ar -fi -if test "${WINDRES+set}" != set; then - WINDRES=windres -fi - N2N_LIBS_EXTRA= AC_PROG_CC +AC_CHECK_TOOL([AR], [ar], [false]) +AC_CHECK_TOOL([WINDRES], [windres], [false]) # TODO: ideally, should use AC_ARG_ENABLE AC_ARG_WITH([edgex],