diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2025-11-30 14:31:34 +0900 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2025-11-30 14:31:34 +0900 |
| commit | d7cfd275f881bbd29d95dfdba585f055dd89ba44 (patch) | |
| tree | 40d589bf51d24d397b11c976fe70387bc965f89d | |
| parent | 806e554cc027b71cf0970fd4eb8f9ee5f1ccf128 (diff) | |
Set DESTDIR if relative loading
When relative loading, `prefix` makes no sense actually. Use the
given (or default) path as `DESTDIR` instead.
This change affects only when the relative loading is enabled and the
destdir is not given, and does not change the final installation path,
but makes the configuration options simpler a little.
| -rw-r--r-- | configure.ac | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 22baeabb32..21f2e5a466 100644 --- a/configure.ac +++ b/configure.ac @@ -4753,6 +4753,11 @@ AC_ARG_WITH(destdir, [DESTDIR="$withval"]) AC_SUBST(DESTDIR) +AS_IF([test "x$load_relative:$DESTDIR" = xyes:], [ + AS_IF([test "x$prefix" = xNONE], [DESTDIR="$ac_default_prefix"], [DESTDIR="$prefix"]) + prefix=/. +]) + AC_OUTPUT } |
