don't use #error as some compilers ignore it; provoke a real compile error instead

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37535 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-02-12 13:55:19 +00:00
parent 0a9ed8f14e
commit 27237c3708

View File

@@ -287,7 +287,7 @@ AC_DEFUN([AC_BAKEFILE_SHARED_LD],
AC_TRY_COMPILE([], AC_TRY_COMPILE([],
[ [
#ifndef __INTEL_COMPILER #ifndef __INTEL_COMPILER
#error Not ICC This is not ICC
#endif #endif
], ],
bakefile_cv_prog_icc=yes, bakefile_cv_prog_icc=yes,
@@ -329,7 +329,7 @@ AC_DEFUN([AC_BAKEFILE_SHARED_LD],
[ [
#if (__GNUC__ < 3) || \ #if (__GNUC__ < 3) || \
((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
#error old gcc This is old gcc
#endif #endif
], ],
[ [
@@ -673,16 +673,16 @@ AC_DEFUN([AC_BAKEFILE_PRECOMP_HEADERS],
AC_TRY_COMPILE([], AC_TRY_COMPILE([],
[ [
#if !defined(__GNUC__) || !defined(__GNUC_MINOR__) #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
#error "no pch support" There is no PCH support
#endif #endif
#if (__GNUC__ < 3) #if (__GNUC__ < 3)
#error "no pch support" There is no PCH support
#endif #endif
#if (__GNUC__ == 3) && \ #if (__GNUC__ == 3) && \
((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \ ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
( defined(__INTEL_COMPILER) ) ( defined(__INTEL_COMPILER) )
#error "no pch support" There is no PCH support
#endif #endif
], ],
[ [
@@ -694,7 +694,7 @@ AC_DEFUN([AC_BAKEFILE_PRECOMP_HEADERS],
[ [
#if !defined(__INTEL_COMPILER) || \ #if !defined(__INTEL_COMPILER) || \
(__INTEL_COMPILER < 800) (__INTEL_COMPILER < 800)
#error "no pch support" There is no PCH support
#endif #endif
], ],
[ [