1 --- linux-gpib-4.0.3/configure.ac.orig 2016-04-09 15:34:55.000000000 +0200
2 +++ linux-gpib-4.0.3/configure.ac 2016-07-06 17:55:18.567320365 +0200
5 dnl Checks for libraries.
6 if test "$BIND_GUILE" = "yes"; then
7 +AC_CHECK_LIB([guile-2.2],[scm_c_define],[:],[
8 +AC_CHECK_LIB([guile-2.0],[scm_c_define],[:],[
9 AC_CHECK_LIB([guile],[gh_define],[echo this prevents default actions from occurring > /dev/null],
10 [BIND_GUILE="no";AC_MSG_NOTICE([libguile not found, disabling guile binding])],[])
14 AC_CHECK_LIB([readline], [readline],
15 --- linux-gpib-4.0.3/language/guile/gpib.h.orig 2016-04-09 15:33:09.000000000 +0200
16 +++ linux-gpib-4.0.3/language/guile/gpib.h 2016-07-06 20:44:07.355781339 +0200
21 -#if defined (SCM_MINOR_VERSION) && (SCM_MINOR_VERSION >= 5) && \
22 - defined (SCM_MAJOR_VERSION) && (SCM_MAJOR_VERSION >= 1)
23 +#if defined (SCM_MAJOR_VERSION) && ((SCM_MAJOR_VERSION > 1) || ((SCM_MAJOR_VERSION == 1) && \
24 + defined (SCM_MINOR_VERSION) && (SCM_MINOR_VERSION >= 5)))
25 #define SCM_VERSION_15X 1
27 -#if defined (SCM_MINOR_VERSION) && (SCM_MINOR_VERSION >= 7) && \
28 - defined (SCM_MAJOR_VERSION) && (SCM_MAJOR_VERSION >= 1)
29 +#if defined (SCM_MAJOR_VERSION) && ((SCM_MAJOR_VERSION > 1) || ((SCM_MAJOR_VERSION == 1) && \
30 + defined (SCM_MINOR_VERSION) && (SCM_MINOR_VERSION >= 7)))
31 #define SCM_VERSION_17X 1
34 --- linux-gpib-4.0.3/language/guile/gpib.c.orig 2016-04-09 15:33:09.000000000 +0200
35 +++ linux-gpib-4.0.3/language/guile/gpib.c 2016-07-06 18:07:48.129926301 +0200
40 -#include <guile/gh.h>
41 +#include <libguile.h>