Skip GPL-only symbols test when cross-compiling

This test depends on being able to execute the resulting binary
which will be impossible when cross-compiling.  Instead make a
worst case assumption which allows the build to continue as
recommended by the autoconf manual.

https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Runtime.html

Signed-off-by: Kamil Domański <kamil@domanski.co>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: tuxoko <tuxoko@gmail.com>
Closes zfsonlinux/spl#507
Closes zfsonlinux/zfs#4075
This commit is contained in:
Kamil Domański 2015-12-10 11:14:08 +01:00 committed by Brian Behlendorf
parent 0da84d1574
commit 61bbbd9a77

View File

@ -683,6 +683,7 @@ AC_DEFUN([SPL_AC_TEST_MODULE],
AC_DEFINE([SPL_IS_GPL_COMPATIBLE], [1], AC_DEFINE([SPL_IS_GPL_COMPATIBLE], [1],
[Define to 1 if GPL-only symbols can be used]) [Define to 1 if GPL-only symbols can be used])
], [ ], [
], [
]) ])
]) ])