aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/config.mllib1
-rw-r--r--config/coq_config.mli60
-rw-r--r--config/dune13
3 files changed, 74 insertions, 0 deletions
diff --git a/config/config.mllib b/config/config.mllib
new file mode 100644
index 0000000000..ce3ddfca69
--- /dev/null
+++ b/config/config.mllib
@@ -0,0 +1 @@
+Coq_config
diff --git a/config/coq_config.mli b/config/coq_config.mli
new file mode 100644
index 0000000000..33acceb1f0
--- /dev/null
+++ b/config/coq_config.mli
@@ -0,0 +1,60 @@
+(************************************************************************)
+(* * The Coq Proof Assistant / The Coq Development Team *)
+(* v * INRIA, CNRS and contributors - Copyright 1999-2018 *)
+(* <O___,, * (see CREDITS file for the list of authors) *)
+(* \VV/ **************************************************************)
+(* // * This file is distributed under the terms of the *)
+(* * GNU Lesser General Public License Version 2.1 *)
+(* * (see LICENSE file for the text of the license) *)
+(************************************************************************)
+
+val local : bool (* local use (no installation) *)
+
+(* The fields below are absolute paths *)
+val coqlib : string (* where the std library is installed *)
+val configdir : string (* where configuration files are installed *)
+val datadir : string (* where extra data files are installed *)
+val docdir : string (* where the doc is installed *)
+
+(* The fields below are paths relative to the installation prefix *)
+(* However, if an absolute path, it means discarding the actual prefix *)
+val coqlibsuffix : string (* std library relative to installation prefix *)
+val configdirsuffix : string (* config files relative to installation prefix *)
+val datadirsuffix : string (* data files relative to installation prefix *)
+val docdirsuffix : string (* doc directory relative to installation prefix *)
+
+val ocamlfind : string
+
+val caml_flags : string (* arguments passed to ocamlc (ie. CAMLFLAGS) *)
+
+val arch : string (* architecture *)
+val arch_is_win32 : bool
+
+val version : string (* version number of Coq *)
+val caml_version : string (* OCaml version used to compile Coq *)
+val caml_version_nums : int list (* OCaml version used to compile Coq by components *)
+val date : string (* release date *)
+val compile_date : string (* compile date *)
+val vo_magic_number : int
+val state_magic_number : int
+
+val all_src_dirs : string list
+
+val exec_extension : string (* "" under Unix, ".exe" under MS-windows *)
+
+val browser : string
+(** default web browser to use, may be overridden by environment
+ variable COQREMOTEBROWSER *)
+
+val gtk_platform : [`QUARTZ | `WIN32 | `X11]
+
+val has_natdynlink : bool
+
+val wwwcoq : string
+val wwwrefman : string
+val wwwbugtracker : string
+val wwwstdlib : string
+val localwwwrefman : string
+
+val bytecode_compiler : bool
+val native_compiler : bool
diff --git a/config/dune b/config/dune
new file mode 100644
index 0000000000..c146e7df67
--- /dev/null
+++ b/config/dune
@@ -0,0 +1,13 @@
+(library
+ (name config)
+ (synopsis "Coq Configuration Variables")
+ (public_name coq.config)
+ (wrapped false))
+
+; Dune doesn't use configure's output, but it is still necessary for
+; some Coq files to work; will be fixed in the future.
+(rule
+ (targets coq_config.ml coq_config.py Makefile)
+ (mode fallback)
+ (deps %{project_root}/configure.ml %{project_root}/dev/ocamldebug-coq.run (env_var COQ_CONFIGURE_PREFIX))
+ (action (chdir %{project_root} (run %{ocaml} configure.ml -no-ask -native-compiler no))))