build-sys: make libatasmart easily cross-compilable
authorDiego Elio Pettenò <flameeyes@gmail.com>
Tue, 8 Feb 2011 15:41:18 +0000 (16:41 +0100)
committerDiego Elio Pettenò <flameeyes@gmail.com>
Tue, 8 Feb 2011 15:41:18 +0000 (16:41 +0100)
commit06834930632cc2997f3cea770fa7a8931f3fa5ed
treeaa652041ccde43338539c151f0fe2afd053b07d5
parentb7067704706b6dd72b00d14a17be213a06bea502
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.
.gitignore
Makefile.am
bootstrap.sh
configure.ac
m4/ax_cc_for_build.m4 [new file with mode: 0644]
strpool/Makefile.am [new file with mode: 0644]