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.21 2009/07/01 17:46:42 grubba Exp $ + # $Id: configure.in,v 1.22 2009/07/02 09:18:14 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:47:    AC_MSG_CHECKING([for idea.c])    # Have the patent-encumbered idea files been purged?    if test -f "$srcdir/idea.c" ; then    AC_MSG_RESULT([found])    AC_DEFINE([WITH_IDEA], 1, [idea.c available])    IDEA_OBJ=idea.o    else    AC_MSG_RESULT([no])    IDEA_OBJ=""    fi +  +  # These might have been purged from the Nettle lib to avoid GPL +  # contamination. +  AC_CHECK_FUNCS(nettle_blowfish_decrypt nettle_serpent_decrypt) +  +  # This is the recomended interface in Nettle 2.0. +  AC_CHECK_FUNCS(nettle_yarrow256_slow_reseed) +  +  AC_MSG_CHECKING([for struct yarrow256_ctx.seed_file]) +  AC_CACHE_VAL(pike_cv_nettle_struct_yarrow256_ctx_seed_file, [ +  pike_cv_nettle_struct_yarrow256_ctx_seed_file=no +  AC_TRY_COMPILE([ + #include <nettle/yarrow.h> +  ], [ +  struct yarrow256_ctx ctx; +  return !sizeof(ctx.seed_file); +  ], [ +  pike_cv_nettle_struct_yarrow256_ctx_seed_file=yes +  ]) +  ]) +  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    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.    PIKE_ENABLE_BUNDLE(gmp, [    ac_cv_lib_gmp_mpz_init    ac_cv_lib_gmp___mpz_init    ac_cv_lib_gmp___gmpz_init    ])    fi    PIKE_ENABLE_BUNDLE(nettle, [
pike.git/src/post_modules/Nettle/configure.in:69:    ], [Cannot compile --with-nettle without the Nettle library.   It is highly recommended that you install a working Nettle library on   your system as that will add features to Pike required by many   applications. These features include ciphers, hash algorithms and   random generators. If you know that you do not need cryptographic   functions, you can re-run configure with the option --without-nettle   instead. Nettle is available at http://www.lysator.liu.se/~nisse/nettle/.    ])    PIKE_FEATURE_NODEP(Nettle)    fi -  -  # These might have been purged from the Nettle lib to avoid GPL -  # contamination. -  AC_CHECK_FUNCS(nettle_blowfish_decrypt nettle_serpent_decrypt) -  -  # These are the recomended interfaces in Nettle 2.0. -  AC_CHECK_FUNCS(nettle_yarrow256_random nettle_yarrow256_slow_reseed) +    fi      AC_OUTPUT(Makefile,echo FOO >stamp-h )