1AC_DEFUN([GP_CHECK_SCOPE],
2[
3    GP_ARG_DISABLE([Scope], [auto])
4
5    AS_CASE([$host_os],
6            [cygwin* | mingw* | win32*],
7            [PTY_LIBS=""],
8
9            [GP_CHECK_GTK3([vte_package=vte-2.91], [vte_package="vte >= 0.17"])
10             GP_CHECK_PLUGIN_DEPS([scope], [VTE], [$vte_package])
11             GP_CHECK_UTILSLIB_VTECOMPAT([Scope])
12
13             AC_CHECK_HEADERS([util.h pty.h libutil.h])
14             PTY_LIBS="-lutil"])
15
16    AC_SUBST(PTY_LIBS)
17
18    GP_COMMIT_PLUGIN_STATUS([Scope])
19
20    AC_CONFIG_FILES([
21        scope/Makefile
22        scope/data/Makefile
23        scope/docs/Makefile
24        scope/src/Makefile
25    ])
26])
27