mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 14:25:15 +00:00
Define ZLIB_CONST so we get the const version of the API.
This commit is contained in:
32
configure
vendored
32
configure
vendored
@@ -6323,6 +6323,38 @@ else
|
||||
fi
|
||||
|
||||
|
||||
if ${CPPFLAGS+:} false; then :
|
||||
|
||||
case " $CPPFLAGS " in #(
|
||||
*" -DZLIB_CONST "*) :
|
||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CPPFLAGS already contains -DZLIB_CONST"; } >&5
|
||||
(: CPPFLAGS already contains -DZLIB_CONST) 2>&5
|
||||
ac_status=$?
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||
test $ac_status = 0; } ;; #(
|
||||
*) :
|
||||
|
||||
as_fn_append CPPFLAGS " -DZLIB_CONST"
|
||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
|
||||
(: CPPFLAGS="$CPPFLAGS") 2>&5
|
||||
ac_status=$?
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||
test $ac_status = 0; }
|
||||
;;
|
||||
esac
|
||||
|
||||
else
|
||||
|
||||
CPPFLAGS=-DZLIB_CONST
|
||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
|
||||
(: CPPFLAGS="$CPPFLAGS") 2>&5
|
||||
ac_status=$?
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||
test $ac_status = 0; }
|
||||
|
||||
fi
|
||||
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable environment resetting by default" >&5
|
||||
$as_echo_n "checking whether to enable environment resetting by default... " >&6; }
|
||||
# Check whether --enable-env_reset was given.
|
||||
|
@@ -1420,6 +1420,7 @@ AC_ARG_ENABLE(env_debug,
|
||||
AC_ARG_ENABLE(zlib,
|
||||
[AS_HELP_STRING([--enable-zlib[[=PATH]]], [Whether to enable or disable zlib])],
|
||||
[], [enable_zlib=yes])
|
||||
AX_APPEND_FLAG([-DZLIB_CONST], [CPPFLAGS])
|
||||
|
||||
AC_MSG_CHECKING(whether to enable environment resetting by default)
|
||||
AC_ARG_ENABLE(env_reset,
|
||||
|
Reference in New Issue
Block a user