[geany/geany-plugins] bce38c: scope: Fix dependencies checks on Windows

Colomban Wendling git-noreply at xxxxx
Thu Jun 23 21:16:51 UTC 2016


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Sun, 13 Mar 2016 00:30:40 UTC
Commit:      bce38c607c58294e3cd82665ccc9de91d5dd6d6f
             https://github.com/geany/geany-plugins/commit/bce38c607c58294e3cd82665ccc9de91d5dd6d6f

Log Message:
-----------
scope: Fix dependencies checks on Windows

On Windows Scope doesn't need neither VTE nor pty.h, so drop the
incorrect checks there.


Modified Paths:
--------------
    build/scope.m4

Modified: build/scope.m4
19 lines changed, 12 insertions(+), 7 deletions(-)
===================================================================
@@ -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



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Plugins-Commits mailing list