mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-23 20:15:19 -07:00
CurveCP is optional
This commit is contained in:
parent
926803f996
commit
f5af42f48d
@ -43,6 +43,9 @@ then follow the ritual:
|
||||
./configure
|
||||
make && make check && make install
|
||||
|
||||
[CurveCP](http://curvecp.org/) tools can be installed as well,
|
||||
provided that `--enable-curvecp` has been given to the `./configure` command.
|
||||
|
||||
## Comparison with vanilla NaCl
|
||||
|
||||
Sodium does not ship C++ bindings. These might be part of a distinct
|
||||
|
25
configure.ac
25
configure.ac
@ -179,22 +179,15 @@ AC_ARG_ENABLE(blocking-random,
|
||||
[AS_HELP_STRING(--enable-blocking-random,Use /dev/random instead of /dev/urandom)],
|
||||
[AC_DEFINE([USE_BLOCKING_RANDOM], [], [Use blocking random])])
|
||||
|
||||
AC_ARG_ENABLE(debug,
|
||||
[AS_HELP_STRING(--enable-debug,For maintainers only - please do not use)],
|
||||
[
|
||||
AS_IF([test "x$LX_CFLAGS" = "xNONE"], [
|
||||
nxflags=""
|
||||
for flag in `echo $CFLAGS`; do
|
||||
case "$flag" in
|
||||
-O*) ;;
|
||||
-g*) ;;
|
||||
*) AS_VAR_APPEND([nxflags], [" $flag"]) ;;
|
||||
esac
|
||||
done
|
||||
CFLAGS="$nxflags -O0 -g3"
|
||||
])
|
||||
CPPFLAGS="$CPPFLAGS -DDEBUG=1"
|
||||
])
|
||||
AC_ARG_ENABLE(blocking-random,
|
||||
[AS_HELP_STRING(--enable-blocking-random,Use /dev/random instead of /dev/urandom)],
|
||||
[AC_DEFINE([USE_BLOCKING_RANDOM], [], [Use blocking random])])
|
||||
|
||||
curvecp=disabled
|
||||
AC_ARG_ENABLE(curvecp,
|
||||
[AS_HELP_STRING(--enable-curvecp,Compile and install curvecp tools)],
|
||||
[curvecp=enabled])
|
||||
AM_CONDITIONAL(CURVECP, test x$curvecp = xenabled)
|
||||
|
||||
AC_ARG_WITH(safecode,
|
||||
[AS_HELP_STRING(--with-safecode,For maintainers only - please do not use)],
|
||||
|
@ -1,4 +1,8 @@
|
||||
|
||||
SUBDIRS = \
|
||||
libsodium \
|
||||
libsodium
|
||||
|
||||
if CURVECP
|
||||
SUBDIRS += \
|
||||
curvecp
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user