From 66243a8e4b0cdc707f593e6106c660e961be588b Mon Sep 17 00:00:00 2001 From: Steve Lamerton Date: Tue, 5 Jul 2011 11:06:33 +0000 Subject: [PATCH] Add osx configure support for wxWebView. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68165 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- configure.in | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/configure.in b/configure.in index 6d058ba477..a5aa4afb40 100644 --- a/configure.in +++ b/configure.in @@ -7386,6 +7386,29 @@ if test "$wxUSE_WEB" = "yes"; then AC_MSG_RESULT([not found]) fi fi + + if test "$wxUSE_WEBVIEW_WEBKIT" = "yes" -a "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then + old_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="-x objective-c++ $CPPFLAGS" + AC_CHECK_HEADER([WebKit/HIWebView.h], + [ + AC_DEFINE(wxUSE_WEBVIEW_WEBKIT) + WEBKIT_LINK="-framework WebKit" + ], + [ + AC_MSG_WARN([WebKit headers not found; disabling wxWebView WebKit]) + wxUSE_WEBVIEW_WEBKIT=no + ], + [ + #include + #include + ]) + CPPFLAGS="$old_CPPFLAGS" + elif test "$wxUSE_OLD_COCOA" = 1; then + AC_DEFINE(wxUSE_WEBVIEW_WEBKIT) + else + wxUSE_WEBVIEW_WEBKIT=no + fi fi dnl --------------------------------------------------------------------------- -- 2.45.2