Skip to content

Commit 7cfcda1

Browse files
committed
Check in 1.5.1
1 parent a1dbc08 commit 7cfcda1

File tree

358 files changed

+11571
-2702
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

358 files changed

+11571
-2702
lines changed

CMakeLists.txt

+8
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ link_directories( ${PROJECT_SOURCE_DIR}/../thirdparty/lib/)
1818
SET (CMAKE_C_COMPILER "/usr/bin/clang")
1919
SET (CMAKE_CXX_COMPILER "/usr/bin/clang++")
2020

21+
IF (CMAKE_BUILD_TYPE MATCHES "Debug")
22+
set(MY_CMAKE_WARNING_FLAG " -Wall -Wextra -Wno-unused-parameter -fno-omit-frame-pointer")
23+
#set(MY_CMAKE_WARNING_FLAG " -Wall -Wextra -Wno-unused-parameter -fsanitize=address -fsanitize-recover=address -fno-omit-frame-pointer")
24+
set(MY_CMAKE_POOL_FLAG " -DPOOL_TESTING -DUSE_VALGRIND")
25+
#set(MY_CMAKE_POOL_FLAG " -DPOOL_TESTING")
26+
ELSE ()
27+
set(MY_CMAKE_WARNING_FLAG " -Wall -Wextra -Wno-unused-parameter ")
28+
ENDIF()
2129

2230
## thread sanitizer
2331
#set (TSAN "1")

Makefile.in

+1
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ IS_LSCPD = @IS_LSCPD@
241241
LD = @LD@
242242
LDFLAGS = @LDFLAGS@
243243
LIBBROTLI = @LIBBROTLI@
244+
LIBGEOIP = @LIBGEOIP@
244245
LIBMMDB = @LIBMMDB@
245246
LIBOBJS = @LIBOBJS@
246247
LIBS = @LIBS@

configure

+52-11
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/sh
22
# Guess values for system-dependent variables and create Makefiles.
3-
# Generated by GNU Autoconf 2.69 for openlitespeed 1.5.0.
3+
# Generated by GNU Autoconf 2.69 for openlitespeed 1.5.1.
44
#
55
# Report bugs to <[email protected]>.
66
#
@@ -590,8 +590,8 @@ MAKEFLAGS=
590590
# Identity of this package.
591591
PACKAGE_NAME='openlitespeed'
592592
PACKAGE_TARNAME='openlitespeed'
593-
PACKAGE_VERSION='1.5.0'
594-
PACKAGE_STRING='openlitespeed 1.5.0'
593+
PACKAGE_VERSION='1.5.1'
594+
PACKAGE_STRING='openlitespeed 1.5.1'
595595
PACKAGE_BUGREPORT='[email protected]'
596596
PACKAGE_URL='http://www.litespeedtech.com/'
597597

@@ -664,6 +664,7 @@ USE_DYN_OSSL_FALSE
664664
USE_DYN_OSSL_TRUE
665665
OPENLSWS_BSSL
666666
LIBMMDB
667+
LIBGEOIP
667668
LIBBROTLI
668669
HAVE_LIBLUA_FALSE
669670
HAVE_LIBLUA_TRUE
@@ -832,8 +833,10 @@ enable_debug
832833
enable_profiling
833834
with_lua
834835
with_brotli
836+
enable_iptogeo
835837
with_iptogeo2
836838
with_bssl
839+
enable_recaptcha
837840
with_ip2loc
838841
enable_rpath
839842
with_libdir
@@ -1398,7 +1401,7 @@ if test "$ac_init_help" = "long"; then
13981401
# Omit some internal or obsolete options to make the list less imposing.
13991402
# This message is too long to be a string in the A/UX 3.1 sh.
14001403
cat <<_ACEOF
1401-
\`configure' configures openlitespeed 1.5.0 to adapt to many kinds of systems.
1404+
\`configure' configures openlitespeed 1.5.1 to adapt to many kinds of systems.
14021405

14031406
Usage: $0 [OPTION]... [VAR=VALUE]...
14041407

@@ -1468,7 +1471,7 @@ fi
14681471

14691472
if test -n "$ac_init_help"; then
14701473
case $ac_init_help in
1471-
short | recursive ) echo "Configuration of openlitespeed 1.5.0:";;
1474+
short | recursive ) echo "Configuration of openlitespeed 1.5.1:";;
14721475
esac
14731476
cat <<\_ACEOF
14741477

@@ -1497,6 +1500,11 @@ Optional Features:
14971500
default)
14981501
--enable-profiling Enable cpu profiling (profiling is disabled by
14991502
default)
1503+
--enable-iptogeo=[yes/no]
1504+
Enable iptogeo which need to have Geoip library
1505+
installed [default=yes]
1506+
--enable-recaptcha=[yes/no]
1507+
Enable recaptcha [default=yes]
15001508
--disable-rpath Disable rpath (It is 'no' by default)
15011509

15021510
Optional Packages:
@@ -1622,7 +1630,7 @@ fi
16221630
test -n "$ac_init_help" && exit $ac_status
16231631
if $ac_init_version; then
16241632
cat <<\_ACEOF
1625-
openlitespeed configure 1.5.0
1633+
openlitespeed configure 1.5.1
16261634
generated by GNU Autoconf 2.69
16271635

16281636
Copyright (C) 2012 Free Software Foundation, Inc.
@@ -2296,7 +2304,7 @@ cat >config.log <<_ACEOF
22962304
This file contains any messages produced by compilers while
22972305
running configure, to aid debugging if configure makes a mistake.
22982306

2299-
It was created by openlitespeed $as_me 1.5.0, which was
2307+
It was created by openlitespeed $as_me 1.5.1, which was
23002308
generated by GNU Autoconf 2.69. Invocation command line was
23012309

23022310
$ $0 $@
@@ -3162,7 +3170,7 @@ fi
31623170

31633171
# Define the identity of the package.
31643172
PACKAGE='openlitespeed'
3165-
VERSION='1.5.0'
3173+
VERSION='1.5.1'
31663174

31673175

31683176
# Some tools Automake needs.
@@ -16091,6 +16099,29 @@ echo "LIBBROTLI=$LIBBROTLI"
1609116099

1609216100

1609316101

16102+
LIBGEOIP=" -lGeoIP "
16103+
OPENLSWS_IPTOGEO=yes
16104+
# Check whether --enable-iptogeo was given.
16105+
if test "${enable_iptogeo+set}" = set; then :
16106+
enableval=$enable_iptogeo; OPENLSWS_IPTOGEO="$enableval"
16107+
fi
16108+
16109+
16110+
if test "$OPENLSWS_IPTOGEO" = "no" ; then
16111+
echo "iptogeo disabled!!!"
16112+
LIBGEOIP=
16113+
else
16114+
16115+
cat >>confdefs.h <<_ACEOF
16116+
#define ENABLE_IPTOGEO 1
16117+
_ACEOF
16118+
16119+
LIBGEOIP=" -lGeoIP "
16120+
echo "iptogeo enabled!!!"
16121+
fi
16122+
echo "LIBGEOIP=$LIBGEOIP"
16123+
16124+
1609416125

1609516126
LIBMMDB=
1609616127
OPENLSWS_IPTOGEO2=no
@@ -16235,7 +16266,18 @@ fi
1623516266

1623616267

1623716268

16269+
# Check whether --enable-recaptcha was given.
16270+
if test "${enable_recaptcha+set}" = set; then :
16271+
enableval=$enable_recaptcha; OPENLSWS_RECAPTCHA="$enableval"
16272+
fi
1623816273

16274+
if test "$OPENLSWS_RECAPTCHA" = "no" ; then
16275+
echo "Recaptcha disabled!!!"
16276+
else
16277+
echo "Recaptcha enabled, will compile it..."
16278+
LSRECAPTCHA=`$srcdir/src/modules/lsrecaptcha/build_lsrecaptcha.sh`
16279+
echo $LSRECAPTCHA
16280+
fi
1623916281

1624016282

1624116283
# Check whether --with-ip2loc was given.
@@ -17341,7 +17383,6 @@ $as_echo "$as_me: WARNING: Expat XML Parser support requested but headers or lib
1734117383
fi
1734217384
fi
1734317385

17344-
#AC_CHECK_LIB([GeoIP], [GeoIP_id_by_addr])
1734517386
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
1734617387
$as_echo_n "checking for crypt in -lcrypt... " >&6; }
1734717388
if ${ac_cv_lib_crypt_crypt+:} false; then :
@@ -18902,7 +18943,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1890218943
# report actual input values of CONFIG_FILES etc. instead of their
1890318944
# values after options handling.
1890418945
ac_log="
18905-
This file was extended by openlitespeed $as_me 1.5.0, which was
18946+
This file was extended by openlitespeed $as_me 1.5.1, which was
1890618947
generated by GNU Autoconf 2.69. Invocation command line was
1890718948

1890818949
CONFIG_FILES = $CONFIG_FILES
@@ -18969,7 +19010,7 @@ _ACEOF
1896919010
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1897019011
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1897119012
ac_cs_version="\\
18972-
openlitespeed config.status 1.5.0
19013+
openlitespeed config.status 1.5.1
1897319014
configured by $0, generated by GNU Autoconf 2.69,
1897419015
with options \\"\$ac_cs_config\\"
1897519016

configure.ac

+30-4
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ m4_include(ax_check_libudns.m4)
77
m4_include(ax_check_ip2location.m4)
88

99
dnl Process this file with autoconf to produce a configure script.
10-
#AC_PREREQ([2.69])
11-
AC_INIT([openlitespeed],[1.5.0],[[email protected]],[openlitespeed],[http://www.litespeedtech.com/])
10+
AC_INIT([openlitespeed],[1.5.1],[[email protected]],[openlitespeed],[http://www.litespeedtech.com/])
1211
AM_INIT_AUTOMAKE([1.0 foreign no-define ])
1312

1413
AC_CONFIG_HEADERS(src/config.h:src/config.h.in)
@@ -267,6 +266,24 @@ echo "LIBBROTLI=$LIBBROTLI"
267266
AC_SUBST([LIBBROTLI])
268267

269268

269+
LIBGEOIP=" -lGeoIP "
270+
OPENLSWS_IPTOGEO=yes
271+
AC_ARG_ENABLE([iptogeo],
272+
[AS_HELP_STRING([--enable-iptogeo=@<:@yes/no@:>@],
273+
[Enable iptogeo which need to have Geoip library installed @<:@default=yes@:>@])],
274+
[OPENLSWS_IPTOGEO="$enableval"], [])
275+
276+
if test "$OPENLSWS_IPTOGEO" = "no" ; then
277+
echo "iptogeo disabled!!!"
278+
LIBGEOIP=
279+
else
280+
AC_DEFINE_UNQUOTED([ENABLE_IPTOGEO], [1], [Defined to compile with iptogeo enabled])
281+
LIBGEOIP=" -lGeoIP "
282+
echo "iptogeo enabled!!!"
283+
fi
284+
echo "LIBGEOIP=$LIBGEOIP"
285+
AC_SUBST([LIBGEOIP])
286+
270287

271288
LIBMMDB=
272289
OPENLSWS_IPTOGEO2=no
@@ -355,7 +372,17 @@ AM_CONDITIONAL([USE_DYN_OSSL], [test x$usedynossl = xyes])
355372
AM_CONDITIONAL([USE_BSSL], [test x$OPENLSWS_BSSL = xyes])
356373

357374

358-
375+
AC_ARG_ENABLE([recaptcha],
376+
[AS_HELP_STRING([--enable-recaptcha=@<:@yes/no@:>@],
377+
[Enable recaptcha @<:@default=yes@:>@])],
378+
[OPENLSWS_RECAPTCHA="$enableval"], [])
379+
if test "$OPENLSWS_RECAPTCHA" = "no" ; then
380+
echo "Recaptcha disabled!!!"
381+
else
382+
echo "Recaptcha enabled, will compile it..."
383+
LSRECAPTCHA=`$srcdir/src/modules/lsrecaptcha/build_lsrecaptcha.sh`
384+
echo $LSRECAPTCHA
385+
fi
359386

360387
AC_ARG_WITH(ip2loc,
361388
[ --with-ip2loc[[=DIR]] enable ip2location (located in directory DIR, if supplied). [[default=no]]],
@@ -442,7 +469,6 @@ AX_PATH_LIB_PCRE(, AC_MSG_ERROR(Can not find pcre. You must install it before co
442469
AX_PATH_LIB_UDNS(, AC_MSG_ERROR(Can not find udns library. You must install it before continuing.))
443470

444471
AX_LIB_EXPAT(0.5)
445-
#AC_CHECK_LIB([GeoIP], [GeoIP_id_by_addr])
446472
AC_CHECK_LIB(crypt,crypt,LIBS="-lcrypt $LIBS")
447473

448474

dist/Example/html/css/custom.css

+13-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
-491 Bytes
Loading

0 commit comments

Comments
 (0)