aboutsummaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-05-14 16:14:35 +0000
committerYang Tse <yangsita@gmail.com>2008-05-14 16:14:35 +0000
commit5e06ec8409cc0811b047008da3556eb9b3e13021 (patch)
tree4accbcaa004e34ed4d242716d6e435c3d78762e6 /acinclude.m4
parent04d0a84ae5bba155bb32d16c48d9dd6906182289 (diff)
skip checks for Windows specific header files
when build target is not a native Windows one
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m470
1 files changed, 35 insertions, 35 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 7c98371a7..a9ace2041 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -59,6 +59,41 @@ AC_DEFUN([CURL_CHECK_HEADER_WINDOWS], [
])
+dnl CURL_CHECK_NATIVE_WINDOWS
+dnl -------------------------------------------------
+dnl Check if building a native Windows target
+
+AC_DEFUN([CURL_CHECK_NATIVE_WINDOWS], [
+ AC_REQUIRE([CURL_CHECK_HEADER_WINDOWS])dnl
+ AC_CACHE_CHECK([whether build target is a native Windows one], [ac_cv_native_windows], [
+ if test "$ac_cv_header_windows_h" = "no"; then
+ ac_cv_native_windows="no"
+ else
+ AC_COMPILE_IFELSE([
+ AC_LANG_PROGRAM([
+ ],[
+#ifdef __MINGW32__
+ int dummy=1;
+#else
+ Not a native Windows build target.
+#endif
+ ])
+ ],[
+ ac_cv_native_windows="yes"
+ ],[
+ ac_cv_native_windows="no"
+ ])
+ fi
+ ])
+ case "$ac_cv_native_windows" in
+ yes)
+ AC_DEFINE_UNQUOTED(NATIVE_WINDOWS, 1,
+ [Define to 1 if you are building a native Windows target.])
+ ;;
+ esac
+])
+
+
dnl CURL_CHECK_HEADER_WINSOCK
dnl -------------------------------------------------
dnl Check for compilable and valid winsock.h header
@@ -2575,41 +2610,6 @@ AC_DEFUN([CURL_CHECK_VARIADIC_MACROS], [
])
-dnl CURL_CHECK_NATIVE_WINDOWS
-dnl -------------------------------------------------
-dnl Check if building a native Windows target
-
-AC_DEFUN([CURL_CHECK_NATIVE_WINDOWS], [
- AC_REQUIRE([CURL_CHECK_HEADER_WINDOWS])dnl
- AC_CACHE_CHECK([whether build target is a native Windows one], [ac_cv_native_windows], [
- if test "$ac_cv_header_windows_h" = "no"; then
- ac_cv_native_windows="no"
- else
- AC_COMPILE_IFELSE([
- AC_LANG_PROGRAM([
- ],[
-#ifdef __MINGW32__
- int dummy=1;
-#else
- Not a native Windows build target.
-#endif
- ])
- ],[
- ac_cv_native_windows="yes"
- ],[
- ac_cv_native_windows="no"
- ])
- fi
- ])
- case "$ac_cv_native_windows" in
- yes)
- AC_DEFINE_UNQUOTED(NATIVE_WINDOWS, 1,
- [Define to 1 if you are building a native Windows target.])
- ;;
- esac
-])
-
-
dnl CURL_CHECK_CA_BUNDLE
dnl -------------------------------------------------
dnl Check if a default ca-bundle should be used