Branch: Tag:

2009-07-02

2009-07-02 16:35:38 by Henrik Grubbström (Grubba) <grubba@grubba.org>

More Nettle 2.0 related fixes.
Added check for whether the nettle_crypt_func typedef is a pointer type or not.

Rev: src/post_modules/Nettle/acconfig.h:1.3
Rev: src/post_modules/Nettle/cipher.cmod:1.41
Rev: src/post_modules/Nettle/configure.in:1.23

1: - # $Id: configure.in,v 1.22 2009/07/02 09:18:14 grubba Exp $ + # $Id: configure.in,v 1.23 2009/07/02 16:35:38 grubba Exp $   AC_INIT(nettle.cmod)   AC_CONFIG_HEADER(nettle_config.h)   
78:    if test "x$pike_cv_nettle_struct_yarrow256_ctx_seed_file" = "xyes"; then    AC_DEFINE(HAVE_STRUCT_YARROW256_CTX_SEED_FILE)    fi +  +  AC_MSG_CHECKING([whether nettle_crypt_func is a pointer type]) +  AC_CACHE_VAL(pike_cv_nettle_crypt_func_is_pointer, [ +  pike_cv_nettle_crypt_func_is_pointer=no +  AC_TRY_COMPILE([ + #include <nettle/nettle-types.h> +  ], [ +  nettle_crypt_func foo = (nettle_crypt_func)(void *)0; +  return (int)foo; +  ], [ +  pike_cv_nettle_crypt_func_is_pointer=yes +  ]) +  ]) +  AC_MSG_RESULT($pike_cv_nettle_crypt_func_is_pointer); +  if test "x$pike_cv_nettle_crypt_func_is_pointer" = "xyes"; then +  AC_DEFINE(HAVE_NETTLE_CRYPT_FUNC_IS_POINTER) +  fi    else    if test "$ac_cv_lib_gmp_mpz_init:$ac_cv_lib_gmp___mpz_init:$ac_cv_lib_gmp___gmpz_init" = "no:no:no"; then    # No gmp found; enable it if possible.