diff --git a/common/common.cpp b/common/common.cpp index aae5441be9..383eb80350 100644 --- a/common/common.cpp +++ b/common/common.cpp @@ -40,6 +40,20 @@ #include + +// Fail build if wxWidgets printing was not configured. +#if !wxUSE_PRINTING_ARCHITECTURE && !SWIG +# error "You must use '--enable-printarch' in your wx library configuration." +#endif + +// Show warning if wxWidgets Gnome or GTK printing was not configured. +#if defined( __WXGTK__ ) +# if !wxUSE_LIBGNOMEPRINT && !wxUSE_GTKPRINT && !SWIG +# warning "You must use '--with-gnomeprint' or '--with-gtkprint' in your wx library configuration for full print capabilities." +# endif +#endif + + /** * Global variables definitions. * diff --git a/include/common.h b/include/common.h index c116e85cfc..fe8f3d08cc 100644 --- a/include/common.h +++ b/include/common.h @@ -42,16 +42,6 @@ #include #include -#if !wxUSE_PRINTING_ARCHITECTURE && !SWIG -# error "You must use '--enable-printarch' in your wx library configuration." -#endif - -#if defined( __WXGTK__ ) -# if !wxUSE_LIBGNOMEPRINT && !wxUSE_GTKPRINT && !SWIG -# error "You must use '--with-gnomeprint' or '--with-gtkprint' in your wx library configuration." -# endif -#endif - class wxAboutDialogInfo;