Skip to content

Commit

Permalink
Run autoupdate and libtoolize if available
Browse files Browse the repository at this point in the history
  • Loading branch information
noloader committed Jul 27, 2018
1 parent f201bc9 commit ed91b27
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
15 changes: 12 additions & 3 deletions TestScripts/cryptest-autotools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,24 @@ fi
# mv libcryptopp.pc.in.fixed libcryptopp.pc.in
#fi

# Run autoreconf twice on failure. Also see
# https://github.com/tracebox/tracebox/issues/57

mkdir -p m4/

if [[ ! -z $(command -v autoupdate) ]]; then
autoupdate
fi

if ! autoreconf --force --install --warnings=all; then
echo "autoreconf failed"
[[ "$0" = "${BASH_SOURCE[0]}" ]] && exit 1 || return 1
if [[ ! -z $(command -v libtoolize) ]]; then
libtoolize
fi

if ! autoreconf -vfi --warnings=all; then
if ! autoreconf -vfi; then
echo "autoreconf failed"
[[ "$0" = "${BASH_SOURCE[0]}" ]] && exit 1 || return 1
fi
fi

if ! ./configure; then
Expand Down
4 changes: 2 additions & 2 deletions padlkrng.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ void PadlockRNG::GenerateBlock(byte *output, size_t size)

: "=g" (m_msr) : "g" (m_buffer.data()), "g" (m_divisor)
#if (CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X64)
: "rax", "rbx", "rdx", "rdi", "cc"
: "rax", "rdx", "rdi", "cc"
#else
: "eax", "ebx", "edx", "edi", "cc"
: "eax", "edx", "edi", "cc"
#endif
);

Expand Down

0 comments on commit ed91b27

Please sign in to comment.