summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-01 22:18:42 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-02 21:34:35 +0300
commit67ec61e2e9e7b6a43219d8b5302c5a25bcfc2344 (patch)
treee970c52232f5910f54c192f62866f90a4cda109b /configure.ac
parent45f8a245715f185c369095eb7142155947e96899 (diff)
downloadhercules-67ec61e2e9e7b6a43219d8b5302c5a25bcfc2344.tar.gz
hercules-67ec61e2e9e7b6a43219d8b5302c5a25bcfc2344.tar.bz2
hercules-67ec61e2e9e7b6a43219d8b5302c5a25bcfc2344.tar.xz
hercules-67ec61e2e9e7b6a43219d8b5302c5a25bcfc2344.zip
Add configure option --enable-packetver-zero for enable support for zero clients.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac33
1 files changed, 33 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 7539b0890..35a23b331 100644
--- a/configure.ac
+++ b/configure.ac
@@ -144,6 +144,27 @@ AC_ARG_ENABLE(
#
+# packetver-Zero
+#
+AC_ARG_ENABLE(
+ [packetver-zero],
+ AC_HELP_STRING(
+ [--enable-packetver-zero],
+ [Sets or unsets the PACKETVER_ZERO define - see src/common/mmo.h (currently disabled by default)]
+ ),
+ [
+ enable_packetver_zero="$enableval"
+ case $enableval in
+ "no");;
+ "yes");;
+ *) AC_MSG_ERROR([[invalid argument --enable-packetver-zero=$enableval... stopping]]);;
+ esac
+ ],
+ [enable_packetver_zero="no"]
+)
+
+
+#
# Epoll
#
AC_ARG_ENABLE([epoll],
@@ -1225,6 +1246,18 @@ case $enable_packetver_re in
esac
#
+# Packetver-Zero
+#
+case $enable_packetver_zero in
+ "yes")
+ CPPFLAGS="$CPPFLAGS -DENABLE_PACKETVER_ZERO"
+ ;;
+ "no")
+ # default value
+ ;;
+esac
+
+#
# Epoll
#
case $have_linux_epoll in