pike.git / src / post_modules / Nettle / configure.in

version» Context lines:

pike.git/src/post_modules/Nettle/configure.in:1: - # $Id: configure.in,v 1.23 2009/07/02 16:35:38 grubba Exp $ + # $Id: configure.in,v 1.24 2009/07/02 21:27:56 grubba Exp $   AC_INIT(nettle.cmod)   AC_CONFIG_HEADER(nettle_config.h)      AC_SET_MAKE      AC_MODULE_INIT()      if test "$with_nettle" = "no"; then    PIKE_FEATURE_WITHOUT(nettle)   else
pike.git/src/post_modules/Nettle/configure.in:76:    ])    AC_MSG_RESULT($pike_cv_nettle_struct_yarrow256_ctx_seed_file);    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> + /* Note: Old Nettles had the nettle_crypt_func typedef directly +  * in <nettle/nettle-meta.h> while more modern have it in +  * <nettle/nettle-types.h>. Since <nettle/nettle-meta.h> +  * pulls in <nettle/nettle-types.h> it should be sufficient. +  */ + #include <nettle/nettle-meta.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)