# features
 CPPFLAGS += -DFEATURE_COOKIE
+CPPFLAGS += -DFEATURE_SEARCH_HIGHLIGHT
 
 CPPFLAGS += -DVERSION=\"${VERSION}\"
 ifeq ($(USEGTK3), 1)
 
 
     if (arg->i == VP_SEARCH_OFF && state->search_query) {
         OVERWRITE_STRING(state->search_query, NULL);
+#ifdef FEATURE_SEARCH_HIGHLIGHT
         webkit_web_view_unmark_text_matches(vp.gui.webview);
+#endif
 
         return TRUE;
     }
     }
 
     if (state->search_query) {
+#ifdef FEATURE_SEARCH_HIGHLIGHT
         webkit_web_view_mark_text_matches(vp.gui.webview, state->search_query, FALSE, 0);
         webkit_web_view_set_highlight_text_matches(vp.gui.webview, TRUE);
-
+#endif
         webkit_web_view_search_text(vp.gui.webview, state->search_query, FALSE, forward, TRUE);
     }