@@ -112,7 +112,7 @@ if test "x$prefix" != "xNONE"; then
112
112
fi
113
113
114
114
AC_ARG_WITH(tests,
115
- [ --with-glib2 Use GLIB 2.0 instead of 1.2],
115
+ [ --with-glib2 Use GLIB 2.0 instead of 1.2],
116
116
if test x$withval = xyes; then
117
117
want_glib2=yes
118
118
else
@@ -126,7 +126,7 @@ AC_ARG_WITH(tests,
126
126
127
127
AC_ARG_WITH(perl-staticlib,
128
128
[ --with-perl-staticlib Specify that we want to link perl libraries
129
- statically in irssi, default is no],
129
+ statically in irssi, default is no],
130
130
if test x$withval = xyes; then
131
131
want_staticperllib=yes
132
132
else
@@ -141,7 +141,7 @@ AC_ARG_WITH(perl-staticlib,
141
141
142
142
AC_ARG_WITH(perl-lib,
143
143
[ --with-perl-lib=[site|vendor|DIR] Specify where to install the
144
- Perl libraries for irssi, default is site],
144
+ Perl libraries for irssi, default is site],
145
145
if test "x$withval" = xyes; then
146
146
want_perl=yes
147
147
elif test "x$withval" = xno; then
@@ -170,8 +170,8 @@ AC_ARG_WITH(perl-lib,
170
170
171
171
AC_ARG_WITH(perl,
172
172
[ --with-perl[=yes|no|module] Build with Perl support - also specifies
173
- if it should be built into main irssi binary
174
- (static, default) or as module],
173
+ if it should be built into main irssi binary
174
+ (static, default) or as module],
175
175
if test x$withval = xyes; then
176
176
want_perl=static
177
177
elif test x$withval = xstatic; then
@@ -196,6 +196,62 @@ AC_ARG_ENABLE(ipv6,
196
196
fi,
197
197
want_ipv6=no)
198
198
199
+ dnl **
200
+ dnl ** SSL Library checks (OpenSSL)
201
+ dnl **
202
+
203
+ AC_ARG_ENABLE(ssl,
204
+ [ --disable-ssl Turn on Secure Sockets Layer support [default=yes]],,
205
+ enable_ssl=yes)
206
+
207
+ AC_ARG_WITH(openssl-includes,
208
+ [ --with-openssl-includes Specify location of OpenSSL header files],
209
+ [openssl_inc_prefix=-I$withval])
210
+
211
+ AC_ARG_WITH(openssl-libs,
212
+ [ --with-openssl-libs Specify location of OpenSSL libs],
213
+ [openssl_prefix=$withval],
214
+ [openssl_prefix=/usr/lib])
215
+
216
+ if test "x$enable_ssl" = xyes; then
217
+ ###
218
+ ### Check for OpenSSL
219
+ ###
220
+ save_CFLAGS=$CFLAGS;
221
+ CFLAGS="-lcrypto";
222
+
223
+ enable_openssl="no";
224
+ OPENSSL_LDFLAGS="";
225
+ AC_CHECK_LIB(ssl, SSL_read,
226
+ AC_CHECK_LIB(crypto, X509_new,
227
+ AC_CHECK_HEADERS(openssl/ssl.h openssl/err.h,
228
+ [
229
+ enable_openssl="yes";
230
+ OPENSSL_LDFLAGS="-lssl -lcrypto"
231
+ ],
232
+ AC_ERROR([Cannot find OpenSSL includes !])),
233
+ AC_ERROR([Cannot find libCrypto !])),
234
+ AC_ERROR([Cannot find libSSL !]))
235
+ CFLAGS=$save_CFLAGS
236
+
237
+ if test "x$enable_openssl" = xyes; then
238
+ AC_DEFINE(HAVE_OPENSSL)
239
+ OPENSSL_LIBS="-L$openssl_prefix $OPENSSL_LDFLAGS"
240
+ OPENSSL_CFLAGS="$openssl_inc_prefix"
241
+ else
242
+ OPENSSL_LIBS=
243
+ OPENSSL_CFLAGS=
244
+ fi
245
+
246
+ AC_SUBST(OPENSSL_CFLAGS)
247
+ AC_SUBST(OPENSSL_LIBS)
248
+ LIBS="$LIBS $OPENSSL_LIBS"
249
+ CFLAGS="$CFLAGS $OPENSSL_CFLAGS"
250
+ else
251
+ enable_openssl="no"
252
+ fi
253
+
254
+
199
255
dnl **
200
256
dnl ** just some generic stuff...
201
257
dnl **
830
886
echo "Building text frontend ..... : $text"
831
887
echo "Building irssi bot ......... : $want_irssibot"
832
888
echo "Building irssi proxy ....... : $want_irssiproxy"
833
- echo "Building with IPv6 support . : $want_ipv6"
834
889
if test "x$have_gmodule" = "xyes"; then
835
890
echo "Building with module support : yes"
836
891
else
@@ -877,8 +932,12 @@ if test "x$want_perl" != "xno"; then
877
932
echo " Anyway, installing perl to this directory should work just as well."
878
933
fi
879
934
fi
880
-
881
935
echo "Install prefix ............. : $prefix"
882
936
937
+ echo
938
+
939
+ echo "Building with IPv6 support . : $want_ipv6"
940
+ echo "Building with SSL support .. : ${enable_openssl}"
941
+
883
942
echo
884
943
echo "If there was any problems, read the INSTALL file."
0 commit comments