diff options
author | Ludovic Courtès <ludo@gnu.org> | 2012-08-14 18:50:36 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2012-08-14 18:50:36 +0200 |
commit | 437e0729d86e750bed5ca76307e5dad610a337e6 (patch) | |
tree | 7df263e0c07580270b88315609ff07187409dc2c /configure.ac | |
parent | d95c0113c9f13365bcd2e95b0e2beb125281a67a (diff) | |
download | guix-437e0729d86e750bed5ca76307e5dad610a337e6.tar guix-437e0729d86e750bed5ca76307e5dad610a337e6.tar.gz |
build: Pass the right flags for "make distcheck".
* Makefile.am (AM_DISTCHECK_CONFIGURE_FLAGS): New variable.
* configure.ac: Define and substitute `NIX_PREFIX'.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index d8537294c5..aed8287bfd 100644 --- a/configure.ac +++ b/configure.ac @@ -27,7 +27,11 @@ AC_ARG_WITH([nix-prefix], [AS_HELP_STRING([--with-nix-prefix=DIR], [search for Nix in DIR])], [case "$withval" in yes|no) ;; - *) PATH="$withval/bin:$PATH"; export PATH;; + *) + NIX_PREFIX="$withval" + PATH="$NIX_PREFIX/bin:$PATH"; export PATH + AC_SUBST([NIX_PREFIX]) + ;; esac], []) |