소스 검색

build: Bail out on unsupported platforms; add `--with-courage'.

* m4/guix.m4 (GUIX_ASSERT_SUPPORTED_SYSTEM): New macro.
* configure.ac: Use it.
gn-latest-20200428
Ludovic Courtès 7 년 전
부모
커밋
b97556d75c
2개의 변경된 파일30개의 추가작업 그리고 0개의 파일을 삭제
  1. +1
    -0
      configure.ac
  2. +29
    -0
      m4/guix.m4

+ 1
- 0
configure.ac 파일 보기

@@ -22,6 +22,7 @@ guilemoduledir="${datarootdir}/guile/site/2.0"
AC_SUBST([guilemoduledir])

GUIX_SYSTEM_TYPE
GUIX_ASSERT_SUPPORTED_SYSTEM

AC_ARG_WITH(store-dir,
AC_HELP_STRING([--with-store-dir=PATH],


+ 29
- 0
m4/guix.m4 파일 보기

@@ -70,6 +70,35 @@ AC_DEFUN([GUIX_SYSTEM_TYPE], [
AC_SUBST([guix_system])
])

dnl GUIX_ASSERT_SUPPORTED_SYSTEM
dnl
dnl Assert that this is a system to which the distro is ported.
AC_DEFUN([GUIX_ASSERT_SUPPORTED_SYSTEM], [
AC_REQUIRE([GUIX_SYSTEM_TYPE])

AC_ARG_WITH([courage], [AC_HELP_STRING([--with-courage],
[Assert that even if this platform is unsupported, you will be
courageous and port the GNU System distribution to it (see
"GNU Distribution" in the manual.)])],
[guix_courageous="$withval"],
[guix_courageous="no"])

# Currently only Linux-based systems are supported, and only on some
# platforms.
case "$guix_system" in
x86_64-linux|i686-linux)
;;
*)
if test "x$guix_courageous" = "xyes"; then
AC_MSG_WARN([building Guix on `$guix_system', which is not supported])
else
AC_MSG_ERROR([`$guix_system' is not a supported platform.
See "GNU Distribution" in the manual, or try `--with-courage'.])
fi
;;
esac
])

dnl GUIX_ASSERT_GUILE_FEATURES FEATURES
dnl
dnl Assert that FEATURES are provided by $GUILE.


불러오는 중...
취소
저장