summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2010-03-24 15:51:37 +0000
committerWerner Koch <wk@gnupg.org>2010-03-24 15:51:37 +0000
commit0e13f6709d8fa7e593c09180da75f21af943a14a (patch)
tree6fb3dfeb82f293ad341a44908a1c6ddceded8703 /configure.ac
parentadaaf899d13a6ebc180d63b7c84b20995eadc197 (diff)
downloadlibgcrypt-0e13f6709d8fa7e593c09180da75f21af943a14a.tar.gz
Added an entropy gatherer for W32CE.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac26
1 files changed, 22 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index da41225f..5a44b31b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -179,10 +179,17 @@ have_w32ce_system=no
# Setup some stuff depending on host.
case "${host}" in
*-*-mingw32*)
- available_random_modules="w32"
ac_cv_have_dev_random=no
have_w32_system=yes
- case "${host}" in *-mingw32ce*) have_w32ce_system=yes ;; esac
+ case "${host}" in
+ *-mingw32ce*)
+ have_w32ce_system=yes
+ available_random_modules="w32ce"
+ ;;
+ *)
+ available_random_modules="w32"
+ ;;
+ esac
AC_DEFINE(USE_ONLY_8DOT3,1,
[set this to limit filenames to the 8.3 format])
AC_DEFINE(HAVE_DRIVE_LETTERS,1,
@@ -245,11 +252,11 @@ AM_CONDITIONAL(HAVE_W32CE_SYSTEM, test "$have_w32ce_system" = yes)
# A printable OS Name is sometimes useful.
case "${host}" in
*-*-mingw32ce*)
- PRINTABLE_OS_NAME="MingW32CE"
+ PRINTABLE_OS_NAME="W32CE"
;;
*-*-mingw32*)
- PRINTABLE_OS_NAME="MingW32"
+ PRINTABLE_OS_NAME="W32"
;;
i?86-emx-os2 | i?86-*-os2*emx )
@@ -807,6 +814,10 @@ if test "$random" = "default"; then
random_modules="linux"
else
case "${host}" in
+ *-*-mingw32ce*)
+ # WindowsCE random device.
+ random_modules="w32ce"
+ ;;
*-*-mingw32*|*-*-cygwin*)
# Windows random device.
random_modules="w32"
@@ -1105,6 +1116,13 @@ if test "$found" = "1" ; then
[Defined if the Windows specific RNG should be used.])
fi
+LIST_MEMBER(w32ce, $random_modules)
+if test "$found" = "1" ; then
+ GCRYPT_RANDOM="$GCRYPT_RANDOM rndw32ce.lo"
+ AC_DEFINE(USE_RNDW32CE, 1,
+ [Defined if the WindowsCE specific RNG should be used.])
+fi
+
AC_SUBST([GCRYPT_CIPHERS])
AC_SUBST([GCRYPT_PUBKEY_CIPHERS])
AC_SUBST([GCRYPT_DIGESTS])