From: Victor Wagner Date: Thu, 1 Oct 2015 14:04:30 +0000 (+0300) Subject: Fixed compilation of gosthash12 on little-endian arch X-Git-Url: http://www.wagner.pp.ru/gitweb/?a=commitdiff_plain;h=00769333ead1e655d61f1ba38819b98600888474;p=openssl-gost%2Fengine.git Fixed compilation of gosthash12 on little-endian arch --- diff --git a/Makefile.am b/Makefile.am index 42564c0..7470609 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,5 +1,6 @@ enginedir=@ENGINEDIR@ PERL=@PERL@ +AM_CPPFLAGS=@AM_CPPFLAGS@ srcdir=. lib_LTLIBRARIES=libgost.la libgost_enginedir=$(enginedir) diff --git a/configure.ac b/configure.ac index d1626f4..b7fd02b 100644 --- a/configure.ac +++ b/configure.ac @@ -10,6 +10,7 @@ AC_ARG_WITH([enginedir], [AS_HELP_STRING([--with-enginedir],[specify location of OpenSSL engines])], [ENGINEDIR="$withval"]) AC_SUBST(ENGINEDIR) +AC_C_BIGENDIAN([],[AM_CPPFLAGS="-DL_ENDIAN"],[],[]) # Checks for programs. AC_PROG_CC @@ -18,5 +19,6 @@ AC_PROG_LIBTOOL AC_CHECK_PROG([PERL],[perl],[perl],[AC_MSG_ERROR([*** perl not found])]) # Checks for libraries. AC_CHECK_LIB([crypto], [ENGINE_new], [], [AC_MSG_ERROR([*** libcrypto not found])]) +AC_SUBST(AM_CPPFLAGS) AC_CONFIG_FILES([Makefile test/Makefile]) AC_OUTPUT