Make --disable-blocking-random and --disable-debug no-ops

This commit is contained in:
Frank Denis 2013-08-18 14:06:00 -06:00
parent 9c1596194e
commit 74031ee550

View File

@ -76,7 +76,11 @@ AC_ARG_ENABLE(pie,
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], [1], [Use blocking random])]) [
AS_IF([test "x$enableval" = "xyes"], [
AC_DEFINE([USE_BLOCKING_RANDOM], [1], [Use blocking random])
])
])
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)],
@ -92,18 +96,20 @@ AC_ARG_WITH(safecode,
AC_ARG_ENABLE(debug, AC_ARG_ENABLE(debug,
[AS_HELP_STRING(--enable-debug,For maintainers only - please do not use)], [AS_HELP_STRING(--enable-debug,For maintainers only - please do not use)],
[ [
AS_IF([test "x$LX_CFLAGS" = "xNONE"], [ AS_IF([test "x$enableval" = "xyes"], [
nxflags="" AS_IF([test "x$LX_CFLAGS" = "xNONE"], [
for flag in `echo $CFLAGS`; do nxflags=""
case "$flag" in for flag in `echo $CFLAGS`; do
-O*) ;; case "$flag" in
-g*) ;; -O*) ;;
*) AS_VAR_APPEND([nxflags], [" $flag"]) ;; -g*) ;;
esac *) AS_VAR_APPEND([nxflags], [" $flag"]) ;;
done esac
CFLAGS="$nxflags -O0 -g3" done
CFLAGS="$nxflags -O0 -g3"
])
CPPFLAGS="$CPPFLAGS -DDEBUG=1"
]) ])
CPPFLAGS="$CPPFLAGS -DDEBUG=1"
]) ])
AC_SUBST([MAINT]) AC_SUBST([MAINT])