AC_HELP_STRING([--with-ssl=PATH],[where to look for SSL, PATH points to the SSL installation (default: /usr/local/ssl)])
832
AC_HELP_STRING([--with-ssl=PATH],[Where to look for OpenSSL, PATH points to the SSL installation (default: /usr/local/ssl); when possible, set the PKG_CONFIG_PATH environment variable instead of using this option])
799
833
AC_HELP_STRING([--without-ssl], [disable SSL]),
800
834
OPT_SSL=$withval)
801
835
865
899
fi
866
900
867
901
dnl This is for Msys/Mingw
868
AC_MSG_CHECKING([for gdi32])
869
my_ac_save_LIBS=$LIBS
870
LIBS="-lgdi32 $LIBS"
871
AC_TRY_LINK([#include <windef.h>
872
#include <wingdi.h>],
873
[GdiFlush();],
874
[ dnl worked!
875
AC_MSG_RESULT([yes])],
876
[ dnl failed, restore LIBS
877
LIBS=$my_ac_save_LIBS
878
AC_MSG_RESULT(no)]
879
)
902
case $host in
903
*-*-cygwin*)
904
dnl Under Cygwin this is extraneous and causes an unnecessary -lgdi32
905
dnl to be added to LIBS and recorded in the .la file.
906
;;
907
*)
908
AC_MSG_CHECKING([for gdi32])
909
my_ac_save_LIBS=$LIBS
910
LIBS="-lgdi32 $LIBS"
911
AC_TRY_LINK([#include <windef.h>
912
#include <wingdi.h>],
913
[GdiFlush();],
914
[ dnl worked!
915
AC_MSG_RESULT([yes])],
916
[ dnl failed, restore LIBS
917
LIBS=$my_ac_save_LIBS
918
AC_MSG_RESULT(no)]
919
)
920
;;
921
esac
880
922
881
923
AC_CHECK_LIB(crypto, CRYPTO_lock,[
882
924
HAVECRYPTO="yes"
924
966
AC_DEFINE(USE_OPENSSL, 1, [if OpenSSL is in use]))