summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2021-02-16 12:14:59 +0100
committerRicardo Wurmus <rekado@elephly.net>2021-02-16 12:14:59 +0100
commit7b07dd6c9ec599dc902513bcaf3c66662ed6b9c4 (patch)
tree2965abe03375246575f4303f9164613a3d85361f
parentb3387c879b420c8ee3d4871d2902c52c7a41dcb6 (diff)
Raise an error if GUILE_DRMAA_LIBRARY is unset at runtime.
-rw-r--r--Makefile.am2
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 \