From d04f535c7ed59bdebcdc97f50f7a10aeadb16cc4 Mon Sep 17 00:00:00 2001 From: Steve Lamerton Date: Tue, 13 Sep 2011 21:26:41 +0000 Subject: [PATCH] Correctly disable webkit backend if the appropriate headers cannot be found. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69079 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- configure | 25 ++++++++++++++++++++----- configure.in | 10 +++++----- 2 files changed, 25 insertions(+), 10 deletions(-) diff --git a/configure b/configure index 3f76dfc737..cf8687b94e 100755 --- a/configure +++ b/configure @@ -48458,7 +48458,10 @@ echo "${ECHO_T}yes" >&6; } echo "${ECHO_T}no" >&6; } { echo "$as_me:$LINENO: WARNING: libwebkitgtk-1.0 not found; disabling webkit backend" >&5 echo "$as_me: WARNING: libwebkitgtk-1.0 not found; disabling webkit backend" >&2;} - wxUSE_WEBVIEW_WEBKIT="no" + cat >>confdefs.h <<\_ACEOF +#define wxUSE_WEBVIEW_WEBKIT 0 +_ACEOF + fi { echo "$as_me:$LINENO: checking for webkitgtk includes" >&5 @@ -48495,7 +48498,10 @@ echo "${ECHO_T}found in $ac_find_includes" >&6; } echo "${ECHO_T}not found" >&6; } { echo "$as_me:$LINENO: WARNING: webkit includes not found; disabling webkit backend" >&5 echo "$as_me: WARNING: webkit includes not found; disabling webkit backend" >&2;} - wxUSE_WEBVIEW_WEBKIT="no" + cat >>confdefs.h <<\_ACEOF +#define wxUSE_WEBVIEW_WEBKIT 0 +_ACEOF + fi { echo "$as_me:$LINENO: checking for libsoup includes" >&5 echo $ECHO_N "checking for libsoup includes... $ECHO_C" >&6; } @@ -48531,7 +48537,10 @@ echo "${ECHO_T}found in $ac_find_includes" >&6; } echo "${ECHO_T}not found" >&6; } { echo "$as_me:$LINENO: WARNING: libsoup includes not found; disabling webkit backend" >&5 echo "$as_me: WARNING: libsoup includes not found; disabling webkit backend" >&2;} - wxUSE_WEBVIEW_WEBKIT="no" + cat >>confdefs.h <<\_ACEOF +#define wxUSE_WEBVIEW_WEBKIT 0 +_ACEOF + fi fi @@ -48597,7 +48606,10 @@ else { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebView WebKit" >&5 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebView WebKit" >&2;} - wxUSE_WEBVIEW_WEBKIT=no + cat >>confdefs.h <<\_ACEOF +#define wxUSE_WEBVIEW_WEBKIT 0 +_ACEOF + fi @@ -48609,7 +48621,10 @@ fi _ACEOF else - wxUSE_WEBVIEW_WEBKIT=no + cat >>confdefs.h <<\_ACEOF +#define wxUSE_WEBVIEW_WEBKIT 0 +_ACEOF + fi fi diff --git a/configure.in b/configure.in index 54811fc1a4..6013fb588b 100644 --- a/configure.in +++ b/configure.in @@ -7386,7 +7386,7 @@ if test "$wxUSE_WEBVIEW" = "yes"; then else AC_MSG_RESULT([no]) AC_MSG_WARN([libwebkitgtk-1.0 not found; disabling webkit backend]) - wxUSE_WEBVIEW_WEBKIT="no" + AC_DEFINE(wxUSE_WEBVIEW_WEBKIT, 0) fi AC_MSG_CHECKING(for webkitgtk includes) @@ -7398,7 +7398,7 @@ if test "$wxUSE_WEBVIEW" = "yes"; then else AC_MSG_RESULT([not found]) AC_MSG_WARN([webkit includes not found; disabling webkit backend]) - wxUSE_WEBVIEW_WEBKIT="no" + AC_DEFINE(wxUSE_WEBVIEW_WEBKIT, 0) fi dnl we also depend on libsoup AC_MSG_CHECKING(for libsoup includes) @@ -7410,7 +7410,7 @@ if test "$wxUSE_WEBVIEW" = "yes"; then else AC_MSG_RESULT([not found]) AC_MSG_WARN([libsoup includes not found; disabling webkit backend]) - wxUSE_WEBVIEW_WEBKIT="no" + AC_DEFINE(wxUSE_WEBVIEW_WEBKIT, 0) fi fi @@ -7424,7 +7424,7 @@ if test "$wxUSE_WEBVIEW" = "yes"; then ], [ AC_MSG_WARN([WebKit headers not found; disabling wxWebView WebKit]) - wxUSE_WEBVIEW_WEBKIT=no + AC_DEFINE(wxUSE_WEBVIEW_WEBKIT, 0) ], [ #include @@ -7434,7 +7434,7 @@ if test "$wxUSE_WEBVIEW" = "yes"; then elif test "$wxUSE_OLD_COCOA" = 1; then AC_DEFINE(wxUSE_WEBVIEW_WEBKIT) else - wxUSE_WEBVIEW_WEBKIT=no + AC_DEFINE(wxUSE_WEBVIEW_WEBKIT, 0) fi fi -- 2.45.2