summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/Makefile.am4
-rw-r--r--meta/Makefile.am3
-rwxr-xr-xmeta/guile-config6
-rw-r--r--meta/uninstalled-env.in2
4 files changed, 10 insertions, 5 deletions
diff --git a/examples/Makefile.am b/examples/Makefile.am
index 1b995b521..873f34ce0 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -38,8 +38,8 @@ EXTRA_DIST = README ChangeLog-2008 check.test \
\
safe/README safe/safe safe/untrusted.scm safe/evil.scm
-AM_CFLAGS = `$(bindir)/guile-config compile`
-AM_LIBS = `$(bindir)/guile-config link`
+AM_CFLAGS = `PKG_CONFIG_PATH=$(libdir)/pkgconfig $(bindir)/guile-config compile`
+AM_LIBS = `PKG_CONFIG_PATH=$(libdir)/pkgconfig $(bindir)/guile-config link`
box/box: box/box.o
diff --git a/meta/Makefile.am b/meta/Makefile.am
index 6614ab349..7f655e535 100644
--- a/meta/Makefile.am
+++ b/meta/Makefile.am
@@ -21,7 +21,8 @@
## Floor, Boston, MA 02110-1301 USA
bin_SCRIPTS=guile-config guile-tools
-EXTRA_DIST=guile.m4 ChangeLog-2008 \
+EXTRA_DIST= $(bin_SCRIPTS) \
+ guile.m4 ChangeLog-2008 \
guile-1.8.pc.in guile-1.8-uninstalled.pc.in
pkgconfigdir = $(libdir)/pkgconfig
diff --git a/meta/guile-config b/meta/guile-config
index b90a5e599..815414a38 100755
--- a/meta/guile-config
+++ b/meta/guile-config
@@ -79,7 +79,11 @@ exec guile -e main -s $0 "$@"
(ret (close-pipe pipe)))
(case (status:exit-val ret)
((0) (if (eof-object? output) "" output))
- (else (error "error calling pkg-config: ~A" output)))))
+ (else (display-line-error
+ (format #f "error: ~s exited with non-zero error code ~A"
+ (cons "pkg-config" args) (status:exit-val ret)))
+ ;; assume pkg-config sent diagnostics to stdout
+ (exit (status:exit-val ret))))))
(define (show-version args)
(format (current-error-port) "~A - Guile version ~A"
diff --git a/meta/uninstalled-env.in b/meta/uninstalled-env.in
index 56bbc307f..d5c7949f5 100644
--- a/meta/uninstalled-env.in
+++ b/meta/uninstalled-env.in
@@ -93,7 +93,7 @@ export PKG_CONFIG_PATH
# handle PATH (no clobber)
PATH="${top_builddir}/libguile:${PATH}"
-PATH="${top_builddir}/meta:${PATH}"
+PATH="${top_srcdir}/meta:${PATH}"
export PATH
exec "$@"