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.
 
 
 
 
 
 

91 lines
2.3 KiB

  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ(2.68)
  4. AC_INIT([Guix], [0.1], [guile-user@gnu.org])
  5. AC_CONFIG_AUX_DIR([build-aux])
  6. AM_INIT_AUTOMAKE([1.11 gnu silent-rules subdir-objects \
  7. color-tests parallel-tests])
  8. AC_CONFIG_SRCDIR([guix.scm])
  9. AC_CONFIG_MACRO_DIR([m4])
  10. AM_GNU_GETTEXT([external])
  11. AM_GNU_GETTEXT_VERSION([0.18.1])
  12. guilemoduledir="${datarootdir}/guile/site/2.0"
  13. AC_SUBST([guilemoduledir])
  14. AC_CANONICAL_HOST
  15. PKG_CHECK_MODULES([GUILE], [guile-2.0])
  16. AC_PATH_PROG([GUILE], [guile])
  17. AC_PATH_PROG([GUILD], [guild])
  18. if test "x$GUILD" = "x"; then
  19. AC_MSG_ERROR(['guild' binary not found; please check your guile-2.x installation.])
  20. fi
  21. AC_ARG_WITH([nix-prefix],
  22. [AS_HELP_STRING([--with-nix-prefix=DIR], [search for Nix in DIR])],
  23. [case "$withval" in
  24. yes|no) ;;
  25. *)
  26. NIX_PREFIX="$withval"
  27. PATH="$NIX_PREFIX/bin:$PATH"; export PATH
  28. AC_SUBST([NIX_PREFIX])
  29. ;;
  30. esac],
  31. [])
  32. AC_PATH_PROG([NIX_INSTANTIATE], [nix-instantiate])
  33. AC_PATH_PROG([NIX_HASH], [nix-hash])
  34. if test "x$NIX_INSTANTIATE$NIX_HASH" = "x"; then
  35. AC_MSG_ERROR([Nix programs not found; please install Nix or use `--with-nix-prefix'.])
  36. fi
  37. AC_ARG_WITH([nixpkgs],
  38. [AS_HELP_STRING([--with-nixpkgs=DIR], [search for Nixpkgs in DIR])],
  39. [case "$withval" in
  40. yes|no) AC_MSG_ERROR([Please use `--with-nixpkgs=DIR'.]);;
  41. *) NIXPKGS="$withval";;
  42. esac],
  43. [])
  44. AC_MSG_CHECKING([for Nixpkgs source tree])
  45. if test -f "$NIXPKGS/default.nix"; then
  46. AC_MSG_RESULT([$NIXPKGS])
  47. AC_SUBST([NIXPKGS])
  48. else
  49. AC_MSG_RESULT([not found])
  50. fi
  51. AC_ARG_WITH([libgcrypt-prefix],
  52. [AS_HELP_STRING([--with-libgcrypt-prefix=DIR], [search for GNU libgcrypt in DIR])],
  53. [case "$withval" in
  54. yes|no)
  55. LIBGCRYPT="libgcrypt"
  56. ;;
  57. *)
  58. LIBGCRYPT="$withval/lib/libgcrypt"
  59. ;;
  60. esac],
  61. [LIBGCRYPT="libgcrypt"])
  62. dnl Library name suitable for `dynamic-link'.
  63. AC_MSG_CHECKING([for libgcrypt shared library name])
  64. AC_MSG_RESULT([$LIBGCRYPT])
  65. AC_SUBST([LIBGCRYPT])
  66. AC_CONFIG_FILES([Makefile
  67. po/Makefile.in
  68. guix-build
  69. guix-download
  70. guix-package
  71. pre-inst-env])
  72. AC_CONFIG_COMMANDS([commands-exec],
  73. [chmod +x guix-build guix-download guix-package pre-inst-env])
  74. AC_OUTPUT