Enable it by default
---
mingw-w64-headers/configure.ac | 29 ++++++++---------------------
1 files changed, 8 insertions(+), 21 deletions(-)
diff --git a/mingw-w64-headers/configure.ac b/mingw-w64-headers/configure.ac
index 4cbcad6..fbf25b8 100644
--- a/mingw-w64-headers/configure.ac
+++ b/mingw-w64-headers/configure.ac
@@ -72,29 +72,16 @@ AC_SUBST([SYSHEAD_LIST])
AC_SUBST([SECHEAD_LIST])
AC_SUBST([SECSYSHEAD_LIST])
-enable_directx=no
-
-AC_MSG_CHECKING([for optional sdk headers])
-AC_ARG_ENABLE([sdk],
- [AS_HELP_STRING([--enable-sdk=ARG],
- [Add the desired SDK, where ARG can be one of ddk, directx or all])],
- [],
- [enable_sdk=no])
-AS_CASE([$enable_sdk],
- [all|yes],[
- enable_sdk="directx"
- enable_directx=yes],
- [directx],[
- enable_directx=yes],
- [no],[],
- [AC_MSG_ERROR([Invalid option: $enable_sdk. Please choose one of ddk,
directx or all.])])
-AC_MSG_RESULT([$enable_sdk])
-
-AS_VAR_IF([enable_directx],[yes],[
+AC_MSG_CHECKING([if directx sdk headers are enabled])
+AC_ARG_ENABLE([directx], [AS_HELP_STRING([--disable-directx],
+ [Disable DirectX SDK headers (default enabled)])])
+test -z "$enable_directx" && enable_directx="yes"
+AC_MSG_RESULT([$enable_directx])
+AS_VAR_IF([enable_directx],[no],[
+ MINGW_HAS_DX=0
+ ],[
DXHEAD_LIST=$srcdir/direct-x/include/*.[[hi]]*
MINGW_HAS_DX=1
- ],[
- MINGW_HAS_DX=0
])
AC_SUBST([DXHEAD_LIST])
AC_SUBST([MINGW_HAS_DX])
--
1.7.8.3
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public