Skip GPL-only symbols test when cross-compiling
Signed-off-by: Kamil Domański <kamil@domanski.co> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes zfsonlinux/spl#507 Closes zfsonlinux/zfs#4075
This commit is contained in:
parent
cb877e0ff2
commit
e0ed96fa43
@ -673,16 +673,19 @@ AC_DEFUN([SPL_AC_TEST_MODULE],
|
|||||||
fi
|
fi
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_RUN_IFELSE([
|
AS_IF([test "x$cross_compiling" != xyes], [
|
||||||
AC_LANG_PROGRAM([
|
AC_RUN_IFELSE([
|
||||||
#include "$LINUX/include/linux/license.h"
|
AC_LANG_PROGRAM([
|
||||||
|
#include "$LINUX/include/linux/license.h"
|
||||||
|
], [
|
||||||
|
return !license_is_gpl_compatible(
|
||||||
|
"$SPL_META_LICENSE");
|
||||||
|
])
|
||||||
|
], [
|
||||||
|
AC_DEFINE([SPL_IS_GPL_COMPATIBLE], [1],
|
||||||
|
[Define to 1 if GPL-only symbols can be used])
|
||||||
], [
|
], [
|
||||||
return !license_is_gpl_compatible("$SPL_META_LICENSE");
|
|
||||||
])
|
])
|
||||||
], [
|
|
||||||
AC_DEFINE([SPL_IS_GPL_COMPATIBLE], [1],
|
|
||||||
[Define to 1 if GPL-only symbols can be used])
|
|
||||||
], [
|
|
||||||
])
|
])
|
||||||
])
|
])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user