mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
Add (guix lzlib).
* guix/lzlib.scm, tests/lzlib.scm: New files. * Makefile.am (MODULES): Add guix/lzlib.scm. (SCM_TESTS): Add tests/lzlib.scm. * m4/guix.m4 (GUIX_LIBLZ_LIBDIR): New macro. * configure.ac (LIBLZ_LIBDIR): Use it. Define and substitute 'LIBLZ'. * guix/config.scm.in (%liblz): New variable. * guix/self.scm (make-config.scm): Add TODO comment. Co-authored-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
46c102ca5e
commit
fea338c6ca
7 changed files with 777 additions and 1 deletions
17
m4/guix.m4
17
m4/guix.m4
|
@ -1,5 +1,5 @@
|
|||
dnl GNU Guix --- Functional package management for GNU
|
||||
dnl Copyright © 2012, 2013, 2014, 2015, 2016, 2018 Ludovic Courtès <ludo@gnu.org>
|
||||
dnl Copyright © 2012, 2013, 2014, 2015, 2016, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
|
||||
dnl Copyright © 2014 Mark H Weaver <mhw@netris.org>
|
||||
dnl Copyright © 2017 Efraim Flashner <efraim@flashner.co.il>
|
||||
dnl
|
||||
|
@ -312,6 +312,21 @@ AC_DEFUN([GUIX_LIBZ_LIBDIR], [
|
|||
$1="$guix_cv_libz_libdir"
|
||||
])
|
||||
|
||||
dnl GUIX_LIBLZ_FILE_NAME VAR
|
||||
dnl
|
||||
dnl Attempt to determine liblz's absolute file name; store the result in VAR.
|
||||
AC_DEFUN([GUIX_LIBLZ_FILE_NAME], [
|
||||
AC_REQUIRE([PKG_PROG_PKG_CONFIG])
|
||||
AC_CACHE_CHECK([lzlib's file name],
|
||||
[guix_cv_liblz_libdir],
|
||||
[old_LIBS="$LIBS"
|
||||
LIBS="-llz"
|
||||
AC_LINK_IFELSE([AC_LANG_SOURCE([int main () { return LZ_decompress_open(); }])],
|
||||
[guix_cv_liblz_libdir="`ldd conftest$EXEEXT | grep liblz | sed '-es/.*=> \(.*\) .*$/\1/g'`"])
|
||||
LIBS="$old_LIBS"])
|
||||
$1="$guix_cv_liblz_libdir"
|
||||
])
|
||||
|
||||
dnl GUIX_CURRENT_LOCALSTATEDIR
|
||||
dnl
|
||||
dnl Determine the localstatedir of an existing Guix installation and set
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue