[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] configure.ac: add --with-bdw-gc option
From: |
Mohammad-Reza Nabipoor |
Subject: |
[PATCH] configure.ac: add --with-bdw-gc option |
Date: |
Tue, 27 Feb 2024 09:53:52 +0100 |
This is useful in systems (like FreeBSD) which offer different
variants of Boehm-GC: bdw-gc and bdw-gc-threaded.
To compile on FreeBSD, we have to use the threaded variant:
--with-bdw-gc=bdw-gc-threaded
2024-02-27 Mohammad-Reza Nabipoor <mnabipoor@gnu.org>
* configure.ac (BDW_GC): Add --with-bdw-gc to be able to specify
a different pkg-config filename.
---
ChangeLog | 5 +++++
configure.ac | 8 +++++++-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 5c038cda..0bf1149e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-02-27 Mohammad-Reza Nabipoor <mnabipoor@gnu.org>
+
+ * configure.ac (BDW_GC): Add --with-bdw-gc to be able to specify
+ a different pkg-config filename.
+
2024-02-25 Mohammad-Reza Nabipoor <mnabipoor@gnu.org>
* libpoke/pkl.c (pkl_resolve_module): Handle failure of `asprintf'.
diff --git a/configure.ac b/configure.ac
index f0357c03..4f7b0c2d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -184,8 +184,14 @@ AC_SUBST([RAS_AWK])
dnl The Boehm-Weiser garbage collector
+AC_ARG_WITH([bdw_gc],
+ [AS_HELP_STRING([--with-bdw-gc],
+ [name of BDW-GC pkg-config file (default is bdw-gc)])],
+ [bdw_gc="$withval"],
+ [bdw_gc=bdw-gc])
+
PKG_PROG_PKG_CONFIG
-PKG_CHECK_MODULES(BDW_GC,[bdw-gc],[have_gc=yes],[have_gc=no])
+PKG_CHECK_MODULES(BDW_GC,[$bdw_gc],[have_gc=yes],[have_gc=no])
dnl Jitter
--
2.43.2
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] configure.ac: add --with-bdw-gc option,
Mohammad-Reza Nabipoor <=