Skip to content

Commit

Permalink
configure.ac: Identify when compiling on windows.
Browse files Browse the repository at this point in the history
Presence of windows.h will set the WIN32 variable.

Signed-off-by: Gurucharan Shetty <[email protected]>
Acked-by: Ben Pfaff <[email protected]>
  • Loading branch information
shettyg committed Nov 18, 2013
1 parent 954d706 commit db6964b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ AC_SEARCH_LIBS([pthread_sigmask], [pthread])
AC_FUNC_STRERROR_R

OVS_CHECK_ESX
OVS_CHECK_WIN32
OVS_CHECK_COVERAGE
OVS_CHECK_NDEBUG
OVS_CHECK_NETLINK
Expand Down
10 changes: 10 additions & 0 deletions m4/openvswitch.m4
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,16 @@ AC_DEFUN([OVS_CHECK_ESX],
AC_DEFINE([ESX], [1], [Define to 1 if building on ESX.])
fi])

dnl Checks for WINDOWS.
AC_DEFUN([OVS_CHECK_WIN32],
[AC_CHECK_HEADER([windows.h],
[WIN32=yes],
[WIN32=no])
AM_CONDITIONAL([WIN32], [test "$WIN32" = yes])
if test "$WIN32" = yes; then
AC_DEFINE([WIN32], [1], [Define to 1 if building on WIN32.])
fi])

dnl Checks for Netlink support.
AC_DEFUN([OVS_CHECK_NETLINK],
[AC_CHECK_HEADER([linux/netlink.h],
Expand Down

0 comments on commit db6964b

Please sign in to comment.