How can I know the current configuration options, like with-cocoa, with-librsvg, with-modules(i.e. the options using when Emacs was built), of the running Emacs, programmatically?

  • M-x emacs-version tells you some info. M-x report-emacs-bug tells you much more (you need not finish submitting a bug report).
    – Drew
    Commented Jul 16, 2018 at 14:46

1 Answer 1


You can inspect the variable system-configuration-options with C-h v system-configuration-options

system-configuration-options is a variable defined in `C source code'. Its value is ""

Documentation: String containing the configuration options Emacs was built with.

In my case, the value is: "--host=x86_64-debian-linux-gnu --with-modules"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.