2024-03-25 05:21:02 +01:00
|
|
|
# Copyright (C) 2024 Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
|
|
|
|
#
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
AC_INIT([gnuboot],[0.1],[gnuboot@gnu.org])
|
|
|
|
AM_INIT_AUTOMAKE([foreign])
|
2023-08-24 00:26:18 +02:00
|
|
|
AC_CONFIG_FILES([
|
|
|
|
Makefile
|
|
|
|
resources/packages/i945-thinkpads-install-utilities/Makefile
|
|
|
|
])
|
|
|
|
|
|
|
|
AC_SUBST([GUIX_BUILD_CORES], [])
|
|
|
|
|
|
|
|
# --with-guix-build-cores
|
|
|
|
AC_ARG_WITH([guix-build-cores],
|
|
|
|
[AS_HELP_STRING([--with-guix-build-cores=N],
|
|
|
|
[Force guix build the use of up to N CPU cores for the build.
|
|
|
|
Lowering the number of cores used can help when there is not
|
|
|
|
enough RAM per core.])],
|
|
|
|
[GUIX_BUILD_CORES=$withval],
|
|
|
|
[GUIX_BUILD_CORES=0])
|
|
|
|
|
|
|
|
AC_CHECK_PROG([FOUND_GUIX], [guix], [guix])
|
|
|
|
AS_IF([test x"$FOUND_GUIX" = x""],
|
|
|
|
[AC_MSG_ERROR(
|
|
|
|
[guix was not found in PATH ($PATH)])])
|
|
|
|
|
|
|
|
AC_CHECK_PROG([FOUND_GUIX], [guix], [guix])
|
|
|
|
AS_IF([test x"$FOUND_GUIX" = x""],
|
|
|
|
[AC_MSG_ERROR(
|
|
|
|
[guix was not found in PATH ($PATH)])])
|
|
|
|
|
2024-03-25 05:21:02 +01:00
|
|
|
AC_OUTPUT
|
2023-08-24 00:26:18 +02:00
|
|
|
|
|
|
|
AS_ECHO(["Configuration options:"])
|
|
|
|
|
|
|
|
AS_ECHO([" GUIX_BUILD_CORES: $GUIX_BUILD_CORES"])
|