configure.ac: fix wrong constructions in environment setup for ENABLED_REPRODUCIBLE_BUILD.

This commit is contained in:
Daniel Pouzzner
2021-07-19 18:31:13 -05:00
parent f8d1befdff
commit fe94c36a7b

View File

@ -95,16 +95,16 @@ AC_ARG_ENABLE([reproducible-build],
xxx_ar_flags=$(ar --help 2>&1) xxx_ar_flags=$(ar --help 2>&1)
if test "$ENABLED_REPRODUCIBLE_BUILD" = "yes" if test "$ENABLED_REPRODUCIBLE_BUILD" = "yes"
then then
AS_CASE([$xxx_ar_flags],[*'use zero for timestamps and uids/gids'*],[: ${AR_FLAGS="Dcr"}]) AS_CASE([$xxx_ar_flags],[*'use zero for timestamps and uids/gids'*],[AR_FLAGS="Dcr"])
else else
AS_CASE([$xxx_ar_flags],[*'use actual timestamps and uids/gids'*],[: ${AR_FLAGS="Ucru"}]) AS_CASE([$xxx_ar_flags],[*'use actual timestamps and uids/gids'*],[AR_FLAGS="Ucru"])
fi fi
xxx_ranlib_flags=$(ranlib --help 2>&1) xxx_ranlib_flags=$(ranlib --help 2>&1)
if test "$ENABLED_REPRODUCIBLE_BUILD" = "yes" if test "$ENABLED_REPRODUCIBLE_BUILD" = "yes"
then then
AS_CASE([$xxx_ranlib_flags],[*'Use zero for symbol map timestamp'*],[: ${RANLIB="ranlib -D"}]) AS_CASE([$xxx_ranlib_flags],[*'Use zero for symbol map timestamp'*],[RANLIB="ranlib -D"])
else else
AS_CASE([$xxx_ranlib_flags],[*'Use actual symbol map timestamp'*],[: ${RANLIB="ranlib -U"}]) AS_CASE([$xxx_ranlib_flags],[*'Use actual symbol map timestamp'*],[RANLIB="ranlib -U"])
fi fi