From 3a310cc017c4bffbee8a6f37569145a593ac2912 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Fri, 17 Aug 2012 10:41:27 +0200 Subject: build: Add `--with-libgcrypt-prefix'; capture the path to libgcrypt. * configure.ac: Add `--with-libgcrypt-prefix'. Substitute `LIBGCRYPT'. * Makefile.am (.scm.go): Pass $(LIBGCRYPT). * guix/utils.scm (%libgcrypt): New variable. (sha256): Use it. --- configure.ac | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index aed8287bfd..821e746fe8 100644 --- a/configure.ac +++ b/configure.ac @@ -58,6 +58,23 @@ else AC_MSG_WARN([Please use `--with-nixpkgs'.]) fi +AC_ARG_WITH([libgcrypt-prefix], + [AS_HELP_STRING([--with-libgcrypt-prefix=DIR], [search for GNU libgcrypt in DIR])], + [case "$withval" in + yes|no) + LIBGCRYPT="libgcrypt" + ;; + *) + LIBGCRYPT="$withval/lib/libgcrypt" + ;; + esac], + [LIBGCRYPT="libgcrypt"]) + +dnl Library name suitable for `dynamic-link'. +AC_MSG_CHECKING([for libgcrypt shared library name]) +AC_MSG_RESULT([$LIBGCRYPT]) +AC_SUBST([LIBGCRYPT]) + AC_CONFIG_FILES([Makefile po/Makefile.in guix-build]) -- cgit 1.4.1