From e6177a7994a0fbfbed5e11898b282429c2e54a8e Mon Sep 17 00:00:00 2001 From: Xavier Leroy Date: Wed, 30 May 2018 11:10:59 +0200 Subject: Install Coq development (.vo files) if requested (#232) .vo files are installed if configure options -install-coqdev or -clightgen or -coqdevdir are given. Installation directory is $(PREFIX)/lib/compcert/coq by default and can be changed by configure option -coqdevdir. Closes: #227 --- configure | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 03fc1471..4459e9d5 100755 --- a/configure +++ b/configure @@ -18,11 +18,13 @@ prefix='/usr/local' bindir='$(PREFIX)/bin' libdir='$(PREFIX)/lib/compcert' +coqdevdir='$(PREFIX)/lib/compcert/coq' toolprefix='' target='' has_runtime_lib=true has_standard_headers=true clightgen=false +install_coqdev=false responsefile="gnu" ignore_coq_version=false @@ -75,10 +77,12 @@ Options: -prefix Install in /bin and /lib/compcert -bindir Install binaries in -libdir Install libraries in + -coqdevdir Install Coq development (.vo files) in -toolprefix Prefix names of tools ("gcc", etc) with -no-runtime-lib Do not compile nor install the runtime support library -no-standard-headers Do not install nor use the standard .h headers - -clightgen Also compile the clightgen tool + -clightgen Also compile and install the clightgen tool + -install-coqdev Also install the Coq development (implied by -clightgen) -ignore-coq-version Accept to use experimental or unsupported versions of Coq ' @@ -96,6 +100,8 @@ while : ; do bindir="$2"; shift;; -libdir|--libdir) libdir="$2"; shift;; + -coqdevdir|--coqdevdir) + coqdevdir="$2"; install_coqdev=true; shift;; -toolprefix|--toolprefix) toolprefix="$2"; shift;; -no-runtime-lib) @@ -103,9 +109,12 @@ while : ; do -no-standard-headers) has_standard_headers=false;; -clightgen) - clightgen=true;; + clightgen=true + install_coqdev=true;; -ignore-coq-version|--ignore-coq-version) ignore_coq_version=true;; + -install-coqdev|--install-coqdev|-install-coq-dev|--install-coq-dev) + install_coqdev=true;; *) if test -n "$target"; then echo "$usage" 1>&2; exit 2; fi target="$1";; @@ -623,6 +632,7 @@ BINDIR=$bindir LIBDIR=$libdir MANDIR=$sharedir/man SHAREDIR=$sharedir +COQDEVDIR=$coqdevdir OCAML_OPT_COMP=$ocaml_opt_comp MENHIR_INCLUDES=$menhir_includes COMPFLAGS=-bin-annot @@ -646,6 +656,7 @@ CPREPRO_OPTIONS=$cprepro_options ENDIANNESS=$endianness HAS_RUNTIME_LIB=$has_runtime_lib HAS_STANDARD_HEADERS=$has_standard_headers +INSTALL_COQDEV=$install_coqdev LIBMATH=$libmath MODEL=$model SYSTEM=$system @@ -761,6 +772,7 @@ else bindirexp=`echo "$bindir" | sed -e "s|\\\$(PREFIX)|$prefix|"` libdirexp=`echo "$libdir" | sed -e "s|\\\$(PREFIX)|$prefix|"` +coqdevdirexp=`echo "$coqdevdir" | sed -e "s|\\\$(PREFIX)|$prefix|"` cat <