/config-daemon.ac (50ead355a81edebf5c9419bd76a1dd69e85f5adf) (4808 bytes) (mode 100644) (type blob)
dnl -*- Autoconf -*- fragment for the C++ daemon.
AC_MSG_CHECKING([whether to build daemon])
AC_MSG_RESULT([$guix_build_daemon])
dnl C++ environment. This macro must be used unconditionnaly.
AC_PROG_CXX
AM_PROG_AR
AC_LANG([C++])
if test "x$guix_build_daemon" = "xyes"; then
GUIX_ASSERT_CXX11
AC_PROG_RANLIB
AC_CONFIG_HEADER([nix/config.h])
dnl Use 64-bit file system calls so that we can support files > 2 GiB.
AC_SYS_LARGEFILE
dnl Look for zlib, a required dependency.
AC_CHECK_LIB([z], [gzdopen], [true],
[AC_MSG_ERROR([Guix requires zlib. See http://www.zlib.net/.])])
AC_CHECK_HEADERS([zlib.h], [true],
[AC_MSG_ERROR([Guix requires zlib. See http://www.zlib.net/.])])
dnl Look for libbz2, an optional dependency.
AC_CHECK_LIB([bz2], [BZ2_bzWriteOpen], [HAVE_LIBBZ2=yes], [HAVE_LIBBZ2=no])
if test "x$HAVE_LIBBZ2" = xyes; then
AC_CHECK_HEADERS([bzlib.h])
HAVE_LIBBZ2="$ac_cv_header_bzlib_h"
fi
dnl Look for SQLite, a required dependency.
PKG_CHECK_MODULES([SQLITE3], [sqlite3 >= 3.6.19])
AC_DEFINE([NIX_VERSION], ["0.0.0"], [Fake Nix version number.])
AC_DEFINE_UNQUOTED([SYSTEM], ["$guix_system"],
[Guix host system type--i.e., platform and OS kernel tuple.])
case "$LIBGCRYPT_PREFIX" in
no)
LIBGCRYPT_CFLAGS=""
;;
*)
LIBGCRYPT_CFLAGS="-I$LIBGCRYPT_PREFIX/include"
;;
esac
case "$LIBGCRYPT_LIBDIR" in
no | "")
LIBGCRYPT_LIBS="-lgcrypt"
;;
*)
LIBGCRYPT_LIBS="-L$LIBGCRYPT_LIBDIR -lgcrypt"
;;
esac
AC_SUBST([LIBGCRYPT_CFLAGS])
AC_SUBST([LIBGCRYPT_LIBS])
save_CFLAGS="$CFLAGS"
save_LDFLAGS="$LDFLAGS"
CFLAGS="$CFLAGS $LIBGCRYPT_CFLAGS"
LDFLAGS="$LDFLAGS $LIBGCRYPT_LDFLAGS"
have_gcrypt=yes
AC_CHECK_LIB([gcrypt], [gcry_md_open], [:], [have_gcrypt=no])
AC_CHECK_HEADER([gcrypt.h], [:], [have_gcrypt=no])
if test "x$have_gcrypt" != "xyes"; then
AC_MSG_ERROR([GNU libgcrypt not found; please install it.])
fi
CFLAGS="$save_CFLAGS"
LDFLAGS="$save_LDFLAGS"
dnl Chroot support.
AC_CHECK_FUNCS([chroot unshare])
AC_CHECK_HEADERS([sched.h sys/param.h sys/mount.h sys/syscall.h])
if test "x$ac_cv_func_chroot" != "xyes"; then
AC_MSG_ERROR(['chroot' function missing, bailing out])
fi
dnl lutimes and lchown: used when canonicalizing store items.
dnl posix_fallocate: used when extracting archives.
dnl vfork: to speed up spawning of helper programs.
dnl `--> now disabled because of unpredictable behavior:
dnl see <http://lists.gnu.org/archive/html/guix-devel/2014-05/msg00036.html>
dnl and Nix commit f794465c (Nov. 2012).
dnl sched_setaffinity: to improve RPC locality.
dnl statvfs: to detect disk-full conditions.
dnl strsignal: for error reporting.
dnl statx: fine-grain 'stat' call, new in glibc 2.28.
AC_CHECK_FUNCS([lutimes lchown posix_fallocate sched_setaffinity \
statvfs nanosleep strsignal statx])
dnl Check whether the store optimiser can optimise symlinks.
AC_MSG_CHECKING([whether it is possible to create a link to a symlink])
ln -s bla tmp_link
if ln tmp_link tmp_link2 2> /dev/null; then
AC_MSG_RESULT(yes)
AC_DEFINE(CAN_LINK_SYMLINK, 1, [Whether link() works on symlinks.])
else
AC_MSG_RESULT(no)
fi
rm -f tmp_link tmp_link2
dnl Check for <locale>.
AC_LANG_PUSH(C++)
AC_CHECK_HEADERS([locale])
AC_LANG_POP(C++)
dnl Check whether we have the `personality' syscall, which allows us
dnl to do i686-linux builds on x86_64-linux machines.
AC_CHECK_HEADERS([sys/personality.h])
dnl Determine the appropriate default list of substitute URLs (GnuTLS
dnl is required so we can default to 'https'.)
guix_substitute_urls="https://ci.guix.gnu.org"
AC_MSG_CHECKING([for default substitute URLs])
AC_MSG_RESULT([$guix_substitute_urls])
AC_DEFINE_UNQUOTED([GUIX_SUBSTITUTE_URLS], ["$guix_substitute_urls"],
[Default list of substitute URLs used by 'guix-daemon'.])
dnl Check for Guile-SSH, which is required by 'guix offload'.
GUIX_CHECK_GUILE_SSH
case "x$guix_cv_have_recent_guile_ssh" in
xyes)
guix_build_daemon_offload="yes"
AC_DEFINE([HAVE_DAEMON_OFFLOAD_HOOK], [1],
[Define if the daemon's 'offload' build hook is being built (requires Guile-SSH).])
;;
*)
guix_build_daemon_offload="no"
;;
esac
dnl Temporary directory used to store the daemon's data.
GUIX_TEST_ROOT_DIRECTORY
GUIX_TEST_ROOT="$ac_cv_guix_test_root"
AC_SUBST([GUIX_TEST_ROOT])
GUIX_CHECK_LOCALSTATEDIR
fi
AM_CONDITIONAL([HAVE_LIBBZ2], [test "x$HAVE_LIBBZ2" = "xyes"])
AM_CONDITIONAL([BUILD_DAEMON], [test "x$guix_build_daemon" = "xyes"])
AM_CONDITIONAL([BUILD_DAEMON_OFFLOAD], \
[test "x$guix_build_daemon" = "xyes" \
&& test "x$guix_build_daemon_offload" = "xyes"])
Mode |
Type |
Size |
Ref |
File |
100644 |
blob |
6139 |
7f310d2612983845551d0a641b730a269a180a3f |
.dir-locals.el |
100644 |
blob |
2533 |
e2f745b42a5a1591a93a3e9a7ccfc107a6178eff |
.gitignore |
100644 |
blob |
6179 |
ee164083c8379d90c6e7ab3b38576266f458f40c |
.guix-authorizations |
100644 |
blob |
182 |
b852180cf2563ec7b74b93c954de38d77237f23f |
.guix-channel |
100644 |
blob |
4499 |
146e65184a2f987b0307d0ec7300c93e84110625 |
.mailmap |
100644 |
blob |
472 |
1e30a74a64f51ec735dcc44ff4dfe5fa4fa13c6f |
AUTHORS |
100644 |
blob |
3273 |
ef90330cdacb9ecf7dbf38a03cdb490db131a4ad |
CODE-OF-CONDUCT |
100644 |
blob |
35147 |
94a9ed024d3859793618152ea559a168bbcbb5e2 |
COPYING |
100644 |
blob |
163 |
d6ea6943261fcae51c095ad39fe59140fc62de22 |
ChangeLog |
100644 |
blob |
749 |
aaa673fc93b0bb74feca4783ae427b9ea1b604ea |
HACKING |
100644 |
blob |
33109 |
a75d9c1ffc4237c0478b62a235b9b521fd840517 |
Makefile.am |
100644 |
blob |
359348 |
bb1de1e93802064ff44392db56d05cd0a11fcc15 |
NEWS |
100644 |
blob |
5260 |
5e9069f80f58d3946cdd588f30919a177eaccb55 |
README |
100644 |
blob |
3237 |
2475cb637ceb6eb43f54d080c56e5793041b76e5 |
ROADMAP |
100644 |
blob |
2381 |
af7afd3576f2e6aa5cbafc3c6354bbab1ae00774 |
THANKS |
100644 |
blob |
4360 |
f854f7fa98e09c7b512f3efb702c290b615186a0 |
TODO |
100755 |
blob |
906 |
a47269d87f1d6fd27bbaf634ac7439b38b32cca3 |
bootstrap |
040000 |
tree |
- |
b15b9ede344760715e240528bc322c7b0194bbe7 |
build-aux |
100644 |
blob |
4808 |
50ead355a81edebf5c9419bd76a1dd69e85f5adf |
config-daemon.ac |
100644 |
blob |
8760 |
6861112eafaed85e107f8976f12e0ddb795571b7 |
configure.ac |
100644 |
blob |
339545 |
d234c4ec8668cead20279d903589d29c513b4cb6 |
d3.v3.js |
040000 |
tree |
- |
5723162b01e328d030678c8e9b52dc494478373c |
doc |
040000 |
tree |
- |
19d4c354a5b4ad0ccd6b6cc692106774c4d9c97b |
etc |
100644 |
blob |
5289 |
f139531ef3ecf56a790ae73934e2d91016c1aba4 |
gnu.scm |
040000 |
tree |
- |
bef9e676a63d8c0ff09dfaf15b8aa4d710d56a6d |
gnu |
100644 |
blob |
4207 |
ad8279395d8eb1fe5a836d54ec563a4577f4d135 |
graph.js |
100644 |
blob |
1357 |
8753c21e423f880e7a6d9f7f6f6ff1139f8b7254 |
guix.scm |
040000 |
tree |
- |
ecbb9a9e8533be638ba82fe4a7bf3728380832ac |
guix |
040000 |
tree |
- |
8df9aaabfb400159e2559fd4331fb861cb0a5adc |
m4 |
040000 |
tree |
- |
d0ec05821e49fa1536a9c19a33ad13b5ba3ea0c2 |
nix |
040000 |
tree |
- |
8dac6dd305591d733ef087c35eee3b3acb1daee2 |
po |
040000 |
tree |
- |
8c4db11917d51c4d71a841813cf8951000b76687 |
scripts |
040000 |
tree |
- |
f284abae7ee6e17f37f6ca942999e84bd2ac74e3 |
tests |
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"
Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/maav/guix-mirror
Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/maav/guix-mirror
Clone this repository using git:
git clone git://git.rocketgit.com/user/maav/guix-mirror
You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a
merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main