feat: add 'harfbuzz to features

This commit is contained in:
Henrik Lissner 2023-03-22 23:25:25 -04:00
parent f70e382463
commit 3e81655b0e
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -107,12 +107,17 @@
emacs-version old-version))) emacs-version old-version)))
;;; Custom features ;;; Custom features
;; Since `system-configuration-features's docs state not to rely on it to test ;; Emacs needs a more consistent way to detect build features, and the docs
;; for features, let's give users an easier way to detect them. ;; claim `system-configuration-features' is not da way. Some features (that
;; don't represent packages) can be found in `features' (which `featurep'
;; consults), but aren't consistent, so I'll impose some consistency:
(if (bound-and-true-p module-file-suffix) (if (bound-and-true-p module-file-suffix)
(push 'dynamic-modules features)) (push 'dynamic-modules features))
(if (fboundp #'json-parse-string) (if (fboundp #'json-parse-string)
(push 'jansson features)) (push 'jansson features))
(let ((inhibit-changing-match-data t))
(if (string-match "HARFBUZZ" system-configuration-features) ; no alternative
(push 'harfbuzz features)))
;; `native-compile' exists whether or not it is functional (e.g. libgcc is ;; `native-compile' exists whether or not it is functional (e.g. libgcc is
;; available or not). This seems silly, so pretend it doesn't exist if it ;; available or not). This seems silly, so pretend it doesn't exist if it
;; isn't available. ;; isn't available.