1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-29 02:11:15 +02:00

* Support i686-linux builds directly on x86_64-linux Nix

installations.  This is implemented using the personality() syscall,
  which causes uname to return "i686" in child processes.
This commit is contained in:
Eelco Dolstra 2009-01-12 16:30:32 +00:00
parent 8e39d9bdb3
commit c504d90c11
2 changed files with 24 additions and 2 deletions

View file

@ -100,12 +100,17 @@ AC_CHECK_HEADERS([sys/mount.h], [], [],
])
# Check for <locale>
# Check for <locale>.
AC_LANG_PUSH(C++)
AC_CHECK_HEADERS([locale], [], [], [])
AC_LANG_POP(C++)
# Check whether we have the personality() syscall, which allows us to
# do i686-linux builds on x86_64-linux machines.
AC_CHECK_HEADERS([sys/personality.h])
AC_DEFUN([NEED_PROG],
[
AC_PATH_PROG($1, $2)