Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Why3
why3
Commits
84ff516b
Commit
84ff516b
authored
Jun 28, 2012
by
Andrei Paskevich
Browse files
configure: add --enable-relocation
parent
d7b69872
Changes
2
Hide whitespace changes
Inline
Side-by-side
configure.in
View file @
84ff516b
...
...
@@ -66,6 +66,12 @@ AC_ARG_ENABLE(local,
[ --enable-local use Why3 in the build directory (no installation)],,
enable_local=no)
# RELOCATABLE INSTALLATION
AC_ARG_ENABLE(relocation,
[ --enable-relocation allow for later relocation of Why3 installation],,
enable_relocation=no)
# NATIVE
AC_ARG_ENABLE(native-code,
...
...
@@ -118,6 +124,13 @@ AC_ARG_ENABLE(profiling,
[ --enable-profiling enable profiling],,
enable_profiling=no)
# either relocation or local, not both
if test "$enable_relocation" = yes ; then
if test "$enable_local" = yes ; then
AC_MSG_ERROR(cannot use --enable-relocation and --enable-local at the same time.)
fi
fi
# Check for arch/OS
AC_MSG_CHECKING(executable suffix)
...
...
@@ -525,6 +538,8 @@ AC_SUBST(enable_local)
AC_SUBST(LOCALDIR)
AC_SUBST(LOCALBIN)
AC_SUBST(enable_relocation)
dnl AC_SUBST(PSVIEWER)
dnl AC_SUBST(PDFVIEWER)
...
...
@@ -565,4 +580,5 @@ fi
echo "hypothesis selection : $enable_hypothesis_selection"
echo "debugging symbols : $enable_debug"
echo "profiling : $enable_profiling"
echo "relocatable install : $enable_relocation"
echo "localdir : $enable_local"
src/config.sh.in
View file @
84ff516b
...
...
@@ -2,13 +2,19 @@
config
=
src/config.ml
libdir
=
"
$LIBDIR
/why3"
datadir
=
"
$DATADIR
/why3"
libdir
=
"
\"
$LIBDIR
/why3
\"
"
datadir
=
"
\"
$DATADIR
/why3
\"
"
localdir
=
"None"
if
[
"@enable_local@"
=
"yes"
]
;
then
libdir
=
"@LOCALDIR@/lib"
datadir
=
"@LOCALDIR@/share"
if
[
"@enable_relocation@"
=
"yes"
]
;
then
libdir
=
'Filename.concat (Filename.concat (Filename.dirname
(Filename.dirname Sys.executable_name)) "lib") "why3"'
datadir
=
'Filename.concat (Filename.concat (Filename.dirname
(Filename.dirname Sys.executable_name)) "share") "why3"'
localdir
=
"None"
elif
[
"@enable_local@"
=
"yes"
]
;
then
libdir
=
"
\"
@LOCALDIR@/lib
\"
"
datadir
=
"
\"
@LOCALDIR@/share
\"
"
localdir
=
"Some
\"
@LOCALDIR@
\"
"
fi
...
...
@@ -16,7 +22,7 @@ echo "
let version =
\"
@VERSION@
\"
let builddate =
\"
@BUILDDATE@
\"
let libdir =
\"
$libdir
\"
let datadir =
\"
$datadir
\"
let libdir =
$libdir
let datadir =
$datadir
let localdir =
$localdir
"
>
$config
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment