1 diff --git a/configure b/configure
2 index 75210f0..6ea5e1f 100755
5 @@ -11708,6 +11708,62 @@ if test "$ac_res" != no; then :
9 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing CertOpenStore" >&5
10 +$as_echo_n "checking for library containing CertOpenStore... " >&6; }
11 +if ${ac_cv_search_CertOpenStore+:} false; then :
12 + $as_echo_n "(cached) " >&6
14 + ac_func_search_save_LIBS=$LIBS
15 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16 +/* end confdefs.h. */
18 +/* Override any GCC internal prototype to avoid an error.
19 + Use char because int might match the return type of a GCC
20 + builtin and then its argument prototype would still apply. */
24 +char CertOpenStore ();
28 +return CertOpenStore ();
33 +for ac_lib in '' crypt32; do
34 + if test -z "$ac_lib"; then
35 + ac_res="none required"
38 + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
40 + if ac_fn_c_try_link "$LINENO"; then :
41 + ac_cv_search_CertOpenStore=$ac_res
43 +rm -f core conftest.err conftest.$ac_objext \
45 + if ${ac_cv_search_CertOpenStore+:} false; then :
49 +if ${ac_cv_search_CertOpenStore+:} false; then :
52 + ac_cv_search_CertOpenStore=no
55 +LIBS=$ac_func_search_save_LIBS
57 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_CertOpenStore" >&5
58 +$as_echo "$ac_cv_search_CertOpenStore" >&6; }
59 +ac_res=$ac_cv_search_CertOpenStore
60 +if test "$ac_res" != no; then :
61 + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
66 if test "$with_readline" = yes; then
68 diff --git a/configure.in b/configure.in
69 index 0832636..0911ec0 100644
72 @@ -1158,6 +1158,7 @@ AC_SEARCH_LIBS(sched_yield, rt)
73 AC_SEARCH_LIBS(gethostbyname_r, nsl)
75 AC_SEARCH_LIBS(shmget, cygipc)
76 +AC_SEARCH_LIBS(CertOpenStore, crypt32)
78 if test "$with_readline" = yes; then