package dune-configurator

All checked builds pass
  1. Overview
  2. Docs
Helper library for gathering system configuration

Install

dune-project
 Dependency

Authors

Maintainers

Sources

dune-3.25.0.tbz
sha256=1d706779fa8405769a1ae667e4baaf4220ed87ec9d8be9d4fea0cf75bd79013b
sha512=5a03cac721d558b75d68888be0fab149bff7dd3e21a42ea7ac127e44d82b1d6b0454eb4fc9d2395815c5faecd66d4b553e6226508b788bd5a60530b457ecbd19

Description

dune-configurator is a small library that helps writing OCaml scripts that test features available on the system, in order to generate config.h files for instance. Among other things, dune-configurator allows one to:

  • test if a C program compiles
  • query pkg-config
  • import #define from OCaml header files
  • generate config.h file

Added to opam-repository:

README

Dune

A Composable Build System for OCaml

Main Workflow Release License Contributors

Dune is a build system for OCaml. It provides a consistent experience and takes care of the low-level details of OCaml compilation. You need only to provide a description of your project, and Dune will do the rest.

Dune implements a scheme that's inspired from the one used inside Jane Street and adapted to the open source world. It has matured over a long time and is used daily by hundreds of developers, meaning it's highly tested and productive.

Dune comes with a manual. If you want to get started without reading too much, look at the quick start guide or watch this introduction video.

The example directory contains examples of projects using Dune.

How does it work?

Dune reads project metadata from dune files, which are static files with a simple S-expression syntax. It uses this information to setup build rules, generate configuration files for development tools such as Merlin, handle installation, etc.

Dune itself is fast, has very little overhead, and supports parallel builds on all platforms. It has no system dependencies. OCaml is all you need to build Dune and packages using Dune.

In particular, one can install OCaml on Windows with a binary installer and then use only the Windows Console to build Dune and packages using Dune.

Strengths

Composable

Dune is composable, meaning that multiple Dune projects can be arranged together, leading to a single build that Dune knows how to execute. This allows for monorepos of projects.

Dune makes simultaneous development on multiple packages a trivial task.

Gracefully Handles Multi-Package Repositories

Dune knows how to handle repositories containing several packages. When building via opam, it is able to correctly use libraries that were previously installed, even if they are already present in the source tree.

The magic invocation is:

$ dune build --only-packages <package-name> @install

Build Against Several Configurations at Once

Dune can build a given source code repository against several configurations simultaneously. This helps maintaining packages across several versions of OCaml, as you can test them all at once without hassle.

In particular, this makes it easy to handle cross-compilation. This feature requires opam.

Installation

Requirements

Dune requires OCaml version 4.14.0 to build itself and can build OCaml projects using OCaml 4.02.3 or greater.

Installation

We recommended installing Dune via the opam package manager:

$ opam install dune

If you are new to opam, make sure to run eval $(opam config env) to make dune available in your PATH. The dune binary is self-contained and relocatable, so you can safely copy it somewhere else to make it permanently available.

You can also build it manually with:

$ make release
$ make install

If you do not have make, you can do the following:

$ ocaml boot/bootstrap.ml
$ ./dune.exe build -p dune --profile dune-bootstrap
$ ./dune.exe install dune

The first command builds the dune.exe binary. The second builds the additional files installed by Dune, such as the man pages, and the last simply installs all of that on the system.

Please note: unless you ran the optional ./configure script, you can simply copy dune.exe anywhere and it will just work. dune is fully relocatable and discovers its environment at runtime rather than hard-coding it at compilation time.

Support

Issues Discussions Discuss OCaml Discord

If you have questions or issues about Dune, you can ask in our GitHub discussions page or open a ticket on GitHub.

Dependencies (4)

  1. csexp >= "1.5.0"
  2. base-unix
  3. ocaml >= "4.14"
  4. dune >= "3.25"

Dev Dependencies (1)

  1. odoc with-doc

Optional Dependencies

None

  1. ahrocksdb
  2. albatross
  3. alsa >= "0.3.0"
  4. alt-ergo-free >= "2.4.3"
  5. alt-ergo-lib >= "2.4.0" & < "2.5.1"
  6. antic >= "0.2.3" & < "0.4.0"
  7. ao >= "0.2.2"
  8. arb >= "0.2.3" & < "0.4.0"
  9. argon2 >= "1.0.2"
  10. async_ssl
  11. bancos
  12. bank
  13. base
  14. base64 >= "3.3.0" & < "3.5.0"
  15. bigstringaf >= "0.9.1"
  16. binaryen >= "0.8.1" & < "0.14.0" | >= "0.17.1"
  17. bjack >= "0.1.6"
  18. bls12-381 < "0.4.1"
  19. bls12-381-js-gen
  20. bls12-381-legacy
  21. bls12-381-unix
  22. bwrap
  23. cairo2 >= "0.6"
  24. calcium >= "0.2.3" & < "0.4.0"
  25. camlimages >= "5.0.3"
  26. checkseum >= "0.2.0"
  27. class_group_vdf >= "0.0.4"
  28. containers
  29. containers-thread
  30. crlibm >= "0.3"
  31. crypt >= "2.0"
  32. cryptokit >= "1.16.1"
  33. ctypes >= "0.21.1"
  34. ctypes-foreign >= "0.21.1"
  35. ctypes-zarith
  36. curl
  37. curses >= "1.0.9"
  38. deepseek
  39. diffast-misc = "0.3.5.1"
  40. dkml-c-probe
  41. dssi >= "0.1.3"
  42. eigen >= "0.3.2"
  43. extunix >= "0.3.1"
  44. faad >= "0.5.0"
  45. fdkaac >= "0.3.2"
  46. ffmpeg-av
  47. ffmpeg-avcodec
  48. ffmpeg-avdevice
  49. ffmpeg-avfilter
  50. ffmpeg-avutil
  51. ffmpeg-swresample
  52. ffmpeg-swscale
  53. fftw3
  54. fiat-p256
  55. flac
  56. flint >= "0.2.3"
  57. frama-c >= "26.0~beta"
  58. freetds >= "0.7"
  59. frei0r >= "0.1.2"
  60. fuse3
  61. GT = "0.5.4"
  62. gd >= "1.1"
  63. gen >= "0.5.3" & < "1.1"
  64. gettext-stub
  65. glfw-ocaml >= "3.2.1-1"
  66. goblint-cil >= "2.0.0"
  67. graphics
  68. gsl = "1.24.0" | >= "1.24.2"
  69. gstreamer >= "0.3.1"
  70. guile
  71. hdf5
  72. hexaly
  73. hidapi >= "1.1"
  74. highs
  75. hugin >= "1.0.0~alpha1"
  76. hxd >= "0.2.0"
  77. interval_base
  78. interval_crlibm < "1.6"
  79. io-page < "2.4.0"
  80. iomux
  81. iter < "1.7"
  82. jack
  83. jst-config
  84. kaun-board
  85. krb
  86. lablqml
  87. lacaml >= "11.0.2"
  88. ladspa >= "0.2.0"
  89. lame >= "0.3.4"
  90. lbfgs >= "0.9.1"
  91. libbinaryen < "105.1.0" | >= "107.0.1"
  92. libmojave
  93. lilv
  94. llama
  95. llama-cpp-ocaml
  96. lmdb >= "1.0" & < "1.1.3"
  97. lo >= "0.2.0"
  98. lwt >= "4.3.0"
  99. lz4 >= "1.3.0"
  100. lzo >= "0.0.3"
  101. mad >= "0.5.0"
  102. mariadb >= "1.2.0"
  103. memtrace_viewer < "v0.15.0"
  104. mesh >= "0.9.5"
  105. mesh-easymesh >= "0.9.5"
  106. mindstorm >= "0.8"
  107. mindstorm-lwt
  108. miou >= "0.5.0"
  109. mirage-clock < "4.2.0"
  110. mirage-clock-lwt
  111. mirage-clock-unix >= "4.2.0"
  112. mirage-crypto
  113. mirage-crypto-ec
  114. mirage-crypto-rng
  115. mirage-crypto-rng-async
  116. mlmpfr >= "4.2.0"
  117. mm >= "0.7.0"
  118. mosaique
  119. mpg123
  120. multicont >= "1.0.1"
  121. mysql8
  122. nx
  123. OCanren
  124. OCanren-ppx
  125. ocaml-canvas
  126. ocaml-protoc-plugin >= "6.1.0"
  127. ocaml_intrinsics
  128. ocamlfuse
  129. ocgtk >= "0.1~preview2"
  130. ochre
  131. odepack >= "0.6.9"
  132. ogg >= "1.0.0"
  133. oniguruma >= "0.1.1"
  134. opus
  135. ortools_solvers < "9.15.0-1"
  136. otaglibc
  137. owebview
  138. owl >= "0.5.0"
  139. owl-base >= "0.5.0" & < "0.7.0"
  140. ozstd
  141. parmap >= "1.1.1"
  142. pcre >= "7.3.5" & < "7.4.2" | >= "7.4.4"
  143. pcre2
  144. plplot >= "5.11.0-1"
  145. poll
  146. portaudio >= "0.2.2"
  147. posix-getopt >= "2.0.0"
  148. posix-socket >= "3.0.0"
  149. postgresql >= "4.4.1" & < "4.5.1" | >= "4.6.0"
  150. ppx_monad >= "0.2.0"
  151. pulseaudio >= "0.1.4"
  152. qcaml
  153. qrencode
  154. raygui < "1.5.1"
  155. raylib >= "0.2.2"
  156. robotstxt
  157. rowex
  158. rune >= "1.0.0~alpha1"
  159. samplerate >= "0.1.6"
  160. secp256k1 >= "0.4.1"
  161. secp256k1-internal >= "0.2.0"
  162. secret
  163. shine >= "0.2.2"
  164. soundtouch >= "0.1.9"
  165. speex
  166. sqlite3 >= "4.4.1"
  167. srt
  168. ssl >= "0.5.6"
  169. swipl
  170. taglib >= "0.3.7"
  171. tensorflow
  172. theora
  173. torch
  174. trexio
  175. tsdl-image >= "0.3.2"
  176. tsdl-mixer >= "0.3.2"
  177. tsdl-ttf >= "0.3.2" & < "0.7"
  178. uring
  179. vorbis
  180. wasmtime
  181. waylaunch
  182. xgboost
  183. xkbcommon
  184. yaml >= "1.0.0"
  185. zmq >= "5.1.0"

Conflicts

None

Build status

Results of building dune-configurator with each compiler on check.ci.ocaml.org, run of against opam-repository 8d8d144. All results for this package.

Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.

Version OCaml 4.11 OCaml 4.14 OCaml 5.2 OCaml 5.4 OCaml 5.5
3.25.0 (this version) n/a good good good good
3.22.2 good good good good good
  • good Package successfully built
  • partial One of the dependencies failed to build
  • bad Package failed to build
  • n/a Package is not available in this environment
  • internal Internal failure