diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2021-02-16 12:14:59 +0100 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2021-02-16 12:14:59 +0100 |
commit | 7b07dd6c9ec599dc902513bcaf3c66662ed6b9c4 (patch) | |
tree | 2965abe03375246575f4303f9164613a3d85361f | |
parent | b3387c879b420c8ee3d4871d2902c52c7a41dcb6 (diff) |
Raise an error if GUILE_DRMAA_LIBRARY is unset at runtime.
-rw-r--r-- | Makefile.am | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index c3bd8f6..8c73a13 100644 --- a/Makefile.am +++ b/Makefile.am @@ -32,7 +32,7 @@ SUFFIXES = .scm .go .ffi drmaa/v1/ffi.scm: drmaa/v1/ffi.ffi $(AM_V_GEN)$(top_builddir)/pre-inst-env $(GUILE_TOOLS) compile-ffi -I $(top_srcdir)/include -X -o "$@" "$<" && \ - $(SED) -e 's,(define drmaa-v1-ffi-llibs (list)),(define drmaa-v1-ffi-llibs (delay (list (dynamic-link (getenv "GUILE_DRMAA_LIBRARY"))))),' \ + $(SED) -e 's,(define drmaa-v1-ffi-llibs (list)),(define drmaa-v1-ffi-llibs (delay (list (dynamic-link (or (getenv "GUILE_DRMAA_LIBRARY") (error "GUILE_DRMAA_LIBRARY must be set!")))))),' \ -e 's,drmaa-v1-ffi-llibs),(force drmaa-v1-ffi-llibs)),' -i $@ SOURCES = drmaa.scm \ |