diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-08-22 01:26:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-08-25 00:37:54 +0300 |
commit | 05af69b6dcdc5fddac4da8ebfdd2ff9036e41c90 (patch) | |
tree | 6ceab1bde0bfd7f43ff8bf917452c54d31f5fae9 /configure | |
parent | bf6b8a0ccfb3f0b35aec9b0ae833327ab5cbf405 (diff) | |
download | hercules-05af69b6dcdc5fddac4da8ebfdd2ff9036e41c90.tar.gz hercules-05af69b6dcdc5fddac4da8ebfdd2ff9036e41c90.tar.bz2 hercules-05af69b6dcdc5fddac4da8ebfdd2ff9036e41c90.tar.xz hercules-05af69b6dcdc5fddac4da8ebfdd2ff9036e41c90.zip |
Add support for build for SAK clients.
Add configure flag --enable-packetver-sak
Add defines for SAK into mmo.h
Add messages list for SAK clients.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 36 |
1 files changed, 35 insertions, 1 deletions
@@ -1,5 +1,5 @@ #! /bin/sh -# From configure.ac dfd6225e6. +# From configure.ac 7f7b8060c. # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69. # @@ -693,6 +693,7 @@ enable_manager enable_packetver enable_packetver_re enable_packetver_zero +enable_packetver_sak enable_epoll with_key1 with_key2 @@ -1346,6 +1347,8 @@ Optional Features: src/common/mmo.h (currently disabled by default) --enable-packetver-zero Sets or unsets the PACKETVER_ZERO define - see src/common/mmo.h (currently disabled by default) + --enable-packetver-sak Sets or unsets the PACKETVER_SAK define - see + src/common/mmo.h (currently disabled by default) --enable-epoll use epoll(4) on Linux --enable-debug[=ARG] Compiles extra debug code. (yes by default) (available options: yes, no, gdb) @@ -3572,6 +3575,25 @@ else fi +# +# packetver-Sak +# +# Check whether --enable-packetver-sak was given. +if test "${enable_packetver_sak+set}" = set; then : + enableval=$enable_packetver_sak; + enable_packetver_sak="$enableval" + case $enableval in + "no");; + "yes");; + *) as_fn_error $? "invalid argument --enable-packetver-sak=$enableval... stopping" "$LINENO" 5;; + esac + +else + enable_packetver_sak="no" + +fi + + # # Epoll @@ -8267,6 +8289,18 @@ case $enable_packetver_zero in esac # +# Packetver-Sak +# +case $enable_packetver_sak in + "yes") + CPPFLAGS="$CPPFLAGS -DENABLE_PACKETVER_SAK" + ;; + "no") + # default value + ;; +esac + +# # Epoll # case $have_linux_epoll in |