]> git.saurik.com Git - wxWidgets.git/blobdiff - acinclude.m4
applied patch #933086: "scrollbar stops compilation due to missing header"
[wxWidgets.git] / acinclude.m4
index 5402dd104d03aefb403a62ebe238085bb472d180..81c6f2b474b2908b1239038315e711c25b5d6170 100644 (file)
@@ -88,11 +88,14 @@ dnl WX_CPP_NEW_HEADERS checks whether the compiler has "new" <iostream> header
 dnl or only the old <iostream.h> one - it may be generally assumed that if
 dnl <iostream> exists, the other "new" headers (without .h) exist too.
 dnl
-dnl call WX_CPP_NEW_HEADERS(actiof-if-true, action-if-false)
+dnl call WX_CPP_NEW_HEADERS(actiof-if-true, action-if-false-or-cross-compiling)
 dnl ---------------------------------------------------------------------------
 
 AC_DEFUN([WX_CPP_NEW_HEADERS],
 [
+  if test "$cross_compiling" = "yes"; then
+    ifelse([$2], , :, [$2])
+  else
     AC_LANG_SAVE
     AC_LANG_CPLUSPLUS
 
@@ -105,6 +108,7 @@ AC_DEFUN([WX_CPP_NEW_HEADERS],
     fi
 
     AC_LANG_RESTORE
+  fi
 ])
 
 dnl ---------------------------------------------------------------------------