mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
build: Pass the right flags for "make distcheck".
* Makefile.am (AM_DISTCHECK_CONFIGURE_FLAGS): New variable. * configure.ac: Define and substitute `NIX_PREFIX'.
This commit is contained in:
parent
d95c0113c9
commit
437e0729d8
2 changed files with 7 additions and 1 deletions
|
@ -95,3 +95,5 @@ $(guix_install_go_files): install-nobase_dist_guilemoduleDATA
|
|||
SUBDIRS = po
|
||||
|
||||
ACLOCAL_AMFLAGS = -I m4
|
||||
AM_DISTCHECK_CONFIGURE_FLAGS = \
|
||||
--with-nixpkgs=$(NIXPKGS) --with-nix-prefix="$(NIX_PREFIX)"
|
||||
|
|
|
@ -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],
|
||||
[])
|
||||
|
||||
|
|
Loading…
Reference in a new issue