[git] GCRYPT - branch, master, updated. libgcrypt-1.5.0-357-g2590a5d

by Jussi Kivilinna cvs at cvs.gnupg.org
Wed Nov 6 18:22:37 CET 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU crypto library".

The branch, master has been updated
       via  2590a5df6f5fc884614c8c379324027d2d61b9b5 (commit)
      from  84bcb400e7db7268abfc29b5ab1513b0c063b293 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 2590a5df6f5fc884614c8c379324027d2d61b9b5
Author: Jussi Kivilinna <jussi.kivilinna at iki.fi>
Date:   Wed Nov 6 19:05:09 2013 +0200

    Fix __builtin_bswap32/64 checks
    
    * configure.ac (gcry_cv_have_builtin_bswap32)
    (gcry_cv_have_builtin_bswap64): Change compile checks to link checks.
    --
    
    Patch changes compile checks to link checks for __builtin_bswap(32|64).
    Compiling obviously works with missing functions, linking not so much.
    
    Signed-off-by: Jussi Kivilinna <jussi.kivilinna at iki.fi>

diff --git a/configure.ac b/configure.ac
index e3471d0..c4f8776 100644
--- a/configure.ac
+++ b/configure.ac
@@ -779,8 +779,8 @@ AC_SUBST(FALLBACK_SOCKLEN_T)
 AC_CACHE_CHECK(for __builtin_bswap32,
        [gcry_cv_have_builtin_bswap32],
        [gcry_cv_have_builtin_bswap32=no
-        AC_COMPILE_IFELSE([AC_LANG_SOURCE(
-          [[int foo(int x) { return __builtin_bswap32(x); }]])],
+        AC_LINK_IFELSE([AC_LANG_PROGRAM([],
+          [int x = 0; int y = __builtin_bswap32(x); return y;])],
           [gcry_cv_have_builtin_bswap32=yes])])
 if test "$gcry_cv_have_builtin_bswap32" = "yes" ; then
    AC_DEFINE(HAVE_BUILTIN_BSWAP32,1,
@@ -794,8 +794,8 @@ fi
 AC_CACHE_CHECK(for __builtin_bswap64,
        [gcry_cv_have_builtin_bswap64],
        [gcry_cv_have_builtin_bswap64=no
-        AC_COMPILE_IFELSE([AC_LANG_SOURCE(
-          [[int foo(int x) { return __builtin_bswap64(x); }]])],
+        AC_LINK_IFELSE([AC_LANG_PROGRAM([],
+          [long long x = 0; long long y = __builtin_bswap64(x); return y;])],
           [gcry_cv_have_builtin_bswap64=yes])])
 if test "$gcry_cv_have_builtin_bswap64" = "yes" ; then
    AC_DEFINE(HAVE_BUILTIN_BSWAP64,1,

-----------------------------------------------------------------------

Summary of changes:
 configure.ac |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
The GNU crypto library
http://git.gnupg.org


_______________________________________________
Gnupg-commits mailing list
Gnupg-commits at gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-commits




More information about the Gcrypt-devel mailing list