diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2014-05-17 15:41:56 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2014-05-17 16:23:01 +0200 |
| commit | 14af289ed9828850ceb341679e42aaa5db7912ee (patch) | |
| tree | 9c1709425aba494d5b7f79c1f322ade61bbfc4be /config-daemon.ac | |
| parent | 1634c0420e5e8e609f5d52f5bf92eeafff5bfb6a (diff) | |
build: Add --with-libgcrypt-libdir=DIR to support Debian's multi-arch layout.
* configure.ac: Remove 'LIBGCRYPT_PREFIX' and use 'LIBGCRYPT_LIBDIR'
instead. Add --with-libgcrypt-libdir=DIR option.
* Makefile.am (AM_DISTCHECK_CONFIGURE_FLAGS): Pass
'--with-libgcrypt-libdir'.
* config-daemon.ac: Honor $LIBGCRYPT_LIBDIR when computing
LIBGCRYPT_LIBS.
Diffstat (limited to 'config-daemon.ac')
| -rw-r--r-- | config-daemon.ac | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/config-daemon.ac b/config-daemon.ac index 08a72a0c4c7..a13525a7f5d 100644 --- a/config-daemon.ac +++ b/config-daemon.ac | |||
| @@ -38,13 +38,21 @@ if test "x$guix_build_daemon" = "xyes"; then | |||
| 38 | case "$LIBGCRYPT_PREFIX" in | 38 | case "$LIBGCRYPT_PREFIX" in |
| 39 | no) | 39 | no) |
| 40 | LIBGCRYPT_CFLAGS="" | 40 | LIBGCRYPT_CFLAGS="" |
| 41 | LIBGCRYPT_LIBS="" | ||
| 42 | ;; | 41 | ;; |
| 43 | *) | 42 | *) |
| 44 | LIBGCRYPT_CFLAGS="-I$LIBGCRYPT_PREFIX/include" | 43 | LIBGCRYPT_CFLAGS="-I$LIBGCRYPT_PREFIX/include" |
| 45 | LIBGCRYPT_LIBS="-L$LIBGCRYPT_PREFIX/lib -lgcrypt" | ||
| 46 | ;; | 44 | ;; |
| 47 | esac | 45 | esac |
| 46 | |||
| 47 | case "$LIBGCRYPT_LIBDIR" in | ||
| 48 | no) | ||
| 49 | LIBGCRYPT_LIBS="-lgcrypt" | ||
| 50 | ;; | ||
| 51 | *) | ||
| 52 | LIBGCRYPT_LIBS="-L$LIBGCRYPT_LIBDIR -lgcrypt" | ||
| 53 | ;; | ||
| 54 | esac | ||
| 55 | |||
| 48 | AC_SUBST([LIBGCRYPT_CFLAGS]) | 56 | AC_SUBST([LIBGCRYPT_CFLAGS]) |
| 49 | AC_SUBST([LIBGCRYPT_LIBS]) | 57 | AC_SUBST([LIBGCRYPT_LIBS]) |
| 50 | 58 | ||
