From bce38c607c58294e3cd82665ccc9de91d5dd6d6f Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Sun, 13 Mar 2016 01:30:40 +0100 Subject: [PATCH] scope: Fix dependencies checks on Windows On Windows Scope doesn't need neither VTE nor pty.h, so drop the incorrect checks there. --- build/scope.m4 | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/build/scope.m4 b/build/scope.m4 index 40dc550ce..6e34a64d2 100644 --- a/build/scope.m4 +++ b/build/scope.m4 @@ -3,18 +3,23 @@ AC_DEFUN([GP_CHECK_SCOPE], GP_ARG_DISABLE([Scope], [auto]) GP_CHECK_PLUGIN_GTK2_ONLY([Scope]) - GP_CHECK_PLUGIN_DEPS([scope], [VTE], - [vte >= 0.17]) - AC_CHECK_HEADERS([util.h pty.h libutil.h]) - GP_COMMIT_PLUGIN_STATUS([Scope]) - case "$host_os" in - cygwin* | mingw* | win32*) PTY_LIBS="" ;; - *) PTY_LIBS="-lutil" ;; + cygwin* | mingw* | win32*) + PTY_LIBS="" + ;; + + *) + GP_CHECK_PLUGIN_DEPS([scope], [VTE], + [vte >= 0.17]) + AC_CHECK_HEADERS([util.h pty.h libutil.h]) + PTY_LIBS="-lutil" + ;; esac AC_SUBST(PTY_LIBS) + GP_COMMIT_PLUGIN_STATUS([Scope]) + AC_CONFIG_FILES([ scope/Makefile scope/data/Makefile