You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

57 lines
1.5 KiB

  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ(2.68)
  4. AC_INIT([guix], [0.0], [guile-user@gnu.org])
  5. AC_CONFIG_AUX_DIR([build-aux])
  6. AM_INIT_AUTOMAKE([1.11 foreign silent-rules subdir-objects \
  7. color-tests parallel-tests])
  8. AC_CONFIG_SRCDIR([guix.scm])
  9. AC_CONFIG_MACRO_DIR([m4])
  10. guilemoduledir="${datarootdir}/guile/site/2.0"
  11. AC_SUBST([guilemoduledir])
  12. AC_CANONICAL_HOST
  13. PKG_CHECK_MODULES([GUILE], [guile-2.0])
  14. AC_PATH_PROG([GUILE], [guile])
  15. AC_PATH_PROG([GUILD], [guild])
  16. AC_ARG_WITH([nix-prefix],
  17. [AS_HELP_STRING([--with-nix-prefix=DIR], [search for Nix in DIR])],
  18. [case "$withval" in
  19. yes|no) ;;
  20. *) PATH="$withval/bin:$PATH"; export PATH;;
  21. esac],
  22. [])
  23. AC_PATH_PROG([NIX_INSTANTIATE], [nix-instantiate])
  24. AC_PATH_PROG([NIX_HASH], [nix-hash])
  25. if test "x$NIX_INSTANTIATE$NIX_HASH" = "x"; then
  26. AC_MSG_ERROR([Nix programs not found; please install Nix or use `--with-nix-prefix'.])
  27. fi
  28. AC_ARG_WITH([nixpkgs],
  29. [AS_HELP_STRING([--with-nixpkgs=DIR], [search for Nixpkgs in DIR])],
  30. [case "$withval" in
  31. yes|no) AC_MSG_ERROR([Please use `--with-nixpkgs=DIR'.]);;
  32. *) NIXPKGS="$withval";;
  33. esac],
  34. [])
  35. if test -f "$NIXPKGS/default.nix"; then
  36. AC_MSG_CHECKING([for Nixpkgs source tree])
  37. AC_MSG_RESULT([$NIXPKGS])
  38. AC_SUBST([NIXPKGS])
  39. else
  40. AC_MSG_WARN([Nixpkgs not found; this will prevent most tests from running.])
  41. AC_MSG_WARN([Please use `--with-nixpkgs'.])
  42. fi
  43. AC_CONFIG_FILES([Makefile])
  44. AC_OUTPUT