windows: Add default value for VSTUDIO_CONFIG
VSTUDIO_CONFIG is used when generating the windows installer.
If the parameter passed to configure `--with-vstudiotarget` is not specified
to configure we default it to `Default`.
Fixes bug: vstudiotarget/vstudiotargetver should be available only on Windows.
Acked-by: Ilya Maximets
@@ -146,6 +146,7 @@ dnl OVS_CHECK_WINDOWS
dnl
dnl Configure Visual Studio solution build
AC_DEFUN([OVS_CHECK_VISUAL_STUDIO_DDK], [
+if test "$WIN32" = yes; then
AC_ARG_WITH([vstudiotarget],
[AS_HELP_STRING([--with-vstudiotarget=target_type],
[Target type: Debug/Release])],
@@ -158,7 +159,7 @@ AC_ARG_WITH([vstudiotarget],
VSTUDIO_CONFIG=$withval
], [
- VSTUDIO_CONFIG=
+ VSTUDIO_CONFIG="Debug"
]
)
@@ -184,12 +185,11 @@ AC_ARG_WITH([vstudiotargetver],
VSTUDIO_WIN10=true
]
)
-
+ AC_DEFINE([VSTUDIO_DDK], [1], [System uses the Visual Studio build target.])
+fi
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"])
])
