Otherwise it might happen that the user has more than cabal executables
available and a wrong one is used.

Signed-off-by: Petr Pudlak <[email protected]>
---
 Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index 022d761..9945855 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1340,7 +1340,7 @@ HASKELL_PACKAGE_VERSIONS_FILE = cabal_macros.h
 $(HASKELL_PACKAGE_VERSIONS_FILE): Makefile ganeti.cabal \
                                   cabal/CabalDependenciesMacros.hs
        touch empty-cabal-config
-       cabal --config-file=empty-cabal-config configure --user \
+       $(CABAL) --config-file=empty-cabal-config configure --user \
          -f`test $(ENABLE_MOND) == True && echo "mond" || echo "-mond"` \
          -f`test $(ENABLE_METADATA) == True && echo "metad" || echo "-metad"`
        runhaskell $(abs_top_srcdir)/cabal/CabalDependenciesMacros.hs \
-- 
2.2.0.rc0.207.ga3a616c

Reply via email to