distcheck fixen
authorAndy Wingo <wingo@oblong.net>
Tue, 21 Apr 2009 10:41:19 +0000 (12:41 +0200)
committerAndy Wingo <wingo@oblong.net>
Tue, 21 Apr 2009 10:41:19 +0000 (12:41 +0200)
* examples/Makefile.am: Fix the installed guile-config invocation to set
  PKG_CONFIG_PATH.

* meta/Makefile.am (EXTRA_DIST): Dist the bin_SCRIPTS.

* meta/guile-config (pkg-config): Better error messages if pkg-config
  invocation fails.

* meta/uninstalled-env.in (PATH): Now that guile-config and guile-tools
  are not generated, make it the srcdir/meta instead of the builddir.
  (Guile itself will be picked up from libguile.)

examples/Makefile.am
meta/Makefile.am
meta/guile-config
meta/uninstalled-env.in

index 1b995b5..873f34c 100644 (file)
@@ -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
index 6614ab3..7f655e5 100644 (file)
@@ -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
index b90a5e5..815414a 100755 (executable)
@@ -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"
index 56bbc30..d5c7949 100644 (file)
@@ -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 "$@"