Skip to content

Commit

Permalink
Dedicated file for Windows-specific checks
Browse files Browse the repository at this point in the history
  • Loading branch information
roothorick committed Oct 25, 2013
1 parent 04be5f6 commit e6056a5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions autoconf/m4/windows.m4
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
AC_DEFUN([SM_WINDOWS],
[
# Go for the default install path if $WINSDK_PATH is unset
dnl if test -z $WINSDK_PATH; then
dnl AC_MSG_WARN(WINSDK_PATH not set. Assuming defaults.)
dnl WINSDK_PATH="C:/Program Files/Microsoft SDKs/Windows/v7.1"
dnl fi
AM_CPPFLAGS="-I$WINSDK_PATH/Include $AM_CPPFLAGS"
AM_LDFLAGS="-I$WINSDK_PATH/Lib $AM_LDFLAGS"
AC_CHECK_HEADER(windows.h, , AC_MSG_ERROR(Windows SDK not found.))
dnl _WIN32_WINNT 0x503 = Windows XP SP3
AC_CHECK_DECL(PBS_MARQUEE, , [AC_MSG_ERROR(w32api headers too old. This is usually caused by trying to use old (official) MinGW instead of MinGW-W64.)], [#include <windows.h>
#include <CommCtrl.h>])
])

0 comments on commit e6056a5

Please sign in to comment.