diff options
author | Diego Elio Pettenò <flameeyes@gmail.com> | 2011-02-08 16:41:18 +0100 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gmail.com> | 2011-02-08 16:41:18 +0100 |
commit | 06834930632cc2997f3cea770fa7a8931f3fa5ed (patch) | |
tree | aa652041ccde43338539c151f0fe2afd053b07d5 /configure.ac | |
parent | b7067704706b6dd72b00d14a17be213a06bea502 (diff) |
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.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 2 insertions, 0 deletions
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 |