CurveCP is optional
This commit is contained in:
parent
926803f996
commit
f5af42f48d
@ -43,6 +43,9 @@ then follow the ritual:
|
|||||||
./configure
|
./configure
|
||||||
make && make check && make install
|
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
|
## Comparison with vanilla NaCl
|
||||||
|
|
||||||
Sodium does not ship C++ bindings. These might be part of a distinct
|
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)],
|
[AS_HELP_STRING(--enable-blocking-random,Use /dev/random instead of /dev/urandom)],
|
||||||
[AC_DEFINE([USE_BLOCKING_RANDOM], [], [Use blocking random])])
|
[AC_DEFINE([USE_BLOCKING_RANDOM], [], [Use blocking random])])
|
||||||
|
|
||||||
AC_ARG_ENABLE(debug,
|
AC_ARG_ENABLE(blocking-random,
|
||||||
[AS_HELP_STRING(--enable-debug,For maintainers only - please do not use)],
|
[AS_HELP_STRING(--enable-blocking-random,Use /dev/random instead of /dev/urandom)],
|
||||||
[
|
[AC_DEFINE([USE_BLOCKING_RANDOM], [], [Use blocking random])])
|
||||||
AS_IF([test "x$LX_CFLAGS" = "xNONE"], [
|
|
||||||
nxflags=""
|
curvecp=disabled
|
||||||
for flag in `echo $CFLAGS`; do
|
AC_ARG_ENABLE(curvecp,
|
||||||
case "$flag" in
|
[AS_HELP_STRING(--enable-curvecp,Compile and install curvecp tools)],
|
||||||
-O*) ;;
|
[curvecp=enabled])
|
||||||
-g*) ;;
|
AM_CONDITIONAL(CURVECP, test x$curvecp = xenabled)
|
||||||
*) AS_VAR_APPEND([nxflags], [" $flag"]) ;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
CFLAGS="$nxflags -O0 -g3"
|
|
||||||
])
|
|
||||||
CPPFLAGS="$CPPFLAGS -DDEBUG=1"
|
|
||||||
])
|
|
||||||
|
|
||||||
AC_ARG_WITH(safecode,
|
AC_ARG_WITH(safecode,
|
||||||
[AS_HELP_STRING(--with-safecode,For maintainers only - please do not use)],
|
[AS_HELP_STRING(--with-safecode,For maintainers only - please do not use)],
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
|
|
||||||
SUBDIRS = \
|
SUBDIRS = \
|
||||||
libsodium \
|
libsodium
|
||||||
|
|
||||||
|
if CURVECP
|
||||||
|
SUBDIRS += \
|
||||||
curvecp
|
curvecp
|
||||||
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user