Define USE_*, HAVE_* and CROSS_COMPILING macros to 1 instead of just

defining then, for consistency.
This commit is contained in:
Frank Denis 2013-03-08 09:13:48 -08:00
parent fa79a693a3
commit 421b0cf34b

View File

@ -33,7 +33,7 @@ AC_USE_SYSTEM_EXTENSIONS
CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2" CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
AS_IF([test "$cross_compiling" != no], AS_IF([test "$cross_compiling" != no],
AC_DEFINE(CROSS_COMPILING,,[define if you are cross-compiling]) AC_DEFINE(CROSS_COMPILING, [1], [define if you are cross-compiling])
) )
AX_CHECK_COMPILE_FLAG([-fPIC], [ AX_CHECK_COMPILE_FLAG([-fPIC], [
@ -179,11 +179,11 @@ AC_ARG_ENABLE(ssp,
AC_ARG_ENABLE(blocking-random, 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], [1], [Use blocking random])])
AC_ARG_ENABLE(blocking-random, 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], [1], [Use blocking random])])
curvecp=disabled curvecp=disabled
AC_ARG_ENABLE(curvecp, AC_ARG_ENABLE(curvecp,