@@ -831,8 +831,8 @@ enable_http2
831
831
enable_debug
832
832
enable_profiling
833
833
with_lua
834
- enable_brotli
835
- enable_iptogeo2
834
+ with_brotli
835
+ with_iptogeo2
836
836
with_bssl
837
837
with_ip2loc
838
838
enable_rpath
@@ -1497,11 +1497,6 @@ Optional Features:
1497
1497
default)
1498
1498
--enable-profiling Enable cpu profiling (profiling is disabled by
1499
1499
default)
1500
- --enable-brotli=[yes/no]
1501
- enable brotli compression [default=no]
1502
- --enable-iptogeo2=[yes/no]
1503
- enable iptogeo2, need to build maxminddb which need
1504
- to have autotool installed [default=no]
1505
1500
--disable-rpath Disable rpath (It is 'no' by default)
1506
1501
1507
1502
Optional Packages:
@@ -1529,14 +1524,16 @@ Optional Packages:
1529
1524
--with-lscpd Set to build lscpd instead of openlitespeed[default:
1530
1525
yes]
1531
1526
--with-lua[=DIR] use liblua (located in directory DIR, if supplied) for compiling mod_lua module. [default=no]
1527
+ --with-brotli[=DIR] Set to enable brotli compression [default=no]
1528
+ --with-iptogeo2[=DIR] Set to enable iptogeo2, if need to build maxminddb which need to have autotool installed [default=no]
1532
1529
--with-bssl[=DIR] Set to use BoringSSL instead of OpenSSL [default=no]
1533
1530
--with-ip2loc[=DIR] enable ip2location (located in directory DIR, if supplied). [default=no]
1534
1531
--with-libdir Set system lib directory. It is lib or lib64 and
1535
1532
will be automatically checked by default
1536
1533
--with-zlib=DIR root directory path of zlib installation defaults to
1537
1534
/usr/local or /usr if not found in /usr/local
1538
1535
--without-zlib to disable zlib usage completely
1539
- --with-openssl=DIR root of the OpenSSL directory
1536
+ --with-openssl=DIR set root of the OpenSSL directory for MAC OS only
1540
1537
--with-pcre[=prefix] compile xmlpcre part (via libpcre check)
1541
1538
--with-udns=DIR root directory path of udns installation (defaults to
1542
1539
/usr/local or /usr if not found in /usr/local)
@@ -15871,11 +15868,11 @@ fi
15871
15868
if test "${enable_debug+set}" = set; then :
15872
15869
enableval=$enable_debug; OPENLSWS_DEBUG="$enableval"
15873
15870
if test "$OPENLSWS_DEBUG" = "yes" ; then
15874
- CFLAGS="-g3 -O0"
15875
- CXXFLAGS="-g3 -O0"
15871
+ CFLAGS="$CFLAGS -g3 -O0"
15872
+ CXXFLAGS="$CXXFLAGS -g3 -O0"
15876
15873
else
15877
- CFLAGS="-g -O3"
15878
- CXXFLAGS="-g -O3"
15874
+ CFLAGS="$CFLAGS -g -O3"
15875
+ CXXFLAGS="$CXXFLAGS -g -O3"
15879
15876
fi
15880
15877
echo "OPENLSWS_DEBUG='$OPENLSWS_DEBUG'"
15881
15878
@@ -15993,31 +15990,46 @@ echo "Lua inlcude = $LUA_INCLUDES, need_lua = $need_lua"
15993
15990
CFLAGS="$CFLAGS -D_GLIBCXX_USE_CXX11_ABI=0 -fstack-protector $(getconf LFS_CFLAGS) "
15994
15991
CXXFLAGS="$CXXFLAGS -D_GLIBCXX_USE_CXX11_ABI=0 -fstack-protector $(getconf LFS_CFLAGS) "
15995
15992
15996
-
15997
15993
LIBBROTLI=
15998
- # Check whether --enable-brotli was given.
15999
- if test "${enable_brotli+set}" = set; then :
16000
- enableval=$enable_brotli; OPENLSWS_BROTLI="$enableval"
15994
+ OPENLSWS_BROTLI=no
15995
+
15996
+ # Check whether --with-brotli was given.
15997
+ if test "${with_brotli+set}" = set; then :
15998
+ withval=$with_brotli;
15999
+ if test "x$withval" = "x"
16000
+ then
16001
+ OPENLSWS_BROTLI=no
16002
+ elif test $withval = no
16003
+ then
16004
+ OPENLSWS_BROTLI=no
16005
+ elif test $withval = yes
16006
+ then
16007
+ echo "Brotli start to build ..."
16008
+ BUILDBROTLI=`. $srcdir/dlbrotli.sh`
16009
+ OPENLSWS_BROTLI="$TOPDIR/brotli-master"
16010
+ else
16011
+ echo "Use defined brotli directory $withval."
16012
+ OPENLSWS_BROTLI="$withval"
16013
+ fi
16014
+
16001
16015
else
16002
16016
OPENLSWS_BROTLI=no
16003
16017
fi
16004
16018
16019
+
16005
16020
if test "$OPENLSWS_BROTLI" = "no" ; then
16006
16021
echo "Brotli compression disabled!!!"
16007
16022
else
16008
- echo "Brotli start to build ..."
16009
- BUILDBROTLI=`. $srcdir/dlbrotli.sh`
16010
-
16011
- LIBBROTLI=" $TOPDIR/brotli-master/out/libbrotlidec-static.a $TOPDIR/brotli-master/out/libbrotlienc-static.a $TOPDIR/brotli-master/out/libbrotlicommon-static.a "
16012
- as_ac_File=`$as_echo "ac_cv_file_$TOPDIR/brotli-master/out/libbrotlidec-static.a" | $as_tr_sh`
16013
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $TOPDIR/brotli-master/out/libbrotlidec-static.a" >&5
16014
- $as_echo_n "checking for $TOPDIR/brotli-master/out/libbrotlidec-static.a... " >&6; }
16023
+ LIBBROTLI=" $OPENLSWS_BROTLI/out/libbrotlidec-static.a $OPENLSWS_BROTLI/out/libbrotlienc-static.a $OPENLSWS_BROTLI/out/libbrotlicommon-static.a "
16024
+ as_ac_File=`$as_echo "ac_cv_file_$OPENLSWS_BROTLI/out/libbrotlidec-static.a" | $as_tr_sh`
16025
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $OPENLSWS_BROTLI/out/libbrotlidec-static.a" >&5
16026
+ $as_echo_n "checking for $OPENLSWS_BROTLI/out/libbrotlidec-static.a... " >&6; }
16015
16027
if eval \${$as_ac_File+:} false; then :
16016
16028
$as_echo_n "(cached) " >&6
16017
16029
else
16018
16030
test "$cross_compiling" = yes &&
16019
16031
as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
16020
- if test -r "$TOPDIR/brotli-master /out/libbrotlidec-static.a"; then
16032
+ if test -r "$OPENLSWS_BROTLI /out/libbrotlidec-static.a"; then
16021
16033
eval "$as_ac_File=yes"
16022
16034
else
16023
16035
eval "$as_ac_File=no"
@@ -16029,21 +16041,21 @@ $as_echo "$ac_res" >&6; }
16029
16041
if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
16030
16042
16031
16043
cat >>confdefs.h <<_ACEOF
16032
- #define `$as_echo "HAVE_$TOPDIR/brotli-master /out/libbrotlidec-static.a" | $as_tr_cpp` 1
16044
+ #define `$as_echo "HAVE_$OPENLSWS_BROTLI /out/libbrotlidec-static.a" | $as_tr_cpp` 1
16033
16045
_ACEOF
16034
16046
16035
16047
else
16036
16048
LIBBROTLI=
16037
16049
fi
16038
- as_ac_File=`$as_echo "ac_cv_file_$TOPDIR/brotli-master /c/include/brotli/decode.h" | $as_tr_sh`
16039
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $TOPDIR/brotli-master /c/include/brotli/decode.h" >&5
16040
- $as_echo_n "checking for $TOPDIR/brotli-master /c/include/brotli/decode.h... " >&6; }
16050
+ as_ac_File=`$as_echo "ac_cv_file_$OPENLSWS_BROTLI /c/include/brotli/decode.h" | $as_tr_sh`
16051
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $OPENLSWS_BROTLI /c/include/brotli/decode.h" >&5
16052
+ $as_echo_n "checking for $OPENLSWS_BROTLI /c/include/brotli/decode.h... " >&6; }
16041
16053
if eval \${$as_ac_File+:} false; then :
16042
16054
$as_echo_n "(cached) " >&6
16043
16055
else
16044
16056
test "$cross_compiling" = yes &&
16045
16057
as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
16046
- if test -r "$TOPDIR/brotli-master /c/include/brotli/decode.h"; then
16058
+ if test -r "$OPENLSWS_BROTLI /c/include/brotli/decode.h"; then
16047
16059
eval "$as_ac_File=yes"
16048
16060
else
16049
16061
eval "$as_ac_File=no"
@@ -16055,53 +16067,71 @@ $as_echo "$ac_res" >&6; }
16055
16067
if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
16056
16068
16057
16069
cat >>confdefs.h <<_ACEOF
16058
- #define `$as_echo "HAVE_$TOPDIR/brotli-master /c/include/brotli/decode.h" | $as_tr_cpp` 1
16070
+ #define `$as_echo "HAVE_$OPENLSWS_BROTLI /c/include/brotli/decode.h" | $as_tr_cpp` 1
16059
16071
_ACEOF
16060
16072
16061
16073
else
16062
16074
LIBBROTLI=
16063
16075
fi
16064
16076
16065
-
16066
16077
if test "x$LIBBROTLI" = x ; then
16067
- echo "Brotli built failed. If continue, brotli compression will be disabled."
16078
+ echo "Brotli files check failed. If continue, brotli compression will be disabled."
16068
16079
else
16069
- echo "Brotli built and enabled!!!"
16070
- CPPFLAGS="$CPPFLAGS -I$TOPDIR/brotli-master /c/include "
16071
- LIBBROTLI=" $TOPDIR/brotli-master/ out/libbrotlidec-static.a $TOPDIR/brotli-master/ out/libbrotlienc-static.a $TOPDIR/brotli-master /out/libbrotlicommon-static.a "
16080
+ echo "Brotli checked and enabled!!!"
16081
+ CPPFLAGS="$CPPFLAGS -I$OPENLSWS_BROTLI /c/include "
16082
+ LIBBROTLI=" $OPENLSWS_BROTLI/ out/libbrotlidec-static.a $OPENLSWS_BROTLI/ out/libbrotlienc-static.a $OPENLSWS_BROTLI /out/libbrotlicommon-static.a "
16072
16083
16073
16084
cat >>confdefs.h <<_ACEOF
16074
16085
#define USE_BROTLI 1
16075
16086
_ACEOF
16076
16087
16077
16088
fi
16078
16089
fi
16090
+ echo "LIBBROTLI=$LIBBROTLI"
16091
+
16092
+
16079
16093
16080
16094
16081
16095
LIBMMDB=
16082
- # Check whether --enable-iptogeo2 was given.
16083
- if test "${enable_iptogeo2+set}" = set; then :
16084
- enableval=$enable_iptogeo2; OPENLSWS_IPTOGEO2="$enableval"
16096
+ OPENLSWS_IPTOGEO2=no
16097
+
16098
+ # Check whether --with-iptogeo2 was given.
16099
+ if test "${with_iptogeo2+set}" = set; then :
16100
+ withval=$with_iptogeo2;
16101
+ if test "x$withval" = "x"
16102
+ then
16103
+ OPENLSWS_IPTOGEO2=no
16104
+ elif test $withval = no
16105
+ then
16106
+ OPENLSWS_IPTOGEO2=no
16107
+ elif test $withval = yes
16108
+ then
16109
+ echo "libmaxminddb start to build ..."
16110
+ BUILDMAXMINDDB=`. $srcdir/dlmaxminddb.sh`
16111
+ OPENLSWS_IPTOGEO2="$TOPDIR/libmaxminddb"
16112
+ else
16113
+ echo "Use defined iptogeo2 directory $withval."
16114
+ OPENLSWS_IPTOGEO2="$withval"
16115
+ fi
16116
+
16085
16117
else
16086
16118
OPENLSWS_IPTOGEO2=no
16087
16119
fi
16088
16120
16121
+
16089
16122
if test "$OPENLSWS_IPTOGEO2" = "no" ; then
16090
16123
echo "iptogeo2 disabled!!!"
16091
16124
else
16092
- echo "iptogeo2 enabled, libmaxminddb start to build ..."
16093
- BUILDMAXMINDDB=`. $srcdir/dlmaxminddb.sh`
16094
-
16095
16125
LIBMMDBEXIST=
16096
- as_ac_File=`$as_echo "ac_cv_file_$TOPDIR/libmaxminddb /src/.libs/libmaxminddb.a" | $as_tr_sh`
16097
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $TOPDIR/libmaxminddb /src/.libs/libmaxminddb.a" >&5
16098
- $as_echo_n "checking for $TOPDIR/libmaxminddb /src/.libs/libmaxminddb.a... " >&6; }
16126
+ as_ac_File=`$as_echo "ac_cv_file_$OPENLSWS_IPTOGEO2 /src/.libs/libmaxminddb.a" | $as_tr_sh`
16127
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $OPENLSWS_IPTOGEO2 /src/.libs/libmaxminddb.a" >&5
16128
+ $as_echo_n "checking for $OPENLSWS_IPTOGEO2 /src/.libs/libmaxminddb.a... " >&6; }
16099
16129
if eval \${$as_ac_File+:} false; then :
16100
16130
$as_echo_n "(cached) " >&6
16101
16131
else
16102
16132
test "$cross_compiling" = yes &&
16103
16133
as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
16104
- if test -r "$TOPDIR/libmaxminddb /src/.libs/libmaxminddb.a"; then
16134
+ if test -r "$OPENLSWS_IPTOGEO2 /src/.libs/libmaxminddb.a"; then
16105
16135
eval "$as_ac_File=yes"
16106
16136
else
16107
16137
eval "$as_ac_File=no"
@@ -16121,15 +16151,16 @@ fi
16121
16151
echo Or you can continue to make and iptogeo2 will be disabled.
16122
16152
echo
16123
16153
else
16124
- LIBMMDB=" $TOPDIR/libmaxminddb /src/.libs/libmaxminddb.a "
16125
- CPPFLAGS="$CPPFLAGS -I$TOPDIR/libmaxminddb /include/ "
16154
+ LIBMMDB=" $OPENLSWS_IPTOGEO2 /src/.libs/libmaxminddb.a "
16155
+ CPPFLAGS="$CPPFLAGS -I$OPENLSWS_IPTOGEO2 /include/ "
16126
16156
16127
16157
cat >>confdefs.h <<_ACEOF
16128
16158
#define ENABLE_IPTOGEO2 1
16129
16159
_ACEOF
16130
16160
16131
16161
fi
16132
16162
fi
16163
+ echo "LIBMMDB=$LIBMMDB"
16133
16164
16134
16165
16135
16166
@@ -16548,7 +16579,7 @@ if test "${with_openssl+set}" = set; then :
16548
16579
else
16549
16580
16550
16581
# use some default ssldirs
16551
- ssldirs="/usr/local /usr/local/ssl /usr /usr/ssl /usr/lib/ssl /usr/pkg "
16582
+ ssldirs="/usr/local /usr/local/ssl /usr /usr/ssl /usr/lib/ssl /usr/pkg /opt/local/ "
16552
16583
16553
16584
16554
16585
fi
@@ -17307,51 +17338,7 @@ $as_echo "$as_me: WARNING: Expat XML Parser support requested but headers or lib
17307
17338
fi
17308
17339
fi
17309
17340
17310
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP_id_by_addr in -lGeoIP" >&5
17311
- $as_echo_n "checking for GeoIP_id_by_addr in -lGeoIP... " >&6; }
17312
- if ${ac_cv_lib_GeoIP_GeoIP_id_by_addr+:} false; then :
17313
- $as_echo_n "(cached) " >&6
17314
- else
17315
- ac_check_lib_save_LIBS=$LIBS
17316
- LIBS="-lGeoIP $LIBS"
17317
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17318
- /* end confdefs.h. */
17319
-
17320
- /* Override any GCC internal prototype to avoid an error.
17321
- Use char because int might match the return type of a GCC
17322
- builtin and then its argument prototype would still apply. */
17323
- #ifdef __cplusplus
17324
- extern "C"
17325
- #endif
17326
- char GeoIP_id_by_addr ();
17327
- int
17328
- main ()
17329
- {
17330
- return GeoIP_id_by_addr ();
17331
- ;
17332
- return 0;
17333
- }
17334
- _ACEOF
17335
- if ac_fn_c_try_link "$LINENO"; then :
17336
- ac_cv_lib_GeoIP_GeoIP_id_by_addr=yes
17337
- else
17338
- ac_cv_lib_GeoIP_GeoIP_id_by_addr=no
17339
- fi
17340
- rm -f core conftest.err conftest.$ac_objext \
17341
- conftest$ac_exeext conftest.$ac_ext
17342
- LIBS=$ac_check_lib_save_LIBS
17343
- fi
17344
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GeoIP_GeoIP_id_by_addr" >&5
17345
- $as_echo "$ac_cv_lib_GeoIP_GeoIP_id_by_addr" >&6; }
17346
- if test "x$ac_cv_lib_GeoIP_GeoIP_id_by_addr" = xyes; then :
17347
- cat >>confdefs.h <<_ACEOF
17348
- #define HAVE_LIBGEOIP 1
17349
- _ACEOF
17350
-
17351
- LIBS="-lGeoIP $LIBS"
17352
-
17353
- fi
17354
-
17341
+ #AC_CHECK_LIB([GeoIP], [GeoIP_id_by_addr])
17355
17342
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
17356
17343
$as_echo_n "checking for crypt in -lcrypt... " >&6; }
17357
17344
if ${ac_cv_lib_crypt_crypt+:} false; then :
0 commit comments