From 7cd386894deb84e254e0dad14c02661b2a8dec82 Mon Sep 17 00:00:00 2001
From: Eelco Dolstra <eelco.dolstra@logicblox.com>
Date: Fri, 19 Jul 2013 10:57:40 +0200
Subject: [PATCH] Don't try to open the Nix DB from configure

Not sure how this ever worked before...
---
 configure.ac | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index c136547f..11ae91e1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -52,8 +52,7 @@ then
     NIX_STATE_DIR="$TMPDIR"
     export NIX_STATE_DIR
 fi
-if "$NIX_STORE_PROGRAM" --timeout 123 -q > /dev/null 2>&1
-then
+if NIX_REMOTE=daemon "$NIX_STORE_PROGRAM" --timeout 123 -q; then 
     AC_MSG_RESULT([yes])
 else
     AC_MSG_RESULT([no])