1 config: fix SSL detection
3 The @WEBSOCK_HAVE_SSL@ is not replaced at configure time, and even if
4 it was, it would be replaced by an empty string if openssl is disabled,
5 thus still defining WEBSOCK_HAVE_SSL when we would not want it.
7 Instead, rely on config.h, which is properly generated by ./configure,
8 to provide the information about whether openssl is enabled or not.
10 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
12 diff -durN a/src/websock_config.h.in b/src/websock_config.h.in
13 --- a/src/websock_config.h.in
14 +++ b/src/websock_config.h.in
16 #ifndef WEBSOCK_CONFIG_H
17 #define WEBSOCK_CONFIG_H 1
21 #define WEBSOCK_PACKAGE_STRING @WEBSOCK_PACKAGE_STRING@
22 #define WEBSOCK_PACKAGE_VERSION @WEBSOCK_PACKAGE_VERSION@
23 #define WEBSOCK_PACKAGE_NAME @WEBSOCK_PACKAGE_NAME@
24 -#define WEBSOCK_HAVE_SSL @WEBSOCK_HAVE_SSL@