diff options
| author | Mathieu Othacehe <m.othacehe@gmail.com> | 2018-11-23 10:56:49 +0900 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2019-01-17 14:04:21 +0100 |
| commit | 7d328e341a5caca995b6c18c38ae2e9ee07f7b7e (patch) | |
| tree | 3d26bc1fecaaec5c341d03734a3528b266de9969 /configure.ac | |
| parent | 9b9a5e3283168463545588f83748bb36411e68fe (diff) | |
configure: Disable installer build by default.
Only build installer if "--enable-installer" is passed. In that case only, the
support for Guile-newt becomes mandatory.
* configure.ac: Add --enable-installer argument. Export ENABLE_INSTALLER
conditional according to the argument value.
* gnu/local.mk (GNU_SYSTEM_MODULES): Remove installer modules and build them
only if ENABLE_INSTALLER is set.
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 83a9b87d77e..5d70de4beba 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -137,9 +137,18 @@ fi | |||
| 137 | 137 | ||
| 138 | dnl Guile-newt is used by the graphical installer. | 138 | dnl Guile-newt is used by the graphical installer. |
| 139 | GUILE_MODULE_AVAILABLE([have_guile_newt], [(newt)]) | 139 | GUILE_MODULE_AVAILABLE([have_guile_newt], [(newt)]) |
| 140 | |||
| 141 | AC_ARG_ENABLE([installer], | ||
| 142 | AS_HELP_STRING([--enable-installer], [Build the graphical installer sources.])) | ||
| 143 | |||
| 144 | AS_IF([test "x$enable_installer" = "xyes"], [ | ||
| 140 | if test "x$have_guile_newt" != "xyes"; then | 145 | if test "x$have_guile_newt" != "xyes"; then |
| 141 | AC_MSG_ERROR([Guile-newt could not be found; please install it.]) | 146 | AC_MSG_ERROR([Guile-newt could not be found; please install it.]) |
| 142 | fi | 147 | fi |
| 148 | ]) | ||
| 149 | |||
| 150 | AM_CONDITIONAL([ENABLE_INSTALLER], | ||
| 151 | [test "x$enable_installer" = "xyes"]) | ||
| 143 | 152 | ||
| 144 | dnl Make sure we have a full-fledged Guile. | 153 | dnl Make sure we have a full-fledged Guile. |
| 145 | GUIX_ASSERT_GUILE_FEATURES([regex posix socket net-db threads]) | 154 | GUIX_ASSERT_GUILE_FEATURES([regex posix socket net-db threads]) |
