summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorShashank Ram <rams@vmware.com>2018-02-27 11:57:37 -0800
committerAlin Gabriel Serdean <aserdean@ovn.org>2018-03-02 01:02:55 +0200
commitb1db9dd6747cf8962ebcca4fc15dd084728b0f79 (patch)
treea23327559a0b5ed71baea1d0c683549ab37d711d /m4
parent34825d5e83a2941d652ec96da6ceec8382eead24 (diff)
downloadopenvswitch-b1db9dd6747cf8962ebcca4fc15dd084728b0f79.tar.gz
datapath-windows: Support to selectively compile targets
Adds support to selectively compile kernel driver for target versions. This is useful when environments to compile for all targets might not be available on the user's machine, or if the user wants to only compile some targets selectively. Also once appveyor has support to build Win10 targets, we will not pass the "--with-vstudiotargetver" to the configure script. Signed-off-by: Shashank Ram <rams@vmware.com> Acked-by: Anand Kumar <kumaranand@vmware.com> Acked-by: Alin Gabriel Serdean <aserdean@ovn.org> Signed-off-by: Alin Gabriel Serdean <aserdean@ovn.org>
Diffstat (limited to 'm4')
-rw-r--r--m4/openvswitch.m428
1 files changed, 27 insertions, 1 deletions
diff --git a/m4/openvswitch.m4 b/m4/openvswitch.m4
index de4d66ccb..78082d4e0 100644
--- a/m4/openvswitch.m4
+++ b/m4/openvswitch.m4
@@ -173,6 +173,32 @@ AC_ARG_WITH([vstudiotarget],
)
AC_SUBST([VSTUDIO_CONFIG])
+
+AC_ARG_WITH([vstudiotargetver],
+ [AS_HELP_STRING([--with-vstudiotargetver=target_ver1,target_ver2],
+ [Target versions: Win8,Win8.1,Win10])],
+ [
+ targetver=`echo "$withval" | tr -s , ' ' `
+ for ver in $targetver; do
+ case "$ver" in
+ "Win8") VSTUDIO_WIN8=true ;;
+ "Win8.1") VSTUDIO_WIN8_1=true ;;
+ "Win10") VSTUDIO_WIN10=true ;;
+ *) AC_MSG_ERROR([No valid Visual Studio target version found]) ;;
+ esac
+ done
+
+ ], [
+ VSTUDIO_WIN8=true
+ VSTUDIO_WIN8_1=true
+ VSTUDIO_WIN10=true
+ ]
+ )
+
+ AM_CONDITIONAL([VSTUDIO_WIN8], [test -n "$VSTUDIO_WIN8"])
+ AM_CONDITIONAL([VSTUDIO_WIN8_1], [test -n "$VSTUDIO_WIN8_1"])
+ AM_CONDITIONAL([VSTUDIO_WIN10], [test -n "$VSTUDIO_WIN10"])
+
AC_DEFINE([VSTUDIO_DDK], [1], [System uses the Visual Studio build target.])
AM_CONDITIONAL([VSTUDIO_DDK], [test -n "$VSTUDIO_CONFIG"])
])
@@ -573,7 +599,7 @@ TEST_ATOMIC_TYPE(unsigned long long int);
dnl OVS_CHECK_ATOMIC_ALWAYS_LOCK_FREE(SIZE)
dnl
dnl Checks __atomic_always_lock_free(SIZE, 0)
-AC_DEFUN([OVS_CHECK_ATOMIC_ALWAYS_LOCK_FREE],
+AC_DEFUN([OVS_CHECK_ATOMIC_ALWAYS_LOCK_FREE],
[AC_CACHE_CHECK(
[value of __atomic_always_lock_free($1)],
[ovs_cv_atomic_always_lock_free_$1],