From 3121948b263d63d3e8ae3704807884bbefda8560 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Tue, 4 Oct 2011 20:03:49 +0000 Subject: [PATCH] configure: Make sure we get a recent `nix-store'. --- configure.ac | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/configure.ac b/configure.ac index b7de03f7..575bb74c 100644 --- a/configure.ac +++ b/configure.ac @@ -38,6 +38,20 @@ AC_ARG_WITH(nix, AC_HELP_STRING([--with-nix=PATH], nix=$withval, nix=/nix-missing) AC_SUBST(nix) +PATH="$nix:$PATH" +export PATH + +NEED_PROG([NIX_STORE], [nix-store]) + +AC_MSG_CHECKING([whether $NIX_STORE is recent enough]) +if "$NIX_STORE" --timeout 123 -q > /dev/null 2>&1 +then + AC_MSG_RESULT([yes]) +else + AC_MSG_RESULT([no]) + AC_MSG_ERROR([`$NIX_STORE' doesn't support `--timeout'; please use a newer version.]) +fi + old_CPPFLAGS="$CPPFLAGS" old_LIBS="$LIBS"