From 06834930632cc2997f3cea770fa7a8931f3fa5ed Mon Sep 17 00:00:00 2001 From: Diego Elio Pettenò Date: Tue, 8 Feb 2011 16:41:18 +0100 Subject: build-sys: make libatasmart easily cross-compilable Pick up the AX_CC_FOR_BUILD macro from autoconf-archive (improved, going to be sent there soon), then use that one to find the host's compiler. Build the strpool in a different directory, since you cannot override CC and other variables on a per-target basis yet. While this adds recursivity to the build system is the best hope you have to properly solve the cross-compilation. Update .gitignore accordingly to the above changes, and make sure bootstrap.sh search macro files in the m4 directory. --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 3573326..1cc5d6b 100644 --- a/configure.ac +++ b/configure.ac @@ -48,6 +48,7 @@ fi AC_PROG_CC AM_PROG_CC_C_O AC_PROG_GCC_TRADITIONAL +AX_CC_FOR_BUILD AC_USE_SYSTEM_EXTENSIONS # C++ @@ -123,6 +124,7 @@ PKG_CHECK_MODULES([LIBUDEV], [libudev >= 143]) AC_CONFIG_FILES([ Makefile +strpool/Makefile libatasmart.pc ]) AC_OUTPUT -- cgit